From f564b01e52fbf240e5e5c12577dd10625fe83580 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Thu, 13 May 2021 18:19:06 -0300 Subject: [PATCH] feat: add `args` option, closes #131 (#134) --- .changes/args.md | 6 ++++++ action.yml | 2 ++ .../example-with-tauri/src-tauri/Cargo.toml | 2 +- packages/action/dist/index.js | 6 +++--- packages/action/package.json | 1 + packages/action/src/index.ts | 5 ++++- packages/cli/index.ts | 4 +++- packages/cli/package.json | 2 +- packages/cli/rollup.config.js | 4 +++- packages/core/index.ts | 11 ++++++----- packages/core/rollup.config.js | 4 +++- packages/core/tsconfig.json | 3 ++- yarn.lock | 13 +++++-------- 13 files changed, 40 insertions(+), 23 deletions(-) create mode 100644 .changes/args.md diff --git a/.changes/args.md b/.changes/args.md new file mode 100644 index 0000000000..f519201e5d --- /dev/null +++ b/.changes/args.md @@ -0,0 +1,6 @@ +--- +"@tauri-apps/action-core": patch +"action": patch +--- + +Adds `args` option to pass arguments to the tauri command. diff --git a/action.yml b/action.yml index 18523149b4..80947fbd94 100644 --- a/action.yml +++ b/action.yml @@ -34,6 +34,8 @@ inputs: description: 'the package.json script to run to build the Tauri app' preferGlobal: description: 'set this to true to use a globally installed tauri instead' + args: + description: 'arguments for the tauri command' outputs: releaseId: description: 'The ID of the created release' diff --git a/packages/action/__fixtures__/example-with-tauri/src-tauri/Cargo.toml b/packages/action/__fixtures__/example-with-tauri/src-tauri/Cargo.toml index eef8e71835..270120f7c6 100644 --- a/packages/action/__fixtures__/example-with-tauri/src-tauri/Cargo.toml +++ b/packages/action/__fixtures__/example-with-tauri/src-tauri/Cargo.toml @@ -11,7 +11,7 @@ edition = "2018" [dependencies] serde_json = "1.0" serde = { version = "1.0", features = [ "derive" ] } -tauri = { version = "1.0.0-beta-rc.2", features =["api-all"]} +tauri = { version = "1.0.0-beta-rc.2", features = ["api-all", "updater"] } [build-dependencies] tauri-build = "1.0.0-beta-rc.0" diff --git a/packages/action/dist/index.js b/packages/action/dist/index.js index 0a91832ace..683ef2467b 100644 --- a/packages/action/dist/index.js +++ b/packages/action/dist/index.js @@ -1,10 +1,10 @@ -(()=>{var __webpack_modules__={9548:function(e,t,r){"use strict";var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const n=s(r(2087));const o=r(7472);function issueCommand(e,t,r){const s=new Command(e,t,r);process.stdout.write(s.toString()+n.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const i="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=i+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const s=this.properties[r];if(s){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(s)}`}}}}e+=`${i}${escapeData(this.message)}`;return e}}function escapeData(e){return o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},7117:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(s.next(e))}catch(e){n(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=r(9548);const i=r(2469);const a=r(7472);const c=n(r(2087));const u=n(r(5622));var l;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(l=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const r=a.toCommandValue(t);process.env[e]=r;const s=process.env["GITHUB_ENV"]||"";if(s){const t="_GitHubActionsFileCommandDelimeter_";const s=`${e}<<${t}${c.EOL}${r}${c.EOL}${t}`;i.issueCommand("ENV",s)}else{o.issueCommand("set-env",{name:e},r)}}t.exportVariable=exportVariable;function setSecret(e){o.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){i.issueCommand("PATH",e)}else{o.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${u.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(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()}t.getInput=getInput;function setOutput(e,t){process.stdout.write(c.EOL);o.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){o.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=l.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){o.issueCommand("debug",{},e)}t.debug=debug;function error(e){o.issue("error",e instanceof Error?e.toString():e)}t.error=error;function warning(e){o.issue("warning",e instanceof Error?e.toString():e)}t.warning=warning;function info(e){process.stdout.write(e+c.EOL)}t.info=info;function startGroup(e){o.issue("group",e)}t.startGroup=startGroup;function endGroup(){o.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return s(this,void 0,void 0,(function*(){startGroup(e);let r;try{r=yield t()}finally{endGroup()}return r}))}t.group=group;function saveState(e,t){o.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState},2469:function(e,t,r){"use strict";var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const n=s(r(5747));const o=s(r(2087));const i=r(7472);function issueCommand(e,t){const r=process.env[`GITHUB_${e}`];if(!r){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!n.existsSync(r)){throw new Error(`Missing file at path: ${r}`)}n.appendFileSync(r,`${i.toCommandValue(t)}${o.EOL}`,{encoding:"utf8"})}t.issueCommand=issueCommand},7472:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue},9217:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Context=void 0;const s=r(5747);const n=r(2087);class Context{constructor(){this.payload={};if(process.env.GITHUB_EVENT_PATH){if(s.existsSync(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse(s.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${n.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'")}}t.Context=Context},4005:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){if(s===undefined)s=r;Object.defineProperty(e,s,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,s){if(s===undefined)s=r;e[s]=t[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))s(t,e,r);n(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOctokit=t.context=void 0;const i=o(r(9217));const a=r(8840);t.context=new i.Context;function getOctokit(e,t){return new a.GitHub(a.getOctokitOptions(e,t))}t.getOctokit=getOctokit},2402:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){if(s===undefined)s=r;Object.defineProperty(e,s,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,s){if(s===undefined)s=r;e[s]=t[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))s(t,e,r);n(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getApiBaseUrl=t.getProxyAgent=t.getAuthString=void 0;const i=o(r(9926));function getAuthString(e,t){if(!e&&!t.auth){throw new Error("Parameter token or opts.auth is required")}else if(e&&t.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof t.auth==="string"?t.auth:`token ${e}`}t.getAuthString=getAuthString;function getProxyAgent(e){const t=new i.HttpClient;return t.getAgent(e)}t.getProxyAgent=getProxyAgent;function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}t.getApiBaseUrl=getApiBaseUrl},8840:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){if(s===undefined)s=r;Object.defineProperty(e,s,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,s){if(s===undefined)s=r;e[s]=t[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))s(t,e,r);n(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOctokitOptions=t.GitHub=t.context=void 0;const i=o(r(9217));const a=o(r(2402));const c=r(5341);const u=r(6690);const l=r(8100);t.context=new i.Context;const p=a.getApiBaseUrl();const h={baseUrl:p,request:{agent:a.getProxyAgent(p)}};t.GitHub=c.Octokit.plugin(u.restEndpointMethods,l.paginateRest).defaults(h);function getOctokitOptions(e,t){const r=Object.assign({},t||{});const s=a.getAuthString(e,r);if(s){r.auth=s}return r}t.getOctokitOptions=getOctokitOptions},9926:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(8605);const n=r(7211);const o=r(3466);let i;var a;(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"})(a=t.HttpCodes||(t.HttpCodes={}));var c;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(c=t.Headers||(t.Headers={}));var u;(function(e){e["ApplicationJson"]="application/json"})(u=t.MediaTypes||(t.MediaTypes={}));function getProxyUrl(e){let t=o.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const l=[a.MovedPermanently,a.ResourceMoved,a.SeeOther,a.TemporaryRedirect,a.PermanentRedirect];const p=[a.BadGateway,a.ServiceUnavailable,a.GatewayTimeout];const h=["OPTIONS","GET","DELETE","HEAD"];const d=10;const m=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{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=HttpClientResponse;function isHttps(e){let t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,r){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=r;if(r){if(r.ignoreSslError!=null){this._ignoreSslError=r.ignoreSslError}this._socketTimeout=r.socketTimeout;if(r.allowRedirects!=null){this._allowRedirects=r.allowRedirects}if(r.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=r.allowRedirectDowngrade}if(r.maxRedirects!=null){this._maxRedirects=Math.max(r.maxRedirects,0)}if(r.keepAlive!=null){this._keepAlive=r.keepAlive}if(r.allowRetries!=null){this._allowRetries=r.allowRetries}if(r.maxRetries!=null){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,s){return this.request(e,t,r,s)}async getJson(e,t={}){t[c.Accept]=this._getExistingOrDefaultHeader(t,c.Accept,u.ApplicationJson);let r=await this.get(e,t);return this._processResponse(r,this.requestOptions)}async postJson(e,t,r={}){let s=JSON.stringify(t,null,2);r[c.Accept]=this._getExistingOrDefaultHeader(r,c.Accept,u.ApplicationJson);r[c.ContentType]=this._getExistingOrDefaultHeader(r,c.ContentType,u.ApplicationJson);let n=await this.post(e,s,r);return this._processResponse(n,this.requestOptions)}async putJson(e,t,r={}){let s=JSON.stringify(t,null,2);r[c.Accept]=this._getExistingOrDefaultHeader(r,c.Accept,u.ApplicationJson);r[c.ContentType]=this._getExistingOrDefaultHeader(r,c.ContentType,u.ApplicationJson);let n=await this.put(e,s,r);return this._processResponse(n,this.requestOptions)}async patchJson(e,t,r={}){let s=JSON.stringify(t,null,2);r[c.Accept]=this._getExistingOrDefaultHeader(r,c.Accept,u.ApplicationJson);r[c.ContentType]=this._getExistingOrDefaultHeader(r,c.ContentType,u.ApplicationJson);let n=await this.patch(e,s,r);return this._processResponse(n,this.requestOptions)}async request(e,t,r,s){if(this._disposed){throw new Error("Client has already been disposed.")}let n=new URL(t);let o=this._prepareRequest(e,n,s);let i=this._allowRetries&&h.indexOf(e)!=-1?this._maxRetries+1:1;let c=0;let u;while(c0){const i=u.message.headers["location"];if(!i){break}let a=new URL(i);if(n.protocol=="https:"&&n.protocol!=a.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.")}await u.readBody();if(a.hostname!==n.hostname){for(let e in s){if(e.toLowerCase()==="authorization"){delete s[e]}}}o=this._prepareRequest(e,a,s);u=await this.requestRaw(o,r);t--}if(p.indexOf(u.message.statusCode)==-1){return u}c+=1;if(c{let callbackForResult=function(e,t){if(e){s(e)}r(t)};this.requestRawWithCallback(e,t,callbackForResult)}))}requestRawWithCallback(e,t,r){let s;if(typeof t==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let n=false;let handleResult=(e,t)=>{if(!n){n=true;r(e,t)}};let o=e.httpModule.request(e.options,(e=>{let t=new HttpClientResponse(e);handleResult(null,t)}));o.on("socket",(e=>{s=e}));o.setTimeout(this._socketTimeout||3*6e4,(()=>{if(s){s.end()}handleResult(new Error("Request timeout: "+e.options.path),null)}));o.on("error",(function(e){handleResult(e,null)}));if(t&&typeof t==="string"){o.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){o.end()}));t.pipe(o)}else{o.end()}}getAgent(e){let t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,r){const o={};o.parsedUrl=t;const i=o.parsedUrl.protocol==="https:";o.httpModule=i?n:s;const a=i?443:80;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);if(this.userAgent!=null){o.options.headers["user-agent"]=this.userAgent}o.options.agent=this._getAgent(o.parsedUrl);if(this.handlers){this.handlers.forEach((e=>{e.prepareRequest(o.options)}))}return o}_mergeHeaders(e){const lowercaseKeys=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,r){const lowercaseKeys=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{});let s;if(this.requestOptions&&this.requestOptions.headers){s=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||s||r}_getAgent(e){let t;let a=o.getProxyUrl(e);let c=a&&a.hostname;if(this._keepAlive&&c){t=this._proxyAgent}if(this._keepAlive&&!c){t=this._agent}if(!!t){return t}const u=e.protocol==="https:";let l=100;if(!!this.requestOptions){l=this.requestOptions.maxSockets||s.globalAgent.maxSockets}if(c){if(!i){i=r(9382)}const e={maxSockets:l,keepAlive:this._keepAlive,proxy:{proxyAuth:`${a.username}:${a.password}`,host:a.hostname,port:a.port}};let s;const n=a.protocol==="https:";if(u){s=n?i.httpsOverHttps:i.httpsOverHttp}else{s=n?i.httpOverHttps:i.httpOverHttp}t=s(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:l};t=u?new n.Agent(e):new s.Agent(e);this._agent=t}if(!t){t=u?n.globalAgent:s.globalAgent}if(u&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){e=Math.min(d,e);const t=m*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}static dateTimeDeserializer(e,t){if(typeof t==="string"){let e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}async _processResponse(e,t){return new Promise((async(r,s)=>{const n=e.message.statusCode;const o={statusCode:n,result:null,headers:{}};if(n==a.NotFound){r(o)}let i;let c;try{c=await e.readBody();if(c&&c.length>0){if(t&&t.deserializeDates){i=JSON.parse(c,HttpClient.dateTimeDeserializer)}else{i=JSON.parse(c)}o.result=i}o.headers=e.message.headers}catch(e){}if(n>299){let e;if(i&&i.message){e=i.message}else if(c&&c.length>0){e=c}else{e="Failed request: ("+n+")"}let t=new HttpClientError(e,n);t.result=o.result;s(t)}else{r(o)}}))}}t.HttpClient=HttpClient},3466:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function getProxyUrl(e){let t=e.protocol==="https:";let r;if(checkBypass(e)){return r}let s;if(t){s=process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{s=process.env["http_proxy"]||process.env["HTTP_PROXY"]}if(s){r=new URL(s)}return r}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}let t=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!t){return false}let r;if(e.port){r=Number(e.port)}else if(e.protocol==="http:"){r=80}else if(e.protocol==="https:"){r=443}let s=[e.hostname.toUpperCase()];if(typeof r==="number"){s.push(`${s[0]}:${r}`)}for(let e of t.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(s.some((t=>t===e))){return true}}return false}t.checkBypass=checkBypass},5230:(e,t,r)=>{"use strict";const s=r(9408);const n=global.Date;class Date extends n{constructor(e){super(e);this.isDate=true}toISOString(){return`${this.getUTCFullYear()}-${s(2,this.getUTCMonth()+1)}-${s(2,this.getUTCDate())}`}}e.exports=e=>{const t=new Date(e);if(isNaN(t)){throw new TypeError("Invalid Datetime")}else{return t}}},3596:(e,t,r)=>{"use strict";const s=r(9408);class FloatingDateTime extends Date{constructor(e){super(e+"Z");this.isFloating=true}toISOString(){const e=`${this.getUTCFullYear()}-${s(2,this.getUTCMonth()+1)}-${s(2,this.getUTCDate())}`;const t=`${s(2,this.getUTCHours())}:${s(2,this.getUTCMinutes())}:${s(2,this.getUTCSeconds())}.${s(3,this.getUTCMilliseconds())}`;return`${e}T${t}`}}e.exports=e=>{const t=new FloatingDateTime(e);if(isNaN(t)){throw new TypeError("Invalid Datetime")}else{return t}}},9728:e=>{"use strict";e.exports=e=>{const t=new Date(e);if(isNaN(t)){throw new TypeError("Invalid Datetime")}else{return t}}},9510:(e,t,r)=>{"use strict";const s=r(9408);class Time extends Date{constructor(e){super(`0000-01-01T${e}Z`);this.isTime=true}toISOString(){return`${s(2,this.getUTCHours())}:${s(2,this.getUTCMinutes())}:${s(2,this.getUTCSeconds())}.${s(3,this.getUTCMilliseconds())}`}}e.exports=e=>{const t=new Time(e);if(isNaN(t)){throw new TypeError("Invalid Datetime")}else{return t}}},9408:e=>{"use strict";e.exports=(e,t)=>{t=String(t);while(t.length{"use strict";const t=1114112;class ParserError extends Error{constructor(e,t,r){super("[ParserError] "+e,t,r);this.name="ParserError";this.code="ParserError";if(Error.captureStackTrace)Error.captureStackTrace(this,ParserError)}}class State{constructor(e){this.parser=e;this.buf="";this.returned=null;this.result=null;this.resultTable=null;this.resultArr=null}}class Parser{constructor(){this.pos=0;this.col=0;this.line=0;this.obj={};this.ctx=this.obj;this.stack=[];this._buf="";this.char=null;this.ii=0;this.state=new State(this.parseStart)}parse(e){if(e.length===0||e.length==null)return;this._buf=String(e);this.ii=-1;this.char=-1;let t;while(t===false||this.nextChar()){t=this.runOne()}this._buf=null}nextChar(){if(this.char===10){++this.line;this.col=-1}++this.ii;this.char=this._buf.codePointAt(this.ii);++this.pos;++this.col;return this.haveBuffer()}haveBuffer(){return this.ii{"use strict";module.exports=makeParserClass(__nccwpck_require__(7760));module.exports.makeParserClass=makeParserClass;class TomlError extends Error{constructor(e){super(e);this.name="TomlError";if(Error.captureStackTrace)Error.captureStackTrace(this,TomlError);this.fromTOML=true;this.wrapped=null}}TomlError.wrap=e=>{const t=new TomlError(e.message);t.code=e.code;t.wrapped=e;return t};module.exports.TomlError=TomlError;const createDateTime=__nccwpck_require__(9728);const createDateTimeFloat=__nccwpck_require__(3596);const createDate=__nccwpck_require__(5230);const createTime=__nccwpck_require__(9510);const CTRL_I=9;const CTRL_J=10;const CTRL_M=13;const CTRL_CHAR_BOUNDARY=31;const CHAR_SP=32;const CHAR_QUOT=34;const CHAR_NUM=35;const CHAR_APOS=39;const CHAR_PLUS=43;const CHAR_COMMA=44;const CHAR_HYPHEN=45;const CHAR_PERIOD=46;const CHAR_0=48;const CHAR_1=49;const CHAR_7=55;const CHAR_9=57;const CHAR_COLON=58;const CHAR_EQUALS=61;const CHAR_A=65;const CHAR_E=69;const CHAR_F=70;const CHAR_T=84;const CHAR_U=85;const CHAR_Z=90;const CHAR_LOWBAR=95;const CHAR_a=97;const CHAR_b=98;const CHAR_e=101;const CHAR_f=102;const CHAR_i=105;const CHAR_l=108;const CHAR_n=110;const CHAR_o=111;const CHAR_r=114;const CHAR_s=115;const CHAR_t=116;const CHAR_u=117;const CHAR_x=120;const CHAR_z=122;const CHAR_LCUB=123;const CHAR_RCUB=125;const CHAR_LSQB=91;const CHAR_BSOL=92;const CHAR_RSQB=93;const CHAR_DEL=127;const SURROGATE_FIRST=55296;const SURROGATE_LAST=57343;const escapes={[CHAR_b]:"\b",[CHAR_t]:"\t",[CHAR_n]:"\n",[CHAR_f]:"\f",[CHAR_r]:"\r",[CHAR_QUOT]:'"',[CHAR_BSOL]:"\\"};function isDigit(e){return e>=CHAR_0&&e<=CHAR_9}function isHexit(e){return e>=CHAR_A&&e<=CHAR_F||e>=CHAR_a&&e<=CHAR_f||e>=CHAR_0&&e<=CHAR_9}function isBit(e){return e===CHAR_1||e===CHAR_0}function isOctit(e){return e>=CHAR_0&&e<=CHAR_7}function isAlphaNumQuoteHyphen(e){return e>=CHAR_A&&e<=CHAR_Z||e>=CHAR_a&&e<=CHAR_z||e>=CHAR_0&&e<=CHAR_9||e===CHAR_APOS||e===CHAR_QUOT||e===CHAR_LOWBAR||e===CHAR_HYPHEN}function isAlphaNumHyphen(e){return e>=CHAR_A&&e<=CHAR_Z||e>=CHAR_a&&e<=CHAR_z||e>=CHAR_0&&e<=CHAR_9||e===CHAR_LOWBAR||e===CHAR_HYPHEN}const _type=Symbol("type");const _declared=Symbol("declared");const hasOwnProperty=Object.prototype.hasOwnProperty;const defineProperty=Object.defineProperty;const descriptor={configurable:true,enumerable:true,writable:true,value:undefined};function hasKey(e,t){if(hasOwnProperty.call(e,t))return true;if(t==="__proto__")defineProperty(e,"__proto__",descriptor);return false}const INLINE_TABLE=Symbol("inline-table");function InlineTable(){return Object.defineProperties({},{[_type]:{value:INLINE_TABLE}})}function isInlineTable(e){if(e===null||typeof e!=="object")return false;return e[_type]===INLINE_TABLE}const TABLE=Symbol("table");function Table(){return Object.defineProperties({},{[_type]:{value:TABLE},[_declared]:{value:false,writable:true}})}function isTable(e){if(e===null||typeof e!=="object")return false;return e[_type]===TABLE}const _contentType=Symbol("content-type");const INLINE_LIST=Symbol("inline-list");function InlineList(e){return Object.defineProperties([],{[_type]:{value:INLINE_LIST},[_contentType]:{value:e}})}function isInlineList(e){if(e===null||typeof e!=="object")return false;return e[_type]===INLINE_LIST}const LIST=Symbol("list");function List(){return Object.defineProperties([],{[_type]:{value:LIST}})}function isList(e){if(e===null||typeof e!=="object")return false;return e[_type]===LIST}let _custom;try{const utilInspect=eval("require('util').inspect");_custom=utilInspect.custom}catch(e){}const _inspect=_custom||"inspect";class BoxedBigInt{constructor(e){try{this.value=global.BigInt.asIntN(64,e)}catch(e){this.value=null}Object.defineProperty(this,_type,{value:INTEGER})}isNaN(){return this.value===null}toString(){return String(this.value)}[_inspect](){return`[BigInt: ${this.toString()}]}`}valueOf(){return this.value}}const INTEGER=Symbol("integer");function Integer(e){let t=Number(e);if(Object.is(t,-0))t=0;if(global.BigInt&&!Number.isSafeInteger(t)){return new BoxedBigInt(e)}else{return Object.defineProperties(new Number(t),{isNaN:{value:function(){return isNaN(this)}},[_type]:{value:INTEGER},[_inspect]:{value:()=>`[Integer: ${e}]`}})}}function isInteger(e){if(e===null||typeof e!=="object")return false;return e[_type]===INTEGER}const FLOAT=Symbol("float");function Float(e){return Object.defineProperties(new Number(e),{[_type]:{value:FLOAT},[_inspect]:{value:()=>`[Float: ${e}]`}})}function isFloat(e){if(e===null||typeof e!=="object")return false;return e[_type]===FLOAT}function tomlType(e){const t=typeof e;if(t==="object"){if(e===null)return"null";if(e instanceof Date)return"datetime";if(_type in e){switch(e[_type]){case INLINE_TABLE:return"inline-table";case INLINE_LIST:return"inline-list";case TABLE:return"table";case LIST:return"list";case FLOAT:return"float";case INTEGER:return"integer"}}}return t}function makeParserClass(e){class TOMLParser extends e{constructor(){super();this.ctx=this.obj=Table()}atEndOfWord(){return this.char===CHAR_NUM||this.char===CTRL_I||this.char===CHAR_SP||this.atEndOfLine()}atEndOfLine(){return this.char===e.END||this.char===CTRL_J||this.char===CTRL_M}parseStart(){if(this.char===e.END){return null}else if(this.char===CHAR_LSQB){return this.call(this.parseTableOrList)}else if(this.char===CHAR_NUM){return this.call(this.parseComment)}else if(this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M){return null}else if(isAlphaNumQuoteHyphen(this.char)){return this.callNow(this.parseAssignStatement)}else{throw this.error(new TomlError(`Unknown character "${this.char}"`))}}parseWhitespaceToEOL(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M){return null}else if(this.char===CHAR_NUM){return this.goto(this.parseComment)}else if(this.char===e.END||this.char===CTRL_J){return this.return()}else{throw this.error(new TomlError("Unexpected character, expected only whitespace or comments till end of line"))}}parseAssignStatement(){return this.callNow(this.parseAssign,this.recordAssignStatement)}recordAssignStatement(e){let t=this.ctx;let r=e.key.pop();for(let r of e.key){if(hasKey(t,r)&&(!isTable(t[r])||t[r][_declared])){throw this.error(new TomlError("Can't redefine existing key"))}t=t[r]=t[r]||Table()}if(hasKey(t,r)){throw this.error(new TomlError("Can't redefine existing key"))}if(isInteger(e.value)||isFloat(e.value)){t[r]=e.value.valueOf()}else{t[r]=e.value}return this.goto(this.parseWhitespaceToEOL)}parseAssign(){return this.callNow(this.parseKeyword,this.recordAssignKeyword)}recordAssignKeyword(e){if(this.state.resultTable){this.state.resultTable.push(e)}else{this.state.resultTable=[e]}return this.goto(this.parseAssignKeywordPreDot)}parseAssignKeywordPreDot(){if(this.char===CHAR_PERIOD){return this.next(this.parseAssignKeywordPostDot)}else if(this.char!==CHAR_SP&&this.char!==CTRL_I){return this.goto(this.parseAssignEqual)}}parseAssignKeywordPostDot(){if(this.char!==CHAR_SP&&this.char!==CTRL_I){return this.callNow(this.parseKeyword,this.recordAssignKeyword)}}parseAssignEqual(){if(this.char===CHAR_EQUALS){return this.next(this.parseAssignPreValue)}else{throw this.error(new TomlError('Invalid character, expected "="'))}}parseAssignPreValue(){if(this.char===CHAR_SP||this.char===CTRL_I){return null}else{return this.callNow(this.parseValue,this.recordAssignValue)}}recordAssignValue(e){return this.returnNow({key:this.state.resultTable,value:e})}parseComment(){do{if(this.char===e.END||this.char===CTRL_J){return this.return()}}while(this.nextChar())}parseTableOrList(){if(this.char===CHAR_LSQB){this.next(this.parseList)}else{return this.goto(this.parseTable)}}parseTable(){this.ctx=this.obj;return this.goto(this.parseTableNext)}parseTableNext(){if(this.char===CHAR_SP||this.char===CTRL_I){return null}else{return this.callNow(this.parseKeyword,this.parseTableMore)}}parseTableMore(e){if(this.char===CHAR_SP||this.char===CTRL_I){return null}else if(this.char===CHAR_RSQB){if(hasKey(this.ctx,e)&&(!isTable(this.ctx[e])||this.ctx[e][_declared])){throw this.error(new TomlError("Can't redefine existing key"))}else{this.ctx=this.ctx[e]=this.ctx[e]||Table();this.ctx[_declared]=true}return this.next(this.parseWhitespaceToEOL)}else if(this.char===CHAR_PERIOD){if(!hasKey(this.ctx,e)){this.ctx=this.ctx[e]=Table()}else if(isTable(this.ctx[e])){this.ctx=this.ctx[e]}else if(isList(this.ctx[e])){this.ctx=this.ctx[e][this.ctx[e].length-1]}else{throw this.error(new TomlError("Can't redefine existing key"))}return this.next(this.parseTableNext)}else{throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}}parseList(){this.ctx=this.obj;return this.goto(this.parseListNext)}parseListNext(){if(this.char===CHAR_SP||this.char===CTRL_I){return null}else{return this.callNow(this.parseKeyword,this.parseListMore)}}parseListMore(e){if(this.char===CHAR_SP||this.char===CTRL_I){return null}else if(this.char===CHAR_RSQB){if(!hasKey(this.ctx,e)){this.ctx[e]=List()}if(isInlineList(this.ctx[e])){throw this.error(new TomlError("Can't extend an inline array"))}else if(isList(this.ctx[e])){const t=Table();this.ctx[e].push(t);this.ctx=t}else{throw this.error(new TomlError("Can't redefine an existing key"))}return this.next(this.parseListEnd)}else if(this.char===CHAR_PERIOD){if(!hasKey(this.ctx,e)){this.ctx=this.ctx[e]=Table()}else if(isInlineList(this.ctx[e])){throw this.error(new TomlError("Can't extend an inline array"))}else if(isInlineTable(this.ctx[e])){throw this.error(new TomlError("Can't extend an inline table"))}else if(isList(this.ctx[e])){this.ctx=this.ctx[e][this.ctx[e].length-1]}else if(isTable(this.ctx[e])){this.ctx=this.ctx[e]}else{throw this.error(new TomlError("Can't redefine an existing key"))}return this.next(this.parseListNext)}else{throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}}parseListEnd(e){if(this.char===CHAR_RSQB){return this.next(this.parseWhitespaceToEOL)}else{throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}}parseValue(){if(this.char===e.END){throw this.error(new TomlError("Key without value"))}else if(this.char===CHAR_QUOT){return this.next(this.parseDoubleString)}if(this.char===CHAR_APOS){return this.next(this.parseSingleString)}else if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS){return this.goto(this.parseNumberSign)}else if(this.char===CHAR_i){return this.next(this.parseInf)}else if(this.char===CHAR_n){return this.next(this.parseNan)}else if(isDigit(this.char)){return this.goto(this.parseNumberOrDateTime)}else if(this.char===CHAR_t||this.char===CHAR_f){return this.goto(this.parseBoolean)}else if(this.char===CHAR_LSQB){return this.call(this.parseInlineList,this.recordValue)}else if(this.char===CHAR_LCUB){return this.call(this.parseInlineTable,this.recordValue)}else{throw this.error(new TomlError("Unexpected character, expecting string, number, datetime, boolean, inline array or inline table"))}}recordValue(e){return this.returnNow(e)}parseInf(){if(this.char===CHAR_n){return this.next(this.parseInf2)}else{throw this.error(new TomlError('Unexpected character, expected "inf", "+inf" or "-inf"'))}}parseInf2(){if(this.char===CHAR_f){if(this.state.buf==="-"){return this.return(-Infinity)}else{return this.return(Infinity)}}else{throw this.error(new TomlError('Unexpected character, expected "inf", "+inf" or "-inf"'))}}parseNan(){if(this.char===CHAR_a){return this.next(this.parseNan2)}else{throw this.error(new TomlError('Unexpected character, expected "nan"'))}}parseNan2(){if(this.char===CHAR_n){return this.return(NaN)}else{throw this.error(new TomlError('Unexpected character, expected "nan"'))}}parseKeyword(){if(this.char===CHAR_QUOT){return this.next(this.parseBasicString)}else if(this.char===CHAR_APOS){return this.next(this.parseLiteralString)}else{return this.goto(this.parseBareKey)}}parseBareKey(){do{if(this.char===e.END){throw this.error(new TomlError("Key ended without value"))}else if(isAlphaNumHyphen(this.char)){this.consume()}else if(this.state.buf.length===0){throw this.error(new TomlError("Empty bare keys are not allowed"))}else{return this.returnNow()}}while(this.nextChar())}parseSingleString(){if(this.char===CHAR_APOS){return this.next(this.parseLiteralMultiStringMaybe)}else{return this.goto(this.parseLiteralString)}}parseLiteralString(){do{if(this.char===CHAR_APOS){return this.return()}else if(this.atEndOfLine()){throw this.error(new TomlError("Unterminated string"))}else if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I){throw this.errorControlCharInString()}else{this.consume()}}while(this.nextChar())}parseLiteralMultiStringMaybe(){if(this.char===CHAR_APOS){return this.next(this.parseLiteralMultiString)}else{return this.returnNow()}}parseLiteralMultiString(){if(this.char===CTRL_M){return null}else if(this.char===CTRL_J){return this.next(this.parseLiteralMultiStringContent)}else{return this.goto(this.parseLiteralMultiStringContent)}}parseLiteralMultiStringContent(){do{if(this.char===CHAR_APOS){return this.next(this.parseLiteralMultiEnd)}else if(this.char===e.END){throw this.error(new TomlError("Unterminated multi-line string"))}else if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I&&this.char!==CTRL_J&&this.char!==CTRL_M){throw this.errorControlCharInString()}else{this.consume()}}while(this.nextChar())}parseLiteralMultiEnd(){if(this.char===CHAR_APOS){return this.next(this.parseLiteralMultiEnd2)}else{this.state.buf+="'";return this.goto(this.parseLiteralMultiStringContent)}}parseLiteralMultiEnd2(){if(this.char===CHAR_APOS){return this.return()}else{this.state.buf+="''";return this.goto(this.parseLiteralMultiStringContent)}}parseDoubleString(){if(this.char===CHAR_QUOT){return this.next(this.parseMultiStringMaybe)}else{return this.goto(this.parseBasicString)}}parseBasicString(){do{if(this.char===CHAR_BSOL){return this.call(this.parseEscape,this.recordEscapeReplacement)}else if(this.char===CHAR_QUOT){return this.return()}else if(this.atEndOfLine()){throw this.error(new TomlError("Unterminated string"))}else if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I){throw this.errorControlCharInString()}else{this.consume()}}while(this.nextChar())}recordEscapeReplacement(e){this.state.buf+=e;return this.goto(this.parseBasicString)}parseMultiStringMaybe(){if(this.char===CHAR_QUOT){return this.next(this.parseMultiString)}else{return this.returnNow()}}parseMultiString(){if(this.char===CTRL_M){return null}else if(this.char===CTRL_J){return this.next(this.parseMultiStringContent)}else{return this.goto(this.parseMultiStringContent)}}parseMultiStringContent(){do{if(this.char===CHAR_BSOL){return this.call(this.parseMultiEscape,this.recordMultiEscapeReplacement)}else if(this.char===CHAR_QUOT){return this.next(this.parseMultiEnd)}else if(this.char===e.END){throw this.error(new TomlError("Unterminated multi-line string"))}else if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I&&this.char!==CTRL_J&&this.char!==CTRL_M){throw this.errorControlCharInString()}else{this.consume()}}while(this.nextChar())}errorControlCharInString(){let e="\\u00";if(this.char<16){e+="0"}e+=this.char.toString(16);return this.error(new TomlError(`Control characters (codes < 0x1f and 0x7f) are not allowed in strings, use ${e} instead`))}recordMultiEscapeReplacement(e){this.state.buf+=e;return this.goto(this.parseMultiStringContent)}parseMultiEnd(){if(this.char===CHAR_QUOT){return this.next(this.parseMultiEnd2)}else{this.state.buf+='"';return this.goto(this.parseMultiStringContent)}}parseMultiEnd2(){if(this.char===CHAR_QUOT){return this.return()}else{this.state.buf+='""';return this.goto(this.parseMultiStringContent)}}parseMultiEscape(){if(this.char===CTRL_M||this.char===CTRL_J){return this.next(this.parseMultiTrim)}else if(this.char===CHAR_SP||this.char===CTRL_I){return this.next(this.parsePreMultiTrim)}else{return this.goto(this.parseEscape)}}parsePreMultiTrim(){if(this.char===CHAR_SP||this.char===CTRL_I){return null}else if(this.char===CTRL_M||this.char===CTRL_J){return this.next(this.parseMultiTrim)}else{throw this.error(new TomlError("Can't escape whitespace"))}}parseMultiTrim(){if(this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M){return null}else{return this.returnNow()}}parseEscape(){if(this.char in escapes){return this.return(escapes[this.char])}else if(this.char===CHAR_u){return this.call(this.parseSmallUnicode,this.parseUnicodeReturn)}else if(this.char===CHAR_U){return this.call(this.parseLargeUnicode,this.parseUnicodeReturn)}else{throw this.error(new TomlError("Unknown escape character: "+this.char))}}parseUnicodeReturn(e){try{const t=parseInt(e,16);if(t>=SURROGATE_FIRST&&t<=SURROGATE_LAST){throw this.error(new TomlError("Invalid unicode, character in range 0xD800 - 0xDFFF is reserved"))}return this.returnNow(String.fromCodePoint(t))}catch(e){throw this.error(TomlError.wrap(e))}}parseSmallUnicode(){if(!isHexit(this.char)){throw this.error(new TomlError("Invalid character in unicode sequence, expected hex"))}else{this.consume();if(this.state.buf.length>=4)return this.return()}}parseLargeUnicode(){if(!isHexit(this.char)){throw this.error(new TomlError("Invalid character in unicode sequence, expected hex"))}else{this.consume();if(this.state.buf.length>=8)return this.return()}}parseNumberSign(){this.consume();return this.next(this.parseMaybeSignedInfOrNan)}parseMaybeSignedInfOrNan(){if(this.char===CHAR_i){return this.next(this.parseInf)}else if(this.char===CHAR_n){return this.next(this.parseNan)}else{return this.callNow(this.parseNoUnder,this.parseNumberIntegerStart)}}parseNumberIntegerStart(){if(this.char===CHAR_0){this.consume();return this.next(this.parseNumberIntegerExponentOrDecimal)}else{return this.goto(this.parseNumberInteger)}}parseNumberIntegerExponentOrDecimal(){if(this.char===CHAR_PERIOD){this.consume();return this.call(this.parseNoUnder,this.parseNumberFloat)}else if(this.char===CHAR_E||this.char===CHAR_e){this.consume();return this.next(this.parseNumberExponentSign)}else{return this.returnNow(Integer(this.state.buf))}}parseNumberInteger(){if(isDigit(this.char)){this.consume()}else if(this.char===CHAR_LOWBAR){return this.call(this.parseNoUnder)}else if(this.char===CHAR_E||this.char===CHAR_e){this.consume();return this.next(this.parseNumberExponentSign)}else if(this.char===CHAR_PERIOD){this.consume();return this.call(this.parseNoUnder,this.parseNumberFloat)}else{const e=Integer(this.state.buf);if(e.isNaN()){throw this.error(new TomlError("Invalid number"))}else{return this.returnNow(e)}}}parseNoUnder(){if(this.char===CHAR_LOWBAR||this.char===CHAR_PERIOD||this.char===CHAR_E||this.char===CHAR_e){throw this.error(new TomlError("Unexpected character, expected digit"))}else if(this.atEndOfWord()){throw this.error(new TomlError("Incomplete number"))}return this.returnNow()}parseNoUnderHexOctBinLiteral(){if(this.char===CHAR_LOWBAR||this.char===CHAR_PERIOD){throw this.error(new TomlError("Unexpected character, expected digit"))}else if(this.atEndOfWord()){throw this.error(new TomlError("Incomplete number"))}return this.returnNow()}parseNumberFloat(){if(this.char===CHAR_LOWBAR){return this.call(this.parseNoUnder,this.parseNumberFloat)}else if(isDigit(this.char)){this.consume()}else if(this.char===CHAR_E||this.char===CHAR_e){this.consume();return this.next(this.parseNumberExponentSign)}else{return this.returnNow(Float(this.state.buf))}}parseNumberExponentSign(){if(isDigit(this.char)){return this.goto(this.parseNumberExponent)}else if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS){this.consume();this.call(this.parseNoUnder,this.parseNumberExponent)}else{throw this.error(new TomlError("Unexpected character, expected -, + or digit"))}}parseNumberExponent(){if(isDigit(this.char)){this.consume()}else if(this.char===CHAR_LOWBAR){return this.call(this.parseNoUnder)}else{return this.returnNow(Float(this.state.buf))}}parseNumberOrDateTime(){if(this.char===CHAR_0){this.consume();return this.next(this.parseNumberBaseOrDateTime)}else{return this.goto(this.parseNumberOrDateTimeOnly)}}parseNumberOrDateTimeOnly(){if(this.char===CHAR_LOWBAR){return this.call(this.parseNoUnder,this.parseNumberInteger)}else if(isDigit(this.char)){this.consume();if(this.state.buf.length>4)this.next(this.parseNumberInteger)}else if(this.char===CHAR_E||this.char===CHAR_e){this.consume();return this.next(this.parseNumberExponentSign)}else if(this.char===CHAR_PERIOD){this.consume();return this.call(this.parseNoUnder,this.parseNumberFloat)}else if(this.char===CHAR_HYPHEN){return this.goto(this.parseDateTime)}else if(this.char===CHAR_COLON){return this.goto(this.parseOnlyTimeHour)}else{return this.returnNow(Integer(this.state.buf))}}parseDateTimeOnly(){if(this.state.buf.length<4){if(isDigit(this.char)){return this.consume()}else if(this.char===CHAR_COLON){return this.goto(this.parseOnlyTimeHour)}else{throw this.error(new TomlError("Expected digit while parsing year part of a date"))}}else{if(this.char===CHAR_HYPHEN){return this.goto(this.parseDateTime)}else{throw this.error(new TomlError("Expected hyphen (-) while parsing year part of date"))}}}parseNumberBaseOrDateTime(){if(this.char===CHAR_b){this.consume();return this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerBin)}else if(this.char===CHAR_o){this.consume();return this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerOct)}else if(this.char===CHAR_x){this.consume();return this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerHex)}else if(this.char===CHAR_PERIOD){return this.goto(this.parseNumberInteger)}else if(isDigit(this.char)){return this.goto(this.parseDateTimeOnly)}else{return this.returnNow(Integer(this.state.buf))}}parseIntegerHex(){if(isHexit(this.char)){this.consume()}else if(this.char===CHAR_LOWBAR){return this.call(this.parseNoUnderHexOctBinLiteral)}else{const e=Integer(this.state.buf);if(e.isNaN()){throw this.error(new TomlError("Invalid number"))}else{return this.returnNow(e)}}}parseIntegerOct(){if(isOctit(this.char)){this.consume()}else if(this.char===CHAR_LOWBAR){return this.call(this.parseNoUnderHexOctBinLiteral)}else{const e=Integer(this.state.buf);if(e.isNaN()){throw this.error(new TomlError("Invalid number"))}else{return this.returnNow(e)}}}parseIntegerBin(){if(isBit(this.char)){this.consume()}else if(this.char===CHAR_LOWBAR){return this.call(this.parseNoUnderHexOctBinLiteral)}else{const e=Integer(this.state.buf);if(e.isNaN()){throw this.error(new TomlError("Invalid number"))}else{return this.returnNow(e)}}}parseDateTime(){if(this.state.buf.length<4){throw this.error(new TomlError("Years less than 1000 must be zero padded to four characters"))}this.state.result=this.state.buf;this.state.buf="";return this.next(this.parseDateMonth)}parseDateMonth(){if(this.char===CHAR_HYPHEN){if(this.state.buf.length<2){throw this.error(new TomlError("Months less than 10 must be zero padded to two characters"))}this.state.result+="-"+this.state.buf;this.state.buf="";return this.next(this.parseDateDay)}else if(isDigit(this.char)){this.consume()}else{throw this.error(new TomlError("Incomplete datetime"))}}parseDateDay(){if(this.char===CHAR_T||this.char===CHAR_SP){if(this.state.buf.length<2){throw this.error(new TomlError("Days less than 10 must be zero padded to two characters"))}this.state.result+="-"+this.state.buf;this.state.buf="";return this.next(this.parseStartTimeHour)}else if(this.atEndOfWord()){return this.returnNow(createDate(this.state.result+"-"+this.state.buf))}else if(isDigit(this.char)){this.consume()}else{throw this.error(new TomlError("Incomplete datetime"))}}parseStartTimeHour(){if(this.atEndOfWord()){return this.returnNow(createDate(this.state.result))}else{return this.goto(this.parseTimeHour)}}parseTimeHour(){if(this.char===CHAR_COLON){if(this.state.buf.length<2){throw this.error(new TomlError("Hours less than 10 must be zero padded to two characters"))}this.state.result+="T"+this.state.buf;this.state.buf="";return this.next(this.parseTimeMin)}else if(isDigit(this.char)){this.consume()}else{throw this.error(new TomlError("Incomplete datetime"))}}parseTimeMin(){if(this.state.buf.length<2&&isDigit(this.char)){this.consume()}else if(this.state.buf.length===2&&this.char===CHAR_COLON){this.state.result+=":"+this.state.buf;this.state.buf="";return this.next(this.parseTimeSec)}else{throw this.error(new TomlError("Incomplete datetime"))}}parseTimeSec(){if(isDigit(this.char)){this.consume();if(this.state.buf.length===2){this.state.result+=":"+this.state.buf;this.state.buf="";return this.next(this.parseTimeZoneOrFraction)}}else{throw this.error(new TomlError("Incomplete datetime"))}}parseOnlyTimeHour(){if(this.char===CHAR_COLON){if(this.state.buf.length<2){throw this.error(new TomlError("Hours less than 10 must be zero padded to two characters"))}this.state.result=this.state.buf;this.state.buf="";return this.next(this.parseOnlyTimeMin)}else{throw this.error(new TomlError("Incomplete time"))}}parseOnlyTimeMin(){if(this.state.buf.length<2&&isDigit(this.char)){this.consume()}else if(this.state.buf.length===2&&this.char===CHAR_COLON){this.state.result+=":"+this.state.buf;this.state.buf="";return this.next(this.parseOnlyTimeSec)}else{throw this.error(new TomlError("Incomplete time"))}}parseOnlyTimeSec(){if(isDigit(this.char)){this.consume();if(this.state.buf.length===2){return this.next(this.parseOnlyTimeFractionMaybe)}}else{throw this.error(new TomlError("Incomplete time"))}}parseOnlyTimeFractionMaybe(){this.state.result+=":"+this.state.buf;if(this.char===CHAR_PERIOD){this.state.buf="";this.next(this.parseOnlyTimeFraction)}else{return this.return(createTime(this.state.result))}}parseOnlyTimeFraction(){if(isDigit(this.char)){this.consume()}else if(this.atEndOfWord()){if(this.state.buf.length===0)throw this.error(new TomlError("Expected digit in milliseconds"));return this.returnNow(createTime(this.state.result+"."+this.state.buf))}else{throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}}parseTimeZoneOrFraction(){if(this.char===CHAR_PERIOD){this.consume();this.next(this.parseDateTimeFraction)}else if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS){this.consume();this.next(this.parseTimeZoneHour)}else if(this.char===CHAR_Z){this.consume();return this.return(createDateTime(this.state.result+this.state.buf))}else if(this.atEndOfWord()){return this.returnNow(createDateTimeFloat(this.state.result+this.state.buf))}else{throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}}parseDateTimeFraction(){if(isDigit(this.char)){this.consume()}else if(this.state.buf.length===1){throw this.error(new TomlError("Expected digit in milliseconds"))}else if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS){this.consume();this.next(this.parseTimeZoneHour)}else if(this.char===CHAR_Z){this.consume();return this.return(createDateTime(this.state.result+this.state.buf))}else if(this.atEndOfWord()){return this.returnNow(createDateTimeFloat(this.state.result+this.state.buf))}else{throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}}parseTimeZoneHour(){if(isDigit(this.char)){this.consume();if(/\d\d$/.test(this.state.buf))return this.next(this.parseTimeZoneSep)}else{throw this.error(new TomlError("Unexpected character in datetime, expected digit"))}}parseTimeZoneSep(){if(this.char===CHAR_COLON){this.consume();this.next(this.parseTimeZoneMin)}else{throw this.error(new TomlError("Unexpected character in datetime, expected colon"))}}parseTimeZoneMin(){if(isDigit(this.char)){this.consume();if(/\d\d$/.test(this.state.buf))return this.return(createDateTime(this.state.result+this.state.buf))}else{throw this.error(new TomlError("Unexpected character in datetime, expected digit"))}}parseBoolean(){if(this.char===CHAR_t){this.consume();return this.next(this.parseTrue_r)}else if(this.char===CHAR_f){this.consume();return this.next(this.parseFalse_a)}}parseTrue_r(){if(this.char===CHAR_r){this.consume();return this.next(this.parseTrue_u)}else{throw this.error(new TomlError("Invalid boolean, expected true or false"))}}parseTrue_u(){if(this.char===CHAR_u){this.consume();return this.next(this.parseTrue_e)}else{throw this.error(new TomlError("Invalid boolean, expected true or false"))}}parseTrue_e(){if(this.char===CHAR_e){return this.return(true)}else{throw this.error(new TomlError("Invalid boolean, expected true or false"))}}parseFalse_a(){if(this.char===CHAR_a){this.consume();return this.next(this.parseFalse_l)}else{throw this.error(new TomlError("Invalid boolean, expected true or false"))}}parseFalse_l(){if(this.char===CHAR_l){this.consume();return this.next(this.parseFalse_s)}else{throw this.error(new TomlError("Invalid boolean, expected true or false"))}}parseFalse_s(){if(this.char===CHAR_s){this.consume();return this.next(this.parseFalse_e)}else{throw this.error(new TomlError("Invalid boolean, expected true or false"))}}parseFalse_e(){if(this.char===CHAR_e){return this.return(false)}else{throw this.error(new TomlError("Invalid boolean, expected true or false"))}}parseInlineList(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M||this.char===CTRL_J){return null}else if(this.char===e.END){throw this.error(new TomlError("Unterminated inline array"))}else if(this.char===CHAR_NUM){return this.call(this.parseComment)}else if(this.char===CHAR_RSQB){return this.return(this.state.resultArr||InlineList())}else{return this.callNow(this.parseValue,this.recordInlineListValue)}}recordInlineListValue(e){if(this.state.resultArr){const t=this.state.resultArr[_contentType];const r=tomlType(e);if(t!==r){throw this.error(new TomlError(`Inline lists must be a single type, not a mix of ${t} and ${r}`))}}else{this.state.resultArr=InlineList(tomlType(e))}if(isFloat(e)||isInteger(e)){this.state.resultArr.push(e.valueOf())}else{this.state.resultArr.push(e)}return this.goto(this.parseInlineListNext)}parseInlineListNext(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M||this.char===CTRL_J){return null}else if(this.char===CHAR_NUM){return this.call(this.parseComment)}else if(this.char===CHAR_COMMA){return this.next(this.parseInlineList)}else if(this.char===CHAR_RSQB){return this.goto(this.parseInlineList)}else{throw this.error(new TomlError("Invalid character, expected whitespace, comma (,) or close bracket (])"))}}parseInlineTable(){if(this.char===CHAR_SP||this.char===CTRL_I){return null}else if(this.char===e.END||this.char===CHAR_NUM||this.char===CTRL_J||this.char===CTRL_M){throw this.error(new TomlError("Unterminated inline array"))}else if(this.char===CHAR_RCUB){return this.return(this.state.resultTable||InlineTable())}else{if(!this.state.resultTable)this.state.resultTable=InlineTable();return this.callNow(this.parseAssign,this.recordInlineTableValue)}}recordInlineTableValue(e){let t=this.state.resultTable;let r=e.key.pop();for(let r of e.key){if(hasKey(t,r)&&(!isTable(t[r])||t[r][_declared])){throw this.error(new TomlError("Can't redefine existing key"))}t=t[r]=t[r]||Table()}if(hasKey(t,r)){throw this.error(new TomlError("Can't redefine existing key"))}if(isInteger(e.value)||isFloat(e.value)){t[r]=e.value.valueOf()}else{t[r]=e.value}return this.goto(this.parseInlineTableNext)}parseInlineTableNext(){if(this.char===CHAR_SP||this.char===CTRL_I){return null}else if(this.char===e.END||this.char===CHAR_NUM||this.char===CTRL_J||this.char===CTRL_M){throw this.error(new TomlError("Unterminated inline array"))}else if(this.char===CHAR_COMMA){return this.next(this.parseInlineTable)}else if(this.char===CHAR_RCUB){return this.goto(this.parseInlineTable)}else{throw this.error(new TomlError("Invalid character, expected whitespace, comma (,) or close bracket (])"))}}}return TOMLParser}},6322:(e,t,r)=>{"use strict";e.exports=parseAsync;const s=r(929);const n=r(6112);function parseAsync(e,t){if(!t)t={};const r=0;const o=t.blocksize||40960;const i=new s;return new Promise(((e,t)=>{setImmediate(parseAsyncNext,r,o,e,t)}));function parseAsyncNext(t,r,s,o){if(t>=e.length){try{return s(i.finish())}catch(t){return o(n(t,e))}}try{i.parse(e.slice(t,t+r));setImmediate(parseAsyncNext,t+r,r,s,o)}catch(t){o(n(t,e))}}}},6112:e=>{"use strict";e.exports=prettyError;function prettyError(e,t){if(e.pos==null||e.line==null)return e;let r=e.message;r+=` at row ${e.line+1}, col ${e.col+1}, pos ${e.pos}:\n`;if(t&&t.split){const s=t.split(/\n/);const n=String(Math.min(s.length,e.line+3)).length;let o=" ";while(o.length "+s[t]+"\n";r+=o+" ";for(let t=0;t{"use strict";e.exports=parseStream;const s=r(2413);const n=r(929);function parseStream(e){if(e){return parseReadable(e)}else{return parseTransform(e)}}function parseReadable(e){const t=new n;e.setEncoding("utf8");return new Promise(((r,s)=>{let n;let o=false;let i=false;function finish(){o=true;if(n)return;try{r(t.finish())}catch(e){s(e)}}function error(e){i=true;s(e)}e.once("end",finish);e.once("error",error);readNext();function readNext(){n=true;let r;while((r=e.read())!==null){try{t.parse(r)}catch(e){return error(e)}}n=false;if(o)return finish();if(i)return;e.once("readable",readNext)}}))}function parseTransform(){const e=new n;return new s.Transform({objectMode:true,transform(t,r,s){try{e.parse(t.toString(r))}catch(e){this.emit("error",e)}s()},flush(t){try{this.push(e.finish())}catch(e){this.emit("error",e)}t()}})}},9287:(e,t,r)=>{"use strict";e.exports=parseString;const s=r(929);const n=r(6112);function parseString(e){if(global.Buffer&&global.Buffer.isBuffer(e)){e=e.toString("utf8")}const t=new s;try{t.parse(e);return t.finish()}catch(t){throw n(t,e)}}},5682:(e,t,r)=>{"use strict";e.exports=r(9287);e.exports.async=r(6322);e.exports.stream=r(6681);e.exports.prettyError=r(6112)},5673:e=>{"use strict";e.exports=stringify;e.exports.value=stringifyInline;function stringify(e){if(e===null)throw typeError("null");if(e===void 0)throw typeError("undefined");if(typeof e!=="object")throw typeError(typeof e);if(typeof e.toJSON==="function")e=e.toJSON();if(e==null)return null;const t=tomlType(e);if(t!=="table")throw typeError(t);return stringifyObject("","",e)}function typeError(e){return new Error("Can only stringify objects, not "+e)}function arrayOneTypeError(){return new Error("Array values can't have mixed types")}function getInlineKeys(e){return Object.keys(e).filter((t=>isInline(e[t])))}function getComplexKeys(e){return Object.keys(e).filter((t=>!isInline(e[t])))}function toJSON(e){let t=Array.isArray(e)?[]:Object.prototype.hasOwnProperty.call(e,"__proto__")?{["__proto__"]:undefined}:{};for(let r of Object.keys(e)){if(e[r]&&typeof e[r].toJSON==="function"&&!("toISOString"in e[r])){t[r]=e[r].toJSON()}else{t[r]=e[r]}}return t}function stringifyObject(e,t,r){r=toJSON(r);var s;var n;s=getInlineKeys(r);n=getComplexKeys(r);var o=[];var i=t||"";s.forEach((e=>{var t=tomlType(r[e]);if(t!=="undefined"&&t!=="null"){o.push(i+stringifyKey(e)+" = "+stringifyAnyInline(r[e],true))}}));if(o.length>0)o.push("");var a=e&&s.length>0?t+" ":"";n.forEach((t=>{o.push(stringifyComplex(e,a,t,r[t]))}));return o.join("\n")}function isInline(e){switch(tomlType(e)){case"undefined":case"null":case"integer":case"nan":case"float":case"boolean":case"string":case"datetime":return true;case"array":return e.length===0||tomlType(e[0])!=="table";case"table":return Object.keys(e).length===0;default:return false}}function tomlType(e){if(e===undefined){return"undefined"}else if(e===null){return"null"}else if(typeof e==="bigint"||Number.isInteger(e)&&!Object.is(e,-0)){return"integer"}else if(typeof e==="number"){return"float"}else if(typeof e==="boolean"){return"boolean"}else if(typeof e==="string"){return"string"}else if("toISOString"in e){return isNaN(e)?"undefined":"datetime"}else if(Array.isArray(e)){return"array"}else{return"table"}}function stringifyKey(e){var t=String(e);if(/^[-A-Za-z0-9_]+$/.test(t)){return t}else{return stringifyBasicString(t)}}function stringifyBasicString(e){return'"'+escapeString(e).replace(/"/g,'\\"')+'"'}function stringifyLiteralString(e){return"'"+e+"'"}function numpad(e,t){while(t.length"\\u"+numpad(4,e.codePointAt(0).toString(16))))}function stringifyMultilineString(e){let t=e.split(/\n/).map((e=>escapeString(e).replace(/"(?="")/g,'\\"'))).join("\n");if(t.slice(-1)==='"')t+="\\\n";return'"""\n'+t+'"""'}function stringifyAnyInline(e,t){let r=tomlType(e);if(r==="string"){if(t&&/\n/.test(e)){r="string-multiline"}else if(!/[\b\t\n\f\r']/.test(e)&&/"/.test(e)){r="string-literal"}}return stringifyInline(e,r)}function stringifyInline(e,t){if(!t)t=tomlType(e);switch(t){case"string-multiline":return stringifyMultilineString(e);case"string":return stringifyBasicString(e);case"string-literal":return stringifyLiteralString(e);case"integer":return stringifyInteger(e);case"float":return stringifyFloat(e);case"boolean":return stringifyBoolean(e);case"datetime":return stringifyDatetime(e);case"array":return stringifyInlineArray(e.filter((e=>tomlType(e)!=="null"&&tomlType(e)!=="undefined"&&tomlType(e)!=="nan")));case"table":return stringifyInlineTable(e);default:throw typeError(t)}}function stringifyInteger(e){return String(e).replace(/\B(?=(\d{3})+(?!\d))/g,"_")}function stringifyFloat(e){if(e===Infinity){return"inf"}else if(e===-Infinity){return"-inf"}else if(Object.is(e,NaN)){return"nan"}else if(Object.is(e,-0)){return"-0.0"}var t=String(e).split(".");var r=t[0];var s=t[1]||0;return stringifyInteger(r)+"."+s}function stringifyBoolean(e){return String(e)}function stringifyDatetime(e){return e.toISOString()}function isNumber(e){return e==="float"||e==="integer"}function arrayType(e){var t=tomlType(e[0]);if(e.every((e=>tomlType(e)===t)))return t;if(e.every((e=>isNumber(tomlType(e)))))return"float";return"mixed"}function validateArray(e){const t=arrayType(e);if(t==="mixed"){throw arrayOneTypeError()}return t}function stringifyInlineArray(e){e=toJSON(e);const t=validateArray(e);var r="[";var s=e.map((e=>stringifyInline(e,t)));if(s.join(", ").length>60||/\n/.test(s)){r+="\n "+s.join(",\n ")+"\n"}else{r+=" "+s.join(", ")+(s.length>0?" ":"")}return r+"]"}function stringifyInlineTable(e){e=toJSON(e);var t=[];Object.keys(e).forEach((r=>{t.push(stringifyKey(r)+" = "+stringifyAnyInline(e[r],false))}));return"{ "+t.join(", ")+(t.length>0?" ":"")+"}"}function stringifyComplex(e,t,r,s){var n=tomlType(s);if(n==="array"){return stringifyArrayOfTables(e,t,r,s)}else if(n==="table"){return stringifyComplexTable(e,t,r,s)}else{throw typeError(n)}}function stringifyArrayOfTables(e,t,r,s){s=toJSON(s);validateArray(s);var n=tomlType(s[0]);if(n!=="table")throw typeError(n);var o=e+stringifyKey(r);var i="";s.forEach((e=>{if(i.length>0)i+="\n";i+=t+"[["+o+"]]\n";i+=stringifyObject(o+".",t,e)}));return i}function stringifyComplexTable(e,t,r,s){var n=e+stringifyKey(r);var o="";if(getInlineKeys(s).length>0){o+=t+"["+n+"]\n"}return o+stringifyObject(n+".",t,s)}},9434:(e,t,r)=>{"use strict";t.parse=r(5682);t.stringify=r(5673)},6258:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});async function auth(e){const t=e.split(/\./).length===3?"app":/^v\d+\./.test(e)?"installation":"oauth";return{type:"token",token:e,tokenType:t}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,r,s){const n=t.endpoint.merge(r,s);n.headers.authorization=withAuthorizationPrefix(e);return t(n)}const r=function createTokenAuth(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};t.createTokenAuth=r},5341:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var s=r(5212);var n=r(3635);var o=r(8410);var i=r(8559);var a=r(6258);function _objectWithoutPropertiesLoose(e,t){if(e==null)return{};var r={};var s=Object.keys(e);var n,o;for(o=0;o=0)continue;r[n]=e[n]}return r}function _objectWithoutProperties(e,t){if(e==null)return{};var r=_objectWithoutPropertiesLoose(e,t);var s,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,s))continue;r[s]=e[s]}}return r}const c="3.2.5";class Octokit{constructor(e={}){const t=new n.Collection;const r={baseUrl:o.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};r.headers["user-agent"]=[e.userAgent,`octokit-core.js/${c} ${s.getUserAgent()}`].filter(Boolean).join(" ");if(e.baseUrl){r.baseUrl=e.baseUrl}if(e.previews){r.mediaType.previews=e.previews}if(e.timeZone){r.headers["time-zone"]=e.timeZone}this.request=o.request.defaults(r);this.graphql=i.withCustomRequest(this.request).defaults(r);this.log=Object.assign({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},e.log);this.hook=t;if(!e.authStrategy){if(!e.auth){this.auth=async()=>({type:"unauthenticated"})}else{const r=a.createTokenAuth(e.auth);t.wrap("request",r.hook);this.auth=r}}else{const{authStrategy:r}=e,s=_objectWithoutProperties(e,["authStrategy"]);const n=r(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:s},e.auth));t.wrap("request",n.hook);this.auth=n}const u=this.constructor;u.plugins.forEach((t=>{Object.assign(this,t(this,e))}))}static defaults(e){const t=class extends(this){constructor(...t){const r=t[0]||{};if(typeof e==="function"){super(e(r));return}super(Object.assign({},e,r,r.userAgent&&e.userAgent?{userAgent:`${r.userAgent} ${e.userAgent}`}:null))}};return t}static plugin(...e){var t;const r=this.plugins;const s=(t=class extends(this){},t.plugins=r.concat(e.filter((e=>!r.includes(e)))),t);return s}}Octokit.VERSION=c;Octokit.plugins=[];t.Octokit=Octokit},8773:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var s=r(9455);var n=r(5212);function lowercaseKeys(e){if(!e){return{}}return Object.keys(e).reduce(((t,r)=>{t[r.toLowerCase()]=e[r];return t}),{})}function mergeDeep(e,t){const r=Object.assign({},e);Object.keys(t).forEach((n=>{if(s.isPlainObject(t[n])){if(!(n in e))Object.assign(r,{[n]:t[n]});else r[n]=mergeDeep(e[n],t[n])}else{Object.assign(r,{[n]:t[n]})}}));return r}function removeUndefinedProperties(e){for(const t in e){if(e[t]===undefined){delete e[t]}}return e}function merge(e,t,r){if(typeof t==="string"){let[e,s]=t.split(" ");r=Object.assign(s?{method:e,url:s}:{url:e},r)}else{r=Object.assign({},t)}r.headers=lowercaseKeys(r.headers);removeUndefinedProperties(r);removeUndefinedProperties(r.headers);const s=mergeDeep(e||{},r);if(e&&e.mediaType.previews.length){s.mediaType.previews=e.mediaType.previews.filter((e=>!s.mediaType.previews.includes(e))).concat(s.mediaType.previews)}s.mediaType.previews=s.mediaType.previews.map((e=>e.replace(/-preview/,"")));return s}function addQueryParameters(e,t){const r=/\?/.test(e)?"&":"?";const s=Object.keys(t);if(s.length===0){return e}return e+r+s.map((e=>{if(e==="q"){return"q="+t.q.split("+").map(encodeURIComponent).join("+")}return`${e}=${encodeURIComponent(t[e])}`})).join("&")}const o=/\{[^}]+\}/g;function removeNonChars(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(e){const t=e.match(o);if(!t){return[]}return t.map(removeNonChars).reduce(((e,t)=>e.concat(t)),[])}function omit(e,t){return Object.keys(e).filter((e=>!t.includes(e))).reduce(((t,r)=>{t[r]=e[r];return t}),{})}function encodeReserved(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){if(!/%[0-9A-Fa-f]/.test(e)){e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")}return e})).join("")}function encodeUnreserved(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(e,t,r){t=e==="+"||e==="#"?encodeReserved(t):encodeUnreserved(t);if(r){return encodeUnreserved(r)+"="+t}else{return t}}function isDefined(e){return e!==undefined&&e!==null}function isKeyOperator(e){return e===";"||e==="&"||e==="?"}function getValues(e,t,r,s){var n=e[r],o=[];if(isDefined(n)&&n!==""){if(typeof n==="string"||typeof n==="number"||typeof n==="boolean"){n=n.toString();if(s&&s!=="*"){n=n.substring(0,parseInt(s,10))}o.push(encodeValue(t,n,isKeyOperator(t)?r:""))}else{if(s==="*"){if(Array.isArray(n)){n.filter(isDefined).forEach((function(e){o.push(encodeValue(t,e,isKeyOperator(t)?r:""))}))}else{Object.keys(n).forEach((function(e){if(isDefined(n[e])){o.push(encodeValue(t,n[e],e))}}))}}else{const e=[];if(Array.isArray(n)){n.filter(isDefined).forEach((function(r){e.push(encodeValue(t,r))}))}else{Object.keys(n).forEach((function(r){if(isDefined(n[r])){e.push(encodeUnreserved(r));e.push(encodeValue(t,n[r].toString()))}}))}if(isKeyOperator(t)){o.push(encodeUnreserved(r)+"="+e.join(","))}else if(e.length!==0){o.push(e.join(","))}}}}else{if(t===";"){if(isDefined(n)){o.push(encodeUnreserved(r))}}else if(n===""&&(t==="&"||t==="?")){o.push(encodeUnreserved(r)+"=")}else if(n===""){o.push("")}}return o}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,t){var r=["+","#",".","/",";","?","&"];return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(e,s,n){if(s){let e="";const n=[];if(r.indexOf(s.charAt(0))!==-1){e=s.charAt(0);s=s.substr(1)}s.split(/,/g).forEach((function(r){var s=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);n.push(getValues(t,e,s[1],s[2]||s[3]))}));if(e&&e!=="+"){var o=",";if(e==="?"){o="&"}else if(e!=="#"){o=e}return(n.length!==0?e:"")+n.join(o)}else{return n.join(",")}}else{return encodeReserved(n)}}))}function parse(e){let t=e.method.toUpperCase();let r=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let s=Object.assign({},e.headers);let n;let o=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const i=extractUrlVariableNames(r);r=parseUrl(r).expand(o);if(!/^http/.test(r)){r=e.baseUrl+r}const a=Object.keys(e).filter((e=>i.includes(e))).concat("baseUrl");const c=omit(o,a);const u=/application\/octet-stream/i.test(s.accept);if(!u){if(e.mediaType.format){s.accept=s.accept.split(/,/).map((t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`))).join(",")}if(e.mediaType.previews.length){const t=s.accept.match(/[\w-]+(?=-preview)/g)||[];s.accept=t.concat(e.mediaType.previews).map((t=>{const r=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${t}-preview${r}`})).join(",")}}if(["GET","HEAD"].includes(t)){r=addQueryParameters(r,c)}else{if("data"in c){n=c.data}else{if(Object.keys(c).length){n=c}else{s["content-length"]=0}}}if(!s["content-type"]&&typeof n!=="undefined"){s["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(t)&&typeof n==="undefined"){n=""}return Object.assign({method:t,url:r,headers:s},typeof n!=="undefined"?{body:n}:null,e.request?{request:e.request}:null)}function endpointWithDefaults(e,t,r){return parse(merge(e,t,r))}function withDefaults(e,t){const r=merge(e,t);const s=endpointWithDefaults.bind(null,r);return Object.assign(s,{DEFAULTS:r,defaults:withDefaults.bind(null,r),merge:merge.bind(null,r),parse:parse})}const i="6.0.11";const a=`octokit-endpoint.js/${i} ${n.getUserAgent()}`;const c={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":a},mediaType:{format:"",previews:[]}};const u=withDefaults(null,c);t.endpoint=u},8559:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var s=r(8410);var n=r(5212);const o="4.6.0";class GraphqlError extends Error{constructor(e,t){const r=t.data.errors[0].message;super(r);Object.assign(this,t.data);Object.assign(this,{headers:t.headers});this.name="GraphqlError";this.request=e;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}}const i=["method","baseUrl","url","headers","request","query","mediaType"];const a=/\/api\/v3\/?$/;function graphql(e,t,r){if(typeof t==="string"&&r&&"query"in r){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}const s=typeof t==="string"?Object.assign({query:t},r):t;const n=Object.keys(s).reduce(((e,t)=>{if(i.includes(t)){e[t]=s[t];return e}if(!e.variables){e.variables={}}e.variables[t]=s[t];return e}),{});const o=s.baseUrl||e.endpoint.DEFAULTS.baseUrl;if(a.test(o)){n.url=o.replace(a,"/api/graphql")}return 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 GraphqlError(n,{headers:t,data:e.data})}return e.data.data}))}function withDefaults(e,t){const r=e.defaults(t);const newApi=(e,t)=>graphql(r,e,t);return Object.assign(newApi,{defaults:withDefaults.bind(null,r),endpoint:s.request.endpoint})}const c=withDefaults(s.request,{headers:{"user-agent":`octokit-graphql.js/${o} ${n.getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return withDefaults(e,{method:"POST",url:"/graphql"})}t.graphql=c;t.withCustomRequest=withCustomRequest},8100:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r="2.9.1";function normalizePaginatedListResponse(e){const t="total_count"in e.data&&!("url"in e.data);if(!t)return e;const r=e.data.incomplete_results;const s=e.data.repository_selection;const n=e.data.total_count;delete e.data.incomplete_results;delete e.data.repository_selection;delete e.data.total_count;const o=Object.keys(e.data)[0];const i=e.data[o];e.data=i;if(typeof r!=="undefined"){e.data.incomplete_results=r}if(typeof s!=="undefined"){e.data.repository_selection=s}e.data.total_count=n;return e}function iterator(e,t,r){const s=typeof t==="function"?t.endpoint(r):e.request.endpoint(t,r);const n=typeof t==="function"?t:e.request;const o=s.method;const i=s.headers;let a=s.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!a)return{done:true};const e=await n({method:o,url:a,headers:i});const t=normalizePaginatedListResponse(e);a=((t.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:t}}})}}function paginate(e,t,r,s){if(typeof r==="function"){s=r;r=undefined}return gather(e,[],iterator(e,t,r)[Symbol.asyncIterator](),s)}function gather(e,t,r,s){return r.next().then((n=>{if(n.done){return t}let o=false;function done(){o=true}t=t.concat(s?s(n.value,done):n.value.data);if(o){return t}return gather(e,t,r,s)}))}const s=Object.assign(paginate,{iterator:iterator});function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=r;t.composePaginateRest=s;t.paginateRest=paginateRest},6690:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r={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"],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:{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:{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"]},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"}],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"]}};const s="4.10.3";function endpointsToMethods(e,t){const r={};for(const[s,n]of Object.entries(t)){for(const[t,o]of Object.entries(n)){const[n,i,a]=o;const[c,u]=n.split(/ /);const l=Object.assign({method:c,url:u},i);if(!r[s]){r[s]={}}const p=r[s];if(a){p[t]=decorate(e,s,t,l,a);continue}p[t]=e.request.defaults(l)}}return r}function decorate(e,t,r,s,n){const o=e.request.defaults(s);function withDecorations(...s){let i=o.endpoint.merge(...s);if(n.mapToData){i=Object.assign({},i,{data:i[n.mapToData],[n.mapToData]:undefined});return o(i)}if(n.renamed){const[s,o]=n.renamed;e.log.warn(`octokit.${t}.${r}() has been renamed to octokit.${s}.${o}()`)}if(n.deprecated){e.log.warn(n.deprecated)}if(n.renamedParameters){const i=o.endpoint.merge(...s);for(const[s,o]of Object.entries(n.renamedParameters)){if(s in i){e.log.warn(`"${s}" parameter is deprecated for "octokit.${t}.${r}()". Use "${o}" instead`);if(!(o in i)){i[o]=i[s]}delete i[s]}}return o(i)}return o(...s)}return Object.assign(withDecorations,o)}function restEndpointMethods(e){return endpointsToMethods(e,r)}restEndpointMethods.VERSION=s;t.restEndpointMethods=restEndpointMethods},8696:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var s=r(5297);var n=_interopDefault(r(7197));const o=n((e=>console.warn(e)));class RequestError extends Error{constructor(e,t,r){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.status=t;Object.defineProperty(this,"code",{get(){o(new s.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return t}});this.headers=r.headers||{};const n=Object.assign({},r.request);if(r.request.headers.authorization){n.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}n.url=n.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=n}}t.RequestError=RequestError},8410:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var s=r(8773);var n=r(5212);var o=r(9455);var i=_interopDefault(r(2197));var a=r(8696);const c="5.4.14";function getBufferResponse(e){return e.arrayBuffer()}function fetchWrapper(e){if(o.isPlainObject(e.body)||Array.isArray(e.body)){e.body=JSON.stringify(e.body)}let t={};let r;let s;const n=e.request&&e.request.fetch||i;return n(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect},e.request)).then((n=>{s=n.url;r=n.status;for(const e of n.headers){t[e[0]]=e[1]}if(r===204||r===205){return}if(e.method==="HEAD"){if(r<400){return}throw new a.RequestError(n.statusText,r,{headers:t,request:e})}if(r===304){throw new a.RequestError("Not modified",r,{headers:t,request:e})}if(r>=400){return n.text().then((s=>{const n=new a.RequestError(s,r,{headers:t,request:e});try{let e=JSON.parse(n.message);Object.assign(n,e);let t=e.errors;n.message=n.message+": "+t.map(JSON.stringify).join(", ")}catch(e){}throw n}))}const o=n.headers.get("content-type");if(/application\/json/.test(o)){return n.json()}if(!o||/^text\/|charset=utf-8$/.test(o)){return n.text()}return getBufferResponse(n)})).then((e=>({status:r,url:s,headers:t,data:e}))).catch((r=>{if(r instanceof a.RequestError){throw r}throw new a.RequestError(r.message,500,{headers:t,request:e})}))}function withDefaults(e,t){const r=e.defaults(t);const newApi=function(e,t){const s=r.merge(e,t);if(!s.request||!s.request.hook){return fetchWrapper(r.parse(s))}const request=(e,t)=>fetchWrapper(r.parse(r.merge(e,t)));Object.assign(request,{endpoint:r,defaults:withDefaults.bind(null,r)});return s.request.hook(request,s)};return Object.assign(newApi,{endpoint:r,defaults:withDefaults.bind(null,r)})}const u=withDefaults(s.endpoint,{headers:{"user-agent":`octokit-request.js/${c} ${n.getUserAgent()}`}});t.request=u},3635:(e,t,r)=>{var s=r(8195);var n=r(8491);var o=r(48);var i=Function.bind;var a=i.bind(i);function bindApi(e,t,r){var s=a(o,null).apply(null,r?[t,r]:[t]);e.api={remove:s};e.remove=s;["before","error","after","wrap"].forEach((function(s){var o=r?[t,s,r]:[t,s];e[s]=e.api[s]=a(n,null).apply(null,o)}))}function HookSingular(){var e="h";var t={registry:{}};var r=s.bind(null,t,e);bindApi(r,t,e);return r}function HookCollection(){var e={registry:{}};var t=s.bind(null,e);bindApi(t,e);return t}var c=false;function Hook(){if(!c){console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4');c=true}return HookCollection()}Hook.Singular=HookSingular.bind();Hook.Collection=HookCollection.bind();e.exports=Hook;e.exports.Hook=Hook;e.exports.Singular=Hook.Singular;e.exports.Collection=Hook.Collection},8491:e=>{e.exports=addHook;function addHook(e,t,r,s){var n=s;if(!e.registry[r]){e.registry[r]=[]}if(t==="before"){s=function(e,t){return Promise.resolve().then(n.bind(null,t)).then(e.bind(null,t))}}if(t==="after"){s=function(e,t){var r;return Promise.resolve().then(e.bind(null,t)).then((function(e){r=e;return n(r,t)})).then((function(){return r}))}}if(t==="error"){s=function(e,t){return Promise.resolve().then(e.bind(null,t)).catch((function(e){return n(e,t)}))}}e.registry[r].push({hook:s,orig:n})}},8195:e=>{e.exports=register;function register(e,t,r,s){if(typeof r!=="function"){throw new Error("method for before hook must be a function")}if(!s){s={}}if(Array.isArray(t)){return t.reverse().reduce((function(t,r){return register.bind(null,e,r,t,s)}),r)()}return Promise.resolve().then((function(){if(!e.registry[t]){return r(s)}return e.registry[t].reduce((function(e,t){return t.hook.bind(null,e,s)}),r)()}))}},48:e=>{e.exports=removeHook;function removeHook(e,t,r){if(!e.registry[t]){return}var s=e.registry[t].map((function(e){return e.orig})).indexOf(r);if(s===-1){return}e.registry[t].splice(s,1)}},7987:(e,t,r)=>{"use strict";const s=r(3129);const n=r(1655);const o=r(9738);function spawn(e,t,r){const i=n(e,t,r);const a=s.spawn(i.command,i.args,i.options);o.hookChildProcess(a,i);return a}function spawnSync(e,t,r){const i=n(e,t,r);const a=s.spawnSync(i.command,i.args,i.options);a.error=a.error||o.verifyENOENTSync(a.status,i);return a}e.exports=spawn;e.exports.spawn=spawn;e.exports.sync=spawnSync;e.exports._parse=n;e.exports._enoent=o},9738:e=>{"use strict";const t=process.platform==="win32";function notFoundError(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function hookChildProcess(e,r){if(!t){return}const s=e.emit;e.emit=function(t,n){if(t==="exit"){const t=verifyENOENT(n,r,"spawn");if(t){return s.call(e,"error",t)}}return s.apply(e,arguments)}}function verifyENOENT(e,r){if(t&&e===1&&!r.file){return notFoundError(r.original,"spawn")}return null}function verifyENOENTSync(e,r){if(t&&e===1&&!r.file){return notFoundError(r.original,"spawnSync")}return null}e.exports={hookChildProcess:hookChildProcess,verifyENOENT:verifyENOENT,verifyENOENTSync:verifyENOENTSync,notFoundError:notFoundError}},1655:(e,t,r)=>{"use strict";const s=r(5622);const n=r(7534);const o=r(8902);const i=r(2964);const a=process.platform==="win32";const c=/\.(?:com|exe)$/i;const u=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function detectShebang(e){e.file=n(e);const t=e.file&&i(e.file);if(t){e.args.unshift(e.file);e.command=t;return n(e)}return e.file}function parseNonShell(e){if(!a){return e}const t=detectShebang(e);const r=!c.test(t);if(e.options.forceShell||r){const r=u.test(t);e.command=s.normalize(e.command);e.command=o.command(e.command);e.args=e.args.map((e=>o.argument(e,r)));const n=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${n}"`];e.command=process.env.comspec||"cmd.exe";e.options.windowsVerbatimArguments=true}return e}function parse(e,t,r){if(t&&!Array.isArray(t)){r=t;t=null}t=t?t.slice(0):[];r=Object.assign({},r);const s={command:e,args:t,options:r,file:undefined,original:{command:e,args:t}};return r.shell?s:parseNonShell(s)}e.exports=parse},8902:e=>{"use strict";const t=/([()\][%!^"`<>&|;, *?])/g;function escapeCommand(e){e=e.replace(t,"^$1");return e}function escapeArgument(e,r){e=`${e}`;e=e.replace(/(\\*)"/g,'$1$1\\"');e=e.replace(/(\\*)$/,"$1$1");e=`"${e}"`;e=e.replace(t,"^$1");if(r){e=e.replace(t,"^$1")}return e}e.exports.command=escapeCommand;e.exports.argument=escapeArgument},2964:(e,t,r)=>{"use strict";const s=r(5747);const n=r(4970);function readShebang(e){const t=150;const r=Buffer.alloc(t);let o;try{o=s.openSync(e,"r");s.readSync(o,r,0,t,0);s.closeSync(o)}catch(e){}return n(r.toString())}e.exports=readShebang},7534:(e,t,r)=>{"use strict";const s=r(5622);const n=r(8201);const o=r(2170);function resolveCommandAttempt(e,t){const r=e.options.env||process.env;const i=process.cwd();const a=e.options.cwd!=null;const c=a&&process.chdir!==undefined&&!process.chdir.disabled;if(c){try{process.chdir(e.options.cwd)}catch(e){}}let u;try{u=n.sync(e.command,{path:r[o({env:r})],pathExt:t?s.delimiter:undefined})}catch(e){}finally{if(c){process.chdir(i)}}if(u){u=s.resolve(a?e.options.cwd:"",u)}return u}function resolveCommand(e){return resolveCommandAttempt(e)||resolveCommandAttempt(e,true)}e.exports=resolveCommand},5297:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class Deprecation extends Error{constructor(e){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="Deprecation"}}t.Deprecation=Deprecation},580:(e,t,r)=>{"use strict";const s=r(5622);const n=r(3129);const o=r(7987);const i=r(6831);const a=r(1783);const c=r(7462);const u=r(6123);const l=r(8205);const{spawnedKill:p,spawnedCancel:h,setupTimeout:d,setExitHandler:m}=r(6482);const{handleInput:g,getSpawnedResult:b,makeAllStream:w,validateInputSync:T}=r(469);const{mergePromise:y,getSpawnedPromise:_}=r(3563);const{joinCommand:E,parseCommand:v}=r(747);const O=1e3*1e3*100;const getEnv=({env:e,extendEnv:t,preferLocal:r,localDir:s,execPath:n})=>{const o=t?{...process.env,...e}:e;if(r){return a.env({env:o,cwd:s,execPath:n})}return o};const handleArguments=(e,t,r={})=>{const n=o._parse(e,t,r);e=n.command;t=n.args;r=n.options;r={maxBuffer:O,buffer:true,stripFinalNewline:true,extendEnv:true,preferLocal:false,localDir:r.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:true,cleanup:true,all:false,windowsHide:true,...r};r.env=getEnv(r);r.stdio=l(r);if(process.platform==="win32"&&s.basename(e,".exe")==="cmd"){t.unshift("/q")}return{file:e,args:t,options:r,parsed:n}};const handleOutput=(e,t,r)=>{if(typeof t!=="string"&&!Buffer.isBuffer(t)){return r===undefined?undefined:""}if(e.stripFinalNewline){return i(t)}return t};const execa=(e,t,r)=>{const s=handleArguments(e,t,r);const o=E(e,t);let i;try{i=n.spawn(s.file,s.args,s.options)}catch(e){const t=new n.ChildProcess;const r=Promise.reject(u({error:e,stdout:"",stderr:"",all:"",command:o,parsed:s,timedOut:false,isCanceled:false,killed:false}));return y(t,r)}const a=_(i);const l=d(i,s.options,a);const T=m(i,s.options,l);const v={isCanceled:false};i.kill=p.bind(null,i.kill.bind(i));i.cancel=h.bind(null,i,v);const handlePromise=async()=>{const[{error:e,exitCode:t,signal:r,timedOut:n},a,c,l]=await b(i,s.options,T);const p=handleOutput(s.options,a);const h=handleOutput(s.options,c);const d=handleOutput(s.options,l);if(e||t!==0||r!==null){const a=u({error:e,exitCode:t,signal:r,stdout:p,stderr:h,all:d,command:o,parsed:s,timedOut:n,isCanceled:v.isCanceled,killed:i.killed});if(!s.options.reject){return a}throw a}return{command:o,exitCode:0,stdout:p,stderr:h,all:d,failed:false,timedOut:false,isCanceled:false,killed:false}};const O=c(handlePromise);g(i,s.options.input);i.all=w(i,s.options);return y(i,O)};e.exports=execa;e.exports.sync=(e,t,r)=>{const s=handleArguments(e,t,r);const o=E(e,t);T(s.options);let i;try{i=n.spawnSync(s.file,s.args,s.options)}catch(e){throw u({error:e,stdout:"",stderr:"",all:"",command:o,parsed:s,timedOut:false,isCanceled:false,killed:false})}const a=handleOutput(s.options,i.stdout,i.error);const c=handleOutput(s.options,i.stderr,i.error);if(i.error||i.status!==0||i.signal!==null){const e=u({stdout:a,stderr:c,error:i.error,signal:i.signal,exitCode:i.status,command:o,parsed:s,timedOut:i.error&&i.error.code==="ETIMEDOUT",isCanceled:false,killed:i.signal!==null});if(!s.options.reject){return e}throw e}return{command:o,exitCode:0,stdout:a,stderr:c,failed:false,timedOut:false,isCanceled:false,killed:false}};e.exports.command=(e,t)=>{const[r,...s]=v(e);return execa(r,s,t)};e.exports.commandSync=(e,t)=>{const[r,...s]=v(e);return execa.sync(r,s,t)};e.exports.node=(e,t,r={})=>{if(t&&!Array.isArray(t)&&typeof t==="object"){r=t;t=[]}const s=l.node(r);const n=process.execArgv.filter((e=>!e.startsWith("--inspect")));const{nodePath:o=process.execPath,nodeOptions:i=n}=r;return execa(o,[...i,e,...Array.isArray(t)?t:[]],{...r,stdin:undefined,stdout:undefined,stderr:undefined,stdio:s,shell:false})}},747:e=>{"use strict";const t=/ +/g;const joinCommand=(e,t=[])=>{if(!Array.isArray(t)){return e}return[e,...t].join(" ")};const parseCommand=e=>{const r=[];for(const s of e.trim().split(t)){const e=r[r.length-1];if(e&&e.endsWith("\\")){r[r.length-1]=`${e.slice(0,-1)} ${s}`}else{r.push(s)}}return r};e.exports={joinCommand:joinCommand,parseCommand:parseCommand}},6123:(e,t,r)=>{"use strict";const{signalsByName:s}=r(5739);const getErrorPrefix=({timedOut:e,timeout:t,errorCode:r,signal:s,signalDescription:n,exitCode:o,isCanceled:i})=>{if(e){return`timed out after ${t} milliseconds`}if(i){return"was canceled"}if(r!==undefined){return`failed with ${r}`}if(s!==undefined){return`was killed with ${s} (${n})`}if(o!==undefined){return`failed with exit code ${o}`}return"failed"};const makeError=({stdout:e,stderr:t,all:r,error:n,signal:o,exitCode:i,command:a,timedOut:c,isCanceled:u,killed:l,parsed:{options:{timeout:p}}})=>{i=i===null?undefined:i;o=o===null?undefined:o;const h=o===undefined?undefined:s[o].description;const d=n&&n.code;const m=getErrorPrefix({timedOut:c,timeout:p,errorCode:d,signal:o,signalDescription:h,exitCode:i,isCanceled:u});const g=`Command ${m}: ${a}`;const b=Object.prototype.toString.call(n)==="[object Error]";const w=b?`${g}\n${n.message}`:g;const T=[w,t,e].filter(Boolean).join("\n");if(b){n.originalMessage=n.message;n.message=T}else{n=new Error(T)}n.shortMessage=w;n.command=a;n.exitCode=i;n.signal=o;n.signalDescription=h;n.stdout=e;n.stderr=t;if(r!==undefined){n.all=r}if("bufferedData"in n){delete n.bufferedData}n.failed=true;n.timedOut=Boolean(c);n.isCanceled=u;n.killed=l&&!c;return n};e.exports=makeError},6482:(e,t,r)=>{"use strict";const s=r(2087);const n=r(2028);const o=1e3*5;const spawnedKill=(e,t="SIGTERM",r={})=>{const s=e(t);setKillTimeout(e,t,r,s);return s};const setKillTimeout=(e,t,r,s)=>{if(!shouldForceKill(t,r,s)){return}const n=getForceKillAfterTimeout(r);const o=setTimeout((()=>{e("SIGKILL")}),n);if(o.unref){o.unref()}};const shouldForceKill=(e,{forceKillAfterTimeout:t},r)=>isSigterm(e)&&t!==false&&r;const isSigterm=e=>e===s.constants.signals.SIGTERM||typeof e==="string"&&e.toUpperCase()==="SIGTERM";const getForceKillAfterTimeout=({forceKillAfterTimeout:e=true})=>{if(e===true){return o}if(!Number.isFinite(e)||e<0){throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)}return e};const spawnedCancel=(e,t)=>{const r=e.kill();if(r){t.isCanceled=true}};const timeoutKill=(e,t,r)=>{e.kill(t);r(Object.assign(new Error("Timed out"),{timedOut:true,signal:t}))};const setupTimeout=(e,{timeout:t,killSignal:r="SIGTERM"},s)=>{if(t===0||t===undefined){return s}if(!Number.isFinite(t)||t<0){throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`)}let n;const o=new Promise(((s,o)=>{n=setTimeout((()=>{timeoutKill(e,r,o)}),t)}));const i=s.finally((()=>{clearTimeout(n)}));return Promise.race([o,i])};const setExitHandler=async(e,{cleanup:t,detached:r},s)=>{if(!t||r){return s}const o=n((()=>{e.kill()}));return s.finally((()=>{o()}))};e.exports={spawnedKill:spawnedKill,spawnedCancel:spawnedCancel,setupTimeout:setupTimeout,setExitHandler:setExitHandler}},3563:e=>{"use strict";const t=(async()=>{})().constructor.prototype;const r=["then","catch","finally"].map((e=>[e,Reflect.getOwnPropertyDescriptor(t,e)]));const mergePromise=(e,t)=>{for(const[s,n]of r){const r=typeof t==="function"?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,s,{...n,value:r})}return e};const getSpawnedPromise=e=>new Promise(((t,r)=>{e.on("exit",((e,r)=>{t({exitCode:e,signal:r})}));e.on("error",(e=>{r(e)}));if(e.stdin){e.stdin.on("error",(e=>{r(e)}))}}));e.exports={mergePromise:mergePromise,getSpawnedPromise:getSpawnedPromise}},8205:e=>{"use strict";const t=["stdin","stdout","stderr"];const hasAlias=e=>t.some((t=>e[t]!==undefined));const normalizeStdio=e=>{if(!e){return}const{stdio:r}=e;if(r===undefined){return t.map((t=>e[t]))}if(hasAlias(e)){throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${t.map((e=>`\`${e}\``)).join(", ")}`)}if(typeof r==="string"){return r}if(!Array.isArray(r)){throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof r}\``)}const s=Math.max(r.length,t.length);return Array.from({length:s},((e,t)=>r[t]))};e.exports=normalizeStdio;e.exports.node=e=>{const t=normalizeStdio(e);if(t==="ipc"){return"ipc"}if(t===undefined||typeof t==="string"){return[t,t,t,"ipc"]}if(t.includes("ipc")){return t}return[...t,"ipc"]}},469:(e,t,r)=>{"use strict";const s=r(1381);const n=r(9136);const o=r(6281);const handleInput=(e,t)=>{if(t===undefined||e.stdin===undefined){return}if(s(t)){t.pipe(e.stdin)}else{e.stdin.end(t)}};const makeAllStream=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr){return}const r=o();if(e.stdout){r.add(e.stdout)}if(e.stderr){r.add(e.stderr)}return r};const getBufferedData=async(e,t)=>{if(!e){return}e.destroy();try{return await t}catch(e){return e.bufferedData}};const getStreamPromise=(e,{encoding:t,buffer:r,maxBuffer:s})=>{if(!e||!r){return}if(t){return n(e,{encoding:t,maxBuffer:s})}return n.buffer(e,{maxBuffer:s})};const getSpawnedResult=async({stdout:e,stderr:t,all:r},{encoding:s,buffer:n,maxBuffer:o},i)=>{const a=getStreamPromise(e,{encoding:s,buffer:n,maxBuffer:o});const c=getStreamPromise(t,{encoding:s,buffer:n,maxBuffer:o});const u=getStreamPromise(r,{encoding:s,buffer:n,maxBuffer:o*2});try{return await Promise.all([i,a,c,u])}catch(s){return Promise.all([{error:s,signal:s.signal,timedOut:s.timedOut},getBufferedData(e,a),getBufferedData(t,c),getBufferedData(r,u)])}};const validateInputSync=({input:e})=>{if(s(e)){throw new TypeError("The `input` option cannot be a stream in sync mode")}};e.exports={handleInput:handleInput,makeAllStream:makeAllStream,getSpawnedResult:getSpawnedResult,validateInputSync:validateInputSync}},9114:(e,t,r)=>{"use strict";const{PassThrough:s}=r(2413);e.exports=e=>{e={...e};const{array:t}=e;let{encoding:r}=e;const n=r==="buffer";let o=false;if(t){o=!(r||n)}else{r=r||"utf8"}if(n){r=null}const i=new s({objectMode:o});if(r){i.setEncoding(r)}let a=0;const c=[];i.on("data",(e=>{c.push(e);if(o){a=c.length}else{a+=e.length}}));i.getBufferedValue=()=>{if(t){return c}return n?Buffer.concat(c,a):c.join("")};i.getBufferedLength=()=>a;return i}},9136:(e,t,r)=>{"use strict";const{constants:s}=r(4293);const n=r(2413);const{promisify:o}=r(1669);const i=r(9114);const a=o(n.pipeline);class MaxBufferError extends Error{constructor(){super("maxBuffer exceeded");this.name="MaxBufferError"}}async function getStream(e,t){if(!e){throw new Error("Expected a stream")}t={maxBuffer:Infinity,...t};const{maxBuffer:r}=t;const n=i(t);await new Promise(((t,o)=>{const rejectPromise=e=>{if(e&&n.getBufferedLength()<=s.MAX_LENGTH){e.bufferedData=n.getBufferedValue()}o(e)};(async()=>{try{await a(e,n);t()}catch(e){rejectPromise(e)}})();n.on("data",(()=>{if(n.getBufferedLength()>r){rejectPromise(new MaxBufferError)}}))}));return n.getBufferedValue()}e.exports=getStream;e.exports.buffer=(e,t)=>getStream(e,{...t,encoding:"buffer"});e.exports.array=(e,t)=>getStream(e,{...t,array:true});e.exports.MaxBufferError=MaxBufferError},4419:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SIGNALS=void 0;const r=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:true},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:true},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:true},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];t.SIGNALS=r},5739:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.signalsByNumber=t.signalsByName=void 0;var s=r(2087);var n=r(8538);var o=r(4944);const getSignalsByName=function(){const e=(0,n.getSignals)();return e.reduce(getSignalByName,{})};const getSignalByName=function(e,{name:t,number:r,description:s,supported:n,action:o,forced:i,standard:a}){return{...e,[t]:{name:t,number:r,description:s,supported:n,action:o,forced:i,standard:a}}};const i=getSignalsByName();t.signalsByName=i;const getSignalsByNumber=function(){const e=(0,n.getSignals)();const t=o.SIGRTMAX+1;const r=Array.from({length:t},((t,r)=>getSignalByNumber(r,e)));return Object.assign({},...r)};const getSignalByNumber=function(e,t){const r=findSignalByNumber(e,t);if(r===undefined){return{}}const{name:s,description:n,supported:o,action:i,forced:a,standard:c}=r;return{[e]:{name:s,number:e,description:n,supported:o,action:i,forced:a,standard:c}}};const findSignalByNumber=function(e,t){const r=t.find((({name:t})=>s.constants.signals[t]===e));if(r!==undefined){return r}return t.find((t=>t.number===e))};const a=getSignalsByNumber();t.signalsByNumber=a},4944:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SIGRTMAX=t.getRealtimeSignals=void 0;const getRealtimeSignals=function(){const e=s-r+1;return Array.from({length:e},getRealtimeSignal)};t.getRealtimeSignals=getRealtimeSignals;const getRealtimeSignal=function(e,t){return{name:`SIGRT${t+1}`,number:r+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}};const r=34;const s=64;t.SIGRTMAX=s},8538:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSignals=void 0;var s=r(2087);var n=r(4419);var o=r(4944);const getSignals=function(){const e=(0,o.getRealtimeSignals)();const t=[...n.SIGNALS,...e].map(normalizeSignal);return t};t.getSignals=getSignals;const normalizeSignal=function({name:e,number:t,description:r,action:n,forced:o=false,standard:i}){const{signals:{[e]:a}}=s.constants;const c=a!==undefined;const u=c?a:t;return{name:e,number:u,description:r,supported:c,action:n,forced:o,standard:i}}},9455:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true}); +(()=>{var __webpack_modules__={9548:function(e,t,r){"use strict";var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const n=s(r(2087));const o=r(7472);function issueCommand(e,t,r){const s=new Command(e,t,r);process.stdout.write(s.toString()+n.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const i="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=i+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const s=this.properties[r];if(s){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(s)}`}}}}e+=`${i}${escapeData(this.message)}`;return e}}function escapeData(e){return o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},7117:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(s.next(e))}catch(e){n(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=r(9548);const i=r(2469);const a=r(7472);const c=n(r(2087));const u=n(r(5622));var l;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(l=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const r=a.toCommandValue(t);process.env[e]=r;const s=process.env["GITHUB_ENV"]||"";if(s){const t="_GitHubActionsFileCommandDelimeter_";const s=`${e}<<${t}${c.EOL}${r}${c.EOL}${t}`;i.issueCommand("ENV",s)}else{o.issueCommand("set-env",{name:e},r)}}t.exportVariable=exportVariable;function setSecret(e){o.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){i.issueCommand("PATH",e)}else{o.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${u.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(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()}t.getInput=getInput;function setOutput(e,t){process.stdout.write(c.EOL);o.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){o.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=l.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){o.issueCommand("debug",{},e)}t.debug=debug;function error(e){o.issue("error",e instanceof Error?e.toString():e)}t.error=error;function warning(e){o.issue("warning",e instanceof Error?e.toString():e)}t.warning=warning;function info(e){process.stdout.write(e+c.EOL)}t.info=info;function startGroup(e){o.issue("group",e)}t.startGroup=startGroup;function endGroup(){o.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return s(this,void 0,void 0,(function*(){startGroup(e);let r;try{r=yield t()}finally{endGroup()}return r}))}t.group=group;function saveState(e,t){o.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState},2469:function(e,t,r){"use strict";var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const n=s(r(5747));const o=s(r(2087));const i=r(7472);function issueCommand(e,t){const r=process.env[`GITHUB_${e}`];if(!r){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!n.existsSync(r)){throw new Error(`Missing file at path: ${r}`)}n.appendFileSync(r,`${i.toCommandValue(t)}${o.EOL}`,{encoding:"utf8"})}t.issueCommand=issueCommand},7472:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue},9217:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Context=void 0;const s=r(5747);const n=r(2087);class Context{constructor(){this.payload={};if(process.env.GITHUB_EVENT_PATH){if(s.existsSync(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse(s.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${n.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'")}}t.Context=Context},4005:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){if(s===undefined)s=r;Object.defineProperty(e,s,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,s){if(s===undefined)s=r;e[s]=t[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))s(t,e,r);n(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOctokit=t.context=void 0;const i=o(r(9217));const a=r(8840);t.context=new i.Context;function getOctokit(e,t){return new a.GitHub(a.getOctokitOptions(e,t))}t.getOctokit=getOctokit},2402:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){if(s===undefined)s=r;Object.defineProperty(e,s,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,s){if(s===undefined)s=r;e[s]=t[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))s(t,e,r);n(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getApiBaseUrl=t.getProxyAgent=t.getAuthString=void 0;const i=o(r(9926));function getAuthString(e,t){if(!e&&!t.auth){throw new Error("Parameter token or opts.auth is required")}else if(e&&t.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof t.auth==="string"?t.auth:`token ${e}`}t.getAuthString=getAuthString;function getProxyAgent(e){const t=new i.HttpClient;return t.getAgent(e)}t.getProxyAgent=getProxyAgent;function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}t.getApiBaseUrl=getApiBaseUrl},8840:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){if(s===undefined)s=r;Object.defineProperty(e,s,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,s){if(s===undefined)s=r;e[s]=t[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))s(t,e,r);n(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOctokitOptions=t.GitHub=t.context=void 0;const i=o(r(9217));const a=o(r(2402));const c=r(5341);const u=r(6690);const l=r(8100);t.context=new i.Context;const p=a.getApiBaseUrl();const h={baseUrl:p,request:{agent:a.getProxyAgent(p)}};t.GitHub=c.Octokit.plugin(u.restEndpointMethods,l.paginateRest).defaults(h);function getOctokitOptions(e,t){const r=Object.assign({},t||{});const s=a.getAuthString(e,r);if(s){r.auth=s}return r}t.getOctokitOptions=getOctokitOptions},9926:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(8605);const n=r(7211);const o=r(3466);let i;var a;(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"})(a=t.HttpCodes||(t.HttpCodes={}));var c;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(c=t.Headers||(t.Headers={}));var u;(function(e){e["ApplicationJson"]="application/json"})(u=t.MediaTypes||(t.MediaTypes={}));function getProxyUrl(e){let t=o.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const l=[a.MovedPermanently,a.ResourceMoved,a.SeeOther,a.TemporaryRedirect,a.PermanentRedirect];const p=[a.BadGateway,a.ServiceUnavailable,a.GatewayTimeout];const h=["OPTIONS","GET","DELETE","HEAD"];const d=10;const m=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{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=HttpClientResponse;function isHttps(e){let t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,r){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=r;if(r){if(r.ignoreSslError!=null){this._ignoreSslError=r.ignoreSslError}this._socketTimeout=r.socketTimeout;if(r.allowRedirects!=null){this._allowRedirects=r.allowRedirects}if(r.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=r.allowRedirectDowngrade}if(r.maxRedirects!=null){this._maxRedirects=Math.max(r.maxRedirects,0)}if(r.keepAlive!=null){this._keepAlive=r.keepAlive}if(r.allowRetries!=null){this._allowRetries=r.allowRetries}if(r.maxRetries!=null){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,s){return this.request(e,t,r,s)}async getJson(e,t={}){t[c.Accept]=this._getExistingOrDefaultHeader(t,c.Accept,u.ApplicationJson);let r=await this.get(e,t);return this._processResponse(r,this.requestOptions)}async postJson(e,t,r={}){let s=JSON.stringify(t,null,2);r[c.Accept]=this._getExistingOrDefaultHeader(r,c.Accept,u.ApplicationJson);r[c.ContentType]=this._getExistingOrDefaultHeader(r,c.ContentType,u.ApplicationJson);let n=await this.post(e,s,r);return this._processResponse(n,this.requestOptions)}async putJson(e,t,r={}){let s=JSON.stringify(t,null,2);r[c.Accept]=this._getExistingOrDefaultHeader(r,c.Accept,u.ApplicationJson);r[c.ContentType]=this._getExistingOrDefaultHeader(r,c.ContentType,u.ApplicationJson);let n=await this.put(e,s,r);return this._processResponse(n,this.requestOptions)}async patchJson(e,t,r={}){let s=JSON.stringify(t,null,2);r[c.Accept]=this._getExistingOrDefaultHeader(r,c.Accept,u.ApplicationJson);r[c.ContentType]=this._getExistingOrDefaultHeader(r,c.ContentType,u.ApplicationJson);let n=await this.patch(e,s,r);return this._processResponse(n,this.requestOptions)}async request(e,t,r,s){if(this._disposed){throw new Error("Client has already been disposed.")}let n=new URL(t);let o=this._prepareRequest(e,n,s);let i=this._allowRetries&&h.indexOf(e)!=-1?this._maxRetries+1:1;let c=0;let u;while(c0){const i=u.message.headers["location"];if(!i){break}let a=new URL(i);if(n.protocol=="https:"&&n.protocol!=a.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.")}await u.readBody();if(a.hostname!==n.hostname){for(let e in s){if(e.toLowerCase()==="authorization"){delete s[e]}}}o=this._prepareRequest(e,a,s);u=await this.requestRaw(o,r);t--}if(p.indexOf(u.message.statusCode)==-1){return u}c+=1;if(c{let callbackForResult=function(e,t){if(e){s(e)}r(t)};this.requestRawWithCallback(e,t,callbackForResult)}))}requestRawWithCallback(e,t,r){let s;if(typeof t==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let n=false;let handleResult=(e,t)=>{if(!n){n=true;r(e,t)}};let o=e.httpModule.request(e.options,(e=>{let t=new HttpClientResponse(e);handleResult(null,t)}));o.on("socket",(e=>{s=e}));o.setTimeout(this._socketTimeout||3*6e4,(()=>{if(s){s.end()}handleResult(new Error("Request timeout: "+e.options.path),null)}));o.on("error",(function(e){handleResult(e,null)}));if(t&&typeof t==="string"){o.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){o.end()}));t.pipe(o)}else{o.end()}}getAgent(e){let t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,r){const o={};o.parsedUrl=t;const i=o.parsedUrl.protocol==="https:";o.httpModule=i?n:s;const a=i?443:80;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);if(this.userAgent!=null){o.options.headers["user-agent"]=this.userAgent}o.options.agent=this._getAgent(o.parsedUrl);if(this.handlers){this.handlers.forEach((e=>{e.prepareRequest(o.options)}))}return o}_mergeHeaders(e){const lowercaseKeys=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,r){const lowercaseKeys=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{});let s;if(this.requestOptions&&this.requestOptions.headers){s=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||s||r}_getAgent(e){let t;let a=o.getProxyUrl(e);let c=a&&a.hostname;if(this._keepAlive&&c){t=this._proxyAgent}if(this._keepAlive&&!c){t=this._agent}if(!!t){return t}const u=e.protocol==="https:";let l=100;if(!!this.requestOptions){l=this.requestOptions.maxSockets||s.globalAgent.maxSockets}if(c){if(!i){i=r(9382)}const e={maxSockets:l,keepAlive:this._keepAlive,proxy:{proxyAuth:`${a.username}:${a.password}`,host:a.hostname,port:a.port}};let s;const n=a.protocol==="https:";if(u){s=n?i.httpsOverHttps:i.httpsOverHttp}else{s=n?i.httpOverHttps:i.httpOverHttp}t=s(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:l};t=u?new n.Agent(e):new s.Agent(e);this._agent=t}if(!t){t=u?n.globalAgent:s.globalAgent}if(u&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){e=Math.min(d,e);const t=m*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}static dateTimeDeserializer(e,t){if(typeof t==="string"){let e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}async _processResponse(e,t){return new Promise((async(r,s)=>{const n=e.message.statusCode;const o={statusCode:n,result:null,headers:{}};if(n==a.NotFound){r(o)}let i;let c;try{c=await e.readBody();if(c&&c.length>0){if(t&&t.deserializeDates){i=JSON.parse(c,HttpClient.dateTimeDeserializer)}else{i=JSON.parse(c)}o.result=i}o.headers=e.message.headers}catch(e){}if(n>299){let e;if(i&&i.message){e=i.message}else if(c&&c.length>0){e=c}else{e="Failed request: ("+n+")"}let t=new HttpClientError(e,n);t.result=o.result;s(t)}else{r(o)}}))}}t.HttpClient=HttpClient},3466:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function getProxyUrl(e){let t=e.protocol==="https:";let r;if(checkBypass(e)){return r}let s;if(t){s=process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{s=process.env["http_proxy"]||process.env["HTTP_PROXY"]}if(s){r=new URL(s)}return r}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}let t=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!t){return false}let r;if(e.port){r=Number(e.port)}else if(e.protocol==="http:"){r=80}else if(e.protocol==="https:"){r=443}let s=[e.hostname.toUpperCase()];if(typeof r==="number"){s.push(`${s[0]}:${r}`)}for(let e of t.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(s.some((t=>t===e))){return true}}return false}t.checkBypass=checkBypass},5230:(e,t,r)=>{"use strict";const s=r(9408);const n=global.Date;class Date extends n{constructor(e){super(e);this.isDate=true}toISOString(){return`${this.getUTCFullYear()}-${s(2,this.getUTCMonth()+1)}-${s(2,this.getUTCDate())}`}}e.exports=e=>{const t=new Date(e);if(isNaN(t)){throw new TypeError("Invalid Datetime")}else{return t}}},3596:(e,t,r)=>{"use strict";const s=r(9408);class FloatingDateTime extends Date{constructor(e){super(e+"Z");this.isFloating=true}toISOString(){const e=`${this.getUTCFullYear()}-${s(2,this.getUTCMonth()+1)}-${s(2,this.getUTCDate())}`;const t=`${s(2,this.getUTCHours())}:${s(2,this.getUTCMinutes())}:${s(2,this.getUTCSeconds())}.${s(3,this.getUTCMilliseconds())}`;return`${e}T${t}`}}e.exports=e=>{const t=new FloatingDateTime(e);if(isNaN(t)){throw new TypeError("Invalid Datetime")}else{return t}}},9728:e=>{"use strict";e.exports=e=>{const t=new Date(e);if(isNaN(t)){throw new TypeError("Invalid Datetime")}else{return t}}},9510:(e,t,r)=>{"use strict";const s=r(9408);class Time extends Date{constructor(e){super(`0000-01-01T${e}Z`);this.isTime=true}toISOString(){return`${s(2,this.getUTCHours())}:${s(2,this.getUTCMinutes())}:${s(2,this.getUTCSeconds())}.${s(3,this.getUTCMilliseconds())}`}}e.exports=e=>{const t=new Time(e);if(isNaN(t)){throw new TypeError("Invalid Datetime")}else{return t}}},9408:e=>{"use strict";e.exports=(e,t)=>{t=String(t);while(t.length{"use strict";const t=1114112;class ParserError extends Error{constructor(e,t,r){super("[ParserError] "+e,t,r);this.name="ParserError";this.code="ParserError";if(Error.captureStackTrace)Error.captureStackTrace(this,ParserError)}}class State{constructor(e){this.parser=e;this.buf="";this.returned=null;this.result=null;this.resultTable=null;this.resultArr=null}}class Parser{constructor(){this.pos=0;this.col=0;this.line=0;this.obj={};this.ctx=this.obj;this.stack=[];this._buf="";this.char=null;this.ii=0;this.state=new State(this.parseStart)}parse(e){if(e.length===0||e.length==null)return;this._buf=String(e);this.ii=-1;this.char=-1;let t;while(t===false||this.nextChar()){t=this.runOne()}this._buf=null}nextChar(){if(this.char===10){++this.line;this.col=-1}++this.ii;this.char=this._buf.codePointAt(this.ii);++this.pos;++this.col;return this.haveBuffer()}haveBuffer(){return this.ii{"use strict";module.exports=makeParserClass(__nccwpck_require__(7760));module.exports.makeParserClass=makeParserClass;class TomlError extends Error{constructor(e){super(e);this.name="TomlError";if(Error.captureStackTrace)Error.captureStackTrace(this,TomlError);this.fromTOML=true;this.wrapped=null}}TomlError.wrap=e=>{const t=new TomlError(e.message);t.code=e.code;t.wrapped=e;return t};module.exports.TomlError=TomlError;const createDateTime=__nccwpck_require__(9728);const createDateTimeFloat=__nccwpck_require__(3596);const createDate=__nccwpck_require__(5230);const createTime=__nccwpck_require__(9510);const CTRL_I=9;const CTRL_J=10;const CTRL_M=13;const CTRL_CHAR_BOUNDARY=31;const CHAR_SP=32;const CHAR_QUOT=34;const CHAR_NUM=35;const CHAR_APOS=39;const CHAR_PLUS=43;const CHAR_COMMA=44;const CHAR_HYPHEN=45;const CHAR_PERIOD=46;const CHAR_0=48;const CHAR_1=49;const CHAR_7=55;const CHAR_9=57;const CHAR_COLON=58;const CHAR_EQUALS=61;const CHAR_A=65;const CHAR_E=69;const CHAR_F=70;const CHAR_T=84;const CHAR_U=85;const CHAR_Z=90;const CHAR_LOWBAR=95;const CHAR_a=97;const CHAR_b=98;const CHAR_e=101;const CHAR_f=102;const CHAR_i=105;const CHAR_l=108;const CHAR_n=110;const CHAR_o=111;const CHAR_r=114;const CHAR_s=115;const CHAR_t=116;const CHAR_u=117;const CHAR_x=120;const CHAR_z=122;const CHAR_LCUB=123;const CHAR_RCUB=125;const CHAR_LSQB=91;const CHAR_BSOL=92;const CHAR_RSQB=93;const CHAR_DEL=127;const SURROGATE_FIRST=55296;const SURROGATE_LAST=57343;const escapes={[CHAR_b]:"\b",[CHAR_t]:"\t",[CHAR_n]:"\n",[CHAR_f]:"\f",[CHAR_r]:"\r",[CHAR_QUOT]:'"',[CHAR_BSOL]:"\\"};function isDigit(e){return e>=CHAR_0&&e<=CHAR_9}function isHexit(e){return e>=CHAR_A&&e<=CHAR_F||e>=CHAR_a&&e<=CHAR_f||e>=CHAR_0&&e<=CHAR_9}function isBit(e){return e===CHAR_1||e===CHAR_0}function isOctit(e){return e>=CHAR_0&&e<=CHAR_7}function isAlphaNumQuoteHyphen(e){return e>=CHAR_A&&e<=CHAR_Z||e>=CHAR_a&&e<=CHAR_z||e>=CHAR_0&&e<=CHAR_9||e===CHAR_APOS||e===CHAR_QUOT||e===CHAR_LOWBAR||e===CHAR_HYPHEN}function isAlphaNumHyphen(e){return e>=CHAR_A&&e<=CHAR_Z||e>=CHAR_a&&e<=CHAR_z||e>=CHAR_0&&e<=CHAR_9||e===CHAR_LOWBAR||e===CHAR_HYPHEN}const _type=Symbol("type");const _declared=Symbol("declared");const hasOwnProperty=Object.prototype.hasOwnProperty;const defineProperty=Object.defineProperty;const descriptor={configurable:true,enumerable:true,writable:true,value:undefined};function hasKey(e,t){if(hasOwnProperty.call(e,t))return true;if(t==="__proto__")defineProperty(e,"__proto__",descriptor);return false}const INLINE_TABLE=Symbol("inline-table");function InlineTable(){return Object.defineProperties({},{[_type]:{value:INLINE_TABLE}})}function isInlineTable(e){if(e===null||typeof e!=="object")return false;return e[_type]===INLINE_TABLE}const TABLE=Symbol("table");function Table(){return Object.defineProperties({},{[_type]:{value:TABLE},[_declared]:{value:false,writable:true}})}function isTable(e){if(e===null||typeof e!=="object")return false;return e[_type]===TABLE}const _contentType=Symbol("content-type");const INLINE_LIST=Symbol("inline-list");function InlineList(e){return Object.defineProperties([],{[_type]:{value:INLINE_LIST},[_contentType]:{value:e}})}function isInlineList(e){if(e===null||typeof e!=="object")return false;return e[_type]===INLINE_LIST}const LIST=Symbol("list");function List(){return Object.defineProperties([],{[_type]:{value:LIST}})}function isList(e){if(e===null||typeof e!=="object")return false;return e[_type]===LIST}let _custom;try{const utilInspect=eval("require('util').inspect");_custom=utilInspect.custom}catch(e){}const _inspect=_custom||"inspect";class BoxedBigInt{constructor(e){try{this.value=global.BigInt.asIntN(64,e)}catch(e){this.value=null}Object.defineProperty(this,_type,{value:INTEGER})}isNaN(){return this.value===null}toString(){return String(this.value)}[_inspect](){return`[BigInt: ${this.toString()}]}`}valueOf(){return this.value}}const INTEGER=Symbol("integer");function Integer(e){let t=Number(e);if(Object.is(t,-0))t=0;if(global.BigInt&&!Number.isSafeInteger(t)){return new BoxedBigInt(e)}else{return Object.defineProperties(new Number(t),{isNaN:{value:function(){return isNaN(this)}},[_type]:{value:INTEGER},[_inspect]:{value:()=>`[Integer: ${e}]`}})}}function isInteger(e){if(e===null||typeof e!=="object")return false;return e[_type]===INTEGER}const FLOAT=Symbol("float");function Float(e){return Object.defineProperties(new Number(e),{[_type]:{value:FLOAT},[_inspect]:{value:()=>`[Float: ${e}]`}})}function isFloat(e){if(e===null||typeof e!=="object")return false;return e[_type]===FLOAT}function tomlType(e){const t=typeof e;if(t==="object"){if(e===null)return"null";if(e instanceof Date)return"datetime";if(_type in e){switch(e[_type]){case INLINE_TABLE:return"inline-table";case INLINE_LIST:return"inline-list";case TABLE:return"table";case LIST:return"list";case FLOAT:return"float";case INTEGER:return"integer"}}}return t}function makeParserClass(e){class TOMLParser extends e{constructor(){super();this.ctx=this.obj=Table()}atEndOfWord(){return this.char===CHAR_NUM||this.char===CTRL_I||this.char===CHAR_SP||this.atEndOfLine()}atEndOfLine(){return this.char===e.END||this.char===CTRL_J||this.char===CTRL_M}parseStart(){if(this.char===e.END){return null}else if(this.char===CHAR_LSQB){return this.call(this.parseTableOrList)}else if(this.char===CHAR_NUM){return this.call(this.parseComment)}else if(this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M){return null}else if(isAlphaNumQuoteHyphen(this.char)){return this.callNow(this.parseAssignStatement)}else{throw this.error(new TomlError(`Unknown character "${this.char}"`))}}parseWhitespaceToEOL(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M){return null}else if(this.char===CHAR_NUM){return this.goto(this.parseComment)}else if(this.char===e.END||this.char===CTRL_J){return this.return()}else{throw this.error(new TomlError("Unexpected character, expected only whitespace or comments till end of line"))}}parseAssignStatement(){return this.callNow(this.parseAssign,this.recordAssignStatement)}recordAssignStatement(e){let t=this.ctx;let r=e.key.pop();for(let r of e.key){if(hasKey(t,r)&&(!isTable(t[r])||t[r][_declared])){throw this.error(new TomlError("Can't redefine existing key"))}t=t[r]=t[r]||Table()}if(hasKey(t,r)){throw this.error(new TomlError("Can't redefine existing key"))}if(isInteger(e.value)||isFloat(e.value)){t[r]=e.value.valueOf()}else{t[r]=e.value}return this.goto(this.parseWhitespaceToEOL)}parseAssign(){return this.callNow(this.parseKeyword,this.recordAssignKeyword)}recordAssignKeyword(e){if(this.state.resultTable){this.state.resultTable.push(e)}else{this.state.resultTable=[e]}return this.goto(this.parseAssignKeywordPreDot)}parseAssignKeywordPreDot(){if(this.char===CHAR_PERIOD){return this.next(this.parseAssignKeywordPostDot)}else if(this.char!==CHAR_SP&&this.char!==CTRL_I){return this.goto(this.parseAssignEqual)}}parseAssignKeywordPostDot(){if(this.char!==CHAR_SP&&this.char!==CTRL_I){return this.callNow(this.parseKeyword,this.recordAssignKeyword)}}parseAssignEqual(){if(this.char===CHAR_EQUALS){return this.next(this.parseAssignPreValue)}else{throw this.error(new TomlError('Invalid character, expected "="'))}}parseAssignPreValue(){if(this.char===CHAR_SP||this.char===CTRL_I){return null}else{return this.callNow(this.parseValue,this.recordAssignValue)}}recordAssignValue(e){return this.returnNow({key:this.state.resultTable,value:e})}parseComment(){do{if(this.char===e.END||this.char===CTRL_J){return this.return()}}while(this.nextChar())}parseTableOrList(){if(this.char===CHAR_LSQB){this.next(this.parseList)}else{return this.goto(this.parseTable)}}parseTable(){this.ctx=this.obj;return this.goto(this.parseTableNext)}parseTableNext(){if(this.char===CHAR_SP||this.char===CTRL_I){return null}else{return this.callNow(this.parseKeyword,this.parseTableMore)}}parseTableMore(e){if(this.char===CHAR_SP||this.char===CTRL_I){return null}else if(this.char===CHAR_RSQB){if(hasKey(this.ctx,e)&&(!isTable(this.ctx[e])||this.ctx[e][_declared])){throw this.error(new TomlError("Can't redefine existing key"))}else{this.ctx=this.ctx[e]=this.ctx[e]||Table();this.ctx[_declared]=true}return this.next(this.parseWhitespaceToEOL)}else if(this.char===CHAR_PERIOD){if(!hasKey(this.ctx,e)){this.ctx=this.ctx[e]=Table()}else if(isTable(this.ctx[e])){this.ctx=this.ctx[e]}else if(isList(this.ctx[e])){this.ctx=this.ctx[e][this.ctx[e].length-1]}else{throw this.error(new TomlError("Can't redefine existing key"))}return this.next(this.parseTableNext)}else{throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}}parseList(){this.ctx=this.obj;return this.goto(this.parseListNext)}parseListNext(){if(this.char===CHAR_SP||this.char===CTRL_I){return null}else{return this.callNow(this.parseKeyword,this.parseListMore)}}parseListMore(e){if(this.char===CHAR_SP||this.char===CTRL_I){return null}else if(this.char===CHAR_RSQB){if(!hasKey(this.ctx,e)){this.ctx[e]=List()}if(isInlineList(this.ctx[e])){throw this.error(new TomlError("Can't extend an inline array"))}else if(isList(this.ctx[e])){const t=Table();this.ctx[e].push(t);this.ctx=t}else{throw this.error(new TomlError("Can't redefine an existing key"))}return this.next(this.parseListEnd)}else if(this.char===CHAR_PERIOD){if(!hasKey(this.ctx,e)){this.ctx=this.ctx[e]=Table()}else if(isInlineList(this.ctx[e])){throw this.error(new TomlError("Can't extend an inline array"))}else if(isInlineTable(this.ctx[e])){throw this.error(new TomlError("Can't extend an inline table"))}else if(isList(this.ctx[e])){this.ctx=this.ctx[e][this.ctx[e].length-1]}else if(isTable(this.ctx[e])){this.ctx=this.ctx[e]}else{throw this.error(new TomlError("Can't redefine an existing key"))}return this.next(this.parseListNext)}else{throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}}parseListEnd(e){if(this.char===CHAR_RSQB){return this.next(this.parseWhitespaceToEOL)}else{throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}}parseValue(){if(this.char===e.END){throw this.error(new TomlError("Key without value"))}else if(this.char===CHAR_QUOT){return this.next(this.parseDoubleString)}if(this.char===CHAR_APOS){return this.next(this.parseSingleString)}else if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS){return this.goto(this.parseNumberSign)}else if(this.char===CHAR_i){return this.next(this.parseInf)}else if(this.char===CHAR_n){return this.next(this.parseNan)}else if(isDigit(this.char)){return this.goto(this.parseNumberOrDateTime)}else if(this.char===CHAR_t||this.char===CHAR_f){return this.goto(this.parseBoolean)}else if(this.char===CHAR_LSQB){return this.call(this.parseInlineList,this.recordValue)}else if(this.char===CHAR_LCUB){return this.call(this.parseInlineTable,this.recordValue)}else{throw this.error(new TomlError("Unexpected character, expecting string, number, datetime, boolean, inline array or inline table"))}}recordValue(e){return this.returnNow(e)}parseInf(){if(this.char===CHAR_n){return this.next(this.parseInf2)}else{throw this.error(new TomlError('Unexpected character, expected "inf", "+inf" or "-inf"'))}}parseInf2(){if(this.char===CHAR_f){if(this.state.buf==="-"){return this.return(-Infinity)}else{return this.return(Infinity)}}else{throw this.error(new TomlError('Unexpected character, expected "inf", "+inf" or "-inf"'))}}parseNan(){if(this.char===CHAR_a){return this.next(this.parseNan2)}else{throw this.error(new TomlError('Unexpected character, expected "nan"'))}}parseNan2(){if(this.char===CHAR_n){return this.return(NaN)}else{throw this.error(new TomlError('Unexpected character, expected "nan"'))}}parseKeyword(){if(this.char===CHAR_QUOT){return this.next(this.parseBasicString)}else if(this.char===CHAR_APOS){return this.next(this.parseLiteralString)}else{return this.goto(this.parseBareKey)}}parseBareKey(){do{if(this.char===e.END){throw this.error(new TomlError("Key ended without value"))}else if(isAlphaNumHyphen(this.char)){this.consume()}else if(this.state.buf.length===0){throw this.error(new TomlError("Empty bare keys are not allowed"))}else{return this.returnNow()}}while(this.nextChar())}parseSingleString(){if(this.char===CHAR_APOS){return this.next(this.parseLiteralMultiStringMaybe)}else{return this.goto(this.parseLiteralString)}}parseLiteralString(){do{if(this.char===CHAR_APOS){return this.return()}else if(this.atEndOfLine()){throw this.error(new TomlError("Unterminated string"))}else if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I){throw this.errorControlCharInString()}else{this.consume()}}while(this.nextChar())}parseLiteralMultiStringMaybe(){if(this.char===CHAR_APOS){return this.next(this.parseLiteralMultiString)}else{return this.returnNow()}}parseLiteralMultiString(){if(this.char===CTRL_M){return null}else if(this.char===CTRL_J){return this.next(this.parseLiteralMultiStringContent)}else{return this.goto(this.parseLiteralMultiStringContent)}}parseLiteralMultiStringContent(){do{if(this.char===CHAR_APOS){return this.next(this.parseLiteralMultiEnd)}else if(this.char===e.END){throw this.error(new TomlError("Unterminated multi-line string"))}else if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I&&this.char!==CTRL_J&&this.char!==CTRL_M){throw this.errorControlCharInString()}else{this.consume()}}while(this.nextChar())}parseLiteralMultiEnd(){if(this.char===CHAR_APOS){return this.next(this.parseLiteralMultiEnd2)}else{this.state.buf+="'";return this.goto(this.parseLiteralMultiStringContent)}}parseLiteralMultiEnd2(){if(this.char===CHAR_APOS){return this.return()}else{this.state.buf+="''";return this.goto(this.parseLiteralMultiStringContent)}}parseDoubleString(){if(this.char===CHAR_QUOT){return this.next(this.parseMultiStringMaybe)}else{return this.goto(this.parseBasicString)}}parseBasicString(){do{if(this.char===CHAR_BSOL){return this.call(this.parseEscape,this.recordEscapeReplacement)}else if(this.char===CHAR_QUOT){return this.return()}else if(this.atEndOfLine()){throw this.error(new TomlError("Unterminated string"))}else if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I){throw this.errorControlCharInString()}else{this.consume()}}while(this.nextChar())}recordEscapeReplacement(e){this.state.buf+=e;return this.goto(this.parseBasicString)}parseMultiStringMaybe(){if(this.char===CHAR_QUOT){return this.next(this.parseMultiString)}else{return this.returnNow()}}parseMultiString(){if(this.char===CTRL_M){return null}else if(this.char===CTRL_J){return this.next(this.parseMultiStringContent)}else{return this.goto(this.parseMultiStringContent)}}parseMultiStringContent(){do{if(this.char===CHAR_BSOL){return this.call(this.parseMultiEscape,this.recordMultiEscapeReplacement)}else if(this.char===CHAR_QUOT){return this.next(this.parseMultiEnd)}else if(this.char===e.END){throw this.error(new TomlError("Unterminated multi-line string"))}else if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I&&this.char!==CTRL_J&&this.char!==CTRL_M){throw this.errorControlCharInString()}else{this.consume()}}while(this.nextChar())}errorControlCharInString(){let e="\\u00";if(this.char<16){e+="0"}e+=this.char.toString(16);return this.error(new TomlError(`Control characters (codes < 0x1f and 0x7f) are not allowed in strings, use ${e} instead`))}recordMultiEscapeReplacement(e){this.state.buf+=e;return this.goto(this.parseMultiStringContent)}parseMultiEnd(){if(this.char===CHAR_QUOT){return this.next(this.parseMultiEnd2)}else{this.state.buf+='"';return this.goto(this.parseMultiStringContent)}}parseMultiEnd2(){if(this.char===CHAR_QUOT){return this.return()}else{this.state.buf+='""';return this.goto(this.parseMultiStringContent)}}parseMultiEscape(){if(this.char===CTRL_M||this.char===CTRL_J){return this.next(this.parseMultiTrim)}else if(this.char===CHAR_SP||this.char===CTRL_I){return this.next(this.parsePreMultiTrim)}else{return this.goto(this.parseEscape)}}parsePreMultiTrim(){if(this.char===CHAR_SP||this.char===CTRL_I){return null}else if(this.char===CTRL_M||this.char===CTRL_J){return this.next(this.parseMultiTrim)}else{throw this.error(new TomlError("Can't escape whitespace"))}}parseMultiTrim(){if(this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M){return null}else{return this.returnNow()}}parseEscape(){if(this.char in escapes){return this.return(escapes[this.char])}else if(this.char===CHAR_u){return this.call(this.parseSmallUnicode,this.parseUnicodeReturn)}else if(this.char===CHAR_U){return this.call(this.parseLargeUnicode,this.parseUnicodeReturn)}else{throw this.error(new TomlError("Unknown escape character: "+this.char))}}parseUnicodeReturn(e){try{const t=parseInt(e,16);if(t>=SURROGATE_FIRST&&t<=SURROGATE_LAST){throw this.error(new TomlError("Invalid unicode, character in range 0xD800 - 0xDFFF is reserved"))}return this.returnNow(String.fromCodePoint(t))}catch(e){throw this.error(TomlError.wrap(e))}}parseSmallUnicode(){if(!isHexit(this.char)){throw this.error(new TomlError("Invalid character in unicode sequence, expected hex"))}else{this.consume();if(this.state.buf.length>=4)return this.return()}}parseLargeUnicode(){if(!isHexit(this.char)){throw this.error(new TomlError("Invalid character in unicode sequence, expected hex"))}else{this.consume();if(this.state.buf.length>=8)return this.return()}}parseNumberSign(){this.consume();return this.next(this.parseMaybeSignedInfOrNan)}parseMaybeSignedInfOrNan(){if(this.char===CHAR_i){return this.next(this.parseInf)}else if(this.char===CHAR_n){return this.next(this.parseNan)}else{return this.callNow(this.parseNoUnder,this.parseNumberIntegerStart)}}parseNumberIntegerStart(){if(this.char===CHAR_0){this.consume();return this.next(this.parseNumberIntegerExponentOrDecimal)}else{return this.goto(this.parseNumberInteger)}}parseNumberIntegerExponentOrDecimal(){if(this.char===CHAR_PERIOD){this.consume();return this.call(this.parseNoUnder,this.parseNumberFloat)}else if(this.char===CHAR_E||this.char===CHAR_e){this.consume();return this.next(this.parseNumberExponentSign)}else{return this.returnNow(Integer(this.state.buf))}}parseNumberInteger(){if(isDigit(this.char)){this.consume()}else if(this.char===CHAR_LOWBAR){return this.call(this.parseNoUnder)}else if(this.char===CHAR_E||this.char===CHAR_e){this.consume();return this.next(this.parseNumberExponentSign)}else if(this.char===CHAR_PERIOD){this.consume();return this.call(this.parseNoUnder,this.parseNumberFloat)}else{const e=Integer(this.state.buf);if(e.isNaN()){throw this.error(new TomlError("Invalid number"))}else{return this.returnNow(e)}}}parseNoUnder(){if(this.char===CHAR_LOWBAR||this.char===CHAR_PERIOD||this.char===CHAR_E||this.char===CHAR_e){throw this.error(new TomlError("Unexpected character, expected digit"))}else if(this.atEndOfWord()){throw this.error(new TomlError("Incomplete number"))}return this.returnNow()}parseNoUnderHexOctBinLiteral(){if(this.char===CHAR_LOWBAR||this.char===CHAR_PERIOD){throw this.error(new TomlError("Unexpected character, expected digit"))}else if(this.atEndOfWord()){throw this.error(new TomlError("Incomplete number"))}return this.returnNow()}parseNumberFloat(){if(this.char===CHAR_LOWBAR){return this.call(this.parseNoUnder,this.parseNumberFloat)}else if(isDigit(this.char)){this.consume()}else if(this.char===CHAR_E||this.char===CHAR_e){this.consume();return this.next(this.parseNumberExponentSign)}else{return this.returnNow(Float(this.state.buf))}}parseNumberExponentSign(){if(isDigit(this.char)){return this.goto(this.parseNumberExponent)}else if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS){this.consume();this.call(this.parseNoUnder,this.parseNumberExponent)}else{throw this.error(new TomlError("Unexpected character, expected -, + or digit"))}}parseNumberExponent(){if(isDigit(this.char)){this.consume()}else if(this.char===CHAR_LOWBAR){return this.call(this.parseNoUnder)}else{return this.returnNow(Float(this.state.buf))}}parseNumberOrDateTime(){if(this.char===CHAR_0){this.consume();return this.next(this.parseNumberBaseOrDateTime)}else{return this.goto(this.parseNumberOrDateTimeOnly)}}parseNumberOrDateTimeOnly(){if(this.char===CHAR_LOWBAR){return this.call(this.parseNoUnder,this.parseNumberInteger)}else if(isDigit(this.char)){this.consume();if(this.state.buf.length>4)this.next(this.parseNumberInteger)}else if(this.char===CHAR_E||this.char===CHAR_e){this.consume();return this.next(this.parseNumberExponentSign)}else if(this.char===CHAR_PERIOD){this.consume();return this.call(this.parseNoUnder,this.parseNumberFloat)}else if(this.char===CHAR_HYPHEN){return this.goto(this.parseDateTime)}else if(this.char===CHAR_COLON){return this.goto(this.parseOnlyTimeHour)}else{return this.returnNow(Integer(this.state.buf))}}parseDateTimeOnly(){if(this.state.buf.length<4){if(isDigit(this.char)){return this.consume()}else if(this.char===CHAR_COLON){return this.goto(this.parseOnlyTimeHour)}else{throw this.error(new TomlError("Expected digit while parsing year part of a date"))}}else{if(this.char===CHAR_HYPHEN){return this.goto(this.parseDateTime)}else{throw this.error(new TomlError("Expected hyphen (-) while parsing year part of date"))}}}parseNumberBaseOrDateTime(){if(this.char===CHAR_b){this.consume();return this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerBin)}else if(this.char===CHAR_o){this.consume();return this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerOct)}else if(this.char===CHAR_x){this.consume();return this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerHex)}else if(this.char===CHAR_PERIOD){return this.goto(this.parseNumberInteger)}else if(isDigit(this.char)){return this.goto(this.parseDateTimeOnly)}else{return this.returnNow(Integer(this.state.buf))}}parseIntegerHex(){if(isHexit(this.char)){this.consume()}else if(this.char===CHAR_LOWBAR){return this.call(this.parseNoUnderHexOctBinLiteral)}else{const e=Integer(this.state.buf);if(e.isNaN()){throw this.error(new TomlError("Invalid number"))}else{return this.returnNow(e)}}}parseIntegerOct(){if(isOctit(this.char)){this.consume()}else if(this.char===CHAR_LOWBAR){return this.call(this.parseNoUnderHexOctBinLiteral)}else{const e=Integer(this.state.buf);if(e.isNaN()){throw this.error(new TomlError("Invalid number"))}else{return this.returnNow(e)}}}parseIntegerBin(){if(isBit(this.char)){this.consume()}else if(this.char===CHAR_LOWBAR){return this.call(this.parseNoUnderHexOctBinLiteral)}else{const e=Integer(this.state.buf);if(e.isNaN()){throw this.error(new TomlError("Invalid number"))}else{return this.returnNow(e)}}}parseDateTime(){if(this.state.buf.length<4){throw this.error(new TomlError("Years less than 1000 must be zero padded to four characters"))}this.state.result=this.state.buf;this.state.buf="";return this.next(this.parseDateMonth)}parseDateMonth(){if(this.char===CHAR_HYPHEN){if(this.state.buf.length<2){throw this.error(new TomlError("Months less than 10 must be zero padded to two characters"))}this.state.result+="-"+this.state.buf;this.state.buf="";return this.next(this.parseDateDay)}else if(isDigit(this.char)){this.consume()}else{throw this.error(new TomlError("Incomplete datetime"))}}parseDateDay(){if(this.char===CHAR_T||this.char===CHAR_SP){if(this.state.buf.length<2){throw this.error(new TomlError("Days less than 10 must be zero padded to two characters"))}this.state.result+="-"+this.state.buf;this.state.buf="";return this.next(this.parseStartTimeHour)}else if(this.atEndOfWord()){return this.returnNow(createDate(this.state.result+"-"+this.state.buf))}else if(isDigit(this.char)){this.consume()}else{throw this.error(new TomlError("Incomplete datetime"))}}parseStartTimeHour(){if(this.atEndOfWord()){return this.returnNow(createDate(this.state.result))}else{return this.goto(this.parseTimeHour)}}parseTimeHour(){if(this.char===CHAR_COLON){if(this.state.buf.length<2){throw this.error(new TomlError("Hours less than 10 must be zero padded to two characters"))}this.state.result+="T"+this.state.buf;this.state.buf="";return this.next(this.parseTimeMin)}else if(isDigit(this.char)){this.consume()}else{throw this.error(new TomlError("Incomplete datetime"))}}parseTimeMin(){if(this.state.buf.length<2&&isDigit(this.char)){this.consume()}else if(this.state.buf.length===2&&this.char===CHAR_COLON){this.state.result+=":"+this.state.buf;this.state.buf="";return this.next(this.parseTimeSec)}else{throw this.error(new TomlError("Incomplete datetime"))}}parseTimeSec(){if(isDigit(this.char)){this.consume();if(this.state.buf.length===2){this.state.result+=":"+this.state.buf;this.state.buf="";return this.next(this.parseTimeZoneOrFraction)}}else{throw this.error(new TomlError("Incomplete datetime"))}}parseOnlyTimeHour(){if(this.char===CHAR_COLON){if(this.state.buf.length<2){throw this.error(new TomlError("Hours less than 10 must be zero padded to two characters"))}this.state.result=this.state.buf;this.state.buf="";return this.next(this.parseOnlyTimeMin)}else{throw this.error(new TomlError("Incomplete time"))}}parseOnlyTimeMin(){if(this.state.buf.length<2&&isDigit(this.char)){this.consume()}else if(this.state.buf.length===2&&this.char===CHAR_COLON){this.state.result+=":"+this.state.buf;this.state.buf="";return this.next(this.parseOnlyTimeSec)}else{throw this.error(new TomlError("Incomplete time"))}}parseOnlyTimeSec(){if(isDigit(this.char)){this.consume();if(this.state.buf.length===2){return this.next(this.parseOnlyTimeFractionMaybe)}}else{throw this.error(new TomlError("Incomplete time"))}}parseOnlyTimeFractionMaybe(){this.state.result+=":"+this.state.buf;if(this.char===CHAR_PERIOD){this.state.buf="";this.next(this.parseOnlyTimeFraction)}else{return this.return(createTime(this.state.result))}}parseOnlyTimeFraction(){if(isDigit(this.char)){this.consume()}else if(this.atEndOfWord()){if(this.state.buf.length===0)throw this.error(new TomlError("Expected digit in milliseconds"));return this.returnNow(createTime(this.state.result+"."+this.state.buf))}else{throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}}parseTimeZoneOrFraction(){if(this.char===CHAR_PERIOD){this.consume();this.next(this.parseDateTimeFraction)}else if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS){this.consume();this.next(this.parseTimeZoneHour)}else if(this.char===CHAR_Z){this.consume();return this.return(createDateTime(this.state.result+this.state.buf))}else if(this.atEndOfWord()){return this.returnNow(createDateTimeFloat(this.state.result+this.state.buf))}else{throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}}parseDateTimeFraction(){if(isDigit(this.char)){this.consume()}else if(this.state.buf.length===1){throw this.error(new TomlError("Expected digit in milliseconds"))}else if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS){this.consume();this.next(this.parseTimeZoneHour)}else if(this.char===CHAR_Z){this.consume();return this.return(createDateTime(this.state.result+this.state.buf))}else if(this.atEndOfWord()){return this.returnNow(createDateTimeFloat(this.state.result+this.state.buf))}else{throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}}parseTimeZoneHour(){if(isDigit(this.char)){this.consume();if(/\d\d$/.test(this.state.buf))return this.next(this.parseTimeZoneSep)}else{throw this.error(new TomlError("Unexpected character in datetime, expected digit"))}}parseTimeZoneSep(){if(this.char===CHAR_COLON){this.consume();this.next(this.parseTimeZoneMin)}else{throw this.error(new TomlError("Unexpected character in datetime, expected colon"))}}parseTimeZoneMin(){if(isDigit(this.char)){this.consume();if(/\d\d$/.test(this.state.buf))return this.return(createDateTime(this.state.result+this.state.buf))}else{throw this.error(new TomlError("Unexpected character in datetime, expected digit"))}}parseBoolean(){if(this.char===CHAR_t){this.consume();return this.next(this.parseTrue_r)}else if(this.char===CHAR_f){this.consume();return this.next(this.parseFalse_a)}}parseTrue_r(){if(this.char===CHAR_r){this.consume();return this.next(this.parseTrue_u)}else{throw this.error(new TomlError("Invalid boolean, expected true or false"))}}parseTrue_u(){if(this.char===CHAR_u){this.consume();return this.next(this.parseTrue_e)}else{throw this.error(new TomlError("Invalid boolean, expected true or false"))}}parseTrue_e(){if(this.char===CHAR_e){return this.return(true)}else{throw this.error(new TomlError("Invalid boolean, expected true or false"))}}parseFalse_a(){if(this.char===CHAR_a){this.consume();return this.next(this.parseFalse_l)}else{throw this.error(new TomlError("Invalid boolean, expected true or false"))}}parseFalse_l(){if(this.char===CHAR_l){this.consume();return this.next(this.parseFalse_s)}else{throw this.error(new TomlError("Invalid boolean, expected true or false"))}}parseFalse_s(){if(this.char===CHAR_s){this.consume();return this.next(this.parseFalse_e)}else{throw this.error(new TomlError("Invalid boolean, expected true or false"))}}parseFalse_e(){if(this.char===CHAR_e){return this.return(false)}else{throw this.error(new TomlError("Invalid boolean, expected true or false"))}}parseInlineList(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M||this.char===CTRL_J){return null}else if(this.char===e.END){throw this.error(new TomlError("Unterminated inline array"))}else if(this.char===CHAR_NUM){return this.call(this.parseComment)}else if(this.char===CHAR_RSQB){return this.return(this.state.resultArr||InlineList())}else{return this.callNow(this.parseValue,this.recordInlineListValue)}}recordInlineListValue(e){if(this.state.resultArr){const t=this.state.resultArr[_contentType];const r=tomlType(e);if(t!==r){throw this.error(new TomlError(`Inline lists must be a single type, not a mix of ${t} and ${r}`))}}else{this.state.resultArr=InlineList(tomlType(e))}if(isFloat(e)||isInteger(e)){this.state.resultArr.push(e.valueOf())}else{this.state.resultArr.push(e)}return this.goto(this.parseInlineListNext)}parseInlineListNext(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M||this.char===CTRL_J){return null}else if(this.char===CHAR_NUM){return this.call(this.parseComment)}else if(this.char===CHAR_COMMA){return this.next(this.parseInlineList)}else if(this.char===CHAR_RSQB){return this.goto(this.parseInlineList)}else{throw this.error(new TomlError("Invalid character, expected whitespace, comma (,) or close bracket (])"))}}parseInlineTable(){if(this.char===CHAR_SP||this.char===CTRL_I){return null}else if(this.char===e.END||this.char===CHAR_NUM||this.char===CTRL_J||this.char===CTRL_M){throw this.error(new TomlError("Unterminated inline array"))}else if(this.char===CHAR_RCUB){return this.return(this.state.resultTable||InlineTable())}else{if(!this.state.resultTable)this.state.resultTable=InlineTable();return this.callNow(this.parseAssign,this.recordInlineTableValue)}}recordInlineTableValue(e){let t=this.state.resultTable;let r=e.key.pop();for(let r of e.key){if(hasKey(t,r)&&(!isTable(t[r])||t[r][_declared])){throw this.error(new TomlError("Can't redefine existing key"))}t=t[r]=t[r]||Table()}if(hasKey(t,r)){throw this.error(new TomlError("Can't redefine existing key"))}if(isInteger(e.value)||isFloat(e.value)){t[r]=e.value.valueOf()}else{t[r]=e.value}return this.goto(this.parseInlineTableNext)}parseInlineTableNext(){if(this.char===CHAR_SP||this.char===CTRL_I){return null}else if(this.char===e.END||this.char===CHAR_NUM||this.char===CTRL_J||this.char===CTRL_M){throw this.error(new TomlError("Unterminated inline array"))}else if(this.char===CHAR_COMMA){return this.next(this.parseInlineTable)}else if(this.char===CHAR_RCUB){return this.goto(this.parseInlineTable)}else{throw this.error(new TomlError("Invalid character, expected whitespace, comma (,) or close bracket (])"))}}}return TOMLParser}},6322:(e,t,r)=>{"use strict";e.exports=parseAsync;const s=r(929);const n=r(6112);function parseAsync(e,t){if(!t)t={};const r=0;const o=t.blocksize||40960;const i=new s;return new Promise(((e,t)=>{setImmediate(parseAsyncNext,r,o,e,t)}));function parseAsyncNext(t,r,s,o){if(t>=e.length){try{return s(i.finish())}catch(t){return o(n(t,e))}}try{i.parse(e.slice(t,t+r));setImmediate(parseAsyncNext,t+r,r,s,o)}catch(t){o(n(t,e))}}}},6112:e=>{"use strict";e.exports=prettyError;function prettyError(e,t){if(e.pos==null||e.line==null)return e;let r=e.message;r+=` at row ${e.line+1}, col ${e.col+1}, pos ${e.pos}:\n`;if(t&&t.split){const s=t.split(/\n/);const n=String(Math.min(s.length,e.line+3)).length;let o=" ";while(o.length "+s[t]+"\n";r+=o+" ";for(let t=0;t{"use strict";e.exports=parseStream;const s=r(2413);const n=r(929);function parseStream(e){if(e){return parseReadable(e)}else{return parseTransform(e)}}function parseReadable(e){const t=new n;e.setEncoding("utf8");return new Promise(((r,s)=>{let n;let o=false;let i=false;function finish(){o=true;if(n)return;try{r(t.finish())}catch(e){s(e)}}function error(e){i=true;s(e)}e.once("end",finish);e.once("error",error);readNext();function readNext(){n=true;let r;while((r=e.read())!==null){try{t.parse(r)}catch(e){return error(e)}}n=false;if(o)return finish();if(i)return;e.once("readable",readNext)}}))}function parseTransform(){const e=new n;return new s.Transform({objectMode:true,transform(t,r,s){try{e.parse(t.toString(r))}catch(e){this.emit("error",e)}s()},flush(t){try{this.push(e.finish())}catch(e){this.emit("error",e)}t()}})}},9287:(e,t,r)=>{"use strict";e.exports=parseString;const s=r(929);const n=r(6112);function parseString(e){if(global.Buffer&&global.Buffer.isBuffer(e)){e=e.toString("utf8")}const t=new s;try{t.parse(e);return t.finish()}catch(t){throw n(t,e)}}},5682:(e,t,r)=>{"use strict";e.exports=r(9287);e.exports.async=r(6322);e.exports.stream=r(6681);e.exports.prettyError=r(6112)},5673:e=>{"use strict";e.exports=stringify;e.exports.value=stringifyInline;function stringify(e){if(e===null)throw typeError("null");if(e===void 0)throw typeError("undefined");if(typeof e!=="object")throw typeError(typeof e);if(typeof e.toJSON==="function")e=e.toJSON();if(e==null)return null;const t=tomlType(e);if(t!=="table")throw typeError(t);return stringifyObject("","",e)}function typeError(e){return new Error("Can only stringify objects, not "+e)}function arrayOneTypeError(){return new Error("Array values can't have mixed types")}function getInlineKeys(e){return Object.keys(e).filter((t=>isInline(e[t])))}function getComplexKeys(e){return Object.keys(e).filter((t=>!isInline(e[t])))}function toJSON(e){let t=Array.isArray(e)?[]:Object.prototype.hasOwnProperty.call(e,"__proto__")?{["__proto__"]:undefined}:{};for(let r of Object.keys(e)){if(e[r]&&typeof e[r].toJSON==="function"&&!("toISOString"in e[r])){t[r]=e[r].toJSON()}else{t[r]=e[r]}}return t}function stringifyObject(e,t,r){r=toJSON(r);var s;var n;s=getInlineKeys(r);n=getComplexKeys(r);var o=[];var i=t||"";s.forEach((e=>{var t=tomlType(r[e]);if(t!=="undefined"&&t!=="null"){o.push(i+stringifyKey(e)+" = "+stringifyAnyInline(r[e],true))}}));if(o.length>0)o.push("");var a=e&&s.length>0?t+" ":"";n.forEach((t=>{o.push(stringifyComplex(e,a,t,r[t]))}));return o.join("\n")}function isInline(e){switch(tomlType(e)){case"undefined":case"null":case"integer":case"nan":case"float":case"boolean":case"string":case"datetime":return true;case"array":return e.length===0||tomlType(e[0])!=="table";case"table":return Object.keys(e).length===0;default:return false}}function tomlType(e){if(e===undefined){return"undefined"}else if(e===null){return"null"}else if(typeof e==="bigint"||Number.isInteger(e)&&!Object.is(e,-0)){return"integer"}else if(typeof e==="number"){return"float"}else if(typeof e==="boolean"){return"boolean"}else if(typeof e==="string"){return"string"}else if("toISOString"in e){return isNaN(e)?"undefined":"datetime"}else if(Array.isArray(e)){return"array"}else{return"table"}}function stringifyKey(e){var t=String(e);if(/^[-A-Za-z0-9_]+$/.test(t)){return t}else{return stringifyBasicString(t)}}function stringifyBasicString(e){return'"'+escapeString(e).replace(/"/g,'\\"')+'"'}function stringifyLiteralString(e){return"'"+e+"'"}function numpad(e,t){while(t.length"\\u"+numpad(4,e.codePointAt(0).toString(16))))}function stringifyMultilineString(e){let t=e.split(/\n/).map((e=>escapeString(e).replace(/"(?="")/g,'\\"'))).join("\n");if(t.slice(-1)==='"')t+="\\\n";return'"""\n'+t+'"""'}function stringifyAnyInline(e,t){let r=tomlType(e);if(r==="string"){if(t&&/\n/.test(e)){r="string-multiline"}else if(!/[\b\t\n\f\r']/.test(e)&&/"/.test(e)){r="string-literal"}}return stringifyInline(e,r)}function stringifyInline(e,t){if(!t)t=tomlType(e);switch(t){case"string-multiline":return stringifyMultilineString(e);case"string":return stringifyBasicString(e);case"string-literal":return stringifyLiteralString(e);case"integer":return stringifyInteger(e);case"float":return stringifyFloat(e);case"boolean":return stringifyBoolean(e);case"datetime":return stringifyDatetime(e);case"array":return stringifyInlineArray(e.filter((e=>tomlType(e)!=="null"&&tomlType(e)!=="undefined"&&tomlType(e)!=="nan")));case"table":return stringifyInlineTable(e);default:throw typeError(t)}}function stringifyInteger(e){return String(e).replace(/\B(?=(\d{3})+(?!\d))/g,"_")}function stringifyFloat(e){if(e===Infinity){return"inf"}else if(e===-Infinity){return"-inf"}else if(Object.is(e,NaN)){return"nan"}else if(Object.is(e,-0)){return"-0.0"}var t=String(e).split(".");var r=t[0];var s=t[1]||0;return stringifyInteger(r)+"."+s}function stringifyBoolean(e){return String(e)}function stringifyDatetime(e){return e.toISOString()}function isNumber(e){return e==="float"||e==="integer"}function arrayType(e){var t=tomlType(e[0]);if(e.every((e=>tomlType(e)===t)))return t;if(e.every((e=>isNumber(tomlType(e)))))return"float";return"mixed"}function validateArray(e){const t=arrayType(e);if(t==="mixed"){throw arrayOneTypeError()}return t}function stringifyInlineArray(e){e=toJSON(e);const t=validateArray(e);var r="[";var s=e.map((e=>stringifyInline(e,t)));if(s.join(", ").length>60||/\n/.test(s)){r+="\n "+s.join(",\n ")+"\n"}else{r+=" "+s.join(", ")+(s.length>0?" ":"")}return r+"]"}function stringifyInlineTable(e){e=toJSON(e);var t=[];Object.keys(e).forEach((r=>{t.push(stringifyKey(r)+" = "+stringifyAnyInline(e[r],false))}));return"{ "+t.join(", ")+(t.length>0?" ":"")+"}"}function stringifyComplex(e,t,r,s){var n=tomlType(s);if(n==="array"){return stringifyArrayOfTables(e,t,r,s)}else if(n==="table"){return stringifyComplexTable(e,t,r,s)}else{throw typeError(n)}}function stringifyArrayOfTables(e,t,r,s){s=toJSON(s);validateArray(s);var n=tomlType(s[0]);if(n!=="table")throw typeError(n);var o=e+stringifyKey(r);var i="";s.forEach((e=>{if(i.length>0)i+="\n";i+=t+"[["+o+"]]\n";i+=stringifyObject(o+".",t,e)}));return i}function stringifyComplexTable(e,t,r,s){var n=e+stringifyKey(r);var o="";if(getInlineKeys(s).length>0){o+=t+"["+n+"]\n"}return o+stringifyObject(n+".",t,s)}},9434:(e,t,r)=>{"use strict";t.parse=r(5682);t.stringify=r(5673)},6258:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});async function auth(e){const t=e.split(/\./).length===3?"app":/^v\d+\./.test(e)?"installation":"oauth";return{type:"token",token:e,tokenType:t}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,r,s){const n=t.endpoint.merge(r,s);n.headers.authorization=withAuthorizationPrefix(e);return t(n)}const r=function createTokenAuth(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};t.createTokenAuth=r},5341:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var s=r(5212);var n=r(3635);var o=r(8410);var i=r(8559);var a=r(6258);function _objectWithoutPropertiesLoose(e,t){if(e==null)return{};var r={};var s=Object.keys(e);var n,o;for(o=0;o=0)continue;r[n]=e[n]}return r}function _objectWithoutProperties(e,t){if(e==null)return{};var r=_objectWithoutPropertiesLoose(e,t);var s,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,s))continue;r[s]=e[s]}}return r}const c="3.2.5";class Octokit{constructor(e={}){const t=new n.Collection;const r={baseUrl:o.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};r.headers["user-agent"]=[e.userAgent,`octokit-core.js/${c} ${s.getUserAgent()}`].filter(Boolean).join(" ");if(e.baseUrl){r.baseUrl=e.baseUrl}if(e.previews){r.mediaType.previews=e.previews}if(e.timeZone){r.headers["time-zone"]=e.timeZone}this.request=o.request.defaults(r);this.graphql=i.withCustomRequest(this.request).defaults(r);this.log=Object.assign({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},e.log);this.hook=t;if(!e.authStrategy){if(!e.auth){this.auth=async()=>({type:"unauthenticated"})}else{const r=a.createTokenAuth(e.auth);t.wrap("request",r.hook);this.auth=r}}else{const{authStrategy:r}=e,s=_objectWithoutProperties(e,["authStrategy"]);const n=r(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:s},e.auth));t.wrap("request",n.hook);this.auth=n}const u=this.constructor;u.plugins.forEach((t=>{Object.assign(this,t(this,e))}))}static defaults(e){const t=class extends(this){constructor(...t){const r=t[0]||{};if(typeof e==="function"){super(e(r));return}super(Object.assign({},e,r,r.userAgent&&e.userAgent?{userAgent:`${r.userAgent} ${e.userAgent}`}:null))}};return t}static plugin(...e){var t;const r=this.plugins;const s=(t=class extends(this){},t.plugins=r.concat(e.filter((e=>!r.includes(e)))),t);return s}}Octokit.VERSION=c;Octokit.plugins=[];t.Octokit=Octokit},8773:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var s=r(9455);var n=r(5212);function lowercaseKeys(e){if(!e){return{}}return Object.keys(e).reduce(((t,r)=>{t[r.toLowerCase()]=e[r];return t}),{})}function mergeDeep(e,t){const r=Object.assign({},e);Object.keys(t).forEach((n=>{if(s.isPlainObject(t[n])){if(!(n in e))Object.assign(r,{[n]:t[n]});else r[n]=mergeDeep(e[n],t[n])}else{Object.assign(r,{[n]:t[n]})}}));return r}function removeUndefinedProperties(e){for(const t in e){if(e[t]===undefined){delete e[t]}}return e}function merge(e,t,r){if(typeof t==="string"){let[e,s]=t.split(" ");r=Object.assign(s?{method:e,url:s}:{url:e},r)}else{r=Object.assign({},t)}r.headers=lowercaseKeys(r.headers);removeUndefinedProperties(r);removeUndefinedProperties(r.headers);const s=mergeDeep(e||{},r);if(e&&e.mediaType.previews.length){s.mediaType.previews=e.mediaType.previews.filter((e=>!s.mediaType.previews.includes(e))).concat(s.mediaType.previews)}s.mediaType.previews=s.mediaType.previews.map((e=>e.replace(/-preview/,"")));return s}function addQueryParameters(e,t){const r=/\?/.test(e)?"&":"?";const s=Object.keys(t);if(s.length===0){return e}return e+r+s.map((e=>{if(e==="q"){return"q="+t.q.split("+").map(encodeURIComponent).join("+")}return`${e}=${encodeURIComponent(t[e])}`})).join("&")}const o=/\{[^}]+\}/g;function removeNonChars(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(e){const t=e.match(o);if(!t){return[]}return t.map(removeNonChars).reduce(((e,t)=>e.concat(t)),[])}function omit(e,t){return Object.keys(e).filter((e=>!t.includes(e))).reduce(((t,r)=>{t[r]=e[r];return t}),{})}function encodeReserved(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){if(!/%[0-9A-Fa-f]/.test(e)){e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")}return e})).join("")}function encodeUnreserved(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(e,t,r){t=e==="+"||e==="#"?encodeReserved(t):encodeUnreserved(t);if(r){return encodeUnreserved(r)+"="+t}else{return t}}function isDefined(e){return e!==undefined&&e!==null}function isKeyOperator(e){return e===";"||e==="&"||e==="?"}function getValues(e,t,r,s){var n=e[r],o=[];if(isDefined(n)&&n!==""){if(typeof n==="string"||typeof n==="number"||typeof n==="boolean"){n=n.toString();if(s&&s!=="*"){n=n.substring(0,parseInt(s,10))}o.push(encodeValue(t,n,isKeyOperator(t)?r:""))}else{if(s==="*"){if(Array.isArray(n)){n.filter(isDefined).forEach((function(e){o.push(encodeValue(t,e,isKeyOperator(t)?r:""))}))}else{Object.keys(n).forEach((function(e){if(isDefined(n[e])){o.push(encodeValue(t,n[e],e))}}))}}else{const e=[];if(Array.isArray(n)){n.filter(isDefined).forEach((function(r){e.push(encodeValue(t,r))}))}else{Object.keys(n).forEach((function(r){if(isDefined(n[r])){e.push(encodeUnreserved(r));e.push(encodeValue(t,n[r].toString()))}}))}if(isKeyOperator(t)){o.push(encodeUnreserved(r)+"="+e.join(","))}else if(e.length!==0){o.push(e.join(","))}}}}else{if(t===";"){if(isDefined(n)){o.push(encodeUnreserved(r))}}else if(n===""&&(t==="&"||t==="?")){o.push(encodeUnreserved(r)+"=")}else if(n===""){o.push("")}}return o}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,t){var r=["+","#",".","/",";","?","&"];return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(e,s,n){if(s){let e="";const n=[];if(r.indexOf(s.charAt(0))!==-1){e=s.charAt(0);s=s.substr(1)}s.split(/,/g).forEach((function(r){var s=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);n.push(getValues(t,e,s[1],s[2]||s[3]))}));if(e&&e!=="+"){var o=",";if(e==="?"){o="&"}else if(e!=="#"){o=e}return(n.length!==0?e:"")+n.join(o)}else{return n.join(",")}}else{return encodeReserved(n)}}))}function parse(e){let t=e.method.toUpperCase();let r=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let s=Object.assign({},e.headers);let n;let o=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const i=extractUrlVariableNames(r);r=parseUrl(r).expand(o);if(!/^http/.test(r)){r=e.baseUrl+r}const a=Object.keys(e).filter((e=>i.includes(e))).concat("baseUrl");const c=omit(o,a);const u=/application\/octet-stream/i.test(s.accept);if(!u){if(e.mediaType.format){s.accept=s.accept.split(/,/).map((t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`))).join(",")}if(e.mediaType.previews.length){const t=s.accept.match(/[\w-]+(?=-preview)/g)||[];s.accept=t.concat(e.mediaType.previews).map((t=>{const r=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${t}-preview${r}`})).join(",")}}if(["GET","HEAD"].includes(t)){r=addQueryParameters(r,c)}else{if("data"in c){n=c.data}else{if(Object.keys(c).length){n=c}else{s["content-length"]=0}}}if(!s["content-type"]&&typeof n!=="undefined"){s["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(t)&&typeof n==="undefined"){n=""}return Object.assign({method:t,url:r,headers:s},typeof n!=="undefined"?{body:n}:null,e.request?{request:e.request}:null)}function endpointWithDefaults(e,t,r){return parse(merge(e,t,r))}function withDefaults(e,t){const r=merge(e,t);const s=endpointWithDefaults.bind(null,r);return Object.assign(s,{DEFAULTS:r,defaults:withDefaults.bind(null,r),merge:merge.bind(null,r),parse:parse})}const i="6.0.11";const a=`octokit-endpoint.js/${i} ${n.getUserAgent()}`;const c={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":a},mediaType:{format:"",previews:[]}};const u=withDefaults(null,c);t.endpoint=u},8559:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var s=r(8410);var n=r(5212);const o="4.6.0";class GraphqlError extends Error{constructor(e,t){const r=t.data.errors[0].message;super(r);Object.assign(this,t.data);Object.assign(this,{headers:t.headers});this.name="GraphqlError";this.request=e;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}}const i=["method","baseUrl","url","headers","request","query","mediaType"];const a=/\/api\/v3\/?$/;function graphql(e,t,r){if(typeof t==="string"&&r&&"query"in r){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}const s=typeof t==="string"?Object.assign({query:t},r):t;const n=Object.keys(s).reduce(((e,t)=>{if(i.includes(t)){e[t]=s[t];return e}if(!e.variables){e.variables={}}e.variables[t]=s[t];return e}),{});const o=s.baseUrl||e.endpoint.DEFAULTS.baseUrl;if(a.test(o)){n.url=o.replace(a,"/api/graphql")}return 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 GraphqlError(n,{headers:t,data:e.data})}return e.data.data}))}function withDefaults(e,t){const r=e.defaults(t);const newApi=(e,t)=>graphql(r,e,t);return Object.assign(newApi,{defaults:withDefaults.bind(null,r),endpoint:s.request.endpoint})}const c=withDefaults(s.request,{headers:{"user-agent":`octokit-graphql.js/${o} ${n.getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return withDefaults(e,{method:"POST",url:"/graphql"})}t.graphql=c;t.withCustomRequest=withCustomRequest},8100:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r="2.9.1";function normalizePaginatedListResponse(e){const t="total_count"in e.data&&!("url"in e.data);if(!t)return e;const r=e.data.incomplete_results;const s=e.data.repository_selection;const n=e.data.total_count;delete e.data.incomplete_results;delete e.data.repository_selection;delete e.data.total_count;const o=Object.keys(e.data)[0];const i=e.data[o];e.data=i;if(typeof r!=="undefined"){e.data.incomplete_results=r}if(typeof s!=="undefined"){e.data.repository_selection=s}e.data.total_count=n;return e}function iterator(e,t,r){const s=typeof t==="function"?t.endpoint(r):e.request.endpoint(t,r);const n=typeof t==="function"?t:e.request;const o=s.method;const i=s.headers;let a=s.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!a)return{done:true};const e=await n({method:o,url:a,headers:i});const t=normalizePaginatedListResponse(e);a=((t.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:t}}})}}function paginate(e,t,r,s){if(typeof r==="function"){s=r;r=undefined}return gather(e,[],iterator(e,t,r)[Symbol.asyncIterator](),s)}function gather(e,t,r,s){return r.next().then((n=>{if(n.done){return t}let o=false;function done(){o=true}t=t.concat(s?s(n.value,done):n.value.data);if(o){return t}return gather(e,t,r,s)}))}const s=Object.assign(paginate,{iterator:iterator});function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=r;t.composePaginateRest=s;t.paginateRest=paginateRest},6690:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r={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"],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:{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:{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"]},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"}],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"]}};const s="4.10.3";function endpointsToMethods(e,t){const r={};for(const[s,n]of Object.entries(t)){for(const[t,o]of Object.entries(n)){const[n,i,a]=o;const[c,u]=n.split(/ /);const l=Object.assign({method:c,url:u},i);if(!r[s]){r[s]={}}const p=r[s];if(a){p[t]=decorate(e,s,t,l,a);continue}p[t]=e.request.defaults(l)}}return r}function decorate(e,t,r,s,n){const o=e.request.defaults(s);function withDecorations(...s){let i=o.endpoint.merge(...s);if(n.mapToData){i=Object.assign({},i,{data:i[n.mapToData],[n.mapToData]:undefined});return o(i)}if(n.renamed){const[s,o]=n.renamed;e.log.warn(`octokit.${t}.${r}() has been renamed to octokit.${s}.${o}()`)}if(n.deprecated){e.log.warn(n.deprecated)}if(n.renamedParameters){const i=o.endpoint.merge(...s);for(const[s,o]of Object.entries(n.renamedParameters)){if(s in i){e.log.warn(`"${s}" parameter is deprecated for "octokit.${t}.${r}()". Use "${o}" instead`);if(!(o in i)){i[o]=i[s]}delete i[s]}}return o(i)}return o(...s)}return Object.assign(withDecorations,o)}function restEndpointMethods(e){return endpointsToMethods(e,r)}restEndpointMethods.VERSION=s;t.restEndpointMethods=restEndpointMethods},8696:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var s=r(5297);var n=_interopDefault(r(7197));const o=n((e=>console.warn(e)));class RequestError extends Error{constructor(e,t,r){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.status=t;Object.defineProperty(this,"code",{get(){o(new s.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return t}});this.headers=r.headers||{};const n=Object.assign({},r.request);if(r.request.headers.authorization){n.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}n.url=n.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=n}}t.RequestError=RequestError},8410:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var s=r(8773);var n=r(5212);var o=r(9455);var i=_interopDefault(r(2197));var a=r(8696);const c="5.4.14";function getBufferResponse(e){return e.arrayBuffer()}function fetchWrapper(e){if(o.isPlainObject(e.body)||Array.isArray(e.body)){e.body=JSON.stringify(e.body)}let t={};let r;let s;const n=e.request&&e.request.fetch||i;return n(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect},e.request)).then((n=>{s=n.url;r=n.status;for(const e of n.headers){t[e[0]]=e[1]}if(r===204||r===205){return}if(e.method==="HEAD"){if(r<400){return}throw new a.RequestError(n.statusText,r,{headers:t,request:e})}if(r===304){throw new a.RequestError("Not modified",r,{headers:t,request:e})}if(r>=400){return n.text().then((s=>{const n=new a.RequestError(s,r,{headers:t,request:e});try{let e=JSON.parse(n.message);Object.assign(n,e);let t=e.errors;n.message=n.message+": "+t.map(JSON.stringify).join(", ")}catch(e){}throw n}))}const o=n.headers.get("content-type");if(/application\/json/.test(o)){return n.json()}if(!o||/^text\/|charset=utf-8$/.test(o)){return n.text()}return getBufferResponse(n)})).then((e=>({status:r,url:s,headers:t,data:e}))).catch((r=>{if(r instanceof a.RequestError){throw r}throw new a.RequestError(r.message,500,{headers:t,request:e})}))}function withDefaults(e,t){const r=e.defaults(t);const newApi=function(e,t){const s=r.merge(e,t);if(!s.request||!s.request.hook){return fetchWrapper(r.parse(s))}const request=(e,t)=>fetchWrapper(r.parse(r.merge(e,t)));Object.assign(request,{endpoint:r,defaults:withDefaults.bind(null,r)});return s.request.hook(request,s)};return Object.assign(newApi,{endpoint:r,defaults:withDefaults.bind(null,r)})}const u=withDefaults(s.endpoint,{headers:{"user-agent":`octokit-request.js/${c} ${n.getUserAgent()}`}});t.request=u},3635:(e,t,r)=>{var s=r(8195);var n=r(8491);var o=r(48);var i=Function.bind;var a=i.bind(i);function bindApi(e,t,r){var s=a(o,null).apply(null,r?[t,r]:[t]);e.api={remove:s};e.remove=s;["before","error","after","wrap"].forEach((function(s){var o=r?[t,s,r]:[t,s];e[s]=e.api[s]=a(n,null).apply(null,o)}))}function HookSingular(){var e="h";var t={registry:{}};var r=s.bind(null,t,e);bindApi(r,t,e);return r}function HookCollection(){var e={registry:{}};var t=s.bind(null,e);bindApi(t,e);return t}var c=false;function Hook(){if(!c){console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4');c=true}return HookCollection()}Hook.Singular=HookSingular.bind();Hook.Collection=HookCollection.bind();e.exports=Hook;e.exports.Hook=Hook;e.exports.Singular=Hook.Singular;e.exports.Collection=Hook.Collection},8491:e=>{e.exports=addHook;function addHook(e,t,r,s){var n=s;if(!e.registry[r]){e.registry[r]=[]}if(t==="before"){s=function(e,t){return Promise.resolve().then(n.bind(null,t)).then(e.bind(null,t))}}if(t==="after"){s=function(e,t){var r;return Promise.resolve().then(e.bind(null,t)).then((function(e){r=e;return n(r,t)})).then((function(){return r}))}}if(t==="error"){s=function(e,t){return Promise.resolve().then(e.bind(null,t)).catch((function(e){return n(e,t)}))}}e.registry[r].push({hook:s,orig:n})}},8195:e=>{e.exports=register;function register(e,t,r,s){if(typeof r!=="function"){throw new Error("method for before hook must be a function")}if(!s){s={}}if(Array.isArray(t)){return t.reverse().reduce((function(t,r){return register.bind(null,e,r,t,s)}),r)()}return Promise.resolve().then((function(){if(!e.registry[t]){return r(s)}return e.registry[t].reduce((function(e,t){return t.hook.bind(null,e,s)}),r)()}))}},48:e=>{e.exports=removeHook;function removeHook(e,t,r){if(!e.registry[t]){return}var s=e.registry[t].map((function(e){return e.orig})).indexOf(r);if(s===-1){return}e.registry[t].splice(s,1)}},7987:(e,t,r)=>{"use strict";const s=r(3129);const n=r(1655);const o=r(9738);function spawn(e,t,r){const i=n(e,t,r);const a=s.spawn(i.command,i.args,i.options);o.hookChildProcess(a,i);return a}function spawnSync(e,t,r){const i=n(e,t,r);const a=s.spawnSync(i.command,i.args,i.options);a.error=a.error||o.verifyENOENTSync(a.status,i);return a}e.exports=spawn;e.exports.spawn=spawn;e.exports.sync=spawnSync;e.exports._parse=n;e.exports._enoent=o},9738:e=>{"use strict";const t=process.platform==="win32";function notFoundError(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function hookChildProcess(e,r){if(!t){return}const s=e.emit;e.emit=function(t,n){if(t==="exit"){const t=verifyENOENT(n,r,"spawn");if(t){return s.call(e,"error",t)}}return s.apply(e,arguments)}}function verifyENOENT(e,r){if(t&&e===1&&!r.file){return notFoundError(r.original,"spawn")}return null}function verifyENOENTSync(e,r){if(t&&e===1&&!r.file){return notFoundError(r.original,"spawnSync")}return null}e.exports={hookChildProcess:hookChildProcess,verifyENOENT:verifyENOENT,verifyENOENTSync:verifyENOENTSync,notFoundError:notFoundError}},1655:(e,t,r)=>{"use strict";const s=r(5622);const n=r(7534);const o=r(8902);const i=r(2964);const a=process.platform==="win32";const c=/\.(?:com|exe)$/i;const u=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function detectShebang(e){e.file=n(e);const t=e.file&&i(e.file);if(t){e.args.unshift(e.file);e.command=t;return n(e)}return e.file}function parseNonShell(e){if(!a){return e}const t=detectShebang(e);const r=!c.test(t);if(e.options.forceShell||r){const r=u.test(t);e.command=s.normalize(e.command);e.command=o.command(e.command);e.args=e.args.map((e=>o.argument(e,r)));const n=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${n}"`];e.command=process.env.comspec||"cmd.exe";e.options.windowsVerbatimArguments=true}return e}function parse(e,t,r){if(t&&!Array.isArray(t)){r=t;t=null}t=t?t.slice(0):[];r=Object.assign({},r);const s={command:e,args:t,options:r,file:undefined,original:{command:e,args:t}};return r.shell?s:parseNonShell(s)}e.exports=parse},8902:e=>{"use strict";const t=/([()\][%!^"`<>&|;, *?])/g;function escapeCommand(e){e=e.replace(t,"^$1");return e}function escapeArgument(e,r){e=`${e}`;e=e.replace(/(\\*)"/g,'$1$1\\"');e=e.replace(/(\\*)$/,"$1$1");e=`"${e}"`;e=e.replace(t,"^$1");if(r){e=e.replace(t,"^$1")}return e}e.exports.command=escapeCommand;e.exports.argument=escapeArgument},2964:(e,t,r)=>{"use strict";const s=r(5747);const n=r(4970);function readShebang(e){const t=150;const r=Buffer.alloc(t);let o;try{o=s.openSync(e,"r");s.readSync(o,r,0,t,0);s.closeSync(o)}catch(e){}return n(r.toString())}e.exports=readShebang},7534:(e,t,r)=>{"use strict";const s=r(5622);const n=r(8201);const o=r(2170);function resolveCommandAttempt(e,t){const r=e.options.env||process.env;const i=process.cwd();const a=e.options.cwd!=null;const c=a&&process.chdir!==undefined&&!process.chdir.disabled;if(c){try{process.chdir(e.options.cwd)}catch(e){}}let u;try{u=n.sync(e.command,{path:r[o({env:r})],pathExt:t?s.delimiter:undefined})}catch(e){}finally{if(c){process.chdir(i)}}if(u){u=s.resolve(a?e.options.cwd:"",u)}return u}function resolveCommand(e){return resolveCommandAttempt(e)||resolveCommandAttempt(e,true)}e.exports=resolveCommand},5297:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class Deprecation extends Error{constructor(e){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="Deprecation"}}t.Deprecation=Deprecation},580:(e,t,r)=>{"use strict";const s=r(5622);const n=r(3129);const o=r(7987);const i=r(6831);const a=r(1783);const c=r(7462);const u=r(6123);const l=r(8205);const{spawnedKill:p,spawnedCancel:h,setupTimeout:d,setExitHandler:m}=r(6482);const{handleInput:g,getSpawnedResult:b,makeAllStream:T,validateInputSync:w}=r(469);const{mergePromise:y,getSpawnedPromise:_}=r(3563);const{joinCommand:E,parseCommand:v}=r(747);const A=1e3*1e3*100;const getEnv=({env:e,extendEnv:t,preferLocal:r,localDir:s,execPath:n})=>{const o=t?{...process.env,...e}:e;if(r){return a.env({env:o,cwd:s,execPath:n})}return o};const handleArguments=(e,t,r={})=>{const n=o._parse(e,t,r);e=n.command;t=n.args;r=n.options;r={maxBuffer:A,buffer:true,stripFinalNewline:true,extendEnv:true,preferLocal:false,localDir:r.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:true,cleanup:true,all:false,windowsHide:true,...r};r.env=getEnv(r);r.stdio=l(r);if(process.platform==="win32"&&s.basename(e,".exe")==="cmd"){t.unshift("/q")}return{file:e,args:t,options:r,parsed:n}};const handleOutput=(e,t,r)=>{if(typeof t!=="string"&&!Buffer.isBuffer(t)){return r===undefined?undefined:""}if(e.stripFinalNewline){return i(t)}return t};const execa=(e,t,r)=>{const s=handleArguments(e,t,r);const o=E(e,t);let i;try{i=n.spawn(s.file,s.args,s.options)}catch(e){const t=new n.ChildProcess;const r=Promise.reject(u({error:e,stdout:"",stderr:"",all:"",command:o,parsed:s,timedOut:false,isCanceled:false,killed:false}));return y(t,r)}const a=_(i);const l=d(i,s.options,a);const w=m(i,s.options,l);const v={isCanceled:false};i.kill=p.bind(null,i.kill.bind(i));i.cancel=h.bind(null,i,v);const handlePromise=async()=>{const[{error:e,exitCode:t,signal:r,timedOut:n},a,c,l]=await b(i,s.options,w);const p=handleOutput(s.options,a);const h=handleOutput(s.options,c);const d=handleOutput(s.options,l);if(e||t!==0||r!==null){const a=u({error:e,exitCode:t,signal:r,stdout:p,stderr:h,all:d,command:o,parsed:s,timedOut:n,isCanceled:v.isCanceled,killed:i.killed});if(!s.options.reject){return a}throw a}return{command:o,exitCode:0,stdout:p,stderr:h,all:d,failed:false,timedOut:false,isCanceled:false,killed:false}};const A=c(handlePromise);g(i,s.options.input);i.all=T(i,s.options);return y(i,A)};e.exports=execa;e.exports.sync=(e,t,r)=>{const s=handleArguments(e,t,r);const o=E(e,t);w(s.options);let i;try{i=n.spawnSync(s.file,s.args,s.options)}catch(e){throw u({error:e,stdout:"",stderr:"",all:"",command:o,parsed:s,timedOut:false,isCanceled:false,killed:false})}const a=handleOutput(s.options,i.stdout,i.error);const c=handleOutput(s.options,i.stderr,i.error);if(i.error||i.status!==0||i.signal!==null){const e=u({stdout:a,stderr:c,error:i.error,signal:i.signal,exitCode:i.status,command:o,parsed:s,timedOut:i.error&&i.error.code==="ETIMEDOUT",isCanceled:false,killed:i.signal!==null});if(!s.options.reject){return e}throw e}return{command:o,exitCode:0,stdout:a,stderr:c,failed:false,timedOut:false,isCanceled:false,killed:false}};e.exports.command=(e,t)=>{const[r,...s]=v(e);return execa(r,s,t)};e.exports.commandSync=(e,t)=>{const[r,...s]=v(e);return execa.sync(r,s,t)};e.exports.node=(e,t,r={})=>{if(t&&!Array.isArray(t)&&typeof t==="object"){r=t;t=[]}const s=l.node(r);const n=process.execArgv.filter((e=>!e.startsWith("--inspect")));const{nodePath:o=process.execPath,nodeOptions:i=n}=r;return execa(o,[...i,e,...Array.isArray(t)?t:[]],{...r,stdin:undefined,stdout:undefined,stderr:undefined,stdio:s,shell:false})}},747:e=>{"use strict";const t=/ +/g;const joinCommand=(e,t=[])=>{if(!Array.isArray(t)){return e}return[e,...t].join(" ")};const parseCommand=e=>{const r=[];for(const s of e.trim().split(t)){const e=r[r.length-1];if(e&&e.endsWith("\\")){r[r.length-1]=`${e.slice(0,-1)} ${s}`}else{r.push(s)}}return r};e.exports={joinCommand:joinCommand,parseCommand:parseCommand}},6123:(e,t,r)=>{"use strict";const{signalsByName:s}=r(5739);const getErrorPrefix=({timedOut:e,timeout:t,errorCode:r,signal:s,signalDescription:n,exitCode:o,isCanceled:i})=>{if(e){return`timed out after ${t} milliseconds`}if(i){return"was canceled"}if(r!==undefined){return`failed with ${r}`}if(s!==undefined){return`was killed with ${s} (${n})`}if(o!==undefined){return`failed with exit code ${o}`}return"failed"};const makeError=({stdout:e,stderr:t,all:r,error:n,signal:o,exitCode:i,command:a,timedOut:c,isCanceled:u,killed:l,parsed:{options:{timeout:p}}})=>{i=i===null?undefined:i;o=o===null?undefined:o;const h=o===undefined?undefined:s[o].description;const d=n&&n.code;const m=getErrorPrefix({timedOut:c,timeout:p,errorCode:d,signal:o,signalDescription:h,exitCode:i,isCanceled:u});const g=`Command ${m}: ${a}`;const b=Object.prototype.toString.call(n)==="[object Error]";const T=b?`${g}\n${n.message}`:g;const w=[T,t,e].filter(Boolean).join("\n");if(b){n.originalMessage=n.message;n.message=w}else{n=new Error(w)}n.shortMessage=T;n.command=a;n.exitCode=i;n.signal=o;n.signalDescription=h;n.stdout=e;n.stderr=t;if(r!==undefined){n.all=r}if("bufferedData"in n){delete n.bufferedData}n.failed=true;n.timedOut=Boolean(c);n.isCanceled=u;n.killed=l&&!c;return n};e.exports=makeError},6482:(e,t,r)=>{"use strict";const s=r(2087);const n=r(2028);const o=1e3*5;const spawnedKill=(e,t="SIGTERM",r={})=>{const s=e(t);setKillTimeout(e,t,r,s);return s};const setKillTimeout=(e,t,r,s)=>{if(!shouldForceKill(t,r,s)){return}const n=getForceKillAfterTimeout(r);const o=setTimeout((()=>{e("SIGKILL")}),n);if(o.unref){o.unref()}};const shouldForceKill=(e,{forceKillAfterTimeout:t},r)=>isSigterm(e)&&t!==false&&r;const isSigterm=e=>e===s.constants.signals.SIGTERM||typeof e==="string"&&e.toUpperCase()==="SIGTERM";const getForceKillAfterTimeout=({forceKillAfterTimeout:e=true})=>{if(e===true){return o}if(!Number.isFinite(e)||e<0){throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)}return e};const spawnedCancel=(e,t)=>{const r=e.kill();if(r){t.isCanceled=true}};const timeoutKill=(e,t,r)=>{e.kill(t);r(Object.assign(new Error("Timed out"),{timedOut:true,signal:t}))};const setupTimeout=(e,{timeout:t,killSignal:r="SIGTERM"},s)=>{if(t===0||t===undefined){return s}if(!Number.isFinite(t)||t<0){throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`)}let n;const o=new Promise(((s,o)=>{n=setTimeout((()=>{timeoutKill(e,r,o)}),t)}));const i=s.finally((()=>{clearTimeout(n)}));return Promise.race([o,i])};const setExitHandler=async(e,{cleanup:t,detached:r},s)=>{if(!t||r){return s}const o=n((()=>{e.kill()}));return s.finally((()=>{o()}))};e.exports={spawnedKill:spawnedKill,spawnedCancel:spawnedCancel,setupTimeout:setupTimeout,setExitHandler:setExitHandler}},3563:e=>{"use strict";const t=(async()=>{})().constructor.prototype;const r=["then","catch","finally"].map((e=>[e,Reflect.getOwnPropertyDescriptor(t,e)]));const mergePromise=(e,t)=>{for(const[s,n]of r){const r=typeof t==="function"?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,s,{...n,value:r})}return e};const getSpawnedPromise=e=>new Promise(((t,r)=>{e.on("exit",((e,r)=>{t({exitCode:e,signal:r})}));e.on("error",(e=>{r(e)}));if(e.stdin){e.stdin.on("error",(e=>{r(e)}))}}));e.exports={mergePromise:mergePromise,getSpawnedPromise:getSpawnedPromise}},8205:e=>{"use strict";const t=["stdin","stdout","stderr"];const hasAlias=e=>t.some((t=>e[t]!==undefined));const normalizeStdio=e=>{if(!e){return}const{stdio:r}=e;if(r===undefined){return t.map((t=>e[t]))}if(hasAlias(e)){throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${t.map((e=>`\`${e}\``)).join(", ")}`)}if(typeof r==="string"){return r}if(!Array.isArray(r)){throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof r}\``)}const s=Math.max(r.length,t.length);return Array.from({length:s},((e,t)=>r[t]))};e.exports=normalizeStdio;e.exports.node=e=>{const t=normalizeStdio(e);if(t==="ipc"){return"ipc"}if(t===undefined||typeof t==="string"){return[t,t,t,"ipc"]}if(t.includes("ipc")){return t}return[...t,"ipc"]}},469:(e,t,r)=>{"use strict";const s=r(1381);const n=r(9136);const o=r(6281);const handleInput=(e,t)=>{if(t===undefined||e.stdin===undefined){return}if(s(t)){t.pipe(e.stdin)}else{e.stdin.end(t)}};const makeAllStream=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr){return}const r=o();if(e.stdout){r.add(e.stdout)}if(e.stderr){r.add(e.stderr)}return r};const getBufferedData=async(e,t)=>{if(!e){return}e.destroy();try{return await t}catch(e){return e.bufferedData}};const getStreamPromise=(e,{encoding:t,buffer:r,maxBuffer:s})=>{if(!e||!r){return}if(t){return n(e,{encoding:t,maxBuffer:s})}return n.buffer(e,{maxBuffer:s})};const getSpawnedResult=async({stdout:e,stderr:t,all:r},{encoding:s,buffer:n,maxBuffer:o},i)=>{const a=getStreamPromise(e,{encoding:s,buffer:n,maxBuffer:o});const c=getStreamPromise(t,{encoding:s,buffer:n,maxBuffer:o});const u=getStreamPromise(r,{encoding:s,buffer:n,maxBuffer:o*2});try{return await Promise.all([i,a,c,u])}catch(s){return Promise.all([{error:s,signal:s.signal,timedOut:s.timedOut},getBufferedData(e,a),getBufferedData(t,c),getBufferedData(r,u)])}};const validateInputSync=({input:e})=>{if(s(e)){throw new TypeError("The `input` option cannot be a stream in sync mode")}};e.exports={handleInput:handleInput,makeAllStream:makeAllStream,getSpawnedResult:getSpawnedResult,validateInputSync:validateInputSync}},9114:(e,t,r)=>{"use strict";const{PassThrough:s}=r(2413);e.exports=e=>{e={...e};const{array:t}=e;let{encoding:r}=e;const n=r==="buffer";let o=false;if(t){o=!(r||n)}else{r=r||"utf8"}if(n){r=null}const i=new s({objectMode:o});if(r){i.setEncoding(r)}let a=0;const c=[];i.on("data",(e=>{c.push(e);if(o){a=c.length}else{a+=e.length}}));i.getBufferedValue=()=>{if(t){return c}return n?Buffer.concat(c,a):c.join("")};i.getBufferedLength=()=>a;return i}},9136:(e,t,r)=>{"use strict";const{constants:s}=r(4293);const n=r(2413);const{promisify:o}=r(1669);const i=r(9114);const a=o(n.pipeline);class MaxBufferError extends Error{constructor(){super("maxBuffer exceeded");this.name="MaxBufferError"}}async function getStream(e,t){if(!e){throw new Error("Expected a stream")}t={maxBuffer:Infinity,...t};const{maxBuffer:r}=t;const n=i(t);await new Promise(((t,o)=>{const rejectPromise=e=>{if(e&&n.getBufferedLength()<=s.MAX_LENGTH){e.bufferedData=n.getBufferedValue()}o(e)};(async()=>{try{await a(e,n);t()}catch(e){rejectPromise(e)}})();n.on("data",(()=>{if(n.getBufferedLength()>r){rejectPromise(new MaxBufferError)}}))}));return n.getBufferedValue()}e.exports=getStream;e.exports.buffer=(e,t)=>getStream(e,{...t,encoding:"buffer"});e.exports.array=(e,t)=>getStream(e,{...t,array:true});e.exports.MaxBufferError=MaxBufferError},4419:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SIGNALS=void 0;const r=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:true},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:true},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:true},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];t.SIGNALS=r},5739:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.signalsByNumber=t.signalsByName=void 0;var s=r(2087);var n=r(8538);var o=r(4944);const getSignalsByName=function(){const e=(0,n.getSignals)();return e.reduce(getSignalByName,{})};const getSignalByName=function(e,{name:t,number:r,description:s,supported:n,action:o,forced:i,standard:a}){return{...e,[t]:{name:t,number:r,description:s,supported:n,action:o,forced:i,standard:a}}};const i=getSignalsByName();t.signalsByName=i;const getSignalsByNumber=function(){const e=(0,n.getSignals)();const t=o.SIGRTMAX+1;const r=Array.from({length:t},((t,r)=>getSignalByNumber(r,e)));return Object.assign({},...r)};const getSignalByNumber=function(e,t){const r=findSignalByNumber(e,t);if(r===undefined){return{}}const{name:s,description:n,supported:o,action:i,forced:a,standard:c}=r;return{[e]:{name:s,number:e,description:n,supported:o,action:i,forced:a,standard:c}}};const findSignalByNumber=function(e,t){const r=t.find((({name:t})=>s.constants.signals[t]===e));if(r!==undefined){return r}return t.find((t=>t.number===e))};const a=getSignalsByNumber();t.signalsByNumber=a},4944:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SIGRTMAX=t.getRealtimeSignals=void 0;const getRealtimeSignals=function(){const e=s-r+1;return Array.from({length:e},getRealtimeSignal)};t.getRealtimeSignals=getRealtimeSignals;const getRealtimeSignal=function(e,t){return{name:`SIGRT${t+1}`,number:r+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}};const r=34;const s=64;t.SIGRTMAX=s},8538:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSignals=void 0;var s=r(2087);var n=r(4419);var o=r(4944);const getSignals=function(){const e=(0,o.getRealtimeSignals)();const t=[...n.SIGNALS,...e].map(normalizeSignal);return t};t.getSignals=getSignals;const normalizeSignal=function({name:e,number:t,description:r,action:n,forced:o=false,standard:i}){const{signals:{[e]:a}}=s.constants;const c=a!==undefined;const u=c?a:t;return{name:e,number:u,description:r,supported:c,action:n,forced:o,standard:i}}},9455:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true}); /*! * is-plain-object * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. - */function isObject(e){return Object.prototype.toString.call(e)==="[object Object]"}function isPlainObject(e){var t,r;if(isObject(e)===false)return false;t=e.constructor;if(t===undefined)return true;r=t.prototype;if(isObject(r)===false)return false;if(r.hasOwnProperty("isPrototypeOf")===false){return false}return true}t.isPlainObject=isPlainObject},1381:e=>{"use strict";const isStream=e=>e!==null&&typeof e==="object"&&typeof e.pipe==="function";isStream.writable=e=>isStream(e)&&e.writable!==false&&typeof e._write==="function"&&typeof e._writableState==="object";isStream.readable=e=>isStream(e)&&e.readable!==false&&typeof e._read==="function"&&typeof e._readableState==="object";isStream.duplex=e=>isStream.writable(e)&&isStream.readable(e);isStream.transform=e=>isStream.duplex(e)&&typeof e._transform==="function"&&typeof e._transformState==="object";e.exports=isStream},228:(e,t,r)=>{var s=r(5747);var n;if(process.platform==="win32"||global.TESTING_WINDOWS){n=r(7214)}else{n=r(5211)}e.exports=isexe;isexe.sync=sync;function isexe(e,t,r){if(typeof t==="function"){r=t;t={}}if(!r){if(typeof Promise!=="function"){throw new TypeError("callback not provided")}return new Promise((function(r,s){isexe(e,t||{},(function(e,t){if(e){s(e)}else{r(t)}}))}))}n(e,t||{},(function(e,s){if(e){if(e.code==="EACCES"||t&&t.ignoreErrors){e=null;s=false}}r(e,s)}))}function sync(e,t){try{return n.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||e.code==="EACCES"){return false}else{throw e}}}},5211:(e,t,r)=>{e.exports=isexe;isexe.sync=sync;var s=r(5747);function isexe(e,t,r){s.stat(e,(function(e,s){r(e,e?false:checkStat(s,t))}))}function sync(e,t){return checkStat(s.statSync(e),t)}function checkStat(e,t){return e.isFile()&&checkMode(e,t)}function checkMode(e,t){var r=e.mode;var s=e.uid;var n=e.gid;var o=t.uid!==undefined?t.uid:process.getuid&&process.getuid();var i=t.gid!==undefined?t.gid:process.getgid&&process.getgid();var a=parseInt("100",8);var c=parseInt("010",8);var u=parseInt("001",8);var l=a|c;var p=r&u||r&c&&n===i||r&a&&s===o||r&l&&o===0;return p}},7214:(e,t,r)=>{e.exports=isexe;isexe.sync=sync;var s=r(5747);function checkPathExt(e,t){var r=t.pathExt!==undefined?t.pathExt:process.env.PATHEXT;if(!r){return true}r=r.split(";");if(r.indexOf("")!==-1){return true}for(var s=0;s{"use strict";const{PassThrough:s}=r(2413);e.exports=function(){var e=[];var t=new s({objectMode:true});t.setMaxListeners(0);t.add=add;t.isEmpty=isEmpty;t.on("unpipe",remove);Array.prototype.slice.call(arguments).forEach(add);return t;function add(r){if(Array.isArray(r)){r.forEach(add);return this}e.push(r);r.once("end",remove.bind(null,r));r.once("error",t.emit.bind(t,"error"));r.pipe(t,{end:false});return this}function isEmpty(){return e.length==0}function remove(r){e=e.filter((function(e){return e!==r}));if(!e.length&&t.readable){t.end()}}}},481:e=>{"use strict";const mimicFn=(e,t)=>{for(const r of Reflect.ownKeys(t)){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}return e};e.exports=mimicFn;e.exports.default=mimicFn},2197:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var s=_interopDefault(r(2413));var n=_interopDefault(r(8605));var o=_interopDefault(r(8835));var i=_interopDefault(r(7211));var a=_interopDefault(r(8761));const c=s.Readable;const u=Symbol("buffer");const l=Symbol("type");class Blob{constructor(){this[l]="";const e=arguments[0];const t=arguments[1];const r=[];let s=0;if(e){const t=e;const n=Number(t.length);for(let e=0;e1&&arguments[1]!==undefined?arguments[1]:{},n=r.size;let o=n===undefined?0:n;var i=r.timeout;let a=i===undefined?0:i;if(e==null){e=null}else if(isURLSearchParams(e)){e=Buffer.from(e.toString())}else if(isBlob(e));else if(Buffer.isBuffer(e));else if(Object.prototype.toString.call(e)==="[object ArrayBuffer]"){e=Buffer.from(e)}else if(ArrayBuffer.isView(e)){e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)}else if(e instanceof s);else{e=Buffer.from(String(e))}this[h]={body:e,disturbed:false,error:null};this.size=o;this.timeout=a;if(e instanceof s){e.on("error",(function(e){const r=e.name==="AbortError"?e:new FetchError(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e);t[h].error=r}))}}Body.prototype={get body(){return this[h].body},get bodyUsed(){return this[h].disturbed},arrayBuffer(){return consumeBody.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 consumeBody.call(this).then((function(t){return Object.assign(new Blob([],{type:e.toLowerCase()}),{[u]:t})}))},json(){var e=this;return consumeBody.call(this).then((function(t){try{return JSON.parse(t.toString())}catch(t){return Body.Promise.reject(new FetchError(`invalid json response body at ${e.url} reason: ${t.message}`,"invalid-json"))}}))},text(){return consumeBody.call(this).then((function(e){return e.toString()}))},buffer(){return consumeBody.call(this)},textConverted(){var e=this;return consumeBody.call(this).then((function(t){return convertBody(t,e.headers)}))}};Object.defineProperties(Body.prototype,{body:{enumerable:true},bodyUsed:{enumerable:true},arrayBuffer:{enumerable:true},blob:{enumerable:true},json:{enumerable:true},text:{enumerable:true}});Body.mixIn=function(e){for(const t of Object.getOwnPropertyNames(Body.prototype)){if(!(t in e)){const r=Object.getOwnPropertyDescriptor(Body.prototype,t);Object.defineProperty(e,t,r)}}};function consumeBody(){var e=this;if(this[h].disturbed){return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`))}this[h].disturbed=true;if(this[h].error){return Body.Promise.reject(this[h].error)}let t=this.body;if(t===null){return Body.Promise.resolve(Buffer.alloc(0))}if(isBlob(t)){t=t.stream()}if(Buffer.isBuffer(t)){return Body.Promise.resolve(t)}if(!(t instanceof s)){return Body.Promise.resolve(Buffer.alloc(0))}let r=[];let n=0;let o=false;return new Body.Promise((function(s,i){let a;if(e.timeout){a=setTimeout((function(){o=true;i(new FetchError(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))}),e.timeout)}t.on("error",(function(t){if(t.name==="AbortError"){o=true;i(t)}else{i(new FetchError(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t))}}));t.on("data",(function(t){if(o||t===null){return}if(e.size&&n+t.length>e.size){o=true;i(new FetchError(`content size at ${e.url} over limit: ${e.size}`,"max-size"));return}n+=t.length;r.push(t)}));t.on("end",(function(){if(o){return}clearTimeout(a);try{s(Buffer.concat(r,n))}catch(t){i(new FetchError(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}}))}))}function convertBody(e,t){if(typeof p!=="function"){throw new Error("The package `encoding` must be installed to use the textConverted() function")}const r=t.get("content-type");let s="utf-8";let n,o;if(r){n=/charset=([^;]*)/i.exec(r)}o=e.slice(0,1024).toString();if(!n&&o){n=/0&&arguments[0]!==undefined?arguments[0]:undefined;this[b]=Object.create(null);if(e instanceof Headers){const t=e.raw();const r=Object.keys(t);for(const e of r){for(const r of t[e]){this.append(e,r)}}return}if(e==null);else if(typeof e==="object"){const t=e[Symbol.iterator];if(t!=null){if(typeof t!=="function"){throw new TypeError("Header pairs must be iterable")}const r=[];for(const t of e){if(typeof t!=="object"||typeof t[Symbol.iterator]!=="function"){throw new TypeError("Each header pair must be iterable")}r.push(Array.from(t))}for(const e of r){if(e.length!==2){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)){const r=e[t];this.append(t,r)}}}else{throw new TypeError("Provided initializer must be an object")}}get(e){e=`${e}`;validateName(e);const t=find(this[b],e);if(t===undefined){return null}return this[b][t].join(", ")}forEach(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;let r=getHeaders(this);let s=0;while(s1&&arguments[1]!==undefined?arguments[1]:"key+value";const r=Object.keys(e[b]).sort();return r.map(t==="key"?function(e){return e.toLowerCase()}:t==="value"?function(t){return e[b][t].join(", ")}:function(t){return[t.toLowerCase(),e[b][t].join(", ")]})}const w=Symbol("internal");function createHeadersIterator(e,t){const r=Object.create(T);r[w]={target:e,kind:t,index:0};return r}const T=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==T){throw new TypeError("Value of `this` is not a HeadersIterator")}var e=this[w];const t=e.target,r=e.kind,s=e.index;const n=getHeaders(t,r);const o=n.length;if(s>=o){return{value:undefined,done:true}}this[w].index=s+1;return{value:n[s],done:false}}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));Object.defineProperty(T,Symbol.toStringTag,{value:"HeadersIterator",writable:false,enumerable:false,configurable:true});function exportNodeCompatibleHeaders(e){const t=Object.assign({__proto__:null},e[b]);const r=find(e[b],"Host");if(r!==undefined){t[r]=t[r][0]}return t}function createHeadersLenient(e){const t=new Headers;for(const r of Object.keys(e)){if(m.test(r)){continue}if(Array.isArray(e[r])){for(const s of e[r]){if(g.test(s)){continue}if(t[b][r]===undefined){t[b][r]=[s]}else{t[b][r].push(s)}}}else if(!g.test(e[r])){t[b][r]=[e[r]]}}return t}const y=Symbol("Response internals");const _=n.STATUS_CODES;class Response{constructor(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};Body.call(this,e,t);const r=t.status||200;const s=new Headers(t.headers);if(e!=null&&!s.has("Content-Type")){const t=extractContentType(e);if(t){s.append("Content-Type",t)}}this[y]={url:t.url,status:r,statusText:t.statusText||_[r],headers:s,counter:t.counter}}get url(){return this[y].url||""}get status(){return this[y].status}get ok(){return this[y].status>=200&&this[y].status<300}get redirected(){return this[y].counter>0}get statusText(){return this[y].statusText}get headers(){return this[y].headers}clone(){return new Response(clone(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}Body.mixIn(Response.prototype);Object.defineProperties(Response.prototype,{url:{enumerable:true},status:{enumerable:true},ok:{enumerable:true},redirected:{enumerable:true},statusText:{enumerable:true},headers:{enumerable:true},clone:{enumerable:true}});Object.defineProperty(Response.prototype,Symbol.toStringTag,{value:"Response",writable:false,enumerable:false,configurable:true});const E=Symbol("Request internals");const v=o.parse;const O=o.format;const A="destroy"in s.Readable.prototype;function isRequest(e){return typeof e==="object"&&typeof e[E]==="object"}function isAbortSignal(e){const t=e&&typeof e==="object"&&Object.getPrototypeOf(e);return!!(t&&t.constructor.name==="AbortSignal")}class Request{constructor(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let r;if(!isRequest(e)){if(e&&e.href){r=v(e.href)}else{r=v(`${e}`)}e={}}else{r=v(e.url)}let s=t.method||e.method||"GET";s=s.toUpperCase();if((t.body!=null||isRequest(e)&&e.body!==null)&&(s==="GET"||s==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body")}let n=t.body!=null?t.body:isRequest(e)&&e.body!==null?clone(e):null;Body.call(this,n,{timeout:t.timeout||e.timeout||0,size:t.size||e.size||0});const o=new Headers(t.headers||e.headers||{});if(n!=null&&!o.has("Content-Type")){const e=extractContentType(n);if(e){o.append("Content-Type",e)}}let i=isRequest(e)?e.signal:null;if("signal"in t)i=t.signal;if(i!=null&&!isAbortSignal(i)){throw new TypeError("Expected signal to be an instanceof AbortSignal")}this[E]={method:s,redirect:t.redirect||e.redirect||"follow",headers:o,parsedURL:r,signal:i};this.follow=t.follow!==undefined?t.follow:e.follow!==undefined?e.follow:20;this.compress=t.compress!==undefined?t.compress:e.compress!==undefined?e.compress:true;this.counter=t.counter||e.counter||0;this.agent=t.agent||e.agent}get method(){return this[E].method}get url(){return O(this[E].parsedURL)}get headers(){return this[E].headers}get redirect(){return this[E].redirect}get signal(){return this[E].signal}clone(){return new Request(this)}}Body.mixIn(Request.prototype);Object.defineProperty(Request.prototype,Symbol.toStringTag,{value:"Request",writable:false,enumerable:false,configurable:true});Object.defineProperties(Request.prototype,{method:{enumerable:true},url:{enumerable:true},headers:{enumerable:true},redirect:{enumerable:true},clone:{enumerable:true},signal:{enumerable:true}});function getNodeRequestOptions(e){const t=e[E].parsedURL;const r=new Headers(e[E].headers);if(!r.has("Accept")){r.set("Accept","*/*")}if(!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 s.Readable&&!A){throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8")}let n=null;if(e.body==null&&/^(POST|PUT)$/i.test(e.method)){n="0"}if(e.body!=null){const t=getTotalBytes(e);if(typeof t==="number"){n=String(t)}}if(n){r.set("Content-Length",n)}if(!r.has("User-Agent")){r.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)")}if(e.compress&&!r.has("Accept-Encoding")){r.set("Accept-Encoding","gzip,deflate")}let o=e.agent;if(typeof o==="function"){o=o(t)}if(!r.has("Connection")&&!o){r.set("Connection","close")}return Object.assign({},t,{method:e.method,headers:exportNodeCompatibleHeaders(r),agent:o})}function AbortError(e){Error.call(this,e);this.type="aborted";this.message=e;Error.captureStackTrace(this,this.constructor)}AbortError.prototype=Object.create(Error.prototype);AbortError.prototype.constructor=AbortError;AbortError.prototype.name="AbortError";const C=s.PassThrough;const S=o.resolve;function fetch(e,t){if(!fetch.Promise){throw new Error("native promise missing, set fetch.Promise to your favorite alternative")}Body.Promise=fetch.Promise;return new fetch.Promise((function(r,o){const c=new Request(e,t);const u=getNodeRequestOptions(c);const l=(u.protocol==="https:"?i:n).request;const p=c.signal;let h=null;const d=function abort(){let e=new AbortError("The user aborted a request.");o(e);if(c.body&&c.body instanceof s.Readable){c.body.destroy(e)}if(!h||!h.body)return;h.body.emit("error",e)};if(p&&p.aborted){d();return}const m=function abortAndFinalize(){d();finalize()};const g=l(u);let b;if(p){p.addEventListener("abort",m)}function finalize(){g.abort();if(p)p.removeEventListener("abort",m);clearTimeout(b)}if(c.timeout){g.once("socket",(function(e){b=setTimeout((function(){o(new FetchError(`network timeout at: ${c.url}`,"request-timeout"));finalize()}),c.timeout)}))}g.on("error",(function(e){o(new FetchError(`request to ${c.url} failed, reason: ${e.message}`,"system",e));finalize()}));g.on("response",(function(e){clearTimeout(b);const t=createHeadersLenient(e.headers);if(fetch.isRedirect(e.statusCode)){const s=t.get("Location");const n=s===null?null:S(c.url,s);switch(c.redirect){case"error":o(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${c.url}`,"no-redirect"));finalize();return;case"manual":if(n!==null){try{t.set("Location",n)}catch(e){o(e)}}break;case"follow":if(n===null){break}if(c.counter>=c.follow){o(new FetchError(`maximum redirect reached at: ${c.url}`,"max-redirect"));finalize();return}const s={headers:new Headers(c.headers),follow:c.follow,counter:c.counter+1,agent:c.agent,compress:c.compress,method:c.method,body:c.body,signal:c.signal,timeout:c.timeout,size:c.size};if(e.statusCode!==303&&c.body&&getTotalBytes(c)===null){o(new FetchError("Cannot follow redirect with body being a readable stream","unsupported-redirect"));finalize();return}if(e.statusCode===303||(e.statusCode===301||e.statusCode===302)&&c.method==="POST"){s.method="GET";s.body=undefined;s.headers.delete("content-length")}r(fetch(new Request(n,s)));finalize();return}}e.once("end",(function(){if(p)p.removeEventListener("abort",m)}));let s=e.pipe(new C);const n={url:c.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:c.size,timeout:c.timeout,counter:c.counter};const i=t.get("Content-Encoding");if(!c.compress||c.method==="HEAD"||i===null||e.statusCode===204||e.statusCode===304){h=new Response(s,n);r(h);return}const u={flush:a.Z_SYNC_FLUSH,finishFlush:a.Z_SYNC_FLUSH};if(i=="gzip"||i=="x-gzip"){s=s.pipe(a.createGunzip(u));h=new Response(s,n);r(h);return}if(i=="deflate"||i=="x-deflate"){const t=e.pipe(new C);t.once("data",(function(e){if((e[0]&15)===8){s=s.pipe(a.createInflate())}else{s=s.pipe(a.createInflateRaw())}h=new Response(s,n);r(h)}));return}if(i=="br"&&typeof a.createBrotliDecompress==="function"){s=s.pipe(a.createBrotliDecompress());h=new Response(s,n);r(h);return}h=new Response(s,n);r(h)}));writeToStream(g,c)}))}fetch.isRedirect=function(e){return e===301||e===302||e===303||e===307||e===308};fetch.Promise=global.Promise;e.exports=t=fetch;Object.defineProperty(t,"__esModule",{value:true});t.default=t;t.Headers=Headers;t.Request=Request;t.Response=Response;t.FetchError=FetchError},1783:(e,t,r)=>{"use strict";const s=r(5622);const n=r(2170);const npmRunPath=e=>{e={cwd:process.cwd(),path:process.env[n()],execPath:process.execPath,...e};let t;let r=s.resolve(e.cwd);const o=[];while(t!==r){o.push(s.join(r,"node_modules/.bin"));t=r;r=s.resolve(r,"..")}const i=s.resolve(e.cwd,e.execPath,"..");o.push(i);return o.concat(e.path).join(s.delimiter)};e.exports=npmRunPath;e.exports.default=npmRunPath;e.exports.env=t=>{t={env:process.env,...t};const r={...t.env};const s=n({env:r});t.path=r[s];r[s]=e.exports(t);return r}},7197:(e,t,r)=>{var s=r(4586);e.exports=s(once);e.exports.strict=s(onceStrict);once.proto=once((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})}));function once(e){var f=function(){if(f.called)return f.value;f.called=true;return f.value=e.apply(this,arguments)};f.called=false;return f}function onceStrict(e){var f=function(){if(f.called)throw new Error(f.onceError);f.called=true;return f.value=e.apply(this,arguments)};var t=e.name||"Function wrapped with `once`";f.onceError=t+" shouldn't be called more than once";f.called=false;return f}},7462:(e,t,r)=>{"use strict";const s=r(481);const n=new WeakMap;const onetime=(e,t={})=>{if(typeof e!=="function"){throw new TypeError("Expected a function")}let r;let o=0;const i=e.displayName||e.name||"";const onetime=function(...s){n.set(onetime,++o);if(o===1){r=e.apply(this,s);e=null}else if(t.throw===true){throw new Error(`Function \`${i}\` can only be called once`)}return r};s(onetime,e);n.set(onetime,o);return onetime};e.exports=onetime;e.exports.default=onetime;e.exports.callCount=e=>{if(!n.has(e)){throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`)}return n.get(e)}},2170:e=>{"use strict";const pathKey=(e={})=>{const t=e.env||process.env;const r=e.platform||process.platform;if(r!=="win32"){return"PATH"}return Object.keys(t).reverse().find((e=>e.toUpperCase()==="PATH"))||"Path"};e.exports=pathKey;e.exports.default=pathKey},4970:(e,t,r)=>{"use strict";const s=r(1504);e.exports=(e="")=>{const t=e.match(s);if(!t){return null}const[r,n]=t[0].replace(/#! ?/,"").split(" ");const o=r.split("/").pop();if(o==="env"){return n}return n?`${o} ${n}`:o}},1504:e=>{"use strict";e.exports=/^#!(.*)/},2028:(e,t,r)=>{var s=r(2357);var n=r(19);var o=/^win/i.test(process.platform);var i=r(8614);if(typeof i!=="function"){i=i.EventEmitter}var a;if(process.__signal_exit_emitter__){a=process.__signal_exit_emitter__}else{a=process.__signal_exit_emitter__=new i;a.count=0;a.emitted={}}if(!a.infinite){a.setMaxListeners(Infinity);a.infinite=true}e.exports=function(e,t){s.equal(typeof e,"function","a callback must be provided for exit handler");if(u===false){load()}var r="exit";if(t&&t.alwaysLast){r="afterexit"}var remove=function(){a.removeListener(r,e);if(a.listeners("exit").length===0&&a.listeners("afterexit").length===0){unload()}};a.on(r,e);return remove};e.exports.unload=unload;function unload(){if(!u){return}u=false;n.forEach((function(e){try{process.removeListener(e,c[e])}catch(e){}}));process.emit=p;process.reallyExit=l;a.count-=1}function emit(e,t,r){if(a.emitted[e]){return}a.emitted[e]=true;a.emit(e,t,r)}var c={};n.forEach((function(e){c[e]=function listener(){var t=process.listeners(e);if(t.length===a.count){unload();emit("exit",null,e);emit("afterexit",null,e);if(o&&e==="SIGHUP"){e="SIGINT"}process.kill(process.pid,e)}}}));e.exports.signals=function(){return n};e.exports.load=load;var u=false;function load(){if(u){return}u=true;a.count+=1;n=n.filter((function(e){try{process.on(e,c[e]);return true}catch(e){return false}}));process.emit=processEmit;process.reallyExit=processReallyExit}var l=process.reallyExit;function processReallyExit(e){process.exitCode=e||0;emit("exit",process.exitCode,null);emit("afterexit",process.exitCode,null);l.call(process,process.exitCode)}var p=process.emit;function processEmit(e,t){if(e==="exit"){if(t!==undefined){process.exitCode=t}var r=p.apply(this,arguments);emit("exit",process.exitCode,null);emit("afterexit",process.exitCode,null);return r}else{return p.apply(this,arguments)}}},19:e=>{e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];if(process.platform!=="win32"){e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT")}if(process.platform==="linux"){e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}},6831:e=>{"use strict";e.exports=e=>{const t=typeof e==="string"?"\n":"\n".charCodeAt();const r=typeof e==="string"?"\r":"\r".charCodeAt();if(e[e.length-1]===t){e=e.slice(0,e.length-1)}if(e[e.length-1]===r){e=e.slice(0,e.length-1)}return e}},36:e=>{ + */function isObject(e){return Object.prototype.toString.call(e)==="[object Object]"}function isPlainObject(e){var t,r;if(isObject(e)===false)return false;t=e.constructor;if(t===undefined)return true;r=t.prototype;if(isObject(r)===false)return false;if(r.hasOwnProperty("isPrototypeOf")===false){return false}return true}t.isPlainObject=isPlainObject},1381:e=>{"use strict";const isStream=e=>e!==null&&typeof e==="object"&&typeof e.pipe==="function";isStream.writable=e=>isStream(e)&&e.writable!==false&&typeof e._write==="function"&&typeof e._writableState==="object";isStream.readable=e=>isStream(e)&&e.readable!==false&&typeof e._read==="function"&&typeof e._readableState==="object";isStream.duplex=e=>isStream.writable(e)&&isStream.readable(e);isStream.transform=e=>isStream.duplex(e)&&typeof e._transform==="function"&&typeof e._transformState==="object";e.exports=isStream},228:(e,t,r)=>{var s=r(5747);var n;if(process.platform==="win32"||global.TESTING_WINDOWS){n=r(7214)}else{n=r(5211)}e.exports=isexe;isexe.sync=sync;function isexe(e,t,r){if(typeof t==="function"){r=t;t={}}if(!r){if(typeof Promise!=="function"){throw new TypeError("callback not provided")}return new Promise((function(r,s){isexe(e,t||{},(function(e,t){if(e){s(e)}else{r(t)}}))}))}n(e,t||{},(function(e,s){if(e){if(e.code==="EACCES"||t&&t.ignoreErrors){e=null;s=false}}r(e,s)}))}function sync(e,t){try{return n.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||e.code==="EACCES"){return false}else{throw e}}}},5211:(e,t,r)=>{e.exports=isexe;isexe.sync=sync;var s=r(5747);function isexe(e,t,r){s.stat(e,(function(e,s){r(e,e?false:checkStat(s,t))}))}function sync(e,t){return checkStat(s.statSync(e),t)}function checkStat(e,t){return e.isFile()&&checkMode(e,t)}function checkMode(e,t){var r=e.mode;var s=e.uid;var n=e.gid;var o=t.uid!==undefined?t.uid:process.getuid&&process.getuid();var i=t.gid!==undefined?t.gid:process.getgid&&process.getgid();var a=parseInt("100",8);var c=parseInt("010",8);var u=parseInt("001",8);var l=a|c;var p=r&u||r&c&&n===i||r&a&&s===o||r&l&&o===0;return p}},7214:(e,t,r)=>{e.exports=isexe;isexe.sync=sync;var s=r(5747);function checkPathExt(e,t){var r=t.pathExt!==undefined?t.pathExt:process.env.PATHEXT;if(!r){return true}r=r.split(";");if(r.indexOf("")!==-1){return true}for(var s=0;s{"use strict";const{PassThrough:s}=r(2413);e.exports=function(){var e=[];var t=new s({objectMode:true});t.setMaxListeners(0);t.add=add;t.isEmpty=isEmpty;t.on("unpipe",remove);Array.prototype.slice.call(arguments).forEach(add);return t;function add(r){if(Array.isArray(r)){r.forEach(add);return this}e.push(r);r.once("end",remove.bind(null,r));r.once("error",t.emit.bind(t,"error"));r.pipe(t,{end:false});return this}function isEmpty(){return e.length==0}function remove(r){e=e.filter((function(e){return e!==r}));if(!e.length&&t.readable){t.end()}}}},481:e=>{"use strict";const mimicFn=(e,t)=>{for(const r of Reflect.ownKeys(t)){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}return e};e.exports=mimicFn;e.exports.default=mimicFn},2197:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var s=_interopDefault(r(2413));var n=_interopDefault(r(8605));var o=_interopDefault(r(8835));var i=_interopDefault(r(7211));var a=_interopDefault(r(8761));const c=s.Readable;const u=Symbol("buffer");const l=Symbol("type");class Blob{constructor(){this[l]="";const e=arguments[0];const t=arguments[1];const r=[];let s=0;if(e){const t=e;const n=Number(t.length);for(let e=0;e1&&arguments[1]!==undefined?arguments[1]:{},n=r.size;let o=n===undefined?0:n;var i=r.timeout;let a=i===undefined?0:i;if(e==null){e=null}else if(isURLSearchParams(e)){e=Buffer.from(e.toString())}else if(isBlob(e));else if(Buffer.isBuffer(e));else if(Object.prototype.toString.call(e)==="[object ArrayBuffer]"){e=Buffer.from(e)}else if(ArrayBuffer.isView(e)){e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)}else if(e instanceof s);else{e=Buffer.from(String(e))}this[h]={body:e,disturbed:false,error:null};this.size=o;this.timeout=a;if(e instanceof s){e.on("error",(function(e){const r=e.name==="AbortError"?e:new FetchError(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e);t[h].error=r}))}}Body.prototype={get body(){return this[h].body},get bodyUsed(){return this[h].disturbed},arrayBuffer(){return consumeBody.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 consumeBody.call(this).then((function(t){return Object.assign(new Blob([],{type:e.toLowerCase()}),{[u]:t})}))},json(){var e=this;return consumeBody.call(this).then((function(t){try{return JSON.parse(t.toString())}catch(t){return Body.Promise.reject(new FetchError(`invalid json response body at ${e.url} reason: ${t.message}`,"invalid-json"))}}))},text(){return consumeBody.call(this).then((function(e){return e.toString()}))},buffer(){return consumeBody.call(this)},textConverted(){var e=this;return consumeBody.call(this).then((function(t){return convertBody(t,e.headers)}))}};Object.defineProperties(Body.prototype,{body:{enumerable:true},bodyUsed:{enumerable:true},arrayBuffer:{enumerable:true},blob:{enumerable:true},json:{enumerable:true},text:{enumerable:true}});Body.mixIn=function(e){for(const t of Object.getOwnPropertyNames(Body.prototype)){if(!(t in e)){const r=Object.getOwnPropertyDescriptor(Body.prototype,t);Object.defineProperty(e,t,r)}}};function consumeBody(){var e=this;if(this[h].disturbed){return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`))}this[h].disturbed=true;if(this[h].error){return Body.Promise.reject(this[h].error)}let t=this.body;if(t===null){return Body.Promise.resolve(Buffer.alloc(0))}if(isBlob(t)){t=t.stream()}if(Buffer.isBuffer(t)){return Body.Promise.resolve(t)}if(!(t instanceof s)){return Body.Promise.resolve(Buffer.alloc(0))}let r=[];let n=0;let o=false;return new Body.Promise((function(s,i){let a;if(e.timeout){a=setTimeout((function(){o=true;i(new FetchError(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))}),e.timeout)}t.on("error",(function(t){if(t.name==="AbortError"){o=true;i(t)}else{i(new FetchError(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t))}}));t.on("data",(function(t){if(o||t===null){return}if(e.size&&n+t.length>e.size){o=true;i(new FetchError(`content size at ${e.url} over limit: ${e.size}`,"max-size"));return}n+=t.length;r.push(t)}));t.on("end",(function(){if(o){return}clearTimeout(a);try{s(Buffer.concat(r,n))}catch(t){i(new FetchError(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}}))}))}function convertBody(e,t){if(typeof p!=="function"){throw new Error("The package `encoding` must be installed to use the textConverted() function")}const r=t.get("content-type");let s="utf-8";let n,o;if(r){n=/charset=([^;]*)/i.exec(r)}o=e.slice(0,1024).toString();if(!n&&o){n=/0&&arguments[0]!==undefined?arguments[0]:undefined;this[b]=Object.create(null);if(e instanceof Headers){const t=e.raw();const r=Object.keys(t);for(const e of r){for(const r of t[e]){this.append(e,r)}}return}if(e==null);else if(typeof e==="object"){const t=e[Symbol.iterator];if(t!=null){if(typeof t!=="function"){throw new TypeError("Header pairs must be iterable")}const r=[];for(const t of e){if(typeof t!=="object"||typeof t[Symbol.iterator]!=="function"){throw new TypeError("Each header pair must be iterable")}r.push(Array.from(t))}for(const e of r){if(e.length!==2){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)){const r=e[t];this.append(t,r)}}}else{throw new TypeError("Provided initializer must be an object")}}get(e){e=`${e}`;validateName(e);const t=find(this[b],e);if(t===undefined){return null}return this[b][t].join(", ")}forEach(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;let r=getHeaders(this);let s=0;while(s1&&arguments[1]!==undefined?arguments[1]:"key+value";const r=Object.keys(e[b]).sort();return r.map(t==="key"?function(e){return e.toLowerCase()}:t==="value"?function(t){return e[b][t].join(", ")}:function(t){return[t.toLowerCase(),e[b][t].join(", ")]})}const T=Symbol("internal");function createHeadersIterator(e,t){const r=Object.create(w);r[T]={target:e,kind:t,index:0};return r}const w=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==w){throw new TypeError("Value of `this` is not a HeadersIterator")}var e=this[T];const t=e.target,r=e.kind,s=e.index;const n=getHeaders(t,r);const o=n.length;if(s>=o){return{value:undefined,done:true}}this[T].index=s+1;return{value:n[s],done:false}}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));Object.defineProperty(w,Symbol.toStringTag,{value:"HeadersIterator",writable:false,enumerable:false,configurable:true});function exportNodeCompatibleHeaders(e){const t=Object.assign({__proto__:null},e[b]);const r=find(e[b],"Host");if(r!==undefined){t[r]=t[r][0]}return t}function createHeadersLenient(e){const t=new Headers;for(const r of Object.keys(e)){if(m.test(r)){continue}if(Array.isArray(e[r])){for(const s of e[r]){if(g.test(s)){continue}if(t[b][r]===undefined){t[b][r]=[s]}else{t[b][r].push(s)}}}else if(!g.test(e[r])){t[b][r]=[e[r]]}}return t}const y=Symbol("Response internals");const _=n.STATUS_CODES;class Response{constructor(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};Body.call(this,e,t);const r=t.status||200;const s=new Headers(t.headers);if(e!=null&&!s.has("Content-Type")){const t=extractContentType(e);if(t){s.append("Content-Type",t)}}this[y]={url:t.url,status:r,statusText:t.statusText||_[r],headers:s,counter:t.counter}}get url(){return this[y].url||""}get status(){return this[y].status}get ok(){return this[y].status>=200&&this[y].status<300}get redirected(){return this[y].counter>0}get statusText(){return this[y].statusText}get headers(){return this[y].headers}clone(){return new Response(clone(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}Body.mixIn(Response.prototype);Object.defineProperties(Response.prototype,{url:{enumerable:true},status:{enumerable:true},ok:{enumerable:true},redirected:{enumerable:true},statusText:{enumerable:true},headers:{enumerable:true},clone:{enumerable:true}});Object.defineProperty(Response.prototype,Symbol.toStringTag,{value:"Response",writable:false,enumerable:false,configurable:true});const E=Symbol("Request internals");const v=o.parse;const A=o.format;const O="destroy"in s.Readable.prototype;function isRequest(e){return typeof e==="object"&&typeof e[E]==="object"}function isAbortSignal(e){const t=e&&typeof e==="object"&&Object.getPrototypeOf(e);return!!(t&&t.constructor.name==="AbortSignal")}class Request{constructor(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let r;if(!isRequest(e)){if(e&&e.href){r=v(e.href)}else{r=v(`${e}`)}e={}}else{r=v(e.url)}let s=t.method||e.method||"GET";s=s.toUpperCase();if((t.body!=null||isRequest(e)&&e.body!==null)&&(s==="GET"||s==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body")}let n=t.body!=null?t.body:isRequest(e)&&e.body!==null?clone(e):null;Body.call(this,n,{timeout:t.timeout||e.timeout||0,size:t.size||e.size||0});const o=new Headers(t.headers||e.headers||{});if(n!=null&&!o.has("Content-Type")){const e=extractContentType(n);if(e){o.append("Content-Type",e)}}let i=isRequest(e)?e.signal:null;if("signal"in t)i=t.signal;if(i!=null&&!isAbortSignal(i)){throw new TypeError("Expected signal to be an instanceof AbortSignal")}this[E]={method:s,redirect:t.redirect||e.redirect||"follow",headers:o,parsedURL:r,signal:i};this.follow=t.follow!==undefined?t.follow:e.follow!==undefined?e.follow:20;this.compress=t.compress!==undefined?t.compress:e.compress!==undefined?e.compress:true;this.counter=t.counter||e.counter||0;this.agent=t.agent||e.agent}get method(){return this[E].method}get url(){return A(this[E].parsedURL)}get headers(){return this[E].headers}get redirect(){return this[E].redirect}get signal(){return this[E].signal}clone(){return new Request(this)}}Body.mixIn(Request.prototype);Object.defineProperty(Request.prototype,Symbol.toStringTag,{value:"Request",writable:false,enumerable:false,configurable:true});Object.defineProperties(Request.prototype,{method:{enumerable:true},url:{enumerable:true},headers:{enumerable:true},redirect:{enumerable:true},clone:{enumerable:true},signal:{enumerable:true}});function getNodeRequestOptions(e){const t=e[E].parsedURL;const r=new Headers(e[E].headers);if(!r.has("Accept")){r.set("Accept","*/*")}if(!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 s.Readable&&!O){throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8")}let n=null;if(e.body==null&&/^(POST|PUT)$/i.test(e.method)){n="0"}if(e.body!=null){const t=getTotalBytes(e);if(typeof t==="number"){n=String(t)}}if(n){r.set("Content-Length",n)}if(!r.has("User-Agent")){r.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)")}if(e.compress&&!r.has("Accept-Encoding")){r.set("Accept-Encoding","gzip,deflate")}let o=e.agent;if(typeof o==="function"){o=o(t)}if(!r.has("Connection")&&!o){r.set("Connection","close")}return Object.assign({},t,{method:e.method,headers:exportNodeCompatibleHeaders(r),agent:o})}function AbortError(e){Error.call(this,e);this.type="aborted";this.message=e;Error.captureStackTrace(this,this.constructor)}AbortError.prototype=Object.create(Error.prototype);AbortError.prototype.constructor=AbortError;AbortError.prototype.name="AbortError";const S=s.PassThrough;const C=o.resolve;function fetch(e,t){if(!fetch.Promise){throw new Error("native promise missing, set fetch.Promise to your favorite alternative")}Body.Promise=fetch.Promise;return new fetch.Promise((function(r,o){const c=new Request(e,t);const u=getNodeRequestOptions(c);const l=(u.protocol==="https:"?i:n).request;const p=c.signal;let h=null;const d=function abort(){let e=new AbortError("The user aborted a request.");o(e);if(c.body&&c.body instanceof s.Readable){c.body.destroy(e)}if(!h||!h.body)return;h.body.emit("error",e)};if(p&&p.aborted){d();return}const m=function abortAndFinalize(){d();finalize()};const g=l(u);let b;if(p){p.addEventListener("abort",m)}function finalize(){g.abort();if(p)p.removeEventListener("abort",m);clearTimeout(b)}if(c.timeout){g.once("socket",(function(e){b=setTimeout((function(){o(new FetchError(`network timeout at: ${c.url}`,"request-timeout"));finalize()}),c.timeout)}))}g.on("error",(function(e){o(new FetchError(`request to ${c.url} failed, reason: ${e.message}`,"system",e));finalize()}));g.on("response",(function(e){clearTimeout(b);const t=createHeadersLenient(e.headers);if(fetch.isRedirect(e.statusCode)){const s=t.get("Location");const n=s===null?null:C(c.url,s);switch(c.redirect){case"error":o(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${c.url}`,"no-redirect"));finalize();return;case"manual":if(n!==null){try{t.set("Location",n)}catch(e){o(e)}}break;case"follow":if(n===null){break}if(c.counter>=c.follow){o(new FetchError(`maximum redirect reached at: ${c.url}`,"max-redirect"));finalize();return}const s={headers:new Headers(c.headers),follow:c.follow,counter:c.counter+1,agent:c.agent,compress:c.compress,method:c.method,body:c.body,signal:c.signal,timeout:c.timeout,size:c.size};if(e.statusCode!==303&&c.body&&getTotalBytes(c)===null){o(new FetchError("Cannot follow redirect with body being a readable stream","unsupported-redirect"));finalize();return}if(e.statusCode===303||(e.statusCode===301||e.statusCode===302)&&c.method==="POST"){s.method="GET";s.body=undefined;s.headers.delete("content-length")}r(fetch(new Request(n,s)));finalize();return}}e.once("end",(function(){if(p)p.removeEventListener("abort",m)}));let s=e.pipe(new S);const n={url:c.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:c.size,timeout:c.timeout,counter:c.counter};const i=t.get("Content-Encoding");if(!c.compress||c.method==="HEAD"||i===null||e.statusCode===204||e.statusCode===304){h=new Response(s,n);r(h);return}const u={flush:a.Z_SYNC_FLUSH,finishFlush:a.Z_SYNC_FLUSH};if(i=="gzip"||i=="x-gzip"){s=s.pipe(a.createGunzip(u));h=new Response(s,n);r(h);return}if(i=="deflate"||i=="x-deflate"){const t=e.pipe(new S);t.once("data",(function(e){if((e[0]&15)===8){s=s.pipe(a.createInflate())}else{s=s.pipe(a.createInflateRaw())}h=new Response(s,n);r(h)}));return}if(i=="br"&&typeof a.createBrotliDecompress==="function"){s=s.pipe(a.createBrotliDecompress());h=new Response(s,n);r(h);return}h=new Response(s,n);r(h)}));writeToStream(g,c)}))}fetch.isRedirect=function(e){return e===301||e===302||e===303||e===307||e===308};fetch.Promise=global.Promise;e.exports=t=fetch;Object.defineProperty(t,"__esModule",{value:true});t.default=t;t.Headers=Headers;t.Request=Request;t.Response=Response;t.FetchError=FetchError},1783:(e,t,r)=>{"use strict";const s=r(5622);const n=r(2170);const npmRunPath=e=>{e={cwd:process.cwd(),path:process.env[n()],execPath:process.execPath,...e};let t;let r=s.resolve(e.cwd);const o=[];while(t!==r){o.push(s.join(r,"node_modules/.bin"));t=r;r=s.resolve(r,"..")}const i=s.resolve(e.cwd,e.execPath,"..");o.push(i);return o.concat(e.path).join(s.delimiter)};e.exports=npmRunPath;e.exports.default=npmRunPath;e.exports.env=t=>{t={env:process.env,...t};const r={...t.env};const s=n({env:r});t.path=r[s];r[s]=e.exports(t);return r}},7197:(e,t,r)=>{var s=r(4586);e.exports=s(once);e.exports.strict=s(onceStrict);once.proto=once((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})}));function once(e){var f=function(){if(f.called)return f.value;f.called=true;return f.value=e.apply(this,arguments)};f.called=false;return f}function onceStrict(e){var f=function(){if(f.called)throw new Error(f.onceError);f.called=true;return f.value=e.apply(this,arguments)};var t=e.name||"Function wrapped with `once`";f.onceError=t+" shouldn't be called more than once";f.called=false;return f}},7462:(e,t,r)=>{"use strict";const s=r(481);const n=new WeakMap;const onetime=(e,t={})=>{if(typeof e!=="function"){throw new TypeError("Expected a function")}let r;let o=0;const i=e.displayName||e.name||"";const onetime=function(...s){n.set(onetime,++o);if(o===1){r=e.apply(this,s);e=null}else if(t.throw===true){throw new Error(`Function \`${i}\` can only be called once`)}return r};s(onetime,e);n.set(onetime,o);return onetime};e.exports=onetime;e.exports.default=onetime;e.exports.callCount=e=>{if(!n.has(e)){throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`)}return n.get(e)}},2170:e=>{"use strict";const pathKey=(e={})=>{const t=e.env||process.env;const r=e.platform||process.platform;if(r!=="win32"){return"PATH"}return Object.keys(t).reverse().find((e=>e.toUpperCase()==="PATH"))||"Path"};e.exports=pathKey;e.exports.default=pathKey},4970:(e,t,r)=>{"use strict";const s=r(1504);e.exports=(e="")=>{const t=e.match(s);if(!t){return null}const[r,n]=t[0].replace(/#! ?/,"").split(" ");const o=r.split("/").pop();if(o==="env"){return n}return n?`${o} ${n}`:o}},1504:e=>{"use strict";e.exports=/^#!(.*)/},2028:(e,t,r)=>{var s=r(2357);var n=r(19);var o=/^win/i.test(process.platform);var i=r(8614);if(typeof i!=="function"){i=i.EventEmitter}var a;if(process.__signal_exit_emitter__){a=process.__signal_exit_emitter__}else{a=process.__signal_exit_emitter__=new i;a.count=0;a.emitted={}}if(!a.infinite){a.setMaxListeners(Infinity);a.infinite=true}e.exports=function(e,t){s.equal(typeof e,"function","a callback must be provided for exit handler");if(u===false){load()}var r="exit";if(t&&t.alwaysLast){r="afterexit"}var remove=function(){a.removeListener(r,e);if(a.listeners("exit").length===0&&a.listeners("afterexit").length===0){unload()}};a.on(r,e);return remove};e.exports.unload=unload;function unload(){if(!u){return}u=false;n.forEach((function(e){try{process.removeListener(e,c[e])}catch(e){}}));process.emit=p;process.reallyExit=l;a.count-=1}function emit(e,t,r){if(a.emitted[e]){return}a.emitted[e]=true;a.emit(e,t,r)}var c={};n.forEach((function(e){c[e]=function listener(){var t=process.listeners(e);if(t.length===a.count){unload();emit("exit",null,e);emit("afterexit",null,e);if(o&&e==="SIGHUP"){e="SIGINT"}process.kill(process.pid,e)}}}));e.exports.signals=function(){return n};e.exports.load=load;var u=false;function load(){if(u){return}u=true;a.count+=1;n=n.filter((function(e){try{process.on(e,c[e]);return true}catch(e){return false}}));process.emit=processEmit;process.reallyExit=processReallyExit}var l=process.reallyExit;function processReallyExit(e){process.exitCode=e||0;emit("exit",process.exitCode,null);emit("afterexit",process.exitCode,null);l.call(process,process.exitCode)}var p=process.emit;function processEmit(e,t){if(e==="exit"){if(t!==undefined){process.exitCode=t}var r=p.apply(this,arguments);emit("exit",process.exitCode,null);emit("afterexit",process.exitCode,null);return r}else{return p.apply(this,arguments)}}},19:e=>{e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];if(process.platform!=="win32"){e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT")}if(process.platform==="linux"){e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}},7574:(e,t)=>{"use strict";var r;r=true;function parseArgsStringToArgv(e,t,r){var s=/([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*)|[^\s'"]+|(['"])([^\5]*?)\5/gi;var n=e;var o=[];if(t){o.push(t)}if(r){o.push(r)}var i;do{i=s.exec(n);if(i!==null){o.push(firstString(i[1],i[6],i[0]))}}while(i!==null);return o}t.ZP=parseArgsStringToArgv;r=parseArgsStringToArgv;function firstString(){var e=[];for(var t=0;t{"use strict";e.exports=e=>{const t=typeof e==="string"?"\n":"\n".charCodeAt();const r=typeof e==="string"?"\r":"\r".charCodeAt();if(e[e.length-1]===t){e=e.slice(0,e.length-1)}if(e[e.length-1]===r){e=e.slice(0,e.length-1)}return e}},36:e=>{ /*! ***************************************************************************** Copyright (c) Microsoft Corporation. @@ -19,4 +19,4 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ -var t;var r;var s;var n;var o;var i;var a;var c;var u;var l;var p;var h;var d;var m;var g;var b;var w;var T;var y;var _;var E;var v;var O;var A;(function(t){var r=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd){define("tslib",["exports"],(function(e){t(createExporter(r,createExporter(e)))}))}else if(true&&typeof e.exports==="object"){t(createExporter(r,createExporter(e.exports)))}else{t(createExporter(r))}function createExporter(e,t){if(e!==r){if(typeof Object.create==="function"){Object.defineProperty(e,"__esModule",{value:true})}else{e.__esModule=true}}return function(r,s){return e[r]=t?t(r,s):s}}})((function(e){var C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};t=function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");C(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)};r=Object.assign||function(e){for(var t,r=1,s=arguments.length;r=0;a--)if(i=e[a])o=(n<3?i(o):n>3?i(t,r,o):i(t,r))||o;return n>3&&o&&Object.defineProperty(t,r,o),o};o=function(e,t){return function(r,s){t(r,s,e)}};i=function(e,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)};a=function(e,t,r,s){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(s.next(e))}catch(e){n(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};c=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},s,n,o,i;return i={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function verb(e){return function(t){return step([e,t])}}function step(i){if(s)throw new TypeError("Generator is already executing.");while(r)try{if(s=1,n&&(o=i[0]&2?n["return"]:i[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;if(n=0,o)i=[i[0]&2,o.value];switch(i[0]){case 0:case 1:o=i;break;case 4:r.label++;return{value:i[1],done:false};case 5:r.label++;n=i[1];i=[0];continue;case 7:i=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(i[0]===6||i[0]===2)){r=0;continue}if(i[0]===3&&(!o||i[1]>o[0]&&i[1]=e.length)e=void 0;return{value:e&&e[s++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};p=function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var s=r.call(e),n,o=[],i;try{while((t===void 0||t-- >0)&&!(n=s.next()).done)o.push(n.value)}catch(e){i={error:e}}finally{try{if(n&&!n.done&&(r=s["return"]))r.call(s)}finally{if(i)throw i.error}}return o};h=function(){for(var e=[],t=0;t1||resume(e,t)}))}}function resume(e,t){try{step(s[e](t))}catch(e){settle(o[0][3],e)}}function step(e){e.value instanceof g?Promise.resolve(e.value.v).then(fulfill,reject):settle(o[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),o.shift(),o.length)resume(o[0][0],o[0][1])}};w=function(e){var t,r;return t={},verb("next"),verb("throw",(function(e){throw e})),verb("return"),t[Symbol.iterator]=function(){return this},t;function verb(s,n){t[s]=e[s]?function(t){return(r=!r)?{value:g(e[s](t)),done:s==="return"}:n?n(t):t}:n}};T=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof l==="function"?l(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(t){r[t]=e[t]&&function(r){return new Promise((function(s,n){r=e[t](r),settle(s,n,r.done,r.value)}))}}function settle(e,t,r,s){Promise.resolve(s).then((function(t){e({value:t,done:r})}),t)}};y=function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var S=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t};_=function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))A(t,e,r);S(t,e);return t};E=function(e){return e&&e.__esModule?e:{default:e}};v=function(e,t,r,s){if(r==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?s:r==="a"?s.call(e):s?s.value:t.get(e)};O=function(e,t,r,s,n){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?n.call(e,r):n?n.value=r:t.set(e,r),r};e("__extends",t);e("__assign",r);e("__rest",s);e("__decorate",n);e("__param",o);e("__metadata",i);e("__awaiter",a);e("__generator",c);e("__exportStar",u);e("__createBinding",A);e("__values",l);e("__read",p);e("__spread",h);e("__spreadArrays",d);e("__spreadArray",m);e("__await",g);e("__asyncGenerator",b);e("__asyncDelegator",w);e("__asyncValues",T);e("__makeTemplateObject",y);e("__importStar",_);e("__importDefault",E);e("__classPrivateFieldGet",v);e("__classPrivateFieldSet",O)}))},9382:(e,t,r)=>{e.exports=r(1418)},1418:(e,t,r)=>{"use strict";var s=r(1631);var n=r(4016);var o=r(8605);var i=r(7211);var a=r(8614);var c=r(2357);var u=r(1669);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=i.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=i.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function TunnelingAgent(e){var t=this;t.options=e||{};t.proxyOptions=t.options.proxy||{};t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",(function onFree(e,r,s,n){var o=toOptions(r,s,n);for(var i=0,a=t.requests.length;i=this.maxSockets){n.requests.push(o);return}n.createSocket(o,(function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){n.emit("free",t,o)}function onCloseOrRemove(e){n.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var r=this;var s={};r.sockets.push(s);var n=mergeOptions({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){n.localAddress=e.localAddress}if(n.proxyAuth){n.headers=n.headers||{};n.headers["Proxy-Authorization"]="Basic "+new Buffer(n.proxyAuth).toString("base64")}l("making CONNECT request");var o=r.request(n);o.useChunkedEncodingByDefault=false;o.once("response",onResponse);o.once("upgrade",onUpgrade);o.once("connect",onConnect);o.once("error",onError);o.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,r){process.nextTick((function(){onConnect(e,t,r)}))}function onConnect(n,i,a){o.removeAllListeners();i.removeAllListeners();if(n.statusCode!==200){l("tunneling socket could not be established, statusCode=%d",n.statusCode);i.destroy();var c=new Error("tunneling socket could not be established, "+"statusCode="+n.statusCode);c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(s);return}if(a.length>0){l("got illegal response body from proxy");i.destroy();var c=new Error("got illegal response body from proxy");c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(s);return}l("tunneling connection has established");r.sockets[r.sockets.indexOf(s)]=i;return t(i)}function onError(t){o.removeAllListeners();l("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(s)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var r=this.requests.shift();if(r){this.createSocket(r,(function(e){r.request.onSocket(e)}))}};function createSecureSocket(e,t){var r=this;TunnelingAgent.prototype.createSocket.call(r,e,(function(s){var o=e.request.getHeader("host");var i=mergeOptions({},r.options,{socket:s,servername:o?o.replace(/:.*$/,""):e.host});var a=n.connect(0,i);r.sockets[r.sockets.indexOf(s)]=a;t(a)}))}function toOptions(e,t,r){if(typeof e==="string"){return{host:e,port:t,localAddress:r}}return e}function mergeOptions(e){for(var t=1,r=arguments.length;t{"use strict";Object.defineProperty(t,"__esModule",{value:true});function getUserAgent(){if(typeof navigator==="object"&&"userAgent"in navigator){return navigator.userAgent}if(typeof process==="object"&&"version"in process){return`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`}return""}t.getUserAgent=getUserAgent},8201:(e,t,r)=>{const s=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys";const n=r(5622);const o=s?";":":";const i=r(228);const getNotFoundError=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"});const getPathInfo=(e,t)=>{const r=t.colon||o;const n=e.match(/\//)||s&&e.match(/\\/)?[""]:[...s?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)];const i=s?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"";const a=s?i.split(r):[""];if(s){if(e.indexOf(".")!==-1&&a[0]!=="")a.unshift("")}return{pathEnv:n,pathExt:a,pathExtExe:i}};const which=(e,t,r)=>{if(typeof t==="function"){r=t;t={}}if(!t)t={};const{pathEnv:s,pathExt:o,pathExtExe:a}=getPathInfo(e,t);const c=[];const step=r=>new Promise(((o,i)=>{if(r===s.length)return t.all&&c.length?o(c):i(getNotFoundError(e));const a=s[r];const u=/^".*"$/.test(a)?a.slice(1,-1):a;const l=n.join(u,e);const p=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+l:l;o(subStep(p,r,0))}));const subStep=(e,r,s)=>new Promise(((n,u)=>{if(s===o.length)return n(step(r+1));const l=o[s];i(e+l,{pathExt:a},((o,i)=>{if(!o&&i){if(t.all)c.push(e+l);else return n(e+l)}return n(subStep(e,r,s+1))}))}));return r?step(0).then((e=>r(null,e)),r):step(0)};const whichSync=(e,t)=>{t=t||{};const{pathEnv:r,pathExt:s,pathExtExe:o}=getPathInfo(e,t);const a=[];for(let c=0;c{e.exports=wrappy;function wrappy(e,t){if(e&&t)return wrappy(e)(t);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach((function(t){wrapper[t]=e[t]}));return wrapper;function wrapper(){var t=new Array(arguments.length);for(var r=0;r{"use strict";var s;s={value:true};var n=r(36);var o=r(2087);var i=r(5747);var a=r(580);var c=r(9434);var u=r(5622);function _interopDefaultLegacy(e){return e&&typeof e==="object"&&"default"in e?e:{default:e}}var l=_interopDefaultLegacy(a);var p=_interopDefaultLegacy(c);function getPackageJson(e){const t=u.join(e,"package.json");if(i.existsSync(t)){const e=i.readFileSync(t).toString();const r=JSON.parse(e);return r}return null}function hasDependency(e,t){const r=getPackageJson(t);return r&&(r.dependencies&&r.dependencies[e]||r.devDependencies&&r.devDependencies[e])}function usesYarn(e){return i.existsSync(u.join(e,"yarn.lock"))}function execCommand(e,t,{cwd:r}){console.log(`running ${e}`,t);return l["default"](e,t,{cwd:r,stdio:"inherit",env:{FORCE_COLOR:"0"}}).then()}function buildProject(e,t,r,{configPath:s,distPath:a,iconPath:c,npmScript:l}){return n.__awaiter(this,void 0,void 0,(function*(){return new Promise(((r,s)=>{if(e){r({runnerCommand:"tauri",runnerArgs:[]})}else if(hasDependency("@tauri-apps/cli",t)||hasDependency("vue-cli-plugin-tauri",t)){if(l){r(usesYarn(t)?{runnerCommand:"yarn",runnerArgs:l.split(" ")}:{runnerCommand:"npm",runnerArgs:["run",...l.split(" ")]})}else{r(usesYarn(t)?{runnerCommand:"yarn",runnerArgs:["tauri"]}:{runnerCommand:"npx",runnerArgs:["tauri"]})}}else{execCommand("npm",["install","-g","@tauri-apps/cli"],{cwd:undefined}).then((()=>{r({runnerCommand:"tauri",runnerArgs:[]})})).catch(s)}})).then((e=>{const r=u.join(t,"src-tauri/tauri.conf.json");if(i.existsSync(r)){let s;let n;const o=JSON.parse(i.readFileSync(r).toString());if(o.package){s=o.package.productName;n=o.package.version}if(!(s&&n)){const e=u.join(t,"src-tauri/Cargo.toml");const r=p["default"].parse(i.readFileSync(e).toString());s=s||r.package.name;n=n||r.package.version}if(!(s&&n)){console.error("Could not determine package name and version");process.exit(1)}return{runner:e,name:s,version:n}}else{const s=getPackageJson(t);const n=s?(s.displayName||s.name).replace(/ /g,"-"):"app";return execCommand(e.runnerCommand,[...e.runnerArgs,"init","--ci","--app-name",n],{cwd:t}).then((()=>{const o=JSON.parse(i.readFileSync(r).toString());const a=s?s.version:"0.1.0";console.log(`Replacing tauri.conf.json config - package.version=${a}`);const l=Object.assign(Object.assign({},o.package),{version:a});if(s===null||s===void 0?void 0:s.productName){console.log(`Replacing tauri.conf.json config - package.productName=${s.productName}`);l.productName=s.productName}o.package=l;i.writeFileSync(r,JSON.stringify(o,null,2));const p={runner:e,name:n,version:a};if(c){return execCommand(e.runnerCommand,[...e.runnerArgs,"icon",u.join(t,c)],{cwd:t}).then((()=>p))}return p}))}})).then((e=>{const n=u.join(t,"src-tauri/tauri.conf.json");if(s!==null){i.copyFileSync(s,n)}if(a){const e=JSON.parse(i.readFileSync(n).toString());e.build.distDir=a;i.writeFileSync(n,JSON.stringify(e))}const c=r?["--debug"]:[];let l;let p=[];if(hasDependency("vue-cli-plugin-tauri",t)){if(usesYarn(t)){l="yarn"}else{l="npx";p=["run","tauri:build"]}}else{l=e.runner.runnerCommand;p=[...e.runner.runnerArgs,"build"]}return execCommand(l,[...p,...c],{cwd:t}).then((()=>{let s=e.name;if(!["darwin","win32"].includes(o.platform())){s=s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z])([A-Z])(?=[a-z])/g,"$1-$2").replace(/ /g,"-").toLowerCase()}const n=u.join(t,`src-tauri/target/${r?"debug":"release"}`);switch(o.platform()){case"darwin":return[u.join(n,`bundle/dmg/${s}_${e.version}_${process.arch}.dmg`),u.join(n,`bundle/macos/${s}.app`)];case"win32":return[u.join(n,`bundle/msi/${s}_${e.version}_${process.arch}.msi`)];default:const t=process.arch==="x64"?"amd64":process.arch==="x32"?"i386":process.arch;return[u.join(n,`bundle/deb/${s}_${e.version}_${t}.deb`),u.join(n,`bundle/appimage/${s}_${e.version}_${t}.AppImage`)]}})).then((e=>e.filter((e=>i.existsSync(e)))))}))}))}t._l=buildProject;t.ic=execCommand;t.ms=getPackageJson},9609:module=>{module.exports=eval("require")("encoding")},2357:e=>{"use strict";e.exports=require("assert")},4293:e=>{"use strict";e.exports=require("buffer")},3129:e=>{"use strict";e.exports=require("child_process")},8614:e=>{"use strict";e.exports=require("events")},5747:e=>{"use strict";e.exports=require("fs")},8605:e=>{"use strict";e.exports=require("http")},7211:e=>{"use strict";e.exports=require("https")},1631:e=>{"use strict";e.exports=require("net")},2087:e=>{"use strict";e.exports=require("os")},5622:e=>{"use strict";e.exports=require("path")},2413:e=>{"use strict";e.exports=require("stream")},4016:e=>{"use strict";e.exports=require("tls")},8835:e=>{"use strict";e.exports=require("url")},1669:e=>{"use strict";e.exports=require("util")},8761:e=>{"use strict";e.exports=require("zlib")}};var __webpack_module_cache__={};function __nccwpck_require__(e){var t=__webpack_module_cache__[e];if(t!==undefined){return t.exports}var r=__webpack_module_cache__[e]={exports:{}};var s=true;try{__webpack_modules__[e].call(r.exports,r,r.exports,__nccwpck_require__);s=false}finally{if(s)delete __webpack_module_cache__[e]}return r.exports}(()=>{__nccwpck_require__.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;__nccwpck_require__.d(t,{a:t});return t}})();(()=>{__nccwpck_require__.d=(e,t)=>{for(var r in t){if(__nccwpck_require__.o(t,r)&&!__nccwpck_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}}})();(()=>{__nccwpck_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();(()=>{__nccwpck_require__.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var __webpack_exports__={};(()=>{"use strict";__nccwpck_require__.r(__webpack_exports__);var e=__nccwpck_require__(2087);var t=__nccwpck_require__(7117);var r=__nccwpck_require__(5622);var s=__nccwpck_require__.n(r);var n=__nccwpck_require__(5747);var o=__nccwpck_require__.n(n);var i=__nccwpck_require__(4005);var a=undefined&&undefined.__awaiter||function(e,t,r,s){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(s.next(e))}catch(e){n(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};function uploadAssets(e,t){return a(this,void 0,void 0,(function*(){if(process.env.GITHUB_TOKEN===undefined){throw new Error("GITHUB_TOKEN is required")}const r=(0,i.getOctokit)(process.env.GITHUB_TOKEN);const contentLength=e=>o().statSync(e).size;for(const n of t){const t={"content-type":"application/zip","content-length":contentLength(n)};const a=s().extname(n);const c=s().basename(n).replace(a,"");const u=s().dirname(n).includes(`target${s().sep}debug`)?`${c}-debug${a}`:`${c}${a}`;console.log(`Uploading ${u}...`);yield r.repos.uploadReleaseAsset({headers:t,name:u,data:o().readFileSync(n),owner:i.context.repo.owner,repo:i.context.repo.repo,release_id:e})}}))}var c=undefined&&undefined.__awaiter||function(e,t,r,s){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(s.next(e))}catch(e){n(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};var u=undefined&&undefined.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(t){r[t]=e[t]&&function(r){return new Promise((function(s,n){r=e[t](r),settle(s,n,r.done,r.value)}))}}function settle(e,t,r,s){Promise.resolve(s).then((function(t){e({value:t,done:r})}),t)}};function allReleases(e){const t=Object.assign({per_page:100},i.context.repo);return e.paginate.iterator(e.repos.listReleases.endpoint.merge(t))}function createRelease(e,r,s,n,a=true,l=true){var p,h;return c(this,void 0,void 0,(function*(){if(process.env.GITHUB_TOKEN===undefined){throw new Error("GITHUB_TOKEN is required")}const c=(0,i.getOctokit)(process.env.GITHUB_TOKEN);const{owner:d,repo:m}=i.context.repo;const g=t.getInput("body_path",{required:false});let b=null;if(g!==""&&!!g){try{b=o().readFileSync(g,{encoding:"utf8"})}catch(e){t.setFailed(e.message)}}let w=null;try{if(a){console.log(`Looking for a draft release with tag ${e}...`);try{for(var T=u(allReleases(c)),y;y=yield T.next(),!y.done;){const t=y.value;let r=t.data.find((t=>t.tag_name===e));if(r){w=r;console.log(`Found draft release with tag ${e} on the release list.`);break}}}catch(e){p={error:e}}finally{try{if(y&&!y.done&&(h=T.return))yield h.call(T)}finally{if(p)throw p.error}}if(!w){throw new Error("release not found")}}else{const t=yield c.repos.getReleaseByTag({owner:d,repo:m,tag:e});w=t.data;console.log(`Found release with tag ${e}.`)}}catch(t){if(t.status===404||t.message==="release not found"){console.log(`Couldn't find release with tag ${e}. Creating one.`);const t=yield c.repos.createRelease({owner:d,repo:m,tag_name:e,name:r,body:b||s,draft:a,prerelease:l,target_commitish:n||i.context.sha});w=t.data}else{console.log(`⚠️ Unexpected error fetching GitHub release for tag ${e}: ${t}`);throw t}}if(!w){throw new Error("Release not found or created.")}return{id:w.id,uploadUrl:w.upload_url,htmlUrl:w.html_url}}))}var l=__nccwpck_require__(4877);var p=undefined&&undefined.__awaiter||function(e,t,r,s){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(s.next(e))}catch(e){n(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};function run(){return p(this,void 0,void 0,(function*(){try{const s=t.getInput("preferGlobal")==="true";const o=(0,r.resolve)(process.cwd(),t.getInput("projectPath")||process.argv[2]);const i=(0,r.join)(o,t.getInput("configPath")||"tauri.conf.json");const a=t.getInput("distPath");const c=t.getInput("iconPath");const u=t.getInput("includeDebug")==="true";const p=t.getInput("npmScript");let h=t.getInput("tagName").replace("refs/tags/","");let d=t.getInput("releaseName").replace("refs/tags/","");let m=t.getInput("releaseBody");const g=t.getInput("releaseDraft")==="true";const b=t.getInput("prerelease")==="true";const w=t.getInput("releaseCommitish")||null;if(Boolean(h)!==Boolean(d)){throw new Error("`tag` is required along with `releaseName` when creating a release.")}const T={configPath:(0,n.existsSync)(i)?i:null,distPath:a,iconPath:c,npmScript:p};const y=yield(0,l._l)(s,o,false,T);if(u){const e=yield(0,l._l)(s,o,true,T);y.push(...e)}if(y.length===0){throw new Error("No artifacts were found.")}console.log(`Artifacts: ${y}.`);let _;if(h){const e=(0,l.ms)(o);const r=[{key:"__VERSION__",value:e===null||e===void 0?void 0:e.version}];r.forEach((e=>{const t=new RegExp(e.key,"g");h=h.replace(t,e.value);d=d.replace(t,e.value);m=m.replace(t,e.value)}));const s=yield createRelease(h,d,m,w||undefined,g,b);_=s.id;t.setOutput("releaseUploadUrl",s.uploadUrl);t.setOutput("releaseId",s.id.toString());t.setOutput("releaseHtmlUrl",s.htmlUrl)}else{_=Number(t.getInput("releaseId")||0)}if(_){if((0,e.platform)()==="darwin"){let e=0;for(const t of y){if(t.endsWith(".app")){yield(0,l.ic)("tar",["czf",`${t}.tgz`,t],{cwd:undefined});y[e]+=".tgz"}e++}}yield uploadAssets(_,y)}}catch(e){t.setFailed(e.message)}}))}run()})();module.exports=__webpack_exports__})(); \ No newline at end of file +var t;var r;var s;var n;var o;var i;var a;var c;var u;var l;var p;var h;var d;var m;var g;var b;var T;var w;var y;var _;var E;var v;var A;var O;(function(t){var r=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd){define("tslib",["exports"],(function(e){t(createExporter(r,createExporter(e)))}))}else if(true&&typeof e.exports==="object"){t(createExporter(r,createExporter(e.exports)))}else{t(createExporter(r))}function createExporter(e,t){if(e!==r){if(typeof Object.create==="function"){Object.defineProperty(e,"__esModule",{value:true})}else{e.__esModule=true}}return function(r,s){return e[r]=t?t(r,s):s}}})((function(e){var S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};t=function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");S(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)};r=Object.assign||function(e){for(var t,r=1,s=arguments.length;r=0;a--)if(i=e[a])o=(n<3?i(o):n>3?i(t,r,o):i(t,r))||o;return n>3&&o&&Object.defineProperty(t,r,o),o};o=function(e,t){return function(r,s){t(r,s,e)}};i=function(e,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)};a=function(e,t,r,s){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(s.next(e))}catch(e){n(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};c=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},s,n,o,i;return i={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function verb(e){return function(t){return step([e,t])}}function step(i){if(s)throw new TypeError("Generator is already executing.");while(r)try{if(s=1,n&&(o=i[0]&2?n["return"]:i[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;if(n=0,o)i=[i[0]&2,o.value];switch(i[0]){case 0:case 1:o=i;break;case 4:r.label++;return{value:i[1],done:false};case 5:r.label++;n=i[1];i=[0];continue;case 7:i=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(i[0]===6||i[0]===2)){r=0;continue}if(i[0]===3&&(!o||i[1]>o[0]&&i[1]=e.length)e=void 0;return{value:e&&e[s++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};p=function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var s=r.call(e),n,o=[],i;try{while((t===void 0||t-- >0)&&!(n=s.next()).done)o.push(n.value)}catch(e){i={error:e}}finally{try{if(n&&!n.done&&(r=s["return"]))r.call(s)}finally{if(i)throw i.error}}return o};h=function(){for(var e=[],t=0;t1||resume(e,t)}))}}function resume(e,t){try{step(s[e](t))}catch(e){settle(o[0][3],e)}}function step(e){e.value instanceof g?Promise.resolve(e.value.v).then(fulfill,reject):settle(o[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),o.shift(),o.length)resume(o[0][0],o[0][1])}};T=function(e){var t,r;return t={},verb("next"),verb("throw",(function(e){throw e})),verb("return"),t[Symbol.iterator]=function(){return this},t;function verb(s,n){t[s]=e[s]?function(t){return(r=!r)?{value:g(e[s](t)),done:s==="return"}:n?n(t):t}:n}};w=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof l==="function"?l(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(t){r[t]=e[t]&&function(r){return new Promise((function(s,n){r=e[t](r),settle(s,n,r.done,r.value)}))}}function settle(e,t,r,s){Promise.resolve(s).then((function(t){e({value:t,done:r})}),t)}};y=function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var C=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t};_=function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))O(t,e,r);C(t,e);return t};E=function(e){return e&&e.__esModule?e:{default:e}};v=function(e,t,r,s){if(r==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?s:r==="a"?s.call(e):s?s.value:t.get(e)};A=function(e,t,r,s,n){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?n.call(e,r):n?n.value=r:t.set(e,r),r};e("__extends",t);e("__assign",r);e("__rest",s);e("__decorate",n);e("__param",o);e("__metadata",i);e("__awaiter",a);e("__generator",c);e("__exportStar",u);e("__createBinding",O);e("__values",l);e("__read",p);e("__spread",h);e("__spreadArrays",d);e("__spreadArray",m);e("__await",g);e("__asyncGenerator",b);e("__asyncDelegator",T);e("__asyncValues",w);e("__makeTemplateObject",y);e("__importStar",_);e("__importDefault",E);e("__classPrivateFieldGet",v);e("__classPrivateFieldSet",A)}))},9382:(e,t,r)=>{e.exports=r(1418)},1418:(e,t,r)=>{"use strict";var s=r(1631);var n=r(4016);var o=r(8605);var i=r(7211);var a=r(8614);var c=r(2357);var u=r(1669);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=i.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=i.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function TunnelingAgent(e){var t=this;t.options=e||{};t.proxyOptions=t.options.proxy||{};t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",(function onFree(e,r,s,n){var o=toOptions(r,s,n);for(var i=0,a=t.requests.length;i=this.maxSockets){n.requests.push(o);return}n.createSocket(o,(function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){n.emit("free",t,o)}function onCloseOrRemove(e){n.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var r=this;var s={};r.sockets.push(s);var n=mergeOptions({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){n.localAddress=e.localAddress}if(n.proxyAuth){n.headers=n.headers||{};n.headers["Proxy-Authorization"]="Basic "+new Buffer(n.proxyAuth).toString("base64")}l("making CONNECT request");var o=r.request(n);o.useChunkedEncodingByDefault=false;o.once("response",onResponse);o.once("upgrade",onUpgrade);o.once("connect",onConnect);o.once("error",onError);o.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,r){process.nextTick((function(){onConnect(e,t,r)}))}function onConnect(n,i,a){o.removeAllListeners();i.removeAllListeners();if(n.statusCode!==200){l("tunneling socket could not be established, statusCode=%d",n.statusCode);i.destroy();var c=new Error("tunneling socket could not be established, "+"statusCode="+n.statusCode);c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(s);return}if(a.length>0){l("got illegal response body from proxy");i.destroy();var c=new Error("got illegal response body from proxy");c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(s);return}l("tunneling connection has established");r.sockets[r.sockets.indexOf(s)]=i;return t(i)}function onError(t){o.removeAllListeners();l("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(s)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var r=this.requests.shift();if(r){this.createSocket(r,(function(e){r.request.onSocket(e)}))}};function createSecureSocket(e,t){var r=this;TunnelingAgent.prototype.createSocket.call(r,e,(function(s){var o=e.request.getHeader("host");var i=mergeOptions({},r.options,{socket:s,servername:o?o.replace(/:.*$/,""):e.host});var a=n.connect(0,i);r.sockets[r.sockets.indexOf(s)]=a;t(a)}))}function toOptions(e,t,r){if(typeof e==="string"){return{host:e,port:t,localAddress:r}}return e}function mergeOptions(e){for(var t=1,r=arguments.length;t{"use strict";Object.defineProperty(t,"__esModule",{value:true});function getUserAgent(){if(typeof navigator==="object"&&"userAgent"in navigator){return navigator.userAgent}if(typeof process==="object"&&"version"in process){return`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`}return""}t.getUserAgent=getUserAgent},8201:(e,t,r)=>{const s=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys";const n=r(5622);const o=s?";":":";const i=r(228);const getNotFoundError=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"});const getPathInfo=(e,t)=>{const r=t.colon||o;const n=e.match(/\//)||s&&e.match(/\\/)?[""]:[...s?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)];const i=s?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"";const a=s?i.split(r):[""];if(s){if(e.indexOf(".")!==-1&&a[0]!=="")a.unshift("")}return{pathEnv:n,pathExt:a,pathExtExe:i}};const which=(e,t,r)=>{if(typeof t==="function"){r=t;t={}}if(!t)t={};const{pathEnv:s,pathExt:o,pathExtExe:a}=getPathInfo(e,t);const c=[];const step=r=>new Promise(((o,i)=>{if(r===s.length)return t.all&&c.length?o(c):i(getNotFoundError(e));const a=s[r];const u=/^".*"$/.test(a)?a.slice(1,-1):a;const l=n.join(u,e);const p=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+l:l;o(subStep(p,r,0))}));const subStep=(e,r,s)=>new Promise(((n,u)=>{if(s===o.length)return n(step(r+1));const l=o[s];i(e+l,{pathExt:a},((o,i)=>{if(!o&&i){if(t.all)c.push(e+l);else return n(e+l)}return n(subStep(e,r,s+1))}))}));return r?step(0).then((e=>r(null,e)),r):step(0)};const whichSync=(e,t)=>{t=t||{};const{pathEnv:r,pathExt:s,pathExtExe:o}=getPathInfo(e,t);const a=[];for(let c=0;c{e.exports=wrappy;function wrappy(e,t){if(e&&t)return wrappy(e)(t);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach((function(t){wrapper[t]=e[t]}));return wrapper;function wrapper(){var t=new Array(arguments.length);for(var r=0;r{"use strict";var s;s={value:true};var n=r(36);var o=r(2087);var i=r(5747);var a=r(580);var c=r(9434);var u=r(5622);function _interopDefaultLegacy(e){return e&&typeof e==="object"&&"default"in e?e:{default:e}}var l=_interopDefaultLegacy(a);function getPackageJson(e){const t=u.join(e,"package.json");if(i.existsSync(t)){const e=i.readFileSync(t).toString();const r=JSON.parse(e);return r}return null}function hasDependency(e,t){const r=getPackageJson(t);return r&&(r.dependencies&&r.dependencies[e]||r.devDependencies&&r.devDependencies[e])}function usesYarn(e){return i.existsSync(u.join(e,"yarn.lock"))}function execCommand(e,t,{cwd:r}){console.log(`running ${e}`,t);return l["default"](e,t,{cwd:r,stdio:"inherit",env:{FORCE_COLOR:"0"}}).then()}function buildProject(e,t,r,{configPath:s,distPath:a,iconPath:l,npmScript:p,args:h}){return n.__awaiter(this,void 0,void 0,(function*(){return new Promise(((r,s)=>{if(e){r({runnerCommand:"tauri",runnerArgs:[]})}else if(hasDependency("@tauri-apps/cli",t)||hasDependency("vue-cli-plugin-tauri",t)){if(p){r(usesYarn(t)?{runnerCommand:"yarn",runnerArgs:p.split(" ")}:{runnerCommand:"npm",runnerArgs:["run",...p.split(" ")]})}else{r(usesYarn(t)?{runnerCommand:"yarn",runnerArgs:["tauri"]}:{runnerCommand:"npx",runnerArgs:["tauri"]})}}else{execCommand("npm",["install","-g","@tauri-apps/cli"],{cwd:undefined}).then((()=>{r({runnerCommand:"tauri",runnerArgs:[]})})).catch(s)}})).then((e=>{const r=u.join(t,"src-tauri/tauri.conf.json");if(i.existsSync(r)){let s;let n;const o=JSON.parse(i.readFileSync(r).toString());if(o.package){s=o.package.productName;n=o.package.version}if(!(s&&n)){const e=u.join(t,"src-tauri/Cargo.toml");const r=c.parse(i.readFileSync(e).toString());s=s||r.package.name;n=n||r.package.version}if(!(s&&n)){console.error("Could not determine package name and version");process.exit(1)}return{runner:e,name:s,version:n}}else{const s=getPackageJson(t);const n=s?(s.displayName||s.name).replace(/ /g,"-"):"app";return execCommand(e.runnerCommand,[...e.runnerArgs,"init","--ci","--app-name",n],{cwd:t}).then((()=>{const o=JSON.parse(i.readFileSync(r).toString());const a=s?s.version:"0.1.0";console.log(`Replacing tauri.conf.json config - package.version=${a}`);const c=Object.assign(Object.assign({},o.package),{version:a});if(s===null||s===void 0?void 0:s.productName){console.log(`Replacing tauri.conf.json config - package.productName=${s.productName}`);c.productName=s.productName}o.package=c;i.writeFileSync(r,JSON.stringify(o,null,2));const p={runner:e,name:n,version:a};if(l){return execCommand(e.runnerCommand,[...e.runnerArgs,"icon",u.join(t,l)],{cwd:t}).then((()=>p))}return p}))}})).then((e=>{const n=u.join(t,"src-tauri/tauri.conf.json");if(s!==null){i.copyFileSync(s,n)}if(a){const e=JSON.parse(i.readFileSync(n).toString());e.build.distDir=a;i.writeFileSync(n,JSON.stringify(e))}const c=r?["--debug",...h!==null&&h!==void 0?h:[]]:h!==null&&h!==void 0?h:[];let l;let p=[];if(hasDependency("vue-cli-plugin-tauri",t)){if(usesYarn(t)){l="yarn"}else{l="npx";p=["run","tauri:build"]}}else{l=e.runner.runnerCommand;p=[...e.runner.runnerArgs,"build"]}return execCommand(l,[...p,...c],{cwd:t}).then((()=>{let s=e.name;if(!["darwin","win32"].includes(o.platform())){s=s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z])([A-Z])(?=[a-z])/g,"$1-$2").replace(/ /g,"-").toLowerCase()}const n=u.join(t,`src-tauri/target/${r?"debug":"release"}`);switch(o.platform()){case"darwin":return[u.join(n,`bundle/dmg/${s}_${e.version}_${process.arch}.dmg`),u.join(n,`bundle/macos/${s}.app`),u.join(n,`bundle/macos/${s}.app.tar.gz`),u.join(n,`bundle/macos/${s}.app.tar.gz.sig`)];case"win32":return[u.join(n,`bundle/msi/${s}_${e.version}_${process.arch}.msi`),u.join(n,`bundle/msi/${s}_${e.version}_${process.arch}.msi.zip`),u.join(n,`bundle/msi/${s}_${e.version}_${process.arch}.msi.zip.sig`)];default:const t=process.arch==="x64"?"amd64":process.arch==="x32"?"i386":process.arch;return[u.join(n,`bundle/deb/${s}_${e.version}_${t}.deb`),u.join(n,`bundle/appimage/${s}_${e.version}_${t}.AppImage`),u.join(n,`bundle/appimage/${s}_${e.version}_${t}.AppImage.zip`),u.join(n,`bundle/appimage/${s}_${e.version}_${t}.AppImage.zip.sig`)]}})).then((e=>e.filter((e=>i.existsSync(e)))))}))}))}t._l=buildProject;t.ic=execCommand;t.ms=getPackageJson},9609:module=>{module.exports=eval("require")("encoding")},2357:e=>{"use strict";e.exports=require("assert")},4293:e=>{"use strict";e.exports=require("buffer")},3129:e=>{"use strict";e.exports=require("child_process")},8614:e=>{"use strict";e.exports=require("events")},5747:e=>{"use strict";e.exports=require("fs")},8605:e=>{"use strict";e.exports=require("http")},7211:e=>{"use strict";e.exports=require("https")},1631:e=>{"use strict";e.exports=require("net")},2087:e=>{"use strict";e.exports=require("os")},5622:e=>{"use strict";e.exports=require("path")},2413:e=>{"use strict";e.exports=require("stream")},4016:e=>{"use strict";e.exports=require("tls")},8835:e=>{"use strict";e.exports=require("url")},1669:e=>{"use strict";e.exports=require("util")},8761:e=>{"use strict";e.exports=require("zlib")}};var __webpack_module_cache__={};function __nccwpck_require__(e){var t=__webpack_module_cache__[e];if(t!==undefined){return t.exports}var r=__webpack_module_cache__[e]={exports:{}};var s=true;try{__webpack_modules__[e].call(r.exports,r,r.exports,__nccwpck_require__);s=false}finally{if(s)delete __webpack_module_cache__[e]}return r.exports}(()=>{__nccwpck_require__.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;__nccwpck_require__.d(t,{a:t});return t}})();(()=>{__nccwpck_require__.d=(e,t)=>{for(var r in t){if(__nccwpck_require__.o(t,r)&&!__nccwpck_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}}})();(()=>{__nccwpck_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();(()=>{__nccwpck_require__.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var __webpack_exports__={};(()=>{"use strict";__nccwpck_require__.r(__webpack_exports__);var e=__nccwpck_require__(2087);var t=__nccwpck_require__(7117);var r=__nccwpck_require__(5622);var s=__nccwpck_require__.n(r);var n=__nccwpck_require__(5747);var o=__nccwpck_require__.n(n);var i=__nccwpck_require__(4005);var a=undefined&&undefined.__awaiter||function(e,t,r,s){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(s.next(e))}catch(e){n(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};function uploadAssets(e,t){return a(this,void 0,void 0,(function*(){if(process.env.GITHUB_TOKEN===undefined){throw new Error("GITHUB_TOKEN is required")}const r=(0,i.getOctokit)(process.env.GITHUB_TOKEN);const contentLength=e=>o().statSync(e).size;for(const n of t){const t={"content-type":"application/zip","content-length":contentLength(n)};const a=s().extname(n);const c=s().basename(n).replace(a,"");const u=s().dirname(n).includes(`target${s().sep}debug`)?`${c}-debug${a}`:`${c}${a}`;console.log(`Uploading ${u}...`);yield r.repos.uploadReleaseAsset({headers:t,name:u,data:o().readFileSync(n),owner:i.context.repo.owner,repo:i.context.repo.repo,release_id:e})}}))}var c=undefined&&undefined.__awaiter||function(e,t,r,s){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(s.next(e))}catch(e){n(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};var u=undefined&&undefined.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(t){r[t]=e[t]&&function(r){return new Promise((function(s,n){r=e[t](r),settle(s,n,r.done,r.value)}))}}function settle(e,t,r,s){Promise.resolve(s).then((function(t){e({value:t,done:r})}),t)}};function allReleases(e){const t=Object.assign({per_page:100},i.context.repo);return e.paginate.iterator(e.repos.listReleases.endpoint.merge(t))}function createRelease(e,r,s,n,a=true,l=true){var p,h;return c(this,void 0,void 0,(function*(){if(process.env.GITHUB_TOKEN===undefined){throw new Error("GITHUB_TOKEN is required")}const c=(0,i.getOctokit)(process.env.GITHUB_TOKEN);const{owner:d,repo:m}=i.context.repo;const g=t.getInput("body_path",{required:false});let b=null;if(g!==""&&!!g){try{b=o().readFileSync(g,{encoding:"utf8"})}catch(e){t.setFailed(e.message)}}let T=null;try{if(a){console.log(`Looking for a draft release with tag ${e}...`);try{for(var w=u(allReleases(c)),y;y=yield w.next(),!y.done;){const t=y.value;let r=t.data.find((t=>t.tag_name===e));if(r){T=r;console.log(`Found draft release with tag ${e} on the release list.`);break}}}catch(e){p={error:e}}finally{try{if(y&&!y.done&&(h=w.return))yield h.call(w)}finally{if(p)throw p.error}}if(!T){throw new Error("release not found")}}else{const t=yield c.repos.getReleaseByTag({owner:d,repo:m,tag:e});T=t.data;console.log(`Found release with tag ${e}.`)}}catch(t){if(t.status===404||t.message==="release not found"){console.log(`Couldn't find release with tag ${e}. Creating one.`);const t=yield c.repos.createRelease({owner:d,repo:m,tag_name:e,name:r,body:b||s,draft:a,prerelease:l,target_commitish:n||i.context.sha});T=t.data}else{console.log(`⚠️ Unexpected error fetching GitHub release for tag ${e}: ${t}`);throw t}}if(!T){throw new Error("Release not found or created.")}return{id:T.id,uploadUrl:T.upload_url,htmlUrl:T.html_url}}))}var l=__nccwpck_require__(4877);var p=__nccwpck_require__(7574);var h=undefined&&undefined.__awaiter||function(e,t,r,s){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(s.next(e))}catch(e){n(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};function run(){return h(this,void 0,void 0,(function*(){try{const s=t.getInput("preferGlobal")==="true";const o=(0,r.resolve)(process.cwd(),t.getInput("projectPath")||process.argv[2]);const i=(0,r.join)(o,t.getInput("configPath")||"tauri.conf.json");const a=t.getInput("distPath");const c=t.getInput("iconPath");const u=t.getInput("includeDebug")==="true";const h=t.getInput("npmScript");const d=(0,p.ZP)(t.getInput("args"));let m=t.getInput("tagName").replace("refs/tags/","");let g=t.getInput("releaseName").replace("refs/tags/","");let b=t.getInput("releaseBody");const T=t.getInput("releaseDraft")==="true";const w=t.getInput("prerelease")==="true";const y=t.getInput("releaseCommitish")||null;if(Boolean(m)!==Boolean(g)){throw new Error("`tag` is required along with `releaseName` when creating a release.")}const _={configPath:(0,n.existsSync)(i)?i:null,distPath:a,iconPath:c,npmScript:h,args:d};const E=yield(0,l._l)(s,o,false,_);if(u){const e=yield(0,l._l)(s,o,true,_);E.push(...e)}if(E.length===0){throw new Error("No artifacts were found.")}console.log(`Artifacts: ${E}.`);let v;if(m){const e=(0,l.ms)(o);const r=[{key:"__VERSION__",value:e===null||e===void 0?void 0:e.version}];r.forEach((e=>{const t=new RegExp(e.key,"g");m=m.replace(t,e.value);g=g.replace(t,e.value);b=b.replace(t,e.value)}));const s=yield createRelease(m,g,b,y||undefined,T,w);v=s.id;t.setOutput("releaseUploadUrl",s.uploadUrl);t.setOutput("releaseId",s.id.toString());t.setOutput("releaseHtmlUrl",s.htmlUrl)}else{v=Number(t.getInput("releaseId")||0)}if(v){if((0,e.platform)()==="darwin"){let e=0;for(const t of E){if(t.endsWith(".app")){yield(0,l.ic)("tar",["czf",`${t}.tgz`,t],{cwd:undefined});E[e]+=".tgz"}e++}}yield uploadAssets(v,E)}}catch(e){t.setFailed(e.message)}}))}run()})();module.exports=__webpack_exports__})(); \ No newline at end of file diff --git a/packages/action/package.json b/packages/action/package.json index a1441d690a..1d899c0b01 100644 --- a/packages/action/package.json +++ b/packages/action/package.json @@ -20,6 +20,7 @@ "@actions/core": "1.2.7", "@actions/github": "4.0.0", "@tauri-apps/action-core": "0.1.1", + "string-argv": "0.3.1", "tslib": "2.2.0" }, "devDependencies": { diff --git a/packages/action/src/index.ts b/packages/action/src/index.ts index beec8b212c..2572d0bff4 100644 --- a/packages/action/src/index.ts +++ b/packages/action/src/index.ts @@ -6,6 +6,7 @@ import uploadReleaseAssets from './upload-release-assets' import createRelease from './create-release' import { getPackageJson, buildProject, execCommand } from '@tauri-apps/action-core' import type { BuildOptions } from '@tauri-apps/action-core' +import stringArgv from 'string-argv' async function run(): Promise { try { @@ -22,6 +23,7 @@ async function run(): Promise { const iconPath = core.getInput('iconPath') const includeDebug = core.getInput('includeDebug') === 'true' const npmScript = core.getInput('npmScript') + const args = stringArgv(core.getInput('args')) let tagName = core.getInput('tagName').replace('refs/tags/', '') let releaseName = core.getInput('releaseName').replace('refs/tags/', '') @@ -40,7 +42,8 @@ async function run(): Promise { configPath: existsSync(configPath) ? configPath : null, distPath, iconPath, - npmScript + npmScript, + args } const artifacts = await buildProject(preferGlobal, projectPath, false, options) if (includeDebug) { diff --git a/packages/cli/index.ts b/packages/cli/index.ts index a1af858897..1daad6dc8c 100644 --- a/packages/cli/index.ts +++ b/packages/cli/index.ts @@ -21,12 +21,14 @@ export async function run(): Promise { const iconPath = argv['icon-path'] const includeDebug = argv['include-debug'] const npmScript = argv['npm-script'] + const args = argv._ const options: BuildOptions = { configPath: existsSync(configPath) ? configPath : null, distPath, iconPath, - npmScript + npmScript, + args } const artifacts = await buildProject(preferGlobal, projectPath, false, options) if (includeDebug) { diff --git a/packages/cli/package.json b/packages/cli/package.json index bc55286407..c6ef2ef45b 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -14,7 +14,7 @@ "url": "git+https://github.com/tauri-apps/tauri-action.git" }, "dependencies": { - "@tauri-apps/action-core": "0.1.0", + "@tauri-apps/action-core": "0.1.1", "minimist": "1.2.5", "tslib": "2.2.0" }, diff --git a/packages/cli/rollup.config.js b/packages/cli/rollup.config.js index d255c1a41c..90d68e3b96 100644 --- a/packages/cli/rollup.config.js +++ b/packages/cli/rollup.config.js @@ -11,7 +11,9 @@ export default { entryFileNames: "[name].js", exports: "named", }, - plugins: [typescript()], + plugins: [typescript({ + allowSyntheticDefaultImports: true + })], external: [ ...Object.keys(pkg.dependencies || {}), "path", diff --git a/packages/core/index.ts b/packages/core/index.ts index 44de87a10d..098c4e0113 100644 --- a/packages/core/index.ts +++ b/packages/core/index.ts @@ -1,7 +1,7 @@ import { platform } from 'os' import { readFileSync, existsSync, copyFileSync, writeFileSync } from 'fs' import execa from 'execa' -import toml from '@iarna/toml' +import { parse as parseToml } from '@iarna/toml' import { join } from 'path' export function getPackageJson(root: string): any { @@ -68,6 +68,7 @@ export interface BuildOptions { distPath: string | null iconPath: string | null npmScript: string | null + args: string[] | null } export interface Runner { @@ -79,7 +80,7 @@ export async function buildProject( preferGlobal: boolean, root: string, debug: boolean, - { configPath, distPath, iconPath, npmScript }: BuildOptions + { configPath, distPath, iconPath, npmScript, args }: BuildOptions ): Promise { return new Promise((resolve, reject) => { if (preferGlobal) { @@ -118,7 +119,7 @@ export async function buildProject( } if (!(name && version)) { const manifestPath = join(root, 'src-tauri/Cargo.toml') - const cargoManifest = (toml.parse( + const cargoManifest = (parseToml( readFileSync(manifestPath).toString() ) as any) as CargoManifest name = name || cargoManifest.package.name @@ -191,7 +192,7 @@ export async function buildProject( writeFileSync(tauriConfPath, JSON.stringify(tauriConf)) } - const args = debug ? ['--debug'] : [] + const tauriArgs = debug ? ['--debug', ...(args ?? [])] : (args ?? []) let buildCommand let buildArgs: string[] = [] @@ -209,7 +210,7 @@ export async function buildProject( return execCommand( buildCommand, - [...buildArgs, ...args], + [...buildArgs, ...tauriArgs], { cwd: root } ) .then(() => { diff --git a/packages/core/rollup.config.js b/packages/core/rollup.config.js index d255c1a41c..c66a7be997 100644 --- a/packages/core/rollup.config.js +++ b/packages/core/rollup.config.js @@ -11,7 +11,9 @@ export default { entryFileNames: "[name].js", exports: "named", }, - plugins: [typescript()], + plugins: [typescript({ + tsconfig: './tsconfig.json' + })], external: [ ...Object.keys(pkg.dependencies || {}), "path", diff --git a/packages/core/tsconfig.json b/packages/core/tsconfig.json index f330e7c615..252639a149 100644 --- a/packages/core/tsconfig.json +++ b/packages/core/tsconfig.json @@ -2,7 +2,8 @@ "extends": "../../tsconfig.json", "compilerOptions": { "outDir": "./dist", - "rootDir": "." + "rootDir": ".", + "allowSyntheticDefaultImports": true }, "include": ["index.ts"] } diff --git a/yarn.lock b/yarn.lock index 4eb8c2bd1e..e97605cdf0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -249,14 +249,6 @@ estree-walker "^1.0.1" picomatch "^2.2.2" -"@tauri-apps/action-core@0.1.0": - version "0.1.0" - resolved "https://registry.yarnpkg.com/@tauri-apps/action-core/-/action-core-0.1.0.tgz#dec84eb4d6eb4e37c6772fa5edac5457331c7a10" - integrity sha512-apyQvpGejwqra2oWRhOHlC8wFS1MzqXKaDkwqutEmQ2G4COg2d1sON/UKYamlTTw33E8gsoz8HMhph8XXVkJsA== - dependencies: - "@iarna/toml" "2.2.5" - execa "5.0.0" - "@tauri-apps/toml@^2.2.4": version "2.2.4" resolved "https://registry.yarnpkg.com/@tauri-apps/toml/-/toml-2.2.4.tgz#2b4f637aded7fc3a7302724605682c8fa3ac7505" @@ -1605,6 +1597,11 @@ spdx-license-ids@^3.0.0: resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.7.tgz#e9c18a410e5ed7e12442a549fbd8afa767038d65" integrity sha512-U+MTEOO0AiDzxwFvoa4JVnMV6mZlJKk2sBLt90s7G0Gd0Mlknc7kxEn3nuDPNZRta7O2uy8oLcZLVT+4sqNZHQ== +string-argv@0.3.1: + version "0.3.1" + resolved "https://registry.yarnpkg.com/string-argv/-/string-argv-0.3.1.tgz#95e2fbec0427ae19184935f816d74aaa4c5c19da" + integrity sha512-a1uQGz7IyVy9YwhqjZIZu1c8JO8dNIe20xBmSS6qu9kv++k3JGzCVmprbNN5Kn+BgzD5E7YYwg1CcjuJMRNsvg== + string-width@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3"