diff --git a/dist/build/index.js b/dist/build/index.js index 32604d0..3a0b072 100644 --- a/dist/build/index.js +++ b/dist/build/index.js @@ -1,4 +1,4 @@ -(()=>{var __webpack_modules__={4523:(e,p,a)=>{const d=a(2186);e.exports={Alpha:0,Beta:1,Release:2,getBuildLevel:()=>{const e=d.getInput("build_level");const p=e.length>0?e:process.env["AUDACITY_BUILD_LEVEL"];if(p==="beta"){return 1}else if(p==="release"){return 2}else{const e=Number(p);if(Number.isInteger(e)&&e>=0&&e<=2){return e}return 0}},getBuildSuffix:e=>{if(e==1){return"beta"}else if(e==2){return""}else{return"alpha"}}}},5800:(e,p,a)=>{const d=a(5747);const t=a(5622);const i=a(467);const r=a(8090);const s=a(7784);const l=a(5008);const o=a(1066);const n=process.env["ARTIFACTORY_SYMBOLS_URL"];const m=process.env["ARTIFACTORY_SYMBOLS_KEY"];const u="C:\\Program Files (x86)\\Windows Kits\\10\\Debuggers\\x64\\symstore.exe";const c=process.platform==="win32"&&d.existsSync(u);const f=t.join(workspaceDir,".debug");const h=t.join(f,"SymStore");async function getSentryCli(){let e="";try{if(process.platform==="win32"){e=await s.downloadTool("https://downloads.sentry-cdn.com/sentry-cli/1.71.0/sentry-cli-Windows-x86_64.exe")}else if(process.platform==="darwin"){e=await s.downloadTool("https://downloads.sentry-cdn.com/sentry-cli/1.71.0/sentry-cli-Darwin-universal")}else{e=await s.downloadTool("https://downloads.sentry-cdn.com/sentry-cli/1.71.0/sentry-cli-Linux-x86_64")}const p=process.platform==="win32"?"sentry-cli.exe":"sentry-cli";const a=t.join(t.dirname(e),p);await d.promises.rename(e,a);if(process.platform!=="win32"){await d.promises.chmod(a,"0766")}return a}catch(e){l.error(e);return""}}const v={authToken:process.env["SENTRY_AUTH_TOKEN"]||"",url:"https://"+process.env["SENTRY_HOST"],org:process.env["SENTRY_ORG_SLUG"]||"",project:process.env["SENTRY_PROJECT_SLUG"]||"",cliInitialized:false,cliFound:false};const w=v.authToken.length>0&&v.url.length>0&&v.org.length>0&&v.project.length>0;async function download(e,p,a){const r=await i(e+p);if(!r.ok){return false}try{await new Promise(((e,i)=>{let s=t.join(a,p);let l=t.dirname(s);if(!d.existsSync(l)){d.mkdirSync(l,{recursive:true})}const o=d.createWriteStream(s);r.body.pipe(o);r.body.on("error",(e=>{i(e)}));o.on("finish",(function(){e()}))}));return true}catch(e){return false}}async function download000Admin(e){if(await download(n,"000Admin/lastid.txt",e)){await download(n,"000Admin/history.txt",e);await download(n,"000Admin/server.txt",e)}}async function uploadSymStore(){await download000Admin();const e=await o.listDirectory(h);for(const p of e){let e=n+t.relative(h,p).replaceAll(t.sep,"/");l.log(`Uploading ${e}`);let a=d.createReadStream(p);try{let p=await i(e,{method:"PUT",headers:{Authorization:"Bearer "+m},body:a});if(!p.ok){l.error("Failed to upload "+p.status)}}catch(e){l.error(e)}}}async function uploadAllToSentry(e){if(!v.cliInitialized){v.cliInitialized=true;v.cli=await getSentryCli();v.cliFound=v.cli.length>0;if(!v.cliFound){l.error("sentry-cli is not available");return}}if(v.cliFound&&w){for(const p of e){await l.execWithLog(v.cli,["--auth-token",v.authToken,"--url",v.url,"upload-dif","--include-sources","--org",v.org,"--project",v.project,p])}}}async function addToSymStore(e){if(c){await l.execWithLog('"'+u+'"',["add","/s",h,"/compress","/r","/f",e,"/t",t.basename(e,".pdb")])}}async function splitDsymFile(e){if(!d.existsSync(f)){d.mkdirSync(f,{recursive:true})}l.log(`Calling dsymutil on ${e}`);let p=t.join(f,t.basename(e)+".dSYM");await l.execWithLog("dsymutil",[e,"-o",p]);return p}async function splitDebugFile(e){if(!d.existsSync(f)){d.mkdirSync(f,{recursive:true})}let p=t.join(f,t.basename(e)+".debug");try{await l.execWithLog("objcopy",["--only-keep-debug","--compress-debug-section=zlib",e,p]);if(!d.existsSync(p)){return""}await l.execWithLog("objcopy",["--strip-debug","--strip-unneeded",e]);await l.execWithLog("objcopy",["--add-gnu-debuglink="+p,e]);return p}catch(e){l.error(e);return""}}async function getMatchingFiles(e,p,a){const d=await o.globFiles(e);const i=await o.globFiles(p);return d.filter((e=>{const p=!a?t.basename(e):t.basename(e,t.extname(e));return i.findIndex((e=>e.indexOf(p)!=-1))!=-1}))}async function splitDepsDebugSymbols(e,p,a){const d=await getMatchingFiles(t.join(conanCachePath,"data/**/package/**/*"+e),t.join(conanCachePath,"data/**/build/**/*"+e));let i=[];for(const e of d){const a=await p(e);if(a.length>0){i.push(a)}}if(a&&i.length>0){await uploadAllToSentry([...i,...d])}}async function splitAudacityDebugSymbols(e,p,a,i,r){const s=t.join(e,"bin",p);const l=(await o.globFiles(`${s}/**/*`)).filter((e=>{const p=d.lstatSync(e);return p.isFile()&&p.mode&d.constants.S_IXUSR&&t.extname(e).length==0}));const n=await getMatchingFiles(`${s}/**/*${a}`,`${conanCachePath}/**/package/**/*${a}`);const m=(await o.globFiles(`${s}/**/*${a}`)).filter((e=>{const p=d.lstatSync(e);if(!p.isFile())return false;return n.indexOf(e)==-1}));const u=[...l,...m];let c=[];for(const e of u){const p=await i(e);if(p.length>0){c.push(p)}}if(r&&c.length>0){await uploadAllToSentry([...c,...u])}}async function processDependenciesDebugInformation(e,p,a){if(process.platform=="win32"){if(!a||!n){return}if(!c){l.error("symstore.exe is not available");return}const e=await o.globFiles(t.join(conanCachePath,"data/**/build/**/*.pdb"));for(const p of e){await addToSymStore(p)}if(e.length>0){await uploadSymStore();const p=await o.globFiles(t.join(conanCachePath,"data/**/build/**/*.dll"));await uploadAllToSentry([...e,...p])}}else if(process.platform=="darwin"){await splitDepsDebugSymbols(".dylib",splitDsymFile,a)}else{await splitDepsDebugSymbols(".so*",splitDebugFile,a)}}async function processDebugInformation(e,p,a){if(process.platform=="win32"){const i=await o.globFiles(t.join(e,`bin/${p}/**/*.pdb`));if(a){const a=await o.globFiles(t.join(e,`shared/${p}/**/*.pdb`));const d=await getMatchingFiles(t.join(e,`shared/${p}/**/*.dll`),t.join(e,`shared/${p}/**/*.pdb`),true);const r=await getMatchingFiles([t.join(e,`bin/${p}/**/*.exe`),t.join(e,`bin/${p}/**/*.dll`)],t.join(e,`bin/${p}/**/*.pdb`),true);const s=[...i,...a];for(const e of s){await addToSymStore(e)}await uploadAllToSentry(s);await uploadAllToSentry([...d,...s,...r])}const r=await o.globFiles([t.join(e,`bin/${p}/**/*.ipdb`),t.join(e,`bin/${p}/**/*.iobj`),t.join(e,`bin/${p}/**/*.ilk`)]);for(const e of[...i,...r]){await d.promises.rm(e)}}else if(process.platform=="darwin"){await splitAudacityDebugSymbols(e,p,".dylib",splitDsymFile,a)}else{await splitAudacityDebugSymbols(e,p,".so*",splitDebugFile,a)}}e.exports={processDependenciesDebugInformation:processDependenciesDebugInformation,processDebugInformation:processDebugInformation}},1066:(e,p,a)=>{const d=a(5747);const t=a(5622);const i=a(8090);helpers=a(5008);const getFilesFromDirectoryRecursive=async e=>{const p=await d.promises.readdir(e);const a=await Promise.all(p.map((async p=>{const a=t.join(e,p);const i=await d.promises.stat(a);if(i.isDirectory()){return getFilesFromDirectoryRecursive(a)}else{return a}})));return a.filter((e=>e.length))};async function globFiles(e){const p=await i.create(Array.isArray(e)?e.join("\n"):e);let a=[];for await(const e of p.globGenerator()){const p=await d.promises.lstat(e);if(p.isSymbolicLink()){continue}a.push(e)}return a}async function listMacosAppsRecursive(e,p){const a=await d.promises.readdir(e);await Promise.all(a.map((async a=>{const i=t.join(e,a);const r=await d.promises.stat(i);if(r.isDirectory()){if(t.extname(a)==".app"){p.push(i)}else{return listMacosAppsRecursive(i,p)}}})))}async function getAudacityMacOSBundleFiles(e){bundle={MacOS:[],Frameworks:{dylib:[]},modules:[],misc:[]};const p=(await getFilesFromDirectoryRecursive(e)).flat(Infinity);p.forEach((e=>{if(e.indexOf("Contents/MacOS")!=-1){bundle.MacOS.push(e)}else if(e.indexOf("Contents/Frameworks")!=-1){const p=d.statSync(e);if(p.isSymbolicLink()){bundle.misc.push(e)}else if(p.isFile()){bundle.Frameworks.dylib.push(e)}else{throw Error("Bundled frameworks are not supported")}}else if(e.indexOf("Contents/modules")!=-1){bundle.modules.push(e)}else{bundle.misc.push(e)}}));return bundle}async function copyFile(e,p){const a=t.dirname(p);if(!d.existsSync(a)){d.mkdirSync(a,{recursive:true})}return d.promises.copyFile(e,p)}async function copyFiles(e,p,a){return helpers.awaitAll(p,(async p=>{const d=t.relative(e,p);return copyFile(p,t.join(a,d))}))}async function listMacosApps(e){apps=[];await listMacosAppsRecursive(e,apps);return apps}e.exports={listDirectory:async e=>(await getFilesFromDirectoryRecursive(e)).flat(Infinity),globFiles:globFiles,listMacosApps:listMacosApps,getAudacityMacOSBundleFiles:getAudacityMacOSBundleFiles,copyFile:copyFile,copyFiles:copyFiles}},5008:(e,p,a)=>{const d=a(2186);const t=a(1514);const i=a(5622);const r=a(1711);const s=process.env["CI"];global.workspaceDir=process.env["GITHUB_WORKSPACE"];global.conanCachePath=i.join(workspaceDir,".conan");function log(e){if(s){d.info(e)}else{console.log(e)}}function error(e){if(s){d.error(e)}else{console.error(e)}}async function execWithLog(e,arguments){if(s){return t.exec(e,arguments)}else{return t.exec(e,arguments,{listeners:{stdout:e=>{log(e.toString())},stderr:e=>{error(e.toString())}}})}}async function getExecOutput(e,arguments){if(s){return t.getExecOutput(e,arguments)}else{return t.getExecOutput(e,arguments,{listeners:{stdout:e=>{log(e.toString())},stderr:e=>{error(e.toString())}}})}}async function awaitAll(e,p){return await Promise.all(e.map((async e=>p(e))))}async function getMD5(e){const p=await fs.promises.readFileSync(e);return r(p)}function getDateString(){const e=new Date;return[e.getFullYear(),("0"+(e.getMonth()+1)).slice(-2),("0"+e.getDate()).slice(-2)].join("")}const sleep=e=>new Promise((p=>setTimeout(p,e)));process.on("unhandledRejection",((e,p)=>{error(e);d.setFailed(err);process.exit(1)})).on("uncaughtException",(e=>{error(e);d.setFailed(e);process.exit(1)}));e.exports={log:log,error:error,execWithLog:execWithLog,getExecOutput:getExecOutput,sleep:sleep,awaitAll:awaitAll,getMD5:getMD5,getDateString:getDateString}},7351:function(e,p,a){"use strict";var d=this&&this.__createBinding||(Object.create?function(e,p,a,d){if(d===undefined)d=a;Object.defineProperty(e,d,{enumerable:true,get:function(){return p[a]}})}:function(e,p,a,d){if(d===undefined)d=a;e[d]=p[a]});var t=this&&this.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:true,value:p})}:function(e,p){e["default"]=p});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))d(p,e,a);t(p,e);return p};Object.defineProperty(p,"__esModule",{value:true});p.issue=p.issueCommand=void 0;const r=i(a(2087));const s=a(5278);function issueCommand(e,p,a){const d=new Command(e,p,a);process.stdout.write(d.toString()+r.EOL)}p.issueCommand=issueCommand;function issue(e,p=""){issueCommand(e,{},p)}p.issue=issue;const l="::";class Command{constructor(e,p,a){if(!e){e="missing.command"}this.command=e;this.properties=p;this.message=a}toString(){let e=l+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let p=true;for(const a in this.properties){if(this.properties.hasOwnProperty(a)){const d=this.properties[a];if(d){if(p){p=false}else{e+=","}e+=`${a}=${escapeProperty(d)}`}}}}e+=`${l}${escapeData(this.message)}`;return e}}function escapeData(e){return s.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return s.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(e,p,a){"use strict";var d=this&&this.__createBinding||(Object.create?function(e,p,a,d){if(d===undefined)d=a;Object.defineProperty(e,d,{enumerable:true,get:function(){return p[a]}})}:function(e,p,a,d){if(d===undefined)d=a;e[d]=p[a]});var t=this&&this.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:true,value:p})}:function(e,p){e["default"]=p});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))d(p,e,a);t(p,e);return p};var r=this&&this.__awaiter||function(e,p,a,d){function adopt(e){return e instanceof a?e:new a((function(p){p(e)}))}return new(a||(a=Promise))((function(a,t){function fulfilled(e){try{step(d.next(e))}catch(e){t(e)}}function rejected(e){try{step(d["throw"](e))}catch(e){t(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((d=d.apply(e,p||[])).next())}))};Object.defineProperty(p,"__esModule",{value:true});p.getIDToken=p.getState=p.saveState=p.group=p.endGroup=p.startGroup=p.info=p.notice=p.warning=p.error=p.debug=p.isDebug=p.setFailed=p.setCommandEcho=p.setOutput=p.getBooleanInput=p.getMultilineInput=p.getInput=p.addPath=p.setSecret=p.exportVariable=p.ExitCode=void 0;const s=a(7351);const l=a(717);const o=a(5278);const n=i(a(2087));const m=i(a(5622));const u=a(8041);var c;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(c=p.ExitCode||(p.ExitCode={}));function exportVariable(e,p){const a=o.toCommandValue(p);process.env[e]=a;const d=process.env["GITHUB_ENV"]||"";if(d){const p="_GitHubActionsFileCommandDelimeter_";const d=`${e}<<${p}${n.EOL}${a}${n.EOL}${p}`;l.issueCommand("ENV",d)}else{s.issueCommand("set-env",{name:e},a)}}p.exportVariable=exportVariable;function setSecret(e){s.issueCommand("add-mask",{},e)}p.setSecret=setSecret;function addPath(e){const p=process.env["GITHUB_PATH"]||"";if(p){l.issueCommand("PATH",e)}else{s.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${m.delimiter}${process.env["PATH"]}`}p.addPath=addPath;function getInput(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}`)}if(p&&p.trimWhitespace===false){return a}return a.trim()}p.getInput=getInput;function getMultilineInput(e,p){const a=getInput(e,p).split("\n").filter((e=>e!==""));return a}p.getMultilineInput=getMultilineInput;function getBooleanInput(e,p){const a=["true","True","TRUE"];const d=["false","False","FALSE"];const t=getInput(e,p);if(a.includes(t))return true;if(d.includes(t))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}p.getBooleanInput=getBooleanInput;function setOutput(e,p){process.stdout.write(n.EOL);s.issueCommand("set-output",{name:e},p)}p.setOutput=setOutput;function setCommandEcho(e){s.issue("echo",e?"on":"off")}p.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=c.Failure;error(e)}p.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}p.isDebug=isDebug;function debug(e){s.issueCommand("debug",{},e)}p.debug=debug;function error(e,p={}){s.issueCommand("error",o.toCommandProperties(p),e instanceof Error?e.toString():e)}p.error=error;function warning(e,p={}){s.issueCommand("warning",o.toCommandProperties(p),e instanceof Error?e.toString():e)}p.warning=warning;function notice(e,p={}){s.issueCommand("notice",o.toCommandProperties(p),e instanceof Error?e.toString():e)}p.notice=notice;function info(e){process.stdout.write(e+n.EOL)}p.info=info;function startGroup(e){s.issue("group",e)}p.startGroup=startGroup;function endGroup(){s.issue("endgroup")}p.endGroup=endGroup;function group(e,p){return r(this,void 0,void 0,(function*(){startGroup(e);let a;try{a=yield p()}finally{endGroup()}return a}))}p.group=group;function saveState(e,p){s.issueCommand("save-state",{name:e},p)}p.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}p.getState=getState;function getIDToken(e){return r(this,void 0,void 0,(function*(){return yield u.OidcClient.getIDToken(e)}))}p.getIDToken=getIDToken},717:function(e,p,a){"use strict";var d=this&&this.__createBinding||(Object.create?function(e,p,a,d){if(d===undefined)d=a;Object.defineProperty(e,d,{enumerable:true,get:function(){return p[a]}})}:function(e,p,a,d){if(d===undefined)d=a;e[d]=p[a]});var t=this&&this.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:true,value:p})}:function(e,p){e["default"]=p});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))d(p,e,a);t(p,e);return p};Object.defineProperty(p,"__esModule",{value:true});p.issueCommand=void 0;const r=i(a(5747));const s=i(a(2087));const l=a(5278);function issueCommand(e,p){const a=process.env[`GITHUB_${e}`];if(!a){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!r.existsSync(a)){throw new Error(`Missing file at path: ${a}`)}r.appendFileSync(a,`${l.toCommandValue(p)}${s.EOL}`,{encoding:"utf8"})}p.issueCommand=issueCommand},8041:function(e,p,a){"use strict";var d=this&&this.__awaiter||function(e,p,a,d){function adopt(e){return e instanceof a?e:new a((function(p){p(e)}))}return new(a||(a=Promise))((function(a,t){function fulfilled(e){try{step(d.next(e))}catch(e){t(e)}}function rejected(e){try{step(d["throw"](e))}catch(e){t(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((d=d.apply(e,p||[])).next())}))};Object.defineProperty(p,"__esModule",{value:true});p.OidcClient=void 0;const t=a(9925);const i=a(3702);const r=a(2186);class OidcClient{static createHttpClient(e=true,p=10){const a={allowRetries:e,maxRetries:p};return new t.HttpClient("actions/oidc-client",[new i.BearerCredentialHandler(OidcClient.getRequestToken())],a)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var p;return d(this,void 0,void 0,(function*(){const a=OidcClient.createHttpClient();const d=yield a.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)}));const t=(p=d.result)===null||p===void 0?void 0:p.value;if(!t){throw new Error("Response json body do not have ID Token field")}return t}))}static getIDToken(e){return d(this,void 0,void 0,(function*(){try{let p=OidcClient.getIDTokenUrl();if(e){const a=encodeURIComponent(e);p=`${p}&audience=${a}`}r.debug(`ID token url is ${p}`);const a=yield OidcClient.getCall(p);r.setSecret(a);return a}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}p.OidcClient=OidcClient},5278:(e,p)=>{"use strict";Object.defineProperty(p,"__esModule",{value:true});p.toCommandProperties=p.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}p.toCommandValue=toCommandValue;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}p.toCommandProperties=toCommandProperties},1514:function(e,p,a){"use strict";var d=this&&this.__createBinding||(Object.create?function(e,p,a,d){if(d===undefined)d=a;Object.defineProperty(e,d,{enumerable:true,get:function(){return p[a]}})}:function(e,p,a,d){if(d===undefined)d=a;e[d]=p[a]});var t=this&&this.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:true,value:p})}:function(e,p){e["default"]=p});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))d(p,e,a);t(p,e);return p};var r=this&&this.__awaiter||function(e,p,a,d){function adopt(e){return e instanceof a?e:new a((function(p){p(e)}))}return new(a||(a=Promise))((function(a,t){function fulfilled(e){try{step(d.next(e))}catch(e){t(e)}}function rejected(e){try{step(d["throw"](e))}catch(e){t(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((d=d.apply(e,p||[])).next())}))};Object.defineProperty(p,"__esModule",{value:true});p.getExecOutput=p.exec=void 0;const s=a(4304);const l=i(a(8159));function exec(e,p,a){return r(this,void 0,void 0,(function*(){const d=l.argStringToArray(e);if(d.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const t=d[0];p=d.slice(1).concat(p||[]);const i=new l.ToolRunner(t,p,a);return i.exec()}))}p.exec=exec;function getExecOutput(e,p,a){var d,t;return r(this,void 0,void 0,(function*(){let i="";let r="";const l=new s.StringDecoder("utf8");const o=new s.StringDecoder("utf8");const n=(d=a===null||a===void 0?void 0:a.listeners)===null||d===void 0?void 0:d.stdout;const m=(t=a===null||a===void 0?void 0:a.listeners)===null||t===void 0?void 0:t.stderr;const stdErrListener=e=>{r+=o.write(e);if(m){m(e)}};const stdOutListener=e=>{i+=l.write(e);if(n){n(e)}};const u=Object.assign(Object.assign({},a===null||a===void 0?void 0:a.listeners),{stdout:stdOutListener,stderr:stdErrListener});const c=yield exec(e,p,Object.assign(Object.assign({},a),{listeners:u}));i+=l.end();r+=o.end();return{exitCode:c,stdout:i,stderr:r}}))}p.getExecOutput=getExecOutput},8159:function(e,p,a){"use strict";var d=this&&this.__createBinding||(Object.create?function(e,p,a,d){if(d===undefined)d=a;Object.defineProperty(e,d,{enumerable:true,get:function(){return p[a]}})}:function(e,p,a,d){if(d===undefined)d=a;e[d]=p[a]});var t=this&&this.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:true,value:p})}:function(e,p){e["default"]=p});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))d(p,e,a);t(p,e);return p};var r=this&&this.__awaiter||function(e,p,a,d){function adopt(e){return e instanceof a?e:new a((function(p){p(e)}))}return new(a||(a=Promise))((function(a,t){function fulfilled(e){try{step(d.next(e))}catch(e){t(e)}}function rejected(e){try{step(d["throw"](e))}catch(e){t(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((d=d.apply(e,p||[])).next())}))};Object.defineProperty(p,"__esModule",{value:true});p.argStringToArray=p.ToolRunner=void 0;const s=i(a(2087));const l=i(a(8614));const o=i(a(3129));const n=i(a(5622));const m=i(a(7436));const u=i(a(1962));const c=a(8213);const f=process.platform==="win32";class ToolRunner extends l.EventEmitter{constructor(e,p,a){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=p||[];this.options=a||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,p){const a=this._getSpawnFileName();const d=this._getSpawnArgs(e);let t=p?"":"[command]";if(f){if(this._isCmdFile()){t+=a;for(const e of d){t+=` ${e}`}}else if(e.windowsVerbatimArguments){t+=`"${a}"`;for(const e of d){t+=` ${e}`}}else{t+=this._windowsQuoteCmdArg(a);for(const e of d){t+=` ${this._windowsQuoteCmdArg(e)}`}}}else{t+=a;for(const e of d){t+=` ${e}`}}return t}_processLineBuffer(e,p,a){try{let d=p+e.toString();let t=d.indexOf(s.EOL);while(t>-1){const e=d.substring(0,t);a(e);d=d.substring(t+s.EOL.length);t=d.indexOf(s.EOL)}return d}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(f){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(f){if(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)}p+='"';return[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=false;for(const d of e){if(p.some((e=>e===d))){a=true;break}}if(!a){return e}let d='"';let t=true;for(let p=e.length;p>0;p--){d+=e[p-1];if(t&&e[p-1]==="\\"){d+="\\"}else if(e[p-1]==='"'){t=true;d+='"'}else{t=false}}d+='"';return d.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='"';let a=true;for(let d=e.length;d>0;d--){p+=e[d-1];if(a&&e[d-1]==="\\"){p+="\\"}else if(e[d-1]==='"'){a=true;p+="\\"}else{a=false}}p+='"';return p.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const p={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};p.outStream=e.outStream||process.stdout;p.errStream=e.errStream||process.stderr;return p}_getSpawnOptions(e,p){e=e||{};const a={};a.cwd=e.cwd;a.env=e.env;a["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){a.argv0=`"${p}"`}return a}exec(){return r(this,void 0,void 0,(function*(){if(!u.isRooted(this.toolPath)&&(this.toolPath.includes("/")||f&&this.toolPath.includes("\\"))){this.toolPath=n.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield m.which(this.toolPath,true);return new Promise(((e,p)=>r(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);if(!a.silent&&a.outStream){a.outStream.write(this._getCommandString(a)+s.EOL)}const d=new ExecState(a,this.toolPath);d.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield u.exists(this.options.cwd))){return p(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const t=this._getSpawnFileName();const i=o.spawn(t,this._getSpawnArgs(a),this._getSpawnOptions(this.options,t));let r="";if(i.stdout){i.stdout.on("data",(e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!a.silent&&a.outStream){a.outStream.write(e)}r=this._processLineBuffer(e,r,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let l="";if(i.stderr){i.stderr.on("data",(e=>{d.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!a.silent&&a.errStream&&a.outStream){const p=a.failOnStdErr?a.errStream:a.outStream;p.write(e)}l=this._processLineBuffer(e,l,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}i.on("error",(e=>{d.processError=e.message;d.processExited=true;d.processClosed=true;d.CheckComplete()}));i.on("exit",(e=>{d.processExitCode=e;d.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);d.CheckComplete()}));i.on("close",(e=>{d.processExitCode=e;d.processExited=true;d.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);d.CheckComplete()}));d.on("done",((a,d)=>{if(r.length>0){this.emit("stdline",r)}if(l.length>0){this.emit("errline",l)}i.removeAllListeners();if(a){p(a)}else{e(d)}}));if(this.options.input){if(!i.stdin){throw new Error("child process missing stdin")}i.stdin.end(this.options.input)}}))))}))}}p.ToolRunner=ToolRunner;function argStringToArray(e){const p=[];let a=false;let d=false;let t="";function append(e){if(d&&e!=='"'){t+="\\"}t+=e;d=false}for(let i=0;i0){p.push(t);t=""}continue}append(r)}if(t.length>0){p.push(t.trim())}return p}p.argStringToArray=argStringToArray;class ExecState extends l.EventEmitter{constructor(e,p){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!p){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=p;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=c.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(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}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}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()}}},8090:function(e,p,a){"use strict";var d=this&&this.__awaiter||function(e,p,a,d){function adopt(e){return e instanceof a?e:new a((function(p){p(e)}))}return new(a||(a=Promise))((function(a,t){function fulfilled(e){try{step(d.next(e))}catch(e){t(e)}}function rejected(e){try{step(d["throw"](e))}catch(e){t(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((d=d.apply(e,p||[])).next())}))};Object.defineProperty(p,"__esModule",{value:true});p.hashFiles=p.create=void 0;const t=a(8298);const i=a(2448);function create(e,p){return d(this,void 0,void 0,(function*(){return yield t.DefaultGlobber.create(e,p)}))}p.create=create;function hashFiles(e,p){return d(this,void 0,void 0,(function*(){let a=true;if(p&&typeof p.followSymbolicLinks==="boolean"){a=p.followSymbolicLinks}const d=yield create(e,{followSymbolicLinks:a});return i.hashFiles(d)}))}p.hashFiles=hashFiles},1026:function(e,p,a){"use strict";var d=this&&this.__createBinding||(Object.create?function(e,p,a,d){if(d===undefined)d=a;Object.defineProperty(e,d,{enumerable:true,get:function(){return p[a]}})}:function(e,p,a,d){if(d===undefined)d=a;e[d]=p[a]});var t=this&&this.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:true,value:p})}:function(e,p){e["default"]=p});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))d(p,e,a);t(p,e);return p};Object.defineProperty(p,"__esModule",{value:true});p.getOptions=void 0;const r=i(a(2186));function getOptions(e){const p={followSymbolicLinks:true,implicitDescendants:true,matchDirectories:true,omitBrokenSymbolicLinks:true};if(e){if(typeof e.followSymbolicLinks==="boolean"){p.followSymbolicLinks=e.followSymbolicLinks;r.debug(`followSymbolicLinks '${p.followSymbolicLinks}'`)}if(typeof e.implicitDescendants==="boolean"){p.implicitDescendants=e.implicitDescendants;r.debug(`implicitDescendants '${p.implicitDescendants}'`)}if(typeof e.matchDirectories==="boolean"){p.matchDirectories=e.matchDirectories;r.debug(`matchDirectories '${p.matchDirectories}'`)}if(typeof e.omitBrokenSymbolicLinks==="boolean"){p.omitBrokenSymbolicLinks=e.omitBrokenSymbolicLinks;r.debug(`omitBrokenSymbolicLinks '${p.omitBrokenSymbolicLinks}'`)}}return p}p.getOptions=getOptions},8298:function(e,p,a){"use strict";var d=this&&this.__createBinding||(Object.create?function(e,p,a,d){if(d===undefined)d=a;Object.defineProperty(e,d,{enumerable:true,get:function(){return p[a]}})}:function(e,p,a,d){if(d===undefined)d=a;e[d]=p[a]});var t=this&&this.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:true,value:p})}:function(e,p){e["default"]=p});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))d(p,e,a);t(p,e);return p};var r=this&&this.__awaiter||function(e,p,a,d){function adopt(e){return e instanceof a?e:new a((function(p){p(e)}))}return new(a||(a=Promise))((function(a,t){function fulfilled(e){try{step(d.next(e))}catch(e){t(e)}}function rejected(e){try{step(d["throw"](e))}catch(e){t(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((d=d.apply(e,p||[])).next())}))};var s=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var p=e[Symbol.asyncIterator],a;return p?p.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),a={},verb("next"),verb("throw"),verb("return"),a[Symbol.asyncIterator]=function(){return this},a);function verb(p){a[p]=e[p]&&function(a){return new Promise((function(d,t){a=e[p](a),settle(d,t,a.done,a.value)}))}}function settle(e,p,a,d){Promise.resolve(d).then((function(p){e({value:p,done:a})}),p)}};var l=this&&this.__await||function(e){return this instanceof l?(this.v=e,this):new l(e)};var o=this&&this.__asyncGenerator||function(e,p,a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var d=a.apply(e,p||[]),t,i=[];return t={},verb("next"),verb("throw"),verb("return"),t[Symbol.asyncIterator]=function(){return this},t;function verb(e){if(d[e])t[e]=function(p){return new Promise((function(a,d){i.push([e,p,a,d])>1||resume(e,p)}))}}function resume(e,p){try{step(d[e](p))}catch(e){settle(i[0][3],e)}}function step(e){e.value instanceof l?Promise.resolve(e.value.v).then(fulfill,reject):settle(i[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,p){if(e(p),i.shift(),i.length)resume(i[0][0],i[0][1])}};Object.defineProperty(p,"__esModule",{value:true});p.DefaultGlobber=void 0;const n=i(a(2186));const m=i(a(5747));const u=i(a(1026));const c=i(a(5622));const f=i(a(9005));const h=a(1063);const v=a(4536);const w=a(9117);const g=process.platform==="win32";class DefaultGlobber{constructor(e){this.patterns=[];this.searchPaths=[];this.options=u.getOptions(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){var e,p;return r(this,void 0,void 0,(function*(){const a=[];try{for(var d=s(this.globGenerator()),t;t=yield d.next(),!t.done;){const e=t.value;a.push(e)}}catch(p){e={error:p}}finally{try{if(t&&!t.done&&(p=d.return))yield p.call(d)}finally{if(e)throw e.error}}return a}))}globGenerator(){return o(this,arguments,(function*globGenerator_1(){const e=u.getOptions(this.options);const p=[];for(const a of this.patterns){p.push(a);if(e.implicitDescendants&&(a.trailingSeparator||a.segments[a.segments.length-1]!=="**")){p.push(new v.Pattern(a.negate,true,a.segments.concat("**")))}}const a=[];for(const e of f.getSearchPaths(p)){n.debug(`Search path '${e}'`);try{yield l(m.promises.lstat(e))}catch(e){if(e.code==="ENOENT"){continue}throw e}a.unshift(new w.SearchState(e,1))}const d=[];while(a.length){const t=a.pop();const i=f.match(p,t.path);const r=!!i||f.partialMatch(p,t.path);if(!i&&!r){continue}const s=yield l(DefaultGlobber.stat(t,e,d));if(!s){continue}if(s.isDirectory()){if(i&h.MatchKind.Directory&&e.matchDirectories){yield yield l(t.path)}else if(!r){continue}const p=t.level+1;const d=(yield l(m.promises.readdir(t.path))).map((e=>new w.SearchState(c.join(t.path,e),p)));a.push(...d.reverse())}else if(i&h.MatchKind.File){yield yield l(t.path)}}}))}static create(e,p){return r(this,void 0,void 0,(function*(){const a=new DefaultGlobber(p);if(g){e=e.replace(/\r\n/g,"\n");e=e.replace(/\r/g,"\n")}const d=e.split("\n").map((e=>e.trim()));for(const e of d){if(!e||e.startsWith("#")){continue}else{a.patterns.push(new v.Pattern(e))}}a.searchPaths.push(...f.getSearchPaths(a.patterns));return a}))}static stat(e,p,a){return r(this,void 0,void 0,(function*(){let d;if(p.followSymbolicLinks){try{d=yield m.promises.stat(e.path)}catch(a){if(a.code==="ENOENT"){if(p.omitBrokenSymbolicLinks){n.debug(`Broken symlink '${e.path}'`);return undefined}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw a}}else{d=yield m.promises.lstat(e.path)}if(d.isDirectory()&&p.followSymbolicLinks){const p=yield m.promises.realpath(e.path);while(a.length>=e.level){a.pop()}if(a.some((e=>e===p))){n.debug(`Symlink cycle detected for path '${e.path}' and realpath '${p}'`);return undefined}a.push(p)}return d}))}}p.DefaultGlobber=DefaultGlobber},2448:function(e,p,a){"use strict";var d=this&&this.__createBinding||(Object.create?function(e,p,a,d){if(d===undefined)d=a;Object.defineProperty(e,d,{enumerable:true,get:function(){return p[a]}})}:function(e,p,a,d){if(d===undefined)d=a;e[d]=p[a]});var t=this&&this.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:true,value:p})}:function(e,p){e["default"]=p});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))d(p,e,a);t(p,e);return p};var r=this&&this.__awaiter||function(e,p,a,d){function adopt(e){return e instanceof a?e:new a((function(p){p(e)}))}return new(a||(a=Promise))((function(a,t){function fulfilled(e){try{step(d.next(e))}catch(e){t(e)}}function rejected(e){try{step(d["throw"](e))}catch(e){t(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((d=d.apply(e,p||[])).next())}))};var s=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var p=e[Symbol.asyncIterator],a;return p?p.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),a={},verb("next"),verb("throw"),verb("return"),a[Symbol.asyncIterator]=function(){return this},a);function verb(p){a[p]=e[p]&&function(a){return new Promise((function(d,t){a=e[p](a),settle(d,t,a.done,a.value)}))}}function settle(e,p,a,d){Promise.resolve(d).then((function(p){e({value:p,done:a})}),p)}};Object.defineProperty(p,"__esModule",{value:true});p.hashFiles=void 0;const l=i(a(6417));const o=i(a(2186));const n=i(a(5747));const m=i(a(2413));const u=i(a(1669));const c=i(a(5622));function hashFiles(e){var p,a;var d;return r(this,void 0,void 0,(function*(){let t=false;const i=(d=process.env["GITHUB_WORKSPACE"])!==null&&d!==void 0?d:process.cwd();const r=l.createHash("sha256");let f=0;try{for(var h=s(e.globGenerator()),v;v=yield h.next(),!v.done;){const e=v.value;o.debug(e);if(!e.startsWith(`${i}${c.sep}`)){o.debug(`Ignore '${e}' since it is not under GITHUB_WORKSPACE.`);continue}if(n.statSync(e).isDirectory()){o.debug(`Skip directory '${e}'.`);continue}const p=l.createHash("sha256");const a=u.promisify(m.pipeline);yield a(n.createReadStream(e),p);r.write(p.digest());f++;if(!t){t=true}}}catch(e){p={error:e}}finally{try{if(v&&!v.done&&(a=h.return))yield a.call(h)}finally{if(p)throw p.error}}r.end();if(t){o.debug(`Found ${f} files to hash.`);return r.digest("hex")}else{o.debug(`No matches found for glob`);return""}}))}p.hashFiles=hashFiles},1063:(e,p)=>{"use strict";Object.defineProperty(p,"__esModule",{value:true});p.MatchKind=void 0;var a;(function(e){e[e["None"]=0]="None";e[e["Directory"]=1]="Directory";e[e["File"]=2]="File";e[e["All"]=3]="All"})(a=p.MatchKind||(p.MatchKind={}))},1849:function(e,p,a){"use strict";var d=this&&this.__createBinding||(Object.create?function(e,p,a,d){if(d===undefined)d=a;Object.defineProperty(e,d,{enumerable:true,get:function(){return p[a]}})}:function(e,p,a,d){if(d===undefined)d=a;e[d]=p[a]});var t=this&&this.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:true,value:p})}:function(e,p){e["default"]=p});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))d(p,e,a);t(p,e);return p};var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(p,"__esModule",{value:true});p.safeTrimTrailingSeparator=p.normalizeSeparators=p.hasRoot=p.hasAbsoluteRoot=p.ensureAbsoluteRoot=p.dirname=void 0;const s=i(a(5622));const l=r(a(2357));const o=process.platform==="win32";function dirname(e){e=safeTrimTrailingSeparator(e);if(o&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(e)){return e}let p=s.dirname(e);if(o&&/^\\\\[^\\]+\\[^\\]+\\$/.test(p)){p=safeTrimTrailingSeparator(p)}return p}p.dirname=dirname;function ensureAbsoluteRoot(e,p){l.default(e,`ensureAbsoluteRoot parameter 'root' must not be empty`);l.default(p,`ensureAbsoluteRoot parameter 'itemPath' must not be empty`);if(hasAbsoluteRoot(p)){return p}if(o){if(p.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let e=process.cwd();l.default(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);if(p[0].toUpperCase()===e[0].toUpperCase()){if(p.length===2){return`${p[0]}:\\${e.substr(3)}`}else{if(!e.endsWith("\\")){e+="\\"}return`${p[0]}:\\${e.substr(3)}${p.substr(2)}`}}else{return`${p[0]}:\\${p.substr(2)}`}}else if(normalizeSeparators(p).match(/^\\$|^\\[^\\]/)){const e=process.cwd();l.default(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);return`${e[0]}:\\${p.substr(1)}`}}l.default(hasAbsoluteRoot(e),`ensureAbsoluteRoot parameter 'root' must have an absolute root`);if(e.endsWith("/")||o&&e.endsWith("\\")){}else{e+=s.sep}return e+p}p.ensureAbsoluteRoot=ensureAbsoluteRoot;function hasAbsoluteRoot(e){l.default(e,`hasAbsoluteRoot parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(o){return e.startsWith("\\\\")||/^[A-Z]:\\/i.test(e)}return e.startsWith("/")}p.hasAbsoluteRoot=hasAbsoluteRoot;function hasRoot(e){l.default(e,`isRooted parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(o){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}p.hasRoot=hasRoot;function normalizeSeparators(e){e=e||"";if(o){e=e.replace(/\//g,"\\");const p=/^\\\\+[^\\]/.test(e);return(p?"\\":"")+e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}p.normalizeSeparators=normalizeSeparators;function safeTrimTrailingSeparator(e){if(!e){return""}e=normalizeSeparators(e);if(!e.endsWith(s.sep)){return e}if(e===s.sep){return e}if(o&&/^[A-Z]:\\$/i.test(e)){return e}return e.substr(0,e.length-1)}p.safeTrimTrailingSeparator=safeTrimTrailingSeparator},6836:function(e,p,a){"use strict";var d=this&&this.__createBinding||(Object.create?function(e,p,a,d){if(d===undefined)d=a;Object.defineProperty(e,d,{enumerable:true,get:function(){return p[a]}})}:function(e,p,a,d){if(d===undefined)d=a;e[d]=p[a]});var t=this&&this.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:true,value:p})}:function(e,p){e["default"]=p});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))d(p,e,a);t(p,e);return p};var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(p,"__esModule",{value:true});p.Path=void 0;const s=i(a(5622));const l=i(a(1849));const o=r(a(2357));const n=process.platform==="win32";class Path{constructor(e){this.segments=[];if(typeof e==="string"){o.default(e,`Parameter 'itemPath' must not be empty`);e=l.safeTrimTrailingSeparator(e);if(!l.hasRoot(e)){this.segments=e.split(s.sep)}else{let p=e;let a=l.dirname(p);while(a!==p){const e=s.basename(p);this.segments.unshift(e);p=a;a=l.dirname(p)}this.segments.unshift(p)}}else{o.default(e.length>0,`Parameter 'itemPath' must not be an empty array`);for(let p=0;p!e.negate));const p={};for(const a of e){const e=l?a.searchPath.toUpperCase():a.searchPath;p[e]="candidate"}const a=[];for(const d of e){const e=l?d.searchPath.toUpperCase():d.searchPath;if(p[e]==="included"){continue}let t=false;let i=e;let s=r.dirname(i);while(s!==i){if(p[s]){t=true;break}i=s;s=r.dirname(i)}if(!t){a.push(d.searchPath);p[e]="included"}}return a}p.getSearchPaths=getSearchPaths;function match(e,p){let a=s.MatchKind.None;for(const d of e){if(d.negate){a&=~d.match(p)}else{a|=d.match(p)}}return a}p.match=match;function partialMatch(e,p){return e.some((e=>!e.negate&&e.partialMatch(p)))}p.partialMatch=partialMatch},4536:function(e,p,a){"use strict";var d=this&&this.__createBinding||(Object.create?function(e,p,a,d){if(d===undefined)d=a;Object.defineProperty(e,d,{enumerable:true,get:function(){return p[a]}})}:function(e,p,a,d){if(d===undefined)d=a;e[d]=p[a]});var t=this&&this.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:true,value:p})}:function(e,p){e["default"]=p});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))d(p,e,a);t(p,e);return p};var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(p,"__esModule",{value:true});p.Pattern=void 0;const s=i(a(2087));const l=i(a(5622));const o=i(a(1849));const n=r(a(2357));const m=a(3973);const u=a(1063);const c=a(6836);const f=process.platform==="win32";class Pattern{constructor(e,p=false,a,d){this.negate=false;let t;if(typeof e==="string"){t=e.trim()}else{a=a||[];n.default(a.length,`Parameter 'segments' must not empty`);const p=Pattern.getLiteral(a[0]);n.default(p&&o.hasAbsoluteRoot(p),`Parameter 'segments' first element must be a root path`);t=new c.Path(a).toString().trim();if(e){t=`!${t}`}}while(t.startsWith("!")){this.negate=!this.negate;t=t.substr(1).trim()}t=Pattern.fixupPattern(t,d);this.segments=new c.Path(t).segments;this.trailingSeparator=o.normalizeSeparators(t).endsWith(l.sep);t=o.safeTrimTrailingSeparator(t);let i=false;const r=this.segments.map((e=>Pattern.getLiteral(e))).filter((e=>!i&&!(i=e==="")));this.searchPath=new c.Path(r).toString();this.rootRegExp=new RegExp(Pattern.regExpEscape(r[0]),f?"i":"");this.isImplicitPattern=p;const s={dot:true,nobrace:true,nocase:f,nocomment:true,noext:true,nonegate:true};t=f?t.replace(/\\/g,"/"):t;this.minimatch=new m.Minimatch(t,s)}match(e){if(this.segments[this.segments.length-1]==="**"){e=o.normalizeSeparators(e);if(!e.endsWith(l.sep)&&this.isImplicitPattern===false){e=`${e}${l.sep}`}}else{e=o.safeTrimTrailingSeparator(e)}if(this.minimatch.match(e)){return this.trailingSeparator?u.MatchKind.Directory:u.MatchKind.All}return u.MatchKind.None}partialMatch(e){e=o.safeTrimTrailingSeparator(e);if(o.dirname(e)===e){return this.rootRegExp.test(e)}return this.minimatch.matchOne(e.split(f?/\\+/:/\/+/),this.minimatch.set[0],true)}static globEscape(e){return(f?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,p){n.default(e,"pattern cannot be empty");const a=new c.Path(e).segments.map((e=>Pattern.getLiteral(e)));n.default(a.every(((e,p)=>(e!=="."||p===0)&&e!=="..")),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`);n.default(!o.hasRoot(e)||a[0],`Invalid pattern '${e}'. Root segment must not contain globs.`);e=o.normalizeSeparators(e);if(e==="."||e.startsWith(`.${l.sep}`)){e=Pattern.globEscape(process.cwd())+e.substr(1)}else if(e==="~"||e.startsWith(`~${l.sep}`)){p=p||s.homedir();n.default(p,"Unable to determine HOME directory");n.default(o.hasAbsoluteRoot(p),`Expected HOME directory to be a rooted path. Actual '${p}'`);e=Pattern.globEscape(p)+e.substr(1)}else if(f&&(e.match(/^[A-Z]:$/i)||e.match(/^[A-Z]:[^\\]/i))){let p=o.ensureAbsoluteRoot("C:\\dummy-root",e.substr(0,2));if(e.length>2&&!p.endsWith("\\")){p+="\\"}e=Pattern.globEscape(p)+e.substr(2)}else if(f&&(e==="\\"||e.match(/^\\[^\\]/))){let p=o.ensureAbsoluteRoot("C:\\dummy-root","\\");if(!p.endsWith("\\")){p+="\\"}e=Pattern.globEscape(p)+e.substr(1)}else{e=o.ensureAbsoluteRoot(Pattern.globEscape(process.cwd()),e)}return o.normalizeSeparators(e)}static getLiteral(e){let p="";for(let a=0;a=0){if(d.length>1){return""}if(d){p+=d;a=t;continue}}}p+=d}return p}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,"\\$&")}}p.Pattern=Pattern},9117:(e,p)=>{"use strict";Object.defineProperty(p,"__esModule",{value:true});p.SearchState=void 0;class SearchState{constructor(e,p){this.path=e;this.level=p}}p.SearchState=SearchState},3702:(e,p)=>{"use strict";Object.defineProperty(p,"__esModule",{value:true});class BasicCredentialHandler{constructor(e,p){this.username=e;this.password=p}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from(this.username+":"+this.password).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,p,a){return null}}p.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Bearer "+this.token}canHandleAuthentication(e){return false}handleAuthentication(e,p,a){return null}}p.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from("PAT:"+this.token).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,p,a){return null}}p.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},9925:(e,p,a)=>{"use strict";Object.defineProperty(p,"__esModule",{value:true});const d=a(8605);const t=a(7211);const i=a(6443);let r;var 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"})(s=p.HttpCodes||(p.HttpCodes={}));var l;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(l=p.Headers||(p.Headers={}));var o;(function(e){e["ApplicationJson"]="application/json"})(o=p.MediaTypes||(p.MediaTypes={}));function getProxyUrl(e){let p=i.getProxyUrl(new URL(e));return p?p.href:""}p.getProxyUrl=getProxyUrl;const n=[s.MovedPermanently,s.ResourceMoved,s.SeeOther,s.TemporaryRedirect,s.PermanentRedirect];const m=[s.BadGateway,s.ServiceUnavailable,s.GatewayTimeout];const u=["OPTIONS","GET","DELETE","HEAD"];const c=10;const f=5;class HttpClientError extends Error{constructor(e,p){super(e);this.name="HttpClientError";this.statusCode=p;Object.setPrototypeOf(this,HttpClientError.prototype)}}p.HttpClientError=HttpClientError;class HttpClientResponse{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())}))}))}}p.HttpClientResponse=HttpClientResponse;function isHttps(e){let p=new URL(e);return p.protocol==="https:"}p.isHttps=isHttps;class HttpClient{constructor(e,p,a){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=p||[];this.requestOptions=a;if(a){if(a.ignoreSslError!=null){this._ignoreSslError=a.ignoreSslError}this._socketTimeout=a.socketTimeout;if(a.allowRedirects!=null){this._allowRedirects=a.allowRedirects}if(a.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=a.allowRedirectDowngrade}if(a.maxRedirects!=null){this._maxRedirects=Math.max(a.maxRedirects,0)}if(a.keepAlive!=null){this._keepAlive=a.keepAlive}if(a.allowRetries!=null){this._allowRetries=a.allowRetries}if(a.maxRetries!=null){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,d){return this.request(e,p,a,d)}async getJson(e,p={}){p[l.Accept]=this._getExistingOrDefaultHeader(p,l.Accept,o.ApplicationJson);let a=await this.get(e,p);return this._processResponse(a,this.requestOptions)}async postJson(e,p,a={}){let d=JSON.stringify(p,null,2);a[l.Accept]=this._getExistingOrDefaultHeader(a,l.Accept,o.ApplicationJson);a[l.ContentType]=this._getExistingOrDefaultHeader(a,l.ContentType,o.ApplicationJson);let t=await this.post(e,d,a);return this._processResponse(t,this.requestOptions)}async putJson(e,p,a={}){let d=JSON.stringify(p,null,2);a[l.Accept]=this._getExistingOrDefaultHeader(a,l.Accept,o.ApplicationJson);a[l.ContentType]=this._getExistingOrDefaultHeader(a,l.ContentType,o.ApplicationJson);let t=await this.put(e,d,a);return this._processResponse(t,this.requestOptions)}async patchJson(e,p,a={}){let d=JSON.stringify(p,null,2);a[l.Accept]=this._getExistingOrDefaultHeader(a,l.Accept,o.ApplicationJson);a[l.ContentType]=this._getExistingOrDefaultHeader(a,l.ContentType,o.ApplicationJson);let t=await this.patch(e,d,a);return this._processResponse(t,this.requestOptions)}async request(e,p,a,d){if(this._disposed){throw new Error("Client has already been disposed.")}let t=new URL(p);let i=this._prepareRequest(e,t,d);let r=this._allowRetries&&u.indexOf(e)!=-1?this._maxRetries+1:1;let l=0;let o;while(l0){const r=o.message.headers["location"];if(!r){break}let s=new URL(r);if(t.protocol=="https:"&&t.protocol!=s.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}await o.readBody();if(s.hostname!==t.hostname){for(let e in d){if(e.toLowerCase()==="authorization"){delete d[e]}}}i=this._prepareRequest(e,s,d);o=await this.requestRaw(i,a);p--}if(m.indexOf(o.message.statusCode)==-1){return o}l+=1;if(l{let callbackForResult=function(e,p){if(e){d(e)}a(p)};this.requestRawWithCallback(e,p,callbackForResult)}))}requestRawWithCallback(e,p,a){let d;if(typeof p==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(p,"utf8")}let t=false;let handleResult=(e,p)=>{if(!t){t=true;a(e,p)}};let i=e.httpModule.request(e.options,(e=>{let p=new HttpClientResponse(e);handleResult(null,p)}));i.on("socket",(e=>{d=e}));i.setTimeout(this._socketTimeout||3*6e4,(()=>{if(d){d.end()}handleResult(new Error("Request timeout: "+e.options.path),null)}));i.on("error",(function(e){handleResult(e,null)}));if(p&&typeof p==="string"){i.write(p,"utf8")}if(p&&typeof p!=="string"){p.on("close",(function(){i.end()}));p.pipe(i)}else{i.end()}}getAgent(e){let p=new URL(e);return this._getAgent(p)}_prepareRequest(e,p,a){const i={};i.parsedUrl=p;const r=i.parsedUrl.protocol==="https:";i.httpModule=r?t:d;const s=r?443:80;i.options={};i.options.host=i.parsedUrl.hostname;i.options.port=i.parsedUrl.port?parseInt(i.parsedUrl.port):s;i.options.path=(i.parsedUrl.pathname||"")+(i.parsedUrl.search||"");i.options.method=e;i.options.headers=this._mergeHeaders(a);if(this.userAgent!=null){i.options.headers["user-agent"]=this.userAgent}i.options.agent=this._getAgent(i.parsedUrl);if(this.handlers){this.handlers.forEach((e=>{e.prepareRequest(i.options)}))}return i}_mergeHeaders(e){const lowercaseKeys=e=>Object.keys(e).reduce(((p,a)=>(p[a.toLowerCase()]=e[a],p)),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,p,a){const lowercaseKeys=e=>Object.keys(e).reduce(((p,a)=>(p[a.toLowerCase()]=e[a],p)),{});let d;if(this.requestOptions&&this.requestOptions.headers){d=lowercaseKeys(this.requestOptions.headers)[p]}return e[p]||d||a}_getAgent(e){let p;let s=i.getProxyUrl(e);let l=s&&s.hostname;if(this._keepAlive&&l){p=this._proxyAgent}if(this._keepAlive&&!l){p=this._agent}if(!!p){return p}const o=e.protocol==="https:";let n=100;if(!!this.requestOptions){n=this.requestOptions.maxSockets||d.globalAgent.maxSockets}if(l){if(!r){r=a(4294)}const e={maxSockets:n,keepAlive:this._keepAlive,proxy:{...(s.username||s.password)&&{proxyAuth:`${s.username}:${s.password}`},host:s.hostname,port:s.port}};let d;const t=s.protocol==="https:";if(o){d=t?r.httpsOverHttps:r.httpsOverHttp}else{d=t?r.httpOverHttps:r.httpOverHttp}p=d(e);this._proxyAgent=p}if(this._keepAlive&&!p){const e={keepAlive:this._keepAlive,maxSockets:n};p=o?new t.Agent(e):new d.Agent(e);this._agent=p}if(!p){p=o?t.globalAgent:d.globalAgent}if(o&&this._ignoreSslError){p.options=Object.assign(p.options||{},{rejectUnauthorized:false})}return p}_performExponentialBackoff(e){e=Math.min(c,e);const p=f*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),p)))}static dateTimeDeserializer(e,p){if(typeof p==="string"){let e=new Date(p);if(!isNaN(e.valueOf())){return e}}return p}async _processResponse(e,p){return new Promise((async(a,d)=>{const t=e.message.statusCode;const i={statusCode:t,result:null,headers:{}};if(t==s.NotFound){a(i)}let r;let l;try{l=await e.readBody();if(l&&l.length>0){if(p&&p.deserializeDates){r=JSON.parse(l,HttpClient.dateTimeDeserializer)}else{r=JSON.parse(l)}i.result=r}i.headers=e.message.headers}catch(e){}if(t>299){let e;if(r&&r.message){e=r.message}else if(l&&l.length>0){e=l}else{e="Failed request: ("+t+")"}let p=new HttpClientError(e,t);p.result=i.result;d(p)}else{a(i)}}))}}p.HttpClient=HttpClient},6443:(e,p)=>{"use strict";Object.defineProperty(p,"__esModule",{value:true});function getProxyUrl(e){let p=e.protocol==="https:";let a;if(checkBypass(e)){return a}let d;if(p){d=process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{d=process.env["http_proxy"]||process.env["HTTP_PROXY"]}if(d){a=new URL(d)}return a}p.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}let p=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!p){return false}let a;if(e.port){a=Number(e.port)}else if(e.protocol==="http:"){a=80}else if(e.protocol==="https:"){a=443}let d=[e.hostname.toUpperCase()];if(typeof a==="number"){d.push(`${d[0]}:${a}`)}for(let e of p.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(d.some((p=>p===e))){return true}}return false}p.checkBypass=checkBypass},1962:function(e,p,a){"use strict";var d=this&&this.__createBinding||(Object.create?function(e,p,a,d){if(d===undefined)d=a;Object.defineProperty(e,d,{enumerable:true,get:function(){return p[a]}})}:function(e,p,a,d){if(d===undefined)d=a;e[d]=p[a]});var t=this&&this.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:true,value:p})}:function(e,p){e["default"]=p});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))d(p,e,a);t(p,e);return p};var r=this&&this.__awaiter||function(e,p,a,d){function adopt(e){return e instanceof a?e:new a((function(p){p(e)}))}return new(a||(a=Promise))((function(a,t){function fulfilled(e){try{step(d.next(e))}catch(e){t(e)}}function rejected(e){try{step(d["throw"](e))}catch(e){t(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((d=d.apply(e,p||[])).next())}))};var s;Object.defineProperty(p,"__esModule",{value:true});p.getCmdPath=p.tryGetExecutablePath=p.isRooted=p.isDirectory=p.exists=p.IS_WINDOWS=p.unlink=p.symlink=p.stat=p.rmdir=p.rename=p.readlink=p.readdir=p.mkdir=p.lstat=p.copyFile=p.chmod=void 0;const l=i(a(5747));const o=i(a(5622));s=l.promises,p.chmod=s.chmod,p.copyFile=s.copyFile,p.lstat=s.lstat,p.mkdir=s.mkdir,p.readdir=s.readdir,p.readlink=s.readlink,p.rename=s.rename,p.rmdir=s.rmdir,p.stat=s.stat,p.symlink=s.symlink,p.unlink=s.unlink;p.IS_WINDOWS=process.platform==="win32";function exists(e){return r(this,void 0,void 0,(function*(){try{yield p.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}p.exists=exists;function isDirectory(e,a=false){return r(this,void 0,void 0,(function*(){const d=a?yield p.stat(e):yield p.lstat(e);return d.isDirectory()}))}p.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(p.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}p.isRooted=isRooted;function tryGetExecutablePath(e,a){return r(this,void 0,void 0,(function*(){let d=undefined;try{d=yield p.stat(e)}catch(p){if(p.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${p}`)}}if(d&&d.isFile()){if(p.IS_WINDOWS){const p=o.extname(e).toUpperCase();if(a.some((e=>e.toUpperCase()===p))){return e}}else{if(isUnixExecutable(d)){return e}}}const t=e;for(const i of a){e=t+i;d=undefined;try{d=yield p.stat(e)}catch(p){if(p.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${p}`)}}if(d&&d.isFile()){if(p.IS_WINDOWS){try{const a=o.dirname(e);const d=o.basename(e).toUpperCase();for(const t of yield p.readdir(a)){if(d===t.toUpperCase()){e=o.join(a,t);break}}}catch(p){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${p}`)}return e}else{if(isUnixExecutable(d)){return e}}}}return""}))}p.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(p.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}function getCmdPath(){var e;return(e=process.env["COMSPEC"])!==null&&e!==void 0?e:`cmd.exe`}p.getCmdPath=getCmdPath},7436:function(e,p,a){"use strict";var d=this&&this.__createBinding||(Object.create?function(e,p,a,d){if(d===undefined)d=a;Object.defineProperty(e,d,{enumerable:true,get:function(){return p[a]}})}:function(e,p,a,d){if(d===undefined)d=a;e[d]=p[a]});var t=this&&this.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:true,value:p})}:function(e,p){e["default"]=p});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))d(p,e,a);t(p,e);return p};var r=this&&this.__awaiter||function(e,p,a,d){function adopt(e){return e instanceof a?e:new a((function(p){p(e)}))}return new(a||(a=Promise))((function(a,t){function fulfilled(e){try{step(d.next(e))}catch(e){t(e)}}function rejected(e){try{step(d["throw"](e))}catch(e){t(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((d=d.apply(e,p||[])).next())}))};Object.defineProperty(p,"__esModule",{value:true});p.findInPath=p.which=p.mkdirP=p.rmRF=p.mv=p.cp=void 0;const s=a(2357);const l=i(a(3129));const o=i(a(5622));const n=a(1669);const m=i(a(1962));const u=n.promisify(l.exec);const c=n.promisify(l.execFile);function cp(e,p,a={}){return r(this,void 0,void 0,(function*(){const{force:d,recursive:t,copySourceDirectory:i}=readCopyOptions(a);const r=(yield m.exists(p))?yield m.stat(p):null;if(r&&r.isFile()&&!d){return}const s=r&&r.isDirectory()&&i?o.join(p,o.basename(e)):p;if(!(yield m.exists(e))){throw new Error(`no such file or directory: ${e}`)}const l=yield m.stat(e);if(l.isDirectory()){if(!t){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,s,0,d)}}else{if(o.relative(e,s)===""){throw new Error(`'${s}' and '${e}' are the same file`)}yield copyFile(e,s,d)}}))}p.cp=cp;function mv(e,p,a={}){return r(this,void 0,void 0,(function*(){if(yield m.exists(p)){let d=true;if(yield m.isDirectory(p)){p=o.join(p,o.basename(e));d=yield m.exists(p)}if(d){if(a.force==null||a.force){yield rmRF(p)}else{throw new Error("Destination already exists")}}}yield mkdirP(o.dirname(p));yield m.rename(e,p)}))}p.mv=mv;function rmRF(e){return r(this,void 0,void 0,(function*(){if(m.IS_WINDOWS){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}try{const p=m.getCmdPath();if(yield m.isDirectory(e,true)){yield u(`${p} /s /c "rd /s /q "%inputPath%""`,{env:{inputPath:e}})}else{yield u(`${p} /s /c "del /f /a "%inputPath%""`,{env:{inputPath:e}})}}catch(e){if(e.code!=="ENOENT")throw e}try{yield m.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let p=false;try{p=yield m.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(p){yield c(`rm`,[`-rf`,`${e}`])}else{yield m.unlink(e)}}}))}p.rmRF=rmRF;function mkdirP(e){return r(this,void 0,void 0,(function*(){s.ok(e,"a path argument must be provided");yield m.mkdir(e,{recursive:true})}))}p.mkdirP=mkdirP;function which(e,p){return r(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(p){const p=yield which(e,false);if(!p){if(m.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. 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.`)}else{throw new Error(`Unable to locate executable file: ${e}. 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 p}const a=yield findInPath(e);if(a&&a.length>0){return a[0]}return""}))}p.which=which;function findInPath(e){return r(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const p=[];if(m.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(o.delimiter)){if(e){p.push(e)}}}if(m.isRooted(e)){const a=yield m.tryGetExecutablePath(e,p);if(a){return[a]}return[]}if(e.includes(o.sep)){return[]}const a=[];if(process.env.PATH){for(const e of process.env.PATH.split(o.delimiter)){if(e){a.push(e)}}}const d=[];for(const t of a){const a=yield m.tryGetExecutablePath(o.join(t,e),p);if(a){d.push(a)}}return d}))}p.findInPath=findInPath;function readCopyOptions(e){const p=e.force==null?true:e.force;const a=Boolean(e.recursive);const d=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:p,recursive:a,copySourceDirectory:d}}function cpDirRecursive(e,p,a,d){return r(this,void 0,void 0,(function*(){if(a>=255)return;a++;yield mkdirP(p);const t=yield m.readdir(e);for(const i of t){const t=`${e}/${i}`;const r=`${p}/${i}`;const s=yield m.lstat(t);if(s.isDirectory()){yield cpDirRecursive(t,r,a,d)}else{yield copyFile(t,r,d)}}yield m.chmod(p,(yield m.stat(e)).mode)}))}function copyFile(e,p,a){return r(this,void 0,void 0,(function*(){if((yield m.lstat(e)).isSymbolicLink()){try{yield m.lstat(p);yield m.unlink(p)}catch(e){if(e.code==="EPERM"){yield m.chmod(p,"0666");yield m.unlink(p)}}const a=yield m.readlink(e);yield m.symlink(a,p,m.IS_WINDOWS?"junction":null)}else if(!(yield m.exists(p))||a){yield m.copyFile(e,p)}}))}},2473:function(e,p,a){"use strict";var d=this&&this.__createBinding||(Object.create?function(e,p,a,d){if(d===undefined)d=a;Object.defineProperty(e,d,{enumerable:true,get:function(){return p[a]}})}:function(e,p,a,d){if(d===undefined)d=a;e[d]=p[a]});var t=this&&this.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:true,value:p})}:function(e,p){e["default"]=p});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))d(p,e,a);t(p,e);return p};var r=this&&this.__awaiter||function(e,p,a,d){function adopt(e){return e instanceof a?e:new a((function(p){p(e)}))}return new(a||(a=Promise))((function(a,t){function fulfilled(e){try{step(d.next(e))}catch(e){t(e)}}function rejected(e){try{step(d["throw"](e))}catch(e){t(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((d=d.apply(e,p||[])).next())}))};Object.defineProperty(p,"__esModule",{value:true});p._readLinuxVersionFile=p._getOsVersion=p._findMatch=void 0;const s=i(a(5911));const l=a(2186);const o=a(2087);const n=a(3129);const m=a(5747);function _findMatch(p,a,d,t){return r(this,void 0,void 0,(function*(){const i=o.platform();let r;let n;let m;for(const r of d){const d=r.version;l.debug(`check ${d} satisfies ${p}`);if(s.satisfies(d,p)&&(!a||r.stable===a)){m=r.files.find((p=>{l.debug(`${p.arch}===${t} && ${p.platform}===${i}`);let a=p.arch===t&&p.platform===i;if(a&&p.platform_version){const d=e.exports._getOsVersion();if(d===p.platform_version){a=true}else{a=s.satisfies(d,p.platform_version)}}return a}));if(m){l.debug(`matched ${r.version}`);n=r;break}}}if(n&&m){r=Object.assign({},n);r.files=[m]}return r}))}p._findMatch=_findMatch;function _getOsVersion(){const p=o.platform();let a="";if(p==="darwin"){a=n.execSync("sw_vers -productVersion").toString()}else if(p==="linux"){const p=e.exports._readLinuxVersionFile();if(p){const e=p.split("\n");for(const p of e){const e=p.split("=");if(e.length===2&&(e[0].trim()==="VERSION_ID"||e[0].trim()==="DISTRIB_RELEASE")){a=e[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return a}p._getOsVersion=_getOsVersion;function _readLinuxVersionFile(){const e="/etc/lsb-release";const p="/etc/os-release";let a="";if(m.existsSync(e)){a=m.readFileSync(e).toString()}else if(m.existsSync(p)){a=m.readFileSync(p).toString()}return a}p._readLinuxVersionFile=_readLinuxVersionFile},8279:function(e,p,a){"use strict";var d=this&&this.__createBinding||(Object.create?function(e,p,a,d){if(d===undefined)d=a;Object.defineProperty(e,d,{enumerable:true,get:function(){return p[a]}})}:function(e,p,a,d){if(d===undefined)d=a;e[d]=p[a]});var t=this&&this.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:true,value:p})}:function(e,p){e["default"]=p});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))d(p,e,a);t(p,e);return p};var r=this&&this.__awaiter||function(e,p,a,d){function adopt(e){return e instanceof a?e:new a((function(p){p(e)}))}return new(a||(a=Promise))((function(a,t){function fulfilled(e){try{step(d.next(e))}catch(e){t(e)}}function rejected(e){try{step(d["throw"](e))}catch(e){t(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((d=d.apply(e,p||[])).next())}))};Object.defineProperty(p,"__esModule",{value:true});p.RetryHelper=void 0;const s=i(a(2186));class RetryHelper{constructor(e,p,a){if(e<1){throw new Error("max attempts should be greater than or equal to 1")}this.maxAttempts=e;this.minSeconds=Math.floor(p);this.maxSeconds=Math.floor(a);if(this.minSeconds>this.maxSeconds){throw new Error("min seconds should be less than or equal to max seconds")}}execute(e,p){return r(this,void 0,void 0,(function*(){let a=1;while(asetTimeout(p,e*1e3)))}))}}p.RetryHelper=RetryHelper},7784:function(e,p,a){"use strict";var d=this&&this.__createBinding||(Object.create?function(e,p,a,d){if(d===undefined)d=a;Object.defineProperty(e,d,{enumerable:true,get:function(){return p[a]}})}:function(e,p,a,d){if(d===undefined)d=a;e[d]=p[a]});var t=this&&this.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:true,value:p})}:function(e,p){e["default"]=p});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))d(p,e,a);t(p,e);return p};var r=this&&this.__awaiter||function(e,p,a,d){function adopt(e){return e instanceof a?e:new a((function(p){p(e)}))}return new(a||(a=Promise))((function(a,t){function fulfilled(e){try{step(d.next(e))}catch(e){t(e)}}function rejected(e){try{step(d["throw"](e))}catch(e){t(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((d=d.apply(e,p||[])).next())}))};var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(p,"__esModule",{value:true});p.evaluateVersions=p.isExplicitVersion=p.findFromManifest=p.getManifestFromRepo=p.findAllVersions=p.find=p.cacheFile=p.cacheDir=p.extractZip=p.extractXar=p.extractTar=p.extract7z=p.downloadTool=p.HTTPError=void 0;const l=i(a(2186));const o=i(a(7436));const n=i(a(5747));const m=i(a(2473));const u=i(a(2087));const c=i(a(5622));const f=i(a(9925));const h=i(a(5911));const v=i(a(2413));const w=i(a(1669));const g=s(a(824));const y=a(1514);const _=a(2357);const b=a(8279);class HTTPError extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`);this.httpStatusCode=e;Object.setPrototypeOf(this,new.target.prototype)}}p.HTTPError=HTTPError;const S=process.platform==="win32";const N=process.platform==="darwin";const E="actions/tool-cache";function downloadTool(e,p,a,d){return r(this,void 0,void 0,(function*(){p=p||c.join(_getTempDirectory(),g.default());yield o.mkdirP(c.dirname(p));l.debug(`Downloading ${e}`);l.debug(`Destination ${p}`);const t=3;const i=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10);const s=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);const n=new b.RetryHelper(t,i,s);return yield n.execute((()=>r(this,void 0,void 0,(function*(){return yield downloadToolAttempt(e,p||"",a,d)}))),(e=>{if(e instanceof HTTPError&&e.httpStatusCode){if(e.httpStatusCode<500&&e.httpStatusCode!==408&&e.httpStatusCode!==429){return false}}return true}))}))}p.downloadTool=downloadTool;function downloadToolAttempt(e,p,a,d){return r(this,void 0,void 0,(function*(){if(n.existsSync(p)){throw new Error(`Destination file path ${p} already exists`)}const t=new f.HttpClient(E,[],{allowRetries:false});if(a){l.debug("set auth");if(d===undefined){d={}}d.authorization=a}const i=yield t.get(e,d);if(i.message.statusCode!==200){const p=new HTTPError(i.message.statusCode);l.debug(`Failed to download from "${e}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`);throw p}const r=w.promisify(v.pipeline);const s=_getGlobal("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>i.message));const m=s();let u=false;try{yield r(m,n.createWriteStream(p));l.debug("download complete");u=true;return p}finally{if(!u){l.debug("download failed");try{yield o.rmRF(p)}catch(e){l.debug(`Failed to delete '${p}'. ${e.message}`)}}}}))}function extract7z(e,p,a){return r(this,void 0,void 0,(function*(){_.ok(S,"extract7z() not supported on current OS");_.ok(e,'parameter "file" is required');p=yield _createExtractFolder(p);const d=process.cwd();process.chdir(p);if(a){try{const p=l.isDebug()?"-bb1":"-bb0";const t=["x",p,"-bd","-sccUTF-8",e];const i={silent:true};yield y.exec(`"${a}"`,t,i)}finally{process.chdir(d)}}else{const a=c.join(__dirname,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"");const t=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const i=p.replace(/'/g,"''").replace(/"|\n|\r/g,"");const r=`& '${a}' -Source '${t}' -Target '${i}'`;const s=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",r];const l={silent:true};try{const e=yield o.which("powershell",true);yield y.exec(`"${e}"`,s,l)}finally{process.chdir(d)}}return p}))}p.extract7z=extract7z;function extractTar(e,p,a="xz"){return r(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'file' is required")}p=yield _createExtractFolder(p);l.debug("Checking tar --version");let d="";yield y.exec("tar --version",[],{ignoreReturnCode:true,silent:true,listeners:{stdout:e=>d+=e.toString(),stderr:e=>d+=e.toString()}});l.debug(d.trim());const t=d.toUpperCase().includes("GNU TAR");let i;if(a instanceof Array){i=a}else{i=[a]}if(l.isDebug()&&!a.includes("v")){i.push("-v")}let r=p;let s=e;if(S&&t){i.push("--force-local");r=p.replace(/\\/g,"/");s=e.replace(/\\/g,"/")}if(t){i.push("--warning=no-unknown-keyword");i.push("--overwrite")}i.push("-C",r,"-f",s);yield y.exec(`tar`,i);return p}))}p.extractTar=extractTar;function extractXar(e,p,a=[]){return r(this,void 0,void 0,(function*(){_.ok(N,"extractXar() not supported on current OS");_.ok(e,'parameter "file" is required');p=yield _createExtractFolder(p);let d;if(a instanceof Array){d=a}else{d=[a]}d.push("-x","-C",p,"-f",e);if(l.isDebug()){d.push("-v")}const t=yield o.which("xar",true);yield y.exec(`"${t}"`,_unique(d));return p}))}p.extractXar=extractXar;function extractZip(e,p){return r(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'file' is required")}p=yield _createExtractFolder(p);if(S){yield extractZipWin(e,p)}else{yield extractZipNix(e,p)}return p}))}p.extractZip=extractZip;function extractZipWin(e,p){return r(this,void 0,void 0,(function*(){const a=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const d=p.replace(/'/g,"''").replace(/"|\n|\r/g,"");const t=yield o.which("pwsh",false);if(t){const e=[`$ErrorActionPreference = 'Stop' ;`,`try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;`,`try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${a}', '${d}', $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 '${d}' -Force } else { throw $_ } } ;`].join(" ");const p=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e];l.debug(`Using pwsh at path: ${t}`);yield y.exec(`"${t}"`,p)}else{const e=[`$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 '${d}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${a}', '${d}', $true) }`].join(" ");const p=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e];const t=yield o.which("powershell",true);l.debug(`Using powershell at path: ${t}`);yield y.exec(`"${t}"`,p)}}))}function extractZipNix(e,p){return r(this,void 0,void 0,(function*(){const a=yield o.which("unzip",true);const d=[e];if(!l.isDebug()){d.unshift("-q")}d.unshift("-o");yield y.exec(`"${a}"`,d,{cwd:p})}))}function cacheDir(e,p,a,d){return r(this,void 0,void 0,(function*(){a=h.clean(a)||a;d=d||u.arch();l.debug(`Caching tool ${p} ${a} ${d}`);l.debug(`source dir: ${e}`);if(!n.statSync(e).isDirectory()){throw new Error("sourceDir is not a directory")}const t=yield _createToolPath(p,a,d);for(const p of n.readdirSync(e)){const a=c.join(e,p);yield o.cp(a,t,{recursive:true})}_completeToolPath(p,a,d);return t}))}p.cacheDir=cacheDir;function cacheFile(e,p,a,d,t){return r(this,void 0,void 0,(function*(){d=h.clean(d)||d;t=t||u.arch();l.debug(`Caching tool ${a} ${d} ${t}`);l.debug(`source file: ${e}`);if(!n.statSync(e).isFile()){throw new Error("sourceFile is not a file")}const i=yield _createToolPath(a,d,t);const r=c.join(i,p);l.debug(`destination file ${r}`);yield o.cp(e,r);_completeToolPath(a,d,t);return i}))}p.cacheFile=cacheFile;function find(e,p,a){if(!e){throw new Error("toolName parameter is required")}if(!p){throw new Error("versionSpec parameter is required")}a=a||u.arch();if(!isExplicitVersion(p)){const d=findAllVersions(e,a);const t=evaluateVersions(d,p);p=t}let d="";if(p){p=h.clean(p)||"";const t=c.join(_getCacheDirectory(),e,p,a);l.debug(`checking cache: ${t}`);if(n.existsSync(t)&&n.existsSync(`${t}.complete`)){l.debug(`Found tool in cache ${e} ${p} ${a}`);d=t}else{l.debug("not found")}}return d}p.find=find;function findAllVersions(e,p){const a=[];p=p||u.arch();const d=c.join(_getCacheDirectory(),e);if(n.existsSync(d)){const e=n.readdirSync(d);for(const t of e){if(isExplicitVersion(t)){const e=c.join(d,t,p||"");if(n.existsSync(e)&&n.existsSync(`${e}.complete`)){a.push(t)}}}}return a}p.findAllVersions=findAllVersions;function getManifestFromRepo(e,p,a,d="master"){return r(this,void 0,void 0,(function*(){let t=[];const i=`https://api.github.com/repos/${e}/${p}/git/trees/${d}`;const r=new f.HttpClient("tool-cache");const s={};if(a){l.debug("set auth");s.authorization=a}const o=yield r.getJson(i,s);if(!o.result){return t}let n="";for(const e of o.result.tree){if(e.path==="versions-manifest.json"){n=e.url;break}}s["accept"]="application/vnd.github.VERSION.raw";let m=yield(yield r.get(n,s)).readBody();if(m){m=m.replace(/^\uFEFF/,"");try{t=JSON.parse(m)}catch(e){l.debug("Invalid json")}}return t}))}p.getManifestFromRepo=getManifestFromRepo;function findFromManifest(e,p,a,d=u.arch()){return r(this,void 0,void 0,(function*(){const t=yield m._findMatch(e,p,a,d);return t}))}p.findFromManifest=findFromManifest;function _createExtractFolder(e){return r(this,void 0,void 0,(function*(){if(!e){e=c.join(_getTempDirectory(),g.default())}yield o.mkdirP(e);return e}))}function _createToolPath(e,p,a){return r(this,void 0,void 0,(function*(){const d=c.join(_getCacheDirectory(),e,h.clean(p)||p,a||"");l.debug(`destination ${d}`);const t=`${d}.complete`;yield o.rmRF(d);yield o.rmRF(t);yield o.mkdirP(d);return d}))}function _completeToolPath(e,p,a){const d=c.join(_getCacheDirectory(),e,h.clean(p)||p,a||"");const t=`${d}.complete`;n.writeFileSync(t,"");l.debug("finished caching tool")}function isExplicitVersion(e){const p=h.clean(e)||"";l.debug(`isExplicit: ${p}`);const a=h.valid(p)!=null;l.debug(`explicit? ${a}`);return a}p.isExplicitVersion=isExplicitVersion;function evaluateVersions(e,p){let a="";l.debug(`evaluating ${e.length} versions`);e=e.sort(((e,p)=>{if(h.gt(e,p)){return 1}return-1}));for(let d=e.length-1;d>=0;d--){const t=e[d];const i=h.satisfies(t,p);if(i){a=t;break}}if(a){l.debug(`matched: ${a}`)}else{l.debug("match not found")}return a}p.evaluateVersions=evaluateVersions;function _getCacheDirectory(){const e=process.env["RUNNER_TOOL_CACHE"]||"";_.ok(e,"Expected RUNNER_TOOL_CACHE to be defined");return e}function _getTempDirectory(){const e=process.env["RUNNER_TEMP"]||"";_.ok(e,"Expected RUNNER_TEMP to be defined");return e}function _getGlobal(e,p){const a=global[e];return a!==undefined?a:p}function _unique(e){return Array.from(new Set(e))}},9417:e=>{"use strict";e.exports=balanced;function balanced(e,p,a){if(e instanceof RegExp)e=maybeMatch(e,a);if(p instanceof RegExp)p=maybeMatch(p,a);var d=range(e,p,a);return d&&{start:d[0],end:d[1],pre:a.slice(0,d[0]),body:a.slice(d[0]+e.length,d[1]),post:a.slice(d[1]+p.length)}}function maybeMatch(e,p){var a=p.match(e);return a?a[0]:null}balanced.range=range;function range(e,p,a){var d,t,i,r,s;var l=a.indexOf(e);var o=a.indexOf(p,l+1);var n=l;if(l>=0&&o>0){if(e===p){return[l,o]}d=[];i=a.length;while(n>=0&&!s){if(n==l){d.push(n);l=a.indexOf(e,n+1)}else if(d.length==1){s=[d.pop(),o]}else{t=d.pop();if(t=0?l:o}if(d.length){s=[i,r]}}return s}},3717:(e,p,a)=>{var d=a(6891);var t=a(9417);e.exports=expandTop;var i="\0SLASH"+Math.random()+"\0";var r="\0OPEN"+Math.random()+"\0";var s="\0CLOSE"+Math.random()+"\0";var l="\0COMMA"+Math.random()+"\0";var o="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(i).split("\\{").join(r).split("\\}").join(s).split("\\,").join(l).split("\\.").join(o)}function unescapeBraces(e){return e.split(i).join("\\").split(r).join("{").split(s).join("}").split(l).join(",").split(o).join(".")}function parseCommaParts(e){if(!e)return[""];var p=[];var a=t("{","}",e);if(!a)return e.split(",");var d=a.pre;var i=a.body;var r=a.post;var s=d.split(",");s[s.length-1]+="{"+i+"}";var l=parseCommaParts(r);if(r.length){s[s.length-1]+=l.shift();s.push.apply(s,l)}p.push.apply(p,s);return p}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function identity(e){return e}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,p){return e<=p}function gte(e,p){return e>=p}function expand(e,p){var a=[];var i=t("{","}",e);if(!i||/\$$/.test(i.pre))return[e];var r=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body);var l=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body);var o=r||l;var n=i.body.indexOf(",")>=0;if(!o&&!n){if(i.post.match(/,.*\}/)){e=i.pre+"{"+i.body+s+i.post;return expand(e)}return[e]}var m;if(o){m=i.body.split(/\.\./)}else{m=parseCommaParts(i.body);if(m.length===1){m=expand(m[0],false).map(embrace);if(m.length===1){var u=i.post.length?expand(i.post,false):[""];return u.map((function(e){return i.pre+m[0]+e}))}}}var c=i.pre;var u=i.post.length?expand(i.post,false):[""];var f;if(o){var h=numeric(m[0]);var v=numeric(m[1]);var w=Math.max(m[0].length,m[1].length);var g=m.length==3?Math.abs(numeric(m[2])):1;var y=lte;var _=v0){var T=new Array(E+1).join("0");if(S<0)N="-"+T+N.slice(1);else N=T+N}}}f.push(N)}}else{f=d(m,(function(e){return expand(e,false)}))}for(var D=0;D{var p={utf8:{stringToBytes:function(e){return p.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(p.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var p=[],a=0;a{e.exports=function(e,a){var d=[];for(var t=0;t{(function(){var p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a={rotl:function(e,p){return e<>>32-p},rotr:function(e,p){return e<<32-p|e>>>p},endian:function(e){if(e.constructor==Number){return a.rotl(e,8)&16711935|a.rotl(e,24)&4278255360}for(var p=0;p0;e--)p.push(Math.floor(Math.random()*256));return p},bytesToWords:function(e){for(var p=[],a=0,d=0;a>>5]|=e[a]<<24-d%32;return p},wordsToBytes:function(e){for(var p=[],a=0;a>>5]>>>24-a%32&255);return p},bytesToHex:function(e){for(var p=[],a=0;a>>4).toString(16));p.push((e[a]&15).toString(16))}return p.join("")},hexToBytes:function(e){for(var p=[],a=0;a>>6*(3-i)&63));else a.push("=")}return a.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var a=[],d=0,t=0;d>>6-t*2)}return a}};e.exports=a})()},5625:e=>{ +(()=>{var __webpack_modules__={4523:(e,p,a)=>{const d=a(2186);e.exports={Alpha:0,Beta:1,Release:2,getBuildLevel:()=>{const e=d.getInput("build_level");const p=e.length>0?e:process.env["AUDACITY_BUILD_LEVEL"];if(p==="beta"){return 1}else if(p==="release"){return 2}else{const e=Number(p);if(Number.isInteger(e)&&e>=0&&e<=2){return e}return 0}},getBuildSuffix:e=>{if(e==1){return"beta"}else if(e==2){return""}else{return"alpha"}}}},5800:(e,p,a)=>{const d=a(5747);const t=a(5622);const i=a(467);const r=a(8090);const s=a(7784);const l=a(5008);const o=a(1066);const n=process.env["ARTIFACTORY_SYMBOLS_URL"];const m=process.env["ARTIFACTORY_SYMBOLS_KEY"];const u="C:\\Program Files (x86)\\Windows Kits\\10\\Debuggers\\x64\\symstore.exe";const c=process.platform==="win32"&&d.existsSync(u);const f=t.join(workspaceDir,".debug");const h=t.join(f,"SymStore");async function getSentryCli(){let e="";try{if(process.platform==="win32"){e=await s.downloadTool("https://downloads.sentry-cdn.com/sentry-cli/1.71.0/sentry-cli-Windows-x86_64.exe")}else if(process.platform==="darwin"){e=await s.downloadTool("https://downloads.sentry-cdn.com/sentry-cli/1.71.0/sentry-cli-Darwin-universal")}else{e=await s.downloadTool("https://downloads.sentry-cdn.com/sentry-cli/1.71.0/sentry-cli-Linux-x86_64")}const p=process.platform==="win32"?"sentry-cli.exe":"sentry-cli";const a=t.join(t.dirname(e),p);await d.promises.rename(e,a);if(process.platform!=="win32"){await d.promises.chmod(a,"0766")}return a}catch(e){l.error(e);return""}}const v={authToken:process.env["SENTRY_AUTH_TOKEN"]||"",url:"https://"+process.env["SENTRY_HOST"],org:process.env["SENTRY_ORG_SLUG"]||"",project:process.env["SENTRY_PROJECT_SLUG"]||"",cliInitialized:false,cliFound:false};const w=v.authToken.length>0&&v.url.length>0&&v.org.length>0&&v.project.length>0;async function download(e,p,a){const r=await i(e+p);if(!r.ok){return false}try{await new Promise(((e,i)=>{let s=t.join(a,p);let l=t.dirname(s);if(!d.existsSync(l)){d.mkdirSync(l,{recursive:true})}const o=d.createWriteStream(s);r.body.pipe(o);r.body.on("error",(e=>{i(e)}));o.on("finish",(function(){e()}))}));return true}catch(e){return false}}async function download000Admin(e){if(await download(n,"000Admin/lastid.txt",e)){await download(n,"000Admin/history.txt",e);await download(n,"000Admin/server.txt",e)}}async function uploadSymStore(){await download000Admin();const e=await o.listDirectory(h);for(const p of e){let e=n+t.relative(h,p).replaceAll(t.sep,"/");l.log(`Uploading ${e}`);let a=d.createReadStream(p);try{let p=await i(e,{method:"PUT",headers:{Authorization:"Bearer "+m},body:a});if(!p.ok){l.error("Failed to upload "+p.status)}}catch(e){l.error(e)}}}async function uploadAllToSentry(e){if(!v.cliInitialized){v.cliInitialized=true;v.cli=await getSentryCli();v.cliFound=v.cli.length>0;if(!v.cliFound){l.error("sentry-cli is not available");return}}if(v.cliFound&&w){for(const p of e){await l.execWithLog(v.cli,["--auth-token",v.authToken,"--url",v.url,"upload-dif","--include-sources","--org",v.org,"--project",v.project,p])}}}async function addToSymStore(e){if(c){await l.execWithLog('"'+u+'"',["add","/s",h,"/compress","/r","/f",e,"/t",t.basename(e,".pdb")])}}async function splitDsymFile(e){if(!d.existsSync(f)){d.mkdirSync(f,{recursive:true})}l.log(`Calling dsymutil on ${e}`);let p=t.join(f,t.basename(e)+".dSYM");await l.execWithLog("dsymutil",[e,"-o",p]);return p}async function splitDebugFile(e){if(!d.existsSync(f)){d.mkdirSync(f,{recursive:true})}let p=t.join(f,t.basename(e)+".debug");try{await l.execWithLog("objcopy",["--only-keep-debug","--compress-debug-section=zlib",e,p]);if(!d.existsSync(p)){return""}await l.execWithLog("objcopy",["--strip-debug","--strip-unneeded",e]);await l.execWithLog("objcopy",["--add-gnu-debuglink="+p,e]);return p}catch(e){l.error(e);return""}}async function getMatchingFiles(e,p,a){const d=await o.globFiles(e);const i=await o.globFiles(p);return d.filter((e=>{const p=!a?t.basename(e):t.basename(e,t.extname(e));return i.findIndex((e=>e.indexOf(p)!=-1))!=-1}))}async function splitDepsDebugSymbols(e,p,a){const d=await getMatchingFiles(t.join(conanCachePath,"data/**/package/**/*"+e),t.join(conanCachePath,"data/**/build/**/*"+e));let i=[];for(const e of d){const a=await p(e);if(a.length>0){i.push(a)}}if(a&&i.length>0){await uploadAllToSentry([...i,...d])}}async function splitAudacityDebugSymbols(e,p,a,i,r){const s=t.join(e,"bin",p);const l=(await o.globFiles(`${s}/**/*`)).filter((e=>{const p=d.lstatSync(e);return p.isFile()&&p.mode&d.constants.S_IXUSR&&t.extname(e).length==0}));const n=await getMatchingFiles(`${s}/**/*${a}`,`${conanCachePath}/**/package/**/*${a}`);const m=(await o.globFiles(`${s}/**/*${a}`)).filter((e=>{const p=d.lstatSync(e);if(!p.isFile())return false;return n.indexOf(e)==-1}));const u=[...l,...m];let c=[];for(const e of u){const p=await i(e);if(p.length>0){c.push(p)}}if(r&&c.length>0){await uploadAllToSentry([...c,...u])}}async function processDependenciesDebugInformation(e,p,a){if(process.platform=="win32"){if(!a||!n){return}if(!c){l.error("symstore.exe is not available");return}const e=await o.globFiles(t.join(conanCachePath,"data/**/build/**/*.pdb"));for(const p of e){await addToSymStore(p)}if(e.length>0){await uploadSymStore();const p=await o.globFiles(t.join(conanCachePath,"data/**/build/**/*.dll"));await uploadAllToSentry([...e,...p])}}else if(process.platform=="darwin"){await splitDepsDebugSymbols(".dylib",splitDsymFile,a)}else{await splitDepsDebugSymbols(".so*",splitDebugFile,a)}}async function processDebugInformation(e,p,a){if(process.platform=="win32"){const i=await o.globFiles(t.join(e,`bin/${p}/**/*.pdb`));if(a){const a=await o.globFiles(t.join(e,`shared/${p}/**/*.pdb`));const d=await getMatchingFiles(t.join(e,`shared/${p}/**/*.dll`),t.join(e,`shared/${p}/**/*.pdb`),true);const r=await getMatchingFiles([t.join(e,`bin/${p}/**/*.exe`),t.join(e,`bin/${p}/**/*.dll`)],t.join(e,`bin/${p}/**/*.pdb`),true);const s=[...i,...a];for(const e of s){await addToSymStore(e)}await uploadAllToSentry(s);await uploadAllToSentry([...d,...s,...r])}const r=await o.globFiles([t.join(e,`bin/${p}/**/*.ipdb`),t.join(e,`bin/${p}/**/*.iobj`),t.join(e,`bin/${p}/**/*.ilk`)]);for(const e of[...i,...r]){await d.promises.rm(e)}}else if(process.platform=="darwin"){await splitAudacityDebugSymbols(e,p,".dylib",splitDsymFile,a)}else{await splitAudacityDebugSymbols(e,p,".so*",splitDebugFile,a)}}e.exports={processDependenciesDebugInformation:processDependenciesDebugInformation,processDebugInformation:processDebugInformation}},1066:(e,p,a)=>{const d=a(5747);const t=a(5622);const i=a(8090);helpers=a(5008);const getFilesFromDirectoryRecursive=async e=>{const p=await d.promises.readdir(e);const a=await Promise.all(p.map((async p=>{const a=t.join(e,p);const i=await d.promises.stat(a);if(i.isDirectory()){return getFilesFromDirectoryRecursive(a)}else{return a}})));return a.filter((e=>e.length))};async function globFiles(e){const p=await i.create(Array.isArray(e)?e.join("\n"):e);let a=[];for await(const e of p.globGenerator()){const p=await d.promises.lstat(e);if(p.isSymbolicLink()){continue}a.push(e)}return a}async function listMacosAppsRecursive(e,p){const a=await d.promises.readdir(e);await Promise.all(a.map((async a=>{const i=t.join(e,a);const r=await d.promises.stat(i);if(r.isDirectory()){if(t.extname(a)==".app"){p.push(i)}else{return listMacosAppsRecursive(i,p)}}})))}async function getAudacityMacOSBundleFiles(e){bundle={MacOS:[],Frameworks:{dylib:[]},modules:[],misc:[]};const p=(await getFilesFromDirectoryRecursive(e)).flat(Infinity);p.forEach((e=>{if(e.indexOf("Contents/MacOS")!=-1){bundle.MacOS.push(e)}else if(e.indexOf("Contents/Frameworks")!=-1){const p=d.statSync(e);if(p.isSymbolicLink()){bundle.misc.push(e)}else if(p.isFile()){bundle.Frameworks.dylib.push(e)}else{throw Error("Bundled frameworks are not supported")}}else if(e.indexOf("Contents/modules")!=-1){bundle.modules.push(e)}else{bundle.misc.push(e)}}));return bundle}async function copyFile(e,p){const a=t.dirname(p);if(!d.existsSync(a)){d.mkdirSync(a,{recursive:true})}return d.promises.copyFile(e,p)}async function copyFiles(e,p,a){return helpers.awaitAll(p,(async p=>{const d=t.relative(e,p);return copyFile(p,t.join(a,d))}))}async function listMacosApps(e){apps=[];await listMacosAppsRecursive(e,apps);return apps}e.exports={listDirectory:async e=>(await getFilesFromDirectoryRecursive(e)).flat(Infinity),globFiles:globFiles,listMacosApps:listMacosApps,getAudacityMacOSBundleFiles:getAudacityMacOSBundleFiles,copyFile:copyFile,copyFiles:copyFiles}},5008:(e,p,a)=>{const d=a(2186);const t=a(1514);const i=a(5622);const r=a(1711);const s=a(5747);const l=process.env["CI"];global.workspaceDir=process.env["GITHUB_WORKSPACE"];global.conanCachePath=i.join(workspaceDir,".conan");function log(e){if(l){d.info(e)}else{console.log(e)}}function error(e){if(l){d.error(e)}else{console.error(e)}}async function execWithLog(e,arguments){if(l){return t.exec(e,arguments)}else{return t.exec(e,arguments,{listeners:{stdout:e=>{log(e.toString())},stderr:e=>{error(e.toString())}}})}}async function getExecOutput(e,arguments){if(l){return t.getExecOutput(e,arguments)}else{return t.getExecOutput(e,arguments,{listeners:{stdout:e=>{log(e.toString())},stderr:e=>{error(e.toString())}}})}}async function awaitAll(e,p){return await Promise.all(e.map((async e=>p(e))))}async function getMD5(e){const p=await s.promises.readFile(e);return r(p)}function getDateString(){const e=new Date;return[e.getFullYear(),("0"+(e.getMonth()+1)).slice(-2),("0"+e.getDate()).slice(-2)].join("")}const sleep=e=>new Promise((p=>setTimeout(p,e)));process.on("unhandledRejection",((e,p)=>{error(e);d.setFailed(e);process.exit(1)})).on("uncaughtException",(e=>{error(e);d.setFailed(e);process.exit(1)}));e.exports={log:log,error:error,execWithLog:execWithLog,getExecOutput:getExecOutput,sleep:sleep,awaitAll:awaitAll,getMD5:getMD5,getDateString:getDateString}},7351:function(e,p,a){"use strict";var d=this&&this.__createBinding||(Object.create?function(e,p,a,d){if(d===undefined)d=a;Object.defineProperty(e,d,{enumerable:true,get:function(){return p[a]}})}:function(e,p,a,d){if(d===undefined)d=a;e[d]=p[a]});var t=this&&this.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:true,value:p})}:function(e,p){e["default"]=p});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))d(p,e,a);t(p,e);return p};Object.defineProperty(p,"__esModule",{value:true});p.issue=p.issueCommand=void 0;const r=i(a(2087));const s=a(5278);function issueCommand(e,p,a){const d=new Command(e,p,a);process.stdout.write(d.toString()+r.EOL)}p.issueCommand=issueCommand;function issue(e,p=""){issueCommand(e,{},p)}p.issue=issue;const l="::";class Command{constructor(e,p,a){if(!e){e="missing.command"}this.command=e;this.properties=p;this.message=a}toString(){let e=l+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let p=true;for(const a in this.properties){if(this.properties.hasOwnProperty(a)){const d=this.properties[a];if(d){if(p){p=false}else{e+=","}e+=`${a}=${escapeProperty(d)}`}}}}e+=`${l}${escapeData(this.message)}`;return e}}function escapeData(e){return s.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return s.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(e,p,a){"use strict";var d=this&&this.__createBinding||(Object.create?function(e,p,a,d){if(d===undefined)d=a;Object.defineProperty(e,d,{enumerable:true,get:function(){return p[a]}})}:function(e,p,a,d){if(d===undefined)d=a;e[d]=p[a]});var t=this&&this.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:true,value:p})}:function(e,p){e["default"]=p});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))d(p,e,a);t(p,e);return p};var r=this&&this.__awaiter||function(e,p,a,d){function adopt(e){return e instanceof a?e:new a((function(p){p(e)}))}return new(a||(a=Promise))((function(a,t){function fulfilled(e){try{step(d.next(e))}catch(e){t(e)}}function rejected(e){try{step(d["throw"](e))}catch(e){t(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((d=d.apply(e,p||[])).next())}))};Object.defineProperty(p,"__esModule",{value:true});p.getIDToken=p.getState=p.saveState=p.group=p.endGroup=p.startGroup=p.info=p.notice=p.warning=p.error=p.debug=p.isDebug=p.setFailed=p.setCommandEcho=p.setOutput=p.getBooleanInput=p.getMultilineInput=p.getInput=p.addPath=p.setSecret=p.exportVariable=p.ExitCode=void 0;const s=a(7351);const l=a(717);const o=a(5278);const n=i(a(2087));const m=i(a(5622));const u=a(8041);var c;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(c=p.ExitCode||(p.ExitCode={}));function exportVariable(e,p){const a=o.toCommandValue(p);process.env[e]=a;const d=process.env["GITHUB_ENV"]||"";if(d){const p="_GitHubActionsFileCommandDelimeter_";const d=`${e}<<${p}${n.EOL}${a}${n.EOL}${p}`;l.issueCommand("ENV",d)}else{s.issueCommand("set-env",{name:e},a)}}p.exportVariable=exportVariable;function setSecret(e){s.issueCommand("add-mask",{},e)}p.setSecret=setSecret;function addPath(e){const p=process.env["GITHUB_PATH"]||"";if(p){l.issueCommand("PATH",e)}else{s.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${m.delimiter}${process.env["PATH"]}`}p.addPath=addPath;function getInput(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}`)}if(p&&p.trimWhitespace===false){return a}return a.trim()}p.getInput=getInput;function getMultilineInput(e,p){const a=getInput(e,p).split("\n").filter((e=>e!==""));return a}p.getMultilineInput=getMultilineInput;function getBooleanInput(e,p){const a=["true","True","TRUE"];const d=["false","False","FALSE"];const t=getInput(e,p);if(a.includes(t))return true;if(d.includes(t))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}p.getBooleanInput=getBooleanInput;function setOutput(e,p){process.stdout.write(n.EOL);s.issueCommand("set-output",{name:e},p)}p.setOutput=setOutput;function setCommandEcho(e){s.issue("echo",e?"on":"off")}p.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=c.Failure;error(e)}p.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}p.isDebug=isDebug;function debug(e){s.issueCommand("debug",{},e)}p.debug=debug;function error(e,p={}){s.issueCommand("error",o.toCommandProperties(p),e instanceof Error?e.toString():e)}p.error=error;function warning(e,p={}){s.issueCommand("warning",o.toCommandProperties(p),e instanceof Error?e.toString():e)}p.warning=warning;function notice(e,p={}){s.issueCommand("notice",o.toCommandProperties(p),e instanceof Error?e.toString():e)}p.notice=notice;function info(e){process.stdout.write(e+n.EOL)}p.info=info;function startGroup(e){s.issue("group",e)}p.startGroup=startGroup;function endGroup(){s.issue("endgroup")}p.endGroup=endGroup;function group(e,p){return r(this,void 0,void 0,(function*(){startGroup(e);let a;try{a=yield p()}finally{endGroup()}return a}))}p.group=group;function saveState(e,p){s.issueCommand("save-state",{name:e},p)}p.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}p.getState=getState;function getIDToken(e){return r(this,void 0,void 0,(function*(){return yield u.OidcClient.getIDToken(e)}))}p.getIDToken=getIDToken},717:function(e,p,a){"use strict";var d=this&&this.__createBinding||(Object.create?function(e,p,a,d){if(d===undefined)d=a;Object.defineProperty(e,d,{enumerable:true,get:function(){return p[a]}})}:function(e,p,a,d){if(d===undefined)d=a;e[d]=p[a]});var t=this&&this.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:true,value:p})}:function(e,p){e["default"]=p});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))d(p,e,a);t(p,e);return p};Object.defineProperty(p,"__esModule",{value:true});p.issueCommand=void 0;const r=i(a(5747));const s=i(a(2087));const l=a(5278);function issueCommand(e,p){const a=process.env[`GITHUB_${e}`];if(!a){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!r.existsSync(a)){throw new Error(`Missing file at path: ${a}`)}r.appendFileSync(a,`${l.toCommandValue(p)}${s.EOL}`,{encoding:"utf8"})}p.issueCommand=issueCommand},8041:function(e,p,a){"use strict";var d=this&&this.__awaiter||function(e,p,a,d){function adopt(e){return e instanceof a?e:new a((function(p){p(e)}))}return new(a||(a=Promise))((function(a,t){function fulfilled(e){try{step(d.next(e))}catch(e){t(e)}}function rejected(e){try{step(d["throw"](e))}catch(e){t(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((d=d.apply(e,p||[])).next())}))};Object.defineProperty(p,"__esModule",{value:true});p.OidcClient=void 0;const t=a(9925);const i=a(3702);const r=a(2186);class OidcClient{static createHttpClient(e=true,p=10){const a={allowRetries:e,maxRetries:p};return new t.HttpClient("actions/oidc-client",[new i.BearerCredentialHandler(OidcClient.getRequestToken())],a)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var p;return d(this,void 0,void 0,(function*(){const a=OidcClient.createHttpClient();const d=yield a.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)}));const t=(p=d.result)===null||p===void 0?void 0:p.value;if(!t){throw new Error("Response json body do not have ID Token field")}return t}))}static getIDToken(e){return d(this,void 0,void 0,(function*(){try{let p=OidcClient.getIDTokenUrl();if(e){const a=encodeURIComponent(e);p=`${p}&audience=${a}`}r.debug(`ID token url is ${p}`);const a=yield OidcClient.getCall(p);r.setSecret(a);return a}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}p.OidcClient=OidcClient},5278:(e,p)=>{"use strict";Object.defineProperty(p,"__esModule",{value:true});p.toCommandProperties=p.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}p.toCommandValue=toCommandValue;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}p.toCommandProperties=toCommandProperties},1514:function(e,p,a){"use strict";var d=this&&this.__createBinding||(Object.create?function(e,p,a,d){if(d===undefined)d=a;Object.defineProperty(e,d,{enumerable:true,get:function(){return p[a]}})}:function(e,p,a,d){if(d===undefined)d=a;e[d]=p[a]});var t=this&&this.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:true,value:p})}:function(e,p){e["default"]=p});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))d(p,e,a);t(p,e);return p};var r=this&&this.__awaiter||function(e,p,a,d){function adopt(e){return e instanceof a?e:new a((function(p){p(e)}))}return new(a||(a=Promise))((function(a,t){function fulfilled(e){try{step(d.next(e))}catch(e){t(e)}}function rejected(e){try{step(d["throw"](e))}catch(e){t(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((d=d.apply(e,p||[])).next())}))};Object.defineProperty(p,"__esModule",{value:true});p.getExecOutput=p.exec=void 0;const s=a(4304);const l=i(a(8159));function exec(e,p,a){return r(this,void 0,void 0,(function*(){const d=l.argStringToArray(e);if(d.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const t=d[0];p=d.slice(1).concat(p||[]);const i=new l.ToolRunner(t,p,a);return i.exec()}))}p.exec=exec;function getExecOutput(e,p,a){var d,t;return r(this,void 0,void 0,(function*(){let i="";let r="";const l=new s.StringDecoder("utf8");const o=new s.StringDecoder("utf8");const n=(d=a===null||a===void 0?void 0:a.listeners)===null||d===void 0?void 0:d.stdout;const m=(t=a===null||a===void 0?void 0:a.listeners)===null||t===void 0?void 0:t.stderr;const stdErrListener=e=>{r+=o.write(e);if(m){m(e)}};const stdOutListener=e=>{i+=l.write(e);if(n){n(e)}};const u=Object.assign(Object.assign({},a===null||a===void 0?void 0:a.listeners),{stdout:stdOutListener,stderr:stdErrListener});const c=yield exec(e,p,Object.assign(Object.assign({},a),{listeners:u}));i+=l.end();r+=o.end();return{exitCode:c,stdout:i,stderr:r}}))}p.getExecOutput=getExecOutput},8159:function(e,p,a){"use strict";var d=this&&this.__createBinding||(Object.create?function(e,p,a,d){if(d===undefined)d=a;Object.defineProperty(e,d,{enumerable:true,get:function(){return p[a]}})}:function(e,p,a,d){if(d===undefined)d=a;e[d]=p[a]});var t=this&&this.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:true,value:p})}:function(e,p){e["default"]=p});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))d(p,e,a);t(p,e);return p};var r=this&&this.__awaiter||function(e,p,a,d){function adopt(e){return e instanceof a?e:new a((function(p){p(e)}))}return new(a||(a=Promise))((function(a,t){function fulfilled(e){try{step(d.next(e))}catch(e){t(e)}}function rejected(e){try{step(d["throw"](e))}catch(e){t(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((d=d.apply(e,p||[])).next())}))};Object.defineProperty(p,"__esModule",{value:true});p.argStringToArray=p.ToolRunner=void 0;const s=i(a(2087));const l=i(a(8614));const o=i(a(3129));const n=i(a(5622));const m=i(a(7436));const u=i(a(1962));const c=a(8213);const f=process.platform==="win32";class ToolRunner extends l.EventEmitter{constructor(e,p,a){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=p||[];this.options=a||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,p){const a=this._getSpawnFileName();const d=this._getSpawnArgs(e);let t=p?"":"[command]";if(f){if(this._isCmdFile()){t+=a;for(const e of d){t+=` ${e}`}}else if(e.windowsVerbatimArguments){t+=`"${a}"`;for(const e of d){t+=` ${e}`}}else{t+=this._windowsQuoteCmdArg(a);for(const e of d){t+=` ${this._windowsQuoteCmdArg(e)}`}}}else{t+=a;for(const e of d){t+=` ${e}`}}return t}_processLineBuffer(e,p,a){try{let d=p+e.toString();let t=d.indexOf(s.EOL);while(t>-1){const e=d.substring(0,t);a(e);d=d.substring(t+s.EOL.length);t=d.indexOf(s.EOL)}return d}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(f){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(f){if(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)}p+='"';return[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=false;for(const d of e){if(p.some((e=>e===d))){a=true;break}}if(!a){return e}let d='"';let t=true;for(let p=e.length;p>0;p--){d+=e[p-1];if(t&&e[p-1]==="\\"){d+="\\"}else if(e[p-1]==='"'){t=true;d+='"'}else{t=false}}d+='"';return d.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='"';let a=true;for(let d=e.length;d>0;d--){p+=e[d-1];if(a&&e[d-1]==="\\"){p+="\\"}else if(e[d-1]==='"'){a=true;p+="\\"}else{a=false}}p+='"';return p.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const p={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};p.outStream=e.outStream||process.stdout;p.errStream=e.errStream||process.stderr;return p}_getSpawnOptions(e,p){e=e||{};const a={};a.cwd=e.cwd;a.env=e.env;a["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){a.argv0=`"${p}"`}return a}exec(){return r(this,void 0,void 0,(function*(){if(!u.isRooted(this.toolPath)&&(this.toolPath.includes("/")||f&&this.toolPath.includes("\\"))){this.toolPath=n.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield m.which(this.toolPath,true);return new Promise(((e,p)=>r(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);if(!a.silent&&a.outStream){a.outStream.write(this._getCommandString(a)+s.EOL)}const d=new ExecState(a,this.toolPath);d.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield u.exists(this.options.cwd))){return p(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const t=this._getSpawnFileName();const i=o.spawn(t,this._getSpawnArgs(a),this._getSpawnOptions(this.options,t));let r="";if(i.stdout){i.stdout.on("data",(e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!a.silent&&a.outStream){a.outStream.write(e)}r=this._processLineBuffer(e,r,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let l="";if(i.stderr){i.stderr.on("data",(e=>{d.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!a.silent&&a.errStream&&a.outStream){const p=a.failOnStdErr?a.errStream:a.outStream;p.write(e)}l=this._processLineBuffer(e,l,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}i.on("error",(e=>{d.processError=e.message;d.processExited=true;d.processClosed=true;d.CheckComplete()}));i.on("exit",(e=>{d.processExitCode=e;d.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);d.CheckComplete()}));i.on("close",(e=>{d.processExitCode=e;d.processExited=true;d.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);d.CheckComplete()}));d.on("done",((a,d)=>{if(r.length>0){this.emit("stdline",r)}if(l.length>0){this.emit("errline",l)}i.removeAllListeners();if(a){p(a)}else{e(d)}}));if(this.options.input){if(!i.stdin){throw new Error("child process missing stdin")}i.stdin.end(this.options.input)}}))))}))}}p.ToolRunner=ToolRunner;function argStringToArray(e){const p=[];let a=false;let d=false;let t="";function append(e){if(d&&e!=='"'){t+="\\"}t+=e;d=false}for(let i=0;i0){p.push(t);t=""}continue}append(r)}if(t.length>0){p.push(t.trim())}return p}p.argStringToArray=argStringToArray;class ExecState extends l.EventEmitter{constructor(e,p){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!p){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=p;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=c.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(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}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}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()}}},8090:function(e,p,a){"use strict";var d=this&&this.__awaiter||function(e,p,a,d){function adopt(e){return e instanceof a?e:new a((function(p){p(e)}))}return new(a||(a=Promise))((function(a,t){function fulfilled(e){try{step(d.next(e))}catch(e){t(e)}}function rejected(e){try{step(d["throw"](e))}catch(e){t(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((d=d.apply(e,p||[])).next())}))};Object.defineProperty(p,"__esModule",{value:true});p.hashFiles=p.create=void 0;const t=a(8298);const i=a(2448);function create(e,p){return d(this,void 0,void 0,(function*(){return yield t.DefaultGlobber.create(e,p)}))}p.create=create;function hashFiles(e,p){return d(this,void 0,void 0,(function*(){let a=true;if(p&&typeof p.followSymbolicLinks==="boolean"){a=p.followSymbolicLinks}const d=yield create(e,{followSymbolicLinks:a});return i.hashFiles(d)}))}p.hashFiles=hashFiles},1026:function(e,p,a){"use strict";var d=this&&this.__createBinding||(Object.create?function(e,p,a,d){if(d===undefined)d=a;Object.defineProperty(e,d,{enumerable:true,get:function(){return p[a]}})}:function(e,p,a,d){if(d===undefined)d=a;e[d]=p[a]});var t=this&&this.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:true,value:p})}:function(e,p){e["default"]=p});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))d(p,e,a);t(p,e);return p};Object.defineProperty(p,"__esModule",{value:true});p.getOptions=void 0;const r=i(a(2186));function getOptions(e){const p={followSymbolicLinks:true,implicitDescendants:true,matchDirectories:true,omitBrokenSymbolicLinks:true};if(e){if(typeof e.followSymbolicLinks==="boolean"){p.followSymbolicLinks=e.followSymbolicLinks;r.debug(`followSymbolicLinks '${p.followSymbolicLinks}'`)}if(typeof e.implicitDescendants==="boolean"){p.implicitDescendants=e.implicitDescendants;r.debug(`implicitDescendants '${p.implicitDescendants}'`)}if(typeof e.matchDirectories==="boolean"){p.matchDirectories=e.matchDirectories;r.debug(`matchDirectories '${p.matchDirectories}'`)}if(typeof e.omitBrokenSymbolicLinks==="boolean"){p.omitBrokenSymbolicLinks=e.omitBrokenSymbolicLinks;r.debug(`omitBrokenSymbolicLinks '${p.omitBrokenSymbolicLinks}'`)}}return p}p.getOptions=getOptions},8298:function(e,p,a){"use strict";var d=this&&this.__createBinding||(Object.create?function(e,p,a,d){if(d===undefined)d=a;Object.defineProperty(e,d,{enumerable:true,get:function(){return p[a]}})}:function(e,p,a,d){if(d===undefined)d=a;e[d]=p[a]});var t=this&&this.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:true,value:p})}:function(e,p){e["default"]=p});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))d(p,e,a);t(p,e);return p};var r=this&&this.__awaiter||function(e,p,a,d){function adopt(e){return e instanceof a?e:new a((function(p){p(e)}))}return new(a||(a=Promise))((function(a,t){function fulfilled(e){try{step(d.next(e))}catch(e){t(e)}}function rejected(e){try{step(d["throw"](e))}catch(e){t(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((d=d.apply(e,p||[])).next())}))};var s=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var p=e[Symbol.asyncIterator],a;return p?p.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),a={},verb("next"),verb("throw"),verb("return"),a[Symbol.asyncIterator]=function(){return this},a);function verb(p){a[p]=e[p]&&function(a){return new Promise((function(d,t){a=e[p](a),settle(d,t,a.done,a.value)}))}}function settle(e,p,a,d){Promise.resolve(d).then((function(p){e({value:p,done:a})}),p)}};var l=this&&this.__await||function(e){return this instanceof l?(this.v=e,this):new l(e)};var o=this&&this.__asyncGenerator||function(e,p,a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var d=a.apply(e,p||[]),t,i=[];return t={},verb("next"),verb("throw"),verb("return"),t[Symbol.asyncIterator]=function(){return this},t;function verb(e){if(d[e])t[e]=function(p){return new Promise((function(a,d){i.push([e,p,a,d])>1||resume(e,p)}))}}function resume(e,p){try{step(d[e](p))}catch(e){settle(i[0][3],e)}}function step(e){e.value instanceof l?Promise.resolve(e.value.v).then(fulfill,reject):settle(i[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,p){if(e(p),i.shift(),i.length)resume(i[0][0],i[0][1])}};Object.defineProperty(p,"__esModule",{value:true});p.DefaultGlobber=void 0;const n=i(a(2186));const m=i(a(5747));const u=i(a(1026));const c=i(a(5622));const f=i(a(9005));const h=a(1063);const v=a(4536);const w=a(9117);const g=process.platform==="win32";class DefaultGlobber{constructor(e){this.patterns=[];this.searchPaths=[];this.options=u.getOptions(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){var e,p;return r(this,void 0,void 0,(function*(){const a=[];try{for(var d=s(this.globGenerator()),t;t=yield d.next(),!t.done;){const e=t.value;a.push(e)}}catch(p){e={error:p}}finally{try{if(t&&!t.done&&(p=d.return))yield p.call(d)}finally{if(e)throw e.error}}return a}))}globGenerator(){return o(this,arguments,(function*globGenerator_1(){const e=u.getOptions(this.options);const p=[];for(const a of this.patterns){p.push(a);if(e.implicitDescendants&&(a.trailingSeparator||a.segments[a.segments.length-1]!=="**")){p.push(new v.Pattern(a.negate,true,a.segments.concat("**")))}}const a=[];for(const e of f.getSearchPaths(p)){n.debug(`Search path '${e}'`);try{yield l(m.promises.lstat(e))}catch(e){if(e.code==="ENOENT"){continue}throw e}a.unshift(new w.SearchState(e,1))}const d=[];while(a.length){const t=a.pop();const i=f.match(p,t.path);const r=!!i||f.partialMatch(p,t.path);if(!i&&!r){continue}const s=yield l(DefaultGlobber.stat(t,e,d));if(!s){continue}if(s.isDirectory()){if(i&h.MatchKind.Directory&&e.matchDirectories){yield yield l(t.path)}else if(!r){continue}const p=t.level+1;const d=(yield l(m.promises.readdir(t.path))).map((e=>new w.SearchState(c.join(t.path,e),p)));a.push(...d.reverse())}else if(i&h.MatchKind.File){yield yield l(t.path)}}}))}static create(e,p){return r(this,void 0,void 0,(function*(){const a=new DefaultGlobber(p);if(g){e=e.replace(/\r\n/g,"\n");e=e.replace(/\r/g,"\n")}const d=e.split("\n").map((e=>e.trim()));for(const e of d){if(!e||e.startsWith("#")){continue}else{a.patterns.push(new v.Pattern(e))}}a.searchPaths.push(...f.getSearchPaths(a.patterns));return a}))}static stat(e,p,a){return r(this,void 0,void 0,(function*(){let d;if(p.followSymbolicLinks){try{d=yield m.promises.stat(e.path)}catch(a){if(a.code==="ENOENT"){if(p.omitBrokenSymbolicLinks){n.debug(`Broken symlink '${e.path}'`);return undefined}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw a}}else{d=yield m.promises.lstat(e.path)}if(d.isDirectory()&&p.followSymbolicLinks){const p=yield m.promises.realpath(e.path);while(a.length>=e.level){a.pop()}if(a.some((e=>e===p))){n.debug(`Symlink cycle detected for path '${e.path}' and realpath '${p}'`);return undefined}a.push(p)}return d}))}}p.DefaultGlobber=DefaultGlobber},2448:function(e,p,a){"use strict";var d=this&&this.__createBinding||(Object.create?function(e,p,a,d){if(d===undefined)d=a;Object.defineProperty(e,d,{enumerable:true,get:function(){return p[a]}})}:function(e,p,a,d){if(d===undefined)d=a;e[d]=p[a]});var t=this&&this.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:true,value:p})}:function(e,p){e["default"]=p});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))d(p,e,a);t(p,e);return p};var r=this&&this.__awaiter||function(e,p,a,d){function adopt(e){return e instanceof a?e:new a((function(p){p(e)}))}return new(a||(a=Promise))((function(a,t){function fulfilled(e){try{step(d.next(e))}catch(e){t(e)}}function rejected(e){try{step(d["throw"](e))}catch(e){t(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((d=d.apply(e,p||[])).next())}))};var s=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var p=e[Symbol.asyncIterator],a;return p?p.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),a={},verb("next"),verb("throw"),verb("return"),a[Symbol.asyncIterator]=function(){return this},a);function verb(p){a[p]=e[p]&&function(a){return new Promise((function(d,t){a=e[p](a),settle(d,t,a.done,a.value)}))}}function settle(e,p,a,d){Promise.resolve(d).then((function(p){e({value:p,done:a})}),p)}};Object.defineProperty(p,"__esModule",{value:true});p.hashFiles=void 0;const l=i(a(6417));const o=i(a(2186));const n=i(a(5747));const m=i(a(2413));const u=i(a(1669));const c=i(a(5622));function hashFiles(e){var p,a;var d;return r(this,void 0,void 0,(function*(){let t=false;const i=(d=process.env["GITHUB_WORKSPACE"])!==null&&d!==void 0?d:process.cwd();const r=l.createHash("sha256");let f=0;try{for(var h=s(e.globGenerator()),v;v=yield h.next(),!v.done;){const e=v.value;o.debug(e);if(!e.startsWith(`${i}${c.sep}`)){o.debug(`Ignore '${e}' since it is not under GITHUB_WORKSPACE.`);continue}if(n.statSync(e).isDirectory()){o.debug(`Skip directory '${e}'.`);continue}const p=l.createHash("sha256");const a=u.promisify(m.pipeline);yield a(n.createReadStream(e),p);r.write(p.digest());f++;if(!t){t=true}}}catch(e){p={error:e}}finally{try{if(v&&!v.done&&(a=h.return))yield a.call(h)}finally{if(p)throw p.error}}r.end();if(t){o.debug(`Found ${f} files to hash.`);return r.digest("hex")}else{o.debug(`No matches found for glob`);return""}}))}p.hashFiles=hashFiles},1063:(e,p)=>{"use strict";Object.defineProperty(p,"__esModule",{value:true});p.MatchKind=void 0;var a;(function(e){e[e["None"]=0]="None";e[e["Directory"]=1]="Directory";e[e["File"]=2]="File";e[e["All"]=3]="All"})(a=p.MatchKind||(p.MatchKind={}))},1849:function(e,p,a){"use strict";var d=this&&this.__createBinding||(Object.create?function(e,p,a,d){if(d===undefined)d=a;Object.defineProperty(e,d,{enumerable:true,get:function(){return p[a]}})}:function(e,p,a,d){if(d===undefined)d=a;e[d]=p[a]});var t=this&&this.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:true,value:p})}:function(e,p){e["default"]=p});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))d(p,e,a);t(p,e);return p};var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(p,"__esModule",{value:true});p.safeTrimTrailingSeparator=p.normalizeSeparators=p.hasRoot=p.hasAbsoluteRoot=p.ensureAbsoluteRoot=p.dirname=void 0;const s=i(a(5622));const l=r(a(2357));const o=process.platform==="win32";function dirname(e){e=safeTrimTrailingSeparator(e);if(o&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(e)){return e}let p=s.dirname(e);if(o&&/^\\\\[^\\]+\\[^\\]+\\$/.test(p)){p=safeTrimTrailingSeparator(p)}return p}p.dirname=dirname;function ensureAbsoluteRoot(e,p){l.default(e,`ensureAbsoluteRoot parameter 'root' must not be empty`);l.default(p,`ensureAbsoluteRoot parameter 'itemPath' must not be empty`);if(hasAbsoluteRoot(p)){return p}if(o){if(p.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let e=process.cwd();l.default(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);if(p[0].toUpperCase()===e[0].toUpperCase()){if(p.length===2){return`${p[0]}:\\${e.substr(3)}`}else{if(!e.endsWith("\\")){e+="\\"}return`${p[0]}:\\${e.substr(3)}${p.substr(2)}`}}else{return`${p[0]}:\\${p.substr(2)}`}}else if(normalizeSeparators(p).match(/^\\$|^\\[^\\]/)){const e=process.cwd();l.default(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);return`${e[0]}:\\${p.substr(1)}`}}l.default(hasAbsoluteRoot(e),`ensureAbsoluteRoot parameter 'root' must have an absolute root`);if(e.endsWith("/")||o&&e.endsWith("\\")){}else{e+=s.sep}return e+p}p.ensureAbsoluteRoot=ensureAbsoluteRoot;function hasAbsoluteRoot(e){l.default(e,`hasAbsoluteRoot parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(o){return e.startsWith("\\\\")||/^[A-Z]:\\/i.test(e)}return e.startsWith("/")}p.hasAbsoluteRoot=hasAbsoluteRoot;function hasRoot(e){l.default(e,`isRooted parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(o){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}p.hasRoot=hasRoot;function normalizeSeparators(e){e=e||"";if(o){e=e.replace(/\//g,"\\");const p=/^\\\\+[^\\]/.test(e);return(p?"\\":"")+e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}p.normalizeSeparators=normalizeSeparators;function safeTrimTrailingSeparator(e){if(!e){return""}e=normalizeSeparators(e);if(!e.endsWith(s.sep)){return e}if(e===s.sep){return e}if(o&&/^[A-Z]:\\$/i.test(e)){return e}return e.substr(0,e.length-1)}p.safeTrimTrailingSeparator=safeTrimTrailingSeparator},6836:function(e,p,a){"use strict";var d=this&&this.__createBinding||(Object.create?function(e,p,a,d){if(d===undefined)d=a;Object.defineProperty(e,d,{enumerable:true,get:function(){return p[a]}})}:function(e,p,a,d){if(d===undefined)d=a;e[d]=p[a]});var t=this&&this.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:true,value:p})}:function(e,p){e["default"]=p});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))d(p,e,a);t(p,e);return p};var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(p,"__esModule",{value:true});p.Path=void 0;const s=i(a(5622));const l=i(a(1849));const o=r(a(2357));const n=process.platform==="win32";class Path{constructor(e){this.segments=[];if(typeof e==="string"){o.default(e,`Parameter 'itemPath' must not be empty`);e=l.safeTrimTrailingSeparator(e);if(!l.hasRoot(e)){this.segments=e.split(s.sep)}else{let p=e;let a=l.dirname(p);while(a!==p){const e=s.basename(p);this.segments.unshift(e);p=a;a=l.dirname(p)}this.segments.unshift(p)}}else{o.default(e.length>0,`Parameter 'itemPath' must not be an empty array`);for(let p=0;p!e.negate));const p={};for(const a of e){const e=l?a.searchPath.toUpperCase():a.searchPath;p[e]="candidate"}const a=[];for(const d of e){const e=l?d.searchPath.toUpperCase():d.searchPath;if(p[e]==="included"){continue}let t=false;let i=e;let s=r.dirname(i);while(s!==i){if(p[s]){t=true;break}i=s;s=r.dirname(i)}if(!t){a.push(d.searchPath);p[e]="included"}}return a}p.getSearchPaths=getSearchPaths;function match(e,p){let a=s.MatchKind.None;for(const d of e){if(d.negate){a&=~d.match(p)}else{a|=d.match(p)}}return a}p.match=match;function partialMatch(e,p){return e.some((e=>!e.negate&&e.partialMatch(p)))}p.partialMatch=partialMatch},4536:function(e,p,a){"use strict";var d=this&&this.__createBinding||(Object.create?function(e,p,a,d){if(d===undefined)d=a;Object.defineProperty(e,d,{enumerable:true,get:function(){return p[a]}})}:function(e,p,a,d){if(d===undefined)d=a;e[d]=p[a]});var t=this&&this.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:true,value:p})}:function(e,p){e["default"]=p});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))d(p,e,a);t(p,e);return p};var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(p,"__esModule",{value:true});p.Pattern=void 0;const s=i(a(2087));const l=i(a(5622));const o=i(a(1849));const n=r(a(2357));const m=a(3973);const u=a(1063);const c=a(6836);const f=process.platform==="win32";class Pattern{constructor(e,p=false,a,d){this.negate=false;let t;if(typeof e==="string"){t=e.trim()}else{a=a||[];n.default(a.length,`Parameter 'segments' must not empty`);const p=Pattern.getLiteral(a[0]);n.default(p&&o.hasAbsoluteRoot(p),`Parameter 'segments' first element must be a root path`);t=new c.Path(a).toString().trim();if(e){t=`!${t}`}}while(t.startsWith("!")){this.negate=!this.negate;t=t.substr(1).trim()}t=Pattern.fixupPattern(t,d);this.segments=new c.Path(t).segments;this.trailingSeparator=o.normalizeSeparators(t).endsWith(l.sep);t=o.safeTrimTrailingSeparator(t);let i=false;const r=this.segments.map((e=>Pattern.getLiteral(e))).filter((e=>!i&&!(i=e==="")));this.searchPath=new c.Path(r).toString();this.rootRegExp=new RegExp(Pattern.regExpEscape(r[0]),f?"i":"");this.isImplicitPattern=p;const s={dot:true,nobrace:true,nocase:f,nocomment:true,noext:true,nonegate:true};t=f?t.replace(/\\/g,"/"):t;this.minimatch=new m.Minimatch(t,s)}match(e){if(this.segments[this.segments.length-1]==="**"){e=o.normalizeSeparators(e);if(!e.endsWith(l.sep)&&this.isImplicitPattern===false){e=`${e}${l.sep}`}}else{e=o.safeTrimTrailingSeparator(e)}if(this.minimatch.match(e)){return this.trailingSeparator?u.MatchKind.Directory:u.MatchKind.All}return u.MatchKind.None}partialMatch(e){e=o.safeTrimTrailingSeparator(e);if(o.dirname(e)===e){return this.rootRegExp.test(e)}return this.minimatch.matchOne(e.split(f?/\\+/:/\/+/),this.minimatch.set[0],true)}static globEscape(e){return(f?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,p){n.default(e,"pattern cannot be empty");const a=new c.Path(e).segments.map((e=>Pattern.getLiteral(e)));n.default(a.every(((e,p)=>(e!=="."||p===0)&&e!=="..")),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`);n.default(!o.hasRoot(e)||a[0],`Invalid pattern '${e}'. Root segment must not contain globs.`);e=o.normalizeSeparators(e);if(e==="."||e.startsWith(`.${l.sep}`)){e=Pattern.globEscape(process.cwd())+e.substr(1)}else if(e==="~"||e.startsWith(`~${l.sep}`)){p=p||s.homedir();n.default(p,"Unable to determine HOME directory");n.default(o.hasAbsoluteRoot(p),`Expected HOME directory to be a rooted path. Actual '${p}'`);e=Pattern.globEscape(p)+e.substr(1)}else if(f&&(e.match(/^[A-Z]:$/i)||e.match(/^[A-Z]:[^\\]/i))){let p=o.ensureAbsoluteRoot("C:\\dummy-root",e.substr(0,2));if(e.length>2&&!p.endsWith("\\")){p+="\\"}e=Pattern.globEscape(p)+e.substr(2)}else if(f&&(e==="\\"||e.match(/^\\[^\\]/))){let p=o.ensureAbsoluteRoot("C:\\dummy-root","\\");if(!p.endsWith("\\")){p+="\\"}e=Pattern.globEscape(p)+e.substr(1)}else{e=o.ensureAbsoluteRoot(Pattern.globEscape(process.cwd()),e)}return o.normalizeSeparators(e)}static getLiteral(e){let p="";for(let a=0;a=0){if(d.length>1){return""}if(d){p+=d;a=t;continue}}}p+=d}return p}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,"\\$&")}}p.Pattern=Pattern},9117:(e,p)=>{"use strict";Object.defineProperty(p,"__esModule",{value:true});p.SearchState=void 0;class SearchState{constructor(e,p){this.path=e;this.level=p}}p.SearchState=SearchState},3702:(e,p)=>{"use strict";Object.defineProperty(p,"__esModule",{value:true});class BasicCredentialHandler{constructor(e,p){this.username=e;this.password=p}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from(this.username+":"+this.password).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,p,a){return null}}p.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Bearer "+this.token}canHandleAuthentication(e){return false}handleAuthentication(e,p,a){return null}}p.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from("PAT:"+this.token).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,p,a){return null}}p.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},9925:(e,p,a)=>{"use strict";Object.defineProperty(p,"__esModule",{value:true});const d=a(8605);const t=a(7211);const i=a(6443);let r;var 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"})(s=p.HttpCodes||(p.HttpCodes={}));var l;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(l=p.Headers||(p.Headers={}));var o;(function(e){e["ApplicationJson"]="application/json"})(o=p.MediaTypes||(p.MediaTypes={}));function getProxyUrl(e){let p=i.getProxyUrl(new URL(e));return p?p.href:""}p.getProxyUrl=getProxyUrl;const n=[s.MovedPermanently,s.ResourceMoved,s.SeeOther,s.TemporaryRedirect,s.PermanentRedirect];const m=[s.BadGateway,s.ServiceUnavailable,s.GatewayTimeout];const u=["OPTIONS","GET","DELETE","HEAD"];const c=10;const f=5;class HttpClientError extends Error{constructor(e,p){super(e);this.name="HttpClientError";this.statusCode=p;Object.setPrototypeOf(this,HttpClientError.prototype)}}p.HttpClientError=HttpClientError;class HttpClientResponse{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())}))}))}}p.HttpClientResponse=HttpClientResponse;function isHttps(e){let p=new URL(e);return p.protocol==="https:"}p.isHttps=isHttps;class HttpClient{constructor(e,p,a){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=p||[];this.requestOptions=a;if(a){if(a.ignoreSslError!=null){this._ignoreSslError=a.ignoreSslError}this._socketTimeout=a.socketTimeout;if(a.allowRedirects!=null){this._allowRedirects=a.allowRedirects}if(a.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=a.allowRedirectDowngrade}if(a.maxRedirects!=null){this._maxRedirects=Math.max(a.maxRedirects,0)}if(a.keepAlive!=null){this._keepAlive=a.keepAlive}if(a.allowRetries!=null){this._allowRetries=a.allowRetries}if(a.maxRetries!=null){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,d){return this.request(e,p,a,d)}async getJson(e,p={}){p[l.Accept]=this._getExistingOrDefaultHeader(p,l.Accept,o.ApplicationJson);let a=await this.get(e,p);return this._processResponse(a,this.requestOptions)}async postJson(e,p,a={}){let d=JSON.stringify(p,null,2);a[l.Accept]=this._getExistingOrDefaultHeader(a,l.Accept,o.ApplicationJson);a[l.ContentType]=this._getExistingOrDefaultHeader(a,l.ContentType,o.ApplicationJson);let t=await this.post(e,d,a);return this._processResponse(t,this.requestOptions)}async putJson(e,p,a={}){let d=JSON.stringify(p,null,2);a[l.Accept]=this._getExistingOrDefaultHeader(a,l.Accept,o.ApplicationJson);a[l.ContentType]=this._getExistingOrDefaultHeader(a,l.ContentType,o.ApplicationJson);let t=await this.put(e,d,a);return this._processResponse(t,this.requestOptions)}async patchJson(e,p,a={}){let d=JSON.stringify(p,null,2);a[l.Accept]=this._getExistingOrDefaultHeader(a,l.Accept,o.ApplicationJson);a[l.ContentType]=this._getExistingOrDefaultHeader(a,l.ContentType,o.ApplicationJson);let t=await this.patch(e,d,a);return this._processResponse(t,this.requestOptions)}async request(e,p,a,d){if(this._disposed){throw new Error("Client has already been disposed.")}let t=new URL(p);let i=this._prepareRequest(e,t,d);let r=this._allowRetries&&u.indexOf(e)!=-1?this._maxRetries+1:1;let l=0;let o;while(l0){const r=o.message.headers["location"];if(!r){break}let s=new URL(r);if(t.protocol=="https:"&&t.protocol!=s.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}await o.readBody();if(s.hostname!==t.hostname){for(let e in d){if(e.toLowerCase()==="authorization"){delete d[e]}}}i=this._prepareRequest(e,s,d);o=await this.requestRaw(i,a);p--}if(m.indexOf(o.message.statusCode)==-1){return o}l+=1;if(l{let callbackForResult=function(e,p){if(e){d(e)}a(p)};this.requestRawWithCallback(e,p,callbackForResult)}))}requestRawWithCallback(e,p,a){let d;if(typeof p==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(p,"utf8")}let t=false;let handleResult=(e,p)=>{if(!t){t=true;a(e,p)}};let i=e.httpModule.request(e.options,(e=>{let p=new HttpClientResponse(e);handleResult(null,p)}));i.on("socket",(e=>{d=e}));i.setTimeout(this._socketTimeout||3*6e4,(()=>{if(d){d.end()}handleResult(new Error("Request timeout: "+e.options.path),null)}));i.on("error",(function(e){handleResult(e,null)}));if(p&&typeof p==="string"){i.write(p,"utf8")}if(p&&typeof p!=="string"){p.on("close",(function(){i.end()}));p.pipe(i)}else{i.end()}}getAgent(e){let p=new URL(e);return this._getAgent(p)}_prepareRequest(e,p,a){const i={};i.parsedUrl=p;const r=i.parsedUrl.protocol==="https:";i.httpModule=r?t:d;const s=r?443:80;i.options={};i.options.host=i.parsedUrl.hostname;i.options.port=i.parsedUrl.port?parseInt(i.parsedUrl.port):s;i.options.path=(i.parsedUrl.pathname||"")+(i.parsedUrl.search||"");i.options.method=e;i.options.headers=this._mergeHeaders(a);if(this.userAgent!=null){i.options.headers["user-agent"]=this.userAgent}i.options.agent=this._getAgent(i.parsedUrl);if(this.handlers){this.handlers.forEach((e=>{e.prepareRequest(i.options)}))}return i}_mergeHeaders(e){const lowercaseKeys=e=>Object.keys(e).reduce(((p,a)=>(p[a.toLowerCase()]=e[a],p)),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,p,a){const lowercaseKeys=e=>Object.keys(e).reduce(((p,a)=>(p[a.toLowerCase()]=e[a],p)),{});let d;if(this.requestOptions&&this.requestOptions.headers){d=lowercaseKeys(this.requestOptions.headers)[p]}return e[p]||d||a}_getAgent(e){let p;let s=i.getProxyUrl(e);let l=s&&s.hostname;if(this._keepAlive&&l){p=this._proxyAgent}if(this._keepAlive&&!l){p=this._agent}if(!!p){return p}const o=e.protocol==="https:";let n=100;if(!!this.requestOptions){n=this.requestOptions.maxSockets||d.globalAgent.maxSockets}if(l){if(!r){r=a(4294)}const e={maxSockets:n,keepAlive:this._keepAlive,proxy:{...(s.username||s.password)&&{proxyAuth:`${s.username}:${s.password}`},host:s.hostname,port:s.port}};let d;const t=s.protocol==="https:";if(o){d=t?r.httpsOverHttps:r.httpsOverHttp}else{d=t?r.httpOverHttps:r.httpOverHttp}p=d(e);this._proxyAgent=p}if(this._keepAlive&&!p){const e={keepAlive:this._keepAlive,maxSockets:n};p=o?new t.Agent(e):new d.Agent(e);this._agent=p}if(!p){p=o?t.globalAgent:d.globalAgent}if(o&&this._ignoreSslError){p.options=Object.assign(p.options||{},{rejectUnauthorized:false})}return p}_performExponentialBackoff(e){e=Math.min(c,e);const p=f*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),p)))}static dateTimeDeserializer(e,p){if(typeof p==="string"){let e=new Date(p);if(!isNaN(e.valueOf())){return e}}return p}async _processResponse(e,p){return new Promise((async(a,d)=>{const t=e.message.statusCode;const i={statusCode:t,result:null,headers:{}};if(t==s.NotFound){a(i)}let r;let l;try{l=await e.readBody();if(l&&l.length>0){if(p&&p.deserializeDates){r=JSON.parse(l,HttpClient.dateTimeDeserializer)}else{r=JSON.parse(l)}i.result=r}i.headers=e.message.headers}catch(e){}if(t>299){let e;if(r&&r.message){e=r.message}else if(l&&l.length>0){e=l}else{e="Failed request: ("+t+")"}let p=new HttpClientError(e,t);p.result=i.result;d(p)}else{a(i)}}))}}p.HttpClient=HttpClient},6443:(e,p)=>{"use strict";Object.defineProperty(p,"__esModule",{value:true});function getProxyUrl(e){let p=e.protocol==="https:";let a;if(checkBypass(e)){return a}let d;if(p){d=process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{d=process.env["http_proxy"]||process.env["HTTP_PROXY"]}if(d){a=new URL(d)}return a}p.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}let p=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!p){return false}let a;if(e.port){a=Number(e.port)}else if(e.protocol==="http:"){a=80}else if(e.protocol==="https:"){a=443}let d=[e.hostname.toUpperCase()];if(typeof a==="number"){d.push(`${d[0]}:${a}`)}for(let e of p.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(d.some((p=>p===e))){return true}}return false}p.checkBypass=checkBypass},1962:function(e,p,a){"use strict";var d=this&&this.__createBinding||(Object.create?function(e,p,a,d){if(d===undefined)d=a;Object.defineProperty(e,d,{enumerable:true,get:function(){return p[a]}})}:function(e,p,a,d){if(d===undefined)d=a;e[d]=p[a]});var t=this&&this.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:true,value:p})}:function(e,p){e["default"]=p});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))d(p,e,a);t(p,e);return p};var r=this&&this.__awaiter||function(e,p,a,d){function adopt(e){return e instanceof a?e:new a((function(p){p(e)}))}return new(a||(a=Promise))((function(a,t){function fulfilled(e){try{step(d.next(e))}catch(e){t(e)}}function rejected(e){try{step(d["throw"](e))}catch(e){t(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((d=d.apply(e,p||[])).next())}))};var s;Object.defineProperty(p,"__esModule",{value:true});p.getCmdPath=p.tryGetExecutablePath=p.isRooted=p.isDirectory=p.exists=p.IS_WINDOWS=p.unlink=p.symlink=p.stat=p.rmdir=p.rename=p.readlink=p.readdir=p.mkdir=p.lstat=p.copyFile=p.chmod=void 0;const l=i(a(5747));const o=i(a(5622));s=l.promises,p.chmod=s.chmod,p.copyFile=s.copyFile,p.lstat=s.lstat,p.mkdir=s.mkdir,p.readdir=s.readdir,p.readlink=s.readlink,p.rename=s.rename,p.rmdir=s.rmdir,p.stat=s.stat,p.symlink=s.symlink,p.unlink=s.unlink;p.IS_WINDOWS=process.platform==="win32";function exists(e){return r(this,void 0,void 0,(function*(){try{yield p.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}p.exists=exists;function isDirectory(e,a=false){return r(this,void 0,void 0,(function*(){const d=a?yield p.stat(e):yield p.lstat(e);return d.isDirectory()}))}p.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(p.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}p.isRooted=isRooted;function tryGetExecutablePath(e,a){return r(this,void 0,void 0,(function*(){let d=undefined;try{d=yield p.stat(e)}catch(p){if(p.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${p}`)}}if(d&&d.isFile()){if(p.IS_WINDOWS){const p=o.extname(e).toUpperCase();if(a.some((e=>e.toUpperCase()===p))){return e}}else{if(isUnixExecutable(d)){return e}}}const t=e;for(const i of a){e=t+i;d=undefined;try{d=yield p.stat(e)}catch(p){if(p.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${p}`)}}if(d&&d.isFile()){if(p.IS_WINDOWS){try{const a=o.dirname(e);const d=o.basename(e).toUpperCase();for(const t of yield p.readdir(a)){if(d===t.toUpperCase()){e=o.join(a,t);break}}}catch(p){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${p}`)}return e}else{if(isUnixExecutable(d)){return e}}}}return""}))}p.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(p.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}function getCmdPath(){var e;return(e=process.env["COMSPEC"])!==null&&e!==void 0?e:`cmd.exe`}p.getCmdPath=getCmdPath},7436:function(e,p,a){"use strict";var d=this&&this.__createBinding||(Object.create?function(e,p,a,d){if(d===undefined)d=a;Object.defineProperty(e,d,{enumerable:true,get:function(){return p[a]}})}:function(e,p,a,d){if(d===undefined)d=a;e[d]=p[a]});var t=this&&this.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:true,value:p})}:function(e,p){e["default"]=p});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))d(p,e,a);t(p,e);return p};var r=this&&this.__awaiter||function(e,p,a,d){function adopt(e){return e instanceof a?e:new a((function(p){p(e)}))}return new(a||(a=Promise))((function(a,t){function fulfilled(e){try{step(d.next(e))}catch(e){t(e)}}function rejected(e){try{step(d["throw"](e))}catch(e){t(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((d=d.apply(e,p||[])).next())}))};Object.defineProperty(p,"__esModule",{value:true});p.findInPath=p.which=p.mkdirP=p.rmRF=p.mv=p.cp=void 0;const s=a(2357);const l=i(a(3129));const o=i(a(5622));const n=a(1669);const m=i(a(1962));const u=n.promisify(l.exec);const c=n.promisify(l.execFile);function cp(e,p,a={}){return r(this,void 0,void 0,(function*(){const{force:d,recursive:t,copySourceDirectory:i}=readCopyOptions(a);const r=(yield m.exists(p))?yield m.stat(p):null;if(r&&r.isFile()&&!d){return}const s=r&&r.isDirectory()&&i?o.join(p,o.basename(e)):p;if(!(yield m.exists(e))){throw new Error(`no such file or directory: ${e}`)}const l=yield m.stat(e);if(l.isDirectory()){if(!t){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,s,0,d)}}else{if(o.relative(e,s)===""){throw new Error(`'${s}' and '${e}' are the same file`)}yield copyFile(e,s,d)}}))}p.cp=cp;function mv(e,p,a={}){return r(this,void 0,void 0,(function*(){if(yield m.exists(p)){let d=true;if(yield m.isDirectory(p)){p=o.join(p,o.basename(e));d=yield m.exists(p)}if(d){if(a.force==null||a.force){yield rmRF(p)}else{throw new Error("Destination already exists")}}}yield mkdirP(o.dirname(p));yield m.rename(e,p)}))}p.mv=mv;function rmRF(e){return r(this,void 0,void 0,(function*(){if(m.IS_WINDOWS){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}try{const p=m.getCmdPath();if(yield m.isDirectory(e,true)){yield u(`${p} /s /c "rd /s /q "%inputPath%""`,{env:{inputPath:e}})}else{yield u(`${p} /s /c "del /f /a "%inputPath%""`,{env:{inputPath:e}})}}catch(e){if(e.code!=="ENOENT")throw e}try{yield m.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let p=false;try{p=yield m.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(p){yield c(`rm`,[`-rf`,`${e}`])}else{yield m.unlink(e)}}}))}p.rmRF=rmRF;function mkdirP(e){return r(this,void 0,void 0,(function*(){s.ok(e,"a path argument must be provided");yield m.mkdir(e,{recursive:true})}))}p.mkdirP=mkdirP;function which(e,p){return r(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(p){const p=yield which(e,false);if(!p){if(m.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. 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.`)}else{throw new Error(`Unable to locate executable file: ${e}. 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 p}const a=yield findInPath(e);if(a&&a.length>0){return a[0]}return""}))}p.which=which;function findInPath(e){return r(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const p=[];if(m.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(o.delimiter)){if(e){p.push(e)}}}if(m.isRooted(e)){const a=yield m.tryGetExecutablePath(e,p);if(a){return[a]}return[]}if(e.includes(o.sep)){return[]}const a=[];if(process.env.PATH){for(const e of process.env.PATH.split(o.delimiter)){if(e){a.push(e)}}}const d=[];for(const t of a){const a=yield m.tryGetExecutablePath(o.join(t,e),p);if(a){d.push(a)}}return d}))}p.findInPath=findInPath;function readCopyOptions(e){const p=e.force==null?true:e.force;const a=Boolean(e.recursive);const d=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:p,recursive:a,copySourceDirectory:d}}function cpDirRecursive(e,p,a,d){return r(this,void 0,void 0,(function*(){if(a>=255)return;a++;yield mkdirP(p);const t=yield m.readdir(e);for(const i of t){const t=`${e}/${i}`;const r=`${p}/${i}`;const s=yield m.lstat(t);if(s.isDirectory()){yield cpDirRecursive(t,r,a,d)}else{yield copyFile(t,r,d)}}yield m.chmod(p,(yield m.stat(e)).mode)}))}function copyFile(e,p,a){return r(this,void 0,void 0,(function*(){if((yield m.lstat(e)).isSymbolicLink()){try{yield m.lstat(p);yield m.unlink(p)}catch(e){if(e.code==="EPERM"){yield m.chmod(p,"0666");yield m.unlink(p)}}const a=yield m.readlink(e);yield m.symlink(a,p,m.IS_WINDOWS?"junction":null)}else if(!(yield m.exists(p))||a){yield m.copyFile(e,p)}}))}},2473:function(e,p,a){"use strict";var d=this&&this.__createBinding||(Object.create?function(e,p,a,d){if(d===undefined)d=a;Object.defineProperty(e,d,{enumerable:true,get:function(){return p[a]}})}:function(e,p,a,d){if(d===undefined)d=a;e[d]=p[a]});var t=this&&this.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:true,value:p})}:function(e,p){e["default"]=p});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))d(p,e,a);t(p,e);return p};var r=this&&this.__awaiter||function(e,p,a,d){function adopt(e){return e instanceof a?e:new a((function(p){p(e)}))}return new(a||(a=Promise))((function(a,t){function fulfilled(e){try{step(d.next(e))}catch(e){t(e)}}function rejected(e){try{step(d["throw"](e))}catch(e){t(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((d=d.apply(e,p||[])).next())}))};Object.defineProperty(p,"__esModule",{value:true});p._readLinuxVersionFile=p._getOsVersion=p._findMatch=void 0;const s=i(a(5911));const l=a(2186);const o=a(2087);const n=a(3129);const m=a(5747);function _findMatch(p,a,d,t){return r(this,void 0,void 0,(function*(){const i=o.platform();let r;let n;let m;for(const r of d){const d=r.version;l.debug(`check ${d} satisfies ${p}`);if(s.satisfies(d,p)&&(!a||r.stable===a)){m=r.files.find((p=>{l.debug(`${p.arch}===${t} && ${p.platform}===${i}`);let a=p.arch===t&&p.platform===i;if(a&&p.platform_version){const d=e.exports._getOsVersion();if(d===p.platform_version){a=true}else{a=s.satisfies(d,p.platform_version)}}return a}));if(m){l.debug(`matched ${r.version}`);n=r;break}}}if(n&&m){r=Object.assign({},n);r.files=[m]}return r}))}p._findMatch=_findMatch;function _getOsVersion(){const p=o.platform();let a="";if(p==="darwin"){a=n.execSync("sw_vers -productVersion").toString()}else if(p==="linux"){const p=e.exports._readLinuxVersionFile();if(p){const e=p.split("\n");for(const p of e){const e=p.split("=");if(e.length===2&&(e[0].trim()==="VERSION_ID"||e[0].trim()==="DISTRIB_RELEASE")){a=e[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return a}p._getOsVersion=_getOsVersion;function _readLinuxVersionFile(){const e="/etc/lsb-release";const p="/etc/os-release";let a="";if(m.existsSync(e)){a=m.readFileSync(e).toString()}else if(m.existsSync(p)){a=m.readFileSync(p).toString()}return a}p._readLinuxVersionFile=_readLinuxVersionFile},8279:function(e,p,a){"use strict";var d=this&&this.__createBinding||(Object.create?function(e,p,a,d){if(d===undefined)d=a;Object.defineProperty(e,d,{enumerable:true,get:function(){return p[a]}})}:function(e,p,a,d){if(d===undefined)d=a;e[d]=p[a]});var t=this&&this.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:true,value:p})}:function(e,p){e["default"]=p});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))d(p,e,a);t(p,e);return p};var r=this&&this.__awaiter||function(e,p,a,d){function adopt(e){return e instanceof a?e:new a((function(p){p(e)}))}return new(a||(a=Promise))((function(a,t){function fulfilled(e){try{step(d.next(e))}catch(e){t(e)}}function rejected(e){try{step(d["throw"](e))}catch(e){t(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((d=d.apply(e,p||[])).next())}))};Object.defineProperty(p,"__esModule",{value:true});p.RetryHelper=void 0;const s=i(a(2186));class RetryHelper{constructor(e,p,a){if(e<1){throw new Error("max attempts should be greater than or equal to 1")}this.maxAttempts=e;this.minSeconds=Math.floor(p);this.maxSeconds=Math.floor(a);if(this.minSeconds>this.maxSeconds){throw new Error("min seconds should be less than or equal to max seconds")}}execute(e,p){return r(this,void 0,void 0,(function*(){let a=1;while(asetTimeout(p,e*1e3)))}))}}p.RetryHelper=RetryHelper},7784:function(e,p,a){"use strict";var d=this&&this.__createBinding||(Object.create?function(e,p,a,d){if(d===undefined)d=a;Object.defineProperty(e,d,{enumerable:true,get:function(){return p[a]}})}:function(e,p,a,d){if(d===undefined)d=a;e[d]=p[a]});var t=this&&this.__setModuleDefault||(Object.create?function(e,p){Object.defineProperty(e,"default",{enumerable:true,value:p})}:function(e,p){e["default"]=p});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var p={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))d(p,e,a);t(p,e);return p};var r=this&&this.__awaiter||function(e,p,a,d){function adopt(e){return e instanceof a?e:new a((function(p){p(e)}))}return new(a||(a=Promise))((function(a,t){function fulfilled(e){try{step(d.next(e))}catch(e){t(e)}}function rejected(e){try{step(d["throw"](e))}catch(e){t(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((d=d.apply(e,p||[])).next())}))};var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(p,"__esModule",{value:true});p.evaluateVersions=p.isExplicitVersion=p.findFromManifest=p.getManifestFromRepo=p.findAllVersions=p.find=p.cacheFile=p.cacheDir=p.extractZip=p.extractXar=p.extractTar=p.extract7z=p.downloadTool=p.HTTPError=void 0;const l=i(a(2186));const o=i(a(7436));const n=i(a(5747));const m=i(a(2473));const u=i(a(2087));const c=i(a(5622));const f=i(a(9925));const h=i(a(5911));const v=i(a(2413));const w=i(a(1669));const g=s(a(824));const y=a(1514);const _=a(2357);const b=a(8279);class HTTPError extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`);this.httpStatusCode=e;Object.setPrototypeOf(this,new.target.prototype)}}p.HTTPError=HTTPError;const S=process.platform==="win32";const N=process.platform==="darwin";const E="actions/tool-cache";function downloadTool(e,p,a,d){return r(this,void 0,void 0,(function*(){p=p||c.join(_getTempDirectory(),g.default());yield o.mkdirP(c.dirname(p));l.debug(`Downloading ${e}`);l.debug(`Destination ${p}`);const t=3;const i=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10);const s=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);const n=new b.RetryHelper(t,i,s);return yield n.execute((()=>r(this,void 0,void 0,(function*(){return yield downloadToolAttempt(e,p||"",a,d)}))),(e=>{if(e instanceof HTTPError&&e.httpStatusCode){if(e.httpStatusCode<500&&e.httpStatusCode!==408&&e.httpStatusCode!==429){return false}}return true}))}))}p.downloadTool=downloadTool;function downloadToolAttempt(e,p,a,d){return r(this,void 0,void 0,(function*(){if(n.existsSync(p)){throw new Error(`Destination file path ${p} already exists`)}const t=new f.HttpClient(E,[],{allowRetries:false});if(a){l.debug("set auth");if(d===undefined){d={}}d.authorization=a}const i=yield t.get(e,d);if(i.message.statusCode!==200){const p=new HTTPError(i.message.statusCode);l.debug(`Failed to download from "${e}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`);throw p}const r=w.promisify(v.pipeline);const s=_getGlobal("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>i.message));const m=s();let u=false;try{yield r(m,n.createWriteStream(p));l.debug("download complete");u=true;return p}finally{if(!u){l.debug("download failed");try{yield o.rmRF(p)}catch(e){l.debug(`Failed to delete '${p}'. ${e.message}`)}}}}))}function extract7z(e,p,a){return r(this,void 0,void 0,(function*(){_.ok(S,"extract7z() not supported on current OS");_.ok(e,'parameter "file" is required');p=yield _createExtractFolder(p);const d=process.cwd();process.chdir(p);if(a){try{const p=l.isDebug()?"-bb1":"-bb0";const t=["x",p,"-bd","-sccUTF-8",e];const i={silent:true};yield y.exec(`"${a}"`,t,i)}finally{process.chdir(d)}}else{const a=c.join(__dirname,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"");const t=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const i=p.replace(/'/g,"''").replace(/"|\n|\r/g,"");const r=`& '${a}' -Source '${t}' -Target '${i}'`;const s=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",r];const l={silent:true};try{const e=yield o.which("powershell",true);yield y.exec(`"${e}"`,s,l)}finally{process.chdir(d)}}return p}))}p.extract7z=extract7z;function extractTar(e,p,a="xz"){return r(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'file' is required")}p=yield _createExtractFolder(p);l.debug("Checking tar --version");let d="";yield y.exec("tar --version",[],{ignoreReturnCode:true,silent:true,listeners:{stdout:e=>d+=e.toString(),stderr:e=>d+=e.toString()}});l.debug(d.trim());const t=d.toUpperCase().includes("GNU TAR");let i;if(a instanceof Array){i=a}else{i=[a]}if(l.isDebug()&&!a.includes("v")){i.push("-v")}let r=p;let s=e;if(S&&t){i.push("--force-local");r=p.replace(/\\/g,"/");s=e.replace(/\\/g,"/")}if(t){i.push("--warning=no-unknown-keyword");i.push("--overwrite")}i.push("-C",r,"-f",s);yield y.exec(`tar`,i);return p}))}p.extractTar=extractTar;function extractXar(e,p,a=[]){return r(this,void 0,void 0,(function*(){_.ok(N,"extractXar() not supported on current OS");_.ok(e,'parameter "file" is required');p=yield _createExtractFolder(p);let d;if(a instanceof Array){d=a}else{d=[a]}d.push("-x","-C",p,"-f",e);if(l.isDebug()){d.push("-v")}const t=yield o.which("xar",true);yield y.exec(`"${t}"`,_unique(d));return p}))}p.extractXar=extractXar;function extractZip(e,p){return r(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'file' is required")}p=yield _createExtractFolder(p);if(S){yield extractZipWin(e,p)}else{yield extractZipNix(e,p)}return p}))}p.extractZip=extractZip;function extractZipWin(e,p){return r(this,void 0,void 0,(function*(){const a=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const d=p.replace(/'/g,"''").replace(/"|\n|\r/g,"");const t=yield o.which("pwsh",false);if(t){const e=[`$ErrorActionPreference = 'Stop' ;`,`try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;`,`try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${a}', '${d}', $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 '${d}' -Force } else { throw $_ } } ;`].join(" ");const p=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e];l.debug(`Using pwsh at path: ${t}`);yield y.exec(`"${t}"`,p)}else{const e=[`$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 '${d}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${a}', '${d}', $true) }`].join(" ");const p=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e];const t=yield o.which("powershell",true);l.debug(`Using powershell at path: ${t}`);yield y.exec(`"${t}"`,p)}}))}function extractZipNix(e,p){return r(this,void 0,void 0,(function*(){const a=yield o.which("unzip",true);const d=[e];if(!l.isDebug()){d.unshift("-q")}d.unshift("-o");yield y.exec(`"${a}"`,d,{cwd:p})}))}function cacheDir(e,p,a,d){return r(this,void 0,void 0,(function*(){a=h.clean(a)||a;d=d||u.arch();l.debug(`Caching tool ${p} ${a} ${d}`);l.debug(`source dir: ${e}`);if(!n.statSync(e).isDirectory()){throw new Error("sourceDir is not a directory")}const t=yield _createToolPath(p,a,d);for(const p of n.readdirSync(e)){const a=c.join(e,p);yield o.cp(a,t,{recursive:true})}_completeToolPath(p,a,d);return t}))}p.cacheDir=cacheDir;function cacheFile(e,p,a,d,t){return r(this,void 0,void 0,(function*(){d=h.clean(d)||d;t=t||u.arch();l.debug(`Caching tool ${a} ${d} ${t}`);l.debug(`source file: ${e}`);if(!n.statSync(e).isFile()){throw new Error("sourceFile is not a file")}const i=yield _createToolPath(a,d,t);const r=c.join(i,p);l.debug(`destination file ${r}`);yield o.cp(e,r);_completeToolPath(a,d,t);return i}))}p.cacheFile=cacheFile;function find(e,p,a){if(!e){throw new Error("toolName parameter is required")}if(!p){throw new Error("versionSpec parameter is required")}a=a||u.arch();if(!isExplicitVersion(p)){const d=findAllVersions(e,a);const t=evaluateVersions(d,p);p=t}let d="";if(p){p=h.clean(p)||"";const t=c.join(_getCacheDirectory(),e,p,a);l.debug(`checking cache: ${t}`);if(n.existsSync(t)&&n.existsSync(`${t}.complete`)){l.debug(`Found tool in cache ${e} ${p} ${a}`);d=t}else{l.debug("not found")}}return d}p.find=find;function findAllVersions(e,p){const a=[];p=p||u.arch();const d=c.join(_getCacheDirectory(),e);if(n.existsSync(d)){const e=n.readdirSync(d);for(const t of e){if(isExplicitVersion(t)){const e=c.join(d,t,p||"");if(n.existsSync(e)&&n.existsSync(`${e}.complete`)){a.push(t)}}}}return a}p.findAllVersions=findAllVersions;function getManifestFromRepo(e,p,a,d="master"){return r(this,void 0,void 0,(function*(){let t=[];const i=`https://api.github.com/repos/${e}/${p}/git/trees/${d}`;const r=new f.HttpClient("tool-cache");const s={};if(a){l.debug("set auth");s.authorization=a}const o=yield r.getJson(i,s);if(!o.result){return t}let n="";for(const e of o.result.tree){if(e.path==="versions-manifest.json"){n=e.url;break}}s["accept"]="application/vnd.github.VERSION.raw";let m=yield(yield r.get(n,s)).readBody();if(m){m=m.replace(/^\uFEFF/,"");try{t=JSON.parse(m)}catch(e){l.debug("Invalid json")}}return t}))}p.getManifestFromRepo=getManifestFromRepo;function findFromManifest(e,p,a,d=u.arch()){return r(this,void 0,void 0,(function*(){const t=yield m._findMatch(e,p,a,d);return t}))}p.findFromManifest=findFromManifest;function _createExtractFolder(e){return r(this,void 0,void 0,(function*(){if(!e){e=c.join(_getTempDirectory(),g.default())}yield o.mkdirP(e);return e}))}function _createToolPath(e,p,a){return r(this,void 0,void 0,(function*(){const d=c.join(_getCacheDirectory(),e,h.clean(p)||p,a||"");l.debug(`destination ${d}`);const t=`${d}.complete`;yield o.rmRF(d);yield o.rmRF(t);yield o.mkdirP(d);return d}))}function _completeToolPath(e,p,a){const d=c.join(_getCacheDirectory(),e,h.clean(p)||p,a||"");const t=`${d}.complete`;n.writeFileSync(t,"");l.debug("finished caching tool")}function isExplicitVersion(e){const p=h.clean(e)||"";l.debug(`isExplicit: ${p}`);const a=h.valid(p)!=null;l.debug(`explicit? ${a}`);return a}p.isExplicitVersion=isExplicitVersion;function evaluateVersions(e,p){let a="";l.debug(`evaluating ${e.length} versions`);e=e.sort(((e,p)=>{if(h.gt(e,p)){return 1}return-1}));for(let d=e.length-1;d>=0;d--){const t=e[d];const i=h.satisfies(t,p);if(i){a=t;break}}if(a){l.debug(`matched: ${a}`)}else{l.debug("match not found")}return a}p.evaluateVersions=evaluateVersions;function _getCacheDirectory(){const e=process.env["RUNNER_TOOL_CACHE"]||"";_.ok(e,"Expected RUNNER_TOOL_CACHE to be defined");return e}function _getTempDirectory(){const e=process.env["RUNNER_TEMP"]||"";_.ok(e,"Expected RUNNER_TEMP to be defined");return e}function _getGlobal(e,p){const a=global[e];return a!==undefined?a:p}function _unique(e){return Array.from(new Set(e))}},9417:e=>{"use strict";e.exports=balanced;function balanced(e,p,a){if(e instanceof RegExp)e=maybeMatch(e,a);if(p instanceof RegExp)p=maybeMatch(p,a);var d=range(e,p,a);return d&&{start:d[0],end:d[1],pre:a.slice(0,d[0]),body:a.slice(d[0]+e.length,d[1]),post:a.slice(d[1]+p.length)}}function maybeMatch(e,p){var a=p.match(e);return a?a[0]:null}balanced.range=range;function range(e,p,a){var d,t,i,r,s;var l=a.indexOf(e);var o=a.indexOf(p,l+1);var n=l;if(l>=0&&o>0){if(e===p){return[l,o]}d=[];i=a.length;while(n>=0&&!s){if(n==l){d.push(n);l=a.indexOf(e,n+1)}else if(d.length==1){s=[d.pop(),o]}else{t=d.pop();if(t=0?l:o}if(d.length){s=[i,r]}}return s}},3717:(e,p,a)=>{var d=a(6891);var t=a(9417);e.exports=expandTop;var i="\0SLASH"+Math.random()+"\0";var r="\0OPEN"+Math.random()+"\0";var s="\0CLOSE"+Math.random()+"\0";var l="\0COMMA"+Math.random()+"\0";var o="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(i).split("\\{").join(r).split("\\}").join(s).split("\\,").join(l).split("\\.").join(o)}function unescapeBraces(e){return e.split(i).join("\\").split(r).join("{").split(s).join("}").split(l).join(",").split(o).join(".")}function parseCommaParts(e){if(!e)return[""];var p=[];var a=t("{","}",e);if(!a)return e.split(",");var d=a.pre;var i=a.body;var r=a.post;var s=d.split(",");s[s.length-1]+="{"+i+"}";var l=parseCommaParts(r);if(r.length){s[s.length-1]+=l.shift();s.push.apply(s,l)}p.push.apply(p,s);return p}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function identity(e){return e}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,p){return e<=p}function gte(e,p){return e>=p}function expand(e,p){var a=[];var i=t("{","}",e);if(!i||/\$$/.test(i.pre))return[e];var r=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body);var l=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body);var o=r||l;var n=i.body.indexOf(",")>=0;if(!o&&!n){if(i.post.match(/,.*\}/)){e=i.pre+"{"+i.body+s+i.post;return expand(e)}return[e]}var m;if(o){m=i.body.split(/\.\./)}else{m=parseCommaParts(i.body);if(m.length===1){m=expand(m[0],false).map(embrace);if(m.length===1){var u=i.post.length?expand(i.post,false):[""];return u.map((function(e){return i.pre+m[0]+e}))}}}var c=i.pre;var u=i.post.length?expand(i.post,false):[""];var f;if(o){var h=numeric(m[0]);var v=numeric(m[1]);var w=Math.max(m[0].length,m[1].length);var g=m.length==3?Math.abs(numeric(m[2])):1;var y=lte;var _=v0){var T=new Array(E+1).join("0");if(S<0)N="-"+T+N.slice(1);else N=T+N}}}f.push(N)}}else{f=d(m,(function(e){return expand(e,false)}))}for(var D=0;D{var p={utf8:{stringToBytes:function(e){return p.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(p.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var p=[],a=0;a{e.exports=function(e,a){var d=[];for(var t=0;t{(function(){var p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a={rotl:function(e,p){return e<>>32-p},rotr:function(e,p){return e<<32-p|e>>>p},endian:function(e){if(e.constructor==Number){return a.rotl(e,8)&16711935|a.rotl(e,24)&4278255360}for(var p=0;p0;e--)p.push(Math.floor(Math.random()*256));return p},bytesToWords:function(e){for(var p=[],a=0,d=0;a>>5]|=e[a]<<24-d%32;return p},wordsToBytes:function(e){for(var p=[],a=0;a>>5]>>>24-a%32&255);return p},bytesToHex:function(e){for(var p=[],a=0;a>>4).toString(16));p.push((e[a]&15).toString(16))}return p.join("")},hexToBytes:function(e){for(var p=[],a=0;a>>6*(3-i)&63));else a.push("=")}return a.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var a=[],d=0,t=0;d>>6-t*2)}return a}};e.exports=a})()},5625:e=>{ /*! * Determine if an object is a Buffer * diff --git a/dist/configure/index.js b/dist/configure/index.js index 754aadd..bd382df 100644 --- a/dist/configure/index.js +++ b/dist/configure/index.js @@ -1,4 +1,4 @@ -(()=>{var __webpack_modules__={4523:(e,t,a)=>{const i=a(2186);e.exports={Alpha:0,Beta:1,Release:2,getBuildLevel:()=>{const e=i.getInput("build_level");const t=e.length>0?e:process.env["AUDACITY_BUILD_LEVEL"];if(t==="beta"){return 1}else if(t==="release"){return 2}else{const e=Number(t);if(Number.isInteger(e)&&e>=0&&e<=2){return e}return 0}},getBuildSuffix:e=>{if(e==1){return"beta"}else if(e==2){return""}else{return"alpha"}}}},3319:(e,t,a)=>{const i=a(5622);const n=a(5747);const o=a(2186);const r=a(1514);const s=a(7799);const p=a(8090);const l=a(5008);async function getStdOut(...e){let t=await r.getExecOutput(...e);return t.stdout.trim()}async function getConanVersion(){let e=await getStdOut("conan",["--version"]);return e.match(/[\d]+\.[\d]+\.[\d]+/g)[0]}async function getCompilerVersion(e){if(process.platform==="win32"){return"msvc-"+e.match(/[\d]+/g)[0]}else if(process.platform==="darwin"){return"clang-"+await getStdOut("clang",["-dumpversion"])}else{return"gcc-"+await getStdOut("gcc",["-dumpfullversion"])}}async function getConanCacheKeys(e){const t=i.join(workspaceDir,"cmake-proxies/CMakeLists.txt");const a=l.getMD5(t);const n=await getConanVersion();const o=["conan",n,process.platform,await getCompilerVersion(e)].join("-");const r=[o,depsMD5].join("-");return{key:r,restoreKeys:[o]}}async function restoreConanCache(e){try{return e.key==await s.restoreCache([conanCachePath],e.key,e.restoreKeys)}catch(e){l.log("Failed to restore the cache: "+e.message);return false}}async function uploadBinaries(){const e=await p.create(`${workspaceDir}/.conan/data/**/build`);const t=await e.glob();if(t.length==0){l.log("No new binaries were built. Skipping upload.");return}const a=process.env["CONAN_BINARIES_REMOTE"];if(a){await l.execWithLog(`conan remote add audacity-binaries-upload ${a} true --force`);await l.execWithLog(`conan upload "*" -r audacity-binaries-upload -c --all`)}}async function cleanupConanBuilds(){l.log("Cleaning up conan build cache");await l.execWithLog('conan remove "*" --src --builds --force')}async function storeConanCache(e){try{await s.saveCache([conanCachePath],e.key)}catch(e){l.error("Failed to save the cache: "+e.message)}}async function setupConan(){o.exportVariable("CONAN_USER_HOME",workspaceDir);o.exportVariable("CONAN_REVISIONS_ENABLED","1")}e.exports={setupConan:setupConan,getConanCacheKeys:getConanCacheKeys,restoreConanCache:restoreConanCache,cleanupConanBuilds:cleanupConanBuilds,storeConanCache:storeConanCache,uploadBinaries:uploadBinaries}},5800:(e,t,a)=>{const i=a(5747);const n=a(5622);const o=a(467);const r=a(8090);const s=a(7784);const p=a(5008);const l=a(1066);const d=process.env["ARTIFACTORY_SYMBOLS_URL"];const c=process.env["ARTIFACTORY_SYMBOLS_KEY"];const m="C:\\Program Files (x86)\\Windows Kits\\10\\Debuggers\\x64\\symstore.exe";const u=process.platform==="win32"&&i.existsSync(m);const f=n.join(workspaceDir,".debug");const h=n.join(f,"SymStore");async function getSentryCli(){let e="";try{if(process.platform==="win32"){e=await s.downloadTool("https://downloads.sentry-cdn.com/sentry-cli/1.71.0/sentry-cli-Windows-x86_64.exe")}else if(process.platform==="darwin"){e=await s.downloadTool("https://downloads.sentry-cdn.com/sentry-cli/1.71.0/sentry-cli-Darwin-universal")}else{e=await s.downloadTool("https://downloads.sentry-cdn.com/sentry-cli/1.71.0/sentry-cli-Linux-x86_64")}const t=process.platform==="win32"?"sentry-cli.exe":"sentry-cli";const a=n.join(n.dirname(e),t);await i.promises.rename(e,a);if(process.platform!=="win32"){await i.promises.chmod(a,"0766")}return a}catch(e){p.error(e);return""}}const g={authToken:process.env["SENTRY_AUTH_TOKEN"]||"",url:"https://"+process.env["SENTRY_HOST"],org:process.env["SENTRY_ORG_SLUG"]||"",project:process.env["SENTRY_PROJECT_SLUG"]||"",cliInitialized:false,cliFound:false};const y=g.authToken.length>0&&g.url.length>0&&g.org.length>0&&g.project.length>0;async function download(e,t,a){const r=await o(e+t);if(!r.ok){return false}try{await new Promise(((e,o)=>{let s=n.join(a,t);let p=n.dirname(s);if(!i.existsSync(p)){i.mkdirSync(p,{recursive:true})}const l=i.createWriteStream(s);r.body.pipe(l);r.body.on("error",(e=>{o(e)}));l.on("finish",(function(){e()}))}));return true}catch(e){return false}}async function download000Admin(e){if(await download(d,"000Admin/lastid.txt",e)){await download(d,"000Admin/history.txt",e);await download(d,"000Admin/server.txt",e)}}async function uploadSymStore(){await download000Admin();const e=await l.listDirectory(h);for(const t of e){let e=d+n.relative(h,t).replaceAll(n.sep,"/");p.log(`Uploading ${e}`);let a=i.createReadStream(t);try{let t=await o(e,{method:"PUT",headers:{Authorization:"Bearer "+c},body:a});if(!t.ok){p.error("Failed to upload "+t.status)}}catch(e){p.error(e)}}}async function uploadAllToSentry(e){if(!g.cliInitialized){g.cliInitialized=true;g.cli=await getSentryCli();g.cliFound=g.cli.length>0;if(!g.cliFound){p.error("sentry-cli is not available");return}}if(g.cliFound&&y){for(const t of e){await p.execWithLog(g.cli,["--auth-token",g.authToken,"--url",g.url,"upload-dif","--include-sources","--org",g.org,"--project",g.project,t])}}}async function addToSymStore(e){if(u){await p.execWithLog('"'+m+'"',["add","/s",h,"/compress","/r","/f",e,"/t",n.basename(e,".pdb")])}}async function splitDsymFile(e){if(!i.existsSync(f)){i.mkdirSync(f,{recursive:true})}p.log(`Calling dsymutil on ${e}`);let t=n.join(f,n.basename(e)+".dSYM");await p.execWithLog("dsymutil",[e,"-o",t]);return t}async function splitDebugFile(e){if(!i.existsSync(f)){i.mkdirSync(f,{recursive:true})}let t=n.join(f,n.basename(e)+".debug");try{await p.execWithLog("objcopy",["--only-keep-debug","--compress-debug-section=zlib",e,t]);if(!i.existsSync(t)){return""}await p.execWithLog("objcopy",["--strip-debug","--strip-unneeded",e]);await p.execWithLog("objcopy",["--add-gnu-debuglink="+t,e]);return t}catch(e){p.error(e);return""}}async function getMatchingFiles(e,t,a){const i=await l.globFiles(e);const o=await l.globFiles(t);return i.filter((e=>{const t=!a?n.basename(e):n.basename(e,n.extname(e));return o.findIndex((e=>e.indexOf(t)!=-1))!=-1}))}async function splitDepsDebugSymbols(e,t,a){const i=await getMatchingFiles(n.join(conanCachePath,"data/**/package/**/*"+e),n.join(conanCachePath,"data/**/build/**/*"+e));let o=[];for(const e of i){const a=await t(e);if(a.length>0){o.push(a)}}if(a&&o.length>0){await uploadAllToSentry([...o,...i])}}async function splitAudacityDebugSymbols(e,t,a,o,r){const s=n.join(e,"bin",t);const p=(await l.globFiles(`${s}/**/*`)).filter((e=>{const t=i.lstatSync(e);return t.isFile()&&t.mode&i.constants.S_IXUSR&&n.extname(e).length==0}));const d=await getMatchingFiles(`${s}/**/*${a}`,`${conanCachePath}/**/package/**/*${a}`);const c=(await l.globFiles(`${s}/**/*${a}`)).filter((e=>{const t=i.lstatSync(e);if(!t.isFile())return false;return d.indexOf(e)==-1}));const m=[...p,...c];let u=[];for(const e of m){const t=await o(e);if(t.length>0){u.push(t)}}if(r&&u.length>0){await uploadAllToSentry([...u,...m])}}async function processDependenciesDebugInformation(e,t,a){if(process.platform=="win32"){if(!a||!d){return}if(!u){p.error("symstore.exe is not available");return}const e=await l.globFiles(n.join(conanCachePath,"data/**/build/**/*.pdb"));for(const t of e){await addToSymStore(t)}if(e.length>0){await uploadSymStore();const t=await l.globFiles(n.join(conanCachePath,"data/**/build/**/*.dll"));await uploadAllToSentry([...e,...t])}}else if(process.platform=="darwin"){await splitDepsDebugSymbols(".dylib",splitDsymFile,a)}else{await splitDepsDebugSymbols(".so*",splitDebugFile,a)}}async function processDebugInformation(e,t,a){if(process.platform=="win32"){const o=await l.globFiles(n.join(e,`bin/${t}/**/*.pdb`));if(a){const a=await l.globFiles(n.join(e,`shared/${t}/**/*.pdb`));const i=await getMatchingFiles(n.join(e,`shared/${t}/**/*.dll`),n.join(e,`shared/${t}/**/*.pdb`),true);const r=await getMatchingFiles([n.join(e,`bin/${t}/**/*.exe`),n.join(e,`bin/${t}/**/*.dll`)],n.join(e,`bin/${t}/**/*.pdb`),true);const s=[...o,...a];for(const e of s){await addToSymStore(e)}await uploadAllToSentry(s);await uploadAllToSentry([...i,...s,...r])}const r=await l.globFiles([n.join(e,`bin/${t}/**/*.ipdb`),n.join(e,`bin/${t}/**/*.iobj`),n.join(e,`bin/${t}/**/*.ilk`)]);for(const e of[...o,...r]){await i.promises.rm(e)}}else if(process.platform=="darwin"){await splitAudacityDebugSymbols(e,t,".dylib",splitDsymFile,a)}else{await splitAudacityDebugSymbols(e,t,".so*",splitDebugFile,a)}}e.exports={processDependenciesDebugInformation:processDependenciesDebugInformation,processDebugInformation:processDebugInformation}},1066:(e,t,a)=>{const i=a(5747);const n=a(5622);const o=a(8090);helpers=a(5008);const getFilesFromDirectoryRecursive=async e=>{const t=await i.promises.readdir(e);const a=await Promise.all(t.map((async t=>{const a=n.join(e,t);const o=await i.promises.stat(a);if(o.isDirectory()){return getFilesFromDirectoryRecursive(a)}else{return a}})));return a.filter((e=>e.length))};async function globFiles(e){const t=await o.create(Array.isArray(e)?e.join("\n"):e);let a=[];for await(const e of t.globGenerator()){const t=await i.promises.lstat(e);if(t.isSymbolicLink()){continue}a.push(e)}return a}async function listMacosAppsRecursive(e,t){const a=await i.promises.readdir(e);await Promise.all(a.map((async a=>{const o=n.join(e,a);const r=await i.promises.stat(o);if(r.isDirectory()){if(n.extname(a)==".app"){t.push(o)}else{return listMacosAppsRecursive(o,t)}}})))}async function getAudacityMacOSBundleFiles(e){bundle={MacOS:[],Frameworks:{dylib:[]},modules:[],misc:[]};const t=(await getFilesFromDirectoryRecursive(e)).flat(Infinity);t.forEach((e=>{if(e.indexOf("Contents/MacOS")!=-1){bundle.MacOS.push(e)}else if(e.indexOf("Contents/Frameworks")!=-1){const t=i.statSync(e);if(t.isSymbolicLink()){bundle.misc.push(e)}else if(t.isFile()){bundle.Frameworks.dylib.push(e)}else{throw Error("Bundled frameworks are not supported")}}else if(e.indexOf("Contents/modules")!=-1){bundle.modules.push(e)}else{bundle.misc.push(e)}}));return bundle}async function copyFile(e,t){const a=n.dirname(t);if(!i.existsSync(a)){i.mkdirSync(a,{recursive:true})}return i.promises.copyFile(e,t)}async function copyFiles(e,t,a){return helpers.awaitAll(t,(async t=>{const i=n.relative(e,t);return copyFile(t,n.join(a,i))}))}async function listMacosApps(e){apps=[];await listMacosAppsRecursive(e,apps);return apps}e.exports={listDirectory:async e=>(await getFilesFromDirectoryRecursive(e)).flat(Infinity),globFiles:globFiles,listMacosApps:listMacosApps,getAudacityMacOSBundleFiles:getAudacityMacOSBundleFiles,copyFile:copyFile,copyFiles:copyFiles}},5008:(e,t,a)=>{const i=a(2186);const n=a(1514);const o=a(5622);const r=a(1711);const s=process.env["CI"];global.workspaceDir=process.env["GITHUB_WORKSPACE"];global.conanCachePath=o.join(workspaceDir,".conan");function log(e){if(s){i.info(e)}else{console.log(e)}}function error(e){if(s){i.error(e)}else{console.error(e)}}async function execWithLog(e,arguments){if(s){return n.exec(e,arguments)}else{return n.exec(e,arguments,{listeners:{stdout:e=>{log(e.toString())},stderr:e=>{error(e.toString())}}})}}async function getExecOutput(e,arguments){if(s){return n.getExecOutput(e,arguments)}else{return n.getExecOutput(e,arguments,{listeners:{stdout:e=>{log(e.toString())},stderr:e=>{error(e.toString())}}})}}async function awaitAll(e,t){return await Promise.all(e.map((async e=>t(e))))}async function getMD5(e){const t=await fs.promises.readFileSync(e);return r(t)}function getDateString(){const e=new Date;return[e.getFullYear(),("0"+(e.getMonth()+1)).slice(-2),("0"+e.getDate()).slice(-2)].join("")}const sleep=e=>new Promise((t=>setTimeout(t,e)));process.on("unhandledRejection",((e,t)=>{error(e);i.setFailed(err);process.exit(1)})).on("uncaughtException",(e=>{error(e);i.setFailed(e);process.exit(1)}));e.exports={log:log,error:error,execWithLog:execWithLog,getExecOutput:getExecOutput,sleep:sleep,awaitAll:awaitAll,getMD5:getMD5,getDateString:getDateString}},7799:function(e,t,a){"use strict";var i=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(Object.hasOwnProperty.call(e,a))t[a]=e[a];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=n(a(2186));const r=n(a(5622));const s=n(a(1518));const p=n(a(8245));const l=a(6490);class ValidationError extends Error{constructor(e){super(e);this.name="ValidationError";Object.setPrototypeOf(this,ValidationError.prototype)}}t.ValidationError=ValidationError;class ReserveCacheError extends Error{constructor(e){super(e);this.name="ReserveCacheError";Object.setPrototypeOf(this,ReserveCacheError.prototype)}}t.ReserveCacheError=ReserveCacheError;function checkPaths(e){if(!e||e.length===0){throw new ValidationError(`Path Validation Error: At least one directory or file path is required`)}}function checkKey(e){if(e.length>512){throw new ValidationError(`Key Validation Error: ${e} cannot be larger than 512 characters.`)}const t=/^[^,]*$/;if(!t.test(e)){throw new ValidationError(`Key Validation Error: ${e} cannot contain commas.`)}}function restoreCache(e,t,a,n){return i(this,void 0,void 0,(function*(){checkPaths(e);a=a||[];const i=[t,...a];o.debug("Resolved Keys:");o.debug(JSON.stringify(i));if(i.length>10){throw new ValidationError(`Key Validation Error: Keys are limited to a maximum of 10.`)}for(const e of i){checkKey(e)}const d=yield s.getCompressionMethod();const c=yield p.getCacheEntry(i,e,{compressionMethod:d});if(!(c===null||c===void 0?void 0:c.archiveLocation)){return undefined}const m=r.join(yield s.createTempDirectory(),s.getCacheFileName(d));o.debug(`Archive Path: ${m}`);try{yield p.downloadCache(c.archiveLocation,m,n);if(o.isDebug()){yield l.listTar(m,d)}const e=s.getArchiveFileSizeInBytes(m);o.info(`Cache Size: ~${Math.round(e/(1024*1024))} MB (${e} B)`);yield l.extractTar(m,d);o.info("Cache restored successfully")}finally{try{yield s.unlinkFile(m)}catch(e){o.debug(`Failed to delete archive: ${e}`)}}return c.cacheKey}))}t.restoreCache=restoreCache;function saveCache(e,t,a){return i(this,void 0,void 0,(function*(){checkPaths(e);checkKey(t);const i=yield s.getCompressionMethod();o.debug("Reserving Cache");const n=yield p.reserveCache(t,e,{compressionMethod:i});if(n===-1){throw new ReserveCacheError(`Unable to reserve cache with key ${t}, another job may be creating this cache.`)}o.debug(`Cache ID: ${n}`);const d=yield s.resolvePaths(e);o.debug("Cache Paths:");o.debug(`${JSON.stringify(d)}`);const c=yield s.createTempDirectory();const m=r.join(c,s.getCacheFileName(i));o.debug(`Archive Path: ${m}`);try{yield l.createTar(c,d,i);if(o.isDebug()){yield l.listTar(m,i)}const e=10*1024*1024*1024;const t=s.getArchiveFileSizeInBytes(m);o.debug(`File Size: ${t}`);if(t>e){throw new Error(`Cache size of ~${Math.round(t/(1024*1024))} MB (${t} B) is over the 10GB limit, not saving cache.`)}o.debug(`Saving Cache (ID: ${n})`);yield p.saveCache(n,m,a)}finally{try{yield s.unlinkFile(m)}catch(e){o.debug(`Failed to delete archive: ${e}`)}}return n}))}t.saveCache=saveCache},8245:function(e,t,a){"use strict";var i=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(Object.hasOwnProperty.call(e,a))t[a]=e[a];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=n(a(2186));const r=a(9925);const s=a(3702);const p=n(a(6417));const l=n(a(5747));const d=a(8835);const c=n(a(1518));const m=a(8840);const u=a(5500);const f=a(6215);const h=a(3981);const g="1.0";function getCacheApiUrl(e){const t=(process.env["ACTIONS_CACHE_URL"]||process.env["ACTIONS_RUNTIME_URL"]||"").replace("pipelines","artifactcache");if(!t){throw new Error("Cache Service Url not found, unable to restore cache.")}const a=`${t}_apis/artifactcache/${e}`;o.debug(`Resource Url: ${a}`);return a}function createAcceptHeader(e,t){return`${e};api-version=${t}`}function getRequestOptions(){const e={headers:{Accept:createAcceptHeader("application/json","6.0-preview.1")}};return e}function createHttpClient(){const e=process.env["ACTIONS_RUNTIME_TOKEN"]||"";const t=new s.BearerCredentialHandler(e);return new r.HttpClient("actions/cache",[t],getRequestOptions())}function getCacheVersion(e,t){const a=e.concat(!t||t===m.CompressionMethod.Gzip?[]:[t]);a.push(g);return p.createHash("sha256").update(a.join("|")).digest("hex")}t.getCacheVersion=getCacheVersion;function getCacheEntry(e,t,a){return i(this,void 0,void 0,(function*(){const n=createHttpClient();const r=getCacheVersion(t,a===null||a===void 0?void 0:a.compressionMethod);const s=`cache?keys=${encodeURIComponent(e.join(","))}&version=${r}`;const p=yield h.retryTypedResponse("getCacheEntry",(()=>i(this,void 0,void 0,(function*(){return n.getJson(getCacheApiUrl(s))}))));if(p.statusCode===204){return null}if(!h.isSuccessStatusCode(p.statusCode)){throw new Error(`Cache service responded with ${p.statusCode}`)}const l=p.result;const d=l===null||l===void 0?void 0:l.archiveLocation;if(!d){throw new Error("Cache not found.")}o.setSecret(d);o.debug(`Cache Result:`);o.debug(JSON.stringify(l));return l}))}t.getCacheEntry=getCacheEntry;function downloadCache(e,t,a){return i(this,void 0,void 0,(function*(){const i=new d.URL(e);const n=f.getDownloadOptions(a);if(n.useAzureSdk&&i.hostname.endsWith(".blob.core.windows.net")){yield u.downloadCacheStorageSDK(e,t,n)}else{yield u.downloadCacheHttpClient(e,t)}}))}t.downloadCache=downloadCache;function reserveCache(e,t,a){var n,o;return i(this,void 0,void 0,(function*(){const r=createHttpClient();const s=getCacheVersion(t,a===null||a===void 0?void 0:a.compressionMethod);const p={key:e,version:s};const l=yield h.retryTypedResponse("reserveCache",(()=>i(this,void 0,void 0,(function*(){return r.postJson(getCacheApiUrl("caches"),p)}))));return(o=(n=l===null||l===void 0?void 0:l.result)===null||n===void 0?void 0:n.cacheId)!==null&&o!==void 0?o:-1}))}t.reserveCache=reserveCache;function getContentRange(e,t){return`bytes ${e}-${t}/*`}function uploadChunk(e,t,a,n,r){return i(this,void 0,void 0,(function*(){o.debug(`Uploading chunk of size ${r-n+1} bytes at offset ${n} with content range: ${getContentRange(n,r)}`);const s={"Content-Type":"application/octet-stream","Content-Range":getContentRange(n,r)};const p=yield h.retryHttpClientResponse(`uploadChunk (start: ${n}, end: ${r})`,(()=>i(this,void 0,void 0,(function*(){return e.sendStream("PATCH",t,a(),s)}))));if(!h.isSuccessStatusCode(p.message.statusCode)){throw new Error(`Cache service responded with ${p.message.statusCode} during upload chunk.`)}}))}function uploadFile(e,t,a,n){return i(this,void 0,void 0,(function*(){const r=c.getArchiveFileSizeInBytes(a);const s=getCacheApiUrl(`caches/${t.toString()}`);const p=l.openSync(a,"r");const d=f.getUploadOptions(n);const m=c.assertDefined("uploadConcurrency",d.uploadConcurrency);const u=c.assertDefined("uploadChunkSize",d.uploadChunkSize);const h=[...new Array(m).keys()];o.debug("Awaiting all uploads");let g=0;try{yield Promise.all(h.map((()=>i(this,void 0,void 0,(function*(){while(gl.createReadStream(a,{fd:p,start:i,end:n,autoClose:false}).on("error",(e=>{throw new Error(`Cache upload failed because file read failed with ${e.message}`)}))),i,n)}})))))}finally{l.closeSync(p)}return}))}function commitCache(e,t,a){return i(this,void 0,void 0,(function*(){const n={size:a};return yield h.retryTypedResponse("commitCache",(()=>i(this,void 0,void 0,(function*(){return e.postJson(getCacheApiUrl(`caches/${t.toString()}`),n)}))))}))}function saveCache(e,t,a){return i(this,void 0,void 0,(function*(){const i=createHttpClient();o.debug("Upload cache");yield uploadFile(i,e,t,a);o.debug("Commiting cache");const n=c.getArchiveFileSizeInBytes(t);o.info(`Cache Size: ~${Math.round(n/(1024*1024))} MB (${n} B)`);const r=yield commitCache(i,e,n);if(!h.isSuccessStatusCode(r.statusCode)){throw new Error(`Cache service responded with ${r.statusCode} during commit cache.`)}o.info("Cache saved successfully")}))}t.saveCache=saveCache},1518:function(e,t,a){"use strict";var i=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var n=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],a;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),a={},verb("next"),verb("throw"),verb("return"),a[Symbol.asyncIterator]=function(){return this},a);function verb(t){a[t]=e[t]&&function(a){return new Promise((function(i,n){a=e[t](a),settle(i,n,a.done,a.value)}))}}function settle(e,t,a,i){Promise.resolve(i).then((function(t){e({value:t,done:a})}),t)}};var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(Object.hasOwnProperty.call(e,a))t[a]=e[a];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const r=o(a(2186));const s=o(a(1514));const p=o(a(1597));const l=o(a(7436));const d=o(a(5747));const c=o(a(5622));const m=o(a(5911));const u=o(a(1669));const f=a(2155);const h=a(8840);function createTempDirectory(){return i(this,void 0,void 0,(function*(){const e=process.platform==="win32";let t=process.env["RUNNER_TEMP"]||"";if(!t){let a;if(e){a=process.env["USERPROFILE"]||"C:\\"}else{if(process.platform==="darwin"){a="/Users"}else{a="/home"}}t=c.join(a,"actions","temp")}const a=c.join(t,f.v4());yield l.mkdirP(a);return a}))}t.createTempDirectory=createTempDirectory;function getArchiveFileSizeInBytes(e){return d.statSync(e).size}t.getArchiveFileSizeInBytes=getArchiveFileSizeInBytes;function resolvePaths(e){var t,a;var o;return i(this,void 0,void 0,(function*(){const i=[];const s=(o=process.env["GITHUB_WORKSPACE"])!==null&&o!==void 0?o:process.cwd();const l=yield p.create(e.join("\n"),{implicitDescendants:false});try{for(var d=n(l.globGenerator()),m;m=yield d.next(),!m.done;){const e=m.value;const t=c.relative(s,e).replace(new RegExp(`\\${c.sep}`,"g"),"/");r.debug(`Matched: ${t}`);i.push(`${t}`)}}catch(e){t={error:e}}finally{try{if(m&&!m.done&&(a=d.return))yield a.call(d)}finally{if(t)throw t.error}}return i}))}t.resolvePaths=resolvePaths;function unlinkFile(e){return i(this,void 0,void 0,(function*(){return u.promisify(d.unlink)(e)}))}t.unlinkFile=unlinkFile;function getVersion(e){return i(this,void 0,void 0,(function*(){r.debug(`Checking ${e} --version`);let t="";try{yield s.exec(`${e} --version`,[],{ignoreReturnCode:true,silent:true,listeners:{stdout:e=>t+=e.toString(),stderr:e=>t+=e.toString()}})}catch(e){r.debug(e.message)}t=t.trim();r.debug(t);return t}))}function getCompressionMethod(){return i(this,void 0,void 0,(function*(){if(process.platform==="win32"&&!(yield isGnuTarInstalled())){return h.CompressionMethod.Gzip}const e=yield getVersion("zstd");const t=m.clean(e);if(!e.toLowerCase().includes("zstd command line interface")){return h.CompressionMethod.Gzip}else if(!t||m.lt(t,"v1.3.2")){return h.CompressionMethod.ZstdWithoutLong}else{return h.CompressionMethod.Zstd}}))}t.getCompressionMethod=getCompressionMethod;function getCacheFileName(e){return e===h.CompressionMethod.Gzip?h.CacheFilename.Gzip:h.CacheFilename.Zstd}t.getCacheFileName=getCacheFileName;function isGnuTarInstalled(){return i(this,void 0,void 0,(function*(){const e=yield getVersion("tar");return e.toLowerCase().includes("gnu tar")}))}t.isGnuTarInstalled=isGnuTarInstalled;function assertDefined(e,t){if(t===undefined){throw Error(`Expected ${e} but value was undefiend`)}return t}t.assertDefined=assertDefined},8840:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var a;(function(e){e["Gzip"]="cache.tgz";e["Zstd"]="cache.tzst"})(a=t.CacheFilename||(t.CacheFilename={}));var i;(function(e){e["Gzip"]="gzip";e["ZstdWithoutLong"]="zstd-without-long";e["Zstd"]="zstd"})(i=t.CompressionMethod||(t.CompressionMethod={}));t.DefaultRetryAttempts=2;t.DefaultRetryDelay=5e3;t.SocketTimeout=5e3},5500:function(e,t,a){"use strict";var i=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(Object.hasOwnProperty.call(e,a))t[a]=e[a];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=n(a(2186));const r=a(9925);const s=a(4100);const p=n(a(4293));const l=n(a(5747));const d=n(a(2413));const c=n(a(1669));const m=n(a(1518));const u=a(8840);const f=a(3981);function pipeResponseToStream(e,t){return i(this,void 0,void 0,(function*(){const a=c.promisify(d.pipeline);yield a(e.message,t)}))}class DownloadProgress{constructor(e){this.contentLength=e;this.segmentIndex=0;this.segmentSize=0;this.segmentOffset=0;this.receivedBytes=0;this.displayedComplete=false;this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize;this.segmentIndex=this.segmentIndex+1;this.segmentSize=e;this.receivedBytes=0;o.debug(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete){return}const e=this.segmentOffset+this.receivedBytes;const t=(100*(e/this.contentLength)).toFixed(1);const a=Date.now()-this.startTime;const i=(e/(1024*1024)/(a/1e3)).toFixed(1);o.info(`Received ${e} of ${this.contentLength} (${t}%), ${i} MBs/sec`);if(this.isDone()){this.displayedComplete=true}}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){const displayCallback=()=>{this.display();if(!this.isDone()){this.timeoutHandle=setTimeout(displayCallback,e)}};this.timeoutHandle=setTimeout(displayCallback,e)}stopDisplayTimer(){if(this.timeoutHandle){clearTimeout(this.timeoutHandle);this.timeoutHandle=undefined}this.display()}}t.DownloadProgress=DownloadProgress;function downloadCacheHttpClient(e,t){return i(this,void 0,void 0,(function*(){const a=l.createWriteStream(t);const n=new r.HttpClient("actions/cache");const s=yield f.retryHttpClientResponse("downloadCache",(()=>i(this,void 0,void 0,(function*(){return n.get(e)}))));s.message.socket.setTimeout(u.SocketTimeout,(()=>{s.message.destroy();o.debug(`Aborting download, socket timed out after ${u.SocketTimeout} ms`)}));yield pipeResponseToStream(s,a);const p=s.message.headers["content-length"];if(p){const e=parseInt(p);const a=m.getArchiveFileSizeInBytes(t);if(a!==e){throw new Error(`Incomplete download. Expected file size: ${e}, actual file size: ${a}`)}}else{o.debug("Unable to validate download, no Content-Length header")}}))}t.downloadCacheHttpClient=downloadCacheHttpClient;function downloadCacheStorageSDK(e,t,a){var n;return i(this,void 0,void 0,(function*(){const i=new s.BlockBlobClient(e,undefined,{retryOptions:{tryTimeoutInMs:a.timeoutInMs}});const r=yield i.getProperties();const d=(n=r.contentLength)!==null&&n!==void 0?n:-1;if(d<0){o.debug("Unable to determine content length, downloading file with http-client...");yield downloadCacheHttpClient(e,t)}else{const e=p.constants.MAX_LENGTH;const n=new DownloadProgress(d);const o=l.openSync(t,"w");try{n.startDisplayTimer();while(!n.isDone()){const t=n.segmentOffset+n.segmentSize;const r=Math.min(e,d-t);n.nextSegment(r);const s=yield i.downloadToBuffer(t,r,{concurrency:a.downloadConcurrency,onProgress:n.onProgress()});l.writeFileSync(o,s)}}finally{n.stopDisplayTimer();l.closeSync(o)}}}))}t.downloadCacheStorageSDK=downloadCacheStorageSDK},3981:function(e,t,a){"use strict";var i=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(Object.hasOwnProperty.call(e,a))t[a]=e[a];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=n(a(2186));const r=a(9925);const s=a(8840);function isSuccessStatusCode(e){if(!e){return false}return e>=200&&e<300}t.isSuccessStatusCode=isSuccessStatusCode;function isServerErrorStatusCode(e){if(!e){return true}return e>=500}t.isServerErrorStatusCode=isServerErrorStatusCode;function isRetryableStatusCode(e){if(!e){return false}const t=[r.HttpCodes.BadGateway,r.HttpCodes.ServiceUnavailable,r.HttpCodes.GatewayTimeout];return t.includes(e)}t.isRetryableStatusCode=isRetryableStatusCode;function sleep(e){return i(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,e)))}))}function retry(e,t,a,n=s.DefaultRetryAttempts,r=s.DefaultRetryDelay,p=undefined){return i(this,void 0,void 0,(function*(){let i="";let s=1;while(s<=n){let l=undefined;let d=undefined;let c=false;try{l=yield t()}catch(e){if(p){l=p(e)}c=true;i=e.message}if(l){d=a(l);if(!isServerErrorStatusCode(d)){return l}}if(d){c=isRetryableStatusCode(d);i=`Cache service responded with ${d}`}o.debug(`${e} - Attempt ${s} of ${n} failed with error: ${i}`);if(!c){o.debug(`${e} - Error is not retryable`);break}yield sleep(r);s++}throw Error(`${e} failed: ${i}`)}))}t.retry=retry;function retryTypedResponse(e,t,a=s.DefaultRetryAttempts,n=s.DefaultRetryDelay){return i(this,void 0,void 0,(function*(){return yield retry(e,t,(e=>e.statusCode),a,n,(e=>{if(e instanceof r.HttpClientError){return{statusCode:e.statusCode,result:null,headers:{}}}else{return undefined}}))}))}t.retryTypedResponse=retryTypedResponse;function retryHttpClientResponse(e,t,a=s.DefaultRetryAttempts,n=s.DefaultRetryDelay){return i(this,void 0,void 0,(function*(){return yield retry(e,t,(e=>e.message.statusCode),a,n)}))}t.retryHttpClientResponse=retryHttpClientResponse},6490:function(e,t,a){"use strict";var i=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(Object.hasOwnProperty.call(e,a))t[a]=e[a];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=a(1514);const r=n(a(7436));const s=a(5747);const p=n(a(5622));const l=n(a(1518));const d=a(8840);function getTarPath(e,t){return i(this,void 0,void 0,(function*(){switch(process.platform){case"win32":{const a=`${process.env["windir"]}\\System32\\tar.exe`;if(t!==d.CompressionMethod.Gzip){e.push("--force-local")}else if(s.existsSync(a)){return a}else if(yield l.isGnuTarInstalled()){e.push("--force-local")}break}case"darwin":{const t=yield r.which("gtar",false);if(t){e.push("--delay-directory-restore");return t}break}default:break}return yield r.which("tar",true)}))}function execTar(e,t,a){return i(this,void 0,void 0,(function*(){try{yield o.exec(`"${yield getTarPath(e,t)}"`,e,{cwd:a})}catch(e){throw new Error(`Tar failed with error: ${e===null||e===void 0?void 0:e.message}`)}}))}function getWorkingDirectory(){var e;return(e=process.env["GITHUB_WORKSPACE"])!==null&&e!==void 0?e:process.cwd()}function extractTar(e,t){return i(this,void 0,void 0,(function*(){const a=getWorkingDirectory();yield r.mkdirP(a);function getCompressionProgram(){switch(t){case d.CompressionMethod.Zstd:return["--use-compress-program","zstd -d --long=30"];case d.CompressionMethod.ZstdWithoutLong:return["--use-compress-program","zstd -d"];default:return["-z"]}}const i=[...getCompressionProgram(),"-xf",e.replace(new RegExp(`\\${p.sep}`,"g"),"/"),"-P","-C",a.replace(new RegExp(`\\${p.sep}`,"g"),"/")];yield execTar(i,t)}))}t.extractTar=extractTar;function createTar(e,t,a){return i(this,void 0,void 0,(function*(){const i="manifest.txt";const n=l.getCacheFileName(a);s.writeFileSync(p.join(e,i),t.join("\n"));const o=getWorkingDirectory();function getCompressionProgram(){switch(a){case d.CompressionMethod.Zstd:return["--use-compress-program","zstd -T0 --long=30"];case d.CompressionMethod.ZstdWithoutLong:return["--use-compress-program","zstd -T0"];default:return["-z"]}}const r=["--posix",...getCompressionProgram(),"-cf",n.replace(new RegExp(`\\${p.sep}`,"g"),"/"),"-P","-C",o.replace(new RegExp(`\\${p.sep}`,"g"),"/"),"--files-from",i];yield execTar(r,a,e)}))}t.createTar=createTar;function listTar(e,t){return i(this,void 0,void 0,(function*(){function getCompressionProgram(){switch(t){case d.CompressionMethod.Zstd:return["--use-compress-program","zstd -d --long=30"];case d.CompressionMethod.ZstdWithoutLong:return["--use-compress-program","zstd -d"];default:return["-z"]}}const a=[...getCompressionProgram(),"-tf",e.replace(new RegExp(`\\${p.sep}`,"g"),"/"),"-P"];yield execTar(a,t)}))}t.listTar=listTar},6215:function(e,t,a){"use strict";var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(Object.hasOwnProperty.call(e,a))t[a]=e[a];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const n=i(a(2186));function getUploadOptions(e){const t={uploadConcurrency:4,uploadChunkSize:32*1024*1024};if(e){if(typeof e.uploadConcurrency==="number"){t.uploadConcurrency=e.uploadConcurrency}if(typeof e.uploadChunkSize==="number"){t.uploadChunkSize=e.uploadChunkSize}}n.debug(`Upload concurrency: ${t.uploadConcurrency}`);n.debug(`Upload chunk size: ${t.uploadChunkSize}`);return t}t.getUploadOptions=getUploadOptions;function getDownloadOptions(e){const t={useAzureSdk:true,downloadConcurrency:8,timeoutInMs:3e4};if(e){if(typeof e.useAzureSdk==="boolean"){t.useAzureSdk=e.useAzureSdk}if(typeof e.downloadConcurrency==="number"){t.downloadConcurrency=e.downloadConcurrency}if(typeof e.timeoutInMs==="number"){t.timeoutInMs=e.timeoutInMs}}n.debug(`Use Azure SDK: ${t.useAzureSdk}`);n.debug(`Download concurrency: ${t.downloadConcurrency}`);n.debug(`Request timeout (ms): ${t.timeoutInMs}`);return t}t.getDownloadOptions=getDownloadOptions},1597:function(e,t,a){"use strict";var i=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.create=void 0;const n=a(7341);function create(e,t){return i(this,void 0,void 0,(function*(){return yield n.DefaultGlobber.create(e,t)}))}t.create=create},9350:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOptions=void 0;const r=o(a(2186));function getOptions(e){const t={followSymbolicLinks:true,implicitDescendants:true,omitBrokenSymbolicLinks:true};if(e){if(typeof e.followSymbolicLinks==="boolean"){t.followSymbolicLinks=e.followSymbolicLinks;r.debug(`followSymbolicLinks '${t.followSymbolicLinks}'`)}if(typeof e.implicitDescendants==="boolean"){t.implicitDescendants=e.implicitDescendants;r.debug(`implicitDescendants '${t.implicitDescendants}'`)}if(typeof e.omitBrokenSymbolicLinks==="boolean"){t.omitBrokenSymbolicLinks=e.omitBrokenSymbolicLinks;r.debug(`omitBrokenSymbolicLinks '${t.omitBrokenSymbolicLinks}'`)}}return t}t.getOptions=getOptions},7341:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var r=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var s=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],a;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),a={},verb("next"),verb("throw"),verb("return"),a[Symbol.asyncIterator]=function(){return this},a);function verb(t){a[t]=e[t]&&function(a){return new Promise((function(i,n){a=e[t](a),settle(i,n,a.done,a.value)}))}}function settle(e,t,a,i){Promise.resolve(i).then((function(t){e({value:t,done:a})}),t)}};var p=this&&this.__await||function(e){return this instanceof p?(this.v=e,this):new p(e)};var l=this&&this.__asyncGenerator||function(e,t,a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=a.apply(e,t||[]),n,o=[];return n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n;function verb(e){if(i[e])n[e]=function(t){return new Promise((function(a,i){o.push([e,t,a,i])>1||resume(e,t)}))}}function resume(e,t){try{step(i[e](t))}catch(e){settle(o[0][3],e)}}function step(e){e.value instanceof p?Promise.resolve(e.value.v).then(fulfill,reject):settle(o[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),o.shift(),o.length)resume(o[0][0],o[0][1])}};Object.defineProperty(t,"__esModule",{value:true});t.DefaultGlobber=void 0;const d=o(a(2186));const c=o(a(5747));const m=o(a(9350));const u=o(a(5622));const f=o(a(5186));const h=a(836);const g=a(5343);const y=a(8530);const v=process.platform==="win32";class DefaultGlobber{constructor(e){this.patterns=[];this.searchPaths=[];this.options=m.getOptions(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){var e,t;return r(this,void 0,void 0,(function*(){const a=[];try{for(var i=s(this.globGenerator()),n;n=yield i.next(),!n.done;){const e=n.value;a.push(e)}}catch(t){e={error:t}}finally{try{if(n&&!n.done&&(t=i.return))yield t.call(i)}finally{if(e)throw e.error}}return a}))}globGenerator(){return l(this,arguments,(function*globGenerator_1(){const e=m.getOptions(this.options);const t=[];for(const a of this.patterns){t.push(a);if(e.implicitDescendants&&(a.trailingSeparator||a.segments[a.segments.length-1]!=="**")){t.push(new g.Pattern(a.negate,true,a.segments.concat("**")))}}const a=[];for(const e of f.getSearchPaths(t)){d.debug(`Search path '${e}'`);try{yield p(c.promises.lstat(e))}catch(e){if(e.code==="ENOENT"){continue}throw e}a.unshift(new y.SearchState(e,1))}const i=[];while(a.length){const n=a.pop();const o=f.match(t,n.path);const r=!!o||f.partialMatch(t,n.path);if(!o&&!r){continue}const s=yield p(DefaultGlobber.stat(n,e,i));if(!s){continue}if(s.isDirectory()){if(o&h.MatchKind.Directory){yield yield p(n.path)}else if(!r){continue}const e=n.level+1;const t=(yield p(c.promises.readdir(n.path))).map((t=>new y.SearchState(u.join(n.path,t),e)));a.push(...t.reverse())}else if(o&h.MatchKind.File){yield yield p(n.path)}}}))}static create(e,t){return r(this,void 0,void 0,(function*(){const a=new DefaultGlobber(t);if(v){e=e.replace(/\r\n/g,"\n");e=e.replace(/\r/g,"\n")}const i=e.split("\n").map((e=>e.trim()));for(const e of i){if(!e||e.startsWith("#")){continue}else{a.patterns.push(new g.Pattern(e))}}a.searchPaths.push(...f.getSearchPaths(a.patterns));return a}))}static stat(e,t,a){return r(this,void 0,void 0,(function*(){let i;if(t.followSymbolicLinks){try{i=yield c.promises.stat(e.path)}catch(a){if(a.code==="ENOENT"){if(t.omitBrokenSymbolicLinks){d.debug(`Broken symlink '${e.path}'`);return undefined}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw a}}else{i=yield c.promises.lstat(e.path)}if(i.isDirectory()&&t.followSymbolicLinks){const t=yield c.promises.realpath(e.path);while(a.length>=e.level){a.pop()}if(a.some((e=>e===t))){d.debug(`Symlink cycle detected for path '${e.path}' and realpath '${t}'`);return undefined}a.push(t)}return i}))}}t.DefaultGlobber=DefaultGlobber},836:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MatchKind=void 0;var a;(function(e){e[e["None"]=0]="None";e[e["Directory"]=1]="Directory";e[e["File"]=2]="File";e[e["All"]=3]="All"})(a=t.MatchKind||(t.MatchKind={}))},22:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.safeTrimTrailingSeparator=t.normalizeSeparators=t.hasRoot=t.hasAbsoluteRoot=t.ensureAbsoluteRoot=t.dirname=void 0;const s=o(a(5622));const p=r(a(2357));const l=process.platform==="win32";function dirname(e){e=safeTrimTrailingSeparator(e);if(l&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(e)){return e}let t=s.dirname(e);if(l&&/^\\\\[^\\]+\\[^\\]+\\$/.test(t)){t=safeTrimTrailingSeparator(t)}return t}t.dirname=dirname;function ensureAbsoluteRoot(e,t){p.default(e,`ensureAbsoluteRoot parameter 'root' must not be empty`);p.default(t,`ensureAbsoluteRoot parameter 'itemPath' must not be empty`);if(hasAbsoluteRoot(t)){return t}if(l){if(t.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let e=process.cwd();p.default(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);if(t[0].toUpperCase()===e[0].toUpperCase()){if(t.length===2){return`${t[0]}:\\${e.substr(3)}`}else{if(!e.endsWith("\\")){e+="\\"}return`${t[0]}:\\${e.substr(3)}${t.substr(2)}`}}else{return`${t[0]}:\\${t.substr(2)}`}}else if(normalizeSeparators(t).match(/^\\$|^\\[^\\]/)){const e=process.cwd();p.default(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);return`${e[0]}:\\${t.substr(1)}`}}p.default(hasAbsoluteRoot(e),`ensureAbsoluteRoot parameter 'root' must have an absolute root`);if(e.endsWith("/")||l&&e.endsWith("\\")){}else{e+=s.sep}return e+t}t.ensureAbsoluteRoot=ensureAbsoluteRoot;function hasAbsoluteRoot(e){p.default(e,`hasAbsoluteRoot parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(l){return e.startsWith("\\\\")||/^[A-Z]:\\/i.test(e)}return e.startsWith("/")}t.hasAbsoluteRoot=hasAbsoluteRoot;function hasRoot(e){p.default(e,`isRooted parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(l){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.hasRoot=hasRoot;function normalizeSeparators(e){e=e||"";if(l){e=e.replace(/\//g,"\\");const t=/^\\\\+[^\\]/.test(e);return(t?"\\":"")+e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}t.normalizeSeparators=normalizeSeparators;function safeTrimTrailingSeparator(e){if(!e){return""}e=normalizeSeparators(e);if(!e.endsWith(s.sep)){return e}if(e===s.sep){return e}if(l&&/^[A-Z]:\\$/i.test(e)){return e}return e.substr(0,e.length-1)}t.safeTrimTrailingSeparator=safeTrimTrailingSeparator},9413:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.Path=void 0;const s=o(a(5622));const p=o(a(22));const l=r(a(2357));const d=process.platform==="win32";class Path{constructor(e){this.segments=[];if(typeof e==="string"){l.default(e,`Parameter 'itemPath' must not be empty`);e=p.safeTrimTrailingSeparator(e);if(!p.hasRoot(e)){this.segments=e.split(s.sep)}else{let t=e;let a=p.dirname(t);while(a!==t){const e=s.basename(t);this.segments.unshift(e);t=a;a=p.dirname(t)}this.segments.unshift(t)}}else{l.default(e.length>0,`Parameter 'itemPath' must not be an empty array`);for(let t=0;t!e.negate));const t={};for(const a of e){const e=p?a.searchPath.toUpperCase():a.searchPath;t[e]="candidate"}const a=[];for(const i of e){const e=p?i.searchPath.toUpperCase():i.searchPath;if(t[e]==="included"){continue}let n=false;let o=e;let s=r.dirname(o);while(s!==o){if(t[s]){n=true;break}o=s;s=r.dirname(o)}if(!n){a.push(i.searchPath);t[e]="included"}}return a}t.getSearchPaths=getSearchPaths;function match(e,t){let a=s.MatchKind.None;for(const i of e){if(i.negate){a&=~i.match(t)}else{a|=i.match(t)}}return a}t.match=match;function partialMatch(e,t){return e.some((e=>!e.negate&&e.partialMatch(t)))}t.partialMatch=partialMatch},5343:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.Pattern=void 0;const s=o(a(2087));const p=o(a(5622));const l=o(a(22));const d=r(a(2357));const c=a(3973);const m=a(836);const u=a(9413);const f=process.platform==="win32";class Pattern{constructor(e,t=false,a,i){this.negate=false;let n;if(typeof e==="string"){n=e.trim()}else{a=a||[];d.default(a.length,`Parameter 'segments' must not empty`);const t=Pattern.getLiteral(a[0]);d.default(t&&l.hasAbsoluteRoot(t),`Parameter 'segments' first element must be a root path`);n=new u.Path(a).toString().trim();if(e){n=`!${n}`}}while(n.startsWith("!")){this.negate=!this.negate;n=n.substr(1).trim()}n=Pattern.fixupPattern(n,i);this.segments=new u.Path(n).segments;this.trailingSeparator=l.normalizeSeparators(n).endsWith(p.sep);n=l.safeTrimTrailingSeparator(n);let o=false;const r=this.segments.map((e=>Pattern.getLiteral(e))).filter((e=>!o&&!(o=e==="")));this.searchPath=new u.Path(r).toString();this.rootRegExp=new RegExp(Pattern.regExpEscape(r[0]),f?"i":"");this.isImplicitPattern=t;const s={dot:true,nobrace:true,nocase:f,nocomment:true,noext:true,nonegate:true};n=f?n.replace(/\\/g,"/"):n;this.minimatch=new c.Minimatch(n,s)}match(e){if(this.segments[this.segments.length-1]==="**"){e=l.normalizeSeparators(e);if(!e.endsWith(p.sep)&&this.isImplicitPattern===false){e=`${e}${p.sep}`}}else{e=l.safeTrimTrailingSeparator(e)}if(this.minimatch.match(e)){return this.trailingSeparator?m.MatchKind.Directory:m.MatchKind.All}return m.MatchKind.None}partialMatch(e){e=l.safeTrimTrailingSeparator(e);if(l.dirname(e)===e){return this.rootRegExp.test(e)}return this.minimatch.matchOne(e.split(f?/\\+/:/\/+/),this.minimatch.set[0],true)}static globEscape(e){return(f?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,t){d.default(e,"pattern cannot be empty");const a=new u.Path(e).segments.map((e=>Pattern.getLiteral(e)));d.default(a.every(((e,t)=>(e!=="."||t===0)&&e!=="..")),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`);d.default(!l.hasRoot(e)||a[0],`Invalid pattern '${e}'. Root segment must not contain globs.`);e=l.normalizeSeparators(e);if(e==="."||e.startsWith(`.${p.sep}`)){e=Pattern.globEscape(process.cwd())+e.substr(1)}else if(e==="~"||e.startsWith(`~${p.sep}`)){t=t||s.homedir();d.default(t,"Unable to determine HOME directory");d.default(l.hasAbsoluteRoot(t),`Expected HOME directory to be a rooted path. Actual '${t}'`);e=Pattern.globEscape(t)+e.substr(1)}else if(f&&(e.match(/^[A-Z]:$/i)||e.match(/^[A-Z]:[^\\]/i))){let t=l.ensureAbsoluteRoot("C:\\dummy-root",e.substr(0,2));if(e.length>2&&!t.endsWith("\\")){t+="\\"}e=Pattern.globEscape(t)+e.substr(2)}else if(f&&(e==="\\"||e.match(/^\\[^\\]/))){let t=l.ensureAbsoluteRoot("C:\\dummy-root","\\");if(!t.endsWith("\\")){t+="\\"}e=Pattern.globEscape(t)+e.substr(1)}else{e=l.ensureAbsoluteRoot(Pattern.globEscape(process.cwd()),e)}return l.normalizeSeparators(e)}static getLiteral(e){let t="";for(let a=0;a=0){if(i.length>1){return""}if(i){t+=i;a=n;continue}}}t+=i}return t}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,"\\$&")}}t.Pattern=Pattern},8530:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SearchState=void 0;class SearchState{constructor(e,t){this.path=e;this.level=t}}t.SearchState=SearchState},7351:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const r=o(a(2087));const s=a(5278);function issueCommand(e,t,a){const i=new Command(e,t,a);process.stdout.write(i.toString()+r.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const p="::";class Command{constructor(e,t,a){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=a}toString(){let e=p+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const a in this.properties){if(this.properties.hasOwnProperty(a)){const i=this.properties[a];if(i){if(t){t=false}else{e+=","}e+=`${a}=${escapeProperty(i)}`}}}}e+=`${p}${escapeData(this.message)}`;return e}}function escapeData(e){return s.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return s.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var r=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getIDToken=t.getState=t.saveState=t.group=t.endGroup=t.startGroup=t.info=t.notice=t.warning=t.error=t.debug=t.isDebug=t.setFailed=t.setCommandEcho=t.setOutput=t.getBooleanInput=t.getMultilineInput=t.getInput=t.addPath=t.setSecret=t.exportVariable=t.ExitCode=void 0;const s=a(7351);const p=a(717);const l=a(5278);const d=o(a(2087));const c=o(a(5622));const m=a(8041);var u;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(u=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const a=l.toCommandValue(t);process.env[e]=a;const i=process.env["GITHUB_ENV"]||"";if(i){const t="_GitHubActionsFileCommandDelimeter_";const i=`${e}<<${t}${d.EOL}${a}${d.EOL}${t}`;p.issueCommand("ENV",i)}else{s.issueCommand("set-env",{name:e},a)}}t.exportVariable=exportVariable;function setSecret(e){s.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){p.issueCommand("PATH",e)}else{s.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${c.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const a=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!a){throw new Error(`Input required and not supplied: ${e}`)}if(t&&t.trimWhitespace===false){return a}return a.trim()}t.getInput=getInput;function getMultilineInput(e,t){const a=getInput(e,t).split("\n").filter((e=>e!==""));return a}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const a=["true","True","TRUE"];const i=["false","False","FALSE"];const n=getInput(e,t);if(a.includes(n))return true;if(i.includes(n))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}t.getBooleanInput=getBooleanInput;function setOutput(e,t){process.stdout.write(d.EOL);s.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){s.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=u.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){s.issueCommand("debug",{},e)}t.debug=debug;function error(e,t={}){s.issueCommand("error",l.toCommandProperties(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){s.issueCommand("warning",l.toCommandProperties(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){s.issueCommand("notice",l.toCommandProperties(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+d.EOL)}t.info=info;function startGroup(e){s.issue("group",e)}t.startGroup=startGroup;function endGroup(){s.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return r(this,void 0,void 0,(function*(){startGroup(e);let a;try{a=yield t()}finally{endGroup()}return a}))}t.group=group;function saveState(e,t){s.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState;function getIDToken(e){return r(this,void 0,void 0,(function*(){return yield m.OidcClient.getIDToken(e)}))}t.getIDToken=getIDToken},717:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issueCommand=void 0;const r=o(a(5747));const s=o(a(2087));const p=a(5278);function issueCommand(e,t){const a=process.env[`GITHUB_${e}`];if(!a){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!r.existsSync(a)){throw new Error(`Missing file at path: ${a}`)}r.appendFileSync(a,`${p.toCommandValue(t)}${s.EOL}`,{encoding:"utf8"})}t.issueCommand=issueCommand},8041:function(e,t,a){"use strict";var i=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.OidcClient=void 0;const n=a(9925);const o=a(3702);const r=a(2186);class OidcClient{static createHttpClient(e=true,t=10){const a={allowRetries:e,maxRetries:t};return new n.HttpClient("actions/oidc-client",[new o.BearerCredentialHandler(OidcClient.getRequestToken())],a)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var t;return i(this,void 0,void 0,(function*(){const a=OidcClient.createHttpClient();const i=yield a.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)}));const n=(t=i.result)===null||t===void 0?void 0:t.value;if(!n){throw new Error("Response json body do not have ID Token field")}return n}))}static getIDToken(e){return i(this,void 0,void 0,(function*(){try{let t=OidcClient.getIDTokenUrl();if(e){const a=encodeURIComponent(e);t=`${t}&audience=${a}`}r.debug(`ID token url is ${t}`);const a=yield OidcClient.getCall(t);r.setSecret(a);return a}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}t.OidcClient=OidcClient},5278:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toCommandProperties=t.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}t.toCommandProperties=toCommandProperties},1514:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var r=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getExecOutput=t.exec=void 0;const s=a(4304);const p=o(a(8159));function exec(e,t,a){return r(this,void 0,void 0,(function*(){const i=p.argStringToArray(e);if(i.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const n=i[0];t=i.slice(1).concat(t||[]);const o=new p.ToolRunner(n,t,a);return o.exec()}))}t.exec=exec;function getExecOutput(e,t,a){var i,n;return r(this,void 0,void 0,(function*(){let o="";let r="";const p=new s.StringDecoder("utf8");const l=new s.StringDecoder("utf8");const d=(i=a===null||a===void 0?void 0:a.listeners)===null||i===void 0?void 0:i.stdout;const c=(n=a===null||a===void 0?void 0:a.listeners)===null||n===void 0?void 0:n.stderr;const stdErrListener=e=>{r+=l.write(e);if(c){c(e)}};const stdOutListener=e=>{o+=p.write(e);if(d){d(e)}};const m=Object.assign(Object.assign({},a===null||a===void 0?void 0:a.listeners),{stdout:stdOutListener,stderr:stdErrListener});const u=yield exec(e,t,Object.assign(Object.assign({},a),{listeners:m}));o+=p.end();r+=l.end();return{exitCode:u,stdout:o,stderr:r}}))}t.getExecOutput=getExecOutput},8159:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var r=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.argStringToArray=t.ToolRunner=void 0;const s=o(a(2087));const p=o(a(8614));const l=o(a(3129));const d=o(a(5622));const c=o(a(7436));const m=o(a(1962));const u=a(8213);const f=process.platform==="win32";class ToolRunner extends p.EventEmitter{constructor(e,t,a){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=a||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const a=this._getSpawnFileName();const i=this._getSpawnArgs(e);let n=t?"":"[command]";if(f){if(this._isCmdFile()){n+=a;for(const e of i){n+=` ${e}`}}else if(e.windowsVerbatimArguments){n+=`"${a}"`;for(const e of i){n+=` ${e}`}}else{n+=this._windowsQuoteCmdArg(a);for(const e of i){n+=` ${this._windowsQuoteCmdArg(e)}`}}}else{n+=a;for(const e of i){n+=` ${e}`}}return n}_processLineBuffer(e,t,a){try{let i=t+e.toString();let n=i.indexOf(s.EOL);while(n>-1){const e=i.substring(0,n);a(e);i=i.substring(n+s.EOL.length);n=i.indexOf(s.EOL)}return i}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(f){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(f){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const a of this.args){t+=" ";t+=e.windowsVerbatimArguments?a:this._windowsQuoteCmdArg(a)}t+='"';return[t]}}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let a=false;for(const i of e){if(t.some((e=>e===i))){a=true;break}}if(!a){return e}let i='"';let n=true;for(let t=e.length;t>0;t--){i+=e[t-1];if(n&&e[t-1]==="\\"){i+="\\"}else if(e[t-1]==='"'){n=true;i+='"'}else{n=false}}i+='"';return i.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let t='"';let a=true;for(let i=e.length;i>0;i--){t+=e[i-1];if(a&&e[i-1]==="\\"){t+="\\"}else if(e[i-1]==='"'){a=true;t+="\\"}else{a=false}}t+='"';return t.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};t.outStream=e.outStream||process.stdout;t.errStream=e.errStream||process.stderr;return t}_getSpawnOptions(e,t){e=e||{};const a={};a.cwd=e.cwd;a.env=e.env;a["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){a.argv0=`"${t}"`}return a}exec(){return r(this,void 0,void 0,(function*(){if(!m.isRooted(this.toolPath)&&(this.toolPath.includes("/")||f&&this.toolPath.includes("\\"))){this.toolPath=d.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield c.which(this.toolPath,true);return new Promise(((e,t)=>r(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);if(!a.silent&&a.outStream){a.outStream.write(this._getCommandString(a)+s.EOL)}const i=new ExecState(a,this.toolPath);i.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield m.exists(this.options.cwd))){return t(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const n=this._getSpawnFileName();const o=l.spawn(n,this._getSpawnArgs(a),this._getSpawnOptions(this.options,n));let r="";if(o.stdout){o.stdout.on("data",(e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!a.silent&&a.outStream){a.outStream.write(e)}r=this._processLineBuffer(e,r,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let p="";if(o.stderr){o.stderr.on("data",(e=>{i.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!a.silent&&a.errStream&&a.outStream){const t=a.failOnStdErr?a.errStream:a.outStream;t.write(e)}p=this._processLineBuffer(e,p,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}o.on("error",(e=>{i.processError=e.message;i.processExited=true;i.processClosed=true;i.CheckComplete()}));o.on("exit",(e=>{i.processExitCode=e;i.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);i.CheckComplete()}));o.on("close",(e=>{i.processExitCode=e;i.processExited=true;i.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);i.CheckComplete()}));i.on("done",((a,i)=>{if(r.length>0){this.emit("stdline",r)}if(p.length>0){this.emit("errline",p)}o.removeAllListeners();if(a){t(a)}else{e(i)}}));if(this.options.input){if(!o.stdin){throw new Error("child process missing stdin")}o.stdin.end(this.options.input)}}))))}))}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let a=false;let i=false;let n="";function append(e){if(i&&e!=='"'){n+="\\"}n+=e;i=false}for(let o=0;o0){t.push(n);n=""}continue}append(r)}if(n.length>0){t.push(n.trim())}return t}t.argStringToArray=argStringToArray;class ExecState extends p.EventEmitter{constructor(e,t){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!t){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=t;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=u.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(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}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const t=`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(t)}e._setResult()}}},8090:function(e,t,a){"use strict";var i=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.hashFiles=t.create=void 0;const n=a(8298);const o=a(2448);function create(e,t){return i(this,void 0,void 0,(function*(){return yield n.DefaultGlobber.create(e,t)}))}t.create=create;function hashFiles(e,t){return i(this,void 0,void 0,(function*(){let a=true;if(t&&typeof t.followSymbolicLinks==="boolean"){a=t.followSymbolicLinks}const i=yield create(e,{followSymbolicLinks:a});return o.hashFiles(i)}))}t.hashFiles=hashFiles},1026:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOptions=void 0;const r=o(a(2186));function getOptions(e){const t={followSymbolicLinks:true,implicitDescendants:true,matchDirectories:true,omitBrokenSymbolicLinks:true};if(e){if(typeof e.followSymbolicLinks==="boolean"){t.followSymbolicLinks=e.followSymbolicLinks;r.debug(`followSymbolicLinks '${t.followSymbolicLinks}'`)}if(typeof e.implicitDescendants==="boolean"){t.implicitDescendants=e.implicitDescendants;r.debug(`implicitDescendants '${t.implicitDescendants}'`)}if(typeof e.matchDirectories==="boolean"){t.matchDirectories=e.matchDirectories;r.debug(`matchDirectories '${t.matchDirectories}'`)}if(typeof e.omitBrokenSymbolicLinks==="boolean"){t.omitBrokenSymbolicLinks=e.omitBrokenSymbolicLinks;r.debug(`omitBrokenSymbolicLinks '${t.omitBrokenSymbolicLinks}'`)}}return t}t.getOptions=getOptions},8298:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var r=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var s=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],a;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),a={},verb("next"),verb("throw"),verb("return"),a[Symbol.asyncIterator]=function(){return this},a);function verb(t){a[t]=e[t]&&function(a){return new Promise((function(i,n){a=e[t](a),settle(i,n,a.done,a.value)}))}}function settle(e,t,a,i){Promise.resolve(i).then((function(t){e({value:t,done:a})}),t)}};var p=this&&this.__await||function(e){return this instanceof p?(this.v=e,this):new p(e)};var l=this&&this.__asyncGenerator||function(e,t,a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=a.apply(e,t||[]),n,o=[];return n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n;function verb(e){if(i[e])n[e]=function(t){return new Promise((function(a,i){o.push([e,t,a,i])>1||resume(e,t)}))}}function resume(e,t){try{step(i[e](t))}catch(e){settle(o[0][3],e)}}function step(e){e.value instanceof p?Promise.resolve(e.value.v).then(fulfill,reject):settle(o[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),o.shift(),o.length)resume(o[0][0],o[0][1])}};Object.defineProperty(t,"__esModule",{value:true});t.DefaultGlobber=void 0;const d=o(a(2186));const c=o(a(5747));const m=o(a(1026));const u=o(a(5622));const f=o(a(9005));const h=a(1063);const g=a(4536);const y=a(9117);const v=process.platform==="win32";class DefaultGlobber{constructor(e){this.patterns=[];this.searchPaths=[];this.options=m.getOptions(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){var e,t;return r(this,void 0,void 0,(function*(){const a=[];try{for(var i=s(this.globGenerator()),n;n=yield i.next(),!n.done;){const e=n.value;a.push(e)}}catch(t){e={error:t}}finally{try{if(n&&!n.done&&(t=i.return))yield t.call(i)}finally{if(e)throw e.error}}return a}))}globGenerator(){return l(this,arguments,(function*globGenerator_1(){const e=m.getOptions(this.options);const t=[];for(const a of this.patterns){t.push(a);if(e.implicitDescendants&&(a.trailingSeparator||a.segments[a.segments.length-1]!=="**")){t.push(new g.Pattern(a.negate,true,a.segments.concat("**")))}}const a=[];for(const e of f.getSearchPaths(t)){d.debug(`Search path '${e}'`);try{yield p(c.promises.lstat(e))}catch(e){if(e.code==="ENOENT"){continue}throw e}a.unshift(new y.SearchState(e,1))}const i=[];while(a.length){const n=a.pop();const o=f.match(t,n.path);const r=!!o||f.partialMatch(t,n.path);if(!o&&!r){continue}const s=yield p(DefaultGlobber.stat(n,e,i));if(!s){continue}if(s.isDirectory()){if(o&h.MatchKind.Directory&&e.matchDirectories){yield yield p(n.path)}else if(!r){continue}const t=n.level+1;const i=(yield p(c.promises.readdir(n.path))).map((e=>new y.SearchState(u.join(n.path,e),t)));a.push(...i.reverse())}else if(o&h.MatchKind.File){yield yield p(n.path)}}}))}static create(e,t){return r(this,void 0,void 0,(function*(){const a=new DefaultGlobber(t);if(v){e=e.replace(/\r\n/g,"\n");e=e.replace(/\r/g,"\n")}const i=e.split("\n").map((e=>e.trim()));for(const e of i){if(!e||e.startsWith("#")){continue}else{a.patterns.push(new g.Pattern(e))}}a.searchPaths.push(...f.getSearchPaths(a.patterns));return a}))}static stat(e,t,a){return r(this,void 0,void 0,(function*(){let i;if(t.followSymbolicLinks){try{i=yield c.promises.stat(e.path)}catch(a){if(a.code==="ENOENT"){if(t.omitBrokenSymbolicLinks){d.debug(`Broken symlink '${e.path}'`);return undefined}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw a}}else{i=yield c.promises.lstat(e.path)}if(i.isDirectory()&&t.followSymbolicLinks){const t=yield c.promises.realpath(e.path);while(a.length>=e.level){a.pop()}if(a.some((e=>e===t))){d.debug(`Symlink cycle detected for path '${e.path}' and realpath '${t}'`);return undefined}a.push(t)}return i}))}}t.DefaultGlobber=DefaultGlobber},2448:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var r=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var s=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],a;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),a={},verb("next"),verb("throw"),verb("return"),a[Symbol.asyncIterator]=function(){return this},a);function verb(t){a[t]=e[t]&&function(a){return new Promise((function(i,n){a=e[t](a),settle(i,n,a.done,a.value)}))}}function settle(e,t,a,i){Promise.resolve(i).then((function(t){e({value:t,done:a})}),t)}};Object.defineProperty(t,"__esModule",{value:true});t.hashFiles=void 0;const p=o(a(6417));const l=o(a(2186));const d=o(a(5747));const c=o(a(2413));const m=o(a(1669));const u=o(a(5622));function hashFiles(e){var t,a;var i;return r(this,void 0,void 0,(function*(){let n=false;const o=(i=process.env["GITHUB_WORKSPACE"])!==null&&i!==void 0?i:process.cwd();const r=p.createHash("sha256");let f=0;try{for(var h=s(e.globGenerator()),g;g=yield h.next(),!g.done;){const e=g.value;l.debug(e);if(!e.startsWith(`${o}${u.sep}`)){l.debug(`Ignore '${e}' since it is not under GITHUB_WORKSPACE.`);continue}if(d.statSync(e).isDirectory()){l.debug(`Skip directory '${e}'.`);continue}const t=p.createHash("sha256");const a=m.promisify(c.pipeline);yield a(d.createReadStream(e),t);r.write(t.digest());f++;if(!n){n=true}}}catch(e){t={error:e}}finally{try{if(g&&!g.done&&(a=h.return))yield a.call(h)}finally{if(t)throw t.error}}r.end();if(n){l.debug(`Found ${f} files to hash.`);return r.digest("hex")}else{l.debug(`No matches found for glob`);return""}}))}t.hashFiles=hashFiles},1063:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MatchKind=void 0;var a;(function(e){e[e["None"]=0]="None";e[e["Directory"]=1]="Directory";e[e["File"]=2]="File";e[e["All"]=3]="All"})(a=t.MatchKind||(t.MatchKind={}))},1849:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.safeTrimTrailingSeparator=t.normalizeSeparators=t.hasRoot=t.hasAbsoluteRoot=t.ensureAbsoluteRoot=t.dirname=void 0;const s=o(a(5622));const p=r(a(2357));const l=process.platform==="win32";function dirname(e){e=safeTrimTrailingSeparator(e);if(l&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(e)){return e}let t=s.dirname(e);if(l&&/^\\\\[^\\]+\\[^\\]+\\$/.test(t)){t=safeTrimTrailingSeparator(t)}return t}t.dirname=dirname;function ensureAbsoluteRoot(e,t){p.default(e,`ensureAbsoluteRoot parameter 'root' must not be empty`);p.default(t,`ensureAbsoluteRoot parameter 'itemPath' must not be empty`);if(hasAbsoluteRoot(t)){return t}if(l){if(t.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let e=process.cwd();p.default(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);if(t[0].toUpperCase()===e[0].toUpperCase()){if(t.length===2){return`${t[0]}:\\${e.substr(3)}`}else{if(!e.endsWith("\\")){e+="\\"}return`${t[0]}:\\${e.substr(3)}${t.substr(2)}`}}else{return`${t[0]}:\\${t.substr(2)}`}}else if(normalizeSeparators(t).match(/^\\$|^\\[^\\]/)){const e=process.cwd();p.default(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);return`${e[0]}:\\${t.substr(1)}`}}p.default(hasAbsoluteRoot(e),`ensureAbsoluteRoot parameter 'root' must have an absolute root`);if(e.endsWith("/")||l&&e.endsWith("\\")){}else{e+=s.sep}return e+t}t.ensureAbsoluteRoot=ensureAbsoluteRoot;function hasAbsoluteRoot(e){p.default(e,`hasAbsoluteRoot parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(l){return e.startsWith("\\\\")||/^[A-Z]:\\/i.test(e)}return e.startsWith("/")}t.hasAbsoluteRoot=hasAbsoluteRoot;function hasRoot(e){p.default(e,`isRooted parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(l){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.hasRoot=hasRoot;function normalizeSeparators(e){e=e||"";if(l){e=e.replace(/\//g,"\\");const t=/^\\\\+[^\\]/.test(e);return(t?"\\":"")+e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}t.normalizeSeparators=normalizeSeparators;function safeTrimTrailingSeparator(e){if(!e){return""}e=normalizeSeparators(e);if(!e.endsWith(s.sep)){return e}if(e===s.sep){return e}if(l&&/^[A-Z]:\\$/i.test(e)){return e}return e.substr(0,e.length-1)}t.safeTrimTrailingSeparator=safeTrimTrailingSeparator},6836:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.Path=void 0;const s=o(a(5622));const p=o(a(1849));const l=r(a(2357));const d=process.platform==="win32";class Path{constructor(e){this.segments=[];if(typeof e==="string"){l.default(e,`Parameter 'itemPath' must not be empty`);e=p.safeTrimTrailingSeparator(e);if(!p.hasRoot(e)){this.segments=e.split(s.sep)}else{let t=e;let a=p.dirname(t);while(a!==t){const e=s.basename(t);this.segments.unshift(e);t=a;a=p.dirname(t)}this.segments.unshift(t)}}else{l.default(e.length>0,`Parameter 'itemPath' must not be an empty array`);for(let t=0;t!e.negate));const t={};for(const a of e){const e=p?a.searchPath.toUpperCase():a.searchPath;t[e]="candidate"}const a=[];for(const i of e){const e=p?i.searchPath.toUpperCase():i.searchPath;if(t[e]==="included"){continue}let n=false;let o=e;let s=r.dirname(o);while(s!==o){if(t[s]){n=true;break}o=s;s=r.dirname(o)}if(!n){a.push(i.searchPath);t[e]="included"}}return a}t.getSearchPaths=getSearchPaths;function match(e,t){let a=s.MatchKind.None;for(const i of e){if(i.negate){a&=~i.match(t)}else{a|=i.match(t)}}return a}t.match=match;function partialMatch(e,t){return e.some((e=>!e.negate&&e.partialMatch(t)))}t.partialMatch=partialMatch},4536:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.Pattern=void 0;const s=o(a(2087));const p=o(a(5622));const l=o(a(1849));const d=r(a(2357));const c=a(3973);const m=a(1063);const u=a(6836);const f=process.platform==="win32";class Pattern{constructor(e,t=false,a,i){this.negate=false;let n;if(typeof e==="string"){n=e.trim()}else{a=a||[];d.default(a.length,`Parameter 'segments' must not empty`);const t=Pattern.getLiteral(a[0]);d.default(t&&l.hasAbsoluteRoot(t),`Parameter 'segments' first element must be a root path`);n=new u.Path(a).toString().trim();if(e){n=`!${n}`}}while(n.startsWith("!")){this.negate=!this.negate;n=n.substr(1).trim()}n=Pattern.fixupPattern(n,i);this.segments=new u.Path(n).segments;this.trailingSeparator=l.normalizeSeparators(n).endsWith(p.sep);n=l.safeTrimTrailingSeparator(n);let o=false;const r=this.segments.map((e=>Pattern.getLiteral(e))).filter((e=>!o&&!(o=e==="")));this.searchPath=new u.Path(r).toString();this.rootRegExp=new RegExp(Pattern.regExpEscape(r[0]),f?"i":"");this.isImplicitPattern=t;const s={dot:true,nobrace:true,nocase:f,nocomment:true,noext:true,nonegate:true};n=f?n.replace(/\\/g,"/"):n;this.minimatch=new c.Minimatch(n,s)}match(e){if(this.segments[this.segments.length-1]==="**"){e=l.normalizeSeparators(e);if(!e.endsWith(p.sep)&&this.isImplicitPattern===false){e=`${e}${p.sep}`}}else{e=l.safeTrimTrailingSeparator(e)}if(this.minimatch.match(e)){return this.trailingSeparator?m.MatchKind.Directory:m.MatchKind.All}return m.MatchKind.None}partialMatch(e){e=l.safeTrimTrailingSeparator(e);if(l.dirname(e)===e){return this.rootRegExp.test(e)}return this.minimatch.matchOne(e.split(f?/\\+/:/\/+/),this.minimatch.set[0],true)}static globEscape(e){return(f?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,t){d.default(e,"pattern cannot be empty");const a=new u.Path(e).segments.map((e=>Pattern.getLiteral(e)));d.default(a.every(((e,t)=>(e!=="."||t===0)&&e!=="..")),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`);d.default(!l.hasRoot(e)||a[0],`Invalid pattern '${e}'. Root segment must not contain globs.`);e=l.normalizeSeparators(e);if(e==="."||e.startsWith(`.${p.sep}`)){e=Pattern.globEscape(process.cwd())+e.substr(1)}else if(e==="~"||e.startsWith(`~${p.sep}`)){t=t||s.homedir();d.default(t,"Unable to determine HOME directory");d.default(l.hasAbsoluteRoot(t),`Expected HOME directory to be a rooted path. Actual '${t}'`);e=Pattern.globEscape(t)+e.substr(1)}else if(f&&(e.match(/^[A-Z]:$/i)||e.match(/^[A-Z]:[^\\]/i))){let t=l.ensureAbsoluteRoot("C:\\dummy-root",e.substr(0,2));if(e.length>2&&!t.endsWith("\\")){t+="\\"}e=Pattern.globEscape(t)+e.substr(2)}else if(f&&(e==="\\"||e.match(/^\\[^\\]/))){let t=l.ensureAbsoluteRoot("C:\\dummy-root","\\");if(!t.endsWith("\\")){t+="\\"}e=Pattern.globEscape(t)+e.substr(1)}else{e=l.ensureAbsoluteRoot(Pattern.globEscape(process.cwd()),e)}return l.normalizeSeparators(e)}static getLiteral(e){let t="";for(let a=0;a=0){if(i.length>1){return""}if(i){t+=i;a=n;continue}}}t+=i}return t}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,"\\$&")}}t.Pattern=Pattern},9117:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SearchState=void 0;class SearchState{constructor(e,t){this.path=e;this.level=t}}t.SearchState=SearchState},3702:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from(this.username+":"+this.password).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,t,a){return null}}t.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Bearer "+this.token}canHandleAuthentication(e){return false}handleAuthentication(e,t,a){return null}}t.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from("PAT:"+this.token).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,t,a){return null}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},9925:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const i=a(8605);const n=a(7211);const o=a(6443);let r;var 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"})(s=t.HttpCodes||(t.HttpCodes={}));var p;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(p=t.Headers||(t.Headers={}));var l;(function(e){e["ApplicationJson"]="application/json"})(l=t.MediaTypes||(t.MediaTypes={}));function getProxyUrl(e){let t=o.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const d=[s.MovedPermanently,s.ResourceMoved,s.SeeOther,s.TemporaryRedirect,s.PermanentRedirect];const c=[s.BadGateway,s.ServiceUnavailable,s.GatewayTimeout];const m=["OPTIONS","GET","DELETE","HEAD"];const u=10;const f=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return new Promise((async(e,t)=>{let a=Buffer.alloc(0);this.message.on("data",(e=>{a=Buffer.concat([a,e])}));this.message.on("end",(()=>{e(a.toString())}))}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){let t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,a){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=a;if(a){if(a.ignoreSslError!=null){this._ignoreSslError=a.ignoreSslError}this._socketTimeout=a.socketTimeout;if(a.allowRedirects!=null){this._allowRedirects=a.allowRedirects}if(a.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=a.allowRedirectDowngrade}if(a.maxRedirects!=null){this._maxRedirects=Math.max(a.maxRedirects,0)}if(a.keepAlive!=null){this._keepAlive=a.keepAlive}if(a.allowRetries!=null){this._allowRetries=a.allowRetries}if(a.maxRetries!=null){this._maxRetries=a.maxRetries}}}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,a){return this.request("POST",e,t,a||{})}patch(e,t,a){return this.request("PATCH",e,t,a||{})}put(e,t,a){return this.request("PUT",e,t,a||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,a,i){return this.request(e,t,a,i)}async getJson(e,t={}){t[p.Accept]=this._getExistingOrDefaultHeader(t,p.Accept,l.ApplicationJson);let a=await this.get(e,t);return this._processResponse(a,this.requestOptions)}async postJson(e,t,a={}){let i=JSON.stringify(t,null,2);a[p.Accept]=this._getExistingOrDefaultHeader(a,p.Accept,l.ApplicationJson);a[p.ContentType]=this._getExistingOrDefaultHeader(a,p.ContentType,l.ApplicationJson);let n=await this.post(e,i,a);return this._processResponse(n,this.requestOptions)}async putJson(e,t,a={}){let i=JSON.stringify(t,null,2);a[p.Accept]=this._getExistingOrDefaultHeader(a,p.Accept,l.ApplicationJson);a[p.ContentType]=this._getExistingOrDefaultHeader(a,p.ContentType,l.ApplicationJson);let n=await this.put(e,i,a);return this._processResponse(n,this.requestOptions)}async patchJson(e,t,a={}){let i=JSON.stringify(t,null,2);a[p.Accept]=this._getExistingOrDefaultHeader(a,p.Accept,l.ApplicationJson);a[p.ContentType]=this._getExistingOrDefaultHeader(a,p.ContentType,l.ApplicationJson);let n=await this.patch(e,i,a);return this._processResponse(n,this.requestOptions)}async request(e,t,a,i){if(this._disposed){throw new Error("Client has already been disposed.")}let n=new URL(t);let o=this._prepareRequest(e,n,i);let r=this._allowRetries&&m.indexOf(e)!=-1?this._maxRetries+1:1;let p=0;let l;while(p0){const r=l.message.headers["location"];if(!r){break}let s=new URL(r);if(n.protocol=="https:"&&n.protocol!=s.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}await l.readBody();if(s.hostname!==n.hostname){for(let e in i){if(e.toLowerCase()==="authorization"){delete i[e]}}}o=this._prepareRequest(e,s,i);l=await this.requestRaw(o,a);t--}if(c.indexOf(l.message.statusCode)==-1){return l}p+=1;if(p{let callbackForResult=function(e,t){if(e){i(e)}a(t)};this.requestRawWithCallback(e,t,callbackForResult)}))}requestRawWithCallback(e,t,a){let i;if(typeof t==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let n=false;let handleResult=(e,t)=>{if(!n){n=true;a(e,t)}};let o=e.httpModule.request(e.options,(e=>{let t=new HttpClientResponse(e);handleResult(null,t)}));o.on("socket",(e=>{i=e}));o.setTimeout(this._socketTimeout||3*6e4,(()=>{if(i){i.end()}handleResult(new Error("Request timeout: "+e.options.path),null)}));o.on("error",(function(e){handleResult(e,null)}));if(t&&typeof t==="string"){o.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){o.end()}));t.pipe(o)}else{o.end()}}getAgent(e){let t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,a){const o={};o.parsedUrl=t;const r=o.parsedUrl.protocol==="https:";o.httpModule=r?n:i;const s=r?443:80;o.options={};o.options.host=o.parsedUrl.hostname;o.options.port=o.parsedUrl.port?parseInt(o.parsedUrl.port):s;o.options.path=(o.parsedUrl.pathname||"")+(o.parsedUrl.search||"");o.options.method=e;o.options.headers=this._mergeHeaders(a);if(this.userAgent!=null){o.options.headers["user-agent"]=this.userAgent}o.options.agent=this._getAgent(o.parsedUrl);if(this.handlers){this.handlers.forEach((e=>{e.prepareRequest(o.options)}))}return o}_mergeHeaders(e){const lowercaseKeys=e=>Object.keys(e).reduce(((t,a)=>(t[a.toLowerCase()]=e[a],t)),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,a){const lowercaseKeys=e=>Object.keys(e).reduce(((t,a)=>(t[a.toLowerCase()]=e[a],t)),{});let i;if(this.requestOptions&&this.requestOptions.headers){i=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||i||a}_getAgent(e){let t;let s=o.getProxyUrl(e);let p=s&&s.hostname;if(this._keepAlive&&p){t=this._proxyAgent}if(this._keepAlive&&!p){t=this._agent}if(!!t){return t}const l=e.protocol==="https:";let d=100;if(!!this.requestOptions){d=this.requestOptions.maxSockets||i.globalAgent.maxSockets}if(p){if(!r){r=a(4294)}const e={maxSockets:d,keepAlive:this._keepAlive,proxy:{...(s.username||s.password)&&{proxyAuth:`${s.username}:${s.password}`},host:s.hostname,port:s.port}};let i;const n=s.protocol==="https:";if(l){i=n?r.httpsOverHttps:r.httpsOverHttp}else{i=n?r.httpOverHttps:r.httpOverHttp}t=i(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:d};t=l?new n.Agent(e):new i.Agent(e);this._agent=t}if(!t){t=l?n.globalAgent:i.globalAgent}if(l&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){e=Math.min(u,e);const t=f*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}static dateTimeDeserializer(e,t){if(typeof t==="string"){let e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}async _processResponse(e,t){return new Promise((async(a,i)=>{const n=e.message.statusCode;const o={statusCode:n,result:null,headers:{}};if(n==s.NotFound){a(o)}let r;let p;try{p=await e.readBody();if(p&&p.length>0){if(t&&t.deserializeDates){r=JSON.parse(p,HttpClient.dateTimeDeserializer)}else{r=JSON.parse(p)}o.result=r}o.headers=e.message.headers}catch(e){}if(n>299){let e;if(r&&r.message){e=r.message}else if(p&&p.length>0){e=p}else{e="Failed request: ("+n+")"}let t=new HttpClientError(e,n);t.result=o.result;i(t)}else{a(o)}}))}}t.HttpClient=HttpClient},6443:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function getProxyUrl(e){let t=e.protocol==="https:";let a;if(checkBypass(e)){return a}let i;if(t){i=process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{i=process.env["http_proxy"]||process.env["HTTP_PROXY"]}if(i){a=new URL(i)}return a}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}let t=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!t){return false}let a;if(e.port){a=Number(e.port)}else if(e.protocol==="http:"){a=80}else if(e.protocol==="https:"){a=443}let i=[e.hostname.toUpperCase()];if(typeof a==="number"){i.push(`${i[0]}:${a}`)}for(let e of t.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(i.some((t=>t===e))){return true}}return false}t.checkBypass=checkBypass},1962:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var r=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var s;Object.defineProperty(t,"__esModule",{value:true});t.getCmdPath=t.tryGetExecutablePath=t.isRooted=t.isDirectory=t.exists=t.IS_WINDOWS=t.unlink=t.symlink=t.stat=t.rmdir=t.rename=t.readlink=t.readdir=t.mkdir=t.lstat=t.copyFile=t.chmod=void 0;const p=o(a(5747));const l=o(a(5622));s=p.promises,t.chmod=s.chmod,t.copyFile=s.copyFile,t.lstat=s.lstat,t.mkdir=s.mkdir,t.readdir=s.readdir,t.readlink=s.readlink,t.rename=s.rename,t.rmdir=s.rmdir,t.stat=s.stat,t.symlink=s.symlink,t.unlink=s.unlink;t.IS_WINDOWS=process.platform==="win32";function exists(e){return r(this,void 0,void 0,(function*(){try{yield t.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}t.exists=exists;function isDirectory(e,a=false){return r(this,void 0,void 0,(function*(){const i=a?yield t.stat(e):yield t.lstat(e);return i.isDirectory()}))}t.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(t.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.isRooted=isRooted;function tryGetExecutablePath(e,a){return r(this,void 0,void 0,(function*(){let i=undefined;try{i=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(i&&i.isFile()){if(t.IS_WINDOWS){const t=l.extname(e).toUpperCase();if(a.some((e=>e.toUpperCase()===t))){return e}}else{if(isUnixExecutable(i)){return e}}}const n=e;for(const o of a){e=n+o;i=undefined;try{i=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(i&&i.isFile()){if(t.IS_WINDOWS){try{const a=l.dirname(e);const i=l.basename(e).toUpperCase();for(const n of yield t.readdir(a)){if(i===n.toUpperCase()){e=l.join(a,n);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(i)){return e}}}}return""}))}t.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(t.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}function getCmdPath(){var e;return(e=process.env["COMSPEC"])!==null&&e!==void 0?e:`cmd.exe`}t.getCmdPath=getCmdPath},7436:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var r=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.findInPath=t.which=t.mkdirP=t.rmRF=t.mv=t.cp=void 0;const s=a(2357);const p=o(a(3129));const l=o(a(5622));const d=a(1669);const c=o(a(1962));const m=d.promisify(p.exec);const u=d.promisify(p.execFile);function cp(e,t,a={}){return r(this,void 0,void 0,(function*(){const{force:i,recursive:n,copySourceDirectory:o}=readCopyOptions(a);const r=(yield c.exists(t))?yield c.stat(t):null;if(r&&r.isFile()&&!i){return}const s=r&&r.isDirectory()&&o?l.join(t,l.basename(e)):t;if(!(yield c.exists(e))){throw new Error(`no such file or directory: ${e}`)}const p=yield c.stat(e);if(p.isDirectory()){if(!n){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,s,0,i)}}else{if(l.relative(e,s)===""){throw new Error(`'${s}' and '${e}' are the same file`)}yield copyFile(e,s,i)}}))}t.cp=cp;function mv(e,t,a={}){return r(this,void 0,void 0,(function*(){if(yield c.exists(t)){let i=true;if(yield c.isDirectory(t)){t=l.join(t,l.basename(e));i=yield c.exists(t)}if(i){if(a.force==null||a.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(l.dirname(t));yield c.rename(e,t)}))}t.mv=mv;function rmRF(e){return r(this,void 0,void 0,(function*(){if(c.IS_WINDOWS){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}try{const t=c.getCmdPath();if(yield c.isDirectory(e,true)){yield m(`${t} /s /c "rd /s /q "%inputPath%""`,{env:{inputPath:e}})}else{yield m(`${t} /s /c "del /f /a "%inputPath%""`,{env:{inputPath:e}})}}catch(e){if(e.code!=="ENOENT")throw e}try{yield c.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let t=false;try{t=yield c.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(t){yield u(`rm`,[`-rf`,`${e}`])}else{yield c.unlink(e)}}}))}t.rmRF=rmRF;function mkdirP(e){return r(this,void 0,void 0,(function*(){s.ok(e,"a path argument must be provided");yield c.mkdir(e,{recursive:true})}))}t.mkdirP=mkdirP;function which(e,t){return r(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(t){const t=yield which(e,false);if(!t){if(c.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. 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.`)}else{throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}return t}const a=yield findInPath(e);if(a&&a.length>0){return a[0]}return""}))}t.which=which;function findInPath(e){return r(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const t=[];if(c.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(l.delimiter)){if(e){t.push(e)}}}if(c.isRooted(e)){const a=yield c.tryGetExecutablePath(e,t);if(a){return[a]}return[]}if(e.includes(l.sep)){return[]}const a=[];if(process.env.PATH){for(const e of process.env.PATH.split(l.delimiter)){if(e){a.push(e)}}}const i=[];for(const n of a){const a=yield c.tryGetExecutablePath(l.join(n,e),t);if(a){i.push(a)}}return i}))}t.findInPath=findInPath;function readCopyOptions(e){const t=e.force==null?true:e.force;const a=Boolean(e.recursive);const i=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:t,recursive:a,copySourceDirectory:i}}function cpDirRecursive(e,t,a,i){return r(this,void 0,void 0,(function*(){if(a>=255)return;a++;yield mkdirP(t);const n=yield c.readdir(e);for(const o of n){const n=`${e}/${o}`;const r=`${t}/${o}`;const s=yield c.lstat(n);if(s.isDirectory()){yield cpDirRecursive(n,r,a,i)}else{yield copyFile(n,r,i)}}yield c.chmod(t,(yield c.stat(e)).mode)}))}function copyFile(e,t,a){return r(this,void 0,void 0,(function*(){if((yield c.lstat(e)).isSymbolicLink()){try{yield c.lstat(t);yield c.unlink(t)}catch(e){if(e.code==="EPERM"){yield c.chmod(t,"0666");yield c.unlink(t)}}const a=yield c.readlink(e);yield c.symlink(a,t,c.IS_WINDOWS?"junction":null)}else if(!(yield c.exists(t))||a){yield c.copyFile(e,t)}}))}},2473:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var r=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t._readLinuxVersionFile=t._getOsVersion=t._findMatch=void 0;const s=o(a(5911));const p=a(2186);const l=a(2087);const d=a(3129);const c=a(5747);function _findMatch(t,a,i,n){return r(this,void 0,void 0,(function*(){const o=l.platform();let r;let d;let c;for(const r of i){const i=r.version;p.debug(`check ${i} satisfies ${t}`);if(s.satisfies(i,t)&&(!a||r.stable===a)){c=r.files.find((t=>{p.debug(`${t.arch}===${n} && ${t.platform}===${o}`);let a=t.arch===n&&t.platform===o;if(a&&t.platform_version){const i=e.exports._getOsVersion();if(i===t.platform_version){a=true}else{a=s.satisfies(i,t.platform_version)}}return a}));if(c){p.debug(`matched ${r.version}`);d=r;break}}}if(d&&c){r=Object.assign({},d);r.files=[c]}return r}))}t._findMatch=_findMatch;function _getOsVersion(){const t=l.platform();let a="";if(t==="darwin"){a=d.execSync("sw_vers -productVersion").toString()}else if(t==="linux"){const t=e.exports._readLinuxVersionFile();if(t){const e=t.split("\n");for(const t of e){const e=t.split("=");if(e.length===2&&(e[0].trim()==="VERSION_ID"||e[0].trim()==="DISTRIB_RELEASE")){a=e[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return a}t._getOsVersion=_getOsVersion;function _readLinuxVersionFile(){const e="/etc/lsb-release";const t="/etc/os-release";let a="";if(c.existsSync(e)){a=c.readFileSync(e).toString()}else if(c.existsSync(t)){a=c.readFileSync(t).toString()}return a}t._readLinuxVersionFile=_readLinuxVersionFile},8279:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var r=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.RetryHelper=void 0;const s=o(a(2186));class RetryHelper{constructor(e,t,a){if(e<1){throw new Error("max attempts should be greater than or equal to 1")}this.maxAttempts=e;this.minSeconds=Math.floor(t);this.maxSeconds=Math.floor(a);if(this.minSeconds>this.maxSeconds){throw new Error("min seconds should be less than or equal to max seconds")}}execute(e,t){return r(this,void 0,void 0,(function*(){let a=1;while(asetTimeout(t,e*1e3)))}))}}t.RetryHelper=RetryHelper},7784:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var r=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.evaluateVersions=t.isExplicitVersion=t.findFromManifest=t.getManifestFromRepo=t.findAllVersions=t.find=t.cacheFile=t.cacheDir=t.extractZip=t.extractXar=t.extractTar=t.extract7z=t.downloadTool=t.HTTPError=void 0;const p=o(a(2186));const l=o(a(7436));const d=o(a(5747));const c=o(a(2473));const m=o(a(2087));const u=o(a(5622));const f=o(a(9925));const h=o(a(5911));const g=o(a(2413));const y=o(a(1669));const v=s(a(824));const b=a(1514);const x=a(2357);const w=a(8279);class HTTPError extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`);this.httpStatusCode=e;Object.setPrototypeOf(this,new.target.prototype)}}t.HTTPError=HTTPError;const S=process.platform==="win32";const N=process.platform==="darwin";const k="actions/tool-cache";function downloadTool(e,t,a,i){return r(this,void 0,void 0,(function*(){t=t||u.join(_getTempDirectory(),v.default());yield l.mkdirP(u.dirname(t));p.debug(`Downloading ${e}`);p.debug(`Destination ${t}`);const n=3;const o=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10);const s=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);const d=new w.RetryHelper(n,o,s);return yield d.execute((()=>r(this,void 0,void 0,(function*(){return yield downloadToolAttempt(e,t||"",a,i)}))),(e=>{if(e instanceof HTTPError&&e.httpStatusCode){if(e.httpStatusCode<500&&e.httpStatusCode!==408&&e.httpStatusCode!==429){return false}}return true}))}))}t.downloadTool=downloadTool;function downloadToolAttempt(e,t,a,i){return r(this,void 0,void 0,(function*(){if(d.existsSync(t)){throw new Error(`Destination file path ${t} already exists`)}const n=new f.HttpClient(k,[],{allowRetries:false});if(a){p.debug("set auth");if(i===undefined){i={}}i.authorization=a}const o=yield n.get(e,i);if(o.message.statusCode!==200){const t=new HTTPError(o.message.statusCode);p.debug(`Failed to download from "${e}". Code(${o.message.statusCode}) Message(${o.message.statusMessage})`);throw t}const r=y.promisify(g.pipeline);const s=_getGlobal("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>o.message));const c=s();let m=false;try{yield r(c,d.createWriteStream(t));p.debug("download complete");m=true;return t}finally{if(!m){p.debug("download failed");try{yield l.rmRF(t)}catch(e){p.debug(`Failed to delete '${t}'. ${e.message}`)}}}}))}function extract7z(e,t,a){return r(this,void 0,void 0,(function*(){x.ok(S,"extract7z() not supported on current OS");x.ok(e,'parameter "file" is required');t=yield _createExtractFolder(t);const i=process.cwd();process.chdir(t);if(a){try{const t=p.isDebug()?"-bb1":"-bb0";const n=["x",t,"-bd","-sccUTF-8",e];const o={silent:true};yield b.exec(`"${a}"`,n,o)}finally{process.chdir(i)}}else{const a=u.join(__dirname,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"");const n=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const o=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const r=`& '${a}' -Source '${n}' -Target '${o}'`;const s=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",r];const p={silent:true};try{const e=yield l.which("powershell",true);yield b.exec(`"${e}"`,s,p)}finally{process.chdir(i)}}return t}))}t.extract7z=extract7z;function extractTar(e,t,a="xz"){return r(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'file' is required")}t=yield _createExtractFolder(t);p.debug("Checking tar --version");let i="";yield b.exec("tar --version",[],{ignoreReturnCode:true,silent:true,listeners:{stdout:e=>i+=e.toString(),stderr:e=>i+=e.toString()}});p.debug(i.trim());const n=i.toUpperCase().includes("GNU TAR");let o;if(a instanceof Array){o=a}else{o=[a]}if(p.isDebug()&&!a.includes("v")){o.push("-v")}let r=t;let s=e;if(S&&n){o.push("--force-local");r=t.replace(/\\/g,"/");s=e.replace(/\\/g,"/")}if(n){o.push("--warning=no-unknown-keyword");o.push("--overwrite")}o.push("-C",r,"-f",s);yield b.exec(`tar`,o);return t}))}t.extractTar=extractTar;function extractXar(e,t,a=[]){return r(this,void 0,void 0,(function*(){x.ok(N,"extractXar() not supported on current OS");x.ok(e,'parameter "file" is required');t=yield _createExtractFolder(t);let i;if(a instanceof Array){i=a}else{i=[a]}i.push("-x","-C",t,"-f",e);if(p.isDebug()){i.push("-v")}const n=yield l.which("xar",true);yield b.exec(`"${n}"`,_unique(i));return t}))}t.extractXar=extractXar;function extractZip(e,t){return r(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'file' is required")}t=yield _createExtractFolder(t);if(S){yield extractZipWin(e,t)}else{yield extractZipNix(e,t)}return t}))}t.extractZip=extractZip;function extractZipWin(e,t){return r(this,void 0,void 0,(function*(){const a=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const i=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const n=yield l.which("pwsh",false);if(n){const e=[`$ErrorActionPreference = 'Stop' ;`,`try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;`,`try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${a}', '${i}', $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 '${i}' -Force } else { throw $_ } } ;`].join(" ");const t=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e];p.debug(`Using pwsh at path: ${n}`);yield b.exec(`"${n}"`,t)}else{const e=[`$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 '${i}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${a}', '${i}', $true) }`].join(" ");const t=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e];const n=yield l.which("powershell",true);p.debug(`Using powershell at path: ${n}`);yield b.exec(`"${n}"`,t)}}))}function extractZipNix(e,t){return r(this,void 0,void 0,(function*(){const a=yield l.which("unzip",true);const i=[e];if(!p.isDebug()){i.unshift("-q")}i.unshift("-o");yield b.exec(`"${a}"`,i,{cwd:t})}))}function cacheDir(e,t,a,i){return r(this,void 0,void 0,(function*(){a=h.clean(a)||a;i=i||m.arch();p.debug(`Caching tool ${t} ${a} ${i}`);p.debug(`source dir: ${e}`);if(!d.statSync(e).isDirectory()){throw new Error("sourceDir is not a directory")}const n=yield _createToolPath(t,a,i);for(const t of d.readdirSync(e)){const a=u.join(e,t);yield l.cp(a,n,{recursive:true})}_completeToolPath(t,a,i);return n}))}t.cacheDir=cacheDir;function cacheFile(e,t,a,i,n){return r(this,void 0,void 0,(function*(){i=h.clean(i)||i;n=n||m.arch();p.debug(`Caching tool ${a} ${i} ${n}`);p.debug(`source file: ${e}`);if(!d.statSync(e).isFile()){throw new Error("sourceFile is not a file")}const o=yield _createToolPath(a,i,n);const r=u.join(o,t);p.debug(`destination file ${r}`);yield l.cp(e,r);_completeToolPath(a,i,n);return o}))}t.cacheFile=cacheFile;function find(e,t,a){if(!e){throw new Error("toolName parameter is required")}if(!t){throw new Error("versionSpec parameter is required")}a=a||m.arch();if(!isExplicitVersion(t)){const i=findAllVersions(e,a);const n=evaluateVersions(i,t);t=n}let i="";if(t){t=h.clean(t)||"";const n=u.join(_getCacheDirectory(),e,t,a);p.debug(`checking cache: ${n}`);if(d.existsSync(n)&&d.existsSync(`${n}.complete`)){p.debug(`Found tool in cache ${e} ${t} ${a}`);i=n}else{p.debug("not found")}}return i}t.find=find;function findAllVersions(e,t){const a=[];t=t||m.arch();const i=u.join(_getCacheDirectory(),e);if(d.existsSync(i)){const e=d.readdirSync(i);for(const n of e){if(isExplicitVersion(n)){const e=u.join(i,n,t||"");if(d.existsSync(e)&&d.existsSync(`${e}.complete`)){a.push(n)}}}}return a}t.findAllVersions=findAllVersions;function getManifestFromRepo(e,t,a,i="master"){return r(this,void 0,void 0,(function*(){let n=[];const o=`https://api.github.com/repos/${e}/${t}/git/trees/${i}`;const r=new f.HttpClient("tool-cache");const s={};if(a){p.debug("set auth");s.authorization=a}const l=yield r.getJson(o,s);if(!l.result){return n}let d="";for(const e of l.result.tree){if(e.path==="versions-manifest.json"){d=e.url;break}}s["accept"]="application/vnd.github.VERSION.raw";let c=yield(yield r.get(d,s)).readBody();if(c){c=c.replace(/^\uFEFF/,"");try{n=JSON.parse(c)}catch(e){p.debug("Invalid json")}}return n}))}t.getManifestFromRepo=getManifestFromRepo;function findFromManifest(e,t,a,i=m.arch()){return r(this,void 0,void 0,(function*(){const n=yield c._findMatch(e,t,a,i);return n}))}t.findFromManifest=findFromManifest;function _createExtractFolder(e){return r(this,void 0,void 0,(function*(){if(!e){e=u.join(_getTempDirectory(),v.default())}yield l.mkdirP(e);return e}))}function _createToolPath(e,t,a){return r(this,void 0,void 0,(function*(){const i=u.join(_getCacheDirectory(),e,h.clean(t)||t,a||"");p.debug(`destination ${i}`);const n=`${i}.complete`;yield l.rmRF(i);yield l.rmRF(n);yield l.mkdirP(i);return i}))}function _completeToolPath(e,t,a){const i=u.join(_getCacheDirectory(),e,h.clean(t)||t,a||"");const n=`${i}.complete`;d.writeFileSync(n,"");p.debug("finished caching tool")}function isExplicitVersion(e){const t=h.clean(e)||"";p.debug(`isExplicit: ${t}`);const a=h.valid(t)!=null;p.debug(`explicit? ${a}`);return a}t.isExplicitVersion=isExplicitVersion;function evaluateVersions(e,t){let a="";p.debug(`evaluating ${e.length} versions`);e=e.sort(((e,t)=>{if(h.gt(e,t)){return 1}return-1}));for(let i=e.length-1;i>=0;i--){const n=e[i];const o=h.satisfies(n,t);if(o){a=n;break}}if(a){p.debug(`matched: ${a}`)}else{p.debug("match not found")}return a}t.evaluateVersions=evaluateVersions;function _getCacheDirectory(){const e=process.env["RUNNER_TOOL_CACHE"]||"";x.ok(e,"Expected RUNNER_TOOL_CACHE to be defined");return e}function _getTempDirectory(){const e=process.env["RUNNER_TEMP"]||"";x.ok(e,"Expected RUNNER_TEMP to be defined");return e}function _getGlobal(e,t){const a=global[e];return a!==undefined?a:t}function _unique(e){return Array.from(new Set(e))}},2557:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var i=a(9268);var n=new WeakMap;var o=new WeakMap;var r=function(){function AbortSignal(){this.onabort=null;n.set(this,[]);o.set(this,false)}Object.defineProperty(AbortSignal.prototype,"aborted",{get:function(){if(!o.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}return o.get(this)},enumerable:false,configurable:true});Object.defineProperty(AbortSignal,"none",{get:function(){return new AbortSignal},enumerable:false,configurable:true});AbortSignal.prototype.addEventListener=function(e,t){if(!n.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}var a=n.get(this);a.push(t)};AbortSignal.prototype.removeEventListener=function(e,t){if(!n.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}var a=n.get(this);var i=a.indexOf(t);if(i>-1){a.splice(i,1)}};AbortSignal.prototype.dispatchEvent=function(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")};return AbortSignal}();function abortSignal(e){if(e.aborted){return}if(e.onabort){e.onabort.call(e)}var t=n.get(e);if(t){t.slice().forEach((function(t){t.call(e,{type:"abort"})}))}o.set(e,true)}var s=function(e){i.__extends(AbortError,e);function AbortError(t){var a=e.call(this,t)||this;a.name="AbortError";return a}return AbortError}(Error);var p=function(){function AbortController(e){var t=this;this._signal=new r;if(!e){return}if(!Array.isArray(e)){e=arguments}for(var a=0,i=e;a{ +(()=>{var __webpack_modules__={4523:(e,t,a)=>{const i=a(2186);e.exports={Alpha:0,Beta:1,Release:2,getBuildLevel:()=>{const e=i.getInput("build_level");const t=e.length>0?e:process.env["AUDACITY_BUILD_LEVEL"];if(t==="beta"){return 1}else if(t==="release"){return 2}else{const e=Number(t);if(Number.isInteger(e)&&e>=0&&e<=2){return e}return 0}},getBuildSuffix:e=>{if(e==1){return"beta"}else if(e==2){return""}else{return"alpha"}}}},3319:(e,t,a)=>{const i=a(5622);const n=a(5747);const o=a(2186);const r=a(1514);const s=a(7799);const p=a(8090);const l=a(5008);async function getStdOut(...e){let t=await r.getExecOutput(...e);return t.stdout.trim()}async function getConanVersion(){let e=await getStdOut("conan",["--version"]);return e.match(/[\d]+\.[\d]+\.[\d]+/g)[0]}async function getCompilerVersion(e){if(process.platform==="win32"){return"msvc-"+e.match(/[\d]+/g)[0]}else if(process.platform==="darwin"){return"clang-"+await getStdOut("clang",["-dumpversion"])}else{return"gcc-"+await getStdOut("gcc",["-dumpfullversion"])}}async function getConanCacheKeys(e){const t=i.join(workspaceDir,"cmake-proxies/CMakeLists.txt");const a=l.getMD5(t);const n=await getConanVersion();const o=["conan",n,process.platform,await getCompilerVersion(e)].join("-");const r=[o,a].join("-");return{key:r,restoreKeys:[o]}}async function restoreConanCache(e){try{return e.key==await s.restoreCache([conanCachePath],e.key,e.restoreKeys)}catch(e){l.log("Failed to restore the cache: "+e.message);return false}}async function uploadBinaries(){const e=await p.create(`${workspaceDir}/.conan/data/**/build`);const t=await e.glob();if(t.length==0){l.log("No new binaries were built. Skipping upload.");return}const a=process.env["CONAN_BINARIES_REMOTE"];if(a){await l.execWithLog(`conan remote add audacity-binaries-upload ${a} true --force`);await l.execWithLog(`conan upload "*" -r audacity-binaries-upload -c --all`)}}async function cleanupConanBuilds(){l.log("Cleaning up conan build cache");await l.execWithLog('conan remove "*" --src --builds --force')}async function storeConanCache(e){try{await s.saveCache([conanCachePath],e.key)}catch(e){l.error("Failed to save the cache: "+e.message)}}async function setupConan(){o.exportVariable("CONAN_USER_HOME",workspaceDir);o.exportVariable("CONAN_REVISIONS_ENABLED","1")}e.exports={setupConan:setupConan,getConanCacheKeys:getConanCacheKeys,restoreConanCache:restoreConanCache,cleanupConanBuilds:cleanupConanBuilds,storeConanCache:storeConanCache,uploadBinaries:uploadBinaries}},5800:(e,t,a)=>{const i=a(5747);const n=a(5622);const o=a(467);const r=a(8090);const s=a(7784);const p=a(5008);const l=a(1066);const d=process.env["ARTIFACTORY_SYMBOLS_URL"];const c=process.env["ARTIFACTORY_SYMBOLS_KEY"];const m="C:\\Program Files (x86)\\Windows Kits\\10\\Debuggers\\x64\\symstore.exe";const u=process.platform==="win32"&&i.existsSync(m);const f=n.join(workspaceDir,".debug");const h=n.join(f,"SymStore");async function getSentryCli(){let e="";try{if(process.platform==="win32"){e=await s.downloadTool("https://downloads.sentry-cdn.com/sentry-cli/1.71.0/sentry-cli-Windows-x86_64.exe")}else if(process.platform==="darwin"){e=await s.downloadTool("https://downloads.sentry-cdn.com/sentry-cli/1.71.0/sentry-cli-Darwin-universal")}else{e=await s.downloadTool("https://downloads.sentry-cdn.com/sentry-cli/1.71.0/sentry-cli-Linux-x86_64")}const t=process.platform==="win32"?"sentry-cli.exe":"sentry-cli";const a=n.join(n.dirname(e),t);await i.promises.rename(e,a);if(process.platform!=="win32"){await i.promises.chmod(a,"0766")}return a}catch(e){p.error(e);return""}}const g={authToken:process.env["SENTRY_AUTH_TOKEN"]||"",url:"https://"+process.env["SENTRY_HOST"],org:process.env["SENTRY_ORG_SLUG"]||"",project:process.env["SENTRY_PROJECT_SLUG"]||"",cliInitialized:false,cliFound:false};const y=g.authToken.length>0&&g.url.length>0&&g.org.length>0&&g.project.length>0;async function download(e,t,a){const r=await o(e+t);if(!r.ok){return false}try{await new Promise(((e,o)=>{let s=n.join(a,t);let p=n.dirname(s);if(!i.existsSync(p)){i.mkdirSync(p,{recursive:true})}const l=i.createWriteStream(s);r.body.pipe(l);r.body.on("error",(e=>{o(e)}));l.on("finish",(function(){e()}))}));return true}catch(e){return false}}async function download000Admin(e){if(await download(d,"000Admin/lastid.txt",e)){await download(d,"000Admin/history.txt",e);await download(d,"000Admin/server.txt",e)}}async function uploadSymStore(){await download000Admin();const e=await l.listDirectory(h);for(const t of e){let e=d+n.relative(h,t).replaceAll(n.sep,"/");p.log(`Uploading ${e}`);let a=i.createReadStream(t);try{let t=await o(e,{method:"PUT",headers:{Authorization:"Bearer "+c},body:a});if(!t.ok){p.error("Failed to upload "+t.status)}}catch(e){p.error(e)}}}async function uploadAllToSentry(e){if(!g.cliInitialized){g.cliInitialized=true;g.cli=await getSentryCli();g.cliFound=g.cli.length>0;if(!g.cliFound){p.error("sentry-cli is not available");return}}if(g.cliFound&&y){for(const t of e){await p.execWithLog(g.cli,["--auth-token",g.authToken,"--url",g.url,"upload-dif","--include-sources","--org",g.org,"--project",g.project,t])}}}async function addToSymStore(e){if(u){await p.execWithLog('"'+m+'"',["add","/s",h,"/compress","/r","/f",e,"/t",n.basename(e,".pdb")])}}async function splitDsymFile(e){if(!i.existsSync(f)){i.mkdirSync(f,{recursive:true})}p.log(`Calling dsymutil on ${e}`);let t=n.join(f,n.basename(e)+".dSYM");await p.execWithLog("dsymutil",[e,"-o",t]);return t}async function splitDebugFile(e){if(!i.existsSync(f)){i.mkdirSync(f,{recursive:true})}let t=n.join(f,n.basename(e)+".debug");try{await p.execWithLog("objcopy",["--only-keep-debug","--compress-debug-section=zlib",e,t]);if(!i.existsSync(t)){return""}await p.execWithLog("objcopy",["--strip-debug","--strip-unneeded",e]);await p.execWithLog("objcopy",["--add-gnu-debuglink="+t,e]);return t}catch(e){p.error(e);return""}}async function getMatchingFiles(e,t,a){const i=await l.globFiles(e);const o=await l.globFiles(t);return i.filter((e=>{const t=!a?n.basename(e):n.basename(e,n.extname(e));return o.findIndex((e=>e.indexOf(t)!=-1))!=-1}))}async function splitDepsDebugSymbols(e,t,a){const i=await getMatchingFiles(n.join(conanCachePath,"data/**/package/**/*"+e),n.join(conanCachePath,"data/**/build/**/*"+e));let o=[];for(const e of i){const a=await t(e);if(a.length>0){o.push(a)}}if(a&&o.length>0){await uploadAllToSentry([...o,...i])}}async function splitAudacityDebugSymbols(e,t,a,o,r){const s=n.join(e,"bin",t);const p=(await l.globFiles(`${s}/**/*`)).filter((e=>{const t=i.lstatSync(e);return t.isFile()&&t.mode&i.constants.S_IXUSR&&n.extname(e).length==0}));const d=await getMatchingFiles(`${s}/**/*${a}`,`${conanCachePath}/**/package/**/*${a}`);const c=(await l.globFiles(`${s}/**/*${a}`)).filter((e=>{const t=i.lstatSync(e);if(!t.isFile())return false;return d.indexOf(e)==-1}));const m=[...p,...c];let u=[];for(const e of m){const t=await o(e);if(t.length>0){u.push(t)}}if(r&&u.length>0){await uploadAllToSentry([...u,...m])}}async function processDependenciesDebugInformation(e,t,a){if(process.platform=="win32"){if(!a||!d){return}if(!u){p.error("symstore.exe is not available");return}const e=await l.globFiles(n.join(conanCachePath,"data/**/build/**/*.pdb"));for(const t of e){await addToSymStore(t)}if(e.length>0){await uploadSymStore();const t=await l.globFiles(n.join(conanCachePath,"data/**/build/**/*.dll"));await uploadAllToSentry([...e,...t])}}else if(process.platform=="darwin"){await splitDepsDebugSymbols(".dylib",splitDsymFile,a)}else{await splitDepsDebugSymbols(".so*",splitDebugFile,a)}}async function processDebugInformation(e,t,a){if(process.platform=="win32"){const o=await l.globFiles(n.join(e,`bin/${t}/**/*.pdb`));if(a){const a=await l.globFiles(n.join(e,`shared/${t}/**/*.pdb`));const i=await getMatchingFiles(n.join(e,`shared/${t}/**/*.dll`),n.join(e,`shared/${t}/**/*.pdb`),true);const r=await getMatchingFiles([n.join(e,`bin/${t}/**/*.exe`),n.join(e,`bin/${t}/**/*.dll`)],n.join(e,`bin/${t}/**/*.pdb`),true);const s=[...o,...a];for(const e of s){await addToSymStore(e)}await uploadAllToSentry(s);await uploadAllToSentry([...i,...s,...r])}const r=await l.globFiles([n.join(e,`bin/${t}/**/*.ipdb`),n.join(e,`bin/${t}/**/*.iobj`),n.join(e,`bin/${t}/**/*.ilk`)]);for(const e of[...o,...r]){await i.promises.rm(e)}}else if(process.platform=="darwin"){await splitAudacityDebugSymbols(e,t,".dylib",splitDsymFile,a)}else{await splitAudacityDebugSymbols(e,t,".so*",splitDebugFile,a)}}e.exports={processDependenciesDebugInformation:processDependenciesDebugInformation,processDebugInformation:processDebugInformation}},1066:(e,t,a)=>{const i=a(5747);const n=a(5622);const o=a(8090);helpers=a(5008);const getFilesFromDirectoryRecursive=async e=>{const t=await i.promises.readdir(e);const a=await Promise.all(t.map((async t=>{const a=n.join(e,t);const o=await i.promises.stat(a);if(o.isDirectory()){return getFilesFromDirectoryRecursive(a)}else{return a}})));return a.filter((e=>e.length))};async function globFiles(e){const t=await o.create(Array.isArray(e)?e.join("\n"):e);let a=[];for await(const e of t.globGenerator()){const t=await i.promises.lstat(e);if(t.isSymbolicLink()){continue}a.push(e)}return a}async function listMacosAppsRecursive(e,t){const a=await i.promises.readdir(e);await Promise.all(a.map((async a=>{const o=n.join(e,a);const r=await i.promises.stat(o);if(r.isDirectory()){if(n.extname(a)==".app"){t.push(o)}else{return listMacosAppsRecursive(o,t)}}})))}async function getAudacityMacOSBundleFiles(e){bundle={MacOS:[],Frameworks:{dylib:[]},modules:[],misc:[]};const t=(await getFilesFromDirectoryRecursive(e)).flat(Infinity);t.forEach((e=>{if(e.indexOf("Contents/MacOS")!=-1){bundle.MacOS.push(e)}else if(e.indexOf("Contents/Frameworks")!=-1){const t=i.statSync(e);if(t.isSymbolicLink()){bundle.misc.push(e)}else if(t.isFile()){bundle.Frameworks.dylib.push(e)}else{throw Error("Bundled frameworks are not supported")}}else if(e.indexOf("Contents/modules")!=-1){bundle.modules.push(e)}else{bundle.misc.push(e)}}));return bundle}async function copyFile(e,t){const a=n.dirname(t);if(!i.existsSync(a)){i.mkdirSync(a,{recursive:true})}return i.promises.copyFile(e,t)}async function copyFiles(e,t,a){return helpers.awaitAll(t,(async t=>{const i=n.relative(e,t);return copyFile(t,n.join(a,i))}))}async function listMacosApps(e){apps=[];await listMacosAppsRecursive(e,apps);return apps}e.exports={listDirectory:async e=>(await getFilesFromDirectoryRecursive(e)).flat(Infinity),globFiles:globFiles,listMacosApps:listMacosApps,getAudacityMacOSBundleFiles:getAudacityMacOSBundleFiles,copyFile:copyFile,copyFiles:copyFiles}},5008:(e,t,a)=>{const i=a(2186);const n=a(1514);const o=a(5622);const r=a(1711);const s=a(5747);const p=process.env["CI"];global.workspaceDir=process.env["GITHUB_WORKSPACE"];global.conanCachePath=o.join(workspaceDir,".conan");function log(e){if(p){i.info(e)}else{console.log(e)}}function error(e){if(p){i.error(e)}else{console.error(e)}}async function execWithLog(e,arguments){if(p){return n.exec(e,arguments)}else{return n.exec(e,arguments,{listeners:{stdout:e=>{log(e.toString())},stderr:e=>{error(e.toString())}}})}}async function getExecOutput(e,arguments){if(p){return n.getExecOutput(e,arguments)}else{return n.getExecOutput(e,arguments,{listeners:{stdout:e=>{log(e.toString())},stderr:e=>{error(e.toString())}}})}}async function awaitAll(e,t){return await Promise.all(e.map((async e=>t(e))))}async function getMD5(e){const t=await s.promises.readFile(e);return r(t)}function getDateString(){const e=new Date;return[e.getFullYear(),("0"+(e.getMonth()+1)).slice(-2),("0"+e.getDate()).slice(-2)].join("")}const sleep=e=>new Promise((t=>setTimeout(t,e)));process.on("unhandledRejection",((e,t)=>{error(e);i.setFailed(e);process.exit(1)})).on("uncaughtException",(e=>{error(e);i.setFailed(e);process.exit(1)}));e.exports={log:log,error:error,execWithLog:execWithLog,getExecOutput:getExecOutput,sleep:sleep,awaitAll:awaitAll,getMD5:getMD5,getDateString:getDateString}},7799:function(e,t,a){"use strict";var i=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(Object.hasOwnProperty.call(e,a))t[a]=e[a];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=n(a(2186));const r=n(a(5622));const s=n(a(1518));const p=n(a(8245));const l=a(6490);class ValidationError extends Error{constructor(e){super(e);this.name="ValidationError";Object.setPrototypeOf(this,ValidationError.prototype)}}t.ValidationError=ValidationError;class ReserveCacheError extends Error{constructor(e){super(e);this.name="ReserveCacheError";Object.setPrototypeOf(this,ReserveCacheError.prototype)}}t.ReserveCacheError=ReserveCacheError;function checkPaths(e){if(!e||e.length===0){throw new ValidationError(`Path Validation Error: At least one directory or file path is required`)}}function checkKey(e){if(e.length>512){throw new ValidationError(`Key Validation Error: ${e} cannot be larger than 512 characters.`)}const t=/^[^,]*$/;if(!t.test(e)){throw new ValidationError(`Key Validation Error: ${e} cannot contain commas.`)}}function restoreCache(e,t,a,n){return i(this,void 0,void 0,(function*(){checkPaths(e);a=a||[];const i=[t,...a];o.debug("Resolved Keys:");o.debug(JSON.stringify(i));if(i.length>10){throw new ValidationError(`Key Validation Error: Keys are limited to a maximum of 10.`)}for(const e of i){checkKey(e)}const d=yield s.getCompressionMethod();const c=yield p.getCacheEntry(i,e,{compressionMethod:d});if(!(c===null||c===void 0?void 0:c.archiveLocation)){return undefined}const m=r.join(yield s.createTempDirectory(),s.getCacheFileName(d));o.debug(`Archive Path: ${m}`);try{yield p.downloadCache(c.archiveLocation,m,n);if(o.isDebug()){yield l.listTar(m,d)}const e=s.getArchiveFileSizeInBytes(m);o.info(`Cache Size: ~${Math.round(e/(1024*1024))} MB (${e} B)`);yield l.extractTar(m,d);o.info("Cache restored successfully")}finally{try{yield s.unlinkFile(m)}catch(e){o.debug(`Failed to delete archive: ${e}`)}}return c.cacheKey}))}t.restoreCache=restoreCache;function saveCache(e,t,a){return i(this,void 0,void 0,(function*(){checkPaths(e);checkKey(t);const i=yield s.getCompressionMethod();o.debug("Reserving Cache");const n=yield p.reserveCache(t,e,{compressionMethod:i});if(n===-1){throw new ReserveCacheError(`Unable to reserve cache with key ${t}, another job may be creating this cache.`)}o.debug(`Cache ID: ${n}`);const d=yield s.resolvePaths(e);o.debug("Cache Paths:");o.debug(`${JSON.stringify(d)}`);const c=yield s.createTempDirectory();const m=r.join(c,s.getCacheFileName(i));o.debug(`Archive Path: ${m}`);try{yield l.createTar(c,d,i);if(o.isDebug()){yield l.listTar(m,i)}const e=10*1024*1024*1024;const t=s.getArchiveFileSizeInBytes(m);o.debug(`File Size: ${t}`);if(t>e){throw new Error(`Cache size of ~${Math.round(t/(1024*1024))} MB (${t} B) is over the 10GB limit, not saving cache.`)}o.debug(`Saving Cache (ID: ${n})`);yield p.saveCache(n,m,a)}finally{try{yield s.unlinkFile(m)}catch(e){o.debug(`Failed to delete archive: ${e}`)}}return n}))}t.saveCache=saveCache},8245:function(e,t,a){"use strict";var i=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(Object.hasOwnProperty.call(e,a))t[a]=e[a];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=n(a(2186));const r=a(9925);const s=a(3702);const p=n(a(6417));const l=n(a(5747));const d=a(8835);const c=n(a(1518));const m=a(8840);const u=a(5500);const f=a(6215);const h=a(3981);const g="1.0";function getCacheApiUrl(e){const t=(process.env["ACTIONS_CACHE_URL"]||process.env["ACTIONS_RUNTIME_URL"]||"").replace("pipelines","artifactcache");if(!t){throw new Error("Cache Service Url not found, unable to restore cache.")}const a=`${t}_apis/artifactcache/${e}`;o.debug(`Resource Url: ${a}`);return a}function createAcceptHeader(e,t){return`${e};api-version=${t}`}function getRequestOptions(){const e={headers:{Accept:createAcceptHeader("application/json","6.0-preview.1")}};return e}function createHttpClient(){const e=process.env["ACTIONS_RUNTIME_TOKEN"]||"";const t=new s.BearerCredentialHandler(e);return new r.HttpClient("actions/cache",[t],getRequestOptions())}function getCacheVersion(e,t){const a=e.concat(!t||t===m.CompressionMethod.Gzip?[]:[t]);a.push(g);return p.createHash("sha256").update(a.join("|")).digest("hex")}t.getCacheVersion=getCacheVersion;function getCacheEntry(e,t,a){return i(this,void 0,void 0,(function*(){const n=createHttpClient();const r=getCacheVersion(t,a===null||a===void 0?void 0:a.compressionMethod);const s=`cache?keys=${encodeURIComponent(e.join(","))}&version=${r}`;const p=yield h.retryTypedResponse("getCacheEntry",(()=>i(this,void 0,void 0,(function*(){return n.getJson(getCacheApiUrl(s))}))));if(p.statusCode===204){return null}if(!h.isSuccessStatusCode(p.statusCode)){throw new Error(`Cache service responded with ${p.statusCode}`)}const l=p.result;const d=l===null||l===void 0?void 0:l.archiveLocation;if(!d){throw new Error("Cache not found.")}o.setSecret(d);o.debug(`Cache Result:`);o.debug(JSON.stringify(l));return l}))}t.getCacheEntry=getCacheEntry;function downloadCache(e,t,a){return i(this,void 0,void 0,(function*(){const i=new d.URL(e);const n=f.getDownloadOptions(a);if(n.useAzureSdk&&i.hostname.endsWith(".blob.core.windows.net")){yield u.downloadCacheStorageSDK(e,t,n)}else{yield u.downloadCacheHttpClient(e,t)}}))}t.downloadCache=downloadCache;function reserveCache(e,t,a){var n,o;return i(this,void 0,void 0,(function*(){const r=createHttpClient();const s=getCacheVersion(t,a===null||a===void 0?void 0:a.compressionMethod);const p={key:e,version:s};const l=yield h.retryTypedResponse("reserveCache",(()=>i(this,void 0,void 0,(function*(){return r.postJson(getCacheApiUrl("caches"),p)}))));return(o=(n=l===null||l===void 0?void 0:l.result)===null||n===void 0?void 0:n.cacheId)!==null&&o!==void 0?o:-1}))}t.reserveCache=reserveCache;function getContentRange(e,t){return`bytes ${e}-${t}/*`}function uploadChunk(e,t,a,n,r){return i(this,void 0,void 0,(function*(){o.debug(`Uploading chunk of size ${r-n+1} bytes at offset ${n} with content range: ${getContentRange(n,r)}`);const s={"Content-Type":"application/octet-stream","Content-Range":getContentRange(n,r)};const p=yield h.retryHttpClientResponse(`uploadChunk (start: ${n}, end: ${r})`,(()=>i(this,void 0,void 0,(function*(){return e.sendStream("PATCH",t,a(),s)}))));if(!h.isSuccessStatusCode(p.message.statusCode)){throw new Error(`Cache service responded with ${p.message.statusCode} during upload chunk.`)}}))}function uploadFile(e,t,a,n){return i(this,void 0,void 0,(function*(){const r=c.getArchiveFileSizeInBytes(a);const s=getCacheApiUrl(`caches/${t.toString()}`);const p=l.openSync(a,"r");const d=f.getUploadOptions(n);const m=c.assertDefined("uploadConcurrency",d.uploadConcurrency);const u=c.assertDefined("uploadChunkSize",d.uploadChunkSize);const h=[...new Array(m).keys()];o.debug("Awaiting all uploads");let g=0;try{yield Promise.all(h.map((()=>i(this,void 0,void 0,(function*(){while(gl.createReadStream(a,{fd:p,start:i,end:n,autoClose:false}).on("error",(e=>{throw new Error(`Cache upload failed because file read failed with ${e.message}`)}))),i,n)}})))))}finally{l.closeSync(p)}return}))}function commitCache(e,t,a){return i(this,void 0,void 0,(function*(){const n={size:a};return yield h.retryTypedResponse("commitCache",(()=>i(this,void 0,void 0,(function*(){return e.postJson(getCacheApiUrl(`caches/${t.toString()}`),n)}))))}))}function saveCache(e,t,a){return i(this,void 0,void 0,(function*(){const i=createHttpClient();o.debug("Upload cache");yield uploadFile(i,e,t,a);o.debug("Commiting cache");const n=c.getArchiveFileSizeInBytes(t);o.info(`Cache Size: ~${Math.round(n/(1024*1024))} MB (${n} B)`);const r=yield commitCache(i,e,n);if(!h.isSuccessStatusCode(r.statusCode)){throw new Error(`Cache service responded with ${r.statusCode} during commit cache.`)}o.info("Cache saved successfully")}))}t.saveCache=saveCache},1518:function(e,t,a){"use strict";var i=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var n=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],a;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),a={},verb("next"),verb("throw"),verb("return"),a[Symbol.asyncIterator]=function(){return this},a);function verb(t){a[t]=e[t]&&function(a){return new Promise((function(i,n){a=e[t](a),settle(i,n,a.done,a.value)}))}}function settle(e,t,a,i){Promise.resolve(i).then((function(t){e({value:t,done:a})}),t)}};var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(Object.hasOwnProperty.call(e,a))t[a]=e[a];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const r=o(a(2186));const s=o(a(1514));const p=o(a(1597));const l=o(a(7436));const d=o(a(5747));const c=o(a(5622));const m=o(a(5911));const u=o(a(1669));const f=a(2155);const h=a(8840);function createTempDirectory(){return i(this,void 0,void 0,(function*(){const e=process.platform==="win32";let t=process.env["RUNNER_TEMP"]||"";if(!t){let a;if(e){a=process.env["USERPROFILE"]||"C:\\"}else{if(process.platform==="darwin"){a="/Users"}else{a="/home"}}t=c.join(a,"actions","temp")}const a=c.join(t,f.v4());yield l.mkdirP(a);return a}))}t.createTempDirectory=createTempDirectory;function getArchiveFileSizeInBytes(e){return d.statSync(e).size}t.getArchiveFileSizeInBytes=getArchiveFileSizeInBytes;function resolvePaths(e){var t,a;var o;return i(this,void 0,void 0,(function*(){const i=[];const s=(o=process.env["GITHUB_WORKSPACE"])!==null&&o!==void 0?o:process.cwd();const l=yield p.create(e.join("\n"),{implicitDescendants:false});try{for(var d=n(l.globGenerator()),m;m=yield d.next(),!m.done;){const e=m.value;const t=c.relative(s,e).replace(new RegExp(`\\${c.sep}`,"g"),"/");r.debug(`Matched: ${t}`);i.push(`${t}`)}}catch(e){t={error:e}}finally{try{if(m&&!m.done&&(a=d.return))yield a.call(d)}finally{if(t)throw t.error}}return i}))}t.resolvePaths=resolvePaths;function unlinkFile(e){return i(this,void 0,void 0,(function*(){return u.promisify(d.unlink)(e)}))}t.unlinkFile=unlinkFile;function getVersion(e){return i(this,void 0,void 0,(function*(){r.debug(`Checking ${e} --version`);let t="";try{yield s.exec(`${e} --version`,[],{ignoreReturnCode:true,silent:true,listeners:{stdout:e=>t+=e.toString(),stderr:e=>t+=e.toString()}})}catch(e){r.debug(e.message)}t=t.trim();r.debug(t);return t}))}function getCompressionMethod(){return i(this,void 0,void 0,(function*(){if(process.platform==="win32"&&!(yield isGnuTarInstalled())){return h.CompressionMethod.Gzip}const e=yield getVersion("zstd");const t=m.clean(e);if(!e.toLowerCase().includes("zstd command line interface")){return h.CompressionMethod.Gzip}else if(!t||m.lt(t,"v1.3.2")){return h.CompressionMethod.ZstdWithoutLong}else{return h.CompressionMethod.Zstd}}))}t.getCompressionMethod=getCompressionMethod;function getCacheFileName(e){return e===h.CompressionMethod.Gzip?h.CacheFilename.Gzip:h.CacheFilename.Zstd}t.getCacheFileName=getCacheFileName;function isGnuTarInstalled(){return i(this,void 0,void 0,(function*(){const e=yield getVersion("tar");return e.toLowerCase().includes("gnu tar")}))}t.isGnuTarInstalled=isGnuTarInstalled;function assertDefined(e,t){if(t===undefined){throw Error(`Expected ${e} but value was undefiend`)}return t}t.assertDefined=assertDefined},8840:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var a;(function(e){e["Gzip"]="cache.tgz";e["Zstd"]="cache.tzst"})(a=t.CacheFilename||(t.CacheFilename={}));var i;(function(e){e["Gzip"]="gzip";e["ZstdWithoutLong"]="zstd-without-long";e["Zstd"]="zstd"})(i=t.CompressionMethod||(t.CompressionMethod={}));t.DefaultRetryAttempts=2;t.DefaultRetryDelay=5e3;t.SocketTimeout=5e3},5500:function(e,t,a){"use strict";var i=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(Object.hasOwnProperty.call(e,a))t[a]=e[a];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=n(a(2186));const r=a(9925);const s=a(4100);const p=n(a(4293));const l=n(a(5747));const d=n(a(2413));const c=n(a(1669));const m=n(a(1518));const u=a(8840);const f=a(3981);function pipeResponseToStream(e,t){return i(this,void 0,void 0,(function*(){const a=c.promisify(d.pipeline);yield a(e.message,t)}))}class DownloadProgress{constructor(e){this.contentLength=e;this.segmentIndex=0;this.segmentSize=0;this.segmentOffset=0;this.receivedBytes=0;this.displayedComplete=false;this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize;this.segmentIndex=this.segmentIndex+1;this.segmentSize=e;this.receivedBytes=0;o.debug(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete){return}const e=this.segmentOffset+this.receivedBytes;const t=(100*(e/this.contentLength)).toFixed(1);const a=Date.now()-this.startTime;const i=(e/(1024*1024)/(a/1e3)).toFixed(1);o.info(`Received ${e} of ${this.contentLength} (${t}%), ${i} MBs/sec`);if(this.isDone()){this.displayedComplete=true}}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){const displayCallback=()=>{this.display();if(!this.isDone()){this.timeoutHandle=setTimeout(displayCallback,e)}};this.timeoutHandle=setTimeout(displayCallback,e)}stopDisplayTimer(){if(this.timeoutHandle){clearTimeout(this.timeoutHandle);this.timeoutHandle=undefined}this.display()}}t.DownloadProgress=DownloadProgress;function downloadCacheHttpClient(e,t){return i(this,void 0,void 0,(function*(){const a=l.createWriteStream(t);const n=new r.HttpClient("actions/cache");const s=yield f.retryHttpClientResponse("downloadCache",(()=>i(this,void 0,void 0,(function*(){return n.get(e)}))));s.message.socket.setTimeout(u.SocketTimeout,(()=>{s.message.destroy();o.debug(`Aborting download, socket timed out after ${u.SocketTimeout} ms`)}));yield pipeResponseToStream(s,a);const p=s.message.headers["content-length"];if(p){const e=parseInt(p);const a=m.getArchiveFileSizeInBytes(t);if(a!==e){throw new Error(`Incomplete download. Expected file size: ${e}, actual file size: ${a}`)}}else{o.debug("Unable to validate download, no Content-Length header")}}))}t.downloadCacheHttpClient=downloadCacheHttpClient;function downloadCacheStorageSDK(e,t,a){var n;return i(this,void 0,void 0,(function*(){const i=new s.BlockBlobClient(e,undefined,{retryOptions:{tryTimeoutInMs:a.timeoutInMs}});const r=yield i.getProperties();const d=(n=r.contentLength)!==null&&n!==void 0?n:-1;if(d<0){o.debug("Unable to determine content length, downloading file with http-client...");yield downloadCacheHttpClient(e,t)}else{const e=p.constants.MAX_LENGTH;const n=new DownloadProgress(d);const o=l.openSync(t,"w");try{n.startDisplayTimer();while(!n.isDone()){const t=n.segmentOffset+n.segmentSize;const r=Math.min(e,d-t);n.nextSegment(r);const s=yield i.downloadToBuffer(t,r,{concurrency:a.downloadConcurrency,onProgress:n.onProgress()});l.writeFileSync(o,s)}}finally{n.stopDisplayTimer();l.closeSync(o)}}}))}t.downloadCacheStorageSDK=downloadCacheStorageSDK},3981:function(e,t,a){"use strict";var i=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(Object.hasOwnProperty.call(e,a))t[a]=e[a];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=n(a(2186));const r=a(9925);const s=a(8840);function isSuccessStatusCode(e){if(!e){return false}return e>=200&&e<300}t.isSuccessStatusCode=isSuccessStatusCode;function isServerErrorStatusCode(e){if(!e){return true}return e>=500}t.isServerErrorStatusCode=isServerErrorStatusCode;function isRetryableStatusCode(e){if(!e){return false}const t=[r.HttpCodes.BadGateway,r.HttpCodes.ServiceUnavailable,r.HttpCodes.GatewayTimeout];return t.includes(e)}t.isRetryableStatusCode=isRetryableStatusCode;function sleep(e){return i(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,e)))}))}function retry(e,t,a,n=s.DefaultRetryAttempts,r=s.DefaultRetryDelay,p=undefined){return i(this,void 0,void 0,(function*(){let i="";let s=1;while(s<=n){let l=undefined;let d=undefined;let c=false;try{l=yield t()}catch(e){if(p){l=p(e)}c=true;i=e.message}if(l){d=a(l);if(!isServerErrorStatusCode(d)){return l}}if(d){c=isRetryableStatusCode(d);i=`Cache service responded with ${d}`}o.debug(`${e} - Attempt ${s} of ${n} failed with error: ${i}`);if(!c){o.debug(`${e} - Error is not retryable`);break}yield sleep(r);s++}throw Error(`${e} failed: ${i}`)}))}t.retry=retry;function retryTypedResponse(e,t,a=s.DefaultRetryAttempts,n=s.DefaultRetryDelay){return i(this,void 0,void 0,(function*(){return yield retry(e,t,(e=>e.statusCode),a,n,(e=>{if(e instanceof r.HttpClientError){return{statusCode:e.statusCode,result:null,headers:{}}}else{return undefined}}))}))}t.retryTypedResponse=retryTypedResponse;function retryHttpClientResponse(e,t,a=s.DefaultRetryAttempts,n=s.DefaultRetryDelay){return i(this,void 0,void 0,(function*(){return yield retry(e,t,(e=>e.message.statusCode),a,n)}))}t.retryHttpClientResponse=retryHttpClientResponse},6490:function(e,t,a){"use strict";var i=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(Object.hasOwnProperty.call(e,a))t[a]=e[a];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=a(1514);const r=n(a(7436));const s=a(5747);const p=n(a(5622));const l=n(a(1518));const d=a(8840);function getTarPath(e,t){return i(this,void 0,void 0,(function*(){switch(process.platform){case"win32":{const a=`${process.env["windir"]}\\System32\\tar.exe`;if(t!==d.CompressionMethod.Gzip){e.push("--force-local")}else if(s.existsSync(a)){return a}else if(yield l.isGnuTarInstalled()){e.push("--force-local")}break}case"darwin":{const t=yield r.which("gtar",false);if(t){e.push("--delay-directory-restore");return t}break}default:break}return yield r.which("tar",true)}))}function execTar(e,t,a){return i(this,void 0,void 0,(function*(){try{yield o.exec(`"${yield getTarPath(e,t)}"`,e,{cwd:a})}catch(e){throw new Error(`Tar failed with error: ${e===null||e===void 0?void 0:e.message}`)}}))}function getWorkingDirectory(){var e;return(e=process.env["GITHUB_WORKSPACE"])!==null&&e!==void 0?e:process.cwd()}function extractTar(e,t){return i(this,void 0,void 0,(function*(){const a=getWorkingDirectory();yield r.mkdirP(a);function getCompressionProgram(){switch(t){case d.CompressionMethod.Zstd:return["--use-compress-program","zstd -d --long=30"];case d.CompressionMethod.ZstdWithoutLong:return["--use-compress-program","zstd -d"];default:return["-z"]}}const i=[...getCompressionProgram(),"-xf",e.replace(new RegExp(`\\${p.sep}`,"g"),"/"),"-P","-C",a.replace(new RegExp(`\\${p.sep}`,"g"),"/")];yield execTar(i,t)}))}t.extractTar=extractTar;function createTar(e,t,a){return i(this,void 0,void 0,(function*(){const i="manifest.txt";const n=l.getCacheFileName(a);s.writeFileSync(p.join(e,i),t.join("\n"));const o=getWorkingDirectory();function getCompressionProgram(){switch(a){case d.CompressionMethod.Zstd:return["--use-compress-program","zstd -T0 --long=30"];case d.CompressionMethod.ZstdWithoutLong:return["--use-compress-program","zstd -T0"];default:return["-z"]}}const r=["--posix",...getCompressionProgram(),"-cf",n.replace(new RegExp(`\\${p.sep}`,"g"),"/"),"-P","-C",o.replace(new RegExp(`\\${p.sep}`,"g"),"/"),"--files-from",i];yield execTar(r,a,e)}))}t.createTar=createTar;function listTar(e,t){return i(this,void 0,void 0,(function*(){function getCompressionProgram(){switch(t){case d.CompressionMethod.Zstd:return["--use-compress-program","zstd -d --long=30"];case d.CompressionMethod.ZstdWithoutLong:return["--use-compress-program","zstd -d"];default:return["-z"]}}const a=[...getCompressionProgram(),"-tf",e.replace(new RegExp(`\\${p.sep}`,"g"),"/"),"-P"];yield execTar(a,t)}))}t.listTar=listTar},6215:function(e,t,a){"use strict";var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(Object.hasOwnProperty.call(e,a))t[a]=e[a];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const n=i(a(2186));function getUploadOptions(e){const t={uploadConcurrency:4,uploadChunkSize:32*1024*1024};if(e){if(typeof e.uploadConcurrency==="number"){t.uploadConcurrency=e.uploadConcurrency}if(typeof e.uploadChunkSize==="number"){t.uploadChunkSize=e.uploadChunkSize}}n.debug(`Upload concurrency: ${t.uploadConcurrency}`);n.debug(`Upload chunk size: ${t.uploadChunkSize}`);return t}t.getUploadOptions=getUploadOptions;function getDownloadOptions(e){const t={useAzureSdk:true,downloadConcurrency:8,timeoutInMs:3e4};if(e){if(typeof e.useAzureSdk==="boolean"){t.useAzureSdk=e.useAzureSdk}if(typeof e.downloadConcurrency==="number"){t.downloadConcurrency=e.downloadConcurrency}if(typeof e.timeoutInMs==="number"){t.timeoutInMs=e.timeoutInMs}}n.debug(`Use Azure SDK: ${t.useAzureSdk}`);n.debug(`Download concurrency: ${t.downloadConcurrency}`);n.debug(`Request timeout (ms): ${t.timeoutInMs}`);return t}t.getDownloadOptions=getDownloadOptions},1597:function(e,t,a){"use strict";var i=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.create=void 0;const n=a(7341);function create(e,t){return i(this,void 0,void 0,(function*(){return yield n.DefaultGlobber.create(e,t)}))}t.create=create},9350:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOptions=void 0;const r=o(a(2186));function getOptions(e){const t={followSymbolicLinks:true,implicitDescendants:true,omitBrokenSymbolicLinks:true};if(e){if(typeof e.followSymbolicLinks==="boolean"){t.followSymbolicLinks=e.followSymbolicLinks;r.debug(`followSymbolicLinks '${t.followSymbolicLinks}'`)}if(typeof e.implicitDescendants==="boolean"){t.implicitDescendants=e.implicitDescendants;r.debug(`implicitDescendants '${t.implicitDescendants}'`)}if(typeof e.omitBrokenSymbolicLinks==="boolean"){t.omitBrokenSymbolicLinks=e.omitBrokenSymbolicLinks;r.debug(`omitBrokenSymbolicLinks '${t.omitBrokenSymbolicLinks}'`)}}return t}t.getOptions=getOptions},7341:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var r=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var s=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],a;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),a={},verb("next"),verb("throw"),verb("return"),a[Symbol.asyncIterator]=function(){return this},a);function verb(t){a[t]=e[t]&&function(a){return new Promise((function(i,n){a=e[t](a),settle(i,n,a.done,a.value)}))}}function settle(e,t,a,i){Promise.resolve(i).then((function(t){e({value:t,done:a})}),t)}};var p=this&&this.__await||function(e){return this instanceof p?(this.v=e,this):new p(e)};var l=this&&this.__asyncGenerator||function(e,t,a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=a.apply(e,t||[]),n,o=[];return n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n;function verb(e){if(i[e])n[e]=function(t){return new Promise((function(a,i){o.push([e,t,a,i])>1||resume(e,t)}))}}function resume(e,t){try{step(i[e](t))}catch(e){settle(o[0][3],e)}}function step(e){e.value instanceof p?Promise.resolve(e.value.v).then(fulfill,reject):settle(o[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),o.shift(),o.length)resume(o[0][0],o[0][1])}};Object.defineProperty(t,"__esModule",{value:true});t.DefaultGlobber=void 0;const d=o(a(2186));const c=o(a(5747));const m=o(a(9350));const u=o(a(5622));const f=o(a(5186));const h=a(836);const g=a(5343);const y=a(8530);const v=process.platform==="win32";class DefaultGlobber{constructor(e){this.patterns=[];this.searchPaths=[];this.options=m.getOptions(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){var e,t;return r(this,void 0,void 0,(function*(){const a=[];try{for(var i=s(this.globGenerator()),n;n=yield i.next(),!n.done;){const e=n.value;a.push(e)}}catch(t){e={error:t}}finally{try{if(n&&!n.done&&(t=i.return))yield t.call(i)}finally{if(e)throw e.error}}return a}))}globGenerator(){return l(this,arguments,(function*globGenerator_1(){const e=m.getOptions(this.options);const t=[];for(const a of this.patterns){t.push(a);if(e.implicitDescendants&&(a.trailingSeparator||a.segments[a.segments.length-1]!=="**")){t.push(new g.Pattern(a.negate,true,a.segments.concat("**")))}}const a=[];for(const e of f.getSearchPaths(t)){d.debug(`Search path '${e}'`);try{yield p(c.promises.lstat(e))}catch(e){if(e.code==="ENOENT"){continue}throw e}a.unshift(new y.SearchState(e,1))}const i=[];while(a.length){const n=a.pop();const o=f.match(t,n.path);const r=!!o||f.partialMatch(t,n.path);if(!o&&!r){continue}const s=yield p(DefaultGlobber.stat(n,e,i));if(!s){continue}if(s.isDirectory()){if(o&h.MatchKind.Directory){yield yield p(n.path)}else if(!r){continue}const e=n.level+1;const t=(yield p(c.promises.readdir(n.path))).map((t=>new y.SearchState(u.join(n.path,t),e)));a.push(...t.reverse())}else if(o&h.MatchKind.File){yield yield p(n.path)}}}))}static create(e,t){return r(this,void 0,void 0,(function*(){const a=new DefaultGlobber(t);if(v){e=e.replace(/\r\n/g,"\n");e=e.replace(/\r/g,"\n")}const i=e.split("\n").map((e=>e.trim()));for(const e of i){if(!e||e.startsWith("#")){continue}else{a.patterns.push(new g.Pattern(e))}}a.searchPaths.push(...f.getSearchPaths(a.patterns));return a}))}static stat(e,t,a){return r(this,void 0,void 0,(function*(){let i;if(t.followSymbolicLinks){try{i=yield c.promises.stat(e.path)}catch(a){if(a.code==="ENOENT"){if(t.omitBrokenSymbolicLinks){d.debug(`Broken symlink '${e.path}'`);return undefined}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw a}}else{i=yield c.promises.lstat(e.path)}if(i.isDirectory()&&t.followSymbolicLinks){const t=yield c.promises.realpath(e.path);while(a.length>=e.level){a.pop()}if(a.some((e=>e===t))){d.debug(`Symlink cycle detected for path '${e.path}' and realpath '${t}'`);return undefined}a.push(t)}return i}))}}t.DefaultGlobber=DefaultGlobber},836:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MatchKind=void 0;var a;(function(e){e[e["None"]=0]="None";e[e["Directory"]=1]="Directory";e[e["File"]=2]="File";e[e["All"]=3]="All"})(a=t.MatchKind||(t.MatchKind={}))},22:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.safeTrimTrailingSeparator=t.normalizeSeparators=t.hasRoot=t.hasAbsoluteRoot=t.ensureAbsoluteRoot=t.dirname=void 0;const s=o(a(5622));const p=r(a(2357));const l=process.platform==="win32";function dirname(e){e=safeTrimTrailingSeparator(e);if(l&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(e)){return e}let t=s.dirname(e);if(l&&/^\\\\[^\\]+\\[^\\]+\\$/.test(t)){t=safeTrimTrailingSeparator(t)}return t}t.dirname=dirname;function ensureAbsoluteRoot(e,t){p.default(e,`ensureAbsoluteRoot parameter 'root' must not be empty`);p.default(t,`ensureAbsoluteRoot parameter 'itemPath' must not be empty`);if(hasAbsoluteRoot(t)){return t}if(l){if(t.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let e=process.cwd();p.default(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);if(t[0].toUpperCase()===e[0].toUpperCase()){if(t.length===2){return`${t[0]}:\\${e.substr(3)}`}else{if(!e.endsWith("\\")){e+="\\"}return`${t[0]}:\\${e.substr(3)}${t.substr(2)}`}}else{return`${t[0]}:\\${t.substr(2)}`}}else if(normalizeSeparators(t).match(/^\\$|^\\[^\\]/)){const e=process.cwd();p.default(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);return`${e[0]}:\\${t.substr(1)}`}}p.default(hasAbsoluteRoot(e),`ensureAbsoluteRoot parameter 'root' must have an absolute root`);if(e.endsWith("/")||l&&e.endsWith("\\")){}else{e+=s.sep}return e+t}t.ensureAbsoluteRoot=ensureAbsoluteRoot;function hasAbsoluteRoot(e){p.default(e,`hasAbsoluteRoot parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(l){return e.startsWith("\\\\")||/^[A-Z]:\\/i.test(e)}return e.startsWith("/")}t.hasAbsoluteRoot=hasAbsoluteRoot;function hasRoot(e){p.default(e,`isRooted parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(l){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.hasRoot=hasRoot;function normalizeSeparators(e){e=e||"";if(l){e=e.replace(/\//g,"\\");const t=/^\\\\+[^\\]/.test(e);return(t?"\\":"")+e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}t.normalizeSeparators=normalizeSeparators;function safeTrimTrailingSeparator(e){if(!e){return""}e=normalizeSeparators(e);if(!e.endsWith(s.sep)){return e}if(e===s.sep){return e}if(l&&/^[A-Z]:\\$/i.test(e)){return e}return e.substr(0,e.length-1)}t.safeTrimTrailingSeparator=safeTrimTrailingSeparator},9413:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.Path=void 0;const s=o(a(5622));const p=o(a(22));const l=r(a(2357));const d=process.platform==="win32";class Path{constructor(e){this.segments=[];if(typeof e==="string"){l.default(e,`Parameter 'itemPath' must not be empty`);e=p.safeTrimTrailingSeparator(e);if(!p.hasRoot(e)){this.segments=e.split(s.sep)}else{let t=e;let a=p.dirname(t);while(a!==t){const e=s.basename(t);this.segments.unshift(e);t=a;a=p.dirname(t)}this.segments.unshift(t)}}else{l.default(e.length>0,`Parameter 'itemPath' must not be an empty array`);for(let t=0;t!e.negate));const t={};for(const a of e){const e=p?a.searchPath.toUpperCase():a.searchPath;t[e]="candidate"}const a=[];for(const i of e){const e=p?i.searchPath.toUpperCase():i.searchPath;if(t[e]==="included"){continue}let n=false;let o=e;let s=r.dirname(o);while(s!==o){if(t[s]){n=true;break}o=s;s=r.dirname(o)}if(!n){a.push(i.searchPath);t[e]="included"}}return a}t.getSearchPaths=getSearchPaths;function match(e,t){let a=s.MatchKind.None;for(const i of e){if(i.negate){a&=~i.match(t)}else{a|=i.match(t)}}return a}t.match=match;function partialMatch(e,t){return e.some((e=>!e.negate&&e.partialMatch(t)))}t.partialMatch=partialMatch},5343:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.Pattern=void 0;const s=o(a(2087));const p=o(a(5622));const l=o(a(22));const d=r(a(2357));const c=a(3973);const m=a(836);const u=a(9413);const f=process.platform==="win32";class Pattern{constructor(e,t=false,a,i){this.negate=false;let n;if(typeof e==="string"){n=e.trim()}else{a=a||[];d.default(a.length,`Parameter 'segments' must not empty`);const t=Pattern.getLiteral(a[0]);d.default(t&&l.hasAbsoluteRoot(t),`Parameter 'segments' first element must be a root path`);n=new u.Path(a).toString().trim();if(e){n=`!${n}`}}while(n.startsWith("!")){this.negate=!this.negate;n=n.substr(1).trim()}n=Pattern.fixupPattern(n,i);this.segments=new u.Path(n).segments;this.trailingSeparator=l.normalizeSeparators(n).endsWith(p.sep);n=l.safeTrimTrailingSeparator(n);let o=false;const r=this.segments.map((e=>Pattern.getLiteral(e))).filter((e=>!o&&!(o=e==="")));this.searchPath=new u.Path(r).toString();this.rootRegExp=new RegExp(Pattern.regExpEscape(r[0]),f?"i":"");this.isImplicitPattern=t;const s={dot:true,nobrace:true,nocase:f,nocomment:true,noext:true,nonegate:true};n=f?n.replace(/\\/g,"/"):n;this.minimatch=new c.Minimatch(n,s)}match(e){if(this.segments[this.segments.length-1]==="**"){e=l.normalizeSeparators(e);if(!e.endsWith(p.sep)&&this.isImplicitPattern===false){e=`${e}${p.sep}`}}else{e=l.safeTrimTrailingSeparator(e)}if(this.minimatch.match(e)){return this.trailingSeparator?m.MatchKind.Directory:m.MatchKind.All}return m.MatchKind.None}partialMatch(e){e=l.safeTrimTrailingSeparator(e);if(l.dirname(e)===e){return this.rootRegExp.test(e)}return this.minimatch.matchOne(e.split(f?/\\+/:/\/+/),this.minimatch.set[0],true)}static globEscape(e){return(f?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,t){d.default(e,"pattern cannot be empty");const a=new u.Path(e).segments.map((e=>Pattern.getLiteral(e)));d.default(a.every(((e,t)=>(e!=="."||t===0)&&e!=="..")),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`);d.default(!l.hasRoot(e)||a[0],`Invalid pattern '${e}'. Root segment must not contain globs.`);e=l.normalizeSeparators(e);if(e==="."||e.startsWith(`.${p.sep}`)){e=Pattern.globEscape(process.cwd())+e.substr(1)}else if(e==="~"||e.startsWith(`~${p.sep}`)){t=t||s.homedir();d.default(t,"Unable to determine HOME directory");d.default(l.hasAbsoluteRoot(t),`Expected HOME directory to be a rooted path. Actual '${t}'`);e=Pattern.globEscape(t)+e.substr(1)}else if(f&&(e.match(/^[A-Z]:$/i)||e.match(/^[A-Z]:[^\\]/i))){let t=l.ensureAbsoluteRoot("C:\\dummy-root",e.substr(0,2));if(e.length>2&&!t.endsWith("\\")){t+="\\"}e=Pattern.globEscape(t)+e.substr(2)}else if(f&&(e==="\\"||e.match(/^\\[^\\]/))){let t=l.ensureAbsoluteRoot("C:\\dummy-root","\\");if(!t.endsWith("\\")){t+="\\"}e=Pattern.globEscape(t)+e.substr(1)}else{e=l.ensureAbsoluteRoot(Pattern.globEscape(process.cwd()),e)}return l.normalizeSeparators(e)}static getLiteral(e){let t="";for(let a=0;a=0){if(i.length>1){return""}if(i){t+=i;a=n;continue}}}t+=i}return t}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,"\\$&")}}t.Pattern=Pattern},8530:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SearchState=void 0;class SearchState{constructor(e,t){this.path=e;this.level=t}}t.SearchState=SearchState},7351:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const r=o(a(2087));const s=a(5278);function issueCommand(e,t,a){const i=new Command(e,t,a);process.stdout.write(i.toString()+r.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const p="::";class Command{constructor(e,t,a){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=a}toString(){let e=p+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const a in this.properties){if(this.properties.hasOwnProperty(a)){const i=this.properties[a];if(i){if(t){t=false}else{e+=","}e+=`${a}=${escapeProperty(i)}`}}}}e+=`${p}${escapeData(this.message)}`;return e}}function escapeData(e){return s.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return s.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var r=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getIDToken=t.getState=t.saveState=t.group=t.endGroup=t.startGroup=t.info=t.notice=t.warning=t.error=t.debug=t.isDebug=t.setFailed=t.setCommandEcho=t.setOutput=t.getBooleanInput=t.getMultilineInput=t.getInput=t.addPath=t.setSecret=t.exportVariable=t.ExitCode=void 0;const s=a(7351);const p=a(717);const l=a(5278);const d=o(a(2087));const c=o(a(5622));const m=a(8041);var u;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(u=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const a=l.toCommandValue(t);process.env[e]=a;const i=process.env["GITHUB_ENV"]||"";if(i){const t="_GitHubActionsFileCommandDelimeter_";const i=`${e}<<${t}${d.EOL}${a}${d.EOL}${t}`;p.issueCommand("ENV",i)}else{s.issueCommand("set-env",{name:e},a)}}t.exportVariable=exportVariable;function setSecret(e){s.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){p.issueCommand("PATH",e)}else{s.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${c.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const a=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!a){throw new Error(`Input required and not supplied: ${e}`)}if(t&&t.trimWhitespace===false){return a}return a.trim()}t.getInput=getInput;function getMultilineInput(e,t){const a=getInput(e,t).split("\n").filter((e=>e!==""));return a}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const a=["true","True","TRUE"];const i=["false","False","FALSE"];const n=getInput(e,t);if(a.includes(n))return true;if(i.includes(n))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}t.getBooleanInput=getBooleanInput;function setOutput(e,t){process.stdout.write(d.EOL);s.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){s.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=u.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){s.issueCommand("debug",{},e)}t.debug=debug;function error(e,t={}){s.issueCommand("error",l.toCommandProperties(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){s.issueCommand("warning",l.toCommandProperties(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){s.issueCommand("notice",l.toCommandProperties(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+d.EOL)}t.info=info;function startGroup(e){s.issue("group",e)}t.startGroup=startGroup;function endGroup(){s.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return r(this,void 0,void 0,(function*(){startGroup(e);let a;try{a=yield t()}finally{endGroup()}return a}))}t.group=group;function saveState(e,t){s.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState;function getIDToken(e){return r(this,void 0,void 0,(function*(){return yield m.OidcClient.getIDToken(e)}))}t.getIDToken=getIDToken},717:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issueCommand=void 0;const r=o(a(5747));const s=o(a(2087));const p=a(5278);function issueCommand(e,t){const a=process.env[`GITHUB_${e}`];if(!a){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!r.existsSync(a)){throw new Error(`Missing file at path: ${a}`)}r.appendFileSync(a,`${p.toCommandValue(t)}${s.EOL}`,{encoding:"utf8"})}t.issueCommand=issueCommand},8041:function(e,t,a){"use strict";var i=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.OidcClient=void 0;const n=a(9925);const o=a(3702);const r=a(2186);class OidcClient{static createHttpClient(e=true,t=10){const a={allowRetries:e,maxRetries:t};return new n.HttpClient("actions/oidc-client",[new o.BearerCredentialHandler(OidcClient.getRequestToken())],a)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var t;return i(this,void 0,void 0,(function*(){const a=OidcClient.createHttpClient();const i=yield a.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)}));const n=(t=i.result)===null||t===void 0?void 0:t.value;if(!n){throw new Error("Response json body do not have ID Token field")}return n}))}static getIDToken(e){return i(this,void 0,void 0,(function*(){try{let t=OidcClient.getIDTokenUrl();if(e){const a=encodeURIComponent(e);t=`${t}&audience=${a}`}r.debug(`ID token url is ${t}`);const a=yield OidcClient.getCall(t);r.setSecret(a);return a}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}t.OidcClient=OidcClient},5278:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toCommandProperties=t.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}t.toCommandProperties=toCommandProperties},1514:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var r=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getExecOutput=t.exec=void 0;const s=a(4304);const p=o(a(8159));function exec(e,t,a){return r(this,void 0,void 0,(function*(){const i=p.argStringToArray(e);if(i.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const n=i[0];t=i.slice(1).concat(t||[]);const o=new p.ToolRunner(n,t,a);return o.exec()}))}t.exec=exec;function getExecOutput(e,t,a){var i,n;return r(this,void 0,void 0,(function*(){let o="";let r="";const p=new s.StringDecoder("utf8");const l=new s.StringDecoder("utf8");const d=(i=a===null||a===void 0?void 0:a.listeners)===null||i===void 0?void 0:i.stdout;const c=(n=a===null||a===void 0?void 0:a.listeners)===null||n===void 0?void 0:n.stderr;const stdErrListener=e=>{r+=l.write(e);if(c){c(e)}};const stdOutListener=e=>{o+=p.write(e);if(d){d(e)}};const m=Object.assign(Object.assign({},a===null||a===void 0?void 0:a.listeners),{stdout:stdOutListener,stderr:stdErrListener});const u=yield exec(e,t,Object.assign(Object.assign({},a),{listeners:m}));o+=p.end();r+=l.end();return{exitCode:u,stdout:o,stderr:r}}))}t.getExecOutput=getExecOutput},8159:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var r=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.argStringToArray=t.ToolRunner=void 0;const s=o(a(2087));const p=o(a(8614));const l=o(a(3129));const d=o(a(5622));const c=o(a(7436));const m=o(a(1962));const u=a(8213);const f=process.platform==="win32";class ToolRunner extends p.EventEmitter{constructor(e,t,a){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=a||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const a=this._getSpawnFileName();const i=this._getSpawnArgs(e);let n=t?"":"[command]";if(f){if(this._isCmdFile()){n+=a;for(const e of i){n+=` ${e}`}}else if(e.windowsVerbatimArguments){n+=`"${a}"`;for(const e of i){n+=` ${e}`}}else{n+=this._windowsQuoteCmdArg(a);for(const e of i){n+=` ${this._windowsQuoteCmdArg(e)}`}}}else{n+=a;for(const e of i){n+=` ${e}`}}return n}_processLineBuffer(e,t,a){try{let i=t+e.toString();let n=i.indexOf(s.EOL);while(n>-1){const e=i.substring(0,n);a(e);i=i.substring(n+s.EOL.length);n=i.indexOf(s.EOL)}return i}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(f){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(f){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const a of this.args){t+=" ";t+=e.windowsVerbatimArguments?a:this._windowsQuoteCmdArg(a)}t+='"';return[t]}}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let a=false;for(const i of e){if(t.some((e=>e===i))){a=true;break}}if(!a){return e}let i='"';let n=true;for(let t=e.length;t>0;t--){i+=e[t-1];if(n&&e[t-1]==="\\"){i+="\\"}else if(e[t-1]==='"'){n=true;i+='"'}else{n=false}}i+='"';return i.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let t='"';let a=true;for(let i=e.length;i>0;i--){t+=e[i-1];if(a&&e[i-1]==="\\"){t+="\\"}else if(e[i-1]==='"'){a=true;t+="\\"}else{a=false}}t+='"';return t.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};t.outStream=e.outStream||process.stdout;t.errStream=e.errStream||process.stderr;return t}_getSpawnOptions(e,t){e=e||{};const a={};a.cwd=e.cwd;a.env=e.env;a["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){a.argv0=`"${t}"`}return a}exec(){return r(this,void 0,void 0,(function*(){if(!m.isRooted(this.toolPath)&&(this.toolPath.includes("/")||f&&this.toolPath.includes("\\"))){this.toolPath=d.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield c.which(this.toolPath,true);return new Promise(((e,t)=>r(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);if(!a.silent&&a.outStream){a.outStream.write(this._getCommandString(a)+s.EOL)}const i=new ExecState(a,this.toolPath);i.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield m.exists(this.options.cwd))){return t(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const n=this._getSpawnFileName();const o=l.spawn(n,this._getSpawnArgs(a),this._getSpawnOptions(this.options,n));let r="";if(o.stdout){o.stdout.on("data",(e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!a.silent&&a.outStream){a.outStream.write(e)}r=this._processLineBuffer(e,r,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let p="";if(o.stderr){o.stderr.on("data",(e=>{i.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!a.silent&&a.errStream&&a.outStream){const t=a.failOnStdErr?a.errStream:a.outStream;t.write(e)}p=this._processLineBuffer(e,p,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}o.on("error",(e=>{i.processError=e.message;i.processExited=true;i.processClosed=true;i.CheckComplete()}));o.on("exit",(e=>{i.processExitCode=e;i.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);i.CheckComplete()}));o.on("close",(e=>{i.processExitCode=e;i.processExited=true;i.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);i.CheckComplete()}));i.on("done",((a,i)=>{if(r.length>0){this.emit("stdline",r)}if(p.length>0){this.emit("errline",p)}o.removeAllListeners();if(a){t(a)}else{e(i)}}));if(this.options.input){if(!o.stdin){throw new Error("child process missing stdin")}o.stdin.end(this.options.input)}}))))}))}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let a=false;let i=false;let n="";function append(e){if(i&&e!=='"'){n+="\\"}n+=e;i=false}for(let o=0;o0){t.push(n);n=""}continue}append(r)}if(n.length>0){t.push(n.trim())}return t}t.argStringToArray=argStringToArray;class ExecState extends p.EventEmitter{constructor(e,t){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!t){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=t;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=u.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(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}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const t=`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(t)}e._setResult()}}},8090:function(e,t,a){"use strict";var i=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.hashFiles=t.create=void 0;const n=a(8298);const o=a(2448);function create(e,t){return i(this,void 0,void 0,(function*(){return yield n.DefaultGlobber.create(e,t)}))}t.create=create;function hashFiles(e,t){return i(this,void 0,void 0,(function*(){let a=true;if(t&&typeof t.followSymbolicLinks==="boolean"){a=t.followSymbolicLinks}const i=yield create(e,{followSymbolicLinks:a});return o.hashFiles(i)}))}t.hashFiles=hashFiles},1026:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOptions=void 0;const r=o(a(2186));function getOptions(e){const t={followSymbolicLinks:true,implicitDescendants:true,matchDirectories:true,omitBrokenSymbolicLinks:true};if(e){if(typeof e.followSymbolicLinks==="boolean"){t.followSymbolicLinks=e.followSymbolicLinks;r.debug(`followSymbolicLinks '${t.followSymbolicLinks}'`)}if(typeof e.implicitDescendants==="boolean"){t.implicitDescendants=e.implicitDescendants;r.debug(`implicitDescendants '${t.implicitDescendants}'`)}if(typeof e.matchDirectories==="boolean"){t.matchDirectories=e.matchDirectories;r.debug(`matchDirectories '${t.matchDirectories}'`)}if(typeof e.omitBrokenSymbolicLinks==="boolean"){t.omitBrokenSymbolicLinks=e.omitBrokenSymbolicLinks;r.debug(`omitBrokenSymbolicLinks '${t.omitBrokenSymbolicLinks}'`)}}return t}t.getOptions=getOptions},8298:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var r=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var s=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],a;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),a={},verb("next"),verb("throw"),verb("return"),a[Symbol.asyncIterator]=function(){return this},a);function verb(t){a[t]=e[t]&&function(a){return new Promise((function(i,n){a=e[t](a),settle(i,n,a.done,a.value)}))}}function settle(e,t,a,i){Promise.resolve(i).then((function(t){e({value:t,done:a})}),t)}};var p=this&&this.__await||function(e){return this instanceof p?(this.v=e,this):new p(e)};var l=this&&this.__asyncGenerator||function(e,t,a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=a.apply(e,t||[]),n,o=[];return n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n;function verb(e){if(i[e])n[e]=function(t){return new Promise((function(a,i){o.push([e,t,a,i])>1||resume(e,t)}))}}function resume(e,t){try{step(i[e](t))}catch(e){settle(o[0][3],e)}}function step(e){e.value instanceof p?Promise.resolve(e.value.v).then(fulfill,reject):settle(o[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),o.shift(),o.length)resume(o[0][0],o[0][1])}};Object.defineProperty(t,"__esModule",{value:true});t.DefaultGlobber=void 0;const d=o(a(2186));const c=o(a(5747));const m=o(a(1026));const u=o(a(5622));const f=o(a(9005));const h=a(1063);const g=a(4536);const y=a(9117);const v=process.platform==="win32";class DefaultGlobber{constructor(e){this.patterns=[];this.searchPaths=[];this.options=m.getOptions(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){var e,t;return r(this,void 0,void 0,(function*(){const a=[];try{for(var i=s(this.globGenerator()),n;n=yield i.next(),!n.done;){const e=n.value;a.push(e)}}catch(t){e={error:t}}finally{try{if(n&&!n.done&&(t=i.return))yield t.call(i)}finally{if(e)throw e.error}}return a}))}globGenerator(){return l(this,arguments,(function*globGenerator_1(){const e=m.getOptions(this.options);const t=[];for(const a of this.patterns){t.push(a);if(e.implicitDescendants&&(a.trailingSeparator||a.segments[a.segments.length-1]!=="**")){t.push(new g.Pattern(a.negate,true,a.segments.concat("**")))}}const a=[];for(const e of f.getSearchPaths(t)){d.debug(`Search path '${e}'`);try{yield p(c.promises.lstat(e))}catch(e){if(e.code==="ENOENT"){continue}throw e}a.unshift(new y.SearchState(e,1))}const i=[];while(a.length){const n=a.pop();const o=f.match(t,n.path);const r=!!o||f.partialMatch(t,n.path);if(!o&&!r){continue}const s=yield p(DefaultGlobber.stat(n,e,i));if(!s){continue}if(s.isDirectory()){if(o&h.MatchKind.Directory&&e.matchDirectories){yield yield p(n.path)}else if(!r){continue}const t=n.level+1;const i=(yield p(c.promises.readdir(n.path))).map((e=>new y.SearchState(u.join(n.path,e),t)));a.push(...i.reverse())}else if(o&h.MatchKind.File){yield yield p(n.path)}}}))}static create(e,t){return r(this,void 0,void 0,(function*(){const a=new DefaultGlobber(t);if(v){e=e.replace(/\r\n/g,"\n");e=e.replace(/\r/g,"\n")}const i=e.split("\n").map((e=>e.trim()));for(const e of i){if(!e||e.startsWith("#")){continue}else{a.patterns.push(new g.Pattern(e))}}a.searchPaths.push(...f.getSearchPaths(a.patterns));return a}))}static stat(e,t,a){return r(this,void 0,void 0,(function*(){let i;if(t.followSymbolicLinks){try{i=yield c.promises.stat(e.path)}catch(a){if(a.code==="ENOENT"){if(t.omitBrokenSymbolicLinks){d.debug(`Broken symlink '${e.path}'`);return undefined}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw a}}else{i=yield c.promises.lstat(e.path)}if(i.isDirectory()&&t.followSymbolicLinks){const t=yield c.promises.realpath(e.path);while(a.length>=e.level){a.pop()}if(a.some((e=>e===t))){d.debug(`Symlink cycle detected for path '${e.path}' and realpath '${t}'`);return undefined}a.push(t)}return i}))}}t.DefaultGlobber=DefaultGlobber},2448:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var r=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var s=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],a;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),a={},verb("next"),verb("throw"),verb("return"),a[Symbol.asyncIterator]=function(){return this},a);function verb(t){a[t]=e[t]&&function(a){return new Promise((function(i,n){a=e[t](a),settle(i,n,a.done,a.value)}))}}function settle(e,t,a,i){Promise.resolve(i).then((function(t){e({value:t,done:a})}),t)}};Object.defineProperty(t,"__esModule",{value:true});t.hashFiles=void 0;const p=o(a(6417));const l=o(a(2186));const d=o(a(5747));const c=o(a(2413));const m=o(a(1669));const u=o(a(5622));function hashFiles(e){var t,a;var i;return r(this,void 0,void 0,(function*(){let n=false;const o=(i=process.env["GITHUB_WORKSPACE"])!==null&&i!==void 0?i:process.cwd();const r=p.createHash("sha256");let f=0;try{for(var h=s(e.globGenerator()),g;g=yield h.next(),!g.done;){const e=g.value;l.debug(e);if(!e.startsWith(`${o}${u.sep}`)){l.debug(`Ignore '${e}' since it is not under GITHUB_WORKSPACE.`);continue}if(d.statSync(e).isDirectory()){l.debug(`Skip directory '${e}'.`);continue}const t=p.createHash("sha256");const a=m.promisify(c.pipeline);yield a(d.createReadStream(e),t);r.write(t.digest());f++;if(!n){n=true}}}catch(e){t={error:e}}finally{try{if(g&&!g.done&&(a=h.return))yield a.call(h)}finally{if(t)throw t.error}}r.end();if(n){l.debug(`Found ${f} files to hash.`);return r.digest("hex")}else{l.debug(`No matches found for glob`);return""}}))}t.hashFiles=hashFiles},1063:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MatchKind=void 0;var a;(function(e){e[e["None"]=0]="None";e[e["Directory"]=1]="Directory";e[e["File"]=2]="File";e[e["All"]=3]="All"})(a=t.MatchKind||(t.MatchKind={}))},1849:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.safeTrimTrailingSeparator=t.normalizeSeparators=t.hasRoot=t.hasAbsoluteRoot=t.ensureAbsoluteRoot=t.dirname=void 0;const s=o(a(5622));const p=r(a(2357));const l=process.platform==="win32";function dirname(e){e=safeTrimTrailingSeparator(e);if(l&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(e)){return e}let t=s.dirname(e);if(l&&/^\\\\[^\\]+\\[^\\]+\\$/.test(t)){t=safeTrimTrailingSeparator(t)}return t}t.dirname=dirname;function ensureAbsoluteRoot(e,t){p.default(e,`ensureAbsoluteRoot parameter 'root' must not be empty`);p.default(t,`ensureAbsoluteRoot parameter 'itemPath' must not be empty`);if(hasAbsoluteRoot(t)){return t}if(l){if(t.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let e=process.cwd();p.default(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);if(t[0].toUpperCase()===e[0].toUpperCase()){if(t.length===2){return`${t[0]}:\\${e.substr(3)}`}else{if(!e.endsWith("\\")){e+="\\"}return`${t[0]}:\\${e.substr(3)}${t.substr(2)}`}}else{return`${t[0]}:\\${t.substr(2)}`}}else if(normalizeSeparators(t).match(/^\\$|^\\[^\\]/)){const e=process.cwd();p.default(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);return`${e[0]}:\\${t.substr(1)}`}}p.default(hasAbsoluteRoot(e),`ensureAbsoluteRoot parameter 'root' must have an absolute root`);if(e.endsWith("/")||l&&e.endsWith("\\")){}else{e+=s.sep}return e+t}t.ensureAbsoluteRoot=ensureAbsoluteRoot;function hasAbsoluteRoot(e){p.default(e,`hasAbsoluteRoot parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(l){return e.startsWith("\\\\")||/^[A-Z]:\\/i.test(e)}return e.startsWith("/")}t.hasAbsoluteRoot=hasAbsoluteRoot;function hasRoot(e){p.default(e,`isRooted parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(l){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.hasRoot=hasRoot;function normalizeSeparators(e){e=e||"";if(l){e=e.replace(/\//g,"\\");const t=/^\\\\+[^\\]/.test(e);return(t?"\\":"")+e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}t.normalizeSeparators=normalizeSeparators;function safeTrimTrailingSeparator(e){if(!e){return""}e=normalizeSeparators(e);if(!e.endsWith(s.sep)){return e}if(e===s.sep){return e}if(l&&/^[A-Z]:\\$/i.test(e)){return e}return e.substr(0,e.length-1)}t.safeTrimTrailingSeparator=safeTrimTrailingSeparator},6836:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.Path=void 0;const s=o(a(5622));const p=o(a(1849));const l=r(a(2357));const d=process.platform==="win32";class Path{constructor(e){this.segments=[];if(typeof e==="string"){l.default(e,`Parameter 'itemPath' must not be empty`);e=p.safeTrimTrailingSeparator(e);if(!p.hasRoot(e)){this.segments=e.split(s.sep)}else{let t=e;let a=p.dirname(t);while(a!==t){const e=s.basename(t);this.segments.unshift(e);t=a;a=p.dirname(t)}this.segments.unshift(t)}}else{l.default(e.length>0,`Parameter 'itemPath' must not be an empty array`);for(let t=0;t!e.negate));const t={};for(const a of e){const e=p?a.searchPath.toUpperCase():a.searchPath;t[e]="candidate"}const a=[];for(const i of e){const e=p?i.searchPath.toUpperCase():i.searchPath;if(t[e]==="included"){continue}let n=false;let o=e;let s=r.dirname(o);while(s!==o){if(t[s]){n=true;break}o=s;s=r.dirname(o)}if(!n){a.push(i.searchPath);t[e]="included"}}return a}t.getSearchPaths=getSearchPaths;function match(e,t){let a=s.MatchKind.None;for(const i of e){if(i.negate){a&=~i.match(t)}else{a|=i.match(t)}}return a}t.match=match;function partialMatch(e,t){return e.some((e=>!e.negate&&e.partialMatch(t)))}t.partialMatch=partialMatch},4536:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.Pattern=void 0;const s=o(a(2087));const p=o(a(5622));const l=o(a(1849));const d=r(a(2357));const c=a(3973);const m=a(1063);const u=a(6836);const f=process.platform==="win32";class Pattern{constructor(e,t=false,a,i){this.negate=false;let n;if(typeof e==="string"){n=e.trim()}else{a=a||[];d.default(a.length,`Parameter 'segments' must not empty`);const t=Pattern.getLiteral(a[0]);d.default(t&&l.hasAbsoluteRoot(t),`Parameter 'segments' first element must be a root path`);n=new u.Path(a).toString().trim();if(e){n=`!${n}`}}while(n.startsWith("!")){this.negate=!this.negate;n=n.substr(1).trim()}n=Pattern.fixupPattern(n,i);this.segments=new u.Path(n).segments;this.trailingSeparator=l.normalizeSeparators(n).endsWith(p.sep);n=l.safeTrimTrailingSeparator(n);let o=false;const r=this.segments.map((e=>Pattern.getLiteral(e))).filter((e=>!o&&!(o=e==="")));this.searchPath=new u.Path(r).toString();this.rootRegExp=new RegExp(Pattern.regExpEscape(r[0]),f?"i":"");this.isImplicitPattern=t;const s={dot:true,nobrace:true,nocase:f,nocomment:true,noext:true,nonegate:true};n=f?n.replace(/\\/g,"/"):n;this.minimatch=new c.Minimatch(n,s)}match(e){if(this.segments[this.segments.length-1]==="**"){e=l.normalizeSeparators(e);if(!e.endsWith(p.sep)&&this.isImplicitPattern===false){e=`${e}${p.sep}`}}else{e=l.safeTrimTrailingSeparator(e)}if(this.minimatch.match(e)){return this.trailingSeparator?m.MatchKind.Directory:m.MatchKind.All}return m.MatchKind.None}partialMatch(e){e=l.safeTrimTrailingSeparator(e);if(l.dirname(e)===e){return this.rootRegExp.test(e)}return this.minimatch.matchOne(e.split(f?/\\+/:/\/+/),this.minimatch.set[0],true)}static globEscape(e){return(f?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,t){d.default(e,"pattern cannot be empty");const a=new u.Path(e).segments.map((e=>Pattern.getLiteral(e)));d.default(a.every(((e,t)=>(e!=="."||t===0)&&e!=="..")),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`);d.default(!l.hasRoot(e)||a[0],`Invalid pattern '${e}'. Root segment must not contain globs.`);e=l.normalizeSeparators(e);if(e==="."||e.startsWith(`.${p.sep}`)){e=Pattern.globEscape(process.cwd())+e.substr(1)}else if(e==="~"||e.startsWith(`~${p.sep}`)){t=t||s.homedir();d.default(t,"Unable to determine HOME directory");d.default(l.hasAbsoluteRoot(t),`Expected HOME directory to be a rooted path. Actual '${t}'`);e=Pattern.globEscape(t)+e.substr(1)}else if(f&&(e.match(/^[A-Z]:$/i)||e.match(/^[A-Z]:[^\\]/i))){let t=l.ensureAbsoluteRoot("C:\\dummy-root",e.substr(0,2));if(e.length>2&&!t.endsWith("\\")){t+="\\"}e=Pattern.globEscape(t)+e.substr(2)}else if(f&&(e==="\\"||e.match(/^\\[^\\]/))){let t=l.ensureAbsoluteRoot("C:\\dummy-root","\\");if(!t.endsWith("\\")){t+="\\"}e=Pattern.globEscape(t)+e.substr(1)}else{e=l.ensureAbsoluteRoot(Pattern.globEscape(process.cwd()),e)}return l.normalizeSeparators(e)}static getLiteral(e){let t="";for(let a=0;a=0){if(i.length>1){return""}if(i){t+=i;a=n;continue}}}t+=i}return t}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,"\\$&")}}t.Pattern=Pattern},9117:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SearchState=void 0;class SearchState{constructor(e,t){this.path=e;this.level=t}}t.SearchState=SearchState},3702:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from(this.username+":"+this.password).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,t,a){return null}}t.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Bearer "+this.token}canHandleAuthentication(e){return false}handleAuthentication(e,t,a){return null}}t.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from("PAT:"+this.token).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,t,a){return null}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},9925:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const i=a(8605);const n=a(7211);const o=a(6443);let r;var 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"})(s=t.HttpCodes||(t.HttpCodes={}));var p;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(p=t.Headers||(t.Headers={}));var l;(function(e){e["ApplicationJson"]="application/json"})(l=t.MediaTypes||(t.MediaTypes={}));function getProxyUrl(e){let t=o.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const d=[s.MovedPermanently,s.ResourceMoved,s.SeeOther,s.TemporaryRedirect,s.PermanentRedirect];const c=[s.BadGateway,s.ServiceUnavailable,s.GatewayTimeout];const m=["OPTIONS","GET","DELETE","HEAD"];const u=10;const f=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return new Promise((async(e,t)=>{let a=Buffer.alloc(0);this.message.on("data",(e=>{a=Buffer.concat([a,e])}));this.message.on("end",(()=>{e(a.toString())}))}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){let t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,a){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=a;if(a){if(a.ignoreSslError!=null){this._ignoreSslError=a.ignoreSslError}this._socketTimeout=a.socketTimeout;if(a.allowRedirects!=null){this._allowRedirects=a.allowRedirects}if(a.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=a.allowRedirectDowngrade}if(a.maxRedirects!=null){this._maxRedirects=Math.max(a.maxRedirects,0)}if(a.keepAlive!=null){this._keepAlive=a.keepAlive}if(a.allowRetries!=null){this._allowRetries=a.allowRetries}if(a.maxRetries!=null){this._maxRetries=a.maxRetries}}}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,a){return this.request("POST",e,t,a||{})}patch(e,t,a){return this.request("PATCH",e,t,a||{})}put(e,t,a){return this.request("PUT",e,t,a||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,a,i){return this.request(e,t,a,i)}async getJson(e,t={}){t[p.Accept]=this._getExistingOrDefaultHeader(t,p.Accept,l.ApplicationJson);let a=await this.get(e,t);return this._processResponse(a,this.requestOptions)}async postJson(e,t,a={}){let i=JSON.stringify(t,null,2);a[p.Accept]=this._getExistingOrDefaultHeader(a,p.Accept,l.ApplicationJson);a[p.ContentType]=this._getExistingOrDefaultHeader(a,p.ContentType,l.ApplicationJson);let n=await this.post(e,i,a);return this._processResponse(n,this.requestOptions)}async putJson(e,t,a={}){let i=JSON.stringify(t,null,2);a[p.Accept]=this._getExistingOrDefaultHeader(a,p.Accept,l.ApplicationJson);a[p.ContentType]=this._getExistingOrDefaultHeader(a,p.ContentType,l.ApplicationJson);let n=await this.put(e,i,a);return this._processResponse(n,this.requestOptions)}async patchJson(e,t,a={}){let i=JSON.stringify(t,null,2);a[p.Accept]=this._getExistingOrDefaultHeader(a,p.Accept,l.ApplicationJson);a[p.ContentType]=this._getExistingOrDefaultHeader(a,p.ContentType,l.ApplicationJson);let n=await this.patch(e,i,a);return this._processResponse(n,this.requestOptions)}async request(e,t,a,i){if(this._disposed){throw new Error("Client has already been disposed.")}let n=new URL(t);let o=this._prepareRequest(e,n,i);let r=this._allowRetries&&m.indexOf(e)!=-1?this._maxRetries+1:1;let p=0;let l;while(p0){const r=l.message.headers["location"];if(!r){break}let s=new URL(r);if(n.protocol=="https:"&&n.protocol!=s.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}await l.readBody();if(s.hostname!==n.hostname){for(let e in i){if(e.toLowerCase()==="authorization"){delete i[e]}}}o=this._prepareRequest(e,s,i);l=await this.requestRaw(o,a);t--}if(c.indexOf(l.message.statusCode)==-1){return l}p+=1;if(p{let callbackForResult=function(e,t){if(e){i(e)}a(t)};this.requestRawWithCallback(e,t,callbackForResult)}))}requestRawWithCallback(e,t,a){let i;if(typeof t==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let n=false;let handleResult=(e,t)=>{if(!n){n=true;a(e,t)}};let o=e.httpModule.request(e.options,(e=>{let t=new HttpClientResponse(e);handleResult(null,t)}));o.on("socket",(e=>{i=e}));o.setTimeout(this._socketTimeout||3*6e4,(()=>{if(i){i.end()}handleResult(new Error("Request timeout: "+e.options.path),null)}));o.on("error",(function(e){handleResult(e,null)}));if(t&&typeof t==="string"){o.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){o.end()}));t.pipe(o)}else{o.end()}}getAgent(e){let t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,a){const o={};o.parsedUrl=t;const r=o.parsedUrl.protocol==="https:";o.httpModule=r?n:i;const s=r?443:80;o.options={};o.options.host=o.parsedUrl.hostname;o.options.port=o.parsedUrl.port?parseInt(o.parsedUrl.port):s;o.options.path=(o.parsedUrl.pathname||"")+(o.parsedUrl.search||"");o.options.method=e;o.options.headers=this._mergeHeaders(a);if(this.userAgent!=null){o.options.headers["user-agent"]=this.userAgent}o.options.agent=this._getAgent(o.parsedUrl);if(this.handlers){this.handlers.forEach((e=>{e.prepareRequest(o.options)}))}return o}_mergeHeaders(e){const lowercaseKeys=e=>Object.keys(e).reduce(((t,a)=>(t[a.toLowerCase()]=e[a],t)),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,a){const lowercaseKeys=e=>Object.keys(e).reduce(((t,a)=>(t[a.toLowerCase()]=e[a],t)),{});let i;if(this.requestOptions&&this.requestOptions.headers){i=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||i||a}_getAgent(e){let t;let s=o.getProxyUrl(e);let p=s&&s.hostname;if(this._keepAlive&&p){t=this._proxyAgent}if(this._keepAlive&&!p){t=this._agent}if(!!t){return t}const l=e.protocol==="https:";let d=100;if(!!this.requestOptions){d=this.requestOptions.maxSockets||i.globalAgent.maxSockets}if(p){if(!r){r=a(4294)}const e={maxSockets:d,keepAlive:this._keepAlive,proxy:{...(s.username||s.password)&&{proxyAuth:`${s.username}:${s.password}`},host:s.hostname,port:s.port}};let i;const n=s.protocol==="https:";if(l){i=n?r.httpsOverHttps:r.httpsOverHttp}else{i=n?r.httpOverHttps:r.httpOverHttp}t=i(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:d};t=l?new n.Agent(e):new i.Agent(e);this._agent=t}if(!t){t=l?n.globalAgent:i.globalAgent}if(l&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){e=Math.min(u,e);const t=f*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}static dateTimeDeserializer(e,t){if(typeof t==="string"){let e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}async _processResponse(e,t){return new Promise((async(a,i)=>{const n=e.message.statusCode;const o={statusCode:n,result:null,headers:{}};if(n==s.NotFound){a(o)}let r;let p;try{p=await e.readBody();if(p&&p.length>0){if(t&&t.deserializeDates){r=JSON.parse(p,HttpClient.dateTimeDeserializer)}else{r=JSON.parse(p)}o.result=r}o.headers=e.message.headers}catch(e){}if(n>299){let e;if(r&&r.message){e=r.message}else if(p&&p.length>0){e=p}else{e="Failed request: ("+n+")"}let t=new HttpClientError(e,n);t.result=o.result;i(t)}else{a(o)}}))}}t.HttpClient=HttpClient},6443:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function getProxyUrl(e){let t=e.protocol==="https:";let a;if(checkBypass(e)){return a}let i;if(t){i=process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{i=process.env["http_proxy"]||process.env["HTTP_PROXY"]}if(i){a=new URL(i)}return a}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}let t=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!t){return false}let a;if(e.port){a=Number(e.port)}else if(e.protocol==="http:"){a=80}else if(e.protocol==="https:"){a=443}let i=[e.hostname.toUpperCase()];if(typeof a==="number"){i.push(`${i[0]}:${a}`)}for(let e of t.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(i.some((t=>t===e))){return true}}return false}t.checkBypass=checkBypass},1962:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var r=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var s;Object.defineProperty(t,"__esModule",{value:true});t.getCmdPath=t.tryGetExecutablePath=t.isRooted=t.isDirectory=t.exists=t.IS_WINDOWS=t.unlink=t.symlink=t.stat=t.rmdir=t.rename=t.readlink=t.readdir=t.mkdir=t.lstat=t.copyFile=t.chmod=void 0;const p=o(a(5747));const l=o(a(5622));s=p.promises,t.chmod=s.chmod,t.copyFile=s.copyFile,t.lstat=s.lstat,t.mkdir=s.mkdir,t.readdir=s.readdir,t.readlink=s.readlink,t.rename=s.rename,t.rmdir=s.rmdir,t.stat=s.stat,t.symlink=s.symlink,t.unlink=s.unlink;t.IS_WINDOWS=process.platform==="win32";function exists(e){return r(this,void 0,void 0,(function*(){try{yield t.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}t.exists=exists;function isDirectory(e,a=false){return r(this,void 0,void 0,(function*(){const i=a?yield t.stat(e):yield t.lstat(e);return i.isDirectory()}))}t.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(t.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.isRooted=isRooted;function tryGetExecutablePath(e,a){return r(this,void 0,void 0,(function*(){let i=undefined;try{i=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(i&&i.isFile()){if(t.IS_WINDOWS){const t=l.extname(e).toUpperCase();if(a.some((e=>e.toUpperCase()===t))){return e}}else{if(isUnixExecutable(i)){return e}}}const n=e;for(const o of a){e=n+o;i=undefined;try{i=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(i&&i.isFile()){if(t.IS_WINDOWS){try{const a=l.dirname(e);const i=l.basename(e).toUpperCase();for(const n of yield t.readdir(a)){if(i===n.toUpperCase()){e=l.join(a,n);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(i)){return e}}}}return""}))}t.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(t.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}function getCmdPath(){var e;return(e=process.env["COMSPEC"])!==null&&e!==void 0?e:`cmd.exe`}t.getCmdPath=getCmdPath},7436:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var r=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.findInPath=t.which=t.mkdirP=t.rmRF=t.mv=t.cp=void 0;const s=a(2357);const p=o(a(3129));const l=o(a(5622));const d=a(1669);const c=o(a(1962));const m=d.promisify(p.exec);const u=d.promisify(p.execFile);function cp(e,t,a={}){return r(this,void 0,void 0,(function*(){const{force:i,recursive:n,copySourceDirectory:o}=readCopyOptions(a);const r=(yield c.exists(t))?yield c.stat(t):null;if(r&&r.isFile()&&!i){return}const s=r&&r.isDirectory()&&o?l.join(t,l.basename(e)):t;if(!(yield c.exists(e))){throw new Error(`no such file or directory: ${e}`)}const p=yield c.stat(e);if(p.isDirectory()){if(!n){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,s,0,i)}}else{if(l.relative(e,s)===""){throw new Error(`'${s}' and '${e}' are the same file`)}yield copyFile(e,s,i)}}))}t.cp=cp;function mv(e,t,a={}){return r(this,void 0,void 0,(function*(){if(yield c.exists(t)){let i=true;if(yield c.isDirectory(t)){t=l.join(t,l.basename(e));i=yield c.exists(t)}if(i){if(a.force==null||a.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(l.dirname(t));yield c.rename(e,t)}))}t.mv=mv;function rmRF(e){return r(this,void 0,void 0,(function*(){if(c.IS_WINDOWS){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}try{const t=c.getCmdPath();if(yield c.isDirectory(e,true)){yield m(`${t} /s /c "rd /s /q "%inputPath%""`,{env:{inputPath:e}})}else{yield m(`${t} /s /c "del /f /a "%inputPath%""`,{env:{inputPath:e}})}}catch(e){if(e.code!=="ENOENT")throw e}try{yield c.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let t=false;try{t=yield c.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(t){yield u(`rm`,[`-rf`,`${e}`])}else{yield c.unlink(e)}}}))}t.rmRF=rmRF;function mkdirP(e){return r(this,void 0,void 0,(function*(){s.ok(e,"a path argument must be provided");yield c.mkdir(e,{recursive:true})}))}t.mkdirP=mkdirP;function which(e,t){return r(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(t){const t=yield which(e,false);if(!t){if(c.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. 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.`)}else{throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}return t}const a=yield findInPath(e);if(a&&a.length>0){return a[0]}return""}))}t.which=which;function findInPath(e){return r(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const t=[];if(c.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(l.delimiter)){if(e){t.push(e)}}}if(c.isRooted(e)){const a=yield c.tryGetExecutablePath(e,t);if(a){return[a]}return[]}if(e.includes(l.sep)){return[]}const a=[];if(process.env.PATH){for(const e of process.env.PATH.split(l.delimiter)){if(e){a.push(e)}}}const i=[];for(const n of a){const a=yield c.tryGetExecutablePath(l.join(n,e),t);if(a){i.push(a)}}return i}))}t.findInPath=findInPath;function readCopyOptions(e){const t=e.force==null?true:e.force;const a=Boolean(e.recursive);const i=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:t,recursive:a,copySourceDirectory:i}}function cpDirRecursive(e,t,a,i){return r(this,void 0,void 0,(function*(){if(a>=255)return;a++;yield mkdirP(t);const n=yield c.readdir(e);for(const o of n){const n=`${e}/${o}`;const r=`${t}/${o}`;const s=yield c.lstat(n);if(s.isDirectory()){yield cpDirRecursive(n,r,a,i)}else{yield copyFile(n,r,i)}}yield c.chmod(t,(yield c.stat(e)).mode)}))}function copyFile(e,t,a){return r(this,void 0,void 0,(function*(){if((yield c.lstat(e)).isSymbolicLink()){try{yield c.lstat(t);yield c.unlink(t)}catch(e){if(e.code==="EPERM"){yield c.chmod(t,"0666");yield c.unlink(t)}}const a=yield c.readlink(e);yield c.symlink(a,t,c.IS_WINDOWS?"junction":null)}else if(!(yield c.exists(t))||a){yield c.copyFile(e,t)}}))}},2473:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var r=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t._readLinuxVersionFile=t._getOsVersion=t._findMatch=void 0;const s=o(a(5911));const p=a(2186);const l=a(2087);const d=a(3129);const c=a(5747);function _findMatch(t,a,i,n){return r(this,void 0,void 0,(function*(){const o=l.platform();let r;let d;let c;for(const r of i){const i=r.version;p.debug(`check ${i} satisfies ${t}`);if(s.satisfies(i,t)&&(!a||r.stable===a)){c=r.files.find((t=>{p.debug(`${t.arch}===${n} && ${t.platform}===${o}`);let a=t.arch===n&&t.platform===o;if(a&&t.platform_version){const i=e.exports._getOsVersion();if(i===t.platform_version){a=true}else{a=s.satisfies(i,t.platform_version)}}return a}));if(c){p.debug(`matched ${r.version}`);d=r;break}}}if(d&&c){r=Object.assign({},d);r.files=[c]}return r}))}t._findMatch=_findMatch;function _getOsVersion(){const t=l.platform();let a="";if(t==="darwin"){a=d.execSync("sw_vers -productVersion").toString()}else if(t==="linux"){const t=e.exports._readLinuxVersionFile();if(t){const e=t.split("\n");for(const t of e){const e=t.split("=");if(e.length===2&&(e[0].trim()==="VERSION_ID"||e[0].trim()==="DISTRIB_RELEASE")){a=e[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return a}t._getOsVersion=_getOsVersion;function _readLinuxVersionFile(){const e="/etc/lsb-release";const t="/etc/os-release";let a="";if(c.existsSync(e)){a=c.readFileSync(e).toString()}else if(c.existsSync(t)){a=c.readFileSync(t).toString()}return a}t._readLinuxVersionFile=_readLinuxVersionFile},8279:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var r=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.RetryHelper=void 0;const s=o(a(2186));class RetryHelper{constructor(e,t,a){if(e<1){throw new Error("max attempts should be greater than or equal to 1")}this.maxAttempts=e;this.minSeconds=Math.floor(t);this.maxSeconds=Math.floor(a);if(this.minSeconds>this.maxSeconds){throw new Error("min seconds should be less than or equal to max seconds")}}execute(e,t){return r(this,void 0,void 0,(function*(){let a=1;while(asetTimeout(t,e*1e3)))}))}}t.RetryHelper=RetryHelper},7784:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var r=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.evaluateVersions=t.isExplicitVersion=t.findFromManifest=t.getManifestFromRepo=t.findAllVersions=t.find=t.cacheFile=t.cacheDir=t.extractZip=t.extractXar=t.extractTar=t.extract7z=t.downloadTool=t.HTTPError=void 0;const p=o(a(2186));const l=o(a(7436));const d=o(a(5747));const c=o(a(2473));const m=o(a(2087));const u=o(a(5622));const f=o(a(9925));const h=o(a(5911));const g=o(a(2413));const y=o(a(1669));const v=s(a(824));const b=a(1514);const x=a(2357);const w=a(8279);class HTTPError extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`);this.httpStatusCode=e;Object.setPrototypeOf(this,new.target.prototype)}}t.HTTPError=HTTPError;const S=process.platform==="win32";const N=process.platform==="darwin";const k="actions/tool-cache";function downloadTool(e,t,a,i){return r(this,void 0,void 0,(function*(){t=t||u.join(_getTempDirectory(),v.default());yield l.mkdirP(u.dirname(t));p.debug(`Downloading ${e}`);p.debug(`Destination ${t}`);const n=3;const o=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10);const s=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);const d=new w.RetryHelper(n,o,s);return yield d.execute((()=>r(this,void 0,void 0,(function*(){return yield downloadToolAttempt(e,t||"",a,i)}))),(e=>{if(e instanceof HTTPError&&e.httpStatusCode){if(e.httpStatusCode<500&&e.httpStatusCode!==408&&e.httpStatusCode!==429){return false}}return true}))}))}t.downloadTool=downloadTool;function downloadToolAttempt(e,t,a,i){return r(this,void 0,void 0,(function*(){if(d.existsSync(t)){throw new Error(`Destination file path ${t} already exists`)}const n=new f.HttpClient(k,[],{allowRetries:false});if(a){p.debug("set auth");if(i===undefined){i={}}i.authorization=a}const o=yield n.get(e,i);if(o.message.statusCode!==200){const t=new HTTPError(o.message.statusCode);p.debug(`Failed to download from "${e}". Code(${o.message.statusCode}) Message(${o.message.statusMessage})`);throw t}const r=y.promisify(g.pipeline);const s=_getGlobal("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>o.message));const c=s();let m=false;try{yield r(c,d.createWriteStream(t));p.debug("download complete");m=true;return t}finally{if(!m){p.debug("download failed");try{yield l.rmRF(t)}catch(e){p.debug(`Failed to delete '${t}'. ${e.message}`)}}}}))}function extract7z(e,t,a){return r(this,void 0,void 0,(function*(){x.ok(S,"extract7z() not supported on current OS");x.ok(e,'parameter "file" is required');t=yield _createExtractFolder(t);const i=process.cwd();process.chdir(t);if(a){try{const t=p.isDebug()?"-bb1":"-bb0";const n=["x",t,"-bd","-sccUTF-8",e];const o={silent:true};yield b.exec(`"${a}"`,n,o)}finally{process.chdir(i)}}else{const a=u.join(__dirname,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"");const n=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const o=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const r=`& '${a}' -Source '${n}' -Target '${o}'`;const s=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",r];const p={silent:true};try{const e=yield l.which("powershell",true);yield b.exec(`"${e}"`,s,p)}finally{process.chdir(i)}}return t}))}t.extract7z=extract7z;function extractTar(e,t,a="xz"){return r(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'file' is required")}t=yield _createExtractFolder(t);p.debug("Checking tar --version");let i="";yield b.exec("tar --version",[],{ignoreReturnCode:true,silent:true,listeners:{stdout:e=>i+=e.toString(),stderr:e=>i+=e.toString()}});p.debug(i.trim());const n=i.toUpperCase().includes("GNU TAR");let o;if(a instanceof Array){o=a}else{o=[a]}if(p.isDebug()&&!a.includes("v")){o.push("-v")}let r=t;let s=e;if(S&&n){o.push("--force-local");r=t.replace(/\\/g,"/");s=e.replace(/\\/g,"/")}if(n){o.push("--warning=no-unknown-keyword");o.push("--overwrite")}o.push("-C",r,"-f",s);yield b.exec(`tar`,o);return t}))}t.extractTar=extractTar;function extractXar(e,t,a=[]){return r(this,void 0,void 0,(function*(){x.ok(N,"extractXar() not supported on current OS");x.ok(e,'parameter "file" is required');t=yield _createExtractFolder(t);let i;if(a instanceof Array){i=a}else{i=[a]}i.push("-x","-C",t,"-f",e);if(p.isDebug()){i.push("-v")}const n=yield l.which("xar",true);yield b.exec(`"${n}"`,_unique(i));return t}))}t.extractXar=extractXar;function extractZip(e,t){return r(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'file' is required")}t=yield _createExtractFolder(t);if(S){yield extractZipWin(e,t)}else{yield extractZipNix(e,t)}return t}))}t.extractZip=extractZip;function extractZipWin(e,t){return r(this,void 0,void 0,(function*(){const a=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const i=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const n=yield l.which("pwsh",false);if(n){const e=[`$ErrorActionPreference = 'Stop' ;`,`try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;`,`try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${a}', '${i}', $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 '${i}' -Force } else { throw $_ } } ;`].join(" ");const t=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e];p.debug(`Using pwsh at path: ${n}`);yield b.exec(`"${n}"`,t)}else{const e=[`$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 '${i}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${a}', '${i}', $true) }`].join(" ");const t=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e];const n=yield l.which("powershell",true);p.debug(`Using powershell at path: ${n}`);yield b.exec(`"${n}"`,t)}}))}function extractZipNix(e,t){return r(this,void 0,void 0,(function*(){const a=yield l.which("unzip",true);const i=[e];if(!p.isDebug()){i.unshift("-q")}i.unshift("-o");yield b.exec(`"${a}"`,i,{cwd:t})}))}function cacheDir(e,t,a,i){return r(this,void 0,void 0,(function*(){a=h.clean(a)||a;i=i||m.arch();p.debug(`Caching tool ${t} ${a} ${i}`);p.debug(`source dir: ${e}`);if(!d.statSync(e).isDirectory()){throw new Error("sourceDir is not a directory")}const n=yield _createToolPath(t,a,i);for(const t of d.readdirSync(e)){const a=u.join(e,t);yield l.cp(a,n,{recursive:true})}_completeToolPath(t,a,i);return n}))}t.cacheDir=cacheDir;function cacheFile(e,t,a,i,n){return r(this,void 0,void 0,(function*(){i=h.clean(i)||i;n=n||m.arch();p.debug(`Caching tool ${a} ${i} ${n}`);p.debug(`source file: ${e}`);if(!d.statSync(e).isFile()){throw new Error("sourceFile is not a file")}const o=yield _createToolPath(a,i,n);const r=u.join(o,t);p.debug(`destination file ${r}`);yield l.cp(e,r);_completeToolPath(a,i,n);return o}))}t.cacheFile=cacheFile;function find(e,t,a){if(!e){throw new Error("toolName parameter is required")}if(!t){throw new Error("versionSpec parameter is required")}a=a||m.arch();if(!isExplicitVersion(t)){const i=findAllVersions(e,a);const n=evaluateVersions(i,t);t=n}let i="";if(t){t=h.clean(t)||"";const n=u.join(_getCacheDirectory(),e,t,a);p.debug(`checking cache: ${n}`);if(d.existsSync(n)&&d.existsSync(`${n}.complete`)){p.debug(`Found tool in cache ${e} ${t} ${a}`);i=n}else{p.debug("not found")}}return i}t.find=find;function findAllVersions(e,t){const a=[];t=t||m.arch();const i=u.join(_getCacheDirectory(),e);if(d.existsSync(i)){const e=d.readdirSync(i);for(const n of e){if(isExplicitVersion(n)){const e=u.join(i,n,t||"");if(d.existsSync(e)&&d.existsSync(`${e}.complete`)){a.push(n)}}}}return a}t.findAllVersions=findAllVersions;function getManifestFromRepo(e,t,a,i="master"){return r(this,void 0,void 0,(function*(){let n=[];const o=`https://api.github.com/repos/${e}/${t}/git/trees/${i}`;const r=new f.HttpClient("tool-cache");const s={};if(a){p.debug("set auth");s.authorization=a}const l=yield r.getJson(o,s);if(!l.result){return n}let d="";for(const e of l.result.tree){if(e.path==="versions-manifest.json"){d=e.url;break}}s["accept"]="application/vnd.github.VERSION.raw";let c=yield(yield r.get(d,s)).readBody();if(c){c=c.replace(/^\uFEFF/,"");try{n=JSON.parse(c)}catch(e){p.debug("Invalid json")}}return n}))}t.getManifestFromRepo=getManifestFromRepo;function findFromManifest(e,t,a,i=m.arch()){return r(this,void 0,void 0,(function*(){const n=yield c._findMatch(e,t,a,i);return n}))}t.findFromManifest=findFromManifest;function _createExtractFolder(e){return r(this,void 0,void 0,(function*(){if(!e){e=u.join(_getTempDirectory(),v.default())}yield l.mkdirP(e);return e}))}function _createToolPath(e,t,a){return r(this,void 0,void 0,(function*(){const i=u.join(_getCacheDirectory(),e,h.clean(t)||t,a||"");p.debug(`destination ${i}`);const n=`${i}.complete`;yield l.rmRF(i);yield l.rmRF(n);yield l.mkdirP(i);return i}))}function _completeToolPath(e,t,a){const i=u.join(_getCacheDirectory(),e,h.clean(t)||t,a||"");const n=`${i}.complete`;d.writeFileSync(n,"");p.debug("finished caching tool")}function isExplicitVersion(e){const t=h.clean(e)||"";p.debug(`isExplicit: ${t}`);const a=h.valid(t)!=null;p.debug(`explicit? ${a}`);return a}t.isExplicitVersion=isExplicitVersion;function evaluateVersions(e,t){let a="";p.debug(`evaluating ${e.length} versions`);e=e.sort(((e,t)=>{if(h.gt(e,t)){return 1}return-1}));for(let i=e.length-1;i>=0;i--){const n=e[i];const o=h.satisfies(n,t);if(o){a=n;break}}if(a){p.debug(`matched: ${a}`)}else{p.debug("match not found")}return a}t.evaluateVersions=evaluateVersions;function _getCacheDirectory(){const e=process.env["RUNNER_TOOL_CACHE"]||"";x.ok(e,"Expected RUNNER_TOOL_CACHE to be defined");return e}function _getTempDirectory(){const e=process.env["RUNNER_TEMP"]||"";x.ok(e,"Expected RUNNER_TEMP to be defined");return e}function _getGlobal(e,t){const a=global[e];return a!==undefined?a:t}function _unique(e){return Array.from(new Set(e))}},2557:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var i=a(9268);var n=new WeakMap;var o=new WeakMap;var r=function(){function AbortSignal(){this.onabort=null;n.set(this,[]);o.set(this,false)}Object.defineProperty(AbortSignal.prototype,"aborted",{get:function(){if(!o.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}return o.get(this)},enumerable:false,configurable:true});Object.defineProperty(AbortSignal,"none",{get:function(){return new AbortSignal},enumerable:false,configurable:true});AbortSignal.prototype.addEventListener=function(e,t){if(!n.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}var a=n.get(this);a.push(t)};AbortSignal.prototype.removeEventListener=function(e,t){if(!n.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}var a=n.get(this);var i=a.indexOf(t);if(i>-1){a.splice(i,1)}};AbortSignal.prototype.dispatchEvent=function(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")};return AbortSignal}();function abortSignal(e){if(e.aborted){return}if(e.onabort){e.onabort.call(e)}var t=n.get(e);if(t){t.slice().forEach((function(t){t.call(e,{type:"abort"})}))}o.set(e,true)}var s=function(e){i.__extends(AbortError,e);function AbortError(t){var a=e.call(this,t)||this;a.name="AbortError";return a}return AbortError}(Error);var p=function(){function AbortController(e){var t=this;this._signal=new r;if(!e){return}if(!Array.isArray(e)){e=arguments}for(var a=0,i=e;a{ /*! ***************************************************************************** Copyright (c) Microsoft Corporation. diff --git a/dist/generate_offline_dependencies/index.js b/dist/generate_offline_dependencies/index.js index b5ed9db..f70a69e 100644 --- a/dist/generate_offline_dependencies/index.js +++ b/dist/generate_offline_dependencies/index.js @@ -1,4 +1,4 @@ -(()=>{var e={8:(e,t,r)=>{const n=r(186);const i=r(514);const o=r(622);const s=r(711);const a=process.env["CI"];global.workspaceDir=process.env["GITHUB_WORKSPACE"];global.conanCachePath=o.join(workspaceDir,".conan");function log(e){if(a){n.info(e)}else{console.log(e)}}function error(e){if(a){n.error(e)}else{console.error(e)}}async function execWithLog(e,arguments){if(a){return i.exec(e,arguments)}else{return i.exec(e,arguments,{listeners:{stdout:e=>{log(e.toString())},stderr:e=>{error(e.toString())}}})}}async function getExecOutput(e,arguments){if(a){return i.getExecOutput(e,arguments)}else{return i.getExecOutput(e,arguments,{listeners:{stdout:e=>{log(e.toString())},stderr:e=>{error(e.toString())}}})}}async function awaitAll(e,t){return await Promise.all(e.map((async e=>t(e))))}async function getMD5(e){const t=await fs.promises.readFileSync(e);return s(t)}function getDateString(){const e=new Date;return[e.getFullYear(),("0"+(e.getMonth()+1)).slice(-2),("0"+e.getDate()).slice(-2)].join("")}const sleep=e=>new Promise((t=>setTimeout(t,e)));process.on("unhandledRejection",((e,t)=>{error(e);n.setFailed(err);process.exit(1)})).on("uncaughtException",(e=>{error(e);n.setFailed(e);process.exit(1)}));e.exports={log:log,error:error,execWithLog:execWithLog,getExecOutput:getExecOutput,sleep:sleep,awaitAll:awaitAll,getMD5:getMD5,getDateString:getDateString}},351:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const s=o(r(87));const a=r(278);function issueCommand(e,t,r){const n=new Command(e,t,r);process.stdout.write(n.toString()+s.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const u="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=u+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const n=this.properties[r];if(n){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(n)}`}}}}e+=`${u}${escapeData(this.message)}`;return e}}function escapeData(e){return a.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return a.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},186:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getIDToken=t.getState=t.saveState=t.group=t.endGroup=t.startGroup=t.info=t.notice=t.warning=t.error=t.debug=t.isDebug=t.setFailed=t.setCommandEcho=t.setOutput=t.getBooleanInput=t.getMultilineInput=t.getInput=t.addPath=t.setSecret=t.exportVariable=t.ExitCode=void 0;const a=r(351);const u=r(717);const c=r(278);const l=o(r(87));const d=o(r(622));const f=r(41);var p;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(p=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const r=c.toCommandValue(t);process.env[e]=r;const n=process.env["GITHUB_ENV"]||"";if(n){const t="_GitHubActionsFileCommandDelimeter_";const n=`${e}<<${t}${l.EOL}${r}${l.EOL}${t}`;u.issueCommand("ENV",n)}else{a.issueCommand("set-env",{name:e},r)}}t.exportVariable=exportVariable;function setSecret(e){a.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){u.issueCommand("PATH",e)}else{a.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${d.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r){throw new Error(`Input required and not supplied: ${e}`)}if(t&&t.trimWhitespace===false){return r}return r.trim()}t.getInput=getInput;function getMultilineInput(e,t){const r=getInput(e,t).split("\n").filter((e=>e!==""));return r}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const r=["true","True","TRUE"];const n=["false","False","FALSE"];const i=getInput(e,t);if(r.includes(i))return true;if(n.includes(i))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}t.getBooleanInput=getBooleanInput;function setOutput(e,t){process.stdout.write(l.EOL);a.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){a.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=p.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){a.issueCommand("debug",{},e)}t.debug=debug;function error(e,t={}){a.issueCommand("error",c.toCommandProperties(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){a.issueCommand("warning",c.toCommandProperties(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){a.issueCommand("notice",c.toCommandProperties(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+l.EOL)}t.info=info;function startGroup(e){a.issue("group",e)}t.startGroup=startGroup;function endGroup(){a.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return s(this,void 0,void 0,(function*(){startGroup(e);let r;try{r=yield t()}finally{endGroup()}return r}))}t.group=group;function saveState(e,t){a.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState;function getIDToken(e){return s(this,void 0,void 0,(function*(){return yield f.OidcClient.getIDToken(e)}))}t.getIDToken=getIDToken},717:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issueCommand=void 0;const s=o(r(747));const a=o(r(87));const u=r(278);function issueCommand(e,t){const r=process.env[`GITHUB_${e}`];if(!r){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!s.existsSync(r)){throw new Error(`Missing file at path: ${r}`)}s.appendFileSync(r,`${u.toCommandValue(t)}${a.EOL}`,{encoding:"utf8"})}t.issueCommand=issueCommand},41:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.OidcClient=void 0;const i=r(925);const o=r(702);const s=r(186);class OidcClient{static createHttpClient(e=true,t=10){const r={allowRetries:e,maxRetries:t};return new i.HttpClient("actions/oidc-client",[new o.BearerCredentialHandler(OidcClient.getRequestToken())],r)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var t;return n(this,void 0,void 0,(function*(){const r=OidcClient.createHttpClient();const n=yield r.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)}));const i=(t=n.result)===null||t===void 0?void 0:t.value;if(!i){throw new Error("Response json body do not have ID Token field")}return i}))}static getIDToken(e){return n(this,void 0,void 0,(function*(){try{let t=OidcClient.getIDTokenUrl();if(e){const r=encodeURIComponent(e);t=`${t}&audience=${r}`}s.debug(`ID token url is ${t}`);const r=yield OidcClient.getCall(t);s.setSecret(r);return r}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}t.OidcClient=OidcClient},278:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toCommandProperties=t.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}t.toCommandProperties=toCommandProperties},514:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getExecOutput=t.exec=void 0;const a=r(304);const u=o(r(159));function exec(e,t,r){return s(this,void 0,void 0,(function*(){const n=u.argStringToArray(e);if(n.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const i=n[0];t=n.slice(1).concat(t||[]);const o=new u.ToolRunner(i,t,r);return o.exec()}))}t.exec=exec;function getExecOutput(e,t,r){var n,i;return s(this,void 0,void 0,(function*(){let o="";let s="";const u=new a.StringDecoder("utf8");const c=new a.StringDecoder("utf8");const l=(n=r===null||r===void 0?void 0:r.listeners)===null||n===void 0?void 0:n.stdout;const d=(i=r===null||r===void 0?void 0:r.listeners)===null||i===void 0?void 0:i.stderr;const stdErrListener=e=>{s+=c.write(e);if(d){d(e)}};const stdOutListener=e=>{o+=u.write(e);if(l){l(e)}};const f=Object.assign(Object.assign({},r===null||r===void 0?void 0:r.listeners),{stdout:stdOutListener,stderr:stdErrListener});const p=yield exec(e,t,Object.assign(Object.assign({},r),{listeners:f}));o+=u.end();s+=c.end();return{exitCode:p,stdout:o,stderr:s}}))}t.getExecOutput=getExecOutput},159:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.argStringToArray=t.ToolRunner=void 0;const a=o(r(87));const u=o(r(614));const c=o(r(129));const l=o(r(622));const d=o(r(436));const f=o(r(962));const p=r(213);const h=process.platform==="win32";class ToolRunner extends u.EventEmitter{constructor(e,t,r){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=r||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const r=this._getSpawnFileName();const n=this._getSpawnArgs(e);let i=t?"":"[command]";if(h){if(this._isCmdFile()){i+=r;for(const e of n){i+=` ${e}`}}else if(e.windowsVerbatimArguments){i+=`"${r}"`;for(const e of n){i+=` ${e}`}}else{i+=this._windowsQuoteCmdArg(r);for(const e of n){i+=` ${this._windowsQuoteCmdArg(e)}`}}}else{i+=r;for(const e of n){i+=` ${e}`}}return i}_processLineBuffer(e,t,r){try{let n=t+e.toString();let i=n.indexOf(a.EOL);while(i>-1){const e=n.substring(0,i);r(e);n=n.substring(i+a.EOL.length);i=n.indexOf(a.EOL)}return n}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(h){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(h){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const r of this.args){t+=" ";t+=e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r)}t+='"';return[t]}}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let r=false;for(const n of e){if(t.some((e=>e===n))){r=true;break}}if(!r){return e}let n='"';let i=true;for(let t=e.length;t>0;t--){n+=e[t-1];if(i&&e[t-1]==="\\"){n+="\\"}else if(e[t-1]==='"'){i=true;n+='"'}else{i=false}}n+='"';return n.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let t='"';let r=true;for(let n=e.length;n>0;n--){t+=e[n-1];if(r&&e[n-1]==="\\"){t+="\\"}else if(e[n-1]==='"'){r=true;t+="\\"}else{r=false}}t+='"';return t.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};t.outStream=e.outStream||process.stdout;t.errStream=e.errStream||process.stderr;return t}_getSpawnOptions(e,t){e=e||{};const r={};r.cwd=e.cwd;r.env=e.env;r["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){r.argv0=`"${t}"`}return r}exec(){return s(this,void 0,void 0,(function*(){if(!f.isRooted(this.toolPath)&&(this.toolPath.includes("/")||h&&this.toolPath.includes("\\"))){this.toolPath=l.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield d.which(this.toolPath,true);return new Promise(((e,t)=>s(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const r=this._cloneExecOptions(this.options);if(!r.silent&&r.outStream){r.outStream.write(this._getCommandString(r)+a.EOL)}const n=new ExecState(r,this.toolPath);n.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield f.exists(this.options.cwd))){return t(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const i=this._getSpawnFileName();const o=c.spawn(i,this._getSpawnArgs(r),this._getSpawnOptions(this.options,i));let s="";if(o.stdout){o.stdout.on("data",(e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!r.silent&&r.outStream){r.outStream.write(e)}s=this._processLineBuffer(e,s,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let u="";if(o.stderr){o.stderr.on("data",(e=>{n.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!r.silent&&r.errStream&&r.outStream){const t=r.failOnStdErr?r.errStream:r.outStream;t.write(e)}u=this._processLineBuffer(e,u,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}o.on("error",(e=>{n.processError=e.message;n.processExited=true;n.processClosed=true;n.CheckComplete()}));o.on("exit",(e=>{n.processExitCode=e;n.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);n.CheckComplete()}));o.on("close",(e=>{n.processExitCode=e;n.processExited=true;n.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);n.CheckComplete()}));n.on("done",((r,n)=>{if(s.length>0){this.emit("stdline",s)}if(u.length>0){this.emit("errline",u)}o.removeAllListeners();if(r){t(r)}else{e(n)}}));if(this.options.input){if(!o.stdin){throw new Error("child process missing stdin")}o.stdin.end(this.options.input)}}))))}))}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let r=false;let n=false;let i="";function append(e){if(n&&e!=='"'){i+="\\"}i+=e;n=false}for(let o=0;o0){t.push(i);i=""}continue}append(s)}if(i.length>0){t.push(i.trim())}return t}t.argStringToArray=argStringToArray;class ExecState extends u.EventEmitter{constructor(e,t){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!t){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=t;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=p.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(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}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const t=`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(t)}e._setResult()}}},702:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from(this.username+":"+this.password).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,t,r){return null}}t.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Bearer "+this.token}canHandleAuthentication(e){return false}handleAuthentication(e,t,r){return null}}t.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from("PAT:"+this.token).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,t,r){return null}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},925:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(605);const i=r(211);const o=r(443);let s;var a;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(a=t.HttpCodes||(t.HttpCodes={}));var u;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(u=t.Headers||(t.Headers={}));var c;(function(e){e["ApplicationJson"]="application/json"})(c=t.MediaTypes||(t.MediaTypes={}));function getProxyUrl(e){let t=o.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const l=[a.MovedPermanently,a.ResourceMoved,a.SeeOther,a.TemporaryRedirect,a.PermanentRedirect];const d=[a.BadGateway,a.ServiceUnavailable,a.GatewayTimeout];const f=["OPTIONS","GET","DELETE","HEAD"];const p=10;const h=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return new Promise((async(e,t)=>{let r=Buffer.alloc(0);this.message.on("data",(e=>{r=Buffer.concat([r,e])}));this.message.on("end",(()=>{e(r.toString())}))}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){let t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,r){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=r;if(r){if(r.ignoreSslError!=null){this._ignoreSslError=r.ignoreSslError}this._socketTimeout=r.socketTimeout;if(r.allowRedirects!=null){this._allowRedirects=r.allowRedirects}if(r.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=r.allowRedirectDowngrade}if(r.maxRedirects!=null){this._maxRedirects=Math.max(r.maxRedirects,0)}if(r.keepAlive!=null){this._keepAlive=r.keepAlive}if(r.allowRetries!=null){this._allowRetries=r.allowRetries}if(r.maxRetries!=null){this._maxRetries=r.maxRetries}}}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,r){return this.request("POST",e,t,r||{})}patch(e,t,r){return this.request("PATCH",e,t,r||{})}put(e,t,r){return this.request("PUT",e,t,r||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,r,n){return this.request(e,t,r,n)}async getJson(e,t={}){t[u.Accept]=this._getExistingOrDefaultHeader(t,u.Accept,c.ApplicationJson);let r=await this.get(e,t);return this._processResponse(r,this.requestOptions)}async postJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[u.Accept]=this._getExistingOrDefaultHeader(r,u.Accept,c.ApplicationJson);r[u.ContentType]=this._getExistingOrDefaultHeader(r,u.ContentType,c.ApplicationJson);let i=await this.post(e,n,r);return this._processResponse(i,this.requestOptions)}async putJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[u.Accept]=this._getExistingOrDefaultHeader(r,u.Accept,c.ApplicationJson);r[u.ContentType]=this._getExistingOrDefaultHeader(r,u.ContentType,c.ApplicationJson);let i=await this.put(e,n,r);return this._processResponse(i,this.requestOptions)}async patchJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[u.Accept]=this._getExistingOrDefaultHeader(r,u.Accept,c.ApplicationJson);r[u.ContentType]=this._getExistingOrDefaultHeader(r,u.ContentType,c.ApplicationJson);let i=await this.patch(e,n,r);return this._processResponse(i,this.requestOptions)}async request(e,t,r,n){if(this._disposed){throw new Error("Client has already been disposed.")}let i=new URL(t);let o=this._prepareRequest(e,i,n);let s=this._allowRetries&&f.indexOf(e)!=-1?this._maxRetries+1:1;let u=0;let c;while(u0){const s=c.message.headers["location"];if(!s){break}let a=new URL(s);if(i.protocol=="https:"&&i.protocol!=a.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}await c.readBody();if(a.hostname!==i.hostname){for(let e in n){if(e.toLowerCase()==="authorization"){delete n[e]}}}o=this._prepareRequest(e,a,n);c=await this.requestRaw(o,r);t--}if(d.indexOf(c.message.statusCode)==-1){return c}u+=1;if(u{let callbackForResult=function(e,t){if(e){n(e)}r(t)};this.requestRawWithCallback(e,t,callbackForResult)}))}requestRawWithCallback(e,t,r){let n;if(typeof t==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let i=false;let handleResult=(e,t)=>{if(!i){i=true;r(e,t)}};let o=e.httpModule.request(e.options,(e=>{let t=new HttpClientResponse(e);handleResult(null,t)}));o.on("socket",(e=>{n=e}));o.setTimeout(this._socketTimeout||3*6e4,(()=>{if(n){n.end()}handleResult(new Error("Request timeout: "+e.options.path),null)}));o.on("error",(function(e){handleResult(e,null)}));if(t&&typeof t==="string"){o.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){o.end()}));t.pipe(o)}else{o.end()}}getAgent(e){let t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,r){const o={};o.parsedUrl=t;const s=o.parsedUrl.protocol==="https:";o.httpModule=s?i:n;const a=s?443:80;o.options={};o.options.host=o.parsedUrl.hostname;o.options.port=o.parsedUrl.port?parseInt(o.parsedUrl.port):a;o.options.path=(o.parsedUrl.pathname||"")+(o.parsedUrl.search||"");o.options.method=e;o.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){o.options.headers["user-agent"]=this.userAgent}o.options.agent=this._getAgent(o.parsedUrl);if(this.handlers){this.handlers.forEach((e=>{e.prepareRequest(o.options)}))}return o}_mergeHeaders(e){const lowercaseKeys=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,r){const lowercaseKeys=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{});let n;if(this.requestOptions&&this.requestOptions.headers){n=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||n||r}_getAgent(e){let t;let a=o.getProxyUrl(e);let u=a&&a.hostname;if(this._keepAlive&&u){t=this._proxyAgent}if(this._keepAlive&&!u){t=this._agent}if(!!t){return t}const c=e.protocol==="https:";let l=100;if(!!this.requestOptions){l=this.requestOptions.maxSockets||n.globalAgent.maxSockets}if(u){if(!s){s=r(294)}const e={maxSockets:l,keepAlive:this._keepAlive,proxy:{...(a.username||a.password)&&{proxyAuth:`${a.username}:${a.password}`},host:a.hostname,port:a.port}};let n;const i=a.protocol==="https:";if(c){n=i?s.httpsOverHttps:s.httpsOverHttp}else{n=i?s.httpOverHttps:s.httpOverHttp}t=n(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:l};t=c?new i.Agent(e):new n.Agent(e);this._agent=t}if(!t){t=c?i.globalAgent:n.globalAgent}if(c&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){e=Math.min(p,e);const t=h*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}static dateTimeDeserializer(e,t){if(typeof t==="string"){let e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}async _processResponse(e,t){return new Promise((async(r,n)=>{const i=e.message.statusCode;const o={statusCode:i,result:null,headers:{}};if(i==a.NotFound){r(o)}let s;let u;try{u=await e.readBody();if(u&&u.length>0){if(t&&t.deserializeDates){s=JSON.parse(u,HttpClient.dateTimeDeserializer)}else{s=JSON.parse(u)}o.result=s}o.headers=e.message.headers}catch(e){}if(i>299){let e;if(s&&s.message){e=s.message}else if(u&&u.length>0){e=u}else{e="Failed request: ("+i+")"}let t=new HttpClientError(e,i);t.result=o.result;n(t)}else{r(o)}}))}}t.HttpClient=HttpClient},443:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function getProxyUrl(e){let t=e.protocol==="https:";let r;if(checkBypass(e)){return r}let n;if(t){n=process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{n=process.env["http_proxy"]||process.env["HTTP_PROXY"]}if(n){r=new URL(n)}return r}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}let t=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!t){return false}let r;if(e.port){r=Number(e.port)}else if(e.protocol==="http:"){r=80}else if(e.protocol==="https:"){r=443}let n=[e.hostname.toUpperCase()];if(typeof r==="number"){n.push(`${n[0]}:${r}`)}for(let e of t.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(n.some((t=>t===e))){return true}}return false}t.checkBypass=checkBypass},962:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var a;Object.defineProperty(t,"__esModule",{value:true});t.getCmdPath=t.tryGetExecutablePath=t.isRooted=t.isDirectory=t.exists=t.IS_WINDOWS=t.unlink=t.symlink=t.stat=t.rmdir=t.rename=t.readlink=t.readdir=t.mkdir=t.lstat=t.copyFile=t.chmod=void 0;const u=o(r(747));const c=o(r(622));a=u.promises,t.chmod=a.chmod,t.copyFile=a.copyFile,t.lstat=a.lstat,t.mkdir=a.mkdir,t.readdir=a.readdir,t.readlink=a.readlink,t.rename=a.rename,t.rmdir=a.rmdir,t.stat=a.stat,t.symlink=a.symlink,t.unlink=a.unlink;t.IS_WINDOWS=process.platform==="win32";function exists(e){return s(this,void 0,void 0,(function*(){try{yield t.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}t.exists=exists;function isDirectory(e,r=false){return s(this,void 0,void 0,(function*(){const n=r?yield t.stat(e):yield t.lstat(e);return n.isDirectory()}))}t.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(t.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.isRooted=isRooted;function tryGetExecutablePath(e,r){return s(this,void 0,void 0,(function*(){let n=undefined;try{n=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(t.IS_WINDOWS){const t=c.extname(e).toUpperCase();if(r.some((e=>e.toUpperCase()===t))){return e}}else{if(isUnixExecutable(n)){return e}}}const i=e;for(const o of r){e=i+o;n=undefined;try{n=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(t.IS_WINDOWS){try{const r=c.dirname(e);const n=c.basename(e).toUpperCase();for(const i of yield t.readdir(r)){if(n===i.toUpperCase()){e=c.join(r,i);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(n)){return e}}}}return""}))}t.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(t.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}function getCmdPath(){var e;return(e=process.env["COMSPEC"])!==null&&e!==void 0?e:`cmd.exe`}t.getCmdPath=getCmdPath},436:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.findInPath=t.which=t.mkdirP=t.rmRF=t.mv=t.cp=void 0;const a=r(357);const u=o(r(129));const c=o(r(622));const l=r(669);const d=o(r(962));const f=l.promisify(u.exec);const p=l.promisify(u.execFile);function cp(e,t,r={}){return s(this,void 0,void 0,(function*(){const{force:n,recursive:i,copySourceDirectory:o}=readCopyOptions(r);const s=(yield d.exists(t))?yield d.stat(t):null;if(s&&s.isFile()&&!n){return}const a=s&&s.isDirectory()&&o?c.join(t,c.basename(e)):t;if(!(yield d.exists(e))){throw new Error(`no such file or directory: ${e}`)}const u=yield d.stat(e);if(u.isDirectory()){if(!i){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,a,0,n)}}else{if(c.relative(e,a)===""){throw new Error(`'${a}' and '${e}' are the same file`)}yield copyFile(e,a,n)}}))}t.cp=cp;function mv(e,t,r={}){return s(this,void 0,void 0,(function*(){if(yield d.exists(t)){let n=true;if(yield d.isDirectory(t)){t=c.join(t,c.basename(e));n=yield d.exists(t)}if(n){if(r.force==null||r.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(c.dirname(t));yield d.rename(e,t)}))}t.mv=mv;function rmRF(e){return s(this,void 0,void 0,(function*(){if(d.IS_WINDOWS){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}try{const t=d.getCmdPath();if(yield d.isDirectory(e,true)){yield f(`${t} /s /c "rd /s /q "%inputPath%""`,{env:{inputPath:e}})}else{yield f(`${t} /s /c "del /f /a "%inputPath%""`,{env:{inputPath:e}})}}catch(e){if(e.code!=="ENOENT")throw e}try{yield d.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let t=false;try{t=yield d.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(t){yield p(`rm`,[`-rf`,`${e}`])}else{yield d.unlink(e)}}}))}t.rmRF=rmRF;function mkdirP(e){return s(this,void 0,void 0,(function*(){a.ok(e,"a path argument must be provided");yield d.mkdir(e,{recursive:true})}))}t.mkdirP=mkdirP;function which(e,t){return s(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(t){const t=yield which(e,false);if(!t){if(d.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. 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.`)}else{throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}return t}const r=yield findInPath(e);if(r&&r.length>0){return r[0]}return""}))}t.which=which;function findInPath(e){return s(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const t=[];if(d.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(c.delimiter)){if(e){t.push(e)}}}if(d.isRooted(e)){const r=yield d.tryGetExecutablePath(e,t);if(r){return[r]}return[]}if(e.includes(c.sep)){return[]}const r=[];if(process.env.PATH){for(const e of process.env.PATH.split(c.delimiter)){if(e){r.push(e)}}}const n=[];for(const i of r){const r=yield d.tryGetExecutablePath(c.join(i,e),t);if(r){n.push(r)}}return n}))}t.findInPath=findInPath;function readCopyOptions(e){const t=e.force==null?true:e.force;const r=Boolean(e.recursive);const n=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:t,recursive:r,copySourceDirectory:n}}function cpDirRecursive(e,t,r,n){return s(this,void 0,void 0,(function*(){if(r>=255)return;r++;yield mkdirP(t);const i=yield d.readdir(e);for(const o of i){const i=`${e}/${o}`;const s=`${t}/${o}`;const a=yield d.lstat(i);if(a.isDirectory()){yield cpDirRecursive(i,s,r,n)}else{yield copyFile(i,s,n)}}yield d.chmod(t,(yield d.stat(e)).mode)}))}function copyFile(e,t,r){return s(this,void 0,void 0,(function*(){if((yield d.lstat(e)).isSymbolicLink()){try{yield d.lstat(t);yield d.unlink(t)}catch(e){if(e.code==="EPERM"){yield d.chmod(t,"0666");yield d.unlink(t)}}const r=yield d.readlink(e);yield d.symlink(r,t,d.IS_WINDOWS?"junction":null)}else if(!(yield d.exists(t))||r){yield d.copyFile(e,t)}}))}},421:e=>{var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],r=0;r{(function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(e,t){return e<>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number){return r.rotl(e,8)&16711935|r.rotl(e,24)&4278255360}for(var t=0;t0;e--)t.push(Math.floor(Math.random()*256));return t},bytesToWords:function(e){for(var t=[],r=0,n=0;r>>5]|=e[r]<<24-n%32;return t},wordsToBytes:function(e){for(var t=[],r=0;r>>5]>>>24-r%32&255);return t},bytesToHex:function(e){for(var t=[],r=0;r>>4).toString(16));t.push((e[r]&15).toString(16))}return t.join("")},hexToBytes:function(e){for(var t=[],r=0;r>>6*(3-o)&63));else r.push("=")}return r.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var r=[],n=0,i=0;n>>6-i*2)}return r}};e.exports=r})()},625:e=>{ +(()=>{var e={8:(e,t,r)=>{const n=r(186);const i=r(514);const o=r(622);const s=r(711);const a=r(747);const u=process.env["CI"];global.workspaceDir=process.env["GITHUB_WORKSPACE"];global.conanCachePath=o.join(workspaceDir,".conan");function log(e){if(u){n.info(e)}else{console.log(e)}}function error(e){if(u){n.error(e)}else{console.error(e)}}async function execWithLog(e,arguments){if(u){return i.exec(e,arguments)}else{return i.exec(e,arguments,{listeners:{stdout:e=>{log(e.toString())},stderr:e=>{error(e.toString())}}})}}async function getExecOutput(e,arguments){if(u){return i.getExecOutput(e,arguments)}else{return i.getExecOutput(e,arguments,{listeners:{stdout:e=>{log(e.toString())},stderr:e=>{error(e.toString())}}})}}async function awaitAll(e,t){return await Promise.all(e.map((async e=>t(e))))}async function getMD5(e){const t=await a.promises.readFile(e);return s(t)}function getDateString(){const e=new Date;return[e.getFullYear(),("0"+(e.getMonth()+1)).slice(-2),("0"+e.getDate()).slice(-2)].join("")}const sleep=e=>new Promise((t=>setTimeout(t,e)));process.on("unhandledRejection",((e,t)=>{error(e);n.setFailed(e);process.exit(1)})).on("uncaughtException",(e=>{error(e);n.setFailed(e);process.exit(1)}));e.exports={log:log,error:error,execWithLog:execWithLog,getExecOutput:getExecOutput,sleep:sleep,awaitAll:awaitAll,getMD5:getMD5,getDateString:getDateString}},351:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const s=o(r(87));const a=r(278);function issueCommand(e,t,r){const n=new Command(e,t,r);process.stdout.write(n.toString()+s.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const u="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=u+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const n=this.properties[r];if(n){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(n)}`}}}}e+=`${u}${escapeData(this.message)}`;return e}}function escapeData(e){return a.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return a.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},186:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getIDToken=t.getState=t.saveState=t.group=t.endGroup=t.startGroup=t.info=t.notice=t.warning=t.error=t.debug=t.isDebug=t.setFailed=t.setCommandEcho=t.setOutput=t.getBooleanInput=t.getMultilineInput=t.getInput=t.addPath=t.setSecret=t.exportVariable=t.ExitCode=void 0;const a=r(351);const u=r(717);const c=r(278);const l=o(r(87));const d=o(r(622));const f=r(41);var p;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(p=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const r=c.toCommandValue(t);process.env[e]=r;const n=process.env["GITHUB_ENV"]||"";if(n){const t="_GitHubActionsFileCommandDelimeter_";const n=`${e}<<${t}${l.EOL}${r}${l.EOL}${t}`;u.issueCommand("ENV",n)}else{a.issueCommand("set-env",{name:e},r)}}t.exportVariable=exportVariable;function setSecret(e){a.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){u.issueCommand("PATH",e)}else{a.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${d.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r){throw new Error(`Input required and not supplied: ${e}`)}if(t&&t.trimWhitespace===false){return r}return r.trim()}t.getInput=getInput;function getMultilineInput(e,t){const r=getInput(e,t).split("\n").filter((e=>e!==""));return r}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const r=["true","True","TRUE"];const n=["false","False","FALSE"];const i=getInput(e,t);if(r.includes(i))return true;if(n.includes(i))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}t.getBooleanInput=getBooleanInput;function setOutput(e,t){process.stdout.write(l.EOL);a.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){a.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=p.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){a.issueCommand("debug",{},e)}t.debug=debug;function error(e,t={}){a.issueCommand("error",c.toCommandProperties(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){a.issueCommand("warning",c.toCommandProperties(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){a.issueCommand("notice",c.toCommandProperties(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+l.EOL)}t.info=info;function startGroup(e){a.issue("group",e)}t.startGroup=startGroup;function endGroup(){a.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return s(this,void 0,void 0,(function*(){startGroup(e);let r;try{r=yield t()}finally{endGroup()}return r}))}t.group=group;function saveState(e,t){a.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState;function getIDToken(e){return s(this,void 0,void 0,(function*(){return yield f.OidcClient.getIDToken(e)}))}t.getIDToken=getIDToken},717:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issueCommand=void 0;const s=o(r(747));const a=o(r(87));const u=r(278);function issueCommand(e,t){const r=process.env[`GITHUB_${e}`];if(!r){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!s.existsSync(r)){throw new Error(`Missing file at path: ${r}`)}s.appendFileSync(r,`${u.toCommandValue(t)}${a.EOL}`,{encoding:"utf8"})}t.issueCommand=issueCommand},41:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.OidcClient=void 0;const i=r(925);const o=r(702);const s=r(186);class OidcClient{static createHttpClient(e=true,t=10){const r={allowRetries:e,maxRetries:t};return new i.HttpClient("actions/oidc-client",[new o.BearerCredentialHandler(OidcClient.getRequestToken())],r)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var t;return n(this,void 0,void 0,(function*(){const r=OidcClient.createHttpClient();const n=yield r.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)}));const i=(t=n.result)===null||t===void 0?void 0:t.value;if(!i){throw new Error("Response json body do not have ID Token field")}return i}))}static getIDToken(e){return n(this,void 0,void 0,(function*(){try{let t=OidcClient.getIDTokenUrl();if(e){const r=encodeURIComponent(e);t=`${t}&audience=${r}`}s.debug(`ID token url is ${t}`);const r=yield OidcClient.getCall(t);s.setSecret(r);return r}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}t.OidcClient=OidcClient},278:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toCommandProperties=t.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}t.toCommandProperties=toCommandProperties},514:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getExecOutput=t.exec=void 0;const a=r(304);const u=o(r(159));function exec(e,t,r){return s(this,void 0,void 0,(function*(){const n=u.argStringToArray(e);if(n.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const i=n[0];t=n.slice(1).concat(t||[]);const o=new u.ToolRunner(i,t,r);return o.exec()}))}t.exec=exec;function getExecOutput(e,t,r){var n,i;return s(this,void 0,void 0,(function*(){let o="";let s="";const u=new a.StringDecoder("utf8");const c=new a.StringDecoder("utf8");const l=(n=r===null||r===void 0?void 0:r.listeners)===null||n===void 0?void 0:n.stdout;const d=(i=r===null||r===void 0?void 0:r.listeners)===null||i===void 0?void 0:i.stderr;const stdErrListener=e=>{s+=c.write(e);if(d){d(e)}};const stdOutListener=e=>{o+=u.write(e);if(l){l(e)}};const f=Object.assign(Object.assign({},r===null||r===void 0?void 0:r.listeners),{stdout:stdOutListener,stderr:stdErrListener});const p=yield exec(e,t,Object.assign(Object.assign({},r),{listeners:f}));o+=u.end();s+=c.end();return{exitCode:p,stdout:o,stderr:s}}))}t.getExecOutput=getExecOutput},159:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.argStringToArray=t.ToolRunner=void 0;const a=o(r(87));const u=o(r(614));const c=o(r(129));const l=o(r(622));const d=o(r(436));const f=o(r(962));const p=r(213);const h=process.platform==="win32";class ToolRunner extends u.EventEmitter{constructor(e,t,r){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=r||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const r=this._getSpawnFileName();const n=this._getSpawnArgs(e);let i=t?"":"[command]";if(h){if(this._isCmdFile()){i+=r;for(const e of n){i+=` ${e}`}}else if(e.windowsVerbatimArguments){i+=`"${r}"`;for(const e of n){i+=` ${e}`}}else{i+=this._windowsQuoteCmdArg(r);for(const e of n){i+=` ${this._windowsQuoteCmdArg(e)}`}}}else{i+=r;for(const e of n){i+=` ${e}`}}return i}_processLineBuffer(e,t,r){try{let n=t+e.toString();let i=n.indexOf(a.EOL);while(i>-1){const e=n.substring(0,i);r(e);n=n.substring(i+a.EOL.length);i=n.indexOf(a.EOL)}return n}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(h){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(h){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const r of this.args){t+=" ";t+=e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r)}t+='"';return[t]}}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let r=false;for(const n of e){if(t.some((e=>e===n))){r=true;break}}if(!r){return e}let n='"';let i=true;for(let t=e.length;t>0;t--){n+=e[t-1];if(i&&e[t-1]==="\\"){n+="\\"}else if(e[t-1]==='"'){i=true;n+='"'}else{i=false}}n+='"';return n.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let t='"';let r=true;for(let n=e.length;n>0;n--){t+=e[n-1];if(r&&e[n-1]==="\\"){t+="\\"}else if(e[n-1]==='"'){r=true;t+="\\"}else{r=false}}t+='"';return t.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};t.outStream=e.outStream||process.stdout;t.errStream=e.errStream||process.stderr;return t}_getSpawnOptions(e,t){e=e||{};const r={};r.cwd=e.cwd;r.env=e.env;r["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){r.argv0=`"${t}"`}return r}exec(){return s(this,void 0,void 0,(function*(){if(!f.isRooted(this.toolPath)&&(this.toolPath.includes("/")||h&&this.toolPath.includes("\\"))){this.toolPath=l.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield d.which(this.toolPath,true);return new Promise(((e,t)=>s(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const r=this._cloneExecOptions(this.options);if(!r.silent&&r.outStream){r.outStream.write(this._getCommandString(r)+a.EOL)}const n=new ExecState(r,this.toolPath);n.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield f.exists(this.options.cwd))){return t(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const i=this._getSpawnFileName();const o=c.spawn(i,this._getSpawnArgs(r),this._getSpawnOptions(this.options,i));let s="";if(o.stdout){o.stdout.on("data",(e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!r.silent&&r.outStream){r.outStream.write(e)}s=this._processLineBuffer(e,s,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let u="";if(o.stderr){o.stderr.on("data",(e=>{n.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!r.silent&&r.errStream&&r.outStream){const t=r.failOnStdErr?r.errStream:r.outStream;t.write(e)}u=this._processLineBuffer(e,u,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}o.on("error",(e=>{n.processError=e.message;n.processExited=true;n.processClosed=true;n.CheckComplete()}));o.on("exit",(e=>{n.processExitCode=e;n.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);n.CheckComplete()}));o.on("close",(e=>{n.processExitCode=e;n.processExited=true;n.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);n.CheckComplete()}));n.on("done",((r,n)=>{if(s.length>0){this.emit("stdline",s)}if(u.length>0){this.emit("errline",u)}o.removeAllListeners();if(r){t(r)}else{e(n)}}));if(this.options.input){if(!o.stdin){throw new Error("child process missing stdin")}o.stdin.end(this.options.input)}}))))}))}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let r=false;let n=false;let i="";function append(e){if(n&&e!=='"'){i+="\\"}i+=e;n=false}for(let o=0;o0){t.push(i);i=""}continue}append(s)}if(i.length>0){t.push(i.trim())}return t}t.argStringToArray=argStringToArray;class ExecState extends u.EventEmitter{constructor(e,t){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!t){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=t;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=p.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(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}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const t=`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(t)}e._setResult()}}},702:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from(this.username+":"+this.password).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,t,r){return null}}t.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Bearer "+this.token}canHandleAuthentication(e){return false}handleAuthentication(e,t,r){return null}}t.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from("PAT:"+this.token).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,t,r){return null}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},925:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(605);const i=r(211);const o=r(443);let s;var a;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(a=t.HttpCodes||(t.HttpCodes={}));var u;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(u=t.Headers||(t.Headers={}));var c;(function(e){e["ApplicationJson"]="application/json"})(c=t.MediaTypes||(t.MediaTypes={}));function getProxyUrl(e){let t=o.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const l=[a.MovedPermanently,a.ResourceMoved,a.SeeOther,a.TemporaryRedirect,a.PermanentRedirect];const d=[a.BadGateway,a.ServiceUnavailable,a.GatewayTimeout];const f=["OPTIONS","GET","DELETE","HEAD"];const p=10;const h=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return new Promise((async(e,t)=>{let r=Buffer.alloc(0);this.message.on("data",(e=>{r=Buffer.concat([r,e])}));this.message.on("end",(()=>{e(r.toString())}))}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){let t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,r){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=r;if(r){if(r.ignoreSslError!=null){this._ignoreSslError=r.ignoreSslError}this._socketTimeout=r.socketTimeout;if(r.allowRedirects!=null){this._allowRedirects=r.allowRedirects}if(r.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=r.allowRedirectDowngrade}if(r.maxRedirects!=null){this._maxRedirects=Math.max(r.maxRedirects,0)}if(r.keepAlive!=null){this._keepAlive=r.keepAlive}if(r.allowRetries!=null){this._allowRetries=r.allowRetries}if(r.maxRetries!=null){this._maxRetries=r.maxRetries}}}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,r){return this.request("POST",e,t,r||{})}patch(e,t,r){return this.request("PATCH",e,t,r||{})}put(e,t,r){return this.request("PUT",e,t,r||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,r,n){return this.request(e,t,r,n)}async getJson(e,t={}){t[u.Accept]=this._getExistingOrDefaultHeader(t,u.Accept,c.ApplicationJson);let r=await this.get(e,t);return this._processResponse(r,this.requestOptions)}async postJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[u.Accept]=this._getExistingOrDefaultHeader(r,u.Accept,c.ApplicationJson);r[u.ContentType]=this._getExistingOrDefaultHeader(r,u.ContentType,c.ApplicationJson);let i=await this.post(e,n,r);return this._processResponse(i,this.requestOptions)}async putJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[u.Accept]=this._getExistingOrDefaultHeader(r,u.Accept,c.ApplicationJson);r[u.ContentType]=this._getExistingOrDefaultHeader(r,u.ContentType,c.ApplicationJson);let i=await this.put(e,n,r);return this._processResponse(i,this.requestOptions)}async patchJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[u.Accept]=this._getExistingOrDefaultHeader(r,u.Accept,c.ApplicationJson);r[u.ContentType]=this._getExistingOrDefaultHeader(r,u.ContentType,c.ApplicationJson);let i=await this.patch(e,n,r);return this._processResponse(i,this.requestOptions)}async request(e,t,r,n){if(this._disposed){throw new Error("Client has already been disposed.")}let i=new URL(t);let o=this._prepareRequest(e,i,n);let s=this._allowRetries&&f.indexOf(e)!=-1?this._maxRetries+1:1;let u=0;let c;while(u0){const s=c.message.headers["location"];if(!s){break}let a=new URL(s);if(i.protocol=="https:"&&i.protocol!=a.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}await c.readBody();if(a.hostname!==i.hostname){for(let e in n){if(e.toLowerCase()==="authorization"){delete n[e]}}}o=this._prepareRequest(e,a,n);c=await this.requestRaw(o,r);t--}if(d.indexOf(c.message.statusCode)==-1){return c}u+=1;if(u{let callbackForResult=function(e,t){if(e){n(e)}r(t)};this.requestRawWithCallback(e,t,callbackForResult)}))}requestRawWithCallback(e,t,r){let n;if(typeof t==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let i=false;let handleResult=(e,t)=>{if(!i){i=true;r(e,t)}};let o=e.httpModule.request(e.options,(e=>{let t=new HttpClientResponse(e);handleResult(null,t)}));o.on("socket",(e=>{n=e}));o.setTimeout(this._socketTimeout||3*6e4,(()=>{if(n){n.end()}handleResult(new Error("Request timeout: "+e.options.path),null)}));o.on("error",(function(e){handleResult(e,null)}));if(t&&typeof t==="string"){o.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){o.end()}));t.pipe(o)}else{o.end()}}getAgent(e){let t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,r){const o={};o.parsedUrl=t;const s=o.parsedUrl.protocol==="https:";o.httpModule=s?i:n;const a=s?443:80;o.options={};o.options.host=o.parsedUrl.hostname;o.options.port=o.parsedUrl.port?parseInt(o.parsedUrl.port):a;o.options.path=(o.parsedUrl.pathname||"")+(o.parsedUrl.search||"");o.options.method=e;o.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){o.options.headers["user-agent"]=this.userAgent}o.options.agent=this._getAgent(o.parsedUrl);if(this.handlers){this.handlers.forEach((e=>{e.prepareRequest(o.options)}))}return o}_mergeHeaders(e){const lowercaseKeys=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,r){const lowercaseKeys=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{});let n;if(this.requestOptions&&this.requestOptions.headers){n=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||n||r}_getAgent(e){let t;let a=o.getProxyUrl(e);let u=a&&a.hostname;if(this._keepAlive&&u){t=this._proxyAgent}if(this._keepAlive&&!u){t=this._agent}if(!!t){return t}const c=e.protocol==="https:";let l=100;if(!!this.requestOptions){l=this.requestOptions.maxSockets||n.globalAgent.maxSockets}if(u){if(!s){s=r(294)}const e={maxSockets:l,keepAlive:this._keepAlive,proxy:{...(a.username||a.password)&&{proxyAuth:`${a.username}:${a.password}`},host:a.hostname,port:a.port}};let n;const i=a.protocol==="https:";if(c){n=i?s.httpsOverHttps:s.httpsOverHttp}else{n=i?s.httpOverHttps:s.httpOverHttp}t=n(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:l};t=c?new i.Agent(e):new n.Agent(e);this._agent=t}if(!t){t=c?i.globalAgent:n.globalAgent}if(c&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){e=Math.min(p,e);const t=h*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}static dateTimeDeserializer(e,t){if(typeof t==="string"){let e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}async _processResponse(e,t){return new Promise((async(r,n)=>{const i=e.message.statusCode;const o={statusCode:i,result:null,headers:{}};if(i==a.NotFound){r(o)}let s;let u;try{u=await e.readBody();if(u&&u.length>0){if(t&&t.deserializeDates){s=JSON.parse(u,HttpClient.dateTimeDeserializer)}else{s=JSON.parse(u)}o.result=s}o.headers=e.message.headers}catch(e){}if(i>299){let e;if(s&&s.message){e=s.message}else if(u&&u.length>0){e=u}else{e="Failed request: ("+i+")"}let t=new HttpClientError(e,i);t.result=o.result;n(t)}else{r(o)}}))}}t.HttpClient=HttpClient},443:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function getProxyUrl(e){let t=e.protocol==="https:";let r;if(checkBypass(e)){return r}let n;if(t){n=process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{n=process.env["http_proxy"]||process.env["HTTP_PROXY"]}if(n){r=new URL(n)}return r}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}let t=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!t){return false}let r;if(e.port){r=Number(e.port)}else if(e.protocol==="http:"){r=80}else if(e.protocol==="https:"){r=443}let n=[e.hostname.toUpperCase()];if(typeof r==="number"){n.push(`${n[0]}:${r}`)}for(let e of t.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(n.some((t=>t===e))){return true}}return false}t.checkBypass=checkBypass},962:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var a;Object.defineProperty(t,"__esModule",{value:true});t.getCmdPath=t.tryGetExecutablePath=t.isRooted=t.isDirectory=t.exists=t.IS_WINDOWS=t.unlink=t.symlink=t.stat=t.rmdir=t.rename=t.readlink=t.readdir=t.mkdir=t.lstat=t.copyFile=t.chmod=void 0;const u=o(r(747));const c=o(r(622));a=u.promises,t.chmod=a.chmod,t.copyFile=a.copyFile,t.lstat=a.lstat,t.mkdir=a.mkdir,t.readdir=a.readdir,t.readlink=a.readlink,t.rename=a.rename,t.rmdir=a.rmdir,t.stat=a.stat,t.symlink=a.symlink,t.unlink=a.unlink;t.IS_WINDOWS=process.platform==="win32";function exists(e){return s(this,void 0,void 0,(function*(){try{yield t.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}t.exists=exists;function isDirectory(e,r=false){return s(this,void 0,void 0,(function*(){const n=r?yield t.stat(e):yield t.lstat(e);return n.isDirectory()}))}t.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(t.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.isRooted=isRooted;function tryGetExecutablePath(e,r){return s(this,void 0,void 0,(function*(){let n=undefined;try{n=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(t.IS_WINDOWS){const t=c.extname(e).toUpperCase();if(r.some((e=>e.toUpperCase()===t))){return e}}else{if(isUnixExecutable(n)){return e}}}const i=e;for(const o of r){e=i+o;n=undefined;try{n=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(t.IS_WINDOWS){try{const r=c.dirname(e);const n=c.basename(e).toUpperCase();for(const i of yield t.readdir(r)){if(n===i.toUpperCase()){e=c.join(r,i);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(n)){return e}}}}return""}))}t.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(t.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}function getCmdPath(){var e;return(e=process.env["COMSPEC"])!==null&&e!==void 0?e:`cmd.exe`}t.getCmdPath=getCmdPath},436:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.findInPath=t.which=t.mkdirP=t.rmRF=t.mv=t.cp=void 0;const a=r(357);const u=o(r(129));const c=o(r(622));const l=r(669);const d=o(r(962));const f=l.promisify(u.exec);const p=l.promisify(u.execFile);function cp(e,t,r={}){return s(this,void 0,void 0,(function*(){const{force:n,recursive:i,copySourceDirectory:o}=readCopyOptions(r);const s=(yield d.exists(t))?yield d.stat(t):null;if(s&&s.isFile()&&!n){return}const a=s&&s.isDirectory()&&o?c.join(t,c.basename(e)):t;if(!(yield d.exists(e))){throw new Error(`no such file or directory: ${e}`)}const u=yield d.stat(e);if(u.isDirectory()){if(!i){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,a,0,n)}}else{if(c.relative(e,a)===""){throw new Error(`'${a}' and '${e}' are the same file`)}yield copyFile(e,a,n)}}))}t.cp=cp;function mv(e,t,r={}){return s(this,void 0,void 0,(function*(){if(yield d.exists(t)){let n=true;if(yield d.isDirectory(t)){t=c.join(t,c.basename(e));n=yield d.exists(t)}if(n){if(r.force==null||r.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(c.dirname(t));yield d.rename(e,t)}))}t.mv=mv;function rmRF(e){return s(this,void 0,void 0,(function*(){if(d.IS_WINDOWS){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}try{const t=d.getCmdPath();if(yield d.isDirectory(e,true)){yield f(`${t} /s /c "rd /s /q "%inputPath%""`,{env:{inputPath:e}})}else{yield f(`${t} /s /c "del /f /a "%inputPath%""`,{env:{inputPath:e}})}}catch(e){if(e.code!=="ENOENT")throw e}try{yield d.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let t=false;try{t=yield d.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(t){yield p(`rm`,[`-rf`,`${e}`])}else{yield d.unlink(e)}}}))}t.rmRF=rmRF;function mkdirP(e){return s(this,void 0,void 0,(function*(){a.ok(e,"a path argument must be provided");yield d.mkdir(e,{recursive:true})}))}t.mkdirP=mkdirP;function which(e,t){return s(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(t){const t=yield which(e,false);if(!t){if(d.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. 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.`)}else{throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}return t}const r=yield findInPath(e);if(r&&r.length>0){return r[0]}return""}))}t.which=which;function findInPath(e){return s(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const t=[];if(d.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(c.delimiter)){if(e){t.push(e)}}}if(d.isRooted(e)){const r=yield d.tryGetExecutablePath(e,t);if(r){return[r]}return[]}if(e.includes(c.sep)){return[]}const r=[];if(process.env.PATH){for(const e of process.env.PATH.split(c.delimiter)){if(e){r.push(e)}}}const n=[];for(const i of r){const r=yield d.tryGetExecutablePath(c.join(i,e),t);if(r){n.push(r)}}return n}))}t.findInPath=findInPath;function readCopyOptions(e){const t=e.force==null?true:e.force;const r=Boolean(e.recursive);const n=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:t,recursive:r,copySourceDirectory:n}}function cpDirRecursive(e,t,r,n){return s(this,void 0,void 0,(function*(){if(r>=255)return;r++;yield mkdirP(t);const i=yield d.readdir(e);for(const o of i){const i=`${e}/${o}`;const s=`${t}/${o}`;const a=yield d.lstat(i);if(a.isDirectory()){yield cpDirRecursive(i,s,r,n)}else{yield copyFile(i,s,n)}}yield d.chmod(t,(yield d.stat(e)).mode)}))}function copyFile(e,t,r){return s(this,void 0,void 0,(function*(){if((yield d.lstat(e)).isSymbolicLink()){try{yield d.lstat(t);yield d.unlink(t)}catch(e){if(e.code==="EPERM"){yield d.chmod(t,"0666");yield d.unlink(t)}}const r=yield d.readlink(e);yield d.symlink(r,t,d.IS_WINDOWS?"junction":null)}else if(!(yield d.exists(t))||r){yield d.copyFile(e,t)}}))}},421:e=>{var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],r=0;r{(function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(e,t){return e<>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number){return r.rotl(e,8)&16711935|r.rotl(e,24)&4278255360}for(var t=0;t0;e--)t.push(Math.floor(Math.random()*256));return t},bytesToWords:function(e){for(var t=[],r=0,n=0;r>>5]|=e[r]<<24-n%32;return t},wordsToBytes:function(e){for(var t=[],r=0;r>>5]>>>24-r%32&255);return t},bytesToHex:function(e){for(var t=[],r=0;r>>4).toString(16));t.push((e[r]&15).toString(16))}return t.join("")},hexToBytes:function(e){for(var t=[],r=0;r>>6*(3-o)&63));else r.push("=")}return r.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var r=[],n=0,i=0;n>>6-i*2)}return r}};e.exports=r})()},625:e=>{ /*! * Determine if an object is a Buffer * diff --git a/dist/generate_offline_dependencies/post/index.js b/dist/generate_offline_dependencies/post/index.js index 4cd3619..0e9e2fa 100644 --- a/dist/generate_offline_dependencies/post/index.js +++ b/dist/generate_offline_dependencies/post/index.js @@ -1,4 +1,4 @@ -(()=>{var e={5008:(e,t,r)=>{const n=r(2186);const i=r(1514);const o=r(5622);const s=r(1711);const a=process.env["CI"];global.workspaceDir=process.env["GITHUB_WORKSPACE"];global.conanCachePath=o.join(workspaceDir,".conan");function log(e){if(a){n.info(e)}else{console.log(e)}}function error(e){if(a){n.error(e)}else{console.error(e)}}async function execWithLog(e,arguments){if(a){return i.exec(e,arguments)}else{return i.exec(e,arguments,{listeners:{stdout:e=>{log(e.toString())},stderr:e=>{error(e.toString())}}})}}async function getExecOutput(e,arguments){if(a){return i.getExecOutput(e,arguments)}else{return i.getExecOutput(e,arguments,{listeners:{stdout:e=>{log(e.toString())},stderr:e=>{error(e.toString())}}})}}async function awaitAll(e,t){return await Promise.all(e.map((async e=>t(e))))}async function getMD5(e){const t=await fs.promises.readFileSync(e);return s(t)}function getDateString(){const e=new Date;return[e.getFullYear(),("0"+(e.getMonth()+1)).slice(-2),("0"+e.getDate()).slice(-2)].join("")}const sleep=e=>new Promise((t=>setTimeout(t,e)));process.on("unhandledRejection",((e,t)=>{error(e);n.setFailed(err);process.exit(1)})).on("uncaughtException",(e=>{error(e);n.setFailed(e);process.exit(1)}));e.exports={log:log,error:error,execWithLog:execWithLog,getExecOutput:getExecOutput,sleep:sleep,awaitAll:awaitAll,getMD5:getMD5,getDateString:getDateString}},2605:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(8802);function create(){return n.DefaultArtifactClient.create()}t.create=create},8802:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=i(r(2186));const s=r(183);const a=r(4354);const c=r(6327);const l=r(8538);const u=r(5686);const d=r(2222);const p=r(5622);class DefaultArtifactClient{static create(){return new DefaultArtifactClient}uploadArtifact(e,t,r,i){return n(this,void 0,void 0,(function*(){c.checkArtifactName(e);const n=s.getUploadSpecification(e,r,t);const l={artifactName:e,artifactItems:[],size:0,failedItems:[]};const u=new a.UploadHttpClient;if(n.length===0){o.warning(`No files found that can be uploaded`)}else{const t=yield u.createArtifactInFileContainer(e,i);if(!t.fileContainerResourceUrl){o.debug(t.toString());throw new Error("No URL provided by the Artifact Service to upload an artifact to")}o.debug(`Upload Resource URL: ${t.fileContainerResourceUrl}`);const r=yield u.uploadArtifactToFileContainer(t.fileContainerResourceUrl,n,i);yield u.patchArtifactSize(r.totalSize,e);o.info(`Finished uploading artifact ${e}. Reported size is ${r.uploadSize} bytes. There were ${r.failedItems.length} items that failed to upload`);l.artifactItems=n.map((e=>e.absoluteFilePath));l.size=r.uploadSize;l.failedItems=r.failedItems}return l}))}downloadArtifact(e,t,r){return n(this,void 0,void 0,(function*(){const n=new l.DownloadHttpClient;const i=yield n.listArtifacts();if(i.count===0){throw new Error(`Unable to find any artifacts for the associated workflow`)}const s=i.value.find((t=>t.name===e));if(!s){throw new Error(`Unable to find an artifact with the name: ${e}`)}const a=yield n.getContainerItems(s.name,s.fileContainerResourceUrl);if(!t){t=d.getWorkSpaceDirectory()}t=p.normalize(t);t=p.resolve(t);const h=u.getDownloadSpecification(e,a.value,t,(r===null||r===void 0?void 0:r.createArtifactFolder)||false);if(h.filesToDownload.length===0){o.info(`No downloadable files were found for the artifact: ${s.name}`)}else{yield c.createDirectoriesForArtifact(h.directoryStructure);o.info("Directory structure has been setup for the artifact");yield c.createEmptyFilesForArtifact(h.emptyFilesToCreate);yield n.downloadSingleArtifact(h.filesToDownload)}return{artifactName:e,downloadPath:h.rootDownloadLocation}}))}downloadAllArtifacts(e){return n(this,void 0,void 0,(function*(){const t=new l.DownloadHttpClient;const r=[];const n=yield t.listArtifacts();if(n.count===0){o.info("Unable to find any artifacts for the associated workflow");return r}if(!e){e=d.getWorkSpaceDirectory()}e=p.normalize(e);e=p.resolve(e);let i=0;while(i{"use strict";Object.defineProperty(t,"__esModule",{value:true});function getUploadFileConcurrency(){return 2}t.getUploadFileConcurrency=getUploadFileConcurrency;function getUploadChunkSize(){return 8*1024*1024}t.getUploadChunkSize=getUploadChunkSize;function getRetryLimit(){return 5}t.getRetryLimit=getRetryLimit;function getRetryMultiplier(){return 1.5}t.getRetryMultiplier=getRetryMultiplier;function getInitialRetryIntervalInMilliseconds(){return 3e3}t.getInitialRetryIntervalInMilliseconds=getInitialRetryIntervalInMilliseconds;function getDownloadFileConcurrency(){return 2}t.getDownloadFileConcurrency=getDownloadFileConcurrency;function getRuntimeToken(){const e=process.env["ACTIONS_RUNTIME_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_RUNTIME_TOKEN env variable")}return e}t.getRuntimeToken=getRuntimeToken;function getRuntimeUrl(){const e=process.env["ACTIONS_RUNTIME_URL"];if(!e){throw new Error("Unable to get ACTIONS_RUNTIME_URL env variable")}return e}t.getRuntimeUrl=getRuntimeUrl;function getWorkFlowRunId(){const e=process.env["GITHUB_RUN_ID"];if(!e){throw new Error("Unable to get GITHUB_RUN_ID env variable")}return e}t.getWorkFlowRunId=getWorkFlowRunId;function getWorkSpaceDirectory(){const e=process.env["GITHUB_WORKSPACE"];if(!e){throw new Error("Unable to get GITHUB_WORKSPACE env variable")}return e}t.getWorkSpaceDirectory=getWorkSpaceDirectory;function getRetentionDays(){return process.env["GITHUB_RETENTION_DAYS"]}t.getRetentionDays=getRetentionDays},8538:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=i(r(5747));const s=i(r(2186));const a=i(r(8761));const c=r(6327);const l=r(8835);const u=r(9081);const d=r(630);const p=r(6527);const h=r(2222);const m=r(755);class DownloadHttpClient{constructor(){this.downloadHttpManager=new p.HttpManager(h.getDownloadFileConcurrency(),"@actions/artifact-download");this.statusReporter=new u.StatusReporter(1e3)}listArtifacts(){return n(this,void 0,void 0,(function*(){const e=c.getArtifactUrl();const t=this.downloadHttpManager.getClient(0);const r=c.getDownloadHeaders("application/json");const i=yield m.retryHttpClientRequest("List Artifacts",(()=>n(this,void 0,void 0,(function*(){return t.get(e,r)}))));const o=yield i.readBody();return JSON.parse(o)}))}getContainerItems(e,t){return n(this,void 0,void 0,(function*(){const r=new l.URL(t);r.searchParams.append("itemPath",e);const i=this.downloadHttpManager.getClient(0);const o=c.getDownloadHeaders("application/json");const s=yield m.retryHttpClientRequest("Get Container Items",(()=>n(this,void 0,void 0,(function*(){return i.get(r.toString(),o)}))));const a=yield s.readBody();return JSON.parse(a)}))}downloadSingleArtifact(e){return n(this,void 0,void 0,(function*(){const t=h.getDownloadFileConcurrency();s.debug(`Download file concurrency is set to ${t}`);const r=[...new Array(t).keys()];let i=0;let o=0;s.info(`Total number of files that will be downloaded: ${e.length}`);this.statusReporter.setTotalNumberOfFilesToProcess(e.length);this.statusReporter.start();yield Promise.all(r.map((t=>n(this,void 0,void 0,(function*(){while(i{throw new Error(`Unable to download the artifact: ${e}`)})).finally((()=>{this.statusReporter.stop();this.downloadHttpManager.disposeAndReplaceAllClients()}))}))}downloadIndividualFile(e,t,r){return n(this,void 0,void 0,(function*(){let i=0;const a=h.getRetryLimit();let l=o.createWriteStream(r);const u=c.getDownloadHeaders("application/json",true,true);const makeDownloadRequest=()=>n(this,void 0,void 0,(function*(){const r=this.downloadHttpManager.getClient(e);return yield r.get(t,u)}));const isGzip=e=>"content-encoding"in e&&e["content-encoding"]==="gzip";const backOff=r=>n(this,void 0,void 0,(function*(){i++;if(i>a){return Promise.reject(new Error(`Retry limit has been reached. Unable to download ${t}`))}else{this.downloadHttpManager.disposeAndReplaceClient(e);if(r){s.info(`Backoff due to too many requests, retry #${i}. Waiting for ${r} milliseconds before continuing the download`);yield c.sleep(r)}else{const e=c.getExponentialRetryTimeInMilliseconds(i);s.info(`Exponential backoff for retry #${i}. Waiting for ${e} milliseconds before continuing the download`);yield c.sleep(e)}s.info(`Finished backoff for retry #${i}, continuing with download`)}}));const isAllBytesReceived=(e,t)=>{if(!e||!t||process.env["ACTIONS_ARTIFACT_SKIP_DOWNLOAD_VALIDATION"]){s.info("Skipping download validation.");return true}return parseInt(e)===t};const resetDestinationStream=e=>n(this,void 0,void 0,(function*(){l.close();yield c.rmFile(e);l=o.createWriteStream(e)}));while(i<=a){let e;try{e=yield makeDownloadRequest();if(s.isDebug()){c.displayHttpDiagnostics(e)}}catch(e){s.info("An error occurred while attempting to download a file");console.log(e);yield backOff();continue}let n=false;if(c.isSuccessStatusCode(e.message.statusCode)){try{const t=isGzip(e.message.headers);yield this.pipeResponseToFile(e,l,t);if(t||isAllBytesReceived(e.message.headers["content-length"],yield c.getFileSize(r))){return}else{n=true}}catch(e){n=true}}if(n||c.isRetryableStatusCode(e.message.statusCode)){s.info(`A ${e.message.statusCode} response code has been received while attempting to download an artifact`);resetDestinationStream(r);c.isThrottledStatusCode(e.message.statusCode)?yield backOff(c.tryGetRetryAfterValueTimeInMilliseconds(e.message.headers)):yield backOff()}else{c.displayHttpDiagnostics(e);return Promise.reject(new Error(`Unexpected http ${e.message.statusCode} during download for ${t}`))}}}))}pipeResponseToFile(e,t,r){return n(this,void 0,void 0,(function*(){yield new Promise(((n,i)=>{if(r){const r=a.createGunzip();e.message.on("error",(e=>{s.error(`An error occurred while attempting to read the response stream`);r.close();t.close();i(e)})).pipe(r).on("error",(e=>{s.error(`An error occurred while attempting to decompress the response stream`);t.close();i(e)})).pipe(t).on("close",(()=>{n()})).on("error",(e=>{s.error(`An error occurred while writing a downloaded file to ${t.path}`);i(e)}))}else{e.message.on("error",(e=>{s.error(`An error occurred while attempting to read the response stream`);t.close();i(e)})).pipe(t).on("close",(()=>{n()})).on("error",(e=>{s.error(`An error occurred while writing a downloaded file to ${t.path}`);i(e)}))}}));return}))}}t.DownloadHttpClient=DownloadHttpClient},5686:function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const i=n(r(5622));function getDownloadSpecification(e,t,r,n){const o=new Set;const s={rootDownloadLocation:n?i.join(r,e):r,directoryStructure:[],emptyFilesToCreate:[],filesToDownload:[]};for(const a of t){if(a.path.startsWith(`${e}/`)||a.path.startsWith(`${e}\\`)){const t=i.normalize(a.path);const c=i.join(r,n?t:t.replace(e,""));if(a.itemType==="file"){o.add(i.dirname(c));if(a.fileLength===0){s.emptyFilesToCreate.push(c)}else{s.filesToDownload.push({sourceLocation:a.contentLocation,targetPath:c})}}}}s.directoryStructure=Array.from(o);return s}t.getDownloadSpecification=getDownloadSpecification},6527:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(6327);class HttpManager{constructor(e,t){if(e<1){throw new Error("There must be at least one client")}this.userAgent=t;this.clients=new Array(e).fill(n.createHttpClient(t))}getClient(e){return this.clients[e]}disposeAndReplaceClient(e){this.clients[e].dispose();this.clients[e]=n.createHttpClient(this.userAgent)}disposeAndReplaceAllClients(){for(const[e]of this.clients.entries()){this.disposeAndReplaceClient(e)}}}t.HttpManager=HttpManager},755:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=r(6327);const s=i(r(2186));const a=r(2222);function retry(e,t,r,i){return n(this,void 0,void 0,(function*(){let n=undefined;let a=undefined;let c=false;let l="";let u=undefined;let d=1;while(d<=i){try{n=yield t();a=n.message.statusCode;if(o.isSuccessStatusCode(a)){return n}if(a){u=r.get(a)}c=o.isRetryableStatusCode(a);l=`Artifact service responded with ${a}`}catch(e){c=true;l=e.message}if(!c){s.info(`${e} - Error is not retryable`);if(n){o.displayHttpDiagnostics(n)}break}s.info(`${e} - Attempt ${d} of ${i} failed with error: ${l}`);yield o.sleep(o.getExponentialRetryTimeInMilliseconds(d));d++}if(n){o.displayHttpDiagnostics(n)}if(u){throw Error(`${e} failed: ${u}`)}throw Error(`${e} failed: ${l}`)}))}t.retry=retry;function retryHttpClientRequest(e,t,r=new Map,i=a.getRetryLimit()){return n(this,void 0,void 0,(function*(){return yield retry(e,t,r,i)}))}t.retryHttpClientRequest=retryHttpClientRequest},9081:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(2186);class StatusReporter{constructor(e){this.totalNumberOfFilesToProcess=0;this.processedCount=0;this.largeFiles=new Map;this.totalFileStatus=undefined;this.largeFileStatus=undefined;this.displayFrequencyInMilliseconds=e}setTotalNumberOfFilesToProcess(e){this.totalNumberOfFilesToProcess=e}start(){this.totalFileStatus=setInterval((()=>{const e=this.formatPercentage(this.processedCount,this.totalNumberOfFilesToProcess);n.info(`Total file count: ${this.totalNumberOfFilesToProcess} ---- Processed file #${this.processedCount} (${e.slice(0,e.indexOf(".")+2)}%)`)}),this.displayFrequencyInMilliseconds);this.largeFileStatus=setInterval((()=>{for(const e of Array.from(this.largeFiles.values())){n.info(e)}this.largeFiles.clear()}),1e3)}updateLargeFileStatus(e,t,r){const n=this.formatPercentage(t,r);const i=`Uploading ${e} (${n.slice(0,n.indexOf(".")+2)}%)`;this.largeFiles.set(e,i)}stop(){if(this.totalFileStatus){clearInterval(this.totalFileStatus)}if(this.largeFileStatus){clearInterval(this.largeFileStatus)}}incrementProcessedCount(){this.processedCount++}formatPercentage(e,t){return(e/t*100).toFixed(4).toString()}}t.StatusReporter=StatusReporter},606:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var i=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(t){r[t]=e[t]&&function(r){return new Promise((function(n,i){r=e[t](r),settle(n,i,r.done,r.value)}))}}function settle(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}};var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=o(r(5747));const a=o(r(8761));const c=r(1669);const l=c.promisify(s.stat);function createGZipFileOnDisk(e,t){return n(this,void 0,void 0,(function*(){return new Promise(((r,i)=>{const o=s.createReadStream(e);const c=a.createGzip();const u=s.createWriteStream(t);o.pipe(c).pipe(u);u.on("finish",(()=>n(this,void 0,void 0,(function*(){const e=(yield l(t)).size;r(e)}))));u.on("error",(e=>{console.log(e);i}))}))}))}t.createGZipFileOnDisk=createGZipFileOnDisk;function createGZipFileInBuffer(e){return n(this,void 0,void 0,(function*(){return new Promise((t=>n(this,void 0,void 0,(function*(){var r,n;const o=s.createReadStream(e);const c=a.createGzip();o.pipe(c);const l=[];try{for(var u=i(c),d;d=yield u.next(),!d.done;){const e=d.value;l.push(e)}}catch(e){r={error:e}}finally{try{if(d&&!d.done&&(n=u.return))yield n.call(u)}finally{if(r)throw r.error}}t(Buffer.concat(l))}))))}))}t.createGZipFileInBuffer=createGZipFileInBuffer},4354:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=i(r(5747));const s=i(r(2186));const a=i(r(8065));const c=i(r(2413));const l=r(6327);const u=r(2222);const d=r(1669);const p=r(8835);const h=r(630);const m=r(9081);const g=r(9925);const v=r(6527);const y=r(606);const b=r(755);const w=d.promisify(o.stat);class UploadHttpClient{constructor(){this.uploadHttpManager=new v.HttpManager(u.getUploadFileConcurrency(),"@actions/artifact-upload");this.statusReporter=new m.StatusReporter(1e4)}createArtifactInFileContainer(e,t){return n(this,void 0,void 0,(function*(){const r={Type:"actions_storage",Name:e};if(t&&t.retentionDays){const e=u.getRetentionDays();r.RetentionDays=l.getProperRetention(t.retentionDays,e)}const i=JSON.stringify(r,null,2);const o=l.getArtifactUrl();const s=this.uploadHttpManager.getClient(0);const a=l.getUploadHeaders("application/json",false);const c=new Map([[g.HttpCodes.Forbidden,"Artifact storage quota has been hit. Unable to upload any new artifacts"],[g.HttpCodes.BadRequest,`The artifact name ${e} is not valid. Request URL ${o}`]]);const d=yield b.retryHttpClientRequest("Create Artifact Container",(()=>n(this,void 0,void 0,(function*(){return s.post(o,i,a)}))),c);const p=yield d.readBody();return JSON.parse(p)}))}uploadArtifactToFileContainer(e,t,r){return n(this,void 0,void 0,(function*(){const i=u.getUploadFileConcurrency();const o=u.getUploadChunkSize();s.debug(`File Concurrency: ${i}, and Chunk Size: ${o}`);const a=[];let c=true;if(r){if(r.continueOnError===false){c=false}}for(const r of t){const t=new p.URL(e);t.searchParams.append("itemPath",r.uploadFilePath);a.push({file:r.absoluteFilePath,resourceUrl:t.toString(),maxChunkSize:o,continueOnError:c})}const l=[...new Array(i).keys()];const d=[];let m=0;let g=0;let v=0;let y=0;let b=false;this.statusReporter.setTotalNumberOfFilesToProcess(t.length);this.statusReporter.start();yield Promise.all(l.map((e=>n(this,void 0,void 0,(function*(){while(mo.createReadStream(t.file);d=false;u=r}else{a=()=>{const e=new c.PassThrough;e.end(n);return e};u=n.byteLength}const p=yield this.uploadChunk(e,t.resourceUrl,a,0,u-1,u,d,r);if(!p){i=false;l+=u;s.warning(`Aborting upload for ${t.file} due to failure`)}return{isSuccess:i,successfulUploadSize:u-l,totalSize:r}}else{const c=yield a.file();u=yield y.createGZipFileOnDisk(t.file,c.path);let p=c.path;if(r104857600){this.statusReporter.updateLargeFileStatus(t.file,n,u)}const c=n;const m=n+a-1;n+=t.maxChunkSize;if(h){l+=a;continue}const g=yield this.uploadChunk(e,t.resourceUrl,(()=>o.createReadStream(p,{start:c,end:m,autoClose:false})),c,m,u,d,r);if(!g){i=false;l+=a;s.warning(`Aborting upload for ${t.file} due to failure`);h=true}}yield c.cleanup();return{isSuccess:i,successfulUploadSize:u-l,totalSize:r}}}))}uploadChunk(e,t,r,i,o,a,c,d){return n(this,void 0,void 0,(function*(){const p=l.getUploadHeaders("application/octet-stream",true,c,d,o-i+1,l.getContentRange(i,o,a));const uploadChunkRequest=()=>n(this,void 0,void 0,(function*(){const n=this.uploadHttpManager.getClient(e);return yield n.sendStream("PUT",t,r(),p)}));let h=0;const m=u.getRetryLimit();const incrementAndCheckRetryLimit=e=>{h++;if(h>m){if(e){l.displayHttpDiagnostics(e)}s.info(`Retry limit has been reached for chunk at offset ${i} to ${t}`);return true}return false};const backOff=t=>n(this,void 0,void 0,(function*(){this.uploadHttpManager.disposeAndReplaceClient(e);if(t){s.info(`Backoff due to too many requests, retry #${h}. Waiting for ${t} milliseconds before continuing the upload`);yield l.sleep(t)}else{const e=l.getExponentialRetryTimeInMilliseconds(h);s.info(`Exponential backoff for retry #${h}. Waiting for ${e} milliseconds before continuing the upload at offset ${i}`);yield l.sleep(e)}s.info(`Finished backoff for retry #${h}, continuing with upload`);return}));while(h<=m){let r;try{r=yield uploadChunkRequest()}catch(t){s.info(`An error has been caught http-client index ${e}, retrying the upload`);console.log(t);if(incrementAndCheckRetryLimit()){return false}yield backOff();continue}yield r.readBody();if(l.isSuccessStatusCode(r.message.statusCode)){return true}else if(l.isRetryableStatusCode(r.message.statusCode)){s.info(`A ${r.message.statusCode} status code has been received, will attempt to retry the upload`);if(incrementAndCheckRetryLimit(r)){return false}l.isThrottledStatusCode(r.message.statusCode)?yield backOff(l.tryGetRetryAfterValueTimeInMilliseconds(r.message.headers)):yield backOff()}else{s.error(`Unexpected response. Unable to upload chunk to ${t}`);l.displayHttpDiagnostics(r);return false}}return false}))}patchArtifactSize(e,t){return n(this,void 0,void 0,(function*(){const r=new p.URL(l.getArtifactUrl());r.searchParams.append("artifactName",t);const i={Size:e};const o=JSON.stringify(i,null,2);s.debug(`URL is ${r.toString()}`);const a=this.uploadHttpManager.getClient(0);const c=l.getUploadHeaders("application/json",false);const u=new Map([[g.HttpCodes.NotFound,`An Artifact with the name ${t} was not found`]]);const d=yield b.retryHttpClientRequest("Finalize artifact upload",(()=>n(this,void 0,void 0,(function*(){return a.patch(r.toString(),o,c)}))),u);yield d.readBody();s.debug(`Artifact ${t} has been successfully uploaded, total size in bytes: ${e}`)}))}}t.UploadHttpClient=UploadHttpClient},183:function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const i=n(r(5747));const o=r(2186);const s=r(5622);const a=r(6327);function getUploadSpecification(e,t,r){a.checkArtifactName(e);const n=[];if(!i.existsSync(t)){throw new Error(`Provided rootDirectory ${t} does not exist`)}if(!i.lstatSync(t).isDirectory()){throw new Error(`Provided rootDirectory ${t} is not a valid directory`)}t=s.normalize(t);t=s.resolve(t);for(let c of r){if(!i.existsSync(c)){throw new Error(`File ${c} does not exist`)}if(!i.lstatSync(c).isDirectory()){c=s.normalize(c);c=s.resolve(c);if(!c.startsWith(t)){throw new Error(`The rootDirectory: ${t} is not a parent directory of the file: ${c}`)}const r=c.replace(t,"");a.checkArtifactFilePath(r);n.push({absoluteFilePath:c,uploadFilePath:s.join(e,r)})}else{o.debug(`Removing ${c} from rawSearchResults because it is a directory`)}}return n}t.getUploadSpecification=getUploadSpecification},6327:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});const i=r(2186);const o=r(5747);const s=r(9925);const a=r(3702);const c=r(2222);function getExponentialRetryTimeInMilliseconds(e){if(e<0){throw new Error("RetryCount should not be negative")}else if(e===0){return c.getInitialRetryIntervalInMilliseconds()}const t=c.getInitialRetryIntervalInMilliseconds()*c.getRetryMultiplier()*e;const r=t*c.getRetryMultiplier();return Math.random()*(r-t)+t}t.getExponentialRetryTimeInMilliseconds=getExponentialRetryTimeInMilliseconds;function parseEnvNumber(e){const t=Number(process.env[e]);if(Number.isNaN(t)||t<0){return undefined}return t}t.parseEnvNumber=parseEnvNumber;function getApiVersion(){return"6.0-preview"}t.getApiVersion=getApiVersion;function isSuccessStatusCode(e){if(!e){return false}return e>=200&&e<300}t.isSuccessStatusCode=isSuccessStatusCode;function isForbiddenStatusCode(e){if(!e){return false}return e===s.HttpCodes.Forbidden}t.isForbiddenStatusCode=isForbiddenStatusCode;function isRetryableStatusCode(e){if(!e){return false}const t=[s.HttpCodes.BadGateway,s.HttpCodes.GatewayTimeout,s.HttpCodes.InternalServerError,s.HttpCodes.ServiceUnavailable,s.HttpCodes.TooManyRequests,413];return t.includes(e)}t.isRetryableStatusCode=isRetryableStatusCode;function isThrottledStatusCode(e){if(!e){return false}return e===s.HttpCodes.TooManyRequests}t.isThrottledStatusCode=isThrottledStatusCode;function tryGetRetryAfterValueTimeInMilliseconds(e){if(e["retry-after"]){const t=Number(e["retry-after"]);if(!isNaN(t)){i.info(`Retry-After header is present with a value of ${t}`);return t*1e3}i.info(`Returned retry-after header value: ${t} is non-numeric and cannot be used`);return undefined}i.info(`No retry-after header was found. Dumping all headers for diagnostic purposes`);console.log(e);return undefined}t.tryGetRetryAfterValueTimeInMilliseconds=tryGetRetryAfterValueTimeInMilliseconds;function getContentRange(e,t,r){return`bytes ${e}-${t}/${r}`}t.getContentRange=getContentRange;function getDownloadHeaders(e,t,r){const n={};if(e){n["Content-Type"]=e}if(t){n["Connection"]="Keep-Alive";n["Keep-Alive"]="10"}if(r){n["Accept-Encoding"]="gzip";n["Accept"]=`application/octet-stream;api-version=${getApiVersion()}`}else{n["Accept"]=`application/json;api-version=${getApiVersion()}`}return n}t.getDownloadHeaders=getDownloadHeaders;function getUploadHeaders(e,t,r,n,i,o){const s={};s["Accept"]=`application/json;api-version=${getApiVersion()}`;if(e){s["Content-Type"]=e}if(t){s["Connection"]="Keep-Alive";s["Keep-Alive"]="10"}if(r){s["Content-Encoding"]="gzip";s["x-tfs-filelength"]=n}if(i){s["Content-Length"]=i}if(o){s["Content-Range"]=o}return s}t.getUploadHeaders=getUploadHeaders;function createHttpClient(e){return new s.HttpClient(e,[new a.BearerCredentialHandler(c.getRuntimeToken())])}t.createHttpClient=createHttpClient;function getArtifactUrl(){const e=`${c.getRuntimeUrl()}_apis/pipelines/workflows/${c.getWorkFlowRunId()}/artifacts?api-version=${getApiVersion()}`;i.debug(`Artifact Url: ${e}`);return e}t.getArtifactUrl=getArtifactUrl;function displayHttpDiagnostics(e){i.info(`##### Begin Diagnostic HTTP information #####\nStatus Code: ${e.message.statusCode}\nStatus Message: ${e.message.statusMessage}\nHeader Information: ${JSON.stringify(e.message.headers,undefined,2)}\n###### End Diagnostic HTTP information ######`)}t.displayHttpDiagnostics=displayHttpDiagnostics;const l=['"',":","<",">","|","*","?"];const u=[...l,"\\","/"];function checkArtifactName(e){if(!e){throw new Error(`Artifact name: ${e}, is incorrectly provided`)}for(const t of u){if(e.includes(t)){throw new Error(`Artifact name is not valid: ${e}. Contains character: "${t}". Invalid artifact name characters include: ${u.toString()}.`)}}}t.checkArtifactName=checkArtifactName;function checkArtifactFilePath(e){if(!e){throw new Error(`Artifact path: ${e}, is incorrectly provided`)}for(const t of l){if(e.includes(t)){throw new Error(`Artifact path is not valid: ${e}. Contains character: "${t}". Invalid characters include: ${l.toString()}.`)}}}t.checkArtifactFilePath=checkArtifactFilePath;function createDirectoriesForArtifact(e){return n(this,void 0,void 0,(function*(){for(const t of e){yield o.promises.mkdir(t,{recursive:true})}}))}t.createDirectoriesForArtifact=createDirectoriesForArtifact;function createEmptyFilesForArtifact(e){return n(this,void 0,void 0,(function*(){for(const t of e){yield(yield o.promises.open(t,"w")).close()}}))}t.createEmptyFilesForArtifact=createEmptyFilesForArtifact;function getFileSize(e){return n(this,void 0,void 0,(function*(){const t=yield o.promises.stat(e);i.debug(`${e} size:(${t.size}) blksize:(${t.blksize}) blocks:(${t.blocks})`);return t.size}))}t.getFileSize=getFileSize;function rmFile(e){return n(this,void 0,void 0,(function*(){yield o.promises.unlink(e)}))}t.rmFile=rmFile;function getProperRetention(e,t){if(e<0){throw new Error("Invalid retention, minimum value is 1.")}let r=e;if(t){const e=parseInt(t);if(!isNaN(e)&&esetTimeout(t,e)))}))}t.sleep=sleep},7351:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const s=o(r(2087));const a=r(5278);function issueCommand(e,t,r){const n=new Command(e,t,r);process.stdout.write(n.toString()+s.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const c="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=c+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const n=this.properties[r];if(n){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(n)}`}}}}e+=`${c}${escapeData(this.message)}`;return e}}function escapeData(e){return a.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return a.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getIDToken=t.getState=t.saveState=t.group=t.endGroup=t.startGroup=t.info=t.notice=t.warning=t.error=t.debug=t.isDebug=t.setFailed=t.setCommandEcho=t.setOutput=t.getBooleanInput=t.getMultilineInput=t.getInput=t.addPath=t.setSecret=t.exportVariable=t.ExitCode=void 0;const a=r(7351);const c=r(717);const l=r(5278);const u=o(r(2087));const d=o(r(5622));const p=r(8041);var h;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(h=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const r=l.toCommandValue(t);process.env[e]=r;const n=process.env["GITHUB_ENV"]||"";if(n){const t="_GitHubActionsFileCommandDelimeter_";const n=`${e}<<${t}${u.EOL}${r}${u.EOL}${t}`;c.issueCommand("ENV",n)}else{a.issueCommand("set-env",{name:e},r)}}t.exportVariable=exportVariable;function setSecret(e){a.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){c.issueCommand("PATH",e)}else{a.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${d.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r){throw new Error(`Input required and not supplied: ${e}`)}if(t&&t.trimWhitespace===false){return r}return r.trim()}t.getInput=getInput;function getMultilineInput(e,t){const r=getInput(e,t).split("\n").filter((e=>e!==""));return r}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const r=["true","True","TRUE"];const n=["false","False","FALSE"];const i=getInput(e,t);if(r.includes(i))return true;if(n.includes(i))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}t.getBooleanInput=getBooleanInput;function setOutput(e,t){process.stdout.write(u.EOL);a.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){a.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=h.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){a.issueCommand("debug",{},e)}t.debug=debug;function error(e,t={}){a.issueCommand("error",l.toCommandProperties(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){a.issueCommand("warning",l.toCommandProperties(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){a.issueCommand("notice",l.toCommandProperties(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+u.EOL)}t.info=info;function startGroup(e){a.issue("group",e)}t.startGroup=startGroup;function endGroup(){a.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return s(this,void 0,void 0,(function*(){startGroup(e);let r;try{r=yield t()}finally{endGroup()}return r}))}t.group=group;function saveState(e,t){a.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState;function getIDToken(e){return s(this,void 0,void 0,(function*(){return yield p.OidcClient.getIDToken(e)}))}t.getIDToken=getIDToken},717:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issueCommand=void 0;const s=o(r(5747));const a=o(r(2087));const c=r(5278);function issueCommand(e,t){const r=process.env[`GITHUB_${e}`];if(!r){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!s.existsSync(r)){throw new Error(`Missing file at path: ${r}`)}s.appendFileSync(r,`${c.toCommandValue(t)}${a.EOL}`,{encoding:"utf8"})}t.issueCommand=issueCommand},8041:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.OidcClient=void 0;const i=r(9925);const o=r(3702);const s=r(2186);class OidcClient{static createHttpClient(e=true,t=10){const r={allowRetries:e,maxRetries:t};return new i.HttpClient("actions/oidc-client",[new o.BearerCredentialHandler(OidcClient.getRequestToken())],r)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var t;return n(this,void 0,void 0,(function*(){const r=OidcClient.createHttpClient();const n=yield r.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)}));const i=(t=n.result)===null||t===void 0?void 0:t.value;if(!i){throw new Error("Response json body do not have ID Token field")}return i}))}static getIDToken(e){return n(this,void 0,void 0,(function*(){try{let t=OidcClient.getIDTokenUrl();if(e){const r=encodeURIComponent(e);t=`${t}&audience=${r}`}s.debug(`ID token url is ${t}`);const r=yield OidcClient.getCall(t);s.setSecret(r);return r}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}t.OidcClient=OidcClient},5278:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toCommandProperties=t.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}t.toCommandProperties=toCommandProperties},1514:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getExecOutput=t.exec=void 0;const a=r(4304);const c=o(r(8159));function exec(e,t,r){return s(this,void 0,void 0,(function*(){const n=c.argStringToArray(e);if(n.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const i=n[0];t=n.slice(1).concat(t||[]);const o=new c.ToolRunner(i,t,r);return o.exec()}))}t.exec=exec;function getExecOutput(e,t,r){var n,i;return s(this,void 0,void 0,(function*(){let o="";let s="";const c=new a.StringDecoder("utf8");const l=new a.StringDecoder("utf8");const u=(n=r===null||r===void 0?void 0:r.listeners)===null||n===void 0?void 0:n.stdout;const d=(i=r===null||r===void 0?void 0:r.listeners)===null||i===void 0?void 0:i.stderr;const stdErrListener=e=>{s+=l.write(e);if(d){d(e)}};const stdOutListener=e=>{o+=c.write(e);if(u){u(e)}};const p=Object.assign(Object.assign({},r===null||r===void 0?void 0:r.listeners),{stdout:stdOutListener,stderr:stdErrListener});const h=yield exec(e,t,Object.assign(Object.assign({},r),{listeners:p}));o+=c.end();s+=l.end();return{exitCode:h,stdout:o,stderr:s}}))}t.getExecOutput=getExecOutput},8159:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.argStringToArray=t.ToolRunner=void 0;const a=o(r(2087));const c=o(r(8614));const l=o(r(3129));const u=o(r(5622));const d=o(r(7436));const p=o(r(1962));const h=r(8213);const m=process.platform==="win32";class ToolRunner extends c.EventEmitter{constructor(e,t,r){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=r||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const r=this._getSpawnFileName();const n=this._getSpawnArgs(e);let i=t?"":"[command]";if(m){if(this._isCmdFile()){i+=r;for(const e of n){i+=` ${e}`}}else if(e.windowsVerbatimArguments){i+=`"${r}"`;for(const e of n){i+=` ${e}`}}else{i+=this._windowsQuoteCmdArg(r);for(const e of n){i+=` ${this._windowsQuoteCmdArg(e)}`}}}else{i+=r;for(const e of n){i+=` ${e}`}}return i}_processLineBuffer(e,t,r){try{let n=t+e.toString();let i=n.indexOf(a.EOL);while(i>-1){const e=n.substring(0,i);r(e);n=n.substring(i+a.EOL.length);i=n.indexOf(a.EOL)}return n}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(m){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(m){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const r of this.args){t+=" ";t+=e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r)}t+='"';return[t]}}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let r=false;for(const n of e){if(t.some((e=>e===n))){r=true;break}}if(!r){return e}let n='"';let i=true;for(let t=e.length;t>0;t--){n+=e[t-1];if(i&&e[t-1]==="\\"){n+="\\"}else if(e[t-1]==='"'){i=true;n+='"'}else{i=false}}n+='"';return n.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let t='"';let r=true;for(let n=e.length;n>0;n--){t+=e[n-1];if(r&&e[n-1]==="\\"){t+="\\"}else if(e[n-1]==='"'){r=true;t+="\\"}else{r=false}}t+='"';return t.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};t.outStream=e.outStream||process.stdout;t.errStream=e.errStream||process.stderr;return t}_getSpawnOptions(e,t){e=e||{};const r={};r.cwd=e.cwd;r.env=e.env;r["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){r.argv0=`"${t}"`}return r}exec(){return s(this,void 0,void 0,(function*(){if(!p.isRooted(this.toolPath)&&(this.toolPath.includes("/")||m&&this.toolPath.includes("\\"))){this.toolPath=u.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield d.which(this.toolPath,true);return new Promise(((e,t)=>s(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const r=this._cloneExecOptions(this.options);if(!r.silent&&r.outStream){r.outStream.write(this._getCommandString(r)+a.EOL)}const n=new ExecState(r,this.toolPath);n.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield p.exists(this.options.cwd))){return t(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const i=this._getSpawnFileName();const o=l.spawn(i,this._getSpawnArgs(r),this._getSpawnOptions(this.options,i));let s="";if(o.stdout){o.stdout.on("data",(e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!r.silent&&r.outStream){r.outStream.write(e)}s=this._processLineBuffer(e,s,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let c="";if(o.stderr){o.stderr.on("data",(e=>{n.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!r.silent&&r.errStream&&r.outStream){const t=r.failOnStdErr?r.errStream:r.outStream;t.write(e)}c=this._processLineBuffer(e,c,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}o.on("error",(e=>{n.processError=e.message;n.processExited=true;n.processClosed=true;n.CheckComplete()}));o.on("exit",(e=>{n.processExitCode=e;n.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);n.CheckComplete()}));o.on("close",(e=>{n.processExitCode=e;n.processExited=true;n.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);n.CheckComplete()}));n.on("done",((r,n)=>{if(s.length>0){this.emit("stdline",s)}if(c.length>0){this.emit("errline",c)}o.removeAllListeners();if(r){t(r)}else{e(n)}}));if(this.options.input){if(!o.stdin){throw new Error("child process missing stdin")}o.stdin.end(this.options.input)}}))))}))}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let r=false;let n=false;let i="";function append(e){if(n&&e!=='"'){i+="\\"}i+=e;n=false}for(let o=0;o0){t.push(i);i=""}continue}append(s)}if(i.length>0){t.push(i.trim())}return t}t.argStringToArray=argStringToArray;class ExecState extends c.EventEmitter{constructor(e,t){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!t){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=t;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=h.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(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}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const t=`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(t)}e._setResult()}}},3702:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from(this.username+":"+this.password).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,t,r){return null}}t.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Bearer "+this.token}canHandleAuthentication(e){return false}handleAuthentication(e,t,r){return null}}t.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from("PAT:"+this.token).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,t,r){return null}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},9925:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(8605);const i=r(7211);const o=r(6443);let s;var a;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(a=t.HttpCodes||(t.HttpCodes={}));var c;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(c=t.Headers||(t.Headers={}));var l;(function(e){e["ApplicationJson"]="application/json"})(l=t.MediaTypes||(t.MediaTypes={}));function getProxyUrl(e){let t=o.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const u=[a.MovedPermanently,a.ResourceMoved,a.SeeOther,a.TemporaryRedirect,a.PermanentRedirect];const d=[a.BadGateway,a.ServiceUnavailable,a.GatewayTimeout];const p=["OPTIONS","GET","DELETE","HEAD"];const h=10;const m=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return new Promise((async(e,t)=>{let r=Buffer.alloc(0);this.message.on("data",(e=>{r=Buffer.concat([r,e])}));this.message.on("end",(()=>{e(r.toString())}))}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){let t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,r){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=r;if(r){if(r.ignoreSslError!=null){this._ignoreSslError=r.ignoreSslError}this._socketTimeout=r.socketTimeout;if(r.allowRedirects!=null){this._allowRedirects=r.allowRedirects}if(r.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=r.allowRedirectDowngrade}if(r.maxRedirects!=null){this._maxRedirects=Math.max(r.maxRedirects,0)}if(r.keepAlive!=null){this._keepAlive=r.keepAlive}if(r.allowRetries!=null){this._allowRetries=r.allowRetries}if(r.maxRetries!=null){this._maxRetries=r.maxRetries}}}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,r){return this.request("POST",e,t,r||{})}patch(e,t,r){return this.request("PATCH",e,t,r||{})}put(e,t,r){return this.request("PUT",e,t,r||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,r,n){return this.request(e,t,r,n)}async getJson(e,t={}){t[c.Accept]=this._getExistingOrDefaultHeader(t,c.Accept,l.ApplicationJson);let r=await this.get(e,t);return this._processResponse(r,this.requestOptions)}async postJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[c.Accept]=this._getExistingOrDefaultHeader(r,c.Accept,l.ApplicationJson);r[c.ContentType]=this._getExistingOrDefaultHeader(r,c.ContentType,l.ApplicationJson);let i=await this.post(e,n,r);return this._processResponse(i,this.requestOptions)}async putJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[c.Accept]=this._getExistingOrDefaultHeader(r,c.Accept,l.ApplicationJson);r[c.ContentType]=this._getExistingOrDefaultHeader(r,c.ContentType,l.ApplicationJson);let i=await this.put(e,n,r);return this._processResponse(i,this.requestOptions)}async patchJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[c.Accept]=this._getExistingOrDefaultHeader(r,c.Accept,l.ApplicationJson);r[c.ContentType]=this._getExistingOrDefaultHeader(r,c.ContentType,l.ApplicationJson);let i=await this.patch(e,n,r);return this._processResponse(i,this.requestOptions)}async request(e,t,r,n){if(this._disposed){throw new Error("Client has already been disposed.")}let i=new URL(t);let o=this._prepareRequest(e,i,n);let s=this._allowRetries&&p.indexOf(e)!=-1?this._maxRetries+1:1;let c=0;let l;while(c0){const s=l.message.headers["location"];if(!s){break}let a=new URL(s);if(i.protocol=="https:"&&i.protocol!=a.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}await l.readBody();if(a.hostname!==i.hostname){for(let e in n){if(e.toLowerCase()==="authorization"){delete n[e]}}}o=this._prepareRequest(e,a,n);l=await this.requestRaw(o,r);t--}if(d.indexOf(l.message.statusCode)==-1){return l}c+=1;if(c{let callbackForResult=function(e,t){if(e){n(e)}r(t)};this.requestRawWithCallback(e,t,callbackForResult)}))}requestRawWithCallback(e,t,r){let n;if(typeof t==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let i=false;let handleResult=(e,t)=>{if(!i){i=true;r(e,t)}};let o=e.httpModule.request(e.options,(e=>{let t=new HttpClientResponse(e);handleResult(null,t)}));o.on("socket",(e=>{n=e}));o.setTimeout(this._socketTimeout||3*6e4,(()=>{if(n){n.end()}handleResult(new Error("Request timeout: "+e.options.path),null)}));o.on("error",(function(e){handleResult(e,null)}));if(t&&typeof t==="string"){o.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){o.end()}));t.pipe(o)}else{o.end()}}getAgent(e){let t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,r){const o={};o.parsedUrl=t;const s=o.parsedUrl.protocol==="https:";o.httpModule=s?i:n;const a=s?443:80;o.options={};o.options.host=o.parsedUrl.hostname;o.options.port=o.parsedUrl.port?parseInt(o.parsedUrl.port):a;o.options.path=(o.parsedUrl.pathname||"")+(o.parsedUrl.search||"");o.options.method=e;o.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){o.options.headers["user-agent"]=this.userAgent}o.options.agent=this._getAgent(o.parsedUrl);if(this.handlers){this.handlers.forEach((e=>{e.prepareRequest(o.options)}))}return o}_mergeHeaders(e){const lowercaseKeys=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,r){const lowercaseKeys=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{});let n;if(this.requestOptions&&this.requestOptions.headers){n=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||n||r}_getAgent(e){let t;let a=o.getProxyUrl(e);let c=a&&a.hostname;if(this._keepAlive&&c){t=this._proxyAgent}if(this._keepAlive&&!c){t=this._agent}if(!!t){return t}const l=e.protocol==="https:";let u=100;if(!!this.requestOptions){u=this.requestOptions.maxSockets||n.globalAgent.maxSockets}if(c){if(!s){s=r(4294)}const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{...(a.username||a.password)&&{proxyAuth:`${a.username}:${a.password}`},host:a.hostname,port:a.port}};let n;const i=a.protocol==="https:";if(l){n=i?s.httpsOverHttps:s.httpsOverHttp}else{n=i?s.httpOverHttps:s.httpOverHttp}t=n(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=l?new i.Agent(e):new n.Agent(e);this._agent=t}if(!t){t=l?i.globalAgent:n.globalAgent}if(l&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){e=Math.min(h,e);const t=m*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}static dateTimeDeserializer(e,t){if(typeof t==="string"){let e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}async _processResponse(e,t){return new Promise((async(r,n)=>{const i=e.message.statusCode;const o={statusCode:i,result:null,headers:{}};if(i==a.NotFound){r(o)}let s;let c;try{c=await e.readBody();if(c&&c.length>0){if(t&&t.deserializeDates){s=JSON.parse(c,HttpClient.dateTimeDeserializer)}else{s=JSON.parse(c)}o.result=s}o.headers=e.message.headers}catch(e){}if(i>299){let e;if(s&&s.message){e=s.message}else if(c&&c.length>0){e=c}else{e="Failed request: ("+i+")"}let t=new HttpClientError(e,i);t.result=o.result;n(t)}else{r(o)}}))}}t.HttpClient=HttpClient},6443:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function getProxyUrl(e){let t=e.protocol==="https:";let r;if(checkBypass(e)){return r}let n;if(t){n=process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{n=process.env["http_proxy"]||process.env["HTTP_PROXY"]}if(n){r=new URL(n)}return r}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}let t=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!t){return false}let r;if(e.port){r=Number(e.port)}else if(e.protocol==="http:"){r=80}else if(e.protocol==="https:"){r=443}let n=[e.hostname.toUpperCase()];if(typeof r==="number"){n.push(`${n[0]}:${r}`)}for(let e of t.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(n.some((t=>t===e))){return true}}return false}t.checkBypass=checkBypass},1962:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var a;Object.defineProperty(t,"__esModule",{value:true});t.getCmdPath=t.tryGetExecutablePath=t.isRooted=t.isDirectory=t.exists=t.IS_WINDOWS=t.unlink=t.symlink=t.stat=t.rmdir=t.rename=t.readlink=t.readdir=t.mkdir=t.lstat=t.copyFile=t.chmod=void 0;const c=o(r(5747));const l=o(r(5622));a=c.promises,t.chmod=a.chmod,t.copyFile=a.copyFile,t.lstat=a.lstat,t.mkdir=a.mkdir,t.readdir=a.readdir,t.readlink=a.readlink,t.rename=a.rename,t.rmdir=a.rmdir,t.stat=a.stat,t.symlink=a.symlink,t.unlink=a.unlink;t.IS_WINDOWS=process.platform==="win32";function exists(e){return s(this,void 0,void 0,(function*(){try{yield t.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}t.exists=exists;function isDirectory(e,r=false){return s(this,void 0,void 0,(function*(){const n=r?yield t.stat(e):yield t.lstat(e);return n.isDirectory()}))}t.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(t.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.isRooted=isRooted;function tryGetExecutablePath(e,r){return s(this,void 0,void 0,(function*(){let n=undefined;try{n=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(t.IS_WINDOWS){const t=l.extname(e).toUpperCase();if(r.some((e=>e.toUpperCase()===t))){return e}}else{if(isUnixExecutable(n)){return e}}}const i=e;for(const o of r){e=i+o;n=undefined;try{n=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(t.IS_WINDOWS){try{const r=l.dirname(e);const n=l.basename(e).toUpperCase();for(const i of yield t.readdir(r)){if(n===i.toUpperCase()){e=l.join(r,i);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(n)){return e}}}}return""}))}t.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(t.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}function getCmdPath(){var e;return(e=process.env["COMSPEC"])!==null&&e!==void 0?e:`cmd.exe`}t.getCmdPath=getCmdPath},7436:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.findInPath=t.which=t.mkdirP=t.rmRF=t.mv=t.cp=void 0;const a=r(2357);const c=o(r(3129));const l=o(r(5622));const u=r(1669);const d=o(r(1962));const p=u.promisify(c.exec);const h=u.promisify(c.execFile);function cp(e,t,r={}){return s(this,void 0,void 0,(function*(){const{force:n,recursive:i,copySourceDirectory:o}=readCopyOptions(r);const s=(yield d.exists(t))?yield d.stat(t):null;if(s&&s.isFile()&&!n){return}const a=s&&s.isDirectory()&&o?l.join(t,l.basename(e)):t;if(!(yield d.exists(e))){throw new Error(`no such file or directory: ${e}`)}const c=yield d.stat(e);if(c.isDirectory()){if(!i){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,a,0,n)}}else{if(l.relative(e,a)===""){throw new Error(`'${a}' and '${e}' are the same file`)}yield copyFile(e,a,n)}}))}t.cp=cp;function mv(e,t,r={}){return s(this,void 0,void 0,(function*(){if(yield d.exists(t)){let n=true;if(yield d.isDirectory(t)){t=l.join(t,l.basename(e));n=yield d.exists(t)}if(n){if(r.force==null||r.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(l.dirname(t));yield d.rename(e,t)}))}t.mv=mv;function rmRF(e){return s(this,void 0,void 0,(function*(){if(d.IS_WINDOWS){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}try{const t=d.getCmdPath();if(yield d.isDirectory(e,true)){yield p(`${t} /s /c "rd /s /q "%inputPath%""`,{env:{inputPath:e}})}else{yield p(`${t} /s /c "del /f /a "%inputPath%""`,{env:{inputPath:e}})}}catch(e){if(e.code!=="ENOENT")throw e}try{yield d.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let t=false;try{t=yield d.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(t){yield h(`rm`,[`-rf`,`${e}`])}else{yield d.unlink(e)}}}))}t.rmRF=rmRF;function mkdirP(e){return s(this,void 0,void 0,(function*(){a.ok(e,"a path argument must be provided");yield d.mkdir(e,{recursive:true})}))}t.mkdirP=mkdirP;function which(e,t){return s(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(t){const t=yield which(e,false);if(!t){if(d.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. 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.`)}else{throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}return t}const r=yield findInPath(e);if(r&&r.length>0){return r[0]}return""}))}t.which=which;function findInPath(e){return s(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const t=[];if(d.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(l.delimiter)){if(e){t.push(e)}}}if(d.isRooted(e)){const r=yield d.tryGetExecutablePath(e,t);if(r){return[r]}return[]}if(e.includes(l.sep)){return[]}const r=[];if(process.env.PATH){for(const e of process.env.PATH.split(l.delimiter)){if(e){r.push(e)}}}const n=[];for(const i of r){const r=yield d.tryGetExecutablePath(l.join(i,e),t);if(r){n.push(r)}}return n}))}t.findInPath=findInPath;function readCopyOptions(e){const t=e.force==null?true:e.force;const r=Boolean(e.recursive);const n=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:t,recursive:r,copySourceDirectory:n}}function cpDirRecursive(e,t,r,n){return s(this,void 0,void 0,(function*(){if(r>=255)return;r++;yield mkdirP(t);const i=yield d.readdir(e);for(const o of i){const i=`${e}/${o}`;const s=`${t}/${o}`;const a=yield d.lstat(i);if(a.isDirectory()){yield cpDirRecursive(i,s,r,n)}else{yield copyFile(i,s,n)}}yield d.chmod(t,(yield d.stat(e)).mode)}))}function copyFile(e,t,r){return s(this,void 0,void 0,(function*(){if((yield d.lstat(e)).isSymbolicLink()){try{yield d.lstat(t);yield d.unlink(t)}catch(e){if(e.code==="EPERM"){yield d.chmod(t,"0666");yield d.unlink(t)}}const r=yield d.readlink(e);yield d.symlink(r,t,d.IS_WINDOWS?"junction":null)}else if(!(yield d.exists(t))||r){yield d.copyFile(e,t)}}))}},9417:e=>{"use strict";e.exports=balanced;function balanced(e,t,r){if(e instanceof RegExp)e=maybeMatch(e,r);if(t instanceof RegExp)t=maybeMatch(t,r);var n=range(e,t,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+e.length,n[1]),post:r.slice(n[1]+t.length)}}function maybeMatch(e,t){var r=t.match(e);return r?r[0]:null}balanced.range=range;function range(e,t,r){var n,i,o,s,a;var c=r.indexOf(e);var l=r.indexOf(t,c+1);var u=c;if(c>=0&&l>0){if(e===t){return[c,l]}n=[];o=r.length;while(u>=0&&!a){if(u==c){n.push(u);c=r.indexOf(e,u+1)}else if(n.length==1){a=[n.pop(),l]}else{i=n.pop();if(i=0?c:l}if(n.length){a=[o,s]}}return a}},3717:(e,t,r)=>{var n=r(6891);var i=r(9417);e.exports=expandTop;var o="\0SLASH"+Math.random()+"\0";var s="\0OPEN"+Math.random()+"\0";var a="\0CLOSE"+Math.random()+"\0";var c="\0COMMA"+Math.random()+"\0";var l="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(o).split("\\{").join(s).split("\\}").join(a).split("\\,").join(c).split("\\.").join(l)}function unescapeBraces(e){return e.split(o).join("\\").split(s).join("{").split(a).join("}").split(c).join(",").split(l).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var r=i("{","}",e);if(!r)return e.split(",");var n=r.pre;var o=r.body;var s=r.post;var a=n.split(",");a[a.length-1]+="{"+o+"}";var c=parseCommaParts(s);if(s.length){a[a.length-1]+=c.shift();a.push.apply(a,c)}t.push.apply(t,a);return t}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function identity(e){return e}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var r=[];var o=i("{","}",e);if(!o||/\$$/.test(o.pre))return[e];var s=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(o.body);var c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(o.body);var l=s||c;var u=o.body.indexOf(",")>=0;if(!l&&!u){if(o.post.match(/,.*\}/)){e=o.pre+"{"+o.body+a+o.post;return expand(e)}return[e]}var d;if(l){d=o.body.split(/\.\./)}else{d=parseCommaParts(o.body);if(d.length===1){d=expand(d[0],false).map(embrace);if(d.length===1){var p=o.post.length?expand(o.post,false):[""];return p.map((function(e){return o.pre+d[0]+e}))}}}var h=o.pre;var p=o.post.length?expand(o.post,false):[""];var m;if(l){var g=numeric(d[0]);var v=numeric(d[1]);var y=Math.max(d[0].length,d[1].length);var b=d.length==3?Math.abs(numeric(d[2])):1;var w=lte;var _=v0){var x=new Array(O+1).join("0");if(E<0)C="-"+x+C.slice(1);else C=x+C}}}m.push(C)}}else{m=n(d,(function(e){return expand(e,false)}))}for(var A=0;A{var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],r=0;r{e.exports=function(e,r){var n=[];for(var i=0;i{(function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(e,t){return e<>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number){return r.rotl(e,8)&16711935|r.rotl(e,24)&4278255360}for(var t=0;t0;e--)t.push(Math.floor(Math.random()*256));return t},bytesToWords:function(e){for(var t=[],r=0,n=0;r>>5]|=e[r]<<24-n%32;return t},wordsToBytes:function(e){for(var t=[],r=0;r>>5]>>>24-r%32&255);return t},bytesToHex:function(e){for(var t=[],r=0;r>>4).toString(16));t.push((e[r]&15).toString(16))}return t.join("")},hexToBytes:function(e){for(var t=[],r=0;r>>6*(3-o)&63));else r.push("=")}return r.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var r=[],n=0,i=0;n>>6-i*2)}return r}};e.exports=r})()},6863:(e,t,r)=>{e.exports=realpath;realpath.realpath=realpath;realpath.sync=realpathSync;realpath.realpathSync=realpathSync;realpath.monkeypatch=monkeypatch;realpath.unmonkeypatch=unmonkeypatch;var n=r(5747);var i=n.realpath;var o=n.realpathSync;var s=process.version;var a=/^v[0-5]\./.test(s);var c=r(1734);function newError(e){return e&&e.syscall==="realpath"&&(e.code==="ELOOP"||e.code==="ENOMEM"||e.code==="ENAMETOOLONG")}function realpath(e,t,r){if(a){return i(e,t,r)}if(typeof t==="function"){r=t;t=null}i(e,t,(function(n,i){if(newError(n)){c.realpath(e,t,r)}else{r(n,i)}}))}function realpathSync(e,t){if(a){return o(e,t)}try{return o(e,t)}catch(r){if(newError(r)){return c.realpathSync(e,t)}else{throw r}}}function monkeypatch(){n.realpath=realpath;n.realpathSync=realpathSync}function unmonkeypatch(){n.realpath=i;n.realpathSync=o}},1734:(e,t,r)=>{var n=r(5622);var i=process.platform==="win32";var o=r(5747);var s=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function rethrow(){var e;if(s){var t=new Error;e=debugCallback}else e=missingCallback;return e;function debugCallback(e){if(e){t.message=e.message;e=t;missingCallback(e)}}function missingCallback(e){if(e){if(process.throwDeprecation)throw e;else if(!process.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);if(process.traceDeprecation)console.trace(t);else console.error(t)}}}}function maybeCallback(e){return typeof e==="function"?e:rethrow()}var a=n.normalize;if(i){var c=/(.*?)(?:[\/\\]+|$)/g}else{var c=/(.*?)(?:[\/]+|$)/g}if(i){var l=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/}else{var l=/^[\/]*/}t.realpathSync=function realpathSync(e,t){e=n.resolve(e);if(t&&Object.prototype.hasOwnProperty.call(t,e)){return t[e]}var r=e,s={},a={};var u;var d;var p;var h;start();function start(){var t=l.exec(e);u=t[0].length;d=t[0];p=t[0];h="";if(i&&!a[p]){o.lstatSync(p);a[p]=true}}while(u=e.length){if(t)t[s]=e;return r(null,e)}c.lastIndex=d;var n=c.exec(e);m=p;p+=n[0];h=m+n[1];d=c.lastIndex;if(u[h]||t&&t[h]===h){return process.nextTick(LOOP)}if(t&&Object.prototype.hasOwnProperty.call(t,h)){return gotResolvedLink(t[h])}return o.lstat(h,gotStat)}function gotStat(e,n){if(e)return r(e);if(!n.isSymbolicLink()){u[h]=true;if(t)t[h]=h;return process.nextTick(LOOP)}if(!i){var s=n.dev.toString(32)+":"+n.ino.toString(32);if(a.hasOwnProperty(s)){return gotTarget(null,a[s],h)}}o.stat(h,(function(e){if(e)return r(e);o.readlink(h,(function(e,t){if(!i)a[s]=t;gotTarget(e,t)}))}))}function gotTarget(e,i,o){if(e)return r(e);var s=n.resolve(m,i);if(t)t[o]=s;gotResolvedLink(s)}function gotResolvedLink(t){e=n.resolve(t,e.slice(d));start()}}},7625:(e,t,r)=>{t.setopts=setopts;t.ownProp=ownProp;t.makeAbs=makeAbs;t.finish=finish;t.mark=mark;t.isIgnored=isIgnored;t.childrenIgnored=childrenIgnored;function ownProp(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var n=r(5747);var i=r(5622);var o=r(3973);var s=r(8714);var a=o.Minimatch;function alphasort(e,t){return e.localeCompare(t,"en")}function setupIgnores(e,t){e.ignore=t.ignore||[];if(!Array.isArray(e.ignore))e.ignore=[e.ignore];if(e.ignore.length){e.ignore=e.ignore.map(ignoreMap)}}function ignoreMap(e){var t=null;if(e.slice(-3)==="/**"){var r=e.replace(/(\/\*\*)+$/,"");t=new a(r,{dot:true})}return{matcher:new a(e,{dot:true}),gmatcher:t}}function setopts(e,t,r){if(!r)r={};if(r.matchBase&&-1===t.indexOf("/")){if(r.noglobstar){throw new Error("base matching requires globstar")}t="**/"+t}e.silent=!!r.silent;e.pattern=t;e.strict=r.strict!==false;e.realpath=!!r.realpath;e.realpathCache=r.realpathCache||Object.create(null);e.follow=!!r.follow;e.dot=!!r.dot;e.mark=!!r.mark;e.nodir=!!r.nodir;if(e.nodir)e.mark=true;e.sync=!!r.sync;e.nounique=!!r.nounique;e.nonull=!!r.nonull;e.nosort=!!r.nosort;e.nocase=!!r.nocase;e.stat=!!r.stat;e.noprocess=!!r.noprocess;e.absolute=!!r.absolute;e.fs=r.fs||n;e.maxLength=r.maxLength||Infinity;e.cache=r.cache||Object.create(null);e.statCache=r.statCache||Object.create(null);e.symlinks=r.symlinks||Object.create(null);setupIgnores(e,r);e.changedCwd=false;var o=process.cwd();if(!ownProp(r,"cwd"))e.cwd=o;else{e.cwd=i.resolve(r.cwd);e.changedCwd=e.cwd!==o}e.root=r.root||i.resolve(e.cwd,"/");e.root=i.resolve(e.root);if(process.platform==="win32")e.root=e.root.replace(/\\/g,"/");e.cwdAbs=s(e.cwd)?e.cwd:makeAbs(e,e.cwd);if(process.platform==="win32")e.cwdAbs=e.cwdAbs.replace(/\\/g,"/");e.nomount=!!r.nomount;r.nonegate=true;r.nocomment=true;e.minimatch=new a(t,r);e.options=e.minimatch.options}function finish(e){var t=e.nounique;var r=t?[]:Object.create(null);for(var n=0,i=e.matches.length;n{e.exports=glob;var n=r(6863);var i=r(3973);var o=i.Minimatch;var s=r(4124);var a=r(8614).EventEmitter;var c=r(5622);var l=r(2357);var u=r(8714);var d=r(9010);var p=r(7625);var h=p.setopts;var m=p.ownProp;var g=r(2492);var v=r(1669);var y=p.childrenIgnored;var b=p.isIgnored;var w=r(1223);function glob(e,t,r){if(typeof t==="function")r=t,t={};if(!t)t={};if(t.sync){if(r)throw new TypeError("callback provided to sync glob");return d(e,t)}return new Glob(e,t,r)}glob.sync=d;var _=glob.GlobSync=d.GlobSync;glob.glob=glob;function extend(e,t){if(t===null||typeof t!=="object"){return e}var r=Object.keys(t);var n=r.length;while(n--){e[r[n]]=t[r[n]]}return e}glob.hasMagic=function(e,t){var r=extend({},t);r.noprocess=true;var n=new Glob(e,r);var i=n.minimatch.set;if(!e)return false;if(i.length>1)return true;for(var o=0;othis.maxLength)return t();if(!this.stat&&m(this.cache,r)){var i=this.cache[r];if(Array.isArray(i))i="DIR";if(!n||i==="DIR")return t(null,i);if(n&&i==="FILE")return t()}var o;var s=this.statCache[r];if(s!==undefined){if(s===false)return t(null,s);else{var a=s.isDirectory()?"DIR":"FILE";if(n&&a==="FILE")return t();else return t(null,a,s)}}var c=this;var l=g("stat\0"+r,lstatcb_);if(l)c.fs.lstat(r,l);function lstatcb_(n,i){if(i&&i.isSymbolicLink()){return c.fs.stat(r,(function(n,o){if(n)c._stat2(e,r,null,i,t);else c._stat2(e,r,n,o,t)}))}else{c._stat2(e,r,n,i,t)}}};Glob.prototype._stat2=function(e,t,r,n,i){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR")){this.statCache[t]=false;return i()}var o=e.slice(-1)==="/";this.statCache[t]=n;if(t.slice(-1)==="/"&&n&&!n.isDirectory())return i(null,false,n);var s=true;if(n)s=n.isDirectory()?"DIR":"FILE";this.cache[t]=this.cache[t]||s;if(o&&s==="FILE")return i();return i(null,s,n)}},9010:(e,t,r)=>{e.exports=globSync;globSync.GlobSync=GlobSync;var n=r(6863);var i=r(3973);var o=i.Minimatch;var s=r(1957).Glob;var a=r(1669);var c=r(5622);var l=r(2357);var u=r(8714);var d=r(7625);var p=d.setopts;var h=d.ownProp;var m=d.childrenIgnored;var g=d.isIgnored;function globSync(e,t){if(typeof t==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(e,t).found}function GlobSync(e,t){if(!e)throw new Error("must provide pattern");if(typeof t==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(e,t);p(this,e,t);if(this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var n=0;nthis.maxLength)return false;if(!this.stat&&h(this.cache,t)){var n=this.cache[t];if(Array.isArray(n))n="DIR";if(!r||n==="DIR")return n;if(r&&n==="FILE")return false}var i;var o=this.statCache[t];if(!o){var s;try{s=this.fs.lstatSync(t)}catch(e){if(e&&(e.code==="ENOENT"||e.code==="ENOTDIR")){this.statCache[t]=false;return false}}if(s&&s.isSymbolicLink()){try{o=this.fs.statSync(t)}catch(e){o=s}}else{o=s}}this.statCache[t]=o;var n=true;if(o)n=o.isDirectory()?"DIR":"FILE";this.cache[t]=this.cache[t]||n;if(r&&n==="FILE")return false;return n};GlobSync.prototype._mark=function(e){return d.mark(this,e)};GlobSync.prototype._makeAbs=function(e){return d.makeAbs(this,e)}},2492:(e,t,r)=>{var n=r(2940);var i=Object.create(null);var o=r(1223);e.exports=n(inflight);function inflight(e,t){if(i[e]){i[e].push(t);return null}else{i[e]=[t];return makeres(e)}}function makeres(e){return o((function RES(){var t=i[e];var r=t.length;var n=slice(arguments);try{for(var o=0;or){t.splice(0,r);process.nextTick((function(){RES.apply(null,n)}))}else{delete i[e]}}}))}function slice(e){var t=e.length;var r=[];for(var n=0;n{try{var n=r(1669);if(typeof n.inherits!=="function")throw"";e.exports=n.inherits}catch(t){e.exports=r(8544)}},8544:e=>{if(typeof Object.create==="function"){e.exports=function inherits(e,t){if(t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}}}else{e.exports=function inherits(e,t){if(t){e.super_=t;var TempCtor=function(){};TempCtor.prototype=t.prototype;e.prototype=new TempCtor;e.prototype.constructor=e}}}},5625:e=>{ +(()=>{var e={5008:(e,t,r)=>{const n=r(2186);const i=r(1514);const o=r(5622);const s=r(1711);const a=r(5747);const c=process.env["CI"];global.workspaceDir=process.env["GITHUB_WORKSPACE"];global.conanCachePath=o.join(workspaceDir,".conan");function log(e){if(c){n.info(e)}else{console.log(e)}}function error(e){if(c){n.error(e)}else{console.error(e)}}async function execWithLog(e,arguments){if(c){return i.exec(e,arguments)}else{return i.exec(e,arguments,{listeners:{stdout:e=>{log(e.toString())},stderr:e=>{error(e.toString())}}})}}async function getExecOutput(e,arguments){if(c){return i.getExecOutput(e,arguments)}else{return i.getExecOutput(e,arguments,{listeners:{stdout:e=>{log(e.toString())},stderr:e=>{error(e.toString())}}})}}async function awaitAll(e,t){return await Promise.all(e.map((async e=>t(e))))}async function getMD5(e){const t=await a.promises.readFile(e);return s(t)}function getDateString(){const e=new Date;return[e.getFullYear(),("0"+(e.getMonth()+1)).slice(-2),("0"+e.getDate()).slice(-2)].join("")}const sleep=e=>new Promise((t=>setTimeout(t,e)));process.on("unhandledRejection",((e,t)=>{error(e);n.setFailed(e);process.exit(1)})).on("uncaughtException",(e=>{error(e);n.setFailed(e);process.exit(1)}));e.exports={log:log,error:error,execWithLog:execWithLog,getExecOutput:getExecOutput,sleep:sleep,awaitAll:awaitAll,getMD5:getMD5,getDateString:getDateString}},2605:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(8802);function create(){return n.DefaultArtifactClient.create()}t.create=create},8802:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=i(r(2186));const s=r(183);const a=r(4354);const c=r(6327);const l=r(8538);const u=r(5686);const d=r(2222);const p=r(5622);class DefaultArtifactClient{static create(){return new DefaultArtifactClient}uploadArtifact(e,t,r,i){return n(this,void 0,void 0,(function*(){c.checkArtifactName(e);const n=s.getUploadSpecification(e,r,t);const l={artifactName:e,artifactItems:[],size:0,failedItems:[]};const u=new a.UploadHttpClient;if(n.length===0){o.warning(`No files found that can be uploaded`)}else{const t=yield u.createArtifactInFileContainer(e,i);if(!t.fileContainerResourceUrl){o.debug(t.toString());throw new Error("No URL provided by the Artifact Service to upload an artifact to")}o.debug(`Upload Resource URL: ${t.fileContainerResourceUrl}`);const r=yield u.uploadArtifactToFileContainer(t.fileContainerResourceUrl,n,i);yield u.patchArtifactSize(r.totalSize,e);o.info(`Finished uploading artifact ${e}. Reported size is ${r.uploadSize} bytes. There were ${r.failedItems.length} items that failed to upload`);l.artifactItems=n.map((e=>e.absoluteFilePath));l.size=r.uploadSize;l.failedItems=r.failedItems}return l}))}downloadArtifact(e,t,r){return n(this,void 0,void 0,(function*(){const n=new l.DownloadHttpClient;const i=yield n.listArtifacts();if(i.count===0){throw new Error(`Unable to find any artifacts for the associated workflow`)}const s=i.value.find((t=>t.name===e));if(!s){throw new Error(`Unable to find an artifact with the name: ${e}`)}const a=yield n.getContainerItems(s.name,s.fileContainerResourceUrl);if(!t){t=d.getWorkSpaceDirectory()}t=p.normalize(t);t=p.resolve(t);const h=u.getDownloadSpecification(e,a.value,t,(r===null||r===void 0?void 0:r.createArtifactFolder)||false);if(h.filesToDownload.length===0){o.info(`No downloadable files were found for the artifact: ${s.name}`)}else{yield c.createDirectoriesForArtifact(h.directoryStructure);o.info("Directory structure has been setup for the artifact");yield c.createEmptyFilesForArtifact(h.emptyFilesToCreate);yield n.downloadSingleArtifact(h.filesToDownload)}return{artifactName:e,downloadPath:h.rootDownloadLocation}}))}downloadAllArtifacts(e){return n(this,void 0,void 0,(function*(){const t=new l.DownloadHttpClient;const r=[];const n=yield t.listArtifacts();if(n.count===0){o.info("Unable to find any artifacts for the associated workflow");return r}if(!e){e=d.getWorkSpaceDirectory()}e=p.normalize(e);e=p.resolve(e);let i=0;while(i{"use strict";Object.defineProperty(t,"__esModule",{value:true});function getUploadFileConcurrency(){return 2}t.getUploadFileConcurrency=getUploadFileConcurrency;function getUploadChunkSize(){return 8*1024*1024}t.getUploadChunkSize=getUploadChunkSize;function getRetryLimit(){return 5}t.getRetryLimit=getRetryLimit;function getRetryMultiplier(){return 1.5}t.getRetryMultiplier=getRetryMultiplier;function getInitialRetryIntervalInMilliseconds(){return 3e3}t.getInitialRetryIntervalInMilliseconds=getInitialRetryIntervalInMilliseconds;function getDownloadFileConcurrency(){return 2}t.getDownloadFileConcurrency=getDownloadFileConcurrency;function getRuntimeToken(){const e=process.env["ACTIONS_RUNTIME_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_RUNTIME_TOKEN env variable")}return e}t.getRuntimeToken=getRuntimeToken;function getRuntimeUrl(){const e=process.env["ACTIONS_RUNTIME_URL"];if(!e){throw new Error("Unable to get ACTIONS_RUNTIME_URL env variable")}return e}t.getRuntimeUrl=getRuntimeUrl;function getWorkFlowRunId(){const e=process.env["GITHUB_RUN_ID"];if(!e){throw new Error("Unable to get GITHUB_RUN_ID env variable")}return e}t.getWorkFlowRunId=getWorkFlowRunId;function getWorkSpaceDirectory(){const e=process.env["GITHUB_WORKSPACE"];if(!e){throw new Error("Unable to get GITHUB_WORKSPACE env variable")}return e}t.getWorkSpaceDirectory=getWorkSpaceDirectory;function getRetentionDays(){return process.env["GITHUB_RETENTION_DAYS"]}t.getRetentionDays=getRetentionDays},8538:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=i(r(5747));const s=i(r(2186));const a=i(r(8761));const c=r(6327);const l=r(8835);const u=r(9081);const d=r(630);const p=r(6527);const h=r(2222);const m=r(755);class DownloadHttpClient{constructor(){this.downloadHttpManager=new p.HttpManager(h.getDownloadFileConcurrency(),"@actions/artifact-download");this.statusReporter=new u.StatusReporter(1e3)}listArtifacts(){return n(this,void 0,void 0,(function*(){const e=c.getArtifactUrl();const t=this.downloadHttpManager.getClient(0);const r=c.getDownloadHeaders("application/json");const i=yield m.retryHttpClientRequest("List Artifacts",(()=>n(this,void 0,void 0,(function*(){return t.get(e,r)}))));const o=yield i.readBody();return JSON.parse(o)}))}getContainerItems(e,t){return n(this,void 0,void 0,(function*(){const r=new l.URL(t);r.searchParams.append("itemPath",e);const i=this.downloadHttpManager.getClient(0);const o=c.getDownloadHeaders("application/json");const s=yield m.retryHttpClientRequest("Get Container Items",(()=>n(this,void 0,void 0,(function*(){return i.get(r.toString(),o)}))));const a=yield s.readBody();return JSON.parse(a)}))}downloadSingleArtifact(e){return n(this,void 0,void 0,(function*(){const t=h.getDownloadFileConcurrency();s.debug(`Download file concurrency is set to ${t}`);const r=[...new Array(t).keys()];let i=0;let o=0;s.info(`Total number of files that will be downloaded: ${e.length}`);this.statusReporter.setTotalNumberOfFilesToProcess(e.length);this.statusReporter.start();yield Promise.all(r.map((t=>n(this,void 0,void 0,(function*(){while(i{throw new Error(`Unable to download the artifact: ${e}`)})).finally((()=>{this.statusReporter.stop();this.downloadHttpManager.disposeAndReplaceAllClients()}))}))}downloadIndividualFile(e,t,r){return n(this,void 0,void 0,(function*(){let i=0;const a=h.getRetryLimit();let l=o.createWriteStream(r);const u=c.getDownloadHeaders("application/json",true,true);const makeDownloadRequest=()=>n(this,void 0,void 0,(function*(){const r=this.downloadHttpManager.getClient(e);return yield r.get(t,u)}));const isGzip=e=>"content-encoding"in e&&e["content-encoding"]==="gzip";const backOff=r=>n(this,void 0,void 0,(function*(){i++;if(i>a){return Promise.reject(new Error(`Retry limit has been reached. Unable to download ${t}`))}else{this.downloadHttpManager.disposeAndReplaceClient(e);if(r){s.info(`Backoff due to too many requests, retry #${i}. Waiting for ${r} milliseconds before continuing the download`);yield c.sleep(r)}else{const e=c.getExponentialRetryTimeInMilliseconds(i);s.info(`Exponential backoff for retry #${i}. Waiting for ${e} milliseconds before continuing the download`);yield c.sleep(e)}s.info(`Finished backoff for retry #${i}, continuing with download`)}}));const isAllBytesReceived=(e,t)=>{if(!e||!t||process.env["ACTIONS_ARTIFACT_SKIP_DOWNLOAD_VALIDATION"]){s.info("Skipping download validation.");return true}return parseInt(e)===t};const resetDestinationStream=e=>n(this,void 0,void 0,(function*(){l.close();yield c.rmFile(e);l=o.createWriteStream(e)}));while(i<=a){let e;try{e=yield makeDownloadRequest();if(s.isDebug()){c.displayHttpDiagnostics(e)}}catch(e){s.info("An error occurred while attempting to download a file");console.log(e);yield backOff();continue}let n=false;if(c.isSuccessStatusCode(e.message.statusCode)){try{const t=isGzip(e.message.headers);yield this.pipeResponseToFile(e,l,t);if(t||isAllBytesReceived(e.message.headers["content-length"],yield c.getFileSize(r))){return}else{n=true}}catch(e){n=true}}if(n||c.isRetryableStatusCode(e.message.statusCode)){s.info(`A ${e.message.statusCode} response code has been received while attempting to download an artifact`);resetDestinationStream(r);c.isThrottledStatusCode(e.message.statusCode)?yield backOff(c.tryGetRetryAfterValueTimeInMilliseconds(e.message.headers)):yield backOff()}else{c.displayHttpDiagnostics(e);return Promise.reject(new Error(`Unexpected http ${e.message.statusCode} during download for ${t}`))}}}))}pipeResponseToFile(e,t,r){return n(this,void 0,void 0,(function*(){yield new Promise(((n,i)=>{if(r){const r=a.createGunzip();e.message.on("error",(e=>{s.error(`An error occurred while attempting to read the response stream`);r.close();t.close();i(e)})).pipe(r).on("error",(e=>{s.error(`An error occurred while attempting to decompress the response stream`);t.close();i(e)})).pipe(t).on("close",(()=>{n()})).on("error",(e=>{s.error(`An error occurred while writing a downloaded file to ${t.path}`);i(e)}))}else{e.message.on("error",(e=>{s.error(`An error occurred while attempting to read the response stream`);t.close();i(e)})).pipe(t).on("close",(()=>{n()})).on("error",(e=>{s.error(`An error occurred while writing a downloaded file to ${t.path}`);i(e)}))}}));return}))}}t.DownloadHttpClient=DownloadHttpClient},5686:function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const i=n(r(5622));function getDownloadSpecification(e,t,r,n){const o=new Set;const s={rootDownloadLocation:n?i.join(r,e):r,directoryStructure:[],emptyFilesToCreate:[],filesToDownload:[]};for(const a of t){if(a.path.startsWith(`${e}/`)||a.path.startsWith(`${e}\\`)){const t=i.normalize(a.path);const c=i.join(r,n?t:t.replace(e,""));if(a.itemType==="file"){o.add(i.dirname(c));if(a.fileLength===0){s.emptyFilesToCreate.push(c)}else{s.filesToDownload.push({sourceLocation:a.contentLocation,targetPath:c})}}}}s.directoryStructure=Array.from(o);return s}t.getDownloadSpecification=getDownloadSpecification},6527:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(6327);class HttpManager{constructor(e,t){if(e<1){throw new Error("There must be at least one client")}this.userAgent=t;this.clients=new Array(e).fill(n.createHttpClient(t))}getClient(e){return this.clients[e]}disposeAndReplaceClient(e){this.clients[e].dispose();this.clients[e]=n.createHttpClient(this.userAgent)}disposeAndReplaceAllClients(){for(const[e]of this.clients.entries()){this.disposeAndReplaceClient(e)}}}t.HttpManager=HttpManager},755:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=r(6327);const s=i(r(2186));const a=r(2222);function retry(e,t,r,i){return n(this,void 0,void 0,(function*(){let n=undefined;let a=undefined;let c=false;let l="";let u=undefined;let d=1;while(d<=i){try{n=yield t();a=n.message.statusCode;if(o.isSuccessStatusCode(a)){return n}if(a){u=r.get(a)}c=o.isRetryableStatusCode(a);l=`Artifact service responded with ${a}`}catch(e){c=true;l=e.message}if(!c){s.info(`${e} - Error is not retryable`);if(n){o.displayHttpDiagnostics(n)}break}s.info(`${e} - Attempt ${d} of ${i} failed with error: ${l}`);yield o.sleep(o.getExponentialRetryTimeInMilliseconds(d));d++}if(n){o.displayHttpDiagnostics(n)}if(u){throw Error(`${e} failed: ${u}`)}throw Error(`${e} failed: ${l}`)}))}t.retry=retry;function retryHttpClientRequest(e,t,r=new Map,i=a.getRetryLimit()){return n(this,void 0,void 0,(function*(){return yield retry(e,t,r,i)}))}t.retryHttpClientRequest=retryHttpClientRequest},9081:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(2186);class StatusReporter{constructor(e){this.totalNumberOfFilesToProcess=0;this.processedCount=0;this.largeFiles=new Map;this.totalFileStatus=undefined;this.largeFileStatus=undefined;this.displayFrequencyInMilliseconds=e}setTotalNumberOfFilesToProcess(e){this.totalNumberOfFilesToProcess=e}start(){this.totalFileStatus=setInterval((()=>{const e=this.formatPercentage(this.processedCount,this.totalNumberOfFilesToProcess);n.info(`Total file count: ${this.totalNumberOfFilesToProcess} ---- Processed file #${this.processedCount} (${e.slice(0,e.indexOf(".")+2)}%)`)}),this.displayFrequencyInMilliseconds);this.largeFileStatus=setInterval((()=>{for(const e of Array.from(this.largeFiles.values())){n.info(e)}this.largeFiles.clear()}),1e3)}updateLargeFileStatus(e,t,r){const n=this.formatPercentage(t,r);const i=`Uploading ${e} (${n.slice(0,n.indexOf(".")+2)}%)`;this.largeFiles.set(e,i)}stop(){if(this.totalFileStatus){clearInterval(this.totalFileStatus)}if(this.largeFileStatus){clearInterval(this.largeFileStatus)}}incrementProcessedCount(){this.processedCount++}formatPercentage(e,t){return(e/t*100).toFixed(4).toString()}}t.StatusReporter=StatusReporter},606:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var i=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(t){r[t]=e[t]&&function(r){return new Promise((function(n,i){r=e[t](r),settle(n,i,r.done,r.value)}))}}function settle(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}};var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=o(r(5747));const a=o(r(8761));const c=r(1669);const l=c.promisify(s.stat);function createGZipFileOnDisk(e,t){return n(this,void 0,void 0,(function*(){return new Promise(((r,i)=>{const o=s.createReadStream(e);const c=a.createGzip();const u=s.createWriteStream(t);o.pipe(c).pipe(u);u.on("finish",(()=>n(this,void 0,void 0,(function*(){const e=(yield l(t)).size;r(e)}))));u.on("error",(e=>{console.log(e);i}))}))}))}t.createGZipFileOnDisk=createGZipFileOnDisk;function createGZipFileInBuffer(e){return n(this,void 0,void 0,(function*(){return new Promise((t=>n(this,void 0,void 0,(function*(){var r,n;const o=s.createReadStream(e);const c=a.createGzip();o.pipe(c);const l=[];try{for(var u=i(c),d;d=yield u.next(),!d.done;){const e=d.value;l.push(e)}}catch(e){r={error:e}}finally{try{if(d&&!d.done&&(n=u.return))yield n.call(u)}finally{if(r)throw r.error}}t(Buffer.concat(l))}))))}))}t.createGZipFileInBuffer=createGZipFileInBuffer},4354:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=i(r(5747));const s=i(r(2186));const a=i(r(8065));const c=i(r(2413));const l=r(6327);const u=r(2222);const d=r(1669);const p=r(8835);const h=r(630);const m=r(9081);const g=r(9925);const v=r(6527);const y=r(606);const b=r(755);const w=d.promisify(o.stat);class UploadHttpClient{constructor(){this.uploadHttpManager=new v.HttpManager(u.getUploadFileConcurrency(),"@actions/artifact-upload");this.statusReporter=new m.StatusReporter(1e4)}createArtifactInFileContainer(e,t){return n(this,void 0,void 0,(function*(){const r={Type:"actions_storage",Name:e};if(t&&t.retentionDays){const e=u.getRetentionDays();r.RetentionDays=l.getProperRetention(t.retentionDays,e)}const i=JSON.stringify(r,null,2);const o=l.getArtifactUrl();const s=this.uploadHttpManager.getClient(0);const a=l.getUploadHeaders("application/json",false);const c=new Map([[g.HttpCodes.Forbidden,"Artifact storage quota has been hit. Unable to upload any new artifacts"],[g.HttpCodes.BadRequest,`The artifact name ${e} is not valid. Request URL ${o}`]]);const d=yield b.retryHttpClientRequest("Create Artifact Container",(()=>n(this,void 0,void 0,(function*(){return s.post(o,i,a)}))),c);const p=yield d.readBody();return JSON.parse(p)}))}uploadArtifactToFileContainer(e,t,r){return n(this,void 0,void 0,(function*(){const i=u.getUploadFileConcurrency();const o=u.getUploadChunkSize();s.debug(`File Concurrency: ${i}, and Chunk Size: ${o}`);const a=[];let c=true;if(r){if(r.continueOnError===false){c=false}}for(const r of t){const t=new p.URL(e);t.searchParams.append("itemPath",r.uploadFilePath);a.push({file:r.absoluteFilePath,resourceUrl:t.toString(),maxChunkSize:o,continueOnError:c})}const l=[...new Array(i).keys()];const d=[];let m=0;let g=0;let v=0;let y=0;let b=false;this.statusReporter.setTotalNumberOfFilesToProcess(t.length);this.statusReporter.start();yield Promise.all(l.map((e=>n(this,void 0,void 0,(function*(){while(mo.createReadStream(t.file);d=false;u=r}else{a=()=>{const e=new c.PassThrough;e.end(n);return e};u=n.byteLength}const p=yield this.uploadChunk(e,t.resourceUrl,a,0,u-1,u,d,r);if(!p){i=false;l+=u;s.warning(`Aborting upload for ${t.file} due to failure`)}return{isSuccess:i,successfulUploadSize:u-l,totalSize:r}}else{const c=yield a.file();u=yield y.createGZipFileOnDisk(t.file,c.path);let p=c.path;if(r104857600){this.statusReporter.updateLargeFileStatus(t.file,n,u)}const c=n;const m=n+a-1;n+=t.maxChunkSize;if(h){l+=a;continue}const g=yield this.uploadChunk(e,t.resourceUrl,(()=>o.createReadStream(p,{start:c,end:m,autoClose:false})),c,m,u,d,r);if(!g){i=false;l+=a;s.warning(`Aborting upload for ${t.file} due to failure`);h=true}}yield c.cleanup();return{isSuccess:i,successfulUploadSize:u-l,totalSize:r}}}))}uploadChunk(e,t,r,i,o,a,c,d){return n(this,void 0,void 0,(function*(){const p=l.getUploadHeaders("application/octet-stream",true,c,d,o-i+1,l.getContentRange(i,o,a));const uploadChunkRequest=()=>n(this,void 0,void 0,(function*(){const n=this.uploadHttpManager.getClient(e);return yield n.sendStream("PUT",t,r(),p)}));let h=0;const m=u.getRetryLimit();const incrementAndCheckRetryLimit=e=>{h++;if(h>m){if(e){l.displayHttpDiagnostics(e)}s.info(`Retry limit has been reached for chunk at offset ${i} to ${t}`);return true}return false};const backOff=t=>n(this,void 0,void 0,(function*(){this.uploadHttpManager.disposeAndReplaceClient(e);if(t){s.info(`Backoff due to too many requests, retry #${h}. Waiting for ${t} milliseconds before continuing the upload`);yield l.sleep(t)}else{const e=l.getExponentialRetryTimeInMilliseconds(h);s.info(`Exponential backoff for retry #${h}. Waiting for ${e} milliseconds before continuing the upload at offset ${i}`);yield l.sleep(e)}s.info(`Finished backoff for retry #${h}, continuing with upload`);return}));while(h<=m){let r;try{r=yield uploadChunkRequest()}catch(t){s.info(`An error has been caught http-client index ${e}, retrying the upload`);console.log(t);if(incrementAndCheckRetryLimit()){return false}yield backOff();continue}yield r.readBody();if(l.isSuccessStatusCode(r.message.statusCode)){return true}else if(l.isRetryableStatusCode(r.message.statusCode)){s.info(`A ${r.message.statusCode} status code has been received, will attempt to retry the upload`);if(incrementAndCheckRetryLimit(r)){return false}l.isThrottledStatusCode(r.message.statusCode)?yield backOff(l.tryGetRetryAfterValueTimeInMilliseconds(r.message.headers)):yield backOff()}else{s.error(`Unexpected response. Unable to upload chunk to ${t}`);l.displayHttpDiagnostics(r);return false}}return false}))}patchArtifactSize(e,t){return n(this,void 0,void 0,(function*(){const r=new p.URL(l.getArtifactUrl());r.searchParams.append("artifactName",t);const i={Size:e};const o=JSON.stringify(i,null,2);s.debug(`URL is ${r.toString()}`);const a=this.uploadHttpManager.getClient(0);const c=l.getUploadHeaders("application/json",false);const u=new Map([[g.HttpCodes.NotFound,`An Artifact with the name ${t} was not found`]]);const d=yield b.retryHttpClientRequest("Finalize artifact upload",(()=>n(this,void 0,void 0,(function*(){return a.patch(r.toString(),o,c)}))),u);yield d.readBody();s.debug(`Artifact ${t} has been successfully uploaded, total size in bytes: ${e}`)}))}}t.UploadHttpClient=UploadHttpClient},183:function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const i=n(r(5747));const o=r(2186);const s=r(5622);const a=r(6327);function getUploadSpecification(e,t,r){a.checkArtifactName(e);const n=[];if(!i.existsSync(t)){throw new Error(`Provided rootDirectory ${t} does not exist`)}if(!i.lstatSync(t).isDirectory()){throw new Error(`Provided rootDirectory ${t} is not a valid directory`)}t=s.normalize(t);t=s.resolve(t);for(let c of r){if(!i.existsSync(c)){throw new Error(`File ${c} does not exist`)}if(!i.lstatSync(c).isDirectory()){c=s.normalize(c);c=s.resolve(c);if(!c.startsWith(t)){throw new Error(`The rootDirectory: ${t} is not a parent directory of the file: ${c}`)}const r=c.replace(t,"");a.checkArtifactFilePath(r);n.push({absoluteFilePath:c,uploadFilePath:s.join(e,r)})}else{o.debug(`Removing ${c} from rawSearchResults because it is a directory`)}}return n}t.getUploadSpecification=getUploadSpecification},6327:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});const i=r(2186);const o=r(5747);const s=r(9925);const a=r(3702);const c=r(2222);function getExponentialRetryTimeInMilliseconds(e){if(e<0){throw new Error("RetryCount should not be negative")}else if(e===0){return c.getInitialRetryIntervalInMilliseconds()}const t=c.getInitialRetryIntervalInMilliseconds()*c.getRetryMultiplier()*e;const r=t*c.getRetryMultiplier();return Math.random()*(r-t)+t}t.getExponentialRetryTimeInMilliseconds=getExponentialRetryTimeInMilliseconds;function parseEnvNumber(e){const t=Number(process.env[e]);if(Number.isNaN(t)||t<0){return undefined}return t}t.parseEnvNumber=parseEnvNumber;function getApiVersion(){return"6.0-preview"}t.getApiVersion=getApiVersion;function isSuccessStatusCode(e){if(!e){return false}return e>=200&&e<300}t.isSuccessStatusCode=isSuccessStatusCode;function isForbiddenStatusCode(e){if(!e){return false}return e===s.HttpCodes.Forbidden}t.isForbiddenStatusCode=isForbiddenStatusCode;function isRetryableStatusCode(e){if(!e){return false}const t=[s.HttpCodes.BadGateway,s.HttpCodes.GatewayTimeout,s.HttpCodes.InternalServerError,s.HttpCodes.ServiceUnavailable,s.HttpCodes.TooManyRequests,413];return t.includes(e)}t.isRetryableStatusCode=isRetryableStatusCode;function isThrottledStatusCode(e){if(!e){return false}return e===s.HttpCodes.TooManyRequests}t.isThrottledStatusCode=isThrottledStatusCode;function tryGetRetryAfterValueTimeInMilliseconds(e){if(e["retry-after"]){const t=Number(e["retry-after"]);if(!isNaN(t)){i.info(`Retry-After header is present with a value of ${t}`);return t*1e3}i.info(`Returned retry-after header value: ${t} is non-numeric and cannot be used`);return undefined}i.info(`No retry-after header was found. Dumping all headers for diagnostic purposes`);console.log(e);return undefined}t.tryGetRetryAfterValueTimeInMilliseconds=tryGetRetryAfterValueTimeInMilliseconds;function getContentRange(e,t,r){return`bytes ${e}-${t}/${r}`}t.getContentRange=getContentRange;function getDownloadHeaders(e,t,r){const n={};if(e){n["Content-Type"]=e}if(t){n["Connection"]="Keep-Alive";n["Keep-Alive"]="10"}if(r){n["Accept-Encoding"]="gzip";n["Accept"]=`application/octet-stream;api-version=${getApiVersion()}`}else{n["Accept"]=`application/json;api-version=${getApiVersion()}`}return n}t.getDownloadHeaders=getDownloadHeaders;function getUploadHeaders(e,t,r,n,i,o){const s={};s["Accept"]=`application/json;api-version=${getApiVersion()}`;if(e){s["Content-Type"]=e}if(t){s["Connection"]="Keep-Alive";s["Keep-Alive"]="10"}if(r){s["Content-Encoding"]="gzip";s["x-tfs-filelength"]=n}if(i){s["Content-Length"]=i}if(o){s["Content-Range"]=o}return s}t.getUploadHeaders=getUploadHeaders;function createHttpClient(e){return new s.HttpClient(e,[new a.BearerCredentialHandler(c.getRuntimeToken())])}t.createHttpClient=createHttpClient;function getArtifactUrl(){const e=`${c.getRuntimeUrl()}_apis/pipelines/workflows/${c.getWorkFlowRunId()}/artifacts?api-version=${getApiVersion()}`;i.debug(`Artifact Url: ${e}`);return e}t.getArtifactUrl=getArtifactUrl;function displayHttpDiagnostics(e){i.info(`##### Begin Diagnostic HTTP information #####\nStatus Code: ${e.message.statusCode}\nStatus Message: ${e.message.statusMessage}\nHeader Information: ${JSON.stringify(e.message.headers,undefined,2)}\n###### End Diagnostic HTTP information ######`)}t.displayHttpDiagnostics=displayHttpDiagnostics;const l=['"',":","<",">","|","*","?"];const u=[...l,"\\","/"];function checkArtifactName(e){if(!e){throw new Error(`Artifact name: ${e}, is incorrectly provided`)}for(const t of u){if(e.includes(t)){throw new Error(`Artifact name is not valid: ${e}. Contains character: "${t}". Invalid artifact name characters include: ${u.toString()}.`)}}}t.checkArtifactName=checkArtifactName;function checkArtifactFilePath(e){if(!e){throw new Error(`Artifact path: ${e}, is incorrectly provided`)}for(const t of l){if(e.includes(t)){throw new Error(`Artifact path is not valid: ${e}. Contains character: "${t}". Invalid characters include: ${l.toString()}.`)}}}t.checkArtifactFilePath=checkArtifactFilePath;function createDirectoriesForArtifact(e){return n(this,void 0,void 0,(function*(){for(const t of e){yield o.promises.mkdir(t,{recursive:true})}}))}t.createDirectoriesForArtifact=createDirectoriesForArtifact;function createEmptyFilesForArtifact(e){return n(this,void 0,void 0,(function*(){for(const t of e){yield(yield o.promises.open(t,"w")).close()}}))}t.createEmptyFilesForArtifact=createEmptyFilesForArtifact;function getFileSize(e){return n(this,void 0,void 0,(function*(){const t=yield o.promises.stat(e);i.debug(`${e} size:(${t.size}) blksize:(${t.blksize}) blocks:(${t.blocks})`);return t.size}))}t.getFileSize=getFileSize;function rmFile(e){return n(this,void 0,void 0,(function*(){yield o.promises.unlink(e)}))}t.rmFile=rmFile;function getProperRetention(e,t){if(e<0){throw new Error("Invalid retention, minimum value is 1.")}let r=e;if(t){const e=parseInt(t);if(!isNaN(e)&&esetTimeout(t,e)))}))}t.sleep=sleep},7351:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const s=o(r(2087));const a=r(5278);function issueCommand(e,t,r){const n=new Command(e,t,r);process.stdout.write(n.toString()+s.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const c="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=c+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const n=this.properties[r];if(n){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(n)}`}}}}e+=`${c}${escapeData(this.message)}`;return e}}function escapeData(e){return a.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return a.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getIDToken=t.getState=t.saveState=t.group=t.endGroup=t.startGroup=t.info=t.notice=t.warning=t.error=t.debug=t.isDebug=t.setFailed=t.setCommandEcho=t.setOutput=t.getBooleanInput=t.getMultilineInput=t.getInput=t.addPath=t.setSecret=t.exportVariable=t.ExitCode=void 0;const a=r(7351);const c=r(717);const l=r(5278);const u=o(r(2087));const d=o(r(5622));const p=r(8041);var h;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(h=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const r=l.toCommandValue(t);process.env[e]=r;const n=process.env["GITHUB_ENV"]||"";if(n){const t="_GitHubActionsFileCommandDelimeter_";const n=`${e}<<${t}${u.EOL}${r}${u.EOL}${t}`;c.issueCommand("ENV",n)}else{a.issueCommand("set-env",{name:e},r)}}t.exportVariable=exportVariable;function setSecret(e){a.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){c.issueCommand("PATH",e)}else{a.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${d.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r){throw new Error(`Input required and not supplied: ${e}`)}if(t&&t.trimWhitespace===false){return r}return r.trim()}t.getInput=getInput;function getMultilineInput(e,t){const r=getInput(e,t).split("\n").filter((e=>e!==""));return r}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const r=["true","True","TRUE"];const n=["false","False","FALSE"];const i=getInput(e,t);if(r.includes(i))return true;if(n.includes(i))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}t.getBooleanInput=getBooleanInput;function setOutput(e,t){process.stdout.write(u.EOL);a.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){a.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=h.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){a.issueCommand("debug",{},e)}t.debug=debug;function error(e,t={}){a.issueCommand("error",l.toCommandProperties(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){a.issueCommand("warning",l.toCommandProperties(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){a.issueCommand("notice",l.toCommandProperties(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+u.EOL)}t.info=info;function startGroup(e){a.issue("group",e)}t.startGroup=startGroup;function endGroup(){a.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return s(this,void 0,void 0,(function*(){startGroup(e);let r;try{r=yield t()}finally{endGroup()}return r}))}t.group=group;function saveState(e,t){a.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState;function getIDToken(e){return s(this,void 0,void 0,(function*(){return yield p.OidcClient.getIDToken(e)}))}t.getIDToken=getIDToken},717:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issueCommand=void 0;const s=o(r(5747));const a=o(r(2087));const c=r(5278);function issueCommand(e,t){const r=process.env[`GITHUB_${e}`];if(!r){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!s.existsSync(r)){throw new Error(`Missing file at path: ${r}`)}s.appendFileSync(r,`${c.toCommandValue(t)}${a.EOL}`,{encoding:"utf8"})}t.issueCommand=issueCommand},8041:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.OidcClient=void 0;const i=r(9925);const o=r(3702);const s=r(2186);class OidcClient{static createHttpClient(e=true,t=10){const r={allowRetries:e,maxRetries:t};return new i.HttpClient("actions/oidc-client",[new o.BearerCredentialHandler(OidcClient.getRequestToken())],r)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var t;return n(this,void 0,void 0,(function*(){const r=OidcClient.createHttpClient();const n=yield r.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)}));const i=(t=n.result)===null||t===void 0?void 0:t.value;if(!i){throw new Error("Response json body do not have ID Token field")}return i}))}static getIDToken(e){return n(this,void 0,void 0,(function*(){try{let t=OidcClient.getIDTokenUrl();if(e){const r=encodeURIComponent(e);t=`${t}&audience=${r}`}s.debug(`ID token url is ${t}`);const r=yield OidcClient.getCall(t);s.setSecret(r);return r}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}t.OidcClient=OidcClient},5278:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toCommandProperties=t.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}t.toCommandProperties=toCommandProperties},1514:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getExecOutput=t.exec=void 0;const a=r(4304);const c=o(r(8159));function exec(e,t,r){return s(this,void 0,void 0,(function*(){const n=c.argStringToArray(e);if(n.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const i=n[0];t=n.slice(1).concat(t||[]);const o=new c.ToolRunner(i,t,r);return o.exec()}))}t.exec=exec;function getExecOutput(e,t,r){var n,i;return s(this,void 0,void 0,(function*(){let o="";let s="";const c=new a.StringDecoder("utf8");const l=new a.StringDecoder("utf8");const u=(n=r===null||r===void 0?void 0:r.listeners)===null||n===void 0?void 0:n.stdout;const d=(i=r===null||r===void 0?void 0:r.listeners)===null||i===void 0?void 0:i.stderr;const stdErrListener=e=>{s+=l.write(e);if(d){d(e)}};const stdOutListener=e=>{o+=c.write(e);if(u){u(e)}};const p=Object.assign(Object.assign({},r===null||r===void 0?void 0:r.listeners),{stdout:stdOutListener,stderr:stdErrListener});const h=yield exec(e,t,Object.assign(Object.assign({},r),{listeners:p}));o+=c.end();s+=l.end();return{exitCode:h,stdout:o,stderr:s}}))}t.getExecOutput=getExecOutput},8159:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.argStringToArray=t.ToolRunner=void 0;const a=o(r(2087));const c=o(r(8614));const l=o(r(3129));const u=o(r(5622));const d=o(r(7436));const p=o(r(1962));const h=r(8213);const m=process.platform==="win32";class ToolRunner extends c.EventEmitter{constructor(e,t,r){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=r||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const r=this._getSpawnFileName();const n=this._getSpawnArgs(e);let i=t?"":"[command]";if(m){if(this._isCmdFile()){i+=r;for(const e of n){i+=` ${e}`}}else if(e.windowsVerbatimArguments){i+=`"${r}"`;for(const e of n){i+=` ${e}`}}else{i+=this._windowsQuoteCmdArg(r);for(const e of n){i+=` ${this._windowsQuoteCmdArg(e)}`}}}else{i+=r;for(const e of n){i+=` ${e}`}}return i}_processLineBuffer(e,t,r){try{let n=t+e.toString();let i=n.indexOf(a.EOL);while(i>-1){const e=n.substring(0,i);r(e);n=n.substring(i+a.EOL.length);i=n.indexOf(a.EOL)}return n}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(m){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(m){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const r of this.args){t+=" ";t+=e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r)}t+='"';return[t]}}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let r=false;for(const n of e){if(t.some((e=>e===n))){r=true;break}}if(!r){return e}let n='"';let i=true;for(let t=e.length;t>0;t--){n+=e[t-1];if(i&&e[t-1]==="\\"){n+="\\"}else if(e[t-1]==='"'){i=true;n+='"'}else{i=false}}n+='"';return n.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let t='"';let r=true;for(let n=e.length;n>0;n--){t+=e[n-1];if(r&&e[n-1]==="\\"){t+="\\"}else if(e[n-1]==='"'){r=true;t+="\\"}else{r=false}}t+='"';return t.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};t.outStream=e.outStream||process.stdout;t.errStream=e.errStream||process.stderr;return t}_getSpawnOptions(e,t){e=e||{};const r={};r.cwd=e.cwd;r.env=e.env;r["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){r.argv0=`"${t}"`}return r}exec(){return s(this,void 0,void 0,(function*(){if(!p.isRooted(this.toolPath)&&(this.toolPath.includes("/")||m&&this.toolPath.includes("\\"))){this.toolPath=u.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield d.which(this.toolPath,true);return new Promise(((e,t)=>s(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const r=this._cloneExecOptions(this.options);if(!r.silent&&r.outStream){r.outStream.write(this._getCommandString(r)+a.EOL)}const n=new ExecState(r,this.toolPath);n.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield p.exists(this.options.cwd))){return t(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const i=this._getSpawnFileName();const o=l.spawn(i,this._getSpawnArgs(r),this._getSpawnOptions(this.options,i));let s="";if(o.stdout){o.stdout.on("data",(e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!r.silent&&r.outStream){r.outStream.write(e)}s=this._processLineBuffer(e,s,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let c="";if(o.stderr){o.stderr.on("data",(e=>{n.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!r.silent&&r.errStream&&r.outStream){const t=r.failOnStdErr?r.errStream:r.outStream;t.write(e)}c=this._processLineBuffer(e,c,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}o.on("error",(e=>{n.processError=e.message;n.processExited=true;n.processClosed=true;n.CheckComplete()}));o.on("exit",(e=>{n.processExitCode=e;n.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);n.CheckComplete()}));o.on("close",(e=>{n.processExitCode=e;n.processExited=true;n.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);n.CheckComplete()}));n.on("done",((r,n)=>{if(s.length>0){this.emit("stdline",s)}if(c.length>0){this.emit("errline",c)}o.removeAllListeners();if(r){t(r)}else{e(n)}}));if(this.options.input){if(!o.stdin){throw new Error("child process missing stdin")}o.stdin.end(this.options.input)}}))))}))}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let r=false;let n=false;let i="";function append(e){if(n&&e!=='"'){i+="\\"}i+=e;n=false}for(let o=0;o0){t.push(i);i=""}continue}append(s)}if(i.length>0){t.push(i.trim())}return t}t.argStringToArray=argStringToArray;class ExecState extends c.EventEmitter{constructor(e,t){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!t){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=t;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=h.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(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}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const t=`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(t)}e._setResult()}}},3702:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from(this.username+":"+this.password).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,t,r){return null}}t.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Bearer "+this.token}canHandleAuthentication(e){return false}handleAuthentication(e,t,r){return null}}t.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from("PAT:"+this.token).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,t,r){return null}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},9925:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(8605);const i=r(7211);const o=r(6443);let s;var a;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(a=t.HttpCodes||(t.HttpCodes={}));var c;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(c=t.Headers||(t.Headers={}));var l;(function(e){e["ApplicationJson"]="application/json"})(l=t.MediaTypes||(t.MediaTypes={}));function getProxyUrl(e){let t=o.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const u=[a.MovedPermanently,a.ResourceMoved,a.SeeOther,a.TemporaryRedirect,a.PermanentRedirect];const d=[a.BadGateway,a.ServiceUnavailable,a.GatewayTimeout];const p=["OPTIONS","GET","DELETE","HEAD"];const h=10;const m=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return new Promise((async(e,t)=>{let r=Buffer.alloc(0);this.message.on("data",(e=>{r=Buffer.concat([r,e])}));this.message.on("end",(()=>{e(r.toString())}))}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){let t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,r){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=r;if(r){if(r.ignoreSslError!=null){this._ignoreSslError=r.ignoreSslError}this._socketTimeout=r.socketTimeout;if(r.allowRedirects!=null){this._allowRedirects=r.allowRedirects}if(r.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=r.allowRedirectDowngrade}if(r.maxRedirects!=null){this._maxRedirects=Math.max(r.maxRedirects,0)}if(r.keepAlive!=null){this._keepAlive=r.keepAlive}if(r.allowRetries!=null){this._allowRetries=r.allowRetries}if(r.maxRetries!=null){this._maxRetries=r.maxRetries}}}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,r){return this.request("POST",e,t,r||{})}patch(e,t,r){return this.request("PATCH",e,t,r||{})}put(e,t,r){return this.request("PUT",e,t,r||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,r,n){return this.request(e,t,r,n)}async getJson(e,t={}){t[c.Accept]=this._getExistingOrDefaultHeader(t,c.Accept,l.ApplicationJson);let r=await this.get(e,t);return this._processResponse(r,this.requestOptions)}async postJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[c.Accept]=this._getExistingOrDefaultHeader(r,c.Accept,l.ApplicationJson);r[c.ContentType]=this._getExistingOrDefaultHeader(r,c.ContentType,l.ApplicationJson);let i=await this.post(e,n,r);return this._processResponse(i,this.requestOptions)}async putJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[c.Accept]=this._getExistingOrDefaultHeader(r,c.Accept,l.ApplicationJson);r[c.ContentType]=this._getExistingOrDefaultHeader(r,c.ContentType,l.ApplicationJson);let i=await this.put(e,n,r);return this._processResponse(i,this.requestOptions)}async patchJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[c.Accept]=this._getExistingOrDefaultHeader(r,c.Accept,l.ApplicationJson);r[c.ContentType]=this._getExistingOrDefaultHeader(r,c.ContentType,l.ApplicationJson);let i=await this.patch(e,n,r);return this._processResponse(i,this.requestOptions)}async request(e,t,r,n){if(this._disposed){throw new Error("Client has already been disposed.")}let i=new URL(t);let o=this._prepareRequest(e,i,n);let s=this._allowRetries&&p.indexOf(e)!=-1?this._maxRetries+1:1;let c=0;let l;while(c0){const s=l.message.headers["location"];if(!s){break}let a=new URL(s);if(i.protocol=="https:"&&i.protocol!=a.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}await l.readBody();if(a.hostname!==i.hostname){for(let e in n){if(e.toLowerCase()==="authorization"){delete n[e]}}}o=this._prepareRequest(e,a,n);l=await this.requestRaw(o,r);t--}if(d.indexOf(l.message.statusCode)==-1){return l}c+=1;if(c{let callbackForResult=function(e,t){if(e){n(e)}r(t)};this.requestRawWithCallback(e,t,callbackForResult)}))}requestRawWithCallback(e,t,r){let n;if(typeof t==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let i=false;let handleResult=(e,t)=>{if(!i){i=true;r(e,t)}};let o=e.httpModule.request(e.options,(e=>{let t=new HttpClientResponse(e);handleResult(null,t)}));o.on("socket",(e=>{n=e}));o.setTimeout(this._socketTimeout||3*6e4,(()=>{if(n){n.end()}handleResult(new Error("Request timeout: "+e.options.path),null)}));o.on("error",(function(e){handleResult(e,null)}));if(t&&typeof t==="string"){o.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){o.end()}));t.pipe(o)}else{o.end()}}getAgent(e){let t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,r){const o={};o.parsedUrl=t;const s=o.parsedUrl.protocol==="https:";o.httpModule=s?i:n;const a=s?443:80;o.options={};o.options.host=o.parsedUrl.hostname;o.options.port=o.parsedUrl.port?parseInt(o.parsedUrl.port):a;o.options.path=(o.parsedUrl.pathname||"")+(o.parsedUrl.search||"");o.options.method=e;o.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){o.options.headers["user-agent"]=this.userAgent}o.options.agent=this._getAgent(o.parsedUrl);if(this.handlers){this.handlers.forEach((e=>{e.prepareRequest(o.options)}))}return o}_mergeHeaders(e){const lowercaseKeys=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,r){const lowercaseKeys=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{});let n;if(this.requestOptions&&this.requestOptions.headers){n=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||n||r}_getAgent(e){let t;let a=o.getProxyUrl(e);let c=a&&a.hostname;if(this._keepAlive&&c){t=this._proxyAgent}if(this._keepAlive&&!c){t=this._agent}if(!!t){return t}const l=e.protocol==="https:";let u=100;if(!!this.requestOptions){u=this.requestOptions.maxSockets||n.globalAgent.maxSockets}if(c){if(!s){s=r(4294)}const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{...(a.username||a.password)&&{proxyAuth:`${a.username}:${a.password}`},host:a.hostname,port:a.port}};let n;const i=a.protocol==="https:";if(l){n=i?s.httpsOverHttps:s.httpsOverHttp}else{n=i?s.httpOverHttps:s.httpOverHttp}t=n(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=l?new i.Agent(e):new n.Agent(e);this._agent=t}if(!t){t=l?i.globalAgent:n.globalAgent}if(l&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){e=Math.min(h,e);const t=m*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}static dateTimeDeserializer(e,t){if(typeof t==="string"){let e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}async _processResponse(e,t){return new Promise((async(r,n)=>{const i=e.message.statusCode;const o={statusCode:i,result:null,headers:{}};if(i==a.NotFound){r(o)}let s;let c;try{c=await e.readBody();if(c&&c.length>0){if(t&&t.deserializeDates){s=JSON.parse(c,HttpClient.dateTimeDeserializer)}else{s=JSON.parse(c)}o.result=s}o.headers=e.message.headers}catch(e){}if(i>299){let e;if(s&&s.message){e=s.message}else if(c&&c.length>0){e=c}else{e="Failed request: ("+i+")"}let t=new HttpClientError(e,i);t.result=o.result;n(t)}else{r(o)}}))}}t.HttpClient=HttpClient},6443:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function getProxyUrl(e){let t=e.protocol==="https:";let r;if(checkBypass(e)){return r}let n;if(t){n=process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{n=process.env["http_proxy"]||process.env["HTTP_PROXY"]}if(n){r=new URL(n)}return r}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}let t=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!t){return false}let r;if(e.port){r=Number(e.port)}else if(e.protocol==="http:"){r=80}else if(e.protocol==="https:"){r=443}let n=[e.hostname.toUpperCase()];if(typeof r==="number"){n.push(`${n[0]}:${r}`)}for(let e of t.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(n.some((t=>t===e))){return true}}return false}t.checkBypass=checkBypass},1962:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var a;Object.defineProperty(t,"__esModule",{value:true});t.getCmdPath=t.tryGetExecutablePath=t.isRooted=t.isDirectory=t.exists=t.IS_WINDOWS=t.unlink=t.symlink=t.stat=t.rmdir=t.rename=t.readlink=t.readdir=t.mkdir=t.lstat=t.copyFile=t.chmod=void 0;const c=o(r(5747));const l=o(r(5622));a=c.promises,t.chmod=a.chmod,t.copyFile=a.copyFile,t.lstat=a.lstat,t.mkdir=a.mkdir,t.readdir=a.readdir,t.readlink=a.readlink,t.rename=a.rename,t.rmdir=a.rmdir,t.stat=a.stat,t.symlink=a.symlink,t.unlink=a.unlink;t.IS_WINDOWS=process.platform==="win32";function exists(e){return s(this,void 0,void 0,(function*(){try{yield t.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}t.exists=exists;function isDirectory(e,r=false){return s(this,void 0,void 0,(function*(){const n=r?yield t.stat(e):yield t.lstat(e);return n.isDirectory()}))}t.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(t.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.isRooted=isRooted;function tryGetExecutablePath(e,r){return s(this,void 0,void 0,(function*(){let n=undefined;try{n=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(t.IS_WINDOWS){const t=l.extname(e).toUpperCase();if(r.some((e=>e.toUpperCase()===t))){return e}}else{if(isUnixExecutable(n)){return e}}}const i=e;for(const o of r){e=i+o;n=undefined;try{n=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(t.IS_WINDOWS){try{const r=l.dirname(e);const n=l.basename(e).toUpperCase();for(const i of yield t.readdir(r)){if(n===i.toUpperCase()){e=l.join(r,i);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(n)){return e}}}}return""}))}t.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(t.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}function getCmdPath(){var e;return(e=process.env["COMSPEC"])!==null&&e!==void 0?e:`cmd.exe`}t.getCmdPath=getCmdPath},7436:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.findInPath=t.which=t.mkdirP=t.rmRF=t.mv=t.cp=void 0;const a=r(2357);const c=o(r(3129));const l=o(r(5622));const u=r(1669);const d=o(r(1962));const p=u.promisify(c.exec);const h=u.promisify(c.execFile);function cp(e,t,r={}){return s(this,void 0,void 0,(function*(){const{force:n,recursive:i,copySourceDirectory:o}=readCopyOptions(r);const s=(yield d.exists(t))?yield d.stat(t):null;if(s&&s.isFile()&&!n){return}const a=s&&s.isDirectory()&&o?l.join(t,l.basename(e)):t;if(!(yield d.exists(e))){throw new Error(`no such file or directory: ${e}`)}const c=yield d.stat(e);if(c.isDirectory()){if(!i){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,a,0,n)}}else{if(l.relative(e,a)===""){throw new Error(`'${a}' and '${e}' are the same file`)}yield copyFile(e,a,n)}}))}t.cp=cp;function mv(e,t,r={}){return s(this,void 0,void 0,(function*(){if(yield d.exists(t)){let n=true;if(yield d.isDirectory(t)){t=l.join(t,l.basename(e));n=yield d.exists(t)}if(n){if(r.force==null||r.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(l.dirname(t));yield d.rename(e,t)}))}t.mv=mv;function rmRF(e){return s(this,void 0,void 0,(function*(){if(d.IS_WINDOWS){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}try{const t=d.getCmdPath();if(yield d.isDirectory(e,true)){yield p(`${t} /s /c "rd /s /q "%inputPath%""`,{env:{inputPath:e}})}else{yield p(`${t} /s /c "del /f /a "%inputPath%""`,{env:{inputPath:e}})}}catch(e){if(e.code!=="ENOENT")throw e}try{yield d.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let t=false;try{t=yield d.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(t){yield h(`rm`,[`-rf`,`${e}`])}else{yield d.unlink(e)}}}))}t.rmRF=rmRF;function mkdirP(e){return s(this,void 0,void 0,(function*(){a.ok(e,"a path argument must be provided");yield d.mkdir(e,{recursive:true})}))}t.mkdirP=mkdirP;function which(e,t){return s(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(t){const t=yield which(e,false);if(!t){if(d.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. 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.`)}else{throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}return t}const r=yield findInPath(e);if(r&&r.length>0){return r[0]}return""}))}t.which=which;function findInPath(e){return s(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const t=[];if(d.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(l.delimiter)){if(e){t.push(e)}}}if(d.isRooted(e)){const r=yield d.tryGetExecutablePath(e,t);if(r){return[r]}return[]}if(e.includes(l.sep)){return[]}const r=[];if(process.env.PATH){for(const e of process.env.PATH.split(l.delimiter)){if(e){r.push(e)}}}const n=[];for(const i of r){const r=yield d.tryGetExecutablePath(l.join(i,e),t);if(r){n.push(r)}}return n}))}t.findInPath=findInPath;function readCopyOptions(e){const t=e.force==null?true:e.force;const r=Boolean(e.recursive);const n=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:t,recursive:r,copySourceDirectory:n}}function cpDirRecursive(e,t,r,n){return s(this,void 0,void 0,(function*(){if(r>=255)return;r++;yield mkdirP(t);const i=yield d.readdir(e);for(const o of i){const i=`${e}/${o}`;const s=`${t}/${o}`;const a=yield d.lstat(i);if(a.isDirectory()){yield cpDirRecursive(i,s,r,n)}else{yield copyFile(i,s,n)}}yield d.chmod(t,(yield d.stat(e)).mode)}))}function copyFile(e,t,r){return s(this,void 0,void 0,(function*(){if((yield d.lstat(e)).isSymbolicLink()){try{yield d.lstat(t);yield d.unlink(t)}catch(e){if(e.code==="EPERM"){yield d.chmod(t,"0666");yield d.unlink(t)}}const r=yield d.readlink(e);yield d.symlink(r,t,d.IS_WINDOWS?"junction":null)}else if(!(yield d.exists(t))||r){yield d.copyFile(e,t)}}))}},9417:e=>{"use strict";e.exports=balanced;function balanced(e,t,r){if(e instanceof RegExp)e=maybeMatch(e,r);if(t instanceof RegExp)t=maybeMatch(t,r);var n=range(e,t,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+e.length,n[1]),post:r.slice(n[1]+t.length)}}function maybeMatch(e,t){var r=t.match(e);return r?r[0]:null}balanced.range=range;function range(e,t,r){var n,i,o,s,a;var c=r.indexOf(e);var l=r.indexOf(t,c+1);var u=c;if(c>=0&&l>0){if(e===t){return[c,l]}n=[];o=r.length;while(u>=0&&!a){if(u==c){n.push(u);c=r.indexOf(e,u+1)}else if(n.length==1){a=[n.pop(),l]}else{i=n.pop();if(i=0?c:l}if(n.length){a=[o,s]}}return a}},3717:(e,t,r)=>{var n=r(6891);var i=r(9417);e.exports=expandTop;var o="\0SLASH"+Math.random()+"\0";var s="\0OPEN"+Math.random()+"\0";var a="\0CLOSE"+Math.random()+"\0";var c="\0COMMA"+Math.random()+"\0";var l="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(o).split("\\{").join(s).split("\\}").join(a).split("\\,").join(c).split("\\.").join(l)}function unescapeBraces(e){return e.split(o).join("\\").split(s).join("{").split(a).join("}").split(c).join(",").split(l).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var r=i("{","}",e);if(!r)return e.split(",");var n=r.pre;var o=r.body;var s=r.post;var a=n.split(",");a[a.length-1]+="{"+o+"}";var c=parseCommaParts(s);if(s.length){a[a.length-1]+=c.shift();a.push.apply(a,c)}t.push.apply(t,a);return t}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function identity(e){return e}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var r=[];var o=i("{","}",e);if(!o||/\$$/.test(o.pre))return[e];var s=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(o.body);var c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(o.body);var l=s||c;var u=o.body.indexOf(",")>=0;if(!l&&!u){if(o.post.match(/,.*\}/)){e=o.pre+"{"+o.body+a+o.post;return expand(e)}return[e]}var d;if(l){d=o.body.split(/\.\./)}else{d=parseCommaParts(o.body);if(d.length===1){d=expand(d[0],false).map(embrace);if(d.length===1){var p=o.post.length?expand(o.post,false):[""];return p.map((function(e){return o.pre+d[0]+e}))}}}var h=o.pre;var p=o.post.length?expand(o.post,false):[""];var m;if(l){var g=numeric(d[0]);var v=numeric(d[1]);var y=Math.max(d[0].length,d[1].length);var b=d.length==3?Math.abs(numeric(d[2])):1;var w=lte;var _=v0){var x=new Array(O+1).join("0");if(E<0)C="-"+x+C.slice(1);else C=x+C}}}m.push(C)}}else{m=n(d,(function(e){return expand(e,false)}))}for(var A=0;A{var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],r=0;r{e.exports=function(e,r){var n=[];for(var i=0;i{(function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(e,t){return e<>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number){return r.rotl(e,8)&16711935|r.rotl(e,24)&4278255360}for(var t=0;t0;e--)t.push(Math.floor(Math.random()*256));return t},bytesToWords:function(e){for(var t=[],r=0,n=0;r>>5]|=e[r]<<24-n%32;return t},wordsToBytes:function(e){for(var t=[],r=0;r>>5]>>>24-r%32&255);return t},bytesToHex:function(e){for(var t=[],r=0;r>>4).toString(16));t.push((e[r]&15).toString(16))}return t.join("")},hexToBytes:function(e){for(var t=[],r=0;r>>6*(3-o)&63));else r.push("=")}return r.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var r=[],n=0,i=0;n>>6-i*2)}return r}};e.exports=r})()},6863:(e,t,r)=>{e.exports=realpath;realpath.realpath=realpath;realpath.sync=realpathSync;realpath.realpathSync=realpathSync;realpath.monkeypatch=monkeypatch;realpath.unmonkeypatch=unmonkeypatch;var n=r(5747);var i=n.realpath;var o=n.realpathSync;var s=process.version;var a=/^v[0-5]\./.test(s);var c=r(1734);function newError(e){return e&&e.syscall==="realpath"&&(e.code==="ELOOP"||e.code==="ENOMEM"||e.code==="ENAMETOOLONG")}function realpath(e,t,r){if(a){return i(e,t,r)}if(typeof t==="function"){r=t;t=null}i(e,t,(function(n,i){if(newError(n)){c.realpath(e,t,r)}else{r(n,i)}}))}function realpathSync(e,t){if(a){return o(e,t)}try{return o(e,t)}catch(r){if(newError(r)){return c.realpathSync(e,t)}else{throw r}}}function monkeypatch(){n.realpath=realpath;n.realpathSync=realpathSync}function unmonkeypatch(){n.realpath=i;n.realpathSync=o}},1734:(e,t,r)=>{var n=r(5622);var i=process.platform==="win32";var o=r(5747);var s=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function rethrow(){var e;if(s){var t=new Error;e=debugCallback}else e=missingCallback;return e;function debugCallback(e){if(e){t.message=e.message;e=t;missingCallback(e)}}function missingCallback(e){if(e){if(process.throwDeprecation)throw e;else if(!process.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);if(process.traceDeprecation)console.trace(t);else console.error(t)}}}}function maybeCallback(e){return typeof e==="function"?e:rethrow()}var a=n.normalize;if(i){var c=/(.*?)(?:[\/\\]+|$)/g}else{var c=/(.*?)(?:[\/]+|$)/g}if(i){var l=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/}else{var l=/^[\/]*/}t.realpathSync=function realpathSync(e,t){e=n.resolve(e);if(t&&Object.prototype.hasOwnProperty.call(t,e)){return t[e]}var r=e,s={},a={};var u;var d;var p;var h;start();function start(){var t=l.exec(e);u=t[0].length;d=t[0];p=t[0];h="";if(i&&!a[p]){o.lstatSync(p);a[p]=true}}while(u=e.length){if(t)t[s]=e;return r(null,e)}c.lastIndex=d;var n=c.exec(e);m=p;p+=n[0];h=m+n[1];d=c.lastIndex;if(u[h]||t&&t[h]===h){return process.nextTick(LOOP)}if(t&&Object.prototype.hasOwnProperty.call(t,h)){return gotResolvedLink(t[h])}return o.lstat(h,gotStat)}function gotStat(e,n){if(e)return r(e);if(!n.isSymbolicLink()){u[h]=true;if(t)t[h]=h;return process.nextTick(LOOP)}if(!i){var s=n.dev.toString(32)+":"+n.ino.toString(32);if(a.hasOwnProperty(s)){return gotTarget(null,a[s],h)}}o.stat(h,(function(e){if(e)return r(e);o.readlink(h,(function(e,t){if(!i)a[s]=t;gotTarget(e,t)}))}))}function gotTarget(e,i,o){if(e)return r(e);var s=n.resolve(m,i);if(t)t[o]=s;gotResolvedLink(s)}function gotResolvedLink(t){e=n.resolve(t,e.slice(d));start()}}},7625:(e,t,r)=>{t.setopts=setopts;t.ownProp=ownProp;t.makeAbs=makeAbs;t.finish=finish;t.mark=mark;t.isIgnored=isIgnored;t.childrenIgnored=childrenIgnored;function ownProp(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var n=r(5747);var i=r(5622);var o=r(3973);var s=r(8714);var a=o.Minimatch;function alphasort(e,t){return e.localeCompare(t,"en")}function setupIgnores(e,t){e.ignore=t.ignore||[];if(!Array.isArray(e.ignore))e.ignore=[e.ignore];if(e.ignore.length){e.ignore=e.ignore.map(ignoreMap)}}function ignoreMap(e){var t=null;if(e.slice(-3)==="/**"){var r=e.replace(/(\/\*\*)+$/,"");t=new a(r,{dot:true})}return{matcher:new a(e,{dot:true}),gmatcher:t}}function setopts(e,t,r){if(!r)r={};if(r.matchBase&&-1===t.indexOf("/")){if(r.noglobstar){throw new Error("base matching requires globstar")}t="**/"+t}e.silent=!!r.silent;e.pattern=t;e.strict=r.strict!==false;e.realpath=!!r.realpath;e.realpathCache=r.realpathCache||Object.create(null);e.follow=!!r.follow;e.dot=!!r.dot;e.mark=!!r.mark;e.nodir=!!r.nodir;if(e.nodir)e.mark=true;e.sync=!!r.sync;e.nounique=!!r.nounique;e.nonull=!!r.nonull;e.nosort=!!r.nosort;e.nocase=!!r.nocase;e.stat=!!r.stat;e.noprocess=!!r.noprocess;e.absolute=!!r.absolute;e.fs=r.fs||n;e.maxLength=r.maxLength||Infinity;e.cache=r.cache||Object.create(null);e.statCache=r.statCache||Object.create(null);e.symlinks=r.symlinks||Object.create(null);setupIgnores(e,r);e.changedCwd=false;var o=process.cwd();if(!ownProp(r,"cwd"))e.cwd=o;else{e.cwd=i.resolve(r.cwd);e.changedCwd=e.cwd!==o}e.root=r.root||i.resolve(e.cwd,"/");e.root=i.resolve(e.root);if(process.platform==="win32")e.root=e.root.replace(/\\/g,"/");e.cwdAbs=s(e.cwd)?e.cwd:makeAbs(e,e.cwd);if(process.platform==="win32")e.cwdAbs=e.cwdAbs.replace(/\\/g,"/");e.nomount=!!r.nomount;r.nonegate=true;r.nocomment=true;e.minimatch=new a(t,r);e.options=e.minimatch.options}function finish(e){var t=e.nounique;var r=t?[]:Object.create(null);for(var n=0,i=e.matches.length;n{e.exports=glob;var n=r(6863);var i=r(3973);var o=i.Minimatch;var s=r(4124);var a=r(8614).EventEmitter;var c=r(5622);var l=r(2357);var u=r(8714);var d=r(9010);var p=r(7625);var h=p.setopts;var m=p.ownProp;var g=r(2492);var v=r(1669);var y=p.childrenIgnored;var b=p.isIgnored;var w=r(1223);function glob(e,t,r){if(typeof t==="function")r=t,t={};if(!t)t={};if(t.sync){if(r)throw new TypeError("callback provided to sync glob");return d(e,t)}return new Glob(e,t,r)}glob.sync=d;var _=glob.GlobSync=d.GlobSync;glob.glob=glob;function extend(e,t){if(t===null||typeof t!=="object"){return e}var r=Object.keys(t);var n=r.length;while(n--){e[r[n]]=t[r[n]]}return e}glob.hasMagic=function(e,t){var r=extend({},t);r.noprocess=true;var n=new Glob(e,r);var i=n.minimatch.set;if(!e)return false;if(i.length>1)return true;for(var o=0;othis.maxLength)return t();if(!this.stat&&m(this.cache,r)){var i=this.cache[r];if(Array.isArray(i))i="DIR";if(!n||i==="DIR")return t(null,i);if(n&&i==="FILE")return t()}var o;var s=this.statCache[r];if(s!==undefined){if(s===false)return t(null,s);else{var a=s.isDirectory()?"DIR":"FILE";if(n&&a==="FILE")return t();else return t(null,a,s)}}var c=this;var l=g("stat\0"+r,lstatcb_);if(l)c.fs.lstat(r,l);function lstatcb_(n,i){if(i&&i.isSymbolicLink()){return c.fs.stat(r,(function(n,o){if(n)c._stat2(e,r,null,i,t);else c._stat2(e,r,n,o,t)}))}else{c._stat2(e,r,n,i,t)}}};Glob.prototype._stat2=function(e,t,r,n,i){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR")){this.statCache[t]=false;return i()}var o=e.slice(-1)==="/";this.statCache[t]=n;if(t.slice(-1)==="/"&&n&&!n.isDirectory())return i(null,false,n);var s=true;if(n)s=n.isDirectory()?"DIR":"FILE";this.cache[t]=this.cache[t]||s;if(o&&s==="FILE")return i();return i(null,s,n)}},9010:(e,t,r)=>{e.exports=globSync;globSync.GlobSync=GlobSync;var n=r(6863);var i=r(3973);var o=i.Minimatch;var s=r(1957).Glob;var a=r(1669);var c=r(5622);var l=r(2357);var u=r(8714);var d=r(7625);var p=d.setopts;var h=d.ownProp;var m=d.childrenIgnored;var g=d.isIgnored;function globSync(e,t){if(typeof t==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(e,t).found}function GlobSync(e,t){if(!e)throw new Error("must provide pattern");if(typeof t==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(e,t);p(this,e,t);if(this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var n=0;nthis.maxLength)return false;if(!this.stat&&h(this.cache,t)){var n=this.cache[t];if(Array.isArray(n))n="DIR";if(!r||n==="DIR")return n;if(r&&n==="FILE")return false}var i;var o=this.statCache[t];if(!o){var s;try{s=this.fs.lstatSync(t)}catch(e){if(e&&(e.code==="ENOENT"||e.code==="ENOTDIR")){this.statCache[t]=false;return false}}if(s&&s.isSymbolicLink()){try{o=this.fs.statSync(t)}catch(e){o=s}}else{o=s}}this.statCache[t]=o;var n=true;if(o)n=o.isDirectory()?"DIR":"FILE";this.cache[t]=this.cache[t]||n;if(r&&n==="FILE")return false;return n};GlobSync.prototype._mark=function(e){return d.mark(this,e)};GlobSync.prototype._makeAbs=function(e){return d.makeAbs(this,e)}},2492:(e,t,r)=>{var n=r(2940);var i=Object.create(null);var o=r(1223);e.exports=n(inflight);function inflight(e,t){if(i[e]){i[e].push(t);return null}else{i[e]=[t];return makeres(e)}}function makeres(e){return o((function RES(){var t=i[e];var r=t.length;var n=slice(arguments);try{for(var o=0;or){t.splice(0,r);process.nextTick((function(){RES.apply(null,n)}))}else{delete i[e]}}}))}function slice(e){var t=e.length;var r=[];for(var n=0;n{try{var n=r(1669);if(typeof n.inherits!=="function")throw"";e.exports=n.inherits}catch(t){e.exports=r(8544)}},8544:e=>{if(typeof Object.create==="function"){e.exports=function inherits(e,t){if(t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}}}else{e.exports=function inherits(e,t){if(t){e.super_=t;var TempCtor=function(){};TempCtor.prototype=t.prototype;e.prototype=new TempCtor;e.prototype.constructor=e}}}},5625:e=>{ /*! * Determine if an object is a Buffer * diff --git a/dist/generate_offline_dependencies/pre/index.js b/dist/generate_offline_dependencies/pre/index.js index 25ce6d6..bba6542 100644 --- a/dist/generate_offline_dependencies/pre/index.js +++ b/dist/generate_offline_dependencies/pre/index.js @@ -1,4 +1,4 @@ -(()=>{var e={8:(e,t,r)=>{const n=r(186);const i=r(514);const o=r(622);const s=r(711);const a=process.env["CI"];global.workspaceDir=process.env["GITHUB_WORKSPACE"];global.conanCachePath=o.join(workspaceDir,".conan");function log(e){if(a){n.info(e)}else{console.log(e)}}function error(e){if(a){n.error(e)}else{console.error(e)}}async function execWithLog(e,arguments){if(a){return i.exec(e,arguments)}else{return i.exec(e,arguments,{listeners:{stdout:e=>{log(e.toString())},stderr:e=>{error(e.toString())}}})}}async function getExecOutput(e,arguments){if(a){return i.getExecOutput(e,arguments)}else{return i.getExecOutput(e,arguments,{listeners:{stdout:e=>{log(e.toString())},stderr:e=>{error(e.toString())}}})}}async function awaitAll(e,t){return await Promise.all(e.map((async e=>t(e))))}async function getMD5(e){const t=await fs.promises.readFileSync(e);return s(t)}function getDateString(){const e=new Date;return[e.getFullYear(),("0"+(e.getMonth()+1)).slice(-2),("0"+e.getDate()).slice(-2)].join("")}const sleep=e=>new Promise((t=>setTimeout(t,e)));process.on("unhandledRejection",((e,t)=>{error(e);n.setFailed(err);process.exit(1)})).on("uncaughtException",(e=>{error(e);n.setFailed(e);process.exit(1)}));e.exports={log:log,error:error,execWithLog:execWithLog,getExecOutput:getExecOutput,sleep:sleep,awaitAll:awaitAll,getMD5:getMD5,getDateString:getDateString}},351:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const s=o(r(87));const a=r(278);function issueCommand(e,t,r){const n=new Command(e,t,r);process.stdout.write(n.toString()+s.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const c="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=c+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const n=this.properties[r];if(n){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(n)}`}}}}e+=`${c}${escapeData(this.message)}`;return e}}function escapeData(e){return a.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return a.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},186:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getIDToken=t.getState=t.saveState=t.group=t.endGroup=t.startGroup=t.info=t.notice=t.warning=t.error=t.debug=t.isDebug=t.setFailed=t.setCommandEcho=t.setOutput=t.getBooleanInput=t.getMultilineInput=t.getInput=t.addPath=t.setSecret=t.exportVariable=t.ExitCode=void 0;const a=r(351);const c=r(717);const u=r(278);const l=o(r(87));const d=o(r(622));const f=r(41);var p;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(p=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const r=u.toCommandValue(t);process.env[e]=r;const n=process.env["GITHUB_ENV"]||"";if(n){const t="_GitHubActionsFileCommandDelimeter_";const n=`${e}<<${t}${l.EOL}${r}${l.EOL}${t}`;c.issueCommand("ENV",n)}else{a.issueCommand("set-env",{name:e},r)}}t.exportVariable=exportVariable;function setSecret(e){a.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){c.issueCommand("PATH",e)}else{a.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${d.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r){throw new Error(`Input required and not supplied: ${e}`)}if(t&&t.trimWhitespace===false){return r}return r.trim()}t.getInput=getInput;function getMultilineInput(e,t){const r=getInput(e,t).split("\n").filter((e=>e!==""));return r}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const r=["true","True","TRUE"];const n=["false","False","FALSE"];const i=getInput(e,t);if(r.includes(i))return true;if(n.includes(i))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}t.getBooleanInput=getBooleanInput;function setOutput(e,t){process.stdout.write(l.EOL);a.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){a.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=p.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){a.issueCommand("debug",{},e)}t.debug=debug;function error(e,t={}){a.issueCommand("error",u.toCommandProperties(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){a.issueCommand("warning",u.toCommandProperties(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){a.issueCommand("notice",u.toCommandProperties(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+l.EOL)}t.info=info;function startGroup(e){a.issue("group",e)}t.startGroup=startGroup;function endGroup(){a.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return s(this,void 0,void 0,(function*(){startGroup(e);let r;try{r=yield t()}finally{endGroup()}return r}))}t.group=group;function saveState(e,t){a.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState;function getIDToken(e){return s(this,void 0,void 0,(function*(){return yield f.OidcClient.getIDToken(e)}))}t.getIDToken=getIDToken},717:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issueCommand=void 0;const s=o(r(747));const a=o(r(87));const c=r(278);function issueCommand(e,t){const r=process.env[`GITHUB_${e}`];if(!r){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!s.existsSync(r)){throw new Error(`Missing file at path: ${r}`)}s.appendFileSync(r,`${c.toCommandValue(t)}${a.EOL}`,{encoding:"utf8"})}t.issueCommand=issueCommand},41:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.OidcClient=void 0;const i=r(925);const o=r(702);const s=r(186);class OidcClient{static createHttpClient(e=true,t=10){const r={allowRetries:e,maxRetries:t};return new i.HttpClient("actions/oidc-client",[new o.BearerCredentialHandler(OidcClient.getRequestToken())],r)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var t;return n(this,void 0,void 0,(function*(){const r=OidcClient.createHttpClient();const n=yield r.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)}));const i=(t=n.result)===null||t===void 0?void 0:t.value;if(!i){throw new Error("Response json body do not have ID Token field")}return i}))}static getIDToken(e){return n(this,void 0,void 0,(function*(){try{let t=OidcClient.getIDTokenUrl();if(e){const r=encodeURIComponent(e);t=`${t}&audience=${r}`}s.debug(`ID token url is ${t}`);const r=yield OidcClient.getCall(t);s.setSecret(r);return r}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}t.OidcClient=OidcClient},278:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toCommandProperties=t.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}t.toCommandProperties=toCommandProperties},514:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getExecOutput=t.exec=void 0;const a=r(304);const c=o(r(159));function exec(e,t,r){return s(this,void 0,void 0,(function*(){const n=c.argStringToArray(e);if(n.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const i=n[0];t=n.slice(1).concat(t||[]);const o=new c.ToolRunner(i,t,r);return o.exec()}))}t.exec=exec;function getExecOutput(e,t,r){var n,i;return s(this,void 0,void 0,(function*(){let o="";let s="";const c=new a.StringDecoder("utf8");const u=new a.StringDecoder("utf8");const l=(n=r===null||r===void 0?void 0:r.listeners)===null||n===void 0?void 0:n.stdout;const d=(i=r===null||r===void 0?void 0:r.listeners)===null||i===void 0?void 0:i.stderr;const stdErrListener=e=>{s+=u.write(e);if(d){d(e)}};const stdOutListener=e=>{o+=c.write(e);if(l){l(e)}};const f=Object.assign(Object.assign({},r===null||r===void 0?void 0:r.listeners),{stdout:stdOutListener,stderr:stdErrListener});const p=yield exec(e,t,Object.assign(Object.assign({},r),{listeners:f}));o+=c.end();s+=u.end();return{exitCode:p,stdout:o,stderr:s}}))}t.getExecOutput=getExecOutput},159:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.argStringToArray=t.ToolRunner=void 0;const a=o(r(87));const c=o(r(614));const u=o(r(129));const l=o(r(622));const d=o(r(436));const f=o(r(962));const p=r(213);const h=process.platform==="win32";class ToolRunner extends c.EventEmitter{constructor(e,t,r){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=r||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const r=this._getSpawnFileName();const n=this._getSpawnArgs(e);let i=t?"":"[command]";if(h){if(this._isCmdFile()){i+=r;for(const e of n){i+=` ${e}`}}else if(e.windowsVerbatimArguments){i+=`"${r}"`;for(const e of n){i+=` ${e}`}}else{i+=this._windowsQuoteCmdArg(r);for(const e of n){i+=` ${this._windowsQuoteCmdArg(e)}`}}}else{i+=r;for(const e of n){i+=` ${e}`}}return i}_processLineBuffer(e,t,r){try{let n=t+e.toString();let i=n.indexOf(a.EOL);while(i>-1){const e=n.substring(0,i);r(e);n=n.substring(i+a.EOL.length);i=n.indexOf(a.EOL)}return n}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(h){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(h){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const r of this.args){t+=" ";t+=e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r)}t+='"';return[t]}}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let r=false;for(const n of e){if(t.some((e=>e===n))){r=true;break}}if(!r){return e}let n='"';let i=true;for(let t=e.length;t>0;t--){n+=e[t-1];if(i&&e[t-1]==="\\"){n+="\\"}else if(e[t-1]==='"'){i=true;n+='"'}else{i=false}}n+='"';return n.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let t='"';let r=true;for(let n=e.length;n>0;n--){t+=e[n-1];if(r&&e[n-1]==="\\"){t+="\\"}else if(e[n-1]==='"'){r=true;t+="\\"}else{r=false}}t+='"';return t.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};t.outStream=e.outStream||process.stdout;t.errStream=e.errStream||process.stderr;return t}_getSpawnOptions(e,t){e=e||{};const r={};r.cwd=e.cwd;r.env=e.env;r["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){r.argv0=`"${t}"`}return r}exec(){return s(this,void 0,void 0,(function*(){if(!f.isRooted(this.toolPath)&&(this.toolPath.includes("/")||h&&this.toolPath.includes("\\"))){this.toolPath=l.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield d.which(this.toolPath,true);return new Promise(((e,t)=>s(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const r=this._cloneExecOptions(this.options);if(!r.silent&&r.outStream){r.outStream.write(this._getCommandString(r)+a.EOL)}const n=new ExecState(r,this.toolPath);n.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield f.exists(this.options.cwd))){return t(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const i=this._getSpawnFileName();const o=u.spawn(i,this._getSpawnArgs(r),this._getSpawnOptions(this.options,i));let s="";if(o.stdout){o.stdout.on("data",(e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!r.silent&&r.outStream){r.outStream.write(e)}s=this._processLineBuffer(e,s,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let c="";if(o.stderr){o.stderr.on("data",(e=>{n.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!r.silent&&r.errStream&&r.outStream){const t=r.failOnStdErr?r.errStream:r.outStream;t.write(e)}c=this._processLineBuffer(e,c,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}o.on("error",(e=>{n.processError=e.message;n.processExited=true;n.processClosed=true;n.CheckComplete()}));o.on("exit",(e=>{n.processExitCode=e;n.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);n.CheckComplete()}));o.on("close",(e=>{n.processExitCode=e;n.processExited=true;n.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);n.CheckComplete()}));n.on("done",((r,n)=>{if(s.length>0){this.emit("stdline",s)}if(c.length>0){this.emit("errline",c)}o.removeAllListeners();if(r){t(r)}else{e(n)}}));if(this.options.input){if(!o.stdin){throw new Error("child process missing stdin")}o.stdin.end(this.options.input)}}))))}))}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let r=false;let n=false;let i="";function append(e){if(n&&e!=='"'){i+="\\"}i+=e;n=false}for(let o=0;o0){t.push(i);i=""}continue}append(s)}if(i.length>0){t.push(i.trim())}return t}t.argStringToArray=argStringToArray;class ExecState extends c.EventEmitter{constructor(e,t){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!t){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=t;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=p.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(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}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const t=`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(t)}e._setResult()}}},702:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from(this.username+":"+this.password).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,t,r){return null}}t.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Bearer "+this.token}canHandleAuthentication(e){return false}handleAuthentication(e,t,r){return null}}t.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from("PAT:"+this.token).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,t,r){return null}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},925:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(605);const i=r(211);const o=r(443);let s;var a;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(a=t.HttpCodes||(t.HttpCodes={}));var c;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(c=t.Headers||(t.Headers={}));var u;(function(e){e["ApplicationJson"]="application/json"})(u=t.MediaTypes||(t.MediaTypes={}));function getProxyUrl(e){let t=o.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const l=[a.MovedPermanently,a.ResourceMoved,a.SeeOther,a.TemporaryRedirect,a.PermanentRedirect];const d=[a.BadGateway,a.ServiceUnavailable,a.GatewayTimeout];const f=["OPTIONS","GET","DELETE","HEAD"];const p=10;const h=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return new Promise((async(e,t)=>{let r=Buffer.alloc(0);this.message.on("data",(e=>{r=Buffer.concat([r,e])}));this.message.on("end",(()=>{e(r.toString())}))}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){let t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,r){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=r;if(r){if(r.ignoreSslError!=null){this._ignoreSslError=r.ignoreSslError}this._socketTimeout=r.socketTimeout;if(r.allowRedirects!=null){this._allowRedirects=r.allowRedirects}if(r.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=r.allowRedirectDowngrade}if(r.maxRedirects!=null){this._maxRedirects=Math.max(r.maxRedirects,0)}if(r.keepAlive!=null){this._keepAlive=r.keepAlive}if(r.allowRetries!=null){this._allowRetries=r.allowRetries}if(r.maxRetries!=null){this._maxRetries=r.maxRetries}}}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,r){return this.request("POST",e,t,r||{})}patch(e,t,r){return this.request("PATCH",e,t,r||{})}put(e,t,r){return this.request("PUT",e,t,r||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,r,n){return this.request(e,t,r,n)}async getJson(e,t={}){t[c.Accept]=this._getExistingOrDefaultHeader(t,c.Accept,u.ApplicationJson);let r=await this.get(e,t);return this._processResponse(r,this.requestOptions)}async postJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[c.Accept]=this._getExistingOrDefaultHeader(r,c.Accept,u.ApplicationJson);r[c.ContentType]=this._getExistingOrDefaultHeader(r,c.ContentType,u.ApplicationJson);let i=await this.post(e,n,r);return this._processResponse(i,this.requestOptions)}async putJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[c.Accept]=this._getExistingOrDefaultHeader(r,c.Accept,u.ApplicationJson);r[c.ContentType]=this._getExistingOrDefaultHeader(r,c.ContentType,u.ApplicationJson);let i=await this.put(e,n,r);return this._processResponse(i,this.requestOptions)}async patchJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[c.Accept]=this._getExistingOrDefaultHeader(r,c.Accept,u.ApplicationJson);r[c.ContentType]=this._getExistingOrDefaultHeader(r,c.ContentType,u.ApplicationJson);let i=await this.patch(e,n,r);return this._processResponse(i,this.requestOptions)}async request(e,t,r,n){if(this._disposed){throw new Error("Client has already been disposed.")}let i=new URL(t);let o=this._prepareRequest(e,i,n);let s=this._allowRetries&&f.indexOf(e)!=-1?this._maxRetries+1:1;let c=0;let u;while(c0){const s=u.message.headers["location"];if(!s){break}let a=new URL(s);if(i.protocol=="https:"&&i.protocol!=a.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}await u.readBody();if(a.hostname!==i.hostname){for(let e in n){if(e.toLowerCase()==="authorization"){delete n[e]}}}o=this._prepareRequest(e,a,n);u=await this.requestRaw(o,r);t--}if(d.indexOf(u.message.statusCode)==-1){return u}c+=1;if(c{let callbackForResult=function(e,t){if(e){n(e)}r(t)};this.requestRawWithCallback(e,t,callbackForResult)}))}requestRawWithCallback(e,t,r){let n;if(typeof t==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let i=false;let handleResult=(e,t)=>{if(!i){i=true;r(e,t)}};let o=e.httpModule.request(e.options,(e=>{let t=new HttpClientResponse(e);handleResult(null,t)}));o.on("socket",(e=>{n=e}));o.setTimeout(this._socketTimeout||3*6e4,(()=>{if(n){n.end()}handleResult(new Error("Request timeout: "+e.options.path),null)}));o.on("error",(function(e){handleResult(e,null)}));if(t&&typeof t==="string"){o.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){o.end()}));t.pipe(o)}else{o.end()}}getAgent(e){let t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,r){const o={};o.parsedUrl=t;const s=o.parsedUrl.protocol==="https:";o.httpModule=s?i:n;const a=s?443:80;o.options={};o.options.host=o.parsedUrl.hostname;o.options.port=o.parsedUrl.port?parseInt(o.parsedUrl.port):a;o.options.path=(o.parsedUrl.pathname||"")+(o.parsedUrl.search||"");o.options.method=e;o.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){o.options.headers["user-agent"]=this.userAgent}o.options.agent=this._getAgent(o.parsedUrl);if(this.handlers){this.handlers.forEach((e=>{e.prepareRequest(o.options)}))}return o}_mergeHeaders(e){const lowercaseKeys=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,r){const lowercaseKeys=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{});let n;if(this.requestOptions&&this.requestOptions.headers){n=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||n||r}_getAgent(e){let t;let a=o.getProxyUrl(e);let c=a&&a.hostname;if(this._keepAlive&&c){t=this._proxyAgent}if(this._keepAlive&&!c){t=this._agent}if(!!t){return t}const u=e.protocol==="https:";let l=100;if(!!this.requestOptions){l=this.requestOptions.maxSockets||n.globalAgent.maxSockets}if(c){if(!s){s=r(294)}const e={maxSockets:l,keepAlive:this._keepAlive,proxy:{...(a.username||a.password)&&{proxyAuth:`${a.username}:${a.password}`},host:a.hostname,port:a.port}};let n;const i=a.protocol==="https:";if(u){n=i?s.httpsOverHttps:s.httpsOverHttp}else{n=i?s.httpOverHttps:s.httpOverHttp}t=n(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:l};t=u?new i.Agent(e):new n.Agent(e);this._agent=t}if(!t){t=u?i.globalAgent:n.globalAgent}if(u&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){e=Math.min(p,e);const t=h*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}static dateTimeDeserializer(e,t){if(typeof t==="string"){let e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}async _processResponse(e,t){return new Promise((async(r,n)=>{const i=e.message.statusCode;const o={statusCode:i,result:null,headers:{}};if(i==a.NotFound){r(o)}let s;let c;try{c=await e.readBody();if(c&&c.length>0){if(t&&t.deserializeDates){s=JSON.parse(c,HttpClient.dateTimeDeserializer)}else{s=JSON.parse(c)}o.result=s}o.headers=e.message.headers}catch(e){}if(i>299){let e;if(s&&s.message){e=s.message}else if(c&&c.length>0){e=c}else{e="Failed request: ("+i+")"}let t=new HttpClientError(e,i);t.result=o.result;n(t)}else{r(o)}}))}}t.HttpClient=HttpClient},443:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function getProxyUrl(e){let t=e.protocol==="https:";let r;if(checkBypass(e)){return r}let n;if(t){n=process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{n=process.env["http_proxy"]||process.env["HTTP_PROXY"]}if(n){r=new URL(n)}return r}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}let t=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!t){return false}let r;if(e.port){r=Number(e.port)}else if(e.protocol==="http:"){r=80}else if(e.protocol==="https:"){r=443}let n=[e.hostname.toUpperCase()];if(typeof r==="number"){n.push(`${n[0]}:${r}`)}for(let e of t.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(n.some((t=>t===e))){return true}}return false}t.checkBypass=checkBypass},962:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var a;Object.defineProperty(t,"__esModule",{value:true});t.getCmdPath=t.tryGetExecutablePath=t.isRooted=t.isDirectory=t.exists=t.IS_WINDOWS=t.unlink=t.symlink=t.stat=t.rmdir=t.rename=t.readlink=t.readdir=t.mkdir=t.lstat=t.copyFile=t.chmod=void 0;const c=o(r(747));const u=o(r(622));a=c.promises,t.chmod=a.chmod,t.copyFile=a.copyFile,t.lstat=a.lstat,t.mkdir=a.mkdir,t.readdir=a.readdir,t.readlink=a.readlink,t.rename=a.rename,t.rmdir=a.rmdir,t.stat=a.stat,t.symlink=a.symlink,t.unlink=a.unlink;t.IS_WINDOWS=process.platform==="win32";function exists(e){return s(this,void 0,void 0,(function*(){try{yield t.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}t.exists=exists;function isDirectory(e,r=false){return s(this,void 0,void 0,(function*(){const n=r?yield t.stat(e):yield t.lstat(e);return n.isDirectory()}))}t.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(t.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.isRooted=isRooted;function tryGetExecutablePath(e,r){return s(this,void 0,void 0,(function*(){let n=undefined;try{n=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(t.IS_WINDOWS){const t=u.extname(e).toUpperCase();if(r.some((e=>e.toUpperCase()===t))){return e}}else{if(isUnixExecutable(n)){return e}}}const i=e;for(const o of r){e=i+o;n=undefined;try{n=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(t.IS_WINDOWS){try{const r=u.dirname(e);const n=u.basename(e).toUpperCase();for(const i of yield t.readdir(r)){if(n===i.toUpperCase()){e=u.join(r,i);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(n)){return e}}}}return""}))}t.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(t.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}function getCmdPath(){var e;return(e=process.env["COMSPEC"])!==null&&e!==void 0?e:`cmd.exe`}t.getCmdPath=getCmdPath},436:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.findInPath=t.which=t.mkdirP=t.rmRF=t.mv=t.cp=void 0;const a=r(357);const c=o(r(129));const u=o(r(622));const l=r(669);const d=o(r(962));const f=l.promisify(c.exec);const p=l.promisify(c.execFile);function cp(e,t,r={}){return s(this,void 0,void 0,(function*(){const{force:n,recursive:i,copySourceDirectory:o}=readCopyOptions(r);const s=(yield d.exists(t))?yield d.stat(t):null;if(s&&s.isFile()&&!n){return}const a=s&&s.isDirectory()&&o?u.join(t,u.basename(e)):t;if(!(yield d.exists(e))){throw new Error(`no such file or directory: ${e}`)}const c=yield d.stat(e);if(c.isDirectory()){if(!i){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,a,0,n)}}else{if(u.relative(e,a)===""){throw new Error(`'${a}' and '${e}' are the same file`)}yield copyFile(e,a,n)}}))}t.cp=cp;function mv(e,t,r={}){return s(this,void 0,void 0,(function*(){if(yield d.exists(t)){let n=true;if(yield d.isDirectory(t)){t=u.join(t,u.basename(e));n=yield d.exists(t)}if(n){if(r.force==null||r.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(u.dirname(t));yield d.rename(e,t)}))}t.mv=mv;function rmRF(e){return s(this,void 0,void 0,(function*(){if(d.IS_WINDOWS){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}try{const t=d.getCmdPath();if(yield d.isDirectory(e,true)){yield f(`${t} /s /c "rd /s /q "%inputPath%""`,{env:{inputPath:e}})}else{yield f(`${t} /s /c "del /f /a "%inputPath%""`,{env:{inputPath:e}})}}catch(e){if(e.code!=="ENOENT")throw e}try{yield d.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let t=false;try{t=yield d.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(t){yield p(`rm`,[`-rf`,`${e}`])}else{yield d.unlink(e)}}}))}t.rmRF=rmRF;function mkdirP(e){return s(this,void 0,void 0,(function*(){a.ok(e,"a path argument must be provided");yield d.mkdir(e,{recursive:true})}))}t.mkdirP=mkdirP;function which(e,t){return s(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(t){const t=yield which(e,false);if(!t){if(d.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. 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.`)}else{throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}return t}const r=yield findInPath(e);if(r&&r.length>0){return r[0]}return""}))}t.which=which;function findInPath(e){return s(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const t=[];if(d.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(u.delimiter)){if(e){t.push(e)}}}if(d.isRooted(e)){const r=yield d.tryGetExecutablePath(e,t);if(r){return[r]}return[]}if(e.includes(u.sep)){return[]}const r=[];if(process.env.PATH){for(const e of process.env.PATH.split(u.delimiter)){if(e){r.push(e)}}}const n=[];for(const i of r){const r=yield d.tryGetExecutablePath(u.join(i,e),t);if(r){n.push(r)}}return n}))}t.findInPath=findInPath;function readCopyOptions(e){const t=e.force==null?true:e.force;const r=Boolean(e.recursive);const n=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:t,recursive:r,copySourceDirectory:n}}function cpDirRecursive(e,t,r,n){return s(this,void 0,void 0,(function*(){if(r>=255)return;r++;yield mkdirP(t);const i=yield d.readdir(e);for(const o of i){const i=`${e}/${o}`;const s=`${t}/${o}`;const a=yield d.lstat(i);if(a.isDirectory()){yield cpDirRecursive(i,s,r,n)}else{yield copyFile(i,s,n)}}yield d.chmod(t,(yield d.stat(e)).mode)}))}function copyFile(e,t,r){return s(this,void 0,void 0,(function*(){if((yield d.lstat(e)).isSymbolicLink()){try{yield d.lstat(t);yield d.unlink(t)}catch(e){if(e.code==="EPERM"){yield d.chmod(t,"0666");yield d.unlink(t)}}const r=yield d.readlink(e);yield d.symlink(r,t,d.IS_WINDOWS?"junction":null)}else if(!(yield d.exists(t))||r){yield d.copyFile(e,t)}}))}},421:e=>{var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],r=0;r{(function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(e,t){return e<>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number){return r.rotl(e,8)&16711935|r.rotl(e,24)&4278255360}for(var t=0;t0;e--)t.push(Math.floor(Math.random()*256));return t},bytesToWords:function(e){for(var t=[],r=0,n=0;r>>5]|=e[r]<<24-n%32;return t},wordsToBytes:function(e){for(var t=[],r=0;r>>5]>>>24-r%32&255);return t},bytesToHex:function(e){for(var t=[],r=0;r>>4).toString(16));t.push((e[r]&15).toString(16))}return t.join("")},hexToBytes:function(e){for(var t=[],r=0;r>>6*(3-o)&63));else r.push("=")}return r.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var r=[],n=0,i=0;n>>6-i*2)}return r}};e.exports=r})()},625:e=>{ +(()=>{var e={8:(e,t,r)=>{const n=r(186);const i=r(514);const o=r(622);const s=r(711);const a=r(747);const c=process.env["CI"];global.workspaceDir=process.env["GITHUB_WORKSPACE"];global.conanCachePath=o.join(workspaceDir,".conan");function log(e){if(c){n.info(e)}else{console.log(e)}}function error(e){if(c){n.error(e)}else{console.error(e)}}async function execWithLog(e,arguments){if(c){return i.exec(e,arguments)}else{return i.exec(e,arguments,{listeners:{stdout:e=>{log(e.toString())},stderr:e=>{error(e.toString())}}})}}async function getExecOutput(e,arguments){if(c){return i.getExecOutput(e,arguments)}else{return i.getExecOutput(e,arguments,{listeners:{stdout:e=>{log(e.toString())},stderr:e=>{error(e.toString())}}})}}async function awaitAll(e,t){return await Promise.all(e.map((async e=>t(e))))}async function getMD5(e){const t=await a.promises.readFile(e);return s(t)}function getDateString(){const e=new Date;return[e.getFullYear(),("0"+(e.getMonth()+1)).slice(-2),("0"+e.getDate()).slice(-2)].join("")}const sleep=e=>new Promise((t=>setTimeout(t,e)));process.on("unhandledRejection",((e,t)=>{error(e);n.setFailed(e);process.exit(1)})).on("uncaughtException",(e=>{error(e);n.setFailed(e);process.exit(1)}));e.exports={log:log,error:error,execWithLog:execWithLog,getExecOutput:getExecOutput,sleep:sleep,awaitAll:awaitAll,getMD5:getMD5,getDateString:getDateString}},351:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const s=o(r(87));const a=r(278);function issueCommand(e,t,r){const n=new Command(e,t,r);process.stdout.write(n.toString()+s.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const c="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=c+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const n=this.properties[r];if(n){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(n)}`}}}}e+=`${c}${escapeData(this.message)}`;return e}}function escapeData(e){return a.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return a.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},186:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getIDToken=t.getState=t.saveState=t.group=t.endGroup=t.startGroup=t.info=t.notice=t.warning=t.error=t.debug=t.isDebug=t.setFailed=t.setCommandEcho=t.setOutput=t.getBooleanInput=t.getMultilineInput=t.getInput=t.addPath=t.setSecret=t.exportVariable=t.ExitCode=void 0;const a=r(351);const c=r(717);const u=r(278);const l=o(r(87));const d=o(r(622));const f=r(41);var p;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(p=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const r=u.toCommandValue(t);process.env[e]=r;const n=process.env["GITHUB_ENV"]||"";if(n){const t="_GitHubActionsFileCommandDelimeter_";const n=`${e}<<${t}${l.EOL}${r}${l.EOL}${t}`;c.issueCommand("ENV",n)}else{a.issueCommand("set-env",{name:e},r)}}t.exportVariable=exportVariable;function setSecret(e){a.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){c.issueCommand("PATH",e)}else{a.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${d.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r){throw new Error(`Input required and not supplied: ${e}`)}if(t&&t.trimWhitespace===false){return r}return r.trim()}t.getInput=getInput;function getMultilineInput(e,t){const r=getInput(e,t).split("\n").filter((e=>e!==""));return r}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const r=["true","True","TRUE"];const n=["false","False","FALSE"];const i=getInput(e,t);if(r.includes(i))return true;if(n.includes(i))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}t.getBooleanInput=getBooleanInput;function setOutput(e,t){process.stdout.write(l.EOL);a.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){a.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=p.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){a.issueCommand("debug",{},e)}t.debug=debug;function error(e,t={}){a.issueCommand("error",u.toCommandProperties(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){a.issueCommand("warning",u.toCommandProperties(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){a.issueCommand("notice",u.toCommandProperties(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+l.EOL)}t.info=info;function startGroup(e){a.issue("group",e)}t.startGroup=startGroup;function endGroup(){a.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return s(this,void 0,void 0,(function*(){startGroup(e);let r;try{r=yield t()}finally{endGroup()}return r}))}t.group=group;function saveState(e,t){a.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState;function getIDToken(e){return s(this,void 0,void 0,(function*(){return yield f.OidcClient.getIDToken(e)}))}t.getIDToken=getIDToken},717:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issueCommand=void 0;const s=o(r(747));const a=o(r(87));const c=r(278);function issueCommand(e,t){const r=process.env[`GITHUB_${e}`];if(!r){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!s.existsSync(r)){throw new Error(`Missing file at path: ${r}`)}s.appendFileSync(r,`${c.toCommandValue(t)}${a.EOL}`,{encoding:"utf8"})}t.issueCommand=issueCommand},41:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.OidcClient=void 0;const i=r(925);const o=r(702);const s=r(186);class OidcClient{static createHttpClient(e=true,t=10){const r={allowRetries:e,maxRetries:t};return new i.HttpClient("actions/oidc-client",[new o.BearerCredentialHandler(OidcClient.getRequestToken())],r)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var t;return n(this,void 0,void 0,(function*(){const r=OidcClient.createHttpClient();const n=yield r.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)}));const i=(t=n.result)===null||t===void 0?void 0:t.value;if(!i){throw new Error("Response json body do not have ID Token field")}return i}))}static getIDToken(e){return n(this,void 0,void 0,(function*(){try{let t=OidcClient.getIDTokenUrl();if(e){const r=encodeURIComponent(e);t=`${t}&audience=${r}`}s.debug(`ID token url is ${t}`);const r=yield OidcClient.getCall(t);s.setSecret(r);return r}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}t.OidcClient=OidcClient},278:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toCommandProperties=t.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}t.toCommandProperties=toCommandProperties},514:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getExecOutput=t.exec=void 0;const a=r(304);const c=o(r(159));function exec(e,t,r){return s(this,void 0,void 0,(function*(){const n=c.argStringToArray(e);if(n.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const i=n[0];t=n.slice(1).concat(t||[]);const o=new c.ToolRunner(i,t,r);return o.exec()}))}t.exec=exec;function getExecOutput(e,t,r){var n,i;return s(this,void 0,void 0,(function*(){let o="";let s="";const c=new a.StringDecoder("utf8");const u=new a.StringDecoder("utf8");const l=(n=r===null||r===void 0?void 0:r.listeners)===null||n===void 0?void 0:n.stdout;const d=(i=r===null||r===void 0?void 0:r.listeners)===null||i===void 0?void 0:i.stderr;const stdErrListener=e=>{s+=u.write(e);if(d){d(e)}};const stdOutListener=e=>{o+=c.write(e);if(l){l(e)}};const f=Object.assign(Object.assign({},r===null||r===void 0?void 0:r.listeners),{stdout:stdOutListener,stderr:stdErrListener});const p=yield exec(e,t,Object.assign(Object.assign({},r),{listeners:f}));o+=c.end();s+=u.end();return{exitCode:p,stdout:o,stderr:s}}))}t.getExecOutput=getExecOutput},159:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.argStringToArray=t.ToolRunner=void 0;const a=o(r(87));const c=o(r(614));const u=o(r(129));const l=o(r(622));const d=o(r(436));const f=o(r(962));const p=r(213);const h=process.platform==="win32";class ToolRunner extends c.EventEmitter{constructor(e,t,r){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=r||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const r=this._getSpawnFileName();const n=this._getSpawnArgs(e);let i=t?"":"[command]";if(h){if(this._isCmdFile()){i+=r;for(const e of n){i+=` ${e}`}}else if(e.windowsVerbatimArguments){i+=`"${r}"`;for(const e of n){i+=` ${e}`}}else{i+=this._windowsQuoteCmdArg(r);for(const e of n){i+=` ${this._windowsQuoteCmdArg(e)}`}}}else{i+=r;for(const e of n){i+=` ${e}`}}return i}_processLineBuffer(e,t,r){try{let n=t+e.toString();let i=n.indexOf(a.EOL);while(i>-1){const e=n.substring(0,i);r(e);n=n.substring(i+a.EOL.length);i=n.indexOf(a.EOL)}return n}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(h){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(h){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const r of this.args){t+=" ";t+=e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r)}t+='"';return[t]}}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let r=false;for(const n of e){if(t.some((e=>e===n))){r=true;break}}if(!r){return e}let n='"';let i=true;for(let t=e.length;t>0;t--){n+=e[t-1];if(i&&e[t-1]==="\\"){n+="\\"}else if(e[t-1]==='"'){i=true;n+='"'}else{i=false}}n+='"';return n.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let t='"';let r=true;for(let n=e.length;n>0;n--){t+=e[n-1];if(r&&e[n-1]==="\\"){t+="\\"}else if(e[n-1]==='"'){r=true;t+="\\"}else{r=false}}t+='"';return t.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};t.outStream=e.outStream||process.stdout;t.errStream=e.errStream||process.stderr;return t}_getSpawnOptions(e,t){e=e||{};const r={};r.cwd=e.cwd;r.env=e.env;r["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){r.argv0=`"${t}"`}return r}exec(){return s(this,void 0,void 0,(function*(){if(!f.isRooted(this.toolPath)&&(this.toolPath.includes("/")||h&&this.toolPath.includes("\\"))){this.toolPath=l.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield d.which(this.toolPath,true);return new Promise(((e,t)=>s(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const r=this._cloneExecOptions(this.options);if(!r.silent&&r.outStream){r.outStream.write(this._getCommandString(r)+a.EOL)}const n=new ExecState(r,this.toolPath);n.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield f.exists(this.options.cwd))){return t(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const i=this._getSpawnFileName();const o=u.spawn(i,this._getSpawnArgs(r),this._getSpawnOptions(this.options,i));let s="";if(o.stdout){o.stdout.on("data",(e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!r.silent&&r.outStream){r.outStream.write(e)}s=this._processLineBuffer(e,s,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let c="";if(o.stderr){o.stderr.on("data",(e=>{n.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!r.silent&&r.errStream&&r.outStream){const t=r.failOnStdErr?r.errStream:r.outStream;t.write(e)}c=this._processLineBuffer(e,c,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}o.on("error",(e=>{n.processError=e.message;n.processExited=true;n.processClosed=true;n.CheckComplete()}));o.on("exit",(e=>{n.processExitCode=e;n.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);n.CheckComplete()}));o.on("close",(e=>{n.processExitCode=e;n.processExited=true;n.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);n.CheckComplete()}));n.on("done",((r,n)=>{if(s.length>0){this.emit("stdline",s)}if(c.length>0){this.emit("errline",c)}o.removeAllListeners();if(r){t(r)}else{e(n)}}));if(this.options.input){if(!o.stdin){throw new Error("child process missing stdin")}o.stdin.end(this.options.input)}}))))}))}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let r=false;let n=false;let i="";function append(e){if(n&&e!=='"'){i+="\\"}i+=e;n=false}for(let o=0;o0){t.push(i);i=""}continue}append(s)}if(i.length>0){t.push(i.trim())}return t}t.argStringToArray=argStringToArray;class ExecState extends c.EventEmitter{constructor(e,t){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!t){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=t;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=p.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(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}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const t=`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(t)}e._setResult()}}},702:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from(this.username+":"+this.password).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,t,r){return null}}t.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Bearer "+this.token}canHandleAuthentication(e){return false}handleAuthentication(e,t,r){return null}}t.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from("PAT:"+this.token).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,t,r){return null}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},925:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(605);const i=r(211);const o=r(443);let s;var a;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(a=t.HttpCodes||(t.HttpCodes={}));var c;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(c=t.Headers||(t.Headers={}));var u;(function(e){e["ApplicationJson"]="application/json"})(u=t.MediaTypes||(t.MediaTypes={}));function getProxyUrl(e){let t=o.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const l=[a.MovedPermanently,a.ResourceMoved,a.SeeOther,a.TemporaryRedirect,a.PermanentRedirect];const d=[a.BadGateway,a.ServiceUnavailable,a.GatewayTimeout];const f=["OPTIONS","GET","DELETE","HEAD"];const p=10;const h=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return new Promise((async(e,t)=>{let r=Buffer.alloc(0);this.message.on("data",(e=>{r=Buffer.concat([r,e])}));this.message.on("end",(()=>{e(r.toString())}))}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){let t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,r){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=r;if(r){if(r.ignoreSslError!=null){this._ignoreSslError=r.ignoreSslError}this._socketTimeout=r.socketTimeout;if(r.allowRedirects!=null){this._allowRedirects=r.allowRedirects}if(r.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=r.allowRedirectDowngrade}if(r.maxRedirects!=null){this._maxRedirects=Math.max(r.maxRedirects,0)}if(r.keepAlive!=null){this._keepAlive=r.keepAlive}if(r.allowRetries!=null){this._allowRetries=r.allowRetries}if(r.maxRetries!=null){this._maxRetries=r.maxRetries}}}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,r){return this.request("POST",e,t,r||{})}patch(e,t,r){return this.request("PATCH",e,t,r||{})}put(e,t,r){return this.request("PUT",e,t,r||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,r,n){return this.request(e,t,r,n)}async getJson(e,t={}){t[c.Accept]=this._getExistingOrDefaultHeader(t,c.Accept,u.ApplicationJson);let r=await this.get(e,t);return this._processResponse(r,this.requestOptions)}async postJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[c.Accept]=this._getExistingOrDefaultHeader(r,c.Accept,u.ApplicationJson);r[c.ContentType]=this._getExistingOrDefaultHeader(r,c.ContentType,u.ApplicationJson);let i=await this.post(e,n,r);return this._processResponse(i,this.requestOptions)}async putJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[c.Accept]=this._getExistingOrDefaultHeader(r,c.Accept,u.ApplicationJson);r[c.ContentType]=this._getExistingOrDefaultHeader(r,c.ContentType,u.ApplicationJson);let i=await this.put(e,n,r);return this._processResponse(i,this.requestOptions)}async patchJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[c.Accept]=this._getExistingOrDefaultHeader(r,c.Accept,u.ApplicationJson);r[c.ContentType]=this._getExistingOrDefaultHeader(r,c.ContentType,u.ApplicationJson);let i=await this.patch(e,n,r);return this._processResponse(i,this.requestOptions)}async request(e,t,r,n){if(this._disposed){throw new Error("Client has already been disposed.")}let i=new URL(t);let o=this._prepareRequest(e,i,n);let s=this._allowRetries&&f.indexOf(e)!=-1?this._maxRetries+1:1;let c=0;let u;while(c0){const s=u.message.headers["location"];if(!s){break}let a=new URL(s);if(i.protocol=="https:"&&i.protocol!=a.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}await u.readBody();if(a.hostname!==i.hostname){for(let e in n){if(e.toLowerCase()==="authorization"){delete n[e]}}}o=this._prepareRequest(e,a,n);u=await this.requestRaw(o,r);t--}if(d.indexOf(u.message.statusCode)==-1){return u}c+=1;if(c{let callbackForResult=function(e,t){if(e){n(e)}r(t)};this.requestRawWithCallback(e,t,callbackForResult)}))}requestRawWithCallback(e,t,r){let n;if(typeof t==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let i=false;let handleResult=(e,t)=>{if(!i){i=true;r(e,t)}};let o=e.httpModule.request(e.options,(e=>{let t=new HttpClientResponse(e);handleResult(null,t)}));o.on("socket",(e=>{n=e}));o.setTimeout(this._socketTimeout||3*6e4,(()=>{if(n){n.end()}handleResult(new Error("Request timeout: "+e.options.path),null)}));o.on("error",(function(e){handleResult(e,null)}));if(t&&typeof t==="string"){o.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){o.end()}));t.pipe(o)}else{o.end()}}getAgent(e){let t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,r){const o={};o.parsedUrl=t;const s=o.parsedUrl.protocol==="https:";o.httpModule=s?i:n;const a=s?443:80;o.options={};o.options.host=o.parsedUrl.hostname;o.options.port=o.parsedUrl.port?parseInt(o.parsedUrl.port):a;o.options.path=(o.parsedUrl.pathname||"")+(o.parsedUrl.search||"");o.options.method=e;o.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){o.options.headers["user-agent"]=this.userAgent}o.options.agent=this._getAgent(o.parsedUrl);if(this.handlers){this.handlers.forEach((e=>{e.prepareRequest(o.options)}))}return o}_mergeHeaders(e){const lowercaseKeys=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,r){const lowercaseKeys=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{});let n;if(this.requestOptions&&this.requestOptions.headers){n=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||n||r}_getAgent(e){let t;let a=o.getProxyUrl(e);let c=a&&a.hostname;if(this._keepAlive&&c){t=this._proxyAgent}if(this._keepAlive&&!c){t=this._agent}if(!!t){return t}const u=e.protocol==="https:";let l=100;if(!!this.requestOptions){l=this.requestOptions.maxSockets||n.globalAgent.maxSockets}if(c){if(!s){s=r(294)}const e={maxSockets:l,keepAlive:this._keepAlive,proxy:{...(a.username||a.password)&&{proxyAuth:`${a.username}:${a.password}`},host:a.hostname,port:a.port}};let n;const i=a.protocol==="https:";if(u){n=i?s.httpsOverHttps:s.httpsOverHttp}else{n=i?s.httpOverHttps:s.httpOverHttp}t=n(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:l};t=u?new i.Agent(e):new n.Agent(e);this._agent=t}if(!t){t=u?i.globalAgent:n.globalAgent}if(u&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){e=Math.min(p,e);const t=h*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}static dateTimeDeserializer(e,t){if(typeof t==="string"){let e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}async _processResponse(e,t){return new Promise((async(r,n)=>{const i=e.message.statusCode;const o={statusCode:i,result:null,headers:{}};if(i==a.NotFound){r(o)}let s;let c;try{c=await e.readBody();if(c&&c.length>0){if(t&&t.deserializeDates){s=JSON.parse(c,HttpClient.dateTimeDeserializer)}else{s=JSON.parse(c)}o.result=s}o.headers=e.message.headers}catch(e){}if(i>299){let e;if(s&&s.message){e=s.message}else if(c&&c.length>0){e=c}else{e="Failed request: ("+i+")"}let t=new HttpClientError(e,i);t.result=o.result;n(t)}else{r(o)}}))}}t.HttpClient=HttpClient},443:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function getProxyUrl(e){let t=e.protocol==="https:";let r;if(checkBypass(e)){return r}let n;if(t){n=process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{n=process.env["http_proxy"]||process.env["HTTP_PROXY"]}if(n){r=new URL(n)}return r}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}let t=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!t){return false}let r;if(e.port){r=Number(e.port)}else if(e.protocol==="http:"){r=80}else if(e.protocol==="https:"){r=443}let n=[e.hostname.toUpperCase()];if(typeof r==="number"){n.push(`${n[0]}:${r}`)}for(let e of t.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(n.some((t=>t===e))){return true}}return false}t.checkBypass=checkBypass},962:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var a;Object.defineProperty(t,"__esModule",{value:true});t.getCmdPath=t.tryGetExecutablePath=t.isRooted=t.isDirectory=t.exists=t.IS_WINDOWS=t.unlink=t.symlink=t.stat=t.rmdir=t.rename=t.readlink=t.readdir=t.mkdir=t.lstat=t.copyFile=t.chmod=void 0;const c=o(r(747));const u=o(r(622));a=c.promises,t.chmod=a.chmod,t.copyFile=a.copyFile,t.lstat=a.lstat,t.mkdir=a.mkdir,t.readdir=a.readdir,t.readlink=a.readlink,t.rename=a.rename,t.rmdir=a.rmdir,t.stat=a.stat,t.symlink=a.symlink,t.unlink=a.unlink;t.IS_WINDOWS=process.platform==="win32";function exists(e){return s(this,void 0,void 0,(function*(){try{yield t.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}t.exists=exists;function isDirectory(e,r=false){return s(this,void 0,void 0,(function*(){const n=r?yield t.stat(e):yield t.lstat(e);return n.isDirectory()}))}t.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(t.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.isRooted=isRooted;function tryGetExecutablePath(e,r){return s(this,void 0,void 0,(function*(){let n=undefined;try{n=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(t.IS_WINDOWS){const t=u.extname(e).toUpperCase();if(r.some((e=>e.toUpperCase()===t))){return e}}else{if(isUnixExecutable(n)){return e}}}const i=e;for(const o of r){e=i+o;n=undefined;try{n=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(t.IS_WINDOWS){try{const r=u.dirname(e);const n=u.basename(e).toUpperCase();for(const i of yield t.readdir(r)){if(n===i.toUpperCase()){e=u.join(r,i);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(n)){return e}}}}return""}))}t.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(t.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}function getCmdPath(){var e;return(e=process.env["COMSPEC"])!==null&&e!==void 0?e:`cmd.exe`}t.getCmdPath=getCmdPath},436:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.findInPath=t.which=t.mkdirP=t.rmRF=t.mv=t.cp=void 0;const a=r(357);const c=o(r(129));const u=o(r(622));const l=r(669);const d=o(r(962));const f=l.promisify(c.exec);const p=l.promisify(c.execFile);function cp(e,t,r={}){return s(this,void 0,void 0,(function*(){const{force:n,recursive:i,copySourceDirectory:o}=readCopyOptions(r);const s=(yield d.exists(t))?yield d.stat(t):null;if(s&&s.isFile()&&!n){return}const a=s&&s.isDirectory()&&o?u.join(t,u.basename(e)):t;if(!(yield d.exists(e))){throw new Error(`no such file or directory: ${e}`)}const c=yield d.stat(e);if(c.isDirectory()){if(!i){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,a,0,n)}}else{if(u.relative(e,a)===""){throw new Error(`'${a}' and '${e}' are the same file`)}yield copyFile(e,a,n)}}))}t.cp=cp;function mv(e,t,r={}){return s(this,void 0,void 0,(function*(){if(yield d.exists(t)){let n=true;if(yield d.isDirectory(t)){t=u.join(t,u.basename(e));n=yield d.exists(t)}if(n){if(r.force==null||r.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(u.dirname(t));yield d.rename(e,t)}))}t.mv=mv;function rmRF(e){return s(this,void 0,void 0,(function*(){if(d.IS_WINDOWS){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}try{const t=d.getCmdPath();if(yield d.isDirectory(e,true)){yield f(`${t} /s /c "rd /s /q "%inputPath%""`,{env:{inputPath:e}})}else{yield f(`${t} /s /c "del /f /a "%inputPath%""`,{env:{inputPath:e}})}}catch(e){if(e.code!=="ENOENT")throw e}try{yield d.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let t=false;try{t=yield d.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(t){yield p(`rm`,[`-rf`,`${e}`])}else{yield d.unlink(e)}}}))}t.rmRF=rmRF;function mkdirP(e){return s(this,void 0,void 0,(function*(){a.ok(e,"a path argument must be provided");yield d.mkdir(e,{recursive:true})}))}t.mkdirP=mkdirP;function which(e,t){return s(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(t){const t=yield which(e,false);if(!t){if(d.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. 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.`)}else{throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}return t}const r=yield findInPath(e);if(r&&r.length>0){return r[0]}return""}))}t.which=which;function findInPath(e){return s(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const t=[];if(d.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(u.delimiter)){if(e){t.push(e)}}}if(d.isRooted(e)){const r=yield d.tryGetExecutablePath(e,t);if(r){return[r]}return[]}if(e.includes(u.sep)){return[]}const r=[];if(process.env.PATH){for(const e of process.env.PATH.split(u.delimiter)){if(e){r.push(e)}}}const n=[];for(const i of r){const r=yield d.tryGetExecutablePath(u.join(i,e),t);if(r){n.push(r)}}return n}))}t.findInPath=findInPath;function readCopyOptions(e){const t=e.force==null?true:e.force;const r=Boolean(e.recursive);const n=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:t,recursive:r,copySourceDirectory:n}}function cpDirRecursive(e,t,r,n){return s(this,void 0,void 0,(function*(){if(r>=255)return;r++;yield mkdirP(t);const i=yield d.readdir(e);for(const o of i){const i=`${e}/${o}`;const s=`${t}/${o}`;const a=yield d.lstat(i);if(a.isDirectory()){yield cpDirRecursive(i,s,r,n)}else{yield copyFile(i,s,n)}}yield d.chmod(t,(yield d.stat(e)).mode)}))}function copyFile(e,t,r){return s(this,void 0,void 0,(function*(){if((yield d.lstat(e)).isSymbolicLink()){try{yield d.lstat(t);yield d.unlink(t)}catch(e){if(e.code==="EPERM"){yield d.chmod(t,"0666");yield d.unlink(t)}}const r=yield d.readlink(e);yield d.symlink(r,t,d.IS_WINDOWS?"junction":null)}else if(!(yield d.exists(t))||r){yield d.copyFile(e,t)}}))}},421:e=>{var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],r=0;r{(function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(e,t){return e<>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number){return r.rotl(e,8)&16711935|r.rotl(e,24)&4278255360}for(var t=0;t0;e--)t.push(Math.floor(Math.random()*256));return t},bytesToWords:function(e){for(var t=[],r=0,n=0;r>>5]|=e[r]<<24-n%32;return t},wordsToBytes:function(e){for(var t=[],r=0;r>>5]>>>24-r%32&255);return t},bytesToHex:function(e){for(var t=[],r=0;r>>4).toString(16));t.push((e[r]&15).toString(16))}return t.join("")},hexToBytes:function(e){for(var t=[],r=0;r>>6*(3-o)&63));else r.push("=")}return r.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var r=[],n=0,i=0;n>>6-i*2)}return r}};e.exports=r})()},625:e=>{ /*! * Determine if an object is a Buffer * diff --git a/dist/package/index.js b/dist/package/index.js index 8cb9c64..9978a0b 100644 --- a/dist/package/index.js +++ b/dist/package/index.js @@ -1,4 +1,4 @@ -(()=>{var __webpack_modules__={1990:(e,a,r)=>{const i=r(1184);const n=r(467);const p=r(5008);const o=r(1066);const d=`${workspaceDir}/mac/Audacity.entitlements`;async function signFile(e,a,r){r=r||[];return p.execWithLog("xcrun",["codesign","--verbose=3","--timestamp","--sign",a,"--options","runtime","--entitlements",d,"--force",...r,e])}async function fixupRPath(e){const a=(await p.getExecOutput("otool",["-L",e])).stdout;const r=a.split("\n").filter((e=>e.indexOf("@rpath")!=-1)).map((e=>e.match(/@rpath\/.+\.dylib/)[0]));if(r.length==0){return}const i=(await p.getExecOutput("otool",["-l",e])).stdout.split("\n").map((e=>e.trim())).filter((e=>e.search(/path\s+@(?:executable|loader)_path/)!=-1)).map((e=>e.match(/path\s+(@(?:executable|loader)_path.*)\s+\(/)[1])).map((e=>["-delete_rpath",e])).flat(Infinity);const n=r.map((e=>["-change",e,e.replace("@rpath","@executable_path/../Frameworks")])).flat(Infinity);p.log(`Fixing rpath for ${e}`);return p.execWithLog("install_name_tool",[...n,...i,e])}async function singApp(e,a){if(!a){p.log("Skipping code signings, as there is no codesign identity provided");return}const r=await o.getAudacityMacOSBundleFiles(e);exeFiles=r.MacOS;modules=r.modules;frameworks=r.Frameworks.dylib;binaries=[...exeFiles,...modules,...frameworks];for(const e of binaries){await fixupRPath(e)}for(const e of[...modules]){await signFile(e,a)}await signFile(e,a,["--deep"]);await p.execWithLog("codesign",["--verify","--deep","--verbose=4","--strict",e])}async function signDMG(e,a,r){if(!r){p.log("Skipping code signings, as there is no codesign identity provided");return}await p.execWithLog("xcrun",["codesign","--verbose","--timestamp","--identifier",a,"--sign",r,e])}async function notarizeDMG(e,a,r,o){if(!r||!r){p.log("Skipping notarization, as there are np credentials provided");return}p.log(`Notarizing DMG: ${e}`);const d=await p.getExecOutput("xcrun",["altool","--notarize-app","--primary-bundle-id",a,"--file",e,"--username",r,"--password",o,"--output-format","xml"]);const s=i.parse(d.stdout)["notarization-upload"]["RequestUUID"];for(;;){await p.sleep(3e4);const e=await p.getExecOutput("xcrun",["altool","--notarization-info",s,"--username",r,"--password",o,"--output-format","xml"]);const a=i.parse(e.stdout);const d=a["notarization-info"]["Status"];if(d=="success"){return}else if(d!="in progress"){const r=a["notarization-info"]["LogFileURL"];if(r){const e=await n(r);if(e.ok){const a=await e.text();throw Error(`Notarization failed:\n${a}`)}}throw Error(e.stdout)}}}e.exports={singApp:singApp,signDMG:signDMG,notarizeDMG:notarizeDMG}},4523:(e,a,r)=>{const i=r(2186);e.exports={Alpha:0,Beta:1,Release:2,getBuildLevel:()=>{const e=i.getInput("build_level");const a=e.length>0?e:process.env["AUDACITY_BUILD_LEVEL"];if(a==="beta"){return 1}else if(a==="release"){return 2}else{const e=Number(a);if(Number.isInteger(e)&&e>=0&&e<=2){return e}return 0}},getBuildSuffix:e=>{if(e==1){return"beta"}else if(e==2){return""}else{return"alpha"}}}},3202:(e,a,r)=>{const i=r(5747);const n=r(1371);const p=r(5622);const o=r(1349);const d=r(5008);const s=r(1066);const l=p.join(workspaceDir,"mac","Resources","Audacity-DMG-background.png");async function estimateBundleSize(e){let a=0;for(const r of e){a+=(await i.promises.lstat(r)).size}return a*1.5}async function createTempImage(e,a,r,o){const s=n.template("%s.dmg").writeFileSync("");d.log(s);o.push((async()=>{if(i.existsSync(s)){d.log(`Removing image ${s}`);await i.promises.rm(s)}}));await d.execWithLog("hdiutil",["create",s,"-ov","-format","UDRW","-fs","HFS+","-size",r,"-srcdir",p.dirname(e),"-volname",a]);return s}async function detachImage(e){const a=10;for(let r=1;r{if(i.existsSync(p)){d.log(`Detaching image ${e} mounted at ${p}`);await detachImage(p)}}));return p}async function copyFiles(e,a,r){a=p.dirname(a);const n=p.join(e,".background");const o=p.join(n,"bg.png");if(!i.existsSync(n)){i.mkdirSync(n)}await i.promises.copyFile(l,o)}async function createLinks(e){await i.promises.symlink("/Applications",p.join(e,"Applications"))}async function createDSStore(e,a){const r=new o;r.vSrn(1);r.setIconSize(72);r.setBackgroundPath(p.join(e,".background","bg.png"));r.setWindowPos(400,100);r.setWindowSize(600,450);r.setIconPos(a,170,350);r.setIconPos("Applications",430,350);await new Promise(((a,i)=>{r.write(p.join(e,".DS_Store"),(e=>{if(e){i(e)}else{a()}}))}))}async function convertDMG(e,a){if(i.existsSync(a)){i.rmSync(a)}await d.execWithLog("hdiutil",["convert",e,"-format","UDZO","-imagekey","zlib-level=9","-o",a])}async function packageDMG(e,a){finalizers=[];const r=p.basename(a,".app");try{const i=await s.listDirectory(a);const n=await estimateBundleSize([...i,l]);const o=await createTempImage(a,r,n,finalizers);const d=await attachImage(o,finalizers);await copyFiles(d,a,i);await createLinks(d);await createDSStore(d,p.basename(a));await detachImage(d);await convertDMG(o,e)}finally{Promise.all(finalizers.slice(0).reverse().map((async e=>e())))}}e.exports={packageDMG:packageDMG}},1066:(e,a,r)=>{const i=r(5747);const n=r(5622);const p=r(8090);helpers=r(5008);const getFilesFromDirectoryRecursive=async e=>{const a=await i.promises.readdir(e);const r=await Promise.all(a.map((async a=>{const r=n.join(e,a);const p=await i.promises.stat(r);if(p.isDirectory()){return getFilesFromDirectoryRecursive(r)}else{return r}})));return r.filter((e=>e.length))};async function globFiles(e){const a=await p.create(Array.isArray(e)?e.join("\n"):e);let r=[];for await(const e of a.globGenerator()){const a=await i.promises.lstat(e);if(a.isSymbolicLink()){continue}r.push(e)}return r}async function listMacosAppsRecursive(e,a){const r=await i.promises.readdir(e);await Promise.all(r.map((async r=>{const p=n.join(e,r);const o=await i.promises.stat(p);if(o.isDirectory()){if(n.extname(r)==".app"){a.push(p)}else{return listMacosAppsRecursive(p,a)}}})))}async function getAudacityMacOSBundleFiles(e){bundle={MacOS:[],Frameworks:{dylib:[]},modules:[],misc:[]};const a=(await getFilesFromDirectoryRecursive(e)).flat(Infinity);a.forEach((e=>{if(e.indexOf("Contents/MacOS")!=-1){bundle.MacOS.push(e)}else if(e.indexOf("Contents/Frameworks")!=-1){const a=i.statSync(e);if(a.isSymbolicLink()){bundle.misc.push(e)}else if(a.isFile()){bundle.Frameworks.dylib.push(e)}else{throw Error("Bundled frameworks are not supported")}}else if(e.indexOf("Contents/modules")!=-1){bundle.modules.push(e)}else{bundle.misc.push(e)}}));return bundle}async function copyFile(e,a){const r=n.dirname(a);if(!i.existsSync(r)){i.mkdirSync(r,{recursive:true})}return i.promises.copyFile(e,a)}async function copyFiles(e,a,r){return helpers.awaitAll(a,(async a=>{const i=n.relative(e,a);return copyFile(a,n.join(r,i))}))}async function listMacosApps(e){apps=[];await listMacosAppsRecursive(e,apps);return apps}e.exports={listDirectory:async e=>(await getFilesFromDirectoryRecursive(e)).flat(Infinity),globFiles:globFiles,listMacosApps:listMacosApps,getAudacityMacOSBundleFiles:getAudacityMacOSBundleFiles,copyFile:copyFile,copyFiles:copyFiles}},5008:(e,a,r)=>{const i=r(2186);const n=r(1514);const p=r(5622);const o=r(1711);const d=process.env["CI"];global.workspaceDir=process.env["GITHUB_WORKSPACE"];global.conanCachePath=p.join(workspaceDir,".conan");function log(e){if(d){i.info(e)}else{console.log(e)}}function error(e){if(d){i.error(e)}else{console.error(e)}}async function execWithLog(e,arguments){if(d){return n.exec(e,arguments)}else{return n.exec(e,arguments,{listeners:{stdout:e=>{log(e.toString())},stderr:e=>{error(e.toString())}}})}}async function getExecOutput(e,arguments){if(d){return n.getExecOutput(e,arguments)}else{return n.getExecOutput(e,arguments,{listeners:{stdout:e=>{log(e.toString())},stderr:e=>{error(e.toString())}}})}}async function awaitAll(e,a){return await Promise.all(e.map((async e=>a(e))))}async function getMD5(e){const a=await fs.promises.readFileSync(e);return o(a)}function getDateString(){const e=new Date;return[e.getFullYear(),("0"+(e.getMonth()+1)).slice(-2),("0"+e.getDate()).slice(-2)].join("")}const sleep=e=>new Promise((a=>setTimeout(a,e)));process.on("unhandledRejection",((e,a)=>{error(e);i.setFailed(err);process.exit(1)})).on("uncaughtException",(e=>{error(e);i.setFailed(e);process.exit(1)}));e.exports={log:log,error:error,execWithLog:execWithLog,getExecOutput:getExecOutput,sleep:sleep,awaitAll:awaitAll,getMD5:getMD5,getDateString:getDateString}},9070:(e,a,r)=>{const i=r(5622);const n=r(5008);const p=r(1066);const o=r(5747);async function create(e,a){firstBundle=await p.getAudacityMacOSBundleFiles(a[0]);await p.copyFiles(a[0],firstBundle.misc,e);const r=[...firstBundle.MacOS,...firstBundle.Frameworks.dylib,...firstBundle.modules];return n.awaitAll(r,(r=>{const p=i.relative(a[0],r);const d=a.map((e=>i.join(e,p)));const s=i.join(e,p);const l=i.dirname(s);if(!o.existsSync(l)){o.mkdirSync(l,{recursive:true})}return n.execWithLog("lipo",["-create","-output",s,...d])}))}async function archs(e){const a=i.join(e,"Contents","MacOS");const r=i.join(a,o.readdirSync(a)[0]);return(await n.getExecOutput("lipo",["-archs",r])).stdout.split(/\s+/).map((e=>e.trim())).filter((e=>e.length>0))}async function archSuffix(e){const a=await archs(e);if(a.length==1){return a[0]}else{return"universal"}}e.exports={create:create,archs:archs,archs:archs,archSuffix:archSuffix}},2605:(e,a,r)=>{"use strict";Object.defineProperty(a,"__esModule",{value:true});const i=r(8802);function create(){return i.DefaultArtifactClient.create()}a.create=create},8802:function(e,a,r){"use strict";var i=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))a[r]=e[r];a["default"]=e;return a};Object.defineProperty(a,"__esModule",{value:true});const p=n(r(2186));const o=r(183);const d=r(4354);const s=r(6327);const l=r(8538);const u=r(5686);const m=r(2222);const c=r(5622);class DefaultArtifactClient{static create(){return new DefaultArtifactClient}uploadArtifact(e,a,r,n){return i(this,void 0,void 0,(function*(){s.checkArtifactName(e);const i=o.getUploadSpecification(e,r,a);const l={artifactName:e,artifactItems:[],size:0,failedItems:[]};const u=new d.UploadHttpClient;if(i.length===0){p.warning(`No files found that can be uploaded`)}else{const a=yield u.createArtifactInFileContainer(e,n);if(!a.fileContainerResourceUrl){p.debug(a.toString());throw new Error("No URL provided by the Artifact Service to upload an artifact to")}p.debug(`Upload Resource URL: ${a.fileContainerResourceUrl}`);const r=yield u.uploadArtifactToFileContainer(a.fileContainerResourceUrl,i,n);yield u.patchArtifactSize(r.totalSize,e);p.info(`Finished uploading artifact ${e}. Reported size is ${r.uploadSize} bytes. There were ${r.failedItems.length} items that failed to upload`);l.artifactItems=i.map((e=>e.absoluteFilePath));l.size=r.uploadSize;l.failedItems=r.failedItems}return l}))}downloadArtifact(e,a,r){return i(this,void 0,void 0,(function*(){const i=new l.DownloadHttpClient;const n=yield i.listArtifacts();if(n.count===0){throw new Error(`Unable to find any artifacts for the associated workflow`)}const o=n.value.find((a=>a.name===e));if(!o){throw new Error(`Unable to find an artifact with the name: ${e}`)}const d=yield i.getContainerItems(o.name,o.fileContainerResourceUrl);if(!a){a=m.getWorkSpaceDirectory()}a=c.normalize(a);a=c.resolve(a);const h=u.getDownloadSpecification(e,d.value,a,(r===null||r===void 0?void 0:r.createArtifactFolder)||false);if(h.filesToDownload.length===0){p.info(`No downloadable files were found for the artifact: ${o.name}`)}else{yield s.createDirectoriesForArtifact(h.directoryStructure);p.info("Directory structure has been setup for the artifact");yield s.createEmptyFilesForArtifact(h.emptyFilesToCreate);yield i.downloadSingleArtifact(h.filesToDownload)}return{artifactName:e,downloadPath:h.rootDownloadLocation}}))}downloadAllArtifacts(e){return i(this,void 0,void 0,(function*(){const a=new l.DownloadHttpClient;const r=[];const i=yield a.listArtifacts();if(i.count===0){p.info("Unable to find any artifacts for the associated workflow");return r}if(!e){e=m.getWorkSpaceDirectory()}e=c.normalize(e);e=c.resolve(e);let n=0;while(n{"use strict";Object.defineProperty(a,"__esModule",{value:true});function getUploadFileConcurrency(){return 2}a.getUploadFileConcurrency=getUploadFileConcurrency;function getUploadChunkSize(){return 8*1024*1024}a.getUploadChunkSize=getUploadChunkSize;function getRetryLimit(){return 5}a.getRetryLimit=getRetryLimit;function getRetryMultiplier(){return 1.5}a.getRetryMultiplier=getRetryMultiplier;function getInitialRetryIntervalInMilliseconds(){return 3e3}a.getInitialRetryIntervalInMilliseconds=getInitialRetryIntervalInMilliseconds;function getDownloadFileConcurrency(){return 2}a.getDownloadFileConcurrency=getDownloadFileConcurrency;function getRuntimeToken(){const e=process.env["ACTIONS_RUNTIME_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_RUNTIME_TOKEN env variable")}return e}a.getRuntimeToken=getRuntimeToken;function getRuntimeUrl(){const e=process.env["ACTIONS_RUNTIME_URL"];if(!e){throw new Error("Unable to get ACTIONS_RUNTIME_URL env variable")}return e}a.getRuntimeUrl=getRuntimeUrl;function getWorkFlowRunId(){const e=process.env["GITHUB_RUN_ID"];if(!e){throw new Error("Unable to get GITHUB_RUN_ID env variable")}return e}a.getWorkFlowRunId=getWorkFlowRunId;function getWorkSpaceDirectory(){const e=process.env["GITHUB_WORKSPACE"];if(!e){throw new Error("Unable to get GITHUB_WORKSPACE env variable")}return e}a.getWorkSpaceDirectory=getWorkSpaceDirectory;function getRetentionDays(){return process.env["GITHUB_RETENTION_DAYS"]}a.getRetentionDays=getRetentionDays},8538:function(e,a,r){"use strict";var i=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))a[r]=e[r];a["default"]=e;return a};Object.defineProperty(a,"__esModule",{value:true});const p=n(r(5747));const o=n(r(2186));const d=n(r(8761));const s=r(6327);const l=r(8835);const u=r(9081);const m=r(630);const c=r(6527);const h=r(2222);const v=r(755);class DownloadHttpClient{constructor(){this.downloadHttpManager=new c.HttpManager(h.getDownloadFileConcurrency(),"@actions/artifact-download");this.statusReporter=new u.StatusReporter(1e3)}listArtifacts(){return i(this,void 0,void 0,(function*(){const e=s.getArtifactUrl();const a=this.downloadHttpManager.getClient(0);const r=s.getDownloadHeaders("application/json");const n=yield v.retryHttpClientRequest("List Artifacts",(()=>i(this,void 0,void 0,(function*(){return a.get(e,r)}))));const p=yield n.readBody();return JSON.parse(p)}))}getContainerItems(e,a){return i(this,void 0,void 0,(function*(){const r=new l.URL(a);r.searchParams.append("itemPath",e);const n=this.downloadHttpManager.getClient(0);const p=s.getDownloadHeaders("application/json");const o=yield v.retryHttpClientRequest("Get Container Items",(()=>i(this,void 0,void 0,(function*(){return n.get(r.toString(),p)}))));const d=yield o.readBody();return JSON.parse(d)}))}downloadSingleArtifact(e){return i(this,void 0,void 0,(function*(){const a=h.getDownloadFileConcurrency();o.debug(`Download file concurrency is set to ${a}`);const r=[...new Array(a).keys()];let n=0;let p=0;o.info(`Total number of files that will be downloaded: ${e.length}`);this.statusReporter.setTotalNumberOfFilesToProcess(e.length);this.statusReporter.start();yield Promise.all(r.map((a=>i(this,void 0,void 0,(function*(){while(n{throw new Error(`Unable to download the artifact: ${e}`)})).finally((()=>{this.statusReporter.stop();this.downloadHttpManager.disposeAndReplaceAllClients()}))}))}downloadIndividualFile(e,a,r){return i(this,void 0,void 0,(function*(){let n=0;const d=h.getRetryLimit();let l=p.createWriteStream(r);const u=s.getDownloadHeaders("application/json",true,true);const makeDownloadRequest=()=>i(this,void 0,void 0,(function*(){const r=this.downloadHttpManager.getClient(e);return yield r.get(a,u)}));const isGzip=e=>"content-encoding"in e&&e["content-encoding"]==="gzip";const backOff=r=>i(this,void 0,void 0,(function*(){n++;if(n>d){return Promise.reject(new Error(`Retry limit has been reached. Unable to download ${a}`))}else{this.downloadHttpManager.disposeAndReplaceClient(e);if(r){o.info(`Backoff due to too many requests, retry #${n}. Waiting for ${r} milliseconds before continuing the download`);yield s.sleep(r)}else{const e=s.getExponentialRetryTimeInMilliseconds(n);o.info(`Exponential backoff for retry #${n}. Waiting for ${e} milliseconds before continuing the download`);yield s.sleep(e)}o.info(`Finished backoff for retry #${n}, continuing with download`)}}));const isAllBytesReceived=(e,a)=>{if(!e||!a||process.env["ACTIONS_ARTIFACT_SKIP_DOWNLOAD_VALIDATION"]){o.info("Skipping download validation.");return true}return parseInt(e)===a};const resetDestinationStream=e=>i(this,void 0,void 0,(function*(){l.close();yield s.rmFile(e);l=p.createWriteStream(e)}));while(n<=d){let e;try{e=yield makeDownloadRequest();if(o.isDebug()){s.displayHttpDiagnostics(e)}}catch(e){o.info("An error occurred while attempting to download a file");console.log(e);yield backOff();continue}let i=false;if(s.isSuccessStatusCode(e.message.statusCode)){try{const a=isGzip(e.message.headers);yield this.pipeResponseToFile(e,l,a);if(a||isAllBytesReceived(e.message.headers["content-length"],yield s.getFileSize(r))){return}else{i=true}}catch(e){i=true}}if(i||s.isRetryableStatusCode(e.message.statusCode)){o.info(`A ${e.message.statusCode} response code has been received while attempting to download an artifact`);resetDestinationStream(r);s.isThrottledStatusCode(e.message.statusCode)?yield backOff(s.tryGetRetryAfterValueTimeInMilliseconds(e.message.headers)):yield backOff()}else{s.displayHttpDiagnostics(e);return Promise.reject(new Error(`Unexpected http ${e.message.statusCode} during download for ${a}`))}}}))}pipeResponseToFile(e,a,r){return i(this,void 0,void 0,(function*(){yield new Promise(((i,n)=>{if(r){const r=d.createGunzip();e.message.on("error",(e=>{o.error(`An error occurred while attempting to read the response stream`);r.close();a.close();n(e)})).pipe(r).on("error",(e=>{o.error(`An error occurred while attempting to decompress the response stream`);a.close();n(e)})).pipe(a).on("close",(()=>{i()})).on("error",(e=>{o.error(`An error occurred while writing a downloaded file to ${a.path}`);n(e)}))}else{e.message.on("error",(e=>{o.error(`An error occurred while attempting to read the response stream`);a.close();n(e)})).pipe(a).on("close",(()=>{i()})).on("error",(e=>{o.error(`An error occurred while writing a downloaded file to ${a.path}`);n(e)}))}}));return}))}}a.DownloadHttpClient=DownloadHttpClient},5686:function(e,a,r){"use strict";var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))a[r]=e[r];a["default"]=e;return a};Object.defineProperty(a,"__esModule",{value:true});const n=i(r(5622));function getDownloadSpecification(e,a,r,i){const p=new Set;const o={rootDownloadLocation:i?n.join(r,e):r,directoryStructure:[],emptyFilesToCreate:[],filesToDownload:[]};for(const d of a){if(d.path.startsWith(`${e}/`)||d.path.startsWith(`${e}\\`)){const a=n.normalize(d.path);const s=n.join(r,i?a:a.replace(e,""));if(d.itemType==="file"){p.add(n.dirname(s));if(d.fileLength===0){o.emptyFilesToCreate.push(s)}else{o.filesToDownload.push({sourceLocation:d.contentLocation,targetPath:s})}}}}o.directoryStructure=Array.from(p);return o}a.getDownloadSpecification=getDownloadSpecification},6527:(e,a,r)=>{"use strict";Object.defineProperty(a,"__esModule",{value:true});const i=r(6327);class HttpManager{constructor(e,a){if(e<1){throw new Error("There must be at least one client")}this.userAgent=a;this.clients=new Array(e).fill(i.createHttpClient(a))}getClient(e){return this.clients[e]}disposeAndReplaceClient(e){this.clients[e].dispose();this.clients[e]=i.createHttpClient(this.userAgent)}disposeAndReplaceAllClients(){for(const[e]of this.clients.entries()){this.disposeAndReplaceClient(e)}}}a.HttpManager=HttpManager},755:function(e,a,r){"use strict";var i=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))a[r]=e[r];a["default"]=e;return a};Object.defineProperty(a,"__esModule",{value:true});const p=r(6327);const o=n(r(2186));const d=r(2222);function retry(e,a,r,n){return i(this,void 0,void 0,(function*(){let i=undefined;let d=undefined;let s=false;let l="";let u=undefined;let m=1;while(m<=n){try{i=yield a();d=i.message.statusCode;if(p.isSuccessStatusCode(d)){return i}if(d){u=r.get(d)}s=p.isRetryableStatusCode(d);l=`Artifact service responded with ${d}`}catch(e){s=true;l=e.message}if(!s){o.info(`${e} - Error is not retryable`);if(i){p.displayHttpDiagnostics(i)}break}o.info(`${e} - Attempt ${m} of ${n} failed with error: ${l}`);yield p.sleep(p.getExponentialRetryTimeInMilliseconds(m));m++}if(i){p.displayHttpDiagnostics(i)}if(u){throw Error(`${e} failed: ${u}`)}throw Error(`${e} failed: ${l}`)}))}a.retry=retry;function retryHttpClientRequest(e,a,r=new Map,n=d.getRetryLimit()){return i(this,void 0,void 0,(function*(){return yield retry(e,a,r,n)}))}a.retryHttpClientRequest=retryHttpClientRequest},9081:(e,a,r)=>{"use strict";Object.defineProperty(a,"__esModule",{value:true});const i=r(2186);class StatusReporter{constructor(e){this.totalNumberOfFilesToProcess=0;this.processedCount=0;this.largeFiles=new Map;this.totalFileStatus=undefined;this.largeFileStatus=undefined;this.displayFrequencyInMilliseconds=e}setTotalNumberOfFilesToProcess(e){this.totalNumberOfFilesToProcess=e}start(){this.totalFileStatus=setInterval((()=>{const e=this.formatPercentage(this.processedCount,this.totalNumberOfFilesToProcess);i.info(`Total file count: ${this.totalNumberOfFilesToProcess} ---- Processed file #${this.processedCount} (${e.slice(0,e.indexOf(".")+2)}%)`)}),this.displayFrequencyInMilliseconds);this.largeFileStatus=setInterval((()=>{for(const e of Array.from(this.largeFiles.values())){i.info(e)}this.largeFiles.clear()}),1e3)}updateLargeFileStatus(e,a,r){const i=this.formatPercentage(a,r);const n=`Uploading ${e} (${i.slice(0,i.indexOf(".")+2)}%)`;this.largeFiles.set(e,n)}stop(){if(this.totalFileStatus){clearInterval(this.totalFileStatus)}if(this.largeFileStatus){clearInterval(this.largeFileStatus)}}incrementProcessedCount(){this.processedCount++}formatPercentage(e,a){return(e/a*100).toFixed(4).toString()}}a.StatusReporter=StatusReporter},606:function(e,a,r){"use strict";var i=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};var n=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=e[Symbol.asyncIterator],r;return a?a.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(a){r[a]=e[a]&&function(r){return new Promise((function(i,n){r=e[a](r),settle(i,n,r.done,r.value)}))}}function settle(e,a,r,i){Promise.resolve(i).then((function(a){e({value:a,done:r})}),a)}};var p=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))a[r]=e[r];a["default"]=e;return a};Object.defineProperty(a,"__esModule",{value:true});const o=p(r(5747));const d=p(r(8761));const s=r(1669);const l=s.promisify(o.stat);function createGZipFileOnDisk(e,a){return i(this,void 0,void 0,(function*(){return new Promise(((r,n)=>{const p=o.createReadStream(e);const s=d.createGzip();const u=o.createWriteStream(a);p.pipe(s).pipe(u);u.on("finish",(()=>i(this,void 0,void 0,(function*(){const e=(yield l(a)).size;r(e)}))));u.on("error",(e=>{console.log(e);n}))}))}))}a.createGZipFileOnDisk=createGZipFileOnDisk;function createGZipFileInBuffer(e){return i(this,void 0,void 0,(function*(){return new Promise((a=>i(this,void 0,void 0,(function*(){var r,i;const p=o.createReadStream(e);const s=d.createGzip();p.pipe(s);const l=[];try{for(var u=n(s),m;m=yield u.next(),!m.done;){const e=m.value;l.push(e)}}catch(e){r={error:e}}finally{try{if(m&&!m.done&&(i=u.return))yield i.call(u)}finally{if(r)throw r.error}}a(Buffer.concat(l))}))))}))}a.createGZipFileInBuffer=createGZipFileInBuffer},4354:function(e,a,r){"use strict";var i=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))a[r]=e[r];a["default"]=e;return a};Object.defineProperty(a,"__esModule",{value:true});const p=n(r(5747));const o=n(r(2186));const d=n(r(8065));const s=n(r(2413));const l=r(6327);const u=r(2222);const m=r(1669);const c=r(8835);const h=r(630);const v=r(9081);const g=r(9925);const y=r(6527);const w=r(606);const b=r(755);const S=m.promisify(p.stat);class UploadHttpClient{constructor(){this.uploadHttpManager=new y.HttpManager(u.getUploadFileConcurrency(),"@actions/artifact-upload");this.statusReporter=new v.StatusReporter(1e4)}createArtifactInFileContainer(e,a){return i(this,void 0,void 0,(function*(){const r={Type:"actions_storage",Name:e};if(a&&a.retentionDays){const e=u.getRetentionDays();r.RetentionDays=l.getProperRetention(a.retentionDays,e)}const n=JSON.stringify(r,null,2);const p=l.getArtifactUrl();const o=this.uploadHttpManager.getClient(0);const d=l.getUploadHeaders("application/json",false);const s=new Map([[g.HttpCodes.Forbidden,"Artifact storage quota has been hit. Unable to upload any new artifacts"],[g.HttpCodes.BadRequest,`The artifact name ${e} is not valid. Request URL ${p}`]]);const m=yield b.retryHttpClientRequest("Create Artifact Container",(()=>i(this,void 0,void 0,(function*(){return o.post(p,n,d)}))),s);const c=yield m.readBody();return JSON.parse(c)}))}uploadArtifactToFileContainer(e,a,r){return i(this,void 0,void 0,(function*(){const n=u.getUploadFileConcurrency();const p=u.getUploadChunkSize();o.debug(`File Concurrency: ${n}, and Chunk Size: ${p}`);const d=[];let s=true;if(r){if(r.continueOnError===false){s=false}}for(const r of a){const a=new c.URL(e);a.searchParams.append("itemPath",r.uploadFilePath);d.push({file:r.absoluteFilePath,resourceUrl:a.toString(),maxChunkSize:p,continueOnError:s})}const l=[...new Array(n).keys()];const m=[];let v=0;let g=0;let y=0;let w=0;let b=false;this.statusReporter.setTotalNumberOfFilesToProcess(a.length);this.statusReporter.start();yield Promise.all(l.map((e=>i(this,void 0,void 0,(function*(){while(vp.createReadStream(a.file);m=false;u=r}else{d=()=>{const e=new s.PassThrough;e.end(i);return e};u=i.byteLength}const c=yield this.uploadChunk(e,a.resourceUrl,d,0,u-1,u,m,r);if(!c){n=false;l+=u;o.warning(`Aborting upload for ${a.file} due to failure`)}return{isSuccess:n,successfulUploadSize:u-l,totalSize:r}}else{const s=yield d.file();u=yield w.createGZipFileOnDisk(a.file,s.path);let c=s.path;if(r104857600){this.statusReporter.updateLargeFileStatus(a.file,i,u)}const s=i;const v=i+d-1;i+=a.maxChunkSize;if(h){l+=d;continue}const g=yield this.uploadChunk(e,a.resourceUrl,(()=>p.createReadStream(c,{start:s,end:v,autoClose:false})),s,v,u,m,r);if(!g){n=false;l+=d;o.warning(`Aborting upload for ${a.file} due to failure`);h=true}}yield s.cleanup();return{isSuccess:n,successfulUploadSize:u-l,totalSize:r}}}))}uploadChunk(e,a,r,n,p,d,s,m){return i(this,void 0,void 0,(function*(){const c=l.getUploadHeaders("application/octet-stream",true,s,m,p-n+1,l.getContentRange(n,p,d));const uploadChunkRequest=()=>i(this,void 0,void 0,(function*(){const i=this.uploadHttpManager.getClient(e);return yield i.sendStream("PUT",a,r(),c)}));let h=0;const v=u.getRetryLimit();const incrementAndCheckRetryLimit=e=>{h++;if(h>v){if(e){l.displayHttpDiagnostics(e)}o.info(`Retry limit has been reached for chunk at offset ${n} to ${a}`);return true}return false};const backOff=a=>i(this,void 0,void 0,(function*(){this.uploadHttpManager.disposeAndReplaceClient(e);if(a){o.info(`Backoff due to too many requests, retry #${h}. Waiting for ${a} milliseconds before continuing the upload`);yield l.sleep(a)}else{const e=l.getExponentialRetryTimeInMilliseconds(h);o.info(`Exponential backoff for retry #${h}. Waiting for ${e} milliseconds before continuing the upload at offset ${n}`);yield l.sleep(e)}o.info(`Finished backoff for retry #${h}, continuing with upload`);return}));while(h<=v){let r;try{r=yield uploadChunkRequest()}catch(a){o.info(`An error has been caught http-client index ${e}, retrying the upload`);console.log(a);if(incrementAndCheckRetryLimit()){return false}yield backOff();continue}yield r.readBody();if(l.isSuccessStatusCode(r.message.statusCode)){return true}else if(l.isRetryableStatusCode(r.message.statusCode)){o.info(`A ${r.message.statusCode} status code has been received, will attempt to retry the upload`);if(incrementAndCheckRetryLimit(r)){return false}l.isThrottledStatusCode(r.message.statusCode)?yield backOff(l.tryGetRetryAfterValueTimeInMilliseconds(r.message.headers)):yield backOff()}else{o.error(`Unexpected response. Unable to upload chunk to ${a}`);l.displayHttpDiagnostics(r);return false}}return false}))}patchArtifactSize(e,a){return i(this,void 0,void 0,(function*(){const r=new c.URL(l.getArtifactUrl());r.searchParams.append("artifactName",a);const n={Size:e};const p=JSON.stringify(n,null,2);o.debug(`URL is ${r.toString()}`);const d=this.uploadHttpManager.getClient(0);const s=l.getUploadHeaders("application/json",false);const u=new Map([[g.HttpCodes.NotFound,`An Artifact with the name ${a} was not found`]]);const m=yield b.retryHttpClientRequest("Finalize artifact upload",(()=>i(this,void 0,void 0,(function*(){return d.patch(r.toString(),p,s)}))),u);yield m.readBody();o.debug(`Artifact ${a} has been successfully uploaded, total size in bytes: ${e}`)}))}}a.UploadHttpClient=UploadHttpClient},183:function(e,a,r){"use strict";var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))a[r]=e[r];a["default"]=e;return a};Object.defineProperty(a,"__esModule",{value:true});const n=i(r(5747));const p=r(2186);const o=r(5622);const d=r(6327);function getUploadSpecification(e,a,r){d.checkArtifactName(e);const i=[];if(!n.existsSync(a)){throw new Error(`Provided rootDirectory ${a} does not exist`)}if(!n.lstatSync(a).isDirectory()){throw new Error(`Provided rootDirectory ${a} is not a valid directory`)}a=o.normalize(a);a=o.resolve(a);for(let s of r){if(!n.existsSync(s)){throw new Error(`File ${s} does not exist`)}if(!n.lstatSync(s).isDirectory()){s=o.normalize(s);s=o.resolve(s);if(!s.startsWith(a)){throw new Error(`The rootDirectory: ${a} is not a parent directory of the file: ${s}`)}const r=s.replace(a,"");d.checkArtifactFilePath(r);i.push({absoluteFilePath:s,uploadFilePath:o.join(e,r)})}else{p.debug(`Removing ${s} from rawSearchResults because it is a directory`)}}return i}a.getUploadSpecification=getUploadSpecification},6327:function(e,a,r){"use strict";var i=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};Object.defineProperty(a,"__esModule",{value:true});const n=r(2186);const p=r(5747);const o=r(9925);const d=r(3702);const s=r(2222);function getExponentialRetryTimeInMilliseconds(e){if(e<0){throw new Error("RetryCount should not be negative")}else if(e===0){return s.getInitialRetryIntervalInMilliseconds()}const a=s.getInitialRetryIntervalInMilliseconds()*s.getRetryMultiplier()*e;const r=a*s.getRetryMultiplier();return Math.random()*(r-a)+a}a.getExponentialRetryTimeInMilliseconds=getExponentialRetryTimeInMilliseconds;function parseEnvNumber(e){const a=Number(process.env[e]);if(Number.isNaN(a)||a<0){return undefined}return a}a.parseEnvNumber=parseEnvNumber;function getApiVersion(){return"6.0-preview"}a.getApiVersion=getApiVersion;function isSuccessStatusCode(e){if(!e){return false}return e>=200&&e<300}a.isSuccessStatusCode=isSuccessStatusCode;function isForbiddenStatusCode(e){if(!e){return false}return e===o.HttpCodes.Forbidden}a.isForbiddenStatusCode=isForbiddenStatusCode;function isRetryableStatusCode(e){if(!e){return false}const a=[o.HttpCodes.BadGateway,o.HttpCodes.GatewayTimeout,o.HttpCodes.InternalServerError,o.HttpCodes.ServiceUnavailable,o.HttpCodes.TooManyRequests,413];return a.includes(e)}a.isRetryableStatusCode=isRetryableStatusCode;function isThrottledStatusCode(e){if(!e){return false}return e===o.HttpCodes.TooManyRequests}a.isThrottledStatusCode=isThrottledStatusCode;function tryGetRetryAfterValueTimeInMilliseconds(e){if(e["retry-after"]){const a=Number(e["retry-after"]);if(!isNaN(a)){n.info(`Retry-After header is present with a value of ${a}`);return a*1e3}n.info(`Returned retry-after header value: ${a} is non-numeric and cannot be used`);return undefined}n.info(`No retry-after header was found. Dumping all headers for diagnostic purposes`);console.log(e);return undefined}a.tryGetRetryAfterValueTimeInMilliseconds=tryGetRetryAfterValueTimeInMilliseconds;function getContentRange(e,a,r){return`bytes ${e}-${a}/${r}`}a.getContentRange=getContentRange;function getDownloadHeaders(e,a,r){const i={};if(e){i["Content-Type"]=e}if(a){i["Connection"]="Keep-Alive";i["Keep-Alive"]="10"}if(r){i["Accept-Encoding"]="gzip";i["Accept"]=`application/octet-stream;api-version=${getApiVersion()}`}else{i["Accept"]=`application/json;api-version=${getApiVersion()}`}return i}a.getDownloadHeaders=getDownloadHeaders;function getUploadHeaders(e,a,r,i,n,p){const o={};o["Accept"]=`application/json;api-version=${getApiVersion()}`;if(e){o["Content-Type"]=e}if(a){o["Connection"]="Keep-Alive";o["Keep-Alive"]="10"}if(r){o["Content-Encoding"]="gzip";o["x-tfs-filelength"]=i}if(n){o["Content-Length"]=n}if(p){o["Content-Range"]=p}return o}a.getUploadHeaders=getUploadHeaders;function createHttpClient(e){return new o.HttpClient(e,[new d.BearerCredentialHandler(s.getRuntimeToken())])}a.createHttpClient=createHttpClient;function getArtifactUrl(){const e=`${s.getRuntimeUrl()}_apis/pipelines/workflows/${s.getWorkFlowRunId()}/artifacts?api-version=${getApiVersion()}`;n.debug(`Artifact Url: ${e}`);return e}a.getArtifactUrl=getArtifactUrl;function displayHttpDiagnostics(e){n.info(`##### Begin Diagnostic HTTP information #####\nStatus Code: ${e.message.statusCode}\nStatus Message: ${e.message.statusMessage}\nHeader Information: ${JSON.stringify(e.message.headers,undefined,2)}\n###### End Diagnostic HTTP information ######`)}a.displayHttpDiagnostics=displayHttpDiagnostics;const l=['"',":","<",">","|","*","?"];const u=[...l,"\\","/"];function checkArtifactName(e){if(!e){throw new Error(`Artifact name: ${e}, is incorrectly provided`)}for(const a of u){if(e.includes(a)){throw new Error(`Artifact name is not valid: ${e}. Contains character: "${a}". Invalid artifact name characters include: ${u.toString()}.`)}}}a.checkArtifactName=checkArtifactName;function checkArtifactFilePath(e){if(!e){throw new Error(`Artifact path: ${e}, is incorrectly provided`)}for(const a of l){if(e.includes(a)){throw new Error(`Artifact path is not valid: ${e}. Contains character: "${a}". Invalid characters include: ${l.toString()}.`)}}}a.checkArtifactFilePath=checkArtifactFilePath;function createDirectoriesForArtifact(e){return i(this,void 0,void 0,(function*(){for(const a of e){yield p.promises.mkdir(a,{recursive:true})}}))}a.createDirectoriesForArtifact=createDirectoriesForArtifact;function createEmptyFilesForArtifact(e){return i(this,void 0,void 0,(function*(){for(const a of e){yield(yield p.promises.open(a,"w")).close()}}))}a.createEmptyFilesForArtifact=createEmptyFilesForArtifact;function getFileSize(e){return i(this,void 0,void 0,(function*(){const a=yield p.promises.stat(e);n.debug(`${e} size:(${a.size}) blksize:(${a.blksize}) blocks:(${a.blocks})`);return a.size}))}a.getFileSize=getFileSize;function rmFile(e){return i(this,void 0,void 0,(function*(){yield p.promises.unlink(e)}))}a.rmFile=rmFile;function getProperRetention(e,a){if(e<0){throw new Error("Invalid retention, minimum value is 1.")}let r=e;if(a){const e=parseInt(a);if(!isNaN(e)&&esetTimeout(a,e)))}))}a.sleep=sleep},7351:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var p=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};Object.defineProperty(a,"__esModule",{value:true});a.issue=a.issueCommand=void 0;const o=p(r(2087));const d=r(5278);function issueCommand(e,a,r){const i=new Command(e,a,r);process.stdout.write(i.toString()+o.EOL)}a.issueCommand=issueCommand;function issue(e,a=""){issueCommand(e,{},a)}a.issue=issue;const s="::";class Command{constructor(e,a,r){if(!e){e="missing.command"}this.command=e;this.properties=a;this.message=r}toString(){let e=s+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let a=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const i=this.properties[r];if(i){if(a){a=false}else{e+=","}e+=`${r}=${escapeProperty(i)}`}}}}e+=`${s}${escapeData(this.message)}`;return e}}function escapeData(e){return d.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return d.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var p=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};var o=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};Object.defineProperty(a,"__esModule",{value:true});a.getIDToken=a.getState=a.saveState=a.group=a.endGroup=a.startGroup=a.info=a.notice=a.warning=a.error=a.debug=a.isDebug=a.setFailed=a.setCommandEcho=a.setOutput=a.getBooleanInput=a.getMultilineInput=a.getInput=a.addPath=a.setSecret=a.exportVariable=a.ExitCode=void 0;const d=r(7351);const s=r(717);const l=r(5278);const u=p(r(2087));const m=p(r(5622));const c=r(8041);var h;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(h=a.ExitCode||(a.ExitCode={}));function exportVariable(e,a){const r=l.toCommandValue(a);process.env[e]=r;const i=process.env["GITHUB_ENV"]||"";if(i){const a="_GitHubActionsFileCommandDelimeter_";const i=`${e}<<${a}${u.EOL}${r}${u.EOL}${a}`;s.issueCommand("ENV",i)}else{d.issueCommand("set-env",{name:e},r)}}a.exportVariable=exportVariable;function setSecret(e){d.issueCommand("add-mask",{},e)}a.setSecret=setSecret;function addPath(e){const a=process.env["GITHUB_PATH"]||"";if(a){s.issueCommand("PATH",e)}else{d.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${m.delimiter}${process.env["PATH"]}`}a.addPath=addPath;function getInput(e,a){const r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(a&&a.required&&!r){throw new Error(`Input required and not supplied: ${e}`)}if(a&&a.trimWhitespace===false){return r}return r.trim()}a.getInput=getInput;function getMultilineInput(e,a){const r=getInput(e,a).split("\n").filter((e=>e!==""));return r}a.getMultilineInput=getMultilineInput;function getBooleanInput(e,a){const r=["true","True","TRUE"];const i=["false","False","FALSE"];const n=getInput(e,a);if(r.includes(n))return true;if(i.includes(n))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}a.getBooleanInput=getBooleanInput;function setOutput(e,a){process.stdout.write(u.EOL);d.issueCommand("set-output",{name:e},a)}a.setOutput=setOutput;function setCommandEcho(e){d.issue("echo",e?"on":"off")}a.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=h.Failure;error(e)}a.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}a.isDebug=isDebug;function debug(e){d.issueCommand("debug",{},e)}a.debug=debug;function error(e,a={}){d.issueCommand("error",l.toCommandProperties(a),e instanceof Error?e.toString():e)}a.error=error;function warning(e,a={}){d.issueCommand("warning",l.toCommandProperties(a),e instanceof Error?e.toString():e)}a.warning=warning;function notice(e,a={}){d.issueCommand("notice",l.toCommandProperties(a),e instanceof Error?e.toString():e)}a.notice=notice;function info(e){process.stdout.write(e+u.EOL)}a.info=info;function startGroup(e){d.issue("group",e)}a.startGroup=startGroup;function endGroup(){d.issue("endgroup")}a.endGroup=endGroup;function group(e,a){return o(this,void 0,void 0,(function*(){startGroup(e);let r;try{r=yield a()}finally{endGroup()}return r}))}a.group=group;function saveState(e,a){d.issueCommand("save-state",{name:e},a)}a.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}a.getState=getState;function getIDToken(e){return o(this,void 0,void 0,(function*(){return yield c.OidcClient.getIDToken(e)}))}a.getIDToken=getIDToken},717:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var p=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};Object.defineProperty(a,"__esModule",{value:true});a.issueCommand=void 0;const o=p(r(5747));const d=p(r(2087));const s=r(5278);function issueCommand(e,a){const r=process.env[`GITHUB_${e}`];if(!r){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!o.existsSync(r)){throw new Error(`Missing file at path: ${r}`)}o.appendFileSync(r,`${s.toCommandValue(a)}${d.EOL}`,{encoding:"utf8"})}a.issueCommand=issueCommand},8041:function(e,a,r){"use strict";var i=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};Object.defineProperty(a,"__esModule",{value:true});a.OidcClient=void 0;const n=r(9925);const p=r(3702);const o=r(2186);class OidcClient{static createHttpClient(e=true,a=10){const r={allowRetries:e,maxRetries:a};return new n.HttpClient("actions/oidc-client",[new p.BearerCredentialHandler(OidcClient.getRequestToken())],r)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var a;return i(this,void 0,void 0,(function*(){const r=OidcClient.createHttpClient();const i=yield r.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)}));const n=(a=i.result)===null||a===void 0?void 0:a.value;if(!n){throw new Error("Response json body do not have ID Token field")}return n}))}static getIDToken(e){return i(this,void 0,void 0,(function*(){try{let a=OidcClient.getIDTokenUrl();if(e){const r=encodeURIComponent(e);a=`${a}&audience=${r}`}o.debug(`ID token url is ${a}`);const r=yield OidcClient.getCall(a);o.setSecret(r);return r}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}a.OidcClient=OidcClient},5278:(e,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:true});a.toCommandProperties=a.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}a.toCommandValue=toCommandValue;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}a.toCommandProperties=toCommandProperties},1514:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var p=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};var o=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};Object.defineProperty(a,"__esModule",{value:true});a.getExecOutput=a.exec=void 0;const d=r(4304);const s=p(r(8159));function exec(e,a,r){return o(this,void 0,void 0,(function*(){const i=s.argStringToArray(e);if(i.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const n=i[0];a=i.slice(1).concat(a||[]);const p=new s.ToolRunner(n,a,r);return p.exec()}))}a.exec=exec;function getExecOutput(e,a,r){var i,n;return o(this,void 0,void 0,(function*(){let p="";let o="";const s=new d.StringDecoder("utf8");const l=new d.StringDecoder("utf8");const u=(i=r===null||r===void 0?void 0:r.listeners)===null||i===void 0?void 0:i.stdout;const m=(n=r===null||r===void 0?void 0:r.listeners)===null||n===void 0?void 0:n.stderr;const stdErrListener=e=>{o+=l.write(e);if(m){m(e)}};const stdOutListener=e=>{p+=s.write(e);if(u){u(e)}};const c=Object.assign(Object.assign({},r===null||r===void 0?void 0:r.listeners),{stdout:stdOutListener,stderr:stdErrListener});const h=yield exec(e,a,Object.assign(Object.assign({},r),{listeners:c}));p+=s.end();o+=l.end();return{exitCode:h,stdout:p,stderr:o}}))}a.getExecOutput=getExecOutput},8159:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var p=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};var o=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};Object.defineProperty(a,"__esModule",{value:true});a.argStringToArray=a.ToolRunner=void 0;const d=p(r(2087));const s=p(r(8614));const l=p(r(3129));const u=p(r(5622));const m=p(r(7436));const c=p(r(1962));const h=r(8213);const v=process.platform==="win32";class ToolRunner extends s.EventEmitter{constructor(e,a,r){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=a||[];this.options=r||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,a){const r=this._getSpawnFileName();const i=this._getSpawnArgs(e);let n=a?"":"[command]";if(v){if(this._isCmdFile()){n+=r;for(const e of i){n+=` ${e}`}}else if(e.windowsVerbatimArguments){n+=`"${r}"`;for(const e of i){n+=` ${e}`}}else{n+=this._windowsQuoteCmdArg(r);for(const e of i){n+=` ${this._windowsQuoteCmdArg(e)}`}}}else{n+=r;for(const e of i){n+=` ${e}`}}return n}_processLineBuffer(e,a,r){try{let i=a+e.toString();let n=i.indexOf(d.EOL);while(n>-1){const e=i.substring(0,n);r(e);i=i.substring(n+d.EOL.length);n=i.indexOf(d.EOL)}return i}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(v){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(v){if(this._isCmdFile()){let a=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const r of this.args){a+=" ";a+=e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r)}a+='"';return[a]}}return this.args}_endsWith(e,a){return e.endsWith(a)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const a=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let r=false;for(const i of e){if(a.some((e=>e===i))){r=true;break}}if(!r){return e}let i='"';let n=true;for(let a=e.length;a>0;a--){i+=e[a-1];if(n&&e[a-1]==="\\"){i+="\\"}else if(e[a-1]==='"'){n=true;i+='"'}else{n=false}}i+='"';return i.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let a='"';let r=true;for(let i=e.length;i>0;i--){a+=e[i-1];if(r&&e[i-1]==="\\"){a+="\\"}else if(e[i-1]==='"'){r=true;a+="\\"}else{r=false}}a+='"';return a.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const a={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};a.outStream=e.outStream||process.stdout;a.errStream=e.errStream||process.stderr;return a}_getSpawnOptions(e,a){e=e||{};const r={};r.cwd=e.cwd;r.env=e.env;r["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){r.argv0=`"${a}"`}return r}exec(){return o(this,void 0,void 0,(function*(){if(!c.isRooted(this.toolPath)&&(this.toolPath.includes("/")||v&&this.toolPath.includes("\\"))){this.toolPath=u.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield m.which(this.toolPath,true);return new Promise(((e,a)=>o(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 r=this._cloneExecOptions(this.options);if(!r.silent&&r.outStream){r.outStream.write(this._getCommandString(r)+d.EOL)}const i=new ExecState(r,this.toolPath);i.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield c.exists(this.options.cwd))){return a(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const n=this._getSpawnFileName();const p=l.spawn(n,this._getSpawnArgs(r),this._getSpawnOptions(this.options,n));let o="";if(p.stdout){p.stdout.on("data",(e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!r.silent&&r.outStream){r.outStream.write(e)}o=this._processLineBuffer(e,o,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let s="";if(p.stderr){p.stderr.on("data",(e=>{i.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!r.silent&&r.errStream&&r.outStream){const a=r.failOnStdErr?r.errStream:r.outStream;a.write(e)}s=this._processLineBuffer(e,s,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}p.on("error",(e=>{i.processError=e.message;i.processExited=true;i.processClosed=true;i.CheckComplete()}));p.on("exit",(e=>{i.processExitCode=e;i.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);i.CheckComplete()}));p.on("close",(e=>{i.processExitCode=e;i.processExited=true;i.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);i.CheckComplete()}));i.on("done",((r,i)=>{if(o.length>0){this.emit("stdline",o)}if(s.length>0){this.emit("errline",s)}p.removeAllListeners();if(r){a(r)}else{e(i)}}));if(this.options.input){if(!p.stdin){throw new Error("child process missing stdin")}p.stdin.end(this.options.input)}}))))}))}}a.ToolRunner=ToolRunner;function argStringToArray(e){const a=[];let r=false;let i=false;let n="";function append(e){if(i&&e!=='"'){n+="\\"}n+=e;i=false}for(let p=0;p0){a.push(n);n=""}continue}append(o)}if(n.length>0){a.push(n.trim())}return a}a.argStringToArray=argStringToArray;class ExecState extends s.EventEmitter{constructor(e,a){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!a){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=a;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=h.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(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}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const a=`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(a)}e._setResult()}}},8090:function(e,a,r){"use strict";var i=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};Object.defineProperty(a,"__esModule",{value:true});a.hashFiles=a.create=void 0;const n=r(8298);const p=r(2448);function create(e,a){return i(this,void 0,void 0,(function*(){return yield n.DefaultGlobber.create(e,a)}))}a.create=create;function hashFiles(e,a){return i(this,void 0,void 0,(function*(){let r=true;if(a&&typeof a.followSymbolicLinks==="boolean"){r=a.followSymbolicLinks}const i=yield create(e,{followSymbolicLinks:r});return p.hashFiles(i)}))}a.hashFiles=hashFiles},1026:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var p=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};Object.defineProperty(a,"__esModule",{value:true});a.getOptions=void 0;const o=p(r(2186));function getOptions(e){const a={followSymbolicLinks:true,implicitDescendants:true,matchDirectories:true,omitBrokenSymbolicLinks:true};if(e){if(typeof e.followSymbolicLinks==="boolean"){a.followSymbolicLinks=e.followSymbolicLinks;o.debug(`followSymbolicLinks '${a.followSymbolicLinks}'`)}if(typeof e.implicitDescendants==="boolean"){a.implicitDescendants=e.implicitDescendants;o.debug(`implicitDescendants '${a.implicitDescendants}'`)}if(typeof e.matchDirectories==="boolean"){a.matchDirectories=e.matchDirectories;o.debug(`matchDirectories '${a.matchDirectories}'`)}if(typeof e.omitBrokenSymbolicLinks==="boolean"){a.omitBrokenSymbolicLinks=e.omitBrokenSymbolicLinks;o.debug(`omitBrokenSymbolicLinks '${a.omitBrokenSymbolicLinks}'`)}}return a}a.getOptions=getOptions},8298:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var p=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};var o=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};var d=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=e[Symbol.asyncIterator],r;return a?a.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(a){r[a]=e[a]&&function(r){return new Promise((function(i,n){r=e[a](r),settle(i,n,r.done,r.value)}))}}function settle(e,a,r,i){Promise.resolve(i).then((function(a){e({value:a,done:r})}),a)}};var s=this&&this.__await||function(e){return this instanceof s?(this.v=e,this):new s(e)};var l=this&&this.__asyncGenerator||function(e,a,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=r.apply(e,a||[]),n,p=[];return n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n;function verb(e){if(i[e])n[e]=function(a){return new Promise((function(r,i){p.push([e,a,r,i])>1||resume(e,a)}))}}function resume(e,a){try{step(i[e](a))}catch(e){settle(p[0][3],e)}}function step(e){e.value instanceof s?Promise.resolve(e.value.v).then(fulfill,reject):settle(p[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,a){if(e(a),p.shift(),p.length)resume(p[0][0],p[0][1])}};Object.defineProperty(a,"__esModule",{value:true});a.DefaultGlobber=void 0;const u=p(r(2186));const m=p(r(5747));const c=p(r(1026));const h=p(r(5622));const v=p(r(9005));const g=r(1063);const y=r(4536);const w=r(9117);const b=process.platform==="win32";class DefaultGlobber{constructor(e){this.patterns=[];this.searchPaths=[];this.options=c.getOptions(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){var e,a;return o(this,void 0,void 0,(function*(){const r=[];try{for(var i=d(this.globGenerator()),n;n=yield i.next(),!n.done;){const e=n.value;r.push(e)}}catch(a){e={error:a}}finally{try{if(n&&!n.done&&(a=i.return))yield a.call(i)}finally{if(e)throw e.error}}return r}))}globGenerator(){return l(this,arguments,(function*globGenerator_1(){const e=c.getOptions(this.options);const a=[];for(const r of this.patterns){a.push(r);if(e.implicitDescendants&&(r.trailingSeparator||r.segments[r.segments.length-1]!=="**")){a.push(new y.Pattern(r.negate,true,r.segments.concat("**")))}}const r=[];for(const e of v.getSearchPaths(a)){u.debug(`Search path '${e}'`);try{yield s(m.promises.lstat(e))}catch(e){if(e.code==="ENOENT"){continue}throw e}r.unshift(new w.SearchState(e,1))}const i=[];while(r.length){const n=r.pop();const p=v.match(a,n.path);const o=!!p||v.partialMatch(a,n.path);if(!p&&!o){continue}const d=yield s(DefaultGlobber.stat(n,e,i));if(!d){continue}if(d.isDirectory()){if(p&g.MatchKind.Directory&&e.matchDirectories){yield yield s(n.path)}else if(!o){continue}const a=n.level+1;const i=(yield s(m.promises.readdir(n.path))).map((e=>new w.SearchState(h.join(n.path,e),a)));r.push(...i.reverse())}else if(p&g.MatchKind.File){yield yield s(n.path)}}}))}static create(e,a){return o(this,void 0,void 0,(function*(){const r=new DefaultGlobber(a);if(b){e=e.replace(/\r\n/g,"\n");e=e.replace(/\r/g,"\n")}const i=e.split("\n").map((e=>e.trim()));for(const e of i){if(!e||e.startsWith("#")){continue}else{r.patterns.push(new y.Pattern(e))}}r.searchPaths.push(...v.getSearchPaths(r.patterns));return r}))}static stat(e,a,r){return o(this,void 0,void 0,(function*(){let i;if(a.followSymbolicLinks){try{i=yield m.promises.stat(e.path)}catch(r){if(r.code==="ENOENT"){if(a.omitBrokenSymbolicLinks){u.debug(`Broken symlink '${e.path}'`);return undefined}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw r}}else{i=yield m.promises.lstat(e.path)}if(i.isDirectory()&&a.followSymbolicLinks){const a=yield m.promises.realpath(e.path);while(r.length>=e.level){r.pop()}if(r.some((e=>e===a))){u.debug(`Symlink cycle detected for path '${e.path}' and realpath '${a}'`);return undefined}r.push(a)}return i}))}}a.DefaultGlobber=DefaultGlobber},2448:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var p=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};var o=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};var d=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=e[Symbol.asyncIterator],r;return a?a.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(a){r[a]=e[a]&&function(r){return new Promise((function(i,n){r=e[a](r),settle(i,n,r.done,r.value)}))}}function settle(e,a,r,i){Promise.resolve(i).then((function(a){e({value:a,done:r})}),a)}};Object.defineProperty(a,"__esModule",{value:true});a.hashFiles=void 0;const s=p(r(6417));const l=p(r(2186));const u=p(r(5747));const m=p(r(2413));const c=p(r(1669));const h=p(r(5622));function hashFiles(e){var a,r;var i;return o(this,void 0,void 0,(function*(){let n=false;const p=(i=process.env["GITHUB_WORKSPACE"])!==null&&i!==void 0?i:process.cwd();const o=s.createHash("sha256");let v=0;try{for(var g=d(e.globGenerator()),y;y=yield g.next(),!y.done;){const e=y.value;l.debug(e);if(!e.startsWith(`${p}${h.sep}`)){l.debug(`Ignore '${e}' since it is not under GITHUB_WORKSPACE.`);continue}if(u.statSync(e).isDirectory()){l.debug(`Skip directory '${e}'.`);continue}const a=s.createHash("sha256");const r=c.promisify(m.pipeline);yield r(u.createReadStream(e),a);o.write(a.digest());v++;if(!n){n=true}}}catch(e){a={error:e}}finally{try{if(y&&!y.done&&(r=g.return))yield r.call(g)}finally{if(a)throw a.error}}o.end();if(n){l.debug(`Found ${v} files to hash.`);return o.digest("hex")}else{l.debug(`No matches found for glob`);return""}}))}a.hashFiles=hashFiles},1063:(e,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:true});a.MatchKind=void 0;var r;(function(e){e[e["None"]=0]="None";e[e["Directory"]=1]="Directory";e[e["File"]=2]="File";e[e["All"]=3]="All"})(r=a.MatchKind||(a.MatchKind={}))},1849:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var p=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:true});a.safeTrimTrailingSeparator=a.normalizeSeparators=a.hasRoot=a.hasAbsoluteRoot=a.ensureAbsoluteRoot=a.dirname=void 0;const d=p(r(5622));const s=o(r(2357));const l=process.platform==="win32";function dirname(e){e=safeTrimTrailingSeparator(e);if(l&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(e)){return e}let a=d.dirname(e);if(l&&/^\\\\[^\\]+\\[^\\]+\\$/.test(a)){a=safeTrimTrailingSeparator(a)}return a}a.dirname=dirname;function ensureAbsoluteRoot(e,a){s.default(e,`ensureAbsoluteRoot parameter 'root' must not be empty`);s.default(a,`ensureAbsoluteRoot parameter 'itemPath' must not be empty`);if(hasAbsoluteRoot(a)){return a}if(l){if(a.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let e=process.cwd();s.default(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);if(a[0].toUpperCase()===e[0].toUpperCase()){if(a.length===2){return`${a[0]}:\\${e.substr(3)}`}else{if(!e.endsWith("\\")){e+="\\"}return`${a[0]}:\\${e.substr(3)}${a.substr(2)}`}}else{return`${a[0]}:\\${a.substr(2)}`}}else if(normalizeSeparators(a).match(/^\\$|^\\[^\\]/)){const e=process.cwd();s.default(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);return`${e[0]}:\\${a.substr(1)}`}}s.default(hasAbsoluteRoot(e),`ensureAbsoluteRoot parameter 'root' must have an absolute root`);if(e.endsWith("/")||l&&e.endsWith("\\")){}else{e+=d.sep}return e+a}a.ensureAbsoluteRoot=ensureAbsoluteRoot;function hasAbsoluteRoot(e){s.default(e,`hasAbsoluteRoot parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(l){return e.startsWith("\\\\")||/^[A-Z]:\\/i.test(e)}return e.startsWith("/")}a.hasAbsoluteRoot=hasAbsoluteRoot;function hasRoot(e){s.default(e,`isRooted parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(l){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}a.hasRoot=hasRoot;function normalizeSeparators(e){e=e||"";if(l){e=e.replace(/\//g,"\\");const a=/^\\\\+[^\\]/.test(e);return(a?"\\":"")+e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}a.normalizeSeparators=normalizeSeparators;function safeTrimTrailingSeparator(e){if(!e){return""}e=normalizeSeparators(e);if(!e.endsWith(d.sep)){return e}if(e===d.sep){return e}if(l&&/^[A-Z]:\\$/i.test(e)){return e}return e.substr(0,e.length-1)}a.safeTrimTrailingSeparator=safeTrimTrailingSeparator},6836:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var p=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:true});a.Path=void 0;const d=p(r(5622));const s=p(r(1849));const l=o(r(2357));const u=process.platform==="win32";class Path{constructor(e){this.segments=[];if(typeof e==="string"){l.default(e,`Parameter 'itemPath' must not be empty`);e=s.safeTrimTrailingSeparator(e);if(!s.hasRoot(e)){this.segments=e.split(d.sep)}else{let a=e;let r=s.dirname(a);while(r!==a){const e=d.basename(a);this.segments.unshift(e);a=r;r=s.dirname(a)}this.segments.unshift(a)}}else{l.default(e.length>0,`Parameter 'itemPath' must not be an empty array`);for(let a=0;a!e.negate));const a={};for(const r of e){const e=s?r.searchPath.toUpperCase():r.searchPath;a[e]="candidate"}const r=[];for(const i of e){const e=s?i.searchPath.toUpperCase():i.searchPath;if(a[e]==="included"){continue}let n=false;let p=e;let d=o.dirname(p);while(d!==p){if(a[d]){n=true;break}p=d;d=o.dirname(p)}if(!n){r.push(i.searchPath);a[e]="included"}}return r}a.getSearchPaths=getSearchPaths;function match(e,a){let r=d.MatchKind.None;for(const i of e){if(i.negate){r&=~i.match(a)}else{r|=i.match(a)}}return r}a.match=match;function partialMatch(e,a){return e.some((e=>!e.negate&&e.partialMatch(a)))}a.partialMatch=partialMatch},4536:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var p=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:true});a.Pattern=void 0;const d=p(r(2087));const s=p(r(5622));const l=p(r(1849));const u=o(r(2357));const m=r(3973);const c=r(1063);const h=r(6836);const v=process.platform==="win32";class Pattern{constructor(e,a=false,r,i){this.negate=false;let n;if(typeof e==="string"){n=e.trim()}else{r=r||[];u.default(r.length,`Parameter 'segments' must not empty`);const a=Pattern.getLiteral(r[0]);u.default(a&&l.hasAbsoluteRoot(a),`Parameter 'segments' first element must be a root path`);n=new h.Path(r).toString().trim();if(e){n=`!${n}`}}while(n.startsWith("!")){this.negate=!this.negate;n=n.substr(1).trim()}n=Pattern.fixupPattern(n,i);this.segments=new h.Path(n).segments;this.trailingSeparator=l.normalizeSeparators(n).endsWith(s.sep);n=l.safeTrimTrailingSeparator(n);let p=false;const o=this.segments.map((e=>Pattern.getLiteral(e))).filter((e=>!p&&!(p=e==="")));this.searchPath=new h.Path(o).toString();this.rootRegExp=new RegExp(Pattern.regExpEscape(o[0]),v?"i":"");this.isImplicitPattern=a;const d={dot:true,nobrace:true,nocase:v,nocomment:true,noext:true,nonegate:true};n=v?n.replace(/\\/g,"/"):n;this.minimatch=new m.Minimatch(n,d)}match(e){if(this.segments[this.segments.length-1]==="**"){e=l.normalizeSeparators(e);if(!e.endsWith(s.sep)&&this.isImplicitPattern===false){e=`${e}${s.sep}`}}else{e=l.safeTrimTrailingSeparator(e)}if(this.minimatch.match(e)){return this.trailingSeparator?c.MatchKind.Directory:c.MatchKind.All}return c.MatchKind.None}partialMatch(e){e=l.safeTrimTrailingSeparator(e);if(l.dirname(e)===e){return this.rootRegExp.test(e)}return this.minimatch.matchOne(e.split(v?/\\+/:/\/+/),this.minimatch.set[0],true)}static globEscape(e){return(v?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,a){u.default(e,"pattern cannot be empty");const r=new h.Path(e).segments.map((e=>Pattern.getLiteral(e)));u.default(r.every(((e,a)=>(e!=="."||a===0)&&e!=="..")),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`);u.default(!l.hasRoot(e)||r[0],`Invalid pattern '${e}'. Root segment must not contain globs.`);e=l.normalizeSeparators(e);if(e==="."||e.startsWith(`.${s.sep}`)){e=Pattern.globEscape(process.cwd())+e.substr(1)}else if(e==="~"||e.startsWith(`~${s.sep}`)){a=a||d.homedir();u.default(a,"Unable to determine HOME directory");u.default(l.hasAbsoluteRoot(a),`Expected HOME directory to be a rooted path. Actual '${a}'`);e=Pattern.globEscape(a)+e.substr(1)}else if(v&&(e.match(/^[A-Z]:$/i)||e.match(/^[A-Z]:[^\\]/i))){let a=l.ensureAbsoluteRoot("C:\\dummy-root",e.substr(0,2));if(e.length>2&&!a.endsWith("\\")){a+="\\"}e=Pattern.globEscape(a)+e.substr(2)}else if(v&&(e==="\\"||e.match(/^\\[^\\]/))){let a=l.ensureAbsoluteRoot("C:\\dummy-root","\\");if(!a.endsWith("\\")){a+="\\"}e=Pattern.globEscape(a)+e.substr(1)}else{e=l.ensureAbsoluteRoot(Pattern.globEscape(process.cwd()),e)}return l.normalizeSeparators(e)}static getLiteral(e){let a="";for(let r=0;r=0){if(i.length>1){return""}if(i){a+=i;r=n;continue}}}a+=i}return a}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,"\\$&")}}a.Pattern=Pattern},9117:(e,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:true});a.SearchState=void 0;class SearchState{constructor(e,a){this.path=e;this.level=a}}a.SearchState=SearchState},3702:(e,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:true});class BasicCredentialHandler{constructor(e,a){this.username=e;this.password=a}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from(this.username+":"+this.password).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,a,r){return null}}a.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Bearer "+this.token}canHandleAuthentication(e){return false}handleAuthentication(e,a,r){return null}}a.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from("PAT:"+this.token).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,a,r){return null}}a.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},9925:(e,a,r)=>{"use strict";Object.defineProperty(a,"__esModule",{value:true});const i=r(8605);const n=r(7211);const p=r(6443);let o;var d;(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=a.HttpCodes||(a.HttpCodes={}));var s;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(s=a.Headers||(a.Headers={}));var l;(function(e){e["ApplicationJson"]="application/json"})(l=a.MediaTypes||(a.MediaTypes={}));function getProxyUrl(e){let a=p.getProxyUrl(new URL(e));return a?a.href:""}a.getProxyUrl=getProxyUrl;const u=[d.MovedPermanently,d.ResourceMoved,d.SeeOther,d.TemporaryRedirect,d.PermanentRedirect];const m=[d.BadGateway,d.ServiceUnavailable,d.GatewayTimeout];const c=["OPTIONS","GET","DELETE","HEAD"];const h=10;const v=5;class HttpClientError extends Error{constructor(e,a){super(e);this.name="HttpClientError";this.statusCode=a;Object.setPrototypeOf(this,HttpClientError.prototype)}}a.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return new Promise((async(e,a)=>{let r=Buffer.alloc(0);this.message.on("data",(e=>{r=Buffer.concat([r,e])}));this.message.on("end",(()=>{e(r.toString())}))}))}}a.HttpClientResponse=HttpClientResponse;function isHttps(e){let a=new URL(e);return a.protocol==="https:"}a.isHttps=isHttps;class HttpClient{constructor(e,a,r){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=a||[];this.requestOptions=r;if(r){if(r.ignoreSslError!=null){this._ignoreSslError=r.ignoreSslError}this._socketTimeout=r.socketTimeout;if(r.allowRedirects!=null){this._allowRedirects=r.allowRedirects}if(r.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=r.allowRedirectDowngrade}if(r.maxRedirects!=null){this._maxRedirects=Math.max(r.maxRedirects,0)}if(r.keepAlive!=null){this._keepAlive=r.keepAlive}if(r.allowRetries!=null){this._allowRetries=r.allowRetries}if(r.maxRetries!=null){this._maxRetries=r.maxRetries}}}options(e,a){return this.request("OPTIONS",e,null,a||{})}get(e,a){return this.request("GET",e,null,a||{})}del(e,a){return this.request("DELETE",e,null,a||{})}post(e,a,r){return this.request("POST",e,a,r||{})}patch(e,a,r){return this.request("PATCH",e,a,r||{})}put(e,a,r){return this.request("PUT",e,a,r||{})}head(e,a){return this.request("HEAD",e,null,a||{})}sendStream(e,a,r,i){return this.request(e,a,r,i)}async getJson(e,a={}){a[s.Accept]=this._getExistingOrDefaultHeader(a,s.Accept,l.ApplicationJson);let r=await this.get(e,a);return this._processResponse(r,this.requestOptions)}async postJson(e,a,r={}){let i=JSON.stringify(a,null,2);r[s.Accept]=this._getExistingOrDefaultHeader(r,s.Accept,l.ApplicationJson);r[s.ContentType]=this._getExistingOrDefaultHeader(r,s.ContentType,l.ApplicationJson);let n=await this.post(e,i,r);return this._processResponse(n,this.requestOptions)}async putJson(e,a,r={}){let i=JSON.stringify(a,null,2);r[s.Accept]=this._getExistingOrDefaultHeader(r,s.Accept,l.ApplicationJson);r[s.ContentType]=this._getExistingOrDefaultHeader(r,s.ContentType,l.ApplicationJson);let n=await this.put(e,i,r);return this._processResponse(n,this.requestOptions)}async patchJson(e,a,r={}){let i=JSON.stringify(a,null,2);r[s.Accept]=this._getExistingOrDefaultHeader(r,s.Accept,l.ApplicationJson);r[s.ContentType]=this._getExistingOrDefaultHeader(r,s.ContentType,l.ApplicationJson);let n=await this.patch(e,i,r);return this._processResponse(n,this.requestOptions)}async request(e,a,r,i){if(this._disposed){throw new Error("Client has already been disposed.")}let n=new URL(a);let p=this._prepareRequest(e,n,i);let o=this._allowRetries&&c.indexOf(e)!=-1?this._maxRetries+1:1;let s=0;let l;while(s0){const o=l.message.headers["location"];if(!o){break}let d=new URL(o);if(n.protocol=="https:"&&n.protocol!=d.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}await l.readBody();if(d.hostname!==n.hostname){for(let e in i){if(e.toLowerCase()==="authorization"){delete i[e]}}}p=this._prepareRequest(e,d,i);l=await this.requestRaw(p,r);a--}if(m.indexOf(l.message.statusCode)==-1){return l}s+=1;if(s{let callbackForResult=function(e,a){if(e){i(e)}r(a)};this.requestRawWithCallback(e,a,callbackForResult)}))}requestRawWithCallback(e,a,r){let i;if(typeof a==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(a,"utf8")}let n=false;let handleResult=(e,a)=>{if(!n){n=true;r(e,a)}};let p=e.httpModule.request(e.options,(e=>{let a=new HttpClientResponse(e);handleResult(null,a)}));p.on("socket",(e=>{i=e}));p.setTimeout(this._socketTimeout||3*6e4,(()=>{if(i){i.end()}handleResult(new Error("Request timeout: "+e.options.path),null)}));p.on("error",(function(e){handleResult(e,null)}));if(a&&typeof a==="string"){p.write(a,"utf8")}if(a&&typeof a!=="string"){a.on("close",(function(){p.end()}));a.pipe(p)}else{p.end()}}getAgent(e){let a=new URL(e);return this._getAgent(a)}_prepareRequest(e,a,r){const p={};p.parsedUrl=a;const o=p.parsedUrl.protocol==="https:";p.httpModule=o?n:i;const d=o?443:80;p.options={};p.options.host=p.parsedUrl.hostname;p.options.port=p.parsedUrl.port?parseInt(p.parsedUrl.port):d;p.options.path=(p.parsedUrl.pathname||"")+(p.parsedUrl.search||"");p.options.method=e;p.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){p.options.headers["user-agent"]=this.userAgent}p.options.agent=this._getAgent(p.parsedUrl);if(this.handlers){this.handlers.forEach((e=>{e.prepareRequest(p.options)}))}return p}_mergeHeaders(e){const lowercaseKeys=e=>Object.keys(e).reduce(((a,r)=>(a[r.toLowerCase()]=e[r],a)),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,a,r){const lowercaseKeys=e=>Object.keys(e).reduce(((a,r)=>(a[r.toLowerCase()]=e[r],a)),{});let i;if(this.requestOptions&&this.requestOptions.headers){i=lowercaseKeys(this.requestOptions.headers)[a]}return e[a]||i||r}_getAgent(e){let a;let d=p.getProxyUrl(e);let s=d&&d.hostname;if(this._keepAlive&&s){a=this._proxyAgent}if(this._keepAlive&&!s){a=this._agent}if(!!a){return a}const l=e.protocol==="https:";let u=100;if(!!this.requestOptions){u=this.requestOptions.maxSockets||i.globalAgent.maxSockets}if(s){if(!o){o=r(4294)}const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{...(d.username||d.password)&&{proxyAuth:`${d.username}:${d.password}`},host:d.hostname,port:d.port}};let i;const n=d.protocol==="https:";if(l){i=n?o.httpsOverHttps:o.httpsOverHttp}else{i=n?o.httpOverHttps:o.httpOverHttp}a=i(e);this._proxyAgent=a}if(this._keepAlive&&!a){const e={keepAlive:this._keepAlive,maxSockets:u};a=l?new n.Agent(e):new i.Agent(e);this._agent=a}if(!a){a=l?n.globalAgent:i.globalAgent}if(l&&this._ignoreSslError){a.options=Object.assign(a.options||{},{rejectUnauthorized:false})}return a}_performExponentialBackoff(e){e=Math.min(h,e);const a=v*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),a)))}static dateTimeDeserializer(e,a){if(typeof a==="string"){let e=new Date(a);if(!isNaN(e.valueOf())){return e}}return a}async _processResponse(e,a){return new Promise((async(r,i)=>{const n=e.message.statusCode;const p={statusCode:n,result:null,headers:{}};if(n==d.NotFound){r(p)}let o;let s;try{s=await e.readBody();if(s&&s.length>0){if(a&&a.deserializeDates){o=JSON.parse(s,HttpClient.dateTimeDeserializer)}else{o=JSON.parse(s)}p.result=o}p.headers=e.message.headers}catch(e){}if(n>299){let e;if(o&&o.message){e=o.message}else if(s&&s.length>0){e=s}else{e="Failed request: ("+n+")"}let a=new HttpClientError(e,n);a.result=p.result;i(a)}else{r(p)}}))}}a.HttpClient=HttpClient},6443:(e,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:true});function getProxyUrl(e){let a=e.protocol==="https:";let r;if(checkBypass(e)){return r}let i;if(a){i=process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{i=process.env["http_proxy"]||process.env["HTTP_PROXY"]}if(i){r=new URL(i)}return r}a.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}let a=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!a){return false}let r;if(e.port){r=Number(e.port)}else if(e.protocol==="http:"){r=80}else if(e.protocol==="https:"){r=443}let i=[e.hostname.toUpperCase()];if(typeof r==="number"){i.push(`${i[0]}:${r}`)}for(let e of a.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(i.some((a=>a===e))){return true}}return false}a.checkBypass=checkBypass},1962:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var p=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};var o=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};var d;Object.defineProperty(a,"__esModule",{value:true});a.getCmdPath=a.tryGetExecutablePath=a.isRooted=a.isDirectory=a.exists=a.IS_WINDOWS=a.unlink=a.symlink=a.stat=a.rmdir=a.rename=a.readlink=a.readdir=a.mkdir=a.lstat=a.copyFile=a.chmod=void 0;const s=p(r(5747));const l=p(r(5622));d=s.promises,a.chmod=d.chmod,a.copyFile=d.copyFile,a.lstat=d.lstat,a.mkdir=d.mkdir,a.readdir=d.readdir,a.readlink=d.readlink,a.rename=d.rename,a.rmdir=d.rmdir,a.stat=d.stat,a.symlink=d.symlink,a.unlink=d.unlink;a.IS_WINDOWS=process.platform==="win32";function exists(e){return o(this,void 0,void 0,(function*(){try{yield a.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}a.exists=exists;function isDirectory(e,r=false){return o(this,void 0,void 0,(function*(){const i=r?yield a.stat(e):yield a.lstat(e);return i.isDirectory()}))}a.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(a.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}a.isRooted=isRooted;function tryGetExecutablePath(e,r){return o(this,void 0,void 0,(function*(){let i=undefined;try{i=yield a.stat(e)}catch(a){if(a.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${a}`)}}if(i&&i.isFile()){if(a.IS_WINDOWS){const a=l.extname(e).toUpperCase();if(r.some((e=>e.toUpperCase()===a))){return e}}else{if(isUnixExecutable(i)){return e}}}const n=e;for(const p of r){e=n+p;i=undefined;try{i=yield a.stat(e)}catch(a){if(a.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${a}`)}}if(i&&i.isFile()){if(a.IS_WINDOWS){try{const r=l.dirname(e);const i=l.basename(e).toUpperCase();for(const n of yield a.readdir(r)){if(i===n.toUpperCase()){e=l.join(r,n);break}}}catch(a){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${a}`)}return e}else{if(isUnixExecutable(i)){return e}}}}return""}))}a.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(a.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}function getCmdPath(){var e;return(e=process.env["COMSPEC"])!==null&&e!==void 0?e:`cmd.exe`}a.getCmdPath=getCmdPath},7436:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var p=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};var o=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};Object.defineProperty(a,"__esModule",{value:true});a.findInPath=a.which=a.mkdirP=a.rmRF=a.mv=a.cp=void 0;const d=r(2357);const s=p(r(3129));const l=p(r(5622));const u=r(1669);const m=p(r(1962));const c=u.promisify(s.exec);const h=u.promisify(s.execFile);function cp(e,a,r={}){return o(this,void 0,void 0,(function*(){const{force:i,recursive:n,copySourceDirectory:p}=readCopyOptions(r);const o=(yield m.exists(a))?yield m.stat(a):null;if(o&&o.isFile()&&!i){return}const d=o&&o.isDirectory()&&p?l.join(a,l.basename(e)):a;if(!(yield m.exists(e))){throw new Error(`no such file or directory: ${e}`)}const s=yield m.stat(e);if(s.isDirectory()){if(!n){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,d,0,i)}}else{if(l.relative(e,d)===""){throw new Error(`'${d}' and '${e}' are the same file`)}yield copyFile(e,d,i)}}))}a.cp=cp;function mv(e,a,r={}){return o(this,void 0,void 0,(function*(){if(yield m.exists(a)){let i=true;if(yield m.isDirectory(a)){a=l.join(a,l.basename(e));i=yield m.exists(a)}if(i){if(r.force==null||r.force){yield rmRF(a)}else{throw new Error("Destination already exists")}}}yield mkdirP(l.dirname(a));yield m.rename(e,a)}))}a.mv=mv;function rmRF(e){return o(this,void 0,void 0,(function*(){if(m.IS_WINDOWS){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}try{const a=m.getCmdPath();if(yield m.isDirectory(e,true)){yield c(`${a} /s /c "rd /s /q "%inputPath%""`,{env:{inputPath:e}})}else{yield c(`${a} /s /c "del /f /a "%inputPath%""`,{env:{inputPath:e}})}}catch(e){if(e.code!=="ENOENT")throw e}try{yield m.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let a=false;try{a=yield m.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(a){yield h(`rm`,[`-rf`,`${e}`])}else{yield m.unlink(e)}}}))}a.rmRF=rmRF;function mkdirP(e){return o(this,void 0,void 0,(function*(){d.ok(e,"a path argument must be provided");yield m.mkdir(e,{recursive:true})}))}a.mkdirP=mkdirP;function which(e,a){return o(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(a){const a=yield which(e,false);if(!a){if(m.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. 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.`)}else{throw new Error(`Unable to locate executable file: ${e}. 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 r=yield findInPath(e);if(r&&r.length>0){return r[0]}return""}))}a.which=which;function findInPath(e){return o(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const a=[];if(m.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(l.delimiter)){if(e){a.push(e)}}}if(m.isRooted(e)){const r=yield m.tryGetExecutablePath(e,a);if(r){return[r]}return[]}if(e.includes(l.sep)){return[]}const r=[];if(process.env.PATH){for(const e of process.env.PATH.split(l.delimiter)){if(e){r.push(e)}}}const i=[];for(const n of r){const r=yield m.tryGetExecutablePath(l.join(n,e),a);if(r){i.push(r)}}return i}))}a.findInPath=findInPath;function readCopyOptions(e){const a=e.force==null?true:e.force;const r=Boolean(e.recursive);const i=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:a,recursive:r,copySourceDirectory:i}}function cpDirRecursive(e,a,r,i){return o(this,void 0,void 0,(function*(){if(r>=255)return;r++;yield mkdirP(a);const n=yield m.readdir(e);for(const p of n){const n=`${e}/${p}`;const o=`${a}/${p}`;const d=yield m.lstat(n);if(d.isDirectory()){yield cpDirRecursive(n,o,r,i)}else{yield copyFile(n,o,i)}}yield m.chmod(a,(yield m.stat(e)).mode)}))}function copyFile(e,a,r){return o(this,void 0,void 0,(function*(){if((yield m.lstat(e)).isSymbolicLink()){try{yield m.lstat(a);yield m.unlink(a)}catch(e){if(e.code==="EPERM"){yield m.chmod(a,"0666");yield m.unlink(a)}}const r=yield m.readlink(e);yield m.symlink(r,a,m.IS_WINDOWS?"junction":null)}else if(!(yield m.exists(a))||r){yield m.copyFile(e,a)}}))}},9417:e=>{"use strict";e.exports=balanced;function balanced(e,a,r){if(e instanceof RegExp)e=maybeMatch(e,r);if(a instanceof RegExp)a=maybeMatch(a,r);var i=range(e,a,r);return i&&{start:i[0],end:i[1],pre:r.slice(0,i[0]),body:r.slice(i[0]+e.length,i[1]),post:r.slice(i[1]+a.length)}}function maybeMatch(e,a){var r=a.match(e);return r?r[0]:null}balanced.range=range;function range(e,a,r){var i,n,p,o,d;var s=r.indexOf(e);var l=r.indexOf(a,s+1);var u=s;if(s>=0&&l>0){if(e===a){return[s,l]}i=[];p=r.length;while(u>=0&&!d){if(u==s){i.push(u);s=r.indexOf(e,u+1)}else if(i.length==1){d=[i.pop(),l]}else{n=i.pop();if(n=0?s:l}if(i.length){d=[p,o]}}return d}},7817:(e,a,r)=>{var i=r(5026);var n="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";var p="0123456789ABCDEFGHIJKLMNOPQRSTUV";var o="0123456789ABCDEFGHJKMNPQRSTVWXYZ";e.exports=function base32Encode(e,a,r){r=r||{};var d,s;switch(a){case"RFC3548":case"RFC4648":d=n;s=true;break;case"RFC4648-HEX":d=p;s=true;break;case"Crockford":d=o;s=false;break;default:throw new Error("Unknown base32 variant: "+a)}var l=r.padding!==undefined?r.padding:s;var u=i(e);var m=0;var c=0;var h="";for(var v=0;v=5){h+=d[c>>>m-5&31];m-=5}}if(m>0){h+=d[c<<5-m&31]}if(l){while(h.length%8!==0){h+="="}}return h}},6463:(e,a)=>{"use strict";a.byteLength=byteLength;a.toByteArray=toByteArray;a.fromByteArray=fromByteArray;var r=[];var i=[];var n=typeof Uint8Array!=="undefined"?Uint8Array:Array;var p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var o=0,d=p.length;o0){throw new Error("Invalid string. Length must be a multiple of 4")}var r=e.indexOf("=");if(r===-1)r=a;var i=r===a?0:4-r%4;return[r,i]}function byteLength(e){var a=getLens(e);var r=a[0];var i=a[1];return(r+i)*3/4-i}function _byteLength(e,a,r){return(a+r)*3/4-r}function toByteArray(e){var a;var r=getLens(e);var p=r[0];var o=r[1];var d=new n(_byteLength(e,p,o));var s=0;var l=o>0?p-4:p;var u;for(u=0;u>16&255;d[s++]=a>>8&255;d[s++]=a&255}if(o===2){a=i[e.charCodeAt(u)]<<2|i[e.charCodeAt(u+1)]>>4;d[s++]=a&255}if(o===1){a=i[e.charCodeAt(u)]<<10|i[e.charCodeAt(u+1)]<<4|i[e.charCodeAt(u+2)]>>2;d[s++]=a>>8&255;d[s++]=a&255}return d}function tripletToBase64(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[e&63]}function encodeChunk(e,a,r){var i;var n=[];for(var p=a;ps?s:d+o))}if(n===1){a=e[i-1];p.push(r[a>>2]+r[a<<4&63]+"==")}else if(n===2){a=(e[i-2]<<8)+e[i-1];p.push(r[a>>10]+r[a>>4&63]+r[a<<2&63]+"=")}return p.join("")}},1575:(e,a,r)=>{e=r.nmd(e);var i=function(e){"use strict";var a=1e7,r=7,n=9007199254740992,p=smallToArray(n),o="0123456789abcdefghijklmnopqrstuvwxyz";var d=typeof BigInt==="function";function Integer(e,a,r,i){if(typeof e==="undefined")return Integer[0];if(typeof a!=="undefined")return+a===10&&!r?parseValue(e):parseBase(e,a,r,i);return parseValue(e)}function BigInteger(e,a){this.value=e;this.sign=a;this.isSmall=false}BigInteger.prototype=Object.create(Integer.prototype);function SmallInteger(e){this.value=e;this.sign=e<0;this.isSmall=true}SmallInteger.prototype=Object.create(Integer.prototype);function NativeBigInt(e){this.value=e}NativeBigInt.prototype=Object.create(Integer.prototype);function isPrecise(e){return-n0)return Math.floor(e);return Math.ceil(e)}function add(e,r){var i=e.length,n=r.length,p=new Array(i),o=0,d=a,s,l;for(l=0;l=d?1:0;p[l]=s-o*d}while(l0)p.push(o);return p}function addAny(e,a){if(e.length>=a.length)return add(e,a);return add(a,e)}function addSmall(e,r){var i=e.length,n=new Array(i),p=a,o,d;for(d=0;d0){n[d++]=r%p;r=Math.floor(r/p)}return n}BigInteger.prototype.add=function(e){var a=parseValue(e);if(this.sign!==a.sign){return this.subtract(a.negate())}var r=this.value,i=a.value;if(a.isSmall){return new BigInteger(addSmall(r,Math.abs(i)),this.sign)}return new BigInteger(addAny(r,i),this.sign)};BigInteger.prototype.plus=BigInteger.prototype.add;SmallInteger.prototype.add=function(e){var a=parseValue(e);var r=this.value;if(r<0!==a.sign){return this.subtract(a.negate())}var i=a.value;if(a.isSmall){if(isPrecise(r+i))return new SmallInteger(r+i);i=smallToArray(Math.abs(i))}return new BigInteger(addSmall(i,Math.abs(r)),r<0)};SmallInteger.prototype.plus=SmallInteger.prototype.add;NativeBigInt.prototype.add=function(e){return new NativeBigInt(this.value+parseValue(e).value)};NativeBigInt.prototype.plus=NativeBigInt.prototype.add;function subtract(e,r){var i=e.length,n=r.length,p=new Array(i),o=0,d=a,s,l;for(s=0;s=0){i=subtract(e,a)}else{i=subtract(a,e);r=!r}i=arrayToSmall(i);if(typeof i==="number"){if(r)i=-i;return new SmallInteger(i)}return new BigInteger(i,r)}function subtractSmall(e,r,i){var n=e.length,p=new Array(n),o=-r,d=a,s,l;for(s=0;s=0)};SmallInteger.prototype.minus=SmallInteger.prototype.subtract;NativeBigInt.prototype.subtract=function(e){return new NativeBigInt(this.value-parseValue(e).value)};NativeBigInt.prototype.minus=NativeBigInt.prototype.subtract;BigInteger.prototype.negate=function(){return new BigInteger(this.value,!this.sign)};SmallInteger.prototype.negate=function(){var e=this.sign;var a=new SmallInteger(-this.value);a.sign=!e;return a};NativeBigInt.prototype.negate=function(){return new NativeBigInt(-this.value)};BigInteger.prototype.abs=function(){return new BigInteger(this.value,false)};SmallInteger.prototype.abs=function(){return new SmallInteger(Math.abs(this.value))};NativeBigInt.prototype.abs=function(){return new NativeBigInt(this.value>=0?this.value:-this.value)};function multiplyLong(e,r){var i=e.length,n=r.length,p=i+n,o=createArray(p),d=a,s,l,u,m,c;for(u=0;u0){n[s++]=o%p;o=Math.floor(o/p)}return n}function shiftLeft(e,a){var r=[];while(a-- >0)r.push(0);return r.concat(e)}function multiplyKaratsuba(e,a){var r=Math.max(e.length,a.length);if(r<=30)return multiplyLong(e,a);r=Math.ceil(r/2);var i=e.slice(r),n=e.slice(0,r),p=a.slice(r),o=a.slice(0,r);var d=multiplyKaratsuba(n,o),s=multiplyKaratsuba(i,p),l=multiplyKaratsuba(addAny(n,i),addAny(o,p));var u=addAny(addAny(d,shiftLeft(subtract(subtract(l,d),s),r)),shiftLeft(s,2*r));trim(u);return u}function useKaratsuba(e,a){return-.012*e-.012*a+15e-6*e*a>0}BigInteger.prototype.multiply=function(e){var r=parseValue(e),i=this.value,n=r.value,p=this.sign!==r.sign,o;if(r.isSmall){if(n===0)return Integer[0];if(n===1)return this;if(n===-1)return this.negate();o=Math.abs(n);if(o=0;c--){m=p-1;if(l[c+n]!==d){m=Math.floor((l[c+n]*p+l[c+n-1])/d)}h=0;v=0;y=u.length;for(g=0;gn){u=(u+1)*d}s=Math.ceil(u/m);do{c=multiplySmall(r,s);if(compareAbs(c,o)<=0)break;s--}while(s);p.push(s);o=subtract(o,c)}p.reverse();return[arrayToSmall(p),arrayToSmall(o)]}function divModSmall(e,r){var i=e.length,n=createArray(i),p=a,o,d,s,l;s=0;for(o=i-1;o>=0;--o){l=s*p+e[o];d=truncate(l/r);s=l-d*r;n[o]=d|0}return[n,s|0]}function divModAny(e,r){var i,n=parseValue(r);if(d){return[new NativeBigInt(e.value/n.value),new NativeBigInt(e.value%n.value)]}var p=e.value,o=n.value;var s;if(o===0)throw new Error("Cannot divide by zero");if(e.isSmall){if(n.isSmall){return[new SmallInteger(truncate(p/o)),new SmallInteger(p%o)]}return[Integer[0],e]}if(n.isSmall){if(o===1)return[e,Integer[0]];if(o==-1)return[e.negate(),Integer[0]];var l=Math.abs(o);if(la.length?1:-1}for(var r=e.length-1;r>=0;r--){if(e[r]!==a[r])return e[r]>a[r]?1:-1}return 0}BigInteger.prototype.compareAbs=function(e){var a=parseValue(e),r=this.value,i=a.value;if(a.isSmall)return 1;return compareAbs(r,i)};SmallInteger.prototype.compareAbs=function(e){var a=parseValue(e),r=Math.abs(this.value),i=a.value;if(a.isSmall){i=Math.abs(i);return r===i?0:r>i?1:-1}return-1};NativeBigInt.prototype.compareAbs=function(e){var a=this.value;var r=parseValue(e).value;a=a>=0?a:-a;r=r>=0?r:-r;return a===r?0:a>r?1:-1};BigInteger.prototype.compare=function(e){if(e===Infinity){return-1}if(e===-Infinity){return 1}var a=parseValue(e),r=this.value,i=a.value;if(this.sign!==a.sign){return a.sign?1:-1}if(a.isSmall){return this.sign?-1:1}return compareAbs(r,i)*(this.sign?-1:1)};BigInteger.prototype.compareTo=BigInteger.prototype.compare;SmallInteger.prototype.compare=function(e){if(e===Infinity){return-1}if(e===-Infinity){return 1}var a=parseValue(e),r=this.value,i=a.value;if(a.isSmall){return r==i?0:r>i?1:-1}if(r<0!==a.sign){return r<0?-1:1}return r<0?1:-1};SmallInteger.prototype.compareTo=SmallInteger.prototype.compare;NativeBigInt.prototype.compare=function(e){if(e===Infinity){return-1}if(e===-Infinity){return 1}var a=this.value;var r=parseValue(e).value;return a===r?0:a>r?1:-1};NativeBigInt.prototype.compareTo=NativeBigInt.prototype.compare;BigInteger.prototype.equals=function(e){return this.compare(e)===0};NativeBigInt.prototype.eq=NativeBigInt.prototype.equals=SmallInteger.prototype.eq=SmallInteger.prototype.equals=BigInteger.prototype.eq=BigInteger.prototype.equals;BigInteger.prototype.notEquals=function(e){return this.compare(e)!==0};NativeBigInt.prototype.neq=NativeBigInt.prototype.notEquals=SmallInteger.prototype.neq=SmallInteger.prototype.notEquals=BigInteger.prototype.neq=BigInteger.prototype.notEquals;BigInteger.prototype.greater=function(e){return this.compare(e)>0};NativeBigInt.prototype.gt=NativeBigInt.prototype.greater=SmallInteger.prototype.gt=SmallInteger.prototype.greater=BigInteger.prototype.gt=BigInteger.prototype.greater;BigInteger.prototype.lesser=function(e){return this.compare(e)<0};NativeBigInt.prototype.lt=NativeBigInt.prototype.lesser=SmallInteger.prototype.lt=SmallInteger.prototype.lesser=BigInteger.prototype.lt=BigInteger.prototype.lesser;BigInteger.prototype.greaterOrEquals=function(e){return this.compare(e)>=0};NativeBigInt.prototype.geq=NativeBigInt.prototype.greaterOrEquals=SmallInteger.prototype.geq=SmallInteger.prototype.greaterOrEquals=BigInteger.prototype.geq=BigInteger.prototype.greaterOrEquals;BigInteger.prototype.lesserOrEquals=function(e){return this.compare(e)<=0};NativeBigInt.prototype.leq=NativeBigInt.prototype.lesserOrEquals=SmallInteger.prototype.leq=SmallInteger.prototype.lesserOrEquals=BigInteger.prototype.leq=BigInteger.prototype.lesserOrEquals;BigInteger.prototype.isEven=function(){return(this.value[0]&1)===0};SmallInteger.prototype.isEven=function(){return(this.value&1)===0};NativeBigInt.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)};BigInteger.prototype.isOdd=function(){return(this.value[0]&1)===1};SmallInteger.prototype.isOdd=function(){return(this.value&1)===1};NativeBigInt.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)};BigInteger.prototype.isPositive=function(){return!this.sign};SmallInteger.prototype.isPositive=function(){return this.value>0};NativeBigInt.prototype.isPositive=SmallInteger.prototype.isPositive;BigInteger.prototype.isNegative=function(){return this.sign};SmallInteger.prototype.isNegative=function(){return this.value<0};NativeBigInt.prototype.isNegative=SmallInteger.prototype.isNegative;BigInteger.prototype.isUnit=function(){return false};SmallInteger.prototype.isUnit=function(){return Math.abs(this.value)===1};NativeBigInt.prototype.isUnit=function(){return this.abs().value===BigInt(1)};BigInteger.prototype.isZero=function(){return false};SmallInteger.prototype.isZero=function(){return this.value===0};NativeBigInt.prototype.isZero=function(){return this.value===BigInt(0)};BigInteger.prototype.isDivisibleBy=function(e){var a=parseValue(e);if(a.isZero())return false;if(a.isUnit())return true;if(a.compareAbs(2)===0)return this.isEven();return this.mod(a).isZero()};NativeBigInt.prototype.isDivisibleBy=SmallInteger.prototype.isDivisibleBy=BigInteger.prototype.isDivisibleBy;function isBasicPrime(e){var a=e.abs();if(a.isUnit())return false;if(a.equals(2)||a.equals(3)||a.equals(5))return true;if(a.isEven()||a.isDivisibleBy(3)||a.isDivisibleBy(5))return false;if(a.lesser(49))return true}function millerRabinTest(e,a){var r=e.prev(),n=r,p=0,o,d,s,l;while(n.isEven())n=n.divide(2),p++;e:for(s=0;s-n)return new SmallInteger(e-1);return new BigInteger(p,true)};NativeBigInt.prototype.prev=function(){return new NativeBigInt(this.value-BigInt(1))};var s=[1];while(2*s[s.length-1]<=a)s.push(2*s[s.length-1]);var l=s.length,u=s[l-1];function shift_isSmall(e){return Math.abs(e)<=a}BigInteger.prototype.shiftLeft=function(e){var a=parseValue(e).toJSNumber();if(!shift_isSmall(a)){throw new Error(String(a)+" is too large for shifting.")}if(a<0)return this.shiftRight(-a);var r=this;if(r.isZero())return r;while(a>=l){r=r.multiply(u);a-=l-1}return r.multiply(s[a])};NativeBigInt.prototype.shiftLeft=SmallInteger.prototype.shiftLeft=BigInteger.prototype.shiftLeft;BigInteger.prototype.shiftRight=function(e){var a;var r=parseValue(e).toJSNumber();if(!shift_isSmall(r)){throw new Error(String(r)+" is too large for shifting.")}if(r<0)return this.shiftLeft(-r);var i=this;while(r>=l){if(i.isZero()||i.isNegative()&&i.isUnit())return i;a=divModAny(i,u);i=a[1].isNegative()?a[0].prev():a[0];r-=l-1}a=divModAny(i,s[r]);return a[1].isNegative()?a[0].prev():a[0]};NativeBigInt.prototype.shiftRight=SmallInteger.prototype.shiftRight=BigInteger.prototype.shiftRight;function bitwise(e,a,r){a=parseValue(a);var n=e.isNegative(),p=a.isNegative();var o=n?e.not():e,d=p?a.not():a;var s=0,l=0;var m=null,c=null;var h=[];while(!o.isZero()||!d.isZero()){m=divModAny(o,u);s=m[1].toJSNumber();if(n){s=u-1-s}c=divModAny(d,u);l=c[1].toJSNumber();if(p){l=u-1-l}o=m[0];d=c[0];h.push(r(s,l))}var v=r(n?1:0,p?1:0)!==0?i(-1):i(0);for(var g=h.length-1;g>=0;g-=1){v=v.multiply(u).add(i(h[g]))}return v}BigInteger.prototype.not=function(){return this.negate().prev()};NativeBigInt.prototype.not=SmallInteger.prototype.not=BigInteger.prototype.not;BigInteger.prototype.and=function(e){return bitwise(this,e,(function(e,a){return e&a}))};NativeBigInt.prototype.and=SmallInteger.prototype.and=BigInteger.prototype.and;BigInteger.prototype.or=function(e){return bitwise(this,e,(function(e,a){return e|a}))};NativeBigInt.prototype.or=SmallInteger.prototype.or=BigInteger.prototype.or;BigInteger.prototype.xor=function(e){return bitwise(this,e,(function(e,a){return e^a}))};NativeBigInt.prototype.xor=SmallInteger.prototype.xor=BigInteger.prototype.xor;var m=1<<30,c=(a&-a)*(a&-a)|m;function roughLOB(e){var r=e.value,i=typeof r==="number"?r|m:typeof r==="bigint"?r|BigInt(m):r[0]+r[1]*a|c;return i&-i}function integerLogarithm(e,a){if(a.compareTo(e)<=0){var r=integerLogarithm(e,a.square(a));var n=r.p;var p=r.e;var o=n.multiply(a);return o.compareTo(e)<=0?{p:o,e:p*2+1}:{p:n,e:p*2}}return{p:i(1),e:0}}BigInteger.prototype.bitLength=function(){var e=this;if(e.compareTo(i(0))<0){e=e.negate().subtract(i(1))}if(e.compareTo(i(0))===0){return i(0)}return i(integerLogarithm(e,i(2)).e).add(i(1))};NativeBigInt.prototype.bitLength=SmallInteger.prototype.bitLength=BigInteger.prototype.bitLength;function max(e,a){e=parseValue(e);a=parseValue(a);return e.greater(a)?e:a}function min(e,a){e=parseValue(e);a=parseValue(a);return e.lesser(a)?e:a}function gcd(e,a){e=parseValue(e).abs();a=parseValue(a).abs();if(e.equals(a))return e;if(e.isZero())return a;if(a.isZero())return e;var r=Integer[1],i,n;while(e.isEven()&&a.isEven()){i=min(roughLOB(e),roughLOB(a));e=e.divide(i);a=a.divide(i);r=r.multiply(i)}while(e.isEven()){e=e.divide(roughLOB(e))}do{while(a.isEven()){a=a.divide(roughLOB(a))}if(e.greater(a)){n=a;a=e;e=n}a=a.subtract(e)}while(!a.isZero());return r.isUnit()?e:e.multiply(r)}function lcm(e,a){e=parseValue(e).abs();a=parseValue(a).abs();return e.divide(gcd(e,a)).multiply(a)}function randBetween(e,r,i){e=parseValue(e);r=parseValue(r);var n=i||Math.random;var p=min(e,r),o=max(e,r);var d=o.subtract(p).add(1);if(d.isSmall)return p.add(Math.floor(n()*d));var s=toBase(d,a).value;var l=[],u=true;for(var m=0;m=d){if(l==="1"&&d===1)continue;throw new Error(l+" is not a valid digit in base "+a+".")}}}a=parseValue(a);var u=[];var m=e[0]==="-";for(p=m?1:0;p"&&p=0;p--){i=i.add(e[p].times(n));n=n.times(a)}return r?i.negate():i}function stringify(e,a){a=a||o;if(e"}function toBase(e,a){a=i(a);if(a.isZero()){if(e.isZero())return{value:[0],isNegative:false};throw new Error("Cannot convert nonzero numbers to base 0.")}if(a.equals(-1)){if(e.isZero())return{value:[0],isNegative:false};if(e.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-e.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:false};var r=Array.apply(null,Array(e.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);r.unshift([1]);return{value:[].concat.apply([],r),isNegative:false}}var n=false;if(e.isNegative()&&a.isPositive()){n=true;e=e.abs()}if(a.isUnit()){if(e.isZero())return{value:[0],isNegative:false};return{value:Array.apply(null,Array(e.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:n}}var p=[];var o=e,d;while(o.isNegative()||o.compareAbs(a)>=0){d=o.divmod(a);o=d.quotient;var s=d.remainder;if(s.isNegative()){s=a.minus(s).abs();o=o.next()}p.push(s.toJSNumber())}p.push(o.toJSNumber());return{value:p.reverse(),isNegative:n}}function toBaseString(e,a,r){var i=toBase(e,a);return(i.isNegative?"-":"")+i.value.map((function(e){return stringify(e,r)})).join("")}BigInteger.prototype.toArray=function(e){return toBase(this,e)};SmallInteger.prototype.toArray=function(e){return toBase(this,e)};NativeBigInt.prototype.toArray=function(e){return toBase(this,e)};BigInteger.prototype.toString=function(a,r){if(a===e)a=10;if(a!==10)return toBaseString(this,a,r);var i=this.value,n=i.length,p=String(i[--n]),o="0000000",d;while(--n>=0){d=String(i[n]);p+=o.slice(d.length)+d}var s=this.sign?"-":"";return s+p};SmallInteger.prototype.toString=function(a,r){if(a===e)a=10;if(a!=10)return toBaseString(this,a,r);return String(this.value)};NativeBigInt.prototype.toString=SmallInteger.prototype.toString;NativeBigInt.prototype.toJSON=BigInteger.prototype.toJSON=SmallInteger.prototype.toJSON=function(){return this.toString()};BigInteger.prototype.valueOf=function(){return parseInt(this.toString(),10)};BigInteger.prototype.toJSNumber=BigInteger.prototype.valueOf;SmallInteger.prototype.valueOf=function(){return this.value};SmallInteger.prototype.toJSNumber=SmallInteger.prototype.valueOf;NativeBigInt.prototype.valueOf=NativeBigInt.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};function parseStringValue(e){if(isPrecise(+e)){var a=+e;if(a===truncate(a))return d?new NativeBigInt(BigInt(a)):new SmallInteger(a);throw new Error("Invalid integer: "+e)}var i=e[0]==="-";if(i)e=e.slice(1);var n=e.split(/e/i);if(n.length>2)throw new Error("Invalid integer: "+n.join("e"));if(n.length===2){var p=n[1];if(p[0]==="+")p=p.slice(1);p=+p;if(p!==truncate(p)||!isPrecise(p))throw new Error("Invalid integer: "+p+" is not a valid exponent.");var o=n[0];var s=o.indexOf(".");if(s>=0){p-=o.length-s-1;o=o.slice(0,s)+o.slice(s+1)}if(p<0)throw new Error("Cannot include negative exponent part for integers");o+=new Array(p+1).join("0");e=o}var l=/^([0-9][0-9]*)$/.test(e);if(!l)throw new Error("Invalid integer: "+e);if(d){return new NativeBigInt(BigInt(i?"-"+e:e))}var u=[],m=e.length,c=r,h=m-c;while(m>0){u.push(+e.slice(h,m));h-=c;if(h<0)h=0;m-=c}trim(u);return new BigInteger(u,i)}function parseNumberValue(e){if(d){return new NativeBigInt(BigInt(e))}if(isPrecise(e)){if(e!==truncate(e))throw new Error(e+" is not an integer.");return new SmallInteger(e)}return parseStringValue(e.toString())}function parseValue(e){if(typeof e==="number"){return parseNumberValue(e)}if(typeof e==="string"){return parseStringValue(e)}if(typeof e==="bigint"){return new NativeBigInt(e)}return e}for(var h=0;h<1e3;h++){Integer[h]=parseValue(h);if(h>0)Integer[-h]=parseValue(-h)}Integer.one=Integer[1];Integer.zero=Integer[0];Integer.minusOne=Integer[-1];Integer.max=max;Integer.min=min;Integer.gcd=gcd;Integer.lcm=lcm;Integer.isInstance=function(e){return e instanceof BigInteger||e instanceof SmallInteger||e instanceof NativeBigInt};Integer.randBetween=randBetween;Integer.fromArray=function(e,a,r){return parseBaseFromArray(e.map(parseValue),parseValue(a||10),r)};return Integer}();if(true&&e.hasOwnProperty("exports")){e.exports=i}if(typeof define==="function"&&define.amd){define((function(){return i}))}},4067:(e,a,r)=>{"use strict";var i=r(8168);var n=false;function Real(e){this.value=e}e.exports=function(e){var a=new i.WritableStreamBuffer;a.write(new Buffer("bplist00"));if(n){console.log("create",r(1669).inspect(e,false,10))}if(e instanceof Array&&e.length===1){e=e[0]}var p=toEntries(e);if(n){console.log("entries",p)}var o=computeIdSizeInBytes(p.length);var d=[];var s;var l;updateEntryIds();p.forEach((function(e,r){d[r]=a.size();if(!e){a.write(0)}else{write(e)}}));writeOffsetTable();writeTrailer();return a.getContents();function updateEntryIds(){var e={};var a=0;p.forEach((function(r){if(r.id){return}if(r.type==="string"){if(!r.bplistOverride&&e.hasOwnProperty(r.value)){r.type="stringref";r.id=e[r.value]}else{e[r.value]=r.id=a++}}else{r.id=a++}}));p=p.filter((function(e){return e.type!=="stringref"}))}function writeTrailer(){if(n){console.log("0x"+a.size().toString(16),"writeTrailer")}a.write(new Buffer([0,0,0,0,0,0]));if(n){console.log("0x"+a.size().toString(16),"writeTrailer(offsetSizeInBytes):",s)}writeByte(s);if(n){console.log("0x"+a.size().toString(16),"writeTrailer(offsetSizeInBytes):",o)}writeByte(o);if(n){console.log("0x"+a.size().toString(16),"writeTrailer(number of objects):",p.length)}writeLong(p.length);if(n){console.log("0x"+a.size().toString(16),"writeTrailer(top object)")}writeLong(0);if(n){console.log("0x"+a.size().toString(16),"writeTrailer(offset table offset):",l)}writeLong(l)}function writeOffsetTable(){if(n){console.log("0x"+a.size().toString(16),"writeOffsetTable")}l=a.size();s=computeOffsetSizeInBytes(l);d.forEach((function(e){writeBytes(e,s)}))}function write(e){switch(e.type){case"dict":writeDict(e);break;case"number":case"double":writeNumber(e);break;case"UID":writeUID(e);break;case"array":writeArray(e);break;case"boolean":writeBoolean(e);break;case"string":case"string-utf16":writeString(e);break;case"date":writeDate(e);break;case"data":writeData(e);break;default:throw new Error("unhandled entry type: "+e.type)}}function writeDate(e){writeByte(51);var a=Date.parse(e.value)/1e3-978307200;writeDouble(a)}function writeDict(e){if(n){var r=e.entryKeys.map((function(e){return e.id}));var i=e.entryValues.map((function(e){return e.id}));console.log("0x"+a.size().toString(16),"writeDict","(id: "+e.id+")","(keys: "+r+")","(values: "+i+")")}writeIntHeader(13,e.entryKeys.length);e.entryKeys.forEach((function(e){writeID(e.id)}));e.entryValues.forEach((function(e){writeID(e.id)}))}function writeNumber(e){if(n){console.log("0x"+a.size().toString(16),"writeNumber",e.value," (type: "+e.type+")","(id: "+e.id+")")}if(e.type!=="double"&&parseFloat(e.value.toFixed())==e.value){if(e.value<0){writeByte(19);writeBytes(e.value,8,true)}else if(e.value<=255){writeByte(16);writeBytes(e.value,1)}else if(e.value<=65535){writeByte(17);writeBytes(e.value,2)}else if(e.value<=4294967295){writeByte(18);writeBytes(e.value,4)}else{writeByte(20);writeBytes(e.value,8)}}else{writeByte(35);writeDouble(e.value)}}function writeUID(e){if(n){console.log("0x"+a.size().toString(16),"writeUID",e.value," (type: "+e.type+")","(id: "+e.id+")")}writeIntHeader(8,0);writeID(e.value)}function writeArray(e){if(n){console.log("0x"+a.size().toString(16),"writeArray (length: "+e.entries.length+")","(id: "+e.id+")")}writeIntHeader(10,e.entries.length);e.entries.forEach((function(e){writeID(e.id)}))}function writeBoolean(e){if(n){console.log("0x"+a.size().toString(16),"writeBoolean",e.value,"(id: "+e.id+")")}writeByte(e.value?9:8)}function writeString(e){if(n){console.log("0x"+a.size().toString(16),"writeString",e.value,"(id: "+e.id+")")}if(e.type==="string-utf16"||mustBeUtf16(e.value)){var r=new Buffer(e.value,"ucs2");writeIntHeader(6,r.length/2);for(var i=0;i4){n[p++]=0;r--}}for(var o=r-1;o>=0;o--){n[p++]=e>>8*o}a.write(n)}function mustBeUtf16(e){return Buffer.byteLength(e,"utf8")!=e.length}};function toEntries(e){if(e.bplistOverride){return[e]}if(e instanceof Array){return toEntriesArray(e)}else if(e instanceof Buffer){return[{type:"data",value:e}]}else if(e instanceof Real){return[{type:"double",value:e.value}]}else if(typeof e==="object"){if(e instanceof Date){return[{type:"date",value:e}]}else if(Object.keys(e).length==1&&typeof e.UID==="number"){return[{type:"UID",value:e.UID}]}else{return toEntriesObject(e)}}else if(typeof e==="string"){return[{type:"string",value:e}]}else if(typeof e==="number"){return[{type:"number",value:e}]}else if(typeof e==="boolean"){return[{type:"boolean",value:e}]}else if(typeof e==="bigint"){return[{type:"number",value:Number(BigInt.asIntN(32,e))}]}else{throw new Error("unhandled entry: "+e)}}function toEntriesArray(e){if(n){console.log("toEntriesArray")}var a=[{type:"array",entries:[]}];e.forEach((function(e){var r=toEntries(e);a[0].entries.push(r[0]);a=a.concat(r)}));return a}function toEntriesObject(e){if(n){console.log("toEntriesObject")}var a=[{type:"dict",entryKeys:[],entryValues:[]}];Object.keys(e).forEach((function(e){var r=toEntries(e);a[0].entryKeys.push(r[0]);a=a.concat(r[0])}));Object.keys(e).forEach((function(r){var i=toEntries(e[r]);a[0].entryValues.push(i[0]);a=a.concat(i)}));return a}function computeOffsetSizeInBytes(e){if(e<256){return 1}if(e<65536){return 2}if(e<4294967296){return 4}return 8}function computeIdSizeInBytes(e){if(e<256){return 1}if(e<65536){return 2}return 4}e.exports.Real=Real},8905:(e,a,r)=>{"use strict";const i=r(5747);const n=r(1575);const p=false;a.maxObjectSize=100*1e3*1e3;a.maxObjectCount=32768;const o=9783072e5;const d=a.UID=function(e){this.UID=e};const s=a.parseFile=function(e,a){return new Promise((function(r,n){function tryParseBuffer(e){let i=null;let p;try{p=l(e);r(p)}catch(e){i=e;n(i)}finally{if(a)a(i,p)}}if(Buffer.isBuffer(e)){return tryParseBuffer(e)}i.readFile(e,(function(e,r){if(e){n(e);return a(e)}tryParseBuffer(r)}))}))};const l=a.parseBuffer=function(e){const r=e.slice(0,"bplist".length).toString("utf8");if(r!=="bplist"){throw new Error("Invalid binary plist. Expected 'bplist' at offset 0.")}const i=e.slice(e.length-32,e.length);const s=i.readUInt8(6);if(p){console.log("offsetSize: "+s)}const l=i.readUInt8(7);if(p){console.log("objectRefSize: "+l)}const u=readUInt64BE(i,8);if(p){console.log("numObjects: "+u)}const m=readUInt64BE(i,16);if(p){console.log("topObject: "+m)}const c=readUInt64BE(i,24);if(p){console.log("offsetTableOffset: "+c)}if(u>a.maxObjectCount){throw new Error("maxObjectCount exceeded")}const h=[];for(let a=0;a>4;const m=s&15;switch(u){case 0:return parseSimple();case 1:return parseInteger();case 8:return parseUID();case 2:return parseReal();case 3:return parseDate();case 4:return parseData();case 5:return parsePlistString();case 6:return parsePlistString(true);case 10:return parseArray();case 13:return parseDictionary();default:throw new Error("Unhandled type 0x"+u.toString(16))}function parseSimple(){switch(m){case 0:return null;case 8:return false;case 9:return true;case 15:return null;default:throw new Error("Unhandled simple type 0x"+u.toString(16))}}function bufferToHexString(e){let a="";let r;for(r=0;ra.maxObjectSize){throw new Error("To little heap space available!")}const p=[];for(let a=0;aa.maxObjectSize){throw new Error("To little heap space available!")}if(p){console.log("Parsing dictionary #"+r)}const d={};for(let a=0;a{var i=r(6891);var n=r(9417);e.exports=expandTop;var p="\0SLASH"+Math.random()+"\0";var o="\0OPEN"+Math.random()+"\0";var d="\0CLOSE"+Math.random()+"\0";var s="\0COMMA"+Math.random()+"\0";var l="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(p).split("\\{").join(o).split("\\}").join(d).split("\\,").join(s).split("\\.").join(l)}function unescapeBraces(e){return e.split(p).join("\\").split(o).join("{").split(d).join("}").split(s).join(",").split(l).join(".")}function parseCommaParts(e){if(!e)return[""];var a=[];var r=n("{","}",e);if(!r)return e.split(",");var i=r.pre;var p=r.body;var o=r.post;var d=i.split(",");d[d.length-1]+="{"+p+"}";var s=parseCommaParts(o);if(o.length){d[d.length-1]+=s.shift();d.push.apply(d,s)}a.push.apply(a,d);return a}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function identity(e){return e}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,a){return e<=a}function gte(e,a){return e>=a}function expand(e,a){var r=[];var p=n("{","}",e);if(!p||/\$$/.test(p.pre))return[e];var o=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(p.body);var s=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(p.body);var l=o||s;var u=p.body.indexOf(",")>=0;if(!l&&!u){if(p.post.match(/,.*\}/)){e=p.pre+"{"+p.body+d+p.post;return expand(e)}return[e]}var m;if(l){m=p.body.split(/\.\./)}else{m=parseCommaParts(p.body);if(m.length===1){m=expand(m[0],false).map(embrace);if(m.length===1){var c=p.post.length?expand(p.post,false):[""];return c.map((function(e){return p.pre+m[0]+e}))}}}var h=p.pre;var c=p.post.length?expand(p.post,false):[""];var v;if(l){var g=numeric(m[0]);var y=numeric(m[1]);var w=Math.max(m[0].length,m[1].length);var b=m.length==3?Math.abs(numeric(m[2])):1;var S=lte;var _=y0){var I=new Array(C+1).join("0");if(E<0)D="-"+I+D.slice(1);else D=I+D}}}v.push(D)}}else{v=i(m,(function(e){return expand(e,false)}))}for(var T=0;T{var i=r(4293).Buffer;var n=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];if(typeof Int32Array!=="undefined"){n=new Int32Array(n)}function ensureBuffer(e){if(i.isBuffer(e)){return e}var a=typeof i.alloc==="function"&&typeof i.from==="function";if(typeof e==="number"){return a?i.alloc(e):new i(e)}else if(typeof e==="string"){return a?i.from(e):new i(e)}else{throw new Error("input must be buffer, number, or string, received "+typeof e)}}function bufferizeInt(e){var a=ensureBuffer(4);a.writeInt32BE(e,0);return a}function _crc32(e,a){e=ensureBuffer(e);if(i.isBuffer(a)){a=a.readUInt32BE(0)}var r=~~a^-1;for(var p=0;p>>8}return r^-1}function crc32(){return bufferizeInt(_crc32.apply(null,arguments))}crc32.signed=function(){return _crc32.apply(null,arguments)};crc32.unsigned=function(){return _crc32.apply(null,arguments)>>>0};e.exports=crc32},421:e=>{var a={utf8:{stringToBytes:function(e){return a.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(a.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var a=[],r=0;r{e.exports=function(e,r){var i=[];for(var n=0;n{(function(){var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(e,a){return e<>>32-a},rotr:function(e,a){return e<<32-a|e>>>a},endian:function(e){if(e.constructor==Number){return r.rotl(e,8)&16711935|r.rotl(e,24)&4278255360}for(var a=0;a0;e--)a.push(Math.floor(Math.random()*256));return a},bytesToWords:function(e){for(var a=[],r=0,i=0;r>>5]|=e[r]<<24-i%32;return a},wordsToBytes:function(e){for(var a=[],r=0;r>>5]>>>24-r%32&255);return a},bytesToHex:function(e){for(var a=[],r=0;r>>4).toString(16));a.push((e[r]&15).toString(16))}return a.join("")},hexToBytes:function(e){for(var a=[],r=0;r>>6*(3-p)&63));else r.push("=")}return r.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var r=[],i=0,n=0;i>>6-n*2)}return r}};e.exports=r})()},8222:(e,a,r)=>{a.formatArgs=formatArgs;a.save=save;a.load=load;a.useColors=useColors;a.storage=localstorage();a.destroy=(()=>{let e=false;return()=>{if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();a.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(a){a[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+a[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const r="color: "+this.color;a.splice(1,0,r,"color: inherit");let i=0;let n=0;a[0].replace(/%[a-zA-Z%]/g,(e=>{if(e==="%%"){return}i++;if(e==="%c"){n=i}}));a.splice(n,0,r)}a.log=console.debug||console.log||(()=>{});function save(e){try{if(e){a.storage.setItem("debug",e)}else{a.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=a.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=r(6243)(a);const{formatters:i}=e.exports;i.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},6243:(e,a,r)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=r(900);createDebug.destroy=destroy;Object.keys(e).forEach((a=>{createDebug[a]=e[a]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let a=0;for(let r=0;r{if(a==="%%"){return"%"}p++;const n=createDebug.formatters[i];if(typeof n==="function"){const i=e[p];a=n.call(r,i);e.splice(p,1);p--}return a}));createDebug.formatArgs.call(r,e);const o=r.log||createDebug.log;o.apply(r,e)}debug.namespace=e;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(e);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(r!==null){return r}if(i!==createDebug.namespaces){i=createDebug.namespaces;n=createDebug.enabled(e)}return n},set:e=>{r=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,a){const r=createDebug(this.namespace+(typeof a==="undefined"?":":a)+e);r.log=this.log;return r}function enable(e){createDebug.save(e);createDebug.namespaces=e;createDebug.names=[];createDebug.skips=[];let a;const r=(typeof e==="string"?e:"").split(/[\s,]+/);const i=r.length;for(a=0;a"-"+e))].join(",");createDebug.enable("");return e}function enabled(e){if(e[e.length-1]==="*"){return true}let a;let r;for(a=0,r=createDebug.skips.length;a{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=r(8222)}else{e.exports=r(5332)}},5332:(e,a,r)=>{const i=r(3867);const n=r(1669);a.init=init;a.log=log;a.formatArgs=formatArgs;a.save=save;a.load=load;a.useColors=useColors;a.destroy=n.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");a.colors=[6,2,3,4,5,1];try{const e=r(9318);if(e&&(e.stderr||e).level>=2){a.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}a.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,a)=>{const r=a.substring(6).toLowerCase().replace(/_([a-z])/g,((e,a)=>a.toUpperCase()));let i=process.env[a];if(/^(yes|on|true|enabled)$/i.test(i)){i=true}else if(/^(no|off|false|disabled)$/i.test(i)){i=false}else if(i==="null"){i=null}else{i=Number(i)}e[r]=i;return e}),{});function useColors(){return"colors"in a.inspectOpts?Boolean(a.inspectOpts.colors):i.isatty(process.stderr.fd)}function formatArgs(a){const{namespace:r,useColors:i}=this;if(i){const i=this.color;const n="[3"+(i<8?i:"8;5;"+i);const p=` ${n};1m${r} `;a[0]=p+a[0].split("\n").join("\n"+p);a.push(n+"m+"+e.exports.humanize(this.diff)+"")}else{a[0]=getDate()+r+" "+a[0]}}function getDate(){if(a.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(n.format(...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const r=Object.keys(a.inspectOpts);for(let i=0;ie.trim())).join(" ")};p.O=function(e){this.inspectOpts.colors=this.useColors;return n.inspect(e,this.inspectOpts)}},1349:(e,a,r)=>{var i=r(2357);var n=r(4223);var p=r(1669);var o=r(3539);var d=r(9414);function Helper(){this.file=new d;this.opts={window:{x:100,y:100}}}Helper.prototype.setBackgroundPath=function(e){this.opts.backgroundPath=e};Helper.prototype.setBackgroundColor=function(e,a,r){this.opts.backgroundColor=[e,a,r]};Helper.prototype.setIconSize=function(e){this.opts.iconSize=e};Helper.prototype.setIconPos=function(e,a,r){this.file.push(o.construct(e,"Iloc",{x:a,y:r}))};Helper.prototype.setWindowPos=function(e,a){this.opts.window.x=e;this.opts.window.y=a};Helper.prototype.setWindowSize=function(e,a){this.opts.window.width=e;this.opts.window.height=a+22};Helper.prototype.vSrn=function(e){i(e===0||e===1);this.file.push(o.construct(".","vSrn",{value:e}))};Helper.prototype.write=function(e,a){var r,i;if(this.opts.backgroundPath){r=n.create(this.opts.backgroundPath)}if(this.opts.backgroundColor){i=this.opts.backgroundColor}this.file.push(o.construct(".","bwsp",this.opts.window));this.file.push(o.construct(".","icvp",{iconSize:this.opts.iconSize,rawAlias:r,colorComponents:i}));this.file.write(e,a)};Helper.prototype.setBackground=p.deprecate(Helper.prototype.setBackgroundPath,"setBackground is deprecated, please use setBackgroundPath");e.exports=a=Helper},9414:(e,a,r)=>{var i=r(5747);var n=r(5622);var p=r(3539);function DSStore(){this.entries=[]}DSStore.prototype.push=function(e){this.entries.push(e)};DSStore.prototype.write=function(e,a){var n=this.entries.sort(p.sort);i.readFile(r.ab+"DSStore-clean",(function(r,p){if(r)return a(r);var o=new Buffer(3840);o.fill(0);var d=0;var s=0;var l=n.length;o.writeUInt32BE(s,d);o.writeUInt32BE(l,d+4);d+=8;n.forEach((function(e,a){var r=e.buffer;r.copy(o,d);d+=r.length}));p.writeUInt32BE(n.length,76);o.copy(p,4100);i.writeFile(e,p,(function(e){a(e)}))}))};e.exports=a=DSStore},3539:(e,a,r)=>{var i=r(8694);var n=r(4067);function utf16be(e){var a=new Buffer(e,"ucs2");for(var r=0;r{"use strict";e.exports=function encodeUtf8(e){var a=[];var r=e.length;for(var i=0;i=55296&&n<=56319&&r>i+1){var p=e.charCodeAt(i+1);if(p>=56320&&p<=57343){n=(n-55296)*1024+p-56320+65536;i+=1}}if(n<128){a.push(n);continue}if(n<2048){a.push(n>>6|192);a.push(n&63|128);continue}if(n<55296||n>=57344&&n<65536){a.push(n>>12|224);a.push(n>>6&63|128);a.push(n&63|128);continue}if(n>=65536&&n<=1114111){a.push(n>>18|240);a.push(n>>12&63|128);a.push(n>>6&63|128);a.push(n&63|128);continue}a.push(239,191,189)}return new Uint8Array(a).buffer}},1205:(e,a,r)=>{var i=r(1223);var noop=function(){};var isRequest=function(e){return e.setHeader&&typeof e.abort==="function"};var isChildProcess=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3};var eos=function(e,a,r){if(typeof a==="function")return eos(e,null,a);if(!a)a={};r=i(r||noop);var n=e._writableState;var p=e._readableState;var o=a.readable||a.readable!==false&&e.readable;var d=a.writable||a.writable!==false&&e.writable;var s=false;var onlegacyfinish=function(){if(!e.writable)onfinish()};var onfinish=function(){d=false;if(!o)r.call(e)};var onend=function(){o=false;if(!d)r.call(e)};var onexit=function(a){r.call(e,a?new Error("exited with error code: "+a):null)};var onerror=function(a){r.call(e,a)};var onclose=function(){process.nextTick(onclosenexttick)};var onclosenexttick=function(){if(s)return;if(o&&!(p&&(p.ended&&!p.destroyed)))return r.call(e,new Error("premature close"));if(d&&!(n&&(n.ended&&!n.destroyed)))return r.call(e,new Error("premature close"))};var onrequest=function(){e.req.on("finish",onfinish)};if(isRequest(e)){e.on("complete",onfinish);e.on("abort",onclose);if(e.req)onrequest();else e.on("request",onrequest)}else if(d&&!n){e.on("end",onlegacyfinish);e.on("close",onlegacyfinish)}if(isChildProcess(e))e.on("exit",onexit);e.on("end",onend);e.on("finish",onfinish);if(a.error!==false)e.on("error",onerror);e.on("close",onclose);return function(){s=true;e.removeListener("complete",onfinish);e.removeListener("abort",onclose);e.removeListener("request",onrequest);if(e.req)e.req.removeListener("finish",onfinish);e.removeListener("end",onlegacyfinish);e.removeListener("close",onlegacyfinish);e.removeListener("finish",onfinish);e.removeListener("exit",onexit);e.removeListener("end",onend);e.removeListener("error",onerror);e.removeListener("close",onclose)}};e.exports=eos},460:(e,a,r)=>{const i=r(8237)("extract-zip");const{createWriteStream:n,promises:p}=r(5747);const o=r(1766);const d=r(5622);const{promisify:s}=r(1669);const l=r(2413);const u=r(8781);const m=s(u.open);const c=s(l.pipeline);class Extractor{constructor(e,a){this.zipPath=e;this.opts=a}async extract(){i("opening",this.zipPath,"with opts",this.opts);this.zipfile=await m(this.zipPath,{lazyEntries:true});this.canceled=false;return new Promise(((e,a)=>{this.zipfile.on("error",(e=>{this.canceled=true;a(e)}));this.zipfile.readEntry();this.zipfile.on("close",(()=>{if(!this.canceled){i("zip extraction complete");e()}}));this.zipfile.on("entry",(async e=>{if(this.canceled){i("skipping entry",e.fileName,{cancelled:this.canceled});return}i("zipfile entry",e.fileName);if(e.fileName.startsWith("__MACOSX/")){this.zipfile.readEntry();return}const r=d.dirname(d.join(this.opts.dir,e.fileName));try{await p.mkdir(r,{recursive:true});const a=await p.realpath(r);const n=d.relative(this.opts.dir,a);if(n.split(d.sep).includes("..")){throw new Error(`Out of bound path "${a}" found while processing file ${e.fileName}`)}await this.extractEntry(e);i("finished processing",e.fileName);this.zipfile.readEntry()}catch(e){this.canceled=true;this.zipfile.close();a(e)}}))}))}async extractEntry(e){if(this.canceled){i("skipping entry extraction",e.fileName,{cancelled:this.canceled});return}if(this.opts.onEntry){this.opts.onEntry(e,this.zipfile)}const a=d.join(this.opts.dir,e.fileName);const r=e.externalFileAttributes>>16&65535;const l=61440;const u=16384;const m=40960;const h=(r&l)===m;let v=(r&l)===u;if(!v&&e.fileName.endsWith("/")){v=true}const g=e.versionMadeBy>>8;if(!v)v=g===0&&e.externalFileAttributes===16;i("extracting entry",{filename:e.fileName,isDir:v,isSymlink:h});const y=this.getExtractedMode(r,v)&511;const w=v?a:d.dirname(a);const b={recursive:true};if(v){b.mode=y}i("mkdir",{dir:w,...b});await p.mkdir(w,b);if(v)return;i("opening read stream",a);const S=await s(this.zipfile.openReadStream.bind(this.zipfile))(e);if(h){const e=await o(S);i("creating symlink",e,a);await p.symlink(e,a)}else{await c(S,n(a,{mode:y}))}}getExtractedMode(e,a){let r=e;if(r===0){if(a){if(this.opts.defaultDirMode){r=parseInt(this.opts.defaultDirMode,10)}if(!r){r=493}}else{if(this.opts.defaultFileMode){r=parseInt(this.opts.defaultFileMode,10)}if(!r){r=420}}}return r}}e.exports=async function(e,a){i("creating target directory",a.dir);if(!d.isAbsolute(a.dir)){throw new Error("Target directory is expected to be absolute")}await p.mkdir(a.dir,{recursive:true});a.dir=await p.realpath(a.dir);return new Extractor(e,a).extract()}},5010:(e,a,r)=>{var i=r(5747);var n=r(1669);var p=r(2413);var o=p.Readable;var d=p.Writable;var s=p.PassThrough;var l=r(4833);var u=r(8614).EventEmitter;a.createFromBuffer=createFromBuffer;a.createFromFd=createFromFd;a.BufferSlicer=BufferSlicer;a.FdSlicer=FdSlicer;n.inherits(FdSlicer,u);function FdSlicer(e,a){a=a||{};u.call(this);this.fd=e;this.pend=new l;this.pend.max=1;this.refCount=0;this.autoClose=!!a.autoClose}FdSlicer.prototype.read=function(e,a,r,n,p){var o=this;o.pend.go((function(d){i.read(o.fd,e,a,r,n,(function(e,a,r){d();p(e,a,r)}))}))};FdSlicer.prototype.write=function(e,a,r,n,p){var o=this;o.pend.go((function(d){i.write(o.fd,e,a,r,n,(function(e,a,r){d();p(e,a,r)}))}))};FdSlicer.prototype.createReadStream=function(e){return new ReadStream(this,e)};FdSlicer.prototype.createWriteStream=function(e){return new WriteStream(this,e)};FdSlicer.prototype.ref=function(){this.refCount+=1};FdSlicer.prototype.unref=function(){var e=this;e.refCount-=1;if(e.refCount>0)return;if(e.refCount<0)throw new Error("invalid unref");if(e.autoClose){i.close(e.fd,onCloseDone)}function onCloseDone(a){if(a){e.emit("error",a)}else{e.emit("close")}}};n.inherits(ReadStream,o);function ReadStream(e,a){a=a||{};o.call(this,a);this.context=e;this.context.ref();this.start=a.start||0;this.endOffset=a.end;this.pos=this.start;this.destroyed=false}ReadStream.prototype._read=function(e){var a=this;if(a.destroyed)return;var r=Math.min(a._readableState.highWaterMark,e);if(a.endOffset!=null){r=Math.min(r,a.endOffset-a.pos)}if(r<=0){a.destroyed=true;a.push(null);a.context.unref();return}a.context.pend.go((function(e){if(a.destroyed)return e();var n=new Buffer(r);i.read(a.context.fd,n,0,r,a.pos,(function(r,i){if(r){a.destroy(r)}else if(i===0){a.destroyed=true;a.push(null);a.context.unref()}else{a.pos+=i;a.push(n.slice(0,i))}e()}))}))};ReadStream.prototype.destroy=function(e){if(this.destroyed)return;e=e||new Error("stream destroyed");this.destroyed=true;this.emit("error",e);this.context.unref()};n.inherits(WriteStream,d);function WriteStream(e,a){a=a||{};d.call(this,a);this.context=e;this.context.ref();this.start=a.start||0;this.endOffset=a.end==null?Infinity:+a.end;this.bytesWritten=0;this.pos=this.start;this.destroyed=false;this.on("finish",this.destroy.bind(this))}WriteStream.prototype._write=function(e,a,r){var n=this;if(n.destroyed)return;if(n.pos+e.length>n.endOffset){var p=new Error("maximum file length exceeded");p.code="ETOOBIG";n.destroy();r(p);return}n.context.pend.go((function(a){if(n.destroyed)return a();i.write(n.context.fd,e,0,e.length,n.pos,(function(e,i){if(e){n.destroy();a();r(e)}else{n.bytesWritten+=i;n.pos+=i;n.emit("progress");a();r()}}))}))};WriteStream.prototype.destroy=function(){if(this.destroyed)return;this.destroyed=true;this.context.unref()};n.inherits(BufferSlicer,u);function BufferSlicer(e,a){u.call(this);a=a||{};this.refCount=0;this.buffer=e;this.maxChunkSize=a.maxChunkSize||Number.MAX_SAFE_INTEGER}BufferSlicer.prototype.read=function(e,a,r,i,n){var p=i+r;var o=p-this.buffer.length;var d=o>0?o:r;this.buffer.copy(e,a,i,p);setImmediate((function(){n(null,d)}))};BufferSlicer.prototype.write=function(e,a,r,i,n){e.copy(this.buffer,i,a,a+r);setImmediate((function(){n(null,r,e)}))};BufferSlicer.prototype.createReadStream=function(e){e=e||{};var a=new s(e);a.destroyed=false;a.start=e.start||0;a.endOffset=e.end;a.pos=a.endOffset||this.buffer.length;var r=this.buffer.slice(a.start,a.pos);var i=0;while(true){var n=i+this.maxChunkSize;if(n>=r.length){if(ir.endOffset){var o=new Error("maximum file length exceeded");o.code="ETOOBIG";r.destroyed=true;n(o);return}e.copy(a.buffer,r.pos,0,e.length);r.bytesWritten+=e.length;r.pos=p;r.emit("progress");n()};r.destroy=function(){r.destroyed=true};return r};BufferSlicer.prototype.ref=function(){this.refCount+=1};BufferSlicer.prototype.unref=function(){this.refCount-=1;if(this.refCount<0){throw new Error("invalid unref")}};function createFromBuffer(e,a){return new BufferSlicer(e,a)}function createFromFd(e,a){return new FdSlicer(e,a)}},8062:(e,a,r)=>{var i=r(3070);e.exports=function fmix(e){e^=e>>>16;e=i(e,2246822507);e^=e>>>13;e=i(e,3266489909);e^=e>>>16;return e>>>0}},1371:(e,a,r)=>{var i=r(2851);var n=r(3515);function template(e){n.validateTemplate(e);return{open:i.open.bind(i,e),openSync:i.openSync.bind(i,e),mkdir:i.mkdir.bind(i,e),mkdirSync:i.mkdirSync.bind(i,e),writeFile:i.writeFile.bind(i,e),writeFileSync:i.writeFileSync.bind(i,e),createWriteStream:i.createWriteStream.bind(i,e)}}e.exports=template("%s");e.exports.template=template},6328:(e,a)=>{function sync(e){var a;var r=3;while(--r){try{a=e()}catch(e){if(e.code==="EEXIST")continue;throw e}return a}throw new Error("Failed to find unique name")}function async(e,a){var r=3;(function next(){e((function(e,i){if(!e)return a(null,i);if(e.code!=="EEXIST")return a(e);if(--r===0)return a(new Error("Failed to find unique name"));next()}))})()}a.sync=sync;a.async=async},2851:(e,a,r)=>{var i=r(5747);var n=r(2087);var p=r(3515);var o=r(6328);var d=r(7974);var s=n.tmpdir();function open(e,a,r,n){switch(a){case"w":a="wx";break;case"w+":a="wx+";break;default:throw new Error("Unknown file open flag: "+a)}if(typeof r==="function"){n=r;r=undefined}var d;o.async((function(n){d=p(s,e);i.open(d,a,r,n)}),(function(e,a){n(e,e?undefined:{fd:a,path:d})}))}function openSync(e,a,r){switch(a){case"w":a="wx";break;case"w+":a="wx+";break;default:throw new Error("Unknown file open flag: "+a)}var n;var d=o.sync((function(){n=p(s,e);return i.openSync(n,a,r)}));return{fd:d,path:n}}function mkdir(e,a,r){if(typeof a==="function"){r=a;a=undefined}var n;o.async((function(r){n=p(s,e);i.mkdir(n,a,r)}),(function(e){r(e,e?undefined:n)}))}function mkdirSync(e,a){var r;o.sync((function(){r=p(s,e);i.mkdirSync(r,a)}));return r}function writeFile(e,a,r,n){n=arguments[arguments.length-1];if(typeof r==="function"||!r){r={flag:"wx"}}else if(typeof r==="string"){r={encoding:r,flag:"wx"}}else if(typeof r==="object"){r.flag="wx"}else{throw new TypeError("Bad arguments")}var d;o.async((function(n){d=p(s,e);i.writeFile(d,a,r,n)}),(function(e){n(e,e?undefined:d)}))}function writeFileSync(e,a,r){if(!r){r={flag:"wx"}}else if(typeof r==="string"){r={encoding:r,flag:"wx"}}else if(typeof r==="object"){r.flag="wx"}else{throw new TypeError("Bad arguments")}var n;o.sync((function(){n=p(s,e);i.writeFileSync(n,a,r)}));return n}function createWriteStream(e,a){return new d(e,a)}a.open=open;a.openSync=openSync;a.mkdir=mkdir;a.mkdirSync=mkdirSync;a.writeFile=writeFile;a.writeFileSync=writeFileSync;a.createWriteStream=createWriteStream},7974:(e,a,r)=>{var i=r(2851);var n=r(5747).WriteStream;function TempWriteStream(e,a){this.template=e;n.call(this,null,a)}TempWriteStream.prototype=Object.create(n.prototype);TempWriteStream.prototype.open=function open(){i.open(this.template,this.flags,this.mode,function(e,a){if(e){this.destroy();this.emit("error",e);return}this.fd=a.fd;this.path=a.path;this.emit("path",a.path);this.emit("open",a.fd)}.bind(this))};e.exports=TempWriteStream},6863:(e,a,r)=>{e.exports=realpath;realpath.realpath=realpath;realpath.sync=realpathSync;realpath.realpathSync=realpathSync;realpath.monkeypatch=monkeypatch;realpath.unmonkeypatch=unmonkeypatch;var i=r(5747);var n=i.realpath;var p=i.realpathSync;var o=process.version;var d=/^v[0-5]\./.test(o);var s=r(1734);function newError(e){return e&&e.syscall==="realpath"&&(e.code==="ELOOP"||e.code==="ENOMEM"||e.code==="ENAMETOOLONG")}function realpath(e,a,r){if(d){return n(e,a,r)}if(typeof a==="function"){r=a;a=null}n(e,a,(function(i,n){if(newError(i)){s.realpath(e,a,r)}else{r(i,n)}}))}function realpathSync(e,a){if(d){return p(e,a)}try{return p(e,a)}catch(r){if(newError(r)){return s.realpathSync(e,a)}else{throw r}}}function monkeypatch(){i.realpath=realpath;i.realpathSync=realpathSync}function unmonkeypatch(){i.realpath=n;i.realpathSync=p}},1734:(e,a,r)=>{var i=r(5622);var n=process.platform==="win32";var p=r(5747);var o=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function rethrow(){var e;if(o){var a=new Error;e=debugCallback}else e=missingCallback;return e;function debugCallback(e){if(e){a.message=e.message;e=a;missingCallback(e)}}function missingCallback(e){if(e){if(process.throwDeprecation)throw e;else if(!process.noDeprecation){var a="fs: missing callback "+(e.stack||e.message);if(process.traceDeprecation)console.trace(a);else console.error(a)}}}}function maybeCallback(e){return typeof e==="function"?e:rethrow()}var d=i.normalize;if(n){var s=/(.*?)(?:[\/\\]+|$)/g}else{var s=/(.*?)(?:[\/]+|$)/g}if(n){var l=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/}else{var l=/^[\/]*/}a.realpathSync=function realpathSync(e,a){e=i.resolve(e);if(a&&Object.prototype.hasOwnProperty.call(a,e)){return a[e]}var r=e,o={},d={};var u;var m;var c;var h;start();function start(){var a=l.exec(e);u=a[0].length;m=a[0];c=a[0];h="";if(n&&!d[c]){p.lstatSync(c);d[c]=true}}while(u=e.length){if(a)a[o]=e;return r(null,e)}s.lastIndex=m;var i=s.exec(e);v=c;c+=i[0];h=v+i[1];m=s.lastIndex;if(u[h]||a&&a[h]===h){return process.nextTick(LOOP)}if(a&&Object.prototype.hasOwnProperty.call(a,h)){return gotResolvedLink(a[h])}return p.lstat(h,gotStat)}function gotStat(e,i){if(e)return r(e);if(!i.isSymbolicLink()){u[h]=true;if(a)a[h]=h;return process.nextTick(LOOP)}if(!n){var o=i.dev.toString(32)+":"+i.ino.toString(32);if(d.hasOwnProperty(o)){return gotTarget(null,d[o],h)}}p.stat(h,(function(e){if(e)return r(e);p.readlink(h,(function(e,a){if(!n)d[o]=a;gotTarget(e,a)}))}))}function gotTarget(e,n,p){if(e)return r(e);var o=i.resolve(v,n);if(a)a[p]=o;gotResolvedLink(o)}function gotResolvedLink(a){e=i.resolve(a,e.slice(m));start()}}},1585:(e,a,r)=>{"use strict";const{PassThrough:i}=r(2413);e.exports=e=>{e={...e};const{array:a}=e;let{encoding:r}=e;const n=r==="buffer";let p=false;if(a){p=!(r||n)}else{r=r||"utf8"}if(n){r=null}const o=new i({objectMode:p});if(r){o.setEncoding(r)}let d=0;const s=[];o.on("data",(e=>{s.push(e);if(p){d=s.length}else{d+=e.length}}));o.getBufferedValue=()=>{if(a){return s}return n?Buffer.concat(s,d):s.join("")};o.getBufferedLength=()=>d;return o}},1766:(e,a,r)=>{"use strict";const{constants:i}=r(4293);const n=r(8341);const p=r(1585);class MaxBufferError extends Error{constructor(){super("maxBuffer exceeded");this.name="MaxBufferError"}}async function getStream(e,a){if(!e){return Promise.reject(new Error("Expected a stream"))}a={maxBuffer:Infinity,...a};const{maxBuffer:r}=a;let o;await new Promise(((d,s)=>{const rejectPromise=e=>{if(e&&o.getBufferedLength()<=i.MAX_LENGTH){e.bufferedData=o.getBufferedValue()}s(e)};o=n(e,p(a),(e=>{if(e){rejectPromise(e);return}d()}));o.on("data",(()=>{if(o.getBufferedLength()>r){rejectPromise(new MaxBufferError)}}))}));return o.getBufferedValue()}e.exports=getStream;e.exports.default=getStream;e.exports.buffer=(e,a)=>getStream(e,{...a,encoding:"buffer"});e.exports.array=(e,a)=>getStream(e,{...a,array:true});e.exports.MaxBufferError=MaxBufferError},7625:(e,a,r)=>{a.setopts=setopts;a.ownProp=ownProp;a.makeAbs=makeAbs;a.finish=finish;a.mark=mark;a.isIgnored=isIgnored;a.childrenIgnored=childrenIgnored;function ownProp(e,a){return Object.prototype.hasOwnProperty.call(e,a)}var i=r(5747);var n=r(5622);var p=r(3973);var o=r(8714);var d=p.Minimatch;function alphasort(e,a){return e.localeCompare(a,"en")}function setupIgnores(e,a){e.ignore=a.ignore||[];if(!Array.isArray(e.ignore))e.ignore=[e.ignore];if(e.ignore.length){e.ignore=e.ignore.map(ignoreMap)}}function ignoreMap(e){var a=null;if(e.slice(-3)==="/**"){var r=e.replace(/(\/\*\*)+$/,"");a=new d(r,{dot:true})}return{matcher:new d(e,{dot:true}),gmatcher:a}}function setopts(e,a,r){if(!r)r={};if(r.matchBase&&-1===a.indexOf("/")){if(r.noglobstar){throw new Error("base matching requires globstar")}a="**/"+a}e.silent=!!r.silent;e.pattern=a;e.strict=r.strict!==false;e.realpath=!!r.realpath;e.realpathCache=r.realpathCache||Object.create(null);e.follow=!!r.follow;e.dot=!!r.dot;e.mark=!!r.mark;e.nodir=!!r.nodir;if(e.nodir)e.mark=true;e.sync=!!r.sync;e.nounique=!!r.nounique;e.nonull=!!r.nonull;e.nosort=!!r.nosort;e.nocase=!!r.nocase;e.stat=!!r.stat;e.noprocess=!!r.noprocess;e.absolute=!!r.absolute;e.fs=r.fs||i;e.maxLength=r.maxLength||Infinity;e.cache=r.cache||Object.create(null);e.statCache=r.statCache||Object.create(null);e.symlinks=r.symlinks||Object.create(null);setupIgnores(e,r);e.changedCwd=false;var p=process.cwd();if(!ownProp(r,"cwd"))e.cwd=p;else{e.cwd=n.resolve(r.cwd);e.changedCwd=e.cwd!==p}e.root=r.root||n.resolve(e.cwd,"/");e.root=n.resolve(e.root);if(process.platform==="win32")e.root=e.root.replace(/\\/g,"/");e.cwdAbs=o(e.cwd)?e.cwd:makeAbs(e,e.cwd);if(process.platform==="win32")e.cwdAbs=e.cwdAbs.replace(/\\/g,"/");e.nomount=!!r.nomount;r.nonegate=true;r.nocomment=true;e.minimatch=new d(a,r);e.options=e.minimatch.options}function finish(e){var a=e.nounique;var r=a?[]:Object.create(null);for(var i=0,n=e.matches.length;i{e.exports=glob;var i=r(6863);var n=r(3973);var p=n.Minimatch;var o=r(4124);var d=r(8614).EventEmitter;var s=r(5622);var l=r(2357);var u=r(8714);var m=r(9010);var c=r(7625);var h=c.setopts;var v=c.ownProp;var g=r(2492);var y=r(1669);var w=c.childrenIgnored;var b=c.isIgnored;var S=r(1223);function glob(e,a,r){if(typeof a==="function")r=a,a={};if(!a)a={};if(a.sync){if(r)throw new TypeError("callback provided to sync glob");return m(e,a)}return new Glob(e,a,r)}glob.sync=m;var _=glob.GlobSync=m.GlobSync;glob.glob=glob;function extend(e,a){if(a===null||typeof a!=="object"){return e}var r=Object.keys(a);var i=r.length;while(i--){e[r[i]]=a[r[i]]}return e}glob.hasMagic=function(e,a){var r=extend({},a);r.noprocess=true;var i=new Glob(e,r);var n=i.minimatch.set;if(!e)return false;if(n.length>1)return true;for(var p=0;pthis.maxLength)return a();if(!this.stat&&v(this.cache,r)){var n=this.cache[r];if(Array.isArray(n))n="DIR";if(!i||n==="DIR")return a(null,n);if(i&&n==="FILE")return a()}var p;var o=this.statCache[r];if(o!==undefined){if(o===false)return a(null,o);else{var d=o.isDirectory()?"DIR":"FILE";if(i&&d==="FILE")return a();else return a(null,d,o)}}var s=this;var l=g("stat\0"+r,lstatcb_);if(l)s.fs.lstat(r,l);function lstatcb_(i,n){if(n&&n.isSymbolicLink()){return s.fs.stat(r,(function(i,p){if(i)s._stat2(e,r,null,n,a);else s._stat2(e,r,i,p,a)}))}else{s._stat2(e,r,i,n,a)}}};Glob.prototype._stat2=function(e,a,r,i,n){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR")){this.statCache[a]=false;return n()}var p=e.slice(-1)==="/";this.statCache[a]=i;if(a.slice(-1)==="/"&&i&&!i.isDirectory())return n(null,false,i);var o=true;if(i)o=i.isDirectory()?"DIR":"FILE";this.cache[a]=this.cache[a]||o;if(p&&o==="FILE")return n();return n(null,o,i)}},9010:(e,a,r)=>{e.exports=globSync;globSync.GlobSync=GlobSync;var i=r(6863);var n=r(3973);var p=n.Minimatch;var o=r(1957).Glob;var d=r(1669);var s=r(5622);var l=r(2357);var u=r(8714);var m=r(7625);var c=m.setopts;var h=m.ownProp;var v=m.childrenIgnored;var g=m.isIgnored;function globSync(e,a){if(typeof a==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(e,a).found}function GlobSync(e,a){if(!e)throw new Error("must provide pattern");if(typeof a==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(e,a);c(this,e,a);if(this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var i=0;ithis.maxLength)return false;if(!this.stat&&h(this.cache,a)){var i=this.cache[a];if(Array.isArray(i))i="DIR";if(!r||i==="DIR")return i;if(r&&i==="FILE")return false}var n;var p=this.statCache[a];if(!p){var o;try{o=this.fs.lstatSync(a)}catch(e){if(e&&(e.code==="ENOENT"||e.code==="ENOTDIR")){this.statCache[a]=false;return false}}if(o&&o.isSymbolicLink()){try{p=this.fs.statSync(a)}catch(e){p=o}}else{p=o}}this.statCache[a]=p;var i=true;if(p)i=p.isDirectory()?"DIR":"FILE";this.cache[a]=this.cache[a]||i;if(r&&i==="FILE")return false;return i};GlobSync.prototype._mark=function(e){return m.mark(this,e)};GlobSync.prototype._makeAbs=function(e){return m.makeAbs(this,e)}},1621:e=>{"use strict";e.exports=(e,a=process.argv)=>{const r=e.startsWith("-")?"":e.length===1?"-":"--";const i=a.indexOf(r+e);const n=a.indexOf("--");return i!==-1&&(n===-1||i{"use strict";e.exports=Math.imul||function(e,a){var r=e>>>16&65535;var i=e&65535;var n=a>>>16&65535;var p=a&65535;return i*p+(r*p+i*n<<16>>>0)|0}},2492:(e,a,r)=>{var i=r(2940);var n=Object.create(null);var p=r(1223);e.exports=i(inflight);function inflight(e,a){if(n[e]){n[e].push(a);return null}else{n[e]=[a];return makeres(e)}}function makeres(e){return p((function RES(){var a=n[e];var r=a.length;var i=slice(arguments);try{for(var p=0;pr){a.splice(0,r);process.nextTick((function(){RES.apply(null,i)}))}else{delete n[e]}}}))}function slice(e){var a=e.length;var r=[];for(var i=0;i{try{var i=r(1669);if(typeof i.inherits!=="function")throw"";e.exports=i.inherits}catch(a){e.exports=r(8544)}},8544:e=>{if(typeof Object.create==="function"){e.exports=function inherits(e,a){if(a){e.super_=a;e.prototype=Object.create(a.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}}}else{e.exports=function inherits(e,a){if(a){e.super_=a;var TempCtor=function(){};TempCtor.prototype=a.prototype;e.prototype=new TempCtor;e.prototype.constructor=e}}}},5625:e=>{ +(()=>{var __webpack_modules__={1990:(e,a,r)=>{const i=r(1184);const n=r(467);const p=r(5008);const o=r(1066);const d=`${workspaceDir}/mac/Audacity.entitlements`;async function signFile(e,a,r){r=r||[];return p.execWithLog("xcrun",["codesign","--verbose=3","--timestamp","--sign",a,"--options","runtime","--entitlements",d,"--force",...r,e])}async function fixupRPath(e){const a=(await p.getExecOutput("otool",["-L",e])).stdout;const r=a.split("\n").filter((e=>e.indexOf("@rpath")!=-1)).map((e=>e.match(/@rpath\/.+\.dylib/)[0]));if(r.length==0){return}const i=(await p.getExecOutput("otool",["-l",e])).stdout.split("\n").map((e=>e.trim())).filter((e=>e.search(/path\s+@(?:executable|loader)_path/)!=-1)).map((e=>e.match(/path\s+(@(?:executable|loader)_path.*)\s+\(/)[1])).map((e=>["-delete_rpath",e])).flat(Infinity);const n=r.map((e=>["-change",e,e.replace("@rpath","@executable_path/../Frameworks")])).flat(Infinity);p.log(`Fixing rpath for ${e}`);return p.execWithLog("install_name_tool",[...n,...i,e])}async function singApp(e,a){if(!a){p.log("Skipping code signings, as there is no codesign identity provided");return}const r=await o.getAudacityMacOSBundleFiles(e);exeFiles=r.MacOS;modules=r.modules;frameworks=r.Frameworks.dylib;binaries=[...exeFiles,...modules,...frameworks];for(const e of binaries){await fixupRPath(e)}for(const e of[...modules]){await signFile(e,a)}await signFile(e,a,["--deep"]);await p.execWithLog("codesign",["--verify","--deep","--verbose=4","--strict",e])}async function signDMG(e,a,r){if(!r){p.log("Skipping code signings, as there is no codesign identity provided");return}await p.execWithLog("xcrun",["codesign","--verbose","--timestamp","--identifier",a,"--sign",r,e])}async function notarizeDMG(e,a,r,o){if(!r||!r){p.log("Skipping notarization, as there are np credentials provided");return}p.log(`Notarizing DMG: ${e}`);const d=await p.getExecOutput("xcrun",["altool","--notarize-app","--primary-bundle-id",a,"--file",e,"--username",r,"--password",o,"--output-format","xml"]);const s=i.parse(d.stdout)["notarization-upload"]["RequestUUID"];for(;;){await p.sleep(3e4);const e=await p.getExecOutput("xcrun",["altool","--notarization-info",s,"--username",r,"--password",o,"--output-format","xml"]);const a=i.parse(e.stdout);const d=a["notarization-info"]["Status"];if(d=="success"){return}else if(d!="in progress"){const r=a["notarization-info"]["LogFileURL"];if(r){const e=await n(r);if(e.ok){const a=await e.text();throw Error(`Notarization failed:\n${a}`)}}throw Error(e.stdout)}}}e.exports={singApp:singApp,signDMG:signDMG,notarizeDMG:notarizeDMG}},4523:(e,a,r)=>{const i=r(2186);e.exports={Alpha:0,Beta:1,Release:2,getBuildLevel:()=>{const e=i.getInput("build_level");const a=e.length>0?e:process.env["AUDACITY_BUILD_LEVEL"];if(a==="beta"){return 1}else if(a==="release"){return 2}else{const e=Number(a);if(Number.isInteger(e)&&e>=0&&e<=2){return e}return 0}},getBuildSuffix:e=>{if(e==1){return"beta"}else if(e==2){return""}else{return"alpha"}}}},3202:(e,a,r)=>{const i=r(5747);const n=r(1371);const p=r(5622);const o=r(1349);const d=r(5008);const s=r(1066);const l=p.join(workspaceDir,"mac","Resources","Audacity-DMG-background.png");async function estimateBundleSize(e){let a=0;for(const r of e){a+=(await i.promises.lstat(r)).size}return a*1.5}async function createTempImage(e,a,r,o){const s=n.template("%s.dmg").writeFileSync("");d.log(s);o.push((async()=>{if(i.existsSync(s)){d.log(`Removing image ${s}`);await i.promises.rm(s)}}));await d.execWithLog("hdiutil",["create",s,"-ov","-format","UDRW","-fs","HFS+","-size",r,"-srcdir",p.dirname(e),"-volname",a]);return s}async function detachImage(e){const a=10;for(let r=1;r{if(i.existsSync(p)){d.log(`Detaching image ${e} mounted at ${p}`);await detachImage(p)}}));return p}async function copyFiles(e,a,r){a=p.dirname(a);const n=p.join(e,".background");const o=p.join(n,"bg.png");if(!i.existsSync(n)){i.mkdirSync(n)}await i.promises.copyFile(l,o)}async function createLinks(e){await i.promises.symlink("/Applications",p.join(e,"Applications"))}async function createDSStore(e,a){const r=new o;r.vSrn(1);r.setIconSize(72);r.setBackgroundPath(p.join(e,".background","bg.png"));r.setWindowPos(400,100);r.setWindowSize(600,450);r.setIconPos(a,170,350);r.setIconPos("Applications",430,350);await new Promise(((a,i)=>{r.write(p.join(e,".DS_Store"),(e=>{if(e){i(e)}else{a()}}))}))}async function convertDMG(e,a){if(i.existsSync(a)){i.rmSync(a)}await d.execWithLog("hdiutil",["convert",e,"-format","UDZO","-imagekey","zlib-level=9","-o",a])}async function packageDMG(e,a){finalizers=[];const r=p.basename(a,".app");try{const i=await s.listDirectory(a);const n=await estimateBundleSize([...i,l]);const o=await createTempImage(a,r,n,finalizers);const d=await attachImage(o,finalizers);await copyFiles(d,a,i);await createLinks(d);await createDSStore(d,p.basename(a));await detachImage(d);await convertDMG(o,e)}finally{Promise.all(finalizers.slice(0).reverse().map((async e=>e())))}}e.exports={packageDMG:packageDMG}},1066:(e,a,r)=>{const i=r(5747);const n=r(5622);const p=r(8090);helpers=r(5008);const getFilesFromDirectoryRecursive=async e=>{const a=await i.promises.readdir(e);const r=await Promise.all(a.map((async a=>{const r=n.join(e,a);const p=await i.promises.stat(r);if(p.isDirectory()){return getFilesFromDirectoryRecursive(r)}else{return r}})));return r.filter((e=>e.length))};async function globFiles(e){const a=await p.create(Array.isArray(e)?e.join("\n"):e);let r=[];for await(const e of a.globGenerator()){const a=await i.promises.lstat(e);if(a.isSymbolicLink()){continue}r.push(e)}return r}async function listMacosAppsRecursive(e,a){const r=await i.promises.readdir(e);await Promise.all(r.map((async r=>{const p=n.join(e,r);const o=await i.promises.stat(p);if(o.isDirectory()){if(n.extname(r)==".app"){a.push(p)}else{return listMacosAppsRecursive(p,a)}}})))}async function getAudacityMacOSBundleFiles(e){bundle={MacOS:[],Frameworks:{dylib:[]},modules:[],misc:[]};const a=(await getFilesFromDirectoryRecursive(e)).flat(Infinity);a.forEach((e=>{if(e.indexOf("Contents/MacOS")!=-1){bundle.MacOS.push(e)}else if(e.indexOf("Contents/Frameworks")!=-1){const a=i.statSync(e);if(a.isSymbolicLink()){bundle.misc.push(e)}else if(a.isFile()){bundle.Frameworks.dylib.push(e)}else{throw Error("Bundled frameworks are not supported")}}else if(e.indexOf("Contents/modules")!=-1){bundle.modules.push(e)}else{bundle.misc.push(e)}}));return bundle}async function copyFile(e,a){const r=n.dirname(a);if(!i.existsSync(r)){i.mkdirSync(r,{recursive:true})}return i.promises.copyFile(e,a)}async function copyFiles(e,a,r){return helpers.awaitAll(a,(async a=>{const i=n.relative(e,a);return copyFile(a,n.join(r,i))}))}async function listMacosApps(e){apps=[];await listMacosAppsRecursive(e,apps);return apps}e.exports={listDirectory:async e=>(await getFilesFromDirectoryRecursive(e)).flat(Infinity),globFiles:globFiles,listMacosApps:listMacosApps,getAudacityMacOSBundleFiles:getAudacityMacOSBundleFiles,copyFile:copyFile,copyFiles:copyFiles}},5008:(e,a,r)=>{const i=r(2186);const n=r(1514);const p=r(5622);const o=r(1711);const d=r(5747);const s=process.env["CI"];global.workspaceDir=process.env["GITHUB_WORKSPACE"];global.conanCachePath=p.join(workspaceDir,".conan");function log(e){if(s){i.info(e)}else{console.log(e)}}function error(e){if(s){i.error(e)}else{console.error(e)}}async function execWithLog(e,arguments){if(s){return n.exec(e,arguments)}else{return n.exec(e,arguments,{listeners:{stdout:e=>{log(e.toString())},stderr:e=>{error(e.toString())}}})}}async function getExecOutput(e,arguments){if(s){return n.getExecOutput(e,arguments)}else{return n.getExecOutput(e,arguments,{listeners:{stdout:e=>{log(e.toString())},stderr:e=>{error(e.toString())}}})}}async function awaitAll(e,a){return await Promise.all(e.map((async e=>a(e))))}async function getMD5(e){const a=await d.promises.readFile(e);return o(a)}function getDateString(){const e=new Date;return[e.getFullYear(),("0"+(e.getMonth()+1)).slice(-2),("0"+e.getDate()).slice(-2)].join("")}const sleep=e=>new Promise((a=>setTimeout(a,e)));process.on("unhandledRejection",((e,a)=>{error(e);i.setFailed(e);process.exit(1)})).on("uncaughtException",(e=>{error(e);i.setFailed(e);process.exit(1)}));e.exports={log:log,error:error,execWithLog:execWithLog,getExecOutput:getExecOutput,sleep:sleep,awaitAll:awaitAll,getMD5:getMD5,getDateString:getDateString}},9070:(e,a,r)=>{const i=r(5622);const n=r(5008);const p=r(1066);const o=r(5747);async function create(e,a){firstBundle=await p.getAudacityMacOSBundleFiles(a[0]);await p.copyFiles(a[0],firstBundle.misc,e);const r=[...firstBundle.MacOS,...firstBundle.Frameworks.dylib,...firstBundle.modules];return n.awaitAll(r,(r=>{const p=i.relative(a[0],r);const d=a.map((e=>i.join(e,p)));const s=i.join(e,p);const l=i.dirname(s);if(!o.existsSync(l)){o.mkdirSync(l,{recursive:true})}return n.execWithLog("lipo",["-create","-output",s,...d])}))}async function archs(e){const a=i.join(e,"Contents","MacOS");const r=i.join(a,o.readdirSync(a)[0]);return(await n.getExecOutput("lipo",["-archs",r])).stdout.split(/\s+/).map((e=>e.trim())).filter((e=>e.length>0))}async function archSuffix(e){const a=await archs(e);if(a.length==1){return a[0]}else{return"universal"}}e.exports={create:create,archs:archs,archs:archs,archSuffix:archSuffix}},2605:(e,a,r)=>{"use strict";Object.defineProperty(a,"__esModule",{value:true});const i=r(8802);function create(){return i.DefaultArtifactClient.create()}a.create=create},8802:function(e,a,r){"use strict";var i=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))a[r]=e[r];a["default"]=e;return a};Object.defineProperty(a,"__esModule",{value:true});const p=n(r(2186));const o=r(183);const d=r(4354);const s=r(6327);const l=r(8538);const u=r(5686);const m=r(2222);const c=r(5622);class DefaultArtifactClient{static create(){return new DefaultArtifactClient}uploadArtifact(e,a,r,n){return i(this,void 0,void 0,(function*(){s.checkArtifactName(e);const i=o.getUploadSpecification(e,r,a);const l={artifactName:e,artifactItems:[],size:0,failedItems:[]};const u=new d.UploadHttpClient;if(i.length===0){p.warning(`No files found that can be uploaded`)}else{const a=yield u.createArtifactInFileContainer(e,n);if(!a.fileContainerResourceUrl){p.debug(a.toString());throw new Error("No URL provided by the Artifact Service to upload an artifact to")}p.debug(`Upload Resource URL: ${a.fileContainerResourceUrl}`);const r=yield u.uploadArtifactToFileContainer(a.fileContainerResourceUrl,i,n);yield u.patchArtifactSize(r.totalSize,e);p.info(`Finished uploading artifact ${e}. Reported size is ${r.uploadSize} bytes. There were ${r.failedItems.length} items that failed to upload`);l.artifactItems=i.map((e=>e.absoluteFilePath));l.size=r.uploadSize;l.failedItems=r.failedItems}return l}))}downloadArtifact(e,a,r){return i(this,void 0,void 0,(function*(){const i=new l.DownloadHttpClient;const n=yield i.listArtifacts();if(n.count===0){throw new Error(`Unable to find any artifacts for the associated workflow`)}const o=n.value.find((a=>a.name===e));if(!o){throw new Error(`Unable to find an artifact with the name: ${e}`)}const d=yield i.getContainerItems(o.name,o.fileContainerResourceUrl);if(!a){a=m.getWorkSpaceDirectory()}a=c.normalize(a);a=c.resolve(a);const h=u.getDownloadSpecification(e,d.value,a,(r===null||r===void 0?void 0:r.createArtifactFolder)||false);if(h.filesToDownload.length===0){p.info(`No downloadable files were found for the artifact: ${o.name}`)}else{yield s.createDirectoriesForArtifact(h.directoryStructure);p.info("Directory structure has been setup for the artifact");yield s.createEmptyFilesForArtifact(h.emptyFilesToCreate);yield i.downloadSingleArtifact(h.filesToDownload)}return{artifactName:e,downloadPath:h.rootDownloadLocation}}))}downloadAllArtifacts(e){return i(this,void 0,void 0,(function*(){const a=new l.DownloadHttpClient;const r=[];const i=yield a.listArtifacts();if(i.count===0){p.info("Unable to find any artifacts for the associated workflow");return r}if(!e){e=m.getWorkSpaceDirectory()}e=c.normalize(e);e=c.resolve(e);let n=0;while(n{"use strict";Object.defineProperty(a,"__esModule",{value:true});function getUploadFileConcurrency(){return 2}a.getUploadFileConcurrency=getUploadFileConcurrency;function getUploadChunkSize(){return 8*1024*1024}a.getUploadChunkSize=getUploadChunkSize;function getRetryLimit(){return 5}a.getRetryLimit=getRetryLimit;function getRetryMultiplier(){return 1.5}a.getRetryMultiplier=getRetryMultiplier;function getInitialRetryIntervalInMilliseconds(){return 3e3}a.getInitialRetryIntervalInMilliseconds=getInitialRetryIntervalInMilliseconds;function getDownloadFileConcurrency(){return 2}a.getDownloadFileConcurrency=getDownloadFileConcurrency;function getRuntimeToken(){const e=process.env["ACTIONS_RUNTIME_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_RUNTIME_TOKEN env variable")}return e}a.getRuntimeToken=getRuntimeToken;function getRuntimeUrl(){const e=process.env["ACTIONS_RUNTIME_URL"];if(!e){throw new Error("Unable to get ACTIONS_RUNTIME_URL env variable")}return e}a.getRuntimeUrl=getRuntimeUrl;function getWorkFlowRunId(){const e=process.env["GITHUB_RUN_ID"];if(!e){throw new Error("Unable to get GITHUB_RUN_ID env variable")}return e}a.getWorkFlowRunId=getWorkFlowRunId;function getWorkSpaceDirectory(){const e=process.env["GITHUB_WORKSPACE"];if(!e){throw new Error("Unable to get GITHUB_WORKSPACE env variable")}return e}a.getWorkSpaceDirectory=getWorkSpaceDirectory;function getRetentionDays(){return process.env["GITHUB_RETENTION_DAYS"]}a.getRetentionDays=getRetentionDays},8538:function(e,a,r){"use strict";var i=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))a[r]=e[r];a["default"]=e;return a};Object.defineProperty(a,"__esModule",{value:true});const p=n(r(5747));const o=n(r(2186));const d=n(r(8761));const s=r(6327);const l=r(8835);const u=r(9081);const m=r(630);const c=r(6527);const h=r(2222);const v=r(755);class DownloadHttpClient{constructor(){this.downloadHttpManager=new c.HttpManager(h.getDownloadFileConcurrency(),"@actions/artifact-download");this.statusReporter=new u.StatusReporter(1e3)}listArtifacts(){return i(this,void 0,void 0,(function*(){const e=s.getArtifactUrl();const a=this.downloadHttpManager.getClient(0);const r=s.getDownloadHeaders("application/json");const n=yield v.retryHttpClientRequest("List Artifacts",(()=>i(this,void 0,void 0,(function*(){return a.get(e,r)}))));const p=yield n.readBody();return JSON.parse(p)}))}getContainerItems(e,a){return i(this,void 0,void 0,(function*(){const r=new l.URL(a);r.searchParams.append("itemPath",e);const n=this.downloadHttpManager.getClient(0);const p=s.getDownloadHeaders("application/json");const o=yield v.retryHttpClientRequest("Get Container Items",(()=>i(this,void 0,void 0,(function*(){return n.get(r.toString(),p)}))));const d=yield o.readBody();return JSON.parse(d)}))}downloadSingleArtifact(e){return i(this,void 0,void 0,(function*(){const a=h.getDownloadFileConcurrency();o.debug(`Download file concurrency is set to ${a}`);const r=[...new Array(a).keys()];let n=0;let p=0;o.info(`Total number of files that will be downloaded: ${e.length}`);this.statusReporter.setTotalNumberOfFilesToProcess(e.length);this.statusReporter.start();yield Promise.all(r.map((a=>i(this,void 0,void 0,(function*(){while(n{throw new Error(`Unable to download the artifact: ${e}`)})).finally((()=>{this.statusReporter.stop();this.downloadHttpManager.disposeAndReplaceAllClients()}))}))}downloadIndividualFile(e,a,r){return i(this,void 0,void 0,(function*(){let n=0;const d=h.getRetryLimit();let l=p.createWriteStream(r);const u=s.getDownloadHeaders("application/json",true,true);const makeDownloadRequest=()=>i(this,void 0,void 0,(function*(){const r=this.downloadHttpManager.getClient(e);return yield r.get(a,u)}));const isGzip=e=>"content-encoding"in e&&e["content-encoding"]==="gzip";const backOff=r=>i(this,void 0,void 0,(function*(){n++;if(n>d){return Promise.reject(new Error(`Retry limit has been reached. Unable to download ${a}`))}else{this.downloadHttpManager.disposeAndReplaceClient(e);if(r){o.info(`Backoff due to too many requests, retry #${n}. Waiting for ${r} milliseconds before continuing the download`);yield s.sleep(r)}else{const e=s.getExponentialRetryTimeInMilliseconds(n);o.info(`Exponential backoff for retry #${n}. Waiting for ${e} milliseconds before continuing the download`);yield s.sleep(e)}o.info(`Finished backoff for retry #${n}, continuing with download`)}}));const isAllBytesReceived=(e,a)=>{if(!e||!a||process.env["ACTIONS_ARTIFACT_SKIP_DOWNLOAD_VALIDATION"]){o.info("Skipping download validation.");return true}return parseInt(e)===a};const resetDestinationStream=e=>i(this,void 0,void 0,(function*(){l.close();yield s.rmFile(e);l=p.createWriteStream(e)}));while(n<=d){let e;try{e=yield makeDownloadRequest();if(o.isDebug()){s.displayHttpDiagnostics(e)}}catch(e){o.info("An error occurred while attempting to download a file");console.log(e);yield backOff();continue}let i=false;if(s.isSuccessStatusCode(e.message.statusCode)){try{const a=isGzip(e.message.headers);yield this.pipeResponseToFile(e,l,a);if(a||isAllBytesReceived(e.message.headers["content-length"],yield s.getFileSize(r))){return}else{i=true}}catch(e){i=true}}if(i||s.isRetryableStatusCode(e.message.statusCode)){o.info(`A ${e.message.statusCode} response code has been received while attempting to download an artifact`);resetDestinationStream(r);s.isThrottledStatusCode(e.message.statusCode)?yield backOff(s.tryGetRetryAfterValueTimeInMilliseconds(e.message.headers)):yield backOff()}else{s.displayHttpDiagnostics(e);return Promise.reject(new Error(`Unexpected http ${e.message.statusCode} during download for ${a}`))}}}))}pipeResponseToFile(e,a,r){return i(this,void 0,void 0,(function*(){yield new Promise(((i,n)=>{if(r){const r=d.createGunzip();e.message.on("error",(e=>{o.error(`An error occurred while attempting to read the response stream`);r.close();a.close();n(e)})).pipe(r).on("error",(e=>{o.error(`An error occurred while attempting to decompress the response stream`);a.close();n(e)})).pipe(a).on("close",(()=>{i()})).on("error",(e=>{o.error(`An error occurred while writing a downloaded file to ${a.path}`);n(e)}))}else{e.message.on("error",(e=>{o.error(`An error occurred while attempting to read the response stream`);a.close();n(e)})).pipe(a).on("close",(()=>{i()})).on("error",(e=>{o.error(`An error occurred while writing a downloaded file to ${a.path}`);n(e)}))}}));return}))}}a.DownloadHttpClient=DownloadHttpClient},5686:function(e,a,r){"use strict";var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))a[r]=e[r];a["default"]=e;return a};Object.defineProperty(a,"__esModule",{value:true});const n=i(r(5622));function getDownloadSpecification(e,a,r,i){const p=new Set;const o={rootDownloadLocation:i?n.join(r,e):r,directoryStructure:[],emptyFilesToCreate:[],filesToDownload:[]};for(const d of a){if(d.path.startsWith(`${e}/`)||d.path.startsWith(`${e}\\`)){const a=n.normalize(d.path);const s=n.join(r,i?a:a.replace(e,""));if(d.itemType==="file"){p.add(n.dirname(s));if(d.fileLength===0){o.emptyFilesToCreate.push(s)}else{o.filesToDownload.push({sourceLocation:d.contentLocation,targetPath:s})}}}}o.directoryStructure=Array.from(p);return o}a.getDownloadSpecification=getDownloadSpecification},6527:(e,a,r)=>{"use strict";Object.defineProperty(a,"__esModule",{value:true});const i=r(6327);class HttpManager{constructor(e,a){if(e<1){throw new Error("There must be at least one client")}this.userAgent=a;this.clients=new Array(e).fill(i.createHttpClient(a))}getClient(e){return this.clients[e]}disposeAndReplaceClient(e){this.clients[e].dispose();this.clients[e]=i.createHttpClient(this.userAgent)}disposeAndReplaceAllClients(){for(const[e]of this.clients.entries()){this.disposeAndReplaceClient(e)}}}a.HttpManager=HttpManager},755:function(e,a,r){"use strict";var i=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))a[r]=e[r];a["default"]=e;return a};Object.defineProperty(a,"__esModule",{value:true});const p=r(6327);const o=n(r(2186));const d=r(2222);function retry(e,a,r,n){return i(this,void 0,void 0,(function*(){let i=undefined;let d=undefined;let s=false;let l="";let u=undefined;let m=1;while(m<=n){try{i=yield a();d=i.message.statusCode;if(p.isSuccessStatusCode(d)){return i}if(d){u=r.get(d)}s=p.isRetryableStatusCode(d);l=`Artifact service responded with ${d}`}catch(e){s=true;l=e.message}if(!s){o.info(`${e} - Error is not retryable`);if(i){p.displayHttpDiagnostics(i)}break}o.info(`${e} - Attempt ${m} of ${n} failed with error: ${l}`);yield p.sleep(p.getExponentialRetryTimeInMilliseconds(m));m++}if(i){p.displayHttpDiagnostics(i)}if(u){throw Error(`${e} failed: ${u}`)}throw Error(`${e} failed: ${l}`)}))}a.retry=retry;function retryHttpClientRequest(e,a,r=new Map,n=d.getRetryLimit()){return i(this,void 0,void 0,(function*(){return yield retry(e,a,r,n)}))}a.retryHttpClientRequest=retryHttpClientRequest},9081:(e,a,r)=>{"use strict";Object.defineProperty(a,"__esModule",{value:true});const i=r(2186);class StatusReporter{constructor(e){this.totalNumberOfFilesToProcess=0;this.processedCount=0;this.largeFiles=new Map;this.totalFileStatus=undefined;this.largeFileStatus=undefined;this.displayFrequencyInMilliseconds=e}setTotalNumberOfFilesToProcess(e){this.totalNumberOfFilesToProcess=e}start(){this.totalFileStatus=setInterval((()=>{const e=this.formatPercentage(this.processedCount,this.totalNumberOfFilesToProcess);i.info(`Total file count: ${this.totalNumberOfFilesToProcess} ---- Processed file #${this.processedCount} (${e.slice(0,e.indexOf(".")+2)}%)`)}),this.displayFrequencyInMilliseconds);this.largeFileStatus=setInterval((()=>{for(const e of Array.from(this.largeFiles.values())){i.info(e)}this.largeFiles.clear()}),1e3)}updateLargeFileStatus(e,a,r){const i=this.formatPercentage(a,r);const n=`Uploading ${e} (${i.slice(0,i.indexOf(".")+2)}%)`;this.largeFiles.set(e,n)}stop(){if(this.totalFileStatus){clearInterval(this.totalFileStatus)}if(this.largeFileStatus){clearInterval(this.largeFileStatus)}}incrementProcessedCount(){this.processedCount++}formatPercentage(e,a){return(e/a*100).toFixed(4).toString()}}a.StatusReporter=StatusReporter},606:function(e,a,r){"use strict";var i=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};var n=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=e[Symbol.asyncIterator],r;return a?a.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(a){r[a]=e[a]&&function(r){return new Promise((function(i,n){r=e[a](r),settle(i,n,r.done,r.value)}))}}function settle(e,a,r,i){Promise.resolve(i).then((function(a){e({value:a,done:r})}),a)}};var p=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))a[r]=e[r];a["default"]=e;return a};Object.defineProperty(a,"__esModule",{value:true});const o=p(r(5747));const d=p(r(8761));const s=r(1669);const l=s.promisify(o.stat);function createGZipFileOnDisk(e,a){return i(this,void 0,void 0,(function*(){return new Promise(((r,n)=>{const p=o.createReadStream(e);const s=d.createGzip();const u=o.createWriteStream(a);p.pipe(s).pipe(u);u.on("finish",(()=>i(this,void 0,void 0,(function*(){const e=(yield l(a)).size;r(e)}))));u.on("error",(e=>{console.log(e);n}))}))}))}a.createGZipFileOnDisk=createGZipFileOnDisk;function createGZipFileInBuffer(e){return i(this,void 0,void 0,(function*(){return new Promise((a=>i(this,void 0,void 0,(function*(){var r,i;const p=o.createReadStream(e);const s=d.createGzip();p.pipe(s);const l=[];try{for(var u=n(s),m;m=yield u.next(),!m.done;){const e=m.value;l.push(e)}}catch(e){r={error:e}}finally{try{if(m&&!m.done&&(i=u.return))yield i.call(u)}finally{if(r)throw r.error}}a(Buffer.concat(l))}))))}))}a.createGZipFileInBuffer=createGZipFileInBuffer},4354:function(e,a,r){"use strict";var i=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))a[r]=e[r];a["default"]=e;return a};Object.defineProperty(a,"__esModule",{value:true});const p=n(r(5747));const o=n(r(2186));const d=n(r(8065));const s=n(r(2413));const l=r(6327);const u=r(2222);const m=r(1669);const c=r(8835);const h=r(630);const v=r(9081);const g=r(9925);const y=r(6527);const w=r(606);const b=r(755);const S=m.promisify(p.stat);class UploadHttpClient{constructor(){this.uploadHttpManager=new y.HttpManager(u.getUploadFileConcurrency(),"@actions/artifact-upload");this.statusReporter=new v.StatusReporter(1e4)}createArtifactInFileContainer(e,a){return i(this,void 0,void 0,(function*(){const r={Type:"actions_storage",Name:e};if(a&&a.retentionDays){const e=u.getRetentionDays();r.RetentionDays=l.getProperRetention(a.retentionDays,e)}const n=JSON.stringify(r,null,2);const p=l.getArtifactUrl();const o=this.uploadHttpManager.getClient(0);const d=l.getUploadHeaders("application/json",false);const s=new Map([[g.HttpCodes.Forbidden,"Artifact storage quota has been hit. Unable to upload any new artifacts"],[g.HttpCodes.BadRequest,`The artifact name ${e} is not valid. Request URL ${p}`]]);const m=yield b.retryHttpClientRequest("Create Artifact Container",(()=>i(this,void 0,void 0,(function*(){return o.post(p,n,d)}))),s);const c=yield m.readBody();return JSON.parse(c)}))}uploadArtifactToFileContainer(e,a,r){return i(this,void 0,void 0,(function*(){const n=u.getUploadFileConcurrency();const p=u.getUploadChunkSize();o.debug(`File Concurrency: ${n}, and Chunk Size: ${p}`);const d=[];let s=true;if(r){if(r.continueOnError===false){s=false}}for(const r of a){const a=new c.URL(e);a.searchParams.append("itemPath",r.uploadFilePath);d.push({file:r.absoluteFilePath,resourceUrl:a.toString(),maxChunkSize:p,continueOnError:s})}const l=[...new Array(n).keys()];const m=[];let v=0;let g=0;let y=0;let w=0;let b=false;this.statusReporter.setTotalNumberOfFilesToProcess(a.length);this.statusReporter.start();yield Promise.all(l.map((e=>i(this,void 0,void 0,(function*(){while(vp.createReadStream(a.file);m=false;u=r}else{d=()=>{const e=new s.PassThrough;e.end(i);return e};u=i.byteLength}const c=yield this.uploadChunk(e,a.resourceUrl,d,0,u-1,u,m,r);if(!c){n=false;l+=u;o.warning(`Aborting upload for ${a.file} due to failure`)}return{isSuccess:n,successfulUploadSize:u-l,totalSize:r}}else{const s=yield d.file();u=yield w.createGZipFileOnDisk(a.file,s.path);let c=s.path;if(r104857600){this.statusReporter.updateLargeFileStatus(a.file,i,u)}const s=i;const v=i+d-1;i+=a.maxChunkSize;if(h){l+=d;continue}const g=yield this.uploadChunk(e,a.resourceUrl,(()=>p.createReadStream(c,{start:s,end:v,autoClose:false})),s,v,u,m,r);if(!g){n=false;l+=d;o.warning(`Aborting upload for ${a.file} due to failure`);h=true}}yield s.cleanup();return{isSuccess:n,successfulUploadSize:u-l,totalSize:r}}}))}uploadChunk(e,a,r,n,p,d,s,m){return i(this,void 0,void 0,(function*(){const c=l.getUploadHeaders("application/octet-stream",true,s,m,p-n+1,l.getContentRange(n,p,d));const uploadChunkRequest=()=>i(this,void 0,void 0,(function*(){const i=this.uploadHttpManager.getClient(e);return yield i.sendStream("PUT",a,r(),c)}));let h=0;const v=u.getRetryLimit();const incrementAndCheckRetryLimit=e=>{h++;if(h>v){if(e){l.displayHttpDiagnostics(e)}o.info(`Retry limit has been reached for chunk at offset ${n} to ${a}`);return true}return false};const backOff=a=>i(this,void 0,void 0,(function*(){this.uploadHttpManager.disposeAndReplaceClient(e);if(a){o.info(`Backoff due to too many requests, retry #${h}. Waiting for ${a} milliseconds before continuing the upload`);yield l.sleep(a)}else{const e=l.getExponentialRetryTimeInMilliseconds(h);o.info(`Exponential backoff for retry #${h}. Waiting for ${e} milliseconds before continuing the upload at offset ${n}`);yield l.sleep(e)}o.info(`Finished backoff for retry #${h}, continuing with upload`);return}));while(h<=v){let r;try{r=yield uploadChunkRequest()}catch(a){o.info(`An error has been caught http-client index ${e}, retrying the upload`);console.log(a);if(incrementAndCheckRetryLimit()){return false}yield backOff();continue}yield r.readBody();if(l.isSuccessStatusCode(r.message.statusCode)){return true}else if(l.isRetryableStatusCode(r.message.statusCode)){o.info(`A ${r.message.statusCode} status code has been received, will attempt to retry the upload`);if(incrementAndCheckRetryLimit(r)){return false}l.isThrottledStatusCode(r.message.statusCode)?yield backOff(l.tryGetRetryAfterValueTimeInMilliseconds(r.message.headers)):yield backOff()}else{o.error(`Unexpected response. Unable to upload chunk to ${a}`);l.displayHttpDiagnostics(r);return false}}return false}))}patchArtifactSize(e,a){return i(this,void 0,void 0,(function*(){const r=new c.URL(l.getArtifactUrl());r.searchParams.append("artifactName",a);const n={Size:e};const p=JSON.stringify(n,null,2);o.debug(`URL is ${r.toString()}`);const d=this.uploadHttpManager.getClient(0);const s=l.getUploadHeaders("application/json",false);const u=new Map([[g.HttpCodes.NotFound,`An Artifact with the name ${a} was not found`]]);const m=yield b.retryHttpClientRequest("Finalize artifact upload",(()=>i(this,void 0,void 0,(function*(){return d.patch(r.toString(),p,s)}))),u);yield m.readBody();o.debug(`Artifact ${a} has been successfully uploaded, total size in bytes: ${e}`)}))}}a.UploadHttpClient=UploadHttpClient},183:function(e,a,r){"use strict";var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))a[r]=e[r];a["default"]=e;return a};Object.defineProperty(a,"__esModule",{value:true});const n=i(r(5747));const p=r(2186);const o=r(5622);const d=r(6327);function getUploadSpecification(e,a,r){d.checkArtifactName(e);const i=[];if(!n.existsSync(a)){throw new Error(`Provided rootDirectory ${a} does not exist`)}if(!n.lstatSync(a).isDirectory()){throw new Error(`Provided rootDirectory ${a} is not a valid directory`)}a=o.normalize(a);a=o.resolve(a);for(let s of r){if(!n.existsSync(s)){throw new Error(`File ${s} does not exist`)}if(!n.lstatSync(s).isDirectory()){s=o.normalize(s);s=o.resolve(s);if(!s.startsWith(a)){throw new Error(`The rootDirectory: ${a} is not a parent directory of the file: ${s}`)}const r=s.replace(a,"");d.checkArtifactFilePath(r);i.push({absoluteFilePath:s,uploadFilePath:o.join(e,r)})}else{p.debug(`Removing ${s} from rawSearchResults because it is a directory`)}}return i}a.getUploadSpecification=getUploadSpecification},6327:function(e,a,r){"use strict";var i=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};Object.defineProperty(a,"__esModule",{value:true});const n=r(2186);const p=r(5747);const o=r(9925);const d=r(3702);const s=r(2222);function getExponentialRetryTimeInMilliseconds(e){if(e<0){throw new Error("RetryCount should not be negative")}else if(e===0){return s.getInitialRetryIntervalInMilliseconds()}const a=s.getInitialRetryIntervalInMilliseconds()*s.getRetryMultiplier()*e;const r=a*s.getRetryMultiplier();return Math.random()*(r-a)+a}a.getExponentialRetryTimeInMilliseconds=getExponentialRetryTimeInMilliseconds;function parseEnvNumber(e){const a=Number(process.env[e]);if(Number.isNaN(a)||a<0){return undefined}return a}a.parseEnvNumber=parseEnvNumber;function getApiVersion(){return"6.0-preview"}a.getApiVersion=getApiVersion;function isSuccessStatusCode(e){if(!e){return false}return e>=200&&e<300}a.isSuccessStatusCode=isSuccessStatusCode;function isForbiddenStatusCode(e){if(!e){return false}return e===o.HttpCodes.Forbidden}a.isForbiddenStatusCode=isForbiddenStatusCode;function isRetryableStatusCode(e){if(!e){return false}const a=[o.HttpCodes.BadGateway,o.HttpCodes.GatewayTimeout,o.HttpCodes.InternalServerError,o.HttpCodes.ServiceUnavailable,o.HttpCodes.TooManyRequests,413];return a.includes(e)}a.isRetryableStatusCode=isRetryableStatusCode;function isThrottledStatusCode(e){if(!e){return false}return e===o.HttpCodes.TooManyRequests}a.isThrottledStatusCode=isThrottledStatusCode;function tryGetRetryAfterValueTimeInMilliseconds(e){if(e["retry-after"]){const a=Number(e["retry-after"]);if(!isNaN(a)){n.info(`Retry-After header is present with a value of ${a}`);return a*1e3}n.info(`Returned retry-after header value: ${a} is non-numeric and cannot be used`);return undefined}n.info(`No retry-after header was found. Dumping all headers for diagnostic purposes`);console.log(e);return undefined}a.tryGetRetryAfterValueTimeInMilliseconds=tryGetRetryAfterValueTimeInMilliseconds;function getContentRange(e,a,r){return`bytes ${e}-${a}/${r}`}a.getContentRange=getContentRange;function getDownloadHeaders(e,a,r){const i={};if(e){i["Content-Type"]=e}if(a){i["Connection"]="Keep-Alive";i["Keep-Alive"]="10"}if(r){i["Accept-Encoding"]="gzip";i["Accept"]=`application/octet-stream;api-version=${getApiVersion()}`}else{i["Accept"]=`application/json;api-version=${getApiVersion()}`}return i}a.getDownloadHeaders=getDownloadHeaders;function getUploadHeaders(e,a,r,i,n,p){const o={};o["Accept"]=`application/json;api-version=${getApiVersion()}`;if(e){o["Content-Type"]=e}if(a){o["Connection"]="Keep-Alive";o["Keep-Alive"]="10"}if(r){o["Content-Encoding"]="gzip";o["x-tfs-filelength"]=i}if(n){o["Content-Length"]=n}if(p){o["Content-Range"]=p}return o}a.getUploadHeaders=getUploadHeaders;function createHttpClient(e){return new o.HttpClient(e,[new d.BearerCredentialHandler(s.getRuntimeToken())])}a.createHttpClient=createHttpClient;function getArtifactUrl(){const e=`${s.getRuntimeUrl()}_apis/pipelines/workflows/${s.getWorkFlowRunId()}/artifacts?api-version=${getApiVersion()}`;n.debug(`Artifact Url: ${e}`);return e}a.getArtifactUrl=getArtifactUrl;function displayHttpDiagnostics(e){n.info(`##### Begin Diagnostic HTTP information #####\nStatus Code: ${e.message.statusCode}\nStatus Message: ${e.message.statusMessage}\nHeader Information: ${JSON.stringify(e.message.headers,undefined,2)}\n###### End Diagnostic HTTP information ######`)}a.displayHttpDiagnostics=displayHttpDiagnostics;const l=['"',":","<",">","|","*","?"];const u=[...l,"\\","/"];function checkArtifactName(e){if(!e){throw new Error(`Artifact name: ${e}, is incorrectly provided`)}for(const a of u){if(e.includes(a)){throw new Error(`Artifact name is not valid: ${e}. Contains character: "${a}". Invalid artifact name characters include: ${u.toString()}.`)}}}a.checkArtifactName=checkArtifactName;function checkArtifactFilePath(e){if(!e){throw new Error(`Artifact path: ${e}, is incorrectly provided`)}for(const a of l){if(e.includes(a)){throw new Error(`Artifact path is not valid: ${e}. Contains character: "${a}". Invalid characters include: ${l.toString()}.`)}}}a.checkArtifactFilePath=checkArtifactFilePath;function createDirectoriesForArtifact(e){return i(this,void 0,void 0,(function*(){for(const a of e){yield p.promises.mkdir(a,{recursive:true})}}))}a.createDirectoriesForArtifact=createDirectoriesForArtifact;function createEmptyFilesForArtifact(e){return i(this,void 0,void 0,(function*(){for(const a of e){yield(yield p.promises.open(a,"w")).close()}}))}a.createEmptyFilesForArtifact=createEmptyFilesForArtifact;function getFileSize(e){return i(this,void 0,void 0,(function*(){const a=yield p.promises.stat(e);n.debug(`${e} size:(${a.size}) blksize:(${a.blksize}) blocks:(${a.blocks})`);return a.size}))}a.getFileSize=getFileSize;function rmFile(e){return i(this,void 0,void 0,(function*(){yield p.promises.unlink(e)}))}a.rmFile=rmFile;function getProperRetention(e,a){if(e<0){throw new Error("Invalid retention, minimum value is 1.")}let r=e;if(a){const e=parseInt(a);if(!isNaN(e)&&esetTimeout(a,e)))}))}a.sleep=sleep},7351:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var p=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};Object.defineProperty(a,"__esModule",{value:true});a.issue=a.issueCommand=void 0;const o=p(r(2087));const d=r(5278);function issueCommand(e,a,r){const i=new Command(e,a,r);process.stdout.write(i.toString()+o.EOL)}a.issueCommand=issueCommand;function issue(e,a=""){issueCommand(e,{},a)}a.issue=issue;const s="::";class Command{constructor(e,a,r){if(!e){e="missing.command"}this.command=e;this.properties=a;this.message=r}toString(){let e=s+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let a=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const i=this.properties[r];if(i){if(a){a=false}else{e+=","}e+=`${r}=${escapeProperty(i)}`}}}}e+=`${s}${escapeData(this.message)}`;return e}}function escapeData(e){return d.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return d.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var p=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};var o=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};Object.defineProperty(a,"__esModule",{value:true});a.getIDToken=a.getState=a.saveState=a.group=a.endGroup=a.startGroup=a.info=a.notice=a.warning=a.error=a.debug=a.isDebug=a.setFailed=a.setCommandEcho=a.setOutput=a.getBooleanInput=a.getMultilineInput=a.getInput=a.addPath=a.setSecret=a.exportVariable=a.ExitCode=void 0;const d=r(7351);const s=r(717);const l=r(5278);const u=p(r(2087));const m=p(r(5622));const c=r(8041);var h;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(h=a.ExitCode||(a.ExitCode={}));function exportVariable(e,a){const r=l.toCommandValue(a);process.env[e]=r;const i=process.env["GITHUB_ENV"]||"";if(i){const a="_GitHubActionsFileCommandDelimeter_";const i=`${e}<<${a}${u.EOL}${r}${u.EOL}${a}`;s.issueCommand("ENV",i)}else{d.issueCommand("set-env",{name:e},r)}}a.exportVariable=exportVariable;function setSecret(e){d.issueCommand("add-mask",{},e)}a.setSecret=setSecret;function addPath(e){const a=process.env["GITHUB_PATH"]||"";if(a){s.issueCommand("PATH",e)}else{d.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${m.delimiter}${process.env["PATH"]}`}a.addPath=addPath;function getInput(e,a){const r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(a&&a.required&&!r){throw new Error(`Input required and not supplied: ${e}`)}if(a&&a.trimWhitespace===false){return r}return r.trim()}a.getInput=getInput;function getMultilineInput(e,a){const r=getInput(e,a).split("\n").filter((e=>e!==""));return r}a.getMultilineInput=getMultilineInput;function getBooleanInput(e,a){const r=["true","True","TRUE"];const i=["false","False","FALSE"];const n=getInput(e,a);if(r.includes(n))return true;if(i.includes(n))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}a.getBooleanInput=getBooleanInput;function setOutput(e,a){process.stdout.write(u.EOL);d.issueCommand("set-output",{name:e},a)}a.setOutput=setOutput;function setCommandEcho(e){d.issue("echo",e?"on":"off")}a.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=h.Failure;error(e)}a.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}a.isDebug=isDebug;function debug(e){d.issueCommand("debug",{},e)}a.debug=debug;function error(e,a={}){d.issueCommand("error",l.toCommandProperties(a),e instanceof Error?e.toString():e)}a.error=error;function warning(e,a={}){d.issueCommand("warning",l.toCommandProperties(a),e instanceof Error?e.toString():e)}a.warning=warning;function notice(e,a={}){d.issueCommand("notice",l.toCommandProperties(a),e instanceof Error?e.toString():e)}a.notice=notice;function info(e){process.stdout.write(e+u.EOL)}a.info=info;function startGroup(e){d.issue("group",e)}a.startGroup=startGroup;function endGroup(){d.issue("endgroup")}a.endGroup=endGroup;function group(e,a){return o(this,void 0,void 0,(function*(){startGroup(e);let r;try{r=yield a()}finally{endGroup()}return r}))}a.group=group;function saveState(e,a){d.issueCommand("save-state",{name:e},a)}a.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}a.getState=getState;function getIDToken(e){return o(this,void 0,void 0,(function*(){return yield c.OidcClient.getIDToken(e)}))}a.getIDToken=getIDToken},717:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var p=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};Object.defineProperty(a,"__esModule",{value:true});a.issueCommand=void 0;const o=p(r(5747));const d=p(r(2087));const s=r(5278);function issueCommand(e,a){const r=process.env[`GITHUB_${e}`];if(!r){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!o.existsSync(r)){throw new Error(`Missing file at path: ${r}`)}o.appendFileSync(r,`${s.toCommandValue(a)}${d.EOL}`,{encoding:"utf8"})}a.issueCommand=issueCommand},8041:function(e,a,r){"use strict";var i=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};Object.defineProperty(a,"__esModule",{value:true});a.OidcClient=void 0;const n=r(9925);const p=r(3702);const o=r(2186);class OidcClient{static createHttpClient(e=true,a=10){const r={allowRetries:e,maxRetries:a};return new n.HttpClient("actions/oidc-client",[new p.BearerCredentialHandler(OidcClient.getRequestToken())],r)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var a;return i(this,void 0,void 0,(function*(){const r=OidcClient.createHttpClient();const i=yield r.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)}));const n=(a=i.result)===null||a===void 0?void 0:a.value;if(!n){throw new Error("Response json body do not have ID Token field")}return n}))}static getIDToken(e){return i(this,void 0,void 0,(function*(){try{let a=OidcClient.getIDTokenUrl();if(e){const r=encodeURIComponent(e);a=`${a}&audience=${r}`}o.debug(`ID token url is ${a}`);const r=yield OidcClient.getCall(a);o.setSecret(r);return r}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}a.OidcClient=OidcClient},5278:(e,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:true});a.toCommandProperties=a.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}a.toCommandValue=toCommandValue;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}a.toCommandProperties=toCommandProperties},1514:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var p=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};var o=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};Object.defineProperty(a,"__esModule",{value:true});a.getExecOutput=a.exec=void 0;const d=r(4304);const s=p(r(8159));function exec(e,a,r){return o(this,void 0,void 0,(function*(){const i=s.argStringToArray(e);if(i.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const n=i[0];a=i.slice(1).concat(a||[]);const p=new s.ToolRunner(n,a,r);return p.exec()}))}a.exec=exec;function getExecOutput(e,a,r){var i,n;return o(this,void 0,void 0,(function*(){let p="";let o="";const s=new d.StringDecoder("utf8");const l=new d.StringDecoder("utf8");const u=(i=r===null||r===void 0?void 0:r.listeners)===null||i===void 0?void 0:i.stdout;const m=(n=r===null||r===void 0?void 0:r.listeners)===null||n===void 0?void 0:n.stderr;const stdErrListener=e=>{o+=l.write(e);if(m){m(e)}};const stdOutListener=e=>{p+=s.write(e);if(u){u(e)}};const c=Object.assign(Object.assign({},r===null||r===void 0?void 0:r.listeners),{stdout:stdOutListener,stderr:stdErrListener});const h=yield exec(e,a,Object.assign(Object.assign({},r),{listeners:c}));p+=s.end();o+=l.end();return{exitCode:h,stdout:p,stderr:o}}))}a.getExecOutput=getExecOutput},8159:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var p=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};var o=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};Object.defineProperty(a,"__esModule",{value:true});a.argStringToArray=a.ToolRunner=void 0;const d=p(r(2087));const s=p(r(8614));const l=p(r(3129));const u=p(r(5622));const m=p(r(7436));const c=p(r(1962));const h=r(8213);const v=process.platform==="win32";class ToolRunner extends s.EventEmitter{constructor(e,a,r){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=a||[];this.options=r||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,a){const r=this._getSpawnFileName();const i=this._getSpawnArgs(e);let n=a?"":"[command]";if(v){if(this._isCmdFile()){n+=r;for(const e of i){n+=` ${e}`}}else if(e.windowsVerbatimArguments){n+=`"${r}"`;for(const e of i){n+=` ${e}`}}else{n+=this._windowsQuoteCmdArg(r);for(const e of i){n+=` ${this._windowsQuoteCmdArg(e)}`}}}else{n+=r;for(const e of i){n+=` ${e}`}}return n}_processLineBuffer(e,a,r){try{let i=a+e.toString();let n=i.indexOf(d.EOL);while(n>-1){const e=i.substring(0,n);r(e);i=i.substring(n+d.EOL.length);n=i.indexOf(d.EOL)}return i}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(v){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(v){if(this._isCmdFile()){let a=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const r of this.args){a+=" ";a+=e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r)}a+='"';return[a]}}return this.args}_endsWith(e,a){return e.endsWith(a)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const a=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let r=false;for(const i of e){if(a.some((e=>e===i))){r=true;break}}if(!r){return e}let i='"';let n=true;for(let a=e.length;a>0;a--){i+=e[a-1];if(n&&e[a-1]==="\\"){i+="\\"}else if(e[a-1]==='"'){n=true;i+='"'}else{n=false}}i+='"';return i.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let a='"';let r=true;for(let i=e.length;i>0;i--){a+=e[i-1];if(r&&e[i-1]==="\\"){a+="\\"}else if(e[i-1]==='"'){r=true;a+="\\"}else{r=false}}a+='"';return a.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const a={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};a.outStream=e.outStream||process.stdout;a.errStream=e.errStream||process.stderr;return a}_getSpawnOptions(e,a){e=e||{};const r={};r.cwd=e.cwd;r.env=e.env;r["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){r.argv0=`"${a}"`}return r}exec(){return o(this,void 0,void 0,(function*(){if(!c.isRooted(this.toolPath)&&(this.toolPath.includes("/")||v&&this.toolPath.includes("\\"))){this.toolPath=u.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield m.which(this.toolPath,true);return new Promise(((e,a)=>o(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 r=this._cloneExecOptions(this.options);if(!r.silent&&r.outStream){r.outStream.write(this._getCommandString(r)+d.EOL)}const i=new ExecState(r,this.toolPath);i.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield c.exists(this.options.cwd))){return a(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const n=this._getSpawnFileName();const p=l.spawn(n,this._getSpawnArgs(r),this._getSpawnOptions(this.options,n));let o="";if(p.stdout){p.stdout.on("data",(e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!r.silent&&r.outStream){r.outStream.write(e)}o=this._processLineBuffer(e,o,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let s="";if(p.stderr){p.stderr.on("data",(e=>{i.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!r.silent&&r.errStream&&r.outStream){const a=r.failOnStdErr?r.errStream:r.outStream;a.write(e)}s=this._processLineBuffer(e,s,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}p.on("error",(e=>{i.processError=e.message;i.processExited=true;i.processClosed=true;i.CheckComplete()}));p.on("exit",(e=>{i.processExitCode=e;i.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);i.CheckComplete()}));p.on("close",(e=>{i.processExitCode=e;i.processExited=true;i.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);i.CheckComplete()}));i.on("done",((r,i)=>{if(o.length>0){this.emit("stdline",o)}if(s.length>0){this.emit("errline",s)}p.removeAllListeners();if(r){a(r)}else{e(i)}}));if(this.options.input){if(!p.stdin){throw new Error("child process missing stdin")}p.stdin.end(this.options.input)}}))))}))}}a.ToolRunner=ToolRunner;function argStringToArray(e){const a=[];let r=false;let i=false;let n="";function append(e){if(i&&e!=='"'){n+="\\"}n+=e;i=false}for(let p=0;p0){a.push(n);n=""}continue}append(o)}if(n.length>0){a.push(n.trim())}return a}a.argStringToArray=argStringToArray;class ExecState extends s.EventEmitter{constructor(e,a){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!a){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=a;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=h.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(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}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const a=`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(a)}e._setResult()}}},8090:function(e,a,r){"use strict";var i=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};Object.defineProperty(a,"__esModule",{value:true});a.hashFiles=a.create=void 0;const n=r(8298);const p=r(2448);function create(e,a){return i(this,void 0,void 0,(function*(){return yield n.DefaultGlobber.create(e,a)}))}a.create=create;function hashFiles(e,a){return i(this,void 0,void 0,(function*(){let r=true;if(a&&typeof a.followSymbolicLinks==="boolean"){r=a.followSymbolicLinks}const i=yield create(e,{followSymbolicLinks:r});return p.hashFiles(i)}))}a.hashFiles=hashFiles},1026:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var p=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};Object.defineProperty(a,"__esModule",{value:true});a.getOptions=void 0;const o=p(r(2186));function getOptions(e){const a={followSymbolicLinks:true,implicitDescendants:true,matchDirectories:true,omitBrokenSymbolicLinks:true};if(e){if(typeof e.followSymbolicLinks==="boolean"){a.followSymbolicLinks=e.followSymbolicLinks;o.debug(`followSymbolicLinks '${a.followSymbolicLinks}'`)}if(typeof e.implicitDescendants==="boolean"){a.implicitDescendants=e.implicitDescendants;o.debug(`implicitDescendants '${a.implicitDescendants}'`)}if(typeof e.matchDirectories==="boolean"){a.matchDirectories=e.matchDirectories;o.debug(`matchDirectories '${a.matchDirectories}'`)}if(typeof e.omitBrokenSymbolicLinks==="boolean"){a.omitBrokenSymbolicLinks=e.omitBrokenSymbolicLinks;o.debug(`omitBrokenSymbolicLinks '${a.omitBrokenSymbolicLinks}'`)}}return a}a.getOptions=getOptions},8298:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var p=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};var o=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};var d=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=e[Symbol.asyncIterator],r;return a?a.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(a){r[a]=e[a]&&function(r){return new Promise((function(i,n){r=e[a](r),settle(i,n,r.done,r.value)}))}}function settle(e,a,r,i){Promise.resolve(i).then((function(a){e({value:a,done:r})}),a)}};var s=this&&this.__await||function(e){return this instanceof s?(this.v=e,this):new s(e)};var l=this&&this.__asyncGenerator||function(e,a,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=r.apply(e,a||[]),n,p=[];return n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n;function verb(e){if(i[e])n[e]=function(a){return new Promise((function(r,i){p.push([e,a,r,i])>1||resume(e,a)}))}}function resume(e,a){try{step(i[e](a))}catch(e){settle(p[0][3],e)}}function step(e){e.value instanceof s?Promise.resolve(e.value.v).then(fulfill,reject):settle(p[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,a){if(e(a),p.shift(),p.length)resume(p[0][0],p[0][1])}};Object.defineProperty(a,"__esModule",{value:true});a.DefaultGlobber=void 0;const u=p(r(2186));const m=p(r(5747));const c=p(r(1026));const h=p(r(5622));const v=p(r(9005));const g=r(1063);const y=r(4536);const w=r(9117);const b=process.platform==="win32";class DefaultGlobber{constructor(e){this.patterns=[];this.searchPaths=[];this.options=c.getOptions(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){var e,a;return o(this,void 0,void 0,(function*(){const r=[];try{for(var i=d(this.globGenerator()),n;n=yield i.next(),!n.done;){const e=n.value;r.push(e)}}catch(a){e={error:a}}finally{try{if(n&&!n.done&&(a=i.return))yield a.call(i)}finally{if(e)throw e.error}}return r}))}globGenerator(){return l(this,arguments,(function*globGenerator_1(){const e=c.getOptions(this.options);const a=[];for(const r of this.patterns){a.push(r);if(e.implicitDescendants&&(r.trailingSeparator||r.segments[r.segments.length-1]!=="**")){a.push(new y.Pattern(r.negate,true,r.segments.concat("**")))}}const r=[];for(const e of v.getSearchPaths(a)){u.debug(`Search path '${e}'`);try{yield s(m.promises.lstat(e))}catch(e){if(e.code==="ENOENT"){continue}throw e}r.unshift(new w.SearchState(e,1))}const i=[];while(r.length){const n=r.pop();const p=v.match(a,n.path);const o=!!p||v.partialMatch(a,n.path);if(!p&&!o){continue}const d=yield s(DefaultGlobber.stat(n,e,i));if(!d){continue}if(d.isDirectory()){if(p&g.MatchKind.Directory&&e.matchDirectories){yield yield s(n.path)}else if(!o){continue}const a=n.level+1;const i=(yield s(m.promises.readdir(n.path))).map((e=>new w.SearchState(h.join(n.path,e),a)));r.push(...i.reverse())}else if(p&g.MatchKind.File){yield yield s(n.path)}}}))}static create(e,a){return o(this,void 0,void 0,(function*(){const r=new DefaultGlobber(a);if(b){e=e.replace(/\r\n/g,"\n");e=e.replace(/\r/g,"\n")}const i=e.split("\n").map((e=>e.trim()));for(const e of i){if(!e||e.startsWith("#")){continue}else{r.patterns.push(new y.Pattern(e))}}r.searchPaths.push(...v.getSearchPaths(r.patterns));return r}))}static stat(e,a,r){return o(this,void 0,void 0,(function*(){let i;if(a.followSymbolicLinks){try{i=yield m.promises.stat(e.path)}catch(r){if(r.code==="ENOENT"){if(a.omitBrokenSymbolicLinks){u.debug(`Broken symlink '${e.path}'`);return undefined}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw r}}else{i=yield m.promises.lstat(e.path)}if(i.isDirectory()&&a.followSymbolicLinks){const a=yield m.promises.realpath(e.path);while(r.length>=e.level){r.pop()}if(r.some((e=>e===a))){u.debug(`Symlink cycle detected for path '${e.path}' and realpath '${a}'`);return undefined}r.push(a)}return i}))}}a.DefaultGlobber=DefaultGlobber},2448:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var p=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};var o=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};var d=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=e[Symbol.asyncIterator],r;return a?a.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(a){r[a]=e[a]&&function(r){return new Promise((function(i,n){r=e[a](r),settle(i,n,r.done,r.value)}))}}function settle(e,a,r,i){Promise.resolve(i).then((function(a){e({value:a,done:r})}),a)}};Object.defineProperty(a,"__esModule",{value:true});a.hashFiles=void 0;const s=p(r(6417));const l=p(r(2186));const u=p(r(5747));const m=p(r(2413));const c=p(r(1669));const h=p(r(5622));function hashFiles(e){var a,r;var i;return o(this,void 0,void 0,(function*(){let n=false;const p=(i=process.env["GITHUB_WORKSPACE"])!==null&&i!==void 0?i:process.cwd();const o=s.createHash("sha256");let v=0;try{for(var g=d(e.globGenerator()),y;y=yield g.next(),!y.done;){const e=y.value;l.debug(e);if(!e.startsWith(`${p}${h.sep}`)){l.debug(`Ignore '${e}' since it is not under GITHUB_WORKSPACE.`);continue}if(u.statSync(e).isDirectory()){l.debug(`Skip directory '${e}'.`);continue}const a=s.createHash("sha256");const r=c.promisify(m.pipeline);yield r(u.createReadStream(e),a);o.write(a.digest());v++;if(!n){n=true}}}catch(e){a={error:e}}finally{try{if(y&&!y.done&&(r=g.return))yield r.call(g)}finally{if(a)throw a.error}}o.end();if(n){l.debug(`Found ${v} files to hash.`);return o.digest("hex")}else{l.debug(`No matches found for glob`);return""}}))}a.hashFiles=hashFiles},1063:(e,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:true});a.MatchKind=void 0;var r;(function(e){e[e["None"]=0]="None";e[e["Directory"]=1]="Directory";e[e["File"]=2]="File";e[e["All"]=3]="All"})(r=a.MatchKind||(a.MatchKind={}))},1849:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var p=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:true});a.safeTrimTrailingSeparator=a.normalizeSeparators=a.hasRoot=a.hasAbsoluteRoot=a.ensureAbsoluteRoot=a.dirname=void 0;const d=p(r(5622));const s=o(r(2357));const l=process.platform==="win32";function dirname(e){e=safeTrimTrailingSeparator(e);if(l&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(e)){return e}let a=d.dirname(e);if(l&&/^\\\\[^\\]+\\[^\\]+\\$/.test(a)){a=safeTrimTrailingSeparator(a)}return a}a.dirname=dirname;function ensureAbsoluteRoot(e,a){s.default(e,`ensureAbsoluteRoot parameter 'root' must not be empty`);s.default(a,`ensureAbsoluteRoot parameter 'itemPath' must not be empty`);if(hasAbsoluteRoot(a)){return a}if(l){if(a.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let e=process.cwd();s.default(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);if(a[0].toUpperCase()===e[0].toUpperCase()){if(a.length===2){return`${a[0]}:\\${e.substr(3)}`}else{if(!e.endsWith("\\")){e+="\\"}return`${a[0]}:\\${e.substr(3)}${a.substr(2)}`}}else{return`${a[0]}:\\${a.substr(2)}`}}else if(normalizeSeparators(a).match(/^\\$|^\\[^\\]/)){const e=process.cwd();s.default(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);return`${e[0]}:\\${a.substr(1)}`}}s.default(hasAbsoluteRoot(e),`ensureAbsoluteRoot parameter 'root' must have an absolute root`);if(e.endsWith("/")||l&&e.endsWith("\\")){}else{e+=d.sep}return e+a}a.ensureAbsoluteRoot=ensureAbsoluteRoot;function hasAbsoluteRoot(e){s.default(e,`hasAbsoluteRoot parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(l){return e.startsWith("\\\\")||/^[A-Z]:\\/i.test(e)}return e.startsWith("/")}a.hasAbsoluteRoot=hasAbsoluteRoot;function hasRoot(e){s.default(e,`isRooted parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(l){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}a.hasRoot=hasRoot;function normalizeSeparators(e){e=e||"";if(l){e=e.replace(/\//g,"\\");const a=/^\\\\+[^\\]/.test(e);return(a?"\\":"")+e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}a.normalizeSeparators=normalizeSeparators;function safeTrimTrailingSeparator(e){if(!e){return""}e=normalizeSeparators(e);if(!e.endsWith(d.sep)){return e}if(e===d.sep){return e}if(l&&/^[A-Z]:\\$/i.test(e)){return e}return e.substr(0,e.length-1)}a.safeTrimTrailingSeparator=safeTrimTrailingSeparator},6836:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var p=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:true});a.Path=void 0;const d=p(r(5622));const s=p(r(1849));const l=o(r(2357));const u=process.platform==="win32";class Path{constructor(e){this.segments=[];if(typeof e==="string"){l.default(e,`Parameter 'itemPath' must not be empty`);e=s.safeTrimTrailingSeparator(e);if(!s.hasRoot(e)){this.segments=e.split(d.sep)}else{let a=e;let r=s.dirname(a);while(r!==a){const e=d.basename(a);this.segments.unshift(e);a=r;r=s.dirname(a)}this.segments.unshift(a)}}else{l.default(e.length>0,`Parameter 'itemPath' must not be an empty array`);for(let a=0;a!e.negate));const a={};for(const r of e){const e=s?r.searchPath.toUpperCase():r.searchPath;a[e]="candidate"}const r=[];for(const i of e){const e=s?i.searchPath.toUpperCase():i.searchPath;if(a[e]==="included"){continue}let n=false;let p=e;let d=o.dirname(p);while(d!==p){if(a[d]){n=true;break}p=d;d=o.dirname(p)}if(!n){r.push(i.searchPath);a[e]="included"}}return r}a.getSearchPaths=getSearchPaths;function match(e,a){let r=d.MatchKind.None;for(const i of e){if(i.negate){r&=~i.match(a)}else{r|=i.match(a)}}return r}a.match=match;function partialMatch(e,a){return e.some((e=>!e.negate&&e.partialMatch(a)))}a.partialMatch=partialMatch},4536:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var p=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:true});a.Pattern=void 0;const d=p(r(2087));const s=p(r(5622));const l=p(r(1849));const u=o(r(2357));const m=r(3973);const c=r(1063);const h=r(6836);const v=process.platform==="win32";class Pattern{constructor(e,a=false,r,i){this.negate=false;let n;if(typeof e==="string"){n=e.trim()}else{r=r||[];u.default(r.length,`Parameter 'segments' must not empty`);const a=Pattern.getLiteral(r[0]);u.default(a&&l.hasAbsoluteRoot(a),`Parameter 'segments' first element must be a root path`);n=new h.Path(r).toString().trim();if(e){n=`!${n}`}}while(n.startsWith("!")){this.negate=!this.negate;n=n.substr(1).trim()}n=Pattern.fixupPattern(n,i);this.segments=new h.Path(n).segments;this.trailingSeparator=l.normalizeSeparators(n).endsWith(s.sep);n=l.safeTrimTrailingSeparator(n);let p=false;const o=this.segments.map((e=>Pattern.getLiteral(e))).filter((e=>!p&&!(p=e==="")));this.searchPath=new h.Path(o).toString();this.rootRegExp=new RegExp(Pattern.regExpEscape(o[0]),v?"i":"");this.isImplicitPattern=a;const d={dot:true,nobrace:true,nocase:v,nocomment:true,noext:true,nonegate:true};n=v?n.replace(/\\/g,"/"):n;this.minimatch=new m.Minimatch(n,d)}match(e){if(this.segments[this.segments.length-1]==="**"){e=l.normalizeSeparators(e);if(!e.endsWith(s.sep)&&this.isImplicitPattern===false){e=`${e}${s.sep}`}}else{e=l.safeTrimTrailingSeparator(e)}if(this.minimatch.match(e)){return this.trailingSeparator?c.MatchKind.Directory:c.MatchKind.All}return c.MatchKind.None}partialMatch(e){e=l.safeTrimTrailingSeparator(e);if(l.dirname(e)===e){return this.rootRegExp.test(e)}return this.minimatch.matchOne(e.split(v?/\\+/:/\/+/),this.minimatch.set[0],true)}static globEscape(e){return(v?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,a){u.default(e,"pattern cannot be empty");const r=new h.Path(e).segments.map((e=>Pattern.getLiteral(e)));u.default(r.every(((e,a)=>(e!=="."||a===0)&&e!=="..")),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`);u.default(!l.hasRoot(e)||r[0],`Invalid pattern '${e}'. Root segment must not contain globs.`);e=l.normalizeSeparators(e);if(e==="."||e.startsWith(`.${s.sep}`)){e=Pattern.globEscape(process.cwd())+e.substr(1)}else if(e==="~"||e.startsWith(`~${s.sep}`)){a=a||d.homedir();u.default(a,"Unable to determine HOME directory");u.default(l.hasAbsoluteRoot(a),`Expected HOME directory to be a rooted path. Actual '${a}'`);e=Pattern.globEscape(a)+e.substr(1)}else if(v&&(e.match(/^[A-Z]:$/i)||e.match(/^[A-Z]:[^\\]/i))){let a=l.ensureAbsoluteRoot("C:\\dummy-root",e.substr(0,2));if(e.length>2&&!a.endsWith("\\")){a+="\\"}e=Pattern.globEscape(a)+e.substr(2)}else if(v&&(e==="\\"||e.match(/^\\[^\\]/))){let a=l.ensureAbsoluteRoot("C:\\dummy-root","\\");if(!a.endsWith("\\")){a+="\\"}e=Pattern.globEscape(a)+e.substr(1)}else{e=l.ensureAbsoluteRoot(Pattern.globEscape(process.cwd()),e)}return l.normalizeSeparators(e)}static getLiteral(e){let a="";for(let r=0;r=0){if(i.length>1){return""}if(i){a+=i;r=n;continue}}}a+=i}return a}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,"\\$&")}}a.Pattern=Pattern},9117:(e,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:true});a.SearchState=void 0;class SearchState{constructor(e,a){this.path=e;this.level=a}}a.SearchState=SearchState},3702:(e,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:true});class BasicCredentialHandler{constructor(e,a){this.username=e;this.password=a}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from(this.username+":"+this.password).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,a,r){return null}}a.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Bearer "+this.token}canHandleAuthentication(e){return false}handleAuthentication(e,a,r){return null}}a.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from("PAT:"+this.token).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,a,r){return null}}a.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},9925:(e,a,r)=>{"use strict";Object.defineProperty(a,"__esModule",{value:true});const i=r(8605);const n=r(7211);const p=r(6443);let o;var d;(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=a.HttpCodes||(a.HttpCodes={}));var s;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(s=a.Headers||(a.Headers={}));var l;(function(e){e["ApplicationJson"]="application/json"})(l=a.MediaTypes||(a.MediaTypes={}));function getProxyUrl(e){let a=p.getProxyUrl(new URL(e));return a?a.href:""}a.getProxyUrl=getProxyUrl;const u=[d.MovedPermanently,d.ResourceMoved,d.SeeOther,d.TemporaryRedirect,d.PermanentRedirect];const m=[d.BadGateway,d.ServiceUnavailable,d.GatewayTimeout];const c=["OPTIONS","GET","DELETE","HEAD"];const h=10;const v=5;class HttpClientError extends Error{constructor(e,a){super(e);this.name="HttpClientError";this.statusCode=a;Object.setPrototypeOf(this,HttpClientError.prototype)}}a.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return new Promise((async(e,a)=>{let r=Buffer.alloc(0);this.message.on("data",(e=>{r=Buffer.concat([r,e])}));this.message.on("end",(()=>{e(r.toString())}))}))}}a.HttpClientResponse=HttpClientResponse;function isHttps(e){let a=new URL(e);return a.protocol==="https:"}a.isHttps=isHttps;class HttpClient{constructor(e,a,r){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=a||[];this.requestOptions=r;if(r){if(r.ignoreSslError!=null){this._ignoreSslError=r.ignoreSslError}this._socketTimeout=r.socketTimeout;if(r.allowRedirects!=null){this._allowRedirects=r.allowRedirects}if(r.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=r.allowRedirectDowngrade}if(r.maxRedirects!=null){this._maxRedirects=Math.max(r.maxRedirects,0)}if(r.keepAlive!=null){this._keepAlive=r.keepAlive}if(r.allowRetries!=null){this._allowRetries=r.allowRetries}if(r.maxRetries!=null){this._maxRetries=r.maxRetries}}}options(e,a){return this.request("OPTIONS",e,null,a||{})}get(e,a){return this.request("GET",e,null,a||{})}del(e,a){return this.request("DELETE",e,null,a||{})}post(e,a,r){return this.request("POST",e,a,r||{})}patch(e,a,r){return this.request("PATCH",e,a,r||{})}put(e,a,r){return this.request("PUT",e,a,r||{})}head(e,a){return this.request("HEAD",e,null,a||{})}sendStream(e,a,r,i){return this.request(e,a,r,i)}async getJson(e,a={}){a[s.Accept]=this._getExistingOrDefaultHeader(a,s.Accept,l.ApplicationJson);let r=await this.get(e,a);return this._processResponse(r,this.requestOptions)}async postJson(e,a,r={}){let i=JSON.stringify(a,null,2);r[s.Accept]=this._getExistingOrDefaultHeader(r,s.Accept,l.ApplicationJson);r[s.ContentType]=this._getExistingOrDefaultHeader(r,s.ContentType,l.ApplicationJson);let n=await this.post(e,i,r);return this._processResponse(n,this.requestOptions)}async putJson(e,a,r={}){let i=JSON.stringify(a,null,2);r[s.Accept]=this._getExistingOrDefaultHeader(r,s.Accept,l.ApplicationJson);r[s.ContentType]=this._getExistingOrDefaultHeader(r,s.ContentType,l.ApplicationJson);let n=await this.put(e,i,r);return this._processResponse(n,this.requestOptions)}async patchJson(e,a,r={}){let i=JSON.stringify(a,null,2);r[s.Accept]=this._getExistingOrDefaultHeader(r,s.Accept,l.ApplicationJson);r[s.ContentType]=this._getExistingOrDefaultHeader(r,s.ContentType,l.ApplicationJson);let n=await this.patch(e,i,r);return this._processResponse(n,this.requestOptions)}async request(e,a,r,i){if(this._disposed){throw new Error("Client has already been disposed.")}let n=new URL(a);let p=this._prepareRequest(e,n,i);let o=this._allowRetries&&c.indexOf(e)!=-1?this._maxRetries+1:1;let s=0;let l;while(s0){const o=l.message.headers["location"];if(!o){break}let d=new URL(o);if(n.protocol=="https:"&&n.protocol!=d.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}await l.readBody();if(d.hostname!==n.hostname){for(let e in i){if(e.toLowerCase()==="authorization"){delete i[e]}}}p=this._prepareRequest(e,d,i);l=await this.requestRaw(p,r);a--}if(m.indexOf(l.message.statusCode)==-1){return l}s+=1;if(s{let callbackForResult=function(e,a){if(e){i(e)}r(a)};this.requestRawWithCallback(e,a,callbackForResult)}))}requestRawWithCallback(e,a,r){let i;if(typeof a==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(a,"utf8")}let n=false;let handleResult=(e,a)=>{if(!n){n=true;r(e,a)}};let p=e.httpModule.request(e.options,(e=>{let a=new HttpClientResponse(e);handleResult(null,a)}));p.on("socket",(e=>{i=e}));p.setTimeout(this._socketTimeout||3*6e4,(()=>{if(i){i.end()}handleResult(new Error("Request timeout: "+e.options.path),null)}));p.on("error",(function(e){handleResult(e,null)}));if(a&&typeof a==="string"){p.write(a,"utf8")}if(a&&typeof a!=="string"){a.on("close",(function(){p.end()}));a.pipe(p)}else{p.end()}}getAgent(e){let a=new URL(e);return this._getAgent(a)}_prepareRequest(e,a,r){const p={};p.parsedUrl=a;const o=p.parsedUrl.protocol==="https:";p.httpModule=o?n:i;const d=o?443:80;p.options={};p.options.host=p.parsedUrl.hostname;p.options.port=p.parsedUrl.port?parseInt(p.parsedUrl.port):d;p.options.path=(p.parsedUrl.pathname||"")+(p.parsedUrl.search||"");p.options.method=e;p.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){p.options.headers["user-agent"]=this.userAgent}p.options.agent=this._getAgent(p.parsedUrl);if(this.handlers){this.handlers.forEach((e=>{e.prepareRequest(p.options)}))}return p}_mergeHeaders(e){const lowercaseKeys=e=>Object.keys(e).reduce(((a,r)=>(a[r.toLowerCase()]=e[r],a)),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,a,r){const lowercaseKeys=e=>Object.keys(e).reduce(((a,r)=>(a[r.toLowerCase()]=e[r],a)),{});let i;if(this.requestOptions&&this.requestOptions.headers){i=lowercaseKeys(this.requestOptions.headers)[a]}return e[a]||i||r}_getAgent(e){let a;let d=p.getProxyUrl(e);let s=d&&d.hostname;if(this._keepAlive&&s){a=this._proxyAgent}if(this._keepAlive&&!s){a=this._agent}if(!!a){return a}const l=e.protocol==="https:";let u=100;if(!!this.requestOptions){u=this.requestOptions.maxSockets||i.globalAgent.maxSockets}if(s){if(!o){o=r(4294)}const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{...(d.username||d.password)&&{proxyAuth:`${d.username}:${d.password}`},host:d.hostname,port:d.port}};let i;const n=d.protocol==="https:";if(l){i=n?o.httpsOverHttps:o.httpsOverHttp}else{i=n?o.httpOverHttps:o.httpOverHttp}a=i(e);this._proxyAgent=a}if(this._keepAlive&&!a){const e={keepAlive:this._keepAlive,maxSockets:u};a=l?new n.Agent(e):new i.Agent(e);this._agent=a}if(!a){a=l?n.globalAgent:i.globalAgent}if(l&&this._ignoreSslError){a.options=Object.assign(a.options||{},{rejectUnauthorized:false})}return a}_performExponentialBackoff(e){e=Math.min(h,e);const a=v*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),a)))}static dateTimeDeserializer(e,a){if(typeof a==="string"){let e=new Date(a);if(!isNaN(e.valueOf())){return e}}return a}async _processResponse(e,a){return new Promise((async(r,i)=>{const n=e.message.statusCode;const p={statusCode:n,result:null,headers:{}};if(n==d.NotFound){r(p)}let o;let s;try{s=await e.readBody();if(s&&s.length>0){if(a&&a.deserializeDates){o=JSON.parse(s,HttpClient.dateTimeDeserializer)}else{o=JSON.parse(s)}p.result=o}p.headers=e.message.headers}catch(e){}if(n>299){let e;if(o&&o.message){e=o.message}else if(s&&s.length>0){e=s}else{e="Failed request: ("+n+")"}let a=new HttpClientError(e,n);a.result=p.result;i(a)}else{r(p)}}))}}a.HttpClient=HttpClient},6443:(e,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:true});function getProxyUrl(e){let a=e.protocol==="https:";let r;if(checkBypass(e)){return r}let i;if(a){i=process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{i=process.env["http_proxy"]||process.env["HTTP_PROXY"]}if(i){r=new URL(i)}return r}a.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}let a=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!a){return false}let r;if(e.port){r=Number(e.port)}else if(e.protocol==="http:"){r=80}else if(e.protocol==="https:"){r=443}let i=[e.hostname.toUpperCase()];if(typeof r==="number"){i.push(`${i[0]}:${r}`)}for(let e of a.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(i.some((a=>a===e))){return true}}return false}a.checkBypass=checkBypass},1962:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var p=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};var o=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};var d;Object.defineProperty(a,"__esModule",{value:true});a.getCmdPath=a.tryGetExecutablePath=a.isRooted=a.isDirectory=a.exists=a.IS_WINDOWS=a.unlink=a.symlink=a.stat=a.rmdir=a.rename=a.readlink=a.readdir=a.mkdir=a.lstat=a.copyFile=a.chmod=void 0;const s=p(r(5747));const l=p(r(5622));d=s.promises,a.chmod=d.chmod,a.copyFile=d.copyFile,a.lstat=d.lstat,a.mkdir=d.mkdir,a.readdir=d.readdir,a.readlink=d.readlink,a.rename=d.rename,a.rmdir=d.rmdir,a.stat=d.stat,a.symlink=d.symlink,a.unlink=d.unlink;a.IS_WINDOWS=process.platform==="win32";function exists(e){return o(this,void 0,void 0,(function*(){try{yield a.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}a.exists=exists;function isDirectory(e,r=false){return o(this,void 0,void 0,(function*(){const i=r?yield a.stat(e):yield a.lstat(e);return i.isDirectory()}))}a.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(a.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}a.isRooted=isRooted;function tryGetExecutablePath(e,r){return o(this,void 0,void 0,(function*(){let i=undefined;try{i=yield a.stat(e)}catch(a){if(a.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${a}`)}}if(i&&i.isFile()){if(a.IS_WINDOWS){const a=l.extname(e).toUpperCase();if(r.some((e=>e.toUpperCase()===a))){return e}}else{if(isUnixExecutable(i)){return e}}}const n=e;for(const p of r){e=n+p;i=undefined;try{i=yield a.stat(e)}catch(a){if(a.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${a}`)}}if(i&&i.isFile()){if(a.IS_WINDOWS){try{const r=l.dirname(e);const i=l.basename(e).toUpperCase();for(const n of yield a.readdir(r)){if(i===n.toUpperCase()){e=l.join(r,n);break}}}catch(a){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${a}`)}return e}else{if(isUnixExecutable(i)){return e}}}}return""}))}a.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(a.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}function getCmdPath(){var e;return(e=process.env["COMSPEC"])!==null&&e!==void 0?e:`cmd.exe`}a.getCmdPath=getCmdPath},7436:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var p=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};var o=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};Object.defineProperty(a,"__esModule",{value:true});a.findInPath=a.which=a.mkdirP=a.rmRF=a.mv=a.cp=void 0;const d=r(2357);const s=p(r(3129));const l=p(r(5622));const u=r(1669);const m=p(r(1962));const c=u.promisify(s.exec);const h=u.promisify(s.execFile);function cp(e,a,r={}){return o(this,void 0,void 0,(function*(){const{force:i,recursive:n,copySourceDirectory:p}=readCopyOptions(r);const o=(yield m.exists(a))?yield m.stat(a):null;if(o&&o.isFile()&&!i){return}const d=o&&o.isDirectory()&&p?l.join(a,l.basename(e)):a;if(!(yield m.exists(e))){throw new Error(`no such file or directory: ${e}`)}const s=yield m.stat(e);if(s.isDirectory()){if(!n){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,d,0,i)}}else{if(l.relative(e,d)===""){throw new Error(`'${d}' and '${e}' are the same file`)}yield copyFile(e,d,i)}}))}a.cp=cp;function mv(e,a,r={}){return o(this,void 0,void 0,(function*(){if(yield m.exists(a)){let i=true;if(yield m.isDirectory(a)){a=l.join(a,l.basename(e));i=yield m.exists(a)}if(i){if(r.force==null||r.force){yield rmRF(a)}else{throw new Error("Destination already exists")}}}yield mkdirP(l.dirname(a));yield m.rename(e,a)}))}a.mv=mv;function rmRF(e){return o(this,void 0,void 0,(function*(){if(m.IS_WINDOWS){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}try{const a=m.getCmdPath();if(yield m.isDirectory(e,true)){yield c(`${a} /s /c "rd /s /q "%inputPath%""`,{env:{inputPath:e}})}else{yield c(`${a} /s /c "del /f /a "%inputPath%""`,{env:{inputPath:e}})}}catch(e){if(e.code!=="ENOENT")throw e}try{yield m.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let a=false;try{a=yield m.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(a){yield h(`rm`,[`-rf`,`${e}`])}else{yield m.unlink(e)}}}))}a.rmRF=rmRF;function mkdirP(e){return o(this,void 0,void 0,(function*(){d.ok(e,"a path argument must be provided");yield m.mkdir(e,{recursive:true})}))}a.mkdirP=mkdirP;function which(e,a){return o(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(a){const a=yield which(e,false);if(!a){if(m.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. 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.`)}else{throw new Error(`Unable to locate executable file: ${e}. 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 r=yield findInPath(e);if(r&&r.length>0){return r[0]}return""}))}a.which=which;function findInPath(e){return o(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const a=[];if(m.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(l.delimiter)){if(e){a.push(e)}}}if(m.isRooted(e)){const r=yield m.tryGetExecutablePath(e,a);if(r){return[r]}return[]}if(e.includes(l.sep)){return[]}const r=[];if(process.env.PATH){for(const e of process.env.PATH.split(l.delimiter)){if(e){r.push(e)}}}const i=[];for(const n of r){const r=yield m.tryGetExecutablePath(l.join(n,e),a);if(r){i.push(r)}}return i}))}a.findInPath=findInPath;function readCopyOptions(e){const a=e.force==null?true:e.force;const r=Boolean(e.recursive);const i=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:a,recursive:r,copySourceDirectory:i}}function cpDirRecursive(e,a,r,i){return o(this,void 0,void 0,(function*(){if(r>=255)return;r++;yield mkdirP(a);const n=yield m.readdir(e);for(const p of n){const n=`${e}/${p}`;const o=`${a}/${p}`;const d=yield m.lstat(n);if(d.isDirectory()){yield cpDirRecursive(n,o,r,i)}else{yield copyFile(n,o,i)}}yield m.chmod(a,(yield m.stat(e)).mode)}))}function copyFile(e,a,r){return o(this,void 0,void 0,(function*(){if((yield m.lstat(e)).isSymbolicLink()){try{yield m.lstat(a);yield m.unlink(a)}catch(e){if(e.code==="EPERM"){yield m.chmod(a,"0666");yield m.unlink(a)}}const r=yield m.readlink(e);yield m.symlink(r,a,m.IS_WINDOWS?"junction":null)}else if(!(yield m.exists(a))||r){yield m.copyFile(e,a)}}))}},9417:e=>{"use strict";e.exports=balanced;function balanced(e,a,r){if(e instanceof RegExp)e=maybeMatch(e,r);if(a instanceof RegExp)a=maybeMatch(a,r);var i=range(e,a,r);return i&&{start:i[0],end:i[1],pre:r.slice(0,i[0]),body:r.slice(i[0]+e.length,i[1]),post:r.slice(i[1]+a.length)}}function maybeMatch(e,a){var r=a.match(e);return r?r[0]:null}balanced.range=range;function range(e,a,r){var i,n,p,o,d;var s=r.indexOf(e);var l=r.indexOf(a,s+1);var u=s;if(s>=0&&l>0){if(e===a){return[s,l]}i=[];p=r.length;while(u>=0&&!d){if(u==s){i.push(u);s=r.indexOf(e,u+1)}else if(i.length==1){d=[i.pop(),l]}else{n=i.pop();if(n=0?s:l}if(i.length){d=[p,o]}}return d}},7817:(e,a,r)=>{var i=r(5026);var n="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";var p="0123456789ABCDEFGHIJKLMNOPQRSTUV";var o="0123456789ABCDEFGHJKMNPQRSTVWXYZ";e.exports=function base32Encode(e,a,r){r=r||{};var d,s;switch(a){case"RFC3548":case"RFC4648":d=n;s=true;break;case"RFC4648-HEX":d=p;s=true;break;case"Crockford":d=o;s=false;break;default:throw new Error("Unknown base32 variant: "+a)}var l=r.padding!==undefined?r.padding:s;var u=i(e);var m=0;var c=0;var h="";for(var v=0;v=5){h+=d[c>>>m-5&31];m-=5}}if(m>0){h+=d[c<<5-m&31]}if(l){while(h.length%8!==0){h+="="}}return h}},6463:(e,a)=>{"use strict";a.byteLength=byteLength;a.toByteArray=toByteArray;a.fromByteArray=fromByteArray;var r=[];var i=[];var n=typeof Uint8Array!=="undefined"?Uint8Array:Array;var p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var o=0,d=p.length;o0){throw new Error("Invalid string. Length must be a multiple of 4")}var r=e.indexOf("=");if(r===-1)r=a;var i=r===a?0:4-r%4;return[r,i]}function byteLength(e){var a=getLens(e);var r=a[0];var i=a[1];return(r+i)*3/4-i}function _byteLength(e,a,r){return(a+r)*3/4-r}function toByteArray(e){var a;var r=getLens(e);var p=r[0];var o=r[1];var d=new n(_byteLength(e,p,o));var s=0;var l=o>0?p-4:p;var u;for(u=0;u>16&255;d[s++]=a>>8&255;d[s++]=a&255}if(o===2){a=i[e.charCodeAt(u)]<<2|i[e.charCodeAt(u+1)]>>4;d[s++]=a&255}if(o===1){a=i[e.charCodeAt(u)]<<10|i[e.charCodeAt(u+1)]<<4|i[e.charCodeAt(u+2)]>>2;d[s++]=a>>8&255;d[s++]=a&255}return d}function tripletToBase64(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[e&63]}function encodeChunk(e,a,r){var i;var n=[];for(var p=a;ps?s:d+o))}if(n===1){a=e[i-1];p.push(r[a>>2]+r[a<<4&63]+"==")}else if(n===2){a=(e[i-2]<<8)+e[i-1];p.push(r[a>>10]+r[a>>4&63]+r[a<<2&63]+"=")}return p.join("")}},1575:(e,a,r)=>{e=r.nmd(e);var i=function(e){"use strict";var a=1e7,r=7,n=9007199254740992,p=smallToArray(n),o="0123456789abcdefghijklmnopqrstuvwxyz";var d=typeof BigInt==="function";function Integer(e,a,r,i){if(typeof e==="undefined")return Integer[0];if(typeof a!=="undefined")return+a===10&&!r?parseValue(e):parseBase(e,a,r,i);return parseValue(e)}function BigInteger(e,a){this.value=e;this.sign=a;this.isSmall=false}BigInteger.prototype=Object.create(Integer.prototype);function SmallInteger(e){this.value=e;this.sign=e<0;this.isSmall=true}SmallInteger.prototype=Object.create(Integer.prototype);function NativeBigInt(e){this.value=e}NativeBigInt.prototype=Object.create(Integer.prototype);function isPrecise(e){return-n0)return Math.floor(e);return Math.ceil(e)}function add(e,r){var i=e.length,n=r.length,p=new Array(i),o=0,d=a,s,l;for(l=0;l=d?1:0;p[l]=s-o*d}while(l0)p.push(o);return p}function addAny(e,a){if(e.length>=a.length)return add(e,a);return add(a,e)}function addSmall(e,r){var i=e.length,n=new Array(i),p=a,o,d;for(d=0;d0){n[d++]=r%p;r=Math.floor(r/p)}return n}BigInteger.prototype.add=function(e){var a=parseValue(e);if(this.sign!==a.sign){return this.subtract(a.negate())}var r=this.value,i=a.value;if(a.isSmall){return new BigInteger(addSmall(r,Math.abs(i)),this.sign)}return new BigInteger(addAny(r,i),this.sign)};BigInteger.prototype.plus=BigInteger.prototype.add;SmallInteger.prototype.add=function(e){var a=parseValue(e);var r=this.value;if(r<0!==a.sign){return this.subtract(a.negate())}var i=a.value;if(a.isSmall){if(isPrecise(r+i))return new SmallInteger(r+i);i=smallToArray(Math.abs(i))}return new BigInteger(addSmall(i,Math.abs(r)),r<0)};SmallInteger.prototype.plus=SmallInteger.prototype.add;NativeBigInt.prototype.add=function(e){return new NativeBigInt(this.value+parseValue(e).value)};NativeBigInt.prototype.plus=NativeBigInt.prototype.add;function subtract(e,r){var i=e.length,n=r.length,p=new Array(i),o=0,d=a,s,l;for(s=0;s=0){i=subtract(e,a)}else{i=subtract(a,e);r=!r}i=arrayToSmall(i);if(typeof i==="number"){if(r)i=-i;return new SmallInteger(i)}return new BigInteger(i,r)}function subtractSmall(e,r,i){var n=e.length,p=new Array(n),o=-r,d=a,s,l;for(s=0;s=0)};SmallInteger.prototype.minus=SmallInteger.prototype.subtract;NativeBigInt.prototype.subtract=function(e){return new NativeBigInt(this.value-parseValue(e).value)};NativeBigInt.prototype.minus=NativeBigInt.prototype.subtract;BigInteger.prototype.negate=function(){return new BigInteger(this.value,!this.sign)};SmallInteger.prototype.negate=function(){var e=this.sign;var a=new SmallInteger(-this.value);a.sign=!e;return a};NativeBigInt.prototype.negate=function(){return new NativeBigInt(-this.value)};BigInteger.prototype.abs=function(){return new BigInteger(this.value,false)};SmallInteger.prototype.abs=function(){return new SmallInteger(Math.abs(this.value))};NativeBigInt.prototype.abs=function(){return new NativeBigInt(this.value>=0?this.value:-this.value)};function multiplyLong(e,r){var i=e.length,n=r.length,p=i+n,o=createArray(p),d=a,s,l,u,m,c;for(u=0;u0){n[s++]=o%p;o=Math.floor(o/p)}return n}function shiftLeft(e,a){var r=[];while(a-- >0)r.push(0);return r.concat(e)}function multiplyKaratsuba(e,a){var r=Math.max(e.length,a.length);if(r<=30)return multiplyLong(e,a);r=Math.ceil(r/2);var i=e.slice(r),n=e.slice(0,r),p=a.slice(r),o=a.slice(0,r);var d=multiplyKaratsuba(n,o),s=multiplyKaratsuba(i,p),l=multiplyKaratsuba(addAny(n,i),addAny(o,p));var u=addAny(addAny(d,shiftLeft(subtract(subtract(l,d),s),r)),shiftLeft(s,2*r));trim(u);return u}function useKaratsuba(e,a){return-.012*e-.012*a+15e-6*e*a>0}BigInteger.prototype.multiply=function(e){var r=parseValue(e),i=this.value,n=r.value,p=this.sign!==r.sign,o;if(r.isSmall){if(n===0)return Integer[0];if(n===1)return this;if(n===-1)return this.negate();o=Math.abs(n);if(o=0;c--){m=p-1;if(l[c+n]!==d){m=Math.floor((l[c+n]*p+l[c+n-1])/d)}h=0;v=0;y=u.length;for(g=0;gn){u=(u+1)*d}s=Math.ceil(u/m);do{c=multiplySmall(r,s);if(compareAbs(c,o)<=0)break;s--}while(s);p.push(s);o=subtract(o,c)}p.reverse();return[arrayToSmall(p),arrayToSmall(o)]}function divModSmall(e,r){var i=e.length,n=createArray(i),p=a,o,d,s,l;s=0;for(o=i-1;o>=0;--o){l=s*p+e[o];d=truncate(l/r);s=l-d*r;n[o]=d|0}return[n,s|0]}function divModAny(e,r){var i,n=parseValue(r);if(d){return[new NativeBigInt(e.value/n.value),new NativeBigInt(e.value%n.value)]}var p=e.value,o=n.value;var s;if(o===0)throw new Error("Cannot divide by zero");if(e.isSmall){if(n.isSmall){return[new SmallInteger(truncate(p/o)),new SmallInteger(p%o)]}return[Integer[0],e]}if(n.isSmall){if(o===1)return[e,Integer[0]];if(o==-1)return[e.negate(),Integer[0]];var l=Math.abs(o);if(la.length?1:-1}for(var r=e.length-1;r>=0;r--){if(e[r]!==a[r])return e[r]>a[r]?1:-1}return 0}BigInteger.prototype.compareAbs=function(e){var a=parseValue(e),r=this.value,i=a.value;if(a.isSmall)return 1;return compareAbs(r,i)};SmallInteger.prototype.compareAbs=function(e){var a=parseValue(e),r=Math.abs(this.value),i=a.value;if(a.isSmall){i=Math.abs(i);return r===i?0:r>i?1:-1}return-1};NativeBigInt.prototype.compareAbs=function(e){var a=this.value;var r=parseValue(e).value;a=a>=0?a:-a;r=r>=0?r:-r;return a===r?0:a>r?1:-1};BigInteger.prototype.compare=function(e){if(e===Infinity){return-1}if(e===-Infinity){return 1}var a=parseValue(e),r=this.value,i=a.value;if(this.sign!==a.sign){return a.sign?1:-1}if(a.isSmall){return this.sign?-1:1}return compareAbs(r,i)*(this.sign?-1:1)};BigInteger.prototype.compareTo=BigInteger.prototype.compare;SmallInteger.prototype.compare=function(e){if(e===Infinity){return-1}if(e===-Infinity){return 1}var a=parseValue(e),r=this.value,i=a.value;if(a.isSmall){return r==i?0:r>i?1:-1}if(r<0!==a.sign){return r<0?-1:1}return r<0?1:-1};SmallInteger.prototype.compareTo=SmallInteger.prototype.compare;NativeBigInt.prototype.compare=function(e){if(e===Infinity){return-1}if(e===-Infinity){return 1}var a=this.value;var r=parseValue(e).value;return a===r?0:a>r?1:-1};NativeBigInt.prototype.compareTo=NativeBigInt.prototype.compare;BigInteger.prototype.equals=function(e){return this.compare(e)===0};NativeBigInt.prototype.eq=NativeBigInt.prototype.equals=SmallInteger.prototype.eq=SmallInteger.prototype.equals=BigInteger.prototype.eq=BigInteger.prototype.equals;BigInteger.prototype.notEquals=function(e){return this.compare(e)!==0};NativeBigInt.prototype.neq=NativeBigInt.prototype.notEquals=SmallInteger.prototype.neq=SmallInteger.prototype.notEquals=BigInteger.prototype.neq=BigInteger.prototype.notEquals;BigInteger.prototype.greater=function(e){return this.compare(e)>0};NativeBigInt.prototype.gt=NativeBigInt.prototype.greater=SmallInteger.prototype.gt=SmallInteger.prototype.greater=BigInteger.prototype.gt=BigInteger.prototype.greater;BigInteger.prototype.lesser=function(e){return this.compare(e)<0};NativeBigInt.prototype.lt=NativeBigInt.prototype.lesser=SmallInteger.prototype.lt=SmallInteger.prototype.lesser=BigInteger.prototype.lt=BigInteger.prototype.lesser;BigInteger.prototype.greaterOrEquals=function(e){return this.compare(e)>=0};NativeBigInt.prototype.geq=NativeBigInt.prototype.greaterOrEquals=SmallInteger.prototype.geq=SmallInteger.prototype.greaterOrEquals=BigInteger.prototype.geq=BigInteger.prototype.greaterOrEquals;BigInteger.prototype.lesserOrEquals=function(e){return this.compare(e)<=0};NativeBigInt.prototype.leq=NativeBigInt.prototype.lesserOrEquals=SmallInteger.prototype.leq=SmallInteger.prototype.lesserOrEquals=BigInteger.prototype.leq=BigInteger.prototype.lesserOrEquals;BigInteger.prototype.isEven=function(){return(this.value[0]&1)===0};SmallInteger.prototype.isEven=function(){return(this.value&1)===0};NativeBigInt.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)};BigInteger.prototype.isOdd=function(){return(this.value[0]&1)===1};SmallInteger.prototype.isOdd=function(){return(this.value&1)===1};NativeBigInt.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)};BigInteger.prototype.isPositive=function(){return!this.sign};SmallInteger.prototype.isPositive=function(){return this.value>0};NativeBigInt.prototype.isPositive=SmallInteger.prototype.isPositive;BigInteger.prototype.isNegative=function(){return this.sign};SmallInteger.prototype.isNegative=function(){return this.value<0};NativeBigInt.prototype.isNegative=SmallInteger.prototype.isNegative;BigInteger.prototype.isUnit=function(){return false};SmallInteger.prototype.isUnit=function(){return Math.abs(this.value)===1};NativeBigInt.prototype.isUnit=function(){return this.abs().value===BigInt(1)};BigInteger.prototype.isZero=function(){return false};SmallInteger.prototype.isZero=function(){return this.value===0};NativeBigInt.prototype.isZero=function(){return this.value===BigInt(0)};BigInteger.prototype.isDivisibleBy=function(e){var a=parseValue(e);if(a.isZero())return false;if(a.isUnit())return true;if(a.compareAbs(2)===0)return this.isEven();return this.mod(a).isZero()};NativeBigInt.prototype.isDivisibleBy=SmallInteger.prototype.isDivisibleBy=BigInteger.prototype.isDivisibleBy;function isBasicPrime(e){var a=e.abs();if(a.isUnit())return false;if(a.equals(2)||a.equals(3)||a.equals(5))return true;if(a.isEven()||a.isDivisibleBy(3)||a.isDivisibleBy(5))return false;if(a.lesser(49))return true}function millerRabinTest(e,a){var r=e.prev(),n=r,p=0,o,d,s,l;while(n.isEven())n=n.divide(2),p++;e:for(s=0;s-n)return new SmallInteger(e-1);return new BigInteger(p,true)};NativeBigInt.prototype.prev=function(){return new NativeBigInt(this.value-BigInt(1))};var s=[1];while(2*s[s.length-1]<=a)s.push(2*s[s.length-1]);var l=s.length,u=s[l-1];function shift_isSmall(e){return Math.abs(e)<=a}BigInteger.prototype.shiftLeft=function(e){var a=parseValue(e).toJSNumber();if(!shift_isSmall(a)){throw new Error(String(a)+" is too large for shifting.")}if(a<0)return this.shiftRight(-a);var r=this;if(r.isZero())return r;while(a>=l){r=r.multiply(u);a-=l-1}return r.multiply(s[a])};NativeBigInt.prototype.shiftLeft=SmallInteger.prototype.shiftLeft=BigInteger.prototype.shiftLeft;BigInteger.prototype.shiftRight=function(e){var a;var r=parseValue(e).toJSNumber();if(!shift_isSmall(r)){throw new Error(String(r)+" is too large for shifting.")}if(r<0)return this.shiftLeft(-r);var i=this;while(r>=l){if(i.isZero()||i.isNegative()&&i.isUnit())return i;a=divModAny(i,u);i=a[1].isNegative()?a[0].prev():a[0];r-=l-1}a=divModAny(i,s[r]);return a[1].isNegative()?a[0].prev():a[0]};NativeBigInt.prototype.shiftRight=SmallInteger.prototype.shiftRight=BigInteger.prototype.shiftRight;function bitwise(e,a,r){a=parseValue(a);var n=e.isNegative(),p=a.isNegative();var o=n?e.not():e,d=p?a.not():a;var s=0,l=0;var m=null,c=null;var h=[];while(!o.isZero()||!d.isZero()){m=divModAny(o,u);s=m[1].toJSNumber();if(n){s=u-1-s}c=divModAny(d,u);l=c[1].toJSNumber();if(p){l=u-1-l}o=m[0];d=c[0];h.push(r(s,l))}var v=r(n?1:0,p?1:0)!==0?i(-1):i(0);for(var g=h.length-1;g>=0;g-=1){v=v.multiply(u).add(i(h[g]))}return v}BigInteger.prototype.not=function(){return this.negate().prev()};NativeBigInt.prototype.not=SmallInteger.prototype.not=BigInteger.prototype.not;BigInteger.prototype.and=function(e){return bitwise(this,e,(function(e,a){return e&a}))};NativeBigInt.prototype.and=SmallInteger.prototype.and=BigInteger.prototype.and;BigInteger.prototype.or=function(e){return bitwise(this,e,(function(e,a){return e|a}))};NativeBigInt.prototype.or=SmallInteger.prototype.or=BigInteger.prototype.or;BigInteger.prototype.xor=function(e){return bitwise(this,e,(function(e,a){return e^a}))};NativeBigInt.prototype.xor=SmallInteger.prototype.xor=BigInteger.prototype.xor;var m=1<<30,c=(a&-a)*(a&-a)|m;function roughLOB(e){var r=e.value,i=typeof r==="number"?r|m:typeof r==="bigint"?r|BigInt(m):r[0]+r[1]*a|c;return i&-i}function integerLogarithm(e,a){if(a.compareTo(e)<=0){var r=integerLogarithm(e,a.square(a));var n=r.p;var p=r.e;var o=n.multiply(a);return o.compareTo(e)<=0?{p:o,e:p*2+1}:{p:n,e:p*2}}return{p:i(1),e:0}}BigInteger.prototype.bitLength=function(){var e=this;if(e.compareTo(i(0))<0){e=e.negate().subtract(i(1))}if(e.compareTo(i(0))===0){return i(0)}return i(integerLogarithm(e,i(2)).e).add(i(1))};NativeBigInt.prototype.bitLength=SmallInteger.prototype.bitLength=BigInteger.prototype.bitLength;function max(e,a){e=parseValue(e);a=parseValue(a);return e.greater(a)?e:a}function min(e,a){e=parseValue(e);a=parseValue(a);return e.lesser(a)?e:a}function gcd(e,a){e=parseValue(e).abs();a=parseValue(a).abs();if(e.equals(a))return e;if(e.isZero())return a;if(a.isZero())return e;var r=Integer[1],i,n;while(e.isEven()&&a.isEven()){i=min(roughLOB(e),roughLOB(a));e=e.divide(i);a=a.divide(i);r=r.multiply(i)}while(e.isEven()){e=e.divide(roughLOB(e))}do{while(a.isEven()){a=a.divide(roughLOB(a))}if(e.greater(a)){n=a;a=e;e=n}a=a.subtract(e)}while(!a.isZero());return r.isUnit()?e:e.multiply(r)}function lcm(e,a){e=parseValue(e).abs();a=parseValue(a).abs();return e.divide(gcd(e,a)).multiply(a)}function randBetween(e,r,i){e=parseValue(e);r=parseValue(r);var n=i||Math.random;var p=min(e,r),o=max(e,r);var d=o.subtract(p).add(1);if(d.isSmall)return p.add(Math.floor(n()*d));var s=toBase(d,a).value;var l=[],u=true;for(var m=0;m=d){if(l==="1"&&d===1)continue;throw new Error(l+" is not a valid digit in base "+a+".")}}}a=parseValue(a);var u=[];var m=e[0]==="-";for(p=m?1:0;p"&&p=0;p--){i=i.add(e[p].times(n));n=n.times(a)}return r?i.negate():i}function stringify(e,a){a=a||o;if(e"}function toBase(e,a){a=i(a);if(a.isZero()){if(e.isZero())return{value:[0],isNegative:false};throw new Error("Cannot convert nonzero numbers to base 0.")}if(a.equals(-1)){if(e.isZero())return{value:[0],isNegative:false};if(e.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-e.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:false};var r=Array.apply(null,Array(e.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);r.unshift([1]);return{value:[].concat.apply([],r),isNegative:false}}var n=false;if(e.isNegative()&&a.isPositive()){n=true;e=e.abs()}if(a.isUnit()){if(e.isZero())return{value:[0],isNegative:false};return{value:Array.apply(null,Array(e.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:n}}var p=[];var o=e,d;while(o.isNegative()||o.compareAbs(a)>=0){d=o.divmod(a);o=d.quotient;var s=d.remainder;if(s.isNegative()){s=a.minus(s).abs();o=o.next()}p.push(s.toJSNumber())}p.push(o.toJSNumber());return{value:p.reverse(),isNegative:n}}function toBaseString(e,a,r){var i=toBase(e,a);return(i.isNegative?"-":"")+i.value.map((function(e){return stringify(e,r)})).join("")}BigInteger.prototype.toArray=function(e){return toBase(this,e)};SmallInteger.prototype.toArray=function(e){return toBase(this,e)};NativeBigInt.prototype.toArray=function(e){return toBase(this,e)};BigInteger.prototype.toString=function(a,r){if(a===e)a=10;if(a!==10)return toBaseString(this,a,r);var i=this.value,n=i.length,p=String(i[--n]),o="0000000",d;while(--n>=0){d=String(i[n]);p+=o.slice(d.length)+d}var s=this.sign?"-":"";return s+p};SmallInteger.prototype.toString=function(a,r){if(a===e)a=10;if(a!=10)return toBaseString(this,a,r);return String(this.value)};NativeBigInt.prototype.toString=SmallInteger.prototype.toString;NativeBigInt.prototype.toJSON=BigInteger.prototype.toJSON=SmallInteger.prototype.toJSON=function(){return this.toString()};BigInteger.prototype.valueOf=function(){return parseInt(this.toString(),10)};BigInteger.prototype.toJSNumber=BigInteger.prototype.valueOf;SmallInteger.prototype.valueOf=function(){return this.value};SmallInteger.prototype.toJSNumber=SmallInteger.prototype.valueOf;NativeBigInt.prototype.valueOf=NativeBigInt.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};function parseStringValue(e){if(isPrecise(+e)){var a=+e;if(a===truncate(a))return d?new NativeBigInt(BigInt(a)):new SmallInteger(a);throw new Error("Invalid integer: "+e)}var i=e[0]==="-";if(i)e=e.slice(1);var n=e.split(/e/i);if(n.length>2)throw new Error("Invalid integer: "+n.join("e"));if(n.length===2){var p=n[1];if(p[0]==="+")p=p.slice(1);p=+p;if(p!==truncate(p)||!isPrecise(p))throw new Error("Invalid integer: "+p+" is not a valid exponent.");var o=n[0];var s=o.indexOf(".");if(s>=0){p-=o.length-s-1;o=o.slice(0,s)+o.slice(s+1)}if(p<0)throw new Error("Cannot include negative exponent part for integers");o+=new Array(p+1).join("0");e=o}var l=/^([0-9][0-9]*)$/.test(e);if(!l)throw new Error("Invalid integer: "+e);if(d){return new NativeBigInt(BigInt(i?"-"+e:e))}var u=[],m=e.length,c=r,h=m-c;while(m>0){u.push(+e.slice(h,m));h-=c;if(h<0)h=0;m-=c}trim(u);return new BigInteger(u,i)}function parseNumberValue(e){if(d){return new NativeBigInt(BigInt(e))}if(isPrecise(e)){if(e!==truncate(e))throw new Error(e+" is not an integer.");return new SmallInteger(e)}return parseStringValue(e.toString())}function parseValue(e){if(typeof e==="number"){return parseNumberValue(e)}if(typeof e==="string"){return parseStringValue(e)}if(typeof e==="bigint"){return new NativeBigInt(e)}return e}for(var h=0;h<1e3;h++){Integer[h]=parseValue(h);if(h>0)Integer[-h]=parseValue(-h)}Integer.one=Integer[1];Integer.zero=Integer[0];Integer.minusOne=Integer[-1];Integer.max=max;Integer.min=min;Integer.gcd=gcd;Integer.lcm=lcm;Integer.isInstance=function(e){return e instanceof BigInteger||e instanceof SmallInteger||e instanceof NativeBigInt};Integer.randBetween=randBetween;Integer.fromArray=function(e,a,r){return parseBaseFromArray(e.map(parseValue),parseValue(a||10),r)};return Integer}();if(true&&e.hasOwnProperty("exports")){e.exports=i}if(typeof define==="function"&&define.amd){define((function(){return i}))}},4067:(e,a,r)=>{"use strict";var i=r(8168);var n=false;function Real(e){this.value=e}e.exports=function(e){var a=new i.WritableStreamBuffer;a.write(new Buffer("bplist00"));if(n){console.log("create",r(1669).inspect(e,false,10))}if(e instanceof Array&&e.length===1){e=e[0]}var p=toEntries(e);if(n){console.log("entries",p)}var o=computeIdSizeInBytes(p.length);var d=[];var s;var l;updateEntryIds();p.forEach((function(e,r){d[r]=a.size();if(!e){a.write(0)}else{write(e)}}));writeOffsetTable();writeTrailer();return a.getContents();function updateEntryIds(){var e={};var a=0;p.forEach((function(r){if(r.id){return}if(r.type==="string"){if(!r.bplistOverride&&e.hasOwnProperty(r.value)){r.type="stringref";r.id=e[r.value]}else{e[r.value]=r.id=a++}}else{r.id=a++}}));p=p.filter((function(e){return e.type!=="stringref"}))}function writeTrailer(){if(n){console.log("0x"+a.size().toString(16),"writeTrailer")}a.write(new Buffer([0,0,0,0,0,0]));if(n){console.log("0x"+a.size().toString(16),"writeTrailer(offsetSizeInBytes):",s)}writeByte(s);if(n){console.log("0x"+a.size().toString(16),"writeTrailer(offsetSizeInBytes):",o)}writeByte(o);if(n){console.log("0x"+a.size().toString(16),"writeTrailer(number of objects):",p.length)}writeLong(p.length);if(n){console.log("0x"+a.size().toString(16),"writeTrailer(top object)")}writeLong(0);if(n){console.log("0x"+a.size().toString(16),"writeTrailer(offset table offset):",l)}writeLong(l)}function writeOffsetTable(){if(n){console.log("0x"+a.size().toString(16),"writeOffsetTable")}l=a.size();s=computeOffsetSizeInBytes(l);d.forEach((function(e){writeBytes(e,s)}))}function write(e){switch(e.type){case"dict":writeDict(e);break;case"number":case"double":writeNumber(e);break;case"UID":writeUID(e);break;case"array":writeArray(e);break;case"boolean":writeBoolean(e);break;case"string":case"string-utf16":writeString(e);break;case"date":writeDate(e);break;case"data":writeData(e);break;default:throw new Error("unhandled entry type: "+e.type)}}function writeDate(e){writeByte(51);var a=Date.parse(e.value)/1e3-978307200;writeDouble(a)}function writeDict(e){if(n){var r=e.entryKeys.map((function(e){return e.id}));var i=e.entryValues.map((function(e){return e.id}));console.log("0x"+a.size().toString(16),"writeDict","(id: "+e.id+")","(keys: "+r+")","(values: "+i+")")}writeIntHeader(13,e.entryKeys.length);e.entryKeys.forEach((function(e){writeID(e.id)}));e.entryValues.forEach((function(e){writeID(e.id)}))}function writeNumber(e){if(n){console.log("0x"+a.size().toString(16),"writeNumber",e.value," (type: "+e.type+")","(id: "+e.id+")")}if(e.type!=="double"&&parseFloat(e.value.toFixed())==e.value){if(e.value<0){writeByte(19);writeBytes(e.value,8,true)}else if(e.value<=255){writeByte(16);writeBytes(e.value,1)}else if(e.value<=65535){writeByte(17);writeBytes(e.value,2)}else if(e.value<=4294967295){writeByte(18);writeBytes(e.value,4)}else{writeByte(20);writeBytes(e.value,8)}}else{writeByte(35);writeDouble(e.value)}}function writeUID(e){if(n){console.log("0x"+a.size().toString(16),"writeUID",e.value," (type: "+e.type+")","(id: "+e.id+")")}writeIntHeader(8,0);writeID(e.value)}function writeArray(e){if(n){console.log("0x"+a.size().toString(16),"writeArray (length: "+e.entries.length+")","(id: "+e.id+")")}writeIntHeader(10,e.entries.length);e.entries.forEach((function(e){writeID(e.id)}))}function writeBoolean(e){if(n){console.log("0x"+a.size().toString(16),"writeBoolean",e.value,"(id: "+e.id+")")}writeByte(e.value?9:8)}function writeString(e){if(n){console.log("0x"+a.size().toString(16),"writeString",e.value,"(id: "+e.id+")")}if(e.type==="string-utf16"||mustBeUtf16(e.value)){var r=new Buffer(e.value,"ucs2");writeIntHeader(6,r.length/2);for(var i=0;i4){n[p++]=0;r--}}for(var o=r-1;o>=0;o--){n[p++]=e>>8*o}a.write(n)}function mustBeUtf16(e){return Buffer.byteLength(e,"utf8")!=e.length}};function toEntries(e){if(e.bplistOverride){return[e]}if(e instanceof Array){return toEntriesArray(e)}else if(e instanceof Buffer){return[{type:"data",value:e}]}else if(e instanceof Real){return[{type:"double",value:e.value}]}else if(typeof e==="object"){if(e instanceof Date){return[{type:"date",value:e}]}else if(Object.keys(e).length==1&&typeof e.UID==="number"){return[{type:"UID",value:e.UID}]}else{return toEntriesObject(e)}}else if(typeof e==="string"){return[{type:"string",value:e}]}else if(typeof e==="number"){return[{type:"number",value:e}]}else if(typeof e==="boolean"){return[{type:"boolean",value:e}]}else if(typeof e==="bigint"){return[{type:"number",value:Number(BigInt.asIntN(32,e))}]}else{throw new Error("unhandled entry: "+e)}}function toEntriesArray(e){if(n){console.log("toEntriesArray")}var a=[{type:"array",entries:[]}];e.forEach((function(e){var r=toEntries(e);a[0].entries.push(r[0]);a=a.concat(r)}));return a}function toEntriesObject(e){if(n){console.log("toEntriesObject")}var a=[{type:"dict",entryKeys:[],entryValues:[]}];Object.keys(e).forEach((function(e){var r=toEntries(e);a[0].entryKeys.push(r[0]);a=a.concat(r[0])}));Object.keys(e).forEach((function(r){var i=toEntries(e[r]);a[0].entryValues.push(i[0]);a=a.concat(i)}));return a}function computeOffsetSizeInBytes(e){if(e<256){return 1}if(e<65536){return 2}if(e<4294967296){return 4}return 8}function computeIdSizeInBytes(e){if(e<256){return 1}if(e<65536){return 2}return 4}e.exports.Real=Real},8905:(e,a,r)=>{"use strict";const i=r(5747);const n=r(1575);const p=false;a.maxObjectSize=100*1e3*1e3;a.maxObjectCount=32768;const o=9783072e5;const d=a.UID=function(e){this.UID=e};const s=a.parseFile=function(e,a){return new Promise((function(r,n){function tryParseBuffer(e){let i=null;let p;try{p=l(e);r(p)}catch(e){i=e;n(i)}finally{if(a)a(i,p)}}if(Buffer.isBuffer(e)){return tryParseBuffer(e)}i.readFile(e,(function(e,r){if(e){n(e);return a(e)}tryParseBuffer(r)}))}))};const l=a.parseBuffer=function(e){const r=e.slice(0,"bplist".length).toString("utf8");if(r!=="bplist"){throw new Error("Invalid binary plist. Expected 'bplist' at offset 0.")}const i=e.slice(e.length-32,e.length);const s=i.readUInt8(6);if(p){console.log("offsetSize: "+s)}const l=i.readUInt8(7);if(p){console.log("objectRefSize: "+l)}const u=readUInt64BE(i,8);if(p){console.log("numObjects: "+u)}const m=readUInt64BE(i,16);if(p){console.log("topObject: "+m)}const c=readUInt64BE(i,24);if(p){console.log("offsetTableOffset: "+c)}if(u>a.maxObjectCount){throw new Error("maxObjectCount exceeded")}const h=[];for(let a=0;a>4;const m=s&15;switch(u){case 0:return parseSimple();case 1:return parseInteger();case 8:return parseUID();case 2:return parseReal();case 3:return parseDate();case 4:return parseData();case 5:return parsePlistString();case 6:return parsePlistString(true);case 10:return parseArray();case 13:return parseDictionary();default:throw new Error("Unhandled type 0x"+u.toString(16))}function parseSimple(){switch(m){case 0:return null;case 8:return false;case 9:return true;case 15:return null;default:throw new Error("Unhandled simple type 0x"+u.toString(16))}}function bufferToHexString(e){let a="";let r;for(r=0;ra.maxObjectSize){throw new Error("To little heap space available!")}const p=[];for(let a=0;aa.maxObjectSize){throw new Error("To little heap space available!")}if(p){console.log("Parsing dictionary #"+r)}const d={};for(let a=0;a{var i=r(6891);var n=r(9417);e.exports=expandTop;var p="\0SLASH"+Math.random()+"\0";var o="\0OPEN"+Math.random()+"\0";var d="\0CLOSE"+Math.random()+"\0";var s="\0COMMA"+Math.random()+"\0";var l="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(p).split("\\{").join(o).split("\\}").join(d).split("\\,").join(s).split("\\.").join(l)}function unescapeBraces(e){return e.split(p).join("\\").split(o).join("{").split(d).join("}").split(s).join(",").split(l).join(".")}function parseCommaParts(e){if(!e)return[""];var a=[];var r=n("{","}",e);if(!r)return e.split(",");var i=r.pre;var p=r.body;var o=r.post;var d=i.split(",");d[d.length-1]+="{"+p+"}";var s=parseCommaParts(o);if(o.length){d[d.length-1]+=s.shift();d.push.apply(d,s)}a.push.apply(a,d);return a}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function identity(e){return e}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,a){return e<=a}function gte(e,a){return e>=a}function expand(e,a){var r=[];var p=n("{","}",e);if(!p||/\$$/.test(p.pre))return[e];var o=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(p.body);var s=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(p.body);var l=o||s;var u=p.body.indexOf(",")>=0;if(!l&&!u){if(p.post.match(/,.*\}/)){e=p.pre+"{"+p.body+d+p.post;return expand(e)}return[e]}var m;if(l){m=p.body.split(/\.\./)}else{m=parseCommaParts(p.body);if(m.length===1){m=expand(m[0],false).map(embrace);if(m.length===1){var c=p.post.length?expand(p.post,false):[""];return c.map((function(e){return p.pre+m[0]+e}))}}}var h=p.pre;var c=p.post.length?expand(p.post,false):[""];var v;if(l){var g=numeric(m[0]);var y=numeric(m[1]);var w=Math.max(m[0].length,m[1].length);var b=m.length==3?Math.abs(numeric(m[2])):1;var S=lte;var _=y0){var I=new Array(C+1).join("0");if(E<0)D="-"+I+D.slice(1);else D=I+D}}}v.push(D)}}else{v=i(m,(function(e){return expand(e,false)}))}for(var T=0;T{var i=r(4293).Buffer;var n=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];if(typeof Int32Array!=="undefined"){n=new Int32Array(n)}function ensureBuffer(e){if(i.isBuffer(e)){return e}var a=typeof i.alloc==="function"&&typeof i.from==="function";if(typeof e==="number"){return a?i.alloc(e):new i(e)}else if(typeof e==="string"){return a?i.from(e):new i(e)}else{throw new Error("input must be buffer, number, or string, received "+typeof e)}}function bufferizeInt(e){var a=ensureBuffer(4);a.writeInt32BE(e,0);return a}function _crc32(e,a){e=ensureBuffer(e);if(i.isBuffer(a)){a=a.readUInt32BE(0)}var r=~~a^-1;for(var p=0;p>>8}return r^-1}function crc32(){return bufferizeInt(_crc32.apply(null,arguments))}crc32.signed=function(){return _crc32.apply(null,arguments)};crc32.unsigned=function(){return _crc32.apply(null,arguments)>>>0};e.exports=crc32},421:e=>{var a={utf8:{stringToBytes:function(e){return a.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(a.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var a=[],r=0;r{e.exports=function(e,r){var i=[];for(var n=0;n{(function(){var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(e,a){return e<>>32-a},rotr:function(e,a){return e<<32-a|e>>>a},endian:function(e){if(e.constructor==Number){return r.rotl(e,8)&16711935|r.rotl(e,24)&4278255360}for(var a=0;a0;e--)a.push(Math.floor(Math.random()*256));return a},bytesToWords:function(e){for(var a=[],r=0,i=0;r>>5]|=e[r]<<24-i%32;return a},wordsToBytes:function(e){for(var a=[],r=0;r>>5]>>>24-r%32&255);return a},bytesToHex:function(e){for(var a=[],r=0;r>>4).toString(16));a.push((e[r]&15).toString(16))}return a.join("")},hexToBytes:function(e){for(var a=[],r=0;r>>6*(3-p)&63));else r.push("=")}return r.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var r=[],i=0,n=0;i>>6-n*2)}return r}};e.exports=r})()},8222:(e,a,r)=>{a.formatArgs=formatArgs;a.save=save;a.load=load;a.useColors=useColors;a.storage=localstorage();a.destroy=(()=>{let e=false;return()=>{if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();a.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(a){a[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+a[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const r="color: "+this.color;a.splice(1,0,r,"color: inherit");let i=0;let n=0;a[0].replace(/%[a-zA-Z%]/g,(e=>{if(e==="%%"){return}i++;if(e==="%c"){n=i}}));a.splice(n,0,r)}a.log=console.debug||console.log||(()=>{});function save(e){try{if(e){a.storage.setItem("debug",e)}else{a.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=a.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=r(6243)(a);const{formatters:i}=e.exports;i.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},6243:(e,a,r)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=r(900);createDebug.destroy=destroy;Object.keys(e).forEach((a=>{createDebug[a]=e[a]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let a=0;for(let r=0;r{if(a==="%%"){return"%"}p++;const n=createDebug.formatters[i];if(typeof n==="function"){const i=e[p];a=n.call(r,i);e.splice(p,1);p--}return a}));createDebug.formatArgs.call(r,e);const o=r.log||createDebug.log;o.apply(r,e)}debug.namespace=e;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(e);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(r!==null){return r}if(i!==createDebug.namespaces){i=createDebug.namespaces;n=createDebug.enabled(e)}return n},set:e=>{r=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,a){const r=createDebug(this.namespace+(typeof a==="undefined"?":":a)+e);r.log=this.log;return r}function enable(e){createDebug.save(e);createDebug.namespaces=e;createDebug.names=[];createDebug.skips=[];let a;const r=(typeof e==="string"?e:"").split(/[\s,]+/);const i=r.length;for(a=0;a"-"+e))].join(",");createDebug.enable("");return e}function enabled(e){if(e[e.length-1]==="*"){return true}let a;let r;for(a=0,r=createDebug.skips.length;a{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=r(8222)}else{e.exports=r(5332)}},5332:(e,a,r)=>{const i=r(3867);const n=r(1669);a.init=init;a.log=log;a.formatArgs=formatArgs;a.save=save;a.load=load;a.useColors=useColors;a.destroy=n.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");a.colors=[6,2,3,4,5,1];try{const e=r(9318);if(e&&(e.stderr||e).level>=2){a.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}a.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,a)=>{const r=a.substring(6).toLowerCase().replace(/_([a-z])/g,((e,a)=>a.toUpperCase()));let i=process.env[a];if(/^(yes|on|true|enabled)$/i.test(i)){i=true}else if(/^(no|off|false|disabled)$/i.test(i)){i=false}else if(i==="null"){i=null}else{i=Number(i)}e[r]=i;return e}),{});function useColors(){return"colors"in a.inspectOpts?Boolean(a.inspectOpts.colors):i.isatty(process.stderr.fd)}function formatArgs(a){const{namespace:r,useColors:i}=this;if(i){const i=this.color;const n="[3"+(i<8?i:"8;5;"+i);const p=` ${n};1m${r} `;a[0]=p+a[0].split("\n").join("\n"+p);a.push(n+"m+"+e.exports.humanize(this.diff)+"")}else{a[0]=getDate()+r+" "+a[0]}}function getDate(){if(a.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(n.format(...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const r=Object.keys(a.inspectOpts);for(let i=0;ie.trim())).join(" ")};p.O=function(e){this.inspectOpts.colors=this.useColors;return n.inspect(e,this.inspectOpts)}},1349:(e,a,r)=>{var i=r(2357);var n=r(4223);var p=r(1669);var o=r(3539);var d=r(9414);function Helper(){this.file=new d;this.opts={window:{x:100,y:100}}}Helper.prototype.setBackgroundPath=function(e){this.opts.backgroundPath=e};Helper.prototype.setBackgroundColor=function(e,a,r){this.opts.backgroundColor=[e,a,r]};Helper.prototype.setIconSize=function(e){this.opts.iconSize=e};Helper.prototype.setIconPos=function(e,a,r){this.file.push(o.construct(e,"Iloc",{x:a,y:r}))};Helper.prototype.setWindowPos=function(e,a){this.opts.window.x=e;this.opts.window.y=a};Helper.prototype.setWindowSize=function(e,a){this.opts.window.width=e;this.opts.window.height=a+22};Helper.prototype.vSrn=function(e){i(e===0||e===1);this.file.push(o.construct(".","vSrn",{value:e}))};Helper.prototype.write=function(e,a){var r,i;if(this.opts.backgroundPath){r=n.create(this.opts.backgroundPath)}if(this.opts.backgroundColor){i=this.opts.backgroundColor}this.file.push(o.construct(".","bwsp",this.opts.window));this.file.push(o.construct(".","icvp",{iconSize:this.opts.iconSize,rawAlias:r,colorComponents:i}));this.file.write(e,a)};Helper.prototype.setBackground=p.deprecate(Helper.prototype.setBackgroundPath,"setBackground is deprecated, please use setBackgroundPath");e.exports=a=Helper},9414:(e,a,r)=>{var i=r(5747);var n=r(5622);var p=r(3539);function DSStore(){this.entries=[]}DSStore.prototype.push=function(e){this.entries.push(e)};DSStore.prototype.write=function(e,a){var n=this.entries.sort(p.sort);i.readFile(r.ab+"DSStore-clean",(function(r,p){if(r)return a(r);var o=new Buffer(3840);o.fill(0);var d=0;var s=0;var l=n.length;o.writeUInt32BE(s,d);o.writeUInt32BE(l,d+4);d+=8;n.forEach((function(e,a){var r=e.buffer;r.copy(o,d);d+=r.length}));p.writeUInt32BE(n.length,76);o.copy(p,4100);i.writeFile(e,p,(function(e){a(e)}))}))};e.exports=a=DSStore},3539:(e,a,r)=>{var i=r(8694);var n=r(4067);function utf16be(e){var a=new Buffer(e,"ucs2");for(var r=0;r{"use strict";e.exports=function encodeUtf8(e){var a=[];var r=e.length;for(var i=0;i=55296&&n<=56319&&r>i+1){var p=e.charCodeAt(i+1);if(p>=56320&&p<=57343){n=(n-55296)*1024+p-56320+65536;i+=1}}if(n<128){a.push(n);continue}if(n<2048){a.push(n>>6|192);a.push(n&63|128);continue}if(n<55296||n>=57344&&n<65536){a.push(n>>12|224);a.push(n>>6&63|128);a.push(n&63|128);continue}if(n>=65536&&n<=1114111){a.push(n>>18|240);a.push(n>>12&63|128);a.push(n>>6&63|128);a.push(n&63|128);continue}a.push(239,191,189)}return new Uint8Array(a).buffer}},1205:(e,a,r)=>{var i=r(1223);var noop=function(){};var isRequest=function(e){return e.setHeader&&typeof e.abort==="function"};var isChildProcess=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3};var eos=function(e,a,r){if(typeof a==="function")return eos(e,null,a);if(!a)a={};r=i(r||noop);var n=e._writableState;var p=e._readableState;var o=a.readable||a.readable!==false&&e.readable;var d=a.writable||a.writable!==false&&e.writable;var s=false;var onlegacyfinish=function(){if(!e.writable)onfinish()};var onfinish=function(){d=false;if(!o)r.call(e)};var onend=function(){o=false;if(!d)r.call(e)};var onexit=function(a){r.call(e,a?new Error("exited with error code: "+a):null)};var onerror=function(a){r.call(e,a)};var onclose=function(){process.nextTick(onclosenexttick)};var onclosenexttick=function(){if(s)return;if(o&&!(p&&(p.ended&&!p.destroyed)))return r.call(e,new Error("premature close"));if(d&&!(n&&(n.ended&&!n.destroyed)))return r.call(e,new Error("premature close"))};var onrequest=function(){e.req.on("finish",onfinish)};if(isRequest(e)){e.on("complete",onfinish);e.on("abort",onclose);if(e.req)onrequest();else e.on("request",onrequest)}else if(d&&!n){e.on("end",onlegacyfinish);e.on("close",onlegacyfinish)}if(isChildProcess(e))e.on("exit",onexit);e.on("end",onend);e.on("finish",onfinish);if(a.error!==false)e.on("error",onerror);e.on("close",onclose);return function(){s=true;e.removeListener("complete",onfinish);e.removeListener("abort",onclose);e.removeListener("request",onrequest);if(e.req)e.req.removeListener("finish",onfinish);e.removeListener("end",onlegacyfinish);e.removeListener("close",onlegacyfinish);e.removeListener("finish",onfinish);e.removeListener("exit",onexit);e.removeListener("end",onend);e.removeListener("error",onerror);e.removeListener("close",onclose)}};e.exports=eos},460:(e,a,r)=>{const i=r(8237)("extract-zip");const{createWriteStream:n,promises:p}=r(5747);const o=r(1766);const d=r(5622);const{promisify:s}=r(1669);const l=r(2413);const u=r(8781);const m=s(u.open);const c=s(l.pipeline);class Extractor{constructor(e,a){this.zipPath=e;this.opts=a}async extract(){i("opening",this.zipPath,"with opts",this.opts);this.zipfile=await m(this.zipPath,{lazyEntries:true});this.canceled=false;return new Promise(((e,a)=>{this.zipfile.on("error",(e=>{this.canceled=true;a(e)}));this.zipfile.readEntry();this.zipfile.on("close",(()=>{if(!this.canceled){i("zip extraction complete");e()}}));this.zipfile.on("entry",(async e=>{if(this.canceled){i("skipping entry",e.fileName,{cancelled:this.canceled});return}i("zipfile entry",e.fileName);if(e.fileName.startsWith("__MACOSX/")){this.zipfile.readEntry();return}const r=d.dirname(d.join(this.opts.dir,e.fileName));try{await p.mkdir(r,{recursive:true});const a=await p.realpath(r);const n=d.relative(this.opts.dir,a);if(n.split(d.sep).includes("..")){throw new Error(`Out of bound path "${a}" found while processing file ${e.fileName}`)}await this.extractEntry(e);i("finished processing",e.fileName);this.zipfile.readEntry()}catch(e){this.canceled=true;this.zipfile.close();a(e)}}))}))}async extractEntry(e){if(this.canceled){i("skipping entry extraction",e.fileName,{cancelled:this.canceled});return}if(this.opts.onEntry){this.opts.onEntry(e,this.zipfile)}const a=d.join(this.opts.dir,e.fileName);const r=e.externalFileAttributes>>16&65535;const l=61440;const u=16384;const m=40960;const h=(r&l)===m;let v=(r&l)===u;if(!v&&e.fileName.endsWith("/")){v=true}const g=e.versionMadeBy>>8;if(!v)v=g===0&&e.externalFileAttributes===16;i("extracting entry",{filename:e.fileName,isDir:v,isSymlink:h});const y=this.getExtractedMode(r,v)&511;const w=v?a:d.dirname(a);const b={recursive:true};if(v){b.mode=y}i("mkdir",{dir:w,...b});await p.mkdir(w,b);if(v)return;i("opening read stream",a);const S=await s(this.zipfile.openReadStream.bind(this.zipfile))(e);if(h){const e=await o(S);i("creating symlink",e,a);await p.symlink(e,a)}else{await c(S,n(a,{mode:y}))}}getExtractedMode(e,a){let r=e;if(r===0){if(a){if(this.opts.defaultDirMode){r=parseInt(this.opts.defaultDirMode,10)}if(!r){r=493}}else{if(this.opts.defaultFileMode){r=parseInt(this.opts.defaultFileMode,10)}if(!r){r=420}}}return r}}e.exports=async function(e,a){i("creating target directory",a.dir);if(!d.isAbsolute(a.dir)){throw new Error("Target directory is expected to be absolute")}await p.mkdir(a.dir,{recursive:true});a.dir=await p.realpath(a.dir);return new Extractor(e,a).extract()}},5010:(e,a,r)=>{var i=r(5747);var n=r(1669);var p=r(2413);var o=p.Readable;var d=p.Writable;var s=p.PassThrough;var l=r(4833);var u=r(8614).EventEmitter;a.createFromBuffer=createFromBuffer;a.createFromFd=createFromFd;a.BufferSlicer=BufferSlicer;a.FdSlicer=FdSlicer;n.inherits(FdSlicer,u);function FdSlicer(e,a){a=a||{};u.call(this);this.fd=e;this.pend=new l;this.pend.max=1;this.refCount=0;this.autoClose=!!a.autoClose}FdSlicer.prototype.read=function(e,a,r,n,p){var o=this;o.pend.go((function(d){i.read(o.fd,e,a,r,n,(function(e,a,r){d();p(e,a,r)}))}))};FdSlicer.prototype.write=function(e,a,r,n,p){var o=this;o.pend.go((function(d){i.write(o.fd,e,a,r,n,(function(e,a,r){d();p(e,a,r)}))}))};FdSlicer.prototype.createReadStream=function(e){return new ReadStream(this,e)};FdSlicer.prototype.createWriteStream=function(e){return new WriteStream(this,e)};FdSlicer.prototype.ref=function(){this.refCount+=1};FdSlicer.prototype.unref=function(){var e=this;e.refCount-=1;if(e.refCount>0)return;if(e.refCount<0)throw new Error("invalid unref");if(e.autoClose){i.close(e.fd,onCloseDone)}function onCloseDone(a){if(a){e.emit("error",a)}else{e.emit("close")}}};n.inherits(ReadStream,o);function ReadStream(e,a){a=a||{};o.call(this,a);this.context=e;this.context.ref();this.start=a.start||0;this.endOffset=a.end;this.pos=this.start;this.destroyed=false}ReadStream.prototype._read=function(e){var a=this;if(a.destroyed)return;var r=Math.min(a._readableState.highWaterMark,e);if(a.endOffset!=null){r=Math.min(r,a.endOffset-a.pos)}if(r<=0){a.destroyed=true;a.push(null);a.context.unref();return}a.context.pend.go((function(e){if(a.destroyed)return e();var n=new Buffer(r);i.read(a.context.fd,n,0,r,a.pos,(function(r,i){if(r){a.destroy(r)}else if(i===0){a.destroyed=true;a.push(null);a.context.unref()}else{a.pos+=i;a.push(n.slice(0,i))}e()}))}))};ReadStream.prototype.destroy=function(e){if(this.destroyed)return;e=e||new Error("stream destroyed");this.destroyed=true;this.emit("error",e);this.context.unref()};n.inherits(WriteStream,d);function WriteStream(e,a){a=a||{};d.call(this,a);this.context=e;this.context.ref();this.start=a.start||0;this.endOffset=a.end==null?Infinity:+a.end;this.bytesWritten=0;this.pos=this.start;this.destroyed=false;this.on("finish",this.destroy.bind(this))}WriteStream.prototype._write=function(e,a,r){var n=this;if(n.destroyed)return;if(n.pos+e.length>n.endOffset){var p=new Error("maximum file length exceeded");p.code="ETOOBIG";n.destroy();r(p);return}n.context.pend.go((function(a){if(n.destroyed)return a();i.write(n.context.fd,e,0,e.length,n.pos,(function(e,i){if(e){n.destroy();a();r(e)}else{n.bytesWritten+=i;n.pos+=i;n.emit("progress");a();r()}}))}))};WriteStream.prototype.destroy=function(){if(this.destroyed)return;this.destroyed=true;this.context.unref()};n.inherits(BufferSlicer,u);function BufferSlicer(e,a){u.call(this);a=a||{};this.refCount=0;this.buffer=e;this.maxChunkSize=a.maxChunkSize||Number.MAX_SAFE_INTEGER}BufferSlicer.prototype.read=function(e,a,r,i,n){var p=i+r;var o=p-this.buffer.length;var d=o>0?o:r;this.buffer.copy(e,a,i,p);setImmediate((function(){n(null,d)}))};BufferSlicer.prototype.write=function(e,a,r,i,n){e.copy(this.buffer,i,a,a+r);setImmediate((function(){n(null,r,e)}))};BufferSlicer.prototype.createReadStream=function(e){e=e||{};var a=new s(e);a.destroyed=false;a.start=e.start||0;a.endOffset=e.end;a.pos=a.endOffset||this.buffer.length;var r=this.buffer.slice(a.start,a.pos);var i=0;while(true){var n=i+this.maxChunkSize;if(n>=r.length){if(ir.endOffset){var o=new Error("maximum file length exceeded");o.code="ETOOBIG";r.destroyed=true;n(o);return}e.copy(a.buffer,r.pos,0,e.length);r.bytesWritten+=e.length;r.pos=p;r.emit("progress");n()};r.destroy=function(){r.destroyed=true};return r};BufferSlicer.prototype.ref=function(){this.refCount+=1};BufferSlicer.prototype.unref=function(){this.refCount-=1;if(this.refCount<0){throw new Error("invalid unref")}};function createFromBuffer(e,a){return new BufferSlicer(e,a)}function createFromFd(e,a){return new FdSlicer(e,a)}},8062:(e,a,r)=>{var i=r(3070);e.exports=function fmix(e){e^=e>>>16;e=i(e,2246822507);e^=e>>>13;e=i(e,3266489909);e^=e>>>16;return e>>>0}},1371:(e,a,r)=>{var i=r(2851);var n=r(3515);function template(e){n.validateTemplate(e);return{open:i.open.bind(i,e),openSync:i.openSync.bind(i,e),mkdir:i.mkdir.bind(i,e),mkdirSync:i.mkdirSync.bind(i,e),writeFile:i.writeFile.bind(i,e),writeFileSync:i.writeFileSync.bind(i,e),createWriteStream:i.createWriteStream.bind(i,e)}}e.exports=template("%s");e.exports.template=template},6328:(e,a)=>{function sync(e){var a;var r=3;while(--r){try{a=e()}catch(e){if(e.code==="EEXIST")continue;throw e}return a}throw new Error("Failed to find unique name")}function async(e,a){var r=3;(function next(){e((function(e,i){if(!e)return a(null,i);if(e.code!=="EEXIST")return a(e);if(--r===0)return a(new Error("Failed to find unique name"));next()}))})()}a.sync=sync;a.async=async},2851:(e,a,r)=>{var i=r(5747);var n=r(2087);var p=r(3515);var o=r(6328);var d=r(7974);var s=n.tmpdir();function open(e,a,r,n){switch(a){case"w":a="wx";break;case"w+":a="wx+";break;default:throw new Error("Unknown file open flag: "+a)}if(typeof r==="function"){n=r;r=undefined}var d;o.async((function(n){d=p(s,e);i.open(d,a,r,n)}),(function(e,a){n(e,e?undefined:{fd:a,path:d})}))}function openSync(e,a,r){switch(a){case"w":a="wx";break;case"w+":a="wx+";break;default:throw new Error("Unknown file open flag: "+a)}var n;var d=o.sync((function(){n=p(s,e);return i.openSync(n,a,r)}));return{fd:d,path:n}}function mkdir(e,a,r){if(typeof a==="function"){r=a;a=undefined}var n;o.async((function(r){n=p(s,e);i.mkdir(n,a,r)}),(function(e){r(e,e?undefined:n)}))}function mkdirSync(e,a){var r;o.sync((function(){r=p(s,e);i.mkdirSync(r,a)}));return r}function writeFile(e,a,r,n){n=arguments[arguments.length-1];if(typeof r==="function"||!r){r={flag:"wx"}}else if(typeof r==="string"){r={encoding:r,flag:"wx"}}else if(typeof r==="object"){r.flag="wx"}else{throw new TypeError("Bad arguments")}var d;o.async((function(n){d=p(s,e);i.writeFile(d,a,r,n)}),(function(e){n(e,e?undefined:d)}))}function writeFileSync(e,a,r){if(!r){r={flag:"wx"}}else if(typeof r==="string"){r={encoding:r,flag:"wx"}}else if(typeof r==="object"){r.flag="wx"}else{throw new TypeError("Bad arguments")}var n;o.sync((function(){n=p(s,e);i.writeFileSync(n,a,r)}));return n}function createWriteStream(e,a){return new d(e,a)}a.open=open;a.openSync=openSync;a.mkdir=mkdir;a.mkdirSync=mkdirSync;a.writeFile=writeFile;a.writeFileSync=writeFileSync;a.createWriteStream=createWriteStream},7974:(e,a,r)=>{var i=r(2851);var n=r(5747).WriteStream;function TempWriteStream(e,a){this.template=e;n.call(this,null,a)}TempWriteStream.prototype=Object.create(n.prototype);TempWriteStream.prototype.open=function open(){i.open(this.template,this.flags,this.mode,function(e,a){if(e){this.destroy();this.emit("error",e);return}this.fd=a.fd;this.path=a.path;this.emit("path",a.path);this.emit("open",a.fd)}.bind(this))};e.exports=TempWriteStream},6863:(e,a,r)=>{e.exports=realpath;realpath.realpath=realpath;realpath.sync=realpathSync;realpath.realpathSync=realpathSync;realpath.monkeypatch=monkeypatch;realpath.unmonkeypatch=unmonkeypatch;var i=r(5747);var n=i.realpath;var p=i.realpathSync;var o=process.version;var d=/^v[0-5]\./.test(o);var s=r(1734);function newError(e){return e&&e.syscall==="realpath"&&(e.code==="ELOOP"||e.code==="ENOMEM"||e.code==="ENAMETOOLONG")}function realpath(e,a,r){if(d){return n(e,a,r)}if(typeof a==="function"){r=a;a=null}n(e,a,(function(i,n){if(newError(i)){s.realpath(e,a,r)}else{r(i,n)}}))}function realpathSync(e,a){if(d){return p(e,a)}try{return p(e,a)}catch(r){if(newError(r)){return s.realpathSync(e,a)}else{throw r}}}function monkeypatch(){i.realpath=realpath;i.realpathSync=realpathSync}function unmonkeypatch(){i.realpath=n;i.realpathSync=p}},1734:(e,a,r)=>{var i=r(5622);var n=process.platform==="win32";var p=r(5747);var o=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function rethrow(){var e;if(o){var a=new Error;e=debugCallback}else e=missingCallback;return e;function debugCallback(e){if(e){a.message=e.message;e=a;missingCallback(e)}}function missingCallback(e){if(e){if(process.throwDeprecation)throw e;else if(!process.noDeprecation){var a="fs: missing callback "+(e.stack||e.message);if(process.traceDeprecation)console.trace(a);else console.error(a)}}}}function maybeCallback(e){return typeof e==="function"?e:rethrow()}var d=i.normalize;if(n){var s=/(.*?)(?:[\/\\]+|$)/g}else{var s=/(.*?)(?:[\/]+|$)/g}if(n){var l=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/}else{var l=/^[\/]*/}a.realpathSync=function realpathSync(e,a){e=i.resolve(e);if(a&&Object.prototype.hasOwnProperty.call(a,e)){return a[e]}var r=e,o={},d={};var u;var m;var c;var h;start();function start(){var a=l.exec(e);u=a[0].length;m=a[0];c=a[0];h="";if(n&&!d[c]){p.lstatSync(c);d[c]=true}}while(u=e.length){if(a)a[o]=e;return r(null,e)}s.lastIndex=m;var i=s.exec(e);v=c;c+=i[0];h=v+i[1];m=s.lastIndex;if(u[h]||a&&a[h]===h){return process.nextTick(LOOP)}if(a&&Object.prototype.hasOwnProperty.call(a,h)){return gotResolvedLink(a[h])}return p.lstat(h,gotStat)}function gotStat(e,i){if(e)return r(e);if(!i.isSymbolicLink()){u[h]=true;if(a)a[h]=h;return process.nextTick(LOOP)}if(!n){var o=i.dev.toString(32)+":"+i.ino.toString(32);if(d.hasOwnProperty(o)){return gotTarget(null,d[o],h)}}p.stat(h,(function(e){if(e)return r(e);p.readlink(h,(function(e,a){if(!n)d[o]=a;gotTarget(e,a)}))}))}function gotTarget(e,n,p){if(e)return r(e);var o=i.resolve(v,n);if(a)a[p]=o;gotResolvedLink(o)}function gotResolvedLink(a){e=i.resolve(a,e.slice(m));start()}}},1585:(e,a,r)=>{"use strict";const{PassThrough:i}=r(2413);e.exports=e=>{e={...e};const{array:a}=e;let{encoding:r}=e;const n=r==="buffer";let p=false;if(a){p=!(r||n)}else{r=r||"utf8"}if(n){r=null}const o=new i({objectMode:p});if(r){o.setEncoding(r)}let d=0;const s=[];o.on("data",(e=>{s.push(e);if(p){d=s.length}else{d+=e.length}}));o.getBufferedValue=()=>{if(a){return s}return n?Buffer.concat(s,d):s.join("")};o.getBufferedLength=()=>d;return o}},1766:(e,a,r)=>{"use strict";const{constants:i}=r(4293);const n=r(8341);const p=r(1585);class MaxBufferError extends Error{constructor(){super("maxBuffer exceeded");this.name="MaxBufferError"}}async function getStream(e,a){if(!e){return Promise.reject(new Error("Expected a stream"))}a={maxBuffer:Infinity,...a};const{maxBuffer:r}=a;let o;await new Promise(((d,s)=>{const rejectPromise=e=>{if(e&&o.getBufferedLength()<=i.MAX_LENGTH){e.bufferedData=o.getBufferedValue()}s(e)};o=n(e,p(a),(e=>{if(e){rejectPromise(e);return}d()}));o.on("data",(()=>{if(o.getBufferedLength()>r){rejectPromise(new MaxBufferError)}}))}));return o.getBufferedValue()}e.exports=getStream;e.exports.default=getStream;e.exports.buffer=(e,a)=>getStream(e,{...a,encoding:"buffer"});e.exports.array=(e,a)=>getStream(e,{...a,array:true});e.exports.MaxBufferError=MaxBufferError},7625:(e,a,r)=>{a.setopts=setopts;a.ownProp=ownProp;a.makeAbs=makeAbs;a.finish=finish;a.mark=mark;a.isIgnored=isIgnored;a.childrenIgnored=childrenIgnored;function ownProp(e,a){return Object.prototype.hasOwnProperty.call(e,a)}var i=r(5747);var n=r(5622);var p=r(3973);var o=r(8714);var d=p.Minimatch;function alphasort(e,a){return e.localeCompare(a,"en")}function setupIgnores(e,a){e.ignore=a.ignore||[];if(!Array.isArray(e.ignore))e.ignore=[e.ignore];if(e.ignore.length){e.ignore=e.ignore.map(ignoreMap)}}function ignoreMap(e){var a=null;if(e.slice(-3)==="/**"){var r=e.replace(/(\/\*\*)+$/,"");a=new d(r,{dot:true})}return{matcher:new d(e,{dot:true}),gmatcher:a}}function setopts(e,a,r){if(!r)r={};if(r.matchBase&&-1===a.indexOf("/")){if(r.noglobstar){throw new Error("base matching requires globstar")}a="**/"+a}e.silent=!!r.silent;e.pattern=a;e.strict=r.strict!==false;e.realpath=!!r.realpath;e.realpathCache=r.realpathCache||Object.create(null);e.follow=!!r.follow;e.dot=!!r.dot;e.mark=!!r.mark;e.nodir=!!r.nodir;if(e.nodir)e.mark=true;e.sync=!!r.sync;e.nounique=!!r.nounique;e.nonull=!!r.nonull;e.nosort=!!r.nosort;e.nocase=!!r.nocase;e.stat=!!r.stat;e.noprocess=!!r.noprocess;e.absolute=!!r.absolute;e.fs=r.fs||i;e.maxLength=r.maxLength||Infinity;e.cache=r.cache||Object.create(null);e.statCache=r.statCache||Object.create(null);e.symlinks=r.symlinks||Object.create(null);setupIgnores(e,r);e.changedCwd=false;var p=process.cwd();if(!ownProp(r,"cwd"))e.cwd=p;else{e.cwd=n.resolve(r.cwd);e.changedCwd=e.cwd!==p}e.root=r.root||n.resolve(e.cwd,"/");e.root=n.resolve(e.root);if(process.platform==="win32")e.root=e.root.replace(/\\/g,"/");e.cwdAbs=o(e.cwd)?e.cwd:makeAbs(e,e.cwd);if(process.platform==="win32")e.cwdAbs=e.cwdAbs.replace(/\\/g,"/");e.nomount=!!r.nomount;r.nonegate=true;r.nocomment=true;e.minimatch=new d(a,r);e.options=e.minimatch.options}function finish(e){var a=e.nounique;var r=a?[]:Object.create(null);for(var i=0,n=e.matches.length;i{e.exports=glob;var i=r(6863);var n=r(3973);var p=n.Minimatch;var o=r(4124);var d=r(8614).EventEmitter;var s=r(5622);var l=r(2357);var u=r(8714);var m=r(9010);var c=r(7625);var h=c.setopts;var v=c.ownProp;var g=r(2492);var y=r(1669);var w=c.childrenIgnored;var b=c.isIgnored;var S=r(1223);function glob(e,a,r){if(typeof a==="function")r=a,a={};if(!a)a={};if(a.sync){if(r)throw new TypeError("callback provided to sync glob");return m(e,a)}return new Glob(e,a,r)}glob.sync=m;var _=glob.GlobSync=m.GlobSync;glob.glob=glob;function extend(e,a){if(a===null||typeof a!=="object"){return e}var r=Object.keys(a);var i=r.length;while(i--){e[r[i]]=a[r[i]]}return e}glob.hasMagic=function(e,a){var r=extend({},a);r.noprocess=true;var i=new Glob(e,r);var n=i.minimatch.set;if(!e)return false;if(n.length>1)return true;for(var p=0;pthis.maxLength)return a();if(!this.stat&&v(this.cache,r)){var n=this.cache[r];if(Array.isArray(n))n="DIR";if(!i||n==="DIR")return a(null,n);if(i&&n==="FILE")return a()}var p;var o=this.statCache[r];if(o!==undefined){if(o===false)return a(null,o);else{var d=o.isDirectory()?"DIR":"FILE";if(i&&d==="FILE")return a();else return a(null,d,o)}}var s=this;var l=g("stat\0"+r,lstatcb_);if(l)s.fs.lstat(r,l);function lstatcb_(i,n){if(n&&n.isSymbolicLink()){return s.fs.stat(r,(function(i,p){if(i)s._stat2(e,r,null,n,a);else s._stat2(e,r,i,p,a)}))}else{s._stat2(e,r,i,n,a)}}};Glob.prototype._stat2=function(e,a,r,i,n){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR")){this.statCache[a]=false;return n()}var p=e.slice(-1)==="/";this.statCache[a]=i;if(a.slice(-1)==="/"&&i&&!i.isDirectory())return n(null,false,i);var o=true;if(i)o=i.isDirectory()?"DIR":"FILE";this.cache[a]=this.cache[a]||o;if(p&&o==="FILE")return n();return n(null,o,i)}},9010:(e,a,r)=>{e.exports=globSync;globSync.GlobSync=GlobSync;var i=r(6863);var n=r(3973);var p=n.Minimatch;var o=r(1957).Glob;var d=r(1669);var s=r(5622);var l=r(2357);var u=r(8714);var m=r(7625);var c=m.setopts;var h=m.ownProp;var v=m.childrenIgnored;var g=m.isIgnored;function globSync(e,a){if(typeof a==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(e,a).found}function GlobSync(e,a){if(!e)throw new Error("must provide pattern");if(typeof a==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(e,a);c(this,e,a);if(this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var i=0;ithis.maxLength)return false;if(!this.stat&&h(this.cache,a)){var i=this.cache[a];if(Array.isArray(i))i="DIR";if(!r||i==="DIR")return i;if(r&&i==="FILE")return false}var n;var p=this.statCache[a];if(!p){var o;try{o=this.fs.lstatSync(a)}catch(e){if(e&&(e.code==="ENOENT"||e.code==="ENOTDIR")){this.statCache[a]=false;return false}}if(o&&o.isSymbolicLink()){try{p=this.fs.statSync(a)}catch(e){p=o}}else{p=o}}this.statCache[a]=p;var i=true;if(p)i=p.isDirectory()?"DIR":"FILE";this.cache[a]=this.cache[a]||i;if(r&&i==="FILE")return false;return i};GlobSync.prototype._mark=function(e){return m.mark(this,e)};GlobSync.prototype._makeAbs=function(e){return m.makeAbs(this,e)}},1621:e=>{"use strict";e.exports=(e,a=process.argv)=>{const r=e.startsWith("-")?"":e.length===1?"-":"--";const i=a.indexOf(r+e);const n=a.indexOf("--");return i!==-1&&(n===-1||i{"use strict";e.exports=Math.imul||function(e,a){var r=e>>>16&65535;var i=e&65535;var n=a>>>16&65535;var p=a&65535;return i*p+(r*p+i*n<<16>>>0)|0}},2492:(e,a,r)=>{var i=r(2940);var n=Object.create(null);var p=r(1223);e.exports=i(inflight);function inflight(e,a){if(n[e]){n[e].push(a);return null}else{n[e]=[a];return makeres(e)}}function makeres(e){return p((function RES(){var a=n[e];var r=a.length;var i=slice(arguments);try{for(var p=0;pr){a.splice(0,r);process.nextTick((function(){RES.apply(null,i)}))}else{delete n[e]}}}))}function slice(e){var a=e.length;var r=[];for(var i=0;i{try{var i=r(1669);if(typeof i.inherits!=="function")throw"";e.exports=i.inherits}catch(a){e.exports=r(8544)}},8544:e=>{if(typeof Object.create==="function"){e.exports=function inherits(e,a){if(a){e.super_=a;e.prototype=Object.create(a.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}}}else{e.exports=function inherits(e,a){if(a){e.super_=a;var TempCtor=function(){};TempCtor.prototype=a.prototype;e.prototype=new TempCtor;e.prototype.constructor=e}}}},5625:e=>{ /*! * Determine if an object is a Buffer * diff --git a/dist/update_recipes/index.js b/dist/update_recipes/index.js index 5b8119d..3b13fbd 100644 --- a/dist/update_recipes/index.js +++ b/dist/update_recipes/index.js @@ -1,4 +1,4 @@ -(()=>{var __webpack_modules__={3319:(e,t,a)=>{const i=a(5622);const n=a(5747);const r=a(2186);const o=a(1514);const s=a(7799);const p=a(8090);const l=a(5008);async function getStdOut(...e){let t=await o.getExecOutput(...e);return t.stdout.trim()}async function getConanVersion(){let e=await getStdOut("conan",["--version"]);return e.match(/[\d]+\.[\d]+\.[\d]+/g)[0]}async function getCompilerVersion(e){if(process.platform==="win32"){return"msvc-"+e.match(/[\d]+/g)[0]}else if(process.platform==="darwin"){return"clang-"+await getStdOut("clang",["-dumpversion"])}else{return"gcc-"+await getStdOut("gcc",["-dumpfullversion"])}}async function getConanCacheKeys(e){const t=i.join(workspaceDir,"cmake-proxies/CMakeLists.txt");const a=l.getMD5(t);const n=await getConanVersion();const r=["conan",n,process.platform,await getCompilerVersion(e)].join("-");const o=[r,depsMD5].join("-");return{key:o,restoreKeys:[r]}}async function restoreConanCache(e){try{return e.key==await s.restoreCache([conanCachePath],e.key,e.restoreKeys)}catch(e){l.log("Failed to restore the cache: "+e.message);return false}}async function uploadBinaries(){const e=await p.create(`${workspaceDir}/.conan/data/**/build`);const t=await e.glob();if(t.length==0){l.log("No new binaries were built. Skipping upload.");return}const a=process.env["CONAN_BINARIES_REMOTE"];if(a){await l.execWithLog(`conan remote add audacity-binaries-upload ${a} true --force`);await l.execWithLog(`conan upload "*" -r audacity-binaries-upload -c --all`)}}async function cleanupConanBuilds(){l.log("Cleaning up conan build cache");await l.execWithLog('conan remove "*" --src --builds --force')}async function storeConanCache(e){try{await s.saveCache([conanCachePath],e.key)}catch(e){l.error("Failed to save the cache: "+e.message)}}async function setupConan(){r.exportVariable("CONAN_USER_HOME",workspaceDir);r.exportVariable("CONAN_REVISIONS_ENABLED","1")}e.exports={setupConan:setupConan,getConanCacheKeys:getConanCacheKeys,restoreConanCache:restoreConanCache,cleanupConanBuilds:cleanupConanBuilds,storeConanCache:storeConanCache,uploadBinaries:uploadBinaries}},5008:(e,t,a)=>{const i=a(2186);const n=a(1514);const r=a(5622);const o=a(1711);const s=process.env["CI"];global.workspaceDir=process.env["GITHUB_WORKSPACE"];global.conanCachePath=r.join(workspaceDir,".conan");function log(e){if(s){i.info(e)}else{console.log(e)}}function error(e){if(s){i.error(e)}else{console.error(e)}}async function execWithLog(e,arguments){if(s){return n.exec(e,arguments)}else{return n.exec(e,arguments,{listeners:{stdout:e=>{log(e.toString())},stderr:e=>{error(e.toString())}}})}}async function getExecOutput(e,arguments){if(s){return n.getExecOutput(e,arguments)}else{return n.getExecOutput(e,arguments,{listeners:{stdout:e=>{log(e.toString())},stderr:e=>{error(e.toString())}}})}}async function awaitAll(e,t){return await Promise.all(e.map((async e=>t(e))))}async function getMD5(e){const t=await fs.promises.readFileSync(e);return o(t)}function getDateString(){const e=new Date;return[e.getFullYear(),("0"+(e.getMonth()+1)).slice(-2),("0"+e.getDate()).slice(-2)].join("")}const sleep=e=>new Promise((t=>setTimeout(t,e)));process.on("unhandledRejection",((e,t)=>{error(e);i.setFailed(err);process.exit(1)})).on("uncaughtException",(e=>{error(e);i.setFailed(e);process.exit(1)}));e.exports={log:log,error:error,execWithLog:execWithLog,getExecOutput:getExecOutput,sleep:sleep,awaitAll:awaitAll,getMD5:getMD5,getDateString:getDateString}},7799:function(e,t,a){"use strict";var i=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(Object.hasOwnProperty.call(e,a))t[a]=e[a];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const r=n(a(2186));const o=n(a(5622));const s=n(a(1518));const p=n(a(8245));const l=a(6490);class ValidationError extends Error{constructor(e){super(e);this.name="ValidationError";Object.setPrototypeOf(this,ValidationError.prototype)}}t.ValidationError=ValidationError;class ReserveCacheError extends Error{constructor(e){super(e);this.name="ReserveCacheError";Object.setPrototypeOf(this,ReserveCacheError.prototype)}}t.ReserveCacheError=ReserveCacheError;function checkPaths(e){if(!e||e.length===0){throw new ValidationError(`Path Validation Error: At least one directory or file path is required`)}}function checkKey(e){if(e.length>512){throw new ValidationError(`Key Validation Error: ${e} cannot be larger than 512 characters.`)}const t=/^[^,]*$/;if(!t.test(e)){throw new ValidationError(`Key Validation Error: ${e} cannot contain commas.`)}}function restoreCache(e,t,a,n){return i(this,void 0,void 0,(function*(){checkPaths(e);a=a||[];const i=[t,...a];r.debug("Resolved Keys:");r.debug(JSON.stringify(i));if(i.length>10){throw new ValidationError(`Key Validation Error: Keys are limited to a maximum of 10.`)}for(const e of i){checkKey(e)}const c=yield s.getCompressionMethod();const d=yield p.getCacheEntry(i,e,{compressionMethod:c});if(!(d===null||d===void 0?void 0:d.archiveLocation)){return undefined}const m=o.join(yield s.createTempDirectory(),s.getCacheFileName(c));r.debug(`Archive Path: ${m}`);try{yield p.downloadCache(d.archiveLocation,m,n);if(r.isDebug()){yield l.listTar(m,c)}const e=s.getArchiveFileSizeInBytes(m);r.info(`Cache Size: ~${Math.round(e/(1024*1024))} MB (${e} B)`);yield l.extractTar(m,c);r.info("Cache restored successfully")}finally{try{yield s.unlinkFile(m)}catch(e){r.debug(`Failed to delete archive: ${e}`)}}return d.cacheKey}))}t.restoreCache=restoreCache;function saveCache(e,t,a){return i(this,void 0,void 0,(function*(){checkPaths(e);checkKey(t);const i=yield s.getCompressionMethod();r.debug("Reserving Cache");const n=yield p.reserveCache(t,e,{compressionMethod:i});if(n===-1){throw new ReserveCacheError(`Unable to reserve cache with key ${t}, another job may be creating this cache.`)}r.debug(`Cache ID: ${n}`);const c=yield s.resolvePaths(e);r.debug("Cache Paths:");r.debug(`${JSON.stringify(c)}`);const d=yield s.createTempDirectory();const m=o.join(d,s.getCacheFileName(i));r.debug(`Archive Path: ${m}`);try{yield l.createTar(d,c,i);if(r.isDebug()){yield l.listTar(m,i)}const e=10*1024*1024*1024;const t=s.getArchiveFileSizeInBytes(m);r.debug(`File Size: ${t}`);if(t>e){throw new Error(`Cache size of ~${Math.round(t/(1024*1024))} MB (${t} B) is over the 10GB limit, not saving cache.`)}r.debug(`Saving Cache (ID: ${n})`);yield p.saveCache(n,m,a)}finally{try{yield s.unlinkFile(m)}catch(e){r.debug(`Failed to delete archive: ${e}`)}}return n}))}t.saveCache=saveCache},8245:function(e,t,a){"use strict";var i=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(Object.hasOwnProperty.call(e,a))t[a]=e[a];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const r=n(a(2186));const o=a(9925);const s=a(3702);const p=n(a(6417));const l=n(a(5747));const c=a(8835);const d=n(a(1518));const m=a(8840);const u=a(5500);const f=a(6215);const h=a(3981);const g="1.0";function getCacheApiUrl(e){const t=(process.env["ACTIONS_CACHE_URL"]||process.env["ACTIONS_RUNTIME_URL"]||"").replace("pipelines","artifactcache");if(!t){throw new Error("Cache Service Url not found, unable to restore cache.")}const a=`${t}_apis/artifactcache/${e}`;r.debug(`Resource Url: ${a}`);return a}function createAcceptHeader(e,t){return`${e};api-version=${t}`}function getRequestOptions(){const e={headers:{Accept:createAcceptHeader("application/json","6.0-preview.1")}};return e}function createHttpClient(){const e=process.env["ACTIONS_RUNTIME_TOKEN"]||"";const t=new s.BearerCredentialHandler(e);return new o.HttpClient("actions/cache",[t],getRequestOptions())}function getCacheVersion(e,t){const a=e.concat(!t||t===m.CompressionMethod.Gzip?[]:[t]);a.push(g);return p.createHash("sha256").update(a.join("|")).digest("hex")}t.getCacheVersion=getCacheVersion;function getCacheEntry(e,t,a){return i(this,void 0,void 0,(function*(){const n=createHttpClient();const o=getCacheVersion(t,a===null||a===void 0?void 0:a.compressionMethod);const s=`cache?keys=${encodeURIComponent(e.join(","))}&version=${o}`;const p=yield h.retryTypedResponse("getCacheEntry",(()=>i(this,void 0,void 0,(function*(){return n.getJson(getCacheApiUrl(s))}))));if(p.statusCode===204){return null}if(!h.isSuccessStatusCode(p.statusCode)){throw new Error(`Cache service responded with ${p.statusCode}`)}const l=p.result;const c=l===null||l===void 0?void 0:l.archiveLocation;if(!c){throw new Error("Cache not found.")}r.setSecret(c);r.debug(`Cache Result:`);r.debug(JSON.stringify(l));return l}))}t.getCacheEntry=getCacheEntry;function downloadCache(e,t,a){return i(this,void 0,void 0,(function*(){const i=new c.URL(e);const n=f.getDownloadOptions(a);if(n.useAzureSdk&&i.hostname.endsWith(".blob.core.windows.net")){yield u.downloadCacheStorageSDK(e,t,n)}else{yield u.downloadCacheHttpClient(e,t)}}))}t.downloadCache=downloadCache;function reserveCache(e,t,a){var n,r;return i(this,void 0,void 0,(function*(){const o=createHttpClient();const s=getCacheVersion(t,a===null||a===void 0?void 0:a.compressionMethod);const p={key:e,version:s};const l=yield h.retryTypedResponse("reserveCache",(()=>i(this,void 0,void 0,(function*(){return o.postJson(getCacheApiUrl("caches"),p)}))));return(r=(n=l===null||l===void 0?void 0:l.result)===null||n===void 0?void 0:n.cacheId)!==null&&r!==void 0?r:-1}))}t.reserveCache=reserveCache;function getContentRange(e,t){return`bytes ${e}-${t}/*`}function uploadChunk(e,t,a,n,o){return i(this,void 0,void 0,(function*(){r.debug(`Uploading chunk of size ${o-n+1} bytes at offset ${n} with content range: ${getContentRange(n,o)}`);const s={"Content-Type":"application/octet-stream","Content-Range":getContentRange(n,o)};const p=yield h.retryHttpClientResponse(`uploadChunk (start: ${n}, end: ${o})`,(()=>i(this,void 0,void 0,(function*(){return e.sendStream("PATCH",t,a(),s)}))));if(!h.isSuccessStatusCode(p.message.statusCode)){throw new Error(`Cache service responded with ${p.message.statusCode} during upload chunk.`)}}))}function uploadFile(e,t,a,n){return i(this,void 0,void 0,(function*(){const o=d.getArchiveFileSizeInBytes(a);const s=getCacheApiUrl(`caches/${t.toString()}`);const p=l.openSync(a,"r");const c=f.getUploadOptions(n);const m=d.assertDefined("uploadConcurrency",c.uploadConcurrency);const u=d.assertDefined("uploadChunkSize",c.uploadChunkSize);const h=[...new Array(m).keys()];r.debug("Awaiting all uploads");let g=0;try{yield Promise.all(h.map((()=>i(this,void 0,void 0,(function*(){while(gl.createReadStream(a,{fd:p,start:i,end:n,autoClose:false}).on("error",(e=>{throw new Error(`Cache upload failed because file read failed with ${e.message}`)}))),i,n)}})))))}finally{l.closeSync(p)}return}))}function commitCache(e,t,a){return i(this,void 0,void 0,(function*(){const n={size:a};return yield h.retryTypedResponse("commitCache",(()=>i(this,void 0,void 0,(function*(){return e.postJson(getCacheApiUrl(`caches/${t.toString()}`),n)}))))}))}function saveCache(e,t,a){return i(this,void 0,void 0,(function*(){const i=createHttpClient();r.debug("Upload cache");yield uploadFile(i,e,t,a);r.debug("Commiting cache");const n=d.getArchiveFileSizeInBytes(t);r.info(`Cache Size: ~${Math.round(n/(1024*1024))} MB (${n} B)`);const o=yield commitCache(i,e,n);if(!h.isSuccessStatusCode(o.statusCode)){throw new Error(`Cache service responded with ${o.statusCode} during commit cache.`)}r.info("Cache saved successfully")}))}t.saveCache=saveCache},1518:function(e,t,a){"use strict";var i=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var n=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],a;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),a={},verb("next"),verb("throw"),verb("return"),a[Symbol.asyncIterator]=function(){return this},a);function verb(t){a[t]=e[t]&&function(a){return new Promise((function(i,n){a=e[t](a),settle(i,n,a.done,a.value)}))}}function settle(e,t,a,i){Promise.resolve(i).then((function(t){e({value:t,done:a})}),t)}};var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(Object.hasOwnProperty.call(e,a))t[a]=e[a];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=r(a(2186));const s=r(a(1514));const p=r(a(1597));const l=r(a(7436));const c=r(a(5747));const d=r(a(5622));const m=r(a(5911));const u=r(a(1669));const f=a(2155);const h=a(8840);function createTempDirectory(){return i(this,void 0,void 0,(function*(){const e=process.platform==="win32";let t=process.env["RUNNER_TEMP"]||"";if(!t){let a;if(e){a=process.env["USERPROFILE"]||"C:\\"}else{if(process.platform==="darwin"){a="/Users"}else{a="/home"}}t=d.join(a,"actions","temp")}const a=d.join(t,f.v4());yield l.mkdirP(a);return a}))}t.createTempDirectory=createTempDirectory;function getArchiveFileSizeInBytes(e){return c.statSync(e).size}t.getArchiveFileSizeInBytes=getArchiveFileSizeInBytes;function resolvePaths(e){var t,a;var r;return i(this,void 0,void 0,(function*(){const i=[];const s=(r=process.env["GITHUB_WORKSPACE"])!==null&&r!==void 0?r:process.cwd();const l=yield p.create(e.join("\n"),{implicitDescendants:false});try{for(var c=n(l.globGenerator()),m;m=yield c.next(),!m.done;){const e=m.value;const t=d.relative(s,e).replace(new RegExp(`\\${d.sep}`,"g"),"/");o.debug(`Matched: ${t}`);i.push(`${t}`)}}catch(e){t={error:e}}finally{try{if(m&&!m.done&&(a=c.return))yield a.call(c)}finally{if(t)throw t.error}}return i}))}t.resolvePaths=resolvePaths;function unlinkFile(e){return i(this,void 0,void 0,(function*(){return u.promisify(c.unlink)(e)}))}t.unlinkFile=unlinkFile;function getVersion(e){return i(this,void 0,void 0,(function*(){o.debug(`Checking ${e} --version`);let t="";try{yield s.exec(`${e} --version`,[],{ignoreReturnCode:true,silent:true,listeners:{stdout:e=>t+=e.toString(),stderr:e=>t+=e.toString()}})}catch(e){o.debug(e.message)}t=t.trim();o.debug(t);return t}))}function getCompressionMethod(){return i(this,void 0,void 0,(function*(){if(process.platform==="win32"&&!(yield isGnuTarInstalled())){return h.CompressionMethod.Gzip}const e=yield getVersion("zstd");const t=m.clean(e);if(!e.toLowerCase().includes("zstd command line interface")){return h.CompressionMethod.Gzip}else if(!t||m.lt(t,"v1.3.2")){return h.CompressionMethod.ZstdWithoutLong}else{return h.CompressionMethod.Zstd}}))}t.getCompressionMethod=getCompressionMethod;function getCacheFileName(e){return e===h.CompressionMethod.Gzip?h.CacheFilename.Gzip:h.CacheFilename.Zstd}t.getCacheFileName=getCacheFileName;function isGnuTarInstalled(){return i(this,void 0,void 0,(function*(){const e=yield getVersion("tar");return e.toLowerCase().includes("gnu tar")}))}t.isGnuTarInstalled=isGnuTarInstalled;function assertDefined(e,t){if(t===undefined){throw Error(`Expected ${e} but value was undefiend`)}return t}t.assertDefined=assertDefined},8840:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var a;(function(e){e["Gzip"]="cache.tgz";e["Zstd"]="cache.tzst"})(a=t.CacheFilename||(t.CacheFilename={}));var i;(function(e){e["Gzip"]="gzip";e["ZstdWithoutLong"]="zstd-without-long";e["Zstd"]="zstd"})(i=t.CompressionMethod||(t.CompressionMethod={}));t.DefaultRetryAttempts=2;t.DefaultRetryDelay=5e3;t.SocketTimeout=5e3},5500:function(e,t,a){"use strict";var i=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(Object.hasOwnProperty.call(e,a))t[a]=e[a];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const r=n(a(2186));const o=a(9925);const s=a(4100);const p=n(a(4293));const l=n(a(5747));const c=n(a(2413));const d=n(a(1669));const m=n(a(1518));const u=a(8840);const f=a(3981);function pipeResponseToStream(e,t){return i(this,void 0,void 0,(function*(){const a=d.promisify(c.pipeline);yield a(e.message,t)}))}class DownloadProgress{constructor(e){this.contentLength=e;this.segmentIndex=0;this.segmentSize=0;this.segmentOffset=0;this.receivedBytes=0;this.displayedComplete=false;this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize;this.segmentIndex=this.segmentIndex+1;this.segmentSize=e;this.receivedBytes=0;r.debug(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete){return}const e=this.segmentOffset+this.receivedBytes;const t=(100*(e/this.contentLength)).toFixed(1);const a=Date.now()-this.startTime;const i=(e/(1024*1024)/(a/1e3)).toFixed(1);r.info(`Received ${e} of ${this.contentLength} (${t}%), ${i} MBs/sec`);if(this.isDone()){this.displayedComplete=true}}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){const displayCallback=()=>{this.display();if(!this.isDone()){this.timeoutHandle=setTimeout(displayCallback,e)}};this.timeoutHandle=setTimeout(displayCallback,e)}stopDisplayTimer(){if(this.timeoutHandle){clearTimeout(this.timeoutHandle);this.timeoutHandle=undefined}this.display()}}t.DownloadProgress=DownloadProgress;function downloadCacheHttpClient(e,t){return i(this,void 0,void 0,(function*(){const a=l.createWriteStream(t);const n=new o.HttpClient("actions/cache");const s=yield f.retryHttpClientResponse("downloadCache",(()=>i(this,void 0,void 0,(function*(){return n.get(e)}))));s.message.socket.setTimeout(u.SocketTimeout,(()=>{s.message.destroy();r.debug(`Aborting download, socket timed out after ${u.SocketTimeout} ms`)}));yield pipeResponseToStream(s,a);const p=s.message.headers["content-length"];if(p){const e=parseInt(p);const a=m.getArchiveFileSizeInBytes(t);if(a!==e){throw new Error(`Incomplete download. Expected file size: ${e}, actual file size: ${a}`)}}else{r.debug("Unable to validate download, no Content-Length header")}}))}t.downloadCacheHttpClient=downloadCacheHttpClient;function downloadCacheStorageSDK(e,t,a){var n;return i(this,void 0,void 0,(function*(){const i=new s.BlockBlobClient(e,undefined,{retryOptions:{tryTimeoutInMs:a.timeoutInMs}});const o=yield i.getProperties();const c=(n=o.contentLength)!==null&&n!==void 0?n:-1;if(c<0){r.debug("Unable to determine content length, downloading file with http-client...");yield downloadCacheHttpClient(e,t)}else{const e=p.constants.MAX_LENGTH;const n=new DownloadProgress(c);const r=l.openSync(t,"w");try{n.startDisplayTimer();while(!n.isDone()){const t=n.segmentOffset+n.segmentSize;const o=Math.min(e,c-t);n.nextSegment(o);const s=yield i.downloadToBuffer(t,o,{concurrency:a.downloadConcurrency,onProgress:n.onProgress()});l.writeFileSync(r,s)}}finally{n.stopDisplayTimer();l.closeSync(r)}}}))}t.downloadCacheStorageSDK=downloadCacheStorageSDK},3981:function(e,t,a){"use strict";var i=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(Object.hasOwnProperty.call(e,a))t[a]=e[a];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const r=n(a(2186));const o=a(9925);const s=a(8840);function isSuccessStatusCode(e){if(!e){return false}return e>=200&&e<300}t.isSuccessStatusCode=isSuccessStatusCode;function isServerErrorStatusCode(e){if(!e){return true}return e>=500}t.isServerErrorStatusCode=isServerErrorStatusCode;function isRetryableStatusCode(e){if(!e){return false}const t=[o.HttpCodes.BadGateway,o.HttpCodes.ServiceUnavailable,o.HttpCodes.GatewayTimeout];return t.includes(e)}t.isRetryableStatusCode=isRetryableStatusCode;function sleep(e){return i(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,e)))}))}function retry(e,t,a,n=s.DefaultRetryAttempts,o=s.DefaultRetryDelay,p=undefined){return i(this,void 0,void 0,(function*(){let i="";let s=1;while(s<=n){let l=undefined;let c=undefined;let d=false;try{l=yield t()}catch(e){if(p){l=p(e)}d=true;i=e.message}if(l){c=a(l);if(!isServerErrorStatusCode(c)){return l}}if(c){d=isRetryableStatusCode(c);i=`Cache service responded with ${c}`}r.debug(`${e} - Attempt ${s} of ${n} failed with error: ${i}`);if(!d){r.debug(`${e} - Error is not retryable`);break}yield sleep(o);s++}throw Error(`${e} failed: ${i}`)}))}t.retry=retry;function retryTypedResponse(e,t,a=s.DefaultRetryAttempts,n=s.DefaultRetryDelay){return i(this,void 0,void 0,(function*(){return yield retry(e,t,(e=>e.statusCode),a,n,(e=>{if(e instanceof o.HttpClientError){return{statusCode:e.statusCode,result:null,headers:{}}}else{return undefined}}))}))}t.retryTypedResponse=retryTypedResponse;function retryHttpClientResponse(e,t,a=s.DefaultRetryAttempts,n=s.DefaultRetryDelay){return i(this,void 0,void 0,(function*(){return yield retry(e,t,(e=>e.message.statusCode),a,n)}))}t.retryHttpClientResponse=retryHttpClientResponse},6490:function(e,t,a){"use strict";var i=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(Object.hasOwnProperty.call(e,a))t[a]=e[a];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const r=a(1514);const o=n(a(7436));const s=a(5747);const p=n(a(5622));const l=n(a(1518));const c=a(8840);function getTarPath(e,t){return i(this,void 0,void 0,(function*(){switch(process.platform){case"win32":{const a=`${process.env["windir"]}\\System32\\tar.exe`;if(t!==c.CompressionMethod.Gzip){e.push("--force-local")}else if(s.existsSync(a)){return a}else if(yield l.isGnuTarInstalled()){e.push("--force-local")}break}case"darwin":{const t=yield o.which("gtar",false);if(t){e.push("--delay-directory-restore");return t}break}default:break}return yield o.which("tar",true)}))}function execTar(e,t,a){return i(this,void 0,void 0,(function*(){try{yield r.exec(`"${yield getTarPath(e,t)}"`,e,{cwd:a})}catch(e){throw new Error(`Tar failed with error: ${e===null||e===void 0?void 0:e.message}`)}}))}function getWorkingDirectory(){var e;return(e=process.env["GITHUB_WORKSPACE"])!==null&&e!==void 0?e:process.cwd()}function extractTar(e,t){return i(this,void 0,void 0,(function*(){const a=getWorkingDirectory();yield o.mkdirP(a);function getCompressionProgram(){switch(t){case c.CompressionMethod.Zstd:return["--use-compress-program","zstd -d --long=30"];case c.CompressionMethod.ZstdWithoutLong:return["--use-compress-program","zstd -d"];default:return["-z"]}}const i=[...getCompressionProgram(),"-xf",e.replace(new RegExp(`\\${p.sep}`,"g"),"/"),"-P","-C",a.replace(new RegExp(`\\${p.sep}`,"g"),"/")];yield execTar(i,t)}))}t.extractTar=extractTar;function createTar(e,t,a){return i(this,void 0,void 0,(function*(){const i="manifest.txt";const n=l.getCacheFileName(a);s.writeFileSync(p.join(e,i),t.join("\n"));const r=getWorkingDirectory();function getCompressionProgram(){switch(a){case c.CompressionMethod.Zstd:return["--use-compress-program","zstd -T0 --long=30"];case c.CompressionMethod.ZstdWithoutLong:return["--use-compress-program","zstd -T0"];default:return["-z"]}}const o=["--posix",...getCompressionProgram(),"-cf",n.replace(new RegExp(`\\${p.sep}`,"g"),"/"),"-P","-C",r.replace(new RegExp(`\\${p.sep}`,"g"),"/"),"--files-from",i];yield execTar(o,a,e)}))}t.createTar=createTar;function listTar(e,t){return i(this,void 0,void 0,(function*(){function getCompressionProgram(){switch(t){case c.CompressionMethod.Zstd:return["--use-compress-program","zstd -d --long=30"];case c.CompressionMethod.ZstdWithoutLong:return["--use-compress-program","zstd -d"];default:return["-z"]}}const a=[...getCompressionProgram(),"-tf",e.replace(new RegExp(`\\${p.sep}`,"g"),"/"),"-P"];yield execTar(a,t)}))}t.listTar=listTar},6215:function(e,t,a){"use strict";var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(Object.hasOwnProperty.call(e,a))t[a]=e[a];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const n=i(a(2186));function getUploadOptions(e){const t={uploadConcurrency:4,uploadChunkSize:32*1024*1024};if(e){if(typeof e.uploadConcurrency==="number"){t.uploadConcurrency=e.uploadConcurrency}if(typeof e.uploadChunkSize==="number"){t.uploadChunkSize=e.uploadChunkSize}}n.debug(`Upload concurrency: ${t.uploadConcurrency}`);n.debug(`Upload chunk size: ${t.uploadChunkSize}`);return t}t.getUploadOptions=getUploadOptions;function getDownloadOptions(e){const t={useAzureSdk:true,downloadConcurrency:8,timeoutInMs:3e4};if(e){if(typeof e.useAzureSdk==="boolean"){t.useAzureSdk=e.useAzureSdk}if(typeof e.downloadConcurrency==="number"){t.downloadConcurrency=e.downloadConcurrency}if(typeof e.timeoutInMs==="number"){t.timeoutInMs=e.timeoutInMs}}n.debug(`Use Azure SDK: ${t.useAzureSdk}`);n.debug(`Download concurrency: ${t.downloadConcurrency}`);n.debug(`Request timeout (ms): ${t.timeoutInMs}`);return t}t.getDownloadOptions=getDownloadOptions},1597:function(e,t,a){"use strict";var i=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.create=void 0;const n=a(7341);function create(e,t){return i(this,void 0,void 0,(function*(){return yield n.DefaultGlobber.create(e,t)}))}t.create=create},9350:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOptions=void 0;const o=r(a(2186));function getOptions(e){const t={followSymbolicLinks:true,implicitDescendants:true,omitBrokenSymbolicLinks:true};if(e){if(typeof e.followSymbolicLinks==="boolean"){t.followSymbolicLinks=e.followSymbolicLinks;o.debug(`followSymbolicLinks '${t.followSymbolicLinks}'`)}if(typeof e.implicitDescendants==="boolean"){t.implicitDescendants=e.implicitDescendants;o.debug(`implicitDescendants '${t.implicitDescendants}'`)}if(typeof e.omitBrokenSymbolicLinks==="boolean"){t.omitBrokenSymbolicLinks=e.omitBrokenSymbolicLinks;o.debug(`omitBrokenSymbolicLinks '${t.omitBrokenSymbolicLinks}'`)}}return t}t.getOptions=getOptions},7341:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var o=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var s=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],a;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),a={},verb("next"),verb("throw"),verb("return"),a[Symbol.asyncIterator]=function(){return this},a);function verb(t){a[t]=e[t]&&function(a){return new Promise((function(i,n){a=e[t](a),settle(i,n,a.done,a.value)}))}}function settle(e,t,a,i){Promise.resolve(i).then((function(t){e({value:t,done:a})}),t)}};var p=this&&this.__await||function(e){return this instanceof p?(this.v=e,this):new p(e)};var l=this&&this.__asyncGenerator||function(e,t,a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=a.apply(e,t||[]),n,r=[];return n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n;function verb(e){if(i[e])n[e]=function(t){return new Promise((function(a,i){r.push([e,t,a,i])>1||resume(e,t)}))}}function resume(e,t){try{step(i[e](t))}catch(e){settle(r[0][3],e)}}function step(e){e.value instanceof p?Promise.resolve(e.value.v).then(fulfill,reject):settle(r[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),r.shift(),r.length)resume(r[0][0],r[0][1])}};Object.defineProperty(t,"__esModule",{value:true});t.DefaultGlobber=void 0;const c=r(a(2186));const d=r(a(5747));const m=r(a(9350));const u=r(a(5622));const f=r(a(5186));const h=a(836);const g=a(5343);const y=a(8530);const v=process.platform==="win32";class DefaultGlobber{constructor(e){this.patterns=[];this.searchPaths=[];this.options=m.getOptions(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){var e,t;return o(this,void 0,void 0,(function*(){const a=[];try{for(var i=s(this.globGenerator()),n;n=yield i.next(),!n.done;){const e=n.value;a.push(e)}}catch(t){e={error:t}}finally{try{if(n&&!n.done&&(t=i.return))yield t.call(i)}finally{if(e)throw e.error}}return a}))}globGenerator(){return l(this,arguments,(function*globGenerator_1(){const e=m.getOptions(this.options);const t=[];for(const a of this.patterns){t.push(a);if(e.implicitDescendants&&(a.trailingSeparator||a.segments[a.segments.length-1]!=="**")){t.push(new g.Pattern(a.negate,true,a.segments.concat("**")))}}const a=[];for(const e of f.getSearchPaths(t)){c.debug(`Search path '${e}'`);try{yield p(d.promises.lstat(e))}catch(e){if(e.code==="ENOENT"){continue}throw e}a.unshift(new y.SearchState(e,1))}const i=[];while(a.length){const n=a.pop();const r=f.match(t,n.path);const o=!!r||f.partialMatch(t,n.path);if(!r&&!o){continue}const s=yield p(DefaultGlobber.stat(n,e,i));if(!s){continue}if(s.isDirectory()){if(r&h.MatchKind.Directory){yield yield p(n.path)}else if(!o){continue}const e=n.level+1;const t=(yield p(d.promises.readdir(n.path))).map((t=>new y.SearchState(u.join(n.path,t),e)));a.push(...t.reverse())}else if(r&h.MatchKind.File){yield yield p(n.path)}}}))}static create(e,t){return o(this,void 0,void 0,(function*(){const a=new DefaultGlobber(t);if(v){e=e.replace(/\r\n/g,"\n");e=e.replace(/\r/g,"\n")}const i=e.split("\n").map((e=>e.trim()));for(const e of i){if(!e||e.startsWith("#")){continue}else{a.patterns.push(new g.Pattern(e))}}a.searchPaths.push(...f.getSearchPaths(a.patterns));return a}))}static stat(e,t,a){return o(this,void 0,void 0,(function*(){let i;if(t.followSymbolicLinks){try{i=yield d.promises.stat(e.path)}catch(a){if(a.code==="ENOENT"){if(t.omitBrokenSymbolicLinks){c.debug(`Broken symlink '${e.path}'`);return undefined}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw a}}else{i=yield d.promises.lstat(e.path)}if(i.isDirectory()&&t.followSymbolicLinks){const t=yield d.promises.realpath(e.path);while(a.length>=e.level){a.pop()}if(a.some((e=>e===t))){c.debug(`Symlink cycle detected for path '${e.path}' and realpath '${t}'`);return undefined}a.push(t)}return i}))}}t.DefaultGlobber=DefaultGlobber},836:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MatchKind=void 0;var a;(function(e){e[e["None"]=0]="None";e[e["Directory"]=1]="Directory";e[e["File"]=2]="File";e[e["All"]=3]="All"})(a=t.MatchKind||(t.MatchKind={}))},22:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.safeTrimTrailingSeparator=t.normalizeSeparators=t.hasRoot=t.hasAbsoluteRoot=t.ensureAbsoluteRoot=t.dirname=void 0;const s=r(a(5622));const p=o(a(2357));const l=process.platform==="win32";function dirname(e){e=safeTrimTrailingSeparator(e);if(l&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(e)){return e}let t=s.dirname(e);if(l&&/^\\\\[^\\]+\\[^\\]+\\$/.test(t)){t=safeTrimTrailingSeparator(t)}return t}t.dirname=dirname;function ensureAbsoluteRoot(e,t){p.default(e,`ensureAbsoluteRoot parameter 'root' must not be empty`);p.default(t,`ensureAbsoluteRoot parameter 'itemPath' must not be empty`);if(hasAbsoluteRoot(t)){return t}if(l){if(t.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let e=process.cwd();p.default(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);if(t[0].toUpperCase()===e[0].toUpperCase()){if(t.length===2){return`${t[0]}:\\${e.substr(3)}`}else{if(!e.endsWith("\\")){e+="\\"}return`${t[0]}:\\${e.substr(3)}${t.substr(2)}`}}else{return`${t[0]}:\\${t.substr(2)}`}}else if(normalizeSeparators(t).match(/^\\$|^\\[^\\]/)){const e=process.cwd();p.default(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);return`${e[0]}:\\${t.substr(1)}`}}p.default(hasAbsoluteRoot(e),`ensureAbsoluteRoot parameter 'root' must have an absolute root`);if(e.endsWith("/")||l&&e.endsWith("\\")){}else{e+=s.sep}return e+t}t.ensureAbsoluteRoot=ensureAbsoluteRoot;function hasAbsoluteRoot(e){p.default(e,`hasAbsoluteRoot parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(l){return e.startsWith("\\\\")||/^[A-Z]:\\/i.test(e)}return e.startsWith("/")}t.hasAbsoluteRoot=hasAbsoluteRoot;function hasRoot(e){p.default(e,`isRooted parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(l){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.hasRoot=hasRoot;function normalizeSeparators(e){e=e||"";if(l){e=e.replace(/\//g,"\\");const t=/^\\\\+[^\\]/.test(e);return(t?"\\":"")+e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}t.normalizeSeparators=normalizeSeparators;function safeTrimTrailingSeparator(e){if(!e){return""}e=normalizeSeparators(e);if(!e.endsWith(s.sep)){return e}if(e===s.sep){return e}if(l&&/^[A-Z]:\\$/i.test(e)){return e}return e.substr(0,e.length-1)}t.safeTrimTrailingSeparator=safeTrimTrailingSeparator},9413:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.Path=void 0;const s=r(a(5622));const p=r(a(22));const l=o(a(2357));const c=process.platform==="win32";class Path{constructor(e){this.segments=[];if(typeof e==="string"){l.default(e,`Parameter 'itemPath' must not be empty`);e=p.safeTrimTrailingSeparator(e);if(!p.hasRoot(e)){this.segments=e.split(s.sep)}else{let t=e;let a=p.dirname(t);while(a!==t){const e=s.basename(t);this.segments.unshift(e);t=a;a=p.dirname(t)}this.segments.unshift(t)}}else{l.default(e.length>0,`Parameter 'itemPath' must not be an empty array`);for(let t=0;t!e.negate));const t={};for(const a of e){const e=p?a.searchPath.toUpperCase():a.searchPath;t[e]="candidate"}const a=[];for(const i of e){const e=p?i.searchPath.toUpperCase():i.searchPath;if(t[e]==="included"){continue}let n=false;let r=e;let s=o.dirname(r);while(s!==r){if(t[s]){n=true;break}r=s;s=o.dirname(r)}if(!n){a.push(i.searchPath);t[e]="included"}}return a}t.getSearchPaths=getSearchPaths;function match(e,t){let a=s.MatchKind.None;for(const i of e){if(i.negate){a&=~i.match(t)}else{a|=i.match(t)}}return a}t.match=match;function partialMatch(e,t){return e.some((e=>!e.negate&&e.partialMatch(t)))}t.partialMatch=partialMatch},5343:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.Pattern=void 0;const s=r(a(2087));const p=r(a(5622));const l=r(a(22));const c=o(a(2357));const d=a(3973);const m=a(836);const u=a(9413);const f=process.platform==="win32";class Pattern{constructor(e,t=false,a,i){this.negate=false;let n;if(typeof e==="string"){n=e.trim()}else{a=a||[];c.default(a.length,`Parameter 'segments' must not empty`);const t=Pattern.getLiteral(a[0]);c.default(t&&l.hasAbsoluteRoot(t),`Parameter 'segments' first element must be a root path`);n=new u.Path(a).toString().trim();if(e){n=`!${n}`}}while(n.startsWith("!")){this.negate=!this.negate;n=n.substr(1).trim()}n=Pattern.fixupPattern(n,i);this.segments=new u.Path(n).segments;this.trailingSeparator=l.normalizeSeparators(n).endsWith(p.sep);n=l.safeTrimTrailingSeparator(n);let r=false;const o=this.segments.map((e=>Pattern.getLiteral(e))).filter((e=>!r&&!(r=e==="")));this.searchPath=new u.Path(o).toString();this.rootRegExp=new RegExp(Pattern.regExpEscape(o[0]),f?"i":"");this.isImplicitPattern=t;const s={dot:true,nobrace:true,nocase:f,nocomment:true,noext:true,nonegate:true};n=f?n.replace(/\\/g,"/"):n;this.minimatch=new d.Minimatch(n,s)}match(e){if(this.segments[this.segments.length-1]==="**"){e=l.normalizeSeparators(e);if(!e.endsWith(p.sep)&&this.isImplicitPattern===false){e=`${e}${p.sep}`}}else{e=l.safeTrimTrailingSeparator(e)}if(this.minimatch.match(e)){return this.trailingSeparator?m.MatchKind.Directory:m.MatchKind.All}return m.MatchKind.None}partialMatch(e){e=l.safeTrimTrailingSeparator(e);if(l.dirname(e)===e){return this.rootRegExp.test(e)}return this.minimatch.matchOne(e.split(f?/\\+/:/\/+/),this.minimatch.set[0],true)}static globEscape(e){return(f?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,t){c.default(e,"pattern cannot be empty");const a=new u.Path(e).segments.map((e=>Pattern.getLiteral(e)));c.default(a.every(((e,t)=>(e!=="."||t===0)&&e!=="..")),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`);c.default(!l.hasRoot(e)||a[0],`Invalid pattern '${e}'. Root segment must not contain globs.`);e=l.normalizeSeparators(e);if(e==="."||e.startsWith(`.${p.sep}`)){e=Pattern.globEscape(process.cwd())+e.substr(1)}else if(e==="~"||e.startsWith(`~${p.sep}`)){t=t||s.homedir();c.default(t,"Unable to determine HOME directory");c.default(l.hasAbsoluteRoot(t),`Expected HOME directory to be a rooted path. Actual '${t}'`);e=Pattern.globEscape(t)+e.substr(1)}else if(f&&(e.match(/^[A-Z]:$/i)||e.match(/^[A-Z]:[^\\]/i))){let t=l.ensureAbsoluteRoot("C:\\dummy-root",e.substr(0,2));if(e.length>2&&!t.endsWith("\\")){t+="\\"}e=Pattern.globEscape(t)+e.substr(2)}else if(f&&(e==="\\"||e.match(/^\\[^\\]/))){let t=l.ensureAbsoluteRoot("C:\\dummy-root","\\");if(!t.endsWith("\\")){t+="\\"}e=Pattern.globEscape(t)+e.substr(1)}else{e=l.ensureAbsoluteRoot(Pattern.globEscape(process.cwd()),e)}return l.normalizeSeparators(e)}static getLiteral(e){let t="";for(let a=0;a=0){if(i.length>1){return""}if(i){t+=i;a=n;continue}}}t+=i}return t}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,"\\$&")}}t.Pattern=Pattern},8530:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SearchState=void 0;class SearchState{constructor(e,t){this.path=e;this.level=t}}t.SearchState=SearchState},7351:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const o=r(a(2087));const s=a(5278);function issueCommand(e,t,a){const i=new Command(e,t,a);process.stdout.write(i.toString()+o.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const p="::";class Command{constructor(e,t,a){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=a}toString(){let e=p+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const a in this.properties){if(this.properties.hasOwnProperty(a)){const i=this.properties[a];if(i){if(t){t=false}else{e+=","}e+=`${a}=${escapeProperty(i)}`}}}}e+=`${p}${escapeData(this.message)}`;return e}}function escapeData(e){return s.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return s.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var o=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getIDToken=t.getState=t.saveState=t.group=t.endGroup=t.startGroup=t.info=t.notice=t.warning=t.error=t.debug=t.isDebug=t.setFailed=t.setCommandEcho=t.setOutput=t.getBooleanInput=t.getMultilineInput=t.getInput=t.addPath=t.setSecret=t.exportVariable=t.ExitCode=void 0;const s=a(7351);const p=a(717);const l=a(5278);const c=r(a(2087));const d=r(a(5622));const m=a(8041);var u;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(u=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const a=l.toCommandValue(t);process.env[e]=a;const i=process.env["GITHUB_ENV"]||"";if(i){const t="_GitHubActionsFileCommandDelimeter_";const i=`${e}<<${t}${c.EOL}${a}${c.EOL}${t}`;p.issueCommand("ENV",i)}else{s.issueCommand("set-env",{name:e},a)}}t.exportVariable=exportVariable;function setSecret(e){s.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){p.issueCommand("PATH",e)}else{s.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${d.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const a=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!a){throw new Error(`Input required and not supplied: ${e}`)}if(t&&t.trimWhitespace===false){return a}return a.trim()}t.getInput=getInput;function getMultilineInput(e,t){const a=getInput(e,t).split("\n").filter((e=>e!==""));return a}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const a=["true","True","TRUE"];const i=["false","False","FALSE"];const n=getInput(e,t);if(a.includes(n))return true;if(i.includes(n))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}t.getBooleanInput=getBooleanInput;function setOutput(e,t){process.stdout.write(c.EOL);s.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){s.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=u.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){s.issueCommand("debug",{},e)}t.debug=debug;function error(e,t={}){s.issueCommand("error",l.toCommandProperties(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){s.issueCommand("warning",l.toCommandProperties(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){s.issueCommand("notice",l.toCommandProperties(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+c.EOL)}t.info=info;function startGroup(e){s.issue("group",e)}t.startGroup=startGroup;function endGroup(){s.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return o(this,void 0,void 0,(function*(){startGroup(e);let a;try{a=yield t()}finally{endGroup()}return a}))}t.group=group;function saveState(e,t){s.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState;function getIDToken(e){return o(this,void 0,void 0,(function*(){return yield m.OidcClient.getIDToken(e)}))}t.getIDToken=getIDToken},717:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issueCommand=void 0;const o=r(a(5747));const s=r(a(2087));const p=a(5278);function issueCommand(e,t){const a=process.env[`GITHUB_${e}`];if(!a){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!o.existsSync(a)){throw new Error(`Missing file at path: ${a}`)}o.appendFileSync(a,`${p.toCommandValue(t)}${s.EOL}`,{encoding:"utf8"})}t.issueCommand=issueCommand},8041:function(e,t,a){"use strict";var i=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.OidcClient=void 0;const n=a(9925);const r=a(3702);const o=a(2186);class OidcClient{static createHttpClient(e=true,t=10){const a={allowRetries:e,maxRetries:t};return new n.HttpClient("actions/oidc-client",[new r.BearerCredentialHandler(OidcClient.getRequestToken())],a)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var t;return i(this,void 0,void 0,(function*(){const a=OidcClient.createHttpClient();const i=yield a.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)}));const n=(t=i.result)===null||t===void 0?void 0:t.value;if(!n){throw new Error("Response json body do not have ID Token field")}return n}))}static getIDToken(e){return i(this,void 0,void 0,(function*(){try{let t=OidcClient.getIDTokenUrl();if(e){const a=encodeURIComponent(e);t=`${t}&audience=${a}`}o.debug(`ID token url is ${t}`);const a=yield OidcClient.getCall(t);o.setSecret(a);return a}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}t.OidcClient=OidcClient},5278:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toCommandProperties=t.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}t.toCommandProperties=toCommandProperties},1514:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var o=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getExecOutput=t.exec=void 0;const s=a(4304);const p=r(a(8159));function exec(e,t,a){return o(this,void 0,void 0,(function*(){const i=p.argStringToArray(e);if(i.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const n=i[0];t=i.slice(1).concat(t||[]);const r=new p.ToolRunner(n,t,a);return r.exec()}))}t.exec=exec;function getExecOutput(e,t,a){var i,n;return o(this,void 0,void 0,(function*(){let r="";let o="";const p=new s.StringDecoder("utf8");const l=new s.StringDecoder("utf8");const c=(i=a===null||a===void 0?void 0:a.listeners)===null||i===void 0?void 0:i.stdout;const d=(n=a===null||a===void 0?void 0:a.listeners)===null||n===void 0?void 0:n.stderr;const stdErrListener=e=>{o+=l.write(e);if(d){d(e)}};const stdOutListener=e=>{r+=p.write(e);if(c){c(e)}};const m=Object.assign(Object.assign({},a===null||a===void 0?void 0:a.listeners),{stdout:stdOutListener,stderr:stdErrListener});const u=yield exec(e,t,Object.assign(Object.assign({},a),{listeners:m}));r+=p.end();o+=l.end();return{exitCode:u,stdout:r,stderr:o}}))}t.getExecOutput=getExecOutput},8159:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var o=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.argStringToArray=t.ToolRunner=void 0;const s=r(a(2087));const p=r(a(8614));const l=r(a(3129));const c=r(a(5622));const d=r(a(7436));const m=r(a(1962));const u=a(8213);const f=process.platform==="win32";class ToolRunner extends p.EventEmitter{constructor(e,t,a){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=a||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const a=this._getSpawnFileName();const i=this._getSpawnArgs(e);let n=t?"":"[command]";if(f){if(this._isCmdFile()){n+=a;for(const e of i){n+=` ${e}`}}else if(e.windowsVerbatimArguments){n+=`"${a}"`;for(const e of i){n+=` ${e}`}}else{n+=this._windowsQuoteCmdArg(a);for(const e of i){n+=` ${this._windowsQuoteCmdArg(e)}`}}}else{n+=a;for(const e of i){n+=` ${e}`}}return n}_processLineBuffer(e,t,a){try{let i=t+e.toString();let n=i.indexOf(s.EOL);while(n>-1){const e=i.substring(0,n);a(e);i=i.substring(n+s.EOL.length);n=i.indexOf(s.EOL)}return i}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(f){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(f){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const a of this.args){t+=" ";t+=e.windowsVerbatimArguments?a:this._windowsQuoteCmdArg(a)}t+='"';return[t]}}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let a=false;for(const i of e){if(t.some((e=>e===i))){a=true;break}}if(!a){return e}let i='"';let n=true;for(let t=e.length;t>0;t--){i+=e[t-1];if(n&&e[t-1]==="\\"){i+="\\"}else if(e[t-1]==='"'){n=true;i+='"'}else{n=false}}i+='"';return i.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let t='"';let a=true;for(let i=e.length;i>0;i--){t+=e[i-1];if(a&&e[i-1]==="\\"){t+="\\"}else if(e[i-1]==='"'){a=true;t+="\\"}else{a=false}}t+='"';return t.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};t.outStream=e.outStream||process.stdout;t.errStream=e.errStream||process.stderr;return t}_getSpawnOptions(e,t){e=e||{};const a={};a.cwd=e.cwd;a.env=e.env;a["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){a.argv0=`"${t}"`}return a}exec(){return o(this,void 0,void 0,(function*(){if(!m.isRooted(this.toolPath)&&(this.toolPath.includes("/")||f&&this.toolPath.includes("\\"))){this.toolPath=c.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield d.which(this.toolPath,true);return new Promise(((e,t)=>o(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);if(!a.silent&&a.outStream){a.outStream.write(this._getCommandString(a)+s.EOL)}const i=new ExecState(a,this.toolPath);i.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield m.exists(this.options.cwd))){return t(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const n=this._getSpawnFileName();const r=l.spawn(n,this._getSpawnArgs(a),this._getSpawnOptions(this.options,n));let o="";if(r.stdout){r.stdout.on("data",(e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!a.silent&&a.outStream){a.outStream.write(e)}o=this._processLineBuffer(e,o,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let p="";if(r.stderr){r.stderr.on("data",(e=>{i.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!a.silent&&a.errStream&&a.outStream){const t=a.failOnStdErr?a.errStream:a.outStream;t.write(e)}p=this._processLineBuffer(e,p,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}r.on("error",(e=>{i.processError=e.message;i.processExited=true;i.processClosed=true;i.CheckComplete()}));r.on("exit",(e=>{i.processExitCode=e;i.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);i.CheckComplete()}));r.on("close",(e=>{i.processExitCode=e;i.processExited=true;i.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);i.CheckComplete()}));i.on("done",((a,i)=>{if(o.length>0){this.emit("stdline",o)}if(p.length>0){this.emit("errline",p)}r.removeAllListeners();if(a){t(a)}else{e(i)}}));if(this.options.input){if(!r.stdin){throw new Error("child process missing stdin")}r.stdin.end(this.options.input)}}))))}))}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let a=false;let i=false;let n="";function append(e){if(i&&e!=='"'){n+="\\"}n+=e;i=false}for(let r=0;r0){t.push(n);n=""}continue}append(o)}if(n.length>0){t.push(n.trim())}return t}t.argStringToArray=argStringToArray;class ExecState extends p.EventEmitter{constructor(e,t){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!t){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=t;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=u.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(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}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const t=`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(t)}e._setResult()}}},8090:function(e,t,a){"use strict";var i=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.hashFiles=t.create=void 0;const n=a(8298);const r=a(2448);function create(e,t){return i(this,void 0,void 0,(function*(){return yield n.DefaultGlobber.create(e,t)}))}t.create=create;function hashFiles(e,t){return i(this,void 0,void 0,(function*(){let a=true;if(t&&typeof t.followSymbolicLinks==="boolean"){a=t.followSymbolicLinks}const i=yield create(e,{followSymbolicLinks:a});return r.hashFiles(i)}))}t.hashFiles=hashFiles},1026:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOptions=void 0;const o=r(a(2186));function getOptions(e){const t={followSymbolicLinks:true,implicitDescendants:true,matchDirectories:true,omitBrokenSymbolicLinks:true};if(e){if(typeof e.followSymbolicLinks==="boolean"){t.followSymbolicLinks=e.followSymbolicLinks;o.debug(`followSymbolicLinks '${t.followSymbolicLinks}'`)}if(typeof e.implicitDescendants==="boolean"){t.implicitDescendants=e.implicitDescendants;o.debug(`implicitDescendants '${t.implicitDescendants}'`)}if(typeof e.matchDirectories==="boolean"){t.matchDirectories=e.matchDirectories;o.debug(`matchDirectories '${t.matchDirectories}'`)}if(typeof e.omitBrokenSymbolicLinks==="boolean"){t.omitBrokenSymbolicLinks=e.omitBrokenSymbolicLinks;o.debug(`omitBrokenSymbolicLinks '${t.omitBrokenSymbolicLinks}'`)}}return t}t.getOptions=getOptions},8298:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var o=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var s=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],a;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),a={},verb("next"),verb("throw"),verb("return"),a[Symbol.asyncIterator]=function(){return this},a);function verb(t){a[t]=e[t]&&function(a){return new Promise((function(i,n){a=e[t](a),settle(i,n,a.done,a.value)}))}}function settle(e,t,a,i){Promise.resolve(i).then((function(t){e({value:t,done:a})}),t)}};var p=this&&this.__await||function(e){return this instanceof p?(this.v=e,this):new p(e)};var l=this&&this.__asyncGenerator||function(e,t,a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=a.apply(e,t||[]),n,r=[];return n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n;function verb(e){if(i[e])n[e]=function(t){return new Promise((function(a,i){r.push([e,t,a,i])>1||resume(e,t)}))}}function resume(e,t){try{step(i[e](t))}catch(e){settle(r[0][3],e)}}function step(e){e.value instanceof p?Promise.resolve(e.value.v).then(fulfill,reject):settle(r[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),r.shift(),r.length)resume(r[0][0],r[0][1])}};Object.defineProperty(t,"__esModule",{value:true});t.DefaultGlobber=void 0;const c=r(a(2186));const d=r(a(5747));const m=r(a(1026));const u=r(a(5622));const f=r(a(9005));const h=a(1063);const g=a(4536);const y=a(9117);const v=process.platform==="win32";class DefaultGlobber{constructor(e){this.patterns=[];this.searchPaths=[];this.options=m.getOptions(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){var e,t;return o(this,void 0,void 0,(function*(){const a=[];try{for(var i=s(this.globGenerator()),n;n=yield i.next(),!n.done;){const e=n.value;a.push(e)}}catch(t){e={error:t}}finally{try{if(n&&!n.done&&(t=i.return))yield t.call(i)}finally{if(e)throw e.error}}return a}))}globGenerator(){return l(this,arguments,(function*globGenerator_1(){const e=m.getOptions(this.options);const t=[];for(const a of this.patterns){t.push(a);if(e.implicitDescendants&&(a.trailingSeparator||a.segments[a.segments.length-1]!=="**")){t.push(new g.Pattern(a.negate,true,a.segments.concat("**")))}}const a=[];for(const e of f.getSearchPaths(t)){c.debug(`Search path '${e}'`);try{yield p(d.promises.lstat(e))}catch(e){if(e.code==="ENOENT"){continue}throw e}a.unshift(new y.SearchState(e,1))}const i=[];while(a.length){const n=a.pop();const r=f.match(t,n.path);const o=!!r||f.partialMatch(t,n.path);if(!r&&!o){continue}const s=yield p(DefaultGlobber.stat(n,e,i));if(!s){continue}if(s.isDirectory()){if(r&h.MatchKind.Directory&&e.matchDirectories){yield yield p(n.path)}else if(!o){continue}const t=n.level+1;const i=(yield p(d.promises.readdir(n.path))).map((e=>new y.SearchState(u.join(n.path,e),t)));a.push(...i.reverse())}else if(r&h.MatchKind.File){yield yield p(n.path)}}}))}static create(e,t){return o(this,void 0,void 0,(function*(){const a=new DefaultGlobber(t);if(v){e=e.replace(/\r\n/g,"\n");e=e.replace(/\r/g,"\n")}const i=e.split("\n").map((e=>e.trim()));for(const e of i){if(!e||e.startsWith("#")){continue}else{a.patterns.push(new g.Pattern(e))}}a.searchPaths.push(...f.getSearchPaths(a.patterns));return a}))}static stat(e,t,a){return o(this,void 0,void 0,(function*(){let i;if(t.followSymbolicLinks){try{i=yield d.promises.stat(e.path)}catch(a){if(a.code==="ENOENT"){if(t.omitBrokenSymbolicLinks){c.debug(`Broken symlink '${e.path}'`);return undefined}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw a}}else{i=yield d.promises.lstat(e.path)}if(i.isDirectory()&&t.followSymbolicLinks){const t=yield d.promises.realpath(e.path);while(a.length>=e.level){a.pop()}if(a.some((e=>e===t))){c.debug(`Symlink cycle detected for path '${e.path}' and realpath '${t}'`);return undefined}a.push(t)}return i}))}}t.DefaultGlobber=DefaultGlobber},2448:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var o=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var s=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],a;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),a={},verb("next"),verb("throw"),verb("return"),a[Symbol.asyncIterator]=function(){return this},a);function verb(t){a[t]=e[t]&&function(a){return new Promise((function(i,n){a=e[t](a),settle(i,n,a.done,a.value)}))}}function settle(e,t,a,i){Promise.resolve(i).then((function(t){e({value:t,done:a})}),t)}};Object.defineProperty(t,"__esModule",{value:true});t.hashFiles=void 0;const p=r(a(6417));const l=r(a(2186));const c=r(a(5747));const d=r(a(2413));const m=r(a(1669));const u=r(a(5622));function hashFiles(e){var t,a;var i;return o(this,void 0,void 0,(function*(){let n=false;const r=(i=process.env["GITHUB_WORKSPACE"])!==null&&i!==void 0?i:process.cwd();const o=p.createHash("sha256");let f=0;try{for(var h=s(e.globGenerator()),g;g=yield h.next(),!g.done;){const e=g.value;l.debug(e);if(!e.startsWith(`${r}${u.sep}`)){l.debug(`Ignore '${e}' since it is not under GITHUB_WORKSPACE.`);continue}if(c.statSync(e).isDirectory()){l.debug(`Skip directory '${e}'.`);continue}const t=p.createHash("sha256");const a=m.promisify(d.pipeline);yield a(c.createReadStream(e),t);o.write(t.digest());f++;if(!n){n=true}}}catch(e){t={error:e}}finally{try{if(g&&!g.done&&(a=h.return))yield a.call(h)}finally{if(t)throw t.error}}o.end();if(n){l.debug(`Found ${f} files to hash.`);return o.digest("hex")}else{l.debug(`No matches found for glob`);return""}}))}t.hashFiles=hashFiles},1063:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MatchKind=void 0;var a;(function(e){e[e["None"]=0]="None";e[e["Directory"]=1]="Directory";e[e["File"]=2]="File";e[e["All"]=3]="All"})(a=t.MatchKind||(t.MatchKind={}))},1849:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.safeTrimTrailingSeparator=t.normalizeSeparators=t.hasRoot=t.hasAbsoluteRoot=t.ensureAbsoluteRoot=t.dirname=void 0;const s=r(a(5622));const p=o(a(2357));const l=process.platform==="win32";function dirname(e){e=safeTrimTrailingSeparator(e);if(l&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(e)){return e}let t=s.dirname(e);if(l&&/^\\\\[^\\]+\\[^\\]+\\$/.test(t)){t=safeTrimTrailingSeparator(t)}return t}t.dirname=dirname;function ensureAbsoluteRoot(e,t){p.default(e,`ensureAbsoluteRoot parameter 'root' must not be empty`);p.default(t,`ensureAbsoluteRoot parameter 'itemPath' must not be empty`);if(hasAbsoluteRoot(t)){return t}if(l){if(t.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let e=process.cwd();p.default(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);if(t[0].toUpperCase()===e[0].toUpperCase()){if(t.length===2){return`${t[0]}:\\${e.substr(3)}`}else{if(!e.endsWith("\\")){e+="\\"}return`${t[0]}:\\${e.substr(3)}${t.substr(2)}`}}else{return`${t[0]}:\\${t.substr(2)}`}}else if(normalizeSeparators(t).match(/^\\$|^\\[^\\]/)){const e=process.cwd();p.default(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);return`${e[0]}:\\${t.substr(1)}`}}p.default(hasAbsoluteRoot(e),`ensureAbsoluteRoot parameter 'root' must have an absolute root`);if(e.endsWith("/")||l&&e.endsWith("\\")){}else{e+=s.sep}return e+t}t.ensureAbsoluteRoot=ensureAbsoluteRoot;function hasAbsoluteRoot(e){p.default(e,`hasAbsoluteRoot parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(l){return e.startsWith("\\\\")||/^[A-Z]:\\/i.test(e)}return e.startsWith("/")}t.hasAbsoluteRoot=hasAbsoluteRoot;function hasRoot(e){p.default(e,`isRooted parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(l){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.hasRoot=hasRoot;function normalizeSeparators(e){e=e||"";if(l){e=e.replace(/\//g,"\\");const t=/^\\\\+[^\\]/.test(e);return(t?"\\":"")+e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}t.normalizeSeparators=normalizeSeparators;function safeTrimTrailingSeparator(e){if(!e){return""}e=normalizeSeparators(e);if(!e.endsWith(s.sep)){return e}if(e===s.sep){return e}if(l&&/^[A-Z]:\\$/i.test(e)){return e}return e.substr(0,e.length-1)}t.safeTrimTrailingSeparator=safeTrimTrailingSeparator},6836:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.Path=void 0;const s=r(a(5622));const p=r(a(1849));const l=o(a(2357));const c=process.platform==="win32";class Path{constructor(e){this.segments=[];if(typeof e==="string"){l.default(e,`Parameter 'itemPath' must not be empty`);e=p.safeTrimTrailingSeparator(e);if(!p.hasRoot(e)){this.segments=e.split(s.sep)}else{let t=e;let a=p.dirname(t);while(a!==t){const e=s.basename(t);this.segments.unshift(e);t=a;a=p.dirname(t)}this.segments.unshift(t)}}else{l.default(e.length>0,`Parameter 'itemPath' must not be an empty array`);for(let t=0;t!e.negate));const t={};for(const a of e){const e=p?a.searchPath.toUpperCase():a.searchPath;t[e]="candidate"}const a=[];for(const i of e){const e=p?i.searchPath.toUpperCase():i.searchPath;if(t[e]==="included"){continue}let n=false;let r=e;let s=o.dirname(r);while(s!==r){if(t[s]){n=true;break}r=s;s=o.dirname(r)}if(!n){a.push(i.searchPath);t[e]="included"}}return a}t.getSearchPaths=getSearchPaths;function match(e,t){let a=s.MatchKind.None;for(const i of e){if(i.negate){a&=~i.match(t)}else{a|=i.match(t)}}return a}t.match=match;function partialMatch(e,t){return e.some((e=>!e.negate&&e.partialMatch(t)))}t.partialMatch=partialMatch},4536:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.Pattern=void 0;const s=r(a(2087));const p=r(a(5622));const l=r(a(1849));const c=o(a(2357));const d=a(3973);const m=a(1063);const u=a(6836);const f=process.platform==="win32";class Pattern{constructor(e,t=false,a,i){this.negate=false;let n;if(typeof e==="string"){n=e.trim()}else{a=a||[];c.default(a.length,`Parameter 'segments' must not empty`);const t=Pattern.getLiteral(a[0]);c.default(t&&l.hasAbsoluteRoot(t),`Parameter 'segments' first element must be a root path`);n=new u.Path(a).toString().trim();if(e){n=`!${n}`}}while(n.startsWith("!")){this.negate=!this.negate;n=n.substr(1).trim()}n=Pattern.fixupPattern(n,i);this.segments=new u.Path(n).segments;this.trailingSeparator=l.normalizeSeparators(n).endsWith(p.sep);n=l.safeTrimTrailingSeparator(n);let r=false;const o=this.segments.map((e=>Pattern.getLiteral(e))).filter((e=>!r&&!(r=e==="")));this.searchPath=new u.Path(o).toString();this.rootRegExp=new RegExp(Pattern.regExpEscape(o[0]),f?"i":"");this.isImplicitPattern=t;const s={dot:true,nobrace:true,nocase:f,nocomment:true,noext:true,nonegate:true};n=f?n.replace(/\\/g,"/"):n;this.minimatch=new d.Minimatch(n,s)}match(e){if(this.segments[this.segments.length-1]==="**"){e=l.normalizeSeparators(e);if(!e.endsWith(p.sep)&&this.isImplicitPattern===false){e=`${e}${p.sep}`}}else{e=l.safeTrimTrailingSeparator(e)}if(this.minimatch.match(e)){return this.trailingSeparator?m.MatchKind.Directory:m.MatchKind.All}return m.MatchKind.None}partialMatch(e){e=l.safeTrimTrailingSeparator(e);if(l.dirname(e)===e){return this.rootRegExp.test(e)}return this.minimatch.matchOne(e.split(f?/\\+/:/\/+/),this.minimatch.set[0],true)}static globEscape(e){return(f?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,t){c.default(e,"pattern cannot be empty");const a=new u.Path(e).segments.map((e=>Pattern.getLiteral(e)));c.default(a.every(((e,t)=>(e!=="."||t===0)&&e!=="..")),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`);c.default(!l.hasRoot(e)||a[0],`Invalid pattern '${e}'. Root segment must not contain globs.`);e=l.normalizeSeparators(e);if(e==="."||e.startsWith(`.${p.sep}`)){e=Pattern.globEscape(process.cwd())+e.substr(1)}else if(e==="~"||e.startsWith(`~${p.sep}`)){t=t||s.homedir();c.default(t,"Unable to determine HOME directory");c.default(l.hasAbsoluteRoot(t),`Expected HOME directory to be a rooted path. Actual '${t}'`);e=Pattern.globEscape(t)+e.substr(1)}else if(f&&(e.match(/^[A-Z]:$/i)||e.match(/^[A-Z]:[^\\]/i))){let t=l.ensureAbsoluteRoot("C:\\dummy-root",e.substr(0,2));if(e.length>2&&!t.endsWith("\\")){t+="\\"}e=Pattern.globEscape(t)+e.substr(2)}else if(f&&(e==="\\"||e.match(/^\\[^\\]/))){let t=l.ensureAbsoluteRoot("C:\\dummy-root","\\");if(!t.endsWith("\\")){t+="\\"}e=Pattern.globEscape(t)+e.substr(1)}else{e=l.ensureAbsoluteRoot(Pattern.globEscape(process.cwd()),e)}return l.normalizeSeparators(e)}static getLiteral(e){let t="";for(let a=0;a=0){if(i.length>1){return""}if(i){t+=i;a=n;continue}}}t+=i}return t}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,"\\$&")}}t.Pattern=Pattern},9117:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SearchState=void 0;class SearchState{constructor(e,t){this.path=e;this.level=t}}t.SearchState=SearchState},3702:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from(this.username+":"+this.password).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,t,a){return null}}t.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Bearer "+this.token}canHandleAuthentication(e){return false}handleAuthentication(e,t,a){return null}}t.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from("PAT:"+this.token).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,t,a){return null}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},9925:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const i=a(8605);const n=a(7211);const r=a(6443);let o;var 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"})(s=t.HttpCodes||(t.HttpCodes={}));var p;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(p=t.Headers||(t.Headers={}));var l;(function(e){e["ApplicationJson"]="application/json"})(l=t.MediaTypes||(t.MediaTypes={}));function getProxyUrl(e){let t=r.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const c=[s.MovedPermanently,s.ResourceMoved,s.SeeOther,s.TemporaryRedirect,s.PermanentRedirect];const d=[s.BadGateway,s.ServiceUnavailable,s.GatewayTimeout];const m=["OPTIONS","GET","DELETE","HEAD"];const u=10;const f=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return new Promise((async(e,t)=>{let a=Buffer.alloc(0);this.message.on("data",(e=>{a=Buffer.concat([a,e])}));this.message.on("end",(()=>{e(a.toString())}))}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){let t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,a){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=a;if(a){if(a.ignoreSslError!=null){this._ignoreSslError=a.ignoreSslError}this._socketTimeout=a.socketTimeout;if(a.allowRedirects!=null){this._allowRedirects=a.allowRedirects}if(a.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=a.allowRedirectDowngrade}if(a.maxRedirects!=null){this._maxRedirects=Math.max(a.maxRedirects,0)}if(a.keepAlive!=null){this._keepAlive=a.keepAlive}if(a.allowRetries!=null){this._allowRetries=a.allowRetries}if(a.maxRetries!=null){this._maxRetries=a.maxRetries}}}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,a){return this.request("POST",e,t,a||{})}patch(e,t,a){return this.request("PATCH",e,t,a||{})}put(e,t,a){return this.request("PUT",e,t,a||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,a,i){return this.request(e,t,a,i)}async getJson(e,t={}){t[p.Accept]=this._getExistingOrDefaultHeader(t,p.Accept,l.ApplicationJson);let a=await this.get(e,t);return this._processResponse(a,this.requestOptions)}async postJson(e,t,a={}){let i=JSON.stringify(t,null,2);a[p.Accept]=this._getExistingOrDefaultHeader(a,p.Accept,l.ApplicationJson);a[p.ContentType]=this._getExistingOrDefaultHeader(a,p.ContentType,l.ApplicationJson);let n=await this.post(e,i,a);return this._processResponse(n,this.requestOptions)}async putJson(e,t,a={}){let i=JSON.stringify(t,null,2);a[p.Accept]=this._getExistingOrDefaultHeader(a,p.Accept,l.ApplicationJson);a[p.ContentType]=this._getExistingOrDefaultHeader(a,p.ContentType,l.ApplicationJson);let n=await this.put(e,i,a);return this._processResponse(n,this.requestOptions)}async patchJson(e,t,a={}){let i=JSON.stringify(t,null,2);a[p.Accept]=this._getExistingOrDefaultHeader(a,p.Accept,l.ApplicationJson);a[p.ContentType]=this._getExistingOrDefaultHeader(a,p.ContentType,l.ApplicationJson);let n=await this.patch(e,i,a);return this._processResponse(n,this.requestOptions)}async request(e,t,a,i){if(this._disposed){throw new Error("Client has already been disposed.")}let n=new URL(t);let r=this._prepareRequest(e,n,i);let o=this._allowRetries&&m.indexOf(e)!=-1?this._maxRetries+1:1;let p=0;let l;while(p0){const o=l.message.headers["location"];if(!o){break}let s=new URL(o);if(n.protocol=="https:"&&n.protocol!=s.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}await l.readBody();if(s.hostname!==n.hostname){for(let e in i){if(e.toLowerCase()==="authorization"){delete i[e]}}}r=this._prepareRequest(e,s,i);l=await this.requestRaw(r,a);t--}if(d.indexOf(l.message.statusCode)==-1){return l}p+=1;if(p{let callbackForResult=function(e,t){if(e){i(e)}a(t)};this.requestRawWithCallback(e,t,callbackForResult)}))}requestRawWithCallback(e,t,a){let i;if(typeof t==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let n=false;let handleResult=(e,t)=>{if(!n){n=true;a(e,t)}};let r=e.httpModule.request(e.options,(e=>{let t=new HttpClientResponse(e);handleResult(null,t)}));r.on("socket",(e=>{i=e}));r.setTimeout(this._socketTimeout||3*6e4,(()=>{if(i){i.end()}handleResult(new Error("Request timeout: "+e.options.path),null)}));r.on("error",(function(e){handleResult(e,null)}));if(t&&typeof t==="string"){r.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){r.end()}));t.pipe(r)}else{r.end()}}getAgent(e){let t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,a){const r={};r.parsedUrl=t;const o=r.parsedUrl.protocol==="https:";r.httpModule=o?n:i;const s=o?443:80;r.options={};r.options.host=r.parsedUrl.hostname;r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):s;r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||"");r.options.method=e;r.options.headers=this._mergeHeaders(a);if(this.userAgent!=null){r.options.headers["user-agent"]=this.userAgent}r.options.agent=this._getAgent(r.parsedUrl);if(this.handlers){this.handlers.forEach((e=>{e.prepareRequest(r.options)}))}return r}_mergeHeaders(e){const lowercaseKeys=e=>Object.keys(e).reduce(((t,a)=>(t[a.toLowerCase()]=e[a],t)),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,a){const lowercaseKeys=e=>Object.keys(e).reduce(((t,a)=>(t[a.toLowerCase()]=e[a],t)),{});let i;if(this.requestOptions&&this.requestOptions.headers){i=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||i||a}_getAgent(e){let t;let s=r.getProxyUrl(e);let p=s&&s.hostname;if(this._keepAlive&&p){t=this._proxyAgent}if(this._keepAlive&&!p){t=this._agent}if(!!t){return t}const l=e.protocol==="https:";let c=100;if(!!this.requestOptions){c=this.requestOptions.maxSockets||i.globalAgent.maxSockets}if(p){if(!o){o=a(4294)}const e={maxSockets:c,keepAlive:this._keepAlive,proxy:{...(s.username||s.password)&&{proxyAuth:`${s.username}:${s.password}`},host:s.hostname,port:s.port}};let i;const n=s.protocol==="https:";if(l){i=n?o.httpsOverHttps:o.httpsOverHttp}else{i=n?o.httpOverHttps:o.httpOverHttp}t=i(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:c};t=l?new n.Agent(e):new i.Agent(e);this._agent=t}if(!t){t=l?n.globalAgent:i.globalAgent}if(l&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){e=Math.min(u,e);const t=f*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}static dateTimeDeserializer(e,t){if(typeof t==="string"){let e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}async _processResponse(e,t){return new Promise((async(a,i)=>{const n=e.message.statusCode;const r={statusCode:n,result:null,headers:{}};if(n==s.NotFound){a(r)}let o;let p;try{p=await e.readBody();if(p&&p.length>0){if(t&&t.deserializeDates){o=JSON.parse(p,HttpClient.dateTimeDeserializer)}else{o=JSON.parse(p)}r.result=o}r.headers=e.message.headers}catch(e){}if(n>299){let e;if(o&&o.message){e=o.message}else if(p&&p.length>0){e=p}else{e="Failed request: ("+n+")"}let t=new HttpClientError(e,n);t.result=r.result;i(t)}else{a(r)}}))}}t.HttpClient=HttpClient},6443:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function getProxyUrl(e){let t=e.protocol==="https:";let a;if(checkBypass(e)){return a}let i;if(t){i=process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{i=process.env["http_proxy"]||process.env["HTTP_PROXY"]}if(i){a=new URL(i)}return a}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}let t=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!t){return false}let a;if(e.port){a=Number(e.port)}else if(e.protocol==="http:"){a=80}else if(e.protocol==="https:"){a=443}let i=[e.hostname.toUpperCase()];if(typeof a==="number"){i.push(`${i[0]}:${a}`)}for(let e of t.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(i.some((t=>t===e))){return true}}return false}t.checkBypass=checkBypass},1962:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var o=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var s;Object.defineProperty(t,"__esModule",{value:true});t.getCmdPath=t.tryGetExecutablePath=t.isRooted=t.isDirectory=t.exists=t.IS_WINDOWS=t.unlink=t.symlink=t.stat=t.rmdir=t.rename=t.readlink=t.readdir=t.mkdir=t.lstat=t.copyFile=t.chmod=void 0;const p=r(a(5747));const l=r(a(5622));s=p.promises,t.chmod=s.chmod,t.copyFile=s.copyFile,t.lstat=s.lstat,t.mkdir=s.mkdir,t.readdir=s.readdir,t.readlink=s.readlink,t.rename=s.rename,t.rmdir=s.rmdir,t.stat=s.stat,t.symlink=s.symlink,t.unlink=s.unlink;t.IS_WINDOWS=process.platform==="win32";function exists(e){return o(this,void 0,void 0,(function*(){try{yield t.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}t.exists=exists;function isDirectory(e,a=false){return o(this,void 0,void 0,(function*(){const i=a?yield t.stat(e):yield t.lstat(e);return i.isDirectory()}))}t.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(t.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.isRooted=isRooted;function tryGetExecutablePath(e,a){return o(this,void 0,void 0,(function*(){let i=undefined;try{i=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(i&&i.isFile()){if(t.IS_WINDOWS){const t=l.extname(e).toUpperCase();if(a.some((e=>e.toUpperCase()===t))){return e}}else{if(isUnixExecutable(i)){return e}}}const n=e;for(const r of a){e=n+r;i=undefined;try{i=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(i&&i.isFile()){if(t.IS_WINDOWS){try{const a=l.dirname(e);const i=l.basename(e).toUpperCase();for(const n of yield t.readdir(a)){if(i===n.toUpperCase()){e=l.join(a,n);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(i)){return e}}}}return""}))}t.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(t.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}function getCmdPath(){var e;return(e=process.env["COMSPEC"])!==null&&e!==void 0?e:`cmd.exe`}t.getCmdPath=getCmdPath},7436:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var o=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.findInPath=t.which=t.mkdirP=t.rmRF=t.mv=t.cp=void 0;const s=a(2357);const p=r(a(3129));const l=r(a(5622));const c=a(1669);const d=r(a(1962));const m=c.promisify(p.exec);const u=c.promisify(p.execFile);function cp(e,t,a={}){return o(this,void 0,void 0,(function*(){const{force:i,recursive:n,copySourceDirectory:r}=readCopyOptions(a);const o=(yield d.exists(t))?yield d.stat(t):null;if(o&&o.isFile()&&!i){return}const s=o&&o.isDirectory()&&r?l.join(t,l.basename(e)):t;if(!(yield d.exists(e))){throw new Error(`no such file or directory: ${e}`)}const p=yield d.stat(e);if(p.isDirectory()){if(!n){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,s,0,i)}}else{if(l.relative(e,s)===""){throw new Error(`'${s}' and '${e}' are the same file`)}yield copyFile(e,s,i)}}))}t.cp=cp;function mv(e,t,a={}){return o(this,void 0,void 0,(function*(){if(yield d.exists(t)){let i=true;if(yield d.isDirectory(t)){t=l.join(t,l.basename(e));i=yield d.exists(t)}if(i){if(a.force==null||a.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(l.dirname(t));yield d.rename(e,t)}))}t.mv=mv;function rmRF(e){return o(this,void 0,void 0,(function*(){if(d.IS_WINDOWS){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}try{const t=d.getCmdPath();if(yield d.isDirectory(e,true)){yield m(`${t} /s /c "rd /s /q "%inputPath%""`,{env:{inputPath:e}})}else{yield m(`${t} /s /c "del /f /a "%inputPath%""`,{env:{inputPath:e}})}}catch(e){if(e.code!=="ENOENT")throw e}try{yield d.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let t=false;try{t=yield d.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(t){yield u(`rm`,[`-rf`,`${e}`])}else{yield d.unlink(e)}}}))}t.rmRF=rmRF;function mkdirP(e){return o(this,void 0,void 0,(function*(){s.ok(e,"a path argument must be provided");yield d.mkdir(e,{recursive:true})}))}t.mkdirP=mkdirP;function which(e,t){return o(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(t){const t=yield which(e,false);if(!t){if(d.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. 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.`)}else{throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}return t}const a=yield findInPath(e);if(a&&a.length>0){return a[0]}return""}))}t.which=which;function findInPath(e){return o(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const t=[];if(d.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(l.delimiter)){if(e){t.push(e)}}}if(d.isRooted(e)){const a=yield d.tryGetExecutablePath(e,t);if(a){return[a]}return[]}if(e.includes(l.sep)){return[]}const a=[];if(process.env.PATH){for(const e of process.env.PATH.split(l.delimiter)){if(e){a.push(e)}}}const i=[];for(const n of a){const a=yield d.tryGetExecutablePath(l.join(n,e),t);if(a){i.push(a)}}return i}))}t.findInPath=findInPath;function readCopyOptions(e){const t=e.force==null?true:e.force;const a=Boolean(e.recursive);const i=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:t,recursive:a,copySourceDirectory:i}}function cpDirRecursive(e,t,a,i){return o(this,void 0,void 0,(function*(){if(a>=255)return;a++;yield mkdirP(t);const n=yield d.readdir(e);for(const r of n){const n=`${e}/${r}`;const o=`${t}/${r}`;const s=yield d.lstat(n);if(s.isDirectory()){yield cpDirRecursive(n,o,a,i)}else{yield copyFile(n,o,i)}}yield d.chmod(t,(yield d.stat(e)).mode)}))}function copyFile(e,t,a){return o(this,void 0,void 0,(function*(){if((yield d.lstat(e)).isSymbolicLink()){try{yield d.lstat(t);yield d.unlink(t)}catch(e){if(e.code==="EPERM"){yield d.chmod(t,"0666");yield d.unlink(t)}}const a=yield d.readlink(e);yield d.symlink(a,t,d.IS_WINDOWS?"junction":null)}else if(!(yield d.exists(t))||a){yield d.copyFile(e,t)}}))}},2557:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var i=a(9268);var n=new WeakMap;var r=new WeakMap;var o=function(){function AbortSignal(){this.onabort=null;n.set(this,[]);r.set(this,false)}Object.defineProperty(AbortSignal.prototype,"aborted",{get:function(){if(!r.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}return r.get(this)},enumerable:false,configurable:true});Object.defineProperty(AbortSignal,"none",{get:function(){return new AbortSignal},enumerable:false,configurable:true});AbortSignal.prototype.addEventListener=function(e,t){if(!n.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}var a=n.get(this);a.push(t)};AbortSignal.prototype.removeEventListener=function(e,t){if(!n.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}var a=n.get(this);var i=a.indexOf(t);if(i>-1){a.splice(i,1)}};AbortSignal.prototype.dispatchEvent=function(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")};return AbortSignal}();function abortSignal(e){if(e.aborted){return}if(e.onabort){e.onabort.call(e)}var t=n.get(e);if(t){t.slice().forEach((function(t){t.call(e,{type:"abort"})}))}r.set(e,true)}var s=function(e){i.__extends(AbortError,e);function AbortError(t){var a=e.call(this,t)||this;a.name="AbortError";return a}return AbortError}(Error);var p=function(){function AbortController(e){var t=this;this._signal=new o;if(!e){return}if(!Array.isArray(e)){e=arguments}for(var a=0,i=e;a{ +(()=>{var __webpack_modules__={3319:(e,t,a)=>{const i=a(5622);const n=a(5747);const r=a(2186);const o=a(1514);const s=a(7799);const p=a(8090);const l=a(5008);async function getStdOut(...e){let t=await o.getExecOutput(...e);return t.stdout.trim()}async function getConanVersion(){let e=await getStdOut("conan",["--version"]);return e.match(/[\d]+\.[\d]+\.[\d]+/g)[0]}async function getCompilerVersion(e){if(process.platform==="win32"){return"msvc-"+e.match(/[\d]+/g)[0]}else if(process.platform==="darwin"){return"clang-"+await getStdOut("clang",["-dumpversion"])}else{return"gcc-"+await getStdOut("gcc",["-dumpfullversion"])}}async function getConanCacheKeys(e){const t=i.join(workspaceDir,"cmake-proxies/CMakeLists.txt");const a=l.getMD5(t);const n=await getConanVersion();const r=["conan",n,process.platform,await getCompilerVersion(e)].join("-");const o=[r,a].join("-");return{key:o,restoreKeys:[r]}}async function restoreConanCache(e){try{return e.key==await s.restoreCache([conanCachePath],e.key,e.restoreKeys)}catch(e){l.log("Failed to restore the cache: "+e.message);return false}}async function uploadBinaries(){const e=await p.create(`${workspaceDir}/.conan/data/**/build`);const t=await e.glob();if(t.length==0){l.log("No new binaries were built. Skipping upload.");return}const a=process.env["CONAN_BINARIES_REMOTE"];if(a){await l.execWithLog(`conan remote add audacity-binaries-upload ${a} true --force`);await l.execWithLog(`conan upload "*" -r audacity-binaries-upload -c --all`)}}async function cleanupConanBuilds(){l.log("Cleaning up conan build cache");await l.execWithLog('conan remove "*" --src --builds --force')}async function storeConanCache(e){try{await s.saveCache([conanCachePath],e.key)}catch(e){l.error("Failed to save the cache: "+e.message)}}async function setupConan(){r.exportVariable("CONAN_USER_HOME",workspaceDir);r.exportVariable("CONAN_REVISIONS_ENABLED","1")}e.exports={setupConan:setupConan,getConanCacheKeys:getConanCacheKeys,restoreConanCache:restoreConanCache,cleanupConanBuilds:cleanupConanBuilds,storeConanCache:storeConanCache,uploadBinaries:uploadBinaries}},5008:(e,t,a)=>{const i=a(2186);const n=a(1514);const r=a(5622);const o=a(1711);const s=a(5747);const p=process.env["CI"];global.workspaceDir=process.env["GITHUB_WORKSPACE"];global.conanCachePath=r.join(workspaceDir,".conan");function log(e){if(p){i.info(e)}else{console.log(e)}}function error(e){if(p){i.error(e)}else{console.error(e)}}async function execWithLog(e,arguments){if(p){return n.exec(e,arguments)}else{return n.exec(e,arguments,{listeners:{stdout:e=>{log(e.toString())},stderr:e=>{error(e.toString())}}})}}async function getExecOutput(e,arguments){if(p){return n.getExecOutput(e,arguments)}else{return n.getExecOutput(e,arguments,{listeners:{stdout:e=>{log(e.toString())},stderr:e=>{error(e.toString())}}})}}async function awaitAll(e,t){return await Promise.all(e.map((async e=>t(e))))}async function getMD5(e){const t=await s.promises.readFile(e);return o(t)}function getDateString(){const e=new Date;return[e.getFullYear(),("0"+(e.getMonth()+1)).slice(-2),("0"+e.getDate()).slice(-2)].join("")}const sleep=e=>new Promise((t=>setTimeout(t,e)));process.on("unhandledRejection",((e,t)=>{error(e);i.setFailed(e);process.exit(1)})).on("uncaughtException",(e=>{error(e);i.setFailed(e);process.exit(1)}));e.exports={log:log,error:error,execWithLog:execWithLog,getExecOutput:getExecOutput,sleep:sleep,awaitAll:awaitAll,getMD5:getMD5,getDateString:getDateString}},7799:function(e,t,a){"use strict";var i=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(Object.hasOwnProperty.call(e,a))t[a]=e[a];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const r=n(a(2186));const o=n(a(5622));const s=n(a(1518));const p=n(a(8245));const l=a(6490);class ValidationError extends Error{constructor(e){super(e);this.name="ValidationError";Object.setPrototypeOf(this,ValidationError.prototype)}}t.ValidationError=ValidationError;class ReserveCacheError extends Error{constructor(e){super(e);this.name="ReserveCacheError";Object.setPrototypeOf(this,ReserveCacheError.prototype)}}t.ReserveCacheError=ReserveCacheError;function checkPaths(e){if(!e||e.length===0){throw new ValidationError(`Path Validation Error: At least one directory or file path is required`)}}function checkKey(e){if(e.length>512){throw new ValidationError(`Key Validation Error: ${e} cannot be larger than 512 characters.`)}const t=/^[^,]*$/;if(!t.test(e)){throw new ValidationError(`Key Validation Error: ${e} cannot contain commas.`)}}function restoreCache(e,t,a,n){return i(this,void 0,void 0,(function*(){checkPaths(e);a=a||[];const i=[t,...a];r.debug("Resolved Keys:");r.debug(JSON.stringify(i));if(i.length>10){throw new ValidationError(`Key Validation Error: Keys are limited to a maximum of 10.`)}for(const e of i){checkKey(e)}const c=yield s.getCompressionMethod();const d=yield p.getCacheEntry(i,e,{compressionMethod:c});if(!(d===null||d===void 0?void 0:d.archiveLocation)){return undefined}const m=o.join(yield s.createTempDirectory(),s.getCacheFileName(c));r.debug(`Archive Path: ${m}`);try{yield p.downloadCache(d.archiveLocation,m,n);if(r.isDebug()){yield l.listTar(m,c)}const e=s.getArchiveFileSizeInBytes(m);r.info(`Cache Size: ~${Math.round(e/(1024*1024))} MB (${e} B)`);yield l.extractTar(m,c);r.info("Cache restored successfully")}finally{try{yield s.unlinkFile(m)}catch(e){r.debug(`Failed to delete archive: ${e}`)}}return d.cacheKey}))}t.restoreCache=restoreCache;function saveCache(e,t,a){return i(this,void 0,void 0,(function*(){checkPaths(e);checkKey(t);const i=yield s.getCompressionMethod();r.debug("Reserving Cache");const n=yield p.reserveCache(t,e,{compressionMethod:i});if(n===-1){throw new ReserveCacheError(`Unable to reserve cache with key ${t}, another job may be creating this cache.`)}r.debug(`Cache ID: ${n}`);const c=yield s.resolvePaths(e);r.debug("Cache Paths:");r.debug(`${JSON.stringify(c)}`);const d=yield s.createTempDirectory();const m=o.join(d,s.getCacheFileName(i));r.debug(`Archive Path: ${m}`);try{yield l.createTar(d,c,i);if(r.isDebug()){yield l.listTar(m,i)}const e=10*1024*1024*1024;const t=s.getArchiveFileSizeInBytes(m);r.debug(`File Size: ${t}`);if(t>e){throw new Error(`Cache size of ~${Math.round(t/(1024*1024))} MB (${t} B) is over the 10GB limit, not saving cache.`)}r.debug(`Saving Cache (ID: ${n})`);yield p.saveCache(n,m,a)}finally{try{yield s.unlinkFile(m)}catch(e){r.debug(`Failed to delete archive: ${e}`)}}return n}))}t.saveCache=saveCache},8245:function(e,t,a){"use strict";var i=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(Object.hasOwnProperty.call(e,a))t[a]=e[a];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const r=n(a(2186));const o=a(9925);const s=a(3702);const p=n(a(6417));const l=n(a(5747));const c=a(8835);const d=n(a(1518));const m=a(8840);const u=a(5500);const f=a(6215);const h=a(3981);const g="1.0";function getCacheApiUrl(e){const t=(process.env["ACTIONS_CACHE_URL"]||process.env["ACTIONS_RUNTIME_URL"]||"").replace("pipelines","artifactcache");if(!t){throw new Error("Cache Service Url not found, unable to restore cache.")}const a=`${t}_apis/artifactcache/${e}`;r.debug(`Resource Url: ${a}`);return a}function createAcceptHeader(e,t){return`${e};api-version=${t}`}function getRequestOptions(){const e={headers:{Accept:createAcceptHeader("application/json","6.0-preview.1")}};return e}function createHttpClient(){const e=process.env["ACTIONS_RUNTIME_TOKEN"]||"";const t=new s.BearerCredentialHandler(e);return new o.HttpClient("actions/cache",[t],getRequestOptions())}function getCacheVersion(e,t){const a=e.concat(!t||t===m.CompressionMethod.Gzip?[]:[t]);a.push(g);return p.createHash("sha256").update(a.join("|")).digest("hex")}t.getCacheVersion=getCacheVersion;function getCacheEntry(e,t,a){return i(this,void 0,void 0,(function*(){const n=createHttpClient();const o=getCacheVersion(t,a===null||a===void 0?void 0:a.compressionMethod);const s=`cache?keys=${encodeURIComponent(e.join(","))}&version=${o}`;const p=yield h.retryTypedResponse("getCacheEntry",(()=>i(this,void 0,void 0,(function*(){return n.getJson(getCacheApiUrl(s))}))));if(p.statusCode===204){return null}if(!h.isSuccessStatusCode(p.statusCode)){throw new Error(`Cache service responded with ${p.statusCode}`)}const l=p.result;const c=l===null||l===void 0?void 0:l.archiveLocation;if(!c){throw new Error("Cache not found.")}r.setSecret(c);r.debug(`Cache Result:`);r.debug(JSON.stringify(l));return l}))}t.getCacheEntry=getCacheEntry;function downloadCache(e,t,a){return i(this,void 0,void 0,(function*(){const i=new c.URL(e);const n=f.getDownloadOptions(a);if(n.useAzureSdk&&i.hostname.endsWith(".blob.core.windows.net")){yield u.downloadCacheStorageSDK(e,t,n)}else{yield u.downloadCacheHttpClient(e,t)}}))}t.downloadCache=downloadCache;function reserveCache(e,t,a){var n,r;return i(this,void 0,void 0,(function*(){const o=createHttpClient();const s=getCacheVersion(t,a===null||a===void 0?void 0:a.compressionMethod);const p={key:e,version:s};const l=yield h.retryTypedResponse("reserveCache",(()=>i(this,void 0,void 0,(function*(){return o.postJson(getCacheApiUrl("caches"),p)}))));return(r=(n=l===null||l===void 0?void 0:l.result)===null||n===void 0?void 0:n.cacheId)!==null&&r!==void 0?r:-1}))}t.reserveCache=reserveCache;function getContentRange(e,t){return`bytes ${e}-${t}/*`}function uploadChunk(e,t,a,n,o){return i(this,void 0,void 0,(function*(){r.debug(`Uploading chunk of size ${o-n+1} bytes at offset ${n} with content range: ${getContentRange(n,o)}`);const s={"Content-Type":"application/octet-stream","Content-Range":getContentRange(n,o)};const p=yield h.retryHttpClientResponse(`uploadChunk (start: ${n}, end: ${o})`,(()=>i(this,void 0,void 0,(function*(){return e.sendStream("PATCH",t,a(),s)}))));if(!h.isSuccessStatusCode(p.message.statusCode)){throw new Error(`Cache service responded with ${p.message.statusCode} during upload chunk.`)}}))}function uploadFile(e,t,a,n){return i(this,void 0,void 0,(function*(){const o=d.getArchiveFileSizeInBytes(a);const s=getCacheApiUrl(`caches/${t.toString()}`);const p=l.openSync(a,"r");const c=f.getUploadOptions(n);const m=d.assertDefined("uploadConcurrency",c.uploadConcurrency);const u=d.assertDefined("uploadChunkSize",c.uploadChunkSize);const h=[...new Array(m).keys()];r.debug("Awaiting all uploads");let g=0;try{yield Promise.all(h.map((()=>i(this,void 0,void 0,(function*(){while(gl.createReadStream(a,{fd:p,start:i,end:n,autoClose:false}).on("error",(e=>{throw new Error(`Cache upload failed because file read failed with ${e.message}`)}))),i,n)}})))))}finally{l.closeSync(p)}return}))}function commitCache(e,t,a){return i(this,void 0,void 0,(function*(){const n={size:a};return yield h.retryTypedResponse("commitCache",(()=>i(this,void 0,void 0,(function*(){return e.postJson(getCacheApiUrl(`caches/${t.toString()}`),n)}))))}))}function saveCache(e,t,a){return i(this,void 0,void 0,(function*(){const i=createHttpClient();r.debug("Upload cache");yield uploadFile(i,e,t,a);r.debug("Commiting cache");const n=d.getArchiveFileSizeInBytes(t);r.info(`Cache Size: ~${Math.round(n/(1024*1024))} MB (${n} B)`);const o=yield commitCache(i,e,n);if(!h.isSuccessStatusCode(o.statusCode)){throw new Error(`Cache service responded with ${o.statusCode} during commit cache.`)}r.info("Cache saved successfully")}))}t.saveCache=saveCache},1518:function(e,t,a){"use strict";var i=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var n=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],a;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),a={},verb("next"),verb("throw"),verb("return"),a[Symbol.asyncIterator]=function(){return this},a);function verb(t){a[t]=e[t]&&function(a){return new Promise((function(i,n){a=e[t](a),settle(i,n,a.done,a.value)}))}}function settle(e,t,a,i){Promise.resolve(i).then((function(t){e({value:t,done:a})}),t)}};var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(Object.hasOwnProperty.call(e,a))t[a]=e[a];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=r(a(2186));const s=r(a(1514));const p=r(a(1597));const l=r(a(7436));const c=r(a(5747));const d=r(a(5622));const m=r(a(5911));const u=r(a(1669));const f=a(2155);const h=a(8840);function createTempDirectory(){return i(this,void 0,void 0,(function*(){const e=process.platform==="win32";let t=process.env["RUNNER_TEMP"]||"";if(!t){let a;if(e){a=process.env["USERPROFILE"]||"C:\\"}else{if(process.platform==="darwin"){a="/Users"}else{a="/home"}}t=d.join(a,"actions","temp")}const a=d.join(t,f.v4());yield l.mkdirP(a);return a}))}t.createTempDirectory=createTempDirectory;function getArchiveFileSizeInBytes(e){return c.statSync(e).size}t.getArchiveFileSizeInBytes=getArchiveFileSizeInBytes;function resolvePaths(e){var t,a;var r;return i(this,void 0,void 0,(function*(){const i=[];const s=(r=process.env["GITHUB_WORKSPACE"])!==null&&r!==void 0?r:process.cwd();const l=yield p.create(e.join("\n"),{implicitDescendants:false});try{for(var c=n(l.globGenerator()),m;m=yield c.next(),!m.done;){const e=m.value;const t=d.relative(s,e).replace(new RegExp(`\\${d.sep}`,"g"),"/");o.debug(`Matched: ${t}`);i.push(`${t}`)}}catch(e){t={error:e}}finally{try{if(m&&!m.done&&(a=c.return))yield a.call(c)}finally{if(t)throw t.error}}return i}))}t.resolvePaths=resolvePaths;function unlinkFile(e){return i(this,void 0,void 0,(function*(){return u.promisify(c.unlink)(e)}))}t.unlinkFile=unlinkFile;function getVersion(e){return i(this,void 0,void 0,(function*(){o.debug(`Checking ${e} --version`);let t="";try{yield s.exec(`${e} --version`,[],{ignoreReturnCode:true,silent:true,listeners:{stdout:e=>t+=e.toString(),stderr:e=>t+=e.toString()}})}catch(e){o.debug(e.message)}t=t.trim();o.debug(t);return t}))}function getCompressionMethod(){return i(this,void 0,void 0,(function*(){if(process.platform==="win32"&&!(yield isGnuTarInstalled())){return h.CompressionMethod.Gzip}const e=yield getVersion("zstd");const t=m.clean(e);if(!e.toLowerCase().includes("zstd command line interface")){return h.CompressionMethod.Gzip}else if(!t||m.lt(t,"v1.3.2")){return h.CompressionMethod.ZstdWithoutLong}else{return h.CompressionMethod.Zstd}}))}t.getCompressionMethod=getCompressionMethod;function getCacheFileName(e){return e===h.CompressionMethod.Gzip?h.CacheFilename.Gzip:h.CacheFilename.Zstd}t.getCacheFileName=getCacheFileName;function isGnuTarInstalled(){return i(this,void 0,void 0,(function*(){const e=yield getVersion("tar");return e.toLowerCase().includes("gnu tar")}))}t.isGnuTarInstalled=isGnuTarInstalled;function assertDefined(e,t){if(t===undefined){throw Error(`Expected ${e} but value was undefiend`)}return t}t.assertDefined=assertDefined},8840:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var a;(function(e){e["Gzip"]="cache.tgz";e["Zstd"]="cache.tzst"})(a=t.CacheFilename||(t.CacheFilename={}));var i;(function(e){e["Gzip"]="gzip";e["ZstdWithoutLong"]="zstd-without-long";e["Zstd"]="zstd"})(i=t.CompressionMethod||(t.CompressionMethod={}));t.DefaultRetryAttempts=2;t.DefaultRetryDelay=5e3;t.SocketTimeout=5e3},5500:function(e,t,a){"use strict";var i=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(Object.hasOwnProperty.call(e,a))t[a]=e[a];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const r=n(a(2186));const o=a(9925);const s=a(4100);const p=n(a(4293));const l=n(a(5747));const c=n(a(2413));const d=n(a(1669));const m=n(a(1518));const u=a(8840);const f=a(3981);function pipeResponseToStream(e,t){return i(this,void 0,void 0,(function*(){const a=d.promisify(c.pipeline);yield a(e.message,t)}))}class DownloadProgress{constructor(e){this.contentLength=e;this.segmentIndex=0;this.segmentSize=0;this.segmentOffset=0;this.receivedBytes=0;this.displayedComplete=false;this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize;this.segmentIndex=this.segmentIndex+1;this.segmentSize=e;this.receivedBytes=0;r.debug(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete){return}const e=this.segmentOffset+this.receivedBytes;const t=(100*(e/this.contentLength)).toFixed(1);const a=Date.now()-this.startTime;const i=(e/(1024*1024)/(a/1e3)).toFixed(1);r.info(`Received ${e} of ${this.contentLength} (${t}%), ${i} MBs/sec`);if(this.isDone()){this.displayedComplete=true}}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){const displayCallback=()=>{this.display();if(!this.isDone()){this.timeoutHandle=setTimeout(displayCallback,e)}};this.timeoutHandle=setTimeout(displayCallback,e)}stopDisplayTimer(){if(this.timeoutHandle){clearTimeout(this.timeoutHandle);this.timeoutHandle=undefined}this.display()}}t.DownloadProgress=DownloadProgress;function downloadCacheHttpClient(e,t){return i(this,void 0,void 0,(function*(){const a=l.createWriteStream(t);const n=new o.HttpClient("actions/cache");const s=yield f.retryHttpClientResponse("downloadCache",(()=>i(this,void 0,void 0,(function*(){return n.get(e)}))));s.message.socket.setTimeout(u.SocketTimeout,(()=>{s.message.destroy();r.debug(`Aborting download, socket timed out after ${u.SocketTimeout} ms`)}));yield pipeResponseToStream(s,a);const p=s.message.headers["content-length"];if(p){const e=parseInt(p);const a=m.getArchiveFileSizeInBytes(t);if(a!==e){throw new Error(`Incomplete download. Expected file size: ${e}, actual file size: ${a}`)}}else{r.debug("Unable to validate download, no Content-Length header")}}))}t.downloadCacheHttpClient=downloadCacheHttpClient;function downloadCacheStorageSDK(e,t,a){var n;return i(this,void 0,void 0,(function*(){const i=new s.BlockBlobClient(e,undefined,{retryOptions:{tryTimeoutInMs:a.timeoutInMs}});const o=yield i.getProperties();const c=(n=o.contentLength)!==null&&n!==void 0?n:-1;if(c<0){r.debug("Unable to determine content length, downloading file with http-client...");yield downloadCacheHttpClient(e,t)}else{const e=p.constants.MAX_LENGTH;const n=new DownloadProgress(c);const r=l.openSync(t,"w");try{n.startDisplayTimer();while(!n.isDone()){const t=n.segmentOffset+n.segmentSize;const o=Math.min(e,c-t);n.nextSegment(o);const s=yield i.downloadToBuffer(t,o,{concurrency:a.downloadConcurrency,onProgress:n.onProgress()});l.writeFileSync(r,s)}}finally{n.stopDisplayTimer();l.closeSync(r)}}}))}t.downloadCacheStorageSDK=downloadCacheStorageSDK},3981:function(e,t,a){"use strict";var i=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(Object.hasOwnProperty.call(e,a))t[a]=e[a];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const r=n(a(2186));const o=a(9925);const s=a(8840);function isSuccessStatusCode(e){if(!e){return false}return e>=200&&e<300}t.isSuccessStatusCode=isSuccessStatusCode;function isServerErrorStatusCode(e){if(!e){return true}return e>=500}t.isServerErrorStatusCode=isServerErrorStatusCode;function isRetryableStatusCode(e){if(!e){return false}const t=[o.HttpCodes.BadGateway,o.HttpCodes.ServiceUnavailable,o.HttpCodes.GatewayTimeout];return t.includes(e)}t.isRetryableStatusCode=isRetryableStatusCode;function sleep(e){return i(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,e)))}))}function retry(e,t,a,n=s.DefaultRetryAttempts,o=s.DefaultRetryDelay,p=undefined){return i(this,void 0,void 0,(function*(){let i="";let s=1;while(s<=n){let l=undefined;let c=undefined;let d=false;try{l=yield t()}catch(e){if(p){l=p(e)}d=true;i=e.message}if(l){c=a(l);if(!isServerErrorStatusCode(c)){return l}}if(c){d=isRetryableStatusCode(c);i=`Cache service responded with ${c}`}r.debug(`${e} - Attempt ${s} of ${n} failed with error: ${i}`);if(!d){r.debug(`${e} - Error is not retryable`);break}yield sleep(o);s++}throw Error(`${e} failed: ${i}`)}))}t.retry=retry;function retryTypedResponse(e,t,a=s.DefaultRetryAttempts,n=s.DefaultRetryDelay){return i(this,void 0,void 0,(function*(){return yield retry(e,t,(e=>e.statusCode),a,n,(e=>{if(e instanceof o.HttpClientError){return{statusCode:e.statusCode,result:null,headers:{}}}else{return undefined}}))}))}t.retryTypedResponse=retryTypedResponse;function retryHttpClientResponse(e,t,a=s.DefaultRetryAttempts,n=s.DefaultRetryDelay){return i(this,void 0,void 0,(function*(){return yield retry(e,t,(e=>e.message.statusCode),a,n)}))}t.retryHttpClientResponse=retryHttpClientResponse},6490:function(e,t,a){"use strict";var i=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(Object.hasOwnProperty.call(e,a))t[a]=e[a];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const r=a(1514);const o=n(a(7436));const s=a(5747);const p=n(a(5622));const l=n(a(1518));const c=a(8840);function getTarPath(e,t){return i(this,void 0,void 0,(function*(){switch(process.platform){case"win32":{const a=`${process.env["windir"]}\\System32\\tar.exe`;if(t!==c.CompressionMethod.Gzip){e.push("--force-local")}else if(s.existsSync(a)){return a}else if(yield l.isGnuTarInstalled()){e.push("--force-local")}break}case"darwin":{const t=yield o.which("gtar",false);if(t){e.push("--delay-directory-restore");return t}break}default:break}return yield o.which("tar",true)}))}function execTar(e,t,a){return i(this,void 0,void 0,(function*(){try{yield r.exec(`"${yield getTarPath(e,t)}"`,e,{cwd:a})}catch(e){throw new Error(`Tar failed with error: ${e===null||e===void 0?void 0:e.message}`)}}))}function getWorkingDirectory(){var e;return(e=process.env["GITHUB_WORKSPACE"])!==null&&e!==void 0?e:process.cwd()}function extractTar(e,t){return i(this,void 0,void 0,(function*(){const a=getWorkingDirectory();yield o.mkdirP(a);function getCompressionProgram(){switch(t){case c.CompressionMethod.Zstd:return["--use-compress-program","zstd -d --long=30"];case c.CompressionMethod.ZstdWithoutLong:return["--use-compress-program","zstd -d"];default:return["-z"]}}const i=[...getCompressionProgram(),"-xf",e.replace(new RegExp(`\\${p.sep}`,"g"),"/"),"-P","-C",a.replace(new RegExp(`\\${p.sep}`,"g"),"/")];yield execTar(i,t)}))}t.extractTar=extractTar;function createTar(e,t,a){return i(this,void 0,void 0,(function*(){const i="manifest.txt";const n=l.getCacheFileName(a);s.writeFileSync(p.join(e,i),t.join("\n"));const r=getWorkingDirectory();function getCompressionProgram(){switch(a){case c.CompressionMethod.Zstd:return["--use-compress-program","zstd -T0 --long=30"];case c.CompressionMethod.ZstdWithoutLong:return["--use-compress-program","zstd -T0"];default:return["-z"]}}const o=["--posix",...getCompressionProgram(),"-cf",n.replace(new RegExp(`\\${p.sep}`,"g"),"/"),"-P","-C",r.replace(new RegExp(`\\${p.sep}`,"g"),"/"),"--files-from",i];yield execTar(o,a,e)}))}t.createTar=createTar;function listTar(e,t){return i(this,void 0,void 0,(function*(){function getCompressionProgram(){switch(t){case c.CompressionMethod.Zstd:return["--use-compress-program","zstd -d --long=30"];case c.CompressionMethod.ZstdWithoutLong:return["--use-compress-program","zstd -d"];default:return["-z"]}}const a=[...getCompressionProgram(),"-tf",e.replace(new RegExp(`\\${p.sep}`,"g"),"/"),"-P"];yield execTar(a,t)}))}t.listTar=listTar},6215:function(e,t,a){"use strict";var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(Object.hasOwnProperty.call(e,a))t[a]=e[a];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const n=i(a(2186));function getUploadOptions(e){const t={uploadConcurrency:4,uploadChunkSize:32*1024*1024};if(e){if(typeof e.uploadConcurrency==="number"){t.uploadConcurrency=e.uploadConcurrency}if(typeof e.uploadChunkSize==="number"){t.uploadChunkSize=e.uploadChunkSize}}n.debug(`Upload concurrency: ${t.uploadConcurrency}`);n.debug(`Upload chunk size: ${t.uploadChunkSize}`);return t}t.getUploadOptions=getUploadOptions;function getDownloadOptions(e){const t={useAzureSdk:true,downloadConcurrency:8,timeoutInMs:3e4};if(e){if(typeof e.useAzureSdk==="boolean"){t.useAzureSdk=e.useAzureSdk}if(typeof e.downloadConcurrency==="number"){t.downloadConcurrency=e.downloadConcurrency}if(typeof e.timeoutInMs==="number"){t.timeoutInMs=e.timeoutInMs}}n.debug(`Use Azure SDK: ${t.useAzureSdk}`);n.debug(`Download concurrency: ${t.downloadConcurrency}`);n.debug(`Request timeout (ms): ${t.timeoutInMs}`);return t}t.getDownloadOptions=getDownloadOptions},1597:function(e,t,a){"use strict";var i=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.create=void 0;const n=a(7341);function create(e,t){return i(this,void 0,void 0,(function*(){return yield n.DefaultGlobber.create(e,t)}))}t.create=create},9350:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOptions=void 0;const o=r(a(2186));function getOptions(e){const t={followSymbolicLinks:true,implicitDescendants:true,omitBrokenSymbolicLinks:true};if(e){if(typeof e.followSymbolicLinks==="boolean"){t.followSymbolicLinks=e.followSymbolicLinks;o.debug(`followSymbolicLinks '${t.followSymbolicLinks}'`)}if(typeof e.implicitDescendants==="boolean"){t.implicitDescendants=e.implicitDescendants;o.debug(`implicitDescendants '${t.implicitDescendants}'`)}if(typeof e.omitBrokenSymbolicLinks==="boolean"){t.omitBrokenSymbolicLinks=e.omitBrokenSymbolicLinks;o.debug(`omitBrokenSymbolicLinks '${t.omitBrokenSymbolicLinks}'`)}}return t}t.getOptions=getOptions},7341:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var o=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var s=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],a;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),a={},verb("next"),verb("throw"),verb("return"),a[Symbol.asyncIterator]=function(){return this},a);function verb(t){a[t]=e[t]&&function(a){return new Promise((function(i,n){a=e[t](a),settle(i,n,a.done,a.value)}))}}function settle(e,t,a,i){Promise.resolve(i).then((function(t){e({value:t,done:a})}),t)}};var p=this&&this.__await||function(e){return this instanceof p?(this.v=e,this):new p(e)};var l=this&&this.__asyncGenerator||function(e,t,a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=a.apply(e,t||[]),n,r=[];return n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n;function verb(e){if(i[e])n[e]=function(t){return new Promise((function(a,i){r.push([e,t,a,i])>1||resume(e,t)}))}}function resume(e,t){try{step(i[e](t))}catch(e){settle(r[0][3],e)}}function step(e){e.value instanceof p?Promise.resolve(e.value.v).then(fulfill,reject):settle(r[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),r.shift(),r.length)resume(r[0][0],r[0][1])}};Object.defineProperty(t,"__esModule",{value:true});t.DefaultGlobber=void 0;const c=r(a(2186));const d=r(a(5747));const m=r(a(9350));const u=r(a(5622));const f=r(a(5186));const h=a(836);const g=a(5343);const y=a(8530);const v=process.platform==="win32";class DefaultGlobber{constructor(e){this.patterns=[];this.searchPaths=[];this.options=m.getOptions(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){var e,t;return o(this,void 0,void 0,(function*(){const a=[];try{for(var i=s(this.globGenerator()),n;n=yield i.next(),!n.done;){const e=n.value;a.push(e)}}catch(t){e={error:t}}finally{try{if(n&&!n.done&&(t=i.return))yield t.call(i)}finally{if(e)throw e.error}}return a}))}globGenerator(){return l(this,arguments,(function*globGenerator_1(){const e=m.getOptions(this.options);const t=[];for(const a of this.patterns){t.push(a);if(e.implicitDescendants&&(a.trailingSeparator||a.segments[a.segments.length-1]!=="**")){t.push(new g.Pattern(a.negate,true,a.segments.concat("**")))}}const a=[];for(const e of f.getSearchPaths(t)){c.debug(`Search path '${e}'`);try{yield p(d.promises.lstat(e))}catch(e){if(e.code==="ENOENT"){continue}throw e}a.unshift(new y.SearchState(e,1))}const i=[];while(a.length){const n=a.pop();const r=f.match(t,n.path);const o=!!r||f.partialMatch(t,n.path);if(!r&&!o){continue}const s=yield p(DefaultGlobber.stat(n,e,i));if(!s){continue}if(s.isDirectory()){if(r&h.MatchKind.Directory){yield yield p(n.path)}else if(!o){continue}const e=n.level+1;const t=(yield p(d.promises.readdir(n.path))).map((t=>new y.SearchState(u.join(n.path,t),e)));a.push(...t.reverse())}else if(r&h.MatchKind.File){yield yield p(n.path)}}}))}static create(e,t){return o(this,void 0,void 0,(function*(){const a=new DefaultGlobber(t);if(v){e=e.replace(/\r\n/g,"\n");e=e.replace(/\r/g,"\n")}const i=e.split("\n").map((e=>e.trim()));for(const e of i){if(!e||e.startsWith("#")){continue}else{a.patterns.push(new g.Pattern(e))}}a.searchPaths.push(...f.getSearchPaths(a.patterns));return a}))}static stat(e,t,a){return o(this,void 0,void 0,(function*(){let i;if(t.followSymbolicLinks){try{i=yield d.promises.stat(e.path)}catch(a){if(a.code==="ENOENT"){if(t.omitBrokenSymbolicLinks){c.debug(`Broken symlink '${e.path}'`);return undefined}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw a}}else{i=yield d.promises.lstat(e.path)}if(i.isDirectory()&&t.followSymbolicLinks){const t=yield d.promises.realpath(e.path);while(a.length>=e.level){a.pop()}if(a.some((e=>e===t))){c.debug(`Symlink cycle detected for path '${e.path}' and realpath '${t}'`);return undefined}a.push(t)}return i}))}}t.DefaultGlobber=DefaultGlobber},836:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MatchKind=void 0;var a;(function(e){e[e["None"]=0]="None";e[e["Directory"]=1]="Directory";e[e["File"]=2]="File";e[e["All"]=3]="All"})(a=t.MatchKind||(t.MatchKind={}))},22:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.safeTrimTrailingSeparator=t.normalizeSeparators=t.hasRoot=t.hasAbsoluteRoot=t.ensureAbsoluteRoot=t.dirname=void 0;const s=r(a(5622));const p=o(a(2357));const l=process.platform==="win32";function dirname(e){e=safeTrimTrailingSeparator(e);if(l&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(e)){return e}let t=s.dirname(e);if(l&&/^\\\\[^\\]+\\[^\\]+\\$/.test(t)){t=safeTrimTrailingSeparator(t)}return t}t.dirname=dirname;function ensureAbsoluteRoot(e,t){p.default(e,`ensureAbsoluteRoot parameter 'root' must not be empty`);p.default(t,`ensureAbsoluteRoot parameter 'itemPath' must not be empty`);if(hasAbsoluteRoot(t)){return t}if(l){if(t.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let e=process.cwd();p.default(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);if(t[0].toUpperCase()===e[0].toUpperCase()){if(t.length===2){return`${t[0]}:\\${e.substr(3)}`}else{if(!e.endsWith("\\")){e+="\\"}return`${t[0]}:\\${e.substr(3)}${t.substr(2)}`}}else{return`${t[0]}:\\${t.substr(2)}`}}else if(normalizeSeparators(t).match(/^\\$|^\\[^\\]/)){const e=process.cwd();p.default(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);return`${e[0]}:\\${t.substr(1)}`}}p.default(hasAbsoluteRoot(e),`ensureAbsoluteRoot parameter 'root' must have an absolute root`);if(e.endsWith("/")||l&&e.endsWith("\\")){}else{e+=s.sep}return e+t}t.ensureAbsoluteRoot=ensureAbsoluteRoot;function hasAbsoluteRoot(e){p.default(e,`hasAbsoluteRoot parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(l){return e.startsWith("\\\\")||/^[A-Z]:\\/i.test(e)}return e.startsWith("/")}t.hasAbsoluteRoot=hasAbsoluteRoot;function hasRoot(e){p.default(e,`isRooted parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(l){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.hasRoot=hasRoot;function normalizeSeparators(e){e=e||"";if(l){e=e.replace(/\//g,"\\");const t=/^\\\\+[^\\]/.test(e);return(t?"\\":"")+e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}t.normalizeSeparators=normalizeSeparators;function safeTrimTrailingSeparator(e){if(!e){return""}e=normalizeSeparators(e);if(!e.endsWith(s.sep)){return e}if(e===s.sep){return e}if(l&&/^[A-Z]:\\$/i.test(e)){return e}return e.substr(0,e.length-1)}t.safeTrimTrailingSeparator=safeTrimTrailingSeparator},9413:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.Path=void 0;const s=r(a(5622));const p=r(a(22));const l=o(a(2357));const c=process.platform==="win32";class Path{constructor(e){this.segments=[];if(typeof e==="string"){l.default(e,`Parameter 'itemPath' must not be empty`);e=p.safeTrimTrailingSeparator(e);if(!p.hasRoot(e)){this.segments=e.split(s.sep)}else{let t=e;let a=p.dirname(t);while(a!==t){const e=s.basename(t);this.segments.unshift(e);t=a;a=p.dirname(t)}this.segments.unshift(t)}}else{l.default(e.length>0,`Parameter 'itemPath' must not be an empty array`);for(let t=0;t!e.negate));const t={};for(const a of e){const e=p?a.searchPath.toUpperCase():a.searchPath;t[e]="candidate"}const a=[];for(const i of e){const e=p?i.searchPath.toUpperCase():i.searchPath;if(t[e]==="included"){continue}let n=false;let r=e;let s=o.dirname(r);while(s!==r){if(t[s]){n=true;break}r=s;s=o.dirname(r)}if(!n){a.push(i.searchPath);t[e]="included"}}return a}t.getSearchPaths=getSearchPaths;function match(e,t){let a=s.MatchKind.None;for(const i of e){if(i.negate){a&=~i.match(t)}else{a|=i.match(t)}}return a}t.match=match;function partialMatch(e,t){return e.some((e=>!e.negate&&e.partialMatch(t)))}t.partialMatch=partialMatch},5343:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.Pattern=void 0;const s=r(a(2087));const p=r(a(5622));const l=r(a(22));const c=o(a(2357));const d=a(3973);const m=a(836);const u=a(9413);const f=process.platform==="win32";class Pattern{constructor(e,t=false,a,i){this.negate=false;let n;if(typeof e==="string"){n=e.trim()}else{a=a||[];c.default(a.length,`Parameter 'segments' must not empty`);const t=Pattern.getLiteral(a[0]);c.default(t&&l.hasAbsoluteRoot(t),`Parameter 'segments' first element must be a root path`);n=new u.Path(a).toString().trim();if(e){n=`!${n}`}}while(n.startsWith("!")){this.negate=!this.negate;n=n.substr(1).trim()}n=Pattern.fixupPattern(n,i);this.segments=new u.Path(n).segments;this.trailingSeparator=l.normalizeSeparators(n).endsWith(p.sep);n=l.safeTrimTrailingSeparator(n);let r=false;const o=this.segments.map((e=>Pattern.getLiteral(e))).filter((e=>!r&&!(r=e==="")));this.searchPath=new u.Path(o).toString();this.rootRegExp=new RegExp(Pattern.regExpEscape(o[0]),f?"i":"");this.isImplicitPattern=t;const s={dot:true,nobrace:true,nocase:f,nocomment:true,noext:true,nonegate:true};n=f?n.replace(/\\/g,"/"):n;this.minimatch=new d.Minimatch(n,s)}match(e){if(this.segments[this.segments.length-1]==="**"){e=l.normalizeSeparators(e);if(!e.endsWith(p.sep)&&this.isImplicitPattern===false){e=`${e}${p.sep}`}}else{e=l.safeTrimTrailingSeparator(e)}if(this.minimatch.match(e)){return this.trailingSeparator?m.MatchKind.Directory:m.MatchKind.All}return m.MatchKind.None}partialMatch(e){e=l.safeTrimTrailingSeparator(e);if(l.dirname(e)===e){return this.rootRegExp.test(e)}return this.minimatch.matchOne(e.split(f?/\\+/:/\/+/),this.minimatch.set[0],true)}static globEscape(e){return(f?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,t){c.default(e,"pattern cannot be empty");const a=new u.Path(e).segments.map((e=>Pattern.getLiteral(e)));c.default(a.every(((e,t)=>(e!=="."||t===0)&&e!=="..")),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`);c.default(!l.hasRoot(e)||a[0],`Invalid pattern '${e}'. Root segment must not contain globs.`);e=l.normalizeSeparators(e);if(e==="."||e.startsWith(`.${p.sep}`)){e=Pattern.globEscape(process.cwd())+e.substr(1)}else if(e==="~"||e.startsWith(`~${p.sep}`)){t=t||s.homedir();c.default(t,"Unable to determine HOME directory");c.default(l.hasAbsoluteRoot(t),`Expected HOME directory to be a rooted path. Actual '${t}'`);e=Pattern.globEscape(t)+e.substr(1)}else if(f&&(e.match(/^[A-Z]:$/i)||e.match(/^[A-Z]:[^\\]/i))){let t=l.ensureAbsoluteRoot("C:\\dummy-root",e.substr(0,2));if(e.length>2&&!t.endsWith("\\")){t+="\\"}e=Pattern.globEscape(t)+e.substr(2)}else if(f&&(e==="\\"||e.match(/^\\[^\\]/))){let t=l.ensureAbsoluteRoot("C:\\dummy-root","\\");if(!t.endsWith("\\")){t+="\\"}e=Pattern.globEscape(t)+e.substr(1)}else{e=l.ensureAbsoluteRoot(Pattern.globEscape(process.cwd()),e)}return l.normalizeSeparators(e)}static getLiteral(e){let t="";for(let a=0;a=0){if(i.length>1){return""}if(i){t+=i;a=n;continue}}}t+=i}return t}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,"\\$&")}}t.Pattern=Pattern},8530:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SearchState=void 0;class SearchState{constructor(e,t){this.path=e;this.level=t}}t.SearchState=SearchState},7351:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const o=r(a(2087));const s=a(5278);function issueCommand(e,t,a){const i=new Command(e,t,a);process.stdout.write(i.toString()+o.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const p="::";class Command{constructor(e,t,a){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=a}toString(){let e=p+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const a in this.properties){if(this.properties.hasOwnProperty(a)){const i=this.properties[a];if(i){if(t){t=false}else{e+=","}e+=`${a}=${escapeProperty(i)}`}}}}e+=`${p}${escapeData(this.message)}`;return e}}function escapeData(e){return s.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return s.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var o=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getIDToken=t.getState=t.saveState=t.group=t.endGroup=t.startGroup=t.info=t.notice=t.warning=t.error=t.debug=t.isDebug=t.setFailed=t.setCommandEcho=t.setOutput=t.getBooleanInput=t.getMultilineInput=t.getInput=t.addPath=t.setSecret=t.exportVariable=t.ExitCode=void 0;const s=a(7351);const p=a(717);const l=a(5278);const c=r(a(2087));const d=r(a(5622));const m=a(8041);var u;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(u=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const a=l.toCommandValue(t);process.env[e]=a;const i=process.env["GITHUB_ENV"]||"";if(i){const t="_GitHubActionsFileCommandDelimeter_";const i=`${e}<<${t}${c.EOL}${a}${c.EOL}${t}`;p.issueCommand("ENV",i)}else{s.issueCommand("set-env",{name:e},a)}}t.exportVariable=exportVariable;function setSecret(e){s.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){p.issueCommand("PATH",e)}else{s.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${d.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const a=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!a){throw new Error(`Input required and not supplied: ${e}`)}if(t&&t.trimWhitespace===false){return a}return a.trim()}t.getInput=getInput;function getMultilineInput(e,t){const a=getInput(e,t).split("\n").filter((e=>e!==""));return a}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const a=["true","True","TRUE"];const i=["false","False","FALSE"];const n=getInput(e,t);if(a.includes(n))return true;if(i.includes(n))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}t.getBooleanInput=getBooleanInput;function setOutput(e,t){process.stdout.write(c.EOL);s.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){s.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=u.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){s.issueCommand("debug",{},e)}t.debug=debug;function error(e,t={}){s.issueCommand("error",l.toCommandProperties(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){s.issueCommand("warning",l.toCommandProperties(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){s.issueCommand("notice",l.toCommandProperties(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+c.EOL)}t.info=info;function startGroup(e){s.issue("group",e)}t.startGroup=startGroup;function endGroup(){s.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return o(this,void 0,void 0,(function*(){startGroup(e);let a;try{a=yield t()}finally{endGroup()}return a}))}t.group=group;function saveState(e,t){s.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState;function getIDToken(e){return o(this,void 0,void 0,(function*(){return yield m.OidcClient.getIDToken(e)}))}t.getIDToken=getIDToken},717:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issueCommand=void 0;const o=r(a(5747));const s=r(a(2087));const p=a(5278);function issueCommand(e,t){const a=process.env[`GITHUB_${e}`];if(!a){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!o.existsSync(a)){throw new Error(`Missing file at path: ${a}`)}o.appendFileSync(a,`${p.toCommandValue(t)}${s.EOL}`,{encoding:"utf8"})}t.issueCommand=issueCommand},8041:function(e,t,a){"use strict";var i=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.OidcClient=void 0;const n=a(9925);const r=a(3702);const o=a(2186);class OidcClient{static createHttpClient(e=true,t=10){const a={allowRetries:e,maxRetries:t};return new n.HttpClient("actions/oidc-client",[new r.BearerCredentialHandler(OidcClient.getRequestToken())],a)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var t;return i(this,void 0,void 0,(function*(){const a=OidcClient.createHttpClient();const i=yield a.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)}));const n=(t=i.result)===null||t===void 0?void 0:t.value;if(!n){throw new Error("Response json body do not have ID Token field")}return n}))}static getIDToken(e){return i(this,void 0,void 0,(function*(){try{let t=OidcClient.getIDTokenUrl();if(e){const a=encodeURIComponent(e);t=`${t}&audience=${a}`}o.debug(`ID token url is ${t}`);const a=yield OidcClient.getCall(t);o.setSecret(a);return a}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}t.OidcClient=OidcClient},5278:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toCommandProperties=t.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}t.toCommandProperties=toCommandProperties},1514:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var o=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getExecOutput=t.exec=void 0;const s=a(4304);const p=r(a(8159));function exec(e,t,a){return o(this,void 0,void 0,(function*(){const i=p.argStringToArray(e);if(i.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const n=i[0];t=i.slice(1).concat(t||[]);const r=new p.ToolRunner(n,t,a);return r.exec()}))}t.exec=exec;function getExecOutput(e,t,a){var i,n;return o(this,void 0,void 0,(function*(){let r="";let o="";const p=new s.StringDecoder("utf8");const l=new s.StringDecoder("utf8");const c=(i=a===null||a===void 0?void 0:a.listeners)===null||i===void 0?void 0:i.stdout;const d=(n=a===null||a===void 0?void 0:a.listeners)===null||n===void 0?void 0:n.stderr;const stdErrListener=e=>{o+=l.write(e);if(d){d(e)}};const stdOutListener=e=>{r+=p.write(e);if(c){c(e)}};const m=Object.assign(Object.assign({},a===null||a===void 0?void 0:a.listeners),{stdout:stdOutListener,stderr:stdErrListener});const u=yield exec(e,t,Object.assign(Object.assign({},a),{listeners:m}));r+=p.end();o+=l.end();return{exitCode:u,stdout:r,stderr:o}}))}t.getExecOutput=getExecOutput},8159:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var o=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.argStringToArray=t.ToolRunner=void 0;const s=r(a(2087));const p=r(a(8614));const l=r(a(3129));const c=r(a(5622));const d=r(a(7436));const m=r(a(1962));const u=a(8213);const f=process.platform==="win32";class ToolRunner extends p.EventEmitter{constructor(e,t,a){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=a||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const a=this._getSpawnFileName();const i=this._getSpawnArgs(e);let n=t?"":"[command]";if(f){if(this._isCmdFile()){n+=a;for(const e of i){n+=` ${e}`}}else if(e.windowsVerbatimArguments){n+=`"${a}"`;for(const e of i){n+=` ${e}`}}else{n+=this._windowsQuoteCmdArg(a);for(const e of i){n+=` ${this._windowsQuoteCmdArg(e)}`}}}else{n+=a;for(const e of i){n+=` ${e}`}}return n}_processLineBuffer(e,t,a){try{let i=t+e.toString();let n=i.indexOf(s.EOL);while(n>-1){const e=i.substring(0,n);a(e);i=i.substring(n+s.EOL.length);n=i.indexOf(s.EOL)}return i}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(f){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(f){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const a of this.args){t+=" ";t+=e.windowsVerbatimArguments?a:this._windowsQuoteCmdArg(a)}t+='"';return[t]}}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let a=false;for(const i of e){if(t.some((e=>e===i))){a=true;break}}if(!a){return e}let i='"';let n=true;for(let t=e.length;t>0;t--){i+=e[t-1];if(n&&e[t-1]==="\\"){i+="\\"}else if(e[t-1]==='"'){n=true;i+='"'}else{n=false}}i+='"';return i.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let t='"';let a=true;for(let i=e.length;i>0;i--){t+=e[i-1];if(a&&e[i-1]==="\\"){t+="\\"}else if(e[i-1]==='"'){a=true;t+="\\"}else{a=false}}t+='"';return t.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};t.outStream=e.outStream||process.stdout;t.errStream=e.errStream||process.stderr;return t}_getSpawnOptions(e,t){e=e||{};const a={};a.cwd=e.cwd;a.env=e.env;a["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){a.argv0=`"${t}"`}return a}exec(){return o(this,void 0,void 0,(function*(){if(!m.isRooted(this.toolPath)&&(this.toolPath.includes("/")||f&&this.toolPath.includes("\\"))){this.toolPath=c.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield d.which(this.toolPath,true);return new Promise(((e,t)=>o(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);if(!a.silent&&a.outStream){a.outStream.write(this._getCommandString(a)+s.EOL)}const i=new ExecState(a,this.toolPath);i.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield m.exists(this.options.cwd))){return t(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const n=this._getSpawnFileName();const r=l.spawn(n,this._getSpawnArgs(a),this._getSpawnOptions(this.options,n));let o="";if(r.stdout){r.stdout.on("data",(e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!a.silent&&a.outStream){a.outStream.write(e)}o=this._processLineBuffer(e,o,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let p="";if(r.stderr){r.stderr.on("data",(e=>{i.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!a.silent&&a.errStream&&a.outStream){const t=a.failOnStdErr?a.errStream:a.outStream;t.write(e)}p=this._processLineBuffer(e,p,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}r.on("error",(e=>{i.processError=e.message;i.processExited=true;i.processClosed=true;i.CheckComplete()}));r.on("exit",(e=>{i.processExitCode=e;i.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);i.CheckComplete()}));r.on("close",(e=>{i.processExitCode=e;i.processExited=true;i.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);i.CheckComplete()}));i.on("done",((a,i)=>{if(o.length>0){this.emit("stdline",o)}if(p.length>0){this.emit("errline",p)}r.removeAllListeners();if(a){t(a)}else{e(i)}}));if(this.options.input){if(!r.stdin){throw new Error("child process missing stdin")}r.stdin.end(this.options.input)}}))))}))}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let a=false;let i=false;let n="";function append(e){if(i&&e!=='"'){n+="\\"}n+=e;i=false}for(let r=0;r0){t.push(n);n=""}continue}append(o)}if(n.length>0){t.push(n.trim())}return t}t.argStringToArray=argStringToArray;class ExecState extends p.EventEmitter{constructor(e,t){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!t){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=t;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=u.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(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}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const t=`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(t)}e._setResult()}}},8090:function(e,t,a){"use strict";var i=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.hashFiles=t.create=void 0;const n=a(8298);const r=a(2448);function create(e,t){return i(this,void 0,void 0,(function*(){return yield n.DefaultGlobber.create(e,t)}))}t.create=create;function hashFiles(e,t){return i(this,void 0,void 0,(function*(){let a=true;if(t&&typeof t.followSymbolicLinks==="boolean"){a=t.followSymbolicLinks}const i=yield create(e,{followSymbolicLinks:a});return r.hashFiles(i)}))}t.hashFiles=hashFiles},1026:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOptions=void 0;const o=r(a(2186));function getOptions(e){const t={followSymbolicLinks:true,implicitDescendants:true,matchDirectories:true,omitBrokenSymbolicLinks:true};if(e){if(typeof e.followSymbolicLinks==="boolean"){t.followSymbolicLinks=e.followSymbolicLinks;o.debug(`followSymbolicLinks '${t.followSymbolicLinks}'`)}if(typeof e.implicitDescendants==="boolean"){t.implicitDescendants=e.implicitDescendants;o.debug(`implicitDescendants '${t.implicitDescendants}'`)}if(typeof e.matchDirectories==="boolean"){t.matchDirectories=e.matchDirectories;o.debug(`matchDirectories '${t.matchDirectories}'`)}if(typeof e.omitBrokenSymbolicLinks==="boolean"){t.omitBrokenSymbolicLinks=e.omitBrokenSymbolicLinks;o.debug(`omitBrokenSymbolicLinks '${t.omitBrokenSymbolicLinks}'`)}}return t}t.getOptions=getOptions},8298:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var o=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var s=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],a;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),a={},verb("next"),verb("throw"),verb("return"),a[Symbol.asyncIterator]=function(){return this},a);function verb(t){a[t]=e[t]&&function(a){return new Promise((function(i,n){a=e[t](a),settle(i,n,a.done,a.value)}))}}function settle(e,t,a,i){Promise.resolve(i).then((function(t){e({value:t,done:a})}),t)}};var p=this&&this.__await||function(e){return this instanceof p?(this.v=e,this):new p(e)};var l=this&&this.__asyncGenerator||function(e,t,a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=a.apply(e,t||[]),n,r=[];return n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n;function verb(e){if(i[e])n[e]=function(t){return new Promise((function(a,i){r.push([e,t,a,i])>1||resume(e,t)}))}}function resume(e,t){try{step(i[e](t))}catch(e){settle(r[0][3],e)}}function step(e){e.value instanceof p?Promise.resolve(e.value.v).then(fulfill,reject):settle(r[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),r.shift(),r.length)resume(r[0][0],r[0][1])}};Object.defineProperty(t,"__esModule",{value:true});t.DefaultGlobber=void 0;const c=r(a(2186));const d=r(a(5747));const m=r(a(1026));const u=r(a(5622));const f=r(a(9005));const h=a(1063);const g=a(4536);const y=a(9117);const v=process.platform==="win32";class DefaultGlobber{constructor(e){this.patterns=[];this.searchPaths=[];this.options=m.getOptions(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){var e,t;return o(this,void 0,void 0,(function*(){const a=[];try{for(var i=s(this.globGenerator()),n;n=yield i.next(),!n.done;){const e=n.value;a.push(e)}}catch(t){e={error:t}}finally{try{if(n&&!n.done&&(t=i.return))yield t.call(i)}finally{if(e)throw e.error}}return a}))}globGenerator(){return l(this,arguments,(function*globGenerator_1(){const e=m.getOptions(this.options);const t=[];for(const a of this.patterns){t.push(a);if(e.implicitDescendants&&(a.trailingSeparator||a.segments[a.segments.length-1]!=="**")){t.push(new g.Pattern(a.negate,true,a.segments.concat("**")))}}const a=[];for(const e of f.getSearchPaths(t)){c.debug(`Search path '${e}'`);try{yield p(d.promises.lstat(e))}catch(e){if(e.code==="ENOENT"){continue}throw e}a.unshift(new y.SearchState(e,1))}const i=[];while(a.length){const n=a.pop();const r=f.match(t,n.path);const o=!!r||f.partialMatch(t,n.path);if(!r&&!o){continue}const s=yield p(DefaultGlobber.stat(n,e,i));if(!s){continue}if(s.isDirectory()){if(r&h.MatchKind.Directory&&e.matchDirectories){yield yield p(n.path)}else if(!o){continue}const t=n.level+1;const i=(yield p(d.promises.readdir(n.path))).map((e=>new y.SearchState(u.join(n.path,e),t)));a.push(...i.reverse())}else if(r&h.MatchKind.File){yield yield p(n.path)}}}))}static create(e,t){return o(this,void 0,void 0,(function*(){const a=new DefaultGlobber(t);if(v){e=e.replace(/\r\n/g,"\n");e=e.replace(/\r/g,"\n")}const i=e.split("\n").map((e=>e.trim()));for(const e of i){if(!e||e.startsWith("#")){continue}else{a.patterns.push(new g.Pattern(e))}}a.searchPaths.push(...f.getSearchPaths(a.patterns));return a}))}static stat(e,t,a){return o(this,void 0,void 0,(function*(){let i;if(t.followSymbolicLinks){try{i=yield d.promises.stat(e.path)}catch(a){if(a.code==="ENOENT"){if(t.omitBrokenSymbolicLinks){c.debug(`Broken symlink '${e.path}'`);return undefined}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw a}}else{i=yield d.promises.lstat(e.path)}if(i.isDirectory()&&t.followSymbolicLinks){const t=yield d.promises.realpath(e.path);while(a.length>=e.level){a.pop()}if(a.some((e=>e===t))){c.debug(`Symlink cycle detected for path '${e.path}' and realpath '${t}'`);return undefined}a.push(t)}return i}))}}t.DefaultGlobber=DefaultGlobber},2448:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var o=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var s=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],a;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),a={},verb("next"),verb("throw"),verb("return"),a[Symbol.asyncIterator]=function(){return this},a);function verb(t){a[t]=e[t]&&function(a){return new Promise((function(i,n){a=e[t](a),settle(i,n,a.done,a.value)}))}}function settle(e,t,a,i){Promise.resolve(i).then((function(t){e({value:t,done:a})}),t)}};Object.defineProperty(t,"__esModule",{value:true});t.hashFiles=void 0;const p=r(a(6417));const l=r(a(2186));const c=r(a(5747));const d=r(a(2413));const m=r(a(1669));const u=r(a(5622));function hashFiles(e){var t,a;var i;return o(this,void 0,void 0,(function*(){let n=false;const r=(i=process.env["GITHUB_WORKSPACE"])!==null&&i!==void 0?i:process.cwd();const o=p.createHash("sha256");let f=0;try{for(var h=s(e.globGenerator()),g;g=yield h.next(),!g.done;){const e=g.value;l.debug(e);if(!e.startsWith(`${r}${u.sep}`)){l.debug(`Ignore '${e}' since it is not under GITHUB_WORKSPACE.`);continue}if(c.statSync(e).isDirectory()){l.debug(`Skip directory '${e}'.`);continue}const t=p.createHash("sha256");const a=m.promisify(d.pipeline);yield a(c.createReadStream(e),t);o.write(t.digest());f++;if(!n){n=true}}}catch(e){t={error:e}}finally{try{if(g&&!g.done&&(a=h.return))yield a.call(h)}finally{if(t)throw t.error}}o.end();if(n){l.debug(`Found ${f} files to hash.`);return o.digest("hex")}else{l.debug(`No matches found for glob`);return""}}))}t.hashFiles=hashFiles},1063:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MatchKind=void 0;var a;(function(e){e[e["None"]=0]="None";e[e["Directory"]=1]="Directory";e[e["File"]=2]="File";e[e["All"]=3]="All"})(a=t.MatchKind||(t.MatchKind={}))},1849:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.safeTrimTrailingSeparator=t.normalizeSeparators=t.hasRoot=t.hasAbsoluteRoot=t.ensureAbsoluteRoot=t.dirname=void 0;const s=r(a(5622));const p=o(a(2357));const l=process.platform==="win32";function dirname(e){e=safeTrimTrailingSeparator(e);if(l&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(e)){return e}let t=s.dirname(e);if(l&&/^\\\\[^\\]+\\[^\\]+\\$/.test(t)){t=safeTrimTrailingSeparator(t)}return t}t.dirname=dirname;function ensureAbsoluteRoot(e,t){p.default(e,`ensureAbsoluteRoot parameter 'root' must not be empty`);p.default(t,`ensureAbsoluteRoot parameter 'itemPath' must not be empty`);if(hasAbsoluteRoot(t)){return t}if(l){if(t.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let e=process.cwd();p.default(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);if(t[0].toUpperCase()===e[0].toUpperCase()){if(t.length===2){return`${t[0]}:\\${e.substr(3)}`}else{if(!e.endsWith("\\")){e+="\\"}return`${t[0]}:\\${e.substr(3)}${t.substr(2)}`}}else{return`${t[0]}:\\${t.substr(2)}`}}else if(normalizeSeparators(t).match(/^\\$|^\\[^\\]/)){const e=process.cwd();p.default(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);return`${e[0]}:\\${t.substr(1)}`}}p.default(hasAbsoluteRoot(e),`ensureAbsoluteRoot parameter 'root' must have an absolute root`);if(e.endsWith("/")||l&&e.endsWith("\\")){}else{e+=s.sep}return e+t}t.ensureAbsoluteRoot=ensureAbsoluteRoot;function hasAbsoluteRoot(e){p.default(e,`hasAbsoluteRoot parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(l){return e.startsWith("\\\\")||/^[A-Z]:\\/i.test(e)}return e.startsWith("/")}t.hasAbsoluteRoot=hasAbsoluteRoot;function hasRoot(e){p.default(e,`isRooted parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(l){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.hasRoot=hasRoot;function normalizeSeparators(e){e=e||"";if(l){e=e.replace(/\//g,"\\");const t=/^\\\\+[^\\]/.test(e);return(t?"\\":"")+e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}t.normalizeSeparators=normalizeSeparators;function safeTrimTrailingSeparator(e){if(!e){return""}e=normalizeSeparators(e);if(!e.endsWith(s.sep)){return e}if(e===s.sep){return e}if(l&&/^[A-Z]:\\$/i.test(e)){return e}return e.substr(0,e.length-1)}t.safeTrimTrailingSeparator=safeTrimTrailingSeparator},6836:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.Path=void 0;const s=r(a(5622));const p=r(a(1849));const l=o(a(2357));const c=process.platform==="win32";class Path{constructor(e){this.segments=[];if(typeof e==="string"){l.default(e,`Parameter 'itemPath' must not be empty`);e=p.safeTrimTrailingSeparator(e);if(!p.hasRoot(e)){this.segments=e.split(s.sep)}else{let t=e;let a=p.dirname(t);while(a!==t){const e=s.basename(t);this.segments.unshift(e);t=a;a=p.dirname(t)}this.segments.unshift(t)}}else{l.default(e.length>0,`Parameter 'itemPath' must not be an empty array`);for(let t=0;t!e.negate));const t={};for(const a of e){const e=p?a.searchPath.toUpperCase():a.searchPath;t[e]="candidate"}const a=[];for(const i of e){const e=p?i.searchPath.toUpperCase():i.searchPath;if(t[e]==="included"){continue}let n=false;let r=e;let s=o.dirname(r);while(s!==r){if(t[s]){n=true;break}r=s;s=o.dirname(r)}if(!n){a.push(i.searchPath);t[e]="included"}}return a}t.getSearchPaths=getSearchPaths;function match(e,t){let a=s.MatchKind.None;for(const i of e){if(i.negate){a&=~i.match(t)}else{a|=i.match(t)}}return a}t.match=match;function partialMatch(e,t){return e.some((e=>!e.negate&&e.partialMatch(t)))}t.partialMatch=partialMatch},4536:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.Pattern=void 0;const s=r(a(2087));const p=r(a(5622));const l=r(a(1849));const c=o(a(2357));const d=a(3973);const m=a(1063);const u=a(6836);const f=process.platform==="win32";class Pattern{constructor(e,t=false,a,i){this.negate=false;let n;if(typeof e==="string"){n=e.trim()}else{a=a||[];c.default(a.length,`Parameter 'segments' must not empty`);const t=Pattern.getLiteral(a[0]);c.default(t&&l.hasAbsoluteRoot(t),`Parameter 'segments' first element must be a root path`);n=new u.Path(a).toString().trim();if(e){n=`!${n}`}}while(n.startsWith("!")){this.negate=!this.negate;n=n.substr(1).trim()}n=Pattern.fixupPattern(n,i);this.segments=new u.Path(n).segments;this.trailingSeparator=l.normalizeSeparators(n).endsWith(p.sep);n=l.safeTrimTrailingSeparator(n);let r=false;const o=this.segments.map((e=>Pattern.getLiteral(e))).filter((e=>!r&&!(r=e==="")));this.searchPath=new u.Path(o).toString();this.rootRegExp=new RegExp(Pattern.regExpEscape(o[0]),f?"i":"");this.isImplicitPattern=t;const s={dot:true,nobrace:true,nocase:f,nocomment:true,noext:true,nonegate:true};n=f?n.replace(/\\/g,"/"):n;this.minimatch=new d.Minimatch(n,s)}match(e){if(this.segments[this.segments.length-1]==="**"){e=l.normalizeSeparators(e);if(!e.endsWith(p.sep)&&this.isImplicitPattern===false){e=`${e}${p.sep}`}}else{e=l.safeTrimTrailingSeparator(e)}if(this.minimatch.match(e)){return this.trailingSeparator?m.MatchKind.Directory:m.MatchKind.All}return m.MatchKind.None}partialMatch(e){e=l.safeTrimTrailingSeparator(e);if(l.dirname(e)===e){return this.rootRegExp.test(e)}return this.minimatch.matchOne(e.split(f?/\\+/:/\/+/),this.minimatch.set[0],true)}static globEscape(e){return(f?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,t){c.default(e,"pattern cannot be empty");const a=new u.Path(e).segments.map((e=>Pattern.getLiteral(e)));c.default(a.every(((e,t)=>(e!=="."||t===0)&&e!=="..")),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`);c.default(!l.hasRoot(e)||a[0],`Invalid pattern '${e}'. Root segment must not contain globs.`);e=l.normalizeSeparators(e);if(e==="."||e.startsWith(`.${p.sep}`)){e=Pattern.globEscape(process.cwd())+e.substr(1)}else if(e==="~"||e.startsWith(`~${p.sep}`)){t=t||s.homedir();c.default(t,"Unable to determine HOME directory");c.default(l.hasAbsoluteRoot(t),`Expected HOME directory to be a rooted path. Actual '${t}'`);e=Pattern.globEscape(t)+e.substr(1)}else if(f&&(e.match(/^[A-Z]:$/i)||e.match(/^[A-Z]:[^\\]/i))){let t=l.ensureAbsoluteRoot("C:\\dummy-root",e.substr(0,2));if(e.length>2&&!t.endsWith("\\")){t+="\\"}e=Pattern.globEscape(t)+e.substr(2)}else if(f&&(e==="\\"||e.match(/^\\[^\\]/))){let t=l.ensureAbsoluteRoot("C:\\dummy-root","\\");if(!t.endsWith("\\")){t+="\\"}e=Pattern.globEscape(t)+e.substr(1)}else{e=l.ensureAbsoluteRoot(Pattern.globEscape(process.cwd()),e)}return l.normalizeSeparators(e)}static getLiteral(e){let t="";for(let a=0;a=0){if(i.length>1){return""}if(i){t+=i;a=n;continue}}}t+=i}return t}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,"\\$&")}}t.Pattern=Pattern},9117:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SearchState=void 0;class SearchState{constructor(e,t){this.path=e;this.level=t}}t.SearchState=SearchState},3702:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from(this.username+":"+this.password).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,t,a){return null}}t.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Bearer "+this.token}canHandleAuthentication(e){return false}handleAuthentication(e,t,a){return null}}t.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from("PAT:"+this.token).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,t,a){return null}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},9925:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const i=a(8605);const n=a(7211);const r=a(6443);let o;var 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"})(s=t.HttpCodes||(t.HttpCodes={}));var p;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(p=t.Headers||(t.Headers={}));var l;(function(e){e["ApplicationJson"]="application/json"})(l=t.MediaTypes||(t.MediaTypes={}));function getProxyUrl(e){let t=r.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const c=[s.MovedPermanently,s.ResourceMoved,s.SeeOther,s.TemporaryRedirect,s.PermanentRedirect];const d=[s.BadGateway,s.ServiceUnavailable,s.GatewayTimeout];const m=["OPTIONS","GET","DELETE","HEAD"];const u=10;const f=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return new Promise((async(e,t)=>{let a=Buffer.alloc(0);this.message.on("data",(e=>{a=Buffer.concat([a,e])}));this.message.on("end",(()=>{e(a.toString())}))}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){let t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,a){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=a;if(a){if(a.ignoreSslError!=null){this._ignoreSslError=a.ignoreSslError}this._socketTimeout=a.socketTimeout;if(a.allowRedirects!=null){this._allowRedirects=a.allowRedirects}if(a.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=a.allowRedirectDowngrade}if(a.maxRedirects!=null){this._maxRedirects=Math.max(a.maxRedirects,0)}if(a.keepAlive!=null){this._keepAlive=a.keepAlive}if(a.allowRetries!=null){this._allowRetries=a.allowRetries}if(a.maxRetries!=null){this._maxRetries=a.maxRetries}}}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,a){return this.request("POST",e,t,a||{})}patch(e,t,a){return this.request("PATCH",e,t,a||{})}put(e,t,a){return this.request("PUT",e,t,a||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,a,i){return this.request(e,t,a,i)}async getJson(e,t={}){t[p.Accept]=this._getExistingOrDefaultHeader(t,p.Accept,l.ApplicationJson);let a=await this.get(e,t);return this._processResponse(a,this.requestOptions)}async postJson(e,t,a={}){let i=JSON.stringify(t,null,2);a[p.Accept]=this._getExistingOrDefaultHeader(a,p.Accept,l.ApplicationJson);a[p.ContentType]=this._getExistingOrDefaultHeader(a,p.ContentType,l.ApplicationJson);let n=await this.post(e,i,a);return this._processResponse(n,this.requestOptions)}async putJson(e,t,a={}){let i=JSON.stringify(t,null,2);a[p.Accept]=this._getExistingOrDefaultHeader(a,p.Accept,l.ApplicationJson);a[p.ContentType]=this._getExistingOrDefaultHeader(a,p.ContentType,l.ApplicationJson);let n=await this.put(e,i,a);return this._processResponse(n,this.requestOptions)}async patchJson(e,t,a={}){let i=JSON.stringify(t,null,2);a[p.Accept]=this._getExistingOrDefaultHeader(a,p.Accept,l.ApplicationJson);a[p.ContentType]=this._getExistingOrDefaultHeader(a,p.ContentType,l.ApplicationJson);let n=await this.patch(e,i,a);return this._processResponse(n,this.requestOptions)}async request(e,t,a,i){if(this._disposed){throw new Error("Client has already been disposed.")}let n=new URL(t);let r=this._prepareRequest(e,n,i);let o=this._allowRetries&&m.indexOf(e)!=-1?this._maxRetries+1:1;let p=0;let l;while(p0){const o=l.message.headers["location"];if(!o){break}let s=new URL(o);if(n.protocol=="https:"&&n.protocol!=s.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}await l.readBody();if(s.hostname!==n.hostname){for(let e in i){if(e.toLowerCase()==="authorization"){delete i[e]}}}r=this._prepareRequest(e,s,i);l=await this.requestRaw(r,a);t--}if(d.indexOf(l.message.statusCode)==-1){return l}p+=1;if(p{let callbackForResult=function(e,t){if(e){i(e)}a(t)};this.requestRawWithCallback(e,t,callbackForResult)}))}requestRawWithCallback(e,t,a){let i;if(typeof t==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let n=false;let handleResult=(e,t)=>{if(!n){n=true;a(e,t)}};let r=e.httpModule.request(e.options,(e=>{let t=new HttpClientResponse(e);handleResult(null,t)}));r.on("socket",(e=>{i=e}));r.setTimeout(this._socketTimeout||3*6e4,(()=>{if(i){i.end()}handleResult(new Error("Request timeout: "+e.options.path),null)}));r.on("error",(function(e){handleResult(e,null)}));if(t&&typeof t==="string"){r.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){r.end()}));t.pipe(r)}else{r.end()}}getAgent(e){let t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,a){const r={};r.parsedUrl=t;const o=r.parsedUrl.protocol==="https:";r.httpModule=o?n:i;const s=o?443:80;r.options={};r.options.host=r.parsedUrl.hostname;r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):s;r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||"");r.options.method=e;r.options.headers=this._mergeHeaders(a);if(this.userAgent!=null){r.options.headers["user-agent"]=this.userAgent}r.options.agent=this._getAgent(r.parsedUrl);if(this.handlers){this.handlers.forEach((e=>{e.prepareRequest(r.options)}))}return r}_mergeHeaders(e){const lowercaseKeys=e=>Object.keys(e).reduce(((t,a)=>(t[a.toLowerCase()]=e[a],t)),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,a){const lowercaseKeys=e=>Object.keys(e).reduce(((t,a)=>(t[a.toLowerCase()]=e[a],t)),{});let i;if(this.requestOptions&&this.requestOptions.headers){i=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||i||a}_getAgent(e){let t;let s=r.getProxyUrl(e);let p=s&&s.hostname;if(this._keepAlive&&p){t=this._proxyAgent}if(this._keepAlive&&!p){t=this._agent}if(!!t){return t}const l=e.protocol==="https:";let c=100;if(!!this.requestOptions){c=this.requestOptions.maxSockets||i.globalAgent.maxSockets}if(p){if(!o){o=a(4294)}const e={maxSockets:c,keepAlive:this._keepAlive,proxy:{...(s.username||s.password)&&{proxyAuth:`${s.username}:${s.password}`},host:s.hostname,port:s.port}};let i;const n=s.protocol==="https:";if(l){i=n?o.httpsOverHttps:o.httpsOverHttp}else{i=n?o.httpOverHttps:o.httpOverHttp}t=i(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:c};t=l?new n.Agent(e):new i.Agent(e);this._agent=t}if(!t){t=l?n.globalAgent:i.globalAgent}if(l&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){e=Math.min(u,e);const t=f*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}static dateTimeDeserializer(e,t){if(typeof t==="string"){let e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}async _processResponse(e,t){return new Promise((async(a,i)=>{const n=e.message.statusCode;const r={statusCode:n,result:null,headers:{}};if(n==s.NotFound){a(r)}let o;let p;try{p=await e.readBody();if(p&&p.length>0){if(t&&t.deserializeDates){o=JSON.parse(p,HttpClient.dateTimeDeserializer)}else{o=JSON.parse(p)}r.result=o}r.headers=e.message.headers}catch(e){}if(n>299){let e;if(o&&o.message){e=o.message}else if(p&&p.length>0){e=p}else{e="Failed request: ("+n+")"}let t=new HttpClientError(e,n);t.result=r.result;i(t)}else{a(r)}}))}}t.HttpClient=HttpClient},6443:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function getProxyUrl(e){let t=e.protocol==="https:";let a;if(checkBypass(e)){return a}let i;if(t){i=process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{i=process.env["http_proxy"]||process.env["HTTP_PROXY"]}if(i){a=new URL(i)}return a}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}let t=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!t){return false}let a;if(e.port){a=Number(e.port)}else if(e.protocol==="http:"){a=80}else if(e.protocol==="https:"){a=443}let i=[e.hostname.toUpperCase()];if(typeof a==="number"){i.push(`${i[0]}:${a}`)}for(let e of t.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(i.some((t=>t===e))){return true}}return false}t.checkBypass=checkBypass},1962:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var o=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var s;Object.defineProperty(t,"__esModule",{value:true});t.getCmdPath=t.tryGetExecutablePath=t.isRooted=t.isDirectory=t.exists=t.IS_WINDOWS=t.unlink=t.symlink=t.stat=t.rmdir=t.rename=t.readlink=t.readdir=t.mkdir=t.lstat=t.copyFile=t.chmod=void 0;const p=r(a(5747));const l=r(a(5622));s=p.promises,t.chmod=s.chmod,t.copyFile=s.copyFile,t.lstat=s.lstat,t.mkdir=s.mkdir,t.readdir=s.readdir,t.readlink=s.readlink,t.rename=s.rename,t.rmdir=s.rmdir,t.stat=s.stat,t.symlink=s.symlink,t.unlink=s.unlink;t.IS_WINDOWS=process.platform==="win32";function exists(e){return o(this,void 0,void 0,(function*(){try{yield t.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}t.exists=exists;function isDirectory(e,a=false){return o(this,void 0,void 0,(function*(){const i=a?yield t.stat(e):yield t.lstat(e);return i.isDirectory()}))}t.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(t.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.isRooted=isRooted;function tryGetExecutablePath(e,a){return o(this,void 0,void 0,(function*(){let i=undefined;try{i=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(i&&i.isFile()){if(t.IS_WINDOWS){const t=l.extname(e).toUpperCase();if(a.some((e=>e.toUpperCase()===t))){return e}}else{if(isUnixExecutable(i)){return e}}}const n=e;for(const r of a){e=n+r;i=undefined;try{i=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(i&&i.isFile()){if(t.IS_WINDOWS){try{const a=l.dirname(e);const i=l.basename(e).toUpperCase();for(const n of yield t.readdir(a)){if(i===n.toUpperCase()){e=l.join(a,n);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(i)){return e}}}}return""}))}t.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(t.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}function getCmdPath(){var e;return(e=process.env["COMSPEC"])!==null&&e!==void 0?e:`cmd.exe`}t.getCmdPath=getCmdPath},7436:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,i){if(i===undefined)i=a;e[i]=t[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(t,e,a);n(t,e);return t};var o=this&&this.__awaiter||function(e,t,a,i){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.findInPath=t.which=t.mkdirP=t.rmRF=t.mv=t.cp=void 0;const s=a(2357);const p=r(a(3129));const l=r(a(5622));const c=a(1669);const d=r(a(1962));const m=c.promisify(p.exec);const u=c.promisify(p.execFile);function cp(e,t,a={}){return o(this,void 0,void 0,(function*(){const{force:i,recursive:n,copySourceDirectory:r}=readCopyOptions(a);const o=(yield d.exists(t))?yield d.stat(t):null;if(o&&o.isFile()&&!i){return}const s=o&&o.isDirectory()&&r?l.join(t,l.basename(e)):t;if(!(yield d.exists(e))){throw new Error(`no such file or directory: ${e}`)}const p=yield d.stat(e);if(p.isDirectory()){if(!n){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,s,0,i)}}else{if(l.relative(e,s)===""){throw new Error(`'${s}' and '${e}' are the same file`)}yield copyFile(e,s,i)}}))}t.cp=cp;function mv(e,t,a={}){return o(this,void 0,void 0,(function*(){if(yield d.exists(t)){let i=true;if(yield d.isDirectory(t)){t=l.join(t,l.basename(e));i=yield d.exists(t)}if(i){if(a.force==null||a.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(l.dirname(t));yield d.rename(e,t)}))}t.mv=mv;function rmRF(e){return o(this,void 0,void 0,(function*(){if(d.IS_WINDOWS){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}try{const t=d.getCmdPath();if(yield d.isDirectory(e,true)){yield m(`${t} /s /c "rd /s /q "%inputPath%""`,{env:{inputPath:e}})}else{yield m(`${t} /s /c "del /f /a "%inputPath%""`,{env:{inputPath:e}})}}catch(e){if(e.code!=="ENOENT")throw e}try{yield d.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let t=false;try{t=yield d.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(t){yield u(`rm`,[`-rf`,`${e}`])}else{yield d.unlink(e)}}}))}t.rmRF=rmRF;function mkdirP(e){return o(this,void 0,void 0,(function*(){s.ok(e,"a path argument must be provided");yield d.mkdir(e,{recursive:true})}))}t.mkdirP=mkdirP;function which(e,t){return o(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(t){const t=yield which(e,false);if(!t){if(d.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. 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.`)}else{throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}return t}const a=yield findInPath(e);if(a&&a.length>0){return a[0]}return""}))}t.which=which;function findInPath(e){return o(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const t=[];if(d.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(l.delimiter)){if(e){t.push(e)}}}if(d.isRooted(e)){const a=yield d.tryGetExecutablePath(e,t);if(a){return[a]}return[]}if(e.includes(l.sep)){return[]}const a=[];if(process.env.PATH){for(const e of process.env.PATH.split(l.delimiter)){if(e){a.push(e)}}}const i=[];for(const n of a){const a=yield d.tryGetExecutablePath(l.join(n,e),t);if(a){i.push(a)}}return i}))}t.findInPath=findInPath;function readCopyOptions(e){const t=e.force==null?true:e.force;const a=Boolean(e.recursive);const i=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:t,recursive:a,copySourceDirectory:i}}function cpDirRecursive(e,t,a,i){return o(this,void 0,void 0,(function*(){if(a>=255)return;a++;yield mkdirP(t);const n=yield d.readdir(e);for(const r of n){const n=`${e}/${r}`;const o=`${t}/${r}`;const s=yield d.lstat(n);if(s.isDirectory()){yield cpDirRecursive(n,o,a,i)}else{yield copyFile(n,o,i)}}yield d.chmod(t,(yield d.stat(e)).mode)}))}function copyFile(e,t,a){return o(this,void 0,void 0,(function*(){if((yield d.lstat(e)).isSymbolicLink()){try{yield d.lstat(t);yield d.unlink(t)}catch(e){if(e.code==="EPERM"){yield d.chmod(t,"0666");yield d.unlink(t)}}const a=yield d.readlink(e);yield d.symlink(a,t,d.IS_WINDOWS?"junction":null)}else if(!(yield d.exists(t))||a){yield d.copyFile(e,t)}}))}},2557:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var i=a(9268);var n=new WeakMap;var r=new WeakMap;var o=function(){function AbortSignal(){this.onabort=null;n.set(this,[]);r.set(this,false)}Object.defineProperty(AbortSignal.prototype,"aborted",{get:function(){if(!r.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}return r.get(this)},enumerable:false,configurable:true});Object.defineProperty(AbortSignal,"none",{get:function(){return new AbortSignal},enumerable:false,configurable:true});AbortSignal.prototype.addEventListener=function(e,t){if(!n.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}var a=n.get(this);a.push(t)};AbortSignal.prototype.removeEventListener=function(e,t){if(!n.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}var a=n.get(this);var i=a.indexOf(t);if(i>-1){a.splice(i,1)}};AbortSignal.prototype.dispatchEvent=function(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")};return AbortSignal}();function abortSignal(e){if(e.aborted){return}if(e.onabort){e.onabort.call(e)}var t=n.get(e);if(t){t.slice().forEach((function(t){t.call(e,{type:"abort"})}))}r.set(e,true)}var s=function(e){i.__extends(AbortError,e);function AbortError(t){var a=e.call(this,t)||this;a.name="AbortError";return a}return AbortError}(Error);var p=function(){function AbortController(e){var t=this;this._signal=new o;if(!e){return}if(!Array.isArray(e)){e=arguments}for(var a=0,i=e;a{ /*! ***************************************************************************** Copyright (c) Microsoft Corporation. diff --git a/lib/helpers.js b/lib/helpers.js index 577a997..76ed96e 100644 --- a/lib/helpers.js +++ b/lib/helpers.js @@ -3,6 +3,7 @@ const exec = require('@actions/exec'); const path = require('path'); const md5 = require('md5'); +const fs = require('fs'); const runningOnCI = process.env['CI'] @@ -67,7 +68,7 @@ async function awaitAll(array, functor) { } async function getMD5(filePath) { - const depsContent = await fs.promises.readFileSync(filePath); + const depsContent = await fs.promises.readFile(filePath); return md5(depsContent); } @@ -85,7 +86,7 @@ const sleep = (waitTimeInMs) => new Promise(resolve => setTimeout(resolve, waitT process.on('unhandledRejection', (reason, p) => { error(reason); - core.setFailed(err); + core.setFailed(reason); process.exit(1); }).on('uncaughtException', err => { error(err);