setup-cpp/dist/main.js

3 lines
114 KiB
JavaScript

function e(e){return e&&e.__esModule?e.default:e}function t(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}function r(e,t,o){if("function"==typeof t&&(o=t,t={}),!o){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise(((o,s)=>{r(e,t||{},((e,t)=>{e?s(e):o(t)}))}))}be(e,t||{},((e,r)=>{e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,r=!1),o(e,r)}))}function o(t,r,o){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeof _e)return{binDir:_e};const s=e(ge).sync("brew",{nothrow:!0});return null!==s?(_e=ee.dirname(s),{binDir:_e}):(re.execFileSync('/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"',{stdio:"inherit"}),_e="/usr/local/bin/",{binDir:_e})}function s(e,t,r){return Ie(this,void 0,void 0,(function*(){const o=Ne.argStringToArray(e);if(0===o.length)throw Error("Parameter 'commandLine' cannot be null or empty.");const s=o[0];return t=o.slice(1).concat(t||[]),new Ne.ToolRunner(s,t,r).exec()}))}function n(e){return void 0!==Le||(Le=!!process.env.CI||0===(null===(t=process.getuid)||void 0===t?void 0:t.call(process))),Le?"sudo "+e:e;var t}async function i(e,t,r=!0){const o=n("apt-get");let s=0;if("string"==typeof r&&(s=await Re.exec(n("add-apt-repository"),["--update",r])),De&&!0!==r||(await Re.exec(o,["update"]),De=!0),void 0!==t&&""!==t)try{s=await Re.exec(o,["install",`${e}=${t}`])}catch{s=await Re.exec(o,["install",`${e}-${t}`])}else s=await Re.exec(o,["install",e]);if(0!==s)throw Error(`Failed to install ${e} ${t}`);return{binDir:"/usr/bin/"}}function a(t,r){return je&&null!==e(ge).sync("brew",{nothrow:!0})||(o(0,0,process),je=!0),re.execFileSync("brew",["install",void 0!==r&&""!==r?`${t}@${r}`:t],{stdio:"inherit"}),{binDir:"/usr/local/bin/"}}async function l(t,r,o){if("win32"!==process.platform)return;if("string"==typeof Fe)return{binDir:Fe};const s=e(ge).sync("choco",{nothrow:!0});if(null!==s)return Fe=ee.dirname(s),{binDir:Fe};if(0!==await Re.exec('@"%SystemRoot%\\System32\\WindowsPowerShell\\v1.0\\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString(\'https://community.chocolatey.org/install.ps1\'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\\chocolatey\\bin"'))throw Error("Failed to install chocolatey");const n=e(ge).sync("choco",{nothrow:!0});return Fe=null!==n?ee.dirname(n):"C:/ProgramData/Chocolatey/bin/",te.existsSync(Fe)?{binDir:Fe}:void 0}async function c(t,r,o=[]){let s;if(ke&&null!==e(ge).sync("choco",{nothrow:!0})||(await l(0,0,process),ke=!0),s=void 0!==r&&""!==r?await Re.exec("choco",["install","-y",t,"--version="+r,...o]):await Re.exec("choco",["install","-y",t,...o]),0!==s)throw Error(`Failed to install ${t} ${r}`);const n="C:/ProgramData/Chocolatey/bin/";return xe.addPath(n),{binDir:n}}function u(e,t){const r=[];t=t||ze.arch();const o=We.join(v(),e);if(Ye.existsSync(o)){const e=Ye.readdirSync(o);for(const s of e)if(f(s)){const e=We.join(o,s,t||"");Ye.existsSync(e)&&Ye.existsSync(e+".complete")&&r.push(s)}}return r}function p(e){return Ge(this,void 0,void 0,(function*(){return e||(e=We.join(y(),tt.default())),yield Xe.mkdirP(e),e}))}function d(e,t,r){return Ge(this,void 0,void 0,(function*(){const o=We.join(v(),e,Ke.clean(t)||t,r||"");Be.debug("destination "+o);const s=o+".complete";return yield Xe.rmRF(o),yield Xe.rmRF(s),yield Xe.mkdirP(o),o}))}function h(e,t,r){const o=We.join(v(),e,Ke.clean(t)||t,r||"");Ye.writeFileSync(o+".complete",""),Be.debug("finished caching tool")}function f(e){const t=Ke.clean(e)||"";Be.debug("isExplicit: "+t);const r=null!=Ke.valid(t);return Be.debug("explicit? "+r),r}function m(e,t){let r="";Be.debug(`evaluating ${e.length} versions`);for(let o=(e=e.sort(((e,t)=>Ke.gt(e,t)?1:-1))).length-1;o>=0;o--){const s=e[o];if(Ke.satisfies(s,t)){r=s;break}}return Be.debug(r?"matched: "+r:"match not found"),r}function v(){const e=process.env.RUNNER_TOOL_CACHE||"";return ie.ok(e,"Expected RUNNER_TOOL_CACHE to be defined"),e}function y(){const e=process.env.RUNNER_TEMP||"";return ie.ok(e,"Expected RUNNER_TEMP to be defined"),e}function g(e,t){const r=fe[e];return void 0!==r?r:t}async function x(e,t,r,o){var s;process.env.RUNNER_TEMP=null!==(s=process.env.RUNNER_TEMP)&&void 0!==s?s:Q.tmpdir();const{url:n,binRelativeDir:i,extractedFolderName:a,extractFunction:l}=await r(t,process.platform),c=Me.find(e,t);if(c){xe.info(`${e} ${t} was found in the cache.`);const r=ee.join(c,a),o=ee.join(r,i);return xe.addPath(o),{installDir:r,binDir:o}}const u=await ht.async(n),p=ee.join(o,u);if(!te.existsSync(p)){xe.info(`Download and extract ${e} ${t}`);const r=await Me.downloadTool(n);await(null==l?void 0:l(r,p))}const d=ee.join(p,a),h=ee.join(d,i);return xe.info(`Add ${h} to PATH`),xe.addPath(h),"string"==typeof process.env.RUNNER_TOOL_CACHE&&await Me.cacheDir(p,e,t),{installDir:d,binDir:h}}function w(t,r){var o;const s=null!==(o=e(dt)(t))&&void 0!==o?o:t,n=null!=r?r:process.platform,i=xe.getInput("architecture")||process.arch;switch(n){case"win32":{const r=e(pt)(s,"v3.19.6");let o;o=["ia32","x86","i386","x32"].includes(i)?r?"win32-x86":"windows-i386":r?"win64-x64":"windows-x86_64";const n=`cmake-${t}-${o}`;return{binRelativeDir:"bin/",extractedFolderName:n,extractFunction:Me.extractZip,url:`https://github.com/Kitware/CMake/releases/download/v${t}/${n}.zip`}}case"darwin":{const r=`cmake-${t}-${e(pt)(s,"v3.19.1")?"Darwin-x86_64":"macos-universal"}`;return{binRelativeDir:"CMake.app/Contents/bin/",extractedFolderName:r,extractFunction:Me.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${t}/${r}.tar.gz`}}case"linux":{const r=e(pt)(s,"v3.19.8");let o;o=["aarch64"].includes(i)?r?"Linux-aarch64":"linux-aarch64":r?"Linux-x86_64":"linux-x86_64";const n=`cmake-${t}-${o}`;return{binRelativeDir:"bin/",extractedFolderName:n,extractFunction:Me.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${t}/${n}.tar.gz`}}default:throw Error(`Unsupported platform '${n}'`)}}function E(t,r,o,s=!1){const n=ee.join(t,r),i=ee.join(t,o);e(te).existsSync(i)||(e(te).symlinkSync(n,i),!Pt&&s&&e(te).chmodSync(i,"755"))}function b(e){return P(e)||!!bt.validRange(e)}function P(e){return"nightly"===e}function O(e,t){const r=Me.find.bind(void 0,"PyPy",e);let o=r(t);if(!o&&Pt&&(o=r("x86")),!o)throw Error(`PyPy ${e} not found`);const s=ee.join(o,"bin");xe.exportVariable("pythonLocation",Pt?o:s),xe.addPath(o),xe.addPath(s),Pt&&xe.addPath(ee.join(o,"Scripts"));const n="pypy"+e;return xe.setOutput("python-version",n),{impl:n,version:S(o)}}function S(e){const t=e.split(ee.sep),r=t.findIndex((e=>"PyPy"===e||"Python"===e));return t[r+1]||""}function $(e){const t=ee.join(e,"bin");return Pt?e:t}function _(e){return e.replace(/(\d+\.\d+\.\d+)((?:a|b|rc))(\d*)/g,"$1-$2.$3")}function R(e){return e.files.find((e=>St.includes(e.arch)&&$t.includes(e.platform)))}function A(e,t,r){return e.files.find((e=>e.arch===t&&e.platform===r))}async function C(t,r,o){try{if(t.startsWith("pypy-")){const r=await async function(t,r){let o,s="",n="";const i=(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 o;if(o=t.length>2?_(t[2]):"x",!b(r)||!b(o))throw Error("Invalid 'version' property for PyPy. Both Python version and PyPy versions should satisfy SemVer notation. See README for examples and documentation.");if(!/^\d+\.\d+$/.test(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:o,pythonVersion:r}})(t);({installDir:o,resolvedPythonVersion:n,resolvedPyPyVersion:s}=((t,r,o)=>{let s="",n="",i=Pt?(e=>{let t="";return St.forEach((r=>t=t||Me.find("PyPy",e,r))),t})(t):Me.find("PyPy",t,o);return i&&(n=(e=>ee.basename(ee.dirname(e)))(i),s=(t=>{let r="",o=ee.join(t,"PYPY_VERSION");return e(te).existsSync(o)&&(r=""+e(te).readFileSync(o)),r})(i),bt.satisfies(s,r)||(i=null,s="",n="")),i||xe.info(`PyPy version ${t} (${r}) was not found in the local cache`),{installDir:i,resolvedPythonVersion:n,resolvedPyPyVersion:s}})(i.pythonVersion,i.pypyVersion,r)),o||({installDir:o,resolvedPythonVersion:n,resolvedPyPyVersion:s}=await(async(t,r,o)=>{let s;const n=await(async()=>{const e="https://downloads.python.org/pypy/versions.json",t=new Ct.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(!n||0===n.length)throw Error("No release was found in PyPy version.json");const i=((e,t,r,o)=>{const s=e.filter((e=>{const s=bt.satisfies(bt.coerce(e.python_version),t),n=P(r)&&P(e.pypy_version)||bt.satisfies(_(e.pypy_version),r),i=e.files&&(Pt?(e=>e.files.some((e=>St.includes(e.arch)&&$t.includes(e.platform))))(e):((e,t,r)=>e.files.some((e=>e.arch===t&&e.platform===r)))(e,o,process.platform));return s&&n&&i}));if(0===s.length)return null;const n=s.sort(((e,t)=>bt.compare(bt.coerce(_(t.pypy_version)),bt.coerce(_(e.pypy_version)))||bt.compare(bt.coerce(t.python_version),bt.coerce(e.python_version))))[0];return{foundAsset:Pt?R(n):A(n,o,process.platform),resolvedPythonVersion:n.python_version,resolvedPyPyVersion:n.pypy_version}})(n,r,t,o);if(!i||!i.foundAsset)throw Error(`PyPy version ${r} (${t}) with arch ${o} not found`);const{foundAsset:a,resolvedPythonVersion:l,resolvedPyPyVersion:c}=i;let u=""+a.download_url;xe.info(`Downloading PyPy from "${u}" ...`);const p=await Me.downloadTool(u);xe.info("Extracting downloaded archive..."),s=Pt?await Me.extractZip(p):await Me.extractTar(p,void 0,"x");const d=e(te).readdirSync(s)[0],h=ee.join(s,d);let f=h;P(c)||(f=await Me.cacheDir(h,"PyPy",l,o)),((t,r)=>{const o=ee.join(t,"PYPY_VERSION");e(te).writeFileSync(o,r)})(f,c);const m=$(f);return await(async(e,t)=>{const r=bt.coerce(t),o=bt.major(r),s=2===o?"":"3";let n=Pt?".exe":"";xe.info("Creating symlinks..."),E(e,`pypy${s}${n}`,`python${o}${n}`,!0),E(e,`pypy${s}${n}`,"python"+n,!0)})(m,l),await(async e=>{xe.info("Installing and updating pip");const t=ee.join(e,"python");await Re.exec(t+" -m ensurepip"),await Re.exec(e+"/python -m pip install --ignore-installed pip")})(m),{installDir:f,resolvedPythonVersion:l,resolvedPyPyVersion:c}})(i.pypyVersion,i.pythonVersion,r));const a=ee.join(o,Pt?"Scripts":"bin"),l=$(o);return xe.exportVariable("pythonLocation",l),xe.addPath(l),xe.addPath(a),{resolvedPyPyVersion:s,resolvedPythonVersion:n}}(t,o);xe.info(`Successfully setup PyPy ${r.resolvedPyPyVersion} with Python (${r.resolvedPythonVersion})`)}else{const e=await(async(e,t)=>{switch(e.toUpperCase()){case"PYPY2":return O("2",t);case"PYPY3":return O("3.6",t);default:return await async function(e,t){const r=((o=e).endsWith("-dev")?`>= ${o.slice(0,-4)}.0-a0`:o).replace(/(\d+\.\d+\.\d+)((?:a|b|rc)\d*)/g,"$1-$2");var o;xe.debug(`Semantic version spec of ${e} is ${r}`);let s=Me.find("Python",r,t);if(!s){xe.info(`Version ${r} was not found in the local cache`);const e=await(async(e,t)=>{const r=await Me.getManifestFromRepo("actions","python-versions",Rt,"main");return await Me.findFromManifest(e,!1,r,t)})(r,t);e&&e.files&&e.files.length>0&&(xe.info(`Version ${r} is available for downloading`),await(async e=>{const t=e.files[0].download_url;xe.info(`Download from "${t}"`);const r=await Me.downloadTool(t,void 0,Rt);let o;xe.info("Extract downloaded archive"),o=Pt?await Me.extractZip(r):await Me.extractTar(r),xe.info("Execute installation script"),await(async e=>{const t={cwd:e,env:{...process.env,...Ot&&{LD_LIBRARY_PATH:ee.join(e,"lib")}},silent:!0,listeners:{stdout(e){xe.info((""+e).trim())},stderr(e){xe.error((""+e).trim())}}};Pt?await Re.exec("powershell",["./setup.ps1"],t):await Re.exec("bash",["./setup.sh"],t)})(o)})(e),s=Me.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: "+At].join(Q.EOL));if(xe.exportVariable("pythonLocation",s),Ot){const e=process.env.LD_LIBRARY_PATH?":"+process.env.LD_LIBRARY_PATH:"",t=ee.join(s,"lib");e.split(":").includes(t)||xe.exportVariable("LD_LIBRARY_PATH",t+e)}if(xe.addPath(s),xe.addPath((e=>ee.join(e,Pt?"Scripts":"bin"))(s)),Pt){const e=ee.basename(ee.dirname(s)),t=bt.major(e),r=bt.minor(e),o=ee.join(process.env.APPDATA||"","Python",`Python${t}${r}`,"Scripts");xe.addPath(o)}const n=S(s);return xe.setOutput("python-version",n),{impl:"CPython",version:n}}(e,t)}})(t,o);xe.info(`Successfully setup ${e.impl} (${e.version})`)}const r=ee.join(__dirname,"..",".github");xe.info("##[add-matcher]"+ee.join(r,"python.json"))}catch(e){xe.setFailed(e.message)}}function T(e){return new Promise((t=>{ue.get(e,(e=>{t(void 0!==e.statusCode&&e.statusCode>=200&&399>=e.statusCode)}))}))}async function I(t,r){if(void 0===It&&(null!==e(ge).sync("pip3",{nothrow:!0})?It="pip3":null!==e(ge).sync("pip",{nothrow:!0})&&await(async(t,r,o=/v?(\d\S*)/)=>{const s=await(async(e,t=/v?(\d\S*)/)=>{try{var r,o;const{stderr:n,stdout:i}=await Re.getExecOutput(e,["--version"]);var s;return null!==(s=null===(r=i.match(t))||void 0===r?void 0:r[1])&&void 0!==s?s:null===(o=n.match(t))||void 0===o?void 0:o[1]}catch(e){return void console.error(e)}})(t,o);return"string"==typeof s&&"string"==typeof r&&""!==s&&""!==r&&-1!==e(Tt)(s,r)})("python","3.0.0")?It="pip":(await C("3.x",0,process.arch),It="pip3")),0!==await Re.exec(It,["install",void 0!==r&&""!==r?`${t}==${r}`:t]))throw Error(`Failed to install ${t} ${r}`);if(void 0===Nt){if("linux"===process.platform)Nt="/home/runner/.local/bin/";else if("darwin"===process.platform)Nt="/usr/local/bin/";else try{Nt=ee.join((await Re.getExecOutput('python3 -c "import sys;print(sys.base_exec_prefix);"')).stdout.trim(),"Scripts")}catch{Nt=ee.join((await Re.getExecOutput('python -c "import sys;print(sys.base_exec_prefix);"')).stdout.trim(),"Scripts")}xe.info(Nt+" to PATH"),xe.addPath(Nt)}return{binDir:Nt}}async function N(e,t){if(0!==await Re.exec("7z",["x",e,"-o"+t]))throw Error(`Failed to extract ${e} to ${t} with 7z`);return t}async function L(e,t,r=["--strip-components=1"]){try{await Dt.mkdirP(t)}catch{}if(0!==await Re.exec("tar",["xf",e,"-C",t,...r]))throw Error(`Failed to extract ${e} to ${t} with tar`);return t}function D(e,t,r){return`https://github.com/llvm/llvm-project/releases/download/llvmorg-${e}/${t}${e}${r}`}function j(e,t,r){return`https://releases.llvm.org/${e}/${t}${e}${r}`}function F(t,r){switch(t){case"darwin":return(t=>{if(Ft.has(t))return null;const r="clang+llvm-",o=`-x86_64${"9.0.0"===t?"-darwin-apple":"-apple-darwin"}.tar.xz`;return e(pt)(t,"9.0.1")?j(t,r,o):D(t,r,o)})(r);case"linux":return(t=>{let r=t;const o=kt.get(r);let s;void 0!==o&&(r=o),s=r.includes("ubuntu")?r:""!==r&&r in Mt?Mt[r]:Mt["12.0.1-rc4"];const n="clang+llvm-",i="5.0.0"===r?`-linux-x86_64${s}.tar.xz`:`-x86_64-linux-gnu${s}.tar.xz`;return e(pt)(r,"9.0.1")?j(r,n,i):D(r,n,i)})(r);case"win32":return(async t=>{if(Ut.has(t))return null;const r="LLVM-",o=e(pt)(t,"3.7.0")?"-win32.exe":"-win64.exe",s=e(pt)(t,"9.0.1");let n,i=!1;return s&&(n=j(t,r,o),await T(n)||(i=!0)),!i&&s||(n=D(t,r,o)),n})(r);default:return null}}async function k(e,t){const[r,o]=await(async(e,t,r,o)=>{if(!e.has(r))throw Error(`Unsupported target! (platform='${t}', version='${r}')`);for(const s of((e,t)=>Array.from(e).filter((e=>/^\d+\.\d+\.\d+$/.test(e)&&e.startsWith(t))).sort().reverse())(e,r)){const e=await o(t,s);if(null!==e&&await T(e))return[s,e]}throw Error(`Unsupported target! (platform='${t}', version='${r}')`)})(jt,t,e,F);return xe.setOutput("version",r),{url:o,extractedFolderName:"",binRelativeDir:"bin",extractFunction:"win32"===t?N:L}}async function M(t,r,o){let s=r;""!==s&&void 0!==s||(s="win32"===process.platform?"C:/Program Files/LLVM":"./llvm"),s=ee.resolve(s);const n=await x("llvm",t,k,s),i=ee.join(s,"lib");var a;const l=null!==(a=process.env.LD_LIBRARY_PATH)&&void 0!==a?a:"";var c;const u=null!==(c=process.env.DYLD_LIBRARY_PATH)&&void 0!==c?c:"";xe.exportVariable("LLVM_PATH",s);const p=e(Lt)(t);if(xe.exportVariable("LD_LIBRARY_PATH",`${i}${ee.delimiter}${l}`),xe.exportVariable("DYLD_LIBRARY_PATH",`${i}${ee.delimiter}${u}`),xe.exportVariable("CPATH",`${s}/lib/clang/${p}/include`),xe.exportVariable("LDFLAGS",`-L${s}/lib`),xe.exportVariable("CPPFLAGS",`-I${s}/include`),xe.exportVariable("CC",s+"/bin/clang"),xe.exportVariable("CXX",s+"/bin/clang++"),xe.exportVariable("LIBRARY_PATH",s+"/lib"),"darwin"===process.platform)try{const e=await Re.getExecOutput("xcrun --sdk macosx --show-sdk-path"),t=e.stdout||e.stderr;te.existsSync(t)&&xe.exportVariable("SDKROOT",t)}catch(e){xe.error(e)}return n}function U(e,t,r){const o=new zt(e,t,r);process.stdout.write(""+o+Yt.EOL)}function q(e){Bt.issue("error",e instanceof Error?""+e:e)}function V(e){Bt.issue("group",e)}function G(){Bt.issue("endgroup")}function H(e){return-1!=["PATH","INCLUDE","LIB","LIBPATH"].indexOf(e.toUpperCase())}function B(e,t,r,o,s){if("win32"!=he.platform)return void Vt.info("This is not a Windows virtual environment, bye!");he.env.PATH+=ee.delimiter+ar;let n={win32:"x86",win64:"x64",x86_64:"x64","x86-64":"x64"};e.toLowerCase()in n&&(e=n[e.toLowerCase()]);var i=[e];"true"==o&&i.push("uwp"),t&&i.push(t),r&&i.push("-vcvars_ver="+r),"true"==s&&i.push("-vcvars_spectre_libs=spectre");const a=`"${(()=>{let e=(e=>{try{return(""+re.execSync("vswhere -products * -latest -prerelease -property installationPath")).trim()+"\\VC\\Auxiliary\\Build\\vcvarsall.bat"}catch(e){Vt.warning("vswhere failed: "+e)}return null})();if(e&&te.existsSync(e))return Vt.info("Found with vswhere: "+e),e;Vt.info("Not found with vswhere");for(const t of ir)for(const r of nr)if(e=`${sr}\\Microsoft Visual Studio\\${t}\\${r}\\VC\\Auxiliary\\Build\\vcvarsall.bat`,Vt.info("Trying standard location: "+e),te.existsSync(e))return Vt.info("Found standard location: "+e),e;if(Vt.info("Not found in standard locations"),e=sr+"\\Microsoft Visual C++ Build Tools\\vcbuildtools.bat",te.existsSync(e))return Vt.info("Found VS 2015: "+e),e;throw Vt.info("Not found in VS 2015 location: "+e),Error("Microsoft Visual Studio not found")})()}" ${i.join(" ")}`;Vt.debug("vcvars command-line: "+a);const l=(""+re.execSync(`set && cls && ${a} && cls && set`,{shell:"cmd"})).split("\f"),c=l[0].split("\r\n"),u=l[1].split("\r\n"),p=l[2].split("\r\n"),d=u.filter((e=>!(!e.match(/^\[ERROR.*\]/)||e.match(/Error in script usage. The correct usage is:$/))));if(d.length>0)throw Error("invalid parameters\r\n"+d.join("\r\n"));let h={};for(let e of c){const[t,r]=e.split("=");h[t]=r}Vt.startGroup("Environment variables");for(let e of p){if(!e.includes("="))continue;let[t,r]=e.split("=");r!==h[t]&&(Vt.info("Setting "+t),H(t)&&(r=r.split(";").filter(((e,t,r)=>r.indexOf(e)===t)).join(";")),Vt.exportVariable(t,r))}Vt.endGroup(),Vt.info("Configured Developer Command Prompt")}async function X(e,t,r,o,s,n){if("win32"!==process.platform)return;let i,a;try{"2015"===e?(i="14.0.25420.1",await c("visualcpp-build-tools",i,["--ignore-dependencies","--params","'/IncludeRequired'"]),a="C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140",te.existsSync(a)&&xe.exportVariable("VCTargetsPath",a)):"2017"===e?(i="14.16",await c("visualstudio2017buildtools","15.9.38.0",["--package-parameters","'--add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended --passive'"]),a="C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16"):"2019"===e&&(i="14.29.30133",await c("visualstudio2019buildtools","16.11.2.0",["--package-parameters","'--add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended --passive'"]),a="C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133")}catch(e){xe.error(e)}void 0!==a&&te.existsSync(a)&&xe.exportVariable("VCTargetsPath",a),qt((e=>{switch(e){case"x32":case"32":case"ia32":return"x86";case"64":return"x64";default:return e}})(r),o,i,s,n)}function Y(e,t){const r=(e=>{switch(e){case"win32":return"win";case"darwin":return"mac";case"linux":return"linux";default:throw Error(`Unsupported platform '${e}'`)}})(t);return{binRelativeDir:"",extractedFolderName:"",extractFunction:Me.extractZip,url:`https://github.com/ninja-build/ninja/releases/download/v${e}/ninja-${r}.zip`}}function Z(e,t){return"true"===t||void 0===t&&e in cr?cr[e]:t}async function z(t,r,o){let s;switch(process.platform){case"win32":"arm"!==o&&"arm64"!==o||await c("gcc-arm-embedded",t),await c("mingw",t),"x64"===o&&te.existsSync("C:/tools/mingw64/bin")?(s="C:/tools/mingw64/bin",xe.addPath(s)):"ia32"===o&&te.existsSync("C:/tools/mingw32/bin")?(s="C:/tools/mingw32/bin",xe.addPath(s)):te.existsSync("C:/ProgramData/Chocolatey/bin/g++.exe")&&(s="C:/ProgramData/Chocolatey/bin/");break;case"darwin":s=a("gcc",t).binDir;break;case"linux":"x64"===o?s=(await i("g++",t,"ppa:ubuntu-toolchain-r/test")).binDir:(xe.info(`Install g++-multilib because gcc for ${o} was requested`),s=(await i("g++-multilib",t,"ppa:ubuntu-toolchain-r/test")).binDir);break;default:throw Error("Unsupported platform for "+o)}if(void 0!==s){var n;const r=e(Lt)(null!==(n=e(dt)(t))&&void 0!==n?n:t);return"win32"===process.platform?(xe.exportVariable("CC",s+"/gcc"),xe.exportVariable("CXX",s+"/g++")):(xe.exportVariable("CC",`${s}/gcc-${r}`),xe.exportVariable("CXX",`${s}/g++-${r}`)),{binDir:s}}}function W(e){const t=xe.getInput(e.toLowerCase());if("false"!==t&&""!==t)return t}async function J(){const t=xe.getInput("architecture")||process.arch;var r;const o=null!==(r=process.env.SETUP_CPP_DIR)&&void 0!==r?r:"~/setup_cpp";try{const r=W("compiler");if(void 0!==r){const s=r.split("-"),n=s[0];let i;if(1 in s){const t=s[1];null!==e(lr)(t)?i=t:xe.error(`Invalid version ${t} used for the compiler. Using the default version...`)}switch(n){case"llvm":case"clang":case"clang++":await M(Z("llvm",i),o);break;case"gcc":case"mingw":case"cygwin":case"msys":await z(Z("gcc",i),0,t);break;case"cl":case"msvc":case"msbuild":case"vs":case"visualstudio":case"visualcpp":case"visualc++":await X(Z("msvc",i),0,t);break;default:xe.error("Unsupported compiler "+n)}}for(const e of ur){K.assert(e in pr);const r=W(e);if(void 0!==r){const s=pr[e];await s(Z(e,r),o,t)}}}catch(e){return xe.error(e),xe.setFailed("install-cpp failed"),1}return xe.info("install-cpp succeeded"),0}var K=require("console"),Q=require("os"),ee=require("path"),te=require("fs"),re=require("child_process"),oe=require("string_decoder"),se=require("events"),ne=require("timers"),ie=require("assert"),ae=require("util"),le=require("stream"),ce=require("http"),ue=require("https");require("net");var pe=require("tls"),de=require("crypto"),he=require("process"),fe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},me={},ve={},ye=fe.parcelRequire810d;null==ye&&((ye=e=>{if(e in me)return me[e].exports;if(e in ve){var t=ve[e];delete ve[e];var r={id:e,exports:{}};return me[e]=r,t.call(r.exports,r,r.exports),r.exports}var o=Error("Cannot find module '"+e+"'");throw o.code="MODULE_NOT_FOUND",o}).register=(e,t)=>{ve[e]=t},fe.parcelRequire810d=ye),t(module.exports,"main",(()=>J)),ye.register("6FGZZ",(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 o(e,t={}){u.issueCommand("error",d.toCommandProperties(t),e instanceof Error?""+e:e)}function s(e){u.issue("group",e)}function n(){u.issue("endgroup")}var i=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,o)=>{void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get(){return t[r]}})}:(e,t,r,o)=>{void 0===o&&(o=r),e[o]=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}),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)&&i(t,e,r);return a(t,e),t}),c=e.exports&&e.exports.__awaiter||((e,t,r,o)=>new(r||(r=Promise))(((s,n)=>{function i(e){try{l(o.next(e))}catch(e){n(e)}}function a(e){try{l(o.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}l((o=o.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),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=ye("eOxkI"),p=ye("85a1M"),d=ye("lK3O3");const h=l(Q),f=l(ee);var m,v;(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 o=r(e,t);if(["true","True","TRUE"].includes(o))return!0;if(["false","False","FALSE"].includes(o))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,o(e)},e.exports.isDebug=()=>"1"===process.env.RUNNER_DEBUG,e.exports.debug=e=>{u.issueCommand("debug",{},e)},e.exports.error=o,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=s,e.exports.endGroup=n,e.exports.group=function(e,t){return c(this,void 0,void 0,(function*(){let r;s(e);try{r=yield t()}finally{n()}return r}))},e.exports.saveState=(e,t)=>{u.issueCommand("save-state",{name:e},t)},e.exports.getState=e=>process.env["STATE_"+e]||""})),ye.register("eOxkI",(function(e,t){"use strict";function r(e,t,r){const o=new l(e,t,r);process.stdout.write(""+o+i.EOL)}var o=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,o)=>{void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get(){return t[r]}})}:(e,t,r,o)=>{void 0===o&&(o=r),e[o]=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}),n=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&o(t,e,r);return s(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issue=e.exports.issueCommand=void 0;const i=n(Q);var a=ye("lK3O3");e.exports.issueCommand=r,e.exports.issue=(e,t="")=>{r(e,{},t)};class l{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 o in this.properties)if(this.properties.hasOwnProperty(o)){const s=this.properties[o];s&&(r?r=!1:e+=",",e+=`${o}=${t=s,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}}})),ye.register("lK3O3",((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,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}:{}})),ye.register("85a1M",((e,t)=>{"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,o)=>{void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get(){return t[r]}})}:(e,t,r,o)=>{void 0===o&&(o=r),e[o]=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 s in e)"default"!==s&&Object.hasOwnProperty.call(e,s)&&r(t,e,s);return o(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issueCommand=void 0;const n=s(te),i=s(Q);var a=ye("lK3O3");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(!n.existsSync(r))throw Error("Missing file at path: "+r);n.appendFileSync(r,`${a.toCommandValue(t)}${i.EOL}`,{encoding:"utf8"})}}));var ge,xe=ye("6FGZZ");const we="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,Ee=we?";":":";var be,Pe={};ye.register("5vEMD",((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 o=0;r.length>o;o++){var s=r[o].toLowerCase();if(s&&e.substr(-s.length).toLowerCase()===s)return!0}return!1})(t,r)}function o(e,t,o){te.stat(e,((s,n)=>{o(s,!s&&r(n,e,t))}))}e.exports=o,o.sync=(e,t)=>r(te.statSync(e),e,t)})),ye.register("kam8f",((e,t)=>{function r(e,t,r){te.stat(e,((e,s)=>{r(e,!e&&o(s,t))}))}function o(e,t){return e.isFile()&&((e,t)=>{var r=e.mode,o=e.uid,s=e.gid,n=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),l=parseInt("010",8),c=a|l;return r&parseInt("001",8)||r&l&&s===i||r&a&&o===n||r&c&&0===n})(e,t)}e.exports=r,r.sync=(e,t)=>o(te.statSync(e),t)})),be="win32"===process.platform||fe.TESTING_WINDOWS?ye("5vEMD"):ye("kam8f"),Pe=r,r.sync=(e,t)=>{try{return be.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e}};const Oe=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),Se=(e,t)=>{const r=t.colon||Ee,o=e.match(/\//)||we&&e.match(/\\/)?[""]:[...we?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],s=we?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",n=we?s.split(r):[""];return we&&-1!==e.indexOf(".")&&""!==n[0]&&n.unshift(""),{pathEnv:o,pathExt:n,pathExtExe:s}},$e=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});const{pathEnv:o,pathExt:s,pathExtExe:n}=Se(e,t),i=[],a=r=>new Promise(((s,n)=>{if(r===o.length)return t.all&&i.length?s(i):n(Oe(e));const a=o[r],c=/^".*"$/.test(a)?a.slice(1,-1):a,u=ee.join(c,e),p=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u;s(l(p,r,0))})),l=(e,r,o)=>new Promise(((c,u)=>{if(o===s.length)return c(a(r+1));const p=s[o];Pe(e+p,{pathExt:n},((s,n)=>{if(!s&&n){if(!t.all)return c(e+p);i.push(e+p)}return c(l(e,r,o+1))}))}));return r?a(0).then((e=>r(null,e)),r):a(0)};let _e;ge=$e,$e.sync=(e,t)=>{t=t||{};const{pathEnv:r,pathExt:o,pathExtExe:s}=Se(e,t),n=[];for(let i=0;r.length>i;i++){const a=r[i],l=/^".*"$/.test(a)?a.slice(1,-1):a,c=ee.join(l,e),u=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+c:c;for(let e=0;o.length>e;e++){const r=u+o[e];try{if(Pe.sync(r,{pathExt:s})){if(!t.all)return r;n.push(r)}}catch(e){}}}if(t.all&&n.length)return n;if(t.nothrow)return null;throw Oe(e)};var Re={},Ae=Re&&Re.__createBinding||(Object.create?(e,t,r,o)=>{void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get(){return t[r]}})}:(e,t,r,o)=>{void 0===o&&(o=r),e[o]=t[r]}),Ce=Re&&Re.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),Te=Re&&Re.__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)&&Ae(t,e,r);return Ce(t,e),t}),Ie=Re&&Re.__awaiter||((e,t,r,o)=>new(r||(r=Promise))(((s,n)=>{function i(e){try{l(o.next(e))}catch(e){n(e)}}function a(e){try{l(o.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}l((o=o.apply(e,t||[])).next())})));Object.defineProperty(Re,"__esModule",{value:!0}),Re.getExecOutput=Re.exec=void 0,ye.register("fk1Ma",(function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,o)=>{void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get(){return t[r]}})}:(e,t,r,o)=>{void 0===o&&(o=r),e[o]=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 s in e)"default"!==s&&Object.hasOwnProperty.call(e,s)&&r(t,e,s);return o(t,e),t}),n=e.exports&&e.exports.__awaiter||((e,t,r,o)=>new(r||(r=Promise))(((s,n)=>{function i(e){try{l(o.next(e))}catch(e){n(e)}}function a(e){try{l(o.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}l((o=o.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.argStringToArray=e.exports.ToolRunner=void 0;const i=s(Q),a=s(se),l=s(re),c=s(ee),u=s(ye("q05Mr")),p=s(ye("fyhIP")),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(),o=this._getSpawnArgs(e);let s=t?"":"[command]";if(d)if(this._isCmdFile()){s+=r;for(const e of o)s+=" "+e}else if(e.windowsVerbatimArguments){s+=`"${r}"`;for(const e of o)s+=" "+e}else{s+=this._windowsQuoteCmdArg(r);for(const e of o)s+=" "+this._windowsQuoteCmdArg(e)}else{s+=r;for(const e of o)s+=" "+e}return s}_processLineBuffer(e,t,r){try{let o=t+""+e,s=o.indexOf(i.EOL);for(;s>-1;)r(o.substring(0,s)),o=o.substring(s+i.EOL.length),s=o.indexOf(i.EOL);return o}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 o of e)if(t.some((e=>e===o))){r=!0;break}if(!r)return e;let o='"',s=!0;for(let t=e.length;t>0;t--)o+=e[t-1],s&&"\\"===e[t-1]?o+="\\":'"'===e[t-1]?(s=!0,o+='"'):s=!1;return o+='"',o.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 o=e.length;o>0;o--)t+=e[o-1],r&&"\\"===e[o-1]?t+="\\":'"'===e[o-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 n(this,void 0,void 0,(function*(){return!p.isRooted(this.toolPath)&&(this.toolPath.includes("/")||d&&this.toolPath.includes("\\"))&&(this.toolPath=c.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield u.which(this.toolPath,!0),new Promise(((e,t)=>n(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 o=new h(r,this.toolPath);if(o.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 s=this._getSpawnFileName(),n=l.spawn(s,this._getSpawnArgs(r),this._getSpawnOptions(this.options,s));let a="";n.stdout&&n.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 c="";if(n.stderr&&n.stderr.on("data",(e=>{o.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),c=this._processLineBuffer(e,c,(e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e)}))})),n.on("error",(e=>{o.processError=e.message,o.processExited=!0,o.processClosed=!0,o.CheckComplete()})),n.on("exit",(e=>{o.processExitCode=e,o.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),o.CheckComplete()})),n.on("close",(e=>{o.processExitCode=e,o.processExited=!0,o.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),o.CheckComplete()})),o.on("done",((r,o)=>{a.length>0&&this.emit("stdline",a),c.length>0&&this.emit("errline",c),n.removeAllListeners(),r?t(r):e(o)})),this.options.input){if(!n.stdin)throw Error("child process missing stdin");n.stdin.end(this.options.input)}}))))}))}},e.exports.argStringToArray=e=>{function t(e){s&&'"'!==e&&(n+="\\"),n+=e,s=!1}const r=[];let o=!1,s=!1,n="";for(let i=0;e.length>i;i++){const a=e.charAt(i);'"'!==a?"\\"===a&&s?t(a):"\\"===a&&o?s=!0:" "!==a||o?t(a):n.length>0&&(r.push(n),n=""):s?t(a):o=!o}return n.length>0&&r.push(n.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=ne.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())}}})),ye.register("q05Mr",(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 o(e){return u(this,void 0,void 0,(function*(){ie.ok(e,"a path argument must be provided"),yield h.mkdir(e,{recursive:!0})}))}function s(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 o=[];for(const s of r){const r=yield h.tryGetExecutablePath(d.join(s,e),t);r&&o.push(r)}return o}))}function n(e,t,r,s){return u(this,void 0,void 0,(function*(){if(r>=255)return;r++,yield o(t);const a=yield h.readdir(e);for(const o of a){const a=`${e}/${o}`,l=`${t}/${o}`;(yield h.lstat(a)).isDirectory()?yield n(a,l,r,s):yield i(a,l,s)}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,o)=>{void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get(){return t[r]}})}:(e,t,r,o)=>{void 0===o&&(o=r),e[o]=t[r]}),l=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)&&a(t,e,r);return l(t,e),t}),u=e.exports&&e.exports.__awaiter||((e,t,r,o)=>new(r||(r=Promise))(((s,n)=>{function i(e){try{l(o.next(e))}catch(e){n(e)}}function a(e){try{l(o.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}l((o=o.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=c(re),d=c(ee),h=c(ye("fyhIP")),f=ae.promisify(p.exec),m=ae.promisify(p.execFile);e.exports.cp=function(e,t,r={}){return u(this,void 0,void 0,(function*(){const{force:o,recursive:s,copySourceDirectory:a}=(e=>({force:null==e.force||e.force,recursive:!!e.recursive,copySourceDirectory:null==e.copySourceDirectory||!!e.copySourceDirectory}))(r),l=(yield h.exists(t))?yield h.stat(t):null;if(l&&l.isFile()&&!o)return;const c=l&&l.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(!s)throw Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield n(e,c,0,o)}else{if(""===d.relative(e,c))throw Error(`'${c}' and '${e}' are the same file`);yield i(e,c,o)}}))},e.exports.mv=function(e,t,s={}){return u(this,void 0,void 0,(function*(){if(yield h.exists(t)){let o=!0;if((yield h.isDirectory(t))&&(t=d.join(t,d.basename(e)),o=yield h.exists(t)),o){if(null!=s.force&&!s.force)throw Error("Destination already exists");yield r(t)}}yield o(d.dirname(t)),yield h.rename(e,t)}))},e.exports.rmRF=r,e.exports.mkdirP=o,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 o=yield s(t);return o&&o.length>0?o[0]:""}))},e.exports.findInPath=s})),ye.register("fyhIP",(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 o,s=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,o)=>{void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get(){return t[r]}})}:(e,t,r,o)=>{void 0===o&&(o=r),e[o]=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}),i=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&s(t,e,r);return n(t,e),t}),a=e.exports&&e.exports.__awaiter||((e,t,r,o)=>new(r||(r=Promise))(((s,n)=>{function i(e){try{l(o.next(e))}catch(e){n(e)}}function a(e){try{l(o.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}l((o=o.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 l=i(te),c=i(ee);e.exports.chmod=(o=l.promises).chmod,e.exports.copyFile=o.copyFile,e.exports.lstat=o.lstat,e.exports.mkdir=o.mkdir,e.exports.readdir=o.readdir,e.exports.readlink=o.readlink,e.exports.rename=o.rename,e.exports.rmdir=o.rmdir,e.exports.stat=o.stat,e.exports.symlink=o.symlink,e.exports.unlink=o.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,o){return a(this,void 0,void 0,(function*(){let s;try{s=yield e.exports.stat(t)}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`)}if(s&&s.isFile())if(e.exports.IS_WINDOWS){const e=c.extname(t).toUpperCase();if(o.some((t=>t.toUpperCase()===e)))return t}else if(r(s))return t;const n=t;for(const i of o){t=n+i,s=void 0;try{s=yield e.exports.stat(t)}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`)}if(s&&s.isFile()){if(e.exports.IS_WINDOWS){try{const r=c.dirname(t),o=c.basename(t).toUpperCase();for(const s of yield e.exports.readdir(r))if(o===s.toUpperCase()){t=c.join(r,s);break}}catch(e){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${e}`)}return t}if(r(s))return t}}return""}))},e.exports.getCmdPath=()=>{var e;return null!==(e=process.env.COMSPEC)&&void 0!==e?e:"cmd.exe"}}));const Ne=Te(ye("fk1Ma"));let Le;Re.exec=s,Re.getExecOutput=function(e,t,r){var o,n;return Ie(this,void 0,void 0,(function*(){let i="",a="";const l=new oe.StringDecoder("utf8"),c=new oe.StringDecoder("utf8"),u=null===(o=null==r?void 0:r.listeners)||void 0===o?void 0:o.stdout,p=null===(n=null==r?void 0:r.listeners)||void 0===n?void 0:n.stderr,d=Object.assign(Object.assign({},null==r?void 0:r.listeners),{stdout(e){i+=l.write(e),u&&u(e)},stderr(e){a+=c.write(e),p&&p(e)}}),h=yield s(e,t,Object.assign(Object.assign({},r),{listeners:d}));return i+=l.end(),a+=c.end(),{exitCode:h,stdout:i,stderr:a}}))};let De=!1,je=!1;xe=ye("6FGZZ");let Fe,ke=!1;var Me={},Ue=Me&&Me.__createBinding||(Object.create?(e,t,r,o)=>{void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get(){return t[r]}})}:(e,t,r,o)=>{void 0===o&&(o=r),e[o]=t[r]}),qe=Me&&Me.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),Ve=Me&&Me.__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)&&Ue(t,e,r);return qe(t,e),t}),Ge=Me&&Me.__awaiter||((e,t,r,o)=>new(r||(r=Promise))(((s,n)=>{function i(e){try{l(o.next(e))}catch(e){n(e)}}function a(e){try{l(o.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}l((o=o.apply(e,t||[])).next())}))),He=Me&&Me.__importDefault||(e=>e&&e.__esModule?e:{default:e});Object.defineProperty(Me,"__esModule",{value:!0}),Me.evaluateVersions=Me.isExplicitVersion=Me.findFromManifest=Me.getManifestFromRepo=Me.findAllVersions=Me.find=Me.cacheFile=Me.cacheDir=Me.extractZip=Me.extractXar=Me.extractTar=Me.extract7z=Me.downloadTool=Me.HTTPError=void 0;const Be=Ve(ye("6FGZZ")),Xe=Ve(ye("q05Mr")),Ye=Ve(te);ye.register("1Hds5",(function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,o)=>{void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get(){return t[r]}})}:(e,t,r,o)=>{void 0===o&&(o=r),e[o]=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 s in e)"default"!==s&&Object.hasOwnProperty.call(e,s)&&r(t,e,s);return o(t,e),t}),n=e.exports&&e.exports.__awaiter||((e,t,r,o)=>new(r||(r=Promise))(((s,n)=>{function i(e){try{l(o.next(e))}catch(e){n(e)}}function a(e){try{l(o.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}l((o=o.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports._readLinuxVersionFile=e.exports._getOsVersion=e.exports._findMatch=void 0;const i=s(ye("hBwzM"));var a=ye("6FGZZ");e.exports._findMatch=function(t,r,o,s){return n(this,void 0,void 0,(function*(){const n=Q.platform();let l,c,u;for(const l of o){const o=l.version;if(a.debug(`check ${o} satisfies ${t}`),i.satisfies(o,t)&&(!r||l.stable===r)&&(u=l.files.find((t=>{a.debug(`${t.arch}===${s} && ${t.platform}===${n}`);let r=t.arch===s&&t.platform===n;if(r&&t.platform_version){const o=e.exports._getOsVersion();r=o===t.platform_version||i.satisfies(o,t.platform_version)}return r})),u)){a.debug("matched "+l.version),c=l;break}}return c&&u&&(l=Object.assign({},c),l.files=[u]),l}))},e.exports._getOsVersion=()=>{const t=Q.platform();let r="";if("darwin"===t)r=""+re.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 te.existsSync(e)?r=""+te.readFileSync(e):te.existsSync(t)&&(r=""+te.readFileSync(t)),r}})),ye.register("hBwzM",((e,t)=>{var r=ye("j1nFx");e.exports={re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:ye("9PnyI").SEMVER_SPEC_VERSION,SemVer:ye("j4Bpm"),compareIdentifiers:ye("9vPNp").compareIdentifiers,rcompareIdentifiers:ye("9vPNp").rcompareIdentifiers,parse:ye("bd0kF"),valid:ye("1JJDJ"),clean:ye("6mLCu"),inc:ye("1Orzu"),diff:ye("kGDR5"),major:ye("k3zcS"),minor:ye("e8NKK"),patch:ye("3Fhst"),prerelease:ye("6elLy"),compare:ye("1wyqe"),rcompare:ye("las47"),compareLoose:ye("dQlWE"),compareBuild:ye("7REgF"),sort:ye("3U0ar"),rsort:ye("98o3F"),gt:ye("6bYo1"),lt:ye("98Pyg"),eq:ye("4eeum"),neq:ye("a0PPD"),gte:ye("kRrXd"),lte:ye("ju11K"),cmp:ye("cITzi"),coerce:ye("5M2Mq"),Comparator:ye("hDCF3"),Range:ye("8YuUE"),satisfies:ye("6rO9c"),toComparators:ye("fx4Sd"),maxSatisfying:ye("bMVW7"),minSatisfying:ye("g5aoW"),minVersion:ye("hO4RL"),validRange:ye("hXGf0"),outside:ye("2MRaB"),gtr:ye("bqGrY"),ltr:ye("3AeSM"),intersects:ye("2Lyoi"),simplifyRange:ye("5pzc6"),subset:ye("2XGoS")}})),ye.register("j1nFx",((e,t)=>{var r=ye("9PnyI").MAX_SAFE_COMPONENT_LENGTH,o=ye("8eni4");const s=(t=e.exports={}).re=[],n=t.src=[],i=t.t={};let a=0;const l=(e,t,r)=>{const l=a++;o(l,t),i[e]=l,n[l]=t,s[l]=RegExp(t,r?"g":void 0)};l("NUMERICIDENTIFIER","0|[1-9]\\d*"),l("NUMERICIDENTIFIERLOOSE","[0-9]+"),l("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),l("MAINVERSION",`(${n[i.NUMERICIDENTIFIER]})\\.(${n[i.NUMERICIDENTIFIER]})\\.(${n[i.NUMERICIDENTIFIER]})`),l("MAINVERSIONLOOSE",`(${n[i.NUMERICIDENTIFIERLOOSE]})\\.(${n[i.NUMERICIDENTIFIERLOOSE]})\\.(${n[i.NUMERICIDENTIFIERLOOSE]})`),l("PRERELEASEIDENTIFIER",`(?:${n[i.NUMERICIDENTIFIER]}|${n[i.NONNUMERICIDENTIFIER]})`),l("PRERELEASEIDENTIFIERLOOSE",`(?:${n[i.NUMERICIDENTIFIERLOOSE]}|${n[i.NONNUMERICIDENTIFIER]})`),l("PRERELEASE",`(?:-(${n[i.PRERELEASEIDENTIFIER]}(?:\\.${n[i.PRERELEASEIDENTIFIER]})*))`),l("PRERELEASELOOSE",`(?:-?(${n[i.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${n[i.PRERELEASEIDENTIFIERLOOSE]})*))`),l("BUILDIDENTIFIER","[0-9A-Za-z-]+"),l("BUILD",`(?:\\+(${n[i.BUILDIDENTIFIER]}(?:\\.${n[i.BUILDIDENTIFIER]})*))`),l("FULLPLAIN",`v?${n[i.MAINVERSION]}${n[i.PRERELEASE]}?${n[i.BUILD]}?`),l("FULL",`^${n[i.FULLPLAIN]}$`),l("LOOSEPLAIN",`[v=\\s]*${n[i.MAINVERSIONLOOSE]}${n[i.PRERELEASELOOSE]}?${n[i.BUILD]}?`),l("LOOSE",`^${n[i.LOOSEPLAIN]}$`),l("GTLT","((?:<|>)?=?)"),l("XRANGEIDENTIFIERLOOSE",n[i.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*"),l("XRANGEIDENTIFIER",n[i.NUMERICIDENTIFIER]+"|x|X|\\*"),l("XRANGEPLAIN",`[v=\\s]*(${n[i.XRANGEIDENTIFIER]})(?:\\.(${n[i.XRANGEIDENTIFIER]})(?:\\.(${n[i.XRANGEIDENTIFIER]})(?:${n[i.PRERELEASE]})?${n[i.BUILD]}?)?)?`),l("XRANGEPLAINLOOSE",`[v=\\s]*(${n[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${n[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${n[i.XRANGEIDENTIFIERLOOSE]})(?:${n[i.PRERELEASELOOSE]})?${n[i.BUILD]}?)?)?`),l("XRANGE",`^${n[i.GTLT]}\\s*${n[i.XRANGEPLAIN]}$`),l("XRANGELOOSE",`^${n[i.GTLT]}\\s*${n[i.XRANGEPLAINLOOSE]}$`),l("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),l("COERCERTL",n[i.COERCE],!0),l("LONETILDE","(?:~>?)"),l("TILDETRIM",`(\\s*)${n[i.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",l("TILDE",`^${n[i.LONETILDE]}${n[i.XRANGEPLAIN]}$`),l("TILDELOOSE",`^${n[i.LONETILDE]}${n[i.XRANGEPLAINLOOSE]}$`),l("LONECARET","(?:\\^)"),l("CARETTRIM",`(\\s*)${n[i.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",l("CARET",`^${n[i.LONECARET]}${n[i.XRANGEPLAIN]}$`),l("CARETLOOSE",`^${n[i.LONECARET]}${n[i.XRANGEPLAINLOOSE]}$`),l("COMPARATORLOOSE",`^${n[i.GTLT]}\\s*(${n[i.LOOSEPLAIN]})$|^$`),l("COMPARATOR",`^${n[i.GTLT]}\\s*(${n[i.FULLPLAIN]})$|^$`),l("COMPARATORTRIM",`(\\s*)${n[i.GTLT]}\\s*(${n[i.LOOSEPLAIN]}|${n[i.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",l("HYPHENRANGE",`^\\s*(${n[i.XRANGEPLAIN]})\\s+-\\s+(${n[i.XRANGEPLAIN]})\\s*$`),l("HYPHENRANGELOOSE",`^\\s*(${n[i.XRANGEPLAINLOOSE]})\\s+-\\s+(${n[i.XRANGEPLAINLOOSE]})\\s*$`),l("STAR","(<|>)?=?\\s*\\*"),l("GTE0","^\\s*>=\\s*0.0.0\\s*$"),l("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")})),ye.register("9PnyI",((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}})),ye.register("8eni4",((e,t)=>{const r="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=r})),ye.register("j4Bpm",(function(e,t){var r=ye("8eni4"),o=ye("9PnyI"),s=o.MAX_SAFE_INTEGER,n=o.MAX_LENGTH,i=ye("j1nFx"),a=i.re,l=i.t,c=ye("26eGk"),u=ye("9vPNp").compareIdentifiers;class p{constructor(e,t){if(t=c(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>n)throw new TypeError(`version is longer than ${n} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const o=e.trim().match(t.loose?a[l.LOOSE]:a[l.FULL]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[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=o[4]?o[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&s>t)return t}return e})):[],this.build=o[5]?o[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 o=this.prerelease[t],s=e.prerelease[t];if(r("prerelease compare",t,o,s),void 0===o&&void 0===s)return 0;if(void 0===s)return 1;if(void 0===o)return-1;if(o!==s)return u(o,s)}while(++t)}compareBuild(e){e instanceof p||(e=new p(e,this.options));let t=0;do{const o=this.build[t],s=e.build[t];if(r("prerelease compare",t,o,s),void 0===o&&void 0===s)return 0;if(void 0===s)return 1;if(void 0===o)return-1;if(o!==s)return u(o,s)}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&&(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})),ye.register("26eGk",((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)),{}):{}})),ye.register("9vPNp",((e,t)=>{const r=/^[0-9]+$/,o=(e,t)=>{const o=r.test(e),s=r.test(t);return o&&s&&(e=+e,t=+t),e===t?0:o&&!s?-1:s&&!o?1:t>e?-1:1};e.exports={compareIdentifiers:o,rcompareIdentifiers(e,t){return o(t,e)}}})),ye.register("bd0kF",((e,t)=>{var r=ye("9PnyI").MAX_LENGTH,o=ye("j1nFx"),s=o.re,n=o.t,i=ye("j4Bpm"),a=ye("26eGk");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?s[n.LOOSE]:s[n.FULL]).test(e))return null;try{return new i(e,t)}catch(e){return null}}})),ye.register("1JJDJ",((e,t)=>{var r=ye("bd0kF");e.exports=(e,t)=>{const o=r(e,t);return o?o.version:null}})),ye.register("6mLCu",((e,t)=>{var r=ye("bd0kF");e.exports=(e,t)=>{const o=r(e.trim().replace(/^[=v]+/,""),t);return o?o.version:null}})),ye.register("1Orzu",((e,t)=>{var r=ye("j4Bpm");e.exports=(e,t,o,s)=>{"string"==typeof o&&(s=o,o=void 0);try{return new r(e,o).inc(t,s).version}catch(e){return null}}})),ye.register("kGDR5",((e,t)=>{var r=ye("bd0kF"),o=ye("4eeum");e.exports=(e,t)=>{if(o(e,t))return null;{const o=r(e),s=r(t),n=o.prerelease.length||s.prerelease.length,i=n?"pre":"",a=n?"prerelease":"";for(const e in o)if(("major"===e||"minor"===e||"patch"===e)&&o[e]!==s[e])return i+e;return a}}})),ye.register("4eeum",((e,t)=>{var r=ye("1wyqe");e.exports=(e,t,o)=>0===r(e,t,o)})),ye.register("1wyqe",((e,t)=>{var r=ye("j4Bpm");e.exports=(e,t,o)=>new r(e,o).compare(new r(t,o))})),ye.register("k3zcS",((e,t)=>{var r=ye("j4Bpm");e.exports=(e,t)=>new r(e,t).major})),ye.register("e8NKK",((e,t)=>{var r=ye("j4Bpm");e.exports=(e,t)=>new r(e,t).minor})),ye.register("3Fhst",((e,t)=>{var r=ye("j4Bpm");e.exports=(e,t)=>new r(e,t).patch})),ye.register("6elLy",((e,t)=>{var r=ye("bd0kF");e.exports=(e,t)=>{const o=r(e,t);return o&&o.prerelease.length?o.prerelease:null}})),ye.register("las47",((e,t)=>{var r=ye("1wyqe");e.exports=(e,t,o)=>r(t,e,o)})),ye.register("dQlWE",((e,t)=>{var r=ye("1wyqe");e.exports=(e,t)=>r(e,t,!0)})),ye.register("7REgF",((e,t)=>{var r=ye("j4Bpm");e.exports=(e,t,o)=>{const s=new r(e,o),n=new r(t,o);return s.compare(n)||s.compareBuild(n)}})),ye.register("3U0ar",((e,t)=>{var r=ye("7REgF");e.exports=(e,t)=>e.sort(((e,o)=>r(e,o,t)))})),ye.register("98o3F",((e,t)=>{var r=ye("7REgF");e.exports=(e,t)=>e.sort(((e,o)=>r(o,e,t)))})),ye.register("6bYo1",((e,t)=>{var r=ye("1wyqe");e.exports=(e,t,o)=>r(e,t,o)>0})),ye.register("98Pyg",((e,t)=>{var r=ye("1wyqe");e.exports=(e,t,o)=>0>r(e,t,o)})),ye.register("a0PPD",((e,t)=>{var r=ye("1wyqe");e.exports=(e,t,o)=>0!==r(e,t,o)})),ye.register("kRrXd",((e,t)=>{var r=ye("1wyqe");e.exports=(e,t,o)=>r(e,t,o)>=0})),ye.register("ju11K",((e,t)=>{var r=ye("1wyqe");e.exports=(e,t,o)=>0>=r(e,t,o)})),ye.register("cITzi",((e,t)=>{var r=ye("4eeum"),o=ye("a0PPD"),s=ye("6bYo1"),n=ye("kRrXd"),i=ye("98Pyg"),a=ye("ju11K");e.exports=(e,t,l,c)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof l&&(l=l.version),e===l;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof l&&(l=l.version),e!==l;case"":case"=":case"==":return r(e,l,c);case"!=":return o(e,l,c);case">":return s(e,l,c);case">=":return n(e,l,c);case"<":return i(e,l,c);case"<=":return a(e,l,c);default:throw new TypeError("Invalid operator: "+t)}}})),ye.register("5M2Mq",((e,t)=>{var r=ye("j4Bpm"),o=ye("bd0kF"),s=ye("j1nFx"),n=s.re,i=s.t;e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e+=""),"string"!=typeof e)return null;let s=null;if((t=t||{}).rtl){let t;for(;(t=n[i.COERCERTL].exec(e))&&(!s||s.index+s[0].length!==e.length);)s&&t.index+t[0].length===s.index+s[0].length||(s=t),n[i.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;n[i.COERCERTL].lastIndex=-1}else s=e.match(n[i.COERCE]);return null===s?null:o(`${s[2]}.${s[3]||"0"}.${s[4]||"0"}`,t)}})),ye.register("hDCF3",(function(e,t){const r=Symbol();class o{static get ANY(){return r}constructor(e,t){if(t=s(t),e instanceof o){if(e.loose===!!t.loose)return e;e=e.value}c("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.value=this.semver===r?"":this.operator+this.semver.version,c("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(c("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 l(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof o))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),s=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),n=this.semver.version===e.semver.version,i=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=l(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=l(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||s||n&&i||a||c}}e.exports=o;var s=ye("26eGk"),n=ye("j1nFx"),i=n.re,a=n.t,l=ye("cITzi"),c=ye("8eni4"),u=ye("j4Bpm"),p=ye("8YuUE")})),ye.register("8YuUE",(function(e,t){class r{constructor(e,t){if(t=s(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof n)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(/\s*\|\|\s*/).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=o.get(t);if(r)return r;const s=this.options.loose;e=e.replace(s?u[p.HYPHENRANGELOOSE]:u[p.HYPHENRANGE],_(this.options.includePrerelease)),i("hyphen replace",e),e=e.replace(u[p.COMPARATORTRIM],d),i("comparator trim",e,u[p.COMPARATORTRIM]),e=(e=(e=e.replace(u[p.TILDETRIM],h)).replace(u[p.CARETTRIM],c)).split(/\s+/).join(" ");const a=s?u[p.COMPARATORLOOSE]:u[p.COMPARATOR],l=e.split(" ").map((e=>y(e,this.options))).join(" ").split(/\s+/).map((e=>$(e,this.options))).filter(this.options.loose?e=>!!e.match(a):()=>!0).map((e=>new n(e,this.options))),m=new Map;for(const e of l){if(f(e))return[e];m.set(e.value,e)}m.size>1&&m.has("")&&m.delete("");const v=[...m.values()];return o.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(R(this.set[t],e,this.options))return!0;return!1}}e.exports=r;const o=new(ye("hqS6J"))({max:1e3});var s=ye("26eGk"),n=ye("hDCF3"),i=ye("8eni4"),a=ye("j4Bpm"),l=ye("j1nFx"),c=l.caretTrimReplace,u=l.re,p=l.t,d=l.comparatorTrimReplace,h=l.tildeTrimReplace;const f=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,v=(e,t)=>{let r=!0;const o=e.slice();let s=o.pop();for(;r&&o.length;)r=o.every((e=>s.intersects(e,t))),s=o.pop();return r},y=(e,t)=>(i("comp",e,t),e=E(e,t),i("caret",e),e=x(e,t),i("tildes",e),e=P(e,t),i("xrange",e),e=S(e,t),i("stars",e),e),g=e=>!e||"x"===e.toLowerCase()||"*"===e,x=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>e.replace(t.loose?u[p.TILDELOOSE]:u[p.TILDE],((t,r,o,s,n)=>{let a;return i("tilde",e,t,r,o,s,n),g(r)?a="":g(o)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:g(s)?a=`>=${r}.${o}.0 <${r}.${+o+1}.0-0`:n?(i("replaceTilde pr",n),a=`>=${r}.${o}.${s}-${n} <${r}.${+o+1}.0-0`):a=`>=${r}.${o}.${s} <${r}.${+o+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?u[p.CARETLOOSE]:u[p.CARET],((t,o,s,n,a)=>{let l;return i("caret",e,t,o,s,n,a),g(o)?l="":g(s)?l=`>=${o}.0.0${r} <${+o+1}.0.0-0`:g(n)?l="0"===o?`>=${o}.${s}.0${r} <${o}.${+s+1}.0-0`:`>=${o}.${s}.0${r} <${+o+1}.0.0-0`:a?(i("replaceCaret pr",a),l="0"===o?"0"===s?`>=${o}.${s}.${n}-${a} <${o}.${s}.${+n+1}-0`:`>=${o}.${s}.${n}-${a} <${o}.${+s+1}.0-0`:`>=${o}.${s}.${n}-${a} <${+o+1}.0.0-0`):(i("no pr"),l="0"===o?"0"===s?`>=${o}.${s}.${n}${r} <${o}.${s}.${+n+1}-0`:`>=${o}.${s}.${n}${r} <${o}.${+s+1}.0-0`:`>=${o}.${s}.${n} <${+o+1}.0.0-0`),i("caret return",l),l}))},P=(e,t)=>(i("replaceXRanges",e,t),e.split(/\s+/).map((e=>O(e,t))).join(" ")),O=(e,t)=>(e=e.trim()).replace(t.loose?u[p.XRANGELOOSE]:u[p.XRANGE],((r,o,s,n,a,l)=>{i("xRange",e,r,o,s,n,a,l);const c=g(s),u=c||g(n),p=u||g(a);return"="===o&&p&&(o=""),l=t.includePrerelease?"-0":"",c?r=">"===o||"<"===o?"<0.0.0-0":"*":o&&p?(u&&(n=0),a=0,">"===o?(o=">=",u?(s=+s+1,n=0,a=0):(n=+n+1,a=0)):"<="===o&&(o="<",u?s=+s+1:n=+n+1),"<"===o&&(l="-0"),r=`${o+s}.${n}.${a}${l}`):u?r=`>=${s}.0.0${l} <${+s+1}.0.0-0`:p&&(r=`>=${s}.${n}.0${l} <${s}.${+n+1}.0-0`),i("xRange return",r),r})),S=(e,t)=>(i("replaceStars",e,t),e.trim().replace(u[p.STAR],"")),$=(e,t)=>(i("replaceGTE0",e,t),e.trim().replace(u[t.includePrerelease?p.GTE0PRE:p.GTE0],"")),_=e=>(t,r,o,s,n,i,a,l,c,u,p,d,h)=>`${r=g(o)?"":g(s)?`>=${o}.0.0${e?"-0":""}`:g(n)?`>=${o}.${s}.0${e?"-0":""}`:i?">="+r:`>=${r}${e?"-0":""}`} ${l=g(c)?"":g(u)?`<${+c+1}.0.0-0`:g(p)?`<${c}.${+u+1}.0-0`:d?`<=${c}.${u}.${p}-${d}`:e?`<${c}.${u}.${+p+1}-0`:"<="+l}`.trim(),R=(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!==n.ANY&&e[r].semver.prerelease.length>0){const o=e[r].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}})),ye.register("hqS6J",(function(e,t){"use strict";var r=ye("9ShIP");const o=Symbol(),s=Symbol(),n=Symbol(),i=Symbol(),a=Symbol(),l=Symbol(),c=Symbol(),u=Symbol(),p=Symbol(),d=Symbol(),h=()=>1,f=(e,t,r)=>{const o=e[p].get(t);if(o){const t=o.value;if(m(e,t)){if(y(e,o),!e[i])return}else r&&(e[d]&&(o.value.now=Date.now()),e[u].unshiftNode(o));return t.value}},m=(e,t)=>{if(!t||!t.maxAge&&!e[a])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[a]&&r>e[a]},v=e=>{if(e[s]>e[o])for(let t=e[u].tail;e[s]>e[o]&&null!==t;){const r=t.prev;y(e,t),t=r}},y=(e,t)=>{if(t){const r=t.value;e[l]&&e[l](r.key,r.value),e[s]-=r.length,e[p].delete(r.key),e[u].removeNode(t)}};class g{constructor(e,t,r,o,s){this.key=e,this.value=t,this.length=r,this.now=o,this.maxAge=s||0}}const x=(e,t,r,o)=>{let s=r.value;m(e,s)&&(y(e,r),e[i]||(s=void 0)),s&&t.call(o,s.value,s.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||0>e.max))throw new TypeError("max must be a non-negative number");this[o]=e.max||1/0;const t=e.length||h;if(this[n]="function"!=typeof t?h:t,this[i]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[a]=e.maxAge||0,this[l]=e.dispose,this[c]=e.noDisposeOnSet||!1,this[d]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||0>e)throw new TypeError("max must be a non-negative number");this[o]=e||1/0,v(this)}get max(){return this[o]}set allowStale(e){this[i]=!!e}get allowStale(){return this[i]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[a]=e,v(this)}get maxAge(){return this[a]}set lengthCalculator(e){"function"!=typeof e&&(e=h),e!==this[n]&&(this[n]=e,this[s]=0,this[u].forEach((e=>{e.length=this[n](e.value,e.key),this[s]+=e.length}))),v(this)}get lengthCalculator(){return this[n]}get length(){return this[s]}get itemCount(){return this[u].length}rforEach(e,t){t=t||this;for(let r=this[u].tail;null!==r;){const o=r.prev;x(this,e,r,t),r=o}}forEach(e,t){t=t||this;for(let r=this[u].head;null!==r;){const o=r.next;x(this,e,r,t),r=o}}keys(){return this[u].toArray().map((e=>e.key))}values(){return this[u].toArray().map((e=>e.value))}reset(){this[l]&&this[u]&&this[u].length&&this[u].forEach((e=>this[l](e.key,e.value))),this[p]=new Map,this[u]=new r,this[s]=0}dump(){return this[u].map((e=>!m(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[u]}set(e,t,r){if((r=r||this[a])&&"number"!=typeof r)throw new TypeError("maxAge must be a number");const i=r?Date.now():0,d=this[n](t,e);if(this[p].has(e)){if(d>this[o])return y(this,this[p].get(e)),!1;const n=this[p].get(e).value;return this[l]&&(this[c]||this[l](e,n.value)),n.now=i,n.maxAge=r,n.value=t,this[s]+=d-n.length,n.length=d,this.get(e),v(this),!0}const h=new g(e,t,d,i,r);return h.length>this[o]?(this[l]&&this[l](e,t),!1):(this[s]+=h.length,this[u].unshift(h),this[p].set(e,this[u].head),v(this),!0)}has(e){if(!this[p].has(e))return!1;const t=this[p].get(e).value;return!m(this,t)}get(e){return f(this,e,!0)}peek(e){return f(this,e,!1)}pop(){const e=this[u].tail;return e?(y(this,e),e.value):null}del(e){y(this,this[p].get(e))}load(e){this.reset();const t=Date.now();for(let r=e.length-1;r>=0;r--){const o=e[r],s=o.e||0;if(0===s)this.set(o.k,o.v);else{const e=s-t;e>0&&this.set(o.k,o.v,e)}}}prune(){this[p].forEach(((e,t)=>f(this,t,!1)))}}})),ye.register("9ShIP",(function(e,t){"use strict";function r(e){var t=this;if(t instanceof r||(t=new r),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((e=>{t.push(e)}));else if(arguments.length>0)for(var o=0,s=arguments.length;s>o;o++)t.push(arguments[o]);return t}function o(e,t,r){var o=t===e.head?new i(r,null,t,e):new i(r,t,t.next,e);return null===o.next&&(e.tail=o),null===o.prev&&(e.head=o),e.length++,o}function s(e,t){e.tail=new i(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function n(e,t){e.head=new i(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function i(e,t,r,o){if(!(this instanceof i))return new i(e,t,r,o);this.list=o,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}e.exports=r,r.Node=i,r.create=r,r.prototype.removeNode=function(e){if(e.list!==this)throw Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t},r.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},r.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},r.prototype.push=function(){for(var e=0,t=arguments.length;t>e;e++)s(this,arguments[e]);return this.length},r.prototype.unshift=function(){for(var e=0,t=arguments.length;t>e;e++)n(this,arguments[e]);return this.length},r.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},r.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},r.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,o=0;null!==r;o++)e.call(t,r.value,o,this),r=r.next},r.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,o=this.length-1;null!==r;o--)e.call(t,r.value,o,this),r=r.prev},r.prototype.get=function(e){for(var t=0,r=this.head;null!==r&&e>t;t++)r=r.next;if(t===e&&null!==r)return r.value},r.prototype.getReverse=function(e){for(var t=0,r=this.tail;null!==r&&e>t;t++)r=r.prev;if(t===e&&null!==r)return r.value},r.prototype.map=function(e,t){t=t||this;for(var o=new r,s=this.head;null!==s;)o.push(e.call(t,s.value,this)),s=s.next;return o},r.prototype.mapReverse=function(e,t){t=t||this;for(var o=new r,s=this.tail;null!==s;)o.push(e.call(t,s.value,this)),s=s.prev;return o},r.prototype.reduce=function(e,t){var r,o=this.head;if(arguments.length>1)r=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");o=this.head.next,r=this.head.value}for(var s=0;null!==o;s++)r=e(r,o.value,s),o=o.next;return r},r.prototype.reduceReverse=function(e,t){var r,o=this.tail;if(arguments.length>1)r=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");o=this.tail.prev,r=this.tail.value}for(var s=this.length-1;null!==o;s--)r=e(r,o.value,s),o=o.prev;return r},r.prototype.toArray=function(){for(var e=Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e},r.prototype.toArrayReverse=function(){for(var e=Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e},r.prototype.slice=function(e,t){0>(t=t||this.length)&&(t+=this.length),0>(e=e||0)&&(e+=this.length);var o=new r;if(e>t||0>t)return o;0>e&&(e=0),t>this.length&&(t=this.length);for(var s=0,n=this.head;null!==n&&e>s;s++)n=n.next;for(;null!==n&&t>s;s++,n=n.next)o.push(n.value);return o},r.prototype.sliceReverse=function(e,t){0>(t=t||this.length)&&(t+=this.length),0>(e=e||0)&&(e+=this.length);var o=new r;if(e>t||0>t)return o;0>e&&(e=0),t>this.length&&(t=this.length);for(var s=this.length,n=this.tail;null!==n&&s>t;s--)n=n.prev;for(;null!==n&&s>e;s--,n=n.prev)o.push(n.value);return o},r.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),0>e&&(e=this.length+e);for(var s=0,n=this.head;null!==n&&e>s;s++)n=n.next;var i=[];for(s=0;n&&t>s;s++)i.push(n.value),n=this.removeNode(n);for(null===n&&(n=this.tail),n!==this.head&&n!==this.tail&&(n=n.prev),s=0;r.length>s;s++)n=o(this,n,r[s]);return i},r.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;null!==r;r=r.prev){var o=r.prev;r.prev=r.next,r.next=o}return this.head=t,this.tail=e,this};try{ye("bdwRA")(r)}catch(e){}})),ye.register("bdwRA",(function(e,t){"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}})),ye.register("6rO9c",((e,t)=>{var r=ye("8YuUE");e.exports=(e,t,o)=>{try{t=new r(t,o)}catch(e){return!1}return t.test(e)}})),ye.register("fx4Sd",((e,t)=>{var r=ye("8YuUE");e.exports=(e,t)=>new r(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))})),ye.register("bMVW7",((e,t)=>{var r=ye("j4Bpm"),o=ye("8YuUE");e.exports=(e,t,s)=>{let n=null,i=null,a=null;try{a=new o(t,s)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(n&&-1!==i.compare(e)||(n=e,i=new r(n,s)))})),n}})),ye.register("g5aoW",((e,t)=>{var r=ye("j4Bpm"),o=ye("8YuUE");e.exports=(e,t,s)=>{let n=null,i=null,a=null;try{a=new o(t,s)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(n&&1!==i.compare(e)||(n=e,i=new r(n,s)))})),n}})),ye.register("hO4RL",((e,t)=>{var r=ye("j4Bpm"),o=ye("8YuUE"),s=ye("6bYo1");e.exports=(e,t)=>{e=new o(e,t);let n=new r("0.0.0");if(e.test(n))return n;if(n=new r("0.0.0-0"),e.test(n))return n;n=null;for(let t=0;e.set.length>t;++t){let o=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">=":o&&!s(t,o)||(o=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator)}})),!o||n&&!s(n,o)||(n=o)}return n&&e.test(n)?n:null}})),ye.register("hXGf0",((e,t)=>{var r=ye("8YuUE");e.exports=(e,t)=>{try{return new r(e,t).range||"*"}catch(e){return null}}})),ye.register("2MRaB",((e,t)=>{var r=ye("j4Bpm"),o=ye("hDCF3");const{ANY:s}=o;var n=ye("8YuUE"),i=ye("6rO9c"),a=ye("6bYo1"),l=ye("98Pyg"),c=ye("ju11K"),u=ye("kRrXd");e.exports=(e,t,p,d)=>{let h,f,m,v,y;switch(e=new r(e,d),t=new n(t,d),p){case">":h=a,f=c,m=l,v=">",y=">=";break;case"<":h=l,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 n=null,i=null;if(t.set[r].forEach((e=>{e.semver===s&&(e=new o(">=0.0.0")),n=n||e,i=i||e,h(e.semver,n.semver,d)?n=e:m(e.semver,i.semver,d)&&(i=e)})),n.operator===v||n.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}})),ye.register("bqGrY",((e,t)=>{var r=ye("2MRaB");e.exports=(e,t,o)=>r(e,t,">",o)})),ye.register("3AeSM",((e,t)=>{var r=ye("2MRaB");e.exports=(e,t,o)=>r(e,t,"<",o)})),ye.register("2Lyoi",((e,t)=>{var r=ye("8YuUE");e.exports=(e,t,o)=>(e=new r(e,o),t=new r(t,o),e.intersects(t))})),ye.register("5pzc6",((e,t)=>{var r=ye("6rO9c"),o=ye("1wyqe");e.exports=(e,t,s)=>{const n=[];let i=null,a=null;const l=e.sort(((e,t)=>o(e,t,s)));for(const e of l)r(e,t,s)?(a=e,i||(i=e)):(a&&n.push([i,a]),a=null,i=null);i&&n.push([i,null]);const c=[];for(const[e,t]of n)c.push(e===t?e:t||e!==l[0]?t?e===l[0]?"<="+t:`${e} - ${t}`:">="+e:"*");const u=c.join(" || ");return("string"==typeof t.raw?t.raw:t+"").length>u.length?u:t}})),ye.register("2XGoS",((e,t)=>{var r=ye("8YuUE"),o=ye("hDCF3");const{ANY:s}=o;var n=ye("6rO9c"),i=ye("1wyqe");const a=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===s){if(1===t.length&&t[0].semver===s)return!0;e=r.includePrerelease?[new o(">=0.0.0-0")]:[new o(">=0.0.0")]}if(1===t.length&&t[0].semver===s){if(r.includePrerelease)return!0;t=[new o(">=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=l(u,t,r):"<"===t.operator||"<="===t.operator?p=c(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&&!n(e,u+"",r))return null;if(p&&!n(e,p+"",r))return null;for(const o of t)if(!n(e,o+"",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=l(u,e,r),h===e&&h!==u)return!1}else if(">="===u.operator&&!n(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=c(p,e,r),f===e&&f!==p)return!1}else if("<="===p.operator&&!n(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)},l=(e,t,r)=>{if(!e)return t;const o=i(e.semver,t.semver,r);return o>0?e:0>o||">"===t.operator&&">="===e.operator?t:e},c=(e,t,r)=>{if(!e)return t;const o=i(e.semver,t.semver,r);return 0>o?e:o>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,o={})=>{if(e===t)return!0;e=new r(e,o),t=new r(t,o);let s=!1;e:for(const r of e.set){for(const e of t.set){const t=a(r,e,o);if(s=s||null!==t,t)continue e}if(s)return!1}return!0}}));const Ze=Ve(ye("1Hds5")),ze=Ve(Q),We=Ve(ee);ye.register("9AGbw",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0});var r=ye("cEfL5");let o;var s,n,i,a,l;(n=s=e.exports.HttpCodes||(e.exports.HttpCodes={}))[n.OK=200]="OK",n[n.MultipleChoices=300]="MultipleChoices",n[n.MovedPermanently=301]="MovedPermanently",n[n.ResourceMoved=302]="ResourceMoved",n[n.SeeOther=303]="SeeOther",n[n.NotModified=304]="NotModified",n[n.UseProxy=305]="UseProxy",n[n.SwitchProxy=306]="SwitchProxy",n[n.TemporaryRedirect=307]="TemporaryRedirect",n[n.PermanentRedirect=308]="PermanentRedirect",n[n.BadRequest=400]="BadRequest",n[n.Unauthorized=401]="Unauthorized",n[n.PaymentRequired=402]="PaymentRequired",n[n.Forbidden=403]="Forbidden",n[n.NotFound=404]="NotFound",n[n.MethodNotAllowed=405]="MethodNotAllowed",n[n.NotAcceptable=406]="NotAcceptable",n[n.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",n[n.RequestTimeout=408]="RequestTimeout",n[n.Conflict=409]="Conflict",n[n.Gone=410]="Gone",n[n.TooManyRequests=429]="TooManyRequests",n[n.InternalServerError=500]="InternalServerError",n[n.NotImplemented=501]="NotImplemented",n[n.BadGateway=502]="BadGateway",n[n.ServiceUnavailable=503]="ServiceUnavailable",n[n.GatewayTimeout=504]="GatewayTimeout",(a=i=e.exports.Headers||(e.exports.Headers={})).Accept="accept",a.ContentType="content-type",(l=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 c=[s.MovedPermanently,s.ResourceMoved,s.SeeOther,s.TemporaryRedirect,s.PermanentRedirect],u=[s.BadGateway,s.ServiceUnavailable,s.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,o){return this.request(e,t,r,o)}async getJson(e,t={}){t[i.Accept]=this._getExistingOrDefaultHeader(t,i.Accept,l.ApplicationJson);let r=await this.get(e,t);return this._processResponse(r,this.requestOptions)}async postJson(e,t,r={}){let o=JSON.stringify(t,null,2);r[i.Accept]=this._getExistingOrDefaultHeader(r,i.Accept,l.ApplicationJson),r[i.ContentType]=this._getExistingOrDefaultHeader(r,i.ContentType,l.ApplicationJson);let s=await this.post(e,o,r);return this._processResponse(s,this.requestOptions)}async putJson(e,t,r={}){let o=JSON.stringify(t,null,2);r[i.Accept]=this._getExistingOrDefaultHeader(r,i.Accept,l.ApplicationJson),r[i.ContentType]=this._getExistingOrDefaultHeader(r,i.ContentType,l.ApplicationJson);let s=await this.put(e,o,r);return this._processResponse(s,this.requestOptions)}async patchJson(e,t,r={}){let o=JSON.stringify(t,null,2);r[i.Accept]=this._getExistingOrDefaultHeader(r,i.Accept,l.ApplicationJson),r[i.ContentType]=this._getExistingOrDefaultHeader(r,i.ContentType,l.ApplicationJson);let s=await this.patch(e,o,r);return this._processResponse(s,this.requestOptions)}async request(e,t,r,o){if(this._disposed)throw Error("Client has already been disposed.");let n,i=new URL(t),a=this._prepareRequest(e,i,o),l=this._allowRetries&&-1!=p.indexOf(e)?this._maxRetries+1:1,d=0;for(;l>d;){if(n=await this.requestRaw(a,r),n&&n.message&&n.message.statusCode===s.Unauthorized){let e;for(let t=0;this.handlers.length>t;t++)if(this.handlers[t].canHandleAuthentication(n)){e=this.handlers[t];break}return e?e.handleAuthentication(this,a,r):n}let t=this._maxRedirects;for(;-1!=c.indexOf(n.message.statusCode)&&this._allowRedirects&&t>0;){const s=n.message.headers.location;if(!s)break;let l=new URL(s);if("https:"==i.protocol&&i.protocol!=l.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 n.readBody(),l.hostname!==i.hostname)for(let e in o)"authorization"===e.toLowerCase()&&delete o[e];a=this._prepareRequest(e,l,o),n=await this.requestRaw(a,r),t--}if(-1==u.indexOf(n.message.statusCode))return n;d+=1,l>d&&(await n.readBody(),await this._performExponentialBackoff(d))}return n}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}requestRaw(e,t){return new Promise(((r,o)=>{this.requestRawWithCallback(e,t,((e,t)=>{e&&o(e),r(t)}))}))}requestRawWithCallback(e,t,r){let o;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let s=!1,n=(e,t)=>{s||(s=!0,r(e,t))},i=e.httpModule.request(e.options,(e=>{let t=new h(e);n(null,t)}));i.on("socket",(e=>{o=e})),i.setTimeout(this._socketTimeout||18e4,(()=>{o&&o.end(),n(Error("Request timeout: "+e.options.path),null)})),i.on("error",(e=>{n(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 o={};o.parsedUrl=t;const s="https:"===o.parsedUrl.protocol;o.httpModule=s?ue:ce;const n=s?443:80;return o.options={},o.options.host=o.parsedUrl.hostname,o.options.port=o.parsedUrl.port?parseInt(o.parsedUrl.port):n,o.options.path=(o.parsedUrl.pathname||"")+(o.parsedUrl.search||""),o.options.method=e,o.options.headers=this._mergeHeaders(r),null!=this.userAgent&&(o.options.headers["user-agent"]=this.userAgent),o.options.agent=this._getAgent(o.parsedUrl),this.handlers&&this.handlers.forEach((e=>{e.prepareRequest(o.options)})),o}_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 o;var s;return this.requestOptions&&this.requestOptions.headers&&(o=(s=this.requestOptions.headers,Object.keys(s).reduce(((e,t)=>(e[t.toLowerCase()]=s[t],e)),{}))[t]),e[t]||o||r}_getAgent(e){let t,s=r.getProxyUrl(e),n=s&&s.hostname;if(this._keepAlive&&n&&(t=this._proxyAgent),this._keepAlive&&!n&&(t=this._agent),t)return t;const i="https:"===e.protocol;let a=100;if(this.requestOptions&&(a=this.requestOptions.maxSockets||ce.globalAgent.maxSockets),n){o||(o=ye("hEhmi"));const e={maxSockets:a,keepAlive:this._keepAlive,proxy:{...(s.username||s.password)&&{proxyAuth:`${s.username}:${s.password}`},host:s.hostname,port:s.port}};let r;const n="https:"===s.protocol;r=i?n?o.httpsOverHttps:o.httpsOverHttp:n?o.httpOverHttps:o.httpOverHttp,t=r(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:a};t=i?new ue.Agent(e):new ce.Agent(e),this._agent=t}return t||(t=i?ue.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,o)=>{const n=e.message.statusCode,i={statusCode:n,result:null,headers:{}};let a,l;n==s.NotFound&&r(i);try{l=await e.readBody(),l&&l.length>0&&(a=t&&t.deserializeDates?JSON.parse(l,f.dateTimeDeserializer):JSON.parse(l),i.result=a),i.headers=e.message.headers}catch(e){}if(n>299){let e;e=a&&a.message?a.message:l&&l.length>0?l:"Failed request: ("+n+")";let t=new d(e,n);t.result=i.result,o(t)}else r(i)}))}}e.exports.HttpClient=f})),ye.register("cEfL5",((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 o=[e.hostname.toUpperCase()];"number"==typeof t&&o.push(`${o[0]}:${t}`);for(let e of r.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e)))if(o.some((t=>t===e)))return!0;return!1}Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getProxyUrl=e=>{let t,o,s="https:"===e.protocol;return r(e)||(o=s?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY,o&&(t=new URL(o))),t},e.exports.checkBypass=r})),ye.register("hEhmi",((e,t)=>{e.exports=ye("88ZfI")})),ye.register("88ZfI",(function(e,r){function o(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,o,s)=>{for(var i=n(r,o,s),a=0,l=t.requests.length;l>a;++a){var c=t.requests[a];if(c.host===i.host&&c.port===i.port)return t.requests.splice(a,1),void c.request.onSocket(e)}e.destroy(),t.removeSocket(e)}))}function s(e,t){var r=this;o.prototype.createSocket.call(r,e,(o=>{var s=e.request.getHeader("host"),n=i({},r.options,{socket:o,servername:s?s.replace(/:.*$/,""):e.host}),a=pe.connect(0,n);r.sockets[r.sockets.indexOf(o)]=a,t(a)}))}function n(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 o=arguments[t];if("object"==typeof o)for(var s=Object.keys(o),n=0,i=s.length;i>n;++n){var a=s[n];void 0!==o[a]&&(e[a]=o[a])}}return e}var a,l,c,u,p,d;t(e.exports,"httpOverHttp",(()=>p),(e=>p=e)),t(e.exports,"httpOverHttps",(()=>l),(e=>l=e)),t(e.exports,"debug",(()=>u),(e=>u=e)),t(e.exports,"httpsOverHttps",(()=>c),(e=>c=e)),t(e.exports,"httpsOverHttp",(()=>a),(e=>a=e)),p=e=>{var t=new o(e);return t.request=ce.request,t},a=e=>{var t=new o(e);return t.request=ce.request,t.createSocket=s,t.defaultPort=443,t},l=e=>{var t=new o(e);return t.request=ue.request,t},c=e=>{var t=new o(e);return t.request=ue.request,t.createSocket=s,t.defaultPort=443,t},ae.inherits(o,se.EventEmitter),o.prototype.addRequest=function(e,t,r,o){var s=this,a=i({request:e},s.options,n(t,r,o));this.maxSockets>s.sockets.length?s.createSocket(a,(t=>{function r(){s.emit("free",t,a)}function o(e){s.removeSocket(t),t.removeListener("free",r),t.removeListener("close",o),t.removeListener("agentRemove",o)}t.on("free",r),t.on("close",o),t.on("agentRemove",o),e.onSocket(t)})):s.requests.push(a)},o.prototype.createSocket=function(e,t){function r(r,n,i){var l;return a.removeAllListeners(),n.removeAllListeners(),200!==r.statusCode?(d("tunneling socket could not be established, statusCode=%d",r.statusCode),n.destroy(),(l=Error("tunneling socket could not be established, statusCode="+r.statusCode)).code="ECONNRESET",e.request.emit("error",l),void o.removeSocket(s)):i.length>0?(d("got illegal response body from proxy"),n.destroy(),(l=Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",l),void o.removeSocket(s)):(d("tunneling connection has established"),o.sockets[o.sockets.indexOf(s)]=n,t(n))}var o=this,s={};o.sockets.push(s);var n=i({},o.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(n.localAddress=e.localAddress),n.proxyAuth&&(n.headers=n.headers||{},n.headers["Proxy-Authorization"]="Basic "+new Buffer(n.proxyAuth).toString("base64")),d("making CONNECT request");var a=o.request(n);a.useChunkedEncodingByDefault=!1,a.once("response",(e=>{e.upgrade=!0})),a.once("upgrade",((e,t,o)=>{process.nextTick((()=>{r(e,t,o)}))})),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),o.removeSocket(s)})),a.end()},o.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)}))}},d=process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?function(){var e=[].slice.call(arguments);"string"==typeof e[0]?e[0]="TUNNEL: "+e[0]:e.unshift("TUNNEL:"),console.error.apply(console,e)}:()=>{},u=d}));const Je=Ve(ye("9AGbw")),Ke=Ve(ye("hBwzM")),Qe=Ve(le),et=Ve(ae);ye.register("kceBH",((e,t)=>{var r=ye("diWfV"),o=ye("8n3PT");e.exports=(e,t,s)=>{var n=t&&s||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[n+a]=i[a];return t||o(i)}})),ye.register("diWfV",((e,t)=>{e.exports=()=>de.randomBytes(16)})),ye.register("8n3PT",((e,t)=>{for(var r=[],o=0;256>o;++o)r[o]=(o+256).toString(16).substr(1);e.exports=(e,t)=>{var o=t||0;return""+r[e[o++]]+r[e[o++]]+r[e[o++]]+r[e[o++]]+"-"+r[e[o++]]+r[e[o++]]+"-"+r[e[o++]]+r[e[o++]]+"-"+r[e[o++]]+r[e[o++]]+"-"+r[e[o++]]+r[e[o++]]+r[e[o++]]+r[e[o++]]+r[e[o++]]+r[e[o++]]}}));const tt=He(ye("kceBH"));var rt={},ot=rt&&rt.__createBinding||(Object.create?(e,t,r,o)=>{void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get(){return t[r]}})}:(e,t,r,o)=>{void 0===o&&(o=r),e[o]=t[r]}),st=rt&&rt.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),nt=rt&&rt.__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)&&ot(t,e,r);return st(t,e),t}),it=rt&&rt.__awaiter||((e,t,r,o)=>new(r||(r=Promise))(((s,n)=>{function i(e){try{l(o.next(e))}catch(e){n(e)}}function a(e){try{l(o.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}l((o=o.apply(e,t||[])).next())})));Object.defineProperty(rt,"__esModule",{value:!0}),rt.RetryHelper=void 0;const at=nt(ye("6FGZZ"));rt.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 it(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;at.info(e.message)}const o=this.getSleepAmount();at.info(`Waiting ${o} seconds before trying again`),yield this.sleep(o),r++}return yield e()}))}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return it(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,1e3*e)))}))}};class lt extends Error{constructor(e){super("Unexpected HTTP response: "+e),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}}Me.HTTPError=lt;const ct="win32"===process.platform,ut="darwin"===process.platform;Me.downloadTool=function(e,t,r,o){return Ge(this,void 0,void 0,(function*(){t=t||We.join(y(),tt.default()),yield Xe.mkdirP(We.dirname(t)),Be.debug("Downloading "+e),Be.debug("Destination "+t);const s=g("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),n=g("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),i=new rt.RetryHelper(3,s,n);return yield i.execute((()=>Ge(this,void 0,void 0,(function*(){return yield function(e,t,r,o){return Ge(this,void 0,void 0,(function*(){if(Ye.existsSync(t))throw Error(`Destination file path ${t} already exists`);const s=new Je.HttpClient("actions/tool-cache",[],{allowRetries:!1});r&&(Be.debug("set auth"),void 0===o&&(o={}),o.authorization=r);const n=yield s.get(e,o);if(200!==n.message.statusCode){const t=new lt(n.message.statusCode);throw Be.debug(`Failed to download from "${e}". Code(${n.message.statusCode}) Message(${n.message.statusMessage})`),t}const i=et.promisify(Qe.pipeline),a=g("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>n.message))();let l=!1;try{return yield i(a,Ye.createWriteStream(t)),Be.debug("download complete"),l=!0,t}finally{if(!l){Be.debug("download failed");try{yield Xe.rmRF(t)}catch(e){Be.debug(`Failed to delete '${t}'. ${e.message}`)}}}}))}(e,t||"",r,o)}))),(e=>!(e instanceof lt&&e.httpStatusCode&&500>e.httpStatusCode&&408!==e.httpStatusCode&&429!==e.httpStatusCode)))}))},Me.extract7z=function(e,t,r){return Ge(this,void 0,void 0,(function*(){ie.ok(ct,"extract7z() not supported on current OS"),ie.ok(e,'parameter "file" is required'),t=yield p(t);const o=process.cwd();if(process.chdir(t),r)try{const t=["x",Be.isDebug()?"-bb1":"-bb0","-bd","-sccUTF-8",e],s={silent:!0};yield Re.exec(`"${r}"`,t,s)}finally{process.chdir(o)}else{const r=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${We.join(__dirname,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"")}' -Source '${e.replace(/'/g,"''").replace(/"|\n|\r/g,"")}' -Target '${t.replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`],s={silent:!0};try{const e=yield Xe.which("powershell",!0);yield Re.exec(`"${e}"`,r,s)}finally{process.chdir(o)}}return t}))},Me.extractTar=function(e,t,r="xz"){return Ge(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'file' is required");t=yield p(t),Be.debug("Checking tar --version");let o="";yield Re.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout(e){return o+=""+e},stderr(e){return o+=""+e}}}),Be.debug(o.trim());const s=o.toUpperCase().includes("GNU TAR");let n;n=r instanceof Array?r:[r],Be.isDebug()&&!r.includes("v")&&n.push("-v");let i=t,a=e;return ct&&s&&(n.push("--force-local"),i=t.replace(/\\/g,"/"),a=e.replace(/\\/g,"/")),s&&(n.push("--warning=no-unknown-keyword"),n.push("--overwrite")),n.push("-C",i,"-f",a),yield Re.exec("tar",n),t}))},Me.extractXar=function(e,t,r=[]){return Ge(this,void 0,void 0,(function*(){let o;ie.ok(ut,"extractXar() not supported on current OS"),ie.ok(e,'parameter "file" is required'),t=yield p(t),o=r instanceof Array?r:[r],o.push("-x","-C",t,"-f",e),Be.isDebug()&&o.push("-v");const s=yield Xe.which("xar",!0);var n;return yield Re.exec(`"${s}"`,(n=o,Array.from(new Set(n)))),t}))},Me.extractZip=function(e,t){return Ge(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'file' is required");return t=yield p(t),ct?yield function(e,t){return Ge(this,void 0,void 0,(function*(){const r=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),o=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),s=yield Xe.which("pwsh",!1);if(s){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}', '${o}', $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 '${o}' -Force } else { throw $_ } } ;`].join(" ")];Be.debug("Using pwsh at path: "+s),yield Re.exec(`"${s}"`,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 '${o}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${o}', $true) }`].join(" ")],t=yield Xe.which("powershell",!0);Be.debug("Using powershell at path: "+t),yield Re.exec(`"${t}"`,e)}}))}(e,t):yield function(e,t){return Ge(this,void 0,void 0,(function*(){const r=yield Xe.which("unzip",!0),o=[e];Be.isDebug()||o.unshift("-q"),o.unshift("-o"),yield Re.exec(`"${r}"`,o,{cwd:t})}))}(e,t),t}))},Me.cacheDir=function(e,t,r,o){return Ge(this,void 0,void 0,(function*(){if(r=Ke.clean(r)||r,o=o||ze.arch(),Be.debug(`Caching tool ${t} ${r} ${o}`),Be.debug("source dir: "+e),!Ye.statSync(e).isDirectory())throw Error("sourceDir is not a directory");const s=yield d(t,r,o);for(const t of Ye.readdirSync(e)){const r=We.join(e,t);yield Xe.cp(r,s,{recursive:!0})}return h(t,r,o),s}))},Me.cacheFile=function(e,t,r,o,s){return Ge(this,void 0,void 0,(function*(){if(o=Ke.clean(o)||o,s=s||ze.arch(),Be.debug(`Caching tool ${r} ${o} ${s}`),Be.debug("source file: "+e),!Ye.statSync(e).isFile())throw Error("sourceFile is not a file");const n=yield d(r,o,s),i=We.join(n,t);return Be.debug("destination file "+i),yield Xe.cp(e,i),h(r,o,s),n}))},Me.find=(e,t,r)=>{if(!e)throw Error("toolName parameter is required");if(!t)throw Error("versionSpec parameter is required");r=r||ze.arch(),f(t)||(t=m(u(e,r),t));let o="";if(t){t=Ke.clean(t)||"";const s=We.join(v(),e,t,r);Be.debug("checking cache: "+s),Ye.existsSync(s)&&Ye.existsSync(s+".complete")?(Be.debug(`Found tool in cache ${e} ${t} ${r}`),o=s):Be.debug("not found")}return o},Me.findAllVersions=u,Me.getManifestFromRepo=function(e,t,r,o="master"){return Ge(this,void 0,void 0,(function*(){let s=[];const n=`https://api.github.com/repos/${e}/${t}/git/trees/${o}`,i=new Je.HttpClient("tool-cache"),a={};r&&(Be.debug("set auth"),a.authorization=r);const l=yield i.getJson(n,a);if(!l.result)return s;let c="";for(const e of l.result.tree)if("versions-manifest.json"===e.path){c=e.url;break}a.accept="application/vnd.github.VERSION.raw";let u=yield(yield i.get(c,a)).readBody();if(u){u=u.replace(/^\uFEFF/,"");try{s=JSON.parse(u)}catch(e){Be.debug("Invalid json")}}return s}))},Me.findFromManifest=function(e,t,r,o=ze.arch()){return Ge(this,void 0,void 0,(function*(){return yield Ze._findMatch(e,t,r,o)}))},Me.isExplicitVersion=f,Me.evaluateVersions=m,xe=ye("6FGZZ");var pt=ye("ju11K"),dt=ye("5M2Mq"),ht=(xe=ye("6FGZZ"),{}),ft={};const mt=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;mt.writable=e=>mt(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,mt.readable=e=>mt(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,mt.duplex=e=>mt.writable(e)&&mt.readable(e),mt.transform=e=>mt.duplex(e)&&"function"==typeof e._transform,ft=mt;const{Worker:vt}=(()=>{try{return $e68279e3338bc371$import$ad18b0afc1a10da7}catch(e){return{}}})();let yt,gt=0;const xt=new Map,wt=(e,t,r)=>new Promise(((o,s)=>{const n=gt++;xt.set(n,{resolve:o,reject:s}),void 0===yt&&(yt=new vt(ee.join(__dirname,"thread.js")),yt.on("message",(e=>{const t=xt.get(e.id);xt.delete(e.id),0===xt.size&&yt.unref(),void 0===e.error?t.resolve(e.value):t.reject((e=>{const t=Error(e.message);for(const[r,o]of Object.entries(e))"message"!==r&&(t[r]=o);return t})(e.error))})),yt.on("error",(e=>{throw e}))),yt.ref(),yt.postMessage({id:n,method:e,args:t},r)})),Et=(e,t={})=>{let r=t.encoding||"hex";"buffer"===r&&(r=void 0);const o=de.createHash(t.algorithm||"sha512"),s=e=>{o.update(e,"string"==typeof e?"utf8":void 0)};return Array.isArray(e)?e.forEach(s):s(e),o.digest(r)};Et.stream=(e={})=>{let t=e.encoding||"hex";"buffer"===t&&(t=void 0);const r=de.createHash(e.algorithm||"sha512");return r.setEncoding(t),r},Et.fromStream=async(e,t={})=>{if(!ft(e))throw new TypeError("Expected a stream");return new Promise(((r,o)=>{e.on("error",o).pipe(Et.stream(t)).on("error",o).on("finish",(function(){r(this.read())}))}))},void 0===vt?(Et.fromFile=async(e,t)=>Et.fromStream(te.createReadStream(e),t),Et.async=async(e,t)=>Et(e,t)):(Et.fromFile=async(e,{algorithm:t="sha512",encoding:r="hex"}={})=>{const o=await wt("hashFile",[t,e]);return"buffer"===r?Buffer.from(o):Buffer.from(o).toString(r)},Et.async=async(e,{algorithm:t="sha512",encoding:r="hex"}={})=>{"buffer"===r&&(r=void 0);const o=await wt("hash",[t,e]);return void 0===r?Buffer.from(o):Buffer.from(o).toString(r)}),Et.fromFileSync=(e,t)=>Et(te.readFileSync(e),t),ht=Et,xe=ye("6FGZZ"),xe=ye("6FGZZ");var bt=ye("hBwzM");const Pt="win32"===process.platform,Ot="linux"===process.platform,St=["x86","x64"],$t=["win32","win64"];bt=ye("hBwzM");const _t=(xe=ye("6FGZZ")).getInput("token"),Rt=_t&&"GITHUB.COM"===new URL(process.env.GITHUB_SERVER_URL||"https://github.com").hostname.toUpperCase()?"token "+_t:void 0,At="https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json";xe=ye("6FGZZ"),xe=ye("6FGZZ"),bt=ye("hBwzM");var Ct=ye("9AGbw"),Tt=(bt=ye("hBwzM"),xe=ye("6FGZZ"),ye("1wyqe"));let It,Nt;xe=ye("6FGZZ"),xe=ye("6FGZZ"),xe=ye("6FGZZ"),pt=ye("ju11K");var Lt=ye("k3zcS"),Dt=ye("q05Mr");const jt=(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"]),Ft=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"]),kt=new Map([["12.0.1","12.0.1-rc4"]]),Mt={"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-rc4":"-ubuntu-21.04"},Ut=new Set(["10.0.1"]);var qt,Vt={},Gt=Vt&&Vt.__awaiter||((e,t,r,o)=>new(r||(r=Promise))(((s,n)=>{function i(e){try{l(o.next(e))}catch(e){n(e)}}function a(e){try{l(o.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}l((o=o.apply(e,t||[])).next())}))),Ht=Vt&&Vt.__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(Vt,"__esModule",{value:!0});var Bt={},Xt=Bt&&Bt.__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(Bt,"__esModule",{value:!0});const Yt=Xt(Q);var Zt={};Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.toCommandValue=e=>null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e),Bt.issueCommand=U,Bt.issue=(e,t="")=>{U(e,{},t)};class zt{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 o in this.properties)if(this.properties.hasOwnProperty(o)){const s=this.properties[o];s&&(r?r=!1:e+=",",e+=`${o}=${t=s,Zt.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}var t;return e+="::"+(e=>Zt.toCommandValue(this.message).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A"))(),e}}var Wt={},Jt=Wt&&Wt.__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(Wt,"__esModule",{value:!0});const Kt=Jt(te),Qt=Jt(Q);Wt.issueCommand=(e,t)=>{const r=process.env["GITHUB_"+e];if(!r)throw Error("Unable to find environment variable for file command "+e);if(!Kt.existsSync(r))throw Error("Missing file at path: "+r);Kt.appendFileSync(r,`${Zt.toCommandValue(t)}${Qt.EOL}`,{encoding:"utf8"})};const er=Ht(Q),tr=Ht(ee);var rr,or;(or=rr=Vt.ExitCode||(Vt.ExitCode={}))[or.Success=0]="Success",or[or.Failure=1]="Failure",Vt.exportVariable=(e,t)=>{const r=Zt.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV){const t="_GitHubActionsFileCommandDelimeter_";Wt.issueCommand("ENV",`${e}<<${t}${er.EOL}${r}${er.EOL}${t}`)}else Bt.issueCommand("set-env",{name:e},r)},Vt.setSecret=e=>{Bt.issueCommand("add-mask",{},e)},Vt.addPath=e=>{process.env.GITHUB_PATH?Wt.issueCommand("PATH",e):Bt.issueCommand("add-path",{},e),process.env.PATH=`${e}${tr.delimiter}${process.env.PATH}`},Vt.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()},Vt.setOutput=(e,t)=>{Bt.issueCommand("set-output",{name:e},t)},Vt.setCommandEcho=e=>{Bt.issue("echo",e?"on":"off")},Vt.setFailed=e=>{process.exitCode=rr.Failure,q(e)},Vt.isDebug=()=>"1"===process.env.RUNNER_DEBUG,Vt.debug=e=>{Bt.issueCommand("debug",{},e)},Vt.error=q,Vt.warning=e=>{Bt.issue("warning",e instanceof Error?""+e:e)},Vt.info=e=>{process.stdout.write(e+er.EOL)},Vt.startGroup=V,Vt.endGroup=G,Vt.group=function(e,t){return Gt(this,void 0,void 0,(function*(){let r;V(e);try{r=yield t()}finally{G()}return r}))},Vt.saveState=(e,t)=>{Bt.issueCommand("save-state",{name:e},t)},Vt.getState=e=>process.env["STATE_"+e]||"";const sr=he.env["ProgramFiles(x86)"],nr=["Enterprise","Professional","Community"],ir=["2019","2017"],ar=sr+"\\Microsoft Visual Studio\\Installer";qt=B;try{B(Vt.getInput("arch"),Vt.getInput("sdk"),Vt.getInput("toolset"),Vt.getInput("uwp"),Vt.getInput("spectre"))}catch(e){Vt.setFailed("Could not setup Developer Command Prompt: "+e.message)}xe=ye("6FGZZ"),xe=ye("6FGZZ");var lr=ye("1JJDJ");const cr={msvc:"2019",llvm:"11",ninja:"1.10.2",cmake:"3.20.2",gcovr:"5.0",conan:"1.40.1",meson:"0.59.1",python:"3.x",gcc:"win32"===process.platform?"10.2.0":"11"};xe=ye("6FGZZ"),Lt=ye("k3zcS"),dt=ye("5M2Mq");const ur=["cmake","ninja","python","conan","meson","gcovr","opencppcoverage","llvm","gcc","choco","brew","ccache","doxygen","cppcheck","msvc"],pr={cmake(e,t,r){return x("cmake",e,w,t)},ninja(e,t,r){return x("ninja",e,Y,t)},python:C,conan(e,t,r){return I("conan",e)},meson(e,t,r){return I("meson",e)},gcovr(e,t,r){return I("gcovr",e)},async opencppcoverage(e,t,r){if("win32"!==process.platform)return;await c("opencppcoverage",e);const o="C:/Program Files/OpenCppCoverage";return xe.addPath(o),{binDir:o}},llvm:M,gcc:z,choco:l,brew:o,ccache(e,t,r){switch(process.platform){case"win32":return c("ccache",e);case"darwin":return a("ccache",e);case"linux":return i("ccache",e);default:throw Error("Unsupported platform")}},async doxygen(e,t,r){switch(process.platform){case"win32":{await c("doxygen.install",e),await c("graphviz",e),xe.addPath("C:/Program Files/Graphviz/bin");const t="C:/Program Files/doxygen/bin";return xe.addPath(t),{binDir:t}}case"darwin":return a("doxygen",e),a("graphviz",e);case"linux":return await i("doxygen",e),i("graphviz",e);default:throw Error("Unsupported platform")}},async cppcheck(e,t,r){switch(process.platform){case"win32":{await c("cppcheck",e);const t="C:/Program Files/Cppcheck";return xe.addPath(t),{binDir:t}}case"darwin":return a("cppcheck",e);case"linux":return i("cppcheck",e);default:throw Error("Unsupported platform")}},msvc:X};J().then((e=>{process.exitCode=e})).catch((e=>{xe.error("main() failed!"),xe.error(e),process.exitCode=1}));
//# sourceMappingURL=main.js.map