mirror of https://github.com/aminya/setup-cpp
3 lines
218 KiB
JavaScript
3 lines
218 KiB
JavaScript
function e(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}function t(e){return e&&e.__esModule?e.default:e}function r(e,t,n){if("function"==typeof t&&(n=t,t={}),!n){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise(((n,o)=>{r(e,t||{},((e,t)=>{e?o(e):n(t)}))}))}Nt(e,t||{},((e,r)=>{e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,r=!1),n(e,r)}))}function n(e,t){const r=e.options.env||process.env,n=process.cwd(),o=null!=e.options.cwd,i=o&&void 0!==process.chdir&&!process.chdir.disabled;if(i)try{process.chdir(e.options.cwd)}catch(e){}let s;try{s=Rt.sync(e.command,{path:r[Ut({env:r})],pathExt:t?it.delimiter:void 0})}catch(e){}finally{i&&process.chdir(n)}return s&&(s=it.resolve(o?e.options.cwd:"",s)),s}function o(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 Kt&&1===e&&!t.file?o(t.original,"spawn"):null}function s(e,t,r){const n=Pt(e,t,r),o=ft.spawn(n.command,n.args,n.options);return Yt.hookChildProcess(o,n),o}async function a(e,t){if(!e)throw Error("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:r}=t,n=Xr(t);return await new Promise(((t,o)=>{const i=e=>{e&&n.getBufferedLength()<=Yr.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),o(e)};(async()=>{try{await Zr(e,n),t()}catch(e){i(e)}})(),n.on("data",(()=>{n.getBufferedLength()>r&&i(new Jr)}))})),n.getBufferedValue()}function c(e){return e&&e.__esModule?e.default:e}function l(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}function u(e,t,r){if("function"==typeof t&&(r=t,t={}),!r){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise(((r,n)=>{u(e,t||{},((e,t)=>{e?n(e):r(t)}))}))}Yn(e,t||{},((e,n)=>{e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,n=!1),r(e,n)}))}function d(e,t){const r=e.options.env||process.env,n=process.cwd(),o=null!=e.options.cwd,i=o&&void 0!==process.chdir&&!process.chdir.disabled;if(i)try{process.chdir(e.options.cwd)}catch(e){}let s;try{s=qn.sync(e.command,{path:r[oo({env:r})],pathExt:t?it.delimiter:void 0})}catch(e){}finally{i&&process.chdir(n)}return s&&(s=(0,it.resolve)(o?e.options.cwd:"",s)),s}function p(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 h(e,t){return vo&&1===e&&!t.file?p(t.original,"spawn"):null}function f(e,t,r){const n=no(e,t,r),o=(0,ft.spawn)(n.command,n.args,n.options);return go.hookChildProcess(o,n),o}async function m(e,t){if(!e)throw Error("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:r}=t,n=hi(t);return await new Promise(((t,o)=>{const i=e=>{e&&n.getBufferedLength()<=mi.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),o(e)};(async()=>{try{await vi(e,n),t()}catch(e){i(e)}})(),n.on("data",(()=>{n.getBufferedLength()>r&&i(new yi)}))})),n.getBufferedValue()}function g(){return null!==c(qn).sync("sudo",{nothrow:!0})}function v(){return 0===process.getuid?.()||!!process.env.CI}function y(){return v()&&g()}function x(e){return y()?"sudo "+e:e}function w(e,t=[],r={stdio:"inherit",shell:!0}){return y()?c(to).commandSync("sudo "+[e,...t].map((e=>`'${e}'`)).join(" "),r):c(to).sync(e,t,r)}function b(e,t=[],r={stdio:"inherit",shell:!0}){return y()?c(to).command("sudo "+[e,...t].map((e=>`'${e}'`)).join(" "),r):c(to)(e,t,r)}function E(){return"win32"===process.platform?Hi():v()}function S(e){return y()&&"string"==typeof process.env.SUDO_USER?"darwin"===process.platform?(0,it.join)("/Users/",process.env.SUDO_USER,e):(0,it.join)("/home/",process.env.SUDO_USER,e):t(Dn)("~/"+e)}function O(e,r=["-NoProfile","-NoLogo","-NonInteractive"],n={stdio:"inherit"}){return t(Ct)((()=>{if(void 0===Xi){const e=t(Rt).sync("pwsh",{nothrow:!0});null!==e&&(Xi=e);const r=t(Rt).sync("powershell",{nothrow:!0});null!==r&&(Xi=r)}if(void 0===Xi)throw Error("Could not find powershell");return Xi})(),[...r,"-c",e],n)}async function _(e,r,n=!1){const o=n?t(Wi)(r??""):r;try{if("github-actions"===t(Mn)())try{(0,Tt.exportVariable)(e,o)}catch(t){(0,qi.error)(t),await C(e,o)}else await C(e,o)}catch(t){(0,qi.error)(t),(0,Tt.setFailed)(`Failed to export environment variable ${e}=${o}. You should add it manually.`)}}async function T(e){process.env.PATH=`${e}${it.delimiter}${process.env.PATH}`;try{if("github-actions"===t(Mn)())try{(0,Tt.addPath)(e)}catch(t){(0,qi.error)(t),await $(e)}else await $(e)}catch(t){(0,qi.error)(t),(0,Tt.setFailed)(`Failed to add ${e} to the percistent PATH. You should add it manually.`)}}async function C(e,t){const r=t??"";switch(process.platform){case"win32":return await O(`[Environment]::SetEnvironmentVariable('${e}', '${r}', "User")`),void(0,Tt.info)(`${e}='${r}' was set in the environment.`);case"linux":case"darwin":return P(),(0,st.appendFileSync)(Ji,`\nexport ${e}="${r}"\n`),void(0,Tt.info)(`${e}="${r}" was added to "${Ji}`)}process.env[e]=r}async function $(e){switch(process.platform){case"win32":return await O(`$USER_PATH=([Environment]::GetEnvironmentVariable("patha", "User")); [Environment]::SetEnvironmentVariable("patha", "${e};$USER_PATH", "User")`),void(0,Tt.info)(`"${e}" was added to the PATH.`);case"linux":case"darwin":return P(),(0,st.appendFileSync)(Ji,`\nexport PATH="${e}:$PATH"\n`),void(0,Tt.info)(`"${e}" was added to "${Ji}"`);default:return}}function P(){if(es)return;const e="export SOURCE_CPPRC=0";if((0,st.existsSync)(Ji)&&(0,st.readFileSync)(Ji,"utf8").includes(e))return;(0,st.appendFileSync)(Ji,`\n${e}\n`),(0,Tt.info)(`Added ${e} to ${Ji}`);const t=`\n# source .cpprc if SOURCE_CPPRC is not set to 0\nif [[ "$SOURCE_CPPRC" != 0 && -f "${Ji}" ]]; then source "${Ji}"; fi\n`;try{const e=S(".profile");(0,st.appendFileSync)(e,t),(0,Tt.info)(`${t} was added to ${e}`);const r=S(".bashrc");(0,st.appendFileSync)(r,t),(0,Tt.info)(`${t} was added to ${r}`)}catch(e){(0,qi.warning)(`Failed to add ${t} to .profile or .bashrc. You should add it manually: ${e}`)}es=!0}async function R(e,r,n){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeof Qi)return{binDir:Qi};const o=t(On).sync("brew",{nothrow:!0});if(null!==o)return Qi=(0,_n.dirname)(o),{binDir:Qi};const i=t(it).join((0,ot.tmpdir)(),"setup_cpp","brew");await(0,Un.mkdirP)(i),t(Ct).sync("curl",["-LJO","https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh"],{cwd:i});const s=(0,it.join)(i,"install.sh");return"linux"===process.platform&&(0,st.readFileSync)(s,"utf-8").replace("#!/bin/bash",""),t(Ct).sync("/bin/bash",[s],{stdio:"inherit",env:{NONINTERACTIVE:"1"}}),"linux"===process.platform?(Qi="/home/linuxbrew/.linuxbrew/bin/",await T(Qi)):Qi="/usr/local/bin/",{binDir:Qi}}function I(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}function A(){return null!==t(Rt).sync("sudo",{nothrow:!0})}function N(){return 0===process.getuid?.()||!!process.env.CI}function k(){return N()&&A()}function L(e){return k()?"sudo "+e:e}function j(e,r=[],n={stdio:"inherit",shell:!0}){return k()?t(Ct).commandSync("sudo "+[e,...r].map((e=>`'${e}'`)).join(" "),n):t(Ct).sync(e,r,n)}function D(e,r=[],n={stdio:"inherit",shell:!0}){return k()?t(Ct).command("sudo "+[e,...r].map((e=>`'${e}'`)).join(" "),n):t(Ct)(e,r,n)}function U(){return"win32"===process.platform?ns():N()}async function M(e,r,n=[],o=!1){const i=(()=>{let e;return e=null!==t(On).sync("nala",{nothrow:!0})?"nala":"apt-get",e})();if((0,Tt.info)(`Installing ${e} ${r??""} via ${i}`),process.env.DEBIAN_FRONTEND="noninteractive",is&&!o||(F(i),is=!0),ss||(await(async e=>{j(e,["install","--fix-broken","-y","software-properties-common","apt-utils","ca-certificates","gnupg"]),B(["3B4FE6ACC0B21F32","40976EAF437D05B5"],"setup-cpp-ubuntu-archive.gpg"),B(["1E9377A2BA9EF27F"],"launchpad-toolchain.gpg"),"nala"===e&&(await _("LANG","C.UTF-8"),await _("LC_ALL","C.UTF-8"))})(i),ss=!0),Array.isArray(n)&&0!==n.length){for(const e of n)j("add-apt-repository",["--update","-y",e]);F(i)}if(void 0!==r&&""!==r)try{j(i,["install","--fix-broken","-y",`${e}=${r}`])}catch{j(i,["install","--fix-broken","-y",`${e}-${r}`])}else j(i,["install","--fix-broken","-y",e]);return{binDir:"/usr/bin/"}}function F(e){j(e,"nala"!==e?["update","-y"]:["update"])}function G(){j("gpg",["-k"])}function B(e,t,r="keyserver.ubuntu.com"){const n="/etc/apt/trusted.gpg.d/"+t;if(!(0,st.existsSync)(n)){G();for(const t of e)j("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+n,"--keyserver",r,"--recv-keys",t]),j("chmod",["644",n])}return n}async function z(e,t){const r="/etc/apt/trusted.gpg.d/"+e;return(0,st.existsSync)(r)||(G(),await M("curl",void 0),j("bash",["-c",`curl -s ${t} | gpg --no-default-keyring --keyring gnupg-ring:${r} --import`]),j("chmod",["644",r])),r}function H(e,r){return"github-actions"===t(Mn)()?j("update-alternatives",["--install","/usr/bin/"+e,e,r,"40"]):(P(),(0,st.appendFileSync)(Ji,`\nif [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${e} ${e} ${r} 40; fi\n`))}function V(e,t,r){(0,qi.info)(`Installing ${e} ${t??""} via pacman`);const n="pacman";if(as||"yay"===r||(j(n,["-Sy","--noconfirm"]),as=!0),cs||(j(n,["-S","--noconfirm","base-devel"]),cs=!0),void 0!==t&&""!==t)try{j(r??n,["-S","--noconfirm",`${e}=${t}`])}catch{j(r??n,["-S","--noconfirm",`${e}${t}`])}else j(r??n,["-S","--noconfirm",e]);return{binDir:"/usr/bin/"}}function q(e,r,n=[]){return(0,Tt.info)(`Installing ${e} ${r??""} via brew`),us&&null!==t(On).sync("brew",{nothrow:!0})||(R(0,0,process),us=!0),t(Ct).sync("brew",["install",void 0!==r&&""!==r?`${e}@${r}`:e,...n],{stdio:"inherit"}),{binDir:"/usr/local/bin/"}}async function X(e,r,n){if("win32"!==process.platform)return;if("string"==typeof ls)return{binDir:ls};const o=t(On).sync("choco",{nothrow:!0});if(null!==o)return ls=(0,_n.dirname)(o),{binDir:ls};let i="powershell.exe";const s=t(On).sync(process.env.SystemRoot+"\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",{nothrow:!0});null!==s&&(i=s),t(Ct).sync(i,["-NoProfile","-InputFormat","None","-ExecutionPolicy","Bypass","-Command","[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))"],{stdio:"inherit"});const a=process.env.ALLUSERSPROFILE+"\\chocolatey\\bin";await T(a);const c=t(On).sync("choco",{nothrow:!0});return ls=null!==c?(0,_n.dirname)(c):(process.env.ChocolateyInstall??"C:/ProgramData/chocolatey")+"/bin",(0,st.existsSync)(ls)?{binDir:ls}:void 0}async function W(e,r,n=[]){(0,Tt.info)(`Installing ${e} ${r??""} via chocolatey`),fs&&null!==t(On).sync("choco",{nothrow:!0})||(await X(0,0,process),fs=!0);const o=process.env.PATH,i={...process.env};if(delete i.TMP,delete i.TEMP,delete i.Path,i.PATH=o,void 0!==r&&""!==r)t(Ct).sync("choco",["install","-y",e,"--version="+r,...n],{env:i,extendEnv:!1,stdio:"inherit"});else try{t(Ct).sync("choco",["install","-y",e,...n],{env:i,extendEnv:!1,stdio:"inherit"})}catch(t){if(!t.message.includes("exit code 3010"))throw t;(0,qi.notice)(e+" might require a reboot for the completion of the installation.")}const s=(process.env.ChocolateyInstall??"C:/ProgramData/chocolatey")+"/bin";return await T(s),{binDir:s}}function Y(){return"linux"===process.platform&&(void 0===ds&&(ds=null!==t(On).sync("pacman",{nothrow:!0})),ds)}function K(){return"linux"===process.platform&&(void 0===ps&&(ps=null!==t(On).sync("dnf",{nothrow:!0})),ps)}function Z(e,t){(0,qi.info)(`Installing ${e} ${t??""} via dnf`);const r="dnf";if(void 0!==t&&""!==t)try{j(r,["-y","install",`${e}-${t}`])}catch(t){(0,qi.warning)(t+"\nInstalling the default version available via dnf"),j(r,["-y","install",e])}else j(r,["-y","install",e]);return{binDir:"/usr/bin/"}}function J(){if("linux"!==process.platform)return!1;if(void 0===hs){const e="apt-get";hs=null!==t(On).sync(e,{nothrow:!0})}return hs}function Q(e,t,r){switch(process.platform){case"win32":return W("7zip",e);case"darwin":return q("p7zip",e);case"linux":if(Y())return V("p7zip",e);if(K())return Z("p7zip",e),Z("p7zip-plugins",e);if(J())return M("p7zip-full",e);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}}function ee(e){"linux"!==process.platform&&"darwin"!==process.platform||!y()||void 0===process.env.SUDO_USER||w("chown",["-R",process.env.SUDO_USER,e],{cwd:e,stdio:"inherit",shell:!0})}function te(e,t){const r=[];t=t||Ts.arch();const n=Cs.join(ae(),e);if(Os.existsSync(n)){const e=Os.readdirSync(n);for(const o of e)if(ie(o)){const e=Cs.join(n,o,t||"");Os.existsSync(e)&&Os.existsSync(e+".complete")&&r.push(o)}}return r}function re(e){return ws(this,void 0,void 0,(function*(){return e||(e=Cs.join(ce(),As.default())),yield Ss.mkdirP(e),e}))}function ne(e,t,r){return ws(this,void 0,void 0,(function*(){const n=Cs.join(ae(),e,Ps.clean(t)||t,r||"");Es.debug("destination "+n);const o=n+".complete";return yield Ss.rmRF(n),yield Ss.rmRF(o),yield Ss.mkdirP(n),n}))}function oe(e,t,r){const n=Cs.join(ae(),e,Ps.clean(t)||t,r||"");Os.writeFileSync(n+".complete",""),Es.debug("finished caching tool")}function ie(e){const t=Ps.clean(e)||"";Es.debug("isExplicit: "+t);const r=null!=Ps.valid(t);return Es.debug("explicit? "+r),r}function se(e,t){let r="";Es.debug(`evaluating ${e.length} versions`);for(let n=(e=e.sort(((e,t)=>Ps.gt(e,t)?1:-1))).length-1;n>=0;n--){const o=e[n];if(Ps.satisfies(o,t)){r=o;break}}return Es.debug(r?"matched: "+r:"match not found"),r}function ae(){const e=process.env.RUNNER_TOOL_CACHE||"";return pt.ok(e,"Expected RUNNER_TOOL_CACHE to be defined"),e}function ce(){const e=process.env.RUNNER_TEMP||"";return pt.ok(e,"Expected RUNNER_TEMP to be defined"),e}function le(e,t){const r=bt[e];return void 0!==r?r:t}async function ue(e,r){return await t(Ct)(await(async()=>(void 0===zs&&(null===t(On).sync("7z",{nothrow:!0})&&await Q("",0,process),zs="7z"),zs))(),["x",e,"-o"+r,"-y"],{stdio:"inherit"}),ee(r),r}function de(e,t){return ue(e,t)}function pe(e,t){return ue(e,t)}async function he(e,r,n=["--strip-components=0"]){try{await(0,Un.mkdirP)(r)}catch{}try{await t(Ct)("tar",["xf",e,"-C",r,...n],{stdio:"inherit"})}catch(t){"win32"===process.platform&&t.message.includes("Can't create '\\\\?\\C:")&&(0,qi.warning)(`Failed to extract symlink ${e} to ${r}. Ignoring this symlink.`)}return ee(r),r}async function fe(e,r,n,o,i){(0,Tt.info)(`Installing ${e} ${r} ${i} via direct downloading`),process.env.RUNNER_TEMP=process.env.RUNNER_TEMP??(0,ot.tmpdir)(),process.env.RUNNER_TOOL_CACHE=process.env.RUNNER_TOOL_CACHE??(0,_n.join)((0,ot.tmpdir)(),"setup-cpp","hostedtoolcache");const{url:s,binRelativeDir:a,binFileName:c,extractedFolderName:l,extractFunction:u}=await n(r,process.platform,i);if("github-actions"===t(Mn)())try{const t=(0,ms.find)(e,r);if(t){const n=(0,_n.join)(t,l),o=(0,_n.join)(n,a);if((0,st.existsSync)(o)&&(0,st.existsSync)((0,_n.join)(o,c)))return(0,Tt.info)(`${e} ${r} was found in the cache at ${o}.`),await T(o),{installDir:n,binDir:o}}}catch{}const d=(0,_n.join)(o,l),p=(0,_n.join)(d,a),h=(0,_n.join)(p,c);if(!(0,st.existsSync)(p)||!(0,st.existsSync)(h)){(0,Tt.info)(`Download and extract ${e} ${r}`),Hs||("linux"===process.platform&&(Y()?(V("unzip"),V("tar"),V("xz")):K()?(Z("unzip"),Z("tar"),Z("xz")):J()&&(await M("unzip"),await M("tar"),await M("xz-utils"))),Hs=!0);try{const e=await(0,ms.downloadTool)(s);await(u?.(e,o))}catch(t){throw Error(`Failed to download ${e} ${r} ${i} from ${s}: ${t}`)}}return(0,Tt.info)(`Add ${p} to PATH`),await T(p),"github-actions"===t(Mn)()&&"string"==typeof process.env.RUNNER_TOOL_CACHE&&await(0,ms.cacheDir)(o,e,r),{installDir:d,binDir:p}}function me(e,t,r){const n=(e=>"win32"===e?"windows":e)(t),o=(e=>{switch(e){case"x64":return"amd64";case"ia32":case"x86":case"i386":case"x32":return"386";default:return e}})(r),i="win32"===t,s=i?"zip":"tar.gz";return{binRelativeDir:"",binFileName:(0,_n.addExeExt)("task"),extractedFolderName:"",extractFunction:i?pe:he,url:`https://github.com/go-task/task/releases/download/v${e}/task_${n}_${o}.${s}`}}function ge(e,r,n){const o=t(qs)(e)??e;switch(r){case"win32":{const r=t(Vs)(o,"v3.19.6");let i;i=["ia32","x86","i386","x32"].includes(n)?r?"win32-x86":"windows-i386":r?"win64-x64":"windows-x86_64";const s=`cmake-${e}-${i}`;return{binRelativeDir:"bin/",binFileName:(0,_n.addExeExt)("cmake"),extractedFolderName:s,extractFunction:pe,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${s}.zip`}}case"darwin":{const r=`cmake-${e}-${t(Vs)(o,"v3.19.1")?"Darwin-x86_64":"macos-universal"}`;return{binRelativeDir:"CMake.app/Contents/bin/",binFileName:(0,_n.addExeExt)("cmake"),extractedFolderName:r,extractFunction:ms.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${r}.tar.gz`}}case"linux":{const r=t(Vs)(o,"v3.19.8");let i;i=["aarch64"].includes(n)?r?"Linux-aarch64":"linux-aarch64":r?"Linux-x86_64":"linux-x86_64";const s=`cmake-${e}-${i}`;return{binRelativeDir:"bin/",binFileName:(0,_n.addExeExt)("cmake"),extractedFolderName:s,extractFunction:ms.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${s}.tar.gz`}}default:throw Error(`Unsupported platform '${r}'`)}}function ve(e,t,r){return fe("cmake",e,ge,t,r)}function ye(e,t){return new Promise((r=>{try{const n=(0,lt.request)(e,{method:t},(e=>{r((e=>void 0!==e.statusCode&&e.statusCode>=200&&399>=e.statusCode)(e))}));n.on("error",(e=>{r(!1)})),n.end()}catch{r(!1)}}))}function xe(e,t){return Array.from(e).filter((e=>/^\d+\.\d+\.\d+$/.test(e)&&e.startsWith(t))).sort().reverse()}function we(e,t,r=null){return be(t,e)?"linux"===process.platform&&null!==r&&e in Js?((e,t)=>{const r=t[0];return parseInt(Object.keys(Js[e])[0],10)>r?"":Js[e][r]})(e,r):Zs[e]:t??""}function be(e,t){return"true"===e||void 0===e&&t in Zs}async function Ee(e,r,n){if("github-actions"!==t(Mn)())return Se(e,r);try{(0,qi.info)("Installing python in GitHub Actions");const{setupActionsPython:t}=await Ot("6BjA5");return t(e,r,n)}catch(t){return(0,qi.warning)(""+t),Se(e,r)}}async function Se(e,r,n){switch(process.platform){case"win32":{r?await W("python3",e,["--params=/InstallDir:"+r]):await W("python3",e);const n=t(On).sync("python3.exe",{nothrow:!0})??t(On).sync("python.exe",{nothrow:!0})??(0,_n.join)(r,"python.exe"),o=(0,_n.dirname)(n);return await T(o),{installDir:o,binDir:o}}case"darwin":return q("python3",e);case"linux":{let t;if(Y())t=V("python",e),V("python-pip");else if(K())t=Z("python3",e),Z("python3-pip");else{if(!J())throw Error("Unsupported linux distributions");t=await M("python3",e),await M("python3-pip")}return t}default:throw Error("Unsupported platform")}}async function Oe(){let e;if(null!==t(On).sync("python3",{nothrow:!0}))e="python3";else{if(null===t(On).sync("python",{nothrow:!0})||!await(async(e,r,n=Ks)=>{const o=await(async(e,t=Ks)=>{try{const r=await(0,Ns.getExecOutput)(e,["--version"]),n=(r.stdout||r.stderr||"").trim().match(t)?.[1];return n}catch(e){return void console.error(e)}})(e,n);return"string"==typeof o&&"string"==typeof r&&""!==o&&""!==r&&-1!==t(Ws)(o,r)})("python","3.0.0")){if((0,qi.info)("python3 was not found. Installing python"),await Ee(we("python",void 0),"",process.arch),ta)throw Error("Failed to install python");return ta=!0,Oe()}e="python"}return t(pt)("string"==typeof e),"win32"===process.platform?t(Ct).sync(e,["-m","pip","install","-U","pip==21.3.1"],{stdio:"inherit"}):"linux"===process.platform&&(Y()?V("python-pip"):K()?Z("python3-pip"):J()&&await M("python3-pip")),t(Ct).sync(e,["-m","pip","install","-U","wheel"],{stdio:"inherit"}),e}async function _e(e,r){(0,Tt.info)(`Installing ${e} ${r??""} via pip`),void 0===Qs&&(Qs=await Oe()),t(Ct).sync(Qs,["-m","pip","install",void 0!==r&&""!==r?`${e}==${r}`:e],{stdio:"inherit"}),void 0===ea&&(ea=await async function(e){const t=[];"linux"===process.platform?t.push("/home/runner/.local/bin/"):"darwin"===process.platform&&t.push("/usr/local/bin/");const r=(await(0,Ns.getExecOutput)(e+' -c "import sys;print(sys.base_exec_prefix);"')).stdout.trim();return t.push((0,_n.join)(r,"Scripts"),(0,_n.join)(r,"Scripts","bin"),(0,_n.join)(r,"bin")),(e=>[...new Set(e)])(t)}(Qs));const n=((e,r)=>{const n=e.find((e=>(0,st.existsSync)((0,_n.join)(e,(0,_n.addExeExt)(r)))));if(void 0!==n)return n;const o=t(On).sync((0,_n.addExeExt)(r),{nothrow:!0});return null!==o?(0,_n.dirname)(o):e[e.length-1]})(ea,e);return await T(n),{binDir:n}}async function Te(e,t,r){switch(process.platform){case"win32":return await W("graphviz",e),(async()=>{if("win32"===process.platform){const e="C:/Program Files/Graphviz/bin";return await T(e),{binDir:e}}throw Error("Unsupported platform")})();case"darwin":return q("graphviz",e);case"linux":if(Y())return V("graphviz",e);if(K())return Z("graphviz",e);if(J())return M("graphviz",e);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}}function Ce(e,t,r){switch(t){case"linux":{const t="doxygen-"+e;return{binRelativeDir:"bin/",binFileName:(0,_n.addExeExt)("doxygen"),extractedFolderName:t,extractFunction:ms.extractTar,url:`https://www.doxygen.nl/files/${t}.linux.bin.tar.gz`}}case"win32":{const t="doxygen-"+e;return{binRelativeDir:"",binFileName:(0,_n.addExeExt)("doxygen"),extractedFolderName:t,extractFunction:pe,url:`https://www.doxygen.nl/files/${t}.windows.x64.bin.zip`}}default:throw Error(`Unsupported platform '${t}'`)}}async function $e(){if("darwin"===process.platform)try{const e=await(0,Ns.getExecOutput)("xcrun --sdk macosx --show-sdk-path"),t=e.stdout||e.stderr;t?await _("SDKROOT",t.trim()):(0,qi.error)("SDKROOT not set")}catch(e){(0,qi.error)(e)}}function Pe(e,t,r){if("win32"===t){const t=oa[e];if(void 0===t)throw Error(`mingw version ${e} is not supported`);const n="ia32"===r?"i686":"x86_64",o="seh";return{binRelativeDir:"bin/",binFileName:(0,_n.addExeExt)("g++"),extractedFolderName:"mingw64",extractFunction:ue,url:`https://github.com/brechtsanders/winlibs_mingw/releases/download/${t.releaseName}/winlibs-${n}-posix-${o}-gcc-${t.fileSuffix}.7z`}}throw Error(`Unsupported platform '${t}'`)}async function Re(e,r,n){let o;switch(process.platform){case"win32":"arm"!==n&&"arm64"!==n||await W("gcc-arm-embedded",e);try{o=await fe("g++",e,Pe,r,n)}catch(t){(0,qi.info)(`Failed to download g++ binary. ${t}. Falling back to chocolatey.`),o=await(async(e,t)=>{let r;return await W("mingw",e),"x64"===t&&(0,st.existsSync)("C:/tools/mingw64/bin")?(r="C:/tools/mingw64/bin",await T(r)):"ia32"===t&&(0,st.existsSync)("C:/tools/mingw32/bin")?(r="C:/tools/mingw32/bin",await T(r)):(0,st.existsSync)((process.env.ChocolateyInstall??"C:/ProgramData/chocolatey")+"/bin/g++.exe")&&(r=(process.env.ChocolateyInstall??"C:/ProgramData/chocolatey")+"/bin"),void 0!==r?{binDir:r}:void 0})(e,n)}break;case"darwin":o=q("gcc",e);break;case"linux":"x64"===n?Y()?o=V("gcc",e):K()?(o=Z("gcc",e),Z("gcc-c++",e),Z("libstdc++-devel",void 0)):J()&&(await M("gcc",e,["ppa:ubuntu-toolchain-r/test"]),o=await M("g++",e,[])):((0,qi.info)(`Install g++-multilib because gcc for ${n} was requested`),Y()?V("gcc-multilib",e):J()&&await M("gcc-multilib",e,["ppa:ubuntu-toolchain-r/test"]));break;default:throw Error("Unsupported platform for "+n)}if(void 0!==o)return await(async(e,r)=>{const n=[];if("win32"===process.platform)n.push(_("CC",(0,_n.addExeExt)(r+"/gcc")),_("CXX",(0,_n.addExeExt)(r+"/g++")));else{const o=t(ra)(t(qs)(e)??e);5>o?(n.push(_("CC",`${r}/gcc-${e}`),_("CXX",`${r}/g++-${e}`)),J()&&(H("cc",`${r}/gcc-${e}`),H("cxx",`${r}/g++-${e}`),H("gcc",`${r}/gcc-${e}`),H("g++",`${r}/g++-${e}`))):(n.push(_("CC",`${r}/gcc-${o}`),_("CXX",`${r}/g++-${o}`)),J()&&(H("cc",`${r}/gcc-${o}`),H("cxx",`${r}/g++-${o}`),H("gcc",`${r}/gcc-${o}`),H("g++",`${r}/g++-${o}`)))}n.push($e()),"github-actions"===t(Mn)()&&(()=>{const e=(0,_n.join)(na,"gcc_matcher.json");if(!(0,st.existsSync)(e))return(0,qi.warning)("the gcc_matcher.json file does not exist in the same folder as setup_cpp.js");(0,qi.info)("::add-matcher::"+e)})(),await Promise.all(n)})(e,o.binDir),o}function Ie(e,t,r){return`https://github.com/llvm/llvm-project/releases/download/llvmorg-${e}/${t}${e}${r}`}function Ae(e,t,r){return`https://releases.llvm.org/${e}/${t}${e}${r}`}function Ne(e,r){switch(e){case"darwin":return(e=>{if(sa.has(e))return null;const r="clang+llvm-",n=`-x86_64${"9.0.0"===e?"-darwin-apple":"-apple-darwin"}.tar.xz`;return t(Vs)(e,"9.0.1")?Ae(e,r,n):Ie(e,r,n)})(r);case"linux":return(e=>{let r=e;const n=aa.get(r);let o;if(void 0!==n&&(r=n),r.includes("ubuntu")){const e=r.replace(/-ubuntu-.*/,"");if(!ia.has(e))throw Error("Unsupported Ubuntu version: "+e);o=r.replace(e,""),r=xe(ia,e)[0]}else""!==r&&r in ca?o=ca[r]:(o=ca["15.0.2"],(0,qi.warning)(`Falling back to LLVM version 15.0.2 ${o} for the Ubuntu.`));const i="clang+llvm-";let s;return s="5.0.0"===r?`-linux-x86_64${o}.tar.xz`:o.includes("-rhel86")?`-x86_64-unknown-linux-gnu${o}.tar.xz`:`-x86_64-linux-gnu${o}.tar.xz`,t(Vs)(r,"9.0.1")?Ae(r,i,s):Ie(r,i,s)})(r);case"win32":return(async e=>{if(la.has(e))return null;const r="LLVM-",n=t(Vs)(e,"3.7.0")?"-win32.exe":"-win64.exe",o=t(Vs)(e,"9.0.1");let i,s=!1;return o&&(i=Ae(e,r,n),await Xs(i)||(s=!0)),!s&&o||(i=Ie(e,r,n)),i})(r);default:return null}}async function ke(e,t,r){const[n,o]=await(async(e,t,r,n)=>{if("linux"===t&&r.includes("ubuntu")){const e=await n(t,r);if(null!==e&&await Xs(e))return[r,e]}if(!e.has(r))throw Error(`Unsupported target! (platform='${t}', version='${r}')`);const o=[];for(const i of xe(e,r)){const e=await n(t,i);if(null!==e){if(await Xs(e))return[i,e];o.push(e)}}throw Error(`Unsupported target! (platform='${t}', version='${r}'). The offline urls tested:\n${o.join("\n")}`)})(ia,t,e,Ne);return(0,qi.info)("specific llvm version: "+n),{url:o,extractedFolderName:"",binRelativeDir:"bin",binFileName:(0,_n.addExeExt)("clang"),extractFunction:"win32"===t?de:(e,t)=>he(e,t,["--strip-components=1"])}}async function Le(){try{if(J()){null===t(On).sync("lsb_release",{nothrow:!0})&&await M("lsb-release");const e=await(0,ua.getUbuntuVersion)();return 0===e.length?((0,qi.warning)("Failed to get the ubuntu major version."),null):e}return null}catch(e){return(0,qi.warning)(""+e),null}}async function je(e,r,n){const o=await De(e,r,n);return await(async(e,r)=>{const n=(e=>{if(null===t(Ys)(e))try{const r=t(qs)(e);if(null!==r)return(0,qi.info)(`Coerced version '${e}' to '${r}'`),r.version}catch(e){}return e})(r),o=(0,_n.join)(e,"lib"),i=process.env.LD_LIBRARY_PATH??"",s=process.env.DYLD_LIBRARY_PATH??"",a=[_("LLVM_PATH",e),_("LD_LIBRARY_PATH",`${o}${it.delimiter}${i}`),_("DYLD_LIBRARY_PATH",`${o}${it.delimiter}${s}`),_("LDFLAGS",`-L"${e}/lib"`),_("CPPFLAGS",`-I"${e}/include"`),_("CC",(0,_n.addExeExt)(e+"/bin/clang")),_("CXX",(0,_n.addExeExt)(e+"/bin/clang++")),_("LIBRARY_PATH",e+"/lib"),$e()];if("win32"!==process.platform){const r=t(ra)(n);(0,st.existsSync)(`${e}/lib/clang/${n}/include`)?a.push(_("CPATH",`${e}/lib/clang/${n}/include`)):(0,st.existsSync)(`${e}/lib/clang/${r}/include`)&&a.push(_("CPATH",`${e}/lib/clang/${r}/include`))}J()&&(H("cc",e+"/bin/clang"),H("cxx",e+"/bin/clang++"),H("clang",e+"/bin/clang"),H("clang++",e+"/bin/clang++"),H("lld",e+"/bin/lld"),H("ld.lld",e+"/bin/ld.lld"),H("llvm-ar",e+"/bin/llvm-ar")),"github-actions"===t(Mn)()&&Me(),await Promise.all(a)})(o.installDir??r,e),o}async function De(e,t,r){const n=fe("llvm",e,ke,t,r);let o;pa?o=Promise.resolve():(o=(async e=>{if("linux"===process.platform){const t=await Le();await Re(we("gcc",void 0,t),"",e),J()&&await M("libtinfo-dev")}})(r),pa=!0);const[i,s]=await Promise.all([n,o]);return i}function Ue(e,r,n){return"github-actions"===t(Mn)()&&Me(),De(e,r,n)}function Me(){const e=(0,_n.join)(da,"llvm_matcher.json");if(!(0,st.existsSync)(e))return(0,qi.warning)("the llvm_matcher.json file does not exist in the same folder as setup_cpp.js");(0,qi.info)("::add-matcher::"+e)}function Fe(e,t,r){const n=new Sa(e,t,r);process.stdout.write(""+n+ba.EOL)}function Ge(e){xa.issue("error",e instanceof Error?""+e:e)}function Be(e){xa.issue("group",e)}function ze(){xa.issue("endgroup")}function He(e){return Object.values(ja).includes(e)?e:e in ja?ja[e]:e}function Ve(e){if(Object.keys(ja).includes(e))return e;for(const[t,r]of Object.entries(ja))if(r===e)return t;return e}function qe(e){const t=He(e);let r;if(t){const e=t.split(".")[0]+".9";r=`-version "${t},${e}"`}else r="-latest";let n=((e,t)=>{try{return(""+ft.execSync(`vswhere -products * ${t} -prerelease -property installationPath`)).trim()+"\\VC\\Auxiliary\\Build\\vcvarsall.bat"}catch(e){ga.warning("vswhere failed: "+e)}return null})(0,r);if(n&&st.existsSync(n))return ga.info("Found with vswhere: "+n),n;ga.info("Not found with vswhere");const o=e?[Ve(e)]:La;for(const e of Na)for(const t of o)for(const r of ka)if(n=`${e}\\Microsoft Visual Studio\\${t}\\${r}\\VC\\Auxiliary\\Build\\vcvarsall.bat`,ga.info("Trying standard location: "+n),st.existsSync(n))return ga.info("Found standard location: "+n),n;if(ga.info("Not found in standard locations"),n=Aa+"\\Microsoft Visual C++ Build Tools\\vcbuildtools.bat",st.existsSync(n))return ga.info("Found VS 2015: "+n),n;throw ga.info("Not found in VS 2015 location: "+n),Error("Microsoft Visual Studio not found")}async function Xe(e,t,r,n,o,i,s){void 0!==t&&(0,st.existsSync)(t)&&((0,qi.info)(`Adding ${t} to PATH`),await _("VCTargetsPath",t)),ma((e=>{switch(e){case"x32":case"32":case"ia32":return"x86";case"64":return"x64";default:return e}})(r),o,n,i,s,e)}async function We(e,r,n,o,i,s){if("win32"!==process.platform)return;const a=ha(e);(0,qi.info)(`Checking if MSVC ${a} is already installed`);let c,l,u=!1;try{const e=fa(a);u=!0,(0,qi.info)("Found the pre-installed version of MSVC at "+e)}catch{}if(!u)try{"14.0"===a?(c="14.0",await W("visualcpp-build-tools","14.0.25420.1",["--ignore-dependencies"]),l="C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140"):"15.0"===a?(c="14.16",await W("visualstudio2017buildtools","15.9.41.0",[]),l="C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16"):"16.0"===a?(c="14.29",await W("visualstudio2019buildtools","16.11.7.0",[]),l="C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133"):"17.0"===a?(c=void 0,await W("visualstudio2022buildtools","117.0.5.0",[]),l=void 0):(0,qi.error)(`The given MSVC versions ${e} is not supported yet.`)}catch(e){(0,qi.error)(e)}await Xe(a,l,n,c,o,i,s),"github-actions"===t(Mn)()&&(()=>{const e=(0,_n.join)(Ma,"msvc_matcher.json");if(!(0,st.existsSync)(e))return(0,qi.warning)("the msvc_matcher.json file does not exist in the same folder as setup_cpp.js");(0,qi.info)("::add-matcher::"+e)})()}function Ye(e,t,r){const n=(e=>{switch(e){case"win32":return"win";case"darwin":return"mac";case"linux":return"linux";default:throw Error(`Unsupported platform '${e}'`)}})(t);return{binRelativeDir:"",binFileName:(0,_n.addExeExt)("ninja"),extractedFolderName:"",extractFunction:pe,url:`https://github.com/ninja-build/ninja/releases/download/v${e}/ninja-${n}.zip`}}function Ke(e,t,r){return fe("ninja",e,Ye,t,r)}function Ze(e){return null==e?[]:Array.isArray(e)?e:[e]}function Je(e,t,r,n){var o,i=e[t],s=~n.string.indexOf(t)?null==r||!0===r?"":r+"":"boolean"==typeof r?r:~n.boolean.indexOf(t)?"false"!==r&&("true"===r||(e._.push(0*(o=+r)==0?o:r),!!r)):0*(o=+r)==0?o:r;e[t]=null==i?s:Array.isArray(i)?i.concat(s):[i,s]}function Qe(e){return{url:`https://github.com/SimonKagstrom/kcov/releases/download/${e}/kcov-amd64.tar.gz`,extractedFolderName:"",binRelativeDir:"usr/local/bin",binFileName:(0,_n.addExeExt)("kcov"),extractFunction:he}}function et(e){return{url:`https://github.com/SimonKagstrom/kcov/archive/refs/tags/${e}.tar.gz`,extractedFolderName:"",binRelativeDir:"build/src",binFileName:(0,_n.addExeExt)("kcov"),extractFunction:tt}}async function tt(e,r){const n=await he(e,r,["--strip-components=1"]),o=await(async()=>{let e=t(On).sync("cmake",{nothrow:!0});if(null===e){const{binDir:t}=await ve(we("cmake",void 0),(0,_n.join)(S(""),"cmake"),"");e=(0,_n.join)(t,"cmake")}return null===t(On).sync("ninja",{nothrow:!0})&&await Ke(we("ninja",void 0),(0,_n.join)(S(""),"ninja"),""),e})();"linux"===process.platform&&(Y()?(V("libdwarf"),V("libcurl-openssl")):K()?(Z("libdwarf-devel"),Z("libcurl-devel")):J()&&(await M("libdw-dev"),await M("libcurl4-openssl-dev")));const i=(0,_n.join)(n,"build");return await t(Ct)(o,["-S",n,"-B",i,"-DCMAKE_BUILD_TYPE=Release","-G","Ninja"],{cwd:n,stdio:"inherit"}),await t(Ct)(o,["--build",i,"--config","Release"],{cwd:n,stdio:"inherit"}),n}function rt(e){const t=(0,Tt.getInput)(e.toLowerCase());if("false"!==t&&""!==t)return t}function nt(e,t){let r=`✅ ${e} was installed successfully:`;return void 0===t||("installDir"in t&&(r+="\n- The installation directory is "+t.installDir),""!==t.binDir&&(r+="\n- The binary directory is "+t.binDir)),r}var ot=require("os"),it=require("path"),st=require("fs"),at=require("crypto"),ct=require("http"),lt=require("https");require("net");var ut=require("tls"),dt=require("events"),pt=require("assert"),ht=require("util"),ft=require("child_process"),mt=require("string_decoder"),gt=require("timers"),vt=require("buffer"),yt=require("stream"),xt=require("process"),wt=require("url"),bt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},Et={},St={},Ot=bt.parcelRequire810d;null==Ot&&((Ot=e=>{if(e in Et)return Et[e].exports;if(e in St){var t=St[e];delete St[e];var r={id:e,exports:{}};return Et[e]=r,t.call(r.exports,r,r.exports),r.exports}var n=Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}).register=(e,t)=>{St[e]=t},bt.parcelRequire810d=Ot),Ot.register("lXEOe",(function(e,t){"use strict";function r(e,t){const r=process.env["INPUT_"+e.replace(/ /g,"_").toUpperCase()]||"";if(t&&t.required&&!r)throw Error("Input required and not supplied: "+e);return t&&!1===t.trimWhitespace?r:r.trim()}function n(e,t={}){u.issueCommand("error",p.toCommandProperties(t),e instanceof Error?""+e:e)}function o(e){u.issue("group",e)}function i(){u.issue("endgroup")}var s=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),a=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),c=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&s(t,e,r);return a(t,e),t}),l=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,i)=>{function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getIDToken=e.exports.getState=e.exports.saveState=e.exports.group=e.exports.endGroup=e.exports.startGroup=e.exports.info=e.exports.notice=e.exports.warning=e.exports.error=e.exports.debug=e.exports.isDebug=e.exports.setFailed=e.exports.setCommandEcho=e.exports.setOutput=e.exports.getBooleanInput=e.exports.getMultilineInput=e.exports.getInput=e.exports.addPath=e.exports.setSecret=e.exports.exportVariable=e.exports.ExitCode=void 0;var u=Ot("kAYz9"),d=Ot("a16eX"),p=Ot("1y8ch");const h=c(ot),f=c(it);var m,g,v=Ot("dyb8L");(g=m=e.exports.ExitCode||(e.exports.ExitCode={}))[g.Success=0]="Success",g[g.Failure=1]="Failure",e.exports.exportVariable=(e,t)=>{const r=p.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV)return d.issueFileCommand("ENV",d.prepareKeyValueMessage(e,t));u.issueCommand("set-env",{name:e},r)},e.exports.setSecret=e=>{u.issueCommand("add-mask",{},e)},e.exports.addPath=e=>{process.env.GITHUB_PATH?d.issueFileCommand("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)=>{const n=r(e,t).split("\n").filter((e=>""!==e));return t&&!1===t.trimWhitespace?n:n.map((e=>e.trim()))},e.exports.getBooleanInput=(e,t)=>{const n=r(e,t);if(["true","True","TRUE"].includes(n))return!0;if(["false","False","FALSE"].includes(n))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\nSupport boolean input list: \`true | True | TRUE | false | False | FALSE\``)},e.exports.setOutput=(e,t)=>{if(process.env.GITHUB_OUTPUT)return d.issueFileCommand("OUTPUT",d.prepareKeyValueMessage(e,t));process.stdout.write(h.EOL),u.issueCommand("set-output",{name:e},p.toCommandValue(t))},e.exports.setCommandEcho=e=>{u.issue("echo",e?"on":"off")},e.exports.setFailed=e=>{process.exitCode=m.Failure,n(e)},e.exports.isDebug=()=>"1"===process.env.RUNNER_DEBUG,e.exports.debug=e=>{u.issueCommand("debug",{},e)},e.exports.error=n,e.exports.warning=(e,t={})=>{u.issueCommand("warning",p.toCommandProperties(t),e instanceof Error?""+e:e)},e.exports.notice=(e,t={})=>{u.issueCommand("notice",p.toCommandProperties(t),e instanceof Error?""+e:e)},e.exports.info=e=>{process.stdout.write(e+h.EOL)},e.exports.startGroup=o,e.exports.endGroup=i,e.exports.group=function(e,t){return l(this,void 0,void 0,(function*(){let r;o(e);try{r=yield t()}finally{i()}return r}))},e.exports.saveState=(e,t)=>{if(process.env.GITHUB_STATE)return d.issueFileCommand("STATE",d.prepareKeyValueMessage(e,t));u.issueCommand("save-state",{name:e},p.toCommandValue(t))},e.exports.getState=e=>process.env["STATE_"+e]||"",e.exports.getIDToken=function(e){return l(this,void 0,void 0,(function*(){return yield v.OidcClient.getIDToken(e)}))};var y=Ot("kCeDZ");Object.defineProperty(e.exports,"summary",{enumerable:!0,get(){return y.summary}}),y=Ot("kCeDZ"),Object.defineProperty(e.exports,"markdownSummary",{enumerable:!0,get(){return y.markdownSummary}});var x=Ot("5FsRV");Object.defineProperty(e.exports,"toPosixPath",{enumerable:!0,get(){return x.toPosixPath}}),Object.defineProperty(e.exports,"toWin32Path",{enumerable:!0,get(){return x.toWin32Path}}),Object.defineProperty(e.exports,"toPlatformPath",{enumerable:!0,get(){return x.toPlatformPath}})})),Ot.register("kAYz9",(function(e,t){"use strict";function r(e,t,r){const n=new c(e,t,r);process.stdout.write(""+n+s.EOL)}var n=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),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 o(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issue=e.exports.issueCommand=void 0;const s=i(ot);var a=Ot("1y8ch");e.exports.issueCommand=r,e.exports.issue=(e,t="")=>{r(e,{},t)};class c{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r}toString(){let e="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(const n in this.properties)if(this.properties.hasOwnProperty(n)){const o=this.properties[n];o&&(r?r=!1:e+=",",e+=`${n}=${t=o,a.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}var t;return e+="::"+(e=>a.toCommandValue(this.message).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A"))(),e}}})),Ot.register("1y8ch",((e,t)=>{"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toCommandProperties=e.exports.toCommandValue=void 0,e.exports.toCommandValue=e=>null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e),e.exports.toCommandProperties=e=>Object.keys(e).length?{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}:{}})),Ot.register("a16eX",((e,t)=>{"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),o=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&r(t,e,o);return n(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.prepareKeyValueMessage=e.exports.issueFileCommand=void 0;const i=o(st),s=o(ot);var a=Ot("5KhFO"),c=Ot("1y8ch");e.exports.issueFileCommand=(e,t)=>{const r=process.env["GITHUB_"+e];if(!r)throw Error("Unable to find environment variable for file command "+e);if(!i.existsSync(r))throw Error("Missing file at path: "+r);i.appendFileSync(r,`${c.toCommandValue(t)}${s.EOL}`,{encoding:"utf8"})},e.exports.prepareKeyValueMessage=(e,t)=>{const r="ghadelimiter_"+a.default(),n=c.toCommandValue(t);if(e.includes(r))throw Error(`Unexpected input: name should not contain the delimiter "${r}"`);if(n.includes(r))throw Error(`Unexpected input: value should not contain the delimiter "${r}"`);return`${e}<<${r}${s.EOL}${n}${s.EOL}${r}`}})),Ot.register("5KhFO",((t,r)=>{e(t.exports,"default",(()=>i));var n=Ot("dXRdC"),o=Ot("dvQWo"),i=(e,t,r)=>{const i=(e=e||{}).random||(e.rng||n.default)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){r=r||0;for(let e=0;16>e;++e)t[r+e]=i[e];return t}return(0,o.default)(i)}})),Ot.register("dXRdC",((r,n)=>{function o(){return s>i.length-16&&(t(at).randomFillSync(i),s=0),i.slice(s,s+=16)}e(r.exports,"default",(()=>o));const i=new Uint8Array(256);let s=i.length})),Ot.register("dvQWo",((t,r)=>{e(t.exports,"default",(()=>i));var n=Ot("bDRem");const o=[];for(let e=0;256>e;++e)o.push((e+256).toString(16).substr(1));var i=(e,t=0)=>{const r=(o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]).toLowerCase();if(!(0,n.default)(r))throw TypeError("Stringified UUID is invalid");return r}})),Ot.register("bDRem",((t,r)=>{e(t.exports,"default",(()=>o));var n=Ot("2cHNJ"),o=e=>"string"==typeof e&&n.default.test(e)})),Ot.register("2cHNJ",((t,r)=>{e(t.exports,"default",(()=>n));var n=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i})),Ot.register("dyb8L",(function(e,t){"use strict";var r=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,i)=>{function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.OidcClient=void 0;var n=Ot("1mHcB"),o=Ot("itiEo"),i=Ot("lXEOe");class s{static createHttpClient(e=!0,t=10){const r={allowRetries:e,maxRetries:t};return new n.HttpClient("actions/oidc-client",[new o.BearerCredentialHandler(s.getRequestToken())],r)}static getRequestToken(){const e=process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable");return e}static getIDTokenUrl(){const e=process.env.ACTIONS_ID_TOKEN_REQUEST_URL;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable");return e}static getCall(e){var t;return r(this,void 0,void 0,(function*(){const r=s.createHttpClient(),n=yield r.getJson(e).catch((e=>{throw Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)})),o=null===(t=n.result)||void 0===t?void 0:t.value;if(!o)throw Error("Response json body do not have ID Token field");return o}))}static getIDToken(e){return r(this,void 0,void 0,(function*(){try{let t=s.getIDTokenUrl();e&&(t=`${t}&audience=${encodeURIComponent(e)}`),i.debug("ID token url is "+t);const r=yield s.getCall(t);return i.setSecret(r),r}catch(e){throw Error("Error message: "+e.message)}}))}}e.exports.OidcClient=s})),Ot.register("1mHcB",(function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),o=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&r(t,e,o);return n(t,e),t}),i=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,i)=>{function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.HttpClient=e.exports.isHttps=e.exports.HttpClientResponse=e.exports.HttpClientError=e.exports.getProxyUrl=e.exports.MediaTypes=e.exports.Headers=e.exports.HttpCodes=void 0;const s=o(ct),a=o(lt),c=o(Ot("9YcLS")),l=o(Ot("jlAXB"));var u,d,p,h,f;(d=u=e.exports.HttpCodes||(e.exports.HttpCodes={}))[d.OK=200]="OK",d[d.MultipleChoices=300]="MultipleChoices",d[d.MovedPermanently=301]="MovedPermanently",d[d.ResourceMoved=302]="ResourceMoved",d[d.SeeOther=303]="SeeOther",d[d.NotModified=304]="NotModified",d[d.UseProxy=305]="UseProxy",d[d.SwitchProxy=306]="SwitchProxy",d[d.TemporaryRedirect=307]="TemporaryRedirect",d[d.PermanentRedirect=308]="PermanentRedirect",d[d.BadRequest=400]="BadRequest",d[d.Unauthorized=401]="Unauthorized",d[d.PaymentRequired=402]="PaymentRequired",d[d.Forbidden=403]="Forbidden",d[d.NotFound=404]="NotFound",d[d.MethodNotAllowed=405]="MethodNotAllowed",d[d.NotAcceptable=406]="NotAcceptable",d[d.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",d[d.RequestTimeout=408]="RequestTimeout",d[d.Conflict=409]="Conflict",d[d.Gone=410]="Gone",d[d.TooManyRequests=429]="TooManyRequests",d[d.InternalServerError=500]="InternalServerError",d[d.NotImplemented=501]="NotImplemented",d[d.BadGateway=502]="BadGateway",d[d.ServiceUnavailable=503]="ServiceUnavailable",d[d.GatewayTimeout=504]="GatewayTimeout",(h=p=e.exports.Headers||(e.exports.Headers={})).Accept="accept",h.ContentType="content-type",(f=e.exports.MediaTypes||(e.exports.MediaTypes={})).ApplicationJson="application/json",e.exports.getProxyUrl=e=>{const t=c.getProxyUrl(new URL(e));return t?t.href:""};const m=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect],g=[u.BadGateway,u.ServiceUnavailable,u.GatewayTimeout],v=["OPTIONS","GET","DELETE","HEAD"];class y extends Error{constructor(e,t){super(e),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,y.prototype)}}e.exports.HttpClientError=y;class x{constructor(e){this.message=e}readBody(){return i(this,void 0,void 0,(function*(){return new Promise((e=>i(this,void 0,void 0,(function*(){let t=Buffer.alloc(0);this.message.on("data",(e=>{t=Buffer.concat([t,e])})),this.message.on("end",(()=>{e(""+t)}))}))))}))}}e.exports.HttpClientResponse=x,e.exports.isHttps=e=>"https:"===new URL(e).protocol,e.exports.HttpClient=class{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 i(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return i(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return i(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,r){return i(this,void 0,void 0,(function*(){return this.request("POST",e,t,r||{})}))}patch(e,t,r){return i(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,r||{})}))}put(e,t,r){return i(this,void 0,void 0,(function*(){return this.request("PUT",e,t,r||{})}))}head(e,t){return i(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,r,n){return i(this,void 0,void 0,(function*(){return this.request(e,t,r,n)}))}getJson(e,t={}){return i(this,void 0,void 0,(function*(){t[p.Accept]=this._getExistingOrDefaultHeader(t,p.Accept,f.ApplicationJson);const r=yield this.get(e,t);return this._processResponse(r,this.requestOptions)}))}postJson(e,t,r={}){return i(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,f.ApplicationJson),r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,f.ApplicationJson);const o=yield this.post(e,n,r);return this._processResponse(o,this.requestOptions)}))}putJson(e,t,r={}){return i(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,f.ApplicationJson),r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,f.ApplicationJson);const o=yield this.put(e,n,r);return this._processResponse(o,this.requestOptions)}))}patchJson(e,t,r={}){return i(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,f.ApplicationJson),r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,f.ApplicationJson);const o=yield this.patch(e,n,r);return this._processResponse(o,this.requestOptions)}))}request(e,t,r,n){return i(this,void 0,void 0,(function*(){if(this._disposed)throw Error("Client has already been disposed.");const o=new URL(t);let i=this._prepareRequest(e,o,n);const s=this._allowRetries&&v.includes(e)?this._maxRetries+1:1;let a,c=0;do{if(a=yield this.requestRaw(i,r),a&&a.message&&a.message.statusCode===u.Unauthorized){let e;for(const t of this.handlers)if(t.canHandleAuthentication(a)){e=t;break}return e?e.handleAuthentication(this,i,r):a}let t=this._maxRedirects;for(;a.message.statusCode&&m.includes(a.message.statusCode)&&this._allowRedirects&&t>0;){const s=a.message.headers.location;if(!s)break;const c=new URL(s);if("https:"===o.protocol&&o.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(yield a.readBody(),c.hostname!==o.hostname)for(const e in n)"authorization"===e.toLowerCase()&&delete n[e];i=this._prepareRequest(e,c,n),a=yield this.requestRaw(i,r),t--}if(!a.message.statusCode||!g.includes(a.message.statusCode))return a;c+=1,s>c&&(yield a.readBody(),yield this._performExponentialBackoff(c))}while(s>c);return a}))}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}requestRaw(e,t){return i(this,void 0,void 0,(function*(){return new Promise(((r,n)=>{this.requestRawWithCallback(e,t,((e,t)=>{e?n(e):t?r(t):n(Error("Unknown error"))}))}))}))}requestRawWithCallback(e,t,r){function n(e,t){o||(o=!0,r(e,t))}"string"==typeof t&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let o=!1;const i=e.httpModule.request(e.options,(e=>{n(void 0,new x(e))}));let s;i.on("socket",(e=>{s=e})),i.setTimeout(this._socketTimeout||18e4,(()=>{s&&s.end(),n(Error("Request timeout: "+e.options.path))})),i.on("error",(e=>{n(e)})),t&&"string"==typeof t&&i.write(t,"utf8"),t&&"string"!=typeof t?(t.on("close",(()=>{i.end()})),t.pipe(i)):i.end()}getAgent(e){const t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,r){const n={};n.parsedUrl=t;const o="https:"===n.parsedUrl.protocol;n.httpModule=o?a:s;const i=o?443:80;if(n.options={},n.options.host=n.parsedUrl.hostname,n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):i,n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||""),n.options.method=e,n.options.headers=this._mergeHeaders(r),null!=this.userAgent&&(n.options.headers["user-agent"]=this.userAgent),n.options.agent=this._getAgent(n.parsedUrl),this.handlers)for(const e of this.handlers)e.prepareRequest(n.options);return n}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},w(this.requestOptions.headers),w(e||{})):w(e||{})}_getExistingOrDefaultHeader(e,t,r){let n;return this.requestOptions&&this.requestOptions.headers&&(n=w(this.requestOptions.headers)[t]),e[t]||n||r}_getAgent(e){let t;const r=c.getProxyUrl(e),n=r&&r.hostname;if(this._keepAlive&&n&&(t=this._proxyAgent),this._keepAlive&&!n&&(t=this._agent),t)return t;const o="https:"===e.protocol;let i=100;if(this.requestOptions&&(i=this.requestOptions.maxSockets||s.globalAgent.maxSockets),r&&r.hostname){const e={maxSockets:i,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(r.username||r.password)&&{proxyAuth:`${r.username}:${r.password}`}),{host:r.hostname,port:r.port})};let n;const s="https:"===r.protocol;n=o?s?l.httpsOverHttps:l.httpsOverHttp:s?l.httpOverHttps:l.httpOverHttp,t=n(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:i};t=o?new a.Agent(e):new s.Agent(e),this._agent=t}return t||(t=o?a.globalAgent:s.globalAgent),o&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_performExponentialBackoff(e){return i(this,void 0,void 0,(function*(){const t=5*Math.pow(2,e=Math.min(10,e));return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return i(this,void 0,void 0,(function*(){return new Promise(((r,n)=>i(this,void 0,void 0,(function*(){const o=e.message.statusCode||0,i={statusCode:o,result:null,headers:{}};let s,a;o===u.NotFound&&r(i);try{a=yield e.readBody(),a&&a.length>0&&(s=t&&t.deserializeDates?JSON.parse(a,((e,t)=>{if("string"==typeof t){const e=new Date(t);if(!isNaN(e.valueOf()))return e}return t})):JSON.parse(a),i.result=s),i.headers=e.message.headers}catch(e){}if(o>299){let e;e=s&&s.message?s.message:a&&a.length>0?a:`Failed request: (${o})`;const t=new y(e,o);t.result=i.result,n(t)}else r(i)}))))}))}};const w=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{})})),Ot.register("9YcLS",((e,t)=>{"use strict";function r(e){if(!e.hostname)return!1;const t=process.env.no_proxy||process.env.NO_PROXY||"";if(!t)return!1;let r;e.port?r=+e.port:"http:"===e.protocol?r=80:"https:"===e.protocol&&(r=443);const n=[e.hostname.toUpperCase()];"number"==typeof r&&n.push(`${n[0]}:${r}`);for(const e of t.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e)))if(n.some((t=>t===e)))return!0;return!1}Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.checkBypass=e.exports.getProxyUrl=void 0,e.exports.getProxyUrl=e=>{const t="https:"===e.protocol;if(r(e))return;const n=t?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;return n?new URL(n):void 0},e.exports.checkBypass=r})),Ot.register("jlAXB",((e,t)=>{e.exports=Ot("1216J")})),Ot.register("1216J",(function(t,r){function n(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||ct.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",((e,r,n,o)=>{for(var s=i(r,n,o),a=0,c=t.requests.length;c>a;++a){var l=t.requests[a];if(l.host===s.host&&l.port===s.port)return t.requests.splice(a,1),void l.request.onSocket(e)}e.destroy(),t.removeSocket(e)}))}function o(e,t){var r=this;n.prototype.createSocket.call(r,e,(n=>{var o=e.request.getHeader("host"),i=s({},r.options,{socket:n,servername:o?o.replace(/:.*$/,""):e.host}),a=ut.connect(0,i);r.sockets[r.sockets.indexOf(n)]=a,t(a)}))}function i(e,t,r){return"string"==typeof e?{host:e,port:t,localAddress:r}:e}function s(e){for(var t=1,r=arguments.length;r>t;++t){var n=arguments[t];if("object"==typeof n)for(var o=Object.keys(n),i=0,s=o.length;s>i;++i){var a=o[i];void 0!==n[a]&&(e[a]=n[a])}}return e}var a,c,l,u,d,p;e(t.exports,"httpOverHttp",(()=>a),(e=>a=e)),e(t.exports,"httpsOverHttp",(()=>c),(e=>c=e)),e(t.exports,"httpOverHttps",(()=>l),(e=>l=e)),e(t.exports,"httpsOverHttps",(()=>u),(e=>u=e)),e(t.exports,"debug",(()=>d),(e=>d=e)),a=e=>{var t=new n(e);return t.request=ct.request,t},c=e=>{var t=new n(e);return t.request=ct.request,t.createSocket=o,t.defaultPort=443,t},l=e=>{var t=new n(e);return t.request=lt.request,t},u=e=>{var t=new n(e);return t.request=lt.request,t.createSocket=o,t.defaultPort=443,t},ht.inherits(n,dt.EventEmitter),n.prototype.addRequest=function(e,t,r,n){var o=this,a=s({request:e},o.options,i(t,r,n));this.maxSockets>o.sockets.length?o.createSocket(a,(t=>{function r(){o.emit("free",t,a)}function n(e){o.removeSocket(t),t.removeListener("free",r),t.removeListener("close",n),t.removeListener("agentRemove",n)}t.on("free",r),t.on("close",n),t.on("agentRemove",n),e.onSocket(t)})):o.requests.push(a)},n.prototype.createSocket=function(e,t){function r(r,i,s){var c;return a.removeAllListeners(),i.removeAllListeners(),200!==r.statusCode?(p("tunneling socket could not be established, statusCode=%d",r.statusCode),i.destroy(),(c=Error("tunneling socket could not be established, statusCode="+r.statusCode)).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(o)):s.length>0?(p("got illegal response body from proxy"),i.destroy(),(c=Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(o)):(p("tunneling connection has established"),n.sockets[n.sockets.indexOf(o)]=i,t(i))}var n=this,o={};n.sockets.push(o);var i=s({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),p("making CONNECT request");var a=n.request(i);a.useChunkedEncodingByDefault=!1,a.once("response",(e=>{e.upgrade=!0})),a.once("upgrade",((e,t,n)=>{process.nextTick((()=>{r(e,t,n)}))})),a.once("connect",r),a.once("error",(t=>{a.removeAllListeners(),p("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var r=Error("tunneling socket could not be established, cause="+t.message);r.code="ECONNRESET",e.request.emit("error",r),n.removeSocket(o)})),a.end()},n.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var r=this.requests.shift();r&&this.createSocket(r,(e=>{r.request.onSocket(e)}))}},d=p=()=>{}})),Ot.register("itiEo",(function(e,t){"use strict";var r=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,i)=>{function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.PersonalAccessTokenCredentialHandler=e.exports.BearerCredentialHandler=e.exports.BasicCredentialHandler=void 0,e.exports.BasicCredentialHandler=class{constructor(e,t){this.username=e,this.password=t}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Basic "+Buffer.from(`${this.username}:${this.password}`).toString("base64")}canHandleAuthentication(){return!1}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw Error("not implemented")}))}},e.exports.BearerCredentialHandler=class{constructor(e){this.token=e}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Bearer "+this.token}canHandleAuthentication(){return!1}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw Error("not implemented")}))}},e.exports.PersonalAccessTokenCredentialHandler=class{constructor(e){this.token=e}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Basic "+Buffer.from("PAT:"+this.token).toString("base64")}canHandleAuthentication(){return!1}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw Error("not implemented")}))}}})),Ot.register("kCeDZ",(function(e,t){"use strict";var r=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,i)=>{function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.summary=e.exports.markdownSummary=e.exports.SUMMARY_DOCS_URL=e.exports.SUMMARY_ENV_VAR=void 0;const{access:n,appendFile:o,writeFile:i}=st.promises;e.exports.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY",e.exports.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";const s=new class{constructor(){this._buffer=""}filePath(){return r(this,void 0,void 0,(function*(){if(this._filePath)return this._filePath;const t=process.env[e.exports.SUMMARY_ENV_VAR];if(!t)throw Error(`Unable to find environment variable for $${e.exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield n(t,st.constants.R_OK|st.constants.W_OK)}catch(e){throw Error(`Unable to access summary file: '${t}'. Check if the file has correct read/write permissions.`)}return this._filePath=t,this._filePath}))}wrap(e,t,r={}){const n=Object.entries(r).map((([e,t])=>` ${e}="${t}"`)).join("");return t?`<${e}${n}>${t}</${e}>`:`<${e}${n}>`}write(e){return r(this,void 0,void 0,(function*(){const t=!!(null==e?void 0:e.overwrite),r=yield this.filePath(),n=t?i:o;return yield n(r,this._buffer,{encoding:"utf8"}),this.emptyBuffer()}))}clear(){return r(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:!0})}))}stringify(){return this._buffer}isEmptyBuffer(){return 0===this._buffer.length}emptyBuffer(){return this._buffer="",this}addRaw(e,t=!1){return this._buffer+=e,t?this.addEOL():this}addEOL(){return this.addRaw(ot.EOL)}addCodeBlock(e,t){const r=Object.assign({},t&&{lang:t}),n=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(n).addEOL()}addList(e,t=!1){const r=t?"ol":"ul",n=e.map((e=>this.wrap("li",e))).join(""),o=this.wrap(r,n);return this.addRaw(o).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if("string"==typeof e)return this.wrap("td",e);const{header:t,data:r,colspan:n,rowspan:o}=e,i=t?"th":"td",s=Object.assign(Object.assign({},n&&{colspan:n}),o&&{rowspan:o});return this.wrap(i,r,s)})).join("");return this.wrap("tr",t)})).join(""),r=this.wrap("table",t);return this.addRaw(r).addEOL()}addDetails(e,t){const r=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(r).addEOL()}addImage(e,t,r){const{width:n,height:o}=r||{},i=Object.assign(Object.assign({},n&&{width:n}),o&&{height:o}),s=this.wrap("img",null,Object.assign({src:e,alt:t},i));return this.addRaw(s).addEOL()}addHeading(e,t){const r="h"+t,n=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",o=this.wrap(n,e);return this.addRaw(o).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const r=Object.assign({},t&&{cite:t}),n=this.wrap("blockquote",e,r);return this.addRaw(n).addEOL()}addLink(e,t){const r=this.wrap("a",e,{href:t});return this.addRaw(r).addEOL()}};e.exports.markdownSummary=s,e.exports.summary=s})),Ot.register("5FsRV",((e,t)=>{"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),o=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&r(t,e,o);return n(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toPlatformPath=e.exports.toWin32Path=e.exports.toPosixPath=void 0;const i=o(it);e.exports.toPosixPath=e=>e.replace(/[\\]/g,"/"),e.exports.toWin32Path=e=>e.replace(/[/]/g,"\\"),e.exports.toPlatformPath=e=>e.replace(/[/\\]/g,i.sep)})),Ot.register("52wAv",((e,t)=>{function r(e,t,r){return!(!e.isSymbolicLink()&&!e.isFile())&&((e,t)=>{var r=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!r)return!0;if(-1!==(r=r.split(";")).indexOf(""))return!0;for(var n=0;r.length>n;n++){var o=r[n].toLowerCase();if(o&&e.substr(-o.length).toLowerCase()===o)return!0}return!1})(t,r)}function n(e,t,n){st.stat(e,((o,i)=>{n(o,!o&&r(i,e,t))}))}e.exports=n,n.sync=(e,t)=>r(st.statSync(e),e,t)})),Ot.register("jwcoa",((e,t)=>{function r(e,t,r){st.stat(e,((e,o)=>{r(e,!e&&n(o,t))}))}function n(e,t){return e.isFile()&&((e,t)=>{var r=e.mode,n=e.uid,o=e.gid,i=void 0!==t.uid?t.uid:process.getuid&&process.getuid(),s=void 0!==t.gid?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),c=parseInt("010",8),l=a|c;return r&parseInt("001",8)||r&c&&o===s||r&a&&n===i||r&l&&0===i})(e,t)}e.exports=r,r.sync=(e,t)=>n(st.statSync(e),t)})),Ot.register("4W4Te",((e,t)=>{e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")})),Ot.register("cczJY",(function(e,t){"use strict";function r(e){return u(this,void 0,void 0,(function*(){if(h.IS_WINDOWS){if(/[*"<>|]/.test(e))throw Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{const t=h.getCmdPath();(yield h.isDirectory(e,!0))?yield f(t+' /s /c "rd /s /q "%inputPath%""',{env:{inputPath:e}}):yield f(t+' /s /c "del /f /a "%inputPath%""',{env:{inputPath:e}})}catch(e){if("ENOENT"!==e.code)throw e}try{yield h.unlink(e)}catch(e){if("ENOENT"!==e.code)throw e}}else{let t=!1;try{t=yield h.isDirectory(e)}catch(e){if("ENOENT"!==e.code)throw e;return}t?yield m("rm",["-rf",""+e]):yield h.unlink(e)}}))}function n(e){return u(this,void 0,void 0,(function*(){pt.ok(e,"a path argument must be provided"),yield h.mkdir(e,{recursive:!0})}))}function o(e){return u(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'tool' is required");const t=[];if(h.IS_WINDOWS&&process.env.PATHEXT)for(const e of process.env.PATHEXT.split(p.delimiter))e&&t.push(e);if(h.isRooted(e)){const r=yield h.tryGetExecutablePath(e,t);return r?[r]:[]}if(e.includes(p.sep))return[];const r=[];if(process.env.PATH)for(const e of process.env.PATH.split(p.delimiter))e&&r.push(e);const n=[];for(const o of r){const r=yield h.tryGetExecutablePath(p.join(o,e),t);r&&n.push(r)}return n}))}function i(e,t,r,o){return u(this,void 0,void 0,(function*(){if(r>=255)return;r++,yield n(t);const a=yield h.readdir(e);for(const n of a){const a=`${e}/${n}`,c=`${t}/${n}`;(yield h.lstat(a)).isDirectory()?yield i(a,c,r,o):yield s(a,c,o)}yield h.chmod(t,(yield h.stat(e)).mode)}))}function s(e,t,r){return u(this,void 0,void 0,(function*(){if((yield h.lstat(e)).isSymbolicLink()){try{yield h.lstat(t),yield h.unlink(t)}catch(e){"EPERM"===e.code&&(yield h.chmod(t,"0666"),yield h.unlink(t))}const r=yield h.readlink(e);yield h.symlink(r,t,h.IS_WINDOWS?"junction":null)}else(yield h.exists(t))&&!r||(yield h.copyFile(e,t))}))}var a=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),c=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),l=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&a(t,e,r);return c(t,e),t}),u=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,i)=>{function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.findInPath=e.exports.which=e.exports.mkdirP=e.exports.rmRF=e.exports.mv=e.exports.cp=void 0;const d=l(ft),p=l(it),h=l(Ot("6x28s")),f=ht.promisify(d.exec),m=ht.promisify(d.execFile);e.exports.cp=function(e,t,r={}){return u(this,void 0,void 0,(function*(){const{force:n,recursive:o,copySourceDirectory:a}=(e=>({force:null==e.force||e.force,recursive:!!e.recursive,copySourceDirectory:null==e.copySourceDirectory||!!e.copySourceDirectory}))(r),c=(yield h.exists(t))?yield h.stat(t):null;if(c&&c.isFile()&&!n)return;const l=c&&c.isDirectory()&&a?p.join(t,p.basename(e)):t;if(!(yield h.exists(e)))throw Error("no such file or directory: "+e);if((yield h.stat(e)).isDirectory()){if(!o)throw Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield i(e,l,0,n)}else{if(""===p.relative(e,l))throw Error(`'${l}' and '${e}' are the same file`);yield s(e,l,n)}}))},e.exports.mv=function(e,t,o={}){return u(this,void 0,void 0,(function*(){if(yield h.exists(t)){let n=!0;if((yield h.isDirectory(t))&&(t=p.join(t,p.basename(e)),n=yield h.exists(t)),n){if(null!=o.force&&!o.force)throw Error("Destination already exists");yield r(t)}}yield n(p.dirname(t)),yield h.rename(e,t)}))},e.exports.rmRF=r,e.exports.mkdirP=n,e.exports.which=function e(t,r){return u(this,void 0,void 0,(function*(){if(!t)throw Error("parameter 'tool' is required");if(r){const r=yield e(t,!1);if(!r)throw Error(h.IS_WINDOWS?`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`:`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);return r}const n=yield o(t);return n&&n.length>0?n[0]:""}))},e.exports.findInPath=o})),Ot.register("6x28s",(function(e,t){"use strict";function r(e){return(1&e.mode)>0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}var n,o=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),i=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 i(t,e),t}),a=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,i)=>{function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getCmdPath=e.exports.tryGetExecutablePath=e.exports.isRooted=e.exports.isDirectory=e.exports.exists=e.exports.IS_WINDOWS=e.exports.unlink=e.exports.symlink=e.exports.stat=e.exports.rmdir=e.exports.rename=e.exports.readlink=e.exports.readdir=e.exports.mkdir=e.exports.lstat=e.exports.copyFile=e.exports.chmod=void 0;const c=s(st),l=s(it);e.exports.chmod=(n=c.promises).chmod,e.exports.copyFile=n.copyFile,e.exports.lstat=n.lstat,e.exports.mkdir=n.mkdir,e.exports.readdir=n.readdir,e.exports.readlink=n.readlink,e.exports.rename=n.rename,e.exports.rmdir=n.rmdir,e.exports.stat=n.stat,e.exports.symlink=n.symlink,e.exports.unlink=n.unlink,e.exports.IS_WINDOWS="win32"===process.platform,e.exports.exists=function(t){return a(this,void 0,void 0,(function*(){try{yield e.exports.stat(t)}catch(e){if("ENOENT"===e.code)return!1;throw e}return!0}))},e.exports.isDirectory=function(t,r=!1){return a(this,void 0,void 0,(function*(){return(r?yield e.exports.stat(t):yield e.exports.lstat(t)).isDirectory()}))},e.exports.isRooted=t=>{if(!(t=(t=>(t=t||"",e.exports.IS_WINDOWS?(t=t.replace(/\//g,"\\")).replace(/\\\\+/g,"\\"):t.replace(/\/\/+/g,"/")))(t)))throw Error('isRooted() parameter "p" cannot be empty');return e.exports.IS_WINDOWS?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")},e.exports.tryGetExecutablePath=function(t,n){return a(this,void 0,void 0,(function*(){let o;try{o=yield e.exports.stat(t)}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`)}if(o&&o.isFile())if(e.exports.IS_WINDOWS){const e=l.extname(t).toUpperCase();if(n.some((t=>t.toUpperCase()===e)))return t}else if(r(o))return t;const i=t;for(const s of n){t=i+s,o=void 0;try{o=yield e.exports.stat(t)}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`)}if(o&&o.isFile()){if(e.exports.IS_WINDOWS){try{const r=l.dirname(t),n=l.basename(t).toUpperCase();for(const o of yield e.exports.readdir(r))if(n===o.toUpperCase()){t=l.join(r,o);break}}catch(e){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${e}`)}return t}if(r(o))return t}}return""}))},e.exports.getCmdPath=()=>{var e;return null!==(e=process.env.COMSPEC)&&void 0!==e?e:"cmd.exe"}})),Ot.register("jeNZZ",((r,n)=>{function o(e,t){return Object.keys(t).forEach((r=>{"default"===r||"__esModule"===r||e.hasOwnProperty(r)||Object.defineProperty(e,r,{enumerable:!0,get:()=>t[r]})})),e}function i(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}function s(e,t=!0){return t?(0,it.basename)(e):(0,it.basename)(e,(0,it.extname)(e))}function a(e){return(0,it.normalize)(e).replace(RegExp((0,g.default)(it.sep)+"$"),"")}function c(e,t=".exe",r=""){return"win32"===process.platform?`${e}${t}`:`${e}${r}`}function l(e,t){const r=(0,it.extname)(e),n=`${t}${(0,it.basename)(e,r)}${r}`;return(0,it.join)((0,it.dirname)(e),n)}function u(e,t){const r=(0,it.extname)(e),n=`${(0,it.basename)(e,r)}${t}${r}`;return(0,it.join)((0,it.dirname)(e),n)}function d(e,t=".cmd",r=".sh"){return"win32"===process.platform?`${e}${t}`:`${e}${r}`}function p(e){return"win32"===process.platform?e:"./"+e}function h(e){const t=(0,it.extname)(e).length;return e.slice(0,-t)}function f(e,r){return t(v)(e,r)}function m(e,t){const r=(0,it.relative)(t,e);return!(!r||".."===r||r.startsWith(".."+it.sep)||r===(0,it.resolve)(e))}e(r.exports,"addExeExt",(()=>c)),e(r.exports,"addShExt",(()=>d)),e(r.exports,"addShRelativePrefix",(()=>p)),e(r.exports,"dirname",(()=>it.dirname)),e(r.exports,"join",(()=>it.join));var g=Ot("hOZXx"),v=Ot("6g92b"),y={},x={};i(x,"name",(()=>s));var w={};i(w,"normalizeTrim",(()=>a));var b={};i(b,"addExeExt",(()=>c));var E={};i(E,"addNamePrefix",(()=>l));var S={};i(S,"addNameSuffix",(()=>u));var O={};i(O,"addShExt",(()=>d));var _={};i(_,"addShRelativePrefix",(()=>p));var T={};i(T,"removeExt",(()=>h));var C={};i(C,"replaceExt",(()=>f));var $={};i($,"isPathInside",(()=>m)),o(y,x),o(y,w),o(y,b),o(y,E),o(y,S),o(y,O),o(y,_),o(y,T),o(y,C),o(y,$)})),Ot.register("hOZXx",((t,r)=>{function n(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}e(t.exports,"default",(()=>n))})),Ot.register("6g92b",((e,t)=>{"use strict";e.exports=(e,t)=>{if("string"!=typeof e)return e;if(0===e.length)return e;var r,n=it.basename(e,it.extname(e))+t,o=it.join(it.dirname(e),n);return(r=e.slice(0,2))==="."+it.sep||"./"===r?"."+it.sep+o:o}})),Ot.register("1QGzx",((e,t)=>{e.exports=()=>process.env.GERRIT_PROJECT?"gerrit":process.env.SYSTEM_TEAMFOUNDATIONCOLLECTIONURI?"azure-pipelines":process.env.BITRISE_IO?"bitrise":process.env.BUDDY_WORKSPACE_ID?"buddy":process.env.BUILDKITE?"buildkite":process.env.CIRRUS_CI?"cirrus":process.env.GITLAB_CI?"gitlab":process.env.APPVEYOR?"appveyor":process.env.CIRCLECI?"circle-ci":process.env.SEMAPHORE?"semaphore":process.env.DRONE?"drone":process.env.DSARI?"dsari":process.env.GITHUB_ACTION?"github-actions":process.env.TDDIUM?"tddium":process.env.SCREWDRIVER?"screwdriver":process.env.STRIDER?"strider":process.env.TASKCLUSTER_ROOT_URL?"taskcluster":process.env.JENKINS_URL?"jenkins":process.env["bamboo.buildKey"]?"bamboo":process.env.GO_PIPELINE_NAME?"gocd":process.env.HUDSON_URL?"hudson":process.env.WERCKER?"wercker":process.env.NETLIFY?"netlify":process.env.NOW_GITHUB_DEPLOYMENT?"now-github":process.env.GITLAB_DEPLOYMENT?"now-gitlab":process.env.BITBUCKET_DEPLOYMENT?"now-bitbucket":process.env.BITBUCKET_BUILD_NUMBER?"bitbucket-pipelines":process.env.NOW_BUILDER?"now":process.env.VERCEL_GITHUB_DEPLOYMENT?"vercel-github":process.env.VERCEL_GITLAB_DEPLOYMENT?"vercel-gitlab":process.env.VERCEL_BITBUCKET_DEPLOYMENT?"vercel-bitbucket":process.env.VERCEL_URL?"vercel":process.env.MAGNUM?"magnum":process.env.NEVERCODE?"nevercode":process.env.RENDER?"render":process.env.SAIL_CI?"sail":process.env.SHIPPABLE?"shippable":process.env.TEAMCITY_VERSION?"teamcity":process.env.CI_NAME?process.env.CI_NAME:/\/\.heroku\/node\/bin\/node$/.test(process.env.NODE||"")?"heroku":process.env.TRAVIS?"travis-ci":process.env.CODEBUILD_SRC_DIR?"aws-codebuild":"true"===process.env.CI||"1"===process.env.CI?"custom":!!process.env.BUILDER_OUTPUT&&"builder"})),Ot.register("bouSm",((r,n)=>{function o(e){return"github-actions"===t(u)()?l.error(e):console.log(`[31m${e}[0m`)}function i(e){return console.log(`[32m${e}[0m`)}function s(e){return"github-actions"===t(u)()?l.warning(e):console.log(`[33m${e}[0m`)}function a(e){return"github-actions"===t(u)()?l.notice(e):console.log(`[94m${e}[0m`)}function c(e){return"github-actions"===t(u)()?l.info(e):console.log(e)}e(r.exports,"error",(()=>o)),e(r.exports,"success",(()=>i)),e(r.exports,"warning",(()=>s)),e(r.exports,"notice",(()=>a)),e(r.exports,"info",(()=>c));var l=Ot("1PzKq"),u=Ot("1QGzx")})),Ot.register("1PzKq",(function(e,t){"use strict";function r(e,t){const r=process.env["INPUT_"+e.replace(/ /g,"_").toUpperCase()]||"";if(t&&t.required&&!r)throw Error("Input required and not supplied: "+e);return t&&!1===t.trimWhitespace?r:r.trim()}function n(e,t={}){u.issueCommand("error",p.toCommandProperties(t),e instanceof Error?""+e:e)}function o(e){u.issue("group",e)}function i(){u.issue("endgroup")}var s=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),a=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),c=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&s(t,e,r);return a(t,e),t}),l=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,i)=>{function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getIDToken=e.exports.getState=e.exports.saveState=e.exports.group=e.exports.endGroup=e.exports.startGroup=e.exports.info=e.exports.notice=e.exports.warning=e.exports.error=e.exports.debug=e.exports.isDebug=e.exports.setFailed=e.exports.setCommandEcho=e.exports.setOutput=e.exports.getBooleanInput=e.exports.getMultilineInput=e.exports.getInput=e.exports.addPath=e.exports.setSecret=e.exports.exportVariable=e.exports.ExitCode=void 0;var u=Ot("dxuv4"),d=Ot("kBRBX"),p=Ot("hGxq9");const h=c(ot),f=c(it);var m,g,v=Ot("5KhFO"),y=Ot("dOzCq");(g=m=e.exports.ExitCode||(e.exports.ExitCode={}))[g.Success=0]="Success",g[g.Failure=1]="Failure",e.exports.exportVariable=(e,t)=>{const r=p.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV){const t="ghadelimiter_"+v.default();if(e.includes(t))throw Error(`Unexpected input: name should not contain the delimiter "${t}"`);if(r.includes(t))throw Error(`Unexpected input: value should not contain the delimiter "${t}"`);d.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?d.issueCommand("PATH",e):u.issueCommand("add-path",{},e),process.env.PATH=`${e}${f.delimiter}${process.env.PATH}`},e.exports.getInput=r,e.exports.getMultilineInput=(e,t)=>r(e,t).split("\n").filter((e=>""!==e)),e.exports.getBooleanInput=(e,t)=>{const n=r(e,t);if(["true","True","TRUE"].includes(n))return!0;if(["false","False","FALSE"].includes(n))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\nSupport boolean input list: \`true | True | TRUE | false | False | FALSE\``)},e.exports.setOutput=(e,t)=>{process.stdout.write(h.EOL),u.issueCommand("set-output",{name:e},t)},e.exports.setCommandEcho=e=>{u.issue("echo",e?"on":"off")},e.exports.setFailed=e=>{process.exitCode=m.Failure,n(e)},e.exports.isDebug=()=>"1"===process.env.RUNNER_DEBUG,e.exports.debug=e=>{u.issueCommand("debug",{},e)},e.exports.error=n,e.exports.warning=(e,t={})=>{u.issueCommand("warning",p.toCommandProperties(t),e instanceof Error?""+e:e)},e.exports.notice=(e,t={})=>{u.issueCommand("notice",p.toCommandProperties(t),e instanceof Error?""+e:e)},e.exports.info=e=>{process.stdout.write(e+h.EOL)},e.exports.startGroup=o,e.exports.endGroup=i,e.exports.group=function(e,t){return l(this,void 0,void 0,(function*(){let r;o(e);try{r=yield t()}finally{i()}return r}))},e.exports.saveState=(e,t)=>{u.issueCommand("save-state",{name:e},t)},e.exports.getState=e=>process.env["STATE_"+e]||"",e.exports.getIDToken=function(e){return l(this,void 0,void 0,(function*(){return yield y.OidcClient.getIDToken(e)}))};var x=Ot("9TEfs");Object.defineProperty(e.exports,"summary",{enumerable:!0,get(){return x.summary}}),x=Ot("9TEfs"),Object.defineProperty(e.exports,"markdownSummary",{enumerable:!0,get(){return x.markdownSummary}});var w=Ot("13oDU");Object.defineProperty(e.exports,"toPosixPath",{enumerable:!0,get(){return w.toPosixPath}}),Object.defineProperty(e.exports,"toWin32Path",{enumerable:!0,get(){return w.toWin32Path}}),Object.defineProperty(e.exports,"toPlatformPath",{enumerable:!0,get(){return w.toPlatformPath}})})),Ot.register("dxuv4",(function(e,t){"use strict";function r(e,t,r){const n=new c(e,t,r);process.stdout.write(""+n+s.EOL)}var n=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),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 o(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issue=e.exports.issueCommand=void 0;const s=i(ot);var a=Ot("hGxq9");e.exports.issueCommand=r,e.exports.issue=(e,t="")=>{r(e,{},t)};class c{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r}toString(){let e="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(const n in this.properties)if(this.properties.hasOwnProperty(n)){const o=this.properties[n];o&&(r?r=!1:e+=",",e+=`${n}=${t=o,a.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}var t;return e+="::"+(e=>a.toCommandValue(this.message).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A"))(),e}}})),Ot.register("hGxq9",((e,t)=>{"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toCommandProperties=e.exports.toCommandValue=void 0,e.exports.toCommandValue=e=>null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e),e.exports.toCommandProperties=e=>Object.keys(e).length?{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}:{}})),Ot.register("kBRBX",((e,t)=>{"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),o=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&r(t,e,o);return n(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issueCommand=void 0;const i=o(st),s=o(ot);var a=Ot("hGxq9");e.exports.issueCommand=(e,t)=>{const r=process.env["GITHUB_"+e];if(!r)throw Error("Unable to find environment variable for file command "+e);if(!i.existsSync(r))throw Error("Missing file at path: "+r);i.appendFileSync(r,`${a.toCommandValue(t)}${s.EOL}`,{encoding:"utf8"})}})),Ot.register("dOzCq",(function(e,t){"use strict";var r=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,i)=>{function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.OidcClient=void 0;var n=Ot("1mHcB"),o=Ot("itiEo"),i=Ot("1PzKq");class s{static createHttpClient(e=!0,t=10){const r={allowRetries:e,maxRetries:t};return new n.HttpClient("actions/oidc-client",[new o.BearerCredentialHandler(s.getRequestToken())],r)}static getRequestToken(){const e=process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable");return e}static getIDTokenUrl(){const e=process.env.ACTIONS_ID_TOKEN_REQUEST_URL;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable");return e}static getCall(e){var t;return r(this,void 0,void 0,(function*(){const r=s.createHttpClient(),n=yield r.getJson(e).catch((e=>{throw Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)})),o=null===(t=n.result)||void 0===t?void 0:t.value;if(!o)throw Error("Response json body do not have ID Token field");return o}))}static getIDToken(e){return r(this,void 0,void 0,(function*(){try{let t=s.getIDTokenUrl();e&&(t=`${t}&audience=${encodeURIComponent(e)}`),i.debug("ID token url is "+t);const r=yield s.getCall(t);return i.setSecret(r),r}catch(e){throw Error("Error message: "+e.message)}}))}}e.exports.OidcClient=s})),Ot.register("9TEfs",(function(e,t){"use strict";var r=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,i)=>{function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.summary=e.exports.markdownSummary=e.exports.SUMMARY_DOCS_URL=e.exports.SUMMARY_ENV_VAR=void 0;const{access:n,appendFile:o,writeFile:i}=st.promises;e.exports.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY",e.exports.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";const s=new class{constructor(){this._buffer=""}filePath(){return r(this,void 0,void 0,(function*(){if(this._filePath)return this._filePath;const t=process.env[e.exports.SUMMARY_ENV_VAR];if(!t)throw Error(`Unable to find environment variable for $${e.exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield n(t,st.constants.R_OK|st.constants.W_OK)}catch(e){throw Error(`Unable to access summary file: '${t}'. Check if the file has correct read/write permissions.`)}return this._filePath=t,this._filePath}))}wrap(e,t,r={}){const n=Object.entries(r).map((([e,t])=>` ${e}="${t}"`)).join("");return t?`<${e}${n}>${t}</${e}>`:`<${e}${n}>`}write(e){return r(this,void 0,void 0,(function*(){const t=!!(null==e?void 0:e.overwrite),r=yield this.filePath(),n=t?i:o;return yield n(r,this._buffer,{encoding:"utf8"}),this.emptyBuffer()}))}clear(){return r(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:!0})}))}stringify(){return this._buffer}isEmptyBuffer(){return 0===this._buffer.length}emptyBuffer(){return this._buffer="",this}addRaw(e,t=!1){return this._buffer+=e,t?this.addEOL():this}addEOL(){return this.addRaw(ot.EOL)}addCodeBlock(e,t){const r=Object.assign({},t&&{lang:t}),n=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(n).addEOL()}addList(e,t=!1){const r=t?"ol":"ul",n=e.map((e=>this.wrap("li",e))).join(""),o=this.wrap(r,n);return this.addRaw(o).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if("string"==typeof e)return this.wrap("td",e);const{header:t,data:r,colspan:n,rowspan:o}=e,i=t?"th":"td",s=Object.assign(Object.assign({},n&&{colspan:n}),o&&{rowspan:o});return this.wrap(i,r,s)})).join("");return this.wrap("tr",t)})).join(""),r=this.wrap("table",t);return this.addRaw(r).addEOL()}addDetails(e,t){const r=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(r).addEOL()}addImage(e,t,r){const{width:n,height:o}=r||{},i=Object.assign(Object.assign({},n&&{width:n}),o&&{height:o}),s=this.wrap("img",null,Object.assign({src:e,alt:t},i));return this.addRaw(s).addEOL()}addHeading(e,t){const r="h"+t,n=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",o=this.wrap(n,e);return this.addRaw(o).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const r=Object.assign({},t&&{cite:t}),n=this.wrap("blockquote",e,r);return this.addRaw(n).addEOL()}addLink(e,t){const r=this.wrap("a",e,{href:t});return this.addRaw(r).addEOL()}};e.exports.markdownSummary=s,e.exports.summary=s})),Ot.register("13oDU",((e,t)=>{"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),o=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&r(t,e,o);return n(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toPlatformPath=e.exports.toWin32Path=e.exports.toPosixPath=void 0;const i=o(it);e.exports.toPosixPath=e=>e.replace(/[\\]/g,"/"),e.exports.toWin32Path=e=>e.replace(/[/]/g,"\\"),e.exports.toPlatformPath=e=>e.replace(/[/\\]/g,i.sep)})),Ot.register("3IR8t",(function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),o=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&r(t,e,o);return n(t,e),t}),i=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,i)=>{function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports._readLinuxVersionFile=e.exports._getOsVersion=e.exports._findMatch=void 0;const s=o(Ot("cTdPL"));var a=Ot("lXEOe");e.exports._findMatch=function(t,r,n,o){return i(this,void 0,void 0,(function*(){const i=ot.platform();let c,l,u;for(const c of n){const n=c.version;if(a.debug(`check ${n} satisfies ${t}`),s.satisfies(n,t)&&(!r||c.stable===r)&&(u=c.files.find((t=>{a.debug(`${t.arch}===${o} && ${t.platform}===${i}`);let r=t.arch===o&&t.platform===i;if(r&&t.platform_version){const n=e.exports._getOsVersion();r=n===t.platform_version||s.satisfies(n,t.platform_version)}return r})),u)){a.debug("matched "+c.version),l=c;break}}return l&&u&&(c=Object.assign({},l),c.files=[u]),c}))},e.exports._getOsVersion=()=>{const t=ot.platform();let r="";if("darwin"===t)r=""+ft.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 st.existsSync(e)?r=""+st.readFileSync(e):st.existsSync(t)&&(r=""+st.readFileSync(t)),r}})),Ot.register("cTdPL",((e,t)=>{var r=Ot("7Vtia"),n=Ot("9uhqa"),o=Ot("bCyR3"),i=Ot("2Wpz6"),s=Ot("8DumP"),a=Ot("1wrDf"),c=Ot("adwKS"),l=Ot("hKpp7"),u=Ot("3AYNE"),d=Ot("iwVHA"),p=Ot("9kVgg"),h=Ot("51Be6"),f=Ot("7r3l7"),m=Ot("1eEUU"),g=Ot("jVISN"),v=Ot("ePyta"),y=Ot("7nRdz"),x=Ot("enXHc"),w=Ot("9y79V"),b=Ot("bmjaY"),E=Ot("chPew"),S=Ot("5aJun"),O=Ot("bsY6E"),_=Ot("jVRwJ"),T=Ot("9Kys9"),C=Ot("fhH0P"),$=Ot("9YDsN"),P=Ot("hktyb"),R=Ot("91aii"),I=Ot("3njbl"),A=Ot("f6D2c"),N=Ot("9QfVs"),k=Ot("cReYU"),L=Ot("cIhxo"),j=Ot("gIL2L"),D=Ot("gUhUf"),U=Ot("k64sy"),M=Ot("lgOoT"),F=Ot("k0m8E"),G=Ot("lUXp0"),B=Ot("2JpyI");e.exports={parse:s,valid:a,clean:c,inc:l,diff:u,major:d,minor:p,patch:h,prerelease:f,compare:m,rcompare:g,compareLoose:v,compareBuild:y,sort:x,rsort:w,gt:b,lt:E,eq:S,neq:O,gte:_,lte:T,cmp:C,coerce:$,Comparator:P,Range:R,satisfies:I,toComparators:A,maxSatisfying:N,minSatisfying:k,minVersion:L,validRange:j,outside:D,gtr:U,ltr:M,intersects:F,simplifyRange:G,subset:B,SemVer:o,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:n.SEMVER_SPEC_VERSION,compareIdentifiers:i.compareIdentifiers,rcompareIdentifiers:i.rcompareIdentifiers}})),Ot.register("7Vtia",((e,t)=>{var r=Ot("9uhqa").MAX_SAFE_COMPONENT_LENGTH,n=Ot("hwyMk");const o=(t=e.exports={}).re=[],i=t.src=[],s=t.t={};let a=0;const c=(e,t,r)=>{const c=a++;n(e,c,t),s[e]=c,i[c]=t,o[c]=RegExp(t,r?"g":void 0)};c("NUMERICIDENTIFIER","0|[1-9]\\d*"),c("NUMERICIDENTIFIERLOOSE","[0-9]+"),c("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),c("MAINVERSION",`(${i[s.NUMERICIDENTIFIER]})\\.(${i[s.NUMERICIDENTIFIER]})\\.(${i[s.NUMERICIDENTIFIER]})`),c("MAINVERSIONLOOSE",`(${i[s.NUMERICIDENTIFIERLOOSE]})\\.(${i[s.NUMERICIDENTIFIERLOOSE]})\\.(${i[s.NUMERICIDENTIFIERLOOSE]})`),c("PRERELEASEIDENTIFIER",`(?:${i[s.NUMERICIDENTIFIER]}|${i[s.NONNUMERICIDENTIFIER]})`),c("PRERELEASEIDENTIFIERLOOSE",`(?:${i[s.NUMERICIDENTIFIERLOOSE]}|${i[s.NONNUMERICIDENTIFIER]})`),c("PRERELEASE",`(?:-(${i[s.PRERELEASEIDENTIFIER]}(?:\\.${i[s.PRERELEASEIDENTIFIER]})*))`),c("PRERELEASELOOSE",`(?:-?(${i[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${i[s.PRERELEASEIDENTIFIERLOOSE]})*))`),c("BUILDIDENTIFIER","[0-9A-Za-z-]+"),c("BUILD",`(?:\\+(${i[s.BUILDIDENTIFIER]}(?:\\.${i[s.BUILDIDENTIFIER]})*))`),c("FULLPLAIN",`v?${i[s.MAINVERSION]}${i[s.PRERELEASE]}?${i[s.BUILD]}?`),c("FULL",`^${i[s.FULLPLAIN]}$`),c("LOOSEPLAIN",`[v=\\s]*${i[s.MAINVERSIONLOOSE]}${i[s.PRERELEASELOOSE]}?${i[s.BUILD]}?`),c("LOOSE",`^${i[s.LOOSEPLAIN]}$`),c("GTLT","((?:<|>)?=?)"),c("XRANGEIDENTIFIERLOOSE",i[s.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*"),c("XRANGEIDENTIFIER",i[s.NUMERICIDENTIFIER]+"|x|X|\\*"),c("XRANGEPLAIN",`[v=\\s]*(${i[s.XRANGEIDENTIFIER]})(?:\\.(${i[s.XRANGEIDENTIFIER]})(?:\\.(${i[s.XRANGEIDENTIFIER]})(?:${i[s.PRERELEASE]})?${i[s.BUILD]}?)?)?`),c("XRANGEPLAINLOOSE",`[v=\\s]*(${i[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[s.XRANGEIDENTIFIERLOOSE]})(?:${i[s.PRERELEASELOOSE]})?${i[s.BUILD]}?)?)?`),c("XRANGE",`^${i[s.GTLT]}\\s*${i[s.XRANGEPLAIN]}$`),c("XRANGELOOSE",`^${i[s.GTLT]}\\s*${i[s.XRANGEPLAINLOOSE]}$`),c("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),c("COERCERTL",i[s.COERCE],!0),c("LONETILDE","(?:~>?)"),c("TILDETRIM",`(\\s*)${i[s.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",c("TILDE",`^${i[s.LONETILDE]}${i[s.XRANGEPLAIN]}$`),c("TILDELOOSE",`^${i[s.LONETILDE]}${i[s.XRANGEPLAINLOOSE]}$`),c("LONECARET","(?:\\^)"),c("CARETTRIM",`(\\s*)${i[s.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",c("CARET",`^${i[s.LONECARET]}${i[s.XRANGEPLAIN]}$`),c("CARETLOOSE",`^${i[s.LONECARET]}${i[s.XRANGEPLAINLOOSE]}$`),c("COMPARATORLOOSE",`^${i[s.GTLT]}\\s*(${i[s.LOOSEPLAIN]})$|^$`),c("COMPARATOR",`^${i[s.GTLT]}\\s*(${i[s.FULLPLAIN]})$|^$`),c("COMPARATORTRIM",`(\\s*)${i[s.GTLT]}\\s*(${i[s.LOOSEPLAIN]}|${i[s.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",c("HYPHENRANGE",`^\\s*(${i[s.XRANGEPLAIN]})\\s+-\\s+(${i[s.XRANGEPLAIN]})\\s*$`),c("HYPHENRANGELOOSE",`^\\s*(${i[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${i[s.XRANGEPLAINLOOSE]})\\s*$`),c("STAR","(<|>)?=?\\s*\\*"),c("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),c("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})),Ot.register("9uhqa",((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}})),Ot.register("hwyMk",((e,t)=>{const r=("object"==typeof process&&process,()=>{});e.exports=r})),Ot.register("bCyR3",(function(e,t){var r=Ot("hwyMk"),n=Ot("9uhqa"),o=n.MAX_LENGTH,i=n.MAX_SAFE_INTEGER,s=Ot("7Vtia"),a=s.re,c=s.t,l=Ot("k5Nz9"),u=Ot("2Wpz6").compareIdentifiers;class d{constructor(e,t){if(t=l(t),e instanceof d){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>o)throw new TypeError(`version is longer than ${o} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?a[c.LOOSE]:a[c.FULL]);if(!n)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>i||0>this.major)throw new TypeError("Invalid major version");if(this.minor>i||0>this.minor)throw new TypeError("Invalid minor version");if(this.patch>i||0>this.patch)throw new TypeError("Invalid patch version");this.prerelease=n[4]?n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&i>t)return t}return e})):[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version}toString(){return this.version}compare(e){if(r("SemVer.compare",this.version,this.options,e),!(e instanceof d)){if("string"==typeof e&&e===this.version)return 0;e=new d(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof d||(e=new d(e,this.options)),u(this.major,e.major)||u(this.minor,e.minor)||u(this.patch,e.patch)}comparePre(e){if(e instanceof d||(e=new d(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const n=this.prerelease[t],o=e.prerelease[t];if(r("prerelease compare",t,n,o),void 0===n&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===n)return-1;if(n!==o)return u(n,o)}while(++t)}compareBuild(e){e instanceof d||(e=new d(e,this.options));let t=0;do{const n=this.build[t],o=e.build[t];if(r("prerelease compare",t,n,o),void 0===n&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===n)return-1;if(n!==o)return u(n,o)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let e=this.prerelease.length;for(;--e>=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(0===u(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this}}e.exports=d})),Ot.register("k5Nz9",((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)),{}):{}})),Ot.register("2Wpz6",((e,t)=>{const r=/^[0-9]+$/,n=(e,t)=>{const n=r.test(e),o=r.test(t);return n&&o&&(e=+e,t=+t),e===t?0:n&&!o?-1:o&&!n?1:t>e?-1:1};e.exports={compareIdentifiers:n,rcompareIdentifiers(e,t){return n(t,e)}}})),Ot.register("8DumP",((e,t)=>{var r=Ot("9uhqa").MAX_LENGTH,n=Ot("7Vtia"),o=n.re,i=n.t,s=Ot("bCyR3"),a=Ot("k5Nz9");e.exports=(e,t)=>{if(t=a(t),e instanceof s)return e;if("string"!=typeof e)return null;if(e.length>r)return null;if(!(t.loose?o[i.LOOSE]:o[i.FULL]).test(e))return null;try{return new s(e,t)}catch(e){return null}}})),Ot.register("1wrDf",((e,t)=>{var r=Ot("8DumP");e.exports=(e,t)=>{const n=r(e,t);return n?n.version:null}})),Ot.register("adwKS",((e,t)=>{var r=Ot("8DumP");e.exports=(e,t)=>{const n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}})),Ot.register("hKpp7",((e,t)=>{var r=Ot("bCyR3");e.exports=(e,t,n,o)=>{"string"==typeof n&&(o=n,n=void 0);try{return new r(e instanceof r?e.version:e,n).inc(t,o).version}catch(e){return null}}})),Ot.register("3AYNE",((e,t)=>{var r=Ot("8DumP"),n=Ot("5aJun");e.exports=(e,t)=>{if(n(e,t))return null;{const n=r(e),o=r(t),i=n.prerelease.length||o.prerelease.length,s=i?"pre":"",a=i?"prerelease":"";for(const e in n)if(("major"===e||"minor"===e||"patch"===e)&&n[e]!==o[e])return s+e;return a}}})),Ot.register("5aJun",((e,t)=>{var r=Ot("1eEUU");e.exports=(e,t,n)=>0===r(e,t,n)})),Ot.register("1eEUU",((e,t)=>{var r=Ot("bCyR3");e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n))})),Ot.register("iwVHA",((e,t)=>{var r=Ot("bCyR3");e.exports=(e,t)=>new r(e,t).major})),Ot.register("9kVgg",((e,t)=>{var r=Ot("bCyR3");e.exports=(e,t)=>new r(e,t).minor})),Ot.register("51Be6",((e,t)=>{var r=Ot("bCyR3");e.exports=(e,t)=>new r(e,t).patch})),Ot.register("7r3l7",((e,t)=>{var r=Ot("8DumP");e.exports=(e,t)=>{const n=r(e,t);return n&&n.prerelease.length?n.prerelease:null}})),Ot.register("jVISN",((e,t)=>{var r=Ot("1eEUU");e.exports=(e,t,n)=>r(t,e,n)})),Ot.register("ePyta",((e,t)=>{var r=Ot("1eEUU");e.exports=(e,t)=>r(e,t,!0)})),Ot.register("7nRdz",((e,t)=>{var r=Ot("bCyR3");e.exports=(e,t,n)=>{const o=new r(e,n),i=new r(t,n);return o.compare(i)||o.compareBuild(i)}})),Ot.register("enXHc",((e,t)=>{var r=Ot("7nRdz");e.exports=(e,t)=>e.sort(((e,n)=>r(e,n,t)))})),Ot.register("9y79V",((e,t)=>{var r=Ot("7nRdz");e.exports=(e,t)=>e.sort(((e,n)=>r(n,e,t)))})),Ot.register("bmjaY",((e,t)=>{var r=Ot("1eEUU");e.exports=(e,t,n)=>r(e,t,n)>0})),Ot.register("chPew",((e,t)=>{var r=Ot("1eEUU");e.exports=(e,t,n)=>0>r(e,t,n)})),Ot.register("bsY6E",((e,t)=>{var r=Ot("1eEUU");e.exports=(e,t,n)=>0!==r(e,t,n)})),Ot.register("jVRwJ",((e,t)=>{var r=Ot("1eEUU");e.exports=(e,t,n)=>r(e,t,n)>=0})),Ot.register("9Kys9",((e,t)=>{var r=Ot("1eEUU");e.exports=(e,t,n)=>0>=r(e,t,n)})),Ot.register("fhH0P",((e,t)=>{var r=Ot("5aJun"),n=Ot("bsY6E"),o=Ot("bmjaY"),i=Ot("jVRwJ"),s=Ot("chPew"),a=Ot("9Kys9");e.exports=(e,t,c,l)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof c&&(c=c.version),e===c;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof c&&(c=c.version),e!==c;case"":case"=":case"==":return r(e,c,l);case"!=":return n(e,c,l);case">":return o(e,c,l);case">=":return i(e,c,l);case"<":return s(e,c,l);case"<=":return a(e,c,l);default:throw new TypeError("Invalid operator: "+t)}}})),Ot.register("9YDsN",((e,t)=>{var r=Ot("bCyR3"),n=Ot("8DumP"),o=Ot("7Vtia"),i=o.re,s=o.t;e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e+=""),"string"!=typeof e)return null;let o=null;if((t=t||{}).rtl){let t;for(;(t=i[s.COERCERTL].exec(e))&&(!o||o.index+o[0].length!==e.length);)o&&t.index+t[0].length===o.index+o[0].length||(o=t),i[s.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;i[s.COERCERTL].lastIndex=-1}else o=e.match(i[s.COERCE]);return null===o?null:n(`${o[2]}.${o[3]||"0"}.${o[4]||"0"}`,t)}})),Ot.register("hktyb",(function(e,t){const r=Symbol();class n{static get ANY(){return r}constructor(e,t){if(t=o(t),e instanceof n){if(e.loose===!!t.loose)return e;e=e.value}l("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.value=this.semver===r?"":this.operator+this.semver.version,l("comp",this)}parse(e){const t=e.match(this.options.loose?s[a.COMPARATORLOOSE]:s[a.COMPARATOR]);if(!t)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==t[1]?t[1]:"","="===this.operator&&(this.operator=""),this.semver=t[2]?new u(t[2],this.options.loose):r}toString(){return this.value}test(e){if(l("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}return c(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof n))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new d(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new d(this.value,t).test(e.semver);const r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=c(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=c(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||o||i&&s||a||l}}e.exports=n;var o=Ot("k5Nz9"),i=Ot("7Vtia"),s=i.re,a=i.t,c=Ot("fhH0P"),l=Ot("hwyMk"),u=Ot("bCyR3"),d=Ot("91aii")})),Ot.register("91aii",(function(e,t){class r{constructor(e,t){if(t=o(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof i)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!f(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&m(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();const t=`parseRange:${Object.keys(this.options).join(",")}:${e}`,r=n.get(t);if(r)return r;const o=this.options.loose;e=e.replace(o?l[u.HYPHENRANGELOOSE]:l[u.HYPHENRANGE],C(this.options.includePrerelease)),s("hyphen replace",e),e=e.replace(l[u.COMPARATORTRIM],d),s("comparator trim",e);let a=(e=(e=(e=e.replace(l[u.TILDETRIM],p)).replace(l[u.CARETTRIM],h)).split(/\s+/).join(" ")).split(" ").map((e=>v(e,this.options))).join(" ").split(/\s+/).map((e=>T(e,this.options)));o&&(a=a.filter((e=>(s("loose invalid filter",e,this.options),!!e.match(l[u.COMPARATORLOOSE]))))),s("range list",a);const c=new Map,m=a.map((e=>new i(e,this.options)));for(const e of m){if(f(e))return[e];c.set(e.value,e)}c.size>1&&c.has("")&&c.delete("");const g=[...c.values()];return n.set(t,g),g}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some((r=>g(r,t)&&e.set.some((e=>g(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new a(e,this.options)}catch(e){return!1}for(let t=0;this.set.length>t;t++)if($(this.set[t],e,this.options))return!0;return!1}}e.exports=r;const n=new(Ot("gQrgg"))({max:1e3});var o=Ot("k5Nz9"),i=Ot("hktyb"),s=Ot("hwyMk"),a=Ot("bCyR3"),c=Ot("7Vtia"),l=c.re,u=c.t,d=c.comparatorTrimReplace,p=c.tildeTrimReplace,h=c.caretTrimReplace;const f=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,g=(e,t)=>{let r=!0;const n=e.slice();let o=n.pop();for(;r&&n.length;)r=n.every((e=>o.intersects(e,t))),o=n.pop();return r},v=(e,t)=>(s("comp",e,t),e=b(e,t),s("caret",e),e=x(e,t),s("tildes",e),e=S(e,t),s("xrange",e),e=_(e,t),s("stars",e),e),y=e=>!e||"x"===e.toLowerCase()||"*"===e,x=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>e.replace(t.loose?l[u.TILDELOOSE]:l[u.TILDE],((t,r,n,o,i)=>{let a;return s("tilde",e,t,r,n,o,i),y(r)?a="":y(n)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:y(o)?a=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:i?(s("replaceTilde pr",i),a=`>=${r}.${n}.${o}-${i} <${r}.${+n+1}.0-0`):a=`>=${r}.${n}.${o} <${r}.${+n+1}.0-0`,s("tilde return",a),a})),b=(e,t)=>e.trim().split(/\s+/).map((e=>E(e,t))).join(" "),E=(e,t)=>{s("caret",e,t);const r=t.includePrerelease?"-0":"";return e.replace(t.loose?l[u.CARETLOOSE]:l[u.CARET],((t,n,o,i,a)=>{let c;return s("caret",e,t,n,o,i,a),y(n)?c="":y(o)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:y(i)?c="0"===n?`>=${n}.${o}.0${r} <${n}.${+o+1}.0-0`:`>=${n}.${o}.0${r} <${+n+1}.0.0-0`:a?(s("replaceCaret pr",a),c="0"===n?"0"===o?`>=${n}.${o}.${i}-${a} <${n}.${o}.${+i+1}-0`:`>=${n}.${o}.${i}-${a} <${n}.${+o+1}.0-0`:`>=${n}.${o}.${i}-${a} <${+n+1}.0.0-0`):(s("no pr"),c="0"===n?"0"===o?`>=${n}.${o}.${i}${r} <${n}.${o}.${+i+1}-0`:`>=${n}.${o}.${i}${r} <${n}.${+o+1}.0-0`:`>=${n}.${o}.${i} <${+n+1}.0.0-0`),s("caret return",c),c}))},S=(e,t)=>(s("replaceXRanges",e,t),e.split(/\s+/).map((e=>O(e,t))).join(" ")),O=(e,t)=>(e=e.trim()).replace(t.loose?l[u.XRANGELOOSE]:l[u.XRANGE],((r,n,o,i,a,c)=>{s("xRange",e,r,n,o,i,a,c);const l=y(o),u=l||y(i),d=u||y(a);return"="===n&&d&&(n=""),c=t.includePrerelease?"-0":"",l?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&d?(u&&(i=0),a=0,">"===n?(n=">=",u?(o=+o+1,i=0,a=0):(i=+i+1,a=0)):"<="===n&&(n="<",u?o=+o+1:i=+i+1),"<"===n&&(c="-0"),r=`${n+o}.${i}.${a}${c}`):u?r=`>=${o}.0.0${c} <${+o+1}.0.0-0`:d&&(r=`>=${o}.${i}.0${c} <${o}.${+i+1}.0-0`),s("xRange return",r),r})),_=(e,t)=>(s("replaceStars",e,t),e.trim().replace(l[u.STAR],"")),T=(e,t)=>(s("replaceGTE0",e,t),e.trim().replace(l[t.includePrerelease?u.GTE0PRE:u.GTE0],"")),C=e=>(t,r,n,o,i,s,a,c,l,u,d,p,h)=>`${r=y(n)?"":y(o)?`>=${n}.0.0${e?"-0":""}`:y(i)?`>=${n}.${o}.0${e?"-0":""}`:s?">="+r:`>=${r}${e?"-0":""}`} ${c=y(l)?"":y(u)?`<${+l+1}.0.0-0`:y(d)?`<${l}.${+u+1}.0-0`:p?`<=${l}.${u}.${d}-${p}`:e?`<${l}.${u}.${+d+1}-0`:"<="+c}`.trim(),$=(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(s(e[r].semver),e[r].semver!==i.ANY&&e[r].semver.prerelease.length>0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}})),Ot.register("gQrgg",(function(e,t){const r="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,n="undefined"!=typeof AbortController?AbortController:Object.assign(class{constructor(){this.signal=new n.AbortSignal}abort(){this.signal.aborted=!0}},{AbortSignal:class{constructor(){this.aborted=!1}}}),o=new Set,i=(e,t)=>{const r="LRU_CACHE_OPTION_"+e;c(r)&&l(r,e+" option","options."+t,f)},s=(e,t)=>{const r="LRU_CACHE_METHOD_"+e;if(c(r)){const{prototype:n}=f,{get:o}=Object.getOwnPropertyDescriptor(n,e);l(r,e+" method",`cache.${t}()`,o)}},a=(...e)=>{"object"==typeof process&&process&&"function"==typeof process.emitWarning?process.emitWarning(...e):console.error(...e)},c=e=>!o.has(e),l=(e,t,r,n)=>{o.add(e),a(`The ${t} is deprecated. Please use ${r} instead.`,"DeprecationWarning",e,n)},u=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),d=e=>u(e)?e>256?e>65536?e>4294967296?e>Number.MAX_SAFE_INTEGER?null:p:Uint32Array:Uint16Array:Uint8Array:null;class p extends Array{constructor(e){super(e),this.fill(0)}}class h{constructor(e){if(0===e)return[];const t=d(e);this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}}class f{constructor(e={}){const{max:t=0,ttl:r,ttlResolution:n=1,ttlAutopurge:s,updateAgeOnGet:l,updateAgeOnHas:p,allowStale:m,dispose:g,disposeAfter:v,noDisposeOnSet:y,noUpdateTTL:x,maxSize:w=0,sizeCalculation:b,fetchMethod:E}=e,{length:S,maxAge:O,stale:_}=e instanceof f?{}:e;if(0!==t&&!u(t))throw new TypeError("max option must be a nonnegative integer");const T=t?d(t):Array;if(!T)throw Error("invalid max value: "+t);if(this.max=t,this.maxSize=w,this.sizeCalculation=b||S,this.sizeCalculation){if(!this.maxSize)throw new TypeError("cannot set sizeCalculation without setting maxSize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(this.fetchMethod=E||null,this.fetchMethod&&"function"!=typeof this.fetchMethod)throw new TypeError("fetchMethod must be a function if specified");if(this.keyMap=new Map,this.keyList=Array(t).fill(null),this.valList=Array(t).fill(null),this.next=new T(t),this.prev=new T(t),this.head=0,this.tail=0,this.free=new h(t),this.initialFill=1,this.size=0,"function"==typeof g&&(this.dispose=g),"function"==typeof v?(this.disposeAfter=v,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!y,this.noUpdateTTL=!!x,0!==this.maxSize){if(!u(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!m||!!_,this.updateAgeOnGet=!!l,this.updateAgeOnHas=!!p,this.ttlResolution=u(n)||0===n?n:1,this.ttlAutopurge=!!s,this.ttl=r||O||0,this.ttl){if(!u(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.initializeTTLTracking()}if(0===this.max&&0===this.ttl&&0===this.maxSize)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.max&&!this.maxSize){const e="LRU_CACHE_UNBOUNDED";c(e)&&(o.add(e),a("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",e,f))}_&&i("stale","allowStale"),O&&i("maxAge","ttl"),S&&i("length","sizeCalculation")}getRemainingTTL(e){return this.has(e,{updateAgeOnHas:!1})?1/0:0}initializeTTLTracking(){this.ttls=new p(this.max),this.starts=new p(this.max),this.setItemTTL=(e,t)=>{if(this.starts[e]=0!==t?r.now():0,this.ttls[e]=t,0!==t&&this.ttlAutopurge){const r=setTimeout((()=>{this.isStale(e)&&this.delete(this.keyList[e])}),t+1);r.unref&&r.unref()}},this.updateItemAge=e=>{this.starts[e]=0!==this.ttls[e]?r.now():0};let e=0;const t=()=>{const t=r.now();if(this.ttlResolution>0){e=t;const r=setTimeout((()=>e=0),this.ttlResolution);r.unref&&r.unref()}return t};this.getRemainingTTL=r=>{const n=this.keyMap.get(r);return void 0===n?0:0===this.ttls[n]||0===this.starts[n]?1/0:this.starts[n]+this.ttls[n]-(e||t())},this.isStale=r=>0!==this.ttls[r]&&0!==this.starts[r]&&(e||t())-this.starts[r]>this.ttls[r]}updateItemAge(e){}setItemTTL(e,t){}isStale(e){return!1}initializeSizeTracking(){this.calculatedSize=0,this.sizes=new p(this.max),this.removeItemSize=e=>this.calculatedSize-=this.sizes[e],this.requireSize=(e,t,r,n)=>{if(!u(r)){if(!n)throw new TypeError("invalid size value (must be positive integer)");if("function"!=typeof n)throw new TypeError("sizeCalculation must be a function");if(r=n(t,e),!u(r))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return r},this.addItemSize=(e,t,r,n)=>{this.sizes[e]=n;const o=this.maxSize-this.sizes[e];for(;this.calculatedSize>o;)this.evict(!0);this.calculatedSize+=this.sizes[e]},this.delete=e=>{if(0!==this.size){const t=this.keyMap.get(e);void 0!==t&&(this.calculatedSize-=this.sizes[t])}return f.prototype.delete.call(this,e)}}removeItemSize(e){}addItemSize(e,t,r,n){}requireSize(e,t,r,n){if(r||n)throw new TypeError("cannot set size without setting maxSize on cache")}*indexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.tail;this.isValidIndex(t)&&(!e&&this.isStale(t)||(yield t),t!==this.head);)t=this.prev[t]}*rindexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.head;this.isValidIndex(t)&&(!e&&this.isStale(t)||(yield t),t!==this.tail);)t=this.next[t]}isValidIndex(e){return this.keyMap.get(this.keyList[e])===e}*entries(){for(const e of this.indexes())yield[this.keyList[e],this.valList[e]]}*rentries(){for(const e of this.rindexes())yield[this.keyList[e],this.valList[e]]}*keys(){for(const e of this.indexes())yield this.keyList[e]}*rkeys(){for(const e of this.rindexes())yield this.keyList[e]}*values(){for(const e of this.indexes())yield this.valList[e]}*rvalues(){for(const e of this.rindexes())yield this.valList[e]}[Symbol.iterator](){return this.entries()}find(e,t={}){for(const r of this.indexes())if(e(this.valList[r],this.keyList[r],this))return this.get(this.keyList[r],t)}forEach(e,t=this){for(const r of this.indexes())e.call(t,this.valList[r],this.keyList[r],this)}rforEach(e,t=this){for(const r of this.rindexes())e.call(t,this.valList[r],this.keyList[r],this)}get prune(){return s("prune","purgeStale"),this.purgeStale}purgeStale(){let e=!1;for(const t of this.rindexes({allowStale:!0}))this.isStale(t)&&(this.delete(this.keyList[t]),e=!0);return e}dump(){const e=[];for(const t of this.indexes()){const r=this.keyList[t],n={value:this.valList[t]};this.ttls&&(n.ttl=this.ttls[t]),this.sizes&&(n.size=this.sizes[t]),e.unshift([r,n])}return e}load(e){this.clear();for(const[t,r]of e)this.set(t,r.value,r)}dispose(e,t,r){}set(e,t,{ttl:r=this.ttl,noDisposeOnSet:n=this.noDisposeOnSet,size:o=0,sizeCalculation:i=this.sizeCalculation,noUpdateTTL:s=this.noUpdateTTL}={}){o=this.requireSize(e,t,o,i);let a=0===this.size?void 0:this.keyMap.get(e);if(void 0===a)a=this.newIndex(),this.keyList[a]=e,this.valList[a]=t,this.keyMap.set(e,a),this.next[this.tail]=a,this.prev[a]=this.tail,this.tail=a,this.size++,this.addItemSize(a,t,e,o),s=!1;else{const r=this.valList[a];t!==r&&(this.isBackgroundFetch(r)?r.__abortController.abort():n||(this.dispose(r,e,"set"),this.disposeAfter&&this.disposed.push([r,e,"set"])),this.removeItemSize(a),this.valList[a]=t,this.addItemSize(a,t,e,o)),this.moveToTail(a)}if(0===r||0!==this.ttl||this.ttls||this.initializeTTLTracking(),s||this.setItemTTL(a,r),this.disposeAfter)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return this}newIndex(){return 0===this.size?this.tail:this.size===this.max&&0!==this.max?this.evict(!1):0!==this.free.length?this.free.pop():this.initialFill++}pop(){if(this.size){const e=this.valList[this.head];return this.evict(!0),e}}evict(e){const t=this.head,r=this.keyList[t],n=this.valList[t];return this.isBackgroundFetch(n)?n.__abortController.abort():(this.dispose(n,r,"evict"),this.disposeAfter&&this.disposed.push([n,r,"evict"])),this.removeItemSize(t),e&&(this.keyList[t]=null,this.valList[t]=null,this.free.push(t)),this.head=this.next[t],this.keyMap.delete(r),this.size--,t}has(e,{updateAgeOnHas:t=this.updateAgeOnHas}={}){const r=this.keyMap.get(e);return void 0!==r&&!this.isStale(r)&&(t&&this.updateItemAge(r),!0)}peek(e,{allowStale:t=this.allowStale}={}){const r=this.keyMap.get(e);if(void 0!==r&&(t||!this.isStale(r)))return this.valList[r]}backgroundFetch(e,t,r){const o=void 0===t?void 0:this.valList[t];if(this.isBackgroundFetch(o))return o;const i=new n,s={signal:i.signal,options:r},a=Promise.resolve(this.fetchMethod(e,o,s)).then((t=>(i.signal.aborted||this.set(e,t,s.options),t)));return a.__abortController=i,a.__staleWhileFetching=o,void 0===t?(this.set(e,a,s.options),t=this.keyMap.get(e)):this.valList[t]=a,a}isBackgroundFetch(e){return e&&"object"==typeof e&&"function"==typeof e.then&&{}.hasOwnProperty.call(e,"__staleWhileFetching")}async fetch(e,{allowStale:t=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,ttl:n=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:i=0,sizeCalculation:s=this.sizeCalculation,noUpdateTTL:a=this.noUpdateTTL}={}){if(!this.fetchMethod)return this.get(e,{allowStale:t,updateAgeOnGet:r});const c={allowStale:t,updateAgeOnGet:r,ttl:n,noDisposeOnSet:o,size:i,sizeCalculation:s,noUpdateTTL:a};let l=this.keyMap.get(e);if(void 0===l)return this.backgroundFetch(e,l,c);{const n=this.valList[l];if(this.isBackgroundFetch(n))return t&&void 0!==n.__staleWhileFetching?n.__staleWhileFetching:n;if(!this.isStale(l))return this.moveToTail(l),r&&this.updateItemAge(l),n;const o=this.backgroundFetch(e,l,c);return t&&void 0!==o.__staleWhileFetching?o.__staleWhileFetching:o}}get(e,{allowStale:t=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet}={}){const n=this.keyMap.get(e);if(void 0!==n){const o=this.valList[n],i=this.isBackgroundFetch(o);if(this.isStale(n))return i?t?o.__staleWhileFetching:void 0:(this.delete(e),t?o:void 0);if(i)return;return this.moveToTail(n),r&&this.updateItemAge(n),o}}connect(e,t){this.prev[t]=e,this.next[e]=t}moveToTail(e){e!==this.tail&&(e===this.head?this.head=this.next[e]:this.connect(this.prev[e],this.next[e]),this.connect(this.tail,e),this.tail=e)}get del(){return s("del","delete"),this.delete}delete(e){let t=!1;if(0!==this.size){const r=this.keyMap.get(e);if(void 0!==r)if(t=!0,1===this.size)this.clear();else{this.removeItemSize(r);const t=this.valList[r];this.isBackgroundFetch(t)?t.__abortController.abort():(this.dispose(t,e,"delete"),this.disposeAfter&&this.disposed.push([t,e,"delete"])),this.keyMap.delete(e),this.keyList[r]=null,this.valList[r]=null,r===this.tail?this.tail=this.prev[r]:r===this.head?this.head=this.next[r]:(this.next[this.prev[r]]=this.next[r],this.prev[this.next[r]]=this.prev[r]),this.size--,this.free.push(r)}}if(this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return t}clear(){for(const e of this.rindexes({allowStale:!0})){const t=this.valList[e];if(this.isBackgroundFetch(t))t.__abortController.abort();else{const r=this.keyList[e];this.dispose(t,r,"delete"),this.disposeAfter&&this.disposed.push([t,r,"delete"])}}if(this.keyMap.clear(),this.valList.fill(null),this.keyList.fill(null),this.ttls&&(this.ttls.fill(0),this.starts.fill(0)),this.sizes&&this.sizes.fill(0),this.head=0,this.tail=0,this.initialFill=1,this.free.length=0,this.calculatedSize=0,this.size=0,this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift())}get reset(){return s("reset","clear"),this.clear}get length(){return((e,t)=>{const r="LRU_CACHE_PROPERTY_length";if(c(r)){const{prototype:e}=f,{get:t}=Object.getOwnPropertyDescriptor(e,"length");l(r,"length property","cache.size",t)}})(),this.size}}e.exports=f})),Ot.register("3njbl",((e,t)=>{var r=Ot("91aii");e.exports=(e,t,n)=>{try{t=new r(t,n)}catch(e){return!1}return t.test(e)}})),Ot.register("f6D2c",((e,t)=>{var r=Ot("91aii");e.exports=(e,t)=>new r(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))})),Ot.register("9QfVs",((e,t)=>{var r=Ot("bCyR3"),n=Ot("91aii");e.exports=(e,t,o)=>{let i=null,s=null,a=null;try{a=new n(t,o)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(i&&-1!==s.compare(e)||(i=e,s=new r(i,o)))})),i}})),Ot.register("cReYU",((e,t)=>{var r=Ot("bCyR3"),n=Ot("91aii");e.exports=(e,t,o)=>{let i=null,s=null,a=null;try{a=new n(t,o)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(i&&1!==s.compare(e)||(i=e,s=new r(i,o)))})),i}})),Ot.register("cIhxo",((e,t)=>{var r=Ot("bCyR3"),n=Ot("91aii"),o=Ot("bmjaY");e.exports=(e,t)=>{e=new n(e,t);let i=new r("0.0.0");if(e.test(i))return i;if(i=new r("0.0.0-0"),e.test(i))return i;i=null;for(let t=0;e.set.length>t;++t){let n=null;e.set[t].forEach((e=>{const t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!o(t,n)||(n=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator)}})),!n||i&&!o(i,n)||(i=n)}return i&&e.test(i)?i:null}})),Ot.register("gIL2L",((e,t)=>{var r=Ot("91aii");e.exports=(e,t)=>{try{return new r(e,t).range||"*"}catch(e){return null}}})),Ot.register("gUhUf",((e,t)=>{var r=Ot("bCyR3"),n=Ot("hktyb");const{ANY:o}=n;var i=Ot("91aii"),s=Ot("3njbl"),a=Ot("bmjaY"),c=Ot("chPew"),l=Ot("9Kys9"),u=Ot("jVRwJ");e.exports=(e,t,d,p)=>{let h,f,m,g,v;switch(e=new r(e,p),t=new i(t,p),d){case">":h=a,f=l,m=c,g=">",v=">=";break;case"<":h=c,f=u,m=a,g="<",v="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(s(e,t,p))return!1;for(let r=0;t.set.length>r;++r){let i=null,s=null;if(t.set[r].forEach((e=>{e.semver===o&&(e=new n(">=0.0.0")),i=i||e,s=s||e,h(e.semver,i.semver,p)?i=e:m(e.semver,s.semver,p)&&(s=e)})),i.operator===g||i.operator===v)return!1;if((!s.operator||s.operator===g)&&f(e,s.semver))return!1;if(s.operator===v&&m(e,s.semver))return!1}return!0}})),Ot.register("k64sy",((e,t)=>{var r=Ot("gUhUf");e.exports=(e,t,n)=>r(e,t,">",n)})),Ot.register("lgOoT",((e,t)=>{var r=Ot("gUhUf");e.exports=(e,t,n)=>r(e,t,"<",n)})),Ot.register("k0m8E",((e,t)=>{var r=Ot("91aii");e.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t))})),Ot.register("lUXp0",((e,t)=>{var r=Ot("3njbl"),n=Ot("1eEUU");e.exports=(e,t,o)=>{const i=[];let s=null,a=null;const c=e.sort(((e,t)=>n(e,t,o)));for(const e of c)r(e,t,o)?(a=e,s||(s=e)):(a&&i.push([s,a]),a=null,s=null);s&&i.push([s,null]);const l=[];for(const[e,t]of i)l.push(e===t?e:t||e!==c[0]?t?e===c[0]?"<="+t:`${e} - ${t}`:">="+e:"*");const u=l.join(" || ");return("string"==typeof t.raw?t.raw:t+"").length>u.length?u:t}})),Ot.register("2JpyI",((e,t)=>{var r=Ot("91aii"),n=Ot("hktyb");const{ANY:o}=n;var i=Ot("3njbl"),s=Ot("1eEUU");const a=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===o){if(1===t.length&&t[0].semver===o)return!0;e=r.includePrerelease?[new n(">=0.0.0-0")]:[new n(">=0.0.0")]}if(1===t.length&&t[0].semver===o){if(r.includePrerelease)return!0;t=[new n(">=0.0.0")]}const a=new Set;let u,d,p,h,f,m,g;for(const t of e)">"===t.operator||">="===t.operator?u=c(u,t,r):"<"===t.operator||"<="===t.operator?d=l(d,t,r):a.add(t.semver);if(a.size>1)return null;if(u&&d){if(p=s(u.semver,d.semver,r),p>0)return null;if(0===p&&(">="!==u.operator||"<="!==d.operator))return null}for(const e of a){if(u&&!i(e,u+"",r))return null;if(d&&!i(e,d+"",r))return null;for(const n of t)if(!i(e,n+"",r))return!1;return!0}let v=!(!d||r.includePrerelease||!d.semver.prerelease.length)&&d.semver,y=!(!u||r.includePrerelease||!u.semver.prerelease.length)&&u.semver;v&&1===v.prerelease.length&&"<"===d.operator&&0===v.prerelease[0]&&(v=!1);for(const e of t){if(g=g||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,u)if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),">"===e.operator||">="===e.operator){if(h=c(u,e,r),h===e&&h!==u)return!1}else if(">="===u.operator&&!i(u.semver,e+"",r))return!1;if(d)if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),"<"===e.operator||"<="===e.operator){if(f=l(d,e,r),f===e&&f!==d)return!1}else if("<="===d.operator&&!i(d.semver,e+"",r))return!1;if(!e.operator&&(d||u)&&0!==p)return!1}return!(u&&m&&!d&&0!==p||d&&g&&!u&&0!==p||y||v)},c=(e,t,r)=>{if(!e)return t;const n=s(e.semver,t.semver,r);return n>0?e:0>n||">"===t.operator&&">="===e.operator?t:e},l=(e,t,r)=>{if(!e)return t;const n=s(e.semver,t.semver,r);return 0>n?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new r(e,n),t=new r(t,n);let o=!1;e:for(const r of e.set){for(const e of t.set){const t=a(r,e,n);if(o=o||null!==t,t)continue e}if(o)return!1}return!0}})),Ot.register("8sanl",((e,t)=>{var r=Ot("jBVqO"),n=Ot("5H1AS");e.exports=(e,t,o)=>{var i=t&&o||0;"string"==typeof e&&(t="binary"===e?Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||r)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var a=0;16>a;++a)t[i+a]=s[a];return t||n(s)}})),Ot.register("jBVqO",((e,t)=>{e.exports=()=>at.randomBytes(16)})),Ot.register("5H1AS",((e,t)=>{for(var r=[],n=0;256>n;++n)r[n]=(n+256).toString(16).substr(1);e.exports=(e,t)=>{var n=t||0;return""+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]}})),Ot.register("2bg3w",(function(e,t){"use strict";function r(e,t,r){return s(this,void 0,void 0,(function*(){const n=a.argStringToArray(e);if(0===n.length)throw Error("Parameter 'commandLine' cannot be null or empty.");const o=n[0];return t=n.slice(1).concat(t||[]),new a.ToolRunner(o,t,r).exec()}))}var n=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),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 o(t,e),t}),s=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,i)=>{function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getExecOutput=e.exports.exec=void 0;const a=i(Ot("dW3zn"));e.exports.exec=r,e.exports.getExecOutput=function(e,t,n){var o,i;return s(this,void 0,void 0,(function*(){let s="",a="";const c=new mt.StringDecoder("utf8"),l=new mt.StringDecoder("utf8"),u=null===(o=null==n?void 0:n.listeners)||void 0===o?void 0:o.stdout,d=null===(i=null==n?void 0:n.listeners)||void 0===i?void 0:i.stderr,p=Object.assign(Object.assign({},null==n?void 0:n.listeners),{stdout(e){s+=c.write(e),u&&u(e)},stderr(e){a+=l.write(e),d&&d(e)}}),h=yield r(e,t,Object.assign(Object.assign({},n),{listeners:p}));return s+=c.end(),a+=l.end(),{exitCode:h,stdout:s,stderr:a}}))}})),Ot.register("dW3zn",(function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),o=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&r(t,e,o);return n(t,e),t}),i=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,i)=>{function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.argStringToArray=e.exports.ToolRunner=void 0;const s=o(ot),a=o(dt),c=o(ft),l=o(it),u=o(Ot("cczJY")),d=o(Ot("6x28s")),p="win32"===process.platform;e.exports.ToolRunner=class extends a.EventEmitter{constructor(e,t,r){if(super(),!e)throw Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=t||[],this.options=r||{}}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e)}_getCommandString(e,t){const r=this._getSpawnFileName(),n=this._getSpawnArgs(e);let o=t?"":"[command]";if(p)if(this._isCmdFile()){o+=r;for(const e of n)o+=" "+e}else if(e.windowsVerbatimArguments){o+=`"${r}"`;for(const e of n)o+=" "+e}else{o+=this._windowsQuoteCmdArg(r);for(const e of n)o+=" "+this._windowsQuoteCmdArg(e)}else{o+=r;for(const e of n)o+=" "+e}return o}_processLineBuffer(e,t,r){try{let n=t+""+e,o=n.indexOf(s.EOL);for(;o>-1;)r(n.substring(0,o)),n=n.substring(o+s.EOL.length),o=n.indexOf(s.EOL);return n}catch(e){return this._debug("error processing line. Failed with error "+e),""}}_getSpawnFileName(){return p&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(e){if(p&&this._isCmdFile()){let t='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath);for(const r of this.args)t+=" ",t+=e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r);return t+='"',[t]}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile())return this._uvQuoteCmdArg(e);if(!e)return'""';const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let r=!1;for(const n of e)if(t.some((e=>e===n))){r=!0;break}if(!r)return e;let n='"',o=!0;for(let t=e.length;t>0;t--)n+=e[t-1],o&&"\\"===e[t-1]?n+="\\":'"'===e[t-1]?(o=!0,n+='"'):o=!1;return n+='"',n.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let t='"',r=!0;for(let n=e.length;n>0;n--)t+=e[n-1],r&&"\\"===e[n-1]?t+="\\":'"'===e[n-1]?(r=!0,t+="\\"):r=!1;return t+='"',t.split("").reverse().join("")}_cloneExecOptions(e){const t={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t}_getSpawnOptions(e,t){const r={};return r.cwd=(e=e||{}).cwd,r.env=e.env,r.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(r.argv0=`"${t}"`),r}exec(){return i(this,void 0,void 0,(function*(){return!d.isRooted(this.toolPath)&&(this.toolPath.includes("/")||p&&this.toolPath.includes("\\"))&&(this.toolPath=l.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield u.which(this.toolPath,!0),new Promise(((e,t)=>i(this,void 0,void 0,(function*(){this._debug("exec tool: "+this.toolPath),this._debug("arguments:");for(const e of this.args)this._debug(" "+e);const r=this._cloneExecOptions(this.options);!r.silent&&r.outStream&&r.outStream.write(this._getCommandString(r)+s.EOL);const n=new h(r,this.toolPath);if(n.on("debug",(e=>{this._debug(e)})),this.options.cwd&&!(yield d.exists(this.options.cwd)))return t(Error(`The cwd: ${this.options.cwd} does not exist!`));const o=this._getSpawnFileName(),i=c.spawn(o,this._getSpawnArgs(r),this._getSpawnOptions(this.options,o));let a="";i.stdout&&i.stdout.on("data",(e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!r.silent&&r.outStream&&r.outStream.write(e),a=this._processLineBuffer(e,a,(e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e)}))}));let l="";if(i.stderr&&i.stderr.on("data",(e=>{n.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!r.silent&&r.errStream&&r.outStream&&(r.failOnStdErr?r.errStream:r.outStream).write(e),l=this._processLineBuffer(e,l,(e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e)}))})),i.on("error",(e=>{n.processError=e.message,n.processExited=!0,n.processClosed=!0,n.CheckComplete()})),i.on("exit",(e=>{n.processExitCode=e,n.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),n.CheckComplete()})),i.on("close",(e=>{n.processExitCode=e,n.processExited=!0,n.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),n.CheckComplete()})),n.on("done",((r,n)=>{a.length>0&&this.emit("stdline",a),l.length>0&&this.emit("errline",l),i.removeAllListeners(),r?t(r):e(n)})),this.options.input){if(!i.stdin)throw Error("child process missing stdin");i.stdin.end(this.options.input)}}))))}))}},e.exports.argStringToArray=e=>{function t(e){o&&'"'!==e&&(i+="\\"),i+=e,o=!1}const r=[];let n=!1,o=!1,i="";for(let s=0;e.length>s;s++){const a=e.charAt(s);'"'!==a?"\\"===a&&o?t(a):"\\"===a&&n?o=!0:" "!==a||n?t(a):i.length>0&&(r.push(i),i=""):o?t(a):n=!n}return i.length>0&&r.push(i.trim()),r};class h extends a.EventEmitter{constructor(e,t){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!t)throw Error("toolPath must not be empty");this.options=e,this.toolPath=t,e.delay&&(this.delay=e.delay)}CheckComplete(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=gt.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())}}})),Ot.register("6BjA5",((e,t)=>{e.exports=Promise.resolve(require("./actions_python.cab43f85.js")).then((()=>Ot("ijScl")))})),Ot.register("9atXJ",((e,t)=>{function r(e){Array.isArray(e)||(e=[e]);for(const t of e){const{id:e,data:r}=t;c[e]=r}}function n(e,t,r){const n=(e=>{const t=c[e.locale];let r=e.unitTypeLookupOrder.slice();r.unshift(e.unitType),r=Array.from(new Set(r));let n=null;if(r.some((e=>{if(void 0!==t[e])return n=t[e],!0})),null===n)throw Error("Can not find any unit type data for locale: "+e.locale);return n})(r);return o.pluralize(r.locale,t,n[e]).replace("{0}",t)}var o=Ot("78qQg"),i=Ot("ifq1q");const s=[["years",290304e5],["months",24192e5],["weeks",6048e5],["days",864e5],["hours",36e5],["minutes",6e4],["seconds",1e3]],a={locale:"en",span:2,delimiter:", ",unitType:"long",unitTypeLookupOrder:["long","short","narrow"],autoloadLocales:!0},c={};e.exports={create(e){return e=Object.assign({},a,e||{}),{format(t,o,a){return((e,t,o)=>{if(((e,t)=>{const{autoload:n}=t;if(!c[e]){if(!i||!n)throw Error(`Missing locale: ${e}, you must load it manually before using it`);(e=>{try{r(require(`../locales/${e}.js`))}catch(t){throw Error(`Failed to load locale: ${e} from ../locales/${e}.js. If using a bundled time-delta, set 'autoloadLocales: false' in the config: ${t}`)}})(e)}})(o.locale,{autoload:o.autoloadLocales}),!e)throw Error("Missing first date argument");if(!t)throw Error("Missing second date argument");const a=((e,t)=>{let r=t-e;const n=[];return s.some((e=>{const t=e[0],o=e[1],i=Math.floor(r/o);if(r-=i*o,n.push([t,i]),0>=r)return!0})),n})(e,t),l=[];for(const e of a){const[t,r]=e;if(r>0&&l.push(n(t,r,o)),l.length>=o.span)break}return l.join(o.delimiter)})(t,o,a=Object.assign({},e,a||{}))}}},addLocale:r,defaultConfig:a}})),Ot.register("78qQg",((e,t)=>{e.exports=Ot("e40J2")})),Ot.register("e40J2",(function(e,t){var r=it.resolve(__dirname,"../../node_modules/.pnpm/numerous@1.0.3/node_modules/numerous/lib");(function(){"use strict";function t(e,t,r){if(n(e),"object"!=typeof r)throw Error("List of variants should be specified as an object");var i=o[e](t);return void 0!==r[i]?r[i]:null}function n(e){(e=>void 0!==o[e])(e)||(e=>{try{require(r+"/../locales/"+e+".js")}catch(t){throw Error("Failed to load the following locale: "+e)}})(e)}var o={},i={create(e){return n(e),{pluralize(r,n){return t(e,r,n)}}},addLocale(e,t){o[e]=t},pluralize:t};void 0!==e.exports?e.exports=i:this.numerous=i}).call(e.exports)})),Ot.register("ifq1q",((e,t)=>{"use strict";e.exports=!("undefined"==typeof process||!process.versions||!process.versions.node)}));var _t,Tt=Ot("lXEOe"),Ct={},$t={},Pt={},Rt={};const It="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,At=It?";":":";var Nt,kt={};Nt="win32"===process.platform||bt.TESTING_WINDOWS?Ot("52wAv"):Ot("jwcoa"),kt=r,r.sync=(e,t)=>{try{return Nt.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e}};const Lt=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),jt=(e,t)=>{const r=t.colon||At,n=e.match(/\//)||It&&e.match(/\\/)?[""]:[...It?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],o=It?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",i=It?o.split(r):[""];return It&&-1!==e.indexOf(".")&&""!==i[0]&&i.unshift(""),{pathEnv:n,pathExt:i,pathExtExe:o}},Dt=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});const{pathEnv:n,pathExt:o,pathExtExe:i}=jt(e,t),s=[],a=r=>new Promise(((o,i)=>{if(r===n.length)return t.all&&s.length?o(s):i(Lt(e));const a=n[r],l=/^".*"$/.test(a)?a.slice(1,-1):a,u=it.join(l,e),d=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u;o(c(d,r,0))})),c=(e,r,n)=>new Promise(((l,u)=>{if(n===o.length)return l(a(r+1));const d=o[n];kt(e+d,{pathExt:i},((o,i)=>{if(!o&&i){if(!t.all)return l(e+d);s.push(e+d)}return l(c(e,r,n+1))}))}));return r?a(0).then((e=>r(null,e)),r):a(0)};Rt=Dt,Dt.sync=(e,t)=>{t=t||{};const{pathEnv:r,pathExt:n,pathExtExe:o}=jt(e,t),i=[];for(let s=0;r.length>s;s++){const a=r[s],c=/^".*"$/.test(a)?a.slice(1,-1):a,l=it.join(c,e),u=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+l:l;for(let e=0;n.length>e;e++){const r=u+n[e];try{if(kt.sync(r,{pathExt:o})){if(!t.all)return r;i.push(r)}}catch(e){}}}if(t.all&&i.length)return i;if(t.nothrow)return null;throw Lt(e)};var Ut={};const Mt=(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 Ft,Gt;(Ut=Mt).default=Mt,_t=e=>n(e)||n(e,!0);const Bt=/([()\][%!^"`<>&|;, *?])/g;Ft=e=>e.replace(Bt,"^$1"),Gt=(e,t)=>(e=(e=`"${e=(e=(e=""+e).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(Bt,"^$1"),t&&(e=e.replace(Bt,"^$1")),e);var zt,Ht,Vt;Ht=/^#!(.*)/,zt=(e="")=>{const t=e.match(Ht);if(!t)return null;const[r,n]=t[0].replace(/#! ?/,"").split(" "),o=r.split("/").pop();return"env"===o?n:n?`${o} ${n}`:o},Vt=e=>{const t=Buffer.alloc(150);let r;try{r=st.openSync(e,"r"),st.readSync(r,t,0,150,0),st.closeSync(r)}catch(e){}return zt(""+t)};const qt="win32"===process.platform,Xt=/\.(?:com|exe)$/i,Wt=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;Pt=(e,t,r)=>{t&&!Array.isArray(t)&&(r=t,t=null);const n={command:e,args:t=t?t.slice(0):[],options:r=Object.assign({},r),file:void 0,original:{command:e,args:t}};return r.shell?n:(e=>{if(!qt)return e;const t=(e=>{e.file=_t(e);const t=e.file&&Vt(e.file);return t?(e.args.unshift(e.file),e.command=t,_t(e)):e.file})(e),r=!Xt.test(t);if(e.options.forceShell||r){const r=Wt.test(t);e.command=it.normalize(e.command),e.command=Ft(e.command),e.args=e.args.map((e=>Gt(e,r)));const n=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${n}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e})(n)};var Yt={};const Kt="win32"===process.platform;var Zt;Yt={hookChildProcess(e,t){if(!Kt)return;const r=e.emit;e.emit=function(n,o){if("exit"===n){const n=i(o,t);if(n)return r.call(e,"error",n)}return r.apply(e,arguments)}},verifyENOENT:i,verifyENOENTSync(e,t){return Kt&&1===e&&!t.file?o(t.original,"spawnSync"):null},notFoundError:o},($t=s).spawn=s,$t.sync=(e,t,r)=>{const n=Pt(e,t,r),o=ft.spawnSync(n.command,n.args,n.options);return o.error=o.error||Yt.verifyENOENTSync(o.status,n),o},$t._parse=Pt,$t._enoent=Yt,Zt=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 Jt={};const Qt=e=>{let t;e={cwd:process.cwd(),path:process.env[Ut()],execPath:process.execPath,...e};let r=it.resolve(e.cwd);const n=[];for(;t!==r;)n.push(it.join(r,"node_modules/.bin")),t=r,r=it.resolve(r,"..");const o=it.resolve(e.cwd,e.execPath,"..");return n.push(o),n.concat(e.path).join(it.delimiter)};(Jt=Qt).default=Qt,Jt.env=e=>{const t={...(e={env:process.env,...e}).env},r=Ut({env:t});return e.path=t[r],t[r]=Jt(e),t};var er={},tr={};const rr=(e,t)=>{for(const r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};(tr=rr).default=rr;const nr=new WeakMap,or=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let r,n=0;const o=e.displayName||e.name||"<anonymous>",i=function(...s){if(nr.set(i,++n),1===n)r=e.apply(this,s),e=null;else if(!0===t.throw)throw Error(`Function \`${o}\` can only be called once`);return r};return tr(i,e),nr.set(i,n),i};(er=or).default=or,er.callCount=e=>{if(!nr.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return nr.get(e)};var ir,sr={};Object.defineProperty(sr,"__esModule",{value:!0}),sr.signalsByNumber=sr.signalsByName=void 0;var ar={};Object.defineProperty(ar,"__esModule",{value:!0}),ar.getSignals=void 0;var cr={};Object.defineProperty(cr,"__esModule",{value:!0}),cr.SIGNALS=void 0,cr.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 lr={};Object.defineProperty(lr,"__esModule",{value:!0}),lr.SIGRTMAX=lr.getRealtimeSignals=void 0,lr.getRealtimeSignals=()=>Array.from({length:pr-dr+1},ur);const ur=(e,t)=>({name:"SIGRT"+(t+1),number:dr+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),dr=34,pr=64;lr.SIGRTMAX=pr,ar.getSignals=()=>{const e=(0,lr.getRealtimeSignals)();return[...cr.SIGNALS,...e].map(hr)};const hr=({name:e,number:t,description:r,action:n,forced:o=!1,standard:i})=>{const{signals:{[e]:s}}=ot.constants,a=void 0!==s;return{name:e,number:a?s:t,description:r,supported:a,action:n,forced:o,standard:i}},fr=(0,ar.getSignals)().reduce(((e,{name:t,number:r,description:n,supported:o,action:i,forced:s,standard:a})=>({...e,[t]:{name:t,number:r,description:n,supported:o,action:i,forced:s,standard:a}})),{});sr.signalsByName=fr;const mr=(()=>{const e=(0,ar.getSignals)(),t=Array.from({length:lr.SIGRTMAX+1},((t,r)=>((e,t)=>{const r=((e,t)=>{const r=t.find((({name:t})=>ot.constants.signals[t]===e));return void 0!==r?r:t.find((t=>t.number===e))})(e,t);if(void 0===r)return{};const{name:n,description:o,supported:i,action:s,forced:a,standard:c}=r;return{[e]:{name:n,number:e,description:o,supported:i,action:s,forced:a,standard:c}}})(r,e)));return Object.assign({},...t)})();sr.signalsByNumber=mr;var gr=sr.signalsByName;ir=({stdout:e,stderr:t,all:r,error:n,signal:o,exitCode:i,command:s,escapedCommand:a,timedOut:c,isCanceled:l,killed:u,parsed:{options:{timeout:d}}})=>{const p=void 0===(o=null===o?void 0:o)?void 0:gr[o].description,h=(({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:o,exitCode:i,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":void 0!==r?"failed with "+r:void 0!==n?`was killed with ${n} (${o})`:void 0!==i?"failed with exit code "+i:"failed")({timedOut:c,timeout:d,errorCode:n&&n.code,signal:o,signalDescription:p,exitCode:i=null===i?void 0:i,isCanceled:l}),f=`Command ${h}: ${s}`,m="[object Error]"==={}.toString.call(n),g=m?`${f}\n${n.message}`:f,v=[g,t,e].filter(Boolean).join("\n");return m?(n.originalMessage=n.message,n.message=v):n=Error(v),n.shortMessage=g,n.command=s,n.escapedCommand=a,n.exitCode=i,n.signal=o,n.signalDescription=p,n.stdout=e,n.stderr=t,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!c,n.isCanceled=l,n.killed=u&&!c,n};var vr={};const yr=["stdin","stdout","stderr"],xr=e=>{if(!e)return;const{stdio:t}=e;if(void 0===t)return yr.map((t=>e[t]));if((e=>yr.some((t=>void 0!==e[t])))(e))throw Error("It's not possible to provide `stdio` in combination with one of "+yr.map((e=>`\`${e}\``)).join(", "));if("string"==typeof t)return t;if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);return Array.from({length:Math.max(t.length,yr.length)},((e,r)=>t[r]))};(vr=xr).node=e=>{const t=xr(e);return"ipc"===t?"ipc":void 0===t||"string"==typeof t?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"]};var wr,br={},Er=bt.process;const Sr=e=>e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on;if(Sr(Er)){var Or,_r=pt,Tr=Ot("4W4Te"),Cr=/^win/i.test(Er.platform),$r=dt;"function"!=typeof $r&&($r=$r.EventEmitter),Er.__signal_exit_emitter__?Or=Er.__signal_exit_emitter__:((Or=Er.__signal_exit_emitter__=new $r).count=0,Or.emitted={}),Or.infinite||(Or.setMaxListeners(1/0),Or.infinite=!0),br=(e,t)=>{if(!Sr(bt.process))return()=>{};_r.equal(typeof e,"function","a callback must be provided for exit handler"),!1===Ar&&Nr();var r="exit";return t&&t.alwaysLast&&(r="afterexit"),Or.on(r,e),()=>{Or.removeListener(r,e),0===Or.listeners("exit").length&&0===Or.listeners("afterexit").length&&Pr()}};var Pr=()=>{Ar&&Sr(bt.process)&&(Ar=!1,Tr.forEach((e=>{try{Er.removeListener(e,Ir[e])}catch(e){}})),Er.emit=jr,Er.reallyExit=kr,Or.count-=1)};br.unload=Pr;var Rr=(e,t,r)=>{Or.emitted[e]||(Or.emitted[e]=!0,Or.emit(e,t,r))},Ir={};Tr.forEach((e=>{Ir[e]=()=>{Sr(bt.process)&&Er.listeners(e).length===Or.count&&(Pr(),Rr("exit",null,e),Rr("afterexit",null,e),Cr&&"SIGHUP"===e&&(e="SIGINT"),Er.kill(Er.pid,e))}})),br.signals=()=>Tr;var Ar=!1,Nr=()=>{!Ar&&Sr(bt.process)&&(Ar=!0,Or.count+=1,Tr=Tr.filter((e=>{try{return Er.on(e,Ir[e]),!0}catch(e){return!1}})),Er.emit=Dr,Er.reallyExit=Lr)};br.load=Nr;var kr=Er.reallyExit,Lr=e=>{Sr(bt.process)&&(Er.exitCode=e||0,Rr("exit",Er.exitCode,null),Rr("afterexit",Er.exitCode,null),kr.call(Er,Er.exitCode))},jr=Er.emit,Dr=function(e,t){if("exit"===e&&Sr(bt.process)){void 0!==t&&(Er.exitCode=t);var r=jr.apply(this,arguments);return Rr("exit",Er.exitCode,null),Rr("afterexit",Er.exitCode,null),r}return jr.apply(this,arguments)}}else br=()=>()=>{};const Ur=e=>e===ot.constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase();var Mr,Fr=(wr={spawnedKill(e,t="SIGTERM",r={}){const n=e(t);return((e,t,r,n)=>{if(!((e,{forceKillAfterTimeout:t},r)=>Ur(e)&&!1!==t&&r)(t,r,n))return;const o=(({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||0>e)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e})(r),i=setTimeout((()=>{e("SIGKILL")}),o);i.unref&&i.unref()})(e,t,r,n),n},spawnedCancel(e,t){e.kill()&&(t.isCanceled=!0)},setupTimeout(e,{timeout:t,killSignal:r="SIGTERM"},n){if(0===t||void 0===t)return n;let o;const i=new Promise(((n,i)=>{o=setTimeout((()=>{((e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}))})(e,r,i)}),t)})),s=n.finally((()=>{clearTimeout(o)}));return Promise.race([i,s])},validateTimeout({timeout:e}){if(void 0!==e&&(!Number.isFinite(e)||0>e))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},async setExitHandler(e,{cleanup:t,detached:r},n){if(!t||r)return n;const o=br((()=>{e.kill()}));return n.finally((()=>{o()}))}}).spawnedKill,Gr=wr.spawnedCancel,Br=wr.setupTimeout,zr=wr.validateTimeout,Hr=wr.setExitHandler,Vr={};const qr=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;qr.writable=e=>qr(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,qr.readable=e=>qr(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,qr.duplex=e=>qr.writable(e)&&qr.readable(e),qr.transform=e=>qr.duplex(e)&&"function"==typeof e._transform,Vr=qr;var Xr,Wr={},Yr=vt.constants,Kr=yt.PassThrough;Xr=e=>{e={...e};const{array:t}=e;let{encoding:r}=e;const n="buffer"===r;let o=!1;t?o=!(r||n):r=r||"utf8",n&&(r=null);const i=new Kr({objectMode:o});r&&i.setEncoding(r);let s=0;const a=[];return i.on("data",(e=>{a.push(e),o?s=a.length:s+=e.length})),i.getBufferedValue=()=>t?a:n?Buffer.concat(a,s):a.join(""),i.getBufferedLength=()=>s,i};const Zr=(0,ht.promisify)(yt.pipeline);class Jr extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}(Wr=a).buffer=(e,t)=>a(e,{...t,encoding:"buffer"}),Wr.array=(e,t)=>a(e,{...t,array:!0}),Wr.MaxBufferError=Jr;var Qr,en=yt.PassThrough;Qr=function(){function e(t){return Array.isArray(t)?(t.forEach(e),this):(n.push(t),t.once("end",r.bind(null,t)),t.once("error",o.emit.bind(o,"error")),t.pipe(o,{end:!1}),this)}function t(){return 0==n.length}function r(e){!(n=n.filter((t=>t!==e))).length&&o.readable&&o.end()}var n=[],o=new en({objectMode:!0});return o.setMaxListeners(0),o.add=e,o.isEmpty=t,o.on("unpipe",r),[].slice.call(arguments).forEach(e),o};const tn=async(e,t)=>{if(e){e.destroy();try{return await t}catch(e){return e.bufferedData}}},rn=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?Wr(e,{encoding:t,maxBuffer:n}):Wr.buffer(e,{maxBuffer:n})};var nn,on=(Mr={handleInput(e,t){void 0!==t&&void 0!==e.stdin&&(Vr(t)?t.pipe(e.stdin):e.stdin.end(t))},makeAllStream(e,{all:t}){if(!t||!e.stdout&&!e.stderr)return;const r=Qr();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r},async getSpawnedResult({stdout:e,stderr:t,all:r},{encoding:n,buffer:o,maxBuffer:i},s){const a=rn(e,{encoding:n,buffer:o,maxBuffer:i}),c=rn(t,{encoding:n,buffer:o,maxBuffer:i}),l=rn(r,{encoding:n,buffer:o,maxBuffer:2*i});try{return await Promise.all([s,a,c,l])}catch(n){return Promise.all([{error:n,signal:n.signal,timedOut:n.timedOut},tn(e,a),tn(t,c),tn(r,l)])}},validateInputSync({input:e}){if(Vr(e))throw new TypeError("The `input` option cannot be a stream in sync mode")}}).handleInput,sn=Mr.getSpawnedResult,an=Mr.makeAllStream,cn=Mr.validateInputSync;const ln=(async()=>{})().constructor.prototype,un=["then","catch","finally"].map((e=>[e,Reflect.getOwnPropertyDescriptor(ln,e)]));var dn,pn=(nn={mergePromise(e,t){for(const[r,n]of un){const o="function"==typeof t?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:o})}return e},getSpawnedPromise(e){return new Promise(((t,r)=>{e.on("exit",((e,r)=>{t({exitCode:e,signal:r})})),e.on("error",(e=>{r(e)})),e.stdin&&e.stdin.on("error",(e=>{r(e)}))}))}}).mergePromise,hn=nn.getSpawnedPromise;const fn=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],mn=/^[\w.-]+$/,gn=/"/g,vn=/ +/g;var yn=(dn={joinCommand(e,t){return fn(e,t).join(" ")},getEscapedCommand(e,t){return fn(e,t).map((e=>(e=>"string"!=typeof e||mn.test(e)?e:`"${e.replace(gn,'\\"')}"`)(e))).join(" ")},parseCommand(e){const t=[];for(const r of e.trim().split(vn)){const e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${r}`:t.push(r)}return t}}).joinCommand,xn=dn.parseCommand,wn=dn.getEscapedCommand;const bn=(e,t,r={})=>{const n=$t._parse(e,t,r);return e=n.command,t=n.args,(r={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(r=n.options).cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...r}).env=(({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:o})=>{const i=t?{...process.env,...e}:e;return r?Jt.env({env:i,cwd:n,execPath:o}):i})(r),r.stdio=vr(r),"win32"===process.platform&&"cmd"===it.basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n}},En=(e,t,r)=>"string"==typeof t||Buffer.isBuffer(t)?e.stripFinalNewline?Zt(t):t:void 0===r?void 0:"",Sn=(e,t,r)=>{const n=bn(e,t,r),o=yn(e,t),i=wn(e,t);let s;zr(n.options);try{s=ft.spawn(n.file,n.args,n.options)}catch(e){const t=new ft.ChildProcess,r=Promise.reject(ir({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return pn(t,r)}const a=hn(s),c=Br(s,n.options,a),l=Hr(s,n.options,c),u={isCanceled:!1};s.kill=Fr.bind(null,s.kill.bind(s)),s.cancel=Gr.bind(null,s,u);const d=er((async()=>{const[{error:e,exitCode:t,signal:r,timedOut:a},c,d,p]=await sn(s,n.options,l),h=En(n.options,c),f=En(n.options,d),m=En(n.options,p);if(e||0!==t||null!==r){const c=ir({error:e,exitCode:t,signal:r,stdout:h,stderr:f,all:m,command:o,escapedCommand:i,parsed:n,timedOut:a,isCanceled:u.isCanceled,killed:s.killed});if(!n.options.reject)return c;throw c}return{command:o,escapedCommand:i,exitCode:0,stdout:h,stderr:f,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}));return on(s,n.options.input),s.all=an(s,n.options),pn(s,d)};(Ct=Sn).sync=(e,t,r)=>{const n=bn(e,t,r),o=yn(e,t),i=wn(e,t);let s;cn(n.options);try{s=ft.spawnSync(n.file,n.args,n.options)}catch(e){throw ir({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}const a=En(n.options,s.stdout,s.error),c=En(n.options,s.stderr,s.error);if(s.error||0!==s.status||null!==s.signal){const e=ir({stdout:a,stderr:c,error:s.error,signal:s.signal,exitCode:s.status,command:o,escapedCommand:i,parsed:n,timedOut:s.error&&"ETIMEDOUT"===s.error.code,isCanceled:!1,killed:null!==s.signal});if(!n.options.reject)return e;throw e}return{command:o,escapedCommand:i,exitCode:0,stdout:a,stderr:c,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},Ct.command=(e,t)=>{const[r,...n]=xn(e);return Sn(r,n,t)},Ct.commandSync=(e,t)=>{const[r,...n]=xn(e);return Sn.sync(r,n,t)},Ct.node=(e,t,r={})=>{t&&!Array.isArray(t)&&"object"==typeof t&&(r=t,t=[]);const n=vr.node(r),o=process.execArgv.filter((e=>!e.startsWith("--inspect"))),{nodePath:i=process.execPath,nodeOptions:s=o}=r;return Sn(i,[...s,e,...Array.isArray(t)?t:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})};var On,_n=Ot("jeNZZ"),Tn=it.join,Cn=it.delimiter,$n=it.sep,Pn=it.posix;const Rn="win32"===process.platform,In=RegExp(`[${Pn.sep}${$n===Pn.sep?"":$n}]`.replace(/(\\)/g,"\\$1")),An=RegExp("^\\."+In.source),Nn=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),kn=(e,{path:t=process.env.PATH,pathExt:r=process.env.PATHEXT,delimiter:n=Cn})=>{const o=e.match(In)?[""]:[...Rn?[process.cwd()]:[],...(t||"").split(n)];if(Rn){const t=r||[".EXE",".CMD",".BAT",".COM"].join(n),i=t.split(n);return e.includes(".")&&""!==i[0]&&i.unshift(""),{pathEnv:o,pathExt:i,pathExtExe:t}}return{pathEnv:o,pathExt:[""]}},Ln=(e,t)=>{const r=/^".*"$/.test(e)?e.slice(1,-1):e;return(!r&&An.test(t)?t.slice(0,2):"")+Tn(r,t)},jn=async(e,t={})=>{const{pathEnv:r,pathExt:n,pathExtExe:o}=kn(e,t),i=[];for(const s of r){const r=Ln(s,e);for(const e of n){const n=r+e;if(await kt(n,{pathExt:o,ignoreErrors:!0})){if(!t.all)return n;i.push(n)}}}if(t.all&&i.length)return i;if(t.nothrow)return null;throw Nn(e)};On=jn,jn.sync=(e,t={})=>{const{pathEnv:r,pathExt:n,pathExtExe:o}=kn(e,t),i=[];for(const s of r){const r=Ln(s,e);for(const e of n){const n=r+e;if(kt.sync(n,{pathExt:o,ignoreErrors:!0})){if(!t.all)return n;i.push(n)}}}if(t.all&&i.length)return i;if(t.nothrow)return null;throw Nn(e)};var Dn,Un=Ot("cczJY"),Mn=(Tt=Ot("lXEOe"),Ot("1QGzx"));const Fn=ot.homedir();Dn=e=>{if("string"!=typeof e)throw new TypeError("Expected a string, got "+typeof e);return Fn?e.replace(/^~(?=$|\/|\\)/,Fn):e};var Gn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==bt?bt:{},Bn={},zn={},Hn=Gn.parcelRequireb51e;null==Hn&&((Hn=e=>{if(e in Bn)return Bn[e].exports;if(e in zn){var t=zn[e];delete zn[e];var r={id:e,exports:{}};return Bn[e]=r,t.call(r.exports,r,r.exports),r.exports}var n=Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}).register=(e,t)=>{zn[e]=t},Gn.parcelRequireb51e=Hn),Hn.register("djkmR",((e,t)=>{function r(e,t,r){return!(!e.isSymbolicLink()&&!e.isFile())&&((e,t)=>{var r=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!r)return!0;if(-1!==(r=r.split(";")).indexOf(""))return!0;for(var n=0;r.length>n;n++){var o=r[n].toLowerCase();if(o&&e.substr(-o.length).toLowerCase()===o)return!0}return!1})(t,r)}function n(e,t,n){(0,st.stat)(e,((o,i)=>{n(o,!o&&r(i,e,t))}))}e.exports=n,n.sync=(e,t)=>r((0,st.statSync)(e),e,t)})),Hn.register("e1CjR",((e,t)=>{function r(e,t,r){(0,st.stat)(e,((e,o)=>{r(e,!e&&n(o,t))}))}function n(e,t){return e.isFile()&&((e,t)=>{var r=e.mode,n=e.uid,o=e.gid,i=void 0!==t.uid?t.uid:process.getuid&&process.getuid(),s=void 0!==t.gid?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),c=parseInt("010",8),l=a|c;return r&parseInt("001",8)||r&c&&o===s||r&a&&n===i||r&l&&0===i})(e,t)}e.exports=r,r.sync=(e,t)=>n((0,st.statSync)(e),t)})),Hn.register("4c98W",((e,t)=>{e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}));var Vn={};l(Vn,"hasSudo",(()=>g)),l(Vn,"isRoot",(()=>v)),l(Vn,"isSudo",(()=>y)),l(Vn,"prependSudo",(()=>x)),l(Vn,"execRootSync",(()=>w)),l(Vn,"execRoot",(()=>b));var qn={};const Xn="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,Wn=Xn?";":":";var Yn,Kn={};Yn="win32"===process.platform||Gn.TESTING_WINDOWS?Hn("djkmR"):Hn("e1CjR"),Kn=u,u.sync=(e,t)=>{try{return Yn.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e}};const Zn=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),Jn=(e,t)=>{const r=t.colon||Wn,n=e.match(/\//)||Xn&&e.match(/\\/)?[""]:[...Xn?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],o=Xn?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",i=Xn?o.split(r):[""];return Xn&&-1!==e.indexOf(".")&&""!==i[0]&&i.unshift(""),{pathEnv:n,pathExt:i,pathExtExe:o}},Qn=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});const{pathEnv:n,pathExt:o,pathExtExe:i}=Jn(e,t),s=[],a=r=>new Promise(((o,i)=>{if(r===n.length)return t.all&&s.length?o(s):i(Zn(e));const a=n[r],l=/^".*"$/.test(a)?a.slice(1,-1):a,u=(0,it.join)(l,e),d=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u;o(c(d,r,0))})),c=(e,r,n)=>new Promise(((l,u)=>{if(n===o.length)return l(a(r+1));const d=o[n];Kn(e+d,{pathExt:i},((o,i)=>{if(!o&&i){if(!t.all)return l(e+d);s.push(e+d)}return l(c(e,r,n+1))}))}));return r?a(0).then((e=>r(null,e)),r):a(0)};qn=Qn,Qn.sync=(e,t)=>{t=t||{};const{pathEnv:r,pathExt:n,pathExtExe:o}=Jn(e,t),i=[];for(let s=0;r.length>s;s++){const a=r[s],c=/^".*"$/.test(a)?a.slice(1,-1):a,l=(0,it.join)(c,e),u=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+l:l;for(let e=0;n.length>e;e++){const r=u+n[e];try{if(Kn.sync(r,{pathExt:o})){if(!t.all)return r;i.push(r)}}catch(e){}}}if(t.all&&i.length)return i;if(t.nothrow)return null;throw Zn(e)};var eo,to={},ro={},no={},oo={};const io=(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 so,ao;(oo=io).default=io,eo=e=>d(e)||d(e,!0);const co=/([()\][%!^"`<>&|;, *?])/g;var lo,uo,po;so=e=>e.replace(co,"^$1"),ao=(e,t)=>(e=(e=`"${e=(e=(e=""+e).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(co,"^$1"),t&&(e=e.replace(co,"^$1")),e),uo=/^#!(.*)/,lo=(e="")=>{const t=e.match(uo);if(!t)return null;const[r,n]=t[0].replace(/#! ?/,"").split(" "),o=r.split("/").pop();return"env"===o?n:n?`${o} ${n}`:o},po=e=>{const t=Buffer.alloc(150);let r;try{r=(0,st.openSync)(e,"r"),(0,st.readSync)(r,t,0,150,0),(0,st.closeSync)(r)}catch(e){}return lo(""+t)};const ho="win32"===process.platform,fo=/\.(?:com|exe)$/i,mo=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;no=(e,t,r)=>{t&&!Array.isArray(t)&&(r=t,t=null);const n={command:e,args:t=t?t.slice(0):[],options:r=Object.assign({},r),file:void 0,original:{command:e,args:t}};return r.shell?n:(e=>{if(!ho)return e;const t=(e=>{e.file=eo(e);const t=e.file&&po(e.file);return t?(e.args.unshift(e.file),e.command=t,eo(e)):e.file})(e),r=!fo.test(t);if(e.options.forceShell||r){const r=mo.test(t);e.command=(0,it.normalize)(e.command),e.command=so(e.command),e.args=e.args.map((e=>ao(e,r)));const n=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${n}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e})(n)};var go={};const vo="win32"===process.platform;var yo;go={hookChildProcess(e,t){if(!vo)return;const r=e.emit;e.emit=function(n,o){if("exit"===n){const n=h(o,t);if(n)return r.call(e,"error",n)}return r.apply(e,arguments)}},verifyENOENT:h,verifyENOENTSync:(e,t)=>vo&&1===e&&!t.file?p(t.original,"spawnSync"):null,notFoundError:p},(ro=f).spawn=f,ro.sync=(e,t,r)=>{const n=no(e,t,r),o=(0,ft.spawnSync)(n.command,n.args,n.options);return o.error=o.error||go.verifyENOENTSync(o.status,n),o},ro._parse=no,ro._enoent=go,yo=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 xo={};const wo=e=>{let t;e={cwd:process.cwd(),path:process.env[oo()],execPath:process.execPath,...e};let r=(0,it.resolve)(e.cwd);const n=[];for(;t!==r;)n.push((0,it.join)(r,"node_modules/.bin")),t=r,r=(0,it.resolve)(r,"..");const o=(0,it.resolve)(e.cwd,e.execPath,"..");return n.push(o),n.concat(e.path).join(it.delimiter)};(xo=wo).default=wo,xo.env=e=>{const t={...(e={env:process.env,...e}).env},r=oo({env:t});return e.path=t[r],t[r]=xo(e),t};var bo={},Eo={};const So=(e,t)=>{for(const r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};(Eo=So).default=So;const Oo=new WeakMap,_o=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let r,n=0;const o=e.displayName||e.name||"<anonymous>",i=function(...s){if(Oo.set(i,++n),1===n)r=e.apply(this,s),e=null;else if(!0===t.throw)throw Error(`Function \`${o}\` can only be called once`);return r};return Eo(i,e),Oo.set(i,n),i};(bo=_o).default=_o,bo.callCount=e=>{if(!Oo.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Oo.get(e)};var To,Co={};Object.defineProperty(Co,"__esModule",{value:!0}),Co.signalsByNumber=Co.signalsByName=void 0;var $o={};Object.defineProperty($o,"__esModule",{value:!0}),$o.getSignals=void 0;var Po={};Object.defineProperty(Po,"__esModule",{value:!0}),Po.SIGNALS=void 0,Po.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 Ro={};Object.defineProperty(Ro,"__esModule",{value:!0}),Ro.SIGRTMAX=Ro.getRealtimeSignals=void 0,Ro.getRealtimeSignals=()=>Array.from({length:No-Ao+1},Io);const Io=(e,t)=>({name:"SIGRT"+(t+1),number:Ao+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),Ao=34,No=64;Ro.SIGRTMAX=No,$o.getSignals=()=>{const e=(0,Ro.getRealtimeSignals)();return[...Po.SIGNALS,...e].map(ko)};const ko=({name:e,number:t,description:r,action:n,forced:o=!1,standard:i})=>{const{signals:{[e]:s}}=ot.constants,a=void 0!==s;return{name:e,number:a?s:t,description:r,supported:a,action:n,forced:o,standard:i}},Lo=(0,$o.getSignals)().reduce(((e,{name:t,number:r,description:n,supported:o,action:i,forced:s,standard:a})=>({...e,[t]:{name:t,number:r,description:n,supported:o,action:i,forced:s,standard:a}})),{});Co.signalsByName=Lo;const jo=(()=>{const e=(0,$o.getSignals)(),t=Array.from({length:Ro.SIGRTMAX+1},((t,r)=>((e,t)=>{const r=((e,t)=>{const r=t.find((({name:t})=>ot.constants.signals[t]===e));return void 0!==r?r:t.find((t=>t.number===e))})(e,t);if(void 0===r)return{};const{name:n,description:o,supported:i,action:s,forced:a,standard:c}=r;return{[e]:{name:n,number:e,description:o,supported:i,action:s,forced:a,standard:c}}})(r,e)));return Object.assign({},...t)})();Co.signalsByNumber=jo;var Do=Co.signalsByName;To=({stdout:e,stderr:t,all:r,error:n,signal:o,exitCode:i,command:s,escapedCommand:a,timedOut:c,isCanceled:l,killed:u,parsed:{options:{timeout:d}}})=>{const p=void 0===(o=null===o?void 0:o)?void 0:Do[o].description,h=(({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:o,exitCode:i,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":void 0!==r?"failed with "+r:void 0!==n?`was killed with ${n} (${o})`:void 0!==i?"failed with exit code "+i:"failed")({timedOut:c,timeout:d,errorCode:n&&n.code,signal:o,signalDescription:p,exitCode:i=null===i?void 0:i,isCanceled:l}),f=`Command ${h}: ${s}`,m="[object Error]"==={}.toString.call(n),g=m?`${f}\n${n.message}`:f,v=[g,t,e].filter(Boolean).join("\n");return m?(n.originalMessage=n.message,n.message=v):n=Error(v),n.shortMessage=g,n.command=s,n.escapedCommand=a,n.exitCode=i,n.signal=o,n.signalDescription=p,n.stdout=e,n.stderr=t,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!c,n.isCanceled=l,n.killed=u&&!c,n};var Uo={};const Mo=["stdin","stdout","stderr"],Fo=e=>{if(!e)return;const{stdio:t}=e;if(void 0===t)return Mo.map((t=>e[t]));if((e=>Mo.some((t=>void 0!==e[t])))(e))throw Error("It's not possible to provide `stdio` in combination with one of "+Mo.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,Mo.length)},((e,r)=>t[r]))};(Uo=Fo).node=e=>{const t=Fo(e);return"ipc"===t?"ipc":void 0===t||"string"==typeof t?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"]};var Go,Bo={},zo=Gn.process;const Ho=e=>e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on;if(Ho(zo)){var Vo,qo=pt,Xo=Hn("4c98W"),Wo=/^win/i.test(zo.platform),Yo=dt;"function"!=typeof Yo&&(Yo=Yo.EventEmitter),zo.__signal_exit_emitter__?Vo=zo.__signal_exit_emitter__:((Vo=zo.__signal_exit_emitter__=new Yo).count=0,Vo.emitted={}),Vo.infinite||(Vo.setMaxListeners(1/0),Vo.infinite=!0),Bo=(e,t)=>{if(!Ho(Gn.process))return()=>{};qo.equal(typeof e,"function","a callback must be provided for exit handler"),!1===Qo&&ei();var r="exit";return t&&t.alwaysLast&&(r="afterexit"),Vo.on(r,e),()=>{Vo.removeListener(r,e),0===Vo.listeners("exit").length&&0===Vo.listeners("afterexit").length&&Ko()}};var Ko=()=>{Qo&&Ho(Gn.process)&&(Qo=!1,Xo.forEach((e=>{try{zo.removeListener(e,Jo[e])}catch(e){}})),zo.emit=ni,zo.reallyExit=ti,Vo.count-=1)};Bo.unload=Ko;var Zo=(e,t,r)=>{Vo.emitted[e]||(Vo.emitted[e]=!0,Vo.emit(e,t,r))},Jo={};Xo.forEach((e=>{Jo[e]=()=>{Ho(Gn.process)&&zo.listeners(e).length===Vo.count&&(Ko(),Zo("exit",null,e),Zo("afterexit",null,e),Wo&&"SIGHUP"===e&&(e="SIGINT"),zo.kill(zo.pid,e))}})),Bo.signals=()=>Xo;var Qo=!1,ei=()=>{!Qo&&Ho(Gn.process)&&(Qo=!0,Vo.count+=1,Xo=Xo.filter((e=>{try{return zo.on(e,Jo[e]),!0}catch(e){return!1}})),zo.emit=oi,zo.reallyExit=ri)};Bo.load=ei;var ti=zo.reallyExit,ri=e=>{Ho(Gn.process)&&(zo.exitCode=e||0,Zo("exit",zo.exitCode,null),Zo("afterexit",zo.exitCode,null),ti.call(zo,zo.exitCode))},ni=zo.emit,oi=function(e,t){if("exit"===e&&Ho(Gn.process)){void 0!==t&&(zo.exitCode=t);var r=ni.apply(this,arguments);return Zo("exit",zo.exitCode,null),Zo("afterexit",zo.exitCode,null),r}return ni.apply(this,arguments)}}else Bo=()=>()=>{};var ii,si=(Go={spawnedKill(e,t="SIGTERM",r={}){const n=e(t);return((e,t,r,n)=>{if(!((e,{forceKillAfterTimeout:t},r)=>(e=>e===ot.constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase())(e)&&!1!==t&&r)(t,r,n))return;const o=(({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||0>e)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e})(r),i=setTimeout((()=>{e("SIGKILL")}),o);i.unref&&i.unref()})(e,t,r,n),n},spawnedCancel(e,t){e.kill()&&(t.isCanceled=!0)},setupTimeout(e,{timeout:t,killSignal:r="SIGTERM"},n){if(0===t||void 0===t)return n;let o;const i=new Promise(((n,i)=>{o=setTimeout((()=>{((e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}))})(e,r,i)}),t)})),s=n.finally((()=>{clearTimeout(o)}));return Promise.race([i,s])},validateTimeout({timeout:e}){if(void 0!==e&&(!Number.isFinite(e)||0>e))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},async setExitHandler(e,{cleanup:t,detached:r},n){if(!t||r)return n;const o=Bo((()=>{e.kill()}));return n.finally((()=>{o()}))}}).spawnedKill,ai=Go.spawnedCancel,ci=Go.setupTimeout,li=Go.validateTimeout,ui=Go.setExitHandler,di={};const pi=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;pi.writable=e=>pi(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,pi.readable=e=>pi(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,pi.duplex=e=>pi.writable(e)&&pi.readable(e),pi.transform=e=>pi.duplex(e)&&"function"==typeof e._transform,di=pi;var hi,fi={},mi=vt.constants,gi=yt.PassThrough;hi=e=>{e={...e};const{array:t}=e;let{encoding:r}=e;const n="buffer"===r;let o=!1;t?o=!(r||n):r=r||"utf8",n&&(r=null);const i=new gi({objectMode:o});r&&i.setEncoding(r);let s=0;const a=[];return i.on("data",(e=>{a.push(e),o?s=a.length:s+=e.length})),i.getBufferedValue=()=>t?a:n?Buffer.concat(a,s):a.join(""),i.getBufferedLength=()=>s,i};const vi=(0,ht.promisify)(yt.pipeline);class yi extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}(fi=m).buffer=(e,t)=>m(e,{...t,encoding:"buffer"}),fi.array=(e,t)=>m(e,{...t,array:!0}),fi.MaxBufferError=yi;var xi,wi=yt.PassThrough;xi=function(){function e(t){return Array.isArray(t)?(t.forEach(e),this):(n.push(t),t.once("end",r.bind(null,t)),t.once("error",o.emit.bind(o,"error")),t.pipe(o,{end:!1}),this)}function t(){return 0==n.length}function r(e){!(n=n.filter((t=>t!==e))).length&&o.readable&&o.end()}var n=[],o=new wi({objectMode:!0});return o.setMaxListeners(0),o.add=e,o.isEmpty=t,o.on("unpipe",r),[].slice.call(arguments).forEach(e),o};const bi=async(e,t)=>{if(e){e.destroy();try{return await t}catch(e){return e.bufferedData}}},Ei=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?fi(e,{encoding:t,maxBuffer:n}):fi.buffer(e,{maxBuffer:n})};var Si,Oi=(ii={handleInput(e,t){void 0!==t&&void 0!==e.stdin&&(di(t)?t.pipe(e.stdin):e.stdin.end(t))},makeAllStream(e,{all:t}){if(!t||!e.stdout&&!e.stderr)return;const r=xi();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r},async getSpawnedResult({stdout:e,stderr:t,all:r},{encoding:n,buffer:o,maxBuffer:i},s){const a=Ei(e,{encoding:n,buffer:o,maxBuffer:i}),c=Ei(t,{encoding:n,buffer:o,maxBuffer:i}),l=Ei(r,{encoding:n,buffer:o,maxBuffer:2*i});try{return await Promise.all([s,a,c,l])}catch(n){return Promise.all([{error:n,signal:n.signal,timedOut:n.timedOut},bi(e,a),bi(t,c),bi(r,l)])}},validateInputSync({input:e}){if(di(e))throw new TypeError("The `input` option cannot be a stream in sync mode")}}).handleInput,_i=ii.getSpawnedResult,Ti=ii.makeAllStream,Ci=ii.validateInputSync;const $i=(async()=>{})().constructor.prototype,Pi=["then","catch","finally"].map((e=>[e,Reflect.getOwnPropertyDescriptor($i,e)]));var Ri,Ii=(Si={mergePromise(e,t){for(const[r,n]of Pi){const o="function"==typeof t?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:o})}return e},getSpawnedPromise:e=>new Promise(((t,r)=>{e.on("exit",((e,r)=>{t({exitCode:e,signal:r})})),e.on("error",(e=>{r(e)})),e.stdin&&e.stdin.on("error",(e=>{r(e)}))}))}).mergePromise,Ai=Si.getSpawnedPromise;const Ni=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],ki=/^[\w.-]+$/,Li=/"/g,ji=/ +/g;var Di=(Ri={joinCommand:(e,t)=>Ni(e,t).join(" "),getEscapedCommand:(e,t)=>Ni(e,t).map((e=>(e=>"string"!=typeof e||ki.test(e)?e:`"${e.replace(Li,'\\"')}"`)(e))).join(" "),parseCommand(e){const t=[];for(const r of e.trim().split(ji)){const e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${r}`:t.push(r)}return t}}).joinCommand,Ui=Ri.parseCommand,Mi=Ri.getEscapedCommand;const Fi=(e,t,r={})=>{const n=ro._parse(e,t,r);return e=n.command,t=n.args,(r={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(r=n.options).cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...r}).env=(({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:o})=>{const i=t?{...process.env,...e}:e;return r?xo.env({env:i,cwd:n,execPath:o}):i})(r),r.stdio=Uo(r),"win32"===process.platform&&"cmd"===(0,it.basename)(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n}},Gi=(e,t,r)=>"string"==typeof t||Buffer.isBuffer(t)?e.stripFinalNewline?yo(t):t:void 0===r?void 0:"",Bi=(e,t,r)=>{const n=Fi(e,t,r),o=Di(e,t),i=Mi(e,t);let s;li(n.options);try{s=(0,ft.spawn)(n.file,n.args,n.options)}catch(e){const t=new(0,ft.ChildProcess),r=Promise.reject(To({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return Ii(t,r)}const a=Ai(s),c=ci(s,n.options,a),l=ui(s,n.options,c),u={isCanceled:!1};s.kill=si.bind(null,s.kill.bind(s)),s.cancel=ai.bind(null,s,u);const d=bo((async()=>{const[{error:e,exitCode:t,signal:r,timedOut:a},c,d,p]=await _i(s,n.options,l),h=Gi(n.options,c),f=Gi(n.options,d),m=Gi(n.options,p);if(e||0!==t||null!==r){const c=To({error:e,exitCode:t,signal:r,stdout:h,stderr:f,all:m,command:o,escapedCommand:i,parsed:n,timedOut:a,isCanceled:u.isCanceled,killed:s.killed});if(!n.options.reject)return c;throw c}return{command:o,escapedCommand:i,exitCode:0,stdout:h,stderr:f,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}));return Oi(s,n.options.input),s.all=Ti(s,n.options),Ii(s,d)};(to=Bi).sync=(e,t,r)=>{const n=Fi(e,t,r),o=Di(e,t),i=Mi(e,t);let s;Ci(n.options);try{s=(0,ft.spawnSync)(n.file,n.args,n.options)}catch(e){throw To({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}const a=Gi(n.options,s.stdout,s.error),c=Gi(n.options,s.stderr,s.error);if(s.error||0!==s.status||null!==s.signal){const e=To({stdout:a,stderr:c,error:s.error,signal:s.signal,exitCode:s.status,command:o,escapedCommand:i,parsed:n,timedOut:s.error&&"ETIMEDOUT"===s.error.code,isCanceled:!1,killed:null!==s.signal});if(!n.options.reject)return e;throw e}return{command:o,escapedCommand:i,exitCode:0,stdout:a,stderr:c,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},to.command=(e,t)=>{const[r,...n]=Ui(e);return Bi(r,n,t)},to.commandSync=(e,t)=>{const[r,...n]=Ui(e);return Bi.sync(r,n,t)},to.node=(e,t,r={})=>{t&&!Array.isArray(t)&&"object"==typeof t&&(r=t,t=[]);const n=Uo.node(r),o=process.execArgv.filter((e=>!e.startsWith("--inspect"))),{nodePath:i=process.execPath,nodeOptions:s=o}=r;return Bi(i,[...s,e,...Array.isArray(t)?t:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})};var zi={};l(zi,"isAdminWindows",(()=>Hi)),l(zi,"isAdminPosix",(()=>Vi)),l(zi,"isAdmin",(()=>E));const Hi=async()=>{if("win32"!==t(xt).platform)return!1;try{return await c(to)("fsutil",["dirty","query",t(xt).env.systemdrive??""]),!0}catch(e){return"ENOENT"===e.code&&(async()=>{try{return await c(to)("fltmc"),!0}catch{return!1}})()}},Vi=v;var qi=Ot("bouSm");let Xi;var Wi;const Yi="win32"!==ot.platform(),Ki=ot.release(),Zi=/(\d+\.\d+)\.(\d+)/;Wi=e=>Yi?e.replace(/(\s+)/g,"\\$1"):((e="",t="")=>/1\d+\.\d+/.test(e)&&+t>=17134.1184)(...Zi.exec(Ki).splice(1))?e:e.replace(/(\s+)/g,"%20");const Ji=S(".cpprc");let Qi,es=!1;var ts={};I(ts,"hasSudo",(()=>A)),I(ts,"isRoot",(()=>N)),I(ts,"isSudo",(()=>k)),I(ts,"prependSudo",(()=>L)),I(ts,"execRootSync",(()=>j)),I(ts,"execRoot",(()=>D));var rs={};I(rs,"isAdminWindows",(()=>ns)),I(rs,"isAdminPosix",(()=>os)),I(rs,"isAdmin",(()=>U));const ns=async()=>{if("win32"!==process.platform)return!1;try{return await t(Ct)("fsutil",["dirty","query",process.env.systemdrive??""]),!0}catch(e){return"ENOENT"===e.code&&(async()=>{try{return await t(Ct)("fltmc"),!0}catch{return!1}})()}},os=N;Tt=Ot("lXEOe"),Mn=Ot("1QGzx");let is=!1,ss=!1;qi=Ot("bouSm");let as=!1,cs=!1;Tt=Ot("lXEOe");let ls,us=!1;_n=Ot("jeNZZ"),Tt=Ot("lXEOe"),qi=Ot("bouSm");let ds,ps,hs,fs=!1;qi=Ot("bouSm"),_n=Ot("jeNZZ"),Un=Ot("cczJY"),qi=Ot("bouSm");var ms={},gs=it.resolve(__dirname,"../../node_modules/.pnpm/@actions+tool-cache@2.0.1/node_modules/@actions/tool-cache/lib"),vs=ms&&ms.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),ys=ms&&ms.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),xs=ms&&ms.__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)&&vs(t,e,r);return ys(t,e),t}),ws=ms&&ms.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,i)=>{function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))),bs=ms&&ms.__importDefault||(e=>e&&e.__esModule?e:{default:e});Object.defineProperty(ms,"__esModule",{value:!0}),ms.evaluateVersions=ms.isExplicitVersion=ms.findFromManifest=ms.getManifestFromRepo=ms.findAllVersions=ms.find=ms.cacheFile=ms.cacheDir=ms.extractZip=ms.extractXar=ms.extractTar=ms.extract7z=ms.downloadTool=ms.HTTPError=void 0;const Es=xs(Ot("lXEOe")),Ss=xs(Ot("cczJY")),Os=xs(st),_s=xs(Ot("3IR8t")),Ts=xs(ot),Cs=xs(it),$s=xs(Ot("1mHcB")),Ps=xs(Ot("cTdPL")),Rs=xs(yt),Is=xs(ht),As=bs(Ot("8sanl"));var Ns=Ot("2bg3w"),ks={},Ls=ks&&ks.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),js=ks&&ks.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),Ds=ks&&ks.__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)&&Ls(t,e,r);return js(t,e),t}),Us=ks&&ks.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,i)=>{function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(ks,"__esModule",{value:!0}),ks.RetryHelper=void 0;const Ms=Ds(Ot("lXEOe"));ks.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 Us(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;Ms.info(e.message)}const n=this.getSleepAmount();Ms.info(`Waiting ${n} seconds before trying again`),yield this.sleep(n),r++}return yield e()}))}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return Us(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,1e3*e)))}))}};class Fs extends Error{constructor(e){super("Unexpected HTTP response: "+e),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}}ms.HTTPError=Fs;const Gs="win32"===process.platform,Bs="darwin"===process.platform;let zs;ms.downloadTool=function(e,t,r,n){return ws(this,void 0,void 0,(function*(){t=t||Cs.join(ce(),As.default()),yield Ss.mkdirP(Cs.dirname(t)),Es.debug("Downloading "+e),Es.debug("Destination "+t);const o=le("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),i=le("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),s=new ks.RetryHelper(3,o,i);return yield s.execute((()=>ws(this,void 0,void 0,(function*(){return yield function(e,t,r,n){return ws(this,void 0,void 0,(function*(){if(Os.existsSync(t))throw Error(`Destination file path ${t} already exists`);const o=new $s.HttpClient("actions/tool-cache",[],{allowRetries:!1});r&&(Es.debug("set auth"),void 0===n&&(n={}),n.authorization=r);const i=yield o.get(e,n);if(200!==i.message.statusCode){const t=new Fs(i.message.statusCode);throw Es.debug(`Failed to download from "${e}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),t}const s=Is.promisify(Rs.pipeline),a=le("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>i.message))();let c=!1;try{return yield s(a,Os.createWriteStream(t)),Es.debug("download complete"),c=!0,t}finally{if(!c){Es.debug("download failed");try{yield Ss.rmRF(t)}catch(e){Es.debug(`Failed to delete '${t}'. ${e.message}`)}}}}))}(e,t||"",r,n)}))),(e=>!(e instanceof Fs&&e.httpStatusCode&&500>e.httpStatusCode&&408!==e.httpStatusCode&&429!==e.httpStatusCode)))}))},ms.extract7z=function(e,t,r){return ws(this,void 0,void 0,(function*(){pt.ok(Gs,"extract7z() not supported on current OS"),pt.ok(e,'parameter "file" is required'),t=yield re(t);const n=process.cwd();if(process.chdir(t),r)try{const t=["x",Es.isDebug()?"-bb1":"-bb0","-bd","-sccUTF-8",e],o={silent:!0};yield Ns.exec(`"${r}"`,t,o)}finally{process.chdir(n)}else{const r=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${Cs.join(gs,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"")}' -Source '${e.replace(/'/g,"''").replace(/"|\n|\r/g,"")}' -Target '${t.replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`],o={silent:!0};try{const e=yield Ss.which("powershell",!0);yield Ns.exec(`"${e}"`,r,o)}finally{process.chdir(n)}}return t}))},ms.extractTar=function(e,t,r="xz"){return ws(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'file' is required");t=yield re(t),Es.debug("Checking tar --version");let n="";yield Ns.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout(e){return n+=""+e},stderr(e){return n+=""+e}}}),Es.debug(n.trim());const o=n.toUpperCase().includes("GNU TAR");let i;i=r instanceof Array?r:[r],Es.isDebug()&&!r.includes("v")&&i.push("-v");let s=t,a=e;return Gs&&o&&(i.push("--force-local"),s=t.replace(/\\/g,"/"),a=e.replace(/\\/g,"/")),o&&(i.push("--warning=no-unknown-keyword"),i.push("--overwrite")),i.push("-C",s,"-f",a),yield Ns.exec("tar",i),t}))},ms.extractXar=function(e,t,r=[]){return ws(this,void 0,void 0,(function*(){let n;pt.ok(Bs,"extractXar() not supported on current OS"),pt.ok(e,'parameter "file" is required'),t=yield re(t),n=r instanceof Array?r:[r],n.push("-x","-C",t,"-f",e),Es.isDebug()&&n.push("-v");const o=yield Ss.which("xar",!0);var i;return yield Ns.exec(`"${o}"`,(i=n,Array.from(new Set(i)))),t}))},ms.extractZip=function(e,t){return ws(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'file' is required");return t=yield re(t),Gs?yield function(e,t){return ws(this,void 0,void 0,(function*(){const r=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),n=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),o=yield Ss.which("pwsh",!1);if(o){const e=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",["$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;",`try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}', $true) }`,`catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${r}' -DestinationPath '${n}' -Force } else { throw $_ } } ;`].join(" ")];Es.debug("Using pwsh at path: "+o),yield Ns.exec(`"${o}"`,e)}else{const e=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",["$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ;",`if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${r}' -DestinationPath '${n}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}', $true) }`].join(" ")],t=yield Ss.which("powershell",!0);Es.debug("Using powershell at path: "+t),yield Ns.exec(`"${t}"`,e)}}))}(e,t):yield function(e,t){return ws(this,void 0,void 0,(function*(){const r=yield Ss.which("unzip",!0),n=[e];Es.isDebug()||n.unshift("-q"),n.unshift("-o"),yield Ns.exec(`"${r}"`,n,{cwd:t})}))}(e,t),t}))},ms.cacheDir=function(e,t,r,n){return ws(this,void 0,void 0,(function*(){if(r=Ps.clean(r)||r,n=n||Ts.arch(),Es.debug(`Caching tool ${t} ${r} ${n}`),Es.debug("source dir: "+e),!Os.statSync(e).isDirectory())throw Error("sourceDir is not a directory");const o=yield ne(t,r,n);for(const t of Os.readdirSync(e)){const r=Cs.join(e,t);yield Ss.cp(r,o,{recursive:!0})}return oe(t,r,n),o}))},ms.cacheFile=function(e,t,r,n,o){return ws(this,void 0,void 0,(function*(){if(n=Ps.clean(n)||n,o=o||Ts.arch(),Es.debug(`Caching tool ${r} ${n} ${o}`),Es.debug("source file: "+e),!Os.statSync(e).isFile())throw Error("sourceFile is not a file");const i=yield ne(r,n,o),s=Cs.join(i,t);return Es.debug("destination file "+s),yield Ss.cp(e,s),oe(r,n,o),i}))},ms.find=(e,t,r)=>{if(!e)throw Error("toolName parameter is required");if(!t)throw Error("versionSpec parameter is required");r=r||Ts.arch(),ie(t)||(t=se(te(e,r),t));let n="";if(t){t=Ps.clean(t)||"";const o=Cs.join(ae(),e,t,r);Es.debug("checking cache: "+o),Os.existsSync(o)&&Os.existsSync(o+".complete")?(Es.debug(`Found tool in cache ${e} ${t} ${r}`),n=o):Es.debug("not found")}return n},ms.findAllVersions=te,ms.getManifestFromRepo=function(e,t,r,n="master"){return ws(this,void 0,void 0,(function*(){let o=[];const i=`https://api.github.com/repos/${e}/${t}/git/trees/${n}`,s=new $s.HttpClient("tool-cache"),a={};r&&(Es.debug("set auth"),a.authorization=r);const c=yield s.getJson(i,a);if(!c.result)return o;let l="";for(const e of c.result.tree)if("versions-manifest.json"===e.path){l=e.url;break}a.accept="application/vnd.github.VERSION.raw";let u=yield(yield s.get(l,a)).readBody();if(u){u=u.replace(/^\uFEFF/,"");try{o=JSON.parse(u)}catch(e){Es.debug("Invalid json")}}return o}))},ms.findFromManifest=function(e,t,r,n=Ts.arch()){return ws(this,void 0,void 0,(function*(){return yield _s._findMatch(e,t,r,n)}))},ms.isExplicitVersion=ie,ms.evaluateVersions=se,Tt=Ot("lXEOe"),_n=Ot("jeNZZ"),Mn=Ot("1QGzx");let Hs=!1;var Vs=Ot("9Kys9"),qs=Ot("9YDsN"),Xs=(_n=Ot("jeNZZ"),Tt=Ot("lXEOe"),Mn=Ot("1QGzx"),qi=Ot("bouSm"),_n=Ot("jeNZZ"),Ns=Ot("2bg3w"),async e=>{const t=(e=>{if("string"!=typeof e)return!1;const t=e.trim();if(t.includes(" "))return!1;try{return new(0,wt.URL)(t),!0}catch{return!1}})(e);if(!t)return!1;let r=await ye(e,"HEAD");return!!r||(r=await ye(e,"GET"),!!r)}),Ws=Ot("1eEUU"),Ys=(qs=Ot("9YDsN"),Ot("1wrDf"));Ns=Ot("2bg3w"),qi=Ot("bouSm");const Ks=/v?(\d\S*)/,Zs={llvm:"13.0.0",clangtidy:"13.0.0",clangformat:"13.0.0",ninja:"1.11.1",cmake:"3.25.0",gcovr:"5.2",conan:"1.54.0",meson:"0.64.0",kcov:"40",task:"3.18.0",doxygen:Y()?"1.9.5-1":"1.9.5",gcc:Y()?"11":"12"},Js={gcc:{22:"12",20:"11",18:"11",16:"11",14:"11"},llvm:{22:"13.0.0-ubuntu-20.04",20:"13.0.0-ubuntu-20.04",18:"13.0.1-ubuntu-18.04",16:"13.0.0-ubuntu-16.04",14:"13.0.0-ubuntu-16.04"},clangtidy:{22:"13.0.0-ubuntu-20.04",20:"13.0.0-ubuntu-20.04",18:"13.0.1-ubuntu-18.04",16:"13.0.0-ubuntu-16.04",14:"13.0.0-ubuntu-16.04"},clangformat:{22:"13.0.0-ubuntu-20.04",20:"13.0.0-ubuntu-20.04",18:"13.0.1-ubuntu-18.04",16:"13.0.0-ubuntu-16.04",14:"13.0.0-ubuntu-16.04"},gcovr:{22:"5.2",20:"5.2",18:"5.0"},meson:{20:"0.63.3",18:"0.61.4"},nala:{22:"",21:"legacy",20:"legacy",18:"legacy",16:"legacy",14:"legacy"},kcov:{22:"40",20:"40-binary",18:"40",16:"40",14:"40"}};let Qs,ea,ta=!1;_n=Ot("jeNZZ"),_n=Ot("jeNZZ"),qi=Ot("bouSm"),Ys=Ot("1wrDf");var ra=Ot("iwVHA"),na=(_n=Ot("jeNZZ"),ra=Ot("iwVHA"),Ns=Ot("2bg3w"),qi=Ot("bouSm"),qi=Ot("bouSm"),Mn=Ot("1QGzx"),ra=Ot("iwVHA"),qs=Ot("9YDsN"),_n=Ot("jeNZZ"),qi=Ot("bouSm"),Mn=Ot("1QGzx"),it.resolve(__dirname,"../../src/gcc"));const oa={12:{releaseName:"12.2.0-14.0.6-10.0.0-ucrt-r2",fileSuffix:"12.2.0-mingw-w64ucrt-10.0.0-r2"},"12.2.0-ucrt":{releaseName:"12.2.0-14.0.6-10.0.0-ucrt-r2",fileSuffix:"12.2.0-mingw-w64ucrt-10.0.0-r2"},"12.2.0-msvcrt":{releaseName:"12.2.0-14.0.6-10.0.0-msvcrt-r2",fileSuffix:"12.2.0-mingw-w64msvcrt-10.0.0-r2"},"12.1.0-ucrt":{releaseName:"12.1.0-14.0.4-10.0.0-ucrt-r2",fileSuffix:"12.1.0-mingw-w64ucrt-10.0.0-r2"},"12.1.0-msvcrt":{releaseName:"12.1.0-14.0.6-10.0.0-msvcrt-r3",fileSuffix:"12.1.0-llvm-14.0.6-mingw-w64msvcrt-10.0.0-r3"},11:{releaseName:"11.3.0-14.0.3-10.0.0-ucrt-r3",fileSuffix:"11.3.0-mingw-w64ucrt-10.0.0-r3"},"11.3.0-ucrt":{releaseName:"11.3.0-14.0.3-10.0.0-ucrt-r3",fileSuffix:"11.3.0-mingw-w64ucrt-10.0.0-r3"},"11.3.0-msvcrt":{releaseName:"11.3.0-14.0.3-10.0.0-msvcrt-r3",fileSuffix:"11.3.0-mingw-w64msvcrt-10.0.0-r3"},"11.2.0-ucrt":{releaseName:"11.2.0-9.0.0-ucrt-r5",fileSuffix:"11.2.0-mingw-w64ucrt-9.0.0-r5"},"11.2.0-msvcrt":{releaseName:"11.2.0-9.0.0-msvcrt-r5",fileSuffix:"11.2.0-mingw-w64msvcrt-9.0.0-r5"},10:{releaseName:"10.3.0-12.0.0-9.0.0-r2",fileSuffix:"10.3.0-llvm-12.0.0-mingw-w64-9.0.0-r2"},"10.3.0":{releaseName:"10.3.0-12.0.0-9.0.0-r2",fileSuffix:"10.3.0-llvm-12.0.0-mingw-w64-9.0.0-r2"},"10.2.0":{releaseName:"10.2.0-7.0.0-r4",fileSuffix:"10.2.0-llvm-10.0.1-mingw-w64-7.0.0-r4"},9:{releaseName:"9.4.0-9.0.0-r1",fileSuffix:"9.4.0-mingw-w64-9.0.0-r1"},"9.4.0":{releaseName:"9.4.0-9.0.0-r1",fileSuffix:"9.4.0-mingw-w64-9.0.0-r1"}};Vs=Ot("9Kys9"),qi=Ot("bouSm"),_n=Ot("jeNZZ");const ia=(e=>{const t=new Set(e);for(const r of e)t.add(/^\d+/.exec(r)[0]),t.add(/^\d+\.\d+/.exec(r)[0]);return t})(["3.5.0","3.5.1","3.5.2","3.6.0","3.6.1","3.6.2","3.7.0","3.7.1","3.8.0","3.8.1","3.9.0","3.9.1","4.0.0","4.0.1","5.0.0","5.0.1","5.0.2","6.0.0","6.0.1","7.0.0","7.0.1","7.1.0","8.0.0","8.0.1","9.0.0","9.0.1","10.0.0","10.0.1","11.0.0","11.0.1","11.1.0","12.0.0","12.0.1","13.0.0","13.0.1","14.0.0","14.0.1","14.0.2","14.0.3","14.0.4","14.0.5","14.0.6","15.0.0","15.0.1","15.0.2"]),sa=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"]),aa=new Map,ca={"3.5.0":"-ubuntu-14.04","3.5.1":"","3.5.2":"-ubuntu-14.04","3.6.0":"-ubuntu-14.04","3.6.1":"-ubuntu-14.04","3.6.2":"-ubuntu-14.04","3.7.0":"-ubuntu-14.04","3.7.1":"-ubuntu-14.04","3.8.0":"-ubuntu-16.04","3.8.1":"-ubuntu-16.04","3.9.0":"-ubuntu-16.04","3.9.1":"-ubuntu-16.04","4.0.0":"-ubuntu-16.04","5.0.0":"-ubuntu16.04","5.0.1":"-ubuntu-16.04","5.0.2":"-ubuntu-16.04","6.0.0":"-ubuntu-16.04","6.0.1":"-ubuntu-16.04","7.0.0":"-ubuntu-16.04","7.0.1":"-ubuntu-18.04","7.1.0":"-ubuntu-14.04","8.0.0":"-ubuntu-18.04","9.0.0":"-ubuntu-18.04","9.0.1":"-ubuntu-16.04","10.0.0":"-ubuntu-18.04","10.0.1":"-ubuntu-16.04","11.0.0":"-ubuntu-20.04","11.0.1":"-ubuntu-16.04","11.1.0":"-ubuntu-16.04","12.0.0":"-ubuntu-20.04","12.0.1":"-ubuntu-16.04","13.0.0":"-ubuntu-20.04","13.0.0-ubuntu-16.04":"-ubuntu-16.04","13.0.0-ubuntu-20.04":"-ubuntu-20.04","13.0.1":"-ubuntu-18.04","13.0.1-ubuntu-18.04":"-ubuntu-18.04","14.0.0":"-ubuntu-18.04","15.0.2":"-rhel86"},la=new Set(["10.0.1"]);qi=Ot("bouSm");var ua={};Object.defineProperty(ua,"__esModule",{value:!0}),ua.getUbuntuVersion=void 0,ua.getUbuntuVersion=async()=>{if("linux"!==process.platform)return[];const e=await(t="lsb_release",r=["-a"],new Promise(((e,n)=>{ft.execFile(t,r,{encoding:"utf8",shell:!1},((o,i,s)=>{if(o)return"errno"in o&&"ENOENT"===o.code?void e(null):void n(Error(`Could not execute \`${t} ${r.join(" ")}\`: ${o} (stderr=${s})`));e(i)}))})));var t,r;if(null===e)return[];const n=/^Distributor ID:\s*(.+)$/,o=/^Description:\s*Ubuntu\s+(\d+)\.(\d+)(?:\.(\d+))?/,i=/^Release:\s*(\d+)\.(\d+)(?:\.(\d+))?$/;let s=null,a=null,c=!1;for(const t of e.split("\n")){const e=t.match(n);if(null!==e){if("Ubuntu"!==e[1])return[];c=!0}const r=t.match(o);r&&(s=r);const l=t.match(i);if(l&&(a=l),c&&s&&a)break}if(!c)return[];for(const e of[s,a])if(e){const t=[e[1],e[2]];return e[3]&&t.push(e[3]),t.map((e=>parseInt(e,10)))}return[]};var da=it.resolve(__dirname,"../../src/llvm");let pa=!1;var ha,fa,ma,ga={},va=ga&&ga.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,i)=>{function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))),ya=ga&&ga.__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(ga,"__esModule",{value:!0});var xa={},wa=xa&&xa.__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(xa,"__esModule",{value:!0});const ba=wa(ot);var Ea={};Object.defineProperty(Ea,"__esModule",{value:!0}),Ea.toCommandValue=e=>null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e),xa.issueCommand=Fe,xa.issue=(e,t="")=>{Fe(e,{},t)};class Sa{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r}toString(){let e="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(const n in this.properties)if(this.properties.hasOwnProperty(n)){const o=this.properties[n];o&&(r?r=!1:e+=",",e+=`${n}=${t=o,Ea.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}var t;return e+="::"+(e=>Ea.toCommandValue(this.message).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A"))(),e}}var Oa={},_a=Oa&&Oa.__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(Oa,"__esModule",{value:!0});const Ta=_a(st),Ca=_a(ot);Oa.issueCommand=(e,t)=>{const r=process.env["GITHUB_"+e];if(!r)throw Error("Unable to find environment variable for file command "+e);if(!Ta.existsSync(r))throw Error("Missing file at path: "+r);Ta.appendFileSync(r,`${Ea.toCommandValue(t)}${Ca.EOL}`,{encoding:"utf8"})};const $a=ya(ot),Pa=ya(it);var Ra,Ia;(Ia=Ra=ga.ExitCode||(ga.ExitCode={}))[Ia.Success=0]="Success",Ia[Ia.Failure=1]="Failure",ga.exportVariable=(e,t)=>{const r=Ea.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV){const t="_GitHubActionsFileCommandDelimeter_";Oa.issueCommand("ENV",`${e}<<${t}${$a.EOL}${r}${$a.EOL}${t}`)}else xa.issueCommand("set-env",{name:e},r)},ga.setSecret=e=>{xa.issueCommand("add-mask",{},e)},ga.addPath=e=>{process.env.GITHUB_PATH?Oa.issueCommand("PATH",e):xa.issueCommand("add-path",{},e),process.env.PATH=`${e}${Pa.delimiter}${process.env.PATH}`},ga.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()},ga.setOutput=(e,t)=>{xa.issueCommand("set-output",{name:e},t)},ga.setCommandEcho=e=>{xa.issue("echo",e?"on":"off")},ga.setFailed=e=>{process.exitCode=Ra.Failure,Ge(e)},ga.isDebug=()=>"1"===process.env.RUNNER_DEBUG,ga.debug=e=>{xa.issueCommand("debug",{},e)},ga.error=Ge,ga.warning=e=>{xa.issue("warning",e instanceof Error?""+e:e)},ga.info=e=>{process.stdout.write(e+$a.EOL)},ga.startGroup=Be,ga.endGroup=ze,ga.group=function(e,t){return va(this,void 0,void 0,(function*(){let r;Be(e);try{r=yield t()}finally{ze()}return r}))},ga.saveState=(e,t)=>{xa.issueCommand("save-state",{name:e},t)},ga.getState=e=>process.env["STATE_"+e]||"";const Aa=xt.env["ProgramFiles(x86)"],Na=[xt.env["ProgramFiles(x86)"],xt.env.ProgramFiles],ka=["Enterprise","Professional","Community"],La=["2022","2019","2017"],ja={2022:"17.0",2019:"16.0",2017:"15.0",2015:"14.0",2013:"12.0"};ha=He;const Da=Aa+"\\Microsoft Visual Studio\\Installer";fa=qe,ma=(e,t,r,n,o,i)=>{if("win32"!=xt.platform)return void ga.info("This is not a Windows virtual environment, bye!");xt.env.PATH+=it.delimiter+Da;let s={win32:"x86",win64:"x64",x86_64:"x64","x86-64":"x64"};e.toLowerCase()in s&&(e=s[e.toLowerCase()]);var a=[e];"true"==n&&a.push("uwp"),t&&a.push(t),r&&a.push("-vcvars_ver="+r),"true"==o&&a.push("-vcvars_spectre_libs=spectre");const c=`"${qe(i)}" ${a.join(" ")}`;ga.debug("vcvars command-line: "+c);const l=(""+ft.execSync(`set && cls && ${c} && cls && set`,{shell:"cmd"})).split("\f"),u=l[0].split("\r\n"),d=l[1].split("\r\n"),p=l[2].split("\r\n"),h=d.filter((e=>!(!e.match(/^\[ERROR.*\]/)||e.match(/Error in script usage. The correct usage is:$/))));if(h.length>0)throw Error("invalid parameters\r\n"+h.join("\r\n"));let f={};for(let e of u){const[t,r]=e.split("=");f[t]=r}ga.startGroup("Environment variables");for(let e of p){if(!e.includes("="))continue;let[t,r]=e.split("=");r!==f[t]&&(ga.info("Setting "+t),-1!=["PATH","INCLUDE","LIB","LIBPATH"].indexOf(t.toUpperCase())&&(r=r.split(";").filter(((e,t,r)=>r.indexOf(e)===t)).join(";")),ga.exportVariable(t,r))}ga.endGroup(),ga.info("Configured Developer Command Prompt")},qi=Ot("bouSm"),Mn=Ot("1QGzx"),_n=Ot("jeNZZ"),qi=Ot("bouSm");var Ua,Ma=it.resolve(__dirname,"../../src/msvc"),Fa=(_n=Ot("jeNZZ"),Mn=Ot("1QGzx"),{});Fa=Ot("9atXJ"),Ua={id:"en",data:{long:{years:{one:"{0} year",other:"{0} years"},months:{one:"{0} month",other:"{0} months"},weeks:{one:"{0} week",other:"{0} weeks"},days:{one:"{0} day",other:"{0} days"},hours:{one:"{0} hour",other:"{0} hours"},minutes:{one:"{0} minute",other:"{0} minutes"},seconds:{one:"{0} second",other:"{0} seconds"}},narrow:{years:{one:"{0}y",other:"{0}y"},months:{one:"{0}m",other:"{0}m"},weeks:{one:"{0}w",other:"{0}w"},days:{one:"{0}d",other:"{0}d"},hours:{one:"{0}h",other:"{0}h"},minutes:{one:"{0}m",other:"{0}m"},seconds:{one:"{0}s",other:"{0}s"}},short:{years:{one:"{0} yr",other:"{0} yrs"},months:{one:"{0} mth",other:"{0} mths"},weeks:{one:"{0} wk",other:"{0} wks"},days:{one:"{0} day",other:"{0} days"},hours:{one:"{0} hr",other:"{0} hr"},minutes:{one:"{0} min",other:"{0} min"},seconds:{one:"{0} sec",other:"{0} sec"}}}};var Ga=Ot("78qQg"),Ba={};Ot("e40J2").addLocale("en",(e=>{var t=Math.floor(Math.abs(e)),r=(""+e).replace(/^[^.]*\.?/,"").length;return"string"==typeof e&&(e=parseInt(e,10)),1===t&&0===r?"one":"other"})),Ys=Ot("1wrDf"),qi=Ot("bouSm"),_n=Ot("jeNZZ"),qi=Ot("bouSm");let za,Ha=!1;_n=Ot("jeNZZ"),_n=Ot("jeNZZ"),qi=Ot("bouSm"),_n=Ot("jeNZZ");const Va={async nala(e,r,n){if(!J())return;if("string"==typeof za)return{binDir:za};const o=t(On).sync("nala",{nothrow:!0});if(null!==o)return za=(0,_n.dirname)(o),{binDir:za};j("/bin/bash",["-c",`echo "deb [signed-by=${await z("volian-archive-scar-unstable.gpg","https://deb.volian.org/volian/scar.key")}] http://deb.volian.org/volian/ scar main" | tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list`]);try{"legacy"!==e?await M("nala",void 0,[],!0):await M("nala-legacy",void 0,[],!0)}catch(e){await M("nala-legacy",void 0,[],!0)}return za="/usr/bin",{binDir:za}},cmake:ve,ninja:Ke,python:Ee,async vcpkg(e,r,n){return Ha&&null!==t(On).sync("vcpkg",{nothrow:!0})?{binDir:(0,_n.dirname)(t(On).sync("vcpkg"))}:("linux"===process.platform&&(Y()?(V("curl"),V("zip"),V("unzip"),V("tar"),V("git"),V("pkg-config")):K()?(Z("curl"),Z("zip"),Z("unzip"),Z("tar"),Z("git"),Z("pkg-config")):J()&&(await M("curl"),await M("zip"),await M("unzip"),await M("tar"),await M("git"),await M("pkg-config"))),(0,st.existsSync)((0,_n.join)(r,(0,_n.addShExt)("bootstrap-vcpkg",".bat")))?(0,qi.notice)(`Vcpkg folder already exists at ${r}. This might mean that ~/vcpkg is restored from the cache.`):t(Ct).sync("git",["clone","https://github.com/microsoft/vcpkg"],{cwd:(0,_n.dirname)(r),stdio:"inherit"}),t(Ct).sync((0,_n.addShExt)((0,_n.addShRelativePrefix)("bootstrap-vcpkg"),".bat"),{cwd:r,shell:!0,stdio:"inherit"}),ee(r),await T(r),Ha=!0,{binDir:r})},async bazel(e,t,r){switch(process.platform){case"win32":return W("bazelisk",e);case"darwin":return q("bazelisk",e);case"linux":if(Y())throw Error("installing bazel on Arch linux is not supported yet");if(K())return Z("dnf-plugins-core",void 0),j("dnf",["copr","enable","vbatts/bazel"]),Z("bazel4",void 0);if(J())return j("bash",["-c",`echo "deb [arch=amd64 signed-by=${await z("bazel-archive-keyring.gpg","https://bazel.build/bazel-release.pub.gpg")}] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list`]),M("bazel",e,[],!0);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},async conan(e,t,r){return await _e("setuptools",""),_e("conan",e)},meson(e,t,r){return _e("meson",e)},gcovr(e,t,r){return _e("gcovr",e)},async opencppcoverage(e,t,r){if("win32"===process.platform)return await W("opencppcoverage",e),{binDir:await(async()=>{const e="C:/Program Files/OpenCppCoverage";return await T(e),e})()}},llvm:je,gcc:Re,choco:X,brew:R,async powershell(e,t,r){switch(process.platform){case"win32":{await W("powershell-core",e);const t="C:/Program Files/PowerShell/7";return await T(t),{binDir:t}}case"darwin":return q("powershell",e,["--cask"]);case"linux":if(Y())return V("powershell-bin",e,"yay");if(K())return Z("curl"),j("/bin/bash",["-c","curl https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo"]),Z("powershell",e);if(J()){await M("curl");const t=await Le();return j("curl",["-LJO",`https://packages.microsoft.com/config/ubuntu/${t[0]}.0${t[1]}/packages-microsoft-prod.deb`]),j("dpkg",["-i","packages-microsoft-prod.deb"]),M("powershell",e,[],!0)}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},ccache(e,t,r){switch(process.platform){case"win32":return W("ccache",e);case"darwin":return q("ccache",e);case"linux":if(Y())return V("ccache",e);if(K())return Z("ccache",e);if(J())return M("ccache",e);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},sccache(e,t,r){switch(process.platform){case"win32":return W("sccache",e);case"linux":case"darwin":return q("sccache",e);default:throw Error("Unsupported platform")}},async doxygen(e,t,r){switch(process.platform){case"win32":{await W("doxygen.install",e);const t={binDir:await(async()=>{if("win32"===process.platform){for(const e of["C:/ProgramData/chocolatey/bin","C:/Program Files/doxygen/bin","C:/Program Files (x86)/doxygen"])if((0,st.existsSync)((0,_n.join)(e,"doxygen.exe")))return await T(e),e;throw Error("Failed to find doxygen binary")}throw Error("Unsupported platform")})()};return await Te(we("graphviz",void 0)),t}case"darwin":{const e=q("doxygen",void 0);return await Te(we("graphviz",void 0)),e}case"linux":{let n;if(""===e||void 0===e||Y()||K())if(Y())n=V("doxygen",e);else{if(K())return Z("doxygen",e);if(!J())throw Error("Unsupported linux distributions");n=await M("doxygen",e)}else{if(!J())throw Error("Unsupported linux distributions");try{n=await fe("doxygen",e,Ce,t,r),await M("libclang-cpp9")}catch(e){(0,qi.notice)(`Failed to download doxygen binary. ${e}. Falling back to apt-get.`),n=await M("doxygen",void 0)}}return await Te(we("graphviz",void 0)),n}default:throw Error("Unsupported platform")}},graphviz:Te,async cppcheck(e,t,r){switch(process.platform){case"win32":return await W("cppcheck",e),{binDir:await(async()=>{const e="C:/Program Files/Cppcheck";return await T(e),e})()};case"darwin":return q("cppcheck",e);case"linux":if(Y())return V("cppcheck",e);if(K())return Z("ccache",e);if(J())return M("cppcheck",e);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},clangtidy:Ue,clangformat:Ue,msvc:We,vcvarsall:Xe,async kcov(e,t,r){if("linux"!==process.platform)return void(0,qi.info)("Kcov is not supported on non-linux");const n=e.split("-");let o=(e=>e.match(/^v/)?e:"v"+e)(n[0]);const i=n[1],s=(e=>parseInt(e.replace(/^v/,""),10))(o);let a;return 38===s&&(o="v38"),"binary"!==i||39>s?(a=await fe("kcov",o,et,t,r),a):(a=await fe("kcov",o,Qe,t,r),Y()?V("binutils"):K()?Z("binutils"):J()&&await M("libbinutils"),a)},async make(e,t,r){switch(process.platform){case"win32":return W("make",e);case"darwin":return q("make",e),await T("/usr/local/opt/make/libexec/gnubin"),{binDir:"/usr/local/opt/make/libexec/gnubin"};case"linux":if(Y())return V("make",e);if(K())return Z("make",e);if(J())return M("make",e);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},task(e,t,r){return fe("task",e,me,t,r)},sevenzip:Q},qa=Object.keys(Va),Xa=["compiler","architecture",...qa];(async e=>{"github-actions"!==t(Mn)()&&(process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS="true");const r=(e=>((e,t)=>{var r,n,o,i,s,a={_:[]},c=0,l=0,u=0,d=(e=e||[]).length;const p=void 0!==(t=t||{}).alias,h=void 0!==t.unknown,f=void 0!==t.default;if(t.alias=t.alias||{},t.string=Ze(t.string),t.boolean=Ze(t.boolean),p)for(r in t.alias)for(n=t.alias[r]=Ze(t.alias[r]),c=0;n.length>c;c++)(t.alias[n[c]]=n.concat(r)).splice(c,1);for(c=t.boolean.length;c-- >0;)for(l=(n=t.alias[t.boolean[c]]||[]).length;l-- >0;)t.boolean.push(n[l]);for(c=t.string.length;c-- >0;)for(l=(n=t.alias[t.string[c]]||[]).length;l-- >0;)t.string.push(n[l]);if(f)for(r in t.default)if(i=typeof t.default[r],n=t.alias[r]=t.alias[r]||[],void 0!==t[i])for(t[i].push(r),c=0;n.length>c;c++)t[i].push(n[c]);const m=h?Object.keys(t.alias):[];for(c=0;d>c;c++){if("--"===(o=e[c])){a._=a._.concat(e.slice(++c));break}for(l=0;o.length>l&&45===o.charCodeAt(l);l++);if(0===l)a._.push(o);else if("no-"===o.substring(l,l+3)){if(i=o.substring(l+3),h&&!~m.indexOf(i))return t.unknown(o);a[i]=!1}else{for(u=l+1;o.length>u&&61!==o.charCodeAt(u);u++);for(i=o.substring(l,u),s=o.substring(++u)||c+1===d||45===(""+e[c+1]).charCodeAt(0)||e[++c],n=2===l?[i]:i,u=0;n.length>u;u++){if(i=n[u],h&&!~m.indexOf(i))return t.unknown("-".repeat(l)+i);Je(a,i,n.length>u+1||s,t)}}}if(f)for(r in t.default)void 0===a[r]&&(a[r]=t.default[r]);if(p)for(r in a)for(n=t.alias[r]||[];n.length>0;)a[n.shift()]=a[r];return a})(e,{string:Xa,default:Object.fromEntries(Xa.map((e=>[e,rt(e)]))),alias:{h:"help"},boolean:"help"}))(e);r.help&&(0,qi.info)('\nsetup_cpp [options]\nsetup_cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true\n\nInstall all the tools required for building and testing C++/C projects.\n\n--architecture\t the cpu architecture to install the tools for. By default it uses the current CPU architecture.\n--compiler\t the <compiler> to install.\n \t You can specify the version instead of specifying just the name e.g: --compiler \'llvm-13.0.0\'\n\n--tool_name\t pass "true" or pass the <version> you would like to install for this tool. e.g. --conan true or --conan "1.42.1"\n\nAll the available tools:\n--llvm\n--gcc\n--vcvarsall\n--cmake\n--ninja\n--vcpkg\n--bazel\n--meson\n--conan\n--make\n--task\n--ccache\n--sccache\n--cppcheck\n--clangformat\n--clangtidy\n--doxygen\n--gcovr\n--opencppcoverage\n--kcov\n--python\n--choco\n--brew\n--nala\n--sevenzip\n--graphviz\n--powershell\n ');const n=r.architecture??process.arch,o=process.env.SETUP_CPP_DIR??S(""),i=[],s=[],a=Fa.create({autoloadLocales:!0});let c,l;Fa.addLocale(t(Ua)),Ga.addLocale(t(Ba));const u=await Le();if(!((e,t)=>{for(let r=0;t.length>r;r++){const n=t.slice(0,r).concat(t.slice(r+1)),o=t[r];if(!be(e[o],o))for(let t=0;n.length>t;t++){const r=n[t];if(be(e[r],n[t]))e[r]=e[o];else if(e[o]!==e[n[t]])return!1}}return!0})(r,["llvm","clangtidy","clangformat"]))return(0,qi.error)("The same version must be used for llvm, clangformat and clangtidy"),1;let d=!1;Y()&&"string"==typeof r.cppcheck&&"string"==typeof r.gcovr&&((0,qi.info)("installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux"),V("python-pygments"));for(const e of qa){const t=r[e];if(void 0!==t){c=Date.now(),(0,Tt.startGroup)(`Installing ${e} ${t}`);try{let r;if("vcvarsall"===e)await Xe(we(e,t,u),void 0,n,void 0,void 0,!1,!1);else{const i=Va[e];d=["llvm","clangformat","clangtidy"].includes(e);const s=(0,_n.join)(o,d?"llvm":e);r=await i(we(e,t,u),s,n)}i.push(nt(e,r))}catch(t){(0,qi.error)(t),s.push(e+" failed to install")}(0,Tt.endGroup)(),l=Date.now(),(0,qi.info)("took "+(a.format(c,l)||"0 seconds"))}}const p=r.compiler;c=Date.now();try{if(void 0!==p){const{compiler:e,version:r}=(e=>{const r=e.split("-"),n=r[0];if(1 in r){const e=r[1];return null!==t(Ys)(e)||(0,qi.info)(`Invalid semver version ${e} used for the compiler.`),{compiler:n,version:e}}return{compiler:n,version:void 0}})(p);switch((0,Tt.startGroup)(`Installing ${e} ${r??""}`),e){case"llvm":case"clang":case"clang++":{const e=await je(we("llvm",r,u),(0,_n.join)(o,"llvm"),n);await _("GCOV","llvm-cov gcov"),i.push(nt("llvm",e));break}case"gcc":case"mingw":case"cygwin":case"msys":{const e=we("gcc",r,u),s=await Re(e,(0,_n.join)(o,"gcc"),n);d&&await _("CPPFLAGS",""),await(e=>{const r=t(Ys)(e),n=null!==r?t(ra)(r):e;return _("GCOV",""!==n?"gcov-"+n:"gcov")})(e),i.push(nt("gcc",s));break}case"cl":case"msvc":case"msbuild":case"vs":case"visualstudio":case"visualcpp":case"visualc++":{const e=await We(we("msvc",r,u),(0,_n.join)(o,"msvc"),n);d&&await _("CPPFLAGS",""),i.push(nt("msvc",e));break}case"appleclang":case"applellvm":(0,Tt.notice)("Assuming apple-clang is already installed"),await Promise.all([_("CC","clang"),_("CXX","clang++")]),i.push(nt("apple-clang",void 0));break;default:s.push("Unsupported compiler "+e)}(0,Tt.endGroup)(),l=Date.now(),(0,qi.info)("took "+(a.format(c,l)||"0 seconds"))}}catch(e){(0,qi.error)(e),s.push("Failed to install the "+p),(0,Tt.endGroup)(),l=Date.now(),(0,qi.info)("took "+(a.format(c,l)||"0 seconds"))}if(0===i.length&&0===s.length)return(0,qi.warning)("setup_cpp was called without any arguments. Nothing to do."),0;if(i.forEach((e=>(0,qi.success)(e))),s.forEach((e=>(0,qi.error)(e))),(0,qi.info)("setup_cpp finished"),"github-actions"!==t(Mn)())switch(process.platform){case"win32":(0,qi.warning)("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":(0,qi.warning)("Run `source ~/.cpprc` or restart your shell to update the environment.")}return 0===s.length?0:1})(process.argv).then((e=>{process.exitCode=e})).catch((e=>{(0,qi.error)("main() panicked!"),(0,qi.error)(e),process.exitCode=1}));
|
||
//# sourceMappingURL=setup_cpp.js.map
|