setup-cpp/dist/setup_cpp.js

3 lines
152 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

function e(e,t,r,s){Object.defineProperty(e,t,{get:r,set:s,enumerable:!0,configurable:!0})}function t(e){return e&&e.__esModule?e.default:e}function r(e,t,s){if("function"==typeof t&&(s=t,t={}),!s){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise(((s,o)=>{r(e,t||{},((e,t)=>{e?o(e):s(t)}))}))}Me(e,t||{},((e,r)=>{e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,r=!1),s(e,r)}))}function s(e,r,s){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeof ze)return{binDir:ze};const o=t(Le).sync("brew",{nothrow:!0});return null!==o?(ze=me.dirname(o),{binDir:ze}):(Oe.execFileSync('/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"',{stdio:"inherit"}),ze="/usr/local/bin/",{binDir:ze})}function o(e,t){const r=e.options.env||process.env,s=process.cwd(),o=null!=e.options.cwd,i=o&&void 0!==process.chdir&&!process.chdir.disabled;if(i)try{process.chdir(e.options.cwd)}catch(e){}let n;try{n=Le.sync(e.command,{path:r[We({env:r})],pathExt:t?me.delimiter:void 0})}catch(e){}finally{i&&process.chdir(s)}return n&&(n=me.resolve(o?e.options.cwd:"",n)),n}function i(e,t){return Object.assign(Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function n(e,t){return ot&&1===e&&!t.file?i(t.original,"spawn"):null}function a(e,t,r){const s=Xe(e,t,r),o=Oe.spawn(s.command,s.args,s.options);return st.hookChildProcess(o,s),o}async function c(e,t){if(!e)throw Error("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:r}=t,s=tr(t);return await new Promise(((t,o)=>{const i=e=>{e&&s.getBufferedLength()<=sr.MAX_LENGTH&&(e.bufferedData=s.getBufferedValue()),o(e)};(async()=>{try{await ir(e,s),t()}catch(e){i(e)}})(),s.on("data",(()=>{s.getBufferedLength()>r&&i(new nr)}))})),s.getBufferedValue()}function l(){var e;return void 0!==Ir||(Ir=(!!process.env.CI||0===(null===(e=process.getuid)||void 0===e?void 0:e.call(process)))&&null!==t(Le).sync("sudo",{nothrow:!0})),Ir}function u(e,r,s){return l()?t(Be).commandSync("sudo "+[e,...r].map((e=>`'${e}'`)).join(" "),{shell:!0,cwd:s,stdio:"inherit"}):t(Be).sync(e,r,{stdio:"inherit"})}function p(e){return l()&&"string"==typeof process.env.SUDO_USER?"darwin"===process.platform?me.join("/Users/",process.env.SUDO_USER,e):me.join("/home/",process.env.SUDO_USER,e):t(Ar)("~/"+e)}function d(e){if(void 0===kr){const e=t(Le).sync("pwsh",{nothrow:!0});null!==e&&(kr=e);const r=t(Le).sync("powershell",{nothrow:!0});null!==r&&(kr=r)}if(void 0===kr)throw Error("Could not find powershell");t(Be).sync(kr,["-c",e],{stdio:"inherit"})}function h(e,t){try{Pr.isGitHubCI()?ke.exportVariable(e,t):m(e,t)}catch(r){try{return Rr.error(r),m(e,t)}catch(e){Rr.error(e)}ke.setFailed(`Failed to export environment variable ${e}=${t}. You should add it manually.`)}}function f(e){process.env.PATH=`${e}${me.delimiter}${process.env.PATH}`;try{Pr.isGitHubCI()?ke.addPath(e):g(e)}catch(t){try{return Rr.error(t),g(e)}catch(e){Rr.error(e)}ke.setFailed(`Failed to add ${e} to the percistent PATH. You should add it manually.`)}}function m(e,t){const r=null!=t?t:"";switch(process.platform){case"win32":return d(`[Environment]::SetEnvironmentVariable("${e}", "${r}", "User")`),void ke.info(`${e}="${r} was set in the environment."`);case"linux":case"darwin":return v(),ge.appendFileSync(Lr,`\nexport ${e}="${r}"\n`),void ke.info(`${e}="${r} was added to "${Lr}"`)}process.env[e]=r}function g(e){switch(process.platform){case"win32":return d(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),void ke.info(e+" was added to the PATH.");case"linux":case"darwin":return v(),ge.appendFileSync(Lr,`\nexport PATH=${e}:$PATH\n`),void ke.info(`${e} was added to "${Lr}"`);default:return}}function v(){if(Dr)return;const e="export SOURCE_CPPRC=0";if(ge.existsSync(Lr)&&ge.readFileSync(Lr,"utf8").includes(e))return;ge.appendFileSync(Lr,`\n${e}\n`),ke.info(`Added ${e} to ${Lr}`);const t=`\n# source .cpprc if SOURCE_CPPRC is not set to 0\nif [[ "$SOURCE_CPPRC" != 0 && -f "${Lr}" ]]; then source "${Lr}"; fi\n`;try{const e=p(".profile");ge.appendFileSync(e,t),ke.info(`${t} was added to ${e}`);const r=p(".bashrc");ge.appendFileSync(r,t),ke.info(`${t} was added to ${r}`)}catch(e){Rr.warning(`Failed to add ${t} to .profile or .bashrc. You should add it manually: ${e}`)}Dr=!0}function y(e,t,r=!0){ke.info(`Installing ${e} ${null!=t?t:""} via apt`);const s="apt-get";if(process.env.DEBIAN_FRONTEND="noninteractive",jr||(u(s,["update","-y"]),jr=!0),!Mr){u(s,["install","--fix-broken","-y","software-properties-common","apt-utils","ca-certificates","gnupg"]);try{u("apt-key",["adv","--keyserver","keyserver.ubuntu.com","--recv-keys","3B4FE6ACC0B21F32"]),u("apt-key",["adv","--keyserver","keyserver.ubuntu.com","--recv-keys","40976EAF437D05B5"]),u("apt-key",["adv","--keyserver","keyserver.ubuntu.com","--recv-keys","1E9377A2BA9EF27F"])}catch(e){Rr.warning("Failed to add keys: "+e)}Mr=!0}if(Array.isArray(r)){for(const e of r)u("add-apt-repository",["--update","-y",e]);u(s,["update","-y"])}if(void 0!==t&&""!==t)try{u(s,["install","--fix-broken","-y",`${e}=${t}`])}catch{u(s,["install","--fix-broken","-y",`${e}-${t}`])}else u(s,["install","--fix-broken","-y",e]);return{binDir:"/usr/bin/"}}function x(e,t){return Pr.isGitHubCI()?u("update-alternatives",["--install","/usr/bin/"+e,e,t,"40"]):(v(),ge.appendFileSync(Lr,`\nif [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${e} ${e} ${t} 40; fi\n`))}function w(e,r){return ke.info(`Installing ${e} ${null!=r?r:""} via brew`),Ur&&null!==t(Le).sync("brew",{nothrow:!0})||(s(0,0,process),Ur=!0),t(Be).sync("brew",["install",void 0!==r&&""!==r?`${e}@${r}`:e],{stdio:"inherit"}),{binDir:"/usr/local/bin/"}}function b(e,r,s){if("win32"!==process.platform)return;if("string"==typeof Fr)return{binDir:Fr};const o=t(Le).sync("choco",{nothrow:!0});if(null!==o)return Fr=me.dirname(o),{binDir:Fr};let i="powershell.exe";const n=t(Le).sync(process.env.SystemRoot+"\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",{nothrow:!0});null!==n&&(i=n),t(Be).sync(i,["-NoProfile","-InputFormat","None","-ExecutionPolicy","Bypass","-Command","[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))"],{stdio:"inherit"}),f(process.env.ALLUSERSPROFILE+"\\chocolatey\\bin");const a=t(Le).sync("choco",{nothrow:!0});var c;return Fr=null!==a?me.dirname(a):(null!==(c=process.env.ChocolateyInstall)&&void 0!==c?c:"C:/ProgramData/chocolatey")+"/bin",ge.existsSync(Fr)?{binDir:Fr}:void 0}function E(e,r,s=[]){ke.info(`Installing ${e} ${null!=r?r:""} via chocolatey`),Gr&&null!==t(Le).sync("choco",{nothrow:!0})||(b(0,0,process),Gr=!0);const o=process.env.PATH,i={...process.env};var n;delete i.TMP,delete i.TEMP,delete i.Path,i.PATH=o,t(Be).sync("choco",void 0!==r&&""!==r?["install","-y",e,"--version="+r,...s]:["install","-y",e,...s],{env:i,extendEnv:!1,stdio:"inherit"});const a=(null!==(n=process.env.ChocolateyInstall)&&void 0!==n?n:"C:/ProgramData/chocolatey")+"/bin";return f(a),{binDir:a}}function S(e){return"win32"===process.platform?e+".exe":e}function O(e){return"win32"===process.platform?e+".bat":e+".sh"}function $(e,t,r){switch(process.platform){case"win32":return E("7zip",e);case"darwin":return w("p7zip",e);case"linux":return y("p7zip-full",e);default:throw Error("Unsupported platform")}}async function _(e,r){return void 0===qr&&(null===t(Le).sync("7z",{nothrow:!0})&&await $("",0,process),qr="7z"),await t(Be)(qr,["x",e,"-o"+r],{stdio:"inherit"}),r}async function T(e,r,s=["--strip-components=0"]){try{await zr.mkdirP(r)}catch{}try{await t(Be)("tar",["xf",e,"-C",r,...s],{stdio:"inherit"})}catch(t){"win32"===process.platform&&t.message.includes("Can't create '\\\\?\\C:")&&Rr.warning(`Failed to extract symlink ${e} to ${r}. Ignoring this symlink.`)}return r}async function C(e,t,r,s,o){var i,n;ke.info(`Installing ${e} ${t} ${o} via direct downloading`),process.env.RUNNER_TEMP=null!==(i=process.env.RUNNER_TEMP)&&void 0!==i?i:fe.tmpdir(),process.env.RUNNER_TOOL_CACHE=null!==(n=process.env.RUNNER_TOOL_CACHE)&&void 0!==n?n:me.join(fe.tmpdir(),"setup-cpp","hostedtoolcache");const{url:a,binRelativeDir:c,binFileName:l,extractedFolderName:u,extractFunction:p}=await r(t,process.platform,o);if(Pr.isGitHubCI())try{const r=Hr.find(e,t);if(r){const s=me.join(r,u),o=me.join(s,c);if(ge.existsSync(o)&&ge.existsSync(me.join(o,l)))return ke.info(`${e} ${t} was found in the cache at ${o}.`),f(o),{installDir:s,binDir:o}}}catch{}const d=me.join(s,u),h=me.join(d,c),m=me.join(h,l);if(!ge.existsSync(h)||!ge.existsSync(m)){ke.info(`Download and extract ${e} ${t}`),Br||("linux"===process.platform&&(y("unzip"),y("tar"),y("xz-utils")),Br=!0);try{const e=await Hr.downloadTool(a);await(null==p?void 0:p(e,s))}catch(r){throw Error(`Failed to download ${e} ${t} ${o}: ${r}`)}}return ke.info(`Add ${h} to PATH`),f(h),Pr.isGitHubCI()&&"string"==typeof process.env.RUNNER_TOOL_CACHE&&await Hr.cacheDir(s,e,t),{installDir:d,binDir:h}}function I(e,t,r){const s=(e=>"win32"===e?"windows":e)(t),o=(e=>{switch(e){case"x64":return"amd64";case"ia32":case"x86":case"i386":case"x32":return"386";default:return e}})(r),i="win32"===t,n=i?"zip":"tar.gz";return{binRelativeDir:"",binFileName:S("task"),extractedFolderName:"",extractFunction:i?Hr.extractZip:T,url:`https://github.com/go-task/task/releases/download/v${e}/task_${s}_${o}.${n}`}}function A(e,r,s){var o;const i=null!==(o=t(Xr)(e))&&void 0!==o?o:e;switch(r){case"win32":{const r=t(Vr)(i,"v3.19.6");let o;o=["ia32","x86","i386","x32"].includes(s)?r?"win32-x86":"windows-i386":r?"win64-x64":"windows-x86_64";const n=`cmake-${e}-${o}`;return{binRelativeDir:"bin/",binFileName:S("cmake"),extractedFolderName:n,extractFunction:Hr.extractZip,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${n}.zip`}}case"darwin":{const r=`cmake-${e}-${t(Vr)(i,"v3.19.1")?"Darwin-x86_64":"macos-universal"}`;return{binRelativeDir:"CMake.app/Contents/bin/",binFileName:S("cmake"),extractedFolderName:r,extractFunction:Hr.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${r}.tar.gz`}}case"linux":{const r=t(Vr)(i,"v3.19.8");let o;o=["aarch64"].includes(s)?r?"Linux-aarch64":"linux-aarch64":r?"Linux-x86_64":"linux-x86_64";const n=`cmake-${e}-${o}`;return{binRelativeDir:"bin/",binFileName:S("cmake"),extractedFolderName:n,extractFunction:Hr.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${n}.tar.gz`}}default:throw Error(`Unsupported platform '${r}'`)}}function R(e,t,r){return C("cmake",e,A,t,r)}async function P(e,t,r){if(!Pr.isGitHubCI())return N(e,t);try{const{setupActionsPython:s}=await Ne("d0eKP");return s(e,t,r)}catch(r){return Rr.warning(""+r),N(e,t)}}function N(e,t,r){switch(process.platform){case"win32":return t?E("python3",e,["--params=/InstallDir:"+t]):E("python3",e),Rr.info(`Add ${s=t} to PATH`),f(s),{installDir:t,binDir:t};case"darwin":return w("python3",e);case"linux":{const t=y("python3",e);return y("python3-pip"),t}default:throw Error("Unsupported platform")}var s}function k(e){return new Promise((t=>{ye.get(e,(e=>{t(void 0!==e.statusCode&&e.statusCode>=200&&399>=e.statusCode)}))}))}function L(e,t){return"true"===t||void 0===t&&e in Kr?Kr[e]:null!=t?t:""}async function D(e,r){if(ke.info(`Installing ${e} ${null!=r?r:""} via pip`),void 0===Zr){if(null!==t(Le).sync("python3",{nothrow:!0}))Zr="python3";else{if(null===t(Le).sync("python",{nothrow:!0})||!await(async(e,r,s=/v?(\d\S*)/)=>{const o=await(async(e,t=/v?(\d\S*)/)=>{try{var r;const s=await Wr.getExecOutput(e,["--version"]);return null===(r=(s.stdout||s.stderr||"").trim().match(t))||void 0===r?void 0:r[1]}catch(e){return void console.error(e)}})(e,s);return"string"==typeof o&&"string"==typeof r&&""!==o&&""!==r&&-1!==t(Yr)(o,r)})("python","3.0.0")){if(ke.info("python3 was not found. Installing python"),await P(L("python",void 0),"",process.arch),es)throw Error("Failed to install python");return es=!0,D(e,r)}Zr="python"}"win32"===process.platform?t(Be).sync(Zr,["-m","pip","install","-U","pip==21.3.1"],{stdio:"inherit"}):"linux"===process.platform&&y("python3-pip")}if(t(Be).sync(Zr,["-m","pip","install",void 0!==r&&""!==r?`${e}==${r}`:e],{stdio:"inherit"}),void 0===Qr){if("linux"===process.platform)Qr="/home/runner/.local/bin/";else if("darwin"===process.platform)Qr="/usr/local/bin/";else try{Qr=me.join((await Wr.getExecOutput(Zr+' -c "import sys;print(sys.base_exec_prefix);"')).stdout.trim(),"Scripts")}catch{Qr=me.join((await Wr.getExecOutput(Zr+' -c "import sys;print(sys.base_exec_prefix);"')).stdout.trim(),"Scripts")}ke.info(Qr+" to PATH"),f(Qr)}return{binDir:Qr}}function j(e,t,r){switch(process.platform){case"win32":return E("graphviz",e),(()=>{if("win32"===process.platform){const e="C:/Program Files/Graphviz/bin";return f(e),{binDir:e}}throw Error("Unsupported platform")})();case"darwin":return w("graphviz",e);case"linux":return y("graphviz",e);default:throw Error("Unsupported platform")}}function M(e,t,r){if("linux"===t){const t="doxygen-"+e;return{binRelativeDir:"bin/",binFileName:S("doxygen"),extractedFolderName:t,extractFunction:Hr.extractTar,url:`https://www.doxygen.nl/files/${t}.linux.bin.tar.gz`}}throw Error(`Unsupported platform '${t}'`)}async function F(){if("darwin"===process.platform)try{const e=await Wr.getExecOutput("xcrun --sdk macosx --show-sdk-path"),t=e.stdout||e.stderr;t?h("SDKROOT",t.trim()):Rr.error("SDKROOT not set")}catch(e){Rr.error(e)}}async function U(e,r,s){let o;switch(process.platform){case"win32":var i,n;"arm"!==s&&"arm64"!==s||await E("gcc-arm-embedded",e),await E("mingw",e),"x64"===s&&ge.existsSync("C:/tools/mingw64/bin")?(o="C:/tools/mingw64/bin",f(o)):"ia32"===s&&ge.existsSync("C:/tools/mingw32/bin")?(o="C:/tools/mingw32/bin",f(o)):ge.existsSync((null!==(i=process.env.ChocolateyInstall)&&void 0!==i?i:"C:/ProgramData/chocolatey")+"/bin/g++.exe")&&(o=(null!==(n=process.env.ChocolateyInstall)&&void 0!==n?n:"C:/ProgramData/chocolatey")+"/bin");break;case"darwin":o=w("gcc",e).binDir;break;case"linux":"x64"===s?(y("gcc",e,["ppa:ubuntu-toolchain-r/test"]),o=y("g++",e,[]).binDir):(Rr.info(`Install g++-multilib because gcc for ${s} was requested`),y("gcc-multilib",e,["ppa:ubuntu-toolchain-r/test"]),o=y("g++-multilib",e,[]).binDir);break;default:throw Error("Unsupported platform for "+s)}if(void 0!==o)return await(async(e,r)=>{if("win32"===process.platform)h("CC",r+"/gcc"),h("CXX",r+"/g++");else{var s;const o=t(ts)(null!==(s=t(Xr)(e))&&void 0!==s?s:e);5>o?(h("CC",`${r}/gcc-${e}`),h("CXX",`${r}/g++-${e}`),"linux"===process.platform&&(await x("cc",`${r}/gcc-${e}`),await x("cxx",`${r}/g++-${e}`),await x("gcc",`${r}/gcc-${e}`),await x("g++",`${r}/g++-${e}`))):(h("CC",`${r}/gcc-${o}`),h("CXX",`${r}/g++-${o}`),"linux"===process.platform&&(await x("cc",`${r}/gcc-${o}`),await x("cxx",`${r}/g++-${o}`),await x("gcc",`${r}/gcc-${o}`),await x("g++",`${r}/g++-${o}`)))}await F(),Pr.isGitHubCI()&&(()=>{const e=t(me).join(__dirname,"gcc_matcher.json");if(!ge.existsSync(e))return Rr.warning("the gcc_matcher.json file does not exist in the same folder as setup_cpp.js");Rr.info("::add-matcher::"+e)})()})(e,o),{binDir:o}}function G(e,t,r){return`https://github.com/llvm/llvm-project/releases/download/llvmorg-${e}/${t}${e}${r}`}function H(e,t,r){return`https://releases.llvm.org/${e}/${t}${e}${r}`}function z(e,r){switch(e){case"darwin":return(e=>{if(ss.has(e))return null;const r="clang+llvm-",s=`-x86_64${"9.0.0"===e?"-darwin-apple":"-apple-darwin"}.tar.xz`;return t(Vr)(e,"9.0.1")?H(e,r,s):G(e,r,s)})(r);case"linux":return(e=>{let r=e;const s=os.get(r);let o;void 0!==s&&(r=s),o=r.includes("ubuntu")?r:""!==r&&r in is?is[r]:is["14.0.0"];const i="clang+llvm-",n="5.0.0"===r?`-linux-x86_64${o}.tar.xz`:`-x86_64-linux-gnu${o}.tar.xz`;return t(Vr)(r,"9.0.1")?H(r,i,n):G(r,i,n)})(r);case"win32":return(async e=>{if(ns.has(e))return null;const r="LLVM-",s=t(Vr)(e,"3.7.0")?"-win32.exe":"-win64.exe",o=t(Vr)(e,"9.0.1");let i,n=!1;return o&&(i=H(e,r,s),await k(i)||(n=!0)),!n&&o||(i=G(e,r,s)),i})(r);default:return null}}async function q(e,t,r){const[s,o]=await(async(e,t,r,s)=>{if(!e.has(r))throw Error(`Unsupported target! (platform='${t}', version='${r}')`);for(const o of((e,t)=>Array.from(e).filter((e=>/^\d+\.\d+\.\d+$/.test(e)&&e.startsWith(t))).sort().reverse())(e,r)){const e=await s(t,o);if(null!==e&&await k(e))return[o,e]}throw Error(`Unsupported target! (platform='${t}', version='${r}')`)})(rs,t,e,z);return ke.setOutput("version",s),{url:o,extractedFolderName:"",binRelativeDir:"bin",binFileName:S("clang"),extractFunction:"win32"===t?_:(e,t)=>T(e,t,["--strip-components=1"])}}async function B(e,r,s){const o=await V(e,r,s);var i;return await(async(e,r)=>{const s=(e=>{if(null===t(Jr)(e))try{const r=t(Xr)(e);if(null!==r)return r.version}catch(e){}return e})(r),o=me.join(e,"lib");var i;const n=null!==(i=process.env.LD_LIBRARY_PATH)&&void 0!==i?i:"";var a;const c=null!==(a=process.env.DYLD_LIBRARY_PATH)&&void 0!==a?a:"";h("LLVM_PATH",e),h("LD_LIBRARY_PATH",`${o}${me.delimiter}${n}`),h("DYLD_LIBRARY_PATH",`${o}${me.delimiter}${c}`);const l=t(ts)(s);ge.existsSync(`${e}/lib/clang/${s}/include`)?h("CPATH",`${e}/lib/clang/${s}/include`):ge.existsSync(`${e}/lib/clang/${l}/include`)&&h("CPATH",`${e}/lib/clang/${l}/include`),h("LDFLAGS",`-L${e}/lib`),h("CPPFLAGS",`-I${e}/include`),h("CC",e+"/bin/clang"),h("CXX",e+"/bin/clang++"),h("LIBRARY_PATH",e+"/lib"),await F(),"linux"===process.platform&&(await x("cc",e+"/bin/clang"),await x("cxx",e+"/bin/clang++"),await x("clang",e+"/bin/clang"),await x("clang++",e+"/bin/clang++"),await x("lld",e+"/bin/lld"),await x("ld.lld",e+"/bin/ld.lld"),await x("llvm-ar",e+"/bin/llvm-ar")),Pr.isGitHubCI()&&W()})(null!==(i=o.installDir)&&void 0!==i?i:r,e),o}async function V(e,t,r){const s=await C("llvm",e,q,t,r);return as||("linux"===process.platform&&(await U(L("gcc",void 0),0,r),y("libtinfo-dev")),as=!0),s}function X(e,t,r){return Pr.isGitHubCI()&&W(),V(e,t,r)}function W(){const e=me.join(__dirname,"llvm_matcher.json");if(!ge.existsSync(e))return Rr.warning("the llvm_matcher.json file does not exist in the same folder as setup_cpp.js");Rr.info("::add-matcher::"+e)}function Y(e,t,r){const s=new ys(e,t,r);process.stdout.write(""+s+gs.EOL)}function J(e){fs.issue("error",e instanceof Error?""+e:e)}function K(e){fs.issue("group",e)}function Z(){fs.issue("endgroup")}function Q(e){return Object.values(Rs).includes(e)?e:e in Rs?Rs[e]:e}function ee(e){if(Object.keys(Rs).includes(e))return e;for(const[t,r]of Object.entries(Rs))if(r===e)return t;return e}function te(e){const t=Q(e);let r;if(t){const e=t.split(".")[0]+".9";r=`-version "${t},${e}"`}else r="-latest";let s=((e,t)=>{try{return(""+Oe.execSync(`vswhere -products * ${t} -prerelease -property installationPath`)).trim()+"\\VC\\Auxiliary\\Build\\vcvarsall.bat"}catch(e){ps.warning("vswhere failed: "+e)}return null})(0,r);if(s&&ge.existsSync(s))return ps.info("Found with vswhere: "+s),s;ps.info("Not found with vswhere");const o=e?[ee(e)]:As;for(const e of Cs)for(const t of o)for(const r of Is)if(s=`${e}\\Microsoft Visual Studio\\${t}\\${r}\\VC\\Auxiliary\\Build\\vcvarsall.bat`,ps.info("Trying standard location: "+s),ge.existsSync(s))return ps.info("Found standard location: "+s),s;if(ps.info("Not found in standard locations"),s=Ts+"\\Microsoft Visual C++ Build Tools\\vcbuildtools.bat",ge.existsSync(s))return ps.info("Found VS 2015: "+s),s;throw ps.info("Not found in VS 2015 location: "+s),Error("Microsoft Visual Studio not found")}function re(e){return-1!=["PATH","INCLUDE","LIB","LIBPATH"].indexOf(e.toUpperCase())}function se(e,t,r,s,o,i,n){void 0!==t&&ge.existsSync(t)&&(Rr.info(`Adding ${t} to PATH`),h("VCTargetsPath",t)),us((e=>{switch(e){case"x32":case"32":case"ia32":return"x86";case"64":return"x64";default:return e}})(r),o,s,i,n,e)}function oe(e,r,s,o,i,n){if("win32"!==process.platform)return;const a=cs(e);Rr.info(`Checking if MSVC ${a} is already installed`);let c,l,u=!1;try{const e=ls(a);u=!0,Rr.info("Found the pre-installed version of MSVC at "+e)}catch{}if(!u)try{"14.0"===a?(c="14.0",E("visualcpp-build-tools","14.0.25420.1",["--ignore-dependencies"]),l="C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140"):"15.0"===a?(c="14.16",E("visualstudio2017buildtools","15.9.41.0",[]),l="C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16"):"16.0"===a?(c="14.29",E("visualstudio2019buildtools","16.11.7.0",[]),l="C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133"):"17.0"===a?(c=void 0,E("visualstudio2022buildtools","117.0.5.0",[]),l=void 0):Rr.error(`The given MSVC versions ${e} is not supported yet.`)}catch(e){Rr.error(e)}se(a,l,s,c,o,i,n),Pr.isGitHubCI()&&(()=>{const e=t(me).join(__dirname,"msvc_matcher.json");if(!ge.existsSync(e))return Rr.warning("the msvc_matcher.json file does not exist in the same folder as setup_cpp.js");Rr.info("::add-matcher::"+e)})()}function ie(e,t,r){const s=(e=>{switch(e){case"win32":return"win";case"darwin":return"mac";case"linux":return"linux";default:throw Error(`Unsupported platform '${e}'`)}})(t);return{binRelativeDir:"",binFileName:S("ninja"),extractedFolderName:"",extractFunction:Hr.extractZip,url:`https://github.com/ninja-build/ninja/releases/download/v${e}/ninja-${s}.zip`}}function ne(e){return null==e?[]:Array.isArray(e)?e:[e]}function ae(e,t,r,s){var o,i=e[t],n=~s.string.indexOf(t)?null==r||!0===r?"":r+"":"boolean"==typeof r?r:~s.boolean.indexOf(t)?"false"!==r&&("true"===r||(e._.push(0*(o=+r)==0?o:r),!!r)):0*(o=+r)==0?o:r;e[t]=null==i?n:Array.isArray(i)?i.concat(n):[i,n]}function ce(e){const t=parseInt(e.replace(/^v/,""),10);return 38===t&&(e="v38"),39>t?{url:`https://github.com/SimonKagstrom/kcov/archive/refs/tags/${e}.tar.gz`,extractedFolderName:"kcov-"+t,binRelativeDir:"build/",binFileName:S("kcov"),extractFunction:le}:{url:`https://github.com/SimonKagstrom/kcov/releases/download/v${t}/kcov-amd64.tar.gz`,extractedFolderName:"",binRelativeDir:"usr/local/bin",binFileName:S("kcov"),extractFunction:T}}async function le(e,r){const s=await T(e,r,["--strip-components=1"]);return null===t(Le).sync("cmake",{nothrow:!0})&&await R(L("cmake",void 0),me.join(t(Ar)(""),"cmake"),""),"linux"===process.platform&&(y("libdw-dev"),y("libcurl4-openssl-dev")),await t(Be)("cmake",["-S","./","-B","./build"],{cwd:s,stdio:"inherit"}),await t(Be)("cmake",["--build","./build","--config","Release"],{cwd:s,stdio:"inherit"}),u("cmake",["--install","./build"],s),s}async function ue(e){Pr.isGitHubCI()||(process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS="true");const r=((e,t)=>{var r,s,o,i,n,a={_:[]},c=0,l=0,u=0,p=(e=e||[]).length;const d=void 0!==(t=t||{}).alias,h=void 0!==t.unknown,f=void 0!==t.default;if(t.alias=t.alias||{},t.string=ne(t.string),t.boolean=ne(t.boolean),d)for(r in t.alias)for(s=t.alias[r]=ne(t.alias[r]),c=0;s.length>c;c++)(t.alias[s[c]]=s.concat(r)).splice(c,1);for(c=t.boolean.length;c-- >0;)for(l=(s=t.alias[t.boolean[c]]||[]).length;l-- >0;)t.boolean.push(s[l]);for(c=t.string.length;c-- >0;)for(l=(s=t.alias[t.string[c]]||[]).length;l-- >0;)t.string.push(s[l]);if(f)for(r in t.default)if(i=typeof t.default[r],s=t.alias[r]=t.alias[r]||[],void 0!==t[i])for(t[i].push(r),c=0;s.length>c;c++)t[i].push(s[c]);const m=h?Object.keys(t.alias):[];for(c=0;p>c;c++){if("--"===(o=e[c])){a._=a._.concat(e.slice(++c));break}for(l=0;o.length>l&&45===o.charCodeAt(l);l++);if(0===l)a._.push(o);else if("no-"===o.substring(l,l+3)){if(i=o.substring(l+3),h&&!~m.indexOf(i))return t.unknown(o);a[i]=!1}else{for(u=l+1;o.length>u&&61!==o.charCodeAt(u);u++);for(i=o.substring(l,u),n=o.substring(++u)||c+1===p||45===(""+e[c+1]).charCodeAt(0)||e[++c],s=2===l?[i]:i,u=0;s.length>u;u++){if(i=s[u],h&&!~m.indexOf(i))return t.unknown("-".repeat(l)+i);ae(a,i,s.length>u+1||n,t)}}}if(f)for(r in t.default)void 0===a[r]&&(a[r]=t.default[r]);if(d)for(r in a)for(s=t.alias[r]||[];s.length>0;)a[s.shift()]=a[r];return a})(e,{string:Us,default:Object.fromEntries(Us.map((e=>[e,de(e)]))),alias:{h:"help"},boolean:"help"});var s;r.help&&Rr.info('\nsetup_cpp [options]\nsetup_cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true\n\nInstall all the tools required for building and testing C++/C projects.\n\n--architecture\t the cpu architecture to install the tools for. By default it uses the current CPU architecture.\n--compiler\t the <compiler> to install.\n \t You can specify the version instead of specifying just the name e.g: --compiler \'llvm-13.0.0\'\n\n--tool_name\t pass "true" or pass the <version> you would like to install for this tool. e.g. --conan true or --conan "1.42.1"\n\nAll the available tools:\n--llvm\n--gcc\n--vcvarsall\n--cmake\n--ninja\n--vcpkg\n--meson\n--conan\n--make\n--task\n--ccache\n--cppcheck\n--clangformat\n--clangtidy\n--doxygen\n--gcovr\n--opencppcoverage\n--kcov\n\n--python\n--choco\n--brew\n--sevenzip\n--graphviz\n ');const o=null!==(s=r.architecture)&&void 0!==s?s:process.arch;var i;const n=null!==(i=process.env.SETUP_CPP_DIR)&&void 0!==i?i:p(""),a=[],c=[],l=ks.create({autoloadLocales:!0});let u,d;ks.addLocale(t(Ns)),Ls.addLocale(t(Ds));for(const e of Fs){const t=r[e];if(void 0!==t){u=Date.now(),ke.startGroup(`Installing ${e} ${t}`);try{let r;if("vcvarsall"===e)se(L(e,t),void 0,o,void 0,void 0,!1,!1);else{const s=Ms[e],i=me.join(n,["llvm","clangformat","clangtidy"].includes(e)?"llvm":e);r=await s(L(e,t),i,o)}a.push(he(e,r))}catch(t){Rr.error(t),c.push(e+" failed to install")}ke.endGroup(),d=Date.now(),Rr.info("took "+(l.format(u,d)||"0 seconds"))}}const f=r.compiler;u=Date.now();try{if(void 0!==f){const{compiler:e,version:t}=pe(f);switch(ke.startGroup(`Installing ${e} ${null!=t?t:""}`),e){case"llvm":case"clang":case"clang++":{const e=await B(L("llvm",t),me.join(n,"llvm"),o);a.push(he("llvm",e));break}case"gcc":case"mingw":case"cygwin":case"msys":{const e=await U(L("gcc",t),me.join(n,"gcc"),o);a.push(he("gcc",e));break}case"cl":case"msvc":case"msbuild":case"vs":case"visualstudio":case"visualcpp":case"visualc++":{const e=oe(L("msvc",t),me.join(n,"msvc"),o);a.push(he("msvc",e));break}case"appleclang":case"applellvm":ke.notice("Assuming apple-clang is already installed"),h("CC","clang"),h("CXX","clang++"),a.push(he("apple-clang",void 0));break;default:c.push("Unsupported compiler "+e)}ke.endGroup(),d=Date.now(),Rr.info("took "+(l.format(u,d)||"0 seconds"))}}catch(e){Rr.error(e),c.push("Failed to install the "+f),ke.endGroup(),d=Date.now(),Rr.info("took "+(l.format(u,d)||"0 seconds"))}if(0===a.length&&0===c.length)return Rr.warning("setup_cpp was called without any arguments. Nothing to do."),0;if(a.forEach((e=>Rr.success(e))),c.forEach((e=>Rr.error(e))),Rr.info("setup_cpp finished"),!Pr.isGitHubCI())switch(process.platform){case"win32":Rr.warning("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":Rr.warning("Run `source ~/.cpprc` or restart your shell to update the environment.")}return 0===c.length?0:1}function pe(e){const r=e.split("-"),s=r[0];if(1 in r){const e=r[1];return null!==t(Jr)(e)||ke.notice(`Invalid semver version ${e} used for the compiler.`),{compiler:s,version:e}}return{compiler:s,version:void 0}}function de(e){const t=ke.getInput(e.toLowerCase());if("false"!==t&&""!==t)return t}function he(e,t){let r=`${e} was installed successfully:`;return void 0===t||("installDir"in t&&(r+="\n- The installation directory is "+t.installDir),""!==t.binDir&&(r+="\n- The binary directory is "+t.binDir)),r}var fe=require("os"),me=require("path"),ge=require("fs"),ve=require("http"),ye=require("https");require("net");var xe=require("tls"),we=require("events"),be=require("assert"),Ee=require("util"),Se=require("stream"),Oe=require("child_process"),$e=require("crypto"),_e=require("string_decoder"),Te=require("timers"),Ce=require("buffer"),Ie=require("process"),Ae="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},Re={},Pe={},Ne=Ae.parcelRequire810d;null==Ne&&((Ne=e=>{if(e in Re)return Re[e].exports;if(e in Pe){var t=Pe[e];delete Pe[e];var r={id:e,exports:{}};return Re[e]=r,t.call(r.exports,r,r.exports),r.exports}var s=Error("Cannot find module '"+e+"'");throw s.code="MODULE_NOT_FOUND",s}).register=(e,t)=>{Pe[e]=t},Ae.parcelRequire810d=Ne),Ne.register("9bqVn",(function(e,t){"use strict";function r(e,t){const r=process.env["INPUT_"+e.replace(/ /g,"_").toUpperCase()]||"";if(t&&t.required&&!r)throw Error("Input required and not supplied: "+e);return t&&!1===t.trimWhitespace?r:r.trim()}function s(e,t={}){u.issueCommand("error",d.toCommandProperties(t),e instanceof Error?""+e:e)}function o(e){u.issue("group",e)}function i(){u.issue("endgroup")}var n=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,s)=>{void 0===s&&(s=r),Object.defineProperty(e,s,{enumerable:!0,get(){return t[r]}})}:(e,t,r,s)=>{void 0===s&&(s=r),e[s]=t[r]}),a=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),c=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&n(t,e,r);return a(t,e),t}),l=e.exports&&e.exports.__awaiter||((e,t,r,s)=>new(r||(r=Promise))(((o,i)=>{function n(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(n,a)}c((s=s.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getIDToken=e.exports.getState=e.exports.saveState=e.exports.group=e.exports.endGroup=e.exports.startGroup=e.exports.info=e.exports.notice=e.exports.warning=e.exports.error=e.exports.debug=e.exports.isDebug=e.exports.setFailed=e.exports.setCommandEcho=e.exports.setOutput=e.exports.getBooleanInput=e.exports.getMultilineInput=e.exports.getInput=e.exports.addPath=e.exports.setSecret=e.exports.exportVariable=e.exports.ExitCode=void 0;var u=Ne("hXgz5"),p=Ne("iqpgI"),d=Ne("cm976");const h=c(fe),f=c(me);var m,g,v=Ne("eIE1e");(g=m=e.exports.ExitCode||(e.exports.ExitCode={}))[g.Success=0]="Success",g[g.Failure=1]="Failure",e.exports.exportVariable=(e,t)=>{const r=d.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV){const t="_GitHubActionsFileCommandDelimeter_";p.issueCommand("ENV",`${e}<<${t}${h.EOL}${r}${h.EOL}${t}`)}else u.issueCommand("set-env",{name:e},r)},e.exports.setSecret=e=>{u.issueCommand("add-mask",{},e)},e.exports.addPath=e=>{process.env.GITHUB_PATH?p.issueCommand("PATH",e):u.issueCommand("add-path",{},e),process.env.PATH=`${e}${f.delimiter}${process.env.PATH}`},e.exports.getInput=r,e.exports.getMultilineInput=(e,t)=>r(e,t).split("\n").filter((e=>""!==e)),e.exports.getBooleanInput=(e,t)=>{const s=r(e,t);if(["true","True","TRUE"].includes(s))return!0;if(["false","False","FALSE"].includes(s))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\nSupport boolean input list: \`true | True | TRUE | false | False | FALSE\``)},e.exports.setOutput=(e,t)=>{process.stdout.write(h.EOL),u.issueCommand("set-output",{name:e},t)},e.exports.setCommandEcho=e=>{u.issue("echo",e?"on":"off")},e.exports.setFailed=e=>{process.exitCode=m.Failure,s(e)},e.exports.isDebug=()=>"1"===process.env.RUNNER_DEBUG,e.exports.debug=e=>{u.issueCommand("debug",{},e)},e.exports.error=s,e.exports.warning=(e,t={})=>{u.issueCommand("warning",d.toCommandProperties(t),e instanceof Error?""+e:e)},e.exports.notice=(e,t={})=>{u.issueCommand("notice",d.toCommandProperties(t),e instanceof Error?""+e:e)},e.exports.info=e=>{process.stdout.write(e+h.EOL)},e.exports.startGroup=o,e.exports.endGroup=i,e.exports.group=function(e,t){return l(this,void 0,void 0,(function*(){let r;o(e);try{r=yield t()}finally{i()}return r}))},e.exports.saveState=(e,t)=>{u.issueCommand("save-state",{name:e},t)},e.exports.getState=e=>process.env["STATE_"+e]||"",e.exports.getIDToken=function(e){return l(this,void 0,void 0,(function*(){return yield v.OidcClient.getIDToken(e)}))}})),Ne.register("hXgz5",(function(e,t){"use strict";function r(e,t,r){const s=new c(e,t,r);process.stdout.write(""+s+n.EOL)}var s=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,s)=>{void 0===s&&(s=r),Object.defineProperty(e,s,{enumerable:!0,get(){return t[r]}})}:(e,t,r,s)=>{void 0===s&&(s=r),e[s]=t[r]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),i=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&s(t,e,r);return o(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issue=e.exports.issueCommand=void 0;const n=i(fe);var a=Ne("cm976");e.exports.issueCommand=r,e.exports.issue=(e,t="")=>{r(e,{},t)};class c{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r}toString(){let e="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(const s in this.properties)if(this.properties.hasOwnProperty(s)){const o=this.properties[s];o&&(r?r=!1:e+=",",e+=`${s}=${t=o,a.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}var t;return e+="::"+(e=>a.toCommandValue(this.message).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A"))(),e}}})),Ne.register("cm976",((e,t)=>{"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toCommandProperties=e.exports.toCommandValue=void 0,e.exports.toCommandValue=e=>null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e),e.exports.toCommandProperties=e=>Object.keys(e).length?{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}:{}})),Ne.register("iqpgI",((e,t)=>{"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,s)=>{void 0===s&&(s=r),Object.defineProperty(e,s,{enumerable:!0,get(){return t[r]}})}:(e,t,r,s)=>{void 0===s&&(s=r),e[s]=t[r]}),s=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),o=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&r(t,e,o);return s(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issueCommand=void 0;const i=o(ge),n=o(fe);var a=Ne("cm976");e.exports.issueCommand=(e,t)=>{const r=process.env["GITHUB_"+e];if(!r)throw Error("Unable to find environment variable for file command "+e);if(!i.existsSync(r))throw Error("Missing file at path: "+r);i.appendFileSync(r,`${a.toCommandValue(t)}${n.EOL}`,{encoding:"utf8"})}})),Ne.register("eIE1e",(function(e,t){"use strict";var r=e.exports&&e.exports.__awaiter||((e,t,r,s)=>new(r||(r=Promise))(((o,i)=>{function n(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(n,a)}c((s=s.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.OidcClient=void 0;var s=Ne("ba1Cu"),o=Ne("FDzJa"),i=Ne("9bqVn");class n{static createHttpClient(e=!0,t=10){const r={allowRetries:e,maxRetries:t};return new s.HttpClient("actions/oidc-client",[new o.BearerCredentialHandler(n.getRequestToken())],r)}static getRequestToken(){const e=process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;if(!e)throw 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 Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable");return e}static getCall(e){var t;return r(this,void 0,void 0,(function*(){const r=n.createHttpClient(),s=yield r.getJson(e).catch((e=>{throw Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)})),o=null===(t=s.result)||void 0===t?void 0:t.value;if(!o)throw Error("Response json body do not have ID Token field");return o}))}static getIDToken(e){return r(this,void 0,void 0,(function*(){try{let t=n.getIDTokenUrl();e&&(t=`${t}&audience=${encodeURIComponent(e)}`),i.debug("ID token url is "+t);const r=yield n.getCall(t);return i.setSecret(r),r}catch(e){throw Error("Error message: "+e.message)}}))}}e.exports.OidcClient=n})),Ne.register("ba1Cu",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0});var r=Ne("8NGVX");let s;var o,i,n,a,c;(i=o=e.exports.HttpCodes||(e.exports.HttpCodes={}))[i.OK=200]="OK",i[i.MultipleChoices=300]="MultipleChoices",i[i.MovedPermanently=301]="MovedPermanently",i[i.ResourceMoved=302]="ResourceMoved",i[i.SeeOther=303]="SeeOther",i[i.NotModified=304]="NotModified",i[i.UseProxy=305]="UseProxy",i[i.SwitchProxy=306]="SwitchProxy",i[i.TemporaryRedirect=307]="TemporaryRedirect",i[i.PermanentRedirect=308]="PermanentRedirect",i[i.BadRequest=400]="BadRequest",i[i.Unauthorized=401]="Unauthorized",i[i.PaymentRequired=402]="PaymentRequired",i[i.Forbidden=403]="Forbidden",i[i.NotFound=404]="NotFound",i[i.MethodNotAllowed=405]="MethodNotAllowed",i[i.NotAcceptable=406]="NotAcceptable",i[i.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",i[i.RequestTimeout=408]="RequestTimeout",i[i.Conflict=409]="Conflict",i[i.Gone=410]="Gone",i[i.TooManyRequests=429]="TooManyRequests",i[i.InternalServerError=500]="InternalServerError",i[i.NotImplemented=501]="NotImplemented",i[i.BadGateway=502]="BadGateway",i[i.ServiceUnavailable=503]="ServiceUnavailable",i[i.GatewayTimeout=504]="GatewayTimeout",(a=n=e.exports.Headers||(e.exports.Headers={})).Accept="accept",a.ContentType="content-type",(c=e.exports.MediaTypes||(e.exports.MediaTypes={})).ApplicationJson="application/json",e.exports.getProxyUrl=e=>{let t=r.getProxyUrl(new URL(e));return t?t.href:""};const l=[o.MovedPermanently,o.ResourceMoved,o.SeeOther,o.TemporaryRedirect,o.PermanentRedirect],u=[o.BadGateway,o.ServiceUnavailable,o.GatewayTimeout],p=["OPTIONS","GET","DELETE","HEAD"];class d extends Error{constructor(e,t){super(e),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,d.prototype)}}e.exports.HttpClientError=d;class h{constructor(e){this.message=e}readBody(){return new Promise((async(e,t)=>{let r=Buffer.alloc(0);this.message.on("data",(e=>{r=Buffer.concat([r,e])})),this.message.on("end",(()=>{e(""+r)}))}))}}e.exports.HttpClientResponse=h,e.exports.isHttps=e=>"https:"===new URL(e).protocol;class f{constructor(e,t,r){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=e,this.handlers=t||[],this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,r){return this.request("POST",e,t,r||{})}patch(e,t,r){return this.request("PATCH",e,t,r||{})}put(e,t,r){return this.request("PUT",e,t,r||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,r,s){return this.request(e,t,r,s)}async getJson(e,t={}){t[n.Accept]=this._getExistingOrDefaultHeader(t,n.Accept,c.ApplicationJson);let r=await this.get(e,t);return this._processResponse(r,this.requestOptions)}async postJson(e,t,r={}){let s=JSON.stringify(t,null,2);r[n.Accept]=this._getExistingOrDefaultHeader(r,n.Accept,c.ApplicationJson),r[n.ContentType]=this._getExistingOrDefaultHeader(r,n.ContentType,c.ApplicationJson);let o=await this.post(e,s,r);return this._processResponse(o,this.requestOptions)}async putJson(e,t,r={}){let s=JSON.stringify(t,null,2);r[n.Accept]=this._getExistingOrDefaultHeader(r,n.Accept,c.ApplicationJson),r[n.ContentType]=this._getExistingOrDefaultHeader(r,n.ContentType,c.ApplicationJson);let o=await this.put(e,s,r);return this._processResponse(o,this.requestOptions)}async patchJson(e,t,r={}){let s=JSON.stringify(t,null,2);r[n.Accept]=this._getExistingOrDefaultHeader(r,n.Accept,c.ApplicationJson),r[n.ContentType]=this._getExistingOrDefaultHeader(r,n.ContentType,c.ApplicationJson);let o=await this.patch(e,s,r);return this._processResponse(o,this.requestOptions)}async request(e,t,r,s){if(this._disposed)throw Error("Client has already been disposed.");let i,n=new URL(t),a=this._prepareRequest(e,n,s),c=this._allowRetries&&-1!=p.indexOf(e)?this._maxRetries+1:1,d=0;for(;c>d;){if(i=await this.requestRaw(a,r),i&&i.message&&i.message.statusCode===o.Unauthorized){let e;for(let t=0;this.handlers.length>t;t++)if(this.handlers[t].canHandleAuthentication(i)){e=this.handlers[t];break}return e?e.handleAuthentication(this,a,r):i}let t=this._maxRedirects;for(;-1!=l.indexOf(i.message.statusCode)&&this._allowRedirects&&t>0;){const o=i.message.headers.location;if(!o)break;let c=new URL(o);if("https:"==n.protocol&&n.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");if(await i.readBody(),c.hostname!==n.hostname)for(let e in s)"authorization"===e.toLowerCase()&&delete s[e];a=this._prepareRequest(e,c,s),i=await this.requestRaw(a,r),t--}if(-1==u.indexOf(i.message.statusCode))return i;d+=1,c>d&&(await i.readBody(),await this._performExponentialBackoff(d))}return i}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}requestRaw(e,t){return new Promise(((r,s)=>{this.requestRawWithCallback(e,t,((e,t)=>{e&&s(e),r(t)}))}))}requestRawWithCallback(e,t,r){let s;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let o=!1,i=(e,t)=>{o||(o=!0,r(e,t))},n=e.httpModule.request(e.options,(e=>{let t=new h(e);i(null,t)}));n.on("socket",(e=>{s=e})),n.setTimeout(this._socketTimeout||18e4,(()=>{s&&s.end(),i(Error("Request timeout: "+e.options.path),null)})),n.on("error",(e=>{i(e,null)})),t&&"string"==typeof t&&n.write(t,"utf8"),t&&"string"!=typeof t?(t.on("close",(()=>{n.end()})),t.pipe(n)):n.end()}getAgent(e){let t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,r){const s={};s.parsedUrl=t;const o="https:"===s.parsedUrl.protocol;s.httpModule=o?ye:ve;const i=o?443:80;return s.options={},s.options.host=s.parsedUrl.hostname,s.options.port=s.parsedUrl.port?parseInt(s.parsedUrl.port):i,s.options.path=(s.parsedUrl.pathname||"")+(s.parsedUrl.search||""),s.options.method=e,s.options.headers=this._mergeHeaders(r),null!=this.userAgent&&(s.options.headers["user-agent"]=this.userAgent),s.options.agent=this._getAgent(s.parsedUrl),this.handlers&&this.handlers.forEach((e=>{e.prepareRequest(s.options)})),s}_mergeHeaders(e){const t=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getExistingOrDefaultHeader(e,t,r){let s;var o;return this.requestOptions&&this.requestOptions.headers&&(s=(o=this.requestOptions.headers,Object.keys(o).reduce(((e,t)=>(e[t.toLowerCase()]=o[t],e)),{}))[t]),e[t]||s||r}_getAgent(e){let t,o=r.getProxyUrl(e),i=o&&o.hostname;if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const n="https:"===e.protocol;let a=100;if(this.requestOptions&&(a=this.requestOptions.maxSockets||ve.globalAgent.maxSockets),i){s||(s=Ne("bbp3j"));const e={maxSockets:a,keepAlive:this._keepAlive,proxy:{...(o.username||o.password)&&{proxyAuth:`${o.username}:${o.password}`},host:o.hostname,port:o.port}};let r;const i="https:"===o.protocol;r=n?i?s.httpsOverHttps:s.httpsOverHttp:i?s.httpOverHttps:s.httpOverHttp,t=r(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:a};t=n?new ye.Agent(e):new ve.Agent(e),this._agent=t}return t||(t=n?ye.globalAgent:ve.globalAgent),n&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_performExponentialBackoff(e){const t=5*Math.pow(2,e=Math.min(10,e));return new Promise((e=>setTimeout((()=>e()),t)))}static dateTimeDeserializer(e,t){if("string"==typeof t){let e=new Date(t);if(!isNaN(e.valueOf()))return e}return t}async _processResponse(e,t){return new Promise((async(r,s)=>{const i=e.message.statusCode,n={statusCode:i,result:null,headers:{}};let a,c;i==o.NotFound&&r(n);try{c=await e.readBody(),c&&c.length>0&&(a=t&&t.deserializeDates?JSON.parse(c,f.dateTimeDeserializer):JSON.parse(c),n.result=a),n.headers=e.message.headers}catch(e){}if(i>299){let e;e=a&&a.message?a.message:c&&c.length>0?c:"Failed request: ("+i+")";let t=new d(e,i);t.result=n.result,s(t)}else r(n)}))}}e.exports.HttpClient=f})),Ne.register("8NGVX",((e,t)=>{"use strict";function r(e){if(!e.hostname)return!1;let t,r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;e.port?t=+e.port:"http:"===e.protocol?t=80:"https:"===e.protocol&&(t=443);let s=[e.hostname.toUpperCase()];"number"==typeof t&&s.push(`${s[0]}:${t}`);for(let e of r.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e)))if(s.some((t=>t===e)))return!0;return!1}Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getProxyUrl=e=>{let t,s,o="https:"===e.protocol;return r(e)||(s=o?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY,s&&(t=new URL(s))),t},e.exports.checkBypass=r})),Ne.register("bbp3j",((e,t)=>{e.exports=Ne("fNJ5J")})),Ne.register("fNJ5J",(function(t,r){function s(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||ve.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",((e,r,s,o)=>{for(var n=i(r,s,o),a=0,c=t.requests.length;c>a;++a){var l=t.requests[a];if(l.host===n.host&&l.port===n.port)return t.requests.splice(a,1),void l.request.onSocket(e)}e.destroy(),t.removeSocket(e)}))}function o(e,t){var r=this;s.prototype.createSocket.call(r,e,(s=>{var o=e.request.getHeader("host"),i=n({},r.options,{socket:s,servername:o?o.replace(/:.*$/,""):e.host}),a=xe.connect(0,i);r.sockets[r.sockets.indexOf(s)]=a,t(a)}))}function i(e,t,r){return"string"==typeof e?{host:e,port:t,localAddress:r}:e}function n(e){for(var t=1,r=arguments.length;r>t;++t){var s=arguments[t];if("object"==typeof s)for(var o=Object.keys(s),i=0,n=o.length;n>i;++i){var a=o[i];void 0!==s[a]&&(e[a]=s[a])}}return e}var a,c,l,u,p,d;e(t.exports,"httpOverHttp",(()=>a),(e=>a=e)),e(t.exports,"httpsOverHttp",(()=>c),(e=>c=e)),e(t.exports,"httpOverHttps",(()=>l),(e=>l=e)),e(t.exports,"httpsOverHttps",(()=>u),(e=>u=e)),e(t.exports,"debug",(()=>p),(e=>p=e)),a=e=>{var t=new s(e);return t.request=ve.request,t},c=e=>{var t=new s(e);return t.request=ve.request,t.createSocket=o,t.defaultPort=443,t},l=e=>{var t=new s(e);return t.request=ye.request,t},u=e=>{var t=new s(e);return t.request=ye.request,t.createSocket=o,t.defaultPort=443,t},Ee.inherits(s,we.EventEmitter),s.prototype.addRequest=function(e,t,r,s){var o=this,a=n({request:e},o.options,i(t,r,s));this.maxSockets>o.sockets.length?o.createSocket(a,(t=>{function r(){o.emit("free",t,a)}function s(e){o.removeSocket(t),t.removeListener("free",r),t.removeListener("close",s),t.removeListener("agentRemove",s)}t.on("free",r),t.on("close",s),t.on("agentRemove",s),e.onSocket(t)})):o.requests.push(a)},s.prototype.createSocket=function(e,t){function r(r,i,n){var c;return a.removeAllListeners(),i.removeAllListeners(),200!==r.statusCode?(d("tunneling socket could not be established, statusCode=%d",r.statusCode),i.destroy(),(c=Error("tunneling socket could not be established, statusCode="+r.statusCode)).code="ECONNRESET",e.request.emit("error",c),void s.removeSocket(o)):n.length>0?(d("got illegal response body from proxy"),i.destroy(),(c=Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",c),void s.removeSocket(o)):(d("tunneling connection has established"),s.sockets[s.sockets.indexOf(o)]=i,t(i))}var s=this,o={};s.sockets.push(o);var i=n({},s.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),d("making CONNECT request");var a=s.request(i);a.useChunkedEncodingByDefault=!1,a.once("response",(e=>{e.upgrade=!0})),a.once("upgrade",((e,t,s)=>{process.nextTick((()=>{r(e,t,s)}))})),a.once("connect",r),a.once("error",(t=>{a.removeAllListeners(),d("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var r=Error("tunneling socket could not be established, cause="+t.message);r.code="ECONNRESET",e.request.emit("error",r),s.removeSocket(o)})),a.end()},s.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var r=this.requests.shift();r&&this.createSocket(r,(e=>{r.request.onSocket(e)}))}},p=d=()=>{}})),Ne.register("FDzJa",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.BasicCredentialHandler=class{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!1}handleAuthentication(e,t,r){return null}},e.exports.BearerCredentialHandler=class{constructor(e){this.token=e}prepareRequest(e){e.headers.Authorization="Bearer "+this.token}canHandleAuthentication(e){return!1}handleAuthentication(e,t,r){return null}},e.exports.PersonalAccessTokenCredentialHandler=class{constructor(e){this.token=e}prepareRequest(e){e.headers.Authorization="Basic "+Buffer.from("PAT:"+this.token).toString("base64")}canHandleAuthentication(e){return!1}handleAuthentication(e,t,r){return null}}})),Ne.register("ftrAD",((e,t)=>{function r(e,t,r){return!(!e.isSymbolicLink()&&!e.isFile())&&((e,t)=>{var r=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!r)return!0;if(-1!==(r=r.split(";")).indexOf(""))return!0;for(var s=0;r.length>s;s++){var o=r[s].toLowerCase();if(o&&e.substr(-o.length).toLowerCase()===o)return!0}return!1})(t,r)}function s(e,t,s){ge.stat(e,((o,i)=>{s(o,!o&&r(i,e,t))}))}e.exports=s,s.sync=(e,t)=>r(ge.statSync(e),e,t)})),Ne.register("9yF3I",((e,t)=>{function r(e,t,r){ge.stat(e,((e,o)=>{r(e,!e&&s(o,t))}))}function s(e,t){return e.isFile()&&((e,t)=>{var r=e.mode,s=e.uid,o=e.gid,i=void 0!==t.uid?t.uid:process.getuid&&process.getuid(),n=void 0!==t.gid?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),c=parseInt("010",8),l=a|c;return r&parseInt("001",8)||r&c&&o===n||r&a&&s===i||r&l&&0===i})(e,t)}e.exports=r,r.sync=(e,t)=>s(ge.statSync(e),t)})),Ne.register("bJALw",((e,t)=>{e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")})),Ne.register("ditiY",((t,r)=>{function s(e){return l.isGitHubCI()?c.error(e):console.log(`${e}`)}function o(e){return console.log(`${e}`)}function i(e){return l.isGitHubCI()?c.warning(e):console.log(`${e}`)}function n(e){return l.isGitHubCI()?c.notice(e):console.log(`${e}`)}function a(e){return l.isGitHubCI()?c.info(e):console.log(e)}e(t.exports,"error",(()=>s)),e(t.exports,"success",(()=>o)),e(t.exports,"warning",(()=>i)),e(t.exports,"notice",(()=>n)),e(t.exports,"info",(()=>a));var c=Ne("9bqVn"),l=Ne("di6NI")})),Ne.register("di6NI",((t,r)=>{function s(){return"true"===process.env.CI&&"true"===process.env.GITHUB_ACTIONS}e(t.exports,"isGitHubCI",(()=>s))})),Ne.register("1GQ3N",(function(e,t){"use strict";function r(e,t){const r=[];t=t||w.arch();const s=b.join(c(),e);if(y.existsSync(s)){const e=y.readdirSync(s);for(const o of e)if(n(o)){const e=b.join(s,o,t||"");y.existsSync(e)&&y.existsSync(e+".complete")&&r.push(o)}}return r}function s(e){return f(this,void 0,void 0,(function*(){return e||(e=b.join(l(),_.default())),yield v.mkdirP(e),e}))}function o(e,t,r){return f(this,void 0,void 0,(function*(){const s=b.join(c(),e,S.clean(t)||t,r||"");g.debug("destination "+s);const o=s+".complete";return yield v.rmRF(s),yield v.rmRF(o),yield v.mkdirP(s),s}))}function i(e,t,r){const s=b.join(c(),e,S.clean(t)||t,r||"");y.writeFileSync(s+".complete",""),g.debug("finished caching tool")}function n(e){const t=S.clean(e)||"";g.debug("isExplicit: "+t);const r=null!=S.valid(t);return g.debug("explicit? "+r),r}function a(e,t){let r="";g.debug(`evaluating ${e.length} versions`);for(let s=(e=e.sort(((e,t)=>S.gt(e,t)?1:-1))).length-1;s>=0;s--){const o=e[s];if(S.satisfies(o,t)){r=o;break}}return g.debug(r?"matched: "+r:"match not found"),r}function c(){const e=process.env.RUNNER_TOOL_CACHE||"";return be.ok(e,"Expected RUNNER_TOOL_CACHE to be defined"),e}function l(){const e=process.env.RUNNER_TEMP||"";return be.ok(e,"Expected RUNNER_TEMP to be defined"),e}function u(e,t){const r=Ae[e];return void 0!==r?r:t}var p=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,s)=>{void 0===s&&(s=r),Object.defineProperty(e,s,{enumerable:!0,get(){return t[r]}})}:(e,t,r,s)=>{void 0===s&&(s=r),e[s]=t[r]}),d=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),h=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&p(t,e,r);return d(t,e),t}),f=e.exports&&e.exports.__awaiter||((e,t,r,s)=>new(r||(r=Promise))(((o,i)=>{function n(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(n,a)}c((s=s.apply(e,t||[])).next())}))),m=e.exports&&e.exports.__importDefault||(e=>e&&e.__esModule?e:{default:e});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.evaluateVersions=e.exports.isExplicitVersion=e.exports.findFromManifest=e.exports.getManifestFromRepo=e.exports.findAllVersions=e.exports.find=e.exports.cacheFile=e.exports.cacheDir=e.exports.extractZip=e.exports.extractXar=e.exports.extractTar=e.exports.extract7z=e.exports.downloadTool=e.exports.HTTPError=void 0;const g=h(Ne("9bqVn")),v=h(Ne("fvrnx")),y=h(ge),x=h(Ne("2YXUl")),w=h(fe),b=h(me),E=h(Ne("ba1Cu")),S=h(Ne("4URNm")),O=h(Se),$=h(Ee),_=m(Ne("iFKS7"));var T=Ne("ca0ts"),C=Ne("9g1b2");class I extends Error{constructor(e){super("Unexpected HTTP response: "+e),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}}e.exports.HTTPError=I;const A="win32"===process.platform,R="darwin"===process.platform;e.exports.downloadTool=function(e,t,r,s){return f(this,void 0,void 0,(function*(){t=t||b.join(l(),_.default()),yield v.mkdirP(b.dirname(t)),g.debug("Downloading "+e),g.debug("Destination "+t);const o=u("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),i=u("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),n=new C.RetryHelper(3,o,i);return yield n.execute((()=>f(this,void 0,void 0,(function*(){return yield function(e,t,r,s){return f(this,void 0,void 0,(function*(){if(y.existsSync(t))throw Error(`Destination file path ${t} already exists`);const o=new E.HttpClient("actions/tool-cache",[],{allowRetries:!1});r&&(g.debug("set auth"),void 0===s&&(s={}),s.authorization=r);const i=yield o.get(e,s);if(200!==i.message.statusCode){const t=new I(i.message.statusCode);throw g.debug(`Failed to download from "${e}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),t}const n=$.promisify(O.pipeline),a=u("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>i.message))();let c=!1;try{return yield n(a,y.createWriteStream(t)),g.debug("download complete"),c=!0,t}finally{if(!c){g.debug("download failed");try{yield v.rmRF(t)}catch(e){g.debug(`Failed to delete '${t}'. ${e.message}`)}}}}))}(e,t||"",r,s)}))),(e=>!(e instanceof I&&e.httpStatusCode&&500>e.httpStatusCode&&408!==e.httpStatusCode&&429!==e.httpStatusCode)))}))},e.exports.extract7z=function(e,t,r){return f(this,void 0,void 0,(function*(){be.ok(A,"extract7z() not supported on current OS"),be.ok(e,'parameter "file" is required'),t=yield s(t);const o=process.cwd();if(process.chdir(t),r)try{const t=["x",g.isDebug()?"-bb1":"-bb0","-bd","-sccUTF-8",e],s={silent:!0};yield T.exec(`"${r}"`,t,s)}finally{process.chdir(o)}else{const r=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${b.join(__dirname,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"")}' -Source '${e.replace(/'/g,"''").replace(/"|\n|\r/g,"")}' -Target '${t.replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`],s={silent:!0};try{const e=yield v.which("powershell",!0);yield T.exec(`"${e}"`,r,s)}finally{process.chdir(o)}}return t}))},e.exports.extractTar=function(e,t,r="xz"){return f(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'file' is required");t=yield s(t),g.debug("Checking tar --version");let o="";yield T.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout(e){return o+=""+e},stderr(e){return o+=""+e}}}),g.debug(o.trim());const i=o.toUpperCase().includes("GNU TAR");let n;n=r instanceof Array?r:[r],g.isDebug()&&!r.includes("v")&&n.push("-v");let a=t,c=e;return A&&i&&(n.push("--force-local"),a=t.replace(/\\/g,"/"),c=e.replace(/\\/g,"/")),i&&(n.push("--warning=no-unknown-keyword"),n.push("--overwrite")),n.push("-C",a,"-f",c),yield T.exec("tar",n),t}))},e.exports.extractXar=function(e,t,r=[]){return f(this,void 0,void 0,(function*(){let o;be.ok(R,"extractXar() not supported on current OS"),be.ok(e,'parameter "file" is required'),t=yield s(t),o=r instanceof Array?r:[r],o.push("-x","-C",t,"-f",e),g.isDebug()&&o.push("-v");const i=yield v.which("xar",!0);var n;return yield T.exec(`"${i}"`,(n=o,Array.from(new Set(n)))),t}))},e.exports.extractZip=function(e,t){return f(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'file' is required");return t=yield s(t),A?yield function(e,t){return f(this,void 0,void 0,(function*(){const r=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),s=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),o=yield v.which("pwsh",!1);if(o){const e=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",["$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;",`try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${s}', $true) }`,`catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${r}' -DestinationPath '${s}' -Force } else { throw $_ } } ;`].join(" ")];g.debug("Using pwsh at path: "+o),yield T.exec(`"${o}"`,e)}else{const e=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",["$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ;",`if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${r}' -DestinationPath '${s}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${s}', $true) }`].join(" ")],t=yield v.which("powershell",!0);g.debug("Using powershell at path: "+t),yield T.exec(`"${t}"`,e)}}))}(e,t):yield function(e,t){return f(this,void 0,void 0,(function*(){const r=yield v.which("unzip",!0),s=[e];g.isDebug()||s.unshift("-q"),s.unshift("-o"),yield T.exec(`"${r}"`,s,{cwd:t})}))}(e,t),t}))},e.exports.cacheDir=function(e,t,r,s){return f(this,void 0,void 0,(function*(){if(r=S.clean(r)||r,s=s||w.arch(),g.debug(`Caching tool ${t} ${r} ${s}`),g.debug("source dir: "+e),!y.statSync(e).isDirectory())throw Error("sourceDir is not a directory");const n=yield o(t,r,s);for(const t of y.readdirSync(e)){const r=b.join(e,t);yield v.cp(r,n,{recursive:!0})}return i(t,r,s),n}))},e.exports.cacheFile=function(e,t,r,s,n){return f(this,void 0,void 0,(function*(){if(s=S.clean(s)||s,n=n||w.arch(),g.debug(`Caching tool ${r} ${s} ${n}`),g.debug("source file: "+e),!y.statSync(e).isFile())throw Error("sourceFile is not a file");const a=yield o(r,s,n),c=b.join(a,t);return g.debug("destination file "+c),yield v.cp(e,c),i(r,s,n),a}))},e.exports.find=(e,t,s)=>{if(!e)throw Error("toolName parameter is required");if(!t)throw Error("versionSpec parameter is required");s=s||w.arch(),n(t)||(t=a(r(e,s),t));let o="";if(t){t=S.clean(t)||"";const r=b.join(c(),e,t,s);g.debug("checking cache: "+r),y.existsSync(r)&&y.existsSync(r+".complete")?(g.debug(`Found tool in cache ${e} ${t} ${s}`),o=r):g.debug("not found")}return o},e.exports.findAllVersions=r,e.exports.getManifestFromRepo=function(e,t,r,s="master"){return f(this,void 0,void 0,(function*(){let o=[];const i=`https://api.github.com/repos/${e}/${t}/git/trees/${s}`,n=new E.HttpClient("tool-cache"),a={};r&&(g.debug("set auth"),a.authorization=r);const c=yield n.getJson(i,a);if(!c.result)return o;let l="";for(const e of c.result.tree)if("versions-manifest.json"===e.path){l=e.url;break}a.accept="application/vnd.github.VERSION.raw";let u=yield(yield n.get(l,a)).readBody();if(u){u=u.replace(/^\uFEFF/,"");try{o=JSON.parse(u)}catch(e){g.debug("Invalid json")}}return o}))},e.exports.findFromManifest=function(e,t,r,s=w.arch()){return f(this,void 0,void 0,(function*(){return yield x._findMatch(e,t,r,s)}))},e.exports.isExplicitVersion=n,e.exports.evaluateVersions=a})),Ne.register("fvrnx",(function(e,t){"use strict";function r(e){return u(this,void 0,void 0,(function*(){if(h.IS_WINDOWS){if(/[*"<>|]/.test(e))throw Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{const t=h.getCmdPath();(yield h.isDirectory(e,!0))?yield f(t+' /s /c "rd /s /q "%inputPath%""',{env:{inputPath:e}}):yield f(t+' /s /c "del /f /a "%inputPath%""',{env:{inputPath:e}})}catch(e){if("ENOENT"!==e.code)throw e}try{yield h.unlink(e)}catch(e){if("ENOENT"!==e.code)throw e}}else{let t=!1;try{t=yield h.isDirectory(e)}catch(e){if("ENOENT"!==e.code)throw e;return}t?yield m("rm",["-rf",""+e]):yield h.unlink(e)}}))}function s(e){return u(this,void 0,void 0,(function*(){be.ok(e,"a path argument must be provided"),yield h.mkdir(e,{recursive:!0})}))}function o(e){return u(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'tool' is required");const t=[];if(h.IS_WINDOWS&&process.env.PATHEXT)for(const e of process.env.PATHEXT.split(d.delimiter))e&&t.push(e);if(h.isRooted(e)){const r=yield h.tryGetExecutablePath(e,t);return r?[r]:[]}if(e.includes(d.sep))return[];const r=[];if(process.env.PATH)for(const e of process.env.PATH.split(d.delimiter))e&&r.push(e);const s=[];for(const o of r){const r=yield h.tryGetExecutablePath(d.join(o,e),t);r&&s.push(r)}return s}))}function i(e,t,r,o){return u(this,void 0,void 0,(function*(){if(r>=255)return;r++,yield s(t);const a=yield h.readdir(e);for(const s of a){const a=`${e}/${s}`,c=`${t}/${s}`;(yield h.lstat(a)).isDirectory()?yield i(a,c,r,o):yield n(a,c,o)}yield h.chmod(t,(yield h.stat(e)).mode)}))}function n(e,t,r){return u(this,void 0,void 0,(function*(){if((yield h.lstat(e)).isSymbolicLink()){try{yield h.lstat(t),yield h.unlink(t)}catch(e){"EPERM"===e.code&&(yield h.chmod(t,"0666"),yield h.unlink(t))}const r=yield h.readlink(e);yield h.symlink(r,t,h.IS_WINDOWS?"junction":null)}else(yield h.exists(t))&&!r||(yield h.copyFile(e,t))}))}var a=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,s)=>{void 0===s&&(s=r),Object.defineProperty(e,s,{enumerable:!0,get(){return t[r]}})}:(e,t,r,s)=>{void 0===s&&(s=r),e[s]=t[r]}),c=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),l=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&a(t,e,r);return c(t,e),t}),u=e.exports&&e.exports.__awaiter||((e,t,r,s)=>new(r||(r=Promise))(((o,i)=>{function n(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(n,a)}c((s=s.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.findInPath=e.exports.which=e.exports.mkdirP=e.exports.rmRF=e.exports.mv=e.exports.cp=void 0;const p=l(Oe),d=l(me),h=l(Ne("2GOko")),f=Ee.promisify(p.exec),m=Ee.promisify(p.execFile);e.exports.cp=function(e,t,r={}){return u(this,void 0,void 0,(function*(){const{force:s,recursive:o,copySourceDirectory:a}=(e=>({force:null==e.force||e.force,recursive:!!e.recursive,copySourceDirectory:null==e.copySourceDirectory||!!e.copySourceDirectory}))(r),c=(yield h.exists(t))?yield h.stat(t):null;if(c&&c.isFile()&&!s)return;const l=c&&c.isDirectory()&&a?d.join(t,d.basename(e)):t;if(!(yield h.exists(e)))throw Error("no such file or directory: "+e);if((yield h.stat(e)).isDirectory()){if(!o)throw Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield i(e,l,0,s)}else{if(""===d.relative(e,l))throw Error(`'${l}' and '${e}' are the same file`);yield n(e,l,s)}}))},e.exports.mv=function(e,t,o={}){return u(this,void 0,void 0,(function*(){if(yield h.exists(t)){let s=!0;if((yield h.isDirectory(t))&&(t=d.join(t,d.basename(e)),s=yield h.exists(t)),s){if(null!=o.force&&!o.force)throw Error("Destination already exists");yield r(t)}}yield s(d.dirname(t)),yield h.rename(e,t)}))},e.exports.rmRF=r,e.exports.mkdirP=s,e.exports.which=function e(t,r){return u(this,void 0,void 0,(function*(){if(!t)throw Error("parameter 'tool' is required");if(r){const r=yield e(t,!1);if(!r)throw Error(h.IS_WINDOWS?`Unable to locate executable file: ${t}. 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.`:`Unable to locate executable file: ${t}. 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 r}const s=yield o(t);return s&&s.length>0?s[0]:""}))},e.exports.findInPath=o})),Ne.register("2GOko",(function(e,t){"use strict";function r(e){return(1&e.mode)>0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}var s,o=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,s)=>{void 0===s&&(s=r),Object.defineProperty(e,s,{enumerable:!0,get(){return t[r]}})}:(e,t,r,s)=>{void 0===s&&(s=r),e[s]=t[r]}),i=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),n=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&o(t,e,r);return i(t,e),t}),a=e.exports&&e.exports.__awaiter||((e,t,r,s)=>new(r||(r=Promise))(((o,i)=>{function n(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(n,a)}c((s=s.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getCmdPath=e.exports.tryGetExecutablePath=e.exports.isRooted=e.exports.isDirectory=e.exports.exists=e.exports.IS_WINDOWS=e.exports.unlink=e.exports.symlink=e.exports.stat=e.exports.rmdir=e.exports.rename=e.exports.readlink=e.exports.readdir=e.exports.mkdir=e.exports.lstat=e.exports.copyFile=e.exports.chmod=void 0;const c=n(ge),l=n(me);e.exports.chmod=(s=c.promises).chmod,e.exports.copyFile=s.copyFile,e.exports.lstat=s.lstat,e.exports.mkdir=s.mkdir,e.exports.readdir=s.readdir,e.exports.readlink=s.readlink,e.exports.rename=s.rename,e.exports.rmdir=s.rmdir,e.exports.stat=s.stat,e.exports.symlink=s.symlink,e.exports.unlink=s.unlink,e.exports.IS_WINDOWS="win32"===process.platform,e.exports.exists=function(t){return a(this,void 0,void 0,(function*(){try{yield e.exports.stat(t)}catch(e){if("ENOENT"===e.code)return!1;throw e}return!0}))},e.exports.isDirectory=function(t,r=!1){return a(this,void 0,void 0,(function*(){return(r?yield e.exports.stat(t):yield e.exports.lstat(t)).isDirectory()}))},e.exports.isRooted=t=>{if(!(t=(t=>(t=t||"",e.exports.IS_WINDOWS?(t=t.replace(/\//g,"\\")).replace(/\\\\+/g,"\\"):t.replace(/\/\/+/g,"/")))(t)))throw Error('isRooted() parameter "p" cannot be empty');return e.exports.IS_WINDOWS?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")},e.exports.tryGetExecutablePath=function(t,s){return a(this,void 0,void 0,(function*(){let o;try{o=yield e.exports.stat(t)}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`)}if(o&&o.isFile())if(e.exports.IS_WINDOWS){const e=l.extname(t).toUpperCase();if(s.some((t=>t.toUpperCase()===e)))return t}else if(r(o))return t;const i=t;for(const n of s){t=i+n,o=void 0;try{o=yield e.exports.stat(t)}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`)}if(o&&o.isFile()){if(e.exports.IS_WINDOWS){try{const r=l.dirname(t),s=l.basename(t).toUpperCase();for(const o of yield e.exports.readdir(r))if(s===o.toUpperCase()){t=l.join(r,o);break}}catch(e){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${e}`)}return t}if(r(o))return t}}return""}))},e.exports.getCmdPath=()=>{var e;return null!==(e=process.env.COMSPEC)&&void 0!==e?e:"cmd.exe"}})),Ne.register("2YXUl",(function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,s)=>{void 0===s&&(s=r),Object.defineProperty(e,s,{enumerable:!0,get(){return t[r]}})}:(e,t,r,s)=>{void 0===s&&(s=r),e[s]=t[r]}),s=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),o=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&r(t,e,o);return s(t,e),t}),i=e.exports&&e.exports.__awaiter||((e,t,r,s)=>new(r||(r=Promise))(((o,i)=>{function n(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(n,a)}c((s=s.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports._readLinuxVersionFile=e.exports._getOsVersion=e.exports._findMatch=void 0;const n=o(Ne("4URNm"));var a=Ne("9bqVn");e.exports._findMatch=function(t,r,s,o){return i(this,void 0,void 0,(function*(){const i=fe.platform();let c,l,u;for(const c of s){const s=c.version;if(a.debug(`check ${s} satisfies ${t}`),n.satisfies(s,t)&&(!r||c.stable===r)&&(u=c.files.find((t=>{a.debug(`${t.arch}===${o} && ${t.platform}===${i}`);let r=t.arch===o&&t.platform===i;if(r&&t.platform_version){const s=e.exports._getOsVersion();r=s===t.platform_version||n.satisfies(s,t.platform_version)}return r})),u)){a.debug("matched "+c.version),l=c;break}}return l&&u&&(c=Object.assign({},l),c.files=[u]),c}))},e.exports._getOsVersion=()=>{const t=fe.platform();let r="";if("darwin"===t)r=""+Oe.execSync("sw_vers -productVersion");else if("linux"===t){const t=e.exports._readLinuxVersionFile();if(t){const e=t.split("\n");for(const t of e){const e=t.split("=");if(2===e.length&&("VERSION_ID"===e[0].trim()||"DISTRIB_RELEASE"===e[0].trim())){r=e[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return r},e.exports._readLinuxVersionFile=()=>{const e="/etc/lsb-release",t="/etc/os-release";let r="";return ge.existsSync(e)?r=""+ge.readFileSync(e):ge.existsSync(t)&&(r=""+ge.readFileSync(t)),r}})),Ne.register("4URNm",((e,t)=>{var r=Ne("bikcG");e.exports={re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:Ne("bgOMw").SEMVER_SPEC_VERSION,SemVer:Ne("7qUJS"),compareIdentifiers:Ne("12NXI").compareIdentifiers,rcompareIdentifiers:Ne("12NXI").rcompareIdentifiers,parse:Ne("gdrva"),valid:Ne("fVzwP"),clean:Ne("hOYls"),inc:Ne("dGcr6"),diff:Ne("bBssn"),major:Ne("fB2B7"),minor:Ne("bye2i"),patch:Ne("87ZGF"),prerelease:Ne("4agny"),compare:Ne("howpO"),rcompare:Ne("zcbgY"),compareLoose:Ne("iGBo4"),compareBuild:Ne("80ezM"),sort:Ne("4qmtg"),rsort:Ne("4pjXu"),gt:Ne("6KPS4"),lt:Ne("lr5pz"),eq:Ne("jXghC"),neq:Ne("fqqGA"),gte:Ne("5cRW4"),lte:Ne("fwsB7"),cmp:Ne("823yM"),coerce:Ne("1YYsi"),Comparator:Ne("eR6XK"),Range:Ne("hvUff"),satisfies:Ne("c8FZS"),toComparators:Ne("2J2hR"),maxSatisfying:Ne("lbfMG"),minSatisfying:Ne("5wbuE"),minVersion:Ne("hZRNG"),validRange:Ne("fqnzG"),outside:Ne("77bPN"),gtr:Ne("gD8Tz"),ltr:Ne("bpPww"),intersects:Ne("cHIUn"),simplifyRange:Ne("k8aCs"),subset:Ne("388OD")}})),Ne.register("bikcG",((e,t)=>{var r=Ne("bgOMw").MAX_SAFE_COMPONENT_LENGTH,s=Ne("jkMsx");const o=(t=e.exports={}).re=[],i=t.src=[],n=t.t={};let a=0;const c=(e,t,r)=>{const c=a++;s(e,c,t),n[e]=c,i[c]=t,o[c]=RegExp(t,r?"g":void 0)};c("NUMERICIDENTIFIER","0|[1-9]\\d*"),c("NUMERICIDENTIFIERLOOSE","[0-9]+"),c("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),c("MAINVERSION",`(${i[n.NUMERICIDENTIFIER]})\\.(${i[n.NUMERICIDENTIFIER]})\\.(${i[n.NUMERICIDENTIFIER]})`),c("MAINVERSIONLOOSE",`(${i[n.NUMERICIDENTIFIERLOOSE]})\\.(${i[n.NUMERICIDENTIFIERLOOSE]})\\.(${i[n.NUMERICIDENTIFIERLOOSE]})`),c("PRERELEASEIDENTIFIER",`(?:${i[n.NUMERICIDENTIFIER]}|${i[n.NONNUMERICIDENTIFIER]})`),c("PRERELEASEIDENTIFIERLOOSE",`(?:${i[n.NUMERICIDENTIFIERLOOSE]}|${i[n.NONNUMERICIDENTIFIER]})`),c("PRERELEASE",`(?:-(${i[n.PRERELEASEIDENTIFIER]}(?:\\.${i[n.PRERELEASEIDENTIFIER]})*))`),c("PRERELEASELOOSE",`(?:-?(${i[n.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${i[n.PRERELEASEIDENTIFIERLOOSE]})*))`),c("BUILDIDENTIFIER","[0-9A-Za-z-]+"),c("BUILD",`(?:\\+(${i[n.BUILDIDENTIFIER]}(?:\\.${i[n.BUILDIDENTIFIER]})*))`),c("FULLPLAIN",`v?${i[n.MAINVERSION]}${i[n.PRERELEASE]}?${i[n.BUILD]}?`),c("FULL",`^${i[n.FULLPLAIN]}$`),c("LOOSEPLAIN",`[v=\\s]*${i[n.MAINVERSIONLOOSE]}${i[n.PRERELEASELOOSE]}?${i[n.BUILD]}?`),c("LOOSE",`^${i[n.LOOSEPLAIN]}$`),c("GTLT","((?:<|>)?=?)"),c("XRANGEIDENTIFIERLOOSE",i[n.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*"),c("XRANGEIDENTIFIER",i[n.NUMERICIDENTIFIER]+"|x|X|\\*"),c("XRANGEPLAIN",`[v=\\s]*(${i[n.XRANGEIDENTIFIER]})(?:\\.(${i[n.XRANGEIDENTIFIER]})(?:\\.(${i[n.XRANGEIDENTIFIER]})(?:${i[n.PRERELEASE]})?${i[n.BUILD]}?)?)?`),c("XRANGEPLAINLOOSE",`[v=\\s]*(${i[n.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[n.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[n.XRANGEIDENTIFIERLOOSE]})(?:${i[n.PRERELEASELOOSE]})?${i[n.BUILD]}?)?)?`),c("XRANGE",`^${i[n.GTLT]}\\s*${i[n.XRANGEPLAIN]}$`),c("XRANGELOOSE",`^${i[n.GTLT]}\\s*${i[n.XRANGEPLAINLOOSE]}$`),c("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),c("COERCERTL",i[n.COERCE],!0),c("LONETILDE","(?:~>?)"),c("TILDETRIM",`(\\s*)${i[n.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",c("TILDE",`^${i[n.LONETILDE]}${i[n.XRANGEPLAIN]}$`),c("TILDELOOSE",`^${i[n.LONETILDE]}${i[n.XRANGEPLAINLOOSE]}$`),c("LONECARET","(?:\\^)"),c("CARETTRIM",`(\\s*)${i[n.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",c("CARET",`^${i[n.LONECARET]}${i[n.XRANGEPLAIN]}$`),c("CARETLOOSE",`^${i[n.LONECARET]}${i[n.XRANGEPLAINLOOSE]}$`),c("COMPARATORLOOSE",`^${i[n.GTLT]}\\s*(${i[n.LOOSEPLAIN]})$|^$`),c("COMPARATOR",`^${i[n.GTLT]}\\s*(${i[n.FULLPLAIN]})$|^$`),c("COMPARATORTRIM",`(\\s*)${i[n.GTLT]}\\s*(${i[n.LOOSEPLAIN]}|${i[n.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",c("HYPHENRANGE",`^\\s*(${i[n.XRANGEPLAIN]})\\s+-\\s+(${i[n.XRANGEPLAIN]})\\s*$`),c("HYPHENRANGELOOSE",`^\\s*(${i[n.XRANGEPLAINLOOSE]})\\s+-\\s+(${i[n.XRANGEPLAINLOOSE]})\\s*$`),c("STAR","(<|>)?=?\\s*\\*"),c("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),c("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})),Ne.register("bgOMw",((e,t)=>{e.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16}})),Ne.register("jkMsx",((e,t)=>{const r=("object"==typeof process&&process,()=>{});e.exports=r})),Ne.register("7qUJS",(function(e,t){var r=Ne("jkMsx"),s=Ne("bgOMw"),o=s.MAX_LENGTH,i=s.MAX_SAFE_INTEGER,n=Ne("bikcG"),a=n.re,c=n.t,l=Ne("eUvvN"),u=Ne("12NXI").compareIdentifiers;class p{constructor(e,t){if(t=l(t),e instanceof p){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>o)throw new TypeError(`version is longer than ${o} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const s=e.trim().match(t.loose?a[c.LOOSE]:a[c.FULL]);if(!s)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+s[1],this.minor=+s[2],this.patch=+s[3],this.major>i||0>this.major)throw new TypeError("Invalid major version");if(this.minor>i||0>this.minor)throw new TypeError("Invalid minor version");if(this.patch>i||0>this.patch)throw new TypeError("Invalid patch version");this.prerelease=s[4]?s[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&i>t)return t}return e})):[],this.build=s[5]?s[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version}toString(){return this.version}compare(e){if(r("SemVer.compare",this.version,this.options,e),!(e instanceof p)){if("string"==typeof e&&e===this.version)return 0;e=new p(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof p||(e=new p(e,this.options)),u(this.major,e.major)||u(this.minor,e.minor)||u(this.patch,e.patch)}comparePre(e){if(e instanceof p||(e=new p(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const s=this.prerelease[t],o=e.prerelease[t];if(r("prerelease compare",t,s,o),void 0===s&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===s)return-1;if(s!==o)return u(s,o)}while(++t)}compareBuild(e){e instanceof p||(e=new p(e,this.options));let t=0;do{const s=this.build[t],o=e.build[t];if(r("prerelease compare",t,s,o),void 0===s&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===s)return-1;if(s!==o)return u(s,o)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let e=this.prerelease.length;for(;--e>=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(0===u(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this}}e.exports=p})),Ne.register("eUvvN",((e,t)=>{const r=["includePrerelease","loose","rtl"];e.exports=e=>e?"object"!=typeof e?{loose:!0}:r.filter((t=>e[t])).reduce(((e,t)=>(e[t]=!0,e)),{}):{}})),Ne.register("12NXI",((e,t)=>{const r=/^[0-9]+$/,s=(e,t)=>{const s=r.test(e),o=r.test(t);return s&&o&&(e=+e,t=+t),e===t?0:s&&!o?-1:o&&!s?1:t>e?-1:1};e.exports={compareIdentifiers:s,rcompareIdentifiers(e,t){return s(t,e)}}})),Ne.register("gdrva",((e,t)=>{var r=Ne("bgOMw").MAX_LENGTH,s=Ne("bikcG"),o=s.re,i=s.t,n=Ne("7qUJS"),a=Ne("eUvvN");e.exports=(e,t)=>{if(t=a(t),e instanceof n)return e;if("string"!=typeof e)return null;if(e.length>r)return null;if(!(t.loose?o[i.LOOSE]:o[i.FULL]).test(e))return null;try{return new n(e,t)}catch(e){return null}}})),Ne.register("fVzwP",((e,t)=>{var r=Ne("gdrva");e.exports=(e,t)=>{const s=r(e,t);return s?s.version:null}})),Ne.register("hOYls",((e,t)=>{var r=Ne("gdrva");e.exports=(e,t)=>{const s=r(e.trim().replace(/^[=v]+/,""),t);return s?s.version:null}})),Ne.register("dGcr6",((e,t)=>{var r=Ne("7qUJS");e.exports=(e,t,s,o)=>{"string"==typeof s&&(o=s,s=void 0);try{return new r(e instanceof r?e.version:e,s).inc(t,o).version}catch(e){return null}}})),Ne.register("bBssn",((e,t)=>{var r=Ne("gdrva"),s=Ne("jXghC");e.exports=(e,t)=>{if(s(e,t))return null;{const s=r(e),o=r(t),i=s.prerelease.length||o.prerelease.length,n=i?"pre":"",a=i?"prerelease":"";for(const e in s)if(("major"===e||"minor"===e||"patch"===e)&&s[e]!==o[e])return n+e;return a}}})),Ne.register("jXghC",((e,t)=>{var r=Ne("howpO");e.exports=(e,t,s)=>0===r(e,t,s)})),Ne.register("howpO",((e,t)=>{var r=Ne("7qUJS");e.exports=(e,t,s)=>new r(e,s).compare(new r(t,s))})),Ne.register("fB2B7",((e,t)=>{var r=Ne("7qUJS");e.exports=(e,t)=>new r(e,t).major})),Ne.register("bye2i",((e,t)=>{var r=Ne("7qUJS");e.exports=(e,t)=>new r(e,t).minor})),Ne.register("87ZGF",((e,t)=>{var r=Ne("7qUJS");e.exports=(e,t)=>new r(e,t).patch})),Ne.register("4agny",((e,t)=>{var r=Ne("gdrva");e.exports=(e,t)=>{const s=r(e,t);return s&&s.prerelease.length?s.prerelease:null}})),Ne.register("zcbgY",((e,t)=>{var r=Ne("howpO");e.exports=(e,t,s)=>r(t,e,s)})),Ne.register("iGBo4",((e,t)=>{var r=Ne("howpO");e.exports=(e,t)=>r(e,t,!0)})),Ne.register("80ezM",((e,t)=>{var r=Ne("7qUJS");e.exports=(e,t,s)=>{const o=new r(e,s),i=new r(t,s);return o.compare(i)||o.compareBuild(i)}})),Ne.register("4qmtg",((e,t)=>{var r=Ne("80ezM");e.exports=(e,t)=>e.sort(((e,s)=>r(e,s,t)))})),Ne.register("4pjXu",((e,t)=>{var r=Ne("80ezM");e.exports=(e,t)=>e.sort(((e,s)=>r(s,e,t)))})),Ne.register("6KPS4",((e,t)=>{var r=Ne("howpO");e.exports=(e,t,s)=>r(e,t,s)>0})),Ne.register("lr5pz",((e,t)=>{var r=Ne("howpO");e.exports=(e,t,s)=>0>r(e,t,s)})),Ne.register("fqqGA",((e,t)=>{var r=Ne("howpO");e.exports=(e,t,s)=>0!==r(e,t,s)})),Ne.register("5cRW4",((e,t)=>{var r=Ne("howpO");e.exports=(e,t,s)=>r(e,t,s)>=0})),Ne.register("fwsB7",((e,t)=>{var r=Ne("howpO");e.exports=(e,t,s)=>0>=r(e,t,s)})),Ne.register("823yM",((e,t)=>{var r=Ne("jXghC"),s=Ne("fqqGA"),o=Ne("6KPS4"),i=Ne("5cRW4"),n=Ne("lr5pz"),a=Ne("fwsB7");e.exports=(e,t,c,l)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof c&&(c=c.version),e===c;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof c&&(c=c.version),e!==c;case"":case"=":case"==":return r(e,c,l);case"!=":return s(e,c,l);case">":return o(e,c,l);case">=":return i(e,c,l);case"<":return n(e,c,l);case"<=":return a(e,c,l);default:throw new TypeError("Invalid operator: "+t)}}})),Ne.register("1YYsi",((e,t)=>{var r=Ne("7qUJS"),s=Ne("gdrva"),o=Ne("bikcG"),i=o.re,n=o.t;e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e+=""),"string"!=typeof e)return null;let o=null;if((t=t||{}).rtl){let t;for(;(t=i[n.COERCERTL].exec(e))&&(!o||o.index+o[0].length!==e.length);)o&&t.index+t[0].length===o.index+o[0].length||(o=t),i[n.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;i[n.COERCERTL].lastIndex=-1}else o=e.match(i[n.COERCE]);return null===o?null:s(`${o[2]}.${o[3]||"0"}.${o[4]||"0"}`,t)}})),Ne.register("eR6XK",(function(e,t){const r=Symbol();class s{static get ANY(){return r}constructor(e,t){if(t=o(t),e instanceof s){if(e.loose===!!t.loose)return e;e=e.value}l("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.value=this.semver===r?"":this.operator+this.semver.version,l("comp",this)}parse(e){const t=e.match(this.options.loose?n[a.COMPARATORLOOSE]:n[a.COMPARATOR]);if(!t)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==t[1]?t[1]:"","="===this.operator&&(this.operator=""),this.semver=t[2]?new u(t[2],this.options.loose):r}toString(){return this.value}test(e){if(l("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}return c(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof s))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new p(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new p(this.value,t).test(e.semver);const r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,n=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=c(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=c(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||o||i&&n||a||l}}e.exports=s;var o=Ne("eUvvN"),i=Ne("bikcG"),n=i.re,a=i.t,c=Ne("823yM"),l=Ne("jkMsx"),u=Ne("7qUJS"),p=Ne("hvUff")})),Ne.register("hvUff",(function(e,t){class r{constructor(e,t){if(t=o(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof i)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!f(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&m(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();const t=`parseRange:${Object.keys(this.options).join(",")}:${e}`,r=s.get(t);if(r)return r;const o=this.options.loose;e=e.replace(o?l[u.HYPHENRANGELOOSE]:l[u.HYPHENRANGE],T(this.options.includePrerelease)),n("hyphen replace",e),e=e.replace(l[u.COMPARATORTRIM],p),n("comparator trim",e);let a=(e=(e=(e=e.replace(l[u.TILDETRIM],d)).replace(l[u.CARETTRIM],h)).split(/\s+/).join(" ")).split(" ").map((e=>v(e,this.options))).join(" ").split(/\s+/).map((e=>_(e,this.options)));o&&(a=a.filter((e=>(n("loose invalid filter",e,this.options),!!e.match(l[u.COMPARATORLOOSE]))))),n("range list",a);const c=new Map,m=a.map((e=>new i(e,this.options)));for(const e of m){if(f(e))return[e];c.set(e.value,e)}c.size>1&&c.has("")&&c.delete("");const g=[...c.values()];return s.set(t,g),g}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some((r=>g(r,t)&&e.set.some((e=>g(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new a(e,this.options)}catch(e){return!1}for(let t=0;this.set.length>t;t++)if(C(this.set[t],e,this.options))return!0;return!1}}e.exports=r;const s=new(Ne("6MLkQ"))({max:1e3});var o=Ne("eUvvN"),i=Ne("eR6XK"),n=Ne("jkMsx"),a=Ne("7qUJS"),c=Ne("bikcG"),l=c.re,u=c.t,p=c.comparatorTrimReplace,d=c.tildeTrimReplace,h=c.caretTrimReplace;const f=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,g=(e,t)=>{let r=!0;const s=e.slice();let o=s.pop();for(;r&&s.length;)r=s.every((e=>o.intersects(e,t))),o=s.pop();return r},v=(e,t)=>(n("comp",e,t),e=b(e,t),n("caret",e),e=x(e,t),n("tildes",e),e=S(e,t),n("xrange",e),e=$(e,t),n("stars",e),e),y=e=>!e||"x"===e.toLowerCase()||"*"===e,x=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>e.replace(t.loose?l[u.TILDELOOSE]:l[u.TILDE],((t,r,s,o,i)=>{let a;return n("tilde",e,t,r,s,o,i),y(r)?a="":y(s)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:y(o)?a=`>=${r}.${s}.0 <${r}.${+s+1}.0-0`:i?(n("replaceTilde pr",i),a=`>=${r}.${s}.${o}-${i} <${r}.${+s+1}.0-0`):a=`>=${r}.${s}.${o} <${r}.${+s+1}.0-0`,n("tilde return",a),a})),b=(e,t)=>e.trim().split(/\s+/).map((e=>E(e,t))).join(" "),E=(e,t)=>{n("caret",e,t);const r=t.includePrerelease?"-0":"";return e.replace(t.loose?l[u.CARETLOOSE]:l[u.CARET],((t,s,o,i,a)=>{let c;return n("caret",e,t,s,o,i,a),y(s)?c="":y(o)?c=`>=${s}.0.0${r} <${+s+1}.0.0-0`:y(i)?c="0"===s?`>=${s}.${o}.0${r} <${s}.${+o+1}.0-0`:`>=${s}.${o}.0${r} <${+s+1}.0.0-0`:a?(n("replaceCaret pr",a),c="0"===s?"0"===o?`>=${s}.${o}.${i}-${a} <${s}.${o}.${+i+1}-0`:`>=${s}.${o}.${i}-${a} <${s}.${+o+1}.0-0`:`>=${s}.${o}.${i}-${a} <${+s+1}.0.0-0`):(n("no pr"),c="0"===s?"0"===o?`>=${s}.${o}.${i}${r} <${s}.${o}.${+i+1}-0`:`>=${s}.${o}.${i}${r} <${s}.${+o+1}.0-0`:`>=${s}.${o}.${i} <${+s+1}.0.0-0`),n("caret return",c),c}))},S=(e,t)=>(n("replaceXRanges",e,t),e.split(/\s+/).map((e=>O(e,t))).join(" ")),O=(e,t)=>(e=e.trim()).replace(t.loose?l[u.XRANGELOOSE]:l[u.XRANGE],((r,s,o,i,a,c)=>{n("xRange",e,r,s,o,i,a,c);const l=y(o),u=l||y(i),p=u||y(a);return"="===s&&p&&(s=""),c=t.includePrerelease?"-0":"",l?r=">"===s||"<"===s?"<0.0.0-0":"*":s&&p?(u&&(i=0),a=0,">"===s?(s=">=",u?(o=+o+1,i=0,a=0):(i=+i+1,a=0)):"<="===s&&(s="<",u?o=+o+1:i=+i+1),"<"===s&&(c="-0"),r=`${s+o}.${i}.${a}${c}`):u?r=`>=${o}.0.0${c} <${+o+1}.0.0-0`:p&&(r=`>=${o}.${i}.0${c} <${o}.${+i+1}.0-0`),n("xRange return",r),r})),$=(e,t)=>(n("replaceStars",e,t),e.trim().replace(l[u.STAR],"")),_=(e,t)=>(n("replaceGTE0",e,t),e.trim().replace(l[t.includePrerelease?u.GTE0PRE:u.GTE0],"")),T=e=>(t,r,s,o,i,n,a,c,l,u,p,d,h)=>`${r=y(s)?"":y(o)?`>=${s}.0.0${e?"-0":""}`:y(i)?`>=${s}.${o}.0${e?"-0":""}`:n?">="+r:`>=${r}${e?"-0":""}`} ${c=y(l)?"":y(u)?`<${+l+1}.0.0-0`:y(p)?`<${l}.${+u+1}.0-0`:d?`<=${l}.${u}.${p}-${d}`:e?`<${l}.${u}.${+p+1}-0`:"<="+c}`.trim(),C=(e,t,r)=>{for(let r=0;e.length>r;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;e.length>r;r++)if(n(e[r].semver),e[r].semver!==i.ANY&&e[r].semver.prerelease.length>0){const s=e[r].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch)return!0}return!1}return!0}})),Ne.register("6MLkQ",(function(e,t){const r="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,s="undefined"!=typeof AbortController?AbortController:Object.assign(class{constructor(){this.signal=new s.AbortSignal}abort(){this.signal.aborted=!0}},{AbortSignal:class{constructor(){this.aborted=!1}}}),o=new Set,i=(e,t)=>{const r="LRU_CACHE_OPTION_"+e;c(r)&&l(r,e+" option","options."+t,f)},n=(e,t)=>{const r="LRU_CACHE_METHOD_"+e;if(c(r)){const{prototype:s}=f,{get:o}=Object.getOwnPropertyDescriptor(s,e);l(r,e+" method",`cache.${t}()`,o)}},a=(...e)=>{"object"==typeof process&&process&&"function"==typeof process.emitWarning?process.emitWarning(...e):console.error(...e)},c=e=>!o.has(e),l=(e,t,r,s)=>{o.add(e),a(`The ${t} is deprecated. Please use ${r} instead.`,"DeprecationWarning",e,s)},u=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),p=e=>u(e)?e>256?e>65536?e>4294967296?e>Number.MAX_SAFE_INTEGER?null:d:Uint32Array:Uint16Array:Uint8Array:null;class d extends Array{constructor(e){super(e),this.fill(0)}}class h{constructor(e){if(0===e)return[];const t=p(e);this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}}class f{constructor(e={}){const{max:t=0,ttl:r,ttlResolution:s=1,ttlAutopurge:n,updateAgeOnGet:l,updateAgeOnHas:d,allowStale:m,dispose:g,disposeAfter:v,noDisposeOnSet:y,noUpdateTTL:x,maxSize:w=0,sizeCalculation:b,fetchMethod:E}=e,{length:S,maxAge:O,stale:$}=e instanceof f?{}:e;if(0!==t&&!u(t))throw new TypeError("max option must be a nonnegative integer");const _=t?p(t):Array;if(!_)throw Error("invalid max value: "+t);if(this.max=t,this.maxSize=w,this.sizeCalculation=b||S,this.sizeCalculation){if(!this.maxSize)throw new TypeError("cannot set sizeCalculation without setting maxSize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(this.fetchMethod=E||null,this.fetchMethod&&"function"!=typeof this.fetchMethod)throw new TypeError("fetchMethod must be a function if specified");if(this.keyMap=new Map,this.keyList=Array(t).fill(null),this.valList=Array(t).fill(null),this.next=new _(t),this.prev=new _(t),this.head=0,this.tail=0,this.free=new h(t),this.initialFill=1,this.size=0,"function"==typeof g&&(this.dispose=g),"function"==typeof v?(this.disposeAfter=v,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!y,this.noUpdateTTL=!!x,0!==this.maxSize){if(!u(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!m||!!$,this.updateAgeOnGet=!!l,this.updateAgeOnHas=!!d,this.ttlResolution=u(s)||0===s?s:1,this.ttlAutopurge=!!n,this.ttl=r||O||0,this.ttl){if(!u(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.initializeTTLTracking()}if(0===this.max&&0===this.ttl&&0===this.maxSize)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.max&&!this.maxSize){const e="LRU_CACHE_UNBOUNDED";c(e)&&(o.add(e),a("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",e,f))}$&&i("stale","allowStale"),O&&i("maxAge","ttl"),S&&i("length","sizeCalculation")}getRemainingTTL(e){return this.has(e,{updateAgeOnHas:!1})?1/0:0}initializeTTLTracking(){this.ttls=new d(this.max),this.starts=new d(this.max),this.setItemTTL=(e,t)=>{if(this.starts[e]=0!==t?r.now():0,this.ttls[e]=t,0!==t&&this.ttlAutopurge){const r=setTimeout((()=>{this.isStale(e)&&this.delete(this.keyList[e])}),t+1);r.unref&&r.unref()}},this.updateItemAge=e=>{this.starts[e]=0!==this.ttls[e]?r.now():0};let e=0;const t=()=>{const t=r.now();if(this.ttlResolution>0){e=t;const r=setTimeout((()=>e=0),this.ttlResolution);r.unref&&r.unref()}return t};this.getRemainingTTL=r=>{const s=this.keyMap.get(r);return void 0===s?0:0===this.ttls[s]||0===this.starts[s]?1/0:this.starts[s]+this.ttls[s]-(e||t())},this.isStale=r=>0!==this.ttls[r]&&0!==this.starts[r]&&(e||t())-this.starts[r]>this.ttls[r]}updateItemAge(e){}setItemTTL(e,t){}isStale(e){return!1}initializeSizeTracking(){this.calculatedSize=0,this.sizes=new d(this.max),this.removeItemSize=e=>this.calculatedSize-=this.sizes[e],this.requireSize=(e,t,r,s)=>{if(!u(r)){if(!s)throw new TypeError("invalid size value (must be positive integer)");if("function"!=typeof s)throw new TypeError("sizeCalculation must be a function");if(r=s(t,e),!u(r))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return r},this.addItemSize=(e,t,r,s)=>{this.sizes[e]=s;const o=this.maxSize-this.sizes[e];for(;this.calculatedSize>o;)this.evict(!0);this.calculatedSize+=this.sizes[e]},this.delete=e=>{if(0!==this.size){const t=this.keyMap.get(e);void 0!==t&&(this.calculatedSize-=this.sizes[t])}return f.prototype.delete.call(this,e)}}removeItemSize(e){}addItemSize(e,t,r,s){}requireSize(e,t,r,s){if(r||s)throw new TypeError("cannot set size without setting maxSize on cache")}*indexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.tail;this.isValidIndex(t)&&(!e&&this.isStale(t)||(yield t),t!==this.head);)t=this.prev[t]}*rindexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.head;this.isValidIndex(t)&&(!e&&this.isStale(t)||(yield t),t!==this.tail);)t=this.next[t]}isValidIndex(e){return this.keyMap.get(this.keyList[e])===e}*entries(){for(const e of this.indexes())yield[this.keyList[e],this.valList[e]]}*rentries(){for(const e of this.rindexes())yield[this.keyList[e],this.valList[e]]}*keys(){for(const e of this.indexes())yield this.keyList[e]}*rkeys(){for(const e of this.rindexes())yield this.keyList[e]}*values(){for(const e of this.indexes())yield this.valList[e]}*rvalues(){for(const e of this.rindexes())yield this.valList[e]}[Symbol.iterator](){return this.entries()}find(e,t={}){for(const r of this.indexes())if(e(this.valList[r],this.keyList[r],this))return this.get(this.keyList[r],t)}forEach(e,t=this){for(const r of this.indexes())e.call(t,this.valList[r],this.keyList[r],this)}rforEach(e,t=this){for(const r of this.rindexes())e.call(t,this.valList[r],this.keyList[r],this)}get prune(){return n("prune","purgeStale"),this.purgeStale}purgeStale(){let e=!1;for(const t of this.rindexes({allowStale:!0}))this.isStale(t)&&(this.delete(this.keyList[t]),e=!0);return e}dump(){const e=[];for(const t of this.indexes()){const r=this.keyList[t],s={value:this.valList[t]};this.ttls&&(s.ttl=this.ttls[t]),this.sizes&&(s.size=this.sizes[t]),e.unshift([r,s])}return e}load(e){this.clear();for(const[t,r]of e)this.set(t,r.value,r)}dispose(e,t,r){}set(e,t,{ttl:r=this.ttl,noDisposeOnSet:s=this.noDisposeOnSet,size:o=0,sizeCalculation:i=this.sizeCalculation,noUpdateTTL:n=this.noUpdateTTL}={}){o=this.requireSize(e,t,o,i);let a=0===this.size?void 0:this.keyMap.get(e);if(void 0===a)a=this.newIndex(),this.keyList[a]=e,this.valList[a]=t,this.keyMap.set(e,a),this.next[this.tail]=a,this.prev[a]=this.tail,this.tail=a,this.size++,this.addItemSize(a,t,e,o),n=!1;else{const r=this.valList[a];t!==r&&(this.isBackgroundFetch(r)?r.__abortController.abort():s||(this.dispose(r,e,"set"),this.disposeAfter&&this.disposed.push([r,e,"set"])),this.removeItemSize(a),this.valList[a]=t,this.addItemSize(a,t,e,o)),this.moveToTail(a)}if(0===r||0!==this.ttl||this.ttls||this.initializeTTLTracking(),n||this.setItemTTL(a,r),this.disposeAfter)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return this}newIndex(){return 0===this.size?this.tail:this.size===this.max&&0!==this.max?this.evict(!1):0!==this.free.length?this.free.pop():this.initialFill++}pop(){if(this.size){const e=this.valList[this.head];return this.evict(!0),e}}evict(e){const t=this.head,r=this.keyList[t],s=this.valList[t];return this.isBackgroundFetch(s)?s.__abortController.abort():(this.dispose(s,r,"evict"),this.disposeAfter&&this.disposed.push([s,r,"evict"])),this.removeItemSize(t),e&&(this.keyList[t]=null,this.valList[t]=null,this.free.push(t)),this.head=this.next[t],this.keyMap.delete(r),this.size--,t}has(e,{updateAgeOnHas:t=this.updateAgeOnHas}={}){const r=this.keyMap.get(e);return void 0!==r&&!this.isStale(r)&&(t&&this.updateItemAge(r),!0)}peek(e,{allowStale:t=this.allowStale}={}){const r=this.keyMap.get(e);if(void 0!==r&&(t||!this.isStale(r)))return this.valList[r]}backgroundFetch(e,t,r){const o=void 0===t?void 0:this.valList[t];if(this.isBackgroundFetch(o))return o;const i=new s,n={signal:i.signal,options:r},a=Promise.resolve(this.fetchMethod(e,o,n)).then((t=>(i.signal.aborted||this.set(e,t,n.options),t)));return a.__abortController=i,a.__staleWhileFetching=o,void 0===t?(this.set(e,a,n.options),t=this.keyMap.get(e)):this.valList[t]=a,a}isBackgroundFetch(e){return e&&"object"==typeof e&&"function"==typeof e.then&&{}.hasOwnProperty.call(e,"__staleWhileFetching")}async fetch(e,{allowStale:t=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,ttl:s=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:i=0,sizeCalculation:n=this.sizeCalculation,noUpdateTTL:a=this.noUpdateTTL}={}){if(!this.fetchMethod)return this.get(e,{allowStale:t,updateAgeOnGet:r});const c={allowStale:t,updateAgeOnGet:r,ttl:s,noDisposeOnSet:o,size:i,sizeCalculation:n,noUpdateTTL:a};let l=this.keyMap.get(e);if(void 0===l)return this.backgroundFetch(e,l,c);{const s=this.valList[l];if(this.isBackgroundFetch(s))return t&&void 0!==s.__staleWhileFetching?s.__staleWhileFetching:s;if(!this.isStale(l))return this.moveToTail(l),r&&this.updateItemAge(l),s;const o=this.backgroundFetch(e,l,c);return t&&void 0!==o.__staleWhileFetching?o.__staleWhileFetching:o}}get(e,{allowStale:t=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet}={}){const s=this.keyMap.get(e);if(void 0!==s){const o=this.valList[s],i=this.isBackgroundFetch(o);if(this.isStale(s))return i?t?o.__staleWhileFetching:void 0:(this.delete(e),t?o:void 0);if(i)return;return this.moveToTail(s),r&&this.updateItemAge(s),o}}connect(e,t){this.prev[t]=e,this.next[e]=t}moveToTail(e){e!==this.tail&&(e===this.head?this.head=this.next[e]:this.connect(this.prev[e],this.next[e]),this.connect(this.tail,e),this.tail=e)}get del(){return n("del","delete"),this.delete}delete(e){let t=!1;if(0!==this.size){const r=this.keyMap.get(e);if(void 0!==r)if(t=!0,1===this.size)this.clear();else{this.removeItemSize(r);const t=this.valList[r];this.isBackgroundFetch(t)?t.__abortController.abort():(this.dispose(t,e,"delete"),this.disposeAfter&&this.disposed.push([t,e,"delete"])),this.keyMap.delete(e),this.keyList[r]=null,this.valList[r]=null,r===this.tail?this.tail=this.prev[r]:r===this.head?this.head=this.next[r]:(this.next[this.prev[r]]=this.next[r],this.prev[this.next[r]]=this.prev[r]),this.size--,this.free.push(r)}}if(this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return t}clear(){for(const e of this.rindexes({allowStale:!0})){const t=this.valList[e];if(this.isBackgroundFetch(t))t.__abortController.abort();else{const r=this.keyList[e];this.dispose(t,r,"delete"),this.disposeAfter&&this.disposed.push([t,r,"delete"])}}if(this.keyMap.clear(),this.valList.fill(null),this.keyList.fill(null),this.ttls&&(this.ttls.fill(0),this.starts.fill(0)),this.sizes&&this.sizes.fill(0),this.head=0,this.tail=0,this.initialFill=1,this.free.length=0,this.calculatedSize=0,this.size=0,this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift())}get reset(){return n("reset","clear"),this.clear}get length(){return((e,t)=>{const r="LRU_CACHE_PROPERTY_length";if(c(r)){const{prototype:e}=f,{get:t}=Object.getOwnPropertyDescriptor(e,"length");l(r,"length property","cache.size",t)}})(),this.size}}e.exports=f})),Ne.register("c8FZS",((e,t)=>{var r=Ne("hvUff");e.exports=(e,t,s)=>{try{t=new r(t,s)}catch(e){return!1}return t.test(e)}})),Ne.register("2J2hR",((e,t)=>{var r=Ne("hvUff");e.exports=(e,t)=>new r(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))})),Ne.register("lbfMG",((e,t)=>{var r=Ne("7qUJS"),s=Ne("hvUff");e.exports=(e,t,o)=>{let i=null,n=null,a=null;try{a=new s(t,o)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(i&&-1!==n.compare(e)||(i=e,n=new r(i,o)))})),i}})),Ne.register("5wbuE",((e,t)=>{var r=Ne("7qUJS"),s=Ne("hvUff");e.exports=(e,t,o)=>{let i=null,n=null,a=null;try{a=new s(t,o)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(i&&1!==n.compare(e)||(i=e,n=new r(i,o)))})),i}})),Ne.register("hZRNG",((e,t)=>{var r=Ne("7qUJS"),s=Ne("hvUff"),o=Ne("6KPS4");e.exports=(e,t)=>{e=new s(e,t);let i=new r("0.0.0");if(e.test(i))return i;if(i=new r("0.0.0-0"),e.test(i))return i;i=null;for(let t=0;e.set.length>t;++t){let s=null;e.set[t].forEach((e=>{const t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":s&&!o(t,s)||(s=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator)}})),!s||i&&!o(i,s)||(i=s)}return i&&e.test(i)?i:null}})),Ne.register("fqnzG",((e,t)=>{var r=Ne("hvUff");e.exports=(e,t)=>{try{return new r(e,t).range||"*"}catch(e){return null}}})),Ne.register("77bPN",((e,t)=>{var r=Ne("7qUJS"),s=Ne("eR6XK");const{ANY:o}=s;var i=Ne("hvUff"),n=Ne("c8FZS"),a=Ne("6KPS4"),c=Ne("lr5pz"),l=Ne("fwsB7"),u=Ne("5cRW4");e.exports=(e,t,p,d)=>{let h,f,m,g,v;switch(e=new r(e,d),t=new i(t,d),p){case">":h=a,f=l,m=c,g=">",v=">=";break;case"<":h=c,f=u,m=a,g="<",v="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(n(e,t,d))return!1;for(let r=0;t.set.length>r;++r){let i=null,n=null;if(t.set[r].forEach((e=>{e.semver===o&&(e=new s(">=0.0.0")),i=i||e,n=n||e,h(e.semver,i.semver,d)?i=e:m(e.semver,n.semver,d)&&(n=e)})),i.operator===g||i.operator===v)return!1;if((!n.operator||n.operator===g)&&f(e,n.semver))return!1;if(n.operator===v&&m(e,n.semver))return!1}return!0}})),Ne.register("gD8Tz",((e,t)=>{var r=Ne("77bPN");e.exports=(e,t,s)=>r(e,t,">",s)})),Ne.register("bpPww",((e,t)=>{var r=Ne("77bPN");e.exports=(e,t,s)=>r(e,t,"<",s)})),Ne.register("cHIUn",((e,t)=>{var r=Ne("hvUff");e.exports=(e,t,s)=>(e=new r(e,s),t=new r(t,s),e.intersects(t))})),Ne.register("k8aCs",((e,t)=>{var r=Ne("c8FZS"),s=Ne("howpO");e.exports=(e,t,o)=>{const i=[];let n=null,a=null;const c=e.sort(((e,t)=>s(e,t,o)));for(const e of c)r(e,t,o)?(a=e,n||(n=e)):(a&&i.push([n,a]),a=null,n=null);n&&i.push([n,null]);const l=[];for(const[e,t]of i)l.push(e===t?e:t||e!==c[0]?t?e===c[0]?"<="+t:`${e} - ${t}`:">="+e:"*");const u=l.join(" || ");return("string"==typeof t.raw?t.raw:t+"").length>u.length?u:t}})),Ne.register("388OD",((e,t)=>{var r=Ne("hvUff"),s=Ne("eR6XK");const{ANY:o}=s;var i=Ne("c8FZS"),n=Ne("howpO");const a=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===o){if(1===t.length&&t[0].semver===o)return!0;e=r.includePrerelease?[new s(">=0.0.0-0")]:[new s(">=0.0.0")]}if(1===t.length&&t[0].semver===o){if(r.includePrerelease)return!0;t=[new s(">=0.0.0")]}const a=new Set;let u,p,d,h,f,m,g;for(const t of e)">"===t.operator||">="===t.operator?u=c(u,t,r):"<"===t.operator||"<="===t.operator?p=l(p,t,r):a.add(t.semver);if(a.size>1)return null;if(u&&p){if(d=n(u.semver,p.semver,r),d>0)return null;if(0===d&&(">="!==u.operator||"<="!==p.operator))return null}for(const e of a){if(u&&!i(e,u+"",r))return null;if(p&&!i(e,p+"",r))return null;for(const s of t)if(!i(e,s+"",r))return!1;return!0}let v=!(!p||r.includePrerelease||!p.semver.prerelease.length)&&p.semver,y=!(!u||r.includePrerelease||!u.semver.prerelease.length)&&u.semver;v&&1===v.prerelease.length&&"<"===p.operator&&0===v.prerelease[0]&&(v=!1);for(const e of t){if(g=g||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,u)if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),">"===e.operator||">="===e.operator){if(h=c(u,e,r),h===e&&h!==u)return!1}else if(">="===u.operator&&!i(u.semver,e+"",r))return!1;if(p)if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),"<"===e.operator||"<="===e.operator){if(f=l(p,e,r),f===e&&f!==p)return!1}else if("<="===p.operator&&!i(p.semver,e+"",r))return!1;if(!e.operator&&(p||u)&&0!==d)return!1}return!(u&&m&&!p&&0!==d||p&&g&&!u&&0!==d||y||v)},c=(e,t,r)=>{if(!e)return t;const s=n(e.semver,t.semver,r);return s>0?e:0>s||">"===t.operator&&">="===e.operator?t:e},l=(e,t,r)=>{if(!e)return t;const s=n(e.semver,t.semver,r);return 0>s?e:s>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,s={})=>{if(e===t)return!0;e=new r(e,s),t=new r(t,s);let o=!1;e:for(const r of e.set){for(const e of t.set){const t=a(r,e,s);if(o=o||null!==t,t)continue e}if(o)return!1}return!0}})),Ne.register("iFKS7",((e,t)=>{var r=Ne("joDHm"),s=Ne("inTPA");e.exports=(e,t,o)=>{var i=t&&o||0;"string"==typeof e&&(t="binary"===e?Array(16):null,e=null);var n=(e=e||{}).random||(e.rng||r)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t)for(var a=0;16>a;++a)t[i+a]=n[a];return t||s(n)}})),Ne.register("joDHm",((e,t)=>{e.exports=()=>$e.randomBytes(16)})),Ne.register("inTPA",((e,t)=>{for(var r=[],s=0;256>s;++s)r[s]=(s+256).toString(16).substr(1);e.exports=(e,t)=>{var s=t||0;return""+r[e[s++]]+r[e[s++]]+r[e[s++]]+r[e[s++]]+"-"+r[e[s++]]+r[e[s++]]+"-"+r[e[s++]]+r[e[s++]]+"-"+r[e[s++]]+r[e[s++]]+"-"+r[e[s++]]+r[e[s++]]+r[e[s++]]+r[e[s++]]+r[e[s++]]+r[e[s++]]}})),Ne.register("ca0ts",(function(e,t){"use strict";function r(e,t,r){return n(this,void 0,void 0,(function*(){const s=a.argStringToArray(e);if(0===s.length)throw Error("Parameter 'commandLine' cannot be null or empty.");const o=s[0];return t=s.slice(1).concat(t||[]),new a.ToolRunner(o,t,r).exec()}))}var s=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,s)=>{void 0===s&&(s=r),Object.defineProperty(e,s,{enumerable:!0,get(){return t[r]}})}:(e,t,r,s)=>{void 0===s&&(s=r),e[s]=t[r]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),i=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&s(t,e,r);return o(t,e),t}),n=e.exports&&e.exports.__awaiter||((e,t,r,s)=>new(r||(r=Promise))(((o,i)=>{function n(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(n,a)}c((s=s.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getExecOutput=e.exports.exec=void 0;const a=i(Ne("e0fPv"));e.exports.exec=r,e.exports.getExecOutput=function(e,t,s){var o,i;return n(this,void 0,void 0,(function*(){let n="",a="";const c=new _e.StringDecoder("utf8"),l=new _e.StringDecoder("utf8"),u=null===(o=null==s?void 0:s.listeners)||void 0===o?void 0:o.stdout,p=null===(i=null==s?void 0:s.listeners)||void 0===i?void 0:i.stderr,d=Object.assign(Object.assign({},null==s?void 0:s.listeners),{stdout(e){n+=c.write(e),u&&u(e)},stderr(e){a+=l.write(e),p&&p(e)}}),h=yield r(e,t,Object.assign(Object.assign({},s),{listeners:d}));return n+=c.end(),a+=l.end(),{exitCode:h,stdout:n,stderr:a}}))}})),Ne.register("e0fPv",(function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,s)=>{void 0===s&&(s=r),Object.defineProperty(e,s,{enumerable:!0,get(){return t[r]}})}:(e,t,r,s)=>{void 0===s&&(s=r),e[s]=t[r]}),s=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),o=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&r(t,e,o);return s(t,e),t}),i=e.exports&&e.exports.__awaiter||((e,t,r,s)=>new(r||(r=Promise))(((o,i)=>{function n(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(n,a)}c((s=s.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.argStringToArray=e.exports.ToolRunner=void 0;const n=o(fe),a=o(we),c=o(Oe),l=o(me),u=o(Ne("fvrnx")),p=o(Ne("2GOko")),d="win32"===process.platform;e.exports.ToolRunner=class extends a.EventEmitter{constructor(e,t,r){if(super(),!e)throw Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=t||[],this.options=r||{}}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e)}_getCommandString(e,t){const r=this._getSpawnFileName(),s=this._getSpawnArgs(e);let o=t?"":"[command]";if(d)if(this._isCmdFile()){o+=r;for(const e of s)o+=" "+e}else if(e.windowsVerbatimArguments){o+=`"${r}"`;for(const e of s)o+=" "+e}else{o+=this._windowsQuoteCmdArg(r);for(const e of s)o+=" "+this._windowsQuoteCmdArg(e)}else{o+=r;for(const e of s)o+=" "+e}return o}_processLineBuffer(e,t,r){try{let s=t+""+e,o=s.indexOf(n.EOL);for(;o>-1;)r(s.substring(0,o)),s=s.substring(o+n.EOL.length),o=s.indexOf(n.EOL);return s}catch(e){return this._debug("error processing line. Failed with error "+e),""}}_getSpawnFileName(){return d&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(e){if(d&&this._isCmdFile()){let t='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath);for(const r of this.args)t+=" ",t+=e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r);return t+='"',[t]}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile())return this._uvQuoteCmdArg(e);if(!e)return'""';const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let r=!1;for(const s of e)if(t.some((e=>e===s))){r=!0;break}if(!r)return e;let s='"',o=!0;for(let t=e.length;t>0;t--)s+=e[t-1],o&&"\\"===e[t-1]?s+="\\":'"'===e[t-1]?(o=!0,s+='"'):o=!1;return s+='"',s.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let t='"',r=!0;for(let s=e.length;s>0;s--)t+=e[s-1],r&&"\\"===e[s-1]?t+="\\":'"'===e[s-1]?(r=!0,t+="\\"):r=!1;return t+='"',t.split("").reverse().join("")}_cloneExecOptions(e){const t={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t}_getSpawnOptions(e,t){const r={};return r.cwd=(e=e||{}).cwd,r.env=e.env,r.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(r.argv0=`"${t}"`),r}exec(){return i(this,void 0,void 0,(function*(){return!p.isRooted(this.toolPath)&&(this.toolPath.includes("/")||d&&this.toolPath.includes("\\"))&&(this.toolPath=l.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield u.which(this.toolPath,!0),new Promise(((e,t)=>i(this,void 0,void 0,(function*(){this._debug("exec tool: "+this.toolPath),this._debug("arguments:");for(const e of this.args)this._debug(" "+e);const r=this._cloneExecOptions(this.options);!r.silent&&r.outStream&&r.outStream.write(this._getCommandString(r)+n.EOL);const s=new h(r,this.toolPath);if(s.on("debug",(e=>{this._debug(e)})),this.options.cwd&&!(yield p.exists(this.options.cwd)))return t(Error(`The cwd: ${this.options.cwd} does not exist!`));const o=this._getSpawnFileName(),i=c.spawn(o,this._getSpawnArgs(r),this._getSpawnOptions(this.options,o));let a="";i.stdout&&i.stdout.on("data",(e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!r.silent&&r.outStream&&r.outStream.write(e),a=this._processLineBuffer(e,a,(e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e)}))}));let l="";if(i.stderr&&i.stderr.on("data",(e=>{s.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!r.silent&&r.errStream&&r.outStream&&(r.failOnStdErr?r.errStream:r.outStream).write(e),l=this._processLineBuffer(e,l,(e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e)}))})),i.on("error",(e=>{s.processError=e.message,s.processExited=!0,s.processClosed=!0,s.CheckComplete()})),i.on("exit",(e=>{s.processExitCode=e,s.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),s.CheckComplete()})),i.on("close",(e=>{s.processExitCode=e,s.processExited=!0,s.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),s.CheckComplete()})),s.on("done",((r,s)=>{a.length>0&&this.emit("stdline",a),l.length>0&&this.emit("errline",l),i.removeAllListeners(),r?t(r):e(s)})),this.options.input){if(!i.stdin)throw Error("child process missing stdin");i.stdin.end(this.options.input)}}))))}))}},e.exports.argStringToArray=e=>{function t(e){o&&'"'!==e&&(i+="\\"),i+=e,o=!1}const r=[];let s=!1,o=!1,i="";for(let n=0;e.length>n;n++){const a=e.charAt(n);'"'!==a?"\\"===a&&o?t(a):"\\"===a&&s?o=!0:" "!==a||s?t(a):i.length>0&&(r.push(i),i=""):o?t(a):s=!s}return i.length>0&&r.push(i.trim()),r};class h extends a.EventEmitter{constructor(e,t){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!t)throw Error("toolPath must not be empty");this.options=e,this.toolPath=t,e.delay&&(this.delay=e.delay)}CheckComplete(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=Te.setTimeout(h.HandleTimeout,this.delay,this)))}_debug(e){this.emit("debug",e)}_setResult(){let e;this.processExited&&(this.processError?e=Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):0===this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)):e=Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)}static HandleTimeout(e){e.done||(!e.processClosed&&e.processExited&&e._debug(`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`),e._setResult())}}})),Ne.register("9g1b2",(function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,s)=>{void 0===s&&(s=r),Object.defineProperty(e,s,{enumerable:!0,get(){return t[r]}})}:(e,t,r,s)=>{void 0===s&&(s=r),e[s]=t[r]}),s=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),o=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&r(t,e,o);return s(t,e),t}),i=e.exports&&e.exports.__awaiter||((e,t,r,s)=>new(r||(r=Promise))(((o,i)=>{function n(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(n,a)}c((s=s.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.RetryHelper=void 0;const n=o(Ne("9bqVn"));e.exports.RetryHelper=class{constructor(e,t,r){if(1>e)throw Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(t),this.maxSeconds=Math.floor(r),this.minSeconds>this.maxSeconds)throw Error("min seconds should be less than or equal to max seconds")}execute(e,t){return i(this,void 0,void 0,(function*(){let r=1;for(;this.maxAttempts>r;){try{return yield e()}catch(e){if(t&&!t(e))throw e;n.info(e.message)}const s=this.getSleepAmount();n.info(`Waiting ${s} seconds before trying again`),yield this.sleep(s),r++}return yield e()}))}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return i(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,1e3*e)))}))}}})),Ne.register("d0eKP",((e,t)=>{e.exports=Promise.resolve(require("./actions_python.a1cdadc4.js")).then((()=>Ne("apy8x")))})),Ne.register("cReTf",((e,t)=>{function r(e){Array.isArray(e)||(e=[e]);for(const t of e){const{id:e,data:r}=t;c[e]=r}}function s(e,t,r){const s=(e=>{const t=c[e.locale];let r=e.unitTypeLookupOrder.slice();r.unshift(e.unitType),r=Array.from(new Set(r));let s=null;if(r.some((e=>{if(void 0!==t[e])return s=t[e],!0})),null===s)throw Error("Can not find any unit type data for locale: "+e.locale);return s})(r);return o.pluralize(r.locale,t,s[e]).replace("{0}",t)}var o=Ne("5FRs7"),i=Ne("3Zbea");const n=[["years",290304e5],["months",24192e5],["weeks",6048e5],["days",864e5],["hours",36e5],["minutes",6e4],["seconds",1e3]],a={locale:"en",span:2,delimiter:", ",unitType:"long",unitTypeLookupOrder:["long","short","narrow"],autoloadLocales:!0},c={};e.exports={create(e){return e=Object.assign({},a,e||{}),{format(t,o,a){return((e,t,o)=>{if(((e,t)=>{const{autoload:s}=t;if(!c[e]){if(!i||!s)throw Error(`Missing locale: ${e}, you must load it manually before using it`);(e=>{try{r(require(`../locales/${e}.js`))}catch(t){throw Error(`Failed to load locale: ${e} from ../locales/${e}.js. If using a bundled time-delta, set 'autoloadLocales: false' in the config: ${t}`)}})(e)}})(o.locale,{autoload:o.autoloadLocales}),!e)throw Error("Missing first date argument");if(!t)throw Error("Missing second date argument");const a=((e,t)=>{let r=t-e;const s=[];return n.some((e=>{const t=e[0],o=e[1],i=Math.floor(r/o);if(r-=i*o,s.push([t,i]),0>=r)return!0})),s})(e,t),l=[];for(const e of a){const[t,r]=e;if(r>0&&l.push(s(t,r,o)),l.length>=o.span)break}return l.join(o.delimiter)})(t,o,a=Object.assign({},e,a||{}))}}},addLocale:r,defaultConfig:a}})),Ne.register("5FRs7",((e,t)=>{e.exports=Ne("j5MHF")})),Ne.register("j5MHF",(function(e,t){(function(){function t(e,t,o){if(r(e),"object"!=typeof o)throw Error("List of variants should be specified as an object");var i=s[e](t);return void 0!==o[i]?o[i]:null}function r(e){(e=>void 0!==s[e])(e)||(e=>{try{require(__dirname+"/../locales/"+e+".js")}catch(t){throw Error("Failed to load the following locale: "+e)}})(e)}var s={},o={create(e){return r(e),{pluralize(r,s){return t(e,r,s)}}},addLocale(e,t){s[e]=t},pluralize:t};void 0!==e.exports?e.exports=o:this.numerous=o}).call(e.exports)})),Ne.register("3Zbea",((e,t)=>{"use strict";e.exports=!("undefined"==typeof process||!process.versions||!process.versions.node)})),e(module.exports,"main",(()=>ue)),e(module.exports,"getCompilerInfo",(()=>pe));var ke=Ne("9bqVn"),Le={};const De="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,je=De?";":":";var Me,Fe={};Me="win32"===process.platform||Ae.TESTING_WINDOWS?Ne("ftrAD"):Ne("9yF3I"),Fe=r,r.sync=(e,t)=>{try{return Me.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e}};const Ue=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),Ge=(e,t)=>{const r=t.colon||je,s=e.match(/\//)||De&&e.match(/\\/)?[""]:[...De?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],o=De?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",i=De?o.split(r):[""];return De&&-1!==e.indexOf(".")&&""!==i[0]&&i.unshift(""),{pathEnv:s,pathExt:i,pathExtExe:o}},He=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});const{pathEnv:s,pathExt:o,pathExtExe:i}=Ge(e,t),n=[],a=r=>new Promise(((o,i)=>{if(r===s.length)return t.all&&n.length?o(n):i(Ue(e));const a=s[r],l=/^".*"$/.test(a)?a.slice(1,-1):a,u=me.join(l,e),p=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u;o(c(p,r,0))})),c=(e,r,s)=>new Promise(((l,u)=>{if(s===o.length)return l(a(r+1));const p=o[s];Fe(e+p,{pathExt:i},((o,i)=>{if(!o&&i){if(!t.all)return l(e+p);n.push(e+p)}return l(c(e,r,s+1))}))}));return r?a(0).then((e=>r(null,e)),r):a(0)};let ze;Le=He,He.sync=(e,t)=>{t=t||{};const{pathEnv:r,pathExt:s,pathExtExe:o}=Ge(e,t),i=[];for(let n=0;r.length>n;n++){const a=r[n],c=/^".*"$/.test(a)?a.slice(1,-1):a,l=me.join(c,e),u=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+l:l;for(let e=0;s.length>e;e++){const r=u+s[e];try{if(Fe.sync(r,{pathExt:o})){if(!t.all)return r;i.push(r)}}catch(e){}}}if(t.all&&i.length)return i;if(t.nothrow)return null;throw Ue(e)};var qe,Be={},Ve={},Xe={},We={};const Ye=(e={})=>{const t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find((e=>"PATH"===e.toUpperCase()))||"Path"};var Je,Ke;(We=Ye).default=Ye,qe=e=>o(e)||o(e,!0),Je=e=>e.replace(/([()\][%!^"`<>&|;, *?])/g,"^$1"),Ke=(e,t)=>(e=(e=`"${e=(e=(e=""+e).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(/([()\][%!^"`<>&|;, *?])/g,"^$1"),t&&(e=e.replace(/([()\][%!^"`<>&|;, *?])/g,"^$1")),e);var Ze,Qe;Ze=(e="")=>{const t=e.match(/^#!(.*)/);if(!t)return null;const[r,s]=t[0].replace(/#! ?/,"").split(" "),o=r.split("/").pop();return"env"===o?s:s?`${o} ${s}`:o},Qe=e=>{const t=Buffer.alloc(150);let r;try{r=ge.openSync(e,"r"),ge.readSync(r,t,0,150,0),ge.closeSync(r)}catch(e){}return Ze(""+t)};const et="win32"===process.platform,tt=/\.(?:com|exe)$/i,rt=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;Xe=(e,t,r)=>{t&&!Array.isArray(t)&&(r=t,t=null);const s={command:e,args:t=t?t.slice(0):[],options:r=Object.assign({},r),file:void 0,original:{command:e,args:t}};return r.shell?s:(e=>{if(!et)return e;const t=(e=>{e.file=qe(e);const t=e.file&&Qe(e.file);return t?(e.args.unshift(e.file),e.command=t,qe(e)):e.file})(e),r=!tt.test(t);if(e.options.forceShell||r){const r=rt.test(t);e.command=me.normalize(e.command),e.command=Je(e.command),e.args=e.args.map((e=>Ke(e,r)));const s=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${s}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e})(s)};var st={};const ot="win32"===process.platform;var it;st={hookChildProcess(e,t){if(!ot)return;const r=e.emit;e.emit=function(s,o){if("exit"===s){const s=n(o,t);if(s)return r.call(e,"error",s)}return r.apply(e,arguments)}},verifyENOENT:n,verifyENOENTSync(e,t){return ot&&1===e&&!t.file?i(t.original,"spawnSync"):null},notFoundError:i},(Ve=a).spawn=a,Ve.sync=(e,t,r)=>{const s=Xe(e,t,r),o=Oe.spawnSync(s.command,s.args,s.options);return o.error=o.error||st.verifyENOENTSync(o.status,s),o},Ve._parse=Xe,Ve._enoent=st,it=e=>{const t="string"==typeof e?"\r":13;return e[e.length-1]===("string"==typeof e?"\n":10)&&(e=e.slice(0,e.length-1)),e[e.length-1]===t&&(e=e.slice(0,e.length-1)),e};var nt={};const at=e=>{let t;e={cwd:process.cwd(),path:process.env[We()],execPath:process.execPath,...e};let r=me.resolve(e.cwd);const s=[];for(;t!==r;)s.push(me.join(r,"node_modules/.bin")),t=r,r=me.resolve(r,"..");const o=me.resolve(e.cwd,e.execPath,"..");return s.push(o),s.concat(e.path).join(me.delimiter)};(nt=at).default=at,nt.env=e=>{const t={...(e={env:process.env,...e}).env},r=We({env:t});return e.path=t[r],t[r]=nt(e),t};var ct={},lt={};const ut=(e,t)=>{for(const r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};(lt=ut).default=ut;const pt=new WeakMap,dt=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let r,s=0;const o=e.displayName||e.name||"<anonymous>",i=function(...n){if(pt.set(i,++s),1===s)r=e.apply(this,n),e=null;else if(!0===t.throw)throw Error(`Function \`${o}\` can only be called once`);return r};return lt(i,e),pt.set(i,s),i};(ct=dt).default=dt,ct.callCount=e=>{if(!pt.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return pt.get(e)};var ht,ft={};Object.defineProperty(ft,"__esModule",{value:!0}),ft.signalsByNumber=ft.signalsByName=void 0;var mt={};Object.defineProperty(mt,"__esModule",{value:!0}),mt.getSignals=void 0;var gt={};Object.defineProperty(gt,"__esModule",{value:!0}),gt.SIGNALS=void 0,gt.SIGNALS=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];var vt={};Object.defineProperty(vt,"__esModule",{value:!0}),vt.SIGRTMAX=vt.getRealtimeSignals=void 0,vt.getRealtimeSignals=()=>Array.from({length:wt-xt+1},yt);const yt=(e,t)=>({name:"SIGRT"+(t+1),number:xt+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),xt=34,wt=64;vt.SIGRTMAX=wt,mt.getSignals=()=>{const e=(0,vt.getRealtimeSignals)();return[...gt.SIGNALS,...e].map(bt)};const bt=({name:e,number:t,description:r,action:s,forced:o=!1,standard:i})=>{const{signals:{[e]:n}}=fe.constants,a=void 0!==n;return{name:e,number:a?n:t,description:r,supported:a,action:s,forced:o,standard:i}},Et=(0,mt.getSignals)().reduce(((e,{name:t,number:r,description:s,supported:o,action:i,forced:n,standard:a})=>({...e,[t]:{name:t,number:r,description:s,supported:o,action:i,forced:n,standard:a}})),{});ft.signalsByName=Et;const St=(()=>{const e=(0,mt.getSignals)(),t=Array.from({length:vt.SIGRTMAX+1},((t,r)=>((e,t)=>{const r=((e,t)=>{const r=t.find((({name:t})=>fe.constants.signals[t]===e));return void 0!==r?r:t.find((t=>t.number===e))})(e,t);if(void 0===r)return{};const{name:s,description:o,supported:i,action:n,forced:a,standard:c}=r;return{[e]:{name:s,number:e,description:o,supported:i,action:n,forced:a,standard:c}}})(r,e)));return Object.assign({},...t)})();ft.signalsByNumber=St;var Ot=ft.signalsByName;ht=({stdout:e,stderr:t,all:r,error:s,signal:o,exitCode:i,command:n,escapedCommand:a,timedOut:c,isCanceled:l,killed:u,parsed:{options:{timeout:p}}})=>{const d=void 0===(o=null===o?void 0:o)?void 0:Ot[o].description,h=(({timedOut:e,timeout:t,errorCode:r,signal:s,signalDescription:o,exitCode:i,isCanceled:n})=>e?`timed out after ${t} milliseconds`:n?"was canceled":void 0!==r?"failed with "+r:void 0!==s?`was killed with ${s} (${o})`:void 0!==i?"failed with exit code "+i:"failed")({timedOut:c,timeout:p,errorCode:s&&s.code,signal:o,signalDescription:d,exitCode:i=null===i?void 0:i,isCanceled:l}),f=`Command ${h}: ${n}`,m="[object Error]"==={}.toString.call(s),g=m?`${f}\n${s.message}`:f,v=[g,t,e].filter(Boolean).join("\n");return m?(s.originalMessage=s.message,s.message=v):s=Error(v),s.shortMessage=g,s.command=n,s.escapedCommand=a,s.exitCode=i,s.signal=o,s.signalDescription=d,s.stdout=e,s.stderr=t,void 0!==r&&(s.all=r),"bufferedData"in s&&delete s.bufferedData,s.failed=!0,s.timedOut=!!c,s.isCanceled=l,s.killed=u&&!c,s};var $t={};const _t=["stdin","stdout","stderr"],Tt=e=>{if(!e)return;const{stdio:t}=e;if(void 0===t)return _t.map((t=>e[t]));if((e=>_t.some((t=>void 0!==e[t])))(e))throw Error("It's not possible to provide `stdio` in combination with one of "+_t.map((e=>`\`${e}\``)).join(", "));if("string"==typeof t)return t;if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);return Array.from({length:Math.max(t.length,_t.length)},((e,r)=>t[r]))};($t=Tt).node=e=>{const t=Tt(e);return"ipc"===t?"ipc":void 0===t||"string"==typeof t?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"]};var Ct,It={},At=Ae.process;const Rt=e=>e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on;if(Rt(At)){var Pt,Nt=be,kt=Ne("bJALw"),Lt=/^win/i.test(At.platform),Dt=we;"function"!=typeof Dt&&(Dt=Dt.EventEmitter),At.__signal_exit_emitter__?Pt=At.__signal_exit_emitter__:((Pt=At.__signal_exit_emitter__=new Dt).count=0,Pt.emitted={}),Pt.infinite||(Pt.setMaxListeners(1/0),Pt.infinite=!0),It=(e,t)=>{if(!Rt(Ae.process))return()=>{};Nt.equal(typeof e,"function","a callback must be provided for exit handler"),!1===Ut&&Gt();var r="exit";return t&&t.alwaysLast&&(r="afterexit"),Pt.on(r,e),()=>{Pt.removeListener(r,e),0===Pt.listeners("exit").length&&0===Pt.listeners("afterexit").length&&jt()}};var jt=()=>{Ut&&Rt(Ae.process)&&(Ut=!1,kt.forEach((e=>{try{At.removeListener(e,Ft[e])}catch(e){}})),At.emit=qt,At.reallyExit=Ht,Pt.count-=1)};It.unload=jt;var Mt=(e,t,r)=>{Pt.emitted[e]||(Pt.emitted[e]=!0,Pt.emit(e,t,r))},Ft={};kt.forEach((e=>{Ft[e]=()=>{Rt(Ae.process)&&At.listeners(e).length===Pt.count&&(jt(),Mt("exit",null,e),Mt("afterexit",null,e),Lt&&"SIGHUP"===e&&(e="SIGINT"),At.kill(At.pid,e))}})),It.signals=()=>kt;var Ut=!1,Gt=()=>{!Ut&&Rt(Ae.process)&&(Ut=!0,Pt.count+=1,kt=kt.filter((e=>{try{return At.on(e,Ft[e]),!0}catch(e){return!1}})),At.emit=Bt,At.reallyExit=zt)};It.load=Gt;var Ht=At.reallyExit,zt=e=>{Rt(Ae.process)&&(At.exitCode=e||0,Mt("exit",At.exitCode,null),Mt("afterexit",At.exitCode,null),Ht.call(At,At.exitCode))},qt=At.emit,Bt=function(e,t){if("exit"===e&&Rt(Ae.process)){void 0!==t&&(At.exitCode=t);var r=qt.apply(this,arguments);return Mt("exit",At.exitCode,null),Mt("afterexit",At.exitCode,null),r}return qt.apply(this,arguments)}}else It=()=>()=>{};const Vt=e=>e===fe.constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase();var Xt,Wt=(Ct={spawnedKill(e,t="SIGTERM",r={}){const s=e(t);return((e,t,r,s)=>{if(!((e,{forceKillAfterTimeout:t},r)=>Vt(e)&&!1!==t&&r)(t,r,s))return;const o=(({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||0>e)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e})(r),i=setTimeout((()=>{e("SIGKILL")}),o);i.unref&&i.unref()})(e,t,r,s),s},spawnedCancel(e,t){e.kill()&&(t.isCanceled=!0)},setupTimeout(e,{timeout:t,killSignal:r="SIGTERM"},s){if(0===t||void 0===t)return s;let o;const i=new Promise(((s,i)=>{o=setTimeout((()=>{((e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}))})(e,r,i)}),t)})),n=s.finally((()=>{clearTimeout(o)}));return Promise.race([i,n])},validateTimeout({timeout:e}){if(void 0!==e&&(!Number.isFinite(e)||0>e))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},async setExitHandler(e,{cleanup:t,detached:r},s){if(!t||r)return s;const o=It((()=>{e.kill()}));return s.finally((()=>{o()}))}}).spawnedKill,Yt=Ct.spawnedCancel,Jt=Ct.setupTimeout,Kt=Ct.validateTimeout,Zt=Ct.setExitHandler,Qt={};const er=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;er.writable=e=>er(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,er.readable=e=>er(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,er.duplex=e=>er.writable(e)&&er.readable(e),er.transform=e=>er.duplex(e)&&"function"==typeof e._transform,Qt=er;var tr,rr={},sr=Ce.constants,or=Se.PassThrough;tr=e=>{e={...e};const{array:t}=e;let{encoding:r}=e;const s="buffer"===r;let o=!1;t?o=!(r||s):r=r||"utf8",s&&(r=null);const i=new or({objectMode:o});r&&i.setEncoding(r);let n=0;const a=[];return i.on("data",(e=>{a.push(e),o?n=a.length:n+=e.length})),i.getBufferedValue=()=>t?a:s?Buffer.concat(a,n):a.join(""),i.getBufferedLength=()=>n,i};const ir=(0,Ee.promisify)(Se.pipeline);class nr extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}(rr=c).buffer=(e,t)=>c(e,{...t,encoding:"buffer"}),rr.array=(e,t)=>c(e,{...t,array:!0}),rr.MaxBufferError=nr;var ar,cr=Se.PassThrough;ar=function(){function e(t){return Array.isArray(t)?(t.forEach(e),this):(s.push(t),t.once("end",r.bind(null,t)),t.once("error",o.emit.bind(o,"error")),t.pipe(o,{end:!1}),this)}function t(){return 0==s.length}function r(e){!(s=s.filter((t=>t!==e))).length&&o.readable&&o.end()}var s=[],o=new cr({objectMode:!0});return o.setMaxListeners(0),o.add=e,o.isEmpty=t,o.on("unpipe",r),[].slice.call(arguments).forEach(e),o};const lr=async(e,t)=>{if(e){e.destroy();try{return await t}catch(e){return e.bufferedData}}},ur=(e,{encoding:t,buffer:r,maxBuffer:s})=>{if(e&&r)return t?rr(e,{encoding:t,maxBuffer:s}):rr.buffer(e,{maxBuffer:s})};var pr,dr=(Xt={handleInput(e,t){void 0!==t&&void 0!==e.stdin&&(Qt(t)?t.pipe(e.stdin):e.stdin.end(t))},makeAllStream(e,{all:t}){if(!t||!e.stdout&&!e.stderr)return;const r=ar();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r},async getSpawnedResult({stdout:e,stderr:t,all:r},{encoding:s,buffer:o,maxBuffer:i},n){const a=ur(e,{encoding:s,buffer:o,maxBuffer:i}),c=ur(t,{encoding:s,buffer:o,maxBuffer:i}),l=ur(r,{encoding:s,buffer:o,maxBuffer:2*i});try{return await Promise.all([n,a,c,l])}catch(s){return Promise.all([{error:s,signal:s.signal,timedOut:s.timedOut},lr(e,a),lr(t,c),lr(r,l)])}},validateInputSync({input:e}){if(Qt(e))throw new TypeError("The `input` option cannot be a stream in sync mode")}}).handleInput,hr=Xt.getSpawnedResult,fr=Xt.makeAllStream,mr=Xt.validateInputSync;const gr=(async()=>{})().constructor.prototype,vr=["then","catch","finally"].map((e=>[e,Reflect.getOwnPropertyDescriptor(gr,e)]));var yr,xr=(pr={mergePromise(e,t){for(const[r,s]of vr){const o="function"==typeof t?(...e)=>Reflect.apply(s.value,t(),e):s.value.bind(t);Reflect.defineProperty(e,r,{...s,value:o})}return e},getSpawnedPromise(e){return new Promise(((t,r)=>{e.on("exit",((e,r)=>{t({exitCode:e,signal:r})})),e.on("error",(e=>{r(e)})),e.stdin&&e.stdin.on("error",(e=>{r(e)}))}))}}).mergePromise,wr=pr.getSpawnedPromise;const br=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],Er=/^[\w.-]+$/;var Sr=(yr={joinCommand(e,t){return br(e,t).join(" ")},getEscapedCommand(e,t){return br(e,t).map((e=>(e=>"string"!=typeof e||Er.test(e)?e:`"${e.replace(/"/g,'\\"')}"`)(e))).join(" ")},parseCommand(e){const t=[];for(const r of e.trim().split(/ +/g)){const e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${r}`:t.push(r)}return t}}).joinCommand,Or=yr.parseCommand,$r=yr.getEscapedCommand;const _r=(e,t,r={})=>{const s=Ve._parse(e,t,r);return e=s.command,t=s.args,(r={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(r=s.options).cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...r}).env=(({env:e,extendEnv:t,preferLocal:r,localDir:s,execPath:o})=>{const i=t?{...process.env,...e}:e;return r?nt.env({env:i,cwd:s,execPath:o}):i})(r),r.stdio=$t(r),"win32"===process.platform&&"cmd"===me.basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:s}},Tr=(e,t,r)=>"string"==typeof t||Buffer.isBuffer(t)?e.stripFinalNewline?it(t):t:void 0===r?void 0:"",Cr=(e,t,r)=>{const s=_r(e,t,r),o=Sr(e,t),i=$r(e,t);let n;Kt(s.options);try{n=Oe.spawn(s.file,s.args,s.options)}catch(e){const t=new Oe.ChildProcess,r=Promise.reject(ht({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:s,timedOut:!1,isCanceled:!1,killed:!1}));return xr(t,r)}const a=wr(n),c=Jt(n,s.options,a),l=Zt(n,s.options,c),u={isCanceled:!1};n.kill=Wt.bind(null,n.kill.bind(n)),n.cancel=Yt.bind(null,n,u);const p=ct((async()=>{const[{error:e,exitCode:t,signal:r,timedOut:a},c,p,d]=await hr(n,s.options,l),h=Tr(s.options,c),f=Tr(s.options,p),m=Tr(s.options,d);if(e||0!==t||null!==r){const c=ht({error:e,exitCode:t,signal:r,stdout:h,stderr:f,all:m,command:o,escapedCommand:i,parsed:s,timedOut:a,isCanceled:u.isCanceled,killed:n.killed});if(!s.options.reject)return c;throw c}return{command:o,escapedCommand:i,exitCode:0,stdout:h,stderr:f,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}));return dr(n,s.options.input),n.all=fr(n,s.options),xr(n,p)};let Ir;(Be=Cr).sync=(e,t,r)=>{const s=_r(e,t,r),o=Sr(e,t),i=$r(e,t);let n;mr(s.options);try{n=Oe.spawnSync(s.file,s.args,s.options)}catch(e){throw ht({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:s,timedOut:!1,isCanceled:!1,killed:!1})}const a=Tr(s.options,n.stdout,n.error),c=Tr(s.options,n.stderr,n.error);if(n.error||0!==n.status||null!==n.signal){const e=ht({stdout:a,stderr:c,error:n.error,signal:n.signal,exitCode:n.status,command:o,escapedCommand:i,parsed:s,timedOut:n.error&&"ETIMEDOUT"===n.error.code,isCanceled:!1,killed:null!==n.signal});if(!s.options.reject)return e;throw e}return{command:o,escapedCommand:i,exitCode:0,stdout:a,stderr:c,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},Be.command=(e,t)=>{const[r,...s]=Or(e);return Cr(r,s,t)},Be.commandSync=(e,t)=>{const[r,...s]=Or(e);return Cr.sync(r,s,t)},Be.node=(e,t,r={})=>{t&&!Array.isArray(t)&&"object"==typeof t&&(r=t,t=[]);const s=$t.node(r),o=process.execArgv.filter((e=>!e.startsWith("--inspect"))),{nodePath:i=process.execPath,nodeOptions:n=o}=r;return Cr(i,[...n,e,...Array.isArray(t)?t:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:s,shell:!1})},ke=Ne("9bqVn");var Ar,Rr=Ne("ditiY"),Pr=Ne("di6NI");ke=Ne("9bqVn"),Pr=Ne("di6NI");const Nr=fe.homedir();let kr;Ar=e=>{if("string"!=typeof e)throw new TypeError("Expected a string, got "+typeof e);return Nr?e.replace(/^~(?=$|\/|\\)/,Nr):e},Rr=Ne("ditiY");const Lr=p(".cpprc");let Dr=!1,jr=!1,Mr=!1;ke=Ne("9bqVn");let Fr,Ur=!1;ke=Ne("9bqVn");let Gr=!1;var Hr=Ne("1GQ3N"),zr=Ne("fvrnx");let qr;Rr=Ne("ditiY"),Hr=Ne("1GQ3N"),Hr=Ne("1GQ3N"),ke=Ne("9bqVn"),Pr=Ne("di6NI");let Br=!1;Hr=Ne("1GQ3N");var Vr=Ne("fwsB7"),Xr=Ne("1YYsi"),Wr=Ne("ca0ts"),Yr=(ke=Ne("9bqVn"),Pr=Ne("di6NI"),Rr=Ne("ditiY"),Ne("howpO")),Jr=(Xr=Ne("1YYsi"),Ne("fVzwP"));Wr=Ne("ca0ts");const Kr={llvm:"13.0.0",clangtidy:"13.0.0",clangformat:"13.0.0",ninja:"1.10.2",cmake:"3.23.1",gcovr:"5.0",conan:"1.47.0",meson:"0.61.4",python:"3.8.10",kcov:"40",task:"3.12.0",doxygen:"1.9.1",gcc:"win32"===process.platform?"11.2.0.07112021":"11"};let Zr,Qr,es=!1;Hr=Ne("1GQ3N"),Rr=Ne("ditiY"),Vr=Ne("fwsB7");var ts=Ne("fB2B7");Wr=Ne("ca0ts"),Rr=Ne("ditiY"),ke=Ne("9bqVn"),Rr=Ne("ditiY"),Pr=Ne("di6NI"),ts=Ne("fB2B7"),Xr=Ne("1YYsi"),Rr=Ne("ditiY"),Pr=Ne("di6NI");const rs=(e=>{const t=new Set(e);for(const r of e)t.add(/^\d+/.exec(r)[0]),t.add(/^\d+\.\d+/.exec(r)[0]);return t})(["3.5.0","3.5.1","3.5.2","3.6.0","3.6.1","3.6.2","3.7.0","3.7.1","3.8.0","3.8.1","3.9.0","3.9.1","4.0.0","4.0.1","5.0.0","5.0.1","5.0.2","6.0.0","6.0.1","7.0.0","7.0.1","7.1.0","8.0.0","8.0.1","9.0.0","9.0.1","10.0.0","10.0.1","11.0.0","11.0.1","11.1.0","12.0.0","12.0.1","13.0.0","13.0.1","14.0.0","14.0.1"]),ss=new Set(["3.5.1","3.6.1","3.6.2","3.7.1","3.8.1","3.9.1","6.0.1","7.0.1","7.1.0","8.0.1","11.0.1","11.1.0","12.0.1"]),os=new Map,is={"3.5.0":"-ubuntu-14.04","3.5.1":"","3.5.2":"-ubuntu-14.04","3.6.0":"-ubuntu-14.04","3.6.1":"-ubuntu-14.04","3.6.2":"-ubuntu-14.04","3.7.0":"-ubuntu-14.04","3.7.1":"-ubuntu-14.04","3.8.0":"-ubuntu-16.04","3.8.1":"-ubuntu-16.04","3.9.0":"-ubuntu-16.04","3.9.1":"-ubuntu-16.04","4.0.0":"-ubuntu-16.04","5.0.0":"-ubuntu16.04","5.0.1":"-ubuntu-16.04","5.0.2":"-ubuntu-16.04","6.0.0":"-ubuntu-16.04","6.0.1":"-ubuntu-16.04","7.0.0":"-ubuntu-16.04","7.0.1":"-ubuntu-18.04","7.1.0":"-ubuntu-14.04","8.0.0":"-ubuntu-18.04","9.0.0":"-ubuntu-18.04","9.0.1":"-ubuntu-16.04","10.0.0":"-ubuntu-18.04","10.0.1":"-ubuntu-16.04","11.0.0":"-ubuntu-20.04","11.0.1":"-ubuntu-16.04","11.1.0":"-ubuntu-16.04","12.0.0":"-ubuntu-20.04","12.0.1":"-ubuntu-16.04","13.0.0":"-ubuntu-20.04","13.0.1":"-ubuntu-18.04","14.0.0":"-ubuntu-18.04"},ns=new Set(["10.0.1"]);let as=!1;var cs,ls,us,ps={},ds=ps&&ps.__awaiter||((e,t,r,s)=>new(r||(r=Promise))(((o,i)=>{function n(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(n,a)}c((s=s.apply(e,t||[])).next())}))),hs=ps&&ps.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t});Object.defineProperty(ps,"__esModule",{value:!0});var fs={},ms=fs&&fs.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t});Object.defineProperty(fs,"__esModule",{value:!0});const gs=ms(fe);var vs={};Object.defineProperty(vs,"__esModule",{value:!0}),vs.toCommandValue=e=>null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e),fs.issueCommand=Y,fs.issue=(e,t="")=>{Y(e,{},t)};class ys{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r}toString(){let e="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(const s in this.properties)if(this.properties.hasOwnProperty(s)){const o=this.properties[s];o&&(r?r=!1:e+=",",e+=`${s}=${t=o,vs.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}var t;return e+="::"+(e=>vs.toCommandValue(this.message).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A"))(),e}}var xs={},ws=xs&&xs.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t});Object.defineProperty(xs,"__esModule",{value:!0});const bs=ws(ge),Es=ws(fe);xs.issueCommand=(e,t)=>{const r=process.env["GITHUB_"+e];if(!r)throw Error("Unable to find environment variable for file command "+e);if(!bs.existsSync(r))throw Error("Missing file at path: "+r);bs.appendFileSync(r,`${vs.toCommandValue(t)}${Es.EOL}`,{encoding:"utf8"})};const Ss=hs(fe),Os=hs(me);var $s,_s;(_s=$s=ps.ExitCode||(ps.ExitCode={}))[_s.Success=0]="Success",_s[_s.Failure=1]="Failure",ps.exportVariable=(e,t)=>{const r=vs.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV){const t="_GitHubActionsFileCommandDelimeter_";xs.issueCommand("ENV",`${e}<<${t}${Ss.EOL}${r}${Ss.EOL}${t}`)}else fs.issueCommand("set-env",{name:e},r)},ps.setSecret=e=>{fs.issueCommand("add-mask",{},e)},ps.addPath=e=>{process.env.GITHUB_PATH?xs.issueCommand("PATH",e):fs.issueCommand("add-path",{},e),process.env.PATH=`${e}${Os.delimiter}${process.env.PATH}`},ps.getInput=(e,t)=>{const r=process.env["INPUT_"+e.replace(/ /g,"_").toUpperCase()]||"";if(t&&t.required&&!r)throw Error("Input required and not supplied: "+e);return r.trim()},ps.setOutput=(e,t)=>{fs.issueCommand("set-output",{name:e},t)},ps.setCommandEcho=e=>{fs.issue("echo",e?"on":"off")},ps.setFailed=e=>{process.exitCode=$s.Failure,J(e)},ps.isDebug=()=>"1"===process.env.RUNNER_DEBUG,ps.debug=e=>{fs.issueCommand("debug",{},e)},ps.error=J,ps.warning=e=>{fs.issue("warning",e instanceof Error?""+e:e)},ps.info=e=>{process.stdout.write(e+Ss.EOL)},ps.startGroup=K,ps.endGroup=Z,ps.group=function(e,t){return ds(this,void 0,void 0,(function*(){let r;K(e);try{r=yield t()}finally{Z()}return r}))},ps.saveState=(e,t)=>{fs.issueCommand("save-state",{name:e},t)},ps.getState=e=>process.env["STATE_"+e]||"";const Ts=Ie.env["ProgramFiles(x86)"],Cs=[Ie.env["ProgramFiles(x86)"],Ie.env.ProgramFiles],Is=["Enterprise","Professional","Community"],As=["2022","2019","2017"],Rs={2022:"17.0",2019:"16.0",2017:"15.0",2015:"14.0",2013:"12.0"};cs=Q;const Ps=Ts+"\\Microsoft Visual Studio\\Installer";ls=te,us=(e,t,r,s,o,i)=>{if("win32"!=Ie.platform)return void ps.info("This is not a Windows virtual environment, bye!");Ie.env.PATH+=me.delimiter+Ps;let n={win32:"x86",win64:"x64",x86_64:"x64","x86-64":"x64"};e.toLowerCase()in n&&(e=n[e.toLowerCase()]);var a=[e];"true"==s&&a.push("uwp"),t&&a.push(t),r&&a.push("-vcvars_ver="+r),"true"==o&&a.push("-vcvars_spectre_libs=spectre");const c=`"${te(i)}" ${a.join(" ")}`;ps.debug("vcvars command-line: "+c);const l=(""+Oe.execSync(`set && cls && ${c} && cls && set`,{shell:"cmd"})).split("\f"),u=l[0].split("\r\n"),p=l[1].split("\r\n"),d=l[2].split("\r\n"),h=p.filter((e=>!(!e.match(/^\[ERROR.*\]/)||e.match(/Error in script usage. The correct usage is:$/))));if(h.length>0)throw Error("invalid parameters\r\n"+h.join("\r\n"));let f={};for(let e of u){const[t,r]=e.split("=");f[t]=r}ps.startGroup("Environment variables");for(let e of d){if(!e.includes("="))continue;let[t,r]=e.split("=");r!==f[t]&&(ps.info("Setting "+t),re(t)&&(r=r.split(";").filter(((e,t,r)=>r.indexOf(e)===t)).join(";")),ps.exportVariable(t,r))}ps.endGroup(),ps.info("Configured Developer Command Prompt")},Rr=Ne("ditiY"),Pr=Ne("di6NI"),Rr=Ne("ditiY"),Hr=Ne("1GQ3N"),Pr=Ne("di6NI");var Ns,ks={};ks=Ne("cReTf"),Ns={id:"en",data:{long:{years:{one:"{0} year",other:"{0} years"},months:{one:"{0} month",other:"{0} months"},weeks:{one:"{0} week",other:"{0} weeks"},days:{one:"{0} day",other:"{0} days"},hours:{one:"{0} hour",other:"{0} hours"},minutes:{one:"{0} minute",other:"{0} minutes"},seconds:{one:"{0} second",other:"{0} seconds"}},narrow:{years:{one:"{0}y",other:"{0}y"},months:{one:"{0}m",other:"{0}m"},weeks:{one:"{0}w",other:"{0}w"},days:{one:"{0}d",other:"{0}d"},hours:{one:"{0}h",other:"{0}h"},minutes:{one:"{0}m",other:"{0}m"},seconds:{one:"{0}s",other:"{0}s"}},short:{years:{one:"{0} yr",other:"{0} yrs"},months:{one:"{0} mth",other:"{0} mths"},weeks:{one:"{0} wk",other:"{0} wks"},days:{one:"{0} day",other:"{0} days"},hours:{one:"{0} hr",other:"{0} hr"},minutes:{one:"{0} min",other:"{0} min"},seconds:{one:"{0} sec",other:"{0} sec"}}}};var Ls=Ne("5FRs7"),Ds={};Ne("j5MHF").addLocale("en",(e=>{var t=Math.floor(Math.abs(e)),r=(""+e).replace(/^[^.]*\.?/,"").length;return"string"==typeof e&&(e=parseInt(e,10)),1===t&&0===r?"one":"other"})),Jr=Ne("fVzwP"),Rr=Ne("ditiY"),Rr=Ne("ditiY");let js=!1;const Ms={cmake:R,ninja(e,t,r){return C("ninja",e,ie,t,r)},python:P,vcpkg(e,r,s){return js&&null!==t(Le).sync("vcpkg",{nothrow:!0})?{binDir:me.dirname(t(Le).sync("vcpkg"))}:("linux"===process.platform&&(y("curl"),y("zip"),y("unzip"),y("tar"),y("git"),y("pkg-config")),ge.existsSync(me.join(r,O("bootstrap-vcpkg")))?Rr.notice(`Vcpkg folder already exists at ${r}. This might mean that ~/vcpkg is restored from the cache.`):t(Be).sync("git",["clone","https://github.com/microsoft/vcpkg"],{cwd:me.dirname(r),stdio:"inherit"}),t(Be).sync(O((o="bootstrap-vcpkg","win32"===process.platform?o:"./"+o)),{cwd:r,shell:!0,stdio:"inherit"}),"linux"!==process.platform&&"darwin"!==process.platform||!l()||void 0===process.env.SUDO_USER||u("chown",["-R",process.env.SUDO_USER,r],r),f(r),js=!0,{binDir:r});var o},async conan(e,t,r){return await D("setuptools",""),D("conan",e)},meson(e,t,r){return D("meson",e)},gcovr(e,t,r){return D("gcovr",e)},async opencppcoverage(e,t,r){if("win32"===process.platform)return await E("opencppcoverage",e),{binDir:(()=>{const e="C:/Program Files/OpenCppCoverage";return f(e),e})()}},llvm:B,gcc:U,choco:b,brew:s,ccache(e,t,r){switch(process.platform){case"win32":return E("ccache",e);case"darwin":return w("ccache",e);case"linux":return y("ccache",e);default:throw Error("Unsupported platform")}},async doxygen(e,t,r){switch(process.platform){case"win32":return await E("doxygen.install",e),await j(L("graphviz",void 0)),{binDir:(()=>{if("win32"===process.platform){const e="C:/Program Files/doxygen/bin";return f(e),e}throw Error("Unsupported platform")})()};case"darwin":{const e=w("doxygen",void 0);return await j(L("graphviz",void 0)),e}case"linux":{let s;try{s=await C("doxygen",e,M,t,r)}catch(e){Rr.notice(`Failed to download doxygen binary. ${e}. Falling back to apt-get.`),s=y("doxygen",void 0)}return await j(L("graphviz",void 0)),s}default:throw Error("Unsupported platform")}},graphviz:j,async cppcheck(e,t,r){switch(process.platform){case"win32":return await E("cppcheck",e),{binDir:(()=>{const e="C:/Program Files/Cppcheck";return f(e),e})()};case"darwin":return w("cppcheck",e);case"linux":return y("cppcheck",e);default:throw Error("Unsupported platform")}},clangtidy:X,clangformat:X,msvc:oe,vcvarsall:se,async kcov(e,t,r){if("linux"===process.platform){const s=await C("kcov",e,ce,t,r);return y("libbinutils"),s}throw Error("Unsupported platform for "+r)},make(e,t,r){switch(process.platform){case"win32":return E("make",e);case"darwin":return w("make",e),f("/usr/local/opt/make/libexec/gnubin"),{binDir:"/usr/local/opt/make/libexec/gnubin"};case"linux":return y("make",e);default:throw Error("Unsupported platform")}},task(e,t,r){return C("task",e,I,t,r)},sevenzip:$},Fs=["choco","brew","python","vcpkg","cmake","ninja","conan","meson","gcovr","opencppcoverage","ccache","doxygen","graphviz","cppcheck","clangtidy","clangformat","llvm","gcc","msvc","vcvarsall","kcov","make","task","sevenzip"],Us=["compiler","architecture",...Fs];ue(process.argv).then((e=>{process.exitCode=e})).catch((e=>{Rr.error("main() panicked!"),Rr.error(e),process.exitCode=1}));
//# sourceMappingURL=setup_cpp.js.map