mirror of https://github.com/aminya/setup-cpp.git
3 lines
282 KiB
JavaScript
3 lines
282 KiB
JavaScript
function e(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}function t(e){return e&&e.__esModule?e.default:e}function r(e,t,n){if("function"==typeof t&&(n=t,t={}),!n){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise(((n,s)=>{r(e,t||{},((e,t)=>{e?s(e):n(t)}))}))}Xt(e,t||{},((e,r)=>{e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,r=!1),n(e,r)}))}function n(e,r,n){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeof er)return{binDir:er};const s=t(Vt).sync("brew",{nothrow:!0});return null!==s?(er=(0,Et.dirname)(s),{binDir:er}):((0,Ct.execFileSync)('/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"',{stdio:"inherit"}),er="/usr/local/bin/",{binDir:er})}function s(e,t){const r=e.options.env||process.env,n=process.cwd(),s=null!=e.options.cwd,o=s&&void 0!==process.chdir&&!process.chdir.disabled;if(o)try{process.chdir(e.options.cwd)}catch(e){}let i;try{i=Vt.sync(e.command,{path:r[or({env:r})],pathExt:t?Et.delimiter:void 0})}catch(e){}finally{o&&process.chdir(n)}return i&&(i=Et.resolve(s?e.options.cwd:"",i)),i}function o(e,t){return Object.assign(Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function i(e,t){return yr&&1===e&&!t.file?o(t.original,"spawn"):null}function a(e,t,r){const n=sr(e,t,r),s=Ct.spawn(n.command,n.args,n.options);return gr.hookChildProcess(s,n),s}async function c(e,t){if(!e)throw Error("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:r}=t,n=mn(t);return await new Promise(((t,s)=>{const o=e=>{e&&n.getBufferedLength()<=yn.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),s(e)};(async()=>{try{await bn(e,n),t()}catch(e){o(e)}})(),n.on("data",(()=>{n.getBufferedLength()>r&&o(new wn)}))})),n.getBufferedValue()}function l(){return(!!process.env.CI||0===(null===(e=process.getuid)||void 0===e?void 0:e.call(process)))&&null!==t(Vt).sync("sudo",{nothrow:!0});var e}function u(e,r=[],n={stdio:"inherit",shell:!0}){return l()?t(rr).commandSync("sudo "+[e,...r].map((e=>`'${e}'`)).join(" "),n):t(rr).sync(e,r,n)}function d(e){return l()&&"string"==typeof process.env.SUDO_USER?"darwin"===process.platform?(0,Et.join)("/Users/",process.env.SUDO_USER,e):(0,Et.join)("/home/",process.env.SUDO_USER,e):t(zn)("~/"+e)}function h(e,r=["-NoProfile","-NoLogo","-NonInteractive"],n={stdio:"inherit"}){return t(rr)((()=>{if(void 0===Xn){const e=t(Vt).sync("pwsh",{nothrow:!0});null!==e&&(Xn=e);const r=t(Vt).sync("powershell",{nothrow:!0});null!==r&&(Xn=r)}if(void 0===Xn)throw Error("Could not find powershell");return Xn})(),[...r,"-c",e],n)}async function p(e,r,n=!1){const s=n?t(Kn)(null!=r?r:""):r;try{if("github-actions"===t(Vn)())try{(0,zt.exportVariable)(e,s)}catch(t){(0,Yn.error)(t),await m(e,s)}else await m(e,s)}catch(t){(0,Yn.error)(t),(0,zt.setFailed)(`Failed to export environment variable ${e}=${s}. You should add it manually.`)}}async function f(e){process.env.PATH=`${e}${Et.delimiter}${process.env.PATH}`;try{if("github-actions"===t(Vn)())try{(0,zt.addPath)(e)}catch(t){(0,Yn.error)(t),await g(e)}else await g(e)}catch(t){(0,Yn.error)(t),(0,zt.setFailed)(`Failed to add ${e} to the percistent PATH. You should add it manually.`)}}async function m(e,t){const r=null!=t?t:"";switch(process.platform){case"win32":return await h(`[Environment]::SetEnvironmentVariable('${e}', '${r}', "User")`),void(0,zt.info)(`${e}='${r}' was set in the environment.`);case"linux":case"darwin":return y(),(0,xt.appendFileSync)(es,`\nexport ${e}="${r}"\n`),void(0,zt.info)(`${e}="${r}" was added to "${es}`)}process.env[e]=r}async function g(e){switch(process.platform){case"win32":return await h(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),void(0,zt.info)(`"${e}" was added to the PATH.`);case"linux":case"darwin":return y(),(0,xt.appendFileSync)(es,`\nexport PATH="${e}:$PATH"\n`),void(0,zt.info)(`"${e}" was added to "${es}"`);default:return}}function y(){if(ts)return;const e="export SOURCE_CPPRC=0";if((0,xt.existsSync)(es)&&(0,xt.readFileSync)(es,"utf8").includes(e))return;(0,xt.appendFileSync)(es,`\n${e}\n`),(0,zt.info)(`Added ${e} to ${es}`);const t=`\n# source .cpprc if SOURCE_CPPRC is not set to 0\nif [[ "$SOURCE_CPPRC" != 0 && -f "${es}" ]]; then source "${es}"; fi\n`;try{const e=d(".profile");(0,xt.appendFileSync)(e,t),(0,zt.info)(`${t} was added to ${e}`);const r=d(".bashrc");(0,xt.appendFileSync)(r,t),(0,zt.info)(`${t} was added to ${r}`)}catch(e){(0,Yn.warning)(`Failed to add ${t} to .profile or .bashrc. You should add it manually: ${e}`)}ts=!0}async function v(e,r,n=[],s=!1){const o=(()=>{let e;return e=null!==t(Vt).sync("nala",{nothrow:!0})?"nala":"apt-get",e})();if((0,zt.info)(`Installing ${e} ${null!=r?r:""} via ${o}`),process.env.DEBIAN_FRONTEND="noninteractive",rs&&!s||(b(o),rs=!0),ns||(await(async e=>{u(e,["install","--fix-broken","-y","software-properties-common","apt-utils","ca-certificates","gnupg"]),E(["3B4FE6ACC0B21F32","40976EAF437D05B5"],"setup-cpp-ubuntu-archive.gpg"),E(["1E9377A2BA9EF27F"],"launchpad-toolchain.gpg"),"nala"===e&&(await p("LANG","C.UTF-8"),await p("LC_ALL","C.UTF-8"))})(o),ns=!0),Array.isArray(n)&&0!==n.length){for(const e of n)u("add-apt-repository",["--update","-y",e]);b(o)}if(void 0!==r&&""!==r)try{u(o,["install","--fix-broken","-y",`${e}=${r}`])}catch{u(o,["install","--fix-broken","-y",`${e}-${r}`])}else u(o,["install","--fix-broken","-y",e]);return{binDir:"/usr/bin/"}}function b(e){u(e,"nala"!==e?["update","-y"]:["update"])}function w(){u("gpg",["-k"])}function E(e,t,r="keyserver.ubuntu.com"){const n="/etc/apt/trusted.gpg.d/"+t;if(!(0,xt.existsSync)(n)){w();for(const t of e)u("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+n,"--keyserver",r,"--recv-keys",t]),u("chmod",["644",n])}return n}async function x(e,t){const r="/etc/apt/trusted.gpg.d/"+e;return(0,xt.existsSync)(r)||(w(),await v("curl",void 0),u("bash",["-c",`curl -s ${t} | gpg --no-default-keyring --keyring gnupg-ring:${r} --import`]),u("chmod",["644",r])),r}function _(e,r){return"github-actions"===t(Vn)()?u("update-alternatives",["--install","/usr/bin/"+e,e,r,"40"]):(y(),(0,xt.appendFileSync)(es,`\nif [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${e} ${e} ${r} 40; fi\n`))}function S(e,t,r){(0,Yn.info)(`Installing ${e} ${null!=t?t:""} via pacman`);const n="pacman";if(ss||(u(n,["-Syuu","--noconfirm"]),ss=!0),os||(u(n,["-Sy","--noconfirm","base-devel"]),os=!0),void 0!==t&&""!==t)try{u(null!=r?r:n,["-S","--noconfirm",`${e}=${t}`])}catch{u(null!=r?r:n,["-S","--noconfirm",`${e}${t}`])}else u(null!=r?r:n,["-S","--noconfirm",e]);return{binDir:"/usr/bin/"}}function O(e,r){return(0,zt.info)(`Installing ${e} ${null!=r?r:""} via brew`),as&&null!==t(Vt).sync("brew",{nothrow:!0})||(n(0,0,process),as=!0),t(rr).sync("brew",["install",void 0!==r&&""!==r?`${e}@${r}`:e],{stdio:"inherit"}),{binDir:"/usr/local/bin/"}}async function T(e,r,n){if("win32"!==process.platform)return;if("string"==typeof is)return{binDir:is};const s=t(Vt).sync("choco",{nothrow:!0});if(null!==s)return is=(0,Et.dirname)(s),{binDir:is};let o="powershell.exe";const i=t(Vt).sync(process.env.SystemRoot+"\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",{nothrow:!0});null!==i&&(o=i),t(rr).sync(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"});const a=process.env.ALLUSERSPROFILE+"\\chocolatey\\bin";await f(a);const c=t(Vt).sync("choco",{nothrow:!0});var l;return is=null!==c?(0,Et.dirname)(c):(null!==(l=process.env.ChocolateyInstall)&&void 0!==l?l:"C:/ProgramData/chocolatey")+"/bin",(0,xt.existsSync)(is)?{binDir:is}:void 0}async function R(e,r,n=[]){(0,zt.info)(`Installing ${e} ${null!=r?r:""} via chocolatey`),ds&&null!==t(Vt).sync("choco",{nothrow:!0})||(await T(0,0,process),ds=!0);const s=process.env.PATH,o={...process.env};if(delete o.TMP,delete o.TEMP,delete o.Path,o.PATH=s,void 0!==r&&""!==r)t(rr).sync("choco",["install","-y",e,"--version="+r,...n],{env:o,extendEnv:!1,stdio:"inherit"});else try{t(rr).sync("choco",["install","-y",e,...n],{env:o,extendEnv:!1,stdio:"inherit"})}catch(t){if(!t.message.includes("exit code 3010"))throw t;(0,Yn.notice)(e+" might require a reboot for the completion of the installation.")}var i;const a=(null!==(i=process.env.ChocolateyInstall)&&void 0!==i?i:"C:/ProgramData/chocolatey")+"/bin";return await f(a),{binDir:a}}function A(){return"linux"===process.platform&&(void 0===cs&&(cs=null!==t(Vt).sync("pacman",{nothrow:!0})),cs)}function C(){return"linux"===process.platform&&(void 0===ls&&(ls=null!==t(Vt).sync("dnf",{nothrow:!0})),ls)}function I(e,t){(0,Yn.info)(`Installing ${e} ${null!=t?t:""} via dnf`);const r="dnf";if(void 0!==t&&""!==t)try{u(r,["-y","install",`${e}-${t}`])}catch(t){(0,Yn.warning)(t+"\nInstalling the default version available via dnf"),u(r,["-y","install",e])}else u(r,["-y","install",e]);return{binDir:"/usr/bin/"}}function P(){if("linux"!==process.platform)return!1;if(void 0===us){const e="apt-get";us=null!==t(Vt).sync(e,{nothrow:!0})}return us}function $(e,t=".exe",r=""){return"win32"===process.platform?`${e}${t}`:`${e}${r}`}function k(e,t=".bat",r=".sh"){return"win32"===process.platform?`${e}${t}`:`${e}${r}`}function N(e,t,r){switch(process.platform){case"win32":return R("7zip",e);case"darwin":return O("p7zip",e);case"linux":if(A())return S("p7zip",e);if(C())return I("p7zip",e),I("p7zip-plugins",e);if(P())return v("p7zip-full",e);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}}function L(e){"linux"!==process.platform&&"darwin"!==process.platform||!l()||void 0===process.env.SUDO_USER||u("chown",["-R",process.env.SUDO_USER,e],{cwd:e,stdio:"inherit",shell:!0})}function j(e,t){const r=[];t=t||Ss.arch();const n=Os.join(H(),e);if(xs.existsSync(n)){const e=xs.readdirSync(n);for(const s of e)if(F(s)){const e=Os.join(n,s,t||"");xs.existsSync(e)&&xs.existsSync(e+".complete")&&r.push(s)}}return r}function U(e){return vs(this,void 0,void 0,(function*(){return e||(e=Os.join(q(),Is.default())),yield Es.mkdirP(e),e}))}function D(e,t,r){return vs(this,void 0,void 0,(function*(){const n=Os.join(H(),e,Rs.clean(t)||t,r||"");ws.debug("destination "+n);const s=n+".complete";return yield Es.rmRF(n),yield Es.rmRF(s),yield Es.mkdirP(n),n}))}function M(e,t,r){const n=Os.join(H(),e,Rs.clean(t)||t,r||"");xs.writeFileSync(n+".complete",""),ws.debug("finished caching tool")}function F(e){const t=Rs.clean(e)||"";ws.debug("isExplicit: "+t);const r=null!=Rs.valid(t);return ws.debug("explicit? "+r),r}function B(e,t){let r="";ws.debug(`evaluating ${e.length} versions`);for(let n=(e=e.sort(((e,t)=>Rs.gt(e,t)?1:-1))).length-1;n>=0;n--){const s=e[n];if(Rs.satisfies(s,t)){r=s;break}}return ws.debug(r?"matched: "+r:"match not found"),r}function H(){const e=process.env.RUNNER_TOOL_CACHE||"";return Rt.ok(e,"Expected RUNNER_TOOL_CACHE to be defined"),e}function q(){const e=process.env.RUNNER_TEMP||"";return Rt.ok(e,"Expected RUNNER_TEMP to be defined"),e}function G(e,t){const r=Bt[e];return void 0!==r?r:t}async function z(e,r){return await t(rr)(await(async()=>(void 0===Bs&&(null===t(Vt).sync("7z",{nothrow:!0})&&await N("",0,process),Bs="7z"),Bs))(),["x",e,"-o"+r,"-y"],{stdio:"inherit"}),L(r),r}function V(e,t){return z(e,t)}function W(e,t){return z(e,t)}async function Y(e,r,n=["--strip-components=0"]){try{await(0,hs.mkdirP)(r)}catch{}try{await t(rr)("tar",["xf",e,"-C",r,...n],{stdio:"inherit"})}catch(t){"win32"===process.platform&&t.message.includes("Can't create '\\\\?\\C:")&&(0,Yn.warning)(`Failed to extract symlink ${e} to ${r}. Ignoring this symlink.`)}return L(r),r}async function X(e,r,n,s,o){var i,a;(0,zt.info)(`Installing ${e} ${r} ${o} via direct downloading`),process.env.RUNNER_TEMP=null!==(i=process.env.RUNNER_TEMP)&&void 0!==i?i:(0,wt.tmpdir)(),process.env.RUNNER_TOOL_CACHE=null!==(a=process.env.RUNNER_TOOL_CACHE)&&void 0!==a?a:(0,Et.join)((0,wt.tmpdir)(),"setup-cpp","hostedtoolcache");const{url:c,binRelativeDir:l,binFileName:u,extractedFolderName:d,extractFunction:h}=await n(r,process.platform,o);if("github-actions"===t(Vn)())try{const t=(0,ps.find)(e,r);if(t){const n=(0,Et.join)(t,d),s=(0,Et.join)(n,l);if((0,xt.existsSync)(s)&&(0,xt.existsSync)((0,Et.join)(s,u)))return(0,zt.info)(`${e} ${r} was found in the cache at ${s}.`),await f(s),{installDir:n,binDir:s}}}catch{}const p=(0,Et.join)(s,d),m=(0,Et.join)(p,l),g=(0,Et.join)(m,u);if(!(0,xt.existsSync)(m)||!(0,xt.existsSync)(g)){(0,zt.info)(`Download and extract ${e} ${r}`),Hs||("linux"===process.platform&&(A()?(S("unzip"),S("tar"),S("xz")):C()?(I("unzip"),I("tar"),I("xz")):P()&&(await v("unzip"),await v("tar"),await v("xz-utils"))),Hs=!0);try{const e=await(0,ps.downloadTool)(c);await(null==h?void 0:h(e,s))}catch(t){throw Error(`Failed to download ${e} ${r} ${o} from ${c}: ${t}`)}}return(0,zt.info)(`Add ${m} to PATH`),await f(m),"github-actions"===t(Vn)()&&"string"==typeof process.env.RUNNER_TOOL_CACHE&&await(0,ps.cacheDir)(s,e,r),{installDir:p,binDir:m}}function K(e,t,r){const n=(e=>"win32"===e?"windows":e)(t),s=(e=>{switch(e){case"x64":return"amd64";case"ia32":case"x86":case"i386":case"x32":return"386";default:return e}})(r),o="win32"===t,i=o?"zip":"tar.gz";return{binRelativeDir:"",binFileName:$("task"),extractedFolderName:"",extractFunction:o?W:Y,url:`https://github.com/go-task/task/releases/download/v${e}/task_${n}_${s}.${i}`}}function J(e,r,n){var s;const o=null!==(s=t(zs)(e))&&void 0!==s?s:e;switch(r){case"win32":{const r=t(Gs)(o,"v3.19.6");let s;s=["ia32","x86","i386","x32"].includes(n)?r?"win32-x86":"windows-i386":r?"win64-x64":"windows-x86_64";const i=`cmake-${e}-${s}`;return{binRelativeDir:"bin/",binFileName:$("cmake"),extractedFolderName:i,extractFunction:W,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${i}.zip`}}case"darwin":{const r=`cmake-${e}-${t(Gs)(o,"v3.19.1")?"Darwin-x86_64":"macos-universal"}`;return{binRelativeDir:"CMake.app/Contents/bin/",binFileName:$("cmake"),extractedFolderName:r,extractFunction:ps.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${r}.tar.gz`}}case"linux":{const r=t(Gs)(o,"v3.19.8");let s;s=["aarch64"].includes(n)?r?"Linux-aarch64":"linux-aarch64":r?"Linux-x86_64":"linux-x86_64";const i=`cmake-${e}-${s}`;return{binRelativeDir:"bin/",binFileName:$("cmake"),extractedFolderName:i,extractFunction:ps.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${i}.tar.gz`}}default:throw Error(`Unsupported platform '${r}'`)}}function Q(e,t,r){return X("cmake",e,J,t,r)}async function Z(e,r,n){if("github-actions"!==t(Vn)())return ee(e,r);try{(0,Yn.info)("Installing python in GitHub Actions");const{setupActionsPython:t}=await Gt("d0ovd");return t(e,r,n)}catch(t){return(0,Yn.warning)(""+t),ee(e,r)}}async function ee(e,r,n){switch(process.platform){case"win32":{var s,o;r?await R("python3",e,["--params=/InstallDir:"+r]):await R("python3",e);const n=null!==(o=null!==(s=t(Vt).sync("python3.exe",{nothrow:!0}))&&void 0!==s?s:t(Vt).sync("python.exe",{nothrow:!0}))&&void 0!==o?o:(0,Et.join)(r,"python.exe"),i=(0,Et.dirname)(n);return await(async e=>{(0,Yn.info)(`Add ${e} to PATH`),await f(e)})(i),{installDir:i,binDir:i}}case"darwin":return O("python3",e);case"linux":{let t;if(A())t=S("python",e),S("python-pip");else if(C())t=I("python3",e),I("python3-pip");else{if(!P())throw Error("Unsupported linux distributions");t=await v("python3",e),await v("python3-pip")}return t}default:throw Error("Unsupported platform")}}function te(e,t,r){void 0===r&&(r=t,t=e,e=null),kt.Duplex.call(this,e),"function"!=typeof r.read&&(r=new kt.Readable(e).wrap(r)),this._writable=t,this._readable=r,this._waiting=!1;var n=this;t.once("finish",(()=>{n.end()})),this.once("finish",(()=>{t.end()})),r.on("readable",(()=>{n._waiting&&(n._waiting=!1,n._read())})),r.once("end",(()=>{n.push(null)})),e&&void 0!==e.bubbleErrors&&!e.bubbleErrors||(t.on("error",(e=>{n.emit("error",e)})),r.on("error",(e=>{n.emit("error",e)})))}function re(e,t){if(!e)return Promise.reject(Error("Expected a stream"));const r=(t=Object.assign({maxBuffer:1/0},t)).maxBuffer;let n,s;const o=new Promise(((o,i)=>{const a=e=>{e&&(e.bufferedData=n.getBufferedValue()),i(e)};n=Qs(t),e.once("error",a),e.pipe(n),n.on("data",(()=>{n.getBufferedLength()>r&&i(Error("maxBuffer exceeded"))})),n.once("error",a),n.on("end",o),s=()=>{e.unpipe&&e.unpipe(n)}}));return o.then(s,s),o.then((()=>n.getBufferedValue()))}function ne(e,t){for(var r in e)t[r]=e[r]}function se(e,t,r){return mo(e,t,r)}function oe(e){e=e||{};const t=new Tt,r=e.href||Lt.resolve(Lt.format(e),e.path);let n,s=0,o=0;const i=e=>{const a=("https:"===e.protocol?St:_t).request(e,(o=>{const c=o.statusCode;if(no(c)&&e.followRedirect&&"location"in o.headers&&("GET"===e.method||"HEAD"===e.method)){if(o.resume(),++s>10)return void t.emit("error",new ae.MaxRedirectsError(c,e),null,o);const r=""+yo.from(o.headers.location,"binary");n=Lt.resolve(Lt.format(e),r);const a=Object.assign({},e,Lt.parse(n));return t.emit("redirect",o,a),void i(a)}setImmediate((()=>{const e="HEAD"!==a.method?io(o):o;e.url=n||r,e.requestUrl=r,t.emit("response",e)}))}));a.once("error",(r=>{const n=e.retries(++o,r);n?setTimeout(i,n,e):t.emit("error",new ae.RequestError(r,e))})),e.gotTimeout&&Zs(a,e.gotTimeout),setImmediate((()=>{t.emit("request",a)}))};return i(e),t}function ie(e,t){if("string"!=typeof e&&"object"!=typeof e)throw Error("Parameter `url` must be a string or object, not "+typeof e);if("string"==typeof e&&(e=e.replace(/^unix:/,"http://$&"),(e=eo(e)).auth))throw Error("Basic authentication must be done with auth option");(t=Object.assign({protocol:"http:",path:"",retries:5},e,t)).headers=Object.assign({"user-agent":`${go.name}/${go.version} (https://github.com/sindresorhus/got)`,"accept-encoding":"gzip,deflate"},ro(t.headers));const r=t.query;r&&("string"!=typeof r&&(t.query=jt.stringify(r)),t.path=`${t.path.split("?")[0]}?${t.query}`,delete t.query),t.json&&void 0===t.headers.accept&&(t.headers.accept="application/json");let n=t.body;if(n){if("string"!=typeof n&&(null===n||"object"!=typeof n))throw Error("options.body must be a ReadableStream, string, Buffer or plain Object");if(t.method=t.method||"POST",Ks(n)&&"function"==typeof n.getBoundary?t.headers["content-type"]=t.headers["content-type"]||"multipart/form-data; boundary="+n.getBoundary():null===n||"object"!=typeof n||yo.isBuffer(n)||Ks(n)||(t.headers["content-type"]=t.headers["content-type"]||"application/x-www-form-urlencoded",n=t.body=jt.stringify(n)),void 0===t.headers["content-length"]&&void 0===t.headers["transfer-encoding"]&&!Ks(n)){const e="string"==typeof n?yo.byteLength(n):n.length;t.headers["content-length"]=e}}if(t.method=(t.method||"GET").toUpperCase(),"unix"===t.hostname){const e=/(.+):(.+)/.exec(t.path);e&&(t.socketPath=e[1],t.path=e[2],t.host=null)}if("function"!=typeof t.retries){const e=t.retries;t.retries=(t,r)=>t>e||!uo(r)?0:1e3*(1<<t)+100*Math.random()}return void 0===t.followRedirect&&(t.followRedirect=!0),t.timeout&&(t.gotTimeout=t.timeout,delete t.timeout),t}function ae(e,t){try{return(e=>new Promise(((t,r)=>{const n=oe(e);n.on("request",(t=>{if(Ks(e.body))return e.body.pipe(t),void(e.body=void 0);t.end(e.body)})),n.on("response",(n=>{(null===e.encoding?so.buffer(n):so(n,e)).catch((t=>r(new ae.ReadError(t,e)))).then((r=>{const s=n.statusCode,o=e.followRedirect?299:399;if(n.body=r,e.json&&n.body)try{n.body=JSON.parse(n.body)}catch(t){throw new ae.ParseError(t,s,e,r)}if(200>s||s>o)throw new ae.HTTPError(s,e);t(n)})).catch((e=>{Object.defineProperty(e,"response",{value:n}),r(e)}))})),n.on("error",r)})))(ie(e,t))}catch(e){return Promise.reject(e)}}function ce(e,t){void 0!==e.code&&(this.code=e.code),Object.assign(this,{message:e.message,host:t.host,hostname:t.hostname,method:t.method,path:t.path})}function le(e){return 4===e?"ipv4":6===e?"ipv6":e?e.toLowerCase():"ipv4"}function ue(e,t){for(var r=0,n=0;e.length>n;n++)r+=t.encodingLength(e[n]);return r}function de(e,t,r,n){for(var s=0;e.length>s;s++)t.encode(e[s],r,n),n+=t.encode.bytes;return n}function he(e,t,r,n){for(var s=0;e.length>s;s++)e[s]=t.decode(r,n),n+=t.decode.bytes;return n}function pe(e){function t(){var e=n._triesArray.reduce(me,0);n._interval=setInterval(r,Math.round(n.timeout/e)),n.emit("listening")}function r(){n._ontimeout()}if(!(this instanceof pe))return new pe(e);e||(e={}),Tt.EventEmitter.call(this);var n=this;this.retries=e.retries||5,this.timeout=e.timeout||7500,this.destroyed=!1,this.inflight=0,this.socket=e.socket||Dt.createSocket("udp4"),this._id=Math.ceil(65535*Math.random()),this._ids=[],this._queries=[],this._interval=null,this._triesArray=(e=>{var t=[];if(1>=e)return t;for(var r=1;e-1>=r;r++)t.push(Math.pow(2,r));return t})(this.retries),this.socket.on("error",(e=>{n.emit("EACCES"===e.code||"EADDRINUSE"===e.code?"error":"warning",e)})),this.socket.on("message",((e,t)=>{n._onmessage(e,t)})),(e=>{try{return 0!==e.address().port}catch(e){return!1}})(this.socket)?t():this.socket.on("listening",t),this.socket.on("close",(()=>{n.emit("close")}))}function fe(){}function me(e,t){return e+t}function ge(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function ye(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;var r=e.slice(0,t=t||1),n=e.slice(t);return[].concat.call([],ye(r),ye(n))}function ve(e){try{return decodeURIComponent(e)}catch(n){for(var t=e.match(gi),r=1;t.length>r;r++)t=(e=ye(t,r).join("")).match(gi);return e}}function be(e,t){return t.encode?t.strict?oi(e):encodeURIComponent(e):e}function we(e){return Array.isArray(e)?e.sort():"object"==typeof e?we(Object.keys(e)).sort(((e,t)=>+e-+t)).map((t=>e[t])):e}function Ee(e,t){return t.some((t=>t instanceof RegExp?t.test(e):t===e))}function xe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _e(e){var t={};if(!e)return t;for(var r=e.trim().split(/\s*,\s*/),n=Array.isArray(o=r),s=0,o=n?o:o[Symbol.iterator]();;){var i;if(n){if(s>=o.length)break;i=o[s++]}else{if((s=o.next()).done)break;i=s.value}var a=i.split(/\s*=\s*/,2),c=a[1];t[a[0]]=void 0===c||c.replace(/^"|"$/g,"")}return t}function Se(e){var t=[];for(var r in e){var n=e[r];t.push(!0===n?r:r+"="+n)}if(t.length)return t.join(", ")}function Oe(e,t){("object"!=typeof e||Array.isArray(e))&&(t=e,e={});var r,n=new Gi(e);return n._from=Array.isArray(t)?(r=(r=t).slice(),(e,t)=>{var n=null,s=r.length?r.shift():null;s instanceof Error&&(n=s,s=null),t(n,s)}):t||Re,n}function Te(e,t){function r(t){if(!(this instanceof r))return new r(t);this._reading=!1,this._callback=(e,t)=>{if(!n.destroyed){if(e)return n.destroy(e);if(null===t)return n.push(null);n._reading=!1,n.push(t)&&n._read(s)}},this.destroyed=!1,Bi.call(this,t||e);var n=this,s=this._readableState.highWaterMark}return"function"==typeof e&&(t=e,e={}),e=Ae(e),Hi(r,Bi),r.prototype._from=t||Re,r.prototype._read=function(e){this._reading||this.destroyed||(this._reading=!0,this._from(e,this._callback))},r.prototype.destroy=function(e){if(!this.destroyed){this.destroyed=!0;var t=this;process.nextTick((()=>{e&&t.emit("error",e),t.emit("close")}))}},r}function Re(){}function Ae(e){return e||{}}function Ce(e){if(null===e)return"null";if(!0===e||!1===e)return"boolean";const t=typeof e;if("undefined"===t)return"undefined";if("string"===t)return"string";if("number"===t)return"number";if("symbol"===t)return"symbol";if(Ce.function_(e))return"Function";if(Array.isArray(e))return"Array";if(Buffer.isBuffer(e))return"Buffer";const r=Yi(e);if(r)return r;if(e instanceof String||e instanceof Boolean||e instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}function Ie(e){e=e||{};const t=new Tt,r=e.href||Lt.resolve(Lt.format(e),e.path),n=[],s=zi.object(e.agent)?e.agent:null;let o,i,a=0,c=0;const l=e=>{if("http:"!==e.protocol&&"https:"!==e.protocol)return void t.emit("error",new ke.UnsupportedProtocolError(e));let u,d="https:"===e.protocol?St:_t;if(s&&(e.agent=s["https:"===e.protocol?"https":"http"]||e.agent),e.useElectronNet&&process.versions.electron){const e=Gt("fdKVL");d=e.net||e.remote.net}const h=new li(d.request,e.cache)(e,(s=>{clearInterval(u),t.emit("uploadProgress",{percent:1,transferred:c,total:i});const a=s.statusCode;s.url=o||r,s.requestUrl=r;const d=e.followRedirect&&"location"in s.headers,h=d&&Ta.has(a);if(d&&Ra.has(a)||h&&("GET"===e.method||"HEAD"===e.method)){if(s.resume(),303===a&&(e.method="GET"),n.length>=10)return void t.emit("error",new ke.MaxRedirectsError(a,n,e),null,s);const r=""+fa.from(s.headers.location,"binary");o=Lt.resolve(Lt.format(e),r),n.push(o);const i=Object.assign({},e,Lt.parse(o));return t.emit("redirect",s,i),void l(i)}setImmediate((()=>{try{((e,t,r,n)=>{const s=+e.headers["content-length"]||null;let o=0;const i=new ci({transform(e,t,n){o+=e.length;const i=s?o/s:0;1>i&&r.emit("downloadProgress",{percent:i,transferred:o,total:s}),n(null,e)},flush(e){r.emit("downloadProgress",{percent:1,transferred:o,total:s}),e()}});Pi(e,i),i.redirectUrls=n;const a=!0===t.decompress&&zi.function(Qi)&&"HEAD"!==t.method?Qi(i):i;t.decompress||-1===["gzip","deflate"].indexOf(e.headers["content-encoding"])||(t.encoding=null),r.emit("response",a),r.emit("downloadProgress",{percent:0,transferred:0,total:s}),e.pipe(i)})(s,e,t,n)}catch(e){t.emit("error",e)}}))}));h.on("error",(r=>{t.emit("error",r instanceof li.RequestError?new ke.RequestError(r,e):new ke.CacheError(r,e))})),h.once("request",(r=>{let n=!1;r.once("abort",(e=>{n=!0})),r.once("error",(r=>{if(clearInterval(u),n)return;const s=e.retries(++a,r);s?setTimeout(l,s,e):t.emit("error",new ke.RequestError(r,e))})),t.once("request",(e=>{t.emit("uploadProgress",{percent:0,transferred:0,total:i});const r=e.connection;if(r){const n=()=>{u=setInterval((()=>{if(r.destroyed)return void clearInterval(u);const n=c,s=e._header?fa.byteLength(e._header):0;c=r.bytesWritten-s,i&&c>i&&(c=i),c!==n&&c!==i&&t.emit("uploadProgress",{percent:i?c/i:0,transferred:c,total:i})}),150)};(void 0===r.connecting?r._connecting:r.connecting)?r.once("connect",n):n()}})),e.gotTimeout&&(clearInterval(u),Zs(r,e.gotTimeout)),setImmediate((()=>{t.emit("request",r)}))}))};return setImmediate((()=>{Promise.resolve((e=>{const t=e.body;return e.headers["content-length"]?+e.headers["content-length"]:t||e.stream?zi.string(t)?fa.byteLength(t):Aa(t)?aa(t.getLength.bind(t))():t instanceof xt.ReadStream?aa(xt.stat)(t.path).then((e=>e.size)):zi.nodeStream(t)&&zi.buffer(t._buffer)?t._buffer.length:null:0})(e)).then((t=>{i=t,zi.undefined(e.headers["content-length"])&&zi.undefined(e.headers["transfer-encoding"])&&Aa(e.body)&&(e.headers["content-length"]=t),l(e)})).catch((e=>{t.emit("error",e)}))})),t}function Pe(e){e.stream=!0;const t=new ai,r=new ai,n=qs(t,r);let s;if(e.gotTimeout&&e.gotTimeout.request&&(s=setTimeout((()=>{n.emit("error",new ke.RequestError({message:"Request timed out",code:"ETIMEDOUT"},e))}),e.gotTimeout.request)),e.json)throw Error("Got can not be used as a stream when the `json` option is used");e.body&&(n.write=()=>{throw Error("Got's stream is not writable when the `body` option is used")});const o=Ie(e);return o.on("request",(r=>{n.emit("request",r),zi.nodeStream(e.body)?e.body.pipe(r):e.body?r.end(e.body):"POST"!==e.method&&"PUT"!==e.method&&"PATCH"!==e.method?r.end():t.pipe(r)})),o.on("response",(t=>{clearTimeout(s);const o=t.statusCode;t.on("error",(t=>{n.emit("error",new ke.ReadError(t,e))})),t.pipe(r),e.throwHttpErrors&&304!==o&&(200>o||o>299)?n.emit("error",new ke.HTTPError(o,t.statusMessage,t.headers,e),null,t):n.emit("response",t)})),o.on("error",n.emit.bind(n,"error")),o.on("redirect",n.emit.bind(n,"redirect")),o.on("uploadProgress",n.emit.bind(n,"uploadProgress")),o.on("downloadProgress",n.emit.bind(n,"downloadProgress")),n}function $e(e,t){if(!zi.string(e)&&!zi.object(e))throw new TypeError("Parameter `url` must be a string or object, not "+zi(e));if(zi.string(e)){if(e=e.replace(/^unix:/,"http://$&"),(e=Ki(e)).auth)throw Error("Basic authentication must be done with the `auth` option")}else ra.lenient(e)&&(e=Ji(e));t=Object.assign({path:"",retries:2,cache:!1,decompress:!0,useElectronNet:!1,throwHttpErrors:!0},e,{protocol:e.protocol||"http:"},t);const r=ro(t.headers);for(const e of Object.keys(r))zi.nullOrUndefined(r[e])&&delete r[e];t.headers=Object.assign({"user-agent":`${pa.name}/${pa.version} (https://github.com/sindresorhus/got)`},r),t.decompress&&zi.undefined(t.headers["accept-encoding"])&&(t.headers["accept-encoding"]="gzip, deflate");const n=t.query;n&&(zi.string(n)||(t.query=jt.stringify(n)),t.path=`${t.path.split("?")[0]}?${t.query}`,delete t.query),t.json&&zi.undefined(t.headers.accept)&&(t.headers.accept="application/json");const s=t.body;if(zi.nullOrUndefined(s))t.method=(t.method||"GET").toUpperCase();else{const e=t.headers;if(!(zi.nodeStream(s)||zi.string(s)||zi.buffer(s)||t.form||t.json))throw new TypeError("The `body` option must be a stream.Readable, string, Buffer or plain Object");const r=zi.plainObject(s)||zi.array(s);if((t.form||t.json)&&!r)throw new TypeError("The `body` option must be a plain Object or Array when the `form` or `json` option is used");if(Aa(s)?e["content-type"]=e["content-type"]||"multipart/form-data; boundary="+s.getBoundary():t.form&&r?(e["content-type"]=e["content-type"]||"application/x-www-form-urlencoded",t.body=jt.stringify(s)):t.json&&r&&(e["content-type"]=e["content-type"]||"application/json",t.body=JSON.stringify(s)),zi.undefined(e["content-length"])&&zi.undefined(e["transfer-encoding"])&&!zi.nodeStream(s)){const r=zi.string(t.body)?fa.byteLength(t.body):t.body.length;e["content-length"]=r}zi.buffer(s)&&(t.body=Mi(s),t.body._buffer=s),t.method=(t.method||"POST").toUpperCase()}if("unix"===t.hostname){const e=/(.+?):(.+)/.exec(t.path);e&&(t.socketPath=e[1],t.path=e[2],t.host=null)}if(!zi.function(t.retries)){const e=t.retries;t.retries=(t,r)=>t>e||!uo(r)?0:1e3*(1<<t)+100*Math.random()}return zi.undefined(t.followRedirect)&&(t.followRedirect=!0),t.timeout&&(t.gotTimeout=zi.number(t.timeout)?{request:t.timeout}:t.timeout,delete t.timeout),t}function ke(e,t){try{const r=$e(e,t);return r.stream?Pe(r):(e=>{const t=new Tt,r=new ca(((r,n,s)=>{const o=Ie(e);let i=!1;s((()=>{i=!0})),o.on("request",(t=>{if(i&&t.abort(),s((()=>{t.abort()})),zi.nodeStream(e.body))return e.body.pipe(t),void(e.body=void 0);t.end(e.body)})),o.on("response",(t=>{(zi.null(e.encoding)?so.buffer(t):so(t,e)).catch((t=>n(new ke.ReadError(t,e)))).then((n=>{const s=t.statusCode,o=e.followRedirect?299:399;if(t.body=n,e.json&&t.body)try{t.body=JSON.parse(t.body)}catch(t){if(s>=200&&300>s)throw new ke.ParseError(t,s,e,n)}if(e.throwHttpErrors&&304!==s&&(200>s||s>o))throw new ke.HTTPError(s,t.statusMessage,t.headers,e);r(t)})).catch((e=>{Object.defineProperty(e,"response",{value:t}),n(e)}))})),o.once("error",n),o.on("redirect",t.emit.bind(t,"redirect")),o.on("uploadProgress",t.emit.bind(t,"uploadProgress")),o.on("downloadProgress",t.emit.bind(t,"downloadProgress"))}));Object.defineProperty(r,"canceled",{get(){return r.isCanceled}});const n=(s=r,e.gotTimeout&&e.gotTimeout.request?oa(s,e.gotTimeout.request,new ke.RequestError({message:"Request timed out",code:"ETIMEDOUT"},e)):s);var s;return n.cancel=r.cancel.bind(r),n.on=(e,r)=>(t.on(e,r),n),n})(r)}catch(e){return Promise.reject(e)}}function Ne(e){return Ys("http://captive.apple.com/hotspot-detect.html",{family:"v4"===e.version?4:6,headers:{"User-Agent":"CaptiveNetworkSupport/1.0 wispr"}}).then((e=>/Success/.test(e.body||"")||Promise.reject()))}function Le(e,t){return Array.from(e).filter((e=>/^\d+\.\d+\.\d+$/.test(e)&&e.startsWith(t))).sort().reverse()}function je(e,t,r=null){if(Ue(t,e)){if("linux"===process.platform&&null!==r&&e in oc){const t=r[0];return parseInt(Object.keys(oc[e])[0],10)>t?"":oc[e][t]}return sc[e]}return null!=t?t:""}function Ue(e,t){return"true"===e||void 0===e&&t in sc}async function De(e,r){if((0,zt.info)(`Installing ${e} ${null!=r?r:""} via pip`),void 0===ic){if(null!==t(Vt).sync("python3",{nothrow:!0}))ic="python3";else{if(null===t(Vt).sync("python",{nothrow:!0})||!await(async(e,r,n=nc)=>{const s=await(async(e,t=nc)=>{try{var r;const n=await(0,Ps.getExecOutput)(e,["--version"]);return null===(r=(n.stdout||n.stderr||"").trim().match(t))||void 0===r?void 0:r[1]}catch(e){return void console.error(e)}})(e,n);return"string"==typeof s&&"string"==typeof r&&""!==s&&""!==r&&-1!==t(tc)(s,r)})("python","3.0.0")){if((0,zt.info)("python3 was not found. Installing python"),await Z(je("python",void 0),"",process.arch),cc)throw Error("Failed to install python");return cc=!0,De(e,r)}ic="python"}"win32"===process.platform?t(rr).sync(ic,["-m","pip","install","-U","pip==21.3.1"],{stdio:"inherit"}):"linux"===process.platform&&(A()?S("python-pip"):C()?I("python3-pip"):P()&&await v("python3-pip")),t(rr).sync(ic,["-m","pip","install","-U","wheel"],{stdio:"inherit"})}if(t(rr).sync(ic,["-m","pip","install",void 0!==r&&""!==r?`${e}==${r}`:e],{stdio:"inherit"}),void 0===ac){if("linux"===process.platform)ac="/home/runner/.local/bin/";else if("darwin"===process.platform)ac="/usr/local/bin/";else try{ac=(0,Et.join)((await(0,Ps.getExecOutput)(ic+' -c "import sys;print(sys.base_exec_prefix);"')).stdout.trim(),"Scripts")}catch{ac=(0,Et.join)((await(0,Ps.getExecOutput)(ic+' -c "import sys;print(sys.base_exec_prefix);"')).stdout.trim(),"Scripts")}(0,zt.info)(ac+" to PATH"),await f(ac)}return{binDir:ac}}async function Me(e,t,r){switch(process.platform){case"win32":return await R("graphviz",e),(async()=>{if("win32"===process.platform){const e="C:/Program Files/Graphviz/bin";return await f(e),{binDir:e}}throw Error("Unsupported platform")})();case"darwin":return O("graphviz",e);case"linux":if(A())return S("graphviz",e);if(C())return I("graphviz",e);if(P())return v("graphviz",e);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}}function Fe(e,t,r){switch(t){case"linux":{const t="doxygen-"+e;return{binRelativeDir:"bin/",binFileName:$("doxygen"),extractedFolderName:t,extractFunction:ps.extractTar,url:`https://www.doxygen.nl/files/${t}.linux.bin.tar.gz`}}case"win32":{const t="doxygen-"+e;return{binRelativeDir:"",binFileName:$("doxygen"),extractedFolderName:t,extractFunction:W,url:`https://www.doxygen.nl/files/${t}.windows.x64.bin.zip`}}default:throw Error(`Unsupported platform '${t}'`)}}async function Be(){if("darwin"===process.platform)try{const e=await(0,Ps.getExecOutput)("xcrun --sdk macosx --show-sdk-path"),t=e.stdout||e.stderr;t?await p("SDKROOT",t.trim()):(0,Yn.error)("SDKROOT not set")}catch(e){(0,Yn.error)(e)}}function He(e,t,r){if("win32"===t){const t=dc[e];if(void 0===t)throw Error(`mingw version ${e} is not supported`);const n="ia32"===r?"i686":"x86_64",s="seh";return{binRelativeDir:"bin/",binFileName:$("g++"),extractedFolderName:"mingw64",extractFunction:z,url:`https://github.com/brechtsanders/winlibs_mingw/releases/download/${t.releaseName}/winlibs-${n}-posix-${s}-gcc-${t.fileSuffix}.7z`}}throw Error(`Unsupported platform '${t}'`)}async function qe(e,r,n){let s;switch(process.platform){case"win32":"arm"!==n&&"arm64"!==n||await R("gcc-arm-embedded",e);try{s=await X("g++",e,He,r,n)}catch(t){(0,Yn.info)(`Failed to download g++ binary. ${t}. Falling back to chocolatey.`),s=await(async(e,t)=>{let r;var n,s;return await R("mingw",e),"x64"===t&&(0,xt.existsSync)("C:/tools/mingw64/bin")?(r="C:/tools/mingw64/bin",await f(r)):"ia32"===t&&(0,xt.existsSync)("C:/tools/mingw32/bin")?(r="C:/tools/mingw32/bin",await f(r)):(0,xt.existsSync)((null!==(n=process.env.ChocolateyInstall)&&void 0!==n?n:"C:/ProgramData/chocolatey")+"/bin/g++.exe")&&(r=(null!==(s=process.env.ChocolateyInstall)&&void 0!==s?s:"C:/ProgramData/chocolatey")+"/bin"),void 0!==r?{binDir:r}:void 0})(e,n)}break;case"darwin":s=O("gcc",e);break;case"linux":"x64"===n?A()?s=S("gcc",e):C()?(s=I("gcc",e),I("gcc-c++",e),I("libstdc++-devel",void 0)):P()&&(await v("gcc",e,["ppa:ubuntu-toolchain-r/test"]),s=await v("g++",e,[])):((0,Yn.info)(`Install g++-multilib because gcc for ${n} was requested`),A()?S("gcc-multilib",e):P()&&await v("gcc-multilib",e,["ppa:ubuntu-toolchain-r/test"]));break;default:throw Error("Unsupported platform for "+n)}if(void 0!==s)return await(async(e,r)=>{const n=[];if("win32"===process.platform)n.push(p("CC",$(r+"/gcc")),p("CXX",$(r+"/g++")));else{var s;const o=t(lc)(null!==(s=t(zs)(e))&&void 0!==s?s:e);5>o?(n.push(p("CC",`${r}/gcc-${e}`),p("CXX",`${r}/g++-${e}`)),P()&&(_("cc",`${r}/gcc-${e}`),_("cxx",`${r}/g++-${e}`),_("gcc",`${r}/gcc-${e}`),_("g++",`${r}/g++-${e}`))):(n.push(p("CC",`${r}/gcc-${o}`),p("CXX",`${r}/g++-${o}`)),P()&&(_("cc",`${r}/gcc-${o}`),_("cxx",`${r}/g++-${o}`),_("gcc",`${r}/gcc-${o}`),_("g++",`${r}/g++-${o}`)))}n.push(Be()),"github-actions"===t(Vn)()&&(()=>{const e=t(Et).join(uc,"gcc_matcher.json");if(!(0,xt.existsSync)(e))return(0,Yn.warning)("the gcc_matcher.json file does not exist in the same folder as setup_cpp.js");(0,Yn.info)("::add-matcher::"+e)})(),await Promise.all(n)})(e,s.binDir),s}function Ge(e,t,r){return`https://github.com/llvm/llvm-project/releases/download/llvmorg-${e}/${t}${e}${r}`}function ze(e,t,r){return`https://releases.llvm.org/${e}/${t}${e}${r}`}function Ve(e,r){switch(e){case"darwin":return(e=>{if(fc.has(e))return null;const r="clang+llvm-",n=`-x86_64${"9.0.0"===e?"-darwin-apple":"-apple-darwin"}.tar.xz`;return t(Gs)(e,"9.0.1")?ze(e,r,n):Ge(e,r,n)})(r);case"linux":return(e=>{let r=e;const n=mc.get(r);let s;if(void 0!==n&&(r=n),r.includes("ubuntu")){const e=r.replace(/-ubuntu-.*/,"");if(!pc.has(e))throw Error("Unsupported Ubuntu version: "+e);s=r.replace(e,""),r=Le(pc,e)[0]}else""!==r&&r in gc?s=gc[r]:(s=gc["14.0.0"],(0,Yn.warning)(`Falling back to LLVM version 14.0.0 ${s} for the Ubuntu.`));const o="clang+llvm-",i="5.0.0"===r?`-linux-x86_64${s}.tar.xz`:`-x86_64-linux-gnu${s}.tar.xz`;return t(Gs)(r,"9.0.1")?ze(r,o,i):Ge(r,o,i)})(r);case"win32":return(async e=>{if(yc.has(e))return null;const r="LLVM-",n=t(Gs)(e,"3.7.0")?"-win32.exe":"-win64.exe",s=t(Gs)(e,"9.0.1");let o,i=!1;return s&&(o=ze(e,r,n),await t(Vs)(o)||(i=!0)),!i&&s||(o=Ge(e,r,n)),o})(r);default:return null}}async function We(e,r,n){const[s,o]=await(async(e,r,n,s)=>{if("linux"===r&&n.includes("ubuntu")){const e=await s(r,n);if(null!==e&&await t(Vs)(e))return[n,e]}if(!e.has(n))throw Error(`Unsupported target! (platform='${r}', version='${n}')`);for(const o of Le(e,n)){const e=await s(r,o);if(null!==e&&await t(Vs)(e))return[o,e]}throw Error(`Unsupported target! (platform='${r}', version='${n}')`)})(pc,r,e,Ve);return(0,zt.setOutput)("version",s),{url:o,extractedFolderName:"",binRelativeDir:"bin",binFileName:$("clang"),extractFunction:"win32"===r?V:(e,t)=>Y(e,t,["--strip-components=1"])}}async function Ye(e,r,n){const s=await Xe(e,r,n);var o;return await(async(e,r)=>{const n=(e=>{if(null===t(rc)(e))try{const r=t(zs)(e);if(null!==r)return(0,Yn.info)(`Coerced version '${e}' to '${r}'`),r.version}catch(e){}return e})(r),s=Et.join(e,"lib");var o;const i=null!==(o=process.env.LD_LIBRARY_PATH)&&void 0!==o?o:"";var a;const c=null!==(a=process.env.DYLD_LIBRARY_PATH)&&void 0!==a?a:"",l=[p("LLVM_PATH",e),p("LD_LIBRARY_PATH",`${s}${Et.delimiter}${i}`),p("DYLD_LIBRARY_PATH",`${s}${Et.delimiter}${c}`),p("LDFLAGS",`-L"${e}/lib"`),p("CPPFLAGS",`-I"${e}/include"`),p("CC",$(e+"/bin/clang")),p("CXX",$(e+"/bin/clang++")),p("LIBRARY_PATH",e+"/lib"),Be()];if("win32"!==process.platform){const r=t(lc)(n);(0,xt.existsSync)(`${e}/lib/clang/${n}/include`)?l.push(p("CPATH",`${e}/lib/clang/${n}/include`)):(0,xt.existsSync)(`${e}/lib/clang/${r}/include`)&&l.push(p("CPATH",`${e}/lib/clang/${r}/include`))}P()&&(_("cc",e+"/bin/clang"),_("cxx",e+"/bin/clang++"),_("clang",e+"/bin/clang"),_("clang++",e+"/bin/clang++"),_("lld",e+"/bin/lld"),_("ld.lld",e+"/bin/ld.lld"),_("llvm-ar",e+"/bin/llvm-ar")),"github-actions"===t(Vn)()&&Je(),await Promise.all(l)})(null!==(o=s.installDir)&&void 0!==o?o:r,e),s}async function Xe(e,t,r){const n=await X("llvm",e,We,t,r);return vc||("linux"===process.platform&&(await qe(je("gcc",void 0),"",r),A()||P()&&await v("libtinfo-dev")),vc=!0),n}function Ke(e,r,n){return"github-actions"===t(Vn)()&&Je(),Xe(e,r,n)}function Je(){const e=Et.join(hc,"llvm_matcher.json");if(!(0,xt.existsSync)(e))return(0,Yn.warning)("the llvm_matcher.json file does not exist in the same folder as setup_cpp.js");(0,Yn.info)("::add-matcher::"+e)}function Qe(e,t,r){const n=new Cc(e,t,r);process.stdout.write(""+n+Rc.EOL)}function Ze(e){Oc.issue("error",e instanceof Error?""+e:e)}function et(e){Oc.issue("group",e)}function tt(){Oc.issue("endgroup")}function rt(e){return Object.values(Hc).includes(e)?e:e in Hc?Hc[e]:e}function nt(e){if(Object.keys(Hc).includes(e))return e;for(const[t,r]of Object.entries(Hc))if(r===e)return t;return e}function st(e){const t=rt(e);let r;if(t){const e=t.split(".")[0]+".9";r=`-version "${t},${e}"`}else r="-latest";let n=((e,t)=>{try{return(""+Ct.execSync(`vswhere -products * ${t} -prerelease -property installationPath`)).trim()+"\\VC\\Auxiliary\\Build\\vcvarsall.bat"}catch(e){xc.warning("vswhere failed: "+e)}return null})(0,r);if(n&&xt.existsSync(n))return xc.info("Found with vswhere: "+n),n;xc.info("Not found with vswhere");const s=e?[nt(e)]:Bc;for(const e of Mc)for(const t of s)for(const r of Fc)if(n=`${e}\\Microsoft Visual Studio\\${t}\\${r}\\VC\\Auxiliary\\Build\\vcvarsall.bat`,xc.info("Trying standard location: "+n),xt.existsSync(n))return xc.info("Found standard location: "+n),n;if(xc.info("Not found in standard locations"),n=Dc+"\\Microsoft Visual C++ Build Tools\\vcbuildtools.bat",xt.existsSync(n))return xc.info("Found VS 2015: "+n),n;throw xc.info("Not found in VS 2015 location: "+n),Error("Microsoft Visual Studio not found")}function ot(e){return-1!=["PATH","INCLUDE","LIB","LIBPATH"].indexOf(e.toUpperCase())}async function it(e,t,r,n,s,o,i){void 0!==t&&(0,xt.existsSync)(t)&&((0,Yn.info)(`Adding ${t} to PATH`),await p("VCTargetsPath",t)),Ec((e=>{switch(e){case"x32":case"32":case"ia32":return"x86";case"64":return"x64";default:return e}})(r),s,n,o,i,e)}async function at(e,r,n,s,o,i){if("win32"!==process.platform)return;const a=bc(e);(0,Yn.info)(`Checking if MSVC ${a} is already installed`);let c,l,u=!1;try{const e=wc(a);u=!0,(0,Yn.info)("Found the pre-installed version of MSVC at "+e)}catch{}if(!u)try{"14.0"===a?(c="14.0",await R("visualcpp-build-tools","14.0.25420.1",["--ignore-dependencies"]),l="C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140"):"15.0"===a?(c="14.16",await R("visualstudio2017buildtools","15.9.41.0",[]),l="C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16"):"16.0"===a?(c="14.29",await R("visualstudio2019buildtools","16.11.7.0",[]),l="C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133"):"17.0"===a?(c=void 0,await R("visualstudio2022buildtools","117.0.5.0",[]),l=void 0):(0,Yn.error)(`The given MSVC versions ${e} is not supported yet.`)}catch(e){(0,Yn.error)(e)}await it(a,l,n,c,s,o,i),"github-actions"===t(Vn)()&&(()=>{const e=t(Et).join(zc,"msvc_matcher.json");if(!(0,xt.existsSync)(e))return(0,Yn.warning)("the msvc_matcher.json file does not exist in the same folder as setup_cpp.js");(0,Yn.info)("::add-matcher::"+e)})()}function ct(e,t,r){const n=(e=>{switch(e){case"win32":return"win";case"darwin":return"mac";case"linux":return"linux";default:throw Error(`Unsupported platform '${e}'`)}})(t);return{binRelativeDir:"",binFileName:$("ninja"),extractedFolderName:"",extractFunction:W,url:`https://github.com/ninja-build/ninja/releases/download/v${e}/ninja-${n}.zip`}}function lt(e,t,r){return X("ninja",e,ct,t,r)}function ut(e){return null==e?[]:Array.isArray(e)?e:[e]}function dt(e,t,r,n){var s,o=e[t],i=~n.string.indexOf(t)?null==r||!0===r?"":r+"":"boolean"==typeof r?r:~n.boolean.indexOf(t)?"false"!==r&&("true"===r||(e._.push(0*(s=+r)==0?s:r),!!r)):0*(s=+r)==0?s:r;e[t]=null==o?i:Array.isArray(o)?o.concat(i):[o,i]}function ht(e){return{url:`https://github.com/SimonKagstrom/kcov/releases/download/${e}/kcov-amd64.tar.gz`,extractedFolderName:"",binRelativeDir:"usr/local/bin",binFileName:$("kcov"),extractFunction:Y}}function pt(e){return{url:`https://github.com/SimonKagstrom/kcov/archive/refs/tags/${e}.tar.gz`,extractedFolderName:"",binRelativeDir:"build/src",binFileName:$("kcov"),extractFunction:ft}}async function ft(e,r){const n=await Y(e,r,["--strip-components=1"]),s=await(async()=>{let e=t(Vt).sync("cmake",{nothrow:!0});if(null===e){const{binDir:t}=await Q(je("cmake",void 0),(0,Et.join)(d(""),"cmake"),"");e=(0,Et.join)(t,"cmake")}return null===t(Vt).sync("ninja",{nothrow:!0})&&await lt(je("ninja",void 0),(0,Et.join)(d(""),"ninja"),""),e})();"linux"===process.platform&&(A()?(S("libdwarf"),S("libcurl-openssl")):C()?(I("libdwarf-devel"),I("libcurl-devel")):P()&&(await v("libdw-dev"),await v("libcurl4-openssl-dev")));const o=(0,Et.join)(n,"build");return await t(rr)(s,["-S",n,"-B",o,"-DCMAKE_BUILD_TYPE=Release","-G","Ninja"],{cwd:n,stdio:"inherit"}),await t(rr)(s,["--build",o,"--config","Release"],{cwd:n,stdio:"inherit"}),n}async function mt(e){"github-actions"!==t(Vn)()&&(process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS="true");const r=gt(e);var n;r.help&&(0,Yn.info)('\nsetup_cpp [options]\nsetup_cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true\n\nInstall all the tools required for building and testing C++/C projects.\n\n--architecture\t the cpu architecture to install the tools for. By default it uses the current CPU architecture.\n--compiler\t the <compiler> to install.\n \t You can specify the version instead of specifying just the name e.g: --compiler \'llvm-13.0.0\'\n\n--tool_name\t pass "true" or pass the <version> you would like to install for this tool. e.g. --conan true or --conan "1.42.1"\n\nAll the available tools:\n--llvm\n--gcc\n--vcvarsall\n--cmake\n--ninja\n--vcpkg\n--bazel\n--meson\n--conan\n--make\n--task\n--ccache\n--cppcheck\n--clangformat\n--clangtidy\n--doxygen\n--gcovr\n--opencppcoverage\n--kcov\n\n--python\n--choco\n--brew\n--nala\n--sevenzip\n--graphviz\n ');const s=null!==(n=r.architecture)&&void 0!==n?n:process.arch;var o;const i=null!==(o=process.env.SETUP_CPP_DIR)&&void 0!==o?o:d(""),a=[],c=[],l=Vc.create({autoloadLocales:!0});let u,h;Vc.addLocale(t(Gc)),Wc.addLocale(t(Yc));let f=null;try{f=await(async()=>{if(P()){null===t(Vt).sync("lsb_release",{nothrow:!0})&&await v("lsb-release");const e=await(0,Xc.getUbuntuVersion)();if(0===e.length)throw Error("Failed to get the ubuntu major version.");return e}return null})()}catch(e){(0,Yn.warning)(""+e)}if(!((e,t)=>{for(let r=0;t.length>r;r++){const n=t.slice(0,r).concat(t.slice(r+1)),s=t[r];if(!Ue(e[s],s))for(let t=0;n.length>t;t++){const r=n[t];if(Ue(e[r],n[t]))e[r]=e[s];else if(e[s]!==e[n[t]])return!1}}return!0})(r,["llvm","clangtidy","clangformat"]))return(0,Yn.error)("The same version must be used for llvm, clangformat and clangtidy"),1;for(const e of Zc){const t=r[e];if(void 0!==t){u=Date.now(),(0,zt.startGroup)(`Installing ${e} ${t}`);try{let r;if("vcvarsall"===e)await it(je(e,t,f),void 0,s,void 0,void 0,!1,!1);else{const n=Qc[e],o=(0,Et.join)(i,["llvm","clangformat","clangtidy"].includes(e)?"llvm":e);r=await n(je(e,t,f),o,s)}a.push(bt(e,r))}catch(t){(0,Yn.error)(t),c.push(e+" failed to install")}(0,zt.endGroup)(),h=Date.now(),(0,Yn.info)("took "+(l.format(u,h)||"0 seconds"))}}const m=r.compiler;u=Date.now();try{if(void 0!==m){const{compiler:e,version:t}=yt(m);switch((0,zt.startGroup)(`Installing ${e} ${null!=t?t:""}`),e){case"llvm":case"clang":case"clang++":{const e=await Ye(je("llvm",t,f),(0,Et.join)(i,"llvm"),s);a.push(bt("llvm",e));break}case"gcc":case"mingw":case"cygwin":case"msys":{const e=await qe(je("gcc",t,f),(0,Et.join)(i,"gcc"),s);a.push(bt("gcc",e));break}case"cl":case"msvc":case"msbuild":case"vs":case"visualstudio":case"visualcpp":case"visualc++":{const e=await at(je("msvc",t,f),(0,Et.join)(i,"msvc"),s);a.push(bt("msvc",e));break}case"appleclang":case"applellvm":(0,zt.notice)("Assuming apple-clang is already installed"),await Promise.all([p("CC","clang"),p("CXX","clang++")]),a.push(bt("apple-clang",void 0));break;default:c.push("Unsupported compiler "+e)}(0,zt.endGroup)(),h=Date.now(),(0,Yn.info)("took "+(l.format(u,h)||"0 seconds"))}}catch(e){(0,Yn.error)(e),c.push("Failed to install the "+m),(0,zt.endGroup)(),h=Date.now(),(0,Yn.info)("took "+(l.format(u,h)||"0 seconds"))}if(0===a.length&&0===c.length)return(0,Yn.warning)("setup_cpp was called without any arguments. Nothing to do."),0;if(a.forEach((e=>(0,Yn.success)(e))),c.forEach((e=>(0,Yn.error)(e))),(0,Yn.info)("setup_cpp finished"),"github-actions"!==t(Vn)())switch(process.platform){case"win32":(0,Yn.warning)("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":(0,Yn.warning)("Run `source ~/.cpprc` or restart your shell to update the environment.")}return 0===c.length?0:1}function gt(e){return((e,t)=>{var r,n,s,o,i,a={_:[]},c=0,l=0,u=0,d=(e=e||[]).length;const h=void 0!==(t=t||{}).alias,p=void 0!==t.unknown,f=void 0!==t.default;if(t.alias=t.alias||{},t.string=ut(t.string),t.boolean=ut(t.boolean),h)for(r in t.alias)for(n=t.alias[r]=ut(t.alias[r]),c=0;n.length>c;c++)(t.alias[n[c]]=n.concat(r)).splice(c,1);for(c=t.boolean.length;c-- >0;)for(l=(n=t.alias[t.boolean[c]]||[]).length;l-- >0;)t.boolean.push(n[l]);for(c=t.string.length;c-- >0;)for(l=(n=t.alias[t.string[c]]||[]).length;l-- >0;)t.string.push(n[l]);if(f)for(r in t.default)if(o=typeof t.default[r],n=t.alias[r]=t.alias[r]||[],void 0!==t[o])for(t[o].push(r),c=0;n.length>c;c++)t[o].push(n[c]);const m=p?Object.keys(t.alias):[];for(c=0;d>c;c++){if("--"===(s=e[c])){a._=a._.concat(e.slice(++c));break}for(l=0;s.length>l&&45===s.charCodeAt(l);l++);if(0===l)a._.push(s);else if("no-"===s.substring(l,l+3)){if(o=s.substring(l+3),p&&!~m.indexOf(o))return t.unknown(s);a[o]=!1}else{for(u=l+1;s.length>u&&61!==s.charCodeAt(u);u++);for(o=s.substring(l,u),i=s.substring(++u)||c+1===d||45===(""+e[c+1]).charCodeAt(0)||e[++c],n=2===l?[o]:o,u=0;n.length>u;u++){if(o=n[u],p&&!~m.indexOf(o))return t.unknown("-".repeat(l)+o);dt(a,o,n.length>u+1||i,t)}}}if(f)for(r in t.default)void 0===a[r]&&(a[r]=t.default[r]);if(h)for(r in a)for(n=t.alias[r]||[];n.length>0;)a[n.shift()]=a[r];return a})(e,{string:el,default:Object.fromEntries(el.map((e=>[e,vt(e)]))),alias:{h:"help"},boolean:"help"})}function yt(e){const r=e.split("-"),n=r[0];if(1 in r){const e=r[1];return null!==t(rc)(e)||(0,Yn.info)(`Invalid semver version ${e} used for the compiler.`),{compiler:n,version:e}}return{compiler:n,version:void 0}}function vt(e){const t=(0,zt.getInput)(e.toLowerCase());if("false"!==t&&""!==t)return t}function bt(e,t){let r=`✅ ${e} was installed successfully:`;return void 0===t||("installDir"in t&&(r+="\n- The installation directory is "+t.installDir),""!==t.binDir&&(r+="\n- The binary directory is "+t.binDir)),r}var wt=require("os"),Et=require("path"),xt=require("fs"),_t=require("http"),St=require("https");require("net");var Ot=require("tls"),Tt=require("events"),Rt=require("assert"),At=require("util"),Ct=require("child_process"),It=require("crypto"),Pt=require("string_decoder"),$t=require("timers"),kt=require("stream"),Nt=require("buffer"),Lt=require("url"),jt=require("querystring"),Ut=require("zlib"),Dt=require("dgram"),Mt=require("punycode"),Ft=require("process"),Bt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},Ht={},qt={},Gt=Bt.parcelRequire810d;null==Gt&&((Gt=e=>{if(e in Ht)return Ht[e].exports;if(e in qt){var t=qt[e];delete qt[e];var r={id:e,exports:{}};return Ht[e]=r,t.call(r.exports,r,r.exports),r.exports}var n=Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}).register=(e,t)=>{qt[e]=t},Bt.parcelRequire810d=Gt),Gt.register("04fde",(function(e,t){"use strict";function r(e,t){const r=process.env["INPUT_"+e.replace(/ /g,"_").toUpperCase()]||"";if(t&&t.required&&!r)throw Error("Input required and not supplied: "+e);return t&&!1===t.trimWhitespace?r:r.trim()}function n(e,t={}){u.issueCommand("error",h.toCommandProperties(t),e instanceof Error?""+e:e)}function s(e){u.issue("group",e)}function o(){u.issue("endgroup")}var i=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),a=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),c=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&i(t,e,r);return a(t,e),t}),l=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((s,o)=>{function i(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getIDToken=e.exports.getState=e.exports.saveState=e.exports.group=e.exports.endGroup=e.exports.startGroup=e.exports.info=e.exports.notice=e.exports.warning=e.exports.error=e.exports.debug=e.exports.isDebug=e.exports.setFailed=e.exports.setCommandEcho=e.exports.setOutput=e.exports.getBooleanInput=e.exports.getMultilineInput=e.exports.getInput=e.exports.addPath=e.exports.setSecret=e.exports.exportVariable=e.exports.ExitCode=void 0;var u=Gt("2iva8"),d=Gt("kCOkT"),h=Gt("hGWy4");const p=c(wt),f=c(Et);var m,g,y=Gt("1hWAC");(g=m=e.exports.ExitCode||(e.exports.ExitCode={}))[g.Success=0]="Success",g[g.Failure=1]="Failure",e.exports.exportVariable=(e,t)=>{const r=h.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV){const t="_GitHubActionsFileCommandDelimeter_";d.issueCommand("ENV",`${e}<<${t}${p.EOL}${r}${p.EOL}${t}`)}else u.issueCommand("set-env",{name:e},r)},e.exports.setSecret=e=>{u.issueCommand("add-mask",{},e)},e.exports.addPath=e=>{process.env.GITHUB_PATH?d.issueCommand("PATH",e):u.issueCommand("add-path",{},e),process.env.PATH=`${e}${f.delimiter}${process.env.PATH}`},e.exports.getInput=r,e.exports.getMultilineInput=(e,t)=>r(e,t).split("\n").filter((e=>""!==e)),e.exports.getBooleanInput=(e,t)=>{const n=r(e,t);if(["true","True","TRUE"].includes(n))return!0;if(["false","False","FALSE"].includes(n))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\nSupport boolean input list: \`true | True | TRUE | false | False | FALSE\``)},e.exports.setOutput=(e,t)=>{process.stdout.write(p.EOL),u.issueCommand("set-output",{name:e},t)},e.exports.setCommandEcho=e=>{u.issue("echo",e?"on":"off")},e.exports.setFailed=e=>{process.exitCode=m.Failure,n(e)},e.exports.isDebug=()=>"1"===process.env.RUNNER_DEBUG,e.exports.debug=e=>{u.issueCommand("debug",{},e)},e.exports.error=n,e.exports.warning=(e,t={})=>{u.issueCommand("warning",h.toCommandProperties(t),e instanceof Error?""+e:e)},e.exports.notice=(e,t={})=>{u.issueCommand("notice",h.toCommandProperties(t),e instanceof Error?""+e:e)},e.exports.info=e=>{process.stdout.write(e+p.EOL)},e.exports.startGroup=s,e.exports.endGroup=o,e.exports.group=function(e,t){return l(this,void 0,void 0,(function*(){let r;s(e);try{r=yield t()}finally{o()}return r}))},e.exports.saveState=(e,t)=>{u.issueCommand("save-state",{name:e},t)},e.exports.getState=e=>process.env["STATE_"+e]||"",e.exports.getIDToken=function(e){return l(this,void 0,void 0,(function*(){return yield y.OidcClient.getIDToken(e)}))};var v=Gt("hILBc");Object.defineProperty(e.exports,"summary",{enumerable:!0,get(){return v.summary}}),v=Gt("hILBc"),Object.defineProperty(e.exports,"markdownSummary",{enumerable:!0,get(){return v.markdownSummary}});var b=Gt("39f1T");Object.defineProperty(e.exports,"toPosixPath",{enumerable:!0,get(){return b.toPosixPath}}),Object.defineProperty(e.exports,"toWin32Path",{enumerable:!0,get(){return b.toWin32Path}}),Object.defineProperty(e.exports,"toPlatformPath",{enumerable:!0,get(){return b.toPlatformPath}})})),Gt.register("2iva8",(function(e,t){"use strict";function r(e,t,r){const n=new c(e,t,r);process.stdout.write(""+n+i.EOL)}var n=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),s=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),o=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&n(t,e,r);return s(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issue=e.exports.issueCommand=void 0;const i=o(wt);var a=Gt("hGWy4");e.exports.issueCommand=r,e.exports.issue=(e,t="")=>{r(e,{},t)};class c{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r}toString(){let e="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(const n in this.properties)if(this.properties.hasOwnProperty(n)){const s=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${t=s,a.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}var t;return e+="::"+(e=>a.toCommandValue(this.message).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A"))(),e}}})),Gt.register("hGWy4",((e,t)=>{"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toCommandProperties=e.exports.toCommandValue=void 0,e.exports.toCommandValue=e=>null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e),e.exports.toCommandProperties=e=>Object.keys(e).length?{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}:{}})),Gt.register("kCOkT",((e,t)=>{"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),s=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var s in e)"default"!==s&&Object.hasOwnProperty.call(e,s)&&r(t,e,s);return n(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issueCommand=void 0;const o=s(xt),i=s(wt);var a=Gt("hGWy4");e.exports.issueCommand=(e,t)=>{const r=process.env["GITHUB_"+e];if(!r)throw Error("Unable to find environment variable for file command "+e);if(!o.existsSync(r))throw Error("Missing file at path: "+r);o.appendFileSync(r,`${a.toCommandValue(t)}${i.EOL}`,{encoding:"utf8"})}})),Gt.register("1hWAC",(function(e,t){"use strict";var r=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((s,o)=>{function i(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.OidcClient=void 0;var n=Gt("4z9RF"),s=Gt("7v249"),o=Gt("04fde");class i{static createHttpClient(e=!0,t=10){const r={allowRetries:e,maxRetries:t};return new n.HttpClient("actions/oidc-client",[new s.BearerCredentialHandler(i.getRequestToken())],r)}static getRequestToken(){const e=process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable");return e}static getIDTokenUrl(){const e=process.env.ACTIONS_ID_TOKEN_REQUEST_URL;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable");return e}static getCall(e){var t;return r(this,void 0,void 0,(function*(){const r=i.createHttpClient(),n=yield r.getJson(e).catch((e=>{throw Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)})),s=null===(t=n.result)||void 0===t?void 0:t.value;if(!s)throw Error("Response json body do not have ID Token field");return s}))}static getIDToken(e){return r(this,void 0,void 0,(function*(){try{let t=i.getIDTokenUrl();e&&(t=`${t}&audience=${encodeURIComponent(e)}`),o.debug("ID token url is "+t);const r=yield i.getCall(t);return o.setSecret(r),r}catch(e){throw Error("Error message: "+e.message)}}))}}e.exports.OidcClient=i})),Gt.register("4z9RF",(function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),s=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var s in e)"default"!==s&&Object.hasOwnProperty.call(e,s)&&r(t,e,s);return n(t,e),t}),o=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((s,o)=>{function i(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.HttpClient=e.exports.isHttps=e.exports.HttpClientResponse=e.exports.HttpClientError=e.exports.getProxyUrl=e.exports.MediaTypes=e.exports.Headers=e.exports.HttpCodes=void 0;const i=s(_t),a=s(St),c=s(Gt("2IaKG")),l=s(Gt("bbp3j"));var u,d,h,p,f;(d=u=e.exports.HttpCodes||(e.exports.HttpCodes={}))[d.OK=200]="OK",d[d.MultipleChoices=300]="MultipleChoices",d[d.MovedPermanently=301]="MovedPermanently",d[d.ResourceMoved=302]="ResourceMoved",d[d.SeeOther=303]="SeeOther",d[d.NotModified=304]="NotModified",d[d.UseProxy=305]="UseProxy",d[d.SwitchProxy=306]="SwitchProxy",d[d.TemporaryRedirect=307]="TemporaryRedirect",d[d.PermanentRedirect=308]="PermanentRedirect",d[d.BadRequest=400]="BadRequest",d[d.Unauthorized=401]="Unauthorized",d[d.PaymentRequired=402]="PaymentRequired",d[d.Forbidden=403]="Forbidden",d[d.NotFound=404]="NotFound",d[d.MethodNotAllowed=405]="MethodNotAllowed",d[d.NotAcceptable=406]="NotAcceptable",d[d.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",d[d.RequestTimeout=408]="RequestTimeout",d[d.Conflict=409]="Conflict",d[d.Gone=410]="Gone",d[d.TooManyRequests=429]="TooManyRequests",d[d.InternalServerError=500]="InternalServerError",d[d.NotImplemented=501]="NotImplemented",d[d.BadGateway=502]="BadGateway",d[d.ServiceUnavailable=503]="ServiceUnavailable",d[d.GatewayTimeout=504]="GatewayTimeout",(p=h=e.exports.Headers||(e.exports.Headers={})).Accept="accept",p.ContentType="content-type",(f=e.exports.MediaTypes||(e.exports.MediaTypes={})).ApplicationJson="application/json",e.exports.getProxyUrl=e=>{const t=c.getProxyUrl(new URL(e));return t?t.href:""};const m=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect],g=[u.BadGateway,u.ServiceUnavailable,u.GatewayTimeout],y=["OPTIONS","GET","DELETE","HEAD"];class v extends Error{constructor(e,t){super(e),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,v.prototype)}}e.exports.HttpClientError=v;class b{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)}))}))))}))}}e.exports.HttpClientResponse=b,e.exports.isHttps=e=>"https:"===new URL(e).protocol,e.exports.HttpClient=class{constructor(e,t,r){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=e,this.handlers=t||[],this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return 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[h.Accept]=this._getExistingOrDefaultHeader(t,h.Accept,f.ApplicationJson);const r=yield this.get(e,t);return this._processResponse(r,this.requestOptions)}))}postJson(e,t,r={}){return o(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);r[h.Accept]=this._getExistingOrDefaultHeader(r,h.Accept,f.ApplicationJson),r[h.ContentType]=this._getExistingOrDefaultHeader(r,h.ContentType,f.ApplicationJson);const s=yield this.post(e,n,r);return this._processResponse(s,this.requestOptions)}))}putJson(e,t,r={}){return o(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);r[h.Accept]=this._getExistingOrDefaultHeader(r,h.Accept,f.ApplicationJson),r[h.ContentType]=this._getExistingOrDefaultHeader(r,h.ContentType,f.ApplicationJson);const s=yield this.put(e,n,r);return this._processResponse(s,this.requestOptions)}))}patchJson(e,t,r={}){return o(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);r[h.Accept]=this._getExistingOrDefaultHeader(r,h.Accept,f.ApplicationJson),r[h.ContentType]=this._getExistingOrDefaultHeader(r,h.ContentType,f.ApplicationJson);const s=yield this.patch(e,n,r);return this._processResponse(s,this.requestOptions)}))}request(e,t,r,n){return o(this,void 0,void 0,(function*(){if(this._disposed)throw Error("Client has already been disposed.");const s=new URL(t);let o=this._prepareRequest(e,s,n);const i=this._allowRetries&&y.includes(e)?this._maxRetries+1:1;let a,c=0;do{if(a=yield this.requestRaw(o,r),a&&a.message&&a.message.statusCode===u.Unauthorized){let e;for(const t of this.handlers)if(t.canHandleAuthentication(a)){e=t;break}return e?e.handleAuthentication(this,o,r):a}let t=this._maxRedirects;for(;a.message.statusCode&&m.includes(a.message.statusCode)&&this._allowRedirects&&t>0;){const i=a.message.headers.location;if(!i)break;const c=new URL(i);if("https:"===s.protocol&&s.protocol!==c.protocol&&!this._allowRedirectDowngrade)throw Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");if(yield a.readBody(),c.hostname!==s.hostname)for(const e in n)"authorization"===e.toLowerCase()&&delete n[e];o=this._prepareRequest(e,c,n),a=yield this.requestRaw(o,r),t--}if(!a.message.statusCode||!g.includes(a.message.statusCode))return a;c+=1,i>c&&(yield a.readBody(),yield this._performExponentialBackoff(c))}while(i>c);return a}))}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}requestRaw(e,t){return o(this,void 0,void 0,(function*(){return new Promise(((r,n)=>{this.requestRawWithCallback(e,t,((e,t)=>{e?n(e):t?r(t):n(Error("Unknown error"))}))}))}))}requestRawWithCallback(e,t,r){function n(e,t){s||(s=!0,r(e,t))}"string"==typeof t&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let s=!1;const o=e.httpModule.request(e.options,(e=>{n(void 0,new b(e))}));let i;o.on("socket",(e=>{i=e})),o.setTimeout(this._socketTimeout||18e4,(()=>{i&&i.end(),n(Error("Request timeout: "+e.options.path))})),o.on("error",(e=>{n(e)})),t&&"string"==typeof t&&o.write(t,"utf8"),t&&"string"!=typeof t?(t.on("close",(()=>{o.end()})),t.pipe(o)):o.end()}getAgent(e){const t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,r){const n={};n.parsedUrl=t;const s="https:"===n.parsedUrl.protocol;n.httpModule=s?a:i;const o=s?443:80;if(n.options={},n.options.host=n.parsedUrl.hostname,n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):o,n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||""),n.options.method=e,n.options.headers=this._mergeHeaders(r),null!=this.userAgent&&(n.options.headers["user-agent"]=this.userAgent),n.options.agent=this._getAgent(n.parsedUrl),this.handlers)for(const e of this.handlers)e.prepareRequest(n.options);return n}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},w(this.requestOptions.headers),w(e||{})):w(e||{})}_getExistingOrDefaultHeader(e,t,r){let n;return this.requestOptions&&this.requestOptions.headers&&(n=w(this.requestOptions.headers)[t]),e[t]||n||r}_getAgent(e){let t;const r=c.getProxyUrl(e),n=r&&r.hostname;if(this._keepAlive&&n&&(t=this._proxyAgent),this._keepAlive&&!n&&(t=this._agent),t)return t;const s="https:"===e.protocol;let o=100;if(this.requestOptions&&(o=this.requestOptions.maxSockets||i.globalAgent.maxSockets),r&&r.hostname){const e={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})};let n;const i="https:"===r.protocol;n=s?i?l.httpsOverHttps:l.httpsOverHttp:i?l.httpOverHttps:l.httpOverHttp,t=n(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:o};t=s?new a.Agent(e):new i.Agent(e),this._agent=t}return t||(t=s?a.globalAgent:i.globalAgent),s&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_performExponentialBackoff(e){return o(this,void 0,void 0,(function*(){const t=5*Math.pow(2,e=Math.min(10,e));return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return o(this,void 0,void 0,(function*(){return new Promise(((r,n)=>o(this,void 0,void 0,(function*(){const s=e.message.statusCode||0,o={statusCode:s,result:null,headers:{}};let i,a;s===u.NotFound&&r(o);try{a=yield e.readBody(),a&&a.length>0&&(i=t&&t.deserializeDates?JSON.parse(a,((e,t)=>{if("string"==typeof t){const e=new Date(t);if(!isNaN(e.valueOf()))return e}return t})):JSON.parse(a),o.result=i),o.headers=e.message.headers}catch(e){}if(s>299){let e;e=i&&i.message?i.message:a&&a.length>0?a:`Failed request: (${s})`;const t=new v(e,s);t.result=o.result,n(t)}else r(o)}))))}))}};const w=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{})})),Gt.register("2IaKG",((e,t)=>{"use strict";function r(e){if(!e.hostname)return!1;const t=process.env.no_proxy||process.env.NO_PROXY||"";if(!t)return!1;let r;e.port?r=+e.port:"http:"===e.protocol?r=80:"https:"===e.protocol&&(r=443);const n=[e.hostname.toUpperCase()];"number"==typeof r&&n.push(`${n[0]}:${r}`);for(const e of t.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e)))if(n.some((t=>t===e)))return!0;return!1}Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.checkBypass=e.exports.getProxyUrl=void 0,e.exports.getProxyUrl=e=>{const t="https:"===e.protocol;if(r(e))return;const n=t?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;return n?new URL(n):void 0},e.exports.checkBypass=r})),Gt.register("bbp3j",((e,t)=>{e.exports=Gt("fNJ5J")})),Gt.register("fNJ5J",(function(t,r){function n(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||_t.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",((e,r,n,s)=>{for(var i=o(r,n,s),a=0,c=t.requests.length;c>a;++a){var l=t.requests[a];if(l.host===i.host&&l.port===i.port)return t.requests.splice(a,1),void l.request.onSocket(e)}e.destroy(),t.removeSocket(e)}))}function s(e,t){var r=this;n.prototype.createSocket.call(r,e,(n=>{var s=e.request.getHeader("host"),o=i({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):e.host}),a=Ot.connect(0,o);r.sockets[r.sockets.indexOf(n)]=a,t(a)}))}function o(e,t,r){return"string"==typeof e?{host:e,port:t,localAddress:r}:e}function i(e){for(var t=1,r=arguments.length;r>t;++t){var n=arguments[t];if("object"==typeof n)for(var s=Object.keys(n),o=0,i=s.length;i>o;++o){var a=s[o];void 0!==n[a]&&(e[a]=n[a])}}return e}var a,c,l,u,d,h;e(t.exports,"httpOverHttp",(()=>a),(e=>a=e)),e(t.exports,"httpsOverHttp",(()=>c),(e=>c=e)),e(t.exports,"httpOverHttps",(()=>l),(e=>l=e)),e(t.exports,"httpsOverHttps",(()=>u),(e=>u=e)),e(t.exports,"debug",(()=>d),(e=>d=e)),a=e=>{var t=new n(e);return t.request=_t.request,t},c=e=>{var t=new n(e);return t.request=_t.request,t.createSocket=s,t.defaultPort=443,t},l=e=>{var t=new n(e);return t.request=St.request,t},u=e=>{var t=new n(e);return t.request=St.request,t.createSocket=s,t.defaultPort=443,t},At.inherits(n,Tt.EventEmitter),n.prototype.addRequest=function(e,t,r,n){var s=this,a=i({request:e},s.options,o(t,r,n));this.maxSockets>s.sockets.length?s.createSocket(a,(t=>{function r(){s.emit("free",t,a)}function n(e){s.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)})):s.requests.push(a)},n.prototype.createSocket=function(e,t){function r(r,o,i){var c;return a.removeAllListeners(),o.removeAllListeners(),200!==r.statusCode?(h("tunneling socket could not be established, statusCode=%d",r.statusCode),o.destroy(),(c=Error("tunneling socket could not be established, statusCode="+r.statusCode)).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(s)):i.length>0?(h("got illegal response body from proxy"),o.destroy(),(c=Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(s)):(h("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=o,t(o))}var n=this,s={};n.sockets.push(s);var o=i({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(o.localAddress=e.localAddress),o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),h("making CONNECT request");var a=n.request(o);a.useChunkedEncodingByDefault=!1,a.once("response",(e=>{e.upgrade=!0})),a.once("upgrade",((e,t,n)=>{process.nextTick((()=>{r(e,t,n)}))})),a.once("connect",r),a.once("error",(t=>{a.removeAllListeners(),h("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var r=Error("tunneling socket could not be established, cause="+t.message);r.code="ECONNRESET",e.request.emit("error",r),n.removeSocket(s)})),a.end()},n.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var r=this.requests.shift();r&&this.createSocket(r,(e=>{r.request.onSocket(e)}))}},d=h=()=>{}})),Gt.register("7v249",(function(e,t){"use strict";var r=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((s,o)=>{function i(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.PersonalAccessTokenCredentialHandler=e.exports.BearerCredentialHandler=e.exports.BasicCredentialHandler=void 0,e.exports.BasicCredentialHandler=class{constructor(e,t){this.username=e,this.password=t}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Basic "+Buffer.from(`${this.username}:${this.password}`).toString("base64")}canHandleAuthentication(){return!1}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw Error("not implemented")}))}},e.exports.BearerCredentialHandler=class{constructor(e){this.token=e}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Bearer "+this.token}canHandleAuthentication(){return!1}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw Error("not implemented")}))}},e.exports.PersonalAccessTokenCredentialHandler=class{constructor(e){this.token=e}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Basic "+Buffer.from("PAT:"+this.token).toString("base64")}canHandleAuthentication(){return!1}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw Error("not implemented")}))}}})),Gt.register("hILBc",(function(e,t){"use strict";var r=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((s,o)=>{function i(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.summary=e.exports.markdownSummary=e.exports.SUMMARY_DOCS_URL=e.exports.SUMMARY_ENV_VAR=void 0;const{access:n,appendFile:s,writeFile:o}=xt.promises;e.exports.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY",e.exports.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";const i=new class{constructor(){this._buffer=""}filePath(){return r(this,void 0,void 0,(function*(){if(this._filePath)return this._filePath;const t=process.env[e.exports.SUMMARY_ENV_VAR];if(!t)throw Error(`Unable to find environment variable for $${e.exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield n(t,xt.constants.R_OK|xt.constants.W_OK)}catch(e){throw Error(`Unable to access summary file: '${t}'. Check if the file has correct read/write permissions.`)}return this._filePath=t,this._filePath}))}wrap(e,t,r={}){const n=Object.entries(r).map((([e,t])=>` ${e}="${t}"`)).join("");return t?`<${e}${n}>${t}</${e}>`:`<${e}${n}>`}write(e){return r(this,void 0,void 0,(function*(){const t=!!(null==e?void 0:e.overwrite),r=yield this.filePath(),n=t?o:s;return yield n(r,this._buffer,{encoding:"utf8"}),this.emptyBuffer()}))}clear(){return r(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:!0})}))}stringify(){return this._buffer}isEmptyBuffer(){return 0===this._buffer.length}emptyBuffer(){return this._buffer="",this}addRaw(e,t=!1){return this._buffer+=e,t?this.addEOL():this}addEOL(){return this.addRaw(wt.EOL)}addCodeBlock(e,t){const r=Object.assign({},t&&{lang:t}),n=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(n).addEOL()}addList(e,t=!1){const r=t?"ol":"ul",n=e.map((e=>this.wrap("li",e))).join(""),s=this.wrap(r,n);return this.addRaw(s).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if("string"==typeof e)return this.wrap("td",e);const{header:t,data:r,colspan:n,rowspan:s}=e,o=t?"th":"td",i=Object.assign(Object.assign({},n&&{colspan:n}),s&&{rowspan:s});return this.wrap(o,r,i)})).join("");return this.wrap("tr",t)})).join(""),r=this.wrap("table",t);return this.addRaw(r).addEOL()}addDetails(e,t){const r=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(r).addEOL()}addImage(e,t,r){const{width:n,height:s}=r||{},o=Object.assign(Object.assign({},n&&{width:n}),s&&{height:s}),i=this.wrap("img",null,Object.assign({src:e,alt:t},o));return this.addRaw(i).addEOL()}addHeading(e,t){const r="h"+t,n=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",s=this.wrap(n,e);return this.addRaw(s).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const r=Object.assign({},t&&{cite:t}),n=this.wrap("blockquote",e,r);return this.addRaw(n).addEOL()}addLink(e,t){const r=this.wrap("a",e,{href:t});return this.addRaw(r).addEOL()}};e.exports.markdownSummary=i,e.exports.summary=i})),Gt.register("39f1T",((e,t)=>{"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),s=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var s in e)"default"!==s&&Object.hasOwnProperty.call(e,s)&&r(t,e,s);return n(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toPlatformPath=e.exports.toWin32Path=e.exports.toPosixPath=void 0;const o=s(Et);e.exports.toPosixPath=e=>e.replace(/[\\]/g,"/"),e.exports.toWin32Path=e=>e.replace(/[/]/g,"\\"),e.exports.toPlatformPath=e=>e.replace(/[/\\]/g,o.sep)})),Gt.register("ftrAD",((e,t)=>{function r(e,t,r){return!(!e.isSymbolicLink()&&!e.isFile())&&((e,t)=>{var r=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!r)return!0;if(-1!==(r=r.split(";")).indexOf(""))return!0;for(var n=0;r.length>n;n++){var s=r[n].toLowerCase();if(s&&e.substr(-s.length).toLowerCase()===s)return!0}return!1})(t,r)}function n(e,t,n){xt.stat(e,((s,o)=>{n(s,!s&&r(o,e,t))}))}e.exports=n,n.sync=(e,t)=>r(xt.statSync(e),e,t)})),Gt.register("9yF3I",((e,t)=>{function r(e,t,r){xt.stat(e,((e,s)=>{r(e,!e&&n(s,t))}))}function n(e,t){return e.isFile()&&((e,t)=>{var r=e.mode,n=e.uid,s=e.gid,o=void 0!==t.uid?t.uid:process.getuid&&process.getuid(),i=void 0!==t.gid?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),c=parseInt("010",8),l=a|c;return r&parseInt("001",8)||r&c&&s===i||r&a&&n===o||r&l&&0===o})(e,t)}e.exports=r,r.sync=(e,t)=>n(xt.statSync(e),t)})),Gt.register("bJALw",((e,t)=>{e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")})),Gt.register("gmbrv",((e,t)=>{e.exports=()=>process.env.GERRIT_PROJECT?"gerrit":process.env.SYSTEM_TEAMFOUNDATIONCOLLECTIONURI?"azure-pipelines":process.env.BITRISE_IO?"bitrise":process.env.BUDDY_WORKSPACE_ID?"buddy":process.env.BUILDKITE?"buildkite":process.env.CIRRUS_CI?"cirrus":process.env.GITLAB_CI?"gitlab":process.env.APPVEYOR?"appveyor":process.env.CIRCLECI?"circle-ci":process.env.SEMAPHORE?"semaphore":process.env.DRONE?"drone":process.env.DSARI?"dsari":process.env.GITHUB_ACTION?"github-actions":process.env.TDDIUM?"tddium":process.env.SCREWDRIVER?"screwdriver":process.env.STRIDER?"strider":process.env.TASKCLUSTER_ROOT_URL?"taskcluster":process.env.JENKINS_URL?"jenkins":process.env["bamboo.buildKey"]?"bamboo":process.env.GO_PIPELINE_NAME?"gocd":process.env.HUDSON_URL?"hudson":process.env.WERCKER?"wercker":process.env.NETLIFY?"netlify":process.env.NOW_GITHUB_DEPLOYMENT?"now-github":process.env.GITLAB_DEPLOYMENT?"now-gitlab":process.env.BITBUCKET_DEPLOYMENT?"now-bitbucket":process.env.BITBUCKET_BUILD_NUMBER?"bitbucket-pipelines":process.env.NOW_BUILDER?"now":process.env.VERCEL_GITHUB_DEPLOYMENT?"vercel-github":process.env.VERCEL_GITLAB_DEPLOYMENT?"vercel-gitlab":process.env.VERCEL_BITBUCKET_DEPLOYMENT?"vercel-bitbucket":process.env.VERCEL_URL?"vercel":process.env.MAGNUM?"magnum":process.env.NEVERCODE?"nevercode":process.env.RENDER?"render":process.env.SAIL_CI?"sail":process.env.SHIPPABLE?"shippable":process.env.TEAMCITY_VERSION?"teamcity":process.env.CI_NAME?process.env.CI_NAME:/\/\.heroku\/node\/bin\/node$/.test(process.env.NODE||"")?"heroku":process.env.TRAVIS?"travis-ci":process.env.CODEBUILD_SRC_DIR?"aws-codebuild":"true"===process.env.CI||"1"===process.env.CI?"custom":!!process.env.BUILDER_OUTPUT&&"builder"})),Gt.register("ditiY",((r,n)=>{function s(e){return"github-actions"===t(u)()?l.error(e):console.log(`[31m${e}[0m`)}function o(e){return console.log(`[32m${e}[0m`)}function i(e){return"github-actions"===t(u)()?l.warning(e):console.log(`[33m${e}[0m`)}function a(e){return"github-actions"===t(u)()?l.notice(e):console.log(`[94m${e}[0m`)}function c(e){return"github-actions"===t(u)()?l.info(e):console.log(e)}e(r.exports,"error",(()=>s)),e(r.exports,"success",(()=>o)),e(r.exports,"warning",(()=>i)),e(r.exports,"notice",(()=>a)),e(r.exports,"info",(()=>c));var l=Gt("04fde"),u=Gt("gmbrv")})),Gt.register("fvrnx",(function(e,t){"use strict";function r(e){return u(this,void 0,void 0,(function*(){if(p.IS_WINDOWS){if(/[*"<>|]/.test(e))throw Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{const t=p.getCmdPath();(yield p.isDirectory(e,!0))?yield f(t+' /s /c "rd /s /q "%inputPath%""',{env:{inputPath:e}}):yield f(t+' /s /c "del /f /a "%inputPath%""',{env:{inputPath:e}})}catch(e){if("ENOENT"!==e.code)throw e}try{yield p.unlink(e)}catch(e){if("ENOENT"!==e.code)throw e}}else{let t=!1;try{t=yield p.isDirectory(e)}catch(e){if("ENOENT"!==e.code)throw e;return}t?yield m("rm",["-rf",""+e]):yield p.unlink(e)}}))}function n(e){return u(this,void 0,void 0,(function*(){Rt.ok(e,"a path argument must be provided"),yield p.mkdir(e,{recursive:!0})}))}function s(e){return u(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'tool' is required");const t=[];if(p.IS_WINDOWS&&process.env.PATHEXT)for(const e of process.env.PATHEXT.split(h.delimiter))e&&t.push(e);if(p.isRooted(e)){const r=yield p.tryGetExecutablePath(e,t);return r?[r]:[]}if(e.includes(h.sep))return[];const r=[];if(process.env.PATH)for(const e of process.env.PATH.split(h.delimiter))e&&r.push(e);const n=[];for(const s of r){const r=yield p.tryGetExecutablePath(h.join(s,e),t);r&&n.push(r)}return n}))}function o(e,t,r,s){return u(this,void 0,void 0,(function*(){if(r>=255)return;r++,yield n(t);const a=yield p.readdir(e);for(const n of a){const a=`${e}/${n}`,c=`${t}/${n}`;(yield p.lstat(a)).isDirectory()?yield o(a,c,r,s):yield i(a,c,s)}yield p.chmod(t,(yield p.stat(e)).mode)}))}function i(e,t,r){return u(this,void 0,void 0,(function*(){if((yield p.lstat(e)).isSymbolicLink()){try{yield p.lstat(t),yield p.unlink(t)}catch(e){"EPERM"===e.code&&(yield p.chmod(t,"0666"),yield p.unlink(t))}const r=yield p.readlink(e);yield p.symlink(r,t,p.IS_WINDOWS?"junction":null)}else(yield p.exists(t))&&!r||(yield p.copyFile(e,t))}))}var a=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),c=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),l=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&a(t,e,r);return c(t,e),t}),u=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((s,o)=>{function i(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.findInPath=e.exports.which=e.exports.mkdirP=e.exports.rmRF=e.exports.mv=e.exports.cp=void 0;const d=l(Ct),h=l(Et),p=l(Gt("2GOko")),f=At.promisify(d.exec),m=At.promisify(d.execFile);e.exports.cp=function(e,t,r={}){return u(this,void 0,void 0,(function*(){const{force:n,recursive:s,copySourceDirectory:a}=(e=>({force:null==e.force||e.force,recursive:!!e.recursive,copySourceDirectory:null==e.copySourceDirectory||!!e.copySourceDirectory}))(r),c=(yield p.exists(t))?yield p.stat(t):null;if(c&&c.isFile()&&!n)return;const l=c&&c.isDirectory()&&a?h.join(t,h.basename(e)):t;if(!(yield p.exists(e)))throw Error("no such file or directory: "+e);if((yield p.stat(e)).isDirectory()){if(!s)throw Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield o(e,l,0,n)}else{if(""===h.relative(e,l))throw Error(`'${l}' and '${e}' are the same file`);yield i(e,l,n)}}))},e.exports.mv=function(e,t,s={}){return u(this,void 0,void 0,(function*(){if(yield p.exists(t)){let n=!0;if((yield p.isDirectory(t))&&(t=h.join(t,h.basename(e)),n=yield p.exists(t)),n){if(null!=s.force&&!s.force)throw Error("Destination already exists");yield r(t)}}yield n(h.dirname(t)),yield p.rename(e,t)}))},e.exports.rmRF=r,e.exports.mkdirP=n,e.exports.which=function e(t,r){return u(this,void 0,void 0,(function*(){if(!t)throw Error("parameter 'tool' is required");if(r){const r=yield e(t,!1);if(!r)throw Error(p.IS_WINDOWS?`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`:`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);return r}const n=yield s(t);return n&&n.length>0?n[0]:""}))},e.exports.findInPath=s})),Gt.register("2GOko",(function(e,t){"use strict";function r(e){return(1&e.mode)>0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}var n,s=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),i=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&s(t,e,r);return o(t,e),t}),a=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((s,o)=>{function i(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getCmdPath=e.exports.tryGetExecutablePath=e.exports.isRooted=e.exports.isDirectory=e.exports.exists=e.exports.IS_WINDOWS=e.exports.unlink=e.exports.symlink=e.exports.stat=e.exports.rmdir=e.exports.rename=e.exports.readlink=e.exports.readdir=e.exports.mkdir=e.exports.lstat=e.exports.copyFile=e.exports.chmod=void 0;const c=i(xt),l=i(Et);e.exports.chmod=(n=c.promises).chmod,e.exports.copyFile=n.copyFile,e.exports.lstat=n.lstat,e.exports.mkdir=n.mkdir,e.exports.readdir=n.readdir,e.exports.readlink=n.readlink,e.exports.rename=n.rename,e.exports.rmdir=n.rmdir,e.exports.stat=n.stat,e.exports.symlink=n.symlink,e.exports.unlink=n.unlink,e.exports.IS_WINDOWS="win32"===process.platform,e.exports.exists=function(t){return a(this,void 0,void 0,(function*(){try{yield e.exports.stat(t)}catch(e){if("ENOENT"===e.code)return!1;throw e}return!0}))},e.exports.isDirectory=function(t,r=!1){return a(this,void 0,void 0,(function*(){return(r?yield e.exports.stat(t):yield e.exports.lstat(t)).isDirectory()}))},e.exports.isRooted=t=>{if(!(t=(t=>(t=t||"",e.exports.IS_WINDOWS?(t=t.replace(/\//g,"\\")).replace(/\\\\+/g,"\\"):t.replace(/\/\/+/g,"/")))(t)))throw Error('isRooted() parameter "p" cannot be empty');return e.exports.IS_WINDOWS?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")},e.exports.tryGetExecutablePath=function(t,n){return a(this,void 0,void 0,(function*(){let s;try{s=yield e.exports.stat(t)}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`)}if(s&&s.isFile())if(e.exports.IS_WINDOWS){const e=l.extname(t).toUpperCase();if(n.some((t=>t.toUpperCase()===e)))return t}else if(r(s))return t;const o=t;for(const i of n){t=o+i,s=void 0;try{s=yield e.exports.stat(t)}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`)}if(s&&s.isFile()){if(e.exports.IS_WINDOWS){try{const r=l.dirname(t),n=l.basename(t).toUpperCase();for(const s of yield e.exports.readdir(r))if(n===s.toUpperCase()){t=l.join(r,s);break}}catch(e){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${e}`)}return t}if(r(s))return t}}return""}))},e.exports.getCmdPath=()=>{var e;return null!==(e=process.env.COMSPEC)&&void 0!==e?e:"cmd.exe"}})),Gt.register("6kHxT",(function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),s=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var s in e)"default"!==s&&Object.hasOwnProperty.call(e,s)&&r(t,e,s);return n(t,e),t}),o=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((s,o)=>{function i(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports._readLinuxVersionFile=e.exports._getOsVersion=e.exports._findMatch=void 0;const i=s(Gt("4URNm"));var a=Gt("04fde");e.exports._findMatch=function(t,r,n,s){return o(this,void 0,void 0,(function*(){const o=wt.platform();let c,l,u;for(const c of n){const n=c.version;if(a.debug(`check ${n} satisfies ${t}`),i.satisfies(n,t)&&(!r||c.stable===r)&&(u=c.files.find((t=>{a.debug(`${t.arch}===${s} && ${t.platform}===${o}`);let r=t.arch===s&&t.platform===o;if(r&&t.platform_version){const n=e.exports._getOsVersion();r=n===t.platform_version||i.satisfies(n,t.platform_version)}return r})),u)){a.debug("matched "+c.version),l=c;break}}return l&&u&&(c=Object.assign({},l),c.files=[u]),c}))},e.exports._getOsVersion=()=>{const t=wt.platform();let r="";if("darwin"===t)r=""+Ct.execSync("sw_vers -productVersion");else if("linux"===t){const t=e.exports._readLinuxVersionFile();if(t){const e=t.split("\n");for(const t of e){const e=t.split("=");if(2===e.length&&("VERSION_ID"===e[0].trim()||"DISTRIB_RELEASE"===e[0].trim())){r=e[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return r},e.exports._readLinuxVersionFile=()=>{const e="/etc/lsb-release",t="/etc/os-release";let r="";return xt.existsSync(e)?r=""+xt.readFileSync(e):xt.existsSync(t)&&(r=""+xt.readFileSync(t)),r}})),Gt.register("4URNm",((e,t)=>{var r=Gt("bikcG");e.exports={re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:Gt("bgOMw").SEMVER_SPEC_VERSION,SemVer:Gt("7qUJS"),compareIdentifiers:Gt("12NXI").compareIdentifiers,rcompareIdentifiers:Gt("12NXI").rcompareIdentifiers,parse:Gt("gdrva"),valid:Gt("fVzwP"),clean:Gt("hOYls"),inc:Gt("dGcr6"),diff:Gt("bBssn"),major:Gt("fB2B7"),minor:Gt("bye2i"),patch:Gt("87ZGF"),prerelease:Gt("4agny"),compare:Gt("howpO"),rcompare:Gt("zcbgY"),compareLoose:Gt("iGBo4"),compareBuild:Gt("80ezM"),sort:Gt("4qmtg"),rsort:Gt("4pjXu"),gt:Gt("6KPS4"),lt:Gt("lr5pz"),eq:Gt("jXghC"),neq:Gt("fqqGA"),gte:Gt("5cRW4"),lte:Gt("fwsB7"),cmp:Gt("823yM"),coerce:Gt("1YYsi"),Comparator:Gt("eR6XK"),Range:Gt("hvUff"),satisfies:Gt("c8FZS"),toComparators:Gt("2J2hR"),maxSatisfying:Gt("lbfMG"),minSatisfying:Gt("5wbuE"),minVersion:Gt("hZRNG"),validRange:Gt("fqnzG"),outside:Gt("77bPN"),gtr:Gt("gD8Tz"),ltr:Gt("bpPww"),intersects:Gt("cHIUn"),simplifyRange:Gt("k8aCs"),subset:Gt("388OD")}})),Gt.register("bikcG",((e,t)=>{var r=Gt("bgOMw").MAX_SAFE_COMPONENT_LENGTH,n=Gt("jkMsx");const s=(t=e.exports={}).re=[],o=t.src=[],i=t.t={};let a=0;const c=(e,t,r)=>{const c=a++;n(e,c,t),i[e]=c,o[c]=t,s[c]=RegExp(t,r?"g":void 0)};c("NUMERICIDENTIFIER","0|[1-9]\\d*"),c("NUMERICIDENTIFIERLOOSE","[0-9]+"),c("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),c("MAINVERSION",`(${o[i.NUMERICIDENTIFIER]})\\.(${o[i.NUMERICIDENTIFIER]})\\.(${o[i.NUMERICIDENTIFIER]})`),c("MAINVERSIONLOOSE",`(${o[i.NUMERICIDENTIFIERLOOSE]})\\.(${o[i.NUMERICIDENTIFIERLOOSE]})\\.(${o[i.NUMERICIDENTIFIERLOOSE]})`),c("PRERELEASEIDENTIFIER",`(?:${o[i.NUMERICIDENTIFIER]}|${o[i.NONNUMERICIDENTIFIER]})`),c("PRERELEASEIDENTIFIERLOOSE",`(?:${o[i.NUMERICIDENTIFIERLOOSE]}|${o[i.NONNUMERICIDENTIFIER]})`),c("PRERELEASE",`(?:-(${o[i.PRERELEASEIDENTIFIER]}(?:\\.${o[i.PRERELEASEIDENTIFIER]})*))`),c("PRERELEASELOOSE",`(?:-?(${o[i.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[i.PRERELEASEIDENTIFIERLOOSE]})*))`),c("BUILDIDENTIFIER","[0-9A-Za-z-]+"),c("BUILD",`(?:\\+(${o[i.BUILDIDENTIFIER]}(?:\\.${o[i.BUILDIDENTIFIER]})*))`),c("FULLPLAIN",`v?${o[i.MAINVERSION]}${o[i.PRERELEASE]}?${o[i.BUILD]}?`),c("FULL",`^${o[i.FULLPLAIN]}$`),c("LOOSEPLAIN",`[v=\\s]*${o[i.MAINVERSIONLOOSE]}${o[i.PRERELEASELOOSE]}?${o[i.BUILD]}?`),c("LOOSE",`^${o[i.LOOSEPLAIN]}$`),c("GTLT","((?:<|>)?=?)"),c("XRANGEIDENTIFIERLOOSE",o[i.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*"),c("XRANGEIDENTIFIER",o[i.NUMERICIDENTIFIER]+"|x|X|\\*"),c("XRANGEPLAIN",`[v=\\s]*(${o[i.XRANGEIDENTIFIER]})(?:\\.(${o[i.XRANGEIDENTIFIER]})(?:\\.(${o[i.XRANGEIDENTIFIER]})(?:${o[i.PRERELEASE]})?${o[i.BUILD]}?)?)?`),c("XRANGEPLAINLOOSE",`[v=\\s]*(${o[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[i.XRANGEIDENTIFIERLOOSE]})(?:${o[i.PRERELEASELOOSE]})?${o[i.BUILD]}?)?)?`),c("XRANGE",`^${o[i.GTLT]}\\s*${o[i.XRANGEPLAIN]}$`),c("XRANGELOOSE",`^${o[i.GTLT]}\\s*${o[i.XRANGEPLAINLOOSE]}$`),c("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),c("COERCERTL",o[i.COERCE],!0),c("LONETILDE","(?:~>?)"),c("TILDETRIM",`(\\s*)${o[i.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",c("TILDE",`^${o[i.LONETILDE]}${o[i.XRANGEPLAIN]}$`),c("TILDELOOSE",`^${o[i.LONETILDE]}${o[i.XRANGEPLAINLOOSE]}$`),c("LONECARET","(?:\\^)"),c("CARETTRIM",`(\\s*)${o[i.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",c("CARET",`^${o[i.LONECARET]}${o[i.XRANGEPLAIN]}$`),c("CARETLOOSE",`^${o[i.LONECARET]}${o[i.XRANGEPLAINLOOSE]}$`),c("COMPARATORLOOSE",`^${o[i.GTLT]}\\s*(${o[i.LOOSEPLAIN]})$|^$`),c("COMPARATOR",`^${o[i.GTLT]}\\s*(${o[i.FULLPLAIN]})$|^$`),c("COMPARATORTRIM",`(\\s*)${o[i.GTLT]}\\s*(${o[i.LOOSEPLAIN]}|${o[i.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",c("HYPHENRANGE",`^\\s*(${o[i.XRANGEPLAIN]})\\s+-\\s+(${o[i.XRANGEPLAIN]})\\s*$`),c("HYPHENRANGELOOSE",`^\\s*(${o[i.XRANGEPLAINLOOSE]})\\s+-\\s+(${o[i.XRANGEPLAINLOOSE]})\\s*$`),c("STAR","(<|>)?=?\\s*\\*"),c("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),c("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})),Gt.register("bgOMw",((e,t)=>{e.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16}})),Gt.register("jkMsx",((e,t)=>{const r=("object"==typeof process&&process,()=>{});e.exports=r})),Gt.register("7qUJS",(function(e,t){var r=Gt("jkMsx"),n=Gt("bgOMw"),s=n.MAX_LENGTH,o=n.MAX_SAFE_INTEGER,i=Gt("bikcG"),a=i.re,c=i.t,l=Gt("eUvvN"),u=Gt("12NXI").compareIdentifiers;class d{constructor(e,t){if(t=l(t),e instanceof d){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>s)throw new TypeError(`version is longer than ${s} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?a[c.LOOSE]:a[c.FULL]);if(!n)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||0>this.major)throw new TypeError("Invalid major version");if(this.minor>o||0>this.minor)throw new TypeError("Invalid minor version");if(this.patch>o||0>this.patch)throw new TypeError("Invalid patch version");this.prerelease=n[4]?n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&o>t)return t}return e})):[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version}toString(){return this.version}compare(e){if(r("SemVer.compare",this.version,this.options,e),!(e instanceof d)){if("string"==typeof e&&e===this.version)return 0;e=new d(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof d||(e=new d(e,this.options)),u(this.major,e.major)||u(this.minor,e.minor)||u(this.patch,e.patch)}comparePre(e){if(e instanceof d||(e=new d(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const n=this.prerelease[t],s=e.prerelease[t];if(r("prerelease compare",t,n,s),void 0===n&&void 0===s)return 0;if(void 0===s)return 1;if(void 0===n)return-1;if(n!==s)return u(n,s)}while(++t)}compareBuild(e){e instanceof d||(e=new d(e,this.options));let t=0;do{const n=this.build[t],s=e.build[t];if(r("prerelease compare",t,n,s),void 0===n&&void 0===s)return 0;if(void 0===s)return 1;if(void 0===n)return-1;if(n!==s)return u(n,s)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let e=this.prerelease.length;for(;--e>=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(0===u(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this}}e.exports=d})),Gt.register("eUvvN",((e,t)=>{const r=["includePrerelease","loose","rtl"];e.exports=e=>e?"object"!=typeof e?{loose:!0}:r.filter((t=>e[t])).reduce(((e,t)=>(e[t]=!0,e)),{}):{}})),Gt.register("12NXI",((e,t)=>{const r=/^[0-9]+$/,n=(e,t)=>{const n=r.test(e),s=r.test(t);return n&&s&&(e=+e,t=+t),e===t?0:n&&!s?-1:s&&!n?1:t>e?-1:1};e.exports={compareIdentifiers:n,rcompareIdentifiers(e,t){return n(t,e)}}})),Gt.register("gdrva",((e,t)=>{var r=Gt("bgOMw").MAX_LENGTH,n=Gt("bikcG"),s=n.re,o=n.t,i=Gt("7qUJS"),a=Gt("eUvvN");e.exports=(e,t)=>{if(t=a(t),e instanceof i)return e;if("string"!=typeof e)return null;if(e.length>r)return null;if(!(t.loose?s[o.LOOSE]:s[o.FULL]).test(e))return null;try{return new i(e,t)}catch(e){return null}}})),Gt.register("fVzwP",((e,t)=>{var r=Gt("gdrva");e.exports=(e,t)=>{const n=r(e,t);return n?n.version:null}})),Gt.register("hOYls",((e,t)=>{var r=Gt("gdrva");e.exports=(e,t)=>{const n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}})),Gt.register("dGcr6",((e,t)=>{var r=Gt("7qUJS");e.exports=(e,t,n,s)=>{"string"==typeof n&&(s=n,n=void 0);try{return new r(e instanceof r?e.version:e,n).inc(t,s).version}catch(e){return null}}})),Gt.register("bBssn",((e,t)=>{var r=Gt("gdrva"),n=Gt("jXghC");e.exports=(e,t)=>{if(n(e,t))return null;{const n=r(e),s=r(t),o=n.prerelease.length||s.prerelease.length,i=o?"pre":"",a=o?"prerelease":"";for(const e in n)if(("major"===e||"minor"===e||"patch"===e)&&n[e]!==s[e])return i+e;return a}}})),Gt.register("jXghC",((e,t)=>{var r=Gt("howpO");e.exports=(e,t,n)=>0===r(e,t,n)})),Gt.register("howpO",((e,t)=>{var r=Gt("7qUJS");e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n))})),Gt.register("fB2B7",((e,t)=>{var r=Gt("7qUJS");e.exports=(e,t)=>new r(e,t).major})),Gt.register("bye2i",((e,t)=>{var r=Gt("7qUJS");e.exports=(e,t)=>new r(e,t).minor})),Gt.register("87ZGF",((e,t)=>{var r=Gt("7qUJS");e.exports=(e,t)=>new r(e,t).patch})),Gt.register("4agny",((e,t)=>{var r=Gt("gdrva");e.exports=(e,t)=>{const n=r(e,t);return n&&n.prerelease.length?n.prerelease:null}})),Gt.register("zcbgY",((e,t)=>{var r=Gt("howpO");e.exports=(e,t,n)=>r(t,e,n)})),Gt.register("iGBo4",((e,t)=>{var r=Gt("howpO");e.exports=(e,t)=>r(e,t,!0)})),Gt.register("80ezM",((e,t)=>{var r=Gt("7qUJS");e.exports=(e,t,n)=>{const s=new r(e,n),o=new r(t,n);return s.compare(o)||s.compareBuild(o)}})),Gt.register("4qmtg",((e,t)=>{var r=Gt("80ezM");e.exports=(e,t)=>e.sort(((e,n)=>r(e,n,t)))})),Gt.register("4pjXu",((e,t)=>{var r=Gt("80ezM");e.exports=(e,t)=>e.sort(((e,n)=>r(n,e,t)))})),Gt.register("6KPS4",((e,t)=>{var r=Gt("howpO");e.exports=(e,t,n)=>r(e,t,n)>0})),Gt.register("lr5pz",((e,t)=>{var r=Gt("howpO");e.exports=(e,t,n)=>0>r(e,t,n)})),Gt.register("fqqGA",((e,t)=>{var r=Gt("howpO");e.exports=(e,t,n)=>0!==r(e,t,n)})),Gt.register("5cRW4",((e,t)=>{var r=Gt("howpO");e.exports=(e,t,n)=>r(e,t,n)>=0})),Gt.register("fwsB7",((e,t)=>{var r=Gt("howpO");e.exports=(e,t,n)=>0>=r(e,t,n)})),Gt.register("823yM",((e,t)=>{var r=Gt("jXghC"),n=Gt("fqqGA"),s=Gt("6KPS4"),o=Gt("5cRW4"),i=Gt("lr5pz"),a=Gt("fwsB7");e.exports=(e,t,c,l)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof c&&(c=c.version),e===c;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof c&&(c=c.version),e!==c;case"":case"=":case"==":return r(e,c,l);case"!=":return n(e,c,l);case">":return s(e,c,l);case">=":return o(e,c,l);case"<":return i(e,c,l);case"<=":return a(e,c,l);default:throw new TypeError("Invalid operator: "+t)}}})),Gt.register("1YYsi",((e,t)=>{var r=Gt("7qUJS"),n=Gt("gdrva"),s=Gt("bikcG"),o=s.re,i=s.t;e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e+=""),"string"!=typeof e)return null;let s=null;if((t=t||{}).rtl){let t;for(;(t=o[i.COERCERTL].exec(e))&&(!s||s.index+s[0].length!==e.length);)s&&t.index+t[0].length===s.index+s[0].length||(s=t),o[i.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;o[i.COERCERTL].lastIndex=-1}else s=e.match(o[i.COERCE]);return null===s?null:n(`${s[2]}.${s[3]||"0"}.${s[4]||"0"}`,t)}})),Gt.register("eR6XK",(function(e,t){const r=Symbol();class n{static get ANY(){return r}constructor(e,t){if(t=s(t),e instanceof n){if(e.loose===!!t.loose)return e;e=e.value}l("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.value=this.semver===r?"":this.operator+this.semver.version,l("comp",this)}parse(e){const t=e.match(this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR]);if(!t)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==t[1]?t[1]:"","="===this.operator&&(this.operator=""),this.semver=t[2]?new u(t[2],this.options.loose):r}toString(){return this.value}test(e){if(l("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}return c(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof n))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new d(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new d(this.value,t).test(e.semver);const r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),s=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,i=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=c(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=c(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||s||o&&i||a||l}}e.exports=n;var s=Gt("eUvvN"),o=Gt("bikcG"),i=o.re,a=o.t,c=Gt("823yM"),l=Gt("jkMsx"),u=Gt("7qUJS"),d=Gt("hvUff")})),Gt.register("hvUff",(function(e,t){class r{constructor(e,t){if(t=s(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof o)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!f(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&m(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();const t=`parseRange:${Object.keys(this.options).join(",")}:${e}`,r=n.get(t);if(r)return r;const s=this.options.loose;e=e.replace(s?l[u.HYPHENRANGELOOSE]:l[u.HYPHENRANGE],R(this.options.includePrerelease)),i("hyphen replace",e),e=e.replace(l[u.COMPARATORTRIM],d),i("comparator trim",e);let a=(e=(e=(e=e.replace(l[u.TILDETRIM],h)).replace(l[u.CARETTRIM],p)).split(/\s+/).join(" ")).split(" ").map((e=>y(e,this.options))).join(" ").split(/\s+/).map((e=>T(e,this.options)));s&&(a=a.filter((e=>(i("loose invalid filter",e,this.options),!!e.match(l[u.COMPARATORLOOSE]))))),i("range list",a);const c=new Map,m=a.map((e=>new o(e,this.options)));for(const e of m){if(f(e))return[e];c.set(e.value,e)}c.size>1&&c.has("")&&c.delete("");const g=[...c.values()];return n.set(t,g),g}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some((r=>g(r,t)&&e.set.some((e=>g(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new a(e,this.options)}catch(e){return!1}for(let t=0;this.set.length>t;t++)if(A(this.set[t],e,this.options))return!0;return!1}}e.exports=r;const n=new(Gt("6MLkQ"))({max:1e3});var s=Gt("eUvvN"),o=Gt("eR6XK"),i=Gt("jkMsx"),a=Gt("7qUJS"),c=Gt("bikcG"),l=c.re,u=c.t,d=c.comparatorTrimReplace,h=c.tildeTrimReplace,p=c.caretTrimReplace;const f=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,g=(e,t)=>{let r=!0;const n=e.slice();let s=n.pop();for(;r&&n.length;)r=n.every((e=>s.intersects(e,t))),s=n.pop();return r},y=(e,t)=>(i("comp",e,t),e=E(e,t),i("caret",e),e=b(e,t),i("tildes",e),e=_(e,t),i("xrange",e),e=O(e,t),i("stars",e),e),v=e=>!e||"x"===e.toLowerCase()||"*"===e,b=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>e.replace(t.loose?l[u.TILDELOOSE]:l[u.TILDE],((t,r,n,s,o)=>{let a;return i("tilde",e,t,r,n,s,o),v(r)?a="":v(n)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:v(s)?a=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:o?(i("replaceTilde pr",o),a=`>=${r}.${n}.${s}-${o} <${r}.${+n+1}.0-0`):a=`>=${r}.${n}.${s} <${r}.${+n+1}.0-0`,i("tilde return",a),a})),E=(e,t)=>e.trim().split(/\s+/).map((e=>x(e,t))).join(" "),x=(e,t)=>{i("caret",e,t);const r=t.includePrerelease?"-0":"";return e.replace(t.loose?l[u.CARETLOOSE]:l[u.CARET],((t,n,s,o,a)=>{let c;return i("caret",e,t,n,s,o,a),v(n)?c="":v(s)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:v(o)?c="0"===n?`>=${n}.${s}.0${r} <${n}.${+s+1}.0-0`:`>=${n}.${s}.0${r} <${+n+1}.0.0-0`:a?(i("replaceCaret pr",a),c="0"===n?"0"===s?`>=${n}.${s}.${o}-${a} <${n}.${s}.${+o+1}-0`:`>=${n}.${s}.${o}-${a} <${n}.${+s+1}.0-0`:`>=${n}.${s}.${o}-${a} <${+n+1}.0.0-0`):(i("no pr"),c="0"===n?"0"===s?`>=${n}.${s}.${o}${r} <${n}.${s}.${+o+1}-0`:`>=${n}.${s}.${o}${r} <${n}.${+s+1}.0-0`:`>=${n}.${s}.${o} <${+n+1}.0.0-0`),i("caret return",c),c}))},_=(e,t)=>(i("replaceXRanges",e,t),e.split(/\s+/).map((e=>S(e,t))).join(" ")),S=(e,t)=>(e=e.trim()).replace(t.loose?l[u.XRANGELOOSE]:l[u.XRANGE],((r,n,s,o,a,c)=>{i("xRange",e,r,n,s,o,a,c);const l=v(s),u=l||v(o),d=u||v(a);return"="===n&&d&&(n=""),c=t.includePrerelease?"-0":"",l?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&d?(u&&(o=0),a=0,">"===n?(n=">=",u?(s=+s+1,o=0,a=0):(o=+o+1,a=0)):"<="===n&&(n="<",u?s=+s+1:o=+o+1),"<"===n&&(c="-0"),r=`${n+s}.${o}.${a}${c}`):u?r=`>=${s}.0.0${c} <${+s+1}.0.0-0`:d&&(r=`>=${s}.${o}.0${c} <${s}.${+o+1}.0-0`),i("xRange return",r),r})),O=(e,t)=>(i("replaceStars",e,t),e.trim().replace(l[u.STAR],"")),T=(e,t)=>(i("replaceGTE0",e,t),e.trim().replace(l[t.includePrerelease?u.GTE0PRE:u.GTE0],"")),R=e=>(t,r,n,s,o,i,a,c,l,u,d,h,p)=>`${r=v(n)?"":v(s)?`>=${n}.0.0${e?"-0":""}`:v(o)?`>=${n}.${s}.0${e?"-0":""}`:i?">="+r:`>=${r}${e?"-0":""}`} ${c=v(l)?"":v(u)?`<${+l+1}.0.0-0`:v(d)?`<${l}.${+u+1}.0-0`:h?`<=${l}.${u}.${d}-${h}`:e?`<${l}.${u}.${+d+1}-0`:"<="+c}`.trim(),A=(e,t,r)=>{for(let r=0;e.length>r;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;e.length>r;r++)if(i(e[r].semver),e[r].semver!==o.ANY&&e[r].semver.prerelease.length>0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}})),Gt.register("6MLkQ",(function(e,t){const r="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,n="undefined"!=typeof AbortController?AbortController:Object.assign(class{constructor(){this.signal=new n.AbortSignal}abort(){this.signal.aborted=!0}},{AbortSignal:class{constructor(){this.aborted=!1}}}),s=new Set,o=(e,t)=>{const r="LRU_CACHE_OPTION_"+e;c(r)&&l(r,e+" option","options."+t,f)},i=(e,t)=>{const r="LRU_CACHE_METHOD_"+e;if(c(r)){const{prototype:n}=f,{get:s}=Object.getOwnPropertyDescriptor(n,e);l(r,e+" method",`cache.${t}()`,s)}},a=(...e)=>{"object"==typeof process&&process&&"function"==typeof process.emitWarning?process.emitWarning(...e):console.error(...e)},c=e=>!s.has(e),l=(e,t,r,n)=>{s.add(e),a(`The ${t} is deprecated. Please use ${r} instead.`,"DeprecationWarning",e,n)},u=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),d=e=>u(e)?e>256?e>65536?e>4294967296?e>Number.MAX_SAFE_INTEGER?null:h:Uint32Array:Uint16Array:Uint8Array:null;class h extends Array{constructor(e){super(e),this.fill(0)}}class p{constructor(e){if(0===e)return[];const t=d(e);this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}}class f{constructor(e={}){const{max:t=0,ttl:r,ttlResolution:n=1,ttlAutopurge:i,updateAgeOnGet:l,updateAgeOnHas:h,allowStale:m,dispose:g,disposeAfter:y,noDisposeOnSet:v,noUpdateTTL:b,maxSize:w=0,sizeCalculation:E,fetchMethod:x}=e,{length:_,maxAge:S,stale:O}=e instanceof f?{}:e;if(0!==t&&!u(t))throw new TypeError("max option must be a nonnegative integer");const T=t?d(t):Array;if(!T)throw Error("invalid max value: "+t);if(this.max=t,this.maxSize=w,this.sizeCalculation=E||_,this.sizeCalculation){if(!this.maxSize)throw new TypeError("cannot set sizeCalculation without setting maxSize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(this.fetchMethod=x||null,this.fetchMethod&&"function"!=typeof this.fetchMethod)throw new TypeError("fetchMethod must be a function if specified");if(this.keyMap=new Map,this.keyList=Array(t).fill(null),this.valList=Array(t).fill(null),this.next=new T(t),this.prev=new T(t),this.head=0,this.tail=0,this.free=new p(t),this.initialFill=1,this.size=0,"function"==typeof g&&(this.dispose=g),"function"==typeof y?(this.disposeAfter=y,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!v,this.noUpdateTTL=!!b,0!==this.maxSize){if(!u(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!m||!!O,this.updateAgeOnGet=!!l,this.updateAgeOnHas=!!h,this.ttlResolution=u(n)||0===n?n:1,this.ttlAutopurge=!!i,this.ttl=r||S||0,this.ttl){if(!u(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.initializeTTLTracking()}if(0===this.max&&0===this.ttl&&0===this.maxSize)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.max&&!this.maxSize){const e="LRU_CACHE_UNBOUNDED";c(e)&&(s.add(e),a("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",e,f))}O&&o("stale","allowStale"),S&&o("maxAge","ttl"),_&&o("length","sizeCalculation")}getRemainingTTL(e){return this.has(e,{updateAgeOnHas:!1})?1/0:0}initializeTTLTracking(){this.ttls=new h(this.max),this.starts=new h(this.max),this.setItemTTL=(e,t)=>{if(this.starts[e]=0!==t?r.now():0,this.ttls[e]=t,0!==t&&this.ttlAutopurge){const r=setTimeout((()=>{this.isStale(e)&&this.delete(this.keyList[e])}),t+1);r.unref&&r.unref()}},this.updateItemAge=e=>{this.starts[e]=0!==this.ttls[e]?r.now():0};let e=0;const t=()=>{const t=r.now();if(this.ttlResolution>0){e=t;const r=setTimeout((()=>e=0),this.ttlResolution);r.unref&&r.unref()}return t};this.getRemainingTTL=r=>{const n=this.keyMap.get(r);return void 0===n?0:0===this.ttls[n]||0===this.starts[n]?1/0:this.starts[n]+this.ttls[n]-(e||t())},this.isStale=r=>0!==this.ttls[r]&&0!==this.starts[r]&&(e||t())-this.starts[r]>this.ttls[r]}updateItemAge(e){}setItemTTL(e,t){}isStale(e){return!1}initializeSizeTracking(){this.calculatedSize=0,this.sizes=new h(this.max),this.removeItemSize=e=>this.calculatedSize-=this.sizes[e],this.requireSize=(e,t,r,n)=>{if(!u(r)){if(!n)throw new TypeError("invalid size value (must be positive integer)");if("function"!=typeof n)throw new TypeError("sizeCalculation must be a function");if(r=n(t,e),!u(r))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return r},this.addItemSize=(e,t,r,n)=>{this.sizes[e]=n;const s=this.maxSize-this.sizes[e];for(;this.calculatedSize>s;)this.evict(!0);this.calculatedSize+=this.sizes[e]},this.delete=e=>{if(0!==this.size){const t=this.keyMap.get(e);void 0!==t&&(this.calculatedSize-=this.sizes[t])}return f.prototype.delete.call(this,e)}}removeItemSize(e){}addItemSize(e,t,r,n){}requireSize(e,t,r,n){if(r||n)throw new TypeError("cannot set size without setting maxSize on cache")}*indexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.tail;this.isValidIndex(t)&&(!e&&this.isStale(t)||(yield t),t!==this.head);)t=this.prev[t]}*rindexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.head;this.isValidIndex(t)&&(!e&&this.isStale(t)||(yield t),t!==this.tail);)t=this.next[t]}isValidIndex(e){return this.keyMap.get(this.keyList[e])===e}*entries(){for(const e of this.indexes())yield[this.keyList[e],this.valList[e]]}*rentries(){for(const e of this.rindexes())yield[this.keyList[e],this.valList[e]]}*keys(){for(const e of this.indexes())yield this.keyList[e]}*rkeys(){for(const e of this.rindexes())yield this.keyList[e]}*values(){for(const e of this.indexes())yield this.valList[e]}*rvalues(){for(const e of this.rindexes())yield this.valList[e]}[Symbol.iterator](){return this.entries()}find(e,t={}){for(const r of this.indexes())if(e(this.valList[r],this.keyList[r],this))return this.get(this.keyList[r],t)}forEach(e,t=this){for(const r of this.indexes())e.call(t,this.valList[r],this.keyList[r],this)}rforEach(e,t=this){for(const r of this.rindexes())e.call(t,this.valList[r],this.keyList[r],this)}get prune(){return i("prune","purgeStale"),this.purgeStale}purgeStale(){let e=!1;for(const t of this.rindexes({allowStale:!0}))this.isStale(t)&&(this.delete(this.keyList[t]),e=!0);return e}dump(){const e=[];for(const t of this.indexes()){const r=this.keyList[t],n={value:this.valList[t]};this.ttls&&(n.ttl=this.ttls[t]),this.sizes&&(n.size=this.sizes[t]),e.unshift([r,n])}return e}load(e){this.clear();for(const[t,r]of e)this.set(t,r.value,r)}dispose(e,t,r){}set(e,t,{ttl:r=this.ttl,noDisposeOnSet:n=this.noDisposeOnSet,size:s=0,sizeCalculation:o=this.sizeCalculation,noUpdateTTL:i=this.noUpdateTTL}={}){s=this.requireSize(e,t,s,o);let a=0===this.size?void 0:this.keyMap.get(e);if(void 0===a)a=this.newIndex(),this.keyList[a]=e,this.valList[a]=t,this.keyMap.set(e,a),this.next[this.tail]=a,this.prev[a]=this.tail,this.tail=a,this.size++,this.addItemSize(a,t,e,s),i=!1;else{const r=this.valList[a];t!==r&&(this.isBackgroundFetch(r)?r.__abortController.abort():n||(this.dispose(r,e,"set"),this.disposeAfter&&this.disposed.push([r,e,"set"])),this.removeItemSize(a),this.valList[a]=t,this.addItemSize(a,t,e,s)),this.moveToTail(a)}if(0===r||0!==this.ttl||this.ttls||this.initializeTTLTracking(),i||this.setItemTTL(a,r),this.disposeAfter)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return this}newIndex(){return 0===this.size?this.tail:this.size===this.max&&0!==this.max?this.evict(!1):0!==this.free.length?this.free.pop():this.initialFill++}pop(){if(this.size){const e=this.valList[this.head];return this.evict(!0),e}}evict(e){const t=this.head,r=this.keyList[t],n=this.valList[t];return this.isBackgroundFetch(n)?n.__abortController.abort():(this.dispose(n,r,"evict"),this.disposeAfter&&this.disposed.push([n,r,"evict"])),this.removeItemSize(t),e&&(this.keyList[t]=null,this.valList[t]=null,this.free.push(t)),this.head=this.next[t],this.keyMap.delete(r),this.size--,t}has(e,{updateAgeOnHas:t=this.updateAgeOnHas}={}){const r=this.keyMap.get(e);return void 0!==r&&!this.isStale(r)&&(t&&this.updateItemAge(r),!0)}peek(e,{allowStale:t=this.allowStale}={}){const r=this.keyMap.get(e);if(void 0!==r&&(t||!this.isStale(r)))return this.valList[r]}backgroundFetch(e,t,r){const s=void 0===t?void 0:this.valList[t];if(this.isBackgroundFetch(s))return s;const o=new n,i={signal:o.signal,options:r},a=Promise.resolve(this.fetchMethod(e,s,i)).then((t=>(o.signal.aborted||this.set(e,t,i.options),t)));return a.__abortController=o,a.__staleWhileFetching=s,void 0===t?(this.set(e,a,i.options),t=this.keyMap.get(e)):this.valList[t]=a,a}isBackgroundFetch(e){return e&&"object"==typeof e&&"function"==typeof e.then&&{}.hasOwnProperty.call(e,"__staleWhileFetching")}async fetch(e,{allowStale:t=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,ttl:n=this.ttl,noDisposeOnSet:s=this.noDisposeOnSet,size:o=0,sizeCalculation:i=this.sizeCalculation,noUpdateTTL:a=this.noUpdateTTL}={}){if(!this.fetchMethod)return this.get(e,{allowStale:t,updateAgeOnGet:r});const c={allowStale:t,updateAgeOnGet:r,ttl:n,noDisposeOnSet:s,size:o,sizeCalculation:i,noUpdateTTL:a};let l=this.keyMap.get(e);if(void 0===l)return this.backgroundFetch(e,l,c);{const n=this.valList[l];if(this.isBackgroundFetch(n))return t&&void 0!==n.__staleWhileFetching?n.__staleWhileFetching:n;if(!this.isStale(l))return this.moveToTail(l),r&&this.updateItemAge(l),n;const s=this.backgroundFetch(e,l,c);return t&&void 0!==s.__staleWhileFetching?s.__staleWhileFetching:s}}get(e,{allowStale:t=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet}={}){const n=this.keyMap.get(e);if(void 0!==n){const s=this.valList[n],o=this.isBackgroundFetch(s);if(this.isStale(n))return o?t?s.__staleWhileFetching:void 0:(this.delete(e),t?s:void 0);if(o)return;return this.moveToTail(n),r&&this.updateItemAge(n),s}}connect(e,t){this.prev[t]=e,this.next[e]=t}moveToTail(e){e!==this.tail&&(e===this.head?this.head=this.next[e]:this.connect(this.prev[e],this.next[e]),this.connect(this.tail,e),this.tail=e)}get del(){return i("del","delete"),this.delete}delete(e){let t=!1;if(0!==this.size){const r=this.keyMap.get(e);if(void 0!==r)if(t=!0,1===this.size)this.clear();else{this.removeItemSize(r);const t=this.valList[r];this.isBackgroundFetch(t)?t.__abortController.abort():(this.dispose(t,e,"delete"),this.disposeAfter&&this.disposed.push([t,e,"delete"])),this.keyMap.delete(e),this.keyList[r]=null,this.valList[r]=null,r===this.tail?this.tail=this.prev[r]:r===this.head?this.head=this.next[r]:(this.next[this.prev[r]]=this.next[r],this.prev[this.next[r]]=this.prev[r]),this.size--,this.free.push(r)}}if(this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return t}clear(){for(const e of this.rindexes({allowStale:!0})){const t=this.valList[e];if(this.isBackgroundFetch(t))t.__abortController.abort();else{const r=this.keyList[e];this.dispose(t,r,"delete"),this.disposeAfter&&this.disposed.push([t,r,"delete"])}}if(this.keyMap.clear(),this.valList.fill(null),this.keyList.fill(null),this.ttls&&(this.ttls.fill(0),this.starts.fill(0)),this.sizes&&this.sizes.fill(0),this.head=0,this.tail=0,this.initialFill=1,this.free.length=0,this.calculatedSize=0,this.size=0,this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift())}get reset(){return i("reset","clear"),this.clear}get length(){return((e,t)=>{const r="LRU_CACHE_PROPERTY_length";if(c(r)){const{prototype:e}=f,{get:t}=Object.getOwnPropertyDescriptor(e,"length");l(r,"length property","cache.size",t)}})(),this.size}}e.exports=f})),Gt.register("c8FZS",((e,t)=>{var r=Gt("hvUff");e.exports=(e,t,n)=>{try{t=new r(t,n)}catch(e){return!1}return t.test(e)}})),Gt.register("2J2hR",((e,t)=>{var r=Gt("hvUff");e.exports=(e,t)=>new r(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))})),Gt.register("lbfMG",((e,t)=>{var r=Gt("7qUJS"),n=Gt("hvUff");e.exports=(e,t,s)=>{let o=null,i=null,a=null;try{a=new n(t,s)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(o&&-1!==i.compare(e)||(o=e,i=new r(o,s)))})),o}})),Gt.register("5wbuE",((e,t)=>{var r=Gt("7qUJS"),n=Gt("hvUff");e.exports=(e,t,s)=>{let o=null,i=null,a=null;try{a=new n(t,s)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(o&&1!==i.compare(e)||(o=e,i=new r(o,s)))})),o}})),Gt.register("hZRNG",((e,t)=>{var r=Gt("7qUJS"),n=Gt("hvUff"),s=Gt("6KPS4");e.exports=(e,t)=>{e=new n(e,t);let o=new r("0.0.0");if(e.test(o))return o;if(o=new r("0.0.0-0"),e.test(o))return o;o=null;for(let t=0;e.set.length>t;++t){let n=null;e.set[t].forEach((e=>{const t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!s(t,n)||(n=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator)}})),!n||o&&!s(o,n)||(o=n)}return o&&e.test(o)?o:null}})),Gt.register("fqnzG",((e,t)=>{var r=Gt("hvUff");e.exports=(e,t)=>{try{return new r(e,t).range||"*"}catch(e){return null}}})),Gt.register("77bPN",((e,t)=>{var r=Gt("7qUJS"),n=Gt("eR6XK");const{ANY:s}=n;var o=Gt("hvUff"),i=Gt("c8FZS"),a=Gt("6KPS4"),c=Gt("lr5pz"),l=Gt("fwsB7"),u=Gt("5cRW4");e.exports=(e,t,d,h)=>{let p,f,m,g,y;switch(e=new r(e,h),t=new o(t,h),d){case">":p=a,f=l,m=c,g=">",y=">=";break;case"<":p=c,f=u,m=a,g="<",y="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(i(e,t,h))return!1;for(let r=0;t.set.length>r;++r){let o=null,i=null;if(t.set[r].forEach((e=>{e.semver===s&&(e=new n(">=0.0.0")),o=o||e,i=i||e,p(e.semver,o.semver,h)?o=e:m(e.semver,i.semver,h)&&(i=e)})),o.operator===g||o.operator===y)return!1;if((!i.operator||i.operator===g)&&f(e,i.semver))return!1;if(i.operator===y&&m(e,i.semver))return!1}return!0}})),Gt.register("gD8Tz",((e,t)=>{var r=Gt("77bPN");e.exports=(e,t,n)=>r(e,t,">",n)})),Gt.register("bpPww",((e,t)=>{var r=Gt("77bPN");e.exports=(e,t,n)=>r(e,t,"<",n)})),Gt.register("cHIUn",((e,t)=>{var r=Gt("hvUff");e.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t))})),Gt.register("k8aCs",((e,t)=>{var r=Gt("c8FZS"),n=Gt("howpO");e.exports=(e,t,s)=>{const o=[];let i=null,a=null;const c=e.sort(((e,t)=>n(e,t,s)));for(const e of c)r(e,t,s)?(a=e,i||(i=e)):(a&&o.push([i,a]),a=null,i=null);i&&o.push([i,null]);const l=[];for(const[e,t]of o)l.push(e===t?e:t||e!==c[0]?t?e===c[0]?"<="+t:`${e} - ${t}`:">="+e:"*");const u=l.join(" || ");return("string"==typeof t.raw?t.raw:t+"").length>u.length?u:t}})),Gt.register("388OD",((e,t)=>{var r=Gt("hvUff"),n=Gt("eR6XK");const{ANY:s}=n;var o=Gt("c8FZS"),i=Gt("howpO");const a=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===s){if(1===t.length&&t[0].semver===s)return!0;e=r.includePrerelease?[new n(">=0.0.0-0")]:[new n(">=0.0.0")]}if(1===t.length&&t[0].semver===s){if(r.includePrerelease)return!0;t=[new n(">=0.0.0")]}const a=new Set;let u,d,h,p,f,m,g;for(const t of e)">"===t.operator||">="===t.operator?u=c(u,t,r):"<"===t.operator||"<="===t.operator?d=l(d,t,r):a.add(t.semver);if(a.size>1)return null;if(u&&d){if(h=i(u.semver,d.semver,r),h>0)return null;if(0===h&&(">="!==u.operator||"<="!==d.operator))return null}for(const e of a){if(u&&!o(e,u+"",r))return null;if(d&&!o(e,d+"",r))return null;for(const n of t)if(!o(e,n+"",r))return!1;return!0}let y=!(!d||r.includePrerelease||!d.semver.prerelease.length)&&d.semver,v=!(!u||r.includePrerelease||!u.semver.prerelease.length)&&u.semver;y&&1===y.prerelease.length&&"<"===d.operator&&0===y.prerelease[0]&&(y=!1);for(const e of t){if(g=g||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,u)if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),">"===e.operator||">="===e.operator){if(p=c(u,e,r),p===e&&p!==u)return!1}else if(">="===u.operator&&!o(u.semver,e+"",r))return!1;if(d)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(f=l(d,e,r),f===e&&f!==d)return!1}else if("<="===d.operator&&!o(d.semver,e+"",r))return!1;if(!e.operator&&(d||u)&&0!==h)return!1}return!(u&&m&&!d&&0!==h||d&&g&&!u&&0!==h||v||y)},c=(e,t,r)=>{if(!e)return t;const n=i(e.semver,t.semver,r);return n>0?e:0>n||">"===t.operator&&">="===e.operator?t:e},l=(e,t,r)=>{if(!e)return t;const n=i(e.semver,t.semver,r);return 0>n?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new r(e,n),t=new r(t,n);let s=!1;e:for(const r of e.set){for(const e of t.set){const t=a(r,e,n);if(s=s||null!==t,t)continue e}if(s)return!1}return!0}})),Gt.register("iFKS7",((e,t)=>{var r=Gt("joDHm"),n=Gt("inTPA");e.exports=(e,t,s)=>{var o=t&&s||0;"string"==typeof e&&(t="binary"===e?Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||r)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var a=0;16>a;++a)t[o+a]=i[a];return t||n(i)}})),Gt.register("joDHm",((e,t)=>{e.exports=()=>It.randomBytes(16)})),Gt.register("inTPA",((e,t)=>{for(var r=[],n=0;256>n;++n)r[n]=(n+256).toString(16).substr(1);e.exports=(e,t)=>{var n=t||0;return""+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]}})),Gt.register("ca0ts",(function(e,t){"use strict";function r(e,t,r){return i(this,void 0,void 0,(function*(){const n=a.argStringToArray(e);if(0===n.length)throw Error("Parameter 'commandLine' cannot be null or empty.");const s=n[0];return t=n.slice(1).concat(t||[]),new a.ToolRunner(s,t,r).exec()}))}var n=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),s=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),o=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&n(t,e,r);return s(t,e),t}),i=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((s,o)=>{function i(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getExecOutput=e.exports.exec=void 0;const a=o(Gt("e0fPv"));e.exports.exec=r,e.exports.getExecOutput=function(e,t,n){var s,o;return i(this,void 0,void 0,(function*(){let i="",a="";const c=new Pt.StringDecoder("utf8"),l=new Pt.StringDecoder("utf8"),u=null===(s=null==n?void 0:n.listeners)||void 0===s?void 0:s.stdout,d=null===(o=null==n?void 0:n.listeners)||void 0===o?void 0:o.stderr,h=Object.assign(Object.assign({},null==n?void 0:n.listeners),{stdout(e){i+=c.write(e),u&&u(e)},stderr(e){a+=l.write(e),d&&d(e)}}),p=yield r(e,t,Object.assign(Object.assign({},n),{listeners:h}));return i+=c.end(),a+=l.end(),{exitCode:p,stdout:i,stderr:a}}))}})),Gt.register("e0fPv",(function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),s=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var s in e)"default"!==s&&Object.hasOwnProperty.call(e,s)&&r(t,e,s);return n(t,e),t}),o=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((s,o)=>{function i(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.argStringToArray=e.exports.ToolRunner=void 0;const i=s(wt),a=s(Tt),c=s(Ct),l=s(Et),u=s(Gt("fvrnx")),d=s(Gt("2GOko")),h="win32"===process.platform;e.exports.ToolRunner=class extends a.EventEmitter{constructor(e,t,r){if(super(),!e)throw Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=t||[],this.options=r||{}}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e)}_getCommandString(e,t){const r=this._getSpawnFileName(),n=this._getSpawnArgs(e);let s=t?"":"[command]";if(h)if(this._isCmdFile()){s+=r;for(const e of n)s+=" "+e}else if(e.windowsVerbatimArguments){s+=`"${r}"`;for(const e of n)s+=" "+e}else{s+=this._windowsQuoteCmdArg(r);for(const e of n)s+=" "+this._windowsQuoteCmdArg(e)}else{s+=r;for(const e of n)s+=" "+e}return s}_processLineBuffer(e,t,r){try{let n=t+""+e,s=n.indexOf(i.EOL);for(;s>-1;)r(n.substring(0,s)),n=n.substring(s+i.EOL.length),s=n.indexOf(i.EOL);return n}catch(e){return this._debug("error processing line. Failed with error "+e),""}}_getSpawnFileName(){return h&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(e){if(h&&this._isCmdFile()){let t='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath);for(const r of this.args)t+=" ",t+=e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r);return t+='"',[t]}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile())return this._uvQuoteCmdArg(e);if(!e)return'""';const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let r=!1;for(const n of e)if(t.some((e=>e===n))){r=!0;break}if(!r)return e;let n='"',s=!0;for(let t=e.length;t>0;t--)n+=e[t-1],s&&"\\"===e[t-1]?n+="\\":'"'===e[t-1]?(s=!0,n+='"'):s=!1;return n+='"',n.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let t='"',r=!0;for(let n=e.length;n>0;n--)t+=e[n-1],r&&"\\"===e[n-1]?t+="\\":'"'===e[n-1]?(r=!0,t+="\\"):r=!1;return t+='"',t.split("").reverse().join("")}_cloneExecOptions(e){const t={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t}_getSpawnOptions(e,t){const r={};return r.cwd=(e=e||{}).cwd,r.env=e.env,r.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(r.argv0=`"${t}"`),r}exec(){return o(this,void 0,void 0,(function*(){return!d.isRooted(this.toolPath)&&(this.toolPath.includes("/")||h&&this.toolPath.includes("\\"))&&(this.toolPath=l.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield u.which(this.toolPath,!0),new Promise(((e,t)=>o(this,void 0,void 0,(function*(){this._debug("exec tool: "+this.toolPath),this._debug("arguments:");for(const e of this.args)this._debug(" "+e);const r=this._cloneExecOptions(this.options);!r.silent&&r.outStream&&r.outStream.write(this._getCommandString(r)+i.EOL);const n=new p(r,this.toolPath);if(n.on("debug",(e=>{this._debug(e)})),this.options.cwd&&!(yield d.exists(this.options.cwd)))return t(Error(`The cwd: ${this.options.cwd} does not exist!`));const s=this._getSpawnFileName(),o=c.spawn(s,this._getSpawnArgs(r),this._getSpawnOptions(this.options,s));let 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 l="";if(o.stderr&&o.stderr.on("data",(e=>{n.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!r.silent&&r.errStream&&r.outStream&&(r.failOnStdErr?r.errStream:r.outStream).write(e),l=this._processLineBuffer(e,l,(e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e)}))})),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),l.length>0&&this.emit("errline",l),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.argStringToArray=e=>{function t(e){s&&'"'!==e&&(o+="\\"),o+=e,s=!1}const r=[];let n=!1,s=!1,o="";for(let i=0;e.length>i;i++){const a=e.charAt(i);'"'!==a?"\\"===a&&s?t(a):"\\"===a&&n?s=!0:" "!==a||n?t(a):o.length>0&&(r.push(o),o=""):s?t(a):n=!n}return o.length>0&&r.push(o.trim()),r};class p 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=$t.setTimeout(p.HandleTimeout,this.delay,this)))}_debug(e){this.emit("debug",e)}_setResult(){let e;this.processExited&&(this.processError?e=Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):0===this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)):e=Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)}static HandleTimeout(e){e.done||(!e.processClosed&&e.processExited&&e._debug(`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`),e._setResult())}}})),Gt.register("d0ovd",((e,t)=>{e.exports=Promise.resolve(require("./actions_python.feac98a0.js")).then((()=>Gt("apy8x")))})),Gt.register("fxp1R",((e,t)=>{"disable"===process.env.READABLE_STREAM&&kt?(e.exports=kt,(t=e.exports=kt.Readable).Readable=kt.Readable,t.Writable=kt.Writable,t.Duplex=kt.Duplex,t.Transform=kt.Transform,t.PassThrough=kt.PassThrough,t.Stream=kt):((t=e.exports=Gt("g51ol")).Stream=kt||t,t.Readable=t,t.Writable=Gt("kUGl4"),t.Duplex=Gt("9sAaU"),t.Transform=Gt("k6Y8J"),t.PassThrough=Gt("3lyKu"))})),Gt.register("g51ol",(function(e,t){"use strict";function r(e,t){var r=t instanceof(b=b||Gt("9sAaU"));this.objectMode=!!(e=e||{}).objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,s=e.readableHighWaterMark;this.highWaterMark=n||0===n?n:r&&(s||0===s)?s:this.objectMode?16:16384,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new A,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(R||(R=Gt("gD0OV").StringDecoder),this.decoder=new R(e.encoding),this.encoding=e.encoding)}function n(e){if(b=b||Gt("9sAaU"),!(this instanceof n))return new n(e);this._readableState=new r(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),x.call(this)}function s(e,t,r,n,s){var i,c=e._readableState;return null===t?(c.reading=!1,((e,t)=>{if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,a(e)}})(e,c)):(s||(i=((e,t)=>{var r,n;return _.isBuffer(n=t)||n instanceof S||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r})(c,t)),i?e.emit("error",i):c.objectMode||t&&t.length>0?("string"==typeof t||c.objectMode||Object.getPrototypeOf(t)===_.prototype||(t=(e=>_.from(e))(t)),n?c.endEmitted?e.emit("error",Error("stream.unshift() after end event")):o(e,c,t,!0):c.ended?e.emit("error",Error("stream.push() after EOF")):(c.reading=!1,c.decoder&&!r?(t=c.decoder.write(t),c.objectMode||0!==t.length?o(e,c,t,!1):l(e,c)):o(e,c,t,!1))):n||(c.reading=!1)),(e=>!e.ended&&(e.needReadable||e.highWaterMark>e.length||0===e.length))(c)}function o(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&a(e)),l(e,t)}function i(e,t){return 0>=e||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=(e=>(P>e?(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++):e=P,e))(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function a(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(T("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?v.nextTick(c,e):c(e))}function c(e){T("emit readable"),e.emit("readable"),p(e)}function l(e,t){t.readingMore||(t.readingMore=!0,v.nextTick(u,e,t))}function u(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.highWaterMark>t.length&&(T("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function d(e){T("readable nexttick read 0"),e.read(0)}function h(e,t){t.reading||(T("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),p(e),t.flowing&&!t.reading&&e.read(0)}function p(e){var t=e._readableState;for(T("flow",t.flowing);t.flowing&&null!==e.read(););}function f(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():e&&t.length>e?r=((e,t,r)=>{var n;return t.head.data.length>e?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():r?((e,t)=>{var r=t.head,n=1,s=r.data;for(e-=s.length;r=r.next;){var o=r.data,i=e>o.length?o.length:e;if(s+=i===o.length?o:o.slice(0,e),0==(e-=i)){i===o.length?(++n,t.head=r.next?r.next:t.tail=null):(t.head=r,r.data=o.slice(i));break}++n}return t.length-=n,s})(e,t):((e,t)=>{var r=_.allocUnsafe(e),n=t.head,s=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var o=n.data,i=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,i),0==(e-=i)){i===o.length?(++s,t.head=n.next?n.next:t.tail=null):(t.head=n,n.data=o.slice(i));break}++s}return t.length-=s,r})(e,t),n})(e,t.buffer,t.decoder):(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()),r);var r}function m(e){var t=e._readableState;if(t.length>0)throw Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,v.nextTick(g,t,e))}function g(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function y(e,t){for(var r=0,n=e.length;n>r;r++)if(e[r]===t)return r;return-1}var v=Gt("dyWGi");e.exports=n;var b,w=Gt("3fzzD");n.ReadableState=r;var E=(e,t)=>e.listeners(t).length,x=Gt("5BjC0"),_=Gt("44hFV").Buffer,S=Bt.Uint8Array||(()=>{}),O=Object.create(Gt("2hJf0"));O.inherits=Gt("8MQIj");var T=void 0;T=At&&At.debuglog?At.debuglog("stream"):()=>{};var R,A=Gt("dvrCl"),C=Gt("ktlsh");O.inherits(n,x);var I=["error","close","destroy","pause","resume"];Object.defineProperty(n.prototype,"destroyed",{get(){return void 0!==this._readableState&&this._readableState.destroyed},set(e){this._readableState&&(this._readableState.destroyed=e)}}),n.prototype.destroy=C.destroy,n.prototype._undestroy=C.undestroy,n.prototype._destroy=function(e,t){this.push(null),t(e)},n.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=_.from(e,t),t=""),r=!0),s(this,e,t,!1,r)},n.prototype.unshift=function(e){return s(this,e,null,!0,!1)},n.prototype.isPaused=function(){return!1===this._readableState.flowing},n.prototype.setEncoding=function(e){return R||(R=Gt("gD0OV").StringDecoder),this._readableState.decoder=new R(e),this._readableState.encoding=e,this};var P=8388608;n.prototype.read=function(e){T("read",e);var t=this._readableState,r=e=parseInt(e,10);if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return T("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?m(this):a(this),null;if(0===(e=i(e,t))&&t.ended)return 0===t.length&&m(this),null;var n,s=t.needReadable;return T("need readable",s),(0===t.length||t.highWaterMark>t.length-e)&&T("length less than watermark",s=!0),t.ended||t.reading?T("reading or ended",s=!1):s&&(T("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=i(r,t))),null===(n=e>0?f(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&m(this)),null!==n&&this.emit("data",n),n},n.prototype._read=function(e){this.emit("error",Error("_read() is not implemented"))},n.prototype.pipe=function(e,t){function r(){T("onend"),e.end()}function n(t){T("ondata"),f=!1,!1!==e.write(t)||f||((1===l.pipesCount&&l.pipes===e||l.pipesCount>1&&-1!==y(l.pipes,e))&&!h&&(T("false write response, pause",c._readableState.awaitDrain),c._readableState.awaitDrain++,f=!0),c.pause())}function s(t){T("onerror",t),a(),e.removeListener("error",s),0===E(e,"error")&&e.emit("error",t)}function o(){e.removeListener("finish",i),a()}function i(){T("onfinish"),e.removeListener("close",o),a()}function a(){T("unpipe"),c.unpipe(e)}var c=this,l=this._readableState;switch(l.pipesCount){case 0:l.pipes=e;break;case 1:l.pipes=[l.pipes,e];break;default:l.pipes.push(e)}l.pipesCount+=1,T("pipe count=%d opts=%j",l.pipesCount,t);var u=t&&!1===t.end||e===process.stdout||e===process.stderr?a:r;l.endEmitted?v.nextTick(u):c.once("end",u),e.on("unpipe",(function t(u,p){T("onunpipe"),u===c&&p&&!1===p.hasUnpiped&&(p.hasUnpiped=!0,T("cleanup"),e.removeListener("close",o),e.removeListener("finish",i),e.removeListener("drain",d),e.removeListener("error",s),e.removeListener("unpipe",t),c.removeListener("end",r),c.removeListener("end",a),c.removeListener("data",n),h=!0,!l.awaitDrain||e._writableState&&!e._writableState.needDrain||d())}));var d=(e=>()=>{var t=e._readableState;T("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&E(e,"data")&&(t.flowing=!0,p(e))})(c);e.on("drain",d);var h=!1,f=!1;return c.on("data",n),((e,t,r)=>{if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events.error?w(e._events.error)?e._events.error.unshift(r):e._events.error=[r,e._events.error]:e.on(t,r)})(e,"error",s),e.once("close",o),e.once("finish",i),e.emit("pipe",c),l.flowing||(T("pipe resume"),c.resume()),e},n.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,s=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;s>o;o++)n[o].emit("unpipe",this,r);return this}var i=y(t.pipes,e);return-1===i||(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},n.prototype.addListener=n.prototype.on=function(e,t){var r=x.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&a(this):v.nextTick(d,this))}return r},n.prototype.resume=function(){var e=this._readableState;return e.flowing||(T("resume"),e.flowing=!0,((e,t)=>{t.resumeScheduled||(t.resumeScheduled=!0,v.nextTick(h,e,t))})(this,e)),this},n.prototype.pause=function(){return T("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(T("pause"),this._readableState.flowing=!1,this.emit("pause")),this},n.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var s in e.on("end",(()=>{if(T("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(s=>{T("wrapped data"),r.decoder&&(s=r.decoder.write(s)),r.objectMode&&null==s||(r.objectMode||s&&s.length)&&(t.push(s)||(n=!0,e.pause()))})),e)void 0===this[s]&&"function"==typeof e[s]&&(this[s]=(t=>function(){return e[t].apply(e,arguments)})(s));for(var o=0;I.length>o;o++)e.on(I[o],this.emit.bind(this,I[o]));return this._read=t=>{T("wrapped _read",t),n&&(n=!1,e.resume())},this},Object.defineProperty(n.prototype,"readableHighWaterMark",{enumerable:!1,get(){return this._readableState.highWaterMark}}),n._fromList=f})),Gt.register("dyWGi",((e,t)=>{"use strict";e.exports="undefined"==typeof process||!process.version||0===process.version.indexOf("v0.")||0===process.version.indexOf("v1.")&&0!==process.version.indexOf("v1.8.")?{nextTick(e,t,r,n){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var s,o,i=arguments.length;switch(i){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick((()=>{e.call(null,t)}));case 3:return process.nextTick((()=>{e.call(null,t,r)}));case 4:return process.nextTick((()=>{e.call(null,t,r,n)}));default:for(s=Array(i-1),o=0;s.length>o;)s[o++]=arguments[o];return process.nextTick((()=>{e.apply(null,s)}))}}}:process})),Gt.register("3fzzD",((e,t)=>{var r={}.toString;e.exports=Array.isArray||(e=>"[object Array]"==r.call(e))})),Gt.register("5BjC0",((e,t)=>{e.exports=kt})),Gt.register("44hFV",((e,t)=>{function r(e,t){for(var r in e)t[r]=e[r]}function n(e,t,r){return s(e,t,r)}var s=Nt.Buffer;s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?e.exports=Nt:(r(Nt,e.exports),e.exports.Buffer=n),r(s,n),n.from=(e,t,r)=>{if("number"==typeof e)throw new TypeError("Argument must not be a number");return s(e,t,r)},n.alloc=(e,t,r)=>{if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=s(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},n.allocUnsafe=e=>{if("number"!=typeof e)throw new TypeError("Argument must be a number");return s(e)},n.allocUnsafeSlow=e=>{if("number"!=typeof e)throw new TypeError("Argument must be a number");return Nt.SlowBuffer(e)}})),Gt.register("2hJf0",((t,r)=>{function n(e){return{}.toString.call(e)}var s,o,i,a,c,l,u,d,h,p,f,m,g,y,v;e(t.exports,"isArray",(()=>s),(e=>s=e)),e(t.exports,"isBoolean",(()=>o),(e=>o=e)),e(t.exports,"isNull",(()=>i),(e=>i=e)),e(t.exports,"isNullOrUndefined",(()=>a),(e=>a=e)),e(t.exports,"isNumber",(()=>c),(e=>c=e)),e(t.exports,"isString",(()=>l),(e=>l=e)),e(t.exports,"isSymbol",(()=>u),(e=>u=e)),e(t.exports,"isUndefined",(()=>d),(e=>d=e)),e(t.exports,"isRegExp",(()=>h),(e=>h=e)),e(t.exports,"isObject",(()=>p),(e=>p=e)),e(t.exports,"isDate",(()=>f),(e=>f=e)),e(t.exports,"isError",(()=>m),(e=>m=e)),e(t.exports,"isFunction",(()=>g),(e=>g=e)),e(t.exports,"isPrimitive",(()=>y),(e=>y=e)),e(t.exports,"isBuffer",(()=>v),(e=>v=e)),s=e=>Array.isArray?Array.isArray(e):"[object Array]"===n(e),o=e=>"boolean"==typeof e,i=e=>null===e,a=e=>null==e,c=e=>"number"==typeof e,l=e=>"string"==typeof e,u=e=>"symbol"==typeof e,d=e=>void 0===e,h=e=>"[object RegExp]"===n(e),p=e=>"object"==typeof e&&null!==e,f=e=>"[object Date]"===n(e),m=e=>"[object Error]"===n(e)||e instanceof Error,g=e=>"function"==typeof e,y=e=>null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e,v=Nt.Buffer.isBuffer})),Gt.register("8MQIj",((e,t)=>{try{var r=$665bb24ae9025433$import$7debb50ef11d5e0b;if("function"!=typeof r.inherits)throw"";e.exports=r.inherits}catch(t){e.exports=Gt("7aQGq")}})),Gt.register("7aQGq",((e,t)=>{e.exports="function"==typeof Object.create?(e,t)=>{t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:(e,t)=>{if(t){e.super_=t;var r=()=>{};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}})),Gt.register("dvrCl",(function(e,t){"use strict";var r=Gt("44hFV").Buffer;e.exports=function(){function e(){((e,t)=>{if(!(this instanceof t))throw new TypeError("Cannot call a class as a function")})(0,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var t=r.allocUnsafe(e>>>0),n=this.head,s=0;n;)n.data.copy(t,s),s+=n.data.length,n=n.next;return t},e}(),At&&At.inspect&&At.inspect.custom&&(e.exports.prototype[At.inspect.custom]=function(){var e=At.inspect({length:this.length});return this.constructor.name+" "+e})})),Gt.register("ktlsh",(function(e,t){"use strict";function r(e,t){e.emit("error",t)}var n=Gt("dyWGi");e.exports={destroy(e,t){var s=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||n.nextTick(r,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(e=>{!t&&e?(n.nextTick(r,s,e),s._writableState&&(s._writableState.errorEmitted=!0)):t&&t(e)})),this)},undestroy(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}})),Gt.register("9sAaU",(function(e,t){"use strict";function r(e){if(!(this instanceof r))return new r(e);c.call(this,e),l.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",n)}function n(){this.allowHalfOpen||this._writableState.ended||o.nextTick(s,this)}function s(e){e.end()}var o=Gt("dyWGi"),i=Object.keys||(e=>{var t=[];for(var r in e)t.push(r);return t});e.exports=r;var a=Object.create(Gt("2hJf0"));a.inherits=Gt("8MQIj");var c=Gt("g51ol"),l=Gt("kUGl4");a.inherits(r,c);for(var u=i(l.prototype),d=0;u.length>d;d++){var h=u[d];r.prototype[h]||(r.prototype[h]=l.prototype[h])}Object.defineProperty(r.prototype,"writableHighWaterMark",{enumerable:!1,get(){return this._writableState.highWaterMark}}),Object.defineProperty(r.prototype,"destroyed",{get(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),r.prototype._destroy=function(e,t){this.push(null),this.end(),o.nextTick(t,e)}})),Gt.register("kUGl4",(function(e,t){"use strict";function r(e){var t=this;this.next=null,this.entry=null,this.finish=()=>{((e,t,r)=>{var n=e.entry;for(e.entry=null;n;){var s=n.callback;t.pendingcb--,s(void 0),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e})(t,e)}}function n(){}function s(e,t){p=p||Gt("9sAaU");var n=t instanceof p;this.objectMode=!!(e=e||{}).objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var s=e.highWaterMark,o=e.writableHighWaterMark;this.highWaterMark=s||0===s?s:n&&(o||0===o)?o:this.objectMode?16:16384,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===e.decodeStrings),this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=e=>{((e,t)=>{var r=e._writableState,n=r.sync,s=r.writecb;if((e=>{e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0})(r),t)((e,t,r,n,s)=>{--t.pendingcb,r?(h.nextTick(s,n),h.nextTick(d,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(s(n),e._writableState.errorEmitted=!0,e.emit("error",n),d(e,t))})(e,r,n,t,s);else{var o=l(r);o||r.corked||r.bufferProcessing||!r.bufferedRequest||c(e,r),n?f(a,e,r,o,s):a(e,r,o,s)}})(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}function o(e){if(p=p||Gt("9sAaU"),!(g.call(o,this)||this instanceof p))return new o(e);this._writableState=new s(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),v.call(this)}function i(e,t,r,n,s,o,i){t.writelen=n,t.writecb=i,t.writing=!0,t.sync=!0,r?e._writev(s,t.onwrite):e._write(s,o,t.onwrite),t.sync=!1}function a(e,t,r,n){r||((e,t)=>{0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))})(e,t),t.pendingcb--,n(),d(e,t)}function c(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var s=Array(t.bufferedRequestCount),o=t.corkedRequestsFree;o.entry=n;for(var a=0,c=!0;n;)s[a]=n,n.isBuf||(c=!1),n=n.next,a+=1;s.allBuffers=c,i(e,t,!0,t.length,s,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new r(t),t.bufferedRequestCount=0}else{for(;n;){var l=n.chunk;if(i(e,t,!1,t.objectMode?1:l.length,l,n.encoding,n.callback),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function l(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function u(e,t){e._final((r=>{t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),d(e,t)}))}function d(e,t){var r=l(t);return r&&(((e,t)=>{t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,h.nextTick(u,e,t)):(t.prefinished=!0,e.emit("prefinish")))})(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}var h=Gt("dyWGi");e.exports=o;var p,f=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:h.nextTick;o.WritableState=s;var m=Object.create(Gt("2hJf0"));m.inherits=Gt("8MQIj");var g,y={deprecate:Gt("ldOxW")},v=Gt("5BjC0"),b=Gt("44hFV").Buffer,w=Bt.Uint8Array||(()=>{}),E=Gt("ktlsh");m.inherits(o,v),s.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(s.prototype,"buffer",{get:y.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(g=Function.prototype[Symbol.hasInstance],Object.defineProperty(o,Symbol.hasInstance,{value(e){return!!g.call(this,e)||this===o&&e&&e._writableState instanceof s}})):g=function(e){return e instanceof this},o.prototype.pipe=function(){this.emit("error",Error("Cannot pipe, not readable"))},o.prototype.write=function(e,t,r){var s,o=this._writableState,a=!1,c=!o.objectMode&&(b.isBuffer(s=e)||s instanceof w);return c&&!b.isBuffer(e)&&(e=(e=>b.from(e))(e)),"function"==typeof t&&(r=t,t=null),c?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof r&&(r=n),o.ended?((e,t)=>{var r=Error("write after end");e.emit("error",r),h.nextTick(t,r)})(this,r):(c||((e,t,r,n)=>{var s=!0,o=!1;return null===r?o=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),h.nextTick(n,o),s=!1),s})(this,o,e,r))&&(o.pendingcb++,a=((e,t,r,n,s,o)=>{if(!r){var a=((e,t,r)=>(e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=b.from(t,r)),t))(t,n,s);n!==a&&(r=!0,s="buffer",n=a)}var c=t.objectMode?1:n.length;t.length+=c;var l=t.highWaterMark>t.length;if(l||(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:s,isBuf:r,callback:o,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else i(e,t,!1,c,n,s,o);return l})(this,o,c,e,t,r)),a},o.prototype.cork=function(){this._writableState.corked++},o.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||c(this,e))},o.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),-1>=["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase()))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(o.prototype,"writableHighWaterMark",{enumerable:!1,get(){return this._writableState.highWaterMark}}),o.prototype._write=(e,t,r)=>{r(Error("_write() is not implemented"))},o.prototype._writev=null,o.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||((e,t,r)=>{t.ending=!0,d(e,t),r&&(t.finished?h.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1})(this,n,r)},Object.defineProperty(o.prototype,"destroyed",{get(){return void 0!==this._writableState&&this._writableState.destroyed},set(e){this._writableState&&(this._writableState.destroyed=e)}}),o.prototype.destroy=E.destroy,o.prototype._undestroy=E.undestroy,o.prototype._destroy=function(e,t){this.end(),t(e)}})),Gt.register("ldOxW",((e,t)=>{e.exports=At.deprecate})),Gt.register("gD0OV",(function(t,r){function n(e){var t;switch(this.encoding=(e=>{var t=(e=>{if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}})(e);if("string"!=typeof t&&(p.isEncoding===f||!f(e)))throw Error("Unknown encoding: "+e);return t||e})(e),this.encoding){case"utf16le":this.text=i,this.end=a,t=4;break;case"utf8":this.fillLast=o,t=4;break;case"base64":this.text=c,this.end=l,t=3;break;default:return this.write=u,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=p.allocUnsafe(t)}function s(e){return e>127?e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2:0}function o(e){var t=this.lastTotal-this.lastNeed,r=((e,t,r)=>{if(128!=(192&t[0]))return e.lastNeed=0,"<22>";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"<22>";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"<22>"}})(this,e);return void 0!==r?r:this.lastNeed>e.length?(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length)):(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal))}function i(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&56319>=n)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function a(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):t}function c(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function l(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function u(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}var h;e(t.exports,"StringDecoder",(()=>h),(e=>h=e));var p=Gt("44hFV").Buffer,f=p.isEncoding||(e=>{switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}});h=n,n.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return e.length>r?t?t+this.text(e,r):this.text(e,r):t||""},n.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"<22>":t},n.prototype.text=function(e,t){var r=((e,t,r)=>{var n=t.length-1;if(r>n)return 0;var o=s(t[n]);return 0>o?--n<r||-2===o?0:0>(o=s(t[n]))?--n<r||-2===o||0>(o=s(t[n]))?0:(o>0&&(2===o?o=0:e.lastNeed=o-3),o):(o>0&&(e.lastNeed=o-2),o):(o>0&&(e.lastNeed=o-1),o)})(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},n.prototype.fillLast=function(e){if(e.length>=this.lastNeed)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}})),Gt.register("k6Y8J",(function(e,t){"use strict";function r(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var s=this._readableState;s.reading=!1,(s.needReadable||s.highWaterMark>s.length)&&this._read(s.highWaterMark)}function n(e){if(!(this instanceof n))return new n(e);i.call(this,e),this._transformState={afterTransform:r.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",s)}function s(){var e=this;"function"==typeof this._flush?this._flush(((t,r)=>{o(e,t,r)})):o(this,null,null)}function o(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw Error("Calling transform done when still transforming");return e.push(null)}e.exports=n;var i=Gt("9sAaU"),a=Object.create(Gt("2hJf0"));a.inherits=Gt("8MQIj"),a.inherits(n,i),n.prototype.push=function(e,t){return this._transformState.needTransform=!1,i.prototype.push.call(this,e,t)},n.prototype._transform=(e,t,r)=>{throw Error("_transform() is not implemented")},n.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var s=this._readableState;(n.needTransform||s.needReadable||s.highWaterMark>s.length)&&this._read(s.highWaterMark)}},n.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},n.prototype._destroy=function(e,t){var r=this;i.prototype._destroy.call(this,e,(e=>{t(e),r.emit("close")}))}})),Gt.register("3lyKu",(function(e,t){"use strict";function r(e){if(!(this instanceof r))return new r(e);n.call(this,e)}e.exports=r;var n=Gt("k6Y8J"),s=Object.create(Gt("2hJf0"));s.inherits=Gt("8MQIj"),s.inherits(r,n),r.prototype._transform=(e,t,r)=>{r(null,e)}})),Gt.register("2r32K",((e,t)=>{"use strict";e.exports="function"==typeof Symbol&&"symbol"==typeof Symbol()})),Gt.register("fdKVL",((e,t)=>{})),Gt.register("cReTf",((e,t)=>{function r(e){Array.isArray(e)||(e=[e]);for(const t of e){const{id:e,data:r}=t;c[e]=r}}function n(e,t,r){const n=(e=>{const t=c[e.locale];let r=e.unitTypeLookupOrder.slice();r.unshift(e.unitType),r=Array.from(new Set(r));let n=null;if(r.some((e=>{if(void 0!==t[e])return n=t[e],!0})),null===n)throw Error("Can not find any unit type data for locale: "+e.locale);return n})(r);return s.pluralize(r.locale,t,n[e]).replace("{0}",t)}var s=Gt("5FRs7"),o=Gt("3Zbea");const i=[["years",290304e5],["months",24192e5],["weeks",6048e5],["days",864e5],["hours",36e5],["minutes",6e4],["seconds",1e3]],a={locale:"en",span:2,delimiter:", ",unitType:"long",unitTypeLookupOrder:["long","short","narrow"],autoloadLocales:!0},c={};e.exports={create(e){return e=Object.assign({},a,e||{}),{format(t,s,a){return((e,t,s)=>{if(((e,t)=>{const{autoload:n}=t;if(!c[e]){if(!o||!n)throw Error(`Missing locale: ${e}, you must load it manually before using it`);(e=>{try{r(require(`../locales/${e}.js`))}catch(t){throw Error(`Failed to load locale: ${e} from ../locales/${e}.js. If using a bundled time-delta, set 'autoloadLocales: false' in the config: ${t}`)}})(e)}})(s.locale,{autoload:s.autoloadLocales}),!e)throw Error("Missing first date argument");if(!t)throw Error("Missing second date argument");const a=((e,t)=>{let r=t-e;const n=[];return i.some((e=>{const t=e[0],s=e[1],o=Math.floor(r/s);if(r-=o*s,n.push([t,o]),0>=r)return!0})),n})(e,t),l=[];for(const e of a){const[t,r]=e;if(r>0&&l.push(n(t,r,s)),l.length>=s.span)break}return l.join(s.delimiter)})(t,s,a=Object.assign({},e,a||{}))}}},addLocale:r,defaultConfig:a}})),Gt.register("5FRs7",((e,t)=>{e.exports=Gt("j5MHF")})),Gt.register("j5MHF",(function(e,t){var r=Et.resolve(__dirname,"../node_modules/.pnpm/numerous@1.0.3/node_modules/numerous/lib");(function(){"use strict";function t(e,t,r){if(n(e),"object"!=typeof r)throw Error("List of variants should be specified as an object");var o=s[e](t);return void 0!==r[o]?r[o]:null}function n(e){(e=>void 0!==s[e])(e)||(e=>{try{require(r+"/../locales/"+e+".js")}catch(t){throw Error("Failed to load the following locale: "+e)}})(e)}var s={},o={create(e){return n(e),{pluralize(r,n){return t(e,r,n)}}},addLocale(e,t){s[e]=t},pluralize:t};void 0!==e.exports?e.exports=o:this.numerous=o}).call(e.exports)})),Gt.register("3Zbea",((e,t)=>{"use strict";e.exports=!("undefined"==typeof process||!process.versions||!process.versions.node)})),e(module.exports,"main",(()=>mt)),e(module.exports,"parseArgs",(()=>gt)),e(module.exports,"getCompilerInfo",(()=>yt));var zt=Gt("04fde"),Vt={};const Wt="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,Yt=Wt?";":":";var Xt,Kt={};Xt="win32"===process.platform||Bt.TESTING_WINDOWS?Gt("ftrAD"):Gt("9yF3I"),Kt=r,r.sync=(e,t)=>{try{return Xt.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e}};const Jt=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),Qt=(e,t)=>{const r=t.colon||Yt,n=e.match(/\//)||Wt&&e.match(/\\/)?[""]:[...Wt?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],s=Wt?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",o=Wt?s.split(r):[""];return Wt&&-1!==e.indexOf(".")&&""!==o[0]&&o.unshift(""),{pathEnv:n,pathExt:o,pathExtExe:s}},Zt=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});const{pathEnv:n,pathExt:s,pathExtExe:o}=Qt(e,t),i=[],a=r=>new Promise(((s,o)=>{if(r===n.length)return t.all&&i.length?s(i):o(Jt(e));const a=n[r],l=/^".*"$/.test(a)?a.slice(1,-1):a,u=Et.join(l,e),d=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u;s(c(d,r,0))})),c=(e,r,n)=>new Promise(((l,u)=>{if(n===s.length)return l(a(r+1));const d=s[n];Kt(e+d,{pathExt:o},((s,o)=>{if(!s&&o){if(!t.all)return l(e+d);i.push(e+d)}return l(c(e,r,n+1))}))}));return r?a(0).then((e=>r(null,e)),r):a(0)};let er;Vt=Zt,Zt.sync=(e,t)=>{t=t||{};const{pathEnv:r,pathExt:n,pathExtExe:s}=Qt(e,t),o=[];for(let i=0;r.length>i;i++){const a=r[i],c=/^".*"$/.test(a)?a.slice(1,-1):a,l=Et.join(c,e),u=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+l:l;for(let e=0;n.length>e;e++){const r=u+n[e];try{if(Kt.sync(r,{pathExt:s})){if(!t.all)return r;o.push(r)}}catch(e){}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw Jt(e)};var tr,rr={},nr={},sr={},or={};const ir=(e={})=>{const t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find((e=>"PATH"===e.toUpperCase()))||"Path"};var ar,cr;(or=ir).default=ir,tr=e=>s(e)||s(e,!0);const lr=/([()\][%!^"`<>&|;, *?])/g;ar=e=>e.replace(lr,"^$1"),cr=(e,t)=>(e=(e=`"${e=(e=(e=""+e).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(lr,"^$1"),t&&(e=e.replace(lr,"^$1")),e);var ur,dr,hr;dr=/^#!(.*)/,ur=(e="")=>{const t=e.match(dr);if(!t)return null;const[r,n]=t[0].replace(/#! ?/,"").split(" "),s=r.split("/").pop();return"env"===s?n:n?`${s} ${n}`:s},hr=e=>{const t=Buffer.alloc(150);let r;try{r=xt.openSync(e,"r"),xt.readSync(r,t,0,150,0),xt.closeSync(r)}catch(e){}return ur(""+t)};const pr="win32"===process.platform,fr=/\.(?:com|exe)$/i,mr=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;sr=(e,t,r)=>{t&&!Array.isArray(t)&&(r=t,t=null);const n={command:e,args:t=t?t.slice(0):[],options:r=Object.assign({},r),file:void 0,original:{command:e,args:t}};return r.shell?n:(e=>{if(!pr)return e;const t=(e=>{e.file=tr(e);const t=e.file&&hr(e.file);return t?(e.args.unshift(e.file),e.command=t,tr(e)):e.file})(e),r=!fr.test(t);if(e.options.forceShell||r){const r=mr.test(t);e.command=Et.normalize(e.command),e.command=ar(e.command),e.args=e.args.map((e=>cr(e,r)));const n=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${n}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e})(n)};var gr={};const yr="win32"===process.platform;var vr;gr={hookChildProcess(e,t){if(!yr)return;const r=e.emit;e.emit=function(n,s){if("exit"===n){const n=i(s,t);if(n)return r.call(e,"error",n)}return r.apply(e,arguments)}},verifyENOENT:i,verifyENOENTSync(e,t){return yr&&1===e&&!t.file?o(t.original,"spawnSync"):null},notFoundError:o},(nr=a).spawn=a,nr.sync=(e,t,r)=>{const n=sr(e,t,r),s=Ct.spawnSync(n.command,n.args,n.options);return s.error=s.error||gr.verifyENOENTSync(s.status,n),s},nr._parse=sr,nr._enoent=gr,vr=e=>{const t="string"==typeof e?"\r":13;return e[e.length-1]===("string"==typeof e?"\n":10)&&(e=e.slice(0,e.length-1)),e[e.length-1]===t&&(e=e.slice(0,e.length-1)),e};var br={};const wr=e=>{let t;e={cwd:process.cwd(),path:process.env[or()],execPath:process.execPath,...e};let r=Et.resolve(e.cwd);const n=[];for(;t!==r;)n.push(Et.join(r,"node_modules/.bin")),t=r,r=Et.resolve(r,"..");const s=Et.resolve(e.cwd,e.execPath,"..");return n.push(s),n.concat(e.path).join(Et.delimiter)};(br=wr).default=wr,br.env=e=>{const t={...(e={env:process.env,...e}).env},r=or({env:t});return e.path=t[r],t[r]=br(e),t};var Er={},xr={};const _r=(e,t)=>{for(const r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};(xr=_r).default=_r;const Sr=new WeakMap,Or=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let r,n=0;const s=e.displayName||e.name||"<anonymous>",o=function(...i){if(Sr.set(o,++n),1===n)r=e.apply(this,i),e=null;else if(!0===t.throw)throw Error(`Function \`${s}\` can only be called once`);return r};return xr(o,e),Sr.set(o,n),o};(Er=Or).default=Or,Er.callCount=e=>{if(!Sr.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Sr.get(e)};var Tr,Rr={};Object.defineProperty(Rr,"__esModule",{value:!0}),Rr.signalsByNumber=Rr.signalsByName=void 0;var Ar={};Object.defineProperty(Ar,"__esModule",{value:!0}),Ar.getSignals=void 0;var Cr={};Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.SIGNALS=void 0,Cr.SIGNALS=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];var Ir={};Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.SIGRTMAX=Ir.getRealtimeSignals=void 0,Ir.getRealtimeSignals=()=>Array.from({length:kr-$r+1},Pr);const Pr=(e,t)=>({name:"SIGRT"+(t+1),number:$r+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),$r=34,kr=64;Ir.SIGRTMAX=kr,Ar.getSignals=()=>{const e=(0,Ir.getRealtimeSignals)();return[...Cr.SIGNALS,...e].map(Nr)};const Nr=({name:e,number:t,description:r,action:n,forced:s=!1,standard:o})=>{const{signals:{[e]:i}}=wt.constants,a=void 0!==i;return{name:e,number:a?i:t,description:r,supported:a,action:n,forced:s,standard:o}},Lr=(0,Ar.getSignals)().reduce(((e,{name:t,number:r,description:n,supported:s,action:o,forced:i,standard:a})=>({...e,[t]:{name:t,number:r,description:n,supported:s,action:o,forced:i,standard:a}})),{});Rr.signalsByName=Lr;const jr=(()=>{const e=(0,Ar.getSignals)(),t=Array.from({length:Ir.SIGRTMAX+1},((t,r)=>((e,t)=>{const r=((e,t)=>{const r=t.find((({name:t})=>wt.constants.signals[t]===e));return void 0!==r?r:t.find((t=>t.number===e))})(e,t);if(void 0===r)return{};const{name:n,description:s,supported:o,action:i,forced:a,standard:c}=r;return{[e]:{name:n,number:e,description:s,supported:o,action:i,forced:a,standard:c}}})(r,e)));return Object.assign({},...t)})();Rr.signalsByNumber=jr;var Ur=Rr.signalsByName;Tr=({stdout:e,stderr:t,all:r,error:n,signal:s,exitCode:o,command:i,escapedCommand:a,timedOut:c,isCanceled:l,killed:u,parsed:{options:{timeout:d}}})=>{const h=void 0===(s=null===s?void 0:s)?void 0:Ur[s].description,p=(({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:s,exitCode:o,isCanceled:i})=>e?`timed out after ${t} milliseconds`:i?"was canceled":void 0!==r?"failed with "+r:void 0!==n?`was killed with ${n} (${s})`:void 0!==o?"failed with exit code "+o:"failed")({timedOut:c,timeout:d,errorCode:n&&n.code,signal:s,signalDescription:h,exitCode:o=null===o?void 0:o,isCanceled:l}),f=`Command ${p}: ${i}`,m="[object Error]"==={}.toString.call(n),g=m?`${f}\n${n.message}`:f,y=[g,t,e].filter(Boolean).join("\n");return m?(n.originalMessage=n.message,n.message=y):n=Error(y),n.shortMessage=g,n.command=i,n.escapedCommand=a,n.exitCode=o,n.signal=s,n.signalDescription=h,n.stdout=e,n.stderr=t,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!c,n.isCanceled=l,n.killed=u&&!c,n};var Dr={};const Mr=["stdin","stdout","stderr"],Fr=e=>{if(!e)return;const{stdio:t}=e;if(void 0===t)return Mr.map((t=>e[t]));if((e=>Mr.some((t=>void 0!==e[t])))(e))throw Error("It's not possible to provide `stdio` in combination with one of "+Mr.map((e=>`\`${e}\``)).join(", "));if("string"==typeof t)return t;if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);return Array.from({length:Math.max(t.length,Mr.length)},((e,r)=>t[r]))};(Dr=Fr).node=e=>{const t=Fr(e);return"ipc"===t?"ipc":void 0===t||"string"==typeof t?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"]};var Br,Hr={},qr=Bt.process;const Gr=e=>e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on;if(Gr(qr)){var zr,Vr=Rt,Wr=Gt("bJALw"),Yr=/^win/i.test(qr.platform),Xr=Tt;"function"!=typeof Xr&&(Xr=Xr.EventEmitter),qr.__signal_exit_emitter__?zr=qr.__signal_exit_emitter__:((zr=qr.__signal_exit_emitter__=new Xr).count=0,zr.emitted={}),zr.infinite||(zr.setMaxListeners(1/0),zr.infinite=!0),Hr=(e,t)=>{if(!Gr(Bt.process))return()=>{};Vr.equal(typeof e,"function","a callback must be provided for exit handler"),!1===Zr&&en();var r="exit";return t&&t.alwaysLast&&(r="afterexit"),zr.on(r,e),()=>{zr.removeListener(r,e),0===zr.listeners("exit").length&&0===zr.listeners("afterexit").length&&Kr()}};var Kr=()=>{Zr&&Gr(Bt.process)&&(Zr=!1,Wr.forEach((e=>{try{qr.removeListener(e,Qr[e])}catch(e){}})),qr.emit=nn,qr.reallyExit=tn,zr.count-=1)};Hr.unload=Kr;var Jr=(e,t,r)=>{zr.emitted[e]||(zr.emitted[e]=!0,zr.emit(e,t,r))},Qr={};Wr.forEach((e=>{Qr[e]=()=>{Gr(Bt.process)&&qr.listeners(e).length===zr.count&&(Kr(),Jr("exit",null,e),Jr("afterexit",null,e),Yr&&"SIGHUP"===e&&(e="SIGINT"),qr.kill(qr.pid,e))}})),Hr.signals=()=>Wr;var Zr=!1,en=()=>{!Zr&&Gr(Bt.process)&&(Zr=!0,zr.count+=1,Wr=Wr.filter((e=>{try{return qr.on(e,Qr[e]),!0}catch(e){return!1}})),qr.emit=sn,qr.reallyExit=rn)};Hr.load=en;var tn=qr.reallyExit,rn=e=>{Gr(Bt.process)&&(qr.exitCode=e||0,Jr("exit",qr.exitCode,null),Jr("afterexit",qr.exitCode,null),tn.call(qr,qr.exitCode))},nn=qr.emit,sn=function(e,t){if("exit"===e&&Gr(Bt.process)){void 0!==t&&(qr.exitCode=t);var r=nn.apply(this,arguments);return Jr("exit",qr.exitCode,null),Jr("afterexit",qr.exitCode,null),r}return nn.apply(this,arguments)}}else Hr=()=>()=>{};const on=e=>e===wt.constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase();var an,cn=(Br={spawnedKill(e,t="SIGTERM",r={}){const n=e(t);return((e,t,r,n)=>{if(!((e,{forceKillAfterTimeout:t},r)=>on(e)&&!1!==t&&r)(t,r,n))return;const s=(({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||0>e)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e})(r),o=setTimeout((()=>{e("SIGKILL")}),s);o.unref&&o.unref()})(e,t,r,n),n},spawnedCancel(e,t){e.kill()&&(t.isCanceled=!0)},setupTimeout(e,{timeout:t,killSignal:r="SIGTERM"},n){if(0===t||void 0===t)return n;let s;const o=new Promise(((n,o)=>{s=setTimeout((()=>{((e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}))})(e,r,o)}),t)})),i=n.finally((()=>{clearTimeout(s)}));return Promise.race([o,i])},validateTimeout({timeout:e}){if(void 0!==e&&(!Number.isFinite(e)||0>e))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},async setExitHandler(e,{cleanup:t,detached:r},n){if(!t||r)return n;const s=Hr((()=>{e.kill()}));return n.finally((()=>{s()}))}}).spawnedKill,ln=Br.spawnedCancel,un=Br.setupTimeout,dn=Br.validateTimeout,hn=Br.setExitHandler,pn={};const fn=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;fn.writable=e=>fn(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,fn.readable=e=>fn(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,fn.duplex=e=>fn.writable(e)&&fn.readable(e),fn.transform=e=>fn.duplex(e)&&"function"==typeof e._transform,pn=fn;var mn,gn={},yn=Nt.constants,vn=kt.PassThrough;mn=e=>{e={...e};const{array:t}=e;let{encoding:r}=e;const n="buffer"===r;let s=!1;t?s=!(r||n):r=r||"utf8",n&&(r=null);const o=new vn({objectMode:s});r&&o.setEncoding(r);let i=0;const a=[];return o.on("data",(e=>{a.push(e),s?i=a.length:i+=e.length})),o.getBufferedValue=()=>t?a:n?Buffer.concat(a,i):a.join(""),o.getBufferedLength=()=>i,o};const bn=(0,At.promisify)(kt.pipeline);class wn extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}(gn=c).buffer=(e,t)=>c(e,{...t,encoding:"buffer"}),gn.array=(e,t)=>c(e,{...t,array:!0}),gn.MaxBufferError=wn;var En,xn=kt.PassThrough;En=function(){function e(t){return Array.isArray(t)?(t.forEach(e),this):(n.push(t),t.once("end",r.bind(null,t)),t.once("error",s.emit.bind(s,"error")),t.pipe(s,{end:!1}),this)}function t(){return 0==n.length}function r(e){!(n=n.filter((t=>t!==e))).length&&s.readable&&s.end()}var n=[],s=new xn({objectMode:!0});return s.setMaxListeners(0),s.add=e,s.isEmpty=t,s.on("unpipe",r),[].slice.call(arguments).forEach(e),s};const _n=async(e,t)=>{if(e){e.destroy();try{return await t}catch(e){return e.bufferedData}}},Sn=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?gn(e,{encoding:t,maxBuffer:n}):gn.buffer(e,{maxBuffer:n})};var On,Tn=(an={handleInput(e,t){void 0!==t&&void 0!==e.stdin&&(pn(t)?t.pipe(e.stdin):e.stdin.end(t))},makeAllStream(e,{all:t}){if(!t||!e.stdout&&!e.stderr)return;const r=En();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r},async getSpawnedResult({stdout:e,stderr:t,all:r},{encoding:n,buffer:s,maxBuffer:o},i){const a=Sn(e,{encoding:n,buffer:s,maxBuffer:o}),c=Sn(t,{encoding:n,buffer:s,maxBuffer:o}),l=Sn(r,{encoding:n,buffer:s,maxBuffer:2*o});try{return await Promise.all([i,a,c,l])}catch(n){return Promise.all([{error:n,signal:n.signal,timedOut:n.timedOut},_n(e,a),_n(t,c),_n(r,l)])}},validateInputSync({input:e}){if(pn(e))throw new TypeError("The `input` option cannot be a stream in sync mode")}}).handleInput,Rn=an.getSpawnedResult,An=an.makeAllStream,Cn=an.validateInputSync;const In=(async()=>{})().constructor.prototype,Pn=["then","catch","finally"].map((e=>[e,Reflect.getOwnPropertyDescriptor(In,e)]));var $n,kn=(On={mergePromise(e,t){for(const[r,n]of Pn){const s="function"==typeof t?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:s})}return e},getSpawnedPromise(e){return new Promise(((t,r)=>{e.on("exit",((e,r)=>{t({exitCode:e,signal:r})})),e.on("error",(e=>{r(e)})),e.stdin&&e.stdin.on("error",(e=>{r(e)}))}))}}).mergePromise,Nn=On.getSpawnedPromise;const Ln=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],jn=/^[\w.-]+$/,Un=/"/g,Dn=/ +/g;var Mn=($n={joinCommand(e,t){return Ln(e,t).join(" ")},getEscapedCommand(e,t){return Ln(e,t).map((e=>(e=>"string"!=typeof e||jn.test(e)?e:`"${e.replace(Un,'\\"')}"`)(e))).join(" ")},parseCommand(e){const t=[];for(const r of e.trim().split(Dn)){const e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${r}`:t.push(r)}return t}}).joinCommand,Fn=$n.parseCommand,Bn=$n.getEscapedCommand;const Hn=(e,t,r={})=>{const n=nr._parse(e,t,r);return e=n.command,t=n.args,(r={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(r=n.options).cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...r}).env=(({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:s})=>{const o=t?{...process.env,...e}:e;return r?br.env({env:o,cwd:n,execPath:s}):o})(r),r.stdio=Dr(r),"win32"===process.platform&&"cmd"===Et.basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n}},qn=(e,t,r)=>"string"==typeof t||Buffer.isBuffer(t)?e.stripFinalNewline?vr(t):t:void 0===r?void 0:"",Gn=(e,t,r)=>{const n=Hn(e,t,r),s=Mn(e,t),o=Bn(e,t);let i;dn(n.options);try{i=Ct.spawn(n.file,n.args,n.options)}catch(e){const t=new Ct.ChildProcess,r=Promise.reject(Tr({error:e,stdout:"",stderr:"",all:"",command:s,escapedCommand:o,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return kn(t,r)}const a=Nn(i),c=un(i,n.options,a),l=hn(i,n.options,c),u={isCanceled:!1};i.kill=cn.bind(null,i.kill.bind(i)),i.cancel=ln.bind(null,i,u);const d=Er((async()=>{const[{error:e,exitCode:t,signal:r,timedOut:a},c,d,h]=await Rn(i,n.options,l),p=qn(n.options,c),f=qn(n.options,d),m=qn(n.options,h);if(e||0!==t||null!==r){const c=Tr({error:e,exitCode:t,signal:r,stdout:p,stderr:f,all:m,command:s,escapedCommand:o,parsed:n,timedOut:a,isCanceled:u.isCanceled,killed:i.killed});if(!n.options.reject)return c;throw c}return{command:s,escapedCommand:o,exitCode:0,stdout:p,stderr:f,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}));return Tn(i,n.options.input),i.all=An(i,n.options),kn(i,d)};(rr=Gn).sync=(e,t,r)=>{const n=Hn(e,t,r),s=Mn(e,t),o=Bn(e,t);let i;Cn(n.options);try{i=Ct.spawnSync(n.file,n.args,n.options)}catch(e){throw Tr({error:e,stdout:"",stderr:"",all:"",command:s,escapedCommand:o,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}const a=qn(n.options,i.stdout,i.error),c=qn(n.options,i.stderr,i.error);if(i.error||0!==i.status||null!==i.signal){const e=Tr({stdout:a,stderr:c,error:i.error,signal:i.signal,exitCode:i.status,command:s,escapedCommand:o,parsed:n,timedOut:i.error&&"ETIMEDOUT"===i.error.code,isCanceled:!1,killed:null!==i.signal});if(!n.options.reject)return e;throw e}return{command:s,escapedCommand:o,exitCode:0,stdout:a,stderr:c,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},rr.command=(e,t)=>{const[r,...n]=Fn(e);return Gn(r,n,t)},rr.commandSync=(e,t)=>{const[r,...n]=Fn(e);return Gn.sync(r,n,t)},rr.node=(e,t,r={})=>{t&&!Array.isArray(t)&&"object"==typeof t&&(r=t,t=[]);const n=Dr.node(r),s=process.execArgv.filter((e=>!e.startsWith("--inspect"))),{nodePath:o=process.execPath,nodeOptions:i=s}=r;return Gn(o,[...i,e,...Array.isArray(t)?t:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})},zt=Gt("04fde");var zn,Vn=Gt("gmbrv");zt=Gt("04fde"),Vn=Gt("gmbrv");const Wn=wt.homedir();zn=e=>{if("string"!=typeof e)throw new TypeError("Expected a string, got "+typeof e);return Wn?e.replace(/^~(?=$|\/|\\)/,Wn):e};var Yn=Gt("ditiY");let Xn;var Kn;const Jn="win32"!==wt.platform(),Qn=wt.release(),Zn=/(\d+\.\d+)\.(\d+)/;Kn=e=>Jn?e.replace(/(\s+)/g,"\\$1"):((e="",t="")=>/1\d+\.\d+/.test(e)&&+t>=17134.1184)(...Zn.exec(Qn).splice(1))?e:e.replace(/(\s+)/g,"%20");const es=d(".cpprc");let ts=!1,rs=!1,ns=!1;Yn=Gt("ditiY");let ss=!1,os=!1;zt=Gt("04fde");let is,as=!1;zt=Gt("04fde"),Yn=Gt("ditiY");let cs,ls,us,ds=!1;Yn=Gt("ditiY");var hs=Gt("fvrnx"),ps=(Yn=Gt("ditiY"),{}),fs=Et.resolve(__dirname,"../node_modules/.pnpm/@actions+tool-cache@2.0.1/node_modules/@actions/tool-cache/lib"),ms=ps&&ps.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),gs=ps&&ps.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),ys=ps&&ps.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&ms(t,e,r);return gs(t,e),t}),vs=ps&&ps.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((s,o)=>{function i(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())}))),bs=ps&&ps.__importDefault||(e=>e&&e.__esModule?e:{default:e});Object.defineProperty(ps,"__esModule",{value:!0}),ps.evaluateVersions=ps.isExplicitVersion=ps.findFromManifest=ps.getManifestFromRepo=ps.findAllVersions=ps.find=ps.cacheFile=ps.cacheDir=ps.extractZip=ps.extractXar=ps.extractTar=ps.extract7z=ps.downloadTool=ps.HTTPError=void 0;const ws=ys(Gt("04fde")),Es=ys(Gt("fvrnx")),xs=ys(xt),_s=ys(Gt("6kHxT")),Ss=ys(wt),Os=ys(Et),Ts=ys(Gt("4z9RF")),Rs=ys(Gt("4URNm")),As=ys(kt),Cs=ys(At),Is=bs(Gt("iFKS7"));var Ps=Gt("ca0ts"),$s={},ks=$s&&$s.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),Ns=$s&&$s.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),Ls=$s&&$s.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&ks(t,e,r);return Ns(t,e),t}),js=$s&&$s.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((s,o)=>{function i(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty($s,"__esModule",{value:!0}),$s.RetryHelper=void 0;const Us=Ls(Gt("04fde"));$s.RetryHelper=class{constructor(e,t,r){if(1>e)throw Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(t),this.maxSeconds=Math.floor(r),this.minSeconds>this.maxSeconds)throw Error("min seconds should be less than or equal to max seconds")}execute(e,t){return js(this,void 0,void 0,(function*(){let r=1;for(;this.maxAttempts>r;){try{return yield e()}catch(e){if(t&&!t(e))throw e;Us.info(e.message)}const n=this.getSleepAmount();Us.info(`Waiting ${n} seconds before trying again`),yield this.sleep(n),r++}return yield e()}))}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return js(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,1e3*e)))}))}};class Ds extends Error{constructor(e){super("Unexpected HTTP response: "+e),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}}ps.HTTPError=Ds;const Ms="win32"===process.platform,Fs="darwin"===process.platform;let Bs;ps.downloadTool=function(e,t,r,n){return vs(this,void 0,void 0,(function*(){t=t||Os.join(q(),Is.default()),yield Es.mkdirP(Os.dirname(t)),ws.debug("Downloading "+e),ws.debug("Destination "+t);const s=G("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=G("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),i=new $s.RetryHelper(3,s,o);return yield i.execute((()=>vs(this,void 0,void 0,(function*(){return yield function(e,t,r,n){return vs(this,void 0,void 0,(function*(){if(xs.existsSync(t))throw Error(`Destination file path ${t} already exists`);const s=new Ts.HttpClient("actions/tool-cache",[],{allowRetries:!1});r&&(ws.debug("set auth"),void 0===n&&(n={}),n.authorization=r);const o=yield s.get(e,n);if(200!==o.message.statusCode){const t=new Ds(o.message.statusCode);throw ws.debug(`Failed to download from "${e}". Code(${o.message.statusCode}) Message(${o.message.statusMessage})`),t}const i=Cs.promisify(As.pipeline),a=G("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>o.message))();let c=!1;try{return yield i(a,xs.createWriteStream(t)),ws.debug("download complete"),c=!0,t}finally{if(!c){ws.debug("download failed");try{yield Es.rmRF(t)}catch(e){ws.debug(`Failed to delete '${t}'. ${e.message}`)}}}}))}(e,t||"",r,n)}))),(e=>!(e instanceof Ds&&e.httpStatusCode&&500>e.httpStatusCode&&408!==e.httpStatusCode&&429!==e.httpStatusCode)))}))},ps.extract7z=function(e,t,r){return vs(this,void 0,void 0,(function*(){Rt.ok(Ms,"extract7z() not supported on current OS"),Rt.ok(e,'parameter "file" is required'),t=yield U(t);const n=process.cwd();if(process.chdir(t),r)try{const t=["x",ws.isDebug()?"-bb1":"-bb0","-bd","-sccUTF-8",e],s={silent:!0};yield Ps.exec(`"${r}"`,t,s)}finally{process.chdir(n)}else{const r=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${Os.join(fs,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"")}' -Source '${e.replace(/'/g,"''").replace(/"|\n|\r/g,"")}' -Target '${t.replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`],s={silent:!0};try{const e=yield Es.which("powershell",!0);yield Ps.exec(`"${e}"`,r,s)}finally{process.chdir(n)}}return t}))},ps.extractTar=function(e,t,r="xz"){return vs(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'file' is required");t=yield U(t),ws.debug("Checking tar --version");let n="";yield Ps.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout(e){return n+=""+e},stderr(e){return n+=""+e}}}),ws.debug(n.trim());const s=n.toUpperCase().includes("GNU TAR");let o;o=r instanceof Array?r:[r],ws.isDebug()&&!r.includes("v")&&o.push("-v");let i=t,a=e;return Ms&&s&&(o.push("--force-local"),i=t.replace(/\\/g,"/"),a=e.replace(/\\/g,"/")),s&&(o.push("--warning=no-unknown-keyword"),o.push("--overwrite")),o.push("-C",i,"-f",a),yield Ps.exec("tar",o),t}))},ps.extractXar=function(e,t,r=[]){return vs(this,void 0,void 0,(function*(){let n;Rt.ok(Fs,"extractXar() not supported on current OS"),Rt.ok(e,'parameter "file" is required'),t=yield U(t),n=r instanceof Array?r:[r],n.push("-x","-C",t,"-f",e),ws.isDebug()&&n.push("-v");const s=yield Es.which("xar",!0);var o;return yield Ps.exec(`"${s}"`,(o=n,Array.from(new Set(o)))),t}))},ps.extractZip=function(e,t){return vs(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'file' is required");return t=yield U(t),Ms?yield function(e,t){return vs(this,void 0,void 0,(function*(){const r=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),n=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),s=yield Es.which("pwsh",!1);if(s){const e=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",["$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;",`try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}', $true) }`,`catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${r}' -DestinationPath '${n}' -Force } else { throw $_ } } ;`].join(" ")];ws.debug("Using pwsh at path: "+s),yield Ps.exec(`"${s}"`,e)}else{const e=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",["$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ;",`if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${r}' -DestinationPath '${n}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}', $true) }`].join(" ")],t=yield Es.which("powershell",!0);ws.debug("Using powershell at path: "+t),yield Ps.exec(`"${t}"`,e)}}))}(e,t):yield function(e,t){return vs(this,void 0,void 0,(function*(){const r=yield Es.which("unzip",!0),n=[e];ws.isDebug()||n.unshift("-q"),n.unshift("-o"),yield Ps.exec(`"${r}"`,n,{cwd:t})}))}(e,t),t}))},ps.cacheDir=function(e,t,r,n){return vs(this,void 0,void 0,(function*(){if(r=Rs.clean(r)||r,n=n||Ss.arch(),ws.debug(`Caching tool ${t} ${r} ${n}`),ws.debug("source dir: "+e),!xs.statSync(e).isDirectory())throw Error("sourceDir is not a directory");const s=yield D(t,r,n);for(const t of xs.readdirSync(e)){const r=Os.join(e,t);yield Es.cp(r,s,{recursive:!0})}return M(t,r,n),s}))},ps.cacheFile=function(e,t,r,n,s){return vs(this,void 0,void 0,(function*(){if(n=Rs.clean(n)||n,s=s||Ss.arch(),ws.debug(`Caching tool ${r} ${n} ${s}`),ws.debug("source file: "+e),!xs.statSync(e).isFile())throw Error("sourceFile is not a file");const o=yield D(r,n,s),i=Os.join(o,t);return ws.debug("destination file "+i),yield Es.cp(e,i),M(r,n,s),o}))},ps.find=(e,t,r)=>{if(!e)throw Error("toolName parameter is required");if(!t)throw Error("versionSpec parameter is required");r=r||Ss.arch(),F(t)||(t=B(j(e,r),t));let n="";if(t){t=Rs.clean(t)||"";const s=Os.join(H(),e,t,r);ws.debug("checking cache: "+s),xs.existsSync(s)&&xs.existsSync(s+".complete")?(ws.debug(`Found tool in cache ${e} ${t} ${r}`),n=s):ws.debug("not found")}return n},ps.findAllVersions=j,ps.getManifestFromRepo=function(e,t,r,n="master"){return vs(this,void 0,void 0,(function*(){let s=[];const o=`https://api.github.com/repos/${e}/${t}/git/trees/${n}`,i=new Ts.HttpClient("tool-cache"),a={};r&&(ws.debug("set auth"),a.authorization=r);const c=yield i.getJson(o,a);if(!c.result)return s;let l="";for(const e of c.result.tree)if("versions-manifest.json"===e.path){l=e.url;break}a.accept="application/vnd.github.VERSION.raw";let u=yield(yield i.get(l,a)).readBody();if(u){u=u.replace(/^\uFEFF/,"");try{s=JSON.parse(u)}catch(e){ws.debug("Invalid json")}}return s}))},ps.findFromManifest=function(e,t,r,n=Ss.arch()){return vs(this,void 0,void 0,(function*(){return yield _s._findMatch(e,t,r,n)}))},ps.isExplicitVersion=F,ps.evaluateVersions=B,zt=Gt("04fde"),Vn=Gt("gmbrv");let Hs=!1;var qs,Gs=Gt("fwsB7"),zs=Gt("1YYsi"),Vs=(Ps=Gt("ca0ts"),zt=Gt("04fde"),Vn=Gt("gmbrv"),Yn=Gt("ditiY"),{}),Ws=kt.Writable,Ys={},Xs=kt.PassThrough;(te.prototype=Object.create(kt.Duplex.prototype,{constructor:{value:te}}))._write=function(e,t,r){this._writable.write(e,t,r)},te.prototype._read=function(){for(var e,t=0;null!==(e=this._readable.read());)this.push(e),t++;0===t&&(this._waiting=!0)},(qs=(e,t,r)=>new te(e,t,r)).DuplexWrapper=te;var Ks,Js=Ks=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;Js.writable=e=>Js(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,Js.readable=e=>Js(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,Js.duplex=e=>Js.writable(e)&&Js.readable(e),Js.transform=e=>Js.duplex(e)&&"function"==typeof e._transform&&"object"==typeof e._transformState;var Qs,Zs,eo,to,ro,no,so={},oo=kt.PassThrough;Qs=e=>{const t=(e=Object.assign({},e)).array;let r=e.encoding;const n="buffer"===r;let s=!1;t?s=!(r||n):r=r||"utf8",n&&(r=null);let o=0;const i=[],a=new oo({objectMode:s});return r&&a.setEncoding(r),a.on("data",(e=>{i.push(e),s?o=i.length:o+=e.length})),a.getBufferedValue=()=>t?i:n?Buffer.concat(i,o):i.join(""),a.getBufferedLength=()=>o,a},(so=re).buffer=(e,t)=>re(e,Object.assign({},t,{encoding:"buffer"})),so.array=(e,t)=>re(e,Object.assign({},t,{array:!0})),Zs=(e,t)=>{function r(){e.timeoutTimer&&(clearTimeout(e.timeoutTimer),e.timeoutTimer=null)}function n(){r(),void 0!==s.socket&&e.setTimeout(s.socket,(()=>{e.abort();var t=Error("Socket timed out on request"+o);t.code="ESOCKETTIMEDOUT",e.emit("error",t)}))}if(e.timeoutTimer)return e;var s=isNaN(t)?t:{socket:t,connect:t},o=e._headers?" to "+e._headers.host:"";return void 0!==s.connect&&(e.timeoutTimer=setTimeout((()=>{e.abort();var t=Error("Connection timed out on request"+o);t.code="ETIMEDOUT",e.emit("error",t)}),s.connect)),e.on("socket",(e=>{e.connecting||e._connecting?e.once("connect",n):n()})),e.on("error",r)},to=e=>{if("string"!=typeof e)throw new TypeError("Expected a string, got "+typeof e);return e=e.trim(),/^\.*\/|^(?!localhost)\w+:/.test(e)?e:e.replace(/^(?!(?:\w+:)?\/\/)/,"http://")},eo=e=>{var t=to(e),r=Lt.parse(t);return t!==e&&(r.protocol=null),r},ro=e=>{for(var t={},r=Object.keys(Object(e)),n=0;r.length>n;n++)t[r[n].toLowerCase()]=e[r[n]];return t},no=e=>{if("number"!=typeof e)throw new TypeError("Expected a number");return 300===e||301===e||302===e||303===e||305===e||307===e||308===e};var io,ao=kt.PassThrough;io=e=>{if(-1===["gzip","deflate"].indexOf(e.headers["content-encoding"]))return e;const t=Ut.createUnzip(),r=new ao;return r.httpVersion=e.httpVersion,r.headers=e.headers,r.rawHeaders=e.rawHeaders,r.trailers=e.trailers,r.rawTrailers=e.rawTrailers,r.setTimeout=e.setTimeout.bind(e),r.statusCode=e.statusCode,r.statusMessage=e.statusMessage,r.socket=e.socket,t.on("error",(e=>{"Z_BUF_ERROR"!==e.code?r.emit("error",e):r.end()})),e.pipe(t).pipe(r),r};var co,lo={};lo=Error.captureStackTrace||function(e){var t=Error();Object.defineProperty(e,"stack",{configurable:!0,get(){var e=t.stack;return Object.defineProperty(this,"stack",{value:e}),e}})},co=function(e,t){if("string"!=typeof e)throw new TypeError("Expected className to be a string");if(/[^0-9a-zA-Z_$]/.test(e))throw Error("className contains invalid characters");t=t||function(e){this.message=e};var r,n,s=function(){Object.defineProperty(this,"name",{configurable:!0,value:e,writable:!0}),lo(this,this.constructor),t.apply(this,arguments)};return(r=s).super_=n=Error,r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s};var uo,ho=["ETIMEDOUT","ECONNRESET","EADDRINUSE","ESOCKETTIMEDOUT","ECONNREFUSED","EPIPE","EHOSTUNREACH","EAI_AGAIN"],po=["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED"];uo=e=>!e||!e.code||-1!==ho.indexOf(e.code)||-1===po.indexOf(e.code);var fo={},mo=Nt.Buffer;mo.from&&mo.alloc&&mo.allocUnsafe&&mo.allocUnsafeSlow?fo=Nt:(ne(Nt,fo),fo.Buffer=se),se.prototype=Object.create(mo.prototype),ne(mo,se),se.from=(e,t,r)=>{if("number"==typeof e)throw new TypeError("Argument must not be a number");return mo(e,t,r)},se.alloc=(e,t,r)=>{if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=mo(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},se.allocUnsafe=e=>{if("number"!=typeof e)throw new TypeError("Argument must be a number");return mo(e)},se.allocUnsafeSlow=e=>{if("number"!=typeof e)throw new TypeError("Argument must be a number");return Nt.SlowBuffer(e)};var go,yo=fo.Buffer;go=JSON.parse('{"name":"got","version":"6.7.1","description":"Simplified HTTP requests","license":"MIT","repository":"sindresorhus/got","maintainers":[{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},{"name":"Vsevolod Strukchinsky","email":"floatdrop@gmail.com","url":"github.com/floatdrop"}],"engines":{"node":">=4"},"browser":{"unzip-response":false},"scripts":{"test":"xo && nyc ava","coveralls":"nyc report --reporter=text-lcov | coveralls"},"files":["index.js"],"keywords":["http","https","get","got","url","uri","request","util","utility","simple","curl","wget","fetch"],"dependencies":{"create-error-class":"^3.0.0","duplexer3":"^0.1.4","get-stream":"^3.0.0","is-redirect":"^1.0.0","is-retry-allowed":"^1.0.0","is-stream":"^1.0.0","lowercase-keys":"^1.0.0","safe-buffer":"^5.0.1","timed-out":"^4.0.0","unzip-response":"^2.0.1","url-parse-lax":"^1.0.0"},"devDependencies":{"ava":"^0.17.0","coveralls":"^2.11.4","form-data":"^2.1.1","get-port":"^2.0.0","into-stream":"^3.0.0","nyc":"^10.0.0","pem":"^1.4.4","pify":"^2.3.0","tempfile":"^1.1.1","xo":"*"},"xo":{"esnext":true},"ava":{"concurrency":4}}');const vo=["get","post","put","patch","head","delete"];vo.forEach((e=>{ae[e]=(t,r)=>ae(t,Object.assign({},r,{method:e}))})),ae.stream=(e,t)=>(e=>{const t=new Xs,r=new Xs,n=qs(t,r);if(e.json)throw Error("got can not be used as stream when options.json is used");e.body&&(n.write=()=>{throw Error("got's stream is not writable when options.body is used")});const s=oe(e);return s.on("request",(r=>{n.emit("request",r),Ks(e.body)?e.body.pipe(r):e.body?r.end(e.body):"POST"!==e.method&&"PUT"!==e.method&&"PATCH"!==e.method?r.end():t.pipe(r)})),s.on("response",(t=>{const s=t.statusCode;t.pipe(r),200>s||s>299?n.emit("error",new ae.HTTPError(s,e),null,t):n.emit("response",t)})),s.on("redirect",n.emit.bind(n,"redirect")),s.on("error",n.emit.bind(n,"error")),n})(ie(e,t));for(const e of vo)ae.stream[e]=(t,r)=>ae.stream(t,Object.assign({},r,{method:e}));ae.RequestError=co("RequestError",ce),ae.ReadError=co("ReadError",ce),ae.ParseError=co("ParseError",(function(e,t,r,n){ce.call(this,e,r),this.statusCode=t,this.statusMessage=_t.STATUS_CODES[this.statusCode],this.message=`${e.message} in "${Lt.format(r)}": \n${n.slice(0,77)}...`})),ae.HTTPError=co("HTTPError",(function(e,t){ce.call(this,{},t),this.statusCode=e,this.statusMessage=_t.STATUS_CODES[this.statusCode],this.message=`Response code ${this.statusCode} (${this.statusMessage})`})),ae.MaxRedirectsError=co("MaxRedirectsError",(function(e,t){ce.call(this,{},t),this.statusCode=e,this.statusMessage=_t.STATUS_CODES[this.statusCode],this.message="Redirected 10 times. Aborting."})),Ys=ae;var bo,wo,Eo,xo={};e(xo,"v4",(()=>wo),(e=>wo=e)),e(xo,"v6",(()=>Eo),(e=>Eo=e));var _o,So,Oo,To,Ro,Ao,Co,Io={};To=e=>{switch(e){case 1:return"A";case 10:return"NULL";case 28:return"AAAA";case 18:return"AFSDB";case 42:return"APL";case 257:return"CAA";case 60:return"CDNSKEY";case 59:return"CDS";case 37:return"CERT";case 5:return"CNAME";case 49:return"DHCID";case 32769:return"DLV";case 39:return"DNAME";case 48:return"DNSKEY";case 43:return"DS";case 55:return"HIP";case 13:return"HINFO";case 45:return"IPSECKEY";case 25:return"KEY";case 36:return"KX";case 29:return"LOC";case 15:return"MX";case 35:return"NAPTR";case 2:return"NS";case 47:return"NSEC";case 50:return"NSEC3";case 51:return"NSEC3PARAM";case 12:return"PTR";case 46:return"RRSIG";case 17:return"RP";case 24:return"SIG";case 6:return"SOA";case 99:return"SPF";case 33:return"SRV";case 44:return"SSHFP";case 32768:return"TA";case 249:return"TKEY";case 52:return"TLSA";case 250:return"TSIG";case 16:return"TXT";case 252:return"AXFR";case 251:return"IXFR";case 41:return"OPT";case 255:return"ANY"}return"UNKNOWN_"+e},Ro=e=>{switch(e.toUpperCase()){case"A":return 1;case"NULL":return 10;case"AAAA":return 28;case"AFSDB":return 18;case"APL":return 42;case"CAA":return 257;case"CDNSKEY":return 60;case"CDS":return 59;case"CERT":return 37;case"CNAME":return 5;case"DHCID":return 49;case"DLV":return 32769;case"DNAME":return 39;case"DNSKEY":return 48;case"DS":return 43;case"HIP":return 55;case"HINFO":return 13;case"IPSECKEY":return 45;case"KEY":return 25;case"KX":return 36;case"LOC":return 29;case"MX":return 15;case"NAPTR":return 35;case"NS":return 2;case"NSEC":return 47;case"NSEC3":return 50;case"NSEC3PARAM":return 51;case"PTR":return 12;case"RRSIG":return 46;case"RP":return 17;case"SIG":return 24;case"SOA":return 6;case"SPF":return 99;case"SRV":return 33;case"SSHFP":return 44;case"TA":return 32768;case"TKEY":return 249;case"TLSA":return 52;case"TSIG":return 250;case"TXT":return 16;case"AXFR":return 252;case"IXFR":return 251;case"OPT":return 41;case"ANY":case"*":return 255}return 0},Ao=e=>{switch(e){case 0:return"NOERROR";case 1:return"FORMERR";case 2:return"SERVFAIL";case 3:return"NXDOMAIN";case 4:return"NOTIMP";case 5:return"REFUSED";case 6:return"YXDOMAIN";case 7:return"YXRRSET";case 8:return"NXRRSET";case 9:return"NOTAUTH";case 10:return"NOTZONE";case 11:return"RCODE_11";case 12:return"RCODE_12";case 13:return"RCODE_13";case 14:return"RCODE_14";case 15:return"RCODE_15"}return"RCODE_"+e},Co=e=>{switch(e){case 0:return"QUERY";case 1:return"IQUERY";case 2:return"STATUS";case 3:return"OPCODE_3";case 4:return"NOTIFY";case 5:return"UPDATE";case 6:return"OPCODE_6";case 7:return"OPCODE_7";case 8:return"OPCODE_8";case 9:return"OPCODE_9";case 10:return"OPCODE_10";case 11:return"OPCODE_11";case 12:return"OPCODE_12";case 13:return"OPCODE_13";case 14:return"OPCODE_14";case 15:return"OPCODE_15"}return"OPCODE_"+e};var Po={},$o=Po,ko=Nt.Buffer;$o.toBuffer=function(e,t,r){var n;if(r=~~r,this.isV4Format(e))n=t||new ko(r+4),e.split(/\./g).map((e=>{n[r++]=255&parseInt(e,10)}));else if(this.isV6Format(e)){var s,o=e.split(":",8);for(s=0;o.length>s;s++){var i;this.isV4Format(o[s])&&(i=this.toBuffer(o[s]),o[s]=i.slice(0,2).toString("hex")),i&&8>++s&&o.splice(s,0,i.slice(2,4).toString("hex"))}if(""===o[0])for(;8>o.length;)o.unshift("0");else if(""===o[o.length-1])for(;8>o.length;)o.push("0");else if(8>o.length){for(s=0;o.length>s&&""!==o[s];s++);var a=[s,1];for(s=9-o.length;s>0;s--)a.push("0");o.splice.apply(o,a)}for(n=t||new ko(r+16),s=0;o.length>s;s++){var c=parseInt(o[s],16);n[r++]=c>>8&255,n[r++]=255&c}}if(!n)throw Error("Invalid ip address: "+e);return n},$o.toString=(e,t,r)=>{t=~~t;var n,s=[];if(4===(r=r||e.length-t)){for(n=0;r>n;n++)s.push(e[t+n]);s=s.join(".")}else if(16===r){for(n=0;r>n;n+=2)s.push(e.readUInt16BE(t+n).toString(16));s=(s=(s=s.join(":")).replace(/(^|:)0(:0)*:0(:|$)/,"$1::$3")).replace(/:{3,4}/,"::")}return s};var No=/^(\d{1,3}\.){3,3}\d{1,3}$/,Lo=/^(::)?(((\d{1,3}\.){3}(\d{1,3}){1})?([0-9a-f]){0,4}:{0,2}){1,8}(::)?$/i;$o.isV4Format=e=>No.test(e),$o.isV6Format=e=>Lo.test(e),$o.fromPrefixLen=(e,t)=>{var r=4;"ipv6"===(t=e>32?"ipv6":le(t))&&(r=16);for(var n=new ko(r),s=0,o=n.length;o>s;++s){var i=8;8>e&&(i=e),e-=i,n[s]=255&~(255>>i)}return $o.toString(n)},$o.mask=(e,t)=>{e=$o.toBuffer(e),t=$o.toBuffer(t);var r,n=new ko(Math.max(e.length,t.length));if(e.length===t.length)for(r=0;e.length>r;r++)n[r]=e[r]&t[r];else if(4===t.length)for(r=0;t.length>r;r++)n[r]=e[e.length-4+r]&t[r];else{for(r=0;n.length-6>r;r++)n[r]=0;for(n[10]=255,n[11]=255,r=0;e.length>r;r++)n[r+12]=e[r]&t[r+12];r+=12}for(;n.length>r;r++)n[r]=0;return $o.toString(n)},$o.cidr=e=>{var t=e.split("/"),r=t[0];if(2!==t.length)throw Error("invalid CIDR subnet: "+r);var n=$o.fromPrefixLen(parseInt(t[1],10));return $o.mask(r,n)},$o.subnet=(e,t)=>{for(var r=$o.toLong($o.mask(e,t)),n=$o.toBuffer(t),s=0,o=0;n.length>o;o++)if(255===n[o])s+=8;else for(var i=255&n[o];i;)i=i<<1&255,s++;var a=Math.pow(2,32-s);return{networkAddress:$o.fromLong(r),firstAddress:$o.fromLong(a>2?r+1:r),lastAddress:$o.fromLong(a>2?r+a-2:r+a-1),broadcastAddress:$o.fromLong(r+a-1),subnetMask:t,subnetMaskLength:s,numHosts:a>2?a-2:a,length:a,contains:e=>r===$o.toLong($o.mask(e,t))}},$o.cidrSubnet=e=>{var t=e.split("/"),r=t[0];if(2!==t.length)throw Error("invalid CIDR subnet: "+r);var n=$o.fromPrefixLen(parseInt(t[1],10));return $o.subnet(r,n)},$o.not=e=>{for(var t=$o.toBuffer(e),r=0;t.length>r;r++)t[r]=255^t[r];return $o.toString(t)},$o.or=(e,t)=>{var r;if(e=$o.toBuffer(e),t=$o.toBuffer(t),e.length===t.length){for(r=0;e.length>r;++r)e[r]|=t[r];return $o.toString(e)}var n=e,s=t;t.length>e.length&&(n=t,s=e);var o=n.length-s.length;for(r=o;n.length>r;++r)n[r]|=s[r-o];return $o.toString(n)},$o.isEqual=(e,t)=>{var r;if(e=$o.toBuffer(e),t=$o.toBuffer(t),e.length===t.length){for(r=0;e.length>r;r++)if(e[r]!==t[r])return!1;return!0}if(4===t.length){var n=t;t=e,e=n}for(r=0;10>r;r++)if(0!==t[r])return!1;var s=t.readUInt16BE(10);if(0!==s&&65535!==s)return!1;for(r=0;4>r;r++)if(e[r]!==t[r+12])return!1;return!0},$o.isPrivate=e=>/^(::f{4}:)?10\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(e)||/^(::f{4}:)?192\.168\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(e)||/^(::f{4}:)?172\.(1[6-9]|2\d|30|31)\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(e)||/^(::f{4}:)?127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(e)||/^(::f{4}:)?169\.254\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(e)||/^f[cd][0-9a-f]{2}:/i.test(e)||/^fe80:/i.test(e)||/^::1$/.test(e)||/^::$/.test(e),$o.isPublic=e=>!$o.isPrivate(e),$o.isLoopback=e=>/^(::f{4}:)?127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})/.test(e)||/^fe80::1$/.test(e)||/^::1$/.test(e)||/^::$/.test(e),$o.loopback=e=>{if("ipv4"!==(e=le(e))&&"ipv6"!==e)throw Error("family must be ipv4 or ipv6");return"ipv4"===e?"127.0.0.1":"fe80::1"},$o.address=(e,t)=>{var r=wt.networkInterfaces();if(t=le(t),e&&"private"!==e&&"public"!==e){var n=r[e].filter((e=>le(e.family)===t));if(0===n.length)return;return n[0].address}var s=Object.keys(r).map((n=>{var s=r[n].filter((r=>(r.family=le(r.family),r.family===t&&!$o.isLoopback(r.address)&&(!e||("public"===e?$o.isPrivate(r.address):$o.isPublic(r.address))))));return s.length?s[0].address:void 0})).filter(Boolean);return s.length?s[0]:$o.loopback(t)},$o.toLong=e=>{var t=0;return e.split(".").forEach((e=>{t<<=8,t+=parseInt(e)})),t>>>0},$o.fromLong=e=>`${e>>>24}.${e>>16&255}.${e>>8&255}.${255&e}`;var jo=fo.Buffer,Uo={encode(e,t,r){t||(t=jo.alloc(Uo.encodingLength(e))),r||(r=0);var n=r,s=e.replace(/^\.|\.$/gm,"");if(s.length)for(var o=s.split("."),i=0;o.length>i;i++){var a=t.write(o[i],r+1);t[r]=a,r+=a+1}return t[r++]=0,Uo.encode.bytes=r-n,t}};Uo.encode.bytes=0,Uo.decode=(e,t)=>{t||(t=0);var r=[],n=t,s=e[t++];if(0===s)return Uo.decode.bytes=1,".";if(s>=192){var o=Uo.decode(e,e.readUInt16BE(t-1)-49152);return Uo.decode.bytes=2,o}for(;s;){if(s>=192){r.push(Uo.decode(e,e.readUInt16BE(t-1)-49152)),t++;break}r.push(e.toString("utf-8",t,t+s)),t+=s,s=e[t++]}return Uo.decode.bytes=t-n,r.join(".")},Uo.decode.bytes=0,Uo.encodingLength=e=>"."===e||".."===e?1:jo.byteLength(e.replace(/^\.|\.$/gm,""))+2;var Do={encode(e,t,r){t||(t=jo.alloc(Do.encodingLength(e))),r||(r=0);var n=t.write(e,r+1);return t[r]=n,Do.encode.bytes=n+1,t}};Do.encode.bytes=0,Do.decode=(e,t)=>{t||(t=0);var r=e[t],n=e.toString("utf-8",t+1,t+1+r);return Do.decode.bytes=r+1,n},Do.decode.bytes=0,Do.encodingLength=e=>jo.byteLength(e)+1;var Mo={encode(e,t,r){t||(t=Mo.encodingLength(e)),r||(r=0);var n=32767&(e.flags||0),s="response"===e.type?32768:0;return t.writeUInt16BE(e.id||0,r),t.writeUInt16BE(n|s,r+2),t.writeUInt16BE(e.questions.length,r+4),t.writeUInt16BE(e.answers.length,r+6),t.writeUInt16BE(e.authorities.length,r+8),t.writeUInt16BE(e.additionals.length,r+10),t}};Mo.encode.bytes=12,Mo.decode=(e,t)=>{if(t||(t=0),12>e.length)throw Error("Header must be 12 bytes");var r=e.readUInt16BE(t+2);return{id:e.readUInt16BE(t),type:32768&r?"response":"query",flags:32767&r,flag_qr:1==(r>>15&1),opcode:Co(r>>11&15),flag_auth:1==(r>>10&1),flag_trunc:1==(r>>9&1),flag_rd:1==(r>>8&1),flag_ra:1==(r>>7&1),flag_z:1==(r>>6&1),flag_ad:1==(r>>5&1),flag_cd:1==(r>>4&1),rcode:Ao(15&r),questions:Array(e.readUInt16BE(t+4)),answers:Array(e.readUInt16BE(t+6)),authorities:Array(e.readUInt16BE(t+8)),additionals:Array(e.readUInt16BE(t+10))}},Mo.decode.bytes=12,Mo.encodingLength=()=>12;var Fo={encode(e,t,r){return t||(t=jo.alloc(Fo.encodingLength(e))),r||(r=0),t.writeUInt16BE(e.length,r),e.copy(t,r+2),Fo.encode.bytes=e.length+2,t}};Fo.encode.bytes=0,Fo.decode=(e,t)=>{t||(t=0);var r=e.readUInt16BE(t),n=e.slice(t+2,t+2+r);return Fo.decode.bytes=r+2,n},Fo.decode.bytes=0,Fo.encodingLength=e=>e.length+2;var Bo={encode(e,t,r){return t||(t=jo.alloc(Bo.encodingLength(e))),r||(r=0),Uo.encode(e,t,r+2),t.writeUInt16BE(Uo.encode.bytes,r),Bo.encode.bytes=Uo.encode.bytes+2,t}};Bo.encode.bytes=0,Bo.decode=(e,t)=>{t||(t=0);var r=e.readUInt16BE(t),n=Uo.decode(e,t+2);return Bo.decode.bytes=r+2,n},Bo.decode.bytes=0,Bo.encodingLength=e=>Uo.encodingLength(e)+2;var Ho={encode(e,t,r){t||(t=jo.alloc(Ho.encodingLength(e))),r||(r=0);var n=r;return Uo.encode(e.mname,t,r+=2),Uo.encode(e.rname,t,r+=Uo.encode.bytes),t.writeUInt32BE(e.serial||0,r+=Uo.encode.bytes),t.writeUInt32BE(e.refresh||0,r+=4),t.writeUInt32BE(e.retry||0,r+=4),t.writeUInt32BE(e.expire||0,r+=4),t.writeUInt32BE(e.minimum||0,r+=4),t.writeUInt16BE((r+=4)-n-2,n),Ho.encode.bytes=r-n,t}};Ho.encode.bytes=0,Ho.decode=(e,t)=>{t||(t=0);var r=t,n={};return n.mname=Uo.decode(e,t+=2),n.rname=Uo.decode(e,t+=Uo.decode.bytes),n.serial=e.readUInt32BE(t+=Uo.decode.bytes),n.refresh=e.readUInt32BE(t+=4),n.retry=e.readUInt32BE(t+=4),n.expire=e.readUInt32BE(t+=4),n.minimum=e.readUInt32BE(t+=4),Ho.decode.bytes=(t+=4)-r,n},Ho.decode.bytes=0,Ho.encodingLength=e=>22+Uo.encodingLength(e.mname)+Uo.encodingLength(e.rname);var qo={},Go=qo;qo.encode=(e,t,r)=>{t||(t=jo.alloc(qo.encodingLength(e))),r||(r=0),"string"==typeof e&&(e=jo.from(e)),e||(e=jo.alloc(0));var n=r,s=e.length;return e.copy(t,r+=2,0,s),t.writeUInt16BE((r+=s)-n-2,n),qo.encode.bytes=r-n,t},qo.encode.bytes=0,qo.decode=(e,t)=>{t||(t=0);var r=t,n=e.readUInt16BE(t),s=e.slice(t+=2,t+n);return qo.decode.bytes=(t+=n)-r,s},qo.decode.bytes=0,qo.encodingLength=e=>e?(jo.isBuffer(e)?e.length:jo.byteLength(e))+2:2;var zo={encode(e,t,r){t||(t=jo.alloc(zo.encodingLength(e))),r||(r=0);var n=r;return Do.encode(e.cpu,t,r+=2),Do.encode(e.os,t,r+=Do.encode.bytes),t.writeUInt16BE((r+=Do.encode.bytes)-n-2,n),zo.encode.bytes=r-n,t}};zo.encode.bytes=0,zo.decode=(e,t)=>{t||(t=0);var r=t,n={};return n.cpu=Do.decode(e,t+=2),n.os=Do.decode(e,t+=Do.decode.bytes),zo.decode.bytes=(t+=Do.decode.bytes)-r,n},zo.decode.bytes=0,zo.encodingLength=e=>Do.encodingLength(e.cpu)+Do.encodingLength(e.os)+2;var Vo={},Wo=Vo,Yo=Vo;Vo.encode=(e,t,r)=>(t||(t=jo.alloc(Vo.encodingLength(e))),r||(r=0),Uo.encode(e,t,r+2),t.writeUInt16BE(Uo.encode.bytes,r),Vo.encode.bytes=Uo.encode.bytes+2,t),Vo.encode.bytes=0,Vo.decode=(e,t)=>{t||(t=0);var r=Uo.decode(e,t+2);return Vo.decode.bytes=Uo.decode.bytes+2,r},Vo.decode.bytes=0,Vo.encodingLength=e=>Uo.encodingLength(e)+2;var Xo={encode(e,t,r){t||(t=jo.alloc(Xo.encodingLength(e))),r||(r=0),t.writeUInt16BE(e.priority||0,r+2),t.writeUInt16BE(e.weight||0,r+4),t.writeUInt16BE(e.port||0,r+6),Uo.encode(e.target,t,r+8);var n=Uo.encode.bytes+6;return t.writeUInt16BE(n,r),Xo.encode.bytes=n+2,t}};Xo.encode.bytes=0,Xo.decode=(e,t)=>{t||(t=0);var r=e.readUInt16BE(t),n={};return n.priority=e.readUInt16BE(t+2),n.weight=e.readUInt16BE(t+4),n.port=e.readUInt16BE(t+6),n.target=Uo.decode(e,t+8),Xo.decode.bytes=r+2,n},Xo.decode.bytes=0,Xo.encodingLength=e=>8+Uo.encodingLength(e.target);var Ko={ISSUER_CRITICAL:128,encode(e,t,r){var n=Ko.encodingLength(e);return t||(t=jo.alloc(Ko.encodingLength(e))),r||(r=0),e.issuerCritical&&(e.flags=Ko.ISSUER_CRITICAL),t.writeUInt16BE(n-2,r),t.writeUInt8(e.flags||0,r+=2),Do.encode(e.tag,t,r+=1),t.write(e.value,r+=Do.encode.bytes),r+=jo.byteLength(e.value),Ko.encode.bytes=n,t}};Ko.encode.bytes=0,Ko.decode=(e,t)=>{t||(t=0);var r=e.readUInt16BE(t),n=t+=2,s={};return s.flags=e.readUInt8(t),s.tag=Do.decode(e,t+=1),s.value=e.toString("utf-8",t+=Do.decode.bytes,n+r),s.issuerCritical=!!(s.flags&Ko.ISSUER_CRITICAL),Ko.decode.bytes=r+2,s},Ko.decode.bytes=0,Ko.encodingLength=e=>Do.encodingLength(e.tag)+Do.encodingLength(e.value)+2;var Jo={encode(e,t,r){return t||(t=jo.alloc(Jo.encodingLength(e))),r||(r=0),t.writeUInt16BE(4,r),Po.toBuffer(e,t,r+=2),Jo.encode.bytes=6,t}};Jo.encode.bytes=0,Jo.decode=(e,t)=>{t||(t=0);var r=Po.toString(e,t+=2,4);return Jo.decode.bytes=6,r},Jo.decode.bytes=0,Jo.encodingLength=()=>6;var Qo={encode(e,t,r){return t||(t=jo.alloc(Qo.encodingLength(e))),r||(r=0),t.writeUInt16BE(16,r),Po.toBuffer(e,t,r+=2),Qo.encode.bytes=18,t}};Qo.encode.bytes=0,Qo.decode=(e,t)=>{t||(t=0);var r=Po.toString(e,t+=2,16);return Qo.decode.bytes=18,r},Qo.decode.bytes=0,Qo.encodingLength=()=>18;var Zo=e=>{switch(e.toUpperCase()){case"A":return Jo;case"PTR":return Vo;case"CNAME":return Wo;case"DNAME":return Yo;case"TXT":return qo;case"NULL":return Go;case"AAAA":return Qo;case"SRV":return Xo;case"HINFO":return zo;case"CAA":return Ko;case"NS":return Bo;case"SOA":return Ho}return Fo},ei={encode(e,t,r){t||(t=jo.alloc(ei.encodingLength(e))),r||(r=0);var n=r;Uo.encode(e.name,t,r),r+=Uo.encode.bytes,t.writeUInt16BE(Ro(e.type),r);var s=void 0===e.class?1:e.class;e.flush&&(s|=32768),t.writeUInt16BE(s,r+2),t.writeUInt32BE(e.ttl||0,r+4);var o=Zo(e.type);return o.encode(e.data,t,r+8),ei.encode.bytes=(r+=8+o.encode.bytes)-n,t}};ei.encode.bytes=0,ei.decode=(e,t)=>{t||(t=0);var r={},n=t;r.name=Uo.decode(e,t),r.type=To(e.readUInt16BE(t+=Uo.decode.bytes)),r.class=e.readUInt16BE(t+2),r.ttl=e.readUInt32BE(t+4),r.flush=!!(32768&r.class),r.flush&&(r.class&=-32769);var s=Zo(r.type);return r.data=s.decode(e,t+8),ei.decode.bytes=(t+=8+s.decode.bytes)-n,r},ei.decode.bytes=0,ei.encodingLength=e=>Uo.encodingLength(e.name)+8+Zo(e.type).encodingLength(e.data);var ti={encode(e,t,r){t||(t=jo.alloc(ti.encodingLength(e))),r||(r=0);var n=r;return Uo.encode(e.name,t,r),r+=Uo.encode.bytes,t.writeUInt16BE(Ro(e.type),r),t.writeUInt16BE(void 0===e.class?1:e.class,r+=2),ti.encode.bytes=(r+=2)-n,e}};ti.encode.bytes=0,ti.decode=(e,t)=>{t||(t=0);var r=t,n={};return n.name=Uo.decode(e,t),n.type=To(e.readUInt16BE(t+=Uo.decode.bytes)),n.class=e.readUInt16BE(t+=2),t+=2,!!(32768&n.class)&&(n.class&=-32769),ti.decode.bytes=t-r,n},ti.decode.bytes=0,ti.encodingLength=e=>Uo.encodingLength(e.name)+4,(_o=(e,t,r)=>{var n=!t;n&&(t=jo.alloc(Oo(e))),r||(r=0);var s=r;return e.questions||(e.questions=[]),e.answers||(e.answers=[]),e.authorities||(e.authorities=[]),e.additionals||(e.additionals=[]),Mo.encode(e,t,r),r=de(e.questions,ti,t,r+=Mo.encode.bytes),r=de(e.answers,ei,t,r),r=de(e.authorities,ei,t,r),r=de(e.additionals,ei,t,r),_o.bytes=r-s,n&&_o.bytes!==t.length?t.slice(0,_o.bytes):t}).bytes=0,(So=(e,t)=>{t||(t=0);var r=t,n=Mo.decode(e,t);return t=he(n.questions,ti,e,t+=Mo.decode.bytes),t=he(n.answers,ei,e,t),t=he(n.authorities,ei,e,t),t=he(n.additionals,ei,e,t),So.bytes=t-r,n}).bytes=0,Oo=e=>Mo.encodingLength(e)+ue(e.questions||[],ti)+ue(e.answers||[],ei)+ue(e.authorities||[],ei)+ue(e.additionals||[],ei),Io=pe,At.inherits(pe,Tt.EventEmitter),pe.RECURSION_DESIRED=pe.prototype.RECURSION_DESIRED=256,pe.RECURSION_AVAILABLE=pe.prototype.RECURSION_AVAILABLE=128,pe.TRUNCATED_RESPONSE=pe.prototype.TRUNCATED_RESPONSE=512,pe.AUTHORITATIVE_ANSWER=pe.prototype.AUTHORITATIVE_ANSWER=1024,pe.AUTHENTIC_DATA=pe.prototype.AUTHENTIC_DATA=32,pe.CHECKING_DISABLED=pe.prototype.CHECKING_DISABLED=16,pe.prototype.address=function(){return this.socket.address()},pe.prototype.bind=function(e,t){t&&this.once("listening",t),this.socket.bind(e)},pe.prototype.destroy=function(e){if(e&&this.once("close",e),!this.destroyed){this.destroyed=!0,clearInterval(this._interval),this.socket.close();for(var t=0;this._queries.length>t;t++){var r=this._queries[t];r&&r.callback(Error("Socket destroyed"))}this._queries=[],this._ids=[],this.inflight=0}},pe.prototype._ontimeout=function(){for(var e=0;this._queries.length>e;e++){var t=this._queries[e];t&&(t.tries.length?--t.tries[0]||(t.tries.shift(),this.socket.send(t.buffer,0,t.buffer.length,t.port,t.host)):(this._queries[e]=null,this._ids[e]=0,this.inflight--,this.emit("timeout",t.query,t.port,t.host),t.callback(Error("Query timed out"))))}this._trim()},pe.prototype._onmessage=function(e,t){try{var r=So(e)}catch(e){return void this.emit("warning",e)}if("response"===r.type&&r.id){var n=this._ids.indexOf(r.id),s=n>-1?this._queries[n]:null;s&&(this.inflight--,this._ids[n]=0,this._queries[n]=null,this._trim(),s.callback(null,r,s.query,t.port,t.address))}this.emit(r.type,r,t.port,t.address)},pe.prototype._trim=function(){for(;this._ids.length&&!this._ids[this._ids.length-1];)this._ids.pop(),this._queries.pop()},pe.prototype.unref=function(){this.socket.unref()},pe.prototype.ref=function(){this.socket.ref()},pe.prototype.response=function(e,t,r,n){if(!this.destroyed){t.type="response",t.id=e.id;var s=_o(t);this.socket.send(s,0,s.length,r,n||"127.0.0.1")}},pe.prototype.cancel=function(e){var t=this._ids.indexOf(e),r=this._queries[t];r&&(this._queries[t]=null,this._ids[t]=0,this.inflight--,r.callback(Error("Query cancelled")))},pe.prototype.setRetries=function(e,t){var r=this._ids.indexOf(e),n=this._queries[r];if(n){for(;t>n.tries.length;)n.tries.push(n.tries.length?2*n.tries[n.tries.length-1]:4);n.tries.length>t&&(n.tries=n.tries.slice(0,t))}},pe.prototype.query=function(e,t,r,n){if("function"==typeof r)return this.query(e,t,null,r);if(n||(n=fe),this.destroyed)return((e,t)=>{process.nextTick((()=>{e(t)}))})(n,Error("Socket destroyed")),0;this.inflight++,e.type="query",e.flags="number"==typeof e.flags?e.flags:pe.RECURSION_DESIRED;var s=e.id=this._id++;65535===this._id&&(this._id=1);var o=this._ids.indexOf(0);-1===o&&(o=this._ids.push(0)-1),this._queries.length===o&&this._queries.push(null);var i=_o(e),a=this._triesArray.slice(0);return this._ids[o]=s,this._queries[o]={callback:n,tries:a,query:e,buffer:i,port:t,host:r},this.socket.send(i,0,i.length,t,r||"127.0.0.1"),s};var ri,ni,si,oi,ii={},ai=kt.PassThrough,ci=kt.Transform,li={};oi=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>"%"+e.charCodeAt(0).toString(16).toUpperCase()));var ui={},di=Object.getOwnPropertySymbols,hi={}.hasOwnProperty,pi={}.propertyIsEnumerable;ui=(()=>{try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;10>r;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((e=>t[e])).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((e=>{n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}})()?Object.assign:function(e,t){for(var r,n,s=ge(e),o=1;arguments.length>o;o++){for(var i in r=Object(arguments[o]))hi.call(r,i)&&(s[i]=r[i]);if(di){n=di(r);for(var a=0;n.length>a;a++)pi.call(r,n[a])&&(s[n[a]]=r[n[a]])}}return s};var fi,mi,gi=RegExp("%[a-f0-9]{2}","gi"),yi=RegExp("(%[a-f0-9]{2})+","gi");fi=e=>{if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return(e=>{for(var t={"%FE%FF":"<22><>","%FF%FE":"<22><>"},r=yi.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(e){var n=ve(r[0]);n!==r[0]&&(t[r[0]]=n)}r=yi.exec(e)}t["%C2"]="<22>";for(var s=Object.keys(t),o=0;s.length>o;o++){var i=s[o];e=e.replace(RegExp(i,"g"),t[i])}return e})(e)}},ni=(e,t)=>{var r=(e=>{var t;switch(e.arrayFormat){case"index":return(e,r,n)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return(e,r,n)=>{t=/(\[\])$/.exec(e),n[e=e.replace(/\[\]$/,"")]=t?void 0!==n[e]?[].concat(n[e],r):[r]:r};default:return(e,t,r)=>{r[e]=void 0!==r[e]?[].concat(r[e],t):t}}})(t=ui({arrayFormat:"none"},t)),n=Object.create(null);return"string"!=typeof e?n:(e=e.trim().replace(/^[?#&]/,""))?(e.split("&").forEach((e=>{var t=e.replace(/\+/g," ").split("="),s=t.shift(),o=t.length>0?t.join("="):void 0;o=void 0===o?null:fi(o),r(fi(s),o,n)})),Object.keys(n).sort().reduce(((e,t)=>{var r=n[t];return e[t]=r&&"object"==typeof r&&!Array.isArray(r)?we(r):r,e}),Object.create(null))):n},si=(e,t)=>{!1===(t=ui({encode:!0,strict:!0,arrayFormat:"none"},t)).sort&&(t.sort=()=>{});var r=(e=>{switch(e.arrayFormat){case"index":return(t,r,n)=>null===r?be(t,e)+"["+n+"]":be(t,e)+"["+be(n,e)+"]="+be(r,e);case"bracket":return(t,r)=>null===r?be(t,e):be(t,e)+"[]="+be(r,e);default:return(t,r)=>null===r?be(t,e):be(t,e)+"="+be(r,e)}})(t);return e?Object.keys(e).sort(t.sort).map((n=>{var s=e[n];if(void 0===s)return"";if(null===s)return be(n,t);if(Array.isArray(s)){var o=[];return s.slice().forEach((e=>{void 0!==e&&o.push(r(n,e,o.length))})),o.join("&")}return be(n,t)+"="+be(s,t)})).filter((e=>e.length>0)).join("&"):""},mi=(e,t)=>{if("string"!=typeof e)throw new TypeError(`Expected \`url\` to be of type \`string\`, got \`${typeof e}\``);return e=e.trim(),t=Object.assign({https:!1},t),/^\.*\/|^(?!localhost)\w+:/.test(e)?e:e.replace(/^(?!(?:\w+:)?\/\/)/,t.https?"https://":"http://")};var vi,bi,wi={}.toString;bi=e=>{var t;return"[object Object]"===wi.call(e)&&(null===(t=Object.getPrototypeOf(e))||t===Object.getPrototypeOf({}))},vi=(e,t)=>{if(!bi(e))throw new TypeError("Expected a plain object");if("function"==typeof(t=t||{}))throw new TypeError("Specify the compare function as an option instead");const r=t.deep,n=[],s=[],o=e=>{const i=n.indexOf(e);if(-1!==i)return s[i];const a={},c=Object.keys(e).sort(t.compare);n.push(e),s.push(a);for(let t=0;c.length>t;t++){const n=c[t],s=e[n];if(r&&Array.isArray(s)){const e=[];for(let t=0;s.length>t;t++)e[t]=bi(s[t])?o(s[t]):s[t];a[n]=e}else a[n]=r&&bi(s)?o(s):s}return a};return o(e)};const Ei={"http:":80,"https:":443,"ftp:":21},xi={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};ri=(e,t)=>{if(t=Object.assign({normalizeProtocol:!0,normalizeHttps:!1,stripFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0},t),"string"!=typeof e)throw new TypeError("Expected a string");const r=e.startsWith("//");e=mi(e.trim()).replace(/^\/\//,"http://");const n=Lt.parse(e);if(t.normalizeHttps&&"https:"===n.protocol&&(n.protocol="http:"),!n.hostname&&!n.pathname)throw Error("Invalid URL");if(delete n.host,delete n.query,t.stripFragment&&delete n.hash,+n.port===Ei[n.protocol]&&delete n.port,n.pathname&&(n.pathname=n.pathname.replace(/\/{2,}/g,"/")),n.pathname&&(n.pathname=decodeURI(n.pathname)),!0===t.removeDirectoryIndex&&(t.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let e=n.pathname.split("/");Ee(e[e.length-1],t.removeDirectoryIndex)&&(e=e.slice(0,e.length-1),n.pathname=e.slice(1).join("/")+"/")}if(xi[n.protocol]){const e=n.protocol+"//"+n.hostname,t=Lt.resolve(e,n.pathname);n.pathname=t.replace(e,"")}n.hostname&&(n.hostname=Mt.toUnicode(n.hostname).toLowerCase(),n.hostname=n.hostname.replace(/\.$/,""),t.stripWWW&&(n.hostname=n.hostname.replace(/^www\./,""))),"?"===n.search&&delete n.search;const s=ni(n.search);if(Array.isArray(t.removeQueryParameters))for(const e in s)Ee(e,t.removeQueryParameters)&&delete s[e];return t.sortQueryParameters&&(n.search=si(vi(s))),null!==n.search&&(n.search=decodeURIComponent(n.search)),e=Lt.format(n),(t.removeTrailingSlash||"/"===n.pathname)&&(e=e.replace(/\/$/,"")),r&&!t.normalizeProtocol&&(e=e.replace(/^http:\/\//,"//")),e};var _i={},Si=[200,203,204,206,300,301,404,405,410,414,501],Oi=[200,203,204,300,301,302,303,307,308,404,405,410,414,501],Ti={connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},Ri={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};_i=function(){function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=n.shared,o=n.cacheHeuristic,i=n.immutableMinTimeToLive,a=n.ignoreCargoCult,c=n._fromObject;if(xe(this,e),c)this._fromObject(c);else{if(!r||!r.headers)throw Error("Response headers missing");this._assertRequestHasHeaders(t),this._responseTime=this.now(),this._isShared=!1!==s,this._cacheHeuristic=void 0!==o?o:.1,this._immutableMinTtl=void 0!==i?i:864e5,this._status="status"in r?r.status:200,this._resHeaders=r.headers,this._rescc=_e(r.headers["cache-control"]),this._method="method"in t?t.method:"GET",this._url=t.url,this._host=t.headers.host,this._noAuthorization=!t.headers.authorization,this._reqHeaders=r.headers.vary?t.headers:null,this._reqcc=_e(t.headers["cache-control"]),a&&"pre-check"in this._rescc&&"post-check"in this._rescc&&(delete this._rescc["pre-check"],delete this._rescc["post-check"],delete this._rescc["no-cache"],delete this._rescc["no-store"],delete this._rescc["must-revalidate"],this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":Se(this._rescc)}),delete this._resHeaders.expires,delete this._resHeaders.pragma),!r.headers["cache-control"]&&/no-cache/.test(r.headers.pragma)&&(this._rescc["no-cache"]=!0)}}return e.prototype.now=()=>Date.now(),e.prototype.storable=function(){return!(this._reqcc["no-store"]||!("GET"===this._method||"HEAD"===this._method||"POST"===this._method&&this._hasExplicitExpiration())||-1===Oi.indexOf(this._status)||this._rescc["no-store"]||this._isShared&&this._rescc.private||this._isShared&&!this._noAuthorization&&!this._allowsStoringAuthenticated()||!(this._resHeaders.expires||this._rescc.public||this._rescc["max-age"]||this._rescc["s-maxage"]||-1!==Si.indexOf(this._status)))},e.prototype._hasExplicitExpiration=function(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires},e.prototype._assertRequestHasHeaders=e=>{if(!e||!e.headers)throw Error("Request headers missing")},e.prototype.satisfiesWithoutRevalidation=function(e){this._assertRequestHasHeaders(e);var t=_e(e.headers["cache-control"]);return!t["no-cache"]&&!/no-cache/.test(e.headers.pragma)&&(!t["max-age"]||this.age()<=t["max-age"])&&(!t["min-fresh"]||this.timeToLive()>=1e3*t["min-fresh"])&&!(this.stale()&&(!t["max-stale"]||this._rescc["must-revalidate"]||!0!==t["max-stale"]&&t["max-stale"]<=this.age()-this.maxAge()))&&this._requestMatches(e,!1)},e.prototype._requestMatches=function(e,t){return(!this._url||this._url===e.url)&&this._host===e.headers.host&&(!e.method||this._method===e.method||t&&"HEAD"===e.method)&&this._varyMatches(e)},e.prototype._allowsStoringAuthenticated=function(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]},e.prototype._varyMatches=function(e){if(!this._resHeaders.vary)return!0;if("*"===this._resHeaders.vary)return!1;for(var t=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/),r=Array.isArray(s=t),n=0,s=r?s:s[Symbol.iterator]();;){var o;if(r){if(n>=s.length)break;o=s[n++]}else{if((n=s.next()).done)break;o=n.value}if(e.headers[o]!==this._reqHeaders[o])return!1}return!0},e.prototype._copyWithoutHopByHopHeaders=e=>{var t={};for(var r in e)Ti[r]||(t[r]=e[r]);if(e.connection)for(var n=e.connection.trim().split(/\s*,\s*/),s=Array.isArray(i=n),o=0,i=s?i:i[Symbol.iterator]();;){var a;if(s){if(o>=i.length)break;a=i[o++]}else{if((o=i.next()).done)break;a=o.value}delete t[a]}if(t.warning){var c=t.warning.split(/,/).filter((e=>!/^\s*1[0-9][0-9]/.test(e)));c.length?t.warning=c.join(",").trim():delete t.warning}return t},e.prototype.responseHeaders=function(){var e=this._copyWithoutHopByHopHeaders(this._resHeaders),t=this.age();return t>86400&&!this._hasExplicitExpiration()&&this.maxAge()>86400&&(e.warning=(e.warning?e.warning+", ":"")+'113 - "rfc7234 5.5.4"'),e.age=""+Math.round(t),e},e.prototype.date=function(){var e=Date.parse(this._resHeaders.date),t=288e5;return Number.isNaN(e)||this._responseTime-t>e||e>this._responseTime+t?this._responseTime:e},e.prototype.age=function(){var e=Math.max(0,(this._responseTime-this.date())/1e3);if(this._resHeaders.age){var t=this._ageValue();t>e&&(e=t)}return e+(this.now()-this._responseTime)/1e3},e.prototype._ageValue=function(){var e=parseInt(this._resHeaders.age);return isFinite(e)?e:0},e.prototype.maxAge=function(){if(!this.storable()||this._rescc["no-cache"])return 0;if(this._isShared&&this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable)return 0;if("*"===this._resHeaders.vary)return 0;if(this._isShared){if(this._rescc["proxy-revalidate"])return 0;if(this._rescc["s-maxage"])return parseInt(this._rescc["s-maxage"],10)}if(this._rescc["max-age"])return parseInt(this._rescc["max-age"],10);var e=this._rescc.immutable?this._immutableMinTtl:0,t=this.date();if(this._resHeaders.expires){var r=Date.parse(this._resHeaders.expires);return Number.isNaN(r)||t>r?0:Math.max(e,(r-t)/1e3)}if(this._resHeaders["last-modified"]){var n=Date.parse(this._resHeaders["last-modified"]);if(isFinite(n)&&t>n)return Math.max(e,(t-n)/1e3*this._cacheHeuristic)}return e},e.prototype.timeToLive=function(){return 1e3*Math.max(0,this.maxAge()-this.age())},e.prototype.stale=function(){return this.maxAge()<=this.age()},e.fromObject=function(e){return new this(void 0,void 0,{_fromObject:e})},e.prototype._fromObject=function(e){if(this._responseTime)throw Error("Reinitialized");if(!e||1!==e.v)throw Error("Invalid serialization");this._responseTime=e.t,this._isShared=e.sh,this._cacheHeuristic=e.ch,this._immutableMinTtl=void 0!==e.imm?e.imm:864e5,this._status=e.st,this._resHeaders=e.resh,this._rescc=e.rescc,this._method=e.m,this._url=e.u,this._host=e.h,this._noAuthorization=e.a,this._reqHeaders=e.reqh,this._reqcc=e.reqcc},e.prototype.toObject=function(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}},e.prototype.revalidationHeaders=function(e){this._assertRequestHasHeaders(e);var t=this._copyWithoutHopByHopHeaders(e.headers);if(delete t["if-range"],!this._requestMatches(e,!0)||!this.storable())return delete t["if-none-match"],delete t["if-modified-since"],t;if(this._resHeaders.etag&&(t["if-none-match"]=t["if-none-match"]?`${t["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag),t["accept-ranges"]||t["if-match"]||t["if-unmodified-since"]||this._method&&"GET"!=this._method){if(delete t["if-modified-since"],t["if-none-match"]){var r=t["if-none-match"].split(/,/).filter((e=>!/^\s*W\//.test(e)));r.length?t["if-none-match"]=r.join(",").trim():delete t["if-none-match"]}}else this._resHeaders["last-modified"]&&!t["if-modified-since"]&&(t["if-modified-since"]=this._resHeaders["last-modified"]);return t},e.prototype.revalidatedPolicy=function(e,t){if(this._assertRequestHasHeaders(e),!t||!t.headers)throw Error("Response headers missing");var r=!1;if(void 0!==t.status&&304!=t.status?r=!1:t.headers.etag&&!/^\s*W\//.test(t.headers.etag)?r=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===t.headers.etag:this._resHeaders.etag&&t.headers.etag?r=this._resHeaders.etag.replace(/^\s*W\//,"")===t.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?r=this._resHeaders["last-modified"]===t.headers["last-modified"]:this._resHeaders.etag||this._resHeaders["last-modified"]||t.headers.etag||t.headers["last-modified"]||(r=!0),!r)return{policy:new this.constructor(e,t),modified:!0};var n={};for(var s in this._resHeaders)n[s]=s in t.headers&&!Ri[s]?t.headers[s]:this._resHeaders[s];var o=Object.assign({},t,{status:this._status,method:this._method,headers:n});return{policy:new this.constructor(e,o),modified:!1}},e}();var Ai,Ci,Ii=kt.Readable;Ai=class extends Ii{constructor(e,t,r,n){if("number"!=typeof e)throw new TypeError("Argument `statusCode` should be a number");if("object"!=typeof t)throw new TypeError("Argument `headers` should be an object");if(!(r instanceof Buffer))throw new TypeError("Argument `body` should be a buffer");if("string"!=typeof n)throw new TypeError("Argument `url` should be a string");super(),this.statusCode=e,this.headers=ro(t),this.body=r,this.url=n}_read(){this.push(this.body),this.push(null)}},Ci=e=>{for(var t={},r=Object.keys(Object(e)),n=0;r.length>n;n++)t[r[n].toLowerCase()]=e[r[n]];return t};var Pi,$i,ki=kt.PassThrough;const Ni=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];var Li,ji,Ui;Pi=(e,t)=>{const r=new Set(Object.keys(e).concat(Ni));for(const n of r)n in t||(t[n]="function"==typeof e[n]?e[n].bind(e):e[n])},$i=e=>{if(!e||!e.pipe)throw new TypeError("Parameter `response` must be a response stream.");const t=new ki;return Pi(e,t),e.pipe(t)},Li=function e(t){if(void 0===t)return t;if(t&&Buffer.isBuffer(t))return JSON.stringify(":base64:"+t.toString("base64"));if(t&&t.toJSON&&(t=t.toJSON()),t&&"object"==typeof t){var r="",n=Array.isArray(t);r=n?"[":"{";var s=!0;for(var o in t){var i="function"==typeof t[o]||!n&&void 0===t[o];Object.hasOwnProperty.call(t,o)&&!i&&(s||(r+=","),s=!1,n?r+=null==t[o]?"null":e(t[o]):void 0!==t[o]&&(r+=e(o)+":"+e(t[o])))}return r+(n?"]":"}")}return"string"==typeof t?JSON.stringify(/^:/.test(t)?":"+t:t):void 0===t?"null":JSON.stringify(t)},ji=e=>JSON.parse(e,((e,t)=>"string"==typeof t?/^:base64:/.test(t)?new Buffer(t.substring(8),"base64"):/^:/.test(t)?t.substring(1):t:t)),Ui=class extends Tt{constructor(e,t){if(super(),this.opts=Object.assign({namespace:"keyv"},"string"==typeof e?{uri:e}:e,t),!this.opts.store){const e=Object.assign({},this.opts);this.opts.store=(e=>{const t={redis:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql"};if(e.adapter||e.uri){const r=e.adapter||/^[^:]*/.exec(e.uri)[0];return new(require(t[r]))(e)}return new Map})(e)}"function"==typeof this.opts.store.on&&this.opts.store.on("error",(e=>this.emit("error",e))),this.opts.store.namespace=this.opts.namespace}_getKeyPrefix(e){return`${this.opts.namespace}:${e}`}get(e){e=this._getKeyPrefix(e);const t=this.opts.store;return Promise.resolve().then((()=>t.get(e))).then((t=>{if(void 0!==(t="string"==typeof t?ji(t):t)){if("number"!=typeof t.expires||Date.now()<=t.expires)return t.value;this.delete(e)}}))}set(e,t,r){e=this._getKeyPrefix(e),void 0===r&&(r=this.opts.ttl),0===r&&(r=void 0);const n=this.opts.store;return Promise.resolve().then((()=>{const s="number"==typeof r?Date.now()+r:null;return n.set(e,Li(t={value:t,expires:s}),r)})).then((()=>!0))}delete(e){e=this._getKeyPrefix(e);const t=this.opts.store;return Promise.resolve().then((()=>t.delete(e)))}clear(){const e=this.opts.store;return Promise.resolve().then((()=>e.clear()))}};class Di{constructor(e,t){if("function"!=typeof e)throw new TypeError("Parameter `request` must be a function");return this.cache=new Ui({uri:"string"==typeof t&&t,store:"string"!=typeof t&&t,namespace:"cacheable-request"}),this.createCacheableRequest(e)}createCacheableRequest(e){return(t,r)=>{"string"==typeof t&&(t=Lt.parse(t)),(t=Object.assign({headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1},t)).headers=Ci(t.headers);const n=new Tt,s=ri(Lt.format(t)),o=`${t.method}:${s}`;let i=!1,a=!1;const c=t=>{a=!0;const s=e=>{if(i){const r=_i.fromObject(i.cachePolicy).revalidatedPolicy(t,e);if(!r.modified){const t=r.policy.responseHeaders();(e=new Ai(e.statusCode,t,i.body,i.url)).cachePolicy=r.policy,e.fromCache=!0}}let s;e.fromCache||(e.cachePolicy=new _i(t,e),e.fromCache=!1),t.cache&&e.cachePolicy.storable()?(s=$i(e),so.buffer(e).then((r=>{const n={cachePolicy:e.cachePolicy.toObject(),url:e.url,statusCode:e.fromCache?i.statusCode:e.statusCode,body:r},s=t.strictTtl?e.cachePolicy.timeToLive():void 0;return this.cache.set(o,n,s)})).catch((e=>n.emit("error",new Di.CacheError(e))))):t.cache&&i&&this.cache.delete(o).catch((e=>n.emit("error",new Di.CacheError(e)))),n.emit("response",s||e),"function"==typeof r&&r(s||e)};try{const r=e(t,s);n.emit("request",r)}catch(e){n.emit("error",new Di.RequestError(e))}};return this.cache.on("error",(e=>n.emit("error",new Di.CacheError(e)))),(e=>Promise.resolve().then((()=>e.cache?this.cache.get(o):void 0)).then((t=>{if(void 0===t)return c(e);const s=_i.fromObject(t.cachePolicy);if(s.satisfiesWithoutRevalidation(e)){const e=s.responseHeaders(),o=new Ai(t.statusCode,e,t.body,t.url);o.cachePolicy=s,o.fromCache=!0,n.emit("response",o),"function"==typeof r&&r(o)}else i=t,e.headers=s.revalidationHeaders(e),c(e)})))(t).catch((e=>{t.automaticFailover&&!a&&c(t),n.emit("error",new Di.CacheError(e))})),n}}}Di.RequestError=class extends Error{constructor(e){super(e.message),this.name="RequestError",Object.assign(this,e)}},Di.CacheError=class extends Error{constructor(e){super(e.message),this.name="CacheError",Object.assign(this,e)}},li=Di;var Mi,Fi={},Bi=Gt("fxp1R").Readable,Hi=Gt("8MQIj");Fi=Oe,Oe.ctor=Te,Oe.obj=(e,t)=>(("function"==typeof e||Array.isArray(e))&&(t=e,e={}),(e=Ae(e)).objectMode=!0,e.highWaterMark=16,Oe(e,t));var qi,Gi=Te();qi=e=>e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch,(Mi=e=>{function t(t){r=qi(e=t)?e:null;const s=!r&&e[Symbol.iterator]&&"string"!=typeof e&&!Buffer.isBuffer(e);n=s?e[Symbol.iterator]():null}let r,n;return Array.isArray(e)&&(e=e.slice()),t(e),Fi((function s(o,i){if(r)return void r.then(t).then((()=>s.call(this,o,i)),i);if(n){const e=n.next();return void setImmediate(i,null,e.done?null:e.value)}if(0===e.length)return void setImmediate(i,null,null);const a=e.slice(0,o);e=e.slice(o),setImmediate(i,null,a)}))}).obj=e=>{function t(t){r=qi(e=t)?e:null,n=!r&&e[Symbol.iterator]?e[Symbol.iterator]():null}let r,n;return Array.isArray(e)&&(e=e.slice()),t(e),Fi.obj((function s(o,i){if(r)r.then(t).then((()=>s.call(this,o,i)),i);else if(n){const e=n.next();setImmediate(i,null,e.done?null:e.value)}else this.push(e),setImmediate(i,null,null)}))};var zi={};Object.defineProperty(zi,"__esModule",{value:!0});const Vi={}.toString,Wi=e=>t=>typeof t===e,Yi=e=>Vi.call(e).slice(8,-1)||null,Xi=e=>t=>Yi(t)===e;var Ki;(e=>{const t=e=>"object"==typeof e;e.undefined=Wi("undefined"),e.string=Wi("string"),e.number=Wi("number"),e.function_=Wi("function"),e.null_=e=>null===e,e.class_=t=>e.function_(t)&&(""+t).startsWith("class "),e.boolean=e=>!0===e||!1===e,e.symbol=Wi("symbol"),e.array=Array.isArray,e.buffer=Buffer.isBuffer,e.nullOrUndefined=t=>e.null_(t)||e.undefined(t),e.object=r=>!e.nullOrUndefined(r)&&(e.function_(r)||t(r)),e.iterable=t=>!e.nullOrUndefined(t)&&e.function_(t[Symbol.iterator]),e.generator=t=>e.iterable(t)&&e.function_(t.next)&&e.function_(t.throw),e.nativePromise=Xi("Promise"),e.promise=r=>e.nativePromise(r)||(r=>!e.null_(r)&&t(r)&&e.function_(r.then)&&e.function_(r.catch))(r);const r=t=>r=>e.function_(r)&&e.function_(r.constructor)&&r.constructor.name===t;e.generatorFunction=r("GeneratorFunction"),e.asyncFunction=r("AsyncFunction"),e.boundFunction=t=>e.function_(t)&&!t.hasOwnProperty("prototype"),e.regExp=Xi("RegExp"),e.date=Xi("Date"),e.error=Xi("Error"),e.map=Xi("Map"),e.set=Xi("Set"),e.weakMap=Xi("WeakMap"),e.weakSet=Xi("WeakSet"),e.int8Array=Xi("Int8Array"),e.uint8Array=Xi("Uint8Array"),e.uint8ClampedArray=Xi("Uint8ClampedArray"),e.int16Array=Xi("Int16Array"),e.uint16Array=Xi("Uint16Array"),e.int32Array=Xi("Int32Array"),e.uint32Array=Xi("Uint32Array"),e.float32Array=Xi("Float32Array"),e.float64Array=Xi("Float64Array"),e.arrayBuffer=Xi("ArrayBuffer"),e.sharedArrayBuffer=Xi("SharedArrayBuffer"),e.dataView=Xi("DataView"),e.directInstanceOf=(t,r)=>e.object(t)&&e.object(r)&&Object.getPrototypeOf(t)===r.prototype,e.truthy=e=>!!e,e.falsy=e=>!e,e.nan=e=>Number.isNaN(e);const n=new Set(["undefined","string","number","boolean","symbol"]);e.primitive=t=>e.null_(t)||n.has(typeof t),e.integer=e=>Number.isInteger(e),e.safeInteger=e=>Number.isSafeInteger(e),e.plainObject=e=>{let t;return"Object"===Yi(e)&&(t=Object.getPrototypeOf(e),null===t||t===Object.getPrototypeOf({}))};const s=new Set(["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"]);e.typedArray=e=>{const t=Yi(e);return null!==t&&s.has(t)},e.arrayLike=t=>!e.nullOrUndefined(t)&&!e.function_(t)&&(t=>e.safeInteger(t)&&t>-1)(t.length),e.inRange=(t,r)=>{if(e.number(r))return t>=Math.min(0,r)&&Math.max(r,0)>=t;if(e.array(r)&&2===r.length)return t>=Math.min.apply(null,r)&&t<=Math.max.apply(null,r);throw new TypeError("Invalid range: "+At.inspect(r))};const o=["innerHTML","ownerDocument","style","attributes","nodeValue"];e.domElement=t=>e.object(t)&&1===t.nodeType&&e.string(t.nodeName)&&!e.plainObject(t)&&o.every((e=>e in t)),e.nodeStream=r=>!e.nullOrUndefined(r)&&t(r)&&e.function_(r.pipe),e.infinite=e=>e===1/0||e===-1/0;const i=t=>r=>e.integer(r)&&Math.abs(r%2)===t;e.even=i(0),e.odd=i(1),e.empty=t=>e.falsy(t)||(t=>(e.string(t)||e.array(t))&&0===t.length)(t)||(t=>!e.map(t)&&!e.set(t)&&e.object(t)&&0===Object.keys(t).length)(t)||(t=>(e.map(t)||e.set(t))&&0===t.size)(t),e.emptyOrWhitespace=t=>e.empty(t)||(t=>e.string(t)&&!1===/\S/.test(t))(t);const a=(t,r,n)=>{const s=[].slice.call(n,1);if(!1===e.function_(r))throw new TypeError("Invalid predicate: "+At.inspect(r));if(0===s.length)throw new TypeError("Invalid number of values");return t.call(s,r)};e.any=function(e){return a([].some,e,arguments)},e.all=function(e){return a([].every,e,arguments)}})(Ce||(Ce={})),Object.defineProperties(Ce,{class:{value:Ce.class_},function:{value:Ce.function_},null:{value:Ce.null_}}),zi.default=Ce,(zi=Ce).default=Ce,Ki=(e,t)=>{if("string"!=typeof e)throw new TypeError(`Expected \`url\` to be of type \`string\`, got \`${typeof e}\` instead.`);const r=mi(e,Object.assign({https:!0},t));return Lt.parse(r)};var Ji={};Ji=e=>{var t={protocol:e.protocol,hostname:e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:`${e.pathname}${e.search}`,href:e.href};return""!==e.port&&(t.port=+e.port),(e.username||e.password)&&(t.auth=`${e.username}:${e.password}`),t};var Qi,Zi=kt.PassThrough;Qi=e=>{if(-1===["gzip","deflate"].indexOf(e.headers["content-encoding"]))return e;const t=Ut.createUnzip(),r=new Zi;return Pi(e,r),t.on("error",(e=>{"Z_BUF_ERROR"!==e.code?r.emit("error",e):r.end()})),e.pipe(t).pipe(r),r};var ea,ta,ra={};ea=Gt("2r32K")&&"symbol"==typeof Symbol.toStringTag,ta=e=>"object"==typeof e&&null!==e;const na={}.toString,sa=(e,t)=>!!ta(e)&&(!ea&&"[object URL]"===na.call(e)||"href"in e&&"protocol"in e&&"username"in e&&"password"in e&&"hostname"in e&&"port"in e&&"host"in e&&"pathname"in e&&"search"in e&&"hash"in e&&!(!0!==t&&!ta(e.searchParams)));sa.lenient=e=>sa(e,!0),ra=sa;var oa,ia,aa,ca={};class la extends Error{constructor(){super("Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}}class ua{static fn(e){return function(){const t=[].slice.apply(arguments);return new ua(((r,n,s)=>{t.push(s),e.apply(null,t).then(r,n)}))}}constructor(e){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._promise=new Promise(((t,r)=>(this._reject=r,e((e=>{this._isPending=!1,t(e)}),(e=>{this._isPending=!1,r(e)}),(e=>{this._cancelHandlers.push(e)})))))}then(e,t){return this._promise.then(e,t)}catch(e){return this._promise.catch(e)}finally(e){return this._promise.finally(e)}cancel(){if(this._isPending&&!this._isCanceled){if(this._cancelHandlers.length>0)try{for(const e of this._cancelHandlers)e()}catch(e){this._reject(e)}this._isCanceled=!0,this._reject(new la)}}get isCanceled(){return this._isCanceled}}Object.setPrototypeOf(ua.prototype,Promise.prototype),(ca=ua).CancelError=la,ia=(e,t)=>(t=t||(()=>{}),e.then((e=>new Promise((e=>{e(t())})).then((()=>e))),(e=>new Promise((e=>{e(t())})).then((()=>{throw e})))));class da extends Error{constructor(e){super(e),this.name="TimeoutError"}}(oa=(e,t,r)=>new Promise(((n,s)=>{if("number"!=typeof t||0>t)throw new TypeError("Expected `ms` to be a positive number");const o=setTimeout((()=>{if("function"==typeof r){try{n(r())}catch(o){s(o)}return}const o=r instanceof Error?r:new da("string"==typeof r?r:`Promise timed out after ${t} milliseconds`);"function"==typeof e.cancel&&e.cancel(),s(o)}),t);ia(e.then(n,s),(()=>{clearTimeout(o)}))}))).TimeoutError=da;const ha=(e,t)=>function(){const r=t.promiseModule,n=Array(arguments.length);for(let e=0;arguments.length>e;e++)n[e]=arguments[e];return new r(((r,s)=>{n.push(t.errorFirst?function(e,n){if(t.multiArgs){const t=Array(arguments.length-1);for(let e=1;arguments.length>e;e++)t[e-1]=arguments[e];e?(t.unshift(e),s(t)):r(t)}else e?s(e):r(n)}:function(e){if(t.multiArgs){const e=Array(arguments.length-1);for(let t=0;arguments.length>t;t++)e[t]=arguments[t];r(e)}else r(e)}),e.apply(this,n)}))};aa=(e,t)=>{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},t);const r=e=>{const r=t=>"string"==typeof t?e===t:t.test(e);return t.include?t.include.some(r):!t.exclude.some(r)};let n;n="function"==typeof e?function(){return t.excludeMain?e.apply(this,arguments):ha(e,t).apply(this,arguments)}:Object.create(Object.getPrototypeOf(e));for(const s in e){const o=e[s];n[s]="function"==typeof o&&r(s)?ha(o,t):o}return n};var pa,fa=fo.Buffer;pa=JSON.parse('{"name":"got","version":"8.3.2","description":"Simplified HTTP requests","license":"MIT","repository":"sindresorhus/got","maintainers":[{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},{"name":"Vsevolod Strukchinsky","email":"floatdrop@gmail.com","url":"github.com/floatdrop"},{"name":"Alexander Tesfamichael","email":"alex.tesfamichael@gmail.com","url":"alextes.me"}],"engines":{"node":">=4"},"scripts":{"test":"xo && nyc ava","coveralls":"nyc report --reporter=text-lcov | coveralls"},"files":["index.js","errors.js"],"keywords":["http","https","get","got","url","uri","request","util","utility","simple","curl","wget","fetch","net","network","electron"],"dependencies":{"@sindresorhus/is":"^0.7.0","cacheable-request":"^2.1.1","decompress-response":"^3.3.0","duplexer3":"^0.1.4","get-stream":"^3.0.0","into-stream":"^3.1.0","is-retry-allowed":"^1.1.0","isurl":"^1.0.0-alpha5","lowercase-keys":"^1.0.0","mimic-response":"^1.0.0","p-cancelable":"^0.4.0","p-timeout":"^2.0.1","pify":"^3.0.0","safe-buffer":"^5.1.1","timed-out":"^4.0.1","url-parse-lax":"^3.0.0","url-to-options":"^1.0.1"},"devDependencies":{"ava":"^0.25.0","coveralls":"^3.0.0","form-data":"^2.1.1","get-port":"^3.0.0","nyc":"^11.0.2","p-event":"^1.3.0","pem":"^1.4.4","proxyquire":"^1.8.0","sinon":"^4.0.0","slow-stream":"0.0.4","tempfile":"^2.0.0","tempy":"^0.2.1","universal-url":"1.0.0-alpha","xo":"^0.20.0"},"ava":{"concurrency":4},"browser":{"decompress-response":false,"electron":false}}');var ma,ga,ya,va,ba,wa,Ea,xa,_a,Sa={};e(Sa,"GotError",(()=>ma),(e=>ma=e)),e(Sa,"CacheError",(()=>ga),(e=>ga=e)),e(Sa,"RequestError",(()=>ya),(e=>ya=e)),e(Sa,"ReadError",(()=>va),(e=>va=e)),e(Sa,"ParseError",(()=>ba),(e=>ba=e)),e(Sa,"HTTPError",(()=>wa),(e=>wa=e)),e(Sa,"MaxRedirectsError",(()=>Ea),(e=>Ea=e)),e(Sa,"UnsupportedProtocolError",(()=>xa),(e=>xa=e)),e(Sa,"CancelError",(()=>_a),(e=>_a=e));class Oa extends Error{constructor(e,t,r){super(e),Error.captureStackTrace(this,this.constructor),this.name="GotError",zi.undefined(t.code)||(this.code=t.code),Object.assign(this,{host:r.host,hostname:r.hostname,method:r.method,path:r.path,protocol:r.protocol,url:r.href})}}ma=Oa,ga=class extends Oa{constructor(e,t){super(e.message,e,t),this.name="CacheError"}},ya=class extends Oa{constructor(e,t){super(e.message,e,t),this.name="RequestError"}},va=class extends Oa{constructor(e,t){super(e.message,e,t),this.name="ReadError"}},ba=class extends Oa{constructor(e,t,r,n){super(`${e.message} in "${Lt.format(r)}": \n${n.slice(0,77)}...`,e,r),this.name="ParseError",this.statusCode=t,this.statusMessage=_t.STATUS_CODES[this.statusCode]}},wa=class extends Oa{constructor(e,t,r,n){super(`Response code ${e} (${t=t?t.replace(/\r?\n/g," ").trim():_t.STATUS_CODES[e]})`,{},n),this.name="HTTPError",this.statusCode=e,this.statusMessage=t,this.headers=r}},Ea=class extends Oa{constructor(e,t,r){super("Redirected 10 times. Aborting.",{},r),this.name="MaxRedirectsError",this.statusCode=e,this.statusMessage=_t.STATUS_CODES[this.statusCode],this.redirectUrls=t}},xa=class extends Oa{constructor(e){super(`Unsupported protocol "${e.protocol}"`,{},e),this.name="UnsupportedProtocolError"}},_a=ca.CancelError;const Ta=new Set([300,301,302,303,304,305,307,308]),Ra=new Set([300,303,307,308]),Aa=e=>zi.nodeStream(e)&&zi.function(e.getBoundary);ke.stream=(e,t)=>Pe($e(e,t));const Ca=["get","post","put","patch","head","delete"];for(const e of Ca)ke[e]=(t,r)=>ke(t,Object.assign({},r,{method:e})),ke.stream[e]=(t,r)=>ke.stream(t,Object.assign({},r,{method:e}));var Ia,Pa;Object.assign(ke,Sa),ii=ke;const $a="(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])){3}",ka=`\n(\n(?:[0-9a-fA-F]{1,4}:){7}(?:[0-9a-fA-F]{1,4}|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:[0-9a-fA-F]{1,4}:){6}(?:${$a}|:[0-9a-fA-F]{1,4}|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:[0-9a-fA-F]{1,4}:){5}(?::${$a}|(:[0-9a-fA-F]{1,4}){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:[0-9a-fA-F]{1,4}:){4}(?:(:[0-9a-fA-F]{1,4}){0,1}:${$a}|(:[0-9a-fA-F]{1,4}){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:[0-9a-fA-F]{1,4}:){3}(?:(:[0-9a-fA-F]{1,4}){0,2}:${$a}|(:[0-9a-fA-F]{1,4}){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:[0-9a-fA-F]{1,4}:){2}(?:(:[0-9a-fA-F]{1,4}){0,3}:${$a}|(:[0-9a-fA-F]{1,4}){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:[0-9a-fA-F]{1,4}:){1}(?:(:[0-9a-fA-F]{1,4}){0,4}:${$a}|(:[0-9a-fA-F]{1,4}){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::((?::[0-9a-fA-F]{1,4}){0,5}:${$a}|(?::[0-9a-fA-F]{1,4}){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(%[0-9a-zA-Z]{1,})? // %eth0 %1\n`.replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),Na=Pa=e=>e&&e.exact?RegExp(`(?:^${$a}$)|(?:^${ka}$)`):RegExp(`(?:${$a})|(?:${ka})`,"g");Na.v4=e=>e&&e.exact?RegExp(`^${$a}$`):RegExp($a,"g"),Na.v6=e=>e&&e.exact?RegExp(`^${ka}$`):RegExp(ka,"g");const La=Ia=e=>Pa({exact:!0}).test(e);La.v4=e=>Pa.v4({exact:!0}).test(e),La.v6=e=>Pa.v6({exact:!0}).test(e);const ja={timeout:5e3,https:!1},Ua={v4:{dnsServer:"208.67.222.222",dnsQuestion:{name:"myip.opendns.com",type:"A"},httpsUrl:"https://ipv4.icanhazip.com/"},v6:{dnsServer:"2620:0:ccc::2",dnsQuestion:{name:"myip.opendns.com",type:"AAAA"},httpsUrl:"https://ipv6.icanhazip.com/"}},Da=(e,t)=>{const r=Ua[e],n=Io({retries:0,socket:Dt.createSocket("v6"===e?"udp6":"udp4"),timeout:t.timeout}),s=aa(n.query.bind(n))({questions:[r.dnsQuestion]},53,r.dnsServer).then((t=>{n.destroy();const r=(t.answers[0]&&t.answers[0].data||"").trim();if(!r||!Ia[e](r))throw Error("Couldn't find your IP");return r})).catch((e=>{throw n.destroy(),e}));return s.cancel=()=>{n.cancel()},s},Ma=(e,t)=>{const r=ii(Ua[e].httpsUrl,{family:"v6"===e?6:4,retries:0,timeout:t.timeout}),n=r.then((e=>{const t=(e.body||"").trim();if(!t)throw Error("Couldn't find your IP");return t})).catch((e=>{if(!(e instanceof ii.CancelError))throw e}));return n.cancel=r.cancel,n};wo=e=>(e=Object.assign({},ja,e)).https?Ma("v4",e):Da("v4",e),Eo=e=>(e=Object.assign({},ja,e)).https?Ma("v6",e):Da("v6",e);var Fa,Ba,Ha,qa,Ga={};Ha=(e,t,r)=>{const n="object"==typeof r?Object.assign({indent:" "},r):{indent:r||" "};if(t=void 0===t?1:t,"string"!=typeof e)throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if("number"!=typeof t)throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if("string"!=typeof n.indent)throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n.indent}\``);return 0===t?e:e.replace(n.includeEmptyLines?/^/gm:/^(?!\s*$)/gm,n.indent.repeat(t))};const za=/\s+at.*(?:\(|\s)(.*)\)?/,Va=/^(?:(?:(?:node|(?:internal\/[\w/]*|.*node_modules\/babel-polyfill\/.*)?\w+)\.js:\d+:\d+)|native)/,Wa=wt.homedir();qa=(e,t)=>(t=Object.assign({pretty:!1},t),e.replace(/\\/g,"/").split("\n").filter((e=>{const t=e.match(za);if(null===t||!t[1])return!0;const r=t[1];return!r.includes(".app/Contents/Resources/electron.asar")&&!r.includes(".app/Contents/Resources/default_app.asar")&&!Va.test(r)})).filter((e=>""!==e.trim())).map((e=>t.pretty?e.replace(za,((e,t)=>e.replace(t,t.replace(Wa,"~")))):e)).join("\n"));class Ya extends Error{constructor(e){if(!e[Symbol.iterator]||"string"==typeof e)throw new TypeError("Expected input to be iterable, got "+typeof e);let t=(e=Array.from(e).map((e=>e instanceof Error?e:Error(e)))).map((e=>qa(e.stack).replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g,""))).join("\n");t="\n"+Ha(t,4),super(t),this.name=this.constructor.name,Object.defineProperty(this,"_errors",{value:e})}*[Symbol.iterator](){for(const e of this._errors)yield e}}var Xa;(Fa=(e,t)=>Ba(e,Object.assign({},t,{count:1})).then((e=>e[0]))).AggregateError=(Ba=(e,t)=>new Promise(((r,n)=>{if(t=Object.assign({},t),!Number.isFinite(t.count))throw new TypeError("Expected a finite number, got "+typeof t.count);const s=[],o=[];let i=0,a=1-t.count,c=1-t.count,l=!1;const u=e=>{l||("function"!=typeof t.filter||t.filter(e)?(s.push(e),0==--t.count&&(l=!0,r(s))):0==--c&&(l=!0,n(new RangeError("Not enough values pass the `filter` option"))))},d=e=>{l||(o.push(e),0==--a&&(l=!0,n(new Ga(o))))};for(const t of e)a++,c++,i++,Promise.resolve(t).then(u,d);if(t.count>i)throw new RangeError(`Expected input to contain at least ${t.count} items, but contains ${i} items`)}))).AggregateError=Ga=Ya;class Ka extends Error{constructor(e){super(e),this.name="TimeoutError"}}(Xa=(e,t,r)=>new Promise(((n,s)=>{if("number"!=typeof t||0>t)throw new TypeError("Expected `ms` to be a positive number");const o=setTimeout((()=>{if("function"==typeof r)return void n(r());const e=r instanceof Error?r:new Ka("string"==typeof r?r:`Promise timed out after ${t} milliseconds`);s(e)}),t);ia(e.then(n,s),(()=>{clearTimeout(o)}))}))).TimeoutError=Ka;const Ja={timeout:5e3,version:"v4"};var Qa;let Za;bo=e=>{e=Object.assign({},Ja,e);const t=Fa([xo[e.version]().then((()=>!0)),xo[e.version]({https:!0}).then((()=>!0)),Ne(e)]);return Xa(t,e.timeout).catch((()=>!1))},Qa=JSON.parse('{"name":"is-link-working","version":"2.2.0","description":"Checks if a given link is working or broken","main":"index.js","scripts":{"lint":"eslint \'{*.js,test/**/*.js}\' --ignore-pattern=test/coverage","test":"mocha --bail","test-cov":"istanbul cover --dir test/coverage _mocha -- --bail && echo Coverage lies in test/coverage/lcov-report/index.html","test-travis":"istanbul cover _mocha --report lcovonly -- --bail && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"},"bugs":{"url":"https://github.com/IndigoUnited/node-is-link-working/issues/"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/node-is-link-working.git"},"keywords":["url","link","uri","working","check","alive","ok","broken"],"author":"IndigoUnited <hello@indigounited.com> (http://indigounited.com)","license":"MIT","dependencies":{"got":"^6.3.0","is-online":"^7.0.0"},"devDependencies":{"@satazor/eslint-config":"^3.0.0","chai":"^3.4.1","coveralls":"^2.11.6","eslint":"^3.0.0","istanbul":"^0.4.1","mocha":"^3.0.2","mock-require":"^2.0.0","nock":"^9.0.0","promise-delay":"^2.1.0"},"engines":{"node":">=4.0.0"}}');class ec extends Ws{_write(e,t,r){r()}}(Vs=(e,t)=>{const r={timeout:(t=Object.assign({checkConnectivity:!1,followRedirect:!0,timeout:15e3,retries:3,agent:null},t)).timeout,followRedirect:t.followRedirect,retries:t.retries,agent:t.agent,headers:{"user-agent":`is-link-working/${Qa.version} (https://github.com/IndigoUnited/is-link-working)`}};return((e,t)=>Ys.head(e,t).then((()=>!0)))(e,r).catch((()=>((e,t,r)=>new Promise(((n,s)=>{let o,i;try{o=Ys.stream(e,r)}catch(e){return n(!1)}o.on("request",(e=>{i=e})).on("response",(e=>{e.on("error",(()=>{})),setImmediate((()=>i.abort())),n(!0)})).on("error",((e,r,o)=>{return o&&o.on("error",(()=>{})),setImmediate((()=>i.abort())),e instanceof Ys.MaxRedirectsError||e instanceof Ys.HTTPError?n(!1):e instanceof Ys.RequestError?n(!!t.checkConnectivity&&(a=e,(Za&&Za.cachedAt>Date.now()-Vs.connectivityCacheDuration||(Za=new Promise(((e,t)=>{bo(((r,n)=>{r?(delete Za.promise,t(r)):e(n)}))})),Za.cachedAt=Date.now()),Za).catch((()=>{throw a})).then((e=>{if(!e)throw a;return!1})))):void s(e);var a})).pipe(new ec)})))(e,t,r)))}).connectivityCacheDuration=5e3;var tc=Gt("howpO"),rc=(zs=Gt("1YYsi"),Gt("fVzwP"));Ps=Gt("ca0ts"),Yn=Gt("ditiY");const nc=/v?(\d\S*)/,sc={llvm:"13.0.0",clangtidy:"13.0.0",clangformat:"13.0.0",ninja:"1.11.0",cmake:"3.23.2",gcovr:"5.1",conan:"1.50.0",meson:"0.63.0",kcov:"40",task:"3.14.0",doxygen:A()?"1.9.3-1":"1.9.4",gcc:"11"},oc={llvm:{22:"13.0.0-ubuntu-20.04",20:"13.0.0-ubuntu-20.04",18:"13.0.1-ubuntu-18.04",16:"13.0.0-ubuntu-16.04",14:"13.0.0-ubuntu-16.04"},clangtidy:{22:"13.0.0-ubuntu-20.04",20:"13.0.0-ubuntu-20.04",18:"13.0.1-ubuntu-18.04",16:"13.0.0-ubuntu-16.04",14:"13.0.0-ubuntu-16.04"},clangformat:{22:"13.0.0-ubuntu-20.04",20:"13.0.0-ubuntu-20.04",18:"13.0.1-ubuntu-18.04",16:"13.0.0-ubuntu-16.04",14:"13.0.0-ubuntu-16.04"},gcovr:{20:"5.1",18:"5.0"},meson:{20:"0.63.0",18:"0.61.4"},doxygen:{20:"1.9.4"},nala:{22:"",21:"legacy",20:"legacy",18:"legacy",16:"legacy",14:"legacy"},kcov:{22:"40",20:"40-binary",18:"40",16:"40",14:"40"}};let ic,ac,cc=!1;Yn=Gt("ditiY"),Gs=Gt("fwsB7");var lc=Gt("fB2B7"),uc=(Ps=Gt("ca0ts"),Yn=Gt("ditiY"),zt=Gt("04fde"),Yn=Gt("ditiY"),Vn=Gt("gmbrv"),lc=Gt("fB2B7"),zs=Gt("1YYsi"),Yn=Gt("ditiY"),Vn=Gt("gmbrv"),Et.resolve(__dirname,"../src/gcc"));const dc={12:{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-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.4-10.0.0-msvcrt-r2",fileSuffix:"12.1.0-mingw-w64msvcrt-10.0.0-r2"},11:{releaseName:"11.3.0-14.0.3-10.0.0-ucrt-r3",fileSuffix:"11.3.0-mingw-w64ucrt-10.0.0-r3"},"11.3.0-ucrt":{releaseName:"11.3.0-14.0.3-10.0.0-ucrt-r3",fileSuffix:"11.3.0-mingw-w64ucrt-10.0.0-r3"},"11.3.0-msvcrt":{releaseName:"11.3.0-14.0.3-10.0.0-msvcrt-r3",fileSuffix:"11.3.0-mingw-w64msvcrt-10.0.0-r3"},"11.2.0-ucrt":{releaseName:"11.2.0-9.0.0-ucrt-r5",fileSuffix:"11.2.0-mingw-w64ucrt-9.0.0-r5"},"11.2.0-msvcrt":{releaseName:"11.2.0-9.0.0-msvcrt-r5",fileSuffix:"11.2.0-mingw-w64msvcrt-9.0.0-r5"},10:{releaseName:"10.3.0-12.0.0-9.0.0-r2",fileSuffix:"10.3.0-llvm-12.0.0-mingw-w64-9.0.0-r2"},"10.3.0":{releaseName:"10.3.0-12.0.0-9.0.0-r2",fileSuffix:"10.3.0-llvm-12.0.0-mingw-w64-9.0.0-r2"},"10.2.0":{releaseName:"10.2.0-7.0.0-r4",fileSuffix:"10.2.0-llvm-10.0.1-mingw-w64-7.0.0-r4"},9:{releaseName:"9.4.0-9.0.0-r1",fileSuffix:"9.4.0-mingw-w64-9.0.0-r1"},"9.4.0":{releaseName:"9.4.0-9.0.0-r1",fileSuffix:"9.4.0-mingw-w64-9.0.0-r1"}};var hc=Et.resolve(__dirname,"../src/llvm");const pc=(e=>{const t=new Set(e);for(const r of e)t.add(/^\d+/.exec(r)[0]),t.add(/^\d+\.\d+/.exec(r)[0]);return t})(["3.5.0","3.5.1","3.5.2","3.6.0","3.6.1","3.6.2","3.7.0","3.7.1","3.8.0","3.8.1","3.9.0","3.9.1","4.0.0","4.0.1","5.0.0","5.0.1","5.0.2","6.0.0","6.0.1","7.0.0","7.0.1","7.1.0","8.0.0","8.0.1","9.0.0","9.0.1","10.0.0","10.0.1","11.0.0","11.0.1","11.1.0","12.0.0","12.0.1","13.0.0","13.0.1","14.0.0","14.0.1","14.0.2","14.0.3","14.0.4","14.0.5","14.0.6"]),fc=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"]),mc=new Map,gc={"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"},yc=new Set(["10.0.1"]);let vc=!1;var bc,wc,Ec,xc={},_c=xc&&xc.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((s,o)=>{function i(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())}))),Sc=xc&&xc.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t});Object.defineProperty(xc,"__esModule",{value:!0});var Oc={},Tc=Oc&&Oc.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t});Object.defineProperty(Oc,"__esModule",{value:!0});const Rc=Tc(wt);var Ac={};Object.defineProperty(Ac,"__esModule",{value:!0}),Ac.toCommandValue=e=>null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e),Oc.issueCommand=Qe,Oc.issue=(e,t="")=>{Qe(e,{},t)};class Cc{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r}toString(){let e="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(const n in this.properties)if(this.properties.hasOwnProperty(n)){const s=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${t=s,Ac.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}var t;return e+="::"+(e=>Ac.toCommandValue(this.message).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A"))(),e}}var Ic={},Pc=Ic&&Ic.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t});Object.defineProperty(Ic,"__esModule",{value:!0});const $c=Pc(xt),kc=Pc(wt);Ic.issueCommand=(e,t)=>{const r=process.env["GITHUB_"+e];if(!r)throw Error("Unable to find environment variable for file command "+e);if(!$c.existsSync(r))throw Error("Missing file at path: "+r);$c.appendFileSync(r,`${Ac.toCommandValue(t)}${kc.EOL}`,{encoding:"utf8"})};const Nc=Sc(wt),Lc=Sc(Et);var jc,Uc;(Uc=jc=xc.ExitCode||(xc.ExitCode={}))[Uc.Success=0]="Success",Uc[Uc.Failure=1]="Failure",xc.exportVariable=(e,t)=>{const r=Ac.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV){const t="_GitHubActionsFileCommandDelimeter_";Ic.issueCommand("ENV",`${e}<<${t}${Nc.EOL}${r}${Nc.EOL}${t}`)}else Oc.issueCommand("set-env",{name:e},r)},xc.setSecret=e=>{Oc.issueCommand("add-mask",{},e)},xc.addPath=e=>{process.env.GITHUB_PATH?Ic.issueCommand("PATH",e):Oc.issueCommand("add-path",{},e),process.env.PATH=`${e}${Lc.delimiter}${process.env.PATH}`},xc.getInput=(e,t)=>{const r=process.env["INPUT_"+e.replace(/ /g,"_").toUpperCase()]||"";if(t&&t.required&&!r)throw Error("Input required and not supplied: "+e);return r.trim()},xc.setOutput=(e,t)=>{Oc.issueCommand("set-output",{name:e},t)},xc.setCommandEcho=e=>{Oc.issue("echo",e?"on":"off")},xc.setFailed=e=>{process.exitCode=jc.Failure,Ze(e)},xc.isDebug=()=>"1"===process.env.RUNNER_DEBUG,xc.debug=e=>{Oc.issueCommand("debug",{},e)},xc.error=Ze,xc.warning=e=>{Oc.issue("warning",e instanceof Error?""+e:e)},xc.info=e=>{process.stdout.write(e+Nc.EOL)},xc.startGroup=et,xc.endGroup=tt,xc.group=function(e,t){return _c(this,void 0,void 0,(function*(){let r;et(e);try{r=yield t()}finally{tt()}return r}))},xc.saveState=(e,t)=>{Oc.issueCommand("save-state",{name:e},t)},xc.getState=e=>process.env["STATE_"+e]||"";const Dc=Ft.env["ProgramFiles(x86)"],Mc=[Ft.env["ProgramFiles(x86)"],Ft.env.ProgramFiles],Fc=["Enterprise","Professional","Community"],Bc=["2022","2019","2017"],Hc={2022:"17.0",2019:"16.0",2017:"15.0",2015:"14.0",2013:"12.0"};bc=rt;const qc=Dc+"\\Microsoft Visual Studio\\Installer";wc=st,Ec=(e,t,r,n,s,o)=>{if("win32"!=Ft.platform)return void xc.info("This is not a Windows virtual environment, bye!");Ft.env.PATH+=Et.delimiter+qc;let i={win32:"x86",win64:"x64",x86_64:"x64","x86-64":"x64"};e.toLowerCase()in i&&(e=i[e.toLowerCase()]);var a=[e];"true"==n&&a.push("uwp"),t&&a.push(t),r&&a.push("-vcvars_ver="+r),"true"==s&&a.push("-vcvars_spectre_libs=spectre");const c=`"${st(o)}" ${a.join(" ")}`;xc.debug("vcvars command-line: "+c);const l=(""+Ct.execSync(`set && cls && ${c} && cls && set`,{shell:"cmd"})).split("\f"),u=l[0].split("\r\n"),d=l[1].split("\r\n"),h=l[2].split("\r\n"),p=d.filter((e=>!(!e.match(/^\[ERROR.*\]/)||e.match(/Error in script usage. The correct usage is:$/))));if(p.length>0)throw Error("invalid parameters\r\n"+p.join("\r\n"));let f={};for(let e of u){const[t,r]=e.split("=");f[t]=r}xc.startGroup("Environment variables");for(let e of h){if(!e.includes("="))continue;let[t,r]=e.split("=");r!==f[t]&&(xc.info("Setting "+t),ot(t)&&(r=r.split(";").filter(((e,t,r)=>r.indexOf(e)===t)).join(";")),xc.exportVariable(t,r))}xc.endGroup(),xc.info("Configured Developer Command Prompt")},Yn=Gt("ditiY"),Vn=Gt("gmbrv"),Yn=Gt("ditiY");var Gc,zc=Et.resolve(__dirname,"../src/msvc"),Vc=(Vn=Gt("gmbrv"),{});Vc=Gt("cReTf"),Gc={id:"en",data:{long:{years:{one:"{0} year",other:"{0} years"},months:{one:"{0} month",other:"{0} months"},weeks:{one:"{0} week",other:"{0} weeks"},days:{one:"{0} day",other:"{0} days"},hours:{one:"{0} hour",other:"{0} hours"},minutes:{one:"{0} minute",other:"{0} minutes"},seconds:{one:"{0} second",other:"{0} seconds"}},narrow:{years:{one:"{0}y",other:"{0}y"},months:{one:"{0}m",other:"{0}m"},weeks:{one:"{0}w",other:"{0}w"},days:{one:"{0}d",other:"{0}d"},hours:{one:"{0}h",other:"{0}h"},minutes:{one:"{0}m",other:"{0}m"},seconds:{one:"{0}s",other:"{0}s"}},short:{years:{one:"{0} yr",other:"{0} yrs"},months:{one:"{0} mth",other:"{0} mths"},weeks:{one:"{0} wk",other:"{0} wks"},days:{one:"{0} day",other:"{0} days"},hours:{one:"{0} hr",other:"{0} hr"},minutes:{one:"{0} min",other:"{0} min"},seconds:{one:"{0} sec",other:"{0} sec"}}}};var Wc=Gt("5FRs7"),Yc={};Gt("j5MHF").addLocale("en",(e=>{var t=Math.floor(Math.abs(e)),r=(""+e).replace(/^[^.]*\.?/,"").length;return"string"==typeof e&&(e=parseInt(e,10)),1===t&&0===r?"one":"other"}));var Xc={};Object.defineProperty(Xc,"__esModule",{value:!0}),Xc.getUbuntuVersion=void 0,Xc.getUbuntuVersion=async()=>{if("linux"!==process.platform)return[];const e=await(t="lsb_release",r=["-a"],new Promise(((e,n)=>{Ct.execFile(t,r,{encoding:"utf8",shell:!1},((s,o,i)=>{if(s)return"errno"in s&&"ENOENT"===s.code?void e(null):void n(Error(`Could not execute \`${t} ${r.join(" ")}\`: ${s} (stderr=${i})`));e(o)}))})));var t,r;if(null===e)return[];const n=/^Distributor ID:\s*(.+)$/,s=/^Description:\s*Ubuntu\s+(\d+)\.(\d+)(?:\.(\d+))?/,o=/^Release:\s*(\d+)\.(\d+)(?:\.(\d+))?$/;let i=null,a=null,c=!1;for(const t of e.split("\n")){const e=t.match(n);if(null!==e){if("Ubuntu"!==e[1])return[];c=!0}const r=t.match(s);r&&(i=r);const l=t.match(o);if(l&&(a=l),c&&i&&a)break}if(!c)return[];for(const e of[i,a])if(e){const t=[e[1],e[2]];return e[3]&&t.push(e[3]),t.map((e=>parseInt(e,10)))}return[]},rc=Gt("fVzwP"),Yn=Gt("ditiY"),Yn=Gt("ditiY");let Kc,Jc=!1;Yn=Gt("ditiY");const Qc={async nala(e,r,n){if(!P())return;if("string"==typeof Kc)return{binDir:Kc};const s=t(Vt).sync("nala",{nothrow:!0});if(null!==s)return Kc=(0,Et.dirname)(s),{binDir:Kc};u("/bin/bash",["-c",`echo "deb [signed-by=${await x("volian-archive-scar-unstable.gpg","https://deb.volian.org/volian/scar.key")}] http://deb.volian.org/volian/ scar main" | tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list`]);try{"legacy"!==e?await v("nala",void 0,[],!0):await v("nala-legacy",void 0,[],!0)}catch(e){await v("nala-legacy",void 0,[],!0)}return Kc="/usr/bin",{binDir:Kc}},cmake:Q,ninja:lt,python:Z,async vcpkg(e,r,n){return Jc&&null!==t(Vt).sync("vcpkg",{nothrow:!0})?{binDir:(0,Et.dirname)(t(Vt).sync("vcpkg"))}:("linux"===process.platform&&(A()?(S("curl"),S("zip"),S("unzip"),S("tar"),S("git"),S("pkg-config")):C()?(I("curl"),I("zip"),I("unzip"),I("tar"),I("git"),I("pkg-config")):P()&&(await v("curl"),await v("zip"),await v("unzip"),await v("tar"),await v("git"),await v("pkg-config"))),(0,xt.existsSync)((0,Et.join)(r,k("bootstrap-vcpkg")))?(0,Yn.notice)(`Vcpkg folder already exists at ${r}. This might mean that ~/vcpkg is restored from the cache.`):t(rr).sync("git",["clone","https://github.com/microsoft/vcpkg"],{cwd:(0,Et.dirname)(r),stdio:"inherit"}),t(rr).sync(k((s="bootstrap-vcpkg","win32"===process.platform?s:"./"+s)),{cwd:r,shell:!0,stdio:"inherit"}),L(r),await f(r),Jc=!0,{binDir:r});var s},async bazel(e,t,r){switch(process.platform){case"win32":return R("bazelisk",e);case"darwin":return O("bazelisk",e);case"linux":if(A())throw Error("installing bazel on Arch linux is not supported yet");if(C())return I("dnf-plugins-core",void 0),u("dnf",["copr","enable","vbatts/bazel"]),I("bazel4",void 0);if(P())return u("bash",["-c",`echo "deb [arch=amd64 signed-by=${await x("bazel-archive-keyring.gpg","https://bazel.build/bazel-release.pub.gpg")}] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list`]),v("bazel",e,[],!0);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},async conan(e,t,r){return await De("setuptools",""),De("conan",e)},meson(e,t,r){return De("meson",e)},gcovr(e,t,r){return De("gcovr",e)},async opencppcoverage(e,t,r){if("win32"===process.platform)return await R("opencppcoverage",e),{binDir:await(async()=>{const e="C:/Program Files/OpenCppCoverage";return await f(e),e})()}},llvm:Ye,gcc:qe,choco:T,brew:n,ccache(e,t,r){switch(process.platform){case"win32":return R("ccache",e);case"darwin":return O("ccache",e);case"linux":if(A())return S("ccache",e);if(C())return I("ccache",e);if(P())return v("ccache",e);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},async doxygen(e,t,r){switch(process.platform){case"win32":{await R("doxygen.install",e);const t={binDir:await(async()=>{if("win32"===process.platform){for(const e of["C:/ProgramData/chocolatey/bin","C:/Program Files/doxygen/bin","C:/Program Files (x86)/doxygen"])if((0,xt.existsSync)((0,Et.join)(e,"doxygen.exe")))return await f(e),e;throw Error("Failed to find doxygen binary")}throw Error("Unsupported platform")})()};return await Me(je("graphviz",void 0)),t}case"darwin":{const e=O("doxygen",void 0);return await Me(je("graphviz",void 0)),e}case"linux":{let n;if(""===e||A()||C())if(A())n=S("doxygen",e);else{if(C())return I("doxygen",e);if(!P())throw Error("Unsupported linux distributions");n=await v("doxygen",e)}else{if(!P())throw Error("Unsupported linux distributions");try{n=await X("doxygen",e,Fe,t,r),await v("libclang-cpp9")}catch(e){(0,Yn.notice)(`Failed to download doxygen binary. ${e}. Falling back to apt-get.`),n=await v("doxygen",void 0)}}return await Me(je("graphviz",void 0)),n}default:throw Error("Unsupported platform")}},graphviz:Me,async cppcheck(e,t,r){switch(process.platform){case"win32":return await R("cppcheck",e),{binDir:await(async()=>{const e="C:/Program Files/Cppcheck";return await f(e),e})()};case"darwin":return O("cppcheck",e);case"linux":if(A())return S("cppcheck",e);if(C())return I("ccache",e);if(P())return v("cppcheck",e);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},clangtidy:Ke,clangformat:Ke,msvc:at,vcvarsall:it,async kcov(e,t,r){if("linux"!==process.platform)return void(0,Yn.info)("Kcov is not supported on non-linux");const n=e.split("-");let s=(e=>e.match(/^v/)?e:"v"+e)(n[0]);const o=n[1],i=(e=>parseInt(e.replace(/^v/,""),10))(s);let a;return 38===i&&(s="v38"),"binary"!==o||39>i?(a=await X("kcov",s,pt,t,r),a):(a=await X("kcov",s,ht,t,r),A()?S("binutils"):C()?I("binutils"):P()&&await v("libbinutils"),a)},async make(e,t,r){switch(process.platform){case"win32":return R("make",e);case"darwin":return O("make",e),await f("/usr/local/opt/make/libexec/gnubin"),{binDir:"/usr/local/opt/make/libexec/gnubin"};case"linux":if(A())return S("make",e);if(C())return I("make",e);if(P())return v("make",e);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},task(e,t,r){return X("task",e,K,t,r)},sevenzip:N},Zc=["nala","choco","brew","python","vcpkg","bazel","cmake","ninja","conan","meson","gcovr","opencppcoverage","ccache","doxygen","graphviz","cppcheck","clangtidy","clangformat","llvm","gcc","msvc","vcvarsall","kcov","make","task","sevenzip"],el=["compiler","architecture",...Zc];mt(process.argv).then((e=>{process.exitCode=e})).catch((e=>{(0,Yn.error)("main() panicked!"),(0,Yn.error)(e),process.exitCode=1}));
|
||
//# sourceMappingURL=setup_cpp.js.map
|