setup-cpp/dist/node12/setup-cpp.js

44 lines
240 KiB
JavaScript
Raw Normal View History

#!/usr/bin/env node
2023-05-27 03:00:04 +08:00
let e,t,r,n,i,o,s,a,l,c;function u(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}function d(e){return e&&e.__esModule?e.default:e}function p(e){return e&&e.__esModule?e.default:e}function f(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}function m(e,t,r){if("function"==typeof t&&(r=t,t={}),!r){if("function"!=typeof Promise)throw TypeError("callback not provided");return new Promise((r,n)=>{m(e,t||{},(e,t)=>{e?n(e):r(t)})})}rx(e,t||{},(e,n)=>{e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,n=!1),r(e,n)})}function h(e,t){let r;let n=e.options.env||process.env,i=process.cwd(),o=null!=e.options.cwd,s=o&&void 0!==process.chdir&&!process.chdir.disabled;if(s)try{process.chdir(e.options.cwd)}catch(e){}try{r=rw.sync(e.command,{path:n[rT({env:n})],pathExt:t?of.delimiter:void 0})}catch(e){}finally{s&&process.chdir(i)}return r&&(r=(0,of.resolve)(o?e.options.cwd:"",r)),r}function g(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 v(e,t){return oR&&1===e&&!t.file?g(t.original,"spawn"):null}function E(e,t,r){let n=rR(e,t,r),i=(0,t0.spawn)(n.command,n.args,n.options);return rN.hookChildProcess(i,n),i}async function y(e,t){if(!e)throw Error("Expected a stream");t={maxBuffer:1/0,...t};let{maxBuffer:r}=t,n=r0(t);return await new Promise((t,i)=>{let o=e=>{e&&n.getBufferedLength()<=r2.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),i(e)};(async()=>{try{await o2(e,n),t()}catch(e){o(e)}})(),n.on("data",()=>{n.getBufferedLength()>r&&o(new o3)})}),n.getBufferedValue()}function w(){return null!==p(rw).sync("sudo",{nothrow:!0})}function x(){var e;return 0===(null===(e=process.getuid)||void 0===e?void 0:e.call(process))||!!process.env.CI}function b(){return x()&&w()}function S(e){return b()?"sudo "+e:e}function I(e,t=[],r={stdio:"inherit",shell:!0}){return b()?p(rI).commandSync("sudo "+[e,...t].map(e=>`'${e}'`).join(" "),r):p(rI).sync(e,t,r)}function O(e,t=[],r={stdio:"inherit",shell:!0}){return b()?p(rI).command("sudo "+[e,...t].map(e=>`'${e}'`).join(" "),r):p(rI)(e,t,r)}function R(){return"win32"===process.platform?sr():x()}function T(e){return b()&&"string"==typeof process.env.SUDO_USER?"darwin"===process.platform?(0,of.join)("/Users/",process.env.SUDO_USER,e):(0,of.join)("/home/",process.env.SUDO_USER,e):d(rm)("~/"+e)}function C(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function _(e,t,r,n){return new(r||(r=Promise))((i,o)=>{function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(e=>{e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})}function P(e,t){function r(r){return s=>(r=>{if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){a.label=r[1];break}if(6===r[0]&&a.label<o[1]){a.label=o[1],o=r;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(r);break}o[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}})([r,s])}var n,i,o,s,a={label:0,sent(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s}async function A(){try{await d(nl)({pkg:d(nA)})}catch(e){(0,rc.warning)("Failed to check for updates: "+(e instanceof Error?e.message+e.stack:e))}}function N(e){return null==e?[]:Array.isArray(e)?e:[e]}function $(e,t,r){if("function"==typeof t&&(r=t,t={}),!r){if("function"!=typeof Promise)throw TypeError(
export ${e}="${r}"
`),(0,nN.info)(`${e}="${r}" was added to "${lp}`);return}process.env[e]=r}async function en(e){switch(process.platform){case"win32":await J(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),(0,nN.info)(`"${e}" was added to the PATH.`);return;case"linux":case"darwin":await ei(),(0,om.appendFileSync)(lp,`
export PATH="${e}:$PATH"
`),(0,nN.info)(`"${e}" was added to "${lp}"`);return;default:return}}async function ei(){if(lf)return;let e="# Automatically Generated by setup-cpp\nexport SOURCE_CPPRC=0";if(await (0,iP.pathExists)(lp)){let t=(0,om.readFileSync)(lp,"utf8");if(t.includes(e))return}(0,om.appendFileSync)(lp,`
${e}
`),(0,nN.info)(`Added ${e} to ${lp}`);let t=`
# source .cpprc if SOURCE_CPPRC is not set to 0
if [[ "$SOURCE_CPPRC" != 0 && -f "${lp}" ]]; then source "${lp}"; fi
`;try{let e=T(".profile");(0,om.appendFileSync)(e,t),(0,nN.info)(`${t} was added to ${e}`);let r=T(".bashrc");(0,om.appendFileSync)(r,t),(0,nN.info)(`${t} was added to ${r}`)}catch(e){(0,rc.warning)(`Failed to add ${t} to .profile or .bashrc. You should add it manually: ${e}`)}lf=!0}async function eo(){if(await (0,iP.pathExists)(lp)){let e=(0,om.readFileSync)(lp,"utf-8").split("\n"),t=[...new Set(e.reverse())].reverse();(0,om.writeFileSync)(lp,t.join("\n"));try{Z(lp)}catch{}}}async function es(e,t=!1){var r;let n=null!==d(iA).sync("nala",{nothrow:!0})?"nala":"apt-get";for(let{name:t,version:r}of e)(0,rc.info)(`Installing ${t} ${null!=r?r:""} via ${n}`);process.env.DEBIAN_FRONTEND="noninteractive",(!lb||t)&&(el(n),lb=!0),lS||(await ec(n),lS=!0);let i=[...new Set(e.flatMap(e=>null!==(r=e.repositories)&&void 0!==r?r:[]))];if(0!==i.length){for(let e of i)q("add-apt-repository",["-y",e]);el(n)}let o=await Promise.all(e.map(e=>ea(e.name,e.version)));return q(n,["install","--fix-broken","-y",...o]),{binDir:"/usr/bin/"}}async function ea(e,t){if(void 0!==t&&""!==t){let{stdout:r}=await Y("apt-cache",["search","--names-only",`^${(0,ik.default)(e)}-${(0,ik.default)(t)}$`]);if(""!==r.trim())return`${e}-${t}`;try{let{stdout:r}=await Y("apt-cache",["show",`${e}=${t}`]);if(""===r.trim())return`${e}=${t}`}catch{}(0,rc.warning)(`Failed to install ${e} ${t} via apt, trying without version`)}return e}function el(e){q(e,"nala"!==e?["update","-y"]:["update"])}async function ec(e){q(e,["install","--fix-broken","-y","software-properties-common","apt-utils","ca-certificates","gnupg"]);let t=[ed(["3B4FE6ACC0B21F32","40976EAF437D05B5"],"setup-cpp-ubuntu-archive.gpg"),ed(["1E9377A2BA9EF27F"],"launchpad-toolchain.gpg")];"nala"===e&&t.push(ee("LANG","C.UTF-8"),ee("LC_ALL","C.UTF-8")),await Promise.all(t)}function eu(){q("gpg",["-k"])}async function ed(e,t,r="keyserver.ubuntu.com"){let n="/etc/apt/trusted.gpg.d/"+t;return await (0,iP.pathExists)(n)||(eu(),await Promise.all(e.map(async e=>{await V("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+n,"--keyserver",r,"--recv-keys",e]),await V("chmod",["644",n])}))),n}async function ep(e,t){let r="/etc/apt/trusted.gpg.d/"+e;return await (0,iP.pathExists)(r)||(eu(),await es([{name:"curl"}],void 0),q("bash",["-c",`curl -s ${t} | gpg --no-default-keyring --keyring gnupg-ring:${r} --import`]),q("chmod",["644",r])),r}async function ef(e,t){return rl.GITHUB_ACTIONS?V("update-alternatives",["--install","/usr/bin/"+e,e,t,"40"]):(await ei(),lx(lp,`
if [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${e} ${e} ${t} 40; fi
`))}async function em(e,r,n){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeof t)return{binDir:t};let i=d(iA).sync("brew",{nothrow:!0});if(null!==i)return{binDir:t=(0,n$.dirname)(i)};let o=d(of).join((0,op.tmpdir)(),"setup-cpp","brew");await (0,iU.mkdirP)(o),Q("curl",["-LJO","https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh"],{cwd:o});let s=(0,of.join)(o,"install.sh");if("linux"===process.platform){let e=(0,om.readFileSync)(s,"utf-8");e.replace("#!/bin/bash","")}return Q("/bin/bash",[s],{stdio:"inherit",env:{NONINTERACTIVE:"1"}}),t=eh(),await et(t),{binDir:t}}function eh(){return"linux"===process.platform?"/home/linuxbrew/.linuxbrew/bin/":"/usr/local/bin/"}async function eg(e,t,r=[]){(0,nN.info)(`Installing ${e} ${null!=t?t:""} via brew`),lI&&null!==d(iA).sync("brew",{nothrow:!0})||(await em("","",process.arch),lI=!0);let n=eh();return Q((0,n$.join)(n,"brew"),["install",void 0!==t&&""!==t?`${e}@${t}`:e,...r],{stdio:"inherit"}),{binDir:n}}async function ev(e,t,n){var i;if("win32"!==process.platform)return;if("string"==typeof r)return{binDir:r};let o=d(iA).sync("choco",{nothrow:!0});if(null!==o)return{binDir:r=(0,n$.dirname)(o)};let s="powershell.exe",a=d(iA).sync(`${process.env.SystemRoot}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`,{nothrow:!0});null!==a&&(s=a),Q(s,["-NoProfile","-InputFormat","None","-ExecutionPolicy","Bypass","-Command","[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))"],{stdio:"inherit"});let l=`${process.env.ALLUSERSPROFILE}\\chocolatey\\bin`;await et(l);let c=d(iA).sync("choco",{nothrow:!0});if(r=null!==c?(0,n$.dirname)(c):`${null!==(i=process.env.ChocolateyInstall)&&void 0!==i?i:"C:/ProgramData/chocolatey"}/bin`,await (0,iP.pathExists)(r))return{binDir:r}}async function eE(e,t,r=[]){var n;(0,nN.info)(`Installing ${e} ${null!=t?t:""} via chocolatey`),lO&&null!==d(iA).sync("choco",{nothrow:!0})||(await ev("","",process.arch),lO=!0);let i=process.env.PATH,o={...process.env};if(delete o.TMP,delete o.TEMP,delete o.Path,o.PATH=i,void 0!==t&&""!==t)Q("choco",["install","-y",e,"--version="+t,...r],{env:o,extendEnv:!1,stdio:"inherit"});else try{Q("choco",["install","-y",e,...r],{env:o,extendEnv:!1,stdio:"inherit"})}catch(t){if(t.message.includes("exit code 3010"))(0,rc.notice)(`${e} might require a reboot for the completion of the installation.`);else throw t}let s=`${null!==(n=process.env.ChocolateyInstall)&&void 0!==n?n:"C:/ProgramData/chocolatey"}/bin`;return await et(s),{binDir:s}}function ey(){return"linux"===process.platform&&(void 0===a&&(a=null!==d(iA).sync("pacman",{nothrow:!0})),a)}function ew(){return"linux"===process.platform&&(void 0===l&&(l=null!==d(iA).sync("dnf",{nothrow:!0})),l)}function ex(e,t){if((0,rc.info)(`Installing ${e} ${null!=t?t:""} via dnf`),void 0!==t&&""!==t)try{q("dnf",["-y","install",`${e}-${t}`])}catch(t){(0,rc.warning)(`${t.toString()}
Installing the default version available via dnf`),q("dnf",["-y","install",e])}else q("dnf",["-y","install",e]);return{binDir:"/usr/bin/"}}function eb(){return"linux"===process.platform&&(void 0===c&&(c=null!==d(iA).sync("apt-get",{nothrow:!0})),c)}async function eS(e,t,r){switch(process.platform){case"win32":return eE("bazelisk",e);case"darwin":return eg("bazelisk",e);case"linux":if(ey())throw Error("installing bazel on Arch linux is not supported yet");if(ew())return ex("dnf-plugins-core",void 0),q("dnf",["copr","enable","vbatts/bazel"]),ex("bazel4",void 0);if(eb()){let t=await ep("bazel-archive-keyring.gpg","https://bazel.build/bazel-release.pub.gpg");return q("bash",["-c",`echo "deb [arch=amd64 signed-by=${t}] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list`]),es([{name:"bazel",version:e}],!0)}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}}async function eI(e,t,r){(0,rc.info)(`Installing ${e} ${null!=t?t:""} via pacman`);let n="pacman";lR||"yay"===r||(q(n,["-Sy","--noconfirm"]),lR=!0),lT||(q(n,["-S","--noconfirm","base-devel"]),lT=!0);let i=e=>q(null!=r?r:n,["-S","--noconfirm",e]);if(void 0!==t&&""!==t){let r=await eO(n,e);if(r.includes(t))try{i(`${e}=${t}`)}catch{i(`${e}${t}`)}else(0,rc.info)(`Failed to install ${e} ${t} via pacman, trying without version`),i(e)}else i(e);return{binDir:"/usr/bin/"}}async function eO(e,t){let r=[];try{let{stdout:n}=await Y(e,["-Si",t]);for(let e of n.matchAll(lC))r.push(e[1])}catch(e){(0,rc.warning)(`Failed to get available versions for ${t}: ${e}`)}return r}function eR(e,t){let r=[];t=t||l$.arch();let n=lL.join(eN(),e);if(lA.existsSync(n)){let e=lA.readdirSync(n);for(let i of e)if(eP(i)){let e=lL.join(n,i,t||"");lA.existsSync(e)&&lA.existsSync(`${e}.complete`)&&r.push(i)}}return r}function eT(e){return iH(this,void 0,void 0,*()=>(e||(e=lL.join(e$(),lM.default())),yield lP.mkdirP(e),e))}function eC(e,t,r){return iH(this,void 0,void 0,*()=>{let n=lL.join(eN(),e,lk.clean(t)||t,r||"");l_.debug("destination "+n);let i=`${n}.complete`;return yield lP.rmRF(n),yield lP.rmRF(i),yield lP.mkdirP(n),n})}function e_(e,t,r){let n=lL.join(eN(),e,lk.clean(t)||t,r||""),i=`${n}.complete`;lA.writeFileSync(i,""),l_.debug("finished caching tool")}function eP(e){let t=lk.clean(e)||"";l_.debug("isExplicit: "+t);let r=null!=lk.valid(t);return l_.debug("explicit? "+r),r}function eA(e,t){let r="";l_.debug(`evaluating ${e.length} versions`),e=e.sort((e,t)=>lk.gt(e,t)?1:-1);for(let n=e.length-1;n>=0;n--){let i=e[n],o=lk.satisfies(i,t);if(o){r=i;break}}return r?l_.debug("matched: "+r):l_.debug("match not found"),r}function eN(){let e=process.env.RUNNER_TOOL_CACHE||"";return tQ.ok(e,"Expected RUNNER_TOOL_CACHE to be defined"),e}function e$(){let e=process.env.RUNNER_TEMP||"";return tQ.ok(e,"Expected RUNNER_TEMP to be defined"),e}function eL(e,t){let r=ri[e];return void 0!==r?r:t}function eD(e,t){if(!e||!t)throw Error("retry-as-promised must be passed a callback and a options set");t="number"==typeof t?{max:t}:t;let r={$current:"$current"in 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 i,o,s;r.timeout&&(i=setTimeout(()=>{o&&clearTimeout(o),n(new lq(r.name+" timed out",s))},r.timeout)),Promise.resolve(e({current:r.$current})).then(t).then(()=>{i&&clearTimeout(i),o&&clearTimeout(o)}).catch(a=>{i&&clearTimeout(i),o&&clearTimeout(o),s=a,r.report&&r.report(a&&a.toString()||a,r,a);var l=r.$current<r.max;if(!l||!(l=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.toString()||e===t.message||e instanceof RegExp&&(e.test(t.message)||e.test(t.toString()))})(e,a))))return n
setup-cpp [options]
setup-cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true
Install all the tools required for building and testing C++/C projects.
--architecture the cpu architecture to install the tools for. By default it uses the current CPU architecture.
--compiler the <compiler> to install.
You can specify the version instead of specifying just the name e.g: --compiler 'llvm-13.0.0'
--$tool_name pass "true" or pass the <version> you would like to install for this tool. e.g. --conan true or --conan "1.42.1"
All the available tools:
`),console.table({"compiler and analyzer":{tools:"--llvm, --gcc, --msvc, --vcvarsall, --cppcheck, --clangtidy, --clangformat"},"build system":{tools:"--cmake, --ninja, --meson, --make, --task, --bazel"},"package manager":{tools:"--vcpkg, --conan, --choco, --brew, --nala"},cache:{tools:"--cppcache, --sccache"},documentation:{tools:"--doxygen, --graphviz"},coverage:{tools:"--gcovr, --opencppcoverage, --kcov"},other:{tools:"--python, --powershell, --sevenzip"}},["tools"]));let a=null!==(t=s.architecture)&&void 0!==t?t:process.arch,l=null!==(r=process.env.SETUP_CPP_DIR)&&void 0!==r?r:T(""),c=[],u=[],p=rp.create({autoloadLocales:!0});rp.addLocale(d(rf)),ru.addLocale(d(rd));let f=await tb();if(!((e,t)=>{let r=t.filter(t=>void 0!==e[t]),n=r.filter(t=>!eJ(e[t],t)),i=n.length>=1?e[n[0]]:"true";return!n.some(t=>e[t]!==i)&&(r.forEach(t=>{e[t]=i}),!0)})(s,["llvm","clangtidy","clangformat"]))return(0,rc.error)("The same version must be used for llvm, clangformat and clangtidy"),1;ey()&&"string"==typeof s.cppcheck&&"string"==typeof s.gcovr&&((0,rc.info)("installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux"),await eI("python-pygments"));let m=!1;for(let e of cl){let t=s[e];void 0!==t&&(n=Date.now(),m=await tV(e,t,f,a,l,c,u),i=Date.now(),(0,rc.info)("took "+(p.format(n,i)||"0 seconds")))}let h=s.compiler;if(void 0!==h){let e=Date.now();await tW(h,f,l,a,c,m,u);let t=Date.now();(0,rc.info)("took "+(p.format(e,t)||"0 seconds"))}if(await eo(),0===c.length&&0===u.length)return(0,rc.warning)("setup-cpp was called without any arguments. Nothing to do."),0;if(c.forEach(e=>(0,rc.success)(e)),u.forEach(e=>(0,rc.error)(e)),(0,rc.info)("setup-cpp finished"),!rl.GITHUB_ACTIONS)switch(process.platform){case"win32":(0,rc.warning)("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":(0,rc.warning)("Run `source ~/.cpprc` or restart your shell to update the environment.")}return await o,0===u.length?0:1}"use strict";var tK,tY,tQ,tJ,tZ,t0,t1,t2,t3,t4,t6,t8,t5,t9,t7,re,rt,rr,rn,ri,ro,rs,ra,rl,rc,ru,rd,rp,rf,rm,rh,rg,rv,rE,ry,rw,rx,rb,rS,rI,rO,rR,rT,rC,r_,rP,rA,rN,r$,rL,rD,rk,rU,rj,rM,rG,rF,rB,rH,rq,rV,rX,rW,rz,rK,rY,rQ,rJ,rZ,r0,r1,r2,r3,r4,r6,r8,r5,r9,r7,ne,nt,nr,nn,ni,no,ns,na,nl,nc,nu,nd,np,nf,nm,nh,ng,nv,nE,ny,nw,nx,nb,nS,nI,nO,nR,nT,nC,n_,nP,nA,nN,n$,nL,nD,nk,nU,nj,nM,nG,nF,nB,nH,nq,nV,nX,nW,nz,nK,nY,nQ,nJ,nZ,n0,n1,n2,n3,n4,n6,n8,n5,n9,n7,ie,it,ir,ii,io,is,ia,il,ic,iu,id,ip,im,ih,ig,iv,iE,iy,iw,ix,ib,iS,iI,iO,iR,iT,iC,i_,iP,iA,iN,i$,iL,iD,ik,iU,ij,iM,iG,iF,iB,iH,iq,iV,iX,iW,iz,iK,iY,iQ,iJ,iZ,i0,i1,i2,i3,i4,i6,i8,i5,i9,i7,oe,ot,or,on,oi,oo,os,oa,ol,oc,ou,od,op=require("os"),of=require("path"),om=require("fs"),oh=require("crypto"),og=require("http"),ov=require("https");require("net"),tK=require("tls"),tY=require("events"),tQ=require("assert"),tJ=require("util"),tZ=require("node:fs"),t0=require("child_process"),t1=require("string_decoder"),t2=require("timers"),t3=require("buffer"),t4=require("stream"),t6=require("process"),t8=require("node:buffer"),t5=require("node:path"),t9=require("node:child_process"),t7=require("node:process"),re=require("node:url"),rt=require("node:os"),rr=require("node:util"),rn=require("url"),ri="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},ro={},rs={},null==(ra=ri.parcelRequire810d)&&((ra=e=>{if(e in ro)return ro[e].exports;if(e in rs){var t=rs[e];delete rs[e];var r={id:e,exports:{}};return ro[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)=>{rs[e]=t},ri.parcelRequire810d=ra),ra.register("cLprm",(e,t)=>{var r;function n(e){return"string"==typeof e?!!i[e]:"env"in e?i[e.env]&&i[e.env].includes(e.includes):"any"in e?e.any.some(e=>!!i[e]):Object.keys(e).every(t=>i[t]===e[t])}"use strict";r=ra("iQYeD");let i=process.env;Object.defineProperty(e.exports,"_vendors",{value:r.map(e=>e.constant)}),e.exports.name=null,e.exports.isPR=null,r.forEach(t=>{let r=Array.isArray(t.env
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)},e.exports.setOutput=(e,t)=>{process.stdout.write(E.EOL),s.issueCommand("set-output",{name:e},t)},e.exports.setCommandEcho=e=>{s.issue("echo",e?"on":"off")},e.exports.setFailed=e=>{process.exitCode=d.Failure,h(e)},e.exports.isDebug=()=>"1"===process.env.RUNNER_DEBUG,e.exports.debug=e=>{s.issueCommand("debug",{},e)},e.exports.error=h,e.exports.warning=(e,t={})=>{s.issueCommand("warning",l.toCommandProperties(t),e instanceof Error?e.toString():e)},e.exports.notice=(e,t={})=>{s.issueCommand("notice",l.toCommandProperties(t),e instanceof Error?e.toString():e)},e.exports.info=e=>{process.stdout.write(e+E.EOL)},e.exports.startGroup=g,e.exports.endGroup=v,e.exports.group=function(e,t){return o(this,void 0,void 0,*()=>{let r;g(e);try{r=yield t()}finally{v()}return r})},e.exports.saveState=(e,t)=>{s.issueCommand("save-state",{name:e},t)},e.exports.getState=e=>process.env["STATE_"+e]||"",e.exports.getIDToken=function(e){return o(this,void 0,void 0,*()=>yield u.OidcClient.getIDToken(e))},p=ra("1yBCw"),Object.defineProperty(e.exports,"summary",{enumerable:!0,get:()=>p.summary}),p=ra("1yBCw"),Object.defineProperty(e.exports,"markdownSummary",{enumerable:!0,get:()=>p.markdownSummary}),f=ra("1tHq1"),Object.defineProperty(e.exports,"toPosixPath",{enumerable:!0,get:()=>f.toPosixPath}),Object.defineProperty(e.exports,"toWin32Path",{enumerable:!0,get:()=>f.toWin32Path}),Object.defineProperty(e.exports,"toPlatformPath",{enumerable:!0,get:()=>f.toPlatformPath})}),ra.register("6mTwv",(e,t)=>{var r,n,i,o;function s(e,t,r){let n=new l(e,t,r);process.stdout.write(n.toString()+a.EOL)}"use strict";r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:()=>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}),i=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t}),Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issue=e.exports.issueCommand=void 0;let a=i(op);o=ra("4BVCZ"),e.exports.issueCommand=s,e.exports.issue=(e,t="")=>{s(e,{},t)};class l{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r}toString(){var e;let t="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){t+=" ";let e=!0;for(let r in this.properties)if(this.properties.hasOwnProperty(r)){let n=this.properties[r];n&&(e?e=!1:t+=",",t+=`${r}=${o.toCommandValue(n).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}return t+"::"+(e=this.message,o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A"))}}}),ra.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}:{}}),ra.register("bRVRZ",(e,t)=>{"use strict";var r,n,i,o;r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:()=>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}),i=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t}),Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issueCommand=void 0;let s=i(om),a=i(op);o=ra("4BVCZ"),e.exports.issueCommand=(e,t)
Error Code : ${e.statusCode}
Error Message: ${e.result.message}`)}),i=null===(t=n.result)||void 0===t?void 0:t.value;if(!i)throw Error("Response json body do not have ID Token field");return i})}static getIDToken(e){return r(this,void 0,void 0,*()=>{try{let t=s.getIDTokenUrl();if(e){let r=encodeURIComponent(e);t=`${t}&audience=${r}`}o.debug("ID token url is "+t);let r=yield s.getCall(t);return o.setSecret(r),r}catch(e){throw Error("Error message: "+e.message)}})}}e.exports.OidcClient=s}),ra.register("aPbbM",(e,t)=>{"use strict";var r,n,i,o,s,a,l;r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:()=>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}),i=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t}),o=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))((i,o)=>{function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(e=>{e(t)})).then(s,a)}l((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;let c=i(og),u=i(ov),d=i(ra("dG8Uc")),p=i(ra("j6C2A"));(e=>{e[e.OK=200]="OK",e[e.MultipleChoices=300]="MultipleChoices",e[e.MovedPermanently=301]="MovedPermanently",e[e.ResourceMoved=302]="ResourceMoved",e[e.SeeOther=303]="SeeOther",e[e.NotModified=304]="NotModified",e[e.UseProxy=305]="UseProxy",e[e.SwitchProxy=306]="SwitchProxy",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.PaymentRequired=402]="PaymentRequired",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.MethodNotAllowed=405]="MethodNotAllowed",e[e.NotAcceptable=406]="NotAcceptable",e[e.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",e[e.RequestTimeout=408]="RequestTimeout",e[e.Conflict=409]="Conflict",e[e.Gone=410]="Gone",e[e.TooManyRequests=429]="TooManyRequests",e[e.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"})(s=e.exports.HttpCodes||(e.exports.HttpCodes={})),(e=>{e.Accept="accept",e.ContentType="content-type"})(a=e.exports.Headers||(e.exports.Headers={})),(l=e.exports.MediaTypes||(e.exports.MediaTypes={})).ApplicationJson="application/json",e.exports.getProxyUrl=e=>{let t=d.getProxyUrl(new URL(e));return t?t.href:""};let f=[s.MovedPermanently,s.ResourceMoved,s.SeeOther,s.TemporaryRedirect,s.PermanentRedirect],m=[s.BadGateway,s.ServiceUnavailable,s.GatewayTimeout],h=["OPTIONS","GET","DELETE","HEAD"];class g extends Error{constructor(e,t){super(e),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,g.prototype)}}e.exports.HttpClientError=g;class v{constructor(e){this.message=e}readBody(){return o(this,void 0,void 0,function*(){return new Promise(e=>o(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.toString())})}))})}}e.exports.HttpClientResponse=v,e.exports.isHttps=e=>{let t=new URL(e);return"https:"===t.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,n
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)},e.exports.setOutput=(e,t)=>{let r=process.env.GITHUB_OUTPUT||"";if(r)return a.issueFileCommand("OUTPUT",a.prepareKeyValueMessage(e,t));process.stdout.write(v.EOL),s.issueCommand("set-output",{name:e},l.toCommandValue(t))},e.exports.setCommandEcho=e=>{s.issue("echo",e?"on":"off")},e.exports.setFailed=e=>{process.exitCode=u.Failure,m(e)},e.exports.isDebug=()=>"1"===process.env.RUNNER_DEBUG,e.exports.debug=e=>{s.issueCommand("debug",{},e)},e.exports.error=m,e.exports.warning=(e,t={})=>{s.issueCommand("warning",l.toCommandProperties(t),e instanceof Error?e.toString():e)},e.exports.notice=(e,t={})=>{s.issueCommand("notice",l.toCommandProperties(t),e instanceof Error?e.toString():e)},e.exports.info=e=>{process.stdout.write(e+v.EOL)},e.exports.startGroup=h,e.exports.endGroup=g,e.exports.group=function(e,t){return o(this,void 0,void 0,*()=>{let r;h(e);try{r=yield t()}finally{g()}return r})},e.exports.saveState=(e,t)=>{let r=process.env.GITHUB_STATE||"";if(r)return a.issueFileCommand("STATE",a.prepareKeyValueMessage(e,t));s.issueCommand("save-state",{name:e},l.toCommandValue(t))},e.exports.getState=e=>process.env["STATE_"+e]||"",e.exports.getIDToken=function(e){return o(this,void 0,void 0,*()=>yield c.OidcClient.getIDToken(e))},d=ra("a9gnA"),Object.defineProperty(e.exports,"summary",{enumerable:!0,get:()=>d.summary}),d=ra("a9gnA"),Object.defineProperty(e.exports,"markdownSummary",{enumerable:!0,get:()=>d.markdownSummary}),p=ra("3zXsD"),Object.defineProperty(e.exports,"toPosixPath",{enumerable:!0,get:()=>p.toPosixPath}),Object.defineProperty(e.exports,"toWin32Path",{enumerable:!0,get:()=>p.toWin32Path}),Object.defineProperty(e.exports,"toPlatformPath",{enumerable:!0,get:()=>p.toPlatformPath})}),ra.register("lxvYw",(e,t)=>{var r,n,i,o;function s(e,t,r){let n=new l(e,t,r);process.stdout.write(n.toString()+a.EOL)}"use strict";r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:()=>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}),i=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t}),Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issue=e.exports.issueCommand=void 0;let a=i(op);o=ra("3GPt4"),e.exports.issueCommand=s,e.exports.issue=(e,t="")=>{s(e,{},t)};class l{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r}toString(){var e;let t="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){t+=" ";let e=!0;for(let r in this.properties)if(this.properties.hasOwnProperty(r)){let n=this.properties[r];n&&(e?e=!1:t+=",",t+=`${r}=${o.toCommandValue(n).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}return t+"::"+(e=this.message,o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A"))}}}),ra.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}:{}}),ra.register("izMKk",(e,t)=>{"use strict";var r,n,i,o,s;r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:()=>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}),i=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};
Error Code : ${e.statusCode}
Error Message: ${e.result.message}`)}),i=null===(t=n.result)||void 0===t?void 0:t.value;if(!i)throw Error("Response json body do not have ID Token field");return i})}static getIDToken(e){return r(this,void 0,void 0,*()=>{try{let t=s.getIDTokenUrl();if(e){let r=encodeURIComponent(e);t=`${t}&audience=${r}`}o.debug("ID token url is "+t);let r=yield s.getCall(t);return o.setSecret(r),r}catch(e){throw Error("Error message: "+e.message)}})}}e.exports.OidcClient=s}),ra.register("a9gnA",(e,t)=>{"use strict";var r=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))((i,o)=>{function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(e=>{e(t)})).then(s,a)}l((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;let{access:n,appendFile:i,writeFile:o}=om.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";let s=new class{constructor(){this._buffer=""}filePath(){return r(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let 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,om.constants.R_OK|om.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={}){let 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*(){let t=!!(null==e?void 0:e.overwrite),r=yield this.filePath();return yield(t?o:i)(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(op.EOL)}addCodeBlock(e,t){let r=Object.assign({},t&&{lang:t}),n=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(n).addEOL()}addList(e,t=!1){let r=e.map(e=>this.wrap("li",e)).join(""),n=this.wrap(t?"ol":"ul",r);return this.addRaw(n).addEOL()}addTable(e){let t=e.map(e=>{let t=e.map(e=>{if("string"==typeof e)return this.wrap("td",e);let{header:t,data:r,colspan:n,rowspan:i}=e,o=Object.assign(Object.assign({},n&&{colspan:n}),i&&{rowspan:i});return this.wrap(t?"th":"td",r,o)}).join("");return this.wrap("tr",t)}).join(""),r=this.wrap("table",t);return this.addRaw(r).addEOL()}addDetails(e,t){let r=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(r).addEOL()}addImage(e,t,r){let{width:n,height:i}=r||{},o=Object.assign(Object.assign({},n&&{width:n}),i&&{height:i}),s=this.wrap("img",null,Object.assign({src:e,alt:t},o));return this.addRaw(s).addEOL()}addHeading(e,t){let r="h"+t,n=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",i=this.wrap(n,e);return this.addRaw(i).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){let r=Object.assign({},t&&{cite:t}),n=this.wrap("blockquote",e,r);return this.addRaw(n).addEOL()}addLink(e,t){let r=this.wrap("a",e,{href:t});return this.addRaw(r).addEOL()}};e.exports.markdownSummary=s,e.exports.summary=s}),ra.register("3zXsD",(e,t)=>{var r,n,i;"use strict";r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:()=>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:!
${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=o,n.signal=i,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=!!l,n.isCanceled=c,n.killed=u&&!l,n},rH={};const oU=["stdin","stdout","stderr"],oj=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return oU.map(t=>e[t]);if(oU.some(t=>void 0!==e[t]))throw Error("It's not possible to provide `stdio` in combination with one of "+oU.map(e=>`\`${e}\``).join(", "));if("string"==typeof t)return t;if(!Array.isArray(t))throw TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);return Array.from({length:Math.max(t.length,oU.length)},(e,r)=>t[r])};(rH=oj).node=e=>{let t=oj(e);return"ipc"===t?"ipc":void 0===t||"string"==typeof t?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"]},rV={},rX=rh.process;const oM=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(oM(rX)){var oG,oF=tQ,oB=rE("4c98W"),oH=/^win/i.test(rX.platform),oq=tY;"function"!=typeof oq&&(oq=oq.EventEmitter),rX.__signal_exit_emitter__?oG=rX.__signal_exit_emitter__:((oG=rX.__signal_exit_emitter__=new oq).count=0,oG.emitted={}),oG.infinite||(oG.setMaxListeners(1/0),oG.infinite=!0);var oV=()=>{oz&&oM(rh.process)&&(oz=!1,oB.forEach(e=>{try{rX.removeListener(e,oW[e])}catch(e){}}),rX.emit=oJ,rX.reallyExit=oY,oG.count-=1)};(rV=(e,t)=>{if(!oM(rh.process))return()=>{};oF.equal(typeof e,"function","a callback must be provided for exit handler"),!1===oz&&oK();var r="exit";return t&&t.alwaysLast&&(r="afterexit"),oG.on(r,e),()=>{oG.removeListener(r,e),0===oG.listeners("exit").length&&0===oG.listeners("afterexit").length&&oV()}}).unload=oV;var oX=(e,t,r)=>{oG.emitted[e]||(oG.emitted[e]=!0,oG.emit(e,t,r))},oW={};oB.forEach(e=>{oW[e]=()=>{oM(rh.process)&&rX.listeners(e).length===oG.count&&(oV(),oX("exit",null,e),oX("afterexit",null,e),oH&&"SIGHUP"===e&&(e="SIGINT"),rX.kill(rX.pid,e))}}),rV.signals=()=>oB;var oz=!1,oK=()=>{!oz&&oM(rh.process)&&(oz=!0,oG.count+=1,oB=oB.filter(e=>{try{return rX.on(e,oW[e]),!0}catch(e){return!1}}),rX.emit=oZ,rX.reallyExit=oQ)};rV.load=oK;var oY=rX.reallyExit,oQ=e=>{oM(rh.process)&&(rX.exitCode=e||0,oX("exit",rX.exitCode,null),oX("afterexit",rX.exitCode,null),oY.call(rX,rX.exitCode))},oJ=rX.emit,oZ=function(e,t){if("exit"===e&&oM(rh.process)){void 0!==t&&(rX.exitCode=t);var r=oJ.apply(this,arguments);return oX("exit",rX.exitCode,null),oX("afterexit",rX.exitCode,null),r}return oJ.apply(this,arguments)}}else rV=()=>()=>{};const o0=e=>e===op.constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase();rz=(rq={spawnedKill(e,t="SIGTERM",r={}){let n=e(t);return((e,t,r,n)=>{if(!((e,{forceKillAfterTimeout:t},r)=>o0(e)&&!1!==t&&r)(t,r,n))return;let i=(({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||0>e)throw TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e})(r),o=setTimeout(()=>{e("SIGKILL")},i);o.unref&&o.unref()})(e,t,r,n),n},spawnedCancel(e,t){e.kill()&&(t.isCanceled=!0)},setupTimeout(e,{timeout:t,killSignal:r="SIGTERM"},n){let i;if(0===t||void 0===t)return n;let o=new Promise((n,o)=>{i=setTimeout(()=>{e.kill(r),o(Object.assign(Error("Timed out"),{timedOut:!0,signal:r}))},t)}),s=n.finally(()=>{clearTimeout(i)});return Promise.race([o,s])},validateTimeout({timeout:e}){if(void 0!==e&&(!Number.isFinite(e)||0>e))throw 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;let i=rV(()=>{e.kill()});return n.finally(()=>{i()})}}).spawnedKill,rK=rq.spawnedCancel,rY=rq.setupTimeout,rQ=rq.validateTimeout,rJ=rq.setExitHandler,rZ={};const o1=e=>null!==e&&"object"==typeof e&&"function"==
${n.message}`:h,E=[v,t,e].filter(Boolean).join("\n");return g?(n.originalMessage=n.message,n.message=E):n=Error(E),n.shortMessage=v,n.command=s,n.escapedCommand=a,n.exitCode=o,n.signal=i,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=!!l,n.isCanceled=c,n.killed=u&&!l,n},n4={};const s_=["stdin","stdout","stderr"],sP=e=>s_.some(t=>void 0!==e[t]),sA=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return s_.map(t=>e[t]);if(sP(e))throw Error("It's not possible to provide `stdio` in combination with one of "+s_.map(e=>`\`${e}\``).join(", "));if("string"==typeof t)return t;if(!Array.isArray(t))throw TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);let r=Math.max(t.length,s_.length);return Array.from({length:r},(e,r)=>t[r])};(n4=sA).node=e=>{let t=sA(e);return"ipc"===t?"ipc":void 0===t||"string"==typeof t?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"]},n6={},n8={},n5=ri.process;const sN=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(sN(n5)){var s$,sL=tQ,sD=ra("2dWxz"),sk=/^win/i.test(n5.platform),sU=tY;"function"!=typeof sU&&(sU=sU.EventEmitter),n5.__signal_exit_emitter__?s$=n5.__signal_exit_emitter__:((s$=n5.__signal_exit_emitter__=new sU).count=0,s$.emitted={}),s$.infinite||(s$.setMaxListeners(1/0),s$.infinite=!0);var sj=()=>{sF&&sN(ri.process)&&(sF=!1,sD.forEach(e=>{try{n5.removeListener(e,sG[e])}catch(e){}}),n5.emit=sV,n5.reallyExit=sH,s$.count-=1)};(n8=(e,t)=>{if(!sN(ri.process))return()=>{};sL.equal(typeof e,"function","a callback must be provided for exit handler"),!1===sF&&sB();var r="exit";return t&&t.alwaysLast&&(r="afterexit"),s$.on(r,e),()=>{s$.removeListener(r,e),0===s$.listeners("exit").length&&0===s$.listeners("afterexit").length&&sj()}}).unload=sj;var sM=(e,t,r)=>{s$.emitted[e]||(s$.emitted[e]=!0,s$.emit(e,t,r))},sG={};sD.forEach(e=>{sG[e]=()=>{sN(ri.process)&&n5.listeners(e).length===s$.count&&(sj(),sM("exit",null,e),sM("afterexit",null,e),sk&&"SIGHUP"===e&&(e="SIGINT"),n5.kill(n5.pid,e))}}),n8.signals=()=>sD;var sF=!1,sB=()=>{!sF&&sN(ri.process)&&(sF=!0,s$.count+=1,sD=sD.filter(e=>{try{return n5.on(e,sG[e]),!0}catch(e){return!1}}),n5.emit=sX,n5.reallyExit=sq)};n8.load=sB;var sH=n5.reallyExit,sq=e=>{sN(ri.process)&&(n5.exitCode=e||0,sM("exit",n5.exitCode,null),sM("afterexit",n5.exitCode,null),sH.call(n5,n5.exitCode))},sV=n5.emit,sX=function(e,t){if(!("exit"===e&&sN(ri.process)))return sV.apply(this,arguments);void 0!==t&&(n5.exitCode=t);var r=sV.apply(this,arguments);return sM("exit",n5.exitCode,null),sM("afterexit",n5.exitCode,null),r}}else n8=()=>()=>{};"use strict";"use strict";const sW=(e,t,r,n)=>{if(!sz(t,r,n))return;let i=sY(r),o=setTimeout(()=>{e("SIGKILL")},i);o.unref&&o.unref()},sz=(e,{forceKillAfterTimeout:t},r)=>sK(e)&&!1!==t&&r,sK=e=>e===op.constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),sY=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||e<0)throw TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},sQ=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}))},sJ=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let i=n8(()=>{e.kill()});return n.finally(()=>{i()})};"use strict";"use strict";n9=(n6={spawnedKill(e,t="SIGTERM",r={}){let n=e(t);return sW(e,t,r,n),n},spawnedCancel(e,t){let r=e.kill();r&&(t.isCanceled=!0)},setupTimeout(e,{timeout:t,killSignal:r="SIGTERM"},n){let i;if(0===t||void 0===t)return n;let o=new Promise((n,o)=>{i=setTimeout(()=>{sQ(e,r,o)},t)}),s=n.finally(()=>{clearTimeout(i)});return Promise.race([o,s])},validateTimeout({timeout:e}){if(void 0!==e&&(!Number.isFinite(e)||e<0))throw TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},setExitHandler:sJ}).spawnedKill,n7=n6.spa
${t}`,ac=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),au=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),ad=(e,t,r)=>{let n=""===r?"":`with ${r.trim()}() `,i=al.bind(null,n,t.toString());Object.defineProperty(i,"name",au),Object.defineProperty(e,"toString",{...ac,value:i})},ap=new WeakMap,af=(e,t={})=>{let r;if("function"!=typeof e)throw TypeError("Expected a function");let n=0,i=e.displayName||e.name||"<anonymous>",o=function(...s){if(ap.set(o,++n),1===n)r=e.apply(this,s),e=null;else if(!0===t.throw)throw Error(`Function \`${i}\` can only be called once`);return r};return((e,t,{ignoreNonConfigurable:r=!1}={})=>{let{name:n}=e;for(let n of Reflect.ownKeys(t))ao(e,t,n,r);return aa(e,t),ad(e,t,n)})(o,e),ap.set(o,n),o};af.callCount=e=>{if(!ap.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return ap.get(e)},iT=af;const am=()=>Array.from({length:av-ag+1},ah),ah=(e,t)=>({name:"SIGRT"+(t+1),number:ag+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),ag=34,av=64,aE=[{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:"termin
${n.message}`:h,E=[v,t,e].filter(Boolean).join("\n");return g?(n.originalMessage=n.message,n.message=E):n=Error(E),n.shortMessage=v,n.command=s,n.escapedCommand=a,n.exitCode=o,n.signal=i,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=!!l,n.isCanceled=c,n.killed=u&&!l,n},aT=["stdin","stdout","stderr"],aC=e=>aT.some(t=>void 0!==e[t]),a_=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return aT.map(t=>e[t]);if(aC(e))throw Error("It's not possible to provide `stdio` in combination with one of "+aT.map(e=>`\`${e}\``).join(", "));if("string"==typeof t)return t;if(!Array.isArray(t))throw TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);let r=Math.max(t.length,aT.length);return Array.from({length:r},(e,r)=>t[r])},aP=(e,t="SIGTERM",r={})=>{let n=e(t);return aA(e,t,r,n),n},aA=(e,t,r,n)=>{if(!aN(t,r,n))return;let i=aL(r),o=setTimeout(()=>{e("SIGKILL")},i);o.unref&&o.unref()},aN=(e,{forceKillAfterTimeout:t},r)=>a$(e)&&!1!==t&&r,a$=e=>e===d(rt).constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),aL=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||e<0)throw TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},aD=(e,t)=>{let r=e.kill();r&&(t.isCanceled=!0)},ak=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}))},aU=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{let i;if(0===t||void 0===t)return n;let o=new Promise((n,o)=>{i=setTimeout(()=>{ak(e,r,o)},t)}),s=n.finally(()=>{clearTimeout(i)});return Promise.race([o,s])},aj=({timeout:e})=>{if(void 0!==e&&(!Number.isFinite(e)||e<0))throw TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},aM=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let i=d(n8)(()=>{e.kill()});return n.finally(()=>{i()})},aG=e=>e instanceof t9.ChildProcess&&"function"==typeof e.then,aF=(e,t,r)=>{if("string"==typeof r)return e[t].pipe((0,tZ.createWriteStream)(r)),e;if(K(r))return e[t].pipe(r),e;if(!aG(r))throw TypeError("The second argument must be a string, a stream or an Execa child process.");if(!K(r.stdin))throw TypeError("The target child process's stdin must be available.");return e[t].pipe(r.stdin),r},aB=e=>{null!==e.stdout&&(e.pipeStdout=aF.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=aF.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=aF.bind(void 0,e,"all"))},aH=e=>{if(void 0!==e)throw TypeError("The `input` and `inputFile` options cannot be both set.")},aq=({input:e,inputFile:t})=>"string"!=typeof t?e:(aH(e),(0,tZ.readFileSync)(t)),aV=e=>{let t=aq(e);if(z(t))throw TypeError("The `input` option cannot be a stream in sync mode");return t},aX=({input:e,inputFile:t})=>"string"!=typeof t?e:(aH(e),(0,tZ.createReadStream)(t)),aW=(e,t)=>{let r=aX(t);void 0!==r&&(z(r)?r.pipe(e.stdin):e.stdin.end(r))},az=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=d(id)();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r},aK=async(e,t)=>{if(e&&void 0!==t){e.destroy();try{return await t}catch(e){return e.bufferedData}}},aY=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?d(is)(e,{encoding:t,maxBuffer:n}):d(is).buffer(e,{maxBuffer:n})},aQ=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:o},s)=>{let a=aY(e,{encoding:n,buffer:i,maxBuffer:o}),l=aY(t,{encoding:n,buffer:i,maxBuffer:o}),c=aY(r,{encoding:n,buffer:i,maxBuffer:2*o});try{return await Promise.all([s,a,l,c])}catch(n){return Promise.all([{error:n,signal:n.signal,timedOut:n.timedOut},aK(e,a),aK(t,l),aK(r,c)])}},aJ=(async()=>{})().constructor.prototype,aZ=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(aJ,e)]),a0=(e,t)=>{for(let[r,n]of aZ){let i="function"==typeof t?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i})}},a1=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("err
`)},li=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let o=t?{...d(t7).env,...e}:e;return r?(({env:e=d(t7).env,...t}={})=>{e={...e};let r=W({env:e});return t.path=e[r],e[r]=((e={})=>{let t;let{cwd:r=d(t7).cwd(),path:n=d(t7).env[W()],execPath:i=d(t7).execPath}=e,o=r instanceof URL?d(re).fileURLToPath(r):r,s=d(t5).resolve(o),a=[];for(;t!==s;)a.push(d(t5).join(s,"node_modules/.bin")),t=s,s=d(t5).resolve(s,"..");return a.push(d(t5).resolve(o,i,"..")),[...a,n].join(d(t5).delimiter)})(t),e})({env:o,cwd:n,execPath:i}):o},lo=(e,t,r={})=>{let n=d(nj)._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||d(t7).cwd(),execPath:d(t7).execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:le,...r}).env=li(r),r.stdio=a_(r),"win32"===d(t7).platform&&"cmd"===d(t5).basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n}},ls=(e,t,r)=>"string"==typeof t||(0,t8.Buffer).isBuffer(t)?e.stripFinalNewline?(e=>{let t="string"==typeof e?"\n":"\n".charCodeAt(),r="string"==typeof e?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,-1)),e[e.length-1]===r&&(e=e.slice(0,-1)),e})(t):t:void 0===r?void 0:"",la=({input:e,inputFile:t,stdio:r})=>void 0===e&&void 0===t&&void 0===r?{stdin:"inherit"}:{},ll=(e={})=>({preferLocal:!0,...la(e),...e});!function e(t){function r(n,...i){if(!Array.isArray(n))return e({...t,...n});let[o,...s]=a7(n,i);return Y(o,s,ll(t))}return r.sync=(e,...r)=>{if(!Array.isArray(e))throw TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[n,...i]=a7(e,r);return Q(n,i,ll(t))},r}(),iC={};const lc="win32"!==op.platform(),lu=op.release(),ld=(e="",t="")=>/1\d+\.\d+/.test(e)&&+t>=17134.1184;iC=e=>lc?e.replace(/(\s+)/g,"\\$1"):ld(.../(\d+\.\d+)\.(\d+)/.exec(lu).splice(1))?e:e.replace(/(\s+)/g,"%20"),(()=>{var e,t;e=ra("eaZtc"),t=e=>e.split("").reverse().join(""),i_=(r,n,i)=>{var o;return(null==n&&(n="'"),null==i&&(i="\\"),"string"!=typeof r)?r:(o=RegExp("(["+e(n)+"])(?!"+e(i)+")","g"),t(t(r).replace(o,"$1"+i)))}}).call(i_={}),iP=ra("3WkGD");const lp=T(".cpprc");let lf=!1;iA={},iN=of.join,i$=of.delimiter,iL=of.sep,iD=of.posix;const lm="win32"===process.platform,lh=new RegExp(`[${iD.sep}${iL===iD.sep?"":iL}]`.replace(/(\\)/g,"\\$1")),lg=RegExp("^\\."+lh.source),lv=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),lE=(e,{path:t=process.env.PATH,pathExt:r=process.env.PATHEXT,delimiter:n=i$})=>{let i=e.match(lh)?[""]:[...lm?[process.cwd()]:[],...(t||"").split(n)];if(lm){let t=r||[".EXE",".CMD",".BAT",".COM"].join(n),o=t.split(n).reduce((e,t)=>(e.push(t),e.push(t.toLowerCase()),e),[]);return e.includes(".")&&""!==o[0]&&o.unshift(""),{pathEnv:i,pathExt:o,pathExtExe:t}}return{pathEnv:i,pathExt:[""]}},ly=(e,t)=>{let r=/^".*"$/.test(e)?e.slice(1,-1):e,n=!r&&lg.test(t)?t.slice(0,2):"";return n+iN(r,t)},lw=async(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=lE(e,t),o=[];for(let s of r){let r=ly(s,e);for(let e of n){let n=r+e,s=await nD(n,{pathExt:i,ignoreErrors:!0});if(s){if(!t.all)return n;o.push(n)}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw lv(e)};iA=lw,lw.sync=(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=lE(e,t),o=[];for(let s of r){let r=ly(s,e);for(let e of n){let n=r+e,s=nD.sync(n,{pathExt:i,ignoreErrors:!0});if(s){if(!t.all)return n;o.push(n)}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw lv(e)},iP=ra("3WkGD"),ik=ra("9O4vc"),rc=ra("hHq4F");const{appendFile:lx}=om.promises;let lb=!1,lS=!1;nN=ra("2heqc"),n$=ra("A8hFE"),n$=ra("A8hFE"),iU=ra("kSdX3");let lI=!1;iP=ra("3WkGD"),n$=ra("A8hFE"),nN=ra("2heqc"),rc=ra("hHq4F");let lO=!1;rc=ra("hHq4F"),rc=ra("hHq4F");let lR=!1,lT=!1;"use strict";const lC=/Version\s*:\s*(.*)/g;"use strict";ij={},iM=of.resolve(__dirname,"../../node_modules/.pnpm/@actions+tool-cache@2.0.1/node_modules/@actions/tool-cache/lib"),iG=ij&&ij.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:()=>t[r]})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),iF
//# sourceMappingURL=setup-cpp.js.map