From b4bcd6c6df9f9c2685076ae3eabe367661a4796b Mon Sep 17 00:00:00 2001 From: Dmitry Vedenko Date: Fri, 28 Apr 2023 14:50:06 +0300 Subject: [PATCH] Fixes PDB cleanup on Windows --- dist/build/index.js | 2 +- dist/configure/index.js | 2 +- lib/debug.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/build/index.js b/dist/build/index.js index 7bc5a7b..3c8073e 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}const g=[/libicu.+/];function skipSplit(e){for(const p of g){if(e.match(p)){return true}}return false}async function splitDebugFile(e){if(skipSplit(e)){return""}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"),"C:/.conan/**/*.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"),"C:/.conan/**/*.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,`${p}/**/*.pdb`));if(a){const a=await getMatchingFiles(t.join(e,`${p}/**/*.dll`),t.join(e,`${p}/**/*.pdb`),true);const d=await getMatchingFiles(t.join(e,`${p}/**/*.exe`),t.join(e,`${p}/**/*.pdb`),true);for(const e of i){await addToSymStore(e)}await uploadAllToSentry([...a,...i,...d])}const r=await o.globFiles([t.join(e,`${p}/**/*.ipdb`),t.join(e,`${p}/**/*.iobj`),t.join(e,`${p}/**/*.ilk`)]);for(const e of[...exePdbs,...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=>{ +(()=>{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}const g=[/libicu.+/];function skipSplit(e){for(const p of g){if(e.match(p)){return true}}return false}async function splitDebugFile(e){if(skipSplit(e)){return""}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"),"C:/.conan/**/*.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"),"C:/.conan/**/*.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,`${p}/**/*.pdb`));if(a){const a=await getMatchingFiles(t.join(e,`${p}/**/*.dll`),t.join(e,`${p}/**/*.pdb`),true);const d=await getMatchingFiles(t.join(e,`${p}/**/*.exe`),t.join(e,`${p}/**/*.pdb`),true);for(const e of i){await addToSymStore(e)}await uploadAllToSentry([...a,...i,...d])}const r=await o.globFiles([t.join(e,`${p}/**/*.ipdb`),t.join(e,`${p}/**/*.iobj`),t.join(e,`${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 31d9949..6686fca 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,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){try{await l.execWithLog(`conan remote add audacity-binaries-upload ${a} true --force`)}finally{await l.execWithLog(`conan upload "*" -r audacity-binaries-upload -c --all`);await l.execWithLog(`conan remote remove audacity-binaries-upload`)}}}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}const v=[/libicu.+/];function skipSplit(e){for(const t of v){if(e.match(t)){return true}}return false}async function splitDebugFile(e){if(skipSplit(e)){return""}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"),"C:/.conan/**/*.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"),"C:/.conan/**/*.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,`${t}/**/*.pdb`));if(a){const a=await getMatchingFiles(n.join(e,`${t}/**/*.dll`),n.join(e,`${t}/**/*.pdb`),true);const i=await getMatchingFiles(n.join(e,`${t}/**/*.exe`),n.join(e,`${t}/**/*.pdb`),true);for(const e of o){await addToSymStore(e)}await uploadAllToSentry([...a,...o,...i])}const r=await l.globFiles([n.join(e,`${t}/**/*.ipdb`),n.join(e,`${t}/**/*.iobj`),n.join(e,`${t}/**/*.ilk`)]);for(const e of[...exePdbs,...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{ +(()=>{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){try{await l.execWithLog(`conan remote add audacity-binaries-upload ${a} true --force`)}finally{await l.execWithLog(`conan upload "*" -r audacity-binaries-upload -c --all`);await l.execWithLog(`conan remote remove audacity-binaries-upload`)}}}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}const v=[/libicu.+/];function skipSplit(e){for(const t of v){if(e.match(t)){return true}}return false}async function splitDebugFile(e){if(skipSplit(e)){return""}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"),"C:/.conan/**/*.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"),"C:/.conan/**/*.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,`${t}/**/*.pdb`));if(a){const a=await getMatchingFiles(n.join(e,`${t}/**/*.dll`),n.join(e,`${t}/**/*.pdb`),true);const i=await getMatchingFiles(n.join(e,`${t}/**/*.exe`),n.join(e,`${t}/**/*.pdb`),true);for(const e of o){await addToSymStore(e)}await uploadAllToSentry([...a,...o,...i])}const r=await l.globFiles([n.join(e,`${t}/**/*.ipdb`),n.join(e,`${t}/**/*.iobj`),n.join(e,`${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/lib/debug.js b/lib/debug.js index 0304c35..5125ad3 100644 --- a/lib/debug.js +++ b/lib/debug.js @@ -377,7 +377,7 @@ async function processDebugInformation(buildDir, buildType, performUpload) { path.join(buildDir, `${buildType}/**/*.ilk`), ]); - for (const pdb of [ ...exePdbs, ...miscFiles ]) { + for (const pdb of [ ...pdbs, ...miscFiles ]) { await fs.promises.rm(pdb); } } else if (process.platform == 'darwin') {