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

39 lines
319 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env node
let e,t,r,n,i,o,a,s,l,u;function c(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0});}function p(e){return e&&e.__esModule?e.default:e;}function d(e,t,r){if("function"==typeof t&&(r=t,t={}),!r){if("function"!=typeof Promise)throw TypeError("callback not provided");return new Promise(function(r,n){d(e,t||{},function(e,t){e?n(e):r(t);});});}r9(e,t||{},function(e,n){e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,n=!1),r(e,n);});}function f(e,t){let r;let n=e.options.env||process.env,i=process.cwd(),o=null!=e.options.cwd,a=o&&void 0!==process.chdir&&!process.chdir.disabled;if(a)try{process.chdir(e.options.cwd);}catch(e){}try{r=r6.sync(e.command,{path:n[r7({env:n})],pathExt:t?iv.delimiter:void 0});}catch(e){}finally{a&&process.chdir(i);}return r&&(r=iv.resolve(o?e.options.cwd:"",r)),r;}function h(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 m(e,t){return ol&&1===e&&!t.file?h(t.original,"spawn"):null;}function g(e,t,r){let n=r4(e,t,r),i=rS.spawn(n.command,n.args,n.options);return no.hookChildProcess(i,n),i;}function v(e){let t="string"==typeof e?"\n":"\n".charCodeAt(),r="string"==typeof e?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,-1)),e[e.length-1]===r&&(e=e.slice(0,-1)),e;}function E(e={}){let{env:t=process.env,platform:r=process.platform}=e;return"win32"!==r?"PATH":Object.keys(t).reverse().find(e=>"PATH"===e.toUpperCase())||"Path";}function w({env:e=p(rA).env,...t}={}){let r=E({env:e={...e}});return t.path=e[r],e[r]=function(e={}){let t;let{cwd:r=p(rA).cwd(),path:n=p(rA).env[E()],execPath:i=p(rA).execPath}=e,o=i instanceof URL?p(rO).fileURLToPath(i):i,a=r instanceof URL?p(rO).fileURLToPath(r):r,s=p(rN).resolve(a),l=[];for(;t!==s;)l.push(p(rN).join(s,"node_modules/.bin")),t=s,s=p(rN).resolve(s,"..");return l.push(p(rN).resolve(a,o,"..")),[...l,n].join(p(rN).delimiter);}(t),e;}function y(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe;}function b(e){return y(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState;}async function x(e,t){if(!e)throw Error("Expected a stream");let{maxBuffer:r}=t={maxBuffer:1/0,...t},n=nd(t);return await new Promise((t,i)=>{let o=e=>{e&&n.getBufferedLength()<=nc.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),i(e);};(async()=>{try{await o8(e,n),t();}catch(e){o(e);}})(),n.on("data",()=>{n.getBufferedLength()>r&&o(new o9());});}),n.getBufferedValue();}function S(e,t,r){let n;let i=aR(e,t,r),o=ah(e,t),a=am(e,t);aD(a,i.options),o3(i.options);try{n=p(rI).spawn(i.file,i.args,i.options);}catch(t){let e=new(p(rI).ChildProcess)();return ac(e,Promise.reject(oA({error:t,stdout:"",stderr:"",all:"",command:o,escapedCommand:a,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}))),e;}let s=ap(n),l=o1(n,i.options,s),u=o2(n,i.options,l),c={isCanceled:!1};n.kill=oY.bind(null,n.kill.bind(n)),n.cancel=oZ.bind(null,n,c);let d=na(async()=>{let[{error:e,exitCode:t,signal:r,timedOut:s},l,p,d]=await as(n,i.options,u),f=aN(i.options,l),h=aN(i.options,p),m=aN(i.options,d);if(e||0!==t||null!==r){let l=oA({error:e,exitCode:t,signal:r,stdout:f,stderr:h,all:m,command:o,escapedCommand:a,parsed:i,timedOut:s,isCanceled:c.isCanceled||!!i.options.signal&&i.options.signal.aborted,killed:n.killed});if(!i.options.reject)return l;throw l;}return{command:o,escapedCommand:a,exitCode:0,stdout:f,stderr:h,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};});return an(n,i.options),n.all=ai(n,i.options),o6(n),ac(n,d),n;}function D(e,t,r){let n;let i=aR(e,t,r),o=ah(e,t),a=am(e,t);aD(a,i.options);let s=at(i.options);try{n=p(rI).spawnSync(i.file,i.args,{...i.options,input:s});}catch(e){throw oA({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:a,parsed:i,timedOut:!1,isCanceled:!1,killed:!1});}let l=aN(i.options,n.stdout,n.error),u=aN(i.options,n.stderr,n.error);if(n.error||0!==n.status||null!==n.signal){let e=oA({stdout:l,stderr:u,error:n.error,signal:n.signal,exitCode:n.status,command:o,escapedCommand:a,parsed:i,timedOut:n.error&&"ETIMEDOUT"===n.error.code,isCanceled:!1,killed:null!==n.signal});if(!i.options.reject)return e;throw e;}return{command:o,escapedCommand:a,exitCode:0,stdout:l,stderr:u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};}function T(){var e,t;return((null===(e=(t=process).getuid)||void 0===e?void 0:e.call(t))===0||!!process.env.CI)&&null!==p(rW).sync("sudo",{nothrow:!0});}function R(e,t=[],r=aO){return T()?function(e,t){let[r,...n]=ag(e);return D(r,n,t);}(I(e,t),r):D(e,A(t),r);}function N(e,t=[],r=aO){return T()?function(e,t){let[r,...n]=ag(e);return S(r,n,t);}(I(e,t),r):S(e,A(t),r);}function I(e,t){return"sudo "+A([e,...t]).join(" ");}function A(e){return e.map(e=>`'${e}'`);}async function O(e){if(("linux"===process.platform||"darwin"===process.platform)&&T()&&void 0!==process.env.SUDO_USER){let t=p(iE).statSync(e).isDirectory();await N("chown",[...(t?["-R"]:[]),process.env.SUDO_USER,e],aO);}}function C(e){let t=function(){if(T()&&"string"==typeof process.env.SUDO_USER&&""!==process.env.SUDO_USER)return"darwin"===process.platform?(0,iv.join)("/Users/",process.env.SUDO_USER):(0,iv.join)("/home/",process.env.SUDO_USER);{let e=(0,ig.homedir)();if(""===e)return;return e;}}();return void 0===t?e:e.replace(aC,t);}function _(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e));}catch(e){o(e);}}function s(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(a,s);}l((n=n.apply(e,t||[])).next());});}function L(e,t){function r(r){return function(l){return function(r){if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,r[0]&&(s=0)),s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue;}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break;}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break;}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break;}o[2]&&s.ops.pop(),s.trys.pop();continue;}r=t.call(e,s);}catch(e){r=[6,e],i=0;}finally{n=o=0;}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0};}([r,l]);};}var n,i,o,a,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1];},trys:[],ops:[]};return a={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this;}),a;}async function $(){try{await p(ng)({pkg:p(n$)});}catch(e){(0,rV.warning)("Failed to check for updates: "+(e instanceof Error?e.message+e.stack:e));}}function P(e){return null==e?[]:Array.isArray(e)?e:[e];}function k(e,t,r){let n;let i=sd(e,t,r),o=st(e,t),a=sr(e,t);sc(a,i.options),aV(i.options);try{n=p(rI).spawn(i.file,i.args,i.options);}catch(t){let e=new(p(rI).ChildProcess)();return a8(e,Promise.reject(aL({error:t,stdout:"",stderr:"",all:"",command:o,escapedCommand:a,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}))),e;}let s=a9(n),l=aH(n,i.options,s),u=aX(n,i.options,l),c={isCanceled:!1};n.kill=aU.bind(null,n.kill.bind(n)),n.cancel=aB.bind(null,n,c);let d=na(async()=>{let[{error:e,exitCode:t,signal:r,timedOut:s},l,p,d]=await a4(n,i.options,u),f=sf(i.options,l),h=sf(i.options,p),m=sf(i.options,d);if(e||0!==t||null!==r){let l=aL({error:e,exitCode:t,signal:r,stdout:f,stderr:h,all:m,command:o,escapedCommand:a,parsed:i,timedOut:s,isCanceled:c.isCanceled||!!i.options.signal&&i.options.signal.aborted,killed:n.killed});if(!i.options.reject)return l;throw l;}return{command:o,escapedCommand:a,exitCode:0,stdout:f,stderr:h,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};});return a0(n,i.options),n.all=a1(n,i.options),aK(n),a8(n,d),n;}function U(t,r=["-NoProfile","-NoLogo","-NonInteractive"],n={stdio:"inherit"}){return k(function(){if(void 0===e){let t=p(rW).sync("pwsh",{nothrow:!0});null!==t&&(e=t);let r=p(rW).sync("powershell",{nothrow:!0});null!==r&&(e=r);}if(void 0===e)throw Error("Could not find powershell");return e;}(),[...r,"-c",t],n);}async function F(e,t,r=sw){let n=function(e,t=!1){let r=t?p(nk)(e):e;return p(nU)(r,'"',"\\");}(null!=t?t:"",r.shouldEscapeSpace);try{if(rH.GITHUB_ACTIONS)try{if(r.shouldAddOnlyIfNotDefined&&void 0!==process.env[e]){(0,nP.info)(`Environment variable ${e} is already defined. Skipping.`);return;}(0,nP.exportVariable)(e,n);}catch(t){(0,rV.error)(t),await j(e,n,r);}else await j(e,n,r);}catch(t){(0,rV.error)(t),(0,nP.setFailed)(`Failed to export environment variable ${e}=${n}. You should add it manually.`);}}async function M(e){if(!function(e){if(sy.some(t=>t.test(e))){var t,r;return(null!==(r=null===(t=process.env.PATH)||void 0===t?void 0:t.split(iv.delimiter))&&void 0!==r?r:[]).includes(e);}return!1;}(e)){process.env.PATH=`${e}${iv.delimiter}${process.env.PATH}`;try{if(rH.GITHUB_ACTIONS)try{(0,nP.addPath)(e);}catch(t){(0,rV.error)(t),await q(e);}else await q(e);}catch(t){(0,rV.error)(t),(0,nP.setFailed)(`Failed to add ${e} to the percistent PATH. You should add it manually.`);}}}async function j(e,t,r){let n=null!=t?t:"";switch(process.platform){case"win32":if(r.shouldAddOnlyIfNotDefined&&void 0!==process.env[e]){(0,nP.info)(`Environment variable ${e} is already defined. Skipping.`);return;}await U(`[Environment]::SetEnvironmentVariable('${e}', '${n}', "User")`),(0,nP.info)(`${e}='${n}' was set in the environment.`);return;case"linux":case"darwin":await B(),r.shouldAddOnlyIfNotDefined?((0,iE.appendFileSync)(sb,`
if [ -z "\${${e}}" ]; then export ${e}="${n}"; fi
`),(0,nP.info)(`if not defined ${e} then ${e}="${n}" was added to "${sb}`)):((0,iE.appendFileSync)(sb,`
export ${e}="${n}"
`),(0,nP.info)(`${e}="${n}" was added to "${sb}`));return;}process.env[e]=n;}async function q(e){switch(process.platform){case"win32":await U(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),(0,nP.info)(`"${e}" was added to the PATH.`);return;case"linux":case"darwin":await B(),(0,iE.appendFileSync)(sb,`
export PATH="${e}:$PATH"
`),(0,nP.info)(`"${e}" was added to "${sb}"`);return;default:return;}}async function B(){if(sx)return;let e="# Automatically Generated by setup-cpp\nexport SOURCE_CPPRC=0";if((await(0,nF.pathExists)(sb))&&(0,iE.readFileSync)(sb,"utf8").includes(e))return;(0,iE.appendFileSync)(sb,`
${e}
`),(0,nP.info)(`Added ${e} to ${sb}`);let t=`
# source .cpprc if SOURCE_CPPRC is not set to 0
if [[ "$SOURCE_CPPRC" != 0 && -f "${sb}" ]]; then source "${sb}"; fi
`;try{let e=C("~/.profile");(0,iE.appendFileSync)(e,t),(0,nP.info)(`${t} was added to ${e}`);let r=C("~/.bashrc");(0,iE.appendFileSync)(r,t),(0,nP.info)(`${t} was added to ${r}`);}catch(e){(0,rV.warning)(`Failed to add ${t} to .profile or .bashrc. You should add it manually: ${e}`);}sx=!0;}async function G(){if(await(0,nF.pathExists)(sb)){let e=[...new Set((0,iE.readFileSync)(sb,"utf-8").split("\n").reverse())].reverse();(0,iE.writeFileSync)(sb,e.join("\n")),await O(sb);}}async function H(e,t=!1){let r;let n=z()?"nala":"apt-get";for(let{name:t,version:r}of e)(0,rV.info)(`Installing ${t} ${null!=r?r:""} via ${n}`);process.env.DEBIAN_FRONTEND="noninteractive",(!sD||t)&&(Y(n),sD=!0),sT||(await K(n),sT=!0);let i=[...new Set(e.flatMap(e=>{var t;return null!==(t=e.repositories)&&void 0!==t?t:[];}))];if(0!==i.length){for(let e of i)R("add-apt-repository",["-y",e]);Y(n);}let o=await Promise.all(e.map(e=>X(e.name,e.version)));try{R(n,["install","--fix-broken","-y",...o]);}catch(e){if("stderr"in e){let t=e.stderr;sR.some(e=>t.includes(e))&&((0,rV.warning)(`Failed to install packages ${o}. Retrying...`),R(n,["install","--fix-broken","-y",...o]));}else throw e;}return{binDir:"/usr/bin/"};}async function V(e,t){if(void 0!==t&&""!==t){let{stdout:r}=await S("apt-cache",["search","--names-only",`^${(0,nM.default)(e)}-${(0,nM.default)(t)}$`]);if(""!==r.trim())return 0;try{let{stdout:r}=await S("apt-cache",["show",`${e}=${t}`]);if(""===r.trim())return 1;}catch{}}try{let{stdout:t}=await S("apt-cache",["show",e]);if(""!==t.trim())return 2;}catch{}return 3;}async function X(e,t){switch(await V(e,t)){case 0:return`${e}-${t}`;case 1:return`${e}=${t}`;case 2:return e;default:throw Error(`Could not find package ${e} ${null!=t?t:""}`);}}function z(){return null!==p(rW).sync("nala",{nothrow:!0});}function Y(e){R(e,"nala"!==e?["update","-y"]:["update"]);}async function K(e){R(e,["install","--fix-broken","-y","software-properties-common","apt-utils","ca-certificates","gnupg"]);let t=[Q(["3B4FE6ACC0B21F32","40976EAF437D05B5"],"setup-cpp-ubuntu-archive.gpg"),Q(["1E9377A2BA9EF27F"],"launchpad-toolchain.gpg")];"nala"===e&&t.push(F("LANG","C.UTF-8",{shouldAddOnlyIfNotDefined:!0}),F("LC_ALL","C.UTF-8",{shouldAddOnlyIfNotDefined:!0})),await Promise.all(t);}function W(){R("gpg",["-k"]);}async function Q(e,t,r="keyserver.ubuntu.com"){try{let n="/etc/apt/trusted.gpg.d/"+t;return(await(0,nF.pathExists)(n))||(W(),await Promise.all(e.map(async e=>{await N("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+n,"--keyserver",r,"--recv-keys",e]),await N("chmod",["644",n]);}))),n;}catch(e){(0,rV.warning)(`Failed to add apt key via server ${r}: ${e}`);return;}}async function J(e,t){let r="/etc/apt/trusted.gpg.d/"+e;return(await(0,nF.pathExists)(r))||(W(),await H([{name:"curl"},{name:"ca-certificates"}],void 0),await S("curl",["-s",t,"-o","/tmp/"+e]),R("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+r,"--import","/tmp/"+e]),R("chmod",["644",r])),r;}async function Z(e,t,r=40){return rH.GITHUB_ACTIONS?N("update-alternatives",["--install","/usr/bin/"+e,e,t,r.toString()]):(await B(),sS(sb,`
if [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${e} ${e} ${t} ${r}; fi
`));}async function ee(e){try{let{stdout:t}=await S("dpkg",["-l",e]);return t.split("\n").some(e=>e.startsWith("ii"));}catch{return!1;}}async function et(e,r,n){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeof t)return{binDir:t};let i=p(rW).sync("brew",{nothrow:!0});if(null!==i)return{binDir:t=(0,nq.dirname)(i)};let o=p(iv).join((0,ig.tmpdir)(),"setup-cpp","brew");await(0,nB.mkdirP)(o),D("curl",["-LJO","https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh"],{cwd:o});let a=(0,iv.join)(o,"install.sh");return"linux"===process.platform&&(0,iE.readFileSync)(a,"utf-8").replace("#!/bin/bash",""),D("/bin/bash",[a],{stdio:"inherit",env:{NONINTERACTIVE:"1"}}),t=er(),await M(t),{binDir:t};}function er(){return"linux"===process.platform?"/home/linuxbrew/.linuxbrew/bin/":"/usr/local/bin/";}async function en(e,t,r=[]){(0,nP.info)(`Installing ${e} ${null!=t?t:""} via brew`),sN&&null!==p(rW).sync("brew",{nothrow:!0})||(await et("","",process.arch),sN=!0);let n=er();return D((0,nq.join)(n,"brew"),["install",void 0!==t&&""!==t?`${e}@${t}`:e,...r],{stdio:"inherit"}),{binDir:n};}async function ei(e,t,n){var i;if("win32"!==process.platform)return;if("string"==typeof r)return{binDir:r};let o=p(rW).sync("choco",{nothrow:!0});if(null!==o)return{binDir:r=(0,nq.dirname)(o)};let a="powershell.exe",s=p(rW).sync(`${process.env.SystemRoot}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`,{nothrow:!0});null!==s&&(a=s),D(a,["-NoProfile","-InputFormat","None","-ExecutionPolicy","Bypass","-Command","[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))"],{stdio:"inherit"});let l=`${process.env.ALLUSERSPROFILE}\\chocolatey\\bin`;await M(l);let u=p(rW).sync("choco",{nothrow:!0});if(r=null!==u?(0,nq.dirname)(u):`${null!==(i=process.env.ChocolateyInstall)&&void 0!==i?i:"C:/ProgramData/chocolatey"}/bin`,await(0,nF.pathExists)(r))return{binDir:r};}async function eo(e,t,r=[]){var n;(0,rV.info)(`Installing ${e} ${null!=t?t:""} via chocolatey`),sI&&null!==p(rW).sync("choco",{nothrow:!0})||(await ei("","",process.arch),sI=!0);let i=process.env.PATH,o={...process.env};if(delete o.TMP,delete o.TEMP,delete o.Path,o.PATH=i,void 0!==t&&""!==t)D("choco",["install","-y",e,"--version="+t,...r],{env:o,extendEnv:!1,stdio:"inherit"});else try{D("choco",["install","-y",e,...r],{env:o,extendEnv:!1,stdio:"inherit"});}catch(t){if(t.message.includes("exit code 3010"))(0,rV.info)(`${e} might require a reboot for the completion of the installation.`);else throw t;}let a=`${null!==(n=process.env.ChocolateyInstall)&&void 0!==n?n:"C:/ProgramData/chocolatey"}/bin`;return await M(a),{binDir:a};}function ea(){return"linux"===process.platform&&(void 0===s&&(s=null!==p(rW).sync("pacman",{nothrow:!0})),s);}function es(){return"linux"===process.platform&&(void 0===l&&(l=null!==p(rW).sync("dnf",{nothrow:!0})),l);}async function el(e){for(let{name:t,version:r}of e)(0,rV.info)(`Installing ${t} ${null!=r?r:""} via dnf`);return R("dnf",["-y","install",...(await Promise.all(e.map(e=>eu(e.name,e.version))))]),{binDir:"/usr/bin/"};}async function eu(e,t){if(void 0!==t&&""!==t){let{stdout:r}=await S("dnf",["search","-q",`${e}-${t}`]);if(""!==r.trim())return`${e}-${t}`;{let{stdout:r}=await S("dnf",["search","-q",`${e}${t}`]);if(""!==r.trim())return`${e}${t}`;(0,rV.warning)(`Failed to install ${e} ${t} via dnf, trying without version`);}}return e;}function ec(){return"linux"===process.platform&&(void 0===u&&(u=null!==p(rW).sync("apt-get",{nothrow:!0})),u);}async function ep(e,t,r){switch(process.platform){case"win32":return eo("bazelisk",e);case"darwin":return en("bazelisk",e);case"linux":if(ea())throw Error("installing bazel on Arch linux is not supported yet");if(es())return await el([{name:"dnf-plugins-core"}]),R("dnf",["copr","enable","vbatts/bazel"]),el([{name:"bazel4"}]);if(ec()){let t=await J("bazel-archive-keyring.gpg","https://bazel.build/bazel-release.pub.gpg");return R("bash",["-c",`echo "deb [arch=amd64 signed-by=${t}] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list`]),H([{name:"bazel",version:e}],!0);}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function ed(e,t,r){(0,rV.info)(`Installing ${e} ${null!=t?t:""} via pacman`);let n="pacman";if("yay"===r&&null===p(rW).sync("yay",{nothrow:!0}))throw Error(`yay is needed for ${e}, but it is not installed, please install it manually first`);sA||"yay"===r||(R(n,["-Sy","--noconfirm"]),sA=!0),sO||"yay"===r||(R(n,["-S","--noconfirm","base-devel"]),sO=!0);let i=e=>"yay"===r?D(r,["-S","--noconfirm",e]):R(null!=r?r:n,["-S","--noconfirm",e]);if(void 0!==t&&""!==t){if((await ef(n,e)).includes(t))try{i(`${e}=${t}`);}catch{i(`${e}${t}`);}else(0,rV.info)(`Failed to install ${e} ${t} via pacman, trying without version`),i(e);}else i(e);return{binDir:"/usr/bin/"};}async function ef(e,t){let r=[];try{let{stdout:n}=await S(e,["-Si",t]);for(let e of n.matchAll(sC))r.push(e[1]);}catch(e){(0,rV.warning)(`Failed to get available versions for ${t}: ${e}`);}return r;}function eh(e,t){let r=[];t=t||sk.arch();let n=sU.join(ey(),e);if(s$.existsSync(n)){for(let e of s$.readdirSync(n))if(eE(e)){let i=sU.join(n,e,t||"");s$.existsSync(i)&&s$.existsSync(`${i}.complete`)&&r.push(e);}}return r;}function em(e){return nY(this,void 0,void 0,function*(){return e||(e=sU.join(eb(),sB.default())),yield sL.mkdirP(e),e;});}function eg(e,t,r){return nY(this,void 0,void 0,function*(){let n=sU.join(ey(),e,sM.clean(t)||t,r||"");s_.debug("destination "+n);let i=`${n}.complete`;return yield sL.rmRF(n),yield sL.rmRF(i),yield sL.mkdirP(n),n;});}function ev(e,t,r){let n=sU.join(ey(),e,sM.clean(t)||t,r||""),i=`${n}.complete`;s$.writeFileSync(i,""),s_.debug("finished caching tool");}function eE(e){let t=sM.clean(e)||"";s_.debug("isExplicit: "+t);let r=null!=sM.valid(t);return s_.debug("explicit? "+r),r;}function ew(e,t){let r="";s_.debug(`evaluating ${e.length} versions`),e=e.sort((e,t)=>sM.gt(e,t)?1:-1);for(let n=e.length-1;n>=0;n--){let i=e[n];if(sM.satisfies(i,t)){r=i;break;}}return r?s_.debug("matched: "+r):s_.debug("match not found"),r;}function ey(){let e=process.env.RUNNER_TOOL_CACHE||"";return ry.ok(e,"Expected RUNNER_TOOL_CACHE to be defined"),e;}function eb(){let e=process.env.RUNNER_TEMP||"";return ry.ok(e,"Expected RUNNER_TEMP to be defined"),e;}function ex(e,t){let r=rM[e];return void 0!==r?r:t;}function eS(e,t){if(!e||!t)throw Error("retry-as-promised must be passed a callback and a options set");let r={$current:"$current"in(t="number"==typeof t?{max:t}:t)?t.$current:1,max:t.max,timeout:t.timeout||void 0,match:t.match?Array.isArray(t.match)?t.match:[t.match]:[],backoffBase:void 0===t.backoffBase?100:t.backoffBase,backoffExponent:t.backoffExponent||1.1,report:t.report,name:t.name||e.name||"unknown"};return r.match&&!Array.isArray(r.match)&&(r.match=[r.match]),r.report&&r.report("Trying "+r.name+" #"+r.$current+" at "+new Date().toLocaleTimeString(),r),new Promise(function(t,n){let i,o,a;r.timeout&&(i=setTimeout(function(){o&&clearTimeout(o),n(new sz(r.name+" timed out",a));},r.timeout)),Promise.resolve(e({current:r.$current})).then(t).then(function(){i&&clearTimeout(i),o&&clearTimeout(o);}).catch(function(s){i&&clearTimeout(i),o&&clearTimeout(o),a=s,r.report&&r.report(s&&s.toString()||s,r,s);var l=r.$current<r.max;if(!l||!(l=0===r.match.length||r.match.some(function(e){return function(e,t){if("function"==typeof e)try{if(t instanceof e)return!0;}catch(r){return!!e(t);}return e===t.toString()||e===t.message||e instanceof RegExp&&(e.test(t.message)||e.test(t.toString()));}(e,s);})))return n(s);var u=r.backoffBase*Math.pow(r.backoffExponent,r.$current-1);r.$current++,r.report&&r.report(`Retrying ${r.name} (${r.$current})`,r),u?(r.report&&r.report(`Delaying retry of ${r.name} by ${u}`,r),o=setTimeout(function(){eS(e,r).then(t).catch(n);},u)):eS(e,r).then(t).catch(n);});});}async function eD(e,t,r,n,i){var o,a;(0,rV.info)(`Installing ${e} ${t} ${i} via direct downloading`),process.env.RUNNER_TEMP=null!==(o=process.env.RUNNER_TEMP)&&void 0!==o?o:(0,ig.tmpdir)(),process.env.RUNNER_TOOL_CACHE=null!==(a=process.env.RUNNER_TOOL_CACHE)&&void 0!==a?a:(0,nq.join)((0,ig.tmpdir)(),"setup-cpp","hostedtoolcache");let{url:s,binRelativeDir:l,binFileName:u,extractedFolderName:c,extractFunction:d}=await r(t,process.platform,i);if(rH.GITHUB_ACTIONS)try{let r=(0,nG.find)(e,t);if(r){let n=(0,nq.join)(r,c),i=(0,nq.join)(n,l);if(await(0,nF.pathExists)((0,nq.join)(i,u)))return(0,rV.info)(`${e} ${t} was found in the cache at ${i}.`),await M(i),{installDir:n,binDir:i};}}catch{}let f=(0,nq.join)(n,c),h=(0,nq.join)(f,l),m=(0,nq.join)(h,u);if((await Promise.all([(0,nF.pathExists)(h),(0,nF.pathExists)(m)])).includes(!1))try{(0,rV.info)(`Download ${e} ${t}`);let r=await p(n4)(()=>(0,nG.downloadTool)(s),{name:s,max:4,backoffBase:2e3,report:e=>(0,rV.info)(e)});sY||((0,rV.info)("Installing extraction dependencies"),"linux"===process.platform&&(ea()?await Promise.all([ed("unzip"),ed("tar"),ed("xz")]):es()?await el([{name:"unzip"},{name:"tar"},{name:"xz"}]):ec()&&(await H([{name:"unzip"},{name:"tar"},{name:"xz-utils"}]))),sY=!0),(0,rV.info)(`Extracting ${r} to ${n}`),await(null==d?void 0:d(r,n));}catch(r){throw Error(`Failed to download ${e} ${t} ${i} from ${s}: ${r}`);}return(0,rV.info)(`Add ${h} to PATH`),await M(h),rH.GITHUB_ACTIONS&&"string"==typeof process.env.RUNNER_TOOL_CACHE&&(await(0,nG.cacheDir)(n,e,t)),{installDir:f,binDir:h};}function eT(e,t,r){switch(process.platform){case"win32":return eo("7zip",e);case"darwin":return en("p7zip",e);case"linux":if(ea())return ed("p7zip",e);if(es())return el([{name:"p7zip",version:e},{name:"p7zip-plugins",version:e}]);if(ec())return H([{name:"p7zip-full",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function eR(e,t){return await S(await eN(),["x",e,"-o"+t,"-y"],{stdio:"inherit"}),await O(t),t;}async function eN(){return void 0===n&&(null===p(rW).sync("7z",{nothrow:!0})&&(await eT("","",process.arch)),n="7z"),n;}function eI(e,t){return eR(e,t);}function eA(e,t){return eR(e,t);}async function eO(e,t,r=["--strip-components=0"]){try{await(0,nB.mkdirP)(t);}catch{}try{await S("tar",["xf",e,"-C",t,...r],{stdio:"inherit"});}catch(r){"win32"===process.platform&&r.message.includes("Can't create '\\\\?\\C:")&&(0,rV.warning)(`Failed to extract symlink ${e} to ${t}. Ignoring this symlink.`);}return O(t),t;}function eC(e,t,r){var n;let i=null!==(n=p(n2)(e))&&void 0!==n?n:e;switch(t){case"win32":{let t;let n=p(n3)(i,"v3.19.6");t=["ia32","x86","i386","x32"].includes(r)?n?"win32-x86":"windows-i386":n?"win64-x64":"windows-x86_64";let o=`cmake-${e}-${t}`;return{binRelativeDir:"bin/",binFileName:(0,nq.addExeExt)("cmake"),extractedFolderName:o,extractFunction:eA,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${o}.zip`};}case"darwin":{let t=p(n3)(i,"v3.19.1"),r=`cmake-${e}-${t?"Darwin-x86_64":"macos-universal"}`;return{binRelativeDir:"CMake.app/Contents/bin/",binFileName:(0,nq.addExeExt)("cmake"),extractedFolderName:r,extractFunction:nG.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${r}.tar.gz`};}case"linux":{let t;let n=p(n3)(i,"v3.19.8");t=["aarch64"].includes(r)?n?"Linux-aarch64":"linux-aarch64":n?"Linux-x86_64":"linux-x86_64";let o=`cmake-${e}-${t}`;return{binRelativeDir:"bin/",binFileName:(0,nq.addExeExt)("cmake"),extractedFolderName:o,extractFunction:nG.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${o}.tar.gz`};}default:throw Error(`Unsupported platform '${t}'`);}}function e_(e,t,r){return eD("cmake",e,eC,t,r);}function eL(e){var t=e.length;return t?1===t?[e[0]]:2===t?[e[0],e[1]]:3===t?[e[0],e[1],e[2]]:n6.call(e,0):[];}function e$(e,t){return e===t||e!=e&&t!=t;}function eP(e,t){var r={};for(var n in e)r[n]=e[n];for(var n in t)r[n]=t[n];return r;}function ek(e,t){if(void 0===t&&(t={}),"function"==typeof e&&e.isMemoized)return ek(e.fn,eP(e.options,t));if("function"!=typeof e)throw TypeError("You must pass a function to `memoize`.");var r=t.isEqual,n=t.isMatchingKey,i=t.isPromise,o=void 0!==i&&i,a=t.maxSize,s=t.onCacheAdd,l=t.onCacheChange,u=t.onCacheHit,c=t.transformKey,p=eP({isEqual:void 0===r?e$:r,isMatchingKey:n,isPromise:o,maxSize:void 0===a?1:a,onCacheAdd:s,onCacheChange:l,onCacheHit:u,transformKey:c},function(e){var t={};for(var r in e)n5[r]||(t[r]=e[r]);return t;}(t)),d=new n8(p),f=d.keys,h=d.values,m=d.canTransformKey,g=d.shouldCloneArguments,v=d.shouldUpdateOnAdd,E=d.shouldUpdateOnChange,w=d.shouldUpdateOnHit,y=function(){var t=g?eL(arguments):arguments;m&&(t=c(t));var r=f.length?d.getKeyIndex(t):-1;if(-1!==r)w&&u(d,p,y),r&&(d.orderByLru(f[r],h[r],r),E&&l(d,p,y));else{var n=e.apply(this,arguments),i=g?t:eL(arguments);d.orderByLru(i,n,f.length),o&&d.updateAsyncCache(y),v&&s(d,p,y),E&&l(d,p,y);}return h[0];};return y.cache=d,y.fn=e,y.isMemoized=!0,y.options=p,y;}function eU(e,t){return new Promise(r=>{try{let n=(0,ib.request)(e,{method:t},e=>{r(void 0!==e.statusCode&&e.statusCode>=200&&e.statusCode<=399);});n.on("error",e=>{r(!1);}),n.end();}catch{r(!1);}});}function eF(e,t){return Array.from(e).filter(e=>/^\d+\.\d+\.\d+$/.test(e)&&e.startsWith(t)).sort((e,t)=>{try{return p(ie)(e,t);}catch(r){return e.localeCompare(t);}}).reverse();}async function eM(e,t,r,n){if("linux"===t&&r.includes("ubuntu")){let e=await n(t,r);if(null!==e&&(await n7(e)))return[r,e];}if(!e.has(r))throw Error(`Unsupported target! (platform='${t}', version='${r}'). Try one of the following: ${JSON.stringify(e)}`);let i=[];for(let o of eF(e,r)){let e=await n(t,o);if(null!==e){if(await n7(e))return[o,e];i.push(e);}}throw Error(`Unsupported target! (platform='${t}', version='${r}'). Try one of the following: ${JSON.stringify(e)}`);}async function ej(e,t=sK){try{var r,n;let i=await(0,nW.getExecOutput)(e,["--version"]),o=i.stdout||i.stderr||"",a=null===(r=o.trim().match(t))||void 0===r?void 0:r[1];return null!==(n=p(n2)(a))&&void 0!==n?n:void 0;}catch(e){console.error(e);return;}}async function eq(e,t,r=sK){let n=await ej(e,r);return void 0!==n&&""!==t&&-1!==p(ie)(n,t);}function eB(){switch(process.platform){case"win32":default:return"17.0.6";case"linux":return"17.0.6-ubuntu-22.04";case"darwin":return"15.0.3";}}async function eG(e,t,r){let n=await eX(e,t,r);p(ry)(void 0!==n.bin);let i=n.bin;if(void 0===(await eW(i)))throw Error("pip was not installed correctly");return await eH(i),await eV(i),n;}async function eH(e){try{if(!(await e7(e)))try{await e9(e,"pipx",void 0,{upgrade:!0,usePipx:!1});}catch(e){if(null===to("pipx",!1))throw Error("pipx was not installed correctly "+e);}await S(e,["-m","pipx","ensurepath"],{stdio:"inherit"}),await e9(e,"venv",void 0,{upgrade:!1,usePipx:!1});}catch(e){(0,rV.warning)(`Failed to install pipx: ${e.toString()}. Ignoring...`);}}async function eV(e){try{await e9(e,"setuptools",void 0,{upgrade:!0,isLibrary:!0,usePipx:!1}),await e9(e,"wheel",void 0,{upgrade:!0,isLibrary:!0,usePipx:!1});}catch(e){(0,rV.warning)(`Failed to install setuptools or wheel: ${e.toString()}. Ignoring...`);}}async function eX(e,t,r){let n;let i=await eY(t);if(void 0!==i){let e=(0,nq.dirname)(i);n={bin:i,installDir:e,binDir:e};}else{if(rH.GITHUB_ACTIONS)try{(0,rV.info)("Installing python in GitHub Actions");let{setupActionsPython:o}=await rB("fEioR");await o(e,t,r),i=await eY(t);let a=(0,nq.dirname)(i);n={bin:i,installDir:a,binDir:a};}catch(e){(0,rV.warning)(e.toString());}void 0===n&&(n=await ez(t,e));}return(void 0===i||void 0===n.bin)&&(i=await eY(t),n.bin=i),n;}async function ez(e,t){let r;switch(process.platform){case"win32":{e?await eo("python3",t,["--params=/InstallDir:"+e]):await eo("python3",t);let n=await eY(e),i=(0,nq.dirname)(n);await M(i),r={installDir:i,binDir:i,bin:n};break;}case"darwin":{r=await en("python3",t);let e=await S("brew",["--prefix","python"],{stdio:"pipe"}),n=(0,nq.join)(e.stdout,"libexec","bin");await M(n);break;}case"linux":if(ea())r=await ed("python",t);else if(es())r=await el([{name:"python3",version:t}]);else if(ec())r=await H([{name:"python3",version:t},{name:"python-is-python3"}]);else throw Error("Unsupported linux distributions");break;default:throw Error("Unsupported platform");}return r;}async function eY(e){for(let t of["python3","python"]){let r=await eK(t,e);if(void 0!==r)return r;}}async function eK(e,t){try{var r;if(void 0!==t){let r=(0,nq.join)(t,(0,nq.addExeExt)(e));if((await(0,nF.pathExists)(r))&&(await eq(r,sQ.python)))return r;}for(let t of null!==(r=await p(rW)(e,{nothrow:!0,all:!0}))&&void 0!==r?r:[])if(await eq(t,sQ.python))return t;}catch{}}async function eW(e){let t=await eQ();return void 0===t?((0,rV.info)("pip was not found. Installing pip"),await eZ(e),eQ()):t;}async function eQ(){for(let e of["pip3","pip"]){let t=await eJ(e);if(void 0!==t)return t;}}async function eJ(e){try{var t;for(let r of null!==(t=await p(rW)(e,{nothrow:!0,all:!0}))&&void 0!==t?t:[])if(null!==r&&(await eq(r,sQ.pip)))return r;}catch{}}async function eZ(e){(await e0(e))||(await to("pip"),await e0(e));}async function e0(e){try{return await S(e,["-m","ensurepip","-U","--upgrade"],{stdio:"inherit"}),!0;}catch(t){(0,rV.info)(t.toString());try{return await S(e,["-m","pip","install","--upgrade","pip"],{stdio:"inherit"}),!0;}catch(e){(0,rV.info)(e.toString());}}return!1;}async function e1(e){let t=[];"linux"===process.platform?t.push("/home/runner/.local/bin/"):"darwin"===process.platform&&t.push("/usr/local/bin/");let r=(await(0,nW.getExecOutput)(`${e} -c "import sys;print(sys.base_exec_prefix);"`)).stdout.trim();return t.push((0,nq.join)(r,"Scripts"),(0,nq.join)(r,"Scripts","bin"),(0,nq.join)(r,"bin")),[...new Set(t)];}function e3(e,t,r=null){return e2(t)&&"linux"===process.platform&&null!==r&&e in sJ?function(e,t){let r=e[0],n=Object.keys(t).map(e=>parseInt(e,10)).sort((e,t)=>t-e).find(e=>r>=e);return void 0===n?"":t[n];}(r,sJ[e]):e2(t)&&e in sW?sW[e]:"true"===t?"":null!=t?t:"";}function e2(e){return"true"===e||void 0===e;}async function e4(){var e,t;if("linux"!==process.platform)return[];let r=await(e="lsb_release",t=["-a"],new Promise((r,n)=>{rS.execFile(e,t,{encoding:"utf8",shell:!1},(i,o,a)=>{if(i){if("errno"in i&&"ENOENT"===i.code){r(null);return;}n(Error(`Could not execute \`${e} ${t.join(" ")}\`: ${i} (stderr=${a})`));return;}r(o);});}));if(null===r)return[];let n=null,i=null,o=!1;for(let e of r.split("\n")){let t=e.match(/^Distributor ID:\s*(.+)$/);if(null!==t){if("Ubuntu"!==t[1])return[];o=!0;}let r=e.match(/^Description:\s*Ubuntu\s+(\d+)\.(\d+)(?:\.(\d+))?/);r&&(n=r);let a=e.match(/^Release:\s*(\d+)\.(\d+)(?:\.(\d+))?$/);if(a&&(i=a),o&&n&&i)break;}if(!o)return[];for(let e of[n,i])if(e){let t=[e[1],e[2]];return e[3]&&t.push(e[3]),t.map(e=>parseInt(e,10));}return[];}async function e5(){try{if(!ec())return null;{try{null===p(rW).sync("lsb_release",{nothrow:!0})&&(await H([{name:"lsb-release"}]));}catch{return e6();}let e=await(0,ir.getUbuntuVersion)();if(0===e.length)return e6();return e;}}catch(e){return(0,rV.warning)(e.toString()),null;}}function e6(){let e=p(ig).version().split("."),t=parseInt(e[0].replace("#",""),10);return[t,parseInt(e[1].replace("~",""),10),parseInt(e[2].split("-")[0],10)];}async function e8(e,t,r={}){return e9(await ll(),e,t,r);}async function e9(e,t,r,n={}){let{usePipx:i=!0,user:o=!0,upgrade:a=!1,isLibrary:s=!1}=n,l=i&&!s&&(await e7(e)),u=l?"pipx":"pip";if(await tn(e,t))try{(0,nP.info)(`Installing ${t} ${null!=r?r:""} via ${u}`);let n=void 0!==r&&""!==r?`${t}==${r}`:t,i=process.env;l&&o&&(i.PIPX_HOME=await la(),i.PIPX_BIN_DIR=await ls()),D(e,["-m",u,...(a?l?["upgrade"]:["install","--upgrade"]:["install"]),...(!l&&o?["--user"]:[]),n],{stdio:"inherit",env:i});}catch(e){if((0,nP.info)(`Failed to install ${t} via ${u}: ${e}.`),(await to(t))===null)throw Error(`Failed to install ${t} via ${u}: ${e}.`);}else if((await to(t))===null)throw Error(`Failed to install ${t} as it was not found via ${u} or the system package manager`);let c=await sZ(e),p=await ti(c,t);return await M(p),{binDir:p};}async function e7(e){return 0===(await S(e,["-m","pipx","--help"],{stdio:"ignore",reject:!1})).exitCode;}async function te(){let e=process.env.PIPX_HOME;if(void 0!==e)return e;let t=C("~/.local/pipx");if(await(0,nF.pathExists)(t))return t;switch(process.platform){case"win32":e=C("~/AppData/Local/pipx");break;case"darwin":e=C("~/Library/Application Support/pipx");break;default:e=C("~/.local/share/pipx");}return await lo(e),await lo((0,nq.join)(e,"trash")),await lo((0,nq.join)(e,"shared")),await lo((0,nq.join)(e,"venv")),e;}async function tt(){if(void 0!==process.env.PIPX_BIN_DIR)return process.env.PIPX_BIN_DIR;let e=C("~/.local/bin");return await M(e),await lo(e),e;}async function tr(){let e=(await eG(e3("python",void 0,await s0()),"",process.arch)).bin;if(void 0===e)throw Error("Python binary was not found");return e;}async function tn(e,t){return 0===(await S(e,["-m","pip","-qq","index","versions",t],{stdio:"ignore",reject:!1})).exitCode;}async function ti(e,t){let r=(await Promise.all(e.map(e=>(0,nF.pathExists)((0,nq.join)(e,(0,nq.addExeExt)(t)))))).findIndex(e=>e);if(-1!==r)return e[r];let n=p(rW).sync((0,nq.addExeExt)(t),{nothrow:!0});return null!==n?(0,nq.dirname)(n):e[e.length-1];}function to(e,t=!0){if("linux"===process.platform){if((0,nP.info)(`Installing ${e} via the system package manager`),ea())return ed(t?"python-"+e:e);if(es())return el([{name:t?"python3-"+e:e}]);if(ec())return H([{name:t?"python3-"+e:e}]);}return null;}async function ta(e,t,r){switch(process.platform){case"win32":return await eo("cppcheck",e),{binDir:await ts()};case"darwin":return en("cppcheck",e);case"linux":if(ea())return ed("cppcheck",e);if(es())return el([{name:"ccache",version:e}]);if(ec())return H([{name:"cppcheck",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function ts(){let e="C:/Program Files/Cppcheck";return await M(e),e;}async function tl(e,t,r){switch(process.platform){case"win32":return await eo("graphviz",e),tu();case"darwin":return en("graphviz",e);case"linux":if(ea())return ed("graphviz",e);if(es())return el([{name:"graphviz",version:e}]);if(ec())return H([{name:"graphviz",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function tu(){if("win32"===process.platform){let e="C:/Program Files/Graphviz/bin";return await M(e),{binDir:e};}throw Error("Unsupported platform");}function tc(e){let t=null,r=null,n=[],i=new ii({locator:{},errorHandler:{warning(e){},error(e){n.push(e);},fatalError(e){n.push(e);}}}).parseFromString(e,"text/xml");if(n.length)throw Error("XML decode error: "+n[0]);let{childNodes:o}=i,a=i.documentElement||null;for(let e=0,n=o.length;n>e;e++){let n=o[e];if(n===a)break;let i=n.toString();/^<\?xml[^>]*\?>$/.test(i)&&(t=i),/^<!DOCTYPE[^>]*>$/.test(i)&&(r=i);}if(!a)throw Error("XML decode error: No document element");return{declaration:t,doctype:r,documentElement:a};}function tp(e){let{childNodes:t}=e,r=[];for(let n=0,i=t.length;i>n;n++){let i=t[n];if("tagName"in i){r.push(i);continue;}let{nodeValue:o}=i;if(o&&!/^\s*$/.test(o))throw Error("Found text children of: "+e.tagName);}return r;}function td(e){let{childNodes:t}=e,r=null;for(let n=0,i=t.length;i>n;n++){if(n)throw Error("Multiple child elements in: "+e.tagName);let i=t[n];if(!("tagName"in i)&&"data"in i&&"nodeValue"in i)r=i;else throw Error("Unexpected child element in: "+e.tagName);}return r;}function tf(e,t){if(e.tagName!==t)throw Error("Unexpected tagName: "+t);}function th(e){let t=e.length,r="";for(let n=0;t>n;){let i=e[n++],o=t>n?e[n++]:null,a=t>n?e[n++]:null,s=i<<16|(o||0)<<8|(a||0);r+=ld[s>>18]+ld[s>>12&lp]+ld[null===o?64:s>>6&lp]+ld[null===a?64:s&lp];}return r;}function tm(e){if("number"==typeof e&&!Number.isInteger(e))throw Error("Value not an integer: "+e);}function tg(e){return e.replace(/\\/g,"/").replace(/([^/])\/+$/,"$1");}function tv(e){return(0,rN.join)(e,"..namedfork","rsrc");}async function tE(e){let t=[],r=0;return await lI(e,new rU.Writable({write(e,n,i){t.push(e),r+=e.length,i();}})),Buffer.concat(t,r);}async function tw(e,t){if(!lC)return;let r=await iL(e,lA|lO);try{await r.chmod(t);}finally{await r.close();}}async function ty(e,t,r){await iH(e,t,r);}async function tb(e,t,r){if(!l_)return;let n=await iL(e,lA|lO);try{await n.utimes(t,r);}finally{await n.close();}}async function tx(e){return ik(e,"buffer");}async function tS(e,t){await iq(t,e);}async function tD(e,t){await iD(e,t);}async function tT(e){return(await i$(e)).sort();}async function tR(e){return iO(e);}async function tN(e){try{return await tR(e);}catch(t){let{code:e}=t;if("ENOENT"===e||"ENOTDIR"===e)return null;throw t;}}async function tI(e,t,r={}){let{ignoreUnreadableDirectories:n}=r,i=(await tT(e)).reverse();for(;i.length;){let r=i.pop(),o=(0,rN.join)(e,r),a=await tR(o),s=await t(r,a);if(null===s)break;if(!1===s||!a.isDirectory())continue;let l=[];try{l=await tT(o);}catch(e){if(!(e&&n&&"EACCES"===e.code))throw e;}for(let e=l.length;e--;)i.push((0,rN.join)(r,l[e]));}}async function tA(e,t){let r=new lM(e);await r.read(async e=>{await e.extract((0,iv.join)(t,e.path));});}function tO(e,t,r){switch(t){case"linux":{let t="doxygen-"+e;return{binRelativeDir:"bin/",binFileName:(0,nq.addExeExt)("doxygen"),extractedFolderName:t,extractFunction:nG.extractTar,url:`https://www.doxygen.nl/files/${t}.linux.bin.tar.gz`};}case"win32":{let t="doxygen-"+e;return{binRelativeDir:"",binFileName:(0,nq.addExeExt)("doxygen"),extractedFolderName:t,extractFunction:eA,url:`https://www.doxygen.nl/files/${t}.windows.x64.bin.zip`};}case"darwin":{let t="Doxygen-"+e;return{binRelativeDir:"bin/",binFileName:(0,nq.addExeExt)("doxygen"),extractedFolderName:t,extractFunction:tA,url:`https://doxygen.nl/files/${t}.dmg`};}default:throw Error(`Unsupported platform '${t}'`);}}async function tC(e,t,r){switch(process.platform){case"win32":{await p(n4)(()=>eo("doxygen.install",e),{name:"doxygen.install",max:4,backoffBase:2e3,report:e=>(0,rV.info)(e)});let t=await t_();return await tl(e3("graphviz",void 0),"",r),{binDir:t};}case"darwin":{let n;try{n=await eD("doxygen",e,tO,t,r);}catch{n=await en("doxygen",void 0);}return lc()[0]>11&&(await tl(e3("graphviz",void 0),"",r)),n;}case"linux":{let n;if(""===e||ea()||es()){if(ea())n=await ed("doxygen",e);else if(es())return el([{name:"doxygen",version:e}]);else if(ec())n=await H([{name:"doxygen",version:e}]);else throw Error("Unsupported linux distributions");}else if(ec())try{n=await eD("doxygen",e,tO,t,r);try{await H([{name:"libclang-cpp9"}]);}catch(e){(0,rV.info)("Failed to download libclang-cpp9 that might be needed for running doxygen. "+e);}}catch(e){(0,rV.notice)(`Failed to download doxygen binary. ${e}. Falling back to apt-get.`),n=await H([{name:"doxygen"}]);}else throw Error("Unsupported linux distributions");return await tl(e3("graphviz",void 0,await s0()),"",r),n;}default:throw Error("Unsupported platform");}}async function t_(){if("win32"===process.platform){for(let e of["C:/ProgramData/chocolatey/bin","C:/Program Files/doxygen/bin","C:/Program Files (x86)/doxygen"])if(await(0,nF.pathExists)((0,nq.join)(e,"doxygen.exe")))return await M(e),e;throw Error("Failed to find doxygen binary");}throw Error("Unsupported platform");}async function tL(){if("darwin"===process.platform)try{let e=await(0,nW.getExecOutput)("xcrun --sdk macosx --show-sdk-path"),t=e.stdout||e.stderr;t?await F("SDKROOT",t.trim()):(0,rV.error)("SDKROOT not set");}catch(e){(0,rV.error)(e);}}function t$(e,t,r){if("win32"===t){let t=lj[e];if(void 0===t)throw Error(`mingw version ${e} is not supported`);return{binRelativeDir:"bin/",binFileName:(0,nq.addExeExt)("g++"),extractedFolderName:"mingw64",extractFunction:eR,url:`https://github.com/brechtsanders/winlibs_mingw/releases/download/${t.releaseName}/winlibs-${"ia32"===r?"i686":"x86_64"}-posix-seh-gcc-${t.fileSuffix}.7z`};}throw Error(`Unsupported platform '${t}'`);}async function tP(e,t,r,n=40){let i;switch(process.platform){case"win32":("arm"===r||"arm64"===r)&&(await eo("gcc-arm-embedded",e));try{i=await eD("g++",e,t$,t,r);}catch(t){(0,rV.info)(`Failed to download g++ binary. ${t}. Falling back to chocolatey.`),i=await tU(e,r);}break;case"darwin":i=await en("gcc",e);break;case"linux":"x64"===r?ea()?i=await ed("gcc",e):es()?i=await el([{name:"gcc",version:e},{name:"gcc-c++",version:e},{name:"libstdc++-devel"}]):ec()&&(i=await H([{name:"gcc",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]},{name:"g++",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]}])):((0,rV.info)(`Install g++-multilib because gcc for ${r} was requested`),ea()?await ed("gcc-multilib",e):ec()&&(await H([{name:"gcc-multilib",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]}])));break;default:throw Error("Unsupported platform for "+r);}if(void 0!==i)return await tF(e,i.binDir,n),i;}async function tk(e,t,r){let n;switch(process.platform){case"win32":case"darwin":return tP(e,t,r);case"linux":ea()?n=await ed("mingw-w64-gcc",e):es()?n=await el([{name:"mingw64-gcc",version:e}]):ec()&&(n=await H([{name:"mingw-w64",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]}]));break;default:throw Error("Unsupported platform for "+r);}if(void 0!==n)return n;}async function tU(e,t){var r,n;let i;if(await eo("mingw",e),"x64"===t&&(await(0,nF.pathExists)("C:/tools/mingw64/bin"))?(i="C:/tools/mingw64/bin",await M(i)):"ia32"===t&&(await(0,nF.pathExists)("C:/tools/mingw32/bin"))?(i="C:/tools/mingw32/bin",await M(i)):(await(0,nF.pathExists)(`${null!==(r=process.env.ChocolateyInstall)&&void 0!==r?r:"C:/ProgramData/chocolatey"}/bin/g++.exe`))&&(i=`${null!==(n=process.env.ChocolateyInstall)&&void 0!==n?n:"C:/ProgramData/chocolatey"}/bin`),void 0!==i)return{binDir:i};}async function tF(e,t,r=40){let n=[];if("win32"===process.platform)n.push(F("CC",(0,nq.addExeExt)(`${t}/gcc`)),F("CXX",(0,nq.addExeExt)(`${t}/g++`)));else{var i;let o=p(ia)(null!==(i=p(n2)(e))&&void 0!==i?i:e);o>=5?(n.push(F("CC",`${t}/gcc-${o}`),F("CXX",`${t}/g++-${o}`)),ec()&&n.push(Z("cc",`${t}/gcc-${o}`,r),Z("cxx",`${t}/g++-${o}`,r),Z("gcc",`${t}/gcc-${o}`,r),Z("g++",`${t}/g++-${o}`,r))):(n.push(F("CC",`${t}/gcc-${e}`),F("CXX",`${t}/g++-${e}`)),ec()&&n.push(Z("cc",`${t}/gcc-${e}`,r),Z("cxx",`${t}/g++-${e}`,r),Z("gcc",`${t}/gcc-${e}`,r),Z("g++",`${t}/g++-${e}`,r)));}n.push(tL()),rH.GITHUB_ACTIONS&&(await tM()),await Promise.all(n);}async function tM(){let e=(0,nq.join)(is,"gcc_matcher.json");if(!(await(0,nF.pathExists)(e)))return(0,rV.warning)("the gcc_matcher.json file does not exist in the same folder as setup-cpp.js");(0,rV.info)("::add-matcher::"+e);}function tj(e,t,r){let n=function(e){switch(e){case"win32":return"win";case"darwin":return"mac";case"linux":return"linux";default:throw Error(`Unsupported platform '${e}'`);}}(t);return{binRelativeDir:"",binFileName:(0,nq.addExeExt)("ninja"),extractedFolderName:"",extractFunction:eA,url:`https://github.com/ninja-build/ninja/releases/download/v${e}/ninja-${n}.zip`};}function tq(e,t,r){return eD("ninja",e,tj,t,r);}function tB(e){return{url:`https://github.com/SimonKagstrom/kcov/releases/download/${e}/kcov-amd64.tar.gz`,extractedFolderName:"",binRelativeDir:"usr/local/bin",binFileName:(0,nq.addExeExt)("kcov"),extractFunction:eO};}function tG(e){return{url:`https://github.com/SimonKagstrom/kcov/archive/refs/tags/${e}.tar.gz`,extractedFolderName:"",binRelativeDir:"build/src",binFileName:(0,nq.addExeExt)("kcov"),extractFunction:tH};}async function tH(e,t){let r=await eO(e,t,["--strip-components=1"]),n=await tV();"linux"===process.platform&&(ea()?await Promise.all([ed("libdwarf"),ed("libcurl-openssl")]):es()?await el([{name:"libdwarf-devel"},{name:"libcurl-devel"}]):ec()&&(await H([{name:"libdw-dev"},{name:"libcurl4-openssl-dev"}])));try{if(null!==p(rW).sync("patch",{nothrow:!0})){let e=(0,nq.join)(il,"gcc13.patch");await S("patch",["-N","-p1","-i",e],{cwd:r,stdio:"inherit"});}else(0,rV.info)("`patch` not found, skipping gcc13.patch, kcov may not build on gcc 13");}catch{}let i=(0,nq.join)(r,"build");return await S(n,["-S",r,"-B",i,"-DCMAKE_BUILD_TYPE=Release","-G","Ninja"],{cwd:r,stdio:"inherit"}),await S(n,["--build",i,"--config","Release"],{cwd:r,stdio:"inherit"}),r;}async function tV(){let e=p(rW).sync("cmake",{nothrow:!0});if(null===e){let{binDir:t}=await e_(e3("cmake",void 0,await s0()),(0,nq.join)(C("~"),"cmake"),"");e=(0,nq.join)(t,"cmake");}return null===p(rW).sync("ninja",{nothrow:!0})&&(await tq(e3("ninja",void 0,await s0()),(0,nq.join)(C("~"),"ninja"),"")),e;}async function tX(e,t,r){var n;let i;if("linux"!==process.platform){(0,rV.info)("Kcov is not supported on non-linux");return;}let o=e.split("-"),a=(n=o[0]).match(/^v/)?n:"v"+n,s=o[1],l=parseInt(a.replace(/^v/,""),10);return 38===l&&(a="v38"),"binary"===s&&l>=39?(i=await eD("kcov",a,tB,t,r),ea()?await ed("binutils"):es()?await el([{name:"binutils"}]):ec()&&(await H([{name:"libbinutils"}]))):i=await eD("kcov",a,tG,t,r),i;}function tz(e){if(Object.values(lV).includes(e));else if(e in lV)return lV[e];return e;}function tY(e){let t;let r=tz(e);if(r){let e=r.split(".")[0]+".9";t=`-version "${r},${e}"`;}else t="-latest";let n=function(e,t){try{return rS.execSync(`vswhere -products * ${t} -prerelease -property installationPath`).toString().trim()+"\\"+e;}catch(e){nP.warning("vswhere failed: "+e);}return null;}("VC\\Auxiliary\\Build\\vcvarsall.bat",t);if(n&&iE.existsSync(n))return nP.info("Found with vswhere: "+n),n;nP.info("Not found with vswhere");let i=e?[function(e){if(Object.keys(lV).includes(e));else for(let[t,r]of Object.entries(lV))if(r===e)return t;return e;}(e)]:lH;for(let e of lB)for(let t of i)for(let r of lG)if(n=`${e}\\Microsoft Visual Studio\\${t}\\${r}\\VC\\Auxiliary\\Build\\vcvarsall.bat`,nP.info("Trying standard location: "+n),iE.existsSync(n))return nP.info("Found standard location: "+n),n;if(nP.info("Not found in standard locations"),n=`${lq}\\Microsoft Visual C++ Build Tools\\vcbuildtools.bat`,iE.existsSync(n))return nP.info("Found VS 2015: "+n),n;throw nP.info("Not found in VS 2015 location: "+n),Error("Microsoft Visual Studio not found");}async function tK(e,t,r,n,i,o,a){void 0!==t&&(await(0,nF.pathExists)(t))&&((0,rV.info)(`Adding ${t} to PATH`),await F("VCTargetsPath",t)),ip(function(e){switch(e){case"x32":case"32":case"ia32":return"x86";case"64":return"x64";default:return e;}}(r),i,n,o,a,e);}async function tW(e,t,r,n,i,o,a,s=lQ){(0,nP.startGroup)(`Installing ${e} ${t}`);let l=!1;try{l=await function(e,t){let r;let{milliseconds:n,fallback:i,message:o,customTimers:a={setTimeout:setTimeout,clearTimeout:clearTimeout}}=t,s=new Promise((s,l)=>{if("number"!=typeof n||1!==Math.sign(n))throw TypeError(`Expected \`milliseconds\` to be a positive number, got \`${n}\``);if(t.signal){let{signal:e}=t;e.aborted&&l(lW(e)),e.addEventListener("abort",()=>{l(lW(e));});}if(n===Number.POSITIVE_INFINITY){e.then(s,l);return;}let u=new lz();r=a.setTimeout.call(void 0,()=>{if(i){try{s(i());}catch(e){l(e);}return;}"function"==typeof e.cancel&&e.cancel(),!1===o?s():o instanceof Error?l(o):(u.message=null!=o?o:`Promise timed out after ${n} milliseconds`,l(u));},n),(async()=>{try{s(await e);}catch(e){l(e);}})();}).finally(()=>{s.clear();});return s.clear=()=>{a.clearTimeout.call(void 0,r),r=void 0;},s;}(tQ(e,t,r,n,l,i,o),{milliseconds:s,message:`Timeout while installing ${e} ${t}. You can increase the timeout from options`});}catch(t){(0,rV.error)(t),a.push(`${e} failed to install`);}return(0,nP.endGroup)(),l;}async function tQ(e,t,r,n,i,o,a){let s;if("vcvarsall"===e)await tK(e3(e,t,r),void 0,n,void 0,void 0,!1,!1);else{let a=ut[e];i=["llvm","clangformat","clangtidy"].includes(e);let l=(0,nq.join)(o,i?"llvm":e);s=await a(e3(e,t,r),l,n);}return a.push(rd(e,s)),i;}async function tJ(e,t=0){let r="/usr/lib/llvm-"+e;await H([{name:"curl"}]),await S("curl",["-LJO","https://apt.llvm.org/llvm.sh"],{cwd:"/tmp"});let n=await tZ("/tmp/llvm.sh","/tmp/llvm-setup-cpp.sh",e,t);return await H(n),await l0("/tmp/llvm-setup-cpp.sh","755"),await N("bash",["/tmp/llvm-setup-cpp.sh",""+e,...(0===t?["all"]:[])],{stdio:"inherit",shell:!0,timeout:lQ}),await M(`${r}/bin`),{installDir:""+r,binDir:`${r}/bin`,bin:`${r}/bin/clang++`};}async function tZ(e,t,r,n){var i,o,a,s,l;let u=await lJ(e,"utf-8");return o=n,a=u=(i=u,u=process.env.NODE_DEBUG?i:i.replace(/set -eux/g,"set -eu")).replace(/add-apt-repository "\${REPO_NAME}"/g,'add-apt-repository -y "${REPO_NAME}"'),s=r,u=1===o?a.replace(/ -y \$PKG/g," -y clang-format-"+s):a,l=u=await t0(u),u=z()?l.replace(/apt-get/g,"nala"):l,await lZ(t,u),[{name:"lsb-release"},{name:"wget"},{name:"software-properties-common"},{name:"gnupg"}];}async function t0(e){let t=e.replace(/apt-get install -y/g,'apt-get install -o Dpkg::Options::="--force-overwrite" -y --fix-broken');return await Promise.all(["libc++-$LLVM_VERSION-dev","libc++abi-$LLVM_VERSION-dev","libunwind-$LLVM_VERSION-dev"].map(async e=>{let r=e.replace("$LLVM_VERSION","*");(await ee(r))&&((0,rF.info)("Removing conflicting package "+r),t=t.replace(e,""));})),t;}function t1(e,t,r){let n=`${t}${e}${r}`;return`https://github.com/llvm/llvm-project/releases/download/llvmorg-${e}/${n}`;}function t3(e,t,r){let n=`${t}${e}${r}`;return`https://releases.llvm.org/${e}/${n}`;}async function t2(e){let t;if(l3.has(e))return null;let r="LLVM-",n=p(n3)(e,"3.7.0")?"-win32.exe":"-win64.exe",i=p(n3)(e,"9.0.1"),o=!1;return i&&(t=t3(e,r,n),(await n7(t))||(o=!0)),(o||!i)&&(t=t1(e,r,n)),t;}function t4(e,t){switch(e){case"darwin":return function(e){if(l2.has(e))return null;let t="9.0.0"===e?"-darwin-apple":"-apple-darwin",r="clang+llvm-",n=`-x86_64${t}.tar.xz`;return p(n3)(e,"9.0.1")?t3(e,r,n):t1(e,r,n);}(t);case"linux":return function(e){let t,r,n=e,i=l4.get(n);if(void 0!==i&&(n=i),n.includes("ubuntu")){let e=n.replace(/-ubuntu-.*/,"");if(!l1.has(e))throw Error("Unsupported Ubuntu version: "+e);t=n.replace(e,""),n=eF(l1,e)[0];}else""!==n&&n in l5?t=l5[n]:(t=l5[l6],(0,rV.warning)(`Falling back to LLVM version ${l6} ${t} for the Ubuntu.`));let o="clang+llvm-";return(r="5.0.0"===n?`-linux-x86_64${t}.tar.xz`:t.includes("-rhel86")?`-x86_64-unknown-linux-gnu${t}.tar.xz`:`-x86_64-linux-gnu${t}.tar.xz`,p(n3)(n,"9.0.1"))?t3(n,o,r):t1(n,o,r);}(t);case"win32":return t2(t);default:return null;}}async function t5(e,t,r){let[n,i]=await eM(l1,t,e,t4);return(0,rV.info)("specific llvm version: "+n),{url:i,extractedFolderName:"",binRelativeDir:"bin",binFileName:(0,nq.addExeExt)("clang"),extractFunction:"win32"===t?eI:(e,t)=>eO(e,t,["--strip-components=1"])};}async function t6(e,t,r){var n;let i=await l8(e,t,r);return await rt(null!==(n=i.installDir)&&void 0!==n?n:t),i;}async function t8(e,t,r){let[n,i,o]=await Promise.all([t9(e,t,r),l7(r),rr()]);return n;}async function t9(e,t,r,n=id.All){let i=parseInt(function(e){if(null===p(it)(e))try{let t=p(n2)(e);if(null!==t)return(0,rV.info)(`Coerced version '${e}' to '${t}'`),t.version;}catch(e){}return e;}(e).split(".")[0],10);try{if(ec())return await tJ(i,n);}catch(e){(0,rV.info)("Failed to install llvm via system package manager "+e);}let o=await eD("llvm",e,t5,t,r);return await l9(i),o;}async function t7(e){ec()&&(e<=10?await H([{name:"libtinfo5"}]):await H([{name:"libtinfo-dev"}]));}async function re(e){"linux"===process.platform&&(await tP(e3("gcc",void 0,await s0()),"",e,40));}async function rt(e){var t,r;let n=null!==(t=process.env.LD_LIBRARY_PATH)&&void 0!==t?t:"",i=null!==(r=process.env.DYLD_LIBRARY_PATH)&&void 0!==r?r:"",o=[F("LLVM_PATH",e),F("LD_LIBRARY_PATH",`${e}/lib${iv.delimiter}${n}`),F("DYLD_LIBRARY_PATH",`${e}/lib${iv.delimiter}${i}`),F("LDFLAGS",`-L"${e}/lib"`),F("CPPFLAGS",`-I"${e}/include"`),F("CC",(0,nq.addExeExt)(`${e}/bin/clang`)),F("CXX",(0,nq.addExeExt)(`${e}/bin/clang++`)),F("LIBRARY_PATH",`${e}/lib`),tL()];ec()&&o.push(Z("cc",`${e}/bin/clang`,60),Z("cxx",`${e}/bin/clang++`,60),Z("clang",`${e}/bin/clang`),Z("clang++",`${e}/bin/clang++`),Z("lld",`${e}/bin/lld`),Z("ld.lld",`${e}/bin/ld.lld`),Z("llvm-ar",`${e}/bin/llvm-ar`)),await Promise.all(o);}async function rr(){if(rH.GITHUB_ACTIONS){let e=(0,nq.join)(ih,"llvm_matcher.json");if(!(await(0,nF.pathExists)(e)))return(0,rV.warning)("the llvm_matcher.json file does not exist in the same folder as setup-cpp.js");(0,rV.info)("::add-matcher::"+e);}}async function rn(e,t,r){switch(process.platform){case"win32":return eo("make",e);case"darwin":return await en("make",e),await M("/usr/local/opt/make/libexec/gnubin"),{binDir:"/usr/local/opt/make/libexec/gnubin"};case"linux":if(ea())return ed("make",e);if(es())return el([{name:"make",version:e}]);if(ec())return H([{name:"make",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function ri(e,t,r,n,i,o){let a,s;if("win32"!==process.platform)return;let l=iu(e);(0,rV.info)(`Checking if MSVC ${l} is already installed`);let u=!1;try{let e=ic(l);u=!0,(0,rV.info)("Found the pre-installed version of MSVC at "+e);}catch{}if(!u)try{"14.0"===l?(a="14.0",await eo("visualcpp-build-tools","14.0.25420.1",["--ignore-dependencies"]),s="C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140"):"15.0"===l?(a="14.16",await eo("visualstudio2017buildtools","15.9.41.0",[]),s="C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16"):"16.0"===l?(a="14.29",await eo("visualstudio2019buildtools","16.11.7.0",[]),s="C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133"):"17.0"===l?(a=void 0,await eo("visualstudio2022buildtools","117.0.5.0",[]),s=void 0):(0,rV.error)(`The given MSVC versions ${e} is not supported yet.`);}catch(e){(0,rV.error)(e);}await tK(l,s,r,a,n,i,o),rH.GITHUB_ACTIONS&&(await ro());}async function ro(){let e=(0,nq.join)(im,"msvc_matcher.json");if(!(await(0,nF.pathExists)(e)))return(0,rV.warning)("the msvc_matcher.json file does not exist in the same folder as setup-cpp.js");(0,rV.info)("::add-matcher::"+e);}async function ra(e,t,r){if(!ec())return;if("string"==typeof a)return{binDir:a};let n=p(rW).sync("nala",{nothrow:!0});if(null!==n)return{binDir:a=(0,nq.dirname)(n)};let i=await J("volian-archive-scar-unstable.gpg","https://deb.volian.org/volian/scar.key");R("/bin/bash",["-c",`echo "deb [signed-by=${i}] http://deb.volian.org/volian/ scar main" | tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list`]);try{"legacy"!==e?await H([{name:"nala"}],!0):await H([{name:"nala-legacy"}],!0);}catch(e){await H([{name:"nala-legacy"}],!0);}return{binDir:a="/usr/bin"};}async function rs(e,t,r){if("win32"===process.platform)return await eo("opencppcoverage",e),{binDir:await rl()};}async function rl(){let e="C:/Program Files/OpenCppCoverage";return await M(e),e;}async function ru(e,t,r){switch(process.platform){case"win32":{await eo("powershell-core",e);let t="C:/Program Files/PowerShell/7";return await M(t),{binDir:t};}case"darwin":return en("powershell",e,["--cask"]);case"linux":if(ea())return ed("powershell-bin",e,"yay");if(es())return el([{name:"curl"}]),R("/bin/bash",["-c","curl https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo"]),el([{name:"powershell",version:e}]);if(ec()){await H([{name:"curl"}]);let t=await s0(),r=`${t[0]}.0${t[1]}`;return R("curl",["-LJO",`https://packages.microsoft.com/config/ubuntu/${r}/packages-microsoft-prod.deb`]),R("dpkg",["-i","packages-microsoft-prod.deb"]),H([{name:"powershell",version:e}],!0);}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}function rc(e,t,r){var n;let i="win32"===(n=t)?"windows":n,o=function(e){switch(e){case"x64":return"amd64";case"ia32":case"x86":case"i386":case"x32":return"386";default:return e;}}(r),a="win32"===t;return{binRelativeDir:"",binFileName:(0,nq.addExeExt)("task"),extractedFolderName:"",extractFunction:a?eA:eO,url:`https://github.com/go-task/task/releases/download/v${e}/task_${i}_${o}.${a?"zip":"tar.gz"}`};}async function rp(e,t,r){return ue&&null!==p(rW).sync("vcpkg",{nothrow:!0})?{binDir:(0,nq.dirname)(p(rW).sync("vcpkg"))}:("linux"===process.platform&&(ea()?await Promise.all([ed("curl"),ed("zip"),ed("unzip"),ed("tar"),ed("git"),ed("pkg-config")]):es()?await el([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}]):ec()&&(await H([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}]))),(await(0,nF.pathExists)((0,nq.join)(t,(0,nq.addShExt)("bootstrap-vcpkg",".bat"))))?(0,rV.notice)(`Vcpkg folder already exists at ${t}. This might mean that ~/vcpkg is restored from the cache.`):D("git",["clone","https://github.com/microsoft/vcpkg"],{cwd:(0,nq.dirname)(t),stdio:"inherit"}),D((0,nq.addShExt)((0,nq.addShRelativePrefix)("bootstrap-vcpkg"),".bat"),{cwd:t,shell:!0,stdio:"inherit"}),await O(t),await M(t),ue=!0,{binDir:t});}function rd(e,t){let r=`\u{2705} ${e} was installed successfully:`;return void 0===t||("installDir"in t&&(r+="\n- The installation directory is "+t.installDir),""!==t.binDir&&(r+="\n- The binary directory is "+t.binDir)),r;}async function rf(e,t,r,n,i,o,a){try{let{compiler:s,version:l}=function(e){let t=e.split("-"),r=t[0];if(1 in t){let e=t[1];return null!==p(it)(e)||(0,rV.info)(`Invalid semver version ${e} used for the compiler.`),{compiler:r,version:e};}return{compiler:r,version:void 0};}(e);switch((0,nP.startGroup)(`Installing ${s} ${null!=l?l:""}`),s){case"llvm":case"clang":case"clang++":{let e=await t6(e3("llvm",l,t),(0,iv.join)(r,"llvm"),n);await F("GCOV","llvm-cov gcov"),i.push(rd("llvm",e));break;}case"gcc":case"mingw":case"cygwin":case"msys":{let e="mingw"===s?e3("mingw",l,t):e3("gcc",l,t),a="mingw"===s?await tk(e,(0,iv.join)(r,"gcc"),n):await tP(e,(0,iv.join)(r,"gcc"),n);o&&(await F("CPPFLAGS","")),await function(e){let t=p(it)(e),r=null!==t?p(ia)(t):e;return F("GCOV",""!==r?"gcov-"+r:"gcov");}(e),i.push(rd("gcc",a));break;}case"cl":case"msvc":case"msbuild":case"vs":case"visualstudio":case"visualcpp":case"visualc++":{let e=await ri(e3("msvc",l,t),(0,iv.join)(r,"msvc"),n);o&&(await F("CPPFLAGS","")),i.push(rd("msvc",e));break;}case"appleclang":case"applellvm":(0,nP.notice)("Assuming apple-clang is already installed"),await Promise.all([F("CC","clang"),F("CXX","clang++")]),i.push(rd("apple-clang",void 0));break;default:a.push("Unsupported compiler "+s);}}catch(t){(0,rV.error)(t),a.push("Failed to install the "+e);}(0,nP.endGroup)();}async function rh(e){var t,r,n;let i,o,a=Promise.resolve();rH.GITHUB_ACTIONS||(a=$(),process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS="true");let s=function(e,t){t=t||{};var r,n,i,o,a,s={_:[]},l=0,u=0,c=0,p=(e=e||[]).length;let d=void 0!==t.alias,f=void 0!==t.unknown,h=void 0!==t.default;if(t.alias=t.alias||{},t.string=P(t.string),t.boolean=P(t.boolean),d)for(r in t.alias)for(l=0,n=t.alias[r]=P(t.alias[r]);l<n.length;l++)(t.alias[n[l]]=n.concat(r)).splice(l,1);for(l=t.boolean.length;l-->0;)for(u=(n=t.alias[t.boolean[l]]||[]).length;u-->0;)t.boolean.push(n[u]);for(l=t.string.length;l-->0;)for(u=(n=t.alias[t.string[l]]||[]).length;u-->0;)t.string.push(n[u]);if(h){for(r in t.default)if(o=typeof t.default[r],n=t.alias[r]=t.alias[r]||[],void 0!==t[o])for(t[o].push(r),l=0;l<n.length;l++)t[o].push(n[l]);}let m=f?Object.keys(t.alias):[];for(l=0;p>l;l++){if("--"===(i=e[l])){s._=s._.concat(e.slice(++l));break;}for(u=0;u<i.length&&45===i.charCodeAt(u);u++);if(0===u)s._.push(i);else if("no-"===i.substring(u,u+3)){if(o=i.substring(u+3),f&&!~m.indexOf(o))return t.unknown(i);s[o]=!1;}else{for(c=u+1;c<i.length&&61!==i.charCodeAt(c);c++);for(o=i.substring(u,c),a=i.substring(++c)||l+1===p||45===(""+e[l+1]).charCodeAt(0)||e[++l],n=2===u?[o]:o,c=0;c<n.length;c++){if(o=n[c],f&&!~m.indexOf(o))return t.unknown("-".repeat(u)+o);!function(e,t,r,n){var i,o=e[t],a=~n.string.indexOf(t)?null==r||!0===r?"":r+"":"boolean"==typeof r?r:~n.boolean.indexOf(t)?"false"!==r&&("true"===r||(e._.push(0*(i=+r)==0?i:r),!!r)):0*(i=+r)==0?i:r;e[t]=null==o?a:Array.isArray(o)?o.concat(a):[o,a];}(s,o,c+1<n.length||a,t);}}}if(h)for(r in t.default)void 0===s[r]&&(s[r]=t.default[r]);if(d)for(r in s)for(n=t.alias[r]||[];n.length>0;)s[n.shift()]=s[r];return s;}(e,{string:[...un,"timeout"],default:Object.fromEntries(un.map(e=>[e,function(e){let t=(0,nP.getInput)(e.toLowerCase());if("false"!==t&&""!==t)return t;}(e)])),alias:{h:"help"},boolean:"help"});s.help&&((0,rV.info)(`
setup-cpp [options]
setup-cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true
Install all the tools required for building and testing C++/C projects.
--architecture the cpu architecture to install the tools for. By default it uses the current CPU architecture.
--timeout the timeout for the installation of each tool in minutes. By default it is 10 minutes.
--compiler the <compiler> to install.
You can specify the version instead of specifying just the name e.g: --compiler 'llvm-13.0.0'
--$tool_name pass "true" or pass the <version> you would like to install for this tool. e.g. --conan true or --conan "1.42.1"
All the available tools:
`),console.table({"compiler and analyzer":{tools:"--llvm, --gcc, --msvc, --vcvarsall, --cppcheck, --clangtidy, --clangformat"},"build system":{tools:"--cmake, --ninja, --meson, --make, --task, --bazel"},"package manager":{tools:"--vcpkg, --conan, --choco, --brew, --nala"},cache:{tools:"--cppcache, --sccache"},documentation:{tools:"--doxygen, --graphviz"},coverage:{tools:"--gcovr, --opencppcoverage, --kcov"},other:{tools:"--python, --powershell, --sevenzip"}},["tools"]));let l=null!==(t=s.architecture)&&void 0!==t?t:process.arch,u=null!==(r=process.env.SETUP_CPP_DIR)&&void 0!==r?r:C("~"),c=[],d=[],f=rY.create({autoloadLocales:!0});rY.addLocale(p(rK)),rX.addLocale(p(rz));let h=await s0();if(!function(e,t){let r=t.filter(t=>void 0!==e[t]),n=r.filter(t=>!e2(e[t])),i=n.length>=1?e[n[0]]:"true";return!n.some(t=>e[t]!==i)&&(r.forEach(t=>{e[t]=i;}),!0);}(s,["llvm","clangtidy","clangformat"]))return(0,rV.error)("The same version must be used for llvm, clangformat and clangtidy"),1;ea()&&"string"==typeof s.cppcheck&&"string"==typeof s.gcovr&&((0,rV.info)("installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux"),await ed("python-pygments"));let m=!1,g=!1;for(let e of ur){if(rH.isCI&&0!==d.length){g=!0;break;}let t=s[e];void 0!==t&&(i=Date.now(),m=await tW(e,t,h,l,u,c,d,6e4*parseFloat(null!==(n=s.timeout)&&void 0!==n?n:"20")),o=Date.now(),(0,rV.info)("took "+(f.format(i,o)||"0 seconds")));}if(!g){let e=s.compiler;if(void 0!==e){let t=Date.now();await rf(e,h,u,l,c,m,d);let r=Date.now();(0,rV.info)("took "+(f.format(t,r)||"0 seconds"));}}if(await G(),0===c.length&&0===d.length)return(0,rV.warning)("setup-cpp was called without any arguments. Nothing to do."),0;if(c.forEach(e=>(0,rV.success)(e)),d.forEach(e=>(0,rV.error)(e)),(0,rV.info)("setup-cpp finished"),!rH.GITHUB_ACTIONS)switch(process.platform){case"win32":(0,rV.warning)("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":(0,rV.warning)("Run `source ~/.cpprc` or restart your shell to update the environment.");}return await a,0===d.length?0:1;}var rm,rg,rv,rE,rw,ry,rb,rx,rS,rD,rT,rR,rN,rI,rA,rO,rC,r_,rL,r$,rP,rk,rU,rF,rM,rj,rq,rB,rG,rH,rV,rX,rz,rY,rK,rW,rQ,rJ,rZ,r0,r1,r3,r2,r4,r5,r6,r8,r9,r7,ne,nt,nr,nn,ni,no,na,ns,nl,nu,nc,np,nd,nf,nh,nm,ng,nv,nE,nw,ny,nb,nx,nS,nD,nT,nR,nN,nI,nA,nO,nC,n_,nL,n$,nP,nk,nU,nF,nM,nj,nq,nB,nG,nH,nV,nX,nz,nY,nK,nW,nQ,nJ,nZ,n0,n1,n3,n2,n4,n5,n6,n8,n9,n7,ie,it,ir,ii,io,ia,is,il,iu,ic,ip,id,ih,im,ig=require("os"),iv=require("path"),iE=require("fs"),iw=require("crypto"),iy=require("http"),ib=require("https");require("net"),rE=require("tls"),rw=require("events"),ry=require("assert"),rb=require("util"),rx=require("fs"),rS=require("child_process"),rD=require("string_decoder"),rT=require("timers"),rR=require("buffer"),rN=require("path"),rI=require("child_process"),rA=require("process"),rO=require("url"),rC=require("os"),r_=require("buffer"),rL=require("stream"),r$=require("util"),rP=require("process"),rk=require("url"),rU=require("stream"),rF=require("console"),rj={},rq={},null==(rB=(rM=globalThis).parcelRequire810d)&&((rB=function(e){if(e in rj)return rj[e].exports;if(e in rq){var t=rq[e];delete rq[e];var r={id:e,exports:{}};return rj[e]=r,t.call(r.exports,r,r.exports),r.exports;}var n=Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n;}).register=function(e,t){rq[e]=t;},rM.parcelRequire810d=rB),(rG=rB.register)("dAuy6",function(e,t){var r;function n(e){return"string"==typeof e?!!i[e]:"env"in e?i[e.env]&&i[e.env].includes(e.includes):"any"in e?e.any.some(function(e){return!!i[e];}):Object.keys(e).every(function(t){return i[t]===e[t];});}r=rB("5vZJI");let i=process.env;Object.defineProperty(e.exports,"_vendors",{value:r.map(function(e){return e.constant;})}),e.exports.name=null,e.exports.isPR=null,r.forEach(function(t){let r=(Array.isArray(t.env)?t.env:[t.env]).every(function(e){return n(e);});if(e.exports[t.constant]=r,r)switch(e.exports.name=t.name,typeof t.pr){case"string":e.exports.isPR=!!i[t.pr];break;case"object":"env"in t.pr?e.exports.isPR=t.pr.env in i&&i[t.pr.env]!==t.pr.ne:"any"in t.pr?e.exports.isPR=t.pr.any.some(function(e){return!!i[e];}):e.exports.isPR=n(t.pr);break;default:e.exports.isPR=null;}}),e.exports.isCI=!!("false"!==i.CI&&(i.BUILD_ID||i.BUILD_NUMBER||i.CI||i.CI_APP_ID||i.CI_BUILD_ID||i.CI_BUILD_NUMBER||i.CI_NAME||i.CONTINUOUS_INTEGRATION||i.RUN_ID||e.exports.name));}),rG("5vZJI",function(e,t){e.exports=JSON.parse('[{"name":"Agola CI","constant":"AGOLA","env":"AGOLA_GIT_REF","pr":"AGOLA_PULL_REQUEST_ID"},{"name":"Appcircle","constant":"APPCIRCLE","env":"AC_APPCIRCLE"},{"name":"AppVeyor","constant":"APPVEYOR","env":"APPVEYOR","pr":"APPVEYOR_PULL_REQUEST_NUMBER"},{"name":"AWS CodeBuild","constant":"CODEBUILD","env":"CODEBUILD_BUILD_ARN"},{"name":"Azure Pipelines","constant":"AZURE_PIPELINES","env":"TF_BUILD","pr":{"BUILD_REASON":"PullRequest"}},{"name":"Bamboo","constant":"BAMBOO","env":"bamboo_planKey"},{"name":"Bitbucket Pipelines","constant":"BITBUCKET","env":"BITBUCKET_COMMIT","pr":"BITBUCKET_PR_ID"},{"name":"Bitrise","constant":"BITRISE","env":"BITRISE_IO","pr":"BITRISE_PULL_REQUEST"},{"name":"Buddy","constant":"BUDDY","env":"BUDDY_WORKSPACE_ID","pr":"BUDDY_EXECUTION_PULL_REQUEST_ID"},{"name":"Buildkite","constant":"BUILDKITE","env":"BUILDKITE","pr":{"env":"BUILDKITE_PULL_REQUEST","ne":"false"}},{"name":"CircleCI","constant":"CIRCLE","env":"CIRCLECI","pr":"CIRCLE_PULL_REQUEST"},{"name":"Cirrus CI","constant":"CIRRUS","env":"CIRRUS_CI","pr":"CIRRUS_PR"},{"name":"Codefresh","constant":"CODEFRESH","env":"CF_BUILD_ID","pr":{"any":["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{"name":"Codemagic","constant":"CODEMAGIC","env":"CM_BUILD_ID","pr":"CM_PULL_REQUEST"},{"name":"Codeship","constant":"CODESHIP","env":{"CI_NAME":"codeship"}},{"name":"Drone","constant":"DRONE","env":"DRONE","pr":{"DRONE_BUILD_EVENT":"pull_request"}},{"name":"dsari","constant":"DSARI","env":"DSARI"},{"name":"Earthly","constant":"EARTHLY","env":"EARTHLY_CI"},{"name":"Expo Application Services","constant":"EAS","env":"EAS_BUILD"},{"name":"Gerrit","constant":"GERRIT","env":"GERRIT_PROJECT"},{"name":"Gitea Actions","constant":"GITEA_ACTIONS","env":"GITEA_ACTIONS"},{"name":"GitHub Actions","constant":"GITHUB_ACTIONS","env":"GITHUB_ACTIONS","pr":{"GITHUB_EVENT_NAME":"pull_request"}},{"name":"GitLab CI","constant":"GITLAB","env":"GITLAB_CI","pr":"CI_MERGE_REQUEST_ID"},{"name":"GoCD","constant":"GOCD","env":"GO_PIPELINE_LABEL"},{"name":"Google Cloud Build","constant":"GOOGLE_CLOUD_BUILD","env":"BUILDER_OUTPUT"},{"name":"Harness CI","constant":"HARNESS","env":"HARNESS_BUILD_ID"},{"name":"Heroku","constant":"HEROKU","env":{"env":"NODE","includes":"/app/.heroku/node/bin/node"}},{"name":"Hudson","constant":"HUDSON","env":"HUDSON_URL"},{"name":"Jenkins","constant":"JENKINS","env":["JENKINS_URL","BUILD_ID"],"pr":{"any":["ghprbPullId","CHANGE_ID"]}},{"name":"LayerCI","constant":"LAYERCI","env":"LAYERCI","pr":"LAYERCI_PULL_REQUEST"},{"name":"Magnum CI","constant":"MAGNUM","env":"MAGNUM"},{"name":"Netlify CI","constant":"NETLIFY","env":"NETLIFY","pr":{"env":"PULL_REQUEST","ne":"false"}},{"name":"Nevercode","constant":"NEVERCODE","env":"NEVERCODE","pr":{"env":"NEVERCODE_PULL_REQUEST","ne":"false"}},{"name":"Prow","constant":"PROW","env":"PROW_JOB_ID"},{"name":"ReleaseHub","constant":"RELEASEHUB","env":"RELEASE_BUILD_ID"},{"name":"Render","constant":"RENDER","env":"RENDER","pr":{"IS_PULL_REQUEST":"true"}},{"name":"Sail CI","constant":"SAIL","env":"SAILCI","pr":"SAIL_PULL_REQUEST_NUMBER"},{"name":"Screwdriver","constant":"SCREWDRIVER","env":"SCREWDRIVER","pr":{"env":"SD_PULL_REQUEST","ne":"false"}},{"name":"Semaphore","constant":"SEMAPHORE","env":"SEMAPHORE","pr":"PULL_REQUEST_NUMBER"},{"name":"Sourcehut","constant":"SOURCEHUT","env":{"CI_NAME":"sourcehut"}},{"name":"Strider CD","constant":"STRIDER","env":"STRIDER"},{"name":"TaskCluster","constant":"TASKCLUSTER","env":["TASK_ID","RUN_ID"]},{"name":"TeamCity","constant":"TEAMCITY","env":"TEAMCITY_VERSION"},{"name":"Travis CI","constant":"TRAVIS","env":"TRAVIS","pr":{"env":"TRAVIS_PULL_REQUEST","ne":"false"}},{"name":"Vela","constant":"VELA","env":"VELA","pr":{"VELA_PULL_REQUEST":"1"}},{"name":"Vercel","constant":"VERCEL","env":{"any":["NOW_BUILDER","VERCEL"]},"pr":"VERCEL_GIT_PULL_REQUEST_ID"},{"name":"Visual Studio App Center","constant":"APPCENTER","env":"APPCENTER_BUILD_ID"},{"name":"Woodpecker","constant":"WOODPECKER","env":{"CI":"woodpecker"},"pr":{"CI_BUILD_EVENT":"pull_request"}},{"name":"Xcode Cloud","constant":"XCODE_CLOUD","env":"CI_XCODE_PROJECT","pr":"CI_PULL_REQUEST_NUMBER"},{"name":"Xcode Server","constant":"XCODE_SERVER","env":"XCS"}]');}),rG("hHq4F",function(e,t){var r,n;function i(e){return n.GITHUB_ACTIONS?r.error(e):console.log(`\x1b[31m${e}\x1b[0m`);}function o(e){return console.log(`\x1b[32m${e}\x1b[0m`);}function a(e){return n.GITHUB_ACTIONS?r.warning(e):console.log(`\x1b[33m${e}\x1b[0m`);}function s(e){return n.GITHUB_ACTIONS?r.notice(e):console.log(`\x1b[94m${e}\x1b[0m`);}function l(e){return n.GITHUB_ACTIONS?r.info(e):console.log(e);}c(e.exports,"error",()=>i),c(e.exports,"success",()=>o),c(e.exports,"warning",()=>a),c(e.exports,"notice",()=>s),c(e.exports,"info",()=>l),r=rB("1o3Gj"),n=rB("dAuy6");}),rG("1o3Gj",function(e,t){var r,n,i,o,a,s,l,u,c,p,d,f;function h(e,t){let r=process.env["INPUT_"+e.replace(/ /g,"_").toUpperCase()]||"";if(t&&t.required&&!r)throw Error("Input required and not supplied: "+e);return t&&!1===t.trimWhitespace?r:r.trim();}function m(e,t={}){a.issueCommand("error",l.toCommandProperties(t),e instanceof Error?e.toString():e);}function g(e){a.issue("group",e);}function v(){a.issue("endgroup");}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e));}catch(e){o(e);}}function s(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(a,s);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getIDToken=e.exports.getState=e.exports.saveState=e.exports.group=e.exports.endGroup=e.exports.startGroup=e.exports.info=e.exports.notice=e.exports.warning=e.exports.error=e.exports.debug=e.exports.isDebug=e.exports.setFailed=e.exports.setCommandEcho=e.exports.setOutput=e.exports.getBooleanInput=e.exports.getMultilineInput=e.exports.getInput=e.exports.addPath=e.exports.setSecret=e.exports.exportVariable=e.exports.ExitCode=void 0,a=rB("1g3mY"),s=rB("8prV6"),l=rB("5nnws");let E=i(ig),w=i(iv);u=rB("dU1e3"),(f=c=e.exports.ExitCode||(e.exports.ExitCode={}))[f.Success=0]="Success",f[f.Failure=1]="Failure",e.exports.exportVariable=function(e,t){let r=l.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV)return s.issueFileCommand("ENV",s.prepareKeyValueMessage(e,t));a.issueCommand("set-env",{name:e},r);},e.exports.setSecret=function(e){a.issueCommand("add-mask",{},e);},e.exports.addPath=function(e){process.env.GITHUB_PATH?s.issueFileCommand("PATH",e):a.issueCommand("add-path",{},e),process.env.PATH=`${e}${w.delimiter}${process.env.PATH}`;},e.exports.getInput=h,e.exports.getMultilineInput=function(e,t){let r=h(e,t).split("\n").filter(e=>""!==e);return t&&!1===t.trimWhitespace?r:r.map(e=>e.trim());},e.exports.getBooleanInput=function(e,t){let r=h(e,t);if(["true","True","TRUE"].includes(r))return!0;if(["false","False","FALSE"].includes(r))return!1;throw TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``);},e.exports.setOutput=function(e,t){if(process.env.GITHUB_OUTPUT)return s.issueFileCommand("OUTPUT",s.prepareKeyValueMessage(e,t));process.stdout.write(E.EOL),a.issueCommand("set-output",{name:e},l.toCommandValue(t));},e.exports.setCommandEcho=function(e){a.issue("echo",e?"on":"off");},e.exports.setFailed=function(e){process.exitCode=c.Failure,m(e);},e.exports.isDebug=function(){return"1"===process.env.RUNNER_DEBUG;},e.exports.debug=function(e){a.issueCommand("debug",{},e);},e.exports.error=m,e.exports.warning=function(e,t={}){a.issueCommand("warning",l.toCommandProperties(t),e instanceof Error?e.toString():e);},e.exports.notice=function(e,t={}){a.issueCommand("notice",l.toCommandProperties(t),e instanceof Error?e.toString():e);},e.exports.info=function(e){process.stdout.write(e+E.EOL);},e.exports.startGroup=g,e.exports.endGroup=v,e.exports.group=function(e,t){return o(this,void 0,void 0,function*(){let r;g(e);try{r=yield t();}finally{v();}return r;});},e.exports.saveState=function(e,t){if(process.env.GITHUB_STATE)return s.issueFileCommand("STATE",s.prepareKeyValueMessage(e,t));a.issueCommand("save-state",{name:e},l.toCommandValue(t));},e.exports.getState=function(e){return process.env["STATE_"+e]||"";},e.exports.getIDToken=function(e){return o(this,void 0,void 0,function*(){return yield u.OidcClient.getIDToken(e);});},p=rB("dV9Cu"),Object.defineProperty(e.exports,"summary",{enumerable:!0,get:function(){return p.summary;}}),p=rB("dV9Cu"),Object.defineProperty(e.exports,"markdownSummary",{enumerable:!0,get:function(){return p.markdownSummary;}}),d=rB("9i0tI"),Object.defineProperty(e.exports,"toPosixPath",{enumerable:!0,get:function(){return d.toPosixPath;}}),Object.defineProperty(e.exports,"toWin32Path",{enumerable:!0,get:function(){return d.toWin32Path;}}),Object.defineProperty(e.exports,"toPlatformPath",{enumerable:!0,get:function(){return d.toPlatformPath;}});}),rG("1g3mY",function(e,t){var r,n,i,o;function a(e,t,r){let n=new l(e,t,r);process.stdout.write(n.toString()+s.EOL);}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issue=e.exports.issueCommand=void 0;let s=i(ig);o=rB("5nnws"),e.exports.issueCommand=a,e.exports.issue=function(e,t=""){a(e,{},t);};class l{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r;}toString(){var e;let t="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){t+=" ";let e=!0;for(let r in this.properties)if(this.properties.hasOwnProperty(r)){let n=this.properties[r];n&&(e?e=!1:t+=",",t+=`${r}=${o.toCommandValue(n).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`);}}return t+("::"+(e=this.message,o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")));}}}),rG("5nnws",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toCommandProperties=e.exports.toCommandValue=void 0,e.exports.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e);},e.exports.toCommandProperties=function(e){return Object.keys(e).length?{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}:{};};}),rG("8prV6",function(e,t){var r,n,i,o,a;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.prepareKeyValueMessage=e.exports.issueFileCommand=void 0;let s=i(iE),l=i(ig);o=rB("1Un9O"),a=rB("5nnws"),e.exports.issueFileCommand=function(e,t){let r=process.env["GITHUB_"+e];if(!r)throw Error("Unable to find environment variable for file command "+e);if(!s.existsSync(r))throw Error("Missing file at path: "+r);s.appendFileSync(r,`${a.toCommandValue(t)}${l.EOL}`,{encoding:"utf8"});},e.exports.prepareKeyValueMessage=function(e,t){let r="ghadelimiter_"+o.default(),n=a.toCommandValue(t);if(e.includes(r))throw Error(`Unexpected input: name should not contain the delimiter "${r}"`);if(n.includes(r))throw Error(`Unexpected input: value should not contain the delimiter "${r}"`);return`${e}<<${r}${l.EOL}${n}${l.EOL}${r}`;};}),rG("1Un9O",function(e,t){var r,n,i;c(e.exports,"default",()=>i),r=rB("jyKkd"),n=rB("4DdbA"),i=function(e,t,i){let o=(e=e||{}).random||(e.rng||(0,r.default))();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){i=i||0;for(let e=0;e<16;++e)t[i+e]=o[e];return t;}return(0,n.default)(o);};}),rG("jyKkd",function(e,t){function r(){return i>n.length-16&&(p(iw).randomFillSync(n),i=0),n.slice(i,i+=16);}c(e.exports,"default",()=>r);let n=new Uint8Array(256),i=n.length;}),rG("4DdbA",function(e,t){var r,n;c(e.exports,"default",()=>n),r=rB("4XBHo");let i=[];for(let e=0;e<256;++e)i.push((e+256).toString(16).substr(1));n=function(e,t=0){let n=(i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]).toLowerCase();if(!(0,r.default)(n))throw TypeError("Stringified UUID is invalid");return n;};}),rG("4XBHo",function(e,t){var r,n;c(e.exports,"default",()=>n),r=rB("dcWu5"),n=function(e){return"string"==typeof e&&(0,r.default).test(e);};}),rG("dcWu5",function(e,t){c(e.exports,"default",()=>r);var r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;}),rG("dU1e3",function(e,t){var r=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e));}catch(e){o(e);}}function s(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(a,s);}l((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.OidcClient=void 0;var n=rB("eamjo"),i=rB("h6tQO"),o=rB("1o3Gj");class a{static createHttpClient(e=!0,t=10){return new n.HttpClient("actions/oidc-client",[new i.BearerCredentialHandler(a.getRequestToken())],{allowRetries:e,maxRetries:t});}static getRequestToken(){let e=process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable");return e;}static getIDTokenUrl(){let e=process.env.ACTIONS_ID_TOKEN_REQUEST_URL;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable");return e;}static getCall(e){var t;return r(this,void 0,void 0,function*(){let r=a.createHttpClient(),n=null===(t=(yield r.getJson(e).catch(e=>{throw Error(`Failed to get ID Token.
Error Code : ${e.statusCode}
Error Message: ${e.message}`);})).result)||void 0===t?void 0:t.value;if(!n)throw Error("Response json body do not have ID Token field");return n;});}static getIDToken(e){return r(this,void 0,void 0,function*(){try{let t=a.getIDTokenUrl();if(e){let r=encodeURIComponent(e);t=`${t}&audience=${r}`;}o.debug("ID token url is "+t);let r=yield a.getCall(t);return o.setSecret(r),r;}catch(e){throw Error("Error message: "+e.message);}});}}e.exports.OidcClient=a;}),rG("eamjo",function(e,t){var r,n,i,o,a,s,l,u,c;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e));}catch(e){o(e);}}function s(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(a,s);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.HttpClient=e.exports.isHttps=e.exports.HttpClientResponse=e.exports.HttpClientError=e.exports.getProxyUrl=e.exports.MediaTypes=e.exports.Headers=e.exports.HttpCodes=void 0;let p=i(iy),d=i(ib),f=i(rB("jnrYh")),h=i(rB("3RDK7"));(u=a=e.exports.HttpCodes||(e.exports.HttpCodes={}))[u.OK=200]="OK",u[u.MultipleChoices=300]="MultipleChoices",u[u.MovedPermanently=301]="MovedPermanently",u[u.ResourceMoved=302]="ResourceMoved",u[u.SeeOther=303]="SeeOther",u[u.NotModified=304]="NotModified",u[u.UseProxy=305]="UseProxy",u[u.SwitchProxy=306]="SwitchProxy",u[u.TemporaryRedirect=307]="TemporaryRedirect",u[u.PermanentRedirect=308]="PermanentRedirect",u[u.BadRequest=400]="BadRequest",u[u.Unauthorized=401]="Unauthorized",u[u.PaymentRequired=402]="PaymentRequired",u[u.Forbidden=403]="Forbidden",u[u.NotFound=404]="NotFound",u[u.MethodNotAllowed=405]="MethodNotAllowed",u[u.NotAcceptable=406]="NotAcceptable",u[u.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",u[u.RequestTimeout=408]="RequestTimeout",u[u.Conflict=409]="Conflict",u[u.Gone=410]="Gone",u[u.TooManyRequests=429]="TooManyRequests",u[u.InternalServerError=500]="InternalServerError",u[u.NotImplemented=501]="NotImplemented",u[u.BadGateway=502]="BadGateway",u[u.ServiceUnavailable=503]="ServiceUnavailable",u[u.GatewayTimeout=504]="GatewayTimeout",(c=s=e.exports.Headers||(e.exports.Headers={})).Accept="accept",c.ContentType="content-type",(l=e.exports.MediaTypes||(e.exports.MediaTypes={})).ApplicationJson="application/json",e.exports.getProxyUrl=function(e){let t=f.getProxyUrl(new URL(e));return t?t.href:"";};let m=[a.MovedPermanently,a.ResourceMoved,a.SeeOther,a.TemporaryRedirect,a.PermanentRedirect],g=[a.BadGateway,a.ServiceUnavailable,a.GatewayTimeout],v=["OPTIONS","GET","DELETE","HEAD"];class E extends Error{constructor(e,t){super(e),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,E.prototype);}}e.exports.HttpClientError=E;class w{constructor(e){this.message=e;}readBody(){return o(this,void 0,void 0,function*(){return new Promise(e=>o(this,void 0,void 0,function*(){let t=Buffer.alloc(0);this.message.on("data",e=>{t=Buffer.concat([t,e]);}),this.message.on("end",()=>{e(t.toString());});}));});}}e.exports.HttpClientResponse=w,e.exports.isHttps=function(e){return"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[s.Accept]=this._getExistingOrDefaultHeader(t,s.Accept,l.ApplicationJson);let r=yield this.get(e,t);return this._processResponse(r,this.requestOptions);});}postJson(e,t,r={}){return o(this,void 0,void 0,function*(){let n=JSON.stringify(t,null,2);r[s.Accept]=this._getExistingOrDefaultHeader(r,s.Accept,l.ApplicationJson),r[s.ContentType]=this._getExistingOrDefaultHeader(r,s.ContentType,l.ApplicationJson);let i=yield this.post(e,n,r);return this._processResponse(i,this.requestOptions);});}putJson(e,t,r={}){return o(this,void 0,void 0,function*(){let n=JSON.stringify(t,null,2);r[s.Accept]=this._getExistingOrDefaultHeader(r,s.Accept,l.ApplicationJson),r[s.ContentType]=this._getExistingOrDefaultHeader(r,s.ContentType,l.ApplicationJson);let i=yield this.put(e,n,r);return this._processResponse(i,this.requestOptions);});}patchJson(e,t,r={}){return o(this,void 0,void 0,function*(){let n=JSON.stringify(t,null,2);r[s.Accept]=this._getExistingOrDefaultHeader(r,s.Accept,l.ApplicationJson),r[s.ContentType]=this._getExistingOrDefaultHeader(r,s.ContentType,l.ApplicationJson);let i=yield this.patch(e,n,r);return this._processResponse(i,this.requestOptions);});}request(e,t,r,n){return o(this,void 0,void 0,function*(){let i;if(this._disposed)throw Error("Client has already been disposed.");let o=new URL(t),s=this._prepareRequest(e,o,n),l=this._allowRetries&&v.includes(e)?this._maxRetries+1:1,u=0;do{if((i=yield this.requestRaw(s,r))&&i.message&&i.message.statusCode===a.Unauthorized){let e;for(let t of this.handlers)if(t.canHandleAuthentication(i)){e=t;break;}if(e)return e.handleAuthentication(this,s,r);break;}let t=this._maxRedirects;for(;i.message.statusCode&&m.includes(i.message.statusCode)&&this._allowRedirects&&t>0;){let a=i.message.headers.location;if(!a)break;let l=new URL(a);if("https:"===o.protocol&&o.protocol!==l.protocol&&!this._allowRedirectDowngrade)throw Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");if(yield i.readBody(),l.hostname!==o.hostname)for(let e in n)"authorization"===e.toLowerCase()&&delete n[e];s=this._prepareRequest(e,l,n),i=yield this.requestRaw(s,r),t--;}if(!i.message.statusCode||!g.includes(i.message.statusCode))break;(u+=1)<l&&(yield i.readBody(),yield this._performExponentialBackoff(u));}while(u<l);return i;});}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,function(e,t){e?n(e):t?r(t):n(Error("Unknown error"));});});});}requestRawWithCallback(e,t,r){let n;function i(e,t){o||(o=!0,r(e,t));}"string"==typeof t&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let o=!1,a=e.httpModule.request(e.options,e=>{i(void 0,new w(e));});a.on("socket",e=>{n=e;}),a.setTimeout(this._socketTimeout||18e4,()=>{n&&n.end(),i(Error("Request timeout: "+e.options.path));}),a.on("error",function(e){i(e);}),t&&"string"==typeof t&&a.write(t,"utf8"),t&&"string"!=typeof t?(t.on("close",function(){a.end();}),t.pipe(a)):a.end();}getAgent(e){let t=new URL(e);return this._getAgent(t);}_prepareRequest(e,t,r){let n={};n.parsedUrl=t;let i="https:"===n.parsedUrl.protocol;if(n.httpModule=i?d:p,n.options={},n.options.host=n.parsedUrl.hostname,n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):i?443:80,n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||""),n.options.method=e,n.options.headers=this._mergeHeaders(r),null!=this.userAgent&&(n.options.headers["user-agent"]=this.userAgent),n.options.agent=this._getAgent(n.parsedUrl),this.handlers)for(let e of this.handlers)e.prepareRequest(n.options);return n;}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},y(this.requestOptions.headers),y(e||{})):y(e||{});}_getExistingOrDefaultHeader(e,t,r){let n;return this.requestOptions&&this.requestOptions.headers&&(n=y(this.requestOptions.headers)[t]),e[t]||n||r;}_getAgent(e){let t;let r=f.getProxyUrl(e),n=r&&r.hostname;if(this._keepAlive&&n&&(t=this._proxyAgent),this._keepAlive&&!n&&(t=this._agent),t)return t;let i="https:"===e.protocol,o=100;if(this.requestOptions&&(o=this.requestOptions.maxSockets||p.globalAgent.maxSockets),r&&r.hostname){let e;let n={maxSockets:o,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(r.username||r.password)&&{proxyAuth:`${r.username}:${r.password}`}),{host:r.hostname,port:r.port})},a="https:"===r.protocol;t=(i?a?h.httpsOverHttps:h.httpsOverHttp:a?h.httpOverHttps:h.httpOverHttp)(n),this._proxyAgent=t;}if(this._keepAlive&&!t){let e={keepAlive:this._keepAlive,maxSockets:o};t=i?new d.Agent(e):new p.Agent(e),this._agent=t;}return t||(t=i?d.globalAgent:p.globalAgent),i&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t;}_performExponentialBackoff(e){return o(this,void 0,void 0,function*(){let 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*(){let i,o;let s=e.message.statusCode||0,l={statusCode:s,result:null,headers:{}};s===a.NotFound&&r(l);try{(o=yield e.readBody())&&o.length>0&&(i=t&&t.deserializeDates?JSON.parse(o,function(e,t){if("string"==typeof t){let e=new Date(t);if(!isNaN(e.valueOf()))return e;}return t;}):JSON.parse(o),l.result=i),l.headers=e.message.headers;}catch(e){}if(s>299){let e;let t=new E(i&&i.message?i.message:o&&o.length>0?o:`Failed request: (${s})`,s);t.result=l.result,n(t);}else r(l);}));});}};let y=e=>Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});}),rG("jnrYh",function(e,t){function r(e){let t;if(!e.hostname)return!1;if(function(e){let t=e.toLowerCase();return"localhost"===t||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]");}(e.hostname))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;e.port?t=+e.port:"http:"===e.protocol?t=80:"https:"===e.protocol&&(t=443);let n=[e.hostname.toUpperCase()];for(let e of("number"==typeof t&&n.push(`${n[0]}:${t}`),r.split(",").map(e=>e.trim().toUpperCase()).filter(e=>e)))if("*"===e||n.some(t=>t===e||t.endsWith("."+e)||e.startsWith(".")&&t.endsWith(""+e)))return!0;return!1;}Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.checkBypass=e.exports.getProxyUrl=void 0,e.exports.getProxyUrl=function(e){let t="https:"===e.protocol;if(r(e))return;let n=t?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;return n?new URL(n):void 0;},e.exports.checkBypass=r;}),rG("3RDK7",function(e,t){e.exports=rB("jZQ4B");}),rG("jZQ4B",function(e,t){var r,n,i,o,a,s;function l(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||iy.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",function(e,r,n,i){for(var o=p(r,n,i),a=0,s=t.requests.length;s>a;++a){var l=t.requests[a];if(l.host===o.host&&l.port===o.port){t.requests.splice(a,1),l.request.onSocket(e);return;}}e.destroy(),t.removeSocket(e);});}function u(e,t){var r=this;l.prototype.createSocket.call(r,e,function(n){var i=e.request.getHeader("host"),o=d({},r.options,{socket:n,servername:i?i.replace(/:.*$/,""):e.host}),a=rE.connect(0,o);r.sockets[r.sockets.indexOf(n)]=a,t(a);});}function p(e,t,r){return"string"==typeof e?{host:e,port:t,localAddress:r}:e;}function d(e){for(var t=1,r=arguments.length;r>t;++t){var n=arguments[t];if("object"==typeof n)for(var i=Object.keys(n),o=0,a=i.length;a>o;++o){var s=i[o];void 0!==n[s]&&(e[s]=n[s]);}}return e;}c(e.exports,"httpOverHttp",()=>r,e=>r=e),c(e.exports,"httpsOverHttp",()=>n,e=>n=e),c(e.exports,"httpOverHttps",()=>i,e=>i=e),c(e.exports,"httpsOverHttps",()=>o,e=>o=e),c(e.exports,"debug",()=>a,e=>a=e),r=function(e){var t=new l(e);return t.request=iy.request,t;},n=function(e){var t=new l(e);return t.request=iy.request,t.createSocket=u,t.defaultPort=443,t;},i=function(e){var t=new l(e);return t.request=ib.request,t;},o=function(e){var t=new l(e);return t.request=ib.request,t.createSocket=u,t.defaultPort=443,t;},rb.inherits(l,rw.EventEmitter),l.prototype.addRequest=function(e,t,r,n){var i=this,o=d({request:e},i.options,p(t,r,n));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return;}i.createSocket(o,function(t){function r(){i.emit("free",t,o);}function n(e){i.removeSocket(t),t.removeListener("free",r),t.removeListener("close",n),t.removeListener("agentRemove",n);}t.on("free",r),t.on("close",n),t.on("agentRemove",n),e.onSocket(t);});},l.prototype.createSocket=function(e,t){function r(r,n,l){if(i.removeAllListeners(),n.removeAllListeners(),200!==r.statusCode){s("tunneling socket could not be established, statusCode=%d",r.statusCode),n.destroy();var u=Error("tunneling socket could not be established, statusCode="+r.statusCode);u.code="ECONNRESET",e.request.emit("error",u),o.removeSocket(a);return;}if(l.length>0){s("got illegal response body from proxy"),n.destroy();var u=Error("got illegal response body from proxy");u.code="ECONNRESET",e.request.emit("error",u),o.removeSocket(a);return;}return s("tunneling connection has established"),o.sockets[o.sockets.indexOf(a)]=n,t(n);}var n,i,o=this,a={};o.sockets.push(a),n=d({},o.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}}),e.localAddress&&(n.localAddress=e.localAddress),n.proxyAuth&&(n.headers=n.headers||{},n.headers["Proxy-Authorization"]="Basic "+new Buffer(n.proxyAuth).toString("base64")),s("making CONNECT request"),(i=o.request(n)).useChunkedEncodingByDefault=!1,i.once("response",function(e){e.upgrade=!0;}),i.once("upgrade",function(e,t,n){process.nextTick(function(){r(e,t,n);});}),i.once("connect",r),i.once("error",function(t){i.removeAllListeners(),s("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var r=Error("tunneling socket could not be established, cause="+t.message);r.code="ECONNRESET",e.request.emit("error",r),o.removeSocket(a);}),i.end();},l.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var r=this.requests.shift();r&&this.createSocket(r,function(e){r.request.onSocket(e);});}},process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?s=function(){var e=Array.prototype.slice.call(arguments);"string"==typeof e[0]?e[0]="TUNNEL: "+e[0]:e.unshift("TUNNEL:"),console.error.apply(console,e);}:s=function(){},a=s;}),rG("h6tQO",function(e,t){var r=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e));}catch(e){o(e);}}function s(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(a,s);}l((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.PersonalAccessTokenCredentialHandler=e.exports.BearerCredentialHandler=e.exports.BasicCredentialHandler=void 0,e.exports.BasicCredentialHandler=class{constructor(e,t){this.username=e,this.password=t;}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Basic "+Buffer.from(`${this.username}:${this.password}`).toString("base64");}canHandleAuthentication(){return!1;}handleAuthentication(){return r(this,void 0,void 0,function*(){throw Error("not implemented");});}},e.exports.BearerCredentialHandler=class{constructor(e){this.token=e;}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Bearer "+this.token;}canHandleAuthentication(){return!1;}handleAuthentication(){return r(this,void 0,void 0,function*(){throw Error("not implemented");});}},e.exports.PersonalAccessTokenCredentialHandler=class{constructor(e){this.token=e;}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Basic "+Buffer.from("PAT:"+this.token).toString("base64");}canHandleAuthentication(){return!1;}handleAuthentication(){return r(this,void 0,void 0,function*(){throw Error("not implemented");});}};}),rG("dV9Cu",function(e,t){var r=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e));}catch(e){o(e);}}function s(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(a,s);}l((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.summary=e.exports.markdownSummary=e.exports.SUMMARY_DOCS_URL=e.exports.SUMMARY_ENV_VAR=void 0;let{access:n,appendFile:i,writeFile:o}=iE.promises;e.exports.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY",e.exports.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";let a=new class{constructor(){this._buffer="";}filePath(){return r(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let t=process.env[e.exports.SUMMARY_ENV_VAR];if(!t)throw Error(`Unable to find environment variable for $${e.exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield n(t,iE.constants.R_OK|iE.constants.W_OK);}catch(e){throw Error(`Unable to access summary file: '${t}'. Check if the file has correct read/write permissions.`);}return this._filePath=t,this._filePath;});}wrap(e,t,r={}){let n=Object.entries(r).map(([e,t])=>` ${e}="${t}"`).join("");return t?`<${e}${n}>${t}</${e}>`:`<${e}${n}>`;}write(e){return r(this,void 0,void 0,function*(){let t=!!(null==e?void 0:e.overwrite),r=yield this.filePath();return yield(t?o:i)(r,this._buffer,{encoding:"utf8"}),this.emptyBuffer();});}clear(){return r(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0});});}stringify(){return this._buffer;}isEmptyBuffer(){return 0===this._buffer.length;}emptyBuffer(){return this._buffer="",this;}addRaw(e,t=!1){return this._buffer+=e,t?this.addEOL():this;}addEOL(){return this.addRaw(ig.EOL);}addCodeBlock(e,t){let r=Object.assign({},t&&{lang:t}),n=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(n).addEOL();}addList(e,t=!1){let r=e.map(e=>this.wrap("li",e)).join(""),n=this.wrap(t?"ol":"ul",r);return this.addRaw(n).addEOL();}addTable(e){let t=e.map(e=>{let t=e.map(e=>{if("string"==typeof e)return this.wrap("td",e);let{header:t,data:r,colspan:n,rowspan:i}=e,o=Object.assign(Object.assign({},n&&{colspan:n}),i&&{rowspan:i});return this.wrap(t?"th":"td",r,o);}).join("");return this.wrap("tr",t);}).join(""),r=this.wrap("table",t);return this.addRaw(r).addEOL();}addDetails(e,t){let r=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(r).addEOL();}addImage(e,t,r){let{width:n,height:i}=r||{},o=Object.assign(Object.assign({},n&&{width:n}),i&&{height:i}),a=this.wrap("img",null,Object.assign({src:e,alt:t},o));return this.addRaw(a).addEOL();}addHeading(e,t){let r="h"+t,n=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",i=this.wrap(n,e);return this.addRaw(i).addEOL();}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL();}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL();}addQuote(e,t){let r=Object.assign({},t&&{cite:t}),n=this.wrap("blockquote",e,r);return this.addRaw(n).addEOL();}addLink(e,t){let r=this.wrap("a",e,{href:t});return this.addRaw(r).addEOL();}}();e.exports.markdownSummary=a,e.exports.summary=a;}),rG("9i0tI",function(e,t){var r,n,i;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toPlatformPath=e.exports.toWin32Path=e.exports.toPosixPath=void 0;let o=i(iv);e.exports.toPosixPath=function(e){return e.replace(/[\\]/g,"/");},e.exports.toWin32Path=function(e){return e.replace(/[/]/g,"\\");},e.exports.toPlatformPath=function(e){return e.replace(/[/\\]/g,o.sep);};}),rG("kswPT",function(e,t){var r=iv.resolve(__dirname,"../../node_modules/numerous/lib");(function(){var t,n;function i(e,r,n){if(o(e),"object"!=typeof n)throw Error("List of variants should be specified as an object");var i=t[e](r);return void 0!==n[i]?n[i]:null;}function o(e){!(void 0!==t[e])&&function(e){try{require(r+"/../locales/"+e+".js");}catch(t){throw Error("Failed to load the following locale: "+e);}}(e);}t={},n={create:function(e){return o(e),{pluralize:function(t,r){return i(e,t,r);}};},addLocale:function(e,r){t[e]=r;},pluralize:i},void 0!==e.exports?e.exports=n:this.numerous=n;}).call(e.exports);}),rG("foOBZ",function(e,t){function r(e){for(let t of(Array.isArray(e)||(e=[e]),e)){let{id:e,data:r}=t;s[e]=r;}}var n=rB("6OFKY"),i=rB("5GOZM");let o=[["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},s={};e.exports={create:function(e){return e=Object.assign({},a,e||{}),{format:function(t,a,l){return function(e,t,a){if(function(e,t){let{autoload:n}=t;if(!s[e]){if(i&&n)(function(e){try{r(require(`../locales/${e}.js`));}catch(t){throw Error(`Failed to load locale: ${e} from ../locales/${e}.js. If using a bundled time-delta, set 'autoloadLocales: false' in the config: ${t}`);}})(e);else throw Error(`Missing locale: ${e}, you must load it manually before using it`);}}(a.locale,{autoload:a.autoloadLocales}),!e)throw Error("Missing first date argument");if(!t)throw Error("Missing second date argument");let l=function(e,t){let r=t-e,n=[];return o.some(function(e){let t=e[0],i=e[1],o=Math.floor(r/i);if(r-=o*i,n.push([t,o]),r<=0)return!0;}),n;}(e,t),u=[];for(let e of l){let[t,r]=e;if(r>0&&u.push(function(e,t,r){let i=function(e){let t=s[e.locale],r=e.unitTypeLookupOrder.slice();r.unshift(e.unitType);let n=null;if((r=Array.from(new Set(r))).some(function(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 n.pluralize(r.locale,t,i[e]).replace("{0}",t);}(t,r,a)),u.length>=a.span)break;}return u.join(a.delimiter);}(t,a,l=Object.assign({},e,l||{}));}};},addLocale:r,defaultConfig:a};}),rG("6OFKY",function(e,t){e.exports=rB("kswPT");}),rG("5GOZM",function(e,t){e.exports=!!("undefined"!=typeof process&&process.versions&&process.versions.node);}),rG("8nJMC",function(e,t){function r(e,t,r){return!!(e.isSymbolicLink()||e.isFile())&&function(e,t){var r=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!r||-1!==(r=r.split(";")).indexOf(""))return!0;for(var n=0;n<r.length;n++){var i=r[n].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0;}return!1;}(t,r);}function n(e,t,n){iE.stat(e,function(i,o){n(i,!i&&r(o,e,t));});}e.exports=n,n.sync=function(e,t){return r(iE.statSync(e),e,t);};}),rG("lo7XV",function(e,t){function r(e,t,r){iE.stat(e,function(e,i){r(e,!e&&n(i,t));});}function n(e,t){var r,n,i,o,a,s,l,u,c;return e.isFile()&&(r=e,n=t,i=r.mode,o=r.uid,a=r.gid,s=void 0!==n.uid?n.uid:process.getuid&&process.getuid(),l=void 0!==n.gid?n.gid:process.getgid&&process.getgid(),u=parseInt("100",8),c=parseInt("010",8),i&parseInt("001",8)||i&c&&a===l||i&u&&o===s||i&(u|c)&&0===s);}e.exports=r,r.sync=function(e,t){return n(iE.statSync(e),t);};}),rG("dVIKq",function(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");}),rG("coVwk",function(e,t){var r=rB("hhSwF"),n=rB("iXsaM"),i=rB("8cXe9"),o=rB("dAM2Q"),a=rB("cHnHr"),s=rB("2kZmC"),l=rB("3Ixw1"),u=rB("5r5vN"),c=rB("bDrwm"),p=rB("lORAA"),d=rB("2Lh6z"),f=rB("73KaH"),h=rB("j5Xr5"),m=rB("jDqfd"),g=rB("2QKGl"),v=rB("3puHo"),E=rB("7qrQi"),w=rB("hZ1Xd"),y=rB("3YOIj"),b=rB("cOpcP"),x=rB("58P10"),S=rB("lTmeS"),D=rB("jzqBf"),T=rB("3XWvL"),R=rB("hlfY9"),N=rB("84iFB"),I=rB("6v1Be"),A=rB("1bxhC"),O=rB("bswWF"),C=rB("42oIR"),_=rB("4zfp3"),L=rB("ga5uZ"),$=rB("lPGVL"),P=rB("1I8AA"),k=rB("dBtft"),U=rB("83Sp2"),F=rB("eK4my"),M=rB("eNXBI"),j=rB("kHzUo"),q=rB("1x2XZ"),B=rB("hTYir");e.exports={parse:a,valid:s,clean:l,inc:u,diff:c,major:p,minor:d,patch:f,prerelease:h,compare:m,rcompare:g,compareLoose:v,compareBuild:E,sort:w,rsort:y,gt:b,lt:x,eq:S,neq:D,gte:T,lte:R,cmp:N,coerce:I,Comparator:A,Range:O,satisfies:C,toComparators:_,maxSatisfying:L,minSatisfying:$,minVersion:P,validRange:k,outside:U,gtr:F,ltr:M,intersects:j,simplifyRange:q,subset:B,SemVer:i,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:n.SEMVER_SPEC_VERSION,RELEASE_TYPES:n.RELEASE_TYPES,compareIdentifiers:o.compareIdentifiers,rcompareIdentifiers:o.rcompareIdentifiers};}),rG("hhSwF",function(e,t){var r=rB("iXsaM"),n=r.MAX_SAFE_COMPONENT_LENGTH,i=r.MAX_SAFE_BUILD_LENGTH,o=r.MAX_LENGTH,a=rB("jl9Uf");let s=(t=e.exports={}).re=[],l=t.safeRe=[],u=t.src=[],c=t.t={},p=0,d="[a-zA-Z0-9-]",f=[["\\s",1],["\\d",o],[d,i]],h=e=>{for(let[t,r]of f)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e;},m=(e,t,r)=>{let n=h(t),i=p++;a(e,i,t),c[e]=i,u[i]=t,s[i]=new RegExp(t,r?"g":void 0),l[i]=new RegExp(n,r?"g":void 0);};m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),m("MAINVERSION",`(${u[c.NUMERICIDENTIFIER]})\\.(${u[c.NUMERICIDENTIFIER]})\\.(${u[c.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${u[c.NUMERICIDENTIFIERLOOSE]})\\.(${u[c.NUMERICIDENTIFIERLOOSE]})\\.(${u[c.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${u[c.NUMERICIDENTIFIER]}|${u[c.NONNUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${u[c.NUMERICIDENTIFIERLOOSE]}|${u[c.NONNUMERICIDENTIFIER]})`),m("PRERELEASE",`(?:-(${u[c.PRERELEASEIDENTIFIER]}(?:\\.${u[c.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${u[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[c.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${d}+`),m("BUILD",`(?:\\+(${u[c.BUILDIDENTIFIER]}(?:\\.${u[c.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${u[c.MAINVERSION]}${u[c.PRERELEASE]}?${u[c.BUILD]}?`),m("FULL",`^${u[c.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${u[c.MAINVERSIONLOOSE]}${u[c.PRERELEASELOOSE]}?${u[c.BUILD]}?`),m("LOOSE",`^${u[c.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${u[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${u[c.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${u[c.XRANGEIDENTIFIER]})(?:\\.(${u[c.XRANGEIDENTIFIER]})(?:\\.(${u[c.XRANGEIDENTIFIER]})(?:${u[c.PRERELEASE]})?${u[c.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${u[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[c.XRANGEIDENTIFIERLOOSE]})(?:${u[c.PRERELEASELOOSE]})?${u[c.BUILD]}?)?)?`),m("XRANGE",`^${u[c.GTLT]}\\s*${u[c.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${u[c.GTLT]}\\s*${u[c.XRANGEPLAINLOOSE]}$`),m("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),m("COERCE",`${u[c.COERCEPLAIN]}(?:$|[^\\d])`),m("COERCEFULL",u[c.COERCEPLAIN]+`(?:${u[c.PRERELEASE]})?`+`(?:${u[c.BUILD]})?`+"(?:$|[^\\d])"),m("COERCERTL",u[c.COERCE],!0),m("COERCERTLFULL",u[c.COERCEFULL],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${u[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",m("TILDE",`^${u[c.LONETILDE]}${u[c.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${u[c.LONETILDE]}${u[c.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${u[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",m("CARET",`^${u[c.LONECARET]}${u[c.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${u[c.LONECARET]}${u[c.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${u[c.GTLT]}\\s*(${u[c.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${u[c.GTLT]}\\s*(${u[c.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${u[c.GTLT]}\\s*(${u[c.LOOSEPLAIN]}|${u[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${u[c.XRANGEPLAIN]})\\s+-\\s+(${u[c.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${u[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[c.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$");}),rG("iXsaM",function(e,t){let r=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:r,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};}),rG("jl9Uf",function(e,t){let r="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=r;}),rG("8cXe9",function(e,t){var r=rB("jl9Uf"),n=rB("iXsaM"),i=n.MAX_LENGTH,o=n.MAX_SAFE_INTEGER,a=rB("hhSwF"),s=a.safeRe,l=a.t,u=rB("5v8m5"),c=rB("dAM2Q").compareIdentifiers;class p{constructor(e,t){if(t=u(t),e instanceof p){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;e=e.version;}else if("string"!=typeof e)throw TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>i)throw TypeError(`version is longer than ${i} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?s[l.LOOSE]:s[l.FULL]);if(!n)throw TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t<o)return t;}return e;}):this.prerelease=[],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 p)){if("string"==typeof e&&e===this.version)return 0;e=new p(e,this.options);}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e);}compareMain(e){return e instanceof p||(e=new p(e,this.options)),c(this.major,e.major)||c(this.minor,e.minor)||c(this.patch,e.patch);}comparePre(e){if(e instanceof p||(e=new p(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{let n=this.prerelease[t],i=e.prerelease[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;else if(n===i)continue;else return c(n,i);}while(++t);}compareBuild(e){e instanceof p||(e=new p(e,this.options));let t=0;do{let n=this.build[t],i=e.build[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;else if(n===i)continue;else return c(n,i);}while(++t);}inc(e,t,r){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,r),this.inc("pre",t,r);break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{let e=+r?1:0;if(!t&&!1===r)throw Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let n=this.prerelease.length;for(;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(e);}}if(t){let n=[t,e];!1===r&&(n=[t]),0===c(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n;}break;}default:throw Error("invalid increment argument: "+e);}return this.raw=this.format(),this.build.length&&(this.raw+="+"+this.build.join(".")),this;}}e.exports=p;}),rG("5v8m5",function(e,t){let r=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=e=>e?"object"!=typeof e?r:e:n;}),rG("dAM2Q",function(e,t){let r=(e,t)=>{let r=/^[0-9]+$/.test(e),n=/^[0-9]+$/.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:t>e?-1:1;};e.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)};}),rG("cHnHr",function(e,t){var r=rB("8cXe9");e.exports=(e,t,n=!1)=>{if(e instanceof r)return e;try{return new r(e,t);}catch(e){if(!n)return null;throw e;}};}),rG("2kZmC",function(e,t){var r=rB("cHnHr");e.exports=(e,t)=>{let n=r(e,t);return n?n.version:null;};}),rG("3Ixw1",function(e,t){var r=rB("cHnHr");e.exports=(e,t)=>{let n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null;};}),rG("5r5vN",function(e,t){var r=rB("8cXe9");e.exports=(e,t,n,i,o)=>{"string"==typeof n&&(o=i,i=n,n=void 0);try{return new r(e instanceof r?e.version:e,n).inc(t,i,o).version;}catch(e){return null;}};}),rG("bDrwm",function(e,t){var r=rB("cHnHr");e.exports=(e,t)=>{let n=r(e,null,!0),i=r(t,null,!0),o=n.compare(i);if(0===o)return null;let a=o>0,s=a?n:i,l=a?i:n,u=!!s.prerelease.length;if(l.prerelease.length&&!u)return l.patch||l.minor?s.patch?"patch":s.minor?"minor":"major":"major";let c=u?"pre":"";return n.major!==i.major?c+"major":n.minor!==i.minor?c+"minor":n.patch!==i.patch?c+"patch":"prerelease";};}),rG("lORAA",function(e,t){var r=rB("8cXe9");e.exports=(e,t)=>new r(e,t).major;}),rG("2Lh6z",function(e,t){var r=rB("8cXe9");e.exports=(e,t)=>new r(e,t).minor;}),rG("73KaH",function(e,t){var r=rB("8cXe9");e.exports=(e,t)=>new r(e,t).patch;}),rG("j5Xr5",function(e,t){var r=rB("cHnHr");e.exports=(e,t)=>{let n=r(e,t);return n&&n.prerelease.length?n.prerelease:null;};}),rG("jDqfd",function(e,t){var r=rB("8cXe9");e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n));}),rG("2QKGl",function(e,t){var r=rB("jDqfd");e.exports=(e,t,n)=>r(t,e,n);}),rG("3puHo",function(e,t){var r=rB("jDqfd");e.exports=(e,t)=>r(e,t,!0);}),rG("7qrQi",function(e,t){var r=rB("8cXe9");e.exports=(e,t,n)=>{let i=new r(e,n),o=new r(t,n);return i.compare(o)||i.compareBuild(o);};}),rG("hZ1Xd",function(e,t){var r=rB("7qrQi");e.exports=(e,t)=>e.sort((e,n)=>r(e,n,t));}),rG("3YOIj",function(e,t){var r=rB("7qrQi");e.exports=(e,t)=>e.sort((e,n)=>r(n,e,t));}),rG("cOpcP",function(e,t){var r=rB("jDqfd");e.exports=(e,t,n)=>r(e,t,n)>0;}),rG("58P10",function(e,t){var r=rB("jDqfd");e.exports=(e,t,n)=>0>r(e,t,n);}),rG("lTmeS",function(e,t){var r=rB("jDqfd");e.exports=(e,t,n)=>0===r(e,t,n);}),rG("jzqBf",function(e,t){var r=rB("jDqfd");e.exports=(e,t,n)=>0!==r(e,t,n);}),rG("3XWvL",function(e,t){var r=rB("jDqfd");e.exports=(e,t,n)=>r(e,t,n)>=0;}),rG("hlfY9",function(e,t){var r=rB("jDqfd");e.exports=(e,t,n)=>0>=r(e,t,n);}),rG("84iFB",function(e,t){var r=rB("lTmeS"),n=rB("jzqBf"),i=rB("cOpcP"),o=rB("3XWvL"),a=rB("58P10"),s=rB("hlfY9");e.exports=(e,t,l,u)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof l&&(l=l.version),e===l;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof l&&(l=l.version),e!==l;case"":case"=":case"==":return r(e,l,u);case"!=":return n(e,l,u);case">":return i(e,l,u);case">=":return o(e,l,u);case"<":return a(e,l,u);case"<=":return s(e,l,u);default:throw TypeError("Invalid operator: "+t);}};}),rG("6v1Be",function(e,t){var r=rB("8cXe9"),n=rB("cHnHr"),i=rB("hhSwF"),o=i.safeRe,a=i.t;e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e+=""),"string"!=typeof e)return null;let i=null;if((t=t||{}).rtl){let r;let n=t.includePrerelease?o[a.COERCERTLFULL]:o[a.COERCERTL];for(;(r=n.exec(e))&&(!i||i.index+i[0].length!==e.length);)i&&r.index+r[0].length===i.index+i[0].length||(i=r),n.lastIndex=r.index+r[1].length+r[2].length;n.lastIndex=-1;}else i=e.match(t.includePrerelease?o[a.COERCEFULL]:o[a.COERCE]);if(null===i)return null;let s=i[2],l=i[3]||"0",u=i[4]||"0",c=t.includePrerelease&&i[5]?"-"+i[5]:"",p=t.includePrerelease&&i[6]?"+"+i[6]:"";return n(`${s}.${l}.${u}${c}${p}`,t);};}),rG("1bxhC",function(e,t){let r=Symbol();class n{static get ANY(){return r;}constructor(e,t){if(t=i(t),e instanceof n){if(!!t.loose===e.loose)return e;e=e.value;}u("comparator",e=e.trim().split(/\s+/).join(" "),t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,u("comp",this);}parse(e){let t=this.options.loose?a[s.COMPARATORLOOSE]:a[s.COMPARATOR],n=e.match(t);if(!n)throw TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new c(n[2],this.options.loose):this.semver=r;}toString(){return this.value;}test(e){if(u("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new c(e,this.options);}catch(e){return!1;}return l(e,this.operator,this.semver,this.options);}intersects(e,t){if(!(e instanceof n))throw TypeError("a Comparator is required");return""===this.operator?""===this.value||new p(e.value,t).test(this.value):""===e.operator?""===e.value||new p(this.value,t).test(e.semver):!((t=i(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">"));}}e.exports=n;var i=rB("5v8m5"),o=rB("hhSwF"),a=o.safeRe,s=o.t,l=rB("84iFB"),u=rB("jl9Uf"),c=rB("8cXe9"),p=rB("bswWF");}),rG("bswWF",function(e,t){class r{constructor(e,t){if(t=i(t),e instanceof r){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;return 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.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError("Invalid SemVer Range: "+this.raw);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!v(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(1===e.length&&E(e[0])){this.set=[e];break;}}}this.format();}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range;}toString(){return this.range;}parseRange(e){let t=((this.options.includePrerelease&&m)|(this.options.loose&&g))+":"+e,r=n.get(t);if(r)return r;let i=this.options.loose,s=i?u[c.HYPHENRANGELOOSE]:u[c.HYPHENRANGE];a("hyphen replace",e=e.replace(s,O(this.options.includePrerelease))),a("comparator trim",e=e.replace(u[c.COMPARATORTRIM],p)),a("tilde trim",e=e.replace(u[c.TILDETRIM],d)),a("caret trim",e=e.replace(u[c.CARETTRIM],f));let l=e.split(" ").map(e=>y(e,this.options)).join(" ").split(/\s+/).map(e=>A(e,this.options));i&&(l=l.filter(e=>(a("loose invalid filter",e,this.options),!!e.match(u[c.COMPARATORLOOSE])))),a("range list",l);let h=new Map();for(let e of l.map(e=>new o(e,this.options))){if(v(e))return[e];h.set(e.value,e);}h.size>1&&h.has("")&&h.delete("");let E=[...h.values()];return n.set(t,E),E;}intersects(e,t){if(!(e instanceof r))throw TypeError("a Range is required");return this.set.some(r=>w(r,t)&&e.set.some(e=>w(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 s(e,this.options);}catch(e){return!1;}for(let t=0;t<this.set.length;t++)if(C(this.set[t],e,this.options))return!0;return!1;}}e.exports=r;let n=new(rB("31A6g"))({max:1e3});var i=rB("5v8m5"),o=rB("1bxhC"),a=rB("jl9Uf"),s=rB("8cXe9"),l=rB("hhSwF"),u=l.safeRe,c=l.t,p=l.comparatorTrimReplace,d=l.tildeTrimReplace,f=l.caretTrimReplace,h=rB("iXsaM"),m=h.FLAG_INCLUDE_PRERELEASE,g=h.FLAG_LOOSE;let v=e=>"<0.0.0-0"===e.value,E=e=>""===e.value,w=(e,t)=>{let r=!0,n=e.slice(),i=n.pop();for(;r&&n.length;)r=n.every(e=>i.intersects(e,t)),i=n.pop();return r;},y=(e,t)=>(a("comp",e,t),a("caret",e=D(e,t)),a("tildes",e=x(e,t)),a("xrange",e=R(e,t)),a("stars",e=I(e,t)),e),b=e=>!e||"x"===e.toLowerCase()||"*"===e,x=(e,t)=>e.trim().split(/\s+/).map(e=>S(e,t)).join(" "),S=(e,t)=>{let r=t.loose?u[c.TILDELOOSE]:u[c.TILDE];return e.replace(r,(t,r,n,i,o)=>{let s;return a("tilde",e,t,r,n,i,o),b(r)?s="":b(n)?s=`>=${r}.0.0 <${+r+1}.0.0-0`:b(i)?s=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:o?(a("replaceTilde pr",o),s=`>=${r}.${n}.${i}-${o} <${r}.${+n+1}.0-0`):s=`>=${r}.${n}.${i} <${r}.${+n+1}.0-0`,a("tilde return",s),s;});},D=(e,t)=>e.trim().split(/\s+/).map(e=>T(e,t)).join(" "),T=(e,t)=>{a("caret",e,t);let r=t.loose?u[c.CARETLOOSE]:u[c.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(t,r,i,o,s)=>{let l;return a("caret",e,t,r,i,o,s),b(r)?l="":b(i)?l=`>=${r}.0.0${n} <${+r+1}.0.0-0`:b(o)?l="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:s?(a("replaceCaret pr",s),l="0"===r?"0"===i?`>=${r}.${i}.${o}-${s} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}-${s} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o}-${s} <${+r+1}.0.0-0`):(a("no pr"),l="0"===r?"0"===i?`>=${r}.${i}.${o}${n} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o} <${+r+1}.0.0-0`),a("caret return",l),l;});},R=(e,t)=>(a("replaceXRanges",e,t),e.split(/\s+/).map(e=>N(e,t)).join(" ")),N=(e,t)=>{e=e.trim();let r=t.loose?u[c.XRANGELOOSE]:u[c.XRANGE];return e.replace(r,(r,n,i,o,s,l)=>{a("xRange",e,r,n,i,o,s,l);let u=b(i),c=u||b(o),p=c||b(s);return"="===n&&p&&(n=""),l=t.includePrerelease?"-0":"",u?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&p?(c&&(o=0),s=0,">"===n?(n=">=",c?(i=+i+1,o=0):o=+o+1,s=0):"<="===n&&(n="<",c?i=+i+1:o=+o+1),"<"===n&&(l="-0"),r=`${n+i}.${o}.${s}${l}`):c?r=`>=${i}.0.0${l} <${+i+1}.0.0-0`:p&&(r=`>=${i}.${o}.0${l} <${i}.${+o+1}.0-0`),a("xRange return",r),r;});},I=(e,t)=>(a("replaceStars",e,t),e.trim().replace(u[c.STAR],"")),A=(e,t)=>(a("replaceGTE0",e,t),e.trim().replace(u[t.includePrerelease?c.GTE0PRE:c.GTE0],"")),O=e=>(t,r,n,i,o,a,s,l,u,c,p,d,f)=>(r=b(n)?"":b(i)?`>=${n}.0.0${e?"-0":""}`:b(o)?`>=${n}.${i}.0${e?"-0":""}`:a?">="+r:`>=${r}${e?"-0":""}`,l=b(u)?"":b(c)?`<${+u+1}.0.0-0`:b(p)?`<${u}.${+c+1}.0-0`:d?`<=${u}.${c}.${p}-${d}`:e?`<${u}.${c}.${+p+1}-0`:"<="+l,`${r} ${l}`.trim()),C=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++)if(a(e[r].semver),e[r].semver!==o.ANY&&e[r].semver.prerelease.length>0){let n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0;}return!1;}return!0;};}),rG("31A6g",function(e,t){var r=rB("i08Cw");let n=Symbol(),i=Symbol(),o=Symbol(),a=Symbol(),s=Symbol(),l=Symbol(),u=Symbol(),c=Symbol(),p=Symbol(),d=Symbol(),f=()=>1,h=(e,t,r)=>{let n=e[p].get(t);if(n){let t=n.value;if(m(e,t)){if(v(e,n),!e[a])return;}else r&&(e[d]&&(n.value.now=Date.now()),e[c].unshiftNode(n));return t.value;}},m=(e,t)=>{if(!t||!t.maxAge&&!e[s])return!1;let r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[s]&&r>e[s];},g=e=>{if(e[i]>e[n])for(let t=e[c].tail;e[i]>e[n]&&null!==t;){let r=t.prev;v(e,t),t=r;}},v=(e,t)=>{if(t){let r=t.value;e[l]&&e[l](r.key,r.value),e[i]-=r.length,e[p].delete(r.key),e[c].removeNode(t);}};class E{constructor(e,t,r,n,i){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=i||0;}}let w=(e,t,r,n)=>{let i=r.value;m(e,i)&&(v(e,r),e[a]||(i=void 0)),i&&t.call(n,i.value,i.key,e);};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw TypeError("max must be a non-negative number");this[n]=e.max||1/0;let t=e.length||f;if(this[o]="function"!=typeof t?f:t,this[a]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw TypeError("maxAge must be a number");this[s]=e.maxAge||0,this[l]=e.dispose,this[u]=e.noDisposeOnSet||!1,this[d]=e.updateAgeOnGet||!1,this.reset();}set max(e){if("number"!=typeof e||e<0)throw TypeError("max must be a non-negative number");this[n]=e||1/0,g(this);}get max(){return this[n];}set allowStale(e){this[a]=!!e;}get allowStale(){return this[a];}set maxAge(e){if("number"!=typeof e)throw TypeError("maxAge must be a non-negative number");this[s]=e,g(this);}get maxAge(){return this[s];}set lengthCalculator(e){"function"!=typeof e&&(e=f),e!==this[o]&&(this[o]=e,this[i]=0,this[c].forEach(e=>{e.length=this[o](e.value,e.key),this[i]+=e.length;})),g(this);}get lengthCalculator(){return this[o];}get length(){return this[i];}get itemCount(){return this[c].length;}rforEach(e,t){t=t||this;for(let r=this[c].tail;null!==r;){let n=r.prev;w(this,e,r,t),r=n;}}forEach(e,t){t=t||this;for(let r=this[c].head;null!==r;){let n=r.next;w(this,e,r,t),r=n;}}keys(){return this[c].toArray().map(e=>e.key);}values(){return this[c].toArray().map(e=>e.value);}reset(){this[l]&&this[c]&&this[c].length&&this[c].forEach(e=>this[l](e.key,e.value)),this[p]=new Map(),this[c]=new r(),this[i]=0;}dump(){return this[c].map(e=>!m(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e);}dumpLru(){return this[c];}set(e,t,r){if((r=r||this[s])&&"number"!=typeof r)throw TypeError("maxAge must be a number");let a=r?Date.now():0,d=this[o](t,e);if(this[p].has(e)){if(d>this[n])return v(this,this[p].get(e)),!1;let o=this[p].get(e).value;return this[l]&&!this[u]&&this[l](e,o.value),o.now=a,o.maxAge=r,o.value=t,this[i]+=d-o.length,o.length=d,this.get(e),g(this),!0;}let f=new E(e,t,d,a,r);return f.length>this[n]?(this[l]&&this[l](e,t),!1):(this[i]+=f.length,this[c].unshift(f),this[p].set(e,this[c].head),g(this),!0);}has(e){return!!this[p].has(e)&&!m(this,this[p].get(e).value);}get(e){return h(this,e,!0);}peek(e){return h(this,e,!1);}pop(){let e=this[c].tail;return e?(v(this,e),e.value):null;}del(e){v(this,this[p].get(e));}load(e){this.reset();let t=Date.now();for(let r=e.length-1;r>=0;r--){let n=e[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{let e=i-t;e>0&&this.set(n.k,n.v,e);}}}prune(){this[p].forEach((e,t)=>h(this,t,!1));}};}),rG("i08Cw",function(e,t){function r(e){var t=this;if(t instanceof r||(t=new r()),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach(function(e){t.push(e);});else if(arguments.length>0)for(var n=0,i=arguments.length;i>n;n++)t.push(arguments[n]);return t;}function n(e,t,r,i){if(!(this instanceof n))return new n(e,t,r,i);this.list=i,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null;}e.exports=r,r.Node=n,r.create=r,r.prototype.removeNode=function(e){if(e.list!==this)throw Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t;},r.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++;}},r.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++;}},r.prototype.push=function(){for(var e,t=0,r=arguments.length;r>t;t++)e=arguments[t],this.tail=new n(e,this.tail,null,this),this.head||(this.head=this.tail),this.length++;return this.length;},r.prototype.unshift=function(){for(var e,t=0,r=arguments.length;r>t;t++)e=arguments[t],this.head=new n(e,null,this.head,this),this.tail||(this.tail=this.head),this.length++;return this.length;},r.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e;}},r.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e;}},r.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;null!==r;n++)e.call(t,r.value,n,this),r=r.next;},r.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;null!==r;n--)e.call(t,r.value,n,this),r=r.prev;},r.prototype.get=function(e){for(var t=0,r=this.head;null!==r&&e>t;t++)r=r.next;if(t===e&&null!==r)return r.value;},r.prototype.getReverse=function(e){for(var t=0,r=this.tail;null!==r&&e>t;t++)r=r.prev;if(t===e&&null!==r)return r.value;},r.prototype.map=function(e,t){t=t||this;for(var n=new r(),i=this.head;null!==i;)n.push(e.call(t,i.value,this)),i=i.next;return n;},r.prototype.mapReverse=function(e,t){t=t||this;for(var n=new r(),i=this.tail;null!==i;)n.push(e.call(t,i.value,this)),i=i.prev;return n;},r.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else if(this.head)n=this.head.next,r=this.head.value;else throw TypeError("Reduce of empty list with no initial value");for(var i=0;null!==n;i++)r=e(r,n.value,i),n=n.next;return r;},r.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;null!==n;i--)r=e(r,n.value,i),n=n.prev;return r;},r.prototype.toArray=function(){for(var e=Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e;},r.prototype.toArrayReverse=function(){for(var e=Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e;},r.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r();if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=0,o=this.head;null!==o&&i<e;i++)o=o.next;for(;null!==o&&t>i;i++,o=o.next)n.push(o.value);return n;},r.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r();if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=this.length,o=this.tail;null!==o&&i>t;i--)o=o.prev;for(;null!==o&&i>e;i--,o=o.prev)n.push(o.value);return n;},r.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var i=0,o=this.head;null!==o&&e>i;i++)o=o.next;for(var a=[],i=0;o&&i<t;i++)a.push(o.value),o=this.removeNode(o);null===o&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev);for(var i=0;i<r.length;i++)o=function(e,t,r){var i=t===e.head?new n(r,null,t,e):new n(r,t,t.next,e);return null===i.next&&(e.tail=i),null===i.prev&&(e.head=i),e.length++,i;}(this,o,r[i]);return a;},r.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;null!==r;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n;}return this.head=t,this.tail=e,this;};try{rB("5MZUR")(r);}catch(e){}}),rG("5MZUR",function(e,t){e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value;};};}),rG("42oIR",function(e,t){var r=rB("bswWF");e.exports=(e,t,n)=>{try{t=new r(t,n);}catch(e){return!1;}return t.test(e);};}),rG("4zfp3",function(e,t){var r=rB("bswWF");e.exports=(e,t)=>new r(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "));}),rG("ga5uZ",function(e,t){var r=rB("8cXe9"),n=rB("bswWF");e.exports=(e,t,i)=>{let o=null,a=null,s=null;try{s=new n(t,i);}catch(e){return null;}return e.forEach(e=>{s.test(e)&&(!o||-1===a.compare(e))&&(a=new r(o=e,i));}),o;};}),rG("lPGVL",function(e,t){var r=rB("8cXe9"),n=rB("bswWF");e.exports=(e,t,i)=>{let o=null,a=null,s=null;try{s=new n(t,i);}catch(e){return null;}return e.forEach(e=>{s.test(e)&&(!o||1===a.compare(e))&&(a=new r(o=e,i));}),o;};}),rG("1I8AA",function(e,t){var r=rB("8cXe9"),n=rB("bswWF"),i=rB("cOpcP");e.exports=(e,t)=>{e=new n(e,t);let o=new r("0.0.0");if(e.test(o)||(o=new r("0.0.0-0"),e.test(o)))return o;o=null;for(let t=0;t<e.set.length;++t){let n=e.set[t],a=null;n.forEach(e=>{let t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!a||i(t,a))&&(a=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator);}}),a&&(!o||i(o,a))&&(o=a);}return o&&e.test(o)?o:null;};}),rG("dBtft",function(e,t){var r=rB("bswWF");e.exports=(e,t)=>{try{return new r(e,t).range||"*";}catch(e){return null;}};}),rG("83Sp2",function(e,t){var r=rB("8cXe9"),n=rB("1bxhC");let{ANY:i}=n;var o=rB("bswWF"),a=rB("42oIR"),s=rB("cOpcP"),l=rB("58P10"),u=rB("hlfY9"),c=rB("3XWvL");e.exports=(e,t,p,d)=>{let f,h,m,g,v;switch(e=new r(e,d),t=new o(t,d),p){case">":f=s,h=u,m=l,g=">",v=">=";break;case"<":f=l,h=c,m=s,g="<",v="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"');}if(a(e,t,d))return!1;for(let r=0;r<t.set.length;++r){let o=t.set[r],a=null,s=null;if(o.forEach(e=>{e.semver===i&&(e=new n(">=0.0.0")),a=a||e,s=s||e,f(e.semver,a.semver,d)?a=e:m(e.semver,s.semver,d)&&(s=e);}),a.operator===g||a.operator===v||(!s.operator||s.operator===g)&&h(e,s.semver)||s.operator===v&&m(e,s.semver))return!1;}return!0;};}),rG("eK4my",function(e,t){var r=rB("83Sp2");e.exports=(e,t,n)=>r(e,t,">",n);}),rG("eNXBI",function(e,t){var r=rB("83Sp2");e.exports=(e,t,n)=>r(e,t,"<",n);}),rG("kHzUo",function(e,t){var r=rB("bswWF");e.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t,n));}),rG("1x2XZ",function(e,t){var r=rB("42oIR"),n=rB("jDqfd");e.exports=(e,t,i)=>{let o=[],a=null,s=null,l=e.sort((e,t)=>n(e,t,i));for(let e of l)r(e,t,i)?(s=e,a||(a=e)):(s&&o.push([a,s]),s=null,a=null);a&&o.push([a,null]);let u=[];for(let[e,t]of o)e===t?u.push(e):t||e!==l[0]?t?e===l[0]?u.push("<="+t):u.push(`${e} - ${t}`):u.push(">="+e):u.push("*");let c=u.join(" || "),p="string"==typeof t.raw?t.raw:t+"";return c.length<p.length?c:t;};}),rG("hTYir",function(e,t){var r=rB("bswWF"),n=rB("1bxhC");let{ANY:i}=n;var o=rB("42oIR"),a=rB("jDqfd");let s=[new n(">=0.0.0-0")],l=[new n(">=0.0.0")],u=(e,t,r)=>{let n,u,d,f,h,m,g;if(e===t)return!0;if(1===e.length&&e[0].semver===i){if(1===t.length&&t[0].semver===i)return!0;e=r.includePrerelease?s:l;}if(1===t.length&&t[0].semver===i){if(r.includePrerelease)return!0;t=l;}let v=new Set();for(let t of e)">"===t.operator||">="===t.operator?n=c(n,t,r):"<"===t.operator||"<="===t.operator?u=p(u,t,r):v.add(t.semver);if(v.size>1||n&&u&&((d=a(n.semver,u.semver,r))>0||0===d&&(">="!==n.operator||"<="!==u.operator)))return null;for(let e of v){if(n&&!o(e,n+"",r)||u&&!o(e,u+"",r))return null;for(let n of t)if(!o(e,n+"",r))return!1;return!0;}let E=!!u&&!r.includePrerelease&&!!u.semver.prerelease.length&&u.semver,w=!!n&&!r.includePrerelease&&!!n.semver.prerelease.length&&n.semver;for(let e of(E&&1===E.prerelease.length&&"<"===u.operator&&0===E.prerelease[0]&&(E=!1),t)){if(g=g||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,n){if(w&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===w.major&&e.semver.minor===w.minor&&e.semver.patch===w.patch&&(w=!1),">"===e.operator||">="===e.operator){if((f=c(n,e,r))===e&&f!==n)return!1;}else if(">="===n.operator&&!o(n.semver,e+"",r))return!1;}if(u){if(E&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===E.major&&e.semver.minor===E.minor&&e.semver.patch===E.patch&&(E=!1),"<"===e.operator||"<="===e.operator){if((h=p(u,e,r))===e&&h!==u)return!1;}else if("<="===u.operator&&!o(u.semver,e+"",r))return!1;}if(!e.operator&&(u||n)&&0!==d)return!1;}return(!n||!m||!!u||0===d)&&(!u||!g||!!n||0===d)&&!w&&!E;},c=(e,t,r)=>{if(!e)return t;let n=a(e.semver,t.semver,r);return n>0?e:n<0?t:">"===t.operator&&">="===e.operator?t:e;},p=(e,t,r)=>{if(!e)return t;let n=a(e.semver,t.semver,r);return n<0?e:n>0?t:"<"===t.operator&&"<="===e.operator?t:e;};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new r(e,n),t=new r(t,n);let i=!1;e:for(let r of e.set){for(let e of t.set){let t=u(r,e,n);if(i=i||null!==t,t)continue e;}if(i)return!1;}return!0;};}),rG("8CJZb",function(e,t){e.exports=function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");};}),rG("6t4SD",function(e,t){async function r(e){try{return await(0,rx.promises).access(e),!0;}catch{return!1;}}c(e.exports,"pathExists",()=>r);}),rG("eAXk4",function(e,t){var r,n,i,o,a,s,l,u,d,f,h,m,g;function v(e,t){return Object.keys(t).forEach(r=>{"default"===r||"__esModule"===r||e.hasOwnProperty(r)||Object.defineProperty(e,r,{enumerable:!0,get:()=>t[r]});}),e;}function E(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0});}function w(e,t=!0){return t?(0,iv.basename)(e):(0,iv.basename)(e,(0,iv.extname)(e));}function y(e){return(0,iv.normalize)(e).replace(RegExp((0,r.default)(iv.sep)+"$"),"");}function b(e,t=".exe",r=""){return"win32"===process.platform?`${e}${t}`:`${e}${r}`;}function x(e,t){let r=(0,iv.extname)(e),n=`${t}${(0,iv.basename)(e,r)}${r}`;return(0,iv.join)((0,iv.dirname)(e),n);}function S(e,t){let r=(0,iv.extname)(e),n=`${(0,iv.basename)(e,r)}${t}${r}`;return(0,iv.join)((0,iv.dirname)(e),n);}function D(e,t=".cmd",r=".sh"){return"win32"===process.platform?`${e}${t}`:`${e}${r}`;}function T(e){return"win32"===process.platform?e:"./"+e;}function R(e){let t=(0,iv.extname)(e).length;return e.slice(0,-t);}function N(e,t){return p(n)(e,t);}function I(e,t){let r=(0,iv.relative)(t,e);return!(!r||".."===r||r.startsWith(".."+iv.sep)||r===(0,iv.resolve)(e));}c(e.exports,"addExeExt",()=>b),c(e.exports,"addShExt",()=>D),c(e.exports,"addShRelativePrefix",()=>T),c(e.exports,"dirname",()=>iv.dirname),c(e.exports,"join",()=>iv.join),r=rB("f44Uw"),n=rB("fBJE3"),i={},E(o={},"name",()=>w),E(a={},"normalizeTrim",()=>y),E(s={},"addExeExt",()=>b),E(l={},"addNamePrefix",()=>x),E(u={},"addNameSuffix",()=>S),E(d={},"addShExt",()=>D),E(f={},"addShRelativePrefix",()=>T),E(h={},"removeExt",()=>R),E(m={},"replaceExt",()=>N),E(g={},"isPathInside",()=>I),v(i,o),v(i,a),v(i,s),v(i,l),v(i,u),v(i,d),v(i,f),v(i,h),v(i,m),v(i,g);}),rG("f44Uw",function(e,t){function r(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d");}c(e.exports,"default",()=>r);}),rG("fBJE3",function(e,t){e.exports=function(e,t){if("string"!=typeof e||0===e.length)return e;var r,n=iv.basename(e,iv.extname(e))+t,i=iv.join(iv.dirname(e),n);return(r=e.slice(0,2))==="."+iv.sep||"./"===r?"."+iv.sep+i:i;};}),rG("zdagz",function(e,t){var r,n,i,o;function a(e){return o(this,void 0,void 0,function*(){if(p.IS_WINDOWS&&/[*"<>|]/.test(e))throw Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield p.rm(e,{force:!0,maxRetries:3,recursive:!0,retryDelay:300});}catch(e){throw Error("File was unable to be removed "+e);}});}function s(e){return o(this,void 0,void 0,function*(){ry.ok(e,"a path argument must be provided"),yield p.mkdir(e,{recursive:!0});});}function l(e){return o(this,void 0,void 0,function*(){if(!e)throw Error("parameter 'tool' is required");let t=[];if(p.IS_WINDOWS&&process.env.PATHEXT)for(let e of process.env.PATHEXT.split(c.delimiter))e&&t.push(e);if(p.isRooted(e)){let r=yield p.tryGetExecutablePath(e,t);return r?[r]:[];}if(e.includes(c.sep))return[];let r=[];if(process.env.PATH)for(let e of process.env.PATH.split(c.delimiter))e&&r.push(e);let n=[];for(let i of r){let r=yield p.tryGetExecutablePath(c.join(i,e),t);r&&n.push(r);}return n;});}function u(e,t,r){return o(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));}let 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));});}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e));}catch(e){o(e);}}function s(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(a,s);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.findInPath=e.exports.which=e.exports.mkdirP=e.exports.rmRF=e.exports.mv=e.exports.cp=void 0;let c=i(iv),p=i(rB("fwMQK"));e.exports.cp=function(e,t,r={}){return o(this,void 0,void 0,function*(){let{force:n,recursive:i,copySourceDirectory:a}=function(e){let t=null==e.force||e.force;return{force:t,recursive:!!e.recursive,copySourceDirectory:null==e.copySourceDirectory||!!e.copySourceDirectory};}(r),l=(yield p.exists(t))?yield p.stat(t):null;if(l&&l.isFile()&&!n)return;let d=l&&l.isDirectory()&&a?c.join(t,c.basename(e)):t;if(!(yield p.exists(e)))throw Error("no such file or directory: "+e);if((yield p.stat(e)).isDirectory()){if(i)yield function e(t,r,n,i){return o(this,void 0,void 0,function*(){if(!(n>=255)){for(let o of(n++,yield s(r),yield p.readdir(t))){let a=`${t}/${o}`,s=`${r}/${o}`;(yield p.lstat(a)).isDirectory()?yield e(a,s,n,i):yield u(a,s,i);}yield p.chmod(r,(yield p.stat(t)).mode);}});}(e,d,0,n);else throw Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);}else{if(""===c.relative(e,d))throw Error(`'${d}' and '${e}' are the same file`);yield u(e,d,n);}});},e.exports.mv=function(e,t,r={}){return o(this,void 0,void 0,function*(){if(yield p.exists(t)){let n=!0;if((yield p.isDirectory(t))&&(t=c.join(t,c.basename(e)),n=yield p.exists(t)),n){if(null==r.force||r.force)yield a(t);else throw Error("Destination already exists");}}yield s(c.dirname(t)),yield p.rename(e,t);});},e.exports.rmRF=a,e.exports.mkdirP=s,e.exports.which=function e(t,r){return o(this,void 0,void 0,function*(){if(!t)throw Error("parameter 'tool' is required");if(r){let r=yield e(t,!1);if(!r){if(p.IS_WINDOWS)throw Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`);throw Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);}return r;}let n=yield l(t);return n&&n.length>0?n[0]:"";});},e.exports.findInPath=l;}),rG("fwMQK",function(e,t){var r,n,i,o,a;function s(e){return(1&e.mode)>0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid();}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e));}catch(e){o(e);}}function s(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(a,s);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getCmdPath=e.exports.tryGetExecutablePath=e.exports.isRooted=e.exports.isDirectory=e.exports.exists=e.exports.READONLY=e.exports.UV_FS_O_EXLOCK=e.exports.IS_WINDOWS=e.exports.unlink=e.exports.symlink=e.exports.stat=e.exports.rmdir=e.exports.rm=e.exports.rename=e.exports.readlink=e.exports.readdir=e.exports.open=e.exports.mkdir=e.exports.lstat=e.exports.copyFile=e.exports.chmod=void 0;let l=i(iE),u=i(iv);a=l.promises,e.exports.chmod=a.chmod,e.exports.copyFile=a.copyFile,e.exports.lstat=a.lstat,e.exports.mkdir=a.mkdir,e.exports.open=a.open,e.exports.readdir=a.readdir,e.exports.readlink=a.readlink,e.exports.rename=a.rename,e.exports.rm=a.rm,e.exports.rmdir=a.rmdir,e.exports.stat=a.stat,e.exports.symlink=a.symlink,e.exports.unlink=a.unlink,e.exports.IS_WINDOWS="win32"===process.platform,e.exports.UV_FS_O_EXLOCK=268435456,e.exports.READONLY=l.constants.O_RDONLY,e.exports.exists=function(t){return o(this,void 0,void 0,function*(){try{yield e.exports.stat(t);}catch(e){if("ENOENT"===e.code)return!1;throw e;}return!0;});},e.exports.isDirectory=function(t,r=!1){return o(this,void 0,void 0,function*(){return(r?yield e.exports.stat(t):yield e.exports.lstat(t)).isDirectory();});},e.exports.isRooted=function(t){var r;if(r=(r=t)||"",!(t=e.exports.IS_WINDOWS?(r=r.replace(/\//g,"\\")).replace(/\\\\+/g,"\\"):r.replace(/\/\/+/g,"/")))throw Error('isRooted() parameter "p" cannot be empty');return e.exports.IS_WINDOWS?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/");},e.exports.tryGetExecutablePath=function(t,r){return o(this,void 0,void 0,function*(){let n;try{n=yield e.exports.stat(t);}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`);}if(n&&n.isFile()){if(e.exports.IS_WINDOWS){let e=u.extname(t).toUpperCase();if(r.some(t=>t.toUpperCase()===e))return t;}else if(s(n))return t;}let i=t;for(let o of r){t=i+o,n=void 0;try{n=yield e.exports.stat(t);}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`);}if(n&&n.isFile()){if(e.exports.IS_WINDOWS){try{let r=u.dirname(t),n=u.basename(t).toUpperCase();for(let i of yield e.exports.readdir(r))if(n===i.toUpperCase()){t=u.join(r,i);break;}}catch(e){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${e}`);}return t;}if(s(n))return t;}}return"";});},e.exports.getCmdPath=function(){var e;return null!==(e=process.env.COMSPEC)&&void 0!==e?e:"cmd.exe";};}),rG("gn8Si",function(e,t){var r,n,i,o,a;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e));}catch(e){o(e);}}function s(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(a,s);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports._readLinuxVersionFile=e.exports._getOsVersion=e.exports._findMatch=void 0;let s=i(rB("0306Y"));a=rB("1o3Gj"),e.exports._findMatch=function(t,r,n,i){return o(this,void 0,void 0,function*(){let o,l,u;let c=ig.platform();for(let o of n){let n=o.version;if(a.debug(`check ${n} satisfies ${t}`),s.satisfies(n,t)&&(!r||o.stable===r)&&(u=o.files.find(t=>{a.debug(`${t.arch}===${i} && ${t.platform}===${c}`);let r=t.arch===i&&t.platform===c;if(r&&t.platform_version){let n=e.exports._getOsVersion();r=n===t.platform_version||s.satisfies(n,t.platform_version);}return r;}))){a.debug("matched "+o.version),l=o;break;}}return l&&u&&((o=Object.assign({},l)).files=[u]),o;});},e.exports._getOsVersion=function(){let t=ig.platform(),r="";if("darwin"===t)r=rS.execSync("sw_vers -productVersion").toString();else if("linux"===t){let t=e.exports._readLinuxVersionFile();if(t)for(let e of t.split("\n")){let t=e.split("=");if(2===t.length&&("VERSION_ID"===t[0].trim()||"DISTRIB_RELEASE"===t[0].trim())){r=t[1].trim().replace(/^"/,"").replace(/"$/,"");break;}}}return r;},e.exports._readLinuxVersionFile=function(){let e="/etc/lsb-release",t="/etc/os-release",r="";return iE.existsSync(e)?r=iE.readFileSync(e).toString():iE.existsSync(t)&&(r=iE.readFileSync(t).toString()),r;};}),rG("0306Y",function(e,t){function r(e){A[e]=O++;}function n(e){for(var t=0;t<_.length;t++){var r=_[t][0],n=_[t][1];e=e.split(r+"*").join(r+"{0,"+n+"}").split(r+"+").join(r+"{1,"+n+"}");}return e;}function i(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof o)return e;if("string"!=typeof e||e.length>S||!(t.loose?N[A.LOOSE]:N[A.FULL]).test(e))return null;try{return new o(e,t);}catch(e){return null;}}function o(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof o){if(e.loose===t.loose)return e;e=e.version;}else if("string"!=typeof e)throw TypeError("Invalid Version: "+e);if(e.length>S)throw TypeError("version is longer than "+S+" characters");if(!(this instanceof o))return new o(e,t);x("SemVer",e,t),this.options=t,this.loose=!!t.loose;var r=e.trim().match(t.loose?N[A.LOOSE]:N[A.FULL]);if(!r)throw TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>D||this.major<0)throw TypeError("Invalid major version");if(this.minor>D||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>D||this.patch<0)throw TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<D)return t;}return e;}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format();}function a(e,t){var r=$.test(e),n=$.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:t>e?-1:1;}function s(e,t,r){return new o(e,r).compare(new o(t,r));}function l(e,t,r){return s(e,t,r)>0;}function u(e,t,r){return 0>s(e,t,r);}function c(e,t,r){return 0===s(e,t,r);}function p(e,t,r){return 0!==s(e,t,r);}function d(e,t,r){return s(e,t,r)>=0;}function f(e,t,r){return 0>=s(e,t,r);}function h(e,t,r,n){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return c(e,r,n);case"!=":return p(e,r,n);case">":return l(e,r,n);case">=":return d(e,r,n);case"<":return u(e,r,n);case"<=":return f(e,r,n);default:throw TypeError("Invalid operator: "+t);}}function m(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof m){if(!!t.loose===e.loose)return e;e=e.value;}if(!(this instanceof m))return new m(e,t);e=e.trim().split(/\s+/).join(" "),x("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===P?this.value="":this.value=this.operator+this.semver.version,x("comp",this);}function g(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof g)return!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease?e:new g(e.raw,t);if(e instanceof m)return new g(e.value,t);if(!(this instanceof g))return new g(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(function(e){return this.parseRange(e.trim());},this).filter(function(e){return e.length;}),!this.set.length)throw TypeError("Invalid SemVer Range: "+this.raw);this.format();}function v(e,t){for(var r=!0,n=e.slice(),i=n.pop();r&&n.length;)r=n.every(function(e){return i.intersects(e,t);}),i=n.pop();return r;}function E(e){return!e||"x"===e.toLowerCase()||"*"===e;}function w(e,t,r,n,i,o,a,s,l,u,c,p,d){return((t=E(r)?"":E(n)?">="+r+".0.0":E(i)?">="+r+"."+n+".0":">="+t)+" "+(s=E(l)?"":E(u)?"<"+(+l+1)+".0.0":E(c)?"<"+l+"."+(+u+1)+".0":p?"<="+l+"."+u+"."+c+"-"+p:"<="+s)).trim();}function y(e,t,r){try{t=new g(t,r);}catch(e){return!1;}return t.test(e);}function b(e,t,r,n){switch(e=new o(e,n),t=new g(t,n),r){case">":i=l,a=f,s=u,c=">",p=">=";break;case"<":i=u,a=d,s=l,c="<",p="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"');}if(y(e,t,n))return!1;for(var i,a,s,c,p,h=0;h<t.set.length;++h){var v=t.set[h],E=null,w=null;if(v.forEach(function(e){e.semver===P&&(e=new m(">=0.0.0")),E=E||e,w=w||e,i(e.semver,E.semver,n)?E=e:s(e.semver,w.semver,n)&&(w=e);}),E.operator===c||E.operator===p||(!w.operator||w.operator===c)&&a(e,w.semver)||w.operator===p&&s(e,w.semver))return!1;}return!0;}t=e.exports=o,"object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?x=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e);}:x=function(){},t.SEMVER_SPEC_VERSION="2.0.0",S=256,D=Number.MAX_SAFE_INTEGER||9007199254740991,T=S-6,R=t.re=[],N=t.safeRe=[],I=t.src=[],A=t.tokens={},O=0,_=[["\\s",1],["\\d",S],[C="[a-zA-Z0-9-]",T]],r("NUMERICIDENTIFIER"),I[A.NUMERICIDENTIFIER]="0|[1-9]\\d*",r("NUMERICIDENTIFIERLOOSE"),I[A.NUMERICIDENTIFIERLOOSE]="\\d+",r("NONNUMERICIDENTIFIER"),I[A.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+C+"*",r("MAINVERSION"),I[A.MAINVERSION]="("+I[A.NUMERICIDENTIFIER]+")\\.("+I[A.NUMERICIDENTIFIER]+")\\.("+I[A.NUMERICIDENTIFIER]+")",r("MAINVERSIONLOOSE"),I[A.MAINVERSIONLOOSE]="("+I[A.NUMERICIDENTIFIERLOOSE]+")\\.("+I[A.NUMERICIDENTIFIERLOOSE]+")\\.("+I[A.NUMERICIDENTIFIERLOOSE]+")",r("PRERELEASEIDENTIFIER"),I[A.PRERELEASEIDENTIFIER]="(?:"+I[A.NUMERICIDENTIFIER]+"|"+I[A.NONNUMERICIDENTIFIER]+")",r("PRERELEASEIDENTIFIERLOOSE"),I[A.PRERELEASEIDENTIFIERLOOSE]="(?:"+I[A.NUMERICIDENTIFIERLOOSE]+"|"+I[A.NONNUMERICIDENTIFIER]+")",r("PRERELEASE"),I[A.PRERELEASE]="(?:-("+I[A.PRERELEASEIDENTIFIER]+"(?:\\."+I[A.PRERELEASEIDENTIFIER]+")*))",r("PRERELEASELOOSE"),I[A.PRERELEASELOOSE]="(?:-?("+I[A.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+I[A.PRERELEASEIDENTIFIERLOOSE]+")*))",r("BUILDIDENTIFIER"),I[A.BUILDIDENTIFIER]=C+"+",r("BUILD"),I[A.BUILD]="(?:\\+("+I[A.BUILDIDENTIFIER]+"(?:\\."+I[A.BUILDIDENTIFIER]+")*))",r("FULL"),r("FULLPLAIN"),I[A.FULLPLAIN]="v?"+I[A.MAINVERSION]+I[A.PRERELEASE]+"?"+I[A.BUILD]+"?",I[A.FULL]="^"+I[A.FULLPLAIN]+"$",r("LOOSEPLAIN"),I[A.LOOSEPLAIN]="[v=\\s]*"+I[A.MAINVERSIONLOOSE]+I[A.PRERELEASELOOSE]+"?"+I[A.BUILD]+"?",r("LOOSE"),I[A.LOOSE]="^"+I[A.LOOSEPLAIN]+"$",r("GTLT"),I[A.GTLT]="((?:<|>)?=?)",r("XRANGEIDENTIFIERLOOSE"),I[A.XRANGEIDENTIFIERLOOSE]=I[A.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",r("XRANGEIDENTIFIER"),I[A.XRANGEIDENTIFIER]=I[A.NUMERICIDENTIFIER]+"|x|X|\\*",r("XRANGEPLAIN"),I[A.XRANGEPLAIN]="[v=\\s]*("+I[A.XRANGEIDENTIFIER]+")(?:\\.("+I[A.XRANGEIDENTIFIER]+")(?:\\.("+I[A.XRANGEIDENTIFIER]+")(?:"+I[A.PRERELEASE]+")?"+I[A.BUILD]+"?)?)?",r("XRANGEPLAINLOOSE"),I[A.XRANGEPLAINLOOSE]="[v=\\s]*("+I[A.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+I[A.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+I[A.XRANGEIDENTIFIERLOOSE]+")(?:"+I[A.PRERELEASELOOSE]+")?"+I[A.BUILD]+"?)?)?",r("XRANGE"),I[A.XRANGE]="^"+I[A.GTLT]+"\\s*"+I[A.XRANGEPLAIN]+"$",r("XRANGELOOSE"),I[A.XRANGELOOSE]="^"+I[A.GTLT]+"\\s*"+I[A.XRANGEPLAINLOOSE]+"$",r("COERCE"),I[A.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",r("COERCERTL"),R[A.COERCERTL]=RegExp(I[A.COERCE],"g"),N[A.COERCERTL]=RegExp(n(I[A.COERCE]),"g"),r("LONETILDE"),I[A.LONETILDE]="(?:~>?)",r("TILDETRIM"),I[A.TILDETRIM]="(\\s*)"+I[A.LONETILDE]+"\\s+",R[A.TILDETRIM]=RegExp(I[A.TILDETRIM],"g"),N[A.TILDETRIM]=RegExp(n(I[A.TILDETRIM]),"g"),r("TILDE"),I[A.TILDE]="^"+I[A.LONETILDE]+I[A.XRANGEPLAIN]+"$",r("TILDELOOSE"),I[A.TILDELOOSE]="^"+I[A.LONETILDE]+I[A.XRANGEPLAINLOOSE]+"$",r("LONECARET"),I[A.LONECARET]="(?:\\^)",r("CARETTRIM"),I[A.CARETTRIM]="(\\s*)"+I[A.LONECARET]+"\\s+",R[A.CARETTRIM]=RegExp(I[A.CARETTRIM],"g"),N[A.CARETTRIM]=RegExp(n(I[A.CARETTRIM]),"g"),r("CARET"),I[A.CARET]="^"+I[A.LONECARET]+I[A.XRANGEPLAIN]+"$",r("CARETLOOSE"),I[A.CARETLOOSE]="^"+I[A.LONECARET]+I[A.XRANGEPLAINLOOSE]+"$",r("COMPARATORLOOSE"),I[A.COMPARATORLOOSE]="^"+I[A.GTLT]+"\\s*("+I[A.LOOSEPLAIN]+")$|^$",r("COMPARATOR"),I[A.COMPARATOR]="^"+I[A.GTLT]+"\\s*("+I[A.FULLPLAIN]+")$|^$",r("COMPARATORTRIM"),I[A.COMPARATORTRIM]="(\\s*)"+I[A.GTLT]+"\\s*("+I[A.LOOSEPLAIN]+"|"+I[A.XRANGEPLAIN]+")",R[A.COMPARATORTRIM]=RegExp(I[A.COMPARATORTRIM],"g"),N[A.COMPARATORTRIM]=RegExp(n(I[A.COMPARATORTRIM]),"g"),L="$1$2$3",r("HYPHENRANGE"),I[A.HYPHENRANGE]="^\\s*("+I[A.XRANGEPLAIN]+")\\s+-\\s+("+I[A.XRANGEPLAIN]+")\\s*$",r("HYPHENRANGELOOSE"),I[A.HYPHENRANGELOOSE]="^\\s*("+I[A.XRANGEPLAINLOOSE]+")\\s+-\\s+("+I[A.XRANGEPLAINLOOSE]+")\\s*$",r("STAR"),I[A.STAR]="(<|>)?=?\\s*\\*";for(var x,S,D,T,R,N,I,A,O,C,_,L,$,P,k=0;k<O;k++)x(k,I[k]),R[k]||(R[k]=new RegExp(I[k]),N[k]=new RegExp(n(I[k])));t.parse=i,t.valid=function(e,t){var r=i(e,t);return r?r.version:null;},t.clean=function(e,t){var r=i(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null;},t.SemVer=o,o.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version;},o.prototype.toString=function(){return this.version;},o.prototype.compare=function(e){return x("SemVer.compare",this.version,this.options,e),e instanceof o||(e=new o(e,this.options)),this.compareMain(e)||this.comparePre(e);},o.prototype.compareMain=function(e){return e instanceof o||(e=new o(e,this.options)),a(this.major,e.major)||a(this.minor,e.minor)||a(this.patch,e.patch);},o.prototype.comparePre=function(e){if(e instanceof o||(e=new o(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],n=e.prerelease[t];if(x("prerelease compare",t,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return-1;else if(r===n)continue;else return a(r,n);}while(++t);},o.prototype.compareBuild=function(e){e instanceof o||(e=new o(e,this.options));var t=0;do{var r=this.build[t],n=e.build[t];if(x("prerelease compare",t,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return-1;else if(r===n)continue;else return a(r,n);}while(++t);},o.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var r=this.prerelease.length;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);-1===r&&this.prerelease.push(0);}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw Error("invalid increment argument: "+e);}return this.format(),this.raw=this.version,this;},t.inc=function(e,t,r,n){"string"==typeof r&&(n=r,r=void 0);try{return new o(e,r).inc(t,n).version;}catch(e){return null;}},t.diff=function(e,t){if(c(e,t))return null;var r=i(e),n=i(t),o="";if(r.prerelease.length||n.prerelease.length){o="pre";var a="prerelease";}for(var s in r)if(("major"===s||"minor"===s||"patch"===s)&&r[s]!==n[s])return o+s;return a;},t.compareIdentifiers=a,$=/^[0-9]+$/,t.rcompareIdentifiers=function(e,t){return a(t,e);},t.major=function(e,t){return new o(e,t).major;},t.minor=function(e,t){return new o(e,t).minor;},t.patch=function(e,t){return new o(e,t).patch;},t.compare=s,t.compareLoose=function(e,t){return s(e,t,!0);},t.compareBuild=function(e,t,r){var n=new o(e,r),i=new o(t,r);return n.compare(i)||n.compareBuild(i);},t.rcompare=function(e,t,r){return s(t,e,r);},t.sort=function(e,r){return e.sort(function(e,n){return t.compareBuild(e,n,r);});},t.rsort=function(e,r){return e.sort(function(e,n){return t.compareBuild(n,e,r);});},t.gt=l,t.lt=u,t.eq=c,t.neq=p,t.gte=d,t.lte=f,t.cmp=h,t.Comparator=m,P={},m.prototype.parse=function(e){var t=this.options.loose?N[A.COMPARATORLOOSE]:N[A.COMPARATOR],r=e.match(t);if(!r)throw TypeError("Invalid comparator: "+e);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new o(r[2],this.options.loose):this.semver=P;},m.prototype.toString=function(){return this.value;},m.prototype.test=function(e){if(x("Comparator.test",e,this.options.loose),this.semver===P||e===P)return!0;if("string"==typeof e)try{e=new o(e,this.options);}catch(e){return!1;}return h(e,this.operator,this.semver,this.options);},m.prototype.intersects=function(e,t){if(!(e instanceof m))throw TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(r=new g(e.value,t),y(this.value,r,t));if(""===e.operator)return""===e.value||(r=new g(this.value,t),y(e.semver,r,t));var r,n=(">="===this.operator||">"===this.operator)&&(">="===e.operator||">"===e.operator),i=("<="===this.operator||"<"===this.operator)&&("<="===e.operator||"<"===e.operator),o=this.semver.version===e.semver.version,a=(">="===this.operator||"<="===this.operator)&&(">="===e.operator||"<="===e.operator),s=h(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=h(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||i||o&&a||s||l;},t.Range=g,g.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim();}).join("||").trim(),this.range;},g.prototype.toString=function(){return this.range;},g.prototype.parseRange=function(e){var t=this.options.loose,r=t?N[A.HYPHENRANGELOOSE]:N[A.HYPHENRANGE];e=e.replace(r,w),x("hyphen replace",e),e=e.replace(N[A.COMPARATORTRIM],L),x("comparator trim",e,N[A.COMPARATORTRIM]),e=(e=(e=e.replace(N[A.TILDETRIM],"$1~")).replace(N[A.CARETTRIM],"$1^")).split(/\s+/).join(" ");var n=t?N[A.COMPARATORLOOSE]:N[A.COMPARATOR],i=e.split(" ").map(function(e){var t,r,n,i,o,a,s,l,u;return t=e,r=this.options,x("comp",t,r),n=t,i=r,t=n.trim().split(/\s+/).map(function(e){var t,r,n;return x("caret",t=e,r=i),n=r.loose?N[A.CARETLOOSE]:N[A.CARET],t.replace(n,function(e,r,n,i,o){var a;return x("caret",t,e,r,n,i,o),E(r)?a="":E(n)?a=">="+r+".0.0 <"+(+r+1)+".0.0":E(i)?a="0"===r?">="+r+"."+n+".0 <"+r+"."+(+n+1)+".0":">="+r+"."+n+".0 <"+(+r+1)+".0.0":o?(x("replaceCaret pr",o),a="0"===r?"0"===n?">="+r+"."+n+"."+i+"-"+o+" <"+r+"."+n+"."+(+i+1):">="+r+"."+n+"."+i+"-"+o+" <"+r+"."+(+n+1)+".0":">="+r+"."+n+"."+i+"-"+o+" <"+(+r+1)+".0.0"):(x("no pr"),a="0"===r?"0"===n?">="+r+"."+n+"."+i+" <"+r+"."+n+"."+(+i+1):">="+r+"."+n+"."+i+" <"+r+"."+(+n+1)+".0":">="+r+"."+n+"."+i+" <"+(+r+1)+".0.0"),x("caret return",a),a;});}).join(" "),x("caret",t),o=t,a=r,t=o.trim().split(/\s+/).map(function(e){var t,r;return t=e,r=a.loose?N[A.TILDELOOSE]:N[A.TILDE],t.replace(r,function(e,r,n,i,o){var a;return x("tilde",t,e,r,n,i,o),E(r)?a="":E(n)?a=">="+r+".0.0 <"+(+r+1)+".0.0":E(i)?a=">="+r+"."+n+".0 <"+r+"."+(+n+1)+".0":o?(x("replaceTilde pr",o),a=">="+r+"."+n+"."+i+"-"+o+" <"+r+"."+(+n+1)+".0"):a=">="+r+"."+n+"."+i+" <"+r+"."+(+n+1)+".0",x("tilde return",a),a;});}).join(" "),x("tildes",t),x("replaceXRanges",s=t,l=r),t=s.split(/\s+/).map(function(e){var t,r,n;return t=e,r=l,t=t.trim(),n=r.loose?N[A.XRANGELOOSE]:N[A.XRANGE],t.replace(n,function(e,n,i,o,a,s){x("xRange",t,e,n,i,o,a,s);var l=E(i),u=l||E(o),c=u||E(a);return"="===n&&c&&(n=""),s=r.includePrerelease?"-0":"",l?e=">"===n||"<"===n?"<0.0.0-0":"*":n&&c?(u&&(o=0),a=0,">"===n?(n=">=",u?(i=+i+1,o=0):o=+o+1,a=0):"<="===n&&(n="<",u?i=+i+1:o=+o+1),e=n+i+"."+o+"."+a+s):u?e=">="+i+".0.0"+s+" <"+(+i+1)+".0.0"+s:c&&(e=">="+i+"."+o+".0"+s+" <"+i+"."+(+o+1)+".0"+s),x("xRange return",e),e;});}).join(" "),x("xrange",t),x("replaceStars",u=t,r),t=u.trim().replace(N[A.STAR],""),x("stars",t),t;},this).join(" ").split(/\s+/);return this.options.loose&&(i=i.filter(function(e){return!!e.match(n);})),i=i.map(function(e){return new m(e,this.options);},this);},g.prototype.intersects=function(e,t){if(!(e instanceof g))throw TypeError("a Range is required");return this.set.some(function(r){return v(r,t)&&e.set.some(function(e){return v(e,t)&&r.every(function(r){return e.every(function(e){return r.intersects(e,t);});});});});},t.toComparators=function(e,t){return new g(e,t).set.map(function(e){return e.map(function(e){return e.value;}).join(" ").trim().split(" ");});},g.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new o(e,this.options);}catch(e){return!1;}for(var t=0;t<this.set.length;t++)if(function(e,t,r){for(var n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(n=0;n<e.length;n++)if(x(e[n].semver),e[n].semver!==P&&e[n].semver.prerelease.length>0){var i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0;}return!1;}return!0;}(this.set[t],e,this.options))return!0;return!1;},t.satisfies=y,t.maxSatisfying=function(e,t,r){var n=null,i=null;try{var a=new g(t,r);}catch(e){return null;}return e.forEach(function(e){a.test(e)&&(!n||-1===i.compare(e))&&(i=new o(n=e,r));}),n;},t.minSatisfying=function(e,t,r){var n=null,i=null;try{var a=new g(t,r);}catch(e){return null;}return e.forEach(function(e){a.test(e)&&(!n||1===i.compare(e))&&(i=new o(n=e,r));}),n;},t.minVersion=function(e,t){e=new g(e,t);var r=new o("0.0.0");if(e.test(r)||(r=new o("0.0.0-0"),e.test(r)))return r;r=null;for(var n=0;n<e.set.length;++n)e.set[n].forEach(function(e){var t=new o(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!r||l(r,t))&&(r=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator);}});return r&&e.test(r)?r:null;},t.validRange=function(e,t){try{return new g(e,t).range||"*";}catch(e){return null;}},t.ltr=function(e,t,r){return b(e,t,"<",r);},t.gtr=function(e,t,r){return b(e,t,">",r);},t.outside=b,t.prerelease=function(e,t){var r=i(e,t);return r&&r.prerelease.length?r.prerelease:null;},t.intersects=function(e,t,r){return e=new g(e,r),t=new g(t,r),e.intersects(t);},t.coerce=function(e,t){if(e instanceof o)return e;if("number"==typeof e&&(e+=""),"string"!=typeof e)return null;var r,n=null;if((t=t||{}).rtl){for(;(r=N[A.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),N[A.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;N[A.COERCERTL].lastIndex=-1;}else n=e.match(N[A.COERCE]);return null===n?null:i(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t);};}),rG("GX8zo",function(e,t){var r=rB("7qQbq"),n=rB("c22IK");e.exports=function(e,t,i){var o=t&&i||0;"string"==typeof e&&(t="binary"===e?Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[o+s]=a[s];return t||n(a);};}),rG("7qQbq",function(e,t){e.exports=function(){return iw.randomBytes(16);};}),rG("c22IK",function(e,t){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);e.exports=function(e,t){var n=t||0;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("");};}),rG("bHzmH",function(e,t){var r,n,i,o;function a(e,t,r){return o(this,void 0,void 0,function*(){let n=s.argStringToArray(e);if(0===n.length)throw Error("Parameter 'commandLine' cannot be null or empty.");let i=n[0];return t=n.slice(1).concat(t||[]),new s.ToolRunner(i,t,r).exec();});}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e));}catch(e){o(e);}}function s(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(a,s);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getExecOutput=e.exports.exec=void 0;let s=i(rB("iYbsa"));e.exports.exec=a,e.exports.getExecOutput=function(e,t,r){var n,i;return o(this,void 0,void 0,function*(){let o="",s="",l=new rD.StringDecoder("utf8"),u=new rD.StringDecoder("utf8"),c=null===(n=null==r?void 0:r.listeners)||void 0===n?void 0:n.stdout,p=null===(i=null==r?void 0:r.listeners)||void 0===i?void 0:i.stderr,d=Object.assign(Object.assign({},null==r?void 0:r.listeners),{stdout(e){o+=l.write(e),c&&c(e);},stderr(e){s+=u.write(e),p&&p(e);}}),f=yield a(e,t,Object.assign(Object.assign({},r),{listeners:d}));return o+=l.end(),s+=u.end(),{exitCode:f,stdout:o,stderr:s};});};}),rG("iYbsa",function(e,t){var r,n,i,o;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e));}catch(e){o(e);}}function s(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(a,s);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.argStringToArray=e.exports.ToolRunner=void 0;let a=i(ig),s=i(rw),l=i(rS),u=i(iv),c=i(rB("zdagz")),p=i(rB("fwMQK")),d="win32"===process.platform;class f extends s.EventEmitter{constructor(e,t,r){if(super(),!e)throw Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=t||[],this.options=r||{};}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e);}_getCommandString(e,t){let r=this._getSpawnFileName(),n=this._getSpawnArgs(e),i=t?"":"[command]";if(d){if(this._isCmdFile())for(let e of(i+=r,n))i+=" "+e;else if(e.windowsVerbatimArguments)for(let e of(i+=`"${r}"`,n))i+=" "+e;else for(let e of(i+=this._windowsQuoteCmdArg(r),n))i+=" "+this._windowsQuoteCmdArg(e);}else for(let e of(i+=r,n))i+=" "+e;return i;}_processLineBuffer(e,t,r){try{let n=t+e.toString(),i=n.indexOf(a.EOL);for(;i>-1;){let e=n.substring(0,i);r(e),i=(n=n.substring(i+a.EOL.length)).indexOf(a.EOL);}return n;}catch(e){return this._debug("error processing line. Failed with error "+e),"";}}_getSpawnFileName(){return d&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath;}_getSpawnArgs(e){if(d&&this._isCmdFile()){let t='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath);for(let r of this.args)t+=" "+(e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r));return[t+='"'];}return this.args;}_endsWith(e,t){return e.endsWith(t);}_isCmdFile(){let e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT");}_windowsQuoteCmdArg(e){if(!this._isCmdFile())return this._uvQuoteCmdArg(e);if(!e)return'""';let t=[" "," ","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'],r=!1;for(let n of e)if(t.some(e=>e===n)){r=!0;break;}if(!r)return e;let n='"',i=!0;for(let t=e.length;t>0;t--)n+=e[t-1],i&&"\\"===e[t-1]?n+="\\":'"'===e[t-1]?(i=!0,n+='"'):i=!1;return(n+='"').split("").reverse().join("");}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes(" ")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let t='"',r=!0;for(let n=e.length;n>0;n--)t+=e[n-1],r&&"\\"===e[n-1]?t+="\\":'"'===e[n-1]?(r=!0,t+="\\"):r=!1;return(t+='"').split("").reverse().join("");}_cloneExecOptions(e){let 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){e=e||{};let r={};return r.cwd=e.cwd,r.env=e.env,r.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(r.argv0=`"${t}"`),r;}exec(){return o(this,void 0,void 0,function*(){return!p.isRooted(this.toolPath)&&(this.toolPath.includes("/")||d&&this.toolPath.includes("\\"))&&(this.toolPath=u.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield c.which(this.toolPath,!0),new Promise((e,t)=>o(this,void 0,void 0,function*(){for(let e of(this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args))this._debug(" "+e);let r=this._cloneExecOptions(this.options);!r.silent&&r.outStream&&r.outStream.write(this._getCommandString(r)+a.EOL);let n=new h(r,this.toolPath);if(n.on("debug",e=>{this._debug(e);}),this.options.cwd&&!(yield p.exists(this.options.cwd)))return t(Error(`The cwd: ${this.options.cwd} does not exist!`));let i=this._getSpawnFileName(),o=l.spawn(i,this._getSpawnArgs(r),this._getSpawnOptions(this.options,i)),s="";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),s=this._processLineBuffer(e,s,e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e);});});let u="";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),u=this._processLineBuffer(e,u,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)=>{s.length>0&&this.emit("stdline",s),u.length>0&&this.emit("errline",u),o.removeAllListeners(),r?t(r):e(n);}),this.options.input){if(!o.stdin)throw Error("child process missing stdin");o.stdin.end(this.options.input);}}));});}}e.exports.ToolRunner=f,e.exports.argStringToArray=function(e){function t(e){i&&'"'!==e&&(o+="\\"),o+=e,i=!1;}let r=[],n=!1,i=!1,o="";for(let a=0;a<e.length;a++){let s=e.charAt(a);if('"'===s){i?t(s):n=!n;continue;}if("\\"===s&&i){t(s);continue;}if("\\"===s&&n){i=!0;continue;}if(" "===s&&!n){o.length>0&&(r.push(o),o="");continue;}t(s);}return o.length>0&&r.push(o.trim()),r;};class h extends s.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=rT.setTimeout(h.HandleTimeout,this.delay,this)));}_debug(e){this.emit("debug",e);}_setResult(){let e;this.processExited&&(this.processError?e=Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):0===this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)):e=Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode);}static HandleTimeout(e){if(!e.done){if(!e.processClosed&&e.processExited){let t=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(t);}e._setResult();}}}}),rG("fEioR",function(e,t){e.exports=Promise.resolve(require("./actions_python.7877377d.js")).then(()=>rB("8L9T2"));}),rG("7fBnG",function(e,t){var r,n,i,o,a,s,l,u,p;function d(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n");}function f(e){this.options=e||{locator:{}};}function h(){this.cdata=!1;}function m(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber;}function g(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]";}function v(e,t,r){return"string"==typeof e?e.substr(t,r):e.length>=t+r||t?new java.lang.String(e,t,r)+"":e;}function E(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t);}c(e.exports,"DOMParser",()=>r,e=>r=e),n=rB("e95yL"),i=rB("7KjWO"),o=rB("aeYiS"),a=rB("aKT05"),s=i.DOMImplementation,l=n.NAMESPACE,u=a.ParseError,p=a.XMLReader,f.prototype.parseFromString=function(e,t){var r=this.options,n=new p(),i=r.domBuilder||new h(),a=r.errorHandler,s=r.locator,u=r.xmlns||{},c=/\/x?html?$/.test(t),f=c?o.HTML_ENTITIES:o.XML_ENTITIES;s&&i.setDocumentLocator(s),n.errorHandler=function(e,t,r){var n,i;function o(t){var o=e[t];!o&&i&&(o=2==e.length?function(r){e(t,r);}:e),n[t]=o&&function(e){o("[xmldom "+t+"] "+e+g(r));}||function(){};}if(!e){if(t instanceof h)return t;e=t;}return n={},i=e instanceof Function,r=r||{},o("warning"),o("error"),o("fatalError"),n;}(a,i,s),n.domBuilder=r.domBuilder||i,c&&(u[""]=l.HTML),u.xml=u.xml||l.XML;var m=r.normalizeLineEndings||d;return e&&"string"==typeof e?n.parse(m(e),u,f):n.errorHandler.error("invalid doc source"),i.doc;},h.prototype={startDocument:function(){this.doc=new s().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId);},startElement:function(e,t,r,n){var i=this.doc,o=i.createElementNS(e,r||t),a=n.length;E(this,o),this.currentElement=o,this.locator&&m(this.locator,o);for(var s=0;a>s;s++){var e=n.getURI(s),l=n.getValue(s),r=n.getQName(s),u=i.createAttributeNS(e,r);this.locator&&m(n.getLocator(s),u),u.value=u.nodeValue=l,o.setAttributeNode(u);}},endElement:function(e,t,r){var n=this.currentElement;n.tagName,this.currentElement=n.parentNode;},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var r=this.doc.createProcessingInstruction(e,t);this.locator&&m(this.locator,r),E(this,r);},ignorableWhitespace:function(e,t,r){},characters:function(e,t,r){if(e=v.apply(this,arguments)){if(this.cdata)var n=this.doc.createCDATASection(e);else var n=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(n):/^\s*$/.test(e)&&this.doc.appendChild(n),this.locator&&m(this.locator,n);}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize();},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0);},comment:function(e,t,r){e=v.apply(this,arguments);var n=this.doc.createComment(e);this.locator&&m(this.locator,n),E(this,n);},startCDATA:function(){this.cdata=!0;},endCDATA:function(){this.cdata=!1;},startDTD:function(e,t,r){var n=this.doc.implementation;if(n&&n.createDocumentType){var i=n.createDocumentType(e,t,r);this.locator&&m(this.locator,i),E(this,i),this.doc.doctype=i;}},warning:function(e){console.warn("[xmldom warning] "+e,g(this.locator));},error:function(e){console.error("[xmldom error] "+e,g(this.locator));},fatalError:function(e){throw new u(e,this.locator);}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(e){h.prototype[e]=function(){return null;};}),r=f;}),rG("e95yL",function(e,t){var r,n,i,o,a;function s(e,t){return void 0===t&&(t=Object),t&&"function"==typeof t.freeze?t.freeze(e):e;}c(e.exports,"find",()=>r,e=>r=e),c(e.exports,"freeze",()=>n,e=>n=e),c(e.exports,"NAMESPACE",()=>i,e=>i=e),o=s({HTML:"text/html",isHTML:function(e){return e===o.HTML;},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),a=s({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===a.HTML;},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"}),r=function(e,t,r){if(void 0===r&&(r=Array.prototype),e&&"function"==typeof r.find)return r.find.call(e,t);for(var n=0;n<e.length;n++)if(Object.prototype.hasOwnProperty.call(e,n)){var i=e[n];if(t.call(void 0,i,n,e))return i;}},n=s,i=a;}),rG("7KjWO",function(e,t){var r,n,i,o,a,s,l,u,p,d,f,h,m,g,v,E,w,y,b,x,S,D,T;function R(e){return""!==e;}function N(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e;}function I(e){return e?Object.keys((e?e.split(/[\t\n\f\r ]+/).filter(R):[]).reduce(N,{})):[];}function A(e,t){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);}function O(e,t){var r=e.prototype;if(!(r instanceof t)){function n(){}n.prototype=t.prototype,A(r,n=new n()),e.prototype=r=n;}r.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),r.constructor=e);}function C(e,t){if(t instanceof Error)var r=t;else r=this,Error.call(this,x[e]),this.message=x[e],Error.captureStackTrace&&Error.captureStackTrace(this,C);return r.code=e,t&&(this.message=this.message+": "+t),r;}function _(){}function L(e,t){this._node=e,this._refresh=t,$(this);}function $(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var r=e._refresh(e._node);if(ev(e,"length",r.length),!e.$$length||r.length<e.$$length)for(var n=r.length;(n in e);n++)Object.prototype.hasOwnProperty.call(e,n)&&delete e[n];A(r,e),e._inc=t;}}function P(){}function k(e,t){for(var r=e.length;r--;)if(e[r]===t)return r;}function U(e,t,r,n){if(n?t[k(t,n)]=r:t[t.length++]=r,e){r.ownerElement=e;var i,o,s,l=e.ownerDocument;l&&(n&&H(l,e,n),i=l,o=e,s=r,i&&i._inc++,s.namespaceURI===a.XMLNS&&(o._nsMap[s.prefix?s.localName:""]=s.value));}}function F(e,t,r){var n=k(t,r);if(n>=0){for(var i=t.length-1;i>n;)t[n]=t[++n];if(t.length=i,e){var o=e.ownerDocument;o&&(H(o,e,r),r.ownerElement=null);}}else throw new C(D,Error(e.tagName+"@"+r));}function M(){}function j(){}function q(e){return"<"==e&&"&lt;"||">"==e&&"&gt;"||"&"==e&&"&amp;"||'"'==e&&"&quot;"||"&#"+e.charCodeAt()+";";}function B(e,t){if(t(e))return!0;if(e=e.firstChild)do if(B(e,t))return!0;while(e=e.nextSibling);}function G(){this.ownerDocument=this;}function H(e,t,r,n){e&&e._inc++,r.namespaceURI===a.XMLNS&&delete t._nsMap[r.prefix?r.localName:""];}function V(e,t,r){if(e&&e._inc){e._inc++;var n=t.childNodes;if(r)n[n.length++]=r;else{for(var i=t.firstChild,o=0;i;)n[o++]=i,i=i.nextSibling;n.length=o,delete n[n.length];}}}function X(e,t){var r=t.previousSibling,n=t.nextSibling;return r?r.nextSibling=n:e.firstChild=n,n?n.previousSibling=r:e.lastChild=r,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,V(e.ownerDocument,e),t;}function z(e){return e&&e.nodeType===j.DOCUMENT_TYPE_NODE;}function Y(e){return e&&e.nodeType===j.ELEMENT_NODE;}function K(e){return e&&e.nodeType===j.TEXT_NODE;}function W(e,t){var r=e.childNodes||[];if(o(r,Y)||z(t))return!1;var n=o(r,z);return!(t&&n&&r.indexOf(n)>r.indexOf(t));}function Q(e,t){var r,n=e.childNodes||[];return!o(n,function(e){return Y(e)&&e!==t;})&&(r=o(n,z),!(t&&r&&n.indexOf(r)>n.indexOf(t)));}function J(e,t,r){var n=e.childNodes||[],i=t.childNodes||[];if(t.nodeType===j.DOCUMENT_FRAGMENT_NODE){var a=i.filter(Y);if(a.length>1||o(i,K))throw new C(S,"More than one element or text in fragment");if(1===a.length&&!Q(e,r))throw new C(S,"Element in fragment can not be inserted before doctype");}if(Y(t)&&!Q(e,r))throw new C(S,"Only one element can be added and only after doctype");if(z(t)){if(o(n,function(e){return z(e)&&e!==r;}))throw new C(S,"Only one doctype is allowed");var s=o(n,Y);if(r&&n.indexOf(s)<n.indexOf(r))throw new C(S,"Doctype can only be inserted before an element");}}function Z(e,t,r,n){(function(e,t,r){if(!(e&&(e.nodeType===j.DOCUMENT_NODE||e.nodeType===j.DOCUMENT_FRAGMENT_NODE||e.nodeType===j.ELEMENT_NODE)))throw new C(S,"Unexpected parent node type "+e.nodeType);if(r&&r.parentNode!==e)throw new C(D,"child not in parent");if(!(t&&(Y(t)||K(t)||z(t)||t.nodeType===j.DOCUMENT_FRAGMENT_NODE||t.nodeType===j.COMMENT_NODE||t.nodeType===j.PROCESSING_INSTRUCTION_NODE))||z(t)&&e.nodeType!==j.DOCUMENT_NODE)throw new C(S,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType);})(e,t,r),e.nodeType===j.DOCUMENT_NODE&&(n||function(e,t,r){var n=e.childNodes||[],i=t.childNodes||[];if(t.nodeType===j.DOCUMENT_FRAGMENT_NODE){var a=i.filter(Y);if(a.length>1||o(i,K))throw new C(S,"More than one element or text in fragment");if(1===a.length&&!W(e,r))throw new C(S,"Element in fragment can not be inserted before doctype");}if(Y(t)&&!W(e,r))throw new C(S,"Only one element can be added and only after doctype");if(z(t)){if(o(n,z))throw new C(S,"Only one doctype is allowed");var s=o(n,Y);if(r&&n.indexOf(s)<n.indexOf(r))throw new C(S,"Doctype can only be inserted before an element");if(!r&&s)throw new C(S,"Doctype can not be appended since element is present");}})(e,t,r);var i=t.parentNode;if(i&&i.removeChild(t),t.nodeType===w){var a=t.firstChild;if(null==a)return t;var s=t.lastChild;}else a=s=t;var l=r?r.previousSibling:e.lastChild;a.previousSibling=l,s.nextSibling=r,l?l.nextSibling=a:e.firstChild=a,null==r?e.lastChild=s:r.previousSibling=s;do a.parentNode=e;while(a!==s&&(a=a.nextSibling));return V(e.ownerDocument||e,e),t.nodeType==w&&(t.firstChild=t.lastChild=null),t;}function ee(){this._nsMap={};}function et(){}function er(){}function en(){}function ei(){}function eo(){}function ea(){}function es(){}function el(){}function eu(){}function ec(){}function ep(){}function ed(){}function ef(e,t){var r=[],n=9==this.nodeType&&this.documentElement||this,i=n.prefix,o=n.namespaceURI;if(o&&null==i){var i=n.lookupPrefix(o);if(null==i)var a=[{namespace:o,prefix:null}];}return eg(this,r,e,t,a),r.join("");}function eh(e,t,r){var n=e.prefix||"",i=e.namespaceURI;if(!i||"xml"===n&&i===a.XML||i===a.XMLNS)return!1;for(var o=r.length;o--;){var s=r[o];if(s.prefix===n)return s.namespace!==i;}return!0;}function em(e,t,r){e.push(" ",t,'="',r.replace(/[<>&"\t\n\r]/g,q),'"');}function eg(e,t,r,n,i){if(i||(i=[]),n){if(!(e=n(e)))return;if("string"==typeof e){t.push(e);return;}}switch(e.nodeType){case l:var o,s=e.attributes,c=s.length,h=e.firstChild,y=e.tagName;r=a.isHTML(e.namespaceURI)||r;var b=y;if(!r&&!e.prefix&&e.namespaceURI){for(var x=0;x<s.length;x++)if("xmlns"===s.item(x).name){o=s.item(x).value;break;}if(!o)for(var S=i.length-1;S>=0;S--){var D=i[S];if(""===D.prefix&&D.namespace===e.namespaceURI){o=D.namespace;break;}}if(o!==e.namespaceURI)for(var S=i.length-1;S>=0;S--){var D=i[S];if(D.namespace===e.namespaceURI){D.prefix&&(b=D.prefix+":"+y);break;}}}t.push("<",b);for(var T=0;c>T;T++){var R=s.item(T);"xmlns"==R.prefix?i.push({prefix:R.localName,namespace:R.value}):"xmlns"==R.nodeName&&i.push({prefix:"",namespace:R.value});}for(var T=0;c>T;T++){var R=s.item(T);if(eh(R,r,i)){var N=R.prefix||"",I=R.namespaceURI;em(t,N?"xmlns:"+N:"xmlns",I),i.push({prefix:N,namespace:I});}eg(R,t,r,n,i);}if(y===b&&eh(e,r,i)){var N=e.prefix||"",I=e.namespaceURI;em(t,N?"xmlns:"+N:"xmlns",I),i.push({prefix:N,namespace:I});}if(h||r&&!/^(?:meta|link|img|br|hr|input)$/i.test(y)){if(t.push(">"),r&&/^script$/i.test(y))for(;h;)h.data?t.push(h.data):eg(h,t,r,n,i.slice()),h=h.nextSibling;else for(;h;)eg(h,t,r,n,i.slice()),h=h.nextSibling;t.push("</",b,">");}else t.push("/>");return;case v:case w:for(var h=e.firstChild;h;)eg(h,t,r,n,i.slice()),h=h.nextSibling;return;case u:return em(t,e.name,e.value);case p:return t.push(e.data.replace(/[<&>]/g,q));case d:return t.push("<![CDATA[",e.data,"]]>");case g:return t.push("<!--",e.data,"-->");case E:var A=e.publicId,O=e.systemId;if(t.push("<!DOCTYPE ",e.name),A)t.push(" PUBLIC ",A),O&&"."!=O&&t.push(" ",O),t.push(">");else if(O&&"."!=O)t.push(" SYSTEM ",O,">");else{var C=e.internalSubset;C&&t.push(" [",C,"]"),t.push(">");}return;case m:return t.push("<?",e.target," ",e.data,"?>");case f:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName);}}function ev(e,t,r){e[t]=r;}c(e.exports,"DOMImplementation",()=>r,e=>r=e),c(e.exports,"XMLSerializer",()=>n,e=>n=e),o=(i=rB("e95yL")).find,a=i.NAMESPACE,l=(s={}).ELEMENT_NODE=1,u=s.ATTRIBUTE_NODE=2,p=s.TEXT_NODE=3,d=s.CDATA_SECTION_NODE=4,f=s.ENTITY_REFERENCE_NODE=5,h=s.ENTITY_NODE=6,m=s.PROCESSING_INSTRUCTION_NODE=7,g=s.COMMENT_NODE=8,v=s.DOCUMENT_NODE=9,E=s.DOCUMENT_TYPE_NODE=10,w=s.DOCUMENT_FRAGMENT_NODE=11,y=s.NOTATION_NODE=12,x={},(b={}).INDEX_SIZE_ERR=(x[1]="Index size error",1),b.DOMSTRING_SIZE_ERR=(x[2]="DOMString size error",2),S=b.HIERARCHY_REQUEST_ERR=(x[3]="Hierarchy request error",3),b.WRONG_DOCUMENT_ERR=(x[4]="Wrong document",4),b.INVALID_CHARACTER_ERR=(x[5]="Invalid character",5),b.NO_DATA_ALLOWED_ERR=(x[6]="No data allowed",6),b.NO_MODIFICATION_ALLOWED_ERR=(x[7]="No modification allowed",7),D=b.NOT_FOUND_ERR=(x[8]="Not found",8),b.NOT_SUPPORTED_ERR=(x[9]="Not supported",9),T=b.INUSE_ATTRIBUTE_ERR=(x[10]="Attribute in use",10),b.INVALID_STATE_ERR=(x[11]="Invalid state",11),b.SYNTAX_ERR=(x[12]="Syntax error",12),b.INVALID_MODIFICATION_ERR=(x[13]="Invalid modification",13),b.NAMESPACE_ERR=(x[14]="Invalid namespace",14),b.INVALID_ACCESS_ERR=(x[15]="Invalid access",15),C.prototype=Error.prototype,A(b,C),_.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null;},toString:function(e,t){for(var r=[],n=0;n<this.length;n++)eg(this[n],r,e,t);return r.join("");},filter:function(e){return Array.prototype.filter.call(this,e);},indexOf:function(e){return Array.prototype.indexOf.call(this,e);}},L.prototype.item=function(e){return $(this),this[e]||null;},O(L,_),P.prototype={length:0,item:_.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var r=this[t];if(r.nodeName==e)return r;}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new C(T);var r=this.getNamedItem(e.nodeName);return U(this._ownerElement,this,e,r),r;},setNamedItemNS:function(e){var t,r=e.ownerElement;if(r&&r!=this._ownerElement)throw new C(T);return t=this.getNamedItemNS(e.namespaceURI,e.localName),U(this._ownerElement,this,e,t),t;},removeNamedItem:function(e){var t=this.getNamedItem(e);return F(this._ownerElement,this,t),t;},removeNamedItemNS:function(e,t){var r=this.getNamedItemNS(e,t);return F(this._ownerElement,this,r),r;},getNamedItemNS:function(e,t){for(var r=this.length;r--;){var n=this[r];if(n.localName==t&&n.namespaceURI==e)return n;}return null;}},M.prototype={hasFeature:function(e,t){return!0;},createDocument:function(e,t,r){var n=new G();if(n.implementation=this,n.childNodes=new _(),n.doctype=r||null,r&&n.appendChild(r),t){var i=n.createElementNS(e,t);n.appendChild(i);}return n;},createDocumentType:function(e,t,r){var n=new ea();return n.name=e,n.nodeName=e,n.publicId=t||"",n.systemId=r||"",n;}},j.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return Z(this,e,t);},replaceChild:function(e,t){Z(this,e,t,J),t&&this.removeChild(t);},removeChild:function(e){return X(this,e);},appendChild:function(e){return this.insertBefore(e,null);},hasChildNodes:function(){return null!=this.firstChild;},cloneNode:function(e){return function e(t,r,n){var i=new r.constructor();for(var o in r)if(Object.prototype.hasOwnProperty.call(r,o)){var a=r[o];"object"!=typeof a&&a!=i[o]&&(i[o]=a);}switch(r.childNodes&&(i.childNodes=new _()),i.ownerDocument=t,i.nodeType){case l:var s=r.attributes,c=i.attributes=new P(),p=s.length;c._ownerElement=i;for(var d=0;p>d;d++)i.setAttributeNode(e(t,s.item(d),!0));break;case u:n=!0;}if(n)for(var f=r.firstChild;f;)i.appendChild(e(t,f,n)),f=f.nextSibling;return i;}(this.ownerDocument||this,this,e);},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==p&&e.nodeType==p?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t);}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t);},hasAttributes:function(){return this.attributes.length>0;},lookupPrefix:function(e){for(var t=this;t;){var r=t._nsMap;if(r){for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n)&&r[n]===e)return n;}t=t.nodeType==u?t.ownerDocument:t.parentNode;}return null;},lookupNamespaceURI:function(e){for(var t=this;t;){var r=t._nsMap;if(r&&Object.prototype.hasOwnProperty.call(r,e))return r[e];t=t.nodeType==u?t.ownerDocument:t.parentNode;}return null;},isDefaultNamespace:function(e){return null==this.lookupPrefix(e);}},A(s,j),A(s,j.prototype),G.prototype={nodeName:"#document",nodeType:v,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==w){for(var r=e.firstChild;r;){var n=r.nextSibling;this.insertBefore(r,t),r=n;}return e;}return Z(this,e,t),e.ownerDocument=this,null===this.documentElement&&e.nodeType===l&&(this.documentElement=e),e;},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),X(this,e);},replaceChild:function(e,t){Z(this,e,t,J),e.ownerDocument=this,t&&this.removeChild(t),Y(e)&&(this.documentElement=e);},importNode:function(e,t){return function e(t,r,n){var i;switch(r.nodeType){case l:(i=r.cloneNode(!1)).ownerDocument=t;case w:break;case u:n=!0;}if(i||(i=r.cloneNode(!1)),i.ownerDocument=t,i.parentNode=null,n)for(var o=r.firstChild;o;)i.appendChild(e(t,o,n)),o=o.nextSibling;return i;}(this,e,t);},getElementById:function(e){var t=null;return B(this.documentElement,function(r){if(r.nodeType==l&&r.getAttribute("id")==e)return t=r,!0;}),t;},getElementsByClassName:function(e){var t=I(e);return new L(this,function(r){var n=[];return t.length>0&&B(r.documentElement,function(i){if(i!==r&&i.nodeType===l){var o=i.getAttribute("class");if(o){var a=e===o;if(!a){var s=I(o);a=t.every(function(e){return s&&-1!==s.indexOf(e);});}a&&n.push(i);}}}),n;});},createElement:function(e){var t=new ee();return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new _(),(t.attributes=new P())._ownerElement=t,t;},createDocumentFragment:function(){var e=new ec();return e.ownerDocument=this,e.childNodes=new _(),e;},createTextNode:function(e){var t=new en();return t.ownerDocument=this,t.appendData(e),t;},createComment:function(e){var t=new ei();return t.ownerDocument=this,t.appendData(e),t;},createCDATASection:function(e){var t=new eo();return t.ownerDocument=this,t.appendData(e),t;},createProcessingInstruction:function(e,t){var r=new ep();return r.ownerDocument=this,r.tagName=r.nodeName=r.target=e,r.nodeValue=r.data=t,r;},createAttribute:function(e){var t=new et();return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t;},createEntityReference:function(e){var t=new eu();return t.ownerDocument=this,t.nodeName=e,t;},createElementNS:function(e,t){var r=new ee(),n=t.split(":"),i=r.attributes=new P();return r.childNodes=new _(),r.ownerDocument=this,r.nodeName=t,r.tagName=t,r.namespaceURI=e,2==n.length?(r.prefix=n[0],r.localName=n[1]):r.localName=t,i._ownerElement=r,r;},createAttributeNS:function(e,t){var r=new et(),n=t.split(":");return r.ownerDocument=this,r.nodeName=t,r.name=t,r.namespaceURI=e,r.specified=!0,2==n.length?(r.prefix=n[0],r.localName=n[1]):r.localName=t,r;}},O(G,j),ee.prototype={nodeType:l,hasAttribute:function(e){return null!=this.getAttributeNode(e);},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||"";},getAttributeNode:function(e){return this.attributes.getNamedItem(e);},setAttribute:function(e,t){var r=this.ownerDocument.createAttribute(e);r.value=r.nodeValue=""+t,this.setAttributeNode(r);},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t);},appendChild:function(e){return e.nodeType===w?this.insertBefore(e,null):(e.parentNode&&e.parentNode.removeChild(e),e.parentNode=this,e.previousSibling=this.lastChild,e.nextSibling=null,e.previousSibling?e.previousSibling.nextSibling=e:this.firstChild=e,this.lastChild=e,V(this.ownerDocument,this,e),e);},setAttributeNode:function(e){return this.attributes.setNamedItem(e);},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e);},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName);},removeAttributeNS:function(e,t){var r=this.getAttributeNodeNS(e,t);r&&this.removeAttributeNode(r);},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t);},getAttributeNS:function(e,t){var r=this.getAttributeNodeNS(e,t);return r&&r.value||"";},setAttributeNS:function(e,t,r){var n=this.ownerDocument.createAttributeNS(e,t);n.value=n.nodeValue=""+r,this.setAttributeNode(n);},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t);},getElementsByTagName:function(e){return new L(this,function(t){var r=[];return B(t,function(n){n!==t&&n.nodeType==l&&("*"===e||n.tagName==e)&&r.push(n);}),r;});},getElementsByTagNameNS:function(e,t){return new L(this,function(r){var n=[];return B(r,function(i){i!==r&&i.nodeType===l&&("*"===e||i.namespaceURI===e)&&("*"===t||i.localName==t)&&n.push(i);}),n;});}},G.prototype.getElementsByTagName=ee.prototype.getElementsByTagName,G.prototype.getElementsByTagNameNS=ee.prototype.getElementsByTagNameNS,O(ee,j),et.prototype.nodeType=u,O(et,j),er.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t);},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length;},insertData:function(e,t){this.replaceData(e,0,t);},appendChild:function(e){throw Error(x[S]);},deleteData:function(e,t){this.replaceData(e,t,"");},replaceData:function(e,t,r){r=this.data.substring(0,e)+r+this.data.substring(e+t),this.nodeValue=this.data=r,this.length=r.length;}},O(er,j),en.prototype={nodeName:"#text",nodeType:p,splitText:function(e){var t=this.data,r=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var n=this.ownerDocument.createTextNode(r);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n;}},O(en,er),ei.prototype={nodeName:"#comment",nodeType:g},O(ei,er),eo.prototype={nodeName:"#cdata-section",nodeType:d},O(eo,er),ea.prototype.nodeType=E,O(ea,j),es.prototype.nodeType=y,O(es,j),el.prototype.nodeType=h,O(el,j),eu.prototype.nodeType=f,O(eu,j),ec.prototype.nodeName="#document-fragment",ec.prototype.nodeType=w,O(ec,j),ep.prototype.nodeType=m,O(ep,j),ed.prototype.serializeToString=function(e,t,r){return ef.call(e,t,r);},j.prototype.toString=ef;try{Object.defineProperty&&(Object.defineProperty(L.prototype,"length",{get:function(){return $(this),this.$$length;}}),Object.defineProperty(j.prototype,"textContent",{get:function(){return function e(t){switch(t.nodeType){case l:case w:var r=[];for(t=t.firstChild;t;)7!==t.nodeType&&8!==t.nodeType&&r.push(e(t)),t=t.nextSibling;return r.join("");default:return t.nodeValue;}}(this);},set:function(e){switch(this.nodeType){case l:case w:for(;this.firstChild;)this.removeChild(this.firstChild);(e||e+"")&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e;}}}),ev=function(e,t,r){e["$$"+t]=r;});}catch(e){}r=M,n=ed;}),rG("aeYiS",function(e,t){c(e.exports,"XML_ENTITIES",()=>r,e=>r=e),c(e.exports,"HTML_ENTITIES",()=>n,e=>n=e);var r,n,i=rB("e95yL").freeze;r=i({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),n=i({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"\uD835\uDD04",afr:"\uD835\uDD1E",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"\uD835\uDD38",aopf:"\uD835\uDD52",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"\uD835\uDC9C",ascr:"\uD835\uDCB6",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"",backsim:"∽",backsimeq:"⋍",Backslash:"",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"",Bernoullis:"",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"\uD835\uDD05",bfr:"\uD835\uDD1F",bigcap:"⋂",bigcirc:"◯",bigcup:"",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"\uD835\uDD39",bopf:"\uD835\uDD53",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"",bscr:"\uD835\uDCB7",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"",caps:"∩︀",caret:"",caron:"ˇ",Cayleys:"",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"",cfr:"\uD835\uDD20",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"",copf:"\uD835\uDD54",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"",cross:"✗",Cscr:"\uD835\uDC9E",cscr:"\uD835\uDCB8",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"",dd:"",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"\uD835\uDD07",dfr:"\uD835\uDD21",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"\uD835\uDD3B",dopf:"\uD835\uDD55",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"\uD835\uDC9F",dscr:"\uD835\uDCB9",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"",efDot:"≒",Efr:"\uD835\uDD08",efr:"\uD835\uDD22",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:"",emsp13:"",emsp14:"",ENG:"Ŋ",eng:"ŋ",ensp:"",Eogon:"Ę",eogon:"ę",Eopf:"\uD835\uDD3C",eopf:"\uD835\uDD56",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"",escr:"",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"",ExponentialE:"",exponentiale:"",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"\uD835\uDD09",ffr:"\uD835\uDD23",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"\uD835\uDD3D",fopf:"\uD835\uDD57",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"",frown:"⌢",Fscr:"",fscr:"\uD835\uDCBB",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"\uD835\uDD0A",gfr:"\uD835\uDD24",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"\uD835\uDD3E",gopf:"\uD835\uDD58",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"\uD835\uDCA2",gscr:"",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:"",half:"½",hamilt:"",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"",hfr:"\uD835\uDD25",HilbertSpace:"",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"",hopf:"\uD835\uDD59",horbar:"―",HorizontalLine:"─",Hscr:"",hscr:"\uD835\uDCBD",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"",hyphen:"",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"",ifr:"\uD835\uDD26",Igrave:"Ì",igrave:"ì",ii:"",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"",Imacr:"Ī",imacr:"ī",image:"",ImaginaryI:"",imagline:"",imagpart:"",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"\uD835\uDD40",iopf:"\uD835\uDD5A",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"",iscr:"\uD835\uDCBE",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"\uD835\uDD0D",jfr:"\uD835\uDD27",jmath:"ȷ",Jopf:"\uD835\uDD41",jopf:"\uD835\uDD5B",Jscr:"\uD835\uDCA5",jscr:"\uD835\uDCBF",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"\uD835\uDD0E",kfr:"\uD835\uDD28",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"\uD835\uDD42",kopf:"\uD835\uDD5C",Kscr:"\uD835\uDCA6",kscr:"\uD835\uDCC0",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"\uD835\uDD0F",lfr:"\uD835\uDD29",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"\uD835\uDD43",lopf:"\uD835\uDD5D",loplus:"⨭",lotimes:"⨴",lowast:"",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"",Lscr:"",lscr:"\uD835\uDCC1",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"",lsquor:"",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:"",Mellintrf:"",Mfr:"\uD835\uDD10",mfr:"\uD835\uDD2A",mho:"℧",micro:"µ",mid:"",midast:"*",midcir:"⫰",middot:"·",minus:"",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"\uD835\uDD44",mopf:"\uD835\uDD5E",mp:"∓",Mscr:"",mscr:"\uD835\uDCC2",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"\uD835\uDD11",nfr:"\uD835\uDD2B",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",Nopf:"",nopf:"\uD835\uDD5F",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"\uD835\uDCA9",nscr:"\uD835\uDCC3",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:"",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"\uD835\uDD12",ofr:"\uD835\uDD2C",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"\uD835\uDD46",oopf:"\uD835\uDD60",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"",operp:"⦹",oplus:"⊕",Or:"⩔",or:"",orarr:"↻",ord:"⩝",order:"",orderof:"",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"\uD835\uDCAA",oscr:"",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"\uD835\uDD13",pfr:"\uD835\uDD2D",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"",pointint:"⨕",Popf:"",popf:"\uD835\uDD61",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"",primes:"",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"\uD835\uDCAB",pscr:"\uD835\uDCC5",Psi:"Ψ",psi:"ψ",puncsp:"",Qfr:"\uD835\uDD14",qfr:"\uD835\uDD2E",qint:"⨌",Qopf:"",qopf:"\uD835\uDD62",qprime:"⁗",Qscr:"\uD835\uDCAC",qscr:"\uD835\uDCC6",quaternions:"",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"",rationals:"",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"",real:"",realine:"",realpart:"",reals:"",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"",rfr:"\uD835\uDD2F",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"",ropf:"\uD835\uDD63",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"",Rscr:"",rscr:"\uD835\uDCC7",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"",rsquor:"",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"",setmn:"",sext:"✶",Sfr:"\uD835\uDD16",sfr:"\uD835\uDD30",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"",smashp:"⨳",smeparsl:"⧤",smid:"",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"\uD835\uDD4A",sopf:"\uD835\uDD64",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"\uD835\uDCAE",sscr:"\uD835\uDCC8",ssetmn:"",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"\uD835\uDD17",tfr:"\uD835\uDD31",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"",ThickSpace:"",thinsp:"",ThinSpace:"",thkap:"≈",thksim:"",THORN:"Þ",thorn:"þ",Tilde:"",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"",topbot:"⌶",topcir:"⫱",Topf:"\uD835\uDD4B",topf:"\uD835\uDD65",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"\uD835\uDCAF",tscr:"\uD835\uDCC9",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"\uD835\uDD18",ufr:"\uD835\uDD32",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"\uD835\uDD4C",uopf:"\uD835\uDD66",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"\uD835\uDCB0",uscr:"\uD835\uDCCA",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"",vee:"",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:"",Vfr:"\uD835\uDD19",vfr:"\uD835\uDD33",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"\uD835\uDD4D",vopf:"\uD835\uDD67",vprop:"∝",vrtri:"⊳",Vscr:"\uD835\uDCB1",vscr:"\uD835\uDCCB",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"\uD835\uDD1A",wfr:"\uD835\uDD34",Wopf:"\uD835\uDD4E",wopf:"\uD835\uDD68",wp:"℘",wr:"≀",wreath:"≀",Wscr:"\uD835\uDCB2",wscr:"\uD835\uDCCC",xcap:"⋂",xcirc:"◯",xcup:"",xdtri:"▽",Xfr:"\uD835\uDD1B",xfr:"\uD835\uDD35",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"\uD835\uDD4F",xopf:"\uD835\uDD69",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"\uD835\uDCB3",xscr:"\uD835\uDCCD",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"\uD835\uDD1C",yfr:"\uD835\uDD36",YIcy:"Ї",yicy:"ї",Yopf:"\uD835\uDD50",yopf:"\uD835\uDD6A",Yscr:"\uD835\uDCB4",yscr:"\uD835\uDCCE",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",Zfr:"",zfr:"\uD835\uDD37",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"",zopf:"\uD835\uDD6B",Zscr:"\uD835\uDCB5",zscr:"\uD835\uDCCF",zwj:"",zwnj:""});}),rG("aKT05",function(e,t){var r,n,i,o,a;function s(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,s);}function l(){}function u(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t;}function p(e,t,r){for(var n=e.tagName,o=null,a=e.length;a--;){var s=e[a],l=s.qName,u=s.value,c=l.indexOf(":");if(c>0)var p=s.prefix=l.slice(0,c),f=l.slice(c+1),h="xmlns"===p&&f;else f=l,p=null,h="xmlns"===l&&"";s.localName=f,!1!==h&&(null==o&&(o={},d(r,r={})),r[h]=o[h]=u,s.uri=i.XMLNS,t.startPrefixMapping(h,u));}for(var a=e.length;a--;){var p=(s=e[a]).prefix;p&&("xml"===p&&(s.uri=i.XML),"xmlns"!==p&&(s.uri=r[p||""]));}var c=n.indexOf(":");c>0?(p=e.prefix=n.slice(0,c),f=e.localName=n.slice(c+1)):(p=null,f=e.localName=n);var m=e.uri=r[p||""];if(t.startElement(m,f,n,e),!e.closed)return e.currentNSMap=r,e.localNSMap=o,!0;if(t.endElement(m,f,n),o)for(p in o)Object.prototype.hasOwnProperty.call(o,p)&&t.endPrefixMapping(p);}function d(e,t){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);}function f(){this.attributeNames={};}c(e.exports,"XMLReader",()=>r,e=>r=e),c(e.exports,"ParseError",()=>n,e=>n=e),i=rB("e95yL").NAMESPACE,o=RegExp("[\\-\\.0-9"+/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),a=RegExp("^"+/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/.source+o.source+"*(?::"+/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/.source+o.source+"*)?$"),s.prototype=Error(),s.prototype.name="$7d48dd32ae42de33$var$ParseError",l.prototype={parse:function(e,t,r){var n=this.domBuilder;n.startDocument(),d(t,t={}),function(e,t,r,n,o){function a(e){var t,n=e.slice(1,-1);return Object.hasOwnProperty.call(r,n)?r[n]:"#"===n.charAt(0)?(t=parseInt(n.substr(1).replace("x","0x")))>65535?String.fromCharCode(55296+((t-=65536)>>10),56320+(1023&t)):String.fromCharCode(t):(o.error("entity not found:"+e),e);}function l(t){if(t>w){var r=e.substring(w,t).replace(/&#?\w+;/g,a);g&&c(w),n.characters(r,0,t-w),w=t;}}function c(t,r){for(;t>=h&&(r=m.exec(e));)h=(d=r.index)+r[0].length,g.lineNumber++;g.columnNumber=t-d+1;}for(var d=0,h=0,m=/.*(?:\r\n?|\n)|.*$/g,g=n.locator,v=[{currentNSMap:t}],E={},w=0;;){try{var y=e.indexOf("<",w);if(y<0){if(!e.substr(w).match(/^\s*$/)){var b=n.doc,x=b.createTextNode(e.substr(w));b.appendChild(x),n.currentElement=x;}return;}switch(y>w&&l(y),e.charAt(y+1)){case"/":var S=e.indexOf(">",y+3),D=e.substring(y+2,S).replace(/[ \t\n\r]+$/g,""),T=v.pop();S<0?(D=e.substring(y+2).replace(/[\s<].*/,""),o.error("end tag name: "+D+" is not complete:"+T.tagName),S=y+1+D.length):D.match(/\s</)&&(D=D.replace(/[\s<].*/,""),o.error("end tag name: "+D+" maybe not complete"),S=y+1+D.length);var R=T.localNSMap,N=T.tagName==D;if(N||T.tagName&&T.tagName.toLowerCase()==D.toLowerCase()){if(n.endElement(T.uri,T.localName,D),R)for(var I in R)Object.prototype.hasOwnProperty.call(R,I)&&n.endPrefixMapping(I);N||o.fatalError("end tag name: "+D+" is not match the current start tagName:"+T.tagName);}else v.push(T);S++;break;case"?":g&&c(y),S=function(e,t,r){var n=e.indexOf("?>",t);if(n){var i=e.substring(t,n).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(i)return i[0].length,r.processingInstruction(i[1],i[2]),n+2;}return-1;}(e,y,n);break;case"!":g&&c(y),S=function(e,t,r,n){if("-"===e.charAt(t+2)){if("-"===e.charAt(t+3)){var i=e.indexOf("-->",t+4);if(i>t)return r.comment(e,t+4,i-t-4),i+3;n.error("Unclosed comment");}}else{if("CDATA["==e.substr(t+3,6)){var i=e.indexOf("]]>",t+9);return r.startCDATA(),r.characters(e,t+9,i-t-9),r.endCDATA(),i+3;}var o=function(e,t){var r,n=[];for(/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g.lastIndex=t,/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g.exec(e);r=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g.exec(e);)if(n.push(r),r[1])return n;}(e,t),a=o.length;if(a>1&&/!doctype/i.test(o[0][0])){var s=o[1][0],l=!1,u=!1;a>3&&(/^public$/i.test(o[2][0])?(l=o[3][0],u=a>4&&o[4][0]):/^system$/i.test(o[2][0])&&(u=o[3][0]));var c=o[a-1];return r.startDTD(s,l,u),r.endDTD(),c.index+c[0].length;}}return-1;}(e,y,n,o);break;default:g&&c(y);var A=new f(),O=v[v.length-1].currentNSMap,S=function(e,t,r,n,o,a){function s(e,t,n){r.attributeNames.hasOwnProperty(e)&&a.fatalError("Attribute "+e+" redefined"),r.addValue(e,t.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,o),n);}for(var l,u,c=++t,p=0;;){var d=e.charAt(c);switch(d){case"=":if(1===p)l=e.slice(t,c),p=3;else if(2===p)p=3;else throw Error("attribute equal must after attrName");break;case"'":case'"':if(3===p||1===p){if(1===p&&(a.warning('attribute value must after "="'),l=e.slice(t,c)),t=c+1,(c=e.indexOf(d,t))>0)s(l,u=e.slice(t,c),t-1),p=5;else throw Error("attribute value no end '"+d+"' match");}else if(4==p)s(l,u=e.slice(t,c),t),a.warning('attribute "'+l+'" missed start quot('+d+")!!"),t=c+1,p=5;else throw Error('attribute value must after "="');break;case"/":switch(p){case 0:r.setTagName(e.slice(t,c));case 5:case 6:case 7:p=7,r.closed=!0;case 4:case 1:break;case 2:r.closed=!0;break;default:throw Error("attribute invalid close char('/')");}break;case"":return a.error("unexpected end of input"),0==p&&r.setTagName(e.slice(t,c)),c;case">":switch(p){case 0:r.setTagName(e.slice(t,c));case 5:case 6:case 7:break;case 4:case 1:"/"===(u=e.slice(t,c)).slice(-1)&&(r.closed=!0,u=u.slice(0,-1));case 2:2===p&&(u=l),4==p?(a.warning('attribute "'+u+'" missed quot(")!'),s(l,u,t)):(i.isHTML(n[""])&&u.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+u+'" missed value!! "'+u+'" instead!!'),s(u,u,t));break;case 3:throw Error("attribute value missed!!");}return c;case"€":d=" ";default:if(d<=" ")switch(p){case 0:r.setTagName(e.slice(t,c)),p=6;break;case 1:l=e.slice(t,c),p=2;break;case 4:var u=e.slice(t,c);a.warning('attribute "'+u+'" missed quot(")!!'),s(l,u,t);case 5:p=6;}else switch(p){case 2:r.tagName,i.isHTML(n[""])&&l.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+l+'" missed value!! "'+l+'" instead2!!'),s(l,l,t),t=c,p=1;break;case 5:a.warning('attribute space is required"'+l+'"!!');case 6:p=1,t=c;break;case 3:p=4,t=c;break;case 7:throw Error("elements closed character '/' and '>' must be connected to");}}c++;}}(e,y,A,O,a,o),C=A.length;if(!A.closed&&function(e,t,r,n){var i=n[r];return null==i&&((i=e.lastIndexOf("</"+r+">"))<t&&(i=e.lastIndexOf("</"+r)),n[r]=i),i<t;}(e,S,A.tagName,E)&&(A.closed=!0,r.nbsp||o.warning("unclosed xml attribute")),g&&C){for(var _=u(g,{}),L=0;C>L;L++){var $=A[L];c($.offset),$.locator=u(g,{});}n.locator=_,p(A,n,O)&&v.push(A),n.locator=g;}else p(A,n,O)&&v.push(A);i.isHTML(A.uri)&&!A.closed?S=function(e,t,r,n,i){if(/^(?:script|textarea)$/i.test(r)){var o=e.indexOf("</"+r+">",t),a=e.substring(t+1,o);if(/[&<]/.test(a))return /^script$/i.test(r)||(a=a.replace(/&#?\w+;/g,n)),i.characters(a,0,a.length),o;}return t+1;}(e,S,A.tagName,a,n):S++;}}catch(e){if(e instanceof s)throw e;o.error("element parse error: "+e),S=-1;}S>w?w=S:l(Math.max(y,w)+1);}}(e,t,r,n,this.errorHandler),n.endDocument();}},f.prototype={setTagName:function(e){if(!a.test(e))throw Error("invalid tagName:"+e);this.tagName=e;},addValue:function(e,t,r){if(!a.test(e))throw Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:r};},length:0,getLocalName:function(e){return this[e].localName;},getLocator:function(e){return this[e].locator;},getQName:function(e){return this[e].qName;},getURI:function(e){return this[e].uri;},getValue:function(e){return this[e].value;}},r=l,n=s;}),rH=rB("dAuy6"),rV=rB("hHq4F"),rX=rB("6OFKY"),function(){rB("kswPT").addLocale("en",function(e){var t=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return("string"==typeof e&&(e=parseInt(e,10)),1===t&&0===r)?"one":"other";});}.call(rz={}),rY={},rY=rB("foOBZ"),rK={},rK={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"}}}},rW={},c(rQ={},"isexe",()=>iz),c(rQ,"sync",()=>iY),iE.promises;const{access:ix,appendFile:iS,chmod:iD,chown:iT,copyFile:iR,lchmod:iN,lchown:iI,link:iA,lstat:iO,mkdir:iC,mkdtemp:i_,open:iL,readdir:i$,readFile:iP,readlink:ik,realpath:iU,rename:iF,rmdir:iM,stat:ij,symlink:iq,truncate:iB,unlink:iG,utimes:iH,writeFile:iV,rm:iX}=iE.promises,iz=async(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return iK(await ij(e),t);}catch(e){if(r||"EACCES"===e.code)return!1;throw e;}},iY=(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return iK((0,iE.statSync)(e),t);}catch(e){if(r||"EACCES"===e.code)return!1;throw e;}},iK=(e,t)=>e.isFile()&&iW(e,t),iW=(e,t)=>{var r,n,i,o,a,s,l,u,c,p,d;let f=null!==(l=t.uid)&&void 0!==l?l:null===(r=(n=process).getuid)||void 0===r?void 0:r.call(n),h=null!==(c=null!==(u=t.groups)&&void 0!==u?u:null===(i=(o=process).getgroups)||void 0===i?void 0:i.call(o))&&void 0!==c?c:[],m=null!==(d=null!==(p=t.gid)&&void 0!==p?p:null===(a=(s=process).getgid)||void 0===a?void 0:a.call(s))&&void 0!==d?d:h[0];if(void 0===f||void 0===m)throw Error("cannot get uid or gid");let g=new Set([m,...h]),v=e.mode,E=e.uid,w=e.gid,y=parseInt("100",8),b=parseInt("010",8);return!!(v&parseInt("001",8)||v&b&&g.has(w)||v&y&&E===f||v&(y|b)&&0===f);};c(rJ={},"isexe",()=>iQ),c(rJ,"sync",()=>iJ);const iQ=async(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return i0(await ij(e),e,t);}catch(e){if(r||"EACCES"===e.code)return!1;throw e;}},iJ=(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return i0((0,iE.statSync)(e),e,t);}catch(e){if(r||"EACCES"===e.code)return!1;throw e;}},iZ=(e,t)=>{let{pathExt:r=process.env.PATHEXT||""}=t,n=r.split(";");if(-1!==n.indexOf(""))return!0;for(let t=0;t<n.length;t++){let r=n[t].toLowerCase(),i=e.substring(e.length-r.length).toLowerCase();if(r&&i===r)return!0;}return!1;},i0=(e,t,r)=>e.isFile()&&iZ(t,r),i1="win32"===(process.env._ISEXE_TEST_PLATFORM_||process.platform)?rJ:rQ,i3=i1.isexe,i2=i1.sync;rZ=iv.join,r0=iv.delimiter,r1=iv.sep,r3=iv.posix;const i4="win32"===process.platform,i5=new RegExp(`[${r3.sep}${r1===r3.sep?"":r1}]`.replace(/(\\)/g,"\\$1")),i6=RegExp("^\\."+i5.source),i8=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),i9=(e,{path:t=process.env.PATH,pathExt:r=process.env.PATHEXT,delimiter:n=r0})=>{let i=e.match(i5)?[""]:[...(i4?[process.cwd()]:[]),...(t||"").split(n)];if(i4){let t=r||[".EXE",".CMD",".BAT",".COM"].join(n),o=t.split(n).flatMap(e=>[e,e.toLowerCase()]);return e.includes(".")&&""!==o[0]&&o.unshift(""),{pathEnv:i,pathExt:o,pathExtExe:t};}return{pathEnv:i,pathExt:[""]};},i7=(e,t)=>{let r=/^".*"$/.test(e)?e.slice(1,-1):e;return(!r&&i6.test(t)?t.slice(0,2):"")+rZ(r,t);},oe=async(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=i9(e,t),o=[];for(let a of r){let r=i7(a,e);for(let e of n){let n=r+e;if(await i3(n,{pathExt:i,ignoreErrors:!0})){if(!t.all)return n;o.push(n);}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw i8(e);};rW=oe,oe.sync=(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=i9(e,t),o=[];for(let a of r){let r=i7(a,e);for(let e of n){let n=r+e;if(i2(n,{pathExt:i,ignoreErrors:!0})){if(!t.all)return n;o.push(n);}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw i8(e);},r2={},r4={},r5={},r6={};const ot="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,or=ot?";":":";r8={},"win32"===process.platform||rM.TESTING_WINDOWS?r9=rB("8nJMC"):r9=rB("lo7XV"),r8=d,d.sync=function(e,t){try{return r9.sync(e,t||{});}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e;}};const on=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),oi=(e,t)=>{let r=t.colon||or,n=e.match(/\//)||ot&&e.match(/\\/)?[""]:[...(ot?[process.cwd()]:[]),...(t.path||process.env.PATH||"").split(r)],i=ot?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",o=ot?i.split(r):[""];return ot&&-1!==e.indexOf(".")&&""!==o[0]&&o.unshift(""),{pathEnv:n,pathExt:o,pathExtExe:i};},oo=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:i,pathExtExe:o}=oi(e,t),a=[],s=r=>new Promise((i,o)=>{if(r===n.length)return t.all&&a.length?i(a):o(on(e));let s=n[r],u=/^".*"$/.test(s)?s.slice(1,-1):s,c=iv.join(u,e);i(l(!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+c:c,r,0));}),l=(e,r,n)=>new Promise((u,c)=>{if(n===i.length)return u(s(r+1));let p=i[n];r8(e+p,{pathExt:o},(i,o)=>{if(!i&&o){if(!t.all)return u(e+p);a.push(e+p);}return u(l(e,r,n+1));});});return r?s(0).then(e=>r(null,e),r):s(0);};r6=oo,oo.sync=(e,t)=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=oi(e,t=t||{}),o=[];for(let a=0;a<r.length;a++){let s=r[a],l=/^".*"$/.test(s)?s.slice(1,-1):s,u=iv.join(l,e),c=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u;for(let e=0;e<n.length;e++){let r=c+n[e];try{if(r8.sync(r,{pathExt:i})){if(!t.all)return r;o.push(r);}}catch(e){}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw on(e);},r7={};const oa=(e={})=>{let t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find(e=>"PATH"===e.toUpperCase())||"Path";};(r7=oa).default=oa,r5=function(e){return f(e)||f(e,!0);};ne=function(e){return e=e.replace(/([()\][%!^"`<>&|;, *?])/g,"^$1");},nt=function(e,t){return e=(e=(e=""+e).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1"),e=(e=`"${e}"`).replace(/([()\][%!^"`<>&|;, *?])/g,"^$1"),t&&(e=e.replace(/([()\][%!^"`<>&|;, *?])/g,"^$1")),e;},nr={},nn={},ni={},ni=/^#!(.*)/,nn=(e="")=>{let t=e.match(ni);if(!t)return null;let[r,n]=t[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return"env"===i?n:n?`${i} ${n}`:i;},nr=function(e){let t;let r=Buffer.alloc(150);try{t=iE.openSync(e,"r"),iE.readSync(t,r,0,150,0),iE.closeSync(t);}catch(e){}return nn(r.toString());};const os="win32"===process.platform;r4=function(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null);let 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:function(e){if(!os)return e;let t=function(e){e.file=r5(e);let t=e.file&&nr(e.file);return t?(e.args.unshift(e.file),e.command=t,r5(e)):e.file;}(e),r=!/\.(?:com|exe)$/i.test(t);if(e.options.forceShell||r){let r=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i.test(t);e.command=iv.normalize(e.command),e.command=ne(e.command),e.args=e.args.map(e=>nt(e,r));let 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);},no={};const ol="win32"===process.platform;no={hookChildProcess:function(e,t){if(!ol)return;let r=e.emit;e.emit=function(n,i){if("exit"===n){let n=m(i,t,"spawn");if(n)return r.call(e,"error",n);}return r.apply(e,arguments);};},verifyENOENT:m,verifyENOENTSync:function(e,t){return ol&&1===e&&!t.file?h(t.original,"spawnSync"):null;},notFoundError:h},(r2=g).spawn=g,r2.sync=function(e,t,r){let n=r4(e,t,r),i=rS.spawnSync(n.command,n.args,n.options);return i.error=i.error||no.verifyENOENTSync(i.status,n),i;},r2._parse=r4,r2._enoent=no;const ou=(e,t,r,n)=>{if("length"===r||"prototype"===r||"arguments"===r||"caller"===r)return;let i=Object.getOwnPropertyDescriptor(e,r),o=Object.getOwnPropertyDescriptor(t,r);(oc(i,o)||!n)&&Object.defineProperty(e,r,o);},oc=function(e,t){return void 0===e||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value);},op=(e,t)=>{let r=Object.getPrototypeOf(t);r!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,r);},od=(e,t)=>`/* Wrapped ${e}*/
${t}`,of=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),oh=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),om=(e,t,r)=>{let n=""===r?"":`with ${r.trim()}() `,i=od.bind(null,n,t.toString());Object.defineProperty(i,"name",oh),Object.defineProperty(e,"toString",{...of,value:i});},og=new WeakMap(),ov=(e,t={})=>{let r;if("function"!=typeof e)throw TypeError("Expected a function");let n=0,i=e.displayName||e.name||"<anonymous>",o=function(...a){if(og.set(o,++n),1===n)r=e.apply(this,a),e=null;else if(!0===t.throw)throw Error(`Function \`${i}\` can only be called once`);return r;};return!function(e,t,{ignoreNonConfigurable:r=!1}={}){let{name:n}=e;for(let n of Reflect.ownKeys(t))ou(e,t,n,r);op(e,t),om(e,t,n);}(o,e),og.set(o,n),o;};ov.callCount=e=>{if(!og.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return og.get(e);},na=ov;const oE=()=>Array.from({length:ob-oy+1},ow),ow=(e,t)=>({name:"SIGRT"+(t+1),number:oy+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),oy=34,ob=64,ox=[{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"}],oS=()=>[...ox,...oE()].map(oD),oD=({name:e,number:t,description:r,action:n,forced:i=!1,standard:o})=>{let{signals:{[e]:a}}=rC.constants,s=void 0!==a;return{name:e,number:s?a:t,description:r,supported:s,action:n,forced:i,standard:o};},oT=Object.fromEntries(oS().map(({name:e,number:t,description:r,supported:n,action:i,forced:o,standard:a})=>[e,{name:e,number:t,description:r,supported:n,action:i,forced:o,standard:a}])),oR=(e,t)=>{let r=oN(e,t);if(void 0===r)return{};let{name:n,description:i,supported:o,action:a,forced:s,standard:l}=r;return{[e]:{name:n,number:e,description:i,supported:o,action:a,forced:s,standard:l}};},oN=(e,t)=>{let r=t.find(({name:t})=>rC.constants.signals[t]===e);return void 0!==r?r:t.find(t=>t.number===e);};(()=>{let e=oS();return Object.assign({},...Array.from({length:ob+1},(t,r)=>oR(r,e)));})();const oI=({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:i,exitCode:o,isCanceled:a})=>e?`timed out after ${t} milliseconds`:a?"was canceled":void 0!==r?"failed with "+r:void 0!==n?`was killed with ${n} (${i})`:void 0!==o?"failed with exit code "+o:"failed",oA=({stdout:e,stderr:t,all:r,error:n,signal:i,exitCode:o,command:a,escapedCommand:s,timedOut:l,isCanceled:u,killed:c,parsed:{options:{timeout:d,cwd:f=p(rA).cwd()}}})=>{o=null===o?void 0:o;let h=void 0===(i=null===i?void 0:i)?void 0:oT[i].description,m=oI({timedOut:l,timeout:d,errorCode:n&&n.code,signal:i,signalDescription:h,exitCode:o,isCanceled:u}),g=`Command ${m}: ${a}`,v="[object Error]"===Object.prototype.toString.call(n),E=v?`${g}
${n.message}`:g,w=[E,t,e].filter(Boolean).join("\n");return v?(n.originalMessage=n.message,n.message=w):n=Error(w),n.shortMessage=E,n.command=a,n.escapedCommand=s,n.exitCode=o,n.signal=i,n.signalDescription=h,n.stdout=e,n.stderr=t,n.cwd=f,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!l,n.isCanceled=u,n.killed=c&&!l,n;},oO=["stdin","stdout","stderr"],oC=e=>oO.some(t=>void 0!==e[t]),o_=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return oO.map(t=>e[t]);if(oC(e))throw Error("It's not possible to provide `stdio` in combination with one of "+oO.map(e=>`\`${e}\``).join(", "));if("string"==typeof t)return t;if(!Array.isArray(t))throw TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);return Array.from({length:Math.max(t.length,oO.length)},(e,r)=>t[r]);};ns={};const oL=function(e){return e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on;};if(oL(nl=rM.process)){var o$,oP=ry,ok=rB("dVIKq"),oU=/^win/i.test(nl.platform),oF=rw;"function"!=typeof oF&&(oF=oF.EventEmitter),nl.__signal_exit_emitter__?o$=nl.__signal_exit_emitter__:((o$=nl.__signal_exit_emitter__=new oF()).count=0,o$.emitted={}),o$.infinite||(o$.setMaxListeners(1/0),o$.infinite=!0);var oM=function(){oB&&oL(rM.process)&&(oB=!1,ok.forEach(function(e){try{nl.removeListener(e,oq[e]);}catch(e){}}),nl.emit=oX,nl.reallyExit=oH,o$.count-=1);};(ns=function(e,t){if(!oL(rM.process))return function(){};oP.equal(typeof e,"function","a callback must be provided for exit handler"),!1===oB&&oG();var r="exit";return t&&t.alwaysLast&&(r="afterexit"),o$.on(r,e),function(){o$.removeListener(r,e),0===o$.listeners("exit").length&&0===o$.listeners("afterexit").length&&oM();};}).unload=oM;var oj=function(e,t,r){o$.emitted[e]||(o$.emitted[e]=!0,o$.emit(e,t,r));},oq={};ok.forEach(function(e){oq[e]=function(){oL(rM.process)&&nl.listeners(e).length===o$.count&&(oM(),oj("exit",null,e),oj("afterexit",null,e),oU&&"SIGHUP"===e&&(e="SIGINT"),nl.kill(nl.pid,e));};}),ns.signals=function(){return ok;};var oB=!1,oG=function(){!oB&&oL(rM.process)&&(oB=!0,o$.count+=1,ok=ok.filter(function(e){try{return nl.on(e,oq[e]),!0;}catch(e){return!1;}}),nl.emit=oz,nl.reallyExit=oV);};ns.load=oG;var oH=nl.reallyExit,oV=function(e){oL(rM.process)&&(nl.exitCode=e||0,oj("exit",nl.exitCode,null),oj("afterexit",nl.exitCode,null),oH.call(nl,nl.exitCode));},oX=nl.emit,oz=function(e,t){if(!("exit"===e&&oL(rM.process)))return oX.apply(this,arguments);void 0!==t&&(nl.exitCode=t);var r=oX.apply(this,arguments);return oj("exit",nl.exitCode,null),oj("afterexit",nl.exitCode,null),r;};}else ns=function(){return function(){};};const oY=(e,t="SIGTERM",r={})=>{let n=e(t);return oK(e,t,r,n),n;},oK=(e,t,r,n)=>{if(!oW(t,r,n))return;let i=setTimeout(()=>{e("SIGKILL");},oJ(r));i.unref&&i.unref();},oW=(e,{forceKillAfterTimeout:t},r)=>oQ(e)&&!1!==t&&r,oQ=e=>e===p(rC).constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),oJ=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||e<0)throw TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e;},oZ=(e,t)=>{e.kill()&&(t.isCanceled=!0);},o0=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}));},o1=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{let i;return 0===t||void 0===t?n:Promise.race([new Promise((n,o)=>{i=setTimeout(()=>{o0(e,r,o);},t);}),n.finally(()=>{clearTimeout(i);})]);},o3=({timeout:e})=>{if(void 0!==e&&(!Number.isFinite(e)||e<0))throw TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);},o2=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let i=p(ns)(()=>{e.kill();});return n.finally(()=>{i();});},o4=e=>e instanceof rI.ChildProcess&&"function"==typeof e.then,o5=(e,t,r)=>{if("string"==typeof r)return e[t].pipe((0,rx.createWriteStream)(r)),e;if(b(r))return e[t].pipe(r),e;if(!o4(r))throw TypeError("The second argument must be a string, a stream or an Execa child process.");if(!b(r.stdin))throw TypeError("The target child process's stdin must be available.");return e[t].pipe(r.stdin),r;},o6=e=>{null!==e.stdout&&(e.pipeStdout=o5.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=o5.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=o5.bind(void 0,e,"all"));};nu={},nc=r_.constants,np=rb.promisify,nd={},nf=rL.PassThrough,nd=e=>{let{array:t}=e={...e},{encoding:r}=e,n="buffer"===r,i=!1;t?i=!(r||n):r=r||"utf8",n&&(r=null);let o=new nf({objectMode:i});r&&o.setEncoding(r);let a=0,s=[];return o.on("data",e=>{s.push(e),i?a=s.length:a+=e.length;}),o.getBufferedValue=()=>t?s:n?Buffer.concat(s,a):s.join(""),o.getBufferedLength=()=>a,o;};const o8=np(rL.pipeline);class o9 extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError";}}(nu=x).buffer=(e,t)=>x(e,{...t,encoding:"buffer"}),nu.array=(e,t)=>x(e,{...t,array:!0}),nu.MaxBufferError=o9,nh={},nm=rL.PassThrough,nh=function(){function e(i){return Array.isArray(i)?i.forEach(e):(r.push(i),i.once("end",t.bind(null,i)),i.once("error",n.emit.bind(n,"error")),i.pipe(n,{end:!1})),this;}function t(e){!(r=r.filter(function(t){return t!==e;})).length&&n.readable&&n.end();}var r=[],n=new nm({objectMode:!0});return n.setMaxListeners(0),n.add=e,n.isEmpty=function(){return 0==r.length;},n.on("unpipe",t),Array.prototype.slice.call(arguments).forEach(e),n;};const o7=e=>{if(void 0!==e)throw TypeError("The `input` and `inputFile` options cannot be both set.");},ae=({input:e,inputFile:t})=>"string"!=typeof t?e:(o7(e),(0,rx.readFileSync)(t)),at=e=>{let t=ae(e);if(y(t))throw TypeError("The `input` option cannot be a stream in sync mode");return t;},ar=({input:e,inputFile:t})=>"string"!=typeof t?e:(o7(e),(0,rx.createReadStream)(t)),an=(e,t)=>{let r=ar(t);void 0!==r&&(y(r)?r.pipe(e.stdin):e.stdin.end(r));},ai=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=p(nh)();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r;},ao=async(e,t)=>{if(e&&void 0!==t){e.destroy();try{return await t;}catch(e){return e.bufferedData;}}},aa=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?p(nu)(e,{encoding:t,maxBuffer:n}):p(nu).buffer(e,{maxBuffer:n});},as=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:o},a)=>{let s=aa(e,{encoding:n,buffer:i,maxBuffer:o}),l=aa(t,{encoding:n,buffer:i,maxBuffer:o}),u=aa(r,{encoding:n,buffer:i,maxBuffer:2*o});try{return await Promise.all([a,s,l,u]);}catch(n){return Promise.all([{error:n,signal:n.signal,timedOut:n.timedOut},ao(e,s),ao(t,l),ao(r,u)]);}},al=(async()=>{})().constructor.prototype,au=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(al,e)]),ac=(e,t)=>{for(let[r,n]of au){let i="function"==typeof t?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i});}},ap=e=>new Promise((t,r)=>{e.on("exit",(e,r)=>{t({exitCode:e,signal:r});}),e.on("error",e=>{r(e);}),e.stdin&&e.stdin.on("error",e=>{r(e);});}),ad=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],af=e=>"string"!=typeof e||/^[\w.-]+$/.test(e)?e:`"${e.replace(/"/g,'\\"')}"`,ah=(e,t)=>ad(e,t).join(" "),am=(e,t)=>ad(e,t).map(e=>af(e)).join(" "),ag=e=>{let t=[];for(let r of e.trim().split(/ +/g)){let e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${r}`:t.push(r);}return t;},av=e=>{let t=typeof e;if("string"===t)return e;if("number"===t)return e+"";if("object"===t&&null!==e&&!(e instanceof rI.ChildProcess)&&"stdout"in e){let t=typeof e.stdout;if("string"===t)return e.stdout;if((0,rR.Buffer).isBuffer(e.stdout))return e.stdout.toString();throw TypeError(`Unexpected "${t}" stdout in template expression`);}throw TypeError(`Unexpected "${t}" in template expression`);},aE=(e,t,r)=>r||0===e.length||0===t.length?[...e,...t]:[...e.slice(0,-1),`${e[e.length-1]}${t[0]}`,...t.slice(1)],aw=({templates:e,expressions:t,tokens:r,index:n,template:i})=>{let o=null!=i?i:e.raw[n],a=aE(r,o.split(/ +/g).filter(Boolean),o.startsWith(" "));if(n===t.length)return a;let s=t[n];return aE(a,Array.isArray(s)?s.map(e=>av(e)):[av(s)],o.endsWith(" "));},ay=(e,t)=>{let r=[];for(let[n,i]of e.entries())r=aw({templates:e,expressions:t,tokens:r,index:n,template:i});return r;},ab=(0,r$.debuglog)("execa").enabled,ax=(e,t)=>(e+"").padStart(t,"0"),aS=()=>{let e=new Date();return`${ax(e.getHours(),2)}:${ax(e.getMinutes(),2)}:${ax(e.getSeconds(),2)}.${ax(e.getMilliseconds(),3)}`;},aD=(e,{verbose:t})=>{t&&p(rA).stderr.write(`[${aS()}] ${e}
`);},aT=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let o=t?{...p(rA).env,...e}:e;return r?w({env:o,cwd:n,execPath:i}):o;},aR=(e,t,r={})=>{let n=p(r2)._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||p(rA).cwd(),execPath:p(rA).execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:ab,...r}).env=aT(r),r.stdio=o_(r),"win32"===p(rA).platform&&"cmd"===p(rN).basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n};},aN=(e,t,r)=>"string"==typeof t||(0,rR.Buffer).isBuffer(t)?e.stripFinalNewline?v(t):t:void 0===r?void 0:"",aI=({input:e,inputFile:t,stdio:r})=>void 0===e&&void 0===t&&void 0===r?{stdin:"inherit"}:{},aA=(e={})=>({preferLocal:!0,...aI(e),...e});!function e(t){function r(n,...i){if(!Array.isArray(n))return e({...t,...n});let[o,...a]=ay(n,i);return S(o,a,aA(t));}return r.sync=(e,...r)=>{if(!Array.isArray(e))throw TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[n,...i]=ay(e,r);return D(n,i,aA(t));},r;}();const aO={stdio:"inherit",shell:!0},aC=/^~(?=$|\/|\\)/;rV=rB("hHq4F"),ng={},nv=rB("coVwk"),nE=rP.env.npm_package_json,ny=!!((nw=rP.env.npm_config_user_agent)&&nw.startsWith("npm")),nb=!!(nE&&nE.endsWith("package.json")),nx=ny||nb,nS=!!(nw&&nw.startsWith("yarn")),nD=nx||nS,nT=ig.homedir(),nR=process.env.XDG_CONFIG_HOME||iv.join(nT,".config","simple-update-notifier"),nN=function(e){return iv.join(nR,"".concat(e.replace("@","").replace("/","__"),".json"));},nI=function(){iE.existsSync(nR)||iE.mkdirSync(nR,{recursive:!0});},nA=function(e){var t=nN(e);try{if(!iE.existsSync(t))return;return JSON.parse(iE.readFileSync(t,"utf8")).lastUpdateCheck;}catch(e){return;}},nO=function(e){var t=nN(e);iE.writeFileSync(t,JSON.stringify({lastUpdateCheck:new Date().getTime()}));},nC=function(e,t){return _(void 0,void 0,void 0,function(){var r;return L(this,function(n){return r="https://registry.npmjs.org/-/package/".concat(e,"/dist-tags"),[2,new Promise(function(e,n){ib.get(r,function(r){var i="";r.on("data",function(e){return i+=e;}),r.on("end",function(){try{var r=JSON.parse(i)[t];r||n(Error("Error getting version")),e(r);}catch(e){n(Error("Could not parse version response"));}});}).on("error",function(e){return n(e);});})];});});},n_=function(e){var t=e.pkg,r=e.updateCheckInterval,n=void 0===r?864e5:r,i=e.distTag,o=void 0===i?"latest":i,a=e.alwaysRun,s=e.debug;return _(void 0,void 0,void 0,function(){var e,r;return L(this,function(i){switch(i.label){case 0:if(nI(),e=nA(t.name),!(a||!e||e<new Date().getTime()-n))return[3,2];return[4,nC(t.name,o)];case 1:if(r=i.sent(),nO(t.name),nv.gt(r,t.version))return[2,r];return s&&console.error("Latest version (".concat(r,") not newer than current version (").concat(t.version,")")),[3,3];case 2:s&&console.error("Too recent to check for a new update. simpleUpdateNotifier() interval set to ".concat(n,"ms but only ").concat(new Date().getTime()-e,"ms since last check.")),i.label=3;case 3:return[2,!1];}});});},nL=function(e){for(var t=e.split("\n"),r=Math.max.apply(Math,t.map(function(e){return e.length;})),n=["┌".concat("─".repeat(r+2),"┐")],i=0;i<t.length;i++){var o=t[i];n.push("│ ".concat(o.padEnd(r)," │"));}return n.push("└".concat("─".repeat(r+2),"┘")),n.join("\n");},ng=function(e){return _(void 0,void 0,void 0,function(){var t,r;return L(this,function(n){switch(n.label){case 0:if(!e.alwaysRun&&(!process.stdout.isTTY||nD&&!e.shouldNotifyInNpmScript))return e.debug&&console.error("Opting out of running simpleUpdateNotifier()"),[2];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,n_(e)];case 2:return(t=n.sent())&&console.error(nL("New version of ".concat(e.pkg.name," available!\nCurrent Version: ").concat(e.pkg.version,"\nLatest Version: ").concat(t))),[3,4];case 3:return r=n.sent(),e.debug&&r instanceof Error&&console.error("Unexpected error in simpleUpdateNotifier():",r),[3,4];case 4:return[2];}});});},n$={},n$=JSON.parse('{"name":"setup-cpp","version":"0.36.2"}'),nP=rB("1o3Gj"),rV=rB("hHq4F"),rH=rB("dAuy6"),nP=rB("1o3Gj"),rH=rB("dAuy6"),rV=rB("hHq4F");const a_=({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:i,exitCode:o,isCanceled:a})=>e?`timed out after ${t} milliseconds`:a?"was canceled":void 0!==r?"failed with "+r:void 0!==n?`was killed with ${n} (${i})`:void 0!==o?"failed with exit code "+o:"failed",aL=({stdout:e,stderr:t,all:r,error:n,signal:i,exitCode:o,command:a,escapedCommand:s,timedOut:l,isCanceled:u,killed:c,parsed:{options:{timeout:p}}})=>{o=null===o?void 0:o;let d=void 0===(i=null===i?void 0:i)?void 0:oT[i].description,f=a_({timedOut:l,timeout:p,errorCode:n&&n.code,signal:i,signalDescription:d,exitCode:o,isCanceled:u}),h=`Command ${f}: ${a}`,m="[object Error]"===Object.prototype.toString.call(n),g=m?`${h}
${n.message}`:h,v=[g,t,e].filter(Boolean).join("\n");return m?(n.originalMessage=n.message,n.message=v):n=Error(v),n.shortMessage=g,n.command=a,n.escapedCommand=s,n.exitCode=o,n.signal=i,n.signalDescription=d,n.stdout=e,n.stderr=t,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!l,n.isCanceled=u,n.killed=c&&!l,n;},a$=["stdin","stdout","stderr"],aP=e=>a$.some(t=>void 0!==e[t]),ak=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return a$.map(t=>e[t]);if(aP(e))throw Error("It's not possible to provide `stdio` in combination with one of "+a$.map(e=>`\`${e}\``).join(", "));if("string"==typeof t)return t;if(!Array.isArray(t))throw TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);return Array.from({length:Math.max(t.length,a$.length)},(e,r)=>t[r]);},aU=(e,t="SIGTERM",r={})=>{let n=e(t);return aF(e,t,r,n),n;},aF=(e,t,r,n)=>{if(!aM(t,r,n))return;let i=setTimeout(()=>{e("SIGKILL");},aq(r));i.unref&&i.unref();},aM=(e,{forceKillAfterTimeout:t},r)=>aj(e)&&!1!==t&&r,aj=e=>e===p(rC).constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),aq=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||e<0)throw TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e;},aB=(e,t)=>{e.kill()&&(t.isCanceled=!0);},aG=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}));},aH=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{let i;return 0===t||void 0===t?n:Promise.race([new Promise((n,o)=>{i=setTimeout(()=>{aG(e,r,o);},t);}),n.finally(()=>{clearTimeout(i);})]);},aV=({timeout:e})=>{if(void 0!==e&&(!Number.isFinite(e)||e<0))throw TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);},aX=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let i=p(ns)(()=>{e.kill();});return n.finally(()=>{i();});},az=e=>e instanceof rI.ChildProcess&&"function"==typeof e.then,aY=(e,t,r)=>{if("string"==typeof r)return e[t].pipe((0,rx.createWriteStream)(r)),e;if(b(r))return e[t].pipe(r),e;if(!az(r))throw TypeError("The second argument must be a string, a stream or an Execa child process.");if(!b(r.stdin))throw TypeError("The target child process's stdin must be available.");return e[t].pipe(r.stdin),r;},aK=e=>{null!==e.stdout&&(e.pipeStdout=aY.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=aY.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=aY.bind(void 0,e,"all"));},aW=e=>{if(void 0!==e)throw TypeError("The `input` and `inputFile` options cannot be both set.");},aQ=({input:e,inputFile:t})=>"string"!=typeof t?e:(aW(e),(0,rx.readFileSync)(t)),aJ=e=>{let t=aQ(e);if(y(t))throw TypeError("The `input` option cannot be a stream in sync mode");return t;},aZ=({input:e,inputFile:t})=>"string"!=typeof t?e:(aW(e),(0,rx.createReadStream)(t)),a0=(e,t)=>{let r=aZ(t);void 0!==r&&(y(r)?r.pipe(e.stdin):e.stdin.end(r));},a1=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=p(nh)();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r;},a3=async(e,t)=>{if(e&&void 0!==t){e.destroy();try{return await t;}catch(e){return e.bufferedData;}}},a2=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?p(nu)(e,{encoding:t,maxBuffer:n}):p(nu).buffer(e,{maxBuffer:n});},a4=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:o},a)=>{let s=a2(e,{encoding:n,buffer:i,maxBuffer:o}),l=a2(t,{encoding:n,buffer:i,maxBuffer:o}),u=a2(r,{encoding:n,buffer:i,maxBuffer:2*o});try{return await Promise.all([a,s,l,u]);}catch(n){return Promise.all([{error:n,signal:n.signal,timedOut:n.timedOut},a3(e,s),a3(t,l),a3(r,u)]);}},a5=(async()=>{})().constructor.prototype,a6=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(a5,e)]),a8=(e,t)=>{for(let[r,n]of a6){let i="function"==typeof t?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i});}},a9=e=>new Promise((t,r)=>{e.on("exit",(e,r)=>{t({exitCode:e,signal:r});}),e.on("error",e=>{r(e);}),e.stdin&&e.stdin.on("error",e=>{r(e);});}),a7=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],se=e=>"string"!=typeof e||/^[\w.-]+$/.test(e)?e:`"${e.replace(/"/g,'\\"')}"`,st=(e,t)=>a7(e,t).join(" "),sr=(e,t)=>a7(e,t).map(e=>se(e)).join(" "),sn=e=>{let t=typeof e;if("string"===t)return e;if("number"===t)return e+"";if("object"===t&&null!==e&&!(e instanceof rI.ChildProcess)&&"stdout"in e){let t=typeof e.stdout;if("string"===t)return e.stdout;if((0,rR.Buffer).isBuffer(e.stdout))return e.stdout.toString();throw TypeError(`Unexpected "${t}" stdout in template expression`);}throw TypeError(`Unexpected "${t}" in template expression`);},si=(e,t,r)=>r||0===e.length||0===t.length?[...e,...t]:[...e.slice(0,-1),`${e[e.length-1]}${t[0]}`,...t.slice(1)],so=({templates:e,expressions:t,tokens:r,index:n,template:i})=>{let o=null!=i?i:e.raw[n],a=si(r,o.split(/ +/g).filter(Boolean),o.startsWith(" "));if(n===t.length)return a;let s=t[n];return si(a,Array.isArray(s)?s.map(e=>sn(e)):[sn(s)],o.endsWith(" "));},sa=(e,t)=>{let r=[];for(let[n,i]of e.entries())r=so({templates:e,expressions:t,tokens:r,index:n,template:i});return r;},ss=(0,r$.debuglog)("execa").enabled,sl=(e,t)=>(e+"").padStart(t,"0"),su=()=>{let e=new Date();return`${sl(e.getHours(),2)}:${sl(e.getMinutes(),2)}:${sl(e.getSeconds(),2)}.${sl(e.getMilliseconds(),3)}`;},sc=(e,{verbose:t})=>{t&&p(rA).stderr.write(`[${su()}] ${e}
`);},sp=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let o=t?{...p(rA).env,...e}:e;return r?w({env:o,cwd:n,execPath:i}):o;},sd=(e,t,r={})=>{let n=p(r2)._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||p(rA).cwd(),execPath:p(rA).execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:ss,...r}).env=sp(r),r.stdio=ak(r),"win32"===p(rA).platform&&"cmd"===p(rN).basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n};},sf=(e,t,r)=>"string"==typeof t||(0,rR.Buffer).isBuffer(t)?e.stripFinalNewline?v(t):t:void 0===r?void 0:"",sh=({input:e,inputFile:t,stdio:r})=>void 0===e&&void 0===t&&void 0===r?{stdin:"inherit"}:{},sm=(e={})=>({preferLocal:!0,...sh(e),...e});!function e(t){function r(n,...i){if(!Array.isArray(n))return e({...t,...n});let[o,...a]=sa(n,i);return k(o,a,sm(t));}return r.sync=(e,...r)=>{if(!Array.isArray(e))throw TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[n,...i]=sa(e,r);return function(e,t,r){let n;let i=sd(e,t,r),o=st(e,t),a=sr(e,t);sc(a,i.options);let s=aJ(i.options);try{n=p(rI).spawnSync(i.file,i.args,{...i.options,input:s});}catch(e){throw aL({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:a,parsed:i,timedOut:!1,isCanceled:!1,killed:!1});}let l=sf(i.options,n.stdout,n.error),u=sf(i.options,n.stderr,n.error);if(n.error||0!==n.status||null!==n.signal){let e=aL({stdout:l,stderr:u,error:n.error,signal:n.signal,exitCode:n.status,command:o,escapedCommand:a,parsed:i,timedOut:n.error&&"ETIMEDOUT"===n.error.code,isCanceled:!1,killed:null!==n.signal});if(!i.options.reject)return e;throw e;}return{command:o,escapedCommand:a,exitCode:0,stdout:l,stderr:u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};}(n,i,sm(t));},r;}(),nk={};const sg="win32"!==ig.platform(),sv=ig.release(),sE=(e="",t="")=>/1\d+\.\d+/.test(e)&&+t>=17134.1184;nk=function(e){return sg?e.replace(/(\s+)/g,"\\$1"):sE(.../(\d+\.\d+)\.(\d+)/.exec(sv).splice(1))?e:e.replace(/(\s+)/g,"%20");},function(){var e,t;e=rB("8CJZb"),t=function(e){return e.split("").reverse().join("");},nU=function(r,n,i){var o;return(null==n&&(n="'"),null==i&&(i="\\"),"string"!=typeof r)?r:(o=RegExp("(["+e(n)+"])(?!"+e(i)+")","g"),t(t(r).replace(o,"$1"+i)));};}.call(nU={}),nF=rB("6t4SD");const sw={shouldEscapeSpace:!1,shouldAddOnlyIfNotDefined:!1},sy=[/\/usr\/bin\/?/,/\/usr\/local\/bin\/?/],sb=C("~/.cpprc");let sx=!1;nF=rB("6t4SD"),nM=rB("f44Uw"),rV=rB("hHq4F");const{appendFile:sS}=iE.promises;let sD=!1,sT=!1;const sR=["E: Could not get lock","dpkg: error processing archive","dpkg: error: dpkg status database is locked by another process"];(rm=nj||(nj={}))[rm.NameDashVersion=0]="NameDashVersion",rm[rm.NameEqualsVersion=1]="NameEqualsVersion",rm[rm.Name=2]="Name",rm[rm.None=3]="None",nP=rB("1o3Gj"),nq=rB("eAXk4"),nq=rB("eAXk4"),nB=rB("zdagz");let sN=!1;nF=rB("6t4SD"),nq=rB("eAXk4"),rV=rB("hHq4F");let sI=!1;rV=rB("hHq4F"),rV=rB("hHq4F");let sA=!1,sO=!1;const sC=/Version\s*:\s*(.*)/g;nG={},nH=iv.resolve(__dirname,"../../node_modules/@actions/tool-cache/lib"),nV=nG&&nG.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),nX=nG&&nG.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),nz=nG&&nG.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&nV(t,e,r);return nX(t,e),t;},nY=nG&&nG.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e));}catch(e){o(e);}}function s(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(a,s);}l((n=n.apply(e,t||[])).next());});},nK=nG&&nG.__importDefault||function(e){return e&&e.__esModule?e:{default:e};},Object.defineProperty(nG,"__esModule",{value:!0}),nG.evaluateVersions=nG.isExplicitVersion=nG.findFromManifest=nG.getManifestFromRepo=nG.findAllVersions=nG.find=nG.cacheFile=nG.cacheDir=nG.extractZip=nG.extractXar=nG.extractTar=nG.extract7z=nG.downloadTool=nG.HTTPError=void 0;const s_=nz(rB("1o3Gj")),sL=nz(rB("zdagz")),s$=nz(iE),sP=nz(rB("gn8Si")),sk=nz(ig),sU=nz(iv),sF=nz(rB("eamjo")),sM=nz(rB("0306Y")),sj=nz(rL),sq=nz(rb),sB=nK(rB("GX8zo"));nW=rB("bHzmH"),nJ=(nQ={},nQ.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];})),nZ=nQ&&nQ.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),n0=nQ&&nQ.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&nJ(t,e,r);return nZ(t,e),t;},n1=nQ&&nQ.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e));}catch(e){o(e);}}function s(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(a,s);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(nQ,"__esModule",{value:!0}),nQ.RetryHelper=void 0;const sG=n0(rB("1o3Gj"));nQ.RetryHelper=class{constructor(e,t,r){if(e<1)throw Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(t),this.maxSeconds=Math.floor(r),this.minSeconds>this.maxSeconds)throw Error("min seconds should be less than or equal to max seconds");}execute(e,t){return n1(this,void 0,void 0,function*(){let r=1;for(;r<this.maxAttempts;){try{return yield e();}catch(e){if(t&&!t(e))throw e;sG.info(e.message);}let n=this.getSleepAmount();sG.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 n1(this,void 0,void 0,function*(){return new Promise(t=>setTimeout(t,1e3*e));});}};class sH extends Error{constructor(e){super("Unexpected HTTP response: "+e),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype);}}nG.HTTPError=sH;const sV="win32"===process.platform,sX="darwin"===process.platform;nG.downloadTool=function(e,t,r,n){return nY(this,void 0,void 0,function*(){t=t||sU.join(eb(),sB.default()),yield sL.mkdirP(sU.dirname(t)),s_.debug("Downloading "+e),s_.debug("Destination "+t);let i=ex("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=ex("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),a=new nQ.RetryHelper(3,i,o);return yield a.execute(()=>nY(this,void 0,void 0,function*(){return yield function(e,t,r,n){return nY(this,void 0,void 0,function*(){if(s$.existsSync(t))throw Error(`Destination file path ${t} already exists`);let i=new sF.HttpClient("actions/tool-cache",[],{allowRetries:!1});r&&(s_.debug("set auth"),void 0===n&&(n={}),n.authorization=r);let o=yield i.get(e,n);if(200!==o.message.statusCode){let t=new sH(o.message.statusCode);throw s_.debug(`Failed to download from "${e}". Code(${o.message.statusCode}) Message(${o.message.statusMessage})`),t;}let a=sq.promisify(sj.pipeline),s=ex("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>o.message)(),l=!1;try{return yield a(s,s$.createWriteStream(t)),s_.debug("download complete"),l=!0,t;}finally{if(!l){s_.debug("download failed");try{yield sL.rmRF(t);}catch(e){s_.debug(`Failed to delete '${t}'. ${e.message}`);}}}});}(e,t||"",r,n);}),e=>!(e instanceof sH)||!e.httpStatusCode||!(e.httpStatusCode<500)||408===e.httpStatusCode||429===e.httpStatusCode);});},nG.extract7z=function(e,t,r){return nY(this,void 0,void 0,function*(){ry.ok(sV,"extract7z() not supported on current OS"),ry.ok(e,'parameter "file" is required'),t=yield em(t);let n=process.cwd();if(process.chdir(t),r)try{let t=s_.isDebug()?"-bb1":"-bb0";yield nW.exec(`"${r}"`,["x",t,"-bd","-sccUTF-8",e],{silent:!0});}finally{process.chdir(n);}else{let r=sU.join(nH,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,""),i=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),o=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),a=`& '${r}' -Source '${i}' -Target '${o}'`;try{let e=yield sL.which("powershell",!0);yield nW.exec(`"${e}"`,["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",a],{silent:!0});}finally{process.chdir(n);}}return t;});},nG.extractTar=function(e,t,r="xz"){return nY(this,void 0,void 0,function*(){let n;if(!e)throw Error("parameter 'file' is required");t=yield em(t),s_.debug("Checking tar --version");let i="";yield nW.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:e=>i+=e.toString(),stderr:e=>i+=e.toString()}}),s_.debug(i.trim());let o=i.toUpperCase().includes("GNU TAR");n=r instanceof Array?r:[r],s_.isDebug()&&!r.includes("v")&&n.push("-v");let a=t,s=e;return sV&&o&&(n.push("--force-local"),a=t.replace(/\\/g,"/"),s=e.replace(/\\/g,"/")),o&&(n.push("--warning=no-unknown-keyword"),n.push("--overwrite")),n.push("-C",a,"-f",s),yield nW.exec("tar",n),t;});},nG.extractXar=function(e,t,r=[]){return nY(this,void 0,void 0,function*(){let n;ry.ok(sX,"extractXar() not supported on current OS"),ry.ok(e,'parameter "file" is required'),t=yield em(t),(n=r instanceof Array?r:[r]).push("-x","-C",t,"-f",e),s_.isDebug()&&n.push("-v");let i=yield sL.which("xar",!0);return yield nW.exec(`"${i}"`,Array.from(new Set(n))),t;});},nG.extractZip=function(e,t){return nY(this,void 0,void 0,function*(){if(!e)throw Error("parameter 'file' is required");return t=yield em(t),sV?yield function(e,t){return nY(this,void 0,void 0,function*(){let r=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),n=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=yield sL.which("pwsh",!1);if(i){let e=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ; try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}', $true) } catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${r}' -DestinationPath '${n}' -Force } else { throw $_ } } ;`;s_.debug("Using pwsh at path: "+i),yield nW.exec(`"${i}"`,["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e]);}else{let e=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${r}' -DestinationPath '${n}' -Force } else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}', $true) }`,t=yield sL.which("powershell",!0);s_.debug("Using powershell at path: "+t),yield nW.exec(`"${t}"`,["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e]);}});}(e,t):yield function(e,t){return nY(this,void 0,void 0,function*(){let r=yield sL.which("unzip",!0),n=[e];s_.isDebug()||n.unshift("-q"),n.unshift("-o"),yield nW.exec(`"${r}"`,n,{cwd:t});});}(e,t),t;});},nG.cacheDir=function(e,t,r,n){return nY(this,void 0,void 0,function*(){if(r=sM.clean(r)||r,n=n||sk.arch(),s_.debug(`Caching tool ${t} ${r} ${n}`),s_.debug("source dir: "+e),!s$.statSync(e).isDirectory())throw Error("sourceDir is not a directory");let i=yield eg(t,r,n);for(let t of s$.readdirSync(e)){let r=sU.join(e,t);yield sL.cp(r,i,{recursive:!0});}return ev(t,r,n),i;});},nG.cacheFile=function(e,t,r,n,i){return nY(this,void 0,void 0,function*(){if(n=sM.clean(n)||n,i=i||sk.arch(),s_.debug(`Caching tool ${r} ${n} ${i}`),s_.debug("source file: "+e),!s$.statSync(e).isFile())throw Error("sourceFile is not a file");let o=yield eg(r,n,i),a=sU.join(o,t);return s_.debug("destination file "+a),yield sL.cp(e,a),ev(r,n,i),o;});},nG.find=function(e,t,r){if(!e)throw Error("toolName parameter is required");if(!t)throw Error("versionSpec parameter is required");r=r||sk.arch(),eE(t)||(t=ew(eh(e,r),t));let n="";if(t){t=sM.clean(t)||"";let i=sU.join(ey(),e,t,r);s_.debug("checking cache: "+i),s$.existsSync(i)&&s$.existsSync(`${i}.complete`)?(s_.debug(`Found tool in cache ${e} ${t} ${r}`),n=i):s_.debug("not found");}return n;},nG.findAllVersions=eh,nG.getManifestFromRepo=function(e,t,r,n="master"){return nY(this,void 0,void 0,function*(){let i=[],o=`https://api.github.com/repos/${e}/${t}/git/trees/${n}`,a=new sF.HttpClient("tool-cache"),s={};r&&(s_.debug("set auth"),s.authorization=r);let l=yield a.getJson(o,s);if(!l.result)return i;let u="";for(let e of l.result.tree)if("versions-manifest.json"===e.path){u=e.url;break;}s.accept="application/vnd.github.VERSION.raw";let c=yield(yield a.get(u,s)).readBody();if(c){c=c.replace(/^\uFEFF/,"");try{i=JSON.parse(c);}catch(e){s_.debug("Invalid json");}}return i;});},nG.findFromManifest=function(e,t,r,n=sk.arch()){return nY(this,void 0,void 0,function*(){return yield sP._findMatch(e,t,r,n);});},nG.isExplicitVersion=eE,nG.evaluateVersions=ew,n3=rB("hlfY9"),n2=rB("6v1Be"),nq=rB("eAXk4"),rV=rB("hHq4F"),rH=rB("dAuy6"),nF=rB("6t4SD"),Object.defineProperty(n4={},"__esModule",{value:!0}),n4.retryAsPromised=n4.TimeoutError=void 0;class sz extends Error{constructor(e,t){super(e),this.name="TimeoutError",this.previous=t;}}n4.TimeoutError=sz,n4.retryAsPromised=eS,n4.default=eS;let sY=!1;nq=rB("eAXk4"),nB=rB("zdagz"),rV=rB("hHq4F"),nP=rB("1o3Gj"),nF=rB("6t4SD"),nq=rB("eAXk4"),nW=rB("bHzmH"),rH=rB("dAuy6"),rV=rB("hHq4F"),n5={isEqual:!0,isMatchingKey:!0,isPromise:!0,maxSize:!0,onCacheAdd:!0,onCacheChange:!0,onCacheHit:!0,transformKey:!0},n6=Array.prototype.slice,n8=function(){function e(e){this.keys=[],this.values=[],this.options=e;var t="function"==typeof e.isMatchingKey;t?this.getKeyIndex=this._getKeyIndexFromMatchingKey:e.maxSize>1?this.getKeyIndex=this._getKeyIndexForMany:this.getKeyIndex=this._getKeyIndexForSingle,this.canTransformKey="function"==typeof e.transformKey,this.shouldCloneArguments=this.canTransformKey||t,this.shouldUpdateOnAdd="function"==typeof e.onCacheAdd,this.shouldUpdateOnChange="function"==typeof e.onCacheChange,this.shouldUpdateOnHit="function"==typeof e.onCacheHit;}return Object.defineProperty(e.prototype,"size",{get:function(){return this.keys.length;},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"snapshot",{get:function(){return{keys:eL(this.keys),size:this.size,values:eL(this.values)};},enumerable:!1,configurable:!0}),e.prototype._getKeyIndexFromMatchingKey=function(e){var t=this.options,r=t.isMatchingKey,n=t.maxSize,i=this.keys,o=i.length;if(!o)return-1;if(r(i[0],e))return 0;if(n>1){for(var a=1;o>a;a++)if(r(i[a],e))return a;}return-1;},e.prototype._getKeyIndexForMany=function(e){var t,r,n=this.options.isEqual,i=this.keys,o=i.length;if(!o)return-1;if(1===o)return this._getKeyIndexForSingle(e);var a=e.length;if(a>1){for(var s=0;o>s;s++)if((t=i[s]).length===a){for(r=0;a>r&&n(t[r],e[r]);r++);if(r===a)return s;}}else for(var s=0;o>s;s++)if((t=i[s]).length===a&&n(t[0],e[0]))return s;return-1;},e.prototype._getKeyIndexForSingle=function(e){var t=this.keys;if(!t.length)return-1;var r=t[0],n=r.length;if(e.length!==n)return-1;var i=this.options.isEqual;if(n>1){for(var o=0;n>o;o++)if(!i(r[o],e[o]))return-1;return 0;}return i(r[0],e[0])?0:-1;},e.prototype.orderByLru=function(e,t,r){for(var n=this.keys,i=this.values,o=n.length,a=r;a--;)n[a+1]=n[a],i[a+1]=i[a];n[0]=e,i[0]=t;var s=this.options.maxSize;o===s&&r===o?(n.pop(),i.pop()):r>=s&&(n.length=i.length=s);},e.prototype.updateAsyncCache=function(e){var t=this,r=this.options,n=r.onCacheChange,i=r.onCacheHit,o=this.keys[0],a=this.values[0];this.values[0]=a.then(function(r){return t.shouldUpdateOnHit&&i(t,t.options,e),t.shouldUpdateOnChange&&n(t,t.options,e),r;},function(e){var r=t.getKeyIndex(o);throw-1!==r&&(t.keys.splice(r,1),t.values.splice(r,1)),e;});},e;}(),nq=rB("eAXk4"),n9=e=>{if("string"!=typeof e)return!1;let t=e.trim();if(t.includes(" "))return!1;try{return new rk.URL(t),!0;}catch{return!1;}},n7=async e=>{if(!n9(e))return!1;let t=await eU(e,"HEAD");return!!t||!!(t=await eU(e,"GET"));},ie=rB("jDqfd"),n2=rB("6v1Be"),it=rB("2kZmC"),nW=rB("bHzmH"),rV=rB("hHq4F");const sK=/v?(\d\S*)/,sW={llvm:eB(),clangtidy:eB(),clangformat:eB(),ninja:"1.11.1",cmake:"3.28.1",gcovr:"5.2",conan:"1.62.0",meson:"1.3.1",kcov:"42",task:"3.33.1",doxygen:ea()?"1.10.0-1":"1.10.0",gcc:ea()?"13.2.1-3":"13"},sQ={pip:"22.2.0",python:"3.7.9"},sJ={gcc:{22:"13",20:"11",18:"11",16:"11",14:"11"},mingw:{22:"8.0.0-1",20:"7.0.0-2"},llvm:{22:"17.0.6-ubuntu-22.04",20:"17.0.6-ubuntu-22.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},clangtidy:{22:"17.0.2-ubuntu-22.04",20:"17.0.2-ubuntu-22.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},clangformat:{22:"17.0.2-ubuntu-22.04",20:"17.0.2-ubuntu-22.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},gcovr:{22:"6.0",20:"6.0",18:"5.0"},meson:{20:"1.0.0",18:"0.61.4"},nala:{22:"",21:"legacy",20:"legacy",18:"legacy",16:"legacy",14:"legacy"},kcov:{22:"42-binary",20:"40-binary",18:"40",16:"40",14:"40"}};nF=rB("6t4SD");const sZ=ek(e1,{isPromise:!0});rV=rB("hHq4F"),Object.defineProperty(ir={},"__esModule",{value:!0}),ir.getUbuntuVersion=void 0,ir.getUbuntuVersion=e4;const s0=ek(e5,{isPromise:!0}),s1=e=>{if(e){if("object"==typeof e)e={mode:511,...e};else if("number"==typeof e)e={mode:e};else if("string"==typeof e)e={mode:parseInt(e,8)};else throw TypeError("invalid options argument");}else e={mode:511};let t=e,r=e.fs||{};return e.mkdir=e.mkdir||r.mkdir||iE.mkdir,e.mkdirAsync=e.mkdirAsync?e.mkdirAsync:async(e,r)=>new Promise((n,i)=>t.mkdir(e,r,(e,t)=>e?i(e):n(t))),e.stat=e.stat||r.stat||iE.stat,e.statAsync=e.statAsync?e.statAsync:async e=>new Promise((r,n)=>t.stat(e,(e,t)=>e?n(e):r(t))),e.statSync=e.statSync||r.statSync||iE.statSync,e.mkdirSync=e.mkdirSync||r.mkdirSync||iE.mkdirSync,t;},s3=(e,t,r)=>{let n=(0,iv.dirname)(e),i={...s1(t),recursive:!1};if(n===e)try{return i.mkdirSync(e,i);}catch(e){if(e&&"EISDIR"!==e.code)throw e;return;}try{return i.mkdirSync(e,i),r||e;}catch(t){if(t&&"ENOENT"===t.code)return s3(e,i,s3(n,i,r));if(t&&"EEXIST"!==t.code&&t&&"EROFS"!==t.code)throw t;try{if(!i.statSync(e).isDirectory())throw t;}catch(e){throw t;}}},s2=Object.assign(async(e,t,r)=>{let n=s1(t);n.recursive=!1;let i=(0,iv.dirname)(e);return i===e?n.mkdirAsync(e,n).catch(e=>{if(e&&"EISDIR"!==e.code)throw e;}):n.mkdirAsync(e,n).then(()=>r||e,async t=>{if(t&&"ENOENT"===t.code)return s2(i,n).then(t=>s2(e,n,t));if(t&&"EEXIST"!==t.code&&"EROFS"!==t.code)throw t;return n.statAsync(e).then(e=>{if(e.isDirectory())return r;throw t;},()=>{throw t;});});},{sync:s3}),s4=async(e,t,r)=>{if(r!==t)return e.statAsync(t).then(e=>e.isDirectory()?r:void 0,r=>r&&"ENOENT"===r.code?s4(e,(0,iv.dirname)(t),t):void 0);},s5=(e,t,r)=>{if(r!==t)try{return e.statSync(t).isDirectory()?r:void 0;}catch(r){return r&&"ENOENT"===r.code?s5(e,(0,iv.dirname)(t),t):void 0;}},s6=(e,t)=>{let r=s1(t);if(r.recursive=!0,(0,iv.dirname)(e)===e)return r.mkdirSync(e,r);let n=s5(r,e);try{return r.mkdirSync(e,r),n;}catch(t){if(t&&"ENOENT"===t.code)return s3(e,r);throw t;}},s8=Object.assign(async(e,t)=>{let r={...s1(t),recursive:!0};return(0,iv.dirname)(e)===e?await r.mkdirAsync(e,r):s4(r,e).then(t=>r.mkdirAsync(e,r).then(e=>t||e).catch(t=>{if(t&&"ENOENT"===t.code)return s2(e,r);throw t;}));},{sync:s6}),s9=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,s7=e=>{if(/\0/.test(e))throw Object.assign(TypeError("path must be a string without null bytes"),{path:e,code:"ERR_INVALID_ARG_VALUE"});if(e=(0,iv.resolve)(e),"win32"===s9){let{root:t}=(0,iv.parse)(e);if(/[*|"<>?:]/.test(e.substring(t.length)))throw Object.assign(Error("Illegal characters in path."),{path:e,code:"EINVAL"});}return e;},le=(process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version).replace(/^v/,"").split("."),lt=+le[0]>10||10==+le[0]&&+le[1]>=12,lr=lt?e=>s1(e).mkdirSync===iE.mkdirSync:()=>!1,ln=Object.assign(lt?e=>s1(e).mkdir===iE.mkdir:()=>!1,{sync:lr}),li=(e,t)=>{e=s7(e);let r=s1(t);return lr(r)?s6(e,r):s3(e,r);},lo=Object.assign(async(e,t)=>{e=s7(e);let r=s1(t);return ln(r)?s8(e,r):s2(e,r);},{mkdirpSync:li,mkdirpNative:s8,mkdirpNativeSync:s6,mkdirpManual:s2,mkdirpManualSync:s3,sync:li,native:s8,nativeSync:s6,manual:s2,manualSync:s3,useNative:ln,useNativeSync:lr}),la=ek(te,{isPromise:!0}),ls=ek(tt,{isPromise:!0}),ll=ek(tr,{isPromise:!0});nq=rB("eAXk4"),rV=rB("hHq4F"),nF=rB("6t4SD");const lu=new Map([[23,["Sonoma","14"]],[22,["Ventura","13"]],[21,["Monterey","12"]],[20,["Big Sur","11"]],[19,["Catalina","10.15"]],[18,["Mojave","10.14"]],[17,["High Sierra","10.13"]],[16,["Sierra","10.12"]],[15,["El Capitan","10.11"]],[14,["Yosemite","10.10"]],[13,["Mavericks","10.9"]],[12,["Mountain Lion","10.8"]],[11,["Lion","10.7"]],[10,["Snow Leopard","10.6"]],[9,["Leopard","10.5"]],[8,["Tiger","10.4"]],[7,["Panther","10.3"]],[6,["Jaguar","10.2"]],[5,["Puma","10.1"]]]),lc=ek(function(){let{version:e}=function(e){e=+(e||p(rC).release()).split(".")[0];let[t,r]=lu.get(e)||["Unknown",""];return{name:t,version:r};}();return e.split(".").map(e=>parseInt(e,10));});(io=rB("7KjWO")).DOMImplementation,io.XMLSerializer,ii=rB("7fBnG").DOMParser;const lp=63,ld="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",lf=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,64,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51];class lh{constructor(){}get type(){return this.constructor.TYPE;}castTo(e){return this.type===e.TYPE?this:null;}castAs(e){let t=this.castTo(e);if(!t)throw Error(`Cannot cast type '${this.type}' to '${e.TYPE}'`);return t;}fromXml(e){let{documentElement:t}=tc(e);this.fromXmlElement(t);}}class lm extends lh{static TYPE="boolean";static TAG_NAMES=["true","false"];value=!1;constructor(e=!1){super(),this.value=e;}fromXmlElement(e){switch(!function(e){let{childNodes:t}=e;if(t.length)throw Error("Unexpected child nodes: "+e.tagName);}(e),e.tagName){case"true":this.value=!0;return;case"false":this.value=!1;return;default:throw tf(e,"");}}toXml(e=null,t=0){var r;let n=(null!==(r=null==e?void 0:e.indentString)&&void 0!==r?r:" ").repeat(t);return this.value?`${n}<true/>`:`${n}<false/>`;}}class lg extends lh{static TYPE="data";static TAG_NAMES=["data"];constructor(e=new Uint8Array(0)){super(),this.value=e;}fromXmlElement(e){var t;tf(e,"data");let r=(null===(t=td(e))||void 0===t?void 0:t.nodeValue)||"";this.value=function(e){let t=e.length,r=[];e:for(let n,i,o,a,s,l,u=0;t>u;){for(;;){if((s=lf[e.charCodeAt(u++)])>=0){n=s;break;}if(u>=t)break e;}for(;;){if((s=lf[e.charCodeAt(u++)])>=0){i=s;break;}if(u>=t)break e;}for(;;){if((s=lf[e.charCodeAt(u++)])>=0){o=s;break;}if(u>=t)break e;}for(;;){if((s=lf[e.charCodeAt(u++)])>=0){a=s;break;}if(u>=t)break e;}switch(l=(n&lp)<<18|(i&lp)<<12|(o&lp)<<6|a&lp,o>lp?a>lp?2:0:a>lp?1:0){case 0:r.push(l>>16&255,l>>8&255,255&l);break;case 1:r.push(l>>16&255,l>>8&255);break;case 2:r.push(l>>16&255);}}return new Uint8Array(r);}(r);}toXml(e=null,t=0){var r,n,i;let o=null!==(r=null==e?void 0:e.newlineString)&&void 0!==r?r:"\n",a=null!==(n=null==e?void 0:e.dataColumns)&&void 0!==n?n:68,s=(null!==(i=null==e?void 0:e.indentString)&&void 0!==i?i:" ").repeat(t),l=`${s}<data>`;if(a>0)for(let e=th(this.value);e;e=e.substring(a))l+=`${o}${s}${e.substring(0,a)}`;else l+=`${o}${s}${th(this.value)}`;return l+`${o}${s}</data>`;}}class lv extends lh{static TYPE="integer";static TAG_NAMES=["integer"];value=0;constructor(e=0){super(),tm(e),this.value=e;}asBigInt(){return BigInt(this.value);}asNumber(){return+this.value;}fromXmlElement(e){var t;tf(e,"integer");let r=(null===(t=td(e))||void 0===t?void 0:t.nodeValue)||"";if(!/^[-+]?[0-9]+$/.test(r))throw Error("Invalid integer data: "+r);let n=+r;this.value=n>9007199254740991||n<-9007199254740991?BigInt(r):n;}toXml(e=null,t=0){var r;let n=(null!==(r=null==e?void 0:e.indentString)&&void 0!==r?r:" ").repeat(t),i=this.value;return tm(i),`${n}<integer>${i}</integer>`;}}class lE extends lh{static TYPE="real";static TAG_NAMES=["real"];value=0;constructor(e=0){super(),this.value=e;}fromXmlElement(e){var t;tf(e,"real");let r=(null===(t=td(e))||void 0===t?void 0:t.nodeValue)||"";if(!/^[-+]?([0-9]+|[0-9]*\.[0-9]+)$/.test(r))throw Error("Invalid real data: "+r);this.value=+r;}toXml(e=null,t=0){var r;let n=(null!==(r=null==e?void 0:e.indentString)&&void 0!==r?r:" ").repeat(t),i=this.value;return`${n}<real>${i}</real>`;}}class lw extends lh{static TYPE="string";static TAG_NAMES=["string"];value="";constructor(e=""){super(),this.value=e;}fromXmlElement(e){var t;tf(e,"string"),this.value=(null===(t=td(e))||void 0===t?void 0:t.nodeValue)||"";}toXml(e=null,t=0){var r;let n=(null!==(r=null==e?void 0:e.indentString)&&void 0!==r?r:" ").repeat(t),i=this.value.replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;");return`${n}<string>${i}</string>`;}}class ly extends lh{static TYPE="array";static TAG_NAMES=["array"];static get CHILD_TAG_NAMES(){if(!i)for(let e of(i=new Map(),[ly,lm,lg,lb,lv,lE,lw]))for(let t of e.TAG_NAMES)i.set(t,e);return i;}value=[];constructor(e=[]){super(),this.value=e;}get length(){return this.value.length;}get(e){let{value:t}=this;return e<this.length?t[e]:null;}getValue(e){let t=this.get(e);if(!t)throw Error("Index out of bounds: "+e);return t;}set(e,t){this.value[e]=t;}push(...e){this.value.push(...e);}pop(){return this.value.pop()||null;}popValue(){let e=this.pop();if(!e)throw Error("Cannot pop empty array");return e;}shift(){return this.value.shift()||null;}shiftValue(){let e=this.shift();if(!e)throw Error("Cannot shift empty array");return e;}fromXmlElement(e){tf(e,"array");let t=tp(e);this.value=t.map(e=>this.childFromXmlElement(e));}childFromXmlElement(e){let{tagName:t}=e,{CHILD_TAG_NAMES:r}=this.constructor,n=r.get(t)||null;if(!n)throw Error("Unknown element type: "+t);let i=new n();return i.fromXmlElement(e),i;}toXml(e=null,t=0){var r,n;let i=null!==(r=null==e?void 0:e.newlineString)&&void 0!==r?r:"\n",o=(null!==(n=null==e?void 0:e.indentString)&&void 0!==n?n:" ").repeat(t),a=this.value;if(!a.length)return`${o}<array/>`;let s=`${o}<array>`;for(let r of a)s+=`${i}${r.toXml(e,t+1)}`;return s+`${i}${o}</array>`;}}class lb extends lh{static TYPE="dict";static TAG_NAMES=["dict"];static get CHILD_TAG_NAMES(){if(!o)for(let e of(o=new Map(),[ly,lm,lg,lb,lv,lE,lw]))for(let t of e.TAG_NAMES)o.set(t,e);return o;}value=new Map();constructor(e=new Map()){super(),this.value=e;}get size(){return this.value.size;}has(e){return this.value.has(e);}get(e){return this.value.get(e)||null;}getValue(e){let t=this.get(e);if(!t)throw Error("Key is null: "+e);return t;}set(e,t){this.value.set(e,t);}delete(e){this.value.delete(e);}clear(){this.value.clear();}fromXmlElement(e){tf(e,"dict");let t=tp(e),r=t.length;if(r%2)throw Error("Uneven number of child elements: "+r);let n=new Map();for(let e=0;r>e;e+=2){var i;let r=t[e],o=t[e+1];tf(r,"key");let a=(null===(i=td(r))||void 0===i?void 0:i.nodeValue)||"",s=this.childFromXmlElement(o);n.set(a,s);}this.value=n;}childFromXmlElement(e){let{tagName:t}=e,{CHILD_TAG_NAMES:r}=this.constructor,n=r.get(t)||null;if(!n)throw Error("Unknown element type: "+t);let i=new n();return i.fromXmlElement(e),i;}toXml(e=null,t=0){var r,n;let i=null!==(r=null==e?void 0:e.indentString)&&void 0!==r?r:" ",o=null!==(n=null==e?void 0:e.newlineString)&&void 0!==n?n:"\n",a=i.repeat(t),s=this.value;if(!s.size)return`${a}<dict/>`;let l=i.repeat(t+1),u=`${a}<dict>`;for(let[r,n]of s){let i=r.replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;");u+=`${o}${l}<key>${i}</key>${o}${n.toXml(e,t+1)}`;}return u+`${o}${a}</dict>`;}}const lx='<?xml version="1.0" encoding="UTF-8"?>',lS='<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">';class lD{static XML_DECLARATION=lx;static XML_DOCTYPE=lS;xmlDeclaration=lx;xmlDoctype=lS;value=null;constructor(e=null){this.value=e;}getValue(){let{value:e}=this;if(!e)throw Error("Value is null");return e;}valueCastTo(e){let{value:t}=this;return t?t.castTo(e):null;}valueCastAs(e){let t=this.valueCastTo(e);if(!t)throw Error(`Cannot cast value to type '${e.TYPE}'`);return t;}fromXml(e){let{declaration:t,doctype:r,documentElement:n}=tc(e);this.fromXmlElement(n,t,r);}fromXmlElement(e,t=null,r=null){let{tagName:n}=e;if("plist"!==n)throw Error("Unexpected root plist tag name: "+n);let i=tp(e),o=i.length;if(o>1)throw Error("Multiple root plist child tag: "+o);this.value=o?this.childFromXmlElement(i[0]):null,this.xmlDeclaration=t||"",this.xmlDoctype=r||"";}childFromXmlElement(e){return new lb().childFromXmlElement(e);}toXml(e=null){var t,r;let n=null!==(t=null==e?void 0:e.indentRoot)&&void 0!==t&&t,i=null!==(r=null==e?void 0:e.newlineString)&&void 0!==r?r:"\n",o=this.value;return[...[this.xmlDeclaration,this.xmlDoctype].filter(e=>e),'<plist version="1.0">',...(o?[o.toXml(e,n?1:0)]:[]),"</plist>",""].join(i);}}class lT{constructor(e=null){this.hdiutil=(e?e.hdiutil:null)||"hdiutil";}async attach(e,t=null,r=null){let n=await this._runAttach(this._argsAttach(e,t)),{eject:i,ejectSync:o}=this._createEjects(n);return{devices:n,eject:i,ejectSync:o};}attachSync(e,t=null,r=null){let n=this._runAttachSync(this._argsAttach(e,t)),{eject:i,ejectSync:o}=this._createEjects(n);return{devices:n,eject:i,ejectSync:o};}async eject(e,t=null){await this._runEject(this._argsEject(e,t));}ejectSync(e,t=null){this._runEjectSync(this._argsEject(e,t));}_argsAttach(e,t=null){let r=["attach","-plist"];return t&&(t.readonly&&r.push("-readonly"),t.nobrowse&&r.push("-nobrowse")),r.push(this._fileArg(e)),r;}_argsEject(e,t=null){let r=["eject"];return t&&t.force&&r.push("-force"),r.push(this._fileArg(e)),r;}async _runAttach(e){let t=[],r=(0,rI.spawn)(this.hdiutil,e);r.stdout.on("data",e=>{t.push(e);});let n=await new Promise((e,t)=>{r.once("exit",e),r.once("error",t);});if(n)throw Error("Attach failed: hdiutil exit code: "+n);return this._parseDevices(Buffer.concat(t).toString());}_runAttachSync(e){let{status:t,error:r,stdout:n}=(0,rI.spawnSync)(this.hdiutil,e);if(r)throw r;if(t)throw Error("Attach failed: hdiutil exit code: "+t);return this._parseDevices(n.toString());}async _runEject(e){let t=(0,rI.spawn)(this.hdiutil,e),r=await new Promise((e,r)=>{t.once("exit",e),t.once("error",r);});if(r)throw Error("Eject failed: hdiutil exit code: "+r);}_runEjectSync(e){let{status:t,error:r}=(0,rI.spawnSync)(this.hdiutil,e);if(r)throw r;if(t)throw Error("Eject failed: hdiutil exit code: "+t);}_fileArg(e){return e.startsWith("-")?"./"+e:e;}_parseDevices(e){let t=new lD();t.fromXml(e);let r=t.valueCastAs(lb).getValue("system-entities").castAs(ly),n=[];for(let e of r.value){let t=e.castAs(lb),r=t.getValue("dev-entry").castAs(lw).value,i=t.getValue("potentially-mountable").castAs(lm).value,o=t.get("content-hint"),a=t.get("unmapped-content-hint"),s=t.get("volume-kind"),l=t.get("mount-point"),u={devEntry:r,potentiallyMountable:i};o&&(u.contentHint=o.castAs(lw).value),a&&(u.unmappedContentHint=a.castAs(lw).value),s&&(u.volumeKind=s.castAs(lw).value),l&&(u.mountPoint=l.castAs(lw).value),n.push(u);}return n;}_findRootDevice(e){let t=null;for(let r of e)(null===t||t.devEntry.length>r.devEntry.length)&&(t=r);return t;}_createEjects(e,t=null){var r;let n=null===(r=this._findRootDevice(e))||void 0===r?void 0:r.devEntry,i=null,o={eject:async(e=null)=>{n&&(await this.eject(n,e),n="",i&&process.off("exit",i));},ejectSync:(e=null)=>{n&&(this.ejectSync(n,e),n="",i&&process.off("exit",i));}};return t&&(i=()=>{o.ejectSync(t);},process.once("exit",i)),o;}}let lR=((rg={}).DIRECTORY="directory",rg.FILE="file",rg.SYMLINK="symlink",rg.RESOURCE_FORK="resource-fork",rg);rL.promises;const{finished:lN,pipeline:lI}=rL.promises,{O_WRONLY:lA,O_SYMLINK:lO}=rx.constants,lC=!!lO,l_=!!lO,lL=(0,r$.promisify)(rU.pipeline);class l${_triggering=!1;_triggered=!1;_extracted=!1;constructor(e){var t,r,n,i,o,a,s,l,u,c,p,d;this.archive=e.archive,this.type=e.type,this.pathRaw=e.pathRaw,this.path=tg(e.pathRaw),this.size=null!==(t=e.size)&&void 0!==t?t:null,this.sizeComp=null!==(r=e.sizeComp)&&void 0!==r?r:null,this.mode=null!==(n=e.mode)&&void 0!==n?n:null,this.uid=null!==(i=e.uid)&&void 0!==i?i:null,this.gid=null!==(o=e.gid)&&void 0!==o?o:null,this.uname=null!==(a=e.uname)&&void 0!==a?a:null,this.gname=null!==(s=e.gname)&&void 0!==s?s:null,this.atime=null!==(l=e.atime)&&void 0!==l?l:null,this.mtime=null!==(u=e.mtime)&&void 0!==u?u:null,this._readData=null!==(c=e.readData)&&void 0!==c?c:null,this._readRsrc=null!==(p=e.readRsrc)&&void 0!==p?p:null,this._readSymlink=null!==(d=e.readSymlink)&&void 0!==d?d:null;}get hasNamedVolume(){return this.archive.hasNamedVolumes;}get volumeName(){if(this.hasNamedVolume){let{path:e}=this;return e.substring(0,e.indexOf("/"));}return null;}get volumePath(){let{path:e}=this;return this.hasNamedVolume?e.substring(e.indexOf("/")+1):e;}async stream(){return this._beginExtract(),this._stream();}async read(){this._beginExtract();let e=await this._stream();return e?tE(e):null;}async extract(e,t={}){this._beginExtract(),await this._extract(e,t);}async trigger(e){let t;if(this._triggered)throw Error("Archive entry already triggered");this._triggered=this._triggering=!0;try{t=await e(this);}finally{this._triggering=!1;}return t;}async setAttributes(e,t=null,r={}){let n=null===t?e:t,{ignorePermissions:i,ignoreTimes:o}=r,{type:a,mode:s,atime:l,mtime:u}=this,c=!1;switch(a){case lR.FILE:case lR.RESOURCE_FORK:case lR.DIRECTORY:break;case lR.SYMLINK:c=!0;break;default:throw Error("Unsupported path type: "+a);}let p=l||u||null,d=u||l||null;if(!i&&null!==s){let e=c?tw:tD;await e(n,511&s);}if(!o&&p&&d){let e=c?tb:ty;await e(n,p,d);}}_beginExtract(){if(!this._triggering)throw Error("Archive entry is not active");if(this._extracted)throw Error("Archive entry can only be extracted once");this._extracted=!0;}_errorExtractPathExists(e){return Error("Extract path already exists: "+e);}_errorNoResourceFork(e){return Error("Extract path for resource fork not a file: "+e);}async _extract(e,t){this.archive.afterReadSetAttributesRemove(e);let{type:r}=this;switch(r){case lR.FILE:await this._extractFile(e,t);break;case lR.RESOURCE_FORK:await this._extractResourceFork(e,t);break;case lR.DIRECTORY:await this._extractDirectory(e,t);break;case lR.SYMLINK:await this._extractSymlink(e,t);break;default:throw Error("Unsupported path type: "+r);}}async _extractStreamToFile(e,t,r){let{replace:n}=r;if(await tN(e)){if(n)await iX(e,{recursive:!0,force:!0});else throw this._errorExtractPathExists(e);}else await iC((0,rN.dirname)(e),{recursive:!0});await iV(e,Buffer.alloc(0));let i=await t();i&&(await lL(i,(0,rx.createWriteStream)(e))),await this.setAttributes(e,null,r);}async _extractFile(e,t){let r=this._readData;if(!r)throw Error("Internal error");await this._extractStreamToFile(e,r,t);}async _extractResourceFork(e,t){let r=this._readRsrc;if(!r)throw Error("Internal error");if(t.resourceForkAsFile){await this._extractStreamToFile(e,r,t);return;}let n=await tN(e);if(!n||!n.isFile())throw this._errorNoResourceFork(e);let i=tv(e),o=await r();o?await lL(o,(0,rx.createWriteStream)(i)):await iV(i,Buffer.alloc(0)),await this.setAttributes(e,null,t);}async _extractDirectory(e,t){let{replace:r}=t,n=await tN(e);if(n){if(!n.isDirectory()){if(r)await iX(e,{recursive:!0,force:!0}),await iC(e,{recursive:!0});else throw this._errorExtractPathExists(e);}}else await iC(e,{recursive:!0});this.archive.afterReadSetAttributes(e,this,{...t});}async _extractSymlink(e,t){let r=this._readSymlink;if(!r)throw Error("Internal error");let{replace:n,symlinkAsFile:i}=t;if(await tN(e)){if(n)await iX(e,{recursive:!0,force:!0});else throw this._errorExtractPathExists(e);}else await iC((0,rN.dirname)(e),{recursive:!0});let o=await r();i?await iV(e,o):await tS(e,o),await this.setAttributes(e,null,t);}async _stream(){let{type:e}=this;switch(e){case lR.FILE:return this._streamFile();case lR.RESOURCE_FORK:return this._streamResourceFork();case lR.DIRECTORY:return this._streamDirectory();case lR.SYMLINK:return this._streamSymlink();default:throw Error("Unsupported path type: "+e);}}async _streamFile(){let e=this._readData;if(!e)throw Error("Internal error");return e();}async _streamResourceFork(){let e=this._readRsrc;if(!e)throw Error("Internal error");return e();}async _streamDirectory(){return null;}async _streamSymlink(){let e=this._readSymlink;if(!e)throw Error("Internal error");let t=new rU.Readable({read(){e().then(e=>{t.push(e),t.push(null);},e=>{t.emit("error",e);});}});return t;}}class lP{static FILE_EXTENSIONS=null;static HAS_NAMED_VOLUMES=!1;Entry=l$;_reading=!1;_afterReadSetAttributes=null;constructor(e){this.path=e;}get fileExtensions(){return this.constructor.FILE_EXTENSIONS||null;}get hasNamedVolumes(){return this.constructor.HAS_NAMED_VOLUMES;}afterReadSetAttributes(e,t,r={}){let n=this._afterReadSetAttributes;if(!n)throw Error("Archive after read callbacks can only be added while reading");n.set((0,rN.resolve)(e),{path:e,entry:t,options:r});}afterReadSetAttributesRemove(e){let t=this._afterReadSetAttributes;if(!t)throw Error("Archive after read callbacks can only be removed while reading");t.delete((0,rN.resolve)(e));}async read(e){if(this._reading)throw Error("Archive already being read");this._reading=!0,this._afterReadSetAttributes=new Map();try{await this._read(e),await this._afterReadSetAttributesTrigger();}finally{this._afterReadSetAttributes=null,this._reading=!1;}}async _afterReadSetAttributesTrigger(){let e=this._afterReadSetAttributes;if(!e)return;let t=[];for(let[r]of e)t.push(r);for(let r of(t.sort((e,t)=>t.length-e.length),t)){let t=e.get(r);if(!t)throw Error("Internal error");let{entry:n,path:i,options:o}=t;await n.setAttributes(i,r,o);}}}const lk={ignoreUnreadableDirectories:!0},lU={force:!0};class lF extends l${sizeComp=null;uname=null;gname=null;constructor(e){super(e),this.archive=e.archive,this.size=e.size,this.mode=e.mode,this.uid=e.uid,this.gid=e.gid,this.atime=e.atime,this.mtime=e.mtime;}get rsrcPathRaw(){return tv(this.pathRaw);}get rsrcPath(){return tg(tv(this.path));}}class lM extends lP{static FILE_EXTENSIONS=[".dmg",".iso",".cdr"];static HAS_NAMED_VOLUMES=!0;Entry=lF;mounterMac=new lT();nobrowse=!1;constructor(e){super(e);}async read(e){await super.read(e);}async _read(e){let{mounterMac:t,nobrowse:r}=this,n=async(t,r,n)=>{let i=n.isSymbolicLink()?lR.SYMLINK:n.isDirectory()?lR.DIRECTORY:n.isFile()?lR.FILE:null;if(null===i)return!0;let{size:o,mode:a,uid:s,gid:l,atime:u,mtime:c}=n,p=i===lR.FILE?async()=>(0,rx.createReadStream)(t):null,d=i===lR.SYMLINK?async()=>tx(t):null,f=new this.Entry({archive:this,type:i,pathRaw:r,size:o,mode:a,uid:s,gid:l,atime:u,mtime:c,readData:p,readSymlink:d}),h=await f.trigger(e);if(!1===h)return null;if(null===h)return!1;if(i===lR.FILE){let n=tv(t),i=await tN(n);if(i){let t=i.size,o=async()=>(0,rx.createReadStream)(n),p=new this.Entry({archive:this,type:lR.RESOURCE_FORK,pathRaw:r,size:t,mode:a,uid:s,gid:l,atime:u,mtime:c,readRsrc:o}),d=await p.trigger(e);if(!1===d)return null;if(null===d)return!1;}}return!0;},i=await t.attach(this.path,{nobrowse:r,readonly:!0},lU);try{for(let e of i.devices){let{mountPoint:t}=e;if(!t)continue;let r=(0,rN.basename)(t);await tI(t,async(e,i)=>{let o=(0,rN.join)(t,e),a=(0,rN.join)(r,e);return n(o,a,i);},lk);}}finally{await i.eject(lU);}}}ia=rB("lORAA"),n2=rB("6v1Be"),nW=rB("bHzmH"),rV=rB("hHq4F"),nq=rB("eAXk4"),rV=rB("hHq4F"),rH=rB("dAuy6"),nF=rB("6t4SD"),is=iv.resolve(__dirname,"../../src/gcc");const lj={13:{releaseName:"13.2.0-16.0.6-11.0.0-ucrt-r1",fileSuffix:"13.2.0-mingw-w64ucrt-11.0.0-r1"},"13.2-ucrt":{releaseName:"13.2.0-16.0.6-11.0.0-ucrt-r1",fileSuffix:"13.2.0-mingw-w64ucrt-11.0.0-r1"},"13.2-ucrt-mcf":{releaseName:"13.2.0mcf-16.0.6-11.0.1-ucrt-r2",fileSuffix:"13.2.0-mingw-w64ucrt-11.0.1-r2"},"13.2-msvcrt":{releaseName:"13.2.0-16.0.6-11.0.1-msvcrt-r1",fileSuffix:"13.2.0-mingw-w64msvcrt-11.0.1-r1"},"13.1-ucrt":{releaseName:"13.1.0posix-16.0.3-11.0.0-ucrt-r1",fileSuffix:"13.1.0-mingw-w64ucrt-11.0.0-r1"},"13.1-msvcrt":{releaseName:"13.1.0posix-16.0.3-11.0.0-msvcrt-r1",fileSuffix:"13.1.0-mingw-w64msvcrt-11.0.0-r1"},12:{releaseName:"12.3.0-16.0.4-11.0.0-ucrt-r1",fileSuffix:"12.3.0-mingw-w64ucrt-11.0.0-r1"},"12.3.0-ucrt":{releaseName:"12.3.0-16.0.4-11.0.0-ucrt-r1",fileSuffix:"12.3.0-mingw-w64ucrt-11.0.0-r1"},"12.3.0-msvcrt":{releaseName:"12.3.0-16.0.4-11.0.0-msvcrt-r1",fileSuffix:"12.3.0-mingw-w64msvcrt-11.0.0-r1"},"12.2.0-ucrt":{releaseName:"12.2.0-14.0.6-10.0.0-ucrt-r2",fileSuffix:"12.2.0-mingw-w64ucrt-10.0.0-r2"},"12.2.0-msvcrt":{releaseName:"12.2.0-14.0.6-10.0.0-msvcrt-r2",fileSuffix:"12.2.0-mingw-w64msvcrt-10.0.0-r2"},"12.1.0-ucrt":{releaseName:"12.1.0-14.0.4-10.0.0-ucrt-r2",fileSuffix:"12.1.0-mingw-w64ucrt-10.0.0-r2"},"12.1.0-msvcrt":{releaseName:"12.1.0-14.0.6-10.0.0-msvcrt-r3",fileSuffix:"12.1.0-llvm-14.0.6-mingw-w64msvcrt-10.0.0-r3"},11:{releaseName:"11.3.0-14.0.3-10.0.0-ucrt-r3",fileSuffix:"11.3.0-mingw-w64ucrt-10.0.0-r3"},"11.3.0-ucrt":{releaseName:"11.3.0-14.0.3-10.0.0-ucrt-r3",fileSuffix:"11.3.0-mingw-w64ucrt-10.0.0-r3"},"11.3.0-msvcrt":{releaseName:"11.3.0-14.0.3-10.0.0-msvcrt-r3",fileSuffix:"11.3.0-mingw-w64msvcrt-10.0.0-r3"},"11.2.0-ucrt":{releaseName:"11.2.0-9.0.0-ucrt-r5",fileSuffix:"11.2.0-mingw-w64ucrt-9.0.0-r5"},"11.2.0-msvcrt":{releaseName:"11.2.0-9.0.0-msvcrt-r5",fileSuffix:"11.2.0-mingw-w64msvcrt-9.0.0-r5"},10:{releaseName:"10.5.0-11.0.1-msvcrt-r1",fileSuffix:"10.5.0-mingw-w64msvcrt-11.0.1-r1"},"10.5.0-msvcrt":{releaseName:"10.5.0-11.0.1-msvcrt-r1",fileSuffix:"10.5.0-mingw-w64msvcrt-11.0.1-r1"},"10.3.0":{releaseName:"10.3.0-12.0.0-9.0.0-r2",fileSuffix:"10.3.0-llvm-12.0.0-mingw-w64-9.0.0-r2"},"10.2.0":{releaseName:"10.2.0-7.0.0-r4",fileSuffix:"10.2.0-llvm-10.0.1-mingw-w64-7.0.0-r4"},9:{releaseName:"9.4.0-9.0.0-r1",fileSuffix:"9.4.0-mingw-w64-9.0.0-r1"},"9.4.0":{releaseName:"9.4.0-9.0.0-r1",fileSuffix:"9.4.0-mingw-w64-9.0.0-r1"}};it=rB("2kZmC"),ia=rB("lORAA"),nq=rB("eAXk4"),rV=rB("hHq4F"),nq=rB("eAXk4"),il=iv.resolve(__dirname,"../../src/kcov"),rH=rB("dAuy6"),rV=rB("hHq4F"),nF=rB("6t4SD"),nq=rB("eAXk4"),nP=rB("1o3Gj"),rV=rB("hHq4F"),nq=rB("eAXk4"),nP=rB("1o3Gj");const lq=rP.env["ProgramFiles(x86)"],lB=[rP.env["ProgramFiles(x86)"],rP.env.ProgramFiles],lG=["Enterprise","Professional","Community","BuildTools"],lH=["2022","2019","2017"],lV={2022:"17.0",2019:"16.0",2017:"15.0",2015:"14.0",2013:"12.0"};iu=tz;const lX=`${lq}\\Microsoft Visual Studio\\Installer`;ic=tY,ip=function(e,t,r,n,i,o){if("win32"!=rP.platform){nP.info("This is not a Windows virtual environment, bye!");return;}rP.env.PATH+=iv.delimiter+lX;let a={win32:"x86",win64:"x64",x86_64:"x64","x86-64":"x64"};e.toLowerCase()in a&&(e=a[e.toLowerCase()]);var s=[e];"true"==n&&s.push("uwp"),t&&s.push(t),r&&s.push("-vcvars_ver="+r),"true"==i&&s.push("-vcvars_spectre_libs=spectre");let l=`"${tY(o)}" ${s.join(" ")}`;nP.debug("vcvars command-line: "+l);let u=rS.execSync(`set && cls && ${l} && cls && set`,{shell:"cmd"}).toString().split("\f"),c=u[0].split("\r\n"),p=u[1].split("\r\n"),d=u[2].split("\r\n"),f=p.filter(e=>!!e.match(/^\[ERROR.*\]/)&&!e.match(/Error in script usage. The correct usage is:$/));if(f.length>0)throw Error("invalid parameters\r\n"+f.join("\r\n"));let h={};for(let e of c){let[t,r]=e.split("=");h[t]=r;}for(let e of(nP.startGroup("Environment variables"),d)){if(!e.includes("="))continue;let[t,r]=e.split("=");r!==h[t]&&(nP.info("Setting "+t),-1!=["PATH","INCLUDE","LIB","LIBPATH"].indexOf(t.toUpperCase())&&(r=r.split(";").filter(function(e,t,r){return r.indexOf(e)===t;}).join(";")),nP.exportVariable(t,r));}nP.endGroup(),nP.info("Configured Developer Command Prompt");},rV=rB("hHq4F"),nF=rB("6t4SD");class lz extends Error{constructor(e){super(e),this.name="TimeoutError";}}class lY extends Error{constructor(e){super(),this.name="AbortError",this.message=e;}}const lK=e=>void 0===globalThis.DOMException?new lY(e):new DOMException(e),lW=e=>{let t=void 0===e.reason?lK("This operation was aborted."):e.reason;return t instanceof Error?t:lK(t);},lQ=12e5,{readFile:lJ,writeFile:lZ,chmod:l0}=iE.promises;(rv=id||(id={}))[rv.All=0]="All",rv[rv.ClangFormat=1]="ClangFormat",rv[rv.Core=2]="Core",n3=rB("hlfY9"),rV=rB("hHq4F"),nq=rB("eAXk4");const l1=function(e){let t=new Set(e);for(let r of e)t.add(/^\d+/.exec(r)[0]),t.add(/^\d+\.\d+/.exec(r)[0]);return t;}(["3.5.0","3.5.1","3.5.2","3.6.0","3.6.1","3.6.2","3.7.0","3.7.1","3.8.0","3.8.1","3.9.0","3.9.1","4.0.0","4.0.1","5.0.0","5.0.1","5.0.2","6.0.0","6.0.1","7.0.0","7.0.1","7.1.0","8.0.0","8.0.1","9.0.0","9.0.1","10.0.0","10.0.1","11.0.0","11.0.1","11.1.0","12.0.0","12.0.1","13.0.0","13.0.1","14.0.0","14.0.1","14.0.2","14.0.3","14.0.4","14.0.5","14.0.6","15.0.0","15.0.1","15.0.2","15.0.3","15.0.4","15.0.5","15.0.6","15.0.7","16.0.0","16.0.1","16.0.2","16.0.3","16.0.4","16.0.5","16.0.6","17.0.1","17.0.2","17.0.3","17.0.4","17.0.5","17.0.6"]),l3=new Set(["10.0.1","15.0.5","15.0.6","17.0.5"]),l2=new Set(["3.5.1","3.6.1","3.6.2","3.7.1","3.8.1","3.9.1","6.0.1","7.0.1","7.1.0","8.0.1","11.0.1","11.1.0","12.0.1","15.0.4","15.0.5","15.0.6","16.0.0","16.0.1","16.0.2","16.0.3","16.0.4","16.0.5","16.0.6","17.0.1","17.0.2","17.0.3","17.0.4","17.0.5","17.0.6"]),l4=new Map(),l5={"3.5.0":"-ubuntu-14.04","3.5.1":"","3.5.2":"-ubuntu-14.04","3.6.0":"-ubuntu-14.04","3.6.1":"-ubuntu-14.04","3.6.2":"-ubuntu-14.04","3.7.0":"-ubuntu-14.04","3.7.1":"-ubuntu-14.04","3.8.0":"-ubuntu-16.04","3.8.1":"-ubuntu-16.04","3.9.0":"-ubuntu-16.04","3.9.1":"-ubuntu-16.04","4.0.0":"-ubuntu-16.04","5.0.0":"-ubuntu16.04","5.0.1":"-ubuntu-16.04","5.0.2":"-ubuntu-16.04","6.0.0":"-ubuntu-16.04","6.0.1":"-ubuntu-16.04","7.0.0":"-ubuntu-16.04","7.0.1":"-ubuntu-18.04","7.1.0":"-ubuntu-14.04","8.0.0":"-ubuntu-18.04","9.0.0":"-ubuntu-18.04","9.0.1":"-ubuntu-16.04","10.0.0":"-ubuntu-18.04","10.0.1":"-ubuntu-16.04","11.0.0":"-ubuntu-20.04","11.0.1":"-ubuntu-16.04","11.1.0":"-ubuntu-16.04","12.0.0":"-ubuntu-20.04","12.0.1":"-ubuntu-16.04","13.0.0":"-ubuntu-20.04","13.0.0-ubuntu-16.04":"-ubuntu-16.04","13.0.0-ubuntu-20.04":"-ubuntu-20.04","13.0.1":"-ubuntu-18.04","13.0.1-ubuntu-18.04":"-ubuntu-18.04","14.0.0":"-ubuntu-18.04","15.0.2":"-rhel86","15.0.5":"-ubuntu-18.04","15.0.6":"-ubuntu-18.04","16.0.0":"-ubuntu-18.04","16.0.2":"-ubuntu-22.04","16.0.3":"-ubuntu-22.04","16.0.4":"-ubuntu-22.04","17.0.2":"-ubuntu-22.04","17.0.4":"-ubuntu-22.04","17.0.5":"-ubuntu-22.04","17.0.6":"-ubuntu-22.04"},l6="17.0.6";ih=iv.resolve(__dirname,"../../src/llvm");const l8=ek(t8,{isPromise:!0}),l9=ek(t7,{isPromise:!0}),l7=ek(re,{isPromise:!0});rH=rB("dAuy6"),nq=rB("eAXk4"),rV=rB("hHq4F"),nF=rB("6t4SD"),im=iv.resolve(__dirname,"../../src/msvc"),nq=rB("eAXk4"),nq=rB("eAXk4"),rV=rB("hHq4F"),nF=rB("6t4SD"),nq=rB("eAXk4");let ue=!1;const ut={nala:ra,cmake:e_,ninja:tq,python:eG,vcpkg:rp,bazel:ep,conan:function(e,t,r){return e8("conan",e);},meson:function(e,t,r){return e8("meson",e);},gcovr:function(e,t,r){return e8("gcovr",e);},opencppcoverage:rs,llvm:t6,gcc:tP,choco:ei,brew:et,powershell:ru,ccache:function(e,t,r){switch(process.platform){case"win32":return eo("ccache",e);case"darwin":return en("ccache",e);case"linux":if(ea())return ed("ccache",e);if(es())return el([{name:"ccache",version:e}]);if(ec())return H([{name:"ccache",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}},sccache:function(e,t,r){switch(process.platform){case"win32":return eo("sccache",e);case"linux":case"darwin":return en("sccache",e);default:throw Error("Unsupported platform");}},doxygen:tC,graphviz:tl,cppcheck:ta,clangtidy:function(e,t,r){return t9(e,t,r);},clangformat:function(e,t,r){return t9(e,t,r,id.ClangFormat);},msvc:ri,vcvarsall:tK,kcov:tX,make:rn,task:function(e,t,r){return eD("task",e,rc,t,r);},sevenzip:eT},ur=Object.keys(ut),un=["compiler","architecture","timeout",...ur];nP=rB("1o3Gj"),rV=rB("hHq4F"),it=rB("2kZmC"),rh(process.argv).then(e=>{process.exitCode=e;}).catch(e=>{(0,rV.error)("main() panicked!"),(0,rV.error)(e),process.exitCode=1;});
//# sourceMappingURL=setup-cpp.js.map