diff --git a/index.js b/index.js index 172cf2f..246b998 100644 --- a/index.js +++ b/index.js @@ -1 +1 @@ -function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var a=e(require("path")),t=e(require("os")),p=e(require("fs")),r=e(require("http")),i=e(require("https"));require("net");var o=e(require("tls")),d=e(require("events")),s=e(require("assert")),n=e(require("util")),l=e(require("stream")),m=e(require("url")),c=e(require("punycode")),u=e(require("zlib")),h=e(require("string_decoder")),f=e(require("child_process")),v=e(require("timers")),g=e(require("tty")),w=e(require("constants")),y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function b(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function _(e,a,t){return e(t={path:a,exports:{},require:function(e,a){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},t.exports),t.exports}function E(e){return e&&e.default||e}var T,S=_(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.toCommandProperties=a.toCommandValue=void 0,a.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e)},a.toCommandProperties=function(e){return Object.keys(e).length?{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}:{}}}),O=_(function(e,a){var p=y&&y.__createBinding||(Object.create?function(e,a,t,p){void 0===p&&(p=t),Object.defineProperty(e,p,{enumerable:!0,get:function(){return a[t]}})}:function(e,a,t,p){void 0===p&&(p=t),e[p]=a[t]}),r=y&&y.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:!0,value:a})}:function(e,a){e.default=a}),i=y&&y.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(null!=e)for(var t in e)"default"!==t&&Object.hasOwnProperty.call(e,t)&&p(a,e,t);return r(a,e),a};Object.defineProperty(a,"__esModule",{value:!0}),a.issue=a.issueCommand=void 0;const o=i(t);function d(e,a,t){const p=new s(e,a,t);process.stdout.write(p.toString()+o.EOL)}a.issueCommand=d,a.issue=function(e,a=""){d(e,{},a)};class s{constructor(e,a,t){e||(e="missing.command"),this.command=e,this.properties=a,this.message=t}toString(){let e="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let a=!0;for(const t in this.properties)if(this.properties.hasOwnProperty(t)){const p=this.properties[t];p&&(a?a=!1:e+=",",e+=`${t}=${n(p)}`)}}return e+="::"+function(e){return S.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}(this.message),e}}function n(e){return S.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}}),A=_(function(e,a){var r=y&&y.__createBinding||(Object.create?function(e,a,t,p){void 0===p&&(p=t),Object.defineProperty(e,p,{enumerable:!0,get:function(){return a[t]}})}:function(e,a,t,p){void 0===p&&(p=t),e[p]=a[t]}),i=y&&y.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:!0,value:a})}:function(e,a){e.default=a}),o=y&&y.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(null!=e)for(var t in e)"default"!==t&&Object.hasOwnProperty.call(e,t)&&r(a,e,t);return i(a,e),a};Object.defineProperty(a,"__esModule",{value:!0}),a.issueCommand=void 0;const d=o(p),s=o(t);a.issueCommand=function(e,a){const t=process.env["GITHUB_"+e];if(!t)throw new Error("Unable to find environment variable for file command "+e);if(!d.existsSync(t))throw new Error("Missing file at path: "+t);d.appendFileSync(t,`${S.toCommandValue(a)}${s.EOL}`,{encoding:"utf8"})}}),N=_(function(e,a){function t(e){if(!e.hostname)return!1;let a,t=process.env.no_proxy||process.env.NO_PROXY||"";if(!t)return!1;e.port?a=Number(e.port):"http:"===e.protocol?a=80:"https:"===e.protocol&&(a=443);let p=[e.hostname.toUpperCase()];"number"==typeof a&&p.push(`${p[0]}:${a}`);for(let e of t.split(",").map(e=>e.trim().toUpperCase()).filter(e=>e))if(p.some(a=>a===e))return!0;return!1}Object.defineProperty(a,"__esModule",{value:!0}),a.getProxyUrl=function(e){let a,p,r="https:"===e.protocol;return t(e)||(p=r?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY,p&&(a=new URL(p))),a},a.checkBypass=t});function D(e){var a=this;a.options=e||{},a.proxyOptions=a.options.proxy||{},a.maxSockets=a.options.maxSockets||r.Agent.defaultMaxSockets,a.requests=[],a.sockets=[],a.on("free",function(e,t,p,r){for(var i=P(t,p,r),o=0,d=a.requests.length;o=this.maxSockets?r.requests.push(i):r.createSocket(i,function(a){function t(){r.emit("free",a,i)}function p(e){r.removeSocket(a),a.removeListener("free",t),a.removeListener("close",p),a.removeListener("agentRemove",p)}a.on("free",t),a.on("close",p),a.on("agentRemove",p),e.onSocket(a)})},D.prototype.createSocket=function(e,a){var t=this,p={};t.sockets.push(p);var r=C({},t.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(r.localAddress=e.localAddress),r.proxyAuth&&(r.headers=r.headers||{},r.headers["Proxy-Authorization"]="Basic "+new Buffer(r.proxyAuth).toString("base64")),T("making CONNECT request");var i=t.request(r);function o(r,o,d){var s;return i.removeAllListeners(),o.removeAllListeners(),200!==r.statusCode?(T("tunneling socket could not be established, statusCode=%d",r.statusCode),o.destroy(),(s=new Error("tunneling socket could not be established, statusCode="+r.statusCode)).code="ECONNRESET",e.request.emit("error",s),void t.removeSocket(p)):d.length>0?(T("got illegal response body from proxy"),o.destroy(),(s=new Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",s),void t.removeSocket(p)):(T("tunneling connection has established"),t.sockets[t.sockets.indexOf(p)]=o,a(o))}i.useChunkedEncodingByDefault=!1,i.once("response",function(e){e.upgrade=!0}),i.once("upgrade",function(e,a,t){process.nextTick(function(){o(e,a,t)})}),i.once("connect",o),i.once("error",function(a){i.removeAllListeners(),T("tunneling socket could not be established, cause=%s\n",a.message,a.stack);var r=new Error("tunneling socket could not be established, cause="+a.message);r.code="ECONNRESET",e.request.emit("error",r),t.removeSocket(p)}),i.end()},D.prototype.removeSocket=function(e){var a=this.sockets.indexOf(e);if(-1!==a){this.sockets.splice(a,1);var t=this.requests.shift();t&&this.createSocket(t,function(e){t.request.onSocket(e)})}};var R={httpOverHttp:function(e){var a=new D(e);return a.request=r.request,a},httpsOverHttp:function(e){var a=new D(e);return a.request=r.request,a.createSocket=k,a.defaultPort=443,a},httpOverHttps:function(e){var a=new D(e);return a.request=i.request,a},httpsOverHttps:function(e){var a=new D(e);return a.request=i.request,a.createSocket=k,a.defaultPort=443,a},debug:T=process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments);"string"==typeof e[0]?e[0]="TUNNEL: "+e[0]:e.unshift("TUNNEL:"),console.error.apply(console,e)}:function(){}},F=_(function(e,a){let t;var p,o,d;Object.defineProperty(a,"__esModule",{value:!0}),function(e){e[e.OK=200]="OK",e[e.MultipleChoices=300]="MultipleChoices",e[e.MovedPermanently=301]="MovedPermanently",e[e.ResourceMoved=302]="ResourceMoved",e[e.SeeOther=303]="SeeOther",e[e.NotModified=304]="NotModified",e[e.UseProxy=305]="UseProxy",e[e.SwitchProxy=306]="SwitchProxy",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.PaymentRequired=402]="PaymentRequired",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.MethodNotAllowed=405]="MethodNotAllowed",e[e.NotAcceptable=406]="NotAcceptable",e[e.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",e[e.RequestTimeout=408]="RequestTimeout",e[e.Conflict=409]="Conflict",e[e.Gone=410]="Gone",e[e.TooManyRequests=429]="TooManyRequests",e[e.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"}(p=a.HttpCodes||(a.HttpCodes={})),function(e){e.Accept="accept",e.ContentType="content-type"}(o=a.Headers||(a.Headers={})),function(e){e.ApplicationJson="application/json"}(d=a.MediaTypes||(a.MediaTypes={})),a.getProxyUrl=function(e){let a=N.getProxyUrl(new URL(e));return a?a.href:""};const s=[p.MovedPermanently,p.ResourceMoved,p.SeeOther,p.TemporaryRedirect,p.PermanentRedirect],n=[p.BadGateway,p.ServiceUnavailable,p.GatewayTimeout],l=["OPTIONS","GET","DELETE","HEAD"];class m extends Error{constructor(e,a){super(e),this.name="HttpClientError",this.statusCode=a,Object.setPrototypeOf(this,m.prototype)}}a.HttpClientError=m;class c{constructor(e){this.message=e}readBody(){return new Promise(async(e,a)=>{let t=Buffer.alloc(0);this.message.on("data",e=>{t=Buffer.concat([t,e])}),this.message.on("end",()=>{e(t.toString())})})}}a.HttpClientResponse=c,a.isHttps=function(e){return"https:"===new URL(e).protocol};class u{constructor(e,a,t){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=e,this.handlers=a||[],this.requestOptions=t,t&&(null!=t.ignoreSslError&&(this._ignoreSslError=t.ignoreSslError),this._socketTimeout=t.socketTimeout,null!=t.allowRedirects&&(this._allowRedirects=t.allowRedirects),null!=t.allowRedirectDowngrade&&(this._allowRedirectDowngrade=t.allowRedirectDowngrade),null!=t.maxRedirects&&(this._maxRedirects=Math.max(t.maxRedirects,0)),null!=t.keepAlive&&(this._keepAlive=t.keepAlive),null!=t.allowRetries&&(this._allowRetries=t.allowRetries),null!=t.maxRetries&&(this._maxRetries=t.maxRetries))}options(e,a){return this.request("OPTIONS",e,null,a||{})}get(e,a){return this.request("GET",e,null,a||{})}del(e,a){return this.request("DELETE",e,null,a||{})}post(e,a,t){return this.request("POST",e,a,t||{})}patch(e,a,t){return this.request("PATCH",e,a,t||{})}put(e,a,t){return this.request("PUT",e,a,t||{})}head(e,a){return this.request("HEAD",e,null,a||{})}sendStream(e,a,t,p){return this.request(e,a,t,p)}async getJson(e,a={}){a[o.Accept]=this._getExistingOrDefaultHeader(a,o.Accept,d.ApplicationJson);let t=await this.get(e,a);return this._processResponse(t,this.requestOptions)}async postJson(e,a,t={}){let p=JSON.stringify(a,null,2);t[o.Accept]=this._getExistingOrDefaultHeader(t,o.Accept,d.ApplicationJson),t[o.ContentType]=this._getExistingOrDefaultHeader(t,o.ContentType,d.ApplicationJson);let r=await this.post(e,p,t);return this._processResponse(r,this.requestOptions)}async putJson(e,a,t={}){let p=JSON.stringify(a,null,2);t[o.Accept]=this._getExistingOrDefaultHeader(t,o.Accept,d.ApplicationJson),t[o.ContentType]=this._getExistingOrDefaultHeader(t,o.ContentType,d.ApplicationJson);let r=await this.put(e,p,t);return this._processResponse(r,this.requestOptions)}async patchJson(e,a,t={}){let p=JSON.stringify(a,null,2);t[o.Accept]=this._getExistingOrDefaultHeader(t,o.Accept,d.ApplicationJson),t[o.ContentType]=this._getExistingOrDefaultHeader(t,o.ContentType,d.ApplicationJson);let r=await this.patch(e,p,t);return this._processResponse(r,this.requestOptions)}async request(e,a,t,r){if(this._disposed)throw new Error("Client has already been disposed.");let i,o=new URL(a),d=this._prepareRequest(e,o,r),m=this._allowRetries&&-1!=l.indexOf(e)?this._maxRetries+1:1,c=0;for(;c0;){const p=i.message.headers.location;if(!p)break;let s=new URL(p);if("https:"==o.protocol&&o.protocol!=s.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");if(await i.readBody(),s.hostname!==o.hostname)for(let e in r)"authorization"===e.toLowerCase()&&delete r[e];d=this._prepareRequest(e,s,r),i=await this.requestRaw(d,t),a--}if(-1==n.indexOf(i.message.statusCode))return i;c+=1,c{this.requestRawWithCallback(e,a,function(e,a){e&&p(e),t(a)})})}requestRawWithCallback(e,a,t){let p;"string"==typeof a&&(e.options.headers["Content-Length"]=Buffer.byteLength(a,"utf8"));let r=!1,i=(e,a)=>{r||(r=!0,t(e,a))},o=e.httpModule.request(e.options,e=>{let a=new c(e);i(null,a)});o.on("socket",e=>{p=e}),o.setTimeout(this._socketTimeout||18e4,()=>{p&&p.end(),i(new Error("Request timeout: "+e.options.path),null)}),o.on("error",function(e){i(e,null)}),a&&"string"==typeof a&&o.write(a,"utf8"),a&&"string"!=typeof a?(a.on("close",function(){o.end()}),a.pipe(o)):o.end()}getAgent(e){let a=new URL(e);return this._getAgent(a)}_prepareRequest(e,a,t){const p={};p.parsedUrl=a;const o="https:"===p.parsedUrl.protocol;p.httpModule=o?i:r;const d=o?443:80;return p.options={},p.options.host=p.parsedUrl.hostname,p.options.port=p.parsedUrl.port?parseInt(p.parsedUrl.port):d,p.options.path=(p.parsedUrl.pathname||"")+(p.parsedUrl.search||""),p.options.method=e,p.options.headers=this._mergeHeaders(t),null!=this.userAgent&&(p.options.headers["user-agent"]=this.userAgent),p.options.agent=this._getAgent(p.parsedUrl),this.handlers&&this.handlers.forEach(e=>{e.prepareRequest(p.options)}),p}_mergeHeaders(e){const a=e=>Object.keys(e).reduce((a,t)=>(a[t.toLowerCase()]=e[t],a),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},a(this.requestOptions.headers),a(e)):a(e||{})}_getExistingOrDefaultHeader(e,a,t){let p;var r;return this.requestOptions&&this.requestOptions.headers&&(p=(r=this.requestOptions.headers,Object.keys(r).reduce((e,a)=>(e[a.toLowerCase()]=r[a],e),{}))[a]),e[a]||p||t}_getAgent(e){let a,p=N.getProxyUrl(e),o=p&&p.hostname;if(this._keepAlive&&o&&(a=this._proxyAgent),this._keepAlive&&!o&&(a=this._agent),a)return a;const d="https:"===e.protocol;let s=100;if(this.requestOptions&&(s=this.requestOptions.maxSockets||r.globalAgent.maxSockets),o){t||(t=R);const e={maxSockets:s,keepAlive:this._keepAlive,proxy:{...(p.username||p.password)&&{proxyAuth:`${p.username}:${p.password}`},host:p.hostname,port:p.port}};let r;const i="https:"===p.protocol;r=d?i?t.httpsOverHttps:t.httpsOverHttp:i?t.httpOverHttps:t.httpOverHttp,a=r(e),this._proxyAgent=a}if(this._keepAlive&&!a){const e={keepAlive:this._keepAlive,maxSockets:s};a=d?new i.Agent(e):new r.Agent(e),this._agent=a}return a||(a=d?i.globalAgent:r.globalAgent),d&&this._ignoreSslError&&(a.options=Object.assign(a.options||{},{rejectUnauthorized:!1})),a}_performExponentialBackoff(e){e=Math.min(10,e);const a=5*Math.pow(2,e);return new Promise(e=>setTimeout(()=>e(),a))}static dateTimeDeserializer(e,a){if("string"==typeof a){let e=new Date(a);if(!isNaN(e.valueOf()))return e}return a}async _processResponse(e,a){return new Promise(async(t,r)=>{const i=e.message.statusCode,o={statusCode:i,result:null,headers:{}};let d,s;i==p.NotFound&&t(o);try{s=await e.readBody(),s&&s.length>0&&(d=a&&a.deserializeDates?JSON.parse(s,u.dateTimeDeserializer):JSON.parse(s),o.result=d),o.headers=e.message.headers}catch(e){}if(i>299){let e;e=d&&d.message?d.message:s&&s.length>0?s:"Failed request: ("+i+")";let a=new m(e,i);a.result=o.result,r(a)}else t(o)})}}a.HttpClient=u}),V=_(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.BasicCredentialHandler=class{constructor(e,a){this.username=e,this.password=a}prepareRequest(e){e.headers.Authorization="Basic "+Buffer.from(this.username+":"+this.password).toString("base64")}canHandleAuthentication(e){return!1}handleAuthentication(e,a,t){return null}},a.BearerCredentialHandler=class{constructor(e){this.token=e}prepareRequest(e){e.headers.Authorization="Bearer "+this.token}canHandleAuthentication(e){return!1}handleAuthentication(e,a,t){return null}},a.PersonalAccessTokenCredentialHandler=class{constructor(e){this.token=e}prepareRequest(e){e.headers.Authorization="Basic "+Buffer.from("PAT:"+this.token).toString("base64")}canHandleAuthentication(e){return!1}handleAuthentication(e,a,t){return null}}}),j=_(function(e,a){var t=y&&y.__awaiter||function(e,a,t,p){return new(t||(t=Promise))(function(r,i){function o(e){try{s(p.next(e))}catch(e){i(e)}}function d(e){try{s(p.throw(e))}catch(e){i(e)}}function s(e){var a;e.done?r(e.value):(a=e.value,a instanceof t?a:new t(function(e){e(a)})).then(o,d)}s((p=p.apply(e,a||[])).next())})};Object.defineProperty(a,"__esModule",{value:!0}),a.OidcClient=void 0;class p{static createHttpClient(e=!0,a=10){const t={allowRetries:e,maxRetries:a};return new F.HttpClient("actions/oidc-client",[new V.BearerCredentialHandler(p.getRequestToken())],t)}static getRequestToken(){const e=process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;if(!e)throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable");return e}static getIDTokenUrl(){const e=process.env.ACTIONS_ID_TOKEN_REQUEST_URL;if(!e)throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable");return e}static getCall(e){var a;return t(this,void 0,void 0,function*(){const t=p.createHttpClient(),r=yield t.getJson(e).catch(e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)}),i=null===(a=r.result)||void 0===a?void 0:a.value;if(!i)throw new Error("Response json body do not have ID Token field");return i})}static getIDToken(e){return t(this,void 0,void 0,function*(){try{let a=p.getIDTokenUrl();e&&(a=`${a}&audience=${encodeURIComponent(e)}`),x.debug("ID token url is "+a);const t=yield p.getCall(a);return x.setSecret(t),t}catch(e){throw new Error("Error message: "+e.message)}})}}a.OidcClient=p}),x=_(function(e,p){var r=y&&y.__createBinding||(Object.create?function(e,a,t,p){void 0===p&&(p=t),Object.defineProperty(e,p,{enumerable:!0,get:function(){return a[t]}})}:function(e,a,t,p){void 0===p&&(p=t),e[p]=a[t]}),i=y&&y.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:!0,value:a})}:function(e,a){e.default=a}),o=y&&y.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(null!=e)for(var t in e)"default"!==t&&Object.hasOwnProperty.call(e,t)&&r(a,e,t);return i(a,e),a},d=y&&y.__awaiter||function(e,a,t,p){return new(t||(t=Promise))(function(r,i){function o(e){try{s(p.next(e))}catch(e){i(e)}}function d(e){try{s(p.throw(e))}catch(e){i(e)}}function s(e){var a;e.done?r(e.value):(a=e.value,a instanceof t?a:new t(function(e){e(a)})).then(o,d)}s((p=p.apply(e,a||[])).next())})};Object.defineProperty(p,"__esModule",{value:!0}),p.getIDToken=p.getState=p.saveState=p.group=p.endGroup=p.startGroup=p.info=p.notice=p.warning=p.error=p.debug=p.isDebug=p.setFailed=p.setCommandEcho=p.setOutput=p.getBooleanInput=p.getMultilineInput=p.getInput=p.addPath=p.setSecret=p.exportVariable=p.ExitCode=void 0;const s=o(t),n=o(a);var l;function m(e,a){const t=process.env["INPUT_"+e.replace(/ /g,"_").toUpperCase()]||"";if(a&&a.required&&!t)throw new Error("Input required and not supplied: "+e);return a&&!1===a.trimWhitespace?t:t.trim()}function c(e,a={}){O.issueCommand("error",S.toCommandProperties(a),e instanceof Error?e.toString():e)}function u(e){O.issue("group",e)}function h(){O.issue("endgroup")}!function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"}(l=p.ExitCode||(p.ExitCode={})),p.exportVariable=function(e,a){const t=S.toCommandValue(a);if(process.env[e]=t,process.env.GITHUB_ENV){const a="_GitHubActionsFileCommandDelimeter_";A.issueCommand("ENV",`${e}<<${a}${s.EOL}${t}${s.EOL}${a}`)}else O.issueCommand("set-env",{name:e},t)},p.setSecret=function(e){O.issueCommand("add-mask",{},e)},p.addPath=function(e){process.env.GITHUB_PATH?A.issueCommand("PATH",e):O.issueCommand("add-path",{},e),process.env.PATH=`${e}${n.delimiter}${process.env.PATH}`},p.getInput=m,p.getMultilineInput=function(e,a){return m(e,a).split("\n").filter(e=>""!==e)},p.getBooleanInput=function(e,a){const t=m(e,a);if(["true","True","TRUE"].includes(t))return!0;if(["false","False","FALSE"].includes(t))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\nSupport boolean input list: \`true | True | TRUE | false | False | FALSE\``)},p.setOutput=function(e,a){process.stdout.write(s.EOL),O.issueCommand("set-output",{name:e},a)},p.setCommandEcho=function(e){O.issue("echo",e?"on":"off")},p.setFailed=function(e){process.exitCode=l.Failure,c(e)},p.isDebug=function(){return"1"===process.env.RUNNER_DEBUG},p.debug=function(e){O.issueCommand("debug",{},e)},p.error=c,p.warning=function(e,a={}){O.issueCommand("warning",S.toCommandProperties(a),e instanceof Error?e.toString():e)},p.notice=function(e,a={}){O.issueCommand("notice",S.toCommandProperties(a),e instanceof Error?e.toString():e)},p.info=function(e){process.stdout.write(e+s.EOL)},p.startGroup=u,p.endGroup=h,p.group=function(e,a){return d(this,void 0,void 0,function*(){let t;u(e);try{t=yield a()}finally{h()}return t})},p.saveState=function(e,a){O.issueCommand("save-state",{name:e},a)},p.getState=function(e){return process.env["STATE_"+e]||""},p.getIDToken=function(e){return d(this,void 0,void 0,function*(){return yield j.OidcClient.getIDToken(e)})}}),U=_(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.Context=void 0,a.Context=class{constructor(){if(this.payload={},process.env.GITHUB_EVENT_PATH)if(p.existsSync(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(p.readFileSync(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{const e=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${e} does not exist${t.EOL}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10)}get issue(){const e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[e,a]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:a}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}}}),G=_(function(e,a){var t=y&&y.__createBinding||(Object.create?function(e,a,t,p){void 0===p&&(p=t),Object.defineProperty(e,p,{enumerable:!0,get:function(){return a[t]}})}:function(e,a,t,p){void 0===p&&(p=t),e[p]=a[t]}),p=y&&y.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:!0,value:a})}:function(e,a){e.default=a}),r=y&&y.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&t(a,e,r);return p(a,e),a};Object.defineProperty(a,"__esModule",{value:!0}),a.getApiBaseUrl=a.getProxyAgent=a.getAuthString=void 0;const i=r(F);a.getAuthString=function(e,a){if(!e&&!a.auth)throw new Error("Parameter token or opts.auth is required");if(e&&a.auth)throw new Error("Parameters token and opts.auth may not both be specified");return"string"==typeof a.auth?a.auth:"token "+e},a.getProxyAgent=function(e){return(new i.HttpClient).getAgent(e)},a.getApiBaseUrl=function(){return process.env.GITHUB_API_URL||"https://api.github.com"}});function I(){return"object"==typeof process&&"version"in process?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:""}var B=function e(a,t,p,r){if("function"!=typeof p)throw new Error("method for before hook must be a function");return r||(r={}),Array.isArray(t)?t.reverse().reduce(function(t,p){return e.bind(null,a,p,t,r)},p)():Promise.resolve().then(function(){return a.registry[t]?a.registry[t].reduce(function(e,a){return a.hook.bind(null,e,r)},p)():p(r)})},L=function(e,a,t,p){var r=p;e.registry[t]||(e.registry[t]=[]),"before"===a&&(p=function(e,a){return Promise.resolve().then(r.bind(null,a)).then(e.bind(null,a))}),"after"===a&&(p=function(e,a){var t;return Promise.resolve().then(e.bind(null,a)).then(function(e){return r(t=e,a)}).then(function(){return t})}),"error"===a&&(p=function(e,a){return Promise.resolve().then(e.bind(null,a)).catch(function(e){return r(e,a)})}),e.registry[t].push({hook:p,orig:r})},M=function(e,a,t){if(e.registry[a]){var p=e.registry[a].map(function(e){return e.orig}).indexOf(t);-1!==p&&e.registry[a].splice(p,1)}},q=Function.bind,$=q.bind(q);function H(e,a,t){var p=$(M,null).apply(null,t?[a,t]:[a]);e.api={remove:p},e.remove=p,["before","error","after","wrap"].forEach(function(p){var r=t?[a,p,t]:[a,p];e[p]=e.api[p]=$(L,null).apply(null,r)})}function z(){var e={registry:{}},a=B.bind(null,e);return H(a,e),a}var W=!1;function J(){return W||(console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4'),W=!0),z()}J.Singular=function(){var e={registry:{}},a=B.bind(null,e,"h");return H(a,e,"h"),a}.bind(),J.Collection=z.bind();var Y=J,K=J.Singular,Q=J.Collection;function X(e){return"[object Object]"===Object.prototype.toString.call(e)}function Z(e){var a,t;return!1!==X(e)&&(void 0===(a=e.constructor)||!1!==X(t=a.prototype)&&!1!==t.hasOwnProperty("isPrototypeOf"))}function ee(e){for(const a in e)void 0===e[a]&&delete e[a];return e}function ae(e,a,t){if("string"==typeof a){let[e,p]=a.split(" ");t=Object.assign(p?{method:e,url:p}:{url:e},t)}else t=Object.assign({},a);var p;t.headers=(p=t.headers)?Object.keys(p).reduce((e,a)=>(e[a.toLowerCase()]=p[a],e),{}):{},ee(t),ee(t.headers);const r=function e(a,t){const p=Object.assign({},a);return Object.keys(t).forEach(r=>{Z(t[r])?r in a?p[r]=e(a[r],t[r]):Object.assign(p,{[r]:t[r]}):Object.assign(p,{[r]:t[r]})}),p}(e||{},t);return e&&e.mediaType.previews.length&&(r.mediaType.previews=e.mediaType.previews.filter(e=>!r.mediaType.previews.includes(e)).concat(r.mediaType.previews)),r.mediaType.previews=r.mediaType.previews.map(e=>e.replace(/-preview/,"")),r}Y.Hook=J,Y.Singular=K,Y.Collection=Q;const te=/\{[^}]+\}/g;function pe(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function re(e,a){return Object.keys(e).filter(e=>!a.includes(e)).reduce((a,t)=>(a[t]=e[t],a),{})}function ie(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e}).join("")}function oe(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function de(e,a,t){return a="+"===e||"#"===e?ie(a):oe(a),t?oe(t)+"="+a:a}function se(e){return null!=e}function ne(e){return";"===e||"&"===e||"?"===e}function le(e,a){var t=["+","#",".","/",";","?","&"];return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,p,r){if(p){let e="";const r=[];if(-1!==t.indexOf(p.charAt(0))&&(e=p.charAt(0),p=p.substr(1)),p.split(/,/g).forEach(function(t){var p=/([^:\*]*)(?::(\d+)|(\*))?/.exec(t);r.push(function(e,a,t,p){var r=e[t],i=[];if(se(r)&&""!==r)if("string"==typeof r||"number"==typeof r||"boolean"==typeof r)r=r.toString(),p&&"*"!==p&&(r=r.substring(0,parseInt(p,10))),i.push(de(a,r,ne(a)?t:""));else if("*"===p)Array.isArray(r)?r.filter(se).forEach(function(e){i.push(de(a,e,ne(a)?t:""))}):Object.keys(r).forEach(function(e){se(r[e])&&i.push(de(a,r[e],e))});else{const e=[];Array.isArray(r)?r.filter(se).forEach(function(t){e.push(de(a,t))}):Object.keys(r).forEach(function(t){se(r[t])&&(e.push(oe(t)),e.push(de(a,r[t].toString())))}),ne(a)?i.push(oe(t)+"="+e.join(",")):0!==e.length&&i.push(e.join(","))}else";"===a?se(r)&&i.push(oe(t)):""!==r||"&"!==a&&"?"!==a?""===r&&i.push(""):i.push(oe(t)+"=");return i}(a,e,p[1],p[2]||p[3]))}),e&&"+"!==e){var i=",";return"?"===e?i="&":"#"!==e&&(i=e),(0!==r.length?e:"")+r.join(i)}return r.join(",")}return ie(r)})}function me(e){let a,t=e.method.toUpperCase(),p=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),r=Object.assign({},e.headers),i=re(e,["method","baseUrl","url","headers","request","mediaType"]);const o=function(e){const a=e.match(te);return a?a.map(pe).reduce((e,a)=>e.concat(a),[]):[]}(p);var d;p=(d=p,{expand:le.bind(null,d)}).expand(i),/^http/.test(p)||(p=e.baseUrl+p);const s=re(i,Object.keys(e).filter(e=>o.includes(e)).concat("baseUrl"));if(!/application\/octet-stream/i.test(r.accept)&&(e.mediaType.format&&(r.accept=r.accept.split(/,/).map(a=>a.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,"application/vnd$1$2."+e.mediaType.format)).join(",")),e.mediaType.previews.length)){const a=r.accept.match(/[\w-]+(?=-preview)/g)||[];r.accept=a.concat(e.mediaType.previews).map(a=>`application/vnd.github.${a}-preview${e.mediaType.format?"."+e.mediaType.format:"+json"}`).join(",")}return["GET","HEAD"].includes(t)?p=function(e,a){const t=/\?/.test(e)?"&":"?",p=Object.keys(a);return 0===p.length?e:e+t+p.map(e=>"q"===e?"q="+a.q.split("+").map(encodeURIComponent).join("+"):`${e}=${encodeURIComponent(a[e])}`).join("&")}(p,s):"data"in s?a=s.data:Object.keys(s).length?a=s:r["content-length"]=0,r["content-type"]||void 0===a||(r["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(t)&&void 0===a&&(a=""),Object.assign({method:t,url:p,headers:r},void 0!==a?{body:a}:null,e.request?{request:e.request}:null)}function ce(e,a,t){return me(ae(e,a,t))}const ue=function e(a,t){const p=ae(a,t),r=ce.bind(null,p);return Object.assign(r,{DEFAULTS:p,defaults:e.bind(null,p),merge:ae.bind(null,p),parse:me})}(null,{method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":"octokit-endpoint.js/6.0.12 "+I()},mediaType:{format:"",previews:[]}});var he={},fe=he;function ve(e){return e<0?-1:1}function ge(e,a){a.unsigned||--e;const t=a.unsigned?0:-Math.pow(2,e),p=Math.pow(2,e)-1,r=a.moduloBitLength?Math.pow(2,a.moduloBitLength):Math.pow(2,e),i=a.moduloBitLength?Math.pow(2,a.moduloBitLength-1):Math.pow(2,e-1);return function(e,o){o||(o={});let d=+e;if(o.enforceRange){if(!Number.isFinite(d))throw new TypeError("Argument is not a finite number");if(d=ve(d)*Math.floor(Math.abs(d)),dp)throw new TypeError("Argument is not in byte range");return d}if(!isNaN(d)&&o.clamp)return d=function(e){return e%1==.5&&0==(1&e)?Math.floor(e):Math.round(e)}(d),dp&&(d=p),d;if(!Number.isFinite(d)||0===d)return 0;if(d=ve(d)*Math.floor(Math.abs(d)),d%=r,!a.unsigned&&d>=i)return d-r;if(a.unsigned)if(d<0)d+=r;else if(-0===d)return 0;return d}}he.void=function(){},he.boolean=function(e){return!!e},he.byte=ge(8,{unsigned:!1}),he.octet=ge(8,{unsigned:!0}),he.short=ge(16,{unsigned:!1}),he["unsigned short"]=ge(16,{unsigned:!0}),he.long=ge(32,{unsigned:!1}),he["unsigned long"]=ge(32,{unsigned:!0}),he["long long"]=ge(32,{unsigned:!1,moduloBitLength:64}),he["unsigned long long"]=ge(32,{unsigned:!0,moduloBitLength:64}),he.double=function(e){const a=+e;if(!Number.isFinite(a))throw new TypeError("Argument is not a finite floating-point value");return a},he["unrestricted double"]=function(e){const a=+e;if(isNaN(a))throw new TypeError("Argument is NaN");return a},he.float=he.double,he["unrestricted float"]=he["unrestricted double"],he.DOMString=function(e,a){return a||(a={}),a.treatNullAsEmptyString&&null===e?"":String(e)},he.ByteString=function(e,a){const t=String(e);let p=void 0;for(let e=0;void 0!==(p=t.codePointAt(e));++e)if(p>255)throw new TypeError("Argument is not a valid bytestring");return t},he.USVString=function(e){const a=String(e),t=a.length,p=[];for(let e=0;e57343)p.push(String.fromCodePoint(r));else if(56320<=r&&r<=57343)p.push(String.fromCodePoint(65533));else if(e===t-1)p.push(String.fromCodePoint(65533));else{const t=a.charCodeAt(e+1);56320<=t&&t<=57343?(p.push(String.fromCodePoint(65536+1024*(1023&r)+(1023&t))),++e):p.push(String.fromCodePoint(65533))}}return p.join("")},he.Date=function(e,a){if(!(e instanceof Date))throw new TypeError("Argument is not a Date object");if(!isNaN(e))return e},he.RegExp=function(e,a){return e instanceof RegExp||(e=new RegExp(e)),e};var we=_(function(e){e.exports.mixin=function(e,a){const t=Object.getOwnPropertyNames(a);for(let p=0;p=e)return r;r[0][0]>e?t=p-1:a=p+1}return null}var Te=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;function Se(e){return e.replace(Te,"_").length}var Oe=/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E4-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u192B\u1930-\u193B\u19B0-\u19C0\u19C8\u19C9\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2D]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC7F-\uDC82\uDCB0-\uDCBA\uDD00-\uDD02\uDD27-\uDD34\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDE2C-\uDE37\uDEDF-\uDEEA\uDF01-\uDF03\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDE30-\uDE40\uDEAB-\uDEB7]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF51-\uDF7E\uDF8F-\uDF92]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD83A[\uDCD0-\uDCD6]|\uDB40[\uDD00-\uDDEF]/;function Ae(e,a){"xn--"===e.substr(0,4)&&(e=c.toUnicode(e));var t=!1;(_e(e)!==e||"-"===e[3]&&"-"===e[4]||"-"===e[0]||"-"===e[e.length-1]||-1!==e.indexOf(".")||0===e.search(Oe))&&(t=!0);for(var p=Se(e),r=0;r=48&&e<=57}function o(e){return e>=65&&e<=90||e>=97&&e<=122}function d(e){return i(e)||e>=65&&e<=70||e>=97&&e<=102}function s(e){return"."===e||"%2e"===e.toLowerCase()}function n(e){return 2===e.length&&o(e.codePointAt(0))&&(":"===e[1]||"|"===e[1])}function l(e){return void 0!==a[e]}function m(e){return l(e.scheme)}function u(e){let a=e.toString(16).toUpperCase();return 1===a.length&&(a="0"+a),"%"+a}function h(e){return e<=31||e>126}const f=new Set([32,34,35,60,62,63,96,123,125]);function v(e){return h(e)||f.has(e)}const g=new Set([47,58,59,61,64,91,92,93,94,124]);function w(e){return v(e)||g.has(e)}function y(e,a){const t=String.fromCodePoint(e);return a(e)?function(e){const a=new Buffer(e);let t="";for(let e=0;e=2&&"0"===e.charAt(0)&&"x"===e.charAt(1).toLowerCase()?(e=e.substring(2),a=16):e.length>=2&&"0"===e.charAt(0)&&(e=e.substring(1),a=8),""===e?0:(10===a?/[^0-9]/:16===a?/[^0-9A-Fa-f]/:/[^0-7]/).test(e)?t:parseInt(e,a)}function _(e,a){if("["===e[0])return"]"!==e[e.length-1]?t:function(e){const a=[0,0,0,0,0,0,0,0];let p=0,o=null,s=0;if(58===(e=c.ucs2.decode(e))[s]){if(58!==e[s+1])return t;s+=2,++p,o=p}for(;s6)return t;let o=0;for(;void 0!==e[s];){let d=null;if(o>0){if(!(46===e[s]&&o<4))return t;++s}if(!i(e[s]))return t;for(;i(e[s]);){const a=parseInt(r(e,s));if(null===d)d=a;else{if(0===d)return t;d=10*d+a}if(d>255)return t;++s}a[p]=256*a[p]+d,++o,2!==o&&4!==o||++p}if(4!==o)return t;break}if(58===e[s]){if(++s,void 0===e[s])return t}else if(void 0!==e[s])return t;a[p]=n,++p}if(null!==o){let e=p-o;for(p=7;0!==p&&e>0;){const t=a[o+e-1];a[o+e-1]=a[p],a[p]=t,--p,--e}}else if(null===o&&8!==p)return t;return a}(e.substring(1,e.length-1));if(!a)return function(e){if(-1!==e.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/))return t;let a="";const p=c.ucs2.decode(e);for(let e=0;e1&&a.pop(),a.length>4)return e;const p=[];for(const r of a){if(""===r)return e;const a=b(r);if(a===t)return e;p.push(a)}for(let e=0;e255)return t;if(p[p.length-1]>=Math.pow(256,5-p.length))return t;let r=p.pop(),i=0;for(const e of p)r+=e*Math.pow(256,3-i),++i;return r}(p);return"number"==typeof l||l===t?l:p}function E(e){return"number"==typeof e?function(e){let a="",t=e;for(let e=1;e<=4;++e)a=String(t%256)+a,4!==e&&(a="."+a),t=Math.floor(t/256);return a}(e):e instanceof Array?"["+function(e){let a="";const t=function(e){let a=null,t=1,p=null,r=0;for(let i=0;it&&(a=p,t=r),p=null,r=0):(null===p&&(p=i),++r);return r>t&&(a=p,t=r),{idx:a,len:t}}(e).idx;let p=!1;for(let r=0;r<=7;++r)p&&0===e[r]||(p&&(p=!1),t!==r?(a+=e[r].toString(16),7!==r&&(a+=":")):(a+=0===r?"::":":",p=!0));return a}(e)+"]":e}function T(e){const a=e.path;0!==a.length&&("file"===e.scheme&&1===a.length&&/^[A-Za-z]:$/.test(a[0])||a.pop())}function S(e){return""!==e.username||""!==e.password}function O(e,a,p,r,i){if(this.pointer=0,this.input=e,this.base=a||null,this.encodingOverride=p||"utf-8",this.stateOverride=i,this.url=r,this.failure=!1,this.parseError=!1,!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null,cannotBeABaseURL:!1};const e=function(e){return e.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g,"")}(this.input);e!==this.input&&(this.parseError=!0),this.input=e}const o=function(e){return e.replace(/\u0009|\u000A|\u000D/g,"")}(this.input);for(o!==this.input&&(this.parseError=!0),this.input=o,this.state=i||"scheme start",this.buffer="",this.atFlag=!1,this.arrFlag=!1,this.passwordTokenSeenFlag=!1,this.input=c.ucs2.decode(this.input);this.pointer<=this.input.length;++this.pointer){const e=this.input[this.pointer],a=isNaN(e)?void 0:String.fromCodePoint(e),p=this["parse "+this.state](e,a);if(!p)break;if(p===t){this.failure=!0;break}}}O.prototype["parse scheme start"]=function(e,a){if(o(e))this.buffer+=a.toLowerCase(),this.state="scheme";else{if(this.stateOverride)return this.parseError=!0,t;this.state="no scheme",--this.pointer}return!0},O.prototype["parse scheme"]=function(e,a){if(function(e){return o(e)||i(e)}(e)||43===e||45===e||46===e)this.buffer+=a.toLowerCase();else if(58===e){if(this.stateOverride){if(m(this.url)&&!l(this.buffer))return!1;if(!m(this.url)&&l(this.buffer))return!1;if((S(this.url)||null!==this.url.port)&&"file"===this.buffer)return!1;if("file"===this.url.scheme&&(""===this.url.host||null===this.url.host))return!1}if(this.url.scheme=this.buffer,this.buffer="",this.stateOverride)return!1;"file"===this.url.scheme?(47===this.input[this.pointer+1]&&47===this.input[this.pointer+2]||(this.parseError=!0),this.state="file"):m(this.url)&&null!==this.base&&this.base.scheme===this.url.scheme?this.state="special relative or authority":m(this.url)?this.state="special authority slashes":47===this.input[this.pointer+1]?(this.state="path or authority",++this.pointer):(this.url.cannotBeABaseURL=!0,this.url.path.push(""),this.state="cannot-be-a-base-URL path")}else{if(this.stateOverride)return this.parseError=!0,t;this.buffer="",this.state="no scheme",this.pointer=-1}return!0},O.prototype["parse no scheme"]=function(e){return null===this.base||this.base.cannotBeABaseURL&&35!==e?t:(this.base.cannotBeABaseURL&&35===e?(this.url.scheme=this.base.scheme,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.url.cannotBeABaseURL=!0,this.state="fragment"):"file"===this.base.scheme?(this.state="file",--this.pointer):(this.state="relative",--this.pointer),!0)},O.prototype["parse special relative or authority"]=function(e){return 47===e&&47===this.input[this.pointer+1]?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="relative",--this.pointer),!0},O.prototype["parse path or authority"]=function(e){return 47===e?this.state="authority":(this.state="path",--this.pointer),!0},O.prototype["parse relative"]=function(e){return this.url.scheme=this.base.scheme,isNaN(e)?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query):47===e?this.state="relative slash":63===e?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query="",this.state="query"):35===e?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):m(this.url)&&92===e?(this.parseError=!0,this.state="relative slash"):(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(0,this.base.path.length-1),this.state="path",--this.pointer),!0},O.prototype["parse relative slash"]=function(e){return!m(this.url)||47!==e&&92!==e?47===e?this.state="authority":(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.state="path",--this.pointer):(92===e&&(this.parseError=!0),this.state="special authority ignore slashes"),!0},O.prototype["parse special authority slashes"]=function(e){return 47===e&&47===this.input[this.pointer+1]?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="special authority ignore slashes",--this.pointer),!0},O.prototype["parse special authority ignore slashes"]=function(e){return 47!==e&&92!==e?(this.state="authority",--this.pointer):this.parseError=!0,!0},O.prototype["parse authority"]=function(e,a){if(64===e){this.parseError=!0,this.atFlag&&(this.buffer="%40"+this.buffer),this.atFlag=!0;const e=p(this.buffer);for(let a=0;aMath.pow(2,16)-1)return this.parseError=!0,t;this.url.port=e===a[this.url.scheme]?null:e,this.buffer=""}if(this.stateOverride)return!1;this.state="path start",--this.pointer}return!0};const A=new Set([47,92,63,35]);O.prototype["parse file"]=function(e){var a;return this.url.scheme="file",47===e||92===e?(92===e&&(this.parseError=!0),this.state="file slash"):null!==this.base&&"file"===this.base.scheme?isNaN(e)?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query):63===e?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query="",this.state="query"):35===e?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):(this.input.length-this.pointer-1==0||(a=this.input[this.pointer+1],!o(e)||58!==a&&124!==a)||this.input.length-this.pointer-1>=2&&!A.has(this.input[this.pointer+2])?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),T(this.url)):this.parseError=!0,this.state="path",--this.pointer):(this.state="path",--this.pointer),!0},O.prototype["parse file slash"]=function(e){var a;return 47===e||92===e?(92===e&&(this.parseError=!0),this.state="file host"):(null!==this.base&&"file"===this.base.scheme&&(2===(a=this.base.path[0]).length&&o(a.codePointAt(0))&&":"===a[1]?this.url.path.push(this.base.path[0]):this.url.host=this.base.host),this.state="path",--this.pointer),!0},O.prototype["parse file host"]=function(e,a){if(isNaN(e)||47===e||92===e||63===e||35===e)if(--this.pointer,!this.stateOverride&&n(this.buffer))this.parseError=!0,this.state="path";else if(""===this.buffer){if(this.url.host="",this.stateOverride)return!1;this.state="path start"}else{let e=_(this.buffer,m(this.url));if(e===t)return t;if("localhost"===e&&(e=""),this.url.host=e,this.stateOverride)return!1;this.buffer="",this.state="path start"}else this.buffer+=a;return!0},O.prototype["parse path start"]=function(e){return m(this.url)?(92===e&&(this.parseError=!0),this.state="path",47!==e&&92!==e&&--this.pointer):this.stateOverride||63!==e?this.stateOverride||35!==e?void 0!==e&&(this.state="path",47!==e&&--this.pointer):(this.url.fragment="",this.state="fragment"):(this.url.query="",this.state="query"),!0},O.prototype["parse path"]=function(e){if(isNaN(e)||47===e||m(this.url)&&92===e||!this.stateOverride&&(63===e||35===e)){if(m(this.url)&&92===e&&(this.parseError=!0),".."!==(a=(a=this.buffer).toLowerCase())&&"%2e."!==a&&".%2e"!==a&&"%2e%2e"!==a?!s(this.buffer)||47===e||m(this.url)&&92===e?s(this.buffer)||("file"===this.url.scheme&&0===this.url.path.length&&n(this.buffer)&&(""!==this.url.host&&null!==this.url.host&&(this.parseError=!0,this.url.host=""),this.buffer=this.buffer[0]+":"),this.url.path.push(this.buffer)):this.url.path.push(""):(T(this.url),47===e||m(this.url)&&92===e||this.url.path.push("")),this.buffer="","file"===this.url.scheme&&(void 0===e||63===e||35===e))for(;this.url.path.length>1&&""===this.url.path[0];)this.parseError=!0,this.url.path.shift();63===e&&(this.url.query="",this.state="query"),35===e&&(this.url.fragment="",this.state="fragment")}else 37!==e||d(this.input[this.pointer+1])&&d(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=y(e,v);var a;return!0},O.prototype["parse cannot-be-a-base-URL path"]=function(e){return 63===e?(this.url.query="",this.state="query"):35===e?(this.url.fragment="",this.state="fragment"):(isNaN(e)||37===e||(this.parseError=!0),37!==e||d(this.input[this.pointer+1])&&d(this.input[this.pointer+2])||(this.parseError=!0),isNaN(e)||(this.url.path[0]=this.url.path[0]+y(e,h))),!0},O.prototype["parse query"]=function(e,a){if(isNaN(e)||!this.stateOverride&&35===e){m(this.url)&&"ws"!==this.url.scheme&&"wss"!==this.url.scheme||(this.encodingOverride="utf-8");const a=new Buffer(this.buffer);for(let e=0;e126||34===a[e]||35===a[e]||60===a[e]||62===a[e]?u(a[e]):String.fromCodePoint(a[e]);this.buffer="",35===e&&(this.url.fragment="",this.state="fragment")}else 37!==e||d(this.input[this.pointer+1])&&d(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=a;return!0},O.prototype["parse fragment"]=function(e){return isNaN(e)||(0===e?this.parseError=!0:(37!==e||d(this.input[this.pointer+1])&&d(this.input[this.pointer+2])||(this.parseError=!0),this.url.fragment+=y(e,h))),!0},e.exports.serializeURL=function(e,a){let t=e.scheme+":";if(null!==e.host?(t+="//",""===e.username&&""===e.password||(t+=e.username,""!==e.password&&(t+=":"+e.password),t+="@"),t+=E(e.host),null!==e.port&&(t+=":"+e.port)):null===e.host&&"file"===e.scheme&&(t+="//"),e.cannotBeABaseURL)t+=e.path[0];else for(const a of e.path)t+="/"+a;return null!==e.query&&(t+="?"+e.query),a||null===e.fragment||(t+="#"+e.fragment),t},e.exports.serializeURLOrigin=function(a){switch(a.scheme){case"blob":try{return e.exports.serializeURLOrigin(e.exports.parseURL(a.path[0]))}catch(e){return"null"}case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return function(e){let a=e.scheme+"://";return a+=E(e.host),null!==e.port&&(a+=":"+e.port),a}({scheme:a.scheme,host:a.host,port:a.port});case"file":return"file://";default:return"null"}},e.exports.basicURLParse=function(e,a){void 0===a&&(a={});const t=new O(e,a.baseURL,a.encodingOverride,a.url,a.stateOverride);return t.failure?"failure":t.url},e.exports.setTheUsername=function(e,a){e.username="";const t=c.ucs2.decode(a);for(let a=0;a!!e&&e[a]instanceof Pe,create(e,a){let p=Object.create(t.prototype);return this.setup(p,e,a),p},setup(e,t,p){p||(p={}),p.wrapper=e,e[a]=new Pe(t,p),e[a][we.wrapperSymbol]=e},interface:t,expose:{Window:{URL:t},Worker:{URL:t}}}}).interface,serializeURL:ke.serializeURL,serializeURLOrigin:ke.serializeURLOrigin,basicURLParse:ke.basicURLParse,setTheUsername:ke.setTheUsername,setThePassword:ke.setThePassword,serializeHost:ke.serializeHost,serializeInteger:ke.serializeInteger,parseURL:ke.parseURL};const Re=l.Readable,Fe=Symbol("buffer"),Ve=Symbol("type");class je{constructor(){this[Ve]="";const e=arguments[0],a=arguments[1],t=[];if(e){const a=e,p=Number(a.length);for(let e=0;e1&&void 0!==arguments[1]?arguments[1]:{},p=t.size;let r=void 0===p?0:p;var i=t.timeout;let o=void 0===i?0:i;null==e?e=null:Me(e)?e=Buffer.from(e.toString()):qe(e)||Buffer.isBuffer(e)||("[object ArrayBuffer]"===Object.prototype.toString.call(e)?e=Buffer.from(e):ArrayBuffer.isView(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):e instanceof l||(e=Buffer.from(String(e)))),this[Ge]={body:e,disturbed:!1,error:null},this.size=r,this.timeout=o,e instanceof l&&e.on("error",function(e){const t="AbortError"===e.name?e:new xe(`Invalid response body while trying to fetch ${a.url}: ${e.message}`,"system",e);a[Ge].error=t})}function Le(){var e=this;if(this[Ge].disturbed)return Be.Promise.reject(new TypeError("body used already for: "+this.url));if(this[Ge].disturbed=!0,this[Ge].error)return Be.Promise.reject(this[Ge].error);let a=this.body;if(null===a)return Be.Promise.resolve(Buffer.alloc(0));if(qe(a)&&(a=a.stream()),Buffer.isBuffer(a))return Be.Promise.resolve(a);if(!(a instanceof l))return Be.Promise.resolve(Buffer.alloc(0));let t=[],p=0,r=!1;return new Be.Promise(function(i,o){let d;e.timeout&&(d=setTimeout(function(){r=!0,o(new xe(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))},e.timeout)),a.on("error",function(a){"AbortError"===a.name?(r=!0,o(a)):o(new xe(`Invalid response body while trying to fetch ${e.url}: ${a.message}`,"system",a))}),a.on("data",function(a){if(!r&&null!==a){if(e.size&&p+a.length>e.size)return r=!0,void o(new xe(`content size at ${e.url} over limit: ${e.size}`,"max-size"));p+=a.length,t.push(a)}}),a.on("end",function(){if(!r){clearTimeout(d);try{i(Buffer.concat(t,p))}catch(a){o(new xe(`Could not create Buffer from response body for ${e.url}: ${a.message}`,"system",a))}}})})}function Me(e){return"object"==typeof e&&"function"==typeof e.append&&"function"==typeof e.delete&&"function"==typeof e.get&&"function"==typeof e.getAll&&"function"==typeof e.has&&"function"==typeof e.set&&("URLSearchParams"===e.constructor.name||"[object URLSearchParams]"===Object.prototype.toString.call(e)||"function"==typeof e.sort)}function qe(e){return"object"==typeof e&&"function"==typeof e.arrayBuffer&&"string"==typeof e.type&&"function"==typeof e.stream&&"function"==typeof e.constructor&&"string"==typeof e.constructor.name&&/^(Blob|File)$/.test(e.constructor.name)&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function $e(e){let a,t,p=e.body;if(e.bodyUsed)throw new Error("cannot clone body after it is used");return p instanceof l&&"function"!=typeof p.getBoundary&&(a=new Ie,t=new Ie,p.pipe(a),p.pipe(t),e[Ge].body=a,p=t),p}function He(e){return null===e?null:"string"==typeof e?"text/plain;charset=UTF-8":Me(e)?"application/x-www-form-urlencoded;charset=UTF-8":qe(e)?e.type||null:Buffer.isBuffer(e)||"[object ArrayBuffer]"===Object.prototype.toString.call(e)||ArrayBuffer.isView(e)?null:"function"==typeof e.getBoundary?"multipart/form-data;boundary="+e.getBoundary():e instanceof l?null:"text/plain;charset=UTF-8"}function ze(e){const a=e.body;return null===a?0:qe(a)?a.size:Buffer.isBuffer(a)?a.length:a&&"function"==typeof a.getLengthSync&&(a._lengthRetrievers&&0==a._lengthRetrievers.length||a.hasKnownLength&&a.hasKnownLength())?a.getLengthSync():null}Be.prototype={get body(){return this[Ge].body},get bodyUsed(){return this[Ge].disturbed},arrayBuffer(){return Le.call(this).then(function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)})},blob(){let e=this.headers&&this.headers.get("content-type")||"";return Le.call(this).then(function(a){return Object.assign(new je([],{type:e.toLowerCase()}),{[Fe]:a})})},json(){var e=this;return Le.call(this).then(function(a){try{return JSON.parse(a.toString())}catch(a){return Be.Promise.reject(new xe(`invalid json response body at ${e.url} reason: ${a.message}`,"invalid-json"))}})},text(){return Le.call(this).then(function(e){return e.toString()})},buffer(){return Le.call(this)},textConverted(){var e=this;return Le.call(this).then(function(a){return function(e,a){if("function"!=typeof Ue)throw new Error("The package `encoding` must be installed to use the textConverted() function");const t=a.get("content-type");let p,r,i="utf-8";return t&&(p=/charset=([^;]*)/i.exec(t)),r=e.slice(0,1024).toString(),!p&&r&&(p=/0&&void 0!==arguments[0]?arguments[0]:void 0;if(this[Xe]=Object.create(null),e instanceof Ze){const a=e.raw(),t=Object.keys(a);for(const e of t)for(const t of a[e])this.append(e,t)}else if(null==e);else{if("object"!=typeof e)throw new TypeError("Provided initializer must be an object");{const a=e[Symbol.iterator];if(null!=a){if("function"!=typeof a)throw new TypeError("Header pairs must be iterable");const t=[];for(const a of e){if("object"!=typeof a||"function"!=typeof a[Symbol.iterator])throw new TypeError("Each header pair must be iterable");t.push(Array.from(a))}for(const e of t){if(2!==e.length)throw new TypeError("Each header pair must be a name/value tuple");this.append(e[0],e[1])}}else for(const a of Object.keys(e))this.append(a,e[a])}}}get(e){Ye(e=""+e);const a=Qe(this[Xe],e);return void 0===a?null:this[Xe][a].join(", ")}forEach(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,t=ea(this),p=0;for(;p1&&void 0!==arguments[1]?arguments[1]:"key+value";const t=Object.keys(e[Xe]).sort();return t.map("key"===a?function(e){return e.toLowerCase()}:"value"===a?function(a){return e[Xe][a].join(", ")}:function(a){return[a.toLowerCase(),e[Xe][a].join(", ")]})}Ze.prototype.entries=Ze.prototype[Symbol.iterator],Object.defineProperty(Ze.prototype,Symbol.toStringTag,{value:"Headers",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(Ze.prototype,{get:{enumerable:!0},forEach:{enumerable:!0},set:{enumerable:!0},append:{enumerable:!0},has:{enumerable:!0},delete:{enumerable:!0},keys:{enumerable:!0},values:{enumerable:!0},entries:{enumerable:!0}});const aa=Symbol("internal");function ta(e,a){const t=Object.create(pa);return t[aa]={target:e,kind:a,index:0},t}const pa=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==pa)throw new TypeError("Value of `this` is not a HeadersIterator");var e=this[aa];const a=e.index,t=ea(e.target,e.kind);return a>=t.length?{value:void 0,done:!0}:(this[aa].index=a+1,{value:t[a],done:!1})}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));function ra(e){const a=Object.assign({__proto__:null},e[Xe]),t=Qe(e[Xe],"Host");return void 0!==t&&(a[t]=a[t][0]),a}Object.defineProperty(pa,Symbol.toStringTag,{value:"HeadersIterator",writable:!1,enumerable:!1,configurable:!0});const ia=Symbol("Response internals"),oa=r.STATUS_CODES;class da{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Be.call(this,e,a);const t=a.status||200,p=new Ze(a.headers);if(null!=e&&!p.has("Content-Type")){const a=He(e);a&&p.append("Content-Type",a)}this[ia]={url:a.url,status:t,statusText:a.statusText||oa[t],headers:p,counter:a.counter}}get url(){return this[ia].url||""}get status(){return this[ia].status}get ok(){return this[ia].status>=200&&this[ia].status<300}get redirected(){return this[ia].counter>0}get statusText(){return this[ia].statusText}get headers(){return this[ia].headers}clone(){return new da($e(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}Be.mixIn(da.prototype),Object.defineProperties(da.prototype,{url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}}),Object.defineProperty(da.prototype,Symbol.toStringTag,{value:"Response",writable:!1,enumerable:!1,configurable:!0});const sa=Symbol("Request internals"),na=m.URL||Ce.URL,la=m.parse,ma=m.format;function ca(e){return/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(e)&&(e=new na(e).toString()),la(e)}const ua="destroy"in l.Readable.prototype;function ha(e){return"object"==typeof e&&"object"==typeof e[sa]}class fa{constructor(e){let a,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ha(e)?a=ca(e.url):(a=ca(e&&e.href?e.href:""+e),e={});let p=t.method||e.method||"GET";if(p=p.toUpperCase(),(null!=t.body||ha(e)&&null!==e.body)&&("GET"===p||"HEAD"===p))throw new TypeError("Request with GET/HEAD method cannot have body");let r=null!=t.body?t.body:ha(e)&&null!==e.body?$e(e):null;Be.call(this,r,{timeout:t.timeout||e.timeout||0,size:t.size||e.size||0});const i=new Ze(t.headers||e.headers||{});if(null!=r&&!i.has("Content-Type")){const e=He(r);e&&i.append("Content-Type",e)}let o=ha(e)?e.signal:null;if("signal"in t&&(o=t.signal),null!=o&&!function(e){const a=e&&"object"==typeof e&&Object.getPrototypeOf(e);return!(!a||"AbortSignal"!==a.constructor.name)}(o))throw new TypeError("Expected signal to be an instanceof AbortSignal");this[sa]={method:p,redirect:t.redirect||e.redirect||"follow",headers:i,parsedURL:a,signal:o},this.follow=void 0!==t.follow?t.follow:void 0!==e.follow?e.follow:20,this.compress=void 0!==t.compress?t.compress:void 0===e.compress||e.compress,this.counter=t.counter||e.counter||0,this.agent=t.agent||e.agent}get method(){return this[sa].method}get url(){return ma(this[sa].parsedURL)}get headers(){return this[sa].headers}get redirect(){return this[sa].redirect}get signal(){return this[sa].signal}clone(){return new fa(this)}}function va(e){Error.call(this,e),this.type="aborted",this.message=e,Error.captureStackTrace(this,this.constructor)}Be.mixIn(fa.prototype),Object.defineProperty(fa.prototype,Symbol.toStringTag,{value:"Request",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(fa.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0}}),(va.prototype=Object.create(Error.prototype)).constructor=va,va.prototype.name="AbortError";const ga=m.URL||Ce.URL,wa=l.PassThrough;function ya(e,a){if(!ya.Promise)throw new Error("native promise missing, set fetch.Promise to your favorite alternative");return Be.Promise=ya.Promise,new ya.Promise(function(t,p){const o=new fa(e,a),d=function(e){const a=e[sa].parsedURL,t=new Ze(e[sa].headers);if(t.has("Accept")||t.set("Accept","*/*"),!a.protocol||!a.hostname)throw new TypeError("Only absolute URLs are supported");if(!/^https?:$/.test(a.protocol))throw new TypeError("Only HTTP(S) protocols are supported");if(e.signal&&e.body instanceof l.Readable&&!ua)throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8");let p=null;if(null==e.body&&/^(POST|PUT)$/i.test(e.method)&&(p="0"),null!=e.body){const a=ze(e);"number"==typeof a&&(p=String(a))}p&&t.set("Content-Length",p),t.has("User-Agent")||t.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"),e.compress&&!t.has("Accept-Encoding")&&t.set("Accept-Encoding","gzip,deflate");let r=e.agent;return"function"==typeof r&&(r=r(a)),t.has("Connection")||r||t.set("Connection","close"),Object.assign({},a,{method:e.method,headers:ra(t),agent:r})}(o),s=("https:"===d.protocol?i:r).request,n=o.signal;let m=null;const c=function(){let e=new va("The user aborted a request.");p(e),o.body&&o.body instanceof l.Readable&&o.body.destroy(e),m&&m.body&&m.body.emit("error",e)};if(n&&n.aborted)return void c();const h=function(){c(),g()},f=s(d);let v;function g(){f.abort(),n&&n.removeEventListener("abort",h),clearTimeout(v)}n&&n.addEventListener("abort",h),o.timeout&&f.once("socket",function(e){v=setTimeout(function(){p(new xe("network timeout at: "+o.url,"request-timeout")),g()},o.timeout)}),f.on("error",function(e){p(new xe(`request to ${o.url} failed, reason: ${e.message}`,"system",e)),g()}),f.on("response",function(e){clearTimeout(v);const a=function(e){const a=new Ze;for(const t of Object.keys(e))if(!We.test(t))if(Array.isArray(e[t]))for(const p of e[t])Je.test(p)||(void 0===a[Xe][t]?a[Xe][t]=[p]:a[Xe][t].push(p));else Je.test(e[t])||(a[Xe][t]=[e[t]]);return a}(e.headers);if(ya.isRedirect(e.statusCode)){const r=a.get("Location");let i=null;try{i=null===r?null:new ga(r,o.url).toString()}catch(e){if("manual"!==o.redirect)return p(new xe("uri requested responds with an invalid redirect URL: "+r,"invalid-redirect")),void g()}switch(o.redirect){case"error":return p(new xe("uri requested responds with a redirect, redirect mode is set to error: "+o.url,"no-redirect")),void g();case"manual":if(null!==i)try{a.set("Location",i)}catch(e){p(e)}break;case"follow":if(null===i)break;if(o.counter>=o.follow)return p(new xe("maximum redirect reached at: "+o.url,"max-redirect")),void g();const r={headers:new Ze(o.headers),follow:o.follow,counter:o.counter+1,agent:o.agent,compress:o.compress,method:o.method,body:o.body,signal:o.signal,timeout:o.timeout,size:o.size};if(!function(e,a){const t=new ga(a).hostname,p=new ga(e).hostname;return t===p||"."===t[t.length-p.length-1]&&t.endsWith(p)}(o.url,i))for(const e of["authorization","www-authenticate","cookie","cookie2"])r.headers.delete(e);return 303!==e.statusCode&&o.body&&null===ze(o)?(p(new xe("Cannot follow redirect with body being a readable stream","unsupported-redirect")),void g()):(303!==e.statusCode&&(301!==e.statusCode&&302!==e.statusCode||"POST"!==o.method)||(r.method="GET",r.body=void 0,r.headers.delete("content-length")),t(ya(new fa(i,r))),void g())}}e.once("end",function(){n&&n.removeEventListener("abort",h)});let r=e.pipe(new wa);const i={url:o.url,status:e.statusCode,statusText:e.statusMessage,headers:a,size:o.size,timeout:o.timeout,counter:o.counter},d=a.get("Content-Encoding");if(!o.compress||"HEAD"===o.method||null===d||204===e.statusCode||304===e.statusCode)return m=new da(r,i),void t(m);if("gzip"==d||"x-gzip"==d)return r=r.pipe(u.createGunzip({flush:u.Z_SYNC_FLUSH,finishFlush:u.Z_SYNC_FLUSH})),m=new da(r,i),void t(m);if("deflate"!=d&&"x-deflate"!=d){if("br"==d&&"function"==typeof u.createBrotliDecompress)return r=r.pipe(u.createBrotliDecompress()),m=new da(r,i),void t(m);m=new da(r,i),t(m)}else e.pipe(new wa).once("data",function(e){r=r.pipe(8==(15&e[0])?u.createInflate():u.createInflateRaw()),m=new da(r,i),t(m)})}),function(e,a){const t=a.body;null===t?e.end():qe(t)?t.stream().pipe(e):Buffer.isBuffer(t)?(e.write(t),e.end()):t.pipe(e)}(f,o)})}ya.isRedirect=function(e){return 301===e||302===e||303===e||307===e||308===e},ya.Promise=global.Promise;class ba extends Error{constructor(e){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="Deprecation"}}var _a=function e(a,t){if(a&&t)return e(a)(t);if("function"!=typeof a)throw new TypeError("need wrapper function");return Object.keys(a).forEach(function(e){p[e]=a[e]}),p;function p(){for(var e=new Array(arguments.length),t=0;tconsole.warn(e)),Na=Ea(e=>console.warn(e));class Da extends Error{constructor(e,a,t){let p;super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="HttpError",this.status=a,"headers"in t&&void 0!==t.headers&&(p=t.headers),"response"in t&&(this.response=t.response,p=t.response.headers);const r=Object.assign({},t.request);t.request.headers.authorization&&(r.headers=Object.assign({},t.request.headers,{authorization:t.request.headers.authorization.replace(/ .*$/," [REDACTED]")})),r.url=r.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=r,Object.defineProperty(this,"code",{get:()=>(Aa(new ba("[@octokit/request-error] `error.code` is deprecated, use `error.status`.")),a)}),Object.defineProperty(this,"headers",{get:()=>(Na(new ba("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`.")),p||{})})}}function ka(e){const a=e.request&&e.request.log?e.request.log:console;(Z(e.body)||Array.isArray(e.body))&&(e.body=JSON.stringify(e.body));let t,p,r={};return(e.request&&e.request.fetch||ya)(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect},e.request)).then(async i=>{p=i.url,t=i.status;for(const e of i.headers)r[e[0]]=e[1];if("deprecation"in r){const t=r.link&&r.link.match(/<([^>]+)>; rel="deprecation"/),p=t&&t.pop();a.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${r.sunset}${p?". See "+p:""}`)}if(204!==t&&205!==t){if("HEAD"===e.method){if(t<400)return;throw new Da(i.statusText,t,{response:{url:p,status:t,headers:r,data:void 0},request:e})}if(304===t)throw new Da("Not modified",t,{response:{url:p,status:t,headers:r,data:await Pa(i)},request:e});if(t>=400){const a=await Pa(i);throw new Da(function(e){return"string"==typeof e?e:"message"in e?Array.isArray(e.errors)?`${e.message}: ${e.errors.map(JSON.stringify).join(", ")}`:e.message:"Unknown error: "+JSON.stringify(e)}(a),t,{response:{url:p,status:t,headers:r,data:a},request:e})}return Pa(i)}}).then(e=>({status:t,url:p,headers:r,data:e})).catch(a=>{if(a instanceof Da)throw a;throw new Da(a.message,500,{request:e})})}async function Pa(e){const a=e.headers.get("content-type");return/application\/json/.test(a)?e.json():!a||/^text\/|charset=utf-8$/.test(a)?e.text():function(e){return e.arrayBuffer()}(e)}const Ca=function e(a,t){const p=a.defaults(t);return Object.assign(function(a,t){const r=p.merge(a,t);if(!r.request||!r.request.hook)return ka(p.parse(r));const i=(e,a)=>ka(p.parse(p.merge(e,a)));return Object.assign(i,{endpoint:p,defaults:e.bind(null,p)}),r.request.hook(i,r)},{endpoint:p,defaults:e.bind(null,p)})}(ue,{headers:{"user-agent":"octokit-request.js/5.6.3 "+I()}});class Ra extends Error{constructor(e,a,t){super("Request failed due to following response errors:\n"+t.errors.map(e=>" - "+e.message).join("\n")),this.request=e,this.headers=a,this.response=t,this.name="GraphqlResponseError",this.errors=t.errors,this.data=t.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}const Fa=["method","baseUrl","url","headers","request","query","mediaType"],Va=["query","method","url"],ja=/\/api\/v3\/?$/;function xa(e,a){const t=e.defaults(a);return Object.assign((e,a)=>function(e,a,t){if(t){if("string"==typeof a&&"query"in t)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(const e in t)if(Va.includes(e))return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}const p="string"==typeof a?Object.assign({query:a},t):a,r=Object.keys(p).reduce((e,a)=>Fa.includes(a)?(e[a]=p[a],e):(e.variables||(e.variables={}),e.variables[a]=p[a],e),{}),i=p.baseUrl||e.endpoint.DEFAULTS.baseUrl;return ja.test(i)&&(r.url=i.replace(ja,"/api/graphql")),e(r).then(e=>{if(e.data.errors){const a={};for(const t of Object.keys(e.headers))a[t]=e.headers[t];throw new Ra(r,a,e.data)}return e.data.data})}(t,e,a),{defaults:xa.bind(null,t),endpoint:Ca.endpoint})}xa(Ca,{headers:{"user-agent":"octokit-graphql.js/4.8.0 "+I()},method:"POST",url:"/graphql"});const Ua=/^v1\./,Ga=/^ghs_/,Ia=/^ghu_/;async function Ba(e){const a=3===e.split(/\./).length,t=Ua.test(e)||Ga.test(e),p=Ia.test(e);return{type:"token",token:e,tokenType:a?"app":t?"installation":p?"user-to-server":"oauth"}}async function La(e,a,t,p){const r=a.endpoint.merge(t,p);return r.headers.authorization=function(e){return 3===e.split(/\./).length?"bearer "+e:"token "+e}(e),a(r)}const Ma=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if("string"!=typeof e)throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(Ba.bind(null,e),{hook:La.bind(null,e)})};class qa{constructor(e={}){const a=new Q,t={baseUrl:Ca.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:a.bind(null,"request")}),mediaType:{previews:[],format:""}};var p;if(t.headers["user-agent"]=[e.userAgent,"octokit-core.js/3.5.1 "+I()].filter(Boolean).join(" "),e.baseUrl&&(t.baseUrl=e.baseUrl),e.previews&&(t.mediaType.previews=e.previews),e.timeZone&&(t.headers["time-zone"]=e.timeZone),this.request=Ca.defaults(t),this.graphql=(p=this.request,xa(p,{method:"POST",url:"/graphql"})).defaults(t),this.log=Object.assign({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},e.log),this.hook=a,e.authStrategy){const{authStrategy:t,...p}=e,r=t(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:p},e.auth));a.wrap("request",r.hook),this.auth=r}else if(e.auth){const t=Ma(e.auth);a.wrap("request",t.hook),this.auth=t}else this.auth=async()=>({type:"unauthenticated"});this.constructor.plugins.forEach(a=>{Object.assign(this,a(this,e))})}static defaults(e){return class extends(this){constructor(...a){const t=a[0]||{};super("function"!=typeof e?Object.assign({},e,t,t.userAgent&&e.userAgent?{userAgent:`${t.userAgent} ${e.userAgent}`}:null):e(t))}}}static plugin(...e){var a;const t=this.plugins;return(a=class extends(this){}).plugins=t.concat(e.filter(e=>!t.includes(e))),a}}qa.VERSION="3.5.1",qa.plugins=[];var $a={__proto__:null,Octokit:qa};const Ha={actions:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createOrUpdateEnvironmentSecret:["PUT /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getEnvironmentPublicKey:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repositories/{repository_id}/environments/{environment_name}/secrets"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createContentAttachment:["POST /content_references/{content_reference_id}/attachments",{mediaType:{previews:["corsair"]}}],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct",{mediaType:{previews:["scarlet-witch"]}}],getConductCode:["GET /codes_of_conduct/{key}",{mediaType:{previews:["scarlet-witch"]}}],getForRepo:["GET /repos/{owner}/{repo}/community/code_of_conduct",{mediaType:{previews:["scarlet-witch"]}}]},emojis:{get:["GET /emojis"]},enterpriseAdmin:{disableSelectedOrganizationGithubActionsEnterprise:["DELETE /enterprises/{enterprise}/actions/permissions/organizations/{org_id}"],enableSelectedOrganizationGithubActionsEnterprise:["PUT /enterprises/{enterprise}/actions/permissions/organizations/{org_id}"],getAllowedActionsEnterprise:["GET /enterprises/{enterprise}/actions/permissions/selected-actions"],getGithubActionsPermissionsEnterprise:["GET /enterprises/{enterprise}/actions/permissions"],listSelectedOrganizationsEnabledGithubActionsEnterprise:["GET /enterprises/{enterprise}/actions/permissions/organizations"],setAllowedActionsEnterprise:["PUT /enterprises/{enterprise}/actions/permissions/selected-actions"],setGithubActionsPermissionsEnterprise:["PUT /enterprises/{enterprise}/actions/permissions"],setSelectedOrganizationsEnabledGithubActionsEnterprise:["PUT /enterprises/{enterprise}/actions/permissions/organizations"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline",{mediaType:{previews:["mockingbird"]}}],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{cancelImport:["DELETE /repos/{owner}/{repo}/import"],deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive",{mediaType:{previews:["wyandotte"]}}],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive",{mediaType:{previews:["wyandotte"]}}],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive",{mediaType:{previews:["wyandotte"]}}],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive",{mediaType:{previews:["wyandotte"]}}],getCommitAuthors:["GET /repos/{owner}/{repo}/import/authors"],getImportStatus:["GET /repos/{owner}/{repo}/import"],getLargeFiles:["GET /repos/{owner}/{repo}/import/large_files"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}",{mediaType:{previews:["wyandotte"]}}],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}",{mediaType:{previews:["wyandotte"]}}],listForAuthenticatedUser:["GET /user/migrations",{mediaType:{previews:["wyandotte"]}}],listForOrg:["GET /orgs/{org}/migrations",{mediaType:{previews:["wyandotte"]}}],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories",{mediaType:{previews:["wyandotte"]}}],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{mediaType:{previews:["wyandotte"]}}],mapCommitAuthor:["PATCH /repos/{owner}/{repo}/import/authors/{author_id}"],setLfsPreference:["PATCH /repos/{owner}/{repo}/import/lfs"],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],startImport:["PUT /repos/{owner}/{repo}/import"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock",{mediaType:{previews:["wyandotte"]}}],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock",{mediaType:{previews:["wyandotte"]}}],updateImport:["PATCH /repos/{owner}/{repo}/import"]},orgs:{blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createInvitation:["POST /orgs/{org}/invitations"],createWebhook:["POST /orgs/{org}/hooks"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],get:["GET /orgs/{org}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listWebhooks:["GET /orgs/{org}/hooks"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}",{mediaType:{previews:["inertia"]}}],createCard:["POST /projects/columns/{column_id}/cards",{mediaType:{previews:["inertia"]}}],createColumn:["POST /projects/{project_id}/columns",{mediaType:{previews:["inertia"]}}],createForAuthenticatedUser:["POST /user/projects",{mediaType:{previews:["inertia"]}}],createForOrg:["POST /orgs/{org}/projects",{mediaType:{previews:["inertia"]}}],createForRepo:["POST /repos/{owner}/{repo}/projects",{mediaType:{previews:["inertia"]}}],delete:["DELETE /projects/{project_id}",{mediaType:{previews:["inertia"]}}],deleteCard:["DELETE /projects/columns/cards/{card_id}",{mediaType:{previews:["inertia"]}}],deleteColumn:["DELETE /projects/columns/{column_id}",{mediaType:{previews:["inertia"]}}],get:["GET /projects/{project_id}",{mediaType:{previews:["inertia"]}}],getCard:["GET /projects/columns/cards/{card_id}",{mediaType:{previews:["inertia"]}}],getColumn:["GET /projects/columns/{column_id}",{mediaType:{previews:["inertia"]}}],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission",{mediaType:{previews:["inertia"]}}],listCards:["GET /projects/columns/{column_id}/cards",{mediaType:{previews:["inertia"]}}],listCollaborators:["GET /projects/{project_id}/collaborators",{mediaType:{previews:["inertia"]}}],listColumns:["GET /projects/{project_id}/columns",{mediaType:{previews:["inertia"]}}],listForOrg:["GET /orgs/{org}/projects",{mediaType:{previews:["inertia"]}}],listForRepo:["GET /repos/{owner}/{repo}/projects",{mediaType:{previews:["inertia"]}}],listForUser:["GET /users/{username}/projects",{mediaType:{previews:["inertia"]}}],moveCard:["POST /projects/columns/cards/{card_id}/moves",{mediaType:{previews:["inertia"]}}],moveColumn:["POST /projects/columns/{column_id}/moves",{mediaType:{previews:["inertia"]}}],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}",{mediaType:{previews:["inertia"]}}],update:["PATCH /projects/{project_id}",{mediaType:{previews:["inertia"]}}],updateCard:["PATCH /projects/columns/cards/{card_id}",{mediaType:{previews:["inertia"]}}],updateColumn:["PATCH /projects/columns/{column_id}",{mediaType:{previews:["inertia"]}}]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch",{mediaType:{previews:["lydian"]}}],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteLegacy:["DELETE /reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}},{deprecated:"octokit.rest.reactions.deleteLegacy() is deprecated, see https://docs.github.com/rest/reference/reactions/#delete-a-reaction-legacy"}],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts",{mediaType:{previews:["dorian"]}}],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures",{mediaType:{previews:["zzzax"]}}],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createPagesSite:["POST /repos/{owner}/{repo}/pages",{mediaType:{previews:["switcheroo"]}}],createRelease:["POST /repos/{owner}/{repo}/releases"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate",{mediaType:{previews:["baptiste"]}}],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures",{mediaType:{previews:["zzzax"]}}],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages",{mediaType:{previews:["switcheroo"]}}],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes",{mediaType:{previews:["london"]}}],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts",{mediaType:{previews:["dorian"]}}],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes",{mediaType:{previews:["london"]}}],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts",{mediaType:{previews:["dorian"]}}],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics",{mediaType:{previews:["mercy"]}}],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures",{mediaType:{previews:["zzzax"]}}],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head",{mediaType:{previews:["groot"]}}],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls",{mediaType:{previews:["groot"]}}],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics",{mediaType:{previews:["mercy"]}}],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits",{mediaType:{previews:["cloak"]}}],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics",{mediaType:{previews:["mercy"]}}],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}",{mediaType:{previews:["inertia"]}}],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}",{mediaType:{previews:["inertia"]}}],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects",{mediaType:{previews:["inertia"]}}],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys"],deleteEmailForAuthenticated:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};function za(e,a,t,p,r){const i=e.request.defaults(p);return Object.assign(function(...p){let o=i.endpoint.merge(...p);if(r.mapToData)return o=Object.assign({},o,{data:o[r.mapToData],[r.mapToData]:void 0}),i(o);if(r.renamed){const[p,i]=r.renamed;e.log.warn(`octokit.${a}.${t}() has been renamed to octokit.${p}.${i}()`)}if(r.deprecated&&e.log.warn(r.deprecated),r.renamedParameters){const o=i.endpoint.merge(...p);for(const[p,i]of Object.entries(r.renamedParameters))p in o&&(e.log.warn(`"${p}" parameter is deprecated for "octokit.${a}.${t}()". Use "${i}" instead`),i in o||(o[i]=o[p]),delete o[p]);return i(o)}return i(...p)},i)}function Wa(e){const a=function(e,a){const t={};for(const[p,r]of Object.entries(a))for(const[a,i]of Object.entries(r)){const[r,o,d]=i,[s,n]=r.split(/ /),l=Object.assign({method:s,url:n},o);t[p]||(t[p]={}),t[p][a]=d?za(e,p,a,l,d):e.request.defaults(l)}return t}(e,Ha);return{...a,rest:a}}Wa.VERSION="4.15.1";var Ja=Wa;function Ya(e,a,t){const p="function"==typeof a?a.endpoint(t):e.request.endpoint(a,t),r="function"==typeof a?a:e.request,i=p.method,o=p.headers;let d=p.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!d)return{done:!0};try{const e=function(e){if(!e.data)return{...e,data:[]};if(!("total_count"in e.data)||"url"in e.data)return e;const a=e.data.incomplete_results,t=e.data.repository_selection,p=e.data.total_count;delete e.data.incomplete_results,delete e.data.repository_selection,delete e.data.total_count;const r=Object.keys(e.data)[0];return e.data=e.data[r],void 0!==a&&(e.data.incomplete_results=a),void 0!==t&&(e.data.repository_selection=t),e.data.total_count=p,e}(await r({method:i,url:d,headers:o}));return d=((e.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1],{value:e}}catch(e){if(409!==e.status)throw e;return d="",{value:{status:200,headers:{},data:[]}}}}})}}function Ka(e,a,t,p){return"function"==typeof t&&(p=t,t=void 0),function e(a,t,p,r){return p.next().then(i=>{if(i.done)return t;let o=!1;return t=t.concat(r?r(i.value,function(){o=!0}):i.value.data),o?t:e(a,t,p,r)})}(e,[],Ya(e,a,t)[Symbol.asyncIterator](),p)}function Qa(e){return{paginate:Object.assign(Ka.bind(null,e),{iterator:Ya.bind(null,e)})}}Object.assign(Ka,{iterator:Ya}),Qa.VERSION="2.17.0";var Xa,Za=Qa,et=_(function(e,a){var t=y&&y.__createBinding||(Object.create?function(e,a,t,p){void 0===p&&(p=t),Object.defineProperty(e,p,{enumerable:!0,get:function(){return a[t]}})}:function(e,a,t,p){void 0===p&&(p=t),e[p]=a[t]}),p=y&&y.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:!0,value:a})}:function(e,a){e.default=a}),r=y&&y.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&t(a,e,r);return p(a,e),a};Object.defineProperty(a,"__esModule",{value:!0}),a.getOctokitOptions=a.GitHub=a.context=void 0;const i=r(U),o=r(G);a.context=new i.Context;const d=o.getApiBaseUrl(),s={baseUrl:d,request:{agent:o.getProxyAgent(d)}};a.GitHub=$a.Octokit.plugin(Ja,Za).defaults(s),a.getOctokitOptions=function(e,a){const t=Object.assign({},a||{}),p=o.getAuthString(e,t);return p&&(t.auth=p),t}}),at=_(function(e,a){var t=y&&y.__createBinding||(Object.create?function(e,a,t,p){void 0===p&&(p=t),Object.defineProperty(e,p,{enumerable:!0,get:function(){return a[t]}})}:function(e,a,t,p){void 0===p&&(p=t),e[p]=a[t]}),p=y&&y.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:!0,value:a})}:function(e,a){e.default=a}),r=y&&y.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&t(a,e,r);return p(a,e),a};Object.defineProperty(a,"__esModule",{value:!0}),a.getOctokit=a.context=void 0;const i=r(U);a.context=new i.Context,a.getOctokit=function(e,a){return new et.GitHub(et.getOctokitOptions(e,a))}}),tt=_(function(e,t){var r,i=y&&y.__createBinding||(Object.create?function(e,a,t,p){void 0===p&&(p=t),Object.defineProperty(e,p,{enumerable:!0,get:function(){return a[t]}})}:function(e,a,t,p){void 0===p&&(p=t),e[p]=a[t]}),o=y&&y.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:!0,value:a})}:function(e,a){e.default=a}),d=y&&y.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(null!=e)for(var t in e)"default"!==t&&Object.hasOwnProperty.call(e,t)&&i(a,e,t);return o(a,e),a},s=y&&y.__awaiter||function(e,a,t,p){return new(t||(t=Promise))(function(r,i){function o(e){try{s(p.next(e))}catch(e){i(e)}}function d(e){try{s(p.throw(e))}catch(e){i(e)}}function s(e){var a;e.done?r(e.value):(a=e.value,a instanceof t?a:new t(function(e){e(a)})).then(o,d)}s((p=p.apply(e,a||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.getCmdPath=t.tryGetExecutablePath=t.isRooted=t.isDirectory=t.exists=t.IS_WINDOWS=t.unlink=t.symlink=t.stat=t.rmdir=t.rename=t.readlink=t.readdir=t.mkdir=t.lstat=t.copyFile=t.chmod=void 0;const n=d(p),l=d(a);function m(e){return(1&e.mode)>0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}t.chmod=(r=n.promises).chmod,t.copyFile=r.copyFile,t.lstat=r.lstat,t.mkdir=r.mkdir,t.readdir=r.readdir,t.readlink=r.readlink,t.rename=r.rename,t.rmdir=r.rmdir,t.stat=r.stat,t.symlink=r.symlink,t.unlink=r.unlink,t.IS_WINDOWS="win32"===process.platform,t.exists=function(e){return s(this,void 0,void 0,function*(){try{yield t.stat(e)}catch(e){if("ENOENT"===e.code)return!1;throw e}return!0})},t.isDirectory=function(e,a=!1){return s(this,void 0,void 0,function*(){return(a?yield t.stat(e):yield t.lstat(e)).isDirectory()})},t.isRooted=function(e){if(!(e=function(e){return e=e||"",t.IS_WINDOWS?(e=e.replace(/\//g,"\\")).replace(/\\\\+/g,"\\"):e.replace(/\/\/+/g,"/")}(e)))throw new Error('isRooted() parameter "p" cannot be empty');return t.IS_WINDOWS?e.startsWith("\\")||/^[A-Z]:/i.test(e):e.startsWith("/")},t.tryGetExecutablePath=function(e,a){return s(this,void 0,void 0,function*(){let p=void 0;try{p=yield t.stat(e)}catch(a){"ENOENT"!==a.code&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${a}`)}if(p&&p.isFile())if(t.IS_WINDOWS){const t=l.extname(e).toUpperCase();if(a.some(e=>e.toUpperCase()===t))return e}else if(m(p))return e;const r=e;for(const i of a){e=r+i,p=void 0;try{p=yield t.stat(e)}catch(a){"ENOENT"!==a.code&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${a}`)}if(p&&p.isFile()){if(t.IS_WINDOWS){try{const a=l.dirname(e),p=l.basename(e).toUpperCase();for(const r of yield t.readdir(a))if(p===r.toUpperCase()){e=l.join(a,r);break}}catch(a){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${a}`)}return e}if(m(p))return e}}return""})},t.getCmdPath=function(){var e;return null!==(e=process.env.COMSPEC)&&void 0!==e?e:"cmd.exe"}}),pt=_(function(e,t){var p=y&&y.__createBinding||(Object.create?function(e,a,t,p){void 0===p&&(p=t),Object.defineProperty(e,p,{enumerable:!0,get:function(){return a[t]}})}:function(e,a,t,p){void 0===p&&(p=t),e[p]=a[t]}),r=y&&y.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:!0,value:a})}:function(e,a){e.default=a}),i=y&&y.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(null!=e)for(var t in e)"default"!==t&&Object.hasOwnProperty.call(e,t)&&p(a,e,t);return r(a,e),a},o=y&&y.__awaiter||function(e,a,t,p){return new(t||(t=Promise))(function(r,i){function o(e){try{s(p.next(e))}catch(e){i(e)}}function d(e){try{s(p.throw(e))}catch(e){i(e)}}function s(e){var a;e.done?r(e.value):(a=e.value,a instanceof t?a:new t(function(e){e(a)})).then(o,d)}s((p=p.apply(e,a||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.findInPath=t.which=t.mkdirP=t.rmRF=t.mv=t.cp=void 0;const d=i(f),l=i(a),m=i(tt),c=n.promisify(d.exec),u=n.promisify(d.execFile);function h(e){return o(this,void 0,void 0,function*(){if(m.IS_WINDOWS){if(/[*"<>|]/.test(e))throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{const a=m.getCmdPath();(yield m.isDirectory(e,!0))?yield c(a+' /s /c "rd /s /q "%inputPath%""',{env:{inputPath:e}}):yield c(a+' /s /c "del /f /a "%inputPath%""',{env:{inputPath:e}})}catch(e){if("ENOENT"!==e.code)throw e}try{yield m.unlink(e)}catch(e){if("ENOENT"!==e.code)throw e}}else{let a=!1;try{a=yield m.isDirectory(e)}catch(e){if("ENOENT"!==e.code)throw e;return}a?yield u("rm",["-rf",""+e]):yield m.unlink(e)}})}function v(e){return o(this,void 0,void 0,function*(){s.ok(e,"a path argument must be provided"),yield m.mkdir(e,{recursive:!0})})}function g(e){return o(this,void 0,void 0,function*(){if(!e)throw new Error("parameter 'tool' is required");const a=[];if(m.IS_WINDOWS&&process.env.PATHEXT)for(const e of process.env.PATHEXT.split(l.delimiter))e&&a.push(e);if(m.isRooted(e)){const t=yield m.tryGetExecutablePath(e,a);return t?[t]:[]}if(e.includes(l.sep))return[];const t=[];if(process.env.PATH)for(const e of process.env.PATH.split(l.delimiter))e&&t.push(e);const p=[];for(const r of t){const t=yield m.tryGetExecutablePath(l.join(r,e),a);t&&p.push(t)}return p})}function w(e,a,t){return o(this,void 0,void 0,function*(){if((yield m.lstat(e)).isSymbolicLink()){try{yield m.lstat(a),yield m.unlink(a)}catch(e){"EPERM"===e.code&&(yield m.chmod(a,"0666"),yield m.unlink(a))}const t=yield m.readlink(e);yield m.symlink(t,a,m.IS_WINDOWS?"junction":null)}else(yield m.exists(a))&&!t||(yield m.copyFile(e,a))})}t.cp=function(e,a,t={}){return o(this,void 0,void 0,function*(){const{force:p,recursive:r,copySourceDirectory:i}=function(e){return{force:null==e.force||e.force,recursive:Boolean(e.recursive),copySourceDirectory:null==e.copySourceDirectory||Boolean(e.copySourceDirectory)}}(t),d=(yield m.exists(a))?yield m.stat(a):null;if(d&&d.isFile()&&!p)return;const s=d&&d.isDirectory()&&i?l.join(a,l.basename(e)):a;if(!(yield m.exists(e)))throw new Error("no such file or directory: "+e);if((yield m.stat(e)).isDirectory()){if(!r)throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield function e(a,t,p,r){return o(this,void 0,void 0,function*(){if(p>=255)return;p++,yield v(t);const i=yield m.readdir(a);for(const o of i){const i=`${a}/${o}`,d=`${t}/${o}`;(yield m.lstat(i)).isDirectory()?yield e(i,d,p,r):yield w(i,d,r)}yield m.chmod(t,(yield m.stat(a)).mode)})}(e,s,0,p)}else{if(""===l.relative(e,s))throw new Error(`'${s}' and '${e}' are the same file`);yield w(e,s,p)}})},t.mv=function(e,a,t={}){return o(this,void 0,void 0,function*(){if(yield m.exists(a)){let p=!0;if((yield m.isDirectory(a))&&(a=l.join(a,l.basename(e)),p=yield m.exists(a)),p){if(null!=t.force&&!t.force)throw new Error("Destination already exists");yield h(a)}}yield v(l.dirname(a)),yield m.rename(e,a)})},t.rmRF=h,t.mkdirP=v,t.which=function e(a,t){return o(this,void 0,void 0,function*(){if(!a)throw new Error("parameter 'tool' is required");if(t){const t=yield e(a,!1);if(!t)throw m.IS_WINDOWS?new Error(`Unable to locate executable file: ${a}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`):new Error(`Unable to locate executable file: ${a}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);return t}const p=yield g(a);return p&&p.length>0?p[0]:""})},t.findInPath=g}),rt=_(function(e,p){var r=y&&y.__createBinding||(Object.create?function(e,a,t,p){void 0===p&&(p=t),Object.defineProperty(e,p,{enumerable:!0,get:function(){return a[t]}})}:function(e,a,t,p){void 0===p&&(p=t),e[p]=a[t]}),i=y&&y.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:!0,value:a})}:function(e,a){e.default=a}),o=y&&y.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(null!=e)for(var t in e)"default"!==t&&Object.hasOwnProperty.call(e,t)&&r(a,e,t);return i(a,e),a},s=y&&y.__awaiter||function(e,a,t,p){return new(t||(t=Promise))(function(r,i){function o(e){try{s(p.next(e))}catch(e){i(e)}}function d(e){try{s(p.throw(e))}catch(e){i(e)}}function s(e){var a;e.done?r(e.value):(a=e.value,a instanceof t?a:new t(function(e){e(a)})).then(o,d)}s((p=p.apply(e,a||[])).next())})};Object.defineProperty(p,"__esModule",{value:!0}),p.argStringToArray=p.ToolRunner=void 0;const n=o(t),l=o(d),m=o(f),c=o(a),u=o(pt),h=o(tt),g="win32"===process.platform;p.ToolRunner=class extends l.EventEmitter{constructor(e,a,t){if(super(),!e)throw new Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=a||[],this.options=t||{}}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e)}_getCommandString(e,a){const t=this._getSpawnFileName(),p=this._getSpawnArgs(e);let r=a?"":"[command]";if(g)if(this._isCmdFile()){r+=t;for(const e of p)r+=" "+e}else if(e.windowsVerbatimArguments){r+=`"${t}"`;for(const e of p)r+=" "+e}else{r+=this._windowsQuoteCmdArg(t);for(const e of p)r+=" "+this._windowsQuoteCmdArg(e)}else{r+=t;for(const e of p)r+=" "+e}return r}_processLineBuffer(e,a,t){try{let p=a+e.toString(),r=p.indexOf(n.EOL);for(;r>-1;)t(p.substring(0,r)),p=p.substring(r+n.EOL.length),r=p.indexOf(n.EOL);return p}catch(e){return this._debug("error processing line. Failed with error "+e),""}}_getSpawnFileName(){return g&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(e){if(g&&this._isCmdFile()){let a='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath);for(const t of this.args)a+=" ",a+=e.windowsVerbatimArguments?t:this._windowsQuoteCmdArg(t);return a+='"',[a]}return this.args}_endsWith(e,a){return e.endsWith(a)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile())return this._uvQuoteCmdArg(e);if(!e)return'""';const a=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let t=!1;for(const p of e)if(a.some(e=>e===p)){t=!0;break}if(!t)return e;let p='"',r=!0;for(let a=e.length;a>0;a--)p+=e[a-1],r&&"\\"===e[a-1]?p+="\\":'"'===e[a-1]?(r=!0,p+='"'):r=!1;return p+='"',p.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let a='"',t=!0;for(let p=e.length;p>0;p--)a+=e[p-1],t&&"\\"===e[p-1]?a+="\\":'"'===e[p-1]?(t=!0,a+="\\"):t=!1;return a+='"',a.split("").reverse().join("")}_cloneExecOptions(e){const a={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return a.outStream=e.outStream||process.stdout,a.errStream=e.errStream||process.stderr,a}_getSpawnOptions(e,a){const t={};return t.cwd=(e=e||{}).cwd,t.env=e.env,t.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(t.argv0=`"${a}"`),t}exec(){return s(this,void 0,void 0,function*(){return!h.isRooted(this.toolPath)&&(this.toolPath.includes("/")||g&&this.toolPath.includes("\\"))&&(this.toolPath=c.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield u.which(this.toolPath,!0),new Promise((e,a)=>s(this,void 0,void 0,function*(){this._debug("exec tool: "+this.toolPath),this._debug("arguments:");for(const e of this.args)this._debug(" "+e);const t=this._cloneExecOptions(this.options);!t.silent&&t.outStream&&t.outStream.write(this._getCommandString(t)+n.EOL);const p=new w(t,this.toolPath);if(p.on("debug",e=>{this._debug(e)}),this.options.cwd&&!(yield h.exists(this.options.cwd)))return a(new Error(`The cwd: ${this.options.cwd} does not exist!`));const r=this._getSpawnFileName(),i=m.spawn(r,this._getSpawnArgs(t),this._getSpawnOptions(this.options,r));let o="";i.stdout&&i.stdout.on("data",e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!t.silent&&t.outStream&&t.outStream.write(e),o=this._processLineBuffer(e,o,e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e)})});let d="";if(i.stderr&&i.stderr.on("data",e=>{p.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!t.silent&&t.errStream&&t.outStream&&(t.failOnStdErr?t.errStream:t.outStream).write(e),d=this._processLineBuffer(e,d,e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e)})}),i.on("error",e=>{p.processError=e.message,p.processExited=!0,p.processClosed=!0,p.CheckComplete()}),i.on("exit",e=>{p.processExitCode=e,p.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),p.CheckComplete()}),i.on("close",e=>{p.processExitCode=e,p.processExited=!0,p.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),p.CheckComplete()}),p.on("done",(t,p)=>{o.length>0&&this.emit("stdline",o),d.length>0&&this.emit("errline",d),i.removeAllListeners(),t?a(t):e(p)}),this.options.input){if(!i.stdin)throw new Error("child process missing stdin");i.stdin.end(this.options.input)}}))})}},p.argStringToArray=function(e){const a=[];let t=!1,p=!1,r="";function i(e){p&&'"'!==e&&(r+="\\"),r+=e,p=!1}for(let o=0;o0&&(a.push(r),r=""):p?i(d):t=!t}return r.length>0&&a.push(r.trim()),a};class w extends l.EventEmitter{constructor(e,a){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!a)throw new Error("toolPath must not be empty");this.options=e,this.toolPath=a,e.delay&&(this.delay=e.delay)}CheckComplete(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=v.setTimeout(w.HandleTimeout,this.delay,this)))}_debug(e){this.emit("debug",e)}_setResult(){let e;this.processExited&&(this.processError?e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):0===this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)):e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)}static HandleTimeout(e){e.done||(!e.processClosed&&e.processExited&&e._debug(`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`),e._setResult())}}}),it=b(_(function(e,a){var t=y&&y.__createBinding||(Object.create?function(e,a,t,p){void 0===p&&(p=t),Object.defineProperty(e,p,{enumerable:!0,get:function(){return a[t]}})}:function(e,a,t,p){void 0===p&&(p=t),e[p]=a[t]}),p=y&&y.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:!0,value:a})}:function(e,a){e.default=a}),r=y&&y.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&t(a,e,r);return p(a,e),a},i=y&&y.__awaiter||function(e,a,t,p){return new(t||(t=Promise))(function(r,i){function o(e){try{s(p.next(e))}catch(e){i(e)}}function d(e){try{s(p.throw(e))}catch(e){i(e)}}function s(e){var a;e.done?r(e.value):(a=e.value,a instanceof t?a:new t(function(e){e(a)})).then(o,d)}s((p=p.apply(e,a||[])).next())})};Object.defineProperty(a,"__esModule",{value:!0}),a.getExecOutput=a.exec=void 0;const o=r(rt);function d(e,a,t){return i(this,void 0,void 0,function*(){const p=o.argStringToArray(e);if(0===p.length)throw new Error("Parameter 'commandLine' cannot be null or empty.");const r=p[0];return a=p.slice(1).concat(a||[]),new o.ToolRunner(r,a,t).exec()})}a.exec=d,a.getExecOutput=function(e,a,t){var p,r;return i(this,void 0,void 0,function*(){let i="",o="";const s=new h.StringDecoder("utf8"),n=new h.StringDecoder("utf8"),l=null===(p=null==t?void 0:t.listeners)||void 0===p?void 0:p.stdout,m=null===(r=null==t?void 0:t.listeners)||void 0===r?void 0:r.stderr,c=Object.assign(Object.assign({},null==t?void 0:t.listeners),{stdout:e=>{i+=s.write(e),l&&l(e)},stderr:e=>{o+=n.write(e),m&&m(e)}}),u=yield d(e,a,Object.assign(Object.assign({},t),{listeners:c}));return i+=s.end(),o+=n.end(),{exitCode:u,stdout:i,stderr:o}})}})),ot=Object.prototype.toString,dt=function(e){var a=ot.call(e),t="[object Arguments]"===a;return t||(t="[object Array]"!==a&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===ot.call(e.callee)),t};if(!Object.keys){var st=Object.prototype.hasOwnProperty,nt=Object.prototype.toString,lt=dt,mt=Object.prototype.propertyIsEnumerable,ct=!mt.call({toString:null},"toString"),ut=mt.call(function(){},"prototype"),ht=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],ft=function(e){var a=e.constructor;return a&&a.prototype===e},vt={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},gt=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!vt["$"+e]&&st.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{ft(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();Xa=function(e){var a=null!==e&&"object"==typeof e,t="[object Function]"===nt.call(e),p=lt(e),r=a&&"[object String]"===nt.call(e),i=[];if(!a&&!t&&!p)throw new TypeError("Object.keys called on a non-object");var o=ut&&t;if(r&&e.length>0&&!st.call(e,0))for(var d=0;d0)for(var s=0;s2?arguments[2]:{},p=Et(a);Tt&&(p=Ot.call(p,Object.getOwnPropertySymbols(a)));for(var r=0;r1&&"boolean"!=typeof a)throw new tp('"allowMissing" argument must be a boolean');var t=yp(e),p=t.length>0?t[0]:"",r=bp("%"+p+"%",a),i=r.name,o=r.value,d=!1,s=r.alias;s&&(p=s[0],hp(t,up([0,1],s)));for(var n=1,l=!0;n=t.length){var h=rp(o,m);o=(l=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:o[m]}else l=Zt(o,m),o=o[m];l&&!d&&(mp[i]=o)}}return o},Ep=_(function(e){var a=_p("%Function.prototype.apply%"),t=_p("%Function.prototype.call%"),p=_p("%Reflect.apply%",!0)||Yt.call(t,a),r=_p("%Object.getOwnPropertyDescriptor%",!0),i=_p("%Object.defineProperty%",!0),o=_p("%Math.max%");if(i)try{i({},"a",{value:1})}catch(e){i=null}e.exports=function(e){var a=p(Yt,t,arguments);if(r&&i){var d=r(a,"length");d.configurable&&i(a,"length",{value:1+o(0,e.length-(arguments.length-1))})}return a};var d=function(){return p(Yt,a,arguments)};i?i(e.exports,"apply",{value:d}):e.exports.apply=d}),Tp=Ep(_p("String.prototype.indexOf")),Sp=function(e,a){var t=_p(e,!!a);return"function"==typeof t&&Tp(e,".prototype.")>-1?Ep(t):t},Op=_p("%Array%"),Ap=!Op.isArray&&Sp("Object.prototype.toString"),Np=Op.isArray||function(e){return"[object Array]"===Ap(e)},Dp=_p("%Object.defineProperty%",!0);if(Dp)try{Dp({},"a",{value:1})}catch(e){Dp=null}var kp=Object.defineProperty&&0===Object.defineProperty([],"length",{value:1}).length,Pp=kp&&Np,Cp=Sp("Object.prototype.propertyIsEnumerable"),Rp=_p("%TypeError%"),Fp=_p("%SyntaxError%"),Vp={"Property Descriptor":function(e,a){if("Object"!==e(a))return!1;var t={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var p in a)if(Zt(a,p)&&!t[p])return!1;var r=Zt(a,"[[Value]]"),i=Zt(a,"[[Get]]")||Zt(a,"[[Set]]");if(r&&i)throw new Rp("Property Descriptors may not be both accessor and data descriptors");return!0}},jp=function(e,a,t,p){var r=Vp[a];if("function"!=typeof r)throw new Fp("unknown record type: "+a);if(!r(e,p))throw new Rp(t+" must be a "+a)},xp=function(e){return"symbol"==typeof e?"Symbol":"bigint"==typeof e?"BigInt":function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0}(e)},Up=function(e){if(void 0===e)return e;jp(xp,"Property Descriptor","Desc",e);var a={};return"[[Value]]"in e&&(a.value=e["[[Value]]"]),"[[Writable]]"in e&&(a.writable=e["[[Writable]]"]),"[[Get]]"in e&&(a.get=e["[[Get]]"]),"[[Set]]"in e&&(a.set=e["[[Set]]"]),"[[Enumerable]]"in e&&(a.enumerable=e["[[Enumerable]]"]),"[[Configurable]]"in e&&(a.configurable=e["[[Configurable]]"]),a},Gp=_p("%Object.getOwnPropertyDescriptor%",!0);if(Gp)try{Gp([],"length")}catch(e){Gp=null}var Ip,Bp,Lp,Mp,qp=Gp,$p=_p("%Array%"),Hp=!$p.isArray&&Sp("Object.prototype.toString"),zp=$p.isArray||function(e){return"[object Array]"===Hp(e)},Wp=function(e){return"string"==typeof e||"symbol"==typeof e},Jp=Kt()&&!!Symbol.toStringTag;if(Jp){Ip=Sp("Object.prototype.hasOwnProperty"),Bp=Sp("RegExp.prototype.exec"),Lp={};var Yp=function(){throw Lp};Mp={toString:Yp,valueOf:Yp},"symbol"==typeof Symbol.toPrimitive&&(Mp[Symbol.toPrimitive]=Yp)}var Kp=Sp("Object.prototype.toString"),Qp=Object.getOwnPropertyDescriptor,Xp=Jp?function(e){if(!e||"object"!=typeof e)return!1;var a=Qp(e,"lastIndex");if(!a||!Ip(a,"value"))return!1;try{Bp(e,Mp)}catch(e){return e===Lp}}:function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===Kp(e)},Zp=function(e){return!!e},er=_p("%Symbol.match%",!0),ar=Bt,tr=_p("%TypeError%"),pr=_p("%TypeError%"),rr=Sp("Object.prototype.propertyIsEnumerable"),ir=function(e){return void 0!==e&&(jp(xp,"Property Descriptor","Desc",e),!(!Zt(e,"[[Value]]")&&!Zt(e,"[[Writable]]")))},or=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e},dr=_p("%Object%"),sr=dr.isExtensible,nr=dr.preventExtensions?function(e){return!or(e)&&sr(e)}:function(e){return!or(e)},lr=Number.isNaN||function(e){return e!=e},mr=function(e,a){return e===a?0!==e||1/e==1/a:lr(e)&&lr(a)},cr=_p("%TypeError%"),ur=_p("%TypeError%"),hr=function(e,a){if(null==e)throw new ur(a||"Cannot call method on "+e);return e},fr=_p("%Object%"),vr=Object.getOwnPropertyDescriptor,gr=Object.getOwnPropertyNames,wr=Object.getOwnPropertySymbols,yr=Sp("Array.prototype.concat"),br=Sp("Array.prototype.reduce"),_r=wr?function(e){return yr(gr(e),wr(e))}:gr,Er=ar(vr)&&ar(gr),Tr=function(e){if(hr(e),!Er)throw new TypeError("getOwnPropertyDescriptors requires Object.getOwnPropertyDescriptor");var a=function(e){return hr(e),fr(e)}(e);return br(_r(a),function(e,t){var p=vr(a,t);return void 0!==p&&function(e,a,t){if("Object"!==xp(e))throw new cr("Assertion failed: Type(O) is not Object");if(!Wp(a))throw new cr("Assertion failed: IsPropertyKey(P) is not true");var p=function(e,a){if("Object"!==xp(e))throw new pr("Assertion failed: O must be an Object");if(!Wp(a))throw new pr("Assertion failed: P must be a Property Key");if(Zt(e,a)){if(!qp){var t=zp(e)&&"length"===a,p=function(e){if(!e||"object"!=typeof e)return!1;if(er){var a=e[er];if(void 0!==a)return Zp(a)}return Xp(e)}(e)&&"lastIndex"===a;return{"[[Configurable]]":!(t||p),"[[Enumerable]]":rr(e,a),"[[Value]]":e[a],"[[Writable]]":!0}}return function(e){if("Object"!==xp(e))throw new tr("ToPropertyDescriptor requires an object");var a={};if(Zt(e,"enumerable")&&(a["[[Enumerable]]"]=Zp(e.enumerable)),Zt(e,"configurable")&&(a["[[Configurable]]"]=Zp(e.configurable)),Zt(e,"value")&&(a["[[Value]]"]=e.value),Zt(e,"writable")&&(a["[[Writable]]"]=Zp(e.writable)),Zt(e,"get")){var t=e.get;if(void 0!==t&&!ar(t))throw new tr("getter must be a function");a["[[Get]]"]=t}if(Zt(e,"set")){var p=e.set;if(void 0!==p&&!ar(p))throw new tr("setter must be a function");a["[[Set]]"]=p}if((Zt(a,"[[Get]]")||Zt(a,"[[Set]]"))&&(Zt(a,"[[Value]]")||Zt(a,"[[Writable]]")))throw new tr("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return a}(qp(e,a))}}(e,a),r=!p||nr(e);(!p||p["[[Writable]]"]&&p["[[Configurable]]"])&&r&&function(e,a,t,p,r,i){if(!Dp){if(!e(i))return!1;if(!i["[[Configurable]]"]||!i["[[Writable]]"])return!1;if(r in p&&Cp(p,r)!==!!i["[[Enumerable]]"])return!1;var o=i["[[Value]]"];return p[r]=o,a(p[r],o)}kp&&"length"===r&&"[[Value]]"in i&&Pp(p)&&p.length!==i["[[Value]]"]?p.length=i["[[Value]]"]:Dp(p,r,t(i))}(ir,mr,Up,e,a,{"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Value]]":t,"[[Writable]]":!0})}(e,t,p),e},{})},Sr=function(){return"function"==typeof Object.getOwnPropertyDescriptors?Object.getOwnPropertyDescriptors:Tr},Or=Ep(Sr(),Object);Rt(Or,{getPolyfill:Sr,implementation:Tr,shim:function(){var e=Sr();return Rt(Object,{getOwnPropertyDescriptors:e},{getOwnPropertyDescriptors:function(){return Object.getOwnPropertyDescriptors!==e}}),e}});var Ar=Or;if("function"!=typeof Object.defineProperty||[].__proto__!==Array.prototype)throw new TypeError("util.promisify requires a true ES5 environment, that also supports `__proto__`");if("function"!=typeof Promise)throw new TypeError("`Promise` must be globally available for util.promisify to work.");var Nr=Sp("Array.prototype.slice"),Dr=Sp("Array.prototype.concat"),kr=Sp("Array.prototype.forEach"),Pr=Xt(),Cr=Pr?Symbol.for("nodejs.util.promisify.custom"):null,Rr=Pr?Symbol("customPromisifyArgs"):null,Fr=function(e){if("function"!=typeof e){var a=new TypeError('The "original" argument must be of type function');throw a.name="TypeError [ERR_INVALID_ARG_TYPE]",a.code="ERR_INVALID_ARG_TYPE",a}if(Pr&&e[Cr]){var t=e[Cr];if("function"!=typeof t)throw new TypeError("The [util.promisify.custom] property must be a function");return Object.defineProperty(t,Cr,{configurable:!0,enumerable:!1,value:t,writable:!1}),t}var p=e[Rr],r=function(){var a=Nr(arguments),t=this;return new Promise(function(r,i){e.apply(t,Dr(a,function(e){var a=arguments.length>1?Nr(arguments,1):[];if(e)i(e);else if(void 0!==p&&a.length>1){var t={};kr(p,function(e,p){t[e]=a[p]}),r(t)}else r(a[0])}))})};return r.__proto__=e.__proto__,Object.defineProperty(r,Cr,{configurable:!0,enumerable:!1,value:r,writable:!1}),function(e,a,t){if(!Bt(a))throw new TypeError("iterator must be a function");var p;arguments.length>=3&&(p=t),"[object Array]"===Lt.call(e)?qt(e,a,p):"string"==typeof e?$t(e,a,p):Ht(e,a,p)}(Ar(e),function(e,a){try{Object.defineProperty(r,e,a)}catch(e){}}),r},Vr=Rr;Fr.custom=Cr,Fr.customPromisifyArgs=Vr;var jr=function(){return"function"==typeof n.promisify&&n.promisify.custom===Fr.custom?n.promisify:Fr},xr=jr(),Ur=function(e){return xr.apply(n,arguments)};Rt(Ur,{custom:xr.custom,customPromisifyArgs:xr.customPromisifyArgs,getPolyfill:jr,implementation:Fr,shim:function(){var e=jr();return e!==n.promisify&&Object.defineProperty(n,"promisify",{configurable:!0,enumerable:!0,value:e,writable:!0}),e}});var Gr=Ur,Ir="win32"===process.platform,Br=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);if(Ir)var Lr=/(.*?)(?:[\/\\]+|$)/g;else Lr=/(.*?)(?:[\/]+|$)/g;if(Ir)var Mr=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else Mr=/^[\/]*/;var qr=Yr;Yr.realpath=Yr,Yr.sync=Kr,Yr.realpathSync=Kr,Yr.monkeypatch=function(){p.realpath=Yr,p.realpathSync=Kr},Yr.unmonkeypatch=function(){p.realpath=$r,p.realpathSync=Hr};var $r=p.realpath,Hr=p.realpathSync,zr=process.version,Wr=/^v[0-5]\./.test(zr);function Jr(e){return e&&"realpath"===e.syscall&&("ELOOP"===e.code||"ENOMEM"===e.code||"ENAMETOOLONG"===e.code)}function Yr(e,t,r){if(Wr)return $r(e,t,r);"function"==typeof t&&(r=t,t=null),$r(e,t,function(i,o){Jr(i)?function(e,t,r){if("function"!=typeof r&&(r=function(e){return"function"==typeof e?e:function(){var e;if(Br){var a=new Error;e=function(e){e&&(a.message=e.message,t(e=a))}}else e=t;return e;function t(e){if(e){if(process.throwDeprecation)throw e;if(!process.noDeprecation){var a="fs: missing callback "+(e.stack||e.message);process.traceDeprecation?console.trace(a):console.error(a)}}}}()}(t),t=null),e=a.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return process.nextTick(r.bind(null,null,t[e]));var i,o,d,s,n=e,l={},m={};function c(){var a=Mr.exec(e);i=a[0].length,o=a[0],d=a[0],s="",Ir&&!m[d]?p.lstat(d,function(e){if(e)return r(e);m[d]=!0,u()}):process.nextTick(u)}function u(){if(i>=e.length)return t&&(t[n]=e),r(null,e);Lr.lastIndex=i;var a=Lr.exec(e);return s=o,o+=a[0],i=Lr.lastIndex,m[d=s+a[1]]||t&&t[d]===d?process.nextTick(u):t&&Object.prototype.hasOwnProperty.call(t,d)?v(t[d]):p.lstat(d,h)}function h(e,a){if(e)return r(e);if(!a.isSymbolicLink())return m[d]=!0,t&&(t[d]=d),process.nextTick(u);if(!Ir){var i=a.dev.toString(32)+":"+a.ino.toString(32);if(l.hasOwnProperty(i))return f(null,l[i],d)}p.stat(d,function(e){if(e)return r(e);p.readlink(d,function(e,a){Ir||(l[i]=a),f(e,a)})})}function f(e,p,i){if(e)return r(e);var o=a.resolve(s,p);t&&(t[i]=o),v(o)}function v(t){e=a.resolve(t,e.slice(i)),c()}c()}(e,t,r):r(i,o)})}function Kr(e,t){if(Wr)return Hr(e,t);try{return Hr(e,t)}catch(r){if(Jr(r))return function(e,t){if(e=a.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return t[e];var r,i,o,d,s=e,n={},l={};function m(){var a=Mr.exec(e);r=a[0].length,i=a[0],o=a[0],d="",Ir&&!l[o]&&(p.lstatSync(o),l[o]=!0)}for(m();r=0&&n>0){if(e===a)return[s,n];for(p=[],i=t.length;l>=0&&!d;)l==s?(p.push(l),s=t.indexOf(e,l+1)):1==p.length?d=[p.pop(),n]:((r=p.pop())=0?s:n;p.length&&(d=[i,o])}return d}Zr.range=ai;var ti="\0SLASH"+Math.random()+"\0",pi="\0OPEN"+Math.random()+"\0",ri="\0CLOSE"+Math.random()+"\0",ii="\0COMMA"+Math.random()+"\0",oi="\0PERIOD"+Math.random()+"\0";function di(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function si(e){return e.split(ti).join("\\").split(pi).join("{").split(ri).join("}").split(ii).join(",").split(oi).join(".")}function ni(e){return"{"+e+"}"}function li(e){return/^-?0\d/.test(e)}function mi(e,a){return e<=a}function ci(e,a){return e>=a}var ui=bi;bi.Minimatch=_i;var hi=function(){try{return a}catch(e){}}()||{sep:"/"};bi.sep=hi.sep;var fi=bi.GLOBSTAR=_i.GLOBSTAR={},vi={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},gi="().*{}+?[]^$\\!".split("").reduce(function(e,a){return e[a]=!0,e},{}),wi=/\/+/;function yi(e,a){a=a||{};var t={};return Object.keys(e).forEach(function(a){t[a]=e[a]}),Object.keys(a).forEach(function(e){t[e]=a[e]}),t}function bi(e,a,t){return Ti(a),t||(t={}),!(!t.nocomment&&"#"===a.charAt(0))&&new _i(a,t).match(e)}function _i(e,a){if(!(this instanceof _i))return new _i(e,a);Ti(e),a||(a={}),e=e.trim(),a.allowWindowsEscape||"/"===hi.sep||(e=e.split(hi.sep).join("/")),this.options=a,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!a.partial,this.make()}function Ei(e,a){return a||(a=this instanceof _i?this.options:{}),Ti(e=void 0===e?this.pattern:e),a.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:(t=e)?("{}"===t.substr(0,2)&&(t="\\{\\}"+t.substr(2)),function e(a,t){var p=[],r=Xr("{","}",a);if(!r||/\$$/.test(r.pre))return[a];var i,o=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(r.body),d=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(r.body),s=o||d,n=r.body.indexOf(",")>=0;if(!s&&!n)return r.post.match(/,.*\}/)?e(a=r.pre+"{"+r.body+ri+r.post):[a];if(s)i=r.body.split(/\.\./);else if(1===(i=function e(a){if(!a)return[""];var t=[],p=Xr("{","}",a);if(!p)return a.split(",");var r=p.body,i=p.post,o=p.pre.split(",");o[o.length-1]+="{"+r+"}";var d=e(i);return i.length&&(o[o.length-1]+=d.shift(),o.push.apply(o,d)),t.push.apply(t,o),t}(r.body)).length&&1===(i=e(i[0],!1).map(ni)).length)return(c=r.post.length?e(r.post,!1):[""]).map(function(e){return r.pre+i[0]+e});var l,m=r.pre,c=r.post.length?e(r.post,!1):[""];if(s){var u=di(i[0]),h=di(i[1]),f=Math.max(i[0].length,i[1].length),v=3==i.length?Math.abs(di(i[2])):1,g=mi;h0){var E=new Array(_+1).join("0");b=y<0?"-"+E+b.slice(1):E+b}}l.push(b)}}else l=function(a,t){for(var p=[],r=0;r65536)throw new TypeError("pattern is too long")};_i.prototype.parse=function(e,a){Ti(e);var t=this.options;if("**"===e){if(!t.noglobstar)return fi;e="*"}if(""===e)return"";var p,r="",i=!!t.nocase,o=!1,d=[],s=[],n=!1,l=-1,m=-1,c="."===e.charAt(0)?"":t.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",u=this;function h(){if(p){switch(p){case"*":r+="[^/]*?",i=!0;break;case"?":r+="[^/]",i=!0;break;default:r+="\\"+p}u.debug("clearStateChar %j %j",p,r),p=!1}}for(var f,v=0,g=e.length;v-1;S--){var O=s[S],A=r.slice(0,O.reStart),N=r.slice(O.reStart,O.reEnd-8),D=r.slice(O.reEnd-8,O.reEnd),k=r.slice(O.reEnd);D+=k;var P=A.split("(").length-1,C=k;for(v=0;v=0&&!(p=e[r]);r--);for(r=0;r>> no match, partial?",e,m,a,c),m!==o))}if("string"==typeof n?this.debug("string match",n,l,s=l===n):(s=l.match(n),this.debug("pattern match",n,l,s)),!s)return!1}if(r===o&&i===d)return!0;if(r===o)return t;if(i===d)return r===o-1&&""===e[r];throw new Error("wtf?")};var Oi=_(function(e){e.exports="function"==typeof Object.create?function(e,a){a&&(e.super_=a,e.prototype=Object.create(a.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:function(e,a){if(a){e.super_=a;var t=function(){};t.prototype=a.prototype,e.prototype=new t,e.prototype.constructor=e}}}),Ai=_(function(e){try{if("function"!=typeof n.inherits)throw"";e.exports=n.inherits}catch(a){e.exports=Oi}});function Ni(e){return"/"===e.charAt(0)}function Di(e){var a=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(e),t=a[1]||"",p=Boolean(t&&":"!==t.charAt(1));return Boolean(a[2]||p)}var ki="win32"===process.platform?Di:Ni,Pi=Di;function Ci(e,a){return Object.prototype.hasOwnProperty.call(e,a)}ki.posix=Ni,ki.win32=Pi;var Ri=ui.Minimatch;function Fi(e,a){return e.localeCompare(a,"en")}function Vi(e){var a=null;if("/**"===e.slice(-3)){var t=e.replace(/(\/\*\*)+$/,"");a=new Ri(t,{dot:!0})}return{matcher:new Ri(e,{dot:!0}),gmatcher:a}}function ji(e,t){var p=t;return p="/"===t.charAt(0)?a.join(e.root,t):ki(t)||""===t?t:e.changedCwd?a.resolve(e.cwd,t):a.resolve(t),"win32"===process.platform&&(p=p.replace(/\\/g,"/")),p}function xi(e,a){return!!e.ignore.length&&e.ignore.some(function(e){return e.matcher.match(a)||!(!e.gmatcher||!e.gmatcher.match(a))})}var Ui={setopts:function(e,t,r){if(r||(r={}),r.matchBase&&-1===t.indexOf("/")){if(r.noglobstar)throw new Error("base matching requires globstar");t="**/"+t}e.silent=!!r.silent,e.pattern=t,e.strict=!1!==r.strict,e.realpath=!!r.realpath,e.realpathCache=r.realpathCache||Object.create(null),e.follow=!!r.follow,e.dot=!!r.dot,e.mark=!!r.mark,e.nodir=!!r.nodir,e.nodir&&(e.mark=!0),e.sync=!!r.sync,e.nounique=!!r.nounique,e.nonull=!!r.nonull,e.nosort=!!r.nosort,e.nocase=!!r.nocase,e.stat=!!r.stat,e.noprocess=!!r.noprocess,e.absolute=!!r.absolute,e.fs=r.fs||p,e.maxLength=r.maxLength||Infinity,e.cache=r.cache||Object.create(null),e.statCache=r.statCache||Object.create(null),e.symlinks=r.symlinks||Object.create(null),function(e,a){e.ignore=a.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]),e.ignore.length&&(e.ignore=e.ignore.map(Vi))}(e,r),e.changedCwd=!1;var i=process.cwd();Ci(r,"cwd")?(e.cwd=a.resolve(r.cwd),e.changedCwd=e.cwd!==i):e.cwd=i,e.root=r.root||a.resolve(e.cwd,"/"),e.root=a.resolve(e.root),"win32"===process.platform&&(e.root=e.root.replace(/\\/g,"/")),e.cwdAbs=ki(e.cwd)?e.cwd:ji(e,e.cwd),"win32"===process.platform&&(e.cwdAbs=e.cwdAbs.replace(/\\/g,"/")),e.nomount=!!r.nomount,r.nonegate=!0,r.nocomment=!0,e.minimatch=new Ri(t,r),e.options=e.minimatch.options},ownProp:Ci,makeAbs:ji,finish:function(e){for(var a=e.nounique,t=a?[]:Object.create(null),p=0,r=e.matches.length;pthis.maxLength)return!1;if(!this.stat&&Bi(this.cache,a)){var p=this.cache[a];if(Array.isArray(p)&&(p="DIR"),!t||"DIR"===p)return p;if(t&&"FILE"===p)return!1}var r=this.statCache[a];if(!r){var i;try{i=this.fs.lstatSync(a)}catch(e){if(e&&("ENOENT"===e.code||"ENOTDIR"===e.code))return this.statCache[a]=!1,!1}if(i&&i.isSymbolicLink())try{r=this.fs.statSync(a)}catch(e){r=i}else r=i}return this.statCache[a]=r,p=!0,r&&(p=r.isDirectory()?"DIR":"FILE"),this.cache[a]=this.cache[a]||p,(!t||"FILE"!==p)&&p},$i.prototype._mark=function(e){return Ui.mark(this,e)},$i.prototype._makeAbs=function(e){return Ui.makeAbs(this,e)};var Hi=Object.create(null),zi=_a(function(e,a){return Hi[e]?(Hi[e].push(a),null):(Hi[e]=[a],function(e){return Ea(function a(){var t=Hi[e],p=t.length,r=Wi(arguments);try{for(var i=0;ip?(t.splice(0,p),process.nextTick(function(){a.apply(null,r)})):delete Hi[e]}})}(e))});function Wi(e){for(var a=e.length,t=[],p=0;p1)return!0;for(var r=0;rthis.maxLength)return a();if(!this.stat&&Qi(this.cache,t)){var r=this.cache[t];if(Array.isArray(r)&&(r="DIR"),!p||"DIR"===r)return a(null,r);if(p&&"FILE"===r)return a()}var i=this.statCache[t];if(void 0!==i){if(!1===i)return a(null,i);var o=i.isDirectory()?"DIR":"FILE";return p&&"FILE"===o?a():a(null,o,i)}var d=this,s=zi("stat\0"+t,function(p,r){if(r&&r.isSymbolicLink())return d.fs.stat(t,function(p,i){p?d._stat2(e,t,null,r,a):d._stat2(e,t,p,i,a)});d._stat2(e,t,p,r,a)});s&&d.fs.lstat(t,s)},to.prototype._stat2=function(e,a,t,p,r){if(t&&("ENOENT"===t.code||"ENOTDIR"===t.code))return this.statCache[a]=!1,r();var i="/"===e.slice(-1);if(this.statCache[a]=p,"/"===a.slice(-1)&&p&&!p.isDirectory())return r(null,!1,p);var o=!0;return p&&(o=p.isDirectory()?"DIR":"FILE"),this.cache[a]=this.cache[a]||o,i&&"FILE"===o?r():r(null,o,p)};var po=["write","end","destroy"],ro=["resume","pause"],io=["data","close"],oo=Array.prototype.slice;function so(e,a){if(e.forEach)return e.forEach(a);for(var t=0;tfunction(...t){return new(0,a.promiseModule)((p,r)=>{t.push(a.multiArgs?(...e)=>{a.errorFirst?e[0]?r(e):(e.shift(),p(e)):p(e)}:a.errorFirst?(e,a)=>{e?r(e):p(a)}:p),e.apply(this,t)})};var lo=(e,a)=>{a=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},a);const t=typeof e;if(null===e||"object"!==t&&"function"!==t)throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${null===e?"null":t}\``);const p=e=>{const t=a=>"string"==typeof a?e===a:a.test(e);return a.include?a.include.some(t):!a.exclude.some(t)};let r;r="function"===t?function(...t){return a.excludeMain?e(...t):no(e,a).apply(this,t)}:Object.create(Object.getPrototypeOf(e));for(const t in e){const i=e[t];r[t]="function"==typeof i&&p(t)?no(i,a):i}return r},mo=_(function(e){const a=e=>Object.assign({level:9},e);e.exports=(e,t)=>e?lo(u.gzip)(e,a(t)).then(e=>e.length).catch(e=>0):Promise.resolve(0),e.exports.sync=(e,t)=>u.gzipSync(e,a(t)).length,e.exports.stream=e=>{const t=new l.PassThrough,p=new l.PassThrough,r=function(e,a){var t=new l,p=!1;return so(po,function(a){t[a]=function(){return e[a].apply(e,arguments)}}),so(ro,function(e){t[e]=function(){t.emit(e);var p=a[e];if(p)return p.apply(a,arguments);a.emit(e)}}),so(io,function(e){a.on(e,function(){var a=oo.call(arguments);a.unshift(e),t.emit.apply(t,a)})}),a.on("end",function(){if(!p){p=!0;var e=oo.call(arguments);e.unshift("end"),t.emit.apply(t,e)}}),e.on("drain",function(){t.emit("drain")}),e.on("error",r),a.on("error",r),t.writable=e.writable,t.readable=a.readable,t;function r(e){t.emit("error",e)}}(t,p);let i=0;const o=u.createGzip(a(e)).on("data",e=>{i+=e.length}).on("error",()=>{r.gzipSize=0}).on("end",()=>{r.gzipSize=i,r.emit("gzip-size",i),p.end()});return t.pipe(o),t.pipe(p,{end:!1}),r},e.exports.file=(a,t)=>new Promise((r,i)=>{const o=p.createReadStream(a);o.on("error",i);const d=o.pipe(e.exports.stream(t));d.on("error",i),d.on("gzip-size",r)}),e.exports.fileSync=(a,t)=>e.exports.sync(p.readFileSync(a),t)}),co=/[|\\{}()[\]^$+*?.]/g,uo=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(co,"\\$&")},ho={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},fo=_(function(e){var a={};for(var t in ho)ho.hasOwnProperty(t)&&(a[ho[t]]=t);var p=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var r in p)if(p.hasOwnProperty(r)){if(!("channels"in p[r]))throw new Error("missing channels property: "+r);if(!("labels"in p[r]))throw new Error("missing channel labels property: "+r);if(p[r].labels.length!==p[r].channels)throw new Error("channel and label counts mismatch: "+r);var i=p[r].channels,o=p[r].labels;delete p[r].channels,delete p[r].labels,Object.defineProperty(p[r],"channels",{value:i}),Object.defineProperty(p[r],"labels",{value:o})}p.rgb.hsl=function(e){var a,t,p=e[0]/255,r=e[1]/255,i=e[2]/255,o=Math.min(p,r,i),d=Math.max(p,r,i),s=d-o;return d===o?a=0:p===d?a=(r-i)/s:r===d?a=2+(i-p)/s:i===d&&(a=4+(p-r)/s),(a=Math.min(60*a,360))<0&&(a+=360),t=(o+d)/2,[a,100*(d===o?0:t<=.5?s/(d+o):s/(2-d-o)),100*t]},p.rgb.hsv=function(e){var a,t,p,r,i,o=e[0]/255,d=e[1]/255,s=e[2]/255,n=Math.max(o,d,s),l=n-Math.min(o,d,s),m=function(e){return(n-e)/6/l+.5};return 0===l?r=i=0:(i=l/n,a=m(o),t=m(d),p=m(s),o===n?r=p-t:d===n?r=1/3+a-p:s===n&&(r=2/3+t-a),r<0?r+=1:r>1&&(r-=1)),[360*r,100*i,100*n]},p.rgb.hwb=function(e){var a=e[0],t=e[1],r=e[2];return[p.rgb.hsl(e)[0],1/255*Math.min(a,Math.min(t,r))*100,100*(r=1-1/255*Math.max(a,Math.max(t,r)))]},p.rgb.cmyk=function(e){var a,t=e[0]/255,p=e[1]/255,r=e[2]/255;return[100*((1-t-(a=Math.min(1-t,1-p,1-r)))/(1-a)||0),100*((1-p-a)/(1-a)||0),100*((1-r-a)/(1-a)||0),100*a]},p.rgb.keyword=function(e){var t=a[e];if(t)return t;var p,r,i,o=Infinity;for(var d in ho)if(ho.hasOwnProperty(d)){var s=(r=e,i=ho[d],Math.pow(r[0]-i[0],2)+Math.pow(r[1]-i[1],2)+Math.pow(r[2]-i[2],2));s.04045?Math.pow((a+.055)/1.055,2.4):a/12.92)+.3576*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.1805*(p=p>.04045?Math.pow((p+.055)/1.055,2.4):p/12.92)),100*(.2126*a+.7152*t+.0722*p),100*(.0193*a+.1192*t+.9505*p)]},p.rgb.lab=function(e){var a=p.rgb.xyz(e),t=a[0],r=a[1],i=a[2];return r/=100,i/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(t-r),200*(r-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},p.hsl.rgb=function(e){var a,t,p,r,i,o=e[0]/360,d=e[1]/100,s=e[2]/100;if(0===d)return[i=255*s,i,i];a=2*s-(t=s<.5?s*(1+d):s+d-s*d),r=[0,0,0];for(var n=0;n<3;n++)(p=o+1/3*-(n-1))<0&&p++,p>1&&p--,r[n]=255*(i=6*p<1?a+6*(t-a)*p:2*p<1?t:3*p<2?a+(t-a)*(2/3-p)*6:a);return r},p.hsl.hsv=function(e){var a=e[0],t=e[1]/100,p=e[2]/100,r=t,i=Math.max(p,.01);return t*=(p*=2)<=1?p:2-p,r*=i<=1?i:2-i,[a,100*(0===p?2*r/(i+r):2*t/(p+t)),(p+t)/2*100]},p.hsv.rgb=function(e){var a=e[0]/60,t=e[1]/100,p=e[2]/100,r=Math.floor(a)%6,i=a-Math.floor(a),o=255*p*(1-t),d=255*p*(1-t*i),s=255*p*(1-t*(1-i));switch(p*=255,r){case 0:return[p,s,o];case 1:return[d,p,o];case 2:return[o,p,s];case 3:return[o,d,p];case 4:return[s,o,p];case 5:return[p,o,d]}},p.hsv.hsl=function(e){var a,t,p,r=e[0],i=e[1]/100,o=e[2]/100,d=Math.max(o,.01);return p=(2-i)*o,t=i*d,[r,100*(t=(t/=(a=(2-i)*d)<=1?a:2-a)||0),100*(p/=2)]},p.hwb.rgb=function(e){var a,t,p,r,i,o,d,s=e[0]/360,n=e[1]/100,l=e[2]/100,m=n+l;switch(m>1&&(n/=m,l/=m),p=6*s-(a=Math.floor(6*s)),0!=(1&a)&&(p=1-p),r=n+p*((t=1-l)-n),a){default:case 6:case 0:i=t,o=r,d=n;break;case 1:i=r,o=t,d=n;break;case 2:i=n,o=t,d=r;break;case 3:i=n,o=r,d=t;break;case 4:i=r,o=n,d=t;break;case 5:i=t,o=n,d=r}return[255*i,255*o,255*d]},p.cmyk.rgb=function(e){var a=e[1]/100,t=e[2]/100,p=e[3]/100;return[255*(1-Math.min(1,e[0]/100*(1-p)+p)),255*(1-Math.min(1,a*(1-p)+p)),255*(1-Math.min(1,t*(1-p)+p))]},p.xyz.rgb=function(e){var a,t,p,r=e[0]/100,i=e[1]/100,o=e[2]/100;return t=-.9689*r+1.8758*i+.0415*o,p=.0557*r+-.204*i+1.057*o,a=(a=3.2406*r+-1.5372*i+-.4986*o)>.0031308?1.055*Math.pow(a,1/2.4)-.055:12.92*a,t=t>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,p=p>.0031308?1.055*Math.pow(p,1/2.4)-.055:12.92*p,[255*(a=Math.min(Math.max(0,a),1)),255*(t=Math.min(Math.max(0,t),1)),255*(p=Math.min(Math.max(0,p),1))]},p.xyz.lab=function(e){var a=e[0],t=e[1],p=e[2];return t/=100,p/=108.883,a=(a/=95.047)>.008856?Math.pow(a,1/3):7.787*a+16/116,[116*(t=t>.008856?Math.pow(t,1/3):7.787*t+16/116)-16,500*(a-t),200*(t-(p=p>.008856?Math.pow(p,1/3):7.787*p+16/116))]},p.lab.xyz=function(e){var a,t,p;a=e[1]/500+(t=(e[0]+16)/116),p=t-e[2]/200;var r=Math.pow(t,3),i=Math.pow(a,3),o=Math.pow(p,3);return t=r>.008856?r:(t-16/116)/7.787,a=i>.008856?i:(a-16/116)/7.787,p=o>.008856?o:(p-16/116)/7.787,[a*=95.047,t*=100,p*=108.883]},p.lab.lch=function(e){var a,t=e[0],p=e[1],r=e[2];return(a=360*Math.atan2(r,p)/2/Math.PI)<0&&(a+=360),[t,Math.sqrt(p*p+r*r),a]},p.lch.lab=function(e){var a,t=e[1];return a=e[2]/360*2*Math.PI,[e[0],t*Math.cos(a),t*Math.sin(a)]},p.rgb.ansi16=function(e){var a=e[0],t=e[1],r=e[2],i=1 in arguments?arguments[1]:p.rgb.hsv(e)[2];if(0===(i=Math.round(i/50)))return 30;var o=30+(Math.round(r/255)<<2|Math.round(t/255)<<1|Math.round(a/255));return 2===i&&(o+=60),o},p.hsv.ansi16=function(e){return p.rgb.ansi16(p.hsv.rgb(e),e[2])},p.rgb.ansi256=function(e){var a=e[0],t=e[1],p=e[2];return a===t&&t===p?a<8?16:a>248?231:Math.round((a-8)/247*24)+232:16+36*Math.round(a/255*5)+6*Math.round(t/255*5)+Math.round(p/255*5)},p.ansi16.rgb=function(e){var a=e%10;if(0===a||7===a)return e>50&&(a+=3.5),[a=a/10.5*255,a,a];var t=.5*(1+~~(e>50));return[(1&a)*t*255,(a>>1&1)*t*255,(a>>2&1)*t*255]},p.ansi256.rgb=function(e){if(e>=232){var a=10*(e-232)+8;return[a,a,a]}var t;return e-=16,[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},p.rgb.hex=function(e){var a=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(a.length)+a},p.hex.rgb=function(e){var a=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!a)return[0,0,0];var t=a[0];3===a[0].length&&(t=t.split("").map(function(e){return e+e}).join(""));var p=parseInt(t,16);return[p>>16&255,p>>8&255,255&p]},p.rgb.hcg=function(e){var a,t=e[0]/255,p=e[1]/255,r=e[2]/255,i=Math.max(Math.max(t,p),r),o=Math.min(Math.min(t,p),r),d=i-o;return a=d<=0?0:i===t?(p-r)/d%6:i===p?2+(r-t)/d:4+(t-p)/d+4,a/=6,[360*(a%=1),100*d,100*(d<1?o/(1-d):0)]},p.hsl.hcg=function(e){var a,t=e[1]/100,p=e[2]/100,r=0;return(a=p<.5?2*t*p:2*t*(1-p))<1&&(r=(p-.5*a)/(1-a)),[e[0],100*a,100*r]},p.hsv.hcg=function(e){var a=e[2]/100,t=e[1]/100*a,p=0;return t<1&&(p=(a-t)/(1-t)),[e[0],100*t,100*p]},p.hcg.rgb=function(e){var a=e[1]/100,t=e[2]/100;if(0===a)return[255*t,255*t,255*t];var p,r=[0,0,0],i=e[0]/360%1*6,o=i%1,d=1-o;switch(Math.floor(i)){case 0:r[0]=1,r[1]=o,r[2]=0;break;case 1:r[0]=d,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=o;break;case 3:r[0]=0,r[1]=d,r[2]=1;break;case 4:r[0]=o,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=d}return[255*(a*r[0]+(p=(1-a)*t)),255*(a*r[1]+p),255*(a*r[2]+p)]},p.hcg.hsv=function(e){var a=e[1]/100,t=a+e[2]/100*(1-a),p=0;return t>0&&(p=a/t),[e[0],100*p,100*t]},p.hcg.hsl=function(e){var a=e[1]/100,t=e[2]/100*(1-a)+.5*a,p=0;return t>0&&t<.5?p=a/(2*t):t>=.5&&t<1&&(p=a/(2*(1-t))),[e[0],100*p,100*t]},p.hcg.hwb=function(e){var a=e[1]/100,t=a+e[2]/100*(1-a);return[e[0],100*(t-a),100*(1-t)]},p.hwb.hcg=function(e){var a=1-e[2]/100,t=a-e[1]/100,p=0;return t<1&&(p=(a-t)/(1-t)),[e[0],100*t,100*p]},p.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},p.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},p.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},p.gray.hsl=p.gray.hsv=function(e){return[0,0,e[0]]},p.gray.hwb=function(e){return[0,100,e[0]]},p.gray.cmyk=function(e){return[0,0,0,e[0]]},p.gray.lab=function(e){return[e[0],0,0]},p.gray.hex=function(e){var a=255&Math.round(e[0]/100*255),t=((a<<16)+(a<<8)+a).toString(16).toUpperCase();return"000000".substring(t.length)+t},p.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});function vo(e,a){return function(t){return a(e(t))}}function go(e,a){for(var t=[a[e].parent,e],p=fo[a[e].parent][e],r=a[e].parent;a[r].parent;)t.unshift(a[r].parent),p=vo(fo[a[r].parent][r],p),r=a[r].parent;return p.conversion=t,p}var wo={};Object.keys(fo).forEach(function(e){wo[e]={},Object.defineProperty(wo[e],"channels",{value:fo[e].channels}),Object.defineProperty(wo[e],"labels",{value:fo[e].labels});var a=function(e){for(var a=function(e){var a=function(){for(var e={},a=Object.keys(fo),t=a.length,p=0;p1&&(a=Array.prototype.slice.call(arguments));var t=e(a);if("object"==typeof t)for(var p=t.length,r=0;r1&&(a=Array.prototype.slice.call(arguments)),e(a))};return"conversion"in e&&(a.conversion=e.conversion),a}(p)})});var yo=wo,bo=_(function(e){const a=(e,a)=>function(){const t=e.apply(yo,arguments);return`[${t+a}m`},t=(e,a)=>function(){const t=e.apply(yo,arguments);return`[${38+a};5;${t}m`},p=(e,a)=>function(){const t=e.apply(yo,arguments);return`[${38+a};2;${t[0]};${t[1]};${t[2]}m`};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,r={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};r.color.grey=r.color.gray;for(const a of Object.keys(r)){const t=r[a];for(const a of Object.keys(t)){const p=t[a];r[a]={open:`[${p[0]}m`,close:`[${p[1]}m`},t[a]=r[a],e.set(p[0],p[1])}Object.defineProperty(r,a,{value:t,enumerable:!1}),Object.defineProperty(r,"codes",{value:e,enumerable:!1})}const i=e=>e,o=(e,a,t)=>[e,a,t];r.color.close="",r.bgColor.close="",r.color.ansi={ansi:a(i,0)},r.color.ansi256={ansi256:t(i,0)},r.color.ansi16m={rgb:p(o,0)},r.bgColor.ansi={ansi:a(i,10)},r.bgColor.ansi256={ansi256:t(i,10)},r.bgColor.ansi16m={rgb:p(o,10)};for(let e of Object.keys(yo)){if("object"!=typeof yo[e])continue;const i=yo[e];"ansi16"===e&&(e="ansi"),"ansi16"in i&&(r.color.ansi[e]=a(i.ansi16,0),r.bgColor.ansi[e]=a(i.ansi16,10)),"ansi256"in i&&(r.color.ansi256[e]=t(i.ansi256,0),r.bgColor.ansi256[e]=t(i.ansi256,10)),"rgb"in i&&(r.color.ansi16m[e]=p(i.rgb,0),r.bgColor.ansi16m[e]=p(i.rgb,10))}return r}})}),_o=(e,a)=>{a=a||process.argv;const t=e.startsWith("-")?"":1===e.length?"-":"--",p=a.indexOf(t+e),r=a.indexOf("--");return-1!==p&&(-1===r||p=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in Eo)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in Eo)||"codeship"===Eo.CI_NAME?1:a;if("TEAMCITY_VERSION"in Eo)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Eo.TEAMCITY_VERSION)?1:0;if("truecolor"===Eo.COLORTERM)return 3;if("TERM_PROGRAM"in Eo){const e=parseInt((Eo.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Eo.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Eo.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Eo.TERM)||"COLORTERM"in Eo?1:a}(e))&&{level:a,hasBasic:!0,has256:a>=2,has16m:a>=3};var a}_o("no-color")||_o("no-colors")||_o("color=false")?To=!1:(_o("color")||_o("colors")||_o("color=true")||_o("color=always"))&&(To=!0),"FORCE_COLOR"in Eo&&(To=0===Eo.FORCE_COLOR.length||0!==parseInt(Eo.FORCE_COLOR,10));var Oo={supportsColor:So,stdout:So(process.stdout),stderr:So(process.stderr)};const Ao=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,No=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Do=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,ko=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,Po=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function Co(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):Po.get(e)||e}function Ro(e,a){const t=[],p=a.trim().split(/\s*,\s*/g);let r;for(const a of p)if(isNaN(a)){if(!(r=a.match(Do)))throw new Error(`Invalid Chalk template style argument: ${a} (in style '${e}')`);t.push(r[2].replace(ko,(e,a,t)=>a?Co(a):t))}else t.push(Number(a));return t}function Fo(e){No.lastIndex=0;const a=[];let t;for(;null!==(t=No.exec(e));){const e=t[1];if(t[2]){const p=Ro(e,t[2]);a.push([e].concat(p))}else a.push([e])}return a}function Vo(e,a){const t={};for(const e of a)for(const a of e.styles)t[a[0]]=e.inverse?null:a.slice(1);let p=e;for(const e of Object.keys(t))if(Array.isArray(t[e])){if(!(e in p))throw new Error("Unknown Chalk style: "+e);p=t[e].length>0?p[e].apply(p,t[e]):p[e]}return p}var jo=(e,a)=>{const t=[],p=[];let r=[];if(a.replace(Ao,(a,i,o,d,s,n)=>{if(i)r.push(Co(i));else if(d){const a=r.join("");r=[],p.push(0===t.length?a:Vo(e,t)(a)),t.push({inverse:o,styles:Fo(d)})}else if(s){if(0===t.length)throw new Error("Found extraneous } in Chalk template literal");p.push(Vo(e,t)(r.join(""))),r=[],t.pop()}else r.push(n)}),p.push(r.join("")),t.length>0)throw new Error(`Chalk template literal is missing ${t.length} closing bracket${1===t.length?"":"s"} (\`}\`)`);return p.join("")},xo=_(function(e){const a=Oo.stdout,t="win32"===process.platform&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),p=["ansi","ansi","ansi256","ansi16m"],r=new Set(["gray"]),i=Object.create(null);function o(e,t){e.level=void 0===(t=t||{}).level?a?a.level:0:t.level,e.enabled="enabled"in t?t.enabled:e.level>0}function d(e){if(!this||!(this instanceof d)||this.template){const a={};return o(a,e),a.template=function(){const e=[].slice.call(arguments);return m.apply(null,[a.template].concat(e))},Object.setPrototypeOf(a,d.prototype),Object.setPrototypeOf(a.template,a),a.template.constructor=d,a.template}o(this,e)}t&&(bo.blue.open="");for(const e of Object.keys(bo))bo[e].closeRe=new RegExp(uo(bo[e].close),"g"),i[e]={get(){const a=bo[e];return n.call(this,this._styles?this._styles.concat(a):[a],this._empty,e)}};i.visible={get(){return n.call(this,this._styles||[],!0,"visible")}},bo.color.closeRe=new RegExp(uo(bo.color.close),"g");for(const e of Object.keys(bo.color.ansi))r.has(e)||(i[e]={get(){const a=this.level;return function(){const t=bo.color[p[a]][e].apply(null,arguments),r={open:t,close:bo.color.close,closeRe:bo.color.closeRe};return n.call(this,this._styles?this._styles.concat(r):[r],this._empty,e)}}});bo.bgColor.closeRe=new RegExp(uo(bo.bgColor.close),"g");for(const e of Object.keys(bo.bgColor.ansi))r.has(e)||(i["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const a=this.level;return function(){const t=bo.bgColor[p[a]][e].apply(null,arguments),r={open:t,close:bo.bgColor.close,closeRe:bo.bgColor.closeRe};return n.call(this,this._styles?this._styles.concat(r):[r],this._empty,e)}}});const s=Object.defineProperties(()=>{},i);function n(e,a,t){const p=function(){return l.apply(p,arguments)};p._styles=e,p._empty=a;const r=this;return Object.defineProperty(p,"level",{enumerable:!0,get:()=>r.level,set(e){r.level=e}}),Object.defineProperty(p,"enabled",{enumerable:!0,get:()=>r.enabled,set(e){r.enabled=e}}),p.hasGrey=this.hasGrey||"gray"===t||"grey"===t,p.__proto__=s,p}function l(){const e=arguments,a=e.length;let p=String(arguments[0]);if(0===a)return"";if(a>1)for(let t=1;t{let p=e;return"string"==typeof a||Array.isArray(a)?p=e.toLocaleString(a,t):!0!==a&&void 0===t||(p=e.toLocaleString(void 0,t)),p};var Mo=(e,a)=>{if(!Number.isFinite(e))throw new TypeError(`Expected a finite number, got ${typeof e}: ${e}`);const t=(a=Object.assign({bits:!1,binary:!1},a)).bits?a.binary?Bo:Io:a.binary?Go:Uo;if(a.signed&&0===e)return" 0 "+t[0];const p=e<0,r=p?"-":a.signed?"+":"";let i;if(p&&(e=-e),void 0!==a.minimumFractionDigits&&(i={minimumFractionDigits:a.minimumFractionDigits}),void 0!==a.maximumFractionDigits&&(i=Object.assign({maximumFractionDigits:a.maximumFractionDigits},i)),e<1)return r+Lo(e,a.locale,i)+" "+t[0];const o=Math.min(Math.floor(a.binary?Math.log(e)/Math.log(1024):Math.log10(e)/3),t.length-1);return e/=Math.pow(a.binary?1024:1e3,o),i||(e=e.toPrecision(3)),r+Lo(Number(e),a.locale,i)+" "+t[o]},qo=["write","end","destroy"],$o=["resume","pause"],Ho=["data","close"],zo=Array.prototype.slice;function Wo(e,a){if(e.forEach)return e.forEach(a);for(var t=0;t"string"==typeof e?Buffer.from(e,"utf8"):e,i=(e,a)=>({params:{[u.constants.BROTLI_PARAM_MODE]:e&&"mode"in e&&e.mode||u.constants.BROTLI_DEFAULT_MODE,[u.constants.BROTLI_PARAM_QUALITY]:e&&"quality"in e&&e.quality||u.constants.BROTLI_MAX_QUALITY,[u.constants.BROTLI_PARAM_SIZE_HINT]:a?a.byteLength:0}});async function o(e,a){const t=r(e);return new Promise(function(e,p){u.brotliCompress(t,i(a,t),(a,t)=>{null!==a&&p(a),e(t.byteLength)})})}function d(e,a){const t=r(e);return u.brotliCompressSync(t,i(a,t)).byteLength}a.default=o,a.sync=d,a.stream=function(e){const a=new l.PassThrough,t=new l.PassThrough,p=function(e,a){var t=new l,p=!1;return Wo(qo,function(a){t[a]=function(){return e[a].apply(e,arguments)}}),Wo($o,function(e){t[e]=function(){t.emit(e);var p=a[e];if(p)return p.apply(a,arguments);a.emit(e)}}),Wo(Ho,function(e){a.on(e,function(){var a=zo.call(arguments);a.unshift(e),t.emit.apply(t,a)})}),a.on("end",function(){if(!p){p=!0;var e=zo.call(arguments);e.unshift("end"),t.emit.apply(t,e)}}),e.on("drain",function(){t.emit("drain")}),e.on("error",r),a.on("error",r),t.writable=e.writable,t.readable=a.readable,t;function r(e){t.emit("error",e)}}(a,t);let r=0;const o=u.createBrotliCompress(i(e)).on("data",e=>{r+=e.length}).on("error",()=>{p.brotliSize=0}).on("end",()=>{p.brotliSize=r,p.emit("brotli-size",r),t.end()});return a.pipe(o),a.pipe(t,{end:!1}),p},a.file=async function(e,a){const p=await t(e);return await o(p,a)},a.fileSync=function(e,a){return d(p.readFileSync(e),a)}}),Yo=function(e,a){return function(){for(var t=new Array(arguments.length),p=0;p0)return function(e){if(!((e=String(e)).length>100)){var a=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(a){var t=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*t;case"days":case"day":case"d":return t*bd;case"hours":case"hour":case"hrs":case"hr":case"h":return t*yd;case"minutes":case"minute":case"mins":case"min":case"m":return t*wd;case"seconds":case"second":case"secs":case"sec":case"s":return t*gd;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}(e);if("number"===t&&!1===isNaN(e))return a.long?function(e){return Ed(e,bd,"day")||Ed(e,yd,"hour")||Ed(e,wd,"minute")||Ed(e,gd,"second")||e+" ms"}(e):function(e){return e>=bd?Math.round(e/bd)+"d":e>=yd?Math.round(e/yd)+"h":e>=wd?Math.round(e/wd)+"m":e>=gd?Math.round(e/gd)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Ed(e,a,t){if(!(e=31||"{}".userAgent&&"{}".userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},a.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),a.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],a.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},a.enable(t())}),Od=_(function(e,a){(a=e.exports=Td).init=function(e){e.inspectOpts={};for(var t=Object.keys(a.inspectOpts),p=0;p=2&&(a.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}function t(){return process.env.DEBUG}a.inspectOpts=Object.keys(process.env).filter(function(e){return/^debug_/i.test(e)}).reduce(function(e,a){var t=a.substring(6).toLowerCase().replace(/_([a-z])/g,function(e,a){return a.toUpperCase()}),p=process.env[a];return p=!!/^(yes|on|true|enabled)$/i.test(p)||!/^(no|off|false|disabled)$/i.test(p)&&("null"===p?null:Number(p)),e[t]=p,e},{}),a.formatters.o=function(e){return this.inspectOpts.colors=this.useColors,n.inspect(e,this.inspectOpts).split("\n").map(function(e){return e.trim()}).join(" ")},a.formatters.O=function(e){return this.inspectOpts.colors=this.useColors,n.inspect(e,this.inspectOpts)},a.enable(t())}),Ad=_(function(e){e.exports="undefined"==typeof process||"renderer"===process.type?Sd:Od}),Nd=l.Writable,Dd=Ad("follow-redirects"),kd={GET:!0,HEAD:!0,OPTIONS:!0,TRACE:!0},Pd=Object.create(null);function Cd(e,a){Nd.call(this),e.headers=e.headers||{},this._options=e,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e.host&&(e.hostname||(e.hostname=e.host),delete e.host),a&&this.on("response",a);var t=this;if(this._onNativeResponse=function(e){t._processResponse(e)},!e.pathname&&e.path){var p=e.path.indexOf("?");p<0?e.pathname=e.path:(e.pathname=e.path.substring(0,p),e.search=e.path.substring(p))}this._performRequest()}function Rd(e){var a={maxRedirects:21,maxBodyLength:10485760},t={};return Object.keys(e).forEach(function(p){var r=p+":",i=t[r]=e[p],o=a[p]=Object.create(i);o.request=function(e,p){return"string"==typeof e?(e=m.parse(e)).maxRedirects=a.maxRedirects:e=Object.assign({protocol:r,maxRedirects:a.maxRedirects,maxBodyLength:a.maxBodyLength},e),e.nativeProtocols=t,s.equal(e.protocol,r,"protocol mismatch"),Dd("options",e),new Cd(e,p)},o.get=function(e,a){var t=o.request(e,a);return t.end(),t}}),a}["abort","aborted","error","socket","timeout"].forEach(function(e){Pd[e]=function(a){this._redirectable.emit(e,a)}}),(Cd.prototype=Object.create(Nd.prototype)).write=function(e,a,t){if(!("string"==typeof e||"object"==typeof e&&"length"in e))throw new Error("data should be a string, Buffer or Uint8Array");"function"==typeof a&&(t=a,a=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:a}),this._currentRequest.write(e,a,t)):(this.emit("error",new Error("Request body larger than maxBodyLength limit")),this.abort()):t&&t()},Cd.prototype.end=function(e,a,t){"function"==typeof e?(t=e,e=a=null):"function"==typeof a&&(t=a,a=null);var p=this._currentRequest;this.write(e||"",a,function(){p.end(null,null,t)})},Cd.prototype.setHeader=function(e,a){this._options.headers[e]=a,this._currentRequest.setHeader(e,a)},Cd.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},["abort","flushHeaders","getHeader","setNoDelay","setSocketKeepAlive","setTimeout"].forEach(function(e){Cd.prototype[e]=function(a,t){return this._currentRequest[e](a,t)}}),["aborted","connection","socket"].forEach(function(e){Object.defineProperty(Cd.prototype,e,{get:function(){return this._currentRequest[e]}})}),Cd.prototype._performRequest=function(){var e=this._options.protocol,a=this._options.nativeProtocols[e];if(a){if(this._options.agents){var t=e.substr(0,e.length-1);this._options.agent=this._options.agents[t]}var p=this._currentRequest=a.request(this._options,this._onNativeResponse);for(var r in this._currentUrl=m.format(this._options),p._redirectable=this,Pd)r&&p.on(r,Pd[r]);if(this._isRedirect){var i=0,o=this._requestBodyBuffers;!function e(){if(i=300&&e.statusCode<400){if(++this._redirectCount>this._options.maxRedirects)return void this.emit("error",new Error("Max redirects exceeded."));var t,p=this._options.headers;if(307!==e.statusCode&&!(this._options.method in kd))for(t in this._options.method="GET",this._requestBodyBuffers=[],p)/^content-/i.test(t)&&delete p[t];if(!this._isRedirect)for(t in p)/^host$/i.test(t)&&delete p[t];var r=m.resolve(this._currentUrl,a);Dd("redirecting to",r),Object.assign(this._options,m.parse(r)),this._isRedirect=!0,this._performRequest(),e.destroy()}else e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[]};var Fd=Rd({http:r,https:i});Fd.wrap=Rd;var Vd="Promise based HTTP client for the browser and node.js",jd={test:"grunt test && bundlesize",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},xd={type:"git",url:"https://github.com/axios/axios.git"},Ud=["xhr","http","ajax","promise","node"],Gd={url:"https://github.com/axios/axios/issues"},Id="https://github.com/axios/axios",Bd={bundlesize:"^0.17.0",coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.0.2","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^20.1.0","grunt-karma":"^2.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^1.0.18","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^1.3.0","karma-chrome-launcher":"^2.2.0","karma-coverage":"^1.1.1","karma-firefox-launcher":"^1.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-opera-launcher":"^1.0.0","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^1.2.0","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^1.7.0","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^5.2.0",sinon:"^4.5.0",typescript:"^2.8.1","url-search-params":"^0.10.0",webpack:"^1.13.1","webpack-dev-server":"^1.14.1"},Ld={"./lib/adapters/http.js":"./lib/adapters/xhr.js"},Md={"follow-redirects":"1.5.10"},qd=[{path:"./dist/axios.min.js",threshold:"5kB"}],$d=E({__proto__:null,name:"axios",version:"0.19.2",description:Vd,main:"index.js",scripts:jd,repository:xd,keywords:Ud,author:"Matt Zabriskie",license:"MIT",bugs:Gd,homepage:Id,devDependencies:Bd,browser:Ld,typings:"./index.d.ts",dependencies:Md,bundlesize:qd,default:{name:"axios",version:"0.19.2",description:Vd,main:"index.js",scripts:jd,repository:xd,keywords:Ud,author:"Matt Zabriskie",license:"MIT",bugs:Gd,homepage:Id,devDependencies:Bd,browser:Ld,typings:"./index.d.ts",dependencies:Md,bundlesize:qd}}),Hd=Fd.http,zd=Fd.https,Wd=/https:?/,Jd={"Content-Type":"application/x-www-form-urlencoded"};function Yd(e,a){!td.isUndefined(e)&&td.isUndefined(e["Content-Type"])&&(e["Content-Type"]=a)}var Kd,Qd={adapter:("undefined"!=typeof XMLHttpRequest?Kd=function(e){return new Promise(function(a,t){var p=e.data,r=e.headers;td.isFormData(p)&&delete r["Content-Type"];var i=new XMLHttpRequest;e.auth&&(r.Authorization="Basic "+btoa((e.auth.username||"")+":"+(e.auth.password||"")));var o=ud(e.baseURL,e.url);if(i.open(e.method.toUpperCase(),rd(o,e.params,e.paramsSerializer),!0),i.timeout=e.timeout,i.onreadystatechange=function(){if(i&&4===i.readyState&&(0!==i.status||i.responseURL&&0===i.responseURL.indexOf("file:"))){var p,r,o,d,s,n="getAllResponseHeaders"in i?(p=i.getAllResponseHeaders(),s={},p?(td.forEach(p.split("\n"),function(e){if(d=e.indexOf(":"),r=td.trim(e.substr(0,d)).toLowerCase(),o=td.trim(e.substr(d+1)),r){if(s[r]&&hd.indexOf(r)>=0)return;s[r]="set-cookie"===r?(s[r]?s[r]:[]).concat([o]):s[r]?s[r]+", "+o:o}}),s):s):null;cd(a,t,{data:e.responseType&&"text"!==e.responseType?i.response:i.responseText,status:i.status,statusText:i.statusText,headers:n,config:e,request:i}),i=null}},i.onabort=function(){i&&(t(md("Request aborted",e,"ECONNABORTED",i)),i=null)},i.onerror=function(){t(md("Network Error",e,null,i)),i=null},i.ontimeout=function(){var a="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(a=e.timeoutErrorMessage),t(md(a,e,"ECONNABORTED",i)),i=null},td.isStandardBrowserEnv()){var d=vd,s=(e.withCredentials||fd(o))&&e.xsrfCookieName?d.read(e.xsrfCookieName):void 0;s&&(r[e.xsrfHeaderName]=s)}if("setRequestHeader"in i&&td.forEach(r,function(e,a){void 0===p&&"content-type"===a.toLowerCase()?delete r[a]:i.setRequestHeader(a,e)}),td.isUndefined(e.withCredentials)||(i.withCredentials=!!e.withCredentials),e.responseType)try{i.responseType=e.responseType}catch(a){if("json"!==e.responseType)throw a}"function"==typeof e.onDownloadProgress&&i.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&i.upload&&i.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){i&&(i.abort(),t(e),i=null)}),void 0===p&&(p=null),i.send(p)})}:"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)&&(Kd=function(e){return new Promise(function(a,t){var p=function(e){a(e)},o=function(e){t(e)},d=e.data,s=e.headers;if(s["User-Agent"]||s["user-agent"]||(s["User-Agent"]="axios/"+$d.version),d&&!td.isStream(d)){if(Buffer.isBuffer(d));else if(td.isArrayBuffer(d))d=Buffer.from(new Uint8Array(d));else{if(!td.isString(d))return o(md("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));d=Buffer.from(d,"utf-8")}s["Content-Length"]=d.length}var n=void 0;e.auth&&(n=(e.auth.username||"")+":"+(e.auth.password||""));var l=ud(e.baseURL,e.url),c=m.parse(l),h=c.protocol||"http:";if(!n&&c.auth){var f=c.auth.split(":");n=(f[0]||"")+":"+(f[1]||"")}n&&delete s.Authorization;var v=Wd.test(h),g=v?e.httpsAgent:e.httpAgent,w={path:rd(c.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:s,agent:g,agents:{http:e.httpAgent,https:e.httpsAgent},auth:n};e.socketPath?w.socketPath=e.socketPath:(w.hostname=c.hostname,w.port=c.port);var y,b=e.proxy;if(!b&&!1!==b){var _=h.slice(0,-1)+"_proxy",E=process.env[_]||process.env[_.toUpperCase()];if(E){var T=m.parse(E),S=process.env.no_proxy||process.env.NO_PROXY,O=!0;if(S&&(O=!S.split(",").map(function(e){return e.trim()}).some(function(e){return!!e&&("*"===e||"."===e[0]&&c.hostname.substr(c.hostname.length-e.length)===e||c.hostname===e)})),O&&(b={host:T.hostname,port:T.port},T.auth)){var A=T.auth.split(":");b.auth={username:A[0],password:A[1]}}}}if(b&&(w.hostname=b.host,w.host=b.host,w.headers.host=c.hostname+(c.port?":"+c.port:""),w.port=b.port,w.path=h+"//"+c.hostname+(c.port?":"+c.port:"")+w.path,b.auth)){var N=Buffer.from(b.auth.username+":"+b.auth.password,"utf8").toString("base64");w.headers["Proxy-Authorization"]="Basic "+N}var D=v&&(!b||Wd.test(b.protocol));e.transport?y=e.transport:0===e.maxRedirects?y=D?i:r:(e.maxRedirects&&(w.maxRedirects=e.maxRedirects),y=D?zd:Hd),e.maxContentLength&&e.maxContentLength>-1&&(w.maxBodyLength=e.maxContentLength);var k=y.request(w,function(a){if(!k.aborted){var t=a;switch(a.headers["content-encoding"]){case"gzip":case"compress":case"deflate":t=204===a.statusCode?t:t.pipe(u.createUnzip()),delete a.headers["content-encoding"]}var r=a.req||k,i={status:a.statusCode,statusText:a.statusMessage,headers:a.headers,config:e,request:r};if("stream"===e.responseType)i.data=t,cd(p,o,i);else{var d=[];t.on("data",function(a){d.push(a),e.maxContentLength>-1&&Buffer.concat(d).length>e.maxContentLength&&(t.destroy(),o(md("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,r)))}),t.on("error",function(a){k.aborted||o(ld(a,e,null,r))}),t.on("end",function(){var a=Buffer.concat(d);"arraybuffer"!==e.responseType&&(a=a.toString(e.responseEncoding)),i.data=a,cd(p,o,i)})}}});k.on("error",function(a){k.aborted||o(ld(a,e,null,k))}),e.timeout&&k.setTimeout(e.timeout,function(){k.abort(),o(md("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",k))}),e.cancelToken&&e.cancelToken.promise.then(function(e){k.aborted||(k.abort(),o(e))}),td.isStream(d)?d.on("error",function(a){o(ld(a,e,null,k))}).pipe(k):k.end(d)})}),Kd),transformRequest:[function(e,a){return nd(a,"Accept"),nd(a,"Content-Type"),td.isFormData(e)||td.isArrayBuffer(e)||td.isBuffer(e)||td.isStream(e)||td.isFile(e)||td.isBlob(e)?e:td.isArrayBufferView(e)?e.buffer:td.isURLSearchParams(e)?(Yd(a,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):td.isObject(e)?(Yd(a,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};td.forEach(["delete","get","head"],function(e){Qd.headers[e]={}}),td.forEach(["post","put","patch"],function(e){Qd.headers[e]=td.merge(Jd)});var Xd=Qd;function Zd(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var es=function(e){return Zd(e),e.headers=e.headers||{},e.data=dd(e.data,e.headers,e.transformRequest),e.headers=td.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),td.forEach(["delete","get","head","post","put","patch","common"],function(a){delete e.headers[a]}),(e.adapter||Xd.adapter)(e).then(function(a){return Zd(e),a.data=dd(a.data,a.headers,e.transformResponse),a},function(a){return sd(a)||(Zd(e),a&&a.response&&(a.response.data=dd(a.response.data,a.response.headers,e.transformResponse))),Promise.reject(a)})},as=function(e,a){a=a||{};var t={},p=["url","method","params","data"],r=["headers","auth","proxy"],i=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];td.forEach(p,function(e){void 0!==a[e]&&(t[e]=a[e])}),td.forEach(r,function(p){td.isObject(a[p])?t[p]=td.deepMerge(e[p],a[p]):void 0!==a[p]?t[p]=a[p]:td.isObject(e[p])?t[p]=td.deepMerge(e[p]):void 0!==e[p]&&(t[p]=e[p])}),td.forEach(i,function(p){void 0!==a[p]?t[p]=a[p]:void 0!==e[p]&&(t[p]=e[p])});var o=p.concat(r).concat(i),d=Object.keys(a).filter(function(e){return-1===o.indexOf(e)});return td.forEach(d,function(p){void 0!==a[p]?t[p]=a[p]:void 0!==e[p]&&(t[p]=e[p])}),t};function ts(e){this.defaults=e,this.interceptors={request:new od,response:new od}}ts.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=as(this.defaults,e)).method=e.method?e.method.toLowerCase():this.defaults.method?this.defaults.method.toLowerCase():"get";var a=[es,void 0],t=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){a.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){a.push(e.fulfilled,e.rejected)});a.length;)t=t.then(a.shift(),a.shift());return t},ts.prototype.getUri=function(e){return e=as(this.defaults,e),rd(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},td.forEach(["delete","get","head","options"],function(e){ts.prototype[e]=function(a,t){return this.request(td.merge(t||{},{method:e,url:a}))}}),td.forEach(["post","put","patch"],function(e){ts.prototype[e]=function(a,t,p){return this.request(td.merge(p||{},{method:e,url:a,data:t}))}});var ps=ts;function rs(e){this.message=e}rs.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},rs.prototype.__CANCEL__=!0;var is=rs;function os(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var a;this.promise=new Promise(function(e){a=e});var t=this;e(function(e){t.reason||(t.reason=new is(e),a(t.reason))})}os.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},os.source=function(){var e;return{token:new os(function(a){e=a}),cancel:e}};var ds=os;function ss(e){var a=new ps(e),t=Yo(ps.prototype.request,a);return td.extend(t,ps.prototype,a),td.extend(t,a),t}var ns=ss(Xd);ns.Axios=ps,ns.create=function(e){return ss(as(ns.defaults,e))},ns.Cancel=is,ns.CancelToken=ds,ns.isCancel=sd,ns.all=function(e){return Promise.all(e)},ns.spread=function(e){return function(a){return e.apply(null,a)}};var ls=ns;ls.default=ns;var ms=ls;let cs,us,hs,fs,vs,gs,ws,ys,bs,_s,Es="github";if(process.env.TRAVIS)cs=process.env.TRAVIS_REPO_SLUG,us=process.env.TRAVIS_PULL_REQUEST_SHA||process.env.TRAVIS_COMMIT,hs=process.env.TRAVIS_EVENT_TYPE,fs=process.env.TRAVIS_COMMIT_MESSAGE,gs=process.env.TRAVIS_PULL_REQUEST,bs=`https://travis-ci.org/${cs}/jobs/${process.env.TRAVIS_JOB_ID}`,_s=`https://travis-ci.org/${cs}/builds/${process.env.TRAVIS_JOB_ID}`,ws="push"===process.env.TRAVIS_EVENT_TYPE?process.env.TRAVIS_BRANCH:process.env.TRAVIS_PULL_REQUEST_BRANCH,vs="push"===process.env.TRAVIS_EVENT_TYPE?"":process.env.TRAVIS_BRANCH,ys="travis";else if(process.env.CIRCLECI)cs=process.env.CIRCLE_PROJECT_USERNAME+"/"+process.env.CIRCLE_PROJECT_REPONAME,us=process.env.CIRCLE_SHA1,hs="push",fs="",process.env.CI_PULL_REQUEST?(gs=process.env.CI_PULL_REQUEST.split("/").pop(),hs="pull_request"):gs="",ws=process.env.CIRCLE_BRANCH,ys="circle";else if(process.env.WERCKER)cs=process.env.WERCKER_GIT_OWNER+"/"+process.env.WERCKER_GIT_REPOSITORY,us=process.env.WERCKER_GIT_COMMIT,hs="push",fs="",gs="",vs="",ws=process.env.WERCKER_GIT_BRANCH,ys="wercker";else if(process.env.DRONE)cs=process.env.DRONE_REPO||process.env.CI_REPO||function(e){e||(e=process.env);let a=e.DRONE_REMOTE||e.CI_REMOTE;if(!a)return"";let t=a.split("/").slice(-2);return t[0]+"/"+t[1].replace(/\.git$/,"")}(process.env),us=process.env.DRONE_COMMIT||process.env.CI_COMMIT,hs=process.env.DRONE_BUILD_EVENT||process.env.DRONE_EVENT||process.env.CI_EVENT||"push",fs="",gs=process.env.DRONE_PULL_REQUEST,vs=process.env.DRONE_TARGET_BRANCH,ws=process.env.DRONE_BRANCH||process.env.CI_BRANCH,ys="drone";else if(process.env.GITLAB_CI)cs=process.env.CI_PROJECT_PATH,ws=process.env.CI_MERGE_REQUEST_SOURCE_BRANCH_NAME||process.env.CI_COMMIT_REF_NAME,fs=process.env.CI_COMMIT_MESSAGE,gs=process.env.CI_MERGE_REQUEST_ID||"",vs=process.env.CI_MERGE_REQUEST_TARGET_BRANCH_NAME||process.env.CI_EXTERNAL_PULL_REQUEST_TARGET_BRANCH_NAME,us=process.env.CI_COMMIT_SHA,hs=process.env.CI_PIPELINE_SOURCE,bs=process.env.CI_JOB_URL,Es="gitlab",ys="gitlab";else if("codeship"===process.env.CI_NAME)cs=process.env.CI_REPO_NAME,ws=process.env.CI_BRANCH,fs=process.env.CI_COMMIT_MESSAGE||process.env.CI_MESSAGE,hs="push",gs=process.env.CI_PR_NUMBER,vs="",us=process.env.CI_COMMIT_ID,_s=process.env.CI_BUILD_URL,ys="codeship";else if(process.env.GITHUB_ACTION){const e=process.env.GITHUB_REF.split("/")[2];cs=process.env.GITHUB_REPOSITORY,us=process.env.GITHUB_SHA,hs=process.env.GITHUB_EVENT_NAME,fs="",gs="pull_request"===hs?e:"",ws="pull_request"===hs?process.env.GITHUB_HEAD_REF:e,vs=process.env.GITHUB_BASE_REF,ys="github_actions"}else process.env.CF_PAGES?(cs="",hs="push",gs="",vs="",us=process.env.CF_PAGES_COMMIT_SHA,ws=process.env.CF_PAGES_BRANCH,ys="cloudflare"):process.env.NETLIFY?(cs=process.env.REPOSITORY_URL.split("@github.com/").pop(),hs=process.env.PULL_REQUEST?"pull_request":"push",gs=process.env.PULL_REQUEST?process.env.REVIEW_ID:"",vs="",us=process.env.COMMIT_REF,ws=process.env.HEAD,ys="netlify"):process.env.NOW_GITHUB_ORG?(cs=process.env.NOW_GITHUB_ORG+"/"+process.env.NOW_GITHUB_REPO,hs="push",gs="",us=process.env.NOW_GITHUB_COMMIT_SHA,ws=process.env.NOW_GITHUB_COMMIT_REF,ys="now"):process.env.BUDDY?(cs=process.env.BUDDY_PROJECT_NAME,ws=process.env.BUDDY_EXECUTION_BRANCH,fs=process.env.BUDDY_EXECUTION_REVISION_MESSAGE,gs=process.env.BUDDY_EXECUTION_PULL_REQUEST_NO,vs=process.env.BUDDY_EXECUTION_PULL_REQUEST_BASE_BRANCH,us=process.env.BUDDY_EXECUTION_REVISION,hs=process.env.BUDDY_EXECUTION_MODE,bs=process.env.BUDDY_EXECUTION_REVISION_URL,Es="buddy",ys="buddy"):process.env.CF_BUILD_URL?(cs=process.env.CF_REPO_NAME,ws=process.env.CF_BRANCH,fs=process.env.CF_COMMIT_MESSAGE,gs=process.env.CF_PULL_REQUEST_NUMBER,vs=process.env.CF_PULL_REQUEST_TARGET,us=process.env.CF_REVISION,hs="push",_s=process.env.CF_BUILD_URL,Es="codefresh",ys="codefresh"):process.env.CI&&(Es=process.env.CI_PLATFORM,cs=process.env.CI_REPO_OWNER+"/"+process.env.CI_REPO_NAME,us=process.env.CI_COMMIT_SHA,hs=process.env.CI_EVENT||"push",fs=process.env.CI_COMMIT_MESSAGE,gs=process.env.CI_MERGE_REQUEST_ID,vs=process.env.CI_TARGET_BRANCH,ws=process.env.CI_BRANCH,ys=process.env.CI);var Ts={repo:cs,sha:us,event:hs,commit_message:fs,branch:ws,pull_request_number:gs,pull_request_target_branch:vs,ci:ys,platform:Es,jobUrl:bs,buildUrl:_s};const{repo:Ss,sha:Os,ci:As}=Ts,Ns=process.env.SIZE_STORE_ENDPOINT||"https://size-store.now.sh";var Ds={publishDiff:async function(e,a){if("test"!==process.env.NODE_ENV&&As)try{const t={ci:As,repo:Ss,sha:Os,filename:a,diff:e};await ms.post(Ns+"/diff",t)}catch(e){console.error("error: while publishing diff",e)}},publishSizes:async function(e,a){if("test"!==process.env.NODE_ENV&&As)try{const t={ci:As,repo:Ss,sha:Os,filename:a,size:e};await ms.post(Ns+"/size",t)}catch(e){console.error("error: while publishing sizes",e)}}},ks=function(e){return Object.defineProperty(function(){if("function"!=typeof arguments[arguments.length-1])return new Promise((a,t)=>{arguments[arguments.length]=(e,p)=>{if(e)return t(e);a(p)},arguments.length++,e.apply(this,arguments)});e.apply(this,arguments)},"name",{value:e.name})},Ps=process.cwd,Cs=null,Rs=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Cs||(Cs=Ps.call(process)),Cs};try{process.cwd()}catch(e){}if("function"==typeof process.chdir){var Fs=process.chdir;process.chdir=function(e){Cs=null,Fs.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Fs)}var Vs=l.Stream,js=Object.getPrototypeOf||function(e){return e.__proto__},xs=_(function(e){var a,t;function r(e,t){Object.defineProperty(e,a,{get:function(){return t}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(a=Symbol.for("graceful-fs.queue"),t=Symbol.for("graceful-fs.previous")):(a="___graceful-fs.queue",t="___graceful-fs.previous");var i,o=function(){};function d(e){(function(e){var a,t;function p(a){return a?function(t,p,r){return a.call(e,t,p,function(e){n(e)&&(e=null),r&&r.apply(this,arguments)})}:a}function r(a){return a?function(t,p){try{return a.call(e,t,p)}catch(e){if(!n(e))throw e}}:a}function i(a){return a?function(t,p,r,i){return a.call(e,t,p,r,function(e){n(e)&&(e=null),i&&i.apply(this,arguments)})}:a}function o(a){return a?function(t,p,r){try{return a.call(e,t,p,r)}catch(e){if(!n(e))throw e}}:a}function d(a){return a?function(t,p,r){function i(e,a){a&&(a.uid<0&&(a.uid+=4294967296),a.gid<0&&(a.gid+=4294967296)),r&&r.apply(this,arguments)}return"function"==typeof p&&(r=p,p=null),p?a.call(e,t,p,i):a.call(e,t,i)}:a}function s(a){return a?function(t,p){var r=p?a.call(e,t,p):a.call(e,t);return r&&(r.uid<0&&(r.uid+=4294967296),r.gid<0&&(r.gid+=4294967296)),r}:a}function n(e){return!e||"ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code)}w.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(e){e.lchmod=function(a,t,p){e.open(a,w.O_WRONLY|w.O_SYMLINK,t,function(a,r){a?p&&p(a):e.fchmod(r,t,function(a){e.close(r,function(e){p&&p(a||e)})})})},e.lchmodSync=function(a,t){var p,r=e.openSync(a,w.O_WRONLY|w.O_SYMLINK,t),i=!0;try{p=e.fchmodSync(r,t),i=!1}finally{if(i)try{e.closeSync(r)}catch(e){}else e.closeSync(r)}return p}}(e),e.lutimes||function(e){w.hasOwnProperty("O_SYMLINK")?(e.lutimes=function(a,t,p,r){e.open(a,w.O_SYMLINK,function(a,i){a?r&&r(a):e.futimes(i,t,p,function(a){e.close(i,function(e){r&&r(a||e)})})})},e.lutimesSync=function(a,t,p){var r,i=e.openSync(a,w.O_SYMLINK),o=!0;try{r=e.futimesSync(i,t,p),o=!1}finally{if(o)try{e.closeSync(i)}catch(e){}else e.closeSync(i)}return r}):(e.lutimes=function(e,a,t,p){p&&process.nextTick(p)},e.lutimesSync=function(){})}(e),e.chown=i(e.chown),e.fchown=i(e.fchown),e.lchown=i(e.lchown),e.chmod=p(e.chmod),e.fchmod=p(e.fchmod),e.lchmod=p(e.lchmod),e.chownSync=o(e.chownSync),e.fchownSync=o(e.fchownSync),e.lchownSync=o(e.lchownSync),e.chmodSync=r(e.chmodSync),e.fchmodSync=r(e.fchmodSync),e.lchmodSync=r(e.lchmodSync),e.stat=d(e.stat),e.fstat=d(e.fstat),e.lstat=d(e.lstat),e.statSync=s(e.statSync),e.fstatSync=s(e.fstatSync),e.lstatSync=s(e.lstatSync),e.lchmod||(e.lchmod=function(e,a,t){t&&process.nextTick(t)},e.lchmodSync=function(){}),e.lchown||(e.lchown=function(e,a,t,p){p&&process.nextTick(p)},e.lchownSync=function(){}),"win32"===Rs&&(e.rename=(a=e.rename,function(t,p,r){var i=Date.now(),o=0;a(t,p,function d(s){if(s&&("EACCES"===s.code||"EPERM"===s.code)&&Date.now()-i<6e4)return setTimeout(function(){e.stat(p,function(e,i){e&&"ENOENT"===e.code?a(t,p,d):r(s)})},o),void(o<100&&(o+=10));r&&r(s)})})),e.read=function(a){function t(t,p,r,i,o,d){var s;if(d&&"function"==typeof d){var n=0;s=function(l,m,c){if(l&&"EAGAIN"===l.code&&n<10)return n++,a.call(e,t,p,r,i,o,s);d.apply(this,arguments)}}return a.call(e,t,p,r,i,o,s)}return Object.setPrototypeOf&&Object.setPrototypeOf(t,a),t}(e.read),e.readSync=(t=e.readSync,function(a,p,r,i,o){for(var d=0;;)try{return t.call(e,a,p,r,i,o)}catch(e){if("EAGAIN"===e.code&&d<10){d++;continue}throw e}})})(e),e.gracefulify=d,e.createReadStream=function(a,t){return new e.ReadStream(a,t)},e.createWriteStream=function(a,t){return new e.WriteStream(a,t)};var a=e.readFile;e.readFile=function(e,t,p){return"function"==typeof t&&(p=t,t=null),function e(t,p,r,i){return a(t,p,function(a){!a||"EMFILE"!==a.code&&"ENFILE"!==a.code?"function"==typeof r&&r.apply(this,arguments):l([e,[t,p,r],a,i||Date.now(),Date.now()])})}(e,t,p)};var t=e.writeFile;e.writeFile=function(e,a,p,r){return"function"==typeof p&&(r=p,p=null),function e(a,p,r,i,o){return t(a,p,r,function(t){!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?"function"==typeof i&&i.apply(this,arguments):l([e,[a,p,r,i],t,o||Date.now(),Date.now()])})}(e,a,p,r)};var p=e.appendFile;p&&(e.appendFile=function(e,a,t,r){return"function"==typeof t&&(r=t,t=null),function e(a,t,r,i,o){return p(a,t,r,function(p){!p||"EMFILE"!==p.code&&"ENFILE"!==p.code?"function"==typeof i&&i.apply(this,arguments):l([e,[a,t,r,i],p,o||Date.now(),Date.now()])})}(e,a,t,r)});var r=e.copyFile;r&&(e.copyFile=function(e,a,t,p){return"function"==typeof t&&(p=t,t=0),function e(a,t,p,i,o){return r(a,t,p,function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?"function"==typeof i&&i.apply(this,arguments):l([e,[a,t,p,i],r,o||Date.now(),Date.now()])})}(e,a,t,p)});var i=e.readdir;if(e.readdir=function(e,a,t){return"function"==typeof a&&(t=a,a=null),function e(a,t,p,r){return i(a,t,function(i,o){!i||"EMFILE"!==i.code&&"ENFILE"!==i.code?(o&&o.sort&&o.sort(),"function"==typeof p&&p.call(this,i,o)):l([e,[a,t,p],i,r||Date.now(),Date.now()])})}(e,a,t)},"v0.8"===process.version.substr(0,4)){var o=function(e){return{ReadStream:function a(t,p){if(!(this instanceof a))return new a(t,p);Vs.call(this);var r=this;this.path=t,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,p=p||{};for(var i=Object.keys(p),o=0,d=i.length;othis.end)throw new Error("start must be <= end");this.pos=this.start}null===this.fd?e.open(this.path,this.flags,this.mode,function(e,a){if(e)return r.emit("error",e),void(r.readable=!1);r.fd=a,r.emit("open",a),r._read()}):process.nextTick(function(){r._read()})},WriteStream:function a(t,p){if(!(this instanceof a))return new a(t,p);Vs.call(this),this.path=t,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,p=p||{};for(var r=Object.keys(p),i=0,o=r.length;i= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}(e);u=o.ReadStream,h=o.WriteStream}var s=e.ReadStream;s&&(u.prototype=Object.create(s.prototype),u.prototype.open=function(){var e=this;v(e.path,e.flags,e.mode,function(a,t){a?(e.autoClose&&e.destroy(),e.emit("error",a)):(e.fd=t,e.emit("open",t),e.read())})});var n=e.WriteStream;n&&(h.prototype=Object.create(n.prototype),h.prototype.open=function(){var e=this;v(e.path,e.flags,e.mode,function(a,t){a?(e.destroy(),e.emit("error",a)):(e.fd=t,e.emit("open",t))})}),Object.defineProperty(e,"ReadStream",{get:function(){return u},set:function(e){u=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return h},set:function(e){h=e},enumerable:!0,configurable:!0});var m=u;Object.defineProperty(e,"FileReadStream",{get:function(){return m},set:function(e){m=e},enumerable:!0,configurable:!0});var c=h;function u(e,a){return this instanceof u?(s.apply(this,arguments),this):u.apply(Object.create(u.prototype),arguments)}function h(e,a){return this instanceof h?(n.apply(this,arguments),this):h.apply(Object.create(h.prototype),arguments)}Object.defineProperty(e,"FileWriteStream",{get:function(){return c},set:function(e){c=e},enumerable:!0,configurable:!0});var f=e.open;function v(e,a,t,p){return"function"==typeof t&&(p=t,t=null),function e(a,t,p,r,i){return f(a,t,p,function(o,d){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?"function"==typeof r&&r.apply(this,arguments):l([e,[a,t,p,r],o,i||Date.now(),Date.now()])})}(e,a,t,p)}return e.open=v,e}function l(e){o("ENQUEUE",e[0].name,e[1]),p[a].push(e),c()}function m(){for(var e=Date.now(),t=0;t2&&(p[a][t][3]=e,p[a][t][4]=e);c()}function c(){if(clearTimeout(i),i=void 0,0!==p[a].length){var e=p[a].shift(),t=e[0],r=e[1],d=e[2],s=e[3],n=e[4];if(void 0===s)o("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-s>=6e4){o("TIMEOUT",t.name,r);var l=r.pop();"function"==typeof l&&l.call(null,d)}else{var m=Date.now()-n,u=Math.max(n-s,1);m>=Math.min(1.2*u,100)?(o("RETRY",t.name,r),t.apply(null,r.concat([s]))):p[a].push(e)}void 0===i&&(i=setTimeout(c,0))}}n.debuglog?o=n.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(o=function(){var e=n.format.apply(n,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),p[a]||(r(p,y[a]||[]),p.close=function(e){function a(a,t){return e.call(p,a,function(e){e||m(),"function"==typeof t&&t.apply(this,arguments)})}return Object.defineProperty(a,t,{value:e}),a}(p.close),p.closeSync=function(e){function a(a){e.apply(p,arguments),m()}return Object.defineProperty(a,t,{value:e}),a}(p.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){o(p[a]),s.equal(p[a].length,0)})),y[a]||r(y,p[a]),e.exports=d(function(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Object)var a={__proto__:js(e)};else a=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(t){Object.defineProperty(a,t,Object.getOwnPropertyDescriptor(e,t))}),a}(p)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!p.__patched&&(e.exports=d(p),p.__patched=!0)}),Us=_(function(e,a){const t=ks,p=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchown","lchmod","link","lstat","mkdir","mkdtemp","open","readFile","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(e=>"function"==typeof xs[e]);Object.keys(xs).forEach(e=>{"promises"!==e&&(a[e]=xs[e])}),p.forEach(e=>{a[e]=t(xs[e])}),a.exists=function(e,a){return"function"==typeof a?xs.exists(e,a):new Promise(a=>xs.exists(e,a))},a.read=function(e,a,t,p,r,i){return"function"==typeof i?xs.read(e,a,t,p,r,i):new Promise((i,o)=>{xs.read(e,a,t,p,r,(e,a,t)=>{if(e)return o(e);i({bytesRead:a,buffer:t})})})},a.write=function(e,a,...t){return"function"==typeof t[t.length-1]?xs.write(e,a,...t):new Promise((p,r)=>{xs.write(e,a,...t,(e,a,t)=>{if(e)return r(e);p({bytesWritten:a,buffer:t})})})},"function"==typeof xs.realpath.native&&(a.realpath.native=t(xs.realpath.native))});const Gs=/[<>:"|?*]/;var Is=function(e){const t=function(e){return(e=a.normalize(a.resolve(e)).split(a.sep)).length>0?e[0]:null}(e);return e=e.replace(t,""),Gs.test(e)};const Bs=Is,Ls=parseInt("0777",8),Ms=Is,qs=parseInt("0777",8);var $s=function e(t,p,r){p&&"object"==typeof p||(p={mode:p});let i=p.mode;const o=p.fs||xs;if("win32"===process.platform&&Ms(t)){const e=new Error(t+" contains invalid WIN32 path characters.");throw e.code="EINVAL",e}void 0===i&&(i=qs&~process.umask()),r||(r=null),t=a.resolve(t);try{o.mkdirSync(t,i),r=r||t}catch(i){if("ENOENT"===i.code){if(a.dirname(t)===t)throw i;r=e(a.dirname(t),p,r),e(t,p,r)}else{let e;try{e=o.statSync(t)}catch(e){throw i}if(!e.isDirectory())throw i}}return r};const Hs=ks(function e(t,p,r,i){if("function"==typeof p?(r=p,p={}):p&&"object"==typeof p||(p={mode:p}),"win32"===process.platform&&Bs(t)){const e=new Error(t+" contains invalid WIN32 path characters.");return e.code="EINVAL",r(e)}let o=p.mode;const d=p.fs||xs;void 0===o&&(o=Ls&~process.umask()),i||(i=null),r=r||function(){},t=a.resolve(t),d.mkdir(t,o,o=>{if(!o)return r(null,i=i||t);switch(o.code){case"ENOENT":if(a.dirname(t)===t)return r(o);e(a.dirname(t),p,(a,i)=>{a?r(a,i):e(t,p,r,i)});break;default:d.stat(t,(e,a)=>{e||!a.isDirectory()?r(o,i):r(null,i)})}})});var zs={mkdirs:Hs,mkdirsSync:$s,mkdirp:Hs,mkdirpSync:$s,ensureDir:Hs,ensureDirSync:$s};const Ws=process.versions.node.split("."),Js=Number.parseInt(Ws[0],10),Ys=Number.parseInt(Ws[1],10),Ks=Number.parseInt(Ws[2],10);function Qs(){if(Js>10)return!0;if(10===Js){if(Ys>5)return!0;if(5===Ys&&Ks>=0)return!0}return!1}function Xs(e,t){const p=a.resolve(e).split(a.sep).filter(e=>e),r=a.resolve(t).split(a.sep).filter(e=>e);return p.reduce((e,a,t)=>e&&r[t]===a,!0)}function Zs(e,a,t){return`Cannot ${t} '${e}' to a subdirectory of itself, '${a}'.`}var en={checkPaths:function(e,a,t,p){!function(e,a,t){Qs()?xs.stat(e,{bigint:!0},(e,p)=>{if(e)return t(e);xs.stat(a,{bigint:!0},(e,a)=>e?"ENOENT"===e.code?t(null,{srcStat:p,destStat:null}):t(e):t(null,{srcStat:p,destStat:a}))}):xs.stat(e,(e,p)=>{if(e)return t(e);xs.stat(a,(e,a)=>e?"ENOENT"===e.code?t(null,{srcStat:p,destStat:null}):t(e):t(null,{srcStat:p,destStat:a}))})}(e,a,(r,i)=>{if(r)return p(r);const{srcStat:o,destStat:d}=i;return d&&d.ino&&d.dev&&d.ino===o.ino&&d.dev===o.dev?p(new Error("Source and destination must not be the same.")):o.isDirectory()&&Xs(e,a)?p(new Error(Zs(e,a,t))):p(null,{srcStat:o,destStat:d})})},checkPathsSync:function(e,a,t){const{srcStat:p,destStat:r}=function(e,a){let t,p;t=Qs()?xs.statSync(e,{bigint:!0}):xs.statSync(e);try{p=Qs()?xs.statSync(a,{bigint:!0}):xs.statSync(a)}catch(e){if("ENOENT"===e.code)return{srcStat:t,destStat:null};throw e}return{srcStat:t,destStat:p}}(e,a);if(r&&r.ino&&r.dev&&r.ino===p.ino&&r.dev===p.dev)throw new Error("Source and destination must not be the same.");if(p.isDirectory()&&Xs(e,a))throw new Error(Zs(e,a,t));return{srcStat:p,destStat:r}},checkParentPaths:function e(t,p,r,i,o){const d=a.resolve(a.dirname(t)),s=a.resolve(a.dirname(r));if(s===d||s===a.parse(s).root)return o();Qs()?xs.stat(s,{bigint:!0},(a,d)=>a?"ENOENT"===a.code?o():o(a):d.ino&&d.dev&&d.ino===p.ino&&d.dev===p.dev?o(new Error(Zs(t,r,i))):e(t,p,s,i,o)):xs.stat(s,(a,d)=>a?"ENOENT"===a.code?o():o(a):d.ino&&d.dev&&d.ino===p.ino&&d.dev===p.dev?o(new Error(Zs(t,r,i))):e(t,p,s,i,o))},checkParentPathsSync:function e(t,p,r,i){const o=a.resolve(a.dirname(t)),d=a.resolve(a.dirname(r));if(d===o||d===a.parse(d).root)return;let s;try{s=Qs()?xs.statSync(d,{bigint:!0}):xs.statSync(d)}catch(e){if("ENOENT"===e.code)return;throw e}if(s.ino&&s.dev&&s.ino===p.ino&&s.dev===p.dev)throw new Error(Zs(t,r,i));return e(t,p,d,i)},isSrcSubdir:Xs};const an=zs.mkdirsSync;function tn(e,t,p,r){if(!r.filter||r.filter(t,p))return function(e,t,p,r){const i=(r.dereference?xs.statSync:xs.lstatSync)(t);return i.isDirectory()?function(e,a,t,p,r){if(!a)return function(e,a,t,p){return xs.mkdirSync(t),rn(a,t,p),xs.chmodSync(t,e.mode)}(e,t,p,r);if(a&&!a.isDirectory())throw new Error(`Cannot overwrite non-directory '${p}' with directory '${t}'.`);return rn(t,p,r)}(i,e,t,p,r):i.isFile()||i.isCharacterDevice()||i.isBlockDevice()?function(e,a,t,p,r){return a?function(e,a,t,p){if(p.overwrite)return xs.unlinkSync(t),pn(e,a,t,p);if(p.errorOnExist)throw new Error(`'${t}' already exists`)}(e,t,p,r):pn(e,t,p,r)}(i,e,t,p,r):i.isSymbolicLink()?function(e,t,p,r){let i=xs.readlinkSync(t);if(r.dereference&&(i=a.resolve(process.cwd(),i)),e){let e;try{e=xs.readlinkSync(p)}catch(e){if("EINVAL"===e.code||"UNKNOWN"===e.code)return xs.symlinkSync(i,p);throw e}if(r.dereference&&(e=a.resolve(process.cwd(),e)),en.isSrcSubdir(i,e))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${e}'.`);if(xs.statSync(p).isDirectory()&&en.isSrcSubdir(e,i))throw new Error(`Cannot overwrite '${e}' with '${i}'.`);return function(e,a){return xs.unlinkSync(a),xs.symlinkSync(e,a)}(i,p)}return xs.symlinkSync(i,p)}(e,t,p,r):void 0}(e,t,p,r)}function pn(e,a,t,p){return"function"==typeof xs.copyFileSync?(xs.copyFileSync(a,t),xs.chmodSync(t,e.mode),p.preserveTimestamps?function(e,a,t){const p=xs.openSync(e,"r+");return xs.futimesSync(p,a,t),xs.closeSync(p)}(t,e.atime,e.mtime):void 0):function(e,a,t,p){const r=function(e){if("function"==typeof Buffer.allocUnsafe)try{return Buffer.allocUnsafe(65536)}catch(e){return new Buffer(65536)}return new Buffer(65536)}(),i=xs.openSync(a,"r"),o=xs.openSync(t,"w",e.mode);let d=0;for(;dfunction(e,t,p,r){const i=a.join(t,e),o=a.join(p,e),{destStat:d}=en.checkPathsSync(i,o,"copy");return tn(d,i,o,r)}(r,e,t,p))}var on,dn={copySync:function(e,t,p){"function"==typeof p&&(p={filter:p}),(p=p||{}).clobber=!("clobber"in p)||!!p.clobber,p.overwrite="overwrite"in p?!!p.overwrite:p.clobber,p.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269");const{srcStat:r,destStat:i}=en.checkPathsSync(e,t,"copy");return en.checkParentPathsSync(e,r,t,"copy"),function(e,t,p,r){if(r.filter&&!r.filter(t,p))return;const i=a.dirname(p);return xs.existsSync(i)||an(i),tn(e,t,p,r)}(i,e,t,p)}},sn={pathExists:(on=function(e){return Us.access(e).then(()=>!0).catch(()=>!1)},Object.defineProperty(function(){const e=arguments[arguments.length-1];if("function"!=typeof e)return on.apply(this,arguments);on.apply(this,arguments).then(a=>e(null,a),e)},"name",{value:on.name})),pathExistsSync:Us.existsSync};const nn=zs.mkdirs,ln=sn.pathExists;function mn(e,t,p,r,i){const o=a.dirname(p);ln(o,(a,d)=>a?i(a):d?un(e,t,p,r,i):void nn(o,a=>a?i(a):un(e,t,p,r,i)))}function cn(e,a,t,p,r,i){Promise.resolve(r.filter(t,p)).then(o=>o?e(a,t,p,r,i):i(),e=>i(e))}function un(e,a,t,p,r){return p.filter?cn(hn,e,a,t,p,r):hn(e,a,t,p,r)}function hn(e,t,p,r,i){(r.dereference?xs.stat:xs.lstat)(t,(o,d)=>o?i(o):d.isDirectory()?function(e,a,t,p,r,i){return a?a&&!a.isDirectory()?i(new Error(`Cannot overwrite non-directory '${p}' with directory '${t}'.`)):gn(t,p,r,i):function(e,a,t,p,r){xs.mkdir(t,i=>{if(i)return r(i);gn(a,t,p,a=>a?r(a):xs.chmod(t,e.mode,r))})}(e,t,p,r,i)}(d,e,t,p,r,i):d.isFile()||d.isCharacterDevice()||d.isBlockDevice()?function(e,a,t,p,r,i){return a?function(e,a,t,p,r){if(!p.overwrite)return p.errorOnExist?r(new Error(`'${t}' already exists`)):r();xs.unlink(t,i=>i?r(i):fn(e,a,t,p,r))}(e,t,p,r,i):fn(e,t,p,r,i)}(d,e,t,p,r,i):d.isSymbolicLink()?function(e,t,p,r,i){xs.readlink(t,(t,o)=>t?i(t):(r.dereference&&(o=a.resolve(process.cwd(),o)),e?void xs.readlink(p,(t,d)=>t?"EINVAL"===t.code||"UNKNOWN"===t.code?xs.symlink(o,p,i):i(t):(r.dereference&&(d=a.resolve(process.cwd(),d)),en.isSrcSubdir(o,d)?i(new Error(`Cannot copy '${o}' to a subdirectory of itself, '${d}'.`)):e.isDirectory()&&en.isSrcSubdir(d,o)?i(new Error(`Cannot overwrite '${d}' with '${o}'.`)):function(e,a,t){xs.unlink(a,p=>p?t(p):xs.symlink(e,a,t))}(o,p,i))):xs.symlink(o,p,i)))}(e,t,p,r,i):void 0)}function fn(e,a,t,p,r){return"function"==typeof xs.copyFile?xs.copyFile(a,t,a=>a?r(a):vn(e,t,p,r)):function(e,a,t,p,r){const i=xs.createReadStream(a);i.on("error",e=>r(e)).once("open",()=>{const a=xs.createWriteStream(t,{mode:e.mode});a.on("error",e=>r(e)).on("open",()=>i.pipe(a)).once("close",()=>vn(e,t,p,r))})}(e,a,t,p,r)}function vn(e,a,t,p){xs.chmod(a,e.mode,r=>r?p(r):t.preserveTimestamps?function(e,a,t,p){xs.open(e,"r+",(e,r)=>{if(e)return p(e);xs.futimes(r,a,t,e=>{xs.close(r,a=>{p&&p(e||a)})})})}(a,e.atime,e.mtime,p):p())}function gn(e,t,p,r){xs.readdir(e,(i,o)=>i?r(i):function e(t,p,r,i,o){const d=t.pop();return d?function(t,p,r,i,o,d){const s=a.join(r,p),n=a.join(i,p);en.checkPaths(s,n,"copy",(a,p)=>{if(a)return d(a);const{destStat:l}=p;un(l,s,n,o,a=>a?d(a):e(t,r,i,o,d))})}(t,d,p,r,i,o):o()}(o,e,t,p,r))}var wn={copy:ks(function(e,a,t,p){"function"!=typeof t||p?"function"==typeof t&&(t={filter:t}):(p=t,t={}),p=p||function(){},(t=t||{}).clobber=!("clobber"in t)||!!t.clobber,t.overwrite="overwrite"in t?!!t.overwrite:t.clobber,t.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269"),en.checkPaths(e,a,"copy",(r,i)=>{if(r)return p(r);const{srcStat:o,destStat:d}=i;en.checkParentPaths(e,o,a,"copy",r=>r?p(r):t.filter?cn(mn,d,e,a,t,p):mn(d,e,a,t,p))})})};const yn="win32"===process.platform;function bn(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(a=>{e[a]=e[a]||xs[a],e[a+="Sync"]=e[a]||xs[a]}),e.maxBusyTries=e.maxBusyTries||3}function _n(e,a,t){let p=0;"function"==typeof a&&(t=a,a={}),s(e,"rimraf: missing path"),s.strictEqual(typeof e,"string","rimraf: path should be a string"),s.strictEqual(typeof t,"function","rimraf: callback function required"),s(a,"rimraf: invalid options argument provided"),s.strictEqual(typeof a,"object","rimraf: options should be object"),bn(a),En(e,a,function r(i){if(i){if(("EBUSY"===i.code||"ENOTEMPTY"===i.code||"EPERM"===i.code)&&pEn(e,a,r),100*p);"ENOENT"===i.code&&(i=null)}t(i)})}function En(e,a,t){s(e),s(a),s("function"==typeof t),a.lstat(e,(p,r)=>p&&"ENOENT"===p.code?t(null):p&&"EPERM"===p.code&&yn?Tn(e,a,p,t):r&&r.isDirectory()?On(e,a,p,t):void a.unlink(e,p=>{if(p){if("ENOENT"===p.code)return t(null);if("EPERM"===p.code)return yn?Tn(e,a,p,t):On(e,a,p,t);if("EISDIR"===p.code)return On(e,a,p,t)}return t(p)}))}function Tn(e,a,t,p){s(e),s(a),s("function"==typeof p),t&&s(t instanceof Error),a.chmod(e,438,r=>{r?p("ENOENT"===r.code?null:t):a.stat(e,(r,i)=>{r?p("ENOENT"===r.code?null:t):i.isDirectory()?On(e,a,t,p):a.unlink(e,p)})})}function Sn(e,a,t){let p;s(e),s(a),t&&s(t instanceof Error);try{a.chmodSync(e,438)}catch(e){if("ENOENT"===e.code)return;throw t}try{p=a.statSync(e)}catch(e){if("ENOENT"===e.code)return;throw t}p.isDirectory()?Nn(e,a,t):a.unlinkSync(e)}function On(e,t,p,r){s(e),s(t),p&&s(p instanceof Error),s("function"==typeof r),t.rmdir(e,i=>{!i||"ENOTEMPTY"!==i.code&&"EEXIST"!==i.code&&"EPERM"!==i.code?r(i&&"ENOTDIR"===i.code?p:i):function(e,t,p){s(e),s(t),s("function"==typeof p),t.readdir(e,(r,i)=>{if(r)return p(r);let o,d=i.length;if(0===d)return t.rmdir(e,p);i.forEach(r=>{_n(a.join(e,r),t,a=>{if(!o)return a?p(o=a):void(0==--d&&t.rmdir(e,p))})})})}(e,t,r)})}function An(e,a){let t;bn(a=a||{}),s(e,"rimraf: missing path"),s.strictEqual(typeof e,"string","rimraf: path should be a string"),s(a,"rimraf: missing options"),s.strictEqual(typeof a,"object","rimraf: options should be object");try{t=a.lstatSync(e)}catch(t){if("ENOENT"===t.code)return;"EPERM"===t.code&&yn&&Sn(e,a,t)}try{t&&t.isDirectory()?Nn(e,a,null):a.unlinkSync(e)}catch(t){if("ENOENT"===t.code)return;if("EPERM"===t.code)return yn?Sn(e,a,t):Nn(e,a,t);if("EISDIR"!==t.code)throw t;Nn(e,a,t)}}function Nn(e,t,p){s(e),s(t),p&&s(p instanceof Error);try{t.rmdirSync(e)}catch(r){if("ENOTDIR"===r.code)throw p;if("ENOTEMPTY"===r.code||"EEXIST"===r.code||"EPERM"===r.code)!function(e,t){if(s(e),s(t),t.readdirSync(e).forEach(p=>An(a.join(e,p),t)),!yn)return t.rmdirSync(e,t);{const a=Date.now();do{try{return t.rmdirSync(e,t)}catch(e){}}while(Date.now()-a<500)}}(e,t);else if("ENOENT"!==r.code)throw r}}var Dn=_n;_n.sync=An;var kn={remove:ks(Dn),removeSync:Dn.sync};const Pn=ks(function(e,t){t=t||function(){},xs.readdir(e,(p,r)=>{if(p)return zs.mkdirs(e,t);r=r.map(t=>a.join(e,t)),function e(){const a=r.pop();if(!a)return t();kn.remove(a,a=>{if(a)return t(a);e()})}()})});function Cn(e){let t;try{t=xs.readdirSync(e)}catch(a){return zs.mkdirsSync(e)}t.forEach(t=>{t=a.join(e,t),kn.removeSync(t)})}var Rn={emptyDirSync:Cn,emptydirSync:Cn,emptyDir:Pn,emptydir:Pn};const Fn=sn.pathExists;var Vn={createFile:ks(function(e,t){function p(){xs.writeFile(e,"",e=>{if(e)return t(e);t()})}xs.stat(e,(r,i)=>{if(!r&&i.isFile())return t();const o=a.dirname(e);Fn(o,(e,a)=>e?t(e):a?p():void zs.mkdirs(o,e=>{if(e)return t(e);p()}))})}),createFileSync:function(e){let t;try{t=xs.statSync(e)}catch(e){}if(t&&t.isFile())return;const p=a.dirname(e);xs.existsSync(p)||zs.mkdirsSync(p),xs.writeFileSync(e,"")}};const jn=sn.pathExists;var xn={createLink:ks(function(e,t,p){function r(e,a){xs.link(e,a,e=>{if(e)return p(e);p(null)})}jn(t,(i,o)=>i?p(i):o?p(null):void xs.lstat(e,i=>{if(i)return i.message=i.message.replace("lstat","ensureLink"),p(i);const o=a.dirname(t);jn(o,(a,i)=>a?p(a):i?r(e,t):void zs.mkdirs(o,a=>{if(a)return p(a);r(e,t)}))}))}),createLinkSync:function(e,t){if(xs.existsSync(t))return;try{xs.lstatSync(e)}catch(e){throw e.message=e.message.replace("lstat","ensureLink"),e}const p=a.dirname(t);return xs.existsSync(p)||zs.mkdirsSync(p),xs.linkSync(e,t)}};const Un=sn.pathExists,Gn=zs.mkdirs,In=zs.mkdirsSync,Bn=sn.pathExists;var Ln,Mn={createSymlink:ks(function(e,t,p,r){r="function"==typeof p?p:r,p="function"!=typeof p&&p,Bn(t,(i,o)=>i?r(i):o?r(null):void function(e,t,p){if(a.isAbsolute(e))return xs.lstat(e,a=>a?(a.message=a.message.replace("lstat","ensureSymlink"),p(a)):p(null,{toCwd:e,toDst:e}));{const r=a.dirname(t),i=a.join(r,e);Un(i,(t,o)=>t?p(t):o?p(null,{toCwd:i,toDst:e}):xs.lstat(e,t=>t?(t.message=t.message.replace("lstat","ensureSymlink"),p(t)):p(null,{toCwd:e,toDst:a.relative(r,e)})))}}(e,t,(i,o)=>{if(i)return r(i);e=o.toDst,function(e,a,t){if(t="function"==typeof a?a:t,a="function"!=typeof a&&a)return t(null,a);xs.lstat(e,(e,p)=>{if(e)return t(null,"file");a=p&&p.isDirectory()?"dir":"file",t(null,a)})}(o.toCwd,p,(p,i)=>{if(p)return r(p);const o=a.dirname(t);Bn(o,(a,p)=>a?r(a):p?xs.symlink(e,t,i,r):void Gn(o,a=>{if(a)return r(a);xs.symlink(e,t,i,r)}))})}))}),createSymlinkSync:function(e,t,p){if(xs.existsSync(t))return;const r=function(e,t){let p;if(a.isAbsolute(e)){if(p=xs.existsSync(e),!p)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}{const r=a.dirname(t),i=a.join(r,e);if(p=xs.existsSync(i),p)return{toCwd:i,toDst:e};if(p=xs.existsSync(e),!p)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:a.relative(r,e)}}}(e,t);e=r.toDst,p=function(e,a){let t;if(a)return a;try{t=xs.lstatSync(e)}catch(e){return"file"}return t&&t.isDirectory()?"dir":"file"}(r.toCwd,p);const i=a.dirname(t);return xs.existsSync(i)||In(i),xs.symlinkSync(e,t,p)}},qn={createFile:Vn.createFile,createFileSync:Vn.createFileSync,ensureFile:Vn.createFile,ensureFileSync:Vn.createFileSync,createLink:xn.createLink,createLinkSync:xn.createLinkSync,ensureLink:xn.createLink,ensureLinkSync:xn.createLinkSync,createSymlink:Mn.createSymlink,createSymlinkSync:Mn.createSymlinkSync,ensureSymlink:Mn.createSymlink,ensureSymlinkSync:Mn.createSymlinkSync};try{Ln=xs}catch(e){Ln=p}function $n(e,a){var t,p="\n";return"object"==typeof a&&null!==a&&(a.spaces&&(t=a.spaces),a.EOL&&(p=a.EOL)),JSON.stringify(e,a?a.replacer:null,t).replace(/\n/g,p)+p}function Hn(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}var zn={readFile:function(e,a,t){null==t&&(t=a,a={}),"string"==typeof a&&(a={encoding:a});var p=!0;"throws"in(a=a||{})&&(p=a.throws),(a.fs||Ln).readFile(e,a,function(r,i){if(r)return t(r);var o;i=Hn(i);try{o=JSON.parse(i,a?a.reviver:null)}catch(a){return p?(a.message=e+": "+a.message,t(a)):t(null,null)}t(null,o)})},readFileSync:function(e,a){"string"==typeof(a=a||{})&&(a={encoding:a});var t=a.fs||Ln,p=!0;"throws"in a&&(p=a.throws);try{var r=t.readFileSync(e,a);return r=Hn(r),JSON.parse(r,a.reviver)}catch(a){if(p)throw a.message=e+": "+a.message,a;return null}},writeFile:function(e,a,t,p){null==p&&(p=t,t={});var r=(t=t||{}).fs||Ln,i="";try{i=$n(a,t)}catch(e){return void(p&&p(e,null))}r.writeFile(e,i,t,p)},writeFileSync:function(e,a,t){var p=(t=t||{}).fs||Ln,r=$n(a,t);return p.writeFileSync(e,r,t)}};const Wn=ks;var Jn={readJson:Wn(zn.readFile),readJsonSync:zn.readFileSync,writeJson:Wn(zn.writeFile),writeJsonSync:zn.writeFileSync};const Yn=sn.pathExists;Jn.outputJson=ks(function(e,t,p,r){"function"==typeof p&&(r=p,p={});const i=a.dirname(e);Yn(i,(a,o)=>a?r(a):o?Jn.writeJson(e,t,p,r):void zs.mkdirs(i,a=>{if(a)return r(a);Jn.writeJson(e,t,p,r)}))}),Jn.outputJsonSync=function(e,t,p){const r=a.dirname(e);xs.existsSync(r)||zs.mkdirsSync(r),Jn.writeJsonSync(e,t,p)},Jn.outputJSON=Jn.outputJson,Jn.outputJSONSync=Jn.outputJsonSync,Jn.writeJSON=Jn.writeJson,Jn.writeJSONSync=Jn.writeJsonSync,Jn.readJSON=Jn.readJson,Jn.readJSONSync=Jn.readJsonSync;var Kn=Jn;const Qn=dn.copySync,Xn=kn.removeSync,Zn=zs.mkdirpSync;function el(e,a,t){try{xs.renameSync(e,a)}catch(p){if("EXDEV"!==p.code)throw p;return function(e,a,t){return Qn(e,a,{overwrite:t,errorOnExist:!0}),Xn(e)}(e,a,t)}}var al={moveSync:function(e,t,p){const r=(p=p||{}).overwrite||p.clobber||!1,{srcStat:i}=en.checkPathsSync(e,t,"move");return en.checkParentPathsSync(e,i,t,"move"),Zn(a.dirname(t)),function(e,a,t){if(t)return Xn(a),el(e,a,t);if(xs.existsSync(a))throw new Error("dest already exists.");return el(e,a,t)}(e,t,r)}};const tl=wn.copy,pl=kn.remove,rl=zs.mkdirp,il=sn.pathExists;function ol(e,a,t,p){xs.rename(e,a,r=>r?"EXDEV"!==r.code?p(r):function(e,a,t,p){tl(e,a,{overwrite:t,errorOnExist:!0},a=>a?p(a):pl(e,p))}(e,a,t,p):p())}var dl={move:ks(function(e,t,p,r){"function"==typeof p&&(r=p,p={});const i=p.overwrite||p.clobber||!1;en.checkPaths(e,t,"move",(p,o)=>{if(p)return r(p);const{srcStat:d}=o;en.checkParentPaths(e,d,t,"move",p=>{if(p)return r(p);rl(a.dirname(t),a=>a?r(a):function(e,a,t,p){if(t)return pl(a,r=>r?p(r):ol(e,a,t,p));il(a,(r,i)=>r?p(r):i?p(new Error("dest already exists.")):ol(e,a,t,p))}(e,t,i,r))})})})};const sl=sn.pathExists;var nl={outputFile:ks(function(e,t,p,r){"function"==typeof p&&(r=p,p="utf8");const i=a.dirname(e);sl(i,(a,o)=>a?r(a):o?xs.writeFile(e,t,p,r):void zs.mkdirs(i,a=>{if(a)return r(a);xs.writeFile(e,t,p,r)}))}),outputFileSync:function(e,...t){const p=a.dirname(e);if(xs.existsSync(p))return xs.writeFileSync(e,...t);zs.mkdirsSync(p),xs.writeFileSync(e,...t)}},ll=_(function(e){e.exports=Object.assign({},Us,dn,wn,Rn,qn,Kn,zs,al,dl,nl,sn,kn),Object.getOwnPropertyDescriptor(p,"promises")&&Object.defineProperty(e.exports,"promises",{get:()=>p.promises})});const{publishSizes:ml,publishDiff:cl}=Ds,{noop:ul,toFileMap:hl,toMap:fl,dedupe:vl}={noop:function(e){return e},toMap:function(e,a){return e.reduce((e,t,p)=>(e[t]=a[p],e),{})},dedupe:function(e,a,t){return t.indexOf(e)===a},toFileMap:function(e){return e.reduce((e,a)=>(a.size&&(e[a.filename]=a.size),e),{})}},gl=Gr(Ji),wl=Jo.sync;wl.file=(e,a)=>new Promise((t,p)=>{const r=ll.createReadStream(e);r.on("error",p);const i=r.pipe(Jo.stream(a));i.on("error",p),i.on("brotli-size",t)});const yl=e=>Buffer.byteLength(e);yl.file=async e=>(await ll.stat(e)).size;const bl={brotli:wl,gzip:mo,none:yl};async function _l(e){try{return(await ll.readJSON(e)).sort((e,a)=>a.timestamp-e.timestamp)}catch(e){return[]}}async function El(e){try{return await p.promises.access(e,p.constants.F_OK),!0}catch(e){}return!1}function Tl(e){if(e)return console.log(`Stripping hash from build chunks using '${e}' pattern.`),function(a){return a.replace(new RegExp(e),(e,...a)=>{if((a=a.slice(0,-2).filter(e=>null!=e)).length){for(let t=0;t0?"+":"")+Mo(e);if(0===Math.abs(e));else if(0===a)t+=" (new file)";else if(a===-e)t+=" (removed)";else{const p=Math.round(e/a*100);t+=` (${p>0?"+":""}${p}%)`}return t}function Ol(e,a){if(0===a)return"🆕";const t=Math.round(e/a*100);return t>=50?"🆘":t>=20?"🚨":t>=10?"⚠ī¸":t>=5?"🔍":t<=-50?"🏆":t<=-20?"🎉":t<=-10?"👏":t<=-5?"✅":""}function Al(e){if(0==e.length)return"";for(;e.every(e=>!e[e.length-1]);)for(const a of e)a.pop();const[a]=e;let t=a.length;if(3===t&&e.every(e=>"0 B"===e[2])){t-=1;for(const a of e)a.pop()}return 0===t?"":[["Filename","Size","Change",""].slice(0,t),[":---",":---:",":---:",":---:"].slice(0,t),...e].map(e=>`| ${e.join(" | ")} |`).join("\n")}function Nl(e){return/^(1|true|yes)$/.test(e)}(async()=>{try{const e=x.getInput("repo-token"),t=at.getOctokit(e);await async function(e,t,p){const{number:r}=t.issue;try{x.debug("pr"+JSON.stringify(t.payload,null,2))}catch(e){}let i,o;if("push"==t.eventName)i=t.payload.before,o=t.payload.ref,console.log(`Pushed new commit on top of ${o} (${i})`);else{if("pull_request"!=t.eventName&&"pull_request_target"!=t.eventName)throw new Error(`Unsupported eventName in github.context: ${t.eventName}. Only "pull_request", "pull_request_target", and "push" triggered workflows are currently supported.`);{const e=t.payload.pull_request;i=e.base.sha,o=e.base.ref,console.log(`PR #${r} is targeted at ${o} (${o})`)}}x.getInput("cwd")&&process.chdir(x.getInput("cwd"));const d=new class{constructor(e){const t=e||{};t.pattern=t.pattern||"**/*.{mjs,js,jsx,css,html}",t.filename=t.filename||"size-plugin.json",t.writeFile=!1!==t.writeFile,t.stripHash=t.stripHash||ul,t.filepath=a.join(process.cwd(),t.filename),t.mode=t.mode||process.env.NODE_ENV,t.compression=t.compression||"gzip",this.compressionSize=bl[t.compression],this.options=t}filterFiles(e){const a=ui.filter(this.options.pattern),t=this.options.exclude?ui.filter(this.options.exclude):()=>!1;return e.filter(e=>a(e)&&!t(e))}async readFromDisk(e){const t=await gl(this.options.pattern,{cwd:e,ignore:this.options.exclude}),p=await Promise.all(this.filterFiles(t).map(t=>this.compressionSize.file(a.join(e,t)).catch(()=>null)));return fl(t.map(e=>this.options.stripHash(e)),p)}async getPreviousSizes(e){const a=await _l(this.options.filepath);if(a.length){const[{files:e}]=a;return hl(e)}return this.readFromDisk(e)}async getSizes(e){const a=this.filterFiles(Object.keys(e)),t=await Promise.all(a.map(a=>this.compressionSize(e[a].source)));return fl(a.map(e=>this.options.stripHash(e)),t)}async getDiff(e,a){const t=[...Object.keys(e),...Object.keys(a)].filter(vl),p=[];for(const r of t){const t=a[r]||0;p.push({filename:r,size:t,delta:t-(e[r]||0)})}return p}async printSizes(e){const a=Math.max(...e.map(e=>e.filename.length),this.options.columnWidth||0);let t="";const p=[];for(const r of e){const e=r.filename,i=r.size,o=r.delta,d=new Array(a-e.length+2).join(" ")+e+" ⏤ ",s=i>102400?"red":i>40960?"yellow":i>20480?"cyan":"green";let n=xo[s](Mo(i)),l="";o&&Math.abs(o)>1&&(l=(o>0?"+":"")+Mo(o),o>1024?(n=xo.bold(n),l=xo.red(l)):o<-10&&(l=xo.green(l)),n+=` (${l})`);let m=d+n+"\n";const c={name:e,size:i,sizeText:n,delta:o,deltaText:l,msg:d,color:s};p.push(c),this.options.decorateItem&&(m=this.options.decorateItem(m,c)||m),t+=m}if(this.options.decorateAfter){const a=this.options.decorateAfter({sizes:p,raw:e,output:t});a&&(t+="\n"+a.replace(/^\n/g,""))}return t}async uploadSizes(e){const a={timestamp:Date.now(),files:e};if(this.options.save&&await this.options.save(a),this.options.publish&&await cl(a,this.options.filename),"production"===this.options.mode&&a.files.some(e=>0!==e.delta)){const e=await _l(this.options.filepath);e.unshift(a),this.options.writeFile&&(await ll.ensureFile(this.options.filename),await ll.writeJSON(this.options.filename,e)),this.options.publish&&await ml(e,this.options.filename)}}async execute(e,a){const t=await(this.options.getPreviousSizes||this.getPreviousSizes).call(this,a),p=await(this.options.getSizes||this.getSizes).call(this,e),r=await(this.options.getDiff||this.getDiff).call(this,t,p),i=await(this.options.printSizes||this.printSizes).call(this,r);return await(this.options.uploadSizes||this.uploadSizes).call(this,r),i}}({compression:x.getInput("compression"),pattern:x.getInput("pattern")||"**/dist/**/*.{js,mjs,cjs}",exclude:x.getInput("exclude")||"{**/*.map,**/node_modules/**}",stripHash:Tl(x.getInput("strip-hash"))}),s=x.getInput("build-script")||"build",n=process.cwd();let l=await El(a.resolve(n,"yarn.lock")),m=await El(a.resolve(n,"pnpm-lock.yaml")),c=await El(a.resolve(n,"package-lock.json")),u="npm",h="npm install";l?h=u="yarn --frozen-lockfile":m?h="pnpm install --frozen-lockfile":c&&(h="npm ci"),x.startGroup("[current] Install Dependencies"),console.log("Installing using "+h),await it.exec(h),x.endGroup(),x.startGroup("[current] Build using "+u),console.log(`Building using ${u} run ${s}`),await it.exec(`${u} run ${s}`),x.endGroup(),await it.exec("git reset --hard");const f=await d.readFromDisk(n);x.startGroup("[base] Checkout target branch");try{if(!o)throw Error("missing context.payload.pull_request.base.ref");await it.exec("git fetch -n origin "+o),console.log("successfully fetched base.ref")}catch(e){console.log("fetching base.ref failed",e.message);try{await it.exec("git fetch -n origin "+i),console.log("successfully fetched base.sha")}catch(e){console.log("fetching base.sha failed",e.message);try{await it.exec("git fetch -n")}catch(e){console.log("fetch failed",e.message)}}}console.log("checking out and building base commit");try{if(!o)throw Error("missing context.payload.base.ref");await it.exec("git reset --hard "+o)}catch(e){await it.exec("git reset --hard "+i)}x.endGroup();const v=x.getInput("clean-script");v&&(x.startGroup(`[base] Cleanup via ${u} run ${v}`),await it.exec(`${u} run ${v}`),x.endGroup()),x.startGroup("[base] Install Dependencies"),l=await El(a.resolve(n,"yarn.lock")),m=await El(a.resolve(n,"pnpm-lock.yaml")),c=await El(a.resolve(n,"package-lock.json")),l?h=u="yarn --frozen-lockfile":m?h="pnpm install --frozen-lockfile":c&&(h="npm ci"),console.log("Installing using "+h),await it.exec(h),x.endGroup(),x.startGroup("[base] Build using "+u),await it.exec(`${u} run ${s}`),x.endGroup(),await it.exec("git reset --hard");const g=await d.readFromDisk(n),w=await d.getDiff(g,f);x.startGroup("Size Differences:");const y=await d.printSizes(w);console.log(y),x.endGroup();const b=function(e,{showTotal:a,collapseUnchanged:t,omitUnchanged:p,minimumChangeThreshold:r}){let i=[],o=[],d=0,s=0;for(const a of e){const{filename:e,size:n,delta:l}=a;d+=n,s+=l;const m=n-l,c=Math.abs(l)ℹī¸ View Unchanged\n\n${Al(o)}\n\n\n\n`),a){const e=d-s;let a=Sl(s,e),t=Ol(s,e);n=`**Total Size:** ${Mo(d)}\n\n${n}`,n=`**Size Change:** ${a} ${t}\n\n${n}`}return n}(w,{collapseUnchanged:Nl(x.getInput("collapse-unchanged")),omitUnchanged:Nl(x.getInput("omit-unchanged")),showTotal:Nl(x.getInput("show-total")),minimumChangeThreshold:parseInt(x.getInput("minimum-change-threshold"),10)});let _=!1;const E={...t.repo,issue_number:r},T={...E,body:b+'\n\ncompressed-size-action'};if("pull_request"!==t.eventName&&"pull_request_target"!==t.eventName)console.log("No PR associated with this action run. Not posting a check or comment."),_=!1;else if(Nl(x.getInput("use-check")))if(p){const a=await async function(e,a){const t=await e.checks.create({...a.repo,name:"Compressed Size",head_sha:a.payload.pull_request.head.sha,status:"in_progress"});return async p=>{await e.checks.update({...a.repo,check_run_id:t.data.id,completed_at:(new Date).toISOString(),status:"completed",...p})}}(e,t);await a({conclusion:"success",output:{title:"Compressed Size Action",summary:b}})}else _=!0;else{let a;x.startGroup("Updating stats PR comment");try{const t=(await e.issues.listComments(E)).data;for(let e=t.length;e--;){const p=t[e];if("Bot"===p.user.type&&/[\s\n]*(compressed|gzip)-size-action/.test(p.body)){a=p.id;break}}}catch(e){console.log("Error checking for previous comments: "+e.message)}if(a){console.log("Updating previous comment #"+a);try{await e.issues.updateComment({...t.repo,comment_id:a,body:T.body})}catch(e){console.log("Error editing previous comment: "+e.message),a=null}}if(!a){console.log("Creating new comment");try{await e.issues.createComment(T)}catch(a){console.log("Error creating comment: "+a.message),console.log("Submitting a PR review comment instead...");try{const a=t.issue;await e.pulls.createReview({owner:a.owner,repo:a.repo,pull_number:a.number,event:"COMMENT",body:T.body})}catch(e){console.log("Error creating PR review."),_=!0}}}x.endGroup()}_&&console.log(`\n\t\t\tError: compressed-size-action was unable to comment on your PR.\n\t\t\tThis can happen for PR's originating from a fork without write permissions.\n\t\t\tYou can copy the size table directly into a comment using the markdown below:\n\t\t\t\n\n${T.body}\n\n\n\t\t`.replace(/^(\t| )+/gm,"")),console.log("All done!")}(t,at.context,e)}catch(e){x.setFailed(e.message)}})(); +function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var t=e(require("path")),r=e(require("os")),o=e(require("fs")),n=e(require("http")),s=e(require("https"));require("net");var i=e(require("tls")),a=e(require("events")),c=e(require("assert")),u=e(require("util")),l=e(require("stream")),p=e(require("url")),f=e(require("zlib")),d=e(require("child_process")),h=e(require("tty")),m=e(require("constants")),g="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function y(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function b(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},r.exports),r.exports}var w,v=b(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e)}}),E=b(function(e,t){var o=g&&g.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const n=o(r);function s(e,t,r){const o=new i(e,t,r);process.stdout.write(o.toString()+n.EOL)}t.issueCommand=s,t.issue=function(e,t=""){s(e,{},t)};class i{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r}toString(){let e="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=!0;for(const r in this.properties)if(this.properties.hasOwnProperty(r)){const o=this.properties[r];o&&(t?t=!1:e+=",",e+=`${r}=${a(o)}`)}}return e+="::"+function(e){return v.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}(this.message),e}}function a(e){return v.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}}),T=b(function(e,t){var n=g&&g.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const s=n(o),i=n(r);t.issueCommand=function(e,t){const r=process.env["GITHUB_"+e];if(!r)throw new Error("Unable to find environment variable for file command "+e);if(!s.existsSync(r))throw new Error("Missing file at path: "+r);s.appendFileSync(r,`${v.toCommandValue(t)}${i.EOL}`,{encoding:"utf8"})}}),_=b(function(e,o){var n=g&&g.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(n,s){function i(e){try{c(o.next(e))}catch(e){s(e)}}function a(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(i,a)}c((o=o.apply(e,t||[])).next())})},s=g&&g.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(o,"__esModule",{value:!0});const i=s(r),a=s(t);var c;function u(e){E.issue("error",e instanceof Error?e.toString():e)}function l(e){E.issue("group",e)}function p(){E.issue("endgroup")}!function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"}(c=o.ExitCode||(o.ExitCode={})),o.exportVariable=function(e,t){const r=v.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV){const t="_GitHubActionsFileCommandDelimeter_";T.issueCommand("ENV",`${e}<<${t}${i.EOL}${r}${i.EOL}${t}`)}else E.issueCommand("set-env",{name:e},r)},o.setSecret=function(e){E.issueCommand("add-mask",{},e)},o.addPath=function(e){process.env.GITHUB_PATH?T.issueCommand("PATH",e):E.issueCommand("add-path",{},e),process.env.PATH=`${e}${a.delimiter}${process.env.PATH}`},o.getInput=function(e,t){const r=process.env["INPUT_"+e.replace(/ /g,"_").toUpperCase()]||"";if(t&&t.required&&!r)throw new Error("Input required and not supplied: "+e);return r.trim()},o.setOutput=function(e,t){E.issueCommand("set-output",{name:e},t)},o.setCommandEcho=function(e){E.issue("echo",e?"on":"off")},o.setFailed=function(e){process.exitCode=c.Failure,u(e)},o.isDebug=function(){return"1"===process.env.RUNNER_DEBUG},o.debug=function(e){E.issueCommand("debug",{},e)},o.error=u,o.warning=function(e){E.issue("warning",e instanceof Error?e.toString():e)},o.info=function(e){process.stdout.write(e+i.EOL)},o.startGroup=l,o.endGroup=p,o.group=function(e,t){return n(this,void 0,void 0,function*(){let r;l(e);try{r=yield t()}finally{p()}return r})},o.saveState=function(e,t){E.issueCommand("save-state",{name:e},t)},o.getState=function(e){return process.env["STATE_"+e]||""}}),S=b(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Context=void 0,t.Context=class{constructor(){if(this.payload={},process.env.GITHUB_EVENT_PATH)if(o.existsSync(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(o.readFileSync(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{const e=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${e} does not exist${r.EOL}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10)}get issue(){const e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[e,t]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:t}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}}}),O=b(function(e,t){function r(e){if(!e.hostname)return!1;let t,r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;e.port?t=Number(e.port):"http:"===e.protocol?t=80:"https:"===e.protocol&&(t=443);let o=[e.hostname.toUpperCase()];"number"==typeof t&&o.push(`${o[0]}:${t}`);for(let e of r.split(",").map(e=>e.trim().toUpperCase()).filter(e=>e))if(o.some(t=>t===e))return!0;return!1}Object.defineProperty(t,"__esModule",{value:!0}),t.getProxyUrl=function(e){let t,o,n="https:"===e.protocol;return r(e)||(o=n?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY,o&&(t=new URL(o))),t},t.checkBypass=r});function k(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||n.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",function(e,r,o,n){for(var s=A(r,o,n),i=0,a=t.requests.length;i=this.maxSockets?n.requests.push(s):n.createSocket(s,function(t){function r(){n.emit("free",t,s)}function o(e){n.removeSocket(t),t.removeListener("free",r),t.removeListener("close",o),t.removeListener("agentRemove",o)}t.on("free",r),t.on("close",o),t.on("agentRemove",o),e.onSocket(t)})},k.prototype.createSocket=function(e,t){var r=this,o={};r.sockets.push(o);var n=C({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(n.localAddress=e.localAddress),n.proxyAuth&&(n.headers=n.headers||{},n.headers["Proxy-Authorization"]="Basic "+new Buffer(n.proxyAuth).toString("base64")),w("making CONNECT request");var s=r.request(n);function i(n,i,a){var c;return s.removeAllListeners(),i.removeAllListeners(),200!==n.statusCode?(w("tunneling socket could not be established, statusCode=%d",n.statusCode),i.destroy(),(c=new Error("tunneling socket could not be established, statusCode="+n.statusCode)).code="ECONNRESET",e.request.emit("error",c),void r.removeSocket(o)):a.length>0?(w("got illegal response body from proxy"),i.destroy(),(c=new Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",c),void r.removeSocket(o)):(w("tunneling connection has established"),r.sockets[r.sockets.indexOf(o)]=i,t(i))}s.useChunkedEncodingByDefault=!1,s.once("response",function(e){e.upgrade=!0}),s.once("upgrade",function(e,t,r){process.nextTick(function(){i(e,t,r)})}),s.once("connect",i),s.once("error",function(t){s.removeAllListeners(),w("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var n=new Error("tunneling socket could not be established, cause="+t.message);n.code="ECONNRESET",e.request.emit("error",n),r.removeSocket(o)}),s.end()},k.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var r=this.requests.shift();r&&this.createSocket(r,function(e){r.request.onSocket(e)})}};var R={httpOverHttp:function(e){var t=new k(e);return t.request=n.request,t},httpsOverHttp:function(e){var t=new k(e);return t.request=n.request,t.createSocket=P,t.defaultPort=443,t},httpOverHttps:function(e){var t=new k(e);return t.request=s.request,t},httpsOverHttps:function(e){var t=new k(e);return t.request=s.request,t.createSocket=P,t.defaultPort=443,t},debug:w=process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments);"string"==typeof e[0]?e[0]="TUNNEL: "+e[0]:e.unshift("TUNNEL:"),console.error.apply(console,e)}:function(){}},j=b(function(e,t){let r;var o,i,a;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.OK=200]="OK",e[e.MultipleChoices=300]="MultipleChoices",e[e.MovedPermanently=301]="MovedPermanently",e[e.ResourceMoved=302]="ResourceMoved",e[e.SeeOther=303]="SeeOther",e[e.NotModified=304]="NotModified",e[e.UseProxy=305]="UseProxy",e[e.SwitchProxy=306]="SwitchProxy",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.PaymentRequired=402]="PaymentRequired",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.MethodNotAllowed=405]="MethodNotAllowed",e[e.NotAcceptable=406]="NotAcceptable",e[e.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",e[e.RequestTimeout=408]="RequestTimeout",e[e.Conflict=409]="Conflict",e[e.Gone=410]="Gone",e[e.TooManyRequests=429]="TooManyRequests",e[e.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"}(o=t.HttpCodes||(t.HttpCodes={})),function(e){e.Accept="accept",e.ContentType="content-type"}(i=t.Headers||(t.Headers={})),function(e){e.ApplicationJson="application/json"}(a=t.MediaTypes||(t.MediaTypes={})),t.getProxyUrl=function(e){let t=O.getProxyUrl(new URL(e));return t?t.href:""};const c=[o.MovedPermanently,o.ResourceMoved,o.SeeOther,o.TemporaryRedirect,o.PermanentRedirect],u=[o.BadGateway,o.ServiceUnavailable,o.GatewayTimeout],l=["OPTIONS","GET","DELETE","HEAD"];class p extends Error{constructor(e,t){super(e),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,p.prototype)}}t.HttpClientError=p;class f{constructor(e){this.message=e}readBody(){return new Promise(async(e,t)=>{let r=Buffer.alloc(0);this.message.on("data",e=>{r=Buffer.concat([r,e])}),this.message.on("end",()=>{e(r.toString())})})}}t.HttpClientResponse=f,t.isHttps=function(e){return"https:"===new URL(e).protocol};class d{constructor(e,t,r){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=e,this.handlers=t||[],this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,r){return this.request("POST",e,t,r||{})}patch(e,t,r){return this.request("PATCH",e,t,r||{})}put(e,t,r){return this.request("PUT",e,t,r||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,r,o){return this.request(e,t,r,o)}async getJson(e,t={}){t[i.Accept]=this._getExistingOrDefaultHeader(t,i.Accept,a.ApplicationJson);let r=await this.get(e,t);return this._processResponse(r,this.requestOptions)}async postJson(e,t,r={}){let o=JSON.stringify(t,null,2);r[i.Accept]=this._getExistingOrDefaultHeader(r,i.Accept,a.ApplicationJson),r[i.ContentType]=this._getExistingOrDefaultHeader(r,i.ContentType,a.ApplicationJson);let n=await this.post(e,o,r);return this._processResponse(n,this.requestOptions)}async putJson(e,t,r={}){let o=JSON.stringify(t,null,2);r[i.Accept]=this._getExistingOrDefaultHeader(r,i.Accept,a.ApplicationJson),r[i.ContentType]=this._getExistingOrDefaultHeader(r,i.ContentType,a.ApplicationJson);let n=await this.put(e,o,r);return this._processResponse(n,this.requestOptions)}async patchJson(e,t,r={}){let o=JSON.stringify(t,null,2);r[i.Accept]=this._getExistingOrDefaultHeader(r,i.Accept,a.ApplicationJson),r[i.ContentType]=this._getExistingOrDefaultHeader(r,i.ContentType,a.ApplicationJson);let n=await this.patch(e,o,r);return this._processResponse(n,this.requestOptions)}async request(e,t,r,n){if(this._disposed)throw new Error("Client has already been disposed.");let s,i=new URL(t),a=this._prepareRequest(e,i,n),p=this._allowRetries&&-1!=l.indexOf(e)?this._maxRetries+1:1,f=0;for(;f0;){const o=s.message.headers.location;if(!o)break;let c=new URL(o);if("https:"==i.protocol&&i.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");if(await s.readBody(),c.hostname!==i.hostname)for(let e in n)"authorization"===e.toLowerCase()&&delete n[e];a=this._prepareRequest(e,c,n),s=await this.requestRaw(a,r),t--}if(-1==u.indexOf(s.message.statusCode))return s;f+=1,f{this.requestRawWithCallback(e,t,function(e,t){e&&o(e),r(t)})})}requestRawWithCallback(e,t,r){let o;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let n=!1,s=(e,t)=>{n||(n=!0,r(e,t))},i=e.httpModule.request(e.options,e=>{let t=new f(e);s(null,t)});i.on("socket",e=>{o=e}),i.setTimeout(this._socketTimeout||18e4,()=>{o&&o.end(),s(new Error("Request timeout: "+e.options.path),null)}),i.on("error",function(e){s(e,null)}),t&&"string"==typeof t&&i.write(t,"utf8"),t&&"string"!=typeof t?(t.on("close",function(){i.end()}),t.pipe(i)):i.end()}getAgent(e){let t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,r){const o={};o.parsedUrl=t;const i="https:"===o.parsedUrl.protocol;o.httpModule=i?s:n;const a=i?443:80;return o.options={},o.options.host=o.parsedUrl.hostname,o.options.port=o.parsedUrl.port?parseInt(o.parsedUrl.port):a,o.options.path=(o.parsedUrl.pathname||"")+(o.parsedUrl.search||""),o.options.method=e,o.options.headers=this._mergeHeaders(r),null!=this.userAgent&&(o.options.headers["user-agent"]=this.userAgent),o.options.agent=this._getAgent(o.parsedUrl),this.handlers&&this.handlers.forEach(e=>{e.prepareRequest(o.options)}),o}_mergeHeaders(e){const t=e=>Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getExistingOrDefaultHeader(e,t,r){let o;var n;return this.requestOptions&&this.requestOptions.headers&&(o=(n=this.requestOptions.headers,Object.keys(n).reduce((e,t)=>(e[t.toLowerCase()]=n[t],e),{}))[t]),e[t]||o||r}_getAgent(e){let t,o=O.getProxyUrl(e),i=o&&o.hostname;if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let c=100;if(this.requestOptions&&(c=this.requestOptions.maxSockets||n.globalAgent.maxSockets),i){r||(r=R);const e={maxSockets:c,keepAlive:this._keepAlive,proxy:{proxyAuth:`${o.username}:${o.password}`,host:o.hostname,port:o.port}};let n;const s="https:"===o.protocol;n=a?s?r.httpsOverHttps:r.httpsOverHttp:s?r.httpOverHttps:r.httpOverHttp,t=n(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:c};t=a?new s.Agent(e):new n.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:n.globalAgent),a&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_performExponentialBackoff(e){e=Math.min(10,e);const t=5*Math.pow(2,e);return new Promise(e=>setTimeout(()=>e(),t))}static dateTimeDeserializer(e,t){if("string"==typeof t){let e=new Date(t);if(!isNaN(e.valueOf()))return e}return t}async _processResponse(e,t){return new Promise(async(r,n)=>{const s=e.message.statusCode,i={statusCode:s,result:null,headers:{}};let a,c;s==o.NotFound&&r(i);try{c=await e.readBody(),c&&c.length>0&&(a=t&&t.deserializeDates?JSON.parse(c,d.dateTimeDeserializer):JSON.parse(c),i.result=a),i.headers=e.message.headers}catch(e){}if(s>299){let e;e=a&&a.message?a.message:c&&c.length>0?c:"Failed request: ("+s+")";let t=new p(e,s);t.result=i.result,n(t)}else r(i)})}}t.HttpClient=d}),x=b(function(e,t){var r=g&&g.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),o=g&&g.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=g&&g.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getApiBaseUrl=t.getProxyAgent=t.getAuthString=void 0;const s=n(j);t.getAuthString=function(e,t){if(!e&&!t.auth)throw new Error("Parameter token or opts.auth is required");if(e&&t.auth)throw new Error("Parameters token and opts.auth may not both be specified");return"string"==typeof t.auth?t.auth:"token "+e},t.getProxyAgent=function(e){return(new s.HttpClient).getAgent(e)},t.getApiBaseUrl=function(){return process.env.GITHUB_API_URL||"https://api.github.com"}});function G(){return"object"==typeof process&&"version"in process?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:""}var F=function e(t,r,o,n){if("function"!=typeof o)throw new Error("method for before hook must be a function");return n||(n={}),Array.isArray(r)?r.reverse().reduce(function(r,o){return e.bind(null,t,o,r,n)},o)():Promise.resolve().then(function(){return t.registry[r]?t.registry[r].reduce(function(e,t){return t.hook.bind(null,e,n)},o)():o(n)})},I=function(e,t,r,o){var n=o;e.registry[r]||(e.registry[r]=[]),"before"===t&&(o=function(e,t){return Promise.resolve().then(n.bind(null,t)).then(e.bind(null,t))}),"after"===t&&(o=function(e,t){var r;return Promise.resolve().then(e.bind(null,t)).then(function(e){return n(r=e,t)}).then(function(){return r})}),"error"===t&&(o=function(e,t){return Promise.resolve().then(e.bind(null,t)).catch(function(e){return n(e,t)})}),e.registry[r].push({hook:o,orig:n})},U=function(e,t,r){if(e.registry[t]){var o=e.registry[t].map(function(e){return e.orig}).indexOf(r);-1!==o&&e.registry[t].splice(o,1)}},D=Function.bind,N=D.bind(D);function L(e,t,r){var o=N(U,null).apply(null,r?[t,r]:[t]);e.api={remove:o},e.remove=o,["before","error","after","wrap"].forEach(function(o){var n=r?[t,o,r]:[t,o];e[o]=e.api[o]=N(I,null).apply(null,n)})}function M(){var e={registry:{}},t=F.bind(null,e);return L(t,e),t}var B=!1;function q(){return B||(console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4'),B=!0),M()}q.Singular=function(){var e={registry:{}},t=F.bind(null,e,"h");return L(t,e,"h"),t}.bind(),q.Collection=M.bind();var $=q,H=q.Singular,z=q.Collection;function W(e){return"[object Object]"===Object.prototype.toString.call(e)}function V(e){var t,r;return!1!==W(e)&&(void 0===(t=e.constructor)||!1!==W(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}function J(e){for(const t in e)void 0===e[t]&&delete e[t];return e}function Y(e,t,r){if("string"==typeof t){let[e,o]=t.split(" ");r=Object.assign(o?{method:e,url:o}:{url:e},r)}else r=Object.assign({},t);var o;r.headers=(o=r.headers)?Object.keys(o).reduce((e,t)=>(e[t.toLowerCase()]=o[t],e),{}):{},J(r),J(r.headers);const n=function e(t,r){const o=Object.assign({},t);return Object.keys(r).forEach(n=>{V(r[n])?n in t?o[n]=e(t[n],r[n]):Object.assign(o,{[n]:r[n]}):Object.assign(o,{[n]:r[n]})}),o}(e||{},r);return e&&e.mediaType.previews.length&&(n.mediaType.previews=e.mediaType.previews.filter(e=>!n.mediaType.previews.includes(e)).concat(n.mediaType.previews)),n.mediaType.previews=n.mediaType.previews.map(e=>e.replace(/-preview/,"")),n}$.Hook=q,$.Singular=H,$.Collection=z;const K=/\{[^}]+\}/g;function Q(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function Z(e,t){return Object.keys(e).filter(e=>!t.includes(e)).reduce((t,r)=>(t[r]=e[r],t),{})}function X(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e}).join("")}function ee(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function te(e,t,r){return t="+"===e||"#"===e?X(t):ee(t),r?ee(r)+"="+t:t}function re(e){return null!=e}function oe(e){return";"===e||"&"===e||"?"===e}function ne(e,t){var r=["+","#",".","/",";","?","&"];return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,o,n){if(o){let e="";const n=[];if(-1!==r.indexOf(o.charAt(0))&&(e=o.charAt(0),o=o.substr(1)),o.split(/,/g).forEach(function(r){var o=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);n.push(function(e,t,r,o){var n=e[r],s=[];if(re(n)&&""!==n)if("string"==typeof n||"number"==typeof n||"boolean"==typeof n)n=n.toString(),o&&"*"!==o&&(n=n.substring(0,parseInt(o,10))),s.push(te(t,n,oe(t)?r:""));else if("*"===o)Array.isArray(n)?n.filter(re).forEach(function(e){s.push(te(t,e,oe(t)?r:""))}):Object.keys(n).forEach(function(e){re(n[e])&&s.push(te(t,n[e],e))});else{const e=[];Array.isArray(n)?n.filter(re).forEach(function(r){e.push(te(t,r))}):Object.keys(n).forEach(function(r){re(n[r])&&(e.push(ee(r)),e.push(te(t,n[r].toString())))}),oe(t)?s.push(ee(r)+"="+e.join(",")):0!==e.length&&s.push(e.join(","))}else";"===t?re(n)&&s.push(ee(r)):""!==n||"&"!==t&&"?"!==t?""===n&&s.push(""):s.push(ee(r)+"=");return s}(t,e,o[1],o[2]||o[3]))}),e&&"+"!==e){var s=",";return"?"===e?s="&":"#"!==e&&(s=e),(0!==n.length?e:"")+n.join(s)}return n.join(",")}return X(n)})}function se(e){let t,r=e.method.toUpperCase(),o=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),n=Object.assign({},e.headers),s=Z(e,["method","baseUrl","url","headers","request","mediaType"]);const i=function(e){const t=e.match(K);return t?t.map(Q).reduce((e,t)=>e.concat(t),[]):[]}(o);var a;o=(a=o,{expand:ne.bind(null,a)}).expand(s),/^http/.test(o)||(o=e.baseUrl+o);const c=Z(s,Object.keys(e).filter(e=>i.includes(e)).concat("baseUrl"));if(!/application\/octet-stream/i.test(n.accept)&&(e.mediaType.format&&(n.accept=n.accept.split(/,/).map(t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,"application/vnd$1$2."+e.mediaType.format)).join(",")),e.mediaType.previews.length)){const t=n.accept.match(/[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map(t=>`application/vnd.github.${t}-preview${e.mediaType.format?"."+e.mediaType.format:"+json"}`).join(",")}return["GET","HEAD"].includes(r)?o=function(e,t){const r=/\?/.test(e)?"&":"?",o=Object.keys(t);return 0===o.length?e:e+r+o.map(e=>"q"===e?"q="+t.q.split("+").map(encodeURIComponent).join("+"):`${e}=${encodeURIComponent(t[e])}`).join("&")}(o,c):"data"in c?t=c.data:Object.keys(c).length?t=c:n["content-length"]=0,n["content-type"]||void 0===t||(n["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(r)&&void 0===t&&(t=""),Object.assign({method:r,url:o,headers:n},void 0!==t?{body:t}:null,e.request?{request:e.request}:null)}function ie(e,t,r){return se(Y(e,t,r))}const ae=function e(t,r){const o=Y(t,r),n=ie.bind(null,o);return Object.assign(n,{DEFAULTS:o,defaults:e.bind(null,o),merge:Y.bind(null,o),parse:se})}(null,{method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":"octokit-endpoint.js/6.0.10 "+G()},mediaType:{format:"",previews:[]}}),ce=l.Readable,ue=Symbol("buffer"),le=Symbol("type");class pe{constructor(){this[le]="";const e=arguments[0],t=arguments[1],r=[];if(e){const t=e,o=Number(t.length);for(let e=0;e1&&void 0!==arguments[1]?arguments[1]:{},o=r.size;let n=void 0===o?0:o;var s=r.timeout;let i=void 0===s?0:s;null==e?e=null:be(e)?e=Buffer.from(e.toString()):we(e)||Buffer.isBuffer(e)||("[object ArrayBuffer]"===Object.prototype.toString.call(e)?e=Buffer.from(e):ArrayBuffer.isView(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):e instanceof l||(e=Buffer.from(String(e)))),this[he]={body:e,disturbed:!1,error:null},this.size=n,this.timeout=i,e instanceof l&&e.on("error",function(e){const r="AbortError"===e.name?e:new fe(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e);t[he].error=r})}function ye(){var e=this;if(this[he].disturbed)return ge.Promise.reject(new TypeError("body used already for: "+this.url));if(this[he].disturbed=!0,this[he].error)return ge.Promise.reject(this[he].error);let t=this.body;if(null===t)return ge.Promise.resolve(Buffer.alloc(0));if(we(t)&&(t=t.stream()),Buffer.isBuffer(t))return ge.Promise.resolve(t);if(!(t instanceof l))return ge.Promise.resolve(Buffer.alloc(0));let r=[],o=0,n=!1;return new ge.Promise(function(s,i){let a;e.timeout&&(a=setTimeout(function(){n=!0,i(new fe(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))},e.timeout)),t.on("error",function(t){"AbortError"===t.name?(n=!0,i(t)):i(new fe(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t))}),t.on("data",function(t){if(!n&&null!==t){if(e.size&&o+t.length>e.size)return n=!0,void i(new fe(`content size at ${e.url} over limit: ${e.size}`,"max-size"));o+=t.length,r.push(t)}}),t.on("end",function(){if(!n){clearTimeout(a);try{s(Buffer.concat(r,o))}catch(t){i(new fe(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}}})})}function be(e){return"object"==typeof e&&"function"==typeof e.append&&"function"==typeof e.delete&&"function"==typeof e.get&&"function"==typeof e.getAll&&"function"==typeof e.has&&"function"==typeof e.set&&("URLSearchParams"===e.constructor.name||"[object URLSearchParams]"===Object.prototype.toString.call(e)||"function"==typeof e.sort)}function we(e){return"object"==typeof e&&"function"==typeof e.arrayBuffer&&"string"==typeof e.type&&"function"==typeof e.stream&&"function"==typeof e.constructor&&"string"==typeof e.constructor.name&&/^(Blob|File)$/.test(e.constructor.name)&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function ve(e){let t,r,o=e.body;if(e.bodyUsed)throw new Error("cannot clone body after it is used");return o instanceof l&&"function"!=typeof o.getBoundary&&(t=new me,r=new me,o.pipe(t),o.pipe(r),e[he].body=t,o=r),o}function Ee(e){return null===e?null:"string"==typeof e?"text/plain;charset=UTF-8":be(e)?"application/x-www-form-urlencoded;charset=UTF-8":we(e)?e.type||null:Buffer.isBuffer(e)||"[object ArrayBuffer]"===Object.prototype.toString.call(e)||ArrayBuffer.isView(e)?null:"function"==typeof e.getBoundary?"multipart/form-data;boundary="+e.getBoundary():e instanceof l?null:"text/plain;charset=UTF-8"}function Te(e){const t=e.body;return null===t?0:we(t)?t.size:Buffer.isBuffer(t)?t.length:t&&"function"==typeof t.getLengthSync&&(t._lengthRetrievers&&0==t._lengthRetrievers.length||t.hasKnownLength&&t.hasKnownLength())?t.getLengthSync():null}ge.prototype={get body(){return this[he].body},get bodyUsed(){return this[he].disturbed},arrayBuffer(){return ye.call(this).then(function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)})},blob(){let e=this.headers&&this.headers.get("content-type")||"";return ye.call(this).then(function(t){return Object.assign(new pe([],{type:e.toLowerCase()}),{[ue]:t})})},json(){var e=this;return ye.call(this).then(function(t){try{return JSON.parse(t.toString())}catch(t){return ge.Promise.reject(new fe(`invalid json response body at ${e.url} reason: ${t.message}`,"invalid-json"))}})},text(){return ye.call(this).then(function(e){return e.toString()})},buffer(){return ye.call(this)},textConverted(){var e=this;return ye.call(this).then(function(t){return function(e,t){if("function"!=typeof de)throw new Error("The package `encoding` must be installed to use the textConverted() function");const r=t.get("content-type");let o,n,s="utf-8";return r&&(o=/charset=([^;]*)/i.exec(r)),n=e.slice(0,1024).toString(),!o&&n&&(o=/0&&void 0!==arguments[0]?arguments[0]:void 0;if(this[Ae]=Object.create(null),e instanceof Ce){const t=e.raw(),r=Object.keys(t);for(const e of r)for(const r of t[e])this.append(e,r)}else if(null==e);else{if("object"!=typeof e)throw new TypeError("Provided initializer must be an object");{const t=e[Symbol.iterator];if(null!=t){if("function"!=typeof t)throw new TypeError("Header pairs must be iterable");const r=[];for(const t of e){if("object"!=typeof t||"function"!=typeof t[Symbol.iterator])throw new TypeError("Each header pair must be iterable");r.push(Array.from(t))}for(const e of r){if(2!==e.length)throw new TypeError("Each header pair must be a name/value tuple");this.append(e[0],e[1])}}else for(const t of Object.keys(e))this.append(t,e[t])}}}get(e){Oe(e=""+e);const t=Pe(this[Ae],e);return void 0===t?null:this[Ae][t].join(", ")}forEach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=Re(this),o=0;for(;o1&&void 0!==arguments[1]?arguments[1]:"key+value";const r=Object.keys(e[Ae]).sort();return r.map("key"===t?function(e){return e.toLowerCase()}:"value"===t?function(t){return e[Ae][t].join(", ")}:function(t){return[t.toLowerCase(),e[Ae][t].join(", ")]})}Ce.prototype.entries=Ce.prototype[Symbol.iterator],Object.defineProperty(Ce.prototype,Symbol.toStringTag,{value:"Headers",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(Ce.prototype,{get:{enumerable:!0},forEach:{enumerable:!0},set:{enumerable:!0},append:{enumerable:!0},has:{enumerable:!0},delete:{enumerable:!0},keys:{enumerable:!0},values:{enumerable:!0},entries:{enumerable:!0}});const je=Symbol("internal");function xe(e,t){const r=Object.create(Ge);return r[je]={target:e,kind:t,index:0},r}const Ge=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==Ge)throw new TypeError("Value of `this` is not a HeadersIterator");var e=this[je];const t=e.index,r=Re(e.target,e.kind);return t>=r.length?{value:void 0,done:!0}:(this[je].index=t+1,{value:r[t],done:!1})}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));function Fe(e){const t=Object.assign({__proto__:null},e[Ae]),r=Pe(e[Ae],"Host");return void 0!==r&&(t[r]=t[r][0]),t}Object.defineProperty(Ge,Symbol.toStringTag,{value:"HeadersIterator",writable:!1,enumerable:!1,configurable:!0});const Ie=Symbol("Response internals"),Ue=n.STATUS_CODES;class De{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ge.call(this,e,t);const r=t.status||200,o=new Ce(t.headers);if(null!=e&&!o.has("Content-Type")){const t=Ee(e);t&&o.append("Content-Type",t)}this[Ie]={url:t.url,status:r,statusText:t.statusText||Ue[r],headers:o,counter:t.counter}}get url(){return this[Ie].url||""}get status(){return this[Ie].status}get ok(){return this[Ie].status>=200&&this[Ie].status<300}get redirected(){return this[Ie].counter>0}get statusText(){return this[Ie].statusText}get headers(){return this[Ie].headers}clone(){return new De(ve(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}ge.mixIn(De.prototype),Object.defineProperties(De.prototype,{url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}}),Object.defineProperty(De.prototype,Symbol.toStringTag,{value:"Response",writable:!1,enumerable:!1,configurable:!0});const Ne=Symbol("Request internals"),Le=p.parse,Me=p.format,Be="destroy"in l.Readable.prototype;function qe(e){return"object"==typeof e&&"object"==typeof e[Ne]}class $e{constructor(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};qe(e)?t=Le(e.url):(t=Le(e&&e.href?e.href:""+e),e={});let o=r.method||e.method||"GET";if(o=o.toUpperCase(),(null!=r.body||qe(e)&&null!==e.body)&&("GET"===o||"HEAD"===o))throw new TypeError("Request with GET/HEAD method cannot have body");let n=null!=r.body?r.body:qe(e)&&null!==e.body?ve(e):null;ge.call(this,n,{timeout:r.timeout||e.timeout||0,size:r.size||e.size||0});const s=new Ce(r.headers||e.headers||{});if(null!=n&&!s.has("Content-Type")){const e=Ee(n);e&&s.append("Content-Type",e)}let i=qe(e)?e.signal:null;if("signal"in r&&(i=r.signal),null!=i&&!function(e){const t=e&&"object"==typeof e&&Object.getPrototypeOf(e);return!(!t||"AbortSignal"!==t.constructor.name)}(i))throw new TypeError("Expected signal to be an instanceof AbortSignal");this[Ne]={method:o,redirect:r.redirect||e.redirect||"follow",headers:s,parsedURL:t,signal:i},this.follow=void 0!==r.follow?r.follow:void 0!==e.follow?e.follow:20,this.compress=void 0!==r.compress?r.compress:void 0===e.compress||e.compress,this.counter=r.counter||e.counter||0,this.agent=r.agent||e.agent}get method(){return this[Ne].method}get url(){return Me(this[Ne].parsedURL)}get headers(){return this[Ne].headers}get redirect(){return this[Ne].redirect}get signal(){return this[Ne].signal}clone(){return new $e(this)}}function He(e){Error.call(this,e),this.type="aborted",this.message=e,Error.captureStackTrace(this,this.constructor)}ge.mixIn($e.prototype),Object.defineProperty($e.prototype,Symbol.toStringTag,{value:"Request",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties($e.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0}}),(He.prototype=Object.create(Error.prototype)).constructor=He,He.prototype.name="AbortError";const ze=l.PassThrough,We=p.resolve;function Ve(e,t){if(!Ve.Promise)throw new Error("native promise missing, set fetch.Promise to your favorite alternative");return ge.Promise=Ve.Promise,new Ve.Promise(function(r,o){const i=new $e(e,t),a=function(e){const t=e[Ne].parsedURL,r=new Ce(e[Ne].headers);if(r.has("Accept")||r.set("Accept","*/*"),!t.protocol||!t.hostname)throw new TypeError("Only absolute URLs are supported");if(!/^https?:$/.test(t.protocol))throw new TypeError("Only HTTP(S) protocols are supported");if(e.signal&&e.body instanceof l.Readable&&!Be)throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8");let o=null;if(null==e.body&&/^(POST|PUT)$/i.test(e.method)&&(o="0"),null!=e.body){const t=Te(e);"number"==typeof t&&(o=String(t))}o&&r.set("Content-Length",o),r.has("User-Agent")||r.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"),e.compress&&!r.has("Accept-Encoding")&&r.set("Accept-Encoding","gzip,deflate");let n=e.agent;return"function"==typeof n&&(n=n(t)),r.has("Connection")||n||r.set("Connection","close"),Object.assign({},t,{method:e.method,headers:Fe(r),agent:n})}(i),c=("https:"===a.protocol?s:n).request,u=i.signal;let p=null;const d=function(){let e=new He("The user aborted a request.");o(e),i.body&&i.body instanceof l.Readable&&i.body.destroy(e),p&&p.body&&p.body.emit("error",e)};if(u&&u.aborted)return void d();const h=function(){d(),y()},m=c(a);let g;function y(){m.abort(),u&&u.removeEventListener("abort",h),clearTimeout(g)}u&&u.addEventListener("abort",h),i.timeout&&m.once("socket",function(e){g=setTimeout(function(){o(new fe("network timeout at: "+i.url,"request-timeout")),y()},i.timeout)}),m.on("error",function(e){o(new fe(`request to ${i.url} failed, reason: ${e.message}`,"system",e)),y()}),m.on("response",function(e){clearTimeout(g);const t=function(e){const t=new Ce;for(const r of Object.keys(e))if(!_e.test(r))if(Array.isArray(e[r]))for(const o of e[r])Se.test(o)||(void 0===t[Ae][r]?t[Ae][r]=[o]:t[Ae][r].push(o));else Se.test(e[r])||(t[Ae][r]=[e[r]]);return t}(e.headers);if(Ve.isRedirect(e.statusCode)){const n=t.get("Location"),s=null===n?null:We(i.url,n);switch(i.redirect){case"error":return o(new fe("uri requested responds with a redirect, redirect mode is set to error: "+i.url,"no-redirect")),void y();case"manual":if(null!==s)try{t.set("Location",s)}catch(e){o(e)}break;case"follow":if(null===s)break;if(i.counter>=i.follow)return o(new fe("maximum redirect reached at: "+i.url,"max-redirect")),void y();const n={headers:new Ce(i.headers),follow:i.follow,counter:i.counter+1,agent:i.agent,compress:i.compress,method:i.method,body:i.body,signal:i.signal,timeout:i.timeout,size:i.size};return 303!==e.statusCode&&i.body&&null===Te(i)?(o(new fe("Cannot follow redirect with body being a readable stream","unsupported-redirect")),void y()):(303!==e.statusCode&&(301!==e.statusCode&&302!==e.statusCode||"POST"!==i.method)||(n.method="GET",n.body=void 0,n.headers.delete("content-length")),r(Ve(new $e(s,n))),void y())}}e.once("end",function(){u&&u.removeEventListener("abort",h)});let n=e.pipe(new ze);const s={url:i.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:i.size,timeout:i.timeout,counter:i.counter},a=t.get("Content-Encoding");if(!i.compress||"HEAD"===i.method||null===a||204===e.statusCode||304===e.statusCode)return p=new De(n,s),void r(p);if("gzip"==a||"x-gzip"==a)return n=n.pipe(f.createGunzip({flush:f.Z_SYNC_FLUSH,finishFlush:f.Z_SYNC_FLUSH})),p=new De(n,s),void r(p);if("deflate"!=a&&"x-deflate"!=a){if("br"==a&&"function"==typeof f.createBrotliDecompress)return n=n.pipe(f.createBrotliDecompress()),p=new De(n,s),void r(p);p=new De(n,s),r(p)}else e.pipe(new ze).once("data",function(e){n=n.pipe(8==(15&e[0])?f.createInflate():f.createInflateRaw()),p=new De(n,s),r(p)})}),function(e,t){const r=t.body;null===r?e.end():we(r)?r.stream().pipe(e):Buffer.isBuffer(r)?(e.write(r),e.end()):r.pipe(e)}(m,i)})}Ve.isRedirect=function(e){return 301===e||302===e||303===e||307===e||308===e},Ve.Promise=global.Promise;class Je extends Error{constructor(e){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="Deprecation"}}var Ye=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(e){o[e]=t[e]}),o;function o(){for(var e=new Array(arguments.length),r=0;rconsole.warn(e));class tt extends Error{constructor(e,t,r){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="HttpError",this.status=t,Object.defineProperty(this,"code",{get:()=>(et(new Je("[@octokit/request-error] `error.code` is deprecated, use `error.status`.")),t)}),this.headers=r.headers||{};const o=Object.assign({},r.request);r.request.headers.authorization&&(o.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})),o.url=o.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=o}}function rt(e){(V(e.body)||Array.isArray(e.body))&&(e.body=JSON.stringify(e.body));let t,r,o={};return(e.request&&e.request.fetch||Ve)(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect},e.request)).then(n=>{r=n.url,t=n.status;for(const e of n.headers)o[e[0]]=e[1];if(204===t||205===t)return;if("HEAD"===e.method){if(t<400)return;throw new tt(n.statusText,t,{headers:o,request:e})}if(304===t)throw new tt("Not modified",t,{headers:o,request:e});if(t>=400)return n.text().then(r=>{const n=new tt(r,t,{headers:o,request:e});try{let e=JSON.parse(n.message);Object.assign(n,e),n.message=n.message+": "+e.errors.map(JSON.stringify).join(", ")}catch(e){}throw n});const s=n.headers.get("content-type");return/application\/json/.test(s)?n.json():!s||/^text\/|charset=utf-8$/.test(s)?n.text():function(e){return e.arrayBuffer()}(n)}).then(e=>({status:t,url:r,headers:o,data:e})).catch(t=>{if(t instanceof tt)throw t;throw new tt(t.message,500,{headers:o,request:e})})}const ot=function e(t,r){const o=t.defaults(r);return Object.assign(function(t,r){const n=o.merge(t,r);if(!n.request||!n.request.hook)return rt(o.parse(n));const s=(e,t)=>rt(o.parse(o.merge(e,t)));return Object.assign(s,{endpoint:o,defaults:e.bind(null,o)}),n.request.hook(s,n)},{endpoint:o,defaults:e.bind(null,o)})}(ae,{headers:{"user-agent":"octokit-request.js/5.4.12 "+G()}});class nt extends Error{constructor(e,t){super(t.data.errors[0].message),Object.assign(this,t.data),Object.assign(this,{headers:t.headers}),this.name="GraphqlError",this.request=e,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}const st=["method","baseUrl","url","headers","request","query","mediaType"],it=/\/api\/v3\/?$/;function at(e,t){const r=e.defaults(t);return Object.assign((e,t)=>function(e,t,r){if("string"==typeof t&&r&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));const o="string"==typeof t?Object.assign({query:t},r):t,n=Object.keys(o).reduce((e,t)=>st.includes(t)?(e[t]=o[t],e):(e.variables||(e.variables={}),e.variables[t]=o[t],e),{}),s=o.baseUrl||e.endpoint.DEFAULTS.baseUrl;return it.test(s)&&(n.url=s.replace(it,"/api/graphql")),e(n).then(e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers))t[r]=e.headers[r];throw new nt(n,{headers:t,data:e.data})}return e.data.data})}(r,e,t),{defaults:at.bind(null,r),endpoint:ot.endpoint})}async function ct(e){const t=3===e.split(/\./).length?"app":/^v\d+\./.test(e)?"installation":"oauth";return{type:"token",token:e,tokenType:t}}async function ut(e,t,r,o){const n=t.endpoint.merge(r,o);return n.headers.authorization=function(e){return 3===e.split(/\./).length?"bearer "+e:"token "+e}(e),t(n)}at(ot,{headers:{"user-agent":"octokit-graphql.js/4.5.8 "+G()},method:"POST",url:"/graphql"});const lt=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if("string"!=typeof e)throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(ct.bind(null,e),{hook:ut.bind(null,e)})};class pt{constructor(e={}){const t=new z,r={baseUrl:ot.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};var o;if(r.headers["user-agent"]=[e.userAgent,"octokit-core.js/3.2.4 "+G()].filter(Boolean).join(" "),e.baseUrl&&(r.baseUrl=e.baseUrl),e.previews&&(r.mediaType.previews=e.previews),e.timeZone&&(r.headers["time-zone"]=e.timeZone),this.request=ot.defaults(r),this.graphql=(o=this.request,at(o,{method:"POST",url:"/graphql"})).defaults(r),this.log=Object.assign({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},e.log),this.hook=t,e.authStrategy){const{authStrategy:r,...o}=e,n=r(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));t.wrap("request",n.hook),this.auth=n}else if(e.auth){const r=lt(e.auth);t.wrap("request",r.hook),this.auth=r}else this.auth=async()=>({type:"unauthenticated"});this.constructor.plugins.forEach(t=>{Object.assign(this,t(this,e))})}static defaults(e){return class extends(this){constructor(...t){const r=t[0]||{};super("function"!=typeof e?Object.assign({},e,r,r.userAgent&&e.userAgent?{userAgent:`${r.userAgent} ${e.userAgent}`}:null):e(r))}}}static plugin(...e){var t;const r=this.plugins;return(t=class extends(this){}).plugins=r.concat(e.filter(e=>!r.includes(e))),t}}pt.VERSION="3.2.4",pt.plugins=[];var ft={__proto__:null,Octokit:pt};const dt={actions:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createContentAttachment:["POST /content_references/{content_reference_id}/attachments",{mediaType:{previews:["corsair"]}}],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct",{mediaType:{previews:["scarlet-witch"]}}],getConductCode:["GET /codes_of_conduct/{key}",{mediaType:{previews:["scarlet-witch"]}}],getForRepo:["GET /repos/{owner}/{repo}/community/code_of_conduct",{mediaType:{previews:["scarlet-witch"]}}]},emojis:{get:["GET /emojis"]},enterpriseAdmin:{disableSelectedOrganizationGithubActionsEnterprise:["DELETE /enterprises/{enterprise}/actions/permissions/organizations/{org_id}"],enableSelectedOrganizationGithubActionsEnterprise:["PUT /enterprises/{enterprise}/actions/permissions/organizations/{org_id}"],getAllowedActionsEnterprise:["GET /enterprises/{enterprise}/actions/permissions/selected-actions"],getGithubActionsPermissionsEnterprise:["GET /enterprises/{enterprise}/actions/permissions"],listSelectedOrganizationsEnabledGithubActionsEnterprise:["GET /enterprises/{enterprise}/actions/permissions/organizations"],setAllowedActionsEnterprise:["PUT /enterprises/{enterprise}/actions/permissions/selected-actions"],setGithubActionsPermissionsEnterprise:["PUT /enterprises/{enterprise}/actions/permissions"],setSelectedOrganizationsEnabledGithubActionsEnterprise:["PUT /enterprises/{enterprise}/actions/permissions/organizations"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits"]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline",{mediaType:{previews:["mockingbird"]}}],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{cancelImport:["DELETE /repos/{owner}/{repo}/import"],deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive",{mediaType:{previews:["wyandotte"]}}],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive",{mediaType:{previews:["wyandotte"]}}],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive",{mediaType:{previews:["wyandotte"]}}],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive",{mediaType:{previews:["wyandotte"]}}],getCommitAuthors:["GET /repos/{owner}/{repo}/import/authors"],getImportStatus:["GET /repos/{owner}/{repo}/import"],getLargeFiles:["GET /repos/{owner}/{repo}/import/large_files"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}",{mediaType:{previews:["wyandotte"]}}],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}",{mediaType:{previews:["wyandotte"]}}],listForAuthenticatedUser:["GET /user/migrations",{mediaType:{previews:["wyandotte"]}}],listForOrg:["GET /orgs/{org}/migrations",{mediaType:{previews:["wyandotte"]}}],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories",{mediaType:{previews:["wyandotte"]}}],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{mediaType:{previews:["wyandotte"]}}],mapCommitAuthor:["PATCH /repos/{owner}/{repo}/import/authors/{author_id}"],setLfsPreference:["PATCH /repos/{owner}/{repo}/import/lfs"],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],startImport:["PUT /repos/{owner}/{repo}/import"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock",{mediaType:{previews:["wyandotte"]}}],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock",{mediaType:{previews:["wyandotte"]}}],updateImport:["PATCH /repos/{owner}/{repo}/import"]},orgs:{blockUser:["PUT /orgs/{org}/blocks/{username}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createInvitation:["POST /orgs/{org}/invitations"],createWebhook:["POST /orgs/{org}/hooks"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],get:["GET /orgs/{org}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listWebhooks:["GET /orgs/{org}/hooks"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}",{mediaType:{previews:["inertia"]}}],createCard:["POST /projects/columns/{column_id}/cards",{mediaType:{previews:["inertia"]}}],createColumn:["POST /projects/{project_id}/columns",{mediaType:{previews:["inertia"]}}],createForAuthenticatedUser:["POST /user/projects",{mediaType:{previews:["inertia"]}}],createForOrg:["POST /orgs/{org}/projects",{mediaType:{previews:["inertia"]}}],createForRepo:["POST /repos/{owner}/{repo}/projects",{mediaType:{previews:["inertia"]}}],delete:["DELETE /projects/{project_id}",{mediaType:{previews:["inertia"]}}],deleteCard:["DELETE /projects/columns/cards/{card_id}",{mediaType:{previews:["inertia"]}}],deleteColumn:["DELETE /projects/columns/{column_id}",{mediaType:{previews:["inertia"]}}],get:["GET /projects/{project_id}",{mediaType:{previews:["inertia"]}}],getCard:["GET /projects/columns/cards/{card_id}",{mediaType:{previews:["inertia"]}}],getColumn:["GET /projects/columns/{column_id}",{mediaType:{previews:["inertia"]}}],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission",{mediaType:{previews:["inertia"]}}],listCards:["GET /projects/columns/{column_id}/cards",{mediaType:{previews:["inertia"]}}],listCollaborators:["GET /projects/{project_id}/collaborators",{mediaType:{previews:["inertia"]}}],listColumns:["GET /projects/{project_id}/columns",{mediaType:{previews:["inertia"]}}],listForOrg:["GET /orgs/{org}/projects",{mediaType:{previews:["inertia"]}}],listForRepo:["GET /repos/{owner}/{repo}/projects",{mediaType:{previews:["inertia"]}}],listForUser:["GET /users/{username}/projects",{mediaType:{previews:["inertia"]}}],moveCard:["POST /projects/columns/cards/{card_id}/moves",{mediaType:{previews:["inertia"]}}],moveColumn:["POST /projects/columns/{column_id}/moves",{mediaType:{previews:["inertia"]}}],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}",{mediaType:{previews:["inertia"]}}],update:["PATCH /projects/{project_id}",{mediaType:{previews:["inertia"]}}],updateCard:["PATCH /projects/columns/cards/{card_id}",{mediaType:{previews:["inertia"]}}],updateColumn:["PATCH /projects/columns/{column_id}",{mediaType:{previews:["inertia"]}}]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch",{mediaType:{previews:["lydian"]}}],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteLegacy:["DELETE /reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}},{deprecated:"octokit.reactions.deleteLegacy() is deprecated, see https://docs.github.com/v3/reactions/#delete-a-reaction-legacy"}],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts",{mediaType:{previews:["dorian"]}}],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures",{mediaType:{previews:["zzzax"]}}],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createPagesSite:["POST /repos/{owner}/{repo}/pages",{mediaType:{previews:["switcheroo"]}}],createRelease:["POST /repos/{owner}/{repo}/releases"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate",{mediaType:{previews:["baptiste"]}}],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures",{mediaType:{previews:["zzzax"]}}],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages",{mediaType:{previews:["switcheroo"]}}],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes",{mediaType:{previews:["london"]}}],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts",{mediaType:{previews:["dorian"]}}],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes",{mediaType:{previews:["london"]}}],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts",{mediaType:{previews:["dorian"]}}],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics",{mediaType:{previews:["mercy"]}}],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures",{mediaType:{previews:["zzzax"]}}],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head",{mediaType:{previews:["groot"]}}],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls",{mediaType:{previews:["groot"]}}],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics",{mediaType:{previews:["mercy"]}}],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits",{mediaType:{previews:["cloak"]}}],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics",{mediaType:{previews:["mercy"]}}],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}",{mediaType:{previews:["inertia"]}}],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}",{mediaType:{previews:["inertia"]}}],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects",{mediaType:{previews:["inertia"]}}],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys"],deleteEmailForAuthenticated:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};function ht(e,t,r,o,n){const s=e.request.defaults(o);return Object.assign(function(...o){let i=s.endpoint.merge(...o);if(n.mapToData)return i=Object.assign({},i,{data:i[n.mapToData],[n.mapToData]:void 0}),s(i);if(n.renamed){const[o,s]=n.renamed;e.log.warn(`octokit.${t}.${r}() has been renamed to octokit.${o}.${s}()`)}if(n.deprecated&&e.log.warn(n.deprecated),n.renamedParameters){const i=s.endpoint.merge(...o);for(const[o,s]of Object.entries(n.renamedParameters))o in i&&(e.log.warn(`"${o}" parameter is deprecated for "octokit.${t}.${r}()". Use "${s}" instead`),s in i||(i[s]=i[o]),delete i[o]);return s(i)}return s(...o)},s)}function mt(e){return function(e,t){const r={};for(const[o,n]of Object.entries(t))for(const[t,s]of Object.entries(n)){const[n,i,a]=s,[c,u]=n.split(/ /),l=Object.assign({method:c,url:u},i);r[o]||(r[o]={}),r[o][t]=a?ht(e,o,t,l,a):e.request.defaults(l)}return r}(e,dt)}mt.VERSION="4.4.1";var gt=mt;function yt(e,t,r){const o="function"==typeof t?t.endpoint(r):e.request.endpoint(t,r),n="function"==typeof t?t:e.request,s=o.method,i=o.headers;let a=o.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!a)return{done:!0};const e=function(e){if(!("total_count"in e.data)||"url"in e.data)return e;const t=e.data.incomplete_results,r=e.data.repository_selection,o=e.data.total_count;delete e.data.incomplete_results,delete e.data.repository_selection,delete e.data.total_count;const n=Object.keys(e.data)[0];return e.data=e.data[n],void 0!==t&&(e.data.incomplete_results=t),void 0!==r&&(e.data.repository_selection=r),e.data.total_count=o,e}(await n({method:s,url:a,headers:i}));return a=((e.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1],{value:e}}})}}function bt(e,t,r,o){return"function"==typeof r&&(o=r,r=void 0),function e(t,r,o,n){return o.next().then(s=>{if(s.done)return r;let i=!1;return r=r.concat(n?n(s.value,function(){i=!0}):s.value.data),i?r:e(t,r,o,n)})}(e,[],yt(e,t,r)[Symbol.asyncIterator](),o)}function wt(e){return{paginate:Object.assign(bt.bind(null,e),{iterator:yt.bind(null,e)})}}Object.assign(bt,{iterator:yt}),wt.VERSION="2.6.2";var vt,Et=wt,Tt=b(function(e,t){var r=g&&g.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),o=g&&g.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=g&&g.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getOctokitOptions=t.GitHub=t.context=void 0;const s=n(S),i=n(x);t.context=new s.Context;const a=i.getApiBaseUrl(),c={baseUrl:a,request:{agent:i.getProxyAgent(a)}};t.GitHub=ft.Octokit.plugin(gt,Et).defaults(c),t.getOctokitOptions=function(e,t){const r=Object.assign({},t||{}),o=i.getAuthString(e,r);return o&&(r.auth=o),r}}),_t=b(function(e,t){var r=g&&g.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),o=g&&g.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=g&&g.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getOctokit=t.context=void 0;const s=n(S);t.context=new s.Context,t.getOctokit=function(e,t){return new Tt.GitHub(Tt.getOctokitOptions(e,t))}}),St=b(function(e,r){var n,s=g&&g.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(n,s){function i(e){try{c(o.next(e))}catch(e){s(e)}}function a(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(i,a)}c((o=o.apply(e,t||[])).next())})};function i(e){return(1&e.mode)>0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}Object.defineProperty(r,"__esModule",{value:!0}),r.chmod=(n=o.promises).chmod,r.copyFile=n.copyFile,r.lstat=n.lstat,r.mkdir=n.mkdir,r.readdir=n.readdir,r.readlink=n.readlink,r.rename=n.rename,r.rmdir=n.rmdir,r.stat=n.stat,r.symlink=n.symlink,r.unlink=n.unlink,r.IS_WINDOWS="win32"===process.platform,r.exists=function(e){return s(this,void 0,void 0,function*(){try{yield r.stat(e)}catch(e){if("ENOENT"===e.code)return!1;throw e}return!0})},r.isDirectory=function(e,t=!1){return s(this,void 0,void 0,function*(){return(t?yield r.stat(e):yield r.lstat(e)).isDirectory()})},r.isRooted=function(e){if(!(e=function(e){return e=e||"",r.IS_WINDOWS?(e=e.replace(/\//g,"\\")).replace(/\\\\+/g,"\\"):e.replace(/\/\/+/g,"/")}(e)))throw new Error('isRooted() parameter "p" cannot be empty');return r.IS_WINDOWS?e.startsWith("\\")||/^[A-Z]:/i.test(e):e.startsWith("/")},r.mkdirP=function e(o,n=1e3,i=1){return s(this,void 0,void 0,function*(){if(c.ok(o,"a path argument must be provided"),o=t.resolve(o),i>=n)return r.mkdir(o);try{return void(yield r.mkdir(o))}catch(s){switch(s.code){case"ENOENT":return yield e(t.dirname(o),n,i+1),void(yield r.mkdir(o));default:{let e;try{e=yield r.stat(o)}catch(e){throw s}if(!e.isDirectory())throw s}}}})},r.tryGetExecutablePath=function(e,o){return s(this,void 0,void 0,function*(){let n=void 0;try{n=yield r.stat(e)}catch(t){"ENOENT"!==t.code&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}if(n&&n.isFile())if(r.IS_WINDOWS){const r=t.extname(e).toUpperCase();if(o.some(e=>e.toUpperCase()===r))return e}else if(i(n))return e;const s=e;for(const a of o){e=s+a,n=void 0;try{n=yield r.stat(e)}catch(t){"ENOENT"!==t.code&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}if(n&&n.isFile()){if(r.IS_WINDOWS){try{const o=t.dirname(e),n=t.basename(e).toUpperCase();for(const s of yield r.readdir(o))if(n===s.toUpperCase()){e=t.join(o,s);break}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}if(i(n))return e}}return""})}}),Ot=b(function(e,r){var o=g&&g.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(n,s){function i(e){try{c(o.next(e))}catch(e){s(e)}}function a(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(i,a)}c((o=o.apply(e,t||[])).next())})};Object.defineProperty(r,"__esModule",{value:!0});const n=u.promisify(d.exec);function s(e){return o(this,void 0,void 0,function*(){if(St.IS_WINDOWS){try{(yield St.isDirectory(e,!0))?yield n(`rd /s /q "${e}"`):yield n(`del /f /a "${e}"`)}catch(e){if("ENOENT"!==e.code)throw e}try{yield St.unlink(e)}catch(e){if("ENOENT"!==e.code)throw e}}else{let t=!1;try{t=yield St.isDirectory(e)}catch(e){if("ENOENT"!==e.code)throw e;return}t?yield n(`rm -rf "${e}"`):yield St.unlink(e)}})}function i(e){return o(this,void 0,void 0,function*(){yield St.mkdirP(e)})}function a(e,t,r){return o(this,void 0,void 0,function*(){if((yield St.lstat(e)).isSymbolicLink()){try{yield St.lstat(t),yield St.unlink(t)}catch(e){"EPERM"===e.code&&(yield St.chmod(t,"0666"),yield St.unlink(t))}const r=yield St.readlink(e);yield St.symlink(r,t,St.IS_WINDOWS?"junction":null)}else(yield St.exists(t))&&!r||(yield St.copyFile(e,t))})}r.cp=function(e,r,n={}){return o(this,void 0,void 0,function*(){const{force:s,recursive:c}=function(e){return{force:null==e.force||e.force,recursive:Boolean(e.recursive)}}(n),u=(yield St.exists(r))?yield St.stat(r):null;if(u&&u.isFile()&&!s)return;const l=u&&u.isDirectory()?t.join(r,t.basename(e)):r;if(!(yield St.exists(e)))throw new Error("no such file or directory: "+e);if((yield St.stat(e)).isDirectory()){if(!c)throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield function e(t,r,n,s){return o(this,void 0,void 0,function*(){if(n>=255)return;n++,yield i(r);const o=yield St.readdir(t);for(const i of o){const o=`${t}/${i}`,c=`${r}/${i}`;(yield St.lstat(o)).isDirectory()?yield e(o,c,n,s):yield a(o,c,s)}yield St.chmod(r,(yield St.stat(t)).mode)})}(e,l,0,s)}else{if(""===t.relative(e,l))throw new Error(`'${l}' and '${e}' are the same file`);yield a(e,l,s)}})},r.mv=function(e,r,n={}){return o(this,void 0,void 0,function*(){if(yield St.exists(r)){let o=!0;if((yield St.isDirectory(r))&&(r=t.join(r,t.basename(e)),o=yield St.exists(r)),o){if(null!=n.force&&!n.force)throw new Error("Destination already exists");yield s(r)}}yield i(t.dirname(r)),yield St.rename(e,r)})},r.rmRF=s,r.mkdirP=i,r.which=function e(r,n){return o(this,void 0,void 0,function*(){if(!r)throw new Error("parameter 'tool' is required");if(n&&!(yield e(r,!1)))throw St.IS_WINDOWS?new Error(`Unable to locate executable file: ${r}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`):new Error(`Unable to locate executable file: ${r}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);try{const e=[];if(St.IS_WINDOWS&&process.env.PATHEXT)for(const r of process.env.PATHEXT.split(t.delimiter))r&&e.push(r);if(St.isRooted(r))return(yield St.tryGetExecutablePath(r,e))||"";if(r.includes("/")||St.IS_WINDOWS&&r.includes("\\"))return"";const o=[];if(process.env.PATH)for(const e of process.env.PATH.split(t.delimiter))e&&o.push(e);for(const n of o){const o=yield St.tryGetExecutablePath(n+t.sep+r,e);if(o)return o}return""}catch(e){throw new Error("which failed with message "+e.message)}})}}),kt=b(function(e,o){var n=g&&g.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(n,s){function i(e){try{c(o.next(e))}catch(e){s(e)}}function a(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(i,a)}c((o=o.apply(e,t||[])).next())})},s=g&&g.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(o,"__esModule",{value:!0});const i=s(r),c=s(a),u=s(d),l=s(t),p=s(Ot),f=s(St),h="win32"===process.platform;o.ToolRunner=class extends c.EventEmitter{constructor(e,t,r){if(super(),!e)throw new Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=t||[],this.options=r||{}}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e)}_getCommandString(e,t){const r=this._getSpawnFileName(),o=this._getSpawnArgs(e);let n=t?"":"[command]";if(h)if(this._isCmdFile()){n+=r;for(const e of o)n+=" "+e}else if(e.windowsVerbatimArguments){n+=`"${r}"`;for(const e of o)n+=" "+e}else{n+=this._windowsQuoteCmdArg(r);for(const e of o)n+=" "+this._windowsQuoteCmdArg(e)}else{n+=r;for(const e of o)n+=" "+e}return n}_processLineBuffer(e,t,r){try{let o=t+e.toString(),n=o.indexOf(i.EOL);for(;n>-1;)r(o.substring(0,n)),o=o.substring(n+i.EOL.length),n=o.indexOf(i.EOL);t=o}catch(e){this._debug("error processing line. Failed with error "+e)}}_getSpawnFileName(){return h&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(e){if(h&&this._isCmdFile()){let t='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath);for(const r of this.args)t+=" ",t+=e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r);return t+='"',[t]}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile())return this._uvQuoteCmdArg(e);if(!e)return'""';const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let r=!1;for(const o of e)if(t.some(e=>e===o)){r=!0;break}if(!r)return e;let o='"',n=!0;for(let t=e.length;t>0;t--)o+=e[t-1],n&&"\\"===e[t-1]?o+="\\":'"'===e[t-1]?(n=!0,o+='"'):n=!1;return o+='"',o.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let t='"',r=!0;for(let o=e.length;o>0;o--)t+=e[o-1],r&&"\\"===e[o-1]?t+="\\":'"'===e[o-1]?(r=!0,t+="\\"):r=!1;return t+='"',t.split("").reverse().join("")}_cloneExecOptions(e){const t={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t}_getSpawnOptions(e,t){const r={};return r.cwd=(e=e||{}).cwd,r.env=e.env,r.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(r.argv0=`"${t}"`),r}exec(){return n(this,void 0,void 0,function*(){return!f.isRooted(this.toolPath)&&(this.toolPath.includes("/")||h&&this.toolPath.includes("\\"))&&(this.toolPath=l.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield p.which(this.toolPath,!0),new Promise((e,t)=>{this._debug("exec tool: "+this.toolPath),this._debug("arguments:");for(const e of this.args)this._debug(" "+e);const r=this._cloneExecOptions(this.options);!r.silent&&r.outStream&&r.outStream.write(this._getCommandString(r)+i.EOL);const o=new m(r,this.toolPath);o.on("debug",e=>{this._debug(e)});const n=this._getSpawnFileName(),s=u.spawn(n,this._getSpawnArgs(r),this._getSpawnOptions(this.options,n));if(s.stdout&&s.stdout.on("data",e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!r.silent&&r.outStream&&r.outStream.write(e),this._processLineBuffer(e,"",e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e)})}),s.stderr&&s.stderr.on("data",e=>{o.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!r.silent&&r.errStream&&r.outStream&&(r.failOnStdErr?r.errStream:r.outStream).write(e),this._processLineBuffer(e,"",e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e)})}),s.on("error",e=>{o.processError=e.message,o.processExited=!0,o.processClosed=!0,o.CheckComplete()}),s.on("exit",e=>{o.processExitCode=e,o.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),o.CheckComplete()}),s.on("close",e=>{o.processExitCode=e,o.processExited=!0,o.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),o.CheckComplete()}),o.on("done",(r,o)=>{"".length>0&&this.emit("stdline",""),"".length>0&&this.emit("errline",""),s.removeAllListeners(),r?t(r):e(o)}),this.options.input){if(!s.stdin)throw new Error("child process missing stdin");s.stdin.end(this.options.input)}})})}},o.argStringToArray=function(e){const t=[];let r=!1,o=!1,n="";function s(e){o&&'"'!==e&&(n+="\\"),n+=e,o=!1}for(let i=0;i0&&(t.push(n),n=""):o?s(a):r=!r}return n.length>0&&t.push(n.trim()),t};class m extends c.EventEmitter{constructor(e,t){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!t)throw new Error("toolPath must not be empty");this.options=e,this.toolPath=t,e.delay&&(this.delay=e.delay)}CheckComplete(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=setTimeout(m.HandleTimeout,this.delay,this)))}_debug(e){this.emit("debug",e)}_setResult(){let e;this.processExited&&(this.processError?e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):0===this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)):e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)}static HandleTimeout(e){e.done||(!e.processClosed&&e.processExited&&e._debug(`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`),e._setResult())}}}),Pt=y(b(function(e,t){var r=g&&g.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(n,s){function i(e){try{c(o.next(e))}catch(e){s(e)}}function a(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(i,a)}c((o=o.apply(e,t||[])).next())})},o=g&&g.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const n=o(kt);t.exec=function(e,t,o){return r(this,void 0,void 0,function*(){const r=n.argStringToArray(e);if(0===r.length)throw new Error("Parameter 'commandLine' cannot be null or empty.");const s=r[0];return t=r.slice(1).concat(t||[]),new n.ToolRunner(s,t,o).exec()})}})),At=Object.prototype.toString,Ct=function(e){var t=At.call(e),r="[object Arguments]"===t;return r||(r="[object Array]"!==t&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===At.call(e.callee)),r};if(!Object.keys){var Rt=Object.prototype.hasOwnProperty,jt=Object.prototype.toString,xt=Ct,Gt=Object.prototype.propertyIsEnumerable,Ft=!Gt.call({toString:null},"toString"),It=Gt.call(function(){},"prototype"),Ut=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Dt=function(e){var t=e.constructor;return t&&t.prototype===e},Nt={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},Lt=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!Nt["$"+e]&&Rt.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{Dt(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();vt=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===jt.call(e),o=xt(e),n=t&&"[object String]"===jt.call(e),s=[];if(!t&&!r&&!o)throw new TypeError("Object.keys called on a non-object");var i=It&&r;if(n&&e.length>0&&!Rt.call(e,0))for(var a=0;a0)for(var c=0;c2?arguments[2]:{},o=Ht(t);zt&&(o=Vt.call(o,Object.getOwnPropertySymbols(t)));for(var n=0;n1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');for(var r=gr(e),o=yr("%"+(r.length>0?r[0]:"")+"%",t),n=1;n=r.length){var s=ir(o,r[n]);if(!t&&!(r[n]in o))throw new sr("base intrinsic for "+e+" exists, but the property is not available.");o=s?s.get||s.value:o[r[n]]}else o=o[r[n]];return o},wr=br("%Function%"),vr=wr.apply,Er=wr.call,Tr=function(){return nr.apply(Er,arguments)};Tr.apply=function(){return nr.apply(vr,arguments)};var _r=Tr(br("String.prototype.indexOf")),Sr=function(e,t){var r=br(e,!!t);return"function"==typeof r&&_r(e,".prototype.")?Tr(r):r},Or=br("%Object.defineProperty%",!0);if(Or)try{Or({},"a",{value:1})}catch(e){Or=null}var kr=Sr("Object.prototype.propertyIsEnumerable"),Pr=nr.call(Function.call,Object.prototype.hasOwnProperty),Ar=br("%TypeError%"),Cr=br("%SyntaxError%"),Rr={"Property Descriptor":function(e,t){if("Object"!==e(t))return!1;var r={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var o in t)if(Pr(t,o)&&!r[o])return!1;var n=Pr(t,"[[Value]]"),s=Pr(t,"[[Get]]")||Pr(t,"[[Set]]");if(n&&s)throw new Ar("Property Descriptors may not be both accessor and data descriptors");return!0}},jr=function(e,t,r,o){var n=Rr[t];if("function"!=typeof n)throw new Cr("unknown record type: "+t);if(!n(e,o))throw new Ar(r+" must be a "+t)},xr=function(e){return"symbol"==typeof e?"Symbol":function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0}(e)},Gr=function(e){if(void 0===e)return e;jr(xr,"Property Descriptor","Desc",e);var t={};return"[[Value]]"in e&&(t.value=e["[[Value]]"]),"[[Writable]]"in e&&(t.writable=e["[[Writable]]"]),"[[Get]]"in e&&(t.get=e["[[Get]]"]),"[[Set]]"in e&&(t.set=e["[[Set]]"]),"[[Enumerable]]"in e&&(t.enumerable=e["[[Enumerable]]"]),"[[Configurable]]"in e&&(t.configurable=e["[[Configurable]]"]),t},Fr=br("%Object.getOwnPropertyDescriptor%");if(Fr)try{Fr([],"length")}catch(e){Fr=null}var Ir=Fr,Ur=br("%Array%"),Dr=!Ur.isArray&&Sr("Object.prototype.toString"),Nr=Ur.isArray||function(e){return"[object Array]"===Dr(e)},Lr=function(e){return"string"==typeof e||"symbol"==typeof e},Mr=RegExp.prototype.exec,Br=Object.getOwnPropertyDescriptor,qr=Object.prototype.toString,$r="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,Hr=function(e){return!!e},zr=br("%Symbol.match%",!0),Wr=Function.prototype.toString,Vr=/^\s*class\b/,Jr=function(e){try{var t=Wr.call(e);return Vr.test(t)}catch(e){return!1}},Yr=Object.prototype.toString,Kr="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,Qr=function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(Kr)return function(e){try{return!Jr(e)&&(Wr.call(e),!0)}catch(e){return!1}}(e);if(Jr(e))return!1;var t=Yr.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t},Zr=br("%TypeError%"),Xr=br("%TypeError%"),eo=Sr("Object.prototype.propertyIsEnumerable"),to=function(e){return void 0!==e&&(jr(xr,"Property Descriptor","Desc",e),!(!Pr(e,"[[Value]]")&&!Pr(e,"[[Writable]]")))},ro=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e},oo=br("%Object%"),no=oo.isExtensible,so=oo.preventExtensions?function(e){return!ro(e)&&no(e)}:function(e){return!ro(e)},io=Number.isNaN||function(e){return e!=e},ao=function(e,t){return e===t?0!==e||1/e==1/t:io(e)&&io(t)},co=br("%TypeError%"),uo=br("%TypeError%"),lo=function(e,t){if(null==e)throw new uo(t||"Cannot call method on "+e);return e},po=br("%Object%"),fo=Object.getOwnPropertyDescriptor,ho=Object.getOwnPropertyNames,mo=Object.getOwnPropertySymbols,go=Sr("Array.prototype.concat"),yo=Sr("Array.prototype.reduce"),bo=mo?function(e){return go(ho(e),mo(e))}:ho,wo=Qr(fo)&&Qr(ho),vo=function(e){if(lo(e),!wo)throw new TypeError("getOwnPropertyDescriptors requires Object.getOwnPropertyDescriptor");var t=function(e){return lo(e),po(e)}(e);return yo(bo(t),function(e,r){var o=fo(t,r);return void 0!==o&&function(e,t,r){if("Object"!==xr(e))throw new co("Assertion failed: Type(O) is not Object");if(!Lr(t))throw new co("Assertion failed: IsPropertyKey(P) is not true");var o=function(e,t){if("Object"!==xr(e))throw new Xr("Assertion failed: O must be an Object");if(!Lr(t))throw new Xr("Assertion failed: P must be a Property Key");if(Pr(e,t)){if(!Ir){var r=Nr(e)&&"length"===t,o=function(e){if(!e||"object"!=typeof e)return!1;if(zr){var t=e[zr];if(void 0!==t)return Hr(t)}return function(e){if(!e||"object"!=typeof e)return!1;if(!$r)return"[object RegExp]"===qr.call(e);var t=Br(e,"lastIndex");return!(!t||!Pr(t,"value"))&&function(e){try{var t=e.lastIndex;return e.lastIndex=0,Mr.call(e),!0}catch(e){return!1}finally{e.lastIndex=t}}(e)}(e)}(e)&&"lastIndex"===t;return{"[[Configurable]]":!(r||o),"[[Enumerable]]":eo(e,t),"[[Value]]":e[t],"[[Writable]]":!0}}return function(e){if("Object"!==xr(e))throw new Zr("ToPropertyDescriptor requires an object");var t={};if(Pr(e,"enumerable")&&(t["[[Enumerable]]"]=Hr(e.enumerable)),Pr(e,"configurable")&&(t["[[Configurable]]"]=Hr(e.configurable)),Pr(e,"value")&&(t["[[Value]]"]=e.value),Pr(e,"writable")&&(t["[[Writable]]"]=Hr(e.writable)),Pr(e,"get")){var r=e.get;if(void 0!==r&&!Qr(r))throw new TypeError("getter must be a function");t["[[Get]]"]=r}if(Pr(e,"set")){var o=e.set;if(void 0!==o&&!Qr(o))throw new Zr("setter must be a function");t["[[Set]]"]=o}if((Pr(t,"[[Get]]")||Pr(t,"[[Set]]"))&&(Pr(t,"[[Value]]")||Pr(t,"[[Writable]]")))throw new Zr("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}(Ir(e,t))}}(e,t),n=o||so(e);(!o||o.writable&&o.configurable)&&n&&function(e,t,r,o,n,s){if(!Or){if(!e(s))return!1;if(!s["[[Configurable]]"]||!s["[[Writable]]"])return!1;if(n in o&&kr(o,n)!==!!s["[[Enumerable]]"])return!1;var i=s["[[Value]]"];return o[n]=i,t(o[n],i)}Or(o,n,r(s))}(to,ao,Gr,e,t,{"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Value]]":r,"[[Writable]]":!0})}(e,r,o),e},{})},Eo=function(){return"function"==typeof Object.getOwnPropertyDescriptors?Object.getOwnPropertyDescriptors:vo};Zt(vo,{getPolyfill:Eo,implementation:vo,shim:function(){var e=Eo();return Zt(Object,{getOwnPropertyDescriptors:e},{getOwnPropertyDescriptors:function(){return Object.getOwnPropertyDescriptors!==e}}),e}});var To=vo;if("function"!=typeof Object.defineProperty||"function"!=typeof Object.defineProperties||[].__proto__!==Array.prototype)throw new TypeError("util.promisify requires a true ES5 environment, that also supports `__proto__`");if("function"!=typeof Promise)throw new TypeError("`Promise` must be globally available for util.promisify to work.");var _o=Sr("Array.prototype.slice"),So=Sr("Array.prototype.concat"),Oo=Sr("Array.prototype.forEach"),ko=er(),Po=ko?Symbol("util.promisify.custom"):null,Ao=ko?Symbol("customPromisifyArgs"):null,Co=function(e){if("function"!=typeof e){var t=new TypeError('The "original" argument must be of type function');throw t.name="TypeError [ERR_INVALID_ARG_TYPE]",t.code="ERR_INVALID_ARG_TYPE",t}if(ko&&e[Po]){var r=e[Po];if("function"!=typeof r)throw new TypeError("The [util.promisify.custom] property must be a function");return Object.defineProperty(r,Po,{configurable:!0,enumerable:!1,value:r,writable:!1}),r}var o=e[Ao],n=function(){var t=_o(arguments),r=this;return new Promise(function(n,s){e.apply(r,So(t,function(e){var t=arguments.length>1?_o(arguments,1):[];if(e)s(e);else if(void 0!==o&&t.length>1){var r={};Oo(o,function(e,o){r[e]=t[o]}),n(r)}else n(t[0])}))})};return n.__proto__=e.__proto__,Object.defineProperty(n,Po,{configurable:!0,enumerable:!1,value:n,writable:!1}),Object.defineProperties(n,To(e))},Ro=Ao;Co.custom=Po,Co.customPromisifyArgs=Ro;var jo=function(){return"function"==typeof u.promisify?u.promisify:Co},xo=jo(),Go=function(e){return xo.apply(u,arguments)};Zt(Go,{custom:xo.custom,customPromisifyArgs:xo.customPromisifyArgs,getPolyfill:jo,implementation:Co,shim:function(){var e=jo();return e!==u.promisify&&Object.defineProperty(u,"promisify",{configurable:!0,enumerable:!0,value:e,writable:!0}),e}});var Fo=Go,Io="win32"===process.platform,Uo=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);if(Io)var Do=/(.*?)(?:[\/\\]+|$)/g;else Do=/(.*?)(?:[\/]+|$)/g;if(Io)var No=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else No=/^[\/]*/;var Lo=zo;zo.realpath=zo,zo.sync=Wo,zo.realpathSync=Wo,zo.monkeypatch=function(){o.realpath=zo,o.realpathSync=Wo},zo.unmonkeypatch=function(){o.realpath=Mo,o.realpathSync=Bo};var Mo=o.realpath,Bo=o.realpathSync,qo=process.version,$o=/^v[0-5]\./.test(qo);function Ho(e){return e&&"realpath"===e.syscall&&("ELOOP"===e.code||"ENOMEM"===e.code||"ENAMETOOLONG"===e.code)}function zo(e,r,n){if($o)return Mo(e,r,n);"function"==typeof r&&(n=r,r=null),Mo(e,r,function(s,i){Ho(s)?function(e,r,n){if("function"!=typeof n&&(n=function(e){return"function"==typeof e?e:function(){var e;if(Uo){var t=new Error;e=function(e){e&&(t.message=e.message,r(e=t))}}else e=r;return e;function r(e){if(e){if(process.throwDeprecation)throw e;if(!process.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);process.traceDeprecation?console.trace(t):console.error(t)}}}}()}(r),r=null),e=t.resolve(e),r&&Object.prototype.hasOwnProperty.call(r,e))return process.nextTick(n.bind(null,null,r[e]));var s,i,a,c,u=e,l={},p={};function f(){var t=No.exec(e);s=t[0].length,i=t[0],a=t[0],c="",Io&&!p[a]?o.lstat(a,function(e){if(e)return n(e);p[a]=!0,d()}):process.nextTick(d)}function d(){if(s>=e.length)return r&&(r[u]=e),n(null,e);Do.lastIndex=s;var t=Do.exec(e);return c=i,i+=t[0],s=Do.lastIndex,p[a=c+t[1]]||r&&r[a]===a?process.nextTick(d):r&&Object.prototype.hasOwnProperty.call(r,a)?g(r[a]):o.lstat(a,h)}function h(e,t){if(e)return n(e);if(!t.isSymbolicLink())return p[a]=!0,r&&(r[a]=a),process.nextTick(d);if(!Io){var s=t.dev.toString(32)+":"+t.ino.toString(32);if(l.hasOwnProperty(s))return m(null,l[s],a)}o.stat(a,function(e){if(e)return n(e);o.readlink(a,function(e,t){Io||(l[s]=t),m(e,t)})})}function m(e,o,s){if(e)return n(e);var i=t.resolve(c,o);r&&(r[s]=i),g(i)}function g(r){e=t.resolve(r,e.slice(s)),f()}f()}(e,r,n):n(s,i)})}function Wo(e,r){if($o)return Bo(e,r);try{return Bo(e,r)}catch(n){if(Ho(n))return function(e,r){if(e=t.resolve(e),r&&Object.prototype.hasOwnProperty.call(r,e))return r[e];var n,s,i,a,c=e,u={},l={};function p(){var t=No.exec(e);n=t[0].length,s=t[0],i=t[0],a="",Io&&!l[i]&&(o.lstatSync(i),l[i]=!0)}for(p();n=0&&u>0){for(o=[],s=r.length;l>=0&&!a;)l==c?(o.push(l),c=r.indexOf(e,l+1)):1==o.length?a=[o.pop(),u]:((n=o.pop())=0?c:u;o.length&&(a=[s,i])}return a}Yo.range=Qo;var Zo="\0SLASH"+Math.random()+"\0",Xo="\0OPEN"+Math.random()+"\0",en="\0CLOSE"+Math.random()+"\0",tn="\0COMMA"+Math.random()+"\0",rn="\0PERIOD"+Math.random()+"\0";function on(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function nn(e){return e.split(Zo).join("\\").split(Xo).join("{").split(en).join("}").split(tn).join(",").split(rn).join(".")}function sn(e){return"{"+e+"}"}function an(e){return/^-?0\d/.test(e)}function cn(e,t){return e<=t}function un(e,t){return e>=t}var ln=yn;yn.Minimatch=bn;var pn={sep:"/"};try{pn=t}catch(e){}var fn=yn.GLOBSTAR=bn.GLOBSTAR={},dn={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},hn="().*{}+?[]^$\\!".split("").reduce(function(e,t){return e[t]=!0,e},{}),mn=/\/+/;function gn(e,t){e=e||{},t=t||{};var r={};return Object.keys(t).forEach(function(e){r[e]=t[e]}),Object.keys(e).forEach(function(t){r[t]=e[t]}),r}function yn(e,t,r){if("string"!=typeof t)throw new TypeError("glob pattern string required");return r||(r={}),!(!r.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new bn(t,r).match(e))}function bn(e,t){if(!(this instanceof bn))return new bn(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==pn.sep&&(e=e.split(pn.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function wn(e,t){if(t||(t=this instanceof bn?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:(r=e)?("{}"===r.substr(0,2)&&(r="\\{\\}"+r.substr(2)),function e(t,r){var o=[],n=Jo("{","}",t);if(!n||/\$$/.test(n.pre))return[t];var s,i=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),a=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),c=i||a,u=n.body.indexOf(",")>=0;if(!c&&!u)return n.post.match(/,.*\}/)?e(t=n.pre+"{"+n.body+en+n.post):[t];if(c)s=n.body.split(/\.\./);else if(1===(s=function e(t){if(!t)return[""];var r=[],o=Jo("{","}",t);if(!o)return t.split(",");var n=o.body,s=o.post,i=o.pre.split(",");i[i.length-1]+="{"+n+"}";var a=e(s);return s.length&&(i[i.length-1]+=a.shift(),i.push.apply(i,a)),r.push.apply(r,i),r}(n.body)).length&&1===(s=e(s[0],!1).map(sn)).length)return(f=n.post.length?e(n.post,!1):[""]).map(function(e){return n.pre+s[0]+e});var l,p=n.pre,f=n.post.length?e(n.post,!1):[""];if(c){var d=on(s[0]),h=on(s[1]),m=Math.max(s[0].length,s[1].length),g=3==s.length?Math.abs(on(s[2])):1,y=cn;h0){var T=new Array(E+1).join("0");v=w<0?"-"+T+v.slice(1):T+v}}l.push(v)}}else l=function(t,r){for(var o=[],n=0;n65536)throw new TypeError("pattern is too long");var r=this.options;if(!r.noglobstar&&"**"===e)return fn;if(""===e)return"";var o,n="",s=!!r.nocase,i=!1,a=[],c=[],u=!1,l=-1,p=-1,f="."===e.charAt(0)?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",d=this;function h(){if(o){switch(o){case"*":n+="[^/]*?",s=!0;break;case"?":n+="[^/]",s=!0;break;default:n+="\\"+o}d.debug("clearStateChar %j %j",o,n),o=!1}}for(var m,g=0,y=e.length;g-1;S--){var O=c[S],k=n.slice(0,O.reStart),P=n.slice(O.reStart,O.reEnd-8),A=n.slice(O.reEnd-8,O.reEnd),C=n.slice(O.reEnd);A+=C;var R=k.split("(").length-1,j=C;for(g=0;g=0&&!(o=e[n]);n--);for(n=0;n>> no match, partial?",e,p,t,f),p!==i))}if("string"==typeof u?(c=o.nocase?l.toLowerCase()===u.toLowerCase():l===u,this.debug("string match",u,l,c)):(c=l.match(u),this.debug("pattern match",u,l,c)),!c)return!1}if(n===i&&s===a)return!0;if(n===i)return r;if(s===a)return n===i-1&&""===e[n];throw new Error("wtf?")};var En=b(function(e){e.exports="function"==typeof Object.create?function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}}),Tn=b(function(e){try{if("function"!=typeof u.inherits)throw"";e.exports=u.inherits}catch(t){e.exports=En}});function _n(e){return"/"===e.charAt(0)}function Sn(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(e),r=t[1]||"",o=Boolean(r&&":"!==r.charAt(1));return Boolean(t[2]||o)}var On="win32"===process.platform?Sn:_n,kn=Sn;function Pn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}On.posix=_n,On.win32=kn;var An=ln.Minimatch;function Cn(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())}function Rn(e,t){return e.localeCompare(t)}function jn(e){var t=null;if("/**"===e.slice(-3)){var r=e.replace(/(\/\*\*)+$/,"");t=new An(r,{dot:!0})}return{matcher:new An(e,{dot:!0}),gmatcher:t}}function xn(e,r){var o=r;return o="/"===r.charAt(0)?t.join(e.root,r):On(r)||""===r?r:e.changedCwd?t.resolve(e.cwd,r):t.resolve(r),"win32"===process.platform&&(o=o.replace(/\\/g,"/")),o}function Gn(e,t){return!!e.ignore.length&&e.ignore.some(function(e){return e.matcher.match(t)||!(!e.gmatcher||!e.gmatcher.match(t))})}var Fn={alphasort:Rn,alphasorti:Cn,setopts:function(e,r,o){if(o||(o={}),o.matchBase&&-1===r.indexOf("/")){if(o.noglobstar)throw new Error("base matching requires globstar");r="**/"+r}e.silent=!!o.silent,e.pattern=r,e.strict=!1!==o.strict,e.realpath=!!o.realpath,e.realpathCache=o.realpathCache||Object.create(null),e.follow=!!o.follow,e.dot=!!o.dot,e.mark=!!o.mark,e.nodir=!!o.nodir,e.nodir&&(e.mark=!0),e.sync=!!o.sync,e.nounique=!!o.nounique,e.nonull=!!o.nonull,e.nosort=!!o.nosort,e.nocase=!!o.nocase,e.stat=!!o.stat,e.noprocess=!!o.noprocess,e.absolute=!!o.absolute,e.maxLength=o.maxLength||Infinity,e.cache=o.cache||Object.create(null),e.statCache=o.statCache||Object.create(null),e.symlinks=o.symlinks||Object.create(null),function(e,t){e.ignore=t.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]),e.ignore.length&&(e.ignore=e.ignore.map(jn))}(e,o),e.changedCwd=!1;var n=process.cwd();Pn(o,"cwd")?(e.cwd=t.resolve(o.cwd),e.changedCwd=e.cwd!==n):e.cwd=n,e.root=o.root||t.resolve(e.cwd,"/"),e.root=t.resolve(e.root),"win32"===process.platform&&(e.root=e.root.replace(/\\/g,"/")),e.cwdAbs=On(e.cwd)?e.cwd:xn(e,e.cwd),"win32"===process.platform&&(e.cwdAbs=e.cwdAbs.replace(/\\/g,"/")),e.nomount=!!o.nomount,o.nonegate=!0,o.nocomment=!0,e.minimatch=new An(r,o),e.options=e.minimatch.options},ownProp:Pn,makeAbs:xn,finish:function(e){for(var t=e.nounique,r=t?[]:Object.create(null),o=0,n=e.matches.length;othis.maxLength)return!1;if(!this.stat&&Dn(this.cache,t)){var n=this.cache[t];if(Array.isArray(n)&&(n="DIR"),!r||"DIR"===n)return n;if(r&&"FILE"===n)return!1}var s=this.statCache[t];if(!s){var i;try{i=o.lstatSync(t)}catch(e){if(e&&("ENOENT"===e.code||"ENOTDIR"===e.code))return this.statCache[t]=!1,!1}if(i&&i.isSymbolicLink())try{s=o.statSync(t)}catch(e){s=i}else s=i}return this.statCache[t]=s,n=!0,s&&(n=s.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||n,(!r||"FILE"!==n)&&n},Bn.prototype._mark=function(e){return Fn.mark(this,e)},Bn.prototype._makeAbs=function(e){return Fn.makeAbs(this,e)};var qn=Object.create(null),$n=Ye(function(e,t){return qn[e]?(qn[e].push(t),null):(qn[e]=[t],function(e){return Ke(function t(){var r=qn[e],o=r.length,n=Hn(arguments);try{for(var s=0;so?(r.splice(0,o),process.nextTick(function(){t.apply(null,n)})):delete qn[e]}})}(e))});function Hn(e){for(var t=e.length,r=[],o=0;o1)return!0;for(var n=0;nthis.maxLength)return t();if(!this.stat&&Jn(this.cache,r)){var s=this.cache[r];if(Array.isArray(s)&&(s="DIR"),!n||"DIR"===s)return t(null,s);if(n&&"FILE"===s)return t()}var i=this.statCache[r];if(void 0!==i){if(!1===i)return t(null,i);var a=i.isDirectory()?"DIR":"FILE";return n&&"FILE"===a?t():t(null,a,i)}var c=this,u=$n("stat\0"+r,function(n,s){if(s&&s.isSymbolicLink())return o.stat(r,function(o,n){o?c._stat2(e,r,null,s,t):c._stat2(e,r,o,n,t)});c._stat2(e,r,n,s,t)});u&&o.lstat(r,u)},Xn.prototype._stat2=function(e,t,r,o,n){if(r&&("ENOENT"===r.code||"ENOTDIR"===r.code))return this.statCache[t]=!1,n();var s="/"===e.slice(-1);if(this.statCache[t]=o,"/"===t.slice(-1)&&o&&!o.isDirectory())return n(null,!1,o);var i=!0;return o&&(i=o.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||i,s&&"FILE"===i?n():n(null,i,o)};var es=["write","end","destroy"],ts=["resume","pause"],rs=["data","close"],os=Array.prototype.slice,ns=function(e,t){var r=new l,o=!1;return ss(es,function(t){r[t]=function(){return e[t].apply(e,arguments)}}),ss(ts,function(e){r[e]=function(){r.emit(e);var o=t[e];if(o)return o.apply(t,arguments);t.emit(e)}}),ss(rs,function(e){t.on(e,function(){var t=os.call(arguments);t.unshift(e),r.emit.apply(r,t)})}),t.on("end",function(){if(!o){o=!0;var e=os.call(arguments);e.unshift("end"),r.emit.apply(r,e)}}),e.on("drain",function(){r.emit("drain")}),e.on("error",n),t.on("error",n),r.writable=e.writable,r.readable=t.readable,r;function n(e){r.emit("error",e)}};function ss(e,t){if(e.forEach)return e.forEach(t);for(var r=0;rfunction(...r){return new(0,t.promiseModule)((o,n)=>{r.push(t.multiArgs?(...e)=>{t.errorFirst?e[0]?n(e):(e.shift(),o(e)):o(e)}:t.errorFirst?(e,t)=>{e?n(e):o(t)}:o),e.apply(this,r)})};var as=(e,t)=>{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},t);const r=typeof e;if(null===e||"object"!==r&&"function"!==r)throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${null===e?"null":r}\``);const o=e=>{const r=t=>"string"==typeof t?e===t:t.test(e);return t.include?t.include.some(r):!t.exclude.some(r)};let n;n="function"===r?function(...r){return t.excludeMain?e(...r):is(e,t).apply(this,r)}:Object.create(Object.getPrototypeOf(e));for(const r in e){const s=e[r];n[r]="function"==typeof s&&o(r)?is(s,t):s}return n},cs=b(function(e){const t=e=>Object.assign({level:9},e);e.exports=(e,r)=>e?as(f.gzip)(e,t(r)).then(e=>e.length).catch(e=>0):Promise.resolve(0),e.exports.sync=(e,r)=>f.gzipSync(e,t(r)).length,e.exports.stream=e=>{const r=new l.PassThrough,o=new l.PassThrough,n=ns(r,o);let s=0;const i=f.createGzip(t(e)).on("data",e=>{s+=e.length}).on("error",()=>{n.gzipSize=0}).on("end",()=>{n.gzipSize=s,n.emit("gzip-size",s),o.end()});return r.pipe(i),r.pipe(o,{end:!1}),n},e.exports.file=(t,r)=>new Promise((n,s)=>{const i=o.createReadStream(t);i.on("error",s);const a=i.pipe(e.exports.stream(r));a.on("error",s),a.on("gzip-size",n)}),e.exports.fileSync=(t,r)=>e.exports.sync(o.readFileSync(t),r)}),us=/[|\\{}()[\]^$+*?.]/g,ls=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(us,"\\$&")},ps={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},fs=b(function(e){var t={};for(var r in ps)ps.hasOwnProperty(r)&&(t[ps[r]]=r);var o=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var n in o)if(o.hasOwnProperty(n)){if(!("channels"in o[n]))throw new Error("missing channels property: "+n);if(!("labels"in o[n]))throw new Error("missing channel labels property: "+n);if(o[n].labels.length!==o[n].channels)throw new Error("channel and label counts mismatch: "+n);var s=o[n].channels,i=o[n].labels;delete o[n].channels,delete o[n].labels,Object.defineProperty(o[n],"channels",{value:s}),Object.defineProperty(o[n],"labels",{value:i})}o.rgb.hsl=function(e){var t,r,o=e[0]/255,n=e[1]/255,s=e[2]/255,i=Math.min(o,n,s),a=Math.max(o,n,s),c=a-i;return a===i?t=0:o===a?t=(n-s)/c:n===a?t=2+(s-o)/c:s===a&&(t=4+(o-n)/c),(t=Math.min(60*t,360))<0&&(t+=360),r=(i+a)/2,[t,100*(a===i?0:r<=.5?c/(a+i):c/(2-a-i)),100*r]},o.rgb.hsv=function(e){var t,r,o,n,s,i=e[0]/255,a=e[1]/255,c=e[2]/255,u=Math.max(i,a,c),l=u-Math.min(i,a,c),p=function(e){return(u-e)/6/l+.5};return 0===l?n=s=0:(s=l/u,t=p(i),r=p(a),o=p(c),i===u?n=o-r:a===u?n=1/3+t-o:c===u&&(n=2/3+r-t),n<0?n+=1:n>1&&(n-=1)),[360*n,100*s,100*u]},o.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2];return[o.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(r,n))*100,100*(n=1-1/255*Math.max(t,Math.max(r,n)))]},o.rgb.cmyk=function(e){var t,r=e[0]/255,o=e[1]/255,n=e[2]/255;return[100*((1-r-(t=Math.min(1-r,1-o,1-n)))/(1-t)||0),100*((1-o-t)/(1-t)||0),100*((1-n-t)/(1-t)||0),100*t]},o.rgb.keyword=function(e){var r=t[e];if(r)return r;var o,n,s,i=Infinity;for(var a in ps)if(ps.hasOwnProperty(a)){var c=(n=e,s=ps[a],Math.pow(n[0]-s[0],2)+Math.pow(n[1]-s[1],2)+Math.pow(n[2]-s[2],2));c.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.1805*(o=o>.04045?Math.pow((o+.055)/1.055,2.4):o/12.92)),100*(.2126*t+.7152*r+.0722*o),100*(.0193*t+.1192*r+.9505*o)]},o.rgb.lab=function(e){var t=o.rgb.xyz(e),r=t[0],n=t[1],s=t[2];return n/=100,s/=108.883,r=(r/=95.047)>.008856?Math.pow(r,1/3):7.787*r+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(r-n),200*(n-(s=s>.008856?Math.pow(s,1/3):7.787*s+16/116))]},o.hsl.rgb=function(e){var t,r,o,n,s,i=e[0]/360,a=e[1]/100,c=e[2]/100;if(0===a)return[s=255*c,s,s];t=2*c-(r=c<.5?c*(1+a):c+a-c*a),n=[0,0,0];for(var u=0;u<3;u++)(o=i+1/3*-(u-1))<0&&o++,o>1&&o--,n[u]=255*(s=6*o<1?t+6*(r-t)*o:2*o<1?r:3*o<2?t+(r-t)*(2/3-o)*6:t);return n},o.hsl.hsv=function(e){var t=e[0],r=e[1]/100,o=e[2]/100,n=r,s=Math.max(o,.01);return r*=(o*=2)<=1?o:2-o,n*=s<=1?s:2-s,[t,100*(0===o?2*n/(s+n):2*r/(o+r)),(o+r)/2*100]},o.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,o=e[2]/100,n=Math.floor(t)%6,s=t-Math.floor(t),i=255*o*(1-r),a=255*o*(1-r*s),c=255*o*(1-r*(1-s));switch(o*=255,n){case 0:return[o,c,i];case 1:return[a,o,i];case 2:return[i,o,c];case 3:return[i,a,o];case 4:return[c,i,o];case 5:return[o,i,a]}},o.hsv.hsl=function(e){var t,r,o,n=e[0],s=e[1]/100,i=e[2]/100,a=Math.max(i,.01);return o=(2-s)*i,r=s*a,[n,100*(r=(r/=(t=(2-s)*a)<=1?t:2-t)||0),100*(o/=2)]},o.hwb.rgb=function(e){var t,r,o,n,s,i,a,c=e[0]/360,u=e[1]/100,l=e[2]/100,p=u+l;switch(p>1&&(u/=p,l/=p),o=6*c-(t=Math.floor(6*c)),0!=(1&t)&&(o=1-o),n=u+o*((r=1-l)-u),t){default:case 6:case 0:s=r,i=n,a=u;break;case 1:s=n,i=r,a=u;break;case 2:s=u,i=r,a=n;break;case 3:s=u,i=n,a=r;break;case 4:s=n,i=u,a=r;break;case 5:s=r,i=u,a=n}return[255*s,255*i,255*a]},o.cmyk.rgb=function(e){var t=e[1]/100,r=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,e[0]/100*(1-o)+o)),255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]},o.xyz.rgb=function(e){var t,r,o,n=e[0]/100,s=e[1]/100,i=e[2]/100;return r=-.9689*n+1.8758*s+.0415*i,o=.0557*n+-.204*s+1.057*i,t=(t=3.2406*n+-1.5372*s+-.4986*i)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:12.92*o,[255*(t=Math.min(Math.max(0,t),1)),255*(r=Math.min(Math.max(0,r),1)),255*(o=Math.min(Math.max(0,o),1))]},o.xyz.lab=function(e){var t=e[0],r=e[1],o=e[2];return r/=100,o/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(t-r),200*(r-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},o.lab.xyz=function(e){var t,r,o;t=e[1]/500+(r=(e[0]+16)/116),o=r-e[2]/200;var n=Math.pow(r,3),s=Math.pow(t,3),i=Math.pow(o,3);return r=n>.008856?n:(r-16/116)/7.787,t=s>.008856?s:(t-16/116)/7.787,o=i>.008856?i:(o-16/116)/7.787,[t*=95.047,r*=100,o*=108.883]},o.lab.lch=function(e){var t,r=e[0],o=e[1],n=e[2];return(t=360*Math.atan2(n,o)/2/Math.PI)<0&&(t+=360),[r,Math.sqrt(o*o+n*n),t]},o.lch.lab=function(e){var t,r=e[1];return t=e[2]/360*2*Math.PI,[e[0],r*Math.cos(t),r*Math.sin(t)]},o.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],s=1 in arguments?arguments[1]:o.rgb.hsv(e)[2];if(0===(s=Math.round(s/50)))return 30;var i=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return 2===s&&(i+=60),i},o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])},o.rgb.ansi256=function(e){var t=e[0],r=e[1],o=e[2];return t===r&&r===o?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(o/255*5)},o.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},o.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var r;return e-=16,[Math.floor(e/36)/5*255,Math.floor((r=e%36)/6)/5*255,r%6/5*255]},o.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},o.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];3===t[0].length&&(r=r.split("").map(function(e){return e+e}).join(""));var o=parseInt(r,16);return[o>>16&255,o>>8&255,255&o]},o.rgb.hcg=function(e){var t,r=e[0]/255,o=e[1]/255,n=e[2]/255,s=Math.max(Math.max(r,o),n),i=Math.min(Math.min(r,o),n),a=s-i;return t=a<=0?0:s===r?(o-n)/a%6:s===o?2+(n-r)/a:4+(r-o)/a+4,t/=6,[360*(t%=1),100*a,100*(a<1?i/(1-a):0)]},o.hsl.hcg=function(e){var t,r=e[1]/100,o=e[2]/100,n=0;return(t=o<.5?2*r*o:2*r*(1-o))<1&&(n=(o-.5*t)/(1-t)),[e[0],100*t,100*n]},o.hsv.hcg=function(e){var t=e[2]/100,r=e[1]/100*t,o=0;return r<1&&(o=(t-r)/(1-r)),[e[0],100*r,100*o]},o.hcg.rgb=function(e){var t=e[1]/100,r=e[2]/100;if(0===t)return[255*r,255*r,255*r];var o,n=[0,0,0],s=e[0]/360%1*6,i=s%1,a=1-i;switch(Math.floor(s)){case 0:n[0]=1,n[1]=i,n[2]=0;break;case 1:n[0]=a,n[1]=1,n[2]=0;break;case 2:n[0]=0,n[1]=1,n[2]=i;break;case 3:n[0]=0,n[1]=a,n[2]=1;break;case 4:n[0]=i,n[1]=0,n[2]=1;break;default:n[0]=1,n[1]=0,n[2]=a}return[255*(t*n[0]+(o=(1-t)*r)),255*(t*n[1]+o),255*(t*n[2]+o)]},o.hcg.hsv=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t),o=0;return r>0&&(o=t/r),[e[0],100*o,100*r]},o.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100*(1-t)+.5*t,o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],100*o,100*r]},o.hcg.hwb=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},o.hwb.hcg=function(e){var t=1-e[2]/100,r=t-e[1]/100,o=0;return r<1&&(o=(t-r)/(1-r)),[e[0],100*r,100*o]},o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},o.gray.hsl=o.gray.hsv=function(e){return[0,0,e[0]]},o.gray.hwb=function(e){return[0,100,e[0]]},o.gray.cmyk=function(e){return[0,0,0,e[0]]},o.gray.lab=function(e){return[e[0],0,0]},o.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},o.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});function ds(e,t){return function(r){return t(e(r))}}function hs(e,t){for(var r=[t[e].parent,e],o=fs[t[e].parent][e],n=t[e].parent;t[n].parent;)r.unshift(t[n].parent),o=ds(fs[t[n].parent][n],o),n=t[n].parent;return o.conversion=r,o}var ms={};Object.keys(fs).forEach(function(e){ms[e]={},Object.defineProperty(ms[e],"channels",{value:fs[e].channels}),Object.defineProperty(ms[e],"labels",{value:fs[e].labels});var t=function(e){for(var t=function(e){var t=function(){for(var e={},t=Object.keys(fs),r=t.length,o=0;o1&&(t=Array.prototype.slice.call(arguments));var r=e(t);if("object"==typeof r)for(var o=r.length,n=0;n1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(o)})});var gs=ms,ys=b(function(e){const t=(e,t)=>function(){const r=e.apply(gs,arguments);return`[${r+t}m`},r=(e,t)=>function(){const r=e.apply(gs,arguments);return`[${38+t};5;${r}m`},o=(e,t)=>function(){const r=e.apply(gs,arguments);return`[${38+t};2;${r[0]};${r[1]};${r[2]}m`};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,n={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};n.color.grey=n.color.gray;for(const t of Object.keys(n)){const r=n[t];for(const t of Object.keys(r)){const o=r[t];n[t]={open:`[${o[0]}m`,close:`[${o[1]}m`},r[t]=n[t],e.set(o[0],o[1])}Object.defineProperty(n,t,{value:r,enumerable:!1}),Object.defineProperty(n,"codes",{value:e,enumerable:!1})}const s=e=>e,i=(e,t,r)=>[e,t,r];n.color.close="",n.bgColor.close="",n.color.ansi={ansi:t(s,0)},n.color.ansi256={ansi256:r(s,0)},n.color.ansi16m={rgb:o(i,0)},n.bgColor.ansi={ansi:t(s,10)},n.bgColor.ansi256={ansi256:r(s,10)},n.bgColor.ansi16m={rgb:o(i,10)};for(let e of Object.keys(gs)){if("object"!=typeof gs[e])continue;const s=gs[e];"ansi16"===e&&(e="ansi"),"ansi16"in s&&(n.color.ansi[e]=t(s.ansi16,0),n.bgColor.ansi[e]=t(s.ansi16,10)),"ansi256"in s&&(n.color.ansi256[e]=r(s.ansi256,0),n.bgColor.ansi256[e]=r(s.ansi256,10)),"rgb"in s&&(n.color.ansi16m[e]=o(s.rgb,0),n.bgColor.ansi16m[e]=o(s.rgb,10))}return n}})}),bs=(e,t)=>{t=t||process.argv;const r=e.startsWith("-")?"":1===e.length?"-":"--",o=t.indexOf(r+e),n=t.indexOf("--");return-1!==o&&(-1===n||o=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in ws)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in ws)||"codeship"===ws.CI_NAME?1:t;if("TEAMCITY_VERSION"in ws)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ws.TEAMCITY_VERSION)?1:0;if("truecolor"===ws.COLORTERM)return 3;if("TERM_PROGRAM"in ws){const e=parseInt((ws.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ws.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ws.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ws.TERM)||"COLORTERM"in ws?1:t}(e))&&{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3};var t}bs("no-color")||bs("no-colors")||bs("color=false")?vs=!1:(bs("color")||bs("colors")||bs("color=true")||bs("color=always"))&&(vs=!0),"FORCE_COLOR"in ws&&(vs=0===ws.FORCE_COLOR.length||0!==parseInt(ws.FORCE_COLOR,10));var Ts={supportsColor:Es,stdout:Es(process.stdout),stderr:Es(process.stderr)};const _s=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Ss=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Os=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,ks=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,Ps=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function As(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):Ps.get(e)||e}function Cs(e,t){const r=[],o=t.trim().split(/\s*,\s*/g);let n;for(const t of o)if(isNaN(t)){if(!(n=t.match(Os)))throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`);r.push(n[2].replace(ks,(e,t,r)=>t?As(t):r))}else r.push(Number(t));return r}function Rs(e){Ss.lastIndex=0;const t=[];let r;for(;null!==(r=Ss.exec(e));){const e=r[1];if(r[2]){const o=Cs(e,r[2]);t.push([e].concat(o))}else t.push([e])}return t}function js(e,t){const r={};for(const e of t)for(const t of e.styles)r[t[0]]=e.inverse?null:t.slice(1);let o=e;for(const e of Object.keys(r))if(Array.isArray(r[e])){if(!(e in o))throw new Error("Unknown Chalk style: "+e);o=r[e].length>0?o[e].apply(o,r[e]):o[e]}return o}var xs=(e,t)=>{const r=[],o=[];let n=[];if(t.replace(_s,(t,s,i,a,c,u)=>{if(s)n.push(As(s));else if(a){const t=n.join("");n=[],o.push(0===r.length?t:js(e,r)(t)),r.push({inverse:i,styles:Rs(a)})}else if(c){if(0===r.length)throw new Error("Found extraneous } in Chalk template literal");o.push(js(e,r)(n.join(""))),n=[],r.pop()}else n.push(u)}),o.push(n.join("")),r.length>0)throw new Error(`Chalk template literal is missing ${r.length} closing bracket${1===r.length?"":"s"} (\`}\`)`);return o.join("")},Gs=b(function(e){const t=Ts.stdout,r="win32"===process.platform&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),o=["ansi","ansi","ansi256","ansi16m"],n=new Set(["gray"]),s=Object.create(null);function i(e,r){e.level=void 0===(r=r||{}).level?t?t.level:0:r.level,e.enabled="enabled"in r?r.enabled:e.level>0}function a(e){if(!this||!(this instanceof a)||this.template){const t={};return i(t,e),t.template=function(){const e=[].slice.call(arguments);return p.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,a.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=a,t.template}i(this,e)}r&&(ys.blue.open="");for(const e of Object.keys(ys))ys[e].closeRe=new RegExp(ls(ys[e].close),"g"),s[e]={get(){const t=ys[e];return u.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};s.visible={get(){return u.call(this,this._styles||[],!0,"visible")}},ys.color.closeRe=new RegExp(ls(ys.color.close),"g");for(const e of Object.keys(ys.color.ansi))n.has(e)||(s[e]={get(){const t=this.level;return function(){const r=ys.color[o[t]][e].apply(null,arguments),n={open:r,close:ys.color.close,closeRe:ys.color.closeRe};return u.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});ys.bgColor.closeRe=new RegExp(ls(ys.bgColor.close),"g");for(const e of Object.keys(ys.bgColor.ansi))n.has(e)||(s["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const t=this.level;return function(){const r=ys.bgColor[o[t]][e].apply(null,arguments),n={open:r,close:ys.bgColor.close,closeRe:ys.bgColor.closeRe};return u.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});const c=Object.defineProperties(()=>{},s);function u(e,t,r){const o=function(){return l.apply(o,arguments)};o._styles=e,o._empty=t;const n=this;return Object.defineProperty(o,"level",{enumerable:!0,get:()=>n.level,set(e){n.level=e}}),Object.defineProperty(o,"enabled",{enumerable:!0,get:()=>n.enabled,set(e){n.enabled=e}}),o.hasGrey=this.hasGrey||"gray"===r||"grey"===r,o.__proto__=c,o}function l(){const e=arguments,t=e.length;let o=String(arguments[0]);if(0===t)return"";if(t>1)for(let r=1;r{let r=e;return"string"==typeof t?r=e.toLocaleString(t):!0===t&&(r=e.toLocaleString()),r};var Ls=(e,t)=>{if(!Number.isFinite(e))throw new TypeError(`Expected a finite number, got ${typeof e}: ${e}`);const r=(t=Object.assign({bits:!1,binary:!1},t)).bits?t.binary?Ds:Us:t.binary?Is:Fs;if(t.signed&&0===e)return" 0 "+r[0];const o=e<0,n=o?"-":t.signed?"+":"";if(o&&(e=-e),e<1)return n+Ns(e,t.locale)+" "+r[0];const s=Math.min(Math.floor(t.binary?Math.log(e)/Math.log(1024):Math.log10(e)/3),r.length-1);return e=Number((e/Math.pow(t.binary?1024:1e3,s)).toPrecision(3)),n+Ns(e,t.locale)+" "+r[s]},Ms=b(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=u.promisify(o.readFile),n=e=>"string"==typeof e?Buffer.from(e,"utf8"):e,s=(e,t)=>({params:{[f.constants.BROTLI_PARAM_MODE]:e&&"mode"in e&&e.mode||f.constants.BROTLI_DEFAULT_MODE,[f.constants.BROTLI_PARAM_QUALITY]:e&&"quality"in e&&e.quality||f.constants.BROTLI_MAX_QUALITY,[f.constants.BROTLI_PARAM_SIZE_HINT]:t?t.byteLength:0}});async function i(e,t){const r=n(e);return new Promise(function(e,o){f.brotliCompress(r,s(t,r),(t,r)=>{null!==t&&o(t),e(r.byteLength)})})}function a(e,t){const r=n(e);return f.brotliCompressSync(r,s(t,r)).byteLength}t.default=i,t.sync=a,t.stream=function(e){const t=new l.PassThrough,r=new l.PassThrough,o=ns(t,r);let n=0;const i=f.createBrotliCompress(s(e)).on("data",e=>{n+=e.length}).on("error",()=>{o.brotliSize=0}).on("end",()=>{o.brotliSize=n,o.emit("brotli-size",n),r.end()});return t.pipe(i),t.pipe(r,{end:!1}),o},t.file=async function(e,t){const o=await r(e);return await i(o,t)},t.fileSync=function(e,t){return a(o.readFileSync(e),t)}}),Bs=function(e,t){return function(){for(var r=new Array(arguments.length),o=0;o0)return function(e){if(!((e=String(e)).length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*r;case"days":case"day":case"d":return r*fi;case"hours":case"hour":case"hrs":case"hr":case"h":return r*pi;case"minutes":case"minute":case"mins":case"min":case"m":return r*li;case"seconds":case"second":case"secs":case"sec":case"s":return r*ui;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}(e);if("number"===r&&!1===isNaN(e))return t.long?function(e){return hi(e,fi,"day")||hi(e,pi,"hour")||hi(e,li,"minute")||hi(e,ui,"second")||e+" ms"}(e):function(e){return e>=fi?Math.round(e/fi)+"d":e>=pi?Math.round(e/pi)+"h":e>=li?Math.round(e/li)+"m":e>=ui?Math.round(e/ui)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function hi(e,t,r){if(!(e=31||"{}".userAgent&&"{}".userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(r())}),yi=b(function(e,t){(t=e.exports=mi).init=function(e){e.inspectOpts={};for(var r=Object.keys(t.inspectOpts),o=0;o=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}function r(){return process.env.DEBUG}t.inspectOpts=Object.keys(process.env).filter(function(e){return/^debug_/i.test(e)}).reduce(function(e,t){var r=t.substring(6).toLowerCase().replace(/_([a-z])/g,function(e,t){return t.toUpperCase()}),o=process.env[t];return o=!!/^(yes|on|true|enabled)$/i.test(o)||!/^(no|off|false|disabled)$/i.test(o)&&("null"===o?null:Number(o)),e[r]=o,e},{}),t.formatters.o=function(e){return this.inspectOpts.colors=this.useColors,u.inspect(e,this.inspectOpts).split("\n").map(function(e){return e.trim()}).join(" ")},t.formatters.O=function(e){return this.inspectOpts.colors=this.useColors,u.inspect(e,this.inspectOpts)},t.enable(r())}),bi=b(function(e){e.exports="undefined"==typeof process||"renderer"===process.type?gi:yi}),wi=l.Writable,vi=bi("follow-redirects"),Ei={GET:!0,HEAD:!0,OPTIONS:!0,TRACE:!0},Ti=Object.create(null);function _i(e,t){wi.call(this),e.headers=e.headers||{},this._options=e,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e.host&&(e.hostname||(e.hostname=e.host),delete e.host),t&&this.on("response",t);var r=this;if(this._onNativeResponse=function(e){r._processResponse(e)},!e.pathname&&e.path){var o=e.path.indexOf("?");o<0?e.pathname=e.path:(e.pathname=e.path.substring(0,o),e.search=e.path.substring(o))}this._performRequest()}function Si(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach(function(o){var n=o+":",s=r[n]=e[o],i=t[o]=Object.create(s);i.request=function(e,o){return"string"==typeof e?(e=p.parse(e)).maxRedirects=t.maxRedirects:e=Object.assign({protocol:n,maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e),e.nativeProtocols=r,c.equal(e.protocol,n,"protocol mismatch"),vi("options",e),new _i(e,o)},i.get=function(e,t){var r=i.request(e,t);return r.end(),r}}),t}["abort","aborted","error","socket","timeout"].forEach(function(e){Ti[e]=function(t){this._redirectable.emit(e,t)}}),(_i.prototype=Object.create(wi.prototype)).write=function(e,t,r){if(!("string"==typeof e||"object"==typeof e&&"length"in e))throw new Error("data should be a string, Buffer or Uint8Array");"function"==typeof t&&(r=t,t=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new Error("Request body larger than maxBodyLength limit")),this.abort()):r&&r()},_i.prototype.end=function(e,t,r){"function"==typeof e?(r=e,e=t=null):"function"==typeof t&&(r=t,t=null);var o=this._currentRequest;this.write(e||"",t,function(){o.end(null,null,r)})},_i.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},_i.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},["abort","flushHeaders","getHeader","setNoDelay","setSocketKeepAlive","setTimeout"].forEach(function(e){_i.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}}),["aborted","connection","socket"].forEach(function(e){Object.defineProperty(_i.prototype,e,{get:function(){return this._currentRequest[e]}})}),_i.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(t){if(this._options.agents){var r=e.substr(0,e.length-1);this._options.agent=this._options.agents[r]}var o=this._currentRequest=t.request(this._options,this._onNativeResponse);for(var n in this._currentUrl=p.format(this._options),o._redirectable=this,Ti)n&&o.on(n,Ti[n]);if(this._isRedirect){var s=0,i=this._requestBodyBuffers;!function e(){if(s=300&&e.statusCode<400){if(++this._redirectCount>this._options.maxRedirects)return void this.emit("error",new Error("Max redirects exceeded."));var r,o=this._options.headers;if(307!==e.statusCode&&!(this._options.method in Ei))for(r in this._options.method="GET",this._requestBodyBuffers=[],o)/^content-/i.test(r)&&delete o[r];if(!this._isRedirect)for(r in o)/^host$/i.test(r)&&delete o[r];var n=p.resolve(this._currentUrl,t);vi("redirecting to",n),Object.assign(this._options,p.parse(n)),this._isRedirect=!0,this._performRequest(),e.destroy()}else e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[]};var Oi=Si({http:n,https:s});Oi.wrap=Si;var ki,Pi="Promise based HTTP client for the browser and node.js",Ai={test:"grunt test && bundlesize",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},Ci={type:"git",url:"https://github.com/axios/axios.git"},Ri=["xhr","http","ajax","promise","node"],ji={url:"https://github.com/axios/axios/issues"},xi="https://github.com/axios/axios",Gi={bundlesize:"^0.17.0",coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.0.2","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^20.1.0","grunt-karma":"^2.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^1.0.18","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^1.3.0","karma-chrome-launcher":"^2.2.0","karma-coverage":"^1.1.1","karma-firefox-launcher":"^1.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-opera-launcher":"^1.0.0","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^1.2.0","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^1.7.0","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^5.2.0",sinon:"^4.5.0",typescript:"^2.8.1","url-search-params":"^0.10.0",webpack:"^1.13.1","webpack-dev-server":"^1.14.1"},Fi={"./lib/adapters/http.js":"./lib/adapters/xhr.js"},Ii={"follow-redirects":"1.5.10"},Ui=[{path:"./dist/axios.min.js",threshold:"5kB"}],Di=(ki={__proto__:null,name:"axios",version:"0.19.2",description:Pi,main:"index.js",scripts:Ai,repository:Ci,keywords:Ri,author:"Matt Zabriskie",license:"MIT",bugs:ji,homepage:xi,devDependencies:Gi,browser:Fi,typings:"./index.d.ts",dependencies:Ii,bundlesize:Ui,default:{name:"axios",version:"0.19.2",description:Pi,main:"index.js",scripts:Ai,repository:Ci,keywords:Ri,author:"Matt Zabriskie",license:"MIT",bugs:ji,homepage:xi,devDependencies:Gi,browser:Fi,typings:"./index.d.ts",dependencies:Ii,bundlesize:Ui}})&&ki.default||ki,Ni=Oi.http,Li=Oi.https,Mi=/https:?/,Bi={"Content-Type":"application/x-www-form-urlencoded"};function qi(e,t){!Js.isUndefined(e)&&Js.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var $i,Hi={adapter:("undefined"!=typeof XMLHttpRequest?$i=function(e){return new Promise(function(t,r){var o=e.data,n=e.headers;Js.isFormData(o)&&delete n["Content-Type"];var s=new XMLHttpRequest;e.auth&&(n.Authorization="Basic "+btoa((e.auth.username||"")+":"+(e.auth.password||"")));var i=si(e.baseURL,e.url);if(s.open(e.method.toUpperCase(),Ks(i,e.params,e.paramsSerializer),!0),s.timeout=e.timeout,s.onreadystatechange=function(){if(s&&4===s.readyState&&(0!==s.status||s.responseURL&&0===s.responseURL.indexOf("file:"))){var o,n,i,a,c,u="getAllResponseHeaders"in s?(o=s.getAllResponseHeaders(),c={},o?(Js.forEach(o.split("\n"),function(e){if(a=e.indexOf(":"),n=Js.trim(e.substr(0,a)).toLowerCase(),i=Js.trim(e.substr(a+1)),n){if(c[n]&&ii.indexOf(n)>=0)return;c[n]="set-cookie"===n?(c[n]?c[n]:[]).concat([i]):c[n]?c[n]+", "+i:i}}),c):c):null;ni(t,r,{data:e.responseType&&"text"!==e.responseType?s.response:s.responseText,status:s.status,statusText:s.statusText,headers:u,config:e,request:s}),s=null}},s.onabort=function(){s&&(r(oi("Request aborted",e,"ECONNABORTED",s)),s=null)},s.onerror=function(){r(oi("Network Error",e,null,s)),s=null},s.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(oi(t,e,"ECONNABORTED",s)),s=null},Js.isStandardBrowserEnv()){var a=ci,c=(e.withCredentials||ai(i))&&e.xsrfCookieName?a.read(e.xsrfCookieName):void 0;c&&(n[e.xsrfHeaderName]=c)}if("setRequestHeader"in s&&Js.forEach(n,function(e,t){void 0===o&&"content-type"===t.toLowerCase()?delete n[t]:s.setRequestHeader(t,e)}),Js.isUndefined(e.withCredentials)||(s.withCredentials=!!e.withCredentials),e.responseType)try{s.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&s.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&s.upload&&s.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){s&&(s.abort(),r(e),s=null)}),void 0===o&&(o=null),s.send(o)})}:"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)&&($i=function(e){return new Promise(function(t,r){var o=function(e){t(e)},i=function(e){r(e)},a=e.data,c=e.headers;if(c["User-Agent"]||c["user-agent"]||(c["User-Agent"]="axios/"+Di.version),a&&!Js.isStream(a)){if(Buffer.isBuffer(a));else if(Js.isArrayBuffer(a))a=Buffer.from(new Uint8Array(a));else{if(!Js.isString(a))return i(oi("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));a=Buffer.from(a,"utf-8")}c["Content-Length"]=a.length}var u=void 0;e.auth&&(u=(e.auth.username||"")+":"+(e.auth.password||""));var l=si(e.baseURL,e.url),d=p.parse(l),h=d.protocol||"http:";if(!u&&d.auth){var m=d.auth.split(":");u=(m[0]||"")+":"+(m[1]||"")}u&&delete c.Authorization;var g=Mi.test(h),y=g?e.httpsAgent:e.httpAgent,b={path:Ks(d.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:c,agent:y,agents:{http:e.httpAgent,https:e.httpsAgent},auth:u};e.socketPath?b.socketPath=e.socketPath:(b.hostname=d.hostname,b.port=d.port);var w,v=e.proxy;if(!v&&!1!==v){var E=h.slice(0,-1)+"_proxy",T=process.env[E]||process.env[E.toUpperCase()];if(T){var _=p.parse(T),S=process.env.no_proxy||process.env.NO_PROXY,O=!0;if(S&&(O=!S.split(",").map(function(e){return e.trim()}).some(function(e){return!!e&&("*"===e||"."===e[0]&&d.hostname.substr(d.hostname.length-e.length)===e||d.hostname===e)})),O&&(v={host:_.hostname,port:_.port},_.auth)){var k=_.auth.split(":");v.auth={username:k[0],password:k[1]}}}}if(v&&(b.hostname=v.host,b.host=v.host,b.headers.host=d.hostname+(d.port?":"+d.port:""),b.port=v.port,b.path=h+"//"+d.hostname+(d.port?":"+d.port:"")+b.path,v.auth)){var P=Buffer.from(v.auth.username+":"+v.auth.password,"utf8").toString("base64");b.headers["Proxy-Authorization"]="Basic "+P}var A=g&&(!v||Mi.test(v.protocol));e.transport?w=e.transport:0===e.maxRedirects?w=A?s:n:(e.maxRedirects&&(b.maxRedirects=e.maxRedirects),w=A?Li:Ni),e.maxContentLength&&e.maxContentLength>-1&&(b.maxBodyLength=e.maxContentLength);var C=w.request(b,function(t){if(!C.aborted){var r=t;switch(t.headers["content-encoding"]){case"gzip":case"compress":case"deflate":r=204===t.statusCode?r:r.pipe(f.createUnzip()),delete t.headers["content-encoding"]}var n=t.req||C,s={status:t.statusCode,statusText:t.statusMessage,headers:t.headers,config:e,request:n};if("stream"===e.responseType)s.data=r,ni(o,i,s);else{var a=[];r.on("data",function(t){a.push(t),e.maxContentLength>-1&&Buffer.concat(a).length>e.maxContentLength&&(r.destroy(),i(oi("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,n)))}),r.on("error",function(t){C.aborted||i(ri(t,e,null,n))}),r.on("end",function(){var t=Buffer.concat(a);"arraybuffer"!==e.responseType&&(t=t.toString(e.responseEncoding)),s.data=t,ni(o,i,s)})}}});C.on("error",function(t){C.aborted||i(ri(t,e,null,C))}),e.timeout&&C.setTimeout(e.timeout,function(){C.abort(),i(oi("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",C))}),e.cancelToken&&e.cancelToken.promise.then(function(e){C.aborted||(C.abort(),i(e))}),Js.isStream(a)?a.on("error",function(t){i(ri(t,e,null,C))}).pipe(C):C.end(a)})}),$i),transformRequest:[function(e,t){return ti(t,"Accept"),ti(t,"Content-Type"),Js.isFormData(e)||Js.isArrayBuffer(e)||Js.isBuffer(e)||Js.isStream(e)||Js.isFile(e)||Js.isBlob(e)?e:Js.isArrayBufferView(e)?e.buffer:Js.isURLSearchParams(e)?(qi(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):Js.isObject(e)?(qi(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Js.forEach(["delete","get","head"],function(e){Hi.headers[e]={}}),Js.forEach(["post","put","patch"],function(e){Hi.headers[e]=Js.merge(Bi)});var zi=Hi;function Wi(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var Vi=function(e){return Wi(e),e.headers=e.headers||{},e.data=Xs(e.data,e.headers,e.transformRequest),e.headers=Js.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),Js.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||zi.adapter)(e).then(function(t){return Wi(e),t.data=Xs(t.data,t.headers,e.transformResponse),t},function(t){return ei(t)||(Wi(e),t&&t.response&&(t.response.data=Xs(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})},Ji=function(e,t){t=t||{};var r={},o=["url","method","params","data"],n=["headers","auth","proxy"],s=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];Js.forEach(o,function(e){void 0!==t[e]&&(r[e]=t[e])}),Js.forEach(n,function(o){Js.isObject(t[o])?r[o]=Js.deepMerge(e[o],t[o]):void 0!==t[o]?r[o]=t[o]:Js.isObject(e[o])?r[o]=Js.deepMerge(e[o]):void 0!==e[o]&&(r[o]=e[o])}),Js.forEach(s,function(o){void 0!==t[o]?r[o]=t[o]:void 0!==e[o]&&(r[o]=e[o])});var i=o.concat(n).concat(s),a=Object.keys(t).filter(function(e){return-1===i.indexOf(e)});return Js.forEach(a,function(o){void 0!==t[o]?r[o]=t[o]:void 0!==e[o]&&(r[o]=e[o])}),r};function Yi(e){this.defaults=e,this.interceptors={request:new Zs,response:new Zs}}Yi.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=Ji(this.defaults,e)).method=e.method?e.method.toLowerCase():this.defaults.method?this.defaults.method.toLowerCase():"get";var t=[Vi,void 0],r=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)r=r.then(t.shift(),t.shift());return r},Yi.prototype.getUri=function(e){return e=Ji(this.defaults,e),Ks(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},Js.forEach(["delete","get","head","options"],function(e){Yi.prototype[e]=function(t,r){return this.request(Js.merge(r||{},{method:e,url:t}))}}),Js.forEach(["post","put","patch"],function(e){Yi.prototype[e]=function(t,r,o){return this.request(Js.merge(o||{},{method:e,url:t,data:r}))}});var Ki=Yi;function Qi(e){this.message=e}Qi.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Qi.prototype.__CANCEL__=!0;var Zi=Qi;function Xi(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var r=this;e(function(e){r.reason||(r.reason=new Zi(e),t(r.reason))})}Xi.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},Xi.source=function(){var e;return{token:new Xi(function(t){e=t}),cancel:e}};var ea=Xi;function ta(e){var t=new Ki(e),r=Bs(Ki.prototype.request,t);return Js.extend(r,Ki.prototype,t),Js.extend(r,t),r}var ra=ta(zi);ra.Axios=Ki,ra.create=function(e){return ta(Ji(ra.defaults,e))},ra.Cancel=Zi,ra.CancelToken=ea,ra.isCancel=ei,ra.all=function(e){return Promise.all(e)},ra.spread=function(e){return function(t){return e.apply(null,t)}};var oa=ra;oa.default=ra;var na=oa;let sa,ia,aa,ca,ua,la,pa,fa,da,ha="github";if(process.env.TRAVIS)sa=process.env.TRAVIS_REPO_SLUG,ia=process.env.TRAVIS_PULL_REQUEST_SHA||process.env.TRAVIS_COMMIT,aa=process.env.TRAVIS_EVENT_TYPE,ca=process.env.TRAVIS_COMMIT_MESSAGE,ua=process.env.TRAVIS_PULL_REQUEST,fa=`https://travis-ci.org/${sa}/jobs/${process.env.TRAVIS_JOB_ID}`,da=`https://travis-ci.org/${sa}/builds/${process.env.TRAVIS_JOB_ID}`,la="push"===process.env.TRAVIS_EVENT_TYPE?process.env.TRAVIS_BRANCH:process.env.TRAVIS_PULL_REQUEST_BRANCH,pa="travis";else if(process.env.CIRCLECI)sa=process.env.CIRCLE_PROJECT_USERNAME+"/"+process.env.CIRCLE_PROJECT_REPONAME,ia=process.env.CIRCLE_SHA1,aa="push",ca="",process.env.CI_PULL_REQUEST?(ua=process.env.CI_PULL_REQUEST.split("/").pop(),aa="pull_request"):ua="",la=process.env.CIRCLE_BRANCH,pa="circle";else if(process.env.WERCKER)sa=process.env.WERCKER_GIT_OWNER+"/"+process.env.WERCKER_GIT_REPOSITORY,ia=process.env.WERCKER_GIT_COMMIT,aa="push",ca="",ua="",la=process.env.WERCKER_GIT_BRANCH,pa="wercker";else if(process.env.DRONE)sa=process.env.DRONE_REPO||process.env.CI_REPO||function(e){e||(e=process.env);let t=e.DRONE_REMOTE||e.CI_REMOTE;if(!t)return"";let r=t.split("/").slice(-2);return r[0]+"/"+r[1].replace(/\.git$/,"")}(process.env),ia=process.env.DRONE_COMMIT||process.env.CI_COMMIT,aa=process.env.DRONE_BUILD_EVENT||process.env.DRONE_EVENT||process.env.CI_EVENT||"push",ca="",ua=process.env.DRONE_PULL_REQUEST,la=process.env.DRONE_BRANCH||process.env.CI_BRANCH,pa="drone";else if(process.env.GITLAB_CI)sa=process.env.CI_PROJECT_PATH,la=process.env.CI_COMMIT_REF_NAME,ca=process.env.CI_COMMIT_MESSAGE,ua=process.env.CI_MERGE_REQUEST_ID||"",ia=process.env.CI_COMMIT_SHA,aa=process.env.CI_PIPELINE_SOURCE,fa=process.env.CI_JOB_URL,ha="gitlab",pa="gitlab";else if("codeship"===process.env.CI_NAME)sa=process.env.CI_REPO_NAME,la=process.env.CI_BRANCH,ca=process.env.CI_COMMIT_MESSAGE||process.env.CI_MESSAGE,aa="push",ua=process.env.CI_PR_NUMBER,ia=process.env.CI_COMMIT_ID,da=process.env.CI_BUILD_URL,pa="codeship";else if(process.env.GITHUB_ACTION){const e=process.env.GITHUB_REF.split("/")[2];sa=process.env.GITHUB_REPOSITORY,ia=process.env.GITHUB_SHA,aa=process.env.GITHUB_EVENT_NAME,ca="",ua="pull_request"===aa?e:"",la="pull_request"===aa?process.env.GITHUB_HEAD_REF:e,pa="github_actions"}else process.env.NETLIFY?(sa=process.env.REPOSITORY_URL.split("@github.com/").pop(),aa=process.env.PULL_REQUEST?"pull_request":"push",ua=process.env.PULL_REQUEST?process.env.REVIEW_ID:"",ia=process.env.COMMIT_REF,la=process.env.HEAD,pa="netlify"):process.env.NOW_GITHUB_ORG?(sa=process.env.NOW_GITHUB_ORG+"/"+process.env.NOW_GITHUB_REPO,aa="push",ua="",ia=process.env.NOW_GITHUB_COMMIT_SHA,la=process.env.NOW_GITHUB_COMMIT_REF,pa="now"):process.env.CI&&(sa=process.env.CI_REPO_OWNER+"/"+process.env.CI_REPO_NAME,ia=process.env.CI_COMMIT_SHA,aa=process.env.CI_EVENT||"push",ca=process.env.CI_COMMIT_MESSAGE,ua=process.env.CI_MERGE_REQUEST_ID,la=process.env.CI_BRANCH,pa="custom");var ma={repo:sa,sha:ia,event:aa,commit_message:ca,branch:la,pull_request_number:ua,ci:pa,platform:ha,jobUrl:fa,buildUrl:da};const{repo:ga,sha:ya,ci:ba}=ma,wa=process.env.SIZE_STORE_ENDPOINT||"https://size-store.now.sh";var va={publishDiff:async function(e,t){if("test"!==process.env.NODE_ENV&&ba)try{const r={ci:ba,repo:ga,sha:ya,filename:t,diff:e};await na.post(wa+"/diff",r)}catch(e){console.error("error: while publishing diff",e)}},publishSizes:async function(e,t){if("test"!==process.env.NODE_ENV&&ba)try{const r={ci:ba,repo:ga,sha:ya,filename:t,size:e};await na.post(wa+"/size",r)}catch(e){console.error("error: while publishing sizes",e)}}},Ea=function(e){return Object.defineProperty(function(){if("function"!=typeof arguments[arguments.length-1])return new Promise((t,r)=>{arguments[arguments.length]=(e,o)=>{if(e)return r(e);t(o)},arguments.length++,e.apply(this,arguments)});e.apply(this,arguments)},"name",{value:e.name})},Ta=process.cwd,_a=null,Sa=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return _a||(_a=Ta.call(process)),_a};try{process.cwd()}catch(e){}var Oa=process.chdir;process.chdir=function(e){_a=null,Oa.call(process,e)};var ka=l.Stream,Pa=b(function(e){var t,r;"function"==typeof Symbol&&"function"==typeof Symbol.for?(t=Symbol.for("graceful-fs.queue"),r=Symbol.for("graceful-fs.previous")):(t="___graceful-fs.queue",r="___graceful-fs.previous");var n=function(){};if(u.debuglog?n=u.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(n=function(){var e=u.format.apply(u,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),!g[t]){var s=[];Object.defineProperty(g,t,{get:function(){return s}}),o.close=function(e){function t(t,r){return e.call(o,t,function(e){e||l(),"function"==typeof r&&r.apply(this,arguments)})}return Object.defineProperty(t,r,{value:e}),t}(o.close),o.closeSync=function(e){function t(t){e.apply(o,arguments),l()}return Object.defineProperty(t,r,{value:e}),t}(o.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){n(g[t]),c.equal(g[t].length,0)})}function i(e){(function(e){var t,r;function o(t){return t?function(r,o,n){return t.call(e,r,o,function(e){u(e)&&(e=null),n&&n.apply(this,arguments)})}:t}function n(t){return t?function(r,o){try{return t.call(e,r,o)}catch(e){if(!u(e))throw e}}:t}function s(t){return t?function(r,o,n,s){return t.call(e,r,o,n,function(e){u(e)&&(e=null),s&&s.apply(this,arguments)})}:t}function i(t){return t?function(r,o,n){try{return t.call(e,r,o,n)}catch(e){if(!u(e))throw e}}:t}function a(t){return t?function(r,o,n){function s(e,t){t&&(t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296)),n&&n.apply(this,arguments)}return"function"==typeof o&&(n=o,o=null),o?t.call(e,r,o,s):t.call(e,r,s)}:t}function c(t){return t?function(r,o){var n=o?t.call(e,r,o):t.call(e,r);return n.uid<0&&(n.uid+=4294967296),n.gid<0&&(n.gid+=4294967296),n}:t}function u(e){return!e||"ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code)}m.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(e){e.lchmod=function(t,r,o){e.open(t,m.O_WRONLY|m.O_SYMLINK,r,function(t,n){t?o&&o(t):e.fchmod(n,r,function(t){e.close(n,function(e){o&&o(t||e)})})})},e.lchmodSync=function(t,r){var o,n=e.openSync(t,m.O_WRONLY|m.O_SYMLINK,r),s=!0;try{o=e.fchmodSync(n,r),s=!1}finally{if(s)try{e.closeSync(n)}catch(e){}else e.closeSync(n)}return o}}(e),e.lutimes||function(e){m.hasOwnProperty("O_SYMLINK")?(e.lutimes=function(t,r,o,n){e.open(t,m.O_SYMLINK,function(t,s){t?n&&n(t):e.futimes(s,r,o,function(t){e.close(s,function(e){n&&n(t||e)})})})},e.lutimesSync=function(t,r,o){var n,s=e.openSync(t,m.O_SYMLINK),i=!0;try{n=e.futimesSync(s,r,o),i=!1}finally{if(i)try{e.closeSync(s)}catch(e){}else e.closeSync(s)}return n}):(e.lutimes=function(e,t,r,o){o&&process.nextTick(o)},e.lutimesSync=function(){})}(e),e.chown=s(e.chown),e.fchown=s(e.fchown),e.lchown=s(e.lchown),e.chmod=o(e.chmod),e.fchmod=o(e.fchmod),e.lchmod=o(e.lchmod),e.chownSync=i(e.chownSync),e.fchownSync=i(e.fchownSync),e.lchownSync=i(e.lchownSync),e.chmodSync=n(e.chmodSync),e.fchmodSync=n(e.fchmodSync),e.lchmodSync=n(e.lchmodSync),e.stat=a(e.stat),e.fstat=a(e.fstat),e.lstat=a(e.lstat),e.statSync=c(e.statSync),e.fstatSync=c(e.fstatSync),e.lstatSync=c(e.lstatSync),e.lchmod||(e.lchmod=function(e,t,r){r&&process.nextTick(r)},e.lchmodSync=function(){}),e.lchown||(e.lchown=function(e,t,r,o){o&&process.nextTick(o)},e.lchownSync=function(){}),"win32"===Sa&&(e.rename=(t=e.rename,function(r,o,n){var s=Date.now(),i=0;t(r,o,function a(c){if(c&&("EACCES"===c.code||"EPERM"===c.code)&&Date.now()-s<6e4)return setTimeout(function(){e.stat(o,function(e,s){e&&"ENOENT"===e.code?t(r,o,a):n(c)})},i),void(i<100&&(i+=10));n&&n(c)})})),e.read=function(t){function r(r,o,n,s,i,a){var c;if(a&&"function"==typeof a){var u=0;c=function(l,p,f){if(l&&"EAGAIN"===l.code&&u<10)return u++,t.call(e,r,o,n,s,i,c);a.apply(this,arguments)}}return t.call(e,r,o,n,s,i,c)}return r.__proto__=t,r}(e.read),e.readSync=(r=e.readSync,function(t,o,n,s,i){for(var a=0;;)try{return r.call(e,t,o,n,s,i)}catch(e){if("EAGAIN"===e.code&&a<10){a++;continue}throw e}})})(e),e.gracefulify=i,e.createReadStream=function(t,r){return new e.ReadStream(t,r)},e.createWriteStream=function(t,r){return new e.WriteStream(t,r)};var t=e.readFile;e.readFile=function(e,r,o){return"function"==typeof r&&(o=r,r=null),function e(r,o,n){return t(r,o,function(t){!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?("function"==typeof n&&n.apply(this,arguments),l()):a([e,[r,o,n]])})}(e,r,o)};var r=e.writeFile;e.writeFile=function(e,t,o,n){return"function"==typeof o&&(n=o,o=null),function e(t,o,n,s){return r(t,o,n,function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?("function"==typeof s&&s.apply(this,arguments),l()):a([e,[t,o,n,s]])})}(e,t,o,n)};var o=e.appendFile;o&&(e.appendFile=function(e,t,r,n){return"function"==typeof r&&(n=r,r=null),function e(t,r,n,s){return o(t,r,n,function(o){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?("function"==typeof s&&s.apply(this,arguments),l()):a([e,[t,r,n,s]])})}(e,t,r,n)});var n=e.readdir;function s(t){return n.apply(e,t)}if(e.readdir=function(e,t,r){var o=[e];return"function"!=typeof t?o.push(t):r=t,o.push(function(e,t){t&&t.sort&&t.sort(),!e||"EMFILE"!==e.code&&"ENFILE"!==e.code?("function"==typeof r&&r.apply(this,arguments),l()):a([s,[o]])}),s(o)},"v0.8"===process.version.substr(0,4)){var c=function(e){return{ReadStream:function t(r,o){if(!(this instanceof t))return new t(r,o);ka.call(this);var n=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,o=o||{};for(var s=Object.keys(o),i=0,a=s.length;ithis.end)throw new Error("start must be <= end");this.pos=this.start}null===this.fd?e.open(this.path,this.flags,this.mode,function(e,t){if(e)return n.emit("error",e),void(n.readable=!1);n.fd=t,n.emit("open",t),n._read()}):process.nextTick(function(){n._read()})},WriteStream:function t(r,o){if(!(this instanceof t))return new t(r,o);ka.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,o=o||{};for(var n=Object.keys(o),s=0,i=n.length;s= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}(e);h=c.ReadStream,g=c.WriteStream}var u=e.ReadStream;u&&(h.prototype=Object.create(u.prototype),h.prototype.open=function(){var e=this;b(e.path,e.flags,e.mode,function(t,r){t?(e.autoClose&&e.destroy(),e.emit("error",t)):(e.fd=r,e.emit("open",r),e.read())})});var p=e.WriteStream;p&&(g.prototype=Object.create(p.prototype),g.prototype.open=function(){var e=this;b(e.path,e.flags,e.mode,function(t,r){t?(e.destroy(),e.emit("error",t)):(e.fd=r,e.emit("open",r))})}),Object.defineProperty(e,"ReadStream",{get:function(){return h},set:function(e){h=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return g},set:function(e){g=e},enumerable:!0,configurable:!0});var f=h;Object.defineProperty(e,"FileReadStream",{get:function(){return f},set:function(e){f=e},enumerable:!0,configurable:!0});var d=g;function h(e,t){return this instanceof h?(u.apply(this,arguments),this):h.apply(Object.create(h.prototype),arguments)}function g(e,t){return this instanceof g?(p.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}Object.defineProperty(e,"FileWriteStream",{get:function(){return d},set:function(e){d=e},enumerable:!0,configurable:!0});var y=e.open;function b(e,t,r,o){return"function"==typeof r&&(o=r,r=null),function e(t,r,o,n){return y(t,r,o,function(s,i){!s||"EMFILE"!==s.code&&"ENFILE"!==s.code?("function"==typeof n&&n.apply(this,arguments),l()):a([e,[t,r,o,n]])})}(e,t,r,o)}return e.open=b,e}function a(e){n("ENQUEUE",e[0].name,e[1]),g[t].push(e)}function l(){var e=g[t].shift();e&&(n("RETRY",e[0].name,e[1]),e[0].apply(null,e[1]))}e.exports=i(function(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Object)var t={__proto__:e.__proto__};else t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}(o)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!o.__patched&&(e.exports=i(o),o.__patched=!0)}),Aa=b(function(e,t){const r=Ea,o=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchown","lchmod","link","lstat","mkdir","mkdtemp","open","readFile","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(e=>"function"==typeof Pa[e]);Object.keys(Pa).forEach(e=>{"promises"!==e&&(t[e]=Pa[e])}),o.forEach(e=>{t[e]=r(Pa[e])}),t.exists=function(e,t){return"function"==typeof t?Pa.exists(e,t):new Promise(t=>Pa.exists(e,t))},t.read=function(e,t,r,o,n,s){return"function"==typeof s?Pa.read(e,t,r,o,n,s):new Promise((s,i)=>{Pa.read(e,t,r,o,n,(e,t,r)=>{if(e)return i(e);s({bytesRead:t,buffer:r})})})},t.write=function(e,t,...r){return"function"==typeof r[r.length-1]?Pa.write(e,t,...r):new Promise((o,n)=>{Pa.write(e,t,...r,(e,t,r)=>{if(e)return n(e);o({bytesWritten:t,buffer:r})})})},"function"==typeof Pa.realpath.native&&(t.realpath.native=r(Pa.realpath.native))});const Ca=/[<>:"|?*]/;var Ra=function(e){const r=function(e){return(e=t.normalize(t.resolve(e)).split(t.sep)).length>0?e[0]:null}(e);return e=e.replace(r,""),Ca.test(e)};const ja=Ra,xa=parseInt("0777",8),Ga=Ra,Fa=parseInt("0777",8);var Ia=function e(r,o,n){o&&"object"==typeof o||(o={mode:o});let s=o.mode;const i=o.fs||Pa;if("win32"===process.platform&&Ga(r)){const e=new Error(r+" contains invalid WIN32 path characters.");throw e.code="EINVAL",e}void 0===s&&(s=Fa&~process.umask()),n||(n=null),r=t.resolve(r);try{i.mkdirSync(r,s),n=n||r}catch(s){if("ENOENT"===s.code){if(t.dirname(r)===r)throw s;n=e(t.dirname(r),o,n),e(r,o,n)}else{let e;try{e=i.statSync(r)}catch(e){throw s}if(!e.isDirectory())throw s}}return n};const Ua=Ea(function e(r,o,n,s){if("function"==typeof o?(n=o,o={}):o&&"object"==typeof o||(o={mode:o}),"win32"===process.platform&&ja(r)){const e=new Error(r+" contains invalid WIN32 path characters.");return e.code="EINVAL",n(e)}let i=o.mode;const a=o.fs||Pa;void 0===i&&(i=xa&~process.umask()),s||(s=null),n=n||function(){},r=t.resolve(r),a.mkdir(r,i,i=>{if(!i)return n(null,s=s||r);switch(i.code){case"ENOENT":if(t.dirname(r)===r)return n(i);e(t.dirname(r),o,(t,s)=>{t?n(t,s):e(r,o,n,s)});break;default:a.stat(r,(e,t)=>{e||!t.isDirectory()?n(i,s):n(null,s)})}})});var Da={mkdirs:Ua,mkdirsSync:Ia,mkdirp:Ua,mkdirpSync:Ia,ensureDir:Ua,ensureDirSync:Ia};const Na=process.versions.node.split("."),La=Number.parseInt(Na[0],10),Ma=Number.parseInt(Na[1],10),Ba=Number.parseInt(Na[2],10);function qa(){if(La>10)return!0;if(10===La){if(Ma>5)return!0;if(5===Ma&&Ba>=0)return!0}return!1}function $a(e,r){const o=t.resolve(e).split(t.sep).filter(e=>e),n=t.resolve(r).split(t.sep).filter(e=>e);return o.reduce((e,t,r)=>e&&n[r]===t,!0)}function Ha(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}var za={checkPaths:function(e,t,r,o){!function(e,t,r){qa()?Pa.stat(e,{bigint:!0},(e,o)=>{if(e)return r(e);Pa.stat(t,{bigint:!0},(e,t)=>e?"ENOENT"===e.code?r(null,{srcStat:o,destStat:null}):r(e):r(null,{srcStat:o,destStat:t}))}):Pa.stat(e,(e,o)=>{if(e)return r(e);Pa.stat(t,(e,t)=>e?"ENOENT"===e.code?r(null,{srcStat:o,destStat:null}):r(e):r(null,{srcStat:o,destStat:t}))})}(e,t,(n,s)=>{if(n)return o(n);const{srcStat:i,destStat:a}=s;return a&&a.ino&&a.dev&&a.ino===i.ino&&a.dev===i.dev?o(new Error("Source and destination must not be the same.")):i.isDirectory()&&$a(e,t)?o(new Error(Ha(e,t,r))):o(null,{srcStat:i,destStat:a})})},checkPathsSync:function(e,t,r){const{srcStat:o,destStat:n}=function(e,t){let r,o;r=qa()?Pa.statSync(e,{bigint:!0}):Pa.statSync(e);try{o=qa()?Pa.statSync(t,{bigint:!0}):Pa.statSync(t)}catch(e){if("ENOENT"===e.code)return{srcStat:r,destStat:null};throw e}return{srcStat:r,destStat:o}}(e,t);if(n&&n.ino&&n.dev&&n.ino===o.ino&&n.dev===o.dev)throw new Error("Source and destination must not be the same.");if(o.isDirectory()&&$a(e,t))throw new Error(Ha(e,t,r));return{srcStat:o,destStat:n}},checkParentPaths:function e(r,o,n,s,i){const a=t.resolve(t.dirname(r)),c=t.resolve(t.dirname(n));if(c===a||c===t.parse(c).root)return i();qa()?Pa.stat(c,{bigint:!0},(t,a)=>t?"ENOENT"===t.code?i():i(t):a.ino&&a.dev&&a.ino===o.ino&&a.dev===o.dev?i(new Error(Ha(r,n,s))):e(r,o,c,s,i)):Pa.stat(c,(t,a)=>t?"ENOENT"===t.code?i():i(t):a.ino&&a.dev&&a.ino===o.ino&&a.dev===o.dev?i(new Error(Ha(r,n,s))):e(r,o,c,s,i))},checkParentPathsSync:function e(r,o,n,s){const i=t.resolve(t.dirname(r)),a=t.resolve(t.dirname(n));if(a===i||a===t.parse(a).root)return;let c;try{c=qa()?Pa.statSync(a,{bigint:!0}):Pa.statSync(a)}catch(e){if("ENOENT"===e.code)return;throw e}if(c.ino&&c.dev&&c.ino===o.ino&&c.dev===o.dev)throw new Error(Ha(r,n,s));return e(r,o,a,s)},isSrcSubdir:$a};const Wa=Da.mkdirsSync;function Va(e,r,o,n){if(!n.filter||n.filter(r,o))return function(e,r,o,n){const s=(n.dereference?Pa.statSync:Pa.lstatSync)(r);return s.isDirectory()?function(e,t,r,o,n){if(!t)return function(e,t,r,o){return Pa.mkdirSync(r),Ya(t,r,o),Pa.chmodSync(r,e.mode)}(e,r,o,n);if(t&&!t.isDirectory())throw new Error(`Cannot overwrite non-directory '${o}' with directory '${r}'.`);return Ya(r,o,n)}(s,e,r,o,n):s.isFile()||s.isCharacterDevice()||s.isBlockDevice()?function(e,t,r,o,n){return t?function(e,t,r,o){if(o.overwrite)return Pa.unlinkSync(r),Ja(e,t,r,o);if(o.errorOnExist)throw new Error(`'${r}' already exists`)}(e,r,o,n):Ja(e,r,o,n)}(s,e,r,o,n):s.isSymbolicLink()?function(e,r,o,n){let s=Pa.readlinkSync(r);if(n.dereference&&(s=t.resolve(process.cwd(),s)),e){let e;try{e=Pa.readlinkSync(o)}catch(e){if("EINVAL"===e.code||"UNKNOWN"===e.code)return Pa.symlinkSync(s,o);throw e}if(n.dereference&&(e=t.resolve(process.cwd(),e)),za.isSrcSubdir(s,e))throw new Error(`Cannot copy '${s}' to a subdirectory of itself, '${e}'.`);if(Pa.statSync(o).isDirectory()&&za.isSrcSubdir(e,s))throw new Error(`Cannot overwrite '${e}' with '${s}'.`);return function(e,t){return Pa.unlinkSync(t),Pa.symlinkSync(e,t)}(s,o)}return Pa.symlinkSync(s,o)}(e,r,o,n):void 0}(e,r,o,n)}function Ja(e,t,r,o){return"function"==typeof Pa.copyFileSync?(Pa.copyFileSync(t,r),Pa.chmodSync(r,e.mode),o.preserveTimestamps?function(e,t,r){const o=Pa.openSync(e,"r+");return Pa.futimesSync(o,t,r),Pa.closeSync(o)}(r,e.atime,e.mtime):void 0):function(e,t,r,o){const n=function(e){if("function"==typeof Buffer.allocUnsafe)try{return Buffer.allocUnsafe(65536)}catch(e){return new Buffer(65536)}return new Buffer(65536)}(),s=Pa.openSync(t,"r"),i=Pa.openSync(r,"w",e.mode);let a=0;for(;afunction(e,r,o,n){const s=t.join(r,e),i=t.join(o,e),{destStat:a}=za.checkPathsSync(s,i,"copy");return Va(a,s,i,n)}(n,e,r,o))}var Ka,Qa={copySync:function(e,r,o){"function"==typeof o&&(o={filter:o}),(o=o||{}).clobber=!("clobber"in o)||!!o.clobber,o.overwrite="overwrite"in o?!!o.overwrite:o.clobber,o.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269");const{srcStat:n,destStat:s}=za.checkPathsSync(e,r,"copy");return za.checkParentPathsSync(e,n,r,"copy"),function(e,r,o,n){if(n.filter&&!n.filter(r,o))return;const s=t.dirname(o);return Pa.existsSync(s)||Wa(s),Va(e,r,o,n)}(s,e,r,o)}},Za={pathExists:(Ka=function(e){return Aa.access(e).then(()=>!0).catch(()=>!1)},Object.defineProperty(function(){const e=arguments[arguments.length-1];if("function"!=typeof e)return Ka.apply(this,arguments);Ka.apply(this,arguments).then(t=>e(null,t),e)},"name",{value:Ka.name})),pathExistsSync:Aa.existsSync};const Xa=Da.mkdirs,ec=Za.pathExists;function tc(e,r,o,n,s){const i=t.dirname(o);ec(i,(t,a)=>t?s(t):a?oc(e,r,o,n,s):void Xa(i,t=>t?s(t):oc(e,r,o,n,s)))}function rc(e,t,r,o,n,s){Promise.resolve(n.filter(r,o)).then(i=>i?e(t,r,o,n,s):s(),e=>s(e))}function oc(e,t,r,o,n){return o.filter?rc(nc,e,t,r,o,n):nc(e,t,r,o,n)}function nc(e,r,o,n,s){(n.dereference?Pa.stat:Pa.lstat)(r,(i,a)=>i?s(i):a.isDirectory()?function(e,t,r,o,n,s){return t?t&&!t.isDirectory()?s(new Error(`Cannot overwrite non-directory '${o}' with directory '${r}'.`)):ac(r,o,n,s):function(e,t,r,o,n){Pa.mkdir(r,s=>{if(s)return n(s);ac(t,r,o,t=>t?n(t):Pa.chmod(r,e.mode,n))})}(e,r,o,n,s)}(a,e,r,o,n,s):a.isFile()||a.isCharacterDevice()||a.isBlockDevice()?function(e,t,r,o,n,s){return t?function(e,t,r,o,n){if(!o.overwrite)return o.errorOnExist?n(new Error(`'${r}' already exists`)):n();Pa.unlink(r,s=>s?n(s):sc(e,t,r,o,n))}(e,r,o,n,s):sc(e,r,o,n,s)}(a,e,r,o,n,s):a.isSymbolicLink()?function(e,r,o,n,s){Pa.readlink(r,(r,i)=>r?s(r):(n.dereference&&(i=t.resolve(process.cwd(),i)),e?void Pa.readlink(o,(r,a)=>r?"EINVAL"===r.code||"UNKNOWN"===r.code?Pa.symlink(i,o,s):s(r):(n.dereference&&(a=t.resolve(process.cwd(),a)),za.isSrcSubdir(i,a)?s(new Error(`Cannot copy '${i}' to a subdirectory of itself, '${a}'.`)):e.isDirectory()&&za.isSrcSubdir(a,i)?s(new Error(`Cannot overwrite '${a}' with '${i}'.`)):function(e,t,r){Pa.unlink(t,o=>o?r(o):Pa.symlink(e,t,r))}(i,o,s))):Pa.symlink(i,o,s)))}(e,r,o,n,s):void 0)}function sc(e,t,r,o,n){return"function"==typeof Pa.copyFile?Pa.copyFile(t,r,t=>t?n(t):ic(e,r,o,n)):function(e,t,r,o,n){const s=Pa.createReadStream(t);s.on("error",e=>n(e)).once("open",()=>{const t=Pa.createWriteStream(r,{mode:e.mode});t.on("error",e=>n(e)).on("open",()=>s.pipe(t)).once("close",()=>ic(e,r,o,n))})}(e,t,r,o,n)}function ic(e,t,r,o){Pa.chmod(t,e.mode,n=>n?o(n):r.preserveTimestamps?function(e,t,r,o){Pa.open(e,"r+",(e,n)=>{if(e)return o(e);Pa.futimes(n,t,r,e=>{Pa.close(n,t=>{o&&o(e||t)})})})}(t,e.atime,e.mtime,o):o())}function ac(e,r,o,n){Pa.readdir(e,(s,i)=>s?n(s):function e(r,o,n,s,i){const a=r.pop();return a?function(r,o,n,s,i,a){const c=t.join(n,o),u=t.join(s,o);za.checkPaths(c,u,"copy",(t,o)=>{if(t)return a(t);const{destStat:l}=o;oc(l,c,u,i,t=>t?a(t):e(r,n,s,i,a))})}(r,a,o,n,s,i):i()}(i,e,r,o,n))}var cc={copy:Ea(function(e,t,r,o){"function"!=typeof r||o?"function"==typeof r&&(r={filter:r}):(o=r,r={}),o=o||function(){},(r=r||{}).clobber=!("clobber"in r)||!!r.clobber,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269"),za.checkPaths(e,t,"copy",(n,s)=>{if(n)return o(n);const{srcStat:i,destStat:a}=s;za.checkParentPaths(e,i,t,"copy",n=>n?o(n):r.filter?rc(tc,a,e,t,r,o):tc(a,e,t,r,o))})})};const uc="win32"===process.platform;function lc(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(t=>{e[t]=e[t]||Pa[t],e[t+="Sync"]=e[t]||Pa[t]}),e.maxBusyTries=e.maxBusyTries||3}function pc(e,t,r){let o=0;"function"==typeof t&&(r=t,t={}),c(e,"rimraf: missing path"),c.strictEqual(typeof e,"string","rimraf: path should be a string"),c.strictEqual(typeof r,"function","rimraf: callback function required"),c(t,"rimraf: invalid options argument provided"),c.strictEqual(typeof t,"object","rimraf: options should be object"),lc(t),fc(e,t,function n(s){if(s){if(("EBUSY"===s.code||"ENOTEMPTY"===s.code||"EPERM"===s.code)&&ofc(e,t,n),100*o);"ENOENT"===s.code&&(s=null)}r(s)})}function fc(e,t,r){c(e),c(t),c("function"==typeof r),t.lstat(e,(o,n)=>o&&"ENOENT"===o.code?r(null):o&&"EPERM"===o.code&&uc?dc(e,t,o,r):n&&n.isDirectory()?mc(e,t,o,r):void t.unlink(e,o=>{if(o){if("ENOENT"===o.code)return r(null);if("EPERM"===o.code)return uc?dc(e,t,o,r):mc(e,t,o,r);if("EISDIR"===o.code)return mc(e,t,o,r)}return r(o)}))}function dc(e,t,r,o){c(e),c(t),c("function"==typeof o),r&&c(r instanceof Error),t.chmod(e,438,n=>{n?o("ENOENT"===n.code?null:r):t.stat(e,(n,s)=>{n?o("ENOENT"===n.code?null:r):s.isDirectory()?mc(e,t,r,o):t.unlink(e,o)})})}function hc(e,t,r){let o;c(e),c(t),r&&c(r instanceof Error);try{t.chmodSync(e,438)}catch(e){if("ENOENT"===e.code)return;throw r}try{o=t.statSync(e)}catch(e){if("ENOENT"===e.code)return;throw r}o.isDirectory()?yc(e,t,r):t.unlinkSync(e)}function mc(e,r,o,n){c(e),c(r),o&&c(o instanceof Error),c("function"==typeof n),r.rmdir(e,s=>{!s||"ENOTEMPTY"!==s.code&&"EEXIST"!==s.code&&"EPERM"!==s.code?n(s&&"ENOTDIR"===s.code?o:s):function(e,r,o){c(e),c(r),c("function"==typeof o),r.readdir(e,(n,s)=>{if(n)return o(n);let i,a=s.length;if(0===a)return r.rmdir(e,o);s.forEach(n=>{pc(t.join(e,n),r,t=>{if(!i)return t?o(i=t):void(0==--a&&r.rmdir(e,o))})})})}(e,r,n)})}function gc(e,t){let r;lc(t=t||{}),c(e,"rimraf: missing path"),c.strictEqual(typeof e,"string","rimraf: path should be a string"),c(t,"rimraf: missing options"),c.strictEqual(typeof t,"object","rimraf: options should be object");try{r=t.lstatSync(e)}catch(r){if("ENOENT"===r.code)return;"EPERM"===r.code&&uc&&hc(e,t,r)}try{r&&r.isDirectory()?yc(e,t,null):t.unlinkSync(e)}catch(r){if("ENOENT"===r.code)return;if("EPERM"===r.code)return uc?hc(e,t,r):yc(e,t,r);if("EISDIR"!==r.code)throw r;yc(e,t,r)}}function yc(e,r,o){c(e),c(r),o&&c(o instanceof Error);try{r.rmdirSync(e)}catch(n){if("ENOTDIR"===n.code)throw o;if("ENOTEMPTY"===n.code||"EEXIST"===n.code||"EPERM"===n.code)!function(e,r){if(c(e),c(r),r.readdirSync(e).forEach(o=>gc(t.join(e,o),r)),!uc)return r.rmdirSync(e,r);{const t=Date.now();do{try{return r.rmdirSync(e,r)}catch(e){}}while(Date.now()-t<500)}}(e,r);else if("ENOENT"!==n.code)throw n}}var bc=pc;pc.sync=gc;var wc={remove:Ea(bc),removeSync:bc.sync};const vc=Ea(function(e,r){r=r||function(){},Pa.readdir(e,(o,n)=>{if(o)return Da.mkdirs(e,r);n=n.map(r=>t.join(e,r)),function e(){const t=n.pop();if(!t)return r();wc.remove(t,t=>{if(t)return r(t);e()})}()})});function Ec(e){let r;try{r=Pa.readdirSync(e)}catch(t){return Da.mkdirsSync(e)}r.forEach(r=>{r=t.join(e,r),wc.removeSync(r)})}var Tc={emptyDirSync:Ec,emptydirSync:Ec,emptyDir:vc,emptydir:vc};const _c=Za.pathExists;var Sc={createFile:Ea(function(e,r){function o(){Pa.writeFile(e,"",e=>{if(e)return r(e);r()})}Pa.stat(e,(n,s)=>{if(!n&&s.isFile())return r();const i=t.dirname(e);_c(i,(e,t)=>e?r(e):t?o():void Da.mkdirs(i,e=>{if(e)return r(e);o()}))})}),createFileSync:function(e){let r;try{r=Pa.statSync(e)}catch(e){}if(r&&r.isFile())return;const o=t.dirname(e);Pa.existsSync(o)||Da.mkdirsSync(o),Pa.writeFileSync(e,"")}};const Oc=Za.pathExists;var kc={createLink:Ea(function(e,r,o){function n(e,t){Pa.link(e,t,e=>{if(e)return o(e);o(null)})}Oc(r,(s,i)=>s?o(s):i?o(null):void Pa.lstat(e,s=>{if(s)return s.message=s.message.replace("lstat","ensureLink"),o(s);const i=t.dirname(r);Oc(i,(t,s)=>t?o(t):s?n(e,r):void Da.mkdirs(i,t=>{if(t)return o(t);n(e,r)}))}))}),createLinkSync:function(e,r){if(Pa.existsSync(r))return;try{Pa.lstatSync(e)}catch(e){throw e.message=e.message.replace("lstat","ensureLink"),e}const o=t.dirname(r);return Pa.existsSync(o)||Da.mkdirsSync(o),Pa.linkSync(e,r)}};const Pc=Za.pathExists,Ac=Da.mkdirs,Cc=Da.mkdirsSync,Rc=Za.pathExists;var jc,xc={createSymlink:Ea(function(e,r,o,n){n="function"==typeof o?o:n,o="function"!=typeof o&&o,Rc(r,(s,i)=>s?n(s):i?n(null):void function(e,r,o){if(t.isAbsolute(e))return Pa.lstat(e,t=>t?(t.message=t.message.replace("lstat","ensureSymlink"),o(t)):o(null,{toCwd:e,toDst:e}));{const n=t.dirname(r),s=t.join(n,e);Pc(s,(r,i)=>r?o(r):i?o(null,{toCwd:s,toDst:e}):Pa.lstat(e,r=>r?(r.message=r.message.replace("lstat","ensureSymlink"),o(r)):o(null,{toCwd:e,toDst:t.relative(n,e)})))}}(e,r,(s,i)=>{if(s)return n(s);e=i.toDst,function(e,t,r){if(r="function"==typeof t?t:r,t="function"!=typeof t&&t)return r(null,t);Pa.lstat(e,(e,o)=>{if(e)return r(null,"file");t=o&&o.isDirectory()?"dir":"file",r(null,t)})}(i.toCwd,o,(o,s)=>{if(o)return n(o);const i=t.dirname(r);Rc(i,(t,o)=>t?n(t):o?Pa.symlink(e,r,s,n):void Ac(i,t=>{if(t)return n(t);Pa.symlink(e,r,s,n)}))})}))}),createSymlinkSync:function(e,r,o){if(Pa.existsSync(r))return;const n=function(e,r){let o;if(t.isAbsolute(e)){if(o=Pa.existsSync(e),!o)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}{const n=t.dirname(r),s=t.join(n,e);if(o=Pa.existsSync(s),o)return{toCwd:s,toDst:e};if(o=Pa.existsSync(e),!o)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:t.relative(n,e)}}}(e,r);e=n.toDst,o=function(e,t){let r;if(t)return t;try{r=Pa.lstatSync(e)}catch(e){return"file"}return r&&r.isDirectory()?"dir":"file"}(n.toCwd,o);const s=t.dirname(r);return Pa.existsSync(s)||Cc(s),Pa.symlinkSync(e,r,o)}},Gc={createFile:Sc.createFile,createFileSync:Sc.createFileSync,ensureFile:Sc.createFile,ensureFileSync:Sc.createFileSync,createLink:kc.createLink,createLinkSync:kc.createLinkSync,ensureLink:kc.createLink,ensureLinkSync:kc.createLinkSync,createSymlink:xc.createSymlink,createSymlinkSync:xc.createSymlinkSync,ensureSymlink:xc.createSymlink,ensureSymlinkSync:xc.createSymlinkSync};try{jc=Pa}catch(e){jc=o}function Fc(e,t){var r,o="\n";return"object"==typeof t&&null!==t&&(t.spaces&&(r=t.spaces),t.EOL&&(o=t.EOL)),JSON.stringify(e,t?t.replacer:null,r).replace(/\n/g,o)+o}function Ic(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}var Uc={readFile:function(e,t,r){null==r&&(r=t,t={}),"string"==typeof t&&(t={encoding:t});var o=!0;"throws"in(t=t||{})&&(o=t.throws),(t.fs||jc).readFile(e,t,function(n,s){if(n)return r(n);var i;s=Ic(s);try{i=JSON.parse(s,t?t.reviver:null)}catch(t){return o?(t.message=e+": "+t.message,r(t)):r(null,null)}r(null,i)})},readFileSync:function(e,t){"string"==typeof(t=t||{})&&(t={encoding:t});var r=t.fs||jc,o=!0;"throws"in t&&(o=t.throws);try{var n=r.readFileSync(e,t);return n=Ic(n),JSON.parse(n,t.reviver)}catch(t){if(o)throw t.message=e+": "+t.message,t;return null}},writeFile:function(e,t,r,o){null==o&&(o=r,r={});var n=(r=r||{}).fs||jc,s="";try{s=Fc(t,r)}catch(e){return void(o&&o(e,null))}n.writeFile(e,s,r,o)},writeFileSync:function(e,t,r){var o=(r=r||{}).fs||jc,n=Fc(t,r);return o.writeFileSync(e,n,r)}};const Dc=Ea;var Nc={readJson:Dc(Uc.readFile),readJsonSync:Uc.readFileSync,writeJson:Dc(Uc.writeFile),writeJsonSync:Uc.writeFileSync};const Lc=Za.pathExists;Nc.outputJson=Ea(function(e,r,o,n){"function"==typeof o&&(n=o,o={});const s=t.dirname(e);Lc(s,(t,i)=>t?n(t):i?Nc.writeJson(e,r,o,n):void Da.mkdirs(s,t=>{if(t)return n(t);Nc.writeJson(e,r,o,n)}))}),Nc.outputJsonSync=function(e,r,o){const n=t.dirname(e);Pa.existsSync(n)||Da.mkdirsSync(n),Nc.writeJsonSync(e,r,o)},Nc.outputJSON=Nc.outputJson,Nc.outputJSONSync=Nc.outputJsonSync,Nc.writeJSON=Nc.writeJson,Nc.writeJSONSync=Nc.writeJsonSync,Nc.readJSON=Nc.readJson,Nc.readJSONSync=Nc.readJsonSync;var Mc=Nc;const Bc=Qa.copySync,qc=wc.removeSync,$c=Da.mkdirpSync;function Hc(e,t,r){try{Pa.renameSync(e,t)}catch(o){if("EXDEV"!==o.code)throw o;return function(e,t,r){return Bc(e,t,{overwrite:r,errorOnExist:!0}),qc(e)}(e,t,r)}}var zc={moveSync:function(e,r,o){const n=(o=o||{}).overwrite||o.clobber||!1,{srcStat:s}=za.checkPathsSync(e,r,"move");return za.checkParentPathsSync(e,s,r,"move"),$c(t.dirname(r)),function(e,t,r){if(r)return qc(t),Hc(e,t,r);if(Pa.existsSync(t))throw new Error("dest already exists.");return Hc(e,t,r)}(e,r,n)}};const Wc=cc.copy,Vc=wc.remove,Jc=Da.mkdirp,Yc=Za.pathExists;function Kc(e,t,r,o){Pa.rename(e,t,n=>n?"EXDEV"!==n.code?o(n):function(e,t,r,o){Wc(e,t,{overwrite:r,errorOnExist:!0},t=>t?o(t):Vc(e,o))}(e,t,r,o):o())}var Qc={move:Ea(function(e,r,o,n){"function"==typeof o&&(n=o,o={});const s=o.overwrite||o.clobber||!1;za.checkPaths(e,r,"move",(o,i)=>{if(o)return n(o);const{srcStat:a}=i;za.checkParentPaths(e,a,r,"move",o=>{if(o)return n(o);Jc(t.dirname(r),t=>t?n(t):function(e,t,r,o){if(r)return Vc(t,n=>n?o(n):Kc(e,t,r,o));Yc(t,(n,s)=>n?o(n):s?o(new Error("dest already exists.")):Kc(e,t,r,o))}(e,r,s,n))})})})};const Zc=Za.pathExists;var Xc={outputFile:Ea(function(e,r,o,n){"function"==typeof o&&(n=o,o="utf8");const s=t.dirname(e);Zc(s,(t,i)=>t?n(t):i?Pa.writeFile(e,r,o,n):void Da.mkdirs(s,t=>{if(t)return n(t);Pa.writeFile(e,r,o,n)}))}),outputFileSync:function(e,...r){const o=t.dirname(e);if(Pa.existsSync(o))return Pa.writeFileSync(e,...r);Da.mkdirsSync(o),Pa.writeFileSync(e,...r)}},eu=b(function(e){e.exports=Object.assign({},Aa,Qa,cc,Tc,Gc,Mc,Da,zc,Qc,Xc,Za,wc),Object.getOwnPropertyDescriptor(o,"promises")&&Object.defineProperty(e.exports,"promises",{get:()=>o.promises})});const{publishSizes:tu,publishDiff:ru}=va,{noop:ou,toFileMap:nu,toMap:su,dedupe:iu}={noop:function(e){return e},toMap:function(e,t){return e.reduce((e,r,o)=>(e[r]=t[o],e),{})},dedupe:function(e,t,r){return r.indexOf(e)===t},toFileMap:function(e){return e.reduce((e,t)=>(t.size&&(e[t.filename]=t.size),e),{})}},au=Fo(zn),cu=Ms.sync;cu.file=(e,t)=>new Promise((r,o)=>{const n=eu.createReadStream(e);n.on("error",o);const s=n.pipe(Ms.stream(t));s.on("error",o),s.on("brotli-size",r)});const uu=e=>Buffer.byteLength(e);uu.file=async e=>(await eu.stat(e)).size;const lu={brotli:cu,gzip:cs,none:uu};async function pu(e){try{return(await eu.readJSON(e)).sort((e,t)=>t.timestamp-e.timestamp)}catch(e){return[]}}async function fu(e){try{return await o.promises.access(e,o.constants.F_OK),!0}catch(e){}return!1}function du(e){if(e)return console.log(`Stripping hash from build chunks using '${e}' pattern.`),function(t){return t.replace(new RegExp(e),(e,...t)=>{if((t=t.slice(0,-2).filter(e=>null!=e)).length){for(let r=0;r0?"+":"")+Ls(e);if(0===Math.abs(e));else if(0===t)r+=" (new file)";else if(t===-e)r+=" (removed)";else{const o=Math.round(e/t*100);r+=` (${o>0?"+":""}${o}%)`}return r}function mu(e,t){if(0===t)return"🆕";const r=Math.round(e/t*100);return r>=50?"🆘":r>=20?"🚨":r>=10?"⚠ī¸":r>=5?"🔍":r<=-50?"🏆":r<=-20?"🎉":r<=-10?"👏":r<=-5?"✅":""}function gu(e){if(0==e.length)return"";for(;e.every(e=>!e[e.length-1]);)for(const t of e)t.pop();const[t]=e;let r=t.length;if(3===r&&e.every(e=>"0 B"===e[2])){r-=1;for(const t of e)t.pop()}return 0===r?"":[["Filename","Size","Change",""].slice(0,r),[":---",":---:",":---:",":---:"].slice(0,r),...e].map(e=>`| ${e.join(" | ")} |`).join("\n")}function yu(e){return/^(1|true|yes)$/.test(e)}(async()=>{try{const e=_.getInput("repo-token"),r=_t.getOctokit(e);await async function(e,r,o){const{number:n}=r.issue;try{_.debug("pr"+JSON.stringify(r.payload,null,2))}catch(e){}let s,i;if("push"==r.eventName)s=r.payload.before,i=r.payload.ref,console.log(`Pushed new commit on top of ${i} (${s})`);else{if("pull_request"!=r.eventName&&"pull_request_target"!=r.eventName)throw new Error(`Unsupported eventName in github.context: ${r.eventName}. Only "pull_request", "pull_request_target", and "push" triggered workflows are currently supported.`);{const e=r.payload.pull_request;s=e.base.sha,i=e.base.ref,console.log(`PR #${n} is targeted at ${i} (${i})`)}}_.getInput("cwd")&&process.chdir(_.getInput("cwd"));const a=new class{constructor(e){const r=e||{};r.pattern=r.pattern||"**/*.{mjs,js,jsx,css,html}",r.filename=r.filename||"size-plugin.json",r.writeFile=!1!==r.writeFile,r.stripHash=r.stripHash||ou,r.filepath=t.join(process.cwd(),r.filename),r.mode=r.mode||process.env.NODE_ENV,r.compression=r.compression||"gzip",this.compressionSize=lu[r.compression],this.options=r}filterFiles(e){const t=ln.filter(this.options.pattern),r=this.options.exclude?ln.filter(this.options.exclude):()=>!1;return e.filter(e=>t(e)&&!r(e))}async readFromDisk(e){const r=await au(this.options.pattern,{cwd:e,ignore:this.options.exclude}),o=await Promise.all(this.filterFiles(r).map(r=>this.compressionSize.file(t.join(e,r)).catch(()=>null)));return su(r.map(e=>this.options.stripHash(e)),o)}async getPreviousSizes(e){const t=await pu(this.options.filepath);if(t.length){const[{files:e}]=t;return nu(e)}return this.readFromDisk(e)}async getSizes(e){const t=this.filterFiles(Object.keys(e)),r=await Promise.all(t.map(t=>this.compressionSize(e[t].source)));return su(t.map(e=>this.options.stripHash(e)),r)}async getDiff(e,t){const r=[...Object.keys(e),...Object.keys(t)].filter(iu),o=[];for(const n of r){const r=t[n]||0;o.push({filename:n,size:r,delta:r-(e[n]||0)})}return o}async printSizes(e){const t=Math.max(...e.map(e=>e.filename.length),this.options.columnWidth||0);let r="";const o=[];for(const n of e){const e=n.filename,s=n.size,i=n.delta,a=new Array(t-e.length+2).join(" ")+e+" ⏤ ",c=s>102400?"red":s>40960?"yellow":s>20480?"cyan":"green";let u=Gs[c](Ls(s)),l="";i&&Math.abs(i)>1&&(l=(i>0?"+":"")+Ls(i),i>1024?(u=Gs.bold(u),l=Gs.red(l)):i<-10&&(l=Gs.green(l)),u+=` (${l})`);let p=a+u+"\n";const f={name:e,size:s,sizeText:u,delta:i,deltaText:l,msg:a,color:c};o.push(f),this.options.decorateItem&&(p=this.options.decorateItem(p,f)||p),r+=p}if(this.options.decorateAfter){const t=this.options.decorateAfter({sizes:o,raw:e,output:r});t&&(r+="\n"+t.replace(/^\n/g,""))}return r}async uploadSizes(e){const t={timestamp:Date.now(),files:e};if(this.options.save&&await this.options.save(t),this.options.publish&&await ru(t,this.options.filename),"production"===this.options.mode&&t.files.some(e=>0!==e.delta)){const e=await pu(this.options.filepath);e.unshift(t),this.options.writeFile&&(await eu.ensureFile(this.options.filename),await eu.writeJSON(this.options.filename,e)),this.options.publish&&await tu(e,this.options.filename)}}async execute(e,t){const r=await(this.options.getPreviousSizes||this.getPreviousSizes).call(this,t),o=await(this.options.getSizes||this.getSizes).call(this,e),n=await(this.options.getDiff||this.getDiff).call(this,r,o),s=await(this.options.printSizes||this.printSizes).call(this,n);return await(this.options.uploadSizes||this.uploadSizes).call(this,n),s}}({compression:_.getInput("compression"),pattern:_.getInput("pattern")||"**/dist/**/*.{js,mjs,cjs}",exclude:_.getInput("exclude")||"{**/*.map,**/node_modules/**}",stripHash:du(_.getInput("strip-hash"))}),c=_.getInput("build-script")||"build",u=process.cwd();let l=await fu(t.resolve(u,"yarn.lock")),p=await fu(t.resolve(u,"pnpm-lock.yaml")),f=await fu(t.resolve(u,"package-lock.json")),d="npm",h="npm install";l?(h="yarn --frozen-lockfile",d="yarn"):p?(h="pnpm install --frozen-lockfile",d="pnpm"):f&&(h="npm ci"),_.startGroup("[current] Install Dependencies"),console.log("Installing using "+h),await Pt.exec(h),_.endGroup(),_.startGroup("[current] Build using "+d),console.log(`Building using ${d} run ${c}`),await Pt.exec(`${d} run ${c}`),_.endGroup(),await Pt.exec("git reset --hard");const m=await a.readFromDisk(u);_.startGroup("[base] Checkout target branch");try{if(!i)throw Error("missing context.payload.pull_request.base.ref");await Pt.exec("git fetch -n origin "+i),console.log("successfully fetched base.ref")}catch(e){console.log("fetching base.ref failed",e.message);try{await Pt.exec("git fetch -n origin "+s),console.log("successfully fetched base.sha")}catch(e){console.log("fetching base.sha failed",e.message);try{await Pt.exec("git fetch -n")}catch(e){console.log("fetch failed",e.message)}}}console.log("checking out and building base commit");try{if(!i)throw Error("missing context.payload.base.ref");await Pt.exec("git reset --hard "+i)}catch(e){await Pt.exec("git reset --hard "+s)}_.endGroup();const g=_.getInput("clean-script");g&&(_.startGroup(`[base] Cleanup via ${d} run ${g}`),await Pt.exec(`${d} run ${g}`),_.endGroup()),_.startGroup("[base] Install Dependencies"),l=await fu(t.resolve(u,"yarn.lock")),p=await fu(t.resolve(u,"pnpm-lock.yaml")),f=await fu(t.resolve(u,"package-lock.json")),l?(h="yarn --frozen-lockfile",d="yarn"):p?(h="pnpm install --frozen-lockfile",d="pnpm"):f&&(h="npm ci"),console.log("Installing using "+h),await Pt.exec(h),_.endGroup(),_.startGroup("[base] Build using "+d),await Pt.exec(`${d} run ${c}`),_.endGroup(),await Pt.exec("git reset --hard");const y=await a.readFromDisk(u),b=await a.getDiff(y,m);_.startGroup("Size Differences:");const w=await a.printSizes(b);console.log(w),_.endGroup();const v=function(e,{showTotal:t,collapseUnchanged:r,omitUnchanged:o,minimumChangeThreshold:n}){let s=[],i=[],a=0,c=0;for(const t of e){const{filename:e,size:u,delta:l}=t;a+=u,c+=l;const p=u-l,f=Math.abs(l)ℹī¸ View Unchanged\n\n${gu(i)}\n\n\n\n`),t){const e=a-c;let t=hu(c,e),r=mu(c,e);u=`**Total Size:** ${Ls(a)}\n\n${u}`,u=`**Size Change:** ${t} ${r}\n\n${u}`}return u}(b,{collapseUnchanged:yu(_.getInput("collapse-unchanged")),omitUnchanged:yu(_.getInput("omit-unchanged")),showTotal:yu(_.getInput("show-total")),minimumChangeThreshold:parseInt(_.getInput("minimum-change-threshold"),10)});let E=!1;const T={...r.repo,issue_number:n},S={...T,body:v+'\n\ncompressed-size-action'};if("pull_request"!==r.eventName&&"pull_request_target"!==r.eventName)console.log("No PR associated with this action run. Not posting a check or comment."),E=!1;else if(yu(_.getInput("use-check")))if(o){const t=await async function(e,t){const r=await e.checks.create({...t.repo,name:"Compressed Size",head_sha:t.payload.pull_request.head.sha,status:"in_progress"});return async o=>{await e.checks.update({...t.repo,check_run_id:r.data.id,completed_at:(new Date).toISOString(),status:"completed",...o})}}(e,r);await t({conclusion:"success",output:{title:"Compressed Size Action",summary:v}})}else E=!0;else{let t;_.startGroup("Updating stats PR comment");try{const r=(await e.issues.listComments(T)).data;for(let e=r.length;e--;){const o=r[e];if("Bot"===o.user.type&&/[\s\n]*(compressed|gzip)-size-action/.test(o.body)){t=o.id;break}}}catch(e){console.log("Error checking for previous comments: "+e.message)}if(t){console.log("Updating previous comment #"+t);try{await e.issues.updateComment({...r.repo,comment_id:t,body:S.body})}catch(e){console.log("Error editing previous comment: "+e.message),t=null}}if(!t){console.log("Creating new comment");try{await e.issues.createComment(S)}catch(t){console.log("Error creating comment: "+t.message),console.log("Submitting a PR review comment instead...");try{const t=r.issue;await e.pulls.createReview({owner:t.owner,repo:t.repo,pull_number:t.number,event:"COMMENT",body:S.body})}catch(e){console.log("Error creating PR review."),E=!0}}}_.endGroup()}E&&console.log(`\n\t\t\tError: compressed-size-action was unable to comment on your PR.\n\t\t\tThis can happen for PR's originating from a fork without write permissions.\n\t\t\tYou can copy the size table directly into a comment using the markdown below:\n\t\t\t\n\n${S.body}\n\n\n\t\t`.replace(/^(\t| )+/gm,"")),console.log("All done!")}(r,_t.context,e)}catch(e){_.setFailed(e.message)}})();