mirror of https://github.com/aminya/setup-cpp
3 lines
242 KiB
JavaScript
3 lines
242 KiB
JavaScript
#!/usr/bin/env node
|
||
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){return null==e?[]:Array.isArray(e)?e:[e];}function n(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 o(e){return e&&e.__esModule?e.default:e;}function i(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0});}function s(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)=>{s(e,t||{},(e,t)=>{e?n(e):r(t);});});}fr(e,t||{},(e,n)=>{e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,n=!1),r(e,n);});}function a(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=ur.sync(e.command,{path:r[br({env:r})],pathExt:t?wt.delimiter:void 0});}catch(e){}finally{i&&process.chdir(n);}return s&&(s=(0,wt.resolve)(o?e.options.cwd:"",s)),s;}function c(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 l(e,t){return $r&&1===e&&!t.file?c(t.original,"spawn"):null;}function u(e,t,r){const n=xr(e,t,r),o=(0,Pt.spawn)(n.command,n.args,n.options);return Lr.hookChildProcess(o,n),o;}async function d(e,t){if(!e)throw Error("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:r}=t,n=An(t);return await new Promise((t,o)=>{const i=e=>{e&&n.getBufferedLength()<=Ln.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),o(e);};(async()=>{try{await Dn(e,n),t();}catch(e){i(e);}})(),n.on("data",()=>{n.getBufferedLength()>r&&i(new Un());});}),n.getBufferedValue();}function p(){return null!==o(ur).sync("sudo",{nothrow:!0});}function f(){var e;return 0===(null===(e=process.getuid)||void 0===e?void 0:e.call(process))||!!process.env.CI;}function m(){return f()&&p();}function h(e){return m()?"sudo "+e:e;}function g(e,t=[],r={stdio:"inherit",shell:!0}){return m()?o(yr).commandSync("sudo "+[e,...t].map(e=>`'${e}'`).join(" "),r):o(yr).sync(e,t,r);}function v(e,t=[],r={stdio:"inherit",shell:!0}){return m()?o(yr).command("sudo "+[e,...t].map(e=>`'${e}'`).join(" "),r):o(yr)(e,t,r);}function E(){return"win32"===process.platform?co():f();}function y(e){return m()&&"string"==typeof process.env.SUDO_USER?"darwin"===process.platform?(0,wt.join)("/Users/",process.env.SUDO_USER,e):(0,wt.join)("/home/",process.env.SUDO_USER,e):t(nr)("~/"+e);}function w(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)=>{w(e,t||{},(e,t)=>{e?n(e):r(t);});});}mo(e,t||{},(e,n)=>{e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,n=!1),r(e,n);});}function x(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=uo.sync(e.command,{path:r[So({env:r})],pathExt:t?wt.delimiter:void 0});}catch(e){}finally{i&&process.chdir(n);}return s&&(s=wt.resolve(o?e.options.cwd:"",s)),s;}function b(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 S(e,t){return Do&&1===e&&!t.file?b(t.original,"spawn"):null;}function I(e,t,r){const n=bo(e,t,r),o=Pt.spawn(n.command,n.args,n.options);return $o.hookChildProcess(o,n),o;}async function O(e,t){if(!e)throw Error("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:r}=t,n=Ni(t);return await new Promise((t,o)=>{const i=e=>{e&&n.getBufferedLength()<=$i.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),o(e);};(async()=>{try{await Ui(e,n),t();}catch(e){i(e);}})(),n.on("data",()=>{n.getBufferedLength()>r&&i(new ki());});}),n.getBufferedValue();}function R(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0});}function T(){return null!==t(uo).sync("sudo",{nothrow:!0});}function C(){var e;return 0===(null===(e=process.getuid)||void 0===e?void 0:e.call(process))||!!process.env.CI;}function _(){return C()&&T();}function P(e){return _()?"sudo "+e:e;}function A(e,r=[],n={stdio:"inherit",shell:!0}){return _()?t(wo).commandSync("sudo "+[e,...r].map(e=>`'${e}'`).join(" "),n):t(wo).sync(e,r,n);}function N(e,r=[],n={stdio:"inherit",shell:!0}){return _()?t(wo).command("sudo "+[e,...r].map(e=>`'${e}'`).join(" "),n):t(wo)(e,r,n);}function L(){return"win32"===process.platform?us():C();}function $(e={}){const{env:t=process.env,platform:r=process.platform}=e;return"win32"!==r?"PATH":Object.keys(t).reverse().find(e=>"PATH"===e.toUpperCase())||"Path";}function D(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe;}function U(e){return D(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState;}function k(e,r,n){const o=ua(e,r,n),i=ea(e,r),s=ta(e,r);let a;la(s,o.options),Us(o.options);try{a=t(jt).spawn(o.file,o.args,o.options);}catch(e){const r=new(t(jt).ChildProcess)(),n=Promise.reject(Ts({error:e,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:o,timedOut:!1,isCanceled:!1,killed:!1}));return Ks(r,n),r;}const c=Ys(a),l=Ds(a,o.options,c),u=ks(a,o.options,l),d={isCanceled:!1};a.kill=_s.bind(null,a.kill.bind(a)),a.cancel=$s.bind(null,a,d);const p=ys(async()=>{const[{error:e,exitCode:t,signal:r,timedOut:n},c,l,p]=await Xs(a,o.options,u),f=da(o.options,c),m=da(o.options,l),h=da(o.options,p);if(e||0!==t||null!==r){const c=Ts({error:e,exitCode:t,signal:r,stdout:f,stderr:m,all:h,command:i,escapedCommand:s,parsed:o,timedOut:n,isCanceled:d.isCanceled||!!o.options.signal&&o.options.signal.aborted,killed:a.killed});if(!o.options.reject)return c;throw c;}return{command:i,escapedCommand:s,exitCode:0,stdout:f,stderr:m,all:h,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};});return Bs(a,o.options),a.all=Hs(a,o.options),Ms(a),Ks(a,p),a;}function j(e,r,n){const o=ua(e,r,n),i=ea(e,r),s=ta(e,r);la(s,o.options);const a=Fs(o.options);let c;try{c=t(jt).spawnSync(o.file,o.args,{...o.options,input:a});}catch(e){throw Ts({error:e,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:o,timedOut:!1,isCanceled:!1,killed:!1});}const l=da(o.options,c.stdout,c.error),u=da(o.options,c.stderr,c.error);if(c.error||0!==c.status||null!==c.signal){const e=Ts({stdout:l,stderr:u,error:c.error,signal:c.signal,exitCode:c.status,command:i,escapedCommand:s,parsed:o,timedOut:c.error&&"ETIMEDOUT"===c.error.code,isCanceled:!1,killed:null!==c.signal});if(!o.options.reject)return e;throw e;}return{command:i,escapedCommand:s,exitCode:0,stdout:l,stderr:u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};}function M(e,r=["-NoProfile","-NoLogo","-NonInteractive"],n={stdio:"inherit"}){return k((()=>{if(void 0===ma){const e=t(uo).sync("pwsh",{nothrow:!0});null!==e&&(ma=e);const r=t(uo).sync("powershell",{nothrow:!0});null!==r&&(ma=r);}if(void 0===ma)throw Error("Could not find powershell");return ma;})(),[...r,"-c",e],n);}function G(e){"linux"!==process.platform&&"darwin"!==process.platform||!m()||void 0===process.env.SUDO_USER||g("chown",[...((0,xt.statSync)(e).isDirectory()?["-R"]:[]),process.env.SUDO_USER,e],{cwd:e,stdio:"inherit",shell:!0});}async function F(e,r,n=!1){const o=((e,r=!1)=>{const n=r?t(ha)(e):e;return t(xa)(n,'"',"\\");})(null!=r?r:"",n);try{if(Kt.GITHUB_ACTIONS)try{(0,zt.exportVariable)(e,o);}catch(t){(0,Yt.error)(t),await H(e,o);}else await H(e,o);}catch(t){(0,Yt.error)(t),(0,zt.setFailed)(`Failed to export environment variable ${e}=${o}. You should add it manually.`);}}async function B(e){process.env.PATH=`${e}${wt.delimiter}${process.env.PATH}`;try{if(Kt.GITHUB_ACTIONS)try{(0,zt.addPath)(e);}catch(t){(0,Yt.error)(t),await q(e);}else await q(e);}catch(t){(0,Yt.error)(t),(0,zt.setFailed)(`Failed to add ${e} to the percistent PATH. You should add it manually.`);}}async function H(e,t){const r=null!=t?t:"";switch(process.platform){case"win32":return await M(`[Environment]::SetEnvironmentVariable('${e}', '${r}', "User")`),void(0,zt.info)(`${e}='${r}' was set in the environment.`);case"linux":case"darwin":return await V(),(0,xt.appendFileSync)(Sa,`\nexport ${e}="${r}"\n`),void(0,zt.info)(`${e}="${r}" was added to "${Sa}`);}process.env[e]=r;}async function q(e){switch(process.platform){case"win32":return await M(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),void(0,zt.info)(`"${e}" was added to the PATH.`);case"linux":case"darwin":return await V(),(0,xt.appendFileSync)(Sa,`\nexport PATH="${e}:$PATH"\n`),void(0,zt.info)(`"${e}" was added to "${Sa}"`);default:return;}}async function V(){if(Ia)return;const e="# Automatically Generated by setup-cpp\nexport SOURCE_CPPRC=0";if((await(0,ba.pathExists)(Sa))&&(0,xt.readFileSync)(Sa,"utf8").includes(e))return;(0,xt.appendFileSync)(Sa,`\n${e}\n`),(0,zt.info)(`Added ${e} to ${Sa}`);const t=`\n# source .cpprc if SOURCE_CPPRC is not set to 0\nif [[ "$SOURCE_CPPRC" != 0 && -f "${Sa}" ]]; then source "${Sa}"; fi\n`;try{const e=y(".profile");(0,xt.appendFileSync)(e,t),(0,zt.info)(`${t} was added to ${e}`);const r=y(".bashrc");(0,xt.appendFileSync)(r,t),(0,zt.info)(`${t} was added to ${r}`);}catch(e){(0,Yt.warning)(`Failed to add ${t} to .profile or .bashrc. You should add it manually: ${e}`);}Ia=!0;}async function X(e,r=!1){const n=(()=>{let e;return e=null!==t(Oa).sync("nala",{nothrow:!0})?"nala":"apt-get",e;})();for(const{name:t,version:r}of e)(0,Yt.info)(`Installing ${t} ${null!=r?r:""} via ${n}`);var o;process.env.DEBIAN_FRONTEND="noninteractive",Ma&&!r||(W(n),Ma=!0),Ga||(await(async e=>{A(e,["install","--fix-broken","-y","software-properties-common","apt-utils","ca-certificates","gnupg"]);const t=[K(["3B4FE6ACC0B21F32","40976EAF437D05B5"],"setup-cpp-ubuntu-archive.gpg"),K(["1E9377A2BA9EF27F"],"launchpad-toolchain.gpg")];"nala"===e&&t.push(F("LANG","C.UTF-8"),F("LC_ALL","C.UTF-8")),await Promise.all(t);})(n),Ga=!0);const i=[...new Set(e.flatMap(e=>null!==(o=e.repositories)&&void 0!==o?o:[]))];if(0!==i.length){for(const e of i)A("add-apt-repository",["-y",e]);W(n);}return A(n,["install","--fix-broken","-y",...(await Promise.all(e.map(e=>(async(e,t)=>{if(void 0!==t&&""!==t){const{stdout:r}=await k("apt-cache",["search","--names-only",`^${(0,ka.default)(e)}-${(0,ka.default)(t)}$`]);if(""!==r.trim())return`${e}-${t}`;try{const{stdout:r}=await k("apt-cache",["show",`${e}=${t}`]);if(""===r.trim())return`${e}=${t}`;}catch{}(0,Yt.warning)(`Failed to install ${e} ${t} via apt, trying without version`);}return e;})(e.name,e.version))))]),{binDir:"/usr/bin/"};}function W(e){A(e,"nala"!==e?["update","-y"]:["update"]);}function z(){A("gpg",["-k"]);}async function K(e,t,r="keyserver.ubuntu.com"){const n="/etc/apt/trusted.gpg.d/"+t;return(await(0,ba.pathExists)(n))||(z(),await Promise.all(e.map(async e=>{await N("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+n,"--keyserver",r,"--recv-keys",e]),await N("chmod",["644",n]);}))),n;}async function Y(e,t){const r="/etc/apt/trusted.gpg.d/"+e;return(await(0,ba.pathExists)(r))||(z(),await X([{name:"curl"}],void 0),A("bash",["-c",`curl -s ${t} | gpg --no-default-keyring --keyring gnupg-ring:${r} --import`]),A("chmod",["644",r])),r;}async function Q(e,t){return Kt.GITHUB_ACTIONS?N("update-alternatives",["--install","/usr/bin/"+e,e,t,"40"]):(await V(),ja(Sa,`\nif [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${e} ${e} ${t} 40; fi\n`));}async function J(e,r,n){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeof Ba)return{binDir:Ba};const o=t(Oa).sync("brew",{nothrow:!0});if(null!==o)return Ba=(0,Zt.dirname)(o),{binDir:Ba};const i=t(wt).join((0,yt.tmpdir)(),"setup-cpp","brew");await(0,Fa.mkdirP)(i),j("curl",["-LJO","https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh"],{cwd:i});const s=(0,wt.join)(i,"install.sh");return"linux"===process.platform&&(0,xt.readFileSync)(s,"utf-8").replace("#!/bin/bash",""),j("/bin/bash",[s],{stdio:"inherit",env:{NONINTERACTIVE:"1"}}),Ba=Z(),await B(Ba),{binDir:Ba};}function Z(){return"linux"===process.platform?"/home/linuxbrew/.linuxbrew/bin/":"/usr/local/bin/";}async function ee(e,r,n=[]){(0,zt.info)(`Installing ${e} ${null!=r?r:""} via brew`),qa&&null!==t(Oa).sync("brew",{nothrow:!0})||(await J(0,0,process),qa=!0);const o=Z();return j((0,Zt.join)(o,"brew"),["install",void 0!==r&&""!==r?`${e}@${r}`:e,...n],{stdio:"inherit"}),{binDir:o};}async function te(e,r,n){if("win32"!==process.platform)return;if("string"==typeof Ha)return{binDir:Ha};const o=t(Oa).sync("choco",{nothrow:!0});if(null!==o)return Ha=(0,Zt.dirname)(o),{binDir:Ha};let i="powershell.exe";const s=t(Oa).sync(process.env.SystemRoot+"\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",{nothrow:!0});null!==s&&(i=s),j(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 B(a);const c=t(Oa).sync("choco",{nothrow:!0});var l;return Ha=null!==c?(0,Zt.dirname)(c):(null!==(l=process.env.ChocolateyInstall)&&void 0!==l?l:"C:/ProgramData/chocolatey")+"/bin",(await(0,ba.pathExists)(Ha))?{binDir:Ha}:void 0;}async function re(e,r,n=[]){(0,zt.info)(`Installing ${e} ${null!=r?r:""} via chocolatey`),za&&null!==t(Oa).sync("choco",{nothrow:!0})||(await te(0,0,process),za=!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)j("choco",["install","-y",e,"--version="+r,...n],{env:i,extendEnv:!1,stdio:"inherit"});else try{j("choco",["install","-y",e,...n],{env:i,extendEnv:!1,stdio:"inherit"});}catch(t){if(!t.message.includes("exit code 3010"))throw t;(0,Yt.notice)(e+" might require a reboot for the completion of the installation.");}var s;const a=(null!==(s=process.env.ChocolateyInstall)&&void 0!==s?s:"C:/ProgramData/chocolatey")+"/bin";return await B(a),{binDir:a};}function ne(){return"linux"===process.platform&&(void 0===Va&&(Va=null!==t(Oa).sync("pacman",{nothrow:!0})),Va);}function oe(){return"linux"===process.platform&&(void 0===Xa&&(Xa=null!==t(Oa).sync("dnf",{nothrow:!0})),Xa);}function ie(e,t){(0,Yt.info)(`Installing ${e} ${null!=t?t:""} via dnf`);const r="dnf";if(void 0!==t&&""!==t)try{A(r,["-y","install",`${e}-${t}`]);}catch(t){(0,Yt.warning)(t+"\nInstalling the default version available via dnf"),A(r,["-y","install",e]);}else A(r,["-y","install",e]);return{binDir:"/usr/bin/"};}function se(){if("linux"!==process.platform)return!1;if(void 0===Wa){const e="apt-get";Wa=null!==t(Oa).sync(e,{nothrow:!0});}return Wa;}async function ae(e,t,r){(0,Yt.info)(`Installing ${e} ${null!=t?t:""} via pacman`);const n="pacman";Ka||"yay"===r||(A(n,["-Sy","--noconfirm"]),Ka=!0),Ya||(A(n,["-S","--noconfirm","base-devel"]),Ya=!0);const o=e=>A(null!=r?r:n,["-S","--noconfirm",e]);if(void 0!==t&&""!==t){const r=await(async(e,t)=>{const r=[];try{const{stdout:n}=await k(e,["-Si",t]);for(const e of n.matchAll(Qa))r.push(e[1]);}catch(e){(0,Yt.warning)(`Failed to get available versions for ${t}: ${e}`);}return r;})(n,e);if(r.includes(t))try{o(`${e}=${t}`);}catch{o(`${e}${t}`);}else(0,Yt.info)(`Failed to install ${e} ${t} via pacman, trying without version`),o(e);}else o(e);return{binDir:"/usr/bin/"};}function ce(e){return e&&"object"==typeof e&&"default"in e?e:{default:e};}function le(e,t,r,n){return 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());});}function ue(e,t){function r(r){return s=>(r=>{if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==r[0]&&2!==r[0])){a=0;continue;}if(3===r[0]&&(!i||r[1]>i[0]&&i[3]>r[1])){a.label=r[1];break;}if(6===r[0]&&i[1]>a.label){a.label=i[1],i=r;break;}if(i&&i[2]>a.label){a.label=i[2],a.ops.push(r);break;}i[2]&&a.ops.pop(),a.trys.pop();continue;}r=t.call(e,a);}catch(e){r=[6,e],o=0;}finally{n=i=0;}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0};})([r,s]);}var n,o,i,s,a={label:0,sent(){if(1&i[0])throw i[1];return i[1];},trys:[],ops:[]};return s={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this;}),s;}function de(e,t){const r=[];t=t||Nc.arch();const n=Lc.join(ve(),e);if(Pc.existsSync(n)){const e=Pc.readdirSync(n);for(const o of e)if(he(o)){const e=Lc.join(n,o,t||"");Pc.existsSync(e)&&Pc.existsSync(e+".complete")&&r.push(o);}}return r;}function pe(e){return Rc(this,void 0,void 0,function*(){return e||(e=Lc.join(Ee(),jc.default())),yield _c.mkdirP(e),e;});}function fe(e,t,r){return Rc(this,void 0,void 0,function*(){const n=Lc.join(ve(),e,Dc.clean(t)||t,r||"");Cc.debug("destination "+n);const o=n+".complete";return yield _c.rmRF(n),yield _c.rmRF(o),yield _c.mkdirP(n),n;});}function me(e,t,r){const n=Lc.join(ve(),e,Dc.clean(t)||t,r||"");Pc.writeFileSync(n+".complete",""),Cc.debug("finished caching tool");}function he(e){const t=Dc.clean(e)||"";Cc.debug("isExplicit: "+t);const r=null!=Dc.valid(t);return Cc.debug("explicit? "+r),r;}function ge(e,t){let r="";Cc.debug(`evaluating ${e.length} versions`);for(let n=(e=e.sort((e,t)=>Dc.gt(e,t)?1:-1)).length-1;n>=0;n--){const o=e[n];if(Dc.satisfies(o,t)){r=o;break;}}return Cc.debug(r?"matched: "+r:"match not found"),r;}function ve(){const e=process.env.RUNNER_TOOL_CACHE||"";return Tt.ok(e,"Expected RUNNER_TOOL_CACHE to be defined"),e;}function Ee(){const e=process.env.RUNNER_TEMP||"";return Tt.ok(e,"Expected RUNNER_TEMP to be defined"),e;}function ye(e,t){const r=qt[e];return void 0!==r?r:t;}function we(e,t){if(!e||!t)throw Error("retry-as-promised must be passed a callback and a options set");const r={$current:"$current"in(t="number"==typeof t?{max:t}:t)?t.$current:1,max:t.max,timeout:t.timeout||void 0,match:t.match?Array.isArray(t.match)?t.match:[t.match]:[],backoffBase:void 0===t.backoffBase?100:t.backoffBase,backoffExponent:t.backoffExponent||1.1,report:t.report,name:t.name||e.name||"unknown"};return r.match&&!Array.isArray(r.match)&&(r.match=[r.match]),r.report&&r.report("Trying "+r.name+" #"+r.$current+" at "+new Date().toLocaleTimeString(),r),new Promise((t,n)=>{let o,i,s;r.timeout&&(o=setTimeout(()=>{i&&clearTimeout(i),n(new Jc(r.name+" timed out",s));},r.timeout)),Promise.resolve(e({current:r.$current})).then(t).then(()=>{o&&clearTimeout(o),i&&clearTimeout(i);}).catch(a=>{o&&clearTimeout(o),i&&clearTimeout(i),s=a,r.report&&r.report(a&&""+a||a,r,a);var c=r.max>r.$current;if(!c)return n(a);if(c=0===r.match.length||r.match.some(e=>((e,t)=>{if("function"==typeof e)try{if(t instanceof e)return!0;}catch(r){return!!e(t);}return e===""+t||e===t.message||e instanceof RegExp&&(e.test(t.message)||e.test(""+t));})(e,a)),!c)return n(a);var l=r.backoffBase*Math.pow(r.backoffExponent,r.$current-1);r.$current++,r.report&&r.report(`Retrying ${r.name} (${r.$current})`,r),l?(r.report&&r.report(`Delaying retry of ${r.name} by ${l}`,r),i=setTimeout(()=>{we(e,r).then(t).catch(n);},l)):we(e,r).then(t).catch(n);});});}async function xe(e,r,n,o,i){var s,a;(0,Yt.info)(`Installing ${e} ${r} ${i} via direct downloading`),process.env.RUNNER_TEMP=null!==(s=process.env.RUNNER_TEMP)&&void 0!==s?s:(0,yt.tmpdir)(),process.env.RUNNER_TOOL_CACHE=null!==(a=process.env.RUNNER_TOOL_CACHE)&&void 0!==a?a:(0,Zt.join)((0,yt.tmpdir)(),"setup-cpp","hostedtoolcache");const{url:c,binRelativeDir:l,binFileName:u,extractedFolderName:d,extractFunction:p}=await n(r,process.platform,i);if(Kt.GITHUB_ACTIONS)try{const t=(0,xc.find)(e,r);if(t){const n=(0,Zt.join)(t,d),o=(0,Zt.join)(n,l);if(await(0,ba.pathExists)((0,Zt.join)(o,u)))return(0,Yt.info)(`${e} ${r} was found in the cache at ${o}.`),await B(o),{installDir:n,binDir:o};}}catch{}const f=(0,Zt.join)(o,d),m=(0,Zt.join)(f,l),h=(0,Zt.join)(m,u);if((await Promise.all([(0,ba.pathExists)(m),(0,ba.pathExists)(h)])).includes(!1))try{(0,Yt.info)(`Download ${e} ${r}`);const n=await t(Qc)(()=>(0,xc.downloadTool)(c),{name:c,max:4,backoffBase:2e3,report(e){return(0,Yt.info)(e);}});el||((0,Yt.info)("Installing extraction dependencies"),"linux"===process.platform&&(ne()?await Promise.all([ae("unzip"),ae("tar"),ae("xz")]):oe()?(ie("unzip"),ie("tar"),ie("xz")):se()&&(await X([{name:"unzip"},{name:"tar"},{name:"xz-utils"}]))),el=!0),(0,Yt.info)(`Extracting ${n} to ${o}`),await(null==p?void 0:p(n,o));}catch(t){throw Error(`Failed to download ${e} ${r} ${i} from ${c}: ${t}`);}return(0,Yt.info)(`Add ${m} to PATH`),await B(m),Kt.GITHUB_ACTIONS&&"string"==typeof process.env.RUNNER_TOOL_CACHE&&(await(0,xc.cacheDir)(o,e,r)),{installDir:f,binDir:m};}function be(e,t,r){switch(process.platform){case"win32":return re("7zip",e);case"darwin":return ee("p7zip",e);case"linux":if(ne())return ae("p7zip",e);if(oe())return ie("p7zip",e),ie("p7zip-plugins",e);if(se())return X([{name:"p7zip-full",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function Se(e,r){return await k(await(async()=>(void 0===Zc&&(null===t(Oa).sync("7z",{nothrow:!0})&&(await be("",0,process)),Zc="7z"),Zc))(),["x",e,"-o"+r,"-y"],{stdio:"inherit"}),G(r),r;}function Ie(e,t){return Se(e,t);}function Oe(e,t){return Se(e,t);}async function Re(e,t,r=["--strip-components=0"]){try{await(0,Fa.mkdirP)(t);}catch{}try{await k("tar",["xf",e,"-C",t,...r],{stdio:"inherit"});}catch(r){"win32"===process.platform&&r.message.includes("Can't create '\\\\?\\C:")&&(0,Yt.warning)(`Failed to extract symlink ${e} to ${t}. Ignoring this symlink.`);}return G(t),t;}function Te(e,r,n){var o;const i=null!==(o=t(Yc)(e))&&void 0!==o?o:e;switch(r){case"win32":{const r=t(Kc)(i,"v3.19.6");let o;o=["ia32","x86","i386","x32"].includes(n)?r?"win32-x86":"windows-i386":r?"win64-x64":"windows-x86_64";const s=`cmake-${e}-${o}`;return{binRelativeDir:"bin/",binFileName:(0,Zt.addExeExt)("cmake"),extractedFolderName:s,extractFunction:Oe,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${s}.zip`};}case"darwin":{const r=`cmake-${e}-${t(Kc)(i,"v3.19.1")?"Darwin-x86_64":"macos-universal"}`;return{binRelativeDir:"CMake.app/Contents/bin/",binFileName:(0,Zt.addExeExt)("cmake"),extractedFolderName:r,extractFunction:xc.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${r}.tar.gz`};}case"linux":{const r=t(Kc)(i,"v3.19.8");let o;o=["aarch64"].includes(n)?r?"Linux-aarch64":"linux-aarch64":r?"Linux-x86_64":"linux-x86_64";const s=`cmake-${e}-${o}`;return{binRelativeDir:"bin/",binFileName:(0,Zt.addExeExt)("cmake"),extractedFolderName:s,extractFunction:xc.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${s}.tar.gz`};}default:throw Error(`Unsupported platform '${r}'`);}}function Ce(e,t,r){return xe("cmake",e,Te,t,r);}function _e(e,t){return new Promise(r=>{try{const n=(0,It.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 Pe(e,r){return Array.from(e).filter(e=>/^\d+\.\d+\.\d+$/.test(e)&&e.startsWith(r)).sort((e,r)=>{try{return t(rl)(e,r);}catch(t){return e.localeCompare(r);}}).reverse();}function Ae(){switch(process.platform){case"linux":return"15.0.6-ubuntu-18.04";case"darwin":return"15.0.3";default:return"15.0.4";}}function Ne(e,t,r=null){return Le(t,e)?"linux"===process.platform&&null!==r&&e in il?((e,t)=>{const r=t[0];return parseInt(Object.keys(il[e])[0],10)>r?"":il[e][r];})(e,r):ol[e]:null!=t?t:"";}function Le(e,t){return"true"===e||void 0===e&&t in ol;}async function $e(e,t,r){if(!Kt.GITHUB_ACTIONS)return De(e,t);try{(0,Yt.info)("Installing python in GitHub Actions");const{setupActionsPython:n}=await Wt("fyjUS");return n(e,t,r);}catch(r){return(0,Yt.warning)(""+r),De(e,t);}}async function De(e,r,n){switch(process.platform){case"win32":{var o,i;r?await re("python3",e,["--params=/InstallDir:"+r]):await re("python3",e);const n=null!==(i=null!==(o=t(Oa).sync("python3.exe",{nothrow:!0}))&&void 0!==o?o:t(Oa).sync("python.exe",{nothrow:!0}))&&void 0!==i?i:(0,Zt.join)(r,"python.exe"),s=(0,Zt.dirname)(n);return await B(s),{installDir:s,binDir:s};}case"darwin":return ee("python3",e);case"linux":{let t;if(ne())t=await ae("python",e),await ae("python-pip");else if(oe())t=ie("python3",e),ie("python3-pip");else{if(!se())throw Error("Unsupported linux distributions");t=await X([{name:"python3",version:e},{name:"python3-pip"}]);}return t;}default:throw Error("Unsupported platform");}}async function Ue(){let e;if(null!==t(Oa).sync("python3",{nothrow:!0}))e="python3";else{if(null===t(Oa).sync("python",{nothrow:!0})||!(await(async(e,r,n=nl)=>{const o=await(async(e,t=nl)=>{try{var r;const n=await(0,Mc.getExecOutput)(e,["--version"]);return null===(r=(n.stdout||n.stderr||"").trim().match(t))||void 0===r?void 0:r[1];}catch(e){return void console.error(e);}})(e,n);return"string"==typeof o&&"string"==typeof r&&""!==o&&""!==r&&-1!==t(rl)(o,r);})("python","3.0.0"))){if((0,Yt.info)("python3 was not found. Installing python"),await $e(Ne("python",void 0),"",process.arch),cl)throw Error("Failed to install python");return cl=!0,Ue();}e="python";}return t(Tt)("string"==typeof e),"win32"===process.platform?j(e,["-m","pip","install","-U","pip==21.3.1"],{stdio:"inherit"}):"linux"===process.platform&&(ne()?await ae("python-pip"):oe()?ie("python3-pip"):se()&&(await X([{name:"python3-pip"}]))),j(e,["-m","pip","install","-U","wheel"],{stdio:"inherit"}),e;}async function ke(e,r){(0,zt.info)(`Installing ${e} ${null!=r?r:""} via pip`),void 0===sl&&(sl=await Ue()),j(sl,["-m","pip","install",void 0!==r&&""!==r?`${e}==${r}`:e],{stdio:"inherit"}),void 0===al&&(al=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,Mc.getExecOutput)(e+' -c "import sys;print(sys.base_exec_prefix);"')).stdout.trim();return t.push((0,Zt.join)(r,"Scripts"),(0,Zt.join)(r,"Scripts","bin"),(0,Zt.join)(r,"bin")),(e=>[...new Set(e)])(t);}(sl));const n=await(async(e,r)=>{const n=(await Promise.all(e.map(e=>(0,ba.pathExists)((0,Zt.join)(e,(0,Zt.addExeExt)(r)))))).findIndex(e=>e);if(-1!==n)return e[n];const o=t(Oa).sync((0,Zt.addExeExt)(r),{nothrow:!0});return null!==o?(0,Zt.dirname)(o):e[e.length-1];})(al,e);return await B(n),{binDir:n};}async function je(e,t,r){switch(process.platform){case"win32":return await re("graphviz",e),(async()=>{if("win32"===process.platform){const e="C:/Program Files/Graphviz/bin";return await B(e),{binDir:e};}throw Error("Unsupported platform");})();case"darwin":return ee("graphviz",e);case"linux":if(ne())return ae("graphviz",e);if(oe())return ie("graphviz",e);if(se())return X([{name:"graphviz",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}function Me(e,t,r){switch(t){case"linux":{const t="doxygen-"+e;return{binRelativeDir:"bin/",binFileName:(0,Zt.addExeExt)("doxygen"),extractedFolderName:t,extractFunction:xc.extractTar,url:`https://www.doxygen.nl/files/${t}.linux.bin.tar.gz`};}case"win32":{const t="doxygen-"+e;return{binRelativeDir:"",binFileName:(0,Zt.addExeExt)("doxygen"),extractedFolderName:t,extractFunction:Oe,url:`https://www.doxygen.nl/files/${t}.windows.x64.bin.zip`};}default:throw Error(`Unsupported platform '${t}'`);}}async function Ge(){if("darwin"===process.platform)try{const e=await(0,Mc.getExecOutput)("xcrun --sdk macosx --show-sdk-path"),t=e.stdout||e.stderr;t?await F("SDKROOT",t.trim()):(0,Yt.error)("SDKROOT not set");}catch(e){(0,Yt.error)(e);}}function Fe(e,t,r){if("win32"===t){const t=dl[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,Zt.addExeExt)("g++"),extractedFolderName:"mingw64",extractFunction:Se,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 Be(e,r,n){let o;switch(process.platform){case"win32":"arm"!==n&&"arm64"!==n||(await re("gcc-arm-embedded",e));try{o=await xe("g++",e,Fe,r,n);}catch(t){(0,Yt.info)(`Failed to download g++ binary. ${t}. Falling back to chocolatey.`),o=await(async(e,t)=>{let r;var n,o;return await re("mingw",e),"x64"===t&&(await(0,ba.pathExists)("C:/tools/mingw64/bin"))?(r="C:/tools/mingw64/bin",await B(r)):"ia32"===t&&(await(0,ba.pathExists)("C:/tools/mingw32/bin"))?(r="C:/tools/mingw32/bin",await B(r)):(await(0,ba.pathExists)((null!==(n=process.env.ChocolateyInstall)&&void 0!==n?n:"C:/ProgramData/chocolatey")+"/bin/g++.exe"))&&(r=(null!==(o=process.env.ChocolateyInstall)&&void 0!==o?o:"C:/ProgramData/chocolatey")+"/bin"),void 0!==r?{binDir:r}:void 0;})(e,n);}break;case"darwin":o=await ee("gcc",e);break;case"linux":"x64"===n?ne()?o=await ae("gcc",e):oe()?(o=ie("gcc",e),ie("gcc-c++",e),ie("libstdc++-devel",void 0)):se()&&(o=await X([{name:"gcc",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]},{name:"g++",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]}])):((0,Yt.info)(`Install g++-multilib because gcc for ${n} was requested`),ne()?await ae("gcc-multilib",e):se()&&(await X([{name:"gcc-multilib",version:e,repositories:["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(F("CC",(0,Zt.addExeExt)(r+"/gcc")),F("CXX",(0,Zt.addExeExt)(r+"/g++")));else{var o;const i=t(ll)(null!==(o=t(Yc)(e))&&void 0!==o?o:e);5>i?(n.push(F("CC",`${r}/gcc-${e}`),F("CXX",`${r}/g++-${e}`)),se()&&n.push(Q("cc",`${r}/gcc-${e}`),Q("cxx",`${r}/g++-${e}`),Q("gcc",`${r}/gcc-${e}`),Q("g++",`${r}/g++-${e}`))):(n.push(F("CC",`${r}/gcc-${i}`),F("CXX",`${r}/g++-${i}`)),se()&&n.push(Q("cc",`${r}/gcc-${i}`),Q("cxx",`${r}/g++-${i}`),Q("gcc",`${r}/gcc-${i}`),Q("g++",`${r}/g++-${i}`)));}n.push(Ge()),Kt.GITHUB_ACTIONS&&(await(async()=>{const e=(0,Zt.join)(ul,"gcc_matcher.json");if(!(await(0,ba.pathExists)(e)))return(0,Yt.warning)("the gcc_matcher.json file does not exist in the same folder as setup-cpp.js");(0,Yt.info)("::add-matcher::"+e);})()),await Promise.all(n);})(e,o.binDir),o;}function He(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,Zt.addExeExt)("ninja"),extractedFolderName:"",extractFunction:Oe,url:`https://github.com/ninja-build/ninja/releases/download/v${e}/ninja-${n}.zip`};}function qe(e,t,r){return xe("ninja",e,He,t,r);}function Ve(e){return{url:`https://github.com/SimonKagstrom/kcov/releases/download/${e}/kcov-amd64.tar.gz`,extractedFolderName:"",binRelativeDir:"usr/local/bin",binFileName:(0,Zt.addExeExt)("kcov"),extractFunction:Re};}function Xe(e){return{url:`https://github.com/SimonKagstrom/kcov/archive/refs/tags/${e}.tar.gz`,extractedFolderName:"",binRelativeDir:"build/src",binFileName:(0,Zt.addExeExt)("kcov"),extractFunction:We};}async function We(e,r){const n=await Re(e,r,["--strip-components=1"]),o=await(async()=>{let e=t(Oa).sync("cmake",{nothrow:!0});if(null===e){const{binDir:t}=await Ce(Ne("cmake",void 0),(0,Zt.join)(y(""),"cmake"),"");e=(0,Zt.join)(t,"cmake");}return null===t(Oa).sync("ninja",{nothrow:!0})&&(await qe(Ne("ninja",void 0),(0,Zt.join)(y(""),"ninja"),"")),e;})();"linux"===process.platform&&(ne()?await Promise.all([ae("libdwarf"),ae("libcurl-openssl")]):oe()?(ie("libdwarf-devel"),ie("libcurl-devel")):se()&&(await X([{name:"libdw-dev"},{name:"libcurl4-openssl-dev"}])));try{if(null!==t(Oa).sync("patch",{nothrow:!0})){const e=(0,Zt.join)(pl,"gcc13.patch");await k("patch",["-N","-p1","-i",e],{cwd:n,stdio:"inherit"});}else(0,Yt.info)("`patch` not found, skipping gcc13.patch, kcov may not build on gcc 13");}catch{}const i=(0,Zt.join)(n,"build");return await k(o,["-S",n,"-B",i,"-DCMAKE_BUILD_TYPE=Release","-G","Ninja"],{cwd:n,stdio:"inherit"}),await k(o,["--build",i,"--config","Release"],{cwd:n,stdio:"inherit"}),n;}function ze(e,t,r){return`https://github.com/llvm/llvm-project/releases/download/llvmorg-${e}/${t}${e}${r}`;}function Ke(e,t,r){return`https://releases.llvm.org/${e}/${t}${e}${r}`;}function Ye(e,r){switch(e){case"darwin":return(e=>{if(hl.has(e))return null;const r="clang+llvm-",n=`-x86_64${"9.0.0"===e?"-darwin-apple":"-apple-darwin"}.tar.xz`;return t(Kc)(e,"9.0.1")?Ke(e,r,n):ze(e,r,n);})(r);case"linux":return(e=>{let r=e;const n=gl.get(r);let o;if(void 0!==n&&(r=n),r.includes("ubuntu")){const e=r.replace(/-ubuntu-.*/,"");if(!fl.has(e))throw Error("Unsupported Ubuntu version: "+e);o=r.replace(e,""),r=Pe(fl,e)[0];}else""!==r&&r in vl?o=vl[r]:(o=vl[El],(0,Yt.warning)(`Falling back to LLVM version ${El} ${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(Kc)(r,"9.0.1")?Ke(r,i,s):ze(r,i,s);})(r);case"win32":return(async e=>{if(ml.has(e))return null;const r="LLVM-",n=t(Kc)(e,"3.7.0")?"-win32.exe":"-win64.exe",o=t(Kc)(e,"9.0.1");let i,s=!1;return o&&(i=Ke(e,r,n),(await tl(i))||(s=!0)),!s&&o||(i=ze(e,r,n)),i;})(r);default:return null;}}async function Qe(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 tl(e)))return[r,e];}if(!e.has(r))throw Error(`Unsupported target! (platform='${t}', version='${r}'). Try one of the following: ${JSON.stringify(e)}`);const o=[];for(const i of Pe(e,r)){const e=await n(t,i);if(null!==e){if(await tl(e))return[i,e];o.push(e);}}throw Error(`Unsupported target! (platform='${t}', version='${r}'). Try one of the following: ${JSON.stringify(e)}`);})(fl,t,e,Ye);return(0,Yt.info)("specific llvm version: "+n),{url:o,extractedFolderName:"",binRelativeDir:"bin",binFileName:(0,Zt.addExeExt)("clang"),extractFunction:"win32"===t?Ie:(e,t)=>Re(e,t,["--strip-components=1"])};}async function Je(){try{if(se()){null===t(Oa).sync("lsb_release",{nothrow:!0})&&(await X([{name:"lsb-release"}]));const e=await(0,yl.getUbuntuVersion)();return 0===e.length?((0,Yt.warning)("Failed to get the ubuntu major version."),null):e;}return null;}catch(e){return(0,Yt.warning)(""+e),null;}}async function Ze(e,r,n){const o=await et(e,r,n);var i;return await(async(e,r)=>{(e=>{if(null===t(er)(e))try{const r=t(Yc)(e);if(null!==r)return(0,Yt.info)(`Coerced version '${e}' to '${r}'`),r.version;}catch(e){}})(r);const n=(0,Zt.join)(e,"lib");var o;const i=null!==(o=process.env.LD_LIBRARY_PATH)&&void 0!==o?o:"";var s;const a=null!==(s=process.env.DYLD_LIBRARY_PATH)&&void 0!==s?s:"",c=[F("LLVM_PATH",e),F("LD_LIBRARY_PATH",`${n}${wt.delimiter}${i}`),F("DYLD_LIBRARY_PATH",`${n}${wt.delimiter}${a}`),F("LDFLAGS",`-L"${e}/lib"`),F("CPPFLAGS",`-I"${e}/include"`),F("CC",(0,Zt.addExeExt)(e+"/bin/clang")),F("CXX",(0,Zt.addExeExt)(e+"/bin/clang++")),F("LIBRARY_PATH",e+"/lib"),Ge()];se()&&c.push(Q("cc",e+"/bin/clang"),Q("cxx",e+"/bin/clang++"),Q("clang",e+"/bin/clang"),Q("clang++",e+"/bin/clang++"),Q("lld",e+"/bin/lld"),Q("ld.lld",e+"/bin/ld.lld"),Q("llvm-ar",e+"/bin/llvm-ar")),Kt.GITHUB_ACTIONS&&(await rt()),await Promise.all(c);})(null!==(i=o.installDir)&&void 0!==i?i:r,e),o;}async function et(e,t,r){const n=xe("llvm",e,Qe,t,r);let o;xl?o=Promise.resolve():(o=(async(e,t)=>{if("linux"===process.platform){const r=await Je();await Be(Ne("gcc",void 0,r),"",e),se()&&(parseInt(t.split(".")[0],10)>10?await X([{name:"libtinfo-dev"}]):await X([{name:"libtinfo5"}]));}})(r,e),xl=!0);const[i,s]=await Promise.all([n,o]);return i;}async function tt(e,t,r){return Kt.GITHUB_ACTIONS&&(await rt()),et(e,t,r);}async function rt(){const e=(0,Zt.join)(wl,"llvm_matcher.json");if(!(await(0,ba.pathExists)(e)))return(0,Yt.warning)("the llvm_matcher.json file does not exist in the same folder as setup-cpp.js");(0,Yt.info)("::add-matcher::"+e);}function nt(e,t,r){const n=new Nl(e,t,r);process.stdout.write(""+n+Pl.EOL);}function ot(e){Cl.issue("error",e instanceof Error?""+e:e);}function it(e){Cl.issue("group",e);}function st(){Cl.issue("endgroup");}function at(e){return Object.values(Vl).includes(e)?e:e in Vl?Vl[e]:e;}function ct(e){if(Object.keys(Vl).includes(e))return e;for(const[t,r]of Object.entries(Vl))if(r===e)return t;return e;}function lt(e){const t=at(e);let r;if(t){const e=t.split(".")[0]+".9";r=`-version "${t},${e}"`;}else r="-latest";let n=((e,t)=>{try{return(""+Pt.execSync(`vswhere -products * ${t} -prerelease -property installationPath`)).trim()+"\\VC\\Auxiliary\\Build\\vcvarsall.bat";}catch(e){Ol.warning("vswhere failed: "+e);}return null;})(0,r);if(n&&xt.existsSync(n))return Ol.info("Found with vswhere: "+n),n;Ol.info("Not found with vswhere");const o=e?[ct(e)]:ql;for(const e of Bl)for(const t of o)for(const r of Hl)if(n=`${e}\\Microsoft Visual Studio\\${t}\\${r}\\VC\\Auxiliary\\Build\\vcvarsall.bat`,Ol.info("Trying standard location: "+n),xt.existsSync(n))return Ol.info("Found standard location: "+n),n;if(Ol.info("Not found in standard locations"),n=Fl+"\\Microsoft Visual C++ Build Tools\\vcbuildtools.bat",xt.existsSync(n))return Ol.info("Found VS 2015: "+n),n;throw Ol.info("Not found in VS 2015 location: "+n),Error("Microsoft Visual Studio not found");}function ut(e){return-1!=["PATH","INCLUDE","LIB","LIBPATH"].indexOf(e.toUpperCase());}async function dt(e,t,r,n,o,i,s){void 0!==t&&(await(0,ba.pathExists)(t))&&((0,Yt.info)(`Adding ${t} to PATH`),await F("VCTargetsPath",t)),Il((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 pt(e,t,r,n,o,i){if("win32"!==process.platform)return;const s=bl(e);(0,Yt.info)(`Checking if MSVC ${s} is already installed`);let a,c,l=!1;try{const e=Sl(s);l=!0,(0,Yt.info)("Found the pre-installed version of MSVC at "+e);}catch{}if(!l)try{"14.0"===s?(a="14.0",await re("visualcpp-build-tools","14.0.25420.1",["--ignore-dependencies"]),c="C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140"):"15.0"===s?(a="14.16",await re("visualstudio2017buildtools","15.9.41.0",[]),c="C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16"):"16.0"===s?(a="14.29",await re("visualstudio2019buildtools","16.11.7.0",[]),c="C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133"):"17.0"===s?(a=void 0,await re("visualstudio2022buildtools","117.0.5.0",[]),c=void 0):(0,Yt.error)(`The given MSVC versions ${e} is not supported yet.`);}catch(e){(0,Yt.error)(e);}await dt(s,c,r,a,n,o,i),Kt.GITHUB_ACTIONS&&(await(async()=>{const e=(0,Zt.join)(Wl,"msvc_matcher.json");if(!(await(0,ba.pathExists)(e)))return(0,Yt.warning)("the msvc_matcher.json file does not exist in the same folder as setup-cpp.js");(0,Yt.info)("::add-matcher::"+e);})());}function ft(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,Zt.addExeExt)("task"),extractedFolderName:"",extractFunction:i?Oe:Re,url:`https://github.com/go-task/task/releases/download/v${e}/task_${n}_${o}.${s}`};}async function mt(e){let r=Promise.resolve();Kt.GITHUB_ACTIONS||(r=(async()=>{try{await t(Ja)({pkg:t(wc)});}catch(e){(0,Yt.warning)("Failed to check for updates: "+(e instanceof Error?e.message+e.stack:e));}})(),process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS="true");const n=ht(e);var o;n.help&&(0,Yt.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 i=null!==(o=n.architecture)&&void 0!==o?o:process.arch;var s;const a=null!==(s=process.env.SETUP_CPP_DIR)&&void 0!==s?s:y(""),c=[],l=[],u=tr.create({autoloadLocales:!0});let d,p;tr.addLocale(t(rr)),Qt.addLocale(t(Jt));const f=await Je();if(!((e,t)=>{const r=["llvm","clangtidy","clangformat"].filter(t=>void 0!==e[t]),n=r.filter(t=>!Le(e[t],t)),o=1>n.length?"true":e[n[0]];return!n.some(t=>e[t]!==o)&&(r.forEach(t=>{e[t]=o;}),!0);})(n))return(0,Yt.error)("The same version must be used for llvm, clangformat and clangtidy"),1;let m=!1;ne()&&"string"==typeof n.cppcheck&&"string"==typeof n.gcovr&&((0,Yt.info)("installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux"),await ae("python-pygments"));for(const e of Ql){const t=n[e];if(void 0!==t){d=Date.now(),(0,zt.startGroup)(`Installing ${e} ${t}`);try{let r;if("vcvarsall"===e)await dt(Ne(e,t,f),void 0,i,void 0,void 0,!1,!1);else{const n=Yl[e];m=["llvm","clangformat","clangtidy"].includes(e);const o=(0,Zt.join)(a,m?"llvm":e);r=await n(Ne(e,t,f),o,i);}c.push(Et(e,r));}catch(t){(0,Yt.error)(t),l.push(e+" failed to install");}(0,zt.endGroup)(),p=Date.now(),(0,Yt.info)("took "+(u.format(d,p)||"0 seconds"));}}const h=n.compiler;d=Date.now();try{if(void 0!==h){const{compiler:e,version:r}=gt(h);switch((0,zt.startGroup)(`Installing ${e} ${null!=r?r:""}`),e){case"llvm":case"clang":case"clang++":{const e=await Ze(Ne("llvm",r,f),(0,Zt.join)(a,"llvm"),i);await F("GCOV","llvm-cov gcov"),c.push(Et("llvm",e));break;}case"gcc":case"mingw":case"cygwin":case"msys":{const e=Ne("gcc",r,f),n=await Be(e,(0,Zt.join)(a,"gcc"),i);m&&(await F("CPPFLAGS","")),await(e=>{const r=t(er)(e),n=null!==r?t(ll)(r):e;return F("GCOV",""!==n?"gcov-"+n:"gcov");})(e),c.push(Et("gcc",n));break;}case"cl":case"msvc":case"msbuild":case"vs":case"visualstudio":case"visualcpp":case"visualc++":{const e=await pt(Ne("msvc",r,f),(0,Zt.join)(a,"msvc"),i);m&&(await F("CPPFLAGS","")),c.push(Et("msvc",e));break;}case"appleclang":case"applellvm":(0,zt.notice)("Assuming apple-clang is already installed"),await Promise.all([F("CC","clang"),F("CXX","clang++")]),c.push(Et("apple-clang",void 0));break;default:l.push("Unsupported compiler "+e);}(0,zt.endGroup)(),p=Date.now(),(0,Yt.info)("took "+(u.format(d,p)||"0 seconds"));}}catch(e){(0,Yt.error)(e),l.push("Failed to install the "+h),(0,zt.endGroup)(),p=Date.now(),(0,Yt.info)("took "+(u.format(d,p)||"0 seconds"));}if(await(async()=>{if(await(0,ba.pathExists)(Sa)){const e=(0,xt.readFileSync)(Sa,"utf-8").split("\n"),t=[...new Set(e.reverse())].reverse();(0,xt.writeFileSync)(Sa,t.join("\n"));try{G(Sa);}catch{}}})(),0===c.length&&0===l.length)return(0,Yt.warning)("setup-cpp was called without any arguments. Nothing to do."),0;if(c.forEach(e=>(0,Yt.success)(e)),l.forEach(e=>(0,Yt.error)(e)),(0,Yt.info)("setup-cpp finished"),!Kt.GITHUB_ACTIONS)switch(process.platform){case"win32":(0,Yt.warning)("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":(0,Yt.warning)("Run `source ~/.cpprc` or restart your shell to update the environment.");}return await r,0===l.length?0:1;}function ht(e){return((e,t)=>{var o,i,s,a,c,l={_:[]},u=0,d=0,p=0,f=(e=e||[]).length;const m=void 0!==(t=t||{}).alias,h=void 0!==t.unknown,g=void 0!==t.default;if(t.alias=t.alias||{},t.string=r(t.string),t.boolean=r(t.boolean),m)for(o in t.alias)for(i=t.alias[o]=r(t.alias[o]),u=0;i.length>u;u++)(t.alias[i[u]]=i.concat(o)).splice(u,1);for(u=t.boolean.length;u-->0;)for(d=(i=t.alias[t.boolean[u]]||[]).length;d-->0;)t.boolean.push(i[d]);for(u=t.string.length;u-->0;)for(d=(i=t.alias[t.string[u]]||[]).length;d-->0;)t.string.push(i[d]);if(g)for(o in t.default)if(a=typeof t.default[o],i=t.alias[o]=t.alias[o]||[],void 0!==t[a])for(t[a].push(o),u=0;i.length>u;u++)t[a].push(i[u]);const v=h?Object.keys(t.alias):[];for(u=0;f>u;u++){if("--"===(s=e[u])){l._=l._.concat(e.slice(++u));break;}for(d=0;s.length>d&&45===s.charCodeAt(d);d++);if(0===d)l._.push(s);else if("no-"===s.substring(d,d+3)){if(a=s.substring(d+3),h&&!~v.indexOf(a))return t.unknown(s);l[a]=!1;}else{for(p=d+1;s.length>p&&61!==s.charCodeAt(p);p++);for(a=s.substring(d,p),c=s.substring(++p)||u+1===f||45===(""+e[u+1]).charCodeAt(0)||e[++u],i=2===d?[a]:a,p=0;i.length>p;p++){if(a=i[p],h&&!~v.indexOf(a))return t.unknown("-".repeat(d)+a);n(l,a,i.length>p+1||c,t);}}}if(g)for(o in t.default)void 0===l[o]&&(l[o]=t.default[o]);if(m)for(o in l)for(i=t.alias[o]||[];i.length>0;)l[i.shift()]=l[o];return l;})(e,{string:Jl,default:Object.fromEntries(Jl.map(e=>[e,vt(e)])),alias:{h:"help"},boolean:"help"});}function gt(e){const r=e.split("-"),n=r[0];if(1 in r){const e=r[1];return null!==t(er)(e)||(0,Yt.info)(`Invalid semver version ${e} used for the compiler.`),{compiler:n,version:e};}return{compiler:n,version:void 0};}function vt(e){const t=(0,zt.getInput)(e.toLowerCase());if("false"!==t&&""!==t)return t;}function Et(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 yt=require("os"),wt=require("path"),xt=require("fs"),bt=require("crypto"),St=require("http"),It=require("https");require("net");var Ot=require("tls"),Rt=require("events"),Tt=require("assert"),Ct=require("util"),_t=require("fs"),Pt=require("child_process"),At=require("string_decoder"),Nt=require("timers"),Lt=require("buffer"),$t=require("stream"),Dt=require("process"),Ut=require("buffer"),kt=require("path"),jt=require("child_process"),Mt=require("process"),Gt=require("url"),Ft=require("os"),Bt=require("util"),Ht=require("url"),qt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},Vt={},Xt={},Wt=qt.parcelRequire810d;null==Wt&&((Wt=e=>{if(e in Vt)return Vt[e].exports;if(e in Xt){var t=Xt[e];delete Xt[e];var r={id:e,exports:{}};return Vt[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)=>{Xt[e]=t;},qt.parcelRequire810d=Wt),Wt.register("2heqc",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=Wt("lxvYw"),d=Wt("izMKk"),p=Wt("3GPt4");const f=c(yt),m=c(wt);var h,g,v=Wt("cxUw3");(g=h=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}${m.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(f.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=h.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+f.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 E=Wt("a9gnA");Object.defineProperty(e.exports,"summary",{enumerable:!0,get(){return E.summary;}}),E=Wt("a9gnA"),Object.defineProperty(e.exports,"markdownSummary",{enumerable:!0,get(){return E.markdownSummary;}});var y=Wt("3zXsD");Object.defineProperty(e.exports,"toPosixPath",{enumerable:!0,get(){return y.toPosixPath;}}),Object.defineProperty(e.exports,"toWin32Path",{enumerable:!0,get(){return y.toWin32Path;}}),Object.defineProperty(e.exports,"toPlatformPath",{enumerable:!0,get(){return y.toPlatformPath;}});}),Wt.register("lxvYw",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(yt);var a=Wt("3GPt4");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;}}}),Wt.register("3GPt4",(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}:{};}),Wt.register("izMKk",(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(xt),s=o(yt);var a=Wt("21Qsr"),c=Wt("3GPt4");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}`;};}),Wt.register("21Qsr",(t,r)=>{e(t.exports,"default",()=>i);var n=Wt("lr0KB"),o=Wt("671Sw"),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);};}),Wt.register("lr0KB",(r,n)=>{function o(){return s>i.length-16&&(t(bt).randomFillSync(i),s=0),i.slice(s,s+=16);}e(r.exports,"default",()=>o);const i=new Uint8Array(256);let s=i.length;}),Wt.register("671Sw",(t,r)=>{e(t.exports,"default",()=>i);var n=Wt("bfNI0");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;};}),Wt.register("bfNI0",(t,r)=>{e(t.exports,"default",()=>o);var n=Wt("k4edj"),o=e=>"string"==typeof e&&n.default.test(e);}),Wt.register("k4edj",(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;}),Wt.register("cxUw3",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=Wt("aPbbM"),o=Wt("5UVtg"),i=Wt("2heqc");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;}),Wt.register("aPbbM",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(St),a=o(It),c=o(Wt("dG8Uc")),l=o(Wt("j6C2A"));var u,d,p,f,m;(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",(f=p=e.exports.Headers||(e.exports.Headers={})).Accept="accept",f.ContentType="content-type",(m=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 h=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect],g=[u.BadGateway,u.ServiceUnavailable,u.GatewayTimeout],v=["OPTIONS","GET","DELETE","HEAD"];class E extends Error{constructor(e,t){super(e),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,E.prototype);}}e.exports.HttpClientError=E;class y{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=y,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,m.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,m.ApplicationJson),r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,m.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,m.ApplicationJson),r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,m.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,m.ApplicationJson),r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,m.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&&h.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 y(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 E(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),{});}),Wt.register("dG8Uc",(e,t)=>{"use strict";function r(e){if(!e.hostname)return!1;if((e=>{const t=e.toLowerCase();return"localhost"===t||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]");})(e.hostname))return!0;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("*"===e||n.some(t=>t===e||t.endsWith("."+e)||e.startsWith(".")&&t.endsWith(""+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;}),Wt.register("j6C2A",(e,t)=>{e.exports=Wt("3axfE");}),Wt.register("3axfE",function(t,r){function n(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||St.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=Ot.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=St.request,t;},c=e=>{var t=new n(e);return t.request=St.request,t.createSocket=o,t.defaultPort=443,t;},l=e=>{var t=new n(e);return t.request=It.request,t;},u=e=>{var t=new n(e);return t.request=It.request,t.createSocket=o,t.defaultPort=443,t;},Ct.inherits(n,Rt.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=()=>{};}),Wt.register("5UVtg",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");});}};}),Wt.register("a9gnA",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}=xt.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,xt.constants.R_OK|xt.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(yt.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=this.wrap(["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",e);return this.addRaw(n).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;}),Wt.register("3zXsD",(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(wt);e.exports.toPosixPath=e=>e.replace(/[\\]/g,"/"),e.exports.toWin32Path=e=>e.replace(/[/]/g,"\\"),e.exports.toPlatformPath=e=>e.replace(/[/\\]/g,i.sep);}),Wt.register("cLprm",(e,t)=>{"use strict";function r(e){return"string"==typeof e?!!o[e]:"env"in e?o[e.env]&&o[e.env].includes(e.includes):"any"in e?e.any.some(e=>!!o[e]):Object.keys(e).every(t=>o[t]===e[t]);}var n=Wt("iQYeD");const o=process.env;Object.defineProperty(e.exports,"_vendors",{value:n.map(e=>e.constant)}),e.exports.name=null,e.exports.isPR=null,n.forEach(t=>{const n=(Array.isArray(t.env)?t.env:[t.env]).every(e=>r(e));if(e.exports[t.constant]=n,n)switch(e.exports.name=t.name,typeof t.pr){case"string":e.exports.isPR=!!o[t.pr];break;case"object":e.exports.isPR="env"in t.pr?t.pr.env in o&&o[t.pr.env]!==t.pr.ne:"any"in t.pr?t.pr.any.some(e=>!!o[e]):r(t.pr);break;default:e.exports.isPR=null;}}),e.exports.isCI=!("false"===o.CI||!(o.BUILD_ID||o.BUILD_NUMBER||o.CI||o.CI_APP_ID||o.CI_BUILD_ID||o.CI_BUILD_NUMBER||o.CI_NAME||o.CONTINUOUS_INTEGRATION||o.RUN_ID||e.exports.name));}),Wt.register("iQYeD",(e,t)=>{e.exports=JSON.parse('[{"name":"Appcircle","constant":"APPCIRCLE","env":"AC_APPCIRCLE"},{"name":"AppVeyor","constant":"APPVEYOR","env":"APPVEYOR","pr":"APPVEYOR_PULL_REQUEST_NUMBER"},{"name":"AWS CodeBuild","constant":"CODEBUILD","env":"CODEBUILD_BUILD_ARN"},{"name":"Azure Pipelines","constant":"AZURE_PIPELINES","env":"SYSTEM_TEAMFOUNDATIONCOLLECTIONURI","pr":"SYSTEM_PULLREQUEST_PULLREQUESTID"},{"name":"Bamboo","constant":"BAMBOO","env":"bamboo_planKey"},{"name":"Bitbucket Pipelines","constant":"BITBUCKET","env":"BITBUCKET_COMMIT","pr":"BITBUCKET_PR_ID"},{"name":"Bitrise","constant":"BITRISE","env":"BITRISE_IO","pr":"BITRISE_PULL_REQUEST"},{"name":"Buddy","constant":"BUDDY","env":"BUDDY_WORKSPACE_ID","pr":"BUDDY_EXECUTION_PULL_REQUEST_ID"},{"name":"Buildkite","constant":"BUILDKITE","env":"BUILDKITE","pr":{"env":"BUILDKITE_PULL_REQUEST","ne":"false"}},{"name":"CircleCI","constant":"CIRCLE","env":"CIRCLECI","pr":"CIRCLE_PULL_REQUEST"},{"name":"Cirrus CI","constant":"CIRRUS","env":"CIRRUS_CI","pr":"CIRRUS_PR"},{"name":"Codefresh","constant":"CODEFRESH","env":"CF_BUILD_ID","pr":{"any":["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{"name":"Codemagic","constant":"CODEMAGIC","env":"CM_BUILD_ID","pr":"CM_PULL_REQUEST"},{"name":"Codeship","constant":"CODESHIP","env":{"CI_NAME":"codeship"}},{"name":"Drone","constant":"DRONE","env":"DRONE","pr":{"DRONE_BUILD_EVENT":"pull_request"}},{"name":"dsari","constant":"DSARI","env":"DSARI"},{"name":"Expo Application Services","constant":"EAS","env":"EAS_BUILD"},{"name":"Gerrit","constant":"GERRIT","env":"GERRIT_PROJECT"},{"name":"GitHub Actions","constant":"GITHUB_ACTIONS","env":"GITHUB_ACTIONS","pr":{"GITHUB_EVENT_NAME":"pull_request"}},{"name":"GitLab CI","constant":"GITLAB","env":"GITLAB_CI","pr":"CI_MERGE_REQUEST_ID"},{"name":"GoCD","constant":"GOCD","env":"GO_PIPELINE_LABEL"},{"name":"Google Cloud Build","constant":"GOOGLE_CLOUD_BUILD","env":"BUILDER_OUTPUT"},{"name":"Harness CI","constant":"HARNESS","env":"HARNESS_BUILD_ID"},{"name":"Heroku","constant":"HEROKU","env":{"env":"NODE","includes":"/app/.heroku/node/bin/node"}},{"name":"Hudson","constant":"HUDSON","env":"HUDSON_URL"},{"name":"Jenkins","constant":"JENKINS","env":["JENKINS_URL","BUILD_ID"],"pr":{"any":["ghprbPullId","CHANGE_ID"]}},{"name":"LayerCI","constant":"LAYERCI","env":"LAYERCI","pr":"LAYERCI_PULL_REQUEST"},{"name":"Magnum CI","constant":"MAGNUM","env":"MAGNUM"},{"name":"Netlify CI","constant":"NETLIFY","env":"NETLIFY","pr":{"env":"PULL_REQUEST","ne":"false"}},{"name":"Nevercode","constant":"NEVERCODE","env":"NEVERCODE","pr":{"env":"NEVERCODE_PULL_REQUEST","ne":"false"}},{"name":"ReleaseHub","constant":"RELEASEHUB","env":"RELEASE_BUILD_ID"},{"name":"Render","constant":"RENDER","env":"RENDER","pr":{"IS_PULL_REQUEST":"true"}},{"name":"Sail CI","constant":"SAIL","env":"SAILCI","pr":"SAIL_PULL_REQUEST_NUMBER"},{"name":"Screwdriver","constant":"SCREWDRIVER","env":"SCREWDRIVER","pr":{"env":"SD_PULL_REQUEST","ne":"false"}},{"name":"Semaphore","constant":"SEMAPHORE","env":"SEMAPHORE","pr":"PULL_REQUEST_NUMBER"},{"name":"Shippable","constant":"SHIPPABLE","env":"SHIPPABLE","pr":{"IS_PULL_REQUEST":"true"}},{"name":"Solano CI","constant":"SOLANO","env":"TDDIUM","pr":"TDDIUM_PR_ID"},{"name":"Sourcehut","constant":"SOURCEHUT","env":{"CI_NAME":"sourcehut"}},{"name":"Strider CD","constant":"STRIDER","env":"STRIDER"},{"name":"TaskCluster","constant":"TASKCLUSTER","env":["TASK_ID","RUN_ID"]},{"name":"TeamCity","constant":"TEAMCITY","env":"TEAMCITY_VERSION"},{"name":"Travis CI","constant":"TRAVIS","env":"TRAVIS","pr":{"env":"TRAVIS_PULL_REQUEST","ne":"false"}},{"name":"Vercel","constant":"VERCEL","env":{"any":["NOW_BUILDER","VERCEL"]}},{"name":"Visual Studio App Center","constant":"APPCENTER","env":"APPCENTER_BUILD_ID"},{"name":"Woodpecker","constant":"WOODPECKER","env":{"CI":"woodpecker"},"pr":{"CI_BUILD_EVENT":"pull_request"}},{"name":"Xcode Cloud","constant":"XCODE_CLOUD","env":"CI_XCODE_PROJECT","pr":"CI_PULL_REQUEST_NUMBER"},{"name":"Xcode Server","constant":"XCODE_SERVER","env":"XCS"}]');}),Wt.register("hHq4F",(t,r)=>{function n(e){return l.GITHUB_ACTIONS?c.error(e):console.log(`[31m${e}[0m`);}function o(e){return console.log(`[32m${e}[0m`);}function i(e){return l.GITHUB_ACTIONS?c.warning(e):console.log(`[33m${e}[0m`);}function s(e){return l.GITHUB_ACTIONS?c.notice(e):console.log(`[94m${e}[0m`);}function a(e){return l.GITHUB_ACTIONS?c.info(e):console.log(e);}e(t.exports,"error",()=>n),e(t.exports,"success",()=>o),e(t.exports,"warning",()=>i),e(t.exports,"notice",()=>s),e(t.exports,"info",()=>a);var c=Wt("94yZ3"),l=Wt("cLprm");}),Wt.register("94yZ3",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=Wt("6mTwv"),d=Wt("bRVRZ"),p=Wt("4BVCZ");const f=c(yt),m=c(wt);var h,g,v=Wt("21Qsr"),E=Wt("GfBiA");(g=h=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}${f.EOL}${r}${f.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}${m.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(f.EOL),u.issueCommand("set-output",{name:e},t);},e.exports.setCommandEcho=e=>{u.issue("echo",e?"on":"off");},e.exports.setFailed=e=>{process.exitCode=h.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+f.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 E.OidcClient.getIDToken(e);});};var y=Wt("1yBCw");Object.defineProperty(e.exports,"summary",{enumerable:!0,get(){return y.summary;}}),y=Wt("1yBCw"),Object.defineProperty(e.exports,"markdownSummary",{enumerable:!0,get(){return y.markdownSummary;}});var w=Wt("1tHq1");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;}});}),Wt.register("6mTwv",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(yt);var a=Wt("4BVCZ");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;}}}),Wt.register("4BVCZ",(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}:{};}),Wt.register("bRVRZ",(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(xt),s=o(yt);var a=Wt("4BVCZ");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"});};}),Wt.register("GfBiA",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=Wt("aPbbM"),o=Wt("5UVtg"),i=Wt("94yZ3");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;}),Wt.register("1yBCw",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}=xt.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,xt.constants.R_OK|xt.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(yt.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=this.wrap(["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",e);return this.addRaw(n).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;}),Wt.register("1tHq1",(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(wt);e.exports.toPosixPath=e=>e.replace(/[\\]/g,"/"),e.exports.toWin32Path=e=>e.replace(/[/]/g,"\\"),e.exports.toPlatformPath=e=>e.replace(/[/\\]/g,i.sep);}),Wt.register("ljv3o",function(e,t){var r=wt.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);}),Wt.register("A8hFE",(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,wt.basename)(e):(0,wt.basename)(e,(0,wt.extname)(e));}function a(e){return(0,wt.normalize)(e).replace(RegExp((0,g.default)(wt.sep)+"$"),"");}function c(e,t=".exe",r=""){return"win32"===process.platform?`${e}${t}`:`${e}${r}`;}function l(e,t){const r=(0,wt.extname)(e),n=`${t}${(0,wt.basename)(e,r)}${r}`;return(0,wt.join)((0,wt.dirname)(e),n);}function u(e,t){const r=(0,wt.extname)(e),n=`${(0,wt.basename)(e,r)}${t}${r}`;return(0,wt.join)((0,wt.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 f(e){const t=(0,wt.extname)(e).length;return e.slice(0,-t);}function m(e,r){return t(v)(e,r);}function h(e,t){const r=(0,wt.relative)(t,e);return!(!r||".."===r||r.startsWith(".."+wt.sep)||r===(0,wt.resolve)(e));}e(r.exports,"addExeExt",()=>c),e(r.exports,"addShExt",()=>d),e(r.exports,"addShRelativePrefix",()=>p),e(r.exports,"dirname",()=>wt.dirname),e(r.exports,"join",()=>wt.join);var g=Wt("9O4vc"),v=Wt("eVYO7"),E={},y={};i(y,"name",()=>s);var w={};i(w,"normalizeTrim",()=>a);var x={};i(x,"addExeExt",()=>c);var b={};i(b,"addNamePrefix",()=>l);var S={};i(S,"addNameSuffix",()=>u);var I={};i(I,"addShExt",()=>d);var O={};i(O,"addShRelativePrefix",()=>p);var R={};i(R,"removeExt",()=>f);var T={};i(T,"replaceExt",()=>m);var C={};i(C,"isPathInside",()=>h),o(E,y),o(E,w),o(E,x),o(E,b),o(E,S),o(E,I),o(E,O),o(E,R),o(E,T),o(E,C);}),Wt.register("9O4vc",(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);}),Wt.register("eVYO7",(e,t)=>{"use strict";e.exports=(e,t)=>{if("string"!=typeof e)return e;if(0===e.length)return e;var r,n=wt.basename(e,wt.extname(e))+t,o=wt.join(wt.dirname(e),n);return(r=e.slice(0,2))==="."+wt.sep||"./"===r?"."+wt.sep+o:o;};}),Wt.register("l2nMb",(e,t)=>{var r=Wt("cazyM");e.exports=(e,t)=>{const n=r(e,t);return n?n.version:null;};}),Wt.register("cazyM",(e,t)=>{var r=Wt("7oICO");e.exports=(e,t,n=!1)=>{if(e instanceof r)return e;try{return new r(e,t);}catch(e){if(!n)return null;throw e;}};}),Wt.register("7oICO",function(e,t){var r=Wt("8S3lx"),n=Wt("64eL1"),o=n.MAX_LENGTH,i=n.MAX_SAFE_INTEGER,s=Wt("2LGsN"),a=s.re,c=s.t,l=Wt("lGztF"),u=Wt("17EWg").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. Must be a string. Got type "${typeof 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,r){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,r),this.inc("pre",t,r);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":{const e=+r?1:0;if(!t&&!1===r)throw Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let n=this.prerelease.length;for(;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(e);}}if(t){let n=[t,e];!1===r&&(n=[t]),0===u(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n;}break;}default:throw Error("invalid increment argument: "+e);}return this.format(),this.raw=this.version,this;}}e.exports=d;}),Wt.register("8S3lx",(e,t)=>{const r=("object"==typeof process&&process,()=>{});e.exports=r;}),Wt.register("64eL1",(e,t)=>{e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};}),Wt.register("2LGsN",(e,t)=>{var r=Wt("64eL1").MAX_SAFE_COMPONENT_LENGTH,n=Wt("8S3lx");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*$");}),Wt.register("lGztF",(e,t)=>{const r=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=e=>e?"object"!=typeof e?r:e:n;}),Wt.register("17EWg",(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);}};}),Wt.register("kAOmP",(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=Wt("3abeg"),i=Wt("aaJ7t");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};}),Wt.register("3abeg",(e,t)=>{e.exports=Wt("ljv3o");}),Wt.register("aaJ7t",(e,t)=>{"use strict";e.exports=!("undefined"==typeof process||!process.versions||!process.versions.node);}),Wt.register("gRK0M",(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){xt.stat(e,(o,i)=>{n(o,!o&&r(i,e,t));});}e.exports=n,n.sync=(e,t)=>r(xt.statSync(e),e,t);}),Wt.register("9ZovO",(e,t)=>{function r(e,t,r){xt.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(xt.statSync(e),t);}),Wt.register("2dWxz",(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");}),Wt.register("eaZtc",(e,t)=>{"use strict";var r=/[|\\{}()[\]^$+*?.]/g;e.exports=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(r,"\\$&");};}),Wt.register("3WkGD",(t,r)=>{async function n(e){try{return await _t.promises.access(e),!0;}catch{return!1;}}e(t.exports,"pathExists",()=>n);}),Wt.register("kSdX3",function(e,t){"use strict";function r(e){return u(this,void 0,void 0,function*(){if(p.IS_WINDOWS&&/[*"<>|]/.test(e))throw Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield p.rm(e,{force:!0,maxRetries:3,recursive:!0,retryDelay:300});}catch(e){throw Error("File was unable to be removed "+e);}});}function n(e){return u(this,void 0,void 0,function*(){Tt.ok(e,"a path argument must be provided"),yield p.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(p.IS_WINDOWS&&process.env.PATHEXT)for(const e of process.env.PATHEXT.split(d.delimiter))e&&t.push(e);if(p.isRooted(e)){const r=yield p.tryGetExecutablePath(e,t);return r?[r]:[];}if(e.includes(d.sep))return[];const r=[];if(process.env.PATH)for(const e of process.env.PATH.split(d.delimiter))e&&r.push(e);const n=[];for(const o of r){const r=yield p.tryGetExecutablePath(d.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 p.readdir(e);for(const n of a){const a=`${e}/${n}`,c=`${t}/${n}`;(yield p.lstat(a)).isDirectory()?yield i(a,c,r,o):yield s(a,c,o);}yield p.chmod(t,(yield p.stat(e)).mode);});}function s(e,t,r){return u(this,void 0,void 0,function*(){if((yield p.lstat(e)).isSymbolicLink()){try{yield p.lstat(t),yield p.unlink(t);}catch(e){"EPERM"===e.code&&(yield p.chmod(t,"0666"),yield p.unlink(t));}const r=yield p.readlink(e);yield p.symlink(r,t,p.IS_WINDOWS?"junction":null);}else(yield p.exists(t))&&!r||(yield p.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(wt),p=l(Wt("11Ly6"));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 p.exists(t))?yield p.stat(t):null;if(c&&c.isFile()&&!n)return;const l=c&&c.isDirectory()&&a?d.join(t,d.basename(e)):t;if(!(yield p.exists(e)))throw Error("no such file or directory: "+e);if((yield p.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(""===d.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 p.exists(t)){let n=!0;if((yield p.isDirectory(t))&&(t=d.join(t,d.basename(e)),n=yield p.exists(t)),n){if(null!=o.force&&!o.force)throw Error("Destination already exists");yield r(t);}}yield n(d.dirname(t)),yield p.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(p.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;}),Wt.register("11Ly6",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.READONLY=e.exports.UV_FS_O_EXLOCK=e.exports.IS_WINDOWS=e.exports.unlink=e.exports.symlink=e.exports.stat=e.exports.rmdir=e.exports.rm=e.exports.rename=e.exports.readlink=e.exports.readdir=e.exports.open=e.exports.mkdir=e.exports.lstat=e.exports.copyFile=e.exports.chmod=void 0;const c=s(xt),l=s(wt);e.exports.chmod=(n=c.promises).chmod,e.exports.copyFile=n.copyFile,e.exports.lstat=n.lstat,e.exports.mkdir=n.mkdir,e.exports.open=n.open,e.exports.readdir=n.readdir,e.exports.readlink=n.readlink,e.exports.rename=n.rename,e.exports.rm=n.rm,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.UV_FS_O_EXLOCK=268435456,e.exports.READONLY=c.constants.O_RDONLY,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";};}),Wt.register("8kgpT",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(Wt("feUtB"));var a=Wt("2heqc");e.exports._findMatch=function(t,r,n,o){return i(this,void 0,void 0,function*(){const i=yt.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=yt.platform();let r="";if("darwin"===t)r=""+Pt.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 xt.existsSync(e)?r=""+xt.readFileSync(e):xt.existsSync(t)&&(r=""+xt.readFileSync(t)),r;};}),Wt.register("feUtB",function(e,t){function r(e){T[e]=C++;}function n(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof o)return e;if("string"!=typeof e)return null;if(e.length>S)return null;if(!(t.loose?O[T.LOOSE]:O[T.FULL]).test(e))return null;try{return new o(e,t);}catch(e){return null;}}function o(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof o){if(e.loose===t.loose)return e;e=e.version;}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>S)throw new TypeError("version is longer than "+S+" characters");if(!(this instanceof o))return new o(e,t);b("SemVer",e,t),this.options=t,this.loose=!!t.loose;var r=e.trim().match(t.loose?O[T.LOOSE]:O[T.FULL]);if(!r)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[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=r[4]?r[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&I>t)return t;}return e;}):[],this.build=r[5]?r[5].split("."):[],this.format();}function i(e,t){var r=P.test(e),n=P.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:t>e?-1:1;}function s(e,t,r){return new o(e,r).compare(new o(t,r));}function a(e,t,r){return s(e,t,r)>0;}function c(e,t,r){return 0>s(e,t,r);}function l(e,t,r){return 0===s(e,t,r);}function u(e,t,r){return 0!==s(e,t,r);}function d(e,t,r){return s(e,t,r)>=0;}function p(e,t,r){return 0>=s(e,t,r);}function f(e,t,r,n){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return l(e,r,n);case"!=":return u(e,r,n);case">":return a(e,r,n);case">=":return d(e,r,n);case"<":return c(e,r,n);case"<=":return p(e,r,n);default:throw new TypeError("Invalid operator: "+t);}}function m(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof m){if(e.loose===!!t.loose)return e;e=e.value;}if(!(this instanceof m))return new m(e,t);b("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.value=this.semver===A?"":this.operator+this.semver.version,b("comp",this);}function h(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof h)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new h(e.raw,t);if(e instanceof m)return new h(e.value,t);if(!(this instanceof h))return new h(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim());},this).filter(e=>e.length),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format();}function g(e,t){for(var r=!0,n=e.slice(),o=n.pop();r&&n.length;)r=n.every(e=>o.intersects(e,t)),o=n.pop();return r;}function v(e){return!e||"x"===e.toLowerCase()||"*"===e;}function E(e,t,r,n,o,i,s,a,c,l,u,d,p){return((t=v(r)?"":v(n)?">="+r+".0.0":v(o)?">="+r+"."+n+".0":">="+t)+" "+(a=v(c)?"":v(l)?"<"+(+c+1)+".0.0":v(u)?"<"+c+"."+(+l+1)+".0":d?"<="+c+"."+l+"."+u+"-"+d:"<="+a)).trim();}function y(e,t,r){for(var n=0;e.length>n;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(n=0;e.length>n;n++)if(b(e[n].semver),e[n].semver!==A&&e[n].semver.prerelease.length>0){var o=e[n].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0;}return!1;}return!0;}function w(e,t,r){try{t=new h(t,r);}catch(e){return!1;}return t.test(e);}function x(e,t,r,n){var i,s,l,u,f;switch(e=new o(e,n),t=new h(t,n),r){case">":i=a,s=p,l=c,u=">",f=">=";break;case"<":i=c,s=d,l=a,u="<",f="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"');}if(w(e,t,n))return!1;for(var g=0;t.set.length>g;++g){var v=null,E=null;if(t.set[g].forEach(e=>{e.semver===A&&(e=new m(">=0.0.0")),E=E||e,i(e.semver,(v=v||e).semver,n)?v=e:l(e.semver,E.semver,n)&&(E=e);}),v.operator===u||v.operator===f)return!1;if((!E.operator||E.operator===u)&&s(e,E.semver))return!1;if(E.operator===f&&l(e,E.semver))return!1;}return!0;}var b;t=e.exports=o,"object"==typeof process&&process,b=()=>{},t.SEMVER_SPEC_VERSION="2.0.0";var S=256,I=Number.MAX_SAFE_INTEGER||9007199254740991,O=t.re=[],R=t.src=[],T=t.tokens={},C=0;r("NUMERICIDENTIFIER"),R[T.NUMERICIDENTIFIER]="0|[1-9]\\d*",r("NUMERICIDENTIFIERLOOSE"),R[T.NUMERICIDENTIFIERLOOSE]="[0-9]+",r("NONNUMERICIDENTIFIER"),R[T.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",r("MAINVERSION"),R[T.MAINVERSION]="("+R[T.NUMERICIDENTIFIER]+")\\.("+R[T.NUMERICIDENTIFIER]+")\\.("+R[T.NUMERICIDENTIFIER]+")",r("MAINVERSIONLOOSE"),R[T.MAINVERSIONLOOSE]="("+R[T.NUMERICIDENTIFIERLOOSE]+")\\.("+R[T.NUMERICIDENTIFIERLOOSE]+")\\.("+R[T.NUMERICIDENTIFIERLOOSE]+")",r("PRERELEASEIDENTIFIER"),R[T.PRERELEASEIDENTIFIER]="(?:"+R[T.NUMERICIDENTIFIER]+"|"+R[T.NONNUMERICIDENTIFIER]+")",r("PRERELEASEIDENTIFIERLOOSE"),R[T.PRERELEASEIDENTIFIERLOOSE]="(?:"+R[T.NUMERICIDENTIFIERLOOSE]+"|"+R[T.NONNUMERICIDENTIFIER]+")",r("PRERELEASE"),R[T.PRERELEASE]="(?:-("+R[T.PRERELEASEIDENTIFIER]+"(?:\\."+R[T.PRERELEASEIDENTIFIER]+")*))",r("PRERELEASELOOSE"),R[T.PRERELEASELOOSE]="(?:-?("+R[T.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+R[T.PRERELEASEIDENTIFIERLOOSE]+")*))",r("BUILDIDENTIFIER"),R[T.BUILDIDENTIFIER]="[0-9A-Za-z-]+",r("BUILD"),R[T.BUILD]="(?:\\+("+R[T.BUILDIDENTIFIER]+"(?:\\."+R[T.BUILDIDENTIFIER]+")*))",r("FULL"),r("FULLPLAIN"),R[T.FULLPLAIN]="v?"+R[T.MAINVERSION]+R[T.PRERELEASE]+"?"+R[T.BUILD]+"?",R[T.FULL]="^"+R[T.FULLPLAIN]+"$",r("LOOSEPLAIN"),R[T.LOOSEPLAIN]="[v=\\s]*"+R[T.MAINVERSIONLOOSE]+R[T.PRERELEASELOOSE]+"?"+R[T.BUILD]+"?",r("LOOSE"),R[T.LOOSE]="^"+R[T.LOOSEPLAIN]+"$",r("GTLT"),R[T.GTLT]="((?:<|>)?=?)",r("XRANGEIDENTIFIERLOOSE"),R[T.XRANGEIDENTIFIERLOOSE]=R[T.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",r("XRANGEIDENTIFIER"),R[T.XRANGEIDENTIFIER]=R[T.NUMERICIDENTIFIER]+"|x|X|\\*",r("XRANGEPLAIN"),R[T.XRANGEPLAIN]="[v=\\s]*("+R[T.XRANGEIDENTIFIER]+")(?:\\.("+R[T.XRANGEIDENTIFIER]+")(?:\\.("+R[T.XRANGEIDENTIFIER]+")(?:"+R[T.PRERELEASE]+")?"+R[T.BUILD]+"?)?)?",r("XRANGEPLAINLOOSE"),R[T.XRANGEPLAINLOOSE]="[v=\\s]*("+R[T.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+R[T.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+R[T.XRANGEIDENTIFIERLOOSE]+")(?:"+R[T.PRERELEASELOOSE]+")?"+R[T.BUILD]+"?)?)?",r("XRANGE"),R[T.XRANGE]="^"+R[T.GTLT]+"\\s*"+R[T.XRANGEPLAIN]+"$",r("XRANGELOOSE"),R[T.XRANGELOOSE]="^"+R[T.GTLT]+"\\s*"+R[T.XRANGEPLAINLOOSE]+"$",r("COERCE"),R[T.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",r("COERCERTL"),O[T.COERCERTL]=RegExp(R[T.COERCE],"g"),r("LONETILDE"),R[T.LONETILDE]="(?:~>?)",r("TILDETRIM"),R[T.TILDETRIM]="(\\s*)"+R[T.LONETILDE]+"\\s+",O[T.TILDETRIM]=RegExp(R[T.TILDETRIM],"g"),r("TILDE"),R[T.TILDE]="^"+R[T.LONETILDE]+R[T.XRANGEPLAIN]+"$",r("TILDELOOSE"),R[T.TILDELOOSE]="^"+R[T.LONETILDE]+R[T.XRANGEPLAINLOOSE]+"$",r("LONECARET"),R[T.LONECARET]="(?:\\^)",r("CARETTRIM"),R[T.CARETTRIM]="(\\s*)"+R[T.LONECARET]+"\\s+",O[T.CARETTRIM]=RegExp(R[T.CARETTRIM],"g"),r("CARET"),R[T.CARET]="^"+R[T.LONECARET]+R[T.XRANGEPLAIN]+"$",r("CARETLOOSE"),R[T.CARETLOOSE]="^"+R[T.LONECARET]+R[T.XRANGEPLAINLOOSE]+"$",r("COMPARATORLOOSE"),R[T.COMPARATORLOOSE]="^"+R[T.GTLT]+"\\s*("+R[T.LOOSEPLAIN]+")$|^$",r("COMPARATOR"),R[T.COMPARATOR]="^"+R[T.GTLT]+"\\s*("+R[T.FULLPLAIN]+")$|^$",r("COMPARATORTRIM"),R[T.COMPARATORTRIM]="(\\s*)"+R[T.GTLT]+"\\s*("+R[T.LOOSEPLAIN]+"|"+R[T.XRANGEPLAIN]+")",O[T.COMPARATORTRIM]=RegExp(R[T.COMPARATORTRIM],"g"),r("HYPHENRANGE"),R[T.HYPHENRANGE]="^\\s*("+R[T.XRANGEPLAIN]+")\\s+-\\s+("+R[T.XRANGEPLAIN]+")\\s*$",r("HYPHENRANGELOOSE"),R[T.HYPHENRANGELOOSE]="^\\s*("+R[T.XRANGEPLAINLOOSE]+")\\s+-\\s+("+R[T.XRANGEPLAINLOOSE]+")\\s*$",r("STAR"),R[T.STAR]="(<|>)?=?\\s*\\*";for(var _=0;C>_;_++)b(_,R[_]),O[_]||(O[_]=RegExp(R[_]));t.parse=n,t.valid=(e,t)=>{var r=n(e,t);return r?r.version:null;},t.clean=(e,t)=>{var r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null;},t.SemVer=o,o.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version;},o.prototype.toString=function(){return this.version;},o.prototype.compare=function(e){return b("SemVer.compare",this.version,this.options,e),e instanceof o||(e=new o(e,this.options)),this.compareMain(e)||this.comparePre(e);},o.prototype.compareMain=function(e){return e instanceof o||(e=new o(e,this.options)),i(this.major,e.major)||i(this.minor,e.minor)||i(this.patch,e.patch);},o.prototype.comparePre=function(e){if(e instanceof o||(e=new o(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;var t=0;do{var r=this.prerelease[t],n=e.prerelease[t];if(b("prerelease compare",t,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(r!==n)return i(r,n);}while(++t);},o.prototype.compareBuild=function(e){e instanceof o||(e=new o(e,this.options));var t=0;do{var r=this.build[t],n=e.build[t];if(b("prerelease compare",t,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(r!==n)return i(r,n);}while(++t);},o.prototype.inc=function(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{for(var r=this.prerelease.length;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);-1===r&&this.prerelease.push(0);}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw Error("invalid increment argument: "+e);}return this.format(),this.raw=this.version,this;},t.inc=(e,t,r,n)=>{"string"==typeof r&&(n=r,r=void 0);try{return new o(e,r).inc(t,n).version;}catch(e){return null;}},t.diff=(e,t)=>{if(l(e,t))return null;var r=n(e),o=n(t),i="";if(r.prerelease.length||o.prerelease.length){i="pre";var s="prerelease";}for(var a in r)if(("major"===a||"minor"===a||"patch"===a)&&r[a]!==o[a])return i+a;return s;},t.compareIdentifiers=i;var P=/^[0-9]+$/;t.rcompareIdentifiers=(e,t)=>i(t,e),t.major=(e,t)=>new o(e,t).major,t.minor=(e,t)=>new o(e,t).minor,t.patch=(e,t)=>new o(e,t).patch,t.compare=s,t.compareLoose=(e,t)=>s(e,t,!0),t.compareBuild=(e,t,r)=>{var n=new o(e,r),i=new o(t,r);return n.compare(i)||n.compareBuild(i);},t.rcompare=(e,t,r)=>s(t,e,r),t.sort=(e,r)=>e.sort((e,n)=>t.compareBuild(e,n,r)),t.rsort=(e,r)=>e.sort((e,n)=>t.compareBuild(n,e,r)),t.gt=a,t.lt=c,t.eq=l,t.neq=u,t.gte=d,t.lte=p,t.cmp=f,t.Comparator=m;var A={};m.prototype.parse=function(e){var t=e.match(this.options.loose?O[T.COMPARATORLOOSE]:O[T.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 o(t[2],this.options.loose):A;},m.prototype.toString=function(){return this.value;},m.prototype.test=function(e){if(b("Comparator.test",e,this.options.loose),this.semver===A||e===A)return!0;if("string"==typeof e)try{e=new o(e,this.options);}catch(e){return!1;}return f(e,this.operator,this.semver,this.options);},m.prototype.intersects=function(e,t){if(!(e instanceof m))throw new TypeError("a Comparator is required");var r;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(r=new h(e.value,t),w(this.value,r,t));if(""===e.operator)return""===e.value||(r=new h(this.value,t),w(e.semver,r,t));var n=!(">="!==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=f(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=f(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||o||i&&s||a||c;},t.Range=h,h.prototype.format=function(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range;},h.prototype.toString=function(){return this.range;},h.prototype.parseRange=function(e){var t=this.options.loose;e=(e=e.trim()).replace(t?O[T.HYPHENRANGELOOSE]:O[T.HYPHENRANGE],E),b("hyphen replace",e),e=e.replace(O[T.COMPARATORTRIM],"$1$2$3"),b("comparator trim",e,O[T.COMPARATORTRIM]),e=(e=(e=e.replace(O[T.TILDETRIM],"$1~")).replace(O[T.CARETTRIM],"$1^")).split(/\s+/).join(" ");var r=t?O[T.COMPARATORLOOSE]:O[T.COMPARATOR],n=e.split(" ").map(function(e){return((e,t)=>(b("comp",e,t),e=((e,t)=>e.trim().split(/\s+/).map(e=>((e,t)=>(b("caret",e,t),e.replace(t.loose?O[T.CARETLOOSE]:O[T.CARET],(t,r,n,o,i)=>{var s;return b("caret",e,t,r,n,o,i),v(r)?s="":v(n)?s=">="+r+".0.0 <"+(+r+1)+".0.0":v(o)?s="0"===r?">="+r+"."+n+".0 <"+r+"."+(+n+1)+".0":">="+r+"."+n+".0 <"+(+r+1)+".0.0":i?(b("replaceCaret pr",i),s="0"===r?"0"===n?">="+r+"."+n+"."+o+"-"+i+" <"+r+"."+n+"."+(+o+1):">="+r+"."+n+"."+o+"-"+i+" <"+r+"."+(+n+1)+".0":">="+r+"."+n+"."+o+"-"+i+" <"+(+r+1)+".0.0"):(b("no pr"),s="0"===r?"0"===n?">="+r+"."+n+"."+o+" <"+r+"."+n+"."+(+o+1):">="+r+"."+n+"."+o+" <"+r+"."+(+n+1)+".0":">="+r+"."+n+"."+o+" <"+(+r+1)+".0.0"),b("caret return",s),s;})))(e,t)).join(" "))(e,t),b("caret",e),e=((e,t)=>e.trim().split(/\s+/).map(e=>((e,t)=>e.replace(t.loose?O[T.TILDELOOSE]:O[T.TILDE],(t,r,n,o,i)=>{var s;return b("tilde",e,t,r,n,o,i),v(r)?s="":v(n)?s=">="+r+".0.0 <"+(+r+1)+".0.0":v(o)?s=">="+r+"."+n+".0 <"+r+"."+(+n+1)+".0":i?(b("replaceTilde pr",i),s=">="+r+"."+n+"."+o+"-"+i+" <"+r+"."+(+n+1)+".0"):s=">="+r+"."+n+"."+o+" <"+r+"."+(+n+1)+".0",b("tilde return",s),s;}))(e,t)).join(" "))(e,t),b("tildes",e),e=((e,t)=>(b("replaceXRanges",e,t),e.split(/\s+/).map(e=>((e,t)=>(e=e.trim()).replace(t.loose?O[T.XRANGELOOSE]:O[T.XRANGE],(r,n,o,i,s,a)=>{b("xRange",e,r,n,o,i,s,a);var c=v(o),l=c||v(i),u=l||v(s);return"="===n&&u&&(n=""),a=t.includePrerelease?"-0":"",c?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&u?(l&&(i=0),s=0,">"===n?(n=">=",l?(o=+o+1,i=0,s=0):(i=+i+1,s=0)):"<="===n&&(n="<",l?o=+o+1:i=+i+1),r=n+o+"."+i+"."+s+a):l?r=">="+o+".0.0"+a+" <"+(+o+1)+".0.0"+a:u&&(r=">="+o+"."+i+".0"+a+" <"+o+"."+(+i+1)+".0"+a),b("xRange return",r),r;}))(e,t)).join(" ")))(e,t),b("xrange",e),e=((e,t)=>(b("replaceStars",e,t),e.trim().replace(O[T.STAR],"")))(e,t),b("stars",e),e))(e,this.options);},this).join(" ").split(/\s+/);return this.options.loose&&(n=n.filter(e=>!!e.match(r))),n.map(function(e){return new m(e,this.options);},this);},h.prototype.intersects=function(e,t){if(!(e instanceof h))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)))));},t.toComparators=(e,t)=>new h(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" ")),h.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new o(e,this.options);}catch(e){return!1;}for(var t=0;this.set.length>t;t++)if(y(this.set[t],e,this.options))return!0;return!1;},t.satisfies=w,t.maxSatisfying=(e,t,r)=>{var n=null,i=null;try{var s=new h(t,r);}catch(e){return null;}return e.forEach(e=>{s.test(e)&&(n&&-1!==i.compare(e)||(i=new o(n=e,r)));}),n;},t.minSatisfying=(e,t,r)=>{var n=null,i=null;try{var s=new h(t,r);}catch(e){return null;}return e.forEach(e=>{s.test(e)&&(n&&1!==i.compare(e)||(i=new o(n=e,r)));}),n;},t.minVersion=(e,t)=>{e=new h(e,t);var r=new o("0.0.0");if(e.test(r))return r;if(r=new o("0.0.0-0"),e.test(r))return r;r=null;for(var n=0;e.set.length>n;++n)e.set[n].forEach(e=>{var t=new o(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":r&&!a(r,t)||(r=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator);}});return r&&e.test(r)?r:null;},t.validRange=(e,t)=>{try{return new h(e,t).range||"*";}catch(e){return null;}},t.ltr=(e,t,r)=>x(e,t,"<",r),t.gtr=(e,t,r)=>x(e,t,">",r),t.outside=x,t.prerelease=(e,t)=>{var r=n(e,t);return r&&r.prerelease.length?r.prerelease:null;},t.intersects=(e,t,r)=>(e=new h(e,r),t=new h(t,r),e.intersects(t)),t.coerce=(e,t)=>{if(e instanceof o)return e;if("number"==typeof e&&(e+=""),"string"!=typeof e)return null;var r=null;if((t=t||{}).rtl){for(var i;(i=O[T.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&i.index+i[0].length===r.index+r[0].length||(r=i),O[T.COERCERTL].lastIndex=i.index+i[1].length+i[2].length;O[T.COERCERTL].lastIndex=-1;}else r=e.match(O[T.COERCE]);return null===r?null:n(r[2]+"."+(r[3]||"0")+"."+(r[4]||"0"),t);};}),Wt.register("bxsAi",(e,t)=>{var r=Wt("lyWSC"),n=Wt("2cprb");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);};}),Wt.register("lyWSC",(e,t)=>{e.exports=()=>bt.randomBytes(16);}),Wt.register("2cprb",(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++]];};}),Wt.register("2mVwa",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(Wt("19yql"));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 At.StringDecoder("utf8"),l=new At.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);}}),f=yield r(e,t,Object.assign(Object.assign({},n),{listeners:p}));return s+=c.end(),a+=l.end(),{exitCode:f,stdout:s,stderr:a};});};}),Wt.register("19yql",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(yt),a=o(Rt),c=o(Pt),l=o(wt),u=o(Wt("kSdX3")),d=o(Wt("11Ly6")),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 f(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 f 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=Nt.setTimeout(f.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());}}}),Wt.register("29uOU",(e,t)=>{var r=Wt("gsDyR");e.exports=(e,t,n)=>0>=r(e,t,n);}),Wt.register("gsDyR",(e,t)=>{var r=Wt("7oICO");e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n));}),Wt.register("i9nXz",(e,t)=>{var r=Wt("7oICO"),n=Wt("cazyM"),o=Wt("2LGsN"),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);};}),Wt.register("fyjUS",(e,t)=>{e.exports=Promise.resolve(require("./actions_python.e8fa8bb0.js")).then(()=>Wt("8L9T2"));}),Wt.register("16mXi",(e,t)=>{var r=Wt("7oICO");e.exports=(e,t)=>new r(e,t).major;}),e(module.exports,"main",()=>mt),e(module.exports,"parseArgs",()=>ht),e(module.exports,"getCompilerInfo",()=>gt);var zt=Wt("2heqc"),Kt=Wt("cLprm"),Yt=Wt("hHq4F"),Qt=Wt("3abeg"),Jt={};Wt("ljv3o").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";});var Zt=Wt("A8hFE"),er=Wt("l2nMb"),tr={};tr=Wt("kAOmP");var rr={};rr={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 nr={};const or=yt.homedir();nr=e=>{if("string"!=typeof e)throw new TypeError("Expected a string, got "+typeof e);return or?e.replace(/^~(?=$|\/|\\)/,or):e;};var ir="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==qt?qt:{},sr={},ar={},cr=ir.parcelRequireb51e;null==cr&&((cr=e=>{if(e in sr)return sr[e].exports;if(e in ar){var t=ar[e];delete ar[e];var r={id:e,exports:{}};return sr[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)=>{ar[e]=t;},ir.parcelRequireb51e=cr),cr.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,xt.stat)(e,(o,i)=>{n(o,!o&&r(i,e,t));});}e.exports=n,n.sync=(e,t)=>r((0,xt.statSync)(e),e,t);}),cr.register("e1CjR",(e,t)=>{function r(e,t,r){(0,xt.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,xt.statSync)(e),t);}),cr.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 lr={};i(lr,"hasSudo",()=>p),i(lr,"isRoot",()=>f),i(lr,"isSudo",()=>m),i(lr,"prependSudo",()=>h),i(lr,"execRootSync",()=>g),i(lr,"execRoot",()=>v);var ur={};const dr="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,pr=dr?";":":";var fr,mr={};fr="win32"===process.platform||ir.TESTING_WINDOWS?cr("djkmR"):cr("e1CjR"),mr=s,s.sync=(e,t)=>{try{return fr.sync(e,t||{});}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e;}};const hr=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),gr=(e,t)=>{const r=t.colon||pr,n=e.match(/\//)||dr&&e.match(/\\/)?[""]:[...(dr?[process.cwd()]:[]),...(t.path||process.env.PATH||"").split(r)],o=dr?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",i=dr?o.split(r):[""];return dr&&-1!==e.indexOf(".")&&""!==i[0]&&i.unshift(""),{pathEnv:n,pathExt:i,pathExtExe:o};},vr=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});const{pathEnv:n,pathExt:o,pathExtExe:i}=gr(e,t),s=[],a=r=>new Promise((o,i)=>{if(r===n.length)return t.all&&s.length?o(s):i(hr(e));const a=n[r],l=/^".*"$/.test(a)?a.slice(1,-1):a,u=(0,wt.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];mr(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);};ur=vr,vr.sync=(e,t)=>{t=t||{};const{pathEnv:r,pathExt:n,pathExtExe:o}=gr(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,wt.join)(c,e),u=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+l:l;for(let r=0;n.length>r;r++){const s=u+n[r];try{if(mr.sync(s,{pathExt:o})){if(!t.all)return s;i.push(s);}}catch(e){}}}if(t.all&&i.length)return i;if(t.nothrow)return null;throw hr(e);};var Er,yr={},wr={},xr={},br={};const Sr=(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 Ir,Or;(br=Sr).default=Sr,Er=e=>a(e)||a(e,!0);const Rr=/([()\][%!^"`<>&|;, *?])/g;var Tr,Cr,_r;Ir=e=>e.replace(Rr,"^$1"),Or=(e,t)=>(e=(e=`"${e=(e=(e=""+e).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(Rr,"^$1"),t&&(e=e.replace(Rr,"^$1")),e),Cr=/^#!(.*)/,Tr=(e="")=>{const t=e.match(Cr);if(!t)return null;const[r,n]=t[0].replace(/#! ?/,"").split(" "),o=r.split("/").pop();return"env"===o?n:n?`${o} ${n}`:o;},_r=e=>{const t=Buffer.alloc(150);let r;try{r=(0,xt.openSync)(e,"r"),(0,xt.readSync)(r,t,0,150,0),(0,xt.closeSync)(r);}catch(e){}return Tr(""+t);};const Pr="win32"===process.platform,Ar=/\.(?:com|exe)$/i,Nr=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;xr=(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(!Pr)return e;const t=(e=>{e.file=Er(e);const t=e.file&&_r(e.file);return t?(e.args.unshift(e.file),e.command=t,Er(e)):e.file;})(e),r=!Ar.test(t);if(e.options.forceShell||r){const r=Nr.test(t);e.command=(0,wt.normalize)(e.command),e.command=Ir(e.command),e.args=e.args.map(e=>Or(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 Lr={};const $r="win32"===process.platform;var Dr;Lr={hookChildProcess(e,t){if(!$r)return;const r=e.emit;e.emit=function(n,o){if("exit"===n){const n=l(o,t);if(n)return r.call(e,"error",n);}return r.apply(e,arguments);};},verifyENOENT:l,verifyENOENTSync:(e,t)=>$r&&1===e&&!t.file?c(t.original,"spawnSync"):null,notFoundError:c},(wr=u).spawn=u,wr.sync=(e,t,r)=>{const n=xr(e,t,r),o=(0,Pt.spawnSync)(n.command,n.args,n.options);return o.error=o.error||Lr.verifyENOENTSync(o.status,n),o;},wr._parse=xr,wr._enoent=Lr,Dr=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 Ur={};const kr=e=>{let t;e={cwd:process.cwd(),path:process.env[br()],execPath:process.execPath,...e};let r=(0,wt.resolve)(e.cwd);const n=[];for(;t!==r;)n.push((0,wt.join)(r,"node_modules/.bin")),t=r,r=(0,wt.resolve)(r,"..");const o=(0,wt.resolve)(e.cwd,e.execPath,"..");return n.push(o),n.concat(e.path).join(wt.delimiter);};(Ur=kr).default=kr,Ur.env=e=>{const t={...(e={env:process.env,...e}).env},r=br({env:t});return e.path=t[r],t[r]=Ur(e),t;};var jr={},Mr={};const Gr=(e,t)=>{for(const r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e;};(Mr=Gr).default=Gr;const Fr=new WeakMap(),Br=(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(Fr.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 Mr(i,e),Fr.set(i,n),i;};(jr=Br).default=Br,jr.callCount=e=>{if(!Fr.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Fr.get(e);};var Hr,qr={};Object.defineProperty(qr,"__esModule",{value:!0}),qr.signalsByNumber=qr.signalsByName=void 0;var Vr={};Object.defineProperty(Vr,"__esModule",{value:!0}),Vr.getSignals=void 0;var Xr={};Object.defineProperty(Xr,"__esModule",{value:!0}),Xr.SIGNALS=void 0,Xr.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 Wr={};Object.defineProperty(Wr,"__esModule",{value:!0}),Wr.SIGRTMAX=Wr.getRealtimeSignals=void 0,Wr.getRealtimeSignals=()=>Array.from({length:Yr-Kr+1},zr);const zr=(e,t)=>({name:"SIGRT"+(t+1),number:Kr+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),Kr=34,Yr=64;Wr.SIGRTMAX=Yr,Vr.getSignals=()=>{const e=(0,Wr.getRealtimeSignals)();return[...Xr.SIGNALS,...e].map(Qr);};const Qr=({name:e,number:t,description:r,action:n,forced:o=!1,standard:i})=>{const{signals:{[e]:s}}=yt.constants,a=void 0!==s;return{name:e,number:a?s:t,description:r,supported:a,action:n,forced:o,standard:i};},Jr=(0,Vr.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}}),{});qr.signalsByName=Jr;const Zr=(()=>{const e=(0,Vr.getSignals)(),t=Array.from({length:Wr.SIGRTMAX+1},(t,r)=>((e,t)=>{const r=((e,t)=>{const r=t.find(({name:t})=>yt.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);})();qr.signalsByNumber=Zr;var en=qr.signalsByName;Hr=({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:en[o].description,f=(({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}),m=`Command ${f}: ${s}`,h="[object Error]"==={}.toString.call(n),g=h?`${m}\n${n.message}`:m,v=[g,t,e].filter(Boolean).join("\n");return h?(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 tn={};const rn=["stdin","stdout","stderr"],nn=e=>{if(!e)return;const{stdio:t}=e;if(void 0===t)return rn.map(t=>e[t]);if((e=>rn.some(t=>void 0!==e[t]))(e))throw Error("It's not possible to provide `stdio` in combination with one of "+rn.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,rn.length)},(e,r)=>t[r]);};(tn=nn).node=e=>{const t=nn(e);return"ipc"===t?"ipc":void 0===t||"string"==typeof t?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"];};var on,sn={},an=ir.process;const cn=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(cn(an)){var ln,un=Tt,dn=cr("4c98W"),pn=/^win/i.test(an.platform),fn=Rt;"function"!=typeof fn&&(fn=fn.EventEmitter),an.__signal_exit_emitter__?ln=an.__signal_exit_emitter__:((ln=an.__signal_exit_emitter__=new fn()).count=0,ln.emitted={}),ln.infinite||(ln.setMaxListeners(1/0),ln.infinite=!0),sn=(e,t)=>{if(!cn(ir.process))return()=>{};un.equal(typeof e,"function","a callback must be provided for exit handler"),!1===vn&&En();var r="exit";return t&&t.alwaysLast&&(r="afterexit"),ln.on(r,e),()=>{ln.removeListener(r,e),0===ln.listeners("exit").length&&0===ln.listeners("afterexit").length&&mn();};};var mn=()=>{vn&&cn(ir.process)&&(vn=!1,dn.forEach(e=>{try{an.removeListener(e,gn[e]);}catch(e){}}),an.emit=xn,an.reallyExit=yn,ln.count-=1);};sn.unload=mn;var hn=(e,t,r)=>{ln.emitted[e]||(ln.emitted[e]=!0,ln.emit(e,t,r));},gn={};dn.forEach(e=>{gn[e]=()=>{cn(ir.process)&&an.listeners(e).length===ln.count&&(mn(),hn("exit",null,e),hn("afterexit",null,e),pn&&"SIGHUP"===e&&(e="SIGINT"),an.kill(an.pid,e));};}),sn.signals=()=>dn;var vn=!1,En=()=>{!vn&&cn(ir.process)&&(vn=!0,ln.count+=1,dn=dn.filter(e=>{try{return an.on(e,gn[e]),!0;}catch(e){return!1;}}),an.emit=bn,an.reallyExit=wn);};sn.load=En;var yn=an.reallyExit,wn=e=>{cn(ir.process)&&(an.exitCode=e||0,hn("exit",an.exitCode,null),hn("afterexit",an.exitCode,null),yn.call(an,an.exitCode));},xn=an.emit,bn=function(e,t){if("exit"===e&&cn(ir.process)){void 0!==t&&(an.exitCode=t);var r=xn.apply(this,arguments);return hn("exit",an.exitCode,null),hn("afterexit",an.exitCode,null),r;}return xn.apply(this,arguments);};}else sn=()=>()=>{};var Sn,In=(on={spawnedKill(e,t="SIGTERM",r={}){const n=e(t);return((e,t,r,n)=>{if(!((e,{forceKillAfterTimeout:t},r)=>(e=>e===yt.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=sn(()=>{e.kill();});return n.finally(()=>{o();});}}).spawnedKill,On=on.spawnedCancel,Rn=on.setupTimeout,Tn=on.validateTimeout,Cn=on.setExitHandler,_n={};const Pn=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;Pn.writable=e=>Pn(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,Pn.readable=e=>Pn(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,Pn.duplex=e=>Pn.writable(e)&&Pn.readable(e),Pn.transform=e=>Pn.duplex(e)&&"function"==typeof e._transform,_n=Pn;var An,Nn={},Ln=Lt.constants,$n=$t.PassThrough;An=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 $n({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 Dn=(0,Ct.promisify)($t.pipeline);class Un extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError";}}(Nn=d).buffer=(e,t)=>d(e,{...t,encoding:"buffer"}),Nn.array=(e,t)=>d(e,{...t,array:!0}),Nn.MaxBufferError=Un;var kn,jn=$t.PassThrough;kn=function(){function e(o){return Array.isArray(o)?(o.forEach(e),this):(r.push(o),o.once("end",t.bind(null,o)),o.once("error",n.emit.bind(n,"error")),o.pipe(n,{end:!1}),this);}function t(e){!(r=r.filter(t=>t!==e)).length&&n.readable&&n.end();}var r=[],n=new jn({objectMode:!0});return n.setMaxListeners(0),n.add=e,n.isEmpty=()=>0==r.length,n.on("unpipe",t),[].slice.call(arguments).forEach(e),n;};const Mn=async(e,t)=>{if(e){e.destroy();try{return await t;}catch(e){return e.bufferedData;}}},Gn=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?Nn(e,{encoding:t,maxBuffer:n}):Nn.buffer(e,{maxBuffer:n});};var Fn,Bn=(Sn={handleInput(e,t){void 0!==t&&void 0!==e.stdin&&(_n(t)?t.pipe(e.stdin):e.stdin.end(t));},makeAllStream(e,{all:t}){if(!t||!e.stdout&&!e.stderr)return;const r=kn();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=Gn(e,{encoding:n,buffer:o,maxBuffer:i}),c=Gn(t,{encoding:n,buffer:o,maxBuffer:i}),l=Gn(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},Mn(e,a),Mn(t,c),Mn(r,l)]);}},validateInputSync({input:e}){if(_n(e))throw new TypeError("The `input` option cannot be a stream in sync mode");}}).handleInput,Hn=Sn.getSpawnedResult,qn=Sn.makeAllStream,Vn=Sn.validateInputSync;const Xn=(async()=>{})().constructor.prototype,Wn=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(Xn,e)]);var zn,Kn=(Fn={mergePromise(e,t){for(const[r,n]of Wn){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,Yn=Fn.getSpawnedPromise;const Qn=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],Jn=/^[\w.-]+$/,Zn=/"/g,eo=/ +/g;var to=(zn={joinCommand:(e,t)=>Qn(e,t).join(" "),getEscapedCommand:(e,t)=>Qn(e,t).map(e=>(e=>"string"!=typeof e||Jn.test(e)?e:`"${e.replace(Zn,'\\"')}"`)(e)).join(" "),parseCommand(e){const t=[];for(const r of e.trim().split(eo)){const e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${r}`:t.push(r);}return t;}}).joinCommand,ro=zn.parseCommand,no=zn.getEscapedCommand;const oo=(e,t,r={})=>{const n=wr._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?Ur.env({env:i,cwd:n,execPath:o}):i;})(r),r.stdio=tn(r),"win32"===process.platform&&"cmd"===(0,wt.basename)(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n};},io=(e,t,r)=>"string"==typeof t||Buffer.isBuffer(t)?e.stripFinalNewline?Dr(t):t:void 0===r?void 0:"",so=(e,t,r)=>{const n=oo(e,t,r),o=to(e,t),i=no(e,t);let s;Tn(n.options);try{s=(0,Pt.spawn)(n.file,n.args,n.options);}catch(e){const t=new(0,Pt.ChildProcess)(),r=Promise.reject(Hr({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return Kn(t,r);}const a=Yn(s),c=Rn(s,n.options,a),l=Cn(s,n.options,c),u={isCanceled:!1};s.kill=In.bind(null,s.kill.bind(s)),s.cancel=On.bind(null,s,u);const d=jr(async()=>{const[{error:e,exitCode:t,signal:r,timedOut:a},c,d,p]=await Hn(s,n.options,l),f=io(n.options,c),m=io(n.options,d),h=io(n.options,p);if(e||0!==t||null!==r){const c=Hr({error:e,exitCode:t,signal:r,stdout:f,stderr:m,all:h,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:f,stderr:m,all:h,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};});return Bn(s,n.options.input),s.all=qn(s,n.options),Kn(s,d);};(yr=so).sync=(e,t,r)=>{const n=oo(e,t,r),o=to(e,t),i=no(e,t);let s;Vn(n.options);try{s=(0,Pt.spawnSync)(n.file,n.args,n.options);}catch(e){throw Hr({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:n,timedOut:!1,isCanceled:!1,killed:!1});}const a=io(n.options,s.stdout,s.error),c=io(n.options,s.stderr,s.error);if(s.error||0!==s.status||null!==s.signal){const e=Hr({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};},yr.command=(e,t)=>{const[r,...n]=ro(e);return so(r,n,t);},yr.commandSync=(e,t)=>{const[r,...n]=ro(e);return so.sync(r,n,t);},yr.node=(e,t,r={})=>{t&&!Array.isArray(t)&&"object"==typeof t&&(r=t,t=[]);const n=tn.node(r),o=process.execArgv.filter(e=>!e.startsWith("--inspect")),{nodePath:i=process.execPath,nodeOptions:s=o}=r;return so(i,[...s,e,...(Array.isArray(t)?t:[])],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1});};var ao={};i(ao,"isAdminWindows",()=>co),i(ao,"isAdminPosix",()=>lo),i(ao,"isAdmin",()=>E);const co=async()=>{if("win32"!==t(Dt).platform)return!1;try{var e;return await o(yr)("fsutil",["dirty","query",null!==(e=t(Dt).env.systemdrive)&&void 0!==e?e:""]),!0;}catch(e){return"ENOENT"===e.code&&(async()=>{try{return await o(yr)("fltmc"),!0;}catch{return!1;}})();}},lo=f;var uo={};const po="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,fo=po?";":":";var mo,ho={};mo="win32"===process.platform||qt.TESTING_WINDOWS?Wt("gRK0M"):Wt("9ZovO"),ho=w,w.sync=(e,t)=>{try{return mo.sync(e,t||{});}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e;}};const go=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),vo=(e,t)=>{const r=t.colon||fo,n=e.match(/\//)||po&&e.match(/\\/)?[""]:[...(po?[process.cwd()]:[]),...(t.path||process.env.PATH||"").split(r)],o=po?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",i=po?o.split(r):[""];return po&&-1!==e.indexOf(".")&&""!==i[0]&&i.unshift(""),{pathEnv:n,pathExt:i,pathExtExe:o};},Eo=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});const{pathEnv:n,pathExt:o,pathExtExe:i}=vo(e,t),s=[],a=r=>new Promise((o,i)=>{if(r===n.length)return t.all&&s.length?o(s):i(go(e));const a=n[r],l=/^".*"$/.test(a)?a.slice(1,-1):a,u=wt.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];ho(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);};uo=Eo,Eo.sync=(e,t)=>{t=t||{};const{pathEnv:r,pathExt:n,pathExtExe:o}=vo(e,t),i=[];for(let s=0;r.length>s;s++){const a=r[s],c=/^".*"$/.test(a)?a.slice(1,-1):a,l=wt.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(ho.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 go(e);};var yo,wo={},xo={},bo={},So={};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 Oo,Ro;(So=Io).default=Io,yo=e=>x(e)||x(e,!0);const To=/([()\][%!^"`<>&|;, *?])/g;Oo=e=>e.replace(To,"^$1"),Ro=(e,t)=>(e=(e=`"${e=(e=(e=""+e).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(To,"^$1"),t&&(e=e.replace(To,"^$1")),e);var Co,_o,Po;_o=/^#!(.*)/,Co=(e="")=>{const t=e.match(_o);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=xt.openSync(e,"r"),xt.readSync(r,t,0,150,0),xt.closeSync(r);}catch(e){}return Co(""+t);};const Ao="win32"===process.platform,No=/\.(?:com|exe)$/i,Lo=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;bo=(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(!Ao)return e;const t=(e=>{e.file=yo(e);const t=e.file&&Po(e.file);return t?(e.args.unshift(e.file),e.command=t,yo(e)):e.file;})(e),r=!No.test(t);if(e.options.forceShell||r){const r=Lo.test(t);e.command=wt.normalize(e.command),e.command=Oo(e.command),e.args=e.args.map(e=>Ro(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 $o={};const Do="win32"===process.platform;var Uo;$o={hookChildProcess(e,t){if(!Do)return;const r=e.emit;e.emit=function(n,o){if("exit"===n){const n=S(o,t);if(n)return r.call(e,"error",n);}return r.apply(e,arguments);};},verifyENOENT:S,verifyENOENTSync(e,t){return Do&&1===e&&!t.file?b(t.original,"spawnSync"):null;},notFoundError:b},(xo=I).spawn=I,xo.sync=(e,t,r)=>{const n=bo(e,t,r),o=Pt.spawnSync(n.command,n.args,n.options);return o.error=o.error||$o.verifyENOENTSync(o.status,n),o;},xo._parse=bo,xo._enoent=$o,Uo=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 ko={};const jo=e=>{let t;e={cwd:process.cwd(),path:process.env[So()],execPath:process.execPath,...e};let r=wt.resolve(e.cwd);const n=[];for(;t!==r;)n.push(wt.join(r,"node_modules/.bin")),t=r,r=wt.resolve(r,"..");const o=wt.resolve(e.cwd,e.execPath,"..");return n.push(o),n.concat(e.path).join(wt.delimiter);};(ko=jo).default=jo,ko.env=e=>{const t={...(e={env:process.env,...e}).env},r=So({env:t});return e.path=t[r],t[r]=ko(e),t;};var Mo={},Go={};const Fo=(e,t)=>{for(const r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e;};(Go=Fo).default=Fo;const Bo=new WeakMap(),Ho=(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(Bo.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 Go(i,e),Bo.set(i,n),i;};(Mo=Ho).default=Ho,Mo.callCount=e=>{if(!Bo.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Bo.get(e);};var qo,Vo={};Object.defineProperty(Vo,"__esModule",{value:!0}),Vo.signalsByNumber=Vo.signalsByName=void 0;var Xo={};Object.defineProperty(Xo,"__esModule",{value:!0}),Xo.getSignals=void 0;var Wo={};Object.defineProperty(Wo,"__esModule",{value:!0}),Wo.SIGNALS=void 0,Wo.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 zo={};Object.defineProperty(zo,"__esModule",{value:!0}),zo.SIGRTMAX=zo.getRealtimeSignals=void 0,zo.getRealtimeSignals=()=>Array.from({length:Qo-Yo+1},Ko);const Ko=(e,t)=>({name:"SIGRT"+(t+1),number:Yo+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),Yo=34,Qo=64;zo.SIGRTMAX=Qo,Xo.getSignals=()=>{const e=(0,zo.getRealtimeSignals)();return[...Wo.SIGNALS,...e].map(Jo);};const Jo=({name:e,number:t,description:r,action:n,forced:o=!1,standard:i})=>{const{signals:{[e]:s}}=yt.constants,a=void 0!==s;return{name:e,number:a?s:t,description:r,supported:a,action:n,forced:o,standard:i};},Zo=(0,Xo.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}}),{});Vo.signalsByName=Zo;const ei=(()=>{const e=(0,Xo.getSignals)(),t=Array.from({length:zo.SIGRTMAX+1},(t,r)=>((e,t)=>{const r=((e,t)=>{const r=t.find(({name:t})=>yt.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);})();Vo.signalsByNumber=ei;var ti=Vo.signalsByName;qo=({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:ti[o].description,f=(({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}),m=`Command ${f}: ${s}`,h="[object Error]"==={}.toString.call(n),g=h?`${m}\n${n.message}`:m,v=[g,t,e].filter(Boolean).join("\n");return h?(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 ri={};const ni=["stdin","stdout","stderr"],oi=e=>{if(!e)return;const{stdio:t}=e;if(void 0===t)return ni.map(t=>e[t]);if((e=>ni.some(t=>void 0!==e[t]))(e))throw Error("It's not possible to provide `stdio` in combination with one of "+ni.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,ni.length)},(e,r)=>t[r]);};(ri=oi).node=e=>{const t=oi(e);return"ipc"===t?"ipc":void 0===t||"string"==typeof t?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"];};var ii,si={},ai=qt.process;const ci=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(ci(ai)){var li,ui=Tt,di=Wt("2dWxz"),pi=/^win/i.test(ai.platform),fi=Rt;"function"!=typeof fi&&(fi=fi.EventEmitter),ai.__signal_exit_emitter__?li=ai.__signal_exit_emitter__:((li=ai.__signal_exit_emitter__=new fi()).count=0,li.emitted={}),li.infinite||(li.setMaxListeners(1/0),li.infinite=!0),si=(e,t)=>{if(!ci(qt.process))return()=>{};ui.equal(typeof e,"function","a callback must be provided for exit handler"),!1===vi&&Ei();var r="exit";return t&&t.alwaysLast&&(r="afterexit"),li.on(r,e),()=>{li.removeListener(r,e),0===li.listeners("exit").length&&0===li.listeners("afterexit").length&&mi();};};var mi=()=>{vi&&ci(qt.process)&&(vi=!1,di.forEach(e=>{try{ai.removeListener(e,gi[e]);}catch(e){}}),ai.emit=xi,ai.reallyExit=yi,li.count-=1);};si.unload=mi;var hi=(e,t,r)=>{li.emitted[e]||(li.emitted[e]=!0,li.emit(e,t,r));},gi={};di.forEach(e=>{gi[e]=()=>{ci(qt.process)&&ai.listeners(e).length===li.count&&(mi(),hi("exit",null,e),hi("afterexit",null,e),pi&&"SIGHUP"===e&&(e="SIGINT"),ai.kill(ai.pid,e));};}),si.signals=()=>di;var vi=!1,Ei=()=>{!vi&&ci(qt.process)&&(vi=!0,li.count+=1,di=di.filter(e=>{try{return ai.on(e,gi[e]),!0;}catch(e){return!1;}}),ai.emit=bi,ai.reallyExit=wi);};si.load=Ei;var yi=ai.reallyExit,wi=e=>{ci(qt.process)&&(ai.exitCode=e||0,hi("exit",ai.exitCode,null),hi("afterexit",ai.exitCode,null),yi.call(ai,ai.exitCode));},xi=ai.emit,bi=function(e,t){if("exit"===e&&ci(qt.process)){void 0!==t&&(ai.exitCode=t);var r=xi.apply(this,arguments);return hi("exit",ai.exitCode,null),hi("afterexit",ai.exitCode,null),r;}return xi.apply(this,arguments);};}else si=()=>()=>{};const Si=e=>e===yt.constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase();var Ii,Oi=(ii={spawnedKill(e,t="SIGTERM",r={}){const n=e(t);return((e,t,r,n)=>{if(!((e,{forceKillAfterTimeout:t},r)=>Si(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=si(()=>{e.kill();});return n.finally(()=>{o();});}}).spawnedKill,Ri=ii.spawnedCancel,Ti=ii.setupTimeout,Ci=ii.validateTimeout,_i=ii.setExitHandler,Pi={};const Ai=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;Ai.writable=e=>Ai(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,Ai.readable=e=>Ai(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,Ai.duplex=e=>Ai.writable(e)&&Ai.readable(e),Ai.transform=e=>Ai.duplex(e)&&"function"==typeof e._transform,Pi=Ai;var Ni,Li={},$i=Lt.constants,Di=$t.PassThrough;Ni=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 Di({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 Ui=(0,Ct.promisify)($t.pipeline);class ki extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError";}}(Li=O).buffer=(e,t)=>O(e,{...t,encoding:"buffer"}),Li.array=(e,t)=>O(e,{...t,array:!0}),Li.MaxBufferError=ki;var ji,Mi=$t.PassThrough;ji=function(){function e(o){return Array.isArray(o)?(o.forEach(e),this):(r.push(o),o.once("end",t.bind(null,o)),o.once("error",n.emit.bind(n,"error")),o.pipe(n,{end:!1}),this);}function t(e){!(r=r.filter(t=>t!==e)).length&&n.readable&&n.end();}var r=[],n=new Mi({objectMode:!0});return n.setMaxListeners(0),n.add=e,n.isEmpty=()=>0==r.length,n.on("unpipe",t),[].slice.call(arguments).forEach(e),n;};const Gi=async(e,t)=>{if(e){e.destroy();try{return await t;}catch(e){return e.bufferedData;}}},Fi=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?Li(e,{encoding:t,maxBuffer:n}):Li.buffer(e,{maxBuffer:n});};var Bi,Hi=(Ii={handleInput(e,t){void 0!==t&&void 0!==e.stdin&&(Pi(t)?t.pipe(e.stdin):e.stdin.end(t));},makeAllStream(e,{all:t}){if(!t||!e.stdout&&!e.stderr)return;const r=ji();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=Fi(e,{encoding:n,buffer:o,maxBuffer:i}),c=Fi(t,{encoding:n,buffer:o,maxBuffer:i}),l=Fi(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},Gi(e,a),Gi(t,c),Gi(r,l)]);}},validateInputSync({input:e}){if(Pi(e))throw new TypeError("The `input` option cannot be a stream in sync mode");}}).handleInput,qi=Ii.getSpawnedResult,Vi=Ii.makeAllStream,Xi=Ii.validateInputSync;const Wi=(async()=>{})().constructor.prototype,zi=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(Wi,e)]);var Ki,Yi=(Bi={mergePromise(e,t){for(const[r,n]of zi){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,Qi=Bi.getSpawnedPromise;const Ji=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],Zi=/^[\w.-]+$/,es=/"/g,ts=/ +/g;var rs=(Ki={joinCommand(e,t){return Ji(e,t).join(" ");},getEscapedCommand(e,t){return Ji(e,t).map(e=>(e=>"string"!=typeof e||Zi.test(e)?e:`"${e.replace(es,'\\"')}"`)(e)).join(" ");},parseCommand(e){const t=[];for(const r of e.trim().split(ts)){const e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${r}`:t.push(r);}return t;}}).joinCommand,ns=Ki.parseCommand,os=Ki.getEscapedCommand;const is=(e,t,r={})=>{const n=xo._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?ko.env({env:i,cwd:n,execPath:o}):i;})(r),r.stdio=ri(r),"win32"===process.platform&&"cmd"===wt.basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n};},ss=(e,t,r)=>"string"==typeof t||Buffer.isBuffer(t)?e.stripFinalNewline?Uo(t):t:void 0===r?void 0:"",as=(e,t,r)=>{const n=is(e,t,r),o=rs(e,t),i=os(e,t);let s;Ci(n.options);try{s=Pt.spawn(n.file,n.args,n.options);}catch(e){const t=new Pt.ChildProcess(),r=Promise.reject(qo({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return Yi(t,r);}const a=Qi(s),c=Ti(s,n.options,a),l=_i(s,n.options,c),u={isCanceled:!1};s.kill=Oi.bind(null,s.kill.bind(s)),s.cancel=Ri.bind(null,s,u);const d=Mo(async()=>{const[{error:e,exitCode:t,signal:r,timedOut:a},c,d,p]=await qi(s,n.options,l),f=ss(n.options,c),m=ss(n.options,d),h=ss(n.options,p);if(e||0!==t||null!==r){const c=qo({error:e,exitCode:t,signal:r,stdout:f,stderr:m,all:h,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:f,stderr:m,all:h,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};});return Hi(s,n.options.input),s.all=Vi(s,n.options),Yi(s,d);};(wo=as).sync=(e,t,r)=>{const n=is(e,t,r),o=rs(e,t),i=os(e,t);let s;Xi(n.options);try{s=Pt.spawnSync(n.file,n.args,n.options);}catch(e){throw qo({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:n,timedOut:!1,isCanceled:!1,killed:!1});}const a=ss(n.options,s.stdout,s.error),c=ss(n.options,s.stderr,s.error);if(s.error||0!==s.status||null!==s.signal){const e=qo({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};},wo.command=(e,t)=>{const[r,...n]=ns(e);return as(r,n,t);},wo.commandSync=(e,t)=>{const[r,...n]=ns(e);return as.sync(r,n,t);},wo.node=(e,t,r={})=>{t&&!Array.isArray(t)&&"object"==typeof t&&(r=t,t=[]);const n=ri.node(r),o=process.execArgv.filter(e=>!e.startsWith("--inspect")),{nodePath:i=process.execPath,nodeOptions:s=o}=r;return as(i,[...s,e,...(Array.isArray(t)?t:[])],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1});};var cs={};R(cs,"hasSudo",()=>T),R(cs,"isRoot",()=>C),R(cs,"isSudo",()=>_),R(cs,"prependSudo",()=>P),R(cs,"execRootSync",()=>A),R(cs,"execRoot",()=>N);var ls={};R(ls,"isAdminWindows",()=>us),R(ls,"isAdminPosix",()=>ds),R(ls,"isAdmin",()=>L);const us=async()=>{if("win32"!==process.platform)return!1;try{var e;return await t(wo)("fsutil",["dirty","query",null!==(e=process.env.systemdrive)&&void 0!==e?e:""]),!0;}catch(e){return"ENOENT"===e.code&&(async()=>{try{return await t(wo)("fltmc"),!0;}catch{return!1;}})();}},ds=C;Kt=Wt("cLprm"),zt=Wt("2heqc"),Kt=Wt("cLprm"),Yt=Wt("hHq4F");const ps=(e,t,r,n)=>{if("length"===r||"prototype"===r)return;if("arguments"===r||"caller"===r)return;const o=Object.getOwnPropertyDescriptor(e,r),i=Object.getOwnPropertyDescriptor(t,r);!fs(o,i)&&n||Object.defineProperty(e,r,i);},fs=(e,t)=>void 0===e||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value),ms=(e,t)=>`/* Wrapped ${e}*/\n${t}`,hs=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),gs=Object.getOwnPropertyDescriptor((()=>{}).toString,"name"),vs=new WeakMap(),Es=(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(vs.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((e,t,{ignoreNonConfigurable:r=!1}={})=>{const{name:n}=e;for(const n of Reflect.ownKeys(t))ps(e,t,n,r);((e,t)=>{const r=Object.getPrototypeOf(t);r!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,r);})(e,t),((e,t,r)=>{const n=""===r?"":`with ${r.trim()}() `,o=ms.bind(null,n,""+t);Object.defineProperty(o,"name",gs),Object.defineProperty(e,"toString",{...hs,value:o});})(e,t,n);})(i,e),vs.set(i,n),i;};Es.callCount=e=>{if(!vs.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return vs.get(e);};var ys=Es;const ws=(e,t)=>({name:"SIGRT"+(t+1),number:xs+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),xs=34,bs=[{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"}],Ss=()=>{const e=Array.from({length:64-xs+1},ws);return[...bs,...e].map(Is);},Is=({name:e,number:t,description:r,action:n,forced:o=!1,standard:i})=>{const{signals:{[e]:s}}=Ft.constants,a=void 0!==s;return{name:e,number:a?s:t,description:r,supported:a,action:n,forced:o,standard:i};},Os=({name:e,number:t,description:r,supported:n,action:o,forced:i,standard:s})=>[e,{name:e,number:t,description:r,supported:n,action:o,forced:i,standard:s}],Rs=(()=>{const e=Ss();return Object.fromEntries(e.map(Os));})(),Ts=((()=>{const e=Ss(),t=Array.from({length:65},(t,r)=>((e,t)=>{const r=((e,t)=>{const r=t.find(({name:t})=>Ft.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));Object.assign({},...t);})(),({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:Rs[o].description,f=(({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}),m=`Command ${f}: ${s}`,h="[object Error]"==={}.toString.call(n),g=h?`${m}\n${n.message}`:m,v=[g,t,e].filter(Boolean).join("\n");return h?(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;}),Cs=["stdin","stdout","stderr"],_s=(e,t="SIGTERM",r={})=>{const n=e(t);return Ps(e,t,r,n),n;},Ps=(e,t,r,n)=>{if(!As(t,r,n))return;const o=Ls(r),i=setTimeout(()=>{e("SIGKILL");},o);i.unref&&i.unref();},As=(e,{forceKillAfterTimeout:t},r)=>Ns(e)&&!1!==t&&r,Ns=e=>e===t(Ft).constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),Ls=({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;},$s=(e,t)=>{e.kill()&&(t.isCanceled=!0);},Ds=(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]);},Us=({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})`);},ks=async(e,{cleanup:r,detached:n},o)=>{if(!r||n)return o;const i=t(si)(()=>{e.kill();});return o.finally(()=>{i();});},js=(e,t,r)=>{if("string"==typeof r)return e[t].pipe((0,_t.createWriteStream)(r)),e;if(U(r))return e[t].pipe(r),e;if(!(e=>e instanceof jt.ChildProcess&&"function"==typeof e.then)(r))throw new TypeError("The second argument must be a string, a stream or an Execa child process.");if(!U(r.stdin))throw new TypeError("The target child process's stdin must be available.");return e[t].pipe(r.stdin),r;},Ms=e=>{null!==e.stdout&&(e.pipeStdout=js.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=js.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=js.bind(void 0,e,"all"));},Gs=e=>{if(void 0!==e)throw new TypeError("The `input` and `inputFile` options cannot be both set.");},Fs=e=>{const t=(({input:e,inputFile:t})=>"string"!=typeof t?e:(Gs(e),(0,_t.readFileSync)(t)))(e);if(D(t))throw new TypeError("The `input` option cannot be a stream in sync mode");return t;},Bs=(e,t)=>{const r=(({input:e,inputFile:t})=>"string"!=typeof t?e:(Gs(e),(0,_t.createReadStream)(t)))(t);void 0!==r&&(D(r)?r.pipe(e.stdin):e.stdin.end(r));},Hs=(e,{all:r})=>{if(!r||!e.stdout&&!e.stderr)return;const n=t(ji)();return e.stdout&&n.add(e.stdout),e.stderr&&n.add(e.stderr),n;},qs=async(e,t)=>{if(e&&void 0!==t){e.destroy();try{return await t;}catch(e){return e.bufferedData;}}},Vs=(e,{encoding:r,buffer:n,maxBuffer:o})=>{if(e&&n)return r?t(Li)(e,{encoding:r,maxBuffer:o}):t(Li).buffer(e,{maxBuffer:o});},Xs=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:o,maxBuffer:i},s)=>{const a=Vs(e,{encoding:n,buffer:o,maxBuffer:i}),c=Vs(t,{encoding:n,buffer:o,maxBuffer:i}),l=Vs(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},qs(e,a),qs(t,c),qs(r,l)]);}},Ws=(async()=>{})().constructor.prototype,zs=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(Ws,e)]),Ks=(e,t)=>{for(const[r,n]of zs){const o="function"==typeof t?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:o});}},Ys=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);});}),Qs=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],Js=/^[\w.-]+$/,Zs=/"/g,ea=(e,t)=>Qs(e,t).join(" "),ta=(e,t)=>Qs(e,t).map(e=>(e=>"string"!=typeof e||Js.test(e)?e:`"${e.replace(Zs,'\\"')}"`)(e)).join(" "),ra=/ +/g,na=e=>{const t=typeof e;if("string"===t)return e;if("number"===t)return e+"";if("object"===t&&null!==e&&!(e instanceof jt.ChildProcess)&&"stdout"in e){const t=typeof e.stdout;if("string"===t)return e.stdout;if(Ut.Buffer.isBuffer(e.stdout))return""+e.stdout;throw new TypeError(`Unexpected "${t}" stdout in template expression`);}throw new TypeError(`Unexpected "${t}" in template expression`);},oa=(e,t,r)=>r||0===e.length||0===t.length?[...e,...t]:[...e.slice(0,-1),`${e[e.length-1]}${t[0]}`,...t.slice(1)],ia=({templates:e,expressions:t,tokens:r,index:n,template:o})=>{const i=null!=o?o:e.raw[n],s=i.split(ra).filter(Boolean),a=oa(r,s,i.startsWith(" "));if(n===t.length)return a;const c=t[n],l=Array.isArray(c)?c.map(e=>na(e)):[na(c)];return oa(a,l,i.endsWith(" "));},sa=(e,t)=>{let r=[];for(const[n,o]of e.entries())r=ia({templates:e,expressions:t,tokens:r,index:n,template:o});return r;},aa=(0,Bt.debuglog)("execa").enabled,ca=(e,t)=>(e+"").padStart(t,"0"),la=(e,{verbose:r})=>{r&&t(Mt).stderr.write(`[${(()=>{const e=new Date();return`${ca(e.getHours(),2)}:${ca(e.getMinutes(),2)}:${ca(e.getSeconds(),2)}.${ca(e.getMilliseconds(),3)}`;})()}] ${e}\n`);},ua=(e,r,n={})=>{const o=t(xo)._parse(e,r,n);return e=o.command,r=o.args,(n={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(n=o.options).cwd||t(Mt).cwd(),execPath:t(Mt).execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:aa,...n}).env=(({env:e,extendEnv:r,preferLocal:n,localDir:o,execPath:i})=>{const s=r?{...t(Mt).env,...e}:e;return n?(({env:e=t(Mt).env,...r}={})=>{const n=$({env:e={...e}});return r.path=e[n],e[n]=((e={})=>{const{cwd:r=t(Mt).cwd(),path:n=t(Mt).env[$()],execPath:o=t(Mt).execPath}=e;let i;const s=r instanceof URL?t(Gt).fileURLToPath(r):r;let a=t(kt).resolve(s);const c=[];for(;i!==a;)c.push(t(kt).join(a,"node_modules/.bin")),i=a,a=t(kt).resolve(a,"..");return c.push(t(kt).resolve(s,o,"..")),[...c,n].join(t(kt).delimiter);})(r),e;})({env:s,cwd:o,execPath:i}):s;})(n),n.stdio=(e=>{if(!e)return;const{stdio:t}=e;if(void 0===t)return Cs.map(t=>e[t]);if((e=>Cs.some(t=>void 0!==e[t]))(e))throw Error("It's not possible to provide `stdio` in combination with one of "+Cs.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,Cs.length)},(e,r)=>t[r]);})(n),"win32"===t(Mt).platform&&"cmd"===t(kt).basename(e,".exe")&&r.unshift("/q"),{file:e,args:r,options:n,parsed:o};},da=(e,t,r)=>"string"==typeof t||Ut.Buffer.isBuffer(t)?e.stripFinalNewline?(e=>{const t="string"==typeof e?"\r":13;return e[e.length-1]===("string"==typeof e?"\n":10)&&(e=e.slice(0,-1)),e[e.length-1]===t&&(e=e.slice(0,-1)),e;})(t):t:void 0===r?void 0:"",pa=({input:e,inputFile:t,stdio:r})=>void 0===e&&void 0===t&&void 0===r?{stdin:"inherit"}:{},fa=(e={})=>({preferLocal:!0,...pa(e),...e});let ma;!function e(t){function r(r,...n){if(!Array.isArray(r))return e({...t,...r});const[o,...i]=sa(r,n);return k(o,i,fa(t));}return r.sync=(e,...r)=>{if(!Array.isArray(e))throw new TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");const[n,...o]=sa(e,r);return j(n,o,fa(t));},r;}();var ha={};const ga="win32"!==yt.platform(),va=yt.release(),Ea=/(\d+\.\d+)\.(\d+)/;ha=e=>ga?e.replace(/(\s+)/g,"\\$1"):((e="",t="")=>/1\d+\.\d+/.test(e)&&+t>=17134.1184)(...Ea.exec(va).splice(1))?e:e.replace(/(\s+)/g,"%20");var ya,wa,xa={};ya=Wt("eaZtc"),wa=e=>e.split("").reverse().join(""),xa=(e,t,r)=>{var n;return null==t&&(t="'"),null==r&&(r="\\"),"string"!=typeof e?e:(n=RegExp("(["+ya(t)+"])(?!"+ya(r)+")","g"),wa(wa(e).replace(n,"$1"+r)));};var ba=Wt("3WkGD");const Sa=y(".cpprc");let Ia=!1;var Oa={},Ra=wt.join,Ta=wt.delimiter,Ca=wt.sep,_a=wt.posix;const Pa="win32"===process.platform,Aa=RegExp(`[${_a.sep}${Ca===_a.sep?"":Ca}]`.replace(/(\\)/g,"\\$1")),Na=RegExp("^\\."+Aa.source),La=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),$a=(e,{path:t=process.env.PATH,pathExt:r=process.env.PATHEXT,delimiter:n=Ta})=>{const o=e.match(Aa)?[""]:[...(Pa?[process.cwd()]:[]),...(t||"").split(n)];if(Pa){const t=r||[".EXE",".CMD",".BAT",".COM"].join(n),i=t.split(n).reduce((e,t)=>(e.push(t),e.push(t.toLowerCase()),e),[]);return e.includes(".")&&""!==i[0]&&i.unshift(""),{pathEnv:o,pathExt:i,pathExtExe:t};}return{pathEnv:o,pathExt:[""]};},Da=(e,t)=>{const r=/^".*"$/.test(e)?e.slice(1,-1):e;return(!r&&Na.test(t)?t.slice(0,2):"")+Ra(r,t);},Ua=async(e,t={})=>{const{pathEnv:r,pathExt:n,pathExtExe:o}=$a(e,t),i=[];for(const s of r){const r=Da(s,e);for(const e of n){const n=r+e;if(await ho(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 La(e);};Oa=Ua,Ua.sync=(e,t={})=>{const{pathEnv:r,pathExt:n,pathExtExe:o}=$a(e,t),i=[];for(const s of r){const r=Da(s,e);for(const e of n){const n=r+e;if(ho.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 La(e);},ba=Wt("3WkGD");var ka=Wt("9O4vc");Yt=Wt("hHq4F");const{appendFile:ja}=xt.promises;let Ma=!1,Ga=!1;zt=Wt("2heqc"),Zt=Wt("A8hFE"),Zt=Wt("A8hFE");var Fa=Wt("kSdX3");let Ba,Ha,qa=!1;ba=Wt("3WkGD"),Zt=Wt("A8hFE"),zt=Wt("2heqc"),Yt=Wt("hHq4F");let Va,Xa,Wa,za=!1;Yt=Wt("hHq4F"),Yt=Wt("hHq4F");let Ka=!1,Ya=!1;const Qa=/Version\s*:\s*(.*)/g;Yt=Wt("hHq4F");var Ja={},Za={};const ec={},tc=(e,t,r)=>{Object.defineProperty(Za,e,{get(){const n=((e,t)=>{const r=ec[e]||(ec[e]=require(e));return t?r[t]:r;})(t,r);return Object.defineProperty(Za,e,{value:n,enumerable:!0,configurable:!0}),n;},configurable:!0,enumerable:!0});};tc("re","./internal/re","re"),tc("src","./internal/re","src"),tc("tokens","./internal/re","t"),tc("SEMVER_SPEC_VERSION","./internal/constants","SEMVER_SPEC_VERSION"),tc("SemVer","./classes/semver"),tc("compareIdentifiers","./internal/identifiers","compareIdentifiers"),tc("rcompareIdentifiers","./internal/identifiers","rcompareIdentifiers"),tc("parse","./functions/parse"),tc("valid","./functions/valid"),tc("clean","./functions/clean"),tc("inc","./functions/inc"),tc("diff","./functions/diff"),tc("major","./functions/major"),tc("minor","./functions/minor"),tc("patch","./functions/patch"),tc("prerelease","./functions/prerelease"),tc("compare","./functions/compare"),tc("rcompare","./functions/rcompare"),tc("compareLoose","./functions/compare-loose"),tc("compareBuild","./functions/compare-build"),tc("sort","./functions/sort"),tc("rsort","./functions/rsort"),tc("gt","./functions/gt"),tc("lt","./functions/lt"),tc("eq","./functions/eq"),tc("neq","./functions/neq"),tc("gte","./functions/gte"),tc("lte","./functions/lte"),tc("cmp","./functions/cmp"),tc("coerce","./functions/coerce"),tc("Comparator","./classes/comparator"),tc("Range","./classes/range"),tc("satisfies","./functions/satisfies"),tc("toComparators","./ranges/to-comparators"),tc("maxSatisfying","./ranges/max-satisfying"),tc("minSatisfying","./ranges/min-satisfying"),tc("minVersion","./ranges/min-version"),tc("validRange","./ranges/valid"),tc("outside","./ranges/outside"),tc("gtr","./ranges/gtr"),tc("ltr","./ranges/ltr"),tc("intersects","./ranges/intersects");var rc=ce(Dt),nc=ce(Za),oc=ce(yt),ic=ce(wt),sc=ce(xt),ac=ce(It),cc=rc.default.env.npm_package_json,lc=rc.default.env.npm_config_user_agent,uc=!(!lc||!lc.startsWith("npm")),dc=!(!cc||!cc.endsWith("package.json")),pc=uc||dc,fc=!(!lc||!lc.startsWith("yarn")),mc=pc||fc,hc=oc.default.homedir(),gc=process.env.XDG_CONFIG_HOME||ic.default.join(hc,".config","simple-update-notifier"),vc=e=>ic.default.join(gc,"".concat(e.replace("@","").replace("/","__"),".json")),Ec=function(e,t){return le(void 0,void 0,void 0,function(){var r;return ue(this,n=>(r="https://registry.npmjs.org/-/package/".concat(e,"/dist-tags"),[2,new Promise((e,n)=>{ac.default.get(r,r=>{var o="";r.on("data",e=>o+=e),r.on("end",()=>{try{var r=JSON.parse(o)[t];r||n(Error("Error getting version")),e(r);}catch(e){n(Error("Could not parse version response"));}});}).on("error",e=>n(e));})]));});},yc=function(e){var t=e.pkg,r=e.updateCheckInterval,n=void 0===r?864e5:r,o=e.distTag,i=void 0===o?"latest":o,s=e.alwaysRun,a=e.debug;return le(void 0,void 0,void 0,function(){var e,r;return ue(this,o=>{switch(o.label){case 0:return sc.default.existsSync(gc)||sc.default.mkdirSync(gc,{recursive:!0}),e=(e=>{var t=vc(e);try{if(!sc.default.existsSync(t))return;return JSON.parse(sc.default.readFileSync(t,"utf8")).lastUpdateCheck;}catch(e){return;}})(t.name),s||!e||e<new Date().getTime()-n?[4,Ec(t.name,i)]:[3,2];case 1:return r=o.sent(),c=vc(t.name),sc.default.writeFileSync(c,JSON.stringify({lastUpdateCheck:new Date().getTime()})),nc.default.gt(r,t.version)?[2,r]:(a&&console.error("Latest version (".concat(r,") not newer than current version (").concat(t.version,")")),[3,3]);case 2:a&&console.error("Too recent to check for a new update. simpleUpdateNotifier() interval set to ".concat(n,"ms but only ").concat(new Date().getTime()-e,"ms since last check.")),o.label=3;case 3:return[2,!1];}var c;});});};Ja=function(e){return le(void 0,void 0,void 0,function(){var t,r;return ue(this,n=>{switch(n.label){case 0:if(!e.alwaysRun&&(!process.stdout.isTTY||mc&&!e.shouldNotifyInNpmScript))return e.debug&&console.error("Opting out of running simpleUpdateNotifier()"),[2];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,yc(e)];case 2:return(t=n.sent())&&console.error((e=>{for(var t=e.split("\n"),r=Math.max.apply(Math,t.map(e=>e.length)),n=["┌".concat("─".repeat(r+2),"┐")],o=0,i=t;i.length>o;o++)n.push("│ ".concat(i[o].padEnd(r)," │"));return n.push("└".concat("─".repeat(r+2),"┘")),n.join("\n");})("New version of ".concat(e.pkg.name," available!\nCurrent Version: ").concat(e.pkg.version,"\nLatest Version: ").concat(t))),[3,4];case 3:return r=n.sent(),e.debug&&r instanceof Error&&console.error("Unexpected error in simpleUpdateNotifier():",r),[3,4];case 4:return[2];}});});};var wc={};wc=JSON.parse('{"name":"setup-cpp","version":"0.27.1"}');var xc={},bc=wt.resolve(__dirname,"../../node_modules/.pnpm/@actions+tool-cache@2.0.1/node_modules/@actions/tool-cache/lib"),Sc=xc&&xc.__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];}),Ic=xc&&xc.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t});}:(e,t)=>{e.default=t;}),Oc=xc&&xc.__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)&&Sc(t,e,r);return Ic(t,e),t;}),Rc=xc&&xc.__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());})),Tc=xc&&xc.__importDefault||(e=>e&&e.__esModule?e:{default:e});Object.defineProperty(xc,"__esModule",{value:!0}),xc.evaluateVersions=xc.isExplicitVersion=xc.findFromManifest=xc.getManifestFromRepo=xc.findAllVersions=xc.find=xc.cacheFile=xc.cacheDir=xc.extractZip=xc.extractXar=xc.extractTar=xc.extract7z=xc.downloadTool=xc.HTTPError=void 0;const Cc=Oc(Wt("2heqc")),_c=Oc(Wt("kSdX3")),Pc=Oc(xt),Ac=Oc(Wt("8kgpT")),Nc=Oc(yt),Lc=Oc(wt),$c=Oc(Wt("aPbbM")),Dc=Oc(Wt("feUtB")),Uc=Oc($t),kc=Oc(Ct),jc=Tc(Wt("bxsAi"));var Mc=Wt("2mVwa"),Gc={},Fc=Gc&&Gc.__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];}),Bc=Gc&&Gc.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t});}:(e,t)=>{e.default=t;}),Hc=Gc&&Gc.__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)&&Fc(t,e,r);return Bc(t,e),t;}),qc=Gc&&Gc.__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(Gc,"__esModule",{value:!0}),Gc.RetryHelper=void 0;const Vc=Hc(Wt("2heqc"));Gc.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 qc(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;Vc.info(e.message);}const n=this.getSleepAmount();Vc.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 qc(this,void 0,void 0,function*(){return new Promise(t=>setTimeout(t,1e3*e));});}};class Xc extends Error{constructor(e){super("Unexpected HTTP response: "+e),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype);}}xc.HTTPError=Xc;const Wc="win32"===process.platform,zc="darwin"===process.platform;xc.downloadTool=function(e,t,r,n){return Rc(this,void 0,void 0,function*(){t=t||Lc.join(Ee(),jc.default()),yield _c.mkdirP(Lc.dirname(t)),Cc.debug("Downloading "+e),Cc.debug("Destination "+t);const o=ye("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),i=ye("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),s=new Gc.RetryHelper(3,o,i);return yield s.execute(()=>Rc(this,void 0,void 0,function*(){return yield function(e,t,r,n){return Rc(this,void 0,void 0,function*(){if(Pc.existsSync(t))throw Error(`Destination file path ${t} already exists`);const o=new $c.HttpClient("actions/tool-cache",[],{allowRetries:!1});r&&(Cc.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 Xc(i.message.statusCode);throw Cc.debug(`Failed to download from "${e}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),t;}const s=kc.promisify(Uc.pipeline),a=ye("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>i.message)();let c=!1;try{return yield s(a,Pc.createWriteStream(t)),Cc.debug("download complete"),c=!0,t;}finally{if(!c){Cc.debug("download failed");try{yield _c.rmRF(t);}catch(e){Cc.debug(`Failed to delete '${t}'. ${e.message}`);}}}});}(e,t||"",r,n);}),e=>!(e instanceof Xc&&e.httpStatusCode&&500>e.httpStatusCode&&408!==e.httpStatusCode&&429!==e.httpStatusCode));});},xc.extract7z=function(e,t,r){return Rc(this,void 0,void 0,function*(){Tt.ok(Wc,"extract7z() not supported on current OS"),Tt.ok(e,'parameter "file" is required'),t=yield pe(t);const n=process.cwd();if(process.chdir(t),r)try{const t=["x",Cc.isDebug()?"-bb1":"-bb0","-bd","-sccUTF-8",e],n={silent:!0};yield Mc.exec(`"${r}"`,t,n);}finally{process.chdir(n);}else{const r=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${Lc.join(bc,"..","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 _c.which("powershell",!0);yield Mc.exec(`"${e}"`,r,o);}finally{process.chdir(n);}}return t;});},xc.extractTar=function(e,t,r="xz"){return Rc(this,void 0,void 0,function*(){if(!e)throw Error("parameter 'file' is required");t=yield pe(t),Cc.debug("Checking tar --version");let n="";yield Mc.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout(e){return n+=""+e;},stderr(e){return n+=""+e;}}}),Cc.debug(n.trim());const o=n.toUpperCase().includes("GNU TAR");let i;i=r instanceof Array?r:[r],Cc.isDebug()&&!r.includes("v")&&i.push("-v");let s=t,a=e;return Wc&&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 Mc.exec("tar",i),t;});},xc.extractXar=function(e,t,r=[]){return Rc(this,void 0,void 0,function*(){let n;Tt.ok(zc,"extractXar() not supported on current OS"),Tt.ok(e,'parameter "file" is required'),t=yield pe(t),n=r instanceof Array?r:[r],n.push("-x","-C",t,"-f",e),Cc.isDebug()&&n.push("-v");const o=yield _c.which("xar",!0);var i;return yield Mc.exec(`"${o}"`,(i=n,Array.from(new Set(i)))),t;});},xc.extractZip=function(e,t){return Rc(this,void 0,void 0,function*(){if(!e)throw Error("parameter 'file' is required");return t=yield pe(t),Wc?yield function(e,t){return Rc(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 _c.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(" ")];Cc.debug("Using pwsh at path: "+o),yield Mc.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 _c.which("powershell",!0);Cc.debug("Using powershell at path: "+t),yield Mc.exec(`"${t}"`,e);}});}(e,t):yield function(e,t){return Rc(this,void 0,void 0,function*(){const r=yield _c.which("unzip",!0),n=[e];Cc.isDebug()||n.unshift("-q"),n.unshift("-o"),yield Mc.exec(`"${r}"`,n,{cwd:t});});}(e,t),t;});},xc.cacheDir=function(e,t,r,n){return Rc(this,void 0,void 0,function*(){if(r=Dc.clean(r)||r,n=n||Nc.arch(),Cc.debug(`Caching tool ${t} ${r} ${n}`),Cc.debug("source dir: "+e),!Pc.statSync(e).isDirectory())throw Error("sourceDir is not a directory");const o=yield fe(t,r,n);for(const t of Pc.readdirSync(e)){const r=Lc.join(e,t);yield _c.cp(r,o,{recursive:!0});}return me(t,r,n),o;});},xc.cacheFile=function(e,t,r,n,o){return Rc(this,void 0,void 0,function*(){if(n=Dc.clean(n)||n,o=o||Nc.arch(),Cc.debug(`Caching tool ${r} ${n} ${o}`),Cc.debug("source file: "+e),!Pc.statSync(e).isFile())throw Error("sourceFile is not a file");const i=yield fe(r,n,o),s=Lc.join(i,t);return Cc.debug("destination file "+s),yield _c.cp(e,s),me(r,n,o),i;});},xc.find=(e,t,r)=>{if(!e)throw Error("toolName parameter is required");if(!t)throw Error("versionSpec parameter is required");r=r||Nc.arch(),he(t)||(t=ge(de(e,r),t));let n="";if(t){t=Dc.clean(t)||"";const o=Lc.join(ve(),e,t,r);Cc.debug("checking cache: "+o),Pc.existsSync(o)&&Pc.existsSync(o+".complete")?(Cc.debug(`Found tool in cache ${e} ${t} ${r}`),n=o):Cc.debug("not found");}return n;},xc.findAllVersions=de,xc.getManifestFromRepo=function(e,t,r,n="master"){return Rc(this,void 0,void 0,function*(){let o=[];const i=`https://api.github.com/repos/${e}/${t}/git/trees/${n}`,s=new $c.HttpClient("tool-cache"),a={};r&&(Cc.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){Cc.debug("Invalid json");}}return o;});},xc.findFromManifest=function(e,t,r,n=Nc.arch()){return Rc(this,void 0,void 0,function*(){return yield Ac._findMatch(e,t,r,n);});},xc.isExplicitVersion=he,xc.evaluateVersions=ge;var Kc=Wt("29uOU"),Yc=Wt("i9nXz"),Qc=(Zt=Wt("A8hFE"),Yt=Wt("hHq4F"),Kt=Wt("cLprm"),ba=Wt("3WkGD"),{});Object.defineProperty(Qc,"__esModule",{value:!0}),Qc.retryAsPromised=Qc.TimeoutError=void 0;class Jc extends Error{constructor(e,t){super(e),this.name="TimeoutError",this.previous=t;}}Qc.TimeoutError=Jc,Qc.retryAsPromised=we,Qc.default=we;let Zc,el=!1;Zt=Wt("A8hFE"),Fa=Wt("kSdX3"),Yt=Wt("hHq4F"),zt=Wt("2heqc"),ba=Wt("3WkGD"),Zt=Wt("A8hFE"),Kt=Wt("cLprm"),Yt=Wt("hHq4F"),Zt=Wt("A8hFE"),Mc=Wt("2mVwa");var tl=async e=>{const t=(e=>{if("string"!=typeof e)return!1;const t=e.trim();if(t.includes(" "))return!1;try{return new(0,Ht.URL)(t),!0;}catch{return!1;}})(e);if(!t)return!1;let r=await _e(e,"HEAD");return!!r||(r=await _e(e,"GET"),!!r);},rl=Wt("gsDyR");Yc=Wt("i9nXz"),er=Wt("l2nMb"),Mc=Wt("2mVwa"),Yt=Wt("hHq4F");const nl=/v?(\d\S*)/,ol={llvm:Ae(),clangtidy:Ae(),clangformat:Ae(),ninja:"1.11.1",cmake:"3.26.4",gcovr:"5.2",conan:"1.60.0",meson:"1.0.2",kcov:"41",task:"3.25.0",doxygen:ne()?"1.9.6-1":"1.9.7",gcc:ne()?"13.1.1-1":"13"},il={gcc:{22:"13",20:"11",18:"11",16:"11",14:"11"},llvm:{22:"15.0.6-ubuntu-18.04",20:"15.0.6-ubuntu-18.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},clangtidy:{22:"15.0.6-ubuntu-18.04",20:"15.0.6-ubuntu-18.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},clangformat:{22:"15.0.6-ubuntu-18.04",20:"15.0.6-ubuntu-18.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},gcovr:{22:"5.2",20:"5.2",18:"5.0"},meson:{20:"1.0.0",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 sl,al,cl=!1;Zt=Wt("A8hFE"),Yt=Wt("hHq4F"),ba=Wt("3WkGD");var ll=Wt("16mXi"),ul=(Yc=Wt("i9nXz"),Mc=Wt("2mVwa"),Yt=Wt("hHq4F"),Zt=Wt("A8hFE"),Yt=Wt("hHq4F"),Kt=Wt("cLprm"),ba=Wt("3WkGD"),wt.resolve(__dirname,"../../src/gcc"));const dl={13:{releaseName:"13.1.0posix-16.0.3-11.0.0-ucrt-r1",fileSuffix:"13.1.0-mingw-w64ucrt-11.0.0-r1"},"13.1-ucrt":{releaseName:"13.1.0posix-16.0.3-11.0.0-ucrt-r1",fileSuffix:"13.1.0-mingw-w64ucrt-11.0.0-r1"},"13.1-msvcrt":{releaseName:"13.1.0posix-16.0.3-11.0.0-msvcrt-r1",fileSuffix:"13.1.0-mingw-w64msvcrt-11.0.0-r1"},12:{releaseName:"12.3.0-16.0.4-11.0.0-ucrt-r1",fileSuffix:"12.3.0-mingw-w64ucrt-11.0.0-r1"},"12.3.0-ucrt":{releaseName:"12.3.0-16.0.4-11.0.0-ucrt-r1",fileSuffix:"12.3.0-mingw-w64ucrt-11.0.0-r1"},"12.3.0-msvcrt":{releaseName:"12.3.0-16.0.4-11.0.0-msvcrt-r1",fileSuffix:"12.3.0-mingw-w64msvcrt-11.0.0-r1"},"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"}};er=Wt("l2nMb"),ll=Wt("16mXi"),Zt=Wt("A8hFE"),Yt=Wt("hHq4F"),Zt=Wt("A8hFE");var pl=wt.resolve(__dirname,"../../src/kcov");Zt=Wt("A8hFE"),Yt=Wt("hHq4F"),Kt=Wt("cLprm"),Kc=Wt("29uOU"),Yt=Wt("hHq4F"),Zt=Wt("A8hFE");const fl=(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","15.0.3","15.0.4","15.0.5","15.0.6","15.0.7","16.0.0","16.0.1","16.0.2","16.0.3","16.0.4"]),ml=new Set(["10.0.1","15.0.5","15.0.6"]),hl=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","15.0.4","15.0.5","15.0.6","16.0.0","16.0.1","16.0.2","16.0.3","16.0.4"]),gl=new Map(),vl={"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","15.0.5":"-ubuntu-18.04","15.0.6":"-ubuntu-18.04","16.0.0":"-ubuntu-18.04","16.0.2":"-ubuntu-22.04","16.0.3":"-ubuntu-22.04","16.0.4":"-ubuntu-22.04"},El="15.0.6";Yt=Wt("hHq4F");var yl={};Object.defineProperty(yl,"__esModule",{value:!0}),yl.getUbuntuVersion=void 0,yl.getUbuntuVersion=async()=>{if("linux"!==process.platform)return[];const e=await(t="lsb_release",r=["-a"],new Promise((e,n)=>{Pt.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[];},ba=Wt("3WkGD");var wl=wt.resolve(__dirname,"../../src/llvm");let xl=!1;var bl,Sl,Il,Ol={},Rl=Ol&&Ol.__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());})),Tl=Ol&&Ol.__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(Ol,"__esModule",{value:!0});var Cl={},_l=Cl&&Cl.__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(Cl,"__esModule",{value:!0});const Pl=_l(yt);var Al={};Object.defineProperty(Al,"__esModule",{value:!0}),Al.toCommandValue=e=>null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e),Cl.issueCommand=nt,Cl.issue=(e,t="")=>{nt(e,{},t);};class Nl{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,Al.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C"))}`);}}var t;return e+="::"+(e=>Al.toCommandValue(this.message).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A"))(),e;}}var Ll={},$l=Ll&&Ll.__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(Ll,"__esModule",{value:!0});const Dl=$l(xt),Ul=$l(yt);Ll.issueCommand=(e,t)=>{const r=process.env["GITHUB_"+e];if(!r)throw Error("Unable to find environment variable for file command "+e);if(!Dl.existsSync(r))throw Error("Missing file at path: "+r);Dl.appendFileSync(r,`${Al.toCommandValue(t)}${Ul.EOL}`,{encoding:"utf8"});};const kl=Tl(yt),jl=Tl(wt);var Ml,Gl;(Gl=Ml=Ol.ExitCode||(Ol.ExitCode={}))[Gl.Success=0]="Success",Gl[Gl.Failure=1]="Failure",Ol.exportVariable=(e,t)=>{const r=Al.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV){const t="_GitHubActionsFileCommandDelimeter_";Ll.issueCommand("ENV",`${e}<<${t}${kl.EOL}${r}${kl.EOL}${t}`);}else Cl.issueCommand("set-env",{name:e},r);},Ol.setSecret=e=>{Cl.issueCommand("add-mask",{},e);},Ol.addPath=e=>{process.env.GITHUB_PATH?Ll.issueCommand("PATH",e):Cl.issueCommand("add-path",{},e),process.env.PATH=`${e}${jl.delimiter}${process.env.PATH}`;},Ol.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();},Ol.setOutput=(e,t)=>{Cl.issueCommand("set-output",{name:e},t);},Ol.setCommandEcho=e=>{Cl.issue("echo",e?"on":"off");},Ol.setFailed=e=>{process.exitCode=Ml.Failure,ot(e);},Ol.isDebug=()=>"1"===process.env.RUNNER_DEBUG,Ol.debug=e=>{Cl.issueCommand("debug",{},e);},Ol.error=ot,Ol.warning=e=>{Cl.issue("warning",e instanceof Error?""+e:e);},Ol.info=e=>{process.stdout.write(e+kl.EOL);},Ol.startGroup=it,Ol.endGroup=st,Ol.group=function(e,t){return Rl(this,void 0,void 0,function*(){let r;it(e);try{r=yield t();}finally{st();}return r;});},Ol.saveState=(e,t)=>{Cl.issueCommand("save-state",{name:e},t);},Ol.getState=e=>process.env["STATE_"+e]||"";const Fl=Dt.env["ProgramFiles(x86)"],Bl=[Dt.env["ProgramFiles(x86)"],Dt.env.ProgramFiles],Hl=["Enterprise","Professional","Community"],ql=["2022","2019","2017"],Vl={2022:"17.0",2019:"16.0",2017:"15.0",2015:"14.0",2013:"12.0"};bl=at;const Xl=Fl+"\\Microsoft Visual Studio\\Installer";Sl=lt,Il=(e,t,r,n,o,i)=>{if("win32"!=Dt.platform)return void Ol.info("This is not a Windows virtual environment, bye!");Dt.env.PATH+=wt.delimiter+Xl;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=`"${lt(i)}" ${a.join(" ")}`;Ol.debug("vcvars command-line: "+c);const l=(""+Pt.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"),f=d.filter(e=>!(!e.match(/^\[ERROR.*\]/)||e.match(/Error in script usage. The correct usage is:$/)));if(f.length>0)throw Error("invalid parameters\r\n"+f.join("\r\n"));let m={};for(let e of u){const[t,r]=e.split("=");m[t]=r;}Ol.startGroup("Environment variables");for(let e of p){if(!e.includes("="))continue;let[t,r]=e.split("=");r!==m[t]&&(Ol.info("Setting "+t),ut(t)&&(r=r.split(";").filter((e,t,r)=>r.indexOf(e)===t).join(";")),Ol.exportVariable(t,r));}Ol.endGroup(),Ol.info("Configured Developer Command Prompt");},Yt=Wt("hHq4F"),ba=Wt("3WkGD"),Kt=Wt("cLprm"),Zt=Wt("A8hFE"),Yt=Wt("hHq4F"),ba=Wt("3WkGD");var Wl=wt.resolve(__dirname,"../../src/msvc");let zl;Zt=Wt("A8hFE"),Zt=Wt("A8hFE"),Yt=Wt("hHq4F"),ba=Wt("3WkGD"),Zt=Wt("A8hFE");let Kl=!1;const Yl={async nala(e,r,n){if(!se())return;if("string"==typeof zl)return{binDir:zl};const o=t(Oa).sync("nala",{nothrow:!0});if(null!==o)return zl=(0,Zt.dirname)(o),{binDir:zl};A("/bin/bash",["-c",`echo "deb [signed-by=${await Y("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 X([{name:"nala"}],!0):await X([{name:"nala-legacy"}],!0);}catch(e){await X([{name:"nala-legacy"}],!0);}return zl="/usr/bin",{binDir:zl};},cmake:Ce,ninja:qe,python:$e,async vcpkg(e,r,n){return Kl&&null!==t(Oa).sync("vcpkg",{nothrow:!0})?{binDir:(0,Zt.dirname)(t(Oa).sync("vcpkg"))}:("linux"===process.platform&&(ne()?await Promise.all([ae("curl"),ae("zip"),ae("unzip"),ae("tar"),ae("git"),ae("pkg-config")]):oe()?(ie("curl"),ie("zip"),ie("unzip"),ie("tar"),ie("git"),ie("pkg-config")):se()&&(await X([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}]))),(await(0,ba.pathExists)((0,Zt.join)(r,(0,Zt.addShExt)("bootstrap-vcpkg",".bat"))))?(0,Yt.notice)(`Vcpkg folder already exists at ${r}. This might mean that ~/vcpkg is restored from the cache.`):j("git",["clone","https://github.com/microsoft/vcpkg"],{cwd:(0,Zt.dirname)(r),stdio:"inherit"}),j((0,Zt.addShExt)((0,Zt.addShRelativePrefix)("bootstrap-vcpkg"),".bat"),{cwd:r,shell:!0,stdio:"inherit"}),G(r),await B(r),Kl=!0,{binDir:r});},async bazel(e,t,r){switch(process.platform){case"win32":return re("bazelisk",e);case"darwin":return ee("bazelisk",e);case"linux":if(ne())throw Error("installing bazel on Arch linux is not supported yet");if(oe())return ie("dnf-plugins-core",void 0),A("dnf",["copr","enable","vbatts/bazel"]),ie("bazel4",void 0);if(se())return A("bash",["-c",`echo "deb [arch=amd64 signed-by=${await Y("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`]),X([{name:"bazel",version:e}],!0);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}},async conan(e,t,r){return await ke("setuptools",""),ke("conan",e);},meson(e,t,r){return ke("meson",e);},gcovr(e,t,r){return ke("gcovr",e);},async opencppcoverage(e,t,r){if("win32"===process.platform)return await re("opencppcoverage",e),{binDir:await(async()=>{const e="C:/Program Files/OpenCppCoverage";return await B(e),e;})()};},llvm:Ze,gcc:Be,choco:te,brew:J,async powershell(e,t,r){switch(process.platform){case"win32":{await re("powershell-core",e);const t="C:/Program Files/PowerShell/7";return await B(t),{binDir:t};}case"darwin":return ee("powershell",e,["--cask"]);case"linux":if(ne())return ae("powershell-bin",e,"yay");if(oe())return ie("curl"),A("/bin/bash",["-c","curl https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo"]),ie("powershell",e);if(se()){await X([{name:"curl"}]);const t=await Je();return A("curl",["-LJO",`https://packages.microsoft.com/config/ubuntu/${t[0]}.0${t[1]}/packages-microsoft-prod.deb`]),A("dpkg",["-i","packages-microsoft-prod.deb"]),X([{name:"powershell",version:e}],!0);}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}},ccache(e,t,r){switch(process.platform){case"win32":return re("ccache",e);case"darwin":return ee("ccache",e);case"linux":if(ne())return ae("ccache",e);if(oe())return ie("ccache",e);if(se())return X([{name:"ccache",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}},sccache(e,t,r){switch(process.platform){case"win32":return re("sccache",e);case"linux":case"darwin":return ee("sccache",e);default:throw Error("Unsupported platform");}},async doxygen(e,r,n){switch(process.platform){case"win32":{await t(Qc)(()=>re("doxygen.install",e),{name:"doxygen.install",max:4,backoffBase:2e3,report(e){return(0,Yt.info)(e);}});const r={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(await(0,ba.pathExists)((0,Zt.join)(e,"doxygen.exe")))return await B(e),e;throw Error("Failed to find doxygen binary");}throw Error("Unsupported platform");})()};return await je(Ne("graphviz",void 0)),r;}case"darwin":{const e=await ee("doxygen",void 0);return await je(Ne("graphviz",void 0)),e;}case"linux":{let t;if(""===e||ne()||oe()){if(ne())t=await ae("doxygen",e);else{if(oe())return ie("doxygen",e);if(!se())throw Error("Unsupported linux distributions");t=await X([{name:"doxygen",version:e}]);}}else{if(!se())throw Error("Unsupported linux distributions");try{t=await xe("doxygen",e,Me,r,n),await X([{name:"libclang-cpp9"}]);}catch(e){(0,Yt.notice)(`Failed to download doxygen binary. ${e}. Falling back to apt-get.`),t=await X([{name:"doxygen"}]);}}return await je(Ne("graphviz",void 0)),t;}default:throw Error("Unsupported platform");}},graphviz:je,async cppcheck(e,t,r){switch(process.platform){case"win32":return await re("cppcheck",e),{binDir:await(async()=>{const e="C:/Program Files/Cppcheck";return await B(e),e;})()};case"darwin":return ee("cppcheck",e);case"linux":if(ne())return ae("cppcheck",e);if(oe())return ie("ccache",e);if(se())return X([{name:"cppcheck",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}},clangtidy:tt,clangformat:tt,msvc:pt,vcvarsall:dt,async kcov(e,t,r){if("linux"!==process.platform)return void(0,Yt.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 xe("kcov",o,Xe,t,r),a):(a=await xe("kcov",o,Ve,t,r),ne()?await ae("binutils"):oe()?ie("binutils"):se()&&(await X([{name:"libbinutils"}])),a);},async make(e,t,r){switch(process.platform){case"win32":return re("make",e);case"darwin":return await ee("make",e),await B("/usr/local/opt/make/libexec/gnubin"),{binDir:"/usr/local/opt/make/libexec/gnubin"};case"linux":if(ne())return ae("make",e);if(oe())return ie("make",e);if(se())return X([{name:"make",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}},task(e,t,r){return xe("task",e,ft,t,r);},sevenzip:be},Ql=Object.keys(Yl),Jl=["compiler","architecture",...Ql];mt(process.argv).then(e=>{process.exitCode=e;}).catch(e=>{(0,Yt.error)("main() panicked!"),(0,Yt.error)(e),process.exitCode=1;});
|
||
//# sourceMappingURL=setup-cpp.js.map
|