setup-cpp/dist/legacy/setup-cpp.js

72 lines
624 KiB
JavaScript
Raw Normal View History

2023-07-16 06:41:58 +08:00
#!/usr/bin/env node
2024-08-07 14:51:00 +08:00
let A,e,t,r,n,i,o,s;function a(A,e,t,r){Object.defineProperty(A,e,{get:t,set:r,enumerable:!0,configurable:!0});}function l(A){return A&&A.__esModule?A.default:A;}function E(A,e,t){if("function"==typeof e&&(t=e,e={}),!t){if("function"!=typeof Promise)throw TypeError("callback not provided");return new Promise(function(t,r){E(A,e||{},function(A,e){A?r(A):t(e);});});}td(A,e||{},function(A,r){A&&("EACCES"===A.code||e&&e.ignoreErrors)&&(A=null,r=!1),t(A,r);});}function c(A,e){let t;let r=A.options.env||process.env,n=process.cwd(),i=null!=A.options.cwd,o=i&&void 0!==process.chdir&&!process.chdir.disabled;if(o)try{process.chdir(A.options.cwd);}catch(A){}try{t=tI.sync(A.command,{path:r[tf({env:r})],pathExt:e?rU.delimiter:void 0});}catch(A){}finally{o&&process.chdir(n);}return t&&(t=rU.resolve(i?A.options.cwd:"",t)),t;}function g(A,e){return Object.assign(Error(`${e} ${A.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${A.command}`,path:A.command,spawnargs:A.args});}function h(A,e){return nx&&1===A&&!e.file?g(e.original,"spawn"):null;}function Q(A,e,t){let r=tC(A,e,t),n=r5.spawn(r.command,r.args,r.options);return tD.hookChildProcess(n,r),n;}function C(A){let e="string"==typeof A?"\n":"\n".charCodeAt(),t="string"==typeof A?"\r":"\r".charCodeAt();return A[A.length-1]===e&&(A=A.slice(0,-1)),A[A.length-1]===t&&(A=A.slice(0,-1)),A;}function u(A={}){let{env:e=process.env,platform:t=process.platform}=A;return"win32"!==t?"PATH":Object.keys(e).reverse().find(A=>"PATH"===A.toUpperCase())||"Path";}function I(A){return null!==A&&"object"==typeof A&&"function"==typeof A.pipe;}function B(A){return I(A)&&!1!==A.writable&&"function"==typeof A._write&&"object"==typeof A._writableState;}async function d(A,e){if(!A)throw Error("Expected a stream");let{maxBuffer:t}=e={maxBuffer:1/0,...e},r=tL(e);return await new Promise((e,n)=>{let i=A=>{A&&r.getBufferedLength()<=tF.MAX_LENGTH&&(A.bufferedData=r.getBufferedValue()),n(A);};(async()=>{try{await iN(A,r),e();}catch(A){i(A);}})(),r.on("data",()=>{r.getBufferedLength()>t&&i(new iS());});}),r.getBufferedValue();}function f(A,e,t){let r;let n=i9(A,e,t),i=iW(A,e),o=iq(A,e);i2(o,n.options),iw(n.options);try{r=l(ne).spawn(n.file,n.args,n.options);}catch(e){let A=new(l(ne).ChildProcess)();return iH(A,Promise.reject(n3({error:e,stdout:"",stderr:"",all:"",command:i,escapedCommand:o,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}))),A;}let s=iV(r),a=im(r,n.options,s),E=iR(r,n.options,a),c={isCanceled:!1};r.kill=iC.bind(null,r.kill.bind(r)),r.cancel=ip.bind(null,r,c);let g=tb(async()=>{let[{error:A,exitCode:e,signal:t,timedOut:s},a,l,g]=await iG(r,n.options,E),h=i8(n.options,a),Q=i8(n.options,l),C=i8(n.options,g);if(A||0!==e||null!==t){let a=n3({error:A,exitCode:e,signal:t,stdout:h,stderr:Q,all:C,command:i,escapedCommand:o,parsed:n,timedOut:s,isCanceled:c.isCanceled||!!n.options.signal&&n.options.signal.aborted,killed:r.killed});if(!n.options.reject)return a;throw a;}return{command:i,escapedCommand:o,exitCode:0,stdout:h,stderr:Q,all:C,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};});return ix(r,n.options),r.all=iM(r,n.options),ik(r),iH(r,g),r;}function p(A,e,t){let r;let n=i9(A,e,t),i=iW(A,e),o=iq(A,e);i2(o,n.options);let s=iL(n.options);try{r=l(ne).spawnSync(n.file,n.args,{...n.options,input:s});}catch(A){throw n3({error:A,stdout:"",stderr:"",all:"",command:i,escapedCommand:o,parsed:n,timedOut:!1,isCanceled:!1,killed:!1});}let a=i8(n.options,r.stdout,r.error),E=i8(n.options,r.stderr,r.error);if(r.error||0!==r.status||null!==r.signal){let A=n3({stdout:a,stderr:E,error:r.error,signal:r.signal,exitCode:r.status,command:i,escapedCommand:o,parsed:n,timedOut:r.error&&"ETIMEDOUT"===r.error.code,isCanceled:!1,killed:null!==r.signal});if(!n.options.reject)return A;throw A;}return{command:i,escapedCommand:o,exitCode:0,stdout:a,stderr:E,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};}function y(){var A,e;return((null===(A=(e=process).getuid)||void 0===A?void 0:A.call(e))===0||!!process.env.CI)&&null!==l(to).sync("sudo",{nothrow:!0});}function m(A,e=[],t=i6){return y()?function(A,e){let[t,...r]=ij(A);return p(t,
if [ -z "\${${A}}" ]; then export ${A}="${r}"; fi
`),(0,t2.info)(`if not defined ${A} then ${A}="${r}" was added to "${oK}`)):(await(0,ta.appendFile)(oK,`
export ${A}="${r}"
`),(0,t2.info)(`${A}="${r}" was added to "${oK}`));return;}process.env[A]=r;}async function H(A){switch(process.platform){case"win32":await Y(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${A};$USER_PATH", "User")`),(0,t2.info)(`"${A}" was added to the PATH.`);return;case"linux":case"darwin":await V(),await(0,ta.appendFile)(oK,`
export PATH="${A}:$PATH"
`),(0,t2.info)(`"${A}" was added to "${oK}"`);return;default:return;}}async function V(){if(o0)return;let A=`
2023-07-16 06:41:58 +08:00
# source .cpprc if SOURCE_CPPRC is not set to 0
2024-08-07 14:51:00 +08:00
if [[ "$SOURCE_CPPRC" != 0 && -f "${oK}" ]]; then source "${oK}"; fi
`;try{await Promise.all([P(),W(A),_(A)]);}catch(e){(0,te.warning)(`Failed to add ${A} to .profile or .bashrc. You should add it manually: ${e}`);}o0=!0;}async function P(){let A="# Automatically Generated by setup-cpp\nexport SOURCE_CPPRC=0";(await(0,t9.pathExists)(oK))&&!(await(0,ta.readFile)(oK,"utf8")).includes(A)&&(await(0,ta.appendFile)(oK,`
${A}
`),(0,t2.info)(`Added ${A} to ${oK}`));}async function _(A){let e=k("~/.bashrc");(await(0,t9.pathExists)(e))&&!(await(0,ta.readFile)(e,"utf-8")).includes(A)&&(await(0,ta.appendFile)(e,A),(0,t2.info)(`${A} was added to ${e}`));}async function W(A){let e=k("~/.profile");(await(0,t9.pathExists)(e))&&!(await(0,ta.readFile)(e,"utf-8")).includes(A)&&(await(0,ta.appendFile)(e,A),(0,t2.info)(`${A} was added to ${e}`));}async function q(){if(await(0,t9.pathExists)(oK)){let A=[...new Set((await(0,ta.readFile)(oK,"utf-8")).split("\n").reverse())].reverse();await(0,ta.writeFile)(oK,A.join("\n")),await b(oK);}}async function j(A,e=!1){let t;let r=Z()?"nala":"apt-get";for(let{name:e,version:t}of A)(0,te.info)(`Installing ${e} ${null!=t?t:""} via ${r}`);process.env.DEBIAN_FRONTEND="noninteractive",(!o1||e)&&(z(r),o1=!0),o2||(await K(r),o2=!0);let n=[...new Set(A.flatMap(A=>{var e;return null!==(e=A.repositories)&&void 0!==e?e:[];}))];if(0!==n.length){for(let A of n)m("add-apt-repository",["-y",A]);z(r);}let i=await Promise.all(A.map(A=>$(A.name,A.version)));try{m(r,["install","--fix-broken","-y",...i]);}catch(A){if("stderr"in A){let e=A.stderr;o4.some(A=>e.includes(A))&&((0,te.warning)(`Failed to install packages ${i}. Retrying...`),m(r,["install","--fix-broken","-y",...i]));}else throw A;}return{binDir:"/usr/bin/"};}async function X(A,e){if(void 0!==e&&""!==e){let{stdout:t}=await f("apt-cache",["search","--names-only",`^${(0,t4.default)(A)}-${(0,t4.default)(e)}$`]);if(""!==t.trim())return 0;try{let{stdout:t}=await f("apt-cache",["show",`${A}=${e}`]);if(""===t.trim())return 1;}catch{}}try{let{stdout:e}=await f("apt-cache",["show",A]);if(""!==e.trim())return 2;}catch{}return 3;}async function $(A,e){switch(await X(A,e)){case 0:return`${A}-${e}`;case 1:return`${A}=${e}`;case 2:return A;default:throw Error(`Could not find package ${A} ${null!=e?e:""}`);}}function Z(){return null!==l(to).sync("nala",{nothrow:!0});}function z(A){m(A,"nala"!==A?["update","-y"]:["update"]);}async function K(A){m(A,["install","--fix-broken","-y","software-properties-common","apt-utils","ca-certificates","gnupg"]);let e=[Ae(["3B4FE6ACC0B21F32","40976EAF437D05B5"],"setup-cpp-ubuntu-archive.gpg"),Ae(["1E9377A2BA9EF27F"],"launchpad-toolchain.gpg")];"nala"===A&&e.push(G("LANG","C.UTF-8",{shouldAddOnlyIfNotDefined:!0}),G("LC_ALL","C.UTF-8",{shouldAddOnlyIfNotDefined:!0})),await Promise.all(e);}function AA(){m("gpg",["-k"]);}async function Ae(A,e,t="keyserver.ubuntu.com"){try{let r="/etc/apt/trusted.gpg.d/"+e;return(await(0,t9.pathExists)(r))||(AA(),await Promise.all(A.map(async A=>{await w("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+r,"--keyserver",t,"--recv-keys",A]),await w("chmod",["644",r]);}))),r;}catch(A){(0,te.warning)(`Failed to add apt key via server ${t}: ${A}`);return;}}async function At(A,e){let t="/etc/apt/trusted.gpg.d/"+A;return(await(0,t9.pathExists)(t))||(AA(),await j([{name:"curl"},{name:"ca-certificates"}],void 0),await f("curl",["-s",e,"-o","/tmp/"+A]),m("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+t,"--import","/tmp/"+A]),m("chmod",["644",t])),t;}async function Ar(A,e,t=40){tA.GITHUB_ACTIONS?await w("update-alternatives",["--install","/usr/bin/"+A,A,e,t.toString()]):(await V(),await(0,ta.appendFile)(oK,`
if [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${A} ${A} ${e} ${t}; fi
`));}async function An(A){try{let{stdout:e}=await f("dpkg",["-l",A]);if("string"!=typeof e)return!1;return e.split("\n").some(A=>A.startsWith("ii"));}catch{return!1;}}async function Ai(A,t,r){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeof e)return{binDir:e};let n=l(to).sync("brew",{nothrow:!0});if(null!==n)return{binDir:e=(0,t6.dirname)(n)};let i=l(rU).join((0,rL.tmpdir)(),"setup-cpp","brew");await(0,t7.mkdirP)(i),p("curl",["-LJO","https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh"],{cwd:i});let o=(0,rU.join)(i,"install.sh");return"linux"===process.platform&&(await(0,ta.readFile)(o,"utf-8")).replace("#!/bin/bash",""),p("/bin/bash",[o],{stdio:"inherit",env:{NONINTERACTIVE:"1"}}),e=Ao(),await O(e),{binDir:e};}function Ao(){return"linux"===process.platform?"/home/linuxbrew/.linuxbrew/bin/":"/usr/local/bin/";}async function As(A,e,t=[]){(0,t2.info)(`Installing ${A} ${null!=e?e:""} via brew`),o9&&null!==l(to).sync("brew",{nothrow:!0})||(await Ai("","",process.arch),o9=!0);let r=Ao();return p((0,t6.join)(r,"brew"),["install",void 0!==e&&""!==e?`${A}@${e}`:A,...t],{stdio:"inherit"}),{binDir:r};}async function Aa(A,e,r){var n;if("win32"!==process.platform)return;if("string"==typeof t)return{binDir:t};let i=l(to).sync("choco",{nothrow:!0});if(null!==i)return{binDir:t=(0,t6.dirname)(i)};let o="powershell.exe",s=l(to).sync(`${process.env.SystemRoot}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`,{nothrow:!0});null!==s&&(o=s),p(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 O(a);let E=l(to).sync("choco",{nothrow:!0});if(t=null!==E?(0,t6.dirname)(E):`${null!==(n=process.env.ChocolateyInstall)&&void 0!==n?n:"C:/ProgramData/chocolatey"}/bin`,await(0,t9.pathExists)(t))return{binDir:t};}async function Al(A,e,t=[]){var r;(0,te.info)(`Installing ${A} ${null!=e?e:""} via chocolatey`),o8&&null!==l(to).sync("choco",{nothrow:!0})||(await Aa("","",process.arch),o8=!0);let n=process.env.PATH,i={...process.env};if(i.TMP=void 0,i.TEMP=void 0,i.Path=void 0,i.PATH=n,void 0!==e&&""!==e)p("choco",["install","-y",A,"--version="+e,...t],{env:i,extendEnv:!1,stdio:"inherit"});else try{p("choco",["install","-y",A,...t],{env:i,extendEnv:!1,stdio:"inherit"});}catch(e){if(e.message.includes("exit code 3010"))(0,te.info)(`${A} might require a reboot for the completion of the installation.`);else throw e;}let o=`${null!==(r=process.env.ChocolateyInstall)&&void 0!==r?r:"C:/ProgramData/chocolatey"}/bin`;return await O(o),{binDir:o};}async function AE(A){for(let{name:e,version:t}of A)(0,te.info)(`Installing ${e} ${null!=t?t:""} via dnf`);return m("dnf",["-y","install",...(await Promise.all(A.map(A=>Ac(A.name,A.version))))]),{binDir:"/usr/bin/"};}async function Ac(A,e){if(void 0!==e&&""!==e){let{stdout:t}=await f("dnf",["search","-q",`${A}-${e}`]);if(""!==t.trim())return`${A}-${e}`;{let{stdout:t}=await f("dnf",["search","-q",`${A}${e}`]);if(""!==t.trim())return`${A}${e}`;(0,te.warning)(`Failed to install ${A} ${e} via dnf, trying without version`);}}return A;}async function Ag(A,e,t){switch(process.platform){case"win32":return Al("bazelisk",A);case"darwin":return As("bazelisk",A);case"linux":if(U())throw Error("installing bazel on Arch linux is not supported yet");if(L())return await AE([{name:"dnf-plugins-core"}]),m("dnf",["copr","enable","vbatts/bazel"]),AE([{name:"bazel4"}]);if(x()){let e=await At("bazel-archive-keyring.gpg","https://bazel.build/bazel-release.pub.gpg");return m("bash",["-c",`echo "deb [arch=amd64 signed-by=${e}] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list`]),j([{name:"bazel",version:A}],!0);}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function Ah(A,e,t){(0,te.info)(`Installing ${A} ${null!=e?e:""} via pacman`);let r="
2023-07-16 06:41:58 +08:00
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.
2023-07-16 06:41:58 +08:00
--compiler the <compiler> to install.
You can specify the version instead of specifying just the name e.g: --compiler 'llvm-13.0.0'
--$tool_name pass "true" or pass the <version> you would like to install for this tool. e.g. --conan true or --conan "1.42.1"
All the available tools:
2024-08-07 14:51:00 +08:00
`),console.table({"compiler and analyzer":{tools:"--llvm, --gcc, --msvc, --vcvarsall, --cppcheck, --clangtidy, --clangformat"},"build system":{tools:"--cmake, --ninja, --meson, --make, --task, --bazel"},"package manager":{tools:"--vcpkg, --conan, --choco, --brew, --nala"},cache:{tools:"--cppcache, --sccache"},documentation:{tools:"--doxygen, --graphviz"},coverage:{tools:"--gcovr, --opencppcoverage, --kcov"},other:{tools:"--python, --powershell, --sevenzip"}},["tools"]));let a=null!==(e=s.architecture)&&void 0!==e?e:process.arch,E=null!==(t=process.env.SETUP_CPP_DIR)&&void 0!==t?t:k("~"),c=[],g=[],h=tn.create({autoloadLocales:!0});tn.addLocale(l(ti)),tt.addLocale(l(tr));let Q=await sM();if(!function(A,e){let t=e.filter(e=>void 0!==A[e]),r=t.filter(e=>!A9(A[e])),n=r.length>=1?A[r[0]]:"true";if(r.some(e=>A[e]!==n))return!1;for(let e of t)A[e]=n;return!0;}(s,["llvm","clangtidy","clangformat"]))return(0,te.error)("The same version must be used for llvm, clangformat and clangtidy"),1;U()&&"string"==typeof s.cppcheck&&"string"==typeof s.gcovr&&((0,te.info)("installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux"),await Ah("python-pygments"));let C=!1,u=!1;for(let A of ae){if(tA.isCI&&0!==g.length){u=!0;break;}let e=s[A];void 0!==e&&(n=Date.now(),C=await ev(A,e,Q,a,E,c,g,6e4*Number.parseFloat(null!==(r=s.timeout)&&void 0!==r?r:"20")),i=Date.now(),(0,te.info)("took "+(h.format(n,i)||"0 seconds")));}if(!u){let A=s.compiler;if(void 0!==A){let e=Date.now();await e8(A,Q,E,a,c,C,g);let t=Date.now();(0,te.info)("took "+(h.format(e,t)||"0 seconds"));}}if(await q(),0===c.length&&0===g.length)return(0,te.warning)("setup-cpp was called without any arguments. Nothing to do."),0;for(let A of c)(0,te.success)(A);for(let A of g)(0,te.error)(A);if((0,te.info)("setup-cpp finished"),!tA.GITHUB_ACTIONS)switch(process.platform){case"win32":(0,te.warning)("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":(0,te.warning)("Run `source ~/.cpprc` or restart your shell to update the environment.");}return await o,0===g.length?0:1;}var e5,e6,e7,tA,te,tt,tr,tn,ti,to,ts,ta,tl,tE,tc,tg,th,tQ,tC,tu,tI,tB,td,tf,tp,ty,tm,tw,tR,tD,tb,tk,tN,tS,tF,tv,tL,tU,tx,tM,tT,tY,tG,tO,tJ,tH,tV,tP,t_,tW,tq,tj,tX,t$,tZ,tz,tK,t0,t1,t2,t4,t9,t8,t3,t5,t6,t7,rA,re,rt,rr,rn,ri,ro,rs,ra,rl,rE,rc,rg,rh,rQ,rC,ru,rI,rB,rd,rf,rp,ry,rm,rw,rR,rD,rb,rk,rN,rS,rF,rv,rL=require("os"),rU=require("path"),rx=require("fs"),rM=require("crypto"),rT=require("http"),rY=require("https"),rG=require("net"),rO=require("tls"),rJ=require("events"),rH=require("assert"),rV=require("util"),rP=require("stream"),r_=require("buffer"),rW=require("querystring"),rq=require("stream/web"),rj=require("util/types"),rX=require("stream"),r$=require("util"),rZ=require("events"),rz=require("perf_hooks"),rK=require("worker_threads"),r0=require("async_hooks"),r1=require("console"),r2=require("url"),r4=require("zlib"),r9=require("string_decoder"),r8=require("diagnostics_channel"),r3=require("fs"),r5=require("child_process"),r6=require("timers"),r7=require("buffer"),nA=require("path"),ne=require("child_process"),nt=require("process"),nr=require("url"),nn=require("os"),ni=require("process"),no=globalThis,ns={},na={},nl=no.parcelRequire810d;null==nl&&((nl=function(A){if(A in ns)return ns[A].exports;if(A in na){var e=na[A];delete na[A];var t={id:A,exports:{}};return ns[A]=t,e.call(t.exports,t,t.exports),t.exports;}var r=Error("Cannot find module '"+A+"'");throw r.code="MODULE_NOT_FOUND",r;}).register=function(A,e){na[A]=e;},no.parcelRequire810d=nl),(e7=nl.register)("jj6Ot",function(A,e){var t;function r(A){return"string"==typeof A?!!n[A]:"env"in A?n[A.env]&&n[A.env].includes(A.includes):"any"in A?A.any.some(function(A){return!!n[A];}):Object.keys(A).every(function(e){return n[e]===A[e];});}t=nl("7S3Ee");let n=process.env;Object.defineProperty(A.exports,"_vendors",{value:t.map(function(A){return A.constant;})}),A.exports.name=null,A.exports.isPR=null,t.forEach(function(e){let t=(Array.isArray(e.env)?e.env:[e.env]).every(function(A){return r(A);});if
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``);},A.exports.setOutput=function(A,e){if(process.env.GITHUB_OUTPUT)return s.issueFileCommand("OUTPUT",s.prepareKeyValueMessage(A,e));process.stdout.write(B.EOL),o.issueCommand("set-output",{name:A},a.toCommandValue(e));},A.exports.setCommandEcho=function(A){o.issue("echo",A?"on":"off");},A.exports.setFailed=function(A){process.exitCode=E.Failure,C(A);},A.exports.isDebug=function(){return"1"===process.env.RUNNER_DEBUG;},A.exports.debug=function(A){o.issueCommand("debug",{},A);},A.exports.error=C,A.exports.warning=function(A,e={}){o.issueCommand("warning",a.toCommandProperties(e),A instanceof Error?A.toString():A);},A.exports.notice=function(A,e={}){o.issueCommand("notice",a.toCommandProperties(e),A instanceof Error?A.toString():A);},A.exports.info=function(A){process.stdout.write(A+B.EOL);},A.exports.startGroup=u,A.exports.endGroup=I,A.exports.group=function(A,e){return i(this,void 0,void 0,function*(){let t;u(A);try{t=yield e();}finally{I();}return t;});},A.exports.saveState=function(A,e){if(process.env.GITHUB_STATE)return s.issueFileCommand("STATE",s.prepareKeyValueMessage(A,e));o.issueCommand("save-state",{name:A},a.toCommandValue(e));},A.exports.getState=function(A){return process.env["STATE_"+A]||"";},A.exports.getIDToken=function(A){return i(this,void 0,void 0,function*(){return yield l.OidcClient.getIDToken(A);});},c=nl("ehDLE"),Object.defineProperty(A.exports,"summary",{enumerable:!0,get:function(){return c.summary;}}),c=nl("ehDLE"),Object.defineProperty(A.exports,"markdownSummary",{enumerable:!0,get:function(){return c.markdownSummary;}}),g=nl("a0kJ6"),Object.defineProperty(A.exports,"toPosixPath",{enumerable:!0,get:function(){return g.toPosixPath;}}),Object.defineProperty(A.exports,"toWin32Path",{enumerable:!0,get:function(){return g.toWin32Path;}}),Object.defineProperty(A.exports,"toPlatformPath",{enumerable:!0,get:function(){return g.toPlatformPath;}});}),e7("h5ivc",function(A,e){var t,r,n,i;function o(A,e,t){let r=new a(A,e,t);process.stdout.write(r.toString()+s.EOL);}t=A.exports&&A.exports.__createBinding||(Object.create?function(A,e,t,r){void 0===r&&(r=t),Object.defineProperty(A,r,{enumerable:!0,get:function(){return e[t];}});}:function(A,e,t,r){void 0===r&&(r=t),A[r]=e[t];}),r=A.exports&&A.exports.__setModuleDefault||(Object.create?function(A,e){Object.defineProperty(A,"default",{enumerable:!0,value:e});}:function(A,e){A.default=e;}),n=A.exports&&A.exports.__importStar||function(A){if(A&&A.__esModule)return A;var e={};if(null!=A)for(var n in A)"default"!==n&&Object.hasOwnProperty.call(A,n)&&t(e,A,n);return r(e,A),e;},Object.defineProperty(A.exports,"__esModule",{value:!0}),A.exports.issue=A.exports.issueCommand=void 0;let s=n(rL);i=nl("fLT2x"),A.exports.issueCommand=o,A.exports.issue=function(A,e=""){o(A,{},e);};class a{constructor(A,e,t){A||(A="missing.command"),this.command=A,this.properties=e,this.message=t;}toString(){var A;let e="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let A=!0;for(let t in this.properties)if(this.properties.hasOwnProperty(t)){let r=this.properties[t];r&&(A?A=!1:e+=",",e+=`${t}=${i.toCommandValue(r).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`);}}return e+("::"+(A=this.message,i.toCommandValue(A).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")));}}}),e7("fLT2x",function(A,e){Object.defineProperty(A.exports,"__esModule",{value:!0}),A.exports.toCommandProperties=A.exports.toCommandValue=void 0,A.exports.toCommandValue=function(A){return null==A?"":"string"==typeof A||A instanceof String?A:JSON.stringify(A);},A.exports.toCommandProperties=function(A){return Object.keys(A).length?{title:A.title,file:A.file,line:A.startLine,endLine:A.endLine,col:A.startColumn,endColumn:A.endColumn}:{};};}),e7("4pB6l",function(A,e){var t,r,n,i,o;t=A.exports&&A.exports.__createBinding||(Object.create?function(A,e,t,r){void 0===r&&(r=t),Object.defineProperty(A,r,{enumerable:!0,get:function(){return e[t];}});}:function(A,
2024-08-07 14:51:00 +08:00
Error Code : ${A.statusCode}
2024-08-07 14:51:00 +08:00
Error Message: ${A.message}`);})).result)||void 0===e?void 0:e.value;if(!r)throw Error("Response json body do not have ID Token field");return r;});}static getIDToken(A){return t(this,void 0,void 0,function*(){try{let e=o.getIDTokenUrl();if(A){let t=encodeURIComponent(A);e=`${e}&audience=${t}`;}i.debug("ID token url is "+e);let t=yield o.getCall(e);return i.setSecret(t),t;}catch(A){throw Error("Error message: "+A.message);}});}}A.exports.OidcClient=o;}),e7("jdbFC",function(A,e){var t,r,n,i,o,s,a,l,E,c;t=A.exports&&A.exports.__createBinding||(Object.create?function(A,e,t,r){void 0===r&&(r=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t];}}),Object.defineProperty(A,r,n);}:function(A,e,t,r){void 0===r&&(r=t),A[r]=e[t];}),r=A.exports&&A.exports.__setModuleDefault||(Object.create?function(A,e){Object.defineProperty(A,"default",{enumerable:!0,value:e});}:function(A,e){A.default=e;}),n=A.exports&&A.exports.__importStar||function(A){if(A&&A.__esModule)return A;var e={};if(null!=A)for(var n in A)"default"!==n&&Object.prototype.hasOwnProperty.call(A,n)&&t(e,A,n);return r(e,A),e;},i=A.exports&&A.exports.__awaiter||function(A,e,t,r){return new(t||(t=Promise))(function(n,i){function o(A){try{a(r.next(A));}catch(A){i(A);}}function s(A){try{a(r.throw(A));}catch(A){i(A);}}function a(A){var e;A.done?n(A.value):((e=A.value)instanceof t?e:new t(function(A){A(e);})).then(o,s);}a((r=r.apply(A,e||[])).next());});},Object.defineProperty(A.exports,"__esModule",{value:!0}),A.exports.HttpClient=A.exports.isHttps=A.exports.HttpClientResponse=A.exports.HttpClientError=A.exports.getProxyUrl=A.exports.MediaTypes=A.exports.Headers=A.exports.HttpCodes=void 0;let g=n(rT),h=n(rY),Q=n(nl("hFsVR")),C=n(nl("7r7u9"));o=nl("gYyeU"),(E=s||(A.exports.HttpCodes=s={}))[E.OK=200]="OK",E[E.MultipleChoices=300]="MultipleChoices",E[E.MovedPermanently=301]="MovedPermanently",E[E.ResourceMoved=302]="ResourceMoved",E[E.SeeOther=303]="SeeOther",E[E.NotModified=304]="NotModified",E[E.UseProxy=305]="UseProxy",E[E.SwitchProxy=306]="SwitchProxy",E[E.TemporaryRedirect=307]="TemporaryRedirect",E[E.PermanentRedirect=308]="PermanentRedirect",E[E.BadRequest=400]="BadRequest",E[E.Unauthorized=401]="Unauthorized",E[E.PaymentRequired=402]="PaymentRequired",E[E.Forbidden=403]="Forbidden",E[E.NotFound=404]="NotFound",E[E.MethodNotAllowed=405]="MethodNotAllowed",E[E.NotAcceptable=406]="NotAcceptable",E[E.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",E[E.RequestTimeout=408]="RequestTimeout",E[E.Conflict=409]="Conflict",E[E.Gone=410]="Gone",E[E.TooManyRequests=429]="TooManyRequests",E[E.InternalServerError=500]="InternalServerError",E[E.NotImplemented=501]="NotImplemented",E[E.BadGateway=502]="BadGateway",E[E.ServiceUnavailable=503]="ServiceUnavailable",E[E.GatewayTimeout=504]="GatewayTimeout",(c=a||(A.exports.Headers=a={})).Accept="accept",c.ContentType="content-type",(l||(A.exports.MediaTypes=l={})).ApplicationJson="application/json",A.exports.getProxyUrl=function(A){let e=Q.getProxyUrl(new URL(A));return e?e.href:"";};let u=[s.MovedPermanently,s.ResourceMoved,s.SeeOther,s.TemporaryRedirect,s.PermanentRedirect],I=[s.BadGateway,s.ServiceUnavailable,s.GatewayTimeout],B=["OPTIONS","GET","DELETE","HEAD"];class d extends Error{constructor(A,e){super(A),this.name="HttpClientError",this.statusCode=e,Object.setPrototypeOf(this,d.prototype);}}A.exports.HttpClientError=d;class f{constructor(A){this.message=A;}readBody(){return i(this,void 0,void 0,function*(){return new Promise(A=>i(this,void 0,void 0,function*(){let e=Buffer.alloc(0);this.message.on("data",A=>{e=Buffer.concat([e,A]);}),this.message.on("end",()=>{A(e.toString());});}));});}readBodyBuffer(){return i(this,void 0,void 0,function*(){return new Promise(A=>i(this,void 0,void 0,function*(){let e=[];this.message.on("data",A=>{e.push(A);}),this.message.on("end",()=>{A(Buffer.concat(e));});}));});}}A.exports.HttpClientResponse=f,A.exports.isHttps=function(A){return"https:"===new URL(A).protocol;},A.exports.HttpCl
`;return"string"==typeof s?d+=`host: ${s}\r
`:d+=A[J],l?d+=`connection: upgrade\r
upgrade: ${l}\r
`:A[_]&&!B[m]?d+="connection: keep-alive\r\n":d+="connection: close\r\n",E&&(d+=E),AX.sendHeaders.hasSubscribers&&AX.sendHeaders.publish({request:e,headers:d,socket:B}),t&&0!==u?r.isBuffer(t)?(rH(I===t.byteLength,"buffer body must have content length"),B.cork(),B.write(`${d}content-length: ${I}\r
\r
`,"latin1"),B.write(t),B.uncork(),e.onBodySent(t),e.onRequestSent(),Q||(B[m]=!0)):r.isBlobLike(t)?"function"==typeof t.stream?AT({body:t.stream(),client:A,request:e,socket:B,contentLength:I,header:d,expectsPayload:Q}):AM({body:t,client:A,request:e,socket:B,contentLength:I,header:d,expectsPayload:Q}):r.isStream(t)?Ax({body:t,client:A,request:e,socket:B,contentLength:I,header:d,expectsPayload:Q}):r.isIterable(t)?AT({body:t,client:A,request:e,socket:B,contentLength:I,header:d,expectsPayload:Q}):rH(!1):(0===I?B.write(`${d}content-length: 0\r
\r
`,"latin1"):(rH(null===I,"no body must not have content length"),B.write(`${d}\r
`,"latin1")),e.onRequestSent()),!0;}(A,n)?A[H]++:A[x].splice(A[H],1);}}(A,e),A[S]=0,A[V]>256&&(A[x].splice(0,A[V]),A[H]-=A[V],A[V]=0));}function AU(A){return"GET"!==A&&"HEAD"!==A&&"OPTIONS"!==A&&"TRACE"!==A&&"CONNECT"!==A;}function Ax({h2stream:A,body:e,client:n,request:i,socket:o,contentLength:s,header:a,expectsPayload:l}){if(rH(0!==s||0===n[F],"stream body cannot be pipelined"),"h2"===n[AE]){function E(A){i.onBodySent(A);}let n=t(e,A,t=>{t?(r.destroy(e,t),r.destroy(A,t)):i.onRequestSent();});n.on("data",E),n.once("end",()=>{n.removeListener("data",E),r.destroy(n);});return;}let g=!1,h=new A5({socket:o,request:i,contentLength:s,client:n,expectsPayload:l,header:a}),Q=function(A){if(!g)try{!h.write(A)&&this.pause&&this.pause();}catch(A){r.destroy(this,A);}},C=function(){!g&&e.resume&&e.resume();},u=function(){if(g)return;let A=new c();queueMicrotask(()=>I(A));},I=function(A){if(!g){if(g=!0,rH(o.destroyed||o[U]&&n[F]<=1),o.off("drain",C).off("error",I),e.removeListener("data",Q).removeListener("end",I).removeListener("error",I).removeListener("close",u),!A)try{h.end();}catch(e){A=e;}h.destroy(A),A&&("UND_ERR_INFO"!==A.code||"reset"!==A.message)?r.destroy(e,A):r.destroy(e);}};e.on("data",Q).on("end",I).on("error",I).on("close",u),e.resume&&e.resume(),o.on("drain",C).on("error",I);}async function AM({h2stream:A,body:e,client:t,request:n,socket:i,contentLength:o,header:s,expectsPayload:l}){rH(o===e.size,"blob body must have content length");let E="h2"===t[AE];try{if(null!=o&&o!==e.size)throw new a();let r=Buffer.from(await e.arrayBuffer());E?(A.cork(),A.write(r),A.uncork()):(i.cork(),i.write(`${s}content-length: ${o}\r
\r
`,"latin1"),i.write(r),i.uncork()),n.onBodySent(r),n.onRequestSent(),l||(i[m]=!0),AL(t);}catch(e){r.destroy(E?A:i,e);}}async function AT({h2stream:A,body:e,client:t,request:r,socket:n,contentLength:i,header:o,expectsPayload:s}){function a(){if(l){let A=l;l=null,A();}}rH(0!==i||0===t[F],"iterator body cannot be pipelined");let l=null,E=()=>new Promise((A,e)=>{rH(null===l),n[P]?e(n[P]):l=A;});if("h2"===t[AE]){A.on("close",a).on("drain",a);try{for await(let t of e){if(n[P])throw n[P];let e=A.write(t);r.onBodySent(t),e||(await E());}}catch(e){A.destroy(e);}finally{r.onRequestSent(),A.end(),A.off("close",a).off("drain",a);}return;}n.on("close",a).on("drain",a);let c=new A5({socket:n,request:r,contentLength:i,client:t,expectsPayload:s,header:o});try{for await(let A of e){if(n[P])throw n[P];c.write(A)||(await E());}c.end();}catch(A){c.destroy(A);}finally{n.off("close",a).off("drain",a);}}function AY(A,e,t){try{e.onError(t),rH(e.aborted);}catch(e){A.emit("error",e);}}t=rP.pipeline,r=nl("c7jgd"),n=nl("fsDW2"),i=nl("cEHE4"),o=nl("k3HYk"),a=(s=nl("03MxY")).RequestContentLengthMismatchError,l=s.ResponseContentLengthMismatchError,E=s.InvalidArgumentError,c=s.RequestAbortedError,g=s.HeadersTimeoutError,h=s.HeadersOverflowError,Q=s.SocketError,C=s.InformationalError,u=s.BodyTimeoutError,I=s.HTTPParserError,B=s.ResponseExceededMaxSizeError,d=s.ClientDestroyedError,f=nl("d4IVt"),y=(p=nl("J3IVZ")).kUrl,m=p.kReset,w=p.kServerName,R=p.kClient,D=p.kBusy,b=p.kParser,k=p.kConnect,N=p.kBlocking,S=p.kResuming,F=p.kRunning,v=p.kPending,L=p.kSize,U=p.kWriting,x=p.kQueue,M=p.kConnected,T=p.kConnecting,Y=p.kNeedDrain,G=p.kNoRef,O=p.kKeepAliveDefaultTimeout,J=p.kHostHeader,H=p.kPendingIdx,V=p.kRunningIdx,P=p.kError,_=p.kPipelining,W=p.kSocket,q=p.kKeepAliveTimeoutValue,j=p.kMaxHeadersSize,X=p.kKeepAliveMaxTimeout,$=p.kKeepAliveTimeoutThreshold,Z=p.kHeadersTimeout,z=p.kBodyTimeout,K=p.kStrictContentLength,AA=p.kConnector,Ae=p.kMaxRedirections,At=p.kMaxRequests,Ar=p.kCounter,An=p.kClose,Ai=p.kDestroy,Ao=p.kDispatch,As=p.kInterceptors,Aa=p.kLocalAddress,Al=p.kMaxResponseSize,AE=p.kHTTPConnVersion,Ac=p.kHost,Ag=p.kHTTP2Session,Ah=p.kHTTP2SessionState,AQ=p.kHTTP2BuildRequest,AC=p.kHTTP2CopyHeaders,Au=p.kHTTP1BuildRequest;try{Ad=$1a9a6c83d93b5ec4$import$dc5c58500bc5a0ce;}catch{Ad={constants:{}};}let{constants:{HTTP2_HEADER_AUTHORITY:AG,HTTP2_HEADER_METHOD:AO,HTTP2_HEADER_PATH:AJ,HTTP2_HEADER_SCHEME:AH,HTTP2_HEADER_CONTENT_LENGTH:AV,HTTP2_HEADER_EXPECT:AP,HTTP2_HEADER_STATUS:A_}}=Ad,AW=!1,Aq=Buffer[Symbol.species],Aj=Symbol(),AX={};try{let A=$1a9a6c83d93b5ec4$import$448217ca25882f04;AX.sendHeaders=A.channel("undici:client:sendHeaders"),AX.beforeConnect=A.channel("undici:client:beforeConnect"),AX.connectError=A.channel("undici:client:connectError"),AX.connected=A.channel("undici:client:connected");}catch{AX.sendHeaders={hasSubscribers:!1},AX.beforeConnect={hasSubscribers:!1},AX.connectError={hasSubscribers:!1},AX.connected={hasSubscribers:!1};}AI=nl("azzFq"),AB=nl("bHAsD");let A$=Buffer.alloc(0),AZ=null,Az=Aw();Az.catch();let AK=null,A0=null,A1=0,A2=null,A4=1,A9=2,A8=3;class A3{constructor(A,e,{exports:t}){rH(Number.isFinite(A[j])&&A[j]>0),this.llhttp=t,this.ptr=this.llhttp.llhttp_alloc(AI.TYPE.RESPONSE),this.client=A,this.socket=e,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=A[j],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=A[Al];}setTimeout(A,e){this.timeoutType=e,A!==this.timeoutValue?(n.clearTimeout(this.timeout),A?(this.timeout=n.setTimeout(AR,A,this),this.timeout.unref&&this.timeout.unref()):this.timeout=null,this.timeoutValue=A):this.timeout&&this.timeout.refresh&&this.timeout.refresh();}resume(){!this.socket.destroyed&&this.paused&&(rH(null!=this.ptr),rH(null==AK),this.llhttp.llhttp_resume(this.ptr),rH(this.timeoutType===A9),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,t
`,"latin1"):e.write(`${s}content-length: ${r}\r
\r
`,"latin1")),null===r&&e.write(`\r
${l.toString(16)}\r
`,"latin1"),this.bytesWritten+=l;let E=e.write(A);return e.uncork(),t.onBodySent(A),!E&&e[b].timeout&&e[b].timeoutType===A4&&e[b].timeout.refresh&&e[b].timeout.refresh(),E;}end(){let{socket:A,contentLength:e,client:t,bytesWritten:r,expectsPayload:n,header:i,request:o}=this;if(o.onRequestSent(),A[U]=!1,A[P])throw A[P];if(!A.destroyed){if(0===r?n?A.write(`${i}content-length: 0\r
\r
`,"latin1"):A.write(`${i}\r
`,"latin1"):null===e&&A.write("\r\n0\r\n\r\n","latin1"),null!==e&&r!==e){if(t[K])throw new a();process.emitWarning(new a());}A[b].timeout&&A[b].timeoutType===A4&&A[b].timeout.refresh&&A[b].timeout.refresh(),AL(t);}}destroy(A){let{socket:e,client:t}=this;e[U]=!1,A&&(rH(t[F]<=1,"pipeline should only contain this request"),r.destroy(e,A));}}A.exports=class extends o{constructor(A,{interceptors:e,maxHeaderSize:t,headersTimeout:n,socketTimeout:i,requestTimeout:o,connectTimeout:s,bodyTimeout:a,idleTimeout:l,keepAlive:c,keepAliveTimeout:g,maxKeepAliveTimeout:h,keepAliveMaxTimeout:Q,keepAliveTimeoutThreshold:C,socketPath:u,pipelining:I,tls:B,strictContentLength:d,maxCachedSessions:p,maxRedirections:m,connect:R,maxRequestsPerClient:D,localAddress:b,maxResponseSize:k,autoSelectFamily:N,autoSelectFamilyAttemptTimeout:F,allowH2:v,maxConcurrentStreams:L}={}){if(super(),void 0!==c)throw new E("unsupported keepAlive, use pipelining=0 instead");if(void 0!==i)throw new E("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(void 0!==o)throw new E("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(void 0!==l)throw new E("unsupported idleTimeout, use keepAliveTimeout instead");if(void 0!==h)throw new E("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead");if(null!=t&&!Number.isFinite(t))throw new E("invalid maxHeaderSize");if(null!=u&&"string"!=typeof u)throw new E("invalid socketPath");if(null!=s&&(!Number.isFinite(s)||s<0))throw new E("invalid connectTimeout");if(null!=g&&(!Number.isFinite(g)||g<=0))throw new E("invalid keepAliveTimeout");if(null!=Q&&(!Number.isFinite(Q)||Q<=0))throw new E("invalid keepAliveMaxTimeout");if(null!=C&&!Number.isFinite(C))throw new E("invalid keepAliveTimeoutThreshold");if(null!=n&&(!Number.isInteger(n)||n<0))throw new E("headersTimeout must be a positive integer or zero");if(null!=a&&(!Number.isInteger(a)||a<0))throw new E("bodyTimeout must be a positive integer or zero");if(null!=R&&"function"!=typeof R&&"object"!=typeof R)throw new E("connect must be a function or an object");if(null!=m&&(!Number.isInteger(m)||m<0))throw new E("maxRedirections must be a positive number");if(null!=D&&(!Number.isInteger(D)||D<0))throw new E("maxRequestsPerClient must be a positive number");if(null!=b&&("string"!=typeof b||0===rG.isIP(b)))throw new E("localAddress must be valid string IP address");if(null!=k&&(!Number.isInteger(k)||k<-1))throw new E("maxResponseSize must be a positive number");if(null!=F&&(!Number.isInteger(F)||F<-1))throw new E("autoSelectFamilyAttemptTimeout must be a positive number");if(null!=v&&"boolean"!=typeof v)throw new E("allowH2 must be a valid boolean value");if(null!=L&&("number"!=typeof L||L<1))throw new E("maxConcurrentStreams must be a possitive integer, greater than 0");"function"!=typeof R&&(R=f({...B,maxCachedSessions:p,allowH2:v,socketPath:u,timeout:s,...(r.nodeHasAutoSelectFamily&&N?{autoSelectFamily:N,autoSelectFamilyAttemptTimeout:F}:void 0),...R})),this[As]=e&&e.Client&&Array.isArray(e.Client)?e.Client:[AB({maxRedirections:m})],this[y]=r.parseOrigin(A),this[AA]=R,this[W]=null,this[_]=null!=I?I:1,this[j]=t||rT.maxHeaderSize,this[O]=null==g?4e3:g,this[X]=null==Q?6e5:Q,this[$]=null==C?1e3:C,this[q]=this[O],this[w]=null,this[Aa]=null!=b?b:null,this[S]=0,this[Y]=0,this[J]=`host: ${this[y].hostname}${this[y].port?":"+this[y].port:""}\r
`,this[z]=null!=a?a:3e5,this[Z]=null!=n?n:3e5,this[K]=null==d||d,this[Ae]=m,this[At]=D,this[Aj]=null,this[Al]=k>-1?k:-1,this[AE]="h1",this[Ag]=null,this[Ah]=v?{openStreams:0,maxConcurrentStreams:null!=L?L:100}:null,this[Ac]=`${this[y].hostname}${this[y].port?":"+this[y].port:""}`,this[x]=[],this[V]=0,this[H]=0;}get pipelining(){return this[_];}set pipelining(A){this[_]=A,AL(this,!0);}get[v](){return this[x].length-this[H];}get[F](){return this[H]-this[V];}get[L](){return this[x].length-this[V];}get[M](){return!!this[W]&&!this[T]&&!this[W].destroyed;}get[D](){let A=this[W];return A&&(A[m]||A[U]||A[N])||this[L]>=(this[_]||1)||this[v]>0;}[k](A){AF(this),this.once("connect",A);}[Ao](A,e){let t=A.origin||this[y].origin,n="h2"===this[AE]?i[AQ](t,A,e):i[Au](t,A,e);return this[x].push(n),this[S]||(null==r.bodyLength(n.body)&&r.isIterable(n.body)?(this[S]=1,process.nextTick(AL,this)):AL(this,!0)),this[S]&&2!==this[Y]&&this[D]&&(this[Y]=2),this[Y]<2;}async[An](){return new Promise(A=>{this[L]?this[Aj]=A:A(null);});}async[Ai](A){return new Promise(e=>{let t=this[x].splice(this[H]);for(let e=0;e<t.length;e++)AY(this,t[e],A);let n=()=>{this[Aj]&&(this[Aj](),this[Aj]=null),e();};null!=this[Ag]&&(r.destroy(this[Ag],A),this[Ag]=null,this[Ah]=null),this[W]?r.destroy(this[W].on("close",n),A):queueMicrotask(n),AL(this);});}};}),e7("c7jgd",function(A,e){var t,r,n,i,o,s,a,l;let E;function c(A){return A&&"object"==typeof A&&"function"==typeof A.pipe&&"function"==typeof A.on;}function g(A){return s&&A instanceof s||A&&"object"==typeof A&&("function"==typeof A.stream||"function"==typeof A.arrayBuffer)&&/^(Blob|File)$/.test(A[Symbol.toStringTag]);}function h(A){if("string"==typeof A){if(A=new URL(A),!/^https?:/.test(A.origin||A.protocol))throw new o("Invalid URL protocol: the URL must start with `http:` or `https:`.");return A;}if(!A||"object"!=typeof A)throw new o("Invalid URL: The URL argument must be a non-null object.");if(!/^https?:/.test(A.origin||A.protocol))throw new o("Invalid URL protocol: the URL must start with `http:` or `https:`.");if(!(A instanceof URL)){if(null!=A.port&&""!==A.port&&!Number.isFinite(parseInt(A.port)))throw new o("Invalid URL: port must be a valid integer or a string representation of an integer.");if(null!=A.path&&"string"!=typeof A.path)throw new o("Invalid URL path: the path must be a string or null/undefined.");if(null!=A.pathname&&"string"!=typeof A.pathname)throw new o("Invalid URL pathname: the pathname must be a string or null/undefined.");if(null!=A.hostname&&"string"!=typeof A.hostname)throw new o("Invalid URL hostname: the hostname must be a string or null/undefined.");if(null!=A.origin&&"string"!=typeof A.origin)throw new o("Invalid URL origin: the origin must be a string or null/undefined.");let e=null!=A.port?A.port:"https:"===A.protocol?443:80,t=null!=A.origin?A.origin:`${A.protocol}//${A.hostname}:${e}`,r=null!=A.path?A.path:`${A.pathname||""}${A.search||""}`;t.endsWith("/")&&(t=t.substring(0,t.length-1)),r&&!r.startsWith("/")&&(r="/"+r),A=new URL(t+r);}return A;}function Q(A){return!A||!!(A.destroyed||A[r]);}function C(A){let e=A&&A._readableState;return Q(A)&&e&&!e.endEmitted;}function u(A){return A instanceof Uint8Array||Buffer.isBuffer(A);}async function*I(A){for await(let e of A)yield Buffer.isBuffer(e)?e:Buffer.from(e);}r=(t=nl("J3IVZ")).kDestroyed,n=t.kBodyUsed,i=rT.IncomingMessage,o=nl("03MxY").InvalidArgumentError,s=r_.Blob,a=rW.stringify,l=nl("iM175").headerNameLowerCasedRecord;let[B,d]=process.versions.node.split(".").map(A=>+A),f=!!String.prototype.toWellFormed,p=Object.create(null);p.enumerable=!0,A.exports={kEnumerableProperty:p,nop:function(){},isDisturbed:function(A){return!!(A&&(rP.isDisturbed?rP.isDisturbed(A)||A[n]:A[n]||A.readableDidRead||A._readableState&&A._readableState.dataEmitted||C(A)));},isErrored:function(A){return!!(A&&(rP.isErrored?rP.isErrored(A):/state: 'errored'/.test(rV.inspect(A))));},isReadable:function(A){return!!(A&&(rP.isReadable?rP.isReadable(A):/state: 'readable'/.test(rV.inspect(A))));},toUSVString:function(A){return f?(""+A).toWellFormed():rV.toUSVString?
`;}function g(A,e,t,i=!1){if(t&&"object"==typeof t&&!Array.isArray(t))throw new r(`invalid ${e} header`);if(void 0!==t){if(null===A.host&&4===e.length&&"host"===e.toLowerCase()){if(null!==Q.exec(t))throw new r(`invalid ${e} header`);A.host=t;}else if(null===A.contentLength&&14===e.length&&"content-length"===e.toLowerCase()){if(A.contentLength=parseInt(t,10),!Number.isFinite(A.contentLength))throw new r("invalid content-length header");}else if(null===A.contentType&&12===e.length&&"content-type"===e.toLowerCase())A.contentType=t,i?A.headers[e]=c(e,t,i):A.headers+=c(e,t);else if(17===e.length&&"transfer-encoding"===e.toLowerCase())throw new r("invalid transfer-encoding header");else if(10===e.length&&"connection"===e.toLowerCase()){let e="string"==typeof t?t.toLowerCase():null;if("close"!==e&&"keep-alive"!==e)throw new r("invalid connection header");"close"===e&&(A.reset=!0);}else if(10===e.length&&"keep-alive"===e.toLowerCase())throw new r("invalid keep-alive header");else if(7===e.length&&"upgrade"===e.toLowerCase())throw new r("invalid upgrade header");else if(6===e.length&&"expect"===e.toLowerCase())throw new n("expect header not supported");else if(null===h.exec(e))throw new r("invalid header key");else if(Array.isArray(t))for(let r=0;r<t.length;r++)i?A.headers[e]?A.headers[e]+=","+c(e,t[r],i):A.headers[e]=c(e,t[r],i):A.headers+=c(e,t[r]);else i?A.headers[e]=c(e,t,i):A.headers+=c(e,t);}}r=(t=nl("03MxY")).InvalidArgumentError,n=t.NotSupportedError,o=(i=nl("J3IVZ")).kHTTP2BuildRequest,s=i.kHTTP2CopyHeaders,a=i.kHTTP1BuildRequest,l=nl("c7jgd");let h=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/,Q=/[^\t\x20-\x7e\x80-\xff]/,C=Symbol(),u={};try{let A=$936b13854be9d9df$import$8c11996ea4346c54;u.create=A.channel("undici:request:create"),u.bodySent=A.channel("undici:request:bodySent"),u.headers=A.channel("undici:request:headers"),u.trailers=A.channel("undici:request:trailers"),u.error=A.channel("undici:request:error");}catch{u.create={hasSubscribers:!1},u.bodySent={hasSubscribers:!1},u.headers={hasSubscribers:!1},u.trailers={hasSubscribers:!1},u.error={hasSubscribers:!1};}class I{constructor(A,{path:e,method:t,body:n,headers:i,query:o,idempotent:s,blocking:a,upgrade:c,headersTimeout:Q,bodyTimeout:I,reset:B,throwOnError:d,expectContinue:f},p){if("string"!=typeof e)throw new r("path must be a string");if("/"===e[0]||e.startsWith("http://")||e.startsWith("https://")||"CONNECT"===t){if(null!==/[^\u0021-\u00ff]/.exec(e))throw new r("invalid request path");}else throw new r("path must be an absolute URL or start with a slash");if("string"!=typeof t)throw new r("method must be a string");if(null===h.exec(t))throw new r("invalid request method");if(c&&"string"!=typeof c)throw new r("upgrade must be a string");if(null!=Q&&(!Number.isFinite(Q)||Q<0))throw new r("invalid headersTimeout");if(null!=I&&(!Number.isFinite(I)||I<0))throw new r("invalid bodyTimeout");if(null!=B&&"boolean"!=typeof B)throw new r("invalid reset");if(null!=f&&"boolean"!=typeof f)throw new r("invalid expectContinue");if(this.headersTimeout=Q,this.bodyTimeout=I,this.throwOnError=!0===d,this.method=t,this.abort=null,null==n)this.body=null;else if(l.isStream(n)){this.body=n;let A=this.body._readableState;A&&A.autoDestroy||(this.endHandler=function(){l.destroy(this);},this.body.on("end",this.endHandler)),this.errorHandler=A=>{this.abort?this.abort(A):this.error=A;},this.body.on("error",this.errorHandler);}else if(l.isBuffer(n))this.body=n.byteLength?n:null;else if(ArrayBuffer.isView(n))this.body=n.buffer.byteLength?Buffer.from(n.buffer,n.byteOffset,n.byteLength):null;else if(n instanceof ArrayBuffer)this.body=n.byteLength?Buffer.from(n):null;else if("string"==typeof n)this.body=n.length?Buffer.from(n):null;else if(l.isFormDataLike(n)||l.isIterable(n)||l.isBlobLike(n))this.body=n;else throw new r("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable");if(this.completed=!1,this.aborted=!1,this.upgrade=c||null,this.path=o?l.buildURL(e,o):e,this.origin=A,this.idempotent=null==s?"HEAD"===t||"GET"===t:s,this.blocking=null!=a&&a,this.reset=null==B?null:B,
`),this.body=A.stream,this.contentLength=A.length;}else l.isBlobLike(n)&&null==this.contentType&&n.type&&(this.contentType=n.type,this.headers+=`content-type: ${n.type}\r
`);l.validateHandler(p,t,c),this.servername=l.getServerName(this.host),this[C]=p,u.create.hasSubscribers&&u.create.publish({request:this});}onBodySent(A){if(this[C].onBodySent)try{return this[C].onBodySent(A);}catch(A){this.abort(A);}}onRequestSent(){if(u.bodySent.hasSubscribers&&u.bodySent.publish({request:this}),this[C].onRequestSent)try{return this[C].onRequestSent();}catch(A){this.abort(A);}}onConnect(A){if(rH(!this.aborted),rH(!this.completed),!this.error)return this.abort=A,this[C].onConnect(A);A(this.error);}onHeaders(A,e,t,r){rH(!this.aborted),rH(!this.completed),u.headers.hasSubscribers&&u.headers.publish({request:this,response:{statusCode:A,headers:e,statusText:r}});try{return this[C].onHeaders(A,e,t,r);}catch(A){this.abort(A);}}onData(A){rH(!this.aborted),rH(!this.completed);try{return this[C].onData(A);}catch(A){return this.abort(A),!1;}}onUpgrade(A,e,t){return rH(!this.aborted),rH(!this.completed),this[C].onUpgrade(A,e,t);}onComplete(A){this.onFinally(),rH(!this.aborted),this.completed=!0,u.trailers.hasSubscribers&&u.trailers.publish({request:this,trailers:A});try{return this[C].onComplete(A);}catch(A){this.onError(A);}}onError(A){if(this.onFinally(),u.error.hasSubscribers&&u.error.publish({request:this,error:A}),!this.aborted)return this.aborted=!0,this[C].onError(A);}onFinally(){this.errorHandler&&(this.body.off("error",this.errorHandler),this.errorHandler=null),this.endHandler&&(this.body.off("end",this.endHandler),this.endHandler=null);}addHeader(A,e){return g(this,A,e),this;}static[a](A,e,t){return new I(A,e,t);}static[o](A,e,t){let n=e.headers,i=new I(A,e={...e,headers:null},t);if(i.headers={},Array.isArray(n)){if(n.length%2!=0)throw new r("headers array must be even");for(let A=0;A<n.length;A+=2)g(i,n[A],n[A+1],!0);}else if(n&&"object"==typeof n){let A=Object.keys(n);for(let e=0;e<A.length;e++){let t=A[e];g(i,t,n[t],!0);}}else if(null!=n)throw new r("headers must be an object or an array");return i;}static[s](A){let e=A.split("\r\n"),t={};for(let A of e){let[e,r]=A.split(": ");null!=r&&0!==r.length&&(t[e]?t[e]+=","+r:t[e]=r);}return t;}}A.exports=I;}),e7("9pkjh",function(A,e){var t,r,n,i,o,s,a,l,E,c,g,h,Q,C,u,I,B,d,f,p,y,m,w,R,D;function b(A,e=!1){L||(L=rq.ReadableStream);let t=null;t=A instanceof L?A:o(A)?A.stream():new L({async pull(A){A.enqueue("string"==typeof l?x.encode(l):l),queueMicrotask(()=>a(A));},start(){},type:void 0}),rH(s(t));let n=null,l=null,E=null,c=null;if("string"==typeof A)l=A,c="text/plain;charset=UTF-8";else if(A instanceof URLSearchParams)l=A.toString(),c="application/x-www-form-urlencoded;charset=UTF-8";else if(y(A))l=new Uint8Array(A.slice());else if(ArrayBuffer.isView(A))l=new Uint8Array(A.buffer.slice(A.byteOffset,A.byteOffset+A.byteLength));else if(r.isFormDataLike(A)){let e="----formdata-undici-0"+(""+Math.floor(1e11*Math.random())).padStart(11,"0"),t=`--${e}\r
Content-Disposition: form-data`,r=A=>A.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),i=A=>A.replace(/\r?\n|\r/g,"\r\n"),o=[],s=new Uint8Array([13,10]);E=0;let a=!1;for(let[e,n]of A)if("string"==typeof n){let A=x.encode(t+`; name="${r(i(e))}"`+`\r
\r
${i(n)}\r
`);o.push(A),E+=A.byteLength;}else{let A=x.encode(`${t}; name="${r(i(e))}"`+(n.name?`; filename="${r(n.name)}"`:"")+"\r\n"+`Content-Type: ${n.type||"application/octet-stream"}\r
\r
`);o.push(A,n,s),"number"==typeof n.size?E+=A.byteLength+n.size+s.byteLength:a=!0;}let g=x.encode(`--${e}--`);o.push(g),E+=g.byteLength,a&&(E=null),l=A,n=async function*(){for(let A of o)A.stream?yield*A.stream():yield A;},c="multipart/form-data; boundary="+e;}else if(o(A))l=A,E=A.size,A.type&&(c=A.type);else if("function"==typeof A[Symbol.asyncIterator]){if(e)throw TypeError("keepalive");if(r.isDisturbed(A)||A.locked)throw TypeError("Response body object should not be disturbed or locked");t=A instanceof L?A:i(A);}if(("string"==typeof l||r.isBuffer(l))&&(E=Buffer.byteLength(l)),null!=n){let e;t=new L({async start(){e=n(A)[Symbol.asyncIterator]();},async pull(A){let{value:r,done:n}=await e.next();return n?queueMicrotask(()=>{A.close();}):f(t)||A.enqueue(new Uint8Array(r)),A.desiredSize>0;},async cancel(A){await e.return();},type:void 0});}return[{stream:t,source:l,length:E},c];}async function*k(A){if(A){if(p(A))yield A;else{let e=A.stream;if(r.isDisturbed(e))throw TypeError("The body has already been consumed.");if(e.locked)throw TypeError("The stream is locked.");e[d]=!0,yield*e;}}}function N(A){if(A.aborted)throw new C("The operation was aborted.","AbortError");}async function S(A,e,t){var n;if(h.brandCheck(A,t),N(A[g]),null!=(n=A[g].body)&&(n.stream.locked||r.isDisturbed(n.stream)))throw TypeError("Body is unusable");let i=l(),o=A=>i.reject(A),s=A=>{try{i.resolve(e(A));}catch(A){o(A);}};return null==A[g].body?s(new Uint8Array()):await E(A[g].body,s,o),i.promise;}function F(A){return 0===A.length?"":(239===A[0]&&187===A[1]&&191===A[2]&&(A=A.subarray(3)),M.decode(A));}function v(A){return JSON.parse(F(A));}t=nl("2Ekxx"),r=nl("c7jgd"),i=(n=nl("guORk")).ReadableStreamFrom,o=n.isBlobLike,s=n.isReadableStreamLike,a=n.readableStreamClose,l=n.createDeferredPromise,E=n.fullyReadBody,c=nl("ltfpn").FormData,g=nl("4r42s").kState,h=nl("1xsyj").webidl,C=(Q=nl("3j972")).DOMException,u=Q.structuredClone,I=r_.Blob,B=r_.File,d=nl("J3IVZ").kBodyUsed,f=(r=nl("c7jgd")).isErrored,p=rj.isUint8Array,y=rj.isArrayBuffer,m=nl("5JU9i").File,R=(w=nl("ldxmf")).parseMIMEType,D=w.serializeAMimeType;let L=globalThis.ReadableStream,U=null!=B?B:m,x=new TextEncoder(),M=new TextDecoder();A.exports={extractBody:b,safelyExtractBody:function(A,e=!1){return L||(L=rq.ReadableStream),A instanceof L&&(rH(!r.isDisturbed(A),"The body has already been consumed."),rH(!A.locked,"The stream is locked.")),b(A,e);},cloneBody:function(A){let[e,t]=A.stream.tee(),[,r]=u(t,{transfer:[t]}).tee();return A.stream=e,{stream:r,length:A.length,source:A.source};},mixinBody:function(A){Object.assign(A.prototype,{blob(){return S(this,A=>{let e=function(A){let{headersList:e}=A[g],t=e.get("content-type");return null===t?"failure":R(t);}(this);return"failure"===e?e="":e&&(e=D(e)),new I([A],{type:e});},A);},arrayBuffer(){return S(this,A=>new Uint8Array(A).buffer,A);},text(){return S(this,F,A);},json(){return S(this,v,A);},async formData(){h.brandCheck(this,A),N(this[g]);let e=this.headers.get("Content-Type");if(/multipart\/form-data/.test(e)){let A;let e={};for(let[A,t]of this.headers)e[A.toLowerCase()]=t;let r=new c();try{A=new t({headers:e,preservePath:!0});}catch(A){throw new C(""+A,"AbortError");}A.on("field",(A,e)=>{r.append(A,e);}),A.on("file",(A,e,t,n,i)=>{let o=[];if("base64"===n||"base64"===n.toLowerCase()){let n="";e.on("data",A=>{let e=(n+=A.toString().replace(/[\r\n]/gm,"")).length-n.length%4;o.push(Buffer.from(n.slice(0,e),"base64")),n=n.slice(e);}),e.on("end",()=>{o.push(Buffer.from(n,"base64")),r.append(A,new U(o,t,{type:i}));});}else e.on("data",A=>{o.push(A);}),e.on("end",()=>{r.append(A,new U(o,t,{type:i}));});});let n=new Promise((e,t)=>{A.on("finish",e),A.on("error",A=>t(TypeError(A)));});if(null!==this.body)for await(let e of k(this[g].body))A.write(e);return A.end(),await n,r;}if(/application\/x-www-form-urlencoded/.test(e)){let A;try{let e="",t=new TextDecoder("utf-8",{ignoreBOM:!0});for await(let A of k(this[g].body)){if(!p(A))throw TypeError("Expected Uint8Array chunk");e+=t.decode(A,{stream:!0});}e+=t.decode(),A=new URLSearchParams(e);}catch(A){throw Object.a
${t.count} ${t.noun} ${t.is} pending:
${A.format(e)}
`.trim());}};}),e7("9zXtN",function(A,e){var t=rV.promisify,r=nl("3xMRG"),n=nl("aXWzJ").buildMockDispatch,i=nl("63Ves"),o=i.kDispatches,s=i.kMockAgent,a=i.kClose,l=i.kOriginalClose,E=i.kOrigin,c=i.kOriginalDispatch,g=i.kConnected,h=nl("bbiYo").MockInterceptor,Q=nl("J3IVZ"),C=nl("03MxY").InvalidArgumentError;class u extends r{constructor(A,e){if(super(A,e),!e||!e.agent||"function"!=typeof e.agent.dispatch)throw new C("Argument opts.agent must implement Agent");this[s]=e.agent,this[E]=A,this[o]=[],this[g]=1,this[c]=this.dispatch,this[l]=this.close.bind(this),this.dispatch=n.call(this),this.close=this[a];}get[Q.kConnected](){return this[g];}intercept(A){return new h(A,this[o]);}async[a](){await t(this[l])(),this[g]=0,this[s][Q.kClients].delete(this[E]);}}A.exports=u;}),e7("fNmEN",function(A,e){let t={pronoun:"it",is:"is",was:"was",this:"this"},r={pronoun:"they",is:"are",was:"were",this:"these"};A.exports=class{constructor(A,e){this.singular=A,this.plural=e;}pluralize(A){let e=1===A,n=e?this.singular:this.plural;return{...(e?t:r),count:A,noun:n};}};}),e7("aArTY",function(A,e){var t=rP.Transform,r=r1.Console;A.exports=class{constructor({disableColors:A}={}){this.transform=new t({transform(A,e,t){t(null,A);}}),this.logger=new r({stdout:this.transform,inspectOptions:{colors:!A&&!process.env.CI}});}format(A){let e=A.map(({method:A,path:e,data:{statusCode:t},persist:r,times:n,timesInvoked:i,origin:o})=>({Method:A,Origin:o,Path:e,"Status code":t,Persistent:r?"✅":"❌",Invocations:i,Remaining:r?1/0:n-i}));return this.logger.table(e),this.transform.read().toString();}};}),e7("l978m",function(A,e){var t,r,n,i,o,s,a,l,E,c,g,h,Q;function C(A,e){return new l(A,e);}r=(t=nl("J3IVZ")).kProxy,n=t.kClose,i=t.kDestroy,o=t.kInterceptors,s=r2.URL,a=nl("4UFSJ"),l=nl("3xMRG"),E=nl("k3HYk"),g=(c=nl("03MxY")).InvalidArgumentError,h=c.RequestAbortedError,Q=nl("d4IVt");let u=Symbol(),I=Symbol(),B=Symbol(),d=Symbol(),f=Symbol(),p=Symbol();A.exports=class extends E{constructor(A){if(super(A),this[r]=function(A){if("string"==typeof A&&(A={uri:A}),!A||!A.uri)throw new g("Proxy opts.uri is mandatory");return{uri:A.uri,protocol:A.protocol||"https"};}(A),this[u]=new a(A),this[o]=A.interceptors&&A.interceptors.ProxyAgent&&Array.isArray(A.interceptors.ProxyAgent)?A.interceptors.ProxyAgent:[],"string"==typeof A&&(A={uri:A}),!A||!A.uri)throw new g("Proxy opts.uri is mandatory");let{clientFactory:e=C}=A;if("function"!=typeof e)throw new g("Proxy opts.clientFactory must be a function.");this[d]=A.requestTls,this[f]=A.proxyTls,this[B]=A.headers||{};let t=new s(A.uri),{origin:n,port:i,host:l,username:E,password:c}=t;if(A.auth&&A.token)throw new g("opts.auth cannot be used in combination with opts.token");A.auth?this[B]["proxy-authorization"]="Basic "+A.auth:A.token?this[B]["proxy-authorization"]=A.token:E&&c&&(this[B]["proxy-authorization"]="Basic "+Buffer.from(`${decodeURIComponent(E)}:${decodeURIComponent(c)}`).toString("base64"));let y=Q({...A.proxyTls});this[p]=Q({...A.requestTls}),this[I]=e(t,{connect:y}),this[u]=new a({...A,connect:async(A,e)=>{let t=A.host;!A.port&&(t+=":"+("https:"===A.protocol?443:80));try{let r;let{socket:o,statusCode:s}=await this[I].connect({origin:n,port:i,path:t,signal:A.signal,headers:{...this[B],host:l}});if(200!==s&&(o.on("error",()=>{}).destroy(),e(new h(`Proxy response (${s}) !== 200 when HTTP Tunneling`))),"https:"!==A.protocol){e(null,o);return;}r=this[d]?this[d].servername:A.servername,this[p]({...A,servername:r,httpSocket:o},e);}catch(A){e(A);}}});}dispatch(A,e){let{host:t}=new s(A.origin),r=function(A){if(Array.isArray(A)){let e={};for(let t=0;t<A.length;t+=2)e[A[t]]=A[t+1];return e;}return A;}(A.headers);return function(A){if(A&&Object.keys(A).find(A=>"proxy-authorization"===A.toLowerCase()))throw new g("Proxy-Authorization should be sent in ProxyAgent constructor");}(r),this[u].dispatch({...A,headers:{...r,host:t}},e);}async[n](){await this[u].close(),await this[I].close();}async[i](){await this[u].destroy(),await this[I].destroy();}};}),e7("kovwN",function(A,e){var t=nl("J3IVZ").kRetryHandlerDefaultRetry,r=nl("03MxY").
${e}`,nP=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),n_=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),nW=(A,e,t)=>{let r=""===t?"":`with ${t.trim()}() `,n=nV.bind(null,r,e.toString());Object.defineProperty(n,"name",n_),Object.defineProperty(A,"toString",{...nP,value:n});},nq=new WeakMap(),nj=(A,e={})=>{let t;if("function"!=typeof A)throw TypeError("Expected a function");let r=0,n=A.displayName||A.name||"<anonymous>",i=function(...o){if(nq.set(i,++r),1===r)t=A.apply(this,o),A=null;else if(!0===e.throw)throw Error(`Function \`${n}\` can only be called once`);return t;};return!function(A,e,{ignoreNonConfigurable:t=!1}={}){let{name:r}=A;for(let r of Reflect.ownKeys(e))nO(A,e,r,t);nH(A,e),nW(A,e,r);}(i,A),nq.set(i,r),i;};nj.callCount=A=>{if(!nq.has(A))throw Error(`The given function \`${A.name}\` is not wrapped by the \`onetime\` package`);return nq.get(A);},tb=nj;const nX=()=>Array.from({length:nz-nZ+1},n$),n$=(A,e)=>({name:"SIGRT"+(e+1),number:nZ+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),nZ=34,nz=64,nK=[{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:"t
${r.message}`:u,d=[B,e,A].filter(Boolean).join("\n");return I?(r.originalMessage=r.message,r.message=d):r=Error(d),r.shortMessage=B,r.command=o,r.escapedCommand=s,r.exitCode=i,r.signal=n,r.signalDescription=Q,r.stdout=A,r.stderr=e,r.cwd=h,void 0!==t&&(r.all=t),"bufferedData"in r&&delete r.bufferedData,r.failed=!0,r.timedOut=!!a,r.isCanceled=E,r.killed=c&&!a,r;},n5=["stdin","stdout","stderr"],n6=A=>n5.some(e=>void 0!==A[e]),n7=A=>{if(!A)return;let{stdio:e}=A;if(void 0===e)return n5.map(e=>A[e]);if(n6(A))throw Error("It's not possible to provide `stdio` in combination with one of "+n5.map(A=>`\`${A}\``).join(", "));if("string"==typeof e)return e;if(!Array.isArray(e))throw TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);return Array.from({length:Math.max(e.length,n5.length)},(A,t)=>e[t]);};tk={};const iA=function(A){return A&&"object"==typeof A&&"function"==typeof A.removeListener&&"function"==typeof A.emit&&"function"==typeof A.reallyExit&&"function"==typeof A.listeners&&"function"==typeof A.kill&&"number"==typeof A.pid&&"function"==typeof A.on;};if(iA(tN=no.process)){var ie,it=nl("2PjMq"),ir=/^win/i.test(tN.platform),ii=rJ;"function"!=typeof ii&&(ii=ii.EventEmitter),tN.__signal_exit_emitter__?ie=tN.__signal_exit_emitter__:((ie=tN.__signal_exit_emitter__=new ii()).count=0,ie.emitted={}),ie.infinite||(ie.setMaxListeners(1/0),ie.infinite=!0);var io=function(){il&&iA(no.process)&&(il=!1,it.forEach(function(A){try{tN.removeListener(A,ia[A]);}catch(A){}}),tN.emit=ih,tN.reallyExit=ic,ie.count-=1);};(tk=function(A,e){if(!iA(no.process))return function(){};rH.equal(typeof A,"function","a callback must be provided for exit handler"),!1===il&&iE();var t="exit";return e&&e.alwaysLast&&(t="afterexit"),ie.on(t,A),function(){ie.removeListener(t,A),0===ie.listeners("exit").length&&0===ie.listeners("afterexit").length&&io();};}).unload=io;var is=function(A,e,t){ie.emitted[A]||(ie.emitted[A]=!0,ie.emit(A,e,t));},ia={};it.forEach(function(A){ia[A]=function(){iA(no.process)&&tN.listeners(A).length===ie.count&&(io(),is("exit",null,A),is("afterexit",null,A),ir&&"SIGHUP"===A&&(A="SIGINT"),tN.kill(tN.pid,A));};}),tk.signals=function(){return it;};var il=!1,iE=function(){!il&&iA(no.process)&&(il=!0,ie.count+=1,it=it.filter(function(A){try{return tN.on(A,ia[A]),!0;}catch(A){return!1;}}),tN.emit=iQ,tN.reallyExit=ig);};tk.load=iE;var ic=tN.reallyExit,ig=function(A){iA(no.process)&&(tN.exitCode=A||0,is("exit",tN.exitCode,null),is("afterexit",tN.exitCode,null),ic.call(tN,tN.exitCode));},ih=tN.emit,iQ=function(A,e){if(!("exit"===A&&iA(no.process)))return ih.apply(this,arguments);void 0!==e&&(tN.exitCode=e);var t=ih.apply(this,arguments);return is("exit",tN.exitCode,null),is("afterexit",tN.exitCode,null),t;};}else tk=function(){return function(){};};const iC=(A,e="SIGTERM",t={})=>{let r=A(e);return iu(A,e,t,r),r;},iu=(A,e,t,r)=>{if(!iI(e,t,r))return;let n=setTimeout(()=>{A("SIGKILL");},id(t));n.unref&&n.unref();},iI=(A,{forceKillAfterTimeout:e},t)=>iB(A)&&!1!==e&&t,iB=A=>A===l(nn).constants.signals.SIGTERM||"string"==typeof A&&"SIGTERM"===A.toUpperCase(),id=({forceKillAfterTimeout:A=!0})=>{if(!0===A)return 5e3;if(!Number.isFinite(A)||A<0)throw TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${A}\` (${typeof A})`);return A;},ip=(A,e)=>{A.kill()&&(e.isCanceled=!0);},iy=(A,e,t)=>{A.kill(e),t(Object.assign(Error("Timed out"),{timedOut:!0,signal:e}));},im=(A,{timeout:e,killSignal:t="SIGTERM"},r)=>{let n;return 0===e||void 0===e?r:Promise.race([new Promise((r,i)=>{n=setTimeout(()=>{iy(A,t,i);},e);}),r.finally(()=>{clearTimeout(n);})]);},iw=({timeout:A})=>{if(void 0!==A&&(!Number.isFinite(A)||A<0))throw TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${A}\` (${typeof A})`);},iR=async(A,{cleanup:e,detached:t},r)=>{if(!e||t)return r;let n=l(tk)(()=>{A.kill();});return r.finally(()=>{n();});},iD=A=>A instanceof ne.ChildProcess&&"function"==typeof A.then,ib=(A,e,t)=>{if("string"==typeof t)return A[e].pipe((0,r3.createWriteStream)(t)),A;if(B(t))re
`);},i4=({env:A,extendEnv:e,preferLocal:t,localDir:r,execPath:n})=>{let i=e?{...l(nt).env,...A}:A;return t?nG({env:i,cwd:r,execPath:n}):i;},i9=(A,e,t={})=>{let r=l(tQ)._parse(A,e,t);return A=r.command,e=r.args,(t={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(t=r.options).cwd||l(nt).cwd(),execPath:l(nt).execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:iK,...t}).env=i4(t),t.stdio=n7(t),"win32"===l(nt).platform&&"cmd"===l(nA).basename(A,".exe")&&e.unshift("/q"),{file:A,args:e,options:t,parsed:r};},i8=(A,e,t)=>"string"==typeof e||(0,r7.Buffer).isBuffer(e)?A.stripFinalNewline?C(e):e:void 0===t?void 0:"",i3=({input:A,inputFile:e,stdio:t})=>void 0===A&&void 0===e&&void 0===t?{stdin:"inherit"}:{},i5=(A={})=>({preferLocal:!0,...i3(A),...A});!function A(e){function t(r,...n){if(!Array.isArray(r))return A({...e,...r});let[i,...o]=iz(r,n);return f(i,o,i5(e));}return t.sync=(A,...t)=>{if(!Array.isArray(A))throw TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[r,...n]=iz(A,t);return p(r,n,i5(e));},t;}();const i6={stdio:"inherit",shell:!0},i7=/^~(?=$|\/|\\)/;te=nl("pcnv8"),tT={},tY=nl("9zgMG"),tG=ni.env.npm_package_json,tJ=!!((tO=ni.env.npm_config_user_agent)&&tO.startsWith("npm")),tH=!!(tG&&tG.endsWith("package.json")),tV=tJ||tH,tP=!!(tO&&tO.startsWith("yarn")),t_=tV||tP,tW=rL.homedir(),tq=process.env.XDG_CONFIG_HOME||rU.join(tW,".config","simple-update-notifier"),tj=function(A){return rU.join(tq,"".concat(A.replace("@","").replace("/","__"),".json"));},tX=function(){rx.existsSync(tq)||rx.mkdirSync(tq,{recursive:!0});},t$=function(A){var e=tj(A);try{if(!rx.existsSync(e))return;return JSON.parse(rx.readFileSync(e,"utf8")).lastUpdateCheck;}catch(A){return;}},tZ=function(A){var e=tj(A);rx.writeFileSync(e,JSON.stringify({lastUpdateCheck:new Date().getTime()}));},tz=function(A,e){return N(void 0,void 0,void 0,function(){var t;return S(this,function(r){return t="https://registry.npmjs.org/-/package/".concat(A,"/dist-tags"),[2,new Promise(function(A,r){rY.get(t,function(t){var n="";t.on("data",function(A){return n+=A;}),t.on("end",function(){try{var t=JSON.parse(n)[e];t||r(Error("Error getting version")),A(t);}catch(A){r(Error("Could not parse version response"));}});}).on("error",function(A){return r(A);});})];});});},tK=function(A){var e=A.pkg,t=A.updateCheckInterval,r=void 0===t?864e5:t,n=A.distTag,i=void 0===n?"latest":n,o=A.alwaysRun,s=A.debug;return N(void 0,void 0,void 0,function(){var A,t;return S(this,function(n){switch(n.label){case 0:if(tX(),A=t$(e.name),!(o||!A||A<new Date().getTime()-r))return[3,2];return[4,tz(e.name,i)];case 1:if(t=n.sent(),tZ(e.name),tY.gt(t,e.version))return[2,t];return s&&console.error("Latest version (".concat(t,") not newer than current version (").concat(e.version,")")),[3,3];case 2:s&&console.error("Too recent to check for a new update. simpleUpdateNotifier() interval set to ".concat(r,"ms but only ").concat(new Date().getTime()-A,"ms since last check.")),n.label=3;case 3:return[2,!1];}});});},t0=function(A){for(var e=A.split("\n"),t=Math.max.apply(Math,e.map(function(A){return A.length;})),r=["┌".concat("─".repeat(t+2),"┐")],n=0;n<e.length;n++){var i=e[n];r.push("│ ".concat(i.padEnd(t)," │"));}return r.push("└".concat("─".repeat(t+2),"┘")),r.join("\n");},tT=function(A){return N(void 0,void 0,void 0,function(){var e,t;return S(this,function(r){switch(r.label){case 0:if(!A.alwaysRun&&(!process.stdout.isTTY||t_&&!A.shouldNotifyInNpmScript))return A.debug&&console.error("Opting out of running simpleUpdateNotifier()"),[2];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,tK(A)];case 2:return(e=r.sent())&&console.error(t0("New version of ".concat(A.pkg.name," available!\nCurrent Version: ").concat(A.pkg.version,"\nLatest Version: ").concat(e))),[3,4];case 3:return t=r.sent(),A.debug&&t instanceof Error&&console.error("Unexpected error in simpleUpdateNotifier():",t),[3,4];case 4:return[2];}});});},t1={},t1=JSON.parse('{"name":"setup-cpp","version":"0.37.0"}'),t2=nl("d1q4F"),te=nl("pcnv8"),t
${r.message}`:Q,I=[u,e,A].filter(Boolean).join("\n");return C?(r.originalMessage=r.message,r.message=I):r=Error(I),r.shortMessage=u,r.command=o,r.escapedCommand=s,r.exitCode=i,r.signal=n,r.signalDescription=g,r.stdout=A,r.stderr=e,void 0!==t&&(r.all=t),"bufferedData"in r&&delete r.bufferedData,r.failed=!0,r.timedOut=!!a,r.isCanceled=l,r.killed=E&&!a,r;},oi=["stdin","stdout","stderr"],oo=A=>oi.some(e=>void 0!==A[e]),os=A=>{if(!A)return;let{stdio:e}=A;if(void 0===e)return oi.map(e=>A[e]);if(oo(A))throw Error("It's not possible to provide `stdio` in combination with one of "+oi.map(A=>`\`${A}\``).join(", "));if("string"==typeof e)return e;if(!Array.isArray(e))throw TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);return Array.from({length:Math.max(e.length,oi.length)},(A,t)=>e[t]);},oa=(A,e="SIGTERM",t={})=>{let r=A(e);return ol(A,e,t,r),r;},ol=(A,e,t,r)=>{if(!oE(e,t,r))return;let n=setTimeout(()=>{A("SIGKILL");},og(t));n.unref&&n.unref();},oE=(A,{forceKillAfterTimeout:e},t)=>oc(A)&&!1!==e&&t,oc=A=>A===l(nn).constants.signals.SIGTERM||"string"==typeof A&&"SIGTERM"===A.toUpperCase(),og=({forceKillAfterTimeout:A=!0})=>{if(!0===A)return 5e3;if(!Number.isFinite(A)||A<0)throw TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${A}\` (${typeof A})`);return A;},oh=(A,e)=>{A.kill()&&(e.isCanceled=!0);},oQ=(A,e,t)=>{A.kill(e),t(Object.assign(Error("Timed out"),{timedOut:!0,signal:e}));},oC=(A,{timeout:e,killSignal:t="SIGTERM"},r)=>{let n;return 0===e||void 0===e?r:Promise.race([new Promise((r,i)=>{n=setTimeout(()=>{oQ(A,t,i);},e);}),r.finally(()=>{clearTimeout(n);})]);},ou=({timeout:A})=>{if(void 0!==A&&(!Number.isFinite(A)||A<0))throw TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${A}\` (${typeof A})`);},oI=async(A,{cleanup:e,detached:t},r)=>{if(!e||t)return r;let n=l(tk)(()=>{A.kill();});return r.finally(()=>{n();});},oB=A=>A instanceof ne.ChildProcess&&"function"==typeof A.then,od=(A,e,t)=>{if("string"==typeof t)return A[e].pipe((0,r3.createWriteStream)(t)),A;if(B(t))return A[e].pipe(t),A;if(!oB(t))throw TypeError("The second argument must be a string, a stream or an Execa child process.");if(!B(t.stdin))throw TypeError("The target child process's stdin must be available.");return A[e].pipe(t.stdin),t;},of=A=>{null!==A.stdout&&(A.pipeStdout=od.bind(void 0,A,"stdout")),null!==A.stderr&&(A.pipeStderr=od.bind(void 0,A,"stderr")),void 0!==A.all&&(A.pipeAll=od.bind(void 0,A,"all"));},op=A=>{if(void 0!==A)throw TypeError("The `input` and `inputFile` options cannot be both set.");},oy=({input:A,inputFile:e})=>"string"!=typeof e?A:(op(A),(0,r3.readFileSync)(e)),om=A=>{let e=oy(A);if(I(e))throw TypeError("The `input` option cannot be a stream in sync mode");return e;},ow=({input:A,inputFile:e})=>"string"!=typeof e?A:(op(A),(0,r3.createReadStream)(e)),oR=(A,e)=>{let t=ow(e);void 0!==t&&(I(t)?t.pipe(A.stdin):A.stdin.end(t));},oD=(A,{all:e})=>{if(!e||!A.stdout&&!A.stderr)return;let t=l(tx)();return A.stdout&&t.add(A.stdout),A.stderr&&t.add(A.stderr),t;},ob=async(A,e)=>{if(A&&void 0!==e){A.destroy();try{return await e;}catch(A){return A.bufferedData;}}},ok=(A,{encoding:e,buffer:t,maxBuffer:r})=>{if(A&&t)return e?l(tS)(A,{encoding:e,maxBuffer:r}):l(tS).buffer(A,{maxBuffer:r});},oN=async({stdout:A,stderr:e,all:t},{encoding:r,buffer:n,maxBuffer:i},o)=>{let s=ok(A,{encoding:r,buffer:n,maxBuffer:i}),a=ok(e,{encoding:r,buffer:n,maxBuffer:i}),l=ok(t,{encoding:r,buffer:n,maxBuffer:2*i});try{return await Promise.all([o,s,a,l]);}catch(r){return Promise.all([{error:r,signal:r.signal,timedOut:r.timedOut},ob(A,s),ob(e,a),ob(t,l)]);}},oS=(async()=>{})().constructor.prototype,oF=["then","catch","finally"].map(A=>[A,Reflect.getOwnPropertyDescriptor(oS,A)]),ov=(A,e)=>{for(let[t,r]of oF){let n="function"==typeof e?(...A)=>Reflect.apply(r.value,e(),A):r.value.bind(e);Reflect.defineProperty(A,t,{...r,value:n});}},oL=A=>new Promise((e,t)=>{A.on("exit",(A,t)=>{e({exitCode:A,signal:t});}),A.on("error",A=>{t(A);}),A.stdin&&A.stdin.on("error",A=>{t(A)
`);},oW=({env:A,extendEnv:e,preferLocal:t,localDir:r,execPath:n})=>{let i=e?{...l(nt).env,...A}:A;return t?function({env:A=l(nt).env,...e}={}){let t=M({env:A={...A}});return e.path=A[t],A[t]=function(A={}){let e;let{cwd:t=l(nt).cwd(),path:r=l(nt).env[M()],execPath:n=l(nt).execPath}=A,i=n instanceof URL?l(nr).fileURLToPath(n):n,o=t instanceof URL?l(nr).fileURLToPath(t):t,s=l(nA).resolve(o),a=[];for(;e!==s;)a.push(l(nA).join(s,"node_modules/.bin")),e=s,s=l(nA).resolve(s,"..");return a.push(l(nA).resolve(o,i,"..")),[...a,r].join(l(nA).delimiter);}(e),A;}({env:i,cwd:r,execPath:n}):i;},oq=(A,e,t={})=>{let r=l(tQ)._parse(A,e,t);return A=r.command,e=r.args,(t={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(t=r.options).cwd||l(nt).cwd(),execPath:l(nt).execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:oH,...t}).env=oW(t),t.stdio=os(t),"win32"===l(nt).platform&&"cmd"===l(nA).basename(A,".exe")&&e.unshift("/q"),{file:A,args:e,options:t,parsed:r};},oj=(A,e,t)=>"string"==typeof e||(0,r7.Buffer).isBuffer(e)?A.stripFinalNewline?C(e):e:void 0===t?void 0:"",oX=({input:A,inputFile:e,stdio:t})=>void 0===A&&void 0===e&&void 0===t?{stdin:"inherit"}:{},o$=(A={})=>({preferLocal:!0,...oX(A),...A});!function A(e){function t(r,...n){if(!Array.isArray(r))return A({...e,...r});let[i,...o]=oJ(r,n);return T(i,o,o$(e));}return t.sync=(A,...t)=>{if(!Array.isArray(A))throw TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[r,...n]=oJ(A,t);return function(A,e,t){let r;let n=oq(A,e,t),i=oM(A,e),o=oT(A,e);o_(o,n.options);let s=om(n.options);try{r=l(ne).spawnSync(n.file,n.args,{...n.options,input:s});}catch(A){throw on({error:A,stdout:"",stderr:"",all:"",command:i,escapedCommand:o,parsed:n,timedOut:!1,isCanceled:!1,killed:!1});}let a=oj(n.options,r.stdout,r.error),E=oj(n.options,r.stderr,r.error);if(r.error||0!==r.status||null!==r.signal){let A=on({stdout:a,stderr:E,error:r.error,signal:r.signal,exitCode:r.status,command:i,escapedCommand:o,parsed:n,timedOut:r.error&&"ETIMEDOUT"===r.error.code,isCanceled:!1,killed:null!==r.signal});if(!n.options.reject)return A;throw A;}return{command:i,escapedCommand:o,exitCode:0,stdout:a,stderr:E,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};}(r,n,o$(e));},t;}(),ta=nl("6vN83"),t9=nl("hQXed");const oZ={shouldEscapeSpace:!1,shouldAddOnlyIfNotDefined:!1},oz=[/\/usr\/bin\/?/,/\/usr\/local\/bin\/?/],oK=k("~/.cpprc");let o0=!1,o1=!1,o2=!1;const o4=["E: Could not get lock","dpkg: error processing archive","dpkg: error: dpkg status database is locked by another process"];(e5=t5||(t5={}))[e5.NameDashVersion=0]="NameDashVersion",e5[e5.NameEqualsVersion=1]="NameEqualsVersion",e5[e5.Name=2]="Name",e5[e5.None=3]="None",t2=nl("d1q4F"),t6=nl("jQPzx"),t7=nl("2C5C8"),ta=nl("6vN83"),t6=nl("jQPzx");let o9=!1;te=nl("pcnv8"),t9=nl("hQXed"),t6=nl("jQPzx");let o8=!1;te=nl("pcnv8"),te=nl("pcnv8");let o3=!1,o5=!1;const o6=/Version\s*:\s*(.*)/g;rA={},re=rU.resolve(__dirname,"../../node_modules/@actions/tool-cache/lib"),rt=rA&&rA.__createBinding||(Object.create?function(A,e,t,r){void 0===r&&(r=t),Object.defineProperty(A,r,{enumerable:!0,get:function(){return e[t];}});}:function(A,e,t,r){void 0===r&&(r=t),A[r]=e[t];}),rr=rA&&rA.__setModuleDefault||(Object.create?function(A,e){Object.defineProperty(A,"default",{enumerable:!0,value:e});}:function(A,e){A.default=e;}),rn=rA&&rA.__importStar||function(A){if(A&&A.__esModule)return A;var e={};if(null!=A)for(var t in A)"default"!==t&&Object.hasOwnProperty.call(A,t)&&rt(e,A,t);return rr(e,A),e;},ri=rA&&rA.__awaiter||function(A,e,t,r){return new(t||(t=Promise))(function(n,i){function o(A){try{a(r.next(A));}catch(A){i(A);}}function s(A){try{a(r.throw(A));}catch(A){i(A);}}function a(A){var e;A.done?n(A.value):((e=A.value)instanceof t?e:new t(function(A){A(e);})).then(o,s);}a((r=r.apply(A,e||[])).next());});},ro=rA&&rA.__importDefault||function(A){return A&&A.__esModule?A:{default:A};},Object.defineProperty(rA,"__esModule",{value:!0}),rA.evaluateVersions=rA.isExplicitVersion=rA.findFromManifest=rA.getManifestFro
2023-07-16 06:41:58 +08:00
//# sourceMappingURL=setup-cpp.js.map