mirror of https://github.com/aminya/setup-cpp
3 lines
155 KiB
JavaScript
3 lines
155 KiB
JavaScript
function e(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}function t(e){return e&&e.__esModule?e.default:e}function r(e,t,r){return ft(this,void 0,void 0,(function*(){const n=mt.argStringToArray(e);if(0===n.length)throw Error("Parameter 'commandLine' cannot be null or empty.");const o=n[0];return t=n.slice(1).concat(t||[]),new mt.ToolRunner(o,t,r).exec()}))}function n(e,t){const r=[];t=t||nt.arch();const n=ot.join(l(),e);if(tt.existsSync(n)){const e=tt.readdirSync(n);for(const o of e)if(a(o)){const e=ot.join(n,o,t||"");tt.existsSync(e)&&tt.existsSync(e+".complete")&&r.push(o)}}return r}function o(e){return Ke(this,void 0,void 0,(function*(){return e||(e=ot.join(u(),lt.default())),yield et.mkdirP(e),e}))}function s(e,t,r){return Ke(this,void 0,void 0,(function*(){const n=ot.join(l(),e,it.clean(t)||t,r||"");Qe.debug("destination "+n);const o=n+".complete";return yield et.rmRF(n),yield et.rmRF(o),yield et.mkdirP(n),n}))}function i(e,t,r){const n=ot.join(l(),e,it.clean(t)||t,r||"");tt.writeFileSync(n+".complete",""),Qe.debug("finished caching tool")}function a(e){const t=it.clean(e)||"";Qe.debug("isExplicit: "+t);const r=null!=it.valid(t);return Qe.debug("explicit? "+r),r}function c(e,t){let r="";Qe.debug(`evaluating ${e.length} versions`);for(let n=(e=e.sort(((e,t)=>it.gt(e,t)?1:-1))).length-1;n>=0;n--){const o=e[n];if(it.satisfies(o,t)){r=o;break}}return Qe.debug(r?"matched: "+r:"match not found"),r}function l(){const e=process.env.RUNNER_TOOL_CACHE||"";return ke.ok(e,"Expected RUNNER_TOOL_CACHE to be defined"),e}function u(){const e=process.env.RUNNER_TEMP||"";return ke.ok(e,"Expected RUNNER_TEMP to be defined"),e}function p(e,t){const r=Ve[e];return void 0!==r?r:t}function d(){return"true"===process.env.CI&&"true"===process.env.GITHUB_ACTIONS}function h(e){return d()?Pt.error(e):console.log(`[31m${e}[0m`)}function f(e){return d()?Pt.warning(e):console.log(`[33m${e}[0m`)}function m(e){return d()?Pt.info(e):console.log(e)}function v(e,t,r){if("function"==typeof t&&(r=t,t={}),!r){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise(((r,n)=>{v(e,t||{},((e,t)=>{e?n(e):r(t)}))}))}It(e,t||{},((e,n)=>{e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,n=!1),r(e,n)}))}function y(e,r,n){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeof kt)return{binDir:kt};const o=t(_t).sync("brew",{nothrow:!0});return null!==o?(kt=Te.dirname(o),{binDir:kt}):(De.execFileSync('/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"',{stdio:"inherit"}),kt="/usr/local/bin/",{binDir:kt})}function g(e,t){const r=e.options.env||process.env,n=process.cwd(),o=null!=e.options.cwd,s=o&&void 0!==process.chdir&&!process.chdir.disabled;if(s)try{process.chdir(e.options.cwd)}catch(e){}let i;try{i=_t.sync(e.command,{path:r[Mt({env:r})],pathExt:t?Te.delimiter:void 0})}catch(e){}finally{s&&process.chdir(n)}return i&&(i=Te.resolve(o?e.options.cwd:"",i)),i}function w(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 x(e,t){return Yt&&1===e&&!t.file?w(t.original,"spawn"):null}function E(e,t,r){const n=Ft(e,t,r),o=De.spawn(n.command,n.args,n.options);return Xt.hookChildProcess(o,n),o}async function b(e,t){if(!e)throw Error("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:r}=t,n=Br(t);return await new Promise(((t,o)=>{const s=e=>{e&&n.getBufferedLength()<=Xr.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),o(e)};(async()=>{try{await Jr(e,n),t()}catch(e){s(e)}})(),n.on("data",(()=>{n.getBufferedLength()>r&&s(new Kr)}))})),n.getBufferedValue()}function S(){var e;return void 0!==En||(En=(!!process.env.CI||0===(null===(e=process.getuid)||void 0===e?void 0:e.call(process)))&&null!==t(_t).sync("sudo",{nothrow:!0})),En}function O(e,r,n){return S()?t(Dt).command("sudo "+[e,...r].map((e=>`'${e}'`)).join(" "),{shell:!0,cwd:n,stdio:"inherit"}):t(Dt)(e,r,{stdio:"inherit"})}async function P(e,t,r=!0){Pt.info(`Installing ${e} ${null!=t?t:""} via apt`);const n="apt-get";if(process.env.DEBIAN_FRONTEND="noninteractive",bn||(await O(n,["update","-y"]),bn=!0),!Sn){await O(n,["install","--fix-broken","-y","software-properties-common","apt-utils","ca-certificates","gnupg"]);try{await O("apt-key",["adv","--keyserver","keyserver.ubuntu.com","--recv-keys","3B4FE6ACC0B21F32"]),await O("apt-key",["adv","--keyserver","keyserver.ubuntu.com","--recv-keys","40976EAF437D05B5"]),await O("apt-key",["adv","--keyserver","keyserver.ubuntu.com","--recv-keys","1E9377A2BA9EF27F"])}catch(e){f("Failed to add keys: "+e)}Sn=!0}if(Array.isArray(r)){for(const e of r)await O("add-apt-repository",["--update","-y",e]);await O(n,["update","-y"])}if(void 0!==t&&""!==t)try{await O(n,["install","--fix-broken","-y",`${e}=${t}`])}catch{await O(n,["install","--fix-broken","-y",`${e}-${t}`])}else await O(n,["install","--fix-broken","-y",e]);return{binDir:"/usr/bin/"}}function _(e,r){return Pt.info(`Installing ${e} ${null!=r?r:""} via brew`),On&&null!==t(_t).sync("brew",{nothrow:!0})||(y(0,0,process),On=!0),t(Dt).sync("brew",["install",void 0!==r&&""!==r?`${e}@${r}`:e],{stdio:"inherit"}),{binDir:"/usr/local/bin/"}}function $(e){return S()&&"string"==typeof process.env.SUDO_USER?Te.join("/home/",process.env.SUDO_USER,e):t(Pn)("~/"+e)}function T(e){if(void 0===$n){const e=t(_t).sync("pwsh",{nothrow:!0});null!==e&&($n=e);const r=t(_t).sync("powershell",{nothrow:!0});null!==r&&($n=r)}if(void 0===$n)throw Error("Could not find powershell");t(Dt).sync($n,["-c",e],{stdio:"inherit"})}function I(e,t){try{d()?Pt.exportVariable(e,t):R(e,t)}catch(r){try{return h(r),R(e,t)}catch(e){h(e)}h(`Failed to export environment variable ${e}=${t}. You should add it manually.`)}}function C(e){process.env.PATH=`${e}${Te.delimiter}${process.env.PATH}`;try{d()?Pt.addPath(e):A(e)}catch(t){try{return h(t),A(e)}catch(e){h(e)}h(`Failed to add ${e} to the percistent PATH. You should add it manually.`)}}function R(e,t){const r=null!=t?t:"";switch(process.platform){case"win32":return T(`[Environment]::SetEnvironmentVariable("${e}", "${r}", "User")`),void Pt.info(`${e}="${r} was set in the environment."`);case"linux":case"darwin":return N(),Ie.appendFileSync(Tn,`\nexport ${e}="${r}"\n`),void Pt.info(`${e}="${r} was added to "${Tn}"`)}process.env[e]=r}function A(e){switch(process.platform){case"win32":return T(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),void Pt.info(e+" was added to the PATH.");case"linux":case"darwin":return N(),Ie.appendFileSync(Tn,`\nexport PATH=${e}:$PATH\n`),void Pt.info(`${e} was added to "${Tn}"`);default:return}}function N(){if(Cn)return;const e="export SOURCE_CPPRC=0";if(Ie.existsSync(Tn)&&Ie.readFileSync(Tn,"utf8").includes(e))return;Ie.appendFileSync(Tn,`\n${e}\n`),Pt.info(`Added ${e} to ${Tn}`);const t=`\n# source .cpprc if SOURCE_CPPRC is not set to 0\nif [[ "$SOURCE_CPPRC" != 0 && -f "${Tn}" ]]; then source "${Tn}"; fi\n`;try{const e=$(".profile");Ie.appendFileSync(e,t),Pt.info(`${t} was added to ${e}`);const r=$(".bashrc");Ie.appendFileSync(r,t),Pt.info(`${t} was added to ${r}`)}catch(e){f(`Failed to add ${t} to .profile or .bashrc. You should add it manually: ${e}`)}Cn=!0}function k(e,r,n){if("win32"!==process.platform)return;if("string"==typeof In)return{binDir:In};const o=t(_t).sync("choco",{nothrow:!0});if(null!==o)return In=Te.dirname(o),{binDir:In};let s="powershell.exe";const i=t(_t).sync(process.env.SystemRoot+"\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",{nothrow:!0});null!==i&&(s=i),t(Dt).sync(s,["-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"}),C(process.env.ALLUSERSPROFILE+"\\chocolatey\\bin");const a=t(_t).sync("choco",{nothrow:!0});var c;return In=null!==a?Te.dirname(a):(null!==(c=process.env.ChocolateyInstall)&&void 0!==c?c:"C:/ProgramData/chocolatey")+"/bin",Ie.existsSync(In)?{binDir:In}:void 0}function L(e,r,n=[]){Pt.info(`Installing ${e} ${null!=r?r:""} via chocolatey`),Rn&&null!==t(_t).sync("choco",{nothrow:!0})||(k(0,0,process),Rn=!0);const o=process.env.PATH,s={...process.env};var i;delete s.TMP,delete s.TEMP,delete s.Path,s.PATH=o,t(Dt).sync("choco",void 0!==r&&""!==r?["install","-y",e,"--version="+r,...n]:["install","-y",e,...n],{env:s,extendEnv:!1,stdio:"inherit"});const a=(null!==(i=process.env.ChocolateyInstall)&&void 0!==i?i:"C:/ProgramData/chocolatey")+"/bin";return C(a),{binDir:a}}function D(e){return"win32"===process.platform?e+".exe":e}function j(e){return"win32"===process.platform?e+".bat":e+".sh"}function F(e,t,r){switch(process.platform){case"win32":return L("7zip",e);case"darwin":return _("p7zip",e);case"linux":return P("p7zip-full",e);default:throw Error("Unsupported platform")}}async function M(e,r){return void 0===Nn&&(null===t(_t).sync("7z",{nothrow:!0})&&await F("",0,process),Nn="7z"),await t(Dt)(Nn,["x",e,"-o"+r],{stdio:"inherit"}),r}async function U(e,r,n=["--strip-components=0"]){try{await An.mkdirP(r)}catch{}try{await t(Dt)("tar",["xf",e,"-C",r,...n],{stdio:"inherit"})}catch(t){"win32"===process.platform&&t.message.includes("Can't create '\\\\?\\C:")&&f(`Failed to extract symlink ${e} to ${r}. Ignoring this symlink.`)}return r}async function G(e,t,r,n,o){var s,i;Pt.info(`Installing ${e} ${t} ${o} via direct downloading`),process.env.RUNNER_TEMP=null!==(s=process.env.RUNNER_TEMP)&&void 0!==s?s:$e.tmpdir(),process.env.RUNNER_TOOL_CACHE=null!==(i=process.env.RUNNER_TOOL_CACHE)&&void 0!==i?i:Te.join($e.tmpdir(),"setup-cpp","hostedtoolcache");const{url:a,binRelativeDir:c,binFileName:l,extractedFolderName:u,extractFunction:p}=await r(t,process.platform,o);if(d())try{const r=We.find(e,t);if(r){const n=Te.join(r,u),o=Te.join(n,c);if(Ie.existsSync(o)&&Ie.existsSync(Te.join(o,l)))return Pt.info(`${e} ${t} was found in the cache at ${o}.`),C(o),{installDir:n,binDir:o}}}catch{}const h=Te.join(n,u),f=Te.join(h,c),m=Te.join(f,l);if(!Ie.existsSync(f)||!Ie.existsSync(m)){Pt.info(`Download and extract ${e} ${t}`),kn||("linux"===process.platform&&(await P("unzip"),await P("tar"),await P("xz-utils")),kn=!0);try{const e=await We.downloadTool(a);await(null==p?void 0:p(e,n))}catch(r){throw Error(`Failed to download ${e} ${t} ${o}: ${r}`)}}return Pt.info(`Add ${f} to PATH`),C(f),d()&&"string"==typeof process.env.RUNNER_TOOL_CACHE&&await We.cacheDir(n,e,t),{installDir:h,binDir:f}}function q(e,t,r){const n=(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),s="win32"===t,i=s?"zip":"tar.gz";return{binRelativeDir:"",binFileName:D("task"),extractedFolderName:"",extractFunction:s?We.extractZip:U,url:`https://github.com/go-task/task/releases/download/v${e}/task_${n}_${o}.${i}`}}function V(e,r,n){var o;const s=null!==(o=t(Dn)(e))&&void 0!==o?o:e;switch(r){case"win32":{const r=t(Ln)(s,"v3.19.6");let o;o=["ia32","x86","i386","x32"].includes(n)?r?"win32-x86":"windows-i386":r?"win64-x64":"windows-x86_64";const i=`cmake-${e}-${o}`;return{binRelativeDir:"bin/",binFileName:D("cmake"),extractedFolderName:i,extractFunction:We.extractZip,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${i}.zip`}}case"darwin":{const r=`cmake-${e}-${t(Ln)(s,"v3.19.1")?"Darwin-x86_64":"macos-universal"}`;return{binRelativeDir:"CMake.app/Contents/bin/",binFileName:D("cmake"),extractedFolderName:r,extractFunction:We.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${r}.tar.gz`}}case"linux":{const r=t(Ln)(s,"v3.19.8");let o;o=["aarch64"].includes(n)?r?"Linux-aarch64":"linux-aarch64":r?"Linux-x86_64":"linux-x86_64";const i=`cmake-${e}-${o}`;return{binRelativeDir:"bin/",binFileName:D("cmake"),extractedFolderName:i,extractFunction:We.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${i}.tar.gz`}}default:throw Error(`Unsupported platform '${r}'`)}}function H(e,t,r){return G("cmake",e,V,t,r)}function z(e,t,r){if(!d())return B(e,t);try{const{setupActionsPython:n}=Be("apy8x");return n(e,t,r)}catch(r){return Pt.warning(r),B(e,t)}}async function B(e,t,r){switch(process.platform){case"win32":return t?L("python3",e,["--params=/InstallDir:"+t]):L("python3",e),Pt.info(`Add ${n=t} to PATH`),C(n),{installDir:t,binDir:t};case"darwin":return _("python3",e);case"linux":{const t=await P("python3",e);return await P("python3-pip"),t}default:throw Error("Unsupported platform")}var n}function W(e){return new Promise((t=>{Re.get(e,(e=>{t(void 0!==e.statusCode&&e.statusCode>=200&&399>=e.statusCode)}))}))}function X(e,t){return"true"===t||void 0===t&&e in Mn?Mn[e]:null!=t?t:""}async function Y(e,r){if(Pt.info(`Installing ${e} ${null!=r?r:""} via pip`),void 0===Un){if(null!==t(_t).sync("python3",{nothrow:!0}))Un="python3";else{if(null===t(_t).sync("python",{nothrow:!0})||!await(async(e,r,n=/v?(\d\S*)/)=>{const o=await(async(e,t=/v?(\d\S*)/)=>{try{var r;const n=await ut.getExecOutput(e,["--version"]);return null===(r=(n.stdout||n.stderr||"").trim().match(t))||void 0===r?void 0:r[1]}catch(e){return void console.error(e)}})(e,n);return"string"==typeof o&&"string"==typeof r&&""!==o&&""!==r&&-1!==t(jn)(o,r)})("python","3.0.0")){if(Pt.info("python3 was not found. Installing python"),await z(X("python",void 0),"",process.arch),qn)throw Error("Failed to install python");return qn=!0,Y(e,r)}Un="python"}"win32"===process.platform?t(Dt).sync(Un,["-m","pip","install","-U","pip==21.3.1"],{stdio:"inherit"}):"linux"===process.platform&&await P("python3-pip")}if(t(Dt).sync(Un,["-m","pip","install",void 0!==r&&""!==r?`${e}==${r}`:e],{stdio:"inherit"}),void 0===Gn){if("linux"===process.platform)Gn="/home/runner/.local/bin/";else if("darwin"===process.platform)Gn="/usr/local/bin/";else try{Gn=Te.join((await ut.getExecOutput(Un+' -c "import sys;print(sys.base_exec_prefix);"')).stdout.trim(),"Scripts")}catch{Gn=Te.join((await ut.getExecOutput(Un+' -c "import sys;print(sys.base_exec_prefix);"')).stdout.trim(),"Scripts")}Pt.info(Gn+" to PATH"),C(Gn)}return{binDir:Gn}}function J(e,t,r){switch(process.platform){case"win32":return L("graphviz",e),(()=>{if("win32"===process.platform){const e="C:/Program Files/Graphviz/bin";return C(e),{binDir:e}}throw Error("Unsupported platform")})();case"darwin":return _("graphviz",e);case"linux":return P("graphviz",e);default:throw Error("Unsupported platform")}}function K(e,t,r){if("linux"===t){const t="doxygen-"+e;return{binRelativeDir:"bin/",binFileName:D("doxygen"),extractedFolderName:t,extractFunction:We.extractTar,url:`https://www.doxygen.nl/files/${t}.linux.bin.tar.gz`}}throw Error(`Unsupported platform '${t}'`)}async function Z(){if("darwin"===process.platform)try{const e=await ut.getExecOutput("xcrun --sdk macosx --show-sdk-path"),t=e.stdout||e.stderr;t?I("SDKROOT",t.trim()):h("SDKROOT not set")}catch(e){h(e)}}async function Q(e,r,n){let o;switch(process.platform){case"win32":var s,i;"arm"!==n&&"arm64"!==n||await L("gcc-arm-embedded",e),await L("mingw",e),"x64"===n&&Ie.existsSync("C:/tools/mingw64/bin")?(o="C:/tools/mingw64/bin",C(o)):"ia32"===n&&Ie.existsSync("C:/tools/mingw32/bin")?(o="C:/tools/mingw32/bin",C(o)):Ie.existsSync((null!==(s=process.env.ChocolateyInstall)&&void 0!==s?s:"C:/ProgramData/chocolatey")+"/bin/g++.exe")&&(o=(null!==(i=process.env.ChocolateyInstall)&&void 0!==i?i:"C:/ProgramData/chocolatey")+"/bin");break;case"darwin":o=_("gcc",e).binDir;break;case"linux":"x64"===n?(await P("gcc",e,["deb http://dk.archive.ubuntu.com/ubuntu/ xenial main","deb http://dk.archive.ubuntu.com/ubuntu/ xenial universe","ppa:ubuntu-toolchain-r/test"]),o=(await P("g++",e,[])).binDir):(Pt.info(`Install g++-multilib because gcc for ${n} was requested`),await P("gcc-multilib",e,["deb http://dk.archive.ubuntu.com/ubuntu/ xenial main","deb http://dk.archive.ubuntu.com/ubuntu/ xenial universe","ppa:ubuntu-toolchain-r/test"]),o=(await P("g++-multilib",e,[])).binDir);break;default:throw Error("Unsupported platform for "+n)}if(void 0!==o)return await(async(e,r)=>{if("win32"===process.platform)I("CC",r+"/gcc"),I("CXX",r+"/g++");else{var n;const o=t(Vn)(null!==(n=t(Dn)(e))&&void 0!==n?n:e);5>o?(I("CC",`${r}/gcc-${e}`),I("CXX",`${r}/g++-${e}`)):(I("CC",`${r}/gcc-${o}`),I("CXX",`${r}/g++-${o}`))}await Z(),d()&&(()=>{const e=t(Te).join(__dirname,"gcc_matcher.json");if(!Ie.existsSync(e))return f("the gcc_matcher.json file does not exist in the same folder as setup_cpp.js");Pt.info("::add-matcher::"+e)})()})(e,o),{binDir:o}}function ee(e,t,r){return`https://github.com/llvm/llvm-project/releases/download/llvmorg-${e}/${t}${e}${r}`}function te(e,t,r){return`https://releases.llvm.org/${e}/${t}${e}${r}`}function re(e,r){switch(e){case"darwin":return(e=>{if(zn.has(e))return null;const r="clang+llvm-",n=`-x86_64${"9.0.0"===e?"-darwin-apple":"-apple-darwin"}.tar.xz`;return t(Ln)(e,"9.0.1")?te(e,r,n):ee(e,r,n)})(r);case"linux":return(e=>{let r=e;const n=Bn.get(r);let o;void 0!==n&&(r=n),o=r.includes("ubuntu")?r:""!==r&&r in Wn?Wn[r]:Wn["14.0.0"];const s="clang+llvm-",i="5.0.0"===r?`-linux-x86_64${o}.tar.xz`:`-x86_64-linux-gnu${o}.tar.xz`;return t(Ln)(r,"9.0.1")?te(r,s,i):ee(r,s,i)})(r);case"win32":return(async e=>{if(Xn.has(e))return null;const r="LLVM-",n=t(Ln)(e,"3.7.0")?"-win32.exe":"-win64.exe",o=t(Ln)(e,"9.0.1");let s,i=!1;return o&&(s=te(e,r,n),await W(s)||(i=!0)),!i&&o||(s=ee(e,r,n)),s})(r);default:return null}}async function ne(e,t,r){const[n,o]=await(async(e,t,r,n)=>{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 n(t,o);if(null!==e&&await W(e))return[o,e]}throw Error(`Unsupported target! (platform='${t}', version='${r}')`)})(Hn,t,e,re);return Pt.setOutput("version",n),{url:o,extractedFolderName:"",binRelativeDir:"bin",binFileName:D("clang"),extractFunction:"win32"===t?M:(e,t)=>U(e,t,["--strip-components=1"])}}async function oe(e,r,n){const o=await se(e,r,n);var s;return await(async(e,r)=>{const n=(e=>{if(null===t(Fn)(e))try{const r=t(Dn)(e);if(null!==r)return r.version}catch(e){}return e})(r),o=Te.join(e,"lib");var s;const i=null!==(s=process.env.LD_LIBRARY_PATH)&&void 0!==s?s:"";var a;const c=null!==(a=process.env.DYLD_LIBRARY_PATH)&&void 0!==a?a:"";I("LLVM_PATH",e),I("LD_LIBRARY_PATH",`${o}${Te.delimiter}${i}`),I("DYLD_LIBRARY_PATH",`${o}${Te.delimiter}${c}`);const l=t(Vn)(n);Ie.existsSync(`${e}/lib/clang/${n}/include`)?I("CPATH",`${e}/lib/clang/${n}/include`):Ie.existsSync(`${e}/lib/clang/${l}/include`)&&I("CPATH",`${e}/lib/clang/${l}/include`),I("LDFLAGS",`-L${e}/lib`),I("CPPFLAGS",`-I${e}/include`),I("CC",e+"/bin/clang"),I("CXX",e+"/bin/clang++"),I("LIBRARY_PATH",e+"/lib"),await Z(),d()&&ae()})(null!==(s=o.installDir)&&void 0!==s?s:r,e),o}async function se(e,t,r){const n=await G("llvm",e,ne,t,r);return Yn||("linux"===process.platform&&(await Q(X("gcc",void 0),0,r),await P("libtinfo-dev")),Yn=!0),n}function ie(e,t,r){return d()&&ae(),se(e,t,r)}function ae(){const e=Te.join(__dirname,"llvm_matcher.json");if(!Ie.existsSync(e))return f("the llvm_matcher.json file does not exist in the same folder as setup_cpp.js");Pt.info("::add-matcher::"+e)}function ce(e,t,r){const n=new io(e,t,r);process.stdout.write(""+n+oo.EOL)}function le(e){ro.issue("error",e instanceof Error?""+e:e)}function ue(e){ro.issue("group",e)}function pe(){ro.issue("endgroup")}function de(e){return Object.values(xo).includes(e)?e:e in xo?xo[e]:e}function he(e){if(Object.keys(xo).includes(e))return e;for(const[t,r]of Object.entries(xo))if(r===e)return t;return e}function fe(e){const t=de(e);let r;if(t){const e=t.split(".")[0]+".9";r=`-version "${t},${e}"`}else r="-latest";let n=((e,t)=>{try{return(""+De.execSync(`vswhere -products * ${t} -prerelease -property installationPath`)).trim()+"\\VC\\Auxiliary\\Build\\vcvarsall.bat"}catch(e){Qn.warning("vswhere failed: "+e)}return null})(0,r);if(n&&Ie.existsSync(n))return Qn.info("Found with vswhere: "+n),n;Qn.info("Not found with vswhere");const o=e?[he(e)]:wo;for(const e of yo)for(const t of o)for(const r of go)if(n=`${e}\\Microsoft Visual Studio\\${t}\\${r}\\VC\\Auxiliary\\Build\\vcvarsall.bat`,Qn.info("Trying standard location: "+n),Ie.existsSync(n))return Qn.info("Found standard location: "+n),n;if(Qn.info("Not found in standard locations"),n=vo+"\\Microsoft Visual C++ Build Tools\\vcbuildtools.bat",Ie.existsSync(n))return Qn.info("Found VS 2015: "+n),n;throw Qn.info("Not found in VS 2015 location: "+n),Error("Microsoft Visual Studio not found")}function me(e){return-1!=["PATH","INCLUDE","LIB","LIBPATH"].indexOf(e.toUpperCase())}function ve(e,t,r,n,o,s,i){void 0!==t&&Ie.existsSync(t)&&(Pt.info(`Adding ${t} to PATH`),I("VCTargetsPath",t)),Zn((e=>{switch(e){case"x32":case"32":case"ia32":return"x86";case"64":return"x64";default:return e}})(r),o,n,s,i,e)}function ye(e,r,n,o,s,i){if("win32"!==process.platform)return;const a=Jn(e);Pt.info(`Checking if MSVC ${a} is already installed`);let c,l,u=!1;try{const e=Kn(a);u=!0,Pt.info("Found the pre-installed version of MSVC at "+e)}catch{}if(!u)try{"14.0"===a?(c="14.0",L("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",L("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",L("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,L("visualstudio2022buildtools","117.0.5.0",[]),l=void 0):h(`The given MSVC versions ${e} is not supported yet.`)}catch(e){h(e)}ve(a,l,n,c,o,s,i),d()&&(()=>{const e=t(Te).join(__dirname,"msvc_matcher.json");if(!Ie.existsSync(e))return f("the msvc_matcher.json file does not exist in the same folder as setup_cpp.js");Pt.info("::add-matcher::"+e)})()}function ge(e,t,r){const n=(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:D("ninja"),extractedFolderName:"",extractFunction:We.extractZip,url:`https://github.com/ninja-build/ninja/releases/download/v${e}/ninja-${n}.zip`}}function we(e){return null==e?[]:Array.isArray(e)?e:[e]}function xe(e,t,r,n){var o,s=e[t],i=~n.string.indexOf(t)?null==r||!0===r?"":r+"":"boolean"==typeof r?r:~n.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==s?i:Array.isArray(s)?s.concat(i):[s,i]}function Ee(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:D("kcov"),extractFunction:be}:{url:`https://github.com/SimonKagstrom/kcov/releases/download/v${t}/kcov-amd64.tar.gz`,extractedFolderName:"",binRelativeDir:"usr/local/bin",binFileName:D("kcov"),extractFunction:U}}async function be(e,r){const n=await U(e,r,["--strip-components=1"]);return null===t(_t).sync("cmake",{nothrow:!0})&&await H(X("cmake",void 0),Te.join(t(Pn)(""),"cmake"),""),"linux"===process.platform&&(await P("libdw-dev"),await P("libcurl4-openssl-dev")),await t(Dt)("cmake",["-S","./","-B","./build"],{cwd:n,stdio:"inherit"}),await t(Dt)("cmake",["--build","./build","--config","Release"],{cwd:n,stdio:"inherit"}),await O("cmake",["--install","./build"],n),n}async function Se(e){d()||(process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS="true");const r=((e,t)=>{var r,n,o,s,i,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=we(t.string),t.boolean=we(t.boolean),d)for(r in t.alias)for(n=t.alias[r]=we(t.alias[r]),c=0;n.length>c;c++)(t.alias[n[c]]=n.concat(r)).splice(c,1);for(c=t.boolean.length;c-- >0;)for(l=(n=t.alias[t.boolean[c]]||[]).length;l-- >0;)t.boolean.push(n[l]);for(c=t.string.length;c-- >0;)for(l=(n=t.alias[t.string[c]]||[]).length;l-- >0;)t.string.push(n[l]);if(f)for(r in t.default)if(s=typeof t.default[r],n=t.alias[r]=t.alias[r]||[],void 0!==t[s])for(t[s].push(r),c=0;n.length>c;c++)t[s].push(n[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(s=o.substring(l+3),h&&!~m.indexOf(s))return t.unknown(o);a[s]=!1}else{for(u=l+1;o.length>u&&61!==o.charCodeAt(u);u++);for(s=o.substring(l,u),i=o.substring(++u)||c+1===p||45===(""+e[c+1]).charCodeAt(0)||e[++c],n=2===l?[s]:s,u=0;n.length>u;u++){if(s=n[u],h&&!~m.indexOf(s))return t.unknown("-".repeat(l)+s);xe(a,s,n.length>u+1||i,t)}}}if(f)for(r in t.default)void 0===a[r]&&(a[r]=t.default[r]);if(d)for(r in a)for(n=t.alias[r]||[];n.length>0;)a[n.shift()]=a[r];return a})(e,{string:$o,default:Object.fromEntries($o.map((e=>[e,Pe(e)]))),alias:{h:"help"},boolean:"help"});var n;r.help&&Pt.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!==(n=r.architecture)&&void 0!==n?n:process.arch;var s;const i=null!==(s=process.env.SETUP_CPP_DIR)&&void 0!==s?s:$(""),a=[],c=[],l=So.create();let u,p;So.addLocale(t(bo));for(const e of _o){const t=r[e];if(void 0!==t){u=Date.now(),Pt.startGroup(`Installing ${e} ${t}`);try{let r;if("vcvarsall"===e)ve(X(e,t),void 0,o,void 0,void 0,!1,!1);else{const n=Po[e];r=await n(X(e,t),Te.join(i,e),o)}a.push(_e(e,r))}catch(t){h(t),c.push(e+" failed to install")}Pt.endGroup(),p=Date.now(),m("took "+l.format(u,p))}}const v=r.compiler;u=Date.now();try{if(void 0!==v){const{compiler:e,version:t}=Oe(v);switch(Pt.startGroup(`Installing ${e} ${null!=t?t:""}`),e){case"llvm":case"clang":case"clang++":{const e=await oe(X("llvm",t),Te.join(i,"llvm"),o);a.push(_e("llvm",e));break}case"gcc":case"mingw":case"cygwin":case"msys":{const e=await Q(X("gcc",t),Te.join(i,"gcc"),o);a.push(_e("gcc",e));break}case"cl":case"msvc":case"msbuild":case"vs":case"visualstudio":case"visualcpp":case"visualc++":{const e=ye(X("msvc",t),Te.join(i,"msvc"),o);a.push(_e("msvc",e));break}case"appleclang":case"applellvm":Pt.info("Assuming apple-clang is already installed"),I("CC","clang"),I("CXX","clang++"),a.push(_e("apple-clang",void 0));break;default:c.push("Unsupported compiler "+e)}Pt.endGroup(),p=Date.now(),m("took "+l.format(u,p))}}catch(e){h(e),c.push("Failed to install the "+v),Pt.endGroup(),p=Date.now(),m("took "+l.format(u,p))}if(0===a.length&&0===c.length)return f("setup_cpp was called without any arguments. Nothing to do."),0;if(a.forEach((e=>console.log(`[32m${e}[0m`))),c.forEach((e=>h(e))),Pt.info("setup_cpp finished"),!d())switch(process.platform){case"win32":f("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":f("Run `source ~/.cpprc` or restart your shell to update the environment.")}return 0===c.length?0:1}function Oe(e){const r=e.split("-"),n=r[0];if(1 in r){const e=r[1];return null!==t(Fn)(e)||Pt.info(`Invalid semver version ${e} used for the compiler.`),{compiler:n,version:e}}return{compiler:n,version:void 0}}function Pe(e){const t=Pt.getInput(e.toLowerCase());if("false"!==t&&""!==t)return t}function _e(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 $e=require("os"),Te=require("path"),Ie=require("fs"),Ce=require("http"),Re=require("https");require("net");var Ae=require("tls"),Ne=require("events"),ke=require("assert"),Le=require("util"),De=require("child_process"),je=require("crypto"),Fe=require("timers"),Me=require("stream"),Ue=require("string_decoder"),Ge=require("buffer"),qe=require("process"),Ve="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},He={},ze={},Be=Ve.parcelRequire810d;null==Be&&((Be=e=>{if(e in He)return He[e].exports;if(e in ze){var t=ze[e];delete ze[e];var r={id:e,exports:{}};return He[e]=r,t.call(r.exports,r,r.exports),r.exports}var n=Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}).register=(e,t)=>{ze[e]=t},Ve.parcelRequire810d=Be),Be.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 n(e,t={}){u.issueCommand("error",d.toCommandProperties(t),e instanceof Error?""+e:e)}function o(e){u.issue("group",e)}function s(){u.issue("endgroup")}var i=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=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)&&i(t,e,r);return a(t,e),t}),l=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,s)=>{function i(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.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=Be("hXgz5"),p=Be("iqpgI"),d=Be("cm976");const h=c($e),f=c(Te);var m,v,y=Be("eIE1e");(v=m=e.exports.ExitCode||(e.exports.ExitCode={}))[v.Success=0]="Success",v[v.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 n=r(e,t);if(["true","True","TRUE"].includes(n))return!0;if(["false","False","FALSE"].includes(n))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,n(e)},e.exports.isDebug=()=>"1"===process.env.RUNNER_DEBUG,e.exports.debug=e=>{u.issueCommand("debug",{},e)},e.exports.error=n,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=s,e.exports.group=function(e,t){return l(this,void 0,void 0,(function*(){let r;o(e);try{r=yield t()}finally{s()}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 y.OidcClient.getIDToken(e)}))}})),Be.register("hXgz5",(function(e,t){"use strict";function r(e,t,r){const n=new c(e,t,r);process.stdout.write(""+n+i.EOL)}var n=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=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}),s=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 o(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issue=e.exports.issueCommand=void 0;const i=s($e);var a=Be("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 n in this.properties)if(this.properties.hasOwnProperty(n)){const o=this.properties[n];o&&(r?r=!1:e+=",",e+=`${n}=${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}}})),Be.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}:{}})),Be.register("iqpgI",((e,t)=>{"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),n=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 n(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issueCommand=void 0;const s=o(Ie),i=o($e);var a=Be("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(!s.existsSync(r))throw Error("Missing file at path: "+r);s.appendFileSync(r,`${a.toCommandValue(t)}${i.EOL}`,{encoding:"utf8"})}})),Be.register("eIE1e",(function(e,t){"use strict";var r=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,s)=>{function i(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.OidcClient=void 0;var n=Be("ba1Cu"),o=Be("FDzJa"),s=Be("9bqVn");class i{static createHttpClient(e=!0,t=10){const r={allowRetries:e,maxRetries:t};return new n.HttpClient("actions/oidc-client",[new o.BearerCredentialHandler(i.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=i.createHttpClient(),n=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=n.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=i.getIDTokenUrl();e&&(t=`${t}&audience=${encodeURIComponent(e)}`),s.debug("ID token url is "+t);const r=yield i.getCall(t);return s.setSecret(r),r}catch(e){throw Error("Error message: "+e.message)}}))}}e.exports.OidcClient=i})),Be.register("ba1Cu",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0});var r=Be("8NGVX");let n;var o,s,i,a,c;(s=o=e.exports.HttpCodes||(e.exports.HttpCodes={}))[s.OK=200]="OK",s[s.MultipleChoices=300]="MultipleChoices",s[s.MovedPermanently=301]="MovedPermanently",s[s.ResourceMoved=302]="ResourceMoved",s[s.SeeOther=303]="SeeOther",s[s.NotModified=304]="NotModified",s[s.UseProxy=305]="UseProxy",s[s.SwitchProxy=306]="SwitchProxy",s[s.TemporaryRedirect=307]="TemporaryRedirect",s[s.PermanentRedirect=308]="PermanentRedirect",s[s.BadRequest=400]="BadRequest",s[s.Unauthorized=401]="Unauthorized",s[s.PaymentRequired=402]="PaymentRequired",s[s.Forbidden=403]="Forbidden",s[s.NotFound=404]="NotFound",s[s.MethodNotAllowed=405]="MethodNotAllowed",s[s.NotAcceptable=406]="NotAcceptable",s[s.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",s[s.RequestTimeout=408]="RequestTimeout",s[s.Conflict=409]="Conflict",s[s.Gone=410]="Gone",s[s.TooManyRequests=429]="TooManyRequests",s[s.InternalServerError=500]="InternalServerError",s[s.NotImplemented=501]="NotImplemented",s[s.BadGateway=502]="BadGateway",s[s.ServiceUnavailable=503]="ServiceUnavailable",s[s.GatewayTimeout=504]="GatewayTimeout",(a=i=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,n){return this.request(e,t,r,n)}async getJson(e,t={}){t[i.Accept]=this._getExistingOrDefaultHeader(t,i.Accept,c.ApplicationJson);let r=await this.get(e,t);return this._processResponse(r,this.requestOptions)}async postJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[i.Accept]=this._getExistingOrDefaultHeader(r,i.Accept,c.ApplicationJson),r[i.ContentType]=this._getExistingOrDefaultHeader(r,i.ContentType,c.ApplicationJson);let o=await this.post(e,n,r);return this._processResponse(o,this.requestOptions)}async putJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[i.Accept]=this._getExistingOrDefaultHeader(r,i.Accept,c.ApplicationJson),r[i.ContentType]=this._getExistingOrDefaultHeader(r,i.ContentType,c.ApplicationJson);let o=await this.put(e,n,r);return this._processResponse(o,this.requestOptions)}async patchJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[i.Accept]=this._getExistingOrDefaultHeader(r,i.Accept,c.ApplicationJson),r[i.ContentType]=this._getExistingOrDefaultHeader(r,i.ContentType,c.ApplicationJson);let o=await this.patch(e,n,r);return this._processResponse(o,this.requestOptions)}async request(e,t,r,n){if(this._disposed)throw Error("Client has already been disposed.");let s,i=new URL(t),a=this._prepareRequest(e,i,n),c=this._allowRetries&&-1!=p.indexOf(e)?this._maxRetries+1:1,d=0;for(;c>d;){if(s=await this.requestRaw(a,r),s&&s.message&&s.message.statusCode===o.Unauthorized){let e;for(let t=0;this.handlers.length>t;t++)if(this.handlers[t].canHandleAuthentication(s)){e=this.handlers[t];break}return e?e.handleAuthentication(this,a,r):s}let t=this._maxRedirects;for(;-1!=l.indexOf(s.message.statusCode)&&this._allowRedirects&&t>0;){const o=s.message.headers.location;if(!o)break;let c=new URL(o);if("https:"==i.protocol&&i.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 s.readBody(),c.hostname!==i.hostname)for(let e in n)"authorization"===e.toLowerCase()&&delete n[e];a=this._prepareRequest(e,c,n),s=await this.requestRaw(a,r),t--}if(-1==u.indexOf(s.message.statusCode))return s;d+=1,c>d&&(await s.readBody(),await this._performExponentialBackoff(d))}return s}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}requestRaw(e,t){return new Promise(((r,n)=>{this.requestRawWithCallback(e,t,((e,t)=>{e&&n(e),r(t)}))}))}requestRawWithCallback(e,t,r){let n;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let o=!1,s=(e,t)=>{o||(o=!0,r(e,t))},i=e.httpModule.request(e.options,(e=>{let t=new h(e);s(null,t)}));i.on("socket",(e=>{n=e})),i.setTimeout(this._socketTimeout||18e4,(()=>{n&&n.end(),s(Error("Request timeout: "+e.options.path),null)})),i.on("error",(e=>{s(e,null)})),t&&"string"==typeof t&&i.write(t,"utf8"),t&&"string"!=typeof t?(t.on("close",(()=>{i.end()})),t.pipe(i)):i.end()}getAgent(e){let t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,r){const n={};n.parsedUrl=t;const o="https:"===n.parsedUrl.protocol;n.httpModule=o?Re:Ce;const s=o?443:80;return n.options={},n.options.host=n.parsedUrl.hostname,n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):s,n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||""),n.options.method=e,n.options.headers=this._mergeHeaders(r),null!=this.userAgent&&(n.options.headers["user-agent"]=this.userAgent),n.options.agent=this._getAgent(n.parsedUrl),this.handlers&&this.handlers.forEach((e=>{e.prepareRequest(n.options)})),n}_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 n;var o;return this.requestOptions&&this.requestOptions.headers&&(n=(o=this.requestOptions.headers,Object.keys(o).reduce(((e,t)=>(e[t.toLowerCase()]=o[t],e)),{}))[t]),e[t]||n||r}_getAgent(e){let t,o=r.getProxyUrl(e),s=o&&o.hostname;if(this._keepAlive&&s&&(t=this._proxyAgent),this._keepAlive&&!s&&(t=this._agent),t)return t;const i="https:"===e.protocol;let a=100;if(this.requestOptions&&(a=this.requestOptions.maxSockets||Ce.globalAgent.maxSockets),s){n||(n=Be("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 s="https:"===o.protocol;r=i?s?n.httpsOverHttps:n.httpsOverHttp:s?n.httpOverHttps:n.httpOverHttp,t=r(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:a};t=i?new Re.Agent(e):new Ce.Agent(e),this._agent=t}return t||(t=i?Re.globalAgent:Ce.globalAgent),i&&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,n)=>{const s=e.message.statusCode,i={statusCode:s,result:null,headers:{}};let a,c;s==o.NotFound&&r(i);try{c=await e.readBody(),c&&c.length>0&&(a=t&&t.deserializeDates?JSON.parse(c,f.dateTimeDeserializer):JSON.parse(c),i.result=a),i.headers=e.message.headers}catch(e){}if(s>299){let e;e=a&&a.message?a.message:c&&c.length>0?c:"Failed request: ("+s+")";let t=new d(e,s);t.result=i.result,n(t)}else r(i)}))}}e.exports.HttpClient=f})),Be.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 n=[e.hostname.toUpperCase()];"number"==typeof t&&n.push(`${n[0]}:${t}`);for(let e of r.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e)))if(n.some((t=>t===e)))return!0;return!1}Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getProxyUrl=e=>{let t,n,o="https:"===e.protocol;return r(e)||(n=o?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY,n&&(t=new URL(n))),t},e.exports.checkBypass=r})),Be.register("bbp3j",((e,t)=>{e.exports=Be("fNJ5J")})),Be.register("fNJ5J",(function(t,r){function n(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||Ce.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",((e,r,n,o)=>{for(var i=s(r,n,o),a=0,c=t.requests.length;c>a;++a){var l=t.requests[a];if(l.host===i.host&&l.port===i.port)return t.requests.splice(a,1),void l.request.onSocket(e)}e.destroy(),t.removeSocket(e)}))}function o(e,t){var r=this;n.prototype.createSocket.call(r,e,(n=>{var o=e.request.getHeader("host"),s=i({},r.options,{socket:n,servername:o?o.replace(/:.*$/,""):e.host}),a=Ae.connect(0,s);r.sockets[r.sockets.indexOf(n)]=a,t(a)}))}function s(e,t,r){return"string"==typeof e?{host:e,port:t,localAddress:r}:e}function i(e){for(var t=1,r=arguments.length;r>t;++t){var n=arguments[t];if("object"==typeof n)for(var o=Object.keys(n),s=0,i=o.length;i>s;++s){var a=o[s];void 0!==n[a]&&(e[a]=n[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 n(e);return t.request=Ce.request,t},c=e=>{var t=new n(e);return t.request=Ce.request,t.createSocket=o,t.defaultPort=443,t},l=e=>{var t=new n(e);return t.request=Re.request,t},u=e=>{var t=new n(e);return t.request=Re.request,t.createSocket=o,t.defaultPort=443,t},Le.inherits(n,Ne.EventEmitter),n.prototype.addRequest=function(e,t,r,n){var o=this,a=i({request:e},o.options,s(t,r,n));this.maxSockets>o.sockets.length?o.createSocket(a,(t=>{function r(){o.emit("free",t,a)}function n(e){o.removeSocket(t),t.removeListener("free",r),t.removeListener("close",n),t.removeListener("agentRemove",n)}t.on("free",r),t.on("close",n),t.on("agentRemove",n),e.onSocket(t)})):o.requests.push(a)},n.prototype.createSocket=function(e,t){function r(r,s,i){var c;return a.removeAllListeners(),s.removeAllListeners(),200!==r.statusCode?(d("tunneling socket could not be established, statusCode=%d",r.statusCode),s.destroy(),(c=Error("tunneling socket could not be established, statusCode="+r.statusCode)).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(o)):i.length>0?(d("got illegal response body from proxy"),s.destroy(),(c=Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(o)):(d("tunneling connection has established"),n.sockets[n.sockets.indexOf(o)]=s,t(s))}var n=this,o={};n.sockets.push(o);var s=i({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(s.localAddress=e.localAddress),s.proxyAuth&&(s.headers=s.headers||{},s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")),d("making CONNECT request");var a=n.request(s);a.useChunkedEncodingByDefault=!1,a.once("response",(e=>{e.upgrade=!0})),a.once("upgrade",((e,t,n)=>{process.nextTick((()=>{r(e,t,n)}))})),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),n.removeSocket(o)})),a.end()},n.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=()=>{}})),Be.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}}})),Be.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 n=0;r.length>n;n++){var o=r[n].toLowerCase();if(o&&e.substr(-o.length).toLowerCase()===o)return!0}return!1})(t,r)}function n(e,t,n){Ie.stat(e,((o,s)=>{n(o,!o&&r(s,e,t))}))}e.exports=n,n.sync=(e,t)=>r(Ie.statSync(e),e,t)})),Be.register("9yF3I",((e,t)=>{function r(e,t,r){Ie.stat(e,((e,o)=>{r(e,!e&&n(o,t))}))}function n(e,t){return e.isFile()&&((e,t)=>{var r=e.mode,n=e.uid,o=e.gid,s=void 0!==t.uid?t.uid:process.getuid&&process.getuid(),i=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===i||r&a&&n===s||r&l&&0===s})(e,t)}e.exports=r,r.sync=(e,t)=>n(Ie.statSync(e),t)})),Be.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")})),Be.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 n(e){return u(this,void 0,void 0,(function*(){ke.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 n=[];for(const o of r){const r=yield h.tryGetExecutablePath(d.join(o,e),t);r&&n.push(r)}return n}))}function s(e,t,r,o){return u(this,void 0,void 0,(function*(){if(r>=255)return;r++,yield n(t);const a=yield h.readdir(e);for(const n of a){const a=`${e}/${n}`,c=`${t}/${n}`;(yield h.lstat(a)).isDirectory()?yield s(a,c,r,o):yield i(a,c,o)}yield h.chmod(t,(yield h.stat(e)).mode)}))}function i(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,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=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,n)=>new(r||(r=Promise))(((o,s)=>{function i(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.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(De),d=l(Te),h=l(Be("2GOko")),f=Le.promisify(p.exec),m=Le.promisify(p.execFile);e.exports.cp=function(e,t,r={}){return u(this,void 0,void 0,(function*(){const{force:n,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()&&!n)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 s(e,l,0,n)}else{if(""===d.relative(e,l))throw Error(`'${l}' and '${e}' are the same file`);yield i(e,l,n)}}))},e.exports.mv=function(e,t,o={}){return u(this,void 0,void 0,(function*(){if(yield h.exists(t)){let n=!0;if((yield h.isDirectory(t))&&(t=d.join(t,d.basename(e)),n=yield h.exists(t)),n){if(null!=o.force&&!o.force)throw Error("Destination already exists");yield r(t)}}yield n(d.dirname(t)),yield h.rename(e,t)}))},e.exports.rmRF=r,e.exports.mkdirP=n,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 n=yield o(t);return n&&n.length>0?n[0]:""}))},e.exports.findInPath=o})),Be.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 n,o=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=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}),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)&&o(t,e,r);return s(t,e),t}),a=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,s)=>{function i(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.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=i(Ie),l=i(Te);e.exports.chmod=(n=c.promises).chmod,e.exports.copyFile=n.copyFile,e.exports.lstat=n.lstat,e.exports.mkdir=n.mkdir,e.exports.readdir=n.readdir,e.exports.readlink=n.readlink,e.exports.rename=n.rename,e.exports.rmdir=n.rmdir,e.exports.stat=n.stat,e.exports.symlink=n.symlink,e.exports.unlink=n.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,n){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(n.some((t=>t.toUpperCase()===e)))return t}else if(r(o))return t;const s=t;for(const i of n){t=s+i,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),n=l.basename(t).toUpperCase();for(const o of yield e.exports.readdir(r))if(n===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"}})),Be.register("2YXUl",(function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),n=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 n(t,e),t}),s=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,s)=>{function i(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports._readLinuxVersionFile=e.exports._getOsVersion=e.exports._findMatch=void 0;const i=o(Be("4URNm"));var a=Be("9bqVn");e.exports._findMatch=function(t,r,n,o){return s(this,void 0,void 0,(function*(){const s=$e.platform();let c,l,u;for(const c of n){const n=c.version;if(a.debug(`check ${n} satisfies ${t}`),i.satisfies(n,t)&&(!r||c.stable===r)&&(u=c.files.find((t=>{a.debug(`${t.arch}===${o} && ${t.platform}===${s}`);let r=t.arch===o&&t.platform===s;if(r&&t.platform_version){const n=e.exports._getOsVersion();r=n===t.platform_version||i.satisfies(n,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=$e.platform();let r="";if("darwin"===t)r=""+De.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 Ie.existsSync(e)?r=""+Ie.readFileSync(e):Ie.existsSync(t)&&(r=""+Ie.readFileSync(t)),r}})),Be.register("4URNm",((e,t)=>{var r=Be("bikcG");e.exports={re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:Be("bgOMw").SEMVER_SPEC_VERSION,SemVer:Be("7qUJS"),compareIdentifiers:Be("12NXI").compareIdentifiers,rcompareIdentifiers:Be("12NXI").rcompareIdentifiers,parse:Be("gdrva"),valid:Be("fVzwP"),clean:Be("hOYls"),inc:Be("dGcr6"),diff:Be("bBssn"),major:Be("fB2B7"),minor:Be("bye2i"),patch:Be("87ZGF"),prerelease:Be("4agny"),compare:Be("howpO"),rcompare:Be("zcbgY"),compareLoose:Be("iGBo4"),compareBuild:Be("80ezM"),sort:Be("4qmtg"),rsort:Be("4pjXu"),gt:Be("6KPS4"),lt:Be("lr5pz"),eq:Be("jXghC"),neq:Be("fqqGA"),gte:Be("5cRW4"),lte:Be("fwsB7"),cmp:Be("823yM"),coerce:Be("1YYsi"),Comparator:Be("eR6XK"),Range:Be("hvUff"),satisfies:Be("c8FZS"),toComparators:Be("2J2hR"),maxSatisfying:Be("lbfMG"),minSatisfying:Be("5wbuE"),minVersion:Be("hZRNG"),validRange:Be("fqnzG"),outside:Be("77bPN"),gtr:Be("gD8Tz"),ltr:Be("bpPww"),intersects:Be("cHIUn"),simplifyRange:Be("k8aCs"),subset:Be("388OD")}})),Be.register("bikcG",((e,t)=>{var r=Be("bgOMw").MAX_SAFE_COMPONENT_LENGTH,n=Be("jkMsx");const o=(t=e.exports={}).re=[],s=t.src=[],i=t.t={};let a=0;const c=(e,t,r)=>{const c=a++;n(e,c,t),i[e]=c,s[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",`(${s[i.NUMERICIDENTIFIER]})\\.(${s[i.NUMERICIDENTIFIER]})\\.(${s[i.NUMERICIDENTIFIER]})`),c("MAINVERSIONLOOSE",`(${s[i.NUMERICIDENTIFIERLOOSE]})\\.(${s[i.NUMERICIDENTIFIERLOOSE]})\\.(${s[i.NUMERICIDENTIFIERLOOSE]})`),c("PRERELEASEIDENTIFIER",`(?:${s[i.NUMERICIDENTIFIER]}|${s[i.NONNUMERICIDENTIFIER]})`),c("PRERELEASEIDENTIFIERLOOSE",`(?:${s[i.NUMERICIDENTIFIERLOOSE]}|${s[i.NONNUMERICIDENTIFIER]})`),c("PRERELEASE",`(?:-(${s[i.PRERELEASEIDENTIFIER]}(?:\\.${s[i.PRERELEASEIDENTIFIER]})*))`),c("PRERELEASELOOSE",`(?:-?(${s[i.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[i.PRERELEASEIDENTIFIERLOOSE]})*))`),c("BUILDIDENTIFIER","[0-9A-Za-z-]+"),c("BUILD",`(?:\\+(${s[i.BUILDIDENTIFIER]}(?:\\.${s[i.BUILDIDENTIFIER]})*))`),c("FULLPLAIN",`v?${s[i.MAINVERSION]}${s[i.PRERELEASE]}?${s[i.BUILD]}?`),c("FULL",`^${s[i.FULLPLAIN]}$`),c("LOOSEPLAIN",`[v=\\s]*${s[i.MAINVERSIONLOOSE]}${s[i.PRERELEASELOOSE]}?${s[i.BUILD]}?`),c("LOOSE",`^${s[i.LOOSEPLAIN]}$`),c("GTLT","((?:<|>)?=?)"),c("XRANGEIDENTIFIERLOOSE",s[i.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*"),c("XRANGEIDENTIFIER",s[i.NUMERICIDENTIFIER]+"|x|X|\\*"),c("XRANGEPLAIN",`[v=\\s]*(${s[i.XRANGEIDENTIFIER]})(?:\\.(${s[i.XRANGEIDENTIFIER]})(?:\\.(${s[i.XRANGEIDENTIFIER]})(?:${s[i.PRERELEASE]})?${s[i.BUILD]}?)?)?`),c("XRANGEPLAINLOOSE",`[v=\\s]*(${s[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[i.XRANGEIDENTIFIERLOOSE]})(?:${s[i.PRERELEASELOOSE]})?${s[i.BUILD]}?)?)?`),c("XRANGE",`^${s[i.GTLT]}\\s*${s[i.XRANGEPLAIN]}$`),c("XRANGELOOSE",`^${s[i.GTLT]}\\s*${s[i.XRANGEPLAINLOOSE]}$`),c("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),c("COERCERTL",s[i.COERCE],!0),c("LONETILDE","(?:~>?)"),c("TILDETRIM",`(\\s*)${s[i.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",c("TILDE",`^${s[i.LONETILDE]}${s[i.XRANGEPLAIN]}$`),c("TILDELOOSE",`^${s[i.LONETILDE]}${s[i.XRANGEPLAINLOOSE]}$`),c("LONECARET","(?:\\^)"),c("CARETTRIM",`(\\s*)${s[i.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",c("CARET",`^${s[i.LONECARET]}${s[i.XRANGEPLAIN]}$`),c("CARETLOOSE",`^${s[i.LONECARET]}${s[i.XRANGEPLAINLOOSE]}$`),c("COMPARATORLOOSE",`^${s[i.GTLT]}\\s*(${s[i.LOOSEPLAIN]})$|^$`),c("COMPARATOR",`^${s[i.GTLT]}\\s*(${s[i.FULLPLAIN]})$|^$`),c("COMPARATORTRIM",`(\\s*)${s[i.GTLT]}\\s*(${s[i.LOOSEPLAIN]}|${s[i.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",c("HYPHENRANGE",`^\\s*(${s[i.XRANGEPLAIN]})\\s+-\\s+(${s[i.XRANGEPLAIN]})\\s*$`),c("HYPHENRANGELOOSE",`^\\s*(${s[i.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[i.XRANGEPLAINLOOSE]})\\s*$`),c("STAR","(<|>)?=?\\s*\\*"),c("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),c("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})),Be.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}})),Be.register("jkMsx",((e,t)=>{const r=("object"==typeof process&&process,()=>{});e.exports=r})),Be.register("7qUJS",(function(e,t){var r=Be("jkMsx"),n=Be("bgOMw"),o=n.MAX_LENGTH,s=n.MAX_SAFE_INTEGER,i=Be("bikcG"),a=i.re,c=i.t,l=Be("eUvvN"),u=Be("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 n=e.trim().match(t.loose?a[c.LOOSE]:a[c.FULL]);if(!n)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>s||0>this.major)throw new TypeError("Invalid major version");if(this.minor>s||0>this.minor)throw new TypeError("Invalid minor version");if(this.patch>s||0>this.patch)throw new TypeError("Invalid patch version");this.prerelease=n[4]?n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&s>t)return t}return e})):[],this.build=n[5]?n[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 n=this.prerelease[t],o=e.prerelease[t];if(r("prerelease compare",t,n,o),void 0===n&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===n)return-1;if(n!==o)return u(n,o)}while(++t)}compareBuild(e){e instanceof p||(e=new p(e,this.options));let t=0;do{const n=this.build[t],o=e.build[t];if(r("prerelease compare",t,n,o),void 0===n&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===n)return-1;if(n!==o)return u(n,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})),Be.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)),{}):{}})),Be.register("12NXI",((e,t)=>{const r=/^[0-9]+$/,n=(e,t)=>{const n=r.test(e),o=r.test(t);return n&&o&&(e=+e,t=+t),e===t?0:n&&!o?-1:o&&!n?1:t>e?-1:1};e.exports={compareIdentifiers:n,rcompareIdentifiers(e,t){return n(t,e)}}})),Be.register("gdrva",((e,t)=>{var r=Be("bgOMw").MAX_LENGTH,n=Be("bikcG"),o=n.re,s=n.t,i=Be("7qUJS"),a=Be("eUvvN");e.exports=(e,t)=>{if(t=a(t),e instanceof i)return e;if("string"!=typeof e)return null;if(e.length>r)return null;if(!(t.loose?o[s.LOOSE]:o[s.FULL]).test(e))return null;try{return new i(e,t)}catch(e){return null}}})),Be.register("fVzwP",((e,t)=>{var r=Be("gdrva");e.exports=(e,t)=>{const n=r(e,t);return n?n.version:null}})),Be.register("hOYls",((e,t)=>{var r=Be("gdrva");e.exports=(e,t)=>{const n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}})),Be.register("dGcr6",((e,t)=>{var r=Be("7qUJS");e.exports=(e,t,n,o)=>{"string"==typeof n&&(o=n,n=void 0);try{return new r(e instanceof r?e.version:e,n).inc(t,o).version}catch(e){return null}}})),Be.register("bBssn",((e,t)=>{var r=Be("gdrva"),n=Be("jXghC");e.exports=(e,t)=>{if(n(e,t))return null;{const n=r(e),o=r(t),s=n.prerelease.length||o.prerelease.length,i=s?"pre":"",a=s?"prerelease":"";for(const e in n)if(("major"===e||"minor"===e||"patch"===e)&&n[e]!==o[e])return i+e;return a}}})),Be.register("jXghC",((e,t)=>{var r=Be("howpO");e.exports=(e,t,n)=>0===r(e,t,n)})),Be.register("howpO",((e,t)=>{var r=Be("7qUJS");e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n))})),Be.register("fB2B7",((e,t)=>{var r=Be("7qUJS");e.exports=(e,t)=>new r(e,t).major})),Be.register("bye2i",((e,t)=>{var r=Be("7qUJS");e.exports=(e,t)=>new r(e,t).minor})),Be.register("87ZGF",((e,t)=>{var r=Be("7qUJS");e.exports=(e,t)=>new r(e,t).patch})),Be.register("4agny",((e,t)=>{var r=Be("gdrva");e.exports=(e,t)=>{const n=r(e,t);return n&&n.prerelease.length?n.prerelease:null}})),Be.register("zcbgY",((e,t)=>{var r=Be("howpO");e.exports=(e,t,n)=>r(t,e,n)})),Be.register("iGBo4",((e,t)=>{var r=Be("howpO");e.exports=(e,t)=>r(e,t,!0)})),Be.register("80ezM",((e,t)=>{var r=Be("7qUJS");e.exports=(e,t,n)=>{const o=new r(e,n),s=new r(t,n);return o.compare(s)||o.compareBuild(s)}})),Be.register("4qmtg",((e,t)=>{var r=Be("80ezM");e.exports=(e,t)=>e.sort(((e,n)=>r(e,n,t)))})),Be.register("4pjXu",((e,t)=>{var r=Be("80ezM");e.exports=(e,t)=>e.sort(((e,n)=>r(n,e,t)))})),Be.register("6KPS4",((e,t)=>{var r=Be("howpO");e.exports=(e,t,n)=>r(e,t,n)>0})),Be.register("lr5pz",((e,t)=>{var r=Be("howpO");e.exports=(e,t,n)=>0>r(e,t,n)})),Be.register("fqqGA",((e,t)=>{var r=Be("howpO");e.exports=(e,t,n)=>0!==r(e,t,n)})),Be.register("5cRW4",((e,t)=>{var r=Be("howpO");e.exports=(e,t,n)=>r(e,t,n)>=0})),Be.register("fwsB7",((e,t)=>{var r=Be("howpO");e.exports=(e,t,n)=>0>=r(e,t,n)})),Be.register("823yM",((e,t)=>{var r=Be("jXghC"),n=Be("fqqGA"),o=Be("6KPS4"),s=Be("5cRW4"),i=Be("lr5pz"),a=Be("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 n(e,c,l);case">":return o(e,c,l);case">=":return s(e,c,l);case"<":return i(e,c,l);case"<=":return a(e,c,l);default:throw new TypeError("Invalid operator: "+t)}}})),Be.register("1YYsi",((e,t)=>{var r=Be("7qUJS"),n=Be("gdrva"),o=Be("bikcG"),s=o.re,i=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=s[i.COERCERTL].exec(e))&&(!o||o.index+o[0].length!==e.length);)o&&t.index+t[0].length===o.index+o[0].length||(o=t),s[i.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;s[i.COERCERTL].lastIndex=-1}else o=e.match(s[i.COERCE]);return null===o?null:n(`${o[2]}.${o[3]||"0"}.${o[4]||"0"}`,t)}})),Be.register("eR6XK",(function(e,t){const r=Symbol();class n{static get ANY(){return r}constructor(e,t){if(t=o(t),e instanceof n){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?i[a.COMPARATORLOOSE]:i[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 n))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),s=this.semver.version===e.semver.version,i=!(">="!==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||s&&i||a||l}}e.exports=n;var o=Be("eUvvN"),s=Be("bikcG"),i=s.re,a=s.t,c=Be("823yM"),l=Be("jkMsx"),u=Be("7qUJS"),p=Be("hvUff")})),Be.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 s)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=n.get(t);if(r)return r;const o=this.options.loose;e=e.replace(o?l[u.HYPHENRANGELOOSE]:l[u.HYPHENRANGE],$(this.options.includePrerelease)),i("hyphen replace",e),e=e.replace(l[u.COMPARATORTRIM],p),i("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=>y(e,this.options))).join(" ").split(/\s+/).map((e=>_(e,this.options)));o&&(a=a.filter((e=>(i("loose invalid filter",e,this.options),!!e.match(l[u.COMPARATORLOOSE]))))),i("range list",a);const c=new Map,m=a.map((e=>new s(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 v=[...c.values()];return n.set(t,v),v}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some((r=>v(r,t)&&e.set.some((e=>v(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(T(this.set[t],e,this.options))return!0;return!1}}e.exports=r;const n=new(Be("3fo7A"))({max:1e3});var o=Be("eUvvN"),s=Be("eR6XK"),i=Be("jkMsx"),a=Be("7qUJS"),c=Be("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,v=(e,t)=>{let r=!0;const n=e.slice();let o=n.pop();for(;r&&n.length;)r=n.every((e=>o.intersects(e,t))),o=n.pop();return r},y=(e,t)=>(i("comp",e,t),e=E(e,t),i("caret",e),e=w(e,t),i("tildes",e),e=S(e,t),i("xrange",e),e=P(e,t),i("stars",e),e),g=e=>!e||"x"===e.toLowerCase()||"*"===e,w=(e,t)=>e.trim().split(/\s+/).map((e=>x(e,t))).join(" "),x=(e,t)=>e.replace(t.loose?l[u.TILDELOOSE]:l[u.TILDE],((t,r,n,o,s)=>{let a;return i("tilde",e,t,r,n,o,s),g(r)?a="":g(n)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:g(o)?a=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:s?(i("replaceTilde pr",s),a=`>=${r}.${n}.${o}-${s} <${r}.${+n+1}.0-0`):a=`>=${r}.${n}.${o} <${r}.${+n+1}.0-0`,i("tilde return",a),a})),E=(e,t)=>e.trim().split(/\s+/).map((e=>b(e,t))).join(" "),b=(e,t)=>{i("caret",e,t);const r=t.includePrerelease?"-0":"";return e.replace(t.loose?l[u.CARETLOOSE]:l[u.CARET],((t,n,o,s,a)=>{let c;return i("caret",e,t,n,o,s,a),g(n)?c="":g(o)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:g(s)?c="0"===n?`>=${n}.${o}.0${r} <${n}.${+o+1}.0-0`:`>=${n}.${o}.0${r} <${+n+1}.0.0-0`:a?(i("replaceCaret pr",a),c="0"===n?"0"===o?`>=${n}.${o}.${s}-${a} <${n}.${o}.${+s+1}-0`:`>=${n}.${o}.${s}-${a} <${n}.${+o+1}.0-0`:`>=${n}.${o}.${s}-${a} <${+n+1}.0.0-0`):(i("no pr"),c="0"===n?"0"===o?`>=${n}.${o}.${s}${r} <${n}.${o}.${+s+1}-0`:`>=${n}.${o}.${s}${r} <${n}.${+o+1}.0-0`:`>=${n}.${o}.${s} <${+n+1}.0.0-0`),i("caret return",c),c}))},S=(e,t)=>(i("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,n,o,s,a,c)=>{i("xRange",e,r,n,o,s,a,c);const l=g(o),u=l||g(s),p=u||g(a);return"="===n&&p&&(n=""),c=t.includePrerelease?"-0":"",l?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&p?(u&&(s=0),a=0,">"===n?(n=">=",u?(o=+o+1,s=0,a=0):(s=+s+1,a=0)):"<="===n&&(n="<",u?o=+o+1:s=+s+1),"<"===n&&(c="-0"),r=`${n+o}.${s}.${a}${c}`):u?r=`>=${o}.0.0${c} <${+o+1}.0.0-0`:p&&(r=`>=${o}.${s}.0${c} <${o}.${+s+1}.0-0`),i("xRange return",r),r})),P=(e,t)=>(i("replaceStars",e,t),e.trim().replace(l[u.STAR],"")),_=(e,t)=>(i("replaceGTE0",e,t),e.trim().replace(l[t.includePrerelease?u.GTE0PRE:u.GTE0],"")),$=e=>(t,r,n,o,s,i,a,c,l,u,p,d,h)=>`${r=g(n)?"":g(o)?`>=${n}.0.0${e?"-0":""}`:g(s)?`>=${n}.${o}.0${e?"-0":""}`:i?">="+r:`>=${r}${e?"-0":""}`} ${c=g(l)?"":g(u)?`<${+l+1}.0.0-0`:g(p)?`<${l}.${+u+1}.0-0`:d?`<=${l}.${u}.${p}-${d}`:e?`<${l}.${u}.${+p+1}-0`:"<="+c}`.trim(),T=(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(i(e[r].semver),e[r].semver!==s.ANY&&e[r].semver.prerelease.length>0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}})),Be.register("3fo7A",(function(e,t){const r="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,n=new Set,o=(e,t)=>{const r="LRU_CACHE_OPTION_"+e;i(r)&&a(r,e+" option","options."+t,d)},s=(e,t)=>{const r="LRU_CACHE_METHOD_"+e;if(i(r)){const{prototype:n}=d,{get:o}=Object.getOwnPropertyDescriptor(n,e);a(r,e+" method",`cache.${t}()`,o)}},i=e=>!(process.noDeprecation||n.has(e)),a=(e,t,r,o)=>{n.add(e),process.emitWarning(`The ${t} is deprecated. Please use ${r} instead.`,"DeprecationWarning",e,o)},c=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),l=e=>c(e)?e>256?e>65536?e>4294967296?e>Number.MAX_SAFE_INTEGER?null:u:Uint32Array:Uint16Array:Uint8Array:null;class u extends Array{constructor(e){super(e),this.fill(0)}}class p{constructor(e){const t=l(e);this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}}class d{constructor(e={}){const{max:t,ttl:r,ttlResolution:n=1,ttlAutopurge:s,updateAgeOnGet:i,allowStale:a,dispose:u,disposeAfter:h,noDisposeOnSet:f,noUpdateTTL:m,maxSize:v,sizeCalculation:y}=e,{length:g,maxAge:w,stale:x}=e instanceof d?{}:e;if(!c(t))throw new TypeError("max option must be an integer");const E=l(t);if(!E)throw Error("invalid max value: "+t);if(this.max=t,this.maxSize=v||0,this.sizeCalculation=y||g,this.sizeCalculation){if(!this.maxSize)throw new TypeError("cannot set sizeCalculation without setting maxSize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculating set to non-function")}if(this.keyMap=new Map,this.keyList=Array(t).fill(null),this.valList=Array(t).fill(null),this.next=new E(t),this.prev=new E(t),this.head=0,this.tail=0,this.free=new p(t),this.initialFill=1,this.size=0,"function"==typeof u&&(this.dispose=u),"function"==typeof h?(this.disposeAfter=h,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!f,this.noUpdateTTL=!!m,this.maxSize){if(!c(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!a||!!x,this.updateAgeOnGet=!!i,this.ttlResolution=c(n)||0===n?n:1,this.ttlAutopurge=!!s,this.ttl=r||w||0,this.ttl){if(!c(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.initializeTTLTracking()}x&&o("stale","allowStale"),w&&o("maxAge","ttl"),g&&o("length","sizeCalculation")}initializeTTLTracking(){this.ttls=new u(this.max),this.starts=new u(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.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 u(this.max),this.removeItemSize=e=>this.calculatedSize-=this.sizes[e],this.addItemSize=(e,t,r,n,o)=>{const s=n||(o?o(t,r):0);this.sizes[e]=c(s)?s:0;const i=this.maxSize-this.sizes[e];for(;this.calculatedSize>i;)this.evict();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 d.prototype.delete.call(this,e)}}removeItemSize(e){}addItemSize(e,t,r,n,o){}*indexes(){if(this.size)for(let e=this.tail;this.isStale(e)||(yield e),e!==this.head;e=this.prev[e]);}*rindexes(){if(this.size)for(let e=this.head;this.isStale(e)||(yield e),e!==this.tail;e=this.next[e]);}*entries(){for(const e of this.indexes())yield[this.keyList[e],this.valList[e]]}*keys(){for(const e of this.indexes())yield this.keyList[e]}*values(){for(const e of this.indexes())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 s("prune","purgeStale"),this.purgeStale}purgeStale(){let e=!1;if(this.size)for(let t=this.head;;t=this.next[t]){const r=t===this.tail;if(this.isStale(t)&&(this.delete(this.keyList[t]),e=!0),r)break}return e}dump(){const e=[];for(const t of this.indexes()){const r=this.keyList[t],n={value:this.valList[t]};this.ttls&&(n.ttl=this.ttls[t]),this.sizes&&(n.size=this.sizes[t]),e.unshift([r,n])}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:n=this.noDisposeOnSet,size:o=0,sizeCalculation:s=this.sizeCalculation,noUpdateTTL:i=this.noUpdateTTL}={}){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,s),i=!1;else{const r=this.valList[a];t!==r&&(n||(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,s)),this.moveToTail(a)}if(0===r||0!==this.ttl||this.ttls||this.initializeTTLTracking(),i||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?this.evict():0!==this.free.length?this.free.pop():this.initialFill++}pop(){if(this.size){const e=this.valList[this.head];return this.evict(),e}}evict(){const e=this.head,t=this.keyList[e],r=this.valList[e];return this.dispose(r,t,"evict"),this.disposeAfter&&this.disposed.push([r,t,"evict"]),this.removeItemSize(e),this.head=this.next[e],this.keyMap.delete(t),this.size--,e}has(e){return this.keyMap.has(e)&&!this.isStale(this.keyMap.get(e))}peek(e,{allowStale:t=this.allowStale}={}){const r=this.keyMap.get(e);if(void 0!==r&&(t||!this.isStale(r)))return this.valList[r]}get(e,{allowStale:t=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet}={}){const n=this.keyMap.get(e);if(void 0!==n){if(this.isStale(n)){const r=t?this.valList[n]:void 0;return this.delete(e),r}return this.moveToTail(n),r&&this.updateItemAge(n),this.valList[n]}}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 s("del","delete"),this.delete}delete(e){let t=!1;if(0!==this.size){const r=this.keyMap.get(e);void 0!==r&&(t=!0,1===this.size?this.clear():(this.removeItemSize(r),this.dispose(this.valList[r],e,"delete"),this.disposeAfter&&this.disposed.push([this.valList[r],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(){if(this.dispose!==d.prototype.dispose)for(const e of this.rindexes())this.dispose(this.valList[e],this.keyList[e],"delete");if(this.disposeAfter)for(const e of this.rindexes())this.disposed.push([this.valList[e],this.keyList[e],"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 s("reset","clear"),this.clear}get length(){return((e,t)=>{const r="LRU_CACHE_PROPERTY_length";if(i(r)){const{prototype:e}=d,{get:t}=Object.getOwnPropertyDescriptor(e,"length");a(r,"length property","cache.size",t)}})(),this.size}}e.exports=d})),Be.register("c8FZS",((e,t)=>{var r=Be("hvUff");e.exports=(e,t,n)=>{try{t=new r(t,n)}catch(e){return!1}return t.test(e)}})),Be.register("2J2hR",((e,t)=>{var r=Be("hvUff");e.exports=(e,t)=>new r(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))})),Be.register("lbfMG",((e,t)=>{var r=Be("7qUJS"),n=Be("hvUff");e.exports=(e,t,o)=>{let s=null,i=null,a=null;try{a=new n(t,o)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(s&&-1!==i.compare(e)||(s=e,i=new r(s,o)))})),s}})),Be.register("5wbuE",((e,t)=>{var r=Be("7qUJS"),n=Be("hvUff");e.exports=(e,t,o)=>{let s=null,i=null,a=null;try{a=new n(t,o)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(s&&1!==i.compare(e)||(s=e,i=new r(s,o)))})),s}})),Be.register("hZRNG",((e,t)=>{var r=Be("7qUJS"),n=Be("hvUff"),o=Be("6KPS4");e.exports=(e,t)=>{e=new n(e,t);let s=new r("0.0.0");if(e.test(s))return s;if(s=new r("0.0.0-0"),e.test(s))return s;s=null;for(let t=0;e.set.length>t;++t){let n=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">=":n&&!o(t,n)||(n=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator)}})),!n||s&&!o(s,n)||(s=n)}return s&&e.test(s)?s:null}})),Be.register("fqnzG",((e,t)=>{var r=Be("hvUff");e.exports=(e,t)=>{try{return new r(e,t).range||"*"}catch(e){return null}}})),Be.register("77bPN",((e,t)=>{var r=Be("7qUJS"),n=Be("eR6XK");const{ANY:o}=n;var s=Be("hvUff"),i=Be("c8FZS"),a=Be("6KPS4"),c=Be("lr5pz"),l=Be("fwsB7"),u=Be("5cRW4");e.exports=(e,t,p,d)=>{let h,f,m,v,y;switch(e=new r(e,d),t=new s(t,d),p){case">":h=a,f=l,m=c,v=">",y=">=";break;case"<":h=c,f=u,m=a,v="<",y="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(i(e,t,d))return!1;for(let r=0;t.set.length>r;++r){let s=null,i=null;if(t.set[r].forEach((e=>{e.semver===o&&(e=new n(">=0.0.0")),s=s||e,i=i||e,h(e.semver,s.semver,d)?s=e:m(e.semver,i.semver,d)&&(i=e)})),s.operator===v||s.operator===y)return!1;if((!i.operator||i.operator===v)&&f(e,i.semver))return!1;if(i.operator===y&&m(e,i.semver))return!1}return!0}})),Be.register("gD8Tz",((e,t)=>{var r=Be("77bPN");e.exports=(e,t,n)=>r(e,t,">",n)})),Be.register("bpPww",((e,t)=>{var r=Be("77bPN");e.exports=(e,t,n)=>r(e,t,"<",n)})),Be.register("cHIUn",((e,t)=>{var r=Be("hvUff");e.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t))})),Be.register("k8aCs",((e,t)=>{var r=Be("c8FZS"),n=Be("howpO");e.exports=(e,t,o)=>{const s=[];let i=null,a=null;const c=e.sort(((e,t)=>n(e,t,o)));for(const e of c)r(e,t,o)?(a=e,i||(i=e)):(a&&s.push([i,a]),a=null,i=null);i&&s.push([i,null]);const l=[];for(const[e,t]of s)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}})),Be.register("388OD",((e,t)=>{var r=Be("hvUff"),n=Be("eR6XK");const{ANY:o}=n;var s=Be("c8FZS"),i=Be("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 n(">=0.0.0-0")]:[new n(">=0.0.0")]}if(1===t.length&&t[0].semver===o){if(r.includePrerelease)return!0;t=[new n(">=0.0.0")]}const a=new Set;let u,p,d,h,f,m,v;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=i(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&&!s(e,u+"",r))return null;if(p&&!s(e,p+"",r))return null;for(const n of t)if(!s(e,n+"",r))return!1;return!0}let y=!(!p||r.includePrerelease||!p.semver.prerelease.length)&&p.semver,g=!(!u||r.includePrerelease||!u.semver.prerelease.length)&&u.semver;y&&1===y.prerelease.length&&"<"===p.operator&&0===y.prerelease[0]&&(y=!1);for(const e of t){if(v=v||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,u)if(g&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===g.major&&e.semver.minor===g.minor&&e.semver.patch===g.patch&&(g=!1),">"===e.operator||">="===e.operator){if(h=c(u,e,r),h===e&&h!==u)return!1}else if(">="===u.operator&&!s(u.semver,e+"",r))return!1;if(p)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(f=l(p,e,r),f===e&&f!==p)return!1}else if("<="===p.operator&&!s(p.semver,e+"",r))return!1;if(!e.operator&&(p||u)&&0!==d)return!1}return!(u&&m&&!p&&0!==d||p&&v&&!u&&0!==d||g||y)},c=(e,t,r)=>{if(!e)return t;const n=i(e.semver,t.semver,r);return n>0?e:0>n||">"===t.operator&&">="===e.operator?t:e},l=(e,t,r)=>{if(!e)return t;const n=i(e.semver,t.semver,r);return 0>n?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new r(e,n),t=new r(t,n);let o=!1;e:for(const r of e.set){for(const e of t.set){const t=a(r,e,n);if(o=o||null!==t,t)continue e}if(o)return!1}return!0}})),Be.register("iFKS7",((e,t)=>{var r=Be("joDHm"),n=Be("inTPA");e.exports=(e,t,o)=>{var s=t&&o||0;"string"==typeof e&&(t="binary"===e?Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||r)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var a=0;16>a;++a)t[s+a]=i[a];return t||n(i)}})),Be.register("joDHm",((e,t)=>{e.exports=()=>je.randomBytes(16)})),Be.register("inTPA",((e,t)=>{for(var r=[],n=0;256>n;++n)r[n]=(n+256).toString(16).substr(1);e.exports=(e,t)=>{var n=t||0;return""+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]}})),Be.register("e0fPv",(function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),n=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 n(t,e),t}),s=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,s)=>{function i(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.argStringToArray=e.exports.ToolRunner=void 0;const i=o($e),a=o(Ne),c=o(De),l=o(Te),u=o(Be("fvrnx")),p=o(Be("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(),n=this._getSpawnArgs(e);let o=t?"":"[command]";if(d)if(this._isCmdFile()){o+=r;for(const e of n)o+=" "+e}else if(e.windowsVerbatimArguments){o+=`"${r}"`;for(const e of n)o+=" "+e}else{o+=this._windowsQuoteCmdArg(r);for(const e of n)o+=" "+this._windowsQuoteCmdArg(e)}else{o+=r;for(const e of n)o+=" "+e}return o}_processLineBuffer(e,t,r){try{let n=t+""+e,o=n.indexOf(i.EOL);for(;o>-1;)r(n.substring(0,o)),n=n.substring(o+i.EOL.length),o=n.indexOf(i.EOL);return n}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 n of e)if(t.some((e=>e===n))){r=!0;break}if(!r)return e;let n='"',o=!0;for(let t=e.length;t>0;t--)n+=e[t-1],o&&"\\"===e[t-1]?n+="\\":'"'===e[t-1]?(o=!0,n+='"'):o=!1;return n+='"',n.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let t='"',r=!0;for(let n=e.length;n>0;n--)t+=e[n-1],r&&"\\"===e[n-1]?t+="\\":'"'===e[n-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 s(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)=>s(this,void 0,void 0,(function*(){this._debug("exec tool: "+this.toolPath),this._debug("arguments:");for(const e of this.args)this._debug(" "+e);const r=this._cloneExecOptions(this.options);!r.silent&&r.outStream&&r.outStream.write(this._getCommandString(r)+i.EOL);const n=new h(r,this.toolPath);if(n.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(),s=c.spawn(o,this._getSpawnArgs(r),this._getSpawnOptions(this.options,o));let a="";s.stdout&&s.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(s.stderr&&s.stderr.on("data",(e=>{n.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)}))})),s.on("error",(e=>{n.processError=e.message,n.processExited=!0,n.processClosed=!0,n.CheckComplete()})),s.on("exit",(e=>{n.processExitCode=e,n.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),n.CheckComplete()})),s.on("close",(e=>{n.processExitCode=e,n.processExited=!0,n.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),n.CheckComplete()})),n.on("done",((r,n)=>{a.length>0&&this.emit("stdline",a),l.length>0&&this.emit("errline",l),s.removeAllListeners(),r?t(r):e(n)})),this.options.input){if(!s.stdin)throw Error("child process missing stdin");s.stdin.end(this.options.input)}}))))}))}},e.exports.argStringToArray=e=>{function t(e){o&&'"'!==e&&(s+="\\"),s+=e,o=!1}const r=[];let n=!1,o=!1,s="";for(let i=0;e.length>i;i++){const a=e.charAt(i);'"'!==a?"\\"===a&&o?t(a):"\\"===a&&n?o=!0:" "!==a||n?t(a):s.length>0&&(r.push(s),s=""):o?t(a):n=!n}return s.length>0&&r.push(s.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=Fe.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())}}})),Be.register("apy8x",((r,n)=>{async function o(e,r,n){let o;if(e.startsWith("pypy-")){const t=await i.findPyPyVersion(e,n);o=`${t.resolvedPyPyVersion}-${t.resolvedPythonVersion}`,a.info(`Successfully setup PyPy ${t.resolvedPyPyVersion} with Python (${t.resolvedPythonVersion})`)}else{const t=await s.findPythonVersion(e,n);o=t.version,a.info(`Successfully setup ${t.impl} (${o})`)}d()&&(()=>{const e=t(Te).join(__dirname,"python_matcher.json");if(!Ie.existsSync(e))return f("the python_matcher.json file does not exist in the same folder as setup_cpp.js");a.info("::add-matcher::"+e)})()}e(r.exports,"setupActionsPython",(()=>o));var s=Be("6O4iu"),i=Be("k520S"),a=Be("9bqVn")})),Be.register("6O4iu",((t,r)=>{function n(e,t){const r=We.find.bind(void 0,"PyPy",e);let n=r(t);if(!n&&i.IS_WINDOWS&&(n=r("x86")),!n)throw Error(`PyPy ${e} not found`);const s=Te.join(n,"bin");l.exportVariable("pythonLocation",i.IS_WINDOWS?n:s),l.addPath(n),l.addPath(s),i.IS_WINDOWS&&l.addPath(Te.join(n,"Scripts"));const a="pypy"+e;return l.setOutput("python-version",a),{impl:a,version:o(n)}}function o(e){const t=e.split(Te.sep),r=t.findIndex((e=>"PyPy"===e||"Python"===e));return t[r+1]||""}async function s(e,t){switch(e.toUpperCase()){case"PYPY2":return n("2",t);case"PYPY3":return n("3.6",t);default:return await(async(e,t)=>{const r=((n=e).endsWith("-dev")?`>= ${n.slice(0,-4)}.0-a0`:n).replace(/(\d+\.\d+\.\d+)((?:a|b|rc)\d*)/g,"$1-$2");var n;l.debug(`Semantic version spec of ${e} is ${r}`);let s=We.find("Python",r,t);if(!s){l.info(`Version ${r} was not found in the local cache`);const e=await c.findReleaseFromManifest(r,t);e&&e.files&&e.files.length>0&&(l.info(`Version ${r} is available for downloading`),await c.installCpythonFromRelease(e),s=We.find("Python",r,t))}if(!s)throw Error([`Version ${e} with arch ${t} not found`,"The list of all available versions can be found here: "+c.MANIFEST_URL].join($e.EOL));if(l.exportVariable("pythonLocation",s),i.IS_LINUX){const e=process.env.LD_LIBRARY_PATH?":"+process.env.LD_LIBRARY_PATH:"",t=Te.join(s,"lib");e.split(":").includes(t)||l.exportVariable("LD_LIBRARY_PATH",t+e)}if(l.addPath(s),l.addPath((e=>Te.join(e,i.IS_WINDOWS?"Scripts":"bin"))(s)),i.IS_WINDOWS){const e=Te.basename(Te.dirname(s)),t=a.major(e),r=a.minor(e),n=Te.join(process.env.APPDATA||"","Python",`Python${t}${r}`,"Scripts");l.addPath(n)}const u=o(s);return l.setOutput("python-version",u),{impl:"CPython",version:u}})(e,t)}}e(t.exports,"findPythonVersion",(()=>s));var i=Be("laG7O"),a=Be("4URNm"),c=Be("gJvxO"),l=Be("9bqVn")})),Be.register("laG7O",((r,n)=>{function o(e,r,n,o=!1){const s=Te.join(e,r),i=Te.join(e,n);t(Ie).existsSync(i)||(t(Ie).symlinkSync(s,i),!h&&o&&t(Ie).chmodSync(i,"755"))}function s(e){return i(e)||!!d.validRange(e)}function i(e){return"nightly"===e}function a(e){return Te.basename(Te.dirname(e))}function c(e){let r="",n=Te.join(e,y);return t(Ie).existsSync(n)&&(r=""+t(Ie).readFileSync(n)),r}function l(e,r){const n=Te.join(e,y);t(Ie).writeFileSync(n,r)}function u(e){return/^\d+\.\d+$/.test(e)}function p(){return"GITHUB.COM"!==new URL(process.env.GITHUB_SERVER_URL||"https://github.com").hostname.toUpperCase()}e(r.exports,"IS_WINDOWS",(()=>h)),e(r.exports,"IS_LINUX",(()=>f)),e(r.exports,"WINDOWS_ARCHS",(()=>m)),e(r.exports,"WINDOWS_PLATFORMS",(()=>v)),e(r.exports,"createSymlinkInFolder",(()=>o)),e(r.exports,"validateVersion",(()=>s)),e(r.exports,"isNightlyKeyword",(()=>i)),e(r.exports,"getPyPyVersionFromPath",(()=>a)),e(r.exports,"readExactPyPyVersionFile",(()=>c)),e(r.exports,"writeExactPyPyVersionFile",(()=>l)),e(r.exports,"validatePythonVersionFormatForPyPy",(()=>u)),e(r.exports,"isGhes",(()=>p));var d=Be("4URNm");const h="win32"===process.platform,f="linux"===process.platform,m=["x86","x64"],v=["win32","win64"],y="PYPY_VERSION"})),Be.register("gJvxO",((t,r)=>{async function n(e,t){const r=await We.getManifestFromRepo(l,u,c,p);return await We.findFromManifest(e,!1,r,t)}async function o(e){const t=e.files[0].download_url;s.info(`Download from "${t}"`);const r=await We.downloadTool(t,void 0,c);let n;s.info("Extract downloaded archive"),n=i.IS_WINDOWS?await We.extractZip(r):await We.extractTar(r),s.info("Execute installation script"),await(async e=>{const t={cwd:e,env:{...process.env,...i.IS_LINUX&&{LD_LIBRARY_PATH:Te.join(e,"lib")}},silent:!0,listeners:{stdout(e){s.info((""+e).trim())},stderr(e){s.error((""+e).trim())}}};i.IS_WINDOWS?await ut.exec("powershell",["./setup.ps1"],t):await ut.exec("bash",["./setup.sh"],t)})(n)}e(t.exports,"MANIFEST_URL",(()=>d)),e(t.exports,"findReleaseFromManifest",(()=>n)),e(t.exports,"installCpythonFromRelease",(()=>o));var s=Be("9bqVn"),i=Be("laG7O");const a=s.getInput("token"),c=!a||i.isGhes()?void 0:"token "+a,l="actions",u="python-versions",p="main",d="https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json"}));var We={},Xe=We&&We.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),Ye=We&&We.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),Je=We&&We.__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)&&Xe(t,e,r);return Ye(t,e),t}),Ke=We&&We.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,s)=>{function i(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())}))),Ze=We&&We.__importDefault||(e=>e&&e.__esModule?e:{default:e});Object.defineProperty(We,"__esModule",{value:!0}),We.evaluateVersions=We.isExplicitVersion=We.findFromManifest=We.getManifestFromRepo=We.findAllVersions=We.find=We.cacheFile=We.cacheDir=We.extractZip=We.extractXar=We.extractTar=We.extract7z=We.downloadTool=We.HTTPError=void 0;const Qe=Je(Be("9bqVn")),et=Je(Be("fvrnx")),tt=Je(Ie),rt=Je(Be("2YXUl")),nt=Je($e),ot=Je(Te),st=Je(Be("ba1Cu")),it=Je(Be("4URNm")),at=Je(Me),ct=Je(Le),lt=Ze(Be("iFKS7"));var ut={},pt=ut&&ut.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),dt=ut&&ut.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),ht=ut&&ut.__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)&&pt(t,e,r);return dt(t,e),t}),ft=ut&&ut.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,s)=>{function i(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(ut,"__esModule",{value:!0}),ut.getExecOutput=ut.exec=void 0;const mt=ht(Be("e0fPv"));ut.exec=r,ut.getExecOutput=function(e,t,n){var o,s;return ft(this,void 0,void 0,(function*(){let i="",a="";const c=new Ue.StringDecoder("utf8"),l=new Ue.StringDecoder("utf8"),u=null===(o=null==n?void 0:n.listeners)||void 0===o?void 0:o.stdout,p=null===(s=null==n?void 0:n.listeners)||void 0===s?void 0:s.stderr,d=Object.assign(Object.assign({},null==n?void 0:n.listeners),{stdout(e){i+=c.write(e),u&&u(e)},stderr(e){a+=l.write(e),p&&p(e)}}),h=yield r(e,t,Object.assign(Object.assign({},n),{listeners:d}));return i+=c.end(),a+=l.end(),{exitCode:h,stdout:i,stderr:a}}))};var vt={},yt=vt&&vt.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),gt=vt&&vt.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),wt=vt&&vt.__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)&&yt(t,e,r);return gt(t,e),t}),xt=vt&&vt.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,s)=>{function i(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(vt,"__esModule",{value:!0}),vt.RetryHelper=void 0;const Et=wt(Be("9bqVn"));vt.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 xt(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;Et.info(e.message)}const n=this.getSleepAmount();Et.info(`Waiting ${n} seconds before trying again`),yield this.sleep(n),r++}return yield e()}))}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return xt(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,1e3*e)))}))}};class bt extends Error{constructor(e){super("Unexpected HTTP response: "+e),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}}We.HTTPError=bt;const St="win32"===process.platform,Ot="darwin"===process.platform;We.downloadTool=function(e,t,r,n){return Ke(this,void 0,void 0,(function*(){t=t||ot.join(u(),lt.default()),yield et.mkdirP(ot.dirname(t)),Qe.debug("Downloading "+e),Qe.debug("Destination "+t);const o=p("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),s=p("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),i=new vt.RetryHelper(3,o,s);return yield i.execute((()=>Ke(this,void 0,void 0,(function*(){return yield function(e,t,r,n){return Ke(this,void 0,void 0,(function*(){if(tt.existsSync(t))throw Error(`Destination file path ${t} already exists`);const o=new st.HttpClient("actions/tool-cache",[],{allowRetries:!1});r&&(Qe.debug("set auth"),void 0===n&&(n={}),n.authorization=r);const s=yield o.get(e,n);if(200!==s.message.statusCode){const t=new bt(s.message.statusCode);throw Qe.debug(`Failed to download from "${e}". Code(${s.message.statusCode}) Message(${s.message.statusMessage})`),t}const i=ct.promisify(at.pipeline),a=p("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>s.message))();let c=!1;try{return yield i(a,tt.createWriteStream(t)),Qe.debug("download complete"),c=!0,t}finally{if(!c){Qe.debug("download failed");try{yield et.rmRF(t)}catch(e){Qe.debug(`Failed to delete '${t}'. ${e.message}`)}}}}))}(e,t||"",r,n)}))),(e=>!(e instanceof bt&&e.httpStatusCode&&500>e.httpStatusCode&&408!==e.httpStatusCode&&429!==e.httpStatusCode)))}))},We.extract7z=function(e,t,r){return Ke(this,void 0,void 0,(function*(){ke.ok(St,"extract7z() not supported on current OS"),ke.ok(e,'parameter "file" is required'),t=yield o(t);const n=process.cwd();if(process.chdir(t),r)try{const t=["x",Qe.isDebug()?"-bb1":"-bb0","-bd","-sccUTF-8",e],o={silent:!0};yield ut.exec(`"${r}"`,t,o)}finally{process.chdir(n)}else{const r=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${ot.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,"")}'`],o={silent:!0};try{const e=yield et.which("powershell",!0);yield ut.exec(`"${e}"`,r,o)}finally{process.chdir(n)}}return t}))},We.extractTar=function(e,t,r="xz"){return Ke(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'file' is required");t=yield o(t),Qe.debug("Checking tar --version");let n="";yield ut.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout(e){return n+=""+e},stderr(e){return n+=""+e}}}),Qe.debug(n.trim());const s=n.toUpperCase().includes("GNU TAR");let i;i=r instanceof Array?r:[r],Qe.isDebug()&&!r.includes("v")&&i.push("-v");let a=t,c=e;return St&&s&&(i.push("--force-local"),a=t.replace(/\\/g,"/"),c=e.replace(/\\/g,"/")),s&&(i.push("--warning=no-unknown-keyword"),i.push("--overwrite")),i.push("-C",a,"-f",c),yield ut.exec("tar",i),t}))},We.extractXar=function(e,t,r=[]){return Ke(this,void 0,void 0,(function*(){let n;ke.ok(Ot,"extractXar() not supported on current OS"),ke.ok(e,'parameter "file" is required'),t=yield o(t),n=r instanceof Array?r:[r],n.push("-x","-C",t,"-f",e),Qe.isDebug()&&n.push("-v");const s=yield et.which("xar",!0);var i;return yield ut.exec(`"${s}"`,(i=n,Array.from(new Set(i)))),t}))},We.extractZip=function(e,t){return Ke(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'file' is required");return t=yield o(t),St?yield function(e,t){return Ke(this,void 0,void 0,(function*(){const r=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),n=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),o=yield et.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}', '${n}', $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 '${n}' -Force } else { throw $_ } } ;`].join(" ")];Qe.debug("Using pwsh at path: "+o),yield ut.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 '${n}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}', $true) }`].join(" ")],t=yield et.which("powershell",!0);Qe.debug("Using powershell at path: "+t),yield ut.exec(`"${t}"`,e)}}))}(e,t):yield function(e,t){return Ke(this,void 0,void 0,(function*(){const r=yield et.which("unzip",!0),n=[e];Qe.isDebug()||n.unshift("-q"),n.unshift("-o"),yield ut.exec(`"${r}"`,n,{cwd:t})}))}(e,t),t}))},We.cacheDir=function(e,t,r,n){return Ke(this,void 0,void 0,(function*(){if(r=it.clean(r)||r,n=n||nt.arch(),Qe.debug(`Caching tool ${t} ${r} ${n}`),Qe.debug("source dir: "+e),!tt.statSync(e).isDirectory())throw Error("sourceDir is not a directory");const o=yield s(t,r,n);for(const t of tt.readdirSync(e)){const r=ot.join(e,t);yield et.cp(r,o,{recursive:!0})}return i(t,r,n),o}))},We.cacheFile=function(e,t,r,n,o){return Ke(this,void 0,void 0,(function*(){if(n=it.clean(n)||n,o=o||nt.arch(),Qe.debug(`Caching tool ${r} ${n} ${o}`),Qe.debug("source file: "+e),!tt.statSync(e).isFile())throw Error("sourceFile is not a file");const a=yield s(r,n,o),c=ot.join(a,t);return Qe.debug("destination file "+c),yield et.cp(e,c),i(r,n,o),a}))},We.find=(e,t,r)=>{if(!e)throw Error("toolName parameter is required");if(!t)throw Error("versionSpec parameter is required");r=r||nt.arch(),a(t)||(t=c(n(e,r),t));let o="";if(t){t=it.clean(t)||"";const n=ot.join(l(),e,t,r);Qe.debug("checking cache: "+n),tt.existsSync(n)&&tt.existsSync(n+".complete")?(Qe.debug(`Found tool in cache ${e} ${t} ${r}`),o=n):Qe.debug("not found")}return o},We.findAllVersions=n,We.getManifestFromRepo=function(e,t,r,n="master"){return Ke(this,void 0,void 0,(function*(){let o=[];const s=`https://api.github.com/repos/${e}/${t}/git/trees/${n}`,i=new st.HttpClient("tool-cache"),a={};r&&(Qe.debug("set auth"),a.authorization=r);const c=yield i.getJson(s,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 i.get(l,a)).readBody();if(u){u=u.replace(/^\uFEFF/,"");try{o=JSON.parse(u)}catch(e){Qe.debug("Invalid json")}}return o}))},We.findFromManifest=function(e,t,r,n=nt.arch()){return Ke(this,void 0,void 0,(function*(){return yield rt._findMatch(e,t,r,n)}))},We.isExplicitVersion=a,We.evaluateVersions=c,Be.register("k520S",((t,r)=>{async function n(e,t){let r,n="",c="";const l=(e=>{const t=e.split("-").filter((e=>!!e));if(2>t.length||"pypy"!=t[0])throw Error("Invalid 'version' property for PyPy. PyPy version should be specified as 'pypy-<python-version>'. See README for examples and documentation.");const r=t[1];let n;if(n=t.length>2?o.pypyVersionToSemantic(t[2]):"x",!s.validateVersion(r)||!s.validateVersion(n))throw Error("Invalid 'version' property for PyPy. Both Python version and PyPy versions should satisfy SemVer notation. See README for examples and documentation.");if(!s.validatePythonVersionFormatForPyPy(r))throw Error("Invalid format of Python version for PyPy. Python version should be specified in format 'x.y'. See README for examples and documentation.");return{pypyVersion:n,pythonVersion:r}})(e);({installDir:r,resolvedPythonVersion:c,resolvedPyPyVersion:n}=((e,t,r)=>{let n="",o="",c=s.IS_WINDOWS?(e=>{let t="";return s.WINDOWS_ARCHS.forEach((r=>t=t||We.find("PyPy",e,r))),t})(e):We.find("PyPy",e,r);return c&&(o=s.getPyPyVersionFromPath(c),n=s.readExactPyPyVersionFile(c),i.satisfies(n,t)||(c=null,n="",o="")),c||a.info(`PyPy version ${e} (${t}) was not found in the local cache`),{installDir:c,resolvedPythonVersion:o,resolvedPyPyVersion:n}})(l.pythonVersion,l.pypyVersion,t)),r||({installDir:r,resolvedPythonVersion:c,resolvedPyPyVersion:n}=await o.installPyPy(l.pypyVersion,l.pythonVersion,t));const u=Te.join(r,s.IS_WINDOWS?"Scripts":"bin"),p=o.getPyPyBinaryPath(r);return a.exportVariable("pythonLocation",p),a.addPath(p),a.addPath(u),{resolvedPyPyVersion:n,resolvedPythonVersion:c}}e(t.exports,"findPyPyVersion",(()=>n));var o=Be("gKdCo"),s=Be("laG7O"),i=Be("4URNm"),a=Be("9bqVn")})),Be.register("gKdCo",((r,n)=>{async function o(e,r,n){let o;const h=await(async()=>{const e="https://downloads.python.org/pypy/versions.json",t=new p.HttpClient("tool-cache"),r=await t.getJson(e);if(!r.result)throw Error(`Unable to retrieve the list of available PyPy versions from '${e}'`);return r.result})();if(!h||0===h.length)throw Error("No release was found in PyPy version.json");const f=((e,t,r,n)=>{const o=e.filter((e=>{const o=u.satisfies(u.coerce(e.python_version),t),s=d.isNightlyKeyword(r)&&d.isNightlyKeyword(e.pypy_version)||u.satisfies(i(e.pypy_version),r),a=e.files&&(d.IS_WINDOWS?(e=>e.files.some((e=>d.WINDOWS_ARCHS.includes(e.arch)&&d.WINDOWS_PLATFORMS.includes(e.platform))))(e):((e,t,r)=>e.files.some((e=>e.arch===t&&e.platform===r)))(e,n,process.platform));return o&&s&&a}));if(0===o.length)return null;const s=o.sort(((e,t)=>u.compare(u.coerce(i(t.pypy_version)),u.coerce(i(e.pypy_version)))||u.compare(u.coerce(t.python_version),u.coerce(e.python_version))))[0];return{foundAsset:d.IS_WINDOWS?a(s):c(s,n,process.platform),resolvedPythonVersion:s.python_version,resolvedPyPyVersion:s.pypy_version}})(h,r,e,n);if(!f||!f.foundAsset)throw Error(`PyPy version ${r} (${e}) with arch ${n} not found`);const{foundAsset:m,resolvedPythonVersion:v,resolvedPyPyVersion:y}=f;let g=""+m.download_url;l.info(`Downloading PyPy from "${g}" ...`);const w=await We.downloadTool(g);l.info("Extracting downloaded archive..."),o=d.IS_WINDOWS?await We.extractZip(w):await We.extractTar(w,void 0,"x");const x=t(Ie).readdirSync(o)[0],E=Te.join(o,x);let b=E;d.isNightlyKeyword(y)||(b=await We.cacheDir(E,"PyPy",v,n)),d.writeExactPyPyVersionFile(b,y);const S=s(b);return await(async(e,t)=>{const r=u.coerce(t),n=u.major(r),o=2===n?"":"3";let s=d.IS_WINDOWS?".exe":"";l.info("Creating symlinks..."),d.createSymlinkInFolder(e,`pypy${o}${s}`,`python${n}${s}`,!0),d.createSymlinkInFolder(e,`pypy${o}${s}`,"python"+s,!0)})(S,v),await(async e=>{l.info("Installing and updating pip");const t=Te.join(e,"python");await ut.exec(t+" -m ensurepip"),await ut.exec(e+"/python -m pip install --ignore-installed pip")})(S),{installDir:b,resolvedPythonVersion:v,resolvedPyPyVersion:y}}function s(e){const t=Te.join(e,"bin");return d.IS_WINDOWS?e:t}function i(e){return e.replace(/(\d+\.\d+\.\d+)((?:a|b|rc))(\d*)/g,"$1-$2.$3")}function a(e){return e.files.find((e=>d.WINDOWS_ARCHS.includes(e.arch)&&d.WINDOWS_PLATFORMS.includes(e.platform)))}function c(e,t,r){return e.files.find((e=>e.arch===t&&e.platform===r))}e(r.exports,"installPyPy",(()=>o)),e(r.exports,"getPyPyBinaryPath",(()=>s)),e(r.exports,"pypyVersionToSemantic",(()=>i));var l=Be("9bqVn"),u=Be("4URNm"),p=Be("ba1Cu"),d=Be("laG7O")}));var Pt=Be("9bqVn");Be.register("6mDGW",((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 n(e,t,r){const n=(e=>{const t=c[e.locale];let r=e.unitTypeLookupOrder.slice();r.unshift(e.unitType),r=Array.from(new Set(r));let n=null;if(r.some((e=>{if(void 0!==t[e])return n=t[e],!0})),null===n)throw Error("Can not find any unit type data for locale: "+e.locale);return n})(r);return o.pluralize(r.locale,t,n[e]).replace("{0}",t)}var o=Be("5FRs7"),s=Be("3Zbea");const i=[["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:n}=t;if(!c[e]){if(!s||!n)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)}})(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 n=[];return i.some((e=>{const t=e[0],o=e[1],s=Math.floor(r/o);if(r-=s*o,n.push([t,s]),0>=r)return!0})),n})(e,t),l=[];for(const e of a){const[t,r]=e;if(r>0&&l.push(n(t,r,o)),l.length>=o.span)break}return l.join(o.delimiter)})(t,o,a=Object.assign({},e,a||{}))}}},addLocale:r,defaultConfig:a}})),Be.register("5FRs7",((e,t)=>{e.exports=Be("j5MHF")})),Be.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 s=n[e](t);return void 0!==o[s]?o[s]:null}function r(e){(e=>void 0!==n[e])(e)||(e=>{try{require(__dirname+"/../locales/"+e+".js")}catch(t){throw Error("Failed to load the following locale: "+e)}})(e)}var n={},o={create(e){return r(e),{pluralize(r,n){return t(e,r,n)}}},addLocale(e,t){n[e]=t},pluralize:t};void 0!==e.exports?e.exports=o:this.numerous=o}).call(e.exports)})),Be.register("3Zbea",((e,t)=>{"use strict";e.exports=!("undefined"==typeof process||!process.versions||!process.versions.node)})),e(module.exports,"main",(()=>Se)),e(module.exports,"getCompilerInfo",(()=>Oe)),Pt=Be("9bqVn");var _t={};const $t="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,Tt=$t?";":":";var It,Ct={};It="win32"===process.platform||Ve.TESTING_WINDOWS?Be("ftrAD"):Be("9yF3I"),Ct=v,v.sync=(e,t)=>{try{return It.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e}};const Rt=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),At=(e,t)=>{const r=t.colon||Tt,n=e.match(/\//)||$t&&e.match(/\\/)?[""]:[...$t?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],o=$t?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=$t?o.split(r):[""];return $t&&-1!==e.indexOf(".")&&""!==s[0]&&s.unshift(""),{pathEnv:n,pathExt:s,pathExtExe:o}},Nt=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});const{pathEnv:n,pathExt:o,pathExtExe:s}=At(e,t),i=[],a=r=>new Promise(((o,s)=>{if(r===n.length)return t.all&&i.length?o(i):s(Rt(e));const a=n[r],l=/^".*"$/.test(a)?a.slice(1,-1):a,u=Te.join(l,e),p=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u;o(c(p,r,0))})),c=(e,r,n)=>new Promise(((l,u)=>{if(n===o.length)return l(a(r+1));const p=o[n];Ct(e+p,{pathExt:s},((o,s)=>{if(!o&&s){if(!t.all)return l(e+p);i.push(e+p)}return l(c(e,r,n+1))}))}));return r?a(0).then((e=>r(null,e)),r):a(0)};let kt;_t=Nt,Nt.sync=(e,t)=>{t=t||{};const{pathEnv:r,pathExt:n,pathExtExe:o}=At(e,t),s=[];for(let i=0;r.length>i;i++){const a=r[i],c=/^".*"$/.test(a)?a.slice(1,-1):a,l=Te.join(c,e),u=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+l:l;for(let e=0;n.length>e;e++){const r=u+n[e];try{if(Ct.sync(r,{pathExt:o})){if(!t.all)return r;s.push(r)}}catch(e){}}}if(t.all&&s.length)return s;if(t.nothrow)return null;throw Rt(e)};var Lt,Dt={},jt={},Ft={},Mt={};const Ut=(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 Gt,qt;(Mt=Ut).default=Ut,Lt=e=>g(e)||g(e,!0),Gt=e=>e.replace(/([()\][%!^"`<>&|;, *?])/g,"^$1"),qt=(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 Vt,Ht;Vt=(e="")=>{const t=e.match(/^#!(.*)/);if(!t)return null;const[r,n]=t[0].replace(/#! ?/,"").split(" "),o=r.split("/").pop();return"env"===o?n:n?`${o} ${n}`:o},Ht=e=>{const t=Buffer.alloc(150);let r;try{r=Ie.openSync(e,"r"),Ie.readSync(r,t,0,150,0),Ie.closeSync(r)}catch(e){}return Vt(""+t)};const zt="win32"===process.platform,Bt=/\.(?:com|exe)$/i,Wt=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;Ft=(e,t,r)=>{t&&!Array.isArray(t)&&(r=t,t=null);const n={command:e,args:t=t?t.slice(0):[],options:r=Object.assign({},r),file:void 0,original:{command:e,args:t}};return r.shell?n:(e=>{if(!zt)return e;const t=(e=>{e.file=Lt(e);const t=e.file&&Ht(e.file);return t?(e.args.unshift(e.file),e.command=t,Lt(e)):e.file})(e),r=!Bt.test(t);if(e.options.forceShell||r){const r=Wt.test(t);e.command=Te.normalize(e.command),e.command=Gt(e.command),e.args=e.args.map((e=>qt(e,r)));const n=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${n}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e})(n)};var Xt={};const Yt="win32"===process.platform;var Jt;Xt={hookChildProcess(e,t){if(!Yt)return;const r=e.emit;e.emit=function(n,o){if("exit"===n){const n=x(o,t);if(n)return r.call(e,"error",n)}return r.apply(e,arguments)}},verifyENOENT:x,verifyENOENTSync(e,t){return Yt&&1===e&&!t.file?w(t.original,"spawnSync"):null},notFoundError:w},(jt=E).spawn=E,jt.sync=(e,t,r)=>{const n=Ft(e,t,r),o=De.spawnSync(n.command,n.args,n.options);return o.error=o.error||Xt.verifyENOENTSync(o.status,n),o},jt._parse=Ft,jt._enoent=Xt,Jt=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 Kt={};const Zt=e=>{let t;e={cwd:process.cwd(),path:process.env[Mt()],execPath:process.execPath,...e};let r=Te.resolve(e.cwd);const n=[];for(;t!==r;)n.push(Te.join(r,"node_modules/.bin")),t=r,r=Te.resolve(r,"..");const o=Te.resolve(e.cwd,e.execPath,"..");return n.push(o),n.concat(e.path).join(Te.delimiter)};(Kt=Zt).default=Zt,Kt.env=e=>{const t={...(e={env:process.env,...e}).env},r=Mt({env:t});return e.path=t[r],t[r]=Kt(e),t};var Qt={},er={};const tr=(e,t)=>{for(const r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};(er=tr).default=tr;const rr=new WeakMap,nr=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let r,n=0;const o=e.displayName||e.name||"<anonymous>",s=function(...i){if(rr.set(s,++n),1===n)r=e.apply(this,i),e=null;else if(!0===t.throw)throw Error(`Function \`${o}\` can only be called once`);return r};return er(s,e),rr.set(s,n),s};(Qt=nr).default=nr,Qt.callCount=e=>{if(!rr.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return rr.get(e)};var or,sr={};Object.defineProperty(sr,"__esModule",{value:!0}),sr.signalsByNumber=sr.signalsByName=void 0;var ir={};Object.defineProperty(ir,"__esModule",{value:!0}),ir.getSignals=void 0;var ar={};Object.defineProperty(ar,"__esModule",{value:!0}),ar.SIGNALS=void 0,ar.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 cr={};Object.defineProperty(cr,"__esModule",{value:!0}),cr.SIGRTMAX=cr.getRealtimeSignals=void 0,cr.getRealtimeSignals=()=>Array.from({length:pr-ur+1},lr);const lr=(e,t)=>({name:"SIGRT"+(t+1),number:ur+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),ur=34,pr=64;cr.SIGRTMAX=pr,ir.getSignals=()=>{const e=(0,cr.getRealtimeSignals)();return[...ar.SIGNALS,...e].map(dr)};const dr=({name:e,number:t,description:r,action:n,forced:o=!1,standard:s})=>{const{signals:{[e]:i}}=$e.constants,a=void 0!==i;return{name:e,number:a?i:t,description:r,supported:a,action:n,forced:o,standard:s}},hr=(0,ir.getSignals)().reduce(((e,{name:t,number:r,description:n,supported:o,action:s,forced:i,standard:a})=>({...e,[t]:{name:t,number:r,description:n,supported:o,action:s,forced:i,standard:a}})),{});sr.signalsByName=hr;const fr=(()=>{const e=(0,ir.getSignals)(),t=Array.from({length:cr.SIGRTMAX+1},((t,r)=>((e,t)=>{const r=((e,t)=>{const r=t.find((({name:t})=>$e.constants.signals[t]===e));return void 0!==r?r:t.find((t=>t.number===e))})(e,t);if(void 0===r)return{};const{name:n,description:o,supported:s,action:i,forced:a,standard:c}=r;return{[e]:{name:n,number:e,description:o,supported:s,action:i,forced:a,standard:c}}})(r,e)));return Object.assign({},...t)})();sr.signalsByNumber=fr;var mr=sr.signalsByName;or=({stdout:e,stderr:t,all:r,error:n,signal:o,exitCode:s,command:i,escapedCommand:a,timedOut:c,isCanceled:l,killed:u,parsed:{options:{timeout:p}}})=>{const d=void 0===(o=null===o?void 0:o)?void 0:mr[o].description,h=(({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:o,exitCode:s,isCanceled:i})=>e?`timed out after ${t} milliseconds`:i?"was canceled":void 0!==r?"failed with "+r:void 0!==n?`was killed with ${n} (${o})`:void 0!==s?"failed with exit code "+s:"failed")({timedOut:c,timeout:p,errorCode:n&&n.code,signal:o,signalDescription:d,exitCode:s=null===s?void 0:s,isCanceled:l}),f=`Command ${h}: ${i}`,m="[object Error]"==={}.toString.call(n),v=m?`${f}\n${n.message}`:f,y=[v,t,e].filter(Boolean).join("\n");return m?(n.originalMessage=n.message,n.message=y):n=Error(y),n.shortMessage=v,n.command=i,n.escapedCommand=a,n.exitCode=s,n.signal=o,n.signalDescription=d,n.stdout=e,n.stderr=t,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!c,n.isCanceled=l,n.killed=u&&!c,n};var vr={};const yr=["stdin","stdout","stderr"],gr=e=>{if(!e)return;const{stdio:t}=e;if(void 0===t)return yr.map((t=>e[t]));if((e=>yr.some((t=>void 0!==e[t])))(e))throw Error("It's not possible to provide `stdio` in combination with one of "+yr.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,yr.length)},((e,r)=>t[r]))};(vr=gr).node=e=>{const t=gr(e);return"ipc"===t?"ipc":void 0===t||"string"==typeof t?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"]};var wr,xr={},Er=Ve.process;const br=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(br(Er)){var Sr,Or=ke,Pr=Be("bJALw"),_r=/^win/i.test(Er.platform),$r=Ne;"function"!=typeof $r&&($r=$r.EventEmitter),Er.__signal_exit_emitter__?Sr=Er.__signal_exit_emitter__:((Sr=Er.__signal_exit_emitter__=new $r).count=0,Sr.emitted={}),Sr.infinite||(Sr.setMaxListeners(1/0),Sr.infinite=!0),xr=(e,t)=>{if(!br(Ve.process))return()=>{};Or.equal(typeof e,"function","a callback must be provided for exit handler"),!1===Rr&&Ar();var r="exit";return t&&t.alwaysLast&&(r="afterexit"),Sr.on(r,e),()=>{Sr.removeListener(r,e),0===Sr.listeners("exit").length&&0===Sr.listeners("afterexit").length&&Tr()}};var Tr=()=>{Rr&&br(Ve.process)&&(Rr=!1,Pr.forEach((e=>{try{Er.removeListener(e,Cr[e])}catch(e){}})),Er.emit=Lr,Er.reallyExit=Nr,Sr.count-=1)};xr.unload=Tr;var Ir=(e,t,r)=>{Sr.emitted[e]||(Sr.emitted[e]=!0,Sr.emit(e,t,r))},Cr={};Pr.forEach((e=>{Cr[e]=()=>{br(Ve.process)&&Er.listeners(e).length===Sr.count&&(Tr(),Ir("exit",null,e),Ir("afterexit",null,e),_r&&"SIGHUP"===e&&(e="SIGINT"),Er.kill(Er.pid,e))}})),xr.signals=()=>Pr;var Rr=!1,Ar=()=>{!Rr&&br(Ve.process)&&(Rr=!0,Sr.count+=1,Pr=Pr.filter((e=>{try{return Er.on(e,Cr[e]),!0}catch(e){return!1}})),Er.emit=Dr,Er.reallyExit=kr)};xr.load=Ar;var Nr=Er.reallyExit,kr=e=>{br(Ve.process)&&(Er.exitCode=e||0,Ir("exit",Er.exitCode,null),Ir("afterexit",Er.exitCode,null),Nr.call(Er,Er.exitCode))},Lr=Er.emit,Dr=function(e,t){if("exit"===e&&br(Ve.process)){void 0!==t&&(Er.exitCode=t);var r=Lr.apply(this,arguments);return Ir("exit",Er.exitCode,null),Ir("afterexit",Er.exitCode,null),r}return Lr.apply(this,arguments)}}else xr=()=>()=>{};const jr=e=>e===$e.constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase();var Fr,Mr=(wr={spawnedKill(e,t="SIGTERM",r={}){const n=e(t);return((e,t,r,n)=>{if(!((e,{forceKillAfterTimeout:t},r)=>jr(e)&&!1!==t&&r)(t,r,n))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),s=setTimeout((()=>{e("SIGKILL")}),o);s.unref&&s.unref()})(e,t,r,n),n},spawnedCancel(e,t){e.kill()&&(t.isCanceled=!0)},setupTimeout(e,{timeout:t,killSignal:r="SIGTERM"},n){if(0===t||void 0===t)return n;let o;const s=new Promise(((n,s)=>{o=setTimeout((()=>{((e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}))})(e,r,s)}),t)})),i=n.finally((()=>{clearTimeout(o)}));return Promise.race([s,i])},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},n){if(!t||r)return n;const o=xr((()=>{e.kill()}));return n.finally((()=>{o()}))}}).spawnedKill,Ur=wr.spawnedCancel,Gr=wr.setupTimeout,qr=wr.validateTimeout,Vr=wr.setExitHandler,Hr={};const zr=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;zr.writable=e=>zr(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,zr.readable=e=>zr(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,zr.duplex=e=>zr.writable(e)&&zr.readable(e),zr.transform=e=>zr.duplex(e)&&"function"==typeof e._transform,Hr=zr;var Br,Wr={},Xr=Ge.constants,Yr=Me.PassThrough;Br=e=>{e={...e};const{array:t}=e;let{encoding:r}=e;const n="buffer"===r;let o=!1;t?o=!(r||n):r=r||"utf8",n&&(r=null);const s=new Yr({objectMode:o});r&&s.setEncoding(r);let i=0;const a=[];return s.on("data",(e=>{a.push(e),o?i=a.length:i+=e.length})),s.getBufferedValue=()=>t?a:n?Buffer.concat(a,i):a.join(""),s.getBufferedLength=()=>i,s};const Jr=(0,Le.promisify)(Me.pipeline);class Kr extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}(Wr=b).buffer=(e,t)=>b(e,{...t,encoding:"buffer"}),Wr.array=(e,t)=>b(e,{...t,array:!0}),Wr.MaxBufferError=Kr;var Zr,Qr=Me.PassThrough;Zr=function(){function e(t){return Array.isArray(t)?(t.forEach(e),this):(n.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==n.length}function r(e){!(n=n.filter((t=>t!==e))).length&&o.readable&&o.end()}var n=[],o=new Qr({objectMode:!0});return o.setMaxListeners(0),o.add=e,o.isEmpty=t,o.on("unpipe",r),[].slice.call(arguments).forEach(e),o};const en=async(e,t)=>{if(e){e.destroy();try{return await t}catch(e){return e.bufferedData}}},tn=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?Wr(e,{encoding:t,maxBuffer:n}):Wr.buffer(e,{maxBuffer:n})};var rn,nn=(Fr={handleInput(e,t){void 0!==t&&void 0!==e.stdin&&(Hr(t)?t.pipe(e.stdin):e.stdin.end(t))},makeAllStream(e,{all:t}){if(!t||!e.stdout&&!e.stderr)return;const r=Zr();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r},async getSpawnedResult({stdout:e,stderr:t,all:r},{encoding:n,buffer:o,maxBuffer:s},i){const a=tn(e,{encoding:n,buffer:o,maxBuffer:s}),c=tn(t,{encoding:n,buffer:o,maxBuffer:s}),l=tn(r,{encoding:n,buffer:o,maxBuffer:2*s});try{return await Promise.all([i,a,c,l])}catch(n){return Promise.all([{error:n,signal:n.signal,timedOut:n.timedOut},en(e,a),en(t,c),en(r,l)])}},validateInputSync({input:e}){if(Hr(e))throw new TypeError("The `input` option cannot be a stream in sync mode")}}).handleInput,on=Fr.getSpawnedResult,sn=Fr.makeAllStream,an=Fr.validateInputSync;const cn=(async()=>{})().constructor.prototype,ln=["then","catch","finally"].map((e=>[e,Reflect.getOwnPropertyDescriptor(cn,e)]));var un,pn=(rn={mergePromise(e,t){for(const[r,n]of ln){const o="function"==typeof t?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,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,dn=rn.getSpawnedPromise;const hn=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],fn=/^[\w.-]+$/;var mn=(un={joinCommand(e,t){return hn(e,t).join(" ")},getEscapedCommand(e,t){return hn(e,t).map((e=>(e=>"string"!=typeof e||fn.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,vn=un.parseCommand,yn=un.getEscapedCommand;const gn=(e,t,r={})=>{const n=jt._parse(e,t,r);return e=n.command,t=n.args,(r={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(r=n.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:n,execPath:o})=>{const s=t?{...process.env,...e}:e;return r?Kt.env({env:s,cwd:n,execPath:o}):s})(r),r.stdio=vr(r),"win32"===process.platform&&"cmd"===Te.basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n}},wn=(e,t,r)=>"string"==typeof t||Buffer.isBuffer(t)?e.stripFinalNewline?Jt(t):t:void 0===r?void 0:"",xn=(e,t,r)=>{const n=gn(e,t,r),o=mn(e,t),s=yn(e,t);let i;qr(n.options);try{i=De.spawn(n.file,n.args,n.options)}catch(e){const t=new De.ChildProcess,r=Promise.reject(or({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return pn(t,r)}const a=dn(i),c=Gr(i,n.options,a),l=Vr(i,n.options,c),u={isCanceled:!1};i.kill=Mr.bind(null,i.kill.bind(i)),i.cancel=Ur.bind(null,i,u);const p=Qt((async()=>{const[{error:e,exitCode:t,signal:r,timedOut:a},c,p,d]=await on(i,n.options,l),h=wn(n.options,c),f=wn(n.options,p),m=wn(n.options,d);if(e||0!==t||null!==r){const c=or({error:e,exitCode:t,signal:r,stdout:h,stderr:f,all:m,command:o,escapedCommand:s,parsed:n,timedOut:a,isCanceled:u.isCanceled,killed:i.killed});if(!n.options.reject)return c;throw c}return{command:o,escapedCommand:s,exitCode:0,stdout:h,stderr:f,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}));return nn(i,n.options.input),i.all=sn(i,n.options),pn(i,p)};let En;(Dt=xn).sync=(e,t,r)=>{const n=gn(e,t,r),o=mn(e,t),s=yn(e,t);let i;an(n.options);try{i=De.spawnSync(n.file,n.args,n.options)}catch(e){throw or({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}const a=wn(n.options,i.stdout,i.error),c=wn(n.options,i.stderr,i.error);if(i.error||0!==i.status||null!==i.signal){const e=or({stdout:a,stderr:c,error:i.error,signal:i.signal,exitCode:i.status,command:o,escapedCommand:s,parsed:n,timedOut:i.error&&"ETIMEDOUT"===i.error.code,isCanceled:!1,killed:null!==i.signal});if(!n.options.reject)return e;throw e}return{command:o,escapedCommand:s,exitCode:0,stdout:a,stderr:c,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},Dt.command=(e,t)=>{const[r,...n]=vn(e);return xn(r,n,t)},Dt.commandSync=(e,t)=>{const[r,...n]=vn(e);return xn.sync(r,n,t)},Dt.node=(e,t,r={})=>{t&&!Array.isArray(t)&&"object"==typeof t&&(r=t,t=[]);const n=vr.node(r),o=process.execArgv.filter((e=>!e.startsWith("--inspect"))),{nodePath:s=process.execPath,nodeOptions:i=o}=r;return xn(s,[...i,e,...Array.isArray(t)?t:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})},Pt=Be("9bqVn");let bn=!1,Sn=!1;Pt=Be("9bqVn");let On=!1;var Pn;Pt=Be("9bqVn");const _n=$e.homedir();let $n;Pn=e=>{if("string"!=typeof e)throw new TypeError("Expected a string, got "+typeof e);return _n?e.replace(/^~(?=$|\/|\\)/,_n):e};const Tn=$(".cpprc");let In,Cn=!1;Pt=Be("9bqVn");let Rn=!1;Pt=Be("9bqVn");var An=Be("fvrnx");let Nn;Pt=Be("9bqVn");let kn=!1;var Ln=Be("fwsB7"),Dn=Be("1YYsi"),jn=(Pt=Be("9bqVn"),Pt=Be("9bqVn"),Pt=Be("9bqVn"),Be("howpO")),Fn=(Dn=Be("1YYsi"),Be("fVzwP"));const Mn={llvm:"14.0.0",clangtidy:"14.0.0",clangformat:"14.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 Un,Gn,qn=!1;Ln=Be("fwsB7");var Vn=Be("fB2B7");Pt=Be("9bqVn"),Vn=Be("fB2B7"),Dn=Be("1YYsi"),Pt=Be("9bqVn");const Hn=(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"]),zn=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"]),Bn=new Map,Wn={"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"},Xn=new Set(["10.0.1"]);let Yn=!1;Pt=Be("9bqVn"),Pt=Be("9bqVn");var Jn,Kn,Zn,Qn={},eo=Qn&&Qn.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,s)=>{function i(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())}))),to=Qn&&Qn.__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(Qn,"__esModule",{value:!0});var ro={},no=ro&&ro.__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(ro,"__esModule",{value:!0});const oo=no($e);var so={};Object.defineProperty(so,"__esModule",{value:!0}),so.toCommandValue=e=>null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e),ro.issueCommand=ce,ro.issue=(e,t="")=>{ce(e,{},t)};class io{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 n in this.properties)if(this.properties.hasOwnProperty(n)){const o=this.properties[n];o&&(r?r=!1:e+=",",e+=`${n}=${t=o,so.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}var t;return e+="::"+(e=>so.toCommandValue(this.message).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A"))(),e}}var ao={},co=ao&&ao.__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(ao,"__esModule",{value:!0});const lo=co(Ie),uo=co($e);ao.issueCommand=(e,t)=>{const r=process.env["GITHUB_"+e];if(!r)throw Error("Unable to find environment variable for file command "+e);if(!lo.existsSync(r))throw Error("Missing file at path: "+r);lo.appendFileSync(r,`${so.toCommandValue(t)}${uo.EOL}`,{encoding:"utf8"})};const po=to($e),ho=to(Te);var fo,mo;(mo=fo=Qn.ExitCode||(Qn.ExitCode={}))[mo.Success=0]="Success",mo[mo.Failure=1]="Failure",Qn.exportVariable=(e,t)=>{const r=so.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV){const t="_GitHubActionsFileCommandDelimeter_";ao.issueCommand("ENV",`${e}<<${t}${po.EOL}${r}${po.EOL}${t}`)}else ro.issueCommand("set-env",{name:e},r)},Qn.setSecret=e=>{ro.issueCommand("add-mask",{},e)},Qn.addPath=e=>{process.env.GITHUB_PATH?ao.issueCommand("PATH",e):ro.issueCommand("add-path",{},e),process.env.PATH=`${e}${ho.delimiter}${process.env.PATH}`},Qn.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()},Qn.setOutput=(e,t)=>{ro.issueCommand("set-output",{name:e},t)},Qn.setCommandEcho=e=>{ro.issue("echo",e?"on":"off")},Qn.setFailed=e=>{process.exitCode=fo.Failure,le(e)},Qn.isDebug=()=>"1"===process.env.RUNNER_DEBUG,Qn.debug=e=>{ro.issueCommand("debug",{},e)},Qn.error=le,Qn.warning=e=>{ro.issue("warning",e instanceof Error?""+e:e)},Qn.info=e=>{process.stdout.write(e+po.EOL)},Qn.startGroup=ue,Qn.endGroup=pe,Qn.group=function(e,t){return eo(this,void 0,void 0,(function*(){let r;ue(e);try{r=yield t()}finally{pe()}return r}))},Qn.saveState=(e,t)=>{ro.issueCommand("save-state",{name:e},t)},Qn.getState=e=>process.env["STATE_"+e]||"";const vo=qe.env["ProgramFiles(x86)"],yo=[qe.env["ProgramFiles(x86)"],qe.env.ProgramFiles],go=["Enterprise","Professional","Community"],wo=["2022","2019","2017"],xo={2022:"17.0",2019:"16.0",2017:"15.0",2015:"14.0",2013:"12.0"};Jn=de;const Eo=vo+"\\Microsoft Visual Studio\\Installer";Kn=fe,Zn=(e,t,r,n,o,s)=>{if("win32"!=qe.platform)return void Qn.info("This is not a Windows virtual environment, bye!");qe.env.PATH+=Te.delimiter+Eo;let i={win32:"x86",win64:"x64",x86_64:"x64","x86-64":"x64"};e.toLowerCase()in i&&(e=i[e.toLowerCase()]);var a=[e];"true"==n&&a.push("uwp"),t&&a.push(t),r&&a.push("-vcvars_ver="+r),"true"==o&&a.push("-vcvars_spectre_libs=spectre");const c=`"${fe(s)}" ${a.join(" ")}`;Qn.debug("vcvars command-line: "+c);const l=(""+De.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}Qn.startGroup("Environment variables");for(let e of d){if(!e.includes("="))continue;let[t,r]=e.split("=");r!==f[t]&&(Qn.info("Setting "+t),me(t)&&(r=r.split(";").filter(((e,t,r)=>r.indexOf(e)===t)).join(";")),Qn.exportVariable(t,r))}Qn.endGroup(),Qn.info("Configured Developer Command Prompt")};var bo,So={};So=Be("6mDGW"),bo={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"}}}},Fn=Be("fVzwP"),Pt=Be("9bqVn");let Oo=!1;Pt=Be("9bqVn");const Po={cmake:H,ninja(e,t,r){return G("ninja",e,ge,t,r)},python:z,async vcpkg(e,r,n){return Oo&&null!==t(_t).sync("vcpkg",{nothrow:!0})?{binDir:Te.dirname(t(_t).sync("vcpkg"))}:("linux"===process.platform&&(await P("curl"),await P("zip"),await P("unzip"),await P("tar"),await P("git"),await P("pkg-config")),Ie.existsSync(Te.join(r,j("bootstrap-vcpkg")))?Pt.warning("Vcpkg folder already exists at "+r):t(Dt).sync("git",["clone","https://github.com/microsoft/vcpkg"],{cwd:Te.dirname(r),stdio:"inherit"}),t(Dt).sync(j((o="bootstrap-vcpkg","win32"===process.platform?o:"./"+o)),{cwd:r,shell:!0,stdio:"inherit"}),Pt.addPath(r),Oo=!0,{binDir:r});var o},async conan(e,t,r){return await Y("setuptools",""),Y("conan",e)},meson(e,t,r){return Y("meson",e)},gcovr(e,t,r){return Y("gcovr",e)},async opencppcoverage(e,t,r){if("win32"===process.platform)return await L("opencppcoverage",e),{binDir:(()=>{const e="C:/Program Files/OpenCppCoverage";return C(e),e})()}},llvm:oe,gcc:Q,choco:k,brew:y,ccache(e,t,r){switch(process.platform){case"win32":return L("ccache",e);case"darwin":return _("ccache",e);case"linux":return P("ccache",e);default:throw Error("Unsupported platform")}},async doxygen(e,t,r){switch(process.platform){case"win32":return await L("doxygen.install",e),await J(X("graphviz",void 0)),{binDir:(()=>{if("win32"===process.platform){const e="C:/Program Files/doxygen/bin";return C(e),e}throw Error("Unsupported platform")})()};case"darwin":{const e=_("doxygen",void 0);return await J(X("graphviz",void 0)),e}case"linux":{let n;try{n=await G("doxygen",e,K,t,r)}catch(e){m(`Failed to download doxygen binary. ${e}. Falling back to apt-get.`),n=await P("doxygen",void 0)}return await J(X("graphviz",void 0)),n}default:throw Error("Unsupported platform")}},graphviz:J,async cppcheck(e,t,r){switch(process.platform){case"win32":return await L("cppcheck",e),{binDir:(()=>{const e="C:/Program Files/Cppcheck";return C(e),e})()};case"darwin":return _("cppcheck",e);case"linux":return P("cppcheck",e);default:throw Error("Unsupported platform")}},clangtidy:ie,clangformat:ie,msvc:ye,vcvarsall:ve,async kcov(e,t,r){if("linux"===process.platform){const n=await G("kcov",e,Ee,t,r);return await P("libbinutils"),n}throw Error("Unsupported platform for "+r)},make(e,t,r){switch(process.platform){case"win32":return L("make",e);case"darwin":return _("make",e),Pt.addPath("/usr/local/opt/make/libexec/gnubin"),{binDir:"/usr/local/opt/make/libexec/gnubin"};case"linux":return P("make",e);default:throw Error("Unsupported platform")}},task(e,t,r){return G("task",e,q,t,r)},sevenzip:F},_o=["choco","brew","python","vcpkg","cmake","ninja","conan","meson","gcovr","opencppcoverage","ccache","doxygen","graphviz","cppcheck","clangtidy","clangformat","llvm","gcc","msvc","vcvarsall","kcov","make","task","sevenzip"],$o=["compiler","architecture",..._o];Se(process.argv).then((e=>{process.exitCode=e})).catch((e=>{h("main() panicked!"),h(e),process.exitCode=1}));
|
||
//# sourceMappingURL=setup_cpp.js.map
|