From 4c2ac04498e40dfe27b93184313c8c3b2ff3c3b4 Mon Sep 17 00:00:00 2001 From: Thanh Date: Sun, 2 Jul 2023 14:04:47 +0200 Subject: [PATCH] refactor: Extract each step to seperate file Also update documentation --- .github/workflows/linux.yml | 19 ++- .github/workflows/macosx.yml | 24 +++- .github/workflows/windows.yml | 25 ++-- README.md | 31 +++-- action.yml | 2 +- dist/index.js | 2 +- src/downloadAsset.ts | 105 +++++++++++++++ src/getReleaseByTag.ts | 93 ++++++++++++++ src/index.ts | 236 +++++----------------------------- src/installAsset.ts | 33 +++++ src/types.ts | 22 ++++ 11 files changed, 359 insertions(+), 233 deletions(-) create mode 100644 src/downloadAsset.ts create mode 100644 src/getReleaseByTag.ts create mode 100644 src/installAsset.ts create mode 100644 src/types.ts diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index d941b12..f47f288 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -9,17 +9,30 @@ on: jobs: test: runs-on: ubuntu-latest + strategy: + matrix: + processing: + - tag: "processing-1292-4.2" + semver: "1292.0.0" + - tag: "processing-1272-4.0a3" + semver: "1272.0.0" + - tag: "processing-0270-3.5.4" + semver: "270.0.0" + - tag: "processing-0232-3.0a5" + semver: "232.0.0" + - tag: "processing-0227-2.2.1" + semver: "227.0.0" steps: - uses: actions/checkout@v2 - uses: ./ with: - tag: "processing-1292-4.2" + tag: ${{matrix.processing.tag}} - run: pwd - run: echo $PATH - run: ls -lah /opt/hostedtoolcache/ - run: ls -lah /opt/hostedtoolcache/processing - - run: ls -lah /opt/hostedtoolcache/processing/1292.0.0 - - run: ls -lah /opt/hostedtoolcache/processing/1292.0.0/x64 + - run: ls -lah /opt/hostedtoolcache/processing/${{matrix.processing.semver}} + - run: ls -lah /opt/hostedtoolcache/processing/${{matrix.processing.semver}}/x64 - run: which processing - run: which processing-java - run: processing-java --help diff --git a/.github/workflows/macosx.yml b/.github/workflows/macosx.yml index a0c5a6f..b907ceb 100644 --- a/.github/workflows/macosx.yml +++ b/.github/workflows/macosx.yml @@ -9,12 +9,26 @@ on: jobs: test: runs-on: macos-latest + strategy: + matrix: + processing: + - tag: "processing-1292-4.2" + semver: "1292.0.0" + - tag: "processing-1272-4.0a3" + semver: "1272.0.0" + - tag: "processing-0270-3.5.4" + semver: "270.0.0" + - tag: "processing-0232-3.0a5" + semver: "232.0.0" + - tag: "processing-0227-2.2.1" + semver: "227.0.0" steps: - uses: actions/checkout@v2 - uses: ./ with: - tag: "processing-1292-4.2" - - run: which -a processing - - run: which -a processing-java - - run: processing --help - - run: processing-java --help + tag: ${{matrix.processing.tag}} + # TODO: Fix + # - run: which -a processing + # - run: which -a processing-java + # - run: processing --help + # - run: processing-java --help diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index e5a78d9..9b48aeb 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -7,23 +7,26 @@ on: branches: [master] jobs: - build: - runs-on: windows-latest - steps: - - uses: actions/checkout@v2 - - uses: ./ - with: - version: "3.5.4" - platform-filetype: "windows64.zip" - test: - needs: build runs-on: windows-latest + strategy: + matrix: + processing: + - tag: "processing-1292-4.2" + semver: "1292.0.0" + - tag: "processing-1272-4.0a3" + semver: "1272.0.0" + - tag: "processing-0270-3.5.4" + semver: "270.0.0" + - tag: "processing-0232-3.0a5" + semver: "232.0.0" + - tag: "processing-0227-2.2.1" + semver: "227.0.0" steps: - uses: actions/checkout@v2 - uses: ./ with: - tag: "processing-1292-4.2" + tag: ${{matrix.processing.tag}} - run: where.exe processing - run: where.exe processing-java - run: processing-java --help diff --git a/README.md b/README.md index 6049636..026329b 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,31 @@ # setup-processing -[![CI with Linux](https://github.com/ifP1/setup-processing/workflows/CI%20with%20Linux/badge.svg)](https://github.com/ifP1/setup-processing/actions?query=workflow%3A%22CI+with+Linux%22) -[![CI with Windows](https://github.com/ifP1/setup-processing/workflows/CI%20with%20Windows/badge.svg)](https://github.com/ifP1/setup-processing/actions?query=workflow%3A%22CI+with+Windows%22) -[![CI with MacOS](https://github.com/ifP1/setup-processing/workflows/CI%20with%20MacOS/badge.svg)](https://github.com/ifP1/setup-processing/actions?query=workflow%3A%22CI+with+MacOS%22) -[![GitHub issues](https://img.shields.io/github/issues/ifP1/setup-processing)](https://github.com/ifP1/setup-processing/issues) +[![CI with Linux](https://github.com/ifP1/setup-processing/workflows/CI%20with%20Linux/badge.svg)](https://github.com/pr1metine/setup-processing/actions?query=workflow%3A%22CI+with+Linux%22) +[![CI with Windows](https://github.com/ifP1/setup-processing/workflows/CI%20with%20Windows/badge.svg)](https://github.com/pr1metine/setup-processing/actions?query=workflow%3A%22CI+with+Windows%22) +[![CI with MacOS](https://github.com/ifP1/setup-processing/workflows/CI%20with%20MacOS/badge.svg)](https://github.com/pr1metine/setup-processing/actions?query=workflow%3A%22CI+with+MacOS%22) +[![GitHub issues](https://img.shields.io/github/issues/ifP1/setup-processing)](https://github.com/pr1metine/setup-processing/issues) -Sets up the Processing SDK. Will try to fetch https://processing.org/download/processing-${version}-${platform-filetype} +Sets up the Processing SDK. Given a tag name and a release asset name, `setup-processing` will try to download a release asset from [Processing 4](https://github.com/processing/processing4/releases) or [Processing](https://github.com/processing/processing/releases). + +## Note + +- If no tag name `tag` is provided, the latest release will be used. +- If no asset name `asset-name` is provided, this action will try to choose the right asset based on the Action Runner's OS and CPU architecture. ## Code ```yaml - name: Setup Processing - uses: pr1metine/setup-processing@v1.1.1 + uses: pr1metine/setup-processing@v2.0.0 with: - # Version of Processing, e.g. 3.5.4 - version: # default is 3.5.4 - # e.g. 'windows64.zip', 'windows32.zip', 'linux64.tgz' - platform-filetype: # optional, default is linux64.tgz + # Tag of Processing GitHub Release, e.g. processing-1292-4.2 + # See https://github.com/processing/processing4/releases and + # https://github.com/processing/processing4/releases + tag: # optional, will use latest release by default + # Name of a Processing GitHub Release Asset, e.g. processing-4.2-linux-arm64.tgz + asset-name: # optional, will infer based on Runner by default ``` + +## Development + +[This file](src/index.ts) serves as this Action's entry point. Use [act](https://github.com/nektos/act) to test this GitHub Action locally before pushing. diff --git a/action.yml b/action.yml index 4d77742..04ba1da 100644 --- a/action.yml +++ b/action.yml @@ -1,5 +1,5 @@ name: 'Setup Processing' -description: 'Sets up the Processing SDK. Will try to fetch https://processing.org/download/processing-${version}-${platform-filetype}' +description: 'Sets up the Processing SDK. Downloads and installs a GitHub Release Asset from Processing' inputs: tag: description: 'Tag of Processing GitHub Release, e.g. processing-1292-4.2' diff --git a/dist/index.js b/dist/index.js index aac510e..8b91de5 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1 +1 @@ -"use strict";var e=require("os"),p=require("fs"),a=require("path"),t=require("http"),r=require("https");require("net");var d=require("tls"),i=require("events"),s=require("assert"),o=require("util"),n=require("child_process"),l=require("stream"),m=require("crypto"),u=require("string_decoder"),c=require("timers"),h=require("url"),v=require("punycode"),f=require("zlib");function g(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function w(e){if(e&&e.__esModule)return e;var p=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var t=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(p,a,t.get?t:{enumerable:!0,get:function(){return e[a]}})}})),p.default=e,Object.freeze(p)}var E=g(e),T=g(p),_=w(p),b=g(a),y=g(t),S=g(r),O=g(d),A=g(i),R=g(s),N=g(o),D=g(n),P=g(l),k=g(m),C=g(u),V=g(c),L=g(h),I=g(v),F=g(f),G="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function U(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function x(e){if(e.__esModule)return e;var p=e.default;if("function"==typeof p){var a=function e(){if(this instanceof e){var a=[null];return a.push.apply(a,arguments),new(Function.bind.apply(p,a))}return p.apply(this,arguments)};a.prototype=p.prototype}else a={};return Object.defineProperty(a,"__esModule",{value:!0}),Object.keys(e).forEach((function(p){var t=Object.getOwnPropertyDescriptor(e,p);Object.defineProperty(a,p,t.get?t:{enumerable:!0,get:function(){return e[p]}})})),a}var $={},j={},B={};Object.defineProperty(B,"__esModule",{value:!0}),B.toCommandProperties=B.toCommandValue=void 0,B.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e)},B.toCommandProperties=function(e){return Object.keys(e).length?{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}:{}};var q=G&&G.__createBinding||(Object.create?function(e,p,a,t){void 0===t&&(t=a),Object.defineProperty(e,t,{enumerable:!0,get:function(){return p[a]}})}:function(e,p,a,t){void 0===t&&(t=a),e[t]=p[a]}),M=G&&G.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:!0,value:p})}:function(e,p){e.default=p}),H=G&&G.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(null!=e)for(var a in e)"default"!==a&&Object.hasOwnProperty.call(e,a)&&q(p,e,a);return M(p,e),p};Object.defineProperty(j,"__esModule",{value:!0}),j.issue=j.issueCommand=void 0;const W=H(E.default),z=B;function X(e,p,a){const t=new K(e,p,a);process.stdout.write(t.toString()+W.EOL)}j.issueCommand=X,j.issue=function(e,p=""){X(e,{},p)};class K{constructor(e,p,a){e||(e="missing.command"),this.command=e,this.properties=p,this.message=a}toString(){let e="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let a=!0;for(const t in this.properties)if(this.properties.hasOwnProperty(t)){const r=this.properties[t];r&&(a?a=!1:e+=",",e+=`${t}=${p=r,z.toCommandValue(p).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}var p;return e+=`::${function(e){return z.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}(this.message)}`,e}}var J,Y={},Z=new Uint8Array(16);function Q(){if(!J&&!(J="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return J(Z)}var ee=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function pe(e){return"string"==typeof e&&ee.test(e)}for(var ae,te,re=[],de=0;de<256;++de)re.push((de+256).toString(16).substr(1));function ie(e){var p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=(re[e[p+0]]+re[e[p+1]]+re[e[p+2]]+re[e[p+3]]+"-"+re[e[p+4]]+re[e[p+5]]+"-"+re[e[p+6]]+re[e[p+7]]+"-"+re[e[p+8]]+re[e[p+9]]+"-"+re[e[p+10]]+re[e[p+11]]+re[e[p+12]]+re[e[p+13]]+re[e[p+14]]+re[e[p+15]]).toLowerCase();if(!pe(a))throw TypeError("Stringified UUID is invalid");return a}var se=0,oe=0;function ne(e){if(!pe(e))throw TypeError("Invalid UUID");var p,a=new Uint8Array(16);return a[0]=(p=parseInt(e.slice(0,8),16))>>>24,a[1]=p>>>16&255,a[2]=p>>>8&255,a[3]=255&p,a[4]=(p=parseInt(e.slice(9,13),16))>>>8,a[5]=255&p,a[6]=(p=parseInt(e.slice(14,18),16))>>>8,a[7]=255&p,a[8]=(p=parseInt(e.slice(19,23),16))>>>8,a[9]=255&p,a[10]=(p=parseInt(e.slice(24,36),16))/1099511627776&255,a[11]=p/4294967296&255,a[12]=p>>>24&255,a[13]=p>>>16&255,a[14]=p>>>8&255,a[15]=255&p,a}function le(e,p,a){function t(e,t,r,d){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var p=[],a=0;a>>9<<4)+1}function ue(e,p){var a=(65535&e)+(65535&p);return(e>>16)+(p>>16)+(a>>16)<<16|65535&a}function ce(e,p,a,t,r,d){return ue((i=ue(ue(p,e),ue(t,d)))<<(s=r)|i>>>32-s,a);var i,s}function he(e,p,a,t,r,d,i){return ce(p&a|~p&t,e,p,r,d,i)}function ve(e,p,a,t,r,d,i){return ce(p&t|a&~t,e,p,r,d,i)}function fe(e,p,a,t,r,d,i){return ce(p^a^t,e,p,r,d,i)}function ge(e,p,a,t,r,d,i){return ce(a^(p|~t),e,p,r,d,i)}var we=le("v3",48,(function(e){if("string"==typeof e){var p=unescape(encodeURIComponent(e));e=new Uint8Array(p.length);for(var a=0;a>5]>>>r%32&255,i=parseInt(t.charAt(d>>>4&15)+t.charAt(15&d),16);p.push(i)}return p}(function(e,p){e[p>>5]|=128<>5]|=(255&e[t/8])<>>32-p}var be=le("v5",80,(function(e){var p=[1518500249,1859775393,2400959708,3395469782],a=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=[];for(var r=0;r>>0;E=w,w=g,g=_e(f,30)>>>0,f=v,v=b}a[0]=a[0]+v>>>0,a[1]=a[1]+f>>>0,a[2]=a[2]+g>>>0,a[3]=a[3]+w>>>0,a[4]=a[4]+E>>>0}return[a[0]>>24&255,a[0]>>16&255,a[0]>>8&255,255&a[0],a[1]>>24&255,a[1]>>16&255,a[1]>>8&255,255&a[1],a[2]>>24&255,a[2]>>16&255,a[2]>>8&255,255&a[2],a[3]>>24&255,a[3]>>16&255,a[3]>>8&255,255&a[3],a[4]>>24&255,a[4]>>16&255,a[4]>>8&255,255&a[4]]})),ye=be;var Se=Object.freeze({__proto__:null,v1:function(e,p,a){var t=p&&a||0,r=p||new Array(16),d=(e=e||{}).node||ae,i=void 0!==e.clockseq?e.clockseq:te;if(null==d||null==i){var s=e.random||(e.rng||Q)();null==d&&(d=ae=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==i&&(i=te=16383&(s[6]<<8|s[7]))}var o=void 0!==e.msecs?e.msecs:Date.now(),n=void 0!==e.nsecs?e.nsecs:oe+1,l=o-se+(n-oe)/1e4;if(l<0&&void 0===e.clockseq&&(i=i+1&16383),(l<0||o>se)&&void 0===e.nsecs&&(n=0),n>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");se=o,oe=n,te=i;var m=(1e4*(268435455&(o+=122192928e5))+n)%4294967296;r[t++]=m>>>24&255,r[t++]=m>>>16&255,r[t++]=m>>>8&255,r[t++]=255&m;var u=o/4294967296*1e4&268435455;r[t++]=u>>>8&255,r[t++]=255&u,r[t++]=u>>>24&15|16,r[t++]=u>>>16&255,r[t++]=i>>>8|128,r[t++]=255&i;for(var c=0;c<6;++c)r[t+c]=d[c];return p||ie(r)},v3:Ee,v4:function(e,p,a){var t=(e=e||{}).random||(e.rng||Q)();if(t[6]=15&t[6]|64,t[8]=63&t[8]|128,p){a=a||0;for(var r=0;r<16;++r)p[a+r]=t[r];return p}return ie(t)},v5:ye,NIL:"00000000-0000-0000-0000-000000000000",version:function(e){if(!pe(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)},validate:pe,stringify:ie,parse:ne}),Oe=x(Se),Ae=G&&G.__createBinding||(Object.create?function(e,p,a,t){void 0===t&&(t=a),Object.defineProperty(e,t,{enumerable:!0,get:function(){return p[a]}})}:function(e,p,a,t){void 0===t&&(t=a),e[t]=p[a]}),Re=G&&G.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:!0,value:p})}:function(e,p){e.default=p}),Ne=G&&G.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(null!=e)for(var a in e)"default"!==a&&Object.hasOwnProperty.call(e,a)&&Ae(p,e,a);return Re(p,e),p};Object.defineProperty(Y,"__esModule",{value:!0}),Y.prepareKeyValueMessage=Y.issueFileCommand=void 0;const De=Ne(T.default),Pe=Ne(E.default),ke=Oe,Ce=B;Y.issueFileCommand=function(e,p){const a=process.env[`GITHUB_${e}`];if(!a)throw new Error(`Unable to find environment variable for file command ${e}`);if(!De.existsSync(a))throw new Error(`Missing file at path: ${a}`);De.appendFileSync(a,`${Ce.toCommandValue(p)}${Pe.EOL}`,{encoding:"utf8"})},Y.prepareKeyValueMessage=function(e,p){const a=`ghadelimiter_${ke.v4()}`,t=Ce.toCommandValue(p);if(e.includes(a))throw new Error(`Unexpected input: name should not contain the delimiter "${a}"`);if(t.includes(a))throw new Error(`Unexpected input: value should not contain the delimiter "${a}"`);return`${e}<<${a}${Pe.EOL}${t}${Pe.EOL}${a}`};var Ve={},Le={},Ie={};function Fe(e){if(!e.hostname)return!1;if(function(e){const p=e.toLowerCase();return"localhost"===p||p.startsWith("127.")||p.startsWith("[::1]")||p.startsWith("[0:0:0:0:0:0:0:1]")}(e.hostname))return!0;const p=process.env.no_proxy||process.env.NO_PROXY||"";if(!p)return!1;let a;e.port?a=Number(e.port):"http:"===e.protocol?a=80:"https:"===e.protocol&&(a=443);const t=[e.hostname.toUpperCase()];"number"==typeof a&&t.push(`${t[0]}:${a}`);for(const e of p.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e)))if("*"===e||t.some((p=>p===e||p.endsWith(`.${e}`)||e.startsWith(".")&&p.endsWith(`${e}`))))return!0;return!1}Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.checkBypass=Ie.getProxyUrl=void 0,Ie.getProxyUrl=function(e){const p="https:"===e.protocol;if(Fe(e))return;const a=p?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;return a?new URL(a):void 0},Ie.checkBypass=Fe;var Ge,Ue={},xe=O.default,$e=y.default,je=S.default,Be=A.default,qe=N.default;function Me(e){var p=this;p.options=e||{},p.proxyOptions=p.options.proxy||{},p.maxSockets=p.options.maxSockets||$e.Agent.defaultMaxSockets,p.requests=[],p.sockets=[],p.on("free",(function(e,a,t,r){for(var d=We(a,t,r),i=0,s=p.requests.length;i=this.maxSockets?r.requests.push(d):r.createSocket(d,(function(p){function a(){r.emit("free",p,d)}function t(e){r.removeSocket(p),p.removeListener("free",a),p.removeListener("close",t),p.removeListener("agentRemove",t)}p.on("free",a),p.on("close",t),p.on("agentRemove",t),e.onSocket(p)}))},Me.prototype.createSocket=function(e,p){var a=this,t={};a.sockets.push(t);var r=ze({},a.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(r.localAddress=e.localAddress),r.proxyAuth&&(r.headers=r.headers||{},r.headers["Proxy-Authorization"]="Basic "+new Buffer(r.proxyAuth).toString("base64")),Ge("making CONNECT request");var d=a.request(r);function i(r,i,s){var o;return d.removeAllListeners(),i.removeAllListeners(),200!==r.statusCode?(Ge("tunneling socket could not be established, statusCode=%d",r.statusCode),i.destroy(),(o=new Error("tunneling socket could not be established, statusCode="+r.statusCode)).code="ECONNRESET",e.request.emit("error",o),void a.removeSocket(t)):s.length>0?(Ge("got illegal response body from proxy"),i.destroy(),(o=new Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",o),void a.removeSocket(t)):(Ge("tunneling connection has established"),a.sockets[a.sockets.indexOf(t)]=i,p(i))}d.useChunkedEncodingByDefault=!1,d.once("response",(function(e){e.upgrade=!0})),d.once("upgrade",(function(e,p,a){process.nextTick((function(){i(e,p,a)}))})),d.once("connect",i),d.once("error",(function(p){d.removeAllListeners(),Ge("tunneling socket could not be established, cause=%s\n",p.message,p.stack);var r=new Error("tunneling socket could not be established, cause="+p.message);r.code="ECONNRESET",e.request.emit("error",r),a.removeSocket(t)})),d.end()},Me.prototype.removeSocket=function(e){var p=this.sockets.indexOf(e);if(-1!==p){this.sockets.splice(p,1);var a=this.requests.shift();a&&this.createSocket(a,(function(e){a.request.onSocket(e)}))}},Ge=process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments);"string"==typeof e[0]?e[0]="TUNNEL: "+e[0]:e.unshift("TUNNEL:"),console.error.apply(console,e)}:function(){},Ue.debug=Ge;var Xe=Ue;!function(e){var p=G&&G.__createBinding||(Object.create?function(e,p,a,t){void 0===t&&(t=a),Object.defineProperty(e,t,{enumerable:!0,get:function(){return p[a]}})}:function(e,p,a,t){void 0===t&&(t=a),e[t]=p[a]}),a=G&&G.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:!0,value:p})}:function(e,p){e.default=p}),t=G&&G.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&p(t,e,r);return a(t,e),t},r=G&&G.__awaiter||function(e,p,a,t){return new(a||(a=Promise))((function(r,d){function i(e){try{o(t.next(e))}catch(e){d(e)}}function s(e){try{o(t.throw(e))}catch(e){d(e)}}function o(e){var p;e.done?r(e.value):(p=e.value,p instanceof a?p:new a((function(e){e(p)}))).then(i,s)}o((t=t.apply(e,p||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.HttpClient=e.isHttps=e.HttpClientResponse=e.HttpClientError=e.getProxyUrl=e.MediaTypes=e.Headers=e.HttpCodes=void 0;const d=t(y.default),i=t(S.default),s=t(Ie),o=t(Xe);var n,l,m;!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"}(n=e.HttpCodes||(e.HttpCodes={})),function(e){e.Accept="accept",e.ContentType="content-type"}(l=e.Headers||(e.Headers={})),function(e){e.ApplicationJson="application/json"}(m=e.MediaTypes||(e.MediaTypes={})),e.getProxyUrl=function(e){const p=s.getProxyUrl(new URL(e));return p?p.href:""};const u=[n.MovedPermanently,n.ResourceMoved,n.SeeOther,n.TemporaryRedirect,n.PermanentRedirect],c=[n.BadGateway,n.ServiceUnavailable,n.GatewayTimeout],h=["OPTIONS","GET","DELETE","HEAD"];class v extends Error{constructor(e,p){super(e),this.name="HttpClientError",this.statusCode=p,Object.setPrototypeOf(this,v.prototype)}}e.HttpClientError=v;class f{constructor(e){this.message=e}readBody(){return r(this,void 0,void 0,(function*(){return new Promise((e=>r(this,void 0,void 0,(function*(){let p=Buffer.alloc(0);this.message.on("data",(e=>{p=Buffer.concat([p,e])})),this.message.on("end",(()=>{e(p.toString())}))}))))}))}}e.HttpClientResponse=f,e.isHttps=function(e){return"https:"===new URL(e).protocol};e.HttpClient=class{constructor(e,p,a){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=e,this.handlers=p||[],this.requestOptions=a,a&&(null!=a.ignoreSslError&&(this._ignoreSslError=a.ignoreSslError),this._socketTimeout=a.socketTimeout,null!=a.allowRedirects&&(this._allowRedirects=a.allowRedirects),null!=a.allowRedirectDowngrade&&(this._allowRedirectDowngrade=a.allowRedirectDowngrade),null!=a.maxRedirects&&(this._maxRedirects=Math.max(a.maxRedirects,0)),null!=a.keepAlive&&(this._keepAlive=a.keepAlive),null!=a.allowRetries&&(this._allowRetries=a.allowRetries),null!=a.maxRetries&&(this._maxRetries=a.maxRetries))}options(e,p){return r(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,p||{})}))}get(e,p){return r(this,void 0,void 0,(function*(){return this.request("GET",e,null,p||{})}))}del(e,p){return r(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,p||{})}))}post(e,p,a){return r(this,void 0,void 0,(function*(){return this.request("POST",e,p,a||{})}))}patch(e,p,a){return r(this,void 0,void 0,(function*(){return this.request("PATCH",e,p,a||{})}))}put(e,p,a){return r(this,void 0,void 0,(function*(){return this.request("PUT",e,p,a||{})}))}head(e,p){return r(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,p||{})}))}sendStream(e,p,a,t){return r(this,void 0,void 0,(function*(){return this.request(e,p,a,t)}))}getJson(e,p={}){return r(this,void 0,void 0,(function*(){p[l.Accept]=this._getExistingOrDefaultHeader(p,l.Accept,m.ApplicationJson);const a=yield this.get(e,p);return this._processResponse(a,this.requestOptions)}))}postJson(e,p,a={}){return r(this,void 0,void 0,(function*(){const t=JSON.stringify(p,null,2);a[l.Accept]=this._getExistingOrDefaultHeader(a,l.Accept,m.ApplicationJson),a[l.ContentType]=this._getExistingOrDefaultHeader(a,l.ContentType,m.ApplicationJson);const r=yield this.post(e,t,a);return this._processResponse(r,this.requestOptions)}))}putJson(e,p,a={}){return r(this,void 0,void 0,(function*(){const t=JSON.stringify(p,null,2);a[l.Accept]=this._getExistingOrDefaultHeader(a,l.Accept,m.ApplicationJson),a[l.ContentType]=this._getExistingOrDefaultHeader(a,l.ContentType,m.ApplicationJson);const r=yield this.put(e,t,a);return this._processResponse(r,this.requestOptions)}))}patchJson(e,p,a={}){return r(this,void 0,void 0,(function*(){const t=JSON.stringify(p,null,2);a[l.Accept]=this._getExistingOrDefaultHeader(a,l.Accept,m.ApplicationJson),a[l.ContentType]=this._getExistingOrDefaultHeader(a,l.ContentType,m.ApplicationJson);const r=yield this.patch(e,t,a);return this._processResponse(r,this.requestOptions)}))}request(e,p,a,t){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");const r=new URL(p);let d=this._prepareRequest(e,r,t);const i=this._allowRetries&&h.includes(e)?this._maxRetries+1:1;let s,o=0;do{if(s=yield this.requestRaw(d,a),s&&s.message&&s.message.statusCode===n.Unauthorized){let e;for(const p of this.handlers)if(p.canHandleAuthentication(s)){e=p;break}return e?e.handleAuthentication(this,d,a):s}let p=this._maxRedirects;for(;s.message.statusCode&&u.includes(s.message.statusCode)&&this._allowRedirects&&p>0;){const i=s.message.headers.location;if(!i)break;const o=new URL(i);if("https:"===r.protocol&&r.protocol!==o.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");if(yield s.readBody(),o.hostname!==r.hostname)for(const e in t)"authorization"===e.toLowerCase()&&delete t[e];d=this._prepareRequest(e,o,t),s=yield this.requestRaw(d,a),p--}if(!s.message.statusCode||!c.includes(s.message.statusCode))return s;o+=1,o{this.requestRawWithCallback(e,p,(function(e,p){e?t(e):p?a(p):t(new Error("Unknown error"))}))}))}))}requestRawWithCallback(e,p,a){"string"==typeof p&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(p,"utf8"));let t=!1;function r(e,p){t||(t=!0,a(e,p))}const d=e.httpModule.request(e.options,(e=>{r(void 0,new f(e))}));let i;d.on("socket",(e=>{i=e})),d.setTimeout(this._socketTimeout||18e4,(()=>{i&&i.end(),r(new Error(`Request timeout: ${e.options.path}`))})),d.on("error",(function(e){r(e)})),p&&"string"==typeof p&&d.write(p,"utf8"),p&&"string"!=typeof p?(p.on("close",(function(){d.end()})),p.pipe(d)):d.end()}getAgent(e){const p=new URL(e);return this._getAgent(p)}_prepareRequest(e,p,a){const t={};t.parsedUrl=p;const r="https:"===t.parsedUrl.protocol;t.httpModule=r?i:d;const s=r?443:80;if(t.options={},t.options.host=t.parsedUrl.hostname,t.options.port=t.parsedUrl.port?parseInt(t.parsedUrl.port):s,t.options.path=(t.parsedUrl.pathname||"")+(t.parsedUrl.search||""),t.options.method=e,t.options.headers=this._mergeHeaders(a),null!=this.userAgent&&(t.options.headers["user-agent"]=this.userAgent),t.options.agent=this._getAgent(t.parsedUrl),this.handlers)for(const e of this.handlers)e.prepareRequest(t.options);return t}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},g(this.requestOptions.headers),g(e||{})):g(e||{})}_getExistingOrDefaultHeader(e,p,a){let t;return this.requestOptions&&this.requestOptions.headers&&(t=g(this.requestOptions.headers)[p]),e[p]||t||a}_getAgent(e){let p;const a=s.getProxyUrl(e),t=a&&a.hostname;if(this._keepAlive&&t&&(p=this._proxyAgent),this._keepAlive&&!t&&(p=this._agent),p)return p;const r="https:"===e.protocol;let n=100;if(this.requestOptions&&(n=this.requestOptions.maxSockets||d.globalAgent.maxSockets),a&&a.hostname){const e={maxSockets:n,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(a.username||a.password)&&{proxyAuth:`${a.username}:${a.password}`}),{host:a.hostname,port:a.port})};let t;const d="https:"===a.protocol;t=r?d?o.httpsOverHttps:o.httpsOverHttp:d?o.httpOverHttps:o.httpOverHttp,p=t(e),this._proxyAgent=p}if(this._keepAlive&&!p){const e={keepAlive:this._keepAlive,maxSockets:n};p=r?new i.Agent(e):new d.Agent(e),this._agent=p}return p||(p=r?i.globalAgent:d.globalAgent),r&&this._ignoreSslError&&(p.options=Object.assign(p.options||{},{rejectUnauthorized:!1})),p}_performExponentialBackoff(e){return r(this,void 0,void 0,(function*(){e=Math.min(10,e);const p=5*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),p)))}))}_processResponse(e,p){return r(this,void 0,void 0,(function*(){return new Promise(((a,t)=>r(this,void 0,void 0,(function*(){const r=e.message.statusCode||0,d={statusCode:r,result:null,headers:{}};let i,s;r===n.NotFound&&a(d);try{s=yield e.readBody(),s&&s.length>0&&(i=p&&p.deserializeDates?JSON.parse(s,(function(e,p){if("string"==typeof p){const e=new Date(p);if(!isNaN(e.valueOf()))return e}return p})):JSON.parse(s),d.result=i),d.headers=e.message.headers}catch(e){}if(r>299){let e;e=i&&i.message?i.message:s&&s.length>0?s:`Failed request: (${r})`;const p=new v(e,r);p.result=d.result,t(p)}else a(d)}))))}))}};const g=e=>Object.keys(e).reduce(((p,a)=>(p[a.toLowerCase()]=e[a],p)),{})}(Le);var Ke,Je={},Ye=G&&G.__awaiter||function(e,p,a,t){return new(a||(a=Promise))((function(r,d){function i(e){try{o(t.next(e))}catch(e){d(e)}}function s(e){try{o(t.throw(e))}catch(e){d(e)}}function o(e){var p;e.done?r(e.value):(p=e.value,p instanceof a?p:new a((function(e){e(p)}))).then(i,s)}o((t=t.apply(e,p||[])).next())}))};Object.defineProperty(Je,"__esModule",{value:!0}),Je.PersonalAccessTokenCredentialHandler=Je.BearerCredentialHandler=Je.BasicCredentialHandler=void 0;Je.BasicCredentialHandler=class{constructor(e,p){this.username=e,this.password=p}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return!1}handleAuthentication(){return Ye(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}};Je.BearerCredentialHandler=class{constructor(e){this.token=e}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization=`Bearer ${this.token}`}canHandleAuthentication(){return!1}handleAuthentication(){return Ye(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}};function Ze(){if(Ke)return Ve;Ke=1;var e=G&&G.__awaiter||function(e,p,a,t){return new(a||(a=Promise))((function(r,d){function i(e){try{o(t.next(e))}catch(e){d(e)}}function s(e){try{o(t.throw(e))}catch(e){d(e)}}function o(e){var p;e.done?r(e.value):(p=e.value,p instanceof a?p:new a((function(e){e(p)}))).then(i,s)}o((t=t.apply(e,p||[])).next())}))};Object.defineProperty(Ve,"__esModule",{value:!0}),Ve.OidcClient=void 0;const p=Le,a=Je,t=dp();class r{static createHttpClient(e=!0,t=10){const d={allowRetries:e,maxRetries:t};return new p.HttpClient("actions/oidc-client",[new a.BearerCredentialHandler(r.getRequestToken())],d)}static getRequestToken(){const e=process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;if(!e)throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable");return e}static getIDTokenUrl(){const e=process.env.ACTIONS_ID_TOKEN_REQUEST_URL;if(!e)throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable");return e}static getCall(p){var a;return e(this,void 0,void 0,(function*(){const e=r.createHttpClient(),t=yield e.getJson(p).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)})),d=null===(a=t.result)||void 0===a?void 0:a.value;if(!d)throw new Error("Response json body do not have ID Token field");return d}))}static getIDToken(p){return e(this,void 0,void 0,(function*(){try{let e=r.getIDTokenUrl();if(p){e=`${e}&audience=${encodeURIComponent(p)}`}t.debug(`ID token url is ${e}`);const a=yield r.getCall(e);return t.setSecret(a),a}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}return Ve.OidcClient=r,Ve}Je.PersonalAccessTokenCredentialHandler=class{constructor(e){this.token=e}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return!1}handleAuthentication(){return Ye(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}};var Qe,ep={};function pp(){return Qe||(Qe=1,function(e){var p=G&&G.__awaiter||function(e,p,a,t){return new(a||(a=Promise))((function(r,d){function i(e){try{o(t.next(e))}catch(e){d(e)}}function s(e){try{o(t.throw(e))}catch(e){d(e)}}function o(e){var p;e.done?r(e.value):(p=e.value,p instanceof a?p:new a((function(e){e(p)}))).then(i,s)}o((t=t.apply(e,p||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.summary=e.markdownSummary=e.SUMMARY_DOCS_URL=e.SUMMARY_ENV_VAR=void 0;const a=E.default,t=T.default,{access:r,appendFile:d,writeFile:i}=t.promises;e.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY",e.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";const s=new class{constructor(){this._buffer=""}filePath(){return p(this,void 0,void 0,(function*(){if(this._filePath)return this._filePath;const p=process.env[e.SUMMARY_ENV_VAR];if(!p)throw new Error(`Unable to find environment variable for $${e.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield r(p,t.constants.R_OK|t.constants.W_OK)}catch(e){throw new Error(`Unable to access summary file: '${p}'. Check if the file has correct read/write permissions.`)}return this._filePath=p,this._filePath}))}wrap(e,p,a={}){const t=Object.entries(a).map((([e,p])=>` ${e}="${p}"`)).join("");return p?`<${e}${t}>${p}`:`<${e}${t}>`}write(e){return p(this,void 0,void 0,(function*(){const p=!!(null==e?void 0:e.overwrite),a=yield this.filePath(),t=p?i:d;return yield t(a,this._buffer,{encoding:"utf8"}),this.emptyBuffer()}))}clear(){return p(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:!0})}))}stringify(){return this._buffer}isEmptyBuffer(){return 0===this._buffer.length}emptyBuffer(){return this._buffer="",this}addRaw(e,p=!1){return this._buffer+=e,p?this.addEOL():this}addEOL(){return this.addRaw(a.EOL)}addCodeBlock(e,p){const a=Object.assign({},p&&{lang:p}),t=this.wrap("pre",this.wrap("code",e),a);return this.addRaw(t).addEOL()}addList(e,p=!1){const a=p?"ol":"ul",t=e.map((e=>this.wrap("li",e))).join(""),r=this.wrap(a,t);return this.addRaw(r).addEOL()}addTable(e){const p=e.map((e=>{const p=e.map((e=>{if("string"==typeof e)return this.wrap("td",e);const{header:p,data:a,colspan:t,rowspan:r}=e,d=p?"th":"td",i=Object.assign(Object.assign({},t&&{colspan:t}),r&&{rowspan:r});return this.wrap(d,a,i)})).join("");return this.wrap("tr",p)})).join(""),a=this.wrap("table",p);return this.addRaw(a).addEOL()}addDetails(e,p){const a=this.wrap("details",this.wrap("summary",e)+p);return this.addRaw(a).addEOL()}addImage(e,p,a){const{width:t,height:r}=a||{},d=Object.assign(Object.assign({},t&&{width:t}),r&&{height:r}),i=this.wrap("img",null,Object.assign({src:e,alt:p},d));return this.addRaw(i).addEOL()}addHeading(e,p){const a=`h${p}`,t=["h1","h2","h3","h4","h5","h6"].includes(a)?a:"h1",r=this.wrap(t,e);return this.addRaw(r).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,p){const a=Object.assign({},p&&{cite:p}),t=this.wrap("blockquote",e,a);return this.addRaw(t).addEOL()}addLink(e,p){const a=this.wrap("a",e,{href:p});return this.addRaw(a).addEOL()}};e.markdownSummary=s,e.summary=s}(ep)),ep}var ap,tp,rp={};function dp(){return tp||(tp=1,function(e){var p=G&&G.__createBinding||(Object.create?function(e,p,a,t){void 0===t&&(t=a),Object.defineProperty(e,t,{enumerable:!0,get:function(){return p[a]}})}:function(e,p,a,t){void 0===t&&(t=a),e[t]=p[a]}),a=G&&G.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:!0,value:p})}:function(e,p){e.default=p}),t=G&&G.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&p(t,e,r);return a(t,e),t},r=G&&G.__awaiter||function(e,p,a,t){return new(a||(a=Promise))((function(r,d){function i(e){try{o(t.next(e))}catch(e){d(e)}}function s(e){try{o(t.throw(e))}catch(e){d(e)}}function o(e){var p;e.done?r(e.value):(p=e.value,p instanceof a?p:new a((function(e){e(p)}))).then(i,s)}o((t=t.apply(e,p||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.getIDToken=e.getState=e.saveState=e.group=e.endGroup=e.startGroup=e.info=e.notice=e.warning=e.error=e.debug=e.isDebug=e.setFailed=e.setCommandEcho=e.setOutput=e.getBooleanInput=e.getMultilineInput=e.getInput=e.addPath=e.setSecret=e.exportVariable=e.ExitCode=void 0;const d=j,i=Y,s=B,o=t(E.default),n=t(b.default),l=Ze();var m;function u(e,p){const a=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(p&&p.required&&!a)throw new Error(`Input required and not supplied: ${e}`);return p&&!1===p.trimWhitespace?a:a.trim()}function c(e,p={}){d.issueCommand("error",s.toCommandProperties(p),e instanceof Error?e.toString():e)}function h(e){d.issue("group",e)}function v(){d.issue("endgroup")}!function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"}(m=e.ExitCode||(e.ExitCode={})),e.exportVariable=function(e,p){const a=s.toCommandValue(p);if(process.env[e]=a,process.env.GITHUB_ENV||"")return i.issueFileCommand("ENV",i.prepareKeyValueMessage(e,p));d.issueCommand("set-env",{name:e},a)},e.setSecret=function(e){d.issueCommand("add-mask",{},e)},e.addPath=function(e){process.env.GITHUB_PATH||""?i.issueFileCommand("PATH",e):d.issueCommand("add-path",{},e),process.env.PATH=`${e}${n.delimiter}${process.env.PATH}`},e.getInput=u,e.getMultilineInput=function(e,p){const a=u(e,p).split("\n").filter((e=>""!==e));return p&&!1===p.trimWhitespace?a:a.map((e=>e.trim()))},e.getBooleanInput=function(e,p){const a=u(e,p);if(["true","True","TRUE"].includes(a))return!0;if(["false","False","FALSE"].includes(a))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\nSupport boolean input list: \`true | True | TRUE | false | False | FALSE\``)},e.setOutput=function(e,p){if(process.env.GITHUB_OUTPUT||"")return i.issueFileCommand("OUTPUT",i.prepareKeyValueMessage(e,p));process.stdout.write(o.EOL),d.issueCommand("set-output",{name:e},s.toCommandValue(p))},e.setCommandEcho=function(e){d.issue("echo",e?"on":"off")},e.setFailed=function(e){process.exitCode=m.Failure,c(e)},e.isDebug=function(){return"1"===process.env.RUNNER_DEBUG},e.debug=function(e){d.issueCommand("debug",{},e)},e.error=c,e.warning=function(e,p={}){d.issueCommand("warning",s.toCommandProperties(p),e instanceof Error?e.toString():e)},e.notice=function(e,p={}){d.issueCommand("notice",s.toCommandProperties(p),e instanceof Error?e.toString():e)},e.info=function(e){process.stdout.write(e+o.EOL)},e.startGroup=h,e.endGroup=v,e.group=function(e,p){return r(this,void 0,void 0,(function*(){let a;h(e);try{a=yield p()}finally{v()}return a}))},e.saveState=function(e,p){if(process.env.GITHUB_STATE||"")return i.issueFileCommand("STATE",i.prepareKeyValueMessage(e,p));d.issueCommand("save-state",{name:e},s.toCommandValue(p))},e.getState=function(e){return process.env[`STATE_${e}`]||""},e.getIDToken=function(e){return r(this,void 0,void 0,(function*(){return yield l.OidcClient.getIDToken(e)}))};var f=pp();Object.defineProperty(e,"summary",{enumerable:!0,get:function(){return f.summary}});var g=pp();Object.defineProperty(e,"markdownSummary",{enumerable:!0,get:function(){return g.markdownSummary}});var w=function(){if(ap)return rp;ap=1;var e=G&&G.__createBinding||(Object.create?function(e,p,a,t){void 0===t&&(t=a),Object.defineProperty(e,t,{enumerable:!0,get:function(){return p[a]}})}:function(e,p,a,t){void 0===t&&(t=a),e[t]=p[a]}),p=G&&G.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:!0,value:p})}:function(e,p){e.default=p}),a=G&&G.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(null!=a)for(var r in a)"default"!==r&&Object.hasOwnProperty.call(a,r)&&e(t,a,r);return p(t,a),t};Object.defineProperty(rp,"__esModule",{value:!0}),rp.toPlatformPath=rp.toWin32Path=rp.toPosixPath=void 0;const t=a(b.default);return rp.toPosixPath=function(e){return e.replace(/[\\]/g,"/")},rp.toWin32Path=function(e){return e.replace(/[/]/g,"\\")},rp.toPlatformPath=function(e){return e.replace(/[/\\]/g,t.sep)},rp}();Object.defineProperty(e,"toPosixPath",{enumerable:!0,get:function(){return w.toPosixPath}}),Object.defineProperty(e,"toWin32Path",{enumerable:!0,get:function(){return w.toWin32Path}}),Object.defineProperty(e,"toPlatformPath",{enumerable:!0,get:function(){return w.toPlatformPath}})}($)),$}var ip=dp(),sp={},op={},np={};!function(e){var p,a=G&&G.__createBinding||(Object.create?function(e,p,a,t){void 0===t&&(t=a),Object.defineProperty(e,t,{enumerable:!0,get:function(){return p[a]}})}:function(e,p,a,t){void 0===t&&(t=a),e[t]=p[a]}),t=G&&G.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:!0,value:p})}:function(e,p){e.default=p}),r=G&&G.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&a(p,e,r);return t(p,e),p},d=G&&G.__awaiter||function(e,p,a,t){return new(a||(a=Promise))((function(r,d){function i(e){try{o(t.next(e))}catch(e){d(e)}}function s(e){try{o(t.throw(e))}catch(e){d(e)}}function o(e){var p;e.done?r(e.value):(p=e.value,p instanceof a?p:new a((function(e){e(p)}))).then(i,s)}o((t=t.apply(e,p||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.getCmdPath=e.tryGetExecutablePath=e.isRooted=e.isDirectory=e.exists=e.READONLY=e.UV_FS_O_EXLOCK=e.IS_WINDOWS=e.unlink=e.symlink=e.stat=e.rmdir=e.rm=e.rename=e.readlink=e.readdir=e.open=e.mkdir=e.lstat=e.copyFile=e.chmod=void 0;const i=r(T.default),s=r(b.default);function o(e){return(1&e.mode)>0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}p=i.promises,e.chmod=p.chmod,e.copyFile=p.copyFile,e.lstat=p.lstat,e.mkdir=p.mkdir,e.open=p.open,e.readdir=p.readdir,e.readlink=p.readlink,e.rename=p.rename,e.rm=p.rm,e.rmdir=p.rmdir,e.stat=p.stat,e.symlink=p.symlink,e.unlink=p.unlink,e.IS_WINDOWS="win32"===process.platform,e.UV_FS_O_EXLOCK=268435456,e.READONLY=i.constants.O_RDONLY,e.exists=function(p){return d(this,void 0,void 0,(function*(){try{yield e.stat(p)}catch(e){if("ENOENT"===e.code)return!1;throw e}return!0}))},e.isDirectory=function(p,a=!1){return d(this,void 0,void 0,(function*(){return(a?yield e.stat(p):yield e.lstat(p)).isDirectory()}))},e.isRooted=function(p){if(!(p=function(p){if(p=p||"",e.IS_WINDOWS)return(p=p.replace(/\//g,"\\")).replace(/\\\\+/g,"\\");return p.replace(/\/\/+/g,"/")}(p)))throw new Error('isRooted() parameter "p" cannot be empty');return e.IS_WINDOWS?p.startsWith("\\")||/^[A-Z]:/i.test(p):p.startsWith("/")},e.tryGetExecutablePath=function(p,a){return d(this,void 0,void 0,(function*(){let t;try{t=yield e.stat(p)}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${p}': ${e}`)}if(t&&t.isFile())if(e.IS_WINDOWS){const e=s.extname(p).toUpperCase();if(a.some((p=>p.toUpperCase()===e)))return p}else if(o(t))return p;const r=p;for(const d of a){p=r+d,t=void 0;try{t=yield e.stat(p)}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${p}': ${e}`)}if(t&&t.isFile()){if(e.IS_WINDOWS){try{const a=s.dirname(p),t=s.basename(p).toUpperCase();for(const r of yield e.readdir(a))if(t===r.toUpperCase()){p=s.join(a,r);break}}catch(e){console.log(`Unexpected error attempting to determine the actual case of the file '${p}': ${e}`)}return p}if(o(t))return p}}return""}))},e.getCmdPath=function(){var e;return null!==(e=process.env.COMSPEC)&&void 0!==e?e:"cmd.exe"}}(np);var lp=G&&G.__createBinding||(Object.create?function(e,p,a,t){void 0===t&&(t=a),Object.defineProperty(e,t,{enumerable:!0,get:function(){return p[a]}})}:function(e,p,a,t){void 0===t&&(t=a),e[t]=p[a]}),mp=G&&G.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:!0,value:p})}:function(e,p){e.default=p}),up=G&&G.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(null!=e)for(var a in e)"default"!==a&&Object.hasOwnProperty.call(e,a)&&lp(p,e,a);return mp(p,e),p},cp=G&&G.__awaiter||function(e,p,a,t){return new(a||(a=Promise))((function(r,d){function i(e){try{o(t.next(e))}catch(e){d(e)}}function s(e){try{o(t.throw(e))}catch(e){d(e)}}function o(e){var p;e.done?r(e.value):(p=e.value,p instanceof a?p:new a((function(e){e(p)}))).then(i,s)}o((t=t.apply(e,p||[])).next())}))};Object.defineProperty(op,"__esModule",{value:!0}),op.findInPath=op.which=op.mkdirP=op.rmRF=op.mv=op.cp=void 0;const hp=R.default,vp=up(b.default),fp=up(np);function gp(e){return cp(this,void 0,void 0,(function*(){if(fp.IS_WINDOWS&&/[*"<>|]/.test(e))throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield fp.rm(e,{force:!0,maxRetries:3,recursive:!0,retryDelay:300})}catch(e){throw new Error(`File was unable to be removed ${e}`)}}))}function wp(e){return cp(this,void 0,void 0,(function*(){hp.ok(e,"a path argument must be provided"),yield fp.mkdir(e,{recursive:!0})}))}function Ep(e){return cp(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'tool' is required");const p=[];if(fp.IS_WINDOWS&&process.env.PATHEXT)for(const e of process.env.PATHEXT.split(vp.delimiter))e&&p.push(e);if(fp.isRooted(e)){const a=yield fp.tryGetExecutablePath(e,p);return a?[a]:[]}if(e.includes(vp.sep))return[];const a=[];if(process.env.PATH)for(const e of process.env.PATH.split(vp.delimiter))e&&a.push(e);const t=[];for(const r of a){const a=yield fp.tryGetExecutablePath(vp.join(r,e),p);a&&t.push(a)}return t}))}function Tp(e,p,a,t){return cp(this,void 0,void 0,(function*(){if(a>=255)return;a++,yield wp(p);const r=yield fp.readdir(e);for(const d of r){const r=`${e}/${d}`,i=`${p}/${d}`;(yield fp.lstat(r)).isDirectory()?yield Tp(r,i,a,t):yield _p(r,i,t)}yield fp.chmod(p,(yield fp.stat(e)).mode)}))}function _p(e,p,a){return cp(this,void 0,void 0,(function*(){if((yield fp.lstat(e)).isSymbolicLink()){try{yield fp.lstat(p),yield fp.unlink(p)}catch(e){"EPERM"===e.code&&(yield fp.chmod(p,"0666"),yield fp.unlink(p))}const a=yield fp.readlink(e);yield fp.symlink(a,p,fp.IS_WINDOWS?"junction":null)}else(yield fp.exists(p))&&!a||(yield fp.copyFile(e,p))}))}op.cp=function(e,p,a={}){return cp(this,void 0,void 0,(function*(){const{force:t,recursive:r,copySourceDirectory:d}=function(e){const p=null==e.force||e.force,a=Boolean(e.recursive),t=null==e.copySourceDirectory||Boolean(e.copySourceDirectory);return{force:p,recursive:a,copySourceDirectory:t}}(a),i=(yield fp.exists(p))?yield fp.stat(p):null;if(i&&i.isFile()&&!t)return;const s=i&&i.isDirectory()&&d?vp.join(p,vp.basename(e)):p;if(!(yield fp.exists(e)))throw new Error(`no such file or directory: ${e}`);if((yield fp.stat(e)).isDirectory()){if(!r)throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield Tp(e,s,0,t)}else{if(""===vp.relative(e,s))throw new Error(`'${s}' and '${e}' are the same file`);yield _p(e,s,t)}}))},op.mv=function(e,p,a={}){return cp(this,void 0,void 0,(function*(){if(yield fp.exists(p)){let t=!0;if((yield fp.isDirectory(p))&&(p=vp.join(p,vp.basename(e)),t=yield fp.exists(p)),t){if(null!=a.force&&!a.force)throw new Error("Destination already exists");yield gp(p)}}yield wp(vp.dirname(p)),yield fp.rename(e,p)}))},op.rmRF=gp,op.mkdirP=wp,op.which=function e(p,a){return cp(this,void 0,void 0,(function*(){if(!p)throw new Error("parameter 'tool' is required");if(a){const a=yield e(p,!1);if(!a)throw fp.IS_WINDOWS?new Error(`Unable to locate executable file: ${p}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`):new Error(`Unable to locate executable file: ${p}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);return a}const t=yield Ep(p);return t&&t.length>0?t[0]:""}))},op.findInPath=Ep;var bp={exports:{}},yp={exports:{}};!function(e,p){var a;p=yp.exports=u,a="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},p.SEMVER_SPEC_VERSION="2.0.0";var t=256,r=Number.MAX_SAFE_INTEGER||9007199254740991,d=p.re=[],i=p.src=[],s=p.tokens={},o=0;function n(e){s[e]=o++}n("NUMERICIDENTIFIER"),i[s.NUMERICIDENTIFIER]="0|[1-9]\\d*",n("NUMERICIDENTIFIERLOOSE"),i[s.NUMERICIDENTIFIERLOOSE]="[0-9]+",n("NONNUMERICIDENTIFIER"),i[s.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",n("MAINVERSION"),i[s.MAINVERSION]="("+i[s.NUMERICIDENTIFIER]+")\\.("+i[s.NUMERICIDENTIFIER]+")\\.("+i[s.NUMERICIDENTIFIER]+")",n("MAINVERSIONLOOSE"),i[s.MAINVERSIONLOOSE]="("+i[s.NUMERICIDENTIFIERLOOSE]+")\\.("+i[s.NUMERICIDENTIFIERLOOSE]+")\\.("+i[s.NUMERICIDENTIFIERLOOSE]+")",n("PRERELEASEIDENTIFIER"),i[s.PRERELEASEIDENTIFIER]="(?:"+i[s.NUMERICIDENTIFIER]+"|"+i[s.NONNUMERICIDENTIFIER]+")",n("PRERELEASEIDENTIFIERLOOSE"),i[s.PRERELEASEIDENTIFIERLOOSE]="(?:"+i[s.NUMERICIDENTIFIERLOOSE]+"|"+i[s.NONNUMERICIDENTIFIER]+")",n("PRERELEASE"),i[s.PRERELEASE]="(?:-("+i[s.PRERELEASEIDENTIFIER]+"(?:\\."+i[s.PRERELEASEIDENTIFIER]+")*))",n("PRERELEASELOOSE"),i[s.PRERELEASELOOSE]="(?:-?("+i[s.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+i[s.PRERELEASEIDENTIFIERLOOSE]+")*))",n("BUILDIDENTIFIER"),i[s.BUILDIDENTIFIER]="[0-9A-Za-z-]+",n("BUILD"),i[s.BUILD]="(?:\\+("+i[s.BUILDIDENTIFIER]+"(?:\\."+i[s.BUILDIDENTIFIER]+")*))",n("FULL"),n("FULLPLAIN"),i[s.FULLPLAIN]="v?"+i[s.MAINVERSION]+i[s.PRERELEASE]+"?"+i[s.BUILD]+"?",i[s.FULL]="^"+i[s.FULLPLAIN]+"$",n("LOOSEPLAIN"),i[s.LOOSEPLAIN]="[v=\\s]*"+i[s.MAINVERSIONLOOSE]+i[s.PRERELEASELOOSE]+"?"+i[s.BUILD]+"?",n("LOOSE"),i[s.LOOSE]="^"+i[s.LOOSEPLAIN]+"$",n("GTLT"),i[s.GTLT]="((?:<|>)?=?)",n("XRANGEIDENTIFIERLOOSE"),i[s.XRANGEIDENTIFIERLOOSE]=i[s.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",n("XRANGEIDENTIFIER"),i[s.XRANGEIDENTIFIER]=i[s.NUMERICIDENTIFIER]+"|x|X|\\*",n("XRANGEPLAIN"),i[s.XRANGEPLAIN]="[v=\\s]*("+i[s.XRANGEIDENTIFIER]+")(?:\\.("+i[s.XRANGEIDENTIFIER]+")(?:\\.("+i[s.XRANGEIDENTIFIER]+")(?:"+i[s.PRERELEASE]+")?"+i[s.BUILD]+"?)?)?",n("XRANGEPLAINLOOSE"),i[s.XRANGEPLAINLOOSE]="[v=\\s]*("+i[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+i[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+i[s.XRANGEIDENTIFIERLOOSE]+")(?:"+i[s.PRERELEASELOOSE]+")?"+i[s.BUILD]+"?)?)?",n("XRANGE"),i[s.XRANGE]="^"+i[s.GTLT]+"\\s*"+i[s.XRANGEPLAIN]+"$",n("XRANGELOOSE"),i[s.XRANGELOOSE]="^"+i[s.GTLT]+"\\s*"+i[s.XRANGEPLAINLOOSE]+"$",n("COERCE"),i[s.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",n("COERCERTL"),d[s.COERCERTL]=new RegExp(i[s.COERCE],"g"),n("LONETILDE"),i[s.LONETILDE]="(?:~>?)",n("TILDETRIM"),i[s.TILDETRIM]="(\\s*)"+i[s.LONETILDE]+"\\s+",d[s.TILDETRIM]=new RegExp(i[s.TILDETRIM],"g");n("TILDE"),i[s.TILDE]="^"+i[s.LONETILDE]+i[s.XRANGEPLAIN]+"$",n("TILDELOOSE"),i[s.TILDELOOSE]="^"+i[s.LONETILDE]+i[s.XRANGEPLAINLOOSE]+"$",n("LONECARET"),i[s.LONECARET]="(?:\\^)",n("CARETTRIM"),i[s.CARETTRIM]="(\\s*)"+i[s.LONECARET]+"\\s+",d[s.CARETTRIM]=new RegExp(i[s.CARETTRIM],"g");n("CARET"),i[s.CARET]="^"+i[s.LONECARET]+i[s.XRANGEPLAIN]+"$",n("CARETLOOSE"),i[s.CARETLOOSE]="^"+i[s.LONECARET]+i[s.XRANGEPLAINLOOSE]+"$",n("COMPARATORLOOSE"),i[s.COMPARATORLOOSE]="^"+i[s.GTLT]+"\\s*("+i[s.LOOSEPLAIN]+")$|^$",n("COMPARATOR"),i[s.COMPARATOR]="^"+i[s.GTLT]+"\\s*("+i[s.FULLPLAIN]+")$|^$",n("COMPARATORTRIM"),i[s.COMPARATORTRIM]="(\\s*)"+i[s.GTLT]+"\\s*("+i[s.LOOSEPLAIN]+"|"+i[s.XRANGEPLAIN]+")",d[s.COMPARATORTRIM]=new RegExp(i[s.COMPARATORTRIM],"g");n("HYPHENRANGE"),i[s.HYPHENRANGE]="^\\s*("+i[s.XRANGEPLAIN]+")\\s+-\\s+("+i[s.XRANGEPLAIN]+")\\s*$",n("HYPHENRANGELOOSE"),i[s.HYPHENRANGELOOSE]="^\\s*("+i[s.XRANGEPLAINLOOSE]+")\\s+-\\s+("+i[s.XRANGEPLAINLOOSE]+")\\s*$",n("STAR"),i[s.STAR]="(<|>)?=?\\s*\\*";for(var l=0;lt)return null;if(!(p.loose?d[s.LOOSE]:d[s.FULL]).test(e))return null;try{return new u(e,p)}catch(e){return null}}function u(e,p){if(p&&"object"==typeof p||(p={loose:!!p,includePrerelease:!1}),e instanceof u){if(e.loose===p.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>t)throw new TypeError("version is longer than "+t+" characters");if(!(this instanceof u))return new u(e,p);a("SemVer",e,p),this.options=p,this.loose=!!p.loose;var i=e.trim().match(p.loose?d[s.LOOSE]:d[s.FULL]);if(!i)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var p=+e;if(p>=0&&p=0;)"number"==typeof this.prerelease[a]&&(this.prerelease[a]++,a=-2);-1===a&&this.prerelease.push(0)}p&&(this.prerelease[0]===p?isNaN(this.prerelease[1])&&(this.prerelease=[p,0]):this.prerelease=[p,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},p.inc=function(e,p,a,t){"string"==typeof a&&(t=a,a=void 0);try{return new u(e,a).inc(p,t).version}catch(e){return null}},p.diff=function(e,p){if(w(e,p))return null;var a=m(e),t=m(p),r="";if(a.prerelease.length||t.prerelease.length){r="pre";var d="prerelease"}for(var i in a)if(("major"===i||"minor"===i||"patch"===i)&&a[i]!==t[i])return r+i;return d},p.compareIdentifiers=h;var c=/^[0-9]+$/;function h(e,p){var a=c.test(e),t=c.test(p);return a&&t&&(e=+e,p=+p),e===p?0:a&&!t?-1:t&&!a?1:e0}function g(e,p,a){return v(e,p,a)<0}function w(e,p,a){return 0===v(e,p,a)}function E(e,p,a){return 0!==v(e,p,a)}function T(e,p,a){return v(e,p,a)>=0}function _(e,p,a){return v(e,p,a)<=0}function b(e,p,a,t){switch(p){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof a&&(a=a.version),e===a;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof a&&(a=a.version),e!==a;case"":case"=":case"==":return w(e,a,t);case"!=":return E(e,a,t);case">":return f(e,a,t);case">=":return T(e,a,t);case"<":return g(e,a,t);case"<=":return _(e,a,t);default:throw new TypeError("Invalid operator: "+p)}}function y(e,p){if(p&&"object"==typeof p||(p={loose:!!p,includePrerelease:!1}),e instanceof y){if(e.loose===!!p.loose)return e;e=e.value}if(!(this instanceof y))return new y(e,p);a("comparator",e,p),this.options=p,this.loose=!!p.loose,this.parse(e),this.semver===S?this.value="":this.value=this.operator+this.semver.version,a("comp",this)}p.rcompareIdentifiers=function(e,p){return h(p,e)},p.major=function(e,p){return new u(e,p).major},p.minor=function(e,p){return new u(e,p).minor},p.patch=function(e,p){return new u(e,p).patch},p.compare=v,p.compareLoose=function(e,p){return v(e,p,!0)},p.compareBuild=function(e,p,a){var t=new u(e,a),r=new u(p,a);return t.compare(r)||t.compareBuild(r)},p.rcompare=function(e,p,a){return v(p,e,a)},p.sort=function(e,a){return e.sort((function(e,t){return p.compareBuild(e,t,a)}))},p.rsort=function(e,a){return e.sort((function(e,t){return p.compareBuild(t,e,a)}))},p.gt=f,p.lt=g,p.eq=w,p.neq=E,p.gte=T,p.lte=_,p.cmp=b,p.Comparator=y;var S={};function O(e,p){if(p&&"object"==typeof p||(p={loose:!!p,includePrerelease:!1}),e instanceof O)return e.loose===!!p.loose&&e.includePrerelease===!!p.includePrerelease?e:new O(e.raw,p);if(e instanceof y)return new O(e.value,p);if(!(this instanceof O))return new O(e,p);if(this.options=p,this.loose=!!p.loose,this.includePrerelease=!!p.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function A(e,p){for(var a=!0,t=e.slice(),r=t.pop();a&&t.length;)a=t.every((function(e){return r.intersects(e,p)})),r=t.pop();return a}function R(e){return!e||"x"===e.toLowerCase()||"*"===e}function N(e,p,a,t,r,d,i,s,o,n,l,m,u){return((p=R(a)?"":R(t)?">="+a+".0.0":R(r)?">="+a+"."+t+".0":">="+p)+" "+(s=R(o)?"":R(n)?"<"+(+o+1)+".0.0":R(l)?"<"+o+"."+(+n+1)+".0":m?"<="+o+"."+n+"."+l+"-"+m:"<="+s)).trim()}function D(e,p,t){for(var r=0;r0){var d=e[r].semver;if(d.major===p.major&&d.minor===p.minor&&d.patch===p.patch)return!0}return!1}return!0}function P(e,p,a){try{p=new O(p,a)}catch(e){return!1}return p.test(e)}function k(e,p,a,t){var r,d,i,s,o;switch(e=new u(e,t),p=new O(p,t),a){case">":r=f,d=_,i=g,s=">",o=">=";break;case"<":r=g,d=T,i=f,s="<",o="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(P(e,p,t))return!1;for(var n=0;n=0.0.0")),m=m||e,c=c||e,r(e.semver,m.semver,t)?m=e:i(e.semver,c.semver,t)&&(c=e)})),m.operator===s||m.operator===o)return!1;if((!c.operator||c.operator===s)&&d(e,c.semver))return!1;if(c.operator===o&&i(e,c.semver))return!1}return!0}y.prototype.parse=function(e){var p=this.options.loose?d[s.COMPARATORLOOSE]:d[s.COMPARATOR],a=e.match(p);if(!a)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==a[1]?a[1]:"","="===this.operator&&(this.operator=""),a[2]?this.semver=new u(a[2],this.options.loose):this.semver=S},y.prototype.toString=function(){return this.value},y.prototype.test=function(e){if(a("Comparator.test",e,this.options.loose),this.semver===S||e===S)return!0;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}return b(e,this.operator,this.semver,this.options)},y.prototype.intersects=function(e,p){if(!(e instanceof y))throw new TypeError("a Comparator is required");var a;if(p&&"object"==typeof p||(p={loose:!!p,includePrerelease:!1}),""===this.operator)return""===this.value||(a=new O(e.value,p),P(this.value,a,p));if(""===e.operator)return""===e.value||(a=new O(this.value,p),P(e.semver,a,p));var t=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),r=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),d=this.semver.version===e.semver.version,i=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=b(this.semver,"<",e.semver,p)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),o=b(this.semver,">",e.semver,p)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return t||r||d&&i||s||o},p.Range=O,O.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},O.prototype.toString=function(){return this.range},O.prototype.parseRange=function(e){var p=this.options.loose;e=e.trim();var t=p?d[s.HYPHENRANGELOOSE]:d[s.HYPHENRANGE];e=e.replace(t,N),a("hyphen replace",e),e=e.replace(d[s.COMPARATORTRIM],"$1$2$3"),a("comparator trim",e,d[s.COMPARATORTRIM]),e=(e=(e=e.replace(d[s.TILDETRIM],"$1~")).replace(d[s.CARETTRIM],"$1^")).split(/\s+/).join(" ");var r=p?d[s.COMPARATORLOOSE]:d[s.COMPARATOR],i=e.split(" ").map((function(e){return function(e,p){return a("comp",e,p),e=function(e,p){return e.trim().split(/\s+/).map((function(e){return function(e,p){a("caret",e,p);var t=p.loose?d[s.CARETLOOSE]:d[s.CARET];return e.replace(t,(function(p,t,r,d,i){var s;return a("caret",e,p,t,r,d,i),R(t)?s="":R(r)?s=">="+t+".0.0 <"+(+t+1)+".0.0":R(d)?s="0"===t?">="+t+"."+r+".0 <"+t+"."+(+r+1)+".0":">="+t+"."+r+".0 <"+(+t+1)+".0.0":i?(a("replaceCaret pr",i),s="0"===t?"0"===r?">="+t+"."+r+"."+d+"-"+i+" <"+t+"."+r+"."+(+d+1):">="+t+"."+r+"."+d+"-"+i+" <"+t+"."+(+r+1)+".0":">="+t+"."+r+"."+d+"-"+i+" <"+(+t+1)+".0.0"):(a("no pr"),s="0"===t?"0"===r?">="+t+"."+r+"."+d+" <"+t+"."+r+"."+(+d+1):">="+t+"."+r+"."+d+" <"+t+"."+(+r+1)+".0":">="+t+"."+r+"."+d+" <"+(+t+1)+".0.0"),a("caret return",s),s}))}(e,p)})).join(" ")}(e,p),a("caret",e),e=function(e,p){return e.trim().split(/\s+/).map((function(e){return function(e,p){var t=p.loose?d[s.TILDELOOSE]:d[s.TILDE];return e.replace(t,(function(p,t,r,d,i){var s;return a("tilde",e,p,t,r,d,i),R(t)?s="":R(r)?s=">="+t+".0.0 <"+(+t+1)+".0.0":R(d)?s=">="+t+"."+r+".0 <"+t+"."+(+r+1)+".0":i?(a("replaceTilde pr",i),s=">="+t+"."+r+"."+d+"-"+i+" <"+t+"."+(+r+1)+".0"):s=">="+t+"."+r+"."+d+" <"+t+"."+(+r+1)+".0",a("tilde return",s),s}))}(e,p)})).join(" ")}(e,p),a("tildes",e),e=function(e,p){return a("replaceXRanges",e,p),e.split(/\s+/).map((function(e){return function(e,p){e=e.trim();var t=p.loose?d[s.XRANGELOOSE]:d[s.XRANGE];return e.replace(t,(function(t,r,d,i,s,o){a("xRange",e,t,r,d,i,s,o);var n=R(d),l=n||R(i),m=l||R(s),u=m;return"="===r&&u&&(r=""),o=p.includePrerelease?"-0":"",n?t=">"===r||"<"===r?"<0.0.0-0":"*":r&&u?(l&&(i=0),s=0,">"===r?(r=">=",l?(d=+d+1,i=0,s=0):(i=+i+1,s=0)):"<="===r&&(r="<",l?d=+d+1:i=+i+1),t=r+d+"."+i+"."+s+o):l?t=">="+d+".0.0"+o+" <"+(+d+1)+".0.0"+o:m&&(t=">="+d+"."+i+".0"+o+" <"+d+"."+(+i+1)+".0"+o),a("xRange return",t),t}))}(e,p)})).join(" ")}(e,p),a("xrange",e),e=function(e,p){return a("replaceStars",e,p),e.trim().replace(d[s.STAR],"")}(e,p),a("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(i=i.filter((function(e){return!!e.match(r)}))),i=i.map((function(e){return new y(e,this.options)}),this)},O.prototype.intersects=function(e,p){if(!(e instanceof O))throw new TypeError("a Range is required");return this.set.some((function(a){return A(a,p)&&e.set.some((function(e){return A(e,p)&&a.every((function(a){return e.every((function(e){return a.intersects(e,p)}))}))}))}))},p.toComparators=function(e,p){return new O(e,p).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},O.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}for(var p=0;p":0===p.prerelease.length?p.patch++:p.prerelease.push(0),p.raw=p.format();case"":case">=":a&&!f(a,p)||(a=p);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(a&&e.test(a))return a;return null},p.validRange=function(e,p){try{return new O(e,p).range||"*"}catch(e){return null}},p.ltr=function(e,p,a){return k(e,p,"<",a)},p.gtr=function(e,p,a){return k(e,p,">",a)},p.outside=k,p.prerelease=function(e,p){var a=m(e,p);return a&&a.prerelease.length?a.prerelease:null},p.intersects=function(e,p,a){return e=new O(e,a),p=new O(p,a),e.intersects(p)},p.coerce=function(e,p){if(e instanceof u)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var a=null;if((p=p||{}).rtl){for(var t;(t=d[s.COERCERTL].exec(e))&&(!a||a.index+a[0].length!==e.length);)a&&t.index+t[0].length===a.index+a[0].length||(a=t),d[s.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;d[s.COERCERTL].lastIndex=-1}else a=e.match(d[s.COERCE]);if(null===a)return null;return m(a[2]+"."+(a[3]||"0")+"."+(a[4]||"0"),p)}}(0,yp.exports);var Sp=yp.exports;!function(e,p){var a=G&&G.__createBinding||(Object.create?function(e,p,a,t){void 0===t&&(t=a),Object.defineProperty(e,t,{enumerable:!0,get:function(){return p[a]}})}:function(e,p,a,t){void 0===t&&(t=a),e[t]=p[a]}),t=G&&G.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:!0,value:p})}:function(e,p){e.default=p}),r=G&&G.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&a(p,e,r);return t(p,e),p},d=G&&G.__awaiter||function(e,p,a,t){return new(a||(a=Promise))((function(r,d){function i(e){try{o(t.next(e))}catch(e){d(e)}}function s(e){try{o(t.throw(e))}catch(e){d(e)}}function o(e){var p;e.done?r(e.value):(p=e.value,p instanceof a?p:new a((function(e){e(p)}))).then(i,s)}o((t=t.apply(e,p||[])).next())}))};Object.defineProperty(p,"__esModule",{value:!0}),p._readLinuxVersionFile=p._getOsVersion=p._findMatch=void 0;const i=r(Sp),s=dp(),o=E.default,n=D.default,l=T.default;p._findMatch=function(p,a,t,r){return d(this,void 0,void 0,(function*(){const d=o.platform();let n,l,m;for(const o of t){const t=o.version;if(s.debug(`check ${t} satisfies ${p}`),i.satisfies(t,p)&&(!a||o.stable===a)&&(m=o.files.find((p=>{s.debug(`${p.arch}===${r} && ${p.platform}===${d}`);let a=p.arch===r&&p.platform===d;if(a&&p.platform_version){const t=e.exports._getOsVersion();a=t===p.platform_version||i.satisfies(t,p.platform_version)}return a})),m)){s.debug(`matched ${o.version}`),l=o;break}}return l&&m&&(n=Object.assign({},l),n.files=[m]),n}))},p._getOsVersion=function(){const p=o.platform();let a="";if("darwin"===p)a=n.execSync("sw_vers -productVersion").toString();else if("linux"===p){const p=e.exports._readLinuxVersionFile();if(p){const e=p.split("\n");for(const p of e){const e=p.split("=");if(2===e.length&&("VERSION_ID"===e[0].trim()||"DISTRIB_RELEASE"===e[0].trim())){a=e[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return a},p._readLinuxVersionFile=function(){const e="/etc/lsb-release",p="/etc/os-release";let a="";return l.existsSync(e)?a=l.readFileSync(e).toString():l.existsSync(p)&&(a=l.readFileSync(p).toString()),a}}(bp,bp.exports);var Op=bp.exports,Ap={},Rp={};function Np(e){if(!e.hostname)return!1;let p,a=process.env.no_proxy||process.env.NO_PROXY||"";if(!a)return!1;e.port?p=Number(e.port):"http:"===e.protocol?p=80:"https:"===e.protocol&&(p=443);let t=[e.hostname.toUpperCase()];"number"==typeof p&&t.push(`${t[0]}:${p}`);for(let e of a.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e)))if(t.some((p=>p===e)))return!0;return!1}Object.defineProperty(Rp,"__esModule",{value:!0}),Rp.getProxyUrl=function(e){let p,a,t="https:"===e.protocol;return Np(e)||(a=t?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY,a&&(p=new URL(a))),p},Rp.checkBypass=Np,function(e){Object.defineProperty(e,"__esModule",{value:!0});const p=y.default,a=S.default,t=Rp;let r;var d,i,s;!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"}(d=e.HttpCodes||(e.HttpCodes={})),function(e){e.Accept="accept",e.ContentType="content-type"}(i=e.Headers||(e.Headers={})),function(e){e.ApplicationJson="application/json"}(s=e.MediaTypes||(e.MediaTypes={})),e.getProxyUrl=function(e){let p=t.getProxyUrl(new URL(e));return p?p.href:""};const o=[d.MovedPermanently,d.ResourceMoved,d.SeeOther,d.TemporaryRedirect,d.PermanentRedirect],n=[d.BadGateway,d.ServiceUnavailable,d.GatewayTimeout],l=["OPTIONS","GET","DELETE","HEAD"];class m extends Error{constructor(e,p){super(e),this.name="HttpClientError",this.statusCode=p,Object.setPrototypeOf(this,m.prototype)}}e.HttpClientError=m;class u{constructor(e){this.message=e}readBody(){return new Promise((async(e,p)=>{let a=Buffer.alloc(0);this.message.on("data",(e=>{a=Buffer.concat([a,e])})),this.message.on("end",(()=>{e(a.toString())}))}))}}e.HttpClientResponse=u,e.isHttps=function(e){return"https:"===new URL(e).protocol};class c{constructor(e,p,a){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=e,this.handlers=p||[],this.requestOptions=a,a&&(null!=a.ignoreSslError&&(this._ignoreSslError=a.ignoreSslError),this._socketTimeout=a.socketTimeout,null!=a.allowRedirects&&(this._allowRedirects=a.allowRedirects),null!=a.allowRedirectDowngrade&&(this._allowRedirectDowngrade=a.allowRedirectDowngrade),null!=a.maxRedirects&&(this._maxRedirects=Math.max(a.maxRedirects,0)),null!=a.keepAlive&&(this._keepAlive=a.keepAlive),null!=a.allowRetries&&(this._allowRetries=a.allowRetries),null!=a.maxRetries&&(this._maxRetries=a.maxRetries))}options(e,p){return this.request("OPTIONS",e,null,p||{})}get(e,p){return this.request("GET",e,null,p||{})}del(e,p){return this.request("DELETE",e,null,p||{})}post(e,p,a){return this.request("POST",e,p,a||{})}patch(e,p,a){return this.request("PATCH",e,p,a||{})}put(e,p,a){return this.request("PUT",e,p,a||{})}head(e,p){return this.request("HEAD",e,null,p||{})}sendStream(e,p,a,t){return this.request(e,p,a,t)}async getJson(e,p={}){p[i.Accept]=this._getExistingOrDefaultHeader(p,i.Accept,s.ApplicationJson);let a=await this.get(e,p);return this._processResponse(a,this.requestOptions)}async postJson(e,p,a={}){let t=JSON.stringify(p,null,2);a[i.Accept]=this._getExistingOrDefaultHeader(a,i.Accept,s.ApplicationJson),a[i.ContentType]=this._getExistingOrDefaultHeader(a,i.ContentType,s.ApplicationJson);let r=await this.post(e,t,a);return this._processResponse(r,this.requestOptions)}async putJson(e,p,a={}){let t=JSON.stringify(p,null,2);a[i.Accept]=this._getExistingOrDefaultHeader(a,i.Accept,s.ApplicationJson),a[i.ContentType]=this._getExistingOrDefaultHeader(a,i.ContentType,s.ApplicationJson);let r=await this.put(e,t,a);return this._processResponse(r,this.requestOptions)}async patchJson(e,p,a={}){let t=JSON.stringify(p,null,2);a[i.Accept]=this._getExistingOrDefaultHeader(a,i.Accept,s.ApplicationJson),a[i.ContentType]=this._getExistingOrDefaultHeader(a,i.ContentType,s.ApplicationJson);let r=await this.patch(e,t,a);return this._processResponse(r,this.requestOptions)}async request(e,p,a,t){if(this._disposed)throw new Error("Client has already been disposed.");let r,i=new URL(p),s=this._prepareRequest(e,i,t),m=this._allowRetries&&-1!=l.indexOf(e)?this._maxRetries+1:1,u=0;for(;u0;){const d=r.message.headers.location;if(!d)break;let o=new URL(d);if("https:"==i.protocol&&i.protocol!=o.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");if(await r.readBody(),o.hostname!==i.hostname)for(let e in t)"authorization"===e.toLowerCase()&&delete t[e];s=this._prepareRequest(e,o,t),r=await this.requestRaw(s,a),p--}if(-1==n.indexOf(r.message.statusCode))return r;u+=1,u{this.requestRawWithCallback(e,p,(function(e,p){e&&t(e),a(p)}))}))}requestRawWithCallback(e,p,a){let t;"string"==typeof p&&(e.options.headers["Content-Length"]=Buffer.byteLength(p,"utf8"));let r=!1,d=(e,p)=>{r||(r=!0,a(e,p))},i=e.httpModule.request(e.options,(e=>{let p=new u(e);d(null,p)}));i.on("socket",(e=>{t=e})),i.setTimeout(this._socketTimeout||18e4,(()=>{t&&t.end(),d(new Error("Request timeout: "+e.options.path),null)})),i.on("error",(function(e){d(e,null)})),p&&"string"==typeof p&&i.write(p,"utf8"),p&&"string"!=typeof p?(p.on("close",(function(){i.end()})),p.pipe(i)):i.end()}getAgent(e){let p=new URL(e);return this._getAgent(p)}_prepareRequest(e,t,r){const d={};d.parsedUrl=t;const i="https:"===d.parsedUrl.protocol;d.httpModule=i?a:p;const s=i?443:80;return d.options={},d.options.host=d.parsedUrl.hostname,d.options.port=d.parsedUrl.port?parseInt(d.parsedUrl.port):s,d.options.path=(d.parsedUrl.pathname||"")+(d.parsedUrl.search||""),d.options.method=e,d.options.headers=this._mergeHeaders(r),null!=this.userAgent&&(d.options.headers["user-agent"]=this.userAgent),d.options.agent=this._getAgent(d.parsedUrl),this.handlers&&this.handlers.forEach((e=>{e.prepareRequest(d.options)})),d}_mergeHeaders(e){const p=e=>Object.keys(e).reduce(((p,a)=>(p[a.toLowerCase()]=e[a],p)),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},p(this.requestOptions.headers),p(e)):p(e||{})}_getExistingOrDefaultHeader(e,p,a){let t;var r;return this.requestOptions&&this.requestOptions.headers&&(t=(r=this.requestOptions.headers,Object.keys(r).reduce(((e,p)=>(e[p.toLowerCase()]=r[p],e)),{}))[p]),e[p]||t||a}_getAgent(e){let d,i=t.getProxyUrl(e),s=i&&i.hostname;if(this._keepAlive&&s&&(d=this._proxyAgent),this._keepAlive&&!s&&(d=this._agent),d)return d;const o="https:"===e.protocol;let n=100;if(this.requestOptions&&(n=this.requestOptions.maxSockets||p.globalAgent.maxSockets),s){r||(r=Xe);const e={maxSockets:n,keepAlive:this._keepAlive,proxy:{...(i.username||i.password)&&{proxyAuth:`${i.username}:${i.password}`},host:i.hostname,port:i.port}};let p;const a="https:"===i.protocol;p=o?a?r.httpsOverHttps:r.httpsOverHttp:a?r.httpOverHttps:r.httpOverHttp,d=p(e),this._proxyAgent=d}if(this._keepAlive&&!d){const e={keepAlive:this._keepAlive,maxSockets:n};d=o?new a.Agent(e):new p.Agent(e),this._agent=d}return d||(d=o?a.globalAgent:p.globalAgent),o&&this._ignoreSslError&&(d.options=Object.assign(d.options||{},{rejectUnauthorized:!1})),d}_performExponentialBackoff(e){e=Math.min(10,e);const p=5*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),p)))}static dateTimeDeserializer(e,p){if("string"==typeof p){let e=new Date(p);if(!isNaN(e.valueOf()))return e}return p}async _processResponse(e,p){return new Promise((async(a,t)=>{const r=e.message.statusCode,i={statusCode:r,result:null,headers:{}};let s,o;r==d.NotFound&&a(i);try{o=await e.readBody(),o&&o.length>0&&(s=p&&p.deserializeDates?JSON.parse(o,c.dateTimeDeserializer):JSON.parse(o),i.result=s),i.headers=e.message.headers}catch(e){}if(r>299){let e;e=s&&s.message?s.message:o&&o.length>0?o:"Failed request: ("+r+")";let p=new m(e,r);p.result=i.result,t(p)}else a(i)}))}}e.HttpClient=c}(Ap);for(var Dp=k.default,Pp=[],kp=0;kp<256;++kp)Pp[kp]=(kp+256).toString(16).substr(1);var Cp=function(e,p){var a=p||0,t=Pp;return[t[e[a++]],t[e[a++]],t[e[a++]],t[e[a++]],"-",t[e[a++]],t[e[a++]],"-",t[e[a++]],t[e[a++]],"-",t[e[a++]],t[e[a++]],"-",t[e[a++]],t[e[a++]],t[e[a++]],t[e[a++]],t[e[a++]],t[e[a++]]].join("")},Vp=function(){return Dp.randomBytes(16)},Lp=Cp;var Ip=function(e,p,a){var t=p&&a||0;"string"==typeof e&&(p="binary"===e?new Array(16):null,e=null);var r=(e=e||{}).random||(e.rng||Vp)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,p)for(var d=0;d<16;++d)p[t+d]=r[d];return p||Lp(r)},Fp={},Gp={},Up=G&&G.__createBinding||(Object.create?function(e,p,a,t){void 0===t&&(t=a),Object.defineProperty(e,t,{enumerable:!0,get:function(){return p[a]}})}:function(e,p,a,t){void 0===t&&(t=a),e[t]=p[a]}),xp=G&&G.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:!0,value:p})}:function(e,p){e.default=p}),$p=G&&G.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(null!=e)for(var a in e)"default"!==a&&Object.hasOwnProperty.call(e,a)&&Up(p,e,a);return xp(p,e),p},jp=G&&G.__awaiter||function(e,p,a,t){return new(a||(a=Promise))((function(r,d){function i(e){try{o(t.next(e))}catch(e){d(e)}}function s(e){try{o(t.throw(e))}catch(e){d(e)}}function o(e){var p;e.done?r(e.value):(p=e.value,p instanceof a?p:new a((function(e){e(p)}))).then(i,s)}o((t=t.apply(e,p||[])).next())}))};Object.defineProperty(Gp,"__esModule",{value:!0}),Gp.argStringToArray=Gp.ToolRunner=void 0;const Bp=$p(E.default),qp=$p(A.default),Mp=$p(D.default),Hp=$p(b.default),Wp=$p(op),zp=$p(np),Xp=V.default,Kp="win32"===process.platform;class Jp extends qp.EventEmitter{constructor(e,p,a){if(super(),!e)throw new Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=p||[],this.options=a||{}}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e)}_getCommandString(e,p){const a=this._getSpawnFileName(),t=this._getSpawnArgs(e);let r=p?"":"[command]";if(Kp)if(this._isCmdFile()){r+=a;for(const e of t)r+=` ${e}`}else if(e.windowsVerbatimArguments){r+=`"${a}"`;for(const e of t)r+=` ${e}`}else{r+=this._windowsQuoteCmdArg(a);for(const e of t)r+=` ${this._windowsQuoteCmdArg(e)}`}else{r+=a;for(const e of t)r+=` ${e}`}return r}_processLineBuffer(e,p,a){try{let t=p+e.toString(),r=t.indexOf(Bp.EOL);for(;r>-1;){a(t.substring(0,r)),t=t.substring(r+Bp.EOL.length),r=t.indexOf(Bp.EOL)}return t}catch(e){return this._debug(`error processing line. Failed with error ${e}`),""}}_getSpawnFileName(){return Kp&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(e){if(Kp&&this._isCmdFile()){let p=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const a of this.args)p+=" ",p+=e.windowsVerbatimArguments?a:this._windowsQuoteCmdArg(a);return p+='"',[p]}return this.args}_endsWith(e,p){return e.endsWith(p)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile())return this._uvQuoteCmdArg(e);if(!e)return'""';const p=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let a=!1;for(const t of e)if(p.some((e=>e===t))){a=!0;break}if(!a)return e;let t='"',r=!0;for(let p=e.length;p>0;p--)t+=e[p-1],r&&"\\"===e[p-1]?t+="\\":'"'===e[p-1]?(r=!0,t+='"'):r=!1;return t+='"',t.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let p='"',a=!0;for(let t=e.length;t>0;t--)p+=e[t-1],a&&"\\"===e[t-1]?p+="\\":'"'===e[t-1]?(a=!0,p+="\\"):a=!1;return p+='"',p.split("").reverse().join("")}_cloneExecOptions(e){const p={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return p.outStream=e.outStream||process.stdout,p.errStream=e.errStream||process.stderr,p}_getSpawnOptions(e,p){e=e||{};const a={};return a.cwd=e.cwd,a.env=e.env,a.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(a.argv0=`"${p}"`),a}exec(){return jp(this,void 0,void 0,(function*(){return!zp.isRooted(this.toolPath)&&(this.toolPath.includes("/")||Kp&&this.toolPath.includes("\\"))&&(this.toolPath=Hp.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield Wp.which(this.toolPath,!0),new Promise(((e,p)=>jp(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`),this._debug("arguments:");for(const e of this.args)this._debug(` ${e}`);const a=this._cloneExecOptions(this.options);!a.silent&&a.outStream&&a.outStream.write(this._getCommandString(a)+Bp.EOL);const t=new Yp(a,this.toolPath);if(t.on("debug",(e=>{this._debug(e)})),this.options.cwd&&!(yield zp.exists(this.options.cwd)))return p(new Error(`The cwd: ${this.options.cwd} does not exist!`));const r=this._getSpawnFileName(),d=Mp.spawn(r,this._getSpawnArgs(a),this._getSpawnOptions(this.options,r));let i="";d.stdout&&d.stdout.on("data",(e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!a.silent&&a.outStream&&a.outStream.write(e),i=this._processLineBuffer(e,i,(e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e)}))}));let s="";if(d.stderr&&d.stderr.on("data",(e=>{if(t.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!a.silent&&a.errStream&&a.outStream){(a.failOnStdErr?a.errStream:a.outStream).write(e)}s=this._processLineBuffer(e,s,(e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e)}))})),d.on("error",(e=>{t.processError=e.message,t.processExited=!0,t.processClosed=!0,t.CheckComplete()})),d.on("exit",(e=>{t.processExitCode=e,t.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),t.CheckComplete()})),d.on("close",(e=>{t.processExitCode=e,t.processExited=!0,t.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),t.CheckComplete()})),t.on("done",((a,t)=>{i.length>0&&this.emit("stdline",i),s.length>0&&this.emit("errline",s),d.removeAllListeners(),a?p(a):e(t)})),this.options.input){if(!d.stdin)throw new Error("child process missing stdin");d.stdin.end(this.options.input)}}))))}))}}Gp.ToolRunner=Jp,Gp.argStringToArray=function(e){const p=[];let a=!1,t=!1,r="";function d(e){t&&'"'!==e&&(r+="\\"),r+=e,t=!1}for(let i=0;i0&&(p.push(r),r=""):t?d(s):a=!a}return r.length>0&&p.push(r.trim()),p};class Yp extends qp.EventEmitter{constructor(e,p){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!p)throw new Error("toolPath must not be empty");this.options=e,this.toolPath=p,e.delay&&(this.delay=e.delay)}CheckComplete(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=Xp.setTimeout(Yp.HandleTimeout,this.delay,this)))}_debug(e){this.emit("debug",e)}_setResult(){let e;this.processExited&&(this.processError?e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):0===this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)):e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(!e.done){if(!e.processClosed&&e.processExited){const p=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(p)}e._setResult()}}}var Zp=G&&G.__createBinding||(Object.create?function(e,p,a,t){void 0===t&&(t=a),Object.defineProperty(e,t,{enumerable:!0,get:function(){return p[a]}})}:function(e,p,a,t){void 0===t&&(t=a),e[t]=p[a]}),Qp=G&&G.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:!0,value:p})}:function(e,p){e.default=p}),ea=G&&G.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(null!=e)for(var a in e)"default"!==a&&Object.hasOwnProperty.call(e,a)&&Zp(p,e,a);return Qp(p,e),p},pa=G&&G.__awaiter||function(e,p,a,t){return new(a||(a=Promise))((function(r,d){function i(e){try{o(t.next(e))}catch(e){d(e)}}function s(e){try{o(t.throw(e))}catch(e){d(e)}}function o(e){var p;e.done?r(e.value):(p=e.value,p instanceof a?p:new a((function(e){e(p)}))).then(i,s)}o((t=t.apply(e,p||[])).next())}))};Object.defineProperty(Fp,"__esModule",{value:!0}),Fp.getExecOutput=Fp.exec=void 0;const aa=C.default,ta=ea(Gp);function ra(e,p,a){return pa(this,void 0,void 0,(function*(){const t=ta.argStringToArray(e);if(0===t.length)throw new Error("Parameter 'commandLine' cannot be null or empty.");const r=t[0];p=t.slice(1).concat(p||[]);return new ta.ToolRunner(r,p,a).exec()}))}Fp.exec=ra,Fp.getExecOutput=function(e,p,a){var t,r;return pa(this,void 0,void 0,(function*(){let d="",i="";const s=new aa.StringDecoder("utf8"),o=new aa.StringDecoder("utf8"),n=null===(t=null==a?void 0:a.listeners)||void 0===t?void 0:t.stdout,l=null===(r=null==a?void 0:a.listeners)||void 0===r?void 0:r.stderr,m=Object.assign(Object.assign({},null==a?void 0:a.listeners),{stdout:e=>{d+=s.write(e),n&&n(e)},stderr:e=>{i+=o.write(e),l&&l(e)}}),u=yield ra(e,p,Object.assign(Object.assign({},a),{listeners:m}));return d+=s.end(),i+=o.end(),{exitCode:u,stdout:d,stderr:i}}))};var da={},ia=G&&G.__createBinding||(Object.create?function(e,p,a,t){void 0===t&&(t=a),Object.defineProperty(e,t,{enumerable:!0,get:function(){return p[a]}})}:function(e,p,a,t){void 0===t&&(t=a),e[t]=p[a]}),sa=G&&G.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:!0,value:p})}:function(e,p){e.default=p}),oa=G&&G.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(null!=e)for(var a in e)"default"!==a&&Object.hasOwnProperty.call(e,a)&&ia(p,e,a);return sa(p,e),p},na=G&&G.__awaiter||function(e,p,a,t){return new(a||(a=Promise))((function(r,d){function i(e){try{o(t.next(e))}catch(e){d(e)}}function s(e){try{o(t.throw(e))}catch(e){d(e)}}function o(e){var p;e.done?r(e.value):(p=e.value,p instanceof a?p:new a((function(e){e(p)}))).then(i,s)}o((t=t.apply(e,p||[])).next())}))};Object.defineProperty(da,"__esModule",{value:!0}),da.RetryHelper=void 0;const la=oa(dp());da.RetryHelper=class{constructor(e,p,a){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(p),this.maxSeconds=Math.floor(a),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,p){return na(this,void 0,void 0,(function*(){let a=1;for(;asetTimeout(p,1e3*e)))}))}};var ma=G&&G.__createBinding||(Object.create?function(e,p,a,t){void 0===t&&(t=a),Object.defineProperty(e,t,{enumerable:!0,get:function(){return p[a]}})}:function(e,p,a,t){void 0===t&&(t=a),e[t]=p[a]}),ua=G&&G.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:!0,value:p})}:function(e,p){e.default=p}),ca=G&&G.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(null!=e)for(var a in e)"default"!==a&&Object.hasOwnProperty.call(e,a)&&ma(p,e,a);return ua(p,e),p},ha=G&&G.__awaiter||function(e,p,a,t){return new(a||(a=Promise))((function(r,d){function i(e){try{o(t.next(e))}catch(e){d(e)}}function s(e){try{o(t.throw(e))}catch(e){d(e)}}function o(e){var p;e.done?r(e.value):(p=e.value,p instanceof a?p:new a((function(e){e(p)}))).then(i,s)}o((t=t.apply(e,p||[])).next())}))},va=G&&G.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(sp,"__esModule",{value:!0}),sp.evaluateVersions=sp.isExplicitVersion=sp.findFromManifest=sp.getManifestFromRepo=sp.findAllVersions=Ua=sp.find=sp.cacheFile=Ga=sp.cacheDir=Fa=sp.extractZip=sp.extractXar=Ia=sp.extractTar=sp.extract7z=La=sp.downloadTool=sp.HTTPError=void 0;const fa=ca(dp()),ga=ca(op),wa=ca(T.default),Ea=ca(Op),Ta=ca(E.default),_a=ca(b.default),ba=ca(Ap),ya=ca(Sp),Sa=ca(P.default),Oa=ca(N.default),Aa=va(Ip),Ra=Fp,Na=R.default,Da=da;class Pa extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}}sp.HTTPError=Pa;const ka="win32"===process.platform,Ca="darwin"===process.platform,Va="actions/tool-cache";var La=sp.downloadTool=function(e,p,a,t){return ha(this,void 0,void 0,(function*(){p=p||_a.join(Wa(),Aa.default()),yield ga.mkdirP(_a.dirname(p)),fa.debug(`Downloading ${e}`),fa.debug(`Destination ${p}`);const r=za("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),d=za("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),i=new Da.RetryHelper(3,r,d);return yield i.execute((()=>ha(this,void 0,void 0,(function*(){return yield function(e,p,a,t){return ha(this,void 0,void 0,(function*(){if(wa.existsSync(p))throw new Error(`Destination file path ${p} already exists`);const r=new ba.HttpClient(Va,[],{allowRetries:!1});a&&(fa.debug("set auth"),void 0===t&&(t={}),t.authorization=a);const d=yield r.get(e,t);if(200!==d.message.statusCode){const p=new Pa(d.message.statusCode);throw fa.debug(`Failed to download from "${e}". Code(${d.message.statusCode}) Message(${d.message.statusMessage})`),p}const i=Oa.promisify(Sa.pipeline),s=za("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>d.message))();let o=!1;try{return yield i(s,wa.createWriteStream(p)),fa.debug("download complete"),o=!0,p}finally{if(!o){fa.debug("download failed");try{yield ga.rmRF(p)}catch(e){fa.debug(`Failed to delete '${p}'. ${e.message}`)}}}}))}(e,p||"",a,t)}))),(e=>!(e instanceof Pa&&e.httpStatusCode&&e.httpStatusCode<500&&408!==e.httpStatusCode&&429!==e.httpStatusCode)))}))};sp.extract7z=function(e,p,a){return ha(this,void 0,void 0,(function*(){Na.ok(ka,"extract7z() not supported on current OS"),Na.ok(e,'parameter "file" is required'),p=yield $a(p);const t=process.cwd();if(process.chdir(p),a)try{const p=["x",fa.isDebug()?"-bb1":"-bb0","-bd","-sccUTF-8",e],t={silent:!0};yield Ra.exec(`"${a}"`,p,t)}finally{process.chdir(t)}else{const a=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${_a.join(__dirname,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"")}' -Source '${e.replace(/'/g,"''").replace(/"|\n|\r/g,"")}' -Target '${p.replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`],r={silent:!0};try{const e=yield ga.which("powershell",!0);yield Ra.exec(`"${e}"`,a,r)}finally{process.chdir(t)}}return p}))};var Ia=sp.extractTar=function(e,p,a="xz"){return ha(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");p=yield $a(p),fa.debug("Checking tar --version");let t="";yield Ra.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:e=>t+=e.toString(),stderr:e=>t+=e.toString()}}),fa.debug(t.trim());const r=t.toUpperCase().includes("GNU TAR");let d;d=a instanceof Array?a:[a],fa.isDebug()&&!a.includes("v")&&d.push("-v");let i=p,s=e;return ka&&r&&(d.push("--force-local"),i=p.replace(/\\/g,"/"),s=e.replace(/\\/g,"/")),r&&(d.push("--warning=no-unknown-keyword"),d.push("--overwrite")),d.push("-C",i,"-f",s),yield Ra.exec("tar",d),p}))};sp.extractXar=function(e,p,a=[]){return ha(this,void 0,void 0,(function*(){let t;Na.ok(Ca,"extractXar() not supported on current OS"),Na.ok(e,'parameter "file" is required'),p=yield $a(p),t=a instanceof Array?a:[a],t.push("-x","-C",p,"-f",e),fa.isDebug()&&t.push("-v");const r=yield ga.which("xar",!0);var d;return yield Ra.exec(`"${r}"`,(d=t,Array.from(new Set(d)))),p}))};var Fa=sp.extractZip=function(e,p){return ha(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");return p=yield $a(p),ka?yield function(e,p){return ha(this,void 0,void 0,(function*(){const a=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),t=p.replace(/'/g,"''").replace(/"|\n|\r/g,""),r=yield ga.which("pwsh",!1);if(r){const e=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",["$ErrorActionPreference = 'Stop' ;","try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;",`try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${a}', '${t}', $true) }`,`catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${a}' -DestinationPath '${t}' -Force } else { throw $_ } } ;`].join(" ")];fa.debug(`Using pwsh at path: ${r}`),yield Ra.exec(`"${r}"`,e)}else{const e=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",["$ErrorActionPreference = 'Stop' ;","try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ;",`if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${a}' -DestinationPath '${t}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${a}', '${t}', $true) }`].join(" ")],p=yield ga.which("powershell",!0);fa.debug(`Using powershell at path: ${p}`),yield Ra.exec(`"${p}"`,e)}}))}(e,p):yield function(e,p){return ha(this,void 0,void 0,(function*(){const a=yield ga.which("unzip",!0),t=[e];fa.isDebug()||t.unshift("-q"),t.unshift("-o"),yield Ra.exec(`"${a}"`,t,{cwd:p})}))}(e,p),p}))};var Ga=sp.cacheDir=function(e,p,a,t){return ha(this,void 0,void 0,(function*(){if(a=ya.clean(a)||a,t=t||Ta.arch(),fa.debug(`Caching tool ${p} ${a} ${t}`),fa.debug(`source dir: ${e}`),!wa.statSync(e).isDirectory())throw new Error("sourceDir is not a directory");const r=yield ja(p,a,t);for(const p of wa.readdirSync(e)){const a=_a.join(e,p);yield ga.cp(a,r,{recursive:!0})}return Ba(p,a,t),r}))};sp.cacheFile=function(e,p,a,t,r){return ha(this,void 0,void 0,(function*(){if(t=ya.clean(t)||t,r=r||Ta.arch(),fa.debug(`Caching tool ${a} ${t} ${r}`),fa.debug(`source file: ${e}`),!wa.statSync(e).isFile())throw new Error("sourceFile is not a file");const d=yield ja(a,t,r),i=_a.join(d,p);return fa.debug(`destination file ${i}`),yield ga.cp(e,i),Ba(a,t,r),d}))};var Ua=sp.find=function(e,p,a){if(!e)throw new Error("toolName parameter is required");if(!p)throw new Error("versionSpec parameter is required");if(a=a||Ta.arch(),!qa(p)){p=Ma(xa(e,a),p)}let t="";if(p){p=ya.clean(p)||"";const r=_a.join(Ha(),e,p,a);fa.debug(`checking cache: ${r}`),wa.existsSync(r)&&wa.existsSync(`${r}.complete`)?(fa.debug(`Found tool in cache ${e} ${p} ${a}`),t=r):fa.debug("not found")}return t};function xa(e,p){const a=[];p=p||Ta.arch();const t=_a.join(Ha(),e);if(wa.existsSync(t)){const e=wa.readdirSync(t);for(const r of e)if(qa(r)){const e=_a.join(t,r,p||"");wa.existsSync(e)&&wa.existsSync(`${e}.complete`)&&a.push(r)}}return a}function $a(e){return ha(this,void 0,void 0,(function*(){return e||(e=_a.join(Wa(),Aa.default())),yield ga.mkdirP(e),e}))}function ja(e,p,a){return ha(this,void 0,void 0,(function*(){const t=_a.join(Ha(),e,ya.clean(p)||p,a||"");fa.debug(`destination ${t}`);const r=`${t}.complete`;return yield ga.rmRF(t),yield ga.rmRF(r),yield ga.mkdirP(t),t}))}function Ba(e,p,a){const t=`${_a.join(Ha(),e,ya.clean(p)||p,a||"")}.complete`;wa.writeFileSync(t,""),fa.debug("finished caching tool")}function qa(e){const p=ya.clean(e)||"";fa.debug(`isExplicit: ${p}`);const a=null!=ya.valid(p);return fa.debug(`explicit? ${a}`),a}function Ma(e,p){let a="";fa.debug(`evaluating ${e.length} versions`);for(let t=(e=e.sort(((e,p)=>ya.gt(e,p)?1:-1))).length-1;t>=0;t--){const r=e[t];if(ya.satisfies(r,p)){a=r;break}}return a?fa.debug(`matched: ${a}`):fa.debug("match not found"),a}function Ha(){const e=process.env.RUNNER_TOOL_CACHE||"";return Na.ok(e,"Expected RUNNER_TOOL_CACHE to be defined"),e}function Wa(){const e=process.env.RUNNER_TEMP||"";return Na.ok(e,"Expected RUNNER_TEMP to be defined"),e}function za(e,p){const a=G[e];return void 0!==a?a:p}function Xa(){return"object"==typeof navigator&&"userAgent"in navigator?navigator.userAgent:"object"==typeof process&&"version"in process?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:""}sp.findAllVersions=xa,sp.getManifestFromRepo=function(e,p,a,t="master"){return ha(this,void 0,void 0,(function*(){let r=[];const d=`https://api.github.com/repos/${e}/${p}/git/trees/${t}`,i=new ba.HttpClient("tool-cache"),s={};a&&(fa.debug("set auth"),s.authorization=a);const o=yield i.getJson(d,s);if(!o.result)return r;let n="";for(const e of o.result.tree)if("versions-manifest.json"===e.path){n=e.url;break}s.accept="application/vnd.github.VERSION.raw";let l=yield(yield i.get(n,s)).readBody();if(l){l=l.replace(/^\uFEFF/,"");try{r=JSON.parse(l)}catch(e){fa.debug("Invalid json")}}return r}))},sp.findFromManifest=function(e,p,a,t=Ta.arch()){return ha(this,void 0,void 0,(function*(){return yield Ea._findMatch(e,p,a,t)}))},sp.isExplicitVersion=qa,sp.evaluateVersions=Ma;var Ka={exports:{}},Ja=function e(p,a,t,r){if("function"!=typeof t)throw new Error("method for before hook must be a function");r||(r={});if(Array.isArray(a))return a.reverse().reduce((function(a,t){return e.bind(null,p,t,a,r)}),t)();return Promise.resolve().then((function(){return p.registry[a]?p.registry[a].reduce((function(e,p){return p.hook.bind(null,e,r)}),t)():t(r)}))};var Ya=function(e,p,a,t){var r=t;e.registry[a]||(e.registry[a]=[]);"before"===p&&(t=function(e,p){return Promise.resolve().then(r.bind(null,p)).then(e.bind(null,p))});"after"===p&&(t=function(e,p){var a;return Promise.resolve().then(e.bind(null,p)).then((function(e){return r(a=e,p)})).then((function(){return a}))});"error"===p&&(t=function(e,p){return Promise.resolve().then(e.bind(null,p)).catch((function(e){return r(e,p)}))});e.registry[a].push({hook:t,orig:r})};var Za=Ja,Qa=Ya,et=function(e,p,a){if(!e.registry[p])return;var t=e.registry[p].map((function(e){return e.orig})).indexOf(a);if(-1===t)return;e.registry[p].splice(t,1)},pt=Function.bind,at=pt.bind(pt);function tt(e,p,a){var t=at(et,null).apply(null,a?[p,a]:[p]);e.api={remove:t},e.remove=t,["before","error","after","wrap"].forEach((function(t){var r=a?[p,t,a]:[p,t];e[t]=e.api[t]=at(Qa,null).apply(null,r)}))}function rt(){var e={registry:{}},p=Za.bind(null,e);return tt(p,e),p}var dt=!1;function it(){return dt||(console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4'),dt=!0),rt()}it.Singular=function(){var e={registry:{}},p=Za.bind(null,e,"h");return tt(p,e,"h"),p}.bind(),it.Collection=rt.bind(),Ka.exports=it,Ka.exports.Hook=it,Ka.exports.Singular=it.Singular;var st=Ka.exports.Collection=it.Collection;function ot(e){return"[object Object]"===Object.prototype.toString.call(e)}function nt(e){var p,a;return!1!==ot(e)&&(void 0===(p=e.constructor)||!1!==ot(a=p.prototype)&&!1!==a.hasOwnProperty("isPrototypeOf"))}function lt(e,p){const a=Object.assign({},e);return Object.keys(p).forEach((t=>{nt(p[t])?t in e?a[t]=lt(e[t],p[t]):Object.assign(a,{[t]:p[t]}):Object.assign(a,{[t]:p[t]})})),a}function mt(e){for(const p in e)void 0===e[p]&&delete e[p];return e}function ut(e,p,a){if("string"==typeof p){let[e,t]=p.split(" ");a=Object.assign(t?{method:e,url:t}:{url:e},a)}else a=Object.assign({},p);var t;a.headers=(t=a.headers)?Object.keys(t).reduce(((e,p)=>(e[p.toLowerCase()]=t[p],e)),{}):{},mt(a),mt(a.headers);const r=lt(e||{},a);return e&&e.mediaType.previews.length&&(r.mediaType.previews=e.mediaType.previews.filter((e=>!r.mediaType.previews.includes(e))).concat(r.mediaType.previews)),r.mediaType.previews=r.mediaType.previews.map((e=>e.replace(/-preview/,""))),r}const ct=/\{[^}]+\}/g;function ht(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function vt(e,p){return Object.keys(e).filter((e=>!p.includes(e))).reduce(((p,a)=>(p[a]=e[a],p)),{})}function ft(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e})).join("")}function gt(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function wt(e,p,a){return p="+"===e||"#"===e?ft(p):gt(p),a?gt(a)+"="+p:p}function Et(e){return null!=e}function Tt(e){return";"===e||"&"===e||"?"===e}function _t(e,p){var a=["+","#",".","/",";","?","&"];return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(e,t,r){if(t){let e="";const r=[];if(-1!==a.indexOf(t.charAt(0))&&(e=t.charAt(0),t=t.substr(1)),t.split(/,/g).forEach((function(a){var t=/([^:\*]*)(?::(\d+)|(\*))?/.exec(a);r.push(function(e,p,a,t){var r=e[a],d=[];if(Et(r)&&""!==r)if("string"==typeof r||"number"==typeof r||"boolean"==typeof r)r=r.toString(),t&&"*"!==t&&(r=r.substring(0,parseInt(t,10))),d.push(wt(p,r,Tt(p)?a:""));else if("*"===t)Array.isArray(r)?r.filter(Et).forEach((function(e){d.push(wt(p,e,Tt(p)?a:""))})):Object.keys(r).forEach((function(e){Et(r[e])&&d.push(wt(p,r[e],e))}));else{const e=[];Array.isArray(r)?r.filter(Et).forEach((function(a){e.push(wt(p,a))})):Object.keys(r).forEach((function(a){Et(r[a])&&(e.push(gt(a)),e.push(wt(p,r[a].toString())))})),Tt(p)?d.push(gt(a)+"="+e.join(",")):0!==e.length&&d.push(e.join(","))}else";"===p?Et(r)&&d.push(gt(a)):""!==r||"&"!==p&&"?"!==p?""===r&&d.push(""):d.push(gt(a)+"=");return d}(p,e,t[1],t[2]||t[3]))})),e&&"+"!==e){var d=",";return"?"===e?d="&":"#"!==e&&(d=e),(0!==r.length?e:"")+r.join(d)}return r.join(",")}return ft(r)}))}function bt(e){let p,a=e.method.toUpperCase(),t=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),r=Object.assign({},e.headers),d=vt(e,["method","baseUrl","url","headers","request","mediaType"]);const i=function(e){const p=e.match(ct);return p?p.map(ht).reduce(((e,p)=>e.concat(p)),[]):[]}(t);var s;t=(s=t,{expand:_t.bind(null,s)}).expand(d),/^http/.test(t)||(t=e.baseUrl+t);const o=vt(d,Object.keys(e).filter((e=>i.includes(e))).concat("baseUrl"));if(!/application\/octet-stream/i.test(r.accept)&&(e.mediaType.format&&(r.accept=r.accept.split(/,/).map((p=>p.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`))).join(",")),e.mediaType.previews.length)){const p=r.accept.match(/[\w-]+(?=-preview)/g)||[];r.accept=p.concat(e.mediaType.previews).map((p=>`application/vnd.github.${p}-preview${e.mediaType.format?`.${e.mediaType.format}`:"+json"}`)).join(",")}return["GET","HEAD"].includes(a)?t=function(e,p){const a=/\?/.test(e)?"&":"?",t=Object.keys(p);return 0===t.length?e:e+a+t.map((e=>"q"===e?"q="+p.q.split("+").map(encodeURIComponent).join("+"):`${e}=${encodeURIComponent(p[e])}`)).join("&")}(t,o):"data"in o?p=o.data:Object.keys(o).length&&(p=o),r["content-type"]||void 0===p||(r["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(a)&&void 0===p&&(p=""),Object.assign({method:a,url:t,headers:r},void 0!==p?{body:p}:null,e.request?{request:e.request}:null)}function yt(e,p,a){return bt(ut(e,p,a))}const St=function e(p,a){const t=ut(p,a),r=yt.bind(null,t);return Object.assign(r,{DEFAULTS:t,defaults:e.bind(null,t),merge:ut.bind(null,t),parse:bt})}(null,{method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":`octokit-endpoint.js/7.0.6 ${Xa()}`},mediaType:{format:"",previews:[]}});var Ot={},At={exports:{}},Rt={},Nt=Rt;function Dt(e){return e<0?-1:1}function Pt(e,p){p.unsigned||--e;const a=p.unsigned?0:-Math.pow(2,e),t=Math.pow(2,e)-1,r=p.moduloBitLength?Math.pow(2,p.moduloBitLength):Math.pow(2,e),d=p.moduloBitLength?Math.pow(2,p.moduloBitLength-1):Math.pow(2,e-1);return function(e,i){i||(i={});let s=+e;if(i.enforceRange){if(!Number.isFinite(s))throw new TypeError("Argument is not a finite number");if(s=Dt(s)*Math.floor(Math.abs(s)),st)throw new TypeError("Argument is not in byte range");return s}if(!isNaN(s)&&i.clamp)return s=function(e){return e%1==.5&&0==(1&e)?Math.floor(e):Math.round(e)}(s),st&&(s=t),s;if(!Number.isFinite(s)||0===s)return 0;if(s=Dt(s)*Math.floor(Math.abs(s)),s%=r,!p.unsigned&&s>=d)return s-r;if(p.unsigned)if(s<0)s+=r;else if(-0===s)return 0;return s}}Rt.void=function(){},Rt.boolean=function(e){return!!e},Rt.byte=Pt(8,{unsigned:!1}),Rt.octet=Pt(8,{unsigned:!0}),Rt.short=Pt(16,{unsigned:!1}),Rt["unsigned short"]=Pt(16,{unsigned:!0}),Rt.long=Pt(32,{unsigned:!1}),Rt["unsigned long"]=Pt(32,{unsigned:!0}),Rt["long long"]=Pt(32,{unsigned:!1,moduloBitLength:64}),Rt["unsigned long long"]=Pt(32,{unsigned:!0,moduloBitLength:64}),Rt.double=function(e){const p=+e;if(!Number.isFinite(p))throw new TypeError("Argument is not a finite floating-point value");return p},Rt["unrestricted double"]=function(e){const p=+e;if(isNaN(p))throw new TypeError("Argument is NaN");return p},Rt.float=Rt.double,Rt["unrestricted float"]=Rt["unrestricted double"],Rt.DOMString=function(e,p){return p||(p={}),p.treatNullAsEmptyString&&null===e?"":String(e)},Rt.ByteString=function(e,p){const a=String(e);let t;for(let e=0;void 0!==(t=a.codePointAt(e));++e)if(t>255)throw new TypeError("Argument is not a valid bytestring");return a},Rt.USVString=function(e){const p=String(e),a=p.length,t=[];for(let e=0;e57343)t.push(String.fromCodePoint(r));else if(56320<=r&&r<=57343)t.push(String.fromCodePoint(65533));else if(e===a-1)t.push(String.fromCodePoint(65533));else{const a=p.charCodeAt(e+1);if(56320<=a&&a<=57343){const p=1023&r,d=1023&a;t.push(String.fromCodePoint(65536+1024*p+d)),++e}else t.push(String.fromCodePoint(65533))}}return t.join("")},Rt.Date=function(e,p){if(!(e instanceof Date))throw new TypeError("Argument is not a Date object");if(!isNaN(e))return e},Rt.RegExp=function(e,p){return e instanceof RegExp||(e=new RegExp(e)),e};var kt,Ct={exports:{}};(kt=Ct).exports.mixin=function(e,p){const a=Object.getOwnPropertyNames(p);for(let t=0;t=e)return r;r[0][0]>e?a=t-1:p=t+1}return null}var Bt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;function qt(e){return e.replace(Bt,"_").length}var Mt=/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E4-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u192B\u1930-\u193B\u19B0-\u19C0\u19C8\u19C9\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2D]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC7F-\uDC82\uDCB0-\uDCBA\uDD00-\uDD02\uDD27-\uDD34\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDE2C-\uDE37\uDEDF-\uDEEA\uDF01-\uDF03\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDE30-\uDE40\uDEAB-\uDEB7]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF51-\uDF7E\uDF8F-\uDF92]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD83A[\uDCD0-\uDCD6]|\uDB40[\uDD00-\uDDEF]/;function Ht(e,p){"xn--"===e.substr(0,4)&&(e=Gt.toUnicode(e),xt.NONTRANSITIONAL);var a=!1;($t(e)!==e||"-"===e[3]&&"-"===e[4]||"-"===e[0]||"-"===e[e.length-1]||-1!==e.indexOf(".")||0===e.search(Mt))&&(a=!0);for(var t=qt(e),r=0;r253||0===i.length)&&(r.error=!0);for(var s=0;s63||0===d.length){r.error=!0;break}}return r.error?null:d.join(".")},Ft.toUnicode=function(e,p){var a=Wt(e,p,xt.NONTRANSITIONAL);return{domain:a.string,error:a.error}},Ft.PROCESSING_OPTIONS=xt,function(e){const p=I.default,a=Ft,t={ftp:21,file:null,gopher:70,http:80,https:443,ws:80,wss:443},r=Symbol("failure");function d(e){return p.ucs2.decode(e).length}function i(e,p){const a=e[p];return isNaN(a)?void 0:String.fromCodePoint(a)}function s(e){return e>=48&&e<=57}function o(e){return e>=65&&e<=90||e>=97&&e<=122}function n(e){return s(e)||e>=65&&e<=70||e>=97&&e<=102}function l(e){return"."===e||"%2e"===e.toLowerCase()}function m(e){return 2===e.length&&o(e.codePointAt(0))&&(":"===e[1]||"|"===e[1])}function u(e){return void 0!==t[e]}function c(e){return u(e.scheme)}function h(e){let p=e.toString(16).toUpperCase();return 1===p.length&&(p="0"+p),"%"+p}function v(e){return e<=31||e>126}const f=new Set([32,34,35,60,62,63,96,123,125]);function g(e){return v(e)||f.has(e)}const w=new Set([47,58,59,61,64,91,92,93,94,124]);function E(e){return g(e)||w.has(e)}function T(e,p){const a=String.fromCodePoint(e);return p(e)?function(e){const p=new Buffer(e);let a="";for(let e=0;e=2&&"0"===e.charAt(0)&&"x"===e.charAt(1).toLowerCase()?(e=e.substring(2),p=16):e.length>=2&&"0"===e.charAt(0)&&(e=e.substring(1),p=8),""===e)return 0;return(10===p?/[^0-9]/:16===p?/[^0-9A-Fa-f]/:/[^0-7]/).test(e)?r:parseInt(e,p)}function b(e,t){if("["===e[0])return"]"!==e[e.length-1]?r:function(e){const a=[0,0,0,0,0,0,0,0];let t=0,d=null,o=0;if(58===(e=p.ucs2.decode(e))[o]){if(58!==e[o+1])return r;o+=2,++t,d=t}for(;o6)return r;let p=0;for(;void 0!==e[o];){let d=null;if(p>0){if(!(46===e[o]&&p<4))return r;++o}if(!s(e[o]))return r;for(;s(e[o]);){const p=parseInt(i(e,o));if(null===d)d=p;else{if(0===d)return r;d=10*d+p}if(d>255)return r;++o}a[t]=256*a[t]+d,++p,2!==p&&4!==p||++t}if(4!==p)return r;break}if(58===e[o]){if(++o,void 0===e[o])return r}else if(void 0!==e[o])return r;a[t]=p,++t}if(null!==d){let e=t-d;for(t=7;0!==t&&e>0;){const p=a[d+e-1];a[d+e-1]=a[t],a[t]=p,--t,--e}}else if(null===d&&8!==t)return r;return a}(e.substring(1,e.length-1));if(!t)return function(e){if(a=e,-1!==a.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/))return r;var a;let t="";const d=p.ucs2.decode(e);for(let e=0;e1&&p.pop(),p.length>4)return e;const a=[];for(const t of p){if(""===t)return e;const p=_(t);if(p===r)return e;a.push(p)}for(let e=0;e255)return r;if(a[a.length-1]>=Math.pow(256,5-a.length))return r;let t=a.pop(),d=0;for(const e of a)t+=e*Math.pow(256,3-d),++d;return t}(o);return"number"==typeof l||l===r?l:o}function y(e){return"number"==typeof e?function(e){let p="",a=e;for(let e=1;e<=4;++e)p=String(a%256)+p,4!==e&&(p="."+p),a=Math.floor(a/256);return p}(e):e instanceof Array?"["+function(e){let p="";const a=function(e){let p=null,a=1,t=null,r=0;for(let d=0;da&&(p=t,a=r),t=null,r=0):(null===t&&(t=d),++r);return r>a&&(p=t,a=r),{idx:p,len:a}}(e),t=a.idx;let r=!1;for(let a=0;a<=7;++a)r&&0===e[a]||(r&&(r=!1),t!==a?(p+=e[a].toString(16),7!==a&&(p+=":")):(p+=0===a?"::":":",r=!0));return p}(e)+"]":e}function S(e){const p=e.path;var a;0!==p.length&&("file"===e.scheme&&1===p.length&&(a=p[0],/^[A-Za-z]:$/.test(a))||p.pop())}function O(e){return""!==e.username||""!==e.password}function A(e,a,t,d,i){if(this.pointer=0,this.input=e,this.base=a||null,this.encodingOverride=t||"utf-8",this.stateOverride=i,this.url=d,this.failure=!1,this.parseError=!1,!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null,cannotBeABaseURL:!1};const e=function(e){return e.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g,"")}(this.input);e!==this.input&&(this.parseError=!0),this.input=e}const s=function(e){return e.replace(/\u0009|\u000A|\u000D/g,"")}(this.input);for(s!==this.input&&(this.parseError=!0),this.input=s,this.state=i||"scheme start",this.buffer="",this.atFlag=!1,this.arrFlag=!1,this.passwordTokenSeenFlag=!1,this.input=p.ucs2.decode(this.input);this.pointer<=this.input.length;++this.pointer){const e=this.input[this.pointer],p=isNaN(e)?void 0:String.fromCodePoint(e),a=this["parse "+this.state](e,p);if(!a)break;if(a===r){this.failure=!0;break}}}A.prototype["parse scheme start"]=function(e,p){if(o(e))this.buffer+=p.toLowerCase(),this.state="scheme";else{if(this.stateOverride)return this.parseError=!0,r;this.state="no scheme",--this.pointer}return!0},A.prototype["parse scheme"]=function(e,p){if(function(e){return o(e)||s(e)}(e)||43===e||45===e||46===e)this.buffer+=p.toLowerCase();else if(58===e){if(this.stateOverride){if(c(this.url)&&!u(this.buffer))return!1;if(!c(this.url)&&u(this.buffer))return!1;if((O(this.url)||null!==this.url.port)&&"file"===this.buffer)return!1;if("file"===this.url.scheme&&(""===this.url.host||null===this.url.host))return!1}if(this.url.scheme=this.buffer,this.buffer="",this.stateOverride)return!1;"file"===this.url.scheme?(47===this.input[this.pointer+1]&&47===this.input[this.pointer+2]||(this.parseError=!0),this.state="file"):c(this.url)&&null!==this.base&&this.base.scheme===this.url.scheme?this.state="special relative or authority":c(this.url)?this.state="special authority slashes":47===this.input[this.pointer+1]?(this.state="path or authority",++this.pointer):(this.url.cannotBeABaseURL=!0,this.url.path.push(""),this.state="cannot-be-a-base-URL path")}else{if(this.stateOverride)return this.parseError=!0,r;this.buffer="",this.state="no scheme",this.pointer=-1}return!0},A.prototype["parse no scheme"]=function(e){return null===this.base||this.base.cannotBeABaseURL&&35!==e?r:(this.base.cannotBeABaseURL&&35===e?(this.url.scheme=this.base.scheme,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.url.cannotBeABaseURL=!0,this.state="fragment"):"file"===this.base.scheme?(this.state="file",--this.pointer):(this.state="relative",--this.pointer),!0)},A.prototype["parse special relative or authority"]=function(e){return 47===e&&47===this.input[this.pointer+1]?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="relative",--this.pointer),!0},A.prototype["parse path or authority"]=function(e){return 47===e?this.state="authority":(this.state="path",--this.pointer),!0},A.prototype["parse relative"]=function(e){return this.url.scheme=this.base.scheme,isNaN(e)?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query):47===e?this.state="relative slash":63===e?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query="",this.state="query"):35===e?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):c(this.url)&&92===e?(this.parseError=!0,this.state="relative slash"):(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(0,this.base.path.length-1),this.state="path",--this.pointer),!0},A.prototype["parse relative slash"]=function(e){return!c(this.url)||47!==e&&92!==e?47===e?this.state="authority":(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.state="path",--this.pointer):(92===e&&(this.parseError=!0),this.state="special authority ignore slashes"),!0},A.prototype["parse special authority slashes"]=function(e){return 47===e&&47===this.input[this.pointer+1]?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="special authority ignore slashes",--this.pointer),!0},A.prototype["parse special authority ignore slashes"]=function(e){return 47!==e&&92!==e?(this.state="authority",--this.pointer):this.parseError=!0,!0},A.prototype["parse authority"]=function(e,p){if(64===e){this.parseError=!0,this.atFlag&&(this.buffer="%40"+this.buffer),this.atFlag=!0;const e=d(this.buffer);for(let p=0;pMath.pow(2,16)-1)return this.parseError=!0,r;this.url.port=e===(a=this.url.scheme,t[a])?null:e,this.buffer=""}if(this.stateOverride)return!1;this.state="path start",--this.pointer}var a;return!0};const R=new Set([47,92,63,35]);A.prototype["parse file"]=function(e){var p,a;return this.url.scheme="file",47===e||92===e?(92===e&&(this.parseError=!0),this.state="file slash"):null!==this.base&&"file"===this.base.scheme?isNaN(e)?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query):63===e?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query="",this.state="query"):35===e?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):(this.input.length-this.pointer-1==0||(p=e,a=this.input[this.pointer+1],!o(p)||58!==a&&124!==a)||this.input.length-this.pointer-1>=2&&!R.has(this.input[this.pointer+2])?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),S(this.url)):this.parseError=!0,this.state="path",--this.pointer):(this.state="path",--this.pointer),!0},A.prototype["parse file slash"]=function(e){var p;return 47===e||92===e?(92===e&&(this.parseError=!0),this.state="file host"):(null!==this.base&&"file"===this.base.scheme&&(2===(p=this.base.path[0]).length&&o(p.codePointAt(0))&&":"===p[1]?this.url.path.push(this.base.path[0]):this.url.host=this.base.host),this.state="path",--this.pointer),!0},A.prototype["parse file host"]=function(e,p){if(isNaN(e)||47===e||92===e||63===e||35===e)if(--this.pointer,!this.stateOverride&&m(this.buffer))this.parseError=!0,this.state="path";else if(""===this.buffer){if(this.url.host="",this.stateOverride)return!1;this.state="path start"}else{let e=b(this.buffer,c(this.url));if(e===r)return r;if("localhost"===e&&(e=""),this.url.host=e,this.stateOverride)return!1;this.buffer="",this.state="path start"}else this.buffer+=p;return!0},A.prototype["parse path start"]=function(e){return c(this.url)?(92===e&&(this.parseError=!0),this.state="path",47!==e&&92!==e&&--this.pointer):this.stateOverride||63!==e?this.stateOverride||35!==e?void 0!==e&&(this.state="path",47!==e&&--this.pointer):(this.url.fragment="",this.state="fragment"):(this.url.query="",this.state="query"),!0},A.prototype["parse path"]=function(e){if(isNaN(e)||47===e||c(this.url)&&92===e||!this.stateOverride&&(63===e||35===e)){if(c(this.url)&&92===e&&(this.parseError=!0),".."===(p=(p=this.buffer).toLowerCase())||"%2e."===p||".%2e"===p||"%2e%2e"===p?(S(this.url),47===e||c(this.url)&&92===e||this.url.path.push("")):!l(this.buffer)||47===e||c(this.url)&&92===e?l(this.buffer)||("file"===this.url.scheme&&0===this.url.path.length&&m(this.buffer)&&(""!==this.url.host&&null!==this.url.host&&(this.parseError=!0,this.url.host=""),this.buffer=this.buffer[0]+":"),this.url.path.push(this.buffer)):this.url.path.push(""),this.buffer="","file"===this.url.scheme&&(void 0===e||63===e||35===e))for(;this.url.path.length>1&&""===this.url.path[0];)this.parseError=!0,this.url.path.shift();63===e&&(this.url.query="",this.state="query"),35===e&&(this.url.fragment="",this.state="fragment")}else 37!==e||n(this.input[this.pointer+1])&&n(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=T(e,g);var p;return!0},A.prototype["parse cannot-be-a-base-URL path"]=function(e){return 63===e?(this.url.query="",this.state="query"):35===e?(this.url.fragment="",this.state="fragment"):(isNaN(e)||37===e||(this.parseError=!0),37!==e||n(this.input[this.pointer+1])&&n(this.input[this.pointer+2])||(this.parseError=!0),isNaN(e)||(this.url.path[0]=this.url.path[0]+T(e,v))),!0},A.prototype["parse query"]=function(e,p){if(isNaN(e)||!this.stateOverride&&35===e){c(this.url)&&"ws"!==this.url.scheme&&"wss"!==this.url.scheme||(this.encodingOverride="utf-8");const p=new Buffer(this.buffer);for(let e=0;e126||34===p[e]||35===p[e]||60===p[e]||62===p[e]?this.url.query+=h(p[e]):this.url.query+=String.fromCodePoint(p[e]);this.buffer="",35===e&&(this.url.fragment="",this.state="fragment")}else 37!==e||n(this.input[this.pointer+1])&&n(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=p;return!0},A.prototype["parse fragment"]=function(e){return isNaN(e)||(0===e?this.parseError=!0:(37!==e||n(this.input[this.pointer+1])&&n(this.input[this.pointer+2])||(this.parseError=!0),this.url.fragment+=T(e,v))),!0},e.exports.serializeURL=function(e,p){let a=e.scheme+":";if(null!==e.host?(a+="//",""===e.username&&""===e.password||(a+=e.username,""!==e.password&&(a+=":"+e.password),a+="@"),a+=y(e.host),null!==e.port&&(a+=":"+e.port)):null===e.host&&"file"===e.scheme&&(a+="//"),e.cannotBeABaseURL)a+=e.path[0];else for(const p of e.path)a+="/"+p;return null!==e.query&&(a+="?"+e.query),p||null===e.fragment||(a+="#"+e.fragment),a},e.exports.serializeURLOrigin=function(p){switch(p.scheme){case"blob":try{return e.exports.serializeURLOrigin(e.exports.parseURL(p.path[0]))}catch(e){return"null"}case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return function(e){let p=e.scheme+"://";return p+=y(e.host),null!==e.port&&(p+=":"+e.port),p}({scheme:p.scheme,host:p.host,port:p.port});case"file":return"file://";default:return"null"}},e.exports.basicURLParse=function(e,p){void 0===p&&(p={});const a=new A(e,p.baseURL,p.encodingOverride,p.url,p.stateOverride);return a.failure?"failure":a.url},e.exports.setTheUsername=function(e,a){e.username="";const t=p.ucs2.decode(a);for(let p=0;p!!e&&e[r]instanceof t.implementation,create(e,p){let a=Object.create(d.prototype);return this.setup(a,e,p),a},setup(e,p,d){d||(d={}),d.wrapper=e,e[r]=new t.implementation(p,d),e[r][a.wrapperSymbol]=e},interface:d,expose:{Window:{URL:d},Worker:{URL:d}}}}(At);var Kt=At.exports;Ot.URL=Kt.interface,Ot.serializeURL=zt.serializeURL,Ot.serializeURLOrigin=zt.serializeURLOrigin,Ot.basicURLParse=zt.basicURLParse,Ot.setTheUsername=zt.setTheUsername,Ot.setThePassword=zt.setThePassword,Ot.serializeHost=zt.serializeHost,Ot.serializeInteger=zt.serializeInteger,Ot.parseURL=zt.parseURL;const Jt=P.default.Readable,Yt=Symbol("buffer"),Zt=Symbol("type");class Qt{constructor(){this[Zt]="";const e=arguments[0],p=arguments[1],a=[];let t=0;if(e){const p=e,r=Number(p.length);for(let e=0;e1&&void 0!==arguments[1]?arguments[1]:{},t=a.size;let r=void 0===t?0:t;var d=a.timeout;let i=void 0===d?0:d;null==e?e=null:ir(e)?e=Buffer.from(e.toString()):sr(e)||Buffer.isBuffer(e)||("[object ArrayBuffer]"===Object.prototype.toString.call(e)?e=Buffer.from(e):ArrayBuffer.isView(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):e instanceof P.default||(e=Buffer.from(String(e)))),this[ar]={body:e,disturbed:!1,error:null},this.size=r,this.timeout=i,e instanceof P.default&&e.on("error",(function(e){const a="AbortError"===e.name?e:new er(`Invalid response body while trying to fetch ${p.url}: ${e.message}`,"system",e);p[ar].error=a}))}function dr(){var e=this;if(this[ar].disturbed)return rr.Promise.reject(new TypeError(`body used already for: ${this.url}`));if(this[ar].disturbed=!0,this[ar].error)return rr.Promise.reject(this[ar].error);let p=this.body;if(null===p)return rr.Promise.resolve(Buffer.alloc(0));if(sr(p)&&(p=p.stream()),Buffer.isBuffer(p))return rr.Promise.resolve(p);if(!(p instanceof P.default))return rr.Promise.resolve(Buffer.alloc(0));let a=[],t=0,r=!1;return new rr.Promise((function(d,i){let s;e.timeout&&(s=setTimeout((function(){r=!0,i(new er(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))}),e.timeout)),p.on("error",(function(p){"AbortError"===p.name?(r=!0,i(p)):i(new er(`Invalid response body while trying to fetch ${e.url}: ${p.message}`,"system",p))})),p.on("data",(function(p){if(!r&&null!==p){if(e.size&&t+p.length>e.size)return r=!0,void i(new er(`content size at ${e.url} over limit: ${e.size}`,"max-size"));t+=p.length,a.push(p)}})),p.on("end",(function(){if(!r){clearTimeout(s);try{d(Buffer.concat(a,t))}catch(p){i(new er(`Could not create Buffer from response body for ${e.url}: ${p.message}`,"system",p))}}}))}))}function ir(e){return"object"==typeof e&&"function"==typeof e.append&&"function"==typeof e.delete&&"function"==typeof e.get&&"function"==typeof e.getAll&&"function"==typeof e.has&&"function"==typeof e.set&&("URLSearchParams"===e.constructor.name||"[object URLSearchParams]"===Object.prototype.toString.call(e)||"function"==typeof e.sort)}function sr(e){return"object"==typeof e&&"function"==typeof e.arrayBuffer&&"string"==typeof e.type&&"function"==typeof e.stream&&"function"==typeof e.constructor&&"string"==typeof e.constructor.name&&/^(Blob|File)$/.test(e.constructor.name)&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function or(e){let p,a,t=e.body;if(e.bodyUsed)throw new Error("cannot clone body after it is used");return t instanceof P.default&&"function"!=typeof t.getBoundary&&(p=new tr,a=new tr,t.pipe(p),t.pipe(a),e[ar].body=p,t=a),t}function nr(e){return null===e?null:"string"==typeof e?"text/plain;charset=UTF-8":ir(e)?"application/x-www-form-urlencoded;charset=UTF-8":sr(e)?e.type||null:Buffer.isBuffer(e)||"[object ArrayBuffer]"===Object.prototype.toString.call(e)||ArrayBuffer.isView(e)?null:"function"==typeof e.getBoundary?`multipart/form-data;boundary=${e.getBoundary()}`:e instanceof P.default?null:"text/plain;charset=UTF-8"}function lr(e){const p=e.body;return null===p?0:sr(p)?p.size:Buffer.isBuffer(p)?p.length:p&&"function"==typeof p.getLengthSync&&(p._lengthRetrievers&&0==p._lengthRetrievers.length||p.hasKnownLength&&p.hasKnownLength())?p.getLengthSync():null}rr.prototype={get body(){return this[ar].body},get bodyUsed(){return this[ar].disturbed},arrayBuffer(){return dr.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 dr.call(this).then((function(p){return Object.assign(new Qt([],{type:e.toLowerCase()}),{[Yt]:p})}))},json(){var e=this;return dr.call(this).then((function(p){try{return JSON.parse(p.toString())}catch(p){return rr.Promise.reject(new er(`invalid json response body at ${e.url} reason: ${p.message}`,"invalid-json"))}}))},text(){return dr.call(this).then((function(e){return e.toString()}))},buffer(){return dr.call(this)},textConverted(){var e=this;return dr.call(this).then((function(p){return function(e,p){if("function"!=typeof pr)throw new Error("The package `encoding` must be installed to use the textConverted() function");const a=p.get("content-type");let t,r,d="utf-8";a&&(t=/charset=([^;]*)/i.exec(a));r=e.slice(0,1024).toString(),!t&&r&&(t=/0&&void 0!==arguments[0]?arguments[0]:void 0;if(this[fr]=Object.create(null),e instanceof gr){const p=e.raw(),a=Object.keys(p);for(const e of a)for(const a of p[e])this.append(e,a)}else if(null==e);else{if("object"!=typeof e)throw new TypeError("Provided initializer must be an object");{const p=e[Symbol.iterator];if(null!=p){if("function"!=typeof p)throw new TypeError("Header pairs must be iterable");const a=[];for(const p of e){if("object"!=typeof p||"function"!=typeof p[Symbol.iterator])throw new TypeError("Each header pair must be iterable");a.push(Array.from(p))}for(const e of a){if(2!==e.length)throw new TypeError("Each header pair must be a name/value tuple");this.append(e[0],e[1])}}else for(const p of Object.keys(e)){const a=e[p];this.append(p,a)}}}}get(e){cr(e=`${e}`);const p=vr(this[fr],e);return void 0===p?null:this[fr][p].join(", ")}forEach(e){let p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,a=wr(this),t=0;for(;t1&&void 0!==arguments[1]?arguments[1]:"key+value";return Object.keys(e[fr]).sort().map("key"===p?function(e){return e.toLowerCase()}:"value"===p?function(p){return e[fr][p].join(", ")}:function(p){return[p.toLowerCase(),e[fr][p].join(", ")]})}gr.prototype.entries=gr.prototype[Symbol.iterator],Object.defineProperty(gr.prototype,Symbol.toStringTag,{value:"Headers",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(gr.prototype,{get:{enumerable:!0},forEach:{enumerable:!0},set:{enumerable:!0},append:{enumerable:!0},has:{enumerable:!0},delete:{enumerable:!0},keys:{enumerable:!0},values:{enumerable:!0},entries:{enumerable:!0}});const Er=Symbol("internal");function Tr(e,p){const a=Object.create(_r);return a[Er]={target:e,kind:p,index:0},a}const _r=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==_r)throw new TypeError("Value of `this` is not a HeadersIterator");var e=this[Er];const p=e.target,a=e.kind,t=e.index,r=wr(p,a);return t>=r.length?{value:void 0,done:!0}:(this[Er].index=t+1,{value:r[t],done:!1})}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));function br(e){const p=Object.assign({__proto__:null},e[fr]),a=vr(e[fr],"Host");return void 0!==a&&(p[a]=p[a][0]),p}Object.defineProperty(_r,Symbol.toStringTag,{value:"HeadersIterator",writable:!1,enumerable:!1,configurable:!0});const yr=Symbol("Response internals"),Sr=y.default.STATUS_CODES;class Or{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};rr.call(this,e,p);const a=p.status||200,t=new gr(p.headers);if(null!=e&&!t.has("Content-Type")){const p=nr(e);p&&t.append("Content-Type",p)}this[yr]={url:p.url,status:a,statusText:p.statusText||Sr[a],headers:t,counter:p.counter}}get url(){return this[yr].url||""}get status(){return this[yr].status}get ok(){return this[yr].status>=200&&this[yr].status<300}get redirected(){return this[yr].counter>0}get statusText(){return this[yr].statusText}get headers(){return this[yr].headers}clone(){return new Or(or(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}rr.mixIn(Or.prototype),Object.defineProperties(Or.prototype,{url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}}),Object.defineProperty(Or.prototype,Symbol.toStringTag,{value:"Response",writable:!1,enumerable:!1,configurable:!0});const Ar=Symbol("Request internals"),Rr=L.default.URL||Ot.URL,Nr=L.default.parse,Dr=L.default.format;function Pr(e){return/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(e)&&(e=new Rr(e).toString()),Nr(e)}const kr="destroy"in P.default.Readable.prototype;function Cr(e){return"object"==typeof e&&"object"==typeof e[Ar]}class Vr{constructor(e){let p,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Cr(e)?p=Pr(e.url):(p=e&&e.href?Pr(e.href):Pr(`${e}`),e={});let t=a.method||e.method||"GET";if(t=t.toUpperCase(),(null!=a.body||Cr(e)&&null!==e.body)&&("GET"===t||"HEAD"===t))throw new TypeError("Request with GET/HEAD method cannot have body");let r=null!=a.body?a.body:Cr(e)&&null!==e.body?or(e):null;rr.call(this,r,{timeout:a.timeout||e.timeout||0,size:a.size||e.size||0});const d=new gr(a.headers||e.headers||{});if(null!=r&&!d.has("Content-Type")){const e=nr(r);e&&d.append("Content-Type",e)}let i=Cr(e)?e.signal:null;if("signal"in a&&(i=a.signal),null!=i&&!function(e){const p=e&&"object"==typeof e&&Object.getPrototypeOf(e);return!(!p||"AbortSignal"!==p.constructor.name)}(i))throw new TypeError("Expected signal to be an instanceof AbortSignal");this[Ar]={method:t,redirect:a.redirect||e.redirect||"follow",headers:d,parsedURL:p,signal:i},this.follow=void 0!==a.follow?a.follow:void 0!==e.follow?e.follow:20,this.compress=void 0!==a.compress?a.compress:void 0===e.compress||e.compress,this.counter=a.counter||e.counter||0,this.agent=a.agent||e.agent}get method(){return this[Ar].method}get url(){return Dr(this[Ar].parsedURL)}get headers(){return this[Ar].headers}get redirect(){return this[Ar].redirect}get signal(){return this[Ar].signal}clone(){return new Vr(this)}}function Lr(e){Error.call(this,e),this.type="aborted",this.message=e,Error.captureStackTrace(this,this.constructor)}rr.mixIn(Vr.prototype),Object.defineProperty(Vr.prototype,Symbol.toStringTag,{value:"Request",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(Vr.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0}}),Lr.prototype=Object.create(Error.prototype),Lr.prototype.constructor=Lr,Lr.prototype.name="AbortError";const Ir=L.default.URL||Ot.URL,Fr=P.default.PassThrough,Gr=function(e,p){const a=new Ir(p).hostname,t=new Ir(e).hostname;return a===t||"."===a[a.length-t.length-1]&&a.endsWith(t)},Ur=function(e,p){return new Ir(p).protocol===new Ir(e).protocol};function xr(e,p){if(!xr.Promise)throw new Error("native promise missing, set fetch.Promise to your favorite alternative");return rr.Promise=xr.Promise,new xr.Promise((function(a,t){const r=new Vr(e,p),d=function(e){const p=e[Ar].parsedURL,a=new gr(e[Ar].headers);if(a.has("Accept")||a.set("Accept","*/*"),!p.protocol||!p.hostname)throw new TypeError("Only absolute URLs are supported");if(!/^https?:$/.test(p.protocol))throw new TypeError("Only HTTP(S) protocols are supported");if(e.signal&&e.body instanceof P.default.Readable&&!kr)throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8");let t=null;if(null==e.body&&/^(POST|PUT)$/i.test(e.method)&&(t="0"),null!=e.body){const p=lr(e);"number"==typeof p&&(t=String(p))}t&&a.set("Content-Length",t),a.has("User-Agent")||a.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"),e.compress&&!a.has("Accept-Encoding")&&a.set("Accept-Encoding","gzip,deflate");let r=e.agent;return"function"==typeof r&&(r=r(p)),a.has("Connection")||r||a.set("Connection","close"),Object.assign({},p,{method:e.method,headers:br(a),agent:r})}(r),i=("https:"===d.protocol?S.default:y.default).request,s=r.signal;let o=null;const n=function(){let e=new Lr("The user aborted a request.");t(e),r.body&&r.body instanceof P.default.Readable&&$r(r.body,e),o&&o.body&&o.body.emit("error",e)};if(s&&s.aborted)return void n();const l=function(){n(),c()},m=i(d);let u;function c(){m.abort(),s&&s.removeEventListener("abort",l),clearTimeout(u)}s&&s.addEventListener("abort",l),r.timeout&&m.once("socket",(function(e){u=setTimeout((function(){t(new er(`network timeout at: ${r.url}`,"request-timeout")),c()}),r.timeout)})),m.on("error",(function(e){t(new er(`request to ${r.url} failed, reason: ${e.message}`,"system",e)),o&&o.body&&$r(o.body,e),c()})),function(e,p){let a;e.on("socket",(function(e){a=e})),e.on("response",(function(e){const t=e.headers;"chunked"!==t["transfer-encoding"]||t["content-length"]||e.once("close",(function(e){if(a&&a.listenerCount("data")>0&&!e){const e=new Error("Premature close");e.code="ERR_STREAM_PREMATURE_CLOSE",p(e)}}))}))}(m,(function(e){s&&s.aborted||o&&o.body&&$r(o.body,e)})),parseInt(process.version.substring(1))<14&&m.on("socket",(function(e){e.addListener("close",(function(p){const a=e.listenerCount("data")>0;if(o&&a&&!p&&(!s||!s.aborted)){const e=new Error("Premature close");e.code="ERR_STREAM_PREMATURE_CLOSE",o.body.emit("error",e)}}))})),m.on("response",(function(e){clearTimeout(u);const p=function(e){const p=new gr;for(const a of Object.keys(e))if(!mr.test(a))if(Array.isArray(e[a]))for(const t of e[a])ur.test(t)||(void 0===p[fr][a]?p[fr][a]=[t]:p[fr][a].push(t));else ur.test(e[a])||(p[fr][a]=[e[a]]);return p}(e.headers);if(xr.isRedirect(e.statusCode)){const d=p.get("Location");let i=null;try{i=null===d?null:new Ir(d,r.url).toString()}catch(e){if("manual"!==r.redirect)return t(new er(`uri requested responds with an invalid redirect URL: ${d}`,"invalid-redirect")),void c()}switch(r.redirect){case"error":return t(new er(`uri requested responds with a redirect, redirect mode is set to error: ${r.url}`,"no-redirect")),void c();case"manual":if(null!==i)try{p.set("Location",i)}catch(e){t(e)}break;case"follow":if(null===i)break;if(r.counter>=r.follow)return t(new er(`maximum redirect reached at: ${r.url}`,"max-redirect")),void c();const d={headers:new gr(r.headers),follow:r.follow,counter:r.counter+1,agent:r.agent,compress:r.compress,method:r.method,body:r.body,signal:r.signal,timeout:r.timeout,size:r.size};if(!Gr(r.url,i)||!Ur(r.url,i))for(const e of["authorization","www-authenticate","cookie","cookie2"])d.headers.delete(e);return 303!==e.statusCode&&r.body&&null===lr(r)?(t(new er("Cannot follow redirect with body being a readable stream","unsupported-redirect")),void c()):(303!==e.statusCode&&(301!==e.statusCode&&302!==e.statusCode||"POST"!==r.method)||(d.method="GET",d.body=void 0,d.headers.delete("content-length")),a(xr(new Vr(i,d))),void c())}}e.once("end",(function(){s&&s.removeEventListener("abort",l)}));let d=e.pipe(new Fr);const i={url:r.url,status:e.statusCode,statusText:e.statusMessage,headers:p,size:r.size,timeout:r.timeout,counter:r.counter},n=p.get("Content-Encoding");if(!r.compress||"HEAD"===r.method||null===n||204===e.statusCode||304===e.statusCode)return o=new Or(d,i),void a(o);const m={flush:F.default.Z_SYNC_FLUSH,finishFlush:F.default.Z_SYNC_FLUSH};if("gzip"==n||"x-gzip"==n)return d=d.pipe(F.default.createGunzip(m)),o=new Or(d,i),void a(o);if("deflate"==n||"x-deflate"==n){const p=e.pipe(new Fr);return p.once("data",(function(e){d=8==(15&e[0])?d.pipe(F.default.createInflate()):d.pipe(F.default.createInflateRaw()),o=new Or(d,i),a(o)})),void p.on("end",(function(){o||(o=new Or(d,i),a(o))}))}if("br"==n&&"function"==typeof F.default.createBrotliDecompress)return d=d.pipe(F.default.createBrotliDecompress()),o=new Or(d,i),void a(o);o=new Or(d,i),a(o)})),function(e,p){const a=p.body;null===a?e.end():sr(a)?a.stream().pipe(e):Buffer.isBuffer(a)?(e.write(a),e.end()):a.pipe(e)}(m,r)}))}function $r(e,p){e.destroy?e.destroy(p):(e.emit("error",p),e.end())}xr.isRedirect=function(e){return 301===e||302===e||303===e||307===e||308===e},xr.Promise=global.Promise;class jr extends Error{constructor(e){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="Deprecation"}}var Br={exports:{}},qr=function e(p,a){if(p&&a)return e(p)(a);if("function"!=typeof p)throw new TypeError("need wrapper function");return Object.keys(p).forEach((function(e){t[e]=p[e]})),t;function t(){for(var e=new Array(arguments.length),a=0;aconsole.warn(e))),Kr=zr((e=>console.warn(e)));class Jr extends Error{constructor(e,p,a){let t;super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="HttpError",this.status=p,"headers"in a&&void 0!==a.headers&&(t=a.headers),"response"in a&&(this.response=a.response,t=a.response.headers);const r=Object.assign({},a.request);a.request.headers.authorization&&(r.headers=Object.assign({},a.request.headers,{authorization:a.request.headers.authorization.replace(/ .*$/," [REDACTED]")})),r.url=r.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=r,Object.defineProperty(this,"code",{get:()=>(Xr(new jr("[@octokit/request-error] `error.code` is deprecated, use `error.status`.")),p)}),Object.defineProperty(this,"headers",{get:()=>(Kr(new jr("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`.")),t||{})})}}function Yr(e){const p=e.request&&e.request.log?e.request.log:console;(nt(e.body)||Array.isArray(e.body))&&(e.body=JSON.stringify(e.body));let a,t,r={};return(e.request&&e.request.fetch||globalThis.fetch||xr)(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect,...e.body&&{duplex:"half"}},e.request)).then((async d=>{t=d.url,a=d.status;for(const e of d.headers)r[e[0]]=e[1];if("deprecation"in r){const a=r.link&&r.link.match(/<([^>]+)>; rel="deprecation"/),t=a&&a.pop();p.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${r.sunset}${t?`. See ${t}`:""}`)}if(204!==a&&205!==a){if("HEAD"===e.method){if(a<400)return;throw new Jr(d.statusText,a,{response:{url:t,status:a,headers:r,data:void 0},request:e})}if(304===a)throw new Jr("Not modified",a,{response:{url:t,status:a,headers:r,data:await Zr(d)},request:e});if(a>=400){const p=await Zr(d),i=new Jr(function(e){if("string"==typeof e)return e;if("message"in e)return Array.isArray(e.errors)?`${e.message}: ${e.errors.map(JSON.stringify).join(", ")}`:e.message;return`Unknown error: ${JSON.stringify(e)}`}(p),a,{response:{url:t,status:a,headers:r,data:p},request:e});throw i}return Zr(d)}})).then((e=>({status:a,url:t,headers:r,data:e}))).catch((p=>{if(p instanceof Jr)throw p;if("AbortError"===p.name)throw p;throw new Jr(p.message,500,{request:e})}))}async function Zr(e){const p=e.headers.get("content-type");return/application\/json/.test(p)?e.json():!p||/^text\/|charset=utf-8$/.test(p)?e.text():function(e){return e.arrayBuffer()}(e)}const Qr=function e(p,a){const t=p.defaults(a);return Object.assign((function(p,a){const r=t.merge(p,a);if(!r.request||!r.request.hook)return Yr(t.parse(r));const d=(e,p)=>Yr(t.parse(t.merge(e,p)));return Object.assign(d,{endpoint:t,defaults:e.bind(null,t)}),r.request.hook(d,r)}),{endpoint:t,defaults:e.bind(null,t)})}(St,{headers:{"user-agent":`octokit-request.js/6.2.8 ${Xa()}`}});var ed=class extends Error{constructor(e,p,a){super("Request failed due to following response errors:\n"+a.errors.map((e=>` - ${e.message}`)).join("\n")),this.request=e,this.headers=p,this.response=a,this.name="GraphqlResponseError",this.errors=a.errors,this.data=a.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}},pd=["method","baseUrl","url","headers","request","query","mediaType"],ad=["query","method","url"],td=/\/api\/v3\/?$/;function rd(e,p){const a=e.defaults(p);return Object.assign(((e,p)=>function(e,p,a){if(a){if("string"==typeof p&&"query"in a)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(const e in a)if(ad.includes(e))return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}const t="string"==typeof p?Object.assign({query:p},a):p,r=Object.keys(t).reduce(((e,p)=>pd.includes(p)?(e[p]=t[p],e):(e.variables||(e.variables={}),e.variables[p]=t[p],e)),{}),d=t.baseUrl||e.endpoint.DEFAULTS.baseUrl;return td.test(d)&&(r.url=d.replace(td,"/api/graphql")),e(r).then((e=>{if(e.data.errors){const p={};for(const a of Object.keys(e.headers))p[a]=e.headers[a];throw new ed(r,p,e.data)}return e.data.data}))}(a,e,p)),{defaults:rd.bind(null,a),endpoint:a.endpoint})}rd(Qr,{headers:{"user-agent":`octokit-graphql.js/5.0.6 ${Xa()}`},method:"POST",url:"/graphql"});const dd=/^v1\./,id=/^ghs_/,sd=/^ghu_/;async function od(e){const p=3===e.split(/\./).length,a=dd.test(e)||id.test(e),t=sd.test(e);return{type:"token",token:e,tokenType:p?"app":a?"installation":t?"user-to-server":"oauth"}}async function nd(e,p,a,t){const r=p.endpoint.merge(a,t);return r.headers.authorization=function(e){return 3===e.split(/\./).length?`bearer ${e}`:`token ${e}`}(e),p(r)}const ld=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if("string"!=typeof e)throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(od.bind(null,e),{hook:nd.bind(null,e)})};var md="4.2.4",ud=class{static defaults(e){return class extends(this){constructor(...p){const a=p[0]||{};super("function"!=typeof e?Object.assign({},e,a,a.userAgent&&e.userAgent?{userAgent:`${a.userAgent} ${e.userAgent}`}:null):e(a))}}}static plugin(...e){var p;const a=this.plugins;return(p=class extends(this){}).plugins=a.concat(e.filter((e=>!a.includes(e)))),p}constructor(e={}){const p=new st,a={baseUrl:Qr.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:p.bind(null,"request")}),mediaType:{previews:[],format:""}};var t;if(a.headers["user-agent"]=[e.userAgent,`octokit-core.js/${md} ${Xa()}`].filter(Boolean).join(" "),e.baseUrl&&(a.baseUrl=e.baseUrl),e.previews&&(a.mediaType.previews=e.previews),e.timeZone&&(a.headers["time-zone"]=e.timeZone),this.request=Qr.defaults(a),this.graphql=(t=this.request,rd(t,{method:"POST",url:"/graphql"})).defaults(a),this.log=Object.assign({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},e.log),this.hook=p,e.authStrategy){const{authStrategy:a,...t}=e,r=a(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:t},e.auth));p.wrap("request",r.hook),this.auth=r}else if(e.auth){const a=ld(e.auth);p.wrap("request",a.hook),this.auth=a}else this.auth=async()=>({type:"unauthenticated"});this.constructor.plugins.forEach((p=>{Object.assign(this,p(this,e))}))}};ud.VERSION=md,ud.plugins=[];function cd(e){e.hook.wrap("request",((p,a)=>{e.log.debug("request",a);const t=Date.now(),r=e.request.endpoint.parse(a),d=r.url.replace(a.baseUrl,"");return p(a).then((p=>(e.log.info(`${r.method} ${d} - ${p.status} in ${Date.now()-t}ms`),p))).catch((p=>{throw e.log.info(`${r.method} ${d} - ${p.status} in ${Date.now()-t}ms`),p}))}))}cd.VERSION="1.0.4";function hd(e,p,a){const t="function"==typeof p?p.endpoint(a):e.request.endpoint(p,a),r="function"==typeof p?p:e.request,d=t.method,i=t.headers;let s=t.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!s)return{done:!0};try{const e=function(e){if(!e.data)return{...e,data:[]};if(!("total_count"in e.data)||"url"in e.data)return e;const p=e.data.incomplete_results,a=e.data.repository_selection,t=e.data.total_count;delete e.data.incomplete_results,delete e.data.repository_selection,delete e.data.total_count;const r=Object.keys(e.data)[0],d=e.data[r];return e.data=d,void 0!==p&&(e.data.incomplete_results=p),void 0!==a&&(e.data.repository_selection=a),e.data.total_count=t,e}(await r({method:d,url:s,headers:i}));return s=((e.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1],{value:e}}catch(e){if(409!==e.status)throw e;return s="",{value:{status:200,headers:{},data:[]}}}}})}}function vd(e,p,a,t){return"function"==typeof a&&(t=a,a=void 0),fd(e,[],hd(e,p,a)[Symbol.asyncIterator](),t)}function fd(e,p,a,t){return a.next().then((r=>{if(r.done)return p;let d=!1;return p=p.concat(t?t(r.value,(function(){d=!0})):r.value.data),d?p:fd(e,p,a,t)}))}function gd(e){return{paginate:Object.assign(vd.bind(null,e),{iterator:hd.bind(null,e)})}}Object.assign(vd,{iterator:hd}),gd.VERSION="6.1.2";const wd="7.2.3";var Ed={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],addSelectedRepoToRequiredWorkflow:["PUT /orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repositories/{repository_id}/environments/{environment_name}/variables"],createOrUpdateEnvironmentSecret:["PUT /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],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"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createRequiredWorkflow:["POST /orgs/{org}/actions/required_workflows"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteRequiredWorkflow:["DELETE /orgs/{org}/actions/required_workflows/{required_workflow_id}"],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"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/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"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getEnvironmentPublicKey:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],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}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoRequiredWorkflow:["GET /repos/{org}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}"],getRepoRequiredWorkflowUsage:["GET /repos/{org}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}/timing"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getRequiredWorkflow:["GET /orgs/{org}/actions/required_workflows/{required_workflow_id}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repositories/{repository_id}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repositories/{repository_id}/environments/{environment_name}/variables"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoRequiredWorkflows:["GET /repos/{org}/{repo}/actions/required_workflows"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRequiredWorkflowRuns:["GET /repos/{owner}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}/runs"],listRequiredWorkflows:["GET /orgs/{org}/actions/required_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"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelectedRepositoriesRequiredWorkflow:["GET /orgs/{org}/actions/required_workflows/{required_workflow_id}/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"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],removeSelectedRepoFromRequiredWorkflow:["DELETE /orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedReposToRequiredWorkflow:["PUT /orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"],updateRequiredWorkflow:["PATCH /orgs/{org}/actions/required_workflows/{required_workflow_id}"]},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}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],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"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],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"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["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"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteCodespacesBillingUsers:["DELETE /orgs/{org}/codespaces/billing/selected_users"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setCodespacesBilling:["PUT /orgs/{org}/codespaces/billing"],setCodespacesBillingUsers:["POST /orgs/{org}/codespaces/billing/selected_users"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},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}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/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"],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"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{cancelImport:["DELETE /repos/{owner}/{repo}/import"],deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],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}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],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"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"],updateImport:["PATCH /repos/{owner}/{repo}/import"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}"],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"],delete:["DELETE /orgs/{org}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],enableOrDisableSecurityProductOnAllOrgRepos:["POST /orgs/{org}/{security_product}/{enablement}"],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"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],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"],listPatGrantRepositories:["GET /organizations/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /organizations/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /organizations/{org}/personal-access-token-requests"],listPatGrants:["GET /organizations/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers"],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],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}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}"],reviewPatGrantRequest:["POST /organizations/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /organizations/{org}/personal-access-token-requests"],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}"],updatePatAccess:["POST /organizations/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /organizations/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}"],createCard:["POST /projects/columns/{column_id}/cards"],createColumn:["POST /projects/{project_id}/columns"],createForAuthenticatedUser:["POST /user/projects"],createForOrg:["POST /orgs/{org}/projects"],createForRepo:["POST /repos/{owner}/{repo}/projects"],delete:["DELETE /projects/{project_id}"],deleteCard:["DELETE /projects/columns/cards/{card_id}"],deleteColumn:["DELETE /projects/columns/{column_id}"],get:["GET /projects/{project_id}"],getCard:["GET /projects/columns/cards/{card_id}"],getColumn:["GET /projects/columns/{column_id}"],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission"],listCards:["GET /projects/columns/{column_id}/cards"],listCollaborators:["GET /projects/{project_id}/collaborators"],listColumns:["GET /projects/{project_id}/columns"],listForOrg:["GET /orgs/{org}/projects"],listForRepo:["GET /repos/{owner}/{repo}/projects"],listForUser:["GET /users/{username}/projects"],moveCard:["POST /projects/columns/cards/{card_id}/moves"],moveColumn:["POST /projects/columns/{column_id}/moves"],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}"],update:["PATCH /projects/{project_id}"],updateCard:["PATCH /projects/columns/cards/{card_id}"],updateColumn:["PATCH /projects/columns/{column_id}"]},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"],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"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["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"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployment"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createTagProtection:["POST /repos/{owner}/{repo}/tags/protection"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],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"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],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}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteTagProtection:["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disableLfsForRepo:["DELETE /repos/{owner}/{repo}/lfs"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],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"],enableLfsForRepo:["PUT /repos/{owner}/{repo}/lfs"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],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"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],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"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],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"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],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"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTagProtection:["GET /repos/{owner}/{repo}/tags/protection"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],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"],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}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_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}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_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"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},securityAdvisories:{createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],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"],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",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],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",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_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}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};const Td=new Map;for(const[e,p]of Object.entries(Ed))for(const[a,t]of Object.entries(p)){const[p,r,d]=t,[i,s]=p.split(/ /),o=Object.assign({method:i,url:s},r);Td.has(e)||Td.set(e,new Map),Td.get(e).set(a,{scope:e,methodName:a,endpointDefaults:o,decorations:d})}const _d={get({octokit:e,scope:p,cache:a},t){if(a[t])return a[t];const{decorations:r,endpointDefaults:d}=Td.get(p).get(t);return a[t]=r?function(e,p,a,t,r){const d=e.request.defaults(t);function i(...t){let i=d.endpoint.merge(...t);if(r.mapToData)return i=Object.assign({},i,{data:i[r.mapToData],[r.mapToData]:void 0}),d(i);if(r.renamed){const[t,d]=r.renamed;e.log.warn(`octokit.${p}.${a}() has been renamed to octokit.${t}.${d}()`)}if(r.deprecated&&e.log.warn(r.deprecated),r.renamedParameters){const i=d.endpoint.merge(...t);for(const[t,d]of Object.entries(r.renamedParameters))t in i&&(e.log.warn(`"${t}" parameter is deprecated for "octokit.${p}.${a}()". Use "${d}" instead`),d in i||(i[d]=i[t]),delete i[t]);return d(i)}return d(...t)}return Object.assign(i,d)}(e,p,t,d,r):e.request.defaults(d),a[t]}};function bd(e){const p=function(e){const p={};for(const a of Td.keys())p[a]=new Proxy({octokit:e,scope:a,cache:{}},_d);return p}(e);return{...p,rest:p}}bd.VERSION=wd;var yd=ud.plugin(cd,bd,gd).defaults({userAgent:"octokit-rest.js/19.0.13"}),Sd={exports:{}};var Od={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};var Ad="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};!function(e,p){const{MAX_SAFE_COMPONENT_LENGTH:a,MAX_SAFE_BUILD_LENGTH:t}=Od,r=Ad,d=(p=e.exports={}).re=[],i=p.safeRe=[],s=p.src=[],o=p.t={};let n=0;const l="[a-zA-Z0-9-]",m=[["\\s",1],["\\d",a],[l,t]],u=(e,p,a)=>{const t=(e=>{for(const[p,a]of m)e=e.split(`${p}*`).join(`${p}{0,${a}}`).split(`${p}+`).join(`${p}{1,${a}}`);return e})(p),l=n++;r(e,l,p),o[e]=l,s[l]=p,d[l]=new RegExp(p,a?"g":void 0),i[l]=new RegExp(t,a?"g":void 0)};u("NUMERICIDENTIFIER","0|[1-9]\\d*"),u("NUMERICIDENTIFIERLOOSE","\\d+"),u("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${l}*`),u("MAINVERSION",`(${s[o.NUMERICIDENTIFIER]})\\.(${s[o.NUMERICIDENTIFIER]})\\.(${s[o.NUMERICIDENTIFIER]})`),u("MAINVERSIONLOOSE",`(${s[o.NUMERICIDENTIFIERLOOSE]})\\.(${s[o.NUMERICIDENTIFIERLOOSE]})\\.(${s[o.NUMERICIDENTIFIERLOOSE]})`),u("PRERELEASEIDENTIFIER",`(?:${s[o.NUMERICIDENTIFIER]}|${s[o.NONNUMERICIDENTIFIER]})`),u("PRERELEASEIDENTIFIERLOOSE",`(?:${s[o.NUMERICIDENTIFIERLOOSE]}|${s[o.NONNUMERICIDENTIFIER]})`),u("PRERELEASE",`(?:-(${s[o.PRERELEASEIDENTIFIER]}(?:\\.${s[o.PRERELEASEIDENTIFIER]})*))`),u("PRERELEASELOOSE",`(?:-?(${s[o.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[o.PRERELEASEIDENTIFIERLOOSE]})*))`),u("BUILDIDENTIFIER",`${l}+`),u("BUILD",`(?:\\+(${s[o.BUILDIDENTIFIER]}(?:\\.${s[o.BUILDIDENTIFIER]})*))`),u("FULLPLAIN",`v?${s[o.MAINVERSION]}${s[o.PRERELEASE]}?${s[o.BUILD]}?`),u("FULL",`^${s[o.FULLPLAIN]}$`),u("LOOSEPLAIN",`[v=\\s]*${s[o.MAINVERSIONLOOSE]}${s[o.PRERELEASELOOSE]}?${s[o.BUILD]}?`),u("LOOSE",`^${s[o.LOOSEPLAIN]}$`),u("GTLT","((?:<|>)?=?)"),u("XRANGEIDENTIFIERLOOSE",`${s[o.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),u("XRANGEIDENTIFIER",`${s[o.NUMERICIDENTIFIER]}|x|X|\\*`),u("XRANGEPLAIN",`[v=\\s]*(${s[o.XRANGEIDENTIFIER]})(?:\\.(${s[o.XRANGEIDENTIFIER]})(?:\\.(${s[o.XRANGEIDENTIFIER]})(?:${s[o.PRERELEASE]})?${s[o.BUILD]}?)?)?`),u("XRANGEPLAINLOOSE",`[v=\\s]*(${s[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[o.XRANGEIDENTIFIERLOOSE]})(?:${s[o.PRERELEASELOOSE]})?${s[o.BUILD]}?)?)?`),u("XRANGE",`^${s[o.GTLT]}\\s*${s[o.XRANGEPLAIN]}$`),u("XRANGELOOSE",`^${s[o.GTLT]}\\s*${s[o.XRANGEPLAINLOOSE]}$`),u("COERCE",`(^|[^\\d])(\\d{1,${a}})(?:\\.(\\d{1,${a}}))?(?:\\.(\\d{1,${a}}))?(?:$|[^\\d])`),u("COERCERTL",s[o.COERCE],!0),u("LONETILDE","(?:~>?)"),u("TILDETRIM",`(\\s*)${s[o.LONETILDE]}\\s+`,!0),p.tildeTrimReplace="$1~",u("TILDE",`^${s[o.LONETILDE]}${s[o.XRANGEPLAIN]}$`),u("TILDELOOSE",`^${s[o.LONETILDE]}${s[o.XRANGEPLAINLOOSE]}$`),u("LONECARET","(?:\\^)"),u("CARETTRIM",`(\\s*)${s[o.LONECARET]}\\s+`,!0),p.caretTrimReplace="$1^",u("CARET",`^${s[o.LONECARET]}${s[o.XRANGEPLAIN]}$`),u("CARETLOOSE",`^${s[o.LONECARET]}${s[o.XRANGEPLAINLOOSE]}$`),u("COMPARATORLOOSE",`^${s[o.GTLT]}\\s*(${s[o.LOOSEPLAIN]})$|^$`),u("COMPARATOR",`^${s[o.GTLT]}\\s*(${s[o.FULLPLAIN]})$|^$`),u("COMPARATORTRIM",`(\\s*)${s[o.GTLT]}\\s*(${s[o.LOOSEPLAIN]}|${s[o.XRANGEPLAIN]})`,!0),p.comparatorTrimReplace="$1$2$3",u("HYPHENRANGE",`^\\s*(${s[o.XRANGEPLAIN]})\\s+-\\s+(${s[o.XRANGEPLAIN]})\\s*$`),u("HYPHENRANGELOOSE",`^\\s*(${s[o.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[o.XRANGEPLAINLOOSE]})\\s*$`),u("STAR","(<|>)?=?\\s*\\*"),u("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),u("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(Sd,Sd.exports);var Rd=Sd.exports;const Nd=Object.freeze({loose:!0}),Dd=Object.freeze({});var Pd=e=>e?"object"!=typeof e?Nd:e:Dd;const kd=/^[0-9]+$/,Cd=(e,p)=>{const a=kd.test(e),t=kd.test(p);return a&&t&&(e=+e,p=+p),e===p?0:a&&!t?-1:t&&!a?1:eCd(p,e)};const Ld=Ad,{MAX_LENGTH:Id,MAX_SAFE_INTEGER:Fd}=Od,{safeRe:Gd,t:Ud}=Rd,xd=Pd,{compareIdentifiers:$d}=Vd;class jd{constructor(e,p){if(p=xd(p),e instanceof jd){if(e.loose===!!p.loose&&e.includePrerelease===!!p.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>Id)throw new TypeError(`version is longer than ${Id} characters`);Ld("SemVer",e,p),this.options=p,this.loose=!!p.loose,this.includePrerelease=!!p.includePrerelease;const a=e.trim().match(p.loose?Gd[Ud.LOOSE]:Gd[Ud.FULL]);if(!a)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>Fd||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Fd||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Fd||this.patch<0)throw new TypeError("Invalid patch version");a[4]?this.prerelease=a[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const p=+e;if(p>=0&&p=0;)"number"==typeof this.prerelease[t]&&(this.prerelease[t]++,t=-2);if(-1===t){if(p===this.prerelease.join(".")&&!1===a)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(p){let t=[p,e];!1===a&&(t=[p]),0===$d(this.prerelease[0],p)?isNaN(this.prerelease[1])&&(this.prerelease=t):this.prerelease=t}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}var Bd=jd;const qd=Bd;var Md=(e,p,a=!1)=>{if(e instanceof qd)return e;try{return new qd(e,p)}catch(e){if(!a)return null;throw e}};const Hd=Md;var Wd=(e,p)=>{const a=Hd(e,p);return a?a.version:null};const zd=Md;var Xd=(e,p)=>{const a=zd(e.trim().replace(/^[=v]+/,""),p);return a?a.version:null};const Kd=Bd;var Jd=(e,p,a,t,r)=>{"string"==typeof a&&(r=t,t=a,a=void 0);try{return new Kd(e instanceof Kd?e.version:e,a).inc(p,t,r).version}catch(e){return null}};const Yd=Md;var Zd=(e,p)=>{const a=Yd(e,null,!0),t=Yd(p,null,!0),r=a.compare(t);if(0===r)return null;const d=r>0,i=d?a:t,s=d?t:a,o=!!i.prerelease.length;if(!!s.prerelease.length&&!o)return s.patch||s.minor?i.patch?"patch":i.minor?"minor":"major":"major";const n=o?"pre":"";return a.major!==t.major?n+"major":a.minor!==t.minor?n+"minor":a.patch!==t.patch?n+"patch":"prerelease"};const Qd=Bd;var ei=(e,p)=>new Qd(e,p).major;const pi=Bd;var ai=(e,p)=>new pi(e,p).minor;const ti=Bd;var ri=(e,p)=>new ti(e,p).patch;const di=Md;var ii=(e,p)=>{const a=di(e,p);return a&&a.prerelease.length?a.prerelease:null};const si=Bd;var oi=(e,p,a)=>new si(e,a).compare(new si(p,a));const ni=oi;var li=(e,p,a)=>ni(p,e,a);const mi=oi;var ui=(e,p)=>mi(e,p,!0);const ci=Bd;var hi=(e,p,a)=>{const t=new ci(e,a),r=new ci(p,a);return t.compare(r)||t.compareBuild(r)};const vi=hi;var fi=(e,p)=>e.sort(((e,a)=>vi(e,a,p)));const gi=hi;var wi=(e,p)=>e.sort(((e,a)=>gi(a,e,p)));const Ei=oi;var Ti=(e,p,a)=>Ei(e,p,a)>0;const _i=oi;var bi=(e,p,a)=>_i(e,p,a)<0;const yi=oi;var Si=(e,p,a)=>0===yi(e,p,a);const Oi=oi;var Ai=(e,p,a)=>0!==Oi(e,p,a);const Ri=oi;var Ni=(e,p,a)=>Ri(e,p,a)>=0;const Di=oi;var Pi=(e,p,a)=>Di(e,p,a)<=0;const ki=Si,Ci=Ai,Vi=Ti,Li=Ni,Ii=bi,Fi=Pi;var Gi=(e,p,a,t)=>{switch(p){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof a&&(a=a.version),e===a;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof a&&(a=a.version),e!==a;case"":case"=":case"==":return ki(e,a,t);case"!=":return Ci(e,a,t);case">":return Vi(e,a,t);case">=":return Li(e,a,t);case"<":return Ii(e,a,t);case"<=":return Fi(e,a,t);default:throw new TypeError(`Invalid operator: ${p}`)}};const Ui=Bd,xi=Md,{safeRe:$i,t:ji}=Rd;var Bi,qi,Mi,Hi,Wi,zi,Xi,Ki,Ji,Yi,Zi=(e,p)=>{if(e instanceof Ui)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let a=null;if((p=p||{}).rtl){let p;for(;(p=$i[ji.COERCERTL].exec(e))&&(!a||a.index+a[0].length!==e.length);)a&&p.index+p[0].length===a.index+a[0].length||(a=p),$i[ji.COERCERTL].lastIndex=p.index+p[1].length+p[2].length;$i[ji.COERCERTL].lastIndex=-1}else a=e.match($i[ji.COERCE]);return null===a?null:xi(`${a[2]}.${a[3]||"0"}.${a[4]||"0"}`,p)};function Qi(){if(Hi)return Mi;function e(p){var a=this;if(a instanceof e||(a=new e),a.tail=null,a.head=null,a.length=0,p&&"function"==typeof p.forEach)p.forEach((function(e){a.push(e)}));else if(arguments.length>0)for(var t=0,r=arguments.length;t1)a=p;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");t=this.head.next,a=this.head.value}for(var r=0;null!==t;r++)a=e(a,t.value,r),t=t.next;return a},e.prototype.reduceReverse=function(e,p){var a,t=this.tail;if(arguments.length>1)a=p;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");t=this.tail.prev,a=this.tail.value}for(var r=this.length-1;null!==t;r--)a=e(a,t.value,r),t=t.prev;return a},e.prototype.toArray=function(){for(var e=new Array(this.length),p=0,a=this.head;null!==a;p++)e[p]=a.value,a=a.next;return e},e.prototype.toArrayReverse=function(){for(var e=new Array(this.length),p=0,a=this.tail;null!==a;p++)e[p]=a.value,a=a.prev;return e},e.prototype.slice=function(p,a){(a=a||this.length)<0&&(a+=this.length),(p=p||0)<0&&(p+=this.length);var t=new e;if(athis.length&&(a=this.length);for(var r=0,d=this.head;null!==d&&rthis.length&&(a=this.length);for(var r=this.length,d=this.tail;null!==d&&r>a;r--)d=d.prev;for(;null!==d&&r>p;r--,d=d.prev)t.push(d.value);return t},e.prototype.splice=function(e,a,...t){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,d=this.head;null!==d&&rthis.parseRange(e))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!h(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&v(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const p=((this.options.includePrerelease&&u)|(this.options.loose&&c))+":"+e,t=a.get(p);if(t)return t;const i=this.options.loose,v=i?s[o.HYPHENRANGELOOSE]:s[o.HYPHENRANGE];e=e.replace(v,R(this.options.includePrerelease)),d("hyphen replace",e),e=e.replace(s[o.COMPARATORTRIM],n),d("comparator trim",e),e=e.replace(s[o.TILDETRIM],l),d("tilde trim",e),e=e.replace(s[o.CARETTRIM],m),d("caret trim",e);let f=e.split(" ").map((e=>g(e,this.options))).join(" ").split(/\s+/).map((e=>A(e,this.options)));i&&(f=f.filter((e=>(d("loose invalid filter",e,this.options),!!e.match(s[o.COMPARATORLOOSE]))))),d("range list",f);const w=new Map,E=f.map((e=>new r(e,this.options)));for(const e of E){if(h(e))return[e];w.set(e.value,e)}w.size>1&&w.has("")&&w.delete("");const T=[...w.values()];return a.set(p,T),T}intersects(p,a){if(!(p instanceof e))throw new TypeError("a Range is required");return this.set.some((e=>f(e,a)&&p.set.some((p=>f(p,a)&&e.every((e=>p.every((p=>e.intersects(p,a)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new i(e,this.options)}catch(e){return!1}for(let p=0;p1,u=(e,p,a)=>{const t=e[n].get(p);if(t){const p=t.value;if(c(e,p)){if(v(e,t),!e[r])return}else a&&(e[l]&&(t.value.now=Date.now()),e[o].unshiftNode(t));return p.value}},c=(e,p)=>{if(!p||!p.maxAge&&!e[d])return!1;const a=Date.now()-p.now;return p.maxAge?a>p.maxAge:e[d]&&a>e[d]},h=e=>{if(e[a]>e[p])for(let t=e[o].tail;e[a]>e[p]&&null!==t;){const p=t.prev;v(e,t),t=p}},v=(e,p)=>{if(p){const t=p.value;e[i]&&e[i](t.key,t.value),e[a]-=t.length,e[n].delete(t.key),e[o].removeNode(p)}};class f{constructor(e,p,a,t,r){this.key=e,this.value=p,this.length=a,this.now=t,this.maxAge=r||0}}const g=(e,p,a,t)=>{let d=a.value;c(e,d)&&(v(e,a),e[r]||(d=void 0)),d&&p.call(t,d.value,d.key,e)};return Wi=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[p]=e.max||1/0;const a=e.length||m;if(this[t]="function"!=typeof a?m:a,this[r]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[d]=e.maxAge||0,this[i]=e.dispose,this[s]=e.noDisposeOnSet||!1,this[l]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[p]=e||1/0,h(this)}get max(){return this[p]}set allowStale(e){this[r]=!!e}get allowStale(){return this[r]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[d]=e,h(this)}get maxAge(){return this[d]}set lengthCalculator(e){"function"!=typeof e&&(e=m),e!==this[t]&&(this[t]=e,this[a]=0,this[o].forEach((e=>{e.length=this[t](e.value,e.key),this[a]+=e.length}))),h(this)}get lengthCalculator(){return this[t]}get length(){return this[a]}get itemCount(){return this[o].length}rforEach(e,p){p=p||this;for(let a=this[o].tail;null!==a;){const t=a.prev;g(this,e,a,p),a=t}}forEach(e,p){p=p||this;for(let a=this[o].head;null!==a;){const t=a.next;g(this,e,a,p),a=t}}keys(){return this[o].toArray().map((e=>e.key))}values(){return this[o].toArray().map((e=>e.value))}reset(){this[i]&&this[o]&&this[o].length&&this[o].forEach((e=>this[i](e.key,e.value))),this[n]=new Map,this[o]=new e,this[a]=0}dump(){return this[o].map((e=>!c(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[o]}set(e,r,l){if((l=l||this[d])&&"number"!=typeof l)throw new TypeError("maxAge must be a number");const m=l?Date.now():0,u=this[t](r,e);if(this[n].has(e)){if(u>this[p])return v(this,this[n].get(e)),!1;const t=this[n].get(e).value;return this[i]&&(this[s]||this[i](e,t.value)),t.now=m,t.maxAge=l,t.value=r,this[a]+=u-t.length,t.length=u,this.get(e),h(this),!0}const c=new f(e,r,u,m,l);return c.length>this[p]?(this[i]&&this[i](e,r),!1):(this[a]+=c.length,this[o].unshift(c),this[n].set(e,this[o].head),h(this),!0)}has(e){if(!this[n].has(e))return!1;const p=this[n].get(e).value;return!c(this,p)}get(e){return u(this,e,!0)}peek(e){return u(this,e,!1)}pop(){const e=this[o].tail;return e?(v(this,e),e.value):null}del(e){v(this,this[n].get(e))}load(e){this.reset();const p=Date.now();for(let a=e.length-1;a>=0;a--){const t=e[a],r=t.e||0;if(0===r)this.set(t.k,t.v);else{const e=r-p;e>0&&this.set(t.k,t.v,e)}}}prune(){this[n].forEach(((e,p)=>u(this,p,!1)))}}}(),a=new p({max:1e3}),t=Pd,r=ps(),d=Ad,i=Bd,{safeRe:s,t:o,comparatorTrimReplace:n,tildeTrimReplace:l,caretTrimReplace:m}=Rd,{FLAG_INCLUDE_PRERELEASE:u,FLAG_LOOSE:c}=Od,h=e=>"<0.0.0-0"===e.value,v=e=>""===e.value,f=(e,p)=>{let a=!0;const t=e.slice();let r=t.pop();for(;a&&t.length;)a=t.every((e=>r.intersects(e,p))),r=t.pop();return a},g=(e,p)=>(d("comp",e,p),e=_(e,p),d("caret",e),e=E(e,p),d("tildes",e),e=y(e,p),d("xrange",e),e=O(e,p),d("stars",e),e),w=e=>!e||"x"===e.toLowerCase()||"*"===e,E=(e,p)=>e.trim().split(/\s+/).map((e=>T(e,p))).join(" "),T=(e,p)=>{const a=p.loose?s[o.TILDELOOSE]:s[o.TILDE];return e.replace(a,((p,a,t,r,i)=>{let s;return d("tilde",e,p,a,t,r,i),w(a)?s="":w(t)?s=`>=${a}.0.0 <${+a+1}.0.0-0`:w(r)?s=`>=${a}.${t}.0 <${a}.${+t+1}.0-0`:i?(d("replaceTilde pr",i),s=`>=${a}.${t}.${r}-${i} <${a}.${+t+1}.0-0`):s=`>=${a}.${t}.${r} <${a}.${+t+1}.0-0`,d("tilde return",s),s}))},_=(e,p)=>e.trim().split(/\s+/).map((e=>b(e,p))).join(" "),b=(e,p)=>{d("caret",e,p);const a=p.loose?s[o.CARETLOOSE]:s[o.CARET],t=p.includePrerelease?"-0":"";return e.replace(a,((p,a,r,i,s)=>{let o;return d("caret",e,p,a,r,i,s),w(a)?o="":w(r)?o=`>=${a}.0.0${t} <${+a+1}.0.0-0`:w(i)?o="0"===a?`>=${a}.${r}.0${t} <${a}.${+r+1}.0-0`:`>=${a}.${r}.0${t} <${+a+1}.0.0-0`:s?(d("replaceCaret pr",s),o="0"===a?"0"===r?`>=${a}.${r}.${i}-${s} <${a}.${r}.${+i+1}-0`:`>=${a}.${r}.${i}-${s} <${a}.${+r+1}.0-0`:`>=${a}.${r}.${i}-${s} <${+a+1}.0.0-0`):(d("no pr"),o="0"===a?"0"===r?`>=${a}.${r}.${i}${t} <${a}.${r}.${+i+1}-0`:`>=${a}.${r}.${i}${t} <${a}.${+r+1}.0-0`:`>=${a}.${r}.${i} <${+a+1}.0.0-0`),d("caret return",o),o}))},y=(e,p)=>(d("replaceXRanges",e,p),e.split(/\s+/).map((e=>S(e,p))).join(" ")),S=(e,p)=>{e=e.trim();const a=p.loose?s[o.XRANGELOOSE]:s[o.XRANGE];return e.replace(a,((a,t,r,i,s,o)=>{d("xRange",e,a,t,r,i,s,o);const n=w(r),l=n||w(i),m=l||w(s),u=m;return"="===t&&u&&(t=""),o=p.includePrerelease?"-0":"",n?a=">"===t||"<"===t?"<0.0.0-0":"*":t&&u?(l&&(i=0),s=0,">"===t?(t=">=",l?(r=+r+1,i=0,s=0):(i=+i+1,s=0)):"<="===t&&(t="<",l?r=+r+1:i=+i+1),"<"===t&&(o="-0"),a=`${t+r}.${i}.${s}${o}`):l?a=`>=${r}.0.0${o} <${+r+1}.0.0-0`:m&&(a=`>=${r}.${i}.0${o} <${r}.${+i+1}.0-0`),d("xRange return",a),a}))},O=(e,p)=>(d("replaceStars",e,p),e.trim().replace(s[o.STAR],"")),A=(e,p)=>(d("replaceGTE0",e,p),e.trim().replace(s[p.includePrerelease?o.GTE0PRE:o.GTE0],"")),R=e=>(p,a,t,r,d,i,s,o,n,l,m,u,c)=>`${a=w(t)?"":w(r)?`>=${t}.0.0${e?"-0":""}`:w(d)?`>=${t}.${r}.0${e?"-0":""}`:i?`>=${a}`:`>=${a}${e?"-0":""}`} ${o=w(n)?"":w(l)?`<${+n+1}.0.0-0`:w(m)?`<${n}.${+l+1}.0-0`:u?`<=${n}.${l}.${m}-${u}`:e?`<${n}.${l}.${+m+1}-0`:`<=${o}`}`.trim(),N=(e,p,a)=>{for(let a=0;a0){const t=e[a].semver;if(t.major===p.major&&t.minor===p.minor&&t.patch===p.patch)return!0}return!1}return!0};return Xi}function ps(){if(Yi)return Ji;Yi=1;const e=Symbol("SemVer ANY");class p{static get ANY(){return e}constructor(t,r){if(r=a(r),t instanceof p){if(t.loose===!!r.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),i("comparator",t,r),this.options=r,this.loose=!!r.loose,this.parse(t),this.semver===e?this.value="":this.value=this.operator+this.semver.version,i("comp",this)}parse(p){const a=this.options.loose?t[r.COMPARATORLOOSE]:t[r.COMPARATOR],d=p.match(a);if(!d)throw new TypeError(`Invalid comparator: ${p}`);this.operator=void 0!==d[1]?d[1]:"","="===this.operator&&(this.operator=""),d[2]?this.semver=new s(d[2],this.options.loose):this.semver=e}toString(){return this.value}test(p){if(i("Comparator.test",p,this.options.loose),this.semver===e||p===e)return!0;if("string"==typeof p)try{p=new s(p,this.options)}catch(e){return!1}return d(p,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof p))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new o(e.value,t).test(this.value):""===e.operator?""===e.value||new o(this.value,t).test(e.semver):(!(t=a(t)).includePrerelease||"<0.0.0-0"!==this.value&&"<0.0.0-0"!==e.value)&&(!(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&(!(!this.operator.startsWith(">")||!e.operator.startsWith(">"))||(!(!this.operator.startsWith("<")||!e.operator.startsWith("<"))||(!(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))||(!!(d(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))||!!(d(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))))))}}Ji=p;const a=Pd,{safeRe:t,t:r}=Rd,d=Gi,i=Ad,s=Bd,o=es();return Ji}const as=es();var ts=(e,p,a)=>{try{p=new as(p,a)}catch(e){return!1}return p.test(e)};const rs=es();var ds=(e,p)=>new rs(e,p).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));const is=Bd,ss=es();var os=(e,p,a)=>{let t=null,r=null,d=null;try{d=new ss(p,a)}catch(e){return null}return e.forEach((e=>{d.test(e)&&(t&&-1!==r.compare(e)||(t=e,r=new is(t,a)))})),t};const ns=Bd,ls=es();var ms=(e,p,a)=>{let t=null,r=null,d=null;try{d=new ls(p,a)}catch(e){return null}return e.forEach((e=>{d.test(e)&&(t&&1!==r.compare(e)||(t=e,r=new ns(t,a)))})),t};const us=Bd,cs=es(),hs=Ti;var vs=(e,p)=>{e=new cs(e,p);let a=new us("0.0.0");if(e.test(a))return a;if(a=new us("0.0.0-0"),e.test(a))return a;a=null;for(let p=0;p{const p=new us(e.semver.version);switch(e.operator){case">":0===p.prerelease.length?p.patch++:p.prerelease.push(0),p.raw=p.format();case"":case">=":r&&!hs(p,r)||(r=p);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!r||a&&!hs(a,r)||(a=r)}return a&&e.test(a)?a:null};const fs=es();var gs=(e,p)=>{try{return new fs(e,p).range||"*"}catch(e){return null}};const ws=Bd,Es=ps(),{ANY:Ts}=Es,_s=es(),bs=ts,ys=Ti,Ss=bi,Os=Pi,As=Ni;var Rs=(e,p,a,t)=>{let r,d,i,s,o;switch(e=new ws(e,t),p=new _s(p,t),a){case">":r=ys,d=Os,i=Ss,s=">",o=">=";break;case"<":r=Ss,d=As,i=ys,s="<",o="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(bs(e,p,t))return!1;for(let a=0;a{e.semver===Ts&&(e=new Es(">=0.0.0")),l=l||e,m=m||e,r(e.semver,l.semver,t)?l=e:i(e.semver,m.semver,t)&&(m=e)})),l.operator===s||l.operator===o)return!1;if((!m.operator||m.operator===s)&&d(e,m.semver))return!1;if(m.operator===o&&i(e,m.semver))return!1}return!0};const Ns=Rs;var Ds=(e,p,a)=>Ns(e,p,">",a);const Ps=Rs;var ks=(e,p,a)=>Ps(e,p,"<",a);const Cs=es();var Vs=(e,p,a)=>(e=new Cs(e,a),p=new Cs(p,a),e.intersects(p,a));const Ls=ts,Is=oi;const Fs=es(),Gs=ps(),{ANY:Us}=Gs,xs=ts,$s=oi,js=[new Gs(">=0.0.0-0")],Bs=[new Gs(">=0.0.0")],qs=(e,p,a)=>{if(e===p)return!0;if(1===e.length&&e[0].semver===Us){if(1===p.length&&p[0].semver===Us)return!0;e=a.includePrerelease?js:Bs}if(1===p.length&&p[0].semver===Us){if(a.includePrerelease)return!0;p=Bs}const t=new Set;let r,d,i,s,o,n,l;for(const p of e)">"===p.operator||">="===p.operator?r=Ms(r,p,a):"<"===p.operator||"<="===p.operator?d=Hs(d,p,a):t.add(p.semver);if(t.size>1)return null;if(r&&d){if(i=$s(r.semver,d.semver,a),i>0)return null;if(0===i&&(">="!==r.operator||"<="!==d.operator))return null}for(const e of t){if(r&&!xs(e,String(r),a))return null;if(d&&!xs(e,String(d),a))return null;for(const t of p)if(!xs(e,String(t),a))return!1;return!0}let m=!(!d||a.includePrerelease||!d.semver.prerelease.length)&&d.semver,u=!(!r||a.includePrerelease||!r.semver.prerelease.length)&&r.semver;m&&1===m.prerelease.length&&"<"===d.operator&&0===m.prerelease[0]&&(m=!1);for(const e of p){if(l=l||">"===e.operator||">="===e.operator,n=n||"<"===e.operator||"<="===e.operator,r)if(u&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===u.major&&e.semver.minor===u.minor&&e.semver.patch===u.patch&&(u=!1),">"===e.operator||">="===e.operator){if(s=Ms(r,e,a),s===e&&s!==r)return!1}else if(">="===r.operator&&!xs(r.semver,String(e),a))return!1;if(d)if(m&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===m.major&&e.semver.minor===m.minor&&e.semver.patch===m.patch&&(m=!1),"<"===e.operator||"<="===e.operator){if(o=Hs(d,e,a),o===e&&o!==d)return!1}else if("<="===d.operator&&!xs(d.semver,String(e),a))return!1;if(!e.operator&&(d||r)&&0!==i)return!1}return!(r&&n&&!d&&0!==i)&&(!(d&&l&&!r&&0!==i)&&(!u&&!m))},Ms=(e,p,a)=>{if(!e)return p;const t=$s(e.semver,p.semver,a);return t>0?e:t<0||">"===p.operator&&">="===e.operator?p:e},Hs=(e,p,a)=>{if(!e)return p;const t=$s(e.semver,p.semver,a);return t<0?e:t>0||"<"===p.operator&&"<="===e.operator?p:e};var Ws=(e,p,a={})=>{if(e===p)return!0;e=new Fs(e,a),p=new Fs(p,a);let t=!1;e:for(const r of e.set){for(const e of p.set){const p=qs(r,e,a);if(t=t||null!==p,p)continue e}if(t)return!1}return!0};const zs=Rd,Xs=Od,Ks=Bd,Js=Vd,Ys=(e,p,a)=>{const t=[];let r=null,d=null;const i=e.sort(((e,p)=>Is(e,p,a)));for(const e of i){Ls(e,p,a)?(d=e,r||(r=e)):(d&&t.push([r,d]),d=null,r=null)}r&&t.push([r,null]);const s=[];for(const[e,p]of t)e===p?s.push(e):p||e!==i[0]?p?e===i[0]?s.push(`<=${p}`):s.push(`${e} - ${p}`):s.push(`>=${e}`):s.push("*");const o=s.join(" || "),n="string"==typeof p.raw?p.raw:String(p);return o.lengthp.every((p=>null!==e.name.match(p)))))}return e.find((e=>e.name===p))}(p,a);if(void 0===t)throw new Error(`The given archive name does not exist: ${null!=a?a:"(Infered, please open an issue for this)"}`);ip.info(`Downloading release asset "${t.name}"`);let r=await function(e,p){switch(p){case"application/zip":return Fa(e,"extracted-processing");case"application/gzip":return Ia(e,"extracted-processing")}}(await La(t.url),t.content_type);await async function(e,p){let a=(await _.promises.opendir(e)).readSync();if(null===a||a.isFile()||void 0===a.name)throw new Error("Unexpected folder structure of extraced Processing archive. Please open an issue");let t=ip.toPlatformPath(`${e}/${a.name}`),r=await Ga(t,"processing",p);ip.addPath(r)}(r,e)}try{!async function(){const e=ip.getInput("tag")||void 0,p=ip.getInput("asset-name")||void 0;ip.debug(`Attempting to find release with the following tag: ${null!=e?e:"(Infered, none given)"}`);const a=await async function(e,p){if(e.length<1)throw new Error("No Processing repos specified in which to look for the specified tag");const a=e=>"fulfilled"===e.status;let t=(await Promise.allSettled(e.map((e=>void 0!==p?Qs.rest.repos.getReleaseByTag({...e,tag:p}):Qs.rest.repos.getLatestRelease(e)))).then((e=>e.filter(a).map((e=>e.value))))).filter((e=>e.status>=200&&e.status<300));if(t.length<1)throw new Error(`Could not find a Processing release for the following tag: ${JSON.stringify(p)}`);let r=t[0].data;return{tag:r.tag_name,assets:r.assets.map((e=>({name:e.name,url:e.browser_download_url,content_type:d(e.content_type)})))};function d(e){if("application/zip"!==e&&"application/gzip"!==e)throw new Error(`Unsupported archive type: ${e}. Please file an issue`);return e}}(eo,e);ip.debug(`Found release: ${JSON.stringify(a)}`),ip.debug("Trying to locate existing Processing installation");let t=Zs.coerce(a.tag).format(),r=Ua("processing",t);if(r)return ip.info(`Processing (${a.tag}) is already cached. Aborting...`),void ip.addPath(r);ip.debug(`Attempting to download release asset with the following assetName: ${null!=p?p:"(Infered, none given)"}`),await po(t,a.assets,p),ip.debug("Processing successfully installed!")}()}catch(e){ip.setFailed(e.message)} +"use strict";var e=require("os"),p=require("fs"),a=require("path"),t=require("http"),r=require("https");require("net");var d=require("tls"),i=require("events"),s=require("assert"),o=require("util"),n=require("child_process"),l=require("stream"),m=require("crypto"),u=require("string_decoder"),c=require("timers"),h=require("url"),v=require("punycode"),f=require("zlib");function g(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function w(e){if(e&&e.__esModule)return e;var p=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var t=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(p,a,t.get?t:{enumerable:!0,get:function(){return e[a]}})}})),p.default=e,Object.freeze(p)}var E=g(e),T=g(p),_=w(p),b=g(a),y=g(t),S=g(r),O=g(d),A=g(i),R=g(s),N=g(o),D=g(n),P=g(l),k=g(m),C=g(u),V=g(c),L=g(h),I=g(v),F=g(f),G="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function U(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function x(e){if(e.__esModule)return e;var p=e.default;if("function"==typeof p){var a=function e(){if(this instanceof e){var a=[null];return a.push.apply(a,arguments),new(Function.bind.apply(p,a))}return p.apply(this,arguments)};a.prototype=p.prototype}else a={};return Object.defineProperty(a,"__esModule",{value:!0}),Object.keys(e).forEach((function(p){var t=Object.getOwnPropertyDescriptor(e,p);Object.defineProperty(a,p,t.get?t:{enumerable:!0,get:function(){return e[p]}})})),a}var $={},j={},B={};Object.defineProperty(B,"__esModule",{value:!0}),B.toCommandProperties=B.toCommandValue=void 0,B.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e)},B.toCommandProperties=function(e){return Object.keys(e).length?{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}:{}};var q=G&&G.__createBinding||(Object.create?function(e,p,a,t){void 0===t&&(t=a),Object.defineProperty(e,t,{enumerable:!0,get:function(){return p[a]}})}:function(e,p,a,t){void 0===t&&(t=a),e[t]=p[a]}),M=G&&G.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:!0,value:p})}:function(e,p){e.default=p}),H=G&&G.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(null!=e)for(var a in e)"default"!==a&&Object.hasOwnProperty.call(e,a)&&q(p,e,a);return M(p,e),p};Object.defineProperty(j,"__esModule",{value:!0}),j.issue=j.issueCommand=void 0;const W=H(E.default),z=B;function X(e,p,a){const t=new K(e,p,a);process.stdout.write(t.toString()+W.EOL)}j.issueCommand=X,j.issue=function(e,p=""){X(e,{},p)};class K{constructor(e,p,a){e||(e="missing.command"),this.command=e,this.properties=p,this.message=a}toString(){let e="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let a=!0;for(const t in this.properties)if(this.properties.hasOwnProperty(t)){const r=this.properties[t];r&&(a?a=!1:e+=",",e+=`${t}=${p=r,z.toCommandValue(p).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}var p;return e+=`::${function(e){return z.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}(this.message)}`,e}}var J,Y={},Z=new Uint8Array(16);function Q(){if(!J&&!(J="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return J(Z)}var ee=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function pe(e){return"string"==typeof e&&ee.test(e)}for(var ae,te,re=[],de=0;de<256;++de)re.push((de+256).toString(16).substr(1));function ie(e){var p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=(re[e[p+0]]+re[e[p+1]]+re[e[p+2]]+re[e[p+3]]+"-"+re[e[p+4]]+re[e[p+5]]+"-"+re[e[p+6]]+re[e[p+7]]+"-"+re[e[p+8]]+re[e[p+9]]+"-"+re[e[p+10]]+re[e[p+11]]+re[e[p+12]]+re[e[p+13]]+re[e[p+14]]+re[e[p+15]]).toLowerCase();if(!pe(a))throw TypeError("Stringified UUID is invalid");return a}var se=0,oe=0;function ne(e){if(!pe(e))throw TypeError("Invalid UUID");var p,a=new Uint8Array(16);return a[0]=(p=parseInt(e.slice(0,8),16))>>>24,a[1]=p>>>16&255,a[2]=p>>>8&255,a[3]=255&p,a[4]=(p=parseInt(e.slice(9,13),16))>>>8,a[5]=255&p,a[6]=(p=parseInt(e.slice(14,18),16))>>>8,a[7]=255&p,a[8]=(p=parseInt(e.slice(19,23),16))>>>8,a[9]=255&p,a[10]=(p=parseInt(e.slice(24,36),16))/1099511627776&255,a[11]=p/4294967296&255,a[12]=p>>>24&255,a[13]=p>>>16&255,a[14]=p>>>8&255,a[15]=255&p,a}function le(e,p,a){function t(e,t,r,d){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var p=[],a=0;a>>9<<4)+1}function ue(e,p){var a=(65535&e)+(65535&p);return(e>>16)+(p>>16)+(a>>16)<<16|65535&a}function ce(e,p,a,t,r,d){return ue((i=ue(ue(p,e),ue(t,d)))<<(s=r)|i>>>32-s,a);var i,s}function he(e,p,a,t,r,d,i){return ce(p&a|~p&t,e,p,r,d,i)}function ve(e,p,a,t,r,d,i){return ce(p&t|a&~t,e,p,r,d,i)}function fe(e,p,a,t,r,d,i){return ce(p^a^t,e,p,r,d,i)}function ge(e,p,a,t,r,d,i){return ce(a^(p|~t),e,p,r,d,i)}var we=le("v3",48,(function(e){if("string"==typeof e){var p=unescape(encodeURIComponent(e));e=new Uint8Array(p.length);for(var a=0;a>5]>>>r%32&255,i=parseInt(t.charAt(d>>>4&15)+t.charAt(15&d),16);p.push(i)}return p}(function(e,p){e[p>>5]|=128<>5]|=(255&e[t/8])<>>32-p}var be=le("v5",80,(function(e){var p=[1518500249,1859775393,2400959708,3395469782],a=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=[];for(var r=0;r>>0;E=w,w=g,g=_e(f,30)>>>0,f=v,v=b}a[0]=a[0]+v>>>0,a[1]=a[1]+f>>>0,a[2]=a[2]+g>>>0,a[3]=a[3]+w>>>0,a[4]=a[4]+E>>>0}return[a[0]>>24&255,a[0]>>16&255,a[0]>>8&255,255&a[0],a[1]>>24&255,a[1]>>16&255,a[1]>>8&255,255&a[1],a[2]>>24&255,a[2]>>16&255,a[2]>>8&255,255&a[2],a[3]>>24&255,a[3]>>16&255,a[3]>>8&255,255&a[3],a[4]>>24&255,a[4]>>16&255,a[4]>>8&255,255&a[4]]})),ye=be;var Se=Object.freeze({__proto__:null,v1:function(e,p,a){var t=p&&a||0,r=p||new Array(16),d=(e=e||{}).node||ae,i=void 0!==e.clockseq?e.clockseq:te;if(null==d||null==i){var s=e.random||(e.rng||Q)();null==d&&(d=ae=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==i&&(i=te=16383&(s[6]<<8|s[7]))}var o=void 0!==e.msecs?e.msecs:Date.now(),n=void 0!==e.nsecs?e.nsecs:oe+1,l=o-se+(n-oe)/1e4;if(l<0&&void 0===e.clockseq&&(i=i+1&16383),(l<0||o>se)&&void 0===e.nsecs&&(n=0),n>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");se=o,oe=n,te=i;var m=(1e4*(268435455&(o+=122192928e5))+n)%4294967296;r[t++]=m>>>24&255,r[t++]=m>>>16&255,r[t++]=m>>>8&255,r[t++]=255&m;var u=o/4294967296*1e4&268435455;r[t++]=u>>>8&255,r[t++]=255&u,r[t++]=u>>>24&15|16,r[t++]=u>>>16&255,r[t++]=i>>>8|128,r[t++]=255&i;for(var c=0;c<6;++c)r[t+c]=d[c];return p||ie(r)},v3:Ee,v4:function(e,p,a){var t=(e=e||{}).random||(e.rng||Q)();if(t[6]=15&t[6]|64,t[8]=63&t[8]|128,p){a=a||0;for(var r=0;r<16;++r)p[a+r]=t[r];return p}return ie(t)},v5:ye,NIL:"00000000-0000-0000-0000-000000000000",version:function(e){if(!pe(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)},validate:pe,stringify:ie,parse:ne}),Oe=x(Se),Ae=G&&G.__createBinding||(Object.create?function(e,p,a,t){void 0===t&&(t=a),Object.defineProperty(e,t,{enumerable:!0,get:function(){return p[a]}})}:function(e,p,a,t){void 0===t&&(t=a),e[t]=p[a]}),Re=G&&G.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:!0,value:p})}:function(e,p){e.default=p}),Ne=G&&G.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(null!=e)for(var a in e)"default"!==a&&Object.hasOwnProperty.call(e,a)&&Ae(p,e,a);return Re(p,e),p};Object.defineProperty(Y,"__esModule",{value:!0}),Y.prepareKeyValueMessage=Y.issueFileCommand=void 0;const De=Ne(T.default),Pe=Ne(E.default),ke=Oe,Ce=B;Y.issueFileCommand=function(e,p){const a=process.env[`GITHUB_${e}`];if(!a)throw new Error(`Unable to find environment variable for file command ${e}`);if(!De.existsSync(a))throw new Error(`Missing file at path: ${a}`);De.appendFileSync(a,`${Ce.toCommandValue(p)}${Pe.EOL}`,{encoding:"utf8"})},Y.prepareKeyValueMessage=function(e,p){const a=`ghadelimiter_${ke.v4()}`,t=Ce.toCommandValue(p);if(e.includes(a))throw new Error(`Unexpected input: name should not contain the delimiter "${a}"`);if(t.includes(a))throw new Error(`Unexpected input: value should not contain the delimiter "${a}"`);return`${e}<<${a}${Pe.EOL}${t}${Pe.EOL}${a}`};var Ve={},Le={},Ie={};function Fe(e){if(!e.hostname)return!1;if(function(e){const p=e.toLowerCase();return"localhost"===p||p.startsWith("127.")||p.startsWith("[::1]")||p.startsWith("[0:0:0:0:0:0:0:1]")}(e.hostname))return!0;const p=process.env.no_proxy||process.env.NO_PROXY||"";if(!p)return!1;let a;e.port?a=Number(e.port):"http:"===e.protocol?a=80:"https:"===e.protocol&&(a=443);const t=[e.hostname.toUpperCase()];"number"==typeof a&&t.push(`${t[0]}:${a}`);for(const e of p.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e)))if("*"===e||t.some((p=>p===e||p.endsWith(`.${e}`)||e.startsWith(".")&&p.endsWith(`${e}`))))return!0;return!1}Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.checkBypass=Ie.getProxyUrl=void 0,Ie.getProxyUrl=function(e){const p="https:"===e.protocol;if(Fe(e))return;const a=p?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;return a?new URL(a):void 0},Ie.checkBypass=Fe;var Ge,Ue={},xe=O.default,$e=y.default,je=S.default,Be=A.default,qe=N.default;function Me(e){var p=this;p.options=e||{},p.proxyOptions=p.options.proxy||{},p.maxSockets=p.options.maxSockets||$e.Agent.defaultMaxSockets,p.requests=[],p.sockets=[],p.on("free",(function(e,a,t,r){for(var d=We(a,t,r),i=0,s=p.requests.length;i=this.maxSockets?r.requests.push(d):r.createSocket(d,(function(p){function a(){r.emit("free",p,d)}function t(e){r.removeSocket(p),p.removeListener("free",a),p.removeListener("close",t),p.removeListener("agentRemove",t)}p.on("free",a),p.on("close",t),p.on("agentRemove",t),e.onSocket(p)}))},Me.prototype.createSocket=function(e,p){var a=this,t={};a.sockets.push(t);var r=ze({},a.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(r.localAddress=e.localAddress),r.proxyAuth&&(r.headers=r.headers||{},r.headers["Proxy-Authorization"]="Basic "+new Buffer(r.proxyAuth).toString("base64")),Ge("making CONNECT request");var d=a.request(r);function i(r,i,s){var o;return d.removeAllListeners(),i.removeAllListeners(),200!==r.statusCode?(Ge("tunneling socket could not be established, statusCode=%d",r.statusCode),i.destroy(),(o=new Error("tunneling socket could not be established, statusCode="+r.statusCode)).code="ECONNRESET",e.request.emit("error",o),void a.removeSocket(t)):s.length>0?(Ge("got illegal response body from proxy"),i.destroy(),(o=new Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",o),void a.removeSocket(t)):(Ge("tunneling connection has established"),a.sockets[a.sockets.indexOf(t)]=i,p(i))}d.useChunkedEncodingByDefault=!1,d.once("response",(function(e){e.upgrade=!0})),d.once("upgrade",(function(e,p,a){process.nextTick((function(){i(e,p,a)}))})),d.once("connect",i),d.once("error",(function(p){d.removeAllListeners(),Ge("tunneling socket could not be established, cause=%s\n",p.message,p.stack);var r=new Error("tunneling socket could not be established, cause="+p.message);r.code="ECONNRESET",e.request.emit("error",r),a.removeSocket(t)})),d.end()},Me.prototype.removeSocket=function(e){var p=this.sockets.indexOf(e);if(-1!==p){this.sockets.splice(p,1);var a=this.requests.shift();a&&this.createSocket(a,(function(e){a.request.onSocket(e)}))}},Ge=process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments);"string"==typeof e[0]?e[0]="TUNNEL: "+e[0]:e.unshift("TUNNEL:"),console.error.apply(console,e)}:function(){},Ue.debug=Ge;var Xe=Ue;!function(e){var p=G&&G.__createBinding||(Object.create?function(e,p,a,t){void 0===t&&(t=a),Object.defineProperty(e,t,{enumerable:!0,get:function(){return p[a]}})}:function(e,p,a,t){void 0===t&&(t=a),e[t]=p[a]}),a=G&&G.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:!0,value:p})}:function(e,p){e.default=p}),t=G&&G.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&p(t,e,r);return a(t,e),t},r=G&&G.__awaiter||function(e,p,a,t){return new(a||(a=Promise))((function(r,d){function i(e){try{o(t.next(e))}catch(e){d(e)}}function s(e){try{o(t.throw(e))}catch(e){d(e)}}function o(e){var p;e.done?r(e.value):(p=e.value,p instanceof a?p:new a((function(e){e(p)}))).then(i,s)}o((t=t.apply(e,p||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.HttpClient=e.isHttps=e.HttpClientResponse=e.HttpClientError=e.getProxyUrl=e.MediaTypes=e.Headers=e.HttpCodes=void 0;const d=t(y.default),i=t(S.default),s=t(Ie),o=t(Xe);var n,l,m;!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"}(n=e.HttpCodes||(e.HttpCodes={})),function(e){e.Accept="accept",e.ContentType="content-type"}(l=e.Headers||(e.Headers={})),function(e){e.ApplicationJson="application/json"}(m=e.MediaTypes||(e.MediaTypes={})),e.getProxyUrl=function(e){const p=s.getProxyUrl(new URL(e));return p?p.href:""};const u=[n.MovedPermanently,n.ResourceMoved,n.SeeOther,n.TemporaryRedirect,n.PermanentRedirect],c=[n.BadGateway,n.ServiceUnavailable,n.GatewayTimeout],h=["OPTIONS","GET","DELETE","HEAD"];class v extends Error{constructor(e,p){super(e),this.name="HttpClientError",this.statusCode=p,Object.setPrototypeOf(this,v.prototype)}}e.HttpClientError=v;class f{constructor(e){this.message=e}readBody(){return r(this,void 0,void 0,(function*(){return new Promise((e=>r(this,void 0,void 0,(function*(){let p=Buffer.alloc(0);this.message.on("data",(e=>{p=Buffer.concat([p,e])})),this.message.on("end",(()=>{e(p.toString())}))}))))}))}}e.HttpClientResponse=f,e.isHttps=function(e){return"https:"===new URL(e).protocol};e.HttpClient=class{constructor(e,p,a){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=e,this.handlers=p||[],this.requestOptions=a,a&&(null!=a.ignoreSslError&&(this._ignoreSslError=a.ignoreSslError),this._socketTimeout=a.socketTimeout,null!=a.allowRedirects&&(this._allowRedirects=a.allowRedirects),null!=a.allowRedirectDowngrade&&(this._allowRedirectDowngrade=a.allowRedirectDowngrade),null!=a.maxRedirects&&(this._maxRedirects=Math.max(a.maxRedirects,0)),null!=a.keepAlive&&(this._keepAlive=a.keepAlive),null!=a.allowRetries&&(this._allowRetries=a.allowRetries),null!=a.maxRetries&&(this._maxRetries=a.maxRetries))}options(e,p){return r(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,p||{})}))}get(e,p){return r(this,void 0,void 0,(function*(){return this.request("GET",e,null,p||{})}))}del(e,p){return r(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,p||{})}))}post(e,p,a){return r(this,void 0,void 0,(function*(){return this.request("POST",e,p,a||{})}))}patch(e,p,a){return r(this,void 0,void 0,(function*(){return this.request("PATCH",e,p,a||{})}))}put(e,p,a){return r(this,void 0,void 0,(function*(){return this.request("PUT",e,p,a||{})}))}head(e,p){return r(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,p||{})}))}sendStream(e,p,a,t){return r(this,void 0,void 0,(function*(){return this.request(e,p,a,t)}))}getJson(e,p={}){return r(this,void 0,void 0,(function*(){p[l.Accept]=this._getExistingOrDefaultHeader(p,l.Accept,m.ApplicationJson);const a=yield this.get(e,p);return this._processResponse(a,this.requestOptions)}))}postJson(e,p,a={}){return r(this,void 0,void 0,(function*(){const t=JSON.stringify(p,null,2);a[l.Accept]=this._getExistingOrDefaultHeader(a,l.Accept,m.ApplicationJson),a[l.ContentType]=this._getExistingOrDefaultHeader(a,l.ContentType,m.ApplicationJson);const r=yield this.post(e,t,a);return this._processResponse(r,this.requestOptions)}))}putJson(e,p,a={}){return r(this,void 0,void 0,(function*(){const t=JSON.stringify(p,null,2);a[l.Accept]=this._getExistingOrDefaultHeader(a,l.Accept,m.ApplicationJson),a[l.ContentType]=this._getExistingOrDefaultHeader(a,l.ContentType,m.ApplicationJson);const r=yield this.put(e,t,a);return this._processResponse(r,this.requestOptions)}))}patchJson(e,p,a={}){return r(this,void 0,void 0,(function*(){const t=JSON.stringify(p,null,2);a[l.Accept]=this._getExistingOrDefaultHeader(a,l.Accept,m.ApplicationJson),a[l.ContentType]=this._getExistingOrDefaultHeader(a,l.ContentType,m.ApplicationJson);const r=yield this.patch(e,t,a);return this._processResponse(r,this.requestOptions)}))}request(e,p,a,t){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");const r=new URL(p);let d=this._prepareRequest(e,r,t);const i=this._allowRetries&&h.includes(e)?this._maxRetries+1:1;let s,o=0;do{if(s=yield this.requestRaw(d,a),s&&s.message&&s.message.statusCode===n.Unauthorized){let e;for(const p of this.handlers)if(p.canHandleAuthentication(s)){e=p;break}return e?e.handleAuthentication(this,d,a):s}let p=this._maxRedirects;for(;s.message.statusCode&&u.includes(s.message.statusCode)&&this._allowRedirects&&p>0;){const i=s.message.headers.location;if(!i)break;const o=new URL(i);if("https:"===r.protocol&&r.protocol!==o.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");if(yield s.readBody(),o.hostname!==r.hostname)for(const e in t)"authorization"===e.toLowerCase()&&delete t[e];d=this._prepareRequest(e,o,t),s=yield this.requestRaw(d,a),p--}if(!s.message.statusCode||!c.includes(s.message.statusCode))return s;o+=1,o{this.requestRawWithCallback(e,p,(function(e,p){e?t(e):p?a(p):t(new Error("Unknown error"))}))}))}))}requestRawWithCallback(e,p,a){"string"==typeof p&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(p,"utf8"));let t=!1;function r(e,p){t||(t=!0,a(e,p))}const d=e.httpModule.request(e.options,(e=>{r(void 0,new f(e))}));let i;d.on("socket",(e=>{i=e})),d.setTimeout(this._socketTimeout||18e4,(()=>{i&&i.end(),r(new Error(`Request timeout: ${e.options.path}`))})),d.on("error",(function(e){r(e)})),p&&"string"==typeof p&&d.write(p,"utf8"),p&&"string"!=typeof p?(p.on("close",(function(){d.end()})),p.pipe(d)):d.end()}getAgent(e){const p=new URL(e);return this._getAgent(p)}_prepareRequest(e,p,a){const t={};t.parsedUrl=p;const r="https:"===t.parsedUrl.protocol;t.httpModule=r?i:d;const s=r?443:80;if(t.options={},t.options.host=t.parsedUrl.hostname,t.options.port=t.parsedUrl.port?parseInt(t.parsedUrl.port):s,t.options.path=(t.parsedUrl.pathname||"")+(t.parsedUrl.search||""),t.options.method=e,t.options.headers=this._mergeHeaders(a),null!=this.userAgent&&(t.options.headers["user-agent"]=this.userAgent),t.options.agent=this._getAgent(t.parsedUrl),this.handlers)for(const e of this.handlers)e.prepareRequest(t.options);return t}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},g(this.requestOptions.headers),g(e||{})):g(e||{})}_getExistingOrDefaultHeader(e,p,a){let t;return this.requestOptions&&this.requestOptions.headers&&(t=g(this.requestOptions.headers)[p]),e[p]||t||a}_getAgent(e){let p;const a=s.getProxyUrl(e),t=a&&a.hostname;if(this._keepAlive&&t&&(p=this._proxyAgent),this._keepAlive&&!t&&(p=this._agent),p)return p;const r="https:"===e.protocol;let n=100;if(this.requestOptions&&(n=this.requestOptions.maxSockets||d.globalAgent.maxSockets),a&&a.hostname){const e={maxSockets:n,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(a.username||a.password)&&{proxyAuth:`${a.username}:${a.password}`}),{host:a.hostname,port:a.port})};let t;const d="https:"===a.protocol;t=r?d?o.httpsOverHttps:o.httpsOverHttp:d?o.httpOverHttps:o.httpOverHttp,p=t(e),this._proxyAgent=p}if(this._keepAlive&&!p){const e={keepAlive:this._keepAlive,maxSockets:n};p=r?new i.Agent(e):new d.Agent(e),this._agent=p}return p||(p=r?i.globalAgent:d.globalAgent),r&&this._ignoreSslError&&(p.options=Object.assign(p.options||{},{rejectUnauthorized:!1})),p}_performExponentialBackoff(e){return r(this,void 0,void 0,(function*(){e=Math.min(10,e);const p=5*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),p)))}))}_processResponse(e,p){return r(this,void 0,void 0,(function*(){return new Promise(((a,t)=>r(this,void 0,void 0,(function*(){const r=e.message.statusCode||0,d={statusCode:r,result:null,headers:{}};let i,s;r===n.NotFound&&a(d);try{s=yield e.readBody(),s&&s.length>0&&(i=p&&p.deserializeDates?JSON.parse(s,(function(e,p){if("string"==typeof p){const e=new Date(p);if(!isNaN(e.valueOf()))return e}return p})):JSON.parse(s),d.result=i),d.headers=e.message.headers}catch(e){}if(r>299){let e;e=i&&i.message?i.message:s&&s.length>0?s:`Failed request: (${r})`;const p=new v(e,r);p.result=d.result,t(p)}else a(d)}))))}))}};const g=e=>Object.keys(e).reduce(((p,a)=>(p[a.toLowerCase()]=e[a],p)),{})}(Le);var Ke,Je={},Ye=G&&G.__awaiter||function(e,p,a,t){return new(a||(a=Promise))((function(r,d){function i(e){try{o(t.next(e))}catch(e){d(e)}}function s(e){try{o(t.throw(e))}catch(e){d(e)}}function o(e){var p;e.done?r(e.value):(p=e.value,p instanceof a?p:new a((function(e){e(p)}))).then(i,s)}o((t=t.apply(e,p||[])).next())}))};Object.defineProperty(Je,"__esModule",{value:!0}),Je.PersonalAccessTokenCredentialHandler=Je.BearerCredentialHandler=Je.BasicCredentialHandler=void 0;Je.BasicCredentialHandler=class{constructor(e,p){this.username=e,this.password=p}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return!1}handleAuthentication(){return Ye(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}};Je.BearerCredentialHandler=class{constructor(e){this.token=e}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization=`Bearer ${this.token}`}canHandleAuthentication(){return!1}handleAuthentication(){return Ye(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}};function Ze(){if(Ke)return Ve;Ke=1;var e=G&&G.__awaiter||function(e,p,a,t){return new(a||(a=Promise))((function(r,d){function i(e){try{o(t.next(e))}catch(e){d(e)}}function s(e){try{o(t.throw(e))}catch(e){d(e)}}function o(e){var p;e.done?r(e.value):(p=e.value,p instanceof a?p:new a((function(e){e(p)}))).then(i,s)}o((t=t.apply(e,p||[])).next())}))};Object.defineProperty(Ve,"__esModule",{value:!0}),Ve.OidcClient=void 0;const p=Le,a=Je,t=dp();class r{static createHttpClient(e=!0,t=10){const d={allowRetries:e,maxRetries:t};return new p.HttpClient("actions/oidc-client",[new a.BearerCredentialHandler(r.getRequestToken())],d)}static getRequestToken(){const e=process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;if(!e)throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable");return e}static getIDTokenUrl(){const e=process.env.ACTIONS_ID_TOKEN_REQUEST_URL;if(!e)throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable");return e}static getCall(p){var a;return e(this,void 0,void 0,(function*(){const e=r.createHttpClient(),t=yield e.getJson(p).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)})),d=null===(a=t.result)||void 0===a?void 0:a.value;if(!d)throw new Error("Response json body do not have ID Token field");return d}))}static getIDToken(p){return e(this,void 0,void 0,(function*(){try{let e=r.getIDTokenUrl();if(p){e=`${e}&audience=${encodeURIComponent(p)}`}t.debug(`ID token url is ${e}`);const a=yield r.getCall(e);return t.setSecret(a),a}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}return Ve.OidcClient=r,Ve}Je.PersonalAccessTokenCredentialHandler=class{constructor(e){this.token=e}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return!1}handleAuthentication(){return Ye(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}};var Qe,ep={};function pp(){return Qe||(Qe=1,function(e){var p=G&&G.__awaiter||function(e,p,a,t){return new(a||(a=Promise))((function(r,d){function i(e){try{o(t.next(e))}catch(e){d(e)}}function s(e){try{o(t.throw(e))}catch(e){d(e)}}function o(e){var p;e.done?r(e.value):(p=e.value,p instanceof a?p:new a((function(e){e(p)}))).then(i,s)}o((t=t.apply(e,p||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.summary=e.markdownSummary=e.SUMMARY_DOCS_URL=e.SUMMARY_ENV_VAR=void 0;const a=E.default,t=T.default,{access:r,appendFile:d,writeFile:i}=t.promises;e.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY",e.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";const s=new class{constructor(){this._buffer=""}filePath(){return p(this,void 0,void 0,(function*(){if(this._filePath)return this._filePath;const p=process.env[e.SUMMARY_ENV_VAR];if(!p)throw new Error(`Unable to find environment variable for $${e.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield r(p,t.constants.R_OK|t.constants.W_OK)}catch(e){throw new Error(`Unable to access summary file: '${p}'. Check if the file has correct read/write permissions.`)}return this._filePath=p,this._filePath}))}wrap(e,p,a={}){const t=Object.entries(a).map((([e,p])=>` ${e}="${p}"`)).join("");return p?`<${e}${t}>${p}`:`<${e}${t}>`}write(e){return p(this,void 0,void 0,(function*(){const p=!!(null==e?void 0:e.overwrite),a=yield this.filePath(),t=p?i:d;return yield t(a,this._buffer,{encoding:"utf8"}),this.emptyBuffer()}))}clear(){return p(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:!0})}))}stringify(){return this._buffer}isEmptyBuffer(){return 0===this._buffer.length}emptyBuffer(){return this._buffer="",this}addRaw(e,p=!1){return this._buffer+=e,p?this.addEOL():this}addEOL(){return this.addRaw(a.EOL)}addCodeBlock(e,p){const a=Object.assign({},p&&{lang:p}),t=this.wrap("pre",this.wrap("code",e),a);return this.addRaw(t).addEOL()}addList(e,p=!1){const a=p?"ol":"ul",t=e.map((e=>this.wrap("li",e))).join(""),r=this.wrap(a,t);return this.addRaw(r).addEOL()}addTable(e){const p=e.map((e=>{const p=e.map((e=>{if("string"==typeof e)return this.wrap("td",e);const{header:p,data:a,colspan:t,rowspan:r}=e,d=p?"th":"td",i=Object.assign(Object.assign({},t&&{colspan:t}),r&&{rowspan:r});return this.wrap(d,a,i)})).join("");return this.wrap("tr",p)})).join(""),a=this.wrap("table",p);return this.addRaw(a).addEOL()}addDetails(e,p){const a=this.wrap("details",this.wrap("summary",e)+p);return this.addRaw(a).addEOL()}addImage(e,p,a){const{width:t,height:r}=a||{},d=Object.assign(Object.assign({},t&&{width:t}),r&&{height:r}),i=this.wrap("img",null,Object.assign({src:e,alt:p},d));return this.addRaw(i).addEOL()}addHeading(e,p){const a=`h${p}`,t=["h1","h2","h3","h4","h5","h6"].includes(a)?a:"h1",r=this.wrap(t,e);return this.addRaw(r).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,p){const a=Object.assign({},p&&{cite:p}),t=this.wrap("blockquote",e,a);return this.addRaw(t).addEOL()}addLink(e,p){const a=this.wrap("a",e,{href:p});return this.addRaw(a).addEOL()}};e.markdownSummary=s,e.summary=s}(ep)),ep}var ap,tp,rp={};function dp(){return tp||(tp=1,function(e){var p=G&&G.__createBinding||(Object.create?function(e,p,a,t){void 0===t&&(t=a),Object.defineProperty(e,t,{enumerable:!0,get:function(){return p[a]}})}:function(e,p,a,t){void 0===t&&(t=a),e[t]=p[a]}),a=G&&G.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:!0,value:p})}:function(e,p){e.default=p}),t=G&&G.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&p(t,e,r);return a(t,e),t},r=G&&G.__awaiter||function(e,p,a,t){return new(a||(a=Promise))((function(r,d){function i(e){try{o(t.next(e))}catch(e){d(e)}}function s(e){try{o(t.throw(e))}catch(e){d(e)}}function o(e){var p;e.done?r(e.value):(p=e.value,p instanceof a?p:new a((function(e){e(p)}))).then(i,s)}o((t=t.apply(e,p||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.getIDToken=e.getState=e.saveState=e.group=e.endGroup=e.startGroup=e.info=e.notice=e.warning=e.error=e.debug=e.isDebug=e.setFailed=e.setCommandEcho=e.setOutput=e.getBooleanInput=e.getMultilineInput=e.getInput=e.addPath=e.setSecret=e.exportVariable=e.ExitCode=void 0;const d=j,i=Y,s=B,o=t(E.default),n=t(b.default),l=Ze();var m;function u(e,p){const a=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(p&&p.required&&!a)throw new Error(`Input required and not supplied: ${e}`);return p&&!1===p.trimWhitespace?a:a.trim()}function c(e,p={}){d.issueCommand("error",s.toCommandProperties(p),e instanceof Error?e.toString():e)}function h(e){d.issue("group",e)}function v(){d.issue("endgroup")}!function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"}(m=e.ExitCode||(e.ExitCode={})),e.exportVariable=function(e,p){const a=s.toCommandValue(p);if(process.env[e]=a,process.env.GITHUB_ENV||"")return i.issueFileCommand("ENV",i.prepareKeyValueMessage(e,p));d.issueCommand("set-env",{name:e},a)},e.setSecret=function(e){d.issueCommand("add-mask",{},e)},e.addPath=function(e){process.env.GITHUB_PATH||""?i.issueFileCommand("PATH",e):d.issueCommand("add-path",{},e),process.env.PATH=`${e}${n.delimiter}${process.env.PATH}`},e.getInput=u,e.getMultilineInput=function(e,p){const a=u(e,p).split("\n").filter((e=>""!==e));return p&&!1===p.trimWhitespace?a:a.map((e=>e.trim()))},e.getBooleanInput=function(e,p){const a=u(e,p);if(["true","True","TRUE"].includes(a))return!0;if(["false","False","FALSE"].includes(a))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\nSupport boolean input list: \`true | True | TRUE | false | False | FALSE\``)},e.setOutput=function(e,p){if(process.env.GITHUB_OUTPUT||"")return i.issueFileCommand("OUTPUT",i.prepareKeyValueMessage(e,p));process.stdout.write(o.EOL),d.issueCommand("set-output",{name:e},s.toCommandValue(p))},e.setCommandEcho=function(e){d.issue("echo",e?"on":"off")},e.setFailed=function(e){process.exitCode=m.Failure,c(e)},e.isDebug=function(){return"1"===process.env.RUNNER_DEBUG},e.debug=function(e){d.issueCommand("debug",{},e)},e.error=c,e.warning=function(e,p={}){d.issueCommand("warning",s.toCommandProperties(p),e instanceof Error?e.toString():e)},e.notice=function(e,p={}){d.issueCommand("notice",s.toCommandProperties(p),e instanceof Error?e.toString():e)},e.info=function(e){process.stdout.write(e+o.EOL)},e.startGroup=h,e.endGroup=v,e.group=function(e,p){return r(this,void 0,void 0,(function*(){let a;h(e);try{a=yield p()}finally{v()}return a}))},e.saveState=function(e,p){if(process.env.GITHUB_STATE||"")return i.issueFileCommand("STATE",i.prepareKeyValueMessage(e,p));d.issueCommand("save-state",{name:e},s.toCommandValue(p))},e.getState=function(e){return process.env[`STATE_${e}`]||""},e.getIDToken=function(e){return r(this,void 0,void 0,(function*(){return yield l.OidcClient.getIDToken(e)}))};var f=pp();Object.defineProperty(e,"summary",{enumerable:!0,get:function(){return f.summary}});var g=pp();Object.defineProperty(e,"markdownSummary",{enumerable:!0,get:function(){return g.markdownSummary}});var w=function(){if(ap)return rp;ap=1;var e=G&&G.__createBinding||(Object.create?function(e,p,a,t){void 0===t&&(t=a),Object.defineProperty(e,t,{enumerable:!0,get:function(){return p[a]}})}:function(e,p,a,t){void 0===t&&(t=a),e[t]=p[a]}),p=G&&G.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:!0,value:p})}:function(e,p){e.default=p}),a=G&&G.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(null!=a)for(var r in a)"default"!==r&&Object.hasOwnProperty.call(a,r)&&e(t,a,r);return p(t,a),t};Object.defineProperty(rp,"__esModule",{value:!0}),rp.toPlatformPath=rp.toWin32Path=rp.toPosixPath=void 0;const t=a(b.default);return rp.toPosixPath=function(e){return e.replace(/[\\]/g,"/")},rp.toWin32Path=function(e){return e.replace(/[/]/g,"\\")},rp.toPlatformPath=function(e){return e.replace(/[/\\]/g,t.sep)},rp}();Object.defineProperty(e,"toPosixPath",{enumerable:!0,get:function(){return w.toPosixPath}}),Object.defineProperty(e,"toWin32Path",{enumerable:!0,get:function(){return w.toWin32Path}}),Object.defineProperty(e,"toPlatformPath",{enumerable:!0,get:function(){return w.toPlatformPath}})}($)),$}var ip=dp(),sp={},op={},np={};!function(e){var p,a=G&&G.__createBinding||(Object.create?function(e,p,a,t){void 0===t&&(t=a),Object.defineProperty(e,t,{enumerable:!0,get:function(){return p[a]}})}:function(e,p,a,t){void 0===t&&(t=a),e[t]=p[a]}),t=G&&G.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:!0,value:p})}:function(e,p){e.default=p}),r=G&&G.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&a(p,e,r);return t(p,e),p},d=G&&G.__awaiter||function(e,p,a,t){return new(a||(a=Promise))((function(r,d){function i(e){try{o(t.next(e))}catch(e){d(e)}}function s(e){try{o(t.throw(e))}catch(e){d(e)}}function o(e){var p;e.done?r(e.value):(p=e.value,p instanceof a?p:new a((function(e){e(p)}))).then(i,s)}o((t=t.apply(e,p||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.getCmdPath=e.tryGetExecutablePath=e.isRooted=e.isDirectory=e.exists=e.READONLY=e.UV_FS_O_EXLOCK=e.IS_WINDOWS=e.unlink=e.symlink=e.stat=e.rmdir=e.rm=e.rename=e.readlink=e.readdir=e.open=e.mkdir=e.lstat=e.copyFile=e.chmod=void 0;const i=r(T.default),s=r(b.default);function o(e){return(1&e.mode)>0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}p=i.promises,e.chmod=p.chmod,e.copyFile=p.copyFile,e.lstat=p.lstat,e.mkdir=p.mkdir,e.open=p.open,e.readdir=p.readdir,e.readlink=p.readlink,e.rename=p.rename,e.rm=p.rm,e.rmdir=p.rmdir,e.stat=p.stat,e.symlink=p.symlink,e.unlink=p.unlink,e.IS_WINDOWS="win32"===process.platform,e.UV_FS_O_EXLOCK=268435456,e.READONLY=i.constants.O_RDONLY,e.exists=function(p){return d(this,void 0,void 0,(function*(){try{yield e.stat(p)}catch(e){if("ENOENT"===e.code)return!1;throw e}return!0}))},e.isDirectory=function(p,a=!1){return d(this,void 0,void 0,(function*(){return(a?yield e.stat(p):yield e.lstat(p)).isDirectory()}))},e.isRooted=function(p){if(!(p=function(p){if(p=p||"",e.IS_WINDOWS)return(p=p.replace(/\//g,"\\")).replace(/\\\\+/g,"\\");return p.replace(/\/\/+/g,"/")}(p)))throw new Error('isRooted() parameter "p" cannot be empty');return e.IS_WINDOWS?p.startsWith("\\")||/^[A-Z]:/i.test(p):p.startsWith("/")},e.tryGetExecutablePath=function(p,a){return d(this,void 0,void 0,(function*(){let t;try{t=yield e.stat(p)}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${p}': ${e}`)}if(t&&t.isFile())if(e.IS_WINDOWS){const e=s.extname(p).toUpperCase();if(a.some((p=>p.toUpperCase()===e)))return p}else if(o(t))return p;const r=p;for(const d of a){p=r+d,t=void 0;try{t=yield e.stat(p)}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${p}': ${e}`)}if(t&&t.isFile()){if(e.IS_WINDOWS){try{const a=s.dirname(p),t=s.basename(p).toUpperCase();for(const r of yield e.readdir(a))if(t===r.toUpperCase()){p=s.join(a,r);break}}catch(e){console.log(`Unexpected error attempting to determine the actual case of the file '${p}': ${e}`)}return p}if(o(t))return p}}return""}))},e.getCmdPath=function(){var e;return null!==(e=process.env.COMSPEC)&&void 0!==e?e:"cmd.exe"}}(np);var lp=G&&G.__createBinding||(Object.create?function(e,p,a,t){void 0===t&&(t=a),Object.defineProperty(e,t,{enumerable:!0,get:function(){return p[a]}})}:function(e,p,a,t){void 0===t&&(t=a),e[t]=p[a]}),mp=G&&G.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:!0,value:p})}:function(e,p){e.default=p}),up=G&&G.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(null!=e)for(var a in e)"default"!==a&&Object.hasOwnProperty.call(e,a)&&lp(p,e,a);return mp(p,e),p},cp=G&&G.__awaiter||function(e,p,a,t){return new(a||(a=Promise))((function(r,d){function i(e){try{o(t.next(e))}catch(e){d(e)}}function s(e){try{o(t.throw(e))}catch(e){d(e)}}function o(e){var p;e.done?r(e.value):(p=e.value,p instanceof a?p:new a((function(e){e(p)}))).then(i,s)}o((t=t.apply(e,p||[])).next())}))};Object.defineProperty(op,"__esModule",{value:!0}),op.findInPath=op.which=op.mkdirP=op.rmRF=op.mv=op.cp=void 0;const hp=R.default,vp=up(b.default),fp=up(np);function gp(e){return cp(this,void 0,void 0,(function*(){if(fp.IS_WINDOWS&&/[*"<>|]/.test(e))throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield fp.rm(e,{force:!0,maxRetries:3,recursive:!0,retryDelay:300})}catch(e){throw new Error(`File was unable to be removed ${e}`)}}))}function wp(e){return cp(this,void 0,void 0,(function*(){hp.ok(e,"a path argument must be provided"),yield fp.mkdir(e,{recursive:!0})}))}function Ep(e){return cp(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'tool' is required");const p=[];if(fp.IS_WINDOWS&&process.env.PATHEXT)for(const e of process.env.PATHEXT.split(vp.delimiter))e&&p.push(e);if(fp.isRooted(e)){const a=yield fp.tryGetExecutablePath(e,p);return a?[a]:[]}if(e.includes(vp.sep))return[];const a=[];if(process.env.PATH)for(const e of process.env.PATH.split(vp.delimiter))e&&a.push(e);const t=[];for(const r of a){const a=yield fp.tryGetExecutablePath(vp.join(r,e),p);a&&t.push(a)}return t}))}function Tp(e,p,a,t){return cp(this,void 0,void 0,(function*(){if(a>=255)return;a++,yield wp(p);const r=yield fp.readdir(e);for(const d of r){const r=`${e}/${d}`,i=`${p}/${d}`;(yield fp.lstat(r)).isDirectory()?yield Tp(r,i,a,t):yield _p(r,i,t)}yield fp.chmod(p,(yield fp.stat(e)).mode)}))}function _p(e,p,a){return cp(this,void 0,void 0,(function*(){if((yield fp.lstat(e)).isSymbolicLink()){try{yield fp.lstat(p),yield fp.unlink(p)}catch(e){"EPERM"===e.code&&(yield fp.chmod(p,"0666"),yield fp.unlink(p))}const a=yield fp.readlink(e);yield fp.symlink(a,p,fp.IS_WINDOWS?"junction":null)}else(yield fp.exists(p))&&!a||(yield fp.copyFile(e,p))}))}op.cp=function(e,p,a={}){return cp(this,void 0,void 0,(function*(){const{force:t,recursive:r,copySourceDirectory:d}=function(e){const p=null==e.force||e.force,a=Boolean(e.recursive),t=null==e.copySourceDirectory||Boolean(e.copySourceDirectory);return{force:p,recursive:a,copySourceDirectory:t}}(a),i=(yield fp.exists(p))?yield fp.stat(p):null;if(i&&i.isFile()&&!t)return;const s=i&&i.isDirectory()&&d?vp.join(p,vp.basename(e)):p;if(!(yield fp.exists(e)))throw new Error(`no such file or directory: ${e}`);if((yield fp.stat(e)).isDirectory()){if(!r)throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield Tp(e,s,0,t)}else{if(""===vp.relative(e,s))throw new Error(`'${s}' and '${e}' are the same file`);yield _p(e,s,t)}}))},op.mv=function(e,p,a={}){return cp(this,void 0,void 0,(function*(){if(yield fp.exists(p)){let t=!0;if((yield fp.isDirectory(p))&&(p=vp.join(p,vp.basename(e)),t=yield fp.exists(p)),t){if(null!=a.force&&!a.force)throw new Error("Destination already exists");yield gp(p)}}yield wp(vp.dirname(p)),yield fp.rename(e,p)}))},op.rmRF=gp,op.mkdirP=wp,op.which=function e(p,a){return cp(this,void 0,void 0,(function*(){if(!p)throw new Error("parameter 'tool' is required");if(a){const a=yield e(p,!1);if(!a)throw fp.IS_WINDOWS?new Error(`Unable to locate executable file: ${p}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`):new Error(`Unable to locate executable file: ${p}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);return a}const t=yield Ep(p);return t&&t.length>0?t[0]:""}))},op.findInPath=Ep;var bp={exports:{}},yp={exports:{}};!function(e,p){var a;p=yp.exports=u,a="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},p.SEMVER_SPEC_VERSION="2.0.0";var t=256,r=Number.MAX_SAFE_INTEGER||9007199254740991,d=p.re=[],i=p.src=[],s=p.tokens={},o=0;function n(e){s[e]=o++}n("NUMERICIDENTIFIER"),i[s.NUMERICIDENTIFIER]="0|[1-9]\\d*",n("NUMERICIDENTIFIERLOOSE"),i[s.NUMERICIDENTIFIERLOOSE]="[0-9]+",n("NONNUMERICIDENTIFIER"),i[s.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",n("MAINVERSION"),i[s.MAINVERSION]="("+i[s.NUMERICIDENTIFIER]+")\\.("+i[s.NUMERICIDENTIFIER]+")\\.("+i[s.NUMERICIDENTIFIER]+")",n("MAINVERSIONLOOSE"),i[s.MAINVERSIONLOOSE]="("+i[s.NUMERICIDENTIFIERLOOSE]+")\\.("+i[s.NUMERICIDENTIFIERLOOSE]+")\\.("+i[s.NUMERICIDENTIFIERLOOSE]+")",n("PRERELEASEIDENTIFIER"),i[s.PRERELEASEIDENTIFIER]="(?:"+i[s.NUMERICIDENTIFIER]+"|"+i[s.NONNUMERICIDENTIFIER]+")",n("PRERELEASEIDENTIFIERLOOSE"),i[s.PRERELEASEIDENTIFIERLOOSE]="(?:"+i[s.NUMERICIDENTIFIERLOOSE]+"|"+i[s.NONNUMERICIDENTIFIER]+")",n("PRERELEASE"),i[s.PRERELEASE]="(?:-("+i[s.PRERELEASEIDENTIFIER]+"(?:\\."+i[s.PRERELEASEIDENTIFIER]+")*))",n("PRERELEASELOOSE"),i[s.PRERELEASELOOSE]="(?:-?("+i[s.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+i[s.PRERELEASEIDENTIFIERLOOSE]+")*))",n("BUILDIDENTIFIER"),i[s.BUILDIDENTIFIER]="[0-9A-Za-z-]+",n("BUILD"),i[s.BUILD]="(?:\\+("+i[s.BUILDIDENTIFIER]+"(?:\\."+i[s.BUILDIDENTIFIER]+")*))",n("FULL"),n("FULLPLAIN"),i[s.FULLPLAIN]="v?"+i[s.MAINVERSION]+i[s.PRERELEASE]+"?"+i[s.BUILD]+"?",i[s.FULL]="^"+i[s.FULLPLAIN]+"$",n("LOOSEPLAIN"),i[s.LOOSEPLAIN]="[v=\\s]*"+i[s.MAINVERSIONLOOSE]+i[s.PRERELEASELOOSE]+"?"+i[s.BUILD]+"?",n("LOOSE"),i[s.LOOSE]="^"+i[s.LOOSEPLAIN]+"$",n("GTLT"),i[s.GTLT]="((?:<|>)?=?)",n("XRANGEIDENTIFIERLOOSE"),i[s.XRANGEIDENTIFIERLOOSE]=i[s.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",n("XRANGEIDENTIFIER"),i[s.XRANGEIDENTIFIER]=i[s.NUMERICIDENTIFIER]+"|x|X|\\*",n("XRANGEPLAIN"),i[s.XRANGEPLAIN]="[v=\\s]*("+i[s.XRANGEIDENTIFIER]+")(?:\\.("+i[s.XRANGEIDENTIFIER]+")(?:\\.("+i[s.XRANGEIDENTIFIER]+")(?:"+i[s.PRERELEASE]+")?"+i[s.BUILD]+"?)?)?",n("XRANGEPLAINLOOSE"),i[s.XRANGEPLAINLOOSE]="[v=\\s]*("+i[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+i[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+i[s.XRANGEIDENTIFIERLOOSE]+")(?:"+i[s.PRERELEASELOOSE]+")?"+i[s.BUILD]+"?)?)?",n("XRANGE"),i[s.XRANGE]="^"+i[s.GTLT]+"\\s*"+i[s.XRANGEPLAIN]+"$",n("XRANGELOOSE"),i[s.XRANGELOOSE]="^"+i[s.GTLT]+"\\s*"+i[s.XRANGEPLAINLOOSE]+"$",n("COERCE"),i[s.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",n("COERCERTL"),d[s.COERCERTL]=new RegExp(i[s.COERCE],"g"),n("LONETILDE"),i[s.LONETILDE]="(?:~>?)",n("TILDETRIM"),i[s.TILDETRIM]="(\\s*)"+i[s.LONETILDE]+"\\s+",d[s.TILDETRIM]=new RegExp(i[s.TILDETRIM],"g");n("TILDE"),i[s.TILDE]="^"+i[s.LONETILDE]+i[s.XRANGEPLAIN]+"$",n("TILDELOOSE"),i[s.TILDELOOSE]="^"+i[s.LONETILDE]+i[s.XRANGEPLAINLOOSE]+"$",n("LONECARET"),i[s.LONECARET]="(?:\\^)",n("CARETTRIM"),i[s.CARETTRIM]="(\\s*)"+i[s.LONECARET]+"\\s+",d[s.CARETTRIM]=new RegExp(i[s.CARETTRIM],"g");n("CARET"),i[s.CARET]="^"+i[s.LONECARET]+i[s.XRANGEPLAIN]+"$",n("CARETLOOSE"),i[s.CARETLOOSE]="^"+i[s.LONECARET]+i[s.XRANGEPLAINLOOSE]+"$",n("COMPARATORLOOSE"),i[s.COMPARATORLOOSE]="^"+i[s.GTLT]+"\\s*("+i[s.LOOSEPLAIN]+")$|^$",n("COMPARATOR"),i[s.COMPARATOR]="^"+i[s.GTLT]+"\\s*("+i[s.FULLPLAIN]+")$|^$",n("COMPARATORTRIM"),i[s.COMPARATORTRIM]="(\\s*)"+i[s.GTLT]+"\\s*("+i[s.LOOSEPLAIN]+"|"+i[s.XRANGEPLAIN]+")",d[s.COMPARATORTRIM]=new RegExp(i[s.COMPARATORTRIM],"g");n("HYPHENRANGE"),i[s.HYPHENRANGE]="^\\s*("+i[s.XRANGEPLAIN]+")\\s+-\\s+("+i[s.XRANGEPLAIN]+")\\s*$",n("HYPHENRANGELOOSE"),i[s.HYPHENRANGELOOSE]="^\\s*("+i[s.XRANGEPLAINLOOSE]+")\\s+-\\s+("+i[s.XRANGEPLAINLOOSE]+")\\s*$",n("STAR"),i[s.STAR]="(<|>)?=?\\s*\\*";for(var l=0;lt)return null;if(!(p.loose?d[s.LOOSE]:d[s.FULL]).test(e))return null;try{return new u(e,p)}catch(e){return null}}function u(e,p){if(p&&"object"==typeof p||(p={loose:!!p,includePrerelease:!1}),e instanceof u){if(e.loose===p.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>t)throw new TypeError("version is longer than "+t+" characters");if(!(this instanceof u))return new u(e,p);a("SemVer",e,p),this.options=p,this.loose=!!p.loose;var i=e.trim().match(p.loose?d[s.LOOSE]:d[s.FULL]);if(!i)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var p=+e;if(p>=0&&p=0;)"number"==typeof this.prerelease[a]&&(this.prerelease[a]++,a=-2);-1===a&&this.prerelease.push(0)}p&&(this.prerelease[0]===p?isNaN(this.prerelease[1])&&(this.prerelease=[p,0]):this.prerelease=[p,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},p.inc=function(e,p,a,t){"string"==typeof a&&(t=a,a=void 0);try{return new u(e,a).inc(p,t).version}catch(e){return null}},p.diff=function(e,p){if(w(e,p))return null;var a=m(e),t=m(p),r="";if(a.prerelease.length||t.prerelease.length){r="pre";var d="prerelease"}for(var i in a)if(("major"===i||"minor"===i||"patch"===i)&&a[i]!==t[i])return r+i;return d},p.compareIdentifiers=h;var c=/^[0-9]+$/;function h(e,p){var a=c.test(e),t=c.test(p);return a&&t&&(e=+e,p=+p),e===p?0:a&&!t?-1:t&&!a?1:e0}function g(e,p,a){return v(e,p,a)<0}function w(e,p,a){return 0===v(e,p,a)}function E(e,p,a){return 0!==v(e,p,a)}function T(e,p,a){return v(e,p,a)>=0}function _(e,p,a){return v(e,p,a)<=0}function b(e,p,a,t){switch(p){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof a&&(a=a.version),e===a;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof a&&(a=a.version),e!==a;case"":case"=":case"==":return w(e,a,t);case"!=":return E(e,a,t);case">":return f(e,a,t);case">=":return T(e,a,t);case"<":return g(e,a,t);case"<=":return _(e,a,t);default:throw new TypeError("Invalid operator: "+p)}}function y(e,p){if(p&&"object"==typeof p||(p={loose:!!p,includePrerelease:!1}),e instanceof y){if(e.loose===!!p.loose)return e;e=e.value}if(!(this instanceof y))return new y(e,p);a("comparator",e,p),this.options=p,this.loose=!!p.loose,this.parse(e),this.semver===S?this.value="":this.value=this.operator+this.semver.version,a("comp",this)}p.rcompareIdentifiers=function(e,p){return h(p,e)},p.major=function(e,p){return new u(e,p).major},p.minor=function(e,p){return new u(e,p).minor},p.patch=function(e,p){return new u(e,p).patch},p.compare=v,p.compareLoose=function(e,p){return v(e,p,!0)},p.compareBuild=function(e,p,a){var t=new u(e,a),r=new u(p,a);return t.compare(r)||t.compareBuild(r)},p.rcompare=function(e,p,a){return v(p,e,a)},p.sort=function(e,a){return e.sort((function(e,t){return p.compareBuild(e,t,a)}))},p.rsort=function(e,a){return e.sort((function(e,t){return p.compareBuild(t,e,a)}))},p.gt=f,p.lt=g,p.eq=w,p.neq=E,p.gte=T,p.lte=_,p.cmp=b,p.Comparator=y;var S={};function O(e,p){if(p&&"object"==typeof p||(p={loose:!!p,includePrerelease:!1}),e instanceof O)return e.loose===!!p.loose&&e.includePrerelease===!!p.includePrerelease?e:new O(e.raw,p);if(e instanceof y)return new O(e.value,p);if(!(this instanceof O))return new O(e,p);if(this.options=p,this.loose=!!p.loose,this.includePrerelease=!!p.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function A(e,p){for(var a=!0,t=e.slice(),r=t.pop();a&&t.length;)a=t.every((function(e){return r.intersects(e,p)})),r=t.pop();return a}function R(e){return!e||"x"===e.toLowerCase()||"*"===e}function N(e,p,a,t,r,d,i,s,o,n,l,m,u){return((p=R(a)?"":R(t)?">="+a+".0.0":R(r)?">="+a+"."+t+".0":">="+p)+" "+(s=R(o)?"":R(n)?"<"+(+o+1)+".0.0":R(l)?"<"+o+"."+(+n+1)+".0":m?"<="+o+"."+n+"."+l+"-"+m:"<="+s)).trim()}function D(e,p,t){for(var r=0;r0){var d=e[r].semver;if(d.major===p.major&&d.minor===p.minor&&d.patch===p.patch)return!0}return!1}return!0}function P(e,p,a){try{p=new O(p,a)}catch(e){return!1}return p.test(e)}function k(e,p,a,t){var r,d,i,s,o;switch(e=new u(e,t),p=new O(p,t),a){case">":r=f,d=_,i=g,s=">",o=">=";break;case"<":r=g,d=T,i=f,s="<",o="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(P(e,p,t))return!1;for(var n=0;n=0.0.0")),m=m||e,c=c||e,r(e.semver,m.semver,t)?m=e:i(e.semver,c.semver,t)&&(c=e)})),m.operator===s||m.operator===o)return!1;if((!c.operator||c.operator===s)&&d(e,c.semver))return!1;if(c.operator===o&&i(e,c.semver))return!1}return!0}y.prototype.parse=function(e){var p=this.options.loose?d[s.COMPARATORLOOSE]:d[s.COMPARATOR],a=e.match(p);if(!a)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==a[1]?a[1]:"","="===this.operator&&(this.operator=""),a[2]?this.semver=new u(a[2],this.options.loose):this.semver=S},y.prototype.toString=function(){return this.value},y.prototype.test=function(e){if(a("Comparator.test",e,this.options.loose),this.semver===S||e===S)return!0;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}return b(e,this.operator,this.semver,this.options)},y.prototype.intersects=function(e,p){if(!(e instanceof y))throw new TypeError("a Comparator is required");var a;if(p&&"object"==typeof p||(p={loose:!!p,includePrerelease:!1}),""===this.operator)return""===this.value||(a=new O(e.value,p),P(this.value,a,p));if(""===e.operator)return""===e.value||(a=new O(this.value,p),P(e.semver,a,p));var t=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),r=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),d=this.semver.version===e.semver.version,i=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=b(this.semver,"<",e.semver,p)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),o=b(this.semver,">",e.semver,p)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return t||r||d&&i||s||o},p.Range=O,O.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},O.prototype.toString=function(){return this.range},O.prototype.parseRange=function(e){var p=this.options.loose;e=e.trim();var t=p?d[s.HYPHENRANGELOOSE]:d[s.HYPHENRANGE];e=e.replace(t,N),a("hyphen replace",e),e=e.replace(d[s.COMPARATORTRIM],"$1$2$3"),a("comparator trim",e,d[s.COMPARATORTRIM]),e=(e=(e=e.replace(d[s.TILDETRIM],"$1~")).replace(d[s.CARETTRIM],"$1^")).split(/\s+/).join(" ");var r=p?d[s.COMPARATORLOOSE]:d[s.COMPARATOR],i=e.split(" ").map((function(e){return function(e,p){return a("comp",e,p),e=function(e,p){return e.trim().split(/\s+/).map((function(e){return function(e,p){a("caret",e,p);var t=p.loose?d[s.CARETLOOSE]:d[s.CARET];return e.replace(t,(function(p,t,r,d,i){var s;return a("caret",e,p,t,r,d,i),R(t)?s="":R(r)?s=">="+t+".0.0 <"+(+t+1)+".0.0":R(d)?s="0"===t?">="+t+"."+r+".0 <"+t+"."+(+r+1)+".0":">="+t+"."+r+".0 <"+(+t+1)+".0.0":i?(a("replaceCaret pr",i),s="0"===t?"0"===r?">="+t+"."+r+"."+d+"-"+i+" <"+t+"."+r+"."+(+d+1):">="+t+"."+r+"."+d+"-"+i+" <"+t+"."+(+r+1)+".0":">="+t+"."+r+"."+d+"-"+i+" <"+(+t+1)+".0.0"):(a("no pr"),s="0"===t?"0"===r?">="+t+"."+r+"."+d+" <"+t+"."+r+"."+(+d+1):">="+t+"."+r+"."+d+" <"+t+"."+(+r+1)+".0":">="+t+"."+r+"."+d+" <"+(+t+1)+".0.0"),a("caret return",s),s}))}(e,p)})).join(" ")}(e,p),a("caret",e),e=function(e,p){return e.trim().split(/\s+/).map((function(e){return function(e,p){var t=p.loose?d[s.TILDELOOSE]:d[s.TILDE];return e.replace(t,(function(p,t,r,d,i){var s;return a("tilde",e,p,t,r,d,i),R(t)?s="":R(r)?s=">="+t+".0.0 <"+(+t+1)+".0.0":R(d)?s=">="+t+"."+r+".0 <"+t+"."+(+r+1)+".0":i?(a("replaceTilde pr",i),s=">="+t+"."+r+"."+d+"-"+i+" <"+t+"."+(+r+1)+".0"):s=">="+t+"."+r+"."+d+" <"+t+"."+(+r+1)+".0",a("tilde return",s),s}))}(e,p)})).join(" ")}(e,p),a("tildes",e),e=function(e,p){return a("replaceXRanges",e,p),e.split(/\s+/).map((function(e){return function(e,p){e=e.trim();var t=p.loose?d[s.XRANGELOOSE]:d[s.XRANGE];return e.replace(t,(function(t,r,d,i,s,o){a("xRange",e,t,r,d,i,s,o);var n=R(d),l=n||R(i),m=l||R(s),u=m;return"="===r&&u&&(r=""),o=p.includePrerelease?"-0":"",n?t=">"===r||"<"===r?"<0.0.0-0":"*":r&&u?(l&&(i=0),s=0,">"===r?(r=">=",l?(d=+d+1,i=0,s=0):(i=+i+1,s=0)):"<="===r&&(r="<",l?d=+d+1:i=+i+1),t=r+d+"."+i+"."+s+o):l?t=">="+d+".0.0"+o+" <"+(+d+1)+".0.0"+o:m&&(t=">="+d+"."+i+".0"+o+" <"+d+"."+(+i+1)+".0"+o),a("xRange return",t),t}))}(e,p)})).join(" ")}(e,p),a("xrange",e),e=function(e,p){return a("replaceStars",e,p),e.trim().replace(d[s.STAR],"")}(e,p),a("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(i=i.filter((function(e){return!!e.match(r)}))),i=i.map((function(e){return new y(e,this.options)}),this)},O.prototype.intersects=function(e,p){if(!(e instanceof O))throw new TypeError("a Range is required");return this.set.some((function(a){return A(a,p)&&e.set.some((function(e){return A(e,p)&&a.every((function(a){return e.every((function(e){return a.intersects(e,p)}))}))}))}))},p.toComparators=function(e,p){return new O(e,p).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},O.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}for(var p=0;p":0===p.prerelease.length?p.patch++:p.prerelease.push(0),p.raw=p.format();case"":case">=":a&&!f(a,p)||(a=p);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(a&&e.test(a))return a;return null},p.validRange=function(e,p){try{return new O(e,p).range||"*"}catch(e){return null}},p.ltr=function(e,p,a){return k(e,p,"<",a)},p.gtr=function(e,p,a){return k(e,p,">",a)},p.outside=k,p.prerelease=function(e,p){var a=m(e,p);return a&&a.prerelease.length?a.prerelease:null},p.intersects=function(e,p,a){return e=new O(e,a),p=new O(p,a),e.intersects(p)},p.coerce=function(e,p){if(e instanceof u)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var a=null;if((p=p||{}).rtl){for(var t;(t=d[s.COERCERTL].exec(e))&&(!a||a.index+a[0].length!==e.length);)a&&t.index+t[0].length===a.index+a[0].length||(a=t),d[s.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;d[s.COERCERTL].lastIndex=-1}else a=e.match(d[s.COERCE]);if(null===a)return null;return m(a[2]+"."+(a[3]||"0")+"."+(a[4]||"0"),p)}}(0,yp.exports);var Sp=yp.exports;!function(e,p){var a=G&&G.__createBinding||(Object.create?function(e,p,a,t){void 0===t&&(t=a),Object.defineProperty(e,t,{enumerable:!0,get:function(){return p[a]}})}:function(e,p,a,t){void 0===t&&(t=a),e[t]=p[a]}),t=G&&G.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:!0,value:p})}:function(e,p){e.default=p}),r=G&&G.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&a(p,e,r);return t(p,e),p},d=G&&G.__awaiter||function(e,p,a,t){return new(a||(a=Promise))((function(r,d){function i(e){try{o(t.next(e))}catch(e){d(e)}}function s(e){try{o(t.throw(e))}catch(e){d(e)}}function o(e){var p;e.done?r(e.value):(p=e.value,p instanceof a?p:new a((function(e){e(p)}))).then(i,s)}o((t=t.apply(e,p||[])).next())}))};Object.defineProperty(p,"__esModule",{value:!0}),p._readLinuxVersionFile=p._getOsVersion=p._findMatch=void 0;const i=r(Sp),s=dp(),o=E.default,n=D.default,l=T.default;p._findMatch=function(p,a,t,r){return d(this,void 0,void 0,(function*(){const d=o.platform();let n,l,m;for(const o of t){const t=o.version;if(s.debug(`check ${t} satisfies ${p}`),i.satisfies(t,p)&&(!a||o.stable===a)&&(m=o.files.find((p=>{s.debug(`${p.arch}===${r} && ${p.platform}===${d}`);let a=p.arch===r&&p.platform===d;if(a&&p.platform_version){const t=e.exports._getOsVersion();a=t===p.platform_version||i.satisfies(t,p.platform_version)}return a})),m)){s.debug(`matched ${o.version}`),l=o;break}}return l&&m&&(n=Object.assign({},l),n.files=[m]),n}))},p._getOsVersion=function(){const p=o.platform();let a="";if("darwin"===p)a=n.execSync("sw_vers -productVersion").toString();else if("linux"===p){const p=e.exports._readLinuxVersionFile();if(p){const e=p.split("\n");for(const p of e){const e=p.split("=");if(2===e.length&&("VERSION_ID"===e[0].trim()||"DISTRIB_RELEASE"===e[0].trim())){a=e[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return a},p._readLinuxVersionFile=function(){const e="/etc/lsb-release",p="/etc/os-release";let a="";return l.existsSync(e)?a=l.readFileSync(e).toString():l.existsSync(p)&&(a=l.readFileSync(p).toString()),a}}(bp,bp.exports);var Op=bp.exports,Ap={},Rp={};function Np(e){if(!e.hostname)return!1;let p,a=process.env.no_proxy||process.env.NO_PROXY||"";if(!a)return!1;e.port?p=Number(e.port):"http:"===e.protocol?p=80:"https:"===e.protocol&&(p=443);let t=[e.hostname.toUpperCase()];"number"==typeof p&&t.push(`${t[0]}:${p}`);for(let e of a.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e)))if(t.some((p=>p===e)))return!0;return!1}Object.defineProperty(Rp,"__esModule",{value:!0}),Rp.getProxyUrl=function(e){let p,a,t="https:"===e.protocol;return Np(e)||(a=t?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY,a&&(p=new URL(a))),p},Rp.checkBypass=Np,function(e){Object.defineProperty(e,"__esModule",{value:!0});const p=y.default,a=S.default,t=Rp;let r;var d,i,s;!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"}(d=e.HttpCodes||(e.HttpCodes={})),function(e){e.Accept="accept",e.ContentType="content-type"}(i=e.Headers||(e.Headers={})),function(e){e.ApplicationJson="application/json"}(s=e.MediaTypes||(e.MediaTypes={})),e.getProxyUrl=function(e){let p=t.getProxyUrl(new URL(e));return p?p.href:""};const o=[d.MovedPermanently,d.ResourceMoved,d.SeeOther,d.TemporaryRedirect,d.PermanentRedirect],n=[d.BadGateway,d.ServiceUnavailable,d.GatewayTimeout],l=["OPTIONS","GET","DELETE","HEAD"];class m extends Error{constructor(e,p){super(e),this.name="HttpClientError",this.statusCode=p,Object.setPrototypeOf(this,m.prototype)}}e.HttpClientError=m;class u{constructor(e){this.message=e}readBody(){return new Promise((async(e,p)=>{let a=Buffer.alloc(0);this.message.on("data",(e=>{a=Buffer.concat([a,e])})),this.message.on("end",(()=>{e(a.toString())}))}))}}e.HttpClientResponse=u,e.isHttps=function(e){return"https:"===new URL(e).protocol};class c{constructor(e,p,a){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=e,this.handlers=p||[],this.requestOptions=a,a&&(null!=a.ignoreSslError&&(this._ignoreSslError=a.ignoreSslError),this._socketTimeout=a.socketTimeout,null!=a.allowRedirects&&(this._allowRedirects=a.allowRedirects),null!=a.allowRedirectDowngrade&&(this._allowRedirectDowngrade=a.allowRedirectDowngrade),null!=a.maxRedirects&&(this._maxRedirects=Math.max(a.maxRedirects,0)),null!=a.keepAlive&&(this._keepAlive=a.keepAlive),null!=a.allowRetries&&(this._allowRetries=a.allowRetries),null!=a.maxRetries&&(this._maxRetries=a.maxRetries))}options(e,p){return this.request("OPTIONS",e,null,p||{})}get(e,p){return this.request("GET",e,null,p||{})}del(e,p){return this.request("DELETE",e,null,p||{})}post(e,p,a){return this.request("POST",e,p,a||{})}patch(e,p,a){return this.request("PATCH",e,p,a||{})}put(e,p,a){return this.request("PUT",e,p,a||{})}head(e,p){return this.request("HEAD",e,null,p||{})}sendStream(e,p,a,t){return this.request(e,p,a,t)}async getJson(e,p={}){p[i.Accept]=this._getExistingOrDefaultHeader(p,i.Accept,s.ApplicationJson);let a=await this.get(e,p);return this._processResponse(a,this.requestOptions)}async postJson(e,p,a={}){let t=JSON.stringify(p,null,2);a[i.Accept]=this._getExistingOrDefaultHeader(a,i.Accept,s.ApplicationJson),a[i.ContentType]=this._getExistingOrDefaultHeader(a,i.ContentType,s.ApplicationJson);let r=await this.post(e,t,a);return this._processResponse(r,this.requestOptions)}async putJson(e,p,a={}){let t=JSON.stringify(p,null,2);a[i.Accept]=this._getExistingOrDefaultHeader(a,i.Accept,s.ApplicationJson),a[i.ContentType]=this._getExistingOrDefaultHeader(a,i.ContentType,s.ApplicationJson);let r=await this.put(e,t,a);return this._processResponse(r,this.requestOptions)}async patchJson(e,p,a={}){let t=JSON.stringify(p,null,2);a[i.Accept]=this._getExistingOrDefaultHeader(a,i.Accept,s.ApplicationJson),a[i.ContentType]=this._getExistingOrDefaultHeader(a,i.ContentType,s.ApplicationJson);let r=await this.patch(e,t,a);return this._processResponse(r,this.requestOptions)}async request(e,p,a,t){if(this._disposed)throw new Error("Client has already been disposed.");let r,i=new URL(p),s=this._prepareRequest(e,i,t),m=this._allowRetries&&-1!=l.indexOf(e)?this._maxRetries+1:1,u=0;for(;u0;){const d=r.message.headers.location;if(!d)break;let o=new URL(d);if("https:"==i.protocol&&i.protocol!=o.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");if(await r.readBody(),o.hostname!==i.hostname)for(let e in t)"authorization"===e.toLowerCase()&&delete t[e];s=this._prepareRequest(e,o,t),r=await this.requestRaw(s,a),p--}if(-1==n.indexOf(r.message.statusCode))return r;u+=1,u{this.requestRawWithCallback(e,p,(function(e,p){e&&t(e),a(p)}))}))}requestRawWithCallback(e,p,a){let t;"string"==typeof p&&(e.options.headers["Content-Length"]=Buffer.byteLength(p,"utf8"));let r=!1,d=(e,p)=>{r||(r=!0,a(e,p))},i=e.httpModule.request(e.options,(e=>{let p=new u(e);d(null,p)}));i.on("socket",(e=>{t=e})),i.setTimeout(this._socketTimeout||18e4,(()=>{t&&t.end(),d(new Error("Request timeout: "+e.options.path),null)})),i.on("error",(function(e){d(e,null)})),p&&"string"==typeof p&&i.write(p,"utf8"),p&&"string"!=typeof p?(p.on("close",(function(){i.end()})),p.pipe(i)):i.end()}getAgent(e){let p=new URL(e);return this._getAgent(p)}_prepareRequest(e,t,r){const d={};d.parsedUrl=t;const i="https:"===d.parsedUrl.protocol;d.httpModule=i?a:p;const s=i?443:80;return d.options={},d.options.host=d.parsedUrl.hostname,d.options.port=d.parsedUrl.port?parseInt(d.parsedUrl.port):s,d.options.path=(d.parsedUrl.pathname||"")+(d.parsedUrl.search||""),d.options.method=e,d.options.headers=this._mergeHeaders(r),null!=this.userAgent&&(d.options.headers["user-agent"]=this.userAgent),d.options.agent=this._getAgent(d.parsedUrl),this.handlers&&this.handlers.forEach((e=>{e.prepareRequest(d.options)})),d}_mergeHeaders(e){const p=e=>Object.keys(e).reduce(((p,a)=>(p[a.toLowerCase()]=e[a],p)),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},p(this.requestOptions.headers),p(e)):p(e||{})}_getExistingOrDefaultHeader(e,p,a){let t;var r;return this.requestOptions&&this.requestOptions.headers&&(t=(r=this.requestOptions.headers,Object.keys(r).reduce(((e,p)=>(e[p.toLowerCase()]=r[p],e)),{}))[p]),e[p]||t||a}_getAgent(e){let d,i=t.getProxyUrl(e),s=i&&i.hostname;if(this._keepAlive&&s&&(d=this._proxyAgent),this._keepAlive&&!s&&(d=this._agent),d)return d;const o="https:"===e.protocol;let n=100;if(this.requestOptions&&(n=this.requestOptions.maxSockets||p.globalAgent.maxSockets),s){r||(r=Xe);const e={maxSockets:n,keepAlive:this._keepAlive,proxy:{...(i.username||i.password)&&{proxyAuth:`${i.username}:${i.password}`},host:i.hostname,port:i.port}};let p;const a="https:"===i.protocol;p=o?a?r.httpsOverHttps:r.httpsOverHttp:a?r.httpOverHttps:r.httpOverHttp,d=p(e),this._proxyAgent=d}if(this._keepAlive&&!d){const e={keepAlive:this._keepAlive,maxSockets:n};d=o?new a.Agent(e):new p.Agent(e),this._agent=d}return d||(d=o?a.globalAgent:p.globalAgent),o&&this._ignoreSslError&&(d.options=Object.assign(d.options||{},{rejectUnauthorized:!1})),d}_performExponentialBackoff(e){e=Math.min(10,e);const p=5*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),p)))}static dateTimeDeserializer(e,p){if("string"==typeof p){let e=new Date(p);if(!isNaN(e.valueOf()))return e}return p}async _processResponse(e,p){return new Promise((async(a,t)=>{const r=e.message.statusCode,i={statusCode:r,result:null,headers:{}};let s,o;r==d.NotFound&&a(i);try{o=await e.readBody(),o&&o.length>0&&(s=p&&p.deserializeDates?JSON.parse(o,c.dateTimeDeserializer):JSON.parse(o),i.result=s),i.headers=e.message.headers}catch(e){}if(r>299){let e;e=s&&s.message?s.message:o&&o.length>0?o:"Failed request: ("+r+")";let p=new m(e,r);p.result=i.result,t(p)}else a(i)}))}}e.HttpClient=c}(Ap);for(var Dp=k.default,Pp=[],kp=0;kp<256;++kp)Pp[kp]=(kp+256).toString(16).substr(1);var Cp=function(e,p){var a=p||0,t=Pp;return[t[e[a++]],t[e[a++]],t[e[a++]],t[e[a++]],"-",t[e[a++]],t[e[a++]],"-",t[e[a++]],t[e[a++]],"-",t[e[a++]],t[e[a++]],"-",t[e[a++]],t[e[a++]],t[e[a++]],t[e[a++]],t[e[a++]],t[e[a++]]].join("")},Vp=function(){return Dp.randomBytes(16)},Lp=Cp;var Ip=function(e,p,a){var t=p&&a||0;"string"==typeof e&&(p="binary"===e?new Array(16):null,e=null);var r=(e=e||{}).random||(e.rng||Vp)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,p)for(var d=0;d<16;++d)p[t+d]=r[d];return p||Lp(r)},Fp={},Gp={},Up=G&&G.__createBinding||(Object.create?function(e,p,a,t){void 0===t&&(t=a),Object.defineProperty(e,t,{enumerable:!0,get:function(){return p[a]}})}:function(e,p,a,t){void 0===t&&(t=a),e[t]=p[a]}),xp=G&&G.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:!0,value:p})}:function(e,p){e.default=p}),$p=G&&G.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(null!=e)for(var a in e)"default"!==a&&Object.hasOwnProperty.call(e,a)&&Up(p,e,a);return xp(p,e),p},jp=G&&G.__awaiter||function(e,p,a,t){return new(a||(a=Promise))((function(r,d){function i(e){try{o(t.next(e))}catch(e){d(e)}}function s(e){try{o(t.throw(e))}catch(e){d(e)}}function o(e){var p;e.done?r(e.value):(p=e.value,p instanceof a?p:new a((function(e){e(p)}))).then(i,s)}o((t=t.apply(e,p||[])).next())}))};Object.defineProperty(Gp,"__esModule",{value:!0}),Gp.argStringToArray=Gp.ToolRunner=void 0;const Bp=$p(E.default),qp=$p(A.default),Mp=$p(D.default),Hp=$p(b.default),Wp=$p(op),zp=$p(np),Xp=V.default,Kp="win32"===process.platform;class Jp extends qp.EventEmitter{constructor(e,p,a){if(super(),!e)throw new Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=p||[],this.options=a||{}}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e)}_getCommandString(e,p){const a=this._getSpawnFileName(),t=this._getSpawnArgs(e);let r=p?"":"[command]";if(Kp)if(this._isCmdFile()){r+=a;for(const e of t)r+=` ${e}`}else if(e.windowsVerbatimArguments){r+=`"${a}"`;for(const e of t)r+=` ${e}`}else{r+=this._windowsQuoteCmdArg(a);for(const e of t)r+=` ${this._windowsQuoteCmdArg(e)}`}else{r+=a;for(const e of t)r+=` ${e}`}return r}_processLineBuffer(e,p,a){try{let t=p+e.toString(),r=t.indexOf(Bp.EOL);for(;r>-1;){a(t.substring(0,r)),t=t.substring(r+Bp.EOL.length),r=t.indexOf(Bp.EOL)}return t}catch(e){return this._debug(`error processing line. Failed with error ${e}`),""}}_getSpawnFileName(){return Kp&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(e){if(Kp&&this._isCmdFile()){let p=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const a of this.args)p+=" ",p+=e.windowsVerbatimArguments?a:this._windowsQuoteCmdArg(a);return p+='"',[p]}return this.args}_endsWith(e,p){return e.endsWith(p)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile())return this._uvQuoteCmdArg(e);if(!e)return'""';const p=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let a=!1;for(const t of e)if(p.some((e=>e===t))){a=!0;break}if(!a)return e;let t='"',r=!0;for(let p=e.length;p>0;p--)t+=e[p-1],r&&"\\"===e[p-1]?t+="\\":'"'===e[p-1]?(r=!0,t+='"'):r=!1;return t+='"',t.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let p='"',a=!0;for(let t=e.length;t>0;t--)p+=e[t-1],a&&"\\"===e[t-1]?p+="\\":'"'===e[t-1]?(a=!0,p+="\\"):a=!1;return p+='"',p.split("").reverse().join("")}_cloneExecOptions(e){const p={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return p.outStream=e.outStream||process.stdout,p.errStream=e.errStream||process.stderr,p}_getSpawnOptions(e,p){e=e||{};const a={};return a.cwd=e.cwd,a.env=e.env,a.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(a.argv0=`"${p}"`),a}exec(){return jp(this,void 0,void 0,(function*(){return!zp.isRooted(this.toolPath)&&(this.toolPath.includes("/")||Kp&&this.toolPath.includes("\\"))&&(this.toolPath=Hp.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield Wp.which(this.toolPath,!0),new Promise(((e,p)=>jp(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`),this._debug("arguments:");for(const e of this.args)this._debug(` ${e}`);const a=this._cloneExecOptions(this.options);!a.silent&&a.outStream&&a.outStream.write(this._getCommandString(a)+Bp.EOL);const t=new Yp(a,this.toolPath);if(t.on("debug",(e=>{this._debug(e)})),this.options.cwd&&!(yield zp.exists(this.options.cwd)))return p(new Error(`The cwd: ${this.options.cwd} does not exist!`));const r=this._getSpawnFileName(),d=Mp.spawn(r,this._getSpawnArgs(a),this._getSpawnOptions(this.options,r));let i="";d.stdout&&d.stdout.on("data",(e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!a.silent&&a.outStream&&a.outStream.write(e),i=this._processLineBuffer(e,i,(e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e)}))}));let s="";if(d.stderr&&d.stderr.on("data",(e=>{if(t.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!a.silent&&a.errStream&&a.outStream){(a.failOnStdErr?a.errStream:a.outStream).write(e)}s=this._processLineBuffer(e,s,(e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e)}))})),d.on("error",(e=>{t.processError=e.message,t.processExited=!0,t.processClosed=!0,t.CheckComplete()})),d.on("exit",(e=>{t.processExitCode=e,t.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),t.CheckComplete()})),d.on("close",(e=>{t.processExitCode=e,t.processExited=!0,t.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),t.CheckComplete()})),t.on("done",((a,t)=>{i.length>0&&this.emit("stdline",i),s.length>0&&this.emit("errline",s),d.removeAllListeners(),a?p(a):e(t)})),this.options.input){if(!d.stdin)throw new Error("child process missing stdin");d.stdin.end(this.options.input)}}))))}))}}Gp.ToolRunner=Jp,Gp.argStringToArray=function(e){const p=[];let a=!1,t=!1,r="";function d(e){t&&'"'!==e&&(r+="\\"),r+=e,t=!1}for(let i=0;i0&&(p.push(r),r=""):t?d(s):a=!a}return r.length>0&&p.push(r.trim()),p};class Yp extends qp.EventEmitter{constructor(e,p){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!p)throw new Error("toolPath must not be empty");this.options=e,this.toolPath=p,e.delay&&(this.delay=e.delay)}CheckComplete(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=Xp.setTimeout(Yp.HandleTimeout,this.delay,this)))}_debug(e){this.emit("debug",e)}_setResult(){let e;this.processExited&&(this.processError?e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):0===this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)):e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(!e.done){if(!e.processClosed&&e.processExited){const p=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(p)}e._setResult()}}}var Zp=G&&G.__createBinding||(Object.create?function(e,p,a,t){void 0===t&&(t=a),Object.defineProperty(e,t,{enumerable:!0,get:function(){return p[a]}})}:function(e,p,a,t){void 0===t&&(t=a),e[t]=p[a]}),Qp=G&&G.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:!0,value:p})}:function(e,p){e.default=p}),ea=G&&G.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(null!=e)for(var a in e)"default"!==a&&Object.hasOwnProperty.call(e,a)&&Zp(p,e,a);return Qp(p,e),p},pa=G&&G.__awaiter||function(e,p,a,t){return new(a||(a=Promise))((function(r,d){function i(e){try{o(t.next(e))}catch(e){d(e)}}function s(e){try{o(t.throw(e))}catch(e){d(e)}}function o(e){var p;e.done?r(e.value):(p=e.value,p instanceof a?p:new a((function(e){e(p)}))).then(i,s)}o((t=t.apply(e,p||[])).next())}))};Object.defineProperty(Fp,"__esModule",{value:!0}),Fp.getExecOutput=Fp.exec=void 0;const aa=C.default,ta=ea(Gp);function ra(e,p,a){return pa(this,void 0,void 0,(function*(){const t=ta.argStringToArray(e);if(0===t.length)throw new Error("Parameter 'commandLine' cannot be null or empty.");const r=t[0];p=t.slice(1).concat(p||[]);return new ta.ToolRunner(r,p,a).exec()}))}Fp.exec=ra,Fp.getExecOutput=function(e,p,a){var t,r;return pa(this,void 0,void 0,(function*(){let d="",i="";const s=new aa.StringDecoder("utf8"),o=new aa.StringDecoder("utf8"),n=null===(t=null==a?void 0:a.listeners)||void 0===t?void 0:t.stdout,l=null===(r=null==a?void 0:a.listeners)||void 0===r?void 0:r.stderr,m=Object.assign(Object.assign({},null==a?void 0:a.listeners),{stdout:e=>{d+=s.write(e),n&&n(e)},stderr:e=>{i+=o.write(e),l&&l(e)}}),u=yield ra(e,p,Object.assign(Object.assign({},a),{listeners:m}));return d+=s.end(),i+=o.end(),{exitCode:u,stdout:d,stderr:i}}))};var da={},ia=G&&G.__createBinding||(Object.create?function(e,p,a,t){void 0===t&&(t=a),Object.defineProperty(e,t,{enumerable:!0,get:function(){return p[a]}})}:function(e,p,a,t){void 0===t&&(t=a),e[t]=p[a]}),sa=G&&G.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:!0,value:p})}:function(e,p){e.default=p}),oa=G&&G.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(null!=e)for(var a in e)"default"!==a&&Object.hasOwnProperty.call(e,a)&&ia(p,e,a);return sa(p,e),p},na=G&&G.__awaiter||function(e,p,a,t){return new(a||(a=Promise))((function(r,d){function i(e){try{o(t.next(e))}catch(e){d(e)}}function s(e){try{o(t.throw(e))}catch(e){d(e)}}function o(e){var p;e.done?r(e.value):(p=e.value,p instanceof a?p:new a((function(e){e(p)}))).then(i,s)}o((t=t.apply(e,p||[])).next())}))};Object.defineProperty(da,"__esModule",{value:!0}),da.RetryHelper=void 0;const la=oa(dp());da.RetryHelper=class{constructor(e,p,a){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(p),this.maxSeconds=Math.floor(a),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,p){return na(this,void 0,void 0,(function*(){let a=1;for(;asetTimeout(p,1e3*e)))}))}};var ma=G&&G.__createBinding||(Object.create?function(e,p,a,t){void 0===t&&(t=a),Object.defineProperty(e,t,{enumerable:!0,get:function(){return p[a]}})}:function(e,p,a,t){void 0===t&&(t=a),e[t]=p[a]}),ua=G&&G.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:!0,value:p})}:function(e,p){e.default=p}),ca=G&&G.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(null!=e)for(var a in e)"default"!==a&&Object.hasOwnProperty.call(e,a)&&ma(p,e,a);return ua(p,e),p},ha=G&&G.__awaiter||function(e,p,a,t){return new(a||(a=Promise))((function(r,d){function i(e){try{o(t.next(e))}catch(e){d(e)}}function s(e){try{o(t.throw(e))}catch(e){d(e)}}function o(e){var p;e.done?r(e.value):(p=e.value,p instanceof a?p:new a((function(e){e(p)}))).then(i,s)}o((t=t.apply(e,p||[])).next())}))},va=G&&G.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(sp,"__esModule",{value:!0}),sp.evaluateVersions=sp.isExplicitVersion=sp.findFromManifest=sp.getManifestFromRepo=sp.findAllVersions=Ua=sp.find=sp.cacheFile=Ga=sp.cacheDir=Fa=sp.extractZip=sp.extractXar=Ia=sp.extractTar=sp.extract7z=La=sp.downloadTool=sp.HTTPError=void 0;const fa=ca(dp()),ga=ca(op),wa=ca(T.default),Ea=ca(Op),Ta=ca(E.default),_a=ca(b.default),ba=ca(Ap),ya=ca(Sp),Sa=ca(P.default),Oa=ca(N.default),Aa=va(Ip),Ra=Fp,Na=R.default,Da=da;class Pa extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}}sp.HTTPError=Pa;const ka="win32"===process.platform,Ca="darwin"===process.platform,Va="actions/tool-cache";var La=sp.downloadTool=function(e,p,a,t){return ha(this,void 0,void 0,(function*(){p=p||_a.join(Wa(),Aa.default()),yield ga.mkdirP(_a.dirname(p)),fa.debug(`Downloading ${e}`),fa.debug(`Destination ${p}`);const r=za("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),d=za("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),i=new Da.RetryHelper(3,r,d);return yield i.execute((()=>ha(this,void 0,void 0,(function*(){return yield function(e,p,a,t){return ha(this,void 0,void 0,(function*(){if(wa.existsSync(p))throw new Error(`Destination file path ${p} already exists`);const r=new ba.HttpClient(Va,[],{allowRetries:!1});a&&(fa.debug("set auth"),void 0===t&&(t={}),t.authorization=a);const d=yield r.get(e,t);if(200!==d.message.statusCode){const p=new Pa(d.message.statusCode);throw fa.debug(`Failed to download from "${e}". Code(${d.message.statusCode}) Message(${d.message.statusMessage})`),p}const i=Oa.promisify(Sa.pipeline),s=za("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>d.message))();let o=!1;try{return yield i(s,wa.createWriteStream(p)),fa.debug("download complete"),o=!0,p}finally{if(!o){fa.debug("download failed");try{yield ga.rmRF(p)}catch(e){fa.debug(`Failed to delete '${p}'. ${e.message}`)}}}}))}(e,p||"",a,t)}))),(e=>!(e instanceof Pa&&e.httpStatusCode&&e.httpStatusCode<500&&408!==e.httpStatusCode&&429!==e.httpStatusCode)))}))};sp.extract7z=function(e,p,a){return ha(this,void 0,void 0,(function*(){Na.ok(ka,"extract7z() not supported on current OS"),Na.ok(e,'parameter "file" is required'),p=yield $a(p);const t=process.cwd();if(process.chdir(p),a)try{const p=["x",fa.isDebug()?"-bb1":"-bb0","-bd","-sccUTF-8",e],t={silent:!0};yield Ra.exec(`"${a}"`,p,t)}finally{process.chdir(t)}else{const a=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${_a.join(__dirname,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"")}' -Source '${e.replace(/'/g,"''").replace(/"|\n|\r/g,"")}' -Target '${p.replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`],r={silent:!0};try{const e=yield ga.which("powershell",!0);yield Ra.exec(`"${e}"`,a,r)}finally{process.chdir(t)}}return p}))};var Ia=sp.extractTar=function(e,p,a="xz"){return ha(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");p=yield $a(p),fa.debug("Checking tar --version");let t="";yield Ra.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:e=>t+=e.toString(),stderr:e=>t+=e.toString()}}),fa.debug(t.trim());const r=t.toUpperCase().includes("GNU TAR");let d;d=a instanceof Array?a:[a],fa.isDebug()&&!a.includes("v")&&d.push("-v");let i=p,s=e;return ka&&r&&(d.push("--force-local"),i=p.replace(/\\/g,"/"),s=e.replace(/\\/g,"/")),r&&(d.push("--warning=no-unknown-keyword"),d.push("--overwrite")),d.push("-C",i,"-f",s),yield Ra.exec("tar",d),p}))};sp.extractXar=function(e,p,a=[]){return ha(this,void 0,void 0,(function*(){let t;Na.ok(Ca,"extractXar() not supported on current OS"),Na.ok(e,'parameter "file" is required'),p=yield $a(p),t=a instanceof Array?a:[a],t.push("-x","-C",p,"-f",e),fa.isDebug()&&t.push("-v");const r=yield ga.which("xar",!0);var d;return yield Ra.exec(`"${r}"`,(d=t,Array.from(new Set(d)))),p}))};var Fa=sp.extractZip=function(e,p){return ha(this,void 0,void 0,(function*(){if(!e)throw new Error("parameter 'file' is required");return p=yield $a(p),ka?yield function(e,p){return ha(this,void 0,void 0,(function*(){const a=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),t=p.replace(/'/g,"''").replace(/"|\n|\r/g,""),r=yield ga.which("pwsh",!1);if(r){const e=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",["$ErrorActionPreference = 'Stop' ;","try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;",`try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${a}', '${t}', $true) }`,`catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${a}' -DestinationPath '${t}' -Force } else { throw $_ } } ;`].join(" ")];fa.debug(`Using pwsh at path: ${r}`),yield Ra.exec(`"${r}"`,e)}else{const e=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",["$ErrorActionPreference = 'Stop' ;","try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ;",`if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${a}' -DestinationPath '${t}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${a}', '${t}', $true) }`].join(" ")],p=yield ga.which("powershell",!0);fa.debug(`Using powershell at path: ${p}`),yield Ra.exec(`"${p}"`,e)}}))}(e,p):yield function(e,p){return ha(this,void 0,void 0,(function*(){const a=yield ga.which("unzip",!0),t=[e];fa.isDebug()||t.unshift("-q"),t.unshift("-o"),yield Ra.exec(`"${a}"`,t,{cwd:p})}))}(e,p),p}))};var Ga=sp.cacheDir=function(e,p,a,t){return ha(this,void 0,void 0,(function*(){if(a=ya.clean(a)||a,t=t||Ta.arch(),fa.debug(`Caching tool ${p} ${a} ${t}`),fa.debug(`source dir: ${e}`),!wa.statSync(e).isDirectory())throw new Error("sourceDir is not a directory");const r=yield ja(p,a,t);for(const p of wa.readdirSync(e)){const a=_a.join(e,p);yield ga.cp(a,r,{recursive:!0})}return Ba(p,a,t),r}))};sp.cacheFile=function(e,p,a,t,r){return ha(this,void 0,void 0,(function*(){if(t=ya.clean(t)||t,r=r||Ta.arch(),fa.debug(`Caching tool ${a} ${t} ${r}`),fa.debug(`source file: ${e}`),!wa.statSync(e).isFile())throw new Error("sourceFile is not a file");const d=yield ja(a,t,r),i=_a.join(d,p);return fa.debug(`destination file ${i}`),yield ga.cp(e,i),Ba(a,t,r),d}))};var Ua=sp.find=function(e,p,a){if(!e)throw new Error("toolName parameter is required");if(!p)throw new Error("versionSpec parameter is required");if(a=a||Ta.arch(),!qa(p)){p=Ma(xa(e,a),p)}let t="";if(p){p=ya.clean(p)||"";const r=_a.join(Ha(),e,p,a);fa.debug(`checking cache: ${r}`),wa.existsSync(r)&&wa.existsSync(`${r}.complete`)?(fa.debug(`Found tool in cache ${e} ${p} ${a}`),t=r):fa.debug("not found")}return t};function xa(e,p){const a=[];p=p||Ta.arch();const t=_a.join(Ha(),e);if(wa.existsSync(t)){const e=wa.readdirSync(t);for(const r of e)if(qa(r)){const e=_a.join(t,r,p||"");wa.existsSync(e)&&wa.existsSync(`${e}.complete`)&&a.push(r)}}return a}function $a(e){return ha(this,void 0,void 0,(function*(){return e||(e=_a.join(Wa(),Aa.default())),yield ga.mkdirP(e),e}))}function ja(e,p,a){return ha(this,void 0,void 0,(function*(){const t=_a.join(Ha(),e,ya.clean(p)||p,a||"");fa.debug(`destination ${t}`);const r=`${t}.complete`;return yield ga.rmRF(t),yield ga.rmRF(r),yield ga.mkdirP(t),t}))}function Ba(e,p,a){const t=`${_a.join(Ha(),e,ya.clean(p)||p,a||"")}.complete`;wa.writeFileSync(t,""),fa.debug("finished caching tool")}function qa(e){const p=ya.clean(e)||"";fa.debug(`isExplicit: ${p}`);const a=null!=ya.valid(p);return fa.debug(`explicit? ${a}`),a}function Ma(e,p){let a="";fa.debug(`evaluating ${e.length} versions`);for(let t=(e=e.sort(((e,p)=>ya.gt(e,p)?1:-1))).length-1;t>=0;t--){const r=e[t];if(ya.satisfies(r,p)){a=r;break}}return a?fa.debug(`matched: ${a}`):fa.debug("match not found"),a}function Ha(){const e=process.env.RUNNER_TOOL_CACHE||"";return Na.ok(e,"Expected RUNNER_TOOL_CACHE to be defined"),e}function Wa(){const e=process.env.RUNNER_TEMP||"";return Na.ok(e,"Expected RUNNER_TEMP to be defined"),e}function za(e,p){const a=G[e];return void 0!==a?a:p}sp.findAllVersions=xa,sp.getManifestFromRepo=function(e,p,a,t="master"){return ha(this,void 0,void 0,(function*(){let r=[];const d=`https://api.github.com/repos/${e}/${p}/git/trees/${t}`,i=new ba.HttpClient("tool-cache"),s={};a&&(fa.debug("set auth"),s.authorization=a);const o=yield i.getJson(d,s);if(!o.result)return r;let n="";for(const e of o.result.tree)if("versions-manifest.json"===e.path){n=e.url;break}s.accept="application/vnd.github.VERSION.raw";let l=yield(yield i.get(n,s)).readBody();if(l){l=l.replace(/^\uFEFF/,"");try{r=JSON.parse(l)}catch(e){fa.debug("Invalid json")}}return r}))},sp.findFromManifest=function(e,p,a,t=Ta.arch()){return ha(this,void 0,void 0,(function*(){return yield Ea._findMatch(e,p,a,t)}))},sp.isExplicitVersion=qa,sp.evaluateVersions=Ma;var Xa={exports:{}};var Ka={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};var Ja="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};!function(e,p){const{MAX_SAFE_COMPONENT_LENGTH:a,MAX_SAFE_BUILD_LENGTH:t}=Ka,r=Ja,d=(p=e.exports={}).re=[],i=p.safeRe=[],s=p.src=[],o=p.t={};let n=0;const l="[a-zA-Z0-9-]",m=[["\\s",1],["\\d",a],[l,t]],u=(e,p,a)=>{const t=(e=>{for(const[p,a]of m)e=e.split(`${p}*`).join(`${p}{0,${a}}`).split(`${p}+`).join(`${p}{1,${a}}`);return e})(p),l=n++;r(e,l,p),o[e]=l,s[l]=p,d[l]=new RegExp(p,a?"g":void 0),i[l]=new RegExp(t,a?"g":void 0)};u("NUMERICIDENTIFIER","0|[1-9]\\d*"),u("NUMERICIDENTIFIERLOOSE","\\d+"),u("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${l}*`),u("MAINVERSION",`(${s[o.NUMERICIDENTIFIER]})\\.(${s[o.NUMERICIDENTIFIER]})\\.(${s[o.NUMERICIDENTIFIER]})`),u("MAINVERSIONLOOSE",`(${s[o.NUMERICIDENTIFIERLOOSE]})\\.(${s[o.NUMERICIDENTIFIERLOOSE]})\\.(${s[o.NUMERICIDENTIFIERLOOSE]})`),u("PRERELEASEIDENTIFIER",`(?:${s[o.NUMERICIDENTIFIER]}|${s[o.NONNUMERICIDENTIFIER]})`),u("PRERELEASEIDENTIFIERLOOSE",`(?:${s[o.NUMERICIDENTIFIERLOOSE]}|${s[o.NONNUMERICIDENTIFIER]})`),u("PRERELEASE",`(?:-(${s[o.PRERELEASEIDENTIFIER]}(?:\\.${s[o.PRERELEASEIDENTIFIER]})*))`),u("PRERELEASELOOSE",`(?:-?(${s[o.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[o.PRERELEASEIDENTIFIERLOOSE]})*))`),u("BUILDIDENTIFIER",`${l}+`),u("BUILD",`(?:\\+(${s[o.BUILDIDENTIFIER]}(?:\\.${s[o.BUILDIDENTIFIER]})*))`),u("FULLPLAIN",`v?${s[o.MAINVERSION]}${s[o.PRERELEASE]}?${s[o.BUILD]}?`),u("FULL",`^${s[o.FULLPLAIN]}$`),u("LOOSEPLAIN",`[v=\\s]*${s[o.MAINVERSIONLOOSE]}${s[o.PRERELEASELOOSE]}?${s[o.BUILD]}?`),u("LOOSE",`^${s[o.LOOSEPLAIN]}$`),u("GTLT","((?:<|>)?=?)"),u("XRANGEIDENTIFIERLOOSE",`${s[o.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),u("XRANGEIDENTIFIER",`${s[o.NUMERICIDENTIFIER]}|x|X|\\*`),u("XRANGEPLAIN",`[v=\\s]*(${s[o.XRANGEIDENTIFIER]})(?:\\.(${s[o.XRANGEIDENTIFIER]})(?:\\.(${s[o.XRANGEIDENTIFIER]})(?:${s[o.PRERELEASE]})?${s[o.BUILD]}?)?)?`),u("XRANGEPLAINLOOSE",`[v=\\s]*(${s[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[o.XRANGEIDENTIFIERLOOSE]})(?:${s[o.PRERELEASELOOSE]})?${s[o.BUILD]}?)?)?`),u("XRANGE",`^${s[o.GTLT]}\\s*${s[o.XRANGEPLAIN]}$`),u("XRANGELOOSE",`^${s[o.GTLT]}\\s*${s[o.XRANGEPLAINLOOSE]}$`),u("COERCE",`(^|[^\\d])(\\d{1,${a}})(?:\\.(\\d{1,${a}}))?(?:\\.(\\d{1,${a}}))?(?:$|[^\\d])`),u("COERCERTL",s[o.COERCE],!0),u("LONETILDE","(?:~>?)"),u("TILDETRIM",`(\\s*)${s[o.LONETILDE]}\\s+`,!0),p.tildeTrimReplace="$1~",u("TILDE",`^${s[o.LONETILDE]}${s[o.XRANGEPLAIN]}$`),u("TILDELOOSE",`^${s[o.LONETILDE]}${s[o.XRANGEPLAINLOOSE]}$`),u("LONECARET","(?:\\^)"),u("CARETTRIM",`(\\s*)${s[o.LONECARET]}\\s+`,!0),p.caretTrimReplace="$1^",u("CARET",`^${s[o.LONECARET]}${s[o.XRANGEPLAIN]}$`),u("CARETLOOSE",`^${s[o.LONECARET]}${s[o.XRANGEPLAINLOOSE]}$`),u("COMPARATORLOOSE",`^${s[o.GTLT]}\\s*(${s[o.LOOSEPLAIN]})$|^$`),u("COMPARATOR",`^${s[o.GTLT]}\\s*(${s[o.FULLPLAIN]})$|^$`),u("COMPARATORTRIM",`(\\s*)${s[o.GTLT]}\\s*(${s[o.LOOSEPLAIN]}|${s[o.XRANGEPLAIN]})`,!0),p.comparatorTrimReplace="$1$2$3",u("HYPHENRANGE",`^\\s*(${s[o.XRANGEPLAIN]})\\s+-\\s+(${s[o.XRANGEPLAIN]})\\s*$`),u("HYPHENRANGELOOSE",`^\\s*(${s[o.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[o.XRANGEPLAINLOOSE]})\\s*$`),u("STAR","(<|>)?=?\\s*\\*"),u("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),u("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(Xa,Xa.exports);var Ya=Xa.exports;const Za=Object.freeze({loose:!0}),Qa=Object.freeze({});var et=e=>e?"object"!=typeof e?Za:e:Qa;const pt=/^[0-9]+$/,at=(e,p)=>{const a=pt.test(e),t=pt.test(p);return a&&t&&(e=+e,p=+p),e===p?0:a&&!t?-1:t&&!a?1:eat(p,e)};const rt=Ja,{MAX_LENGTH:dt,MAX_SAFE_INTEGER:it}=Ka,{safeRe:st,t:ot}=Ya,nt=et,{compareIdentifiers:lt}=tt;class mt{constructor(e,p){if(p=nt(p),e instanceof mt){if(e.loose===!!p.loose&&e.includePrerelease===!!p.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>dt)throw new TypeError(`version is longer than ${dt} characters`);rt("SemVer",e,p),this.options=p,this.loose=!!p.loose,this.includePrerelease=!!p.includePrerelease;const a=e.trim().match(p.loose?st[ot.LOOSE]:st[ot.FULL]);if(!a)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>it||this.major<0)throw new TypeError("Invalid major version");if(this.minor>it||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>it||this.patch<0)throw new TypeError("Invalid patch version");a[4]?this.prerelease=a[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const p=+e;if(p>=0&&p=0;)"number"==typeof this.prerelease[t]&&(this.prerelease[t]++,t=-2);if(-1===t){if(p===this.prerelease.join(".")&&!1===a)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(p){let t=[p,e];!1===a&&(t=[p]),0===lt(this.prerelease[0],p)?isNaN(this.prerelease[1])&&(this.prerelease=t):this.prerelease=t}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}var ut=mt;const ct=ut;var ht=(e,p,a=!1)=>{if(e instanceof ct)return e;try{return new ct(e,p)}catch(e){if(!a)return null;throw e}};const vt=ht;var ft=(e,p)=>{const a=vt(e,p);return a?a.version:null};const gt=ht;var wt=(e,p)=>{const a=gt(e.trim().replace(/^[=v]+/,""),p);return a?a.version:null};const Et=ut;var Tt=(e,p,a,t,r)=>{"string"==typeof a&&(r=t,t=a,a=void 0);try{return new Et(e instanceof Et?e.version:e,a).inc(p,t,r).version}catch(e){return null}};const _t=ht;var bt=(e,p)=>{const a=_t(e,null,!0),t=_t(p,null,!0),r=a.compare(t);if(0===r)return null;const d=r>0,i=d?a:t,s=d?t:a,o=!!i.prerelease.length;if(!!s.prerelease.length&&!o)return s.patch||s.minor?i.patch?"patch":i.minor?"minor":"major":"major";const n=o?"pre":"";return a.major!==t.major?n+"major":a.minor!==t.minor?n+"minor":a.patch!==t.patch?n+"patch":"prerelease"};const yt=ut;var St=(e,p)=>new yt(e,p).major;const Ot=ut;var At=(e,p)=>new Ot(e,p).minor;const Rt=ut;var Nt=(e,p)=>new Rt(e,p).patch;const Dt=ht;var Pt=(e,p)=>{const a=Dt(e,p);return a&&a.prerelease.length?a.prerelease:null};const kt=ut;var Ct=(e,p,a)=>new kt(e,a).compare(new kt(p,a));const Vt=Ct;var Lt=(e,p,a)=>Vt(p,e,a);const It=Ct;var Ft=(e,p)=>It(e,p,!0);const Gt=ut;var Ut=(e,p,a)=>{const t=new Gt(e,a),r=new Gt(p,a);return t.compare(r)||t.compareBuild(r)};const xt=Ut;var $t=(e,p)=>e.sort(((e,a)=>xt(e,a,p)));const jt=Ut;var Bt=(e,p)=>e.sort(((e,a)=>jt(a,e,p)));const qt=Ct;var Mt=(e,p,a)=>qt(e,p,a)>0;const Ht=Ct;var Wt=(e,p,a)=>Ht(e,p,a)<0;const zt=Ct;var Xt=(e,p,a)=>0===zt(e,p,a);const Kt=Ct;var Jt=(e,p,a)=>0!==Kt(e,p,a);const Yt=Ct;var Zt=(e,p,a)=>Yt(e,p,a)>=0;const Qt=Ct;var er=(e,p,a)=>Qt(e,p,a)<=0;const pr=Xt,ar=Jt,tr=Mt,rr=Zt,dr=Wt,ir=er;var sr=(e,p,a,t)=>{switch(p){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof a&&(a=a.version),e===a;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof a&&(a=a.version),e!==a;case"":case"=":case"==":return pr(e,a,t);case"!=":return ar(e,a,t);case">":return tr(e,a,t);case">=":return rr(e,a,t);case"<":return dr(e,a,t);case"<=":return ir(e,a,t);default:throw new TypeError(`Invalid operator: ${p}`)}};const or=ut,nr=ht,{safeRe:lr,t:mr}=Ya;var ur,cr,hr,vr,fr,gr,wr,Er,Tr,_r,br=(e,p)=>{if(e instanceof or)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let a=null;if((p=p||{}).rtl){let p;for(;(p=lr[mr.COERCERTL].exec(e))&&(!a||a.index+a[0].length!==e.length);)a&&p.index+p[0].length===a.index+a[0].length||(a=p),lr[mr.COERCERTL].lastIndex=p.index+p[1].length+p[2].length;lr[mr.COERCERTL].lastIndex=-1}else a=e.match(lr[mr.COERCE]);return null===a?null:nr(`${a[2]}.${a[3]||"0"}.${a[4]||"0"}`,p)};function yr(){if(vr)return hr;function e(p){var a=this;if(a instanceof e||(a=new e),a.tail=null,a.head=null,a.length=0,p&&"function"==typeof p.forEach)p.forEach((function(e){a.push(e)}));else if(arguments.length>0)for(var t=0,r=arguments.length;t1)a=p;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");t=this.head.next,a=this.head.value}for(var r=0;null!==t;r++)a=e(a,t.value,r),t=t.next;return a},e.prototype.reduceReverse=function(e,p){var a,t=this.tail;if(arguments.length>1)a=p;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");t=this.tail.prev,a=this.tail.value}for(var r=this.length-1;null!==t;r--)a=e(a,t.value,r),t=t.prev;return a},e.prototype.toArray=function(){for(var e=new Array(this.length),p=0,a=this.head;null!==a;p++)e[p]=a.value,a=a.next;return e},e.prototype.toArrayReverse=function(){for(var e=new Array(this.length),p=0,a=this.tail;null!==a;p++)e[p]=a.value,a=a.prev;return e},e.prototype.slice=function(p,a){(a=a||this.length)<0&&(a+=this.length),(p=p||0)<0&&(p+=this.length);var t=new e;if(athis.length&&(a=this.length);for(var r=0,d=this.head;null!==d&&rthis.length&&(a=this.length);for(var r=this.length,d=this.tail;null!==d&&r>a;r--)d=d.prev;for(;null!==d&&r>p;r--,d=d.prev)t.push(d.value);return t},e.prototype.splice=function(e,a,...t){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,d=this.head;null!==d&&rthis.parseRange(e))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!h(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&v(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const p=((this.options.includePrerelease&&u)|(this.options.loose&&c))+":"+e,t=a.get(p);if(t)return t;const i=this.options.loose,v=i?s[o.HYPHENRANGELOOSE]:s[o.HYPHENRANGE];e=e.replace(v,R(this.options.includePrerelease)),d("hyphen replace",e),e=e.replace(s[o.COMPARATORTRIM],n),d("comparator trim",e),e=e.replace(s[o.TILDETRIM],l),d("tilde trim",e),e=e.replace(s[o.CARETTRIM],m),d("caret trim",e);let f=e.split(" ").map((e=>g(e,this.options))).join(" ").split(/\s+/).map((e=>A(e,this.options)));i&&(f=f.filter((e=>(d("loose invalid filter",e,this.options),!!e.match(s[o.COMPARATORLOOSE]))))),d("range list",f);const w=new Map,E=f.map((e=>new r(e,this.options)));for(const e of E){if(h(e))return[e];w.set(e.value,e)}w.size>1&&w.has("")&&w.delete("");const T=[...w.values()];return a.set(p,T),T}intersects(p,a){if(!(p instanceof e))throw new TypeError("a Range is required");return this.set.some((e=>f(e,a)&&p.set.some((p=>f(p,a)&&e.every((e=>p.every((p=>e.intersects(p,a)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new i(e,this.options)}catch(e){return!1}for(let p=0;p1,u=(e,p,a)=>{const t=e[n].get(p);if(t){const p=t.value;if(c(e,p)){if(v(e,t),!e[r])return}else a&&(e[l]&&(t.value.now=Date.now()),e[o].unshiftNode(t));return p.value}},c=(e,p)=>{if(!p||!p.maxAge&&!e[d])return!1;const a=Date.now()-p.now;return p.maxAge?a>p.maxAge:e[d]&&a>e[d]},h=e=>{if(e[a]>e[p])for(let t=e[o].tail;e[a]>e[p]&&null!==t;){const p=t.prev;v(e,t),t=p}},v=(e,p)=>{if(p){const t=p.value;e[i]&&e[i](t.key,t.value),e[a]-=t.length,e[n].delete(t.key),e[o].removeNode(p)}};class f{constructor(e,p,a,t,r){this.key=e,this.value=p,this.length=a,this.now=t,this.maxAge=r||0}}const g=(e,p,a,t)=>{let d=a.value;c(e,d)&&(v(e,a),e[r]||(d=void 0)),d&&p.call(t,d.value,d.key,e)};return fr=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[p]=e.max||1/0;const a=e.length||m;if(this[t]="function"!=typeof a?m:a,this[r]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[d]=e.maxAge||0,this[i]=e.dispose,this[s]=e.noDisposeOnSet||!1,this[l]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[p]=e||1/0,h(this)}get max(){return this[p]}set allowStale(e){this[r]=!!e}get allowStale(){return this[r]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[d]=e,h(this)}get maxAge(){return this[d]}set lengthCalculator(e){"function"!=typeof e&&(e=m),e!==this[t]&&(this[t]=e,this[a]=0,this[o].forEach((e=>{e.length=this[t](e.value,e.key),this[a]+=e.length}))),h(this)}get lengthCalculator(){return this[t]}get length(){return this[a]}get itemCount(){return this[o].length}rforEach(e,p){p=p||this;for(let a=this[o].tail;null!==a;){const t=a.prev;g(this,e,a,p),a=t}}forEach(e,p){p=p||this;for(let a=this[o].head;null!==a;){const t=a.next;g(this,e,a,p),a=t}}keys(){return this[o].toArray().map((e=>e.key))}values(){return this[o].toArray().map((e=>e.value))}reset(){this[i]&&this[o]&&this[o].length&&this[o].forEach((e=>this[i](e.key,e.value))),this[n]=new Map,this[o]=new e,this[a]=0}dump(){return this[o].map((e=>!c(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[o]}set(e,r,l){if((l=l||this[d])&&"number"!=typeof l)throw new TypeError("maxAge must be a number");const m=l?Date.now():0,u=this[t](r,e);if(this[n].has(e)){if(u>this[p])return v(this,this[n].get(e)),!1;const t=this[n].get(e).value;return this[i]&&(this[s]||this[i](e,t.value)),t.now=m,t.maxAge=l,t.value=r,this[a]+=u-t.length,t.length=u,this.get(e),h(this),!0}const c=new f(e,r,u,m,l);return c.length>this[p]?(this[i]&&this[i](e,r),!1):(this[a]+=c.length,this[o].unshift(c),this[n].set(e,this[o].head),h(this),!0)}has(e){if(!this[n].has(e))return!1;const p=this[n].get(e).value;return!c(this,p)}get(e){return u(this,e,!0)}peek(e){return u(this,e,!1)}pop(){const e=this[o].tail;return e?(v(this,e),e.value):null}del(e){v(this,this[n].get(e))}load(e){this.reset();const p=Date.now();for(let a=e.length-1;a>=0;a--){const t=e[a],r=t.e||0;if(0===r)this.set(t.k,t.v);else{const e=r-p;e>0&&this.set(t.k,t.v,e)}}}prune(){this[n].forEach(((e,p)=>u(this,p,!1)))}}}(),a=new p({max:1e3}),t=et,r=Or(),d=Ja,i=ut,{safeRe:s,t:o,comparatorTrimReplace:n,tildeTrimReplace:l,caretTrimReplace:m}=Ya,{FLAG_INCLUDE_PRERELEASE:u,FLAG_LOOSE:c}=Ka,h=e=>"<0.0.0-0"===e.value,v=e=>""===e.value,f=(e,p)=>{let a=!0;const t=e.slice();let r=t.pop();for(;a&&t.length;)a=t.every((e=>r.intersects(e,p))),r=t.pop();return a},g=(e,p)=>(d("comp",e,p),e=_(e,p),d("caret",e),e=E(e,p),d("tildes",e),e=y(e,p),d("xrange",e),e=O(e,p),d("stars",e),e),w=e=>!e||"x"===e.toLowerCase()||"*"===e,E=(e,p)=>e.trim().split(/\s+/).map((e=>T(e,p))).join(" "),T=(e,p)=>{const a=p.loose?s[o.TILDELOOSE]:s[o.TILDE];return e.replace(a,((p,a,t,r,i)=>{let s;return d("tilde",e,p,a,t,r,i),w(a)?s="":w(t)?s=`>=${a}.0.0 <${+a+1}.0.0-0`:w(r)?s=`>=${a}.${t}.0 <${a}.${+t+1}.0-0`:i?(d("replaceTilde pr",i),s=`>=${a}.${t}.${r}-${i} <${a}.${+t+1}.0-0`):s=`>=${a}.${t}.${r} <${a}.${+t+1}.0-0`,d("tilde return",s),s}))},_=(e,p)=>e.trim().split(/\s+/).map((e=>b(e,p))).join(" "),b=(e,p)=>{d("caret",e,p);const a=p.loose?s[o.CARETLOOSE]:s[o.CARET],t=p.includePrerelease?"-0":"";return e.replace(a,((p,a,r,i,s)=>{let o;return d("caret",e,p,a,r,i,s),w(a)?o="":w(r)?o=`>=${a}.0.0${t} <${+a+1}.0.0-0`:w(i)?o="0"===a?`>=${a}.${r}.0${t} <${a}.${+r+1}.0-0`:`>=${a}.${r}.0${t} <${+a+1}.0.0-0`:s?(d("replaceCaret pr",s),o="0"===a?"0"===r?`>=${a}.${r}.${i}-${s} <${a}.${r}.${+i+1}-0`:`>=${a}.${r}.${i}-${s} <${a}.${+r+1}.0-0`:`>=${a}.${r}.${i}-${s} <${+a+1}.0.0-0`):(d("no pr"),o="0"===a?"0"===r?`>=${a}.${r}.${i}${t} <${a}.${r}.${+i+1}-0`:`>=${a}.${r}.${i}${t} <${a}.${+r+1}.0-0`:`>=${a}.${r}.${i} <${+a+1}.0.0-0`),d("caret return",o),o}))},y=(e,p)=>(d("replaceXRanges",e,p),e.split(/\s+/).map((e=>S(e,p))).join(" ")),S=(e,p)=>{e=e.trim();const a=p.loose?s[o.XRANGELOOSE]:s[o.XRANGE];return e.replace(a,((a,t,r,i,s,o)=>{d("xRange",e,a,t,r,i,s,o);const n=w(r),l=n||w(i),m=l||w(s),u=m;return"="===t&&u&&(t=""),o=p.includePrerelease?"-0":"",n?a=">"===t||"<"===t?"<0.0.0-0":"*":t&&u?(l&&(i=0),s=0,">"===t?(t=">=",l?(r=+r+1,i=0,s=0):(i=+i+1,s=0)):"<="===t&&(t="<",l?r=+r+1:i=+i+1),"<"===t&&(o="-0"),a=`${t+r}.${i}.${s}${o}`):l?a=`>=${r}.0.0${o} <${+r+1}.0.0-0`:m&&(a=`>=${r}.${i}.0${o} <${r}.${+i+1}.0-0`),d("xRange return",a),a}))},O=(e,p)=>(d("replaceStars",e,p),e.trim().replace(s[o.STAR],"")),A=(e,p)=>(d("replaceGTE0",e,p),e.trim().replace(s[p.includePrerelease?o.GTE0PRE:o.GTE0],"")),R=e=>(p,a,t,r,d,i,s,o,n,l,m,u,c)=>`${a=w(t)?"":w(r)?`>=${t}.0.0${e?"-0":""}`:w(d)?`>=${t}.${r}.0${e?"-0":""}`:i?`>=${a}`:`>=${a}${e?"-0":""}`} ${o=w(n)?"":w(l)?`<${+n+1}.0.0-0`:w(m)?`<${n}.${+l+1}.0-0`:u?`<=${n}.${l}.${m}-${u}`:e?`<${n}.${l}.${+m+1}-0`:`<=${o}`}`.trim(),N=(e,p,a)=>{for(let a=0;a0){const t=e[a].semver;if(t.major===p.major&&t.minor===p.minor&&t.patch===p.patch)return!0}return!1}return!0};return wr}function Or(){if(_r)return Tr;_r=1;const e=Symbol("SemVer ANY");class p{static get ANY(){return e}constructor(t,r){if(r=a(r),t instanceof p){if(t.loose===!!r.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),i("comparator",t,r),this.options=r,this.loose=!!r.loose,this.parse(t),this.semver===e?this.value="":this.value=this.operator+this.semver.version,i("comp",this)}parse(p){const a=this.options.loose?t[r.COMPARATORLOOSE]:t[r.COMPARATOR],d=p.match(a);if(!d)throw new TypeError(`Invalid comparator: ${p}`);this.operator=void 0!==d[1]?d[1]:"","="===this.operator&&(this.operator=""),d[2]?this.semver=new s(d[2],this.options.loose):this.semver=e}toString(){return this.value}test(p){if(i("Comparator.test",p,this.options.loose),this.semver===e||p===e)return!0;if("string"==typeof p)try{p=new s(p,this.options)}catch(e){return!1}return d(p,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof p))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new o(e.value,t).test(this.value):""===e.operator?""===e.value||new o(this.value,t).test(e.semver):(!(t=a(t)).includePrerelease||"<0.0.0-0"!==this.value&&"<0.0.0-0"!==e.value)&&(!(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&(!(!this.operator.startsWith(">")||!e.operator.startsWith(">"))||(!(!this.operator.startsWith("<")||!e.operator.startsWith("<"))||(!(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))||(!!(d(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))||!!(d(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))))))}}Tr=p;const a=et,{safeRe:t,t:r}=Ya,d=sr,i=Ja,s=ut,o=Sr();return Tr}const Ar=Sr();var Rr=(e,p,a)=>{try{p=new Ar(p,a)}catch(e){return!1}return p.test(e)};const Nr=Sr();var Dr=(e,p)=>new Nr(e,p).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));const Pr=ut,kr=Sr();var Cr=(e,p,a)=>{let t=null,r=null,d=null;try{d=new kr(p,a)}catch(e){return null}return e.forEach((e=>{d.test(e)&&(t&&-1!==r.compare(e)||(t=e,r=new Pr(t,a)))})),t};const Vr=ut,Lr=Sr();var Ir=(e,p,a)=>{let t=null,r=null,d=null;try{d=new Lr(p,a)}catch(e){return null}return e.forEach((e=>{d.test(e)&&(t&&1!==r.compare(e)||(t=e,r=new Vr(t,a)))})),t};const Fr=ut,Gr=Sr(),Ur=Mt;var xr=(e,p)=>{e=new Gr(e,p);let a=new Fr("0.0.0");if(e.test(a))return a;if(a=new Fr("0.0.0-0"),e.test(a))return a;a=null;for(let p=0;p{const p=new Fr(e.semver.version);switch(e.operator){case">":0===p.prerelease.length?p.patch++:p.prerelease.push(0),p.raw=p.format();case"":case">=":r&&!Ur(p,r)||(r=p);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!r||a&&!Ur(a,r)||(a=r)}return a&&e.test(a)?a:null};const $r=Sr();var jr=(e,p)=>{try{return new $r(e,p).range||"*"}catch(e){return null}};const Br=ut,qr=Or(),{ANY:Mr}=qr,Hr=Sr(),Wr=Rr,zr=Mt,Xr=Wt,Kr=er,Jr=Zt;var Yr=(e,p,a,t)=>{let r,d,i,s,o;switch(e=new Br(e,t),p=new Hr(p,t),a){case">":r=zr,d=Kr,i=Xr,s=">",o=">=";break;case"<":r=Xr,d=Jr,i=zr,s="<",o="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Wr(e,p,t))return!1;for(let a=0;a{e.semver===Mr&&(e=new qr(">=0.0.0")),l=l||e,m=m||e,r(e.semver,l.semver,t)?l=e:i(e.semver,m.semver,t)&&(m=e)})),l.operator===s||l.operator===o)return!1;if((!m.operator||m.operator===s)&&d(e,m.semver))return!1;if(m.operator===o&&i(e,m.semver))return!1}return!0};const Zr=Yr;var Qr=(e,p,a)=>Zr(e,p,">",a);const ed=Yr;var pd=(e,p,a)=>ed(e,p,"<",a);const ad=Sr();var td=(e,p,a)=>(e=new ad(e,a),p=new ad(p,a),e.intersects(p,a));const rd=Rr,dd=Ct;const id=Sr(),sd=Or(),{ANY:od}=sd,nd=Rr,ld=Ct,md=[new sd(">=0.0.0-0")],ud=[new sd(">=0.0.0")],cd=(e,p,a)=>{if(e===p)return!0;if(1===e.length&&e[0].semver===od){if(1===p.length&&p[0].semver===od)return!0;e=a.includePrerelease?md:ud}if(1===p.length&&p[0].semver===od){if(a.includePrerelease)return!0;p=ud}const t=new Set;let r,d,i,s,o,n,l;for(const p of e)">"===p.operator||">="===p.operator?r=hd(r,p,a):"<"===p.operator||"<="===p.operator?d=vd(d,p,a):t.add(p.semver);if(t.size>1)return null;if(r&&d){if(i=ld(r.semver,d.semver,a),i>0)return null;if(0===i&&(">="!==r.operator||"<="!==d.operator))return null}for(const e of t){if(r&&!nd(e,String(r),a))return null;if(d&&!nd(e,String(d),a))return null;for(const t of p)if(!nd(e,String(t),a))return!1;return!0}let m=!(!d||a.includePrerelease||!d.semver.prerelease.length)&&d.semver,u=!(!r||a.includePrerelease||!r.semver.prerelease.length)&&r.semver;m&&1===m.prerelease.length&&"<"===d.operator&&0===m.prerelease[0]&&(m=!1);for(const e of p){if(l=l||">"===e.operator||">="===e.operator,n=n||"<"===e.operator||"<="===e.operator,r)if(u&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===u.major&&e.semver.minor===u.minor&&e.semver.patch===u.patch&&(u=!1),">"===e.operator||">="===e.operator){if(s=hd(r,e,a),s===e&&s!==r)return!1}else if(">="===r.operator&&!nd(r.semver,String(e),a))return!1;if(d)if(m&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===m.major&&e.semver.minor===m.minor&&e.semver.patch===m.patch&&(m=!1),"<"===e.operator||"<="===e.operator){if(o=vd(d,e,a),o===e&&o!==d)return!1}else if("<="===d.operator&&!nd(d.semver,String(e),a))return!1;if(!e.operator&&(d||r)&&0!==i)return!1}return!(r&&n&&!d&&0!==i)&&(!(d&&l&&!r&&0!==i)&&(!u&&!m))},hd=(e,p,a)=>{if(!e)return p;const t=ld(e.semver,p.semver,a);return t>0?e:t<0||">"===p.operator&&">="===e.operator?p:e},vd=(e,p,a)=>{if(!e)return p;const t=ld(e.semver,p.semver,a);return t<0?e:t>0||"<"===p.operator&&"<="===e.operator?p:e};var fd=(e,p,a={})=>{if(e===p)return!0;e=new id(e,a),p=new id(p,a);let t=!1;e:for(const r of e.set){for(const e of p.set){const p=cd(r,e,a);if(t=t||null!==p,p)continue e}if(t)return!1}return!0};const gd=Ya,wd=Ka,Ed=ut,Td=tt,_d=(e,p,a)=>{const t=[];let r=null,d=null;const i=e.sort(((e,p)=>dd(e,p,a)));for(const e of i){rd(e,p,a)?(d=e,r||(r=e)):(d&&t.push([r,d]),d=null,r=null)}r&&t.push([r,null]);const s=[];for(const[e,p]of t)e===p?s.push(e):p||e!==i[0]?p?e===i[0]?s.push(`<=${p}`):s.push(`${e} - ${p}`):s.push(`>=${e}`):s.push("*");const o=s.join(" || "),n="string"==typeof p.raw?p.raw:String(p);return o.length"}var Sd={exports:{}},Od=function e(p,a,t,r){if("function"!=typeof t)throw new Error("method for before hook must be a function");r||(r={});if(Array.isArray(a))return a.reverse().reduce((function(a,t){return e.bind(null,p,t,a,r)}),t)();return Promise.resolve().then((function(){return p.registry[a]?p.registry[a].reduce((function(e,p){return p.hook.bind(null,e,r)}),t)():t(r)}))};var Ad=function(e,p,a,t){var r=t;e.registry[a]||(e.registry[a]=[]);"before"===p&&(t=function(e,p){return Promise.resolve().then(r.bind(null,p)).then(e.bind(null,p))});"after"===p&&(t=function(e,p){var a;return Promise.resolve().then(e.bind(null,p)).then((function(e){return r(a=e,p)})).then((function(){return a}))});"error"===p&&(t=function(e,p){return Promise.resolve().then(e.bind(null,p)).catch((function(e){return r(e,p)}))});e.registry[a].push({hook:t,orig:r})};var Rd=Od,Nd=Ad,Dd=function(e,p,a){if(!e.registry[p])return;var t=e.registry[p].map((function(e){return e.orig})).indexOf(a);if(-1===t)return;e.registry[p].splice(t,1)},Pd=Function.bind,kd=Pd.bind(Pd);function Cd(e,p,a){var t=kd(Dd,null).apply(null,a?[p,a]:[p]);e.api={remove:t},e.remove=t,["before","error","after","wrap"].forEach((function(t){var r=a?[p,t,a]:[p,t];e[t]=e.api[t]=kd(Nd,null).apply(null,r)}))}function Vd(){var e={registry:{}},p=Rd.bind(null,e);return Cd(p,e),p}var Ld=!1;function Id(){return Ld||(console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4'),Ld=!0),Vd()}Id.Singular=function(){var e={registry:{}},p=Rd.bind(null,e,"h");return Cd(p,e,"h"),p}.bind(),Id.Collection=Vd.bind(),Sd.exports=Id,Sd.exports.Hook=Id,Sd.exports.Singular=Id.Singular;var Fd=Sd.exports.Collection=Id.Collection;function Gd(e){return"[object Object]"===Object.prototype.toString.call(e)}function Ud(e){var p,a;return!1!==Gd(e)&&(void 0===(p=e.constructor)||!1!==Gd(a=p.prototype)&&!1!==a.hasOwnProperty("isPrototypeOf"))}function xd(e,p){const a=Object.assign({},e);return Object.keys(p).forEach((t=>{Ud(p[t])?t in e?a[t]=xd(e[t],p[t]):Object.assign(a,{[t]:p[t]}):Object.assign(a,{[t]:p[t]})})),a}function $d(e){for(const p in e)void 0===e[p]&&delete e[p];return e}function jd(e,p,a){if("string"==typeof p){let[e,t]=p.split(" ");a=Object.assign(t?{method:e,url:t}:{url:e},a)}else a=Object.assign({},p);var t;a.headers=(t=a.headers)?Object.keys(t).reduce(((e,p)=>(e[p.toLowerCase()]=t[p],e)),{}):{},$d(a),$d(a.headers);const r=xd(e||{},a);return e&&e.mediaType.previews.length&&(r.mediaType.previews=e.mediaType.previews.filter((e=>!r.mediaType.previews.includes(e))).concat(r.mediaType.previews)),r.mediaType.previews=r.mediaType.previews.map((e=>e.replace(/-preview/,""))),r}const Bd=/\{[^}]+\}/g;function qd(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function Md(e,p){return Object.keys(e).filter((e=>!p.includes(e))).reduce(((p,a)=>(p[a]=e[a],p)),{})}function Hd(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e})).join("")}function Wd(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function zd(e,p,a){return p="+"===e||"#"===e?Hd(p):Wd(p),a?Wd(a)+"="+p:p}function Xd(e){return null!=e}function Kd(e){return";"===e||"&"===e||"?"===e}function Jd(e,p){var a=["+","#",".","/",";","?","&"];return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(e,t,r){if(t){let e="";const r=[];if(-1!==a.indexOf(t.charAt(0))&&(e=t.charAt(0),t=t.substr(1)),t.split(/,/g).forEach((function(a){var t=/([^:\*]*)(?::(\d+)|(\*))?/.exec(a);r.push(function(e,p,a,t){var r=e[a],d=[];if(Xd(r)&&""!==r)if("string"==typeof r||"number"==typeof r||"boolean"==typeof r)r=r.toString(),t&&"*"!==t&&(r=r.substring(0,parseInt(t,10))),d.push(zd(p,r,Kd(p)?a:""));else if("*"===t)Array.isArray(r)?r.filter(Xd).forEach((function(e){d.push(zd(p,e,Kd(p)?a:""))})):Object.keys(r).forEach((function(e){Xd(r[e])&&d.push(zd(p,r[e],e))}));else{const e=[];Array.isArray(r)?r.filter(Xd).forEach((function(a){e.push(zd(p,a))})):Object.keys(r).forEach((function(a){Xd(r[a])&&(e.push(Wd(a)),e.push(zd(p,r[a].toString())))})),Kd(p)?d.push(Wd(a)+"="+e.join(",")):0!==e.length&&d.push(e.join(","))}else";"===p?Xd(r)&&d.push(Wd(a)):""!==r||"&"!==p&&"?"!==p?""===r&&d.push(""):d.push(Wd(a)+"=");return d}(p,e,t[1],t[2]||t[3]))})),e&&"+"!==e){var d=",";return"?"===e?d="&":"#"!==e&&(d=e),(0!==r.length?e:"")+r.join(d)}return r.join(",")}return Hd(r)}))}function Yd(e){let p,a=e.method.toUpperCase(),t=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),r=Object.assign({},e.headers),d=Md(e,["method","baseUrl","url","headers","request","mediaType"]);const i=function(e){const p=e.match(Bd);return p?p.map(qd).reduce(((e,p)=>e.concat(p)),[]):[]}(t);var s;t=(s=t,{expand:Jd.bind(null,s)}).expand(d),/^http/.test(t)||(t=e.baseUrl+t);const o=Md(d,Object.keys(e).filter((e=>i.includes(e))).concat("baseUrl"));if(!/application\/octet-stream/i.test(r.accept)&&(e.mediaType.format&&(r.accept=r.accept.split(/,/).map((p=>p.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`))).join(",")),e.mediaType.previews.length)){const p=r.accept.match(/[\w-]+(?=-preview)/g)||[];r.accept=p.concat(e.mediaType.previews).map((p=>`application/vnd.github.${p}-preview${e.mediaType.format?`.${e.mediaType.format}`:"+json"}`)).join(",")}return["GET","HEAD"].includes(a)?t=function(e,p){const a=/\?/.test(e)?"&":"?",t=Object.keys(p);return 0===t.length?e:e+a+t.map((e=>"q"===e?"q="+p.q.split("+").map(encodeURIComponent).join("+"):`${e}=${encodeURIComponent(p[e])}`)).join("&")}(t,o):"data"in o?p=o.data:Object.keys(o).length&&(p=o),r["content-type"]||void 0===p||(r["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(a)&&void 0===p&&(p=""),Object.assign({method:a,url:t,headers:r},void 0!==p?{body:p}:null,e.request?{request:e.request}:null)}function Zd(e,p,a){return Yd(jd(e,p,a))}const Qd=function e(p,a){const t=jd(p,a),r=Zd.bind(null,t);return Object.assign(r,{DEFAULTS:t,defaults:e.bind(null,t),merge:jd.bind(null,t),parse:Yd})}(null,{method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":`octokit-endpoint.js/7.0.6 ${yd()}`},mediaType:{format:"",previews:[]}});var ei={},pi={exports:{}},ai={},ti=ai;function ri(e){return e<0?-1:1}function di(e,p){p.unsigned||--e;const a=p.unsigned?0:-Math.pow(2,e),t=Math.pow(2,e)-1,r=p.moduloBitLength?Math.pow(2,p.moduloBitLength):Math.pow(2,e),d=p.moduloBitLength?Math.pow(2,p.moduloBitLength-1):Math.pow(2,e-1);return function(e,i){i||(i={});let s=+e;if(i.enforceRange){if(!Number.isFinite(s))throw new TypeError("Argument is not a finite number");if(s=ri(s)*Math.floor(Math.abs(s)),st)throw new TypeError("Argument is not in byte range");return s}if(!isNaN(s)&&i.clamp)return s=function(e){return e%1==.5&&0==(1&e)?Math.floor(e):Math.round(e)}(s),st&&(s=t),s;if(!Number.isFinite(s)||0===s)return 0;if(s=ri(s)*Math.floor(Math.abs(s)),s%=r,!p.unsigned&&s>=d)return s-r;if(p.unsigned)if(s<0)s+=r;else if(-0===s)return 0;return s}}ai.void=function(){},ai.boolean=function(e){return!!e},ai.byte=di(8,{unsigned:!1}),ai.octet=di(8,{unsigned:!0}),ai.short=di(16,{unsigned:!1}),ai["unsigned short"]=di(16,{unsigned:!0}),ai.long=di(32,{unsigned:!1}),ai["unsigned long"]=di(32,{unsigned:!0}),ai["long long"]=di(32,{unsigned:!1,moduloBitLength:64}),ai["unsigned long long"]=di(32,{unsigned:!0,moduloBitLength:64}),ai.double=function(e){const p=+e;if(!Number.isFinite(p))throw new TypeError("Argument is not a finite floating-point value");return p},ai["unrestricted double"]=function(e){const p=+e;if(isNaN(p))throw new TypeError("Argument is NaN");return p},ai.float=ai.double,ai["unrestricted float"]=ai["unrestricted double"],ai.DOMString=function(e,p){return p||(p={}),p.treatNullAsEmptyString&&null===e?"":String(e)},ai.ByteString=function(e,p){const a=String(e);let t;for(let e=0;void 0!==(t=a.codePointAt(e));++e)if(t>255)throw new TypeError("Argument is not a valid bytestring");return a},ai.USVString=function(e){const p=String(e),a=p.length,t=[];for(let e=0;e57343)t.push(String.fromCodePoint(r));else if(56320<=r&&r<=57343)t.push(String.fromCodePoint(65533));else if(e===a-1)t.push(String.fromCodePoint(65533));else{const a=p.charCodeAt(e+1);if(56320<=a&&a<=57343){const p=1023&r,d=1023&a;t.push(String.fromCodePoint(65536+1024*p+d)),++e}else t.push(String.fromCodePoint(65533))}}return t.join("")},ai.Date=function(e,p){if(!(e instanceof Date))throw new TypeError("Argument is not a Date object");if(!isNaN(e))return e},ai.RegExp=function(e,p){return e instanceof RegExp||(e=new RegExp(e)),e};var ii,si={exports:{}};(ii=si).exports.mixin=function(e,p){const a=Object.getOwnPropertyNames(p);for(let t=0;t=e)return r;r[0][0]>e?a=t-1:p=t+1}return null}var gi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;function wi(e){return e.replace(gi,"_").length}var Ei=/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E4-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u192B\u1930-\u193B\u19B0-\u19C0\u19C8\u19C9\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2D]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC7F-\uDC82\uDCB0-\uDCBA\uDD00-\uDD02\uDD27-\uDD34\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDE2C-\uDE37\uDEDF-\uDEEA\uDF01-\uDF03\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDE30-\uDE40\uDEAB-\uDEB7]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF51-\uDF7E\uDF8F-\uDF92]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD83A[\uDCD0-\uDCD6]|\uDB40[\uDD00-\uDDEF]/;function Ti(e,p){"xn--"===e.substr(0,4)&&(e=ui.toUnicode(e),hi.NONTRANSITIONAL);var a=!1;(vi(e)!==e||"-"===e[3]&&"-"===e[4]||"-"===e[0]||"-"===e[e.length-1]||-1!==e.indexOf(".")||0===e.search(Ei))&&(a=!0);for(var t=wi(e),r=0;r253||0===i.length)&&(r.error=!0);for(var s=0;s63||0===d.length){r.error=!0;break}}return r.error?null:d.join(".")},mi.toUnicode=function(e,p){var a=_i(e,p,hi.NONTRANSITIONAL);return{domain:a.string,error:a.error}},mi.PROCESSING_OPTIONS=hi,function(e){const p=I.default,a=mi,t={ftp:21,file:null,gopher:70,http:80,https:443,ws:80,wss:443},r=Symbol("failure");function d(e){return p.ucs2.decode(e).length}function i(e,p){const a=e[p];return isNaN(a)?void 0:String.fromCodePoint(a)}function s(e){return e>=48&&e<=57}function o(e){return e>=65&&e<=90||e>=97&&e<=122}function n(e){return s(e)||e>=65&&e<=70||e>=97&&e<=102}function l(e){return"."===e||"%2e"===e.toLowerCase()}function m(e){return 2===e.length&&o(e.codePointAt(0))&&(":"===e[1]||"|"===e[1])}function u(e){return void 0!==t[e]}function c(e){return u(e.scheme)}function h(e){let p=e.toString(16).toUpperCase();return 1===p.length&&(p="0"+p),"%"+p}function v(e){return e<=31||e>126}const f=new Set([32,34,35,60,62,63,96,123,125]);function g(e){return v(e)||f.has(e)}const w=new Set([47,58,59,61,64,91,92,93,94,124]);function E(e){return g(e)||w.has(e)}function T(e,p){const a=String.fromCodePoint(e);return p(e)?function(e){const p=new Buffer(e);let a="";for(let e=0;e=2&&"0"===e.charAt(0)&&"x"===e.charAt(1).toLowerCase()?(e=e.substring(2),p=16):e.length>=2&&"0"===e.charAt(0)&&(e=e.substring(1),p=8),""===e)return 0;return(10===p?/[^0-9]/:16===p?/[^0-9A-Fa-f]/:/[^0-7]/).test(e)?r:parseInt(e,p)}function b(e,t){if("["===e[0])return"]"!==e[e.length-1]?r:function(e){const a=[0,0,0,0,0,0,0,0];let t=0,d=null,o=0;if(58===(e=p.ucs2.decode(e))[o]){if(58!==e[o+1])return r;o+=2,++t,d=t}for(;o6)return r;let p=0;for(;void 0!==e[o];){let d=null;if(p>0){if(!(46===e[o]&&p<4))return r;++o}if(!s(e[o]))return r;for(;s(e[o]);){const p=parseInt(i(e,o));if(null===d)d=p;else{if(0===d)return r;d=10*d+p}if(d>255)return r;++o}a[t]=256*a[t]+d,++p,2!==p&&4!==p||++t}if(4!==p)return r;break}if(58===e[o]){if(++o,void 0===e[o])return r}else if(void 0!==e[o])return r;a[t]=p,++t}if(null!==d){let e=t-d;for(t=7;0!==t&&e>0;){const p=a[d+e-1];a[d+e-1]=a[t],a[t]=p,--t,--e}}else if(null===d&&8!==t)return r;return a}(e.substring(1,e.length-1));if(!t)return function(e){if(a=e,-1!==a.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/))return r;var a;let t="";const d=p.ucs2.decode(e);for(let e=0;e1&&p.pop(),p.length>4)return e;const a=[];for(const t of p){if(""===t)return e;const p=_(t);if(p===r)return e;a.push(p)}for(let e=0;e255)return r;if(a[a.length-1]>=Math.pow(256,5-a.length))return r;let t=a.pop(),d=0;for(const e of a)t+=e*Math.pow(256,3-d),++d;return t}(o);return"number"==typeof l||l===r?l:o}function y(e){return"number"==typeof e?function(e){let p="",a=e;for(let e=1;e<=4;++e)p=String(a%256)+p,4!==e&&(p="."+p),a=Math.floor(a/256);return p}(e):e instanceof Array?"["+function(e){let p="";const a=function(e){let p=null,a=1,t=null,r=0;for(let d=0;da&&(p=t,a=r),t=null,r=0):(null===t&&(t=d),++r);return r>a&&(p=t,a=r),{idx:p,len:a}}(e),t=a.idx;let r=!1;for(let a=0;a<=7;++a)r&&0===e[a]||(r&&(r=!1),t!==a?(p+=e[a].toString(16),7!==a&&(p+=":")):(p+=0===a?"::":":",r=!0));return p}(e)+"]":e}function S(e){const p=e.path;var a;0!==p.length&&("file"===e.scheme&&1===p.length&&(a=p[0],/^[A-Za-z]:$/.test(a))||p.pop())}function O(e){return""!==e.username||""!==e.password}function A(e,a,t,d,i){if(this.pointer=0,this.input=e,this.base=a||null,this.encodingOverride=t||"utf-8",this.stateOverride=i,this.url=d,this.failure=!1,this.parseError=!1,!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null,cannotBeABaseURL:!1};const e=function(e){return e.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g,"")}(this.input);e!==this.input&&(this.parseError=!0),this.input=e}const s=function(e){return e.replace(/\u0009|\u000A|\u000D/g,"")}(this.input);for(s!==this.input&&(this.parseError=!0),this.input=s,this.state=i||"scheme start",this.buffer="",this.atFlag=!1,this.arrFlag=!1,this.passwordTokenSeenFlag=!1,this.input=p.ucs2.decode(this.input);this.pointer<=this.input.length;++this.pointer){const e=this.input[this.pointer],p=isNaN(e)?void 0:String.fromCodePoint(e),a=this["parse "+this.state](e,p);if(!a)break;if(a===r){this.failure=!0;break}}}A.prototype["parse scheme start"]=function(e,p){if(o(e))this.buffer+=p.toLowerCase(),this.state="scheme";else{if(this.stateOverride)return this.parseError=!0,r;this.state="no scheme",--this.pointer}return!0},A.prototype["parse scheme"]=function(e,p){if(function(e){return o(e)||s(e)}(e)||43===e||45===e||46===e)this.buffer+=p.toLowerCase();else if(58===e){if(this.stateOverride){if(c(this.url)&&!u(this.buffer))return!1;if(!c(this.url)&&u(this.buffer))return!1;if((O(this.url)||null!==this.url.port)&&"file"===this.buffer)return!1;if("file"===this.url.scheme&&(""===this.url.host||null===this.url.host))return!1}if(this.url.scheme=this.buffer,this.buffer="",this.stateOverride)return!1;"file"===this.url.scheme?(47===this.input[this.pointer+1]&&47===this.input[this.pointer+2]||(this.parseError=!0),this.state="file"):c(this.url)&&null!==this.base&&this.base.scheme===this.url.scheme?this.state="special relative or authority":c(this.url)?this.state="special authority slashes":47===this.input[this.pointer+1]?(this.state="path or authority",++this.pointer):(this.url.cannotBeABaseURL=!0,this.url.path.push(""),this.state="cannot-be-a-base-URL path")}else{if(this.stateOverride)return this.parseError=!0,r;this.buffer="",this.state="no scheme",this.pointer=-1}return!0},A.prototype["parse no scheme"]=function(e){return null===this.base||this.base.cannotBeABaseURL&&35!==e?r:(this.base.cannotBeABaseURL&&35===e?(this.url.scheme=this.base.scheme,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.url.cannotBeABaseURL=!0,this.state="fragment"):"file"===this.base.scheme?(this.state="file",--this.pointer):(this.state="relative",--this.pointer),!0)},A.prototype["parse special relative or authority"]=function(e){return 47===e&&47===this.input[this.pointer+1]?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="relative",--this.pointer),!0},A.prototype["parse path or authority"]=function(e){return 47===e?this.state="authority":(this.state="path",--this.pointer),!0},A.prototype["parse relative"]=function(e){return this.url.scheme=this.base.scheme,isNaN(e)?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query):47===e?this.state="relative slash":63===e?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query="",this.state="query"):35===e?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):c(this.url)&&92===e?(this.parseError=!0,this.state="relative slash"):(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(0,this.base.path.length-1),this.state="path",--this.pointer),!0},A.prototype["parse relative slash"]=function(e){return!c(this.url)||47!==e&&92!==e?47===e?this.state="authority":(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.state="path",--this.pointer):(92===e&&(this.parseError=!0),this.state="special authority ignore slashes"),!0},A.prototype["parse special authority slashes"]=function(e){return 47===e&&47===this.input[this.pointer+1]?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="special authority ignore slashes",--this.pointer),!0},A.prototype["parse special authority ignore slashes"]=function(e){return 47!==e&&92!==e?(this.state="authority",--this.pointer):this.parseError=!0,!0},A.prototype["parse authority"]=function(e,p){if(64===e){this.parseError=!0,this.atFlag&&(this.buffer="%40"+this.buffer),this.atFlag=!0;const e=d(this.buffer);for(let p=0;pMath.pow(2,16)-1)return this.parseError=!0,r;this.url.port=e===(a=this.url.scheme,t[a])?null:e,this.buffer=""}if(this.stateOverride)return!1;this.state="path start",--this.pointer}var a;return!0};const R=new Set([47,92,63,35]);A.prototype["parse file"]=function(e){var p,a;return this.url.scheme="file",47===e||92===e?(92===e&&(this.parseError=!0),this.state="file slash"):null!==this.base&&"file"===this.base.scheme?isNaN(e)?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query):63===e?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query="",this.state="query"):35===e?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):(this.input.length-this.pointer-1==0||(p=e,a=this.input[this.pointer+1],!o(p)||58!==a&&124!==a)||this.input.length-this.pointer-1>=2&&!R.has(this.input[this.pointer+2])?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),S(this.url)):this.parseError=!0,this.state="path",--this.pointer):(this.state="path",--this.pointer),!0},A.prototype["parse file slash"]=function(e){var p;return 47===e||92===e?(92===e&&(this.parseError=!0),this.state="file host"):(null!==this.base&&"file"===this.base.scheme&&(2===(p=this.base.path[0]).length&&o(p.codePointAt(0))&&":"===p[1]?this.url.path.push(this.base.path[0]):this.url.host=this.base.host),this.state="path",--this.pointer),!0},A.prototype["parse file host"]=function(e,p){if(isNaN(e)||47===e||92===e||63===e||35===e)if(--this.pointer,!this.stateOverride&&m(this.buffer))this.parseError=!0,this.state="path";else if(""===this.buffer){if(this.url.host="",this.stateOverride)return!1;this.state="path start"}else{let e=b(this.buffer,c(this.url));if(e===r)return r;if("localhost"===e&&(e=""),this.url.host=e,this.stateOverride)return!1;this.buffer="",this.state="path start"}else this.buffer+=p;return!0},A.prototype["parse path start"]=function(e){return c(this.url)?(92===e&&(this.parseError=!0),this.state="path",47!==e&&92!==e&&--this.pointer):this.stateOverride||63!==e?this.stateOverride||35!==e?void 0!==e&&(this.state="path",47!==e&&--this.pointer):(this.url.fragment="",this.state="fragment"):(this.url.query="",this.state="query"),!0},A.prototype["parse path"]=function(e){if(isNaN(e)||47===e||c(this.url)&&92===e||!this.stateOverride&&(63===e||35===e)){if(c(this.url)&&92===e&&(this.parseError=!0),".."===(p=(p=this.buffer).toLowerCase())||"%2e."===p||".%2e"===p||"%2e%2e"===p?(S(this.url),47===e||c(this.url)&&92===e||this.url.path.push("")):!l(this.buffer)||47===e||c(this.url)&&92===e?l(this.buffer)||("file"===this.url.scheme&&0===this.url.path.length&&m(this.buffer)&&(""!==this.url.host&&null!==this.url.host&&(this.parseError=!0,this.url.host=""),this.buffer=this.buffer[0]+":"),this.url.path.push(this.buffer)):this.url.path.push(""),this.buffer="","file"===this.url.scheme&&(void 0===e||63===e||35===e))for(;this.url.path.length>1&&""===this.url.path[0];)this.parseError=!0,this.url.path.shift();63===e&&(this.url.query="",this.state="query"),35===e&&(this.url.fragment="",this.state="fragment")}else 37!==e||n(this.input[this.pointer+1])&&n(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=T(e,g);var p;return!0},A.prototype["parse cannot-be-a-base-URL path"]=function(e){return 63===e?(this.url.query="",this.state="query"):35===e?(this.url.fragment="",this.state="fragment"):(isNaN(e)||37===e||(this.parseError=!0),37!==e||n(this.input[this.pointer+1])&&n(this.input[this.pointer+2])||(this.parseError=!0),isNaN(e)||(this.url.path[0]=this.url.path[0]+T(e,v))),!0},A.prototype["parse query"]=function(e,p){if(isNaN(e)||!this.stateOverride&&35===e){c(this.url)&&"ws"!==this.url.scheme&&"wss"!==this.url.scheme||(this.encodingOverride="utf-8");const p=new Buffer(this.buffer);for(let e=0;e126||34===p[e]||35===p[e]||60===p[e]||62===p[e]?this.url.query+=h(p[e]):this.url.query+=String.fromCodePoint(p[e]);this.buffer="",35===e&&(this.url.fragment="",this.state="fragment")}else 37!==e||n(this.input[this.pointer+1])&&n(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=p;return!0},A.prototype["parse fragment"]=function(e){return isNaN(e)||(0===e?this.parseError=!0:(37!==e||n(this.input[this.pointer+1])&&n(this.input[this.pointer+2])||(this.parseError=!0),this.url.fragment+=T(e,v))),!0},e.exports.serializeURL=function(e,p){let a=e.scheme+":";if(null!==e.host?(a+="//",""===e.username&&""===e.password||(a+=e.username,""!==e.password&&(a+=":"+e.password),a+="@"),a+=y(e.host),null!==e.port&&(a+=":"+e.port)):null===e.host&&"file"===e.scheme&&(a+="//"),e.cannotBeABaseURL)a+=e.path[0];else for(const p of e.path)a+="/"+p;return null!==e.query&&(a+="?"+e.query),p||null===e.fragment||(a+="#"+e.fragment),a},e.exports.serializeURLOrigin=function(p){switch(p.scheme){case"blob":try{return e.exports.serializeURLOrigin(e.exports.parseURL(p.path[0]))}catch(e){return"null"}case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return function(e){let p=e.scheme+"://";return p+=y(e.host),null!==e.port&&(p+=":"+e.port),p}({scheme:p.scheme,host:p.host,port:p.port});case"file":return"file://";default:return"null"}},e.exports.basicURLParse=function(e,p){void 0===p&&(p={});const a=new A(e,p.baseURL,p.encodingOverride,p.url,p.stateOverride);return a.failure?"failure":a.url},e.exports.setTheUsername=function(e,a){e.username="";const t=p.ucs2.decode(a);for(let p=0;p!!e&&e[r]instanceof t.implementation,create(e,p){let a=Object.create(d.prototype);return this.setup(a,e,p),a},setup(e,p,d){d||(d={}),d.wrapper=e,e[r]=new t.implementation(p,d),e[r][a.wrapperSymbol]=e},interface:d,expose:{Window:{URL:d},Worker:{URL:d}}}}(pi);var Si=pi.exports;ei.URL=Si.interface,ei.serializeURL=bi.serializeURL,ei.serializeURLOrigin=bi.serializeURLOrigin,ei.basicURLParse=bi.basicURLParse,ei.setTheUsername=bi.setTheUsername,ei.setThePassword=bi.setThePassword,ei.serializeHost=bi.serializeHost,ei.serializeInteger=bi.serializeInteger,ei.parseURL=bi.parseURL;const Oi=P.default.Readable,Ai=Symbol("buffer"),Ri=Symbol("type");class Ni{constructor(){this[Ri]="";const e=arguments[0],p=arguments[1],a=[];let t=0;if(e){const p=e,r=Number(p.length);for(let e=0;e1&&void 0!==arguments[1]?arguments[1]:{},t=a.size;let r=void 0===t?0:t;var d=a.timeout;let i=void 0===d?0:d;null==e?e=null:Ii(e)?e=Buffer.from(e.toString()):Fi(e)||Buffer.isBuffer(e)||("[object ArrayBuffer]"===Object.prototype.toString.call(e)?e=Buffer.from(e):ArrayBuffer.isView(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):e instanceof P.default||(e=Buffer.from(String(e)))),this[ki]={body:e,disturbed:!1,error:null},this.size=r,this.timeout=i,e instanceof P.default&&e.on("error",(function(e){const a="AbortError"===e.name?e:new Di(`Invalid response body while trying to fetch ${p.url}: ${e.message}`,"system",e);p[ki].error=a}))}function Li(){var e=this;if(this[ki].disturbed)return Vi.Promise.reject(new TypeError(`body used already for: ${this.url}`));if(this[ki].disturbed=!0,this[ki].error)return Vi.Promise.reject(this[ki].error);let p=this.body;if(null===p)return Vi.Promise.resolve(Buffer.alloc(0));if(Fi(p)&&(p=p.stream()),Buffer.isBuffer(p))return Vi.Promise.resolve(p);if(!(p instanceof P.default))return Vi.Promise.resolve(Buffer.alloc(0));let a=[],t=0,r=!1;return new Vi.Promise((function(d,i){let s;e.timeout&&(s=setTimeout((function(){r=!0,i(new Di(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))}),e.timeout)),p.on("error",(function(p){"AbortError"===p.name?(r=!0,i(p)):i(new Di(`Invalid response body while trying to fetch ${e.url}: ${p.message}`,"system",p))})),p.on("data",(function(p){if(!r&&null!==p){if(e.size&&t+p.length>e.size)return r=!0,void i(new Di(`content size at ${e.url} over limit: ${e.size}`,"max-size"));t+=p.length,a.push(p)}})),p.on("end",(function(){if(!r){clearTimeout(s);try{d(Buffer.concat(a,t))}catch(p){i(new Di(`Could not create Buffer from response body for ${e.url}: ${p.message}`,"system",p))}}}))}))}function Ii(e){return"object"==typeof e&&"function"==typeof e.append&&"function"==typeof e.delete&&"function"==typeof e.get&&"function"==typeof e.getAll&&"function"==typeof e.has&&"function"==typeof e.set&&("URLSearchParams"===e.constructor.name||"[object URLSearchParams]"===Object.prototype.toString.call(e)||"function"==typeof e.sort)}function Fi(e){return"object"==typeof e&&"function"==typeof e.arrayBuffer&&"string"==typeof e.type&&"function"==typeof e.stream&&"function"==typeof e.constructor&&"string"==typeof e.constructor.name&&/^(Blob|File)$/.test(e.constructor.name)&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function Gi(e){let p,a,t=e.body;if(e.bodyUsed)throw new Error("cannot clone body after it is used");return t instanceof P.default&&"function"!=typeof t.getBoundary&&(p=new Ci,a=new Ci,t.pipe(p),t.pipe(a),e[ki].body=p,t=a),t}function Ui(e){return null===e?null:"string"==typeof e?"text/plain;charset=UTF-8":Ii(e)?"application/x-www-form-urlencoded;charset=UTF-8":Fi(e)?e.type||null:Buffer.isBuffer(e)||"[object ArrayBuffer]"===Object.prototype.toString.call(e)||ArrayBuffer.isView(e)?null:"function"==typeof e.getBoundary?`multipart/form-data;boundary=${e.getBoundary()}`:e instanceof P.default?null:"text/plain;charset=UTF-8"}function xi(e){const p=e.body;return null===p?0:Fi(p)?p.size:Buffer.isBuffer(p)?p.length:p&&"function"==typeof p.getLengthSync&&(p._lengthRetrievers&&0==p._lengthRetrievers.length||p.hasKnownLength&&p.hasKnownLength())?p.getLengthSync():null}Vi.prototype={get body(){return this[ki].body},get bodyUsed(){return this[ki].disturbed},arrayBuffer(){return Li.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 Li.call(this).then((function(p){return Object.assign(new Ni([],{type:e.toLowerCase()}),{[Ai]:p})}))},json(){var e=this;return Li.call(this).then((function(p){try{return JSON.parse(p.toString())}catch(p){return Vi.Promise.reject(new Di(`invalid json response body at ${e.url} reason: ${p.message}`,"invalid-json"))}}))},text(){return Li.call(this).then((function(e){return e.toString()}))},buffer(){return Li.call(this)},textConverted(){var e=this;return Li.call(this).then((function(p){return function(e,p){if("function"!=typeof Pi)throw new Error("The package `encoding` must be installed to use the textConverted() function");const a=p.get("content-type");let t,r,d="utf-8";a&&(t=/charset=([^;]*)/i.exec(a));r=e.slice(0,1024).toString(),!t&&r&&(t=/0&&void 0!==arguments[0]?arguments[0]:void 0;if(this[Hi]=Object.create(null),e instanceof Wi){const p=e.raw(),a=Object.keys(p);for(const e of a)for(const a of p[e])this.append(e,a)}else if(null==e);else{if("object"!=typeof e)throw new TypeError("Provided initializer must be an object");{const p=e[Symbol.iterator];if(null!=p){if("function"!=typeof p)throw new TypeError("Header pairs must be iterable");const a=[];for(const p of e){if("object"!=typeof p||"function"!=typeof p[Symbol.iterator])throw new TypeError("Each header pair must be iterable");a.push(Array.from(p))}for(const e of a){if(2!==e.length)throw new TypeError("Each header pair must be a name/value tuple");this.append(e[0],e[1])}}else for(const p of Object.keys(e)){const a=e[p];this.append(p,a)}}}}get(e){Bi(e=`${e}`);const p=Mi(this[Hi],e);return void 0===p?null:this[Hi][p].join(", ")}forEach(e){let p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,a=zi(this),t=0;for(;t1&&void 0!==arguments[1]?arguments[1]:"key+value";return Object.keys(e[Hi]).sort().map("key"===p?function(e){return e.toLowerCase()}:"value"===p?function(p){return e[Hi][p].join(", ")}:function(p){return[p.toLowerCase(),e[Hi][p].join(", ")]})}Wi.prototype.entries=Wi.prototype[Symbol.iterator],Object.defineProperty(Wi.prototype,Symbol.toStringTag,{value:"Headers",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(Wi.prototype,{get:{enumerable:!0},forEach:{enumerable:!0},set:{enumerable:!0},append:{enumerable:!0},has:{enumerable:!0},delete:{enumerable:!0},keys:{enumerable:!0},values:{enumerable:!0},entries:{enumerable:!0}});const Xi=Symbol("internal");function Ki(e,p){const a=Object.create(Ji);return a[Xi]={target:e,kind:p,index:0},a}const Ji=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==Ji)throw new TypeError("Value of `this` is not a HeadersIterator");var e=this[Xi];const p=e.target,a=e.kind,t=e.index,r=zi(p,a);return t>=r.length?{value:void 0,done:!0}:(this[Xi].index=t+1,{value:r[t],done:!1})}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));function Yi(e){const p=Object.assign({__proto__:null},e[Hi]),a=Mi(e[Hi],"Host");return void 0!==a&&(p[a]=p[a][0]),p}Object.defineProperty(Ji,Symbol.toStringTag,{value:"HeadersIterator",writable:!1,enumerable:!1,configurable:!0});const Zi=Symbol("Response internals"),Qi=y.default.STATUS_CODES;class es{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Vi.call(this,e,p);const a=p.status||200,t=new Wi(p.headers);if(null!=e&&!t.has("Content-Type")){const p=Ui(e);p&&t.append("Content-Type",p)}this[Zi]={url:p.url,status:a,statusText:p.statusText||Qi[a],headers:t,counter:p.counter}}get url(){return this[Zi].url||""}get status(){return this[Zi].status}get ok(){return this[Zi].status>=200&&this[Zi].status<300}get redirected(){return this[Zi].counter>0}get statusText(){return this[Zi].statusText}get headers(){return this[Zi].headers}clone(){return new es(Gi(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}Vi.mixIn(es.prototype),Object.defineProperties(es.prototype,{url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}}),Object.defineProperty(es.prototype,Symbol.toStringTag,{value:"Response",writable:!1,enumerable:!1,configurable:!0});const ps=Symbol("Request internals"),as=L.default.URL||ei.URL,ts=L.default.parse,rs=L.default.format;function ds(e){return/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(e)&&(e=new as(e).toString()),ts(e)}const is="destroy"in P.default.Readable.prototype;function ss(e){return"object"==typeof e&&"object"==typeof e[ps]}class os{constructor(e){let p,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ss(e)?p=ds(e.url):(p=e&&e.href?ds(e.href):ds(`${e}`),e={});let t=a.method||e.method||"GET";if(t=t.toUpperCase(),(null!=a.body||ss(e)&&null!==e.body)&&("GET"===t||"HEAD"===t))throw new TypeError("Request with GET/HEAD method cannot have body");let r=null!=a.body?a.body:ss(e)&&null!==e.body?Gi(e):null;Vi.call(this,r,{timeout:a.timeout||e.timeout||0,size:a.size||e.size||0});const d=new Wi(a.headers||e.headers||{});if(null!=r&&!d.has("Content-Type")){const e=Ui(r);e&&d.append("Content-Type",e)}let i=ss(e)?e.signal:null;if("signal"in a&&(i=a.signal),null!=i&&!function(e){const p=e&&"object"==typeof e&&Object.getPrototypeOf(e);return!(!p||"AbortSignal"!==p.constructor.name)}(i))throw new TypeError("Expected signal to be an instanceof AbortSignal");this[ps]={method:t,redirect:a.redirect||e.redirect||"follow",headers:d,parsedURL:p,signal:i},this.follow=void 0!==a.follow?a.follow:void 0!==e.follow?e.follow:20,this.compress=void 0!==a.compress?a.compress:void 0===e.compress||e.compress,this.counter=a.counter||e.counter||0,this.agent=a.agent||e.agent}get method(){return this[ps].method}get url(){return rs(this[ps].parsedURL)}get headers(){return this[ps].headers}get redirect(){return this[ps].redirect}get signal(){return this[ps].signal}clone(){return new os(this)}}function ns(e){Error.call(this,e),this.type="aborted",this.message=e,Error.captureStackTrace(this,this.constructor)}Vi.mixIn(os.prototype),Object.defineProperty(os.prototype,Symbol.toStringTag,{value:"Request",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(os.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0}}),ns.prototype=Object.create(Error.prototype),ns.prototype.constructor=ns,ns.prototype.name="AbortError";const ls=L.default.URL||ei.URL,ms=P.default.PassThrough,us=function(e,p){const a=new ls(p).hostname,t=new ls(e).hostname;return a===t||"."===a[a.length-t.length-1]&&a.endsWith(t)},cs=function(e,p){return new ls(p).protocol===new ls(e).protocol};function hs(e,p){if(!hs.Promise)throw new Error("native promise missing, set fetch.Promise to your favorite alternative");return Vi.Promise=hs.Promise,new hs.Promise((function(a,t){const r=new os(e,p),d=function(e){const p=e[ps].parsedURL,a=new Wi(e[ps].headers);if(a.has("Accept")||a.set("Accept","*/*"),!p.protocol||!p.hostname)throw new TypeError("Only absolute URLs are supported");if(!/^https?:$/.test(p.protocol))throw new TypeError("Only HTTP(S) protocols are supported");if(e.signal&&e.body instanceof P.default.Readable&&!is)throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8");let t=null;if(null==e.body&&/^(POST|PUT)$/i.test(e.method)&&(t="0"),null!=e.body){const p=xi(e);"number"==typeof p&&(t=String(p))}t&&a.set("Content-Length",t),a.has("User-Agent")||a.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"),e.compress&&!a.has("Accept-Encoding")&&a.set("Accept-Encoding","gzip,deflate");let r=e.agent;return"function"==typeof r&&(r=r(p)),a.has("Connection")||r||a.set("Connection","close"),Object.assign({},p,{method:e.method,headers:Yi(a),agent:r})}(r),i=("https:"===d.protocol?S.default:y.default).request,s=r.signal;let o=null;const n=function(){let e=new ns("The user aborted a request.");t(e),r.body&&r.body instanceof P.default.Readable&&vs(r.body,e),o&&o.body&&o.body.emit("error",e)};if(s&&s.aborted)return void n();const l=function(){n(),c()},m=i(d);let u;function c(){m.abort(),s&&s.removeEventListener("abort",l),clearTimeout(u)}s&&s.addEventListener("abort",l),r.timeout&&m.once("socket",(function(e){u=setTimeout((function(){t(new Di(`network timeout at: ${r.url}`,"request-timeout")),c()}),r.timeout)})),m.on("error",(function(e){t(new Di(`request to ${r.url} failed, reason: ${e.message}`,"system",e)),o&&o.body&&vs(o.body,e),c()})),function(e,p){let a;e.on("socket",(function(e){a=e})),e.on("response",(function(e){const t=e.headers;"chunked"!==t["transfer-encoding"]||t["content-length"]||e.once("close",(function(e){if(a&&a.listenerCount("data")>0&&!e){const e=new Error("Premature close");e.code="ERR_STREAM_PREMATURE_CLOSE",p(e)}}))}))}(m,(function(e){s&&s.aborted||o&&o.body&&vs(o.body,e)})),parseInt(process.version.substring(1))<14&&m.on("socket",(function(e){e.addListener("close",(function(p){const a=e.listenerCount("data")>0;if(o&&a&&!p&&(!s||!s.aborted)){const e=new Error("Premature close");e.code="ERR_STREAM_PREMATURE_CLOSE",o.body.emit("error",e)}}))})),m.on("response",(function(e){clearTimeout(u);const p=function(e){const p=new Wi;for(const a of Object.keys(e))if(!$i.test(a))if(Array.isArray(e[a]))for(const t of e[a])ji.test(t)||(void 0===p[Hi][a]?p[Hi][a]=[t]:p[Hi][a].push(t));else ji.test(e[a])||(p[Hi][a]=[e[a]]);return p}(e.headers);if(hs.isRedirect(e.statusCode)){const d=p.get("Location");let i=null;try{i=null===d?null:new ls(d,r.url).toString()}catch(e){if("manual"!==r.redirect)return t(new Di(`uri requested responds with an invalid redirect URL: ${d}`,"invalid-redirect")),void c()}switch(r.redirect){case"error":return t(new Di(`uri requested responds with a redirect, redirect mode is set to error: ${r.url}`,"no-redirect")),void c();case"manual":if(null!==i)try{p.set("Location",i)}catch(e){t(e)}break;case"follow":if(null===i)break;if(r.counter>=r.follow)return t(new Di(`maximum redirect reached at: ${r.url}`,"max-redirect")),void c();const d={headers:new Wi(r.headers),follow:r.follow,counter:r.counter+1,agent:r.agent,compress:r.compress,method:r.method,body:r.body,signal:r.signal,timeout:r.timeout,size:r.size};if(!us(r.url,i)||!cs(r.url,i))for(const e of["authorization","www-authenticate","cookie","cookie2"])d.headers.delete(e);return 303!==e.statusCode&&r.body&&null===xi(r)?(t(new Di("Cannot follow redirect with body being a readable stream","unsupported-redirect")),void c()):(303!==e.statusCode&&(301!==e.statusCode&&302!==e.statusCode||"POST"!==r.method)||(d.method="GET",d.body=void 0,d.headers.delete("content-length")),a(hs(new os(i,d))),void c())}}e.once("end",(function(){s&&s.removeEventListener("abort",l)}));let d=e.pipe(new ms);const i={url:r.url,status:e.statusCode,statusText:e.statusMessage,headers:p,size:r.size,timeout:r.timeout,counter:r.counter},n=p.get("Content-Encoding");if(!r.compress||"HEAD"===r.method||null===n||204===e.statusCode||304===e.statusCode)return o=new es(d,i),void a(o);const m={flush:F.default.Z_SYNC_FLUSH,finishFlush:F.default.Z_SYNC_FLUSH};if("gzip"==n||"x-gzip"==n)return d=d.pipe(F.default.createGunzip(m)),o=new es(d,i),void a(o);if("deflate"==n||"x-deflate"==n){const p=e.pipe(new ms);return p.once("data",(function(e){d=8==(15&e[0])?d.pipe(F.default.createInflate()):d.pipe(F.default.createInflateRaw()),o=new es(d,i),a(o)})),void p.on("end",(function(){o||(o=new es(d,i),a(o))}))}if("br"==n&&"function"==typeof F.default.createBrotliDecompress)return d=d.pipe(F.default.createBrotliDecompress()),o=new es(d,i),void a(o);o=new es(d,i),a(o)})),function(e,p){const a=p.body;null===a?e.end():Fi(a)?a.stream().pipe(e):Buffer.isBuffer(a)?(e.write(a),e.end()):a.pipe(e)}(m,r)}))}function vs(e,p){e.destroy?e.destroy(p):(e.emit("error",p),e.end())}hs.isRedirect=function(e){return 301===e||302===e||303===e||307===e||308===e},hs.Promise=global.Promise;class fs extends Error{constructor(e){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="Deprecation"}}var gs={exports:{}},ws=function e(p,a){if(p&&a)return e(p)(a);if("function"!=typeof p)throw new TypeError("need wrapper function");return Object.keys(p).forEach((function(e){t[e]=p[e]})),t;function t(){for(var e=new Array(arguments.length),a=0;aconsole.warn(e))),Ss=bs((e=>console.warn(e)));class Os extends Error{constructor(e,p,a){let t;super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="HttpError",this.status=p,"headers"in a&&void 0!==a.headers&&(t=a.headers),"response"in a&&(this.response=a.response,t=a.response.headers);const r=Object.assign({},a.request);a.request.headers.authorization&&(r.headers=Object.assign({},a.request.headers,{authorization:a.request.headers.authorization.replace(/ .*$/," [REDACTED]")})),r.url=r.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=r,Object.defineProperty(this,"code",{get:()=>(ys(new fs("[@octokit/request-error] `error.code` is deprecated, use `error.status`.")),p)}),Object.defineProperty(this,"headers",{get:()=>(Ss(new fs("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`.")),t||{})})}}function As(e){const p=e.request&&e.request.log?e.request.log:console;(Ud(e.body)||Array.isArray(e.body))&&(e.body=JSON.stringify(e.body));let a,t,r={};return(e.request&&e.request.fetch||globalThis.fetch||hs)(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect,...e.body&&{duplex:"half"}},e.request)).then((async d=>{t=d.url,a=d.status;for(const e of d.headers)r[e[0]]=e[1];if("deprecation"in r){const a=r.link&&r.link.match(/<([^>]+)>; rel="deprecation"/),t=a&&a.pop();p.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${r.sunset}${t?`. See ${t}`:""}`)}if(204!==a&&205!==a){if("HEAD"===e.method){if(a<400)return;throw new Os(d.statusText,a,{response:{url:t,status:a,headers:r,data:void 0},request:e})}if(304===a)throw new Os("Not modified",a,{response:{url:t,status:a,headers:r,data:await Rs(d)},request:e});if(a>=400){const p=await Rs(d),i=new Os(function(e){if("string"==typeof e)return e;if("message"in e)return Array.isArray(e.errors)?`${e.message}: ${e.errors.map(JSON.stringify).join(", ")}`:e.message;return`Unknown error: ${JSON.stringify(e)}`}(p),a,{response:{url:t,status:a,headers:r,data:p},request:e});throw i}return Rs(d)}})).then((e=>({status:a,url:t,headers:r,data:e}))).catch((p=>{if(p instanceof Os)throw p;if("AbortError"===p.name)throw p;throw new Os(p.message,500,{request:e})}))}async function Rs(e){const p=e.headers.get("content-type");return/application\/json/.test(p)?e.json():!p||/^text\/|charset=utf-8$/.test(p)?e.text():function(e){return e.arrayBuffer()}(e)}const Ns=function e(p,a){const t=p.defaults(a);return Object.assign((function(p,a){const r=t.merge(p,a);if(!r.request||!r.request.hook)return As(t.parse(r));const d=(e,p)=>As(t.parse(t.merge(e,p)));return Object.assign(d,{endpoint:t,defaults:e.bind(null,t)}),r.request.hook(d,r)}),{endpoint:t,defaults:e.bind(null,t)})}(Qd,{headers:{"user-agent":`octokit-request.js/6.2.8 ${yd()}`}});var Ds=class extends Error{constructor(e,p,a){super("Request failed due to following response errors:\n"+a.errors.map((e=>` - ${e.message}`)).join("\n")),this.request=e,this.headers=p,this.response=a,this.name="GraphqlResponseError",this.errors=a.errors,this.data=a.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}},Ps=["method","baseUrl","url","headers","request","query","mediaType"],ks=["query","method","url"],Cs=/\/api\/v3\/?$/;function Vs(e,p){const a=e.defaults(p);return Object.assign(((e,p)=>function(e,p,a){if(a){if("string"==typeof p&&"query"in a)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(const e in a)if(ks.includes(e))return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}const t="string"==typeof p?Object.assign({query:p},a):p,r=Object.keys(t).reduce(((e,p)=>Ps.includes(p)?(e[p]=t[p],e):(e.variables||(e.variables={}),e.variables[p]=t[p],e)),{}),d=t.baseUrl||e.endpoint.DEFAULTS.baseUrl;return Cs.test(d)&&(r.url=d.replace(Cs,"/api/graphql")),e(r).then((e=>{if(e.data.errors){const p={};for(const a of Object.keys(e.headers))p[a]=e.headers[a];throw new Ds(r,p,e.data)}return e.data.data}))}(a,e,p)),{defaults:Vs.bind(null,a),endpoint:a.endpoint})}Vs(Ns,{headers:{"user-agent":`octokit-graphql.js/5.0.6 ${yd()}`},method:"POST",url:"/graphql"});const Ls=/^v1\./,Is=/^ghs_/,Fs=/^ghu_/;async function Gs(e){const p=3===e.split(/\./).length,a=Ls.test(e)||Is.test(e),t=Fs.test(e);return{type:"token",token:e,tokenType:p?"app":a?"installation":t?"user-to-server":"oauth"}}async function Us(e,p,a,t){const r=p.endpoint.merge(a,t);return r.headers.authorization=function(e){return 3===e.split(/\./).length?`bearer ${e}`:`token ${e}`}(e),p(r)}const xs=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if("string"!=typeof e)throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(Gs.bind(null,e),{hook:Us.bind(null,e)})};var $s="4.2.4",js=class{static defaults(e){return class extends(this){constructor(...p){const a=p[0]||{};super("function"!=typeof e?Object.assign({},e,a,a.userAgent&&e.userAgent?{userAgent:`${a.userAgent} ${e.userAgent}`}:null):e(a))}}}static plugin(...e){var p;const a=this.plugins;return(p=class extends(this){}).plugins=a.concat(e.filter((e=>!a.includes(e)))),p}constructor(e={}){const p=new Fd,a={baseUrl:Ns.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:p.bind(null,"request")}),mediaType:{previews:[],format:""}};var t;if(a.headers["user-agent"]=[e.userAgent,`octokit-core.js/${$s} ${yd()}`].filter(Boolean).join(" "),e.baseUrl&&(a.baseUrl=e.baseUrl),e.previews&&(a.mediaType.previews=e.previews),e.timeZone&&(a.headers["time-zone"]=e.timeZone),this.request=Ns.defaults(a),this.graphql=(t=this.request,Vs(t,{method:"POST",url:"/graphql"})).defaults(a),this.log=Object.assign({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},e.log),this.hook=p,e.authStrategy){const{authStrategy:a,...t}=e,r=a(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:t},e.auth));p.wrap("request",r.hook),this.auth=r}else if(e.auth){const a=xs(e.auth);p.wrap("request",a.hook),this.auth=a}else this.auth=async()=>({type:"unauthenticated"});this.constructor.plugins.forEach((p=>{Object.assign(this,p(this,e))}))}};js.VERSION=$s,js.plugins=[];function Bs(e){e.hook.wrap("request",((p,a)=>{e.log.debug("request",a);const t=Date.now(),r=e.request.endpoint.parse(a),d=r.url.replace(a.baseUrl,"");return p(a).then((p=>(e.log.info(`${r.method} ${d} - ${p.status} in ${Date.now()-t}ms`),p))).catch((p=>{throw e.log.info(`${r.method} ${d} - ${p.status} in ${Date.now()-t}ms`),p}))}))}Bs.VERSION="1.0.4";function qs(e,p,a){const t="function"==typeof p?p.endpoint(a):e.request.endpoint(p,a),r="function"==typeof p?p:e.request,d=t.method,i=t.headers;let s=t.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!s)return{done:!0};try{const e=function(e){if(!e.data)return{...e,data:[]};if(!("total_count"in e.data)||"url"in e.data)return e;const p=e.data.incomplete_results,a=e.data.repository_selection,t=e.data.total_count;delete e.data.incomplete_results,delete e.data.repository_selection,delete e.data.total_count;const r=Object.keys(e.data)[0],d=e.data[r];return e.data=d,void 0!==p&&(e.data.incomplete_results=p),void 0!==a&&(e.data.repository_selection=a),e.data.total_count=t,e}(await r({method:d,url:s,headers:i}));return s=((e.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1],{value:e}}catch(e){if(409!==e.status)throw e;return s="",{value:{status:200,headers:{},data:[]}}}}})}}function Ms(e,p,a,t){return"function"==typeof a&&(t=a,a=void 0),Hs(e,[],qs(e,p,a)[Symbol.asyncIterator](),t)}function Hs(e,p,a,t){return a.next().then((r=>{if(r.done)return p;let d=!1;return p=p.concat(t?t(r.value,(function(){d=!0})):r.value.data),d?p:Hs(e,p,a,t)}))}function Ws(e){return{paginate:Object.assign(Ms.bind(null,e),{iterator:qs.bind(null,e)})}}Object.assign(Ms,{iterator:qs}),Ws.VERSION="6.1.2";const zs="7.2.3";var Xs={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],addSelectedRepoToRequiredWorkflow:["PUT /orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repositories/{repository_id}/environments/{environment_name}/variables"],createOrUpdateEnvironmentSecret:["PUT /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],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"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createRequiredWorkflow:["POST /orgs/{org}/actions/required_workflows"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteRequiredWorkflow:["DELETE /orgs/{org}/actions/required_workflows/{required_workflow_id}"],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"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/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"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getEnvironmentPublicKey:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],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}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoRequiredWorkflow:["GET /repos/{org}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}"],getRepoRequiredWorkflowUsage:["GET /repos/{org}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}/timing"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getRequiredWorkflow:["GET /orgs/{org}/actions/required_workflows/{required_workflow_id}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repositories/{repository_id}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repositories/{repository_id}/environments/{environment_name}/variables"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoRequiredWorkflows:["GET /repos/{org}/{repo}/actions/required_workflows"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRequiredWorkflowRuns:["GET /repos/{owner}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}/runs"],listRequiredWorkflows:["GET /orgs/{org}/actions/required_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"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelectedRepositoriesRequiredWorkflow:["GET /orgs/{org}/actions/required_workflows/{required_workflow_id}/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"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],removeSelectedRepoFromRequiredWorkflow:["DELETE /orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedReposToRequiredWorkflow:["PUT /orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"],updateRequiredWorkflow:["PATCH /orgs/{org}/actions/required_workflows/{required_workflow_id}"]},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}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],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"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],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"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["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"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteCodespacesBillingUsers:["DELETE /orgs/{org}/codespaces/billing/selected_users"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setCodespacesBilling:["PUT /orgs/{org}/codespaces/billing"],setCodespacesBillingUsers:["POST /orgs/{org}/codespaces/billing/selected_users"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},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}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/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"],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"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{cancelImport:["DELETE /repos/{owner}/{repo}/import"],deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],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}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],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"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"],updateImport:["PATCH /repos/{owner}/{repo}/import"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}"],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"],delete:["DELETE /orgs/{org}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],enableOrDisableSecurityProductOnAllOrgRepos:["POST /orgs/{org}/{security_product}/{enablement}"],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"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],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"],listPatGrantRepositories:["GET /organizations/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /organizations/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /organizations/{org}/personal-access-token-requests"],listPatGrants:["GET /organizations/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers"],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],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}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}"],reviewPatGrantRequest:["POST /organizations/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /organizations/{org}/personal-access-token-requests"],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}"],updatePatAccess:["POST /organizations/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /organizations/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}"],createCard:["POST /projects/columns/{column_id}/cards"],createColumn:["POST /projects/{project_id}/columns"],createForAuthenticatedUser:["POST /user/projects"],createForOrg:["POST /orgs/{org}/projects"],createForRepo:["POST /repos/{owner}/{repo}/projects"],delete:["DELETE /projects/{project_id}"],deleteCard:["DELETE /projects/columns/cards/{card_id}"],deleteColumn:["DELETE /projects/columns/{column_id}"],get:["GET /projects/{project_id}"],getCard:["GET /projects/columns/cards/{card_id}"],getColumn:["GET /projects/columns/{column_id}"],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission"],listCards:["GET /projects/columns/{column_id}/cards"],listCollaborators:["GET /projects/{project_id}/collaborators"],listColumns:["GET /projects/{project_id}/columns"],listForOrg:["GET /orgs/{org}/projects"],listForRepo:["GET /repos/{owner}/{repo}/projects"],listForUser:["GET /users/{username}/projects"],moveCard:["POST /projects/columns/cards/{card_id}/moves"],moveColumn:["POST /projects/columns/{column_id}/moves"],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}"],update:["PATCH /projects/{project_id}"],updateCard:["PATCH /projects/columns/cards/{card_id}"],updateColumn:["PATCH /projects/columns/{column_id}"]},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"],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"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["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"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployment"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createTagProtection:["POST /repos/{owner}/{repo}/tags/protection"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],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"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],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}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteTagProtection:["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disableLfsForRepo:["DELETE /repos/{owner}/{repo}/lfs"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],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"],enableLfsForRepo:["PUT /repos/{owner}/{repo}/lfs"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],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"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],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"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],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"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],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"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTagProtection:["GET /repos/{owner}/{repo}/tags/protection"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],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"],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}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_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}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_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"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},securityAdvisories:{createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],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"],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",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],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",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_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}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};const Ks=new Map;for(const[e,p]of Object.entries(Xs))for(const[a,t]of Object.entries(p)){const[p,r,d]=t,[i,s]=p.split(/ /),o=Object.assign({method:i,url:s},r);Ks.has(e)||Ks.set(e,new Map),Ks.get(e).set(a,{scope:e,methodName:a,endpointDefaults:o,decorations:d})}const Js={get({octokit:e,scope:p,cache:a},t){if(a[t])return a[t];const{decorations:r,endpointDefaults:d}=Ks.get(p).get(t);return a[t]=r?function(e,p,a,t,r){const d=e.request.defaults(t);function i(...t){let i=d.endpoint.merge(...t);if(r.mapToData)return i=Object.assign({},i,{data:i[r.mapToData],[r.mapToData]:void 0}),d(i);if(r.renamed){const[t,d]=r.renamed;e.log.warn(`octokit.${p}.${a}() has been renamed to octokit.${t}.${d}()`)}if(r.deprecated&&e.log.warn(r.deprecated),r.renamedParameters){const i=d.endpoint.merge(...t);for(const[t,d]of Object.entries(r.renamedParameters))t in i&&(e.log.warn(`"${t}" parameter is deprecated for "octokit.${p}.${a}()". Use "${d}" instead`),d in i||(i[d]=i[t]),delete i[t]);return d(i)}return d(...t)}return Object.assign(i,d)}(e,p,t,d,r):e.request.defaults(d),a[t]}};function Ys(e){const p=function(e){const p={};for(const a of Ks.keys())p[a]=new Proxy({octokit:e,scope:a,cache:{}},Js);return p}(e);return{...p,rest:p}}Ys.VERSION=zs;let Zs=new(js.plugin(Bs,Ys,Ws).defaults({userAgent:"octokit-rest.js/19.0.13"}));const Qs=e=>"fulfilled"===e.status;function eo(e){if("application/zip"!==e&&"application/gzip"!==e&&"application/octet-stream"!==e)throw new Error(`Unsupported archive type: ${e}. Please file an issue`);return e}async function po(e,p){let a=function(e,p){if(void 0===p){ip.info(`Infering correct asset file name (os=${process.platform}, arch=${process.arch})...`);let p=function(e,p){let a=new Array;switch(e){case"win32":a.push(/.*windows.*/);break;case"linux":a.push(/.*linux.*/);break;case"darwin":a.push(/.*macos.*/);break;default:throw new Error(`Unsupported platform ${e}. Please open an issue`)}switch(p){case"arm":a.push(/.*(arm32|armv6hf).*/);break;case"arm64":a.push(/.*(arm64|aarch64).*/);break;case"x64":a.push(/.*(x64|linux64|windows64|macosx).*/);break;default:throw new Error(`Unsupported architecture ${p}. Please open an issue`)}return a}(process.platform,process.arch);return e.find((e=>p.every((p=>null!==e.name.match(p)))))}return e.find((e=>e.name===p))}(e,p);if(void 0===a)throw new Error(`The given archive name does not exist: ${null!=p?p:"(Infered, please open an issue for this)"}\n\n Available choices were: ${JSON.stringify(e.map((e=>e.name)))}\n `);return ip.info(`Downloading release asset "${a.name}"`),await function(e,p){switch(p){case"application/zip":return Fa(e,"extracted-processing");case"application/octet-stream":ip.warning(`Asset type of ${e} is "application/octet-stream". Assumed to be gzip`);case"application/gzip":return Ia(e,"extracted-processing")}}(await La(a.url),a.content_type)}const ao=[{owner:"processing",repo:"processing4"},{owner:"processing",repo:"processing"}];try{!async function(){const e=ip.getInput("tag")||void 0,p=ip.getInput("asset-name")||void 0;ip.info(`setup-processing: tag=${e}, assetName=${p}`),ip.debug(`Attempting to find release with the following tag: ${null!=e?e:"(Infered, none given)"}...`);const a=await async function(e,p){if(e.length<1)throw new Error("No Processing repos specified in which to look for the specified tag");let a=(await Promise.allSettled(e.map((e=>void 0!==p?Zs.rest.repos.getReleaseByTag({...e,tag:p}):Zs.rest.repos.getLatestRelease(e)))).then((e=>e.filter(Qs).map((e=>e.value))))).filter((e=>e.status>=200&&e.status<300));if(a.length<1)throw new Error(`Could not find a Processing release for the following tag: ${JSON.stringify(p)}`);let t=a[0].data;return ip.debug(`Pruning asset descriptions: ${JSON.stringify(t.assets)}`),{tag:t.tag_name,assets:t.assets.map((e=>({name:e.name,url:e.browser_download_url,content_type:eo(e.content_type)})))}}(ao,e);ip.debug(`Found release: ${JSON.stringify(a)}`),ip.debug("Trying to locate existing Processing installation...");let t=function(e){var p;const a=e.match(/.*-0*([0-9]+)-.*/);if(null===a)throw new Error(`Could not parse tag for revision number: tag=${e}`);const t=null===(p=bd.coerce(a[1]))||void 0===p?void 0:p.format();if(void 0===t)throw new Error(`Could coerce revision number to semver: number=${a[1]}. Please file an issue`);return t}(a.tag),r=Ua("processing",t);if(r)return ip.info(`Processing (${a.tag}) is already cached. Aborting...`),void ip.addPath(r);ip.debug("No existing Processing installation found."),ip.debug(`Attempting to download release asset with the following assetName: ${null!=p?p:"(Infered, none given)"}...`);const d=await po(a.assets,p);ip.debug(`Downloaded release asset at ${d}`),ip.debug("Attempting to install..."),await async function(e,p){let a=await _.promises.opendir(e),t=a.readSync();if(null===t||t.isFile()||void 0===t.name)throw new Error("Unexpected folder structure of extraced Processing archive. Please open an issue");let r=ip.toPlatformPath(`${e}/${t.name}`);a.close();let d=await Ga(r,"processing",p);return ip.addPath(d),d}(d,t),ip.debug("Processing successfully installed!")}()}catch(e){ip.setFailed(e.message)} diff --git a/src/downloadAsset.ts b/src/downloadAsset.ts new file mode 100644 index 0000000..5541df1 --- /dev/null +++ b/src/downloadAsset.ts @@ -0,0 +1,105 @@ +import * as core from "@actions/core"; +import * as tc from "@actions/tool-cache"; +import { ArchiveType, ReleaseAsset } from "./types"; + +/** + * Download a specified asset from a GitHub Release. + * + * If no assetName is given, `setup-processing` tries to infer the + * assetName. It does so based on the OS and CPU architecture of + * the GitHub runner. + * + * @param assets Available assets for a Processing release + * @param assetName Name of the specified asset to be downloaded + * @returns Path to extracted asset + */ +async function downloadAsset( + assets: ReleaseAsset[], + assetName?: string +): Promise { + let asset = getAssetByName(assets, assetName); + if (asset === undefined) { + throw new Error( + `The given archive name does not exist: ${ + assetName ?? "(Infered, please open an issue for this)" + } + + Available choices were: ${JSON.stringify( + assets.map((asset) => asset.name) + )} + ` + ); + } + core.info(`Downloading release asset "${asset.name}"`); + + let path = await extractTool( + await tc.downloadTool(asset.url), + asset.content_type + ); + + return path; +} + +function getAssetByName( + assets: ReleaseAsset[], + assetName?: string +): ReleaseAsset | undefined { + if (assetName === undefined) { + core.info( + `Infering correct asset file name (os=${process.platform}, arch=${process.arch})...` + ); + let matchers = getMatchers(process.platform, process.arch); + return assets.find((asset) => + matchers.every((matcher) => asset.name.match(matcher) !== null) + ); + } + + return assets.find((asset) => asset.name === assetName); +} +function getMatchers(os: NodeJS.Platform, arch: NodeJS.Architecture): RegExp[] { + let out = new Array(); + switch (os) { + case "win32": + out.push(/.*windows.*/); + break; + case "linux": + out.push(/.*linux.*/); + break; + case "darwin": + out.push(/.*macos.*/); + break; + default: + throw new Error(`Unsupported platform ${os}. Please open an issue`); + } + + switch (arch) { + case "arm": + out.push(/.*(arm32|armv6hf).*/); + break; + case "arm64": + out.push(/.*(arm64|aarch64).*/); + break; + case "x64": + out.push(/.*(x64|linux64|windows64|macosx).*/); + break; + // Apparently no x86 32 bit + default: + throw new Error(`Unsupported architecture ${arch}. Please open an issue`); + } + + return out; +} +function extractTool(path: string, type: ArchiveType): Promise { + switch (type) { + case "application/zip": + return tc.extractZip(path, "extracted-processing"); + case "application/octet-stream": + core.warning( + `Asset type of ${path} is "application/octet-stream". Assumed to be gzip` + ); + case "application/gzip": + return tc.extractTar(path, "extracted-processing"); + } +} + +export default downloadAsset; diff --git a/src/getReleaseByTag.ts b/src/getReleaseByTag.ts new file mode 100644 index 0000000..39da36c --- /dev/null +++ b/src/getReleaseByTag.ts @@ -0,0 +1,93 @@ +import * as core from "@actions/core"; +import { Octokit, RestEndpointMethodTypes } from "@octokit/rest"; + +import { ArchiveType, Release, Repository } from "./types"; + +let OCTOKIT = new Octokit(); + +/** + * Retrieves a release with the specified tag. + * + * If no tag is specified, the latest will be returned. This function will search for + * the given tag inside the given repositories `repos`. If the given tag occurs in + * multiple repositories, the release from the left most repo of `repos` will be + * returned. + * + * @param repos Repositories to look for a Processing release + * @param tag The tag of the desired release + * @returns The desired release + */ +async function getReleaseByTag( + repos: Repository[], + tag?: string +): Promise { + if (repos.length < 1) { + throw new Error( + `No Processing repos specified in which to look for the specified tag` + ); + } + + let releases = await Promise.allSettled( + repos.map((repo) => + tag !== undefined + ? OCTOKIT.rest.repos.getReleaseByTag({ + ...repo, + tag: tag, + }) + : OCTOKIT.rest.repos.getLatestRelease(repo) + ) + ).then((results) => + results.filter(isFulfilled).map((result) => result.value) + ); + + let successfullyRetrievedReleases = releases.filter( + (release) => release.status >= 200 && release.status < 300 + ); + + if (successfullyRetrievedReleases.length < 1) { + throw new Error( + `Could not find a Processing release for the following tag: ${JSON.stringify( + tag + )}` + ); + } + + let release = successfullyRetrievedReleases[0].data; + + core.debug(`Pruning asset descriptions: ${JSON.stringify(release.assets)}`); + let out = { + tag: release.tag_name, + assets: release.assets.map((asset) => { + return { + name: asset.name, + url: asset.browser_download_url, + content_type: getArchiveType(asset.content_type), + }; + }), + }; + + return out; +} + +const isFulfilled = ( + input: PromiseSettledResult +): input is PromiseFulfilledResult => input.status === "fulfilled"; + +function getArchiveType(content_type: string): ArchiveType { + if ( + content_type !== "application/zip" && + content_type !== "application/gzip" && + content_type !== "application/octet-stream" + ) { + throw new Error( + `Unsupported archive type: ${content_type}. Please file an issue` + ); + } + + if (content_type === "application/octet-stream") { + } + + return content_type; +} + +export default getReleaseByTag; diff --git a/src/index.ts b/src/index.ts index 6e27a53..8ca9f85 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,237 +1,69 @@ import * as core from "@actions/core"; import * as tc from "@actions/tool-cache"; -import { Octokit, RestEndpointMethodTypes } from "@octokit/rest"; -import * as fs from "fs"; import { coerce } from "semver"; -let OCTOKIT = new Octokit(); +import { Repository } from "./types"; + +import getReleaseByTag from "./getReleaseByTag"; +import downloadAsset from "./downloadAsset"; +import installAsset from "./installAsset"; const REPOSITORIES: Repository[] = [ { owner: "processing", repo: "processing4" }, { owner: "processing", repo: "processing" }, ]; -type Repository = { - owner: string; - repo: string; -}; - -type ArchiveType = "application/zip" | "application/gzip"; - -type ReleaseAsset = { - name: string; - url: string; - content_type: ArchiveType; -}; - -type Release = { - tag: string; - assets: ReleaseAsset[]; -}; - -/** - * Retrieves a release with the specified tag. - * - * If no tag is specified, the latest will be returned. This function will search for - * the given tag inside the given repositories `repos`. If the given tag occurs in - * multiple repositories, the release from the left most repo of `repos` will be - * returned. - * - * @param repos Repositories to look for a Processing release - * @param tag The tag of the desired release - * @returns The desired release - */ -async function getReleaseByTag( - repos: Repository[], - tag?: string -): Promise { - if (repos.length < 1) { - throw new Error( - `No Processing repos specified in which to look for the specified tag` - ); - } - - const isFulfilled = ( - input: PromiseSettledResult - ): input is PromiseFulfilledResult => input.status === "fulfilled"; - - let releases = await Promise.allSettled( - repos.map((repo) => - tag !== undefined - ? OCTOKIT.rest.repos.getReleaseByTag({ - ...repo, - tag: tag, - }) - : OCTOKIT.rest.repos.getLatestRelease(repo) - ) - ).then((results) => - results.filter(isFulfilled).map((result) => result.value) - ); - - let successfullyRetrievedReleases = releases.filter( - (release) => release.status >= 200 && release.status < 300 - ); - - if (successfullyRetrievedReleases.length < 1) { - throw new Error( - `Could not find a Processing release for the following tag: ${JSON.stringify( - tag - )}` - ); - } - - let release = successfullyRetrievedReleases[0].data; - let out = { - tag: release.tag_name, - assets: release.assets.map((asset) => { - return { - name: asset.name, - url: asset.browser_download_url, - content_type: getArchiveType(asset.content_type), - }; - }), - }; - - return out; - - function getArchiveType(content_type: string): ArchiveType { - if ( - content_type !== "application/zip" && - content_type !== "application/gzip" - ) { - throw new Error( - `Unsupported archive type: ${content_type}. Please file an issue` - ); - } - - return content_type; - } -} - -async function installAsset( - tag: string, - assets: ReleaseAsset[], - archiveName?: string -) { - let asset = getAssetByName(assets, archiveName); - if (asset === undefined) { - throw new Error( - `The given archive name does not exist: ${ - archiveName ?? "(Infered, please open an issue for this)" - }` - ); - } - core.info(`Downloading release asset "${asset.name}"`); - - let path = await extractTool( - await tc.downloadTool(asset.url), - asset.content_type - ); - - await cacheProcessingBinary(path, tag); - - async function cacheProcessingBinary(extractedDir: string, tag: string) { - let childEntries = await fs.promises.opendir(extractedDir); - let next = childEntries.readSync(); - - if (next === null || next.isFile() || next.name === undefined) { - throw new Error( - `Unexpected folder structure of extraced Processing archive. Please open an issue` - ); - } - let subFolder = core.toPlatformPath(`${extractedDir}/${next.name}`); - let cachedPath = await tc.cacheDir(subFolder, "processing", tag); - core.addPath(cachedPath); - } - function getAssetByName( - assets: ReleaseAsset[], - assetName?: string - ): ReleaseAsset | undefined { - if (assetName === undefined) { - core.info(`Infering correct asset file name...`); - let matchers = getMatchers(process.platform, process.arch); - return assets.find((asset) => - matchers.every((matcher) => asset.name.match(matcher) !== null) - ); - } - - return assets.find((asset) => asset.name === assetName); - } - function getMatchers( - os: NodeJS.Platform, - arch: NodeJS.Architecture - ): RegExp[] { - let out = new Array(); - switch (os) { - case "win32": - out.push(/.*windows.*/); - break; - case "linux": - out.push(/.*linux.*/); - break; - case "darwin": - out.push(/.*macos.*/); - break; - default: - throw new Error(`Unsupported platform ${os}. Please open an issue`); - } - - switch (arch) { - case "arm": - out.push(/.*(arm32|armv6hf).*/); - break; - case "arm64": - out.push(/.*(arm64|aarch64).*/); - break; - case "x64": - out.push(/.*(x64|linux64|windows64|macosx).*/); - break; - // Apparently no x86 32 bit - default: - throw new Error( - `Unsupported architecture ${arch}. Please open an issue` - ); - } - - return out; - } - function extractTool(path: string, type: ArchiveType): Promise { - switch (type) { - case "application/zip": - return tc.extractZip(path, "extracted-processing"); - case "application/gzip": - return tc.extractTar(path, "extracted-processing"); - } - } -} - async function run() { const tag = core.getInput("tag") || undefined; const assetName = core.getInput("asset-name") || undefined; + core.info(`setup-processing: tag=${tag}, assetName=${assetName}`); + core.debug( `Attempting to find release with the following tag: ${ tag ?? "(Infered, none given)" - }` + }...` ); const release = await getReleaseByTag(REPOSITORIES, tag); core.debug(`Found release: ${JSON.stringify(release)}`); - core.debug(`Trying to locate existing Processing installation`); - let semverTag = coerce(release.tag)!.format(); + core.debug(`Trying to locate existing Processing installation...`); + let semverTag = getRevisionNumber(release.tag); let cachedDirectory = tc.find("processing", semverTag); if (cachedDirectory) { core.info(`Processing (${release.tag}) is already cached. Aborting...`); core.addPath(cachedDirectory); return; } + core.debug("No existing Processing installation found."); core.debug( `Attempting to download release asset with the following assetName: ${ assetName ?? "(Infered, none given)" - }` + }...` ); - const installPath = await installAsset(semverTag, release.assets, assetName); + const downloadPath = await downloadAsset(release.assets, assetName); + core.debug(`Downloaded release asset at ${downloadPath}`); + + core.debug(`Attempting to install...`); + const installPath = await installAsset(downloadPath, semverTag); + core.debug(`Processing successfully installed!`); + + function getRevisionNumber(tag: string): string { + const matches = tag.match(/.*-0*([0-9]+)-.*/); + if (matches === null) { + throw new Error(`Could not parse tag for revision number: tag=${tag}`); + } + + const out = coerce(matches[1])?.format(); + if (out === undefined) { + throw new Error( + `Could coerce revision number to semver: number=${matches[1]}. Please file an issue` + ); + } + + return out; + } } try { diff --git a/src/installAsset.ts b/src/installAsset.ts new file mode 100644 index 0000000..f9ec4cf --- /dev/null +++ b/src/installAsset.ts @@ -0,0 +1,33 @@ +import * as fs from "fs"; +import * as core from "@actions/core"; +import * as tc from "@actions/tool-cache"; + +/** + * Installs an extract asset and adds it to the GitHub Runner's + * path. + * + * @param extractedDir Directory of asset to be installed + * @param tag Revision number of Processing as SemVer + * @returns Path of Processing install directory + */ +async function installAsset( + extractedDir: string, + tag: string +): Promise { + let childEntries = await fs.promises.opendir(extractedDir); + let next = childEntries.readSync(); + + if (next === null || next.isFile() || next.name === undefined) { + throw new Error( + `Unexpected folder structure of extraced Processing archive. Please open an issue` + ); + } + let subFolder = core.toPlatformPath(`${extractedDir}/${next.name}`); + childEntries.close(); + let cachedPath = await tc.cacheDir(subFolder, "processing", tag); + core.addPath(cachedPath); + + return cachedPath; +} + +export default installAsset; diff --git a/src/types.ts b/src/types.ts new file mode 100644 index 0000000..0532ba2 --- /dev/null +++ b/src/types.ts @@ -0,0 +1,22 @@ +type Repository = { + owner: string; + repo: string; +}; + +type ArchiveType = + | "application/zip" + | "application/gzip" + | "application/octet-stream"; + +type ReleaseAsset = { + name: string; + url: string; + content_type: ArchiveType; +}; + +type Release = { + tag: string; + assets: ReleaseAsset[]; +}; + +export { Repository, ArchiveType, ReleaseAsset, Release };