#!/usr/bin/env node let e,t,r,n,i,o,s,a;function l(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0});}function c(e){return e&&e.__esModule?e.default:e;}function u(e,t,r){if("function"==typeof t&&(r=t,t={}),!r){if("function"!=typeof Promise)throw TypeError("callback not provided");return new Promise(function(r,n){u(e,t||{},function(e,t){e?n(e):r(t);});});}rO(e,t||{},function(e,n){e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,n=!1),r(e,n);});}function d(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=r$.sync(e.command,{path:n[rP({env:n})],pathExt:t?i_.delimiter:void 0});}catch(e){}finally{s&&process.chdir(i);}return r&&(r=i_.resolve(o?e.options.cwd:"",r)),r;}function p(e,t){return Object.assign(Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args});}function f(e,t){return ij&&1===e&&!t.file?p(t.original,"spawn"):null;}function h(e,t,r){let n=rT(e,t,r),i=t7.spawn(n.command,n.args,n.options);return rk.hookChildProcess(i,n),i;}async function m(e,t){if(!e)throw Error("Expected a stream");t={maxBuffer:1/0,...t};let{maxBuffer:r}=t,n=r5(t);return await new Promise((t,i)=>{let o=e=>{e&&n.getBufferedLength()<=r3.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),i(e);};(async()=>{try{await oh(e,n),t();}catch(e){o(e);}})(),n.on("data",()=>{n.getBufferedLength()>r&&o(new om());});}),n.getBufferedValue();}function g(){return(process.getuid?.()===0||!!process.env.CI)&&null!==c(r$).sync("sudo",{nothrow:!0});}function v(e,t=[],r={stdio:"inherit",shell:!0}){return g()?c(rC).commandSync("sudo "+[e,...t].map(e=>`'${e}'`).join(" "),r):c(rC).sync(e,t,r);}function y(e,t=[],r={stdio:"inherit",shell:!0}){return g()?c(rC).command("sudo "+[e,...t].map(e=>`'${e}'`).join(" "),r):c(rC)(e,t,r);}function w(e){return g()&&"string"==typeof process.env.SUDO_USER?"darwin"===process.platform?(0,i_.join)("/Users/",process.env.SUDO_USER,e):(0,i_.join)("/home/",process.env.SUDO_USER,e):c(rS)("~/"+e);}function x(e,t,r,n){return new(r||(r=Promise))(function(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(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});}function E(e,t){function r(r){return function(l){return function(r){if(n)throw TypeError("Generator is already executing.");for(;s&&(s=0,r[0]&&(a=0)),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]"PATH"===e.toUpperCase())||"Path";}function _(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe;}function O(e){return _(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState;}function C(e,t,r){let n;let i=sC(e,t,r),o=sg(e,t),s=sv(e,t);s_(s,i.options),o5(i.options);try{n=c(rs).spawn(i.file,i.args,i.options);}catch(r){let e=new(c(rs).ChildProcess)(),t=Promise.reject(oz({error:r,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return sp(e,t),e;}let a=sf(n),l=o6(n,i.options,a),u=o8(n,i.options,l),d={isCanceled:!1};n.kill=oQ.bind(null,n.kill.bind(n)),n.cancel=o4.bind(null,n,d);let p=async()=>{let[{error:e,exitCode:t,signal:r,timedOut:a},l,c,p]=await sc(n,i.options,u),f=sI(i.options,l),h=sI(i.options,c),m=sI(i.options,p);if(e||0!==t||null!==r){let l=oz({error:e,exitCode:t,signal:r,stdout:f,stderr:h,all:m,command:o,escapedCommand:s,parsed:i,timedOut:a,isCanceled:d.isCanceled||!!i.options.signal&&i.options.signal.aborted,killed:n.killed});if(!i.options.reject)return l;throw l;}return{command:o,escapedCommand:s,exitCode:0,stdout:f,stderr:h,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};},f=nT(p);return so(n,i.options),n.all=ss(n,i.options),se(n),sp(n,f),n;}function I(e,t,r){let n;let i=sC(e,t,r),o=sg(e,t),s=sv(e,t);s_(s,i.options);let a=sn(i.options);try{n=c(rs).spawnSync(i.file,i.args,{...i.options,input:a});}catch(e){throw oz({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1});}let l=sI(i.options,n.stdout,n.error),u=sI(i.options,n.stderr,n.error);if(n.error||0!==n.status||null!==n.signal){let e=oz({stdout:l,stderr:u,error:n.error,signal:n.signal,exitCode:n.status,command:o,escapedCommand:s,parsed:i,timedOut:n.error&&"ETIMEDOUT"===n.error.code,isCanceled:!1,killed:null!==n.signal});if(!i.options.reject)return e;throw e;}return{command:o,escapedCommand:s,exitCode:0,stdout:l,stderr:u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};}function T(t,r=["-NoProfile","-NoLogo","-NonInteractive"],n={stdio:"inherit"}){return C(function(){if(void 0===e){let t=c(r$).sync("pwsh",{nothrow:!0});null!==t&&(e=t);let r=c(r$).sync("powershell",{nothrow:!0});null!==r&&(e=r);}if(void 0===e)throw Error("Could not find powershell");return e;}(),[...r,"-c",t],n);}async function R(e){if(("linux"===process.platform||"darwin"===process.platform)&&g()&&void 0!==process.env.SUDO_USER){let t=(0,iO.statSync)(e).isDirectory();await y("chown",[...(t?["-R"]:[]),process.env.SUDO_USER,e],{cwd:e,stdio:"inherit",shell:!0});}}async function P(e,t,r=sL){let n=function(e,t=!1){let r=t?c(nR)(e):e;return c(nP)(r,'"',"\\");}(t??"",r.shouldEscapeSpace);try{if(rv.GITHUB_ACTIONS)try{if(r.shouldAddOnlyIfNotDefined&&void 0!==process.env[e]){(0,nI.info)(`Environment variable ${e} is already defined. Skipping.`);return;}(0,nI.exportVariable)(e,n);}catch(t){(0,ry.error)(t),await N(e,n,r);}else await N(e,n,r);}catch(t){(0,ry.error)(t),(0,nI.setFailed)(`Failed to export environment variable ${e}=${n}. You should add it manually.`);}}async function A(e){if(!function(e){if(sk.some(t=>t.test(e))){let t=process.env.PATH?.split(i_.delimiter)??[];return t.includes(e);}return!1;}(e)){process.env.PATH=`${e}${i_.delimiter}${process.env.PATH}`;try{if(rv.GITHUB_ACTIONS)try{(0,nI.addPath)(e);}catch(t){(0,ry.error)(t),await L(e);}else await L(e);}catch(t){(0,ry.error)(t),(0,nI.setFailed)(`Failed to add ${e} to the percistent PATH. You should add it manually.`);}}}async function N(e,t,r){let n=t??"";switch(process.platform){case"win32":if(r.shouldAddOnlyIfNotDefined&&void 0!==process.env[e]){(0,nI.info)(`Environment variable ${e} is already defined. Skipping.`);return;}await T(`[Environment]::SetEnvironmentVariable('${e}', '${n}', "User")`),(0,nI.info)(`${e}='${n}' was set in the environment.`);return;case"linux":case"darwin":await k(),r.shouldAddOnlyIfNotDefined?((0,iO.appendFileSync)(sD,` if [ -z "\${${e}}" ]; then export ${e}="${n}"; fi `),(0,nI.info)(`if not defined ${e} then ${e}="${n}" was added to "${sD}`)):((0,iO.appendFileSync)(sD,` export ${e}="${n}" `),(0,nI.info)(`${e}="${n}" was added to "${sD}`));return;}process.env[e]=n;}async function L(e){switch(process.platform){case"win32":await T(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),(0,nI.info)(`"${e}" was added to the PATH.`);return;case"linux":case"darwin":await k(),(0,iO.appendFileSync)(sD,` export PATH="${e}:$PATH" `),(0,nI.info)(`"${e}" was added to "${sD}"`);return;default:return;}}async function k(){if(sU)return;let e="# Automatically Generated by setup-cpp\nexport SOURCE_CPPRC=0";if(await(0,nA.pathExists)(sD)){let t=(0,iO.readFileSync)(sD,"utf8");if(t.includes(e))return;}(0,iO.appendFileSync)(sD,` ${e} `),(0,nI.info)(`Added ${e} to ${sD}`);let t=` # source .cpprc if SOURCE_CPPRC is not set to 0 if [[ "$SOURCE_CPPRC" != 0 && -f "${sD}" ]]; then source "${sD}"; fi `;try{let e=w(".profile");(0,iO.appendFileSync)(e,t),(0,nI.info)(`${t} was added to ${e}`);let r=w(".bashrc");(0,iO.appendFileSync)(r,t),(0,nI.info)(`${t} was added to ${r}`);}catch(e){(0,ry.warning)(`Failed to add ${t} to .profile or .bashrc. You should add it manually: ${e}`);}sU=!0;}async function D(){if(await(0,nA.pathExists)(sD)){let e=(0,iO.readFileSync)(sD,"utf-8").split("\n"),t=[...new Set(e.reverse())].reverse();(0,iO.writeFileSync)(sD,t.join("\n"));try{R(sD);}catch{}}}async function U(e,t=!1){let r;let n=F()?"nala":"apt-get";for(let{name:t,version:r}of e)(0,ry.info)(`Installing ${t} ${r??""} via ${n}`);process.env.DEBIAN_FRONTEND="noninteractive",(!sX||t)&&(B(n),sX=!0),sK||(await G(n),sK=!0);let i=[...new Set(e.flatMap(e=>e.repositories??[]))];if(0!==i.length){for(let e of i)v("add-apt-repository",["-y",e]);B(n);}let o=await Promise.all(e.map(e=>M(e.name,e.version)));try{v(n,["install","--fix-broken","-y",...o]);}catch(e){if("stderr"in e){let t=e.stderr;sz.some(e=>t.includes(e))&&((0,ry.warning)(`Failed to install packages ${o}. Retrying...`),v(n,["install","--fix-broken","-y",...o]));}else throw e;}return{binDir:"/usr/bin/"};}async function j(e,t){if(void 0!==t&&""!==t){let{stdout:r}=await C("apt-cache",["search","--names-only",`^${(0,nN.default)(e)}-${(0,nN.default)(t)}$`]);if(""!==r.trim())return nB.NameDashVersion;try{let{stdout:r}=await C("apt-cache",["show",`${e}=${t}`]);if(""===r.trim())return nB.NameEqualsVersion;}catch{}}try{let{stdout:t}=await C("apt-cache",["show",e]);if(""!==t.trim())return nB.Name;}catch{}return nB.None;}async function M(e,t){let r=await j(e,t);switch(r){case nB.NameDashVersion:return`${e}-${t}`;case nB.NameEqualsVersion:return`${e}=${t}`;case nB.Name:return e;case nB.None:default:throw Error(`Could not find package ${e} ${t??""}`);}}function F(){return null!==c(nL).sync("nala",{nothrow:!0});}function B(e){v(e,"nala"!==e?["update","-y"]:["update"]);}async function G(e){v(e,["install","--fix-broken","-y","software-properties-common","apt-utils","ca-certificates","gnupg"]);let t=[V(["3B4FE6ACC0B21F32","40976EAF437D05B5"],"setup-cpp-ubuntu-archive.gpg"),V(["1E9377A2BA9EF27F"],"launchpad-toolchain.gpg")];"nala"===e&&t.push(P("LANG","C.UTF-8",{shouldAddOnlyIfNotDefined:!0}),P("LC_ALL","C.UTF-8",{shouldAddOnlyIfNotDefined:!0})),await Promise.all(t);}function H(){v("gpg",["-k"]);}async function V(e,t,r="keyserver.ubuntu.com"){try{let n="/etc/apt/trusted.gpg.d/"+t;return(await(0,nA.pathExists)(n))||(H(),await Promise.all(e.map(async e=>{await y("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+n,"--keyserver",r,"--recv-keys",e]),await y("chmod",["644",n]);}))),n;}catch(e){(0,ry.warning)(`Failed to add apt key via server ${r}: ${e}`);return;}}async function q(e,t){let r="/etc/apt/trusted.gpg.d/"+e;return(await(0,nA.pathExists)(r))||(H(),await U([{name:"curl"},{name:"ca-certificates"}],void 0),await C("curl",["-s",t,"-o","/tmp/"+e]),v("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+r,"--import","/tmp/"+e]),v("chmod",["644",r])),r;}async function X(e,t){return rv.GITHUB_ACTIONS?y("update-alternatives",["--install","/usr/bin/"+e,e,t,"40"]):(await k(),sq(sD,` if [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${e} ${e} ${t} 40; fi `));}async function K(e){try{let{stdout:t}=await C("dpkg",["-l",e]),r=t.split("\n");return r.some(e=>e.startsWith("ii"));}catch{return!1;}}async function z(e,r,n){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeof t)return{binDir:t};let i=c(nL).sync("brew",{nothrow:!0});if(null!==i)return{binDir:t=(0,nG.dirname)(i)};let o=c(i_).join((0,i$.tmpdir)(),"setup-cpp","brew");await(0,nH.mkdirP)(o),I("curl",["-LJO","https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh"],{cwd:o});let s=(0,i_.join)(o,"install.sh");if("linux"===process.platform){let e=(0,iO.readFileSync)(s,"utf-8");e.replace("#!/bin/bash","");}return I("/bin/bash",[s],{stdio:"inherit",env:{NONINTERACTIVE:"1"}}),t=W(),await A(t),{binDir:t};}function W(){return"linux"===process.platform?"/home/linuxbrew/.linuxbrew/bin/":"/usr/local/bin/";}async function Y(e,t,r=[]){(0,nI.info)(`Installing ${e} ${t??""} via brew`),sW&&null!==c(nL).sync("brew",{nothrow:!0})||(await z("","",process.arch),sW=!0);let n=W();return I((0,nG.join)(n,"brew"),["install",void 0!==t&&""!==t?`${e}@${t}`:e,...r],{stdio:"inherit"}),{binDir:n};}async function J(e,t,n){if("win32"!==process.platform)return;if("string"==typeof r)return{binDir:r};let i=c(nL).sync("choco",{nothrow:!0});if(null!==i)return{binDir:r=(0,nG.dirname)(i)};let o="powershell.exe",s=c(nL).sync(`${process.env.SystemRoot}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`,{nothrow:!0});null!==s&&(o=s),I(o,["-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 a=`${process.env.ALLUSERSPROFILE}\\chocolatey\\bin`;await A(a);let l=c(nL).sync("choco",{nothrow:!0});if(r=null!==l?(0,nG.dirname)(l):`${process.env.ChocolateyInstall??"C:/ProgramData/chocolatey"}/bin`,await(0,nA.pathExists)(r))return{binDir:r};}async function Q(e,t,r=[]){(0,ry.info)(`Installing ${e} ${t??""} via chocolatey`),sY&&null!==c(nL).sync("choco",{nothrow:!0})||(await J("","",process.arch),sY=!0);let n=process.env.PATH,i={...process.env};if(delete i.TMP,delete i.TEMP,delete i.Path,i.PATH=n,void 0!==t&&""!==t)I("choco",["install","-y",e,"--version="+t,...r],{env:i,extendEnv:!1,stdio:"inherit"});else try{I("choco",["install","-y",e,...r],{env:i,extendEnv:!1,stdio:"inherit"});}catch(t){if(t.message.includes("exit code 3010"))(0,ry.info)(`${e} might require a reboot for the completion of the installation.`);else throw t;}let o=`${process.env.ChocolateyInstall??"C:/ProgramData/chocolatey"}/bin`;return await A(o),{binDir:o};}function Z(){return"linux"===process.platform&&(void 0===o&&(o=null!==c(nL).sync("pacman",{nothrow:!0})),o);}function ee(){return"linux"===process.platform&&(void 0===s&&(s=null!==c(nL).sync("dnf",{nothrow:!0})),s);}async function et(e){for(let{name:t,version:r}of e)(0,ry.info)(`Installing ${t} ${r??""} via dnf`);let t=await Promise.all(e.map(e=>er(e.name,e.version)));return v("dnf",["-y","install",...t]),{binDir:"/usr/bin/"};}async function er(e,t){if(void 0!==t&&""!==t){let{stdout:r}=await C("dnf",["search","-q",`${e}-${t}`]);if(""!==r.trim())return`${e}-${t}`;{let{stdout:r}=await C("dnf",["search","-q",`${e}${t}`]);if(""!==r.trim())return`${e}${t}`;(0,ry.warning)(`Failed to install ${e} ${t} via dnf, trying without version`);}}return e;}function en(){return"linux"===process.platform&&(void 0===a&&(a=null!==c(nL).sync("apt-get",{nothrow:!0})),a);}async function ei(e,t,r){switch(process.platform){case"win32":return Q("bazelisk",e);case"darwin":return Y("bazelisk",e);case"linux":if(Z())throw Error("installing bazel on Arch linux is not supported yet");if(ee())return await et([{name:"dnf-plugins-core"}]),v("dnf",["copr","enable","vbatts/bazel"]),et([{name:"bazel4"}]);if(en()){let t=await q("bazel-archive-keyring.gpg","https://bazel.build/bazel-release.pub.gpg");return v("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`]),U([{name:"bazel",version:e}],!0);}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function eo(e,t,r){(0,ry.info)(`Installing ${e} ${t??""} via pacman`);let n="pacman";if("yay"===r&&null===c(nL).sync("yay",{nothrow:!0}))throw Error(`yay is needed for ${e}, but it is not installed, please install it manually first`);sJ||"yay"===r||(v(n,["-Sy","--noconfirm"]),sJ=!0),sQ||"yay"===r||(v(n,["-S","--noconfirm","base-devel"]),sQ=!0);let i=e=>"yay"===r?I(r,["-S","--noconfirm",e]):v(r??n,["-S","--noconfirm",e]);if(void 0!==t&&""!==t){let r=await es(n,e);if(r.includes(t))try{i(`${e}=${t}`);}catch{i(`${e}${t}`);}else(0,ry.info)(`Failed to install ${e} ${t} via pacman, trying without version`),i(e);}else i(e);return{binDir:"/usr/bin/"};}async function es(e,t){let r=[];try{let{stdout:n}=await C(e,["-Si",t]);for(let e of n.matchAll(sZ))r.push(e[1]);}catch(e){(0,ry.warning)(`Failed to get available versions for ${t}: ${e}`);}return r;}function ea(e,t){let r=[];t=t||s3.arch();let n=s6.join(ef(),e);if(s2.existsSync(n)){let e=s2.readdirSync(n);for(let i of e)if(ed(i)){let e=s6.join(n,i,t||"");s2.existsSync(e)&&s2.existsSync(`${e}.complete`)&&r.push(i);}}return r;}function el(e){return nW(this,void 0,void 0,function*(){return e||(e=s6.join(eh(),ae.default())),yield s1.mkdirP(e),e;});}function ec(e,t,r){return nW(this,void 0,void 0,function*(){let n=s6.join(ef(),e,s8.clean(t)||t,r||"");s0.debug("destination "+n);let i=`${n}.complete`;return yield s1.rmRF(n),yield s1.rmRF(i),yield s1.mkdirP(n),n;});}function eu(e,t,r){let n=s6.join(ef(),e,s8.clean(t)||t,r||""),i=`${n}.complete`;s2.writeFileSync(i,""),s0.debug("finished caching tool");}function ed(e){let t=s8.clean(e)||"";s0.debug("isExplicit: "+t);let r=null!=s8.valid(t);return s0.debug("explicit? "+r),r;}function ep(e,t){let r="";s0.debug(`evaluating ${e.length} versions`),e=e.sort((e,t)=>s8.gt(e,t)?1:-1);for(let n=e.length-1;n>=0;n--){let i=e[n],o=s8.satisfies(i,t);if(o){r=i;break;}}return r?s0.debug("matched: "+r):s0.debug("match not found"),r;}function ef(){let e=process.env.RUNNER_TOOL_CACHE||"";return t6.ok(e,"Expected RUNNER_TOOL_CACHE to be defined"),e;}function eh(){let e=process.env.RUNNER_TEMP||"";return t6.ok(e,"Expected RUNNER_TEMP to be defined"),e;}function em(e,t){let r=rf[e];return void 0!==r?r:t;}function eg(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(function(t,n){let i,o,s;r.timeout&&(i=setTimeout(function(){o&&clearTimeout(o),n(new ao(r.name+" timed out",s));},r.timeout)),Promise.resolve(e({current:r.$current})).then(t).then(function(){i&&clearTimeout(i),o&&clearTimeout(o);}).catch(function(a){i&&clearTimeout(i),o&&clearTimeout(o),s=a,r.report&&r.report(a&&a.toString()||a,r,a);var l=r.$current(0,nV.downloadTool)(o),{name:o,max:4,backoffBase:2e3,report:e=>(0,ry.info)(e)});as||((0,ry.info)("Installing extraction dependencies"),"linux"===process.platform&&(Z()?await Promise.all([eo("unzip"),eo("tar"),eo("xz")]):ee()?await et([{name:"unzip"},{name:"tar"},{name:"xz"}]):en()&&(await U([{name:"unzip"},{name:"tar"},{name:"xz-utils"}]))),as=!0),(0,ry.info)(`Extracting ${r} to ${n}`),await u?.(r,n);}catch(r){throw Error(`Failed to download ${e} ${t} ${i} from ${o}: ${r}`);}return(0,ry.info)(`Add ${p} to PATH`),await A(p),rv.GITHUB_ACTIONS&&"string"==typeof process.env.RUNNER_TOOL_CACHE&&(await(0,nV.cacheDir)(n,e,t)),{installDir:d,binDir:p};}function ey(e,t,r){switch(process.platform){case"win32":return Q("7zip",e);case"darwin":return Y("p7zip",e);case"linux":if(Z())return eo("p7zip",e);if(ee())return et([{name:"p7zip",version:e},{name:"p7zip-plugins",version:e}]);if(en())return U([{name:"p7zip-full",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function ew(e,t){return await C(await ex(),["x",e,"-o"+t,"-y"],{stdio:"inherit"}),R(t),t;}async function ex(){return void 0===n&&(null===c(nL).sync("7z",{nothrow:!0})&&(await ey("","",process.arch)),n="7z"),n;}function eE(e,t){return ew(e,t);}function eb(e,t){return ew(e,t);}async function eS(e,t,r=["--strip-components=0"]){try{await(0,nH.mkdirP)(t);}catch{}try{await C("tar",["xf",e,"-C",t,...r],{stdio:"inherit"});}catch(r){"win32"===process.platform&&r.message.includes("Can't create '\\\\?\\C:")&&(0,ry.warning)(`Failed to extract symlink ${e} to ${t}. Ignoring this symlink.`);}return R(t),t;}function e$(e,t,r){let n=c(n3)(e)??e;switch(t){case"win32":{let t;let i=c(n4)(n,"v3.19.6");t=["ia32","x86","i386","x32"].includes(r)?i?"win32-x86":"windows-i386":i?"win64-x64":"windows-x86_64";let o=`cmake-${e}-${t}`;return{binRelativeDir:"bin/",binFileName:(0,nG.addExeExt)("cmake"),extractedFolderName:o,extractFunction:eb,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${o}.zip`};}case"darwin":{let t=c(n4)(n,"v3.19.1"),r=`cmake-${e}-${t?"Darwin-x86_64":"macos-universal"}`;return{binRelativeDir:"CMake.app/Contents/bin/",binFileName:(0,nG.addExeExt)("cmake"),extractedFolderName:r,extractFunction:nV.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${r}.tar.gz`};}case"linux":{let t;let i=c(n4)(n,"v3.19.8");t=["aarch64"].includes(r)?i?"Linux-aarch64":"linux-aarch64":i?"Linux-x86_64":"linux-x86_64";let o=`cmake-${e}-${t}`;return{binRelativeDir:"bin/",binFileName:(0,nG.addExeExt)("cmake"),extractedFolderName:o,extractFunction:nV.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${o}.tar.gz`};}default:throw Error(`Unsupported platform '${t}'`);}}function e_(e,t,r){return ev("cmake",e,e$,t,r);}function eO(e){var t=e.length;return t?1===t?[e[0]]:2===t?[e[0],e[1]]:3===t?[e[0],e[1],e[2]]:n8.call(e,0):[];}function eC(e,t){return e===t||e!=e&&t!=t;}function eI(e,t){var r={};for(var n in e)r[n]=e[n];for(var n in t)r[n]=t[n];return r;}function eT(e,t){if(void 0===t&&(t={}),"function"==typeof e&&e.isMemoized)return eT(e.fn,eI(e.options,t));if("function"!=typeof e)throw TypeError("You must pass a function to `memoize`.");var r=t.isEqual,n=t.isMatchingKey,i=t.isPromise,o=void 0!==i&&i,s=t.maxSize,a=t.onCacheAdd,l=t.onCacheChange,c=t.onCacheHit,u=t.transformKey,d=eI({isEqual:void 0===r?eC:r,isMatchingKey:n,isPromise:o,maxSize:void 0===s?1:s,onCacheAdd:a,onCacheChange:l,onCacheHit:c,transformKey:u},function(e){var t={};for(var r in e)n5[r]||(t[r]=e[r]);return t;}(t)),p=new n7(d),f=p.keys,h=p.values,m=p.canTransformKey,g=p.shouldCloneArguments,v=p.shouldUpdateOnAdd,y=p.shouldUpdateOnChange,w=p.shouldUpdateOnHit,x=function(){var t=g?eO(arguments):arguments;m&&(t=u(t));var r=f.length?p.getKeyIndex(t):-1;if(-1!==r)w&&c(p,d,x),r&&(p.orderByLru(f[r],h[r],r),y&&l(p,d,x));else{var n=e.apply(this,arguments),i=g?t:eO(arguments);p.orderByLru(i,n,f.length),o&&p.updateAsyncCache(x),v&&a(p,d,x),y&&l(p,d,x);}return h[0];};return x.cache=p,x.fn=e,x.isMemoized=!0,x.options=d,x;}function eR(e,t){return new Promise(r=>{try{let n=(0,iT.request)(e,{method:t},e=>{r(void 0!==e.statusCode&&e.statusCode>=200&&e.statusCode<=399);});n.on("error",e=>{r(!1);}),n.end();}catch{r(!1);}});}function eP(e,t){return Array.from(e).filter(e=>/^\d+\.\d+\.\d+$/.test(e)&&e.startsWith(t)).sort((e,t)=>{try{return c(it)(e,t);}catch(r){return e.localeCompare(t);}}).reverse();}async function eA(e,t,r,n){if("linux"===t&&r.includes("ubuntu")){let e=await n(t,r);if(null!==e&&(await ie(e)))return[r,e];}if(!e.has(r))throw Error(`Unsupported target! (platform='${t}', version='${r}'). Try one of the following: ${JSON.stringify(e)}`);let i=[];for(let o of eP(e,r)){let e=await n(t,o);if(null!==e){if(await ie(e))return[o,e];i.push(e);}}throw Error(`Unsupported target! (platform='${t}', version='${r}'). Try one of the following: ${JSON.stringify(e)}`);}async function eN(e,t=aa){try{let r=await(0,nJ.getExecOutput)(e,["--version"]),n=r.stdout||r.stderr||"",i=n.trim().match(t)?.[1];return c(n3)(i)??void 0;}catch(e){console.error(e);return;}}async function eL(e,t,r=aa){let n=await eN(e,r);return void 0!==n&&""!==t&&-1!==c(it)(n,t);}function ek(){switch(process.platform){case"win32":default:return"16.0.6";case"linux":return"16.0.4-ubuntu-22.04";case"darwin":return"15.0.3";}}async function eD(e,t,r){let n=await eM(e,t,r);c(t6)(void 0!==n.bin);let i=n.bin,o=await eH(i);if(void 0===o)throw Error("pip was not installed correctly");return await eU(i),await ej(i),n;}async function eU(e){try{(await e2(e))||(await e1(e,"pipx",void 0,{upgrade:!0,usePipx:!1})),await C(e,["-m","pipx","ensurepath"],{stdio:"inherit"}),await e1(e,"venv",void 0,{upgrade:!1,usePipx:!1});}catch(e){(0,ry.warning)(`Failed to install pipx: ${e.toString()}. Ignoring...`);}}async function ej(e){try{await e1(e,"setuptools",void 0,{upgrade:!0,isLibrary:!0,usePipx:!1}),await e1(e,"wheel",void 0,{upgrade:!0,isLibrary:!0,usePipx:!1});}catch(e){(0,ry.warning)(`Failed to install setuptools or wheel: ${e.toString()}. Ignoring...`);}}async function eM(e,t,r){let n;let i=await eB(t);if(void 0!==i){let e=(0,nG.dirname)(i);n={bin:i,installDir:e,binDir:e};}else{if(rv.GITHUB_ACTIONS)try{(0,ry.info)("Installing python in GitHub Actions");let{setupActionsPython:o}=await rg("5fF9z");await o(e,t,r),i=await eB(t);let s=(0,nG.dirname)(i);n={bin:i,installDir:s,binDir:s};}catch(e){(0,ry.warning)(e.toString());}void 0===n&&(n=await eF(t,e));}return(void 0===i||void 0===n.bin)&&(i=await eB(t),n.bin=i),n;}async function eF(e,t){let r;switch(process.platform){case"win32":{e?await Q("python3",t,["--params=/InstallDir:"+e]):await Q("python3",t);let n=await eB(e),i=(0,nG.dirname)(n);await A(i),r={installDir:i,binDir:i,bin:n};break;}case"darwin":{r=await Y("python3",t);let e=await C("brew",["--prefix","python"],{stdio:"pipe"}),n=(0,nG.join)(e.stdout,"libexec","bin");await A(n);break;}case"linux":if(Z())r=await eo("python",t);else if(ee())r=await et([{name:"python3",version:t}]);else if(en())r=await U([{name:"python3",version:t},{name:"python-is-python3"}]);else throw Error("Unsupported linux distributions");break;default:throw Error("Unsupported platform");}return r;}async function eB(e){for(let t of["python3","python"]){let r=await eG(t,e);if(void 0!==r)return r;}}async function eG(e,t){try{if(void 0!==t){let r=(0,nG.join)(t,(0,nG.addExeExt)(e));if((await(0,nA.pathExists)(r))&&(await eL(r,ac.python)))return r;}let r=(await c(nL)(e,{nothrow:!0,all:!0}))??[];for(let e of r)if(await eL(e,ac.python))return e;}catch{}}async function eH(e){let t=await eV();return void 0===t?((0,ry.info)("pip was not found. Installing pip"),await eX(e),eV()):t;}async function eV(){for(let e of["pip3","pip"]){let t=await eq(e);if(void 0!==t)return t;}}async function eq(e){try{let t=(await c(nL)(e,{nothrow:!0,all:!0}))??[];for(let e of t)if(null!==e&&(await eL(e,ac.pip)))return e;}catch{}}async function eX(e){let t=await eK(e);t||(await e5("pip"),await eK(e));}async function eK(e){try{return await C(e,["-m","ensurepip","-U","--upgrade"],{stdio:"inherit"}),!0;}catch(t){(0,ry.info)(t?.toString?.());try{return await C(e,["-m","pip","install","--upgrade","pip"],{stdio:"inherit"}),!0;}catch(e){(0,ry.info)(e?.toString?.());}}return!1;}async function ez(e){let t=[];"linux"===process.platform?t.push("/home/runner/.local/bin/"):"darwin"===process.platform&&t.push("/usr/local/bin/");let r=(await(0,nJ.getExecOutput)(`${e} -c "import sys;print(sys.base_exec_prefix);"`)).stdout.trim();return t.push((0,nG.join)(r,"Scripts"),(0,nG.join)(r,"Scripts","bin"),(0,nG.join)(r,"bin")),[...new Set(t)];}function eW(e,t,r=null){return eY(t)&&"linux"===process.platform&&null!==r&&e in au?function(e,t){let r=e[0],n=Object.keys(t).map(e=>parseInt(e,10)).sort((e,t)=>t-e).find(e=>r>=e);return void 0===n?"":t[n];}(r,au[e]):eY(t)&&e in al?al[e]:"true"===t?"":t??"";}function eY(e){return"true"===e||void 0===e;}async function eJ(){var e,t;if("linux"!==process.platform)return[];let r=await(e="lsb_release",t=["-a"],new Promise((r,n)=>{t7.execFile(e,t,{encoding:"utf8",shell:!1},(i,o,s)=>{if(i){if("errno"in i&&"ENOENT"===i.code){r(null);return;}n(Error(`Could not execute \`${e} ${t.join(" ")}\`: ${i} (stderr=${s})`));return;}r(o);});}));if(null===r)return[];let n=null,i=null,o=!1;for(let e of r.split("\n")){let t=e.match(/^Distributor ID:\s*(.+)$/);if(null!==t){let e=t[1];if("Ubuntu"!==e)return[];o=!0;}let r=e.match(/^Description:\s*Ubuntu\s+(\d+)\.(\d+)(?:\.(\d+))?/);r&&(n=r);let s=e.match(/^Release:\s*(\d+)\.(\d+)(?:\.(\d+))?$/);if(s&&(i=s),o&&n&&i)break;}if(!o)return[];for(let e of[n,i])if(e){let t=[e[1],e[2]];return e[3]&&t.push(e[3]),t.map(e=>parseInt(e,10));}return[];}async function eQ(){try{if(!en())return null;{try{null===c(nL).sync("lsb_release",{nothrow:!0})&&(await U([{name:"lsb-release"}]));}catch{return eZ();}let e=await(0,ii.getUbuntuVersion)();if(0===e.length)return eZ();return e;}}catch(e){return(0,ry.warning)(e.toString()),null;}}function eZ(){let e=c(i$).version(),t=e.split("."),r=parseInt(t[0].replace("#",""),10),n=parseInt(t[1].replace("~",""),10),i=parseInt(t[2].split("-")[0],10);return[r,n,i];}async function e0(e,t,r={}){return e1(await af(),e,t,r);}async function e1(e,t,r,n={}){let{usePipx:i=!0,user:o=!0,upgrade:s=!1,isLibrary:a=!1}=n,l=i&&!a&&(await e2(e)),c=l?"pipx":"pip",u=await e3(e,t);if(u)try{(0,nI.info)(`Installing ${t} ${r??""} via ${c}`);let n=void 0!==r&&""!==r?`${t}==${r}`:t,i=!l&&o?["--user"]:[];I(e,["-m",c,...(s?l?["upgrade"]:["install","--upgrade"]:["install"]),...i,n],{stdio:"inherit"});}catch(e){if((0,nI.info)(`Failed to install ${t} via ${c}: ${e}.`),(await e5(t))===null)throw Error(`Failed to install ${t} via ${c}: ${e}.`);}else if((await e5(t))===null)throw Error(`Failed to install ${t} as it was not found via ${c} or the system package manager`);let d=await ad(e),p=await e6(d,t);return await A(p),{binDir:p};}async function e2(e){return 0===(await C(e,["-m","pipx","--help"],{stdio:"ignore",reject:!1})).exitCode;}async function e4(){let e=(await eD(eW("python",void 0,await ap()),"",process.arch)).bin;if(void 0===e)throw Error("Python binary was not found");return e;}async function e3(e,t){let r=await C(e,["-m","pip","-qq","index","versions",t],{stdio:"ignore",reject:!1});return 0===r.exitCode;}async function e6(e,t){let r=await Promise.all(e.map(e=>(0,nA.pathExists)((0,nG.join)(e,(0,nG.addExeExt)(t))))),n=r.findIndex(e=>e);if(-1!==n){let t=e[n];return t;}let i=c(nL).sync((0,nG.addExeExt)(t),{nothrow:!0});return null!==i?(0,nG.dirname)(i):e[e.length-1];}function e5(e){if("linux"===process.platform){if((0,nI.info)(`Installing ${e} via the system package manager`),Z())return eo("python-"+e);if(ee())return et([{name:"python3-"+e}]);if(en())return U([{name:"python3-"+e}]);}return null;}async function e8(e,t,r){switch(process.platform){case"win32":{await Q("cppcheck",e);let t=await e7();return{binDir:t};}case"darwin":return Y("cppcheck",e);case"linux":if(Z())return eo("cppcheck",e);if(ee())return et([{name:"ccache",version:e}]);if(en())return U([{name:"cppcheck",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function e7(){let e="C:/Program Files/Cppcheck";return await A(e),e;}async function e9(e,t,r){switch(process.platform){case"win32":return await Q("graphviz",e),te();case"darwin":return Y("graphviz",e);case"linux":if(Z())return eo("graphviz",e);if(ee())return et([{name:"graphviz",version:e}]);if(en())return U([{name:"graphviz",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function te(){if("win32"===process.platform){let e="C:/Program Files/Graphviz/bin";return await A(e),{binDir:e};}throw Error("Unsupported platform");}function tt(e,t,r){switch(t){case"linux":{let t="doxygen-"+e;return{binRelativeDir:"bin/",binFileName:(0,nG.addExeExt)("doxygen"),extractedFolderName:t,extractFunction:nV.extractTar,url:`https://www.doxygen.nl/files/${t}.linux.bin.tar.gz`};}case"win32":{let t="doxygen-"+e;return{binRelativeDir:"",binFileName:(0,nG.addExeExt)("doxygen"),extractedFolderName:t,extractFunction:eb,url:`https://www.doxygen.nl/files/${t}.windows.x64.bin.zip`};}default:throw Error(`Unsupported platform '${t}'`);}}async function tr(e,t,r){switch(process.platform){case"win32":{await c(n6)(()=>Q("doxygen.install",e),{name:"doxygen.install",max:4,backoffBase:2e3,report:e=>(0,ry.info)(e)});let t=await tn();return await e9(eW("graphviz",void 0),"",r),{binDir:t};}case"darwin":{let e=await Y("doxygen",void 0);return await e9(eW("graphviz",void 0),"",r),e;}case"linux":{let n;if(""===e||Z()||ee()){if(Z())n=await eo("doxygen",e);else if(ee())return et([{name:"doxygen",version:e}]);else if(en())n=await U([{name:"doxygen",version:e}]);else throw Error("Unsupported linux distributions");}else if(en())try{n=await ev("doxygen",e,tt,t,r),await U([{name:"libclang-cpp9"}]);}catch(e){(0,ry.notice)(`Failed to download doxygen binary. ${e}. Falling back to apt-get.`),n=await U([{name:"doxygen"}]);}else throw Error("Unsupported linux distributions");return await e9(eW("graphviz",void 0,await ap()),"",r),n;}default:throw Error("Unsupported platform");}}async function tn(){if("win32"===process.platform){for(let e of["C:/ProgramData/chocolatey/bin","C:/Program Files/doxygen/bin","C:/Program Files (x86)/doxygen"])if(await(0,nA.pathExists)((0,nG.join)(e,"doxygen.exe")))return await A(e),e;throw Error("Failed to find doxygen binary");}throw Error("Unsupported platform");}async function ti(){if("darwin"===process.platform)try{let e=await(0,nJ.getExecOutput)("xcrun --sdk macosx --show-sdk-path"),t=e.stdout||e.stderr;t?await P("SDKROOT",t.trim()):(0,ry.error)("SDKROOT not set");}catch(e){(0,ry.error)(e);}}function to(e,t,r){if("win32"===t){let t=ah[e];if(void 0===t)throw Error(`mingw version ${e} is not supported`);return{binRelativeDir:"bin/",binFileName:(0,nG.addExeExt)("g++"),extractedFolderName:"mingw64",extractFunction:ew,url:`https://github.com/brechtsanders/winlibs_mingw/releases/download/${t.releaseName}/winlibs-${"ia32"===r?"i686":"x86_64"}-posix-seh-gcc-${t.fileSuffix}.7z`};}throw Error(`Unsupported platform '${t}'`);}async function ts(e,t,r){let n;switch(process.platform){case"win32":("arm"===r||"arm64"===r)&&(await Q("gcc-arm-embedded",e));try{n=await ev("g++",e,to,t,r);}catch(t){(0,ry.info)(`Failed to download g++ binary. ${t}. Falling back to chocolatey.`),n=await tl(e,r);}break;case"darwin":n=await Y("gcc",e);break;case"linux":"x64"===r?Z()?n=await eo("gcc",e):ee()?n=await et([{name:"gcc",version:e},{name:"gcc-c++",version:e},{name:"libstdc++-devel"}]):en()&&(n=await U([{name:"gcc",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]},{name:"g++",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]}])):((0,ry.info)(`Install g++-multilib because gcc for ${r} was requested`),Z()?await eo("gcc-multilib",e):en()&&(await U([{name:"gcc-multilib",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]}])));break;default:throw Error("Unsupported platform for "+r);}if(void 0!==n)return await tc(e,n.binDir),n;}async function ta(e,t,r){let n;switch(process.platform){case"win32":case"darwin":return ts(e,t,r);case"linux":Z()?n=await eo("mingw-w64-gcc",e):ee()?n=await et([{name:"mingw64-gcc",version:e}]):en()&&(n=await U([{name:"mingw-w64",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]}]));break;default:throw Error("Unsupported platform for "+r);}if(void 0!==n)return n;}async function tl(e,t){let r;if(await Q("mingw",e),"x64"===t&&(await(0,nA.pathExists)("C:/tools/mingw64/bin"))?(r="C:/tools/mingw64/bin",await A(r)):"ia32"===t&&(await(0,nA.pathExists)("C:/tools/mingw32/bin"))?(r="C:/tools/mingw32/bin",await A(r)):(await(0,nA.pathExists)(`${process.env.ChocolateyInstall??"C:/ProgramData/chocolatey"}/bin/g++.exe`))&&(r=`${process.env.ChocolateyInstall??"C:/ProgramData/chocolatey"}/bin`),void 0!==r)return{binDir:r};}async function tc(e,t){let r=[];if("win32"===process.platform)r.push(P("CC",(0,nG.addExeExt)(`${t}/gcc`)),P("CXX",(0,nG.addExeExt)(`${t}/g++`)));else{let n=c(io)(c(n3)(e)??e);n>=5?(r.push(P("CC",`${t}/gcc-${n}`),P("CXX",`${t}/g++-${n}`)),en()&&r.push(X("cc",`${t}/gcc-${n}`),X("cxx",`${t}/g++-${n}`),X("gcc",`${t}/gcc-${n}`),X("g++",`${t}/g++-${n}`))):(r.push(P("CC",`${t}/gcc-${e}`),P("CXX",`${t}/g++-${e}`)),en()&&r.push(X("cc",`${t}/gcc-${e}`),X("cxx",`${t}/g++-${e}`),X("gcc",`${t}/gcc-${e}`),X("g++",`${t}/g++-${e}`)));}r.push(ti()),rv.GITHUB_ACTIONS&&(await tu()),await Promise.all(r);}async function tu(){let e=(0,nG.join)(is,"gcc_matcher.json");if(!(await(0,nA.pathExists)(e)))return(0,ry.warning)("the gcc_matcher.json file does not exist in the same folder as setup-cpp.js");(0,ry.info)("::add-matcher::"+e);}function td(e,t,r){let n=function(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,nG.addExeExt)("ninja"),extractedFolderName:"",extractFunction:eb,url:`https://github.com/ninja-build/ninja/releases/download/v${e}/ninja-${n}.zip`};}function tp(e,t,r){return ev("ninja",e,td,t,r);}function tf(e){return{url:`https://github.com/SimonKagstrom/kcov/releases/download/${e}/kcov-amd64.tar.gz`,extractedFolderName:"",binRelativeDir:"usr/local/bin",binFileName:(0,nG.addExeExt)("kcov"),extractFunction:eS};}function th(e){return{url:`https://github.com/SimonKagstrom/kcov/archive/refs/tags/${e}.tar.gz`,extractedFolderName:"",binRelativeDir:"build/src",binFileName:(0,nG.addExeExt)("kcov"),extractFunction:tm};}async function tm(e,t){let r=await eS(e,t,["--strip-components=1"]),n=await tg();"linux"===process.platform&&(Z()?await Promise.all([eo("libdwarf"),eo("libcurl-openssl")]):ee()?await et([{name:"libdwarf-devel"},{name:"libcurl-devel"}]):en()&&(await U([{name:"libdw-dev"},{name:"libcurl4-openssl-dev"}])));try{if(null!==c(nL).sync("patch",{nothrow:!0})){let e=(0,nG.join)(ia,"gcc13.patch");await C("patch",["-N","-p1","-i",e],{cwd:r,stdio:"inherit"});}else(0,ry.info)("`patch` not found, skipping gcc13.patch, kcov may not build on gcc 13");}catch{}let i=(0,nG.join)(r,"build");return await C(n,["-S",r,"-B",i,"-DCMAKE_BUILD_TYPE=Release","-G","Ninja"],{cwd:r,stdio:"inherit"}),await C(n,["--build",i,"--config","Release"],{cwd:r,stdio:"inherit"}),r;}async function tg(){let e=c(nL).sync("cmake",{nothrow:!0});if(null===e){let{binDir:t}=await e_(eW("cmake",void 0,await ap()),(0,nG.join)(w(""),"cmake"),"");e=(0,nG.join)(t,"cmake");}let t=c(nL).sync("ninja",{nothrow:!0});return null===t&&(await tp(eW("ninja",void 0,await ap()),(0,nG.join)(w(""),"ninja"),"")),e;}async function tv(e,t,r){var n;let i;if("linux"!==process.platform){(0,ry.info)("Kcov is not supported on non-linux");return;}let o=e.split("-"),s=(n=o[0]).match(/^v/)?n:"v"+n,a=o[1],l=parseInt(s.replace(/^v/,""),10);return 38===l&&(s="v38"),"binary"===a&&l>=39?(i=await ev("kcov",s,tf,t,r),Z()?await eo("binutils"):ee()?await et([{name:"binutils"}]):en()&&(await U([{name:"libbinutils"}]))):i=await ev("kcov",s,th,t,r),i;}function ty(e,t,r){let n=new ag(e,t,r);process.stdout.write(n.toString()+am.EOL);}function tw(e){im.issue("error",e instanceof Error?e.toString():e);}function tx(e){im.issue("group",e);}function tE(){im.issue("endgroup");}function tb(e){if(Object.values(a_).includes(e));else if(e in a_)return a_[e];return e;}function tS(e){let t;let r=tb(e);if(r){let e=r.split(".")[0]+".9";t=`-version "${r},${e}"`;}else t="-latest";let n=function(e,t){try{return t7.execSync(`vswhere -products * ${t} -prerelease -property installationPath`).toString().trim()+"\\"+e;}catch(e){id.warning("vswhere failed: "+e);}return null;}("VC\\Auxiliary\\Build\\vcvarsall.bat",t);if(n&&iO.existsSync(n))return id.info("Found with vswhere: "+n),n;id.info("Not found with vswhere");let i=e?[function(e){if(Object.keys(a_).includes(e));else for(let[t,r]of Object.entries(a_))if(r===e)return t;return e;}(e)]:a$;for(let e of ab)for(let t of i)for(let r of aS)if(n=`${e}\\Microsoft Visual Studio\\${t}\\${r}\\VC\\Auxiliary\\Build\\vcvarsall.bat`,id.info("Trying standard location: "+n),iO.existsSync(n))return id.info("Found standard location: "+n),n;if(id.info("Not found in standard locations"),n=`${aE}\\Microsoft Visual C++ Build Tools\\vcbuildtools.bat`,iO.existsSync(n))return id.info("Found VS 2015: "+n),n;throw id.info("Not found in VS 2015 location: "+n),Error("Microsoft Visual Studio not found");}async function t$(e,t,r,n,i,o,s){void 0!==t&&(await(0,nA.pathExists)(t))&&((0,ry.info)(`Adding ${t} to PATH`),await P("VCTargetsPath",t)),iu(function(e){switch(e){case"x32":case"32":case"ia32":return"x86";case"64":return"x64";default:return e;}}(r),i,n,o,s,e);}async function t_(e,t,r,n,i,o,s,a=aP){(0,nI.startGroup)(`Installing ${e} ${t}`);let l=!1;try{l=await function(e,t){let r;let{milliseconds:n,fallback:i,message:o,customTimers:s={setTimeout:setTimeout,clearTimeout:clearTimeout}}=t,a=new Promise((a,l)=>{if("number"!=typeof n||1!==Math.sign(n))throw TypeError(`Expected \`milliseconds\` to be a positive number, got \`${n}\``);if(t.signal){let{signal:e}=t;e.aborted&&l(aR(e)),e.addEventListener("abort",()=>{l(aR(e));});}if(n===Number.POSITIVE_INFINITY){e.then(a,l);return;}let c=new aC();r=s.setTimeout.call(void 0,()=>{if(i){try{a(i());}catch(e){l(e);}return;}"function"==typeof e.cancel&&e.cancel(),!1===o?a():o instanceof Error?l(o):(c.message=o??`Promise timed out after ${n} milliseconds`,l(c));},n),(async()=>{try{a(await e);}catch(e){l(e);}})();}),l=a.finally(()=>{l.clear();});return l.clear=()=>{s.clearTimeout.call(void 0,r),r=void 0;},l;}(tO(e,t,r,n,l,i,o),{milliseconds:a,message:`Timeout while installing ${e} ${t}. You can increase the timeout from options`});}catch(t){(0,ry.error)(t),s.push(`${e} failed to install`);}return(0,nI.endGroup)(),l;}async function tO(e,t,r,n,i,o,s){let a;if("vcvarsall"===e)await t$(eW(e,t,r),void 0,n,void 0,void 0,!1,!1);else{let s=aq[e];i=["llvm","clangformat","clangtidy"].includes(e);let l=(0,nG.join)(o,i?"llvm":e);a=await s(eW(e,t,r),l,n);}return s.push(tJ(e,a)),i;}async function tC(e,t=iE.All){let r="/usr/lib/llvm-"+e;await U([{name:"curl"}]),await C("curl",["-LJO","https://apt.llvm.org/llvm.sh"],{cwd:"/tmp"});let n=await tI("/tmp/llvm.sh","/tmp/llvm-setup-cpp.sh",t);return await U(n),await aL("/tmp/llvm-setup-cpp.sh","755"),await y("bash",["/tmp/llvm-setup-cpp.sh",""+e,...(t===iE.All?["all"]:[])],{stdio:"inherit",shell:!0,timeout:aP}),await A(`${r}/bin`),{installDir:""+r,binDir:`${r}/bin`,bin:`${r}/bin/clang++`};}async function tI(e,t,r){var n,i,o,s;let a=await aA(e,"utf-8");return i=r,o=a=(n=a,a=process.env.NODE_DEBUG?n:n.replace(/set -eux/g,"set -eu")).replace(/add-apt-repository "\${REPO_NAME}"/g,'add-apt-repository -y "${REPO_NAME}"'),a=i===iE.ClangFormat?o.replace(/ -y \$PKG/g," -y clang-format"):o,s=a=await tT(a),a=F()?s.replace(/apt-get/g,"nala"):s,await aN(t,a),[{name:"lsb-release"},{name:"wget"},{name:"software-properties-common"},{name:"gnupg"}];}async function tT(e){let t=e.replace(/apt-get install -y/g,'apt-get install -o Dpkg::Options::="--force-overwrite" -y --fix-broken');return await Promise.all(["libc++-$LLVM_VERSION-dev","libc++abi-$LLVM_VERSION-dev","libunwind-$LLVM_VERSION-dev"].map(async e=>{let r=e.replace("$LLVM_VERSION","*");(await K(r))&&((0,rp.info)("Removing conflicting package "+r),t=t.replace(e,""));})),t;}function tR(e,t,r){let n=`${t}${e}${r}`;return`https://github.com/llvm/llvm-project/releases/download/llvmorg-${e}/${n}`;}function tP(e,t,r){let n=`${t}${e}${r}`;return`https://releases.llvm.org/${e}/${n}`;}async function tA(e){let t;if(aD.has(e))return null;let r="LLVM-",n=c(n4)(e,"3.7.0")?"-win32.exe":"-win64.exe",i=c(n4)(e,"9.0.1"),o=!1;return i&&(t=tP(e,r,n),(await ie(t))||(o=!0)),(o||!i)&&(t=tR(e,r,n)),t;}function tN(e,t){switch(e){case"darwin":return function(e){if(aU.has(e))return null;let t="9.0.0"===e?"-darwin-apple":"-apple-darwin",r="clang+llvm-",n=`-x86_64${t}.tar.xz`;return c(n4)(e,"9.0.1")?tP(e,r,n):tR(e,r,n);}(t);case"linux":return function(e){let t,r,n=e,i=aj.get(n);if(void 0!==i&&(n=i),n.includes("ubuntu")){let e=n.replace(/-ubuntu-.*/,"");if(!ak.has(e))throw Error("Unsupported Ubuntu version: "+e);t=n.replace(e,""),n=eP(ak,e)[0];}else""!==n&&n in aM?t=aM[n]:(t=aM[aF],(0,ry.warning)(`Falling back to LLVM version ${aF} ${t} for the Ubuntu.`));let o="clang+llvm-";return(r="5.0.0"===n?`-linux-x86_64${t}.tar.xz`:t.includes("-rhel86")?`-x86_64-unknown-linux-gnu${t}.tar.xz`:`-x86_64-linux-gnu${t}.tar.xz`,c(n4)(n,"9.0.1"))?tP(n,o,r):tR(n,o,r);}(t);case"win32":return tA(t);default:return null;}}async function tL(e,t,r){let[n,i]=await eA(ak,t,e,tN);return(0,ry.info)("specific llvm version: "+n),{url:i,extractedFolderName:"",binRelativeDir:"bin",binFileName:(0,nG.addExeExt)("clang"),extractFunction:"win32"===t?eE:(e,t)=>eS(e,t,["--strip-components=1"])};}async function tk(e,t,r){let n=await aB(e,t,r);return await tF(n.installDir??t),n;}async function tD(e,t,r){let[n,i,o]=await Promise.all([tU(e,t,r),aH(r),tB()]);return n;}async function tU(e,t,r,n=iE.All){let i=function(e){if(null===c(ir)(e))try{let t=c(n3)(e);if(null!==t)return(0,ry.info)(`Coerced version '${e}' to '${t}'`),t.version;}catch(e){}return e;}(e),o=parseInt(i.split(".")[0],10);try{if(en())return await tC(o,n);}catch(e){(0,ry.info)("Failed to install llvm via system package manager "+e);}let s=await ev("llvm",e,tL,t,r);return await aG(o),s;}async function tj(e){en()&&(e<=10?await U([{name:"libtinfo5"}]):await U([{name:"libtinfo-dev"}]));}async function tM(e){"linux"===process.platform&&(await ts(eW("gcc",void 0,await ap()),"",e));}async function tF(e){let t=process.env.LD_LIBRARY_PATH??"",r=process.env.DYLD_LIBRARY_PATH??"",n=[P("LLVM_PATH",e),P("LD_LIBRARY_PATH",`${e}/lib${i_.delimiter}${t}`),P("DYLD_LIBRARY_PATH",`${e}/lib${i_.delimiter}${r}`),P("LDFLAGS",`-L"${e}/lib"`),P("CPPFLAGS",`-I"${e}/include"`),P("CC",(0,nG.addExeExt)(`${e}/bin/clang`)),P("CXX",(0,nG.addExeExt)(`${e}/bin/clang++`)),P("LIBRARY_PATH",`${e}/lib`),ti()];en()&&n.push(X("cc",`${e}/bin/clang`),X("cxx",`${e}/bin/clang++`),X("clang",`${e}/bin/clang`),X("clang++",`${e}/bin/clang++`),X("lld",`${e}/bin/lld`),X("ld.lld",`${e}/bin/ld.lld`),X("llvm-ar",`${e}/bin/llvm-ar`)),await Promise.all(n);}async function tB(){if(rv.GITHUB_ACTIONS){let e=(0,nG.join)(ib,"llvm_matcher.json");if(!(await(0,nA.pathExists)(e)))return(0,ry.warning)("the llvm_matcher.json file does not exist in the same folder as setup-cpp.js");(0,ry.info)("::add-matcher::"+e);}}async function tG(e,t,r){switch(process.platform){case"win32":return Q("make",e);case"darwin":return await Y("make",e),await A("/usr/local/opt/make/libexec/gnubin"),{binDir:"/usr/local/opt/make/libexec/gnubin"};case"linux":if(Z())return eo("make",e);if(ee())return et([{name:"make",version:e}]);if(en())return U([{name:"make",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function tH(e,t,r,n,i,o){let s,a;if("win32"!==process.platform)return;let l=il(e);(0,ry.info)(`Checking if MSVC ${l} is already installed`);let c=!1;try{let e=ic(l);c=!0,(0,ry.info)("Found the pre-installed version of MSVC at "+e);}catch{}if(!c)try{"14.0"===l?(s="14.0",await Q("visualcpp-build-tools","14.0.25420.1",["--ignore-dependencies"]),a="C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140"):"15.0"===l?(s="14.16",await Q("visualstudio2017buildtools","15.9.41.0",[]),a="C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16"):"16.0"===l?(s="14.29",await Q("visualstudio2019buildtools","16.11.7.0",[]),a="C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133"):"17.0"===l?(s=void 0,await Q("visualstudio2022buildtools","117.0.5.0",[]),a=void 0):(0,ry.error)(`The given MSVC versions ${e} is not supported yet.`);}catch(e){(0,ry.error)(e);}await t$(l,a,r,s,n,i,o),rv.GITHUB_ACTIONS&&(await tV());}async function tV(){let e=(0,nG.join)(iS,"msvc_matcher.json");if(!(await(0,nA.pathExists)(e)))return(0,ry.warning)("the msvc_matcher.json file does not exist in the same folder as setup-cpp.js");(0,ry.info)("::add-matcher::"+e);}async function tq(e,t,r){if(!en())return;if("string"==typeof i)return{binDir:i};let n=c(nL).sync("nala",{nothrow:!0});if(null!==n)return{binDir:i=(0,nG.dirname)(n)};let o=await q("volian-archive-scar-unstable.gpg","https://deb.volian.org/volian/scar.key");v("/bin/bash",["-c",`echo "deb [signed-by=${o}] http://deb.volian.org/volian/ scar main" | tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list`]);try{"legacy"!==e?await U([{name:"nala"}],!0):await U([{name:"nala-legacy"}],!0);}catch(e){await U([{name:"nala-legacy"}],!0);}return{binDir:i="/usr/bin"};}async function tX(e,t,r){if("win32"!==process.platform)return;await Q("opencppcoverage",e);let n=await tK();return{binDir:n};}async function tK(){let e="C:/Program Files/OpenCppCoverage";return await A(e),e;}async function tz(e,t,r){switch(process.platform){case"win32":{await Q("powershell-core",e);let t="C:/Program Files/PowerShell/7";return await A(t),{binDir:t};}case"darwin":return Y("powershell",e,["--cask"]);case"linux":if(Z())return eo("powershell-bin",e,"yay");if(ee())return et([{name:"curl"}]),v("/bin/bash",["-c","curl https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo"]),et([{name:"powershell",version:e}]);if(en()){await U([{name:"curl"}]);let t=await ap(),r=`${t[0]}.0${t[1]}`;return v("curl",["-LJO",`https://packages.microsoft.com/config/ubuntu/${r}/packages-microsoft-prod.deb`]),v("dpkg",["-i","packages-microsoft-prod.deb"]),U([{name:"powershell",version:e}],!0);}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}function tW(e,t,r){var n;let i="win32"===(n=t)?"windows":n,o=function(e){switch(e){case"x64":return"amd64";case"ia32":case"x86":case"i386":case"x32":return"386";default:return e;}}(r),s="win32"===t;return{binRelativeDir:"",binFileName:(0,nG.addExeExt)("task"),extractedFolderName:"",extractFunction:s?eb:eS,url:`https://github.com/go-task/task/releases/download/v${e}/task_${i}_${o}.${s?"zip":"tar.gz"}`};}async function tY(e,t,r){return aV&&null!==c(nL).sync("vcpkg",{nothrow:!0})?{binDir:(0,nG.dirname)(c(nL).sync("vcpkg"))}:("linux"===process.platform&&(Z()?await Promise.all([eo("curl"),eo("zip"),eo("unzip"),eo("tar"),eo("git"),eo("pkg-config")]):ee()?await et([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}]):en()&&(await U([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}]))),(await(0,nA.pathExists)((0,nG.join)(t,(0,nG.addShExt)("bootstrap-vcpkg",".bat"))))?(0,ry.notice)(`Vcpkg folder already exists at ${t}. This might mean that ~/vcpkg is restored from the cache.`):I("git",["clone","https://github.com/microsoft/vcpkg"],{cwd:(0,nG.dirname)(t),stdio:"inherit"}),I((0,nG.addShExt)((0,nG.addShRelativePrefix)("bootstrap-vcpkg"),".bat"),{cwd:t,shell:!0,stdio:"inherit"}),R(t),await A(t),aV=!0,{binDir:t});}function tJ(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;}async function tQ(e,t,r,n,i,o,s){try{let{compiler:a,version:l}=function(e){let t=e.split("-"),r=t[0];if(1 in t){let e=t[1];return null!==c(ir)(e)||(0,ry.info)(`Invalid semver version ${e} used for the compiler.`),{compiler:r,version:e};}return{compiler:r,version:void 0};}(e);switch((0,nI.startGroup)(`Installing ${a} ${l??""}`),a){case"llvm":case"clang":case"clang++":{let e=await tk(eW("llvm",l,t),(0,i_.join)(r,"llvm"),n);await P("GCOV","llvm-cov gcov"),i.push(tJ("llvm",e));break;}case"gcc":case"mingw":case"cygwin":case"msys":{let e="mingw"===a?eW("mingw",l,t):eW("gcc",l,t),s="mingw"===a?await ta(e,(0,i_.join)(r,"gcc"),n):await ts(e,(0,i_.join)(r,"gcc"),n);o&&(await P("CPPFLAGS","")),await function(e){let t=c(ir)(e),r=null!==t?c(io)(t):e;return P("GCOV",""!==r?"gcov-"+r:"gcov");}(e),i.push(tJ("gcc",s));break;}case"cl":case"msvc":case"msbuild":case"vs":case"visualstudio":case"visualcpp":case"visualc++":{let e=await tH(eW("msvc",l,t),(0,i_.join)(r,"msvc"),n);o&&(await P("CPPFLAGS","")),i.push(tJ("msvc",e));break;}case"appleclang":case"applellvm":(0,nI.notice)("Assuming apple-clang is already installed"),await Promise.all([P("CC","clang"),P("CXX","clang++")]),i.push(tJ("apple-clang",void 0));break;default:s.push("Unsupported compiler "+a);}}catch(t){(0,ry.error)(t),s.push("Failed to install the "+e);}(0,nI.endGroup)();}async function tZ(e){let t,r,n=Promise.resolve();rv.GITHUB_ACTIONS||(n=b(),process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS="true");let i=function(e,t){t=t||{};var r,n,i,o,s,a={_:[]},l=0,c=0,u=0,d=(e=e||[]).length;let p=void 0!==t.alias,f=void 0!==t.unknown,h=void 0!==t.default;if(t.alias=t.alias||{},t.string=S(t.string),t.boolean=S(t.boolean),p)for(r in t.alias)for(l=0,n=t.alias[r]=S(t.alias[r]);l0;)for(c=(n=t.alias[t.boolean[l]]||[]).length;c-->0;)t.boolean.push(n[c]);for(l=t.string.length;l-->0;)for(c=(n=t.alias[t.string[l]]||[]).length;c-->0;)t.string.push(n[c]);if(h){for(r in t.default)if(o=typeof t.default[r],n=t.alias[r]=t.alias[r]||[],void 0!==t[o])for(t[o].push(r),l=0;ll;l++){if("--"===(i=e[l])){a._=a._.concat(e.slice(++l));break;}for(c=0;c0;)a[n.shift()]=a[r];return a;}(e,{string:[...aK,"timeout"],default:Object.fromEntries(aK.map(e=>[e,function(e){let t=(0,nI.getInput)(e.toLowerCase());if("false"!==t&&""!==t)return t;}(e)])),alias:{h:"help"},boolean:"help"});i.help&&((0,ry.info)(` 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. --timeout the timeout for the installation of each tool in minutes. By default it is 10 minutes. --compiler the 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 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 o=i.architecture??process.arch,s=process.env.SETUP_CPP_DIR??w(""),a=[],l=[],u=rE.create({autoloadLocales:!0});rE.addLocale(c(rb)),rw.addLocale(c(rx));let d=await ap();if(!function(e,t){let r=t.filter(t=>void 0!==e[t]),n=r.filter(t=>!eY(e[t])),i=n.length>=1?e[n[0]]:"true";return!n.some(t=>e[t]!==i)&&(r.forEach(t=>{e[t]=i;}),!0);}(i,["llvm","clangtidy","clangformat"]))return(0,ry.error)("The same version must be used for llvm, clangformat and clangtidy"),1;Z()&&"string"==typeof i.cppcheck&&"string"==typeof i.gcovr&&((0,ry.info)("installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux"),await eo("python-pygments"));let p=!1,f=!1;for(let e of aX){if(rv.isCI&&0!==l.length){f=!0;break;}let n=i[e];void 0!==n&&(t=Date.now(),p=await t_(e,n,d,o,s,a,l,6e4*parseFloat(i.timeout??"20")),r=Date.now(),(0,ry.info)("took "+(u.format(t,r)||"0 seconds")));}if(!f){let e=i.compiler;if(void 0!==e){let t=Date.now();await tQ(e,d,s,o,a,p,l);let r=Date.now();(0,ry.info)("took "+(u.format(t,r)||"0 seconds"));}}if(await D(),0===a.length&&0===l.length)return(0,ry.warning)("setup-cpp was called without any arguments. Nothing to do."),0;if(a.forEach(e=>(0,ry.success)(e)),l.forEach(e=>(0,ry.error)(e)),(0,ry.info)("setup-cpp finished"),!rv.GITHUB_ACTIONS)switch(process.platform){case"win32":(0,ry.warning)("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":(0,ry.warning)("Run `source ~/.cpprc` or restart your shell to update the environment.");}return await n,0===l.length?0:1;}var t0,t1,t2,t4,t3,t6,t5,t8,t7,t9,re,rt,rr,rn,ri,ro,rs,ra,rl,rc,ru,rd,rp,rf,rh,rm,rg,rv,ry,rw,rx,rE,rb,rS,r$,r_,rO,rC,rI,rT,rR,rP,rA,rN,rL,rk,rD,rU,rj,rM,rF,rB,rG,rH,rV,rq,rX,rK,rz,rW,rY,rJ,rQ,rZ,r0,r1,r2,r4,r3,r6,r5,r8,r7,r9,ne,nt,nr,nn,ni,no,ns,na,nl,nc,nu,nd,np,nf,nh,nm,ng,nv,ny,nw,nx,nE,nb,nS,n$,n_,nO,nC,nI,nT,nR,nP,nA,nN,nL,nk,nD,nU,nj,nM,nF,nB,nG,nH,nV,nq,nX,nK,nz,nW,nY,nJ,nQ,nZ,n0,n1,n2,n4,n3,n6,n5,n8,n7,n9,ie,it,ir,ii,io,is,ia,il,ic,iu,id,ip,ih,im,ig,iv,iy,iw,ix,iE,ib,iS,i$=require("os"),i_=require("path"),iO=require("fs"),iC=require("crypto"),iI=require("http"),iT=require("https");require("net"),t4=require("tls"),t3=require("events"),t6=require("assert"),t5=require("util"),t8=require("fs"),t7=require("child_process"),t9=require("string_decoder"),re=require("timers"),rt=require("buffer"),rr=require("stream"),rn=require("process"),ri=require("buffer"),ro=require("path"),rs=require("child_process"),ra=require("process"),rl=require("url"),rc=require("os"),ru=require("util"),rd=require("url"),rp=require("console"),rf="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},rh={},rm={},null==(rg=rf.parcelRequire810d)&&((rg=function(e){if(e in rh)return rh[e].exports;if(e in rm){var t=rm[e];delete rm[e];var r={id:e,exports:{}};return rh[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=function(e,t){rm[e]=t;},rf.parcelRequire810d=rg),rg.register("dTX7a",function(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(function(e){return!!i[e];}):Object.keys(e).every(function(t){return i[t]===e[t];});}r=rg("gjIAX");let i=process.env;Object.defineProperty(e.exports,"_vendors",{value:r.map(function(e){return e.constant;})}),e.exports.name=null,e.exports.isPR=null,r.forEach(function(t){let r=Array.isArray(t.env)?t.env:[t.env],o=r.every(function(e){return n(e);});if(e.exports[t.constant]=o,o)switch(e.exports.name=t.name,typeof t.pr){case"string":e.exports.isPR=!!i[t.pr];break;case"object":"env"in t.pr?e.exports.isPR=t.pr.env in i&&i[t.pr.env]!==t.pr.ne:"any"in t.pr?e.exports.isPR=t.pr.any.some(function(e){return!!i[e];}):e.exports.isPR=n(t.pr);break;default:e.exports.isPR=null;}}),e.exports.isCI=!!("false"!==i.CI&&(i.BUILD_ID||i.BUILD_NUMBER||i.CI||i.CI_APP_ID||i.CI_BUILD_ID||i.CI_BUILD_NUMBER||i.CI_NAME||i.CONTINUOUS_INTEGRATION||i.RUN_ID||e.exports.name));}),rg.register("gjIAX",function(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"}]');}),rg.register("ER74K",function(e,t){var r,n;function i(e){return n.GITHUB_ACTIONS?r.error(e):console.log(`\x1b[31m${e}\x1b[0m`);}function o(e){return console.log(`\x1b[32m${e}\x1b[0m`);}function s(e){return n.GITHUB_ACTIONS?r.warning(e):console.log(`\x1b[33m${e}\x1b[0m`);}function a(e){return n.GITHUB_ACTIONS?r.notice(e):console.log(`\x1b[94m${e}\x1b[0m`);}function c(e){return n.GITHUB_ACTIONS?r.info(e):console.log(e);}l(e.exports,"error",()=>i),l(e.exports,"success",()=>o),l(e.exports,"warning",()=>s),l(e.exports,"notice",()=>a),l(e.exports,"info",()=>c),r=rg("lcRzN"),n=rg("dTX7a");}),rg.register("lcRzN",function(e,t){var r,n,i,o,s,a,l,c,u,d,p,f;function h(e,t){let 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 m(e,t={}){s.issueCommand("error",l.toCommandProperties(t),e instanceof Error?e.toString():e);}function g(e){s.issue("group",e);}function v(){s.issue("endgroup");}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(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||function(e,t,r,n){return new(r||(r=Promise))(function(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(function(e){e(t);})).then(s,a);}l((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,s=rg("17SLf"),a=rg("7PXQQ"),l=rg("6L1x9");let y=i(i$),w=i(i_);c=rg("5n2X4"),(f=u=e.exports.ExitCode||(e.exports.ExitCode={}))[f.Success=0]="Success",f[f.Failure=1]="Failure",e.exports.exportVariable=function(e,t){let r=l.toCommandValue(t);process.env[e]=r;let n=process.env.GITHUB_ENV||"";if(n)return a.issueFileCommand("ENV",a.prepareKeyValueMessage(e,t));s.issueCommand("set-env",{name:e},r);},e.exports.setSecret=function(e){s.issueCommand("add-mask",{},e);},e.exports.addPath=function(e){let t=process.env.GITHUB_PATH||"";t?a.issueFileCommand("PATH",e):s.issueCommand("add-path",{},e),process.env.PATH=`${e}${w.delimiter}${process.env.PATH}`;},e.exports.getInput=h,e.exports.getMultilineInput=function(e,t){let r=h(e,t).split("\n").filter(e=>""!==e);return t&&!1===t.trimWhitespace?r:r.map(e=>e.trim());},e.exports.getBooleanInput=function(e,t){let r=h(e,t);if(["true","True","TRUE"].includes(r))return!0;if(["false","False","FALSE"].includes(r))return!1;throw TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e} Support boolean input list: \`true | True | TRUE | false | False | FALSE\``);},e.exports.setOutput=function(e,t){let r=process.env.GITHUB_OUTPUT||"";if(r)return a.issueFileCommand("OUTPUT",a.prepareKeyValueMessage(e,t));process.stdout.write(y.EOL),s.issueCommand("set-output",{name:e},l.toCommandValue(t));},e.exports.setCommandEcho=function(e){s.issue("echo",e?"on":"off");},e.exports.setFailed=function(e){process.exitCode=u.Failure,m(e);},e.exports.isDebug=function(){return"1"===process.env.RUNNER_DEBUG;},e.exports.debug=function(e){s.issueCommand("debug",{},e);},e.exports.error=m,e.exports.warning=function(e,t={}){s.issueCommand("warning",l.toCommandProperties(t),e instanceof Error?e.toString():e);},e.exports.notice=function(e,t={}){s.issueCommand("notice",l.toCommandProperties(t),e instanceof Error?e.toString():e);},e.exports.info=function(e){process.stdout.write(e+y.EOL);},e.exports.startGroup=g,e.exports.endGroup=v,e.exports.group=function(e,t){return o(this,void 0,void 0,function*(){let r;g(e);try{r=yield t();}finally{v();}return r;});},e.exports.saveState=function(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=function(e){return process.env["STATE_"+e]||"";},e.exports.getIDToken=function(e){return o(this,void 0,void 0,function*(){return yield c.OidcClient.getIDToken(e);});},d=rg("4rwlm"),Object.defineProperty(e.exports,"summary",{enumerable:!0,get:function(){return d.summary;}}),d=rg("4rwlm"),Object.defineProperty(e.exports,"markdownSummary",{enumerable:!0,get:function(){return d.markdownSummary;}}),p=rg("3jp5d"),Object.defineProperty(e.exports,"toPosixPath",{enumerable:!0,get:function(){return p.toPosixPath;}}),Object.defineProperty(e.exports,"toWin32Path",{enumerable:!0,get:function(){return p.toWin32Path;}}),Object.defineProperty(e.exports,"toPlatformPath",{enumerable:!0,get:function(){return p.toPlatformPath;}});}),rg.register("17SLf",function(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);}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(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(i$);o=rg("6L1x9"),e.exports.issueCommand=s,e.exports.issue=function(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")));}}}),rg.register("6L1x9",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toCommandProperties=e.exports.toCommandValue=void 0,e.exports.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e);},e.exports.toCommandProperties=function(e){return Object.keys(e).length?{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}:{};};}),rg.register("7PXQQ",function(e,t){var r,n,i,o,s;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(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.prepareKeyValueMessage=e.exports.issueFileCommand=void 0;let a=i(iO),l=i(i$);o=rg("4dndm"),s=rg("6L1x9"),e.exports.issueFileCommand=function(e,t){let r=process.env["GITHUB_"+e];if(!r)throw Error("Unable to find environment variable for file command "+e);if(!a.existsSync(r))throw Error("Missing file at path: "+r);a.appendFileSync(r,`${s.toCommandValue(t)}${l.EOL}`,{encoding:"utf8"});},e.exports.prepareKeyValueMessage=function(e,t){let r="ghadelimiter_"+o.default(),n=s.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}${l.EOL}${n}${l.EOL}${r}`;};}),rg.register("4dndm",function(e,t){var r,n,i;l(e.exports,"default",()=>i),r=rg("5SVBN"),n=rg("38Etc"),i=function(e,t,i){e=e||{};let o=e.random||(e.rng||(0,r.default))();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){i=i||0;for(let e=0;e<16;++e)t[i+e]=o[e];return t;}return(0,n.default)(o);};}),rg.register("5SVBN",function(e,t){function r(){return i>n.length-16&&(c(iC).randomFillSync(n),i=0),n.slice(i,i+=16);}l(e.exports,"default",()=>r);let n=new Uint8Array(256),i=n.length;}),rg.register("38Etc",function(e,t){var r,n;l(e.exports,"default",()=>n),r=rg("f9HAa");let i=[];for(let e=0;e<256;++e)i.push((e+256).toString(16).substr(1));n=function(e,t=0){let n=(i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]).toLowerCase();if(!(0,r.default)(n))throw TypeError("Stringified UUID is invalid");return n;};}),rg.register("f9HAa",function(e,t){var r,n;l(e.exports,"default",()=>n),r=rg("bpRYF"),n=function(e){return"string"==typeof e&&(0,r.default).test(e);};}),rg.register("bpRYF",function(e,t){l(e.exports,"default",()=>r);var r=/^(?:[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;}),rg.register("5n2X4",function(e,t){var r=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(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(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.OidcClient=void 0;var n=rg("iC7fc"),i=rg("gaCjs"),o=rg("lcRzN");class s{static createHttpClient(e=!0,t=10){return new n.HttpClient("actions/oidc-client",[new i.BearerCredentialHandler(s.getRequestToken())],{allowRetries:e,maxRetries:t});}static getRequestToken(){let 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(){let 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*(){let r=s.createHttpClient(),n=yield r.getJson(e).catch(e=>{throw Error(`Failed to get ID Token. 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,function*(){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;}),rg.register("iC7fc",function(e,t){var r,n,i,o,s,a,l,c,u;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(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||function(e,t,r,n){return new(r||(r=Promise))(function(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(function(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 d=i(iI),p=i(iT),f=i(rg("9ws9E")),h=i(rg("eYDoL"));(c=s=e.exports.HttpCodes||(e.exports.HttpCodes={}))[c.OK=200]="OK",c[c.MultipleChoices=300]="MultipleChoices",c[c.MovedPermanently=301]="MovedPermanently",c[c.ResourceMoved=302]="ResourceMoved",c[c.SeeOther=303]="SeeOther",c[c.NotModified=304]="NotModified",c[c.UseProxy=305]="UseProxy",c[c.SwitchProxy=306]="SwitchProxy",c[c.TemporaryRedirect=307]="TemporaryRedirect",c[c.PermanentRedirect=308]="PermanentRedirect",c[c.BadRequest=400]="BadRequest",c[c.Unauthorized=401]="Unauthorized",c[c.PaymentRequired=402]="PaymentRequired",c[c.Forbidden=403]="Forbidden",c[c.NotFound=404]="NotFound",c[c.MethodNotAllowed=405]="MethodNotAllowed",c[c.NotAcceptable=406]="NotAcceptable",c[c.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",c[c.RequestTimeout=408]="RequestTimeout",c[c.Conflict=409]="Conflict",c[c.Gone=410]="Gone",c[c.TooManyRequests=429]="TooManyRequests",c[c.InternalServerError=500]="InternalServerError",c[c.NotImplemented=501]="NotImplemented",c[c.BadGateway=502]="BadGateway",c[c.ServiceUnavailable=503]="ServiceUnavailable",c[c.GatewayTimeout=504]="GatewayTimeout",(u=a=e.exports.Headers||(e.exports.Headers={})).Accept="accept",u.ContentType="content-type",(l=e.exports.MediaTypes||(e.exports.MediaTypes={})).ApplicationJson="application/json",e.exports.getProxyUrl=function(e){let t=f.getProxyUrl(new URL(e));return t?t.href:"";};let m=[s.MovedPermanently,s.ResourceMoved,s.SeeOther,s.TemporaryRedirect,s.PermanentRedirect],g=[s.BadGateway,s.ServiceUnavailable,s.GatewayTimeout],v=["OPTIONS","GET","DELETE","HEAD"];class y extends Error{constructor(e,t){super(e),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,y.prototype);}}e.exports.HttpClientError=y;class w{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());});}));});}readBodyBuffer(){return o(this,void 0,void 0,function*(){return new Promise(e=>o(this,void 0,void 0,function*(){let t=[];this.message.on("data",e=>{t.push(e);}),this.message.on("end",()=>{e(Buffer.concat(t));});}));});}}e.exports.HttpClientResponse=w,e.exports.isHttps=function(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,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 o(this,void 0,void 0,function*(){return this.request("OPTIONS",e,null,t||{});});}get(e,t){return o(this,void 0,void 0,function*(){return this.request("GET",e,null,t||{});});}del(e,t){return o(this,void 0,void 0,function*(){return this.request("DELETE",e,null,t||{});});}post(e,t,r){return o(this,void 0,void 0,function*(){return this.request("POST",e,t,r||{});});}patch(e,t,r){return o(this,void 0,void 0,function*(){return this.request("PATCH",e,t,r||{});});}put(e,t,r){return o(this,void 0,void 0,function*(){return this.request("PUT",e,t,r||{});});}head(e,t){return o(this,void 0,void 0,function*(){return this.request("HEAD",e,null,t||{});});}sendStream(e,t,r,n){return o(this,void 0,void 0,function*(){return this.request(e,t,r,n);});}getJson(e,t={}){return o(this,void 0,void 0,function*(){t[a.Accept]=this._getExistingOrDefaultHeader(t,a.Accept,l.ApplicationJson);let r=yield this.get(e,t);return this._processResponse(r,this.requestOptions);});}postJson(e,t,r={}){return o(this,void 0,void 0,function*(){let n=JSON.stringify(t,null,2);r[a.Accept]=this._getExistingOrDefaultHeader(r,a.Accept,l.ApplicationJson),r[a.ContentType]=this._getExistingOrDefaultHeader(r,a.ContentType,l.ApplicationJson);let i=yield this.post(e,n,r);return this._processResponse(i,this.requestOptions);});}putJson(e,t,r={}){return o(this,void 0,void 0,function*(){let n=JSON.stringify(t,null,2);r[a.Accept]=this._getExistingOrDefaultHeader(r,a.Accept,l.ApplicationJson),r[a.ContentType]=this._getExistingOrDefaultHeader(r,a.ContentType,l.ApplicationJson);let i=yield this.put(e,n,r);return this._processResponse(i,this.requestOptions);});}patchJson(e,t,r={}){return o(this,void 0,void 0,function*(){let n=JSON.stringify(t,null,2);r[a.Accept]=this._getExistingOrDefaultHeader(r,a.Accept,l.ApplicationJson),r[a.ContentType]=this._getExistingOrDefaultHeader(r,a.ContentType,l.ApplicationJson);let i=yield this.patch(e,n,r);return this._processResponse(i,this.requestOptions);});}request(e,t,r,n){return o(this,void 0,void 0,function*(){let i;if(this._disposed)throw Error("Client has already been disposed.");let o=new URL(t),a=this._prepareRequest(e,o,n),l=this._allowRetries&&v.includes(e)?this._maxRetries+1:1,c=0;do{if((i=yield this.requestRaw(a,r))&&i.message&&i.message.statusCode===s.Unauthorized){let e;for(let t of this.handlers)if(t.canHandleAuthentication(i)){e=t;break;}if(e)return e.handleAuthentication(this,a,r);break;}let t=this._maxRedirects;for(;i.message.statusCode&&m.includes(i.message.statusCode)&&this._allowRedirects&&t>0;){let s=i.message.headers.location;if(!s)break;let l=new URL(s);if("https:"===o.protocol&&o.protocol!==l.protocol&&!this._allowRedirectDowngrade)throw Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");if(yield i.readBody(),l.hostname!==o.hostname)for(let e in n)"authorization"===e.toLowerCase()&&delete n[e];a=this._prepareRequest(e,l,n),i=yield this.requestRaw(a,r),t--;}if(!i.message.statusCode||!g.includes(i.message.statusCode))break;(c+=1){this.requestRawWithCallback(e,t,function(e,t){e?n(e):t?r(t):n(Error("Unknown error"));});});});}requestRawWithCallback(e,t,r){let n;function i(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,s=e.httpModule.request(e.options,e=>{let t=new w(e);i(void 0,t);});s.on("socket",e=>{n=e;}),s.setTimeout(this._socketTimeout||18e4,()=>{n&&n.end(),i(Error("Request timeout: "+e.options.path));}),s.on("error",function(e){i(e);}),t&&"string"==typeof t&&s.write(t,"utf8"),t&&"string"!=typeof t?(t.on("close",function(){s.end();}),t.pipe(s)):s.end();}getAgent(e){let t=new URL(e);return this._getAgent(t);}_prepareRequest(e,t,r){let n={};n.parsedUrl=t;let i="https:"===n.parsedUrl.protocol;if(n.httpModule=i?p:d,n.options={},n.options.host=n.parsedUrl.hostname,n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):i?443:80,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(let e of this.handlers)e.prepareRequest(n.options);return n;}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},x(this.requestOptions.headers),x(e||{})):x(e||{});}_getExistingOrDefaultHeader(e,t,r){let n;return this.requestOptions&&this.requestOptions.headers&&(n=x(this.requestOptions.headers)[t]),e[t]||n||r;}_getAgent(e){let t;let r=f.getProxyUrl(e),n=r&&r.hostname;if(this._keepAlive&&n&&(t=this._proxyAgent),this._keepAlive&&!n&&(t=this._agent),t)return t;let i="https:"===e.protocol,o=100;if(this.requestOptions&&(o=this.requestOptions.maxSockets||d.globalAgent.maxSockets),r&&r.hostname){let e;let n={maxSockets:o,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(r.username||r.password)&&{proxyAuth:`${r.username}:${r.password}`}),{host:r.hostname,port:r.port})},s="https:"===r.protocol;t=(i?s?h.httpsOverHttps:h.httpsOverHttp:s?h.httpOverHttps:h.httpOverHttp)(n),this._proxyAgent=t;}if(this._keepAlive&&!t){let e={keepAlive:this._keepAlive,maxSockets:o};t=i?new p.Agent(e):new d.Agent(e),this._agent=t;}return t||(t=i?p.globalAgent:d.globalAgent),i&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t;}_performExponentialBackoff(e){return o(this,void 0,void 0,function*(){e=Math.min(10,e);let t=5*Math.pow(2,e);return new Promise(e=>setTimeout(()=>e(),t));});}_processResponse(e,t){return o(this,void 0,void 0,function*(){return new Promise((r,n)=>o(this,void 0,void 0,function*(){let i,o;let a=e.message.statusCode||0,l={statusCode:a,result:null,headers:{}};a===s.NotFound&&r(l);try{(o=yield e.readBody())&&o.length>0&&(i=t&&t.deserializeDates?JSON.parse(o,function(e,t){if("string"==typeof t){let e=new Date(t);if(!isNaN(e.valueOf()))return e;}return t;}):JSON.parse(o),l.result=i),l.headers=e.message.headers;}catch(e){}if(a>299){let e;e=i&&i.message?i.message:o&&o.length>0?o:`Failed request: (${a})`;let t=new y(e,a);t.result=l.result,n(t);}else r(l);}));});}};let x=e=>Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});}),rg.register("9ws9E",function(e,t){function r(e){let t;if(!e.hostname)return!1;let r=e.hostname;if(function(e){let t=e.toLowerCase();return"localhost"===t||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]");}(r))return!0;let n=process.env.no_proxy||process.env.NO_PROXY||"";if(!n)return!1;e.port?t=+e.port:"http:"===e.protocol?t=80:"https:"===e.protocol&&(t=443);let i=[e.hostname.toUpperCase()];for(let e of("number"==typeof t&&i.push(`${i[0]}:${t}`),n.split(",").map(e=>e.trim().toUpperCase()).filter(e=>e)))if("*"===e||i.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=function(e){let t="https:"===e.protocol;if(r(e))return;let n=t?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(n)try{return new URL(n);}catch(e){if(!n.startsWith("http://")&&!n.startsWith("https://"))return new URL("http://"+n);}},e.exports.checkBypass=r;}),rg.register("eYDoL",function(e,t){e.exports=rg("gBbBa");}),rg.register("gBbBa",function(e,t){var r,n,i,o,s,a;function c(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||iI.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",function(e,r,n,i){for(var o=d(r,n,i),s=0,a=t.requests.length;a>s;++s){var l=t.requests[s];if(l.host===o.host&&l.port===o.port){t.requests.splice(s,1),l.request.onSocket(e);return;}}e.destroy(),t.removeSocket(e);});}function u(e,t){var r=this;c.prototype.createSocket.call(r,e,function(n){var i=e.request.getHeader("host"),o=p({},r.options,{socket:n,servername:i?i.replace(/:.*$/,""):e.host}),s=t4.connect(0,o);r.sockets[r.sockets.indexOf(n)]=s,t(s);});}function d(e,t,r){return"string"==typeof e?{host:e,port:t,localAddress:r}:e;}function p(e){for(var t=1,r=arguments.length;r>t;++t){var n=arguments[t];if("object"==typeof n)for(var i=Object.keys(n),o=0,s=i.length;s>o;++o){var a=i[o];void 0!==n[a]&&(e[a]=n[a]);}}return e;}l(e.exports,"httpOverHttp",()=>r,e=>r=e),l(e.exports,"httpsOverHttp",()=>n,e=>n=e),l(e.exports,"httpOverHttps",()=>i,e=>i=e),l(e.exports,"httpsOverHttps",()=>o,e=>o=e),l(e.exports,"debug",()=>s,e=>s=e),r=function(e){var t=new c(e);return t.request=iI.request,t;},n=function(e){var t=new c(e);return t.request=iI.request,t.createSocket=u,t.defaultPort=443,t;},i=function(e){var t=new c(e);return t.request=iT.request,t;},o=function(e){var t=new c(e);return t.request=iT.request,t.createSocket=u,t.defaultPort=443,t;},t5.inherits(c,t3.EventEmitter),c.prototype.addRequest=function(e,t,r,n){var i=this,o=p({request:e},i.options,d(t,r,n));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return;}i.createSocket(o,function(t){function r(){i.emit("free",t,o);}function n(e){i.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);});},c.prototype.createSocket=function(e,t){function r(r,n,l){if(i.removeAllListeners(),n.removeAllListeners(),200!==r.statusCode){a("tunneling socket could not be established, statusCode=%d",r.statusCode),n.destroy();var c=Error("tunneling socket could not be established, statusCode="+r.statusCode);c.code="ECONNRESET",e.request.emit("error",c),o.removeSocket(s);return;}if(l.length>0){a("got illegal response body from proxy"),n.destroy();var c=Error("got illegal response body from proxy");c.code="ECONNRESET",e.request.emit("error",c),o.removeSocket(s);return;}return a("tunneling connection has established"),o.sockets[o.sockets.indexOf(s)]=n,t(n);}var n,i,o=this,s={};o.sockets.push(s),n=p({},o.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}}),e.localAddress&&(n.localAddress=e.localAddress),n.proxyAuth&&(n.headers=n.headers||{},n.headers["Proxy-Authorization"]="Basic "+new Buffer(n.proxyAuth).toString("base64")),a("making CONNECT request"),(i=o.request(n)).useChunkedEncodingByDefault=!1,i.once("response",function(e){e.upgrade=!0;}),i.once("upgrade",function(e,t,n){process.nextTick(function(){r(e,t,n);});}),i.once("connect",r),i.once("error",function(t){i.removeAllListeners(),a("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var r=Error("tunneling socket could not be established, cause="+t.message);r.code="ECONNRESET",e.request.emit("error",r),o.removeSocket(s);}),i.end();},c.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,function(e){r.request.onSocket(e);});}},s=a=process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments);"string"==typeof e[0]?e[0]="TUNNEL: "+e[0]:e.unshift("TUNNEL:"),console.error.apply(console,e);}:function(){};}),rg.register("gaCjs",function(e,t){var r=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(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(function(e){e(t);})).then(s,a);}l((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");});}};}),rg.register("4rwlm",function(e,t){var r=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(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(function(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}=iO.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,iO.constants.R_OK|iO.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}${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(i$.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;}),rg.register("3jp5d",function(e,t){var r,n,i;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(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.toPlatformPath=e.exports.toWin32Path=e.exports.toPosixPath=void 0;let o=i(i_);e.exports.toPosixPath=function(e){return e.replace(/[\\]/g,"/");},e.exports.toWin32Path=function(e){return e.replace(/[/]/g,"\\");},e.exports.toPlatformPath=function(e){return e.replace(/[/\\]/g,o.sep);};}),rg.register("fXZh0",function(e,t){var r=i_.resolve(__dirname,"../../node_modules/.pnpm/numerous@1.0.3/node_modules/numerous/lib");(function(){var t,n;function i(e,r,n){if(o(e),"object"!=typeof n)throw Error("List of variants should be specified as an object");var i=t[e](r);return void 0!==n[i]?n[i]:null;}function o(e){!(void 0!==t[e])&&function(e){try{require(r+"/../locales/"+e+".js");}catch(t){throw Error("Failed to load the following locale: "+e);}}(e);}t={},n={create:function(e){return o(e),{pluralize:function(t,r){return i(e,t,r);}};},addLocale:function(e,r){t[e]=r;},pluralize:i},void 0!==e.exports?e.exports=n:this.numerous=n;}).call(e.exports);}),rg.register("25uEY",function(e,t){function r(e){for(let t of(Array.isArray(e)||(e=[e]),e)){let{id:e,data:r}=t;a[e]=r;}}var n=rg("ggaxg"),i=rg("crMMK");let o=[["years",290304e5],["months",24192e5],["weeks",6048e5],["days",864e5],["hours",36e5],["minutes",6e4],["seconds",1e3]],s={locale:"en",span:2,delimiter:", ",unitType:"long",unitTypeLookupOrder:["long","short","narrow"],autoloadLocales:!0},a={};e.exports={create:function(e){return e=Object.assign({},s,e||{}),{format:function(t,s,l){return function(e,t,s){if(function(e,t){let{autoload:n}=t;if(!a[e]){if(i&&n)(function(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);else throw Error(`Missing locale: ${e}, you must load it manually before using it`);}}(s.locale,{autoload:s.autoloadLocales}),!e)throw Error("Missing first date argument");if(!t)throw Error("Missing second date argument");let l=function(e,t){let r=t-e,n=[];return o.some(function(e){let t=e[0],i=e[1],o=Math.floor(r/i);if(r-=o*i,n.push([t,o]),r<=0)return!0;}),n;}(e,t),c=[];for(let e of l){let[t,r]=e;if(r>0&&c.push(function(e,t,r){let i=function(e){var t;let r=a[e.locale],n=e.unitTypeLookupOrder.slice();n.unshift(e.unitType),t=n;let i=null;if((n=Array.from(new Set(t))).some(function(e){if(void 0!==r[e])return i=r[e],!0;}),null===i)throw Error("Can not find any unit type data for locale: "+e.locale);return i;}(r),o=n.pluralize(r.locale,t,i[e]);return o.replace("{0}",t);}(t,r,s)),c.length>=s.span)break;}return c.join(s.delimiter);}(t,s,l=Object.assign({},e,l||{}));}};},addLocale:r,defaultConfig:s};}),rg.register("ggaxg",function(e,t){e.exports=rg("fXZh0");}),rg.register("crMMK",function(e,t){e.exports=!!("undefined"!=typeof process&&process.versions&&process.versions.node);}),rg.register("a3PNV",function(e,t){function r(e,t,r){return!!(e.isSymbolicLink()||e.isFile())&&function(e,t){var r=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!r||-1!==(r=r.split(";")).indexOf(""))return!0;for(var n=0;n{for(let[t,r]of f)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e;},m=(e,t,r)=>{let n=h(t),i=d++;s(e,i,t),u[e]=i,c[i]=t,a[i]=new RegExp(t,r?"g":void 0),l[i]=new RegExp(n,r?"g":void 0);};m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),m("MAINVERSION",`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${c[u.NUMERICIDENTIFIER]}|${c[u.NONNUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${c[u.NUMERICIDENTIFIERLOOSE]}|${c[u.NONNUMERICIDENTIFIER]})`),m("PRERELEASE",`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${p}+`),m("BUILD",`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),m("FULL",`^${c[u.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),m("LOOSE",`^${c[u.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),m("XRANGE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),m("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),m("COERCERTL",c[u.COERCE],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${c[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",m("TILDE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${c[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",m("CARET",`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$");}),rg.register("juUXZ",function(e,t){let r=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:r,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};}),rg.register("3Zcn3",function(e,t){let r="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=r;}),rg.register("kxoMX",function(e,t){var r=rg("3Zcn3"),n=rg("juUXZ"),i=n.MAX_LENGTH,o=n.MAX_SAFE_INTEGER,s=rg("fB52W"),a=s.safeRe,l=s.t,c=rg("ifDVe"),u=rg("eT4Gq").compareIdentifiers;class d{constructor(e,t){if(t=c(t),e instanceof d){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;e=e.version;}else if("string"!=typeof e)throw TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>i)throw TypeError(`version is longer than ${i} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?a[l.LOOSE]:a[l.FULL]);if(!n)throw TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t=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.raw=this.format(),this.build.length&&(this.raw+="+"+this.build.join(".")),this;}}e.exports=d;}),rg.register("ifDVe",function(e,t){let r=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=e=>e?"object"!=typeof e?r:e:n;}),rg.register("eT4Gq",function(e,t){let r=(e,t)=>{let r=/^[0-9]+$/.test(e),n=/^[0-9]+$/.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:t>e?-1:1;};e.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)};}),rg.register("6moLM",function(e,t){var r=rg("kxoMX");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;}};}),rg.register("eJTZB",function(e,t){var r=rg("6moLM");e.exports=(e,t)=>{let n=r(e,t);return n?n.version:null;};}),rg.register("e3PGr",function(e,t){var r=rg("6moLM");e.exports=(e,t)=>{let n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null;};}),rg.register("dqKDW",function(e,t){var r=rg("kxoMX");e.exports=(e,t,n,i,o)=>{"string"==typeof n&&(o=i,i=n,n=void 0);try{return new r(e instanceof r?e.version:e,n).inc(t,i,o).version;}catch(e){return null;}};}),rg.register("gPIs5",function(e,t){var r=rg("6moLM");e.exports=(e,t)=>{let n=r(e,null,!0),i=r(t,null,!0),o=n.compare(i);if(0===o)return null;let s=o>0,a=s?n:i,l=s?i:n,c=!!a.prerelease.length,u=!!l.prerelease.length;if(u&&!c)return l.patch||l.minor?a.patch?"patch":a.minor?"minor":"major":"major";let d=c?"pre":"";return n.major!==i.major?d+"major":n.minor!==i.minor?d+"minor":n.patch!==i.patch?d+"patch":"prerelease";};}),rg.register("bX9Em",function(e,t){var r=rg("kxoMX");e.exports=(e,t)=>new r(e,t).major;}),rg.register("iAJEE",function(e,t){var r=rg("kxoMX");e.exports=(e,t)=>new r(e,t).minor;}),rg.register("fHTYs",function(e,t){var r=rg("kxoMX");e.exports=(e,t)=>new r(e,t).patch;}),rg.register("8PQ4n",function(e,t){var r=rg("6moLM");e.exports=(e,t)=>{let n=r(e,t);return n&&n.prerelease.length?n.prerelease:null;};}),rg.register("3Z6CK",function(e,t){var r=rg("kxoMX");e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n));}),rg.register("6WviK",function(e,t){var r=rg("3Z6CK");e.exports=(e,t,n)=>r(t,e,n);}),rg.register("8cCiP",function(e,t){var r=rg("3Z6CK");e.exports=(e,t)=>r(e,t,!0);}),rg.register("2JTVo",function(e,t){var r=rg("kxoMX");e.exports=(e,t,n)=>{let i=new r(e,n),o=new r(t,n);return i.compare(o)||i.compareBuild(o);};}),rg.register("bizdR",function(e,t){var r=rg("2JTVo");e.exports=(e,t)=>e.sort((e,n)=>r(e,n,t));}),rg.register("2lHfL",function(e,t){var r=rg("2JTVo");e.exports=(e,t)=>e.sort((e,n)=>r(n,e,t));}),rg.register("9XGBY",function(e,t){var r=rg("3Z6CK");e.exports=(e,t,n)=>r(e,t,n)>0;}),rg.register("2zuiw",function(e,t){var r=rg("3Z6CK");e.exports=(e,t,n)=>0>r(e,t,n);}),rg.register("bDcXu",function(e,t){var r=rg("3Z6CK");e.exports=(e,t,n)=>0===r(e,t,n);}),rg.register("lvpAe",function(e,t){var r=rg("3Z6CK");e.exports=(e,t,n)=>0!==r(e,t,n);}),rg.register("1um22",function(e,t){var r=rg("3Z6CK");e.exports=(e,t,n)=>r(e,t,n)>=0;}),rg.register("1ndHP",function(e,t){var r=rg("3Z6CK");e.exports=(e,t,n)=>0>=r(e,t,n);}),rg.register("7Dt1t",function(e,t){var r=rg("bDcXu"),n=rg("lvpAe"),i=rg("9XGBY"),o=rg("1um22"),s=rg("2zuiw"),a=rg("1ndHP");e.exports=(e,t,l,c)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof l&&(l=l.version),e===l;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof l&&(l=l.version),e!==l;case"":case"=":case"==":return r(e,l,c);case"!=":return n(e,l,c);case">":return i(e,l,c);case">=":return o(e,l,c);case"<":return s(e,l,c);case"<=":return a(e,l,c);default:throw TypeError("Invalid operator: "+t);}};}),rg.register("9hSY8",function(e,t){var r=rg("kxoMX"),n=rg("6moLM"),i=rg("fB52W"),o=i.safeRe,s=i.t;e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e+=""),"string"!=typeof e)return null;let i=null;if((t=t||{}).rtl){let t;for(;(t=o[s.COERCERTL].exec(e))&&(!i||i.index+i[0].length!==e.length);)i&&t.index+t[0].length===i.index+i[0].length||(i=t),o[s.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;o[s.COERCERTL].lastIndex=-1;}else i=e.match(o[s.COERCE]);return null===i?null:n(`${i[2]}.${i[3]||"0"}.${i[4]||"0"}`,t);};}),rg.register("ge7Lx",function(e,t){let r=Symbol();class n{static get ANY(){return r;}constructor(e,t){if(t=i(t),e instanceof n){if(!!t.loose===e.loose)return e;e=e.value;}c("comparator",e=e.trim().split(/\s+/).join(" "),t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,c("comp",this);}parse(e){let t=this.options.loose?s[a.COMPARATORLOOSE]:s[a.COMPARATOR],n=e.match(t);if(!n)throw TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new u(n[2],this.options.loose):this.semver=r;}toString(){return this.value;}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new u(e,this.options);}catch(e){return!1;}return l(e,this.operator,this.semver,this.options);}intersects(e,t){if(!(e instanceof n))throw TypeError("a Comparator is required");return""===this.operator?""===this.value||new d(e.value,t).test(this.value):""===e.operator?""===e.value||new d(this.value,t).test(e.semver):!((t=i(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">"));}}e.exports=n;var i=rg("ifDVe"),o=rg("fB52W"),s=o.safeRe,a=o.t,l=rg("7Dt1t"),c=rg("3Zcn3"),u=rg("kxoMX"),d=rg("gBfHp");}),rg.register("gBfHp",function(e,t){class r{constructor(e,t){if(t=o(t),e instanceof r){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;return new r(e.raw,t);}if(e instanceof s)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError("Invalid SemVer Range: "+this.raw);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!y(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(1===e.length&&w(e[0])){this.set=[e];break;}}}this.format();}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range;}toString(){return this.range;}parseRange(e){let t=(this.options.includePrerelease&&g)|(this.options.loose&&v),r=t+":"+e,n=i.get(r);if(n)return n;let o=this.options.loose,l=o?u[d.HYPHENRANGELOOSE]:u[d.HYPHENRANGE];a("hyphen replace",e=e.replace(l,P(this.options.includePrerelease))),a("comparator trim",e=e.replace(u[d.COMPARATORTRIM],p)),a("tilde trim",e=e.replace(u[d.TILDETRIM],f)),a("caret trim",e=e.replace(u[d.CARETTRIM],h));let c=e.split(" ").map(e=>E(e,this.options)).join(" ").split(/\s+/).map(e=>R(e,this.options));o&&(c=c.filter(e=>(a("loose invalid filter",e,this.options),!!e.match(u[d.COMPARATORLOOSE])))),a("range list",c);let m=new Map(),w=c.map(e=>new s(e,this.options));for(let e of w){if(y(e))return[e];m.set(e.value,e);}m.size>1&&m.has("")&&m.delete("");let x=[...m.values()];return i.set(r,x),x;}intersects(e,t){if(!(e instanceof r))throw TypeError("a Range is required");return this.set.some(r=>x(r,t)&&e.set.some(e=>x(e,t)&&r.every(r=>e.every(e=>r.intersects(e,t)))));}test(e){if(!e)return!1;if("string"==typeof e)try{e=new l(e,this.options);}catch(e){return!1;}for(let t=0;t"<0.0.0-0"===e.value,w=e=>""===e.value,x=(e,t)=>{let r=!0,n=e.slice(),i=n.pop();for(;r&&n.length;)r=n.every(e=>i.intersects(e,t)),i=n.pop();return r;},E=(e,t)=>(a("comp",e,t),a("caret",e=_(e,t)),a("tildes",e=S(e,t)),a("xrange",e=C(e,t)),a("stars",e=T(e,t)),e),b=e=>!e||"x"===e.toLowerCase()||"*"===e,S=(e,t)=>e.trim().split(/\s+/).map(e=>$(e,t)).join(" "),$=(e,t)=>{let r=t.loose?u[d.TILDELOOSE]:u[d.TILDE];return e.replace(r,(t,r,n,i,o)=>{let s;return a("tilde",e,t,r,n,i,o),b(r)?s="":b(n)?s=`>=${r}.0.0 <${+r+1}.0.0-0`:b(i)?s=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:o?(a("replaceTilde pr",o),s=`>=${r}.${n}.${i}-${o} <${r}.${+n+1}.0-0`):s=`>=${r}.${n}.${i} <${r}.${+n+1}.0-0`,a("tilde return",s),s;});},_=(e,t)=>e.trim().split(/\s+/).map(e=>O(e,t)).join(" "),O=(e,t)=>{a("caret",e,t);let r=t.loose?u[d.CARETLOOSE]:u[d.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(t,r,i,o,s)=>{let l;return a("caret",e,t,r,i,o,s),b(r)?l="":b(i)?l=`>=${r}.0.0${n} <${+r+1}.0.0-0`:b(o)?l="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:s?(a("replaceCaret pr",s),l="0"===r?"0"===i?`>=${r}.${i}.${o}-${s} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}-${s} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o}-${s} <${+r+1}.0.0-0`):(a("no pr"),l="0"===r?"0"===i?`>=${r}.${i}.${o}${n} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o} <${+r+1}.0.0-0`),a("caret return",l),l;});},C=(e,t)=>(a("replaceXRanges",e,t),e.split(/\s+/).map(e=>I(e,t)).join(" ")),I=(e,t)=>{e=e.trim();let r=t.loose?u[d.XRANGELOOSE]:u[d.XRANGE];return e.replace(r,(r,n,i,o,s,l)=>{a("xRange",e,r,n,i,o,s,l);let c=b(i),u=c||b(o),d=u||b(s);return"="===n&&d&&(n=""),l=t.includePrerelease?"-0":"",c?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&d?(u&&(o=0),s=0,">"===n?(n=">=",u?(i=+i+1,o=0):o=+o+1,s=0):"<="===n&&(n="<",u?i=+i+1:o=+o+1),"<"===n&&(l="-0"),r=`${n+i}.${o}.${s}${l}`):u?r=`>=${i}.0.0${l} <${+i+1}.0.0-0`:d&&(r=`>=${i}.${o}.0${l} <${i}.${+o+1}.0-0`),a("xRange return",r),r;});},T=(e,t)=>(a("replaceStars",e,t),e.trim().replace(u[d.STAR],"")),R=(e,t)=>(a("replaceGTE0",e,t),e.trim().replace(u[t.includePrerelease?d.GTE0PRE:d.GTE0],"")),P=e=>(t,r,n,i,o,s,a,l,c,u,d,p,f)=>`${r=b(n)?"":b(i)?`>=${n}.0.0${e?"-0":""}`:b(o)?`>=${n}.${i}.0${e?"-0":""}`:s?">="+r:`>=${r}${e?"-0":""}`} ${l=b(c)?"":b(u)?`<${+c+1}.0.0-0`:b(d)?`<${c}.${+u+1}.0-0`:p?`<=${c}.${u}.${d}-${p}`:e?`<${c}.${u}.${+d+1}-0`:"<="+l}`.trim(),A=(e,t,r)=>{for(let r=0;r0){let n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0;}return!1;}return!0;};}),rg.register("l6u7r",function(e,t){var r=rg("hDmTp");let n=Symbol(),i=Symbol(),o=Symbol(),s=Symbol(),a=Symbol(),l=Symbol(),c=Symbol(),u=Symbol(),d=Symbol(),p=Symbol(),f=()=>1,h=(e,t,r)=>{let n=e[d].get(t);if(n){let t=n.value;if(m(e,t)){if(v(e,n),!e[s])return;}else r&&(e[p]&&(n.value.now=Date.now()),e[u].unshiftNode(n));return t.value;}},m=(e,t)=>{if(!t||!t.maxAge&&!e[a])return!1;let r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[a]&&r>e[a];},g=e=>{if(e[i]>e[n])for(let t=e[u].tail;e[i]>e[n]&&null!==t;){let r=t.prev;v(e,t),t=r;}},v=(e,t)=>{if(t){let r=t.value;e[l]&&e[l](r.key,r.value),e[i]-=r.length,e[d].delete(r.key),e[u].removeNode(t);}};class y{constructor(e,t,r,n,i){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=i||0;}}let w=(e,t,r,n)=>{let i=r.value;m(e,i)&&(v(e,r),e[s]||(i=void 0)),i&&t.call(n,i.value,i.key,e);};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw TypeError("max must be a non-negative number");this[n]=e.max||1/0;let t=e.length||f;if(this[o]="function"!=typeof t?f:t,this[s]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw TypeError("maxAge must be a number");this[a]=e.maxAge||0,this[l]=e.dispose,this[c]=e.noDisposeOnSet||!1,this[p]=e.updateAgeOnGet||!1,this.reset();}set max(e){if("number"!=typeof e||e<0)throw TypeError("max must be a non-negative number");this[n]=e||1/0,g(this);}get max(){return this[n];}set allowStale(e){this[s]=!!e;}get allowStale(){return this[s];}set maxAge(e){if("number"!=typeof e)throw TypeError("maxAge must be a non-negative number");this[a]=e,g(this);}get maxAge(){return this[a];}set lengthCalculator(e){"function"!=typeof e&&(e=f),e!==this[o]&&(this[o]=e,this[i]=0,this[u].forEach(e=>{e.length=this[o](e.value,e.key),this[i]+=e.length;})),g(this);}get lengthCalculator(){return this[o];}get length(){return this[i];}get itemCount(){return this[u].length;}rforEach(e,t){t=t||this;for(let r=this[u].tail;null!==r;){let n=r.prev;w(this,e,r,t),r=n;}}forEach(e,t){t=t||this;for(let r=this[u].head;null!==r;){let n=r.next;w(this,e,r,t),r=n;}}keys(){return this[u].toArray().map(e=>e.key);}values(){return this[u].toArray().map(e=>e.value);}reset(){this[l]&&this[u]&&this[u].length&&this[u].forEach(e=>this[l](e.key,e.value)),this[d]=new Map(),this[u]=new r(),this[i]=0;}dump(){return this[u].map(e=>!m(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e);}dumpLru(){return this[u];}set(e,t,r){if((r=r||this[a])&&"number"!=typeof r)throw TypeError("maxAge must be a number");let s=r?Date.now():0,p=this[o](t,e);if(this[d].has(e)){if(p>this[n])return v(this,this[d].get(e)),!1;let o=this[d].get(e),a=o.value;return this[l]&&!this[c]&&this[l](e,a.value),a.now=s,a.maxAge=r,a.value=t,this[i]+=p-a.length,a.length=p,this.get(e),g(this),!0;}let f=new y(e,t,p,s,r);return f.length>this[n]?(this[l]&&this[l](e,t),!1):(this[i]+=f.length,this[u].unshift(f),this[d].set(e,this[u].head),g(this),!0);}has(e){if(!this[d].has(e))return!1;let t=this[d].get(e).value;return!m(this,t);}get(e){return h(this,e,!0);}peek(e){return h(this,e,!1);}pop(){let e=this[u].tail;return e?(v(this,e),e.value):null;}del(e){v(this,this[d].get(e));}load(e){this.reset();let t=Date.now();for(let r=e.length-1;r>=0;r--){let n=e[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{let e=i-t;e>0&&this.set(n.k,n.v,e);}}}prune(){this[d].forEach((e,t)=>h(this,t,!1));}};}),rg.register("hDmTp",function(e,t){function r(e){var t=this;if(t instanceof r||(t=new r()),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach(function(e){t.push(e);});else if(arguments.length>0)for(var n=0,i=arguments.length;i>n;n++)t.push(arguments[n]);return t;}function n(e,t,r,i){if(!(this instanceof n))return new n(e,t,r,i);this.list=i,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null;}e.exports=r,r.Node=n,r.create=r,r.prototype.removeNode=function(e){if(e.list!==this)throw Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t;},r.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++;}},r.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++;}},r.prototype.push=function(){for(var e,t=0,r=arguments.length;r>t;t++)e=arguments[t],this.tail=new n(e,this.tail,null,this),this.head||(this.head=this.tail),this.length++;return this.length;},r.prototype.unshift=function(){for(var e,t=0,r=arguments.length;r>t;t++)e=arguments[t],this.head=new n(e,null,this.head,this),this.tail||(this.tail=this.head),this.length++;return this.length;},r.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e;}},r.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e;}},r.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;null!==r;n++)e.call(t,r.value,n,this),r=r.next;},r.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;null!==r;n--)e.call(t,r.value,n,this),r=r.prev;},r.prototype.get=function(e){for(var t=0,r=this.head;null!==r&&e>t;t++)r=r.next;if(t===e&&null!==r)return r.value;},r.prototype.getReverse=function(e){for(var t=0,r=this.tail;null!==r&&e>t;t++)r=r.prev;if(t===e&&null!==r)return r.value;},r.prototype.map=function(e,t){t=t||this;for(var n=new r(),i=this.head;null!==i;)n.push(e.call(t,i.value,this)),i=i.next;return n;},r.prototype.mapReverse=function(e,t){t=t||this;for(var n=new r(),i=this.tail;null!==i;)n.push(e.call(t,i.value,this)),i=i.prev;return n;},r.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else if(this.head)n=this.head.next,r=this.head.value;else throw TypeError("Reduce of empty list with no initial value");for(var i=0;null!==n;i++)r=e(r,n.value,i),n=n.next;return r;},r.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;null!==n;i--)r=e(r,n.value,i),n=n.prev;return r;},r.prototype.toArray=function(){for(var e=Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e;},r.prototype.toArrayReverse=function(){for(var e=Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e;},r.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r();if(tthis.length&&(t=this.length);for(var i=0,o=this.head;null!==o&&ii;i++,o=o.next)n.push(o.value);return n;},r.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r();if(tthis.length&&(t=this.length);for(var i=this.length,o=this.tail;null!==o&&i>t;i--)o=o.prev;for(;null!==o&&i>e;i--,o=o.prev)n.push(o.value);return n;},r.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var i=0,o=this.head;null!==o&&e>i;i++)o=o.next;for(var s=[],i=0;o&&i{try{t=new r(t,n);}catch(e){return!1;}return t.test(e);};}),rg.register("eRxC5",function(e,t){var r=rg("gBfHp");e.exports=(e,t)=>new r(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "));}),rg.register("aWpPt",function(e,t){var r=rg("kxoMX"),n=rg("gBfHp");e.exports=(e,t,i)=>{let o=null,s=null,a=null;try{a=new n(t,i);}catch(e){return null;}return e.forEach(e=>{a.test(e)&&(!o||-1===s.compare(e))&&(o=e,s=new r(o,i));}),o;};}),rg.register("gGB3p",function(e,t){var r=rg("kxoMX"),n=rg("gBfHp");e.exports=(e,t,i)=>{let o=null,s=null,a=null;try{a=new n(t,i);}catch(e){return null;}return e.forEach(e=>{a.test(e)&&(!o||1===s.compare(e))&&(o=e,s=new r(o,i));}),o;};}),rg.register("hnV3l",function(e,t){var r=rg("kxoMX"),n=rg("gBfHp"),i=rg("9XGBY");e.exports=(e,t)=>{e=new n(e,t);let o=new r("0.0.0");if(e.test(o)||(o=new r("0.0.0-0"),e.test(o)))return o;o=null;for(let t=0;t{let t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!s||i(t,s))&&(s=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator);}}),s&&(!o||i(o,s))&&(o=s);}return o&&e.test(o)?o:null;};}),rg.register("3sVLb",function(e,t){var r=rg("gBfHp");e.exports=(e,t)=>{try{return new r(e,t).range||"*";}catch(e){return null;}};}),rg.register("iqmnd",function(e,t){var r=rg("kxoMX"),n=rg("ge7Lx");let{ANY:i}=n;var o=rg("gBfHp"),s=rg("gxgIF"),a=rg("9XGBY"),l=rg("2zuiw"),c=rg("1ndHP"),u=rg("1um22");e.exports=(e,t,d,p)=>{let f,h,m,g,v;switch(e=new r(e,p),t=new o(t,p),d){case">":f=a,h=c,m=l,g=">",v=">=";break;case"<":f=l,h=u,m=a,g="<",v="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"');}if(s(e,t,p))return!1;for(let r=0;r{e.semver===i&&(e=new n(">=0.0.0")),s=s||e,a=a||e,f(e.semver,s.semver,p)?s=e:m(e.semver,a.semver,p)&&(a=e);}),s.operator===g||s.operator===v||(!a.operator||a.operator===g)&&h(e,a.semver)||a.operator===v&&m(e,a.semver))return!1;}return!0;};}),rg.register("bl7vX",function(e,t){var r=rg("iqmnd");e.exports=(e,t,n)=>r(e,t,">",n);}),rg.register("1K9I5",function(e,t){var r=rg("iqmnd");e.exports=(e,t,n)=>r(e,t,"<",n);}),rg.register("2qx0f",function(e,t){var r=rg("gBfHp");e.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t,n));}),rg.register("k8BEA",function(e,t){var r=rg("gxgIF"),n=rg("3Z6CK");e.exports=(e,t,i)=>{let o=[],s=null,a=null,l=e.sort((e,t)=>n(e,t,i));for(let e of l){let n=r(e,t,i);n?(a=e,s||(s=e)):(a&&o.push([s,a]),a=null,s=null);}s&&o.push([s,null]);let c=[];for(let[e,t]of o)e===t?c.push(e):t||e!==l[0]?t?e===l[0]?c.push("<="+t):c.push(`${e} - ${t}`):c.push(">="+e):c.push("*");let u=c.join(" || "),d="string"==typeof t.raw?t.raw:t+"";return u.length=0.0.0-0")],l=[new n(">=0.0.0")],c=(e,t,r)=>{let n,c,p,f,h,m,g;if(e===t)return!0;if(1===e.length&&e[0].semver===i){if(1===t.length&&t[0].semver===i)return!0;e=r.includePrerelease?a:l;}if(1===t.length&&t[0].semver===i){if(r.includePrerelease)return!0;t=l;}let v=new Set();for(let t of e)">"===t.operator||">="===t.operator?n=u(n,t,r):"<"===t.operator||"<="===t.operator?c=d(c,t,r):v.add(t.semver);if(v.size>1||n&&c&&((p=s(n.semver,c.semver,r))>0||0===p&&(">="!==n.operator||"<="!==c.operator)))return null;for(let e of v){if(n&&!o(e,n+"",r)||c&&!o(e,c+"",r))return null;for(let n of t)if(!o(e,n+"",r))return!1;return!0;}let y=!!c&&!r.includePrerelease&&!!c.semver.prerelease.length&&c.semver,w=!!n&&!r.includePrerelease&&!!n.semver.prerelease.length&&n.semver;for(let e of(y&&1===y.prerelease.length&&"<"===c.operator&&0===y.prerelease[0]&&(y=!1),t)){if(g=g||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,n){if(w&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===w.major&&e.semver.minor===w.minor&&e.semver.patch===w.patch&&(w=!1),">"===e.operator||">="===e.operator){if((f=u(n,e,r))===e&&f!==n)return!1;}else if(">="===n.operator&&!o(n.semver,e+"",r))return!1;}if(c){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),"<"===e.operator||"<="===e.operator){if((h=d(c,e,r))===e&&h!==c)return!1;}else if("<="===c.operator&&!o(c.semver,e+"",r))return!1;}if(!e.operator&&(c||n)&&0!==p)return!1;}return(!n||!m||!!c||0===p)&&(!c||!g||!!n||0===p)&&!w&&!y;},u=(e,t,r)=>{if(!e)return t;let n=s(e.semver,t.semver,r);return n>0?e:n<0?t:">"===t.operator&&">="===e.operator?t:e;},d=(e,t,r)=>{if(!e)return t;let n=s(e.semver,t.semver,r);return n<0?e:n>0?t:"<"===t.operator&&"<="===e.operator?t:e;};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new r(e,n),t=new r(t,n);let i=!1;e:for(let r of e.set){for(let e of t.set){let t=c(r,e,n);if(i=i||null!==t,t)continue e;}if(i)return!1;}return!0;};}),rg.register("awj79",function(e,t){e.exports=function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");};}),rg.register("dOmbL",function(e,t){async function r(e){try{return await(0,t8.promises).access(e),!0;}catch{return!1;}}l(e.exports,"pathExists",()=>r);}),rg.register("ceI0e",function(e,t){var r,n,i,o,s,a,u,d,p,f,h,m,g;function v(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 y(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0});}function w(e,t=!0){return t?(0,i_.basename)(e):(0,i_.basename)(e,(0,i_.extname)(e));}function x(e){return(0,i_.normalize)(e).replace(RegExp((0,r.default)(i_.sep)+"$"),"");}function E(e,t=".exe",r=""){return"win32"===process.platform?`${e}${t}`:`${e}${r}`;}function b(e,t){let r=(0,i_.extname)(e),n=`${t}${(0,i_.basename)(e,r)}${r}`;return(0,i_.join)((0,i_.dirname)(e),n);}function S(e,t){let r=(0,i_.extname)(e),n=`${(0,i_.basename)(e,r)}${t}${r}`;return(0,i_.join)((0,i_.dirname)(e),n);}function $(e,t=".cmd",r=".sh"){return"win32"===process.platform?`${e}${t}`:`${e}${r}`;}function _(e){return"win32"===process.platform?e:"./"+e;}function O(e){let t=(0,i_.extname)(e).length;return e.slice(0,-t);}function C(e,t){return c(n)(e,t);}function I(e,t){let r=(0,i_.relative)(t,e);return!(!r||".."===r||r.startsWith(".."+i_.sep)||r===(0,i_.resolve)(e));}l(e.exports,"addExeExt",()=>E),l(e.exports,"addShExt",()=>$),l(e.exports,"addShRelativePrefix",()=>_),l(e.exports,"dirname",()=>i_.dirname),l(e.exports,"join",()=>i_.join),r=rg("9ag04"),n=rg("923E2"),i={},y(o={},"name",()=>w),y(s={},"normalizeTrim",()=>x),y(a={},"addExeExt",()=>E),y(u={},"addNamePrefix",()=>b),y(d={},"addNameSuffix",()=>S),y(p={},"addShExt",()=>$),y(f={},"addShRelativePrefix",()=>_),y(h={},"removeExt",()=>O),y(m={},"replaceExt",()=>C),y(g={},"isPathInside",()=>I),v(i,o),v(i,s),v(i,a),v(i,u),v(i,d),v(i,p),v(i,f),v(i,h),v(i,m),v(i,g);}),rg.register("9ag04",function(e,t){function r(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d");}l(e.exports,"default",()=>r);}),rg.register("923E2",function(e,t){e.exports=function(e,t){if("string"!=typeof e||0===e.length)return e;var r,n=i_.basename(e,i_.extname(e))+t,i=i_.join(i_.dirname(e),n);return(r=e.slice(0,2))==="."+i_.sep||"./"===r?"."+i_.sep+i:i;};}),rg.register("fcBgE",function(e,t){var r,n,i,o;function s(e){return o(this,void 0,void 0,function*(){if(d.IS_WINDOWS&&/[*"<>|]/.test(e))throw Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield d.rm(e,{force:!0,maxRetries:3,recursive:!0,retryDelay:300});}catch(e){throw Error("File was unable to be removed "+e);}});}function a(e){return o(this,void 0,void 0,function*(){t6.ok(e,"a path argument must be provided"),yield d.mkdir(e,{recursive:!0});});}function l(e){return o(this,void 0,void 0,function*(){if(!e)throw Error("parameter 'tool' is required");let t=[];if(d.IS_WINDOWS&&process.env.PATHEXT)for(let e of process.env.PATHEXT.split(u.delimiter))e&&t.push(e);if(d.isRooted(e)){let r=yield d.tryGetExecutablePath(e,t);return r?[r]:[];}if(e.includes(u.sep))return[];let r=[];if(process.env.PATH)for(let e of process.env.PATH.split(u.delimiter))e&&r.push(e);let n=[];for(let i of r){let r=yield d.tryGetExecutablePath(u.join(i,e),t);r&&n.push(r);}return n;});}function c(e,t,r){return o(this,void 0,void 0,function*(){if((yield d.lstat(e)).isSymbolicLink()){try{yield d.lstat(t),yield d.unlink(t);}catch(e){"EPERM"===e.code&&(yield d.chmod(t,"0666"),yield d.unlink(t));}let r=yield d.readlink(e);yield d.symlink(r,t,d.IS_WINDOWS?"junction":null);}else(!(yield d.exists(t))||r)&&(yield d.copyFile(e,t));});}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(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||function(e,t,r,n){return new(r||(r=Promise))(function(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(function(e){e(t);})).then(s,a);}l((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;let u=i(i_),d=i(rg("ejt9m"));e.exports.cp=function(e,t,r={}){return o(this,void 0,void 0,function*(){let{force:n,recursive:i,copySourceDirectory:s}=function(e){let t=null==e.force||e.force,r=!!e.recursive,n=null==e.copySourceDirectory||!!e.copySourceDirectory;return{force:t,recursive:r,copySourceDirectory:n};}(r),l=(yield d.exists(t))?yield d.stat(t):null;if(l&&l.isFile()&&!n)return;let p=l&&l.isDirectory()&&s?u.join(t,u.basename(e)):t;if(!(yield d.exists(e)))throw Error("no such file or directory: "+e);let f=yield d.stat(e);if(f.isDirectory()){if(i)yield function e(t,r,n,i){return o(this,void 0,void 0,function*(){if(n>=255)return;n++,yield a(r);let o=yield d.readdir(t);for(let s of o){let o=`${t}/${s}`,a=`${r}/${s}`,l=yield d.lstat(o);l.isDirectory()?yield e(o,a,n,i):yield c(o,a,i);}yield d.chmod(r,(yield d.stat(t)).mode);});}(e,p,0,n);else throw Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);}else{if(""===u.relative(e,p))throw Error(`'${p}' and '${e}' are the same file`);yield c(e,p,n);}});},e.exports.mv=function(e,t,r={}){return o(this,void 0,void 0,function*(){if(yield d.exists(t)){let n=!0;if((yield d.isDirectory(t))&&(t=u.join(t,u.basename(e)),n=yield d.exists(t)),n){if(null==r.force||r.force)yield s(t);else throw Error("Destination already exists");}}yield a(u.dirname(t)),yield d.rename(e,t);});},e.exports.rmRF=s,e.exports.mkdirP=a,e.exports.which=function e(t,r){return o(this,void 0,void 0,function*(){if(!t)throw Error("parameter 'tool' is required");if(r){let r=yield e(t,!1);if(!r){if(d.IS_WINDOWS)throw Error(`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.`);throw Error(`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;}let n=yield l(t);return n&&n.length>0?n[0]:"";});},e.exports.findInPath=l;}),rg.register("ejt9m",function(e,t){var r,n,i,o,s;function a(e){return(1&e.mode)>0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid();}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(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||function(e,t,r,n){return new(r||(r=Promise))(function(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(function(e){e(t);})).then(s,a);}l((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;let l=i(iO),c=i(i_);s=l.promises,e.exports.chmod=s.chmod,e.exports.copyFile=s.copyFile,e.exports.lstat=s.lstat,e.exports.mkdir=s.mkdir,e.exports.open=s.open,e.exports.readdir=s.readdir,e.exports.readlink=s.readlink,e.exports.rename=s.rename,e.exports.rm=s.rm,e.exports.rmdir=s.rmdir,e.exports.stat=s.stat,e.exports.symlink=s.symlink,e.exports.unlink=s.unlink,e.exports.IS_WINDOWS="win32"===process.platform,e.exports.UV_FS_O_EXLOCK=268435456,e.exports.READONLY=l.constants.O_RDONLY,e.exports.exists=function(t){return o(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 o(this,void 0,void 0,function*(){let n=r?yield e.exports.stat(t):yield e.exports.lstat(t);return n.isDirectory();});},e.exports.isRooted=function(t){var r;if(r=(r=t)||"",!(t=e.exports.IS_WINDOWS?(r=r.replace(/\//g,"\\")).replace(/\\\\+/g,"\\"):r.replace(/\/\/+/g,"/")))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,r){return o(this,void 0,void 0,function*(){let n;try{n=yield e.exports.stat(t);}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`);}if(n&&n.isFile()){if(e.exports.IS_WINDOWS){let e=c.extname(t).toUpperCase();if(r.some(t=>t.toUpperCase()===e))return t;}else if(a(n))return t;}let i=t;for(let o of r){t=i+o,n=void 0;try{n=yield e.exports.stat(t);}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`);}if(n&&n.isFile()){if(e.exports.IS_WINDOWS){try{let r=c.dirname(t),n=c.basename(t).toUpperCase();for(let i of yield e.exports.readdir(r))if(n===i.toUpperCase()){t=c.join(r,i);break;}}catch(e){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${e}`);}return t;}if(a(n))return t;}}return"";});},e.exports.getCmdPath=function(){var e;return null!==(e=process.env.COMSPEC)&&void 0!==e?e:"cmd.exe";};}),rg.register("ktIRP",function(e,t){var r,n,i,o,s;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(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||function(e,t,r,n){return new(r||(r=Promise))(function(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(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports._readLinuxVersionFile=e.exports._getOsVersion=e.exports._findMatch=void 0;let a=i(rg("lJEXJ"));s=rg("lcRzN"),e.exports._findMatch=function(t,r,n,i){return o(this,void 0,void 0,function*(){let o,l,c;let u=i$.platform();for(let o of n){let n=o.version;if(s.debug(`check ${n} satisfies ${t}`),a.satisfies(n,t)&&(!r||o.stable===r)&&(c=o.files.find(t=>{s.debug(`${t.arch}===${i} && ${t.platform}===${u}`);let r=t.arch===i&&t.platform===u;if(r&&t.platform_version){let n=e.exports._getOsVersion();r=n===t.platform_version||a.satisfies(n,t.platform_version);}return r;}))){s.debug("matched "+o.version),l=o;break;}}return l&&c&&((o=Object.assign({},l)).files=[c]),o;});},e.exports._getOsVersion=function(){let t=i$.platform(),r="";if("darwin"===t)r=t7.execSync("sw_vers -productVersion").toString();else if("linux"===t){let t=e.exports._readLinuxVersionFile();if(t){let e=t.split("\n");for(let t of e){let 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=function(){let e="/etc/lsb-release",t="/etc/os-release",r="";return iO.existsSync(e)?r=iO.readFileSync(e).toString():iO.existsSync(t)&&(r=iO.readFileSync(t).toString()),r;};}),rg.register("dGCqI",function(e,t){var r=rg("fVQSr"),n=rg("3MZit");e.exports=function(e,t,i){var o=t&&i||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;a<16;++a)t[o+a]=s[a];return t||n(s);};}),rg.register("fVQSr",function(e,t){e.exports=function(){return iC.randomBytes(16);};}),rg.register("3MZit",function(e,t){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);e.exports=function(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++]]].join("");};}),rg.register("jlr6Q",function(e,t){var r,n,i,o;function s(e,t,r){return o(this,void 0,void 0,function*(){let n=a.argStringToArray(e);if(0===n.length)throw Error("Parameter 'commandLine' cannot be null or empty.");let i=n[0];t=n.slice(1).concat(t||[]);let o=new a.ToolRunner(i,t,r);return o.exec();});}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(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||function(e,t,r,n){return new(r||(r=Promise))(function(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(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getExecOutput=e.exports.exec=void 0;let a=i(rg("jbxr5"));e.exports.exec=s,e.exports.getExecOutput=function(e,t,r){var n,i;return o(this,void 0,void 0,function*(){let o="",a="",l=new t9.StringDecoder("utf8"),c=new t9.StringDecoder("utf8"),u=null===(n=null==r?void 0:r.listeners)||void 0===n?void 0:n.stdout,d=null===(i=null==r?void 0:r.listeners)||void 0===i?void 0:i.stderr,p=Object.assign(Object.assign({},null==r?void 0:r.listeners),{stdout(e){o+=l.write(e),u&&u(e);},stderr(e){a+=c.write(e),d&&d(e);}}),f=yield s(e,t,Object.assign(Object.assign({},r),{listeners:p}));return o+=l.end(),a+=c.end(),{exitCode:f,stdout:o,stderr:a};});};}),rg.register("jbxr5",function(e,t){var r,n,i,o;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(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||function(e,t,r,n){return new(r||(r=Promise))(function(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(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.argStringToArray=e.exports.ToolRunner=void 0;let s=i(i$),a=i(t3),l=i(t7),c=i(i_),u=i(rg("fcBgE")),d=i(rg("ejt9m")),p="win32"===process.platform;class f 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){let r=this._getSpawnFileName(),n=this._getSpawnArgs(e),i=t?"":"[command]";if(p){if(this._isCmdFile())for(let e of(i+=r,n))i+=" "+e;else if(e.windowsVerbatimArguments)for(let e of(i+=`"${r}"`,n))i+=" "+e;else for(let e of(i+=this._windowsQuoteCmdArg(r),n))i+=" "+this._windowsQuoteCmdArg(e);}else for(let e of(i+=r,n))i+=" "+e;return i;}_processLineBuffer(e,t,r){try{let n=t+e.toString(),i=n.indexOf(s.EOL);for(;i>-1;){let e=n.substring(0,i);r(e),i=(n=n.substring(i+s.EOL.length)).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(let r of this.args)t+=" "+(e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r));return[t+='"'];}return this.args;}_endsWith(e,t){return e.endsWith(t);}_isCmdFile(){let 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'""';let t=[" "," ","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'],r=!1;for(let n of e)if(t.some(e=>e===n)){r=!0;break;}if(!r)return e;let n='"',i=!0;for(let t=e.length;t>0;t--)n+=e[t-1],i&&"\\"===e[t-1]?n+="\\":'"'===e[t-1]?(i=!0,n+='"'):i=!1;return(n+='"').split("").reverse().join("");}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes(" ")&&!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+='"').split("").reverse().join("");}_cloneExecOptions(e){e=e||{};let t={cwd: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){e=e||{};let r={};return r.cwd=e.cwd,r.env=e.env,r.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(r.argv0=`"${t}"`),r;}exec(){return o(this,void 0,void 0,function*(){return!d.isRooted(this.toolPath)&&(this.toolPath.includes("/")||p&&this.toolPath.includes("\\"))&&(this.toolPath=c.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield u.which(this.toolPath,!0),new Promise((e,t)=>o(this,void 0,void 0,function*(){for(let e of(this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args))this._debug(" "+e);let r=this._cloneExecOptions(this.options);!r.silent&&r.outStream&&r.outStream.write(this._getCommandString(r)+s.EOL);let n=new h(r,this.toolPath);if(n.on("debug",e=>{this._debug(e);}),this.options.cwd&&!(yield d.exists(this.options.cwd)))return t(Error(`The cwd: ${this.options.cwd} does not exist!`));let i=this._getSpawnFileName(),o=l.spawn(i,this._getSpawnArgs(r),this._getSpawnOptions(this.options,i)),a="";o.stdout&&o.stdout.on("data",e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!r.silent&&r.outStream&&r.outStream.write(e),a=this._processLineBuffer(e,a,e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e);});});let c="";if(o.stderr&&o.stderr.on("data",e=>{if(n.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!r.silent&&r.errStream&&r.outStream){let t=r.failOnStdErr?r.errStream:r.outStream;t.write(e);}c=this._processLineBuffer(e,c,e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e);});}),o.on("error",e=>{n.processError=e.message,n.processExited=!0,n.processClosed=!0,n.CheckComplete();}),o.on("exit",e=>{n.processExitCode=e,n.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),n.CheckComplete();}),o.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),c.length>0&&this.emit("errline",c),o.removeAllListeners(),r?t(r):e(n);}),this.options.input){if(!o.stdin)throw Error("child process missing stdin");o.stdin.end(this.options.input);}}));});}}e.exports.ToolRunner=f,e.exports.argStringToArray=function(e){function t(e){i&&'"'!==e&&(o+="\\"),o+=e,i=!1;}let r=[],n=!1,i=!1,o="";for(let s=0;s0&&(r.push(o),o="");continue;}t(a);}return o.length>0&&r.push(o.trim()),r;};class h extends a.EventEmitter{constructor(e,t){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!t)throw Error("toolPath must not be empty");this.options=e,this.toolPath=t,e.delay&&(this.delay=e.delay);}CheckComplete(){!this.done&&(this.processClosed?this._setResult():this.processExited&&(this.timeout=re.setTimeout(h.HandleTimeout,this.delay,this)));}_debug(e){this.emit("debug",e);}_setResult(){let e;this.processExited&&(this.processError?e=Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):0===this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)):e=Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode);}static HandleTimeout(e){if(!e.done){if(!e.processClosed&&e.processExited){let t=`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._debug(t);}e._setResult();}}}}),rg.register("5fF9z",function(e,t){e.exports=Promise.resolve(require("./actions_python.b5f9e7b0.js")).then(()=>rg("4kQHk"));}),rv=rg("dTX7a"),ry=rg("ER74K"),rw=rg("ggaxg"),function(){rg("fXZh0").addLocale("en",function(e){var t=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return("string"==typeof e&&(e=parseInt(e,10)),1===t&&0===r)?"one":"other";});}.call(rx={}),rE={},rE=rg("25uEY"),rb={},rb={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"}}}},rS={};const iR=i$.homedir();rS=e=>{if("string"!=typeof e)throw TypeError("Expected a string, got "+typeof e);return iR?e.replace(/^~(?=$|\/|\\)/,iR):e;},r$={};const iP="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,iA=iP?";":":";r_={},rO="win32"===process.platform||rf.TESTING_WINDOWS?rg("a3PNV"):rg("7gw6J"),r_=u,u.sync=function(e,t){try{return rO.sync(e,t||{});}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e;}};const iN=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),iL=(e,t)=>{let r=t.colon||iA,n=e.match(/\//)||iP&&e.match(/\\/)?[""]:[...(iP?[process.cwd()]:[]),...(t.path||process.env.PATH||"").split(r)],i=iP?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",o=iP?i.split(r):[""];return iP&&-1!==e.indexOf(".")&&""!==o[0]&&o.unshift(""),{pathEnv:n,pathExt:o,pathExtExe:i};},ik=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:i,pathExtExe:o}=iL(e,t),s=[],a=r=>new Promise((i,o)=>{if(r===n.length)return t.all&&s.length?i(s):o(iN(e));let a=n[r],c=/^".*"$/.test(a)?a.slice(1,-1):a,u=i_.join(c,e),d=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u;i(l(d,r,0));}),l=(e,r,n)=>new Promise((c,u)=>{if(n===i.length)return c(a(r+1));let d=i[n];r_(e+d,{pathExt:o},(i,o)=>{if(!i&&o){if(!t.all)return c(e+d);s.push(e+d);}return c(l(e,r,n+1));});});return r?a(0).then(e=>r(null,e),r):a(0);};r$=ik,ik.sync=(e,t)=>{t=t||{};let{pathEnv:r,pathExt:n,pathExtExe:i}=iL(e,t),o=[];for(let s=0;s{let t=e.env||process.env,r=e.platform||process.platform;return"win32"!==r?"PATH":Object.keys(t).reverse().find(e=>"PATH"===e.toUpperCase())||"Path";};(rP=iD).default=iD,rR=function(e){return d(e)||d(e,!0);};rA={},rN={},rL={},rL=/^#!(.*)/,rN=(e="")=>{let t=e.match(rL);if(!t)return null;let[r,n]=t[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return"env"===i?n:n?`${i} ${n}`:i;},rA=function(e){let t;let r=Buffer.alloc(150);try{t=iO.openSync(e,"r"),iO.readSync(t,r,0,150,0),iO.closeSync(t);}catch(e){}return rN(r.toString());};const iU="win32"===process.platform;rT=function(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null),t=t?t.slice(0):[],r=Object.assign({},r);let n={command:e,args:t,options:r,file:void 0,original:{command:e,args:t}};return r.shell?n:function(e){if(!iU)return e;let t=function(e){e.file=rR(e);let t=e.file&&rA(e.file);return t?(e.args.unshift(e.file),e.command=t,rR(e)):e.file;}(e),r=!/\.(?:com|exe)$/i.test(t);if(e.options.forceShell||r){var n;let r=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i.test(t);e.command=i_.normalize(e.command),e.command=n=(n=e.command).replace(/([()\][%!^"`<>&|;, *?])/g,"^$1"),e.args=e.args.map(e=>{var t,n;return t=e,n=r,t=(t=`"${t=(t=(t=""+t).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(/([()\][%!^"`<>&|;, *?])/g,"^$1"),n&&(t=t.replace(/([()\][%!^"`<>&|;, *?])/g,"^$1")),t;});let i=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${i}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0;}return e;}(n);},rk={};const ij="win32"===process.platform;rk={hookChildProcess:function(e,t){if(!ij)return;let r=e.emit;e.emit=function(n,i){if("exit"===n){let n=f(i,t,"spawn");if(n)return r.call(e,"error",n);}return r.apply(e,arguments);};},verifyENOENT:f,verifyENOENTSync:function(e,t){return ij&&1===e&&!t.file?p(t.original,"spawnSync"):null;},notFoundError:p},(rI=h).spawn=h,rI.sync=function(e,t,r){let n=rT(e,t,r),i=t7.spawnSync(n.command,n.args,n.options);return i.error=i.error||rk.verifyENOENTSync(i.status,n),i;},rI._parse=rT,rI._enoent=rk,rD={},rD=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,e.length-1)),e[e.length-1]===r&&(e=e.slice(0,e.length-1)),e;},rU={};const iM=e=>{let t;e={cwd:process.cwd(),path:process.env[rP()],execPath:process.execPath,...e};let r=i_.resolve(e.cwd),n=[];for(;t!==r;)n.push(i_.join(r,"node_modules/.bin")),t=r,r=i_.resolve(r,"..");let i=i_.resolve(e.cwd,e.execPath,"..");return n.push(i),n.concat(e.path).join(i_.delimiter);};(rU=iM).default=iM,rU.env=e=>{e={env:process.env,...e};let t={...e.env},r=rP({env:t});return e.path=t[r],t[r]=rU(e),t;},rj={},rM={};const iF=(e,t)=>{for(let r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e;};(rM=iF).default=iF;const iB=new WeakMap(),iG=(e,t={})=>{let r;if("function"!=typeof e)throw TypeError("Expected a function");let n=0,i=e.displayName||e.name||"",o=function(...s){if(iB.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 rM(o,e),iB.set(o,n),o;};(rj=iG).default=iG,rj.callCount=e=>{if(!iB.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return iB.get(e);},rF={},Object.defineProperty(rB={},"__esModule",{value:!0}),rB.signalsByNumber=rB.signalsByName=void 0,Object.defineProperty(rG={},"__esModule",{value:!0}),rG.getSignals=void 0,Object.defineProperty(rH={},"__esModule",{value:!0}),rH.SIGNALS=void 0,rH.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"}],Object.defineProperty(rV={},"__esModule",{value:!0}),rV.SIGRTMAX=rV.getRealtimeSignals=void 0,rV.getRealtimeSignals=function(){return Array.from({length:iq-iV+1},iH);};const iH=function(e,t){return{name:"SIGRT"+(t+1),number:iV+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"};},iV=34,iq=64;rV.SIGRTMAX=iq,rG.getSignals=function(){let e=(0,rV.getRealtimeSignals)(),t=[...rH.SIGNALS,...e].map(iX);return t;};const iX=function({name:e,number:t,description:r,action:n,forced:i=!1,standard:o}){let{signals:{[e]:s}}=i$.constants,a=void 0!==s;return{name:e,number:a?s:t,description:r,supported:a,action:n,forced:i,standard:o};},iK=function(e,{name:t,number:r,description:n,supported:i,action:o,forced:s,standard:a}){return{...e,[t]:{name:t,number:r,description:n,supported:i,action:o,forced:s,standard:a}};},iz=function(){let e=(0,rG.getSignals)();return e.reduce(iK,{});}();rB.signalsByName=iz;const iW=function(e,t){let r=iY(e,t);if(void 0===r)return{};let{name:n,description:i,supported:o,action:s,forced:a,standard:l}=r;return{[e]:{name:n,number:e,description:i,supported:o,action:s,forced:a,standard:l}};},iY=function(e,t){let r=t.find(({name:t})=>i$.constants.signals[t]===e);return void 0!==r?r:t.find(t=>t.number===e);},iJ=function(){let e=(0,rG.getSignals)(),t=rV.SIGRTMAX+1,r=Array.from({length:t},(t,r)=>iW(r,e));return Object.assign({},...r);}();rB.signalsByNumber=iJ,rq=rB.signalsByName;const iQ=({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:i,exitCode:o,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":void 0!==r?"failed with "+r:void 0!==n?`was killed with ${n} (${i})`:void 0!==o?"failed with exit code "+o:"failed";rF=({stdout:e,stderr:t,all:r,error:n,signal:i,exitCode:o,command:s,escapedCommand:a,timedOut:l,isCanceled:c,killed:u,parsed:{options:{timeout:d}}})=>{o=null===o?void 0:o,i=null===i?void 0:i;let p=void 0===i?void 0:rq[i].description,f=n&&n.code,h=iQ({timedOut:l,timeout:d,errorCode:f,signal:i,signalDescription:p,exitCode:o,isCanceled:c}),m=`Command ${h}: ${s}`,g="[object Error]"===Object.prototype.toString.call(n),v=g?`${m} ${n.message}`:m,y=[v,t,e].filter(Boolean).join("\n");return g?(n.originalMessage=n.message,n.message=y):n=Error(y),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;},rX={};const iZ=["stdin","stdout","stderr"],i0=e=>iZ.some(t=>void 0!==e[t]),i1=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return iZ.map(t=>e[t]);if(i0(e))throw Error("It's not possible to provide `stdio` in combination with one of "+iZ.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,iZ.length);return Array.from({length:r},(e,r)=>t[r]);};(rX=i1).node=e=>{let t=i1(e);return"ipc"===t?"ipc":void 0===t||"string"==typeof t?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"];},rK={},rz={},rW=rf.process;const i2=function(e){return 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(i2(rW)){var i4,i3=t6,i6=rg("1YMV0"),i5=/^win/i.test(rW.platform),i8=t3;"function"!=typeof i8&&(i8=i8.EventEmitter),rW.__signal_exit_emitter__?i4=rW.__signal_exit_emitter__:((i4=rW.__signal_exit_emitter__=new i8()).count=0,i4.emitted={}),i4.infinite||(i4.setMaxListeners(1/0),i4.infinite=!0);var i7=function(){ot&&i2(rf.process)&&(ot=!1,i6.forEach(function(e){try{rW.removeListener(e,oe[e]);}catch(e){}}),rW.emit=oo,rW.reallyExit=on,i4.count-=1);};(rz=function(e,t){if(!i2(rf.process))return function(){};i3.equal(typeof e,"function","a callback must be provided for exit handler"),!1===ot&&or();var r="exit";return t&&t.alwaysLast&&(r="afterexit"),i4.on(r,e),function(){i4.removeListener(r,e),0===i4.listeners("exit").length&&0===i4.listeners("afterexit").length&&i7();};}).unload=i7;var i9=function(e,t,r){i4.emitted[e]||(i4.emitted[e]=!0,i4.emit(e,t,r));},oe={};i6.forEach(function(e){oe[e]=function(){i2(rf.process)&&rW.listeners(e).length===i4.count&&(i7(),i9("exit",null,e),i9("afterexit",null,e),i5&&"SIGHUP"===e&&(e="SIGINT"),rW.kill(rW.pid,e));};}),rz.signals=function(){return i6;};var ot=!1,or=function(){!ot&&i2(rf.process)&&(ot=!0,i4.count+=1,i6=i6.filter(function(e){try{return rW.on(e,oe[e]),!0;}catch(e){return!1;}}),rW.emit=os,rW.reallyExit=oi);};rz.load=or;var on=rW.reallyExit,oi=function(e){i2(rf.process)&&(rW.exitCode=e||0,i9("exit",rW.exitCode,null),i9("afterexit",rW.exitCode,null),on.call(rW,rW.exitCode));},oo=rW.emit,os=function(e,t){if(!("exit"===e&&i2(rf.process)))return oo.apply(this,arguments);void 0!==t&&(rW.exitCode=t);var r=oo.apply(this,arguments);return i9("exit",rW.exitCode,null),i9("afterexit",rW.exitCode,null),r;};}else rz=function(){return function(){};};const oa=(e,t,r,n)=>{if(!ol(t,r,n))return;let i=ou(r),o=setTimeout(()=>{e("SIGKILL");},i);o.unref&&o.unref();},ol=(e,{forceKillAfterTimeout:t},r)=>oc(e)&&!1!==t&&r,oc=e=>e===i$.constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),ou=({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;},od=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}));},op=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let i=rz(()=>{e.kill();});return n.finally(()=>{i();});};rY=(rK={spawnedKill(e,t="SIGTERM",r={}){let n=e(t);return oa(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(()=>{od(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:op}).spawnedKill,rJ=rK.spawnedCancel,rQ=rK.setupTimeout,rZ=rK.validateTimeout,r0=rK.setExitHandler,r1={},r2={};const of=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;of.writable=e=>of(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,of.readable=e=>of(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,of.duplex=e=>of.writable(e)&&of.readable(e),of.transform=e=>of.duplex(e)&&"function"==typeof e._transform,r2=of,r4={},r3=rt.constants,r6=t5.promisify,r5={},r8=rr.PassThrough,r5=e=>{e={...e};let{array:t}=e,{encoding:r}=e,n="buffer"===r,i=!1;t?i=!(r||n):r=r||"utf8",n&&(r=null);let o=new r8({objectMode:i});r&&o.setEncoding(r);let s=0,a=[];return o.on("data",e=>{a.push(e),i?s=a.length:s+=e.length;}),o.getBufferedValue=()=>t?a:n?Buffer.concat(a,s):a.join(""),o.getBufferedLength=()=>s,o;};const oh=r6(rr.pipeline);class om extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError";}}(r4=m).buffer=(e,t)=>m(e,{...t,encoding:"buffer"}),r4.array=(e,t)=>m(e,{...t,array:!0}),r4.MaxBufferError=om,r7={},r9=rr.PassThrough,r7=function(){function e(i){return Array.isArray(i)?i.forEach(e):(r.push(i),i.once("end",t.bind(null,i)),i.once("error",n.emit.bind(n,"error")),i.pipe(n,{end:!1})),this;}function t(e){!(r=r.filter(function(t){return t!==e;})).length&&n.readable&&n.end();}var r=[],n=new r9({objectMode:!0});return n.setMaxListeners(0),n.add=e,n.isEmpty=function(){return 0==r.length;},n.on("unpipe",t),Array.prototype.slice.call(arguments).forEach(e),n;};const og=async(e,t)=>{if(e){e.destroy();try{return await t;}catch(e){return e.bufferedData;}}},ov=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?r4(e,{encoding:t,maxBuffer:n}):r4.buffer(e,{maxBuffer:n});},oy=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:o},s)=>{let a=ov(e,{encoding:n,buffer:i,maxBuffer:o}),l=ov(t,{encoding:n,buffer:i,maxBuffer:o}),c=ov(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},og(e,a),og(t,l),og(r,c)]);}};ne=(r1={handleInput(e,t){void 0!==t&&void 0!==e.stdin&&(r2(t)?t.pipe(e.stdin):e.stdin.end(t));},makeAllStream(e,{all:t}){if(!t||!e.stdout&&!e.stderr)return;let r=r7();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r;},getSpawnedResult:oy,validateInputSync({input:e}){if(r2(e))throw TypeError("The `input` option cannot be a stream in sync mode");}}).handleInput,nt=r1.getSpawnedResult,nr=r1.makeAllStream,nn=r1.validateInputSync,ni={};const ow=(async()=>{})().constructor.prototype,ox=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(ow,e)]);no=(ni={mergePromise(e,t){for(let[r,n]of ox){let i="function"==typeof t?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i});}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,ns=ni.getSpawnedPromise,na={};const oE=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],ob=e=>"string"!=typeof e||/^[\w.-]+$/.test(e)?e:`"${e.replace(/"/g,'\\"')}"`;nl=(na={joinCommand:(e,t)=>oE(e,t).join(" "),getEscapedCommand:(e,t)=>oE(e,t).map(e=>ob(e)).join(" "),parseCommand(e){let t=[];for(let r of e.trim().split(/ +/g)){let e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${r}`:t.push(r);}return t;}}).joinCommand,nc=na.parseCommand,nu=na.getEscapedCommand;const oS=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let o=t?{...process.env,...e}:e;return r?rU.env({env:o,cwd:n,execPath:i}):o;},o$=(e,t,r={})=>{let n=rI._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=oS(r),r.stdio=rX(r),"win32"===process.platform&&"cmd"===i_.basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n};},o_=(e,t,r)=>"string"==typeof t||Buffer.isBuffer(t)?e.stripFinalNewline?rD(t):t:void 0===r?void 0:"",oO=(e,t,r)=>{let n;let i=o$(e,t,r),o=nl(e,t),s=nu(e,t);rZ(i.options);try{n=t7.spawn(i.file,i.args,i.options);}catch(r){let e=new t7.ChildProcess(),t=Promise.reject(rF({error:r,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return no(e,t);}let a=ns(n),l=rQ(n,i.options,a),c=r0(n,i.options,l),u={isCanceled:!1};n.kill=rY.bind(null,n.kill.bind(n)),n.cancel=rJ.bind(null,n,u);let d=async()=>{let[{error:e,exitCode:t,signal:r,timedOut:a},l,d,p]=await nt(n,i.options,c),f=o_(i.options,l),h=o_(i.options,d),m=o_(i.options,p);if(e||0!==t||null!==r){let l=rF({error:e,exitCode:t,signal:r,stdout:f,stderr:h,all:m,command:o,escapedCommand:s,parsed:i,timedOut:a,isCanceled:u.isCanceled,killed:n.killed});if(!i.options.reject)return l;throw l;}return{command:o,escapedCommand:s,exitCode:0,stdout:f,stderr:h,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};},p=rj(d);return ne(n,i.options.input),n.all=nr(n,i.options),no(n,p);};(rC=oO).sync=(e,t,r)=>{let n;let i=o$(e,t,r),o=nl(e,t),s=nu(e,t);nn(i.options);try{n=t7.spawnSync(i.file,i.args,i.options);}catch(e){throw rF({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1});}let a=o_(i.options,n.stdout,n.error),l=o_(i.options,n.stderr,n.error);if(n.error||0!==n.status||null!==n.signal){let e=rF({stdout:a,stderr:l,error:n.error,signal:n.signal,exitCode:n.status,command:o,escapedCommand:s,parsed:i,timedOut:n.error&&"ETIMEDOUT"===n.error.code,isCanceled:!1,killed:null!==n.signal});if(!i.options.reject)return e;throw e;}return{command:o,escapedCommand:s,exitCode:0,stdout:a,stderr:l,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};},rC.command=(e,t)=>{let[r,...n]=nc(e);return oO(r,n,t);},rC.commandSync=(e,t)=>{let[r,...n]=nc(e);return oO.sync(r,n,t);},rC.node=(e,t,r={})=>{t&&!Array.isArray(t)&&"object"==typeof t&&(r=t,t=[]);let n=rX.node(r),i=process.execArgv.filter(e=>!e.startsWith("--inspect")),{nodePath:o=process.execPath,nodeOptions:s=i}=r;return oO(o,[...s,e,...(Array.isArray(t)?t:[])],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1});},ry=rg("ER74K"),nd={},np=rg("lJEXJ"),nf=rn.env.npm_package_json,nm=!!((nh=rn.env.npm_config_user_agent)&&nh.startsWith("npm")),ng=!!(nf&&nf.endsWith("package.json")),nv=!!(nh&&nh.startsWith("yarn")),ny=nm||ng||nv,nw=i$.homedir(),nx=process.env.XDG_CONFIG_HOME||i_.join(nw,".config","simple-update-notifier"),nE=function(e){return i_.join(nx,"".concat(e.replace("@","").replace("/","__"),".json"));},nb=function(){iO.existsSync(nx)||iO.mkdirSync(nx,{recursive:!0});},nS=function(e){var t=nE(e);try{if(!iO.existsSync(t))return;return JSON.parse(iO.readFileSync(t,"utf8")).lastUpdateCheck;}catch(e){return;}},n$=function(e){var t=nE(e);iO.writeFileSync(t,JSON.stringify({lastUpdateCheck:new Date().getTime()}));},n_=function(e){var t=e.pkg,r=e.updateCheckInterval,n=void 0===r?864e5:r,i=e.distTag,o=void 0===i?"latest":i,s=e.alwaysRun,a=e.debug;return x(void 0,void 0,void 0,function(){var e,r;return E(this,function(i){switch(i.label){case 0:var l;if(nb(),e=nS(t.name),!(s||!e||e{if("length"===r||"prototype"===r||"arguments"===r||"caller"===r)return;let i=Object.getOwnPropertyDescriptor(e,r),o=Object.getOwnPropertyDescriptor(t,r);(oI(i,o)||!n)&&Object.defineProperty(e,r,o);},oI=function(e,t){return void 0===e||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value);},oT=(e,t)=>{let r=Object.getPrototypeOf(t);r!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,r);},oR=(e,t)=>`/* Wrapped ${e}*/ ${t}`,oP=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),oA=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),oN=(e,t,r)=>{let n=""===r?"":`with ${r.trim()}() `,i=oR.bind(null,n,t.toString());Object.defineProperty(i,"name",oA),Object.defineProperty(e,"toString",{...oP,value:i});},oL=new WeakMap(),ok=(e,t={})=>{let r;if("function"!=typeof e)throw TypeError("Expected a function");let n=0,i=e.displayName||e.name||"",o=function(...s){if(oL.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!function(e,t,{ignoreNonConfigurable:r=!1}={}){let{name:n}=e;for(let n of Reflect.ownKeys(t))oC(e,t,n,r);oT(e,t),oN(e,t,n);}(o,e),oL.set(o,n),o;};ok.callCount=e=>{if(!oL.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return oL.get(e);},nT=ok;const oD=()=>Array.from({length:oM-oj+1},oU),oU=(e,t)=>({name:"SIGRT"+(t+1),number:oj+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),oj=34,oM=64,oF=[{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"}],oB=()=>{let e=oD(),t=[...oF,...e].map(oG);return t;},oG=({name:e,number:t,description:r,action:n,forced:i=!1,standard:o})=>{let{signals:{[e]:s}}=rc.constants,a=void 0!==s;return{name:e,number:a?s:t,description:r,supported:a,action:n,forced:i,standard:o};},oH=({name:e,number:t,description:r,supported:n,action:i,forced:o,standard:s})=>[e,{name:e,number:t,description:r,supported:n,action:i,forced:o,standard:s}],oV=(()=>{let e=oB();return Object.fromEntries(e.map(oH));})(),oq=(e,t)=>{let r=oX(e,t);if(void 0===r)return{};let{name:n,description:i,supported:o,action:s,forced:a,standard:l}=r;return{[e]:{name:n,number:e,description:i,supported:o,action:s,forced:a,standard:l}};},oX=(e,t)=>{let r=t.find(({name:t})=>rc.constants.signals[t]===e);return void 0!==r?r:t.find(t=>t.number===e);};(()=>{let e=oB(),t=Array.from({length:oM+1},(t,r)=>oq(r,e));return Object.assign({},...t);})();const oK=({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:i,exitCode:o,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":void 0!==r?"failed with "+r:void 0!==n?`was killed with ${n} (${i})`:void 0!==o?"failed with exit code "+o:"failed",oz=({stdout:e,stderr:t,all:r,error:n,signal:i,exitCode:o,command:s,escapedCommand:a,timedOut:l,isCanceled:u,killed:d,parsed:{options:{timeout:p,cwd:f=c(ra).cwd()}}})=>{o=null===o?void 0:o,i=null===i?void 0:i;let h=void 0===i?void 0:oV[i].description,m=n&&n.code,g=oK({timedOut:l,timeout:p,errorCode:m,signal:i,signalDescription:h,exitCode:o,isCanceled:u}),v=`Command ${g}: ${s}`,y="[object Error]"===Object.prototype.toString.call(n),w=y?`${v} ${n.message}`:v,x=[w,t,e].filter(Boolean).join("\n");return y?(n.originalMessage=n.message,n.message=x):n=Error(x),n.shortMessage=w,n.command=s,n.escapedCommand=a,n.exitCode=o,n.signal=i,n.signalDescription=h,n.stdout=e,n.stderr=t,n.cwd=f,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!l,n.isCanceled=u,n.killed=d&&!l,n;},oW=["stdin","stdout","stderr"],oY=e=>oW.some(t=>void 0!==e[t]),oJ=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return oW.map(t=>e[t]);if(oY(e))throw Error("It's not possible to provide `stdio` in combination with one of "+oW.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,oW.length);return Array.from({length:r},(e,r)=>t[r]);},oQ=(e,t="SIGTERM",r={})=>{let n=e(t);return oZ(e,t,r,n),n;},oZ=(e,t,r,n)=>{if(!o0(t,r,n))return;let i=o2(r),o=setTimeout(()=>{e("SIGKILL");},i);o.unref&&o.unref();},o0=(e,{forceKillAfterTimeout:t},r)=>o1(e)&&!1!==t&&r,o1=e=>e===c(rc).constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),o2=({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;},o4=(e,t)=>{let r=e.kill();r&&(t.isCanceled=!0);},o3=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}));},o6=(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(()=>{o3(e,r,o);},t);}),s=n.finally(()=>{clearTimeout(i);});return Promise.race([o,s]);},o5=({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})`);},o8=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let i=c(rz)(()=>{e.kill();});return n.finally(()=>{i();});},o7=e=>e instanceof rs.ChildProcess&&"function"==typeof e.then,o9=(e,t,r)=>{if("string"==typeof r)return e[t].pipe((0,t8.createWriteStream)(r)),e;if(O(r))return e[t].pipe(r),e;if(!o7(r))throw TypeError("The second argument must be a string, a stream or an Execa child process.");if(!O(r.stdin))throw TypeError("The target child process's stdin must be available.");return e[t].pipe(r.stdin),r;},se=e=>{null!==e.stdout&&(e.pipeStdout=o9.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=o9.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=o9.bind(void 0,e,"all"));},st=e=>{if(void 0!==e)throw TypeError("The `input` and `inputFile` options cannot be both set.");},sr=({input:e,inputFile:t})=>"string"!=typeof t?e:(st(e),(0,t8.readFileSync)(t)),sn=e=>{let t=sr(e);if(_(t))throw TypeError("The `input` option cannot be a stream in sync mode");return t;},si=({input:e,inputFile:t})=>"string"!=typeof t?e:(st(e),(0,t8.createReadStream)(t)),so=(e,t)=>{let r=si(t);void 0!==r&&(_(r)?r.pipe(e.stdin):e.stdin.end(r));},ss=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=c(r7)();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r;},sa=async(e,t)=>{if(e&&void 0!==t){e.destroy();try{return await t;}catch(e){return e.bufferedData;}}},sl=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?c(r4)(e,{encoding:t,maxBuffer:n}):c(r4).buffer(e,{maxBuffer:n});},sc=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:o},s)=>{let a=sl(e,{encoding:n,buffer:i,maxBuffer:o}),l=sl(t,{encoding:n,buffer:i,maxBuffer:o}),c=sl(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},sa(e,a),sa(t,l),sa(r,c)]);}},su=(async()=>{})().constructor.prototype,sd=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(su,e)]),sp=(e,t)=>{for(let[r,n]of sd){let i="function"==typeof t?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i});}},sf=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);});}),sh=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],sm=e=>"string"!=typeof e||/^[\w.-]+$/.test(e)?e:`"${e.replace(/"/g,'\\"')}"`,sg=(e,t)=>sh(e,t).join(" "),sv=(e,t)=>sh(e,t).map(e=>sm(e)).join(" "),sy=e=>{let t=typeof e;if("string"===t)return e;if("number"===t)return e+"";if("object"===t&&null!==e&&!(e instanceof rs.ChildProcess)&&"stdout"in e){let t=typeof e.stdout;if("string"===t)return e.stdout;if((0,ri.Buffer).isBuffer(e.stdout))return e.stdout.toString();throw TypeError(`Unexpected "${t}" stdout in template expression`);}throw TypeError(`Unexpected "${t}" in template expression`);},sw=(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)],sx=({templates:e,expressions:t,tokens:r,index:n,template:i})=>{let o=i??e.raw[n],s=o.split(/ +/g).filter(Boolean),a=sw(r,s,o.startsWith(" "));if(n===t.length)return a;let l=t[n],c=Array.isArray(l)?l.map(e=>sy(e)):[sy(l)];return sw(a,c,o.endsWith(" "));},sE=(e,t)=>{let r=[];for(let[n,i]of e.entries())r=sx({templates:e,expressions:t,tokens:r,index:n,template:i});return r;},sb=(0,ru.debuglog)("execa").enabled,sS=(e,t)=>(e+"").padStart(t,"0"),s$=()=>{let e=new Date();return`${sS(e.getHours(),2)}:${sS(e.getMinutes(),2)}:${sS(e.getSeconds(),2)}.${sS(e.getMilliseconds(),3)}`;},s_=(e,{verbose:t})=>{t&&c(ra).stderr.write(`[${s$()}] ${e} `);},sO=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let o=t?{...c(ra).env,...e}:e;return r?function({env:e=c(ra).env,...t}={}){e={...e};let r=$({env:e});return t.path=e[r],e[r]=function(e={}){let t;let{cwd:r=c(ra).cwd(),path:n=c(ra).env[$()],execPath:i=c(ra).execPath}=e,o=r instanceof URL?c(rl).fileURLToPath(r):r,s=c(ro).resolve(o),a=[];for(;t!==s;)a.push(c(ro).join(s,"node_modules/.bin")),t=s,s=c(ro).resolve(s,"..");return a.push(c(ro).resolve(o,i,"..")),[...a,n].join(c(ro).delimiter);}(t),e;}({env:o,cwd:n,execPath:i}):o;},sC=(e,t,r={})=>{let n=c(rI)._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||c(ra).cwd(),execPath:c(ra).execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:sb,...r}).env=sO(r),r.stdio=oJ(r),"win32"===c(ra).platform&&"cmd"===c(ro).basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n};},sI=(e,t,r)=>"string"==typeof t||(0,ri.Buffer).isBuffer(t)?e.stripFinalNewline?function(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:"",sT=({input:e,inputFile:t,stdio:r})=>void 0===e&&void 0===t&&void 0===r?{stdin:"inherit"}:{},sR=(e={})=>({preferLocal:!0,...sT(e),...e});!function e(t){function r(n,...i){if(!Array.isArray(n))return e({...t,...n});let[o,...s]=sE(n,i);return C(o,s,sR(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]=sE(e,r);return I(n,i,sR(t));},r;}(),nR={};const sP="win32"!==i$.platform(),sA=i$.release(),sN=(e="",t="")=>/1\d+\.\d+/.test(e)&&+t>=17134.1184;nR=function(e){return sP?e.replace(/(\s+)/g,"\\$1"):sN(.../(\d+\.\d+)\.(\d+)/.exec(sA).splice(1))?e:e.replace(/(\s+)/g,"%20");},function(){var e,t;e=rg("awj79"),t=function(e){return e.split("").reverse().join("");},nP=function(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(nP={}),nA=rg("dOmbL");const sL={shouldEscapeSpace:!1,shouldAddOnlyIfNotDefined:!1},sk=[/\/usr\/bin\/?/,/\/usr\/local\/bin\/?/],sD=w(".cpprc");let sU=!1;nA=rg("dOmbL"),nN=rg("9ag04"),ry=rg("ER74K"),nL={},nk=r_.isexe,nD=r_.sync,nU=i_.join,nj=i_.delimiter,nM=i_.sep,nF=i_.posix;const sj="win32"===process.platform,sM=new RegExp(`[${nF.sep}${nM===nF.sep?"":nM}]`.replace(/(\\)/g,"\\$1")),sF=RegExp("^\\."+sM.source),sB=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),sG=(e,{path:t=process.env.PATH,pathExt:r=process.env.PATHEXT,delimiter:n=nj})=>{let i=e.match(sM)?[""]:[...(sj?[process.cwd()]:[]),...(t||"").split(n)];if(sj){let t=r||[".EXE",".CMD",".BAT",".COM"].join(n),o=t.split(n).flatMap(e=>[e,e.toLowerCase()]);return e.includes(".")&&""!==o[0]&&o.unshift(""),{pathEnv:i,pathExt:o,pathExtExe:t};}return{pathEnv:i,pathExt:[""]};},sH=(e,t)=>{let r=/^".*"$/.test(e)?e.slice(1,-1):e,n=!r&&sF.test(t)?t.slice(0,2):"";return n+nU(r,t);},sV=async(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=sG(e,t),o=[];for(let s of r){let r=sH(s,e);for(let e of n){let n=r+e,s=await nk(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 sB(e);};nL=sV,sV.sync=(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=sG(e,t),o=[];for(let s of r){let r=sH(s,e);for(let e of n){let n=r+e,s=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 sB(e);};const{appendFile:sq}=iO.promises;let sX=!1,sK=!1;const sz=["E: Could not get lock","dpkg: error processing archive","dpkg: error: dpkg status database is locked by another process"];(t0=nB||(nB={}))[t0.NameDashVersion=0]="NameDashVersion",t0[t0.NameEqualsVersion=1]="NameEqualsVersion",t0[t0.Name=2]="Name",t0[t0.None=3]="None",nI=rg("lcRzN"),nG=rg("ceI0e"),nG=rg("ceI0e"),nH=rg("fcBgE");let sW=!1;nA=rg("dOmbL"),nG=rg("ceI0e"),ry=rg("ER74K");let sY=!1;ry=rg("ER74K"),ry=rg("ER74K");let sJ=!1,sQ=!1;const sZ=/Version\s*:\s*(.*)/g;nV={},nq=i_.resolve(__dirname,"../../node_modules/.pnpm/@actions+tool-cache@2.0.1/node_modules/@actions/tool-cache/lib"),nX=nV&&nV.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),nK=nV&&nV.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),nz=nV&&nV.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&nX(t,e,r);return nK(t,e),t;},nW=nV&&nV.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(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(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},nY=nV&&nV.__importDefault||function(e){return e&&e.__esModule?e:{default:e};},Object.defineProperty(nV,"__esModule",{value:!0}),nV.evaluateVersions=nV.isExplicitVersion=nV.findFromManifest=nV.getManifestFromRepo=nV.findAllVersions=nV.find=nV.cacheFile=nV.cacheDir=nV.extractZip=nV.extractXar=nV.extractTar=nV.extract7z=nV.downloadTool=nV.HTTPError=void 0;const s0=nz(rg("lcRzN")),s1=nz(rg("fcBgE")),s2=nz(iO),s4=nz(rg("ktIRP")),s3=nz(i$),s6=nz(i_),s5=nz(rg("iC7fc")),s8=nz(rg("lJEXJ")),s7=nz(rr),s9=nz(t5),ae=nY(rg("dGCqI"));nJ=rg("jlr6Q"),nZ=(nQ={},nQ.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];})),n0=nQ&&nQ.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),n1=nQ&&nQ.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&nZ(t,e,r);return n0(t,e),t;},n2=nQ&&nQ.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(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(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(nQ,"__esModule",{value:!0}),nQ.RetryHelper=void 0;const at=n1(rg("lcRzN"));nQ.RetryHelper=class{constructor(e,t,r){if(e<1)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 n2(this,void 0,void 0,function*(){let r=1;for(;rsetTimeout(t,1e3*e));});}};class ar extends Error{constructor(e){super("Unexpected HTTP response: "+e),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype);}}nV.HTTPError=ar;const an="win32"===process.platform,ai="darwin"===process.platform;nV.downloadTool=function(e,t,r,n){return nW(this,void 0,void 0,function*(){t=t||s6.join(eh(),ae.default()),yield s1.mkdirP(s6.dirname(t)),s0.debug("Downloading "+e),s0.debug("Destination "+t);let i=em("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=em("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),s=new nQ.RetryHelper(3,i,o);return yield s.execute(()=>nW(this,void 0,void 0,function*(){return yield function(e,t,r,n){return nW(this,void 0,void 0,function*(){if(s2.existsSync(t))throw Error(`Destination file path ${t} already exists`);let i=new s5.HttpClient("actions/tool-cache",[],{allowRetries:!1});r&&(s0.debug("set auth"),void 0===n&&(n={}),n.authorization=r);let o=yield i.get(e,n);if(200!==o.message.statusCode){let t=new ar(o.message.statusCode);throw s0.debug(`Failed to download from "${e}". Code(${o.message.statusCode}) Message(${o.message.statusMessage})`),t;}let s=s9.promisify(s7.pipeline),a=em("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>o.message),l=a(),c=!1;try{return yield s(l,s2.createWriteStream(t)),s0.debug("download complete"),c=!0,t;}finally{if(!c){s0.debug("download failed");try{yield s1.rmRF(t);}catch(e){s0.debug(`Failed to delete '${t}'. ${e.message}`);}}}});}(e,t||"",r,n);}),e=>!(e instanceof ar)||!e.httpStatusCode||!(e.httpStatusCode<500)||408===e.httpStatusCode||429===e.httpStatusCode);});},nV.extract7z=function(e,t,r){return nW(this,void 0,void 0,function*(){t6.ok(an,"extract7z() not supported on current OS"),t6.ok(e,'parameter "file" is required'),t=yield el(t);let n=process.cwd();if(process.chdir(t),r)try{let t=s0.isDebug()?"-bb1":"-bb0",n=["x",t,"-bd","-sccUTF-8",e];yield nJ.exec(`"${r}"`,n,{silent:!0});}finally{process.chdir(n);}else{let r=s6.join(nq,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,""),i=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),o=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),s=`& '${r}' -Source '${i}' -Target '${o}'`;try{let e=yield s1.which("powershell",!0);yield nJ.exec(`"${e}"`,["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",s],{silent:!0});}finally{process.chdir(n);}}return t;});},nV.extractTar=function(e,t,r="xz"){return nW(this,void 0,void 0,function*(){let n;if(!e)throw Error("parameter 'file' is required");t=yield el(t),s0.debug("Checking tar --version");let i="";yield nJ.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:e=>i+=e.toString(),stderr:e=>i+=e.toString()}}),s0.debug(i.trim());let o=i.toUpperCase().includes("GNU TAR");n=r instanceof Array?r:[r],s0.isDebug()&&!r.includes("v")&&n.push("-v");let s=t,a=e;return an&&o&&(n.push("--force-local"),s=t.replace(/\\/g,"/"),a=e.replace(/\\/g,"/")),o&&(n.push("--warning=no-unknown-keyword"),n.push("--overwrite")),n.push("-C",s,"-f",a),yield nJ.exec("tar",n),t;});},nV.extractXar=function(e,t,r=[]){return nW(this,void 0,void 0,function*(){var n;let i;t6.ok(ai,"extractXar() not supported on current OS"),t6.ok(e,'parameter "file" is required'),t=yield el(t),(i=r instanceof Array?r:[r]).push("-x","-C",t,"-f",e),s0.isDebug()&&i.push("-v");let o=yield s1.which("xar",!0);return yield nJ.exec(`"${o}"`,(n=i,Array.from(new Set(n)))),t;});},nV.extractZip=function(e,t){return nW(this,void 0,void 0,function*(){if(!e)throw Error("parameter 'file' is required");return t=yield el(t),an?yield function(e,t){return nW(this,void 0,void 0,function*(){let r=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),n=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=yield s1.which("pwsh",!1);if(i){let e=`$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 $_ } } ;`,t=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e];s0.debug("Using pwsh at path: "+i),yield nJ.exec(`"${i}"`,t);}else{let e=`$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) }`,t=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e],i=yield s1.which("powershell",!0);s0.debug("Using powershell at path: "+i),yield nJ.exec(`"${i}"`,t);}});}(e,t):yield function(e,t){return nW(this,void 0,void 0,function*(){let r=yield s1.which("unzip",!0),n=[e];s0.isDebug()||n.unshift("-q"),n.unshift("-o"),yield nJ.exec(`"${r}"`,n,{cwd:t});});}(e,t),t;});},nV.cacheDir=function(e,t,r,n){return nW(this,void 0,void 0,function*(){if(r=s8.clean(r)||r,n=n||s3.arch(),s0.debug(`Caching tool ${t} ${r} ${n}`),s0.debug("source dir: "+e),!s2.statSync(e).isDirectory())throw Error("sourceDir is not a directory");let i=yield ec(t,r,n);for(let t of s2.readdirSync(e)){let r=s6.join(e,t);yield s1.cp(r,i,{recursive:!0});}return eu(t,r,n),i;});},nV.cacheFile=function(e,t,r,n,i){return nW(this,void 0,void 0,function*(){if(n=s8.clean(n)||n,i=i||s3.arch(),s0.debug(`Caching tool ${r} ${n} ${i}`),s0.debug("source file: "+e),!s2.statSync(e).isFile())throw Error("sourceFile is not a file");let o=yield ec(r,n,i),s=s6.join(o,t);return s0.debug("destination file "+s),yield s1.cp(e,s),eu(r,n,i),o;});},nV.find=function(e,t,r){if(!e)throw Error("toolName parameter is required");if(!t)throw Error("versionSpec parameter is required");if(r=r||s3.arch(),!ed(t)){let n=ea(e,r),i=ep(n,t);t=i;}let n="";if(t){t=s8.clean(t)||"";let i=s6.join(ef(),e,t,r);s0.debug("checking cache: "+i),s2.existsSync(i)&&s2.existsSync(`${i}.complete`)?(s0.debug(`Found tool in cache ${e} ${t} ${r}`),n=i):s0.debug("not found");}return n;},nV.findAllVersions=ea,nV.getManifestFromRepo=function(e,t,r,n="master"){return nW(this,void 0,void 0,function*(){let i=[],o=`https://api.github.com/repos/${e}/${t}/git/trees/${n}`,s=new s5.HttpClient("tool-cache"),a={};r&&(s0.debug("set auth"),a.authorization=r);let l=yield s.getJson(o,a);if(!l.result)return i;let c="";for(let e of l.result.tree)if("versions-manifest.json"===e.path){c=e.url;break;}a.accept="application/vnd.github.VERSION.raw";let u=yield(yield s.get(c,a)).readBody();if(u){u=u.replace(/^\uFEFF/,"");try{i=JSON.parse(u);}catch(e){s0.debug("Invalid json");}}return i;});},nV.findFromManifest=function(e,t,r,n=s3.arch()){return nW(this,void 0,void 0,function*(){let i=yield s4._findMatch(e,t,r,n);return i;});},nV.isExplicitVersion=ed,nV.evaluateVersions=ep,n4=rg("1ndHP"),n3=rg("9hSY8"),nG=rg("ceI0e"),ry=rg("ER74K"),rv=rg("dTX7a"),nA=rg("dOmbL"),Object.defineProperty(n6={},"__esModule",{value:!0}),n6.retryAsPromised=n6.TimeoutError=void 0;class ao extends Error{constructor(e,t){super(e),this.name="TimeoutError",this.previous=t;}}n6.TimeoutError=ao,n6.retryAsPromised=eg,n6.default=eg;let as=!1;nG=rg("ceI0e"),nH=rg("fcBgE"),ry=rg("ER74K"),nI=rg("lcRzN"),nA=rg("dOmbL"),nG=rg("ceI0e"),nJ=rg("jlr6Q"),rv=rg("dTX7a"),ry=rg("ER74K"),n5={isEqual:!0,isMatchingKey:!0,isPromise:!0,maxSize:!0,onCacheAdd:!0,onCacheChange:!0,onCacheHit:!0,transformKey:!0},n8=Array.prototype.slice,n7=function(){function e(e){this.keys=[],this.values=[],this.options=e;var t="function"==typeof e.isMatchingKey;t?this.getKeyIndex=this._getKeyIndexFromMatchingKey:e.maxSize>1?this.getKeyIndex=this._getKeyIndexForMany:this.getKeyIndex=this._getKeyIndexForSingle,this.canTransformKey="function"==typeof e.transformKey,this.shouldCloneArguments=this.canTransformKey||t,this.shouldUpdateOnAdd="function"==typeof e.onCacheAdd,this.shouldUpdateOnChange="function"==typeof e.onCacheChange,this.shouldUpdateOnHit="function"==typeof e.onCacheHit;}return Object.defineProperty(e.prototype,"size",{get:function(){return this.keys.length;},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"snapshot",{get:function(){return{keys:eO(this.keys),size:this.size,values:eO(this.values)};},enumerable:!1,configurable:!0}),e.prototype._getKeyIndexFromMatchingKey=function(e){var t=this.options,r=t.isMatchingKey,n=t.maxSize,i=this.keys,o=i.length;if(!o)return-1;if(r(i[0],e))return 0;if(n>1){for(var s=1;o>s;s++)if(r(i[s],e))return s;}return-1;},e.prototype._getKeyIndexForMany=function(e){var t,r,n=this.options.isEqual,i=this.keys,o=i.length;if(!o)return-1;if(1===o)return this._getKeyIndexForSingle(e);var s=e.length;if(s>1){for(var a=0;o>a;a++)if((t=i[a]).length===s){for(r=0;s>r&&n(t[r],e[r]);r++);if(r===s)return a;}}else for(var a=0;o>a;a++)if((t=i[a]).length===s&&n(t[0],e[0]))return a;return-1;},e.prototype._getKeyIndexForSingle=function(e){var t=this.keys;if(!t.length)return-1;var r=t[0],n=r.length;if(e.length!==n)return-1;var i=this.options.isEqual;if(n>1){for(var o=0;n>o;o++)if(!i(r[o],e[o]))return-1;return 0;}return i(r[0],e[0])?0:-1;},e.prototype.orderByLru=function(e,t,r){for(var n=this.keys,i=this.values,o=n.length,s=r;s--;)n[s+1]=n[s],i[s+1]=i[s];n[0]=e,i[0]=t;var a=this.options.maxSize;o===a&&r===o?(n.pop(),i.pop()):r>=a&&(n.length=i.length=a);},e.prototype.updateAsyncCache=function(e){var t=this,r=this.options,n=r.onCacheChange,i=r.onCacheHit,o=this.keys[0],s=this.values[0];this.values[0]=s.then(function(r){return t.shouldUpdateOnHit&&i(t,t.options,e),t.shouldUpdateOnChange&&n(t,t.options,e),r;},function(e){var r=t.getKeyIndex(o);throw-1!==r&&(t.keys.splice(r,1),t.values.splice(r,1)),e;});},e;}(),nG=rg("ceI0e"),n9=e=>{if("string"!=typeof e)return!1;let t=e.trim();if(t.includes(" "))return!1;try{return new rd.URL(t),!0;}catch{return!1;}},ie=async e=>{let t=n9(e);if(!t)return!1;let r=await eR(e,"HEAD");return!!r||!!(r=await eR(e,"GET"));},it=rg("3Z6CK"),n3=rg("9hSY8"),ir=rg("eJTZB"),nJ=rg("jlr6Q"),ry=rg("ER74K");const aa=/v?(\d\S*)/,al={llvm:ek(),clangtidy:ek(),clangformat:ek(),ninja:"1.11.1",cmake:"3.27.4",gcovr:"6.0",conan:"1.60.2",meson:"1.2.1",kcov:"42",task:"3.29.1",doxygen:Z()?"1.9.8-1":"1.9.8",gcc:Z()?"13.2.1-3":"13"},ac={pip:"22.2.0",python:"3.7.9"},au={gcc:{22:"13",20:"11",18:"11",16:"11",14:"11"},mingw:{22:"8.0.0-1",20:"7.0.0-2"},llvm:{22:"16.0.4-ubuntu-22.04",20:"16.0.4-ubuntu-22.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},clangtidy:{22:"16.0.4-ubuntu-22.04",20:"16.0.4-ubuntu-22.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},clangformat:{22:"16.0.4-ubuntu-22.04",20:"16.0.4-ubuntu-22.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},gcovr:{22:"6.0",20:"6.0",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:"42-binary",20:"40-binary",18:"40",16:"40",14:"40"}};nA=rg("dOmbL");const ad=eT(ez,{isPromise:!0});ry=rg("ER74K"),Object.defineProperty(ii={},"__esModule",{value:!0}),ii.getUbuntuVersion=void 0,ii.getUbuntuVersion=eJ;const ap=eT(eQ,{isPromise:!0}),af=eT(e4,{isPromise:!0});nG=rg("ceI0e"),ry=rg("ER74K"),nA=rg("dOmbL"),io=rg("bX9Em"),n3=rg("9hSY8"),nJ=rg("jlr6Q"),ry=rg("ER74K"),nG=rg("ceI0e"),ry=rg("ER74K"),rv=rg("dTX7a"),nA=rg("dOmbL"),is=i_.resolve(__dirname,"../../src/gcc");const ah={13:{releaseName:"13.2.0-16.0.6-11.0.0-ucrt-r1",fileSuffix:"13.2.0-mingw-w64ucrt-11.0.0-r1"},"13.2-ucrt":{releaseName:"13.2.0-16.0.6-11.0.0-ucrt-r1",fileSuffix:"13.2.0-mingw-w64ucrt-11.0.0-r1"},"13.2-ucrt-mcf":{releaseName:"13.2.0mcf-16.0.6-11.0.1-ucrt-r2",fileSuffix:"13.2.0-mingw-w64ucrt-11.0.1-r2"},"13.2-msvcrt":{releaseName:"13.2.0-16.0.6-11.0.1-msvcrt-r1",fileSuffix:"13.2.0-mingw-w64msvcrt-11.0.1-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.5.0-11.0.1-msvcrt-r1",fileSuffix:"10.5.0-mingw-w64msvcrt-11.0.1-r1"},"10.5.0-msvcrt":{releaseName:"10.5.0-11.0.1-msvcrt-r1",fileSuffix:"10.5.0-mingw-w64msvcrt-11.0.1-r1"},"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"}};ir=rg("eJTZB"),io=rg("bX9Em"),nG=rg("ceI0e"),ry=rg("ER74K"),nG=rg("ceI0e"),ia=i_.resolve(__dirname,"../../src/kcov"),rv=rg("dTX7a"),ry=rg("ER74K"),nA=rg("dOmbL"),nG=rg("ceI0e"),nI=rg("lcRzN"),ry=rg("ER74K"),nG=rg("ceI0e"),ip=(id={},id.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(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(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});}),ih=id&&id.__importStar||function(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(id,"__esModule",{value:!0}),ig=(im={},im.__importStar||function(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(im,"__esModule",{value:!0});const am=ig(i$);Object.defineProperty(iv={},"__esModule",{value:!0}),iv.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e);},im.issueCommand=ty,im.issue=function(e,t=""){ty(e,{},t);};class ag{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}=${iv.toCommandValue(n).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`);}}return t+("::"+(e=this.message,iv.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")));}}iw=(iy={},iy.__importStar||function(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(iy,"__esModule",{value:!0});const av=iw(iO),ay=iw(i$);iy.issueCommand=function(e,t){let r=process.env["GITHUB_"+e];if(!r)throw Error("Unable to find environment variable for file command "+e);if(!av.existsSync(r))throw Error("Missing file at path: "+r);av.appendFileSync(r,`${iv.toCommandValue(t)}${ay.EOL}`,{encoding:"utf8"});};const aw=ih(i$),ax=ih(i_);(t1=ix=id.ExitCode||(id.ExitCode={}))[t1.Success=0]="Success",t1[t1.Failure=1]="Failure",id.exportVariable=function(e,t){let r=iv.toCommandValue(t);process.env[e]=r;let n=process.env.GITHUB_ENV||"";if(n){let t="_GitHubActionsFileCommandDelimeter_",n=`${e}<<${t}${aw.EOL}${r}${aw.EOL}${t}`;iy.issueCommand("ENV",n);}else im.issueCommand("set-env",{name:e},r);},id.setSecret=function(e){im.issueCommand("add-mask",{},e);},id.addPath=function(e){let t=process.env.GITHUB_PATH||"";t?iy.issueCommand("PATH",e):im.issueCommand("add-path",{},e),process.env.PATH=`${e}${ax.delimiter}${process.env.PATH}`;},id.getInput=function(e,t){let r=process.env["INPUT_"+e.replace(/ /g,"_").toUpperCase()]||"";if(t&&t.required&&!r)throw Error("Input required and not supplied: "+e);return r.trim();},id.setOutput=function(e,t){im.issueCommand("set-output",{name:e},t);},id.setCommandEcho=function(e){im.issue("echo",e?"on":"off");},id.setFailed=function(e){process.exitCode=ix.Failure,tw(e);},id.isDebug=function(){return"1"===process.env.RUNNER_DEBUG;},id.debug=function(e){im.issueCommand("debug",{},e);},id.error=tw,id.warning=function(e){im.issue("warning",e instanceof Error?e.toString():e);},id.info=function(e){process.stdout.write(e+aw.EOL);},id.startGroup=tx,id.endGroup=tE,id.group=function(e,t){return ip(this,void 0,void 0,function*(){let r;tx(e);try{r=yield t();}finally{tE();}return r;});},id.saveState=function(e,t){im.issueCommand("save-state",{name:e},t);},id.getState=function(e){return process.env["STATE_"+e]||"";};const aE=rn.env["ProgramFiles(x86)"],ab=[rn.env["ProgramFiles(x86)"],rn.env.ProgramFiles],aS=["Enterprise","Professional","Community"],a$=["2022","2019","2017"],a_={2022:"17.0",2019:"16.0",2017:"15.0",2015:"14.0",2013:"12.0"};il=tb;const aO=`${aE}\\Microsoft Visual Studio\\Installer`;ic=tS,iu=function(e,t,r,n,i,o){if("win32"!=rn.platform){id.info("This is not a Windows virtual environment, bye!");return;}rn.env.PATH+=i_.delimiter+aO;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"==i&&a.push("-vcvars_spectre_libs=spectre");let l=`"${tS(o)}" ${a.join(" ")}`;id.debug("vcvars command-line: "+l);let c=t7.execSync(`set && cls && ${l} && cls && set`,{shell:"cmd"}).toString(),u=c.split("\f"),d=u[0].split("\r\n"),p=u[1].split("\r\n"),f=u[2].split("\r\n"),h=p.filter(e=>!!e.match(/^\[ERROR.*\]/)&&!e.match(/Error in script usage. The correct usage is:$/));if(h.length>0)throw Error("invalid parameters\r\n"+h.join("\r\n"));let m={};for(let e of d){let[t,r]=e.split("=");m[t]=r;}for(let e of(id.startGroup("Environment variables"),f)){if(!e.includes("="))continue;let[t,r]=e.split("=");r!==m[t]&&(id.info("Setting "+t),-1!=["PATH","INCLUDE","LIB","LIBPATH"].indexOf(t.toUpperCase())&&(r=r.split(";").filter(function(e,t,r){return r.indexOf(e)===t;}).join(";")),id.exportVariable(t,r));}id.endGroup(),id.info("Configured Developer Command Prompt");},ry=rg("ER74K"),nA=rg("dOmbL");class aC extends Error{constructor(e){super(e),this.name="TimeoutError";}}class aI extends Error{constructor(e){super(),this.name="AbortError",this.message=e;}}const aT=e=>void 0===globalThis.DOMException?new aI(e):new DOMException(e),aR=e=>{let t=void 0===e.reason?aT("This operation was aborted."):e.reason;return t instanceof Error?t:aT(t);},aP=12e5,{readFile:aA,writeFile:aN,chmod:aL}=iO.promises;(t2=iE||(iE={}))[t2.All=0]="All",t2[t2.ClangFormat=1]="ClangFormat",t2[t2.Core=2]="Core",n4=rg("1ndHP"),ry=rg("ER74K"),nG=rg("ceI0e");const ak=function(e){let t=new Set(e);for(let 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","16.0.5","16.0.6"]),aD=new Set(["10.0.1","15.0.5","15.0.6"]),aU=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","16.0.5","16.0.6"]),aj=new Map(),aM={"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"},aF="16.0.4";ib=i_.resolve(__dirname,"../../src/llvm");const aB=eT(tD,{isPromise:!0}),aG=eT(tj,{isPromise:!0}),aH=eT(tM,{isPromise:!0});rv=rg("dTX7a"),nG=rg("ceI0e"),ry=rg("ER74K"),nA=rg("dOmbL"),iS=i_.resolve(__dirname,"../../src/msvc"),nG=rg("ceI0e"),nG=rg("ceI0e"),ry=rg("ER74K"),nA=rg("dOmbL"),nG=rg("ceI0e");let aV=!1;const aq={nala:tq,cmake:e_,ninja:tp,python:eD,vcpkg:tY,bazel:ei,conan:function(e,t,r){return e0("conan",e);},meson:function(e,t,r){return e0("meson",e);},gcovr:function(e,t,r){return e0("gcovr",e);},opencppcoverage:tX,llvm:tk,gcc:ts,choco:J,brew:z,powershell:tz,ccache:function(e,t,r){switch(process.platform){case"win32":return Q("ccache",e);case"darwin":return Y("ccache",e);case"linux":if(Z())return eo("ccache",e);if(ee())return et([{name:"ccache",version:e}]);if(en())return U([{name:"ccache",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}},sccache:function(e,t,r){switch(process.platform){case"win32":return Q("sccache",e);case"linux":case"darwin":return Y("sccache",e);default:throw Error("Unsupported platform");}},doxygen:tr,graphviz:e9,cppcheck:e8,clangtidy:function(e,t,r){return tU(e,t,r);},clangformat:function(e,t,r){return tU(e,t,r,iE.ClangFormat);},msvc:tH,vcvarsall:t$,kcov:tv,make:tG,task:function(e,t,r){return ev("task",e,tW,t,r);},sevenzip:ey},aX=Object.keys(aq),aK=["compiler","architecture","timeout",...aX];nI=rg("lcRzN"),ry=rg("ER74K"),ir=rg("eJTZB"),tZ(process.argv).then(e=>{process.exitCode=e;}).catch(e=>{(0,ry.error)("main() panicked!"),(0,ry.error)(e),process.exitCode=1;}); //# sourceMappingURL=setup-cpp.js.map