diff --git a/dist/setup_cpp.js b/dist/setup_cpp.js index 45f974f9..598b7dc8 100644 --- a/dist/setup_cpp.js +++ b/dist/setup_cpp.js @@ -1,2 +1,2 @@ -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,n)=>{r(e,t||{},((e,t)=>{e?n(e):o(t)}))}))}Ie(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 ke)return{binDir:ke};const n=e(Ce).sync("brew",{nothrow:!0});return null!==n?(ke=le.dirname(n),{binDir:ke}):(pe.execFileSync('/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"',{stdio:"inherit"}),ke="/usr/local/bin/",{binDir:ke})}function n(e,t){const r=e.options.env||process.env,o=process.cwd(),n=null!=e.options.cwd,s=n&&void 0!==process.chdir&&!process.chdir.disabled;if(s)try{process.chdir(e.options.cwd)}catch(e){}let i;try{i=Ce.sync(e.command,{path:r[Be({env:r})],pathExt:t?le.delimiter:void 0})}catch(e){}finally{s&&process.chdir(o)}return i&&(i=le.resolve(n?e.options.cwd:"",i)),i}function s(e,t){return Object.assign(Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function i(e,t){return Ke&&1===e&&!t.file?s(t.original,"spawn"):null}function a(e,t,r){const o=Ue(e,t,r),n=pe.spawn(o.command,o.args,o.options);return Je.hookChildProcess(n,o),n}function c(){Tt&&(Tt=!1,_t.forEach((e=>{try{process.removeListener(e,Ct[e])}catch(e){}})),process.emit=It,process.reallyExit=At,Ot.count-=1)}function l(e,t,r){Ot.emitted[e]||(Ot.emitted[e]=!0,Ot.emit(e,t,r))}function u(){Tt||(Tt=!0,Ot.count+=1,_t=_t.filter((e=>{try{return process.on(e,Ct[e]),!0}catch(e){return!1}})),process.emit=d,process.reallyExit=p)}function p(e){process.exitCode=e||0,l("exit",process.exitCode,null),l("afterexit",process.exitCode,null),At.call(process,process.exitCode)}function d(e,t){if("exit"===e){void 0!==t&&(process.exitCode=t);var r=It.apply(this,arguments);return l("exit",process.exitCode,null),l("afterexit",process.exitCode,null),r}return It.apply(this,arguments)}async function h(e,t){if(!e)throw Error("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:r}=t,o=Bt(t);return await new Promise(((t,n)=>{const s=e=>{e&&o.getBufferedLength()<=qt.MAX_LENGTH&&(e.bufferedData=o.getBufferedValue()),n(e)};(async()=>{try{await Xt(e,o),t()}catch(e){s(e)}})(),o.on("data",(()=>{o.getBufferedLength()>r&&s(new Wt)}))})),o.getBufferedValue()}async function f(t,r,o=!0){const n="apt-get";if("string"==typeof o&&await e(Fe)("add-apt-repository",["--update","-y",o]),vr&&!0!==o||(await e(Fe)(n,["update","-y"]),vr=!0),void 0!==r&&""!==r)try{await e(Fe)(n,["install","-y",`${t}=${r}`])}catch{await e(Fe)(n,["install","-y",`${t}-${r}`])}else await e(Fe)(n,["install","-y",t]);return{binDir:"/usr/bin/"}}function m(t,r){return gr&&null!==e(Ce).sync("brew",{nothrow:!0})||(o(0,0,process),gr=!0),e(Fe).sync("brew",["install",void 0!==r&&""!==r?`${t}@${r}`:t]),{binDir:"/usr/local/bin/"}}async function v(t){try{Re.addPath(t)}catch(r){switch(Re.error(r),process.platform){case"win32":await e(Fe)(`setx PATH=${t};%PATH%`);break;case"linux":case"darwin":await e(Fe).command(`echo "export PATH=${t}:$PATH" >> ~/.profile`),await e(Fe).command("source ~/.profile"),Re.info(t+" was added to ~/.profile");break;default:Re.error(`Failed to add ${t} to the percistent PATH. You should add it manually.`),process.env.PATH=`${t}${le.delimiter}${process.env.PATH}`}}}function g(t,r,o){if("win32"!==process.platform)return;if("string"==typeof yr)return{binDir:yr};const n=e(Ce).sync("choco",{nothrow:!0});if(null!==n)return yr=le.dirname(n),{binDir:yr};e(Fe).commandSync('@"%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"');const s=e(Ce).sync("choco",{nothrow:!0});return yr=null!==s?le.dirname(s):"C:/ProgramData/Chocolatey/bin/",ue.existsSync(yr)?{binDir:yr}:void 0}async function y(t,r,o=[]){xr&&null!==e(Ce).sync("choco",{nothrow:!0})||(await g(0,0,process),xr=!0),e(Fe).sync("choco",void 0!==r&&""!==r?["install","-y",t,"--version="+r,...o]:["install","-y",t,...o]);const n="C:/ProgramData/Chocolatey/bin/";return await v(n),{binDir:n}}function x(e,t,r){return Ur(this,void 0,void 0,(function*(){const o=Br.argStringToArray(e);if(0===o.length)throw Error("Parameter 'commandLine' cannot be null or empty.");const n=o[0];return t=o.slice(1).concat(t||[]),new Br.ToolRunner(n,t,r).exec()}))}function w(e,t){const r=[];t=t||Tr.arch();const o=Ar.join(_(),e);if(Rr.existsSync(o)){const e=Rr.readdirSync(o);for(const n of e)if(P(n)){const e=Ar.join(o,n,t||"");Rr.existsSync(e)&&Rr.existsSync(e+".complete")&&r.push(n)}}return r}function E(e){return Pr(this,void 0,void 0,(function*(){return e||(e=Ar.join($(),Dr.default())),yield $r.mkdirP(e),e}))}function b(e,t,r){return Pr(this,void 0,void 0,(function*(){const o=Ar.join(_(),e,Nr.clean(t)||t,r||"");_r.debug("destination "+o);const n=o+".complete";return yield $r.rmRF(o),yield $r.rmRF(n),yield $r.mkdirP(o),o}))}function S(e,t,r){const o=Ar.join(_(),e,Nr.clean(t)||t,r||"");Rr.writeFileSync(o+".complete",""),_r.debug("finished caching tool")}function P(e){const t=Nr.clean(e)||"";_r.debug("isExplicit: "+t);const r=null!=Nr.valid(t);return _r.debug("explicit? "+r),r}function O(e,t){let r="";_r.debug(`evaluating ${e.length} versions`);for(let o=(e=e.sort(((e,t)=>Nr.gt(e,t)?1:-1))).length-1;o>=0;o--){const n=e[o];if(Nr.satisfies(n,t)){r=n;break}}return _r.debug(r?"matched: "+r:"match not found"),r}function _(){const e=process.env.RUNNER_TOOL_CACHE||"";return de.ok(e,"Expected RUNNER_TOOL_CACHE to be defined"),e}function $(){const e=process.env.RUNNER_TEMP||"";return de.ok(e,"Expected RUNNER_TEMP to be defined"),e}function R(e,t){const r=Pe[e];return void 0!==r?r:t}async function C(e,t,r,o){var n,s;process.env.RUNNER_TEMP=null!==(n=process.env.RUNNER_TEMP)&&void 0!==n?n:ce.tmpdir(),process.env.RUNNER_TOOL_CACHE=null!==(s=process.env.RUNNER_TOOL_CACH)&&void 0!==s?s:le.join(ce.tmpdir(),"setup_cpp","ToolCache");const{url:i,binRelativeDir:a,extractedFolderName:c,extractFunction:l}=await r(t,process.platform);try{const r=wr.find(e,t);if(r){Re.info(`${e} ${t} was found in the cache.`);const o=le.join(r,c),n=le.join(o,a);return await v(n),{installDir:o,binDir:n}}}catch{}const u=await eo.async(i,{algorithm:"md5"}),p=le.join(o,u);if(!ue.existsSync(p)){Re.info(`Download and extract ${e} ${t}`);const r=await wr.downloadTool(i);await(null==l?void 0:l(r,p))}const d=le.join(p,c),h=le.join(d,a);return Re.info(`Add ${h} to PATH`),await v(h),"string"==typeof process.env.RUNNER_TOOL_CACHE&&await wr.cacheDir(p,e,t),{installDir:d,binDir:h}}function T(t,r){var o;const n=null!==(o=e(Qr)(t))&&void 0!==o?o:t,s=null!=r?r:process.platform,i=Re.getInput("architecture")||process.arch;switch(s){case"win32":{const r=e(Kr)(n,"v3.19.6");let o;o=["ia32","x86","i386","x32"].includes(i)?r?"win32-x86":"windows-i386":r?"win64-x64":"windows-x86_64";const s=`cmake-${t}-${o}`;return{binRelativeDir:"bin/",extractedFolderName:s,extractFunction:wr.extractZip,url:`https://github.com/Kitware/CMake/releases/download/v${t}/${s}.zip`}}case"darwin":{const r=`cmake-${t}-${e(Kr)(n,"v3.19.1")?"Darwin-x86_64":"macos-universal"}`;return{binRelativeDir:"CMake.app/Contents/bin/",extractedFolderName:r,extractFunction:wr.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${t}/${r}.tar.gz`}}case"linux":{const r=e(Kr)(n,"v3.19.8");let o;o=["aarch64"].includes(i)?r?"Linux-aarch64":"linux-aarch64":r?"Linux-x86_64":"linux-x86_64";const s=`cmake-${t}-${o}`;return{binRelativeDir:"bin/",extractedFolderName:s,extractFunction:wr.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${t}/${s}.tar.gz`}}default:throw Error(`Unsupported platform '${s}'`)}}function A(t,r,o,n=!1){const s=le.join(t,r),i=le.join(t,o);e(ue).existsSync(i)||(e(ue).symlinkSync(s,i),!co&&n&&e(ue).chmodSync(i,"755"))}function I(e){return N(e)||!!ao.validRange(e)}function N(e){return"nightly"===e}function L(e,t){const r=wr.find.bind(void 0,"PyPy",e);let o=r(t);if(!o&&co&&(o=r("x86")),!o)throw Error(`PyPy ${e} not found`);const n=le.join(o,"bin");Re.exportVariable("pythonLocation",co?o:n),Re.addPath(o),Re.addPath(n),co&&Re.addPath(le.join(o,"Scripts"));const s="pypy"+e;return Re.setOutput("python-version",s),{impl:s,version:j(o)}}function j(e){const t=e.split(le.sep),r=t.findIndex((e=>"PyPy"===e||"Python"===e));return t[r+1]||""}function D(e){const t=le.join(e,"bin");return co?e:t}function k(e){return e.replace(/(\d+\.\d+\.\d+)((?:a|b|rc))(\d*)/g,"$1-$2.$3")}function M(e){return e.files.find((e=>uo.includes(e.arch)&&po.includes(e.platform)))}function F(e,t,r){return e.files.find((e=>e.arch===t&&e.platform===r))}function G(){return!(void 0===process.env.CI||""===process.env.CI||"false"===process.env.CI)}async function U(t,r,o){if(!G())return B("",r,o);try{if(t.startsWith("pypy-")){const r=await async function(t,r){let o,n="",s="";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-'. See README for examples and documentation.");const r=t[1];let o;if(o=t.length>2?k(t[2]):"x",!I(r)||!I(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:s,resolvedPyPyVersion:n}=((t,r,o)=>{let n="",s="",i=co?(e=>{let t="";return uo.forEach((r=>t=t||wr.find("PyPy",e,r))),t})(t):wr.find("PyPy",t,o);return i&&(s=(e=>le.basename(le.dirname(e)))(i),n=(t=>{let r="",o=le.join(t,"PYPY_VERSION");return e(ue).existsSync(o)&&(r=""+e(ue).readFileSync(o)),r})(i),ao.satisfies(n,r)||(i=null,n="",s="")),i||Re.info(`PyPy version ${t} (${r}) was not found in the local cache`),{installDir:i,resolvedPythonVersion:s,resolvedPyPyVersion:n}})(i.pythonVersion,i.pypyVersion,r)),o||({installDir:o,resolvedPythonVersion:s,resolvedPyPyVersion:n}=await(async(t,r,o)=>{let n;const s=await(async()=>{const e="https://downloads.python.org/pypy/versions.json",t=new vo.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(!s||0===s.length)throw Error("No release was found in PyPy version.json");const i=((e,t,r,o)=>{const n=e.filter((e=>{const n=ao.satisfies(ao.coerce(e.python_version),t),s=N(r)&&N(e.pypy_version)||ao.satisfies(k(e.pypy_version),r),i=e.files&&(co?(e=>e.files.some((e=>uo.includes(e.arch)&&po.includes(e.platform))))(e):((e,t,r)=>e.files.some((e=>e.arch===t&&e.platform===r)))(e,o,process.platform));return n&&s&&i}));if(0===n.length)return null;const s=n.sort(((e,t)=>ao.compare(ao.coerce(k(t.pypy_version)),ao.coerce(k(e.pypy_version)))||ao.compare(ao.coerce(t.python_version),ao.coerce(e.python_version))))[0];return{foundAsset:co?M(s):F(s,o,process.platform),resolvedPythonVersion:s.python_version,resolvedPyPyVersion:s.pypy_version}})(s,r,t,o);if(!i||!i.foundAsset)throw Error(`PyPy version ${r} (${t}) with arch ${o} not found`);const{foundAsset:a,resolvedPythonVersion:c,resolvedPyPyVersion:l}=i;let u=""+a.download_url;Re.info(`Downloading PyPy from "${u}" ...`);const p=await wr.downloadTool(u);Re.info("Extracting downloaded archive..."),n=co?await wr.extractZip(p):await wr.extractTar(p,void 0,"x");const d=e(ue).readdirSync(n)[0],h=le.join(n,d);let f=h;N(l)||(f=await wr.cacheDir(h,"PyPy",c,o)),((t,r)=>{const o=le.join(t,"PYPY_VERSION");e(ue).writeFileSync(o,r)})(f,l);const m=D(f);return await(async(e,t)=>{const r=ao.coerce(t),o=ao.major(r),n=2===o?"":"3";let s=co?".exe":"";Re.info("Creating symlinks..."),A(e,`pypy${n}${s}`,`python${o}${s}`,!0),A(e,`pypy${n}${s}`,"python"+s,!0)})(m,c),await(async e=>{Re.info("Installing and updating pip");const t=le.join(e,"python");await kr.exec(t+" -m ensurepip"),await kr.exec(e+"/python -m pip install --ignore-installed pip")})(m),{installDir:f,resolvedPythonVersion:c,resolvedPyPyVersion:l}})(i.pypyVersion,i.pythonVersion,r));const a=le.join(o,co?"Scripts":"bin"),c=D(o);return Re.exportVariable("pythonLocation",c),Re.addPath(c),Re.addPath(a),{resolvedPyPyVersion:n,resolvedPythonVersion:s}}(t,o);Re.info(`Successfully setup PyPy ${r.resolvedPyPyVersion} with Python (${r.resolvedPythonVersion})`)}else{const e=await(async(e,t)=>{switch(e.toUpperCase()){case"PYPY2":return L("2",t);case"PYPY3":return L("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;Re.debug(`Semantic version spec of ${e} is ${r}`);let n=wr.find("Python",r,t);if(!n){Re.info(`Version ${r} was not found in the local cache`);const e=await(async(e,t)=>{const r=await wr.getManifestFromRepo("actions","python-versions",fo,"main");return await wr.findFromManifest(e,!1,r,t)})(r,t);e&&e.files&&e.files.length>0&&(Re.info(`Version ${r} is available for downloading`),await(async e=>{const t=e.files[0].download_url;Re.info(`Download from "${t}"`);const r=await wr.downloadTool(t,void 0,fo);let o;Re.info("Extract downloaded archive"),o=co?await wr.extractZip(r):await wr.extractTar(r),Re.info("Execute installation script"),await(async e=>{const t={cwd:e,env:{...process.env,...lo&&{LD_LIBRARY_PATH:le.join(e,"lib")}},silent:!0,listeners:{stdout(e){Re.info((""+e).trim())},stderr(e){Re.error((""+e).trim())}}};co?await kr.exec("powershell",["./setup.ps1"],t):await kr.exec("bash",["./setup.sh"],t)})(o)})(e),n=wr.find("Python",r,t))}if(!n)throw Error([`Version ${e} with arch ${t} not found`,"The list of all available versions can be found here: "+mo].join(ce.EOL));if(Re.exportVariable("pythonLocation",n),lo){const e=process.env.LD_LIBRARY_PATH?":"+process.env.LD_LIBRARY_PATH:"",t=le.join(n,"lib");e.split(":").includes(t)||Re.exportVariable("LD_LIBRARY_PATH",t+e)}if(Re.addPath(n),Re.addPath((e=>le.join(e,co?"Scripts":"bin"))(n)),co){const e=le.basename(le.dirname(n)),t=ao.major(e),r=ao.minor(e),o=le.join(process.env.APPDATA||"","Python",`Python${t}${r}`,"Scripts");Re.addPath(o)}const s=j(n);return Re.setOutput("python-version",s),{impl:"CPython",version:s}}(e,t)}})(t,o);Re.info(`Successfully setup ${e.impl} (${e.version})`)}const r=le.join("setup-pthon",".github");return void Re.info("##[add-matcher]"+le.join(r,"python.json"))}catch(e){return B(t,r,o)}}async function B(t,r,o){switch(process.platform){case"win32":{const n=await e(eo).async(t+o,{algorithm:"md5"}),s=le.join(r,n,"python"),i=s;return await y("python3",t,["/InstallDir:"+s]),Re.info(`Add ${i} to PATH`),await v(i),{installDir:s,binDir:i}}case"darwin":return m("python3",t);case"linux":{const e=await f("python3",t);return await f("python3-pip"),e}default:throw Error("Unsupported platform")}}function V(e){return new Promise((t=>{ye.get(e,(e=>{t(void 0!==e.statusCode&&e.statusCode>=200&&399>=e.statusCode)}))}))}async function q(t,r){if(void 0===yo&&(null!==e(Ce).sync("pip3",{nothrow:!0})?yo="pip3":null!==e(Ce).sync("pip",{nothrow:!0})&&await(async(t,r,o=/v?(\d\S*)/)=>{const n=await(async(e,t=/v?(\d\S*)/)=>{try{var r,o;const{stderr:s,stdout:i}=await kr.getExecOutput(e,["--version"]);var n;return null!==(n=null===(r=i.match(t))||void 0===r?void 0:r[1])&&void 0!==n?n:null===(o=s.match(t))||void 0===o?void 0:o[1]}catch(e){return void console.error(e)}})(t,o);return"string"==typeof n&&"string"==typeof r&&""!==n&&""!==r&&-1!==e(go)(n,r)})("python","3.0.0")?yo="pip":(await U("3.x","",process.arch),yo="pip3")),e(Fe).sync(yo,["install",void 0!==r&&""!==r?`${t}==${r}`:t]),void 0===xo){if("linux"===process.platform)xo="/home/runner/.local/bin/";else if("darwin"===process.platform)xo="/usr/local/bin/";else try{xo=le.join((await kr.getExecOutput('python3 -c "import sys;print(sys.base_exec_prefix);"')).stdout.trim(),"Scripts")}catch{xo=le.join((await kr.getExecOutput('python -c "import sys;print(sys.base_exec_prefix);"')).stdout.trim(),"Scripts")}Re.info(xo+" to PATH"),await v(xo)}return{binDir:xo}}async function H(t,r){return await e(Fe)("7z",["x",t,"-o"+r]),r}async function X(t,r,o=["--strip-components=1"]){try{await Eo.mkdirP(r)}catch{}return await e(Fe)("tar",["xf",t,"-C",r,...o]),r}function W(e,t,r){return`https://github.com/llvm/llvm-project/releases/download/llvmorg-${e}/${t}${e}${r}`}function Y(e,t,r){return`https://releases.llvm.org/${e}/${t}${e}${r}`}function Z(t,r){switch(t){case"darwin":return(t=>{if(So.has(t))return null;const r="clang+llvm-",o=`-x86_64${"9.0.0"===t?"-darwin-apple":"-apple-darwin"}.tar.xz`;return e(Kr)(t,"9.0.1")?Y(t,r,o):W(t,r,o)})(r);case"linux":return(t=>{let r=t;const o=Po.get(r);let n;void 0!==o&&(r=o),n=r.includes("ubuntu")?r:""!==r&&r in Oo?Oo[r]:Oo["12.0.1-rc4"];const s="clang+llvm-",i="5.0.0"===r?`-linux-x86_64${n}.tar.xz`:`-x86_64-linux-gnu${n}.tar.xz`;return e(Kr)(r,"9.0.1")?Y(r,s,i):W(r,s,i)})(r);case"win32":return(async t=>{if(_o.has(t))return null;const r="LLVM-",o=e(Kr)(t,"3.7.0")?"-win32.exe":"-win64.exe",n=e(Kr)(t,"9.0.1");let s,i=!1;return n&&(s=Y(t,r,o),await V(s)||(i=!0)),!i&&n||(s=W(t,r,o)),s})(r);default:return null}}async function z(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 n 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,n);if(null!==e&&await V(e))return[n,e]}throw Error(`Unsupported target! (platform='${t}', version='${r}')`)})(bo,t,e,Z);return Re.setOutput("version",r),{url:o,extractedFolderName:"",binRelativeDir:"bin",extractFunction:"win32"===t?H:X}}async function J(t,r,o){let n=r;""!==n&&void 0!==n||(n="win32"===process.platform?"C:/Program Files/LLVM":"./llvm"),n=le.resolve(n);const s=await C("llvm",t,z,n),i=le.join(n,"lib");var a;const c=null!==(a=process.env.LD_LIBRARY_PATH)&&void 0!==a?a:"";var l;const u=null!==(l=process.env.DYLD_LIBRARY_PATH)&&void 0!==l?l:"";Re.exportVariable("LLVM_PATH",n);const p=e(wo)(t);if(Re.exportVariable("LD_LIBRARY_PATH",`${i}${le.delimiter}${c}`),Re.exportVariable("DYLD_LIBRARY_PATH",`${i}${le.delimiter}${u}`),Re.exportVariable("CPATH",`${n}/lib/clang/${p}/include`),Re.exportVariable("LDFLAGS",`-L${n}/lib`),Re.exportVariable("CPPFLAGS",`-I${n}/include`),Re.exportVariable("CC",n+"/bin/clang"),Re.exportVariable("CXX",n+"/bin/clang++"),Re.exportVariable("LIBRARY_PATH",n+"/lib"),"darwin"===process.platform)try{const e=await kr.getExecOutput("xcrun --sdk macosx --show-sdk-path"),t=e.stdout||e.stderr;ue.existsSync(t)&&Re.exportVariable("SDKROOT",t)}catch(e){Re.error(e)}return s}async function K(e,t,r,o,n,s){if("win32"!==process.platform)return;let i,a;try{"2015"===e?(i="14.0.25420.1",await y("visualcpp-build-tools",i,["--ignore-dependencies","--params","'/IncludeRequired'"]),a="C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140",ue.existsSync(a)&&Re.exportVariable("VCTargetsPath",a)):"2017"===e?(i="14.16",await y("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 y("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){Re.error(e)}void 0!==a&&ue.existsSync(a)&&Re.exportVariable("VCTargetsPath",a);const{setupMSVCDevCmd:c}=$e("jJT7R");c((e=>{switch(e){case"x32":case"32":case"ia32":return"x86";case"64":return"x64";default:return e}})(r),o,i,n,s)}function Q(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:wr.extractZip,url:`https://github.com/ninja-build/ninja/releases/download/v${e}/ninja-${r}.zip`}}function ee(e){return null==e?[]:Array.isArray(e)?e:[e]}function te(e,t,r,o){var n,s=e[t],i=~o.string.indexOf(t)?null==r||!0===r?"":r+"":"boolean"==typeof r?r:~o.boolean.indexOf(t)?"false"!==r&&("true"===r||(e._.push(0*(n=+r)==0?n:r),!!r)):0*(n=+r)==0?n:r;e[t]=null==s?i:Array.isArray(s)?s.concat(i):[s,i]}function re(e,t){return"true"===t||void 0===t&&e in To?To[e]:null!=t?t:""}async function oe(t,r,o){let n;switch(process.platform){case"win32":"arm"!==o&&"arm64"!==o||await y("gcc-arm-embedded",t),await y("mingw",t),"x64"===o&&ue.existsSync("C:/tools/mingw64/bin")?(n="C:/tools/mingw64/bin",await v(n)):"ia32"===o&&ue.existsSync("C:/tools/mingw32/bin")?(n="C:/tools/mingw32/bin",await v(n)):ue.existsSync("C:/ProgramData/Chocolatey/bin/g++.exe")&&(n="C:/ProgramData/Chocolatey/bin/");break;case"darwin":n=m("gcc",t).binDir;break;case"linux":"x64"===o?n=(await f("g++",t,"ppa:ubuntu-toolchain-r/test")).binDir:(Re.info(`Install g++-multilib because gcc for ${o} was requested`),n=(await f("g++-multilib",t,"ppa:ubuntu-toolchain-r/test")).binDir);break;default:throw Error("Unsupported platform for "+o)}if(void 0!==n){var s;const r=e(wo)(null!==(s=e(Qr)(t))&&void 0!==s?s:t);return"win32"===process.platform?(Re.exportVariable("CC",n+"/gcc"),Re.exportVariable("CXX",n+"/g++")):(Re.exportVariable("CC",`${n}/gcc-${r}`),Re.exportVariable("CXX",`${n}/g++-${r}`)),{binDir:n}}}function ne(e){return G()?Re.error(e):console.log(`${e}`)}async function se(t){G()||(process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS="true");const r=((e,t)=>{var r,o,n,s,i,a={_:[]},c=0,l=0,u=0,p=(e=e||[]).length;const d=void 0!==(t=t||{}).alias,h=void 0!==t.unknown,f=void 0!==t.default;if(t.alias=t.alias||{},t.string=ee(t.string),t.boolean=ee(t.boolean),d)for(r in t.alias)for(o=t.alias[r]=ee(t.alias[r]),c=0;o.length>c;c++)(t.alias[o[c]]=o.concat(r)).splice(c,1);for(c=t.boolean.length;c-- >0;)for(l=(o=t.alias[t.boolean[c]]||[]).length;l-- >0;)t.boolean.push(o[l]);for(c=t.string.length;c-- >0;)for(l=(o=t.alias[t.string[c]]||[]).length;l-- >0;)t.string.push(o[l]);if(f)for(r in t.default)if(s=typeof t.default[r],o=t.alias[r]=t.alias[r]||[],void 0!==t[s])for(t[s].push(r),c=0;o.length>c;c++)t[s].push(o[c]);const m=h?Object.keys(t.alias):[];for(c=0;p>c;c++){if("--"===(n=e[c])){a._=a._.concat(e.slice(++c));break}for(l=0;n.length>l&&45===n.charCodeAt(l);l++);if(0===l)a._.push(n);else if("no-"===n.substring(l,l+3)){if(s=n.substring(l+3),h&&!~m.indexOf(s))return t.unknown(n);a[s]=!1}else{for(u=l+1;n.length>u&&61!==n.charCodeAt(u);u++);for(s=n.substring(l,u),i=n.substring(++u)||c+1===p||45===(""+e[c+1]).charCodeAt(0)||e[++c],o=2===l?[s]:s,u=0;o.length>u;u++){if(s=o[u],h&&!~m.indexOf(s))return t.unknown("-".repeat(l)+s);te(a,s,o.length>u+1||i,t)}}}if(f)for(r in t.default)void 0===a[r]&&(a[r]=t.default[r]);if(d)for(r in a)for(o=t.alias[r]||[];o.length>0;)a[o.shift()]=a[r];return a})(t,{string:No,default:Object.fromEntries(No.map((e=>[e,ie(e)]))),alias:{h:"help"},boolean:"help"});var o;r.help&&Re.info('\nsetup_cpp [options]\nsetup_cpp --compiler llvm --cmake true --ninja true --ccache true --conan "1.40.1"\n\nInstall all the tools required for building and testing C++/C projects.\n\n--architecture\t the cpu architecture to install the tools for. By default it uses the current CPU architecture.\n--compiler\t the to install.\n \t You can specify the version instead of specifying just the name e.g: --compiler \'llvm-11\'\n\n--tool_name\t pass "true" or pass the you would like to install for this tool.\n\nAll the available tools:\n--llvm\n--gcc\n--cmake\n--ninja\n--meson\n--conan\n--ccache\n--cppcheck\n--doxygen\n--gcovr\n--opencppcoverage\n--python\n--choco\n--brew\n ');const n=null!==(o=r.architecture)&&void 0!==o?o:process.arch;var s;const i=null!==(s=process.env.SETUP_CPP_DIR)&&void 0!==s?s:e($o)("~/setup_cpp"),a=[],c=[];for(const e of Io){const t=r[e];if(void 0!==t){const r=Ao[e];try{const o=await r(re(e,t),i,n);a.push(void 0!==o?ae(e,o):e+" was successfully installed")}catch(t){ne(t),c.push(e+" failed to install")}}}const l=r.compiler;try{if(void 0!==l){const t=l.split("-"),r=t[0];let o;if(1 in t){const r=t[1];null!==e(Co)(r)?o=r:ne(`Invalid version ${r} used for the compiler. Using the default version...`)}switch(r){case"llvm":case"clang":case"clang++":await J(re("llvm",o),i);break;case"gcc":case"mingw":case"cygwin":case"msys":await oe(re("gcc",o),0,n);break;case"cl":case"msvc":case"msbuild":case"vs":case"visualstudio":case"visualcpp":case"visualc++":await K(re("msvc",o),0,n);break;default:c.push("Unsupported compiler "+r)}}}catch(e){ne(e),c.push("Failed to install the "+l)}return a.forEach((e=>{return t=e,G()?Re.info(t):console.log(`${t}`);var t})),c.forEach((e=>ne(e))),Re.info("setup_cpp finished"),0===c.length?0:1}function ie(e){const t=Re.getInput(e.toLowerCase());if("false"!==t&&""!==t)return t}function ae(e,t){let r=e+" was successfully installed";return"installDir"in t&&(r+="\nThe installation direcotry is "+t.installDir),""!==t.binDir&&(r+="\nThe binary direcotry is "+t.binDir),r}var ce=require("os"),le=require("path"),ue=require("fs"),pe=require("child_process"),de=require("assert"),he=require("events"),fe=require("buffer"),me=require("stream"),ve=require("util"),ge=require("http"),ye=require("https");require("net");var xe=require("tls"),we=require("crypto"),Ee=require("string_decoder"),be=require("timers"),Se=require("process"),Pe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},Oe={},_e={},$e=Pe.parcelRequire810d;null==$e&&(($e=e=>{if(e in Oe)return Oe[e].exports;if(e in _e){var t=_e[e];delete _e[e];var r={id:e,exports:{}};return Oe[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)=>{_e[e]=t},Pe.parcelRequire810d=$e),t(module.exports,"main",(()=>se)),$e.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 n(e){u.issue("group",e)}function s(){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}),c=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&i(t,e,r);return a(t,e),t}),l=e.exports&&e.exports.__awaiter||((e,t,r,o)=>new(r||(r=Promise))(((n,s)=>{function i(e){try{c(o.next(e))}catch(e){s(e)}}function a(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((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=$e("eOxkI"),p=$e("85a1M"),d=$e("lK3O3");const h=c(ce),f=c(le);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=n,e.exports.endGroup=s,e.exports.group=function(e,t){return l(this,void 0,void 0,(function*(){let r;n(e);try{r=yield t()}finally{s()}return r}))},e.exports.saveState=(e,t)=>{u.issueCommand("save-state",{name:e},t)},e.exports.getState=e=>process.env["STATE_"+e]||""})),$e.register("eOxkI",(function(e,t){"use strict";function r(e,t,r){const o=new c(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]}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),s=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issue=e.exports.issueCommand=void 0;const i=s(ce);var a=$e("lK3O3");e.exports.issueCommand=r,e.exports.issue=(e,t="")=>{r(e,{},t)};class c{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r}toString(){let e="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(const o in this.properties)if(this.properties.hasOwnProperty(o)){const n=this.properties[o];n&&(r?r=!1:e+=",",e+=`${o}=${t=n,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}}})),$e.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}:{}})),$e.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}),n=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issueCommand=void 0;const s=n(ue),i=n(ce);var a=$e("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(!s.existsSync(r))throw Error("Missing file at path: "+r);s.appendFileSync(r,`${a.toCommandValue(t)}${i.EOL}`,{encoding:"utf8"})}}));var Re=$e("6FGZZ"),Ce={};const Te="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,Ae=Te?";":":";var Ie,Ne={};$e.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 n=r[o].toLowerCase();if(n&&e.substr(-n.length).toLowerCase()===n)return!0}return!1})(t,r)}function o(e,t,o){ue.stat(e,((n,s)=>{o(n,!n&&r(s,e,t))}))}e.exports=o,o.sync=(e,t)=>r(ue.statSync(e),e,t)})),$e.register("kam8f",((e,t)=>{function r(e,t,r){ue.stat(e,((e,n)=>{r(e,!e&&o(n,t))}))}function o(e,t){return e.isFile()&&((e,t)=>{var r=e.mode,o=e.uid,n=e.gid,s=void 0!==t.uid?t.uid:process.getuid&&process.getuid(),i=void 0!==t.gid?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),c=parseInt("010",8),l=a|c;return r&parseInt("001",8)||r&c&&n===i||r&a&&o===s||r&l&&0===s})(e,t)}e.exports=r,r.sync=(e,t)=>o(ue.statSync(e),t)})),Ie="win32"===process.platform||Pe.TESTING_WINDOWS?$e("5vEMD"):$e("kam8f"),Ne=r,r.sync=(e,t)=>{try{return Ie.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e}};const Le=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),je=(e,t)=>{const r=t.colon||Ae,o=e.match(/\//)||Te&&e.match(/\\/)?[""]:[...Te?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],n=Te?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=Te?n.split(r):[""];return Te&&-1!==e.indexOf(".")&&""!==s[0]&&s.unshift(""),{pathEnv:o,pathExt:s,pathExtExe:n}},De=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});const{pathEnv:o,pathExt:n,pathExtExe:s}=je(e,t),i=[],a=r=>new Promise(((n,s)=>{if(r===o.length)return t.all&&i.length?n(i):s(Le(e));const a=o[r],l=/^".*"$/.test(a)?a.slice(1,-1):a,u=le.join(l,e),p=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u;n(c(p,r,0))})),c=(e,r,o)=>new Promise(((l,u)=>{if(o===n.length)return l(a(r+1));const p=n[o];Ne(e+p,{pathExt:s},((n,s)=>{if(!n&&s){if(!t.all)return l(e+p);i.push(e+p)}return l(c(e,r,o+1))}))}));return r?a(0).then((e=>r(null,e)),r):a(0)};let ke;Ce=De,De.sync=(e,t)=>{t=t||{};const{pathEnv:r,pathExt:o,pathExtExe:n}=je(e,t),s=[];for(let i=0;r.length>i;i++){const a=r[i],c=/^".*"$/.test(a)?a.slice(1,-1):a,l=le.join(c,e),u=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+l:l;for(let e=0;o.length>e;e++){const r=u+o[e];try{if(Ne.sync(r,{pathExt:n})){if(!t.all)return r;s.push(r)}}catch(e){}}}if(t.all&&s.length)return s;if(t.nothrow)return null;throw Le(e)};var Me,Fe={},Ge={},Ue={},Be={};const Ve=(e={})=>{const t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find((e=>"PATH"===e.toUpperCase()))||"Path"};var qe,He;(Be=Ve).default=Ve,Me=e=>n(e)||n(e,!0),He=e=>e.replace(/([()\][%!^"`<>&|;, *?])/g,"^$1"),qe=(e,t)=>(e=(e=`"${e=(e=(e=""+e).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(/([()\][%!^"`<>&|;, *?])/g,"^$1"),t&&(e=e.replace(/([()\][%!^"`<>&|;, *?])/g,"^$1")),e);var Xe,We;Xe=(e="")=>{const t=e.match(/^#!(.*)/);if(!t)return null;const[r,o]=t[0].replace(/#! ?/,"").split(" "),n=r.split("/").pop();return"env"===n?o:o?`${n} ${o}`:n},We=e=>{const t=Buffer.alloc(150);let r;try{r=ue.openSync(e,"r"),ue.readSync(r,t,0,150,0),ue.closeSync(r)}catch(e){}return Xe(""+t)};const Ye="win32"===process.platform,Ze=/\.(?:com|exe)$/i,ze=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;Ue=(e,t,r)=>{t&&!Array.isArray(t)&&(r=t,t=null);const o={command:e,args:t=t?t.slice(0):[],options:r=Object.assign({},r),file:void 0,original:{command:e,args:t}};return r.shell?o:(e=>{if(!Ye)return e;const t=(e=>{e.file=Me(e);const t=e.file&&We(e.file);return t?(e.args.unshift(e.file),e.command=t,Me(e)):e.file})(e),r=!Ze.test(t);if(e.options.forceShell||r){const r=ze.test(t);e.command=le.normalize(e.command),e.command=He(e.command),e.args=e.args.map((e=>qe(e,r)));const o=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${o}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e})(o)};var Je={};const Ke="win32"===process.platform;var Qe;Je={hookChildProcess(e,t){if(!Ke)return;const r=e.emit;e.emit=function(o,n){if("exit"===o){const o=i(n,t);if(o)return r.call(e,"error",o)}return r.apply(e,arguments)}},verifyENOENT:i,verifyENOENTSync(e,t){return Ke&&1===e&&!t.file?s(t.original,"spawnSync"):null},notFoundError:s},(Ge=a).spawn=a,Ge.sync=(e,t,r)=>{const o=Ue(e,t,r),n=pe.spawnSync(o.command,o.args,o.options);return n.error=n.error||Je.verifyENOENTSync(n.status,o),n},Ge._parse=Ue,Ge._enoent=Je,Qe=e=>{const t="string"==typeof e?"\r":13;return e[e.length-1]===("string"==typeof e?"\n":10)&&(e=e.slice(0,e.length-1)),e[e.length-1]===t&&(e=e.slice(0,e.length-1)),e};var et={};const tt=e=>{let t;e={cwd:process.cwd(),path:process.env[Be()],execPath:process.execPath,...e};let r=le.resolve(e.cwd);const o=[];for(;t!==r;)o.push(le.join(r,"node_modules/.bin")),t=r,r=le.resolve(r,"..");const n=le.resolve(e.cwd,e.execPath,"..");return o.push(n),o.concat(e.path).join(le.delimiter)};(et=tt).default=tt,et.env=e=>{const t={...(e={env:process.env,...e}).env},r=Be({env:t});return e.path=t[r],t[r]=et(e),t};var rt={},ot={};const nt=(e,t)=>{for(const r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};(ot=nt).default=nt;const st=new WeakMap,it=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let r,o=0;const n=e.displayName||e.name||"",s=function(...i){if(st.set(s,++o),1===o)r=e.apply(this,i),e=null;else if(!0===t.throw)throw Error(`Function \`${n}\` can only be called once`);return r};return ot(s,e),st.set(s,o),s};(rt=it).default=it,rt.callCount=e=>{if(!st.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return st.get(e)};var at,ct={};Object.defineProperty(ct,"__esModule",{value:!0}),ct.signalsByNumber=ct.signalsByName=void 0;var lt={};Object.defineProperty(lt,"__esModule",{value:!0}),lt.getSignals=void 0;var ut={};Object.defineProperty(ut,"__esModule",{value:!0}),ut.SIGNALS=void 0,ut.SIGNALS=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];var pt={};Object.defineProperty(pt,"__esModule",{value:!0}),pt.SIGRTMAX=pt.getRealtimeSignals=void 0,pt.getRealtimeSignals=()=>Array.from({length:ft-ht+1},dt);const dt=(e,t)=>({name:"SIGRT"+(t+1),number:ht+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),ht=34,ft=64;pt.SIGRTMAX=ft,lt.getSignals=()=>{const e=pt.getRealtimeSignals();return[...ut.SIGNALS,...e].map(mt)};const mt=({name:e,number:t,description:r,action:o,forced:n=!1,standard:s})=>{const{signals:{[e]:i}}=ce.constants,a=void 0!==i;return{name:e,number:a?i:t,description:r,supported:a,action:o,forced:n,standard:s}},vt=lt.getSignals().reduce(((e,{name:t,number:r,description:o,supported:n,action:s,forced:i,standard:a})=>({...e,[t]:{name:t,number:r,description:o,supported:n,action:s,forced:i,standard:a}})),{});ct.signalsByName=vt;const gt=(()=>{const e=lt.getSignals(),t=Array.from({length:pt.SIGRTMAX+1},((t,r)=>((e,t)=>{const r=((e,t)=>{const r=t.find((({name:t})=>ce.constants.signals[t]===e));return void 0!==r?r:t.find((t=>t.number===e))})(e,t);if(void 0===r)return{};const{name:o,description:n,supported:s,action:i,forced:a,standard:c}=r;return{[e]:{name:o,number:e,description:n,supported:s,action:i,forced:a,standard:c}}})(r,e)));return Object.assign({},...t)})();ct.signalsByNumber=gt;var yt=ct.signalsByName;at=({stdout:e,stderr:t,all:r,error:o,signal:n,exitCode:s,command:i,escapedCommand:a,timedOut:c,isCanceled:l,killed:u,parsed:{options:{timeout:p}}})=>{const d=void 0===(n=null===n?void 0:n)?void 0:yt[n].description,h=(({timedOut:e,timeout:t,errorCode:r,signal:o,signalDescription:n,exitCode:s,isCanceled:i})=>e?`timed out after ${t} milliseconds`:i?"was canceled":void 0!==r?"failed with "+r:void 0!==o?`was killed with ${o} (${n})`:void 0!==s?"failed with exit code "+s:"failed")({timedOut:c,timeout:p,errorCode:o&&o.code,signal:n,signalDescription:d,exitCode:s=null===s?void 0:s,isCanceled:l}),f=`Command ${h}: ${i}`,m="[object Error]"==={}.toString.call(o),v=m?`${f}\n${o.message}`:f,g=[v,t,e].filter(Boolean).join("\n");return m?(o.originalMessage=o.message,o.message=g):o=Error(g),o.shortMessage=v,o.command=i,o.escapedCommand=a,o.exitCode=s,o.signal=n,o.signalDescription=d,o.stdout=e,o.stderr=t,void 0!==r&&(o.all=r),"bufferedData"in o&&delete o.bufferedData,o.failed=!0,o.timedOut=!!c,o.isCanceled=l,o.killed=u&&!c,o};var xt={};const wt=["stdin","stdout","stderr"],Et=e=>{if(!e)return;const{stdio:t}=e;if(void 0===t)return wt.map((t=>e[t]));if((e=>wt.some((t=>void 0!==e[t])))(e))throw Error("It's not possible to provide `stdio` in combination with one of "+wt.map((e=>`\`${e}\``)).join(", "));if("string"==typeof t)return t;if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);return Array.from({length:Math.max(t.length,wt.length)},((e,r)=>t[r]))};(xt=Et).node=e=>{const t=Et(e);return"ipc"===t?"ipc":void 0===t||"string"==typeof t?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"]};var bt,St,Pt={};Pt=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&Pt.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&Pt.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED");var Ot,_t=Pt,$t=/^win/i.test(process.platform),Rt=he;"function"!=typeof Rt&&(Rt=Rt.EventEmitter),process.__signal_exit_emitter__?Ot=process.__signal_exit_emitter__:((Ot=process.__signal_exit_emitter__=new Rt).count=0,Ot.emitted={}),Ot.infinite||(Ot.setMaxListeners(1/0),Ot.infinite=!0),(St=(e,t)=>{de.equal(typeof e,"function","a callback must be provided for exit handler"),!1===Tt&&u();var r="exit";return t&&t.alwaysLast&&(r="afterexit"),Ot.on(r,e),()=>{Ot.removeListener(r,e),0===Ot.listeners("exit").length&&0===Ot.listeners("afterexit").length&&c()}}).unload=c;var Ct={};_t.forEach((e=>{Ct[e]=()=>{process.listeners(e).length===Ot.count&&(c(),l("exit",null,e),l("afterexit",null,e),$t&&"SIGHUP"===e&&(e="SIGINT"),process.kill(process.pid,e))}})),St.signals=()=>_t,St.load=u;var Tt=!1,At=process.reallyExit,It=process.emit;const Nt=e=>e===ce.constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase();var Lt,jt=(bt={spawnedKill(e,t="SIGTERM",r={}){const o=e(t);return((e,t,r,o)=>{if(!((e,{forceKillAfterTimeout:t},r)=>Nt(e)&&!1!==t&&r)(t,r,o))return;const n=(({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||0>e)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e})(r),s=setTimeout((()=>{e("SIGKILL")}),n);s.unref&&s.unref()})(e,t,r,o),o},spawnedCancel(e,t){e.kill()&&(t.isCanceled=!0)},setupTimeout(e,{timeout:t,killSignal:r="SIGTERM"},o){if(0===t||void 0===t)return o;let n;const s=new Promise(((o,s)=>{n=setTimeout((()=>{((e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}))})(e,r,s)}),t)})),i=o.finally((()=>{clearTimeout(n)}));return Promise.race([s,i])},validateTimeout({timeout:e}){if(void 0!==e&&(!Number.isFinite(e)||0>e))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},async setExitHandler(e,{cleanup:t,detached:r},o){if(!t||r)return o;const n=St((()=>{e.kill()}));return o.finally((()=>{n()}))}}).spawnedKill,Dt=bt.spawnedCancel,kt=bt.validateTimeout,Mt=bt.setExitHandler,Ft=bt.setupTimeout,Gt={};const Ut=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;Ut.writable=e=>Ut(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,Ut.readable=e=>Ut(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,Ut.duplex=e=>Ut.writable(e)&&Ut.readable(e),Ut.transform=e=>Ut.duplex(e)&&"function"==typeof e._transform,Gt=Ut;var Bt,Vt={},qt=fe.constants,Ht=me.PassThrough;Bt=e=>{e={...e};const{array:t}=e;let{encoding:r}=e;const o="buffer"===r;let n=!1;t?n=!(r||o):r=r||"utf8",o&&(r=null);const s=new Ht({objectMode:n});r&&s.setEncoding(r);let i=0;const a=[];return s.on("data",(e=>{a.push(e),n?i=a.length:i+=e.length})),s.getBufferedValue=()=>t?a:o?Buffer.concat(a,i):a.join(""),s.getBufferedLength=()=>i,s};const Xt=(0,ve.promisify)(me.pipeline);class Wt extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}(Vt=h).buffer=(e,t)=>h(e,{...t,encoding:"buffer"}),Vt.array=(e,t)=>h(e,{...t,array:!0}),Vt.MaxBufferError=Wt;var Yt,Zt=me.PassThrough;Yt=function(){function e(t){return Array.isArray(t)?(t.forEach(e),this):(o.push(t),t.once("end",r.bind(null,t)),t.once("error",n.emit.bind(n,"error")),t.pipe(n,{end:!1}),this)}function t(){return 0==o.length}function r(e){!(o=o.filter((t=>t!==e))).length&&n.readable&&n.end()}var o=[],n=new Zt({objectMode:!0});return n.setMaxListeners(0),n.add=e,n.isEmpty=t,n.on("unpipe",r),[].slice.call(arguments).forEach(e),n};const zt=async(e,t)=>{if(e){e.destroy();try{return await t}catch(e){return e.bufferedData}}},Jt=(e,{encoding:t,buffer:r,maxBuffer:o})=>{if(e&&r)return t?Vt(e,{encoding:t,maxBuffer:o}):Vt.buffer(e,{maxBuffer:o})};var Kt,Qt=(Lt={handleInput(e,t){void 0!==t&&void 0!==e.stdin&&(Gt(t)?t.pipe(e.stdin):e.stdin.end(t))},makeAllStream(e,{all:t}){if(!t||!e.stdout&&!e.stderr)return;const r=Yt();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r},async getSpawnedResult({stdout:e,stderr:t,all:r},{encoding:o,buffer:n,maxBuffer:s},i){const a=Jt(e,{encoding:o,buffer:n,maxBuffer:s}),c=Jt(t,{encoding:o,buffer:n,maxBuffer:s}),l=Jt(r,{encoding:o,buffer:n,maxBuffer:2*s});try{return await Promise.all([i,a,c,l])}catch(o){return Promise.all([{error:o,signal:o.signal,timedOut:o.timedOut},zt(e,a),zt(t,c),zt(r,l)])}},validateInputSync({input:e}){if(Gt(e))throw new TypeError("The `input` option cannot be a stream in sync mode")}}).makeAllStream,er=Lt.getSpawnedResult,tr=Lt.validateInputSync,rr=Lt.handleInput;const or=(async()=>{})().constructor.prototype,nr=["then","catch","finally"].map((e=>[e,Reflect.getOwnPropertyDescriptor(or,e)]));var sr,ir=(Kt={mergePromise(e,t){for(const[r,o]of nr){const n="function"==typeof t?(...e)=>Reflect.apply(o.value,t(),e):o.value.bind(t);Reflect.defineProperty(e,r,{...o,value:n})}return e},getSpawnedPromise(e){return new Promise(((t,r)=>{e.on("exit",((e,r)=>{t({exitCode:e,signal:r})})),e.on("error",(e=>{r(e)})),e.stdin&&e.stdin.on("error",(e=>{r(e)}))}))}}).getSpawnedPromise,ar=Kt.mergePromise;const cr=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],lr=/^[\w.-]+$/;var ur=(sr={joinCommand(e,t){return cr(e,t).join(" ")},getEscapedCommand(e,t){return cr(e,t).map((e=>(e=>"string"!=typeof e||lr.test(e)?e:`"${e.replace(/"/g,'\\"')}"`)(e))).join(" ")},parseCommand(e){const t=[];for(const r of e.trim().split(/ +/g)){const e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${r}`:t.push(r)}return t}}).joinCommand,pr=sr.parseCommand,dr=sr.getEscapedCommand;const hr=(e,t,r={})=>{const o=Ge._parse(e,t,r);return e=o.command,t=o.args,(r={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(r=o.options).cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...r}).env=(({env:e,extendEnv:t,preferLocal:r,localDir:o,execPath:n})=>{const s=t?{...process.env,...e}:e;return r?et.env({env:s,cwd:o,execPath:n}):s})(r),r.stdio=xt(r),"win32"===process.platform&&"cmd"===le.basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:o}},fr=(e,t,r)=>"string"==typeof t||Buffer.isBuffer(t)?e.stripFinalNewline?Qe(t):t:void 0===r?void 0:"",mr=(e,t,r)=>{const o=hr(e,t,r),n=ur(e,t),s=dr(e,t);let i;kt(o.options);try{i=pe.spawn(o.file,o.args,o.options)}catch(e){const t=new pe.ChildProcess,r=Promise.reject(at({error:e,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:o,timedOut:!1,isCanceled:!1,killed:!1}));return ar(t,r)}const a=ir(i),c=Ft(i,o.options,a),l=Mt(i,o.options,c),u={isCanceled:!1};i.kill=jt.bind(null,i.kill.bind(i)),i.cancel=Dt.bind(null,i,u);const p=rt((async()=>{const[{error:e,exitCode:t,signal:r,timedOut:a},c,p,d]=await er(i,o.options,l),h=fr(o.options,c),f=fr(o.options,p),m=fr(o.options,d);if(e||0!==t||null!==r){const c=at({error:e,exitCode:t,signal:r,stdout:h,stderr:f,all:m,command:n,escapedCommand:s,parsed:o,timedOut:a,isCanceled:u.isCanceled,killed:i.killed});if(!o.options.reject)return c;throw c}return{command:n,escapedCommand:s,exitCode:0,stdout:h,stderr:f,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}));return rr(i,o.options.input),i.all=Qt(i,o.options),ar(i,p)};(Fe=mr).sync=(e,t,r)=>{const o=hr(e,t,r),n=ur(e,t),s=dr(e,t);let i;tr(o.options);try{i=pe.spawnSync(o.file,o.args,o.options)}catch(e){throw at({error:e,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:o,timedOut:!1,isCanceled:!1,killed:!1})}const a=fr(o.options,i.stdout,i.error),c=fr(o.options,i.stderr,i.error);if(i.error||0!==i.status||null!==i.signal){const e=at({stdout:a,stderr:c,error:i.error,signal:i.signal,exitCode:i.status,command:n,escapedCommand:s,parsed:o,timedOut:i.error&&"ETIMEDOUT"===i.error.code,isCanceled:!1,killed:null!==i.signal});if(!o.options.reject)return e;throw e}return{command:n,escapedCommand:s,exitCode:0,stdout:a,stderr:c,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},Fe.command=(e,t)=>{const[r,...o]=pr(e);return mr(r,o,t)},Fe.commandSync=(e,t)=>{const[r,...o]=pr(e);return mr.sync(r,o,t)},Fe.node=(e,t,r={})=>{t&&!Array.isArray(t)&&"object"==typeof t&&(r=t,t=[]);const o=xt.node(r),n=process.execArgv.filter((e=>!e.startsWith("--inspect"))),{nodePath:s=process.execPath,nodeOptions:i=n}=r;return mr(s,[...i,e,...Array.isArray(t)?t:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:o,shell:!1})};let vr=!1,gr=!1;Re=$e("6FGZZ"),Re=$e("6FGZZ");let yr,xr=!1;var wr={},Er=wr&&wr.__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]}),br=wr&&wr.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),Sr=wr&&wr.__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)&&Er(t,e,r);return br(t,e),t}),Pr=wr&&wr.__awaiter||((e,t,r,o)=>new(r||(r=Promise))(((n,s)=>{function i(e){try{c(o.next(e))}catch(e){s(e)}}function a(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((o=o.apply(e,t||[])).next())}))),Or=wr&&wr.__importDefault||(e=>e&&e.__esModule?e:{default:e});Object.defineProperty(wr,"__esModule",{value:!0}),wr.evaluateVersions=wr.isExplicitVersion=wr.findFromManifest=wr.getManifestFromRepo=wr.findAllVersions=wr.find=wr.cacheFile=wr.cacheDir=wr.extractZip=wr.extractXar=wr.extractTar=wr.extract7z=wr.downloadTool=wr.HTTPError=void 0;const _r=Sr($e("6FGZZ"));$e.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*(){de.ok(e,"a path argument must be provided"),yield h.mkdir(e,{recursive:!0})}))}function n(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 n of r){const r=yield h.tryGetExecutablePath(d.join(n,e),t);r&&o.push(r)}return o}))}function s(e,t,r,n){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}`,c=`${t}/${o}`;(yield h.lstat(a)).isDirectory()?yield s(a,c,r,n):yield i(a,c,n)}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]}),c=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),l=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&a(t,e,r);return c(t,e),t}),u=e.exports&&e.exports.__awaiter||((e,t,r,o)=>new(r||(r=Promise))(((n,s)=>{function i(e){try{c(o.next(e))}catch(e){s(e)}}function a(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((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=l(pe),d=l(le),h=l($e("fyhIP")),f=ve.promisify(p.exec),m=ve.promisify(p.execFile);e.exports.cp=function(e,t,r={}){return u(this,void 0,void 0,(function*(){const{force:o,recursive:n,copySourceDirectory:a}=(e=>({force:null==e.force||e.force,recursive:!!e.recursive,copySourceDirectory:null==e.copySourceDirectory||!!e.copySourceDirectory}))(r),c=(yield h.exists(t))?yield h.stat(t):null;if(c&&c.isFile()&&!o)return;const l=c&&c.isDirectory()&&a?d.join(t,d.basename(e)):t;if(!(yield h.exists(e)))throw Error("no such file or directory: "+e);if((yield h.stat(e)).isDirectory()){if(!n)throw Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield s(e,l,0,o)}else{if(""===d.relative(e,l))throw Error(`'${l}' and '${e}' are the same file`);yield i(e,l,o)}}))},e.exports.mv=function(e,t,n={}){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!=n.force&&!n.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 n(t);return o&&o.length>0?o[0]:""}))},e.exports.findInPath=n})),$e.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,n=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}),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)&&n(t,e,r);return s(t,e),t}),a=e.exports&&e.exports.__awaiter||((e,t,r,o)=>new(r||(r=Promise))(((n,s)=>{function i(e){try{c(o.next(e))}catch(e){s(e)}}function a(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((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 c=i(ue),l=i(le);e.exports.chmod=(o=c.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 n;try{n=yield e.exports.stat(t)}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`)}if(n&&n.isFile())if(e.exports.IS_WINDOWS){const e=l.extname(t).toUpperCase();if(o.some((t=>t.toUpperCase()===e)))return t}else if(r(n))return t;const s=t;for(const i of o){t=s+i,n=void 0;try{n=yield e.exports.stat(t)}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`)}if(n&&n.isFile()){if(e.exports.IS_WINDOWS){try{const r=l.dirname(t),o=l.basename(t).toUpperCase();for(const n of yield e.exports.readdir(r))if(o===n.toUpperCase()){t=l.join(r,n);break}}catch(e){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${e}`)}return t}if(r(n))return t}}return""}))},e.exports.getCmdPath=()=>{var e;return null!==(e=process.env.COMSPEC)&&void 0!==e?e:"cmd.exe"}}));const $r=Sr($e("q05Mr")),Rr=Sr(ue);$e.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}),n=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t}),s=e.exports&&e.exports.__awaiter||((e,t,r,o)=>new(r||(r=Promise))(((n,s)=>{function i(e){try{c(o.next(e))}catch(e){s(e)}}function a(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((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=n($e("hBwzM"));var a=$e("6FGZZ");e.exports._findMatch=function(t,r,o,n){return s(this,void 0,void 0,(function*(){const s=ce.platform();let c,l,u;for(const c of o){const o=c.version;if(a.debug(`check ${o} satisfies ${t}`),i.satisfies(o,t)&&(!r||c.stable===r)&&(u=c.files.find((t=>{a.debug(`${t.arch}===${n} && ${t.platform}===${s}`);let r=t.arch===n&&t.platform===s;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 "+c.version),l=c;break}}return l&&u&&(c=Object.assign({},l),c.files=[u]),c}))},e.exports._getOsVersion=()=>{const t=ce.platform();let r="";if("darwin"===t)r=""+pe.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 ue.existsSync(e)?r=""+ue.readFileSync(e):ue.existsSync(t)&&(r=""+ue.readFileSync(t)),r}})),$e.register("hBwzM",((e,t)=>{var r=$e("j1nFx");e.exports={re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:$e("9PnyI").SEMVER_SPEC_VERSION,SemVer:$e("j4Bpm"),compareIdentifiers:$e("9vPNp").compareIdentifiers,rcompareIdentifiers:$e("9vPNp").rcompareIdentifiers,parse:$e("bd0kF"),valid:$e("1JJDJ"),clean:$e("6mLCu"),inc:$e("1Orzu"),diff:$e("kGDR5"),major:$e("k3zcS"),minor:$e("e8NKK"),patch:$e("3Fhst"),prerelease:$e("6elLy"),compare:$e("1wyqe"),rcompare:$e("las47"),compareLoose:$e("dQlWE"),compareBuild:$e("7REgF"),sort:$e("3U0ar"),rsort:$e("98o3F"),gt:$e("6bYo1"),lt:$e("98Pyg"),eq:$e("4eeum"),neq:$e("a0PPD"),gte:$e("kRrXd"),lte:$e("ju11K"),cmp:$e("cITzi"),coerce:$e("5M2Mq"),Comparator:$e("hDCF3"),Range:$e("8YuUE"),satisfies:$e("6rO9c"),toComparators:$e("fx4Sd"),maxSatisfying:$e("bMVW7"),minSatisfying:$e("g5aoW"),minVersion:$e("hO4RL"),validRange:$e("hXGf0"),outside:$e("2MRaB"),gtr:$e("bqGrY"),ltr:$e("3AeSM"),intersects:$e("2Lyoi"),simplifyRange:$e("5pzc6"),subset:$e("2XGoS")}})),$e.register("j1nFx",((e,t)=>{var r=$e("9PnyI").MAX_SAFE_COMPONENT_LENGTH,o=$e("8eni4");const n=(t=e.exports={}).re=[],s=t.src=[],i=t.t={};let a=0;const c=(e,t,r)=>{const c=a++;o(c,t),i[e]=c,s[c]=t,n[c]=RegExp(t,r?"g":void 0)};c("NUMERICIDENTIFIER","0|[1-9]\\d*"),c("NUMERICIDENTIFIERLOOSE","[0-9]+"),c("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),c("MAINVERSION",`(${s[i.NUMERICIDENTIFIER]})\\.(${s[i.NUMERICIDENTIFIER]})\\.(${s[i.NUMERICIDENTIFIER]})`),c("MAINVERSIONLOOSE",`(${s[i.NUMERICIDENTIFIERLOOSE]})\\.(${s[i.NUMERICIDENTIFIERLOOSE]})\\.(${s[i.NUMERICIDENTIFIERLOOSE]})`),c("PRERELEASEIDENTIFIER",`(?:${s[i.NUMERICIDENTIFIER]}|${s[i.NONNUMERICIDENTIFIER]})`),c("PRERELEASEIDENTIFIERLOOSE",`(?:${s[i.NUMERICIDENTIFIERLOOSE]}|${s[i.NONNUMERICIDENTIFIER]})`),c("PRERELEASE",`(?:-(${s[i.PRERELEASEIDENTIFIER]}(?:\\.${s[i.PRERELEASEIDENTIFIER]})*))`),c("PRERELEASELOOSE",`(?:-?(${s[i.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[i.PRERELEASEIDENTIFIERLOOSE]})*))`),c("BUILDIDENTIFIER","[0-9A-Za-z-]+"),c("BUILD",`(?:\\+(${s[i.BUILDIDENTIFIER]}(?:\\.${s[i.BUILDIDENTIFIER]})*))`),c("FULLPLAIN",`v?${s[i.MAINVERSION]}${s[i.PRERELEASE]}?${s[i.BUILD]}?`),c("FULL",`^${s[i.FULLPLAIN]}$`),c("LOOSEPLAIN",`[v=\\s]*${s[i.MAINVERSIONLOOSE]}${s[i.PRERELEASELOOSE]}?${s[i.BUILD]}?`),c("LOOSE",`^${s[i.LOOSEPLAIN]}$`),c("GTLT","((?:<|>)?=?)"),c("XRANGEIDENTIFIERLOOSE",s[i.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*"),c("XRANGEIDENTIFIER",s[i.NUMERICIDENTIFIER]+"|x|X|\\*"),c("XRANGEPLAIN",`[v=\\s]*(${s[i.XRANGEIDENTIFIER]})(?:\\.(${s[i.XRANGEIDENTIFIER]})(?:\\.(${s[i.XRANGEIDENTIFIER]})(?:${s[i.PRERELEASE]})?${s[i.BUILD]}?)?)?`),c("XRANGEPLAINLOOSE",`[v=\\s]*(${s[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[i.XRANGEIDENTIFIERLOOSE]})(?:${s[i.PRERELEASELOOSE]})?${s[i.BUILD]}?)?)?`),c("XRANGE",`^${s[i.GTLT]}\\s*${s[i.XRANGEPLAIN]}$`),c("XRANGELOOSE",`^${s[i.GTLT]}\\s*${s[i.XRANGEPLAINLOOSE]}$`),c("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),c("COERCERTL",s[i.COERCE],!0),c("LONETILDE","(?:~>?)"),c("TILDETRIM",`(\\s*)${s[i.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",c("TILDE",`^${s[i.LONETILDE]}${s[i.XRANGEPLAIN]}$`),c("TILDELOOSE",`^${s[i.LONETILDE]}${s[i.XRANGEPLAINLOOSE]}$`),c("LONECARET","(?:\\^)"),c("CARETTRIM",`(\\s*)${s[i.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",c("CARET",`^${s[i.LONECARET]}${s[i.XRANGEPLAIN]}$`),c("CARETLOOSE",`^${s[i.LONECARET]}${s[i.XRANGEPLAINLOOSE]}$`),c("COMPARATORLOOSE",`^${s[i.GTLT]}\\s*(${s[i.LOOSEPLAIN]})$|^$`),c("COMPARATOR",`^${s[i.GTLT]}\\s*(${s[i.FULLPLAIN]})$|^$`),c("COMPARATORTRIM",`(\\s*)${s[i.GTLT]}\\s*(${s[i.LOOSEPLAIN]}|${s[i.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",c("HYPHENRANGE",`^\\s*(${s[i.XRANGEPLAIN]})\\s+-\\s+(${s[i.XRANGEPLAIN]})\\s*$`),c("HYPHENRANGELOOSE",`^\\s*(${s[i.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[i.XRANGEPLAINLOOSE]})\\s*$`),c("STAR","(<|>)?=?\\s*\\*"),c("GTE0","^\\s*>=\\s*0.0.0\\s*$"),c("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")})),$e.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}})),$e.register("8eni4",((e,t)=>{const r=("object"==typeof process&&process,()=>{});e.exports=r})),$e.register("j4Bpm",(function(e,t){var r=$e("8eni4"),o=$e("9PnyI"),n=o.MAX_LENGTH,s=o.MAX_SAFE_INTEGER,i=$e("j1nFx"),a=i.re,c=i.t,l=$e("26eGk"),u=$e("9vPNp").compareIdentifiers;class p{constructor(e,t){if(t=l(t),e instanceof p){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>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[c.LOOSE]:a[c.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],n=e.prerelease[t];if(r("prerelease compare",t,o,n),void 0===o&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===o)return-1;if(o!==n)return u(o,n)}while(++t)}compareBuild(e){e instanceof p||(e=new p(e,this.options));let t=0;do{const o=this.build[t],n=e.build[t];if(r("prerelease compare",t,o,n),void 0===o&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===o)return-1;if(o!==n)return u(o,n)}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})),$e.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)),{}):{}})),$e.register("9vPNp",((e,t)=>{const r=/^[0-9]+$/,o=(e,t)=>{const o=r.test(e),n=r.test(t);return o&&n&&(e=+e,t=+t),e===t?0:o&&!n?-1:n&&!o?1:t>e?-1:1};e.exports={compareIdentifiers:o,rcompareIdentifiers(e,t){return o(t,e)}}})),$e.register("bd0kF",((e,t)=>{var r=$e("9PnyI").MAX_LENGTH,o=$e("j1nFx"),n=o.re,s=o.t,i=$e("j4Bpm"),a=$e("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?n[s.LOOSE]:n[s.FULL]).test(e))return null;try{return new i(e,t)}catch(e){return null}}})),$e.register("1JJDJ",((e,t)=>{var r=$e("bd0kF");e.exports=(e,t)=>{const o=r(e,t);return o?o.version:null}})),$e.register("6mLCu",((e,t)=>{var r=$e("bd0kF");e.exports=(e,t)=>{const o=r(e.trim().replace(/^[=v]+/,""),t);return o?o.version:null}})),$e.register("1Orzu",((e,t)=>{var r=$e("j4Bpm");e.exports=(e,t,o,n)=>{"string"==typeof o&&(n=o,o=void 0);try{return new r(e,o).inc(t,n).version}catch(e){return null}}})),$e.register("kGDR5",((e,t)=>{var r=$e("bd0kF"),o=$e("4eeum");e.exports=(e,t)=>{if(o(e,t))return null;{const o=r(e),n=r(t),s=o.prerelease.length||n.prerelease.length,i=s?"pre":"",a=s?"prerelease":"";for(const e in o)if(("major"===e||"minor"===e||"patch"===e)&&o[e]!==n[e])return i+e;return a}}})),$e.register("4eeum",((e,t)=>{var r=$e("1wyqe");e.exports=(e,t,o)=>0===r(e,t,o)})),$e.register("1wyqe",((e,t)=>{var r=$e("j4Bpm");e.exports=(e,t,o)=>new r(e,o).compare(new r(t,o))})),$e.register("k3zcS",((e,t)=>{var r=$e("j4Bpm");e.exports=(e,t)=>new r(e,t).major})),$e.register("e8NKK",((e,t)=>{var r=$e("j4Bpm");e.exports=(e,t)=>new r(e,t).minor})),$e.register("3Fhst",((e,t)=>{var r=$e("j4Bpm");e.exports=(e,t)=>new r(e,t).patch})),$e.register("6elLy",((e,t)=>{var r=$e("bd0kF");e.exports=(e,t)=>{const o=r(e,t);return o&&o.prerelease.length?o.prerelease:null}})),$e.register("las47",((e,t)=>{var r=$e("1wyqe");e.exports=(e,t,o)=>r(t,e,o)})),$e.register("dQlWE",((e,t)=>{var r=$e("1wyqe");e.exports=(e,t)=>r(e,t,!0)})),$e.register("7REgF",((e,t)=>{var r=$e("j4Bpm");e.exports=(e,t,o)=>{const n=new r(e,o),s=new r(t,o);return n.compare(s)||n.compareBuild(s)}})),$e.register("3U0ar",((e,t)=>{var r=$e("7REgF");e.exports=(e,t)=>e.sort(((e,o)=>r(e,o,t)))})),$e.register("98o3F",((e,t)=>{var r=$e("7REgF");e.exports=(e,t)=>e.sort(((e,o)=>r(o,e,t)))})),$e.register("6bYo1",((e,t)=>{var r=$e("1wyqe");e.exports=(e,t,o)=>r(e,t,o)>0})),$e.register("98Pyg",((e,t)=>{var r=$e("1wyqe");e.exports=(e,t,o)=>0>r(e,t,o)})),$e.register("a0PPD",((e,t)=>{var r=$e("1wyqe");e.exports=(e,t,o)=>0!==r(e,t,o)})),$e.register("kRrXd",((e,t)=>{var r=$e("1wyqe");e.exports=(e,t,o)=>r(e,t,o)>=0})),$e.register("ju11K",((e,t)=>{var r=$e("1wyqe");e.exports=(e,t,o)=>0>=r(e,t,o)})),$e.register("cITzi",((e,t)=>{var r=$e("4eeum"),o=$e("a0PPD"),n=$e("6bYo1"),s=$e("kRrXd"),i=$e("98Pyg"),a=$e("ju11K");e.exports=(e,t,c,l)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof c&&(c=c.version),e===c;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof c&&(c=c.version),e!==c;case"":case"=":case"==":return r(e,c,l);case"!=":return o(e,c,l);case">":return n(e,c,l);case">=":return s(e,c,l);case"<":return i(e,c,l);case"<=":return a(e,c,l);default:throw new TypeError("Invalid operator: "+t)}}})),$e.register("5M2Mq",((e,t)=>{var r=$e("j4Bpm"),o=$e("bd0kF"),n=$e("j1nFx"),s=n.t,i=n.re;e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e+=""),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){let t;for(;(t=i[s.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&t.index+t[0].length===n.index+n[0].length||(n=t),i[s.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;i[s.COERCERTL].lastIndex=-1}else n=e.match(i[s.COERCE]);return null===n?null:o(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)}})),$e.register("hDCF3",(function(e,t){const r=Symbol();class o{static get ANY(){return r}constructor(e,t){if(t=n(t),e instanceof o){if(e.loose===!!t.loose)return e;e=e.value}l("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.value=this.semver===r?"":this.operator+this.semver.version,l("comp",this)}parse(e){const t=e.match(this.options.loose?a[i.COMPARATORLOOSE]:a[i.COMPARATOR]);if(!t)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==t[1]?t[1]:"","="===this.operator&&(this.operator=""),this.semver=t[2]?new u(t[2],this.options.loose):r}toString(){return this.value}test(e){if(l("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}return c(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof 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),n=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),s=this.semver.version===e.semver.version,i=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=c(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=c(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||n||s&&i||a||l}}e.exports=o;var n=$e("26eGk"),s=$e("j1nFx"),i=s.t,a=s.re,c=$e("cITzi"),l=$e("8eni4"),u=$e("j4Bpm"),p=$e("8YuUE")})),$e.register("8YuUE",(function(e,t){class r{constructor(e,t){if(t=n(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof s)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\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 n=this.options.loose;e=e.replace(n?d[h.HYPHENRANGELOOSE]:d[h.HYPHENRANGE],$(this.options.includePrerelease)),i("hyphen replace",e),e=e.replace(d[h.COMPARATORTRIM],l),i("comparator trim",e,d[h.COMPARATORTRIM]),e=(e=(e=e.replace(d[h.TILDETRIM],u)).replace(d[h.CARETTRIM],p)).split(/\s+/).join(" ");const a=n?d[h.COMPARATORLOOSE]:d[h.COMPARATOR],c=e.split(" ").map((e=>g(e,this.options))).join(" ").split(/\s+/).map((e=>_(e,this.options))).filter(this.options.loose?e=>!!e.match(a):()=>!0).map((e=>new s(e,this.options))),m=new Map;for(const e of c){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($e("hqS6J"))({max:1e3});var n=$e("26eGk"),s=$e("hDCF3"),i=$e("8eni4"),a=$e("j4Bpm"),c=$e("j1nFx"),l=c.comparatorTrimReplace,u=c.tildeTrimReplace,p=c.caretTrimReplace,d=c.re,h=c.t;const f=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,v=(e,t)=>{let r=!0;const o=e.slice();let n=o.pop();for(;r&&o.length;)r=o.every((e=>n.intersects(e,t))),n=o.pop();return r},g=(e,t)=>(i("comp",e,t),e=E(e,t),i("caret",e),e=x(e,t),i("tildes",e),e=S(e,t),i("xrange",e),e=O(e,t),i("stars",e),e),y=e=>!e||"x"===e.toLowerCase()||"*"===e,x=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>e.replace(t.loose?d[h.TILDELOOSE]:d[h.TILDE],((t,r,o,n,s)=>{let a;return i("tilde",e,t,r,o,n,s),y(r)?a="":y(o)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:y(n)?a=`>=${r}.${o}.0 <${r}.${+o+1}.0-0`:s?(i("replaceTilde pr",s),a=`>=${r}.${o}.${n}-${s} <${r}.${+o+1}.0-0`):a=`>=${r}.${o}.${n} <${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?d[h.CARETLOOSE]:d[h.CARET],((t,o,n,s,a)=>{let c;return i("caret",e,t,o,n,s,a),y(o)?c="":y(n)?c=`>=${o}.0.0${r} <${+o+1}.0.0-0`:y(s)?c="0"===o?`>=${o}.${n}.0${r} <${o}.${+n+1}.0-0`:`>=${o}.${n}.0${r} <${+o+1}.0.0-0`:a?(i("replaceCaret pr",a),c="0"===o?"0"===n?`>=${o}.${n}.${s}-${a} <${o}.${n}.${+s+1}-0`:`>=${o}.${n}.${s}-${a} <${o}.${+n+1}.0-0`:`>=${o}.${n}.${s}-${a} <${+o+1}.0.0-0`):(i("no pr"),c="0"===o?"0"===n?`>=${o}.${n}.${s}${r} <${o}.${n}.${+s+1}-0`:`>=${o}.${n}.${s}${r} <${o}.${+n+1}.0-0`:`>=${o}.${n}.${s} <${+o+1}.0.0-0`),i("caret return",c),c}))},S=(e,t)=>(i("replaceXRanges",e,t),e.split(/\s+/).map((e=>P(e,t))).join(" ")),P=(e,t)=>(e=e.trim()).replace(t.loose?d[h.XRANGELOOSE]:d[h.XRANGE],((r,o,n,s,a,c)=>{i("xRange",e,r,o,n,s,a,c);const l=y(n),u=l||y(s),p=u||y(a);return"="===o&&p&&(o=""),c=t.includePrerelease?"-0":"",l?r=">"===o||"<"===o?"<0.0.0-0":"*":o&&p?(u&&(s=0),a=0,">"===o?(o=">=",u?(n=+n+1,s=0,a=0):(s=+s+1,a=0)):"<="===o&&(o="<",u?n=+n+1:s=+s+1),"<"===o&&(c="-0"),r=`${o+n}.${s}.${a}${c}`):u?r=`>=${n}.0.0${c} <${+n+1}.0.0-0`:p&&(r=`>=${n}.${s}.0${c} <${n}.${+s+1}.0-0`),i("xRange return",r),r})),O=(e,t)=>(i("replaceStars",e,t),e.trim().replace(d[h.STAR],"")),_=(e,t)=>(i("replaceGTE0",e,t),e.trim().replace(d[t.includePrerelease?h.GTE0PRE:h.GTE0],"")),$=e=>(t,r,o,n,s,i,a,c,l,u,p,d,h)=>`${r=y(o)?"":y(n)?`>=${o}.0.0${e?"-0":""}`:y(s)?`>=${o}.${n}.0${e?"-0":""}`:i?">="+r:`>=${r}${e?"-0":""}`} ${c=y(l)?"":y(u)?`<${+l+1}.0.0-0`:y(p)?`<${l}.${+u+1}.0-0`:d?`<=${l}.${u}.${p}-${d}`:e?`<${l}.${u}.${+p+1}-0`:"<="+c}`.trim(),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!==s.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}})),$e.register("hqS6J",(function(e,t){"use strict";var r=$e("9ShIP");const o=Symbol(),n=Symbol(),s=Symbol(),i=Symbol(),a=Symbol(),c=Symbol(),l=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(g(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[n]>e[o])for(let t=e[u].tail;e[n]>e[o]&&null!==t;){const r=t.prev;g(e,t),t=r}},g=(e,t)=>{if(t){const r=t.value;e[c]&&e[c](r.key,r.value),e[n]-=r.length,e[p].delete(r.key),e[u].removeNode(t)}};class y{constructor(e,t,r,o,n){this.key=e,this.value=t,this.length=r,this.now=o,this.maxAge=n||0}}const x=(e,t,r,o)=>{let n=r.value;m(e,n)&&(g(e,r),e[i]||(n=void 0)),n&&t.call(o,n.value,n.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[s]="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[c]=e.dispose,this[l]=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[s]&&(this[s]=e,this[n]=0,this[u].forEach((e=>{e.length=this[s](e.value,e.key),this[n]+=e.length}))),v(this)}get lengthCalculator(){return this[s]}get length(){return this[n]}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[c]&&this[u]&&this[u].length&&this[u].forEach((e=>this[c](e.key,e.value))),this[p]=new Map,this[u]=new r,this[n]=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[s](t,e);if(this[p].has(e)){if(d>this[o])return g(this,this[p].get(e)),!1;const s=this[p].get(e).value;return this[c]&&(this[l]||this[c](e,s.value)),s.now=i,s.maxAge=r,s.value=t,this[n]+=d-s.length,s.length=d,this.get(e),v(this),!0}const h=new y(e,t,d,i,r);return h.length>this[o]?(this[c]&&this[c](e,t),!1):(this[n]+=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?(g(this,e),e.value):null}del(e){g(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],n=o.e||0;if(0===n)this.set(o.k,o.v);else{const e=n-t;e>0&&this.set(o.k,o.v,e)}}}prune(){this[p].forEach(((e,t)=>f(this,t,!1)))}}})),$e.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,n=arguments.length;n>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 n(e,t){e.tail=new i(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function s(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++)n(this,arguments[e]);return this.length},r.prototype.unshift=function(){for(var e=0,t=arguments.length;t>e;e++)s(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,n=this.head;null!==n;)o.push(e.call(t,n.value,this)),n=n.next;return o},r.prototype.mapReverse=function(e,t){t=t||this;for(var o=new r,n=this.tail;null!==n;)o.push(e.call(t,n.value,this)),n=n.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 n=0;null!==o;n++)r=e(r,o.value,n),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 n=this.length-1;null!==o;n--)r=e(r,o.value,n),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 n=0,s=this.head;null!==s&&e>n;n++)s=s.next;for(;null!==s&&t>n;n++,s=s.next)o.push(s.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 n=this.length,s=this.tail;null!==s&&n>t;n--)s=s.prev;for(;null!==s&&n>e;n--,s=s.prev)o.push(s.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 n=0,s=this.head;null!==s&&e>n;n++)s=s.next;var i=[];for(n=0;s&&t>n;n++)i.push(s.value),s=this.removeNode(s);for(null===s&&(s=this.tail),s!==this.head&&s!==this.tail&&(s=s.prev),n=0;r.length>n;n++)s=o(this,s,r[n]);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{$e("bdwRA")(r)}catch(e){}})),$e.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}}})),$e.register("6rO9c",((e,t)=>{var r=$e("8YuUE");e.exports=(e,t,o)=>{try{t=new r(t,o)}catch(e){return!1}return t.test(e)}})),$e.register("fx4Sd",((e,t)=>{var r=$e("8YuUE");e.exports=(e,t)=>new r(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))})),$e.register("bMVW7",((e,t)=>{var r=$e("j4Bpm"),o=$e("8YuUE");e.exports=(e,t,n)=>{let s=null,i=null,a=null;try{a=new o(t,n)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(s&&-1!==i.compare(e)||(s=e,i=new r(s,n)))})),s}})),$e.register("g5aoW",((e,t)=>{var r=$e("j4Bpm"),o=$e("8YuUE");e.exports=(e,t,n)=>{let s=null,i=null,a=null;try{a=new o(t,n)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(s&&1!==i.compare(e)||(s=e,i=new r(s,n)))})),s}})),$e.register("hO4RL",((e,t)=>{var r=$e("j4Bpm"),o=$e("8YuUE"),n=$e("6bYo1");e.exports=(e,t)=>{e=new o(e,t);let s=new r("0.0.0");if(e.test(s))return s;if(s=new r("0.0.0-0"),e.test(s))return s;s=null;for(let t=0;e.set.length>t;++t){let 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&&!n(t,o)||(o=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator)}})),!o||s&&!n(s,o)||(s=o)}return s&&e.test(s)?s:null}})),$e.register("hXGf0",((e,t)=>{var r=$e("8YuUE");e.exports=(e,t)=>{try{return new r(e,t).range||"*"}catch(e){return null}}})),$e.register("2MRaB",((e,t)=>{var r=$e("j4Bpm"),o=$e("hDCF3");const{ANY:n}=o;var s=$e("8YuUE"),i=$e("6rO9c"),a=$e("6bYo1"),c=$e("98Pyg"),l=$e("ju11K"),u=$e("kRrXd");e.exports=(e,t,p,d)=>{let h,f,m,v,g;switch(e=new r(e,d),t=new s(t,d),p){case">":h=a,f=l,m=c,v=">",g=">=";break;case"<":h=c,f=u,m=a,v="<",g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(i(e,t,d))return!1;for(let r=0;t.set.length>r;++r){let s=null,i=null;if(t.set[r].forEach((e=>{e.semver===n&&(e=new o(">=0.0.0")),s=s||e,i=i||e,h(e.semver,s.semver,d)?s=e:m(e.semver,i.semver,d)&&(i=e)})),s.operator===v||s.operator===g)return!1;if((!i.operator||i.operator===v)&&f(e,i.semver))return!1;if(i.operator===g&&m(e,i.semver))return!1}return!0}})),$e.register("bqGrY",((e,t)=>{var r=$e("2MRaB");e.exports=(e,t,o)=>r(e,t,">",o)})),$e.register("3AeSM",((e,t)=>{var r=$e("2MRaB");e.exports=(e,t,o)=>r(e,t,"<",o)})),$e.register("2Lyoi",((e,t)=>{var r=$e("8YuUE");e.exports=(e,t,o)=>(e=new r(e,o),t=new r(t,o),e.intersects(t))})),$e.register("5pzc6",((e,t)=>{var r=$e("6rO9c"),o=$e("1wyqe");e.exports=(e,t,n)=>{const s=[];let i=null,a=null;const c=e.sort(((e,t)=>o(e,t,n)));for(const e of c)r(e,t,n)?(a=e,i||(i=e)):(a&&s.push([i,a]),a=null,i=null);i&&s.push([i,null]);const l=[];for(const[e,t]of s)l.push(e===t?e:t||e!==c[0]?t?e===c[0]?"<="+t:`${e} - ${t}`:">="+e:"*");const u=l.join(" || ");return("string"==typeof t.raw?t.raw:t+"").length>u.length?u:t}})),$e.register("2XGoS",((e,t)=>{var r=$e("8YuUE"),o=$e("hDCF3");const{ANY:n}=o;var s=$e("6rO9c"),i=$e("1wyqe");const a=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===n){if(1===t.length&&t[0].semver===n)return!0;e=r.includePrerelease?[new o(">=0.0.0-0")]:[new o(">=0.0.0")]}if(1===t.length&&t[0].semver===n){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=c(u,t,r):"<"===t.operator||"<="===t.operator?p=l(p,t,r):a.add(t.semver);if(a.size>1)return null;if(u&&p){if(d=i(u.semver,p.semver,r),d>0)return null;if(0===d&&(">="!==u.operator||"<="!==p.operator))return null}for(const e of a){if(u&&!s(e,u+"",r))return null;if(p&&!s(e,p+"",r))return null;for(const o of t)if(!s(e,o+"",r))return!1;return!0}let g=!(!p||r.includePrerelease||!p.semver.prerelease.length)&&p.semver,y=!(!u||r.includePrerelease||!u.semver.prerelease.length)&&u.semver;g&&1===g.prerelease.length&&"<"===p.operator&&0===g.prerelease[0]&&(g=!1);for(const e of t){if(v=v||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,u)if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),">"===e.operator||">="===e.operator){if(h=c(u,e,r),h===e&&h!==u)return!1}else if(">="===u.operator&&!s(u.semver,e+"",r))return!1;if(p)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(f=l(p,e,r),f===e&&f!==p)return!1}else if("<="===p.operator&&!s(p.semver,e+"",r))return!1;if(!e.operator&&(p||u)&&0!==d)return!1}return!(u&&m&&!p&&0!==d||p&&v&&!u&&0!==d||y||g)},c=(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},l=(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 n=!1;e:for(const r of e.set){for(const e of t.set){const t=a(r,e,o);if(n=n||null!==t,t)continue e}if(n)return!1}return!0}}));const Cr=Sr($e("1Hds5")),Tr=Sr(ce),Ar=Sr(le);$e.register("9AGbw",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0});var r=$e("cEfL5");let o;var n,s,i,a,c;(s=n=e.exports.HttpCodes||(e.exports.HttpCodes={}))[s.OK=200]="OK",s[s.MultipleChoices=300]="MultipleChoices",s[s.MovedPermanently=301]="MovedPermanently",s[s.ResourceMoved=302]="ResourceMoved",s[s.SeeOther=303]="SeeOther",s[s.NotModified=304]="NotModified",s[s.UseProxy=305]="UseProxy",s[s.SwitchProxy=306]="SwitchProxy",s[s.TemporaryRedirect=307]="TemporaryRedirect",s[s.PermanentRedirect=308]="PermanentRedirect",s[s.BadRequest=400]="BadRequest",s[s.Unauthorized=401]="Unauthorized",s[s.PaymentRequired=402]="PaymentRequired",s[s.Forbidden=403]="Forbidden",s[s.NotFound=404]="NotFound",s[s.MethodNotAllowed=405]="MethodNotAllowed",s[s.NotAcceptable=406]="NotAcceptable",s[s.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",s[s.RequestTimeout=408]="RequestTimeout",s[s.Conflict=409]="Conflict",s[s.Gone=410]="Gone",s[s.TooManyRequests=429]="TooManyRequests",s[s.InternalServerError=500]="InternalServerError",s[s.NotImplemented=501]="NotImplemented",s[s.BadGateway=502]="BadGateway",s[s.ServiceUnavailable=503]="ServiceUnavailable",s[s.GatewayTimeout=504]="GatewayTimeout",(a=i=e.exports.Headers||(e.exports.Headers={})).Accept="accept",a.ContentType="content-type",(c=e.exports.MediaTypes||(e.exports.MediaTypes={})).ApplicationJson="application/json",e.exports.getProxyUrl=e=>{let t=r.getProxyUrl(new URL(e));return t?t.href:""};const l=[n.MovedPermanently,n.ResourceMoved,n.SeeOther,n.TemporaryRedirect,n.PermanentRedirect],u=[n.BadGateway,n.ServiceUnavailable,n.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,c.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,c.ApplicationJson),r[i.ContentType]=this._getExistingOrDefaultHeader(r,i.ContentType,c.ApplicationJson);let n=await this.post(e,o,r);return this._processResponse(n,this.requestOptions)}async putJson(e,t,r={}){let o=JSON.stringify(t,null,2);r[i.Accept]=this._getExistingOrDefaultHeader(r,i.Accept,c.ApplicationJson),r[i.ContentType]=this._getExistingOrDefaultHeader(r,i.ContentType,c.ApplicationJson);let n=await this.put(e,o,r);return this._processResponse(n,this.requestOptions)}async patchJson(e,t,r={}){let o=JSON.stringify(t,null,2);r[i.Accept]=this._getExistingOrDefaultHeader(r,i.Accept,c.ApplicationJson),r[i.ContentType]=this._getExistingOrDefaultHeader(r,i.ContentType,c.ApplicationJson);let n=await this.patch(e,o,r);return this._processResponse(n,this.requestOptions)}async request(e,t,r,o){if(this._disposed)throw Error("Client has already been disposed.");let s,i=new URL(t),a=this._prepareRequest(e,i,o),c=this._allowRetries&&-1!=p.indexOf(e)?this._maxRetries+1:1,d=0;for(;c>d;){if(s=await this.requestRaw(a,r),s&&s.message&&s.message.statusCode===n.Unauthorized){let e;for(let t=0;this.handlers.length>t;t++)if(this.handlers[t].canHandleAuthentication(s)){e=this.handlers[t];break}return e?e.handleAuthentication(this,a,r):s}let t=this._maxRedirects;for(;-1!=l.indexOf(s.message.statusCode)&&this._allowRedirects&&t>0;){const n=s.message.headers.location;if(!n)break;let c=new URL(n);if("https:"==i.protocol&&i.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");if(await s.readBody(),c.hostname!==i.hostname)for(let e in o)"authorization"===e.toLowerCase()&&delete o[e];a=this._prepareRequest(e,c,o),s=await this.requestRaw(a,r),t--}if(-1==u.indexOf(s.message.statusCode))return s;d+=1,c>d&&(await s.readBody(),await this._performExponentialBackoff(d))}return s}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}requestRaw(e,t){return new Promise(((r,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 n=!1,s=(e,t)=>{n||(n=!0,r(e,t))},i=e.httpModule.request(e.options,(e=>{let t=new h(e);s(null,t)}));i.on("socket",(e=>{o=e})),i.setTimeout(this._socketTimeout||18e4,(()=>{o&&o.end(),s(Error("Request timeout: "+e.options.path),null)})),i.on("error",(e=>{s(e,null)})),t&&"string"==typeof t&&i.write(t,"utf8"),t&&"string"!=typeof t?(t.on("close",(()=>{i.end()})),t.pipe(i)):i.end()}getAgent(e){let t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,r){const o={};o.parsedUrl=t;const n="https:"===o.parsedUrl.protocol;o.httpModule=n?ye:ge;const s=n?443:80;return o.options={},o.options.host=o.parsedUrl.hostname,o.options.port=o.parsedUrl.port?parseInt(o.parsedUrl.port):s,o.options.path=(o.parsedUrl.pathname||"")+(o.parsedUrl.search||""),o.options.method=e,o.options.headers=this._mergeHeaders(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 n;return this.requestOptions&&this.requestOptions.headers&&(o=(n=this.requestOptions.headers,Object.keys(n).reduce(((e,t)=>(e[t.toLowerCase()]=n[t],e)),{}))[t]),e[t]||o||r}_getAgent(e){let t,n=r.getProxyUrl(e),s=n&&n.hostname;if(this._keepAlive&&s&&(t=this._proxyAgent),this._keepAlive&&!s&&(t=this._agent),t)return t;const i="https:"===e.protocol;let a=100;if(this.requestOptions&&(a=this.requestOptions.maxSockets||ge.globalAgent.maxSockets),s){o||(o=$e("hEhmi"));const e={maxSockets:a,keepAlive:this._keepAlive,proxy:{...(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`},host:n.hostname,port:n.port}};let r;const s="https:"===n.protocol;r=i?s?o.httpsOverHttps:o.httpsOverHttp:s?o.httpOverHttps:o.httpOverHttp,t=r(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:a};t=i?new ye.Agent(e):new ge.Agent(e),this._agent=t}return t||(t=i?ye.globalAgent:ge.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 s=e.message.statusCode,i={statusCode:s,result:null,headers:{}};let a,c;s==n.NotFound&&r(i);try{c=await e.readBody(),c&&c.length>0&&(a=t&&t.deserializeDates?JSON.parse(c,f.dateTimeDeserializer):JSON.parse(c),i.result=a),i.headers=e.message.headers}catch(e){}if(s>299){let e;e=a&&a.message?a.message:c&&c.length>0?c:"Failed request: ("+s+")";let t=new d(e,s);t.result=i.result,o(t)}else r(i)}))}}e.exports.HttpClient=f})),$e.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,n="https:"===e.protocol;return r(e)||(o=n?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})),$e.register("hEhmi",((e,t)=>{e.exports=$e("88ZfI")})),$e.register("88ZfI",(function(e,r){function o(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||ge.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",((e,r,o,n)=>{for(var i=s(r,o,n),a=0,c=t.requests.length;c>a;++a){var l=t.requests[a];if(l.host===i.host&&l.port===i.port)return t.requests.splice(a,1),void l.request.onSocket(e)}e.destroy(),t.removeSocket(e)}))}function n(e,t){var r=this;o.prototype.createSocket.call(r,e,(o=>{var n=e.request.getHeader("host"),s=i({},r.options,{socket:o,servername:n?n.replace(/:.*$/,""):e.host}),a=xe.connect(0,s);r.sockets[r.sockets.indexOf(o)]=a,t(a)}))}function s(e,t,r){return"string"==typeof e?{host:e,port:t,localAddress:r}:e}function i(e){for(var t=1,r=arguments.length;r>t;++t){var o=arguments[t];if("object"==typeof o)for(var n=Object.keys(o),s=0,i=n.length;i>s;++s){var a=n[s];void 0!==o[a]&&(e[a]=o[a])}}return e}var a,c,l,u,p,d;t(e.exports,"debug",(()=>p),(e=>p=e)),t(e.exports,"httpOverHttp",(()=>u),(e=>u=e)),t(e.exports,"httpsOverHttp",(()=>a),(e=>a=e)),t(e.exports,"httpsOverHttps",(()=>l),(e=>l=e)),t(e.exports,"httpOverHttps",(()=>c),(e=>c=e)),u=e=>{var t=new o(e);return t.request=ge.request,t},a=e=>{var t=new o(e);return t.request=ge.request,t.createSocket=n,t.defaultPort=443,t},c=e=>{var t=new o(e);return t.request=ye.request,t},l=e=>{var t=new o(e);return t.request=ye.request,t.createSocket=n,t.defaultPort=443,t},ve.inherits(o,he.EventEmitter),o.prototype.addRequest=function(e,t,r,o){var n=this,a=i({request:e},n.options,s(t,r,o));this.maxSockets>n.sockets.length?n.createSocket(a,(t=>{function r(){n.emit("free",t,a)}function o(e){n.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)})):n.requests.push(a)},o.prototype.createSocket=function(e,t){function r(r,s,i){var c;return a.removeAllListeners(),s.removeAllListeners(),200!==r.statusCode?(d("tunneling socket could not be established, statusCode=%d",r.statusCode),s.destroy(),(c=Error("tunneling socket could not be established, statusCode="+r.statusCode)).code="ECONNRESET",e.request.emit("error",c),void o.removeSocket(n)):i.length>0?(d("got illegal response body from proxy"),s.destroy(),(c=Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",c),void o.removeSocket(n)):(d("tunneling connection has established"),o.sockets[o.sockets.indexOf(n)]=s,t(s))}var o=this,n={};o.sockets.push(n);var s=i({},o.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(s.localAddress=e.localAddress),s.proxyAuth&&(s.headers=s.headers||{},s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")),d("making CONNECT request");var a=o.request(s);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(n)})),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)}))}},p=d=()=>{}}));const Ir=Sr($e("9AGbw")),Nr=Sr($e("hBwzM")),Lr=Sr(me),jr=Sr(ve);$e.register("kceBH",((e,t)=>{var r=$e("diWfV"),o=$e("8n3PT");e.exports=(e,t,n)=>{var s=t&&n||0;"string"==typeof e&&(t="binary"===e?Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||r)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var a=0;16>a;++a)t[s+a]=i[a];return t||o(i)}})),$e.register("diWfV",((e,t)=>{e.exports=()=>we.randomBytes(16)})),$e.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 Dr=Or($e("kceBH"));var kr={},Mr=kr&&kr.__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]}),Fr=kr&&kr.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),Gr=kr&&kr.__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)&&Mr(t,e,r);return Fr(t,e),t}),Ur=kr&&kr.__awaiter||((e,t,r,o)=>new(r||(r=Promise))(((n,s)=>{function i(e){try{c(o.next(e))}catch(e){s(e)}}function a(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((o=o.apply(e,t||[])).next())})));Object.defineProperty(kr,"__esModule",{value:!0}),kr.getExecOutput=kr.exec=void 0,$e.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}),n=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t}),s=e.exports&&e.exports.__awaiter||((e,t,r,o)=>new(r||(r=Promise))(((n,s)=>{function i(e){try{c(o.next(e))}catch(e){s(e)}}function a(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((o=o.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.argStringToArray=e.exports.ToolRunner=void 0;const i=n(ce),a=n(he),c=n(pe),l=n(le),u=n($e("q05Mr")),p=n($e("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 n=t?"":"[command]";if(d)if(this._isCmdFile()){n+=r;for(const e of o)n+=" "+e}else if(e.windowsVerbatimArguments){n+=`"${r}"`;for(const e of o)n+=" "+e}else{n+=this._windowsQuoteCmdArg(r);for(const e of o)n+=" "+this._windowsQuoteCmdArg(e)}else{n+=r;for(const e of o)n+=" "+e}return n}_processLineBuffer(e,t,r){try{let o=t+""+e,n=o.indexOf(i.EOL);for(;n>-1;)r(o.substring(0,n)),o=o.substring(n+i.EOL.length),n=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='"',n=!0;for(let t=e.length;t>0;t--)o+=e[t-1],n&&"\\"===e[t-1]?o+="\\":'"'===e[t-1]?(n=!0,o+='"'):n=!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 s(this,void 0,void 0,(function*(){return!p.isRooted(this.toolPath)&&(this.toolPath.includes("/")||d&&this.toolPath.includes("\\"))&&(this.toolPath=l.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield u.which(this.toolPath,!0),new Promise(((e,t)=>s(this,void 0,void 0,(function*(){this._debug("exec tool: "+this.toolPath),this._debug("arguments:");for(const e of this.args)this._debug(" "+e);const r=this._cloneExecOptions(this.options);!r.silent&&r.outStream&&r.outStream.write(this._getCommandString(r)+i.EOL);const 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 n=this._getSpawnFileName(),s=c.spawn(n,this._getSpawnArgs(r),this._getSpawnOptions(this.options,n));let a="";s.stdout&&s.stdout.on("data",(e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!r.silent&&r.outStream&&r.outStream.write(e),a=this._processLineBuffer(e,a,(e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e)}))}));let l="";if(s.stderr&&s.stderr.on("data",(e=>{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),l=this._processLineBuffer(e,l,(e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e)}))})),s.on("error",(e=>{o.processError=e.message,o.processExited=!0,o.processClosed=!0,o.CheckComplete()})),s.on("exit",(e=>{o.processExitCode=e,o.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),o.CheckComplete()})),s.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),l.length>0&&this.emit("errline",l),s.removeAllListeners(),r?t(r):e(o)})),this.options.input){if(!s.stdin)throw Error("child process missing stdin");s.stdin.end(this.options.input)}}))))}))}},e.exports.argStringToArray=e=>{function t(e){n&&'"'!==e&&(s+="\\"),s+=e,n=!1}const r=[];let o=!1,n=!1,s="";for(let i=0;e.length>i;i++){const a=e.charAt(i);'"'!==a?"\\"===a&&n?t(a):"\\"===a&&o?n=!0:" "!==a||o?t(a):s.length>0&&(r.push(s),s=""):n?t(a):o=!o}return s.length>0&&r.push(s.trim()),r};class h extends a.EventEmitter{constructor(e,t){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!t)throw Error("toolPath must not be empty");this.options=e,this.toolPath=t,e.delay&&(this.delay=e.delay)}CheckComplete(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=be.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())}}}));const Br=Gr($e("fk1Ma"));kr.exec=x,kr.getExecOutput=function(e,t,r){var o,n;return Ur(this,void 0,void 0,(function*(){let s="",i="";const a=new Ee.StringDecoder("utf8"),c=new Ee.StringDecoder("utf8"),l=null===(o=null==r?void 0:r.listeners)||void 0===o?void 0:o.stdout,u=null===(n=null==r?void 0:r.listeners)||void 0===n?void 0:n.stderr,p=Object.assign(Object.assign({},null==r?void 0:r.listeners),{stdout(e){s+=a.write(e),l&&l(e)},stderr(e){i+=c.write(e),u&&u(e)}}),d=yield x(e,t,Object.assign(Object.assign({},r),{listeners:p}));return s+=a.end(),i+=c.end(),{exitCode:d,stdout:s,stderr:i}}))};var Vr={},qr=Vr&&Vr.__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]}),Hr=Vr&&Vr.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),Xr=Vr&&Vr.__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)&&qr(t,e,r);return Hr(t,e),t}),Wr=Vr&&Vr.__awaiter||((e,t,r,o)=>new(r||(r=Promise))(((n,s)=>{function i(e){try{c(o.next(e))}catch(e){s(e)}}function a(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((o=o.apply(e,t||[])).next())})));Object.defineProperty(Vr,"__esModule",{value:!0}),Vr.RetryHelper=void 0;const Yr=Xr($e("6FGZZ"));Vr.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 Wr(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;Yr.info(e.message)}const o=this.getSleepAmount();Yr.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 Wr(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,1e3*e)))}))}};class Zr extends Error{constructor(e){super("Unexpected HTTP response: "+e),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}}wr.HTTPError=Zr;const zr="win32"===process.platform,Jr="darwin"===process.platform;wr.downloadTool=function(e,t,r,o){return Pr(this,void 0,void 0,(function*(){t=t||Ar.join($(),Dr.default()),yield $r.mkdirP(Ar.dirname(t)),_r.debug("Downloading "+e),_r.debug("Destination "+t);const n=R("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),s=R("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),i=new Vr.RetryHelper(3,n,s);return yield i.execute((()=>Pr(this,void 0,void 0,(function*(){return yield function(e,t,r,o){return Pr(this,void 0,void 0,(function*(){if(Rr.existsSync(t))throw Error(`Destination file path ${t} already exists`);const n=new Ir.HttpClient("actions/tool-cache",[],{allowRetries:!1});r&&(_r.debug("set auth"),void 0===o&&(o={}),o.authorization=r);const s=yield n.get(e,o);if(200!==s.message.statusCode){const t=new Zr(s.message.statusCode);throw _r.debug(`Failed to download from "${e}". Code(${s.message.statusCode}) Message(${s.message.statusMessage})`),t}const i=jr.promisify(Lr.pipeline),a=R("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>s.message))();let c=!1;try{return yield i(a,Rr.createWriteStream(t)),_r.debug("download complete"),c=!0,t}finally{if(!c){_r.debug("download failed");try{yield $r.rmRF(t)}catch(e){_r.debug(`Failed to delete '${t}'. ${e.message}`)}}}}))}(e,t||"",r,o)}))),(e=>!(e instanceof Zr&&e.httpStatusCode&&500>e.httpStatusCode&&408!==e.httpStatusCode&&429!==e.httpStatusCode)))}))},wr.extract7z=function(e,t,r){return Pr(this,void 0,void 0,(function*(){de.ok(zr,"extract7z() not supported on current OS"),de.ok(e,'parameter "file" is required'),t=yield E(t);const o=process.cwd();if(process.chdir(t),r)try{const t=["x",_r.isDebug()?"-bb1":"-bb0","-bd","-sccUTF-8",e],n={silent:!0};yield kr.exec(`"${r}"`,t,n)}finally{process.chdir(o)}else{const r=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${Ar.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,"")}'`],n={silent:!0};try{const e=yield $r.which("powershell",!0);yield kr.exec(`"${e}"`,r,n)}finally{process.chdir(o)}}return t}))},wr.extractTar=function(e,t,r="xz"){return Pr(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'file' is required");t=yield E(t),_r.debug("Checking tar --version");let o="";yield kr.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout(e){return o+=""+e},stderr(e){return o+=""+e}}}),_r.debug(o.trim());const n=o.toUpperCase().includes("GNU TAR");let s;s=r instanceof Array?r:[r],_r.isDebug()&&!r.includes("v")&&s.push("-v");let i=t,a=e;return zr&&n&&(s.push("--force-local"),i=t.replace(/\\/g,"/"),a=e.replace(/\\/g,"/")),n&&(s.push("--warning=no-unknown-keyword"),s.push("--overwrite")),s.push("-C",i,"-f",a),yield kr.exec("tar",s),t}))},wr.extractXar=function(e,t,r=[]){return Pr(this,void 0,void 0,(function*(){let o;de.ok(Jr,"extractXar() not supported on current OS"),de.ok(e,'parameter "file" is required'),t=yield E(t),o=r instanceof Array?r:[r],o.push("-x","-C",t,"-f",e),_r.isDebug()&&o.push("-v");const n=yield $r.which("xar",!0);var s;return yield kr.exec(`"${n}"`,(s=o,Array.from(new Set(s)))),t}))},wr.extractZip=function(e,t){return Pr(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'file' is required");return t=yield E(t),zr?yield function(e,t){return Pr(this,void 0,void 0,(function*(){const r=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),o=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),n=yield $r.which("pwsh",!1);if(n){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(" ")];_r.debug("Using pwsh at path: "+n),yield kr.exec(`"${n}"`,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 $r.which("powershell",!0);_r.debug("Using powershell at path: "+t),yield kr.exec(`"${t}"`,e)}}))}(e,t):yield function(e,t){return Pr(this,void 0,void 0,(function*(){const r=yield $r.which("unzip",!0),o=[e];_r.isDebug()||o.unshift("-q"),o.unshift("-o"),yield kr.exec(`"${r}"`,o,{cwd:t})}))}(e,t),t}))},wr.cacheDir=function(e,t,r,o){return Pr(this,void 0,void 0,(function*(){if(r=Nr.clean(r)||r,o=o||Tr.arch(),_r.debug(`Caching tool ${t} ${r} ${o}`),_r.debug("source dir: "+e),!Rr.statSync(e).isDirectory())throw Error("sourceDir is not a directory");const n=yield b(t,r,o);for(const t of Rr.readdirSync(e)){const r=Ar.join(e,t);yield $r.cp(r,n,{recursive:!0})}return S(t,r,o),n}))},wr.cacheFile=function(e,t,r,o,n){return Pr(this,void 0,void 0,(function*(){if(o=Nr.clean(o)||o,n=n||Tr.arch(),_r.debug(`Caching tool ${r} ${o} ${n}`),_r.debug("source file: "+e),!Rr.statSync(e).isFile())throw Error("sourceFile is not a file");const s=yield b(r,o,n),i=Ar.join(s,t);return _r.debug("destination file "+i),yield $r.cp(e,i),S(r,o,n),s}))},wr.find=(e,t,r)=>{if(!e)throw Error("toolName parameter is required");if(!t)throw Error("versionSpec parameter is required");r=r||Tr.arch(),P(t)||(t=O(w(e,r),t));let o="";if(t){t=Nr.clean(t)||"";const n=Ar.join(_(),e,t,r);_r.debug("checking cache: "+n),Rr.existsSync(n)&&Rr.existsSync(n+".complete")?(_r.debug(`Found tool in cache ${e} ${t} ${r}`),o=n):_r.debug("not found")}return o},wr.findAllVersions=w,wr.getManifestFromRepo=function(e,t,r,o="master"){return Pr(this,void 0,void 0,(function*(){let n=[];const s=`https://api.github.com/repos/${e}/${t}/git/trees/${o}`,i=new Ir.HttpClient("tool-cache"),a={};r&&(_r.debug("set auth"),a.authorization=r);const c=yield i.getJson(s,a);if(!c.result)return n;let l="";for(const e of c.result.tree)if("versions-manifest.json"===e.path){l=e.url;break}a.accept="application/vnd.github.VERSION.raw";let u=yield(yield i.get(l,a)).readBody();if(u){u=u.replace(/^\uFEFF/,"");try{n=JSON.parse(u)}catch(e){_r.debug("Invalid json")}}return n}))},wr.findFromManifest=function(e,t,r,o=Tr.arch()){return Pr(this,void 0,void 0,(function*(){return yield Cr._findMatch(e,t,r,o)}))},wr.isExplicitVersion=P,wr.evaluateVersions=O,Re=$e("6FGZZ");var Kr=$e("ju11K"),Qr=$e("5M2Mq"),eo=(Re=$e("6FGZZ"),{});const{Worker:to}=(()=>{try{return $e68279e3338bc371$import$ad18b0afc1a10da7}catch(e){return{}}})();let ro,oo=0;const no=new Map,so=(e,t,r)=>new Promise(((o,n)=>{const s=oo++;no.set(s,{resolve:o,reject:n}),void 0===ro&&(ro=new to(le.join(__dirname,"thread.js")),ro.on("message",(e=>{const t=no.get(e.id);no.delete(e.id),0===no.size&&ro.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))})),ro.on("error",(e=>{throw e}))),ro.ref(),ro.postMessage({id:s,method:e,args:t},r)})),io=(e,t={})=>{let r=t.encoding||"hex";"buffer"===r&&(r=void 0);const o=we.createHash(t.algorithm||"sha512"),n=e=>{o.update(e,"string"==typeof e?"utf8":void 0)};return Array.isArray(e)?e.forEach(n):n(e),o.digest(r)};io.stream=(e={})=>{let t=e.encoding||"hex";"buffer"===t&&(t=void 0);const r=we.createHash(e.algorithm||"sha512");return r.setEncoding(t),r},io.fromStream=async(e,t={})=>{if(!Gt(e))throw new TypeError("Expected a stream");return new Promise(((r,o)=>{e.on("error",o).pipe(io.stream(t)).on("error",o).on("finish",(function(){r(this.read())}))}))},void 0===to?(io.fromFile=async(e,t)=>io.fromStream(ue.createReadStream(e),t),io.async=async(e,t)=>io(e,t)):(io.fromFile=async(e,{algorithm:t="sha512",encoding:r="hex"}={})=>{const o=await so("hashFile",[t,e]);return"buffer"===r?Buffer.from(o):Buffer.from(o).toString(r)},io.async=async(e,{algorithm:t="sha512",encoding:r="hex"}={})=>{"buffer"===r&&(r=void 0);const o=await so("hash",[t,e]);return void 0===r?Buffer.from(o):Buffer.from(o).toString(r)}),io.fromFileSync=(e,t)=>io(ue.readFileSync(e),t),eo=io,Re=$e("6FGZZ"),Re=$e("6FGZZ");var ao=$e("hBwzM");const co="win32"===process.platform,lo="linux"===process.platform,uo=["x86","x64"],po=["win32","win64"];ao=$e("hBwzM");const ho=(Re=$e("6FGZZ")).getInput("token"),fo=ho&&"GITHUB.COM"===new URL(process.env.GITHUB_SERVER_URL||"https://github.com").hostname.toUpperCase()?"token "+ho:void 0,mo="https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json";Re=$e("6FGZZ"),Re=$e("6FGZZ"),ao=$e("hBwzM");var vo=$e("9AGbw"),go=(ao=$e("hBwzM"),Re=$e("6FGZZ"),$e("1wyqe"));let yo,xo;Re=$e("6FGZZ"),Kr=$e("ju11K");var wo=$e("k3zcS"),Eo=$e("q05Mr");const bo=(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"]),So=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"]),Po=new Map([["12.0.1","12.0.1-rc4"]]),Oo={"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"},_o=new Set(["10.0.1"]);var $o;Re=$e("6FGZZ"),$e.register("jJT7R",((e,r)=>{function o(e){return-1!=["PATH","INCLUDE","LIB","LIBPATH"].indexOf(e.toUpperCase())}function n(e,t,r,n,s){if("win32"!=Se.platform)return void i.info("This is not a Windows virtual environment, bye!");Se.env.PATH+=le.delimiter+u;let p={win32:"x86",win64:"x64",x86_64:"x64","x86-64":"x64"};e.toLowerCase()in p&&(e=p[e.toLowerCase()]);var d=[e];"true"==n&&d.push("uwp"),t&&d.push(t),r&&d.push("-vcvars_ver="+r),"true"==s&&d.push("-vcvars_spectre_libs=spectre");const h=`"${(()=>{let e=(e=>{try{return(""+pe.execSync("vswhere -products * -latest -prerelease -property installationPath")).trim()+"\\VC\\Auxiliary\\Build\\vcvarsall.bat"}catch(e){i.warning("vswhere failed: "+e)}return null})();if(e&&ue.existsSync(e))return i.info("Found with vswhere: "+e),e;i.info("Not found with vswhere");for(const t of l)for(const r of c)if(e=`${a}\\Microsoft Visual Studio\\${t}\\${r}\\VC\\Auxiliary\\Build\\vcvarsall.bat`,i.info("Trying standard location: "+e),ue.existsSync(e))return i.info("Found standard location: "+e),e;if(i.info("Not found in standard locations"),e=a+"\\Microsoft Visual C++ Build Tools\\vcbuildtools.bat",ue.existsSync(e))return i.info("Found VS 2015: "+e),e;throw i.info("Not found in VS 2015 location: "+e),Error("Microsoft Visual Studio not found")})()}" ${d.join(" ")}`;i.debug("vcvars command-line: "+h);const f=(""+pe.execSync(`set && cls && ${h} && cls && set`,{shell:"cmd"})).split("\f"),m=f[0].split("\r\n"),v=f[1].split("\r\n"),g=f[2].split("\r\n"),y=v.filter((e=>!(!e.match(/^\[ERROR.*\]/)||e.match(/Error in script usage. The correct usage is:$/))));if(y.length>0)throw Error("invalid parameters\r\n"+y.join("\r\n"));let x={};for(let e of m){const[t,r]=e.split("=");x[t]=r}i.startGroup("Environment variables");for(let e of g){if(!e.includes("="))continue;let[t,r]=e.split("=");r!==x[t]&&(i.info("Setting "+t),o(t)&&(r=r.split(";").filter(((e,t,r)=>r.indexOf(e)===t)).join(";")),i.exportVariable(t,r))}i.endGroup(),i.info("Configured Developer Command Prompt")}var s;t(e.exports,"setupMSVCDevCmd",(()=>s),(e=>s=e));var i=$e("k2PtG");const a=Se.env["ProgramFiles(x86)"],c=["Enterprise","Professional","Community"],l=["2019","2017"],u=a+"\\Microsoft Visual Studio\\Installer";s=n;try{n(i.getInput("arch"),i.getInput("sdk"),i.getInput("toolset"),i.getInput("uwp"),i.getInput("spectre"))}catch(e){i.setFailed("Could not setup Developer Command Prompt: "+e.message)}})),$e.register("k2PtG",(function(e,t){"use strict";function r(e){a.issue("error",e instanceof Error?""+e:e)}function o(e){a.issue("group",e)}function n(){a.issue("endgroup")}var s=e.exports&&e.exports.__awaiter||((e,t,r,o)=>new(r||(r=Promise))(((n,s)=>{function i(e){try{c(o.next(e))}catch(e){s(e)}}function a(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((o=o.apply(e,t||[])).next())}))),i=e.exports&&e.exports.__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(e.exports,"__esModule",{value:!0});var a=$e("lTVmt"),c=$e("48DC3"),l=$e("3tRAC");const u=i(ce),p=i(le);var d,h;(h=d=e.exports.ExitCode||(e.exports.ExitCode={}))[h.Success=0]="Success",h[h.Failure=1]="Failure",e.exports.exportVariable=(e,t)=>{const r=l.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV){const t="_GitHubActionsFileCommandDelimeter_";c.issueCommand("ENV",`${e}<<${t}${u.EOL}${r}${u.EOL}${t}`)}else a.issueCommand("set-env",{name:e},r)},e.exports.setSecret=e=>{a.issueCommand("add-mask",{},e)},e.exports.addPath=e=>{process.env.GITHUB_PATH?c.issueCommand("PATH",e):a.issueCommand("add-path",{},e),process.env.PATH=`${e}${p.delimiter}${process.env.PATH}`},e.exports.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()},e.exports.setOutput=(e,t)=>{a.issueCommand("set-output",{name:e},t)},e.exports.setCommandEcho=e=>{a.issue("echo",e?"on":"off")},e.exports.setFailed=e=>{process.exitCode=d.Failure,r(e)},e.exports.isDebug=()=>"1"===process.env.RUNNER_DEBUG,e.exports.debug=e=>{a.issueCommand("debug",{},e)},e.exports.error=r,e.exports.warning=e=>{a.issue("warning",e instanceof Error?""+e:e)},e.exports.info=e=>{process.stdout.write(e+u.EOL)},e.exports.startGroup=o,e.exports.endGroup=n,e.exports.group=function(e,t){return s(this,void 0,void 0,(function*(){let r;o(e);try{r=yield t()}finally{n()}return r}))},e.exports.saveState=(e,t)=>{a.issueCommand("save-state",{name:e},t)},e.exports.getState=e=>process.env["STATE_"+e]||""})),$e.register("lTVmt",(function(e,t){"use strict";function r(e,t,r){const o=new i(e,t,r);process.stdout.write(""+o+n.EOL)}var o=e.exports&&e.exports.__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(e.exports,"__esModule",{value:!0});const n=o(ce);var s=$e("3tRAC");e.exports.issueCommand=r,e.exports.issue=(e,t="")=>{r(e,{},t)};class i{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 n=this.properties[o];n&&(r?r=!1:e+=",",e+=`${o}=${t=n,s.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}var t;return e+="::"+(e=>s.toCommandValue(this.message).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A"))(),e}}})),$e.register("3tRAC",((e,t)=>{"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toCommandValue=e=>null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e)})),$e.register("48DC3",((e,t)=>{"use strict";var r=e.exports&&e.exports.__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(e.exports,"__esModule",{value:!0});const o=r(ue),n=r(ce);var s=$e("3tRAC");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(!o.existsSync(r))throw Error("Missing file at path: "+r);o.appendFileSync(r,`${s.toCommandValue(t)}${n.EOL}`,{encoding:"utf8"})}}));const Ro=ce.homedir();$o=e=>{if("string"!=typeof e)throw new TypeError("Expected a string, got "+typeof e);return Ro?e.replace(/^~(?=$|\/|\\)/,Ro):e};var Co=$e("1JJDJ");const To={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"};Re=$e("6FGZZ"),wo=$e("k3zcS"),Qr=$e("5M2Mq"),Re=$e("6FGZZ");const Ao={cmake(e,t,r){return C("cmake",e,T,t)},ninja(e,t,r){return C("ninja",e,Q,t)},python:U,conan(e,t,r){return q("conan",e)},meson(e,t,r){return q("meson",e)},gcovr(e,t,r){return q("gcovr",e)},async opencppcoverage(e,t,r){if("win32"!==process.platform)return;await y("opencppcoverage",e);const o="C:/Program Files/OpenCppCoverage";return await v(o),{binDir:o}},llvm:J,gcc:oe,choco:g,brew:o,ccache(e,t,r){switch(process.platform){case"win32":return y("ccache",e);case"darwin":return m("ccache",e);case"linux":return f("ccache",e);default:throw Error("Unsupported platform")}},async doxygen(e,t,r){switch(process.platform){case"win32":{await y("doxygen.install",e),await y("graphviz",e),await v("C:/Program Files/Graphviz/bin");const t="C:/Program Files/doxygen/bin";return await v(t),{binDir:t}}case"darwin":return m("doxygen",e),m("graphviz",e);case"linux":return await f("doxygen",e),f("graphviz",e);default:throw Error("Unsupported platform")}},async cppcheck(e,t,r){switch(process.platform){case"win32":{await y("cppcheck",e);const t="C:/Program Files/Cppcheck";return await v(t),{binDir:t}}case"darwin":return m("cppcheck",e);case"linux":return f("cppcheck",e);default:throw Error("Unsupported platform")}},msvc:K},Io=["choco","brew","python","cmake","ninja","conan","meson","gcovr","opencppcoverage","ccache","doxygen","cppcheck","llvm","gcc","msvc"],No=["compiler","architecture",...Io];se(process.argv).then((e=>{process.exitCode=e})).catch((e=>{ne("main() panicked!"),ne(e),process.exitCode=1})); +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,n)=>{r(e,t||{},((e,t)=>{e?n(e):o(t)}))}))}Ne(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 Me)return{binDir:Me};const n=e(Te).sync("brew",{nothrow:!0});return null!==n?(Me=ue.dirname(n),{binDir:Me}):(de.execFileSync('/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"',{stdio:"inherit"}),Me="/usr/local/bin/",{binDir:Me})}function n(e,t){const r=e.options.env||process.env,o=process.cwd(),n=null!=e.options.cwd,s=n&&void 0!==process.chdir&&!process.chdir.disabled;if(s)try{process.chdir(e.options.cwd)}catch(e){}let i;try{i=Te.sync(e.command,{path:r[Ve({env:r})],pathExt:t?ue.delimiter:void 0})}catch(e){}finally{s&&process.chdir(o)}return i&&(i=ue.resolve(n?e.options.cwd:"",i)),i}function s(e,t){return Object.assign(Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function i(e,t){return Qe&&1===e&&!t.file?s(t.original,"spawn"):null}function a(e,t,r){const o=Be(e,t,r),n=de.spawn(o.command,o.args,o.options);return Ke.hookChildProcess(n,o),n}function c(){At&&(At=!1,$t.forEach((e=>{try{process.removeListener(e,Tt[e])}catch(e){}})),process.emit=Nt,process.reallyExit=It,_t.count-=1)}function l(e,t,r){_t.emitted[e]||(_t.emitted[e]=!0,_t.emit(e,t,r))}function u(){At||(At=!0,_t.count+=1,$t=$t.filter((e=>{try{return process.on(e,Tt[e]),!0}catch(e){return!1}})),process.emit=d,process.reallyExit=p)}function p(e){process.exitCode=e||0,l("exit",process.exitCode,null),l("afterexit",process.exitCode,null),It.call(process,process.exitCode)}function d(e,t){if("exit"===e){void 0!==t&&(process.exitCode=t);var r=Nt.apply(this,arguments);return l("exit",process.exitCode,null),l("afterexit",process.exitCode,null),r}return Nt.apply(this,arguments)}async function h(e,t){if(!e)throw Error("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:r}=t,o=Vt(t);return await new Promise(((t,n)=>{const s=e=>{e&&o.getBufferedLength()<=Ht.MAX_LENGTH&&(e.bufferedData=o.getBufferedValue()),n(e)};(async()=>{try{await Wt(e,o),t()}catch(e){s(e)}})(),o.on("data",(()=>{o.getBufferedLength()>r&&s(new Yt)}))})),o.getBufferedValue()}function f(t,r){return void 0!==gr||(gr=!!process.env.CI||0===(null===(o=process.getuid)||void 0===o?void 0:o.call(process))),gr?e(Ge)("sudo",[t,...r]):e(Ge)(t,r);var o}async function m(e,t,r=!0){const o="apt-get";if("string"==typeof r&&await f("add-apt-repository",["--update","-y",r]),yr&&!0!==r||(await f(o,["update","-y"]),yr=!0),void 0!==t&&""!==t)try{await f(o,["install","-y",`${e}=${t}`])}catch{await f(o,["install","-y",`${e}-${t}`])}else await f(o,["install","-y",e]);return{binDir:"/usr/bin/"}}function v(t,r){return xr&&null!==e(Te).sync("brew",{nothrow:!0})||(o(0,0,process),xr=!0),e(Ge).sync("brew",["install",void 0!==r&&""!==r?`${t}@${r}`:t]),{binDir:"/usr/local/bin/"}}async function g(t){try{Ce.addPath(t)}catch(r){switch(Ce.error(r),process.platform){case"win32":await e(Ge)(`setx PATH=${t};%PATH%`);break;case"linux":case"darwin":await e(Ge).command(`echo "export PATH=${t}:$PATH" >> ~/.profile`),await e(Ge).command("source ~/.profile"),Ce.info(t+" was added to ~/.profile");break;default:Ce.error(`Failed to add ${t} to the percistent PATH. You should add it manually.`),process.env.PATH=`${t}${ue.delimiter}${process.env.PATH}`}}}function y(t,r,o){if("win32"!==process.platform)return;if("string"==typeof wr)return{binDir:wr};const n=e(Te).sync("choco",{nothrow:!0});if(null!==n)return wr=ue.dirname(n),{binDir:wr};e(Ge).commandSync('@"%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"');const s=e(Te).sync("choco",{nothrow:!0});return wr=null!==s?ue.dirname(s):"C:/ProgramData/Chocolatey/bin/",pe.existsSync(wr)?{binDir:wr}:void 0}async function x(t,r,o=[]){Er&&null!==e(Te).sync("choco",{nothrow:!0})||(await y(0,0,process),Er=!0),e(Ge).sync("choco",void 0!==r&&""!==r?["install","-y",t,"--version="+r,...o]:["install","-y",t,...o]);const n="C:/ProgramData/Chocolatey/bin/";return await g(n),{binDir:n}}function w(e,t,r){return Vr(this,void 0,void 0,(function*(){const o=qr.argStringToArray(e);if(0===o.length)throw Error("Parameter 'commandLine' cannot be null or empty.");const n=o[0];return t=o.slice(1).concat(t||[]),new qr.ToolRunner(n,t,r).exec()}))}function E(e,t){const r=[];t=t||Ir.arch();const o=Nr.join($(),e);if(Tr.existsSync(o)){const e=Tr.readdirSync(o);for(const n of e)if(O(n)){const e=Nr.join(o,n,t||"");Tr.existsSync(e)&&Tr.existsSync(e+".complete")&&r.push(n)}}return r}function b(e){return _r(this,void 0,void 0,(function*(){return e||(e=Nr.join(R(),Mr.default())),yield Cr.mkdirP(e),e}))}function S(e,t,r){return _r(this,void 0,void 0,(function*(){const o=Nr.join($(),e,jr.clean(t)||t,r||"");Rr.debug("destination "+o);const n=o+".complete";return yield Cr.rmRF(o),yield Cr.rmRF(n),yield Cr.mkdirP(o),o}))}function P(e,t,r){const o=Nr.join($(),e,jr.clean(t)||t,r||"");Tr.writeFileSync(o+".complete",""),Rr.debug("finished caching tool")}function O(e){const t=jr.clean(e)||"";Rr.debug("isExplicit: "+t);const r=null!=jr.valid(t);return Rr.debug("explicit? "+r),r}function _(e,t){let r="";Rr.debug(`evaluating ${e.length} versions`);for(let o=(e=e.sort(((e,t)=>jr.gt(e,t)?1:-1))).length-1;o>=0;o--){const n=e[o];if(jr.satisfies(n,t)){r=n;break}}return Rr.debug(r?"matched: "+r:"match not found"),r}function $(){const e=process.env.RUNNER_TOOL_CACHE||"";return he.ok(e,"Expected RUNNER_TOOL_CACHE to be defined"),e}function R(){const e=process.env.RUNNER_TEMP||"";return he.ok(e,"Expected RUNNER_TEMP to be defined"),e}function C(e,t){const r=Oe[e];return void 0!==r?r:t}async function T(e,t,r,o){var n,s;process.env.RUNNER_TEMP=null!==(n=process.env.RUNNER_TEMP)&&void 0!==n?n:le.tmpdir(),process.env.RUNNER_TOOL_CACHE=null!==(s=process.env.RUNNER_TOOL_CACH)&&void 0!==s?s:ue.join(le.tmpdir(),"setup_cpp","ToolCache");const{url:i,binRelativeDir:a,extractedFolderName:c,extractFunction:l}=await r(t,process.platform);try{const r=br.find(e,t);if(r){Ce.info(`${e} ${t} was found in the cache.`);const o=ue.join(r,c),n=ue.join(o,a);return await g(n),{installDir:o,binDir:n}}}catch{}const u=await ro.async(i,{algorithm:"md5"}),p=ue.join(o,u);if(!pe.existsSync(p)){Ce.info(`Download and extract ${e} ${t}`);const r=await br.downloadTool(i);await(null==l?void 0:l(r,p))}const d=ue.join(p,c),h=ue.join(d,a);return Ce.info(`Add ${h} to PATH`),await g(h),"string"==typeof process.env.RUNNER_TOOL_CACHE&&await br.cacheDir(p,e,t),{installDir:d,binDir:h}}function A(t,r){var o;const n=null!==(o=e(to)(t))&&void 0!==o?o:t,s=null!=r?r:process.platform,i=Ce.getInput("architecture")||process.arch;switch(s){case"win32":{const r=e(eo)(n,"v3.19.6");let o;o=["ia32","x86","i386","x32"].includes(i)?r?"win32-x86":"windows-i386":r?"win64-x64":"windows-x86_64";const s=`cmake-${t}-${o}`;return{binRelativeDir:"bin/",extractedFolderName:s,extractFunction:br.extractZip,url:`https://github.com/Kitware/CMake/releases/download/v${t}/${s}.zip`}}case"darwin":{const r=`cmake-${t}-${e(eo)(n,"v3.19.1")?"Darwin-x86_64":"macos-universal"}`;return{binRelativeDir:"CMake.app/Contents/bin/",extractedFolderName:r,extractFunction:br.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${t}/${r}.tar.gz`}}case"linux":{const r=e(eo)(n,"v3.19.8");let o;o=["aarch64"].includes(i)?r?"Linux-aarch64":"linux-aarch64":r?"Linux-x86_64":"linux-x86_64";const s=`cmake-${t}-${o}`;return{binRelativeDir:"bin/",extractedFolderName:s,extractFunction:br.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${t}/${s}.tar.gz`}}default:throw Error(`Unsupported platform '${s}'`)}}function I(t,r,o,n=!1){const s=ue.join(t,r),i=ue.join(t,o);e(pe).existsSync(i)||(e(pe).symlinkSync(s,i),!uo&&n&&e(pe).chmodSync(i,"755"))}function N(e){return L(e)||!!lo.validRange(e)}function L(e){return"nightly"===e}function j(e,t){const r=br.find.bind(void 0,"PyPy",e);let o=r(t);if(!o&&uo&&(o=r("x86")),!o)throw Error(`PyPy ${e} not found`);const n=ue.join(o,"bin");Ce.exportVariable("pythonLocation",uo?o:n),Ce.addPath(o),Ce.addPath(n),uo&&Ce.addPath(ue.join(o,"Scripts"));const s="pypy"+e;return Ce.setOutput("python-version",s),{impl:s,version:D(o)}}function D(e){const t=e.split(ue.sep),r=t.findIndex((e=>"PyPy"===e||"Python"===e));return t[r+1]||""}function k(e){const t=ue.join(e,"bin");return uo?e:t}function M(e){return e.replace(/(\d+\.\d+\.\d+)((?:a|b|rc))(\d*)/g,"$1-$2.$3")}function F(e){return e.files.find((e=>ho.includes(e.arch)&&fo.includes(e.platform)))}function G(e,t,r){return e.files.find((e=>e.arch===t&&e.platform===r))}function U(){return!(void 0===process.env.CI||""===process.env.CI||"false"===process.env.CI)}async function B(t,r,o){if(!U())return V("",r,o);try{if(t.startsWith("pypy-")){const r=await async function(t,r){let o,n="",s="";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-'. See README for examples and documentation.");const r=t[1];let o;if(o=t.length>2?M(t[2]):"x",!N(r)||!N(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:s,resolvedPyPyVersion:n}=((t,r,o)=>{let n="",s="",i=uo?(e=>{let t="";return ho.forEach((r=>t=t||br.find("PyPy",e,r))),t})(t):br.find("PyPy",t,o);return i&&(s=(e=>ue.basename(ue.dirname(e)))(i),n=(t=>{let r="",o=ue.join(t,"PYPY_VERSION");return e(pe).existsSync(o)&&(r=""+e(pe).readFileSync(o)),r})(i),lo.satisfies(n,r)||(i=null,n="",s="")),i||Ce.info(`PyPy version ${t} (${r}) was not found in the local cache`),{installDir:i,resolvedPythonVersion:s,resolvedPyPyVersion:n}})(i.pythonVersion,i.pypyVersion,r)),o||({installDir:o,resolvedPythonVersion:s,resolvedPyPyVersion:n}=await(async(t,r,o)=>{let n;const s=await(async()=>{const e="https://downloads.python.org/pypy/versions.json",t=new yo.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(!s||0===s.length)throw Error("No release was found in PyPy version.json");const i=((e,t,r,o)=>{const n=e.filter((e=>{const n=lo.satisfies(lo.coerce(e.python_version),t),s=L(r)&&L(e.pypy_version)||lo.satisfies(M(e.pypy_version),r),i=e.files&&(uo?(e=>e.files.some((e=>ho.includes(e.arch)&&fo.includes(e.platform))))(e):((e,t,r)=>e.files.some((e=>e.arch===t&&e.platform===r)))(e,o,process.platform));return n&&s&&i}));if(0===n.length)return null;const s=n.sort(((e,t)=>lo.compare(lo.coerce(M(t.pypy_version)),lo.coerce(M(e.pypy_version)))||lo.compare(lo.coerce(t.python_version),lo.coerce(e.python_version))))[0];return{foundAsset:uo?F(s):G(s,o,process.platform),resolvedPythonVersion:s.python_version,resolvedPyPyVersion:s.pypy_version}})(s,r,t,o);if(!i||!i.foundAsset)throw Error(`PyPy version ${r} (${t}) with arch ${o} not found`);const{foundAsset:a,resolvedPythonVersion:c,resolvedPyPyVersion:l}=i;let u=""+a.download_url;Ce.info(`Downloading PyPy from "${u}" ...`);const p=await br.downloadTool(u);Ce.info("Extracting downloaded archive..."),n=uo?await br.extractZip(p):await br.extractTar(p,void 0,"x");const d=e(pe).readdirSync(n)[0],h=ue.join(n,d);let f=h;L(l)||(f=await br.cacheDir(h,"PyPy",c,o)),((t,r)=>{const o=ue.join(t,"PYPY_VERSION");e(pe).writeFileSync(o,r)})(f,l);const m=k(f);return await(async(e,t)=>{const r=lo.coerce(t),o=lo.major(r),n=2===o?"":"3";let s=uo?".exe":"";Ce.info("Creating symlinks..."),I(e,`pypy${n}${s}`,`python${o}${s}`,!0),I(e,`pypy${n}${s}`,"python"+s,!0)})(m,c),await(async e=>{Ce.info("Installing and updating pip");const t=ue.join(e,"python");await Fr.exec(t+" -m ensurepip"),await Fr.exec(e+"/python -m pip install --ignore-installed pip")})(m),{installDir:f,resolvedPythonVersion:c,resolvedPyPyVersion:l}})(i.pypyVersion,i.pythonVersion,r));const a=ue.join(o,uo?"Scripts":"bin"),c=k(o);return Ce.exportVariable("pythonLocation",c),Ce.addPath(c),Ce.addPath(a),{resolvedPyPyVersion:n,resolvedPythonVersion:s}}(t,o);Ce.info(`Successfully setup PyPy ${r.resolvedPyPyVersion} with Python (${r.resolvedPythonVersion})`)}else{const e=await(async(e,t)=>{switch(e.toUpperCase()){case"PYPY2":return j("2",t);case"PYPY3":return j("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;Ce.debug(`Semantic version spec of ${e} is ${r}`);let n=br.find("Python",r,t);if(!n){Ce.info(`Version ${r} was not found in the local cache`);const e=await(async(e,t)=>{const r=await br.getManifestFromRepo("actions","python-versions",vo,"main");return await br.findFromManifest(e,!1,r,t)})(r,t);e&&e.files&&e.files.length>0&&(Ce.info(`Version ${r} is available for downloading`),await(async e=>{const t=e.files[0].download_url;Ce.info(`Download from "${t}"`);const r=await br.downloadTool(t,void 0,vo);let o;Ce.info("Extract downloaded archive"),o=uo?await br.extractZip(r):await br.extractTar(r),Ce.info("Execute installation script"),await(async e=>{const t={cwd:e,env:{...process.env,...po&&{LD_LIBRARY_PATH:ue.join(e,"lib")}},silent:!0,listeners:{stdout(e){Ce.info((""+e).trim())},stderr(e){Ce.error((""+e).trim())}}};uo?await Fr.exec("powershell",["./setup.ps1"],t):await Fr.exec("bash",["./setup.sh"],t)})(o)})(e),n=br.find("Python",r,t))}if(!n)throw Error([`Version ${e} with arch ${t} not found`,"The list of all available versions can be found here: "+go].join(le.EOL));if(Ce.exportVariable("pythonLocation",n),po){const e=process.env.LD_LIBRARY_PATH?":"+process.env.LD_LIBRARY_PATH:"",t=ue.join(n,"lib");e.split(":").includes(t)||Ce.exportVariable("LD_LIBRARY_PATH",t+e)}if(Ce.addPath(n),Ce.addPath((e=>ue.join(e,uo?"Scripts":"bin"))(n)),uo){const e=ue.basename(ue.dirname(n)),t=lo.major(e),r=lo.minor(e),o=ue.join(process.env.APPDATA||"","Python",`Python${t}${r}`,"Scripts");Ce.addPath(o)}const s=D(n);return Ce.setOutput("python-version",s),{impl:"CPython",version:s}}(e,t)}})(t,o);Ce.info(`Successfully setup ${e.impl} (${e.version})`)}const r=ue.join("setup-pthon",".github");return void Ce.info("##[add-matcher]"+ue.join(r,"python.json"))}catch(e){return V(t,r,o)}}async function V(t,r,o){switch(process.platform){case"win32":{const n=await e(ro).async(t+o,{algorithm:"md5"}),s=ue.join(r,n,"python"),i=s;return await x("python3",t,["/InstallDir:"+s]),Ce.info(`Add ${i} to PATH`),await g(i),{installDir:s,binDir:i}}case"darwin":return v("python3",t);case"linux":{const e=await m("python3",t);return await m("python3-pip"),e}default:throw Error("Unsupported platform")}}function q(e){return new Promise((t=>{xe.get(e,(e=>{t(void 0!==e.statusCode&&e.statusCode>=200&&399>=e.statusCode)}))}))}async function H(t,r){if(void 0===wo&&(null!==e(Te).sync("pip3",{nothrow:!0})?wo="pip3":null!==e(Te).sync("pip",{nothrow:!0})&&await(async(t,r,o=/v?(\d\S*)/)=>{const n=await(async(e,t=/v?(\d\S*)/)=>{try{var r,o;const{stderr:s,stdout:i}=await Fr.getExecOutput(e,["--version"]);var n;return null!==(n=null===(r=i.match(t))||void 0===r?void 0:r[1])&&void 0!==n?n:null===(o=s.match(t))||void 0===o?void 0:o[1]}catch(e){return void console.error(e)}})(t,o);return"string"==typeof n&&"string"==typeof r&&""!==n&&""!==r&&-1!==e(xo)(n,r)})("python","3.0.0")?wo="pip":(await B("3.x","",process.arch),wo="pip3")),e(Ge).sync(wo,["install",void 0!==r&&""!==r?`${t}==${r}`:t]),void 0===Eo){if("linux"===process.platform)Eo="/home/runner/.local/bin/";else if("darwin"===process.platform)Eo="/usr/local/bin/";else try{Eo=ue.join((await Fr.getExecOutput('python3 -c "import sys;print(sys.base_exec_prefix);"')).stdout.trim(),"Scripts")}catch{Eo=ue.join((await Fr.getExecOutput('python -c "import sys;print(sys.base_exec_prefix);"')).stdout.trim(),"Scripts")}Ce.info(Eo+" to PATH"),await g(Eo)}return{binDir:Eo}}async function X(t,r){return await e(Ge)("7z",["x",t,"-o"+r]),r}async function W(t,r,o=["--strip-components=1"]){try{await So.mkdirP(r)}catch{}return await e(Ge)("tar",["xf",t,"-C",r,...o]),r}function Y(e,t,r){return`https://github.com/llvm/llvm-project/releases/download/llvmorg-${e}/${t}${e}${r}`}function Z(e,t,r){return`https://releases.llvm.org/${e}/${t}${e}${r}`}function z(t,r){switch(t){case"darwin":return(t=>{if(Oo.has(t))return null;const r="clang+llvm-",o=`-x86_64${"9.0.0"===t?"-darwin-apple":"-apple-darwin"}.tar.xz`;return e(eo)(t,"9.0.1")?Z(t,r,o):Y(t,r,o)})(r);case"linux":return(t=>{let r=t;const o=_o.get(r);let n;void 0!==o&&(r=o),n=r.includes("ubuntu")?r:""!==r&&r in $o?$o[r]:$o["12.0.1-rc4"];const s="clang+llvm-",i="5.0.0"===r?`-linux-x86_64${n}.tar.xz`:`-x86_64-linux-gnu${n}.tar.xz`;return e(eo)(r,"9.0.1")?Z(r,s,i):Y(r,s,i)})(r);case"win32":return(async t=>{if(Ro.has(t))return null;const r="LLVM-",o=e(eo)(t,"3.7.0")?"-win32.exe":"-win64.exe",n=e(eo)(t,"9.0.1");let s,i=!1;return n&&(s=Z(t,r,o),await q(s)||(i=!0)),!i&&n||(s=Y(t,r,o)),s})(r);default:return null}}async function J(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 n 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,n);if(null!==e&&await q(e))return[n,e]}throw Error(`Unsupported target! (platform='${t}', version='${r}')`)})(Po,t,e,z);return Ce.setOutput("version",r),{url:o,extractedFolderName:"",binRelativeDir:"bin",extractFunction:"win32"===t?X:W}}async function K(t,r,o){let n=r;""!==n&&void 0!==n||(n="win32"===process.platform?"C:/Program Files/LLVM":"./llvm"),n=ue.resolve(n);const s=await T("llvm",t,J,n),i=ue.join(n,"lib");var a;const c=null!==(a=process.env.LD_LIBRARY_PATH)&&void 0!==a?a:"";var l;const u=null!==(l=process.env.DYLD_LIBRARY_PATH)&&void 0!==l?l:"";Ce.exportVariable("LLVM_PATH",n);const p=e(bo)(t);if(Ce.exportVariable("LD_LIBRARY_PATH",`${i}${ue.delimiter}${c}`),Ce.exportVariable("DYLD_LIBRARY_PATH",`${i}${ue.delimiter}${u}`),Ce.exportVariable("CPATH",`${n}/lib/clang/${p}/include`),Ce.exportVariable("LDFLAGS",`-L${n}/lib`),Ce.exportVariable("CPPFLAGS",`-I${n}/include`),Ce.exportVariable("CC",n+"/bin/clang"),Ce.exportVariable("CXX",n+"/bin/clang++"),Ce.exportVariable("LIBRARY_PATH",n+"/lib"),"darwin"===process.platform)try{const e=await Fr.getExecOutput("xcrun --sdk macosx --show-sdk-path"),t=e.stdout||e.stderr;pe.existsSync(t)&&Ce.exportVariable("SDKROOT",t)}catch(e){Ce.error(e)}return s}async function Q(e,t,r,o,n,s){if("win32"!==process.platform)return;let i,a;try{"2015"===e?(i="14.0.25420.1",await x("visualcpp-build-tools",i,["--ignore-dependencies","--params","'/IncludeRequired'"]),a="C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140",pe.existsSync(a)&&Ce.exportVariable("VCTargetsPath",a)):"2017"===e?(i="14.16",await x("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 x("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){Ce.error(e)}void 0!==a&&pe.existsSync(a)&&Ce.exportVariable("VCTargetsPath",a);const{setupMSVCDevCmd:c}=Re("jJT7R");c((e=>{switch(e){case"x32":case"32":case"ia32":return"x86";case"64":return"x64";default:return e}})(r),o,i,n,s)}function ee(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:br.extractZip,url:`https://github.com/ninja-build/ninja/releases/download/v${e}/ninja-${r}.zip`}}function te(e){return null==e?[]:Array.isArray(e)?e:[e]}function re(e,t,r,o){var n,s=e[t],i=~o.string.indexOf(t)?null==r||!0===r?"":r+"":"boolean"==typeof r?r:~o.boolean.indexOf(t)?"false"!==r&&("true"===r||(e._.push(0*(n=+r)==0?n:r),!!r)):0*(n=+r)==0?n:r;e[t]=null==s?i:Array.isArray(s)?s.concat(i):[s,i]}function oe(e,t){return"true"===t||void 0===t&&e in Io?Io[e]:null!=t?t:""}async function ne(t,r,o){let n;switch(process.platform){case"win32":"arm"!==o&&"arm64"!==o||await x("gcc-arm-embedded",t),await x("mingw",t),"x64"===o&&pe.existsSync("C:/tools/mingw64/bin")?(n="C:/tools/mingw64/bin",await g(n)):"ia32"===o&&pe.existsSync("C:/tools/mingw32/bin")?(n="C:/tools/mingw32/bin",await g(n)):pe.existsSync("C:/ProgramData/Chocolatey/bin/g++.exe")&&(n="C:/ProgramData/Chocolatey/bin/");break;case"darwin":n=v("gcc",t).binDir;break;case"linux":"x64"===o?n=(await m("g++",t,"ppa:ubuntu-toolchain-r/test")).binDir:(Ce.info(`Install g++-multilib because gcc for ${o} was requested`),n=(await m("g++-multilib",t,"ppa:ubuntu-toolchain-r/test")).binDir);break;default:throw Error("Unsupported platform for "+o)}if(void 0!==n){var s;const r=e(bo)(null!==(s=e(to)(t))&&void 0!==s?s:t);return"win32"===process.platform?(Ce.exportVariable("CC",n+"/gcc"),Ce.exportVariable("CXX",n+"/g++")):(Ce.exportVariable("CC",`${n}/gcc-${r}`),Ce.exportVariable("CXX",`${n}/g++-${r}`)),{binDir:n}}}function se(e){return U()?Ce.error(e):console.log(`${e}`)}async function ie(t){U()||(process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS="true");const r=((e,t)=>{var r,o,n,s,i,a={_:[]},c=0,l=0,u=0,p=(e=e||[]).length;const d=void 0!==(t=t||{}).alias,h=void 0!==t.unknown,f=void 0!==t.default;if(t.alias=t.alias||{},t.string=te(t.string),t.boolean=te(t.boolean),d)for(r in t.alias)for(o=t.alias[r]=te(t.alias[r]),c=0;o.length>c;c++)(t.alias[o[c]]=o.concat(r)).splice(c,1);for(c=t.boolean.length;c-- >0;)for(l=(o=t.alias[t.boolean[c]]||[]).length;l-- >0;)t.boolean.push(o[l]);for(c=t.string.length;c-- >0;)for(l=(o=t.alias[t.string[c]]||[]).length;l-- >0;)t.string.push(o[l]);if(f)for(r in t.default)if(s=typeof t.default[r],o=t.alias[r]=t.alias[r]||[],void 0!==t[s])for(t[s].push(r),c=0;o.length>c;c++)t[s].push(o[c]);const m=h?Object.keys(t.alias):[];for(c=0;p>c;c++){if("--"===(n=e[c])){a._=a._.concat(e.slice(++c));break}for(l=0;n.length>l&&45===n.charCodeAt(l);l++);if(0===l)a._.push(n);else if("no-"===n.substring(l,l+3)){if(s=n.substring(l+3),h&&!~m.indexOf(s))return t.unknown(n);a[s]=!1}else{for(u=l+1;n.length>u&&61!==n.charCodeAt(u);u++);for(s=n.substring(l,u),i=n.substring(++u)||c+1===p||45===(""+e[c+1]).charCodeAt(0)||e[++c],o=2===l?[s]:s,u=0;o.length>u;u++){if(s=o[u],h&&!~m.indexOf(s))return t.unknown("-".repeat(l)+s);re(a,s,o.length>u+1||i,t)}}}if(f)for(r in t.default)void 0===a[r]&&(a[r]=t.default[r]);if(d)for(r in a)for(o=t.alias[r]||[];o.length>0;)a[o.shift()]=a[r];return a})(t,{string:jo,default:Object.fromEntries(jo.map((e=>[e,ae(e)]))),alias:{h:"help"},boolean:"help"});var o;r.help&&Ce.info('\nsetup_cpp [options]\nsetup_cpp --compiler llvm --cmake true --ninja true --ccache true --conan "1.40.1"\n\nInstall all the tools required for building and testing C++/C projects.\n\n--architecture\t the cpu architecture to install the tools for. By default it uses the current CPU architecture.\n--compiler\t the to install.\n \t You can specify the version instead of specifying just the name e.g: --compiler \'llvm-11\'\n\n--tool_name\t pass "true" or pass the you would like to install for this tool.\n\nAll the available tools:\n--llvm\n--gcc\n--cmake\n--ninja\n--meson\n--conan\n--ccache\n--cppcheck\n--doxygen\n--gcovr\n--opencppcoverage\n--python\n--choco\n--brew\n ');const n=null!==(o=r.architecture)&&void 0!==o?o:process.arch;var s;const i=null!==(s=process.env.SETUP_CPP_DIR)&&void 0!==s?s:e(Co)("~/setup_cpp"),a=[],c=[];for(const e of Lo){const t=r[e];if(void 0!==t){const r=No[e];try{const o=await r(oe(e,t),i,n);a.push(void 0!==o?ce(e,o):e+" was successfully installed")}catch(t){se(t),c.push(e+" failed to install")}}}const l=r.compiler;try{if(void 0!==l){const t=l.split("-"),r=t[0];let o;if(1 in t){const r=t[1];null!==e(Ao)(r)?o=r:se(`Invalid version ${r} used for the compiler. Using the default version...`)}switch(r){case"llvm":case"clang":case"clang++":await K(oe("llvm",o),i);break;case"gcc":case"mingw":case"cygwin":case"msys":await ne(oe("gcc",o),0,n);break;case"cl":case"msvc":case"msbuild":case"vs":case"visualstudio":case"visualcpp":case"visualc++":await Q(oe("msvc",o),0,n);break;default:c.push("Unsupported compiler "+r)}}}catch(e){se(e),c.push("Failed to install the "+l)}return a.forEach((e=>{return t=e,U()?Ce.info(t):console.log(`${t}`);var t})),c.forEach((e=>se(e))),Ce.info("setup_cpp finished"),0===c.length?0:1}function ae(e){const t=Ce.getInput(e.toLowerCase());if("false"!==t&&""!==t)return t}function ce(e,t){let r=e+" was successfully installed";return"installDir"in t&&(r+="\nThe installation direcotry is "+t.installDir),""!==t.binDir&&(r+="\nThe binary direcotry is "+t.binDir),r}var le=require("os"),ue=require("path"),pe=require("fs"),de=require("child_process"),he=require("assert"),fe=require("events"),me=require("buffer"),ve=require("stream"),ge=require("util"),ye=require("http"),xe=require("https");require("net");var we=require("tls"),Ee=require("crypto"),be=require("string_decoder"),Se=require("timers"),Pe=require("process"),Oe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},_e={},$e={},Re=Oe.parcelRequire810d;null==Re&&((Re=e=>{if(e in _e)return _e[e].exports;if(e in $e){var t=$e[e];delete $e[e];var r={id:e,exports:{}};return _e[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)=>{$e[e]=t},Oe.parcelRequire810d=Re),t(module.exports,"main",(()=>ie)),Re.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 n(e){u.issue("group",e)}function s(){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}),c=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&i(t,e,r);return a(t,e),t}),l=e.exports&&e.exports.__awaiter||((e,t,r,o)=>new(r||(r=Promise))(((n,s)=>{function i(e){try{c(o.next(e))}catch(e){s(e)}}function a(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((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=Re("eOxkI"),p=Re("85a1M"),d=Re("lK3O3");const h=c(le),f=c(ue);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=n,e.exports.endGroup=s,e.exports.group=function(e,t){return l(this,void 0,void 0,(function*(){let r;n(e);try{r=yield t()}finally{s()}return r}))},e.exports.saveState=(e,t)=>{u.issueCommand("save-state",{name:e},t)},e.exports.getState=e=>process.env["STATE_"+e]||""})),Re.register("eOxkI",(function(e,t){"use strict";function r(e,t,r){const o=new c(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]}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),s=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issue=e.exports.issueCommand=void 0;const i=s(le);var a=Re("lK3O3");e.exports.issueCommand=r,e.exports.issue=(e,t="")=>{r(e,{},t)};class c{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r}toString(){let e="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(const o in this.properties)if(this.properties.hasOwnProperty(o)){const n=this.properties[o];n&&(r?r=!1:e+=",",e+=`${o}=${t=n,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}}})),Re.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}:{}})),Re.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}),n=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issueCommand=void 0;const s=n(pe),i=n(le);var a=Re("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(!s.existsSync(r))throw Error("Missing file at path: "+r);s.appendFileSync(r,`${a.toCommandValue(t)}${i.EOL}`,{encoding:"utf8"})}}));var Ce=Re("6FGZZ"),Te={};const Ae="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,Ie=Ae?";":":";var Ne,Le={};Re.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 n=r[o].toLowerCase();if(n&&e.substr(-n.length).toLowerCase()===n)return!0}return!1})(t,r)}function o(e,t,o){pe.stat(e,((n,s)=>{o(n,!n&&r(s,e,t))}))}e.exports=o,o.sync=(e,t)=>r(pe.statSync(e),e,t)})),Re.register("kam8f",((e,t)=>{function r(e,t,r){pe.stat(e,((e,n)=>{r(e,!e&&o(n,t))}))}function o(e,t){return e.isFile()&&((e,t)=>{var r=e.mode,o=e.uid,n=e.gid,s=void 0!==t.uid?t.uid:process.getuid&&process.getuid(),i=void 0!==t.gid?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),c=parseInt("010",8),l=a|c;return r&parseInt("001",8)||r&c&&n===i||r&a&&o===s||r&l&&0===s})(e,t)}e.exports=r,r.sync=(e,t)=>o(pe.statSync(e),t)})),Ne="win32"===process.platform||Oe.TESTING_WINDOWS?Re("5vEMD"):Re("kam8f"),Le=r,r.sync=(e,t)=>{try{return Ne.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e}};const je=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),De=(e,t)=>{const r=t.colon||Ie,o=e.match(/\//)||Ae&&e.match(/\\/)?[""]:[...Ae?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],n=Ae?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=Ae?n.split(r):[""];return Ae&&-1!==e.indexOf(".")&&""!==s[0]&&s.unshift(""),{pathEnv:o,pathExt:s,pathExtExe:n}},ke=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});const{pathEnv:o,pathExt:n,pathExtExe:s}=De(e,t),i=[],a=r=>new Promise(((n,s)=>{if(r===o.length)return t.all&&i.length?n(i):s(je(e));const a=o[r],l=/^".*"$/.test(a)?a.slice(1,-1):a,u=ue.join(l,e),p=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u;n(c(p,r,0))})),c=(e,r,o)=>new Promise(((l,u)=>{if(o===n.length)return l(a(r+1));const p=n[o];Le(e+p,{pathExt:s},((n,s)=>{if(!n&&s){if(!t.all)return l(e+p);i.push(e+p)}return l(c(e,r,o+1))}))}));return r?a(0).then((e=>r(null,e)),r):a(0)};let Me;Te=ke,ke.sync=(e,t)=>{t=t||{};const{pathEnv:r,pathExt:o,pathExtExe:n}=De(e,t),s=[];for(let i=0;r.length>i;i++){const a=r[i],c=/^".*"$/.test(a)?a.slice(1,-1):a,l=ue.join(c,e),u=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+l:l;for(let e=0;o.length>e;e++){const r=u+o[e];try{if(Le.sync(r,{pathExt:n})){if(!t.all)return r;s.push(r)}}catch(e){}}}if(t.all&&s.length)return s;if(t.nothrow)return null;throw je(e)};var Fe,Ge={},Ue={},Be={},Ve={};const qe=(e={})=>{const t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find((e=>"PATH"===e.toUpperCase()))||"Path"};var He,Xe;(Ve=qe).default=qe,Fe=e=>n(e)||n(e,!0),Xe=e=>e.replace(/([()\][%!^"`<>&|;, *?])/g,"^$1"),He=(e,t)=>(e=(e=`"${e=(e=(e=""+e).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(/([()\][%!^"`<>&|;, *?])/g,"^$1"),t&&(e=e.replace(/([()\][%!^"`<>&|;, *?])/g,"^$1")),e);var We,Ye;We=(e="")=>{const t=e.match(/^#!(.*)/);if(!t)return null;const[r,o]=t[0].replace(/#! ?/,"").split(" "),n=r.split("/").pop();return"env"===n?o:o?`${n} ${o}`:n},Ye=e=>{const t=Buffer.alloc(150);let r;try{r=pe.openSync(e,"r"),pe.readSync(r,t,0,150,0),pe.closeSync(r)}catch(e){}return We(""+t)};const Ze="win32"===process.platform,ze=/\.(?:com|exe)$/i,Je=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;Be=(e,t,r)=>{t&&!Array.isArray(t)&&(r=t,t=null);const o={command:e,args:t=t?t.slice(0):[],options:r=Object.assign({},r),file:void 0,original:{command:e,args:t}};return r.shell?o:(e=>{if(!Ze)return e;const t=(e=>{e.file=Fe(e);const t=e.file&&Ye(e.file);return t?(e.args.unshift(e.file),e.command=t,Fe(e)):e.file})(e),r=!ze.test(t);if(e.options.forceShell||r){const r=Je.test(t);e.command=ue.normalize(e.command),e.command=Xe(e.command),e.args=e.args.map((e=>He(e,r)));const o=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${o}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e})(o)};var Ke={};const Qe="win32"===process.platform;var et;Ke={hookChildProcess(e,t){if(!Qe)return;const r=e.emit;e.emit=function(o,n){if("exit"===o){const o=i(n,t);if(o)return r.call(e,"error",o)}return r.apply(e,arguments)}},verifyENOENT:i,verifyENOENTSync(e,t){return Qe&&1===e&&!t.file?s(t.original,"spawnSync"):null},notFoundError:s},(Ue=a).spawn=a,Ue.sync=(e,t,r)=>{const o=Be(e,t,r),n=de.spawnSync(o.command,o.args,o.options);return n.error=n.error||Ke.verifyENOENTSync(n.status,o),n},Ue._parse=Be,Ue._enoent=Ke,et=e=>{const t="string"==typeof e?"\r":13;return e[e.length-1]===("string"==typeof e?"\n":10)&&(e=e.slice(0,e.length-1)),e[e.length-1]===t&&(e=e.slice(0,e.length-1)),e};var tt={};const rt=e=>{let t;e={cwd:process.cwd(),path:process.env[Ve()],execPath:process.execPath,...e};let r=ue.resolve(e.cwd);const o=[];for(;t!==r;)o.push(ue.join(r,"node_modules/.bin")),t=r,r=ue.resolve(r,"..");const n=ue.resolve(e.cwd,e.execPath,"..");return o.push(n),o.concat(e.path).join(ue.delimiter)};(tt=rt).default=rt,tt.env=e=>{const t={...(e={env:process.env,...e}).env},r=Ve({env:t});return e.path=t[r],t[r]=tt(e),t};var ot={},nt={};const st=(e,t)=>{for(const r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};(nt=st).default=st;const it=new WeakMap,at=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let r,o=0;const n=e.displayName||e.name||"",s=function(...i){if(it.set(s,++o),1===o)r=e.apply(this,i),e=null;else if(!0===t.throw)throw Error(`Function \`${n}\` can only be called once`);return r};return nt(s,e),it.set(s,o),s};(ot=at).default=at,ot.callCount=e=>{if(!it.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return it.get(e)};var ct,lt={};Object.defineProperty(lt,"__esModule",{value:!0}),lt.signalsByNumber=lt.signalsByName=void 0;var ut={};Object.defineProperty(ut,"__esModule",{value:!0}),ut.getSignals=void 0;var pt={};Object.defineProperty(pt,"__esModule",{value:!0}),pt.SIGNALS=void 0,pt.SIGNALS=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];var dt={};Object.defineProperty(dt,"__esModule",{value:!0}),dt.SIGRTMAX=dt.getRealtimeSignals=void 0,dt.getRealtimeSignals=()=>Array.from({length:mt-ft+1},ht);const ht=(e,t)=>({name:"SIGRT"+(t+1),number:ft+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),ft=34,mt=64;dt.SIGRTMAX=mt,ut.getSignals=()=>{const e=dt.getRealtimeSignals();return[...pt.SIGNALS,...e].map(vt)};const vt=({name:e,number:t,description:r,action:o,forced:n=!1,standard:s})=>{const{signals:{[e]:i}}=le.constants,a=void 0!==i;return{name:e,number:a?i:t,description:r,supported:a,action:o,forced:n,standard:s}},gt=ut.getSignals().reduce(((e,{name:t,number:r,description:o,supported:n,action:s,forced:i,standard:a})=>({...e,[t]:{name:t,number:r,description:o,supported:n,action:s,forced:i,standard:a}})),{});lt.signalsByName=gt;const yt=(()=>{const e=ut.getSignals(),t=Array.from({length:dt.SIGRTMAX+1},((t,r)=>((e,t)=>{const r=((e,t)=>{const r=t.find((({name:t})=>le.constants.signals[t]===e));return void 0!==r?r:t.find((t=>t.number===e))})(e,t);if(void 0===r)return{};const{name:o,description:n,supported:s,action:i,forced:a,standard:c}=r;return{[e]:{name:o,number:e,description:n,supported:s,action:i,forced:a,standard:c}}})(r,e)));return Object.assign({},...t)})();lt.signalsByNumber=yt;var xt=lt.signalsByName;ct=({stdout:e,stderr:t,all:r,error:o,signal:n,exitCode:s,command:i,escapedCommand:a,timedOut:c,isCanceled:l,killed:u,parsed:{options:{timeout:p}}})=>{const d=void 0===(n=null===n?void 0:n)?void 0:xt[n].description,h=(({timedOut:e,timeout:t,errorCode:r,signal:o,signalDescription:n,exitCode:s,isCanceled:i})=>e?`timed out after ${t} milliseconds`:i?"was canceled":void 0!==r?"failed with "+r:void 0!==o?`was killed with ${o} (${n})`:void 0!==s?"failed with exit code "+s:"failed")({timedOut:c,timeout:p,errorCode:o&&o.code,signal:n,signalDescription:d,exitCode:s=null===s?void 0:s,isCanceled:l}),f=`Command ${h}: ${i}`,m="[object Error]"==={}.toString.call(o),v=m?`${f}\n${o.message}`:f,g=[v,t,e].filter(Boolean).join("\n");return m?(o.originalMessage=o.message,o.message=g):o=Error(g),o.shortMessage=v,o.command=i,o.escapedCommand=a,o.exitCode=s,o.signal=n,o.signalDescription=d,o.stdout=e,o.stderr=t,void 0!==r&&(o.all=r),"bufferedData"in o&&delete o.bufferedData,o.failed=!0,o.timedOut=!!c,o.isCanceled=l,o.killed=u&&!c,o};var wt={};const Et=["stdin","stdout","stderr"],bt=e=>{if(!e)return;const{stdio:t}=e;if(void 0===t)return Et.map((t=>e[t]));if((e=>Et.some((t=>void 0!==e[t])))(e))throw Error("It's not possible to provide `stdio` in combination with one of "+Et.map((e=>`\`${e}\``)).join(", "));if("string"==typeof t)return t;if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);return Array.from({length:Math.max(t.length,Et.length)},((e,r)=>t[r]))};(wt=bt).node=e=>{const t=bt(e);return"ipc"===t?"ipc":void 0===t||"string"==typeof t?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"]};var St,Pt,Ot={};Ot=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&Ot.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&Ot.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED");var _t,$t=Ot,Rt=/^win/i.test(process.platform),Ct=fe;"function"!=typeof Ct&&(Ct=Ct.EventEmitter),process.__signal_exit_emitter__?_t=process.__signal_exit_emitter__:((_t=process.__signal_exit_emitter__=new Ct).count=0,_t.emitted={}),_t.infinite||(_t.setMaxListeners(1/0),_t.infinite=!0),(Pt=(e,t)=>{he.equal(typeof e,"function","a callback must be provided for exit handler"),!1===At&&u();var r="exit";return t&&t.alwaysLast&&(r="afterexit"),_t.on(r,e),()=>{_t.removeListener(r,e),0===_t.listeners("exit").length&&0===_t.listeners("afterexit").length&&c()}}).unload=c;var Tt={};$t.forEach((e=>{Tt[e]=()=>{process.listeners(e).length===_t.count&&(c(),l("exit",null,e),l("afterexit",null,e),Rt&&"SIGHUP"===e&&(e="SIGINT"),process.kill(process.pid,e))}})),Pt.signals=()=>$t,Pt.load=u;var At=!1,It=process.reallyExit,Nt=process.emit;const Lt=e=>e===le.constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase();var jt,Dt=(St={spawnedKill(e,t="SIGTERM",r={}){const o=e(t);return((e,t,r,o)=>{if(!((e,{forceKillAfterTimeout:t},r)=>Lt(e)&&!1!==t&&r)(t,r,o))return;const n=(({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||0>e)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e})(r),s=setTimeout((()=>{e("SIGKILL")}),n);s.unref&&s.unref()})(e,t,r,o),o},spawnedCancel(e,t){e.kill()&&(t.isCanceled=!0)},setupTimeout(e,{timeout:t,killSignal:r="SIGTERM"},o){if(0===t||void 0===t)return o;let n;const s=new Promise(((o,s)=>{n=setTimeout((()=>{((e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}))})(e,r,s)}),t)})),i=o.finally((()=>{clearTimeout(n)}));return Promise.race([s,i])},validateTimeout({timeout:e}){if(void 0!==e&&(!Number.isFinite(e)||0>e))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},async setExitHandler(e,{cleanup:t,detached:r},o){if(!t||r)return o;const n=Pt((()=>{e.kill()}));return o.finally((()=>{n()}))}}).spawnedKill,kt=St.spawnedCancel,Mt=St.validateTimeout,Ft=St.setExitHandler,Gt=St.setupTimeout,Ut={};const Bt=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;Bt.writable=e=>Bt(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,Bt.readable=e=>Bt(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,Bt.duplex=e=>Bt.writable(e)&&Bt.readable(e),Bt.transform=e=>Bt.duplex(e)&&"function"==typeof e._transform,Ut=Bt;var Vt,qt={},Ht=me.constants,Xt=ve.PassThrough;Vt=e=>{e={...e};const{array:t}=e;let{encoding:r}=e;const o="buffer"===r;let n=!1;t?n=!(r||o):r=r||"utf8",o&&(r=null);const s=new Xt({objectMode:n});r&&s.setEncoding(r);let i=0;const a=[];return s.on("data",(e=>{a.push(e),n?i=a.length:i+=e.length})),s.getBufferedValue=()=>t?a:o?Buffer.concat(a,i):a.join(""),s.getBufferedLength=()=>i,s};const Wt=(0,ge.promisify)(ve.pipeline);class Yt extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}(qt=h).buffer=(e,t)=>h(e,{...t,encoding:"buffer"}),qt.array=(e,t)=>h(e,{...t,array:!0}),qt.MaxBufferError=Yt;var Zt,zt=ve.PassThrough;Zt=function(){function e(t){return Array.isArray(t)?(t.forEach(e),this):(o.push(t),t.once("end",r.bind(null,t)),t.once("error",n.emit.bind(n,"error")),t.pipe(n,{end:!1}),this)}function t(){return 0==o.length}function r(e){!(o=o.filter((t=>t!==e))).length&&n.readable&&n.end()}var o=[],n=new zt({objectMode:!0});return n.setMaxListeners(0),n.add=e,n.isEmpty=t,n.on("unpipe",r),[].slice.call(arguments).forEach(e),n};const Jt=async(e,t)=>{if(e){e.destroy();try{return await t}catch(e){return e.bufferedData}}},Kt=(e,{encoding:t,buffer:r,maxBuffer:o})=>{if(e&&r)return t?qt(e,{encoding:t,maxBuffer:o}):qt.buffer(e,{maxBuffer:o})};var Qt,er=(jt={handleInput(e,t){void 0!==t&&void 0!==e.stdin&&(Ut(t)?t.pipe(e.stdin):e.stdin.end(t))},makeAllStream(e,{all:t}){if(!t||!e.stdout&&!e.stderr)return;const r=Zt();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r},async getSpawnedResult({stdout:e,stderr:t,all:r},{encoding:o,buffer:n,maxBuffer:s},i){const a=Kt(e,{encoding:o,buffer:n,maxBuffer:s}),c=Kt(t,{encoding:o,buffer:n,maxBuffer:s}),l=Kt(r,{encoding:o,buffer:n,maxBuffer:2*s});try{return await Promise.all([i,a,c,l])}catch(o){return Promise.all([{error:o,signal:o.signal,timedOut:o.timedOut},Jt(e,a),Jt(t,c),Jt(r,l)])}},validateInputSync({input:e}){if(Ut(e))throw new TypeError("The `input` option cannot be a stream in sync mode")}}).makeAllStream,tr=jt.getSpawnedResult,rr=jt.validateInputSync,or=jt.handleInput;const nr=(async()=>{})().constructor.prototype,sr=["then","catch","finally"].map((e=>[e,Reflect.getOwnPropertyDescriptor(nr,e)]));var ir,ar=(Qt={mergePromise(e,t){for(const[r,o]of sr){const n="function"==typeof t?(...e)=>Reflect.apply(o.value,t(),e):o.value.bind(t);Reflect.defineProperty(e,r,{...o,value:n})}return e},getSpawnedPromise(e){return new Promise(((t,r)=>{e.on("exit",((e,r)=>{t({exitCode:e,signal:r})})),e.on("error",(e=>{r(e)})),e.stdin&&e.stdin.on("error",(e=>{r(e)}))}))}}).getSpawnedPromise,cr=Qt.mergePromise;const lr=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],ur=/^[\w.-]+$/;var pr=(ir={joinCommand(e,t){return lr(e,t).join(" ")},getEscapedCommand(e,t){return lr(e,t).map((e=>(e=>"string"!=typeof e||ur.test(e)?e:`"${e.replace(/"/g,'\\"')}"`)(e))).join(" ")},parseCommand(e){const t=[];for(const r of e.trim().split(/ +/g)){const e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${r}`:t.push(r)}return t}}).joinCommand,dr=ir.parseCommand,hr=ir.getEscapedCommand;const fr=(e,t,r={})=>{const o=Ue._parse(e,t,r);return e=o.command,t=o.args,(r={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(r=o.options).cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...r}).env=(({env:e,extendEnv:t,preferLocal:r,localDir:o,execPath:n})=>{const s=t?{...process.env,...e}:e;return r?tt.env({env:s,cwd:o,execPath:n}):s})(r),r.stdio=wt(r),"win32"===process.platform&&"cmd"===ue.basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:o}},mr=(e,t,r)=>"string"==typeof t||Buffer.isBuffer(t)?e.stripFinalNewline?et(t):t:void 0===r?void 0:"",vr=(e,t,r)=>{const o=fr(e,t,r),n=pr(e,t),s=hr(e,t);let i;Mt(o.options);try{i=de.spawn(o.file,o.args,o.options)}catch(e){const t=new de.ChildProcess,r=Promise.reject(ct({error:e,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:o,timedOut:!1,isCanceled:!1,killed:!1}));return cr(t,r)}const a=ar(i),c=Gt(i,o.options,a),l=Ft(i,o.options,c),u={isCanceled:!1};i.kill=Dt.bind(null,i.kill.bind(i)),i.cancel=kt.bind(null,i,u);const p=ot((async()=>{const[{error:e,exitCode:t,signal:r,timedOut:a},c,p,d]=await tr(i,o.options,l),h=mr(o.options,c),f=mr(o.options,p),m=mr(o.options,d);if(e||0!==t||null!==r){const c=ct({error:e,exitCode:t,signal:r,stdout:h,stderr:f,all:m,command:n,escapedCommand:s,parsed:o,timedOut:a,isCanceled:u.isCanceled,killed:i.killed});if(!o.options.reject)return c;throw c}return{command:n,escapedCommand:s,exitCode:0,stdout:h,stderr:f,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}));return or(i,o.options.input),i.all=er(i,o.options),cr(i,p)};let gr;(Ge=vr).sync=(e,t,r)=>{const o=fr(e,t,r),n=pr(e,t),s=hr(e,t);let i;rr(o.options);try{i=de.spawnSync(o.file,o.args,o.options)}catch(e){throw ct({error:e,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:o,timedOut:!1,isCanceled:!1,killed:!1})}const a=mr(o.options,i.stdout,i.error),c=mr(o.options,i.stderr,i.error);if(i.error||0!==i.status||null!==i.signal){const e=ct({stdout:a,stderr:c,error:i.error,signal:i.signal,exitCode:i.status,command:n,escapedCommand:s,parsed:o,timedOut:i.error&&"ETIMEDOUT"===i.error.code,isCanceled:!1,killed:null!==i.signal});if(!o.options.reject)return e;throw e}return{command:n,escapedCommand:s,exitCode:0,stdout:a,stderr:c,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},Ge.command=(e,t)=>{const[r,...o]=dr(e);return vr(r,o,t)},Ge.commandSync=(e,t)=>{const[r,...o]=dr(e);return vr.sync(r,o,t)},Ge.node=(e,t,r={})=>{t&&!Array.isArray(t)&&"object"==typeof t&&(r=t,t=[]);const o=wt.node(r),n=process.execArgv.filter((e=>!e.startsWith("--inspect"))),{nodePath:s=process.execPath,nodeOptions:i=n}=r;return vr(s,[...i,e,...Array.isArray(t)?t:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:o,shell:!1})};let yr=!1,xr=!1;Ce=Re("6FGZZ"),Ce=Re("6FGZZ");let wr,Er=!1;var br={},Sr=br&&br.__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]}),Pr=br&&br.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),Or=br&&br.__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)&&Sr(t,e,r);return Pr(t,e),t}),_r=br&&br.__awaiter||((e,t,r,o)=>new(r||(r=Promise))(((n,s)=>{function i(e){try{c(o.next(e))}catch(e){s(e)}}function a(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((o=o.apply(e,t||[])).next())}))),$r=br&&br.__importDefault||(e=>e&&e.__esModule?e:{default:e});Object.defineProperty(br,"__esModule",{value:!0}),br.evaluateVersions=br.isExplicitVersion=br.findFromManifest=br.getManifestFromRepo=br.findAllVersions=br.find=br.cacheFile=br.cacheDir=br.extractZip=br.extractXar=br.extractTar=br.extract7z=br.downloadTool=br.HTTPError=void 0;const Rr=Or(Re("6FGZZ"));Re.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*(){he.ok(e,"a path argument must be provided"),yield h.mkdir(e,{recursive:!0})}))}function n(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 n of r){const r=yield h.tryGetExecutablePath(d.join(n,e),t);r&&o.push(r)}return o}))}function s(e,t,r,n){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}`,c=`${t}/${o}`;(yield h.lstat(a)).isDirectory()?yield s(a,c,r,n):yield i(a,c,n)}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]}),c=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),l=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&a(t,e,r);return c(t,e),t}),u=e.exports&&e.exports.__awaiter||((e,t,r,o)=>new(r||(r=Promise))(((n,s)=>{function i(e){try{c(o.next(e))}catch(e){s(e)}}function a(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((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=l(de),d=l(ue),h=l(Re("fyhIP")),f=ge.promisify(p.exec),m=ge.promisify(p.execFile);e.exports.cp=function(e,t,r={}){return u(this,void 0,void 0,(function*(){const{force:o,recursive:n,copySourceDirectory:a}=(e=>({force:null==e.force||e.force,recursive:!!e.recursive,copySourceDirectory:null==e.copySourceDirectory||!!e.copySourceDirectory}))(r),c=(yield h.exists(t))?yield h.stat(t):null;if(c&&c.isFile()&&!o)return;const l=c&&c.isDirectory()&&a?d.join(t,d.basename(e)):t;if(!(yield h.exists(e)))throw Error("no such file or directory: "+e);if((yield h.stat(e)).isDirectory()){if(!n)throw Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield s(e,l,0,o)}else{if(""===d.relative(e,l))throw Error(`'${l}' and '${e}' are the same file`);yield i(e,l,o)}}))},e.exports.mv=function(e,t,n={}){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!=n.force&&!n.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 n(t);return o&&o.length>0?o[0]:""}))},e.exports.findInPath=n})),Re.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,n=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}),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)&&n(t,e,r);return s(t,e),t}),a=e.exports&&e.exports.__awaiter||((e,t,r,o)=>new(r||(r=Promise))(((n,s)=>{function i(e){try{c(o.next(e))}catch(e){s(e)}}function a(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((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 c=i(pe),l=i(ue);e.exports.chmod=(o=c.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 n;try{n=yield e.exports.stat(t)}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`)}if(n&&n.isFile())if(e.exports.IS_WINDOWS){const e=l.extname(t).toUpperCase();if(o.some((t=>t.toUpperCase()===e)))return t}else if(r(n))return t;const s=t;for(const i of o){t=s+i,n=void 0;try{n=yield e.exports.stat(t)}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`)}if(n&&n.isFile()){if(e.exports.IS_WINDOWS){try{const r=l.dirname(t),o=l.basename(t).toUpperCase();for(const n of yield e.exports.readdir(r))if(o===n.toUpperCase()){t=l.join(r,n);break}}catch(e){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${e}`)}return t}if(r(n))return t}}return""}))},e.exports.getCmdPath=()=>{var e;return null!==(e=process.env.COMSPEC)&&void 0!==e?e:"cmd.exe"}}));const Cr=Or(Re("q05Mr")),Tr=Or(pe);Re.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}),n=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t}),s=e.exports&&e.exports.__awaiter||((e,t,r,o)=>new(r||(r=Promise))(((n,s)=>{function i(e){try{c(o.next(e))}catch(e){s(e)}}function a(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((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=n(Re("hBwzM"));var a=Re("6FGZZ");e.exports._findMatch=function(t,r,o,n){return s(this,void 0,void 0,(function*(){const s=le.platform();let c,l,u;for(const c of o){const o=c.version;if(a.debug(`check ${o} satisfies ${t}`),i.satisfies(o,t)&&(!r||c.stable===r)&&(u=c.files.find((t=>{a.debug(`${t.arch}===${n} && ${t.platform}===${s}`);let r=t.arch===n&&t.platform===s;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 "+c.version),l=c;break}}return l&&u&&(c=Object.assign({},l),c.files=[u]),c}))},e.exports._getOsVersion=()=>{const t=le.platform();let r="";if("darwin"===t)r=""+de.execSync("sw_vers -productVersion");else if("linux"===t){const t=e.exports._readLinuxVersionFile();if(t){const e=t.split("\n");for(const t of e){const e=t.split("=");if(2===e.length&&("VERSION_ID"===e[0].trim()||"DISTRIB_RELEASE"===e[0].trim())){r=e[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return r},e.exports._readLinuxVersionFile=()=>{const e="/etc/lsb-release",t="/etc/os-release";let r="";return pe.existsSync(e)?r=""+pe.readFileSync(e):pe.existsSync(t)&&(r=""+pe.readFileSync(t)),r}})),Re.register("hBwzM",((e,t)=>{var r=Re("j1nFx");e.exports={re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:Re("9PnyI").SEMVER_SPEC_VERSION,SemVer:Re("j4Bpm"),compareIdentifiers:Re("9vPNp").compareIdentifiers,rcompareIdentifiers:Re("9vPNp").rcompareIdentifiers,parse:Re("bd0kF"),valid:Re("1JJDJ"),clean:Re("6mLCu"),inc:Re("1Orzu"),diff:Re("kGDR5"),major:Re("k3zcS"),minor:Re("e8NKK"),patch:Re("3Fhst"),prerelease:Re("6elLy"),compare:Re("1wyqe"),rcompare:Re("las47"),compareLoose:Re("dQlWE"),compareBuild:Re("7REgF"),sort:Re("3U0ar"),rsort:Re("98o3F"),gt:Re("6bYo1"),lt:Re("98Pyg"),eq:Re("4eeum"),neq:Re("a0PPD"),gte:Re("kRrXd"),lte:Re("ju11K"),cmp:Re("cITzi"),coerce:Re("5M2Mq"),Comparator:Re("hDCF3"),Range:Re("8YuUE"),satisfies:Re("6rO9c"),toComparators:Re("fx4Sd"),maxSatisfying:Re("bMVW7"),minSatisfying:Re("g5aoW"),minVersion:Re("hO4RL"),validRange:Re("hXGf0"),outside:Re("2MRaB"),gtr:Re("bqGrY"),ltr:Re("3AeSM"),intersects:Re("2Lyoi"),simplifyRange:Re("5pzc6"),subset:Re("2XGoS")}})),Re.register("j1nFx",((e,t)=>{var r=Re("9PnyI").MAX_SAFE_COMPONENT_LENGTH,o=Re("8eni4");const n=(t=e.exports={}).re=[],s=t.src=[],i=t.t={};let a=0;const c=(e,t,r)=>{const c=a++;o(c,t),i[e]=c,s[c]=t,n[c]=RegExp(t,r?"g":void 0)};c("NUMERICIDENTIFIER","0|[1-9]\\d*"),c("NUMERICIDENTIFIERLOOSE","[0-9]+"),c("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),c("MAINVERSION",`(${s[i.NUMERICIDENTIFIER]})\\.(${s[i.NUMERICIDENTIFIER]})\\.(${s[i.NUMERICIDENTIFIER]})`),c("MAINVERSIONLOOSE",`(${s[i.NUMERICIDENTIFIERLOOSE]})\\.(${s[i.NUMERICIDENTIFIERLOOSE]})\\.(${s[i.NUMERICIDENTIFIERLOOSE]})`),c("PRERELEASEIDENTIFIER",`(?:${s[i.NUMERICIDENTIFIER]}|${s[i.NONNUMERICIDENTIFIER]})`),c("PRERELEASEIDENTIFIERLOOSE",`(?:${s[i.NUMERICIDENTIFIERLOOSE]}|${s[i.NONNUMERICIDENTIFIER]})`),c("PRERELEASE",`(?:-(${s[i.PRERELEASEIDENTIFIER]}(?:\\.${s[i.PRERELEASEIDENTIFIER]})*))`),c("PRERELEASELOOSE",`(?:-?(${s[i.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[i.PRERELEASEIDENTIFIERLOOSE]})*))`),c("BUILDIDENTIFIER","[0-9A-Za-z-]+"),c("BUILD",`(?:\\+(${s[i.BUILDIDENTIFIER]}(?:\\.${s[i.BUILDIDENTIFIER]})*))`),c("FULLPLAIN",`v?${s[i.MAINVERSION]}${s[i.PRERELEASE]}?${s[i.BUILD]}?`),c("FULL",`^${s[i.FULLPLAIN]}$`),c("LOOSEPLAIN",`[v=\\s]*${s[i.MAINVERSIONLOOSE]}${s[i.PRERELEASELOOSE]}?${s[i.BUILD]}?`),c("LOOSE",`^${s[i.LOOSEPLAIN]}$`),c("GTLT","((?:<|>)?=?)"),c("XRANGEIDENTIFIERLOOSE",s[i.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*"),c("XRANGEIDENTIFIER",s[i.NUMERICIDENTIFIER]+"|x|X|\\*"),c("XRANGEPLAIN",`[v=\\s]*(${s[i.XRANGEIDENTIFIER]})(?:\\.(${s[i.XRANGEIDENTIFIER]})(?:\\.(${s[i.XRANGEIDENTIFIER]})(?:${s[i.PRERELEASE]})?${s[i.BUILD]}?)?)?`),c("XRANGEPLAINLOOSE",`[v=\\s]*(${s[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[i.XRANGEIDENTIFIERLOOSE]})(?:${s[i.PRERELEASELOOSE]})?${s[i.BUILD]}?)?)?`),c("XRANGE",`^${s[i.GTLT]}\\s*${s[i.XRANGEPLAIN]}$`),c("XRANGELOOSE",`^${s[i.GTLT]}\\s*${s[i.XRANGEPLAINLOOSE]}$`),c("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),c("COERCERTL",s[i.COERCE],!0),c("LONETILDE","(?:~>?)"),c("TILDETRIM",`(\\s*)${s[i.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",c("TILDE",`^${s[i.LONETILDE]}${s[i.XRANGEPLAIN]}$`),c("TILDELOOSE",`^${s[i.LONETILDE]}${s[i.XRANGEPLAINLOOSE]}$`),c("LONECARET","(?:\\^)"),c("CARETTRIM",`(\\s*)${s[i.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",c("CARET",`^${s[i.LONECARET]}${s[i.XRANGEPLAIN]}$`),c("CARETLOOSE",`^${s[i.LONECARET]}${s[i.XRANGEPLAINLOOSE]}$`),c("COMPARATORLOOSE",`^${s[i.GTLT]}\\s*(${s[i.LOOSEPLAIN]})$|^$`),c("COMPARATOR",`^${s[i.GTLT]}\\s*(${s[i.FULLPLAIN]})$|^$`),c("COMPARATORTRIM",`(\\s*)${s[i.GTLT]}\\s*(${s[i.LOOSEPLAIN]}|${s[i.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",c("HYPHENRANGE",`^\\s*(${s[i.XRANGEPLAIN]})\\s+-\\s+(${s[i.XRANGEPLAIN]})\\s*$`),c("HYPHENRANGELOOSE",`^\\s*(${s[i.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[i.XRANGEPLAINLOOSE]})\\s*$`),c("STAR","(<|>)?=?\\s*\\*"),c("GTE0","^\\s*>=\\s*0.0.0\\s*$"),c("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")})),Re.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}})),Re.register("8eni4",((e,t)=>{const r=("object"==typeof process&&process,()=>{});e.exports=r})),Re.register("j4Bpm",(function(e,t){var r=Re("8eni4"),o=Re("9PnyI"),n=o.MAX_LENGTH,s=o.MAX_SAFE_INTEGER,i=Re("j1nFx"),a=i.re,c=i.t,l=Re("26eGk"),u=Re("9vPNp").compareIdentifiers;class p{constructor(e,t){if(t=l(t),e instanceof p){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>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[c.LOOSE]:a[c.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],n=e.prerelease[t];if(r("prerelease compare",t,o,n),void 0===o&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===o)return-1;if(o!==n)return u(o,n)}while(++t)}compareBuild(e){e instanceof p||(e=new p(e,this.options));let t=0;do{const o=this.build[t],n=e.build[t];if(r("prerelease compare",t,o,n),void 0===o&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===o)return-1;if(o!==n)return u(o,n)}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})),Re.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)),{}):{}})),Re.register("9vPNp",((e,t)=>{const r=/^[0-9]+$/,o=(e,t)=>{const o=r.test(e),n=r.test(t);return o&&n&&(e=+e,t=+t),e===t?0:o&&!n?-1:n&&!o?1:t>e?-1:1};e.exports={compareIdentifiers:o,rcompareIdentifiers(e,t){return o(t,e)}}})),Re.register("bd0kF",((e,t)=>{var r=Re("9PnyI").MAX_LENGTH,o=Re("j1nFx"),n=o.re,s=o.t,i=Re("j4Bpm"),a=Re("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?n[s.LOOSE]:n[s.FULL]).test(e))return null;try{return new i(e,t)}catch(e){return null}}})),Re.register("1JJDJ",((e,t)=>{var r=Re("bd0kF");e.exports=(e,t)=>{const o=r(e,t);return o?o.version:null}})),Re.register("6mLCu",((e,t)=>{var r=Re("bd0kF");e.exports=(e,t)=>{const o=r(e.trim().replace(/^[=v]+/,""),t);return o?o.version:null}})),Re.register("1Orzu",((e,t)=>{var r=Re("j4Bpm");e.exports=(e,t,o,n)=>{"string"==typeof o&&(n=o,o=void 0);try{return new r(e,o).inc(t,n).version}catch(e){return null}}})),Re.register("kGDR5",((e,t)=>{var r=Re("bd0kF"),o=Re("4eeum");e.exports=(e,t)=>{if(o(e,t))return null;{const o=r(e),n=r(t),s=o.prerelease.length||n.prerelease.length,i=s?"pre":"",a=s?"prerelease":"";for(const e in o)if(("major"===e||"minor"===e||"patch"===e)&&o[e]!==n[e])return i+e;return a}}})),Re.register("4eeum",((e,t)=>{var r=Re("1wyqe");e.exports=(e,t,o)=>0===r(e,t,o)})),Re.register("1wyqe",((e,t)=>{var r=Re("j4Bpm");e.exports=(e,t,o)=>new r(e,o).compare(new r(t,o))})),Re.register("k3zcS",((e,t)=>{var r=Re("j4Bpm");e.exports=(e,t)=>new r(e,t).major})),Re.register("e8NKK",((e,t)=>{var r=Re("j4Bpm");e.exports=(e,t)=>new r(e,t).minor})),Re.register("3Fhst",((e,t)=>{var r=Re("j4Bpm");e.exports=(e,t)=>new r(e,t).patch})),Re.register("6elLy",((e,t)=>{var r=Re("bd0kF");e.exports=(e,t)=>{const o=r(e,t);return o&&o.prerelease.length?o.prerelease:null}})),Re.register("las47",((e,t)=>{var r=Re("1wyqe");e.exports=(e,t,o)=>r(t,e,o)})),Re.register("dQlWE",((e,t)=>{var r=Re("1wyqe");e.exports=(e,t)=>r(e,t,!0)})),Re.register("7REgF",((e,t)=>{var r=Re("j4Bpm");e.exports=(e,t,o)=>{const n=new r(e,o),s=new r(t,o);return n.compare(s)||n.compareBuild(s)}})),Re.register("3U0ar",((e,t)=>{var r=Re("7REgF");e.exports=(e,t)=>e.sort(((e,o)=>r(e,o,t)))})),Re.register("98o3F",((e,t)=>{var r=Re("7REgF");e.exports=(e,t)=>e.sort(((e,o)=>r(o,e,t)))})),Re.register("6bYo1",((e,t)=>{var r=Re("1wyqe");e.exports=(e,t,o)=>r(e,t,o)>0})),Re.register("98Pyg",((e,t)=>{var r=Re("1wyqe");e.exports=(e,t,o)=>0>r(e,t,o)})),Re.register("a0PPD",((e,t)=>{var r=Re("1wyqe");e.exports=(e,t,o)=>0!==r(e,t,o)})),Re.register("kRrXd",((e,t)=>{var r=Re("1wyqe");e.exports=(e,t,o)=>r(e,t,o)>=0})),Re.register("ju11K",((e,t)=>{var r=Re("1wyqe");e.exports=(e,t,o)=>0>=r(e,t,o)})),Re.register("cITzi",((e,t)=>{var r=Re("4eeum"),o=Re("a0PPD"),n=Re("6bYo1"),s=Re("kRrXd"),i=Re("98Pyg"),a=Re("ju11K");e.exports=(e,t,c,l)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof c&&(c=c.version),e===c;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof c&&(c=c.version),e!==c;case"":case"=":case"==":return r(e,c,l);case"!=":return o(e,c,l);case">":return n(e,c,l);case">=":return s(e,c,l);case"<":return i(e,c,l);case"<=":return a(e,c,l);default:throw new TypeError("Invalid operator: "+t)}}})),Re.register("5M2Mq",((e,t)=>{var r=Re("j4Bpm"),o=Re("bd0kF"),n=Re("j1nFx"),s=n.t,i=n.re;e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e+=""),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){let t;for(;(t=i[s.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&t.index+t[0].length===n.index+n[0].length||(n=t),i[s.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;i[s.COERCERTL].lastIndex=-1}else n=e.match(i[s.COERCE]);return null===n?null:o(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)}})),Re.register("hDCF3",(function(e,t){const r=Symbol();class o{static get ANY(){return r}constructor(e,t){if(t=n(t),e instanceof o){if(e.loose===!!t.loose)return e;e=e.value}l("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.value=this.semver===r?"":this.operator+this.semver.version,l("comp",this)}parse(e){const t=e.match(this.options.loose?a[i.COMPARATORLOOSE]:a[i.COMPARATOR]);if(!t)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==t[1]?t[1]:"","="===this.operator&&(this.operator=""),this.semver=t[2]?new u(t[2],this.options.loose):r}toString(){return this.value}test(e){if(l("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}return c(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof 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),n=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),s=this.semver.version===e.semver.version,i=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=c(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=c(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||n||s&&i||a||l}}e.exports=o;var n=Re("26eGk"),s=Re("j1nFx"),i=s.t,a=s.re,c=Re("cITzi"),l=Re("8eni4"),u=Re("j4Bpm"),p=Re("8YuUE")})),Re.register("8YuUE",(function(e,t){class r{constructor(e,t){if(t=n(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof s)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\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 n=this.options.loose;e=e.replace(n?d[h.HYPHENRANGELOOSE]:d[h.HYPHENRANGE],$(this.options.includePrerelease)),i("hyphen replace",e),e=e.replace(d[h.COMPARATORTRIM],l),i("comparator trim",e,d[h.COMPARATORTRIM]),e=(e=(e=e.replace(d[h.TILDETRIM],u)).replace(d[h.CARETTRIM],p)).split(/\s+/).join(" ");const a=n?d[h.COMPARATORLOOSE]:d[h.COMPARATOR],c=e.split(" ").map((e=>g(e,this.options))).join(" ").split(/\s+/).map((e=>_(e,this.options))).filter(this.options.loose?e=>!!e.match(a):()=>!0).map((e=>new s(e,this.options))),m=new Map;for(const e of c){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(Re("hqS6J"))({max:1e3});var n=Re("26eGk"),s=Re("hDCF3"),i=Re("8eni4"),a=Re("j4Bpm"),c=Re("j1nFx"),l=c.comparatorTrimReplace,u=c.tildeTrimReplace,p=c.caretTrimReplace,d=c.re,h=c.t;const f=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,v=(e,t)=>{let r=!0;const o=e.slice();let n=o.pop();for(;r&&o.length;)r=o.every((e=>n.intersects(e,t))),n=o.pop();return r},g=(e,t)=>(i("comp",e,t),e=E(e,t),i("caret",e),e=x(e,t),i("tildes",e),e=S(e,t),i("xrange",e),e=O(e,t),i("stars",e),e),y=e=>!e||"x"===e.toLowerCase()||"*"===e,x=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>e.replace(t.loose?d[h.TILDELOOSE]:d[h.TILDE],((t,r,o,n,s)=>{let a;return i("tilde",e,t,r,o,n,s),y(r)?a="":y(o)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:y(n)?a=`>=${r}.${o}.0 <${r}.${+o+1}.0-0`:s?(i("replaceTilde pr",s),a=`>=${r}.${o}.${n}-${s} <${r}.${+o+1}.0-0`):a=`>=${r}.${o}.${n} <${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?d[h.CARETLOOSE]:d[h.CARET],((t,o,n,s,a)=>{let c;return i("caret",e,t,o,n,s,a),y(o)?c="":y(n)?c=`>=${o}.0.0${r} <${+o+1}.0.0-0`:y(s)?c="0"===o?`>=${o}.${n}.0${r} <${o}.${+n+1}.0-0`:`>=${o}.${n}.0${r} <${+o+1}.0.0-0`:a?(i("replaceCaret pr",a),c="0"===o?"0"===n?`>=${o}.${n}.${s}-${a} <${o}.${n}.${+s+1}-0`:`>=${o}.${n}.${s}-${a} <${o}.${+n+1}.0-0`:`>=${o}.${n}.${s}-${a} <${+o+1}.0.0-0`):(i("no pr"),c="0"===o?"0"===n?`>=${o}.${n}.${s}${r} <${o}.${n}.${+s+1}-0`:`>=${o}.${n}.${s}${r} <${o}.${+n+1}.0-0`:`>=${o}.${n}.${s} <${+o+1}.0.0-0`),i("caret return",c),c}))},S=(e,t)=>(i("replaceXRanges",e,t),e.split(/\s+/).map((e=>P(e,t))).join(" ")),P=(e,t)=>(e=e.trim()).replace(t.loose?d[h.XRANGELOOSE]:d[h.XRANGE],((r,o,n,s,a,c)=>{i("xRange",e,r,o,n,s,a,c);const l=y(n),u=l||y(s),p=u||y(a);return"="===o&&p&&(o=""),c=t.includePrerelease?"-0":"",l?r=">"===o||"<"===o?"<0.0.0-0":"*":o&&p?(u&&(s=0),a=0,">"===o?(o=">=",u?(n=+n+1,s=0,a=0):(s=+s+1,a=0)):"<="===o&&(o="<",u?n=+n+1:s=+s+1),"<"===o&&(c="-0"),r=`${o+n}.${s}.${a}${c}`):u?r=`>=${n}.0.0${c} <${+n+1}.0.0-0`:p&&(r=`>=${n}.${s}.0${c} <${n}.${+s+1}.0-0`),i("xRange return",r),r})),O=(e,t)=>(i("replaceStars",e,t),e.trim().replace(d[h.STAR],"")),_=(e,t)=>(i("replaceGTE0",e,t),e.trim().replace(d[t.includePrerelease?h.GTE0PRE:h.GTE0],"")),$=e=>(t,r,o,n,s,i,a,c,l,u,p,d,h)=>`${r=y(o)?"":y(n)?`>=${o}.0.0${e?"-0":""}`:y(s)?`>=${o}.${n}.0${e?"-0":""}`:i?">="+r:`>=${r}${e?"-0":""}`} ${c=y(l)?"":y(u)?`<${+l+1}.0.0-0`:y(p)?`<${l}.${+u+1}.0-0`:d?`<=${l}.${u}.${p}-${d}`:e?`<${l}.${u}.${+p+1}-0`:"<="+c}`.trim(),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!==s.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}})),Re.register("hqS6J",(function(e,t){"use strict";var r=Re("9ShIP");const o=Symbol(),n=Symbol(),s=Symbol(),i=Symbol(),a=Symbol(),c=Symbol(),l=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(g(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[n]>e[o])for(let t=e[u].tail;e[n]>e[o]&&null!==t;){const r=t.prev;g(e,t),t=r}},g=(e,t)=>{if(t){const r=t.value;e[c]&&e[c](r.key,r.value),e[n]-=r.length,e[p].delete(r.key),e[u].removeNode(t)}};class y{constructor(e,t,r,o,n){this.key=e,this.value=t,this.length=r,this.now=o,this.maxAge=n||0}}const x=(e,t,r,o)=>{let n=r.value;m(e,n)&&(g(e,r),e[i]||(n=void 0)),n&&t.call(o,n.value,n.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[s]="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[c]=e.dispose,this[l]=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[s]&&(this[s]=e,this[n]=0,this[u].forEach((e=>{e.length=this[s](e.value,e.key),this[n]+=e.length}))),v(this)}get lengthCalculator(){return this[s]}get length(){return this[n]}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[c]&&this[u]&&this[u].length&&this[u].forEach((e=>this[c](e.key,e.value))),this[p]=new Map,this[u]=new r,this[n]=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[s](t,e);if(this[p].has(e)){if(d>this[o])return g(this,this[p].get(e)),!1;const s=this[p].get(e).value;return this[c]&&(this[l]||this[c](e,s.value)),s.now=i,s.maxAge=r,s.value=t,this[n]+=d-s.length,s.length=d,this.get(e),v(this),!0}const h=new y(e,t,d,i,r);return h.length>this[o]?(this[c]&&this[c](e,t),!1):(this[n]+=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?(g(this,e),e.value):null}del(e){g(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],n=o.e||0;if(0===n)this.set(o.k,o.v);else{const e=n-t;e>0&&this.set(o.k,o.v,e)}}}prune(){this[p].forEach(((e,t)=>f(this,t,!1)))}}})),Re.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,n=arguments.length;n>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 n(e,t){e.tail=new i(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function s(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++)n(this,arguments[e]);return this.length},r.prototype.unshift=function(){for(var e=0,t=arguments.length;t>e;e++)s(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,n=this.head;null!==n;)o.push(e.call(t,n.value,this)),n=n.next;return o},r.prototype.mapReverse=function(e,t){t=t||this;for(var o=new r,n=this.tail;null!==n;)o.push(e.call(t,n.value,this)),n=n.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 n=0;null!==o;n++)r=e(r,o.value,n),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 n=this.length-1;null!==o;n--)r=e(r,o.value,n),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 n=0,s=this.head;null!==s&&e>n;n++)s=s.next;for(;null!==s&&t>n;n++,s=s.next)o.push(s.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 n=this.length,s=this.tail;null!==s&&n>t;n--)s=s.prev;for(;null!==s&&n>e;n--,s=s.prev)o.push(s.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 n=0,s=this.head;null!==s&&e>n;n++)s=s.next;var i=[];for(n=0;s&&t>n;n++)i.push(s.value),s=this.removeNode(s);for(null===s&&(s=this.tail),s!==this.head&&s!==this.tail&&(s=s.prev),n=0;r.length>n;n++)s=o(this,s,r[n]);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{Re("bdwRA")(r)}catch(e){}})),Re.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}}})),Re.register("6rO9c",((e,t)=>{var r=Re("8YuUE");e.exports=(e,t,o)=>{try{t=new r(t,o)}catch(e){return!1}return t.test(e)}})),Re.register("fx4Sd",((e,t)=>{var r=Re("8YuUE");e.exports=(e,t)=>new r(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))})),Re.register("bMVW7",((e,t)=>{var r=Re("j4Bpm"),o=Re("8YuUE");e.exports=(e,t,n)=>{let s=null,i=null,a=null;try{a=new o(t,n)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(s&&-1!==i.compare(e)||(s=e,i=new r(s,n)))})),s}})),Re.register("g5aoW",((e,t)=>{var r=Re("j4Bpm"),o=Re("8YuUE");e.exports=(e,t,n)=>{let s=null,i=null,a=null;try{a=new o(t,n)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(s&&1!==i.compare(e)||(s=e,i=new r(s,n)))})),s}})),Re.register("hO4RL",((e,t)=>{var r=Re("j4Bpm"),o=Re("8YuUE"),n=Re("6bYo1");e.exports=(e,t)=>{e=new o(e,t);let s=new r("0.0.0");if(e.test(s))return s;if(s=new r("0.0.0-0"),e.test(s))return s;s=null;for(let t=0;e.set.length>t;++t){let 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&&!n(t,o)||(o=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator)}})),!o||s&&!n(s,o)||(s=o)}return s&&e.test(s)?s:null}})),Re.register("hXGf0",((e,t)=>{var r=Re("8YuUE");e.exports=(e,t)=>{try{return new r(e,t).range||"*"}catch(e){return null}}})),Re.register("2MRaB",((e,t)=>{var r=Re("j4Bpm"),o=Re("hDCF3");const{ANY:n}=o;var s=Re("8YuUE"),i=Re("6rO9c"),a=Re("6bYo1"),c=Re("98Pyg"),l=Re("ju11K"),u=Re("kRrXd");e.exports=(e,t,p,d)=>{let h,f,m,v,g;switch(e=new r(e,d),t=new s(t,d),p){case">":h=a,f=l,m=c,v=">",g=">=";break;case"<":h=c,f=u,m=a,v="<",g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(i(e,t,d))return!1;for(let r=0;t.set.length>r;++r){let s=null,i=null;if(t.set[r].forEach((e=>{e.semver===n&&(e=new o(">=0.0.0")),s=s||e,i=i||e,h(e.semver,s.semver,d)?s=e:m(e.semver,i.semver,d)&&(i=e)})),s.operator===v||s.operator===g)return!1;if((!i.operator||i.operator===v)&&f(e,i.semver))return!1;if(i.operator===g&&m(e,i.semver))return!1}return!0}})),Re.register("bqGrY",((e,t)=>{var r=Re("2MRaB");e.exports=(e,t,o)=>r(e,t,">",o)})),Re.register("3AeSM",((e,t)=>{var r=Re("2MRaB");e.exports=(e,t,o)=>r(e,t,"<",o)})),Re.register("2Lyoi",((e,t)=>{var r=Re("8YuUE");e.exports=(e,t,o)=>(e=new r(e,o),t=new r(t,o),e.intersects(t))})),Re.register("5pzc6",((e,t)=>{var r=Re("6rO9c"),o=Re("1wyqe");e.exports=(e,t,n)=>{const s=[];let i=null,a=null;const c=e.sort(((e,t)=>o(e,t,n)));for(const e of c)r(e,t,n)?(a=e,i||(i=e)):(a&&s.push([i,a]),a=null,i=null);i&&s.push([i,null]);const l=[];for(const[e,t]of s)l.push(e===t?e:t||e!==c[0]?t?e===c[0]?"<="+t:`${e} - ${t}`:">="+e:"*");const u=l.join(" || ");return("string"==typeof t.raw?t.raw:t+"").length>u.length?u:t}})),Re.register("2XGoS",((e,t)=>{var r=Re("8YuUE"),o=Re("hDCF3");const{ANY:n}=o;var s=Re("6rO9c"),i=Re("1wyqe");const a=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===n){if(1===t.length&&t[0].semver===n)return!0;e=r.includePrerelease?[new o(">=0.0.0-0")]:[new o(">=0.0.0")]}if(1===t.length&&t[0].semver===n){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=c(u,t,r):"<"===t.operator||"<="===t.operator?p=l(p,t,r):a.add(t.semver);if(a.size>1)return null;if(u&&p){if(d=i(u.semver,p.semver,r),d>0)return null;if(0===d&&(">="!==u.operator||"<="!==p.operator))return null}for(const e of a){if(u&&!s(e,u+"",r))return null;if(p&&!s(e,p+"",r))return null;for(const o of t)if(!s(e,o+"",r))return!1;return!0}let g=!(!p||r.includePrerelease||!p.semver.prerelease.length)&&p.semver,y=!(!u||r.includePrerelease||!u.semver.prerelease.length)&&u.semver;g&&1===g.prerelease.length&&"<"===p.operator&&0===g.prerelease[0]&&(g=!1);for(const e of t){if(v=v||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,u)if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),">"===e.operator||">="===e.operator){if(h=c(u,e,r),h===e&&h!==u)return!1}else if(">="===u.operator&&!s(u.semver,e+"",r))return!1;if(p)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(f=l(p,e,r),f===e&&f!==p)return!1}else if("<="===p.operator&&!s(p.semver,e+"",r))return!1;if(!e.operator&&(p||u)&&0!==d)return!1}return!(u&&m&&!p&&0!==d||p&&v&&!u&&0!==d||y||g)},c=(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},l=(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 n=!1;e:for(const r of e.set){for(const e of t.set){const t=a(r,e,o);if(n=n||null!==t,t)continue e}if(n)return!1}return!0}}));const Ar=Or(Re("1Hds5")),Ir=Or(le),Nr=Or(ue);Re.register("9AGbw",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0});var r=Re("cEfL5");let o;var n,s,i,a,c;(s=n=e.exports.HttpCodes||(e.exports.HttpCodes={}))[s.OK=200]="OK",s[s.MultipleChoices=300]="MultipleChoices",s[s.MovedPermanently=301]="MovedPermanently",s[s.ResourceMoved=302]="ResourceMoved",s[s.SeeOther=303]="SeeOther",s[s.NotModified=304]="NotModified",s[s.UseProxy=305]="UseProxy",s[s.SwitchProxy=306]="SwitchProxy",s[s.TemporaryRedirect=307]="TemporaryRedirect",s[s.PermanentRedirect=308]="PermanentRedirect",s[s.BadRequest=400]="BadRequest",s[s.Unauthorized=401]="Unauthorized",s[s.PaymentRequired=402]="PaymentRequired",s[s.Forbidden=403]="Forbidden",s[s.NotFound=404]="NotFound",s[s.MethodNotAllowed=405]="MethodNotAllowed",s[s.NotAcceptable=406]="NotAcceptable",s[s.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",s[s.RequestTimeout=408]="RequestTimeout",s[s.Conflict=409]="Conflict",s[s.Gone=410]="Gone",s[s.TooManyRequests=429]="TooManyRequests",s[s.InternalServerError=500]="InternalServerError",s[s.NotImplemented=501]="NotImplemented",s[s.BadGateway=502]="BadGateway",s[s.ServiceUnavailable=503]="ServiceUnavailable",s[s.GatewayTimeout=504]="GatewayTimeout",(a=i=e.exports.Headers||(e.exports.Headers={})).Accept="accept",a.ContentType="content-type",(c=e.exports.MediaTypes||(e.exports.MediaTypes={})).ApplicationJson="application/json",e.exports.getProxyUrl=e=>{let t=r.getProxyUrl(new URL(e));return t?t.href:""};const l=[n.MovedPermanently,n.ResourceMoved,n.SeeOther,n.TemporaryRedirect,n.PermanentRedirect],u=[n.BadGateway,n.ServiceUnavailable,n.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,c.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,c.ApplicationJson),r[i.ContentType]=this._getExistingOrDefaultHeader(r,i.ContentType,c.ApplicationJson);let n=await this.post(e,o,r);return this._processResponse(n,this.requestOptions)}async putJson(e,t,r={}){let o=JSON.stringify(t,null,2);r[i.Accept]=this._getExistingOrDefaultHeader(r,i.Accept,c.ApplicationJson),r[i.ContentType]=this._getExistingOrDefaultHeader(r,i.ContentType,c.ApplicationJson);let n=await this.put(e,o,r);return this._processResponse(n,this.requestOptions)}async patchJson(e,t,r={}){let o=JSON.stringify(t,null,2);r[i.Accept]=this._getExistingOrDefaultHeader(r,i.Accept,c.ApplicationJson),r[i.ContentType]=this._getExistingOrDefaultHeader(r,i.ContentType,c.ApplicationJson);let n=await this.patch(e,o,r);return this._processResponse(n,this.requestOptions)}async request(e,t,r,o){if(this._disposed)throw Error("Client has already been disposed.");let s,i=new URL(t),a=this._prepareRequest(e,i,o),c=this._allowRetries&&-1!=p.indexOf(e)?this._maxRetries+1:1,d=0;for(;c>d;){if(s=await this.requestRaw(a,r),s&&s.message&&s.message.statusCode===n.Unauthorized){let e;for(let t=0;this.handlers.length>t;t++)if(this.handlers[t].canHandleAuthentication(s)){e=this.handlers[t];break}return e?e.handleAuthentication(this,a,r):s}let t=this._maxRedirects;for(;-1!=l.indexOf(s.message.statusCode)&&this._allowRedirects&&t>0;){const n=s.message.headers.location;if(!n)break;let c=new URL(n);if("https:"==i.protocol&&i.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");if(await s.readBody(),c.hostname!==i.hostname)for(let e in o)"authorization"===e.toLowerCase()&&delete o[e];a=this._prepareRequest(e,c,o),s=await this.requestRaw(a,r),t--}if(-1==u.indexOf(s.message.statusCode))return s;d+=1,c>d&&(await s.readBody(),await this._performExponentialBackoff(d))}return s}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}requestRaw(e,t){return new Promise(((r,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 n=!1,s=(e,t)=>{n||(n=!0,r(e,t))},i=e.httpModule.request(e.options,(e=>{let t=new h(e);s(null,t)}));i.on("socket",(e=>{o=e})),i.setTimeout(this._socketTimeout||18e4,(()=>{o&&o.end(),s(Error("Request timeout: "+e.options.path),null)})),i.on("error",(e=>{s(e,null)})),t&&"string"==typeof t&&i.write(t,"utf8"),t&&"string"!=typeof t?(t.on("close",(()=>{i.end()})),t.pipe(i)):i.end()}getAgent(e){let t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,r){const o={};o.parsedUrl=t;const n="https:"===o.parsedUrl.protocol;o.httpModule=n?xe:ye;const s=n?443:80;return o.options={},o.options.host=o.parsedUrl.hostname,o.options.port=o.parsedUrl.port?parseInt(o.parsedUrl.port):s,o.options.path=(o.parsedUrl.pathname||"")+(o.parsedUrl.search||""),o.options.method=e,o.options.headers=this._mergeHeaders(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 n;return this.requestOptions&&this.requestOptions.headers&&(o=(n=this.requestOptions.headers,Object.keys(n).reduce(((e,t)=>(e[t.toLowerCase()]=n[t],e)),{}))[t]),e[t]||o||r}_getAgent(e){let t,n=r.getProxyUrl(e),s=n&&n.hostname;if(this._keepAlive&&s&&(t=this._proxyAgent),this._keepAlive&&!s&&(t=this._agent),t)return t;const i="https:"===e.protocol;let a=100;if(this.requestOptions&&(a=this.requestOptions.maxSockets||ye.globalAgent.maxSockets),s){o||(o=Re("hEhmi"));const e={maxSockets:a,keepAlive:this._keepAlive,proxy:{...(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`},host:n.hostname,port:n.port}};let r;const s="https:"===n.protocol;r=i?s?o.httpsOverHttps:o.httpsOverHttp:s?o.httpOverHttps:o.httpOverHttp,t=r(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:a};t=i?new xe.Agent(e):new ye.Agent(e),this._agent=t}return t||(t=i?xe.globalAgent:ye.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 s=e.message.statusCode,i={statusCode:s,result:null,headers:{}};let a,c;s==n.NotFound&&r(i);try{c=await e.readBody(),c&&c.length>0&&(a=t&&t.deserializeDates?JSON.parse(c,f.dateTimeDeserializer):JSON.parse(c),i.result=a),i.headers=e.message.headers}catch(e){}if(s>299){let e;e=a&&a.message?a.message:c&&c.length>0?c:"Failed request: ("+s+")";let t=new d(e,s);t.result=i.result,o(t)}else r(i)}))}}e.exports.HttpClient=f})),Re.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,n="https:"===e.protocol;return r(e)||(o=n?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})),Re.register("hEhmi",((e,t)=>{e.exports=Re("88ZfI")})),Re.register("88ZfI",(function(e,r){function o(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||ye.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",((e,r,o,n)=>{for(var i=s(r,o,n),a=0,c=t.requests.length;c>a;++a){var l=t.requests[a];if(l.host===i.host&&l.port===i.port)return t.requests.splice(a,1),void l.request.onSocket(e)}e.destroy(),t.removeSocket(e)}))}function n(e,t){var r=this;o.prototype.createSocket.call(r,e,(o=>{var n=e.request.getHeader("host"),s=i({},r.options,{socket:o,servername:n?n.replace(/:.*$/,""):e.host}),a=we.connect(0,s);r.sockets[r.sockets.indexOf(o)]=a,t(a)}))}function s(e,t,r){return"string"==typeof e?{host:e,port:t,localAddress:r}:e}function i(e){for(var t=1,r=arguments.length;r>t;++t){var o=arguments[t];if("object"==typeof o)for(var n=Object.keys(o),s=0,i=n.length;i>s;++s){var a=n[s];void 0!==o[a]&&(e[a]=o[a])}}return e}var a,c,l,u,p,d;t(e.exports,"debug",(()=>p),(e=>p=e)),t(e.exports,"httpOverHttp",(()=>u),(e=>u=e)),t(e.exports,"httpsOverHttp",(()=>a),(e=>a=e)),t(e.exports,"httpsOverHttps",(()=>l),(e=>l=e)),t(e.exports,"httpOverHttps",(()=>c),(e=>c=e)),u=e=>{var t=new o(e);return t.request=ye.request,t},a=e=>{var t=new o(e);return t.request=ye.request,t.createSocket=n,t.defaultPort=443,t},c=e=>{var t=new o(e);return t.request=xe.request,t},l=e=>{var t=new o(e);return t.request=xe.request,t.createSocket=n,t.defaultPort=443,t},ge.inherits(o,fe.EventEmitter),o.prototype.addRequest=function(e,t,r,o){var n=this,a=i({request:e},n.options,s(t,r,o));this.maxSockets>n.sockets.length?n.createSocket(a,(t=>{function r(){n.emit("free",t,a)}function o(e){n.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)})):n.requests.push(a)},o.prototype.createSocket=function(e,t){function r(r,s,i){var c;return a.removeAllListeners(),s.removeAllListeners(),200!==r.statusCode?(d("tunneling socket could not be established, statusCode=%d",r.statusCode),s.destroy(),(c=Error("tunneling socket could not be established, statusCode="+r.statusCode)).code="ECONNRESET",e.request.emit("error",c),void o.removeSocket(n)):i.length>0?(d("got illegal response body from proxy"),s.destroy(),(c=Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",c),void o.removeSocket(n)):(d("tunneling connection has established"),o.sockets[o.sockets.indexOf(n)]=s,t(s))}var o=this,n={};o.sockets.push(n);var s=i({},o.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(s.localAddress=e.localAddress),s.proxyAuth&&(s.headers=s.headers||{},s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")),d("making CONNECT request");var a=o.request(s);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(n)})),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)}))}},p=d=()=>{}}));const Lr=Or(Re("9AGbw")),jr=Or(Re("hBwzM")),Dr=Or(ve),kr=Or(ge);Re.register("kceBH",((e,t)=>{var r=Re("diWfV"),o=Re("8n3PT");e.exports=(e,t,n)=>{var s=t&&n||0;"string"==typeof e&&(t="binary"===e?Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||r)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var a=0;16>a;++a)t[s+a]=i[a];return t||o(i)}})),Re.register("diWfV",((e,t)=>{e.exports=()=>Ee.randomBytes(16)})),Re.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 Mr=$r(Re("kceBH"));var Fr={},Gr=Fr&&Fr.__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]}),Ur=Fr&&Fr.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),Br=Fr&&Fr.__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)&&Gr(t,e,r);return Ur(t,e),t}),Vr=Fr&&Fr.__awaiter||((e,t,r,o)=>new(r||(r=Promise))(((n,s)=>{function i(e){try{c(o.next(e))}catch(e){s(e)}}function a(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((o=o.apply(e,t||[])).next())})));Object.defineProperty(Fr,"__esModule",{value:!0}),Fr.getExecOutput=Fr.exec=void 0,Re.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}),n=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t}),s=e.exports&&e.exports.__awaiter||((e,t,r,o)=>new(r||(r=Promise))(((n,s)=>{function i(e){try{c(o.next(e))}catch(e){s(e)}}function a(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((o=o.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.argStringToArray=e.exports.ToolRunner=void 0;const i=n(le),a=n(fe),c=n(de),l=n(ue),u=n(Re("q05Mr")),p=n(Re("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 n=t?"":"[command]";if(d)if(this._isCmdFile()){n+=r;for(const e of o)n+=" "+e}else if(e.windowsVerbatimArguments){n+=`"${r}"`;for(const e of o)n+=" "+e}else{n+=this._windowsQuoteCmdArg(r);for(const e of o)n+=" "+this._windowsQuoteCmdArg(e)}else{n+=r;for(const e of o)n+=" "+e}return n}_processLineBuffer(e,t,r){try{let o=t+""+e,n=o.indexOf(i.EOL);for(;n>-1;)r(o.substring(0,n)),o=o.substring(n+i.EOL.length),n=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='"',n=!0;for(let t=e.length;t>0;t--)o+=e[t-1],n&&"\\"===e[t-1]?o+="\\":'"'===e[t-1]?(n=!0,o+='"'):n=!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 s(this,void 0,void 0,(function*(){return!p.isRooted(this.toolPath)&&(this.toolPath.includes("/")||d&&this.toolPath.includes("\\"))&&(this.toolPath=l.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield u.which(this.toolPath,!0),new Promise(((e,t)=>s(this,void 0,void 0,(function*(){this._debug("exec tool: "+this.toolPath),this._debug("arguments:");for(const e of this.args)this._debug(" "+e);const r=this._cloneExecOptions(this.options);!r.silent&&r.outStream&&r.outStream.write(this._getCommandString(r)+i.EOL);const 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 n=this._getSpawnFileName(),s=c.spawn(n,this._getSpawnArgs(r),this._getSpawnOptions(this.options,n));let a="";s.stdout&&s.stdout.on("data",(e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!r.silent&&r.outStream&&r.outStream.write(e),a=this._processLineBuffer(e,a,(e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e)}))}));let l="";if(s.stderr&&s.stderr.on("data",(e=>{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),l=this._processLineBuffer(e,l,(e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e)}))})),s.on("error",(e=>{o.processError=e.message,o.processExited=!0,o.processClosed=!0,o.CheckComplete()})),s.on("exit",(e=>{o.processExitCode=e,o.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),o.CheckComplete()})),s.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),l.length>0&&this.emit("errline",l),s.removeAllListeners(),r?t(r):e(o)})),this.options.input){if(!s.stdin)throw Error("child process missing stdin");s.stdin.end(this.options.input)}}))))}))}},e.exports.argStringToArray=e=>{function t(e){n&&'"'!==e&&(s+="\\"),s+=e,n=!1}const r=[];let o=!1,n=!1,s="";for(let i=0;e.length>i;i++){const a=e.charAt(i);'"'!==a?"\\"===a&&n?t(a):"\\"===a&&o?n=!0:" "!==a||o?t(a):s.length>0&&(r.push(s),s=""):n?t(a):o=!o}return s.length>0&&r.push(s.trim()),r};class h extends a.EventEmitter{constructor(e,t){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!t)throw Error("toolPath must not be empty");this.options=e,this.toolPath=t,e.delay&&(this.delay=e.delay)}CheckComplete(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=Se.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())}}}));const qr=Br(Re("fk1Ma"));Fr.exec=w,Fr.getExecOutput=function(e,t,r){var o,n;return Vr(this,void 0,void 0,(function*(){let s="",i="";const a=new be.StringDecoder("utf8"),c=new be.StringDecoder("utf8"),l=null===(o=null==r?void 0:r.listeners)||void 0===o?void 0:o.stdout,u=null===(n=null==r?void 0:r.listeners)||void 0===n?void 0:n.stderr,p=Object.assign(Object.assign({},null==r?void 0:r.listeners),{stdout(e){s+=a.write(e),l&&l(e)},stderr(e){i+=c.write(e),u&&u(e)}}),d=yield w(e,t,Object.assign(Object.assign({},r),{listeners:p}));return s+=a.end(),i+=c.end(),{exitCode:d,stdout:s,stderr:i}}))};var Hr={},Xr=Hr&&Hr.__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]}),Wr=Hr&&Hr.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),Yr=Hr&&Hr.__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)&&Xr(t,e,r);return Wr(t,e),t}),Zr=Hr&&Hr.__awaiter||((e,t,r,o)=>new(r||(r=Promise))(((n,s)=>{function i(e){try{c(o.next(e))}catch(e){s(e)}}function a(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((o=o.apply(e,t||[])).next())})));Object.defineProperty(Hr,"__esModule",{value:!0}),Hr.RetryHelper=void 0;const zr=Yr(Re("6FGZZ"));Hr.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 Zr(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;zr.info(e.message)}const o=this.getSleepAmount();zr.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 Zr(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,1e3*e)))}))}};class Jr extends Error{constructor(e){super("Unexpected HTTP response: "+e),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}}br.HTTPError=Jr;const Kr="win32"===process.platform,Qr="darwin"===process.platform;br.downloadTool=function(e,t,r,o){return _r(this,void 0,void 0,(function*(){t=t||Nr.join(R(),Mr.default()),yield Cr.mkdirP(Nr.dirname(t)),Rr.debug("Downloading "+e),Rr.debug("Destination "+t);const n=C("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),s=C("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),i=new Hr.RetryHelper(3,n,s);return yield i.execute((()=>_r(this,void 0,void 0,(function*(){return yield function(e,t,r,o){return _r(this,void 0,void 0,(function*(){if(Tr.existsSync(t))throw Error(`Destination file path ${t} already exists`);const n=new Lr.HttpClient("actions/tool-cache",[],{allowRetries:!1});r&&(Rr.debug("set auth"),void 0===o&&(o={}),o.authorization=r);const s=yield n.get(e,o);if(200!==s.message.statusCode){const t=new Jr(s.message.statusCode);throw Rr.debug(`Failed to download from "${e}". Code(${s.message.statusCode}) Message(${s.message.statusMessage})`),t}const i=kr.promisify(Dr.pipeline),a=C("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>s.message))();let c=!1;try{return yield i(a,Tr.createWriteStream(t)),Rr.debug("download complete"),c=!0,t}finally{if(!c){Rr.debug("download failed");try{yield Cr.rmRF(t)}catch(e){Rr.debug(`Failed to delete '${t}'. ${e.message}`)}}}}))}(e,t||"",r,o)}))),(e=>!(e instanceof Jr&&e.httpStatusCode&&500>e.httpStatusCode&&408!==e.httpStatusCode&&429!==e.httpStatusCode)))}))},br.extract7z=function(e,t,r){return _r(this,void 0,void 0,(function*(){he.ok(Kr,"extract7z() not supported on current OS"),he.ok(e,'parameter "file" is required'),t=yield b(t);const o=process.cwd();if(process.chdir(t),r)try{const t=["x",Rr.isDebug()?"-bb1":"-bb0","-bd","-sccUTF-8",e],n={silent:!0};yield Fr.exec(`"${r}"`,t,n)}finally{process.chdir(o)}else{const r=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${Nr.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,"")}'`],n={silent:!0};try{const e=yield Cr.which("powershell",!0);yield Fr.exec(`"${e}"`,r,n)}finally{process.chdir(o)}}return t}))},br.extractTar=function(e,t,r="xz"){return _r(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'file' is required");t=yield b(t),Rr.debug("Checking tar --version");let o="";yield Fr.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout(e){return o+=""+e},stderr(e){return o+=""+e}}}),Rr.debug(o.trim());const n=o.toUpperCase().includes("GNU TAR");let s;s=r instanceof Array?r:[r],Rr.isDebug()&&!r.includes("v")&&s.push("-v");let i=t,a=e;return Kr&&n&&(s.push("--force-local"),i=t.replace(/\\/g,"/"),a=e.replace(/\\/g,"/")),n&&(s.push("--warning=no-unknown-keyword"),s.push("--overwrite")),s.push("-C",i,"-f",a),yield Fr.exec("tar",s),t}))},br.extractXar=function(e,t,r=[]){return _r(this,void 0,void 0,(function*(){let o;he.ok(Qr,"extractXar() not supported on current OS"),he.ok(e,'parameter "file" is required'),t=yield b(t),o=r instanceof Array?r:[r],o.push("-x","-C",t,"-f",e),Rr.isDebug()&&o.push("-v");const n=yield Cr.which("xar",!0);var s;return yield Fr.exec(`"${n}"`,(s=o,Array.from(new Set(s)))),t}))},br.extractZip=function(e,t){return _r(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'file' is required");return t=yield b(t),Kr?yield function(e,t){return _r(this,void 0,void 0,(function*(){const r=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),o=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),n=yield Cr.which("pwsh",!1);if(n){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(" ")];Rr.debug("Using pwsh at path: "+n),yield Fr.exec(`"${n}"`,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 Cr.which("powershell",!0);Rr.debug("Using powershell at path: "+t),yield Fr.exec(`"${t}"`,e)}}))}(e,t):yield function(e,t){return _r(this,void 0,void 0,(function*(){const r=yield Cr.which("unzip",!0),o=[e];Rr.isDebug()||o.unshift("-q"),o.unshift("-o"),yield Fr.exec(`"${r}"`,o,{cwd:t})}))}(e,t),t}))},br.cacheDir=function(e,t,r,o){return _r(this,void 0,void 0,(function*(){if(r=jr.clean(r)||r,o=o||Ir.arch(),Rr.debug(`Caching tool ${t} ${r} ${o}`),Rr.debug("source dir: "+e),!Tr.statSync(e).isDirectory())throw Error("sourceDir is not a directory");const n=yield S(t,r,o);for(const t of Tr.readdirSync(e)){const r=Nr.join(e,t);yield Cr.cp(r,n,{recursive:!0})}return P(t,r,o),n}))},br.cacheFile=function(e,t,r,o,n){return _r(this,void 0,void 0,(function*(){if(o=jr.clean(o)||o,n=n||Ir.arch(),Rr.debug(`Caching tool ${r} ${o} ${n}`),Rr.debug("source file: "+e),!Tr.statSync(e).isFile())throw Error("sourceFile is not a file");const s=yield S(r,o,n),i=Nr.join(s,t);return Rr.debug("destination file "+i),yield Cr.cp(e,i),P(r,o,n),s}))},br.find=(e,t,r)=>{if(!e)throw Error("toolName parameter is required");if(!t)throw Error("versionSpec parameter is required");r=r||Ir.arch(),O(t)||(t=_(E(e,r),t));let o="";if(t){t=jr.clean(t)||"";const n=Nr.join($(),e,t,r);Rr.debug("checking cache: "+n),Tr.existsSync(n)&&Tr.existsSync(n+".complete")?(Rr.debug(`Found tool in cache ${e} ${t} ${r}`),o=n):Rr.debug("not found")}return o},br.findAllVersions=E,br.getManifestFromRepo=function(e,t,r,o="master"){return _r(this,void 0,void 0,(function*(){let n=[];const s=`https://api.github.com/repos/${e}/${t}/git/trees/${o}`,i=new Lr.HttpClient("tool-cache"),a={};r&&(Rr.debug("set auth"),a.authorization=r);const c=yield i.getJson(s,a);if(!c.result)return n;let l="";for(const e of c.result.tree)if("versions-manifest.json"===e.path){l=e.url;break}a.accept="application/vnd.github.VERSION.raw";let u=yield(yield i.get(l,a)).readBody();if(u){u=u.replace(/^\uFEFF/,"");try{n=JSON.parse(u)}catch(e){Rr.debug("Invalid json")}}return n}))},br.findFromManifest=function(e,t,r,o=Ir.arch()){return _r(this,void 0,void 0,(function*(){return yield Ar._findMatch(e,t,r,o)}))},br.isExplicitVersion=O,br.evaluateVersions=_,Ce=Re("6FGZZ");var eo=Re("ju11K"),to=Re("5M2Mq"),ro=(Ce=Re("6FGZZ"),{});const{Worker:oo}=(()=>{try{return $e68279e3338bc371$import$ad18b0afc1a10da7}catch(e){return{}}})();let no,so=0;const io=new Map,ao=(e,t,r)=>new Promise(((o,n)=>{const s=so++;io.set(s,{resolve:o,reject:n}),void 0===no&&(no=new oo(ue.join(__dirname,"thread.js")),no.on("message",(e=>{const t=io.get(e.id);io.delete(e.id),0===io.size&&no.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))})),no.on("error",(e=>{throw e}))),no.ref(),no.postMessage({id:s,method:e,args:t},r)})),co=(e,t={})=>{let r=t.encoding||"hex";"buffer"===r&&(r=void 0);const o=Ee.createHash(t.algorithm||"sha512"),n=e=>{o.update(e,"string"==typeof e?"utf8":void 0)};return Array.isArray(e)?e.forEach(n):n(e),o.digest(r)};co.stream=(e={})=>{let t=e.encoding||"hex";"buffer"===t&&(t=void 0);const r=Ee.createHash(e.algorithm||"sha512");return r.setEncoding(t),r},co.fromStream=async(e,t={})=>{if(!Ut(e))throw new TypeError("Expected a stream");return new Promise(((r,o)=>{e.on("error",o).pipe(co.stream(t)).on("error",o).on("finish",(function(){r(this.read())}))}))},void 0===oo?(co.fromFile=async(e,t)=>co.fromStream(pe.createReadStream(e),t),co.async=async(e,t)=>co(e,t)):(co.fromFile=async(e,{algorithm:t="sha512",encoding:r="hex"}={})=>{const o=await ao("hashFile",[t,e]);return"buffer"===r?Buffer.from(o):Buffer.from(o).toString(r)},co.async=async(e,{algorithm:t="sha512",encoding:r="hex"}={})=>{"buffer"===r&&(r=void 0);const o=await ao("hash",[t,e]);return void 0===r?Buffer.from(o):Buffer.from(o).toString(r)}),co.fromFileSync=(e,t)=>co(pe.readFileSync(e),t),ro=co,Ce=Re("6FGZZ"),Ce=Re("6FGZZ");var lo=Re("hBwzM");const uo="win32"===process.platform,po="linux"===process.platform,ho=["x86","x64"],fo=["win32","win64"];lo=Re("hBwzM");const mo=(Ce=Re("6FGZZ")).getInput("token"),vo=mo&&"GITHUB.COM"===new URL(process.env.GITHUB_SERVER_URL||"https://github.com").hostname.toUpperCase()?"token "+mo:void 0,go="https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json";Ce=Re("6FGZZ"),Ce=Re("6FGZZ"),lo=Re("hBwzM");var yo=Re("9AGbw"),xo=(lo=Re("hBwzM"),Ce=Re("6FGZZ"),Re("1wyqe"));let wo,Eo;Ce=Re("6FGZZ"),eo=Re("ju11K");var bo=Re("k3zcS"),So=Re("q05Mr");const Po=(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"]),Oo=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"]),_o=new Map([["12.0.1","12.0.1-rc4"]]),$o={"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"},Ro=new Set(["10.0.1"]);var Co;Ce=Re("6FGZZ"),Re.register("jJT7R",((e,r)=>{function o(e){return-1!=["PATH","INCLUDE","LIB","LIBPATH"].indexOf(e.toUpperCase())}function n(e,t,r,n,s){if("win32"!=Pe.platform)return void i.info("This is not a Windows virtual environment, bye!");Pe.env.PATH+=ue.delimiter+u;let p={win32:"x86",win64:"x64",x86_64:"x64","x86-64":"x64"};e.toLowerCase()in p&&(e=p[e.toLowerCase()]);var d=[e];"true"==n&&d.push("uwp"),t&&d.push(t),r&&d.push("-vcvars_ver="+r),"true"==s&&d.push("-vcvars_spectre_libs=spectre");const h=`"${(()=>{let e=(e=>{try{return(""+de.execSync("vswhere -products * -latest -prerelease -property installationPath")).trim()+"\\VC\\Auxiliary\\Build\\vcvarsall.bat"}catch(e){i.warning("vswhere failed: "+e)}return null})();if(e&&pe.existsSync(e))return i.info("Found with vswhere: "+e),e;i.info("Not found with vswhere");for(const t of l)for(const r of c)if(e=`${a}\\Microsoft Visual Studio\\${t}\\${r}\\VC\\Auxiliary\\Build\\vcvarsall.bat`,i.info("Trying standard location: "+e),pe.existsSync(e))return i.info("Found standard location: "+e),e;if(i.info("Not found in standard locations"),e=a+"\\Microsoft Visual C++ Build Tools\\vcbuildtools.bat",pe.existsSync(e))return i.info("Found VS 2015: "+e),e;throw i.info("Not found in VS 2015 location: "+e),Error("Microsoft Visual Studio not found")})()}" ${d.join(" ")}`;i.debug("vcvars command-line: "+h);const f=(""+de.execSync(`set && cls && ${h} && cls && set`,{shell:"cmd"})).split("\f"),m=f[0].split("\r\n"),v=f[1].split("\r\n"),g=f[2].split("\r\n"),y=v.filter((e=>!(!e.match(/^\[ERROR.*\]/)||e.match(/Error in script usage. The correct usage is:$/))));if(y.length>0)throw Error("invalid parameters\r\n"+y.join("\r\n"));let x={};for(let e of m){const[t,r]=e.split("=");x[t]=r}i.startGroup("Environment variables");for(let e of g){if(!e.includes("="))continue;let[t,r]=e.split("=");r!==x[t]&&(i.info("Setting "+t),o(t)&&(r=r.split(";").filter(((e,t,r)=>r.indexOf(e)===t)).join(";")),i.exportVariable(t,r))}i.endGroup(),i.info("Configured Developer Command Prompt")}var s;t(e.exports,"setupMSVCDevCmd",(()=>s),(e=>s=e));var i=Re("k2PtG");const a=Pe.env["ProgramFiles(x86)"],c=["Enterprise","Professional","Community"],l=["2019","2017"],u=a+"\\Microsoft Visual Studio\\Installer";s=n;try{n(i.getInput("arch"),i.getInput("sdk"),i.getInput("toolset"),i.getInput("uwp"),i.getInput("spectre"))}catch(e){i.setFailed("Could not setup Developer Command Prompt: "+e.message)}})),Re.register("k2PtG",(function(e,t){"use strict";function r(e){a.issue("error",e instanceof Error?""+e:e)}function o(e){a.issue("group",e)}function n(){a.issue("endgroup")}var s=e.exports&&e.exports.__awaiter||((e,t,r,o)=>new(r||(r=Promise))(((n,s)=>{function i(e){try{c(o.next(e))}catch(e){s(e)}}function a(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((o=o.apply(e,t||[])).next())}))),i=e.exports&&e.exports.__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(e.exports,"__esModule",{value:!0});var a=Re("lTVmt"),c=Re("48DC3"),l=Re("3tRAC");const u=i(le),p=i(ue);var d,h;(h=d=e.exports.ExitCode||(e.exports.ExitCode={}))[h.Success=0]="Success",h[h.Failure=1]="Failure",e.exports.exportVariable=(e,t)=>{const r=l.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV){const t="_GitHubActionsFileCommandDelimeter_";c.issueCommand("ENV",`${e}<<${t}${u.EOL}${r}${u.EOL}${t}`)}else a.issueCommand("set-env",{name:e},r)},e.exports.setSecret=e=>{a.issueCommand("add-mask",{},e)},e.exports.addPath=e=>{process.env.GITHUB_PATH?c.issueCommand("PATH",e):a.issueCommand("add-path",{},e),process.env.PATH=`${e}${p.delimiter}${process.env.PATH}`},e.exports.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()},e.exports.setOutput=(e,t)=>{a.issueCommand("set-output",{name:e},t)},e.exports.setCommandEcho=e=>{a.issue("echo",e?"on":"off")},e.exports.setFailed=e=>{process.exitCode=d.Failure,r(e)},e.exports.isDebug=()=>"1"===process.env.RUNNER_DEBUG,e.exports.debug=e=>{a.issueCommand("debug",{},e)},e.exports.error=r,e.exports.warning=e=>{a.issue("warning",e instanceof Error?""+e:e)},e.exports.info=e=>{process.stdout.write(e+u.EOL)},e.exports.startGroup=o,e.exports.endGroup=n,e.exports.group=function(e,t){return s(this,void 0,void 0,(function*(){let r;o(e);try{r=yield t()}finally{n()}return r}))},e.exports.saveState=(e,t)=>{a.issueCommand("save-state",{name:e},t)},e.exports.getState=e=>process.env["STATE_"+e]||""})),Re.register("lTVmt",(function(e,t){"use strict";function r(e,t,r){const o=new i(e,t,r);process.stdout.write(""+o+n.EOL)}var o=e.exports&&e.exports.__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(e.exports,"__esModule",{value:!0});const n=o(le);var s=Re("3tRAC");e.exports.issueCommand=r,e.exports.issue=(e,t="")=>{r(e,{},t)};class i{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 n=this.properties[o];n&&(r?r=!1:e+=",",e+=`${o}=${t=n,s.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}var t;return e+="::"+(e=>s.toCommandValue(this.message).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A"))(),e}}})),Re.register("3tRAC",((e,t)=>{"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toCommandValue=e=>null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e)})),Re.register("48DC3",((e,t)=>{"use strict";var r=e.exports&&e.exports.__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(e.exports,"__esModule",{value:!0});const o=r(pe),n=r(le);var s=Re("3tRAC");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(!o.existsSync(r))throw Error("Missing file at path: "+r);o.appendFileSync(r,`${s.toCommandValue(t)}${n.EOL}`,{encoding:"utf8"})}}));const To=le.homedir();Co=e=>{if("string"!=typeof e)throw new TypeError("Expected a string, got "+typeof e);return To?e.replace(/^~(?=$|\/|\\)/,To):e};var Ao=Re("1JJDJ");const Io={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"};Ce=Re("6FGZZ"),bo=Re("k3zcS"),to=Re("5M2Mq"),Ce=Re("6FGZZ");const No={cmake(e,t,r){return T("cmake",e,A,t)},ninja(e,t,r){return T("ninja",e,ee,t)},python:B,conan(e,t,r){return H("conan",e)},meson(e,t,r){return H("meson",e)},gcovr(e,t,r){return H("gcovr",e)},async opencppcoverage(e,t,r){if("win32"!==process.platform)return;await x("opencppcoverage",e);const o="C:/Program Files/OpenCppCoverage";return await g(o),{binDir:o}},llvm:K,gcc:ne,choco:y,brew:o,ccache(e,t,r){switch(process.platform){case"win32":return x("ccache",e);case"darwin":return v("ccache",e);case"linux":return m("ccache",e);default:throw Error("Unsupported platform")}},async doxygen(e,t,r){switch(process.platform){case"win32":{await x("doxygen.install",e),await x("graphviz",e),await g("C:/Program Files/Graphviz/bin");const t="C:/Program Files/doxygen/bin";return await g(t),{binDir:t}}case"darwin":return v("doxygen",e),v("graphviz",e);case"linux":return await m("doxygen",e),m("graphviz",e);default:throw Error("Unsupported platform")}},async cppcheck(e,t,r){switch(process.platform){case"win32":{await x("cppcheck",e);const t="C:/Program Files/Cppcheck";return await g(t),{binDir:t}}case"darwin":return v("cppcheck",e);case"linux":return m("cppcheck",e);default:throw Error("Unsupported platform")}},msvc:Q},Lo=["choco","brew","python","cmake","ninja","conan","meson","gcovr","opencppcoverage","ccache","doxygen","cppcheck","llvm","gcc","msvc"],jo=["compiler","architecture",...Lo];ie(process.argv).then((e=>{process.exitCode=e})).catch((e=>{se("main() panicked!"),se(e),process.exitCode=1})); //# sourceMappingURL=setup_cpp.js.map diff --git a/dist/setup_cpp.js.map b/dist/setup_cpp.js.map index d8df12fa..664a22b1 100644 --- a/dist/setup_cpp.js.map +++ b/dist/setup_cpp.js.map @@ -1 +1 @@ -{"mappings":"qJAWSA,EAAOC,EAAMC,EAASC,GAM7B,GALkB,mBAAPD,IACTC,EAAKD,EACLA,EAAO,KAGJC,EAAI,CACP,GAAkB,mBAAPC,QACT,MAAM,IAAIC,UAAS,gCAGd,IAAID,SAAO,CAAWE,EAASC,KACpCP,EAAMC,EAAMC,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c,WAAanB,SAC3BQ,EAAO,iCACb,MAAMH,EAAM,4CACNG,EAAQH,WACLA,uBAGTC,EAAa,UAAYN,GAClBM,EAAa,WAAaN,4BAG3BF,EAAY,UAAYE,GACvBF,EAAY,WAAaE,WAGhC,MAAU5D,MAAK,0BxGenByrD,eyGlCkC7nD,EAA6BlG,EAAsBC,UAC7EE,QAAQC,sBACA,OACNiH,EAAc,WAAanB,GACjC,MAAMK,EAAM,yCACNG,EAAQH,WACLA,uBAGFC,EAAa,WAAaN,sBAG1BF,EAAY,WAAaE,WAGhC,MAAU5D,MAAK,0BzGoBnB2qD,KAAMzyC,GAIF+D,GAAK,sIAsBLb,GAAM,8BAAkDa,IA0H9D/B,GAAKrc,QAAQ6tD,MACVtnC,MAAM7hB,IACL1E,QAAQsE,SAAWI,KAEpBopD,OAAOvsD,IACN4a,GAAK,oBACLA,GAAM5a,GACNvB,QAAQsE,SAAW","sources":["node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js","src/brew/brew.ts","node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js","node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js","node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js","node_modules/.pnpm/signal-exit@3.0.3/node_modules/signal-exit/index.js","node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/index.js","src/utils/setup/setupAptPack.ts","src/utils/setup/setupBrewPack.ts","src/utils/path/addPath.ts","src/chocolatey/chocolatey.ts","src/utils/setup/setupChocoPack.ts","node_modules/.pnpm/@actions+exec@1.1.0/node_modules/@actions/exec/src/exec.ts","node_modules/.pnpm/@actions+tool-cache@1.7.1/node_modules/@actions/tool-cache/src/tool-cache.ts","src/utils/setup/setupBin.ts","src/cmake/cmake.ts","src/python/setup-python/src/utils.ts","src/python/setup-python/src/find-python.ts","src/python/setup-python/src/install-pypy.ts","src/utils/env/isci.ts","src/python/python.ts","src/python/setup-python/src/find-pypy.ts","src/python/setup-python/src/install-python.ts","src/utils/http/validate_url.ts","src/utils/setup/setupPipPack.ts","src/utils/setup/version.ts","src/utils/setup/extract.ts","src/llvm/llvm.ts","src/msvc/msvc.ts","src/ninja/ninja.ts","node_modules/.pnpm/mri@1.2.0/node_modules/mri/lib/index.mjs","src/default_versions.ts","src/gcc/gcc.ts","src/utils/io/io.ts","src/main.ts","node_modules/.pnpm/@actions+core@1.5.0/node_modules/@actions/core/src/core.ts","node_modules/.pnpm/@actions+core@1.5.0/node_modules/@actions/core/src/command.ts","node_modules/.pnpm/@actions+core@1.5.0/node_modules/@actions/core/src/utils.ts","node_modules/.pnpm/@actions+core@1.5.0/node_modules/@actions/core/src/file-command.ts","node_modules/.pnpm/which@2.0.2/node_modules/which/which.js","node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js","node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js","node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js","node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js","node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js","node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js","node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js","node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js","node_modules/.pnpm/strip-final-newline@2.0.0/node_modules/strip-final-newline/index.js","node_modules/.pnpm/npm-run-path@4.0.1/node_modules/npm-run-path/index.js","node_modules/.pnpm/mimic-fn@2.1.0/node_modules/mimic-fn/index.js","node_modules/.pnpm/onetime@5.1.2/node_modules/onetime/index.js","node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/src/main.js","node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/src/signals.js","node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/src/core.js","node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/src/realtime.js","node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/error.js","node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stdio.js","node_modules/.pnpm/signal-exit@3.0.3/node_modules/signal-exit/signals.js","node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/kill.js","node_modules/.pnpm/execa@5.1.1/node_modules/execa/index.js","node_modules/.pnpm/is-stream@2.0.1/node_modules/is-stream/index.js","node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/buffer-stream.js","node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js","node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stream.js","node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/promise.js","node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/command.js","node_modules/.pnpm/@actions+io@1.1.1/node_modules/@actions/io/src/io.ts","node_modules/.pnpm/@actions+io@1.1.1/node_modules/@actions/io/src/io-util.ts","node_modules/.pnpm/@actions+tool-cache@1.7.1/node_modules/@actions/tool-cache/src/manifest.ts","node_modules/.pnpm/semver@7.3.5/node_modules/semver/index.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/internal/re.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/internal/constants.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/internal/debug.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/classes/semver.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/internal/parse-options.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/internal/identifiers.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/functions/parse.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/functions/valid.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/functions/clean.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/functions/inc.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/functions/diff.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/functions/eq.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/functions/compare.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/functions/major.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/functions/minor.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/functions/patch.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/functions/prerelease.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/functions/rcompare.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/functions/compare-loose.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/functions/compare-build.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/functions/sort.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/functions/rsort.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/functions/gt.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/functions/lt.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/functions/neq.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/functions/gte.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/functions/lte.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/functions/cmp.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/functions/coerce.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/classes/comparator.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/classes/range.js","node_modules/.pnpm/lru-cache@6.0.0/node_modules/lru-cache/index.js","node_modules/.pnpm/yallist@4.0.0/node_modules/yallist/yallist.js","node_modules/.pnpm/yallist@4.0.0/node_modules/yallist/iterator.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/functions/satisfies.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/ranges/to-comparators.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/ranges/max-satisfying.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/ranges/min-satisfying.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/ranges/min-version.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/ranges/valid.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/ranges/outside.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/ranges/gtr.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/ranges/ltr.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/ranges/intersects.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/ranges/simplify.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/ranges/subset.js","node_modules/.pnpm/@actions+http-client@1.0.11/node_modules/@actions/http-client/index.js","node_modules/.pnpm/@actions+http-client@1.0.11/node_modules/@actions/http-client/proxy.js","node_modules/.pnpm/tunnel@0.0.6/node_modules/tunnel/index.js","node_modules/.pnpm/tunnel@0.0.6/node_modules/tunnel/lib/tunnel.js","node_modules/.pnpm/uuid@3.4.0/node_modules/uuid/v4.js","node_modules/.pnpm/uuid@3.4.0/node_modules/uuid/lib/rng.js","node_modules/.pnpm/uuid@3.4.0/node_modules/uuid/lib/bytesToUuid.js","node_modules/.pnpm/@actions+exec@1.1.0/node_modules/@actions/exec/src/toolrunner.ts","node_modules/.pnpm/@actions+tool-cache@1.7.1/node_modules/@actions/tool-cache/src/retry-helper.ts","node_modules/.pnpm/hasha@5.2.2/node_modules/hasha/index.js","src/msvc/msvc-dev-cmd/index.js","src/msvc/msvc-dev-cmd/node_modules/@actions/core/src/core.ts","src/msvc/msvc-dev-cmd/node_modules/@actions/core/src/command.ts","src/msvc/msvc-dev-cmd/node_modules/@actions/core/src/utils.ts","src/msvc/msvc-dev-cmd/node_modules/@actions/core/src/file-command.ts","node_modules/.pnpm/untildify@4.0.0/node_modules/untildify/index.js","src/conan/conan.ts","src/meson/meson.ts","src/gcovr/gcovr.ts","src/opencppcoverage/opencppcoverage.ts","src/ccache/ccache.ts","src/doxygen/doxygen.ts","src/cppcheck/cppcheck.ts"],"sourcesContent":["var fs = require('fs')\nvar core\nif (process.platform === 'win32' || global.TESTING_WINDOWS) {\n core = require('./windows.js')\n} else {\n core = require('./mode.js')\n}\n\nmodule.exports = isexe\nisexe.sync = sync\n\nfunction isexe (path, options, cb) {\n if (typeof options === 'function') {\n cb = options\n options = {}\n }\n\n if (!cb) {\n if (typeof Promise !== 'function') {\n throw new TypeError('callback not provided')\n }\n\n return new Promise(function (resolve, reject) {\n isexe(path, options || {}, function (er, is) {\n if (er) {\n reject(er)\n } else {\n resolve(is)\n }\n })\n })\n }\n\n core(path, options || {}, function (er, is) {\n // ignore EACCES because that just means we aren't allowed to run it\n if (er) {\n if (er.code === 'EACCES' || options && options.ignoreErrors) {\n er = null\n is = false\n }\n }\n cb(er, is)\n })\n}\n\nfunction sync (path, options) {\n // my kingdom for a filtered catch\n try {\n return core.sync(path, options || {})\n } catch (er) {\n if (options && options.ignoreErrors || er.code === 'EACCES') {\n return false\n } else {\n throw er\n }\n }\n}\n","import { execFileSync } from \"child_process\"\nimport { dirname } from \"path\"\nimport which from \"which\"\n\nlet binDir: string | undefined\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupBrew(_version: string, _setupCppDir: string, _arch: string) {\n if (![\"darwin\", \"linux\"].includes(process.platform)) {\n return undefined\n }\n if (typeof binDir === \"string\") {\n return { binDir }\n }\n\n const maybeBinDir = which.sync(\"brew\", { nothrow: true })\n if (maybeBinDir !== null) {\n binDir = dirname(maybeBinDir)\n return { binDir }\n }\n\n // brew is not thread-safe\n execFileSync(`/bin/bash -c \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)\"`, {\n stdio: \"inherit\",\n })\n binDir = \"/usr/local/bin/\"\n\n return { binDir }\n}\n","'use strict';\n\nconst path = require('path');\nconst which = require('which');\nconst getPathKey = require('path-key');\n\nfunction resolveCommandAttempt(parsed, withoutPathExt) {\n const env = parsed.options.env || process.env;\n const cwd = process.cwd();\n const hasCustomCwd = parsed.options.cwd != null;\n // Worker threads do not have process.chdir()\n const shouldSwitchCwd = hasCustomCwd && process.chdir !== undefined && !process.chdir.disabled;\n\n // If a custom `cwd` was specified, we need to change the process cwd\n // because `which` will do stat calls but does not support a custom cwd\n if (shouldSwitchCwd) {\n try {\n process.chdir(parsed.options.cwd);\n } catch (err) {\n /* Empty */\n }\n }\n\n let resolved;\n\n try {\n resolved = which.sync(parsed.command, {\n path: env[getPathKey({ env })],\n pathExt: withoutPathExt ? path.delimiter : undefined,\n });\n } catch (e) {\n /* Empty */\n } finally {\n if (shouldSwitchCwd) {\n process.chdir(cwd);\n }\n }\n\n // If we successfully resolved, ensure that an absolute path is returned\n // Note that when a custom `cwd` was used, we need to resolve to an absolute path based on it\n if (resolved) {\n resolved = path.resolve(hasCustomCwd ? parsed.options.cwd : '', resolved);\n }\n\n return resolved;\n}\n\nfunction resolveCommand(parsed) {\n return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);\n}\n\nmodule.exports = resolveCommand;\n","'use strict';\n\nconst isWin = process.platform === 'win32';\n\nfunction notFoundError(original, syscall) {\n return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {\n code: 'ENOENT',\n errno: 'ENOENT',\n syscall: `${syscall} ${original.command}`,\n path: original.command,\n spawnargs: original.args,\n });\n}\n\nfunction hookChildProcess(cp, parsed) {\n if (!isWin) {\n return;\n }\n\n const originalEmit = cp.emit;\n\n cp.emit = function (name, arg1) {\n // If emitting \"exit\" event and exit code is 1, we need to check if\n // the command exists and emit an \"error\" instead\n // See https://github.com/IndigoUnited/node-cross-spawn/issues/16\n if (name === 'exit') {\n const err = verifyENOENT(arg1, parsed, 'spawn');\n\n if (err) {\n return originalEmit.call(cp, 'error', err);\n }\n }\n\n return originalEmit.apply(cp, arguments); // eslint-disable-line prefer-rest-params\n };\n}\n\nfunction verifyENOENT(status, parsed) {\n if (isWin && status === 1 && !parsed.file) {\n return notFoundError(parsed.original, 'spawn');\n }\n\n return null;\n}\n\nfunction verifyENOENTSync(status, parsed) {\n if (isWin && status === 1 && !parsed.file) {\n return notFoundError(parsed.original, 'spawnSync');\n }\n\n return null;\n}\n\nmodule.exports = {\n hookChildProcess,\n verifyENOENT,\n verifyENOENTSync,\n notFoundError,\n};\n","'use strict';\n\nconst cp = require('child_process');\nconst parse = require('./lib/parse');\nconst enoent = require('./lib/enoent');\n\nfunction spawn(command, args, options) {\n // Parse the arguments\n const parsed = parse(command, args, options);\n\n // Spawn the child process\n const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);\n\n // Hook into child process \"exit\" event to emit an error if the command\n // does not exists, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16\n enoent.hookChildProcess(spawned, parsed);\n\n return spawned;\n}\n\nfunction spawnSync(command, args, options) {\n // Parse the arguments\n const parsed = parse(command, args, options);\n\n // Spawn the child process\n const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);\n\n // Analyze if the command does not exist, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16\n result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);\n\n return result;\n}\n\nmodule.exports = spawn;\nmodule.exports.spawn = spawn;\nmodule.exports.sync = spawnSync;\n\nmodule.exports._parse = parse;\nmodule.exports._enoent = enoent;\n","// Note: since nyc uses this module to output coverage, any lines\n// that are in the direct sync flow of nyc's outputCoverage are\n// ignored, since we can never get coverage for them.\nvar assert = require('assert')\nvar signals = require('./signals.js')\nvar isWin = /^win/i.test(process.platform)\n\nvar EE = require('events')\n/* istanbul ignore if */\nif (typeof EE !== 'function') {\n EE = EE.EventEmitter\n}\n\nvar emitter\nif (process.__signal_exit_emitter__) {\n emitter = process.__signal_exit_emitter__\n} else {\n emitter = process.__signal_exit_emitter__ = new EE()\n emitter.count = 0\n emitter.emitted = {}\n}\n\n// Because this emitter is a global, we have to check to see if a\n// previous version of this library failed to enable infinite listeners.\n// I know what you're about to say. But literally everything about\n// signal-exit is a compromise with evil. Get used to it.\nif (!emitter.infinite) {\n emitter.setMaxListeners(Infinity)\n emitter.infinite = true\n}\n\nmodule.exports = function (cb, opts) {\n assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler')\n\n if (loaded === false) {\n load()\n }\n\n var ev = 'exit'\n if (opts && opts.alwaysLast) {\n ev = 'afterexit'\n }\n\n var remove = function () {\n emitter.removeListener(ev, cb)\n if (emitter.listeners('exit').length === 0 &&\n emitter.listeners('afterexit').length === 0) {\n unload()\n }\n }\n emitter.on(ev, cb)\n\n return remove\n}\n\nmodule.exports.unload = unload\nfunction unload () {\n if (!loaded) {\n return\n }\n loaded = false\n\n signals.forEach(function (sig) {\n try {\n process.removeListener(sig, sigListeners[sig])\n } catch (er) {}\n })\n process.emit = originalProcessEmit\n process.reallyExit = originalProcessReallyExit\n emitter.count -= 1\n}\n\nfunction emit (event, code, signal) {\n if (emitter.emitted[event]) {\n return\n }\n emitter.emitted[event] = true\n emitter.emit(event, code, signal)\n}\n\n// { : , ... }\nvar sigListeners = {}\nsignals.forEach(function (sig) {\n sigListeners[sig] = function listener () {\n // If there are no other listeners, an exit is coming!\n // Simplest way: remove us and then re-send the signal.\n // We know that this will kill the process, so we can\n // safely emit now.\n var listeners = process.listeners(sig)\n if (listeners.length === emitter.count) {\n unload()\n emit('exit', null, sig)\n /* istanbul ignore next */\n emit('afterexit', null, sig)\n /* istanbul ignore next */\n if (isWin && sig === 'SIGHUP') {\n // \"SIGHUP\" throws an `ENOSYS` error on Windows,\n // so use a supported signal instead\n sig = 'SIGINT'\n }\n process.kill(process.pid, sig)\n }\n }\n})\n\nmodule.exports.signals = function () {\n return signals\n}\n\nmodule.exports.load = load\n\nvar loaded = false\n\nfunction load () {\n if (loaded) {\n return\n }\n loaded = true\n\n // This is the number of onSignalExit's that are in play.\n // It's important so that we can count the correct number of\n // listeners on signals, and don't wait for the other one to\n // handle it instead of us.\n emitter.count += 1\n\n signals = signals.filter(function (sig) {\n try {\n process.on(sig, sigListeners[sig])\n return true\n } catch (er) {\n return false\n }\n })\n\n process.emit = processEmit\n process.reallyExit = processReallyExit\n}\n\nvar originalProcessReallyExit = process.reallyExit\nfunction processReallyExit (code) {\n process.exitCode = code || 0\n emit('exit', process.exitCode, null)\n /* istanbul ignore next */\n emit('afterexit', process.exitCode, null)\n /* istanbul ignore next */\n originalProcessReallyExit.call(process, process.exitCode)\n}\n\nvar originalProcessEmit = process.emit\nfunction processEmit (ev, arg) {\n if (ev === 'exit') {\n if (arg !== undefined) {\n process.exitCode = arg\n }\n var ret = originalProcessEmit.apply(this, arguments)\n emit('exit', process.exitCode, null)\n /* istanbul ignore next */\n emit('afterexit', process.exitCode, null)\n return ret\n } else {\n return originalProcessEmit.apply(this, arguments)\n }\n}\n","'use strict';\nconst {constants: BufferConstants} = require('buffer');\nconst stream = require('stream');\nconst {promisify} = require('util');\nconst bufferStream = require('./buffer-stream');\n\nconst streamPipelinePromisified = promisify(stream.pipeline);\n\nclass MaxBufferError extends Error {\n\tconstructor() {\n\t\tsuper('maxBuffer exceeded');\n\t\tthis.name = 'MaxBufferError';\n\t}\n}\n\nasync function getStream(inputStream, options) {\n\tif (!inputStream) {\n\t\tthrow new Error('Expected a stream');\n\t}\n\n\toptions = {\n\t\tmaxBuffer: Infinity,\n\t\t...options\n\t};\n\n\tconst {maxBuffer} = options;\n\tconst stream = bufferStream(options);\n\n\tawait new Promise((resolve, reject) => {\n\t\tconst rejectPromise = error => {\n\t\t\t// Don't retrieve an oversized buffer.\n\t\t\tif (error && stream.getBufferedLength() <= BufferConstants.MAX_LENGTH) {\n\t\t\t\terror.bufferedData = stream.getBufferedValue();\n\t\t\t}\n\n\t\t\treject(error);\n\t\t};\n\n\t\t(async () => {\n\t\t\ttry {\n\t\t\t\tawait streamPipelinePromisified(inputStream, stream);\n\t\t\t\tresolve();\n\t\t\t} catch (error) {\n\t\t\t\trejectPromise(error);\n\t\t\t}\n\t\t})();\n\n\t\tstream.on('data', () => {\n\t\t\tif (stream.getBufferedLength() > maxBuffer) {\n\t\t\t\trejectPromise(new MaxBufferError());\n\t\t\t}\n\t\t});\n\t});\n\n\treturn stream.getBufferedValue();\n}\n\nmodule.exports = getStream;\nmodule.exports.buffer = (stream, options) => getStream(stream, {...options, encoding: 'buffer'});\nmodule.exports.array = (stream, options) => getStream(stream, {...options, array: true});\nmodule.exports.MaxBufferError = MaxBufferError;\n","/* eslint-disable require-atomic-updates */\nimport execa from \"execa\"\nimport { InstallationInfo } from \"./setupBin\"\n// import { mightSudo } from \"./sudo\"\n\nlet didUpdate: boolean = false\n\n/** A function that installs a package using apt */\nexport async function setupAptPack(\n name: string,\n version?: string,\n repository: boolean | string = true\n): Promise {\n const apt = \"apt-get\" // mightSudo\n\n if (typeof repository === \"string\") {\n await execa(\"add-apt-repository\", [\"--update\", \"-y\", repository])\n }\n\n if (!didUpdate || repository === true) {\n await execa(apt, [\"update\", \"-y\"])\n didUpdate = true\n }\n\n if (version !== undefined && version !== \"\") {\n try {\n await execa(apt, [\"install\", \"-y\", `${name}=${version}`])\n } catch {\n await execa(apt, [\"install\", \"-y\", `${name}-${version}`])\n }\n } else {\n await execa(apt, [\"install\", \"-y\", name])\n }\n\n return { binDir: \"/usr/bin/\" }\n}\n","/* eslint-disable require-atomic-updates */\nimport execa from \"execa\"\nimport which from \"which\"\nimport { setupBrew } from \"../../brew/brew\"\nimport { InstallationInfo } from \"./setupBin\"\n\nlet hasBrew = false\n\n/** A function that installs a package using brew */\nexport function setupBrewPack(name: string, version?: string): InstallationInfo {\n if (!hasBrew || which.sync(\"brew\", { nothrow: true }) === null) {\n setupBrew(\"\", \"\", process.arch)\n hasBrew = true\n }\n\n // brew is not thread-safe\n execa.sync(\"brew\", [\"install\", version !== undefined && version !== \"\" ? `${name}@${version}` : name])\n\n return { binDir: \"/usr/local/bin/\" }\n}\n","import { addPath as ghAddPath } from \"@actions/core\"\nimport { delimiter } from \"path\"\nimport * as core from \"@actions/core\"\nimport execa from \"execa\"\n\n/** An add path function that works locally or inside GitHub Actions */\nexport async function addPath(path: string) {\n try {\n ghAddPath(path)\n } catch (err) {\n core.error(err as Error)\n switch (process.platform) {\n case \"win32\": {\n await execa(`setx PATH=${path};%PATH%`)\n break\n }\n case \"linux\":\n case \"darwin\": {\n await execa.command(`echo \"export PATH=${path}:$PATH\" >> ~/.profile`)\n await execa.command(`source ~/.profile`)\n core.info(`${path} was added to ~/.profile`)\n break\n }\n default: {\n core.error(`Failed to add ${path} to the percistent PATH. You should add it manually.`)\n process.env.PATH = `${path}${delimiter}${process.env.PATH}`\n }\n }\n }\n}\n","/* eslint-disable require-atomic-updates */\nimport execa from \"execa\"\nimport { existsSync } from \"fs\"\nimport { dirname } from \"path\"\nimport which from \"which\"\nimport { InstallationInfo } from \"../utils/setup/setupBin\"\n\nlet binDir: string | undefined\n\nexport function setupChocolatey(\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _version: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _setupCppDir: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _arch: string\n): InstallationInfo | undefined {\n if (process.platform !== \"win32\") {\n return undefined\n }\n\n if (typeof binDir === \"string\") {\n return { binDir }\n }\n\n const maybeBinDir = which.sync(\"choco\", { nothrow: true })\n if (maybeBinDir !== null) {\n binDir = dirname(maybeBinDir)\n return { binDir }\n }\n\n // https://docs.chocolatey.org/en-us/choco/setup#install-with-cmd.exe\n execa.commandSync(\n `@\"%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\"`\n )\n\n const maybeChoco = which.sync(\"choco\", { nothrow: true })\n if (maybeChoco !== null) {\n binDir = dirname(maybeChoco)\n } else {\n binDir = \"C:/ProgramData/Chocolatey/bin/\"\n }\n\n if (existsSync(binDir)) {\n return { binDir }\n }\n return undefined\n}\n","/* eslint-disable require-atomic-updates */\nimport { addPath } from \"../path/addPath\"\nimport which from \"which\"\nimport { setupChocolatey } from \"../../chocolatey/chocolatey\"\nimport { InstallationInfo } from \"./setupBin\"\nimport execa from \"execa\"\n\nlet hasChoco = false\n\n/** A function that installs a package using choco */\nexport async function setupChocoPack(name: string, version?: string, args: string[] = []): Promise {\n if (!hasChoco || which.sync(\"choco\", { nothrow: true }) === null) {\n await setupChocolatey(\"\", \"\", process.arch)\n hasChoco = true\n }\n\n if (version !== undefined && version !== \"\") {\n execa.sync(\"choco\", [\"install\", \"-y\", name, `--version=${version}`, ...args])\n } else {\n execa.sync(\"choco\", [\"install\", \"-y\", name, ...args])\n }\n\n const binDir = \"C:/ProgramData/Chocolatey/bin/\"\n await addPath(binDir)\n return { binDir }\n}\n",null,null,"import { find, downloadTool, cacheDir } from \"@actions/tool-cache\"\nimport { info } from \"@actions/core\"\nimport { addPath } from \"../path/addPath\"\nimport { join } from \"path\"\nimport { existsSync } from \"fs\"\nimport * as hasha from \"hasha\"\nimport { tmpdir } from \"os\"\n\n/** A type that describes a package */\nexport type PackageInfo = {\n /** Url to download the package */\n url: string\n /** The top folder name once it is extracted. It can be `\"\"` if there is no top folder */\n extractedFolderName: string\n /** The relative directory in which the binary is located. It can be `\"\"` if the exe is in the top folder */\n binRelativeDir: string\n /** The function to extract the downloaded archive. It can be `undefined`, if the binary itself is downloaded directly. */\n extractFunction?: {\n (file: string, dest: string): Promise | Promise\n }\n}\n\nexport type InstallationInfo = {\n /** The top install dir */\n installDir?: string\n binDir: string\n}\n\n/**\n * A function that:\n *\n * - Downlodas and extracts a package\n * - Adds the bin path of the package to PATH\n * - Caches the dowloaded directory into tool cache for usage from other sessions\n *\n * @returns The installation directory\n */\nexport async function setupBin(\n name: string,\n version: string,\n getPackageInfo: (version: string, platform: NodeJS.Platform) => PackageInfo | Promise,\n setupCppDir: string\n): Promise {\n process.env.RUNNER_TEMP = process.env.RUNNER_TEMP ?? tmpdir()\n process.env.RUNNER_TOOL_CACHE = process.env.RUNNER_TOOL_CACH ?? join(tmpdir(), \"setup_cpp\", \"ToolCache\")\n\n const { url, binRelativeDir, extractedFolderName, extractFunction } = await getPackageInfo(version, process.platform)\n\n // Restore from cache (if found).\n try {\n const dir = find(name, version)\n if (dir) {\n info(`${name} ${version} was found in the cache.`)\n const installDir = join(dir, extractedFolderName)\n const binDir = join(installDir, binRelativeDir)\n await addPath(binDir)\n return { installDir, binDir }\n }\n } catch {\n // fails on a local machine?\n }\n\n // Get an unique output directory name from the URL.\n const key: string = await hasha.async(url, { algorithm: \"md5\" })\n const rootDir = join(setupCppDir, key)\n\n // download ane extract the package into the installation directory.\n if (!existsSync(rootDir)) {\n info(`Download and extract ${name} ${version}`)\n const downloaded = await downloadTool(url)\n await extractFunction?.(downloaded, rootDir)\n }\n\n const installDir = join(rootDir, extractedFolderName)\n const binDir = join(installDir, binRelativeDir)\n\n // Adding the bin dir to the path\n /** The directory which the tool is installed to */\n info(`Add ${binDir} to PATH`)\n await addPath(binDir)\n\n // check if inside Github Actions. If so, cache the installation\n if (typeof process.env.RUNNER_TOOL_CACHE === \"string\") {\n await cacheDir(rootDir, name, version)\n }\n\n return { installDir, binDir }\n}\n/** Add bin extension to a binary. This will be `.exe` on Windows. */\nexport function addBinExtension(name: string) {\n if (process.platform === \"win32\") {\n return `${name}.exe`\n }\n return name\n}\n","import { extractZip, extractTar } from \"@actions/tool-cache\"\nimport { getInput } from \"@actions/core\"\nimport semverLte from \"semver/functions/lte\"\nimport semverCoerce from \"semver/functions/coerce\"\nimport { setupBin, PackageInfo, InstallationInfo } from \"../utils/setup/setupBin\"\n\n/** Get the platform data for cmake */\nfunction getCmakePackageInfo(version: string, platform?: NodeJS.Platform): PackageInfo {\n const semVersion = semverCoerce(version) ?? version\n const platformStr = platform ?? process.platform\n const arch = getInput(\"architecture\") || process.arch\n switch (platformStr) {\n case \"win32\": {\n const isOld = semverLte(semVersion, \"v3.19.6\")\n let osArchStr: string\n if ([\"ia32\", \"x86\", \"i386\", \"x32\"].includes(arch)) {\n osArchStr = isOld ? \"win32-x86\" : \"windows-i386\"\n } else {\n osArchStr = isOld ? \"win64-x64\" : \"windows-x86_64\"\n }\n const folderName = `cmake-${version}-${osArchStr}`\n return {\n binRelativeDir: \"bin/\",\n extractedFolderName: folderName,\n extractFunction: extractZip,\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.zip`,\n }\n }\n case \"darwin\": {\n const isOld = semverLte(semVersion, \"v3.19.1\")\n const osArchStr = isOld ? \"Darwin-x86_64\" : \"macos-universal\"\n const folderName = `cmake-${version}-${osArchStr}`\n return {\n binRelativeDir: \"CMake.app/Contents/bin/\",\n extractedFolderName: folderName,\n extractFunction: extractTar,\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.tar.gz`,\n }\n }\n case \"linux\": {\n const isOld = semverLte(semVersion, \"v3.19.8\")\n let osArchStr: string\n if ([\"aarch64\"].includes(arch)) {\n osArchStr = isOld ? \"Linux-aarch64\" : \"linux-aarch64\"\n } else {\n osArchStr = isOld ? \"Linux-x86_64\" : \"linux-x86_64\"\n }\n const folderName = `cmake-${version}-${osArchStr}`\n return {\n binRelativeDir: \"bin/\",\n extractedFolderName: folderName,\n extractFunction: extractTar,\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.tar.gz`,\n }\n }\n default:\n throw new Error(`Unsupported platform '${platformStr}'`)\n }\n}\n\n/** Setup cmake */\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupCmake(version: string, setupCppDir: string, _arch: string): Promise {\n return setupBin(\"cmake\", version, getCmakePackageInfo, setupCppDir)\n}\n","import fs from 'fs';\nimport * as path from 'path';\nimport * as semver from 'semver';\n\nexport const IS_WINDOWS = process.platform === 'win32';\nexport const IS_LINUX = process.platform === 'linux';\nexport const WINDOWS_ARCHS = ['x86', 'x64'];\nexport const WINDOWS_PLATFORMS = ['win32', 'win64'];\nconst PYPY_VERSION_FILE = 'PYPY_VERSION';\n\nexport interface IPyPyManifestAsset {\n filename: string;\n arch: string;\n platform: string;\n download_url: string;\n}\n\nexport interface IPyPyManifestRelease {\n pypy_version: string;\n python_version: string;\n stable: boolean;\n latest_pypy: boolean;\n files: IPyPyManifestAsset[];\n}\n\n/** create Symlinks for downloaded PyPy\n * It should be executed only for downloaded versions in runtime, because\n * toolcache versions have this setup.\n */\nexport function createSymlinkInFolder(\n folderPath: string,\n sourceName: string,\n targetName: string,\n setExecutable = false\n) {\n const sourcePath = path.join(folderPath, sourceName);\n const targetPath = path.join(folderPath, targetName);\n if (fs.existsSync(targetPath)) {\n return;\n }\n\n fs.symlinkSync(sourcePath, targetPath);\n if (!IS_WINDOWS && setExecutable) {\n fs.chmodSync(targetPath, '755');\n }\n}\n\nexport function validateVersion(version: string) {\n return isNightlyKeyword(version) || Boolean(semver.validRange(version));\n}\n\nexport function isNightlyKeyword(pypyVersion: string) {\n return pypyVersion === 'nightly';\n}\n\nexport function getPyPyVersionFromPath(installDir: string) {\n return path.basename(path.dirname(installDir));\n}\n\n/**\n * In tool-cache, we put PyPy to '/PyPy//x64'\n * There is no easy way to determine what PyPy version is located in specific folder\n * 'pypy --version' is not reliable enough since it is not set properly for preview versions\n * \"7.3.3rc1\" is marked as '7.3.3' in 'pypy --version'\n * so we put PYPY_VERSION file to PyPy directory when install it to VM and read it when we need to know version\n * PYPY_VERSION contains exact version from 'versions.json'\n */\nexport function readExactPyPyVersionFile(installDir: string) {\n let pypyVersion = '';\n let fileVersion = path.join(installDir, PYPY_VERSION_FILE);\n if (fs.existsSync(fileVersion)) {\n pypyVersion = fs.readFileSync(fileVersion).toString();\n }\n\n return pypyVersion;\n}\n\nexport function writeExactPyPyVersionFile(\n installDir: string,\n resolvedPyPyVersion: string\n) {\n const pypyFilePath = path.join(installDir, PYPY_VERSION_FILE);\n fs.writeFileSync(pypyFilePath, resolvedPyPyVersion);\n}\n\n/**\n * Python version should be specified explicitly like \"x.y\" (2.7, 3.6, 3.7)\n * \"3.x\" or \"3\" are not supported\n * because it could cause ambiguity when both PyPy version and Python version are not precise\n */\nexport function validatePythonVersionFormatForPyPy(version: string) {\n const re = /^\\d+\\.\\d+$/;\n return re.test(version);\n}\n","import * as os from 'os';\nimport * as path from 'path';\nimport {IS_WINDOWS, IS_LINUX} from './utils';\n\nimport * as semver from 'semver';\n\nimport * as installer from './install-python';\n\nimport * as core from '@actions/core';\nimport * as tc from '@actions/tool-cache';\n\n// Python has \"scripts\" or \"bin\" directories where command-line tools that come with packages are installed.\n// This is where pip is, along with anything that pip installs.\n// There is a seperate directory for `pip install --user`.\n//\n// For reference, these directories are as follows:\n// macOS / Linux:\n// /bin (by default /usr/local/bin, but not on hosted agents -- see the `else`)\n// (--user) ~/.local/bin\n// Windows:\n// \\Scripts\n// (--user) %APPDATA%\\Python\\PythonXY\\Scripts\n// See https://docs.python.org/3/library/sysconfig.html\n\nfunction binDir(installDir: string): string {\n if (IS_WINDOWS) {\n return path.join(installDir, 'Scripts');\n } else {\n return path.join(installDir, 'bin');\n }\n}\n\n// Note on the tool cache layout for PyPy:\n// PyPy has its own versioning scheme that doesn't follow the Python versioning scheme.\n// A particular version of PyPy may contain one or more versions of the Python interpreter.\n// For example, PyPy 7.0 contains Python 2.7, 3.5, and 3.6-alpha.\n// We only care about the Python version, so we don't use the PyPy version for the tool cache.\nfunction usePyPy(\n majorVersion: '2' | '3.6',\n architecture: string\n): InstalledVersion {\n const findPyPy = tc.find.bind(undefined, 'PyPy', majorVersion);\n let installDir: string | null = findPyPy(architecture);\n\n if (!installDir && IS_WINDOWS) {\n // PyPy only precompiles binaries for x86, but the architecture parameter defaults to x64.\n // On our Windows virtual environments, we only install an x86 version.\n // Fall back to x86.\n installDir = findPyPy('x86');\n }\n\n if (!installDir) {\n // PyPy not installed in $(Agent.ToolsDirectory)\n throw new Error(`PyPy ${majorVersion} not found`);\n }\n\n // For PyPy, Windows uses 'bin', not 'Scripts'.\n const _binDir = path.join(installDir, 'bin');\n\n // On Linux and macOS, the Python interpreter is in 'bin'.\n // On Windows, it is in the installation root.\n const pythonLocation = IS_WINDOWS ? installDir : _binDir;\n core.exportVariable('pythonLocation', pythonLocation);\n\n core.addPath(installDir);\n core.addPath(_binDir);\n // Starting from PyPy 7.3.1, the folder that is used for pip and anything that pip installs should be \"Scripts\" on Windows.\n if (IS_WINDOWS) {\n core.addPath(path.join(installDir, 'Scripts'));\n }\n\n const impl = 'pypy' + majorVersion.toString();\n core.setOutput('python-version', impl);\n\n return {impl: impl, version: versionFromPath(installDir)};\n}\n\nasync function useCpythonVersion(\n version: string,\n architecture: string\n): Promise {\n const desugaredVersionSpec = desugarDevVersion(version);\n const semanticVersionSpec = pythonVersionToSemantic(desugaredVersionSpec);\n core.debug(`Semantic version spec of ${version} is ${semanticVersionSpec}`);\n\n let installDir: string | null = tc.find(\n 'Python',\n semanticVersionSpec,\n architecture\n );\n if (!installDir) {\n core.info(\n `Version ${semanticVersionSpec} was not found in the local cache`\n );\n const foundRelease = await installer.findReleaseFromManifest(\n semanticVersionSpec,\n architecture\n );\n\n if (foundRelease && foundRelease.files && foundRelease.files.length > 0) {\n core.info(`Version ${semanticVersionSpec} is available for downloading`);\n await installer.installCpythonFromRelease(foundRelease);\n\n installDir = tc.find('Python', semanticVersionSpec, architecture);\n }\n }\n\n if (!installDir) {\n throw new Error(\n [\n `Version ${version} with arch ${architecture} not found`,\n `The list of all available versions can be found here: ${installer.MANIFEST_URL}`\n ].join(os.EOL)\n );\n }\n\n core.exportVariable('pythonLocation', installDir);\n\n if (IS_LINUX) {\n const libPath = process.env.LD_LIBRARY_PATH\n ? `:${process.env.LD_LIBRARY_PATH}`\n : '';\n const pyLibPath = path.join(installDir, 'lib');\n\n if (!libPath.split(':').includes(pyLibPath)) {\n core.exportVariable('LD_LIBRARY_PATH', pyLibPath + libPath);\n }\n }\n\n core.addPath(installDir);\n core.addPath(binDir(installDir));\n\n if (IS_WINDOWS) {\n // Add --user directory\n // `installDir` from tool cache should look like $RUNNER_TOOL_CACHE/Python//x64/\n // So if `findLocalTool` succeeded above, we must have a conformant `installDir`\n const version = path.basename(path.dirname(installDir));\n const major = semver.major(version);\n const minor = semver.minor(version);\n\n const userScriptsDir = path.join(\n process.env['APPDATA'] || '',\n 'Python',\n `Python${major}${minor}`,\n 'Scripts'\n );\n core.addPath(userScriptsDir);\n }\n // On Linux and macOS, pip will create the --user directory and add it to PATH as needed.\n\n const installed = versionFromPath(installDir);\n core.setOutput('python-version', installed);\n\n return {impl: 'CPython', version: installed};\n}\n\n/** Convert versions like `3.8-dev` to a version like `>= 3.8.0-a0`. */\nfunction desugarDevVersion(versionSpec: string) {\n if (versionSpec.endsWith('-dev')) {\n const versionRoot = versionSpec.slice(0, -'-dev'.length);\n return `>= ${versionRoot}.0-a0`;\n } else {\n return versionSpec;\n }\n}\n\n/** Extracts python version from install path from hosted tool cache as described in README.md */\nfunction versionFromPath(installDir: string) {\n const parts = installDir.split(path.sep);\n const idx = parts.findIndex(part => part === 'PyPy' || part === 'Python');\n\n return parts[idx + 1] || '';\n}\n\ninterface InstalledVersion {\n impl: string;\n version: string;\n}\n\n/**\n * Python's prelease versions look like `3.7.0b2`.\n * This is the one part of Python versioning that does not look like semantic versioning, which specifies `3.7.0-b2`.\n * If the version spec contains prerelease versions, we need to convert them to the semantic version equivalent.\n */\nexport function pythonVersionToSemantic(versionSpec: string) {\n const prereleaseVersion = /(\\d+\\.\\d+\\.\\d+)((?:a|b|rc)\\d*)/g;\n return versionSpec.replace(prereleaseVersion, '$1-$2');\n}\n\nexport async function findPythonVersion(\n version: string,\n architecture: string\n): Promise {\n switch (version.toUpperCase()) {\n case 'PYPY2':\n return usePyPy('2', architecture);\n case 'PYPY3':\n // keep pypy3 pointing to 3.6 for backward compatibility\n return usePyPy('3.6', architecture);\n default:\n return await useCpythonVersion(version, architecture);\n }\n}\n","import * as path from 'path';\nimport * as core from '@actions/core';\nimport * as tc from '@actions/tool-cache';\nimport * as semver from 'semver';\nimport * as httpm from '@actions/http-client';\nimport * as exec from '@actions/exec';\nimport fs from 'fs';\n\nimport {\n IS_WINDOWS,\n WINDOWS_ARCHS,\n WINDOWS_PLATFORMS,\n IPyPyManifestRelease,\n createSymlinkInFolder,\n isNightlyKeyword,\n writeExactPyPyVersionFile\n} from './utils';\n\nexport async function installPyPy(\n pypyVersion: string,\n pythonVersion: string,\n architecture: string\n) {\n let downloadDir;\n\n const releases = await getAvailablePyPyVersions();\n if (!releases || releases.length === 0) {\n throw new Error('No release was found in PyPy version.json');\n }\n\n const releaseData = findRelease(\n releases,\n pythonVersion,\n pypyVersion,\n architecture\n );\n\n if (!releaseData || !releaseData.foundAsset) {\n throw new Error(\n `PyPy version ${pythonVersion} (${pypyVersion}) with arch ${architecture} not found`\n );\n }\n\n const {foundAsset, resolvedPythonVersion, resolvedPyPyVersion} = releaseData;\n let downloadUrl = `${foundAsset.download_url}`;\n\n core.info(`Downloading PyPy from \"${downloadUrl}\" ...`);\n const pypyPath = await tc.downloadTool(downloadUrl);\n\n core.info('Extracting downloaded archive...');\n if (IS_WINDOWS) {\n downloadDir = await tc.extractZip(pypyPath);\n } else {\n downloadDir = await tc.extractTar(pypyPath, undefined, 'x');\n }\n\n // root folder in archive can have unpredictable name so just take the first folder\n // downloadDir is unique folder under TEMP and can't contain any other folders\n const archiveName = fs.readdirSync(downloadDir)[0];\n\n const toolDir = path.join(downloadDir, archiveName);\n let installDir = toolDir;\n if (!isNightlyKeyword(resolvedPyPyVersion)) {\n installDir = await tc.cacheDir(\n toolDir,\n 'PyPy',\n resolvedPythonVersion,\n architecture\n );\n }\n\n writeExactPyPyVersionFile(installDir, resolvedPyPyVersion);\n\n const binaryPath = getPyPyBinaryPath(installDir);\n await createPyPySymlink(binaryPath, resolvedPythonVersion);\n await installPip(binaryPath);\n\n return {installDir, resolvedPythonVersion, resolvedPyPyVersion};\n}\n\nasync function getAvailablePyPyVersions() {\n const url = 'https://downloads.python.org/pypy/versions.json';\n const http: httpm.HttpClient = new httpm.HttpClient('tool-cache');\n\n const response = await http.getJson(url);\n if (!response.result) {\n throw new Error(\n `Unable to retrieve the list of available PyPy versions from '${url}'`\n );\n }\n\n return response.result;\n}\n\nasync function createPyPySymlink(\n pypyBinaryPath: string,\n pythonVersion: string\n) {\n const version = semver.coerce(pythonVersion)!;\n const pythonBinaryPostfix = semver.major(version);\n const pypyBinaryPostfix = pythonBinaryPostfix === 2 ? '' : '3';\n let binaryExtension = IS_WINDOWS ? '.exe' : '';\n\n core.info('Creating symlinks...');\n createSymlinkInFolder(\n pypyBinaryPath,\n `pypy${pypyBinaryPostfix}${binaryExtension}`,\n `python${pythonBinaryPostfix}${binaryExtension}`,\n true\n );\n\n createSymlinkInFolder(\n pypyBinaryPath,\n `pypy${pypyBinaryPostfix}${binaryExtension}`,\n `python${binaryExtension}`,\n true\n );\n}\n\nasync function installPip(pythonLocation: string) {\n core.info('Installing and updating pip');\n const pythonBinary = path.join(pythonLocation, 'python');\n await exec.exec(`${pythonBinary} -m ensurepip`);\n\n await exec.exec(\n `${pythonLocation}/python -m pip install --ignore-installed pip`\n );\n}\n\nexport function findRelease(\n releases: IPyPyManifestRelease[],\n pythonVersion: string,\n pypyVersion: string,\n architecture: string\n) {\n const filterReleases = releases.filter(item => {\n const isPythonVersionSatisfied = semver.satisfies(\n semver.coerce(item.python_version)!,\n pythonVersion\n );\n const isPyPyNightly =\n isNightlyKeyword(pypyVersion) && isNightlyKeyword(item.pypy_version);\n const isPyPyVersionSatisfied =\n isPyPyNightly ||\n semver.satisfies(pypyVersionToSemantic(item.pypy_version), pypyVersion);\n const isArchPresent =\n item.files &&\n (IS_WINDOWS\n ? isArchPresentForWindows(item)\n : isArchPresentForMacOrLinux(item, architecture, process.platform));\n return isPythonVersionSatisfied && isPyPyVersionSatisfied && isArchPresent;\n });\n\n if (filterReleases.length === 0) {\n return null;\n }\n\n const sortedReleases = filterReleases.sort((previous, current) => {\n return (\n semver.compare(\n semver.coerce(pypyVersionToSemantic(current.pypy_version))!,\n semver.coerce(pypyVersionToSemantic(previous.pypy_version))!\n ) ||\n semver.compare(\n semver.coerce(current.python_version)!,\n semver.coerce(previous.python_version)!\n )\n );\n });\n\n const foundRelease = sortedReleases[0];\n const foundAsset = IS_WINDOWS\n ? findAssetForWindows(foundRelease)\n : findAssetForMacOrLinux(foundRelease, architecture, process.platform);\n\n return {\n foundAsset,\n resolvedPythonVersion: foundRelease.python_version,\n resolvedPyPyVersion: foundRelease.pypy_version\n };\n}\n\n/** Get PyPy binary location from the tool of installation directory\n * - On Linux and macOS, the Python interpreter is in 'bin'.\n * - On Windows, it is in the installation root.\n */\nexport function getPyPyBinaryPath(installDir: string) {\n const _binDir = path.join(installDir, 'bin');\n return IS_WINDOWS ? installDir : _binDir;\n}\n\nexport function pypyVersionToSemantic(versionSpec: string) {\n const prereleaseVersion = /(\\d+\\.\\d+\\.\\d+)((?:a|b|rc))(\\d*)/g;\n return versionSpec.replace(prereleaseVersion, '$1-$2.$3');\n}\n\nexport function isArchPresentForWindows(item: any) {\n return item.files.some(\n (file: any) =>\n WINDOWS_ARCHS.includes(file.arch) &&\n WINDOWS_PLATFORMS.includes(file.platform)\n );\n}\n\nexport function isArchPresentForMacOrLinux(\n item: any,\n architecture: string,\n platform: string\n) {\n return item.files.some(\n (file: any) => file.arch === architecture && file.platform === platform\n );\n}\n\nexport function findAssetForWindows(releases: any) {\n return releases.files.find(\n (item: any) =>\n WINDOWS_ARCHS.includes(item.arch) &&\n WINDOWS_PLATFORMS.includes(item.platform)\n );\n}\n\nexport function findAssetForMacOrLinux(\n releases: any,\n architecture: string,\n platform: string\n) {\n return releases.files.find(\n (item: any) => item.arch === architecture && item.platform === platform\n );\n}\n","export function isCI() {\n return !(process.env.CI === undefined || process.env.CI === \"\" || process.env.CI === \"false\")\n}\n","import * as core from \"@actions/core\"\nimport * as finder from \"./setup-python/src/find-python\"\nimport * as finderPyPy from \"./setup-python/src/find-pypy\"\nimport * as path from \"path\"\nimport { addPath } from \"../utils/path/addPath\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport hasha from \"hasha\"\nimport { join } from \"path\"\nimport { isCI } from \"../utils/env/isci\"\n\nfunction isPyPyVersion(versionSpec: string) {\n return versionSpec.startsWith(\"pypy-\")\n}\n\nexport async function setupPython(version: string, setupCppDir: string, arch: string) {\n if (!isCI()) {\n // TODO parse versoin\n return setupPythonViaSystem(\"\", setupCppDir, arch)\n }\n\n try {\n if (isPyPyVersion(version)) {\n const installed = await finderPyPy.findPyPyVersion(version, arch)\n core.info(\n `Successfully setup PyPy ${installed.resolvedPyPyVersion} with Python (${installed.resolvedPythonVersion})`\n )\n } else {\n const installed = await finder.findPythonVersion(version, arch)\n core.info(`Successfully setup ${installed.impl} (${installed.version})`)\n }\n const matchersPath = path.join(\"setup-pthon\", \".github\")\n core.info(`##[add-matcher]${path.join(matchersPath, \"python.json\")}`)\n return undefined\n } catch (err) {\n return setupPythonViaSystem(version, setupCppDir, arch)\n }\n}\n\nexport async function setupPythonViaSystem(version: string, setupCppDir: string, arch: string) {\n switch (process.platform) {\n case \"win32\": {\n // Get an unique output directory name from the URL.\n const key: string = await hasha.async(version + arch, { algorithm: \"md5\" })\n const installDir = join(setupCppDir, key, \"python\")\n const binDir = installDir\n await setupChocoPack(\"python3\", version, [`/InstallDir:${installDir}`])\n\n // Adding the bin dir to the path\n /** The directory which the tool is installed to */\n core.info(`Add ${binDir} to PATH`)\n await addPath(binDir)\n\n return { installDir, binDir }\n }\n case \"darwin\": {\n return setupBrewPack(\"python3\", version)\n }\n case \"linux\": {\n const installInfo = await setupAptPack(\"python3\", version)\n await setupAptPack(\"python3-pip\")\n return installInfo\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import * as path from 'path';\nimport * as pypyInstall from './install-pypy';\nimport {\n IS_WINDOWS,\n WINDOWS_ARCHS,\n validateVersion,\n getPyPyVersionFromPath,\n readExactPyPyVersionFile,\n validatePythonVersionFormatForPyPy\n} from './utils';\n\nimport * as semver from 'semver';\nimport * as core from '@actions/core';\nimport * as tc from '@actions/tool-cache';\n\ninterface IPyPyVersionSpec {\n pypyVersion: string;\n pythonVersion: string;\n}\n\nexport async function findPyPyVersion(\n versionSpec: string,\n architecture: string\n): Promise<{resolvedPyPyVersion: string; resolvedPythonVersion: string}> {\n let resolvedPyPyVersion = '';\n let resolvedPythonVersion = '';\n let installDir: string | null;\n\n const pypyVersionSpec = parsePyPyVersion(versionSpec);\n\n ({installDir, resolvedPythonVersion, resolvedPyPyVersion} = findPyPyToolCache(\n pypyVersionSpec.pythonVersion,\n pypyVersionSpec.pypyVersion,\n architecture\n ));\n\n if (!installDir) {\n ({\n installDir,\n resolvedPythonVersion,\n resolvedPyPyVersion\n } = await pypyInstall.installPyPy(\n pypyVersionSpec.pypyVersion,\n pypyVersionSpec.pythonVersion,\n architecture\n ));\n }\n\n const pipDir = IS_WINDOWS ? 'Scripts' : 'bin';\n const _binDir = path.join(installDir, pipDir);\n const pythonLocation = pypyInstall.getPyPyBinaryPath(installDir);\n core.exportVariable('pythonLocation', pythonLocation);\n core.addPath(pythonLocation);\n core.addPath(_binDir);\n\n return {resolvedPyPyVersion, resolvedPythonVersion};\n}\n\nexport function findPyPyToolCache(\n pythonVersion: string,\n pypyVersion: string,\n architecture: string\n) {\n let resolvedPyPyVersion = '';\n let resolvedPythonVersion = '';\n let installDir: string | null = IS_WINDOWS\n ? findPyPyInstallDirForWindows(pythonVersion)\n : tc.find('PyPy', pythonVersion, architecture);\n\n if (installDir) {\n // 'tc.find' finds tool based on Python version but we also need to check\n // whether PyPy version satisfies requested version.\n resolvedPythonVersion = getPyPyVersionFromPath(installDir);\n resolvedPyPyVersion = readExactPyPyVersionFile(installDir);\n\n const isPyPyVersionSatisfies = semver.satisfies(\n resolvedPyPyVersion,\n pypyVersion\n );\n if (!isPyPyVersionSatisfies) {\n installDir = null;\n resolvedPyPyVersion = '';\n resolvedPythonVersion = '';\n }\n }\n\n if (!installDir) {\n core.info(\n `PyPy version ${pythonVersion} (${pypyVersion}) was not found in the local cache`\n );\n }\n\n return {installDir, resolvedPythonVersion, resolvedPyPyVersion};\n}\n\nexport function parsePyPyVersion(versionSpec: string): IPyPyVersionSpec {\n const versions = versionSpec.split('-').filter(item => !!item);\n\n if (versions.length < 2 || versions[0] != 'pypy') {\n throw new Error(\n \"Invalid 'version' property for PyPy. PyPy version should be specified as 'pypy-'. See README for examples and documentation.\"\n );\n }\n\n const pythonVersion = versions[1];\n let pypyVersion: string;\n if (versions.length > 2) {\n pypyVersion = pypyInstall.pypyVersionToSemantic(versions[2]);\n } else {\n pypyVersion = 'x';\n }\n\n if (!validateVersion(pythonVersion) || !validateVersion(pypyVersion)) {\n throw new Error(\n \"Invalid 'version' property for PyPy. Both Python version and PyPy versions should satisfy SemVer notation. See README for examples and documentation.\"\n );\n }\n\n if (!validatePythonVersionFormatForPyPy(pythonVersion)) {\n throw new Error(\n \"Invalid format of Python version for PyPy. Python version should be specified in format 'x.y'. See README for examples and documentation.\"\n );\n }\n\n return {\n pypyVersion: pypyVersion,\n pythonVersion: pythonVersion\n };\n}\n\nexport function findPyPyInstallDirForWindows(pythonVersion: string): string {\n let installDir = '';\n\n WINDOWS_ARCHS.forEach(\n architecture =>\n (installDir = installDir || tc.find('PyPy', pythonVersion, architecture))\n );\n\n return installDir;\n}\n","import * as path from 'path';\nimport * as core from '@actions/core';\nimport * as tc from '@actions/tool-cache';\nimport * as exec from '@actions/exec';\nimport {ExecOptions} from '@actions/exec/lib/interfaces';\nimport {IS_WINDOWS, IS_LINUX} from './utils';\n\nconst TOKEN = core.getInput('token');\nconst AUTH = !TOKEN || isGhes() ? undefined : `token ${TOKEN}`;\nconst MANIFEST_REPO_OWNER = 'actions';\nconst MANIFEST_REPO_NAME = 'python-versions';\nconst MANIFEST_REPO_BRANCH = 'main';\nexport const MANIFEST_URL = `https://raw.githubusercontent.com/${MANIFEST_REPO_OWNER}/${MANIFEST_REPO_NAME}/${MANIFEST_REPO_BRANCH}/versions-manifest.json`;\n\nexport async function findReleaseFromManifest(\n semanticVersionSpec: string,\n architecture: string\n): Promise {\n const manifest: tc.IToolRelease[] = await tc.getManifestFromRepo(\n MANIFEST_REPO_OWNER,\n MANIFEST_REPO_NAME,\n AUTH,\n MANIFEST_REPO_BRANCH\n );\n return await tc.findFromManifest(\n semanticVersionSpec,\n false,\n manifest,\n architecture\n );\n}\n\nasync function installPython(workingDirectory: string) {\n const options: ExecOptions = {\n cwd: workingDirectory,\n env: {\n ...process.env,\n ...(IS_LINUX && {LD_LIBRARY_PATH: path.join(workingDirectory, 'lib')})\n },\n silent: true,\n listeners: {\n stdout: (data: Buffer) => {\n core.info(data.toString().trim());\n },\n stderr: (data: Buffer) => {\n core.error(data.toString().trim());\n }\n }\n };\n\n if (IS_WINDOWS) {\n await exec.exec('powershell', ['./setup.ps1'], options);\n } else {\n await exec.exec('bash', ['./setup.sh'], options);\n }\n}\n\nexport async function installCpythonFromRelease(release: tc.IToolRelease) {\n const downloadUrl = release.files[0].download_url;\n\n core.info(`Download from \"${downloadUrl}\"`);\n const pythonPath = await tc.downloadTool(downloadUrl, undefined, AUTH);\n core.info('Extract downloaded archive');\n let pythonExtractedFolder;\n if (IS_WINDOWS) {\n pythonExtractedFolder = await tc.extractZip(pythonPath);\n } else {\n pythonExtractedFolder = await tc.extractTar(pythonPath);\n }\n\n core.info('Execute installation script');\n await installPython(pythonExtractedFolder);\n}\n\nfunction isGhes(): boolean {\n const ghUrl = new URL(\n process.env['GITHUB_SERVER_URL'] || 'https://github.com'\n );\n return ghUrl.hostname.toUpperCase() !== 'GITHUB.COM';\n}\n","import * as https from \"https\"\n\nexport function isValidUrl(url: string) {\n return new Promise((resolve) => {\n https.get(url, (res) => {\n if (res.statusCode !== undefined && res.statusCode >= 200 && res.statusCode <= 399) {\n resolve(true)\n } else {\n resolve(false)\n }\n })\n })\n}\n","/* eslint-disable require-atomic-updates */\nimport { getExecOutput } from \"@actions/exec\"\nimport execa from \"execa\"\nimport which from \"which\"\nimport { info } from \"@actions/core\"\nimport { addPath } from \"../path/addPath\"\nimport { setupPython } from \"../../python/python\"\nimport { isBinUptoDate } from \"./version\"\nimport { join } from \"path\"\n\nlet pip: string | undefined\n\nlet binDir: string | undefined\n\n/** A function that installs a package using pip */\nexport async function setupPipPack(name: string, version?: string) {\n // setup python and pip if needed\n if (pip === undefined) {\n if (which.sync(\"pip3\", { nothrow: true }) !== null) {\n pip = \"pip3\"\n } else if (which.sync(\"pip\", { nothrow: true }) !== null && (await isBinUptoDate(\"python\", \"3.0.0\"))) {\n pip = \"pip\"\n } else {\n await setupPython(\"3.x\", \"\", process.arch)\n pip = \"pip3\"\n }\n }\n\n execa.sync(pip, [\"install\", version !== undefined && version !== \"\" ? `${name}==${version}` : name])\n\n if (binDir === undefined) {\n if (process.platform === \"linux\") {\n binDir = \"/home/runner/.local/bin/\"\n } else if (process.platform === \"darwin\") {\n binDir = \"/usr/local/bin/\"\n } else {\n try {\n binDir = join(\n (await getExecOutput('python3 -c \"import sys;print(sys.base_exec_prefix);\"')).stdout.trim(),\n \"Scripts\"\n )\n } catch {\n binDir = join(\n (await getExecOutput('python -c \"import sys;print(sys.base_exec_prefix);\"')).stdout.trim(),\n \"Scripts\"\n )\n }\n }\n info(`${binDir} to PATH`)\n await addPath(binDir)\n }\n\n return { binDir }\n}\n","import { isValidUrl } from \"../http/validate_url\"\nimport semverCompare from \"semver/functions/compare\"\nimport { getExecOutput } from \"@actions/exec\"\n\n/**\n * Gets the specific versions supported by this action compatible with the supplied (specific or minimum) version in\n * descending order of release (e.g., `5.0.2`, `5.0.1`, and `5.0.0` for `5`).\n */\nexport function getSpecificVersions(versions: Set, semversion: string): string[] {\n return Array.from(versions)\n .filter((v) => /^\\d+\\.\\d+\\.\\d+$/.test(v) && v.startsWith(semversion))\n .sort()\n .reverse()\n}\n\n/**\n * Gets the specific and minimum versions that can be used to refer to the supplied specific versions (e.g., `3`, `3.5`,\n * `3.5.2` for `3.5.2`).\n */\nexport function getVersions(specific: string[]): Set {\n const versions = new Set(specific)\n\n for (const version of specific) {\n versions.add(/^\\d+/.exec(version)![0])\n versions.add(/^\\d+\\.\\d+/.exec(version)![0])\n }\n\n return versions\n}\n\n/** Gets the most recent specific version for which there is a valid download URL. */\nexport async function getSpecificVersionAndUrl(\n versions: Set,\n platform: string,\n version: string,\n getUrl: (platform: string, version: string) => string | null | Promise\n): Promise<[string, string]> {\n if (!versions.has(version)) {\n throw new Error(`Unsupported target! (platform='${platform}', version='${version}')`)\n }\n\n for (const specificVersion of getSpecificVersions(versions, version)) {\n // eslint-disable-next-line no-await-in-loop\n const url = await getUrl(platform, specificVersion)\n // eslint-disable-next-line no-await-in-loop\n if (url !== null && (await isValidUrl(url))) {\n return [specificVersion, url]\n }\n }\n\n throw new Error(`Unsupported target! (platform='${platform}', version='${version}')`)\n}\n\nexport const defaultVersionRegex = /v?(\\d\\S*)/\n\n/** Get the version of a binary */\nexport async function getBinVersion(file: string, versionRegex: RegExp = defaultVersionRegex) {\n try {\n const { stderr, stdout } = await getExecOutput(file, [\"--version\"])\n const version = stdout.match(versionRegex)?.[1] ?? stderr.match(versionRegex)?.[1]\n return version\n } catch (e) {\n console.error(e)\n return undefined\n }\n}\n\n/** Check if the given bin is up to date against the target version */\nexport async function isBinUptoDate(\n givenFile: string,\n targetVersion: string,\n versionRegex: RegExp = defaultVersionRegex\n) {\n const givenVersion = await getBinVersion(givenFile, versionRegex)\n if (\n typeof givenVersion === \"string\" &&\n typeof targetVersion === \"string\" &&\n givenVersion !== \"\" &&\n targetVersion !== \"\"\n ) {\n return semverCompare(givenVersion, targetVersion) !== -1\n } else {\n // assume given version is old\n return false\n }\n}\n","import execa from \"execa\"\nimport { mkdirP } from \"@actions/io\"\nexport { extractTar, extractXar, extract7z, extractZip } from \"@actions/tool-cache\"\n\nexport async function extractExe(file: string, dest: string) {\n await execa(\"7z\", [\"x\", file, `-o${dest}`])\n return dest\n}\n\nexport async function extractTarByExe(file: string, dest: string, flags = [\"--strip-components=1\"]) {\n try {\n await mkdirP(dest)\n } catch {\n // ignore\n }\n await execa(\"tar\", [\"xf\", file, \"-C\", dest, ...flags])\n return dest\n}\n","import * as core from \"@actions/core\"\nimport * as path from \"path\"\nimport semverLte from \"semver/functions/lte\"\nimport semverMajor from \"semver/functions/major\"\nimport { isValidUrl } from \"../utils/http/validate_url\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\nimport { extractExe, extractTarByExe } from \"../utils/setup/extract\"\nimport { getSpecificVersionAndUrl, getVersions } from \"../utils/setup/version\"\nimport { getExecOutput } from \"@actions/exec\"\nimport { existsSync } from \"fs\"\n\n//================================================\n// Version\n//================================================\n\n/** The specific and minimum LLVM versions supported by this action. */\nexport const VERSIONS: Set = getVersions([\n \"3.5.0\",\n \"3.5.1\",\n \"3.5.2\",\n \"3.6.0\",\n \"3.6.1\",\n \"3.6.2\",\n \"3.7.0\",\n \"3.7.1\",\n \"3.8.0\",\n \"3.8.1\",\n \"3.9.0\",\n \"3.9.1\",\n \"4.0.0\",\n \"4.0.1\",\n \"5.0.0\",\n \"5.0.1\",\n \"5.0.2\",\n \"6.0.0\",\n \"6.0.1\",\n \"7.0.0\",\n \"7.0.1\",\n \"7.1.0\",\n \"8.0.0\",\n \"8.0.1\",\n \"9.0.0\",\n \"9.0.1\",\n \"10.0.0\",\n \"10.0.1\",\n \"11.0.0\",\n \"11.0.1\",\n \"11.1.0\",\n \"12.0.0\",\n \"12.0.1\",\n])\n\n//================================================\n// URL\n//================================================\n\n/** Gets a LLVM download URL for GitHub. */\nfunction getGitHubUrl(version: string, prefix: string, suffix: string): string {\n const file = `${prefix}${version}${suffix}`\n return `https://github.com/llvm/llvm-project/releases/download/llvmorg-${version}/${file}`\n}\n\n/** Gets a LLVM download URL for https://releases.llvm.org. */\nfunction getReleaseUrl(version: string, prefix: string, suffix: string): string {\n const file = `${prefix}${version}${suffix}`\n return `https://releases.llvm.org/${version}/${file}`\n}\n\n/** The LLVM versions that were never released for the Darwin platform. */\nconst DARWIN_MISSING: Set = new Set([\n \"3.5.1\",\n \"3.6.1\",\n \"3.6.2\",\n \"3.7.1\",\n \"3.8.1\",\n \"3.9.1\",\n \"6.0.1\",\n \"7.0.1\",\n \"7.1.0\",\n \"8.0.1\",\n \"11.0.1\",\n \"11.1.0\",\n \"12.0.1\",\n])\n\n/** Gets an LLVM download URL for the Darwin platform. */\nfunction getDarwinUrl(version: string): string | null {\n if (DARWIN_MISSING.has(version)) {\n return null\n }\n\n const darwin = version === \"9.0.0\" ? \"-darwin-apple\" : \"-apple-darwin\"\n const prefix = \"clang+llvm-\"\n const suffix = `-x86_64${darwin}.tar.xz`\n if (semverLte(version, \"9.0.1\")) {\n return getReleaseUrl(version, prefix, suffix)\n } else {\n return getGitHubUrl(version, prefix, suffix)\n }\n}\n\n/**\n * The LLVM versions that should use the last RC version instead of the release version for the Linux (Ubuntu) platform.\n * This is useful when there were binaries released for the Linux (Ubuntu) platform for the last RC version but not for\n * the actual release version.\n */\nconst UBUNTU_RC: Map = new Map([[\"12.0.1\", \"12.0.1-rc4\"]])\n\n/** The (latest) Ubuntu versions for each LLVM version. */\nconst UBUNTU: { [key: string]: string } = {\n \"3.5.0\": \"-ubuntu-14.04\",\n \"3.5.1\": \"\",\n \"3.5.2\": \"-ubuntu-14.04\",\n \"3.6.0\": \"-ubuntu-14.04\",\n \"3.6.1\": \"-ubuntu-14.04\",\n \"3.6.2\": \"-ubuntu-14.04\",\n \"3.7.0\": \"-ubuntu-14.04\",\n \"3.7.1\": \"-ubuntu-14.04\",\n \"3.8.0\": \"-ubuntu-16.04\",\n \"3.8.1\": \"-ubuntu-16.04\",\n \"3.9.0\": \"-ubuntu-16.04\",\n \"3.9.1\": \"-ubuntu-16.04\",\n \"4.0.0\": \"-ubuntu-16.04\",\n \"5.0.0\": \"-ubuntu16.04\",\n \"5.0.1\": \"-ubuntu-16.04\",\n \"5.0.2\": \"-ubuntu-16.04\",\n \"6.0.0\": \"-ubuntu-16.04\",\n \"6.0.1\": \"-ubuntu-16.04\",\n \"7.0.0\": \"-ubuntu-16.04\",\n \"7.0.1\": \"-ubuntu-18.04\",\n \"7.1.0\": \"-ubuntu-14.04\",\n \"8.0.0\": \"-ubuntu-18.04\",\n \"9.0.0\": \"-ubuntu-18.04\",\n \"9.0.1\": \"-ubuntu-16.04\",\n \"10.0.0\": \"-ubuntu-18.04\",\n \"10.0.1\": \"-ubuntu-16.04\",\n \"11.0.0\": \"-ubuntu-20.04\",\n \"11.0.1\": \"-ubuntu-16.04\",\n \"11.1.0\": \"-ubuntu-16.04\",\n \"12.0.0\": \"-ubuntu-20.04\",\n \"12.0.1-rc4\": \"-ubuntu-21.04\",\n}\n\n/** The latest supported LLVM version for the Linux (Ubuntu) platform. */\nconst MAX_UBUNTU: string = \"12.0.1-rc4\"\n\n/** Gets an LLVM download URL for the Linux (Ubuntu) platform. */\nfunction getLinuxUrl(versionGiven: string): string {\n let version = versionGiven\n\n const rc = UBUNTU_RC.get(version)\n if (rc !== undefined) {\n version = rc\n }\n\n let ubuntu: string\n // ubuntu-version is specified\n if (version.includes(\"ubuntu\")) {\n ubuntu = version\n } else if (version !== \"\" && version in UBUNTU) {\n ubuntu = UBUNTU[version]\n } else {\n // default to the maximum vresion\n ubuntu = UBUNTU[MAX_UBUNTU]\n }\n\n const prefix = \"clang+llvm-\"\n const suffix = version === \"5.0.0\" ? `-linux-x86_64${ubuntu}.tar.xz` : `-x86_64-linux-gnu${ubuntu}.tar.xz`\n if (semverLte(version, \"9.0.1\")) {\n return getReleaseUrl(version, prefix, suffix)\n } else {\n return getGitHubUrl(version, prefix, suffix)\n }\n}\n\n/** The LLVM versions that were never released for the Windows platform. */\nconst WIN32_MISSING: Set = new Set([\"10.0.1\"])\n\n/** Gets an LLVM download URL for the Windows platform. */\nasync function getWin32Url(version: string): Promise {\n if (WIN32_MISSING.has(version)) {\n return null\n }\n\n const prefix = \"LLVM-\"\n const suffix = semverLte(version, \"3.7.0\") ? \"-win32.exe\" : \"-win64.exe\"\n\n const olderThan9_1 = semverLte(version, \"9.0.1\")\n let url: string\n let fallback = false\n if (olderThan9_1) {\n url = getReleaseUrl(version, prefix, suffix)\n if (!(await isValidUrl(url))) {\n fallback = true // fallback to github\n }\n }\n if (fallback || !olderThan9_1) {\n url = getGitHubUrl(version, prefix, suffix)\n }\n\n return url!\n}\n\n/** Gets an LLVM download URL. */\nexport function getUrl(platform: string, version: string): string | null | Promise {\n switch (platform) {\n case \"darwin\":\n return getDarwinUrl(version)\n case \"linux\":\n return getLinuxUrl(version)\n case \"win32\":\n return getWin32Url(version)\n default:\n return null\n }\n}\n\n//================================================\n// Action\n//================================================\n\nconst DEFAULT_NIX_DIRECTORY = \"./llvm\"\nconst DEFAULT_WIN32_DIRECTORY = \"C:/Program Files/LLVM\"\n\nasync function getLLVMPackageInfo(version: string, platform: NodeJS.Platform): Promise {\n const [specificVersion, url] = await getSpecificVersionAndUrl(VERSIONS, platform, version, getUrl)\n core.setOutput(\"version\", specificVersion)\n return {\n url,\n extractedFolderName: \"\",\n binRelativeDir: \"bin\",\n extractFunction: platform === \"win32\" ? extractExe : extractTarByExe,\n }\n}\n\nexport async function setupLLVM(\n version: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _setupCppDir: string | undefined,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _arch: string\n): Promise {\n let directory = _setupCppDir\n if (directory === \"\" || directory === undefined) {\n directory = process.platform === \"win32\" ? DEFAULT_WIN32_DIRECTORY : DEFAULT_NIX_DIRECTORY\n }\n\n directory = path.resolve(directory)\n\n const installationInfo = await setupBin(\"llvm\", version, getLLVMPackageInfo, directory)\n\n // Adding environment variables\n const lib = path.join(directory, \"lib\")\n\n const ld = process.env.LD_LIBRARY_PATH ?? \"\"\n const dyld = process.env.DYLD_LIBRARY_PATH ?? \"\"\n\n core.exportVariable(\"LLVM_PATH\", directory) // the output of this action\n\n const llvmMajor = semverMajor(version)\n\n // Setup LLVM as the compiler\n core.exportVariable(\"LD_LIBRARY_PATH\", `${lib}${path.delimiter}${ld}`)\n core.exportVariable(\"DYLD_LIBRARY_PATH\", `${lib}${path.delimiter}${dyld}`)\n\n core.exportVariable(\"CPATH\", `${directory}/lib/clang/${llvmMajor}/include`)\n\n core.exportVariable(\"LDFLAGS\", `-L${directory}/lib`)\n core.exportVariable(\"CPPFLAGS\", `-I${directory}/include`)\n\n core.exportVariable(\"CC\", `${directory}/bin/clang`)\n core.exportVariable(\"CXX\", `${directory}/bin/clang++`)\n\n core.exportVariable(\"LIBRARY_PATH\", `${directory}/lib`)\n\n if (process.platform === \"darwin\") {\n try {\n const xcrun = await getExecOutput(\"xcrun --sdk macosx --show-sdk-path\")\n const sdkroot = xcrun.stdout || xcrun.stderr\n if (existsSync(sdkroot)) {\n core.exportVariable(\"SDKROOT\", sdkroot)\n }\n } catch (e) {\n core.error(e as Error | string)\n }\n }\n\n return installationInfo\n}\n","import { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { error, exportVariable } from \"@actions/core\"\nimport { existsSync } from \"fs\"\n\ntype MSVCVersion = \"2015\" | \"2017\" | \"2019\" | string\n\nfunction getArch(arch: string): string {\n switch (arch) {\n case \"x32\":\n case \"32\":\n case \"ia32\": {\n return \"x86\"\n }\n case \"64\": {\n return \"x64\"\n }\n default: {\n return arch\n }\n }\n}\n\nexport async function setupMSVC(\n version: MSVCVersion,\n _setupCppDir: string,\n arch: string,\n sdk?: string,\n uwp?: boolean,\n spectre?: boolean\n): Promise {\n if (process.platform !== \"win32\") {\n return\n }\n let toolset: string | undefined\n let VCTargetsPath: string | undefined\n try {\n if (version === \"2015\") {\n toolset = \"14.0.25420.1\"\n await setupChocoPack(\"visualcpp-build-tools\", toolset, [\n \"--ignore-dependencies\",\n \"--params\",\n \"'/IncludeRequired'\",\n ])\n\n VCTargetsPath = \"C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140\"\n if (existsSync(VCTargetsPath)) {\n exportVariable(\"VCTargetsPath\", VCTargetsPath)\n }\n } else if (version === \"2017\") {\n toolset = \"14.16\"\n await setupChocoPack(\"visualstudio2017buildtools\", \"15.9.38.0\", [\n \"--package-parameters\",\n \"'--add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended --passive'\",\n ])\n VCTargetsPath = \"C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16\" // TODO verify path\n } else if (version === \"2019\") {\n toolset = \"14.29.30133\"\n await setupChocoPack(\"visualstudio2019buildtools\", \"16.11.2.0\", [\n \"--package-parameters\",\n \"'--add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended --passive'\",\n ])\n VCTargetsPath = \"C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133\"\n }\n } catch (e) {\n error(e as string | Error)\n }\n if (VCTargetsPath !== undefined && existsSync(VCTargetsPath)) {\n exportVariable(\"VCTargetsPath\", VCTargetsPath)\n }\n\n // lazy load the action so it is not executed\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n const { setupMSVCDevCmd } = require(\"./msvc-dev-cmd/index\")\n setupMSVCDevCmd(getArch(arch), sdk, toolset, uwp, spectre)\n}\n","import { extractZip } from \"@actions/tool-cache\"\nimport { setupBin, PackageInfo, InstallationInfo } from \"../utils/setup/setupBin\"\n\n/** Get the platform name Ninja uses in their download links */\nfunction getNinjaPlatform(platform: NodeJS.Platform) {\n switch (platform) {\n case \"win32\":\n return \"win\"\n case \"darwin\":\n return \"mac\"\n case \"linux\":\n return \"linux\"\n default:\n throw new Error(`Unsupported platform '${platform}'`)\n }\n}\n\n/** Get the platform data for ninja */\nfunction getNinjaPackageInfo(version: string, platform: NodeJS.Platform): PackageInfo {\n const ninjaPlatform = getNinjaPlatform(platform)\n return {\n binRelativeDir: \"\",\n extractedFolderName: \"\",\n extractFunction: extractZip,\n url: `https://github.com/ninja-build/ninja/releases/download/v${version}/ninja-${ninjaPlatform}.zip`,\n }\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupNinja(version: string, setupCppDir: string, _arch: string): Promise {\n return setupBin(\"ninja\", version, getNinjaPackageInfo, setupCppDir)\n}\n","function toArr(any) {\n\treturn any == null ? [] : Array.isArray(any) ? any : [any];\n}\n\nfunction toVal(out, key, val, opts) {\n\tvar x, old=out[key], nxt=(\n\t\t!!~opts.string.indexOf(key) ? (val == null || val === true ? '' : String(val))\n\t\t: typeof val === 'boolean' ? val\n\t\t: !!~opts.boolean.indexOf(key) ? (val === 'false' ? false : val === 'true' || (out._.push((x = +val,x * 0 === 0) ? x : val),!!val))\n\t\t: (x = +val,x * 0 === 0) ? x : val\n\t);\n\tout[key] = old == null ? nxt : (Array.isArray(old) ? old.concat(nxt) : [old, nxt]);\n}\n\nexport default function (args, opts) {\n\targs = args || [];\n\topts = opts || {};\n\n\tvar k, arr, arg, name, val, out={ _:[] };\n\tvar i=0, j=0, idx=0, len=args.length;\n\n\tconst alibi = opts.alias !== void 0;\n\tconst strict = opts.unknown !== void 0;\n\tconst defaults = opts.default !== void 0;\n\n\topts.alias = opts.alias || {};\n\topts.string = toArr(opts.string);\n\topts.boolean = toArr(opts.boolean);\n\n\tif (alibi) {\n\t\tfor (k in opts.alias) {\n\t\t\tarr = opts.alias[k] = toArr(opts.alias[k]);\n\t\t\tfor (i=0; i < arr.length; i++) {\n\t\t\t\t(opts.alias[arr[i]] = arr.concat(k)).splice(i, 1);\n\t\t\t}\n\t\t}\n\t}\n\n\tfor (i=opts.boolean.length; i-- > 0;) {\n\t\tarr = opts.alias[opts.boolean[i]] || [];\n\t\tfor (j=arr.length; j-- > 0;) opts.boolean.push(arr[j]);\n\t}\n\n\tfor (i=opts.string.length; i-- > 0;) {\n\t\tarr = opts.alias[opts.string[i]] || [];\n\t\tfor (j=arr.length; j-- > 0;) opts.string.push(arr[j]);\n\t}\n\n\tif (defaults) {\n\t\tfor (k in opts.default) {\n\t\t\tname = typeof opts.default[k];\n\t\t\tarr = opts.alias[k] = opts.alias[k] || [];\n\t\t\tif (opts[name] !== void 0) {\n\t\t\t\topts[name].push(k);\n\t\t\t\tfor (i=0; i < arr.length; i++) {\n\t\t\t\t\topts[name].push(arr[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tconst keys = strict ? Object.keys(opts.alias) : [];\n\n\tfor (i=0; i < len; i++) {\n\t\targ = args[i];\n\n\t\tif (arg === '--') {\n\t\t\tout._ = out._.concat(args.slice(++i));\n\t\t\tbreak;\n\t\t}\n\n\t\tfor (j=0; j < arg.length; j++) {\n\t\t\tif (arg.charCodeAt(j) !== 45) break; // \"-\"\n\t\t}\n\n\t\tif (j === 0) {\n\t\t\tout._.push(arg);\n\t\t} else if (arg.substring(j, j + 3) === 'no-') {\n\t\t\tname = arg.substring(j + 3);\n\t\t\tif (strict && !~keys.indexOf(name)) {\n\t\t\t\treturn opts.unknown(arg);\n\t\t\t}\n\t\t\tout[name] = false;\n\t\t} else {\n\t\t\tfor (idx=j+1; idx < arg.length; idx++) {\n\t\t\t\tif (arg.charCodeAt(idx) === 61) break; // \"=\"\n\t\t\t}\n\n\t\t\tname = arg.substring(j, idx);\n\t\t\tval = arg.substring(++idx) || (i+1 === len || (''+args[i+1]).charCodeAt(0) === 45 || args[++i]);\n\t\t\tarr = (j === 2 ? [name] : name);\n\n\t\t\tfor (idx=0; idx < arr.length; idx++) {\n\t\t\t\tname = arr[idx];\n\t\t\t\tif (strict && !~keys.indexOf(name)) return opts.unknown('-'.repeat(j) + name);\n\t\t\t\ttoVal(out, name, (idx + 1 < arr.length) || val, opts);\n\t\t\t}\n\t\t}\n\t}\n\n\tif (defaults) {\n\t\tfor (k in opts.default) {\n\t\t\tif (out[k] === void 0) {\n\t\t\t\tout[k] = opts.default[k];\n\t\t\t}\n\t\t}\n\t}\n\n\tif (alibi) {\n\t\tfor (k in out) {\n\t\t\tarr = opts.alias[k] || [];\n\t\t\twhile (arr.length > 0) {\n\t\t\t\tout[arr.shift()] = out[k];\n\t\t\t}\n\t\t}\n\t}\n\n\treturn out;\n}\n","const DefaultVersions: Record = {\n msvc: \"2019\",\n llvm: \"11\",\n ninja: \"1.10.2\",\n cmake: \"3.20.2\",\n gcovr: \"5.0\",\n conan: \"1.40.1\",\n meson: \"0.59.1\",\n python: \"3.x\",\n gcc: process.platform === \"win32\" ? \"10.2.0\" : \"11\",\n}\n\n/** Get the default version if passed true or undefined, otherwise return the version itself */\nexport function getVersion(name: string, version: string | undefined) {\n if (version === \"true\" || (version === undefined && name in DefaultVersions)) {\n return DefaultVersions[name]\n } else {\n return version ?? \"\"\n }\n}\n","import { exportVariable, info } from \"@actions/core\"\nimport { addPath } from \"../utils/path/addPath\"\nimport { existsSync } from \"fs\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport semverMajor from \"semver/functions/major\"\nimport semverCoerce from \"semver/functions/coerce\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupGcc(version: string, _setupCppDir: string, arch: string) {\n let binDir: string | undefined\n switch (process.platform) {\n case \"win32\": {\n if (arch === \"arm\" || arch === \"arm64\") {\n await setupChocoPack(\"gcc-arm-embedded\", version)\n }\n await setupChocoPack(\"mingw\", version)\n if (arch === \"x64\" && existsSync(\"C:/tools/mingw64/bin\")) {\n binDir = \"C:/tools/mingw64/bin\"\n await addPath(binDir)\n } else if (arch === \"ia32\" && existsSync(\"C:/tools/mingw32/bin\")) {\n binDir = \"C:/tools/mingw32/bin\"\n await addPath(binDir)\n } else if (existsSync(\"C:/ProgramData/Chocolatey/bin/g++.exe\")) {\n binDir = \"C:/ProgramData/Chocolatey/bin/\"\n }\n break\n }\n case \"darwin\": {\n binDir = setupBrewPack(\"gcc\", version).binDir\n break\n }\n case \"linux\": {\n if (arch === \"x64\") {\n binDir = (await setupAptPack(\"g++\", version, \"ppa:ubuntu-toolchain-r/test\")).binDir\n } else {\n info(`Install g++-multilib because gcc for ${arch} was requested`)\n binDir = (await setupAptPack(\"g++-multilib\", version, \"ppa:ubuntu-toolchain-r/test\")).binDir\n }\n break\n }\n // TODO support bare-metal\n // TODO support abi\n // case \"none\": {\n // if (arch === \"arm\" || arch === \"arm64\") {\n // return setupAptPack(\"gcc-arm-none-eabi\", version, \"ppa:ubuntu-toolchain-r/test\")\n // } else {\n // throw new Error(`Unsupported platform for ${arch}`)\n // }\n // }\n default: {\n throw new Error(`Unsupported platform for ${arch}`)\n }\n }\n if (binDir !== undefined) {\n const majorVersion = semverMajor(semverCoerce(version) ?? version)\n\n // TODO\n // const ld = process.env.LD_LIBRARY_PATH ?? \"\"\n // const dyld = process.env.DYLD_LIBRARY_PATH ?? \"\"\n\n // // Setup gcc as the compiler\n // exportVariable(\"LD_LIBRARY_PATH\", `${installDir}/lib${path.delimiter}${ld}`)\n // exportVariable(\"DYLD_LIBRARY_PATH\", `${installDir}/lib${path.delimiter}${dyld}`)\n\n // exportVariable(\"CPATH\", `${installDir}/lib/gcc/${majorVersion}/include`)\n\n // exportVariable(\"LDFLAGS\", `-L${installDir}/lib`)\n // exportVariable(\"CPPFLAGS\", `-I${installDir}/include`)\n\n if (process.platform === \"win32\") {\n exportVariable(\"CC\", `${binDir}/gcc`)\n exportVariable(\"CXX\", `${binDir}/g++`)\n } else {\n exportVariable(\"CC\", `${binDir}/gcc-${majorVersion}`)\n exportVariable(\"CXX\", `${binDir}/g++-${majorVersion}`)\n }\n return { binDir }\n }\n return undefined\n}\n","import * as core from \"@actions/core\"\nimport { isCI } from \"../env/isci\"\n\nexport function error(err: string | Error) {\n return isCI() ? core.error(err) : console.log(`\\x1b[31m${err}\\x1b[0m`)\n}\n\nexport function success(msg: string) {\n return isCI() ? core.info(msg) : console.log(`\\x1b[32m${msg}\\x1b[0m`)\n}\n","import * as core from \"@actions/core\"\nimport { setupBrew } from \"./brew/brew\"\nimport { setupCcache } from \"./ccache/ccache\"\nimport { setupChocolatey } from \"./chocolatey/chocolatey\"\nimport { setupCmake } from \"./cmake/cmake\"\nimport { setupConan } from \"./conan/conan\"\nimport { setupCppcheck } from \"./cppcheck/cppcheck\"\nimport { setupDoxygen } from \"./doxygen/doxygen\"\nimport { setupGcovr } from \"./gcovr/gcovr\"\nimport { setupLLVM } from \"./llvm/llvm\"\nimport { setupMeson } from \"./meson/meson\"\nimport { setupMSVC } from \"./msvc/msvc\"\nimport { setupNinja } from \"./ninja/ninja\"\nimport { setupOpencppcoverage } from \"./opencppcoverage/opencppcoverage\"\nimport { setupPython } from \"./python/python\"\nimport mri from \"mri\"\nimport untildify from \"untildify\"\nimport { isCI } from \"./utils/env/isci\"\n\nimport semverValid from \"semver/functions/valid\"\nimport { getVersion } from \"./default_versions\"\nimport { setupGcc } from \"./gcc/gcc\"\nimport { InstallationInfo } from \"./utils/setup/setupBin\"\nimport { error, success } from \"./utils/io/io\"\n\n/** The setup functions */\nconst setups = {\n cmake: setupCmake,\n ninja: setupNinja,\n python: setupPython,\n conan: setupConan,\n meson: setupMeson,\n gcovr: setupGcovr,\n opencppcoverage: setupOpencppcoverage,\n llvm: setupLLVM,\n gcc: setupGcc,\n choco: setupChocolatey,\n brew: setupBrew,\n ccache: setupCcache,\n doxygen: setupDoxygen,\n cppcheck: setupCppcheck,\n msvc: setupMSVC,\n}\n\n/** The tools that can be installed */\nconst tools: Array = [\n \"choco\",\n \"brew\",\n \"python\",\n \"cmake\",\n \"ninja\",\n \"conan\",\n \"meson\",\n \"gcovr\",\n \"opencppcoverage\",\n \"ccache\",\n \"doxygen\",\n \"cppcheck\",\n \"llvm\",\n \"gcc\",\n \"msvc\",\n]\n\n/** The possible inputs to the program */\ntype Inputs = keyof typeof setups | \"compiler\" | \"architecture\"\n\n// an array of possible inputs\nconst inputs: Array = [\"compiler\", \"architecture\", ...tools]\n\n/** The main entry function */\nexport async function main(args: string[]): Promise {\n if (!isCI()) {\n process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS = \"true\"\n }\n\n // parse options using mri or github actions\n const opts = mri & { help: boolean }>(args, {\n string: inputs,\n default: Object.fromEntries(inputs.map((inp) => [inp, maybeGetInput(inp)])),\n alias: { h: \"help\" },\n boolean: \"help\",\n })\n\n // print help\n if (opts.help) {\n printHelp()\n }\n\n // cpu architecture\n const arch = opts.architecture ?? process.arch\n\n // the installation dir for the tools that are downloaded directly\n const setupCppDir = process.env.SETUP_CPP_DIR ?? untildify(\"~/setup_cpp\")\n\n // report messages\n const successMessages: string[] = []\n const errorMessages: string[] = []\n\n // installing the specified tools\n\n // loop over the tools and run their setup function\n for (const tool of tools) {\n // get the version or \"true\" or undefined for this tool from the options\n const value = opts[tool]\n\n // skip if undefined\n if (value !== undefined) {\n // get the setup function\n const setupFunction = setups[tool]\n\n // runnig the setup function for this tool\n try {\n // eslint-disable-next-line no-await-in-loop\n const installationInfo = await setupFunction(getVersion(tool, value), setupCppDir, arch)\n\n // preparing a report string\n if (installationInfo !== undefined) {\n successMessages.push(getSuccessMessage(tool, installationInfo))\n } else {\n successMessages.push(`${tool} was successfully installed`)\n }\n } catch (e) {\n // push error message to the logger\n error(e as string | Error)\n errorMessages.push(`${tool} failed to install`)\n }\n }\n }\n\n // installing the specified compiler\n const maybeCompiler = opts.compiler\n try {\n if (maybeCompiler !== undefined) {\n // detecting the compiler version. Devide the given string by `-` and use the second element as the version\n const compilerAndMaybeVersion = maybeCompiler.split(\"-\")\n const compiler = compilerAndMaybeVersion[0]\n let version: string | undefined\n if (1 in compilerAndMaybeVersion) {\n const maybeVersion = compilerAndMaybeVersion[1]\n if (semverValid(maybeVersion) !== null) {\n version = maybeVersion\n } else {\n error(`Invalid version ${maybeVersion} used for the compiler. Using the default version...`)\n }\n }\n\n // install the compiler. We allow some aliases for the compiler name\n switch (compiler) {\n case \"llvm\":\n case \"clang\":\n case \"clang++\": {\n await setupLLVM(getVersion(\"llvm\", version) as string, setupCppDir, arch)\n break\n }\n case \"gcc\":\n case \"mingw\":\n case \"cygwin\":\n case \"msys\": {\n await setupGcc(getVersion(\"gcc\", version) as string, setupCppDir, arch)\n break\n }\n case \"cl\":\n case \"msvc\":\n case \"msbuild\":\n case \"vs\":\n case \"visualstudio\":\n case \"visualcpp\":\n case \"visualc++\": {\n await setupMSVC(getVersion(\"msvc\", version) as string, setupCppDir, arch)\n break\n }\n default: {\n errorMessages.push(`Unsupported compiler ${compiler}`)\n }\n }\n }\n } catch (e) {\n error(e as string | Error)\n errorMessages.push(`Failed to install the ${maybeCompiler}`)\n }\n\n // report the messages in the end\n successMessages.forEach((tool) => success(tool))\n errorMessages.forEach((tool) => error(tool))\n\n core.info(\"setup_cpp finished\")\n return errorMessages.length === 0 ? 0 : 1 // exit with non-zero if any error message\n}\n// Run main\nmain(process.argv)\n .then((ret) => {\n process.exitCode = ret\n })\n .catch((err) => {\n error(\"main() panicked!\")\n error(err as string | Error)\n process.exitCode = 1\n })\n\nfunction printHelp() {\n core.info(`\nsetup_cpp [options]\nsetup_cpp --compiler llvm --cmake true --ninja true --ccache true --conan \"1.40.1\"\n\nInstall all the tools required for building and testing C++/C projects.\n\n--architecture\\t the cpu architecture to install the tools for. By default it uses the current CPU architecture.\n--compiler\\t the to install.\n \\t You can specify the version instead of specifying just the name e.g: --compiler 'llvm-11'\n\n--tool_name\\t pass \"true\" or pass the you would like to install for this tool.\n\nAll the available tools:\n--llvm\n--gcc\n--cmake\n--ninja\n--meson\n--conan\n--ccache\n--cppcheck\n--doxygen\n--gcovr\n--opencppcoverage\n--python\n--choco\n--brew\n `)\n}\n\n/** Get an object from github actions */\nfunction maybeGetInput(key: string) {\n const value = core.getInput(key.toLowerCase())\n if (value !== \"false\" && value !== \"\") {\n return value\n }\n return undefined // skip installation\n}\n\nfunction getSuccessMessage(tool: string, installationInfo: InstallationInfo) {\n let msg = `${tool} was successfully installed`\n if (\"installDir\" in installationInfo) {\n msg += `\\nThe installation direcotry is ${installationInfo.installDir}`\n }\n if (installationInfo.binDir !== \"\") {\n msg += `\\nThe binary direcotry is ${installationInfo.binDir}`\n }\n return msg\n}\n",null,null,null,null,"const isWindows = process.platform === 'win32' ||\n process.env.OSTYPE === 'cygwin' ||\n process.env.OSTYPE === 'msys'\n\nconst path = require('path')\nconst COLON = isWindows ? ';' : ':'\nconst isexe = require('isexe')\n\nconst getNotFoundError = (cmd) =>\n Object.assign(new Error(`not found: ${cmd}`), { code: 'ENOENT' })\n\nconst getPathInfo = (cmd, opt) => {\n const colon = opt.colon || COLON\n\n // If it has a slash, then we don't bother searching the pathenv.\n // just check the file itself, and that's it.\n const pathEnv = cmd.match(/\\//) || isWindows && cmd.match(/\\\\/) ? ['']\n : (\n [\n // windows always checks the cwd first\n ...(isWindows ? [process.cwd()] : []),\n ...(opt.path || process.env.PATH ||\n /* istanbul ignore next: very unusual */ '').split(colon),\n ]\n )\n const pathExtExe = isWindows\n ? opt.pathExt || process.env.PATHEXT || '.EXE;.CMD;.BAT;.COM'\n : ''\n const pathExt = isWindows ? pathExtExe.split(colon) : ['']\n\n if (isWindows) {\n if (cmd.indexOf('.') !== -1 && pathExt[0] !== '')\n pathExt.unshift('')\n }\n\n return {\n pathEnv,\n pathExt,\n pathExtExe,\n }\n}\n\nconst which = (cmd, opt, cb) => {\n if (typeof opt === 'function') {\n cb = opt\n opt = {}\n }\n if (!opt)\n opt = {}\n\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n const step = i => new Promise((resolve, reject) => {\n if (i === pathEnv.length)\n return opt.all && found.length ? resolve(found)\n : reject(getNotFoundError(cmd))\n\n const ppRaw = pathEnv[i]\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw\n\n const pCmd = path.join(pathPart, cmd)\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd\n : pCmd\n\n resolve(subStep(p, i, 0))\n })\n\n const subStep = (p, i, ii) => new Promise((resolve, reject) => {\n if (ii === pathExt.length)\n return resolve(step(i + 1))\n const ext = pathExt[ii]\n isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {\n if (!er && is) {\n if (opt.all)\n found.push(p + ext)\n else\n return resolve(p + ext)\n }\n return resolve(subStep(p, i, ii + 1))\n })\n })\n\n return cb ? step(0).then(res => cb(null, res), cb) : step(0)\n}\n\nconst whichSync = (cmd, opt) => {\n opt = opt || {}\n\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n for (let i = 0; i < pathEnv.length; i ++) {\n const ppRaw = pathEnv[i]\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw\n\n const pCmd = path.join(pathPart, cmd)\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd\n : pCmd\n\n for (let j = 0; j < pathExt.length; j ++) {\n const cur = p + pathExt[j]\n try {\n const is = isexe.sync(cur, { pathExt: pathExtExe })\n if (is) {\n if (opt.all)\n found.push(cur)\n else\n return cur\n }\n } catch (ex) {}\n }\n }\n\n if (opt.all && found.length)\n return found\n\n if (opt.nothrow)\n return null\n\n throw getNotFoundError(cmd)\n}\n\nmodule.exports = which\nwhich.sync = whichSync\n","module.exports = isexe\nisexe.sync = sync\n\nvar fs = require('fs')\n\nfunction checkPathExt (path, options) {\n var pathext = options.pathExt !== undefined ?\n options.pathExt : process.env.PATHEXT\n\n if (!pathext) {\n return true\n }\n\n pathext = pathext.split(';')\n if (pathext.indexOf('') !== -1) {\n return true\n }\n for (var i = 0; i < pathext.length; i++) {\n var p = pathext[i].toLowerCase()\n if (p && path.substr(-p.length).toLowerCase() === p) {\n return true\n }\n }\n return false\n}\n\nfunction checkStat (stat, path, options) {\n if (!stat.isSymbolicLink() && !stat.isFile()) {\n return false\n }\n return checkPathExt(path, options)\n}\n\nfunction isexe (path, options, cb) {\n fs.stat(path, function (er, stat) {\n cb(er, er ? false : checkStat(stat, path, options))\n })\n}\n\nfunction sync (path, options) {\n return checkStat(fs.statSync(path), path, options)\n}\n","module.exports = isexe\nisexe.sync = sync\n\nvar fs = require('fs')\n\nfunction isexe (path, options, cb) {\n fs.stat(path, function (er, stat) {\n cb(er, er ? false : checkStat(stat, options))\n })\n}\n\nfunction sync (path, options) {\n return checkStat(fs.statSync(path), options)\n}\n\nfunction checkStat (stat, options) {\n return stat.isFile() && checkMode(stat, options)\n}\n\nfunction checkMode (stat, options) {\n var mod = stat.mode\n var uid = stat.uid\n var gid = stat.gid\n\n var myUid = options.uid !== undefined ?\n options.uid : process.getuid && process.getuid()\n var myGid = options.gid !== undefined ?\n options.gid : process.getgid && process.getgid()\n\n var u = parseInt('100', 8)\n var g = parseInt('010', 8)\n var o = parseInt('001', 8)\n var ug = u | g\n\n var ret = (mod & o) ||\n (mod & g) && gid === myGid ||\n (mod & u) && uid === myUid ||\n (mod & ug) && myUid === 0\n\n return ret\n}\n","'use strict';\n\nconst pathKey = (options = {}) => {\n\tconst environment = options.env || process.env;\n\tconst platform = options.platform || process.platform;\n\n\tif (platform !== 'win32') {\n\t\treturn 'PATH';\n\t}\n\n\treturn Object.keys(environment).reverse().find(key => key.toUpperCase() === 'PATH') || 'Path';\n};\n\nmodule.exports = pathKey;\n// TODO: Remove this for the next major release\nmodule.exports.default = pathKey;\n","'use strict';\n\n// See http://www.robvanderwoude.com/escapechars.php\nconst metaCharsRegExp = /([()\\][%!^\"`<>&|;, *?])/g;\n\nfunction escapeCommand(arg) {\n // Escape meta chars\n arg = arg.replace(metaCharsRegExp, '^$1');\n\n return arg;\n}\n\nfunction escapeArgument(arg, doubleEscapeMetaChars) {\n // Convert to string\n arg = `${arg}`;\n\n // Algorithm below is based on https://qntm.org/cmd\n\n // Sequence of backslashes followed by a double quote:\n // double up all the backslashes and escape the double quote\n arg = arg.replace(/(\\\\*)\"/g, '$1$1\\\\\"');\n\n // Sequence of backslashes followed by the end of the string\n // (which will become a double quote later):\n // double up all the backslashes\n arg = arg.replace(/(\\\\*)$/, '$1$1');\n\n // All other backslashes occur literally\n\n // Quote the whole thing:\n arg = `\"${arg}\"`;\n\n // Escape meta chars\n arg = arg.replace(metaCharsRegExp, '^$1');\n\n // Double escape meta chars if necessary\n if (doubleEscapeMetaChars) {\n arg = arg.replace(metaCharsRegExp, '^$1');\n }\n\n return arg;\n}\n\nmodule.exports.command = escapeCommand;\nmodule.exports.argument = escapeArgument;\n","'use strict';\nconst shebangRegex = require('shebang-regex');\n\nmodule.exports = (string = '') => {\n\tconst match = string.match(shebangRegex);\n\n\tif (!match) {\n\t\treturn null;\n\t}\n\n\tconst [path, argument] = match[0].replace(/#! ?/, '').split(' ');\n\tconst binary = path.split('/').pop();\n\n\tif (binary === 'env') {\n\t\treturn argument;\n\t}\n\n\treturn argument ? `${binary} ${argument}` : binary;\n};\n","'use strict';\nmodule.exports = /^#!(.*)/;\n","'use strict';\n\nconst fs = require('fs');\nconst shebangCommand = require('shebang-command');\n\nfunction readShebang(command) {\n // Read the first 150 bytes from the file\n const size = 150;\n const buffer = Buffer.alloc(size);\n\n let fd;\n\n try {\n fd = fs.openSync(command, 'r');\n fs.readSync(fd, buffer, 0, size, 0);\n fs.closeSync(fd);\n } catch (e) { /* Empty */ }\n\n // Attempt to extract shebang (null is returned if not a shebang)\n return shebangCommand(buffer.toString());\n}\n\nmodule.exports = readShebang;\n","'use strict';\n\nconst path = require('path');\nconst resolveCommand = require('./util/resolveCommand');\nconst escape = require('./util/escape');\nconst readShebang = require('./util/readShebang');\n\nconst isWin = process.platform === 'win32';\nconst isExecutableRegExp = /\\.(?:com|exe)$/i;\nconst isCmdShimRegExp = /node_modules[\\\\/].bin[\\\\/][^\\\\/]+\\.cmd$/i;\n\nfunction detectShebang(parsed) {\n parsed.file = resolveCommand(parsed);\n\n const shebang = parsed.file && readShebang(parsed.file);\n\n if (shebang) {\n parsed.args.unshift(parsed.file);\n parsed.command = shebang;\n\n return resolveCommand(parsed);\n }\n\n return parsed.file;\n}\n\nfunction parseNonShell(parsed) {\n if (!isWin) {\n return parsed;\n }\n\n // Detect & add support for shebangs\n const commandFile = detectShebang(parsed);\n\n // We don't need a shell if the command filename is an executable\n const needsShell = !isExecutableRegExp.test(commandFile);\n\n // If a shell is required, use cmd.exe and take care of escaping everything correctly\n // Note that `forceShell` is an hidden option used only in tests\n if (parsed.options.forceShell || needsShell) {\n // Need to double escape meta chars if the command is a cmd-shim located in `node_modules/.bin/`\n // The cmd-shim simply calls execute the package bin file with NodeJS, proxying any argument\n // Because the escape of metachars with ^ gets interpreted when the cmd.exe is first called,\n // we need to double escape them\n const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);\n\n // Normalize posix paths into OS compatible paths (e.g.: foo/bar -> foo\\bar)\n // This is necessary otherwise it will always fail with ENOENT in those cases\n parsed.command = path.normalize(parsed.command);\n\n // Escape command & arguments\n parsed.command = escape.command(parsed.command);\n parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));\n\n const shellCommand = [parsed.command].concat(parsed.args).join(' ');\n\n parsed.args = ['/d', '/s', '/c', `\"${shellCommand}\"`];\n parsed.command = process.env.comspec || 'cmd.exe';\n parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped\n }\n\n return parsed;\n}\n\nfunction parse(command, args, options) {\n // Normalize arguments, similar to nodejs\n if (args && !Array.isArray(args)) {\n options = args;\n args = null;\n }\n\n args = args ? args.slice(0) : []; // Clone array to avoid changing the original\n options = Object.assign({}, options); // Clone object to avoid changing the original\n\n // Build our parsed object\n const parsed = {\n command,\n args,\n options,\n file: undefined,\n original: {\n command,\n args,\n },\n };\n\n // Delegate further parsing to shell or non-shell\n return options.shell ? parsed : parseNonShell(parsed);\n}\n\nmodule.exports = parse;\n","'use strict';\n\nmodule.exports = input => {\n\tconst LF = typeof input === 'string' ? '\\n' : '\\n'.charCodeAt();\n\tconst CR = typeof input === 'string' ? '\\r' : '\\r'.charCodeAt();\n\n\tif (input[input.length - 1] === LF) {\n\t\tinput = input.slice(0, input.length - 1);\n\t}\n\n\tif (input[input.length - 1] === CR) {\n\t\tinput = input.slice(0, input.length - 1);\n\t}\n\n\treturn input;\n};\n","'use strict';\nconst path = require('path');\nconst pathKey = require('path-key');\n\nconst npmRunPath = options => {\n\toptions = {\n\t\tcwd: process.cwd(),\n\t\tpath: process.env[pathKey()],\n\t\texecPath: process.execPath,\n\t\t...options\n\t};\n\n\tlet previous;\n\tlet cwdPath = path.resolve(options.cwd);\n\tconst result = [];\n\n\twhile (previous !== cwdPath) {\n\t\tresult.push(path.join(cwdPath, 'node_modules/.bin'));\n\t\tprevious = cwdPath;\n\t\tcwdPath = path.resolve(cwdPath, '..');\n\t}\n\n\t// Ensure the running `node` binary is used\n\tconst execPathDir = path.resolve(options.cwd, options.execPath, '..');\n\tresult.push(execPathDir);\n\n\treturn result.concat(options.path).join(path.delimiter);\n};\n\nmodule.exports = npmRunPath;\n// TODO: Remove this for the next major release\nmodule.exports.default = npmRunPath;\n\nmodule.exports.env = options => {\n\toptions = {\n\t\tenv: process.env,\n\t\t...options\n\t};\n\n\tconst env = {...options.env};\n\tconst path = pathKey({env});\n\n\toptions.path = env[path];\n\tenv[path] = module.exports(options);\n\n\treturn env;\n};\n","'use strict';\n\nconst mimicFn = (to, from) => {\n\tfor (const prop of Reflect.ownKeys(from)) {\n\t\tObject.defineProperty(to, prop, Object.getOwnPropertyDescriptor(from, prop));\n\t}\n\n\treturn to;\n};\n\nmodule.exports = mimicFn;\n// TODO: Remove this for the next major release\nmodule.exports.default = mimicFn;\n","'use strict';\nconst mimicFn = require('mimic-fn');\n\nconst calledFunctions = new WeakMap();\n\nconst onetime = (function_, options = {}) => {\n\tif (typeof function_ !== 'function') {\n\t\tthrow new TypeError('Expected a function');\n\t}\n\n\tlet returnValue;\n\tlet callCount = 0;\n\tconst functionName = function_.displayName || function_.name || '';\n\n\tconst onetime = function (...arguments_) {\n\t\tcalledFunctions.set(onetime, ++callCount);\n\n\t\tif (callCount === 1) {\n\t\t\treturnValue = function_.apply(this, arguments_);\n\t\t\tfunction_ = null;\n\t\t} else if (options.throw === true) {\n\t\t\tthrow new Error(`Function \\`${functionName}\\` can only be called once`);\n\t\t}\n\n\t\treturn returnValue;\n\t};\n\n\tmimicFn(onetime, function_);\n\tcalledFunctions.set(onetime, callCount);\n\n\treturn onetime;\n};\n\nmodule.exports = onetime;\n// TODO: Remove this for the next major release\nmodule.exports.default = onetime;\n\nmodule.exports.callCount = function_ => {\n\tif (!calledFunctions.has(function_)) {\n\t\tthrow new Error(`The given function \\`${function_.name}\\` is not wrapped by the \\`onetime\\` package`);\n\t}\n\n\treturn calledFunctions.get(function_);\n};\n","import { constants } from 'os'\n\nimport { getSignals } from './signals.js'\nimport { SIGRTMAX } from './realtime.js'\n\n// Retrieve `signalsByName`, an object mapping signal name to signal properties.\n// We make sure the object is sorted by `number`.\nconst getSignalsByName = function() {\n const signals = getSignals()\n return signals.reduce(getSignalByName, {})\n}\n\nconst getSignalByName = function(\n signalByNameMemo,\n { name, number, description, supported, action, forced, standard },\n) {\n return {\n ...signalByNameMemo,\n [name]: { name, number, description, supported, action, forced, standard },\n }\n}\n\nexport const signalsByName = getSignalsByName()\n\n// Retrieve `signalsByNumber`, an object mapping signal number to signal\n// properties.\n// We make sure the object is sorted by `number`.\nconst getSignalsByNumber = function() {\n const signals = getSignals()\n const length = SIGRTMAX + 1\n const signalsA = Array.from({ length }, (value, number) =>\n getSignalByNumber(number, signals),\n )\n return Object.assign({}, ...signalsA)\n}\n\nconst getSignalByNumber = function(number, signals) {\n const signal = findSignalByNumber(number, signals)\n\n if (signal === undefined) {\n return {}\n }\n\n const { name, description, supported, action, forced, standard } = signal\n return {\n [number]: {\n name,\n number,\n description,\n supported,\n action,\n forced,\n standard,\n },\n }\n}\n\n// Several signals might end up sharing the same number because of OS-specific\n// numbers, in which case those prevail.\nconst findSignalByNumber = function(number, signals) {\n const signal = signals.find(({ name }) => constants.signals[name] === number)\n\n if (signal !== undefined) {\n return signal\n }\n\n return signals.find(signalA => signalA.number === number)\n}\n\nexport const signalsByNumber = getSignalsByNumber()\n","import { constants } from 'os'\n\nimport { SIGNALS } from './core.js'\nimport { getRealtimeSignals } from './realtime.js'\n\n// Retrieve list of know signals (including realtime) with information about\n// them\nexport const getSignals = function() {\n const realtimeSignals = getRealtimeSignals()\n const signals = [...SIGNALS, ...realtimeSignals].map(normalizeSignal)\n return signals\n}\n\n// Normalize signal:\n// - `number`: signal numbers are OS-specific. This is taken into account by\n// `os.constants.signals`. However we provide a default `number` since some\n// signals are not defined for some OS.\n// - `forced`: set default to `false`\n// - `supported`: set value\nconst normalizeSignal = function({\n name,\n number: defaultNumber,\n description,\n action,\n forced = false,\n standard,\n}) {\n const {\n signals: { [name]: constantSignal },\n } = constants\n const supported = constantSignal !== undefined\n const number = supported ? constantSignal : defaultNumber\n return { name, number, description, supported, action, forced, standard }\n}\n","/* eslint-disable max-lines */\n// List of known process signals with information about them\nexport const SIGNALS = [\n {\n name: 'SIGHUP',\n number: 1,\n action: 'terminate',\n description: 'Terminal closed',\n standard: 'posix',\n },\n {\n name: 'SIGINT',\n number: 2,\n action: 'terminate',\n description: 'User interruption with CTRL-C',\n standard: 'ansi',\n },\n {\n name: 'SIGQUIT',\n number: 3,\n action: 'core',\n description: 'User interruption with CTRL-\\\\',\n standard: 'posix',\n },\n {\n name: 'SIGILL',\n number: 4,\n action: 'core',\n description: 'Invalid machine instruction',\n standard: 'ansi',\n },\n {\n name: 'SIGTRAP',\n number: 5,\n action: 'core',\n description: 'Debugger breakpoint',\n standard: 'posix',\n },\n {\n name: 'SIGABRT',\n number: 6,\n action: 'core',\n description: 'Aborted',\n standard: 'ansi',\n },\n {\n name: 'SIGIOT',\n number: 6,\n action: 'core',\n description: 'Aborted',\n standard: 'bsd',\n },\n {\n name: 'SIGBUS',\n number: 7,\n action: 'core',\n description:\n 'Bus error due to misaligned, non-existing address or paging error',\n standard: 'bsd',\n },\n {\n name: 'SIGEMT',\n number: 7,\n action: 'terminate',\n description: 'Command should be emulated but is not implemented',\n standard: 'other',\n },\n {\n name: 'SIGFPE',\n number: 8,\n action: 'core',\n description: 'Floating point arithmetic error',\n standard: 'ansi',\n },\n {\n name: 'SIGKILL',\n number: 9,\n action: 'terminate',\n description: 'Forced termination',\n standard: 'posix',\n forced: true,\n },\n {\n name: 'SIGUSR1',\n number: 10,\n action: 'terminate',\n description: 'Application-specific signal',\n standard: 'posix',\n },\n {\n name: 'SIGSEGV',\n number: 11,\n action: 'core',\n description: 'Segmentation fault',\n standard: 'ansi',\n },\n {\n name: 'SIGUSR2',\n number: 12,\n action: 'terminate',\n description: 'Application-specific signal',\n standard: 'posix',\n },\n {\n name: 'SIGPIPE',\n number: 13,\n action: 'terminate',\n description: 'Broken pipe or socket',\n standard: 'posix',\n },\n {\n name: 'SIGALRM',\n number: 14,\n action: 'terminate',\n description: 'Timeout or timer',\n standard: 'posix',\n },\n {\n name: 'SIGTERM',\n number: 15,\n action: 'terminate',\n description: 'Termination',\n standard: 'ansi',\n },\n {\n name: 'SIGSTKFLT',\n number: 16,\n action: 'terminate',\n description: 'Stack is empty or overflowed',\n standard: 'other',\n },\n {\n name: 'SIGCHLD',\n number: 17,\n action: 'ignore',\n description: 'Child process terminated, paused or unpaused',\n standard: 'posix',\n },\n {\n name: 'SIGCLD',\n number: 17,\n action: 'ignore',\n description: 'Child process terminated, paused or unpaused',\n standard: 'other',\n },\n {\n name: 'SIGCONT',\n number: 18,\n action: 'unpause',\n description: 'Unpaused',\n standard: 'posix',\n forced: true,\n },\n {\n name: 'SIGSTOP',\n number: 19,\n action: 'pause',\n description: 'Paused',\n standard: 'posix',\n forced: true,\n },\n {\n name: 'SIGTSTP',\n number: 20,\n action: 'pause',\n description: 'Paused using CTRL-Z or \"suspend\"',\n standard: 'posix',\n },\n {\n name: 'SIGTTIN',\n number: 21,\n action: 'pause',\n description: 'Background process cannot read terminal input',\n standard: 'posix',\n },\n {\n name: 'SIGBREAK',\n number: 21,\n action: 'terminate',\n description: 'User interruption with CTRL-BREAK',\n standard: 'other',\n },\n {\n name: 'SIGTTOU',\n number: 22,\n action: 'pause',\n description: 'Background process cannot write to terminal output',\n standard: 'posix',\n },\n {\n name: 'SIGURG',\n number: 23,\n action: 'ignore',\n description: 'Socket received out-of-band data',\n standard: 'bsd',\n },\n {\n name: 'SIGXCPU',\n number: 24,\n action: 'core',\n description: 'Process timed out',\n standard: 'bsd',\n },\n {\n name: 'SIGXFSZ',\n number: 25,\n action: 'core',\n description: 'File too big',\n standard: 'bsd',\n },\n {\n name: 'SIGVTALRM',\n number: 26,\n action: 'terminate',\n description: 'Timeout or timer',\n standard: 'bsd',\n },\n {\n name: 'SIGPROF',\n number: 27,\n action: 'terminate',\n description: 'Timeout or timer',\n standard: 'bsd',\n },\n {\n name: 'SIGWINCH',\n number: 28,\n action: 'ignore',\n description: 'Terminal window size changed',\n standard: 'bsd',\n },\n {\n name: 'SIGIO',\n number: 29,\n action: 'terminate',\n description: 'I/O is available',\n standard: 'other',\n },\n {\n name: 'SIGPOLL',\n number: 29,\n action: 'terminate',\n description: 'Watched event',\n standard: 'other',\n },\n {\n name: 'SIGINFO',\n number: 29,\n action: 'ignore',\n description: 'Request for process information',\n standard: 'other',\n },\n {\n name: 'SIGPWR',\n number: 30,\n action: 'terminate',\n description: 'Device running out of power',\n standard: 'systemv',\n },\n {\n name: 'SIGSYS',\n number: 31,\n action: 'core',\n description: 'Invalid system call',\n standard: 'other',\n },\n {\n name: 'SIGUNUSED',\n number: 31,\n action: 'terminate',\n description: 'Invalid system call',\n standard: 'other',\n },\n]\n/* eslint-enable max-lines */\n","// List of realtime signals with information about them\nexport const getRealtimeSignals = function() {\n const length = SIGRTMAX - SIGRTMIN + 1\n return Array.from({ length }, getRealtimeSignal)\n}\n\nconst getRealtimeSignal = function(value, index) {\n return {\n name: `SIGRT${index + 1}`,\n number: SIGRTMIN + index,\n action: 'terminate',\n description: 'Application-specific signal (realtime)',\n standard: 'posix',\n }\n}\n\nconst SIGRTMIN = 34\nexport const SIGRTMAX = 64\n","'use strict';\nconst {signalsByName} = require('human-signals');\n\nconst getErrorPrefix = ({timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled}) => {\n\tif (timedOut) {\n\t\treturn `timed out after ${timeout} milliseconds`;\n\t}\n\n\tif (isCanceled) {\n\t\treturn 'was canceled';\n\t}\n\n\tif (errorCode !== undefined) {\n\t\treturn `failed with ${errorCode}`;\n\t}\n\n\tif (signal !== undefined) {\n\t\treturn `was killed with ${signal} (${signalDescription})`;\n\t}\n\n\tif (exitCode !== undefined) {\n\t\treturn `failed with exit code ${exitCode}`;\n\t}\n\n\treturn 'failed';\n};\n\nconst makeError = ({\n\tstdout,\n\tstderr,\n\tall,\n\terror,\n\tsignal,\n\texitCode,\n\tcommand,\n\tescapedCommand,\n\ttimedOut,\n\tisCanceled,\n\tkilled,\n\tparsed: {options: {timeout}}\n}) => {\n\t// `signal` and `exitCode` emitted on `spawned.on('exit')` event can be `null`.\n\t// We normalize them to `undefined`\n\texitCode = exitCode === null ? undefined : exitCode;\n\tsignal = signal === null ? undefined : signal;\n\tconst signalDescription = signal === undefined ? undefined : signalsByName[signal].description;\n\n\tconst errorCode = error && error.code;\n\n\tconst prefix = getErrorPrefix({timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled});\n\tconst execaMessage = `Command ${prefix}: ${command}`;\n\tconst isError = Object.prototype.toString.call(error) === '[object Error]';\n\tconst shortMessage = isError ? `${execaMessage}\\n${error.message}` : execaMessage;\n\tconst message = [shortMessage, stderr, stdout].filter(Boolean).join('\\n');\n\n\tif (isError) {\n\t\terror.originalMessage = error.message;\n\t\terror.message = message;\n\t} else {\n\t\terror = new Error(message);\n\t}\n\n\terror.shortMessage = shortMessage;\n\terror.command = command;\n\terror.escapedCommand = escapedCommand;\n\terror.exitCode = exitCode;\n\terror.signal = signal;\n\terror.signalDescription = signalDescription;\n\terror.stdout = stdout;\n\terror.stderr = stderr;\n\n\tif (all !== undefined) {\n\t\terror.all = all;\n\t}\n\n\tif ('bufferedData' in error) {\n\t\tdelete error.bufferedData;\n\t}\n\n\terror.failed = true;\n\terror.timedOut = Boolean(timedOut);\n\terror.isCanceled = isCanceled;\n\terror.killed = killed && !timedOut;\n\n\treturn error;\n};\n\nmodule.exports = makeError;\n","'use strict';\nconst aliases = ['stdin', 'stdout', 'stderr'];\n\nconst hasAlias = options => aliases.some(alias => options[alias] !== undefined);\n\nconst normalizeStdio = options => {\n\tif (!options) {\n\t\treturn;\n\t}\n\n\tconst {stdio} = options;\n\n\tif (stdio === undefined) {\n\t\treturn aliases.map(alias => options[alias]);\n\t}\n\n\tif (hasAlias(options)) {\n\t\tthrow new Error(`It's not possible to provide \\`stdio\\` in combination with one of ${aliases.map(alias => `\\`${alias}\\``).join(', ')}`);\n\t}\n\n\tif (typeof stdio === 'string') {\n\t\treturn stdio;\n\t}\n\n\tif (!Array.isArray(stdio)) {\n\t\tthrow new TypeError(`Expected \\`stdio\\` to be of type \\`string\\` or \\`Array\\`, got \\`${typeof stdio}\\``);\n\t}\n\n\tconst length = Math.max(stdio.length, aliases.length);\n\treturn Array.from({length}, (value, index) => stdio[index]);\n};\n\nmodule.exports = normalizeStdio;\n\n// `ipc` is pushed unless it is already present\nmodule.exports.node = options => {\n\tconst stdio = normalizeStdio(options);\n\n\tif (stdio === 'ipc') {\n\t\treturn 'ipc';\n\t}\n\n\tif (stdio === undefined || typeof stdio === 'string') {\n\t\treturn [stdio, stdio, stdio, 'ipc'];\n\t}\n\n\tif (stdio.includes('ipc')) {\n\t\treturn stdio;\n\t}\n\n\treturn [...stdio, 'ipc'];\n};\n","// This is not the set of all possible signals.\n//\n// It IS, however, the set of all signals that trigger\n// an exit on either Linux or BSD systems. Linux is a\n// superset of the signal names supported on BSD, and\n// the unknown signals just fail to register, so we can\n// catch that easily enough.\n//\n// Don't bother with SIGKILL. It's uncatchable, which\n// means that we can't fire any callbacks anyway.\n//\n// If a user does happen to register a handler on a non-\n// fatal signal like SIGWINCH or something, and then\n// exit, it'll end up firing `process.emit('exit')`, so\n// the handler will be fired anyway.\n//\n// SIGBUS, SIGFPE, SIGSEGV and SIGILL, when not raised\n// artificially, inherently leave the process in a\n// state from which it is not safe to try and enter JS\n// listeners.\nmodule.exports = [\n 'SIGABRT',\n 'SIGALRM',\n 'SIGHUP',\n 'SIGINT',\n 'SIGTERM'\n]\n\nif (process.platform !== 'win32') {\n module.exports.push(\n 'SIGVTALRM',\n 'SIGXCPU',\n 'SIGXFSZ',\n 'SIGUSR2',\n 'SIGTRAP',\n 'SIGSYS',\n 'SIGQUIT',\n 'SIGIOT'\n // should detect profiler and enable/disable accordingly.\n // see #21\n // 'SIGPROF'\n )\n}\n\nif (process.platform === 'linux') {\n module.exports.push(\n 'SIGIO',\n 'SIGPOLL',\n 'SIGPWR',\n 'SIGSTKFLT',\n 'SIGUNUSED'\n )\n}\n","'use strict';\nconst os = require('os');\nconst onExit = require('signal-exit');\n\nconst DEFAULT_FORCE_KILL_TIMEOUT = 1000 * 5;\n\n// Monkey-patches `childProcess.kill()` to add `forceKillAfterTimeout` behavior\nconst spawnedKill = (kill, signal = 'SIGTERM', options = {}) => {\n\tconst killResult = kill(signal);\n\tsetKillTimeout(kill, signal, options, killResult);\n\treturn killResult;\n};\n\nconst setKillTimeout = (kill, signal, options, killResult) => {\n\tif (!shouldForceKill(signal, options, killResult)) {\n\t\treturn;\n\t}\n\n\tconst timeout = getForceKillAfterTimeout(options);\n\tconst t = setTimeout(() => {\n\t\tkill('SIGKILL');\n\t}, timeout);\n\n\t// Guarded because there's no `.unref()` when `execa` is used in the renderer\n\t// process in Electron. This cannot be tested since we don't run tests in\n\t// Electron.\n\t// istanbul ignore else\n\tif (t.unref) {\n\t\tt.unref();\n\t}\n};\n\nconst shouldForceKill = (signal, {forceKillAfterTimeout}, killResult) => {\n\treturn isSigterm(signal) && forceKillAfterTimeout !== false && killResult;\n};\n\nconst isSigterm = signal => {\n\treturn signal === os.constants.signals.SIGTERM ||\n\t\t(typeof signal === 'string' && signal.toUpperCase() === 'SIGTERM');\n};\n\nconst getForceKillAfterTimeout = ({forceKillAfterTimeout = true}) => {\n\tif (forceKillAfterTimeout === true) {\n\t\treturn DEFAULT_FORCE_KILL_TIMEOUT;\n\t}\n\n\tif (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0) {\n\t\tthrow new TypeError(`Expected the \\`forceKillAfterTimeout\\` option to be a non-negative integer, got \\`${forceKillAfterTimeout}\\` (${typeof forceKillAfterTimeout})`);\n\t}\n\n\treturn forceKillAfterTimeout;\n};\n\n// `childProcess.cancel()`\nconst spawnedCancel = (spawned, context) => {\n\tconst killResult = spawned.kill();\n\n\tif (killResult) {\n\t\tcontext.isCanceled = true;\n\t}\n};\n\nconst timeoutKill = (spawned, signal, reject) => {\n\tspawned.kill(signal);\n\treject(Object.assign(new Error('Timed out'), {timedOut: true, signal}));\n};\n\n// `timeout` option handling\nconst setupTimeout = (spawned, {timeout, killSignal = 'SIGTERM'}, spawnedPromise) => {\n\tif (timeout === 0 || timeout === undefined) {\n\t\treturn spawnedPromise;\n\t}\n\n\tlet timeoutId;\n\tconst timeoutPromise = new Promise((resolve, reject) => {\n\t\ttimeoutId = setTimeout(() => {\n\t\t\ttimeoutKill(spawned, killSignal, reject);\n\t\t}, timeout);\n\t});\n\n\tconst safeSpawnedPromise = spawnedPromise.finally(() => {\n\t\tclearTimeout(timeoutId);\n\t});\n\n\treturn Promise.race([timeoutPromise, safeSpawnedPromise]);\n};\n\nconst validateTimeout = ({timeout}) => {\n\tif (timeout !== undefined && (!Number.isFinite(timeout) || timeout < 0)) {\n\t\tthrow new TypeError(`Expected the \\`timeout\\` option to be a non-negative integer, got \\`${timeout}\\` (${typeof timeout})`);\n\t}\n};\n\n// `cleanup` option handling\nconst setExitHandler = async (spawned, {cleanup, detached}, timedPromise) => {\n\tif (!cleanup || detached) {\n\t\treturn timedPromise;\n\t}\n\n\tconst removeExitHandler = onExit(() => {\n\t\tspawned.kill();\n\t});\n\n\treturn timedPromise.finally(() => {\n\t\tremoveExitHandler();\n\t});\n};\n\nmodule.exports = {\n\tspawnedKill,\n\tspawnedCancel,\n\tsetupTimeout,\n\tvalidateTimeout,\n\tsetExitHandler\n};\n","'use strict';\nconst path = require('path');\nconst childProcess = require('child_process');\nconst crossSpawn = require('cross-spawn');\nconst stripFinalNewline = require('strip-final-newline');\nconst npmRunPath = require('npm-run-path');\nconst onetime = require('onetime');\nconst makeError = require('./lib/error');\nconst normalizeStdio = require('./lib/stdio');\nconst {spawnedKill, spawnedCancel, setupTimeout, validateTimeout, setExitHandler} = require('./lib/kill');\nconst {handleInput, getSpawnedResult, makeAllStream, validateInputSync} = require('./lib/stream');\nconst {mergePromise, getSpawnedPromise} = require('./lib/promise');\nconst {joinCommand, parseCommand, getEscapedCommand} = require('./lib/command');\n\nconst DEFAULT_MAX_BUFFER = 1000 * 1000 * 100;\n\nconst getEnv = ({env: envOption, extendEnv, preferLocal, localDir, execPath}) => {\n\tconst env = extendEnv ? {...process.env, ...envOption} : envOption;\n\n\tif (preferLocal) {\n\t\treturn npmRunPath.env({env, cwd: localDir, execPath});\n\t}\n\n\treturn env;\n};\n\nconst handleArguments = (file, args, options = {}) => {\n\tconst parsed = crossSpawn._parse(file, args, options);\n\tfile = parsed.command;\n\targs = parsed.args;\n\toptions = parsed.options;\n\n\toptions = {\n\t\tmaxBuffer: DEFAULT_MAX_BUFFER,\n\t\tbuffer: true,\n\t\tstripFinalNewline: true,\n\t\textendEnv: true,\n\t\tpreferLocal: false,\n\t\tlocalDir: options.cwd || process.cwd(),\n\t\texecPath: process.execPath,\n\t\tencoding: 'utf8',\n\t\treject: true,\n\t\tcleanup: true,\n\t\tall: false,\n\t\twindowsHide: true,\n\t\t...options\n\t};\n\n\toptions.env = getEnv(options);\n\n\toptions.stdio = normalizeStdio(options);\n\n\tif (process.platform === 'win32' && path.basename(file, '.exe') === 'cmd') {\n\t\t// #116\n\t\targs.unshift('/q');\n\t}\n\n\treturn {file, args, options, parsed};\n};\n\nconst handleOutput = (options, value, error) => {\n\tif (typeof value !== 'string' && !Buffer.isBuffer(value)) {\n\t\t// When `execa.sync()` errors, we normalize it to '' to mimic `execa()`\n\t\treturn error === undefined ? undefined : '';\n\t}\n\n\tif (options.stripFinalNewline) {\n\t\treturn stripFinalNewline(value);\n\t}\n\n\treturn value;\n};\n\nconst execa = (file, args, options) => {\n\tconst parsed = handleArguments(file, args, options);\n\tconst command = joinCommand(file, args);\n\tconst escapedCommand = getEscapedCommand(file, args);\n\n\tvalidateTimeout(parsed.options);\n\n\tlet spawned;\n\ttry {\n\t\tspawned = childProcess.spawn(parsed.file, parsed.args, parsed.options);\n\t} catch (error) {\n\t\t// Ensure the returned error is always both a promise and a child process\n\t\tconst dummySpawned = new childProcess.ChildProcess();\n\t\tconst errorPromise = Promise.reject(makeError({\n\t\t\terror,\n\t\t\tstdout: '',\n\t\t\tstderr: '',\n\t\t\tall: '',\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false\n\t\t}));\n\t\treturn mergePromise(dummySpawned, errorPromise);\n\t}\n\n\tconst spawnedPromise = getSpawnedPromise(spawned);\n\tconst timedPromise = setupTimeout(spawned, parsed.options, spawnedPromise);\n\tconst processDone = setExitHandler(spawned, parsed.options, timedPromise);\n\n\tconst context = {isCanceled: false};\n\n\tspawned.kill = spawnedKill.bind(null, spawned.kill.bind(spawned));\n\tspawned.cancel = spawnedCancel.bind(null, spawned, context);\n\n\tconst handlePromise = async () => {\n\t\tconst [{error, exitCode, signal, timedOut}, stdoutResult, stderrResult, allResult] = await getSpawnedResult(spawned, parsed.options, processDone);\n\t\tconst stdout = handleOutput(parsed.options, stdoutResult);\n\t\tconst stderr = handleOutput(parsed.options, stderrResult);\n\t\tconst all = handleOutput(parsed.options, allResult);\n\n\t\tif (error || exitCode !== 0 || signal !== null) {\n\t\t\tconst returnedError = makeError({\n\t\t\t\terror,\n\t\t\t\texitCode,\n\t\t\t\tsignal,\n\t\t\t\tstdout,\n\t\t\t\tstderr,\n\t\t\t\tall,\n\t\t\t\tcommand,\n\t\t\t\tescapedCommand,\n\t\t\t\tparsed,\n\t\t\t\ttimedOut,\n\t\t\t\tisCanceled: context.isCanceled,\n\t\t\t\tkilled: spawned.killed\n\t\t\t});\n\n\t\t\tif (!parsed.options.reject) {\n\t\t\t\treturn returnedError;\n\t\t\t}\n\n\t\t\tthrow returnedError;\n\t\t}\n\n\t\treturn {\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\texitCode: 0,\n\t\t\tstdout,\n\t\t\tstderr,\n\t\t\tall,\n\t\t\tfailed: false,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false\n\t\t};\n\t};\n\n\tconst handlePromiseOnce = onetime(handlePromise);\n\n\thandleInput(spawned, parsed.options.input);\n\n\tspawned.all = makeAllStream(spawned, parsed.options);\n\n\treturn mergePromise(spawned, handlePromiseOnce);\n};\n\nmodule.exports = execa;\n\nmodule.exports.sync = (file, args, options) => {\n\tconst parsed = handleArguments(file, args, options);\n\tconst command = joinCommand(file, args);\n\tconst escapedCommand = getEscapedCommand(file, args);\n\n\tvalidateInputSync(parsed.options);\n\n\tlet result;\n\ttry {\n\t\tresult = childProcess.spawnSync(parsed.file, parsed.args, parsed.options);\n\t} catch (error) {\n\t\tthrow makeError({\n\t\t\terror,\n\t\t\tstdout: '',\n\t\t\tstderr: '',\n\t\t\tall: '',\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false\n\t\t});\n\t}\n\n\tconst stdout = handleOutput(parsed.options, result.stdout, result.error);\n\tconst stderr = handleOutput(parsed.options, result.stderr, result.error);\n\n\tif (result.error || result.status !== 0 || result.signal !== null) {\n\t\tconst error = makeError({\n\t\t\tstdout,\n\t\t\tstderr,\n\t\t\terror: result.error,\n\t\t\tsignal: result.signal,\n\t\t\texitCode: result.status,\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: result.error && result.error.code === 'ETIMEDOUT',\n\t\t\tisCanceled: false,\n\t\t\tkilled: result.signal !== null\n\t\t});\n\n\t\tif (!parsed.options.reject) {\n\t\t\treturn error;\n\t\t}\n\n\t\tthrow error;\n\t}\n\n\treturn {\n\t\tcommand,\n\t\tescapedCommand,\n\t\texitCode: 0,\n\t\tstdout,\n\t\tstderr,\n\t\tfailed: false,\n\t\ttimedOut: false,\n\t\tisCanceled: false,\n\t\tkilled: false\n\t};\n};\n\nmodule.exports.command = (command, options) => {\n\tconst [file, ...args] = parseCommand(command);\n\treturn execa(file, args, options);\n};\n\nmodule.exports.commandSync = (command, options) => {\n\tconst [file, ...args] = parseCommand(command);\n\treturn execa.sync(file, args, options);\n};\n\nmodule.exports.node = (scriptPath, args, options = {}) => {\n\tif (args && !Array.isArray(args) && typeof args === 'object') {\n\t\toptions = args;\n\t\targs = [];\n\t}\n\n\tconst stdio = normalizeStdio.node(options);\n\tconst defaultExecArgv = process.execArgv.filter(arg => !arg.startsWith('--inspect'));\n\n\tconst {\n\t\tnodePath = process.execPath,\n\t\tnodeOptions = defaultExecArgv\n\t} = options;\n\n\treturn execa(\n\t\tnodePath,\n\t\t[\n\t\t\t...nodeOptions,\n\t\t\tscriptPath,\n\t\t\t...(Array.isArray(args) ? args : [])\n\t\t],\n\t\t{\n\t\t\t...options,\n\t\t\tstdin: undefined,\n\t\t\tstdout: undefined,\n\t\t\tstderr: undefined,\n\t\t\tstdio,\n\t\t\tshell: false\n\t\t}\n\t);\n};\n","'use strict';\n\nconst isStream = stream =>\n\tstream !== null &&\n\ttypeof stream === 'object' &&\n\ttypeof stream.pipe === 'function';\n\nisStream.writable = stream =>\n\tisStream(stream) &&\n\tstream.writable !== false &&\n\ttypeof stream._write === 'function' &&\n\ttypeof stream._writableState === 'object';\n\nisStream.readable = stream =>\n\tisStream(stream) &&\n\tstream.readable !== false &&\n\ttypeof stream._read === 'function' &&\n\ttypeof stream._readableState === 'object';\n\nisStream.duplex = stream =>\n\tisStream.writable(stream) &&\n\tisStream.readable(stream);\n\nisStream.transform = stream =>\n\tisStream.duplex(stream) &&\n\ttypeof stream._transform === 'function';\n\nmodule.exports = isStream;\n","'use strict';\nconst {PassThrough: PassThroughStream} = require('stream');\n\nmodule.exports = options => {\n\toptions = {...options};\n\n\tconst {array} = options;\n\tlet {encoding} = options;\n\tconst isBuffer = encoding === 'buffer';\n\tlet objectMode = false;\n\n\tif (array) {\n\t\tobjectMode = !(encoding || isBuffer);\n\t} else {\n\t\tencoding = encoding || 'utf8';\n\t}\n\n\tif (isBuffer) {\n\t\tencoding = null;\n\t}\n\n\tconst stream = new PassThroughStream({objectMode});\n\n\tif (encoding) {\n\t\tstream.setEncoding(encoding);\n\t}\n\n\tlet length = 0;\n\tconst chunks = [];\n\n\tstream.on('data', chunk => {\n\t\tchunks.push(chunk);\n\n\t\tif (objectMode) {\n\t\t\tlength = chunks.length;\n\t\t} else {\n\t\t\tlength += chunk.length;\n\t\t}\n\t});\n\n\tstream.getBufferedValue = () => {\n\t\tif (array) {\n\t\t\treturn chunks;\n\t\t}\n\n\t\treturn isBuffer ? Buffer.concat(chunks, length) : chunks.join('');\n\t};\n\n\tstream.getBufferedLength = () => length;\n\n\treturn stream;\n};\n","'use strict';\n\nconst { PassThrough } = require('stream');\n\nmodule.exports = function (/*streams...*/) {\n var sources = []\n var output = new PassThrough({objectMode: true})\n\n output.setMaxListeners(0)\n\n output.add = add\n output.isEmpty = isEmpty\n\n output.on('unpipe', remove)\n\n Array.prototype.slice.call(arguments).forEach(add)\n\n return output\n\n function add (source) {\n if (Array.isArray(source)) {\n source.forEach(add)\n return this\n }\n\n sources.push(source);\n source.once('end', remove.bind(null, source))\n source.once('error', output.emit.bind(output, 'error'))\n source.pipe(output, {end: false})\n return this\n }\n\n function isEmpty () {\n return sources.length == 0;\n }\n\n function remove (source) {\n sources = sources.filter(function (it) { return it !== source })\n if (!sources.length && output.readable) { output.end() }\n }\n}\n","'use strict';\nconst isStream = require('is-stream');\nconst getStream = require('get-stream');\nconst mergeStream = require('merge-stream');\n\n// `input` option\nconst handleInput = (spawned, input) => {\n\t// Checking for stdin is workaround for https://github.com/nodejs/node/issues/26852\n\t// @todo remove `|| spawned.stdin === undefined` once we drop support for Node.js <=12.2.0\n\tif (input === undefined || spawned.stdin === undefined) {\n\t\treturn;\n\t}\n\n\tif (isStream(input)) {\n\t\tinput.pipe(spawned.stdin);\n\t} else {\n\t\tspawned.stdin.end(input);\n\t}\n};\n\n// `all` interleaves `stdout` and `stderr`\nconst makeAllStream = (spawned, {all}) => {\n\tif (!all || (!spawned.stdout && !spawned.stderr)) {\n\t\treturn;\n\t}\n\n\tconst mixed = mergeStream();\n\n\tif (spawned.stdout) {\n\t\tmixed.add(spawned.stdout);\n\t}\n\n\tif (spawned.stderr) {\n\t\tmixed.add(spawned.stderr);\n\t}\n\n\treturn mixed;\n};\n\n// On failure, `result.stdout|stderr|all` should contain the currently buffered stream\nconst getBufferedData = async (stream, streamPromise) => {\n\tif (!stream) {\n\t\treturn;\n\t}\n\n\tstream.destroy();\n\n\ttry {\n\t\treturn await streamPromise;\n\t} catch (error) {\n\t\treturn error.bufferedData;\n\t}\n};\n\nconst getStreamPromise = (stream, {encoding, buffer, maxBuffer}) => {\n\tif (!stream || !buffer) {\n\t\treturn;\n\t}\n\n\tif (encoding) {\n\t\treturn getStream(stream, {encoding, maxBuffer});\n\t}\n\n\treturn getStream.buffer(stream, {maxBuffer});\n};\n\n// Retrieve result of child process: exit code, signal, error, streams (stdout/stderr/all)\nconst getSpawnedResult = async ({stdout, stderr, all}, {encoding, buffer, maxBuffer}, processDone) => {\n\tconst stdoutPromise = getStreamPromise(stdout, {encoding, buffer, maxBuffer});\n\tconst stderrPromise = getStreamPromise(stderr, {encoding, buffer, maxBuffer});\n\tconst allPromise = getStreamPromise(all, {encoding, buffer, maxBuffer: maxBuffer * 2});\n\n\ttry {\n\t\treturn await Promise.all([processDone, stdoutPromise, stderrPromise, allPromise]);\n\t} catch (error) {\n\t\treturn Promise.all([\n\t\t\t{error, signal: error.signal, timedOut: error.timedOut},\n\t\t\tgetBufferedData(stdout, stdoutPromise),\n\t\t\tgetBufferedData(stderr, stderrPromise),\n\t\t\tgetBufferedData(all, allPromise)\n\t\t]);\n\t}\n};\n\nconst validateInputSync = ({input}) => {\n\tif (isStream(input)) {\n\t\tthrow new TypeError('The `input` option cannot be a stream in sync mode');\n\t}\n};\n\nmodule.exports = {\n\thandleInput,\n\tmakeAllStream,\n\tgetSpawnedResult,\n\tvalidateInputSync\n};\n\n","'use strict';\n\nconst nativePromisePrototype = (async () => {})().constructor.prototype;\nconst descriptors = ['then', 'catch', 'finally'].map(property => [\n\tproperty,\n\tReflect.getOwnPropertyDescriptor(nativePromisePrototype, property)\n]);\n\n// The return value is a mixin of `childProcess` and `Promise`\nconst mergePromise = (spawned, promise) => {\n\tfor (const [property, descriptor] of descriptors) {\n\t\t// Starting the main `promise` is deferred to avoid consuming streams\n\t\tconst value = typeof promise === 'function' ?\n\t\t\t(...args) => Reflect.apply(descriptor.value, promise(), args) :\n\t\t\tdescriptor.value.bind(promise);\n\n\t\tReflect.defineProperty(spawned, property, {...descriptor, value});\n\t}\n\n\treturn spawned;\n};\n\n// Use promises instead of `child_process` events\nconst getSpawnedPromise = spawned => {\n\treturn new Promise((resolve, reject) => {\n\t\tspawned.on('exit', (exitCode, signal) => {\n\t\t\tresolve({exitCode, signal});\n\t\t});\n\n\t\tspawned.on('error', error => {\n\t\t\treject(error);\n\t\t});\n\n\t\tif (spawned.stdin) {\n\t\t\tspawned.stdin.on('error', error => {\n\t\t\t\treject(error);\n\t\t\t});\n\t\t}\n\t});\n};\n\nmodule.exports = {\n\tmergePromise,\n\tgetSpawnedPromise\n};\n\n","'use strict';\nconst normalizeArgs = (file, args = []) => {\n\tif (!Array.isArray(args)) {\n\t\treturn [file];\n\t}\n\n\treturn [file, ...args];\n};\n\nconst NO_ESCAPE_REGEXP = /^[\\w.-]+$/;\nconst DOUBLE_QUOTES_REGEXP = /\"/g;\n\nconst escapeArg = arg => {\n\tif (typeof arg !== 'string' || NO_ESCAPE_REGEXP.test(arg)) {\n\t\treturn arg;\n\t}\n\n\treturn `\"${arg.replace(DOUBLE_QUOTES_REGEXP, '\\\\\"')}\"`;\n};\n\nconst joinCommand = (file, args) => {\n\treturn normalizeArgs(file, args).join(' ');\n};\n\nconst getEscapedCommand = (file, args) => {\n\treturn normalizeArgs(file, args).map(arg => escapeArg(arg)).join(' ');\n};\n\nconst SPACES_REGEXP = / +/g;\n\n// Handle `execa.command()`\nconst parseCommand = command => {\n\tconst tokens = [];\n\tfor (const token of command.trim().split(SPACES_REGEXP)) {\n\t\t// Allow spaces to be escaped by a backslash if not meant as a delimiter\n\t\tconst previousToken = tokens[tokens.length - 1];\n\t\tif (previousToken && previousToken.endsWith('\\\\')) {\n\t\t\t// Merge previous token with current one\n\t\t\ttokens[tokens.length - 1] = `${previousToken.slice(0, -1)} ${token}`;\n\t\t} else {\n\t\t\ttokens.push(token);\n\t\t}\n\t}\n\n\treturn tokens;\n};\n\nmodule.exports = {\n\tjoinCommand,\n\tgetEscapedCommand,\n\tparseCommand\n};\n",null,null,null,"// just pre-load all the stuff that index.js lazily exports\nconst internalRe = require('./internal/re')\nmodule.exports = {\n re: internalRe.re,\n src: internalRe.src,\n tokens: internalRe.t,\n SEMVER_SPEC_VERSION: require('./internal/constants').SEMVER_SPEC_VERSION,\n SemVer: require('./classes/semver'),\n compareIdentifiers: require('./internal/identifiers').compareIdentifiers,\n rcompareIdentifiers: require('./internal/identifiers').rcompareIdentifiers,\n parse: require('./functions/parse'),\n valid: require('./functions/valid'),\n clean: require('./functions/clean'),\n inc: require('./functions/inc'),\n diff: require('./functions/diff'),\n major: require('./functions/major'),\n minor: require('./functions/minor'),\n patch: require('./functions/patch'),\n prerelease: require('./functions/prerelease'),\n compare: require('./functions/compare'),\n rcompare: require('./functions/rcompare'),\n compareLoose: require('./functions/compare-loose'),\n compareBuild: require('./functions/compare-build'),\n sort: require('./functions/sort'),\n rsort: require('./functions/rsort'),\n gt: require('./functions/gt'),\n lt: require('./functions/lt'),\n eq: require('./functions/eq'),\n neq: require('./functions/neq'),\n gte: require('./functions/gte'),\n lte: require('./functions/lte'),\n cmp: require('./functions/cmp'),\n coerce: require('./functions/coerce'),\n Comparator: require('./classes/comparator'),\n Range: require('./classes/range'),\n satisfies: require('./functions/satisfies'),\n toComparators: require('./ranges/to-comparators'),\n maxSatisfying: require('./ranges/max-satisfying'),\n minSatisfying: require('./ranges/min-satisfying'),\n minVersion: require('./ranges/min-version'),\n validRange: require('./ranges/valid'),\n outside: require('./ranges/outside'),\n gtr: require('./ranges/gtr'),\n ltr: require('./ranges/ltr'),\n intersects: require('./ranges/intersects'),\n simplifyRange: require('./ranges/simplify'),\n subset: require('./ranges/subset'),\n}\n","const { MAX_SAFE_COMPONENT_LENGTH } = require('./constants')\nconst debug = require('./debug')\nexports = module.exports = {}\n\n// The actual regexps go on exports.re\nconst re = exports.re = []\nconst src = exports.src = []\nconst t = exports.t = {}\nlet R = 0\n\nconst createToken = (name, value, isGlobal) => {\n const index = R++\n debug(index, value)\n t[name] = index\n src[index] = value\n re[index] = new RegExp(value, isGlobal ? 'g' : undefined)\n}\n\n// The following Regular Expressions can be used for tokenizing,\n// validating, and parsing SemVer version strings.\n\n// ## Numeric Identifier\n// A single `0`, or a non-zero digit followed by zero or more digits.\n\ncreateToken('NUMERICIDENTIFIER', '0|[1-9]\\\\d*')\ncreateToken('NUMERICIDENTIFIERLOOSE', '[0-9]+')\n\n// ## Non-numeric Identifier\n// Zero or more digits, followed by a letter or hyphen, and then zero or\n// more letters, digits, or hyphens.\n\ncreateToken('NONNUMERICIDENTIFIER', '\\\\d*[a-zA-Z-][a-zA-Z0-9-]*')\n\n// ## Main Version\n// Three dot-separated numeric identifiers.\n\ncreateToken('MAINVERSION', `(${src[t.NUMERICIDENTIFIER]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIER]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIER]})`)\n\ncreateToken('MAINVERSIONLOOSE', `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIERLOOSE]})`)\n\n// ## Pre-release Version Identifier\n// A numeric identifier, or a non-numeric identifier.\n\ncreateToken('PRERELEASEIDENTIFIER', `(?:${src[t.NUMERICIDENTIFIER]\n}|${src[t.NONNUMERICIDENTIFIER]})`)\n\ncreateToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NUMERICIDENTIFIERLOOSE]\n}|${src[t.NONNUMERICIDENTIFIER]})`)\n\n// ## Pre-release Version\n// Hyphen, followed by one or more dot-separated pre-release version\n// identifiers.\n\ncreateToken('PRERELEASE', `(?:-(${src[t.PRERELEASEIDENTIFIER]\n}(?:\\\\.${src[t.PRERELEASEIDENTIFIER]})*))`)\n\ncreateToken('PRERELEASELOOSE', `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]\n}(?:\\\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`)\n\n// ## Build Metadata Identifier\n// Any combination of digits, letters, or hyphens.\n\ncreateToken('BUILDIDENTIFIER', '[0-9A-Za-z-]+')\n\n// ## Build Metadata\n// Plus sign, followed by one or more period-separated build metadata\n// identifiers.\n\ncreateToken('BUILD', `(?:\\\\+(${src[t.BUILDIDENTIFIER]\n}(?:\\\\.${src[t.BUILDIDENTIFIER]})*))`)\n\n// ## Full Version String\n// A main version, followed optionally by a pre-release version and\n// build metadata.\n\n// Note that the only major, minor, patch, and pre-release sections of\n// the version string are capturing groups. The build metadata is not a\n// capturing group, because it should not ever be used in version\n// comparison.\n\ncreateToken('FULLPLAIN', `v?${src[t.MAINVERSION]\n}${src[t.PRERELEASE]}?${\n src[t.BUILD]}?`)\n\ncreateToken('FULL', `^${src[t.FULLPLAIN]}$`)\n\n// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.\n// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty\n// common in the npm registry.\ncreateToken('LOOSEPLAIN', `[v=\\\\s]*${src[t.MAINVERSIONLOOSE]\n}${src[t.PRERELEASELOOSE]}?${\n src[t.BUILD]}?`)\n\ncreateToken('LOOSE', `^${src[t.LOOSEPLAIN]}$`)\n\ncreateToken('GTLT', '((?:<|>)?=?)')\n\n// Something like \"2.*\" or \"1.2.x\".\n// Note that \"x.x\" is a valid xRange identifer, meaning \"any version\"\n// Only the first item is strictly required.\ncreateToken('XRANGEIDENTIFIERLOOSE', `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\\\*`)\ncreateToken('XRANGEIDENTIFIER', `${src[t.NUMERICIDENTIFIER]}|x|X|\\\\*`)\n\ncreateToken('XRANGEPLAIN', `[v=\\\\s]*(${src[t.XRANGEIDENTIFIER]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` +\n `(?:${src[t.PRERELEASE]})?${\n src[t.BUILD]}?` +\n `)?)?`)\n\ncreateToken('XRANGEPLAINLOOSE', `[v=\\\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:${src[t.PRERELEASELOOSE]})?${\n src[t.BUILD]}?` +\n `)?)?`)\n\ncreateToken('XRANGE', `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAIN]}$`)\ncreateToken('XRANGELOOSE', `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAINLOOSE]}$`)\n\n// Coercion.\n// Extract anything that could conceivably be a part of a valid semver\ncreateToken('COERCE', `${'(^|[^\\\\d])' +\n '(\\\\d{1,'}${MAX_SAFE_COMPONENT_LENGTH}})` +\n `(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +\n `(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +\n `(?:$|[^\\\\d])`)\ncreateToken('COERCERTL', src[t.COERCE], true)\n\n// Tilde ranges.\n// Meaning is \"reasonably at or greater than\"\ncreateToken('LONETILDE', '(?:~>?)')\n\ncreateToken('TILDETRIM', `(\\\\s*)${src[t.LONETILDE]}\\\\s+`, true)\nexports.tildeTrimReplace = '$1~'\n\ncreateToken('TILDE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`)\ncreateToken('TILDELOOSE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`)\n\n// Caret ranges.\n// Meaning is \"at least and backwards compatible with\"\ncreateToken('LONECARET', '(?:\\\\^)')\n\ncreateToken('CARETTRIM', `(\\\\s*)${src[t.LONECARET]}\\\\s+`, true)\nexports.caretTrimReplace = '$1^'\n\ncreateToken('CARET', `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`)\ncreateToken('CARETLOOSE', `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`)\n\n// A simple gt/lt/eq thing, or just \"\" to indicate \"any version\"\ncreateToken('COMPARATORLOOSE', `^${src[t.GTLT]}\\\\s*(${src[t.LOOSEPLAIN]})$|^$`)\ncreateToken('COMPARATOR', `^${src[t.GTLT]}\\\\s*(${src[t.FULLPLAIN]})$|^$`)\n\n// An expression to strip any whitespace between the gtlt and the thing\n// it modifies, so that `> 1.2.3` ==> `>1.2.3`\ncreateToken('COMPARATORTRIM', `(\\\\s*)${src[t.GTLT]\n}\\\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true)\nexports.comparatorTrimReplace = '$1$2$3'\n\n// Something like `1.2.3 - 1.2.4`\n// Note that these all use the loose form, because they'll be\n// checked against either the strict or loose comparator form\n// later.\ncreateToken('HYPHENRANGE', `^\\\\s*(${src[t.XRANGEPLAIN]})` +\n `\\\\s+-\\\\s+` +\n `(${src[t.XRANGEPLAIN]})` +\n `\\\\s*$`)\n\ncreateToken('HYPHENRANGELOOSE', `^\\\\s*(${src[t.XRANGEPLAINLOOSE]})` +\n `\\\\s+-\\\\s+` +\n `(${src[t.XRANGEPLAINLOOSE]})` +\n `\\\\s*$`)\n\n// Star ranges basically just allow anything at all.\ncreateToken('STAR', '(<|>)?=?\\\\s*\\\\*')\n// >=0.0.0 is like a star\ncreateToken('GTE0', '^\\\\s*>=\\\\s*0\\.0\\.0\\\\s*$')\ncreateToken('GTE0PRE', '^\\\\s*>=\\\\s*0\\.0\\.0-0\\\\s*$')\n","// Note: this is the semver.org version of the spec that it implements\n// Not necessarily the package version of this code.\nconst SEMVER_SPEC_VERSION = '2.0.0'\n\nconst MAX_LENGTH = 256\nconst MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||\n /* istanbul ignore next */ 9007199254740991\n\n// Max safe segment length for coercion.\nconst MAX_SAFE_COMPONENT_LENGTH = 16\n\nmodule.exports = {\n SEMVER_SPEC_VERSION,\n MAX_LENGTH,\n MAX_SAFE_INTEGER,\n MAX_SAFE_COMPONENT_LENGTH\n}\n","const debug = (\n typeof process === 'object' &&\n process.env &&\n process.env.NODE_DEBUG &&\n /\\bsemver\\b/i.test(process.env.NODE_DEBUG)\n) ? (...args) => console.error('SEMVER', ...args)\n : () => {}\n\nmodule.exports = debug\n","const debug = require('../internal/debug')\nconst { MAX_LENGTH, MAX_SAFE_INTEGER } = require('../internal/constants')\nconst { re, t } = require('../internal/re')\n\nconst parseOptions = require('../internal/parse-options')\nconst { compareIdentifiers } = require('../internal/identifiers')\nclass SemVer {\n constructor (version, options) {\n options = parseOptions(options)\n\n if (version instanceof SemVer) {\n if (version.loose === !!options.loose &&\n version.includePrerelease === !!options.includePrerelease) {\n return version\n } else {\n version = version.version\n }\n } else if (typeof version !== 'string') {\n throw new TypeError(`Invalid Version: ${version}`)\n }\n\n if (version.length > MAX_LENGTH) {\n throw new TypeError(\n `version is longer than ${MAX_LENGTH} characters`\n )\n }\n\n debug('SemVer', version, options)\n this.options = options\n this.loose = !!options.loose\n // this isn't actually relevant for versions, but keep it so that we\n // don't run into trouble passing this.options around.\n this.includePrerelease = !!options.includePrerelease\n\n const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL])\n\n if (!m) {\n throw new TypeError(`Invalid Version: ${version}`)\n }\n\n this.raw = version\n\n // these are actually numbers\n this.major = +m[1]\n this.minor = +m[2]\n this.patch = +m[3]\n\n if (this.major > MAX_SAFE_INTEGER || this.major < 0) {\n throw new TypeError('Invalid major version')\n }\n\n if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {\n throw new TypeError('Invalid minor version')\n }\n\n if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {\n throw new TypeError('Invalid patch version')\n }\n\n // numberify any prerelease numeric ids\n if (!m[4]) {\n this.prerelease = []\n } else {\n this.prerelease = m[4].split('.').map((id) => {\n if (/^[0-9]+$/.test(id)) {\n const num = +id\n if (num >= 0 && num < MAX_SAFE_INTEGER) {\n return num\n }\n }\n return id\n })\n }\n\n this.build = m[5] ? m[5].split('.') : []\n this.format()\n }\n\n format () {\n this.version = `${this.major}.${this.minor}.${this.patch}`\n if (this.prerelease.length) {\n this.version += `-${this.prerelease.join('.')}`\n }\n return this.version\n }\n\n toString () {\n return this.version\n }\n\n compare (other) {\n debug('SemVer.compare', this.version, this.options, other)\n if (!(other instanceof SemVer)) {\n if (typeof other === 'string' && other === this.version) {\n return 0\n }\n other = new SemVer(other, this.options)\n }\n\n if (other.version === this.version) {\n return 0\n }\n\n return this.compareMain(other) || this.comparePre(other)\n }\n\n compareMain (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n return (\n compareIdentifiers(this.major, other.major) ||\n compareIdentifiers(this.minor, other.minor) ||\n compareIdentifiers(this.patch, other.patch)\n )\n }\n\n comparePre (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n // NOT having a prerelease is > having one\n if (this.prerelease.length && !other.prerelease.length) {\n return -1\n } else if (!this.prerelease.length && other.prerelease.length) {\n return 1\n } else if (!this.prerelease.length && !other.prerelease.length) {\n return 0\n }\n\n let i = 0\n do {\n const a = this.prerelease[i]\n const b = other.prerelease[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n compareBuild (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n let i = 0\n do {\n const a = this.build[i]\n const b = other.build[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n // preminor will bump the version up to the next minor release, and immediately\n // down to pre-release. premajor and prepatch work the same way.\n inc (release, identifier) {\n switch (release) {\n case 'premajor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor = 0\n this.major++\n this.inc('pre', identifier)\n break\n case 'preminor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor++\n this.inc('pre', identifier)\n break\n case 'prepatch':\n // If this is already a prerelease, it will bump to the next version\n // drop any prereleases that might already exist, since they are not\n // relevant at this point.\n this.prerelease.length = 0\n this.inc('patch', identifier)\n this.inc('pre', identifier)\n break\n // If the input is a non-prerelease version, this acts the same as\n // prepatch.\n case 'prerelease':\n if (this.prerelease.length === 0) {\n this.inc('patch', identifier)\n }\n this.inc('pre', identifier)\n break\n\n case 'major':\n // If this is a pre-major version, bump up to the same major version.\n // Otherwise increment major.\n // 1.0.0-5 bumps to 1.0.0\n // 1.1.0 bumps to 2.0.0\n if (\n this.minor !== 0 ||\n this.patch !== 0 ||\n this.prerelease.length === 0\n ) {\n this.major++\n }\n this.minor = 0\n this.patch = 0\n this.prerelease = []\n break\n case 'minor':\n // If this is a pre-minor version, bump up to the same minor version.\n // Otherwise increment minor.\n // 1.2.0-5 bumps to 1.2.0\n // 1.2.1 bumps to 1.3.0\n if (this.patch !== 0 || this.prerelease.length === 0) {\n this.minor++\n }\n this.patch = 0\n this.prerelease = []\n break\n case 'patch':\n // If this is not a pre-release version, it will increment the patch.\n // If it is a pre-release it will bump up to the same patch version.\n // 1.2.0-5 patches to 1.2.0\n // 1.2.0 patches to 1.2.1\n if (this.prerelease.length === 0) {\n this.patch++\n }\n this.prerelease = []\n break\n // This probably shouldn't be used publicly.\n // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.\n case 'pre':\n if (this.prerelease.length === 0) {\n this.prerelease = [0]\n } else {\n let i = this.prerelease.length\n while (--i >= 0) {\n if (typeof this.prerelease[i] === 'number') {\n this.prerelease[i]++\n i = -2\n }\n }\n if (i === -1) {\n // didn't increment anything\n this.prerelease.push(0)\n }\n }\n if (identifier) {\n // 1.2.0-beta.1 bumps to 1.2.0-beta.2,\n // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0\n if (this.prerelease[0] === identifier) {\n if (isNaN(this.prerelease[1])) {\n this.prerelease = [identifier, 0]\n }\n } else {\n this.prerelease = [identifier, 0]\n }\n }\n break\n\n default:\n throw new Error(`invalid increment argument: ${release}`)\n }\n this.format()\n this.raw = this.version\n return this\n }\n}\n\nmodule.exports = SemVer\n","// parse out just the options we care about so we always get a consistent\n// obj with keys in a consistent order.\nconst opts = ['includePrerelease', 'loose', 'rtl']\nconst parseOptions = options =>\n !options ? {}\n : typeof options !== 'object' ? { loose: true }\n : opts.filter(k => options[k]).reduce((options, k) => {\n options[k] = true\n return options\n }, {})\nmodule.exports = parseOptions\n","const numeric = /^[0-9]+$/\nconst compareIdentifiers = (a, b) => {\n const anum = numeric.test(a)\n const bnum = numeric.test(b)\n\n if (anum && bnum) {\n a = +a\n b = +b\n }\n\n return a === b ? 0\n : (anum && !bnum) ? -1\n : (bnum && !anum) ? 1\n : a < b ? -1\n : 1\n}\n\nconst rcompareIdentifiers = (a, b) => compareIdentifiers(b, a)\n\nmodule.exports = {\n compareIdentifiers,\n rcompareIdentifiers\n}\n","const {MAX_LENGTH} = require('../internal/constants')\nconst { re, t } = require('../internal/re')\nconst SemVer = require('../classes/semver')\n\nconst parseOptions = require('../internal/parse-options')\nconst parse = (version, options) => {\n options = parseOptions(options)\n\n if (version instanceof SemVer) {\n return version\n }\n\n if (typeof version !== 'string') {\n return null\n }\n\n if (version.length > MAX_LENGTH) {\n return null\n }\n\n const r = options.loose ? re[t.LOOSE] : re[t.FULL]\n if (!r.test(version)) {\n return null\n }\n\n try {\n return new SemVer(version, options)\n } catch (er) {\n return null\n }\n}\n\nmodule.exports = parse\n","const parse = require('./parse')\nconst valid = (version, options) => {\n const v = parse(version, options)\n return v ? v.version : null\n}\nmodule.exports = valid\n","const parse = require('./parse')\nconst clean = (version, options) => {\n const s = parse(version.trim().replace(/^[=v]+/, ''), options)\n return s ? s.version : null\n}\nmodule.exports = clean\n","const SemVer = require('../classes/semver')\n\nconst inc = (version, release, options, identifier) => {\n if (typeof (options) === 'string') {\n identifier = options\n options = undefined\n }\n\n try {\n return new SemVer(version, options).inc(release, identifier).version\n } catch (er) {\n return null\n }\n}\nmodule.exports = inc\n","const parse = require('./parse')\nconst eq = require('./eq')\n\nconst diff = (version1, version2) => {\n if (eq(version1, version2)) {\n return null\n } else {\n const v1 = parse(version1)\n const v2 = parse(version2)\n const hasPre = v1.prerelease.length || v2.prerelease.length\n const prefix = hasPre ? 'pre' : ''\n const defaultResult = hasPre ? 'prerelease' : ''\n for (const key in v1) {\n if (key === 'major' || key === 'minor' || key === 'patch') {\n if (v1[key] !== v2[key]) {\n return prefix + key\n }\n }\n }\n return defaultResult // may be undefined\n }\n}\nmodule.exports = diff\n","const compare = require('./compare')\nconst eq = (a, b, loose) => compare(a, b, loose) === 0\nmodule.exports = eq\n","const SemVer = require('../classes/semver')\nconst compare = (a, b, loose) =>\n new SemVer(a, loose).compare(new SemVer(b, loose))\n\nmodule.exports = compare\n","const SemVer = require('../classes/semver')\nconst major = (a, loose) => new SemVer(a, loose).major\nmodule.exports = major\n","const SemVer = require('../classes/semver')\nconst minor = (a, loose) => new SemVer(a, loose).minor\nmodule.exports = minor\n","const SemVer = require('../classes/semver')\nconst patch = (a, loose) => new SemVer(a, loose).patch\nmodule.exports = patch\n","const parse = require('./parse')\nconst prerelease = (version, options) => {\n const parsed = parse(version, options)\n return (parsed && parsed.prerelease.length) ? parsed.prerelease : null\n}\nmodule.exports = prerelease\n","const compare = require('./compare')\nconst rcompare = (a, b, loose) => compare(b, a, loose)\nmodule.exports = rcompare\n","const compare = require('./compare')\nconst compareLoose = (a, b) => compare(a, b, true)\nmodule.exports = compareLoose\n","const SemVer = require('../classes/semver')\nconst compareBuild = (a, b, loose) => {\n const versionA = new SemVer(a, loose)\n const versionB = new SemVer(b, loose)\n return versionA.compare(versionB) || versionA.compareBuild(versionB)\n}\nmodule.exports = compareBuild\n","const compareBuild = require('./compare-build')\nconst sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose))\nmodule.exports = sort\n","const compareBuild = require('./compare-build')\nconst rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose))\nmodule.exports = rsort\n","const compare = require('./compare')\nconst gt = (a, b, loose) => compare(a, b, loose) > 0\nmodule.exports = gt\n","const compare = require('./compare')\nconst lt = (a, b, loose) => compare(a, b, loose) < 0\nmodule.exports = lt\n","const compare = require('./compare')\nconst neq = (a, b, loose) => compare(a, b, loose) !== 0\nmodule.exports = neq\n","const compare = require('./compare')\nconst gte = (a, b, loose) => compare(a, b, loose) >= 0\nmodule.exports = gte\n","const compare = require('./compare')\nconst lte = (a, b, loose) => compare(a, b, loose) <= 0\nmodule.exports = lte\n","const eq = require('./eq')\nconst neq = require('./neq')\nconst gt = require('./gt')\nconst gte = require('./gte')\nconst lt = require('./lt')\nconst lte = require('./lte')\n\nconst cmp = (a, op, b, loose) => {\n switch (op) {\n case '===':\n if (typeof a === 'object')\n a = a.version\n if (typeof b === 'object')\n b = b.version\n return a === b\n\n case '!==':\n if (typeof a === 'object')\n a = a.version\n if (typeof b === 'object')\n b = b.version\n return a !== b\n\n case '':\n case '=':\n case '==':\n return eq(a, b, loose)\n\n case '!=':\n return neq(a, b, loose)\n\n case '>':\n return gt(a, b, loose)\n\n case '>=':\n return gte(a, b, loose)\n\n case '<':\n return lt(a, b, loose)\n\n case '<=':\n return lte(a, b, loose)\n\n default:\n throw new TypeError(`Invalid operator: ${op}`)\n }\n}\nmodule.exports = cmp\n","const SemVer = require('../classes/semver')\nconst parse = require('./parse')\nconst {re, t} = require('../internal/re')\n\nconst coerce = (version, options) => {\n if (version instanceof SemVer) {\n return version\n }\n\n if (typeof version === 'number') {\n version = String(version)\n }\n\n if (typeof version !== 'string') {\n return null\n }\n\n options = options || {}\n\n let match = null\n if (!options.rtl) {\n match = version.match(re[t.COERCE])\n } else {\n // Find the right-most coercible string that does not share\n // a terminus with a more left-ward coercible string.\n // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'\n //\n // Walk through the string checking with a /g regexp\n // Manually set the index so as to pick up overlapping matches.\n // Stop when we get a match that ends at the string end, since no\n // coercible string can be more right-ward without the same terminus.\n let next\n while ((next = re[t.COERCERTL].exec(version)) &&\n (!match || match.index + match[0].length !== version.length)\n ) {\n if (!match ||\n next.index + next[0].length !== match.index + match[0].length) {\n match = next\n }\n re[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length\n }\n // leave it in a clean state\n re[t.COERCERTL].lastIndex = -1\n }\n\n if (match === null)\n return null\n\n return parse(`${match[2]}.${match[3] || '0'}.${match[4] || '0'}`, options)\n}\nmodule.exports = coerce\n","const ANY = Symbol('SemVer ANY')\n// hoisted class for cyclic dependency\nclass Comparator {\n static get ANY () {\n return ANY\n }\n constructor (comp, options) {\n options = parseOptions(options)\n\n if (comp instanceof Comparator) {\n if (comp.loose === !!options.loose) {\n return comp\n } else {\n comp = comp.value\n }\n }\n\n debug('comparator', comp, options)\n this.options = options\n this.loose = !!options.loose\n this.parse(comp)\n\n if (this.semver === ANY) {\n this.value = ''\n } else {\n this.value = this.operator + this.semver.version\n }\n\n debug('comp', this)\n }\n\n parse (comp) {\n const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]\n const m = comp.match(r)\n\n if (!m) {\n throw new TypeError(`Invalid comparator: ${comp}`)\n }\n\n this.operator = m[1] !== undefined ? m[1] : ''\n if (this.operator === '=') {\n this.operator = ''\n }\n\n // if it literally is just '>' or '' then allow anything.\n if (!m[2]) {\n this.semver = ANY\n } else {\n this.semver = new SemVer(m[2], this.options.loose)\n }\n }\n\n toString () {\n return this.value\n }\n\n test (version) {\n debug('Comparator.test', version, this.options.loose)\n\n if (this.semver === ANY || version === ANY) {\n return true\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n return cmp(version, this.operator, this.semver, this.options)\n }\n\n intersects (comp, options) {\n if (!(comp instanceof Comparator)) {\n throw new TypeError('a Comparator is required')\n }\n\n if (!options || typeof options !== 'object') {\n options = {\n loose: !!options,\n includePrerelease: false\n }\n }\n\n if (this.operator === '') {\n if (this.value === '') {\n return true\n }\n return new Range(comp.value, options).test(this.value)\n } else if (comp.operator === '') {\n if (comp.value === '') {\n return true\n }\n return new Range(this.value, options).test(comp.semver)\n }\n\n const sameDirectionIncreasing =\n (this.operator === '>=' || this.operator === '>') &&\n (comp.operator === '>=' || comp.operator === '>')\n const sameDirectionDecreasing =\n (this.operator === '<=' || this.operator === '<') &&\n (comp.operator === '<=' || comp.operator === '<')\n const sameSemVer = this.semver.version === comp.semver.version\n const differentDirectionsInclusive =\n (this.operator === '>=' || this.operator === '<=') &&\n (comp.operator === '>=' || comp.operator === '<=')\n const oppositeDirectionsLessThan =\n cmp(this.semver, '<', comp.semver, options) &&\n (this.operator === '>=' || this.operator === '>') &&\n (comp.operator === '<=' || comp.operator === '<')\n const oppositeDirectionsGreaterThan =\n cmp(this.semver, '>', comp.semver, options) &&\n (this.operator === '<=' || this.operator === '<') &&\n (comp.operator === '>=' || comp.operator === '>')\n\n return (\n sameDirectionIncreasing ||\n sameDirectionDecreasing ||\n (sameSemVer && differentDirectionsInclusive) ||\n oppositeDirectionsLessThan ||\n oppositeDirectionsGreaterThan\n )\n }\n}\n\nmodule.exports = Comparator\n\nconst parseOptions = require('../internal/parse-options')\nconst {re, t} = require('../internal/re')\nconst cmp = require('../functions/cmp')\nconst debug = require('../internal/debug')\nconst SemVer = require('./semver')\nconst Range = require('./range')\n","// hoisted class for cyclic dependency\nclass Range {\n constructor (range, options) {\n options = parseOptions(options)\n\n if (range instanceof Range) {\n if (\n range.loose === !!options.loose &&\n range.includePrerelease === !!options.includePrerelease\n ) {\n return range\n } else {\n return new Range(range.raw, options)\n }\n }\n\n if (range instanceof Comparator) {\n // just put it in the set and return\n this.raw = range.value\n this.set = [[range]]\n this.format()\n return this\n }\n\n this.options = options\n this.loose = !!options.loose\n this.includePrerelease = !!options.includePrerelease\n\n // First, split based on boolean or ||\n this.raw = range\n this.set = range\n .split(/\\s*\\|\\|\\s*/)\n // map the range to a 2d array of comparators\n .map(range => this.parseRange(range.trim()))\n // throw out any comparator lists that are empty\n // this generally means that it was not a valid range, which is allowed\n // in loose mode, but will still throw if the WHOLE range is invalid.\n .filter(c => c.length)\n\n if (!this.set.length) {\n throw new TypeError(`Invalid SemVer Range: ${range}`)\n }\n\n // if we have any that are not the null set, throw out null sets.\n if (this.set.length > 1) {\n // keep the first one, in case they're all null sets\n const first = this.set[0]\n this.set = this.set.filter(c => !isNullSet(c[0]))\n if (this.set.length === 0)\n this.set = [first]\n else if (this.set.length > 1) {\n // if we have any that are *, then the range is just *\n for (const c of this.set) {\n if (c.length === 1 && isAny(c[0])) {\n this.set = [c]\n break\n }\n }\n }\n }\n\n this.format()\n }\n\n format () {\n this.range = this.set\n .map((comps) => {\n return comps.join(' ').trim()\n })\n .join('||')\n .trim()\n return this.range\n }\n\n toString () {\n return this.range\n }\n\n parseRange (range) {\n range = range.trim()\n\n // memoize range parsing for performance.\n // this is a very hot path, and fully deterministic.\n const memoOpts = Object.keys(this.options).join(',')\n const memoKey = `parseRange:${memoOpts}:${range}`\n const cached = cache.get(memoKey)\n if (cached)\n return cached\n\n const loose = this.options.loose\n // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`\n const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE]\n range = range.replace(hr, hyphenReplace(this.options.includePrerelease))\n debug('hyphen replace', range)\n // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`\n range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace)\n debug('comparator trim', range, re[t.COMPARATORTRIM])\n\n // `~ 1.2.3` => `~1.2.3`\n range = range.replace(re[t.TILDETRIM], tildeTrimReplace)\n\n // `^ 1.2.3` => `^1.2.3`\n range = range.replace(re[t.CARETTRIM], caretTrimReplace)\n\n // normalize spaces\n range = range.split(/\\s+/).join(' ')\n\n // At this point, the range is completely trimmed and\n // ready to be split into comparators.\n\n const compRe = loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]\n const rangeList = range\n .split(' ')\n .map(comp => parseComparator(comp, this.options))\n .join(' ')\n .split(/\\s+/)\n // >=0.0.0 is equivalent to *\n .map(comp => replaceGTE0(comp, this.options))\n // in loose mode, throw out any that are not valid comparators\n .filter(this.options.loose ? comp => !!comp.match(compRe) : () => true)\n .map(comp => new Comparator(comp, this.options))\n\n // if any comparators are the null set, then replace with JUST null set\n // if more than one comparator, remove any * comparators\n // also, don't include the same comparator more than once\n const l = rangeList.length\n const rangeMap = new Map()\n for (const comp of rangeList) {\n if (isNullSet(comp))\n return [comp]\n rangeMap.set(comp.value, comp)\n }\n if (rangeMap.size > 1 && rangeMap.has(''))\n rangeMap.delete('')\n\n const result = [...rangeMap.values()]\n cache.set(memoKey, result)\n return result\n }\n\n intersects (range, options) {\n if (!(range instanceof Range)) {\n throw new TypeError('a Range is required')\n }\n\n return this.set.some((thisComparators) => {\n return (\n isSatisfiable(thisComparators, options) &&\n range.set.some((rangeComparators) => {\n return (\n isSatisfiable(rangeComparators, options) &&\n thisComparators.every((thisComparator) => {\n return rangeComparators.every((rangeComparator) => {\n return thisComparator.intersects(rangeComparator, options)\n })\n })\n )\n })\n )\n })\n }\n\n // if ANY of the sets match ALL of its comparators, then pass\n test (version) {\n if (!version) {\n return false\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n for (let i = 0; i < this.set.length; i++) {\n if (testSet(this.set[i], version, this.options)) {\n return true\n }\n }\n return false\n }\n}\nmodule.exports = Range\n\nconst LRU = require('lru-cache')\nconst cache = new LRU({ max: 1000 })\n\nconst parseOptions = require('../internal/parse-options')\nconst Comparator = require('./comparator')\nconst debug = require('../internal/debug')\nconst SemVer = require('./semver')\nconst {\n re,\n t,\n comparatorTrimReplace,\n tildeTrimReplace,\n caretTrimReplace\n} = require('../internal/re')\n\nconst isNullSet = c => c.value === '<0.0.0-0'\nconst isAny = c => c.value === ''\n\n// take a set of comparators and determine whether there\n// exists a version which can satisfy it\nconst isSatisfiable = (comparators, options) => {\n let result = true\n const remainingComparators = comparators.slice()\n let testComparator = remainingComparators.pop()\n\n while (result && remainingComparators.length) {\n result = remainingComparators.every((otherComparator) => {\n return testComparator.intersects(otherComparator, options)\n })\n\n testComparator = remainingComparators.pop()\n }\n\n return result\n}\n\n// comprised of xranges, tildes, stars, and gtlt's at this point.\n// already replaced the hyphen ranges\n// turn into a set of JUST comparators.\nconst parseComparator = (comp, options) => {\n debug('comp', comp, options)\n comp = replaceCarets(comp, options)\n debug('caret', comp)\n comp = replaceTildes(comp, options)\n debug('tildes', comp)\n comp = replaceXRanges(comp, options)\n debug('xrange', comp)\n comp = replaceStars(comp, options)\n debug('stars', comp)\n return comp\n}\n\nconst isX = id => !id || id.toLowerCase() === 'x' || id === '*'\n\n// ~, ~> --> * (any, kinda silly)\n// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0-0\n// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0-0\n// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0-0\n// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0-0\n// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0-0\nconst replaceTildes = (comp, options) =>\n comp.trim().split(/\\s+/).map((comp) => {\n return replaceTilde(comp, options)\n }).join(' ')\n\nconst replaceTilde = (comp, options) => {\n const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE]\n return comp.replace(r, (_, M, m, p, pr) => {\n debug('tilde', comp, _, M, m, p, pr)\n let ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = `>=${M}.0.0 <${+M + 1}.0.0-0`\n } else if (isX(p)) {\n // ~1.2 == >=1.2.0 <1.3.0-0\n ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`\n } else if (pr) {\n debug('replaceTilde pr', pr)\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${+m + 1}.0-0`\n } else {\n // ~1.2.3 == >=1.2.3 <1.3.0-0\n ret = `>=${M}.${m}.${p\n } <${M}.${+m + 1}.0-0`\n }\n\n debug('tilde return', ret)\n return ret\n })\n}\n\n// ^ --> * (any, kinda silly)\n// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0-0\n// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0-0\n// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0-0\n// ^1.2.3 --> >=1.2.3 <2.0.0-0\n// ^1.2.0 --> >=1.2.0 <2.0.0-0\nconst replaceCarets = (comp, options) =>\n comp.trim().split(/\\s+/).map((comp) => {\n return replaceCaret(comp, options)\n }).join(' ')\n\nconst replaceCaret = (comp, options) => {\n debug('caret', comp, options)\n const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET]\n const z = options.includePrerelease ? '-0' : ''\n return comp.replace(r, (_, M, m, p, pr) => {\n debug('caret', comp, _, M, m, p, pr)\n let ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`\n } else if (isX(p)) {\n if (M === '0') {\n ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`\n } else {\n ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`\n }\n } else if (pr) {\n debug('replaceCaret pr', pr)\n if (M === '0') {\n if (m === '0') {\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${m}.${+p + 1}-0`\n } else {\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${+m + 1}.0-0`\n }\n } else {\n ret = `>=${M}.${m}.${p}-${pr\n } <${+M + 1}.0.0-0`\n }\n } else {\n debug('no pr')\n if (M === '0') {\n if (m === '0') {\n ret = `>=${M}.${m}.${p\n }${z} <${M}.${m}.${+p + 1}-0`\n } else {\n ret = `>=${M}.${m}.${p\n }${z} <${M}.${+m + 1}.0-0`\n }\n } else {\n ret = `>=${M}.${m}.${p\n } <${+M + 1}.0.0-0`\n }\n }\n\n debug('caret return', ret)\n return ret\n })\n}\n\nconst replaceXRanges = (comp, options) => {\n debug('replaceXRanges', comp, options)\n return comp.split(/\\s+/).map((comp) => {\n return replaceXRange(comp, options)\n }).join(' ')\n}\n\nconst replaceXRange = (comp, options) => {\n comp = comp.trim()\n const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE]\n return comp.replace(r, (ret, gtlt, M, m, p, pr) => {\n debug('xRange', comp, ret, gtlt, M, m, p, pr)\n const xM = isX(M)\n const xm = xM || isX(m)\n const xp = xm || isX(p)\n const anyX = xp\n\n if (gtlt === '=' && anyX) {\n gtlt = ''\n }\n\n // if we're including prereleases in the match, then we need\n // to fix this to -0, the lowest possible prerelease value\n pr = options.includePrerelease ? '-0' : ''\n\n if (xM) {\n if (gtlt === '>' || gtlt === '<') {\n // nothing is allowed\n ret = '<0.0.0-0'\n } else {\n // nothing is forbidden\n ret = '*'\n }\n } else if (gtlt && anyX) {\n // we know patch is an x, because we have any x at all.\n // replace X with 0\n if (xm) {\n m = 0\n }\n p = 0\n\n if (gtlt === '>') {\n // >1 => >=2.0.0\n // >1.2 => >=1.3.0\n gtlt = '>='\n if (xm) {\n M = +M + 1\n m = 0\n p = 0\n } else {\n m = +m + 1\n p = 0\n }\n } else if (gtlt === '<=') {\n // <=0.7.x is actually <0.8.0, since any 0.7.x should\n // pass. Similarly, <=7.x is actually <8.0.0, etc.\n gtlt = '<'\n if (xm) {\n M = +M + 1\n } else {\n m = +m + 1\n }\n }\n\n if (gtlt === '<')\n pr = '-0'\n\n ret = `${gtlt + M}.${m}.${p}${pr}`\n } else if (xm) {\n ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`\n } else if (xp) {\n ret = `>=${M}.${m}.0${pr\n } <${M}.${+m + 1}.0-0`\n }\n\n debug('xRange return', ret)\n\n return ret\n })\n}\n\n// Because * is AND-ed with everything else in the comparator,\n// and '' means \"any version\", just remove the *s entirely.\nconst replaceStars = (comp, options) => {\n debug('replaceStars', comp, options)\n // Looseness is ignored here. star is always as loose as it gets!\n return comp.trim().replace(re[t.STAR], '')\n}\n\nconst replaceGTE0 = (comp, options) => {\n debug('replaceGTE0', comp, options)\n return comp.trim()\n .replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], '')\n}\n\n// This function is passed to string.replace(re[t.HYPHENRANGE])\n// M, m, patch, prerelease, build\n// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5\n// 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do\n// 1.2 - 3.4 => >=1.2.0 <3.5.0-0\nconst hyphenReplace = incPr => ($0,\n from, fM, fm, fp, fpr, fb,\n to, tM, tm, tp, tpr, tb) => {\n if (isX(fM)) {\n from = ''\n } else if (isX(fm)) {\n from = `>=${fM}.0.0${incPr ? '-0' : ''}`\n } else if (isX(fp)) {\n from = `>=${fM}.${fm}.0${incPr ? '-0' : ''}`\n } else if (fpr) {\n from = `>=${from}`\n } else {\n from = `>=${from}${incPr ? '-0' : ''}`\n }\n\n if (isX(tM)) {\n to = ''\n } else if (isX(tm)) {\n to = `<${+tM + 1}.0.0-0`\n } else if (isX(tp)) {\n to = `<${tM}.${+tm + 1}.0-0`\n } else if (tpr) {\n to = `<=${tM}.${tm}.${tp}-${tpr}`\n } else if (incPr) {\n to = `<${tM}.${tm}.${+tp + 1}-0`\n } else {\n to = `<=${to}`\n }\n\n return (`${from} ${to}`).trim()\n}\n\nconst testSet = (set, version, options) => {\n for (let i = 0; i < set.length; i++) {\n if (!set[i].test(version)) {\n return false\n }\n }\n\n if (version.prerelease.length && !options.includePrerelease) {\n // Find the set of versions that are allowed to have prereleases\n // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0\n // That should allow `1.2.3-pr.2` to pass.\n // However, `1.2.4-alpha.notready` should NOT be allowed,\n // even though it's within the range set by the comparators.\n for (let i = 0; i < set.length; i++) {\n debug(set[i].semver)\n if (set[i].semver === Comparator.ANY) {\n continue\n }\n\n if (set[i].semver.prerelease.length > 0) {\n const allowed = set[i].semver\n if (allowed.major === version.major &&\n allowed.minor === version.minor &&\n allowed.patch === version.patch) {\n return true\n }\n }\n }\n\n // Version has a -pre, but it's not one of the ones we like.\n return false\n }\n\n return true\n}\n","'use strict'\n\n// A linked list to keep track of recently-used-ness\nconst Yallist = require('yallist')\n\nconst MAX = Symbol('max')\nconst LENGTH = Symbol('length')\nconst LENGTH_CALCULATOR = Symbol('lengthCalculator')\nconst ALLOW_STALE = Symbol('allowStale')\nconst MAX_AGE = Symbol('maxAge')\nconst DISPOSE = Symbol('dispose')\nconst NO_DISPOSE_ON_SET = Symbol('noDisposeOnSet')\nconst LRU_LIST = Symbol('lruList')\nconst CACHE = Symbol('cache')\nconst UPDATE_AGE_ON_GET = Symbol('updateAgeOnGet')\n\nconst naiveLength = () => 1\n\n// lruList is a yallist where the head is the youngest\n// item, and the tail is the oldest. the list contains the Hit\n// objects as the entries.\n// Each Hit object has a reference to its Yallist.Node. This\n// never changes.\n//\n// cache is a Map (or PseudoMap) that matches the keys to\n// the Yallist.Node object.\nclass LRUCache {\n constructor (options) {\n if (typeof options === 'number')\n options = { max: options }\n\n if (!options)\n options = {}\n\n if (options.max && (typeof options.max !== 'number' || options.max < 0))\n throw new TypeError('max must be a non-negative number')\n // Kind of weird to have a default max of Infinity, but oh well.\n const max = this[MAX] = options.max || Infinity\n\n const lc = options.length || naiveLength\n this[LENGTH_CALCULATOR] = (typeof lc !== 'function') ? naiveLength : lc\n this[ALLOW_STALE] = options.stale || false\n if (options.maxAge && typeof options.maxAge !== 'number')\n throw new TypeError('maxAge must be a number')\n this[MAX_AGE] = options.maxAge || 0\n this[DISPOSE] = options.dispose\n this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false\n this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false\n this.reset()\n }\n\n // resize the cache when the max changes.\n set max (mL) {\n if (typeof mL !== 'number' || mL < 0)\n throw new TypeError('max must be a non-negative number')\n\n this[MAX] = mL || Infinity\n trim(this)\n }\n get max () {\n return this[MAX]\n }\n\n set allowStale (allowStale) {\n this[ALLOW_STALE] = !!allowStale\n }\n get allowStale () {\n return this[ALLOW_STALE]\n }\n\n set maxAge (mA) {\n if (typeof mA !== 'number')\n throw new TypeError('maxAge must be a non-negative number')\n\n this[MAX_AGE] = mA\n trim(this)\n }\n get maxAge () {\n return this[MAX_AGE]\n }\n\n // resize the cache when the lengthCalculator changes.\n set lengthCalculator (lC) {\n if (typeof lC !== 'function')\n lC = naiveLength\n\n if (lC !== this[LENGTH_CALCULATOR]) {\n this[LENGTH_CALCULATOR] = lC\n this[LENGTH] = 0\n this[LRU_LIST].forEach(hit => {\n hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key)\n this[LENGTH] += hit.length\n })\n }\n trim(this)\n }\n get lengthCalculator () { return this[LENGTH_CALCULATOR] }\n\n get length () { return this[LENGTH] }\n get itemCount () { return this[LRU_LIST].length }\n\n rforEach (fn, thisp) {\n thisp = thisp || this\n for (let walker = this[LRU_LIST].tail; walker !== null;) {\n const prev = walker.prev\n forEachStep(this, fn, walker, thisp)\n walker = prev\n }\n }\n\n forEach (fn, thisp) {\n thisp = thisp || this\n for (let walker = this[LRU_LIST].head; walker !== null;) {\n const next = walker.next\n forEachStep(this, fn, walker, thisp)\n walker = next\n }\n }\n\n keys () {\n return this[LRU_LIST].toArray().map(k => k.key)\n }\n\n values () {\n return this[LRU_LIST].toArray().map(k => k.value)\n }\n\n reset () {\n if (this[DISPOSE] &&\n this[LRU_LIST] &&\n this[LRU_LIST].length) {\n this[LRU_LIST].forEach(hit => this[DISPOSE](hit.key, hit.value))\n }\n\n this[CACHE] = new Map() // hash of items by key\n this[LRU_LIST] = new Yallist() // list of items in order of use recency\n this[LENGTH] = 0 // length of items in the list\n }\n\n dump () {\n return this[LRU_LIST].map(hit =>\n isStale(this, hit) ? false : {\n k: hit.key,\n v: hit.value,\n e: hit.now + (hit.maxAge || 0)\n }).toArray().filter(h => h)\n }\n\n dumpLru () {\n return this[LRU_LIST]\n }\n\n set (key, value, maxAge) {\n maxAge = maxAge || this[MAX_AGE]\n\n if (maxAge && typeof maxAge !== 'number')\n throw new TypeError('maxAge must be a number')\n\n const now = maxAge ? Date.now() : 0\n const len = this[LENGTH_CALCULATOR](value, key)\n\n if (this[CACHE].has(key)) {\n if (len > this[MAX]) {\n del(this, this[CACHE].get(key))\n return false\n }\n\n const node = this[CACHE].get(key)\n const item = node.value\n\n // dispose of the old one before overwriting\n // split out into 2 ifs for better coverage tracking\n if (this[DISPOSE]) {\n if (!this[NO_DISPOSE_ON_SET])\n this[DISPOSE](key, item.value)\n }\n\n item.now = now\n item.maxAge = maxAge\n item.value = value\n this[LENGTH] += len - item.length\n item.length = len\n this.get(key)\n trim(this)\n return true\n }\n\n const hit = new Entry(key, value, len, now, maxAge)\n\n // oversized objects fall out of cache automatically.\n if (hit.length > this[MAX]) {\n if (this[DISPOSE])\n this[DISPOSE](key, value)\n\n return false\n }\n\n this[LENGTH] += hit.length\n this[LRU_LIST].unshift(hit)\n this[CACHE].set(key, this[LRU_LIST].head)\n trim(this)\n return true\n }\n\n has (key) {\n if (!this[CACHE].has(key)) return false\n const hit = this[CACHE].get(key).value\n return !isStale(this, hit)\n }\n\n get (key) {\n return get(this, key, true)\n }\n\n peek (key) {\n return get(this, key, false)\n }\n\n pop () {\n const node = this[LRU_LIST].tail\n if (!node)\n return null\n\n del(this, node)\n return node.value\n }\n\n del (key) {\n del(this, this[CACHE].get(key))\n }\n\n load (arr) {\n // reset the cache\n this.reset()\n\n const now = Date.now()\n // A previous serialized cache has the most recent items first\n for (let l = arr.length - 1; l >= 0; l--) {\n const hit = arr[l]\n const expiresAt = hit.e || 0\n if (expiresAt === 0)\n // the item was created without expiration in a non aged cache\n this.set(hit.k, hit.v)\n else {\n const maxAge = expiresAt - now\n // dont add already expired items\n if (maxAge > 0) {\n this.set(hit.k, hit.v, maxAge)\n }\n }\n }\n }\n\n prune () {\n this[CACHE].forEach((value, key) => get(this, key, false))\n }\n}\n\nconst get = (self, key, doUse) => {\n const node = self[CACHE].get(key)\n if (node) {\n const hit = node.value\n if (isStale(self, hit)) {\n del(self, node)\n if (!self[ALLOW_STALE])\n return undefined\n } else {\n if (doUse) {\n if (self[UPDATE_AGE_ON_GET])\n node.value.now = Date.now()\n self[LRU_LIST].unshiftNode(node)\n }\n }\n return hit.value\n }\n}\n\nconst isStale = (self, hit) => {\n if (!hit || (!hit.maxAge && !self[MAX_AGE]))\n return false\n\n const diff = Date.now() - hit.now\n return hit.maxAge ? diff > hit.maxAge\n : self[MAX_AGE] && (diff > self[MAX_AGE])\n}\n\nconst trim = self => {\n if (self[LENGTH] > self[MAX]) {\n for (let walker = self[LRU_LIST].tail;\n self[LENGTH] > self[MAX] && walker !== null;) {\n // We know that we're about to delete this one, and also\n // what the next least recently used key will be, so just\n // go ahead and set it now.\n const prev = walker.prev\n del(self, walker)\n walker = prev\n }\n }\n}\n\nconst del = (self, node) => {\n if (node) {\n const hit = node.value\n if (self[DISPOSE])\n self[DISPOSE](hit.key, hit.value)\n\n self[LENGTH] -= hit.length\n self[CACHE].delete(hit.key)\n self[LRU_LIST].removeNode(node)\n }\n}\n\nclass Entry {\n constructor (key, value, length, now, maxAge) {\n this.key = key\n this.value = value\n this.length = length\n this.now = now\n this.maxAge = maxAge || 0\n }\n}\n\nconst forEachStep = (self, fn, node, thisp) => {\n let hit = node.value\n if (isStale(self, hit)) {\n del(self, node)\n if (!self[ALLOW_STALE])\n hit = undefined\n }\n if (hit)\n fn.call(thisp, hit.value, hit.key, self)\n}\n\nmodule.exports = LRUCache\n","'use strict'\nmodule.exports = Yallist\n\nYallist.Node = Node\nYallist.create = Yallist\n\nfunction Yallist (list) {\n var self = this\n if (!(self instanceof Yallist)) {\n self = new Yallist()\n }\n\n self.tail = null\n self.head = null\n self.length = 0\n\n if (list && typeof list.forEach === 'function') {\n list.forEach(function (item) {\n self.push(item)\n })\n } else if (arguments.length > 0) {\n for (var i = 0, l = arguments.length; i < l; i++) {\n self.push(arguments[i])\n }\n }\n\n return self\n}\n\nYallist.prototype.removeNode = function (node) {\n if (node.list !== this) {\n throw new Error('removing node which does not belong to this list')\n }\n\n var next = node.next\n var prev = node.prev\n\n if (next) {\n next.prev = prev\n }\n\n if (prev) {\n prev.next = next\n }\n\n if (node === this.head) {\n this.head = next\n }\n if (node === this.tail) {\n this.tail = prev\n }\n\n node.list.length--\n node.next = null\n node.prev = null\n node.list = null\n\n return next\n}\n\nYallist.prototype.unshiftNode = function (node) {\n if (node === this.head) {\n return\n }\n\n if (node.list) {\n node.list.removeNode(node)\n }\n\n var head = this.head\n node.list = this\n node.next = head\n if (head) {\n head.prev = node\n }\n\n this.head = node\n if (!this.tail) {\n this.tail = node\n }\n this.length++\n}\n\nYallist.prototype.pushNode = function (node) {\n if (node === this.tail) {\n return\n }\n\n if (node.list) {\n node.list.removeNode(node)\n }\n\n var tail = this.tail\n node.list = this\n node.prev = tail\n if (tail) {\n tail.next = node\n }\n\n this.tail = node\n if (!this.head) {\n this.head = node\n }\n this.length++\n}\n\nYallist.prototype.push = function () {\n for (var i = 0, l = arguments.length; i < l; i++) {\n push(this, arguments[i])\n }\n return this.length\n}\n\nYallist.prototype.unshift = function () {\n for (var i = 0, l = arguments.length; i < l; i++) {\n unshift(this, arguments[i])\n }\n return this.length\n}\n\nYallist.prototype.pop = function () {\n if (!this.tail) {\n return undefined\n }\n\n var res = this.tail.value\n this.tail = this.tail.prev\n if (this.tail) {\n this.tail.next = null\n } else {\n this.head = null\n }\n this.length--\n return res\n}\n\nYallist.prototype.shift = function () {\n if (!this.head) {\n return undefined\n }\n\n var res = this.head.value\n this.head = this.head.next\n if (this.head) {\n this.head.prev = null\n } else {\n this.tail = null\n }\n this.length--\n return res\n}\n\nYallist.prototype.forEach = function (fn, thisp) {\n thisp = thisp || this\n for (var walker = this.head, i = 0; walker !== null; i++) {\n fn.call(thisp, walker.value, i, this)\n walker = walker.next\n }\n}\n\nYallist.prototype.forEachReverse = function (fn, thisp) {\n thisp = thisp || this\n for (var walker = this.tail, i = this.length - 1; walker !== null; i--) {\n fn.call(thisp, walker.value, i, this)\n walker = walker.prev\n }\n}\n\nYallist.prototype.get = function (n) {\n for (var i = 0, walker = this.head; walker !== null && i < n; i++) {\n // abort out of the list early if we hit a cycle\n walker = walker.next\n }\n if (i === n && walker !== null) {\n return walker.value\n }\n}\n\nYallist.prototype.getReverse = function (n) {\n for (var i = 0, walker = this.tail; walker !== null && i < n; i++) {\n // abort out of the list early if we hit a cycle\n walker = walker.prev\n }\n if (i === n && walker !== null) {\n return walker.value\n }\n}\n\nYallist.prototype.map = function (fn, thisp) {\n thisp = thisp || this\n var res = new Yallist()\n for (var walker = this.head; walker !== null;) {\n res.push(fn.call(thisp, walker.value, this))\n walker = walker.next\n }\n return res\n}\n\nYallist.prototype.mapReverse = function (fn, thisp) {\n thisp = thisp || this\n var res = new Yallist()\n for (var walker = this.tail; walker !== null;) {\n res.push(fn.call(thisp, walker.value, this))\n walker = walker.prev\n }\n return res\n}\n\nYallist.prototype.reduce = function (fn, initial) {\n var acc\n var walker = this.head\n if (arguments.length > 1) {\n acc = initial\n } else if (this.head) {\n walker = this.head.next\n acc = this.head.value\n } else {\n throw new TypeError('Reduce of empty list with no initial value')\n }\n\n for (var i = 0; walker !== null; i++) {\n acc = fn(acc, walker.value, i)\n walker = walker.next\n }\n\n return acc\n}\n\nYallist.prototype.reduceReverse = function (fn, initial) {\n var acc\n var walker = this.tail\n if (arguments.length > 1) {\n acc = initial\n } else if (this.tail) {\n walker = this.tail.prev\n acc = this.tail.value\n } else {\n throw new TypeError('Reduce of empty list with no initial value')\n }\n\n for (var i = this.length - 1; walker !== null; i--) {\n acc = fn(acc, walker.value, i)\n walker = walker.prev\n }\n\n return acc\n}\n\nYallist.prototype.toArray = function () {\n var arr = new Array(this.length)\n for (var i = 0, walker = this.head; walker !== null; i++) {\n arr[i] = walker.value\n walker = walker.next\n }\n return arr\n}\n\nYallist.prototype.toArrayReverse = function () {\n var arr = new Array(this.length)\n for (var i = 0, walker = this.tail; walker !== null; i++) {\n arr[i] = walker.value\n walker = walker.prev\n }\n return arr\n}\n\nYallist.prototype.slice = function (from, to) {\n to = to || this.length\n if (to < 0) {\n to += this.length\n }\n from = from || 0\n if (from < 0) {\n from += this.length\n }\n var ret = new Yallist()\n if (to < from || to < 0) {\n return ret\n }\n if (from < 0) {\n from = 0\n }\n if (to > this.length) {\n to = this.length\n }\n for (var i = 0, walker = this.head; walker !== null && i < from; i++) {\n walker = walker.next\n }\n for (; walker !== null && i < to; i++, walker = walker.next) {\n ret.push(walker.value)\n }\n return ret\n}\n\nYallist.prototype.sliceReverse = function (from, to) {\n to = to || this.length\n if (to < 0) {\n to += this.length\n }\n from = from || 0\n if (from < 0) {\n from += this.length\n }\n var ret = new Yallist()\n if (to < from || to < 0) {\n return ret\n }\n if (from < 0) {\n from = 0\n }\n if (to > this.length) {\n to = this.length\n }\n for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) {\n walker = walker.prev\n }\n for (; walker !== null && i > from; i--, walker = walker.prev) {\n ret.push(walker.value)\n }\n return ret\n}\n\nYallist.prototype.splice = function (start, deleteCount, ...nodes) {\n if (start > this.length) {\n start = this.length - 1\n }\n if (start < 0) {\n start = this.length + start;\n }\n\n for (var i = 0, walker = this.head; walker !== null && i < start; i++) {\n walker = walker.next\n }\n\n var ret = []\n for (var i = 0; walker && i < deleteCount; i++) {\n ret.push(walker.value)\n walker = this.removeNode(walker)\n }\n if (walker === null) {\n walker = this.tail\n }\n\n if (walker !== this.head && walker !== this.tail) {\n walker = walker.prev\n }\n\n for (var i = 0; i < nodes.length; i++) {\n walker = insert(this, walker, nodes[i])\n }\n return ret;\n}\n\nYallist.prototype.reverse = function () {\n var head = this.head\n var tail = this.tail\n for (var walker = head; walker !== null; walker = walker.prev) {\n var p = walker.prev\n walker.prev = walker.next\n walker.next = p\n }\n this.head = tail\n this.tail = head\n return this\n}\n\nfunction insert (self, node, value) {\n var inserted = node === self.head ?\n new Node(value, null, node, self) :\n new Node(value, node, node.next, self)\n\n if (inserted.next === null) {\n self.tail = inserted\n }\n if (inserted.prev === null) {\n self.head = inserted\n }\n\n self.length++\n\n return inserted\n}\n\nfunction push (self, item) {\n self.tail = new Node(item, self.tail, null, self)\n if (!self.head) {\n self.head = self.tail\n }\n self.length++\n}\n\nfunction unshift (self, item) {\n self.head = new Node(item, null, self.head, self)\n if (!self.tail) {\n self.tail = self.head\n }\n self.length++\n}\n\nfunction Node (value, prev, next, list) {\n if (!(this instanceof Node)) {\n return new Node(value, prev, next, list)\n }\n\n this.list = list\n this.value = value\n\n if (prev) {\n prev.next = this\n this.prev = prev\n } else {\n this.prev = null\n }\n\n if (next) {\n next.prev = this\n this.next = next\n } else {\n this.next = null\n }\n}\n\ntry {\n // add if support for Symbol.iterator is present\n require('./iterator.js')(Yallist)\n} catch (er) {}\n","'use strict'\nmodule.exports = function (Yallist) {\n Yallist.prototype[Symbol.iterator] = function* () {\n for (let walker = this.head; walker; walker = walker.next) {\n yield walker.value\n }\n }\n}\n","const Range = require('../classes/range')\nconst satisfies = (version, range, options) => {\n try {\n range = new Range(range, options)\n } catch (er) {\n return false\n }\n return range.test(version)\n}\nmodule.exports = satisfies\n","const Range = require('../classes/range')\n\n// Mostly just for testing and legacy API reasons\nconst toComparators = (range, options) =>\n new Range(range, options).set\n .map(comp => comp.map(c => c.value).join(' ').trim().split(' '))\n\nmodule.exports = toComparators\n","const SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\n\nconst maxSatisfying = (versions, range, options) => {\n let max = null\n let maxSV = null\n let rangeObj = null\n try {\n rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach((v) => {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!max || maxSV.compare(v) === -1) {\n // compare(max, v, true)\n max = v\n maxSV = new SemVer(max, options)\n }\n }\n })\n return max\n}\nmodule.exports = maxSatisfying\n","const SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\nconst minSatisfying = (versions, range, options) => {\n let min = null\n let minSV = null\n let rangeObj = null\n try {\n rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach((v) => {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!min || minSV.compare(v) === 1) {\n // compare(min, v, true)\n min = v\n minSV = new SemVer(min, options)\n }\n }\n })\n return min\n}\nmodule.exports = minSatisfying\n","const SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\nconst gt = require('../functions/gt')\n\nconst minVersion = (range, loose) => {\n range = new Range(range, loose)\n\n let minver = new SemVer('0.0.0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = new SemVer('0.0.0-0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = null\n for (let i = 0; i < range.set.length; ++i) {\n const comparators = range.set[i]\n\n let setMin = null\n comparators.forEach((comparator) => {\n // Clone to avoid manipulating the comparator's semver object.\n const compver = new SemVer(comparator.semver.version)\n switch (comparator.operator) {\n case '>':\n if (compver.prerelease.length === 0) {\n compver.patch++\n } else {\n compver.prerelease.push(0)\n }\n compver.raw = compver.format()\n /* fallthrough */\n case '':\n case '>=':\n if (!setMin || gt(compver, setMin)) {\n setMin = compver\n }\n break\n case '<':\n case '<=':\n /* Ignore maximum versions */\n break\n /* istanbul ignore next */\n default:\n throw new Error(`Unexpected operation: ${comparator.operator}`)\n }\n })\n if (setMin && (!minver || gt(minver, setMin)))\n minver = setMin\n }\n\n if (minver && range.test(minver)) {\n return minver\n }\n\n return null\n}\nmodule.exports = minVersion\n","const Range = require('../classes/range')\nconst validRange = (range, options) => {\n try {\n // Return '*' instead of '' so that truthiness works.\n // This will throw if it's invalid anyway\n return new Range(range, options).range || '*'\n } catch (er) {\n return null\n }\n}\nmodule.exports = validRange\n","const SemVer = require('../classes/semver')\nconst Comparator = require('../classes/comparator')\nconst {ANY} = Comparator\nconst Range = require('../classes/range')\nconst satisfies = require('../functions/satisfies')\nconst gt = require('../functions/gt')\nconst lt = require('../functions/lt')\nconst lte = require('../functions/lte')\nconst gte = require('../functions/gte')\n\nconst outside = (version, range, hilo, options) => {\n version = new SemVer(version, options)\n range = new Range(range, options)\n\n let gtfn, ltefn, ltfn, comp, ecomp\n switch (hilo) {\n case '>':\n gtfn = gt\n ltefn = lte\n ltfn = lt\n comp = '>'\n ecomp = '>='\n break\n case '<':\n gtfn = lt\n ltefn = gte\n ltfn = gt\n comp = '<'\n ecomp = '<='\n break\n default:\n throw new TypeError('Must provide a hilo val of \"<\" or \">\"')\n }\n\n // If it satisfies the range it is not outside\n if (satisfies(version, range, options)) {\n return false\n }\n\n // From now on, variable terms are as if we're in \"gtr\" mode.\n // but note that everything is flipped for the \"ltr\" function.\n\n for (let i = 0; i < range.set.length; ++i) {\n const comparators = range.set[i]\n\n let high = null\n let low = null\n\n comparators.forEach((comparator) => {\n if (comparator.semver === ANY) {\n comparator = new Comparator('>=0.0.0')\n }\n high = high || comparator\n low = low || comparator\n if (gtfn(comparator.semver, high.semver, options)) {\n high = comparator\n } else if (ltfn(comparator.semver, low.semver, options)) {\n low = comparator\n }\n })\n\n // If the edge version comparator has a operator then our version\n // isn't outside it\n if (high.operator === comp || high.operator === ecomp) {\n return false\n }\n\n // If the lowest version comparator has an operator and our version\n // is less than it then it isn't higher than the range\n if ((!low.operator || low.operator === comp) &&\n ltefn(version, low.semver)) {\n return false\n } else if (low.operator === ecomp && ltfn(version, low.semver)) {\n return false\n }\n }\n return true\n}\n\nmodule.exports = outside\n","// Determine if version is greater than all the versions possible in the range.\nconst outside = require('./outside')\nconst gtr = (version, range, options) => outside(version, range, '>', options)\nmodule.exports = gtr\n","const outside = require('./outside')\n// Determine if version is less than all the versions possible in the range\nconst ltr = (version, range, options) => outside(version, range, '<', options)\nmodule.exports = ltr\n","const Range = require('../classes/range')\nconst intersects = (r1, r2, options) => {\n r1 = new Range(r1, options)\n r2 = new Range(r2, options)\n return r1.intersects(r2)\n}\nmodule.exports = intersects\n","// given a set of versions and a range, create a \"simplified\" range\n// that includes the same versions that the original range does\n// If the original range is shorter than the simplified one, return that.\nconst satisfies = require('../functions/satisfies.js')\nconst compare = require('../functions/compare.js')\nmodule.exports = (versions, range, options) => {\n const set = []\n let min = null\n let prev = null\n const v = versions.sort((a, b) => compare(a, b, options))\n for (const version of v) {\n const included = satisfies(version, range, options)\n if (included) {\n prev = version\n if (!min)\n min = version\n } else {\n if (prev) {\n set.push([min, prev])\n }\n prev = null\n min = null\n }\n }\n if (min)\n set.push([min, null])\n\n const ranges = []\n for (const [min, max] of set) {\n if (min === max)\n ranges.push(min)\n else if (!max && min === v[0])\n ranges.push('*')\n else if (!max)\n ranges.push(`>=${min}`)\n else if (min === v[0])\n ranges.push(`<=${max}`)\n else\n ranges.push(`${min} - ${max}`)\n }\n const simplified = ranges.join(' || ')\n const original = typeof range.raw === 'string' ? range.raw : String(range)\n return simplified.length < original.length ? simplified : range\n}\n","const Range = require('../classes/range.js')\nconst Comparator = require('../classes/comparator.js')\nconst { ANY } = Comparator\nconst satisfies = require('../functions/satisfies.js')\nconst compare = require('../functions/compare.js')\n\n// Complex range `r1 || r2 || ...` is a subset of `R1 || R2 || ...` iff:\n// - Every simple range `r1, r2, ...` is a null set, OR\n// - Every simple range `r1, r2, ...` which is not a null set is a subset of\n// some `R1, R2, ...`\n//\n// Simple range `c1 c2 ...` is a subset of simple range `C1 C2 ...` iff:\n// - If c is only the ANY comparator\n// - If C is only the ANY comparator, return true\n// - Else if in prerelease mode, return false\n// - else replace c with `[>=0.0.0]`\n// - If C is only the ANY comparator\n// - if in prerelease mode, return true\n// - else replace C with `[>=0.0.0]`\n// - Let EQ be the set of = comparators in c\n// - If EQ is more than one, return true (null set)\n// - Let GT be the highest > or >= comparator in c\n// - Let LT be the lowest < or <= comparator in c\n// - If GT and LT, and GT.semver > LT.semver, return true (null set)\n// - If any C is a = range, and GT or LT are set, return false\n// - If EQ\n// - If GT, and EQ does not satisfy GT, return true (null set)\n// - If LT, and EQ does not satisfy LT, return true (null set)\n// - If EQ satisfies every C, return true\n// - Else return false\n// - If GT\n// - If GT.semver is lower than any > or >= comp in C, return false\n// - If GT is >=, and GT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the GT.semver tuple, return false\n// - If LT\n// - If LT.semver is greater than any < or <= comp in C, return false\n// - If LT is <=, and LT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the LT.semver tuple, return false\n// - Else return true\n\nconst subset = (sub, dom, options = {}) => {\n if (sub === dom)\n return true\n\n sub = new Range(sub, options)\n dom = new Range(dom, options)\n let sawNonNull = false\n\n OUTER: for (const simpleSub of sub.set) {\n for (const simpleDom of dom.set) {\n const isSub = simpleSubset(simpleSub, simpleDom, options)\n sawNonNull = sawNonNull || isSub !== null\n if (isSub)\n continue OUTER\n }\n // the null set is a subset of everything, but null simple ranges in\n // a complex range should be ignored. so if we saw a non-null range,\n // then we know this isn't a subset, but if EVERY simple range was null,\n // then it is a subset.\n if (sawNonNull)\n return false\n }\n return true\n}\n\nconst simpleSubset = (sub, dom, options) => {\n if (sub === dom)\n return true\n\n if (sub.length === 1 && sub[0].semver === ANY) {\n if (dom.length === 1 && dom[0].semver === ANY)\n return true\n else if (options.includePrerelease)\n sub = [ new Comparator('>=0.0.0-0') ]\n else\n sub = [ new Comparator('>=0.0.0') ]\n }\n\n if (dom.length === 1 && dom[0].semver === ANY) {\n if (options.includePrerelease)\n return true\n else\n dom = [ new Comparator('>=0.0.0') ]\n }\n\n const eqSet = new Set()\n let gt, lt\n for (const c of sub) {\n if (c.operator === '>' || c.operator === '>=')\n gt = higherGT(gt, c, options)\n else if (c.operator === '<' || c.operator === '<=')\n lt = lowerLT(lt, c, options)\n else\n eqSet.add(c.semver)\n }\n\n if (eqSet.size > 1)\n return null\n\n let gtltComp\n if (gt && lt) {\n gtltComp = compare(gt.semver, lt.semver, options)\n if (gtltComp > 0)\n return null\n else if (gtltComp === 0 && (gt.operator !== '>=' || lt.operator !== '<='))\n return null\n }\n\n // will iterate one or zero times\n for (const eq of eqSet) {\n if (gt && !satisfies(eq, String(gt), options))\n return null\n\n if (lt && !satisfies(eq, String(lt), options))\n return null\n\n for (const c of dom) {\n if (!satisfies(eq, String(c), options))\n return false\n }\n\n return true\n }\n\n let higher, lower\n let hasDomLT, hasDomGT\n // if the subset has a prerelease, we need a comparator in the superset\n // with the same tuple and a prerelease, or it's not a subset\n let needDomLTPre = lt &&\n !options.includePrerelease &&\n lt.semver.prerelease.length ? lt.semver : false\n let needDomGTPre = gt &&\n !options.includePrerelease &&\n gt.semver.prerelease.length ? gt.semver : false\n // exception: <1.2.3-0 is the same as <1.2.3\n if (needDomLTPre && needDomLTPre.prerelease.length === 1 &&\n lt.operator === '<' && needDomLTPre.prerelease[0] === 0) {\n needDomLTPre = false\n }\n\n for (const c of dom) {\n hasDomGT = hasDomGT || c.operator === '>' || c.operator === '>='\n hasDomLT = hasDomLT || c.operator === '<' || c.operator === '<='\n if (gt) {\n if (needDomGTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length &&\n c.semver.major === needDomGTPre.major &&\n c.semver.minor === needDomGTPre.minor &&\n c.semver.patch === needDomGTPre.patch) {\n needDomGTPre = false\n }\n }\n if (c.operator === '>' || c.operator === '>=') {\n higher = higherGT(gt, c, options)\n if (higher === c && higher !== gt)\n return false\n } else if (gt.operator === '>=' && !satisfies(gt.semver, String(c), options))\n return false\n }\n if (lt) {\n if (needDomLTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length &&\n c.semver.major === needDomLTPre.major &&\n c.semver.minor === needDomLTPre.minor &&\n c.semver.patch === needDomLTPre.patch) {\n needDomLTPre = false\n }\n }\n if (c.operator === '<' || c.operator === '<=') {\n lower = lowerLT(lt, c, options)\n if (lower === c && lower !== lt)\n return false\n } else if (lt.operator === '<=' && !satisfies(lt.semver, String(c), options))\n return false\n }\n if (!c.operator && (lt || gt) && gtltComp !== 0)\n return false\n }\n\n // if there was a < or >, and nothing in the dom, then must be false\n // UNLESS it was limited by another range in the other direction.\n // Eg, >1.0.0 <1.0.1 is still a subset of <2.0.0\n if (gt && hasDomLT && !lt && gtltComp !== 0)\n return false\n\n if (lt && hasDomGT && !gt && gtltComp !== 0)\n return false\n\n // we needed a prerelease range in a specific tuple, but didn't get one\n // then this isn't a subset. eg >=1.2.3-pre is not a subset of >=1.0.0,\n // because it includes prereleases in the 1.2.3 tuple\n if (needDomGTPre || needDomLTPre)\n return false\n\n return true\n}\n\n// >=1.2.3 is lower than >1.2.3\nconst higherGT = (a, b, options) => {\n if (!a)\n return b\n const comp = compare(a.semver, b.semver, options)\n return comp > 0 ? a\n : comp < 0 ? b\n : b.operator === '>' && a.operator === '>=' ? b\n : a\n}\n\n// <=1.2.3 is higher than <1.2.3\nconst lowerLT = (a, b, options) => {\n if (!a)\n return b\n const comp = compare(a.semver, b.semver, options)\n return comp < 0 ? a\n : comp > 0 ? b\n : b.operator === '<' && a.operator === '<=' ? b\n : a\n}\n\nmodule.exports = subset\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst http = require(\"http\");\nconst https = require(\"https\");\nconst pm = require(\"./proxy\");\nlet tunnel;\nvar HttpCodes;\n(function (HttpCodes) {\n HttpCodes[HttpCodes[\"OK\"] = 200] = \"OK\";\n HttpCodes[HttpCodes[\"MultipleChoices\"] = 300] = \"MultipleChoices\";\n HttpCodes[HttpCodes[\"MovedPermanently\"] = 301] = \"MovedPermanently\";\n HttpCodes[HttpCodes[\"ResourceMoved\"] = 302] = \"ResourceMoved\";\n HttpCodes[HttpCodes[\"SeeOther\"] = 303] = \"SeeOther\";\n HttpCodes[HttpCodes[\"NotModified\"] = 304] = \"NotModified\";\n HttpCodes[HttpCodes[\"UseProxy\"] = 305] = \"UseProxy\";\n HttpCodes[HttpCodes[\"SwitchProxy\"] = 306] = \"SwitchProxy\";\n HttpCodes[HttpCodes[\"TemporaryRedirect\"] = 307] = \"TemporaryRedirect\";\n HttpCodes[HttpCodes[\"PermanentRedirect\"] = 308] = \"PermanentRedirect\";\n HttpCodes[HttpCodes[\"BadRequest\"] = 400] = \"BadRequest\";\n HttpCodes[HttpCodes[\"Unauthorized\"] = 401] = \"Unauthorized\";\n HttpCodes[HttpCodes[\"PaymentRequired\"] = 402] = \"PaymentRequired\";\n HttpCodes[HttpCodes[\"Forbidden\"] = 403] = \"Forbidden\";\n HttpCodes[HttpCodes[\"NotFound\"] = 404] = \"NotFound\";\n HttpCodes[HttpCodes[\"MethodNotAllowed\"] = 405] = \"MethodNotAllowed\";\n HttpCodes[HttpCodes[\"NotAcceptable\"] = 406] = \"NotAcceptable\";\n HttpCodes[HttpCodes[\"ProxyAuthenticationRequired\"] = 407] = \"ProxyAuthenticationRequired\";\n HttpCodes[HttpCodes[\"RequestTimeout\"] = 408] = \"RequestTimeout\";\n HttpCodes[HttpCodes[\"Conflict\"] = 409] = \"Conflict\";\n HttpCodes[HttpCodes[\"Gone\"] = 410] = \"Gone\";\n HttpCodes[HttpCodes[\"TooManyRequests\"] = 429] = \"TooManyRequests\";\n HttpCodes[HttpCodes[\"InternalServerError\"] = 500] = \"InternalServerError\";\n HttpCodes[HttpCodes[\"NotImplemented\"] = 501] = \"NotImplemented\";\n HttpCodes[HttpCodes[\"BadGateway\"] = 502] = \"BadGateway\";\n HttpCodes[HttpCodes[\"ServiceUnavailable\"] = 503] = \"ServiceUnavailable\";\n HttpCodes[HttpCodes[\"GatewayTimeout\"] = 504] = \"GatewayTimeout\";\n})(HttpCodes = exports.HttpCodes || (exports.HttpCodes = {}));\nvar Headers;\n(function (Headers) {\n Headers[\"Accept\"] = \"accept\";\n Headers[\"ContentType\"] = \"content-type\";\n})(Headers = exports.Headers || (exports.Headers = {}));\nvar MediaTypes;\n(function (MediaTypes) {\n MediaTypes[\"ApplicationJson\"] = \"application/json\";\n})(MediaTypes = exports.MediaTypes || (exports.MediaTypes = {}));\n/**\n * Returns the proxy URL, depending upon the supplied url and proxy environment variables.\n * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com\n */\nfunction getProxyUrl(serverUrl) {\n let proxyUrl = pm.getProxyUrl(new URL(serverUrl));\n return proxyUrl ? proxyUrl.href : '';\n}\nexports.getProxyUrl = getProxyUrl;\nconst HttpRedirectCodes = [\n HttpCodes.MovedPermanently,\n HttpCodes.ResourceMoved,\n HttpCodes.SeeOther,\n HttpCodes.TemporaryRedirect,\n HttpCodes.PermanentRedirect\n];\nconst HttpResponseRetryCodes = [\n HttpCodes.BadGateway,\n HttpCodes.ServiceUnavailable,\n HttpCodes.GatewayTimeout\n];\nconst RetryableHttpVerbs = ['OPTIONS', 'GET', 'DELETE', 'HEAD'];\nconst ExponentialBackoffCeiling = 10;\nconst ExponentialBackoffTimeSlice = 5;\nclass HttpClientError extends Error {\n constructor(message, statusCode) {\n super(message);\n this.name = 'HttpClientError';\n this.statusCode = statusCode;\n Object.setPrototypeOf(this, HttpClientError.prototype);\n }\n}\nexports.HttpClientError = HttpClientError;\nclass HttpClientResponse {\n constructor(message) {\n this.message = message;\n }\n readBody() {\n return new Promise(async (resolve, reject) => {\n let output = Buffer.alloc(0);\n this.message.on('data', (chunk) => {\n output = Buffer.concat([output, chunk]);\n });\n this.message.on('end', () => {\n resolve(output.toString());\n });\n });\n }\n}\nexports.HttpClientResponse = HttpClientResponse;\nfunction isHttps(requestUrl) {\n let parsedUrl = new URL(requestUrl);\n return parsedUrl.protocol === 'https:';\n}\nexports.isHttps = isHttps;\nclass HttpClient {\n constructor(userAgent, handlers, requestOptions) {\n this._ignoreSslError = false;\n this._allowRedirects = true;\n this._allowRedirectDowngrade = false;\n this._maxRedirects = 50;\n this._allowRetries = false;\n this._maxRetries = 1;\n this._keepAlive = false;\n this._disposed = false;\n this.userAgent = userAgent;\n this.handlers = handlers || [];\n this.requestOptions = requestOptions;\n if (requestOptions) {\n if (requestOptions.ignoreSslError != null) {\n this._ignoreSslError = requestOptions.ignoreSslError;\n }\n this._socketTimeout = requestOptions.socketTimeout;\n if (requestOptions.allowRedirects != null) {\n this._allowRedirects = requestOptions.allowRedirects;\n }\n if (requestOptions.allowRedirectDowngrade != null) {\n this._allowRedirectDowngrade = requestOptions.allowRedirectDowngrade;\n }\n if (requestOptions.maxRedirects != null) {\n this._maxRedirects = Math.max(requestOptions.maxRedirects, 0);\n }\n if (requestOptions.keepAlive != null) {\n this._keepAlive = requestOptions.keepAlive;\n }\n if (requestOptions.allowRetries != null) {\n this._allowRetries = requestOptions.allowRetries;\n }\n if (requestOptions.maxRetries != null) {\n this._maxRetries = requestOptions.maxRetries;\n }\n }\n }\n options(requestUrl, additionalHeaders) {\n return this.request('OPTIONS', requestUrl, null, additionalHeaders || {});\n }\n get(requestUrl, additionalHeaders) {\n return this.request('GET', requestUrl, null, additionalHeaders || {});\n }\n del(requestUrl, additionalHeaders) {\n return this.request('DELETE', requestUrl, null, additionalHeaders || {});\n }\n post(requestUrl, data, additionalHeaders) {\n return this.request('POST', requestUrl, data, additionalHeaders || {});\n }\n patch(requestUrl, data, additionalHeaders) {\n return this.request('PATCH', requestUrl, data, additionalHeaders || {});\n }\n put(requestUrl, data, additionalHeaders) {\n return this.request('PUT', requestUrl, data, additionalHeaders || {});\n }\n head(requestUrl, additionalHeaders) {\n return this.request('HEAD', requestUrl, null, additionalHeaders || {});\n }\n sendStream(verb, requestUrl, stream, additionalHeaders) {\n return this.request(verb, requestUrl, stream, additionalHeaders);\n }\n /**\n * Gets a typed object from an endpoint\n * Be aware that not found returns a null. Other errors (4xx, 5xx) reject the promise\n */\n async getJson(requestUrl, additionalHeaders = {}) {\n additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);\n let res = await this.get(requestUrl, additionalHeaders);\n return this._processResponse(res, this.requestOptions);\n }\n async postJson(requestUrl, obj, additionalHeaders = {}) {\n let data = JSON.stringify(obj, null, 2);\n additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);\n additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);\n let res = await this.post(requestUrl, data, additionalHeaders);\n return this._processResponse(res, this.requestOptions);\n }\n async putJson(requestUrl, obj, additionalHeaders = {}) {\n let data = JSON.stringify(obj, null, 2);\n additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);\n additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);\n let res = await this.put(requestUrl, data, additionalHeaders);\n return this._processResponse(res, this.requestOptions);\n }\n async patchJson(requestUrl, obj, additionalHeaders = {}) {\n let data = JSON.stringify(obj, null, 2);\n additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);\n additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);\n let res = await this.patch(requestUrl, data, additionalHeaders);\n return this._processResponse(res, this.requestOptions);\n }\n /**\n * Makes a raw http request.\n * All other methods such as get, post, patch, and request ultimately call this.\n * Prefer get, del, post and patch\n */\n async request(verb, requestUrl, data, headers) {\n if (this._disposed) {\n throw new Error('Client has already been disposed.');\n }\n let parsedUrl = new URL(requestUrl);\n let info = this._prepareRequest(verb, parsedUrl, headers);\n // Only perform retries on reads since writes may not be idempotent.\n let maxTries = this._allowRetries && RetryableHttpVerbs.indexOf(verb) != -1\n ? this._maxRetries + 1\n : 1;\n let numTries = 0;\n let response;\n while (numTries < maxTries) {\n response = await this.requestRaw(info, data);\n // Check if it's an authentication challenge\n if (response &&\n response.message &&\n response.message.statusCode === HttpCodes.Unauthorized) {\n let authenticationHandler;\n for (let i = 0; i < this.handlers.length; i++) {\n if (this.handlers[i].canHandleAuthentication(response)) {\n authenticationHandler = this.handlers[i];\n break;\n }\n }\n if (authenticationHandler) {\n return authenticationHandler.handleAuthentication(this, info, data);\n }\n else {\n // We have received an unauthorized response but have no handlers to handle it.\n // Let the response return to the caller.\n return response;\n }\n }\n let redirectsRemaining = this._maxRedirects;\n while (HttpRedirectCodes.indexOf(response.message.statusCode) != -1 &&\n this._allowRedirects &&\n redirectsRemaining > 0) {\n const redirectUrl = response.message.headers['location'];\n if (!redirectUrl) {\n // if there's no location to redirect to, we won't\n break;\n }\n let parsedRedirectUrl = new URL(redirectUrl);\n if (parsedUrl.protocol == 'https:' &&\n parsedUrl.protocol != parsedRedirectUrl.protocol &&\n !this._allowRedirectDowngrade) {\n throw new Error('Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.');\n }\n // we need to finish reading the response before reassigning response\n // which will leak the open socket.\n await response.readBody();\n // strip authorization header if redirected to a different hostname\n if (parsedRedirectUrl.hostname !== parsedUrl.hostname) {\n for (let header in headers) {\n // header names are case insensitive\n if (header.toLowerCase() === 'authorization') {\n delete headers[header];\n }\n }\n }\n // let's make the request with the new redirectUrl\n info = this._prepareRequest(verb, parsedRedirectUrl, headers);\n response = await this.requestRaw(info, data);\n redirectsRemaining--;\n }\n if (HttpResponseRetryCodes.indexOf(response.message.statusCode) == -1) {\n // If not a retry code, return immediately instead of retrying\n return response;\n }\n numTries += 1;\n if (numTries < maxTries) {\n await response.readBody();\n await this._performExponentialBackoff(numTries);\n }\n }\n return response;\n }\n /**\n * Needs to be called if keepAlive is set to true in request options.\n */\n dispose() {\n if (this._agent) {\n this._agent.destroy();\n }\n this._disposed = true;\n }\n /**\n * Raw request.\n * @param info\n * @param data\n */\n requestRaw(info, data) {\n return new Promise((resolve, reject) => {\n let callbackForResult = function (err, res) {\n if (err) {\n reject(err);\n }\n resolve(res);\n };\n this.requestRawWithCallback(info, data, callbackForResult);\n });\n }\n /**\n * Raw request with callback.\n * @param info\n * @param data\n * @param onResult\n */\n requestRawWithCallback(info, data, onResult) {\n let socket;\n if (typeof data === 'string') {\n info.options.headers['Content-Length'] = Buffer.byteLength(data, 'utf8');\n }\n let callbackCalled = false;\n let handleResult = (err, res) => {\n if (!callbackCalled) {\n callbackCalled = true;\n onResult(err, res);\n }\n };\n let req = info.httpModule.request(info.options, (msg) => {\n let res = new HttpClientResponse(msg);\n handleResult(null, res);\n });\n req.on('socket', sock => {\n socket = sock;\n });\n // If we ever get disconnected, we want the socket to timeout eventually\n req.setTimeout(this._socketTimeout || 3 * 60000, () => {\n if (socket) {\n socket.end();\n }\n handleResult(new Error('Request timeout: ' + info.options.path), null);\n });\n req.on('error', function (err) {\n // err has statusCode property\n // res should have headers\n handleResult(err, null);\n });\n if (data && typeof data === 'string') {\n req.write(data, 'utf8');\n }\n if (data && typeof data !== 'string') {\n data.on('close', function () {\n req.end();\n });\n data.pipe(req);\n }\n else {\n req.end();\n }\n }\n /**\n * Gets an http agent. This function is useful when you need an http agent that handles\n * routing through a proxy server - depending upon the url and proxy environment variables.\n * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com\n */\n getAgent(serverUrl) {\n let parsedUrl = new URL(serverUrl);\n return this._getAgent(parsedUrl);\n }\n _prepareRequest(method, requestUrl, headers) {\n const info = {};\n info.parsedUrl = requestUrl;\n const usingSsl = info.parsedUrl.protocol === 'https:';\n info.httpModule = usingSsl ? https : http;\n const defaultPort = usingSsl ? 443 : 80;\n info.options = {};\n info.options.host = info.parsedUrl.hostname;\n info.options.port = info.parsedUrl.port\n ? parseInt(info.parsedUrl.port)\n : defaultPort;\n info.options.path =\n (info.parsedUrl.pathname || '') + (info.parsedUrl.search || '');\n info.options.method = method;\n info.options.headers = this._mergeHeaders(headers);\n if (this.userAgent != null) {\n info.options.headers['user-agent'] = this.userAgent;\n }\n info.options.agent = this._getAgent(info.parsedUrl);\n // gives handlers an opportunity to participate\n if (this.handlers) {\n this.handlers.forEach(handler => {\n handler.prepareRequest(info.options);\n });\n }\n return info;\n }\n _mergeHeaders(headers) {\n const lowercaseKeys = obj => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCase()] = obj[k]), c), {});\n if (this.requestOptions && this.requestOptions.headers) {\n return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers));\n }\n return lowercaseKeys(headers || {});\n }\n _getExistingOrDefaultHeader(additionalHeaders, header, _default) {\n const lowercaseKeys = obj => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCase()] = obj[k]), c), {});\n let clientHeader;\n if (this.requestOptions && this.requestOptions.headers) {\n clientHeader = lowercaseKeys(this.requestOptions.headers)[header];\n }\n return additionalHeaders[header] || clientHeader || _default;\n }\n _getAgent(parsedUrl) {\n let agent;\n let proxyUrl = pm.getProxyUrl(parsedUrl);\n let useProxy = proxyUrl && proxyUrl.hostname;\n if (this._keepAlive && useProxy) {\n agent = this._proxyAgent;\n }\n if (this._keepAlive && !useProxy) {\n agent = this._agent;\n }\n // if agent is already assigned use that agent.\n if (!!agent) {\n return agent;\n }\n const usingSsl = parsedUrl.protocol === 'https:';\n let maxSockets = 100;\n if (!!this.requestOptions) {\n maxSockets = this.requestOptions.maxSockets || http.globalAgent.maxSockets;\n }\n if (useProxy) {\n // If using proxy, need tunnel\n if (!tunnel) {\n tunnel = require('tunnel');\n }\n const agentOptions = {\n maxSockets: maxSockets,\n keepAlive: this._keepAlive,\n proxy: {\n ...((proxyUrl.username || proxyUrl.password) && {\n proxyAuth: `${proxyUrl.username}:${proxyUrl.password}`\n }),\n host: proxyUrl.hostname,\n port: proxyUrl.port\n }\n };\n let tunnelAgent;\n const overHttps = proxyUrl.protocol === 'https:';\n if (usingSsl) {\n tunnelAgent = overHttps ? tunnel.httpsOverHttps : tunnel.httpsOverHttp;\n }\n else {\n tunnelAgent = overHttps ? tunnel.httpOverHttps : tunnel.httpOverHttp;\n }\n agent = tunnelAgent(agentOptions);\n this._proxyAgent = agent;\n }\n // if reusing agent across request and tunneling agent isn't assigned create a new agent\n if (this._keepAlive && !agent) {\n const options = { keepAlive: this._keepAlive, maxSockets: maxSockets };\n agent = usingSsl ? new https.Agent(options) : new http.Agent(options);\n this._agent = agent;\n }\n // if not using private agent and tunnel agent isn't setup then use global agent\n if (!agent) {\n agent = usingSsl ? https.globalAgent : http.globalAgent;\n }\n if (usingSsl && this._ignoreSslError) {\n // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process\n // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options\n // we have to cast it to any and change it directly\n agent.options = Object.assign(agent.options || {}, {\n rejectUnauthorized: false\n });\n }\n return agent;\n }\n _performExponentialBackoff(retryNumber) {\n retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber);\n const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber);\n return new Promise(resolve => setTimeout(() => resolve(), ms));\n }\n static dateTimeDeserializer(key, value) {\n if (typeof value === 'string') {\n let a = new Date(value);\n if (!isNaN(a.valueOf())) {\n return a;\n }\n }\n return value;\n }\n async _processResponse(res, options) {\n return new Promise(async (resolve, reject) => {\n const statusCode = res.message.statusCode;\n const response = {\n statusCode: statusCode,\n result: null,\n headers: {}\n };\n // not found leads to null obj returned\n if (statusCode == HttpCodes.NotFound) {\n resolve(response);\n }\n let obj;\n let contents;\n // get the result from the body\n try {\n contents = await res.readBody();\n if (contents && contents.length > 0) {\n if (options && options.deserializeDates) {\n obj = JSON.parse(contents, HttpClient.dateTimeDeserializer);\n }\n else {\n obj = JSON.parse(contents);\n }\n response.result = obj;\n }\n response.headers = res.message.headers;\n }\n catch (err) {\n // Invalid resource (contents not json); leaving result obj null\n }\n // note that 3xx redirects are handled by the http layer.\n if (statusCode > 299) {\n let msg;\n // if exception/error in body, attempt to get better error\n if (obj && obj.message) {\n msg = obj.message;\n }\n else if (contents && contents.length > 0) {\n // it may be the case that the exception is in the body message as string\n msg = contents;\n }\n else {\n msg = 'Failed request: (' + statusCode + ')';\n }\n let err = new HttpClientError(msg, statusCode);\n err.result = response.result;\n reject(err);\n }\n else {\n resolve(response);\n }\n });\n }\n}\nexports.HttpClient = HttpClient;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nfunction getProxyUrl(reqUrl) {\n let usingSsl = reqUrl.protocol === 'https:';\n let proxyUrl;\n if (checkBypass(reqUrl)) {\n return proxyUrl;\n }\n let proxyVar;\n if (usingSsl) {\n proxyVar = process.env['https_proxy'] || process.env['HTTPS_PROXY'];\n }\n else {\n proxyVar = process.env['http_proxy'] || process.env['HTTP_PROXY'];\n }\n if (proxyVar) {\n proxyUrl = new URL(proxyVar);\n }\n return proxyUrl;\n}\nexports.getProxyUrl = getProxyUrl;\nfunction checkBypass(reqUrl) {\n if (!reqUrl.hostname) {\n return false;\n }\n let noProxy = process.env['no_proxy'] || process.env['NO_PROXY'] || '';\n if (!noProxy) {\n return false;\n }\n // Determine the request port\n let reqPort;\n if (reqUrl.port) {\n reqPort = Number(reqUrl.port);\n }\n else if (reqUrl.protocol === 'http:') {\n reqPort = 80;\n }\n else if (reqUrl.protocol === 'https:') {\n reqPort = 443;\n }\n // Format the request hostname and hostname with port\n let upperReqHosts = [reqUrl.hostname.toUpperCase()];\n if (typeof reqPort === 'number') {\n upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`);\n }\n // Compare request host against noproxy\n for (let upperNoProxyItem of noProxy\n .split(',')\n .map(x => x.trim().toUpperCase())\n .filter(x => x)) {\n if (upperReqHosts.some(x => x === upperNoProxyItem)) {\n return true;\n }\n }\n return false;\n}\nexports.checkBypass = checkBypass;\n","module.exports = require('./lib/tunnel');\n","'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('got illegal response body from proxy');\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n debug('tunneling connection has established');\n self.sockets[self.sockets.indexOf(placeholder)] = socket;\n return cb(socket);\n }\n\n function onError(cause) {\n connectReq.removeAllListeners();\n\n debug('tunneling socket could not be established, cause=%s\\n',\n cause.message, cause.stack);\n var error = new Error('tunneling socket could not be established, ' +\n 'cause=' + cause.message);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n }\n};\n\nTunnelingAgent.prototype.removeSocket = function removeSocket(socket) {\n var pos = this.sockets.indexOf(socket)\n if (pos === -1) {\n return;\n }\n this.sockets.splice(pos, 1);\n\n var pending = this.requests.shift();\n if (pending) {\n // If we have pending requests and a socket gets closed a new one\n // needs to be created to take over in the pool for the one that closed.\n this.createSocket(pending, function(socket) {\n pending.request.onSocket(socket);\n });\n }\n};\n\nfunction createSecureSocket(options, cb) {\n var self = this;\n TunnelingAgent.prototype.createSocket.call(self, options, function(socket) {\n var hostHeader = options.request.getHeader('host');\n var tlsOptions = mergeOptions({}, self.options, {\n socket: socket,\n servername: hostHeader ? hostHeader.replace(/:.*$/, '') : options.host\n });\n\n // 0 is dummy port for v0.6\n var secureSocket = tls.connect(0, tlsOptions);\n self.sockets[self.sockets.indexOf(socket)] = secureSocket;\n cb(secureSocket);\n });\n}\n\n\nfunction toOptions(host, port, localAddress) {\n if (typeof host === 'string') { // since v0.10\n return {\n host: host,\n port: port,\n localAddress: localAddress\n };\n }\n return host; // for v0.11 or later\n}\n\nfunction mergeOptions(target) {\n for (var i = 1, len = arguments.length; i < len; ++i) {\n var overrides = arguments[i];\n if (typeof overrides === 'object') {\n var keys = Object.keys(overrides);\n for (var j = 0, keyLen = keys.length; j < keyLen; ++j) {\n var k = keys[j];\n if (overrides[k] !== undefined) {\n target[k] = overrides[k];\n }\n }\n }\n }\n return target;\n}\n\n\nvar debug;\nif (process.env.NODE_DEBUG && /\\btunnel\\b/.test(process.env.NODE_DEBUG)) {\n debug = function() {\n var args = Array.prototype.slice.call(arguments);\n if (typeof args[0] === 'string') {\n args[0] = 'TUNNEL: ' + args[0];\n } else {\n args.unshift('TUNNEL:');\n }\n console.error.apply(console, args);\n }\n} else {\n debug = function() {};\n}\nexports.debug = debug; // for test\n","var rng = require('./lib/rng');\nvar bytesToUuid = require('./lib/bytesToUuid');\n\nfunction v4(options, buf, offset) {\n var i = buf && offset || 0;\n\n if (typeof(options) == 'string') {\n buf = options === 'binary' ? new Array(16) : null;\n options = null;\n }\n options = options || {};\n\n var rnds = options.random || (options.rng || rng)();\n\n // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n rnds[6] = (rnds[6] & 0x0f) | 0x40;\n rnds[8] = (rnds[8] & 0x3f) | 0x80;\n\n // Copy bytes to buffer, if provided\n if (buf) {\n for (var ii = 0; ii < 16; ++ii) {\n buf[i + ii] = rnds[ii];\n }\n }\n\n return buf || bytesToUuid(rnds);\n}\n\nmodule.exports = v4;\n","// Unique ID creation requires a high quality random # generator. In node.js\n// this is pretty straight-forward - we use the crypto API.\n\nvar crypto = require('crypto');\n\nmodule.exports = function nodeRNG() {\n return crypto.randomBytes(16);\n};\n","/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\nvar byteToHex = [];\nfor (var i = 0; i < 256; ++i) {\n byteToHex[i] = (i + 0x100).toString(16).substr(1);\n}\n\nfunction bytesToUuid(buf, offset) {\n var i = offset || 0;\n var bth = byteToHex;\n // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4\n return ([\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]]\n ]).join('');\n}\n\nmodule.exports = bytesToUuid;\n",null,null,"'use strict';\nconst fs = require('fs');\nconst path = require('path');\nconst crypto = require('crypto');\nconst isStream = require('is-stream');\n\nconst {Worker} = (() => {\n\ttry {\n\t\treturn require('worker_threads');\n\t} catch (_) {\n\t\treturn {};\n\t}\n})();\n\nlet worker; // Lazy\nlet taskIdCounter = 0;\nconst tasks = new Map();\n\nconst recreateWorkerError = sourceError => {\n\tconst error = new Error(sourceError.message);\n\n\tfor (const [key, value] of Object.entries(sourceError)) {\n\t\tif (key !== 'message') {\n\t\t\terror[key] = value;\n\t\t}\n\t}\n\n\treturn error;\n};\n\nconst createWorker = () => {\n\tworker = new Worker(path.join(__dirname, 'thread.js'));\n\n\tworker.on('message', message => {\n\t\tconst task = tasks.get(message.id);\n\t\ttasks.delete(message.id);\n\n\t\tif (tasks.size === 0) {\n\t\t\tworker.unref();\n\t\t}\n\n\t\tif (message.error === undefined) {\n\t\t\ttask.resolve(message.value);\n\t\t} else {\n\t\t\ttask.reject(recreateWorkerError(message.error));\n\t\t}\n\t});\n\n\tworker.on('error', error => {\n\t\t// Any error here is effectively an equivalent of segfault, and have no scope, so we just throw it on callback level\n\t\tthrow error;\n\t});\n};\n\nconst taskWorker = (method, args, transferList) => new Promise((resolve, reject) => {\n\tconst id = taskIdCounter++;\n\ttasks.set(id, {resolve, reject});\n\n\tif (worker === undefined) {\n\t\tcreateWorker();\n\t}\n\n\tworker.ref();\n\tworker.postMessage({id, method, args}, transferList);\n});\n\nconst hasha = (input, options = {}) => {\n\tlet outputEncoding = options.encoding || 'hex';\n\n\tif (outputEncoding === 'buffer') {\n\t\toutputEncoding = undefined;\n\t}\n\n\tconst hash = crypto.createHash(options.algorithm || 'sha512');\n\n\tconst update = buffer => {\n\t\tconst inputEncoding = typeof buffer === 'string' ? 'utf8' : undefined;\n\t\thash.update(buffer, inputEncoding);\n\t};\n\n\tif (Array.isArray(input)) {\n\t\tinput.forEach(update);\n\t} else {\n\t\tupdate(input);\n\t}\n\n\treturn hash.digest(outputEncoding);\n};\n\nhasha.stream = (options = {}) => {\n\tlet outputEncoding = options.encoding || 'hex';\n\n\tif (outputEncoding === 'buffer') {\n\t\toutputEncoding = undefined;\n\t}\n\n\tconst stream = crypto.createHash(options.algorithm || 'sha512');\n\tstream.setEncoding(outputEncoding);\n\treturn stream;\n};\n\nhasha.fromStream = async (stream, options = {}) => {\n\tif (!isStream(stream)) {\n\t\tthrow new TypeError('Expected a stream');\n\t}\n\n\treturn new Promise((resolve, reject) => {\n\t\t// TODO: Use `stream.pipeline` and `stream.finished` when targeting Node.js 10\n\t\tstream\n\t\t\t.on('error', reject)\n\t\t\t.pipe(hasha.stream(options))\n\t\t\t.on('error', reject)\n\t\t\t.on('finish', function () {\n\t\t\t\tresolve(this.read());\n\t\t\t});\n\t});\n};\n\nif (Worker === undefined) {\n\thasha.fromFile = async (filePath, options) => hasha.fromStream(fs.createReadStream(filePath), options);\n\thasha.async = async (input, options) => hasha(input, options);\n} else {\n\thasha.fromFile = async (filePath, {algorithm = 'sha512', encoding = 'hex'} = {}) => {\n\t\tconst hash = await taskWorker('hashFile', [algorithm, filePath]);\n\n\t\tif (encoding === 'buffer') {\n\t\t\treturn Buffer.from(hash);\n\t\t}\n\n\t\treturn Buffer.from(hash).toString(encoding);\n\t};\n\n\thasha.async = async (input, {algorithm = 'sha512', encoding = 'hex'} = {}) => {\n\t\tif (encoding === 'buffer') {\n\t\t\tencoding = undefined;\n\t\t}\n\n\t\tconst hash = await taskWorker('hash', [algorithm, input]);\n\n\t\tif (encoding === undefined) {\n\t\t\treturn Buffer.from(hash);\n\t\t}\n\n\t\treturn Buffer.from(hash).toString(encoding);\n\t};\n}\n\nhasha.fromFileSync = (filePath, options) => hasha(fs.readFileSync(filePath), options);\n\nmodule.exports = hasha;\n","const core = require('@actions/core')\r\nconst child_process = require('child_process')\r\nconst fs = require('fs')\r\nconst path = require('path')\r\nconst process = require('process')\r\n\r\nconst PROGRAM_FILES_X86 = process.env['ProgramFiles(x86)']\r\n\r\nconst EDITIONS = ['Enterprise', 'Professional', 'Community']\r\nconst VERSIONS = ['2019', '2017']\r\n\r\nconst VSWHERE_PATH = `${PROGRAM_FILES_X86}\\\\Microsoft Visual Studio\\\\Installer`\r\n\r\nfunction findWithVswhere(pattern) {\r\n try {\r\n let installationPath = child_process.execSync(`vswhere -products * -latest -prerelease -property installationPath`).toString().trim()\r\n return installationPath + '\\\\' + pattern\r\n } catch (e) {\r\n core.warning(`vswhere failed: ${e}`)\r\n }\r\n return null\r\n}\r\n\r\nfunction findVcvarsall() {\r\n // If vswhere is available, ask it about the location of the latest Visual Studio.\r\n let path = findWithVswhere('VC\\\\Auxiliary\\\\Build\\\\vcvarsall.bat')\r\n if (path && fs.existsSync(path)) {\r\n core.info(`Found with vswhere: ${path}`)\r\n return path\r\n }\r\n core.info(\"Not found with vswhere\")\r\n\r\n // If that does not work, try the standard installation locations,\r\n // starting with the latest and moving to the oldest.\r\n for (const ver of VERSIONS) {\r\n for (const ed of EDITIONS) {\r\n path = `${PROGRAM_FILES_X86}\\\\Microsoft Visual Studio\\\\${ver}\\\\${ed}\\\\VC\\\\Auxiliary\\\\Build\\\\vcvarsall.bat`\r\n core.info(`Trying standard location: ${path}`)\r\n if (fs.existsSync(path)) {\r\n core.info(`Found standard location: ${path}`)\r\n return path\r\n }\r\n }\r\n }\r\n core.info(\"Not found in standard locations\")\r\n\r\n // Special case for Visual Studio 2015 (and maybe earlier), try it out too.\r\n path = `${PROGRAM_FILES_X86}\\\\Microsoft Visual C++ Build Tools\\\\vcbuildtools.bat`\r\n if (fs.existsSync(path)) {\r\n core.info(`Found VS 2015: ${path}`)\r\n return path\r\n }\r\n core.info(`Not found in VS 2015 location: ${path}`)\r\n\r\n throw new Error('Microsoft Visual Studio not found')\r\n}\r\n\r\nfunction isPathVariable(name) {\r\n const pathLikeVariables = ['PATH', 'INCLUDE', 'LIB', 'LIBPATH']\r\n return pathLikeVariables.indexOf(name.toUpperCase()) != -1\r\n}\r\n\r\nfunction filterPathValue(path) {\r\n let paths = path.split(';')\r\n // Remove duplicates by keeping the first occurance and preserving order.\r\n // This keeps path shadowing working as intended.\r\n function unique(value, index, self) {\r\n return self.indexOf(value) === index\r\n }\r\n return paths.filter(unique).join(';')\r\n}\r\n\r\n/** See https://github.com/ilammy/msvc-dev-cmd#inputs */\r\nfunction setupMSVCDevCmd(arch, sdk, toolset, uwp, spectre) {\r\n if (process.platform != 'win32') {\r\n core.info('This is not a Windows virtual environment, bye!')\r\n return\r\n }\r\n\r\n // Add standard location of \"vswhere\" to PATH, in case it's not there.\r\n process.env.PATH += path.delimiter + VSWHERE_PATH\r\n\r\n // There are all sorts of way the architectures are called. In addition to\r\n // values supported by Microsoft Visual C++, recognize some common aliases.\r\n let arch_aliases = {\r\n \"win32\": \"x86\",\r\n \"win64\": \"x64\",\r\n \"x86_64\": \"x64\",\r\n \"x86-64\": \"x64\",\r\n }\r\n // Ignore case when matching as that's what humans expect.\r\n if (arch.toLowerCase() in arch_aliases) {\r\n arch = arch_aliases[arch.toLowerCase()]\r\n }\r\n\r\n // Due to the way Microsoft Visual C++ is configured, we have to resort to the following hack:\r\n // Call the configuration batch file and then output *all* the environment variables.\r\n\r\n var args = [arch]\r\n if (uwp == 'true') {\r\n args.push('uwp')\r\n }\r\n if (sdk) {\r\n args.push(sdk)\r\n }\r\n if (toolset) {\r\n args.push(`-vcvars_ver=${toolset}`)\r\n }\r\n if (spectre == 'true') {\r\n args.push('-vcvars_spectre_libs=spectre')\r\n }\r\n\r\n const vcvars = `\"${findVcvarsall()}\" ${args.join(' ')}`\r\n core.debug(`vcvars command-line: ${vcvars}`)\r\n\r\n const cmd_output_string = child_process.execSync(`set && cls && ${vcvars} && cls && set`, {shell: \"cmd\"}).toString()\r\n const cmd_output_parts = cmd_output_string.split('\\f')\r\n\r\n const old_environment = cmd_output_parts[0].split('\\r\\n')\r\n const vcvars_output = cmd_output_parts[1].split('\\r\\n')\r\n const new_environment = cmd_output_parts[2].split('\\r\\n')\r\n\r\n // If vsvars.bat is given an incorrect command line, it will print out\r\n // an error and *still* exit successfully. Parse out errors from output\r\n // which don't look like environment variables, and fail if appropriate.\r\n const error_messages = vcvars_output.filter((line) => {\r\n if (line.match(/^\\[ERROR.*\\]/)) {\r\n // Don't print this particular line which will be confusing in output.\r\n if (!line.match(/Error in script usage. The correct usage is:$/)) {\r\n return true\r\n }\r\n }\r\n return false\r\n })\r\n if (error_messages.length > 0) {\r\n throw new Error('invalid parameters' + '\\r\\n' + error_messages.join('\\r\\n'))\r\n }\r\n\r\n // Convert old environment lines into a dictionary for easier lookup.\r\n let old_env_vars = {}\r\n for (let string of old_environment) {\r\n const [name, value] = string.split('=')\r\n old_env_vars[name] = value\r\n }\r\n\r\n // Now look at the new environment and export everything that changed.\r\n // These are the variables set by vsvars.bat. Also export everything\r\n // that was not there during the first sweep: those are new variables.\r\n core.startGroup('Environment variables')\r\n for (let string of new_environment) {\r\n // vsvars.bat likes to print some fluff at the beginning.\r\n // Skip lines that don't look like environment variables.\r\n if (!string.includes('=')) {\r\n continue;\r\n }\r\n let [name, new_value] = string.split('=')\r\n let old_value = old_env_vars[name]\r\n // For new variables \"old_value === undefined\".\r\n if (new_value !== old_value) {\r\n core.info(`Setting ${name}`)\r\n // Special case for a bunch of PATH-like variables: vcvarsall.bat\r\n // just prepends its stuff without checking if its already there.\r\n // This makes repeated invocations of this action fail after some\r\n // point, when the environment variable overflows. Avoid that.\r\n if (isPathVariable(name)) {\r\n new_value = filterPathValue(new_value)\r\n }\r\n core.exportVariable(name, new_value)\r\n }\r\n }\r\n core.endGroup()\r\n\r\n core.info(`Configured Developer Command Prompt`)\r\n}\r\nexports.setupMSVCDevCmd = setupMSVCDevCmd\r\n\r\nfunction main() {\r\n var arch = core.getInput('arch')\r\n const sdk = core.getInput('sdk')\r\n const toolset = core.getInput('toolset')\r\n const uwp = core.getInput('uwp')\r\n const spectre = core.getInput('spectre')\r\n\r\n setupMSVCDevCmd(arch, sdk, toolset, uwp, spectre)\r\n}\r\n\r\ntry {\r\n main()\r\n}\r\ncatch (e) {\r\n core.setFailed('Could not setup Developer Command Prompt: ' + e.message)\r\n}\r\n",null,null,null,null,"'use strict';\nconst os = require('os');\n\nconst homeDirectory = os.homedir();\n\nmodule.exports = pathWithTilde => {\n\tif (typeof pathWithTilde !== 'string') {\n\t\tthrow new TypeError(`Expected a string, got ${typeof pathWithTilde}`);\n\t}\n\n\treturn homeDirectory ? pathWithTilde.replace(/^~(?=$|\\/|\\\\)/, homeDirectory) : pathWithTilde;\n};\n","import { setupPipPack } from \"../utils/setup/setupPipPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupConan(version: string | undefined, _setupCppDir: string, _arch: string) {\n return setupPipPack(\"conan\", version)\n}\n","import { setupPipPack } from \"../utils/setup/setupPipPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupMeson(version: string | undefined, _setupCppDir: string, _arch: string) {\n return setupPipPack(\"meson\", version)\n}\n","import { setupPipPack } from \"../utils/setup/setupPipPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupGcovr(version: string | undefined, _setupCppDir: string, _arch: string) {\n return setupPipPack(\"gcovr\", version)\n}\n","import { addPath } from \"../utils/path/addPath\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupOpencppcoverage(version: string | undefined, _setupCppDir: string, _arch: string) {\n if (process.platform !== \"win32\") {\n return\n }\n await setupChocoPack(\"opencppcoverage\", version)\n const binDir = \"C:/Program Files/OpenCppCoverage\"\n await addPath(binDir)\n return { binDir }\n}\n","import { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupCcache(version: string, _setupCppDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n return setupChocoPack(\"ccache\", version)\n }\n case \"darwin\": {\n return setupBrewPack(\"ccache\", version)\n }\n case \"linux\": {\n return setupAptPack(\"ccache\", version)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { addPath } from \"../utils/path/addPath\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupDoxygen(version: string | undefined, _setupCppDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n await setupChocoPack(\"doxygen.install\", version)\n await setupChocoPack(\"graphviz\", version)\n await addPath(\"C:/Program Files/Graphviz/bin\")\n const binDir = \"C:/Program Files/doxygen/bin\"\n await addPath(binDir)\n return { binDir }\n }\n case \"darwin\": {\n setupBrewPack(\"doxygen\", version)\n return setupBrewPack(\"graphviz\", version)\n }\n case \"linux\": {\n await setupAptPack(\"doxygen\", version)\n return setupAptPack(\"graphviz\", version)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { addPath } from \"../utils/path/addPath\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupCppcheck(version: string | undefined, _setupCppDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n await setupChocoPack(\"cppcheck\", version)\n const binDir = \"C:/Program Files/Cppcheck\"\n await addPath(binDir)\n return { binDir }\n }\n case \"darwin\": {\n return setupBrewPack(\"cppcheck\", version)\n }\n case \"linux\": {\n return setupAptPack(\"cppcheck\", version)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n"],"names":["$f8af4289d8ca9e73$var$isexe","path","options","cb","Promise","TypeError","resolve","reject","er","is","$f8af4289d8ca9e73$var$core","code","ignoreErrors","$ee44094b0ce40db3$export$80e483d773064391","_version","_setupCppDir","_arch","includes","process","platform","$ee44094b0ce40db3$var$binDir","maybeBinDir","$parcel$interopDefault","$36da3a1038e77300$exports","sync","nothrow","$3U0nv$path","dirname","$3U0nv$child_process","execFileSync","stdio","$9c96c19a4bceb1f0$var$resolveCommandAttempt","parsed","withoutPathExt","env","cwd","hasCustomCwd","shouldSwitchCwd","undefined","chdir","disabled","err","resolved","command","$25914d0b552b8416$exports","pathExt","delimiter","e","$43e248ca34798005$var$notFoundError","original","syscall","Object","assign","Error","errno","spawnargs","args","$43e248ca34798005$var$verifyENOENT","status","$43e248ca34798005$var$isWin","file","$41c6ec4dbf52b862$var$spawn","$cc3250f0d1cc3019$exports","spawned","spawn","$43e248ca34798005$exports","hookChildProcess","$1b016d3820a9e1fb$var$unload","$1b016d3820a9e1fb$var$loaded","forEach","sig","removeListener","$1b016d3820a9e1fb$var$sigListeners","emit","$1b016d3820a9e1fb$var$originalProcessEmit","reallyExit","$1b016d3820a9e1fb$var$originalProcessReallyExit","$1b016d3820a9e1fb$var$emitter","count","$1b016d3820a9e1fb$var$emit","event","signal","emitted","$1b016d3820a9e1fb$var$load","filter","on","$1b016d3820a9e1fb$var$processEmit","$1b016d3820a9e1fb$var$processReallyExit","exitCode","call","ev","arg","ret","apply","this","arguments","$aca27b1924527bc3$var$getStream","inputStream","maxBuffer","Infinity","stream","$d43cdcba2540f772$exports","rejectPromise","error","getBufferedLength","$aca27b1924527bc3$require$BufferConstants","MAX_LENGTH","bufferedData","getBufferedValue","$aca27b1924527bc3$var$streamPipelinePromisified","$aca27b1924527bc3$var$MaxBufferError","$13dd793dec60e501$export$3facfc9dd87fb850","name","version","repository","apt","$cc47f4e6f3d32c78$exports","$13dd793dec60e501$var$didUpdate","binDir","$1c9ab043a2b6cc59$export$698568e794d5249f","$1c9ab043a2b6cc59$var$hasBrew","$3f76876b48282571$export$82747387e53cecaa","$6FGZZ","addPath","info","PATH","$a9f3b01a430d25e5$export$1e92c536ef588459","$a9f3b01a430d25e5$var$binDir","commandSync","maybeChoco","$3U0nv$fs","existsSync","$6b27956e33e7a968$export$50c32c11cefe4e9f","$6b27956e33e7a968$var$hasChoco","$8d6c57753101e07a$var$exec","commandLine","commandArgs","$8d6c57753101e07a$var$tr","argStringToArray","length","toolPath","slice","concat","ToolRunner","exec","$fbdecc6eadfe47c2$var$findAllVersions","toolName","arch","versions","$fbdecc6eadfe47c2$var$os","$fbdecc6eadfe47c2$var$path","join","$fbdecc6eadfe47c2$var$_getCacheDirectory","$fbdecc6eadfe47c2$var$fs","children","readdirSync","child","$fbdecc6eadfe47c2$var$isExplicitVersion","fullPath","push","$fbdecc6eadfe47c2$var$_createExtractFolder","dest","$fbdecc6eadfe47c2$var$_getTempDirectory","$fbdecc6eadfe47c2$var$v4_1","default","$fbdecc6eadfe47c2$var$io","mkdirP","$fbdecc6eadfe47c2$var$_createToolPath","tool","folderPath","$fbdecc6eadfe47c2$var$semver","clean","$fbdecc6eadfe47c2$var$core","debug","markerPath","rmRF","$fbdecc6eadfe47c2$var$_completeToolPath","writeFileSync","versionSpec","c","valid","$fbdecc6eadfe47c2$var$evaluateVersions","i","sort","a","b","gt","potential","satisfies","cacheDirectory","$3U0nv$assert","ok","tempDirectory","$fbdecc6eadfe47c2$var$_getGlobal","key","defaultValue","value","$parcel$global","$f5c161df7ab7d525$export$97748eae293469f0","getPackageInfo","setupCppDir","_RUNNER_TEMP","_RUNNER_TOOL_CACH","RUNNER_TEMP","$3U0nv$os","tmpdir","RUNNER_TOOL_CACHE","RUNNER_TOOL_CACH","url","binRelativeDir","extractedFolderName","extractFunction","dir","$fbdecc6eadfe47c2$exports","find","installDir","$e68279e3338bc371$exports","async","algorithm","rootDir","downloaded","downloadTool","cacheDir","$d40f2b84e4520e56$var$getCmakePackageInfo","ref","semVersion","$5M2Mq","platformStr","getInput","isOld","$ju11K","osArchStr","folderName","extractZip","extractTar","$20ba577a744e9e96$export$ceb9c2d7a4f63acc","sourceName","targetName","setExecutable","sourcePath","targetPath","symlinkSync","$20ba577a744e9e96$export$b6afdf548cce3a42","chmodSync","$20ba577a744e9e96$export$9bc8f45691b95052","$20ba577a744e9e96$export$a8cf3209e098ef45","$hBwzM","validRange","pypyVersion","$f022661c7ba1f0db$var$usePyPy","majorVersion","architecture","findPyPy","bind","_binDir","exportVariable","impl","setOutput","$f022661c7ba1f0db$var$versionFromPath","parts","split","sep","idx","findIndex","part","$36577581e049d94c$export$8c67d7fc35de7958","$36577581e049d94c$export$acc94c5223ff25f0","replace","$36577581e049d94c$export$c6639e8493cb127","releases","files","item","$20ba577a744e9e96$export$9cadc82215ebe904","$20ba577a744e9e96$export$64a6690eaf7c329","$36577581e049d94c$export$d85e7c823fa73d0d","$419624936a2d1758$export$ed762e2824bae281","CI","$ca400c34eccdb57a$export$44f2938a3d4c6806","$ca400c34eccdb57a$export$d395cd30fbb6736a","startsWith","installed","resolvedPyPyVersion","resolvedPythonVersion","pypyVersionSpec","pythonVersion","test","$588899e011391f63$export$2b5406d6a9a13bbc","$588899e011391f63$export$2da61456f93be513","basename","$20ba577a744e9e96$export$4b4f4b982a2ffe07","fileVersion","readFileSync","$20ba577a744e9e96$export$6f314ebc3b60c941","$588899e011391f63$export$34f0d1e2635db91b","downloadDir","http","$9AGbw","HttpClient","response","getJson","result","$36577581e049d94c$var$getAvailablePyPyVersions","releaseData","filterReleases","isPythonVersionSatisfied","coerce","python_version","isPyPyVersionSatisfied","pypy_version","isArchPresent","some","$36577581e049d94c$export$b4c35c3de1bb74e3","$36577581e049d94c$export$c8431f03a51e60bd","foundRelease","previous","current","compare","$36577581e049d94c$export$596d3412b21fc15f","foundAsset","downloadUrl","download_url","pypyPath","archiveName","toolDir","pypyFilePath","$20ba577a744e9e96$export$52096b3724e0cb70","binaryPath","pypyBinaryPath","pythonBinaryPostfix","major","pypyBinaryPostfix","binaryExtension","$36577581e049d94c$var$createPyPySymlink","pythonLocation","pythonBinary","$8d6c57753101e07a$exports","$36577581e049d94c$var$installPip","$36577581e049d94c$export$14ff1a21eed93571","$588899e011391f63$export$cba4b335bf603792","toUpperCase","semanticVersionSpec","endsWith","manifest","getManifestFromRepo","$655628f797e4869d$var$AUTH","findFromManifest","$655628f797e4869d$export$138d6544552d0d44","release","pythonPath","pythonExtractedFolder","workingDirectory","$20ba577a744e9e96$export$ce1daefa7994a9d0","LD_LIBRARY_PATH","silent","listeners","stdout","data","trim","stderr","$655628f797e4869d$var$installPython","$655628f797e4869d$export$2705050b37fec3c","$655628f797e4869d$export$4f76c28790455076","EOL","libPath","pyLibPath","$f022661c7ba1f0db$var$binDir","version1","minor","userScriptsDir","$f022661c7ba1f0db$var$useCpythonVersion","$f022661c7ba1f0db$export$1cecbd6a84583d9c","matchersPath","installInfo","$09efbe6c03c5e8c7$export$7a973c5043caaa2","$3U0nv$https","get","res","statusCode","$cc05105aff3c1e34$export$e258427b01a4f9","$cc05105aff3c1e34$var$pip","givenFile","targetVersion","versionRegex","givenVersion","ref1","getExecOutput","ref2","match","console","$1bd49ae4b85c403c$export$afe0511abe6ee3d2","$1wyqe","$1bd49ae4b85c403c$export$8c44dcfae252b9ed","$cc05105aff3c1e34$var$binDir","$a016715d3f18f117$export$8d5b126e4b80c6cb","$a016715d3f18f117$export$a18ed1c85be027cc","flags","$q05Mr","$ecc64fd197c4357d$var$getGitHubUrl","prefix","suffix","$ecc64fd197c4357d$var$getReleaseUrl","$ecc64fd197c4357d$export$18a6cfbf25963f89","$ecc64fd197c4357d$var$DARWIN_MISSING","has","$ecc64fd197c4357d$var$getDarwinUrl","versionGiven","rc","$ecc64fd197c4357d$var$UBUNTU_RC","ubuntu","$ecc64fd197c4357d$var$UBUNTU","$ecc64fd197c4357d$var$getLinuxUrl","$ecc64fd197c4357d$var$WIN32_MISSING","olderThan9_1","fallback","$ecc64fd197c4357d$var$getWin32Url","$ecc64fd197c4357d$var$getLLVMPackageInfo","specificVersion","getUrl","semversion","Array","from","v","reverse","$1bd49ae4b85c403c$export$e931c90ac13970ac","$1bd49ae4b85c403c$export$fa70b3b14f4c526f","$ecc64fd197c4357d$export$af592c7790e0a325","$ecc64fd197c4357d$export$3a1c6393858a80d7","directory","installationInfo","lib","_LD_LIBRARY_PATH","ld","_DYLD_LIBRARY_PATH","dyld","DYLD_LIBRARY_PATH","llvmMajor","$k3zcS","xcrun","sdkroot","$4181a77ac5f8ec9b$export$966b4aa3adf6692d","sdk","uwp","spectre","toolset","VCTargetsPath","setupMSVCDevCmd","parcelRequire","$4181a77ac5f8ec9b$var$getArch","$427622416622ca4f$var$getNinjaPackageInfo","ninjaPlatform","$427622416622ca4f$var$getNinjaPlatform","$57aef85c779683b0$var$toArr","any","isArray","$57aef85c779683b0$var$toVal","out","val","opts","x","old","nxt","string","indexOf","String","boolean","_","$f66466a1fc9f3b2a$export$2763ddd825e0c80d","$f66466a1fc9f3b2a$var$DefaultVersions","$cc0d561bc6dacbdc$export$ee0e00e9eebd0473","$67e22ba8b9f0eedf$export$ee1d219d24aa76a7","log","$6e0c5961feb4ff1d$export$cc99187a73fc5866","ACTIONS_ALLOW_UNSECURE_COMMANDS","k","arr","j","len","alibi","alias","strict","unknown","defaults","splice","keys","charCodeAt","substring","repeat","shift","$57aef85c779683b0$export$9099ad97b570f7c","$6e0c5961feb4ff1d$var$inputs","fromEntries","map","inp","$6e0c5961feb4ff1d$var$maybeGetInput","h","_architecture","help","_SETUP_CPP_DIR","SETUP_CPP_DIR","$6db0685353f69c12$exports","successMessages","errorMessages","$6e0c5961feb4ff1d$var$tools","setupFunction","$6e0c5961feb4ff1d$var$setups","$6e0c5961feb4ff1d$var$getSuccessMessage","maybeCompiler","compiler","compilerAndMaybeVersion","maybeVersion","$1JJDJ","tool1","$67e22ba8b9f0eedf$export$e62dab7d9fa2e29e","msg","toLowerCase","$4db7ed1a4fdd712a$var$getInput","required","trimWhitespace","$4db7ed1a4fdd712a$var$error","message","properties","$eOxkI","issueCommand","$lK3O3","toCommandProperties","$4db7ed1a4fdd712a$var$startGroup","issue","$4db7ed1a4fdd712a$var$endGroup","$4db7ed1a4fdd712a$var$os","$4db7ed1a4fdd712a$var$__importStar","$4db7ed1a4fdd712a$var$path","$4db7ed1a4fdd712a$var$ExitCode","ExitCode","module","exports","convertedVal","toCommandValue","$85a1M","setSecret","secret","inputPath","getMultilineInput","getBooleanInput","write","setCommandEcho","enabled","setFailed","Failure","isDebug","warning","notice","startGroup","endGroup","group","fn","saveState","getState","$ac8f977adbabca24$var$issueCommand","cmd","$ac8f977adbabca24$var$Command","$ac8f977adbabca24$var$os","$ac8f977adbabca24$var$__importStar","toString","cmdStr","first","hasOwnProperty","s","$ac8f977adbabca24$var$escapeData","input","JSON","stringify","annotationProperties","title","line","startLine","endLine","col","startColumn","endColumn","$5e2691ad996aa9ad$var$fs","$5e2691ad996aa9ad$var$__importStar","$5e2691ad996aa9ad$var$os","filePath","appendFileSync","encoding","$36da3a1038e77300$var$isWindows","OSTYPE","$36da3a1038e77300$var$COLON","$402f7bbe371b7b24$var$checkStat","stat","isSymbolicLink","isFile","pathext","PATHEXT","p","substr","$402f7bbe371b7b24$var$checkPathExt","$402f7bbe371b7b24$var$isexe","statSync","$eae5e8c11b388e10$var$isexe","$eae5e8c11b388e10$var$checkStat","mod","mode","uid","gid","myUid","getuid","myGid","getgid","u","parseInt","g","ug","$eae5e8c11b388e10$var$checkMode","TESTING_WINDOWS","$f8af4289d8ca9e73$exports","$36da3a1038e77300$var$getNotFoundError","$36da3a1038e77300$var$getPathInfo","opt","colon","pathEnv","pathExtExe","unshift","$36da3a1038e77300$var$which","found","step","all","ppRaw","pathPart","pCmd","subStep","ii","ext","then","cur","ex","$25914d0b552b8416$var$pathKey","environment","$94354d2cab6ec3bb$export$8763c7eee5203db","$94354d2cab6ec3bb$export$f2fa5ff1855a55aa","$9c96c19a4bceb1f0$exports","doubleEscapeMetaChars","$14af8c52f3b995d0$exports","argument","binary","pop","$0c9f218fc7700aad$exports","buffer","Buffer","alloc","fd","openSync","readSync","closeSync","$cc3250f0d1cc3019$var$isWin","$cc3250f0d1cc3019$var$isExecutableRegExp","$cc3250f0d1cc3019$var$isCmdShimRegExp","shell","commandFile","shebang","$cc3250f0d1cc3019$var$detectShebang","needsShell","forceShell","needsDoubleEscapeMetaChars","normalize","shellCommand","comspec","windowsVerbatimArguments","$cc3250f0d1cc3019$var$parseNonShell","cp","originalEmit","arg1","$41c6ec4dbf52b862$exports","spawnSync","verifyENOENTSync","_parse","_enoent","$c6ee39b3affa8683$exports","CR","$759278668954c515$var$npmRunPath","execPath","cwdPath","execPathDir","$759278668954c515$exports","$0a664e467f796e7e$var$mimicFn","to","prop","Reflect","ownKeys","defineProperty","getOwnPropertyDescriptor","$0a664e467f796e7e$exports","$4c38ff914fe1d89a$var$calledFunctions","WeakMap","$4c38ff914fe1d89a$var$onetime","function_","returnValue","callCount","functionName","displayName","onetime","arguments_","set","throw","$4c38ff914fe1d89a$exports","$23056d73879d6045$exports","signalsByNumber","signalsByName","$a5a917e3a5d932c3$exports","getSignals","standard","number","action","description","forced","getRealtimeSignals","SIGRTMAX","SIGRTMIN","getRealtimeSignal","index","$80655e6f773eb793$var$SIGRTMAX","realtimeSignals","$80655e6f773eb793$exports","SIGNALS","normalizeSignal","defaultNumber","signals","constantSignal","constants","supported","reduce","signalByNameMemo","$23056d73879d6045$var$signalsByName","signalsA","signalA","findSignalByNumber","getSignalByNumber","getSignalsByNumber","$23056d73879d6045$var$signalsByNumber","$9c02b87c81142eb9$exports","escapedCommand","timedOut","isCanceled","killed","timeout","signalDescription","$9c02b87c81142eb9$require$signalsByName","errorCode","$9c02b87c81142eb9$var$getErrorPrefix","execaMessage","isError","shortMessage","Boolean","originalMessage","failed","$7c5d2b028d8c11a2$var$aliases","$7c5d2b028d8c11a2$var$normalizeStdio","$7c5d2b028d8c11a2$var$hasAlias","Math","max","$7c5d2b028d8c11a2$exports","node","$ec50826462d91d22$exports","$1b016d3820a9e1fb$var$isWin","$3U0nv$events","$1b016d3820a9e1fb$require$EE","EventEmitter","__signal_exit_emitter__","infinite","setMaxListeners","$1b016d3820a9e1fb$exports","equal","alwaysLast","unload","kill","pid","load","$32c0bb5df899f0ee$var$isSigterm","SIGTERM","$32c0bb5df899f0ee$exports","killResult","forceKillAfterTimeout","$32c0bb5df899f0ee$var$shouldForceKill","Number","isFinite","$32c0bb5df899f0ee$var$getForceKillAfterTimeout","t","setTimeout","unref","$32c0bb5df899f0ee$var$setKillTimeout","context","killSignal","spawnedPromise","timeoutId","timeoutPromise","$32c0bb5df899f0ee$var$timeoutKill","safeSpawnedPromise","finally","clearTimeout","race","cleanup","detached","timedPromise","removeExitHandler","spawnedKill","spawnedCancel","validateTimeout","setExitHandler","setupTimeout","$04f38251090bf040$var$isStream","pipe","writable","_write","_writableState","readable","_read","_readableState","duplex","transform","_transform","$04f38251090bf040$exports","$3U0nv$buffer","$3U0nv$stream","PassThrough","array","isBuffer","objectMode","$d43cdcba2540f772$require$PassThroughStream","setEncoding","chunks","chunk","$aca27b1924527bc3$require$promisify","$3U0nv$util","promisify","pipeline","super","$aca27b1924527bc3$exports","MaxBufferError","$08ebbe08125d6885$exports","add","source","sources","once","remove","output","end","isEmpty","it","$08ebbe08125d6885$require$PassThrough","$c27adbaa770b8d87$var$getBufferedData","streamPromise","destroy","$c27adbaa770b8d87$var$getStreamPromise","$c27adbaa770b8d87$exports","stdin","mixed","processDone","stdoutPromise","stderrPromise","allPromise","makeAllStream","getSpawnedResult","validateInputSync","handleInput","$848bef379cd38ad7$var$nativePromisePrototype","constructor","prototype","$848bef379cd38ad7$var$descriptors","property","$848bef379cd38ad7$exports","promise","descriptor","getSpawnedPromise","mergePromise","$88ea719f29a64eb5$var$normalizeArgs","$88ea719f29a64eb5$var$NO_ESCAPE_REGEXP","$88ea719f29a64eb5$exports","$88ea719f29a64eb5$var$escapeArg","tokens","token","previousToken","joinCommand","parseCommand","getEscapedCommand","$cc47f4e6f3d32c78$var$handleArguments","stripFinalNewline","extendEnv","preferLocal","localDir","windowsHide","envOption","$cc47f4e6f3d32c78$var$getEnv","$cc47f4e6f3d32c78$var$handleOutput","$cc47f4e6f3d32c78$var$execa","$cc47f4e6f3d32c78$require$joinCommand","$cc47f4e6f3d32c78$require$getEscapedCommand","dummySpawned","ChildProcess","errorPromise","$cc47f4e6f3d32c78$require$getSpawnedPromise","$cc47f4e6f3d32c78$require$setupTimeout","$cc47f4e6f3d32c78$require$setExitHandler","$cc47f4e6f3d32c78$require$spawnedKill","cancel","$cc47f4e6f3d32c78$require$spawnedCancel","handlePromiseOnce","stdoutResult","stderrResult","allResult","$cc47f4e6f3d32c78$require$getSpawnedResult","returnedError","$cc47f4e6f3d32c78$require$makeAllStream","$cc47f4e6f3d32c78$require$parseCommand","scriptPath","defaultExecArgv","execArgv","nodePath","nodeOptions","$fbdecc6eadfe47c2$var$__importStar","$04e280234287a6fa$var$rmRF","$04e280234287a6fa$var$ioUtil","IS_WINDOWS","cmdPath","getCmdPath","isDirectory","$04e280234287a6fa$var$exec","unlink","isDir","$04e280234287a6fa$var$execFile","$04e280234287a6fa$var$mkdirP","fsPath","mkdir","recursive","$04e280234287a6fa$var$findInPath","extensions","extension","$04e280234287a6fa$var$path","isRooted","tryGetExecutablePath","directories","matches","$04e280234287a6fa$var$cpDirRecursive","sourceDir","destDir","currentDepth","force","readdir","fileName","srcFile","destFile","lstat","$04e280234287a6fa$var$copyFile","chmod","symlinkFull","readlink","symlink","exists","copyFile","$04e280234287a6fa$var$childProcess","$04e280234287a6fa$var$__importStar","execFile","copySourceDirectory","$04e280234287a6fa$var$readCopyOptions","destStat","newDest","relative","mv","destExists","rename","which","$04e280234287a6fa$var$which","check","findInPath","$b527c73d129cd9df$var$isUnixExecutable","stats","$b527c73d129cd9df$var$fs","$b527c73d129cd9df$var$__importStar","$b527c73d129cd9df$var$path","$b527c73d129cd9df$var$_a","promises","rmdir","useStat","$b527c73d129cd9df$var$normalizeSeparators","upperExt","extname","validExt","originalFilePath","upperName","actualName","_a","$13c43de102a3b6d8$var$semver","$13c43de102a3b6d8$var$__importStar","_findMatch","stable","candidates","archFilter","platFilter","candidate","chk","platform_version","osVersion","_getOsVersion","plat","execSync","lsbContents","_readLinuxVersionFile","lines","lsbReleaseFile","osReleaseFile","contents","re","$j1nFx","src","SEMVER_SPEC_VERSION","SemVer","compareIdentifiers","rcompareIdentifiers","parse","inc","diff","patch","prerelease","rcompare","compareLoose","compareBuild","rsort","lt","eq","neq","gte","lte","cmp","Comparator","Range","toComparators","maxSatisfying","minSatisfying","minVersion","outside","gtr","ltr","intersects","simplifyRange","subset","MAX_SAFE_COMPONENT_LENGTH","R","createToken","isGlobal","$8eni4","RegExp","NUMERICIDENTIFIER","NUMERICIDENTIFIERLOOSE","NONNUMERICIDENTIFIER","PRERELEASEIDENTIFIER","PRERELEASEIDENTIFIERLOOSE","BUILDIDENTIFIER","MAINVERSION","PRERELEASE","BUILD","FULLPLAIN","MAINVERSIONLOOSE","PRERELEASELOOSE","LOOSEPLAIN","XRANGEIDENTIFIER","XRANGEIDENTIFIERLOOSE","GTLT","XRANGEPLAIN","XRANGEPLAINLOOSE","$dd9078767aae0d77$require$MAX_SAFE_COMPONENT_LENGTH","COERCE","LONETILDE","tildeTrimReplace","LONECARET","caretTrimReplace","comparatorTrimReplace","MAX_SAFE_INTEGER","$5fe1b2857782793b$var$debug","$9PnyI","$de2b687c79c82d4f$var$SemVer","$26eGk","loose","includePrerelease","$de2b687c79c82d4f$require$MAX_LENGTH","m","$de2b687c79c82d4f$require$re","$de2b687c79c82d4f$require$t","LOOSE","FULL","raw","$de2b687c79c82d4f$require$MAX_SAFE_INTEGER","id","num","build","format","other","compareMain","comparePre","$de2b687c79c82d4f$require$compareIdentifiers","identifier","isNaN","$187787c55101df84$var$opts","options1","$6ecf2feb48e2d485$var$numeric","$6ecf2feb48e2d485$var$compareIdentifiers","anum","bnum","$j4Bpm","$021b1d9719c3eaaf$require$MAX_LENGTH","$021b1d9719c3eaaf$require$re","$021b1d9719c3eaaf$require$t","$bd0kF","version2","$4eeum","v1","v2","hasPre","defaultResult","versionA","versionB","list","$7REgF","op","$a0PPD","$6bYo1","$kRrXd","$98Pyg","rtl","next","$434397839421ea8b$require$re","$434397839421ea8b$require$t","COERCERTL","lastIndex","$cd741182808e7a1f$var$ANY","Symbol","$cd741182808e7a1f$var$Comparator","ANY","comp1","semver","operator","comp","$cd741182808e7a1f$require$re","$cd741182808e7a1f$require$t","COMPARATORLOOSE","COMPARATOR","$cITzi","$8YuUE","sameDirectionIncreasing","sameDirectionDecreasing","sameSemVer","differentDirectionsInclusive","oppositeDirectionsLessThan","oppositeDirectionsGreaterThan","$688be7ed17017f41$var$Range","range1","$hDCF3","parseRange","$688be7ed17017f41$var$isNullSet","$688be7ed17017f41$var$isAny","range","comps","memoKey","cached","$688be7ed17017f41$var$cache","$688be7ed17017f41$require$re","$688be7ed17017f41$require$t","HYPHENRANGELOOSE","HYPHENRANGE","$688be7ed17017f41$var$hyphenReplace","COMPARATORTRIM","$688be7ed17017f41$require$comparatorTrimReplace","TILDETRIM","$688be7ed17017f41$require$tildeTrimReplace","CARETTRIM","$688be7ed17017f41$require$caretTrimReplace","compRe","rangeList","$688be7ed17017f41$var$parseComparator","$688be7ed17017f41$var$replaceGTE0","rangeMap","Map","size","delete","values","thisComparators","$688be7ed17017f41$var$isSatisfiable","rangeComparators","every","thisComparator","rangeComparator","$688be7ed17017f41$var$testSet","comparators","options2","remainingComparators","testComparator","otherComparator","$688be7ed17017f41$var$replaceCarets","$688be7ed17017f41$var$replaceTildes","$688be7ed17017f41$var$replaceXRanges","$688be7ed17017f41$var$replaceStars","$688be7ed17017f41$var$isX","$688be7ed17017f41$var$replaceTilde","TILDELOOSE","TILDE","M","pr","$688be7ed17017f41$var$replaceCaret","z","CARETLOOSE","CARET","$688be7ed17017f41$var$replaceXRange","XRANGELOOSE","XRANGE","gtlt","xM","xm","xp","STAR","GTE0PRE","GTE0","incPr","$0","fM","fm","fp","fpr","fb","tM","tm","tp","tpr","tb","i1","allowed","$cb0ed5fe82fb4516$var$MAX","$cb0ed5fe82fb4516$var$LENGTH","$cb0ed5fe82fb4516$var$LENGTH_CALCULATOR","$cb0ed5fe82fb4516$var$ALLOW_STALE","$cb0ed5fe82fb4516$var$MAX_AGE","$cb0ed5fe82fb4516$var$DISPOSE","$cb0ed5fe82fb4516$var$NO_DISPOSE_ON_SET","$cb0ed5fe82fb4516$var$LRU_LIST","$cb0ed5fe82fb4516$var$CACHE","$cb0ed5fe82fb4516$var$UPDATE_AGE_ON_GET","$cb0ed5fe82fb4516$var$naiveLength","$cb0ed5fe82fb4516$var$get","self","doUse","hit","$cb0ed5fe82fb4516$var$isStale","$cb0ed5fe82fb4516$var$del","now","Date","unshiftNode","maxAge","$cb0ed5fe82fb4516$var$trim","walker","tail","prev","removeNode","$cb0ed5fe82fb4516$var$Entry","$cb0ed5fe82fb4516$var$forEachStep","thisp","lc","stale","dispose","noDisposeOnSet","updateAgeOnGet","reset","mL","allowStale","mA","lengthCalculator","lC","itemCount","rforEach","head","toArray","$9ShIP","dump","dumpLru","peek","del","l","expiresAt","prune","$7306e76b158eea44$var$Yallist","$7306e76b158eea44$var$insert","inserted","$7306e76b158eea44$var$Node","$7306e76b158eea44$var$push","$7306e76b158eea44$var$unshift","Node","create","pushNode","forEachReverse","n","getReverse","mapReverse","initial","acc","reduceReverse","toArrayReverse","sliceReverse","start","deleteCount","nodes","Yallist","iterator","maxSV","rangeObj","min","minSV","minver","setMin","comparator","compver","$20794eeb9cc8f6af$var$ANY","hilo","gtfn","ltefn","ltfn","ecomp","$6rO9c","high","low","$2MRaB","r1","r2","ranges","min1","simplified","$2281fb43d3df183f$var$ANY","$2281fb43d3df183f$var$simpleSubset","sub","dom","eqSet","Set","gtltComp","higher","lower","hasDomLT","hasDomGT","$2281fb43d3df183f$var$higherGT","$2281fb43d3df183f$var$lowerLT","c1","needDomLTPre","needDomGTPre","sawNonNull","OUTER","simpleSub","simpleDom","isSub","$fbdecc6eadfe47c2$var$mm","$6fb832e0570ffd7b$var$tunnel","$6fb832e0570ffd7b$var$HttpCodes","HttpCodes","$6fb832e0570ffd7b$var$Headers","Headers1","$6fb832e0570ffd7b$var$MediaTypes","Headers","MediaTypes","getProxyUrl","serverUrl","proxyUrl","$cEfL5","URL","href","$6fb832e0570ffd7b$var$HttpRedirectCodes","MovedPermanently","ResourceMoved","SeeOther","TemporaryRedirect","PermanentRedirect","$6fb832e0570ffd7b$var$HttpResponseRetryCodes","BadGateway","ServiceUnavailable","GatewayTimeout","$6fb832e0570ffd7b$var$RetryableHttpVerbs","$6fb832e0570ffd7b$var$HttpClientError","setPrototypeOf","HttpClientError","$6fb832e0570ffd7b$var$HttpClientResponse","message1","readBody","HttpClientResponse","isHttps","requestUrl","protocol","$6fb832e0570ffd7b$var$HttpClient","userAgent","handlers","requestOptions","_ignoreSslError","_allowRedirects","_allowRedirectDowngrade","_maxRedirects","_allowRetries","_maxRetries","_keepAlive","_disposed","ignoreSslError","_socketTimeout","socketTimeout","allowRedirects","allowRedirectDowngrade","maxRedirects","keepAlive","allowRetries","maxRetries","additionalHeaders","request","post","put","sendStream","verb","Accept","_getExistingOrDefaultHeader","ApplicationJson","_processResponse","obj","ContentType","headers","parsedUrl","_prepareRequest","maxTries","numTries","requestRaw","Unauthorized","authenticationHandler","canHandleAuthentication","handleAuthentication","redirectsRemaining","redirectUrl","parsedRedirectUrl","hostname","header","_performExponentialBackoff","_agent","requestRawWithCallback","onResult","socket","byteLength","callbackCalled","handleResult","req","httpModule","sock","getAgent","_getAgent","method","usingSsl","$3U0nv$http","defaultPort","host","port","pathname","search","_mergeHeaders","agent","handler","prepareRequest","lowercaseKeys","_default","clientHeader","useProxy","_proxyAgent","maxSockets","globalAgent","agentOptions","proxy","username","password","proxyAuth","tunnelAgent","overHttps","httpsOverHttps","httpsOverHttp","httpOverHttps","httpOverHttp","Agent","rejectUnauthorized","retryNumber","ms","pow","valueOf","statusCode1","NotFound","deserializeDates","dateTimeDeserializer","$935571c89a77cf35$var$checkBypass","reqUrl","reqPort","noProxy","upperReqHosts","upperNoProxyItem","proxyVar","checkBypass","$5ede95876def1093$var$TunnelingAgent","proxyOptions","defaultMaxSockets","requests","sockets","localAddress","$5ede95876def1093$var$toOptions","pending","onSocket","removeSocket","$5ede95876def1093$var$createSecureSocket","createSocket","hostHeader","getHeader","tlsOptions","$5ede95876def1093$var$mergeOptions","servername","secureSocket","$3U0nv$tls","connect","target","overrides","keyLen","$5ede95876def1093$export$cfea88b79fd3041","$5ede95876def1093$export$25126787084ac1d3","$5ede95876def1093$export$228ecc9aa21a9741","$5ede95876def1093$export$f44e217dbcda9c5a","$5ede95876def1093$export$5b6f1b09aafac70","$5ede95876def1093$var$debug","inherits","addRequest","onFree","onCloseOrRemove","onConnect","connectReq","removeAllListeners","placeholder","connectOptions","useChunkedEncodingByDefault","upgrade","nextTick","cause","stack","pos","socket1","$fbdecc6eadfe47c2$var$httpm","$fbdecc6eadfe47c2$var$stream","$fbdecc6eadfe47c2$var$util","buf","offset","rnds","random","rng","$diWfV","$8n3PT","$3U0nv$crypto","randomBytes","$618372782be4d813$var$byteToHex","$618372782be4d813$var$i","$fbdecc6eadfe47c2$var$__importDefault","$b27a19eb94ad77fe$var$os","$b27a19eb94ad77fe$var$__importStar","$b27a19eb94ad77fe$var$events","$b27a19eb94ad77fe$var$child","$b27a19eb94ad77fe$var$path","$b27a19eb94ad77fe$var$io","$b27a19eb94ad77fe$var$ioUtil","$b27a19eb94ad77fe$var$IS_WINDOWS","toolPath1","_debug","_getCommandString","noPrefix","_getSpawnFileName","args1","_getSpawnArgs","_isCmdFile","_windowsQuoteCmdArg","_processLineBuffer","strBuffer","onLine","argline","_endsWith","str","upperToolPath","_uvQuoteCmdArg","cmdSpecialChars","needsQuotes","char","quoteHit","_cloneExecOptions","failOnStdErr","ignoreReturnCode","delay","outStream","errStream","_getSpawnOptions","argv0","$b27a19eb94ad77fe$var$__awaiter","optionsNonNull","state","$b27a19eb94ad77fe$var$ExecState","stdbuffer","stdline","errbuffer","processStderr","errline","processError","processExited","processClosed","CheckComplete","processExitCode","argString","append","escaped","inQuotes","charAt","toolPath2","done","_setResult","$3U0nv$timers","HandleTimeout","$8d6c57753101e07a$var$__importStar","stdoutDecoder","$3U0nv$string_decoder","StringDecoder","stderrDecoder","originalStdoutListener","originalStdErrListener","_b","$e9cce2f397d0b5d7$var$core","$e9cce2f397d0b5d7$var$__importStar","$e9cce2f397d0b5d7$exports","RetryHelper","maxAttempts","minSeconds","maxSeconds","floor","execute","isRetryable","attempt","seconds","getSleepAmount","sleep","$fbdecc6eadfe47c2$var$HTTPError","httpStatusCode","HTTPError","$fbdecc6eadfe47c2$var$IS_WINDOWS","$fbdecc6eadfe47c2$var$IS_MAC","auth","retryHelper","$fbdecc6eadfe47c2$var$__awaiter","authorization","statusMessage","readStream","responseMessageFactory","succeeded","createWriteStream","$fbdecc6eadfe47c2$var$downloadToolAttempt","extract7z","_7zPath","originalCwd","__dirname","powershellPath","versionOutput","isGnuTar","destArg","fileArg","extractXar","xarPath","escapedFile","escapedDest","pwshPath","$fbdecc6eadfe47c2$var$extractZipWin","unzipPath","$fbdecc6eadfe47c2$var$extractZipNix","destPath","itemName","cacheFile","sourceFile","targetFile","destFolder","cachePath","findAllVersions","owner","repo","branch","treeUrl","manifestUrl","tree","versionsRaw","isExplicitVersion","evaluateVersions","Worker","$e68279e3338bc371$var$Worker","$e68279e3338bc371$import$ad18b0afc1a10da7","$e68279e3338bc371$var$worker","$e68279e3338bc371$var$taskIdCounter","$e68279e3338bc371$var$tasks","$e68279e3338bc371$var$taskWorker","transferList","task","sourceError","entries","$e68279e3338bc371$var$recreateWorkerError","postMessage","$e68279e3338bc371$var$hasha","outputEncoding","hash","createHash","update","digest","fromStream","read","fromFile","createReadStream","fromFileSync","$655628f797e4869d$var$TOKEN","specific","$1bd49ae4b85c403c$export$b00950e3fcb58399","$e5ecfb1ae2cd12fa$var$isPathVariable","$e5ecfb1ae2cd12fa$var$setupMSVCDevCmd","$3U0nv$process","$k2PtG","$e5ecfb1ae2cd12fa$var$VSWHERE_PATH","arch_aliases","vcvars","pattern","installationPath","$e5ecfb1ae2cd12fa$var$findWithVswhere","ver","$e5ecfb1ae2cd12fa$var$VERSIONS","ed","$e5ecfb1ae2cd12fa$var$EDITIONS","$e5ecfb1ae2cd12fa$var$PROGRAM_FILES_X86","$e5ecfb1ae2cd12fa$var$findVcvarsall","cmd_output_parts","old_environment","vcvars_output","new_environment","error_messages","old_env_vars","string1","new_value","$e5ecfb1ae2cd12fa$export$1770a487615d61df","$e97becf723056cb8$var$error","$e97becf723056cb8$var$os","$e97becf723056cb8$var$__importStar","$e97becf723056cb8$var$path","$e97becf723056cb8$var$ExitCode","$3tRAC","$48DC3","$lTVmt","$ff1b3ad0e311f75c$var$issueCommand","$ff1b3ad0e311f75c$var$Command","$ff1b3ad0e311f75c$var$os","$ff1b3ad0e311f75c$var$__importStar","$ff1b3ad0e311f75c$var$escapeData","$3036a3108408bd21$var$fs","$3036a3108408bd21$var$__importStar","$3036a3108408bd21$var$os","$6db0685353f69c12$var$homeDirectory","homedir","pathWithTilde","msvc","llvm","ninja","cmake","gcovr","conan","meson","python","gcc","opencppcoverage","choco","brew","ccache","doxygen","cppcheck","argv","catch"],"version":3,"file":"setup_cpp.js.map","sourceRoot":"../"} \ No newline at end of file +{"mappings":"qJAWSA,EAAOC,EAAMC,EAASC,GAM7B,GALkB,mBAAPD,IACTC,EAAKD,EACLA,EAAO,KAGJC,EAAI,CACP,GAAkB,mBAAPC,QACT,MAAM,IAAIC,UAAS,gCAGd,IAAID,SAAO,CAAWE,EAASC,KACpCP,EAAMC,EAAMC,GAAO,KAAkBM,EAAIC,KACnCD,EACFD,EAAOC,GAEPF,EAAQG,SAMhBC,GAAKT,EAAMC,GAAO,KAAkBM,EAAIC,KAElCD,IACS,WAAPA,EAAGG,MAAqBT,GAAWA,EAAQU,gBAC7CJ,EAAK,KACLC,GAAK,GAGTN,EAAGK,EAAIC,eClCKI,EAAUC,EAAkBC,EAAsBC,GAChE,IAAE,mBAAuBC,SAASC,QAAQC,UAAQ,OAGlD,GAAiB,iBAANC,GAAmB,MAAA,QACnBA,IAGX,MAAMC,EAAcC,EAAAC,IAAMC,KAAI,OAAO,CAAIC,SAAS,IAClD,OAAoB,OAAhBJ,GACFD,GAASM,GAAAC,QAAQN,WACRD,MAIXQ,GAAAC,aAAY,kGAAiG,CAC3GC,MAAK,YAEPV,GAAM,0BAEGA,cCrBFW,EAAsBC,EAAQC,GACnC,MAAMC,EAAMF,EAAO9B,QAAQgC,KAAOhB,QAAQgB,IACpCC,EAAMjB,QAAQiB,MACdC,EAAqC,MAAtBJ,EAAO9B,QAAQiC,IAE9BE,EAAkBD,QAAkCE,IAAlBpB,QAAQqB,QAAwBrB,QAAQqB,MAAMC,SAItF,GAAIH,EAAe,IAEXnB,QAAQqB,MAAMP,EAAO9B,QAAQiC,KAChC,MAAQM,IAKb,IAAIC,MAGAA,EAAWnB,GAAAC,KAAWQ,EAAOW,QAAO,CAChC1C,KAAMiC,EAAIU,GAAU,KAAGV,KACvBW,QAASZ,EAAiBP,GAAAoB,eAAiBR,IAElD,MAAQS,IAER,QACOV,G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EAAY,QAAUtQ,IrG6B7BonD,sBsG7ByCpnD,EAA6BxG,EAAsBC,GAC5F,GAAoB,UAAhBE,QAAQC,SAAoB,aAG1BsH,EAAc,kBAAoBlB,GACxC,MAAMI,EAAM,gDACNG,EAAQH,WACLA,ItGuBTwmD,KAAMtzC,EACN6zC,IAAKnxC,GACLqxC,MAAOzmD,EACP0mD,KAAMhuD,EACNiuD,OuGjC0BvnD,EAAiBxG,EAAsBC,UACzDE,QAAQC,6BAELsH,EAAc,SAAWlB,uBAGzBK,EAAa,SAAWL,sBAGxBF,EAAY,SAAWE,WAG9B,MAAUlE,MAAK,0BvGsBnB0rD,cwGjCiCxnD,EAA6BxG,EAAsBC,UAC5EE,QAAQC,sBACA,OACNsH,EAAc,kBAAoBlB,SAClCkB,EAAc,WAAalB,SAC3BO,EAAO,iCACb,MAAMH,EAAM,4CACNG,EAAQH,WACLA,uBAGTC,EAAa,UAAYL,GAClBK,EAAa,WAAaL,4BAG3BF,EAAY,UAAYE,GACvBF,EAAY,WAAaE,WAGhC,MAAUlE,MAAK,0BxGenB2rD,eyGlCkCznD,EAA6BxG,EAAsBC,UAC7EE,QAAQC,sBACA,OACNsH,EAAc,WAAalB,GACjC,MAAMI,EAAM,yCACNG,EAAQH,WACLA,uBAGFC,EAAa,WAAaL,sBAG1BF,EAAY,WAAaE,WAGhC,MAAUlE,MAAK,0BzGoBnB6qD,KAAMxyC,GAIF+D,GAAK,sIAsBLb,GAAM,8BAAkDa,IA0H9D/B,GAAKxc,QAAQ+tD,MACVtnC,MAAM/hB,IACL1E,QAAQsE,SAAWI,KAEpBspD,OAAOzsD,IACN+a,GAAK,oBACLA,GAAM/a,GACNvB,QAAQsE,SAAW","sources":["node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js","src/brew/brew.ts","node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js","node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js","node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js","node_modules/.pnpm/signal-exit@3.0.3/node_modules/signal-exit/index.js","node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/index.js","src/utils/env/sudo.ts","src/utils/setup/setupAptPack.ts","src/utils/setup/setupBrewPack.ts","src/utils/path/addPath.ts","src/chocolatey/chocolatey.ts","src/utils/setup/setupChocoPack.ts","node_modules/.pnpm/@actions+exec@1.1.0/node_modules/@actions/exec/src/exec.ts","node_modules/.pnpm/@actions+tool-cache@1.7.1/node_modules/@actions/tool-cache/src/tool-cache.ts","src/utils/setup/setupBin.ts","src/cmake/cmake.ts","src/python/setup-python/src/utils.ts","src/python/setup-python/src/find-python.ts","src/python/setup-python/src/install-pypy.ts","src/utils/env/isci.ts","src/python/python.ts","src/python/setup-python/src/find-pypy.ts","src/python/setup-python/src/install-python.ts","src/utils/http/validate_url.ts","src/utils/setup/setupPipPack.ts","src/utils/setup/version.ts","src/utils/setup/extract.ts","src/llvm/llvm.ts","src/msvc/msvc.ts","src/ninja/ninja.ts","node_modules/.pnpm/mri@1.2.0/node_modules/mri/lib/index.mjs","src/default_versions.ts","src/gcc/gcc.ts","src/utils/io/io.ts","src/main.ts","node_modules/.pnpm/@actions+core@1.5.0/node_modules/@actions/core/src/core.ts","node_modules/.pnpm/@actions+core@1.5.0/node_modules/@actions/core/src/command.ts","node_modules/.pnpm/@actions+core@1.5.0/node_modules/@actions/core/src/utils.ts","node_modules/.pnpm/@actions+core@1.5.0/node_modules/@actions/core/src/file-command.ts","node_modules/.pnpm/which@2.0.2/node_modules/which/which.js","node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js","node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js","node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js","node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js","node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js","node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js","node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js","node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js","node_modules/.pnpm/strip-final-newline@2.0.0/node_modules/strip-final-newline/index.js","node_modules/.pnpm/npm-run-path@4.0.1/node_modules/npm-run-path/index.js","node_modules/.pnpm/mimic-fn@2.1.0/node_modules/mimic-fn/index.js","node_modules/.pnpm/onetime@5.1.2/node_modules/onetime/index.js","node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/src/main.js","node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/src/signals.js","node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/src/core.js","node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/src/realtime.js","node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/error.js","node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stdio.js","node_modules/.pnpm/signal-exit@3.0.3/node_modules/signal-exit/signals.js","node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/kill.js","node_modules/.pnpm/execa@5.1.1/node_modules/execa/index.js","node_modules/.pnpm/is-stream@2.0.1/node_modules/is-stream/index.js","node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/buffer-stream.js","node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js","node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stream.js","node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/promise.js","node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/command.js","node_modules/.pnpm/@actions+io@1.1.1/node_modules/@actions/io/src/io.ts","node_modules/.pnpm/@actions+io@1.1.1/node_modules/@actions/io/src/io-util.ts","node_modules/.pnpm/@actions+tool-cache@1.7.1/node_modules/@actions/tool-cache/src/manifest.ts","node_modules/.pnpm/semver@7.3.5/node_modules/semver/index.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/internal/re.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/internal/constants.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/internal/debug.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/classes/semver.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/internal/parse-options.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/internal/identifiers.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/functions/parse.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/functions/valid.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/functions/clean.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/functions/inc.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/functions/diff.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/functions/eq.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/functions/compare.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/functions/major.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/functions/minor.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/functions/patch.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/functions/prerelease.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/functions/rcompare.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/functions/compare-loose.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/functions/compare-build.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/functions/sort.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/functions/rsort.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/functions/gt.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/functions/lt.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/functions/neq.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/functions/gte.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/functions/lte.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/functions/cmp.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/functions/coerce.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/classes/comparator.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/classes/range.js","node_modules/.pnpm/lru-cache@6.0.0/node_modules/lru-cache/index.js","node_modules/.pnpm/yallist@4.0.0/node_modules/yallist/yallist.js","node_modules/.pnpm/yallist@4.0.0/node_modules/yallist/iterator.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/functions/satisfies.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/ranges/to-comparators.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/ranges/max-satisfying.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/ranges/min-satisfying.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/ranges/min-version.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/ranges/valid.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/ranges/outside.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/ranges/gtr.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/ranges/ltr.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/ranges/intersects.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/ranges/simplify.js","node_modules/.pnpm/semver@7.3.5/node_modules/semver/ranges/subset.js","node_modules/.pnpm/@actions+http-client@1.0.11/node_modules/@actions/http-client/index.js","node_modules/.pnpm/@actions+http-client@1.0.11/node_modules/@actions/http-client/proxy.js","node_modules/.pnpm/tunnel@0.0.6/node_modules/tunnel/index.js","node_modules/.pnpm/tunnel@0.0.6/node_modules/tunnel/lib/tunnel.js","node_modules/.pnpm/uuid@3.4.0/node_modules/uuid/v4.js","node_modules/.pnpm/uuid@3.4.0/node_modules/uuid/lib/rng.js","node_modules/.pnpm/uuid@3.4.0/node_modules/uuid/lib/bytesToUuid.js","node_modules/.pnpm/@actions+exec@1.1.0/node_modules/@actions/exec/src/toolrunner.ts","node_modules/.pnpm/@actions+tool-cache@1.7.1/node_modules/@actions/tool-cache/src/retry-helper.ts","node_modules/.pnpm/hasha@5.2.2/node_modules/hasha/index.js","src/msvc/msvc-dev-cmd/index.js","src/msvc/msvc-dev-cmd/node_modules/@actions/core/src/core.ts","src/msvc/msvc-dev-cmd/node_modules/@actions/core/src/command.ts","src/msvc/msvc-dev-cmd/node_modules/@actions/core/src/utils.ts","src/msvc/msvc-dev-cmd/node_modules/@actions/core/src/file-command.ts","node_modules/.pnpm/untildify@4.0.0/node_modules/untildify/index.js","src/conan/conan.ts","src/meson/meson.ts","src/gcovr/gcovr.ts","src/opencppcoverage/opencppcoverage.ts","src/ccache/ccache.ts","src/doxygen/doxygen.ts","src/cppcheck/cppcheck.ts"],"sourcesContent":["var fs = require('fs')\nvar core\nif (process.platform === 'win32' || global.TESTING_WINDOWS) {\n core = require('./windows.js')\n} else {\n core = require('./mode.js')\n}\n\nmodule.exports = isexe\nisexe.sync = sync\n\nfunction isexe (path, options, cb) {\n if (typeof options === 'function') {\n cb = options\n options = {}\n }\n\n if (!cb) {\n if (typeof Promise !== 'function') {\n throw new TypeError('callback not provided')\n }\n\n return new Promise(function (resolve, reject) {\n isexe(path, options || {}, function (er, is) {\n if (er) {\n reject(er)\n } else {\n resolve(is)\n }\n })\n })\n }\n\n core(path, options || {}, function (er, is) {\n // ignore EACCES because that just means we aren't allowed to run it\n if (er) {\n if (er.code === 'EACCES' || options && options.ignoreErrors) {\n er = null\n is = false\n }\n }\n cb(er, is)\n })\n}\n\nfunction sync (path, options) {\n // my kingdom for a filtered catch\n try {\n return core.sync(path, options || {})\n } catch (er) {\n if (options && options.ignoreErrors || er.code === 'EACCES') {\n return false\n } else {\n throw er\n }\n }\n}\n","import { execFileSync } from \"child_process\"\nimport { dirname } from \"path\"\nimport which from \"which\"\n\nlet binDir: string | undefined\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupBrew(_version: string, _setupCppDir: string, _arch: string) {\n if (![\"darwin\", \"linux\"].includes(process.platform)) {\n return undefined\n }\n if (typeof binDir === \"string\") {\n return { binDir }\n }\n\n const maybeBinDir = which.sync(\"brew\", { nothrow: true })\n if (maybeBinDir !== null) {\n binDir = dirname(maybeBinDir)\n return { binDir }\n }\n\n // brew is not thread-safe\n execFileSync(`/bin/bash -c \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)\"`, {\n stdio: \"inherit\",\n })\n binDir = \"/usr/local/bin/\"\n\n return { binDir }\n}\n","'use strict';\n\nconst path = require('path');\nconst which = require('which');\nconst getPathKey = require('path-key');\n\nfunction resolveCommandAttempt(parsed, withoutPathExt) {\n const env = parsed.options.env || process.env;\n const cwd = process.cwd();\n const hasCustomCwd = parsed.options.cwd != null;\n // Worker threads do not have process.chdir()\n const shouldSwitchCwd = hasCustomCwd && process.chdir !== undefined && !process.chdir.disabled;\n\n // If a custom `cwd` was specified, we need to change the process cwd\n // because `which` will do stat calls but does not support a custom cwd\n if (shouldSwitchCwd) {\n try {\n process.chdir(parsed.options.cwd);\n } catch (err) {\n /* Empty */\n }\n }\n\n let resolved;\n\n try {\n resolved = which.sync(parsed.command, {\n path: env[getPathKey({ env })],\n pathExt: withoutPathExt ? path.delimiter : undefined,\n });\n } catch (e) {\n /* Empty */\n } finally {\n if (shouldSwitchCwd) {\n process.chdir(cwd);\n }\n }\n\n // If we successfully resolved, ensure that an absolute path is returned\n // Note that when a custom `cwd` was used, we need to resolve to an absolute path based on it\n if (resolved) {\n resolved = path.resolve(hasCustomCwd ? parsed.options.cwd : '', resolved);\n }\n\n return resolved;\n}\n\nfunction resolveCommand(parsed) {\n return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);\n}\n\nmodule.exports = resolveCommand;\n","'use strict';\n\nconst isWin = process.platform === 'win32';\n\nfunction notFoundError(original, syscall) {\n return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {\n code: 'ENOENT',\n errno: 'ENOENT',\n syscall: `${syscall} ${original.command}`,\n path: original.command,\n spawnargs: original.args,\n });\n}\n\nfunction hookChildProcess(cp, parsed) {\n if (!isWin) {\n return;\n }\n\n const originalEmit = cp.emit;\n\n cp.emit = function (name, arg1) {\n // If emitting \"exit\" event and exit code is 1, we need to check if\n // the command exists and emit an \"error\" instead\n // See https://github.com/IndigoUnited/node-cross-spawn/issues/16\n if (name === 'exit') {\n const err = verifyENOENT(arg1, parsed, 'spawn');\n\n if (err) {\n return originalEmit.call(cp, 'error', err);\n }\n }\n\n return originalEmit.apply(cp, arguments); // eslint-disable-line prefer-rest-params\n };\n}\n\nfunction verifyENOENT(status, parsed) {\n if (isWin && status === 1 && !parsed.file) {\n return notFoundError(parsed.original, 'spawn');\n }\n\n return null;\n}\n\nfunction verifyENOENTSync(status, parsed) {\n if (isWin && status === 1 && !parsed.file) {\n return notFoundError(parsed.original, 'spawnSync');\n }\n\n return null;\n}\n\nmodule.exports = {\n hookChildProcess,\n verifyENOENT,\n verifyENOENTSync,\n notFoundError,\n};\n","'use strict';\n\nconst cp = require('child_process');\nconst parse = require('./lib/parse');\nconst enoent = require('./lib/enoent');\n\nfunction spawn(command, args, options) {\n // Parse the arguments\n const parsed = parse(command, args, options);\n\n // Spawn the child process\n const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);\n\n // Hook into child process \"exit\" event to emit an error if the command\n // does not exists, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16\n enoent.hookChildProcess(spawned, parsed);\n\n return spawned;\n}\n\nfunction spawnSync(command, args, options) {\n // Parse the arguments\n const parsed = parse(command, args, options);\n\n // Spawn the child process\n const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);\n\n // Analyze if the command does not exist, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16\n result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);\n\n return result;\n}\n\nmodule.exports = spawn;\nmodule.exports.spawn = spawn;\nmodule.exports.sync = spawnSync;\n\nmodule.exports._parse = parse;\nmodule.exports._enoent = enoent;\n","// Note: since nyc uses this module to output coverage, any lines\n// that are in the direct sync flow of nyc's outputCoverage are\n// ignored, since we can never get coverage for them.\nvar assert = require('assert')\nvar signals = require('./signals.js')\nvar isWin = /^win/i.test(process.platform)\n\nvar EE = require('events')\n/* istanbul ignore if */\nif (typeof EE !== 'function') {\n EE = EE.EventEmitter\n}\n\nvar emitter\nif (process.__signal_exit_emitter__) {\n emitter = process.__signal_exit_emitter__\n} else {\n emitter = process.__signal_exit_emitter__ = new EE()\n emitter.count = 0\n emitter.emitted = {}\n}\n\n// Because this emitter is a global, we have to check to see if a\n// previous version of this library failed to enable infinite listeners.\n// I know what you're about to say. But literally everything about\n// signal-exit is a compromise with evil. Get used to it.\nif (!emitter.infinite) {\n emitter.setMaxListeners(Infinity)\n emitter.infinite = true\n}\n\nmodule.exports = function (cb, opts) {\n assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler')\n\n if (loaded === false) {\n load()\n }\n\n var ev = 'exit'\n if (opts && opts.alwaysLast) {\n ev = 'afterexit'\n }\n\n var remove = function () {\n emitter.removeListener(ev, cb)\n if (emitter.listeners('exit').length === 0 &&\n emitter.listeners('afterexit').length === 0) {\n unload()\n }\n }\n emitter.on(ev, cb)\n\n return remove\n}\n\nmodule.exports.unload = unload\nfunction unload () {\n if (!loaded) {\n return\n }\n loaded = false\n\n signals.forEach(function (sig) {\n try {\n process.removeListener(sig, sigListeners[sig])\n } catch (er) {}\n })\n process.emit = originalProcessEmit\n process.reallyExit = originalProcessReallyExit\n emitter.count -= 1\n}\n\nfunction emit (event, code, signal) {\n if (emitter.emitted[event]) {\n return\n }\n emitter.emitted[event] = true\n emitter.emit(event, code, signal)\n}\n\n// { : , ... }\nvar sigListeners = {}\nsignals.forEach(function (sig) {\n sigListeners[sig] = function listener () {\n // If there are no other listeners, an exit is coming!\n // Simplest way: remove us and then re-send the signal.\n // We know that this will kill the process, so we can\n // safely emit now.\n var listeners = process.listeners(sig)\n if (listeners.length === emitter.count) {\n unload()\n emit('exit', null, sig)\n /* istanbul ignore next */\n emit('afterexit', null, sig)\n /* istanbul ignore next */\n if (isWin && sig === 'SIGHUP') {\n // \"SIGHUP\" throws an `ENOSYS` error on Windows,\n // so use a supported signal instead\n sig = 'SIGINT'\n }\n process.kill(process.pid, sig)\n }\n }\n})\n\nmodule.exports.signals = function () {\n return signals\n}\n\nmodule.exports.load = load\n\nvar loaded = false\n\nfunction load () {\n if (loaded) {\n return\n }\n loaded = true\n\n // This is the number of onSignalExit's that are in play.\n // It's important so that we can count the correct number of\n // listeners on signals, and don't wait for the other one to\n // handle it instead of us.\n emitter.count += 1\n\n signals = signals.filter(function (sig) {\n try {\n process.on(sig, sigListeners[sig])\n return true\n } catch (er) {\n return false\n }\n })\n\n process.emit = processEmit\n process.reallyExit = processReallyExit\n}\n\nvar originalProcessReallyExit = process.reallyExit\nfunction processReallyExit (code) {\n process.exitCode = code || 0\n emit('exit', process.exitCode, null)\n /* istanbul ignore next */\n emit('afterexit', process.exitCode, null)\n /* istanbul ignore next */\n originalProcessReallyExit.call(process, process.exitCode)\n}\n\nvar originalProcessEmit = process.emit\nfunction processEmit (ev, arg) {\n if (ev === 'exit') {\n if (arg !== undefined) {\n process.exitCode = arg\n }\n var ret = originalProcessEmit.apply(this, arguments)\n emit('exit', process.exitCode, null)\n /* istanbul ignore next */\n emit('afterexit', process.exitCode, null)\n return ret\n } else {\n return originalProcessEmit.apply(this, arguments)\n }\n}\n","'use strict';\nconst {constants: BufferConstants} = require('buffer');\nconst stream = require('stream');\nconst {promisify} = require('util');\nconst bufferStream = require('./buffer-stream');\n\nconst streamPipelinePromisified = promisify(stream.pipeline);\n\nclass MaxBufferError extends Error {\n\tconstructor() {\n\t\tsuper('maxBuffer exceeded');\n\t\tthis.name = 'MaxBufferError';\n\t}\n}\n\nasync function getStream(inputStream, options) {\n\tif (!inputStream) {\n\t\tthrow new Error('Expected a stream');\n\t}\n\n\toptions = {\n\t\tmaxBuffer: Infinity,\n\t\t...options\n\t};\n\n\tconst {maxBuffer} = options;\n\tconst stream = bufferStream(options);\n\n\tawait new Promise((resolve, reject) => {\n\t\tconst rejectPromise = error => {\n\t\t\t// Don't retrieve an oversized buffer.\n\t\t\tif (error && stream.getBufferedLength() <= BufferConstants.MAX_LENGTH) {\n\t\t\t\terror.bufferedData = stream.getBufferedValue();\n\t\t\t}\n\n\t\t\treject(error);\n\t\t};\n\n\t\t(async () => {\n\t\t\ttry {\n\t\t\t\tawait streamPipelinePromisified(inputStream, stream);\n\t\t\t\tresolve();\n\t\t\t} catch (error) {\n\t\t\t\trejectPromise(error);\n\t\t\t}\n\t\t})();\n\n\t\tstream.on('data', () => {\n\t\t\tif (stream.getBufferedLength() > maxBuffer) {\n\t\t\t\trejectPromise(new MaxBufferError());\n\t\t\t}\n\t\t});\n\t});\n\n\treturn stream.getBufferedValue();\n}\n\nmodule.exports = getStream;\nmodule.exports.buffer = (stream, options) => getStream(stream, {...options, encoding: 'buffer'});\nmodule.exports.array = (stream, options) => getStream(stream, {...options, array: true});\nmodule.exports.MaxBufferError = MaxBufferError;\n","import execa from \"execa\"\n\nlet _issudo: boolean | undefined = undefined\n\nexport function isRoot(): boolean {\n if (_issudo !== undefined) {\n return _issudo\n }\n // eslint-disable-next-line @typescript-eslint/strict-boolean-expressions, @typescript-eslint/no-unnecessary-condition\n _issudo = Boolean(process.env.CI) || process.getuid?.() === 0\n return _issudo\n}\n\nexport function mightSudo(command: string) {\n if (isRoot()) {\n return `sudo ${command}`\n }\n return command\n}\n\nexport function execaSudo(file: string, args: string[]) {\n if (isRoot()) {\n return execa(\"sudo\", [file, ...args])\n } else {\n return execa(file, args)\n }\n}\n","/* eslint-disable require-atomic-updates */\nimport { InstallationInfo } from \"./setupBin\"\nimport { execaSudo } from \"../env/sudo\"\n\nlet didUpdate: boolean = false\n\n/** A function that installs a package using apt */\nexport async function setupAptPack(\n name: string,\n version?: string,\n repository: boolean | string = true\n): Promise {\n const apt = \"apt-get\" // mightSudo\n\n if (typeof repository === \"string\") {\n await execaSudo(\"add-apt-repository\", [\"--update\", \"-y\", repository])\n }\n\n if (!didUpdate || repository === true) {\n await execaSudo(apt, [\"update\", \"-y\"])\n didUpdate = true\n }\n\n if (version !== undefined && version !== \"\") {\n try {\n await execaSudo(apt, [\"install\", \"-y\", `${name}=${version}`])\n } catch {\n await execaSudo(apt, [\"install\", \"-y\", `${name}-${version}`])\n }\n } else {\n await execaSudo(apt, [\"install\", \"-y\", name])\n }\n\n return { binDir: \"/usr/bin/\" }\n}\n","/* eslint-disable require-atomic-updates */\nimport execa from \"execa\"\nimport which from \"which\"\nimport { setupBrew } from \"../../brew/brew\"\nimport { InstallationInfo } from \"./setupBin\"\n\nlet hasBrew = false\n\n/** A function that installs a package using brew */\nexport function setupBrewPack(name: string, version?: string): InstallationInfo {\n if (!hasBrew || which.sync(\"brew\", { nothrow: true }) === null) {\n setupBrew(\"\", \"\", process.arch)\n hasBrew = true\n }\n\n // brew is not thread-safe\n execa.sync(\"brew\", [\"install\", version !== undefined && version !== \"\" ? `${name}@${version}` : name])\n\n return { binDir: \"/usr/local/bin/\" }\n}\n","import { addPath as ghAddPath } from \"@actions/core\"\nimport { delimiter } from \"path\"\nimport * as core from \"@actions/core\"\nimport execa from \"execa\"\n\n/** An add path function that works locally or inside GitHub Actions */\nexport async function addPath(path: string) {\n try {\n ghAddPath(path)\n } catch (err) {\n core.error(err as Error)\n switch (process.platform) {\n case \"win32\": {\n await execa(`setx PATH=${path};%PATH%`)\n break\n }\n case \"linux\":\n case \"darwin\": {\n await execa.command(`echo \"export PATH=${path}:$PATH\" >> ~/.profile`)\n await execa.command(`source ~/.profile`)\n core.info(`${path} was added to ~/.profile`)\n break\n }\n default: {\n core.error(`Failed to add ${path} to the percistent PATH. You should add it manually.`)\n process.env.PATH = `${path}${delimiter}${process.env.PATH}`\n }\n }\n }\n}\n","/* eslint-disable require-atomic-updates */\nimport execa from \"execa\"\nimport { existsSync } from \"fs\"\nimport { dirname } from \"path\"\nimport which from \"which\"\nimport { InstallationInfo } from \"../utils/setup/setupBin\"\n\nlet binDir: string | undefined\n\nexport function setupChocolatey(\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _version: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _setupCppDir: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _arch: string\n): InstallationInfo | undefined {\n if (process.platform !== \"win32\") {\n return undefined\n }\n\n if (typeof binDir === \"string\") {\n return { binDir }\n }\n\n const maybeBinDir = which.sync(\"choco\", { nothrow: true })\n if (maybeBinDir !== null) {\n binDir = dirname(maybeBinDir)\n return { binDir }\n }\n\n // https://docs.chocolatey.org/en-us/choco/setup#install-with-cmd.exe\n execa.commandSync(\n `@\"%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\"`\n )\n\n const maybeChoco = which.sync(\"choco\", { nothrow: true })\n if (maybeChoco !== null) {\n binDir = dirname(maybeChoco)\n } else {\n binDir = \"C:/ProgramData/Chocolatey/bin/\"\n }\n\n if (existsSync(binDir)) {\n return { binDir }\n }\n return undefined\n}\n","/* eslint-disable require-atomic-updates */\nimport { addPath } from \"../path/addPath\"\nimport which from \"which\"\nimport { setupChocolatey } from \"../../chocolatey/chocolatey\"\nimport { InstallationInfo } from \"./setupBin\"\nimport execa from \"execa\"\n\nlet hasChoco = false\n\n/** A function that installs a package using choco */\nexport async function setupChocoPack(name: string, version?: string, args: string[] = []): Promise {\n if (!hasChoco || which.sync(\"choco\", { nothrow: true }) === null) {\n await setupChocolatey(\"\", \"\", process.arch)\n hasChoco = true\n }\n\n if (version !== undefined && version !== \"\") {\n execa.sync(\"choco\", [\"install\", \"-y\", name, `--version=${version}`, ...args])\n } else {\n execa.sync(\"choco\", [\"install\", \"-y\", name, ...args])\n }\n\n const binDir = \"C:/ProgramData/Chocolatey/bin/\"\n await addPath(binDir)\n return { binDir }\n}\n",null,null,"import { find, downloadTool, cacheDir } from \"@actions/tool-cache\"\nimport { info } from \"@actions/core\"\nimport { addPath } from \"../path/addPath\"\nimport { join } from \"path\"\nimport { existsSync } from \"fs\"\nimport * as hasha from \"hasha\"\nimport { tmpdir } from \"os\"\n\n/** A type that describes a package */\nexport type PackageInfo = {\n /** Url to download the package */\n url: string\n /** The top folder name once it is extracted. It can be `\"\"` if there is no top folder */\n extractedFolderName: string\n /** The relative directory in which the binary is located. It can be `\"\"` if the exe is in the top folder */\n binRelativeDir: string\n /** The function to extract the downloaded archive. It can be `undefined`, if the binary itself is downloaded directly. */\n extractFunction?: {\n (file: string, dest: string): Promise | Promise\n }\n}\n\nexport type InstallationInfo = {\n /** The top install dir */\n installDir?: string\n binDir: string\n}\n\n/**\n * A function that:\n *\n * - Downlodas and extracts a package\n * - Adds the bin path of the package to PATH\n * - Caches the dowloaded directory into tool cache for usage from other sessions\n *\n * @returns The installation directory\n */\nexport async function setupBin(\n name: string,\n version: string,\n getPackageInfo: (version: string, platform: NodeJS.Platform) => PackageInfo | Promise,\n setupCppDir: string\n): Promise {\n process.env.RUNNER_TEMP = process.env.RUNNER_TEMP ?? tmpdir()\n process.env.RUNNER_TOOL_CACHE = process.env.RUNNER_TOOL_CACH ?? join(tmpdir(), \"setup_cpp\", \"ToolCache\")\n\n const { url, binRelativeDir, extractedFolderName, extractFunction } = await getPackageInfo(version, process.platform)\n\n // Restore from cache (if found).\n try {\n const dir = find(name, version)\n if (dir) {\n info(`${name} ${version} was found in the cache.`)\n const installDir = join(dir, extractedFolderName)\n const binDir = join(installDir, binRelativeDir)\n await addPath(binDir)\n return { installDir, binDir }\n }\n } catch {\n // fails on a local machine?\n }\n\n // Get an unique output directory name from the URL.\n const key: string = await hasha.async(url, { algorithm: \"md5\" })\n const rootDir = join(setupCppDir, key)\n\n // download ane extract the package into the installation directory.\n if (!existsSync(rootDir)) {\n info(`Download and extract ${name} ${version}`)\n const downloaded = await downloadTool(url)\n await extractFunction?.(downloaded, rootDir)\n }\n\n const installDir = join(rootDir, extractedFolderName)\n const binDir = join(installDir, binRelativeDir)\n\n // Adding the bin dir to the path\n /** The directory which the tool is installed to */\n info(`Add ${binDir} to PATH`)\n await addPath(binDir)\n\n // check if inside Github Actions. If so, cache the installation\n if (typeof process.env.RUNNER_TOOL_CACHE === \"string\") {\n await cacheDir(rootDir, name, version)\n }\n\n return { installDir, binDir }\n}\n/** Add bin extension to a binary. This will be `.exe` on Windows. */\nexport function addBinExtension(name: string) {\n if (process.platform === \"win32\") {\n return `${name}.exe`\n }\n return name\n}\n","import { extractZip, extractTar } from \"@actions/tool-cache\"\nimport { getInput } from \"@actions/core\"\nimport semverLte from \"semver/functions/lte\"\nimport semverCoerce from \"semver/functions/coerce\"\nimport { setupBin, PackageInfo, InstallationInfo } from \"../utils/setup/setupBin\"\n\n/** Get the platform data for cmake */\nfunction getCmakePackageInfo(version: string, platform?: NodeJS.Platform): PackageInfo {\n const semVersion = semverCoerce(version) ?? version\n const platformStr = platform ?? process.platform\n const arch = getInput(\"architecture\") || process.arch\n switch (platformStr) {\n case \"win32\": {\n const isOld = semverLte(semVersion, \"v3.19.6\")\n let osArchStr: string\n if ([\"ia32\", \"x86\", \"i386\", \"x32\"].includes(arch)) {\n osArchStr = isOld ? \"win32-x86\" : \"windows-i386\"\n } else {\n osArchStr = isOld ? \"win64-x64\" : \"windows-x86_64\"\n }\n const folderName = `cmake-${version}-${osArchStr}`\n return {\n binRelativeDir: \"bin/\",\n extractedFolderName: folderName,\n extractFunction: extractZip,\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.zip`,\n }\n }\n case \"darwin\": {\n const isOld = semverLte(semVersion, \"v3.19.1\")\n const osArchStr = isOld ? \"Darwin-x86_64\" : \"macos-universal\"\n const folderName = `cmake-${version}-${osArchStr}`\n return {\n binRelativeDir: \"CMake.app/Contents/bin/\",\n extractedFolderName: folderName,\n extractFunction: extractTar,\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.tar.gz`,\n }\n }\n case \"linux\": {\n const isOld = semverLte(semVersion, \"v3.19.8\")\n let osArchStr: string\n if ([\"aarch64\"].includes(arch)) {\n osArchStr = isOld ? \"Linux-aarch64\" : \"linux-aarch64\"\n } else {\n osArchStr = isOld ? \"Linux-x86_64\" : \"linux-x86_64\"\n }\n const folderName = `cmake-${version}-${osArchStr}`\n return {\n binRelativeDir: \"bin/\",\n extractedFolderName: folderName,\n extractFunction: extractTar,\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.tar.gz`,\n }\n }\n default:\n throw new Error(`Unsupported platform '${platformStr}'`)\n }\n}\n\n/** Setup cmake */\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupCmake(version: string, setupCppDir: string, _arch: string): Promise {\n return setupBin(\"cmake\", version, getCmakePackageInfo, setupCppDir)\n}\n","import fs from 'fs';\nimport * as path from 'path';\nimport * as semver from 'semver';\n\nexport const IS_WINDOWS = process.platform === 'win32';\nexport const IS_LINUX = process.platform === 'linux';\nexport const WINDOWS_ARCHS = ['x86', 'x64'];\nexport const WINDOWS_PLATFORMS = ['win32', 'win64'];\nconst PYPY_VERSION_FILE = 'PYPY_VERSION';\n\nexport interface IPyPyManifestAsset {\n filename: string;\n arch: string;\n platform: string;\n download_url: string;\n}\n\nexport interface IPyPyManifestRelease {\n pypy_version: string;\n python_version: string;\n stable: boolean;\n latest_pypy: boolean;\n files: IPyPyManifestAsset[];\n}\n\n/** create Symlinks for downloaded PyPy\n * It should be executed only for downloaded versions in runtime, because\n * toolcache versions have this setup.\n */\nexport function createSymlinkInFolder(\n folderPath: string,\n sourceName: string,\n targetName: string,\n setExecutable = false\n) {\n const sourcePath = path.join(folderPath, sourceName);\n const targetPath = path.join(folderPath, targetName);\n if (fs.existsSync(targetPath)) {\n return;\n }\n\n fs.symlinkSync(sourcePath, targetPath);\n if (!IS_WINDOWS && setExecutable) {\n fs.chmodSync(targetPath, '755');\n }\n}\n\nexport function validateVersion(version: string) {\n return isNightlyKeyword(version) || Boolean(semver.validRange(version));\n}\n\nexport function isNightlyKeyword(pypyVersion: string) {\n return pypyVersion === 'nightly';\n}\n\nexport function getPyPyVersionFromPath(installDir: string) {\n return path.basename(path.dirname(installDir));\n}\n\n/**\n * In tool-cache, we put PyPy to '/PyPy//x64'\n * There is no easy way to determine what PyPy version is located in specific folder\n * 'pypy --version' is not reliable enough since it is not set properly for preview versions\n * \"7.3.3rc1\" is marked as '7.3.3' in 'pypy --version'\n * so we put PYPY_VERSION file to PyPy directory when install it to VM and read it when we need to know version\n * PYPY_VERSION contains exact version from 'versions.json'\n */\nexport function readExactPyPyVersionFile(installDir: string) {\n let pypyVersion = '';\n let fileVersion = path.join(installDir, PYPY_VERSION_FILE);\n if (fs.existsSync(fileVersion)) {\n pypyVersion = fs.readFileSync(fileVersion).toString();\n }\n\n return pypyVersion;\n}\n\nexport function writeExactPyPyVersionFile(\n installDir: string,\n resolvedPyPyVersion: string\n) {\n const pypyFilePath = path.join(installDir, PYPY_VERSION_FILE);\n fs.writeFileSync(pypyFilePath, resolvedPyPyVersion);\n}\n\n/**\n * Python version should be specified explicitly like \"x.y\" (2.7, 3.6, 3.7)\n * \"3.x\" or \"3\" are not supported\n * because it could cause ambiguity when both PyPy version and Python version are not precise\n */\nexport function validatePythonVersionFormatForPyPy(version: string) {\n const re = /^\\d+\\.\\d+$/;\n return re.test(version);\n}\n","import * as os from 'os';\nimport * as path from 'path';\nimport {IS_WINDOWS, IS_LINUX} from './utils';\n\nimport * as semver from 'semver';\n\nimport * as installer from './install-python';\n\nimport * as core from '@actions/core';\nimport * as tc from '@actions/tool-cache';\n\n// Python has \"scripts\" or \"bin\" directories where command-line tools that come with packages are installed.\n// This is where pip is, along with anything that pip installs.\n// There is a seperate directory for `pip install --user`.\n//\n// For reference, these directories are as follows:\n// macOS / Linux:\n// /bin (by default /usr/local/bin, but not on hosted agents -- see the `else`)\n// (--user) ~/.local/bin\n// Windows:\n// \\Scripts\n// (--user) %APPDATA%\\Python\\PythonXY\\Scripts\n// See https://docs.python.org/3/library/sysconfig.html\n\nfunction binDir(installDir: string): string {\n if (IS_WINDOWS) {\n return path.join(installDir, 'Scripts');\n } else {\n return path.join(installDir, 'bin');\n }\n}\n\n// Note on the tool cache layout for PyPy:\n// PyPy has its own versioning scheme that doesn't follow the Python versioning scheme.\n// A particular version of PyPy may contain one or more versions of the Python interpreter.\n// For example, PyPy 7.0 contains Python 2.7, 3.5, and 3.6-alpha.\n// We only care about the Python version, so we don't use the PyPy version for the tool cache.\nfunction usePyPy(\n majorVersion: '2' | '3.6',\n architecture: string\n): InstalledVersion {\n const findPyPy = tc.find.bind(undefined, 'PyPy', majorVersion);\n let installDir: string | null = findPyPy(architecture);\n\n if (!installDir && IS_WINDOWS) {\n // PyPy only precompiles binaries for x86, but the architecture parameter defaults to x64.\n // On our Windows virtual environments, we only install an x86 version.\n // Fall back to x86.\n installDir = findPyPy('x86');\n }\n\n if (!installDir) {\n // PyPy not installed in $(Agent.ToolsDirectory)\n throw new Error(`PyPy ${majorVersion} not found`);\n }\n\n // For PyPy, Windows uses 'bin', not 'Scripts'.\n const _binDir = path.join(installDir, 'bin');\n\n // On Linux and macOS, the Python interpreter is in 'bin'.\n // On Windows, it is in the installation root.\n const pythonLocation = IS_WINDOWS ? installDir : _binDir;\n core.exportVariable('pythonLocation', pythonLocation);\n\n core.addPath(installDir);\n core.addPath(_binDir);\n // Starting from PyPy 7.3.1, the folder that is used for pip and anything that pip installs should be \"Scripts\" on Windows.\n if (IS_WINDOWS) {\n core.addPath(path.join(installDir, 'Scripts'));\n }\n\n const impl = 'pypy' + majorVersion.toString();\n core.setOutput('python-version', impl);\n\n return {impl: impl, version: versionFromPath(installDir)};\n}\n\nasync function useCpythonVersion(\n version: string,\n architecture: string\n): Promise {\n const desugaredVersionSpec = desugarDevVersion(version);\n const semanticVersionSpec = pythonVersionToSemantic(desugaredVersionSpec);\n core.debug(`Semantic version spec of ${version} is ${semanticVersionSpec}`);\n\n let installDir: string | null = tc.find(\n 'Python',\n semanticVersionSpec,\n architecture\n );\n if (!installDir) {\n core.info(\n `Version ${semanticVersionSpec} was not found in the local cache`\n );\n const foundRelease = await installer.findReleaseFromManifest(\n semanticVersionSpec,\n architecture\n );\n\n if (foundRelease && foundRelease.files && foundRelease.files.length > 0) {\n core.info(`Version ${semanticVersionSpec} is available for downloading`);\n await installer.installCpythonFromRelease(foundRelease);\n\n installDir = tc.find('Python', semanticVersionSpec, architecture);\n }\n }\n\n if (!installDir) {\n throw new Error(\n [\n `Version ${version} with arch ${architecture} not found`,\n `The list of all available versions can be found here: ${installer.MANIFEST_URL}`\n ].join(os.EOL)\n );\n }\n\n core.exportVariable('pythonLocation', installDir);\n\n if (IS_LINUX) {\n const libPath = process.env.LD_LIBRARY_PATH\n ? `:${process.env.LD_LIBRARY_PATH}`\n : '';\n const pyLibPath = path.join(installDir, 'lib');\n\n if (!libPath.split(':').includes(pyLibPath)) {\n core.exportVariable('LD_LIBRARY_PATH', pyLibPath + libPath);\n }\n }\n\n core.addPath(installDir);\n core.addPath(binDir(installDir));\n\n if (IS_WINDOWS) {\n // Add --user directory\n // `installDir` from tool cache should look like $RUNNER_TOOL_CACHE/Python//x64/\n // So if `findLocalTool` succeeded above, we must have a conformant `installDir`\n const version = path.basename(path.dirname(installDir));\n const major = semver.major(version);\n const minor = semver.minor(version);\n\n const userScriptsDir = path.join(\n process.env['APPDATA'] || '',\n 'Python',\n `Python${major}${minor}`,\n 'Scripts'\n );\n core.addPath(userScriptsDir);\n }\n // On Linux and macOS, pip will create the --user directory and add it to PATH as needed.\n\n const installed = versionFromPath(installDir);\n core.setOutput('python-version', installed);\n\n return {impl: 'CPython', version: installed};\n}\n\n/** Convert versions like `3.8-dev` to a version like `>= 3.8.0-a0`. */\nfunction desugarDevVersion(versionSpec: string) {\n if (versionSpec.endsWith('-dev')) {\n const versionRoot = versionSpec.slice(0, -'-dev'.length);\n return `>= ${versionRoot}.0-a0`;\n } else {\n return versionSpec;\n }\n}\n\n/** Extracts python version from install path from hosted tool cache as described in README.md */\nfunction versionFromPath(installDir: string) {\n const parts = installDir.split(path.sep);\n const idx = parts.findIndex(part => part === 'PyPy' || part === 'Python');\n\n return parts[idx + 1] || '';\n}\n\ninterface InstalledVersion {\n impl: string;\n version: string;\n}\n\n/**\n * Python's prelease versions look like `3.7.0b2`.\n * This is the one part of Python versioning that does not look like semantic versioning, which specifies `3.7.0-b2`.\n * If the version spec contains prerelease versions, we need to convert them to the semantic version equivalent.\n */\nexport function pythonVersionToSemantic(versionSpec: string) {\n const prereleaseVersion = /(\\d+\\.\\d+\\.\\d+)((?:a|b|rc)\\d*)/g;\n return versionSpec.replace(prereleaseVersion, '$1-$2');\n}\n\nexport async function findPythonVersion(\n version: string,\n architecture: string\n): Promise {\n switch (version.toUpperCase()) {\n case 'PYPY2':\n return usePyPy('2', architecture);\n case 'PYPY3':\n // keep pypy3 pointing to 3.6 for backward compatibility\n return usePyPy('3.6', architecture);\n default:\n return await useCpythonVersion(version, architecture);\n }\n}\n","import * as path from 'path';\nimport * as core from '@actions/core';\nimport * as tc from '@actions/tool-cache';\nimport * as semver from 'semver';\nimport * as httpm from '@actions/http-client';\nimport * as exec from '@actions/exec';\nimport fs from 'fs';\n\nimport {\n IS_WINDOWS,\n WINDOWS_ARCHS,\n WINDOWS_PLATFORMS,\n IPyPyManifestRelease,\n createSymlinkInFolder,\n isNightlyKeyword,\n writeExactPyPyVersionFile\n} from './utils';\n\nexport async function installPyPy(\n pypyVersion: string,\n pythonVersion: string,\n architecture: string\n) {\n let downloadDir;\n\n const releases = await getAvailablePyPyVersions();\n if (!releases || releases.length === 0) {\n throw new Error('No release was found in PyPy version.json');\n }\n\n const releaseData = findRelease(\n releases,\n pythonVersion,\n pypyVersion,\n architecture\n );\n\n if (!releaseData || !releaseData.foundAsset) {\n throw new Error(\n `PyPy version ${pythonVersion} (${pypyVersion}) with arch ${architecture} not found`\n );\n }\n\n const {foundAsset, resolvedPythonVersion, resolvedPyPyVersion} = releaseData;\n let downloadUrl = `${foundAsset.download_url}`;\n\n core.info(`Downloading PyPy from \"${downloadUrl}\" ...`);\n const pypyPath = await tc.downloadTool(downloadUrl);\n\n core.info('Extracting downloaded archive...');\n if (IS_WINDOWS) {\n downloadDir = await tc.extractZip(pypyPath);\n } else {\n downloadDir = await tc.extractTar(pypyPath, undefined, 'x');\n }\n\n // root folder in archive can have unpredictable name so just take the first folder\n // downloadDir is unique folder under TEMP and can't contain any other folders\n const archiveName = fs.readdirSync(downloadDir)[0];\n\n const toolDir = path.join(downloadDir, archiveName);\n let installDir = toolDir;\n if (!isNightlyKeyword(resolvedPyPyVersion)) {\n installDir = await tc.cacheDir(\n toolDir,\n 'PyPy',\n resolvedPythonVersion,\n architecture\n );\n }\n\n writeExactPyPyVersionFile(installDir, resolvedPyPyVersion);\n\n const binaryPath = getPyPyBinaryPath(installDir);\n await createPyPySymlink(binaryPath, resolvedPythonVersion);\n await installPip(binaryPath);\n\n return {installDir, resolvedPythonVersion, resolvedPyPyVersion};\n}\n\nasync function getAvailablePyPyVersions() {\n const url = 'https://downloads.python.org/pypy/versions.json';\n const http: httpm.HttpClient = new httpm.HttpClient('tool-cache');\n\n const response = await http.getJson(url);\n if (!response.result) {\n throw new Error(\n `Unable to retrieve the list of available PyPy versions from '${url}'`\n );\n }\n\n return response.result;\n}\n\nasync function createPyPySymlink(\n pypyBinaryPath: string,\n pythonVersion: string\n) {\n const version = semver.coerce(pythonVersion)!;\n const pythonBinaryPostfix = semver.major(version);\n const pypyBinaryPostfix = pythonBinaryPostfix === 2 ? '' : '3';\n let binaryExtension = IS_WINDOWS ? '.exe' : '';\n\n core.info('Creating symlinks...');\n createSymlinkInFolder(\n pypyBinaryPath,\n `pypy${pypyBinaryPostfix}${binaryExtension}`,\n `python${pythonBinaryPostfix}${binaryExtension}`,\n true\n );\n\n createSymlinkInFolder(\n pypyBinaryPath,\n `pypy${pypyBinaryPostfix}${binaryExtension}`,\n `python${binaryExtension}`,\n true\n );\n}\n\nasync function installPip(pythonLocation: string) {\n core.info('Installing and updating pip');\n const pythonBinary = path.join(pythonLocation, 'python');\n await exec.exec(`${pythonBinary} -m ensurepip`);\n\n await exec.exec(\n `${pythonLocation}/python -m pip install --ignore-installed pip`\n );\n}\n\nexport function findRelease(\n releases: IPyPyManifestRelease[],\n pythonVersion: string,\n pypyVersion: string,\n architecture: string\n) {\n const filterReleases = releases.filter(item => {\n const isPythonVersionSatisfied = semver.satisfies(\n semver.coerce(item.python_version)!,\n pythonVersion\n );\n const isPyPyNightly =\n isNightlyKeyword(pypyVersion) && isNightlyKeyword(item.pypy_version);\n const isPyPyVersionSatisfied =\n isPyPyNightly ||\n semver.satisfies(pypyVersionToSemantic(item.pypy_version), pypyVersion);\n const isArchPresent =\n item.files &&\n (IS_WINDOWS\n ? isArchPresentForWindows(item)\n : isArchPresentForMacOrLinux(item, architecture, process.platform));\n return isPythonVersionSatisfied && isPyPyVersionSatisfied && isArchPresent;\n });\n\n if (filterReleases.length === 0) {\n return null;\n }\n\n const sortedReleases = filterReleases.sort((previous, current) => {\n return (\n semver.compare(\n semver.coerce(pypyVersionToSemantic(current.pypy_version))!,\n semver.coerce(pypyVersionToSemantic(previous.pypy_version))!\n ) ||\n semver.compare(\n semver.coerce(current.python_version)!,\n semver.coerce(previous.python_version)!\n )\n );\n });\n\n const foundRelease = sortedReleases[0];\n const foundAsset = IS_WINDOWS\n ? findAssetForWindows(foundRelease)\n : findAssetForMacOrLinux(foundRelease, architecture, process.platform);\n\n return {\n foundAsset,\n resolvedPythonVersion: foundRelease.python_version,\n resolvedPyPyVersion: foundRelease.pypy_version\n };\n}\n\n/** Get PyPy binary location from the tool of installation directory\n * - On Linux and macOS, the Python interpreter is in 'bin'.\n * - On Windows, it is in the installation root.\n */\nexport function getPyPyBinaryPath(installDir: string) {\n const _binDir = path.join(installDir, 'bin');\n return IS_WINDOWS ? installDir : _binDir;\n}\n\nexport function pypyVersionToSemantic(versionSpec: string) {\n const prereleaseVersion = /(\\d+\\.\\d+\\.\\d+)((?:a|b|rc))(\\d*)/g;\n return versionSpec.replace(prereleaseVersion, '$1-$2.$3');\n}\n\nexport function isArchPresentForWindows(item: any) {\n return item.files.some(\n (file: any) =>\n WINDOWS_ARCHS.includes(file.arch) &&\n WINDOWS_PLATFORMS.includes(file.platform)\n );\n}\n\nexport function isArchPresentForMacOrLinux(\n item: any,\n architecture: string,\n platform: string\n) {\n return item.files.some(\n (file: any) => file.arch === architecture && file.platform === platform\n );\n}\n\nexport function findAssetForWindows(releases: any) {\n return releases.files.find(\n (item: any) =>\n WINDOWS_ARCHS.includes(item.arch) &&\n WINDOWS_PLATFORMS.includes(item.platform)\n );\n}\n\nexport function findAssetForMacOrLinux(\n releases: any,\n architecture: string,\n platform: string\n) {\n return releases.files.find(\n (item: any) => item.arch === architecture && item.platform === platform\n );\n}\n","export function isCI() {\n return !(process.env.CI === undefined || process.env.CI === \"\" || process.env.CI === \"false\")\n}\n","import * as core from \"@actions/core\"\nimport * as finder from \"./setup-python/src/find-python\"\nimport * as finderPyPy from \"./setup-python/src/find-pypy\"\nimport * as path from \"path\"\nimport { addPath } from \"../utils/path/addPath\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport hasha from \"hasha\"\nimport { join } from \"path\"\nimport { isCI } from \"../utils/env/isci\"\n\nfunction isPyPyVersion(versionSpec: string) {\n return versionSpec.startsWith(\"pypy-\")\n}\n\nexport async function setupPython(version: string, setupCppDir: string, arch: string) {\n if (!isCI()) {\n // TODO parse versoin\n return setupPythonViaSystem(\"\", setupCppDir, arch)\n }\n\n try {\n if (isPyPyVersion(version)) {\n const installed = await finderPyPy.findPyPyVersion(version, arch)\n core.info(\n `Successfully setup PyPy ${installed.resolvedPyPyVersion} with Python (${installed.resolvedPythonVersion})`\n )\n } else {\n const installed = await finder.findPythonVersion(version, arch)\n core.info(`Successfully setup ${installed.impl} (${installed.version})`)\n }\n const matchersPath = path.join(\"setup-pthon\", \".github\")\n core.info(`##[add-matcher]${path.join(matchersPath, \"python.json\")}`)\n return undefined\n } catch (err) {\n return setupPythonViaSystem(version, setupCppDir, arch)\n }\n}\n\nexport async function setupPythonViaSystem(version: string, setupCppDir: string, arch: string) {\n switch (process.platform) {\n case \"win32\": {\n // Get an unique output directory name from the URL.\n const key: string = await hasha.async(version + arch, { algorithm: \"md5\" })\n const installDir = join(setupCppDir, key, \"python\")\n const binDir = installDir\n await setupChocoPack(\"python3\", version, [`/InstallDir:${installDir}`])\n\n // Adding the bin dir to the path\n /** The directory which the tool is installed to */\n core.info(`Add ${binDir} to PATH`)\n await addPath(binDir)\n\n return { installDir, binDir }\n }\n case \"darwin\": {\n return setupBrewPack(\"python3\", version)\n }\n case \"linux\": {\n const installInfo = await setupAptPack(\"python3\", version)\n await setupAptPack(\"python3-pip\")\n return installInfo\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import * as path from 'path';\nimport * as pypyInstall from './install-pypy';\nimport {\n IS_WINDOWS,\n WINDOWS_ARCHS,\n validateVersion,\n getPyPyVersionFromPath,\n readExactPyPyVersionFile,\n validatePythonVersionFormatForPyPy\n} from './utils';\n\nimport * as semver from 'semver';\nimport * as core from '@actions/core';\nimport * as tc from '@actions/tool-cache';\n\ninterface IPyPyVersionSpec {\n pypyVersion: string;\n pythonVersion: string;\n}\n\nexport async function findPyPyVersion(\n versionSpec: string,\n architecture: string\n): Promise<{resolvedPyPyVersion: string; resolvedPythonVersion: string}> {\n let resolvedPyPyVersion = '';\n let resolvedPythonVersion = '';\n let installDir: string | null;\n\n const pypyVersionSpec = parsePyPyVersion(versionSpec);\n\n ({installDir, resolvedPythonVersion, resolvedPyPyVersion} = findPyPyToolCache(\n pypyVersionSpec.pythonVersion,\n pypyVersionSpec.pypyVersion,\n architecture\n ));\n\n if (!installDir) {\n ({\n installDir,\n resolvedPythonVersion,\n resolvedPyPyVersion\n } = await pypyInstall.installPyPy(\n pypyVersionSpec.pypyVersion,\n pypyVersionSpec.pythonVersion,\n architecture\n ));\n }\n\n const pipDir = IS_WINDOWS ? 'Scripts' : 'bin';\n const _binDir = path.join(installDir, pipDir);\n const pythonLocation = pypyInstall.getPyPyBinaryPath(installDir);\n core.exportVariable('pythonLocation', pythonLocation);\n core.addPath(pythonLocation);\n core.addPath(_binDir);\n\n return {resolvedPyPyVersion, resolvedPythonVersion};\n}\n\nexport function findPyPyToolCache(\n pythonVersion: string,\n pypyVersion: string,\n architecture: string\n) {\n let resolvedPyPyVersion = '';\n let resolvedPythonVersion = '';\n let installDir: string | null = IS_WINDOWS\n ? findPyPyInstallDirForWindows(pythonVersion)\n : tc.find('PyPy', pythonVersion, architecture);\n\n if (installDir) {\n // 'tc.find' finds tool based on Python version but we also need to check\n // whether PyPy version satisfies requested version.\n resolvedPythonVersion = getPyPyVersionFromPath(installDir);\n resolvedPyPyVersion = readExactPyPyVersionFile(installDir);\n\n const isPyPyVersionSatisfies = semver.satisfies(\n resolvedPyPyVersion,\n pypyVersion\n );\n if (!isPyPyVersionSatisfies) {\n installDir = null;\n resolvedPyPyVersion = '';\n resolvedPythonVersion = '';\n }\n }\n\n if (!installDir) {\n core.info(\n `PyPy version ${pythonVersion} (${pypyVersion}) was not found in the local cache`\n );\n }\n\n return {installDir, resolvedPythonVersion, resolvedPyPyVersion};\n}\n\nexport function parsePyPyVersion(versionSpec: string): IPyPyVersionSpec {\n const versions = versionSpec.split('-').filter(item => !!item);\n\n if (versions.length < 2 || versions[0] != 'pypy') {\n throw new Error(\n \"Invalid 'version' property for PyPy. PyPy version should be specified as 'pypy-'. See README for examples and documentation.\"\n );\n }\n\n const pythonVersion = versions[1];\n let pypyVersion: string;\n if (versions.length > 2) {\n pypyVersion = pypyInstall.pypyVersionToSemantic(versions[2]);\n } else {\n pypyVersion = 'x';\n }\n\n if (!validateVersion(pythonVersion) || !validateVersion(pypyVersion)) {\n throw new Error(\n \"Invalid 'version' property for PyPy. Both Python version and PyPy versions should satisfy SemVer notation. See README for examples and documentation.\"\n );\n }\n\n if (!validatePythonVersionFormatForPyPy(pythonVersion)) {\n throw new Error(\n \"Invalid format of Python version for PyPy. Python version should be specified in format 'x.y'. See README for examples and documentation.\"\n );\n }\n\n return {\n pypyVersion: pypyVersion,\n pythonVersion: pythonVersion\n };\n}\n\nexport function findPyPyInstallDirForWindows(pythonVersion: string): string {\n let installDir = '';\n\n WINDOWS_ARCHS.forEach(\n architecture =>\n (installDir = installDir || tc.find('PyPy', pythonVersion, architecture))\n );\n\n return installDir;\n}\n","import * as path from 'path';\nimport * as core from '@actions/core';\nimport * as tc from '@actions/tool-cache';\nimport * as exec from '@actions/exec';\nimport {ExecOptions} from '@actions/exec/lib/interfaces';\nimport {IS_WINDOWS, IS_LINUX} from './utils';\n\nconst TOKEN = core.getInput('token');\nconst AUTH = !TOKEN || isGhes() ? undefined : `token ${TOKEN}`;\nconst MANIFEST_REPO_OWNER = 'actions';\nconst MANIFEST_REPO_NAME = 'python-versions';\nconst MANIFEST_REPO_BRANCH = 'main';\nexport const MANIFEST_URL = `https://raw.githubusercontent.com/${MANIFEST_REPO_OWNER}/${MANIFEST_REPO_NAME}/${MANIFEST_REPO_BRANCH}/versions-manifest.json`;\n\nexport async function findReleaseFromManifest(\n semanticVersionSpec: string,\n architecture: string\n): Promise {\n const manifest: tc.IToolRelease[] = await tc.getManifestFromRepo(\n MANIFEST_REPO_OWNER,\n MANIFEST_REPO_NAME,\n AUTH,\n MANIFEST_REPO_BRANCH\n );\n return await tc.findFromManifest(\n semanticVersionSpec,\n false,\n manifest,\n architecture\n );\n}\n\nasync function installPython(workingDirectory: string) {\n const options: ExecOptions = {\n cwd: workingDirectory,\n env: {\n ...process.env,\n ...(IS_LINUX && {LD_LIBRARY_PATH: path.join(workingDirectory, 'lib')})\n },\n silent: true,\n listeners: {\n stdout: (data: Buffer) => {\n core.info(data.toString().trim());\n },\n stderr: (data: Buffer) => {\n core.error(data.toString().trim());\n }\n }\n };\n\n if (IS_WINDOWS) {\n await exec.exec('powershell', ['./setup.ps1'], options);\n } else {\n await exec.exec('bash', ['./setup.sh'], options);\n }\n}\n\nexport async function installCpythonFromRelease(release: tc.IToolRelease) {\n const downloadUrl = release.files[0].download_url;\n\n core.info(`Download from \"${downloadUrl}\"`);\n const pythonPath = await tc.downloadTool(downloadUrl, undefined, AUTH);\n core.info('Extract downloaded archive');\n let pythonExtractedFolder;\n if (IS_WINDOWS) {\n pythonExtractedFolder = await tc.extractZip(pythonPath);\n } else {\n pythonExtractedFolder = await tc.extractTar(pythonPath);\n }\n\n core.info('Execute installation script');\n await installPython(pythonExtractedFolder);\n}\n\nfunction isGhes(): boolean {\n const ghUrl = new URL(\n process.env['GITHUB_SERVER_URL'] || 'https://github.com'\n );\n return ghUrl.hostname.toUpperCase() !== 'GITHUB.COM';\n}\n","import * as https from \"https\"\n\nexport function isValidUrl(url: string) {\n return new Promise((resolve) => {\n https.get(url, (res) => {\n if (res.statusCode !== undefined && res.statusCode >= 200 && res.statusCode <= 399) {\n resolve(true)\n } else {\n resolve(false)\n }\n })\n })\n}\n","/* eslint-disable require-atomic-updates */\nimport { getExecOutput } from \"@actions/exec\"\nimport execa from \"execa\"\nimport which from \"which\"\nimport { info } from \"@actions/core\"\nimport { addPath } from \"../path/addPath\"\nimport { setupPython } from \"../../python/python\"\nimport { isBinUptoDate } from \"./version\"\nimport { join } from \"path\"\n\nlet pip: string | undefined\n\nlet binDir: string | undefined\n\n/** A function that installs a package using pip */\nexport async function setupPipPack(name: string, version?: string) {\n // setup python and pip if needed\n if (pip === undefined) {\n if (which.sync(\"pip3\", { nothrow: true }) !== null) {\n pip = \"pip3\"\n } else if (which.sync(\"pip\", { nothrow: true }) !== null && (await isBinUptoDate(\"python\", \"3.0.0\"))) {\n pip = \"pip\"\n } else {\n await setupPython(\"3.x\", \"\", process.arch)\n pip = \"pip3\"\n }\n }\n\n execa.sync(pip, [\"install\", version !== undefined && version !== \"\" ? `${name}==${version}` : name])\n\n if (binDir === undefined) {\n if (process.platform === \"linux\") {\n binDir = \"/home/runner/.local/bin/\"\n } else if (process.platform === \"darwin\") {\n binDir = \"/usr/local/bin/\"\n } else {\n try {\n binDir = join(\n (await getExecOutput('python3 -c \"import sys;print(sys.base_exec_prefix);\"')).stdout.trim(),\n \"Scripts\"\n )\n } catch {\n binDir = join(\n (await getExecOutput('python -c \"import sys;print(sys.base_exec_prefix);\"')).stdout.trim(),\n \"Scripts\"\n )\n }\n }\n info(`${binDir} to PATH`)\n await addPath(binDir)\n }\n\n return { binDir }\n}\n","import { isValidUrl } from \"../http/validate_url\"\nimport semverCompare from \"semver/functions/compare\"\nimport { getExecOutput } from \"@actions/exec\"\n\n/**\n * Gets the specific versions supported by this action compatible with the supplied (specific or minimum) version in\n * descending order of release (e.g., `5.0.2`, `5.0.1`, and `5.0.0` for `5`).\n */\nexport function getSpecificVersions(versions: Set, semversion: string): string[] {\n return Array.from(versions)\n .filter((v) => /^\\d+\\.\\d+\\.\\d+$/.test(v) && v.startsWith(semversion))\n .sort()\n .reverse()\n}\n\n/**\n * Gets the specific and minimum versions that can be used to refer to the supplied specific versions (e.g., `3`, `3.5`,\n * `3.5.2` for `3.5.2`).\n */\nexport function getVersions(specific: string[]): Set {\n const versions = new Set(specific)\n\n for (const version of specific) {\n versions.add(/^\\d+/.exec(version)![0])\n versions.add(/^\\d+\\.\\d+/.exec(version)![0])\n }\n\n return versions\n}\n\n/** Gets the most recent specific version for which there is a valid download URL. */\nexport async function getSpecificVersionAndUrl(\n versions: Set,\n platform: string,\n version: string,\n getUrl: (platform: string, version: string) => string | null | Promise\n): Promise<[string, string]> {\n if (!versions.has(version)) {\n throw new Error(`Unsupported target! (platform='${platform}', version='${version}')`)\n }\n\n for (const specificVersion of getSpecificVersions(versions, version)) {\n // eslint-disable-next-line no-await-in-loop\n const url = await getUrl(platform, specificVersion)\n // eslint-disable-next-line no-await-in-loop\n if (url !== null && (await isValidUrl(url))) {\n return [specificVersion, url]\n }\n }\n\n throw new Error(`Unsupported target! (platform='${platform}', version='${version}')`)\n}\n\nexport const defaultVersionRegex = /v?(\\d\\S*)/\n\n/** Get the version of a binary */\nexport async function getBinVersion(file: string, versionRegex: RegExp = defaultVersionRegex) {\n try {\n const { stderr, stdout } = await getExecOutput(file, [\"--version\"])\n const version = stdout.match(versionRegex)?.[1] ?? stderr.match(versionRegex)?.[1]\n return version\n } catch (e) {\n console.error(e)\n return undefined\n }\n}\n\n/** Check if the given bin is up to date against the target version */\nexport async function isBinUptoDate(\n givenFile: string,\n targetVersion: string,\n versionRegex: RegExp = defaultVersionRegex\n) {\n const givenVersion = await getBinVersion(givenFile, versionRegex)\n if (\n typeof givenVersion === \"string\" &&\n typeof targetVersion === \"string\" &&\n givenVersion !== \"\" &&\n targetVersion !== \"\"\n ) {\n return semverCompare(givenVersion, targetVersion) !== -1\n } else {\n // assume given version is old\n return false\n }\n}\n","import execa from \"execa\"\nimport { mkdirP } from \"@actions/io\"\nexport { extractTar, extractXar, extract7z, extractZip } from \"@actions/tool-cache\"\n\nexport async function extractExe(file: string, dest: string) {\n await execa(\"7z\", [\"x\", file, `-o${dest}`])\n return dest\n}\n\nexport async function extractTarByExe(file: string, dest: string, flags = [\"--strip-components=1\"]) {\n try {\n await mkdirP(dest)\n } catch {\n // ignore\n }\n await execa(\"tar\", [\"xf\", file, \"-C\", dest, ...flags])\n return dest\n}\n","import * as core from \"@actions/core\"\nimport * as path from \"path\"\nimport semverLte from \"semver/functions/lte\"\nimport semverMajor from \"semver/functions/major\"\nimport { isValidUrl } from \"../utils/http/validate_url\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\nimport { extractExe, extractTarByExe } from \"../utils/setup/extract\"\nimport { getSpecificVersionAndUrl, getVersions } from \"../utils/setup/version\"\nimport { getExecOutput } from \"@actions/exec\"\nimport { existsSync } from \"fs\"\n\n//================================================\n// Version\n//================================================\n\n/** The specific and minimum LLVM versions supported by this action. */\nexport const VERSIONS: Set = getVersions([\n \"3.5.0\",\n \"3.5.1\",\n \"3.5.2\",\n \"3.6.0\",\n \"3.6.1\",\n \"3.6.2\",\n \"3.7.0\",\n \"3.7.1\",\n \"3.8.0\",\n \"3.8.1\",\n \"3.9.0\",\n \"3.9.1\",\n \"4.0.0\",\n \"4.0.1\",\n \"5.0.0\",\n \"5.0.1\",\n \"5.0.2\",\n \"6.0.0\",\n \"6.0.1\",\n \"7.0.0\",\n \"7.0.1\",\n \"7.1.0\",\n \"8.0.0\",\n \"8.0.1\",\n \"9.0.0\",\n \"9.0.1\",\n \"10.0.0\",\n \"10.0.1\",\n \"11.0.0\",\n \"11.0.1\",\n \"11.1.0\",\n \"12.0.0\",\n \"12.0.1\",\n])\n\n//================================================\n// URL\n//================================================\n\n/** Gets a LLVM download URL for GitHub. */\nfunction getGitHubUrl(version: string, prefix: string, suffix: string): string {\n const file = `${prefix}${version}${suffix}`\n return `https://github.com/llvm/llvm-project/releases/download/llvmorg-${version}/${file}`\n}\n\n/** Gets a LLVM download URL for https://releases.llvm.org. */\nfunction getReleaseUrl(version: string, prefix: string, suffix: string): string {\n const file = `${prefix}${version}${suffix}`\n return `https://releases.llvm.org/${version}/${file}`\n}\n\n/** The LLVM versions that were never released for the Darwin platform. */\nconst DARWIN_MISSING: Set = new Set([\n \"3.5.1\",\n \"3.6.1\",\n \"3.6.2\",\n \"3.7.1\",\n \"3.8.1\",\n \"3.9.1\",\n \"6.0.1\",\n \"7.0.1\",\n \"7.1.0\",\n \"8.0.1\",\n \"11.0.1\",\n \"11.1.0\",\n \"12.0.1\",\n])\n\n/** Gets an LLVM download URL for the Darwin platform. */\nfunction getDarwinUrl(version: string): string | null {\n if (DARWIN_MISSING.has(version)) {\n return null\n }\n\n const darwin = version === \"9.0.0\" ? \"-darwin-apple\" : \"-apple-darwin\"\n const prefix = \"clang+llvm-\"\n const suffix = `-x86_64${darwin}.tar.xz`\n if (semverLte(version, \"9.0.1\")) {\n return getReleaseUrl(version, prefix, suffix)\n } else {\n return getGitHubUrl(version, prefix, suffix)\n }\n}\n\n/**\n * The LLVM versions that should use the last RC version instead of the release version for the Linux (Ubuntu) platform.\n * This is useful when there were binaries released for the Linux (Ubuntu) platform for the last RC version but not for\n * the actual release version.\n */\nconst UBUNTU_RC: Map = new Map([[\"12.0.1\", \"12.0.1-rc4\"]])\n\n/** The (latest) Ubuntu versions for each LLVM version. */\nconst UBUNTU: { [key: string]: string } = {\n \"3.5.0\": \"-ubuntu-14.04\",\n \"3.5.1\": \"\",\n \"3.5.2\": \"-ubuntu-14.04\",\n \"3.6.0\": \"-ubuntu-14.04\",\n \"3.6.1\": \"-ubuntu-14.04\",\n \"3.6.2\": \"-ubuntu-14.04\",\n \"3.7.0\": \"-ubuntu-14.04\",\n \"3.7.1\": \"-ubuntu-14.04\",\n \"3.8.0\": \"-ubuntu-16.04\",\n \"3.8.1\": \"-ubuntu-16.04\",\n \"3.9.0\": \"-ubuntu-16.04\",\n \"3.9.1\": \"-ubuntu-16.04\",\n \"4.0.0\": \"-ubuntu-16.04\",\n \"5.0.0\": \"-ubuntu16.04\",\n \"5.0.1\": \"-ubuntu-16.04\",\n \"5.0.2\": \"-ubuntu-16.04\",\n \"6.0.0\": \"-ubuntu-16.04\",\n \"6.0.1\": \"-ubuntu-16.04\",\n \"7.0.0\": \"-ubuntu-16.04\",\n \"7.0.1\": \"-ubuntu-18.04\",\n \"7.1.0\": \"-ubuntu-14.04\",\n \"8.0.0\": \"-ubuntu-18.04\",\n \"9.0.0\": \"-ubuntu-18.04\",\n \"9.0.1\": \"-ubuntu-16.04\",\n \"10.0.0\": \"-ubuntu-18.04\",\n \"10.0.1\": \"-ubuntu-16.04\",\n \"11.0.0\": \"-ubuntu-20.04\",\n \"11.0.1\": \"-ubuntu-16.04\",\n \"11.1.0\": \"-ubuntu-16.04\",\n \"12.0.0\": \"-ubuntu-20.04\",\n \"12.0.1-rc4\": \"-ubuntu-21.04\",\n}\n\n/** The latest supported LLVM version for the Linux (Ubuntu) platform. */\nconst MAX_UBUNTU: string = \"12.0.1-rc4\"\n\n/** Gets an LLVM download URL for the Linux (Ubuntu) platform. */\nfunction getLinuxUrl(versionGiven: string): string {\n let version = versionGiven\n\n const rc = UBUNTU_RC.get(version)\n if (rc !== undefined) {\n version = rc\n }\n\n let ubuntu: string\n // ubuntu-version is specified\n if (version.includes(\"ubuntu\")) {\n ubuntu = version\n } else if (version !== \"\" && version in UBUNTU) {\n ubuntu = UBUNTU[version]\n } else {\n // default to the maximum vresion\n ubuntu = UBUNTU[MAX_UBUNTU]\n }\n\n const prefix = \"clang+llvm-\"\n const suffix = version === \"5.0.0\" ? `-linux-x86_64${ubuntu}.tar.xz` : `-x86_64-linux-gnu${ubuntu}.tar.xz`\n if (semverLte(version, \"9.0.1\")) {\n return getReleaseUrl(version, prefix, suffix)\n } else {\n return getGitHubUrl(version, prefix, suffix)\n }\n}\n\n/** The LLVM versions that were never released for the Windows platform. */\nconst WIN32_MISSING: Set = new Set([\"10.0.1\"])\n\n/** Gets an LLVM download URL for the Windows platform. */\nasync function getWin32Url(version: string): Promise {\n if (WIN32_MISSING.has(version)) {\n return null\n }\n\n const prefix = \"LLVM-\"\n const suffix = semverLte(version, \"3.7.0\") ? \"-win32.exe\" : \"-win64.exe\"\n\n const olderThan9_1 = semverLte(version, \"9.0.1\")\n let url: string\n let fallback = false\n if (olderThan9_1) {\n url = getReleaseUrl(version, prefix, suffix)\n if (!(await isValidUrl(url))) {\n fallback = true // fallback to github\n }\n }\n if (fallback || !olderThan9_1) {\n url = getGitHubUrl(version, prefix, suffix)\n }\n\n return url!\n}\n\n/** Gets an LLVM download URL. */\nexport function getUrl(platform: string, version: string): string | null | Promise {\n switch (platform) {\n case \"darwin\":\n return getDarwinUrl(version)\n case \"linux\":\n return getLinuxUrl(version)\n case \"win32\":\n return getWin32Url(version)\n default:\n return null\n }\n}\n\n//================================================\n// Action\n//================================================\n\nconst DEFAULT_NIX_DIRECTORY = \"./llvm\"\nconst DEFAULT_WIN32_DIRECTORY = \"C:/Program Files/LLVM\"\n\nasync function getLLVMPackageInfo(version: string, platform: NodeJS.Platform): Promise {\n const [specificVersion, url] = await getSpecificVersionAndUrl(VERSIONS, platform, version, getUrl)\n core.setOutput(\"version\", specificVersion)\n return {\n url,\n extractedFolderName: \"\",\n binRelativeDir: \"bin\",\n extractFunction: platform === \"win32\" ? extractExe : extractTarByExe,\n }\n}\n\nexport async function setupLLVM(\n version: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _setupCppDir: string | undefined,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _arch: string\n): Promise {\n let directory = _setupCppDir\n if (directory === \"\" || directory === undefined) {\n directory = process.platform === \"win32\" ? DEFAULT_WIN32_DIRECTORY : DEFAULT_NIX_DIRECTORY\n }\n\n directory = path.resolve(directory)\n\n const installationInfo = await setupBin(\"llvm\", version, getLLVMPackageInfo, directory)\n\n // Adding environment variables\n const lib = path.join(directory, \"lib\")\n\n const ld = process.env.LD_LIBRARY_PATH ?? \"\"\n const dyld = process.env.DYLD_LIBRARY_PATH ?? \"\"\n\n core.exportVariable(\"LLVM_PATH\", directory) // the output of this action\n\n const llvmMajor = semverMajor(version)\n\n // Setup LLVM as the compiler\n core.exportVariable(\"LD_LIBRARY_PATH\", `${lib}${path.delimiter}${ld}`)\n core.exportVariable(\"DYLD_LIBRARY_PATH\", `${lib}${path.delimiter}${dyld}`)\n\n core.exportVariable(\"CPATH\", `${directory}/lib/clang/${llvmMajor}/include`)\n\n core.exportVariable(\"LDFLAGS\", `-L${directory}/lib`)\n core.exportVariable(\"CPPFLAGS\", `-I${directory}/include`)\n\n core.exportVariable(\"CC\", `${directory}/bin/clang`)\n core.exportVariable(\"CXX\", `${directory}/bin/clang++`)\n\n core.exportVariable(\"LIBRARY_PATH\", `${directory}/lib`)\n\n if (process.platform === \"darwin\") {\n try {\n const xcrun = await getExecOutput(\"xcrun --sdk macosx --show-sdk-path\")\n const sdkroot = xcrun.stdout || xcrun.stderr\n if (existsSync(sdkroot)) {\n core.exportVariable(\"SDKROOT\", sdkroot)\n }\n } catch (e) {\n core.error(e as Error | string)\n }\n }\n\n return installationInfo\n}\n","import { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { error, exportVariable } from \"@actions/core\"\nimport { existsSync } from \"fs\"\n\ntype MSVCVersion = \"2015\" | \"2017\" | \"2019\" | string\n\nfunction getArch(arch: string): string {\n switch (arch) {\n case \"x32\":\n case \"32\":\n case \"ia32\": {\n return \"x86\"\n }\n case \"64\": {\n return \"x64\"\n }\n default: {\n return arch\n }\n }\n}\n\nexport async function setupMSVC(\n version: MSVCVersion,\n _setupCppDir: string,\n arch: string,\n sdk?: string,\n uwp?: boolean,\n spectre?: boolean\n): Promise {\n if (process.platform !== \"win32\") {\n return\n }\n let toolset: string | undefined\n let VCTargetsPath: string | undefined\n try {\n if (version === \"2015\") {\n toolset = \"14.0.25420.1\"\n await setupChocoPack(\"visualcpp-build-tools\", toolset, [\n \"--ignore-dependencies\",\n \"--params\",\n \"'/IncludeRequired'\",\n ])\n\n VCTargetsPath = \"C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140\"\n if (existsSync(VCTargetsPath)) {\n exportVariable(\"VCTargetsPath\", VCTargetsPath)\n }\n } else if (version === \"2017\") {\n toolset = \"14.16\"\n await setupChocoPack(\"visualstudio2017buildtools\", \"15.9.38.0\", [\n \"--package-parameters\",\n \"'--add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended --passive'\",\n ])\n VCTargetsPath = \"C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16\" // TODO verify path\n } else if (version === \"2019\") {\n toolset = \"14.29.30133\"\n await setupChocoPack(\"visualstudio2019buildtools\", \"16.11.2.0\", [\n \"--package-parameters\",\n \"'--add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended --passive'\",\n ])\n VCTargetsPath = \"C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133\"\n }\n } catch (e) {\n error(e as string | Error)\n }\n if (VCTargetsPath !== undefined && existsSync(VCTargetsPath)) {\n exportVariable(\"VCTargetsPath\", VCTargetsPath)\n }\n\n // lazy load the action so it is not executed\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n const { setupMSVCDevCmd } = require(\"./msvc-dev-cmd/index\")\n setupMSVCDevCmd(getArch(arch), sdk, toolset, uwp, spectre)\n}\n","import { extractZip } from \"@actions/tool-cache\"\nimport { setupBin, PackageInfo, InstallationInfo } from \"../utils/setup/setupBin\"\n\n/** Get the platform name Ninja uses in their download links */\nfunction getNinjaPlatform(platform: NodeJS.Platform) {\n switch (platform) {\n case \"win32\":\n return \"win\"\n case \"darwin\":\n return \"mac\"\n case \"linux\":\n return \"linux\"\n default:\n throw new Error(`Unsupported platform '${platform}'`)\n }\n}\n\n/** Get the platform data for ninja */\nfunction getNinjaPackageInfo(version: string, platform: NodeJS.Platform): PackageInfo {\n const ninjaPlatform = getNinjaPlatform(platform)\n return {\n binRelativeDir: \"\",\n extractedFolderName: \"\",\n extractFunction: extractZip,\n url: `https://github.com/ninja-build/ninja/releases/download/v${version}/ninja-${ninjaPlatform}.zip`,\n }\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupNinja(version: string, setupCppDir: string, _arch: string): Promise {\n return setupBin(\"ninja\", version, getNinjaPackageInfo, setupCppDir)\n}\n","function toArr(any) {\n\treturn any == null ? [] : Array.isArray(any) ? any : [any];\n}\n\nfunction toVal(out, key, val, opts) {\n\tvar x, old=out[key], nxt=(\n\t\t!!~opts.string.indexOf(key) ? (val == null || val === true ? '' : String(val))\n\t\t: typeof val === 'boolean' ? val\n\t\t: !!~opts.boolean.indexOf(key) ? (val === 'false' ? false : val === 'true' || (out._.push((x = +val,x * 0 === 0) ? x : val),!!val))\n\t\t: (x = +val,x * 0 === 0) ? x : val\n\t);\n\tout[key] = old == null ? nxt : (Array.isArray(old) ? old.concat(nxt) : [old, nxt]);\n}\n\nexport default function (args, opts) {\n\targs = args || [];\n\topts = opts || {};\n\n\tvar k, arr, arg, name, val, out={ _:[] };\n\tvar i=0, j=0, idx=0, len=args.length;\n\n\tconst alibi = opts.alias !== void 0;\n\tconst strict = opts.unknown !== void 0;\n\tconst defaults = opts.default !== void 0;\n\n\topts.alias = opts.alias || {};\n\topts.string = toArr(opts.string);\n\topts.boolean = toArr(opts.boolean);\n\n\tif (alibi) {\n\t\tfor (k in opts.alias) {\n\t\t\tarr = opts.alias[k] = toArr(opts.alias[k]);\n\t\t\tfor (i=0; i < arr.length; i++) {\n\t\t\t\t(opts.alias[arr[i]] = arr.concat(k)).splice(i, 1);\n\t\t\t}\n\t\t}\n\t}\n\n\tfor (i=opts.boolean.length; i-- > 0;) {\n\t\tarr = opts.alias[opts.boolean[i]] || [];\n\t\tfor (j=arr.length; j-- > 0;) opts.boolean.push(arr[j]);\n\t}\n\n\tfor (i=opts.string.length; i-- > 0;) {\n\t\tarr = opts.alias[opts.string[i]] || [];\n\t\tfor (j=arr.length; j-- > 0;) opts.string.push(arr[j]);\n\t}\n\n\tif (defaults) {\n\t\tfor (k in opts.default) {\n\t\t\tname = typeof opts.default[k];\n\t\t\tarr = opts.alias[k] = opts.alias[k] || [];\n\t\t\tif (opts[name] !== void 0) {\n\t\t\t\topts[name].push(k);\n\t\t\t\tfor (i=0; i < arr.length; i++) {\n\t\t\t\t\topts[name].push(arr[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tconst keys = strict ? Object.keys(opts.alias) : [];\n\n\tfor (i=0; i < len; i++) {\n\t\targ = args[i];\n\n\t\tif (arg === '--') {\n\t\t\tout._ = out._.concat(args.slice(++i));\n\t\t\tbreak;\n\t\t}\n\n\t\tfor (j=0; j < arg.length; j++) {\n\t\t\tif (arg.charCodeAt(j) !== 45) break; // \"-\"\n\t\t}\n\n\t\tif (j === 0) {\n\t\t\tout._.push(arg);\n\t\t} else if (arg.substring(j, j + 3) === 'no-') {\n\t\t\tname = arg.substring(j + 3);\n\t\t\tif (strict && !~keys.indexOf(name)) {\n\t\t\t\treturn opts.unknown(arg);\n\t\t\t}\n\t\t\tout[name] = false;\n\t\t} else {\n\t\t\tfor (idx=j+1; idx < arg.length; idx++) {\n\t\t\t\tif (arg.charCodeAt(idx) === 61) break; // \"=\"\n\t\t\t}\n\n\t\t\tname = arg.substring(j, idx);\n\t\t\tval = arg.substring(++idx) || (i+1 === len || (''+args[i+1]).charCodeAt(0) === 45 || args[++i]);\n\t\t\tarr = (j === 2 ? [name] : name);\n\n\t\t\tfor (idx=0; idx < arr.length; idx++) {\n\t\t\t\tname = arr[idx];\n\t\t\t\tif (strict && !~keys.indexOf(name)) return opts.unknown('-'.repeat(j) + name);\n\t\t\t\ttoVal(out, name, (idx + 1 < arr.length) || val, opts);\n\t\t\t}\n\t\t}\n\t}\n\n\tif (defaults) {\n\t\tfor (k in opts.default) {\n\t\t\tif (out[k] === void 0) {\n\t\t\t\tout[k] = opts.default[k];\n\t\t\t}\n\t\t}\n\t}\n\n\tif (alibi) {\n\t\tfor (k in out) {\n\t\t\tarr = opts.alias[k] || [];\n\t\t\twhile (arr.length > 0) {\n\t\t\t\tout[arr.shift()] = out[k];\n\t\t\t}\n\t\t}\n\t}\n\n\treturn out;\n}\n","const DefaultVersions: Record = {\n msvc: \"2019\",\n llvm: \"11\",\n ninja: \"1.10.2\",\n cmake: \"3.20.2\",\n gcovr: \"5.0\",\n conan: \"1.40.1\",\n meson: \"0.59.1\",\n python: \"3.x\",\n gcc: process.platform === \"win32\" ? \"10.2.0\" : \"11\",\n}\n\n/** Get the default version if passed true or undefined, otherwise return the version itself */\nexport function getVersion(name: string, version: string | undefined) {\n if (version === \"true\" || (version === undefined && name in DefaultVersions)) {\n return DefaultVersions[name]\n } else {\n return version ?? \"\"\n }\n}\n","import { exportVariable, info } from \"@actions/core\"\nimport { addPath } from \"../utils/path/addPath\"\nimport { existsSync } from \"fs\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport semverMajor from \"semver/functions/major\"\nimport semverCoerce from \"semver/functions/coerce\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupGcc(version: string, _setupCppDir: string, arch: string) {\n let binDir: string | undefined\n switch (process.platform) {\n case \"win32\": {\n if (arch === \"arm\" || arch === \"arm64\") {\n await setupChocoPack(\"gcc-arm-embedded\", version)\n }\n await setupChocoPack(\"mingw\", version)\n if (arch === \"x64\" && existsSync(\"C:/tools/mingw64/bin\")) {\n binDir = \"C:/tools/mingw64/bin\"\n await addPath(binDir)\n } else if (arch === \"ia32\" && existsSync(\"C:/tools/mingw32/bin\")) {\n binDir = \"C:/tools/mingw32/bin\"\n await addPath(binDir)\n } else if (existsSync(\"C:/ProgramData/Chocolatey/bin/g++.exe\")) {\n binDir = \"C:/ProgramData/Chocolatey/bin/\"\n }\n break\n }\n case \"darwin\": {\n binDir = setupBrewPack(\"gcc\", version).binDir\n break\n }\n case \"linux\": {\n if (arch === \"x64\") {\n binDir = (await setupAptPack(\"g++\", version, \"ppa:ubuntu-toolchain-r/test\")).binDir\n } else {\n info(`Install g++-multilib because gcc for ${arch} was requested`)\n binDir = (await setupAptPack(\"g++-multilib\", version, \"ppa:ubuntu-toolchain-r/test\")).binDir\n }\n break\n }\n // TODO support bare-metal\n // TODO support abi\n // case \"none\": {\n // if (arch === \"arm\" || arch === \"arm64\") {\n // return setupAptPack(\"gcc-arm-none-eabi\", version, \"ppa:ubuntu-toolchain-r/test\")\n // } else {\n // throw new Error(`Unsupported platform for ${arch}`)\n // }\n // }\n default: {\n throw new Error(`Unsupported platform for ${arch}`)\n }\n }\n if (binDir !== undefined) {\n const majorVersion = semverMajor(semverCoerce(version) ?? version)\n\n // TODO\n // const ld = process.env.LD_LIBRARY_PATH ?? \"\"\n // const dyld = process.env.DYLD_LIBRARY_PATH ?? \"\"\n\n // // Setup gcc as the compiler\n // exportVariable(\"LD_LIBRARY_PATH\", `${installDir}/lib${path.delimiter}${ld}`)\n // exportVariable(\"DYLD_LIBRARY_PATH\", `${installDir}/lib${path.delimiter}${dyld}`)\n\n // exportVariable(\"CPATH\", `${installDir}/lib/gcc/${majorVersion}/include`)\n\n // exportVariable(\"LDFLAGS\", `-L${installDir}/lib`)\n // exportVariable(\"CPPFLAGS\", `-I${installDir}/include`)\n\n if (process.platform === \"win32\") {\n exportVariable(\"CC\", `${binDir}/gcc`)\n exportVariable(\"CXX\", `${binDir}/g++`)\n } else {\n exportVariable(\"CC\", `${binDir}/gcc-${majorVersion}`)\n exportVariable(\"CXX\", `${binDir}/g++-${majorVersion}`)\n }\n return { binDir }\n }\n return undefined\n}\n","import * as core from \"@actions/core\"\nimport { isCI } from \"../env/isci\"\n\nexport function error(err: string | Error) {\n return isCI() ? core.error(err) : console.log(`\\x1b[31m${err}\\x1b[0m`)\n}\n\nexport function success(msg: string) {\n return isCI() ? core.info(msg) : console.log(`\\x1b[32m${msg}\\x1b[0m`)\n}\n","import * as core from \"@actions/core\"\nimport { setupBrew } from \"./brew/brew\"\nimport { setupCcache } from \"./ccache/ccache\"\nimport { setupChocolatey } from \"./chocolatey/chocolatey\"\nimport { setupCmake } from \"./cmake/cmake\"\nimport { setupConan } from \"./conan/conan\"\nimport { setupCppcheck } from \"./cppcheck/cppcheck\"\nimport { setupDoxygen } from \"./doxygen/doxygen\"\nimport { setupGcovr } from \"./gcovr/gcovr\"\nimport { setupLLVM } from \"./llvm/llvm\"\nimport { setupMeson } from \"./meson/meson\"\nimport { setupMSVC } from \"./msvc/msvc\"\nimport { setupNinja } from \"./ninja/ninja\"\nimport { setupOpencppcoverage } from \"./opencppcoverage/opencppcoverage\"\nimport { setupPython } from \"./python/python\"\nimport mri from \"mri\"\nimport untildify from \"untildify\"\nimport { isCI } from \"./utils/env/isci\"\n\nimport semverValid from \"semver/functions/valid\"\nimport { getVersion } from \"./default_versions\"\nimport { setupGcc } from \"./gcc/gcc\"\nimport { InstallationInfo } from \"./utils/setup/setupBin\"\nimport { error, success } from \"./utils/io/io\"\n\n/** The setup functions */\nconst setups = {\n cmake: setupCmake,\n ninja: setupNinja,\n python: setupPython,\n conan: setupConan,\n meson: setupMeson,\n gcovr: setupGcovr,\n opencppcoverage: setupOpencppcoverage,\n llvm: setupLLVM,\n gcc: setupGcc,\n choco: setupChocolatey,\n brew: setupBrew,\n ccache: setupCcache,\n doxygen: setupDoxygen,\n cppcheck: setupCppcheck,\n msvc: setupMSVC,\n}\n\n/** The tools that can be installed */\nconst tools: Array = [\n \"choco\",\n \"brew\",\n \"python\",\n \"cmake\",\n \"ninja\",\n \"conan\",\n \"meson\",\n \"gcovr\",\n \"opencppcoverage\",\n \"ccache\",\n \"doxygen\",\n \"cppcheck\",\n \"llvm\",\n \"gcc\",\n \"msvc\",\n]\n\n/** The possible inputs to the program */\ntype Inputs = keyof typeof setups | \"compiler\" | \"architecture\"\n\n// an array of possible inputs\nconst inputs: Array = [\"compiler\", \"architecture\", ...tools]\n\n/** The main entry function */\nexport async function main(args: string[]): Promise {\n if (!isCI()) {\n process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS = \"true\"\n }\n\n // parse options using mri or github actions\n const opts = mri & { help: boolean }>(args, {\n string: inputs,\n default: Object.fromEntries(inputs.map((inp) => [inp, maybeGetInput(inp)])),\n alias: { h: \"help\" },\n boolean: \"help\",\n })\n\n // print help\n if (opts.help) {\n printHelp()\n }\n\n // cpu architecture\n const arch = opts.architecture ?? process.arch\n\n // the installation dir for the tools that are downloaded directly\n const setupCppDir = process.env.SETUP_CPP_DIR ?? untildify(\"~/setup_cpp\")\n\n // report messages\n const successMessages: string[] = []\n const errorMessages: string[] = []\n\n // installing the specified tools\n\n // loop over the tools and run their setup function\n for (const tool of tools) {\n // get the version or \"true\" or undefined for this tool from the options\n const value = opts[tool]\n\n // skip if undefined\n if (value !== undefined) {\n // get the setup function\n const setupFunction = setups[tool]\n\n // runnig the setup function for this tool\n try {\n // eslint-disable-next-line no-await-in-loop\n const installationInfo = await setupFunction(getVersion(tool, value), setupCppDir, arch)\n\n // preparing a report string\n if (installationInfo !== undefined) {\n successMessages.push(getSuccessMessage(tool, installationInfo))\n } else {\n successMessages.push(`${tool} was successfully installed`)\n }\n } catch (e) {\n // push error message to the logger\n error(e as string | Error)\n errorMessages.push(`${tool} failed to install`)\n }\n }\n }\n\n // installing the specified compiler\n const maybeCompiler = opts.compiler\n try {\n if (maybeCompiler !== undefined) {\n // detecting the compiler version. Devide the given string by `-` and use the second element as the version\n const compilerAndMaybeVersion = maybeCompiler.split(\"-\")\n const compiler = compilerAndMaybeVersion[0]\n let version: string | undefined\n if (1 in compilerAndMaybeVersion) {\n const maybeVersion = compilerAndMaybeVersion[1]\n if (semverValid(maybeVersion) !== null) {\n version = maybeVersion\n } else {\n error(`Invalid version ${maybeVersion} used for the compiler. Using the default version...`)\n }\n }\n\n // install the compiler. We allow some aliases for the compiler name\n switch (compiler) {\n case \"llvm\":\n case \"clang\":\n case \"clang++\": {\n await setupLLVM(getVersion(\"llvm\", version) as string, setupCppDir, arch)\n break\n }\n case \"gcc\":\n case \"mingw\":\n case \"cygwin\":\n case \"msys\": {\n await setupGcc(getVersion(\"gcc\", version) as string, setupCppDir, arch)\n break\n }\n case \"cl\":\n case \"msvc\":\n case \"msbuild\":\n case \"vs\":\n case \"visualstudio\":\n case \"visualcpp\":\n case \"visualc++\": {\n await setupMSVC(getVersion(\"msvc\", version) as string, setupCppDir, arch)\n break\n }\n default: {\n errorMessages.push(`Unsupported compiler ${compiler}`)\n }\n }\n }\n } catch (e) {\n error(e as string | Error)\n errorMessages.push(`Failed to install the ${maybeCompiler}`)\n }\n\n // report the messages in the end\n successMessages.forEach((tool) => success(tool))\n errorMessages.forEach((tool) => error(tool))\n\n core.info(\"setup_cpp finished\")\n return errorMessages.length === 0 ? 0 : 1 // exit with non-zero if any error message\n}\n// Run main\nmain(process.argv)\n .then((ret) => {\n process.exitCode = ret\n })\n .catch((err) => {\n error(\"main() panicked!\")\n error(err as string | Error)\n process.exitCode = 1\n })\n\nfunction printHelp() {\n core.info(`\nsetup_cpp [options]\nsetup_cpp --compiler llvm --cmake true --ninja true --ccache true --conan \"1.40.1\"\n\nInstall all the tools required for building and testing C++/C projects.\n\n--architecture\\t the cpu architecture to install the tools for. By default it uses the current CPU architecture.\n--compiler\\t the to install.\n \\t You can specify the version instead of specifying just the name e.g: --compiler 'llvm-11'\n\n--tool_name\\t pass \"true\" or pass the you would like to install for this tool.\n\nAll the available tools:\n--llvm\n--gcc\n--cmake\n--ninja\n--meson\n--conan\n--ccache\n--cppcheck\n--doxygen\n--gcovr\n--opencppcoverage\n--python\n--choco\n--brew\n `)\n}\n\n/** Get an object from github actions */\nfunction maybeGetInput(key: string) {\n const value = core.getInput(key.toLowerCase())\n if (value !== \"false\" && value !== \"\") {\n return value\n }\n return undefined // skip installation\n}\n\nfunction getSuccessMessage(tool: string, installationInfo: InstallationInfo) {\n let msg = `${tool} was successfully installed`\n if (\"installDir\" in installationInfo) {\n msg += `\\nThe installation direcotry is ${installationInfo.installDir}`\n }\n if (installationInfo.binDir !== \"\") {\n msg += `\\nThe binary direcotry is ${installationInfo.binDir}`\n }\n return msg\n}\n",null,null,null,null,"const isWindows = process.platform === 'win32' ||\n process.env.OSTYPE === 'cygwin' ||\n process.env.OSTYPE === 'msys'\n\nconst path = require('path')\nconst COLON = isWindows ? ';' : ':'\nconst isexe = require('isexe')\n\nconst getNotFoundError = (cmd) =>\n Object.assign(new Error(`not found: ${cmd}`), { code: 'ENOENT' })\n\nconst getPathInfo = (cmd, opt) => {\n const colon = opt.colon || COLON\n\n // If it has a slash, then we don't bother searching the pathenv.\n // just check the file itself, and that's it.\n const pathEnv = cmd.match(/\\//) || isWindows && cmd.match(/\\\\/) ? ['']\n : (\n [\n // windows always checks the cwd first\n ...(isWindows ? [process.cwd()] : []),\n ...(opt.path || process.env.PATH ||\n /* istanbul ignore next: very unusual */ '').split(colon),\n ]\n )\n const pathExtExe = isWindows\n ? opt.pathExt || process.env.PATHEXT || '.EXE;.CMD;.BAT;.COM'\n : ''\n const pathExt = isWindows ? pathExtExe.split(colon) : ['']\n\n if (isWindows) {\n if (cmd.indexOf('.') !== -1 && pathExt[0] !== '')\n pathExt.unshift('')\n }\n\n return {\n pathEnv,\n pathExt,\n pathExtExe,\n }\n}\n\nconst which = (cmd, opt, cb) => {\n if (typeof opt === 'function') {\n cb = opt\n opt = {}\n }\n if (!opt)\n opt = {}\n\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n const step = i => new Promise((resolve, reject) => {\n if (i === pathEnv.length)\n return opt.all && found.length ? resolve(found)\n : reject(getNotFoundError(cmd))\n\n const ppRaw = pathEnv[i]\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw\n\n const pCmd = path.join(pathPart, cmd)\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd\n : pCmd\n\n resolve(subStep(p, i, 0))\n })\n\n const subStep = (p, i, ii) => new Promise((resolve, reject) => {\n if (ii === pathExt.length)\n return resolve(step(i + 1))\n const ext = pathExt[ii]\n isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {\n if (!er && is) {\n if (opt.all)\n found.push(p + ext)\n else\n return resolve(p + ext)\n }\n return resolve(subStep(p, i, ii + 1))\n })\n })\n\n return cb ? step(0).then(res => cb(null, res), cb) : step(0)\n}\n\nconst whichSync = (cmd, opt) => {\n opt = opt || {}\n\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n for (let i = 0; i < pathEnv.length; i ++) {\n const ppRaw = pathEnv[i]\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw\n\n const pCmd = path.join(pathPart, cmd)\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd\n : pCmd\n\n for (let j = 0; j < pathExt.length; j ++) {\n const cur = p + pathExt[j]\n try {\n const is = isexe.sync(cur, { pathExt: pathExtExe })\n if (is) {\n if (opt.all)\n found.push(cur)\n else\n return cur\n }\n } catch (ex) {}\n }\n }\n\n if (opt.all && found.length)\n return found\n\n if (opt.nothrow)\n return null\n\n throw getNotFoundError(cmd)\n}\n\nmodule.exports = which\nwhich.sync = whichSync\n","module.exports = isexe\nisexe.sync = sync\n\nvar fs = require('fs')\n\nfunction checkPathExt (path, options) {\n var pathext = options.pathExt !== undefined ?\n options.pathExt : process.env.PATHEXT\n\n if (!pathext) {\n return true\n }\n\n pathext = pathext.split(';')\n if (pathext.indexOf('') !== -1) {\n return true\n }\n for (var i = 0; i < pathext.length; i++) {\n var p = pathext[i].toLowerCase()\n if (p && path.substr(-p.length).toLowerCase() === p) {\n return true\n }\n }\n return false\n}\n\nfunction checkStat (stat, path, options) {\n if (!stat.isSymbolicLink() && !stat.isFile()) {\n return false\n }\n return checkPathExt(path, options)\n}\n\nfunction isexe (path, options, cb) {\n fs.stat(path, function (er, stat) {\n cb(er, er ? false : checkStat(stat, path, options))\n })\n}\n\nfunction sync (path, options) {\n return checkStat(fs.statSync(path), path, options)\n}\n","module.exports = isexe\nisexe.sync = sync\n\nvar fs = require('fs')\n\nfunction isexe (path, options, cb) {\n fs.stat(path, function (er, stat) {\n cb(er, er ? false : checkStat(stat, options))\n })\n}\n\nfunction sync (path, options) {\n return checkStat(fs.statSync(path), options)\n}\n\nfunction checkStat (stat, options) {\n return stat.isFile() && checkMode(stat, options)\n}\n\nfunction checkMode (stat, options) {\n var mod = stat.mode\n var uid = stat.uid\n var gid = stat.gid\n\n var myUid = options.uid !== undefined ?\n options.uid : process.getuid && process.getuid()\n var myGid = options.gid !== undefined ?\n options.gid : process.getgid && process.getgid()\n\n var u = parseInt('100', 8)\n var g = parseInt('010', 8)\n var o = parseInt('001', 8)\n var ug = u | g\n\n var ret = (mod & o) ||\n (mod & g) && gid === myGid ||\n (mod & u) && uid === myUid ||\n (mod & ug) && myUid === 0\n\n return ret\n}\n","'use strict';\n\nconst pathKey = (options = {}) => {\n\tconst environment = options.env || process.env;\n\tconst platform = options.platform || process.platform;\n\n\tif (platform !== 'win32') {\n\t\treturn 'PATH';\n\t}\n\n\treturn Object.keys(environment).reverse().find(key => key.toUpperCase() === 'PATH') || 'Path';\n};\n\nmodule.exports = pathKey;\n// TODO: Remove this for the next major release\nmodule.exports.default = pathKey;\n","'use strict';\n\n// See http://www.robvanderwoude.com/escapechars.php\nconst metaCharsRegExp = /([()\\][%!^\"`<>&|;, *?])/g;\n\nfunction escapeCommand(arg) {\n // Escape meta chars\n arg = arg.replace(metaCharsRegExp, '^$1');\n\n return arg;\n}\n\nfunction escapeArgument(arg, doubleEscapeMetaChars) {\n // Convert to string\n arg = `${arg}`;\n\n // Algorithm below is based on https://qntm.org/cmd\n\n // Sequence of backslashes followed by a double quote:\n // double up all the backslashes and escape the double quote\n arg = arg.replace(/(\\\\*)\"/g, '$1$1\\\\\"');\n\n // Sequence of backslashes followed by the end of the string\n // (which will become a double quote later):\n // double up all the backslashes\n arg = arg.replace(/(\\\\*)$/, '$1$1');\n\n // All other backslashes occur literally\n\n // Quote the whole thing:\n arg = `\"${arg}\"`;\n\n // Escape meta chars\n arg = arg.replace(metaCharsRegExp, '^$1');\n\n // Double escape meta chars if necessary\n if (doubleEscapeMetaChars) {\n arg = arg.replace(metaCharsRegExp, '^$1');\n }\n\n return arg;\n}\n\nmodule.exports.command = escapeCommand;\nmodule.exports.argument = escapeArgument;\n","'use strict';\nconst shebangRegex = require('shebang-regex');\n\nmodule.exports = (string = '') => {\n\tconst match = string.match(shebangRegex);\n\n\tif (!match) {\n\t\treturn null;\n\t}\n\n\tconst [path, argument] = match[0].replace(/#! ?/, '').split(' ');\n\tconst binary = path.split('/').pop();\n\n\tif (binary === 'env') {\n\t\treturn argument;\n\t}\n\n\treturn argument ? `${binary} ${argument}` : binary;\n};\n","'use strict';\nmodule.exports = /^#!(.*)/;\n","'use strict';\n\nconst fs = require('fs');\nconst shebangCommand = require('shebang-command');\n\nfunction readShebang(command) {\n // Read the first 150 bytes from the file\n const size = 150;\n const buffer = Buffer.alloc(size);\n\n let fd;\n\n try {\n fd = fs.openSync(command, 'r');\n fs.readSync(fd, buffer, 0, size, 0);\n fs.closeSync(fd);\n } catch (e) { /* Empty */ }\n\n // Attempt to extract shebang (null is returned if not a shebang)\n return shebangCommand(buffer.toString());\n}\n\nmodule.exports = readShebang;\n","'use strict';\n\nconst path = require('path');\nconst resolveCommand = require('./util/resolveCommand');\nconst escape = require('./util/escape');\nconst readShebang = require('./util/readShebang');\n\nconst isWin = process.platform === 'win32';\nconst isExecutableRegExp = /\\.(?:com|exe)$/i;\nconst isCmdShimRegExp = /node_modules[\\\\/].bin[\\\\/][^\\\\/]+\\.cmd$/i;\n\nfunction detectShebang(parsed) {\n parsed.file = resolveCommand(parsed);\n\n const shebang = parsed.file && readShebang(parsed.file);\n\n if (shebang) {\n parsed.args.unshift(parsed.file);\n parsed.command = shebang;\n\n return resolveCommand(parsed);\n }\n\n return parsed.file;\n}\n\nfunction parseNonShell(parsed) {\n if (!isWin) {\n return parsed;\n }\n\n // Detect & add support for shebangs\n const commandFile = detectShebang(parsed);\n\n // We don't need a shell if the command filename is an executable\n const needsShell = !isExecutableRegExp.test(commandFile);\n\n // If a shell is required, use cmd.exe and take care of escaping everything correctly\n // Note that `forceShell` is an hidden option used only in tests\n if (parsed.options.forceShell || needsShell) {\n // Need to double escape meta chars if the command is a cmd-shim located in `node_modules/.bin/`\n // The cmd-shim simply calls execute the package bin file with NodeJS, proxying any argument\n // Because the escape of metachars with ^ gets interpreted when the cmd.exe is first called,\n // we need to double escape them\n const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);\n\n // Normalize posix paths into OS compatible paths (e.g.: foo/bar -> foo\\bar)\n // This is necessary otherwise it will always fail with ENOENT in those cases\n parsed.command = path.normalize(parsed.command);\n\n // Escape command & arguments\n parsed.command = escape.command(parsed.command);\n parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));\n\n const shellCommand = [parsed.command].concat(parsed.args).join(' ');\n\n parsed.args = ['/d', '/s', '/c', `\"${shellCommand}\"`];\n parsed.command = process.env.comspec || 'cmd.exe';\n parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped\n }\n\n return parsed;\n}\n\nfunction parse(command, args, options) {\n // Normalize arguments, similar to nodejs\n if (args && !Array.isArray(args)) {\n options = args;\n args = null;\n }\n\n args = args ? args.slice(0) : []; // Clone array to avoid changing the original\n options = Object.assign({}, options); // Clone object to avoid changing the original\n\n // Build our parsed object\n const parsed = {\n command,\n args,\n options,\n file: undefined,\n original: {\n command,\n args,\n },\n };\n\n // Delegate further parsing to shell or non-shell\n return options.shell ? parsed : parseNonShell(parsed);\n}\n\nmodule.exports = parse;\n","'use strict';\n\nmodule.exports = input => {\n\tconst LF = typeof input === 'string' ? '\\n' : '\\n'.charCodeAt();\n\tconst CR = typeof input === 'string' ? '\\r' : '\\r'.charCodeAt();\n\n\tif (input[input.length - 1] === LF) {\n\t\tinput = input.slice(0, input.length - 1);\n\t}\n\n\tif (input[input.length - 1] === CR) {\n\t\tinput = input.slice(0, input.length - 1);\n\t}\n\n\treturn input;\n};\n","'use strict';\nconst path = require('path');\nconst pathKey = require('path-key');\n\nconst npmRunPath = options => {\n\toptions = {\n\t\tcwd: process.cwd(),\n\t\tpath: process.env[pathKey()],\n\t\texecPath: process.execPath,\n\t\t...options\n\t};\n\n\tlet previous;\n\tlet cwdPath = path.resolve(options.cwd);\n\tconst result = [];\n\n\twhile (previous !== cwdPath) {\n\t\tresult.push(path.join(cwdPath, 'node_modules/.bin'));\n\t\tprevious = cwdPath;\n\t\tcwdPath = path.resolve(cwdPath, '..');\n\t}\n\n\t// Ensure the running `node` binary is used\n\tconst execPathDir = path.resolve(options.cwd, options.execPath, '..');\n\tresult.push(execPathDir);\n\n\treturn result.concat(options.path).join(path.delimiter);\n};\n\nmodule.exports = npmRunPath;\n// TODO: Remove this for the next major release\nmodule.exports.default = npmRunPath;\n\nmodule.exports.env = options => {\n\toptions = {\n\t\tenv: process.env,\n\t\t...options\n\t};\n\n\tconst env = {...options.env};\n\tconst path = pathKey({env});\n\n\toptions.path = env[path];\n\tenv[path] = module.exports(options);\n\n\treturn env;\n};\n","'use strict';\n\nconst mimicFn = (to, from) => {\n\tfor (const prop of Reflect.ownKeys(from)) {\n\t\tObject.defineProperty(to, prop, Object.getOwnPropertyDescriptor(from, prop));\n\t}\n\n\treturn to;\n};\n\nmodule.exports = mimicFn;\n// TODO: Remove this for the next major release\nmodule.exports.default = mimicFn;\n","'use strict';\nconst mimicFn = require('mimic-fn');\n\nconst calledFunctions = new WeakMap();\n\nconst onetime = (function_, options = {}) => {\n\tif (typeof function_ !== 'function') {\n\t\tthrow new TypeError('Expected a function');\n\t}\n\n\tlet returnValue;\n\tlet callCount = 0;\n\tconst functionName = function_.displayName || function_.name || '';\n\n\tconst onetime = function (...arguments_) {\n\t\tcalledFunctions.set(onetime, ++callCount);\n\n\t\tif (callCount === 1) {\n\t\t\treturnValue = function_.apply(this, arguments_);\n\t\t\tfunction_ = null;\n\t\t} else if (options.throw === true) {\n\t\t\tthrow new Error(`Function \\`${functionName}\\` can only be called once`);\n\t\t}\n\n\t\treturn returnValue;\n\t};\n\n\tmimicFn(onetime, function_);\n\tcalledFunctions.set(onetime, callCount);\n\n\treturn onetime;\n};\n\nmodule.exports = onetime;\n// TODO: Remove this for the next major release\nmodule.exports.default = onetime;\n\nmodule.exports.callCount = function_ => {\n\tif (!calledFunctions.has(function_)) {\n\t\tthrow new Error(`The given function \\`${function_.name}\\` is not wrapped by the \\`onetime\\` package`);\n\t}\n\n\treturn calledFunctions.get(function_);\n};\n","import { constants } from 'os'\n\nimport { getSignals } from './signals.js'\nimport { SIGRTMAX } from './realtime.js'\n\n// Retrieve `signalsByName`, an object mapping signal name to signal properties.\n// We make sure the object is sorted by `number`.\nconst getSignalsByName = function() {\n const signals = getSignals()\n return signals.reduce(getSignalByName, {})\n}\n\nconst getSignalByName = function(\n signalByNameMemo,\n { name, number, description, supported, action, forced, standard },\n) {\n return {\n ...signalByNameMemo,\n [name]: { name, number, description, supported, action, forced, standard },\n }\n}\n\nexport const signalsByName = getSignalsByName()\n\n// Retrieve `signalsByNumber`, an object mapping signal number to signal\n// properties.\n// We make sure the object is sorted by `number`.\nconst getSignalsByNumber = function() {\n const signals = getSignals()\n const length = SIGRTMAX + 1\n const signalsA = Array.from({ length }, (value, number) =>\n getSignalByNumber(number, signals),\n )\n return Object.assign({}, ...signalsA)\n}\n\nconst getSignalByNumber = function(number, signals) {\n const signal = findSignalByNumber(number, signals)\n\n if (signal === undefined) {\n return {}\n }\n\n const { name, description, supported, action, forced, standard } = signal\n return {\n [number]: {\n name,\n number,\n description,\n supported,\n action,\n forced,\n standard,\n },\n }\n}\n\n// Several signals might end up sharing the same number because of OS-specific\n// numbers, in which case those prevail.\nconst findSignalByNumber = function(number, signals) {\n const signal = signals.find(({ name }) => constants.signals[name] === number)\n\n if (signal !== undefined) {\n return signal\n }\n\n return signals.find(signalA => signalA.number === number)\n}\n\nexport const signalsByNumber = getSignalsByNumber()\n","import { constants } from 'os'\n\nimport { SIGNALS } from './core.js'\nimport { getRealtimeSignals } from './realtime.js'\n\n// Retrieve list of know signals (including realtime) with information about\n// them\nexport const getSignals = function() {\n const realtimeSignals = getRealtimeSignals()\n const signals = [...SIGNALS, ...realtimeSignals].map(normalizeSignal)\n return signals\n}\n\n// Normalize signal:\n// - `number`: signal numbers are OS-specific. This is taken into account by\n// `os.constants.signals`. However we provide a default `number` since some\n// signals are not defined for some OS.\n// - `forced`: set default to `false`\n// - `supported`: set value\nconst normalizeSignal = function({\n name,\n number: defaultNumber,\n description,\n action,\n forced = false,\n standard,\n}) {\n const {\n signals: { [name]: constantSignal },\n } = constants\n const supported = constantSignal !== undefined\n const number = supported ? constantSignal : defaultNumber\n return { name, number, description, supported, action, forced, standard }\n}\n","/* eslint-disable max-lines */\n// List of known process signals with information about them\nexport const SIGNALS = [\n {\n name: 'SIGHUP',\n number: 1,\n action: 'terminate',\n description: 'Terminal closed',\n standard: 'posix',\n },\n {\n name: 'SIGINT',\n number: 2,\n action: 'terminate',\n description: 'User interruption with CTRL-C',\n standard: 'ansi',\n },\n {\n name: 'SIGQUIT',\n number: 3,\n action: 'core',\n description: 'User interruption with CTRL-\\\\',\n standard: 'posix',\n },\n {\n name: 'SIGILL',\n number: 4,\n action: 'core',\n description: 'Invalid machine instruction',\n standard: 'ansi',\n },\n {\n name: 'SIGTRAP',\n number: 5,\n action: 'core',\n description: 'Debugger breakpoint',\n standard: 'posix',\n },\n {\n name: 'SIGABRT',\n number: 6,\n action: 'core',\n description: 'Aborted',\n standard: 'ansi',\n },\n {\n name: 'SIGIOT',\n number: 6,\n action: 'core',\n description: 'Aborted',\n standard: 'bsd',\n },\n {\n name: 'SIGBUS',\n number: 7,\n action: 'core',\n description:\n 'Bus error due to misaligned, non-existing address or paging error',\n standard: 'bsd',\n },\n {\n name: 'SIGEMT',\n number: 7,\n action: 'terminate',\n description: 'Command should be emulated but is not implemented',\n standard: 'other',\n },\n {\n name: 'SIGFPE',\n number: 8,\n action: 'core',\n description: 'Floating point arithmetic error',\n standard: 'ansi',\n },\n {\n name: 'SIGKILL',\n number: 9,\n action: 'terminate',\n description: 'Forced termination',\n standard: 'posix',\n forced: true,\n },\n {\n name: 'SIGUSR1',\n number: 10,\n action: 'terminate',\n description: 'Application-specific signal',\n standard: 'posix',\n },\n {\n name: 'SIGSEGV',\n number: 11,\n action: 'core',\n description: 'Segmentation fault',\n standard: 'ansi',\n },\n {\n name: 'SIGUSR2',\n number: 12,\n action: 'terminate',\n description: 'Application-specific signal',\n standard: 'posix',\n },\n {\n name: 'SIGPIPE',\n number: 13,\n action: 'terminate',\n description: 'Broken pipe or socket',\n standard: 'posix',\n },\n {\n name: 'SIGALRM',\n number: 14,\n action: 'terminate',\n description: 'Timeout or timer',\n standard: 'posix',\n },\n {\n name: 'SIGTERM',\n number: 15,\n action: 'terminate',\n description: 'Termination',\n standard: 'ansi',\n },\n {\n name: 'SIGSTKFLT',\n number: 16,\n action: 'terminate',\n description: 'Stack is empty or overflowed',\n standard: 'other',\n },\n {\n name: 'SIGCHLD',\n number: 17,\n action: 'ignore',\n description: 'Child process terminated, paused or unpaused',\n standard: 'posix',\n },\n {\n name: 'SIGCLD',\n number: 17,\n action: 'ignore',\n description: 'Child process terminated, paused or unpaused',\n standard: 'other',\n },\n {\n name: 'SIGCONT',\n number: 18,\n action: 'unpause',\n description: 'Unpaused',\n standard: 'posix',\n forced: true,\n },\n {\n name: 'SIGSTOP',\n number: 19,\n action: 'pause',\n description: 'Paused',\n standard: 'posix',\n forced: true,\n },\n {\n name: 'SIGTSTP',\n number: 20,\n action: 'pause',\n description: 'Paused using CTRL-Z or \"suspend\"',\n standard: 'posix',\n },\n {\n name: 'SIGTTIN',\n number: 21,\n action: 'pause',\n description: 'Background process cannot read terminal input',\n standard: 'posix',\n },\n {\n name: 'SIGBREAK',\n number: 21,\n action: 'terminate',\n description: 'User interruption with CTRL-BREAK',\n standard: 'other',\n },\n {\n name: 'SIGTTOU',\n number: 22,\n action: 'pause',\n description: 'Background process cannot write to terminal output',\n standard: 'posix',\n },\n {\n name: 'SIGURG',\n number: 23,\n action: 'ignore',\n description: 'Socket received out-of-band data',\n standard: 'bsd',\n },\n {\n name: 'SIGXCPU',\n number: 24,\n action: 'core',\n description: 'Process timed out',\n standard: 'bsd',\n },\n {\n name: 'SIGXFSZ',\n number: 25,\n action: 'core',\n description: 'File too big',\n standard: 'bsd',\n },\n {\n name: 'SIGVTALRM',\n number: 26,\n action: 'terminate',\n description: 'Timeout or timer',\n standard: 'bsd',\n },\n {\n name: 'SIGPROF',\n number: 27,\n action: 'terminate',\n description: 'Timeout or timer',\n standard: 'bsd',\n },\n {\n name: 'SIGWINCH',\n number: 28,\n action: 'ignore',\n description: 'Terminal window size changed',\n standard: 'bsd',\n },\n {\n name: 'SIGIO',\n number: 29,\n action: 'terminate',\n description: 'I/O is available',\n standard: 'other',\n },\n {\n name: 'SIGPOLL',\n number: 29,\n action: 'terminate',\n description: 'Watched event',\n standard: 'other',\n },\n {\n name: 'SIGINFO',\n number: 29,\n action: 'ignore',\n description: 'Request for process information',\n standard: 'other',\n },\n {\n name: 'SIGPWR',\n number: 30,\n action: 'terminate',\n description: 'Device running out of power',\n standard: 'systemv',\n },\n {\n name: 'SIGSYS',\n number: 31,\n action: 'core',\n description: 'Invalid system call',\n standard: 'other',\n },\n {\n name: 'SIGUNUSED',\n number: 31,\n action: 'terminate',\n description: 'Invalid system call',\n standard: 'other',\n },\n]\n/* eslint-enable max-lines */\n","// List of realtime signals with information about them\nexport const getRealtimeSignals = function() {\n const length = SIGRTMAX - SIGRTMIN + 1\n return Array.from({ length }, getRealtimeSignal)\n}\n\nconst getRealtimeSignal = function(value, index) {\n return {\n name: `SIGRT${index + 1}`,\n number: SIGRTMIN + index,\n action: 'terminate',\n description: 'Application-specific signal (realtime)',\n standard: 'posix',\n }\n}\n\nconst SIGRTMIN = 34\nexport const SIGRTMAX = 64\n","'use strict';\nconst {signalsByName} = require('human-signals');\n\nconst getErrorPrefix = ({timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled}) => {\n\tif (timedOut) {\n\t\treturn `timed out after ${timeout} milliseconds`;\n\t}\n\n\tif (isCanceled) {\n\t\treturn 'was canceled';\n\t}\n\n\tif (errorCode !== undefined) {\n\t\treturn `failed with ${errorCode}`;\n\t}\n\n\tif (signal !== undefined) {\n\t\treturn `was killed with ${signal} (${signalDescription})`;\n\t}\n\n\tif (exitCode !== undefined) {\n\t\treturn `failed with exit code ${exitCode}`;\n\t}\n\n\treturn 'failed';\n};\n\nconst makeError = ({\n\tstdout,\n\tstderr,\n\tall,\n\terror,\n\tsignal,\n\texitCode,\n\tcommand,\n\tescapedCommand,\n\ttimedOut,\n\tisCanceled,\n\tkilled,\n\tparsed: {options: {timeout}}\n}) => {\n\t// `signal` and `exitCode` emitted on `spawned.on('exit')` event can be `null`.\n\t// We normalize them to `undefined`\n\texitCode = exitCode === null ? undefined : exitCode;\n\tsignal = signal === null ? undefined : signal;\n\tconst signalDescription = signal === undefined ? undefined : signalsByName[signal].description;\n\n\tconst errorCode = error && error.code;\n\n\tconst prefix = getErrorPrefix({timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled});\n\tconst execaMessage = `Command ${prefix}: ${command}`;\n\tconst isError = Object.prototype.toString.call(error) === '[object Error]';\n\tconst shortMessage = isError ? `${execaMessage}\\n${error.message}` : execaMessage;\n\tconst message = [shortMessage, stderr, stdout].filter(Boolean).join('\\n');\n\n\tif (isError) {\n\t\terror.originalMessage = error.message;\n\t\terror.message = message;\n\t} else {\n\t\terror = new Error(message);\n\t}\n\n\terror.shortMessage = shortMessage;\n\terror.command = command;\n\terror.escapedCommand = escapedCommand;\n\terror.exitCode = exitCode;\n\terror.signal = signal;\n\terror.signalDescription = signalDescription;\n\terror.stdout = stdout;\n\terror.stderr = stderr;\n\n\tif (all !== undefined) {\n\t\terror.all = all;\n\t}\n\n\tif ('bufferedData' in error) {\n\t\tdelete error.bufferedData;\n\t}\n\n\terror.failed = true;\n\terror.timedOut = Boolean(timedOut);\n\terror.isCanceled = isCanceled;\n\terror.killed = killed && !timedOut;\n\n\treturn error;\n};\n\nmodule.exports = makeError;\n","'use strict';\nconst aliases = ['stdin', 'stdout', 'stderr'];\n\nconst hasAlias = options => aliases.some(alias => options[alias] !== undefined);\n\nconst normalizeStdio = options => {\n\tif (!options) {\n\t\treturn;\n\t}\n\n\tconst {stdio} = options;\n\n\tif (stdio === undefined) {\n\t\treturn aliases.map(alias => options[alias]);\n\t}\n\n\tif (hasAlias(options)) {\n\t\tthrow new Error(`It's not possible to provide \\`stdio\\` in combination with one of ${aliases.map(alias => `\\`${alias}\\``).join(', ')}`);\n\t}\n\n\tif (typeof stdio === 'string') {\n\t\treturn stdio;\n\t}\n\n\tif (!Array.isArray(stdio)) {\n\t\tthrow new TypeError(`Expected \\`stdio\\` to be of type \\`string\\` or \\`Array\\`, got \\`${typeof stdio}\\``);\n\t}\n\n\tconst length = Math.max(stdio.length, aliases.length);\n\treturn Array.from({length}, (value, index) => stdio[index]);\n};\n\nmodule.exports = normalizeStdio;\n\n// `ipc` is pushed unless it is already present\nmodule.exports.node = options => {\n\tconst stdio = normalizeStdio(options);\n\n\tif (stdio === 'ipc') {\n\t\treturn 'ipc';\n\t}\n\n\tif (stdio === undefined || typeof stdio === 'string') {\n\t\treturn [stdio, stdio, stdio, 'ipc'];\n\t}\n\n\tif (stdio.includes('ipc')) {\n\t\treturn stdio;\n\t}\n\n\treturn [...stdio, 'ipc'];\n};\n","// This is not the set of all possible signals.\n//\n// It IS, however, the set of all signals that trigger\n// an exit on either Linux or BSD systems. Linux is a\n// superset of the signal names supported on BSD, and\n// the unknown signals just fail to register, so we can\n// catch that easily enough.\n//\n// Don't bother with SIGKILL. It's uncatchable, which\n// means that we can't fire any callbacks anyway.\n//\n// If a user does happen to register a handler on a non-\n// fatal signal like SIGWINCH or something, and then\n// exit, it'll end up firing `process.emit('exit')`, so\n// the handler will be fired anyway.\n//\n// SIGBUS, SIGFPE, SIGSEGV and SIGILL, when not raised\n// artificially, inherently leave the process in a\n// state from which it is not safe to try and enter JS\n// listeners.\nmodule.exports = [\n 'SIGABRT',\n 'SIGALRM',\n 'SIGHUP',\n 'SIGINT',\n 'SIGTERM'\n]\n\nif (process.platform !== 'win32') {\n module.exports.push(\n 'SIGVTALRM',\n 'SIGXCPU',\n 'SIGXFSZ',\n 'SIGUSR2',\n 'SIGTRAP',\n 'SIGSYS',\n 'SIGQUIT',\n 'SIGIOT'\n // should detect profiler and enable/disable accordingly.\n // see #21\n // 'SIGPROF'\n )\n}\n\nif (process.platform === 'linux') {\n module.exports.push(\n 'SIGIO',\n 'SIGPOLL',\n 'SIGPWR',\n 'SIGSTKFLT',\n 'SIGUNUSED'\n )\n}\n","'use strict';\nconst os = require('os');\nconst onExit = require('signal-exit');\n\nconst DEFAULT_FORCE_KILL_TIMEOUT = 1000 * 5;\n\n// Monkey-patches `childProcess.kill()` to add `forceKillAfterTimeout` behavior\nconst spawnedKill = (kill, signal = 'SIGTERM', options = {}) => {\n\tconst killResult = kill(signal);\n\tsetKillTimeout(kill, signal, options, killResult);\n\treturn killResult;\n};\n\nconst setKillTimeout = (kill, signal, options, killResult) => {\n\tif (!shouldForceKill(signal, options, killResult)) {\n\t\treturn;\n\t}\n\n\tconst timeout = getForceKillAfterTimeout(options);\n\tconst t = setTimeout(() => {\n\t\tkill('SIGKILL');\n\t}, timeout);\n\n\t// Guarded because there's no `.unref()` when `execa` is used in the renderer\n\t// process in Electron. This cannot be tested since we don't run tests in\n\t// Electron.\n\t// istanbul ignore else\n\tif (t.unref) {\n\t\tt.unref();\n\t}\n};\n\nconst shouldForceKill = (signal, {forceKillAfterTimeout}, killResult) => {\n\treturn isSigterm(signal) && forceKillAfterTimeout !== false && killResult;\n};\n\nconst isSigterm = signal => {\n\treturn signal === os.constants.signals.SIGTERM ||\n\t\t(typeof signal === 'string' && signal.toUpperCase() === 'SIGTERM');\n};\n\nconst getForceKillAfterTimeout = ({forceKillAfterTimeout = true}) => {\n\tif (forceKillAfterTimeout === true) {\n\t\treturn DEFAULT_FORCE_KILL_TIMEOUT;\n\t}\n\n\tif (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0) {\n\t\tthrow new TypeError(`Expected the \\`forceKillAfterTimeout\\` option to be a non-negative integer, got \\`${forceKillAfterTimeout}\\` (${typeof forceKillAfterTimeout})`);\n\t}\n\n\treturn forceKillAfterTimeout;\n};\n\n// `childProcess.cancel()`\nconst spawnedCancel = (spawned, context) => {\n\tconst killResult = spawned.kill();\n\n\tif (killResult) {\n\t\tcontext.isCanceled = true;\n\t}\n};\n\nconst timeoutKill = (spawned, signal, reject) => {\n\tspawned.kill(signal);\n\treject(Object.assign(new Error('Timed out'), {timedOut: true, signal}));\n};\n\n// `timeout` option handling\nconst setupTimeout = (spawned, {timeout, killSignal = 'SIGTERM'}, spawnedPromise) => {\n\tif (timeout === 0 || timeout === undefined) {\n\t\treturn spawnedPromise;\n\t}\n\n\tlet timeoutId;\n\tconst timeoutPromise = new Promise((resolve, reject) => {\n\t\ttimeoutId = setTimeout(() => {\n\t\t\ttimeoutKill(spawned, killSignal, reject);\n\t\t}, timeout);\n\t});\n\n\tconst safeSpawnedPromise = spawnedPromise.finally(() => {\n\t\tclearTimeout(timeoutId);\n\t});\n\n\treturn Promise.race([timeoutPromise, safeSpawnedPromise]);\n};\n\nconst validateTimeout = ({timeout}) => {\n\tif (timeout !== undefined && (!Number.isFinite(timeout) || timeout < 0)) {\n\t\tthrow new TypeError(`Expected the \\`timeout\\` option to be a non-negative integer, got \\`${timeout}\\` (${typeof timeout})`);\n\t}\n};\n\n// `cleanup` option handling\nconst setExitHandler = async (spawned, {cleanup, detached}, timedPromise) => {\n\tif (!cleanup || detached) {\n\t\treturn timedPromise;\n\t}\n\n\tconst removeExitHandler = onExit(() => {\n\t\tspawned.kill();\n\t});\n\n\treturn timedPromise.finally(() => {\n\t\tremoveExitHandler();\n\t});\n};\n\nmodule.exports = {\n\tspawnedKill,\n\tspawnedCancel,\n\tsetupTimeout,\n\tvalidateTimeout,\n\tsetExitHandler\n};\n","'use strict';\nconst path = require('path');\nconst childProcess = require('child_process');\nconst crossSpawn = require('cross-spawn');\nconst stripFinalNewline = require('strip-final-newline');\nconst npmRunPath = require('npm-run-path');\nconst onetime = require('onetime');\nconst makeError = require('./lib/error');\nconst normalizeStdio = require('./lib/stdio');\nconst {spawnedKill, spawnedCancel, setupTimeout, validateTimeout, setExitHandler} = require('./lib/kill');\nconst {handleInput, getSpawnedResult, makeAllStream, validateInputSync} = require('./lib/stream');\nconst {mergePromise, getSpawnedPromise} = require('./lib/promise');\nconst {joinCommand, parseCommand, getEscapedCommand} = require('./lib/command');\n\nconst DEFAULT_MAX_BUFFER = 1000 * 1000 * 100;\n\nconst getEnv = ({env: envOption, extendEnv, preferLocal, localDir, execPath}) => {\n\tconst env = extendEnv ? {...process.env, ...envOption} : envOption;\n\n\tif (preferLocal) {\n\t\treturn npmRunPath.env({env, cwd: localDir, execPath});\n\t}\n\n\treturn env;\n};\n\nconst handleArguments = (file, args, options = {}) => {\n\tconst parsed = crossSpawn._parse(file, args, options);\n\tfile = parsed.command;\n\targs = parsed.args;\n\toptions = parsed.options;\n\n\toptions = {\n\t\tmaxBuffer: DEFAULT_MAX_BUFFER,\n\t\tbuffer: true,\n\t\tstripFinalNewline: true,\n\t\textendEnv: true,\n\t\tpreferLocal: false,\n\t\tlocalDir: options.cwd || process.cwd(),\n\t\texecPath: process.execPath,\n\t\tencoding: 'utf8',\n\t\treject: true,\n\t\tcleanup: true,\n\t\tall: false,\n\t\twindowsHide: true,\n\t\t...options\n\t};\n\n\toptions.env = getEnv(options);\n\n\toptions.stdio = normalizeStdio(options);\n\n\tif (process.platform === 'win32' && path.basename(file, '.exe') === 'cmd') {\n\t\t// #116\n\t\targs.unshift('/q');\n\t}\n\n\treturn {file, args, options, parsed};\n};\n\nconst handleOutput = (options, value, error) => {\n\tif (typeof value !== 'string' && !Buffer.isBuffer(value)) {\n\t\t// When `execa.sync()` errors, we normalize it to '' to mimic `execa()`\n\t\treturn error === undefined ? undefined : '';\n\t}\n\n\tif (options.stripFinalNewline) {\n\t\treturn stripFinalNewline(value);\n\t}\n\n\treturn value;\n};\n\nconst execa = (file, args, options) => {\n\tconst parsed = handleArguments(file, args, options);\n\tconst command = joinCommand(file, args);\n\tconst escapedCommand = getEscapedCommand(file, args);\n\n\tvalidateTimeout(parsed.options);\n\n\tlet spawned;\n\ttry {\n\t\tspawned = childProcess.spawn(parsed.file, parsed.args, parsed.options);\n\t} catch (error) {\n\t\t// Ensure the returned error is always both a promise and a child process\n\t\tconst dummySpawned = new childProcess.ChildProcess();\n\t\tconst errorPromise = Promise.reject(makeError({\n\t\t\terror,\n\t\t\tstdout: '',\n\t\t\tstderr: '',\n\t\t\tall: '',\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false\n\t\t}));\n\t\treturn mergePromise(dummySpawned, errorPromise);\n\t}\n\n\tconst spawnedPromise = getSpawnedPromise(spawned);\n\tconst timedPromise = setupTimeout(spawned, parsed.options, spawnedPromise);\n\tconst processDone = setExitHandler(spawned, parsed.options, timedPromise);\n\n\tconst context = {isCanceled: false};\n\n\tspawned.kill = spawnedKill.bind(null, spawned.kill.bind(spawned));\n\tspawned.cancel = spawnedCancel.bind(null, spawned, context);\n\n\tconst handlePromise = async () => {\n\t\tconst [{error, exitCode, signal, timedOut}, stdoutResult, stderrResult, allResult] = await getSpawnedResult(spawned, parsed.options, processDone);\n\t\tconst stdout = handleOutput(parsed.options, stdoutResult);\n\t\tconst stderr = handleOutput(parsed.options, stderrResult);\n\t\tconst all = handleOutput(parsed.options, allResult);\n\n\t\tif (error || exitCode !== 0 || signal !== null) {\n\t\t\tconst returnedError = makeError({\n\t\t\t\terror,\n\t\t\t\texitCode,\n\t\t\t\tsignal,\n\t\t\t\tstdout,\n\t\t\t\tstderr,\n\t\t\t\tall,\n\t\t\t\tcommand,\n\t\t\t\tescapedCommand,\n\t\t\t\tparsed,\n\t\t\t\ttimedOut,\n\t\t\t\tisCanceled: context.isCanceled,\n\t\t\t\tkilled: spawned.killed\n\t\t\t});\n\n\t\t\tif (!parsed.options.reject) {\n\t\t\t\treturn returnedError;\n\t\t\t}\n\n\t\t\tthrow returnedError;\n\t\t}\n\n\t\treturn {\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\texitCode: 0,\n\t\t\tstdout,\n\t\t\tstderr,\n\t\t\tall,\n\t\t\tfailed: false,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false\n\t\t};\n\t};\n\n\tconst handlePromiseOnce = onetime(handlePromise);\n\n\thandleInput(spawned, parsed.options.input);\n\n\tspawned.all = makeAllStream(spawned, parsed.options);\n\n\treturn mergePromise(spawned, handlePromiseOnce);\n};\n\nmodule.exports = execa;\n\nmodule.exports.sync = (file, args, options) => {\n\tconst parsed = handleArguments(file, args, options);\n\tconst command = joinCommand(file, args);\n\tconst escapedCommand = getEscapedCommand(file, args);\n\n\tvalidateInputSync(parsed.options);\n\n\tlet result;\n\ttry {\n\t\tresult = childProcess.spawnSync(parsed.file, parsed.args, parsed.options);\n\t} catch (error) {\n\t\tthrow makeError({\n\t\t\terror,\n\t\t\tstdout: '',\n\t\t\tstderr: '',\n\t\t\tall: '',\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false\n\t\t});\n\t}\n\n\tconst stdout = handleOutput(parsed.options, result.stdout, result.error);\n\tconst stderr = handleOutput(parsed.options, result.stderr, result.error);\n\n\tif (result.error || result.status !== 0 || result.signal !== null) {\n\t\tconst error = makeError({\n\t\t\tstdout,\n\t\t\tstderr,\n\t\t\terror: result.error,\n\t\t\tsignal: result.signal,\n\t\t\texitCode: result.status,\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: result.error && result.error.code === 'ETIMEDOUT',\n\t\t\tisCanceled: false,\n\t\t\tkilled: result.signal !== null\n\t\t});\n\n\t\tif (!parsed.options.reject) {\n\t\t\treturn error;\n\t\t}\n\n\t\tthrow error;\n\t}\n\n\treturn {\n\t\tcommand,\n\t\tescapedCommand,\n\t\texitCode: 0,\n\t\tstdout,\n\t\tstderr,\n\t\tfailed: false,\n\t\ttimedOut: false,\n\t\tisCanceled: false,\n\t\tkilled: false\n\t};\n};\n\nmodule.exports.command = (command, options) => {\n\tconst [file, ...args] = parseCommand(command);\n\treturn execa(file, args, options);\n};\n\nmodule.exports.commandSync = (command, options) => {\n\tconst [file, ...args] = parseCommand(command);\n\treturn execa.sync(file, args, options);\n};\n\nmodule.exports.node = (scriptPath, args, options = {}) => {\n\tif (args && !Array.isArray(args) && typeof args === 'object') {\n\t\toptions = args;\n\t\targs = [];\n\t}\n\n\tconst stdio = normalizeStdio.node(options);\n\tconst defaultExecArgv = process.execArgv.filter(arg => !arg.startsWith('--inspect'));\n\n\tconst {\n\t\tnodePath = process.execPath,\n\t\tnodeOptions = defaultExecArgv\n\t} = options;\n\n\treturn execa(\n\t\tnodePath,\n\t\t[\n\t\t\t...nodeOptions,\n\t\t\tscriptPath,\n\t\t\t...(Array.isArray(args) ? args : [])\n\t\t],\n\t\t{\n\t\t\t...options,\n\t\t\tstdin: undefined,\n\t\t\tstdout: undefined,\n\t\t\tstderr: undefined,\n\t\t\tstdio,\n\t\t\tshell: false\n\t\t}\n\t);\n};\n","'use strict';\n\nconst isStream = stream =>\n\tstream !== null &&\n\ttypeof stream === 'object' &&\n\ttypeof stream.pipe === 'function';\n\nisStream.writable = stream =>\n\tisStream(stream) &&\n\tstream.writable !== false &&\n\ttypeof stream._write === 'function' &&\n\ttypeof stream._writableState === 'object';\n\nisStream.readable = stream =>\n\tisStream(stream) &&\n\tstream.readable !== false &&\n\ttypeof stream._read === 'function' &&\n\ttypeof stream._readableState === 'object';\n\nisStream.duplex = stream =>\n\tisStream.writable(stream) &&\n\tisStream.readable(stream);\n\nisStream.transform = stream =>\n\tisStream.duplex(stream) &&\n\ttypeof stream._transform === 'function';\n\nmodule.exports = isStream;\n","'use strict';\nconst {PassThrough: PassThroughStream} = require('stream');\n\nmodule.exports = options => {\n\toptions = {...options};\n\n\tconst {array} = options;\n\tlet {encoding} = options;\n\tconst isBuffer = encoding === 'buffer';\n\tlet objectMode = false;\n\n\tif (array) {\n\t\tobjectMode = !(encoding || isBuffer);\n\t} else {\n\t\tencoding = encoding || 'utf8';\n\t}\n\n\tif (isBuffer) {\n\t\tencoding = null;\n\t}\n\n\tconst stream = new PassThroughStream({objectMode});\n\n\tif (encoding) {\n\t\tstream.setEncoding(encoding);\n\t}\n\n\tlet length = 0;\n\tconst chunks = [];\n\n\tstream.on('data', chunk => {\n\t\tchunks.push(chunk);\n\n\t\tif (objectMode) {\n\t\t\tlength = chunks.length;\n\t\t} else {\n\t\t\tlength += chunk.length;\n\t\t}\n\t});\n\n\tstream.getBufferedValue = () => {\n\t\tif (array) {\n\t\t\treturn chunks;\n\t\t}\n\n\t\treturn isBuffer ? Buffer.concat(chunks, length) : chunks.join('');\n\t};\n\n\tstream.getBufferedLength = () => length;\n\n\treturn stream;\n};\n","'use strict';\n\nconst { PassThrough } = require('stream');\n\nmodule.exports = function (/*streams...*/) {\n var sources = []\n var output = new PassThrough({objectMode: true})\n\n output.setMaxListeners(0)\n\n output.add = add\n output.isEmpty = isEmpty\n\n output.on('unpipe', remove)\n\n Array.prototype.slice.call(arguments).forEach(add)\n\n return output\n\n function add (source) {\n if (Array.isArray(source)) {\n source.forEach(add)\n return this\n }\n\n sources.push(source);\n source.once('end', remove.bind(null, source))\n source.once('error', output.emit.bind(output, 'error'))\n source.pipe(output, {end: false})\n return this\n }\n\n function isEmpty () {\n return sources.length == 0;\n }\n\n function remove (source) {\n sources = sources.filter(function (it) { return it !== source })\n if (!sources.length && output.readable) { output.end() }\n }\n}\n","'use strict';\nconst isStream = require('is-stream');\nconst getStream = require('get-stream');\nconst mergeStream = require('merge-stream');\n\n// `input` option\nconst handleInput = (spawned, input) => {\n\t// Checking for stdin is workaround for https://github.com/nodejs/node/issues/26852\n\t// @todo remove `|| spawned.stdin === undefined` once we drop support for Node.js <=12.2.0\n\tif (input === undefined || spawned.stdin === undefined) {\n\t\treturn;\n\t}\n\n\tif (isStream(input)) {\n\t\tinput.pipe(spawned.stdin);\n\t} else {\n\t\tspawned.stdin.end(input);\n\t}\n};\n\n// `all` interleaves `stdout` and `stderr`\nconst makeAllStream = (spawned, {all}) => {\n\tif (!all || (!spawned.stdout && !spawned.stderr)) {\n\t\treturn;\n\t}\n\n\tconst mixed = mergeStream();\n\n\tif (spawned.stdout) {\n\t\tmixed.add(spawned.stdout);\n\t}\n\n\tif (spawned.stderr) {\n\t\tmixed.add(spawned.stderr);\n\t}\n\n\treturn mixed;\n};\n\n// On failure, `result.stdout|stderr|all` should contain the currently buffered stream\nconst getBufferedData = async (stream, streamPromise) => {\n\tif (!stream) {\n\t\treturn;\n\t}\n\n\tstream.destroy();\n\n\ttry {\n\t\treturn await streamPromise;\n\t} catch (error) {\n\t\treturn error.bufferedData;\n\t}\n};\n\nconst getStreamPromise = (stream, {encoding, buffer, maxBuffer}) => {\n\tif (!stream || !buffer) {\n\t\treturn;\n\t}\n\n\tif (encoding) {\n\t\treturn getStream(stream, {encoding, maxBuffer});\n\t}\n\n\treturn getStream.buffer(stream, {maxBuffer});\n};\n\n// Retrieve result of child process: exit code, signal, error, streams (stdout/stderr/all)\nconst getSpawnedResult = async ({stdout, stderr, all}, {encoding, buffer, maxBuffer}, processDone) => {\n\tconst stdoutPromise = getStreamPromise(stdout, {encoding, buffer, maxBuffer});\n\tconst stderrPromise = getStreamPromise(stderr, {encoding, buffer, maxBuffer});\n\tconst allPromise = getStreamPromise(all, {encoding, buffer, maxBuffer: maxBuffer * 2});\n\n\ttry {\n\t\treturn await Promise.all([processDone, stdoutPromise, stderrPromise, allPromise]);\n\t} catch (error) {\n\t\treturn Promise.all([\n\t\t\t{error, signal: error.signal, timedOut: error.timedOut},\n\t\t\tgetBufferedData(stdout, stdoutPromise),\n\t\t\tgetBufferedData(stderr, stderrPromise),\n\t\t\tgetBufferedData(all, allPromise)\n\t\t]);\n\t}\n};\n\nconst validateInputSync = ({input}) => {\n\tif (isStream(input)) {\n\t\tthrow new TypeError('The `input` option cannot be a stream in sync mode');\n\t}\n};\n\nmodule.exports = {\n\thandleInput,\n\tmakeAllStream,\n\tgetSpawnedResult,\n\tvalidateInputSync\n};\n\n","'use strict';\n\nconst nativePromisePrototype = (async () => {})().constructor.prototype;\nconst descriptors = ['then', 'catch', 'finally'].map(property => [\n\tproperty,\n\tReflect.getOwnPropertyDescriptor(nativePromisePrototype, property)\n]);\n\n// The return value is a mixin of `childProcess` and `Promise`\nconst mergePromise = (spawned, promise) => {\n\tfor (const [property, descriptor] of descriptors) {\n\t\t// Starting the main `promise` is deferred to avoid consuming streams\n\t\tconst value = typeof promise === 'function' ?\n\t\t\t(...args) => Reflect.apply(descriptor.value, promise(), args) :\n\t\t\tdescriptor.value.bind(promise);\n\n\t\tReflect.defineProperty(spawned, property, {...descriptor, value});\n\t}\n\n\treturn spawned;\n};\n\n// Use promises instead of `child_process` events\nconst getSpawnedPromise = spawned => {\n\treturn new Promise((resolve, reject) => {\n\t\tspawned.on('exit', (exitCode, signal) => {\n\t\t\tresolve({exitCode, signal});\n\t\t});\n\n\t\tspawned.on('error', error => {\n\t\t\treject(error);\n\t\t});\n\n\t\tif (spawned.stdin) {\n\t\t\tspawned.stdin.on('error', error => {\n\t\t\t\treject(error);\n\t\t\t});\n\t\t}\n\t});\n};\n\nmodule.exports = {\n\tmergePromise,\n\tgetSpawnedPromise\n};\n\n","'use strict';\nconst normalizeArgs = (file, args = []) => {\n\tif (!Array.isArray(args)) {\n\t\treturn [file];\n\t}\n\n\treturn [file, ...args];\n};\n\nconst NO_ESCAPE_REGEXP = /^[\\w.-]+$/;\nconst DOUBLE_QUOTES_REGEXP = /\"/g;\n\nconst escapeArg = arg => {\n\tif (typeof arg !== 'string' || NO_ESCAPE_REGEXP.test(arg)) {\n\t\treturn arg;\n\t}\n\n\treturn `\"${arg.replace(DOUBLE_QUOTES_REGEXP, '\\\\\"')}\"`;\n};\n\nconst joinCommand = (file, args) => {\n\treturn normalizeArgs(file, args).join(' ');\n};\n\nconst getEscapedCommand = (file, args) => {\n\treturn normalizeArgs(file, args).map(arg => escapeArg(arg)).join(' ');\n};\n\nconst SPACES_REGEXP = / +/g;\n\n// Handle `execa.command()`\nconst parseCommand = command => {\n\tconst tokens = [];\n\tfor (const token of command.trim().split(SPACES_REGEXP)) {\n\t\t// Allow spaces to be escaped by a backslash if not meant as a delimiter\n\t\tconst previousToken = tokens[tokens.length - 1];\n\t\tif (previousToken && previousToken.endsWith('\\\\')) {\n\t\t\t// Merge previous token with current one\n\t\t\ttokens[tokens.length - 1] = `${previousToken.slice(0, -1)} ${token}`;\n\t\t} else {\n\t\t\ttokens.push(token);\n\t\t}\n\t}\n\n\treturn tokens;\n};\n\nmodule.exports = {\n\tjoinCommand,\n\tgetEscapedCommand,\n\tparseCommand\n};\n",null,null,null,"// just pre-load all the stuff that index.js lazily exports\nconst internalRe = require('./internal/re')\nmodule.exports = {\n re: internalRe.re,\n src: internalRe.src,\n tokens: internalRe.t,\n SEMVER_SPEC_VERSION: require('./internal/constants').SEMVER_SPEC_VERSION,\n SemVer: require('./classes/semver'),\n compareIdentifiers: require('./internal/identifiers').compareIdentifiers,\n rcompareIdentifiers: require('./internal/identifiers').rcompareIdentifiers,\n parse: require('./functions/parse'),\n valid: require('./functions/valid'),\n clean: require('./functions/clean'),\n inc: require('./functions/inc'),\n diff: require('./functions/diff'),\n major: require('./functions/major'),\n minor: require('./functions/minor'),\n patch: require('./functions/patch'),\n prerelease: require('./functions/prerelease'),\n compare: require('./functions/compare'),\n rcompare: require('./functions/rcompare'),\n compareLoose: require('./functions/compare-loose'),\n compareBuild: require('./functions/compare-build'),\n sort: require('./functions/sort'),\n rsort: require('./functions/rsort'),\n gt: require('./functions/gt'),\n lt: require('./functions/lt'),\n eq: require('./functions/eq'),\n neq: require('./functions/neq'),\n gte: require('./functions/gte'),\n lte: require('./functions/lte'),\n cmp: require('./functions/cmp'),\n coerce: require('./functions/coerce'),\n Comparator: require('./classes/comparator'),\n Range: require('./classes/range'),\n satisfies: require('./functions/satisfies'),\n toComparators: require('./ranges/to-comparators'),\n maxSatisfying: require('./ranges/max-satisfying'),\n minSatisfying: require('./ranges/min-satisfying'),\n minVersion: require('./ranges/min-version'),\n validRange: require('./ranges/valid'),\n outside: require('./ranges/outside'),\n gtr: require('./ranges/gtr'),\n ltr: require('./ranges/ltr'),\n intersects: require('./ranges/intersects'),\n simplifyRange: require('./ranges/simplify'),\n subset: require('./ranges/subset'),\n}\n","const { MAX_SAFE_COMPONENT_LENGTH } = require('./constants')\nconst debug = require('./debug')\nexports = module.exports = {}\n\n// The actual regexps go on exports.re\nconst re = exports.re = []\nconst src = exports.src = []\nconst t = exports.t = {}\nlet R = 0\n\nconst createToken = (name, value, isGlobal) => {\n const index = R++\n debug(index, value)\n t[name] = index\n src[index] = value\n re[index] = new RegExp(value, isGlobal ? 'g' : undefined)\n}\n\n// The following Regular Expressions can be used for tokenizing,\n// validating, and parsing SemVer version strings.\n\n// ## Numeric Identifier\n// A single `0`, or a non-zero digit followed by zero or more digits.\n\ncreateToken('NUMERICIDENTIFIER', '0|[1-9]\\\\d*')\ncreateToken('NUMERICIDENTIFIERLOOSE', '[0-9]+')\n\n// ## Non-numeric Identifier\n// Zero or more digits, followed by a letter or hyphen, and then zero or\n// more letters, digits, or hyphens.\n\ncreateToken('NONNUMERICIDENTIFIER', '\\\\d*[a-zA-Z-][a-zA-Z0-9-]*')\n\n// ## Main Version\n// Three dot-separated numeric identifiers.\n\ncreateToken('MAINVERSION', `(${src[t.NUMERICIDENTIFIER]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIER]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIER]})`)\n\ncreateToken('MAINVERSIONLOOSE', `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIERLOOSE]})`)\n\n// ## Pre-release Version Identifier\n// A numeric identifier, or a non-numeric identifier.\n\ncreateToken('PRERELEASEIDENTIFIER', `(?:${src[t.NUMERICIDENTIFIER]\n}|${src[t.NONNUMERICIDENTIFIER]})`)\n\ncreateToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NUMERICIDENTIFIERLOOSE]\n}|${src[t.NONNUMERICIDENTIFIER]})`)\n\n// ## Pre-release Version\n// Hyphen, followed by one or more dot-separated pre-release version\n// identifiers.\n\ncreateToken('PRERELEASE', `(?:-(${src[t.PRERELEASEIDENTIFIER]\n}(?:\\\\.${src[t.PRERELEASEIDENTIFIER]})*))`)\n\ncreateToken('PRERELEASELOOSE', `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]\n}(?:\\\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`)\n\n// ## Build Metadata Identifier\n// Any combination of digits, letters, or hyphens.\n\ncreateToken('BUILDIDENTIFIER', '[0-9A-Za-z-]+')\n\n// ## Build Metadata\n// Plus sign, followed by one or more period-separated build metadata\n// identifiers.\n\ncreateToken('BUILD', `(?:\\\\+(${src[t.BUILDIDENTIFIER]\n}(?:\\\\.${src[t.BUILDIDENTIFIER]})*))`)\n\n// ## Full Version String\n// A main version, followed optionally by a pre-release version and\n// build metadata.\n\n// Note that the only major, minor, patch, and pre-release sections of\n// the version string are capturing groups. The build metadata is not a\n// capturing group, because it should not ever be used in version\n// comparison.\n\ncreateToken('FULLPLAIN', `v?${src[t.MAINVERSION]\n}${src[t.PRERELEASE]}?${\n src[t.BUILD]}?`)\n\ncreateToken('FULL', `^${src[t.FULLPLAIN]}$`)\n\n// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.\n// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty\n// common in the npm registry.\ncreateToken('LOOSEPLAIN', `[v=\\\\s]*${src[t.MAINVERSIONLOOSE]\n}${src[t.PRERELEASELOOSE]}?${\n src[t.BUILD]}?`)\n\ncreateToken('LOOSE', `^${src[t.LOOSEPLAIN]}$`)\n\ncreateToken('GTLT', '((?:<|>)?=?)')\n\n// Something like \"2.*\" or \"1.2.x\".\n// Note that \"x.x\" is a valid xRange identifer, meaning \"any version\"\n// Only the first item is strictly required.\ncreateToken('XRANGEIDENTIFIERLOOSE', `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\\\*`)\ncreateToken('XRANGEIDENTIFIER', `${src[t.NUMERICIDENTIFIER]}|x|X|\\\\*`)\n\ncreateToken('XRANGEPLAIN', `[v=\\\\s]*(${src[t.XRANGEIDENTIFIER]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` +\n `(?:${src[t.PRERELEASE]})?${\n src[t.BUILD]}?` +\n `)?)?`)\n\ncreateToken('XRANGEPLAINLOOSE', `[v=\\\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:${src[t.PRERELEASELOOSE]})?${\n src[t.BUILD]}?` +\n `)?)?`)\n\ncreateToken('XRANGE', `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAIN]}$`)\ncreateToken('XRANGELOOSE', `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAINLOOSE]}$`)\n\n// Coercion.\n// Extract anything that could conceivably be a part of a valid semver\ncreateToken('COERCE', `${'(^|[^\\\\d])' +\n '(\\\\d{1,'}${MAX_SAFE_COMPONENT_LENGTH}})` +\n `(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +\n `(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +\n `(?:$|[^\\\\d])`)\ncreateToken('COERCERTL', src[t.COERCE], true)\n\n// Tilde ranges.\n// Meaning is \"reasonably at or greater than\"\ncreateToken('LONETILDE', '(?:~>?)')\n\ncreateToken('TILDETRIM', `(\\\\s*)${src[t.LONETILDE]}\\\\s+`, true)\nexports.tildeTrimReplace = '$1~'\n\ncreateToken('TILDE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`)\ncreateToken('TILDELOOSE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`)\n\n// Caret ranges.\n// Meaning is \"at least and backwards compatible with\"\ncreateToken('LONECARET', '(?:\\\\^)')\n\ncreateToken('CARETTRIM', `(\\\\s*)${src[t.LONECARET]}\\\\s+`, true)\nexports.caretTrimReplace = '$1^'\n\ncreateToken('CARET', `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`)\ncreateToken('CARETLOOSE', `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`)\n\n// A simple gt/lt/eq thing, or just \"\" to indicate \"any version\"\ncreateToken('COMPARATORLOOSE', `^${src[t.GTLT]}\\\\s*(${src[t.LOOSEPLAIN]})$|^$`)\ncreateToken('COMPARATOR', `^${src[t.GTLT]}\\\\s*(${src[t.FULLPLAIN]})$|^$`)\n\n// An expression to strip any whitespace between the gtlt and the thing\n// it modifies, so that `> 1.2.3` ==> `>1.2.3`\ncreateToken('COMPARATORTRIM', `(\\\\s*)${src[t.GTLT]\n}\\\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true)\nexports.comparatorTrimReplace = '$1$2$3'\n\n// Something like `1.2.3 - 1.2.4`\n// Note that these all use the loose form, because they'll be\n// checked against either the strict or loose comparator form\n// later.\ncreateToken('HYPHENRANGE', `^\\\\s*(${src[t.XRANGEPLAIN]})` +\n `\\\\s+-\\\\s+` +\n `(${src[t.XRANGEPLAIN]})` +\n `\\\\s*$`)\n\ncreateToken('HYPHENRANGELOOSE', `^\\\\s*(${src[t.XRANGEPLAINLOOSE]})` +\n `\\\\s+-\\\\s+` +\n `(${src[t.XRANGEPLAINLOOSE]})` +\n `\\\\s*$`)\n\n// Star ranges basically just allow anything at all.\ncreateToken('STAR', '(<|>)?=?\\\\s*\\\\*')\n// >=0.0.0 is like a star\ncreateToken('GTE0', '^\\\\s*>=\\\\s*0\\.0\\.0\\\\s*$')\ncreateToken('GTE0PRE', '^\\\\s*>=\\\\s*0\\.0\\.0-0\\\\s*$')\n","// Note: this is the semver.org version of the spec that it implements\n// Not necessarily the package version of this code.\nconst SEMVER_SPEC_VERSION = '2.0.0'\n\nconst MAX_LENGTH = 256\nconst MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||\n /* istanbul ignore next */ 9007199254740991\n\n// Max safe segment length for coercion.\nconst MAX_SAFE_COMPONENT_LENGTH = 16\n\nmodule.exports = {\n SEMVER_SPEC_VERSION,\n MAX_LENGTH,\n MAX_SAFE_INTEGER,\n MAX_SAFE_COMPONENT_LENGTH\n}\n","const debug = (\n typeof process === 'object' &&\n process.env &&\n process.env.NODE_DEBUG &&\n /\\bsemver\\b/i.test(process.env.NODE_DEBUG)\n) ? (...args) => console.error('SEMVER', ...args)\n : () => {}\n\nmodule.exports = debug\n","const debug = require('../internal/debug')\nconst { MAX_LENGTH, MAX_SAFE_INTEGER } = require('../internal/constants')\nconst { re, t } = require('../internal/re')\n\nconst parseOptions = require('../internal/parse-options')\nconst { compareIdentifiers } = require('../internal/identifiers')\nclass SemVer {\n constructor (version, options) {\n options = parseOptions(options)\n\n if (version instanceof SemVer) {\n if (version.loose === !!options.loose &&\n version.includePrerelease === !!options.includePrerelease) {\n return version\n } else {\n version = version.version\n }\n } else if (typeof version !== 'string') {\n throw new TypeError(`Invalid Version: ${version}`)\n }\n\n if (version.length > MAX_LENGTH) {\n throw new TypeError(\n `version is longer than ${MAX_LENGTH} characters`\n )\n }\n\n debug('SemVer', version, options)\n this.options = options\n this.loose = !!options.loose\n // this isn't actually relevant for versions, but keep it so that we\n // don't run into trouble passing this.options around.\n this.includePrerelease = !!options.includePrerelease\n\n const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL])\n\n if (!m) {\n throw new TypeError(`Invalid Version: ${version}`)\n }\n\n this.raw = version\n\n // these are actually numbers\n this.major = +m[1]\n this.minor = +m[2]\n this.patch = +m[3]\n\n if (this.major > MAX_SAFE_INTEGER || this.major < 0) {\n throw new TypeError('Invalid major version')\n }\n\n if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {\n throw new TypeError('Invalid minor version')\n }\n\n if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {\n throw new TypeError('Invalid patch version')\n }\n\n // numberify any prerelease numeric ids\n if (!m[4]) {\n this.prerelease = []\n } else {\n this.prerelease = m[4].split('.').map((id) => {\n if (/^[0-9]+$/.test(id)) {\n const num = +id\n if (num >= 0 && num < MAX_SAFE_INTEGER) {\n return num\n }\n }\n return id\n })\n }\n\n this.build = m[5] ? m[5].split('.') : []\n this.format()\n }\n\n format () {\n this.version = `${this.major}.${this.minor}.${this.patch}`\n if (this.prerelease.length) {\n this.version += `-${this.prerelease.join('.')}`\n }\n return this.version\n }\n\n toString () {\n return this.version\n }\n\n compare (other) {\n debug('SemVer.compare', this.version, this.options, other)\n if (!(other instanceof SemVer)) {\n if (typeof other === 'string' && other === this.version) {\n return 0\n }\n other = new SemVer(other, this.options)\n }\n\n if (other.version === this.version) {\n return 0\n }\n\n return this.compareMain(other) || this.comparePre(other)\n }\n\n compareMain (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n return (\n compareIdentifiers(this.major, other.major) ||\n compareIdentifiers(this.minor, other.minor) ||\n compareIdentifiers(this.patch, other.patch)\n )\n }\n\n comparePre (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n // NOT having a prerelease is > having one\n if (this.prerelease.length && !other.prerelease.length) {\n return -1\n } else if (!this.prerelease.length && other.prerelease.length) {\n return 1\n } else if (!this.prerelease.length && !other.prerelease.length) {\n return 0\n }\n\n let i = 0\n do {\n const a = this.prerelease[i]\n const b = other.prerelease[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n compareBuild (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n let i = 0\n do {\n const a = this.build[i]\n const b = other.build[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n // preminor will bump the version up to the next minor release, and immediately\n // down to pre-release. premajor and prepatch work the same way.\n inc (release, identifier) {\n switch (release) {\n case 'premajor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor = 0\n this.major++\n this.inc('pre', identifier)\n break\n case 'preminor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor++\n this.inc('pre', identifier)\n break\n case 'prepatch':\n // If this is already a prerelease, it will bump to the next version\n // drop any prereleases that might already exist, since they are not\n // relevant at this point.\n this.prerelease.length = 0\n this.inc('patch', identifier)\n this.inc('pre', identifier)\n break\n // If the input is a non-prerelease version, this acts the same as\n // prepatch.\n case 'prerelease':\n if (this.prerelease.length === 0) {\n this.inc('patch', identifier)\n }\n this.inc('pre', identifier)\n break\n\n case 'major':\n // If this is a pre-major version, bump up to the same major version.\n // Otherwise increment major.\n // 1.0.0-5 bumps to 1.0.0\n // 1.1.0 bumps to 2.0.0\n if (\n this.minor !== 0 ||\n this.patch !== 0 ||\n this.prerelease.length === 0\n ) {\n this.major++\n }\n this.minor = 0\n this.patch = 0\n this.prerelease = []\n break\n case 'minor':\n // If this is a pre-minor version, bump up to the same minor version.\n // Otherwise increment minor.\n // 1.2.0-5 bumps to 1.2.0\n // 1.2.1 bumps to 1.3.0\n if (this.patch !== 0 || this.prerelease.length === 0) {\n this.minor++\n }\n this.patch = 0\n this.prerelease = []\n break\n case 'patch':\n // If this is not a pre-release version, it will increment the patch.\n // If it is a pre-release it will bump up to the same patch version.\n // 1.2.0-5 patches to 1.2.0\n // 1.2.0 patches to 1.2.1\n if (this.prerelease.length === 0) {\n this.patch++\n }\n this.prerelease = []\n break\n // This probably shouldn't be used publicly.\n // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.\n case 'pre':\n if (this.prerelease.length === 0) {\n this.prerelease = [0]\n } else {\n let i = this.prerelease.length\n while (--i >= 0) {\n if (typeof this.prerelease[i] === 'number') {\n this.prerelease[i]++\n i = -2\n }\n }\n if (i === -1) {\n // didn't increment anything\n this.prerelease.push(0)\n }\n }\n if (identifier) {\n // 1.2.0-beta.1 bumps to 1.2.0-beta.2,\n // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0\n if (this.prerelease[0] === identifier) {\n if (isNaN(this.prerelease[1])) {\n this.prerelease = [identifier, 0]\n }\n } else {\n this.prerelease = [identifier, 0]\n }\n }\n break\n\n default:\n throw new Error(`invalid increment argument: ${release}`)\n }\n this.format()\n this.raw = this.version\n return this\n }\n}\n\nmodule.exports = SemVer\n","// parse out just the options we care about so we always get a consistent\n// obj with keys in a consistent order.\nconst opts = ['includePrerelease', 'loose', 'rtl']\nconst parseOptions = options =>\n !options ? {}\n : typeof options !== 'object' ? { loose: true }\n : opts.filter(k => options[k]).reduce((options, k) => {\n options[k] = true\n return options\n }, {})\nmodule.exports = parseOptions\n","const numeric = /^[0-9]+$/\nconst compareIdentifiers = (a, b) => {\n const anum = numeric.test(a)\n const bnum = numeric.test(b)\n\n if (anum && bnum) {\n a = +a\n b = +b\n }\n\n return a === b ? 0\n : (anum && !bnum) ? -1\n : (bnum && !anum) ? 1\n : a < b ? -1\n : 1\n}\n\nconst rcompareIdentifiers = (a, b) => compareIdentifiers(b, a)\n\nmodule.exports = {\n compareIdentifiers,\n rcompareIdentifiers\n}\n","const {MAX_LENGTH} = require('../internal/constants')\nconst { re, t } = require('../internal/re')\nconst SemVer = require('../classes/semver')\n\nconst parseOptions = require('../internal/parse-options')\nconst parse = (version, options) => {\n options = parseOptions(options)\n\n if (version instanceof SemVer) {\n return version\n }\n\n if (typeof version !== 'string') {\n return null\n }\n\n if (version.length > MAX_LENGTH) {\n return null\n }\n\n const r = options.loose ? re[t.LOOSE] : re[t.FULL]\n if (!r.test(version)) {\n return null\n }\n\n try {\n return new SemVer(version, options)\n } catch (er) {\n return null\n }\n}\n\nmodule.exports = parse\n","const parse = require('./parse')\nconst valid = (version, options) => {\n const v = parse(version, options)\n return v ? v.version : null\n}\nmodule.exports = valid\n","const parse = require('./parse')\nconst clean = (version, options) => {\n const s = parse(version.trim().replace(/^[=v]+/, ''), options)\n return s ? s.version : null\n}\nmodule.exports = clean\n","const SemVer = require('../classes/semver')\n\nconst inc = (version, release, options, identifier) => {\n if (typeof (options) === 'string') {\n identifier = options\n options = undefined\n }\n\n try {\n return new SemVer(version, options).inc(release, identifier).version\n } catch (er) {\n return null\n }\n}\nmodule.exports = inc\n","const parse = require('./parse')\nconst eq = require('./eq')\n\nconst diff = (version1, version2) => {\n if (eq(version1, version2)) {\n return null\n } else {\n const v1 = parse(version1)\n const v2 = parse(version2)\n const hasPre = v1.prerelease.length || v2.prerelease.length\n const prefix = hasPre ? 'pre' : ''\n const defaultResult = hasPre ? 'prerelease' : ''\n for (const key in v1) {\n if (key === 'major' || key === 'minor' || key === 'patch') {\n if (v1[key] !== v2[key]) {\n return prefix + key\n }\n }\n }\n return defaultResult // may be undefined\n }\n}\nmodule.exports = diff\n","const compare = require('./compare')\nconst eq = (a, b, loose) => compare(a, b, loose) === 0\nmodule.exports = eq\n","const SemVer = require('../classes/semver')\nconst compare = (a, b, loose) =>\n new SemVer(a, loose).compare(new SemVer(b, loose))\n\nmodule.exports = compare\n","const SemVer = require('../classes/semver')\nconst major = (a, loose) => new SemVer(a, loose).major\nmodule.exports = major\n","const SemVer = require('../classes/semver')\nconst minor = (a, loose) => new SemVer(a, loose).minor\nmodule.exports = minor\n","const SemVer = require('../classes/semver')\nconst patch = (a, loose) => new SemVer(a, loose).patch\nmodule.exports = patch\n","const parse = require('./parse')\nconst prerelease = (version, options) => {\n const parsed = parse(version, options)\n return (parsed && parsed.prerelease.length) ? parsed.prerelease : null\n}\nmodule.exports = prerelease\n","const compare = require('./compare')\nconst rcompare = (a, b, loose) => compare(b, a, loose)\nmodule.exports = rcompare\n","const compare = require('./compare')\nconst compareLoose = (a, b) => compare(a, b, true)\nmodule.exports = compareLoose\n","const SemVer = require('../classes/semver')\nconst compareBuild = (a, b, loose) => {\n const versionA = new SemVer(a, loose)\n const versionB = new SemVer(b, loose)\n return versionA.compare(versionB) || versionA.compareBuild(versionB)\n}\nmodule.exports = compareBuild\n","const compareBuild = require('./compare-build')\nconst sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose))\nmodule.exports = sort\n","const compareBuild = require('./compare-build')\nconst rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose))\nmodule.exports = rsort\n","const compare = require('./compare')\nconst gt = (a, b, loose) => compare(a, b, loose) > 0\nmodule.exports = gt\n","const compare = require('./compare')\nconst lt = (a, b, loose) => compare(a, b, loose) < 0\nmodule.exports = lt\n","const compare = require('./compare')\nconst neq = (a, b, loose) => compare(a, b, loose) !== 0\nmodule.exports = neq\n","const compare = require('./compare')\nconst gte = (a, b, loose) => compare(a, b, loose) >= 0\nmodule.exports = gte\n","const compare = require('./compare')\nconst lte = (a, b, loose) => compare(a, b, loose) <= 0\nmodule.exports = lte\n","const eq = require('./eq')\nconst neq = require('./neq')\nconst gt = require('./gt')\nconst gte = require('./gte')\nconst lt = require('./lt')\nconst lte = require('./lte')\n\nconst cmp = (a, op, b, loose) => {\n switch (op) {\n case '===':\n if (typeof a === 'object')\n a = a.version\n if (typeof b === 'object')\n b = b.version\n return a === b\n\n case '!==':\n if (typeof a === 'object')\n a = a.version\n if (typeof b === 'object')\n b = b.version\n return a !== b\n\n case '':\n case '=':\n case '==':\n return eq(a, b, loose)\n\n case '!=':\n return neq(a, b, loose)\n\n case '>':\n return gt(a, b, loose)\n\n case '>=':\n return gte(a, b, loose)\n\n case '<':\n return lt(a, b, loose)\n\n case '<=':\n return lte(a, b, loose)\n\n default:\n throw new TypeError(`Invalid operator: ${op}`)\n }\n}\nmodule.exports = cmp\n","const SemVer = require('../classes/semver')\nconst parse = require('./parse')\nconst {re, t} = require('../internal/re')\n\nconst coerce = (version, options) => {\n if (version instanceof SemVer) {\n return version\n }\n\n if (typeof version === 'number') {\n version = String(version)\n }\n\n if (typeof version !== 'string') {\n return null\n }\n\n options = options || {}\n\n let match = null\n if (!options.rtl) {\n match = version.match(re[t.COERCE])\n } else {\n // Find the right-most coercible string that does not share\n // a terminus with a more left-ward coercible string.\n // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'\n //\n // Walk through the string checking with a /g regexp\n // Manually set the index so as to pick up overlapping matches.\n // Stop when we get a match that ends at the string end, since no\n // coercible string can be more right-ward without the same terminus.\n let next\n while ((next = re[t.COERCERTL].exec(version)) &&\n (!match || match.index + match[0].length !== version.length)\n ) {\n if (!match ||\n next.index + next[0].length !== match.index + match[0].length) {\n match = next\n }\n re[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length\n }\n // leave it in a clean state\n re[t.COERCERTL].lastIndex = -1\n }\n\n if (match === null)\n return null\n\n return parse(`${match[2]}.${match[3] || '0'}.${match[4] || '0'}`, options)\n}\nmodule.exports = coerce\n","const ANY = Symbol('SemVer ANY')\n// hoisted class for cyclic dependency\nclass Comparator {\n static get ANY () {\n return ANY\n }\n constructor (comp, options) {\n options = parseOptions(options)\n\n if (comp instanceof Comparator) {\n if (comp.loose === !!options.loose) {\n return comp\n } else {\n comp = comp.value\n }\n }\n\n debug('comparator', comp, options)\n this.options = options\n this.loose = !!options.loose\n this.parse(comp)\n\n if (this.semver === ANY) {\n this.value = ''\n } else {\n this.value = this.operator + this.semver.version\n }\n\n debug('comp', this)\n }\n\n parse (comp) {\n const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]\n const m = comp.match(r)\n\n if (!m) {\n throw new TypeError(`Invalid comparator: ${comp}`)\n }\n\n this.operator = m[1] !== undefined ? m[1] : ''\n if (this.operator === '=') {\n this.operator = ''\n }\n\n // if it literally is just '>' or '' then allow anything.\n if (!m[2]) {\n this.semver = ANY\n } else {\n this.semver = new SemVer(m[2], this.options.loose)\n }\n }\n\n toString () {\n return this.value\n }\n\n test (version) {\n debug('Comparator.test', version, this.options.loose)\n\n if (this.semver === ANY || version === ANY) {\n return true\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n return cmp(version, this.operator, this.semver, this.options)\n }\n\n intersects (comp, options) {\n if (!(comp instanceof Comparator)) {\n throw new TypeError('a Comparator is required')\n }\n\n if (!options || typeof options !== 'object') {\n options = {\n loose: !!options,\n includePrerelease: false\n }\n }\n\n if (this.operator === '') {\n if (this.value === '') {\n return true\n }\n return new Range(comp.value, options).test(this.value)\n } else if (comp.operator === '') {\n if (comp.value === '') {\n return true\n }\n return new Range(this.value, options).test(comp.semver)\n }\n\n const sameDirectionIncreasing =\n (this.operator === '>=' || this.operator === '>') &&\n (comp.operator === '>=' || comp.operator === '>')\n const sameDirectionDecreasing =\n (this.operator === '<=' || this.operator === '<') &&\n (comp.operator === '<=' || comp.operator === '<')\n const sameSemVer = this.semver.version === comp.semver.version\n const differentDirectionsInclusive =\n (this.operator === '>=' || this.operator === '<=') &&\n (comp.operator === '>=' || comp.operator === '<=')\n const oppositeDirectionsLessThan =\n cmp(this.semver, '<', comp.semver, options) &&\n (this.operator === '>=' || this.operator === '>') &&\n (comp.operator === '<=' || comp.operator === '<')\n const oppositeDirectionsGreaterThan =\n cmp(this.semver, '>', comp.semver, options) &&\n (this.operator === '<=' || this.operator === '<') &&\n (comp.operator === '>=' || comp.operator === '>')\n\n return (\n sameDirectionIncreasing ||\n sameDirectionDecreasing ||\n (sameSemVer && differentDirectionsInclusive) ||\n oppositeDirectionsLessThan ||\n oppositeDirectionsGreaterThan\n )\n }\n}\n\nmodule.exports = Comparator\n\nconst parseOptions = require('../internal/parse-options')\nconst {re, t} = require('../internal/re')\nconst cmp = require('../functions/cmp')\nconst debug = require('../internal/debug')\nconst SemVer = require('./semver')\nconst Range = require('./range')\n","// hoisted class for cyclic dependency\nclass Range {\n constructor (range, options) {\n options = parseOptions(options)\n\n if (range instanceof Range) {\n if (\n range.loose === !!options.loose &&\n range.includePrerelease === !!options.includePrerelease\n ) {\n return range\n } else {\n return new Range(range.raw, options)\n }\n }\n\n if (range instanceof Comparator) {\n // just put it in the set and return\n this.raw = range.value\n this.set = [[range]]\n this.format()\n return this\n }\n\n this.options = options\n this.loose = !!options.loose\n this.includePrerelease = !!options.includePrerelease\n\n // First, split based on boolean or ||\n this.raw = range\n this.set = range\n .split(/\\s*\\|\\|\\s*/)\n // map the range to a 2d array of comparators\n .map(range => this.parseRange(range.trim()))\n // throw out any comparator lists that are empty\n // this generally means that it was not a valid range, which is allowed\n // in loose mode, but will still throw if the WHOLE range is invalid.\n .filter(c => c.length)\n\n if (!this.set.length) {\n throw new TypeError(`Invalid SemVer Range: ${range}`)\n }\n\n // if we have any that are not the null set, throw out null sets.\n if (this.set.length > 1) {\n // keep the first one, in case they're all null sets\n const first = this.set[0]\n this.set = this.set.filter(c => !isNullSet(c[0]))\n if (this.set.length === 0)\n this.set = [first]\n else if (this.set.length > 1) {\n // if we have any that are *, then the range is just *\n for (const c of this.set) {\n if (c.length === 1 && isAny(c[0])) {\n this.set = [c]\n break\n }\n }\n }\n }\n\n this.format()\n }\n\n format () {\n this.range = this.set\n .map((comps) => {\n return comps.join(' ').trim()\n })\n .join('||')\n .trim()\n return this.range\n }\n\n toString () {\n return this.range\n }\n\n parseRange (range) {\n range = range.trim()\n\n // memoize range parsing for performance.\n // this is a very hot path, and fully deterministic.\n const memoOpts = Object.keys(this.options).join(',')\n const memoKey = `parseRange:${memoOpts}:${range}`\n const cached = cache.get(memoKey)\n if (cached)\n return cached\n\n const loose = this.options.loose\n // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`\n const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE]\n range = range.replace(hr, hyphenReplace(this.options.includePrerelease))\n debug('hyphen replace', range)\n // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`\n range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace)\n debug('comparator trim', range, re[t.COMPARATORTRIM])\n\n // `~ 1.2.3` => `~1.2.3`\n range = range.replace(re[t.TILDETRIM], tildeTrimReplace)\n\n // `^ 1.2.3` => `^1.2.3`\n range = range.replace(re[t.CARETTRIM], caretTrimReplace)\n\n // normalize spaces\n range = range.split(/\\s+/).join(' ')\n\n // At this point, the range is completely trimmed and\n // ready to be split into comparators.\n\n const compRe = loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]\n const rangeList = range\n .split(' ')\n .map(comp => parseComparator(comp, this.options))\n .join(' ')\n .split(/\\s+/)\n // >=0.0.0 is equivalent to *\n .map(comp => replaceGTE0(comp, this.options))\n // in loose mode, throw out any that are not valid comparators\n .filter(this.options.loose ? comp => !!comp.match(compRe) : () => true)\n .map(comp => new Comparator(comp, this.options))\n\n // if any comparators are the null set, then replace with JUST null set\n // if more than one comparator, remove any * comparators\n // also, don't include the same comparator more than once\n const l = rangeList.length\n const rangeMap = new Map()\n for (const comp of rangeList) {\n if (isNullSet(comp))\n return [comp]\n rangeMap.set(comp.value, comp)\n }\n if (rangeMap.size > 1 && rangeMap.has(''))\n rangeMap.delete('')\n\n const result = [...rangeMap.values()]\n cache.set(memoKey, result)\n return result\n }\n\n intersects (range, options) {\n if (!(range instanceof Range)) {\n throw new TypeError('a Range is required')\n }\n\n return this.set.some((thisComparators) => {\n return (\n isSatisfiable(thisComparators, options) &&\n range.set.some((rangeComparators) => {\n return (\n isSatisfiable(rangeComparators, options) &&\n thisComparators.every((thisComparator) => {\n return rangeComparators.every((rangeComparator) => {\n return thisComparator.intersects(rangeComparator, options)\n })\n })\n )\n })\n )\n })\n }\n\n // if ANY of the sets match ALL of its comparators, then pass\n test (version) {\n if (!version) {\n return false\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n for (let i = 0; i < this.set.length; i++) {\n if (testSet(this.set[i], version, this.options)) {\n return true\n }\n }\n return false\n }\n}\nmodule.exports = Range\n\nconst LRU = require('lru-cache')\nconst cache = new LRU({ max: 1000 })\n\nconst parseOptions = require('../internal/parse-options')\nconst Comparator = require('./comparator')\nconst debug = require('../internal/debug')\nconst SemVer = require('./semver')\nconst {\n re,\n t,\n comparatorTrimReplace,\n tildeTrimReplace,\n caretTrimReplace\n} = require('../internal/re')\n\nconst isNullSet = c => c.value === '<0.0.0-0'\nconst isAny = c => c.value === ''\n\n// take a set of comparators and determine whether there\n// exists a version which can satisfy it\nconst isSatisfiable = (comparators, options) => {\n let result = true\n const remainingComparators = comparators.slice()\n let testComparator = remainingComparators.pop()\n\n while (result && remainingComparators.length) {\n result = remainingComparators.every((otherComparator) => {\n return testComparator.intersects(otherComparator, options)\n })\n\n testComparator = remainingComparators.pop()\n }\n\n return result\n}\n\n// comprised of xranges, tildes, stars, and gtlt's at this point.\n// already replaced the hyphen ranges\n// turn into a set of JUST comparators.\nconst parseComparator = (comp, options) => {\n debug('comp', comp, options)\n comp = replaceCarets(comp, options)\n debug('caret', comp)\n comp = replaceTildes(comp, options)\n debug('tildes', comp)\n comp = replaceXRanges(comp, options)\n debug('xrange', comp)\n comp = replaceStars(comp, options)\n debug('stars', comp)\n return comp\n}\n\nconst isX = id => !id || id.toLowerCase() === 'x' || id === '*'\n\n// ~, ~> --> * (any, kinda silly)\n// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0-0\n// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0-0\n// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0-0\n// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0-0\n// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0-0\nconst replaceTildes = (comp, options) =>\n comp.trim().split(/\\s+/).map((comp) => {\n return replaceTilde(comp, options)\n }).join(' ')\n\nconst replaceTilde = (comp, options) => {\n const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE]\n return comp.replace(r, (_, M, m, p, pr) => {\n debug('tilde', comp, _, M, m, p, pr)\n let ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = `>=${M}.0.0 <${+M + 1}.0.0-0`\n } else if (isX(p)) {\n // ~1.2 == >=1.2.0 <1.3.0-0\n ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`\n } else if (pr) {\n debug('replaceTilde pr', pr)\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${+m + 1}.0-0`\n } else {\n // ~1.2.3 == >=1.2.3 <1.3.0-0\n ret = `>=${M}.${m}.${p\n } <${M}.${+m + 1}.0-0`\n }\n\n debug('tilde return', ret)\n return ret\n })\n}\n\n// ^ --> * (any, kinda silly)\n// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0-0\n// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0-0\n// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0-0\n// ^1.2.3 --> >=1.2.3 <2.0.0-0\n// ^1.2.0 --> >=1.2.0 <2.0.0-0\nconst replaceCarets = (comp, options) =>\n comp.trim().split(/\\s+/).map((comp) => {\n return replaceCaret(comp, options)\n }).join(' ')\n\nconst replaceCaret = (comp, options) => {\n debug('caret', comp, options)\n const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET]\n const z = options.includePrerelease ? '-0' : ''\n return comp.replace(r, (_, M, m, p, pr) => {\n debug('caret', comp, _, M, m, p, pr)\n let ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`\n } else if (isX(p)) {\n if (M === '0') {\n ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`\n } else {\n ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`\n }\n } else if (pr) {\n debug('replaceCaret pr', pr)\n if (M === '0') {\n if (m === '0') {\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${m}.${+p + 1}-0`\n } else {\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${+m + 1}.0-0`\n }\n } else {\n ret = `>=${M}.${m}.${p}-${pr\n } <${+M + 1}.0.0-0`\n }\n } else {\n debug('no pr')\n if (M === '0') {\n if (m === '0') {\n ret = `>=${M}.${m}.${p\n }${z} <${M}.${m}.${+p + 1}-0`\n } else {\n ret = `>=${M}.${m}.${p\n }${z} <${M}.${+m + 1}.0-0`\n }\n } else {\n ret = `>=${M}.${m}.${p\n } <${+M + 1}.0.0-0`\n }\n }\n\n debug('caret return', ret)\n return ret\n })\n}\n\nconst replaceXRanges = (comp, options) => {\n debug('replaceXRanges', comp, options)\n return comp.split(/\\s+/).map((comp) => {\n return replaceXRange(comp, options)\n }).join(' ')\n}\n\nconst replaceXRange = (comp, options) => {\n comp = comp.trim()\n const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE]\n return comp.replace(r, (ret, gtlt, M, m, p, pr) => {\n debug('xRange', comp, ret, gtlt, M, m, p, pr)\n const xM = isX(M)\n const xm = xM || isX(m)\n const xp = xm || isX(p)\n const anyX = xp\n\n if (gtlt === '=' && anyX) {\n gtlt = ''\n }\n\n // if we're including prereleases in the match, then we need\n // to fix this to -0, the lowest possible prerelease value\n pr = options.includePrerelease ? '-0' : ''\n\n if (xM) {\n if (gtlt === '>' || gtlt === '<') {\n // nothing is allowed\n ret = '<0.0.0-0'\n } else {\n // nothing is forbidden\n ret = '*'\n }\n } else if (gtlt && anyX) {\n // we know patch is an x, because we have any x at all.\n // replace X with 0\n if (xm) {\n m = 0\n }\n p = 0\n\n if (gtlt === '>') {\n // >1 => >=2.0.0\n // >1.2 => >=1.3.0\n gtlt = '>='\n if (xm) {\n M = +M + 1\n m = 0\n p = 0\n } else {\n m = +m + 1\n p = 0\n }\n } else if (gtlt === '<=') {\n // <=0.7.x is actually <0.8.0, since any 0.7.x should\n // pass. Similarly, <=7.x is actually <8.0.0, etc.\n gtlt = '<'\n if (xm) {\n M = +M + 1\n } else {\n m = +m + 1\n }\n }\n\n if (gtlt === '<')\n pr = '-0'\n\n ret = `${gtlt + M}.${m}.${p}${pr}`\n } else if (xm) {\n ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`\n } else if (xp) {\n ret = `>=${M}.${m}.0${pr\n } <${M}.${+m + 1}.0-0`\n }\n\n debug('xRange return', ret)\n\n return ret\n })\n}\n\n// Because * is AND-ed with everything else in the comparator,\n// and '' means \"any version\", just remove the *s entirely.\nconst replaceStars = (comp, options) => {\n debug('replaceStars', comp, options)\n // Looseness is ignored here. star is always as loose as it gets!\n return comp.trim().replace(re[t.STAR], '')\n}\n\nconst replaceGTE0 = (comp, options) => {\n debug('replaceGTE0', comp, options)\n return comp.trim()\n .replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], '')\n}\n\n// This function is passed to string.replace(re[t.HYPHENRANGE])\n// M, m, patch, prerelease, build\n// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5\n// 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do\n// 1.2 - 3.4 => >=1.2.0 <3.5.0-0\nconst hyphenReplace = incPr => ($0,\n from, fM, fm, fp, fpr, fb,\n to, tM, tm, tp, tpr, tb) => {\n if (isX(fM)) {\n from = ''\n } else if (isX(fm)) {\n from = `>=${fM}.0.0${incPr ? '-0' : ''}`\n } else if (isX(fp)) {\n from = `>=${fM}.${fm}.0${incPr ? '-0' : ''}`\n } else if (fpr) {\n from = `>=${from}`\n } else {\n from = `>=${from}${incPr ? '-0' : ''}`\n }\n\n if (isX(tM)) {\n to = ''\n } else if (isX(tm)) {\n to = `<${+tM + 1}.0.0-0`\n } else if (isX(tp)) {\n to = `<${tM}.${+tm + 1}.0-0`\n } else if (tpr) {\n to = `<=${tM}.${tm}.${tp}-${tpr}`\n } else if (incPr) {\n to = `<${tM}.${tm}.${+tp + 1}-0`\n } else {\n to = `<=${to}`\n }\n\n return (`${from} ${to}`).trim()\n}\n\nconst testSet = (set, version, options) => {\n for (let i = 0; i < set.length; i++) {\n if (!set[i].test(version)) {\n return false\n }\n }\n\n if (version.prerelease.length && !options.includePrerelease) {\n // Find the set of versions that are allowed to have prereleases\n // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0\n // That should allow `1.2.3-pr.2` to pass.\n // However, `1.2.4-alpha.notready` should NOT be allowed,\n // even though it's within the range set by the comparators.\n for (let i = 0; i < set.length; i++) {\n debug(set[i].semver)\n if (set[i].semver === Comparator.ANY) {\n continue\n }\n\n if (set[i].semver.prerelease.length > 0) {\n const allowed = set[i].semver\n if (allowed.major === version.major &&\n allowed.minor === version.minor &&\n allowed.patch === version.patch) {\n return true\n }\n }\n }\n\n // Version has a -pre, but it's not one of the ones we like.\n return false\n }\n\n return true\n}\n","'use strict'\n\n// A linked list to keep track of recently-used-ness\nconst Yallist = require('yallist')\n\nconst MAX = Symbol('max')\nconst LENGTH = Symbol('length')\nconst LENGTH_CALCULATOR = Symbol('lengthCalculator')\nconst ALLOW_STALE = Symbol('allowStale')\nconst MAX_AGE = Symbol('maxAge')\nconst DISPOSE = Symbol('dispose')\nconst NO_DISPOSE_ON_SET = Symbol('noDisposeOnSet')\nconst LRU_LIST = Symbol('lruList')\nconst CACHE = Symbol('cache')\nconst UPDATE_AGE_ON_GET = Symbol('updateAgeOnGet')\n\nconst naiveLength = () => 1\n\n// lruList is a yallist where the head is the youngest\n// item, and the tail is the oldest. the list contains the Hit\n// objects as the entries.\n// Each Hit object has a reference to its Yallist.Node. This\n// never changes.\n//\n// cache is a Map (or PseudoMap) that matches the keys to\n// the Yallist.Node object.\nclass LRUCache {\n constructor (options) {\n if (typeof options === 'number')\n options = { max: options }\n\n if (!options)\n options = {}\n\n if (options.max && (typeof options.max !== 'number' || options.max < 0))\n throw new TypeError('max must be a non-negative number')\n // Kind of weird to have a default max of Infinity, but oh well.\n const max = this[MAX] = options.max || Infinity\n\n const lc = options.length || naiveLength\n this[LENGTH_CALCULATOR] = (typeof lc !== 'function') ? naiveLength : lc\n this[ALLOW_STALE] = options.stale || false\n if (options.maxAge && typeof options.maxAge !== 'number')\n throw new TypeError('maxAge must be a number')\n this[MAX_AGE] = options.maxAge || 0\n this[DISPOSE] = options.dispose\n this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false\n this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false\n this.reset()\n }\n\n // resize the cache when the max changes.\n set max (mL) {\n if (typeof mL !== 'number' || mL < 0)\n throw new TypeError('max must be a non-negative number')\n\n this[MAX] = mL || Infinity\n trim(this)\n }\n get max () {\n return this[MAX]\n }\n\n set allowStale (allowStale) {\n this[ALLOW_STALE] = !!allowStale\n }\n get allowStale () {\n return this[ALLOW_STALE]\n }\n\n set maxAge (mA) {\n if (typeof mA !== 'number')\n throw new TypeError('maxAge must be a non-negative number')\n\n this[MAX_AGE] = mA\n trim(this)\n }\n get maxAge () {\n return this[MAX_AGE]\n }\n\n // resize the cache when the lengthCalculator changes.\n set lengthCalculator (lC) {\n if (typeof lC !== 'function')\n lC = naiveLength\n\n if (lC !== this[LENGTH_CALCULATOR]) {\n this[LENGTH_CALCULATOR] = lC\n this[LENGTH] = 0\n this[LRU_LIST].forEach(hit => {\n hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key)\n this[LENGTH] += hit.length\n })\n }\n trim(this)\n }\n get lengthCalculator () { return this[LENGTH_CALCULATOR] }\n\n get length () { return this[LENGTH] }\n get itemCount () { return this[LRU_LIST].length }\n\n rforEach (fn, thisp) {\n thisp = thisp || this\n for (let walker = this[LRU_LIST].tail; walker !== null;) {\n const prev = walker.prev\n forEachStep(this, fn, walker, thisp)\n walker = prev\n }\n }\n\n forEach (fn, thisp) {\n thisp = thisp || this\n for (let walker = this[LRU_LIST].head; walker !== null;) {\n const next = walker.next\n forEachStep(this, fn, walker, thisp)\n walker = next\n }\n }\n\n keys () {\n return this[LRU_LIST].toArray().map(k => k.key)\n }\n\n values () {\n return this[LRU_LIST].toArray().map(k => k.value)\n }\n\n reset () {\n if (this[DISPOSE] &&\n this[LRU_LIST] &&\n this[LRU_LIST].length) {\n this[LRU_LIST].forEach(hit => this[DISPOSE](hit.key, hit.value))\n }\n\n this[CACHE] = new Map() // hash of items by key\n this[LRU_LIST] = new Yallist() // list of items in order of use recency\n this[LENGTH] = 0 // length of items in the list\n }\n\n dump () {\n return this[LRU_LIST].map(hit =>\n isStale(this, hit) ? false : {\n k: hit.key,\n v: hit.value,\n e: hit.now + (hit.maxAge || 0)\n }).toArray().filter(h => h)\n }\n\n dumpLru () {\n return this[LRU_LIST]\n }\n\n set (key, value, maxAge) {\n maxAge = maxAge || this[MAX_AGE]\n\n if (maxAge && typeof maxAge !== 'number')\n throw new TypeError('maxAge must be a number')\n\n const now = maxAge ? Date.now() : 0\n const len = this[LENGTH_CALCULATOR](value, key)\n\n if (this[CACHE].has(key)) {\n if (len > this[MAX]) {\n del(this, this[CACHE].get(key))\n return false\n }\n\n const node = this[CACHE].get(key)\n const item = node.value\n\n // dispose of the old one before overwriting\n // split out into 2 ifs for better coverage tracking\n if (this[DISPOSE]) {\n if (!this[NO_DISPOSE_ON_SET])\n this[DISPOSE](key, item.value)\n }\n\n item.now = now\n item.maxAge = maxAge\n item.value = value\n this[LENGTH] += len - item.length\n item.length = len\n this.get(key)\n trim(this)\n return true\n }\n\n const hit = new Entry(key, value, len, now, maxAge)\n\n // oversized objects fall out of cache automatically.\n if (hit.length > this[MAX]) {\n if (this[DISPOSE])\n this[DISPOSE](key, value)\n\n return false\n }\n\n this[LENGTH] += hit.length\n this[LRU_LIST].unshift(hit)\n this[CACHE].set(key, this[LRU_LIST].head)\n trim(this)\n return true\n }\n\n has (key) {\n if (!this[CACHE].has(key)) return false\n const hit = this[CACHE].get(key).value\n return !isStale(this, hit)\n }\n\n get (key) {\n return get(this, key, true)\n }\n\n peek (key) {\n return get(this, key, false)\n }\n\n pop () {\n const node = this[LRU_LIST].tail\n if (!node)\n return null\n\n del(this, node)\n return node.value\n }\n\n del (key) {\n del(this, this[CACHE].get(key))\n }\n\n load (arr) {\n // reset the cache\n this.reset()\n\n const now = Date.now()\n // A previous serialized cache has the most recent items first\n for (let l = arr.length - 1; l >= 0; l--) {\n const hit = arr[l]\n const expiresAt = hit.e || 0\n if (expiresAt === 0)\n // the item was created without expiration in a non aged cache\n this.set(hit.k, hit.v)\n else {\n const maxAge = expiresAt - now\n // dont add already expired items\n if (maxAge > 0) {\n this.set(hit.k, hit.v, maxAge)\n }\n }\n }\n }\n\n prune () {\n this[CACHE].forEach((value, key) => get(this, key, false))\n }\n}\n\nconst get = (self, key, doUse) => {\n const node = self[CACHE].get(key)\n if (node) {\n const hit = node.value\n if (isStale(self, hit)) {\n del(self, node)\n if (!self[ALLOW_STALE])\n return undefined\n } else {\n if (doUse) {\n if (self[UPDATE_AGE_ON_GET])\n node.value.now = Date.now()\n self[LRU_LIST].unshiftNode(node)\n }\n }\n return hit.value\n }\n}\n\nconst isStale = (self, hit) => {\n if (!hit || (!hit.maxAge && !self[MAX_AGE]))\n return false\n\n const diff = Date.now() - hit.now\n return hit.maxAge ? diff > hit.maxAge\n : self[MAX_AGE] && (diff > self[MAX_AGE])\n}\n\nconst trim = self => {\n if (self[LENGTH] > self[MAX]) {\n for (let walker = self[LRU_LIST].tail;\n self[LENGTH] > self[MAX] && walker !== null;) {\n // We know that we're about to delete this one, and also\n // what the next least recently used key will be, so just\n // go ahead and set it now.\n const prev = walker.prev\n del(self, walker)\n walker = prev\n }\n }\n}\n\nconst del = (self, node) => {\n if (node) {\n const hit = node.value\n if (self[DISPOSE])\n self[DISPOSE](hit.key, hit.value)\n\n self[LENGTH] -= hit.length\n self[CACHE].delete(hit.key)\n self[LRU_LIST].removeNode(node)\n }\n}\n\nclass Entry {\n constructor (key, value, length, now, maxAge) {\n this.key = key\n this.value = value\n this.length = length\n this.now = now\n this.maxAge = maxAge || 0\n }\n}\n\nconst forEachStep = (self, fn, node, thisp) => {\n let hit = node.value\n if (isStale(self, hit)) {\n del(self, node)\n if (!self[ALLOW_STALE])\n hit = undefined\n }\n if (hit)\n fn.call(thisp, hit.value, hit.key, self)\n}\n\nmodule.exports = LRUCache\n","'use strict'\nmodule.exports = Yallist\n\nYallist.Node = Node\nYallist.create = Yallist\n\nfunction Yallist (list) {\n var self = this\n if (!(self instanceof Yallist)) {\n self = new Yallist()\n }\n\n self.tail = null\n self.head = null\n self.length = 0\n\n if (list && typeof list.forEach === 'function') {\n list.forEach(function (item) {\n self.push(item)\n })\n } else if (arguments.length > 0) {\n for (var i = 0, l = arguments.length; i < l; i++) {\n self.push(arguments[i])\n }\n }\n\n return self\n}\n\nYallist.prototype.removeNode = function (node) {\n if (node.list !== this) {\n throw new Error('removing node which does not belong to this list')\n }\n\n var next = node.next\n var prev = node.prev\n\n if (next) {\n next.prev = prev\n }\n\n if (prev) {\n prev.next = next\n }\n\n if (node === this.head) {\n this.head = next\n }\n if (node === this.tail) {\n this.tail = prev\n }\n\n node.list.length--\n node.next = null\n node.prev = null\n node.list = null\n\n return next\n}\n\nYallist.prototype.unshiftNode = function (node) {\n if (node === this.head) {\n return\n }\n\n if (node.list) {\n node.list.removeNode(node)\n }\n\n var head = this.head\n node.list = this\n node.next = head\n if (head) {\n head.prev = node\n }\n\n this.head = node\n if (!this.tail) {\n this.tail = node\n }\n this.length++\n}\n\nYallist.prototype.pushNode = function (node) {\n if (node === this.tail) {\n return\n }\n\n if (node.list) {\n node.list.removeNode(node)\n }\n\n var tail = this.tail\n node.list = this\n node.prev = tail\n if (tail) {\n tail.next = node\n }\n\n this.tail = node\n if (!this.head) {\n this.head = node\n }\n this.length++\n}\n\nYallist.prototype.push = function () {\n for (var i = 0, l = arguments.length; i < l; i++) {\n push(this, arguments[i])\n }\n return this.length\n}\n\nYallist.prototype.unshift = function () {\n for (var i = 0, l = arguments.length; i < l; i++) {\n unshift(this, arguments[i])\n }\n return this.length\n}\n\nYallist.prototype.pop = function () {\n if (!this.tail) {\n return undefined\n }\n\n var res = this.tail.value\n this.tail = this.tail.prev\n if (this.tail) {\n this.tail.next = null\n } else {\n this.head = null\n }\n this.length--\n return res\n}\n\nYallist.prototype.shift = function () {\n if (!this.head) {\n return undefined\n }\n\n var res = this.head.value\n this.head = this.head.next\n if (this.head) {\n this.head.prev = null\n } else {\n this.tail = null\n }\n this.length--\n return res\n}\n\nYallist.prototype.forEach = function (fn, thisp) {\n thisp = thisp || this\n for (var walker = this.head, i = 0; walker !== null; i++) {\n fn.call(thisp, walker.value, i, this)\n walker = walker.next\n }\n}\n\nYallist.prototype.forEachReverse = function (fn, thisp) {\n thisp = thisp || this\n for (var walker = this.tail, i = this.length - 1; walker !== null; i--) {\n fn.call(thisp, walker.value, i, this)\n walker = walker.prev\n }\n}\n\nYallist.prototype.get = function (n) {\n for (var i = 0, walker = this.head; walker !== null && i < n; i++) {\n // abort out of the list early if we hit a cycle\n walker = walker.next\n }\n if (i === n && walker !== null) {\n return walker.value\n }\n}\n\nYallist.prototype.getReverse = function (n) {\n for (var i = 0, walker = this.tail; walker !== null && i < n; i++) {\n // abort out of the list early if we hit a cycle\n walker = walker.prev\n }\n if (i === n && walker !== null) {\n return walker.value\n }\n}\n\nYallist.prototype.map = function (fn, thisp) {\n thisp = thisp || this\n var res = new Yallist()\n for (var walker = this.head; walker !== null;) {\n res.push(fn.call(thisp, walker.value, this))\n walker = walker.next\n }\n return res\n}\n\nYallist.prototype.mapReverse = function (fn, thisp) {\n thisp = thisp || this\n var res = new Yallist()\n for (var walker = this.tail; walker !== null;) {\n res.push(fn.call(thisp, walker.value, this))\n walker = walker.prev\n }\n return res\n}\n\nYallist.prototype.reduce = function (fn, initial) {\n var acc\n var walker = this.head\n if (arguments.length > 1) {\n acc = initial\n } else if (this.head) {\n walker = this.head.next\n acc = this.head.value\n } else {\n throw new TypeError('Reduce of empty list with no initial value')\n }\n\n for (var i = 0; walker !== null; i++) {\n acc = fn(acc, walker.value, i)\n walker = walker.next\n }\n\n return acc\n}\n\nYallist.prototype.reduceReverse = function (fn, initial) {\n var acc\n var walker = this.tail\n if (arguments.length > 1) {\n acc = initial\n } else if (this.tail) {\n walker = this.tail.prev\n acc = this.tail.value\n } else {\n throw new TypeError('Reduce of empty list with no initial value')\n }\n\n for (var i = this.length - 1; walker !== null; i--) {\n acc = fn(acc, walker.value, i)\n walker = walker.prev\n }\n\n return acc\n}\n\nYallist.prototype.toArray = function () {\n var arr = new Array(this.length)\n for (var i = 0, walker = this.head; walker !== null; i++) {\n arr[i] = walker.value\n walker = walker.next\n }\n return arr\n}\n\nYallist.prototype.toArrayReverse = function () {\n var arr = new Array(this.length)\n for (var i = 0, walker = this.tail; walker !== null; i++) {\n arr[i] = walker.value\n walker = walker.prev\n }\n return arr\n}\n\nYallist.prototype.slice = function (from, to) {\n to = to || this.length\n if (to < 0) {\n to += this.length\n }\n from = from || 0\n if (from < 0) {\n from += this.length\n }\n var ret = new Yallist()\n if (to < from || to < 0) {\n return ret\n }\n if (from < 0) {\n from = 0\n }\n if (to > this.length) {\n to = this.length\n }\n for (var i = 0, walker = this.head; walker !== null && i < from; i++) {\n walker = walker.next\n }\n for (; walker !== null && i < to; i++, walker = walker.next) {\n ret.push(walker.value)\n }\n return ret\n}\n\nYallist.prototype.sliceReverse = function (from, to) {\n to = to || this.length\n if (to < 0) {\n to += this.length\n }\n from = from || 0\n if (from < 0) {\n from += this.length\n }\n var ret = new Yallist()\n if (to < from || to < 0) {\n return ret\n }\n if (from < 0) {\n from = 0\n }\n if (to > this.length) {\n to = this.length\n }\n for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) {\n walker = walker.prev\n }\n for (; walker !== null && i > from; i--, walker = walker.prev) {\n ret.push(walker.value)\n }\n return ret\n}\n\nYallist.prototype.splice = function (start, deleteCount, ...nodes) {\n if (start > this.length) {\n start = this.length - 1\n }\n if (start < 0) {\n start = this.length + start;\n }\n\n for (var i = 0, walker = this.head; walker !== null && i < start; i++) {\n walker = walker.next\n }\n\n var ret = []\n for (var i = 0; walker && i < deleteCount; i++) {\n ret.push(walker.value)\n walker = this.removeNode(walker)\n }\n if (walker === null) {\n walker = this.tail\n }\n\n if (walker !== this.head && walker !== this.tail) {\n walker = walker.prev\n }\n\n for (var i = 0; i < nodes.length; i++) {\n walker = insert(this, walker, nodes[i])\n }\n return ret;\n}\n\nYallist.prototype.reverse = function () {\n var head = this.head\n var tail = this.tail\n for (var walker = head; walker !== null; walker = walker.prev) {\n var p = walker.prev\n walker.prev = walker.next\n walker.next = p\n }\n this.head = tail\n this.tail = head\n return this\n}\n\nfunction insert (self, node, value) {\n var inserted = node === self.head ?\n new Node(value, null, node, self) :\n new Node(value, node, node.next, self)\n\n if (inserted.next === null) {\n self.tail = inserted\n }\n if (inserted.prev === null) {\n self.head = inserted\n }\n\n self.length++\n\n return inserted\n}\n\nfunction push (self, item) {\n self.tail = new Node(item, self.tail, null, self)\n if (!self.head) {\n self.head = self.tail\n }\n self.length++\n}\n\nfunction unshift (self, item) {\n self.head = new Node(item, null, self.head, self)\n if (!self.tail) {\n self.tail = self.head\n }\n self.length++\n}\n\nfunction Node (value, prev, next, list) {\n if (!(this instanceof Node)) {\n return new Node(value, prev, next, list)\n }\n\n this.list = list\n this.value = value\n\n if (prev) {\n prev.next = this\n this.prev = prev\n } else {\n this.prev = null\n }\n\n if (next) {\n next.prev = this\n this.next = next\n } else {\n this.next = null\n }\n}\n\ntry {\n // add if support for Symbol.iterator is present\n require('./iterator.js')(Yallist)\n} catch (er) {}\n","'use strict'\nmodule.exports = function (Yallist) {\n Yallist.prototype[Symbol.iterator] = function* () {\n for (let walker = this.head; walker; walker = walker.next) {\n yield walker.value\n }\n }\n}\n","const Range = require('../classes/range')\nconst satisfies = (version, range, options) => {\n try {\n range = new Range(range, options)\n } catch (er) {\n return false\n }\n return range.test(version)\n}\nmodule.exports = satisfies\n","const Range = require('../classes/range')\n\n// Mostly just for testing and legacy API reasons\nconst toComparators = (range, options) =>\n new Range(range, options).set\n .map(comp => comp.map(c => c.value).join(' ').trim().split(' '))\n\nmodule.exports = toComparators\n","const SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\n\nconst maxSatisfying = (versions, range, options) => {\n let max = null\n let maxSV = null\n let rangeObj = null\n try {\n rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach((v) => {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!max || maxSV.compare(v) === -1) {\n // compare(max, v, true)\n max = v\n maxSV = new SemVer(max, options)\n }\n }\n })\n return max\n}\nmodule.exports = maxSatisfying\n","const SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\nconst minSatisfying = (versions, range, options) => {\n let min = null\n let minSV = null\n let rangeObj = null\n try {\n rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach((v) => {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!min || minSV.compare(v) === 1) {\n // compare(min, v, true)\n min = v\n minSV = new SemVer(min, options)\n }\n }\n })\n return min\n}\nmodule.exports = minSatisfying\n","const SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\nconst gt = require('../functions/gt')\n\nconst minVersion = (range, loose) => {\n range = new Range(range, loose)\n\n let minver = new SemVer('0.0.0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = new SemVer('0.0.0-0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = null\n for (let i = 0; i < range.set.length; ++i) {\n const comparators = range.set[i]\n\n let setMin = null\n comparators.forEach((comparator) => {\n // Clone to avoid manipulating the comparator's semver object.\n const compver = new SemVer(comparator.semver.version)\n switch (comparator.operator) {\n case '>':\n if (compver.prerelease.length === 0) {\n compver.patch++\n } else {\n compver.prerelease.push(0)\n }\n compver.raw = compver.format()\n /* fallthrough */\n case '':\n case '>=':\n if (!setMin || gt(compver, setMin)) {\n setMin = compver\n }\n break\n case '<':\n case '<=':\n /* Ignore maximum versions */\n break\n /* istanbul ignore next */\n default:\n throw new Error(`Unexpected operation: ${comparator.operator}`)\n }\n })\n if (setMin && (!minver || gt(minver, setMin)))\n minver = setMin\n }\n\n if (minver && range.test(minver)) {\n return minver\n }\n\n return null\n}\nmodule.exports = minVersion\n","const Range = require('../classes/range')\nconst validRange = (range, options) => {\n try {\n // Return '*' instead of '' so that truthiness works.\n // This will throw if it's invalid anyway\n return new Range(range, options).range || '*'\n } catch (er) {\n return null\n }\n}\nmodule.exports = validRange\n","const SemVer = require('../classes/semver')\nconst Comparator = require('../classes/comparator')\nconst {ANY} = Comparator\nconst Range = require('../classes/range')\nconst satisfies = require('../functions/satisfies')\nconst gt = require('../functions/gt')\nconst lt = require('../functions/lt')\nconst lte = require('../functions/lte')\nconst gte = require('../functions/gte')\n\nconst outside = (version, range, hilo, options) => {\n version = new SemVer(version, options)\n range = new Range(range, options)\n\n let gtfn, ltefn, ltfn, comp, ecomp\n switch (hilo) {\n case '>':\n gtfn = gt\n ltefn = lte\n ltfn = lt\n comp = '>'\n ecomp = '>='\n break\n case '<':\n gtfn = lt\n ltefn = gte\n ltfn = gt\n comp = '<'\n ecomp = '<='\n break\n default:\n throw new TypeError('Must provide a hilo val of \"<\" or \">\"')\n }\n\n // If it satisfies the range it is not outside\n if (satisfies(version, range, options)) {\n return false\n }\n\n // From now on, variable terms are as if we're in \"gtr\" mode.\n // but note that everything is flipped for the \"ltr\" function.\n\n for (let i = 0; i < range.set.length; ++i) {\n const comparators = range.set[i]\n\n let high = null\n let low = null\n\n comparators.forEach((comparator) => {\n if (comparator.semver === ANY) {\n comparator = new Comparator('>=0.0.0')\n }\n high = high || comparator\n low = low || comparator\n if (gtfn(comparator.semver, high.semver, options)) {\n high = comparator\n } else if (ltfn(comparator.semver, low.semver, options)) {\n low = comparator\n }\n })\n\n // If the edge version comparator has a operator then our version\n // isn't outside it\n if (high.operator === comp || high.operator === ecomp) {\n return false\n }\n\n // If the lowest version comparator has an operator and our version\n // is less than it then it isn't higher than the range\n if ((!low.operator || low.operator === comp) &&\n ltefn(version, low.semver)) {\n return false\n } else if (low.operator === ecomp && ltfn(version, low.semver)) {\n return false\n }\n }\n return true\n}\n\nmodule.exports = outside\n","// Determine if version is greater than all the versions possible in the range.\nconst outside = require('./outside')\nconst gtr = (version, range, options) => outside(version, range, '>', options)\nmodule.exports = gtr\n","const outside = require('./outside')\n// Determine if version is less than all the versions possible in the range\nconst ltr = (version, range, options) => outside(version, range, '<', options)\nmodule.exports = ltr\n","const Range = require('../classes/range')\nconst intersects = (r1, r2, options) => {\n r1 = new Range(r1, options)\n r2 = new Range(r2, options)\n return r1.intersects(r2)\n}\nmodule.exports = intersects\n","// given a set of versions and a range, create a \"simplified\" range\n// that includes the same versions that the original range does\n// If the original range is shorter than the simplified one, return that.\nconst satisfies = require('../functions/satisfies.js')\nconst compare = require('../functions/compare.js')\nmodule.exports = (versions, range, options) => {\n const set = []\n let min = null\n let prev = null\n const v = versions.sort((a, b) => compare(a, b, options))\n for (const version of v) {\n const included = satisfies(version, range, options)\n if (included) {\n prev = version\n if (!min)\n min = version\n } else {\n if (prev) {\n set.push([min, prev])\n }\n prev = null\n min = null\n }\n }\n if (min)\n set.push([min, null])\n\n const ranges = []\n for (const [min, max] of set) {\n if (min === max)\n ranges.push(min)\n else if (!max && min === v[0])\n ranges.push('*')\n else if (!max)\n ranges.push(`>=${min}`)\n else if (min === v[0])\n ranges.push(`<=${max}`)\n else\n ranges.push(`${min} - ${max}`)\n }\n const simplified = ranges.join(' || ')\n const original = typeof range.raw === 'string' ? range.raw : String(range)\n return simplified.length < original.length ? simplified : range\n}\n","const Range = require('../classes/range.js')\nconst Comparator = require('../classes/comparator.js')\nconst { ANY } = Comparator\nconst satisfies = require('../functions/satisfies.js')\nconst compare = require('../functions/compare.js')\n\n// Complex range `r1 || r2 || ...` is a subset of `R1 || R2 || ...` iff:\n// - Every simple range `r1, r2, ...` is a null set, OR\n// - Every simple range `r1, r2, ...` which is not a null set is a subset of\n// some `R1, R2, ...`\n//\n// Simple range `c1 c2 ...` is a subset of simple range `C1 C2 ...` iff:\n// - If c is only the ANY comparator\n// - If C is only the ANY comparator, return true\n// - Else if in prerelease mode, return false\n// - else replace c with `[>=0.0.0]`\n// - If C is only the ANY comparator\n// - if in prerelease mode, return true\n// - else replace C with `[>=0.0.0]`\n// - Let EQ be the set of = comparators in c\n// - If EQ is more than one, return true (null set)\n// - Let GT be the highest > or >= comparator in c\n// - Let LT be the lowest < or <= comparator in c\n// - If GT and LT, and GT.semver > LT.semver, return true (null set)\n// - If any C is a = range, and GT or LT are set, return false\n// - If EQ\n// - If GT, and EQ does not satisfy GT, return true (null set)\n// - If LT, and EQ does not satisfy LT, return true (null set)\n// - If EQ satisfies every C, return true\n// - Else return false\n// - If GT\n// - If GT.semver is lower than any > or >= comp in C, return false\n// - If GT is >=, and GT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the GT.semver tuple, return false\n// - If LT\n// - If LT.semver is greater than any < or <= comp in C, return false\n// - If LT is <=, and LT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the LT.semver tuple, return false\n// - Else return true\n\nconst subset = (sub, dom, options = {}) => {\n if (sub === dom)\n return true\n\n sub = new Range(sub, options)\n dom = new Range(dom, options)\n let sawNonNull = false\n\n OUTER: for (const simpleSub of sub.set) {\n for (const simpleDom of dom.set) {\n const isSub = simpleSubset(simpleSub, simpleDom, options)\n sawNonNull = sawNonNull || isSub !== null\n if (isSub)\n continue OUTER\n }\n // the null set is a subset of everything, but null simple ranges in\n // a complex range should be ignored. so if we saw a non-null range,\n // then we know this isn't a subset, but if EVERY simple range was null,\n // then it is a subset.\n if (sawNonNull)\n return false\n }\n return true\n}\n\nconst simpleSubset = (sub, dom, options) => {\n if (sub === dom)\n return true\n\n if (sub.length === 1 && sub[0].semver === ANY) {\n if (dom.length === 1 && dom[0].semver === ANY)\n return true\n else if (options.includePrerelease)\n sub = [ new Comparator('>=0.0.0-0') ]\n else\n sub = [ new Comparator('>=0.0.0') ]\n }\n\n if (dom.length === 1 && dom[0].semver === ANY) {\n if (options.includePrerelease)\n return true\n else\n dom = [ new Comparator('>=0.0.0') ]\n }\n\n const eqSet = new Set()\n let gt, lt\n for (const c of sub) {\n if (c.operator === '>' || c.operator === '>=')\n gt = higherGT(gt, c, options)\n else if (c.operator === '<' || c.operator === '<=')\n lt = lowerLT(lt, c, options)\n else\n eqSet.add(c.semver)\n }\n\n if (eqSet.size > 1)\n return null\n\n let gtltComp\n if (gt && lt) {\n gtltComp = compare(gt.semver, lt.semver, options)\n if (gtltComp > 0)\n return null\n else if (gtltComp === 0 && (gt.operator !== '>=' || lt.operator !== '<='))\n return null\n }\n\n // will iterate one or zero times\n for (const eq of eqSet) {\n if (gt && !satisfies(eq, String(gt), options))\n return null\n\n if (lt && !satisfies(eq, String(lt), options))\n return null\n\n for (const c of dom) {\n if (!satisfies(eq, String(c), options))\n return false\n }\n\n return true\n }\n\n let higher, lower\n let hasDomLT, hasDomGT\n // if the subset has a prerelease, we need a comparator in the superset\n // with the same tuple and a prerelease, or it's not a subset\n let needDomLTPre = lt &&\n !options.includePrerelease &&\n lt.semver.prerelease.length ? lt.semver : false\n let needDomGTPre = gt &&\n !options.includePrerelease &&\n gt.semver.prerelease.length ? gt.semver : false\n // exception: <1.2.3-0 is the same as <1.2.3\n if (needDomLTPre && needDomLTPre.prerelease.length === 1 &&\n lt.operator === '<' && needDomLTPre.prerelease[0] === 0) {\n needDomLTPre = false\n }\n\n for (const c of dom) {\n hasDomGT = hasDomGT || c.operator === '>' || c.operator === '>='\n hasDomLT = hasDomLT || c.operator === '<' || c.operator === '<='\n if (gt) {\n if (needDomGTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length &&\n c.semver.major === needDomGTPre.major &&\n c.semver.minor === needDomGTPre.minor &&\n c.semver.patch === needDomGTPre.patch) {\n needDomGTPre = false\n }\n }\n if (c.operator === '>' || c.operator === '>=') {\n higher = higherGT(gt, c, options)\n if (higher === c && higher !== gt)\n return false\n } else if (gt.operator === '>=' && !satisfies(gt.semver, String(c), options))\n return false\n }\n if (lt) {\n if (needDomLTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length &&\n c.semver.major === needDomLTPre.major &&\n c.semver.minor === needDomLTPre.minor &&\n c.semver.patch === needDomLTPre.patch) {\n needDomLTPre = false\n }\n }\n if (c.operator === '<' || c.operator === '<=') {\n lower = lowerLT(lt, c, options)\n if (lower === c && lower !== lt)\n return false\n } else if (lt.operator === '<=' && !satisfies(lt.semver, String(c), options))\n return false\n }\n if (!c.operator && (lt || gt) && gtltComp !== 0)\n return false\n }\n\n // if there was a < or >, and nothing in the dom, then must be false\n // UNLESS it was limited by another range in the other direction.\n // Eg, >1.0.0 <1.0.1 is still a subset of <2.0.0\n if (gt && hasDomLT && !lt && gtltComp !== 0)\n return false\n\n if (lt && hasDomGT && !gt && gtltComp !== 0)\n return false\n\n // we needed a prerelease range in a specific tuple, but didn't get one\n // then this isn't a subset. eg >=1.2.3-pre is not a subset of >=1.0.0,\n // because it includes prereleases in the 1.2.3 tuple\n if (needDomGTPre || needDomLTPre)\n return false\n\n return true\n}\n\n// >=1.2.3 is lower than >1.2.3\nconst higherGT = (a, b, options) => {\n if (!a)\n return b\n const comp = compare(a.semver, b.semver, options)\n return comp > 0 ? a\n : comp < 0 ? b\n : b.operator === '>' && a.operator === '>=' ? b\n : a\n}\n\n// <=1.2.3 is higher than <1.2.3\nconst lowerLT = (a, b, options) => {\n if (!a)\n return b\n const comp = compare(a.semver, b.semver, options)\n return comp < 0 ? a\n : comp > 0 ? b\n : b.operator === '<' && a.operator === '<=' ? b\n : a\n}\n\nmodule.exports = subset\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst http = require(\"http\");\nconst https = require(\"https\");\nconst pm = require(\"./proxy\");\nlet tunnel;\nvar HttpCodes;\n(function (HttpCodes) {\n HttpCodes[HttpCodes[\"OK\"] = 200] = \"OK\";\n HttpCodes[HttpCodes[\"MultipleChoices\"] = 300] = \"MultipleChoices\";\n HttpCodes[HttpCodes[\"MovedPermanently\"] = 301] = \"MovedPermanently\";\n HttpCodes[HttpCodes[\"ResourceMoved\"] = 302] = \"ResourceMoved\";\n HttpCodes[HttpCodes[\"SeeOther\"] = 303] = \"SeeOther\";\n HttpCodes[HttpCodes[\"NotModified\"] = 304] = \"NotModified\";\n HttpCodes[HttpCodes[\"UseProxy\"] = 305] = \"UseProxy\";\n HttpCodes[HttpCodes[\"SwitchProxy\"] = 306] = \"SwitchProxy\";\n HttpCodes[HttpCodes[\"TemporaryRedirect\"] = 307] = \"TemporaryRedirect\";\n HttpCodes[HttpCodes[\"PermanentRedirect\"] = 308] = \"PermanentRedirect\";\n HttpCodes[HttpCodes[\"BadRequest\"] = 400] = \"BadRequest\";\n HttpCodes[HttpCodes[\"Unauthorized\"] = 401] = \"Unauthorized\";\n HttpCodes[HttpCodes[\"PaymentRequired\"] = 402] = \"PaymentRequired\";\n HttpCodes[HttpCodes[\"Forbidden\"] = 403] = \"Forbidden\";\n HttpCodes[HttpCodes[\"NotFound\"] = 404] = \"NotFound\";\n HttpCodes[HttpCodes[\"MethodNotAllowed\"] = 405] = \"MethodNotAllowed\";\n HttpCodes[HttpCodes[\"NotAcceptable\"] = 406] = \"NotAcceptable\";\n HttpCodes[HttpCodes[\"ProxyAuthenticationRequired\"] = 407] = \"ProxyAuthenticationRequired\";\n HttpCodes[HttpCodes[\"RequestTimeout\"] = 408] = \"RequestTimeout\";\n HttpCodes[HttpCodes[\"Conflict\"] = 409] = \"Conflict\";\n HttpCodes[HttpCodes[\"Gone\"] = 410] = \"Gone\";\n HttpCodes[HttpCodes[\"TooManyRequests\"] = 429] = \"TooManyRequests\";\n HttpCodes[HttpCodes[\"InternalServerError\"] = 500] = \"InternalServerError\";\n HttpCodes[HttpCodes[\"NotImplemented\"] = 501] = \"NotImplemented\";\n HttpCodes[HttpCodes[\"BadGateway\"] = 502] = \"BadGateway\";\n HttpCodes[HttpCodes[\"ServiceUnavailable\"] = 503] = \"ServiceUnavailable\";\n HttpCodes[HttpCodes[\"GatewayTimeout\"] = 504] = \"GatewayTimeout\";\n})(HttpCodes = exports.HttpCodes || (exports.HttpCodes = {}));\nvar Headers;\n(function (Headers) {\n Headers[\"Accept\"] = \"accept\";\n Headers[\"ContentType\"] = \"content-type\";\n})(Headers = exports.Headers || (exports.Headers = {}));\nvar MediaTypes;\n(function (MediaTypes) {\n MediaTypes[\"ApplicationJson\"] = \"application/json\";\n})(MediaTypes = exports.MediaTypes || (exports.MediaTypes = {}));\n/**\n * Returns the proxy URL, depending upon the supplied url and proxy environment variables.\n * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com\n */\nfunction getProxyUrl(serverUrl) {\n let proxyUrl = pm.getProxyUrl(new URL(serverUrl));\n return proxyUrl ? proxyUrl.href : '';\n}\nexports.getProxyUrl = getProxyUrl;\nconst HttpRedirectCodes = [\n HttpCodes.MovedPermanently,\n HttpCodes.ResourceMoved,\n HttpCodes.SeeOther,\n HttpCodes.TemporaryRedirect,\n HttpCodes.PermanentRedirect\n];\nconst HttpResponseRetryCodes = [\n HttpCodes.BadGateway,\n HttpCodes.ServiceUnavailable,\n HttpCodes.GatewayTimeout\n];\nconst RetryableHttpVerbs = ['OPTIONS', 'GET', 'DELETE', 'HEAD'];\nconst ExponentialBackoffCeiling = 10;\nconst ExponentialBackoffTimeSlice = 5;\nclass HttpClientError extends Error {\n constructor(message, statusCode) {\n super(message);\n this.name = 'HttpClientError';\n this.statusCode = statusCode;\n Object.setPrototypeOf(this, HttpClientError.prototype);\n }\n}\nexports.HttpClientError = HttpClientError;\nclass HttpClientResponse {\n constructor(message) {\n this.message = message;\n }\n readBody() {\n return new Promise(async (resolve, reject) => {\n let output = Buffer.alloc(0);\n this.message.on('data', (chunk) => {\n output = Buffer.concat([output, chunk]);\n });\n this.message.on('end', () => {\n resolve(output.toString());\n });\n });\n }\n}\nexports.HttpClientResponse = HttpClientResponse;\nfunction isHttps(requestUrl) {\n let parsedUrl = new URL(requestUrl);\n return parsedUrl.protocol === 'https:';\n}\nexports.isHttps = isHttps;\nclass HttpClient {\n constructor(userAgent, handlers, requestOptions) {\n this._ignoreSslError = false;\n this._allowRedirects = true;\n this._allowRedirectDowngrade = false;\n this._maxRedirects = 50;\n this._allowRetries = false;\n this._maxRetries = 1;\n this._keepAlive = false;\n this._disposed = false;\n this.userAgent = userAgent;\n this.handlers = handlers || [];\n this.requestOptions = requestOptions;\n if (requestOptions) {\n if (requestOptions.ignoreSslError != null) {\n this._ignoreSslError = requestOptions.ignoreSslError;\n }\n this._socketTimeout = requestOptions.socketTimeout;\n if (requestOptions.allowRedirects != null) {\n this._allowRedirects = requestOptions.allowRedirects;\n }\n if (requestOptions.allowRedirectDowngrade != null) {\n this._allowRedirectDowngrade = requestOptions.allowRedirectDowngrade;\n }\n if (requestOptions.maxRedirects != null) {\n this._maxRedirects = Math.max(requestOptions.maxRedirects, 0);\n }\n if (requestOptions.keepAlive != null) {\n this._keepAlive = requestOptions.keepAlive;\n }\n if (requestOptions.allowRetries != null) {\n this._allowRetries = requestOptions.allowRetries;\n }\n if (requestOptions.maxRetries != null) {\n this._maxRetries = requestOptions.maxRetries;\n }\n }\n }\n options(requestUrl, additionalHeaders) {\n return this.request('OPTIONS', requestUrl, null, additionalHeaders || {});\n }\n get(requestUrl, additionalHeaders) {\n return this.request('GET', requestUrl, null, additionalHeaders || {});\n }\n del(requestUrl, additionalHeaders) {\n return this.request('DELETE', requestUrl, null, additionalHeaders || {});\n }\n post(requestUrl, data, additionalHeaders) {\n return this.request('POST', requestUrl, data, additionalHeaders || {});\n }\n patch(requestUrl, data, additionalHeaders) {\n return this.request('PATCH', requestUrl, data, additionalHeaders || {});\n }\n put(requestUrl, data, additionalHeaders) {\n return this.request('PUT', requestUrl, data, additionalHeaders || {});\n }\n head(requestUrl, additionalHeaders) {\n return this.request('HEAD', requestUrl, null, additionalHeaders || {});\n }\n sendStream(verb, requestUrl, stream, additionalHeaders) {\n return this.request(verb, requestUrl, stream, additionalHeaders);\n }\n /**\n * Gets a typed object from an endpoint\n * Be aware that not found returns a null. Other errors (4xx, 5xx) reject the promise\n */\n async getJson(requestUrl, additionalHeaders = {}) {\n additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);\n let res = await this.get(requestUrl, additionalHeaders);\n return this._processResponse(res, this.requestOptions);\n }\n async postJson(requestUrl, obj, additionalHeaders = {}) {\n let data = JSON.stringify(obj, null, 2);\n additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);\n additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);\n let res = await this.post(requestUrl, data, additionalHeaders);\n return this._processResponse(res, this.requestOptions);\n }\n async putJson(requestUrl, obj, additionalHeaders = {}) {\n let data = JSON.stringify(obj, null, 2);\n additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);\n additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);\n let res = await this.put(requestUrl, data, additionalHeaders);\n return this._processResponse(res, this.requestOptions);\n }\n async patchJson(requestUrl, obj, additionalHeaders = {}) {\n let data = JSON.stringify(obj, null, 2);\n additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);\n additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);\n let res = await this.patch(requestUrl, data, additionalHeaders);\n return this._processResponse(res, this.requestOptions);\n }\n /**\n * Makes a raw http request.\n * All other methods such as get, post, patch, and request ultimately call this.\n * Prefer get, del, post and patch\n */\n async request(verb, requestUrl, data, headers) {\n if (this._disposed) {\n throw new Error('Client has already been disposed.');\n }\n let parsedUrl = new URL(requestUrl);\n let info = this._prepareRequest(verb, parsedUrl, headers);\n // Only perform retries on reads since writes may not be idempotent.\n let maxTries = this._allowRetries && RetryableHttpVerbs.indexOf(verb) != -1\n ? this._maxRetries + 1\n : 1;\n let numTries = 0;\n let response;\n while (numTries < maxTries) {\n response = await this.requestRaw(info, data);\n // Check if it's an authentication challenge\n if (response &&\n response.message &&\n response.message.statusCode === HttpCodes.Unauthorized) {\n let authenticationHandler;\n for (let i = 0; i < this.handlers.length; i++) {\n if (this.handlers[i].canHandleAuthentication(response)) {\n authenticationHandler = this.handlers[i];\n break;\n }\n }\n if (authenticationHandler) {\n return authenticationHandler.handleAuthentication(this, info, data);\n }\n else {\n // We have received an unauthorized response but have no handlers to handle it.\n // Let the response return to the caller.\n return response;\n }\n }\n let redirectsRemaining = this._maxRedirects;\n while (HttpRedirectCodes.indexOf(response.message.statusCode) != -1 &&\n this._allowRedirects &&\n redirectsRemaining > 0) {\n const redirectUrl = response.message.headers['location'];\n if (!redirectUrl) {\n // if there's no location to redirect to, we won't\n break;\n }\n let parsedRedirectUrl = new URL(redirectUrl);\n if (parsedUrl.protocol == 'https:' &&\n parsedUrl.protocol != parsedRedirectUrl.protocol &&\n !this._allowRedirectDowngrade) {\n throw new Error('Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.');\n }\n // we need to finish reading the response before reassigning response\n // which will leak the open socket.\n await response.readBody();\n // strip authorization header if redirected to a different hostname\n if (parsedRedirectUrl.hostname !== parsedUrl.hostname) {\n for (let header in headers) {\n // header names are case insensitive\n if (header.toLowerCase() === 'authorization') {\n delete headers[header];\n }\n }\n }\n // let's make the request with the new redirectUrl\n info = this._prepareRequest(verb, parsedRedirectUrl, headers);\n response = await this.requestRaw(info, data);\n redirectsRemaining--;\n }\n if (HttpResponseRetryCodes.indexOf(response.message.statusCode) == -1) {\n // If not a retry code, return immediately instead of retrying\n return response;\n }\n numTries += 1;\n if (numTries < maxTries) {\n await response.readBody();\n await this._performExponentialBackoff(numTries);\n }\n }\n return response;\n }\n /**\n * Needs to be called if keepAlive is set to true in request options.\n */\n dispose() {\n if (this._agent) {\n this._agent.destroy();\n }\n this._disposed = true;\n }\n /**\n * Raw request.\n * @param info\n * @param data\n */\n requestRaw(info, data) {\n return new Promise((resolve, reject) => {\n let callbackForResult = function (err, res) {\n if (err) {\n reject(err);\n }\n resolve(res);\n };\n this.requestRawWithCallback(info, data, callbackForResult);\n });\n }\n /**\n * Raw request with callback.\n * @param info\n * @param data\n * @param onResult\n */\n requestRawWithCallback(info, data, onResult) {\n let socket;\n if (typeof data === 'string') {\n info.options.headers['Content-Length'] = Buffer.byteLength(data, 'utf8');\n }\n let callbackCalled = false;\n let handleResult = (err, res) => {\n if (!callbackCalled) {\n callbackCalled = true;\n onResult(err, res);\n }\n };\n let req = info.httpModule.request(info.options, (msg) => {\n let res = new HttpClientResponse(msg);\n handleResult(null, res);\n });\n req.on('socket', sock => {\n socket = sock;\n });\n // If we ever get disconnected, we want the socket to timeout eventually\n req.setTimeout(this._socketTimeout || 3 * 60000, () => {\n if (socket) {\n socket.end();\n }\n handleResult(new Error('Request timeout: ' + info.options.path), null);\n });\n req.on('error', function (err) {\n // err has statusCode property\n // res should have headers\n handleResult(err, null);\n });\n if (data && typeof data === 'string') {\n req.write(data, 'utf8');\n }\n if (data && typeof data !== 'string') {\n data.on('close', function () {\n req.end();\n });\n data.pipe(req);\n }\n else {\n req.end();\n }\n }\n /**\n * Gets an http agent. This function is useful when you need an http agent that handles\n * routing through a proxy server - depending upon the url and proxy environment variables.\n * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com\n */\n getAgent(serverUrl) {\n let parsedUrl = new URL(serverUrl);\n return this._getAgent(parsedUrl);\n }\n _prepareRequest(method, requestUrl, headers) {\n const info = {};\n info.parsedUrl = requestUrl;\n const usingSsl = info.parsedUrl.protocol === 'https:';\n info.httpModule = usingSsl ? https : http;\n const defaultPort = usingSsl ? 443 : 80;\n info.options = {};\n info.options.host = info.parsedUrl.hostname;\n info.options.port = info.parsedUrl.port\n ? parseInt(info.parsedUrl.port)\n : defaultPort;\n info.options.path =\n (info.parsedUrl.pathname || '') + (info.parsedUrl.search || '');\n info.options.method = method;\n info.options.headers = this._mergeHeaders(headers);\n if (this.userAgent != null) {\n info.options.headers['user-agent'] = this.userAgent;\n }\n info.options.agent = this._getAgent(info.parsedUrl);\n // gives handlers an opportunity to participate\n if (this.handlers) {\n this.handlers.forEach(handler => {\n handler.prepareRequest(info.options);\n });\n }\n return info;\n }\n _mergeHeaders(headers) {\n const lowercaseKeys = obj => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCase()] = obj[k]), c), {});\n if (this.requestOptions && this.requestOptions.headers) {\n return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers));\n }\n return lowercaseKeys(headers || {});\n }\n _getExistingOrDefaultHeader(additionalHeaders, header, _default) {\n const lowercaseKeys = obj => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCase()] = obj[k]), c), {});\n let clientHeader;\n if (this.requestOptions && this.requestOptions.headers) {\n clientHeader = lowercaseKeys(this.requestOptions.headers)[header];\n }\n return additionalHeaders[header] || clientHeader || _default;\n }\n _getAgent(parsedUrl) {\n let agent;\n let proxyUrl = pm.getProxyUrl(parsedUrl);\n let useProxy = proxyUrl && proxyUrl.hostname;\n if (this._keepAlive && useProxy) {\n agent = this._proxyAgent;\n }\n if (this._keepAlive && !useProxy) {\n agent = this._agent;\n }\n // if agent is already assigned use that agent.\n if (!!agent) {\n return agent;\n }\n const usingSsl = parsedUrl.protocol === 'https:';\n let maxSockets = 100;\n if (!!this.requestOptions) {\n maxSockets = this.requestOptions.maxSockets || http.globalAgent.maxSockets;\n }\n if (useProxy) {\n // If using proxy, need tunnel\n if (!tunnel) {\n tunnel = require('tunnel');\n }\n const agentOptions = {\n maxSockets: maxSockets,\n keepAlive: this._keepAlive,\n proxy: {\n ...((proxyUrl.username || proxyUrl.password) && {\n proxyAuth: `${proxyUrl.username}:${proxyUrl.password}`\n }),\n host: proxyUrl.hostname,\n port: proxyUrl.port\n }\n };\n let tunnelAgent;\n const overHttps = proxyUrl.protocol === 'https:';\n if (usingSsl) {\n tunnelAgent = overHttps ? tunnel.httpsOverHttps : tunnel.httpsOverHttp;\n }\n else {\n tunnelAgent = overHttps ? tunnel.httpOverHttps : tunnel.httpOverHttp;\n }\n agent = tunnelAgent(agentOptions);\n this._proxyAgent = agent;\n }\n // if reusing agent across request and tunneling agent isn't assigned create a new agent\n if (this._keepAlive && !agent) {\n const options = { keepAlive: this._keepAlive, maxSockets: maxSockets };\n agent = usingSsl ? new https.Agent(options) : new http.Agent(options);\n this._agent = agent;\n }\n // if not using private agent and tunnel agent isn't setup then use global agent\n if (!agent) {\n agent = usingSsl ? https.globalAgent : http.globalAgent;\n }\n if (usingSsl && this._ignoreSslError) {\n // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process\n // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options\n // we have to cast it to any and change it directly\n agent.options = Object.assign(agent.options || {}, {\n rejectUnauthorized: false\n });\n }\n return agent;\n }\n _performExponentialBackoff(retryNumber) {\n retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber);\n const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber);\n return new Promise(resolve => setTimeout(() => resolve(), ms));\n }\n static dateTimeDeserializer(key, value) {\n if (typeof value === 'string') {\n let a = new Date(value);\n if (!isNaN(a.valueOf())) {\n return a;\n }\n }\n return value;\n }\n async _processResponse(res, options) {\n return new Promise(async (resolve, reject) => {\n const statusCode = res.message.statusCode;\n const response = {\n statusCode: statusCode,\n result: null,\n headers: {}\n };\n // not found leads to null obj returned\n if (statusCode == HttpCodes.NotFound) {\n resolve(response);\n }\n let obj;\n let contents;\n // get the result from the body\n try {\n contents = await res.readBody();\n if (contents && contents.length > 0) {\n if (options && options.deserializeDates) {\n obj = JSON.parse(contents, HttpClient.dateTimeDeserializer);\n }\n else {\n obj = JSON.parse(contents);\n }\n response.result = obj;\n }\n response.headers = res.message.headers;\n }\n catch (err) {\n // Invalid resource (contents not json); leaving result obj null\n }\n // note that 3xx redirects are handled by the http layer.\n if (statusCode > 299) {\n let msg;\n // if exception/error in body, attempt to get better error\n if (obj && obj.message) {\n msg = obj.message;\n }\n else if (contents && contents.length > 0) {\n // it may be the case that the exception is in the body message as string\n msg = contents;\n }\n else {\n msg = 'Failed request: (' + statusCode + ')';\n }\n let err = new HttpClientError(msg, statusCode);\n err.result = response.result;\n reject(err);\n }\n else {\n resolve(response);\n }\n });\n }\n}\nexports.HttpClient = HttpClient;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nfunction getProxyUrl(reqUrl) {\n let usingSsl = reqUrl.protocol === 'https:';\n let proxyUrl;\n if (checkBypass(reqUrl)) {\n return proxyUrl;\n }\n let proxyVar;\n if (usingSsl) {\n proxyVar = process.env['https_proxy'] || process.env['HTTPS_PROXY'];\n }\n else {\n proxyVar = process.env['http_proxy'] || process.env['HTTP_PROXY'];\n }\n if (proxyVar) {\n proxyUrl = new URL(proxyVar);\n }\n return proxyUrl;\n}\nexports.getProxyUrl = getProxyUrl;\nfunction checkBypass(reqUrl) {\n if (!reqUrl.hostname) {\n return false;\n }\n let noProxy = process.env['no_proxy'] || process.env['NO_PROXY'] || '';\n if (!noProxy) {\n return false;\n }\n // Determine the request port\n let reqPort;\n if (reqUrl.port) {\n reqPort = Number(reqUrl.port);\n }\n else if (reqUrl.protocol === 'http:') {\n reqPort = 80;\n }\n else if (reqUrl.protocol === 'https:') {\n reqPort = 443;\n }\n // Format the request hostname and hostname with port\n let upperReqHosts = [reqUrl.hostname.toUpperCase()];\n if (typeof reqPort === 'number') {\n upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`);\n }\n // Compare request host against noproxy\n for (let upperNoProxyItem of noProxy\n .split(',')\n .map(x => x.trim().toUpperCase())\n .filter(x => x)) {\n if (upperReqHosts.some(x => x === upperNoProxyItem)) {\n return true;\n }\n }\n return false;\n}\nexports.checkBypass = checkBypass;\n","module.exports = require('./lib/tunnel');\n","'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('got illegal response body from proxy');\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n debug('tunneling connection has established');\n self.sockets[self.sockets.indexOf(placeholder)] = socket;\n return cb(socket);\n }\n\n function onError(cause) {\n connectReq.removeAllListeners();\n\n debug('tunneling socket could not be established, cause=%s\\n',\n cause.message, cause.stack);\n var error = new Error('tunneling socket could not be established, ' +\n 'cause=' + cause.message);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n }\n};\n\nTunnelingAgent.prototype.removeSocket = function removeSocket(socket) {\n var pos = this.sockets.indexOf(socket)\n if (pos === -1) {\n return;\n }\n this.sockets.splice(pos, 1);\n\n var pending = this.requests.shift();\n if (pending) {\n // If we have pending requests and a socket gets closed a new one\n // needs to be created to take over in the pool for the one that closed.\n this.createSocket(pending, function(socket) {\n pending.request.onSocket(socket);\n });\n }\n};\n\nfunction createSecureSocket(options, cb) {\n var self = this;\n TunnelingAgent.prototype.createSocket.call(self, options, function(socket) {\n var hostHeader = options.request.getHeader('host');\n var tlsOptions = mergeOptions({}, self.options, {\n socket: socket,\n servername: hostHeader ? hostHeader.replace(/:.*$/, '') : options.host\n });\n\n // 0 is dummy port for v0.6\n var secureSocket = tls.connect(0, tlsOptions);\n self.sockets[self.sockets.indexOf(socket)] = secureSocket;\n cb(secureSocket);\n });\n}\n\n\nfunction toOptions(host, port, localAddress) {\n if (typeof host === 'string') { // since v0.10\n return {\n host: host,\n port: port,\n localAddress: localAddress\n };\n }\n return host; // for v0.11 or later\n}\n\nfunction mergeOptions(target) {\n for (var i = 1, len = arguments.length; i < len; ++i) {\n var overrides = arguments[i];\n if (typeof overrides === 'object') {\n var keys = Object.keys(overrides);\n for (var j = 0, keyLen = keys.length; j < keyLen; ++j) {\n var k = keys[j];\n if (overrides[k] !== undefined) {\n target[k] = overrides[k];\n }\n }\n }\n }\n return target;\n}\n\n\nvar debug;\nif (process.env.NODE_DEBUG && /\\btunnel\\b/.test(process.env.NODE_DEBUG)) {\n debug = function() {\n var args = Array.prototype.slice.call(arguments);\n if (typeof args[0] === 'string') {\n args[0] = 'TUNNEL: ' + args[0];\n } else {\n args.unshift('TUNNEL:');\n }\n console.error.apply(console, args);\n }\n} else {\n debug = function() {};\n}\nexports.debug = debug; // for test\n","var rng = require('./lib/rng');\nvar bytesToUuid = require('./lib/bytesToUuid');\n\nfunction v4(options, buf, offset) {\n var i = buf && offset || 0;\n\n if (typeof(options) == 'string') {\n buf = options === 'binary' ? new Array(16) : null;\n options = null;\n }\n options = options || {};\n\n var rnds = options.random || (options.rng || rng)();\n\n // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n rnds[6] = (rnds[6] & 0x0f) | 0x40;\n rnds[8] = (rnds[8] & 0x3f) | 0x80;\n\n // Copy bytes to buffer, if provided\n if (buf) {\n for (var ii = 0; ii < 16; ++ii) {\n buf[i + ii] = rnds[ii];\n }\n }\n\n return buf || bytesToUuid(rnds);\n}\n\nmodule.exports = v4;\n","// Unique ID creation requires a high quality random # generator. In node.js\n// this is pretty straight-forward - we use the crypto API.\n\nvar crypto = require('crypto');\n\nmodule.exports = function nodeRNG() {\n return crypto.randomBytes(16);\n};\n","/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\nvar byteToHex = [];\nfor (var i = 0; i < 256; ++i) {\n byteToHex[i] = (i + 0x100).toString(16).substr(1);\n}\n\nfunction bytesToUuid(buf, offset) {\n var i = offset || 0;\n var bth = byteToHex;\n // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4\n return ([\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]]\n ]).join('');\n}\n\nmodule.exports = bytesToUuid;\n",null,null,"'use strict';\nconst fs = require('fs');\nconst path = require('path');\nconst crypto = require('crypto');\nconst isStream = require('is-stream');\n\nconst {Worker} = (() => {\n\ttry {\n\t\treturn require('worker_threads');\n\t} catch (_) {\n\t\treturn {};\n\t}\n})();\n\nlet worker; // Lazy\nlet taskIdCounter = 0;\nconst tasks = new Map();\n\nconst recreateWorkerError = sourceError => {\n\tconst error = new Error(sourceError.message);\n\n\tfor (const [key, value] of Object.entries(sourceError)) {\n\t\tif (key !== 'message') {\n\t\t\terror[key] = value;\n\t\t}\n\t}\n\n\treturn error;\n};\n\nconst createWorker = () => {\n\tworker = new Worker(path.join(__dirname, 'thread.js'));\n\n\tworker.on('message', message => {\n\t\tconst task = tasks.get(message.id);\n\t\ttasks.delete(message.id);\n\n\t\tif (tasks.size === 0) {\n\t\t\tworker.unref();\n\t\t}\n\n\t\tif (message.error === undefined) {\n\t\t\ttask.resolve(message.value);\n\t\t} else {\n\t\t\ttask.reject(recreateWorkerError(message.error));\n\t\t}\n\t});\n\n\tworker.on('error', error => {\n\t\t// Any error here is effectively an equivalent of segfault, and have no scope, so we just throw it on callback level\n\t\tthrow error;\n\t});\n};\n\nconst taskWorker = (method, args, transferList) => new Promise((resolve, reject) => {\n\tconst id = taskIdCounter++;\n\ttasks.set(id, {resolve, reject});\n\n\tif (worker === undefined) {\n\t\tcreateWorker();\n\t}\n\n\tworker.ref();\n\tworker.postMessage({id, method, args}, transferList);\n});\n\nconst hasha = (input, options = {}) => {\n\tlet outputEncoding = options.encoding || 'hex';\n\n\tif (outputEncoding === 'buffer') {\n\t\toutputEncoding = undefined;\n\t}\n\n\tconst hash = crypto.createHash(options.algorithm || 'sha512');\n\n\tconst update = buffer => {\n\t\tconst inputEncoding = typeof buffer === 'string' ? 'utf8' : undefined;\n\t\thash.update(buffer, inputEncoding);\n\t};\n\n\tif (Array.isArray(input)) {\n\t\tinput.forEach(update);\n\t} else {\n\t\tupdate(input);\n\t}\n\n\treturn hash.digest(outputEncoding);\n};\n\nhasha.stream = (options = {}) => {\n\tlet outputEncoding = options.encoding || 'hex';\n\n\tif (outputEncoding === 'buffer') {\n\t\toutputEncoding = undefined;\n\t}\n\n\tconst stream = crypto.createHash(options.algorithm || 'sha512');\n\tstream.setEncoding(outputEncoding);\n\treturn stream;\n};\n\nhasha.fromStream = async (stream, options = {}) => {\n\tif (!isStream(stream)) {\n\t\tthrow new TypeError('Expected a stream');\n\t}\n\n\treturn new Promise((resolve, reject) => {\n\t\t// TODO: Use `stream.pipeline` and `stream.finished` when targeting Node.js 10\n\t\tstream\n\t\t\t.on('error', reject)\n\t\t\t.pipe(hasha.stream(options))\n\t\t\t.on('error', reject)\n\t\t\t.on('finish', function () {\n\t\t\t\tresolve(this.read());\n\t\t\t});\n\t});\n};\n\nif (Worker === undefined) {\n\thasha.fromFile = async (filePath, options) => hasha.fromStream(fs.createReadStream(filePath), options);\n\thasha.async = async (input, options) => hasha(input, options);\n} else {\n\thasha.fromFile = async (filePath, {algorithm = 'sha512', encoding = 'hex'} = {}) => {\n\t\tconst hash = await taskWorker('hashFile', [algorithm, filePath]);\n\n\t\tif (encoding === 'buffer') {\n\t\t\treturn Buffer.from(hash);\n\t\t}\n\n\t\treturn Buffer.from(hash).toString(encoding);\n\t};\n\n\thasha.async = async (input, {algorithm = 'sha512', encoding = 'hex'} = {}) => {\n\t\tif (encoding === 'buffer') {\n\t\t\tencoding = undefined;\n\t\t}\n\n\t\tconst hash = await taskWorker('hash', [algorithm, input]);\n\n\t\tif (encoding === undefined) {\n\t\t\treturn Buffer.from(hash);\n\t\t}\n\n\t\treturn Buffer.from(hash).toString(encoding);\n\t};\n}\n\nhasha.fromFileSync = (filePath, options) => hasha(fs.readFileSync(filePath), options);\n\nmodule.exports = hasha;\n","const core = require('@actions/core')\r\nconst child_process = require('child_process')\r\nconst fs = require('fs')\r\nconst path = require('path')\r\nconst process = require('process')\r\n\r\nconst PROGRAM_FILES_X86 = process.env['ProgramFiles(x86)']\r\n\r\nconst EDITIONS = ['Enterprise', 'Professional', 'Community']\r\nconst VERSIONS = ['2019', '2017']\r\n\r\nconst VSWHERE_PATH = `${PROGRAM_FILES_X86}\\\\Microsoft Visual Studio\\\\Installer`\r\n\r\nfunction findWithVswhere(pattern) {\r\n try {\r\n let installationPath = child_process.execSync(`vswhere -products * -latest -prerelease -property installationPath`).toString().trim()\r\n return installationPath + '\\\\' + pattern\r\n } catch (e) {\r\n core.warning(`vswhere failed: ${e}`)\r\n }\r\n return null\r\n}\r\n\r\nfunction findVcvarsall() {\r\n // If vswhere is available, ask it about the location of the latest Visual Studio.\r\n let path = findWithVswhere('VC\\\\Auxiliary\\\\Build\\\\vcvarsall.bat')\r\n if (path && fs.existsSync(path)) {\r\n core.info(`Found with vswhere: ${path}`)\r\n return path\r\n }\r\n core.info(\"Not found with vswhere\")\r\n\r\n // If that does not work, try the standard installation locations,\r\n // starting with the latest and moving to the oldest.\r\n for (const ver of VERSIONS) {\r\n for (const ed of EDITIONS) {\r\n path = `${PROGRAM_FILES_X86}\\\\Microsoft Visual Studio\\\\${ver}\\\\${ed}\\\\VC\\\\Auxiliary\\\\Build\\\\vcvarsall.bat`\r\n core.info(`Trying standard location: ${path}`)\r\n if (fs.existsSync(path)) {\r\n core.info(`Found standard location: ${path}`)\r\n return path\r\n }\r\n }\r\n }\r\n core.info(\"Not found in standard locations\")\r\n\r\n // Special case for Visual Studio 2015 (and maybe earlier), try it out too.\r\n path = `${PROGRAM_FILES_X86}\\\\Microsoft Visual C++ Build Tools\\\\vcbuildtools.bat`\r\n if (fs.existsSync(path)) {\r\n core.info(`Found VS 2015: ${path}`)\r\n return path\r\n }\r\n core.info(`Not found in VS 2015 location: ${path}`)\r\n\r\n throw new Error('Microsoft Visual Studio not found')\r\n}\r\n\r\nfunction isPathVariable(name) {\r\n const pathLikeVariables = ['PATH', 'INCLUDE', 'LIB', 'LIBPATH']\r\n return pathLikeVariables.indexOf(name.toUpperCase()) != -1\r\n}\r\n\r\nfunction filterPathValue(path) {\r\n let paths = path.split(';')\r\n // Remove duplicates by keeping the first occurance and preserving order.\r\n // This keeps path shadowing working as intended.\r\n function unique(value, index, self) {\r\n return self.indexOf(value) === index\r\n }\r\n return paths.filter(unique).join(';')\r\n}\r\n\r\n/** See https://github.com/ilammy/msvc-dev-cmd#inputs */\r\nfunction setupMSVCDevCmd(arch, sdk, toolset, uwp, spectre) {\r\n if (process.platform != 'win32') {\r\n core.info('This is not a Windows virtual environment, bye!')\r\n return\r\n }\r\n\r\n // Add standard location of \"vswhere\" to PATH, in case it's not there.\r\n process.env.PATH += path.delimiter + VSWHERE_PATH\r\n\r\n // There are all sorts of way the architectures are called. In addition to\r\n // values supported by Microsoft Visual C++, recognize some common aliases.\r\n let arch_aliases = {\r\n \"win32\": \"x86\",\r\n \"win64\": \"x64\",\r\n \"x86_64\": \"x64\",\r\n \"x86-64\": \"x64\",\r\n }\r\n // Ignore case when matching as that's what humans expect.\r\n if (arch.toLowerCase() in arch_aliases) {\r\n arch = arch_aliases[arch.toLowerCase()]\r\n }\r\n\r\n // Due to the way Microsoft Visual C++ is configured, we have to resort to the following hack:\r\n // Call the configuration batch file and then output *all* the environment variables.\r\n\r\n var args = [arch]\r\n if (uwp == 'true') {\r\n args.push('uwp')\r\n }\r\n if (sdk) {\r\n args.push(sdk)\r\n }\r\n if (toolset) {\r\n args.push(`-vcvars_ver=${toolset}`)\r\n }\r\n if (spectre == 'true') {\r\n args.push('-vcvars_spectre_libs=spectre')\r\n }\r\n\r\n const vcvars = `\"${findVcvarsall()}\" ${args.join(' ')}`\r\n core.debug(`vcvars command-line: ${vcvars}`)\r\n\r\n const cmd_output_string = child_process.execSync(`set && cls && ${vcvars} && cls && set`, {shell: \"cmd\"}).toString()\r\n const cmd_output_parts = cmd_output_string.split('\\f')\r\n\r\n const old_environment = cmd_output_parts[0].split('\\r\\n')\r\n const vcvars_output = cmd_output_parts[1].split('\\r\\n')\r\n const new_environment = cmd_output_parts[2].split('\\r\\n')\r\n\r\n // If vsvars.bat is given an incorrect command line, it will print out\r\n // an error and *still* exit successfully. Parse out errors from output\r\n // which don't look like environment variables, and fail if appropriate.\r\n const error_messages = vcvars_output.filter((line) => {\r\n if (line.match(/^\\[ERROR.*\\]/)) {\r\n // Don't print this particular line which will be confusing in output.\r\n if (!line.match(/Error in script usage. The correct usage is:$/)) {\r\n return true\r\n }\r\n }\r\n return false\r\n })\r\n if (error_messages.length > 0) {\r\n throw new Error('invalid parameters' + '\\r\\n' + error_messages.join('\\r\\n'))\r\n }\r\n\r\n // Convert old environment lines into a dictionary for easier lookup.\r\n let old_env_vars = {}\r\n for (let string of old_environment) {\r\n const [name, value] = string.split('=')\r\n old_env_vars[name] = value\r\n }\r\n\r\n // Now look at the new environment and export everything that changed.\r\n // These are the variables set by vsvars.bat. Also export everything\r\n // that was not there during the first sweep: those are new variables.\r\n core.startGroup('Environment variables')\r\n for (let string of new_environment) {\r\n // vsvars.bat likes to print some fluff at the beginning.\r\n // Skip lines that don't look like environment variables.\r\n if (!string.includes('=')) {\r\n continue;\r\n }\r\n let [name, new_value] = string.split('=')\r\n let old_value = old_env_vars[name]\r\n // For new variables \"old_value === undefined\".\r\n if (new_value !== old_value) {\r\n core.info(`Setting ${name}`)\r\n // Special case for a bunch of PATH-like variables: vcvarsall.bat\r\n // just prepends its stuff without checking if its already there.\r\n // This makes repeated invocations of this action fail after some\r\n // point, when the environment variable overflows. Avoid that.\r\n if (isPathVariable(name)) {\r\n new_value = filterPathValue(new_value)\r\n }\r\n core.exportVariable(name, new_value)\r\n }\r\n }\r\n core.endGroup()\r\n\r\n core.info(`Configured Developer Command Prompt`)\r\n}\r\nexports.setupMSVCDevCmd = setupMSVCDevCmd\r\n\r\nfunction main() {\r\n var arch = core.getInput('arch')\r\n const sdk = core.getInput('sdk')\r\n const toolset = core.getInput('toolset')\r\n const uwp = core.getInput('uwp')\r\n const spectre = core.getInput('spectre')\r\n\r\n setupMSVCDevCmd(arch, sdk, toolset, uwp, spectre)\r\n}\r\n\r\ntry {\r\n main()\r\n}\r\ncatch (e) {\r\n core.setFailed('Could not setup Developer Command Prompt: ' + e.message)\r\n}\r\n",null,null,null,null,"'use strict';\nconst os = require('os');\n\nconst homeDirectory = os.homedir();\n\nmodule.exports = pathWithTilde => {\n\tif (typeof pathWithTilde !== 'string') {\n\t\tthrow new TypeError(`Expected a string, got ${typeof pathWithTilde}`);\n\t}\n\n\treturn homeDirectory ? pathWithTilde.replace(/^~(?=$|\\/|\\\\)/, homeDirectory) : pathWithTilde;\n};\n","import { setupPipPack } from \"../utils/setup/setupPipPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupConan(version: string | undefined, _setupCppDir: string, _arch: string) {\n return setupPipPack(\"conan\", version)\n}\n","import { setupPipPack } from \"../utils/setup/setupPipPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupMeson(version: string | undefined, _setupCppDir: string, _arch: string) {\n return setupPipPack(\"meson\", version)\n}\n","import { setupPipPack } from \"../utils/setup/setupPipPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupGcovr(version: string | undefined, _setupCppDir: string, _arch: string) {\n return setupPipPack(\"gcovr\", version)\n}\n","import { addPath } from \"../utils/path/addPath\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupOpencppcoverage(version: string | undefined, _setupCppDir: string, _arch: string) {\n if (process.platform !== \"win32\") {\n return\n }\n await setupChocoPack(\"opencppcoverage\", version)\n const binDir = \"C:/Program Files/OpenCppCoverage\"\n await addPath(binDir)\n return { binDir }\n}\n","import { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupCcache(version: string, _setupCppDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n return setupChocoPack(\"ccache\", version)\n }\n case \"darwin\": {\n return setupBrewPack(\"ccache\", version)\n }\n case \"linux\": {\n return setupAptPack(\"ccache\", version)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { addPath } from \"../utils/path/addPath\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupDoxygen(version: string | undefined, _setupCppDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n await setupChocoPack(\"doxygen.install\", version)\n await setupChocoPack(\"graphviz\", version)\n await addPath(\"C:/Program Files/Graphviz/bin\")\n const binDir = \"C:/Program Files/doxygen/bin\"\n await addPath(binDir)\n return { binDir }\n }\n case \"darwin\": {\n setupBrewPack(\"doxygen\", version)\n return setupBrewPack(\"graphviz\", version)\n }\n case \"linux\": {\n await setupAptPack(\"doxygen\", version)\n return setupAptPack(\"graphviz\", version)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { addPath } from \"../utils/path/addPath\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupCppcheck(version: string | undefined, _setupCppDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n await setupChocoPack(\"cppcheck\", version)\n const binDir = \"C:/Program Files/Cppcheck\"\n await addPath(binDir)\n return { binDir }\n }\n case \"darwin\": {\n return setupBrewPack(\"cppcheck\", version)\n }\n case \"linux\": {\n return setupAptPack(\"cppcheck\", version)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n"],"names":["$f8af4289d8ca9e73$var$isexe","path","options","cb","Promise","TypeError","resolve","reject","er","is","$f8af4289d8ca9e73$var$core","code","ignoreErrors","$ee44094b0ce40db3$export$80e483d773064391","_version","_setupCppDir","_arch","includes","process","platform","$ee44094b0ce40db3$var$binDir","maybeBinDir","$parcel$interopDefault","$36da3a1038e77300$exports","sync","nothrow","$3U0nv$path","dirname","$3U0nv$child_process","execFileSync","stdio","$9c96c19a4bceb1f0$var$resolveCommandAttempt","parsed","withoutPathExt","env","cwd","hasCustomCwd","shouldSwitchCwd","undefined","chdir","disabled","err","resolved","command","$25914d0b552b8416$exports","pathExt","delimiter","e","$43e248ca34798005$var$notFoundError","original","syscall","Object","assign","Error","errno","spawnargs","args","$43e248ca34798005$var$verifyENOENT","status","$43e248ca34798005$var$isWin","file","$41c6ec4dbf52b862$var$spawn","$cc3250f0d1cc3019$exports","spawned","spawn","$43e248ca34798005$exports","hookChildProcess","$1b016d3820a9e1fb$var$unload","$1b016d3820a9e1fb$var$loaded","forEach","sig","removeListener","$1b016d3820a9e1fb$var$sigListeners","emit","$1b016d3820a9e1fb$var$originalProcessEmit","reallyExit","$1b016d3820a9e1fb$var$originalProcessReallyExit","$1b016d3820a9e1fb$var$emitter","count","$1b016d3820a9e1fb$var$emit","event","signal","emitted","$1b016d3820a9e1fb$var$load","filter","on","$1b016d3820a9e1fb$var$processEmit","$1b016d3820a9e1fb$var$processReallyExit","exitCode","call","ev","arg","ret","apply","this","arguments","$aca27b1924527bc3$var$getStream","inputStream","maxBuffer","Infinity","stream","$d43cdcba2540f772$exports","rejectPromise","error","getBufferedLength","$aca27b1924527bc3$require$BufferConstants","MAX_LENGTH","bufferedData","getBufferedValue","$aca27b1924527bc3$var$streamPipelinePromisified","$aca27b1924527bc3$var$MaxBufferError","$17b14aa64fad5157$export$7a2afc14661ec6f","$17b14aa64fad5157$var$_issudo","CI","ref","getuid","$cc47f4e6f3d32c78$exports","$13dd793dec60e501$export$3facfc9dd87fb850","name","version","repository","apt","$13dd793dec60e501$var$didUpdate","binDir","$1c9ab043a2b6cc59$export$698568e794d5249f","$1c9ab043a2b6cc59$var$hasBrew","$3f76876b48282571$export$82747387e53cecaa","$6FGZZ","addPath","info","PATH","$a9f3b01a430d25e5$export$1e92c536ef588459","$a9f3b01a430d25e5$var$binDir","commandSync","maybeChoco","$3U0nv$fs","existsSync","$6b27956e33e7a968$export$50c32c11cefe4e9f","$6b27956e33e7a968$var$hasChoco","$8d6c57753101e07a$var$exec","commandLine","commandArgs","$8d6c57753101e07a$var$tr","argStringToArray","length","toolPath","slice","concat","ToolRunner","exec","$fbdecc6eadfe47c2$var$findAllVersions","toolName","arch","versions","$fbdecc6eadfe47c2$var$os","$fbdecc6eadfe47c2$var$path","join","$fbdecc6eadfe47c2$var$_getCacheDirectory","$fbdecc6eadfe47c2$var$fs","children","readdirSync","child","$fbdecc6eadfe47c2$var$isExplicitVersion","fullPath","push","$fbdecc6eadfe47c2$var$_createExtractFolder","dest","$fbdecc6eadfe47c2$var$_getTempDirectory","$fbdecc6eadfe47c2$var$v4_1","default","$fbdecc6eadfe47c2$var$io","mkdirP","$fbdecc6eadfe47c2$var$_createToolPath","tool","folderPath","$fbdecc6eadfe47c2$var$semver","clean","$fbdecc6eadfe47c2$var$core","debug","markerPath","rmRF","$fbdecc6eadfe47c2$var$_completeToolPath","writeFileSync","versionSpec","c","valid","$fbdecc6eadfe47c2$var$evaluateVersions","i","sort","a","b","gt","potential","satisfies","cacheDirectory","$3U0nv$assert","ok","tempDirectory","$fbdecc6eadfe47c2$var$_getGlobal","key","defaultValue","value","$parcel$global","$f5c161df7ab7d525$export$97748eae293469f0","getPackageInfo","setupCppDir","_RUNNER_TEMP","_RUNNER_TOOL_CACH","RUNNER_TEMP","$3U0nv$os","tmpdir","RUNNER_TOOL_CACHE","RUNNER_TOOL_CACH","url","binRelativeDir","extractedFolderName","extractFunction","dir","$fbdecc6eadfe47c2$exports","find","installDir","$e68279e3338bc371$exports","async","algorithm","rootDir","downloaded","downloadTool","cacheDir","$d40f2b84e4520e56$var$getCmakePackageInfo","semVersion","$5M2Mq","platformStr","getInput","isOld","$ju11K","osArchStr","folderName","extractZip","extractTar","$20ba577a744e9e96$export$ceb9c2d7a4f63acc","sourceName","targetName","setExecutable","sourcePath","targetPath","symlinkSync","$20ba577a744e9e96$export$b6afdf548cce3a42","chmodSync","$20ba577a744e9e96$export$9bc8f45691b95052","$20ba577a744e9e96$export$a8cf3209e098ef45","$hBwzM","validRange","pypyVersion","$f022661c7ba1f0db$var$usePyPy","majorVersion","architecture","findPyPy","bind","_binDir","exportVariable","impl","setOutput","$f022661c7ba1f0db$var$versionFromPath","parts","split","sep","idx","findIndex","part","$36577581e049d94c$export$8c67d7fc35de7958","$36577581e049d94c$export$acc94c5223ff25f0","replace","$36577581e049d94c$export$c6639e8493cb127","releases","files","item","$20ba577a744e9e96$export$9cadc82215ebe904","$20ba577a744e9e96$export$64a6690eaf7c329","$36577581e049d94c$export$d85e7c823fa73d0d","$419624936a2d1758$export$ed762e2824bae281","$ca400c34eccdb57a$export$44f2938a3d4c6806","$ca400c34eccdb57a$export$d395cd30fbb6736a","startsWith","installed","resolvedPyPyVersion","resolvedPythonVersion","pypyVersionSpec","pythonVersion","test","$588899e011391f63$export$2b5406d6a9a13bbc","$588899e011391f63$export$2da61456f93be513","basename","$20ba577a744e9e96$export$4b4f4b982a2ffe07","fileVersion","readFileSync","$20ba577a744e9e96$export$6f314ebc3b60c941","$588899e011391f63$export$34f0d1e2635db91b","downloadDir","http","$9AGbw","HttpClient","response","getJson","result","$36577581e049d94c$var$getAvailablePyPyVersions","releaseData","filterReleases","isPythonVersionSatisfied","coerce","python_version","isPyPyVersionSatisfied","pypy_version","isArchPresent","some","$36577581e049d94c$export$b4c35c3de1bb74e3","$36577581e049d94c$export$c8431f03a51e60bd","foundRelease","previous","current","compare","$36577581e049d94c$export$596d3412b21fc15f","foundAsset","downloadUrl","download_url","pypyPath","archiveName","toolDir","pypyFilePath","$20ba577a744e9e96$export$52096b3724e0cb70","binaryPath","pypyBinaryPath","pythonBinaryPostfix","major","pypyBinaryPostfix","binaryExtension","$36577581e049d94c$var$createPyPySymlink","pythonLocation","pythonBinary","$8d6c57753101e07a$exports","$36577581e049d94c$var$installPip","$36577581e049d94c$export$14ff1a21eed93571","$588899e011391f63$export$cba4b335bf603792","toUpperCase","semanticVersionSpec","endsWith","manifest","getManifestFromRepo","$655628f797e4869d$var$AUTH","findFromManifest","$655628f797e4869d$export$138d6544552d0d44","release","pythonPath","pythonExtractedFolder","workingDirectory","$20ba577a744e9e96$export$ce1daefa7994a9d0","LD_LIBRARY_PATH","silent","listeners","stdout","data","trim","stderr","$655628f797e4869d$var$installPython","$655628f797e4869d$export$2705050b37fec3c","$655628f797e4869d$export$4f76c28790455076","EOL","libPath","pyLibPath","$f022661c7ba1f0db$var$binDir","version1","minor","userScriptsDir","$f022661c7ba1f0db$var$useCpythonVersion","$f022661c7ba1f0db$export$1cecbd6a84583d9c","matchersPath","installInfo","$09efbe6c03c5e8c7$export$7a973c5043caaa2","$3U0nv$https","get","res","statusCode","$cc05105aff3c1e34$export$e258427b01a4f9","$cc05105aff3c1e34$var$pip","givenFile","targetVersion","versionRegex","givenVersion","ref1","getExecOutput","ref2","match","console","$1bd49ae4b85c403c$export$afe0511abe6ee3d2","$1wyqe","$1bd49ae4b85c403c$export$8c44dcfae252b9ed","$cc05105aff3c1e34$var$binDir","$a016715d3f18f117$export$8d5b126e4b80c6cb","$a016715d3f18f117$export$a18ed1c85be027cc","flags","$q05Mr","$ecc64fd197c4357d$var$getGitHubUrl","prefix","suffix","$ecc64fd197c4357d$var$getReleaseUrl","$ecc64fd197c4357d$export$18a6cfbf25963f89","$ecc64fd197c4357d$var$DARWIN_MISSING","has","$ecc64fd197c4357d$var$getDarwinUrl","versionGiven","rc","$ecc64fd197c4357d$var$UBUNTU_RC","ubuntu","$ecc64fd197c4357d$var$UBUNTU","$ecc64fd197c4357d$var$getLinuxUrl","$ecc64fd197c4357d$var$WIN32_MISSING","olderThan9_1","fallback","$ecc64fd197c4357d$var$getWin32Url","$ecc64fd197c4357d$var$getLLVMPackageInfo","specificVersion","getUrl","semversion","Array","from","v","reverse","$1bd49ae4b85c403c$export$e931c90ac13970ac","$1bd49ae4b85c403c$export$fa70b3b14f4c526f","$ecc64fd197c4357d$export$af592c7790e0a325","$ecc64fd197c4357d$export$3a1c6393858a80d7","directory","installationInfo","lib","_LD_LIBRARY_PATH","ld","_DYLD_LIBRARY_PATH","dyld","DYLD_LIBRARY_PATH","llvmMajor","$k3zcS","xcrun","sdkroot","$4181a77ac5f8ec9b$export$966b4aa3adf6692d","sdk","uwp","spectre","toolset","VCTargetsPath","setupMSVCDevCmd","parcelRequire","$4181a77ac5f8ec9b$var$getArch","$427622416622ca4f$var$getNinjaPackageInfo","ninjaPlatform","$427622416622ca4f$var$getNinjaPlatform","$57aef85c779683b0$var$toArr","any","isArray","$57aef85c779683b0$var$toVal","out","val","opts","x","old","nxt","string","indexOf","String","boolean","_","$f66466a1fc9f3b2a$export$2763ddd825e0c80d","$f66466a1fc9f3b2a$var$DefaultVersions","$cc0d561bc6dacbdc$export$ee0e00e9eebd0473","$67e22ba8b9f0eedf$export$ee1d219d24aa76a7","log","$6e0c5961feb4ff1d$export$cc99187a73fc5866","ACTIONS_ALLOW_UNSECURE_COMMANDS","k","arr","j","len","alibi","alias","strict","unknown","defaults","splice","keys","charCodeAt","substring","repeat","shift","$57aef85c779683b0$export$9099ad97b570f7c","$6e0c5961feb4ff1d$var$inputs","fromEntries","map","inp","$6e0c5961feb4ff1d$var$maybeGetInput","h","_architecture","help","_SETUP_CPP_DIR","SETUP_CPP_DIR","$6db0685353f69c12$exports","successMessages","errorMessages","$6e0c5961feb4ff1d$var$tools","setupFunction","$6e0c5961feb4ff1d$var$setups","$6e0c5961feb4ff1d$var$getSuccessMessage","maybeCompiler","compiler","compilerAndMaybeVersion","maybeVersion","$1JJDJ","tool1","$67e22ba8b9f0eedf$export$e62dab7d9fa2e29e","msg","toLowerCase","$4db7ed1a4fdd712a$var$getInput","required","trimWhitespace","$4db7ed1a4fdd712a$var$error","message","properties","$eOxkI","issueCommand","$lK3O3","toCommandProperties","$4db7ed1a4fdd712a$var$startGroup","issue","$4db7ed1a4fdd712a$var$endGroup","$4db7ed1a4fdd712a$var$os","$4db7ed1a4fdd712a$var$__importStar","$4db7ed1a4fdd712a$var$path","$4db7ed1a4fdd712a$var$ExitCode","ExitCode","module","exports","convertedVal","toCommandValue","$85a1M","setSecret","secret","inputPath","getMultilineInput","getBooleanInput","write","setCommandEcho","enabled","setFailed","Failure","isDebug","warning","notice","startGroup","endGroup","group","fn","saveState","getState","$ac8f977adbabca24$var$issueCommand","cmd","$ac8f977adbabca24$var$Command","$ac8f977adbabca24$var$os","$ac8f977adbabca24$var$__importStar","toString","cmdStr","first","hasOwnProperty","s","$ac8f977adbabca24$var$escapeData","input","JSON","stringify","annotationProperties","title","line","startLine","endLine","col","startColumn","endColumn","$5e2691ad996aa9ad$var$fs","$5e2691ad996aa9ad$var$__importStar","$5e2691ad996aa9ad$var$os","filePath","appendFileSync","encoding","$36da3a1038e77300$var$isWindows","OSTYPE","$36da3a1038e77300$var$COLON","$402f7bbe371b7b24$var$checkStat","stat","isSymbolicLink","isFile","pathext","PATHEXT","p","substr","$402f7bbe371b7b24$var$checkPathExt","$402f7bbe371b7b24$var$isexe","statSync","$eae5e8c11b388e10$var$isexe","$eae5e8c11b388e10$var$checkStat","mod","mode","uid","gid","myUid","myGid","getgid","u","parseInt","g","ug","$eae5e8c11b388e10$var$checkMode","TESTING_WINDOWS","$f8af4289d8ca9e73$exports","$36da3a1038e77300$var$getNotFoundError","$36da3a1038e77300$var$getPathInfo","opt","colon","pathEnv","pathExtExe","unshift","$36da3a1038e77300$var$which","found","step","all","ppRaw","pathPart","pCmd","subStep","ii","ext","then","cur","ex","$25914d0b552b8416$var$pathKey","environment","$94354d2cab6ec3bb$export$8763c7eee5203db","$94354d2cab6ec3bb$export$f2fa5ff1855a55aa","$9c96c19a4bceb1f0$exports","doubleEscapeMetaChars","$14af8c52f3b995d0$exports","argument","binary","pop","$0c9f218fc7700aad$exports","buffer","Buffer","alloc","fd","openSync","readSync","closeSync","$cc3250f0d1cc3019$var$isWin","$cc3250f0d1cc3019$var$isExecutableRegExp","$cc3250f0d1cc3019$var$isCmdShimRegExp","shell","commandFile","shebang","$cc3250f0d1cc3019$var$detectShebang","needsShell","forceShell","needsDoubleEscapeMetaChars","normalize","shellCommand","comspec","windowsVerbatimArguments","$cc3250f0d1cc3019$var$parseNonShell","cp","originalEmit","arg1","$41c6ec4dbf52b862$exports","spawnSync","verifyENOENTSync","_parse","_enoent","$c6ee39b3affa8683$exports","CR","$759278668954c515$var$npmRunPath","execPath","cwdPath","execPathDir","$759278668954c515$exports","$0a664e467f796e7e$var$mimicFn","to","prop","Reflect","ownKeys","defineProperty","getOwnPropertyDescriptor","$0a664e467f796e7e$exports","$4c38ff914fe1d89a$var$calledFunctions","WeakMap","$4c38ff914fe1d89a$var$onetime","function_","returnValue","callCount","functionName","displayName","onetime","arguments_","set","throw","$4c38ff914fe1d89a$exports","$23056d73879d6045$exports","signalsByNumber","signalsByName","$a5a917e3a5d932c3$exports","getSignals","standard","number","action","description","forced","getRealtimeSignals","SIGRTMAX","SIGRTMIN","getRealtimeSignal","index","$80655e6f773eb793$var$SIGRTMAX","realtimeSignals","$80655e6f773eb793$exports","SIGNALS","normalizeSignal","defaultNumber","signals","constantSignal","constants","supported","reduce","signalByNameMemo","$23056d73879d6045$var$signalsByName","signalsA","signalA","findSignalByNumber","getSignalByNumber","getSignalsByNumber","$23056d73879d6045$var$signalsByNumber","$9c02b87c81142eb9$exports","escapedCommand","timedOut","isCanceled","killed","timeout","signalDescription","$9c02b87c81142eb9$require$signalsByName","errorCode","$9c02b87c81142eb9$var$getErrorPrefix","execaMessage","isError","shortMessage","Boolean","originalMessage","failed","$7c5d2b028d8c11a2$var$aliases","$7c5d2b028d8c11a2$var$normalizeStdio","$7c5d2b028d8c11a2$var$hasAlias","Math","max","$7c5d2b028d8c11a2$exports","node","$ec50826462d91d22$exports","$1b016d3820a9e1fb$var$isWin","$3U0nv$events","$1b016d3820a9e1fb$require$EE","EventEmitter","__signal_exit_emitter__","infinite","setMaxListeners","$1b016d3820a9e1fb$exports","equal","alwaysLast","unload","kill","pid","load","$32c0bb5df899f0ee$var$isSigterm","SIGTERM","$32c0bb5df899f0ee$exports","killResult","forceKillAfterTimeout","$32c0bb5df899f0ee$var$shouldForceKill","Number","isFinite","$32c0bb5df899f0ee$var$getForceKillAfterTimeout","t","setTimeout","unref","$32c0bb5df899f0ee$var$setKillTimeout","context","killSignal","spawnedPromise","timeoutId","timeoutPromise","$32c0bb5df899f0ee$var$timeoutKill","safeSpawnedPromise","finally","clearTimeout","race","cleanup","detached","timedPromise","removeExitHandler","spawnedKill","spawnedCancel","validateTimeout","setExitHandler","setupTimeout","$04f38251090bf040$var$isStream","pipe","writable","_write","_writableState","readable","_read","_readableState","duplex","transform","_transform","$04f38251090bf040$exports","$3U0nv$buffer","$3U0nv$stream","PassThrough","array","isBuffer","objectMode","$d43cdcba2540f772$require$PassThroughStream","setEncoding","chunks","chunk","$aca27b1924527bc3$require$promisify","$3U0nv$util","promisify","pipeline","super","$aca27b1924527bc3$exports","MaxBufferError","$08ebbe08125d6885$exports","add","source","sources","once","remove","output","end","isEmpty","it","$08ebbe08125d6885$require$PassThrough","$c27adbaa770b8d87$var$getBufferedData","streamPromise","destroy","$c27adbaa770b8d87$var$getStreamPromise","$c27adbaa770b8d87$exports","stdin","mixed","processDone","stdoutPromise","stderrPromise","allPromise","makeAllStream","getSpawnedResult","validateInputSync","handleInput","$848bef379cd38ad7$var$nativePromisePrototype","constructor","prototype","$848bef379cd38ad7$var$descriptors","property","$848bef379cd38ad7$exports","promise","descriptor","getSpawnedPromise","mergePromise","$88ea719f29a64eb5$var$normalizeArgs","$88ea719f29a64eb5$var$NO_ESCAPE_REGEXP","$88ea719f29a64eb5$exports","$88ea719f29a64eb5$var$escapeArg","tokens","token","previousToken","joinCommand","parseCommand","getEscapedCommand","$cc47f4e6f3d32c78$var$handleArguments","stripFinalNewline","extendEnv","preferLocal","localDir","windowsHide","envOption","$cc47f4e6f3d32c78$var$getEnv","$cc47f4e6f3d32c78$var$handleOutput","$cc47f4e6f3d32c78$var$execa","$cc47f4e6f3d32c78$require$joinCommand","$cc47f4e6f3d32c78$require$getEscapedCommand","dummySpawned","ChildProcess","errorPromise","$cc47f4e6f3d32c78$require$getSpawnedPromise","$cc47f4e6f3d32c78$require$setupTimeout","$cc47f4e6f3d32c78$require$setExitHandler","$cc47f4e6f3d32c78$require$spawnedKill","cancel","$cc47f4e6f3d32c78$require$spawnedCancel","handlePromiseOnce","stdoutResult","stderrResult","allResult","$cc47f4e6f3d32c78$require$getSpawnedResult","returnedError","$cc47f4e6f3d32c78$require$makeAllStream","$cc47f4e6f3d32c78$require$parseCommand","scriptPath","defaultExecArgv","execArgv","nodePath","nodeOptions","$fbdecc6eadfe47c2$var$__importStar","$04e280234287a6fa$var$rmRF","$04e280234287a6fa$var$ioUtil","IS_WINDOWS","cmdPath","getCmdPath","isDirectory","$04e280234287a6fa$var$exec","unlink","isDir","$04e280234287a6fa$var$execFile","$04e280234287a6fa$var$mkdirP","fsPath","mkdir","recursive","$04e280234287a6fa$var$findInPath","extensions","extension","$04e280234287a6fa$var$path","isRooted","tryGetExecutablePath","directories","matches","$04e280234287a6fa$var$cpDirRecursive","sourceDir","destDir","currentDepth","force","readdir","fileName","srcFile","destFile","lstat","$04e280234287a6fa$var$copyFile","chmod","symlinkFull","readlink","symlink","exists","copyFile","$04e280234287a6fa$var$childProcess","$04e280234287a6fa$var$__importStar","execFile","copySourceDirectory","$04e280234287a6fa$var$readCopyOptions","destStat","newDest","relative","mv","destExists","rename","which","$04e280234287a6fa$var$which","check","findInPath","$b527c73d129cd9df$var$isUnixExecutable","stats","$b527c73d129cd9df$var$fs","$b527c73d129cd9df$var$__importStar","$b527c73d129cd9df$var$path","$b527c73d129cd9df$var$_a","promises","rmdir","useStat","$b527c73d129cd9df$var$normalizeSeparators","upperExt","extname","validExt","originalFilePath","upperName","actualName","_a","$13c43de102a3b6d8$var$semver","$13c43de102a3b6d8$var$__importStar","_findMatch","stable","candidates","archFilter","platFilter","candidate","chk","platform_version","osVersion","_getOsVersion","plat","execSync","lsbContents","_readLinuxVersionFile","lines","lsbReleaseFile","osReleaseFile","contents","re","$j1nFx","src","SEMVER_SPEC_VERSION","SemVer","compareIdentifiers","rcompareIdentifiers","parse","inc","diff","patch","prerelease","rcompare","compareLoose","compareBuild","rsort","lt","eq","neq","gte","lte","cmp","Comparator","Range","toComparators","maxSatisfying","minSatisfying","minVersion","outside","gtr","ltr","intersects","simplifyRange","subset","MAX_SAFE_COMPONENT_LENGTH","R","createToken","isGlobal","$8eni4","RegExp","NUMERICIDENTIFIER","NUMERICIDENTIFIERLOOSE","NONNUMERICIDENTIFIER","PRERELEASEIDENTIFIER","PRERELEASEIDENTIFIERLOOSE","BUILDIDENTIFIER","MAINVERSION","PRERELEASE","BUILD","FULLPLAIN","MAINVERSIONLOOSE","PRERELEASELOOSE","LOOSEPLAIN","XRANGEIDENTIFIER","XRANGEIDENTIFIERLOOSE","GTLT","XRANGEPLAIN","XRANGEPLAINLOOSE","$dd9078767aae0d77$require$MAX_SAFE_COMPONENT_LENGTH","COERCE","LONETILDE","tildeTrimReplace","LONECARET","caretTrimReplace","comparatorTrimReplace","MAX_SAFE_INTEGER","$5fe1b2857782793b$var$debug","$9PnyI","$de2b687c79c82d4f$var$SemVer","$26eGk","loose","includePrerelease","$de2b687c79c82d4f$require$MAX_LENGTH","m","$de2b687c79c82d4f$require$re","$de2b687c79c82d4f$require$t","LOOSE","FULL","raw","$de2b687c79c82d4f$require$MAX_SAFE_INTEGER","id","num","build","format","other","compareMain","comparePre","$de2b687c79c82d4f$require$compareIdentifiers","identifier","isNaN","$187787c55101df84$var$opts","options1","$6ecf2feb48e2d485$var$numeric","$6ecf2feb48e2d485$var$compareIdentifiers","anum","bnum","$j4Bpm","$021b1d9719c3eaaf$require$MAX_LENGTH","$021b1d9719c3eaaf$require$re","$021b1d9719c3eaaf$require$t","$bd0kF","version2","$4eeum","v1","v2","hasPre","defaultResult","versionA","versionB","list","$7REgF","op","$a0PPD","$6bYo1","$kRrXd","$98Pyg","rtl","next","$434397839421ea8b$require$re","$434397839421ea8b$require$t","COERCERTL","lastIndex","$cd741182808e7a1f$var$ANY","Symbol","$cd741182808e7a1f$var$Comparator","ANY","comp1","semver","operator","comp","$cd741182808e7a1f$require$re","$cd741182808e7a1f$require$t","COMPARATORLOOSE","COMPARATOR","$cITzi","$8YuUE","sameDirectionIncreasing","sameDirectionDecreasing","sameSemVer","differentDirectionsInclusive","oppositeDirectionsLessThan","oppositeDirectionsGreaterThan","$688be7ed17017f41$var$Range","range1","$hDCF3","parseRange","$688be7ed17017f41$var$isNullSet","$688be7ed17017f41$var$isAny","range","comps","memoKey","cached","$688be7ed17017f41$var$cache","$688be7ed17017f41$require$re","$688be7ed17017f41$require$t","HYPHENRANGELOOSE","HYPHENRANGE","$688be7ed17017f41$var$hyphenReplace","COMPARATORTRIM","$688be7ed17017f41$require$comparatorTrimReplace","TILDETRIM","$688be7ed17017f41$require$tildeTrimReplace","CARETTRIM","$688be7ed17017f41$require$caretTrimReplace","compRe","rangeList","$688be7ed17017f41$var$parseComparator","$688be7ed17017f41$var$replaceGTE0","rangeMap","Map","size","delete","values","thisComparators","$688be7ed17017f41$var$isSatisfiable","rangeComparators","every","thisComparator","rangeComparator","$688be7ed17017f41$var$testSet","comparators","options2","remainingComparators","testComparator","otherComparator","$688be7ed17017f41$var$replaceCarets","$688be7ed17017f41$var$replaceTildes","$688be7ed17017f41$var$replaceXRanges","$688be7ed17017f41$var$replaceStars","$688be7ed17017f41$var$isX","$688be7ed17017f41$var$replaceTilde","TILDELOOSE","TILDE","M","pr","$688be7ed17017f41$var$replaceCaret","z","CARETLOOSE","CARET","$688be7ed17017f41$var$replaceXRange","XRANGELOOSE","XRANGE","gtlt","xM","xm","xp","STAR","GTE0PRE","GTE0","incPr","$0","fM","fm","fp","fpr","fb","tM","tm","tp","tpr","tb","i1","allowed","$cb0ed5fe82fb4516$var$MAX","$cb0ed5fe82fb4516$var$LENGTH","$cb0ed5fe82fb4516$var$LENGTH_CALCULATOR","$cb0ed5fe82fb4516$var$ALLOW_STALE","$cb0ed5fe82fb4516$var$MAX_AGE","$cb0ed5fe82fb4516$var$DISPOSE","$cb0ed5fe82fb4516$var$NO_DISPOSE_ON_SET","$cb0ed5fe82fb4516$var$LRU_LIST","$cb0ed5fe82fb4516$var$CACHE","$cb0ed5fe82fb4516$var$UPDATE_AGE_ON_GET","$cb0ed5fe82fb4516$var$naiveLength","$cb0ed5fe82fb4516$var$get","self","doUse","hit","$cb0ed5fe82fb4516$var$isStale","$cb0ed5fe82fb4516$var$del","now","Date","unshiftNode","maxAge","$cb0ed5fe82fb4516$var$trim","walker","tail","prev","removeNode","$cb0ed5fe82fb4516$var$Entry","$cb0ed5fe82fb4516$var$forEachStep","thisp","lc","stale","dispose","noDisposeOnSet","updateAgeOnGet","reset","mL","allowStale","mA","lengthCalculator","lC","itemCount","rforEach","head","toArray","$9ShIP","dump","dumpLru","peek","del","l","expiresAt","prune","$7306e76b158eea44$var$Yallist","$7306e76b158eea44$var$insert","inserted","$7306e76b158eea44$var$Node","$7306e76b158eea44$var$push","$7306e76b158eea44$var$unshift","Node","create","pushNode","forEachReverse","n","getReverse","mapReverse","initial","acc","reduceReverse","toArrayReverse","sliceReverse","start","deleteCount","nodes","Yallist","iterator","maxSV","rangeObj","min","minSV","minver","setMin","comparator","compver","$20794eeb9cc8f6af$var$ANY","hilo","gtfn","ltefn","ltfn","ecomp","$6rO9c","high","low","$2MRaB","r1","r2","ranges","min1","simplified","$2281fb43d3df183f$var$ANY","$2281fb43d3df183f$var$simpleSubset","sub","dom","eqSet","Set","gtltComp","higher","lower","hasDomLT","hasDomGT","$2281fb43d3df183f$var$higherGT","$2281fb43d3df183f$var$lowerLT","c1","needDomLTPre","needDomGTPre","sawNonNull","OUTER","simpleSub","simpleDom","isSub","$fbdecc6eadfe47c2$var$mm","$6fb832e0570ffd7b$var$tunnel","$6fb832e0570ffd7b$var$HttpCodes","HttpCodes","$6fb832e0570ffd7b$var$Headers","Headers1","$6fb832e0570ffd7b$var$MediaTypes","Headers","MediaTypes","getProxyUrl","serverUrl","proxyUrl","$cEfL5","URL","href","$6fb832e0570ffd7b$var$HttpRedirectCodes","MovedPermanently","ResourceMoved","SeeOther","TemporaryRedirect","PermanentRedirect","$6fb832e0570ffd7b$var$HttpResponseRetryCodes","BadGateway","ServiceUnavailable","GatewayTimeout","$6fb832e0570ffd7b$var$RetryableHttpVerbs","$6fb832e0570ffd7b$var$HttpClientError","setPrototypeOf","HttpClientError","$6fb832e0570ffd7b$var$HttpClientResponse","message1","readBody","HttpClientResponse","isHttps","requestUrl","protocol","$6fb832e0570ffd7b$var$HttpClient","userAgent","handlers","requestOptions","_ignoreSslError","_allowRedirects","_allowRedirectDowngrade","_maxRedirects","_allowRetries","_maxRetries","_keepAlive","_disposed","ignoreSslError","_socketTimeout","socketTimeout","allowRedirects","allowRedirectDowngrade","maxRedirects","keepAlive","allowRetries","maxRetries","additionalHeaders","request","post","put","sendStream","verb","Accept","_getExistingOrDefaultHeader","ApplicationJson","_processResponse","obj","ContentType","headers","parsedUrl","_prepareRequest","maxTries","numTries","requestRaw","Unauthorized","authenticationHandler","canHandleAuthentication","handleAuthentication","redirectsRemaining","redirectUrl","parsedRedirectUrl","hostname","header","_performExponentialBackoff","_agent","requestRawWithCallback","onResult","socket","byteLength","callbackCalled","handleResult","req","httpModule","sock","getAgent","_getAgent","method","usingSsl","$3U0nv$http","defaultPort","host","port","pathname","search","_mergeHeaders","agent","handler","prepareRequest","lowercaseKeys","_default","clientHeader","useProxy","_proxyAgent","maxSockets","globalAgent","agentOptions","proxy","username","password","proxyAuth","tunnelAgent","overHttps","httpsOverHttps","httpsOverHttp","httpOverHttps","httpOverHttp","Agent","rejectUnauthorized","retryNumber","ms","pow","valueOf","statusCode1","NotFound","deserializeDates","dateTimeDeserializer","$935571c89a77cf35$var$checkBypass","reqUrl","reqPort","noProxy","upperReqHosts","upperNoProxyItem","proxyVar","checkBypass","$5ede95876def1093$var$TunnelingAgent","proxyOptions","defaultMaxSockets","requests","sockets","localAddress","$5ede95876def1093$var$toOptions","pending","onSocket","removeSocket","$5ede95876def1093$var$createSecureSocket","createSocket","hostHeader","getHeader","tlsOptions","$5ede95876def1093$var$mergeOptions","servername","secureSocket","$3U0nv$tls","connect","target","overrides","keyLen","$5ede95876def1093$export$cfea88b79fd3041","$5ede95876def1093$export$25126787084ac1d3","$5ede95876def1093$export$228ecc9aa21a9741","$5ede95876def1093$export$f44e217dbcda9c5a","$5ede95876def1093$export$5b6f1b09aafac70","$5ede95876def1093$var$debug","inherits","addRequest","onFree","onCloseOrRemove","onConnect","connectReq","removeAllListeners","placeholder","connectOptions","useChunkedEncodingByDefault","upgrade","nextTick","cause","stack","pos","socket1","$fbdecc6eadfe47c2$var$httpm","$fbdecc6eadfe47c2$var$stream","$fbdecc6eadfe47c2$var$util","buf","offset","rnds","random","rng","$diWfV","$8n3PT","$3U0nv$crypto","randomBytes","$618372782be4d813$var$byteToHex","$618372782be4d813$var$i","$fbdecc6eadfe47c2$var$__importDefault","$b27a19eb94ad77fe$var$os","$b27a19eb94ad77fe$var$__importStar","$b27a19eb94ad77fe$var$events","$b27a19eb94ad77fe$var$child","$b27a19eb94ad77fe$var$path","$b27a19eb94ad77fe$var$io","$b27a19eb94ad77fe$var$ioUtil","$b27a19eb94ad77fe$var$IS_WINDOWS","toolPath1","_debug","_getCommandString","noPrefix","_getSpawnFileName","args1","_getSpawnArgs","_isCmdFile","_windowsQuoteCmdArg","_processLineBuffer","strBuffer","onLine","argline","_endsWith","str","upperToolPath","_uvQuoteCmdArg","cmdSpecialChars","needsQuotes","char","quoteHit","_cloneExecOptions","failOnStdErr","ignoreReturnCode","delay","outStream","errStream","_getSpawnOptions","argv0","$b27a19eb94ad77fe$var$__awaiter","optionsNonNull","state","$b27a19eb94ad77fe$var$ExecState","stdbuffer","stdline","errbuffer","processStderr","errline","processError","processExited","processClosed","CheckComplete","processExitCode","argString","append","escaped","inQuotes","charAt","toolPath2","done","_setResult","$3U0nv$timers","HandleTimeout","$8d6c57753101e07a$var$__importStar","stdoutDecoder","$3U0nv$string_decoder","StringDecoder","stderrDecoder","originalStdoutListener","originalStdErrListener","_b","$e9cce2f397d0b5d7$var$core","$e9cce2f397d0b5d7$var$__importStar","$e9cce2f397d0b5d7$exports","RetryHelper","maxAttempts","minSeconds","maxSeconds","floor","execute","isRetryable","attempt","seconds","getSleepAmount","sleep","$fbdecc6eadfe47c2$var$HTTPError","httpStatusCode","HTTPError","$fbdecc6eadfe47c2$var$IS_WINDOWS","$fbdecc6eadfe47c2$var$IS_MAC","auth","retryHelper","$fbdecc6eadfe47c2$var$__awaiter","authorization","statusMessage","readStream","responseMessageFactory","succeeded","createWriteStream","$fbdecc6eadfe47c2$var$downloadToolAttempt","extract7z","_7zPath","originalCwd","__dirname","powershellPath","versionOutput","isGnuTar","destArg","fileArg","extractXar","xarPath","escapedFile","escapedDest","pwshPath","$fbdecc6eadfe47c2$var$extractZipWin","unzipPath","$fbdecc6eadfe47c2$var$extractZipNix","destPath","itemName","cacheFile","sourceFile","targetFile","destFolder","cachePath","findAllVersions","owner","repo","branch","treeUrl","manifestUrl","tree","versionsRaw","isExplicitVersion","evaluateVersions","Worker","$e68279e3338bc371$var$Worker","$e68279e3338bc371$import$ad18b0afc1a10da7","$e68279e3338bc371$var$worker","$e68279e3338bc371$var$taskIdCounter","$e68279e3338bc371$var$tasks","$e68279e3338bc371$var$taskWorker","transferList","task","sourceError","entries","$e68279e3338bc371$var$recreateWorkerError","postMessage","$e68279e3338bc371$var$hasha","outputEncoding","hash","createHash","update","digest","fromStream","read","fromFile","createReadStream","fromFileSync","$655628f797e4869d$var$TOKEN","specific","$1bd49ae4b85c403c$export$b00950e3fcb58399","$e5ecfb1ae2cd12fa$var$isPathVariable","$e5ecfb1ae2cd12fa$var$setupMSVCDevCmd","$3U0nv$process","$k2PtG","$e5ecfb1ae2cd12fa$var$VSWHERE_PATH","arch_aliases","vcvars","pattern","installationPath","$e5ecfb1ae2cd12fa$var$findWithVswhere","ver","$e5ecfb1ae2cd12fa$var$VERSIONS","ed","$e5ecfb1ae2cd12fa$var$EDITIONS","$e5ecfb1ae2cd12fa$var$PROGRAM_FILES_X86","$e5ecfb1ae2cd12fa$var$findVcvarsall","cmd_output_parts","old_environment","vcvars_output","new_environment","error_messages","old_env_vars","string1","new_value","$e5ecfb1ae2cd12fa$export$1770a487615d61df","$e97becf723056cb8$var$error","$e97becf723056cb8$var$os","$e97becf723056cb8$var$__importStar","$e97becf723056cb8$var$path","$e97becf723056cb8$var$ExitCode","$3tRAC","$48DC3","$lTVmt","$ff1b3ad0e311f75c$var$issueCommand","$ff1b3ad0e311f75c$var$Command","$ff1b3ad0e311f75c$var$os","$ff1b3ad0e311f75c$var$__importStar","$ff1b3ad0e311f75c$var$escapeData","$3036a3108408bd21$var$fs","$3036a3108408bd21$var$__importStar","$3036a3108408bd21$var$os","$6db0685353f69c12$var$homeDirectory","homedir","pathWithTilde","msvc","llvm","ninja","cmake","gcovr","conan","meson","python","gcc","opencppcoverage","choco","brew","ccache","doxygen","cppcheck","argv","catch"],"version":3,"file":"setup_cpp.js.map","sourceRoot":"../"} \ No newline at end of file diff --git a/src/utils/setup/sudo.ts b/src/utils/env/sudo.ts similarity index 70% rename from src/utils/setup/sudo.ts rename to src/utils/env/sudo.ts index 3d63afd6..34ec5134 100644 --- a/src/utils/setup/sudo.ts +++ b/src/utils/env/sudo.ts @@ -1,3 +1,5 @@ +import execa from "execa" + let _issudo: boolean | undefined = undefined export function isRoot(): boolean { @@ -15,3 +17,11 @@ export function mightSudo(command: string) { } return command } + +export function execaSudo(file: string, args: string[]) { + if (isRoot()) { + return execa("sudo", [file, ...args]) + } else { + return execa(file, args) + } +} diff --git a/src/utils/setup/setupAptPack.ts b/src/utils/setup/setupAptPack.ts index 7bd24cf9..c86a3ba1 100644 --- a/src/utils/setup/setupAptPack.ts +++ b/src/utils/setup/setupAptPack.ts @@ -1,7 +1,6 @@ /* eslint-disable require-atomic-updates */ -import execa from "execa" import { InstallationInfo } from "./setupBin" -// import { mightSudo } from "./sudo" +import { execaSudo } from "../env/sudo" let didUpdate: boolean = false @@ -14,22 +13,22 @@ export async function setupAptPack( const apt = "apt-get" // mightSudo if (typeof repository === "string") { - await execa("add-apt-repository", ["--update", "-y", repository]) + await execaSudo("add-apt-repository", ["--update", "-y", repository]) } if (!didUpdate || repository === true) { - await execa(apt, ["update", "-y"]) + await execaSudo(apt, ["update", "-y"]) didUpdate = true } if (version !== undefined && version !== "") { try { - await execa(apt, ["install", "-y", `${name}=${version}`]) + await execaSudo(apt, ["install", "-y", `${name}=${version}`]) } catch { - await execa(apt, ["install", "-y", `${name}-${version}`]) + await execaSudo(apt, ["install", "-y", `${name}-${version}`]) } } else { - await execa(apt, ["install", "-y", name]) + await execaSudo(apt, ["install", "-y", name]) } return { binDir: "/usr/bin/" }