#!/usr/bin/env node let A,e,t,r,n,i,o,s;function a(A,e,t,r){Object.defineProperty(A,e,{get:t,set:r,enumerable:!0,configurable:!0});}function l(A){return A&&A.__esModule?A.default:A;}function E(A,e,t){if("function"==typeof e&&(t=e,e={}),!t){if("function"!=typeof Promise)throw TypeError("callback not provided");return new Promise(function(t,r){E(A,e||{},function(A,e){A?r(A):t(e);});});}tC(A,e||{},function(A,r){A&&("EACCES"===A.code||e&&e.ignoreErrors)&&(A=null,r=!1),t(A,r);});}function c(A,e){let t;let r=A.options.env||process.env,n=process.cwd(),i=null!=A.options.cwd,o=i&&void 0!==process.chdir&&!process.chdir.disabled;if(o)try{process.chdir(A.options.cwd);}catch(A){}try{t=tQ.sync(A.command,{path:r[tI({env:r})],pathExt:e?rF.delimiter:void 0});}catch(A){}finally{o&&process.chdir(n);}return t&&(t=rF.resolve(i?A.options.cwd:"",t)),t;}function g(A,e){return Object.assign(Error(`${e} ${A.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${A.command}`,path:A.command,spawnargs:A.args});}function h(A,e){return nv&&1===A&&!e.file?g(e.original,"spawn"):null;}function Q(A,e,t){let r=tg(A,e,t),n=r9.spawn(r.command,r.args,r.options);return tm.hookChildProcess(n,r),n;}function u(A){let e="string"==typeof A?"\n":"\n".charCodeAt(),t="string"==typeof A?"\r":"\r".charCodeAt();return A[A.length-1]===e&&(A=A.slice(0,-1)),A[A.length-1]===t&&(A=A.slice(0,-1)),A;}function C(A={}){let{env:e=process.env,platform:t=process.platform}=A;return"win32"!==t?"PATH":Object.keys(e).reverse().find(A=>"PATH"===A.toUpperCase())||"Path";}function I(A){return null!==A&&"object"==typeof A&&"function"==typeof A.pipe;}function B(A){return I(A)&&!1!==A.writable&&"function"==typeof A._write&&"object"==typeof A._writableState;}async function d(A,e){if(!A)throw Error("Expected a stream");let{maxBuffer:t}=e={maxBuffer:1/0,...e},r=tS(e);return await new Promise((e,n)=>{let i=A=>{A&&r.getBufferedLength()<=tk.MAX_LENGTH&&(A.bufferedData=r.getBufferedValue()),n(A);};(async()=>{try{await iD(A,r),e();}catch(A){i(A);}})(),r.on("data",()=>{r.getBufferedLength()>t&&i(new ib());});}),r.getBufferedValue();}function f(A,e,t){let r;let n=i1(A,e,t),i=iV(A,e),o=iP(A,e);iz(o,n.options),ip(n.options);try{r=l(r6).spawn(n.file,n.args,n.options);}catch(e){let A=new(l(r6).ChildProcess)();return iY(A,Promise.reject(n4({error:e,stdout:"",stderr:"",all:"",command:i,escapedCommand:o,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}))),A;}let s=iO(r),a=id(r,n.options,s),E=iy(r,n.options,a),c={isCanceled:!1};r.kill=ig.bind(null,r.kill.bind(r)),r.cancel=iI.bind(null,r,c);let g=tw(async()=>{let[{error:A,exitCode:e,signal:t,timedOut:s},a,l,g]=await iT(r,n.options,E),h=i2(n.options,a),Q=i2(n.options,l),u=i2(n.options,g);if(A||0!==e||null!==t){let a=n4({error:A,exitCode:e,signal:t,stdout:h,stderr:Q,all:u,command:i,escapedCommand:o,parsed:n,timedOut:s,isCanceled:c.isCanceled||!!n.options.signal&&n.options.signal.aborted,killed:r.killed});if(!n.options.reject)return a;throw a;}return{command:i,escapedCommand:o,exitCode:0,stdout:h,stderr:Q,all:u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};});return iv(r,n.options),r.all=iL(r,n.options),iR(r),iY(r,g),r;}function p(A,e,t){let r;let n=i1(A,e,t),i=iV(A,e),o=iP(A,e);iz(o,n.options);let s=iS(n.options);try{r=l(r6).spawnSync(n.file,n.args,{...n.options,input:s});}catch(A){throw n4({error:A,stdout:"",stderr:"",all:"",command:i,escapedCommand:o,parsed:n,timedOut:!1,isCanceled:!1,killed:!1});}let a=i2(n.options,r.stdout,r.error),E=i2(n.options,r.stderr,r.error);if(r.error||0!==r.status||null!==r.signal){let A=n4({stdout:a,stderr:E,error:r.error,signal:r.signal,exitCode:r.status,command:i,escapedCommand:o,parsed:n,timedOut:r.error&&"ETIMEDOUT"===r.error.code,isCanceled:!1,killed:null!==r.signal});if(!n.options.reject)return A;throw A;}return{command:i,escapedCommand:o,exitCode:0,stdout:a,stderr:E,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};}function y(){var A,e;return((null===(A=(e=process).getuid)||void 0===A?void 0:A.call(e))===0||!!process.env.CI)&&null!==l(tr).sync("sudo",{nothrow:!0});}function m(A,e=[],t=i8){return y()?function(A,e){let[t,...r]=i_(A);return p(t,r,e);}(R(A,e),t):p(A,D(e),t);}function w(A,e=[],t=i8){return y()?function(A,e){let[t,...r]=i_(A);return f(t,r,e);}(R(A,e),t):f(A,D(e),t);}function R(A,e){return"sudo "+D([A,...e]).join(" ");}function D(A){return A.map(A=>`'${A}'`);}async function b(A){if(("linux"===process.platform||"darwin"===process.platform)&&y()&&void 0!==process.env.SUDO_USER){let e=l(rv).statSync(A).isDirectory();await w("chown",[...(e?["-R"]:[]),process.env.SUDO_USER,A],i8);}}function k(A){let e=function(){if(y()&&"string"==typeof process.env.SUDO_USER&&""!==process.env.SUDO_USER)return"darwin"===process.platform?(0,rF.join)("/Users/",process.env.SUDO_USER):(0,rF.join)("/home/",process.env.SUDO_USER);{let A=(0,rS.homedir)();if(""===A)return;return A;}}();return void 0===e?A:A.replace(i3,e);}function N(A,e,t,r){return new(t||(t=Promise))(function(n,i){function o(A){try{a(r.next(A));}catch(A){i(A);}}function s(A){try{a(r.throw(A));}catch(A){i(A);}}function a(A){var e;A.done?n(A.value):((e=A.value)instanceof t?e:new t(function(A){A(e);})).then(o,s);}a((r=r.apply(A,e||[])).next());});}function S(A,e){function t(t){return function(a){return function(t){if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,t[0]&&(s=0)),s;)try{if(r=1,n&&(i=2&t[0]?n.return:t[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,t[1])).done)return i;switch(n=0,i&&(t=[2&t[0],i.value]),t[0]){case 0:case 1:i=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,n=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===t[0]||2===t[0])){s=0;continue;}if(3===t[0]&&(!i||t[1]>i[0]&&t[1]"PATH"===A.toUpperCase())||"Path";}function M(A,e,t){let r;let n=oP(A,e,t),i=oL(A,e),o=oU(A,e);oJ(o,n.options),oh(n.options);try{r=l(r6).spawn(n.file,n.args,n.options);}catch(e){let A=new(l(r6).ChildProcess)();return oN(A,Promise.reject(oe({error:e,stdout:"",stderr:"",all:"",command:i,escapedCommand:o,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}))),A;}let s=oS(r),a=og(r,n.options,s),E=oQ(r,n.options,a),c={isCanceled:!1};r.kill=oi.bind(null,r.kill.bind(r)),r.cancel=oE.bind(null,r,c);let g=tw(async()=>{let[{error:A,exitCode:e,signal:t,timedOut:s},a,l,g]=await oD(r,n.options,E),h=o_(n.options,a),Q=o_(n.options,l),u=o_(n.options,g);if(A||0!==e||null!==t){let a=oe({error:A,exitCode:e,signal:t,stdout:h,stderr:Q,all:u,command:i,escapedCommand:o,parsed:n,timedOut:s,isCanceled:c.isCanceled||!!n.options.signal&&n.options.signal.aborted,killed:r.killed});if(!n.options.reject)return a;throw a;}return{command:i,escapedCommand:o,exitCode:0,stdout:h,stderr:Q,all:u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};});return oy(r,n.options),r.all=om(r,n.options),oI(r),oN(r,g),r;}function G(e,t=["-NoProfile","-NoLogo","-NonInteractive"],r={stdio:"inherit"}){return M(function(){if(void 0===A){let e=l(tr).sync("pwsh",{nothrow:!0});null!==e&&(A=e);let t=l(tr).sync("powershell",{nothrow:!0});null!==t&&(A=t);}if(void 0===A)throw Error("Could not find powershell");return A;}(),[...t,"-c",e],r);}async function Y(A,e,t=oj){let r=function(A,e=!1){let t=e?l(t1)(A):A;return l(t2)(t,'"',"\\");}(null!=e?e:"",t.shouldEscapeSpace);try{if(e5.GITHUB_ACTIONS)try{if(t.shouldAddOnlyIfNotDefined&&void 0!==process.env[A]){(0,tz.info)(`Environment variable ${A} is already defined. Skipping.`);return;}(0,tz.exportVariable)(A,r);}catch(e){(0,e6.error)(e),await H(A,r,t);}else await H(A,r,t);}catch(e){(0,e6.error)(e),(0,tz.setFailed)(`Failed to export environment variable ${A}=${r}. You should add it manually.`);}}async function O(A){if(!function(A){if(oX.some(e=>e.test(A))){var e,t;return(null!==(t=null===(e=process.env.PATH)||void 0===e?void 0:e.split(rF.delimiter))&&void 0!==t?t:[]).includes(A);}return!1;}(A)){process.env.PATH=`${A}${rF.delimiter}${process.env.PATH}`;try{if(e5.GITHUB_ACTIONS)try{(0,tz.addPath)(A);}catch(e){(0,e6.error)(e),await J(A);}else await J(A);}catch(e){(0,e6.error)(e),(0,tz.setFailed)(`Failed to add ${A} to the percistent PATH. You should add it manually.`);}}}async function H(A,e,t){let r=null!=e?e:"";switch(process.platform){case"win32":if(t.shouldAddOnlyIfNotDefined&&void 0!==process.env[A]){(0,tz.info)(`Environment variable ${A} is already defined. Skipping.`);return;}await G(`[Environment]::SetEnvironmentVariable('${A}', '${r}', "User")`),(0,tz.info)(`${A}='${r}' was set in the environment.`);return;case"linux":case"darwin":await V(),t.shouldAddOnlyIfNotDefined?((0,rv.appendFileSync)(o$,` if [ -z "\${${A}}" ]; then export ${A}="${r}"; fi `),(0,tz.info)(`if not defined ${A} then ${A}="${r}" was added to "${o$}`)):((0,rv.appendFileSync)(o$,` export ${A}="${r}" `),(0,tz.info)(`${A}="${r}" was added to "${o$}`));return;}process.env[A]=r;}async function J(A){switch(process.platform){case"win32":await G(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${A};$USER_PATH", "User")`),(0,tz.info)(`"${A}" was added to the PATH.`);return;case"linux":case"darwin":await V(),(0,rv.appendFileSync)(o$,` export PATH="${A}:$PATH" `),(0,tz.info)(`"${A}" was added to "${o$}"`);return;default:return;}}async function V(){if(oZ)return;let A="# Automatically Generated by setup-cpp\nexport SOURCE_CPPRC=0";if((await(0,t0.pathExists)(o$))&&(0,rv.readFileSync)(o$,"utf8").includes(A))return;(0,rv.appendFileSync)(o$,` ${A} `),(0,tz.info)(`Added ${A} to ${o$}`);let e=` # source .cpprc if SOURCE_CPPRC is not set to 0 if [[ "$SOURCE_CPPRC" != 0 && -f "${o$}" ]]; then source "${o$}"; fi `;try{let A=k("~/.profile");(0,rv.appendFileSync)(A,e),(0,tz.info)(`${e} was added to ${A}`);let t=k("~/.bashrc");(0,rv.appendFileSync)(t,e),(0,tz.info)(`${e} was added to ${t}`);}catch(A){(0,e6.warning)(`Failed to add ${e} to .profile or .bashrc. You should add it manually: ${A}`);}oZ=!0;}async function P(){if(await(0,t0.pathExists)(o$)){let A=[...new Set((0,rv.readFileSync)(o$,"utf-8").split("\n").reverse())].reverse();(0,rv.writeFileSync)(o$,A.join("\n")),await b(o$);}}async function _(A,e=!1){let t;let r=j()?"nala":"apt-get";for(let{name:e,version:t}of A)(0,e6.info)(`Installing ${e} ${null!=t?t:""} via ${r}`);process.env.DEBIAN_FRONTEND="noninteractive",(!oz||e)&&(X(r),oz=!0),o0||(await $(r),o0=!0);let n=[...new Set(A.flatMap(A=>{var e;return null!==(e=A.repositories)&&void 0!==e?e:[];}))];if(0!==n.length){for(let A of n)m("add-apt-repository",["-y",A]);X(r);}let i=await Promise.all(A.map(A=>q(A.name,A.version)));try{m(r,["install","--fix-broken","-y",...i]);}catch(A){if("stderr"in A){let e=A.stderr;o1.some(A=>e.includes(A))&&((0,e6.warning)(`Failed to install packages ${i}. Retrying...`),m(r,["install","--fix-broken","-y",...i]));}else throw A;}return{binDir:"/usr/bin/"};}async function W(A,e){if(void 0!==e&&""!==e){let{stdout:t}=await f("apt-cache",["search","--names-only",`^${(0,t4.default)(A)}-${(0,t4.default)(e)}$`]);if(""!==t.trim())return 0;try{let{stdout:t}=await f("apt-cache",["show",`${A}=${e}`]);if(""===t.trim())return 1;}catch{}}try{let{stdout:e}=await f("apt-cache",["show",A]);if(""!==e.trim())return 2;}catch{}return 3;}async function q(A,e){switch(await W(A,e)){case 0:return`${A}-${e}`;case 1:return`${A}=${e}`;case 2:return A;default:throw Error(`Could not find package ${A} ${null!=e?e:""}`);}}function j(){return null!==l(tr).sync("nala",{nothrow:!0});}function X(A){m(A,"nala"!==A?["update","-y"]:["update"]);}async function $(A){m(A,["install","--fix-broken","-y","software-properties-common","apt-utils","ca-certificates","gnupg"]);let e=[K(["3B4FE6ACC0B21F32","40976EAF437D05B5"],"setup-cpp-ubuntu-archive.gpg"),K(["1E9377A2BA9EF27F"],"launchpad-toolchain.gpg")];"nala"===A&&e.push(Y("LANG","C.UTF-8",{shouldAddOnlyIfNotDefined:!0}),Y("LC_ALL","C.UTF-8",{shouldAddOnlyIfNotDefined:!0})),await Promise.all(e);}function Z(){m("gpg",["-k"]);}async function K(A,e,t="keyserver.ubuntu.com"){try{let r="/etc/apt/trusted.gpg.d/"+e;return(await(0,t0.pathExists)(r))||(Z(),await Promise.all(A.map(async A=>{await w("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+r,"--keyserver",t,"--recv-keys",A]),await w("chmod",["644",r]);}))),r;}catch(A){(0,e6.warning)(`Failed to add apt key via server ${t}: ${A}`);return;}}async function z(A,e){let t="/etc/apt/trusted.gpg.d/"+A;return(await(0,t0.pathExists)(t))||(Z(),await _([{name:"curl"},{name:"ca-certificates"}],void 0),await f("curl",["-s",e,"-o","/tmp/"+A]),m("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+t,"--import","/tmp/"+A]),m("chmod",["644",t])),t;}async function AA(A,e,t=40){return e5.GITHUB_ACTIONS?w("update-alternatives",["--install","/usr/bin/"+A,A,e,t.toString()]):(await V(),oK(o$,` if [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${A} ${A} ${e} ${t}; fi `));}async function Ae(A){try{let{stdout:e}=await f("dpkg",["-l",A]);if("string"!=typeof e)return!1;return e.split("\n").some(A=>A.startsWith("ii"));}catch{return!1;}}async function At(A,t,r){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeof e)return{binDir:e};let n=l(tr).sync("brew",{nothrow:!0});if(null!==n)return{binDir:e=(0,t8.dirname)(n)};let i=l(rF).join((0,rS.tmpdir)(),"setup-cpp","brew");await(0,t3.mkdirP)(i),p("curl",["-LJO","https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh"],{cwd:i});let o=(0,rF.join)(i,"install.sh");return"linux"===process.platform&&(0,rv.readFileSync)(o,"utf-8").replace("#!/bin/bash",""),p("/bin/bash",[o],{stdio:"inherit",env:{NONINTERACTIVE:"1"}}),e=Ar(),await O(e),{binDir:e};}function Ar(){return"linux"===process.platform?"/home/linuxbrew/.linuxbrew/bin/":"/usr/local/bin/";}async function An(A,e,t=[]){(0,tz.info)(`Installing ${A} ${null!=e?e:""} via brew`),o2&&null!==l(tr).sync("brew",{nothrow:!0})||(await At("","",process.arch),o2=!0);let r=Ar();return p((0,t8.join)(r,"brew"),["install",void 0!==e&&""!==e?`${A}@${e}`:A,...t],{stdio:"inherit"}),{binDir:r};}async function Ai(A,e,r){var n;if("win32"!==process.platform)return;if("string"==typeof t)return{binDir:t};let i=l(tr).sync("choco",{nothrow:!0});if(null!==i)return{binDir:t=(0,t8.dirname)(i)};let o="powershell.exe",s=l(tr).sync(`${process.env.SystemRoot}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`,{nothrow:!0});null!==s&&(o=s),p(o,["-NoProfile","-InputFormat","None","-ExecutionPolicy","Bypass","-Command","[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))"],{stdio:"inherit"});let a=`${process.env.ALLUSERSPROFILE}\\chocolatey\\bin`;await O(a);let E=l(tr).sync("choco",{nothrow:!0});if(t=null!==E?(0,t8.dirname)(E):`${null!==(n=process.env.ChocolateyInstall)&&void 0!==n?n:"C:/ProgramData/chocolatey"}/bin`,await(0,t0.pathExists)(t))return{binDir:t};}async function Ao(A,e,t=[]){var r;(0,e6.info)(`Installing ${A} ${null!=e?e:""} via chocolatey`),o4&&null!==l(tr).sync("choco",{nothrow:!0})||(await Ai("","",process.arch),o4=!0);let n=process.env.PATH,i={...process.env};if(delete i.TMP,delete i.TEMP,delete i.Path,i.PATH=n,void 0!==e&&""!==e)p("choco",["install","-y",A,"--version="+e,...t],{env:i,extendEnv:!1,stdio:"inherit"});else try{p("choco",["install","-y",A,...t],{env:i,extendEnv:!1,stdio:"inherit"});}catch(e){if(e.message.includes("exit code 3010"))(0,e6.info)(`${A} might require a reboot for the completion of the installation.`);else throw e;}let o=`${null!==(r=process.env.ChocolateyInstall)&&void 0!==r?r:"C:/ProgramData/chocolatey"}/bin`;return await O(o),{binDir:o};}async function As(A){for(let{name:e,version:t}of A)(0,e6.info)(`Installing ${e} ${null!=t?t:""} via dnf`);return m("dnf",["-y","install",...(await Promise.all(A.map(A=>Aa(A.name,A.version))))]),{binDir:"/usr/bin/"};}async function Aa(A,e){if(void 0!==e&&""!==e){let{stdout:t}=await f("dnf",["search","-q",`${A}-${e}`]);if(""!==t.trim())return`${A}-${e}`;{let{stdout:t}=await f("dnf",["search","-q",`${A}${e}`]);if(""!==t.trim())return`${A}${e}`;(0,e6.warning)(`Failed to install ${A} ${e} via dnf, trying without version`);}}return A;}async function Al(A,e,t){switch(process.platform){case"win32":return Ao("bazelisk",A);case"darwin":return An("bazelisk",A);case"linux":if(U())throw Error("installing bazel on Arch linux is not supported yet");if(L())return await As([{name:"dnf-plugins-core"}]),m("dnf",["copr","enable","vbatts/bazel"]),As([{name:"bazel4"}]);if(x()){let e=await z("bazel-archive-keyring.gpg","https://bazel.build/bazel-release.pub.gpg");return m("bash",["-c",`echo "deb [arch=amd64 signed-by=${e}] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list`]),_([{name:"bazel",version:A}],!0);}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function AE(A,e,t){(0,e6.info)(`Installing ${A} ${null!=e?e:""} via pacman`);let r="pacman";if("yay"===t&&null===l(tr).sync("yay",{nothrow:!0}))throw Error(`yay is needed for ${A}, but it is not installed, please install it manually first`);o9||"yay"===t||(m(r,["-Sy","--noconfirm"]),o9=!0),o8||"yay"===t||(m(r,["-S","--noconfirm","base-devel"]),o8=!0);let n=A=>"yay"===t?p(t,["-S","--noconfirm",A]):m(null!=t?t:r,["-S","--noconfirm",A]);if(void 0!==e&&""!==e){if((await Ac(r,A)).includes(e))try{n(`${A}=${e}`);}catch{n(`${A}${e}`);}else(0,e6.info)(`Failed to install ${A} ${e} via pacman, trying without version`),n(A);}else n(A);return{binDir:"/usr/bin/"};}async function Ac(A,e){let t=[];try{let{stdout:r}=await f(A,["-Si",e]);for(let A of r.matchAll(o3))t.push(A[1]);}catch(A){(0,e6.warning)(`Failed to get available versions for ${e}: ${A}`);}return t;}function Ag(A,e){let t=[];e=e||se.arch();let r=st.join(AB(),A);if(o7.existsSync(r)){for(let A of o7.readdirSync(r))if(AC(A)){let n=st.join(r,A,e||"");o7.existsSync(n)&&o7.existsSync(`${n}.complete`)&&t.push(A);}}return t;}function Ah(A){return rt(this,void 0,void 0,function*(){return A||(A=st.join(Ad(),ss.default())),yield o6.mkdirP(A),A;});}function AQ(A,e,t){return rt(this,void 0,void 0,function*(){let r=st.join(AB(),A,sn.clean(e)||e,t||"");o5.debug("destination "+r);let n=`${r}.complete`;return yield o6.rmRF(r),yield o6.rmRF(n),yield o6.mkdirP(r),r;});}function Au(A,e,t){let r=st.join(AB(),A,sn.clean(e)||e,t||""),n=`${r}.complete`;o7.writeFileSync(n,""),o5.debug("finished caching tool");}function AC(A){let e=sn.clean(A)||"";o5.debug("isExplicit: "+e);let t=null!=sn.valid(e);return o5.debug("explicit? "+t),t;}function AI(A,e){let t="";o5.debug(`evaluating ${A.length} versions`),A=A.sort((A,e)=>sn.gt(A,e)?1:-1);for(let r=A.length-1;r>=0;r--){let n=A[r];if(sn.satisfies(n,e)){t=n;break;}}return t?o5.debug("matched: "+t):o5.debug("match not found"),t;}function AB(){let A=process.env.RUNNER_TOOL_CACHE||"";return rY.ok(A,"Expected RUNNER_TOOL_CACHE to be defined"),A;}function Ad(){let A=process.env.RUNNER_TEMP||"";return rY.ok(A,"Expected RUNNER_TEMP to be defined"),A;}function Af(A,e){let t=nr[A];return void 0!==t?t:e;}function Ap(A,e,t){switch(process.platform){case"win32":return Ao("7zip",A);case"darwin":return An("p7zip",A);case"linux":if(U())return AE("p7zip",A);if(L())return As([{name:"p7zip",version:A},{name:"p7zip-plugins",version:A}]);if(x())return _([{name:"p7zip-full",version:A}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function Ay(A,e){return await f(await Am(),["x",A,"-o"+e,"-y"],{stdio:"inherit"}),await b(e),e;}async function Am(){return void 0===r&&(null===l(tr).sync("7z",{nothrow:!0})&&(await Ap("","",process.arch)),r="7z"),r;}function Aw(A,e){return Ay(A,e);}function AR(A,e){return Ay(A,e);}async function AD(A,e,t=["--strip-components=0"]){try{await(0,t3.mkdirP)(e);}catch{}try{await f("tar",["xf",A,"-C",e,...t],{stdio:"inherit"});}catch(t){"win32"===process.platform&&t.message.includes("Can't create '\\\\?\\C:")&&(0,e6.warning)(`Failed to extract symlink ${A} to ${e}. Ignoring this symlink.`);}return b(e),e;}function Ab(A,e){if(!A||!e)throw Error("retry-as-promised must be passed a callback and a options set");let t={$current:"$current"in(e="number"==typeof e?{max:e}:e)?e.$current:1,max:e.max,timeout:e.timeout||void 0,match:e.match?Array.isArray(e.match)?e.match:[e.match]:[],backoffBase:void 0===e.backoffBase?100:e.backoffBase,backoffExponent:e.backoffExponent||1.1,report:e.report,name:e.name||A.name||"unknown"};return t.match&&!Array.isArray(t.match)&&(t.match=[t.match]),t.report&&t.report("Trying "+t.name+" #"+t.$current+" at "+new Date().toLocaleTimeString(),t),new Promise(function(e,r){let n,i,o;t.timeout&&(n=setTimeout(function(){i&&clearTimeout(i),r(new sg(t.name+" timed out",o));},t.timeout)),Promise.resolve(A({current:t.$current})).then(e).then(function(){n&&clearTimeout(n),i&&clearTimeout(i);}).catch(function(s){n&&clearTimeout(n),i&&clearTimeout(i),o=s,t.report&&t.report(s&&s.toString()||s,t,s);var a=t.$current(0,t5.downloadTool)(s),{name:s,max:4,backoffBase:2e3,report:A=>(0,e6.info)(A)});sh||((0,e6.info)("Installing extraction dependencies"),"linux"===process.platform&&(U()?await Promise.all([AE("unzip"),AE("tar"),AE("xz")]):L()?await As([{name:"unzip"},{name:"tar"},{name:"xz"}]):x()&&(await _([{name:"unzip"},{name:"tar"},{name:"xz-utils"}]))),sh=!0),(0,e6.info)(`Extracting ${t} to ${r}`),await(null==g?void 0:g(t,r));}catch(t){throw Error(`Failed to download ${A} ${e} ${n} from ${s}: ${t}`);}return(0,e6.info)(`Add ${Q} to PATH`),await O(Q),e5.GITHUB_ACTIONS&&"string"==typeof process.env.RUNNER_TOOL_CACHE&&(await(0,t5.cacheDir)(r,A,e)),{installDir:h,binDir:Q};}function AN(A,e,t){var r;let n=null!==(r=l(rE)(A))&&void 0!==r?r:A;switch(e){case"win32":{let e;let r=l(rc)(n,"v3.19.6");e=["ia32","x86","i386","x32"].includes(t)?r?"win32-x86":"windows-i386":r?"win64-x64":"windows-x86_64";let i=`cmake-${A}-${e}`;return{binRelativeDir:"bin/",binFileName:(0,t8.addExeExt)("cmake"),extractedFolderName:i,extractFunction:AR,url:`https://github.com/Kitware/CMake/releases/download/v${A}/${i}.zip`};}case"darwin":{let e=l(rc)(n,"v3.19.1"),t=`cmake-${A}-${e?"Darwin-x86_64":"macos-universal"}`;return{binRelativeDir:"CMake.app/Contents/bin/",binFileName:(0,t8.addExeExt)("cmake"),extractedFolderName:t,extractFunction:t5.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${A}/${t}.tar.gz`};}case"linux":{let e;let r=l(rc)(n,"v3.19.8");e=["aarch64"].includes(t)?r?"Linux-aarch64":"linux-aarch64":r?"Linux-x86_64":"linux-x86_64";let i=`cmake-${A}-${e}`;return{binRelativeDir:"bin/",binFileName:(0,t8.addExeExt)("cmake"),extractedFolderName:i,extractFunction:t5.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${A}/${i}.tar.gz`};}default:throw Error(`Unsupported platform '${e}'`);}}function AS(A,e,t){return Ak("cmake",A,AN,e,t);}function AF(A){var e=A.length;return e?1===e?[A[0]]:2===e?[A[0],A[1]]:3===e?[A[0],A[1],A[2]]:rQ.call(A,0):[];}function Av(A,e){return A===e||A!=A&&e!=e;}function AL(A,e){var t={};for(var r in A)t[r]=A[r];for(var r in e)t[r]=e[r];return t;}function AU(A,e){if(void 0===e&&(e={}),"function"==typeof A&&A.isMemoized)return AU(A.fn,AL(A.options,e));if("function"!=typeof A)throw TypeError("You must pass a function to `memoize`.");var t=e.isEqual,r=e.isMatchingKey,n=e.isPromise,i=void 0!==n&&n,o=e.maxSize,s=e.onCacheAdd,a=e.onCacheChange,l=e.onCacheHit,E=e.transformKey,c=AL({isEqual:void 0===t?Av:t,isMatchingKey:r,isPromise:i,maxSize:void 0===o?1:o,onCacheAdd:s,onCacheChange:a,onCacheHit:l,transformKey:E},function(A){var e={};for(var t in A)rh[t]||(e[t]=A[t]);return e;}(e)),g=new ru(c),h=g.keys,Q=g.values,u=g.canTransformKey,C=g.shouldCloneArguments,I=g.shouldUpdateOnAdd,B=g.shouldUpdateOnChange,d=g.shouldUpdateOnHit,f=function(){var e=C?AF(arguments):arguments;u&&(e=E(e));var t=h.length?g.getKeyIndex(e):-1;if(-1!==t)d&&l(g,c,f),t&&(g.orderByLru(h[t],Q[t],t),B&&a(g,c,f));else{var r=A.apply(this,arguments),n=C?e:AF(arguments);g.orderByLru(n,r,h.length),i&&g.updateAsyncCache(f),I&&s(g,c,f),B&&a(g,c,f);}return Q[0];};return f.cache=g,f.fn=A,f.isMemoized=!0,f.options=c,f;}function Ax(A,e){return new Promise(t=>{try{let r=(0,rx.request)(A,{method:e},A=>{t(void 0!==A.statusCode&&A.statusCode>=200&&A.statusCode<=399);});r.on("error",A=>{t(!1);}),r.end();}catch{t(!1);}});}function AT(A,e){return Array.from(A).filter(A=>/^\d+\.\d+\.\d+$/.test(A)&&A.startsWith(e)).sort((A,e)=>{try{return l(rB)(A,e);}catch(t){return A.localeCompare(e);}}).reverse();}async function AM(A,e,t,r){if("linux"===e&&t.includes("ubuntu")){let A=await r(e,t);if(null!==A&&(await rI(A)))return[t,A];}if(!A.has(t))throw Error(`Unsupported target! (platform='${e}', version='${t}'). Try one of the following: ${JSON.stringify(A)}`);let n=[];for(let i of AT(A,t)){let A=await r(e,i);if(null!==A){if(await rI(A))return[i,A];n.push(A);}}throw Error(`Unsupported target! (platform='${e}', version='${t}'). Try one of the following: ${JSON.stringify(A)}`);}async function AG(A,e=sN){try{var t,r;let n=await(0,rn.getExecOutput)(A,["--version"]),i=n.stdout||n.stderr||"",o=null===(t=i.trim().match(e))||void 0===t?void 0:t[1];return null!==(r=l(rE)(o))&&void 0!==r?r:void 0;}catch(A){console.error(A);return;}}async function AY(A,e,t=sN){let r=await AG(A,t);return void 0!==r&&""!==e&&-1!==l(rB)(r,e);}function AO(){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 AH(A,e,t){let r=await AP(A,e,t);l(rY)(void 0!==r.bin);let n=r.bin;if(void 0===(await Aj(n)))throw Error("pip was not installed correctly");return await AJ(n),await AV(n),r;}async function AJ(A){try{if(!(await A5(A)))try{await A3(A,"pipx",void 0,{upgrade:!0,usePipx:!1});}catch(A){if(null===er("pipx",!1))throw Error("pipx was not installed correctly "+A);}await f(A,["-m","pipx","ensurepath"],{stdio:"inherit"}),await A3(A,"venv",void 0,{upgrade:!1,usePipx:!1});}catch(A){(0,e6.warning)(`Failed to install pipx: ${A.toString()}. Ignoring...`);}}async function AV(A){try{await A3(A,"setuptools",void 0,{upgrade:!0,isLibrary:!0,usePipx:!1}),await A3(A,"wheel",void 0,{upgrade:!0,isLibrary:!0,usePipx:!1});}catch(A){(0,e6.warning)(`Failed to install setuptools or wheel: ${A.toString()}. Ignoring...`);}}async function AP(A,e,t){let r;let n=await AW(e);if(void 0!==n){let A=(0,t8.dirname)(n);r={bin:n,installDir:A,binDir:A};}else{if(e5.GITHUB_ACTIONS)try{(0,e6.info)("Installing python in GitHub Actions");let{setupActionsPython:i}=await no("fEioR");await i(A,e,t),n=await AW(e);let o=(0,t8.dirname)(n);r={bin:n,installDir:o,binDir:o};}catch(A){(0,e6.warning)(A.toString());}void 0===r&&(r=await A_(e,A));}return(void 0===n||void 0===r.bin)&&(n=await AW(e),r.bin=n),r;}async function A_(A,e){let t;switch(process.platform){case"win32":{A?await Ao("python3",e,["--params=/InstallDir:"+A]):await Ao("python3",e);let r=await AW(A),n=(0,t8.dirname)(r);await O(n),t={installDir:n,binDir:n,bin:r};break;}case"darwin":{t=await An("python3",e);let A=await f("brew",["--prefix","python"],{stdio:"pipe"}),r=(0,t8.join)(A.stdout,"libexec","bin");await O(r);break;}case"linux":if(U())t=await AE("python",e);else if(L())t=await As([{name:"python3",version:e}]);else if(x())t=await _([{name:"python3",version:e},{name:"python-is-python3"}]);else throw Error("Unsupported linux distributions");break;default:throw Error("Unsupported platform");}return t;}async function AW(A){for(let e of["python3","python"]){let t=await Aq(e,A);if(void 0!==t)return t;}}async function Aq(A,e){try{var t;if(void 0!==e){let t=(0,t8.join)(e,(0,t8.addExeExt)(A));if((await(0,t0.pathExists)(t))&&(await AY(t,sF.python)))return t;}for(let e of null!==(t=await l(tr)(A,{nothrow:!0,all:!0}))&&void 0!==t?t:[])if(await AY(e,sF.python))return e;}catch{}}async function Aj(A){let e=await AX();return void 0===e?((0,e6.info)("pip was not found. Installing pip"),await AZ(A),AX()):e;}async function AX(){for(let A of["pip3","pip"]){let e=await A$(A);if(void 0!==e)return e;}}async function A$(A){try{var e;for(let t of null!==(e=await l(tr)(A,{nothrow:!0,all:!0}))&&void 0!==e?e:[])if(null!==t&&(await AY(t,sF.pip)))return t;}catch{}}async function AZ(A){(await AK(A))||(await er("pip"),await AK(A));}async function AK(A){try{return await f(A,["-m","ensurepip","-U","--upgrade"],{stdio:"inherit"}),!0;}catch(e){(0,e6.info)(e.toString());try{return await f(A,["-m","pip","install","--upgrade","pip"],{stdio:"inherit"}),!0;}catch(A){(0,e6.info)(A.toString());}}return!1;}async function Az(A){let e=[];"linux"===process.platform?e.push("/home/runner/.local/bin/"):"darwin"===process.platform&&e.push("/usr/local/bin/");let t=(await(0,rn.getExecOutput)(`${A} -c "import sys;print(sys.base_exec_prefix);"`)).stdout.trim();return e.push((0,t8.join)(t,"Scripts"),(0,t8.join)(t,"Scripts","bin"),(0,t8.join)(t,"bin")),[...new Set(e)];}function A0(A,e,t=null){return A1(e)&&"linux"===process.platform&&null!==t&&A in sv?function(A,e){let t=A[0],r=Object.keys(e).map(A=>parseInt(A,10)).sort((A,e)=>e-A).find(A=>t>=A);return void 0===r?"":e[r];}(t,sv[A]):A1(e)&&A in sS?sS[A]:"true"===e?"":null!=e?e:"";}function A1(A){return"true"===A||void 0===A;}async function A2(){var A,e;if("linux"!==process.platform)return[];let t=await(A="lsb_release",e=["-a"],new Promise((t,r)=>{r9.execFile(A,e,{encoding:"utf8",shell:!1},(n,i,o)=>{if(n){if("errno"in n&&"ENOENT"===n.code){t(null);return;}r(Error(`Could not execute \`${A} ${e.join(" ")}\`: ${n} (stderr=${o})`));return;}t(i);});}));if(null===t)return[];let r=null,n=null,i=!1;for(let A of t.split("\n")){let e=A.match(/^Distributor ID:\s*(.+)$/);if(null!==e){if("Ubuntu"!==e[1])return[];i=!0;}let t=A.match(/^Description:\s*Ubuntu\s+(\d+)\.(\d+)(?:\.(\d+))?/);t&&(r=t);let o=A.match(/^Release:\s*(\d+)\.(\d+)(?:\.(\d+))?$/);if(o&&(n=o),i&&r&&n)break;}if(!i)return[];for(let A of[r,n])if(A){let e=[A[1],A[2]];return A[3]&&e.push(A[3]),e.map(A=>parseInt(A,10));}return[];}async function A4(){try{if(!x())return null;{try{null===l(tr).sync("lsb_release",{nothrow:!0})&&(await _([{name:"lsb-release"}]));}catch{return A9();}let A=await(0,rf.getUbuntuVersion)();if(0===A.length)return A9();return A;}}catch(A){return(0,e6.warning)(A.toString()),null;}}function A9(){if(!("version"in l(rS)&&"function"==typeof l(rS).version))return null;let A=l(rS).version().split("."),e=parseInt(A[0].replace("#",""),10);return[e,parseInt(A[1].replace("~",""),10),parseInt(A[2].split("-")[0],10)];}async function A8(A,e,t={}){return A3(await sM(),A,e,t);}async function A3(A,e,t,r={}){let{usePipx:n=!0,user:i=!0,upgrade:o=!1,isLibrary:s=!1}=r,a=n&&!s&&(await A5(A)),l=a?"pipx":"pip";if(await ee(A,e))try{(0,tz.info)(`Installing ${e} ${null!=t?t:""} via ${l}`);let r=void 0!==t&&""!==t?`${e}==${t}`:e,n=process.env;a&&i&&(n.PIPX_HOME=await sx(),n.PIPX_BIN_DIR=await sT()),p(A,["-m",l,...(o?a?["upgrade"]:["install","--upgrade"]:["install"]),...(!a&&i?["--user"]:[]),r],{stdio:"inherit",env:n});}catch(A){if((0,tz.info)(`Failed to install ${e} via ${l}: ${A}.`),(await er(e))===null)throw Error(`Failed to install ${e} via ${l}: ${A}.`);}else if((await er(e))===null)throw Error(`Failed to install ${e} as it was not found via ${l} or the system package manager`);let E=await sL(A),c=await et(E,e);return await O(c),{binDir:c};}async function A5(A){return 0===(await f(A,["-m","pipx","--help"],{stdio:"ignore",reject:!1})).exitCode;}async function A6(){let A=process.env.PIPX_HOME;if(void 0!==A)return A;let e=k("~/.local/pipx");if(await(0,t0.pathExists)(e))return e;switch(process.platform){case"win32":A=k("~/AppData/Local/pipx");break;case"darwin":A=k("~/Library/Application Support/pipx");break;default:A=k("~/.local/share/pipx");}return await sk(A),await sk((0,t8.join)(A,"trash")),await sk((0,t8.join)(A,"shared")),await sk((0,t8.join)(A,"venv")),A;}async function A7(){if(void 0!==process.env.PIPX_BIN_DIR)return process.env.PIPX_BIN_DIR;let A=k("~/.local/bin");return await O(A),await sk(A),A;}async function eA(){let A=(await AH(A0("python",void 0,await sU()),"",process.arch)).bin;if(void 0===A)throw Error("Python binary was not found");return A;}async function ee(A,e){return 0===(await f(A,["-m","pip","-qq","index","versions",e],{stdio:"ignore",reject:!1})).exitCode;}async function et(A,e){let t=(await Promise.all(A.map(A=>(0,t0.pathExists)((0,t8.join)(A,(0,t8.addExeExt)(e)))))).findIndex(A=>A);if(-1!==t)return A[t];let r=l(tr).sync((0,t8.addExeExt)(e),{nothrow:!0});return null!==r?(0,t8.dirname)(r):A[A.length-1];}function er(A,e=!0){if("linux"===process.platform){if((0,tz.info)(`Installing ${A} via the system package manager`),U())return AE(e?"python-"+A:A);if(L())return As([{name:e?"python3-"+A:A}]);if(x())return _([{name:e?"python3-"+A:A}]);}return null;}async function en(A,e,t){switch(process.platform){case"win32":return await Ao("cppcheck",A),{binDir:await ei()};case"darwin":return An("cppcheck",A);case"linux":if(U())return AE("cppcheck",A);if(L())return As([{name:"ccache",version:A}]);if(x())return _([{name:"cppcheck",version:A}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function ei(){let A="C:/Program Files/Cppcheck";return await O(A),A;}async function eo(A,e,t){switch(process.platform){case"win32":return await Ao("graphviz",A),es();case"darwin":return An("graphviz",A);case"linux":if(U())return AE("graphviz",A);if(L())return As([{name:"graphviz",version:A}]);if(x())return _([{name:"graphviz",version:A}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function es(){if("win32"===process.platform){let A="C:/Program Files/Graphviz/bin";return await O(A),{binDir:A};}throw Error("Unsupported platform");}async function ea(A,e){let{ArchiveHdi:t}=await no("aWBYj"),r=new t(A);await r.read(async A=>{await A.extract((0,rF.join)(e,A.path));});}function el(A,e,t){switch(e){case"linux":{let e="doxygen-"+A;return{binRelativeDir:"bin/",binFileName:(0,t8.addExeExt)("doxygen"),extractedFolderName:e,extractFunction:t5.extractTar,url:`https://www.doxygen.nl/files/${e}.linux.bin.tar.gz`};}case"win32":{let e="doxygen-"+A;return{binRelativeDir:"",binFileName:(0,t8.addExeExt)("doxygen"),extractedFolderName:e,extractFunction:AR,url:`https://www.doxygen.nl/files/${e}.windows.x64.bin.zip`};}case"darwin":{let e="Doxygen-"+A;return{binRelativeDir:"Doxygen/Doxygen.app/Contents/Resources/",binFileName:(0,t8.addExeExt)("doxygen"),extractedFolderName:e,extractFunction:ea,url:`https://doxygen.nl/files/${e}.dmg`};}default:throw Error(`Unsupported platform '${e}'`);}}async function eE(A,e,t){switch(process.platform){case"win32":{await l(rg)(()=>Ao("doxygen.install",A),{name:"doxygen.install",max:4,backoffBase:2e3,report:A=>(0,e6.info)(A)});let e=await ec();return await eo(A0("graphviz",void 0),"",t),{binDir:e};}case"darwin":{let A=await An("doxygen",void 0);return sY()[0]>11&&(await eo(A0("graphviz",void 0),"",t)),A;}case"linux":{let r;if(""===A||U()||L()){if(U())r=await AE("doxygen",A);else if(L())return As([{name:"doxygen",version:A}]);else if(x())r=await _([{name:"doxygen",version:A}]);else throw Error("Unsupported linux distributions");}else if(x())try{r=await Ak("doxygen",A,el,e,t);try{await _([{name:"libclang-cpp9"}]);}catch(A){(0,e6.info)("Failed to download libclang-cpp9 that might be needed for running doxygen. "+A);}}catch(A){(0,e6.notice)(`Failed to download doxygen binary. ${A}. Falling back to apt-get.`),r=await _([{name:"doxygen"}]);}else throw Error("Unsupported linux distributions");return await eo(A0("graphviz",void 0,await sU()),"",t),r;}default:throw Error("Unsupported platform");}}async function ec(){if("win32"===process.platform){for(let A of["C:/ProgramData/chocolatey/bin","C:/Program Files/doxygen/bin","C:/Program Files (x86)/doxygen"])if(await(0,t0.pathExists)((0,t8.join)(A,"doxygen.exe")))return await O(A),A;throw Error("Failed to find doxygen binary");}throw Error("Unsupported platform");}async function eg(){if("darwin"===process.platform)try{let A=await(0,rn.getExecOutput)("xcrun --sdk macosx --show-sdk-path"),e=A.stdout||A.stderr;e?await Y("SDKROOT",e.trim()):(0,e6.error)("SDKROOT not set");}catch(A){(0,e6.error)(A);}}function eh(A,e,t){if("win32"===e){let e=sO[A];if(void 0===e)throw Error(`mingw version ${A} is not supported`);return{binRelativeDir:"bin/",binFileName:(0,t8.addExeExt)("g++"),extractedFolderName:"mingw64",extractFunction:Ay,url:`https://github.com/brechtsanders/winlibs_mingw/releases/download/${e.releaseName}/winlibs-${"ia32"===t?"i686":"x86_64"}-posix-seh-gcc-${e.fileSuffix}.7z`};}throw Error(`Unsupported platform '${e}'`);}async function eQ(A,e,t,r=40){let n;switch(process.platform){case"win32":("arm"===t||"arm64"===t)&&(await Ao("gcc-arm-embedded",A));try{n=await Ak("g++",A,eh,e,t);}catch(e){(0,e6.info)(`Failed to download g++ binary. ${e}. Falling back to chocolatey.`),n=await eC(A,t);}break;case"darwin":n=await An("gcc",A);break;case"linux":"x64"===t?U()?n=await AE("gcc",A):L()?n=await As([{name:"gcc",version:A},{name:"gcc-c++",version:A},{name:"libstdc++-devel"}]):x()&&(n=await _([{name:"gcc",version:A,repositories:["ppa:ubuntu-toolchain-r/test"]},{name:"g++",version:A,repositories:["ppa:ubuntu-toolchain-r/test"]}])):((0,e6.info)(`Install g++-multilib because gcc for ${t} was requested`),U()?await AE("gcc-multilib",A):x()&&(await _([{name:"gcc-multilib",version:A,repositories:["ppa:ubuntu-toolchain-r/test"]}])));break;default:throw Error("Unsupported platform for "+t);}if(void 0!==n)return await eI(A,n.binDir,r),n;}async function eu(A,e,t){let r;switch(process.platform){case"win32":case"darwin":return eQ(A,e,t);case"linux":U()?r=await AE("mingw-w64-gcc",A):L()?r=await As([{name:"mingw64-gcc",version:A}]):x()&&(r=await _([{name:"mingw-w64",version:A,repositories:["ppa:ubuntu-toolchain-r/test"]}]));break;default:throw Error("Unsupported platform for "+t);}if(void 0!==r)return r;}async function eC(A,e){var t,r;let n;if(await Ao("mingw",A),"x64"===e&&(await(0,t0.pathExists)("C:/tools/mingw64/bin"))?(n="C:/tools/mingw64/bin",await O(n)):"ia32"===e&&(await(0,t0.pathExists)("C:/tools/mingw32/bin"))?(n="C:/tools/mingw32/bin",await O(n)):(await(0,t0.pathExists)(`${null!==(t=process.env.ChocolateyInstall)&&void 0!==t?t:"C:/ProgramData/chocolatey"}/bin/g++.exe`))&&(n=`${null!==(r=process.env.ChocolateyInstall)&&void 0!==r?r:"C:/ProgramData/chocolatey"}/bin`),void 0!==n)return{binDir:n};}async function eI(A,e,t=40){let r=[];if("win32"===process.platform)r.push(Y("CC",(0,t8.addExeExt)(`${e}/gcc`)),Y("CXX",(0,t8.addExeExt)(`${e}/g++`)));else{var n;let i=l(rp)(null!==(n=l(rE)(A))&&void 0!==n?n:A);i>=5?(r.push(Y("CC",`${e}/gcc-${i}`),Y("CXX",`${e}/g++-${i}`)),x()&&r.push(AA("cc",`${e}/gcc-${i}`,t),AA("cxx",`${e}/g++-${i}`,t),AA("gcc",`${e}/gcc-${i}`,t),AA("g++",`${e}/g++-${i}`,t))):(r.push(Y("CC",`${e}/gcc-${A}`),Y("CXX",`${e}/g++-${A}`)),x()&&r.push(AA("cc",`${e}/gcc-${A}`,t),AA("cxx",`${e}/g++-${A}`,t),AA("gcc",`${e}/gcc-${A}`,t),AA("g++",`${e}/g++-${A}`,t)));}r.push(eg()),e5.GITHUB_ACTIONS&&(await eB()),await Promise.all(r);}async function eB(){let A=(0,t8.join)(ry,"gcc_matcher.json");if(!(await(0,t0.pathExists)(A)))return(0,e6.warning)("the gcc_matcher.json file does not exist in the same folder as setup-cpp.js");(0,e6.info)("::add-matcher::"+A);}function ed(A,e,t){let r=function(A){switch(A){case"win32":return"win";case"darwin":return"mac";case"linux":return"linux";default:throw Error(`Unsupported platform '${A}'`);}}(e);return{binRelativeDir:"",binFileName:(0,t8.addExeExt)("ninja"),extractedFolderName:"",extractFunction:AR,url:`https://github.com/ninja-build/ninja/releases/download/v${A}/ninja-${r}.zip`};}function ef(A,e,t){return Ak("ninja",A,ed,e,t);}function ep(A){return{url:`https://github.com/SimonKagstrom/kcov/releases/download/${A}/kcov-amd64.tar.gz`,extractedFolderName:"",binRelativeDir:"usr/local/bin",binFileName:(0,t8.addExeExt)("kcov"),extractFunction:AD};}function ey(A){return{url:`https://github.com/SimonKagstrom/kcov/archive/refs/tags/${A}.tar.gz`,extractedFolderName:"",binRelativeDir:"build/src",binFileName:(0,t8.addExeExt)("kcov"),extractFunction:em};}async function em(A,e){let t=await AD(A,e,["--strip-components=1"]),r=await ew();"linux"===process.platform&&(U()?await Promise.all([AE("libdwarf"),AE("libcurl-openssl")]):L()?await As([{name:"libdwarf-devel"},{name:"libcurl-devel"}]):x()&&(await _([{name:"libdw-dev"},{name:"libcurl4-openssl-dev"}])));try{if(null!==l(tr).sync("patch",{nothrow:!0})){let A=(0,t8.join)(rm,"gcc13.patch");await f("patch",["-N","-p1","-i",A],{cwd:t,stdio:"inherit"});}else(0,e6.info)("`patch` not found, skipping gcc13.patch, kcov may not build on gcc 13");}catch{}let n=(0,t8.join)(t,"build");return await f(r,["-S",t,"-B",n,"-DCMAKE_BUILD_TYPE=Release","-G","Ninja"],{cwd:t,stdio:"inherit"}),await f(r,["--build",n,"--config","Release"],{cwd:t,stdio:"inherit"}),t;}async function ew(){let A=l(tr).sync("cmake",{nothrow:!0});if(null===A){let{binDir:e}=await AS(A0("cmake",void 0,await sU()),(0,t8.join)(k("~"),"cmake"),"");A=(0,t8.join)(e,"cmake");}return null===l(tr).sync("ninja",{nothrow:!0})&&(await ef(A0("ninja",void 0,await sU()),(0,t8.join)(k("~"),"ninja"),"")),A;}async function eR(A,e,t){var r;let n;if("linux"!==process.platform){(0,e6.info)("Kcov is not supported on non-linux");return;}let i=A.split("-"),o=(r=i[0]).match(/^v/)?r:"v"+r,s=i[1],a=parseInt(o.replace(/^v/,""),10);return 38===a&&(o="v38"),"binary"===s&&a>=39?(n=await Ak("kcov",o,ep,e,t),U()?await AE("binutils"):L()?await As([{name:"binutils"}]):x()&&(await _([{name:"libbinutils"}]))):n=await Ak("kcov",o,ey,e,t),n;}function eD(A){if(Object.values(sX).includes(A));else if(A in sX)return sX[A];return A;}function eb(A){let e;let t=eD(A);if(t){let A=t.split(".")[0]+".9";e=`-version "${t},${A}"`;}else e="-latest";let r=function(A,e){try{return r9.execSync(`vswhere -products * ${e} -prerelease -property installationPath`).toString().trim()+"\\"+A;}catch(A){tz.warning("vswhere failed: "+A);}return null;}("VC\\Auxiliary\\Build\\vcvarsall.bat",e);if(r&&rv.existsSync(r))return tz.info("Found with vswhere: "+r),r;tz.info("Not found with vswhere");let n=A?[function(A){if(Object.keys(sX).includes(A));else for(let[e,t]of Object.entries(sX))if(t===A)return e;return A;}(A)]:sj;for(let A of sW)for(let e of n)for(let t of sq)if(r=`${A}\\Microsoft Visual Studio\\${e}\\${t}\\VC\\Auxiliary\\Build\\vcvarsall.bat`,tz.info("Trying standard location: "+r),rv.existsSync(r))return tz.info("Found standard location: "+r),r;if(tz.info("Not found in standard locations"),r=`${s_}\\Microsoft Visual C++ Build Tools\\vcbuildtools.bat`,rv.existsSync(r))return tz.info("Found VS 2015: "+r),r;throw tz.info("Not found in VS 2015 location: "+r),Error("Microsoft Visual Studio not found");}async function ek(A,e,t,r,n,i,o){void 0!==e&&(await(0,t0.pathExists)(e))&&((0,e6.info)(`Adding ${e} to PATH`),await Y("VCTargetsPath",e)),await rD(function(A){switch(A){case"x32":case"32":case"ia32":return"x86";case"64":return"x64";default:return A;}}(t),n,r,i,o,A);}async function eN(A,e,t,r,n,i,o,s=sZ){(0,tz.startGroup)(`Installing ${A} ${e}`);let a=!1;try{a=await function(A,e){let t;let{milliseconds:r,fallback:n,message:i,customTimers:o={setTimeout:setTimeout,clearTimeout:clearTimeout}}=e,s=new Promise((s,a)=>{if("number"!=typeof r||1!==Math.sign(r))throw TypeError(`Expected \`milliseconds\` to be a positive number, got \`${r}\``);if(e.signal){let{signal:A}=e;A.aborted&&a(sP(A)),A.addEventListener("abort",()=>{a(sP(A));});}if(r===Number.POSITIVE_INFINITY){A.then(s,a);return;}let l=new sH();t=o.setTimeout.call(void 0,()=>{if(n){try{s(n());}catch(A){a(A);}return;}"function"==typeof A.cancel&&A.cancel(),!1===i?s():i instanceof Error?a(i):(l.message=null!=i?i:`Promise timed out after ${r} milliseconds`,a(l));},r),(async()=>{try{s(await A);}catch(A){a(A);}})();}).finally(()=>{s.clear();});return s.clear=()=>{o.clearTimeout.call(void 0,t),t=void 0;},s;}(eS(A,e,t,r,a,n,i),{milliseconds:s,message:`Timeout while installing ${A} ${e}. You can increase the timeout from options`});}catch(e){(0,e6.error)(e),o.push(`${A} failed to install`);}return(0,tz.endGroup)(),a;}async function eS(A,e,t,r,n,i,o){let s;if("vcvarsall"===A)await ek(A0(A,e,t),void 0,r,void 0,void 0,!1,!1);else{let o=ae[A];n=["llvm","clangformat","clangtidy"].includes(A);let a=(0,t8.join)(i,n?"llvm":A);s=await o(A0(A,e,t),a,r);}return o.push(e1(A,s)),n;}async function eF(A,e=0){let t="/usr/lib/llvm-"+A;await _([{name:"curl"}]),await f("curl",["-LJO","https://apt.llvm.org/llvm.sh"],{cwd:"/tmp"});let r=await ev("/tmp/llvm.sh","/tmp/llvm-setup-cpp.sh",A,e);return await _(r),await s0("/tmp/llvm-setup-cpp.sh","755"),await w("bash",["/tmp/llvm-setup-cpp.sh",""+A,...(0===e?["all"]:[])],{stdio:"inherit",shell:!0,timeout:sZ}),await O(`${t}/bin`),{installDir:""+t,binDir:`${t}/bin`,bin:`${t}/bin/clang++`};}async function ev(A,e,t,r){var n,i,o,s,a;let l=await sK(A,"utf-8");return i=r,o=l=(n=l,l=process.env.NODE_DEBUG?n:n.replace(/set -eux/g,"set -eu")).replace(/add-apt-repository "\${REPO_NAME}"/g,'add-apt-repository -y "${REPO_NAME}"'),s=t,l=1===i?o.replace(/ -y \$PKG/g," -y clang-format-"+s):o,a=l=await eL(l),l=j()?a.replace(/apt-get/g,"nala"):a,await sz(e,l),[{name:"lsb-release"},{name:"wget"},{name:"software-properties-common"},{name:"gnupg"}];}async function eL(A){let e=A.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 A=>{let t=A.replace("$LLVM_VERSION","*");(await Ae(t))&&((0,rK.info)("Removing conflicting package "+t),e=e.replace(A,""));})),e;}function eU(A,e,t){let r=`${e}${A}${t}`;return`https://github.com/llvm/llvm-project/releases/download/llvmorg-${A}/${r}`;}function ex(A,e,t){let r=`${e}${A}${t}`;return`https://releases.llvm.org/${A}/${r}`;}async function eT(A){let e;if(s2.has(A))return null;let t="LLVM-",r=l(rc)(A,"3.7.0")?"-win32.exe":"-win64.exe",n=l(rc)(A,"9.0.1"),i=!1;return n&&(e=ex(A,t,r),(await rI(e))||(i=!0)),(i||!n)&&(e=eU(A,t,r)),e;}function eM(A,e){switch(A){case"darwin":return function(A){if(s4.has(A))return null;let e="9.0.0"===A?"-darwin-apple":"-apple-darwin",t="clang+llvm-",r=`-x86_64${e}.tar.xz`;return l(rc)(A,"9.0.1")?ex(A,t,r):eU(A,t,r);}(e);case"linux":return function(A){let e,t,r=A,n=s9.get(r);if(void 0!==n&&(r=n),r.includes("ubuntu")){let A=r.replace(/-ubuntu-.*/,"");if(!s1.has(A))throw Error("Unsupported Ubuntu version: "+A);e=r.replace(A,""),r=AT(s1,A)[0];}else""!==r&&r in s8?e=s8[r]:(e=s8[s3],(0,e6.warning)(`Falling back to LLVM version ${s3} ${e} for the Ubuntu.`));let i="clang+llvm-";return(t="5.0.0"===r?`-linux-x86_64${e}.tar.xz`:e.includes("-rhel86")?`-x86_64-unknown-linux-gnu${e}.tar.xz`:`-x86_64-linux-gnu${e}.tar.xz`,l(rc)(r,"9.0.1"))?ex(r,i,t):eU(r,i,t);}(e);case"win32":return eT(e);default:return null;}}async function eG(A,e,t){let[r,n]=await AM(s1,e,A,eM);return(0,e6.info)("specific llvm version: "+r),{url:n,extractedFolderName:"",binRelativeDir:"bin",binFileName:(0,t8.addExeExt)("clang"),extractFunction:"win32"===e?Aw:(A,e)=>AD(A,e,["--strip-components=1"])};}async function eY(A,e,t){var r;let n=await s5(A,e,t);return await eP(null!==(r=n.installDir)&&void 0!==r?r:e),n;}async function eO(A,e,t){let[r,n,i]=await Promise.all([eH(A,e,t),s7(t),e_()]);return r;}async function eH(A,e,t,r=rb.All){let n=parseInt(function(A){if(null===l(rd)(A))try{let e=l(rE)(A);if(null!==e)return(0,e6.info)(`Coerced version '${A}' to '${e}'`),e.version;}catch(A){}return A;}(A).split(".")[0],10);try{if(x())return await eF(n,r);}catch(A){(0,e6.info)("Failed to install llvm via system package manager "+A);}let i=await Ak("llvm",A,eG,e,t);return await s6(n),i;}async function eJ(A){x()&&(A<=10?await _([{name:"libtinfo5"}]):await _([{name:"libtinfo-dev"}]));}async function eV(A){"linux"===process.platform&&(await eQ(A0("gcc",void 0,await sU()),"",A,40));}async function eP(A){var e,t;let r=null!==(e=process.env.LD_LIBRARY_PATH)&&void 0!==e?e:"",n=null!==(t=process.env.DYLD_LIBRARY_PATH)&&void 0!==t?t:"",i=[Y("LLVM_PATH",A),Y("LD_LIBRARY_PATH",`${A}/lib${rF.delimiter}${r}`),Y("DYLD_LIBRARY_PATH",`${A}/lib${rF.delimiter}${n}`),Y("LDFLAGS",`-L"${A}/lib"`),Y("CPPFLAGS",`-I"${A}/include"`),Y("CC",(0,t8.addExeExt)(`${A}/bin/clang`)),Y("CXX",(0,t8.addExeExt)(`${A}/bin/clang++`)),Y("LIBRARY_PATH",`${A}/lib`),eg()];x()&&i.push(AA("cc",`${A}/bin/clang`,60),AA("cxx",`${A}/bin/clang++`,60),AA("clang",`${A}/bin/clang`),AA("clang++",`${A}/bin/clang++`),AA("lld",`${A}/bin/lld`),AA("ld.lld",`${A}/bin/ld.lld`),AA("llvm-ar",`${A}/bin/llvm-ar`)),await Promise.all(i);}async function e_(){if(e5.GITHUB_ACTIONS){let A=(0,t8.join)(rk,"llvm_matcher.json");if(!(await(0,t0.pathExists)(A)))return(0,e6.warning)("the llvm_matcher.json file does not exist in the same folder as setup-cpp.js");(0,e6.info)("::add-matcher::"+A);}}async function eW(A,e,t){switch(process.platform){case"win32":return Ao("make",A);case"darwin":return await An("make",A),await O("/usr/local/opt/make/libexec/gnubin"),{binDir:"/usr/local/opt/make/libexec/gnubin"};case"linux":if(U())return AE("make",A);if(L())return As([{name:"make",version:A}]);if(x())return _([{name:"make",version:A}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function eq(A,e,t,r,n,i){let o,s;if("win32"!==process.platform)return;let a=rw(A);(0,e6.info)(`Checking if MSVC ${a} is already installed`);let l=!1;try{let A=rR(a);l=!0,(0,e6.info)("Found the pre-installed version of MSVC at "+A);}catch{}if(!l)try{"14.0"===a?(o="14.0",await Ao("visualcpp-build-tools","14.0.25420.1",["--ignore-dependencies"]),s="C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140"):"15.0"===a?(o="14.16",await Ao("visualstudio2017buildtools","15.9.41.0",[]),s="C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16"):"16.0"===a?(o="14.29",await Ao("visualstudio2019buildtools","16.11.7.0",[]),s="C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133"):"17.0"===a?(o=void 0,await Ao("visualstudio2022buildtools","117.0.5.0",[]),s=void 0):(0,e6.error)(`The given MSVC versions ${A} is not supported yet.`);}catch(A){(0,e6.error)(A);}await ek(a,s,t,o,r,n,i),e5.GITHUB_ACTIONS&&(await ej());}async function ej(){let A=(0,t8.join)(rN,"msvc_matcher.json");if(!(await(0,t0.pathExists)(A)))return(0,e6.warning)("the msvc_matcher.json file does not exist in the same folder as setup-cpp.js");(0,e6.info)("::add-matcher::"+A);}async function eX(A,e,t){if(!x())return;if("string"==typeof n)return{binDir:n};let r=l(tr).sync("nala",{nothrow:!0});if(null!==r)return{binDir:n=(0,t8.dirname)(r)};let i=await z("volian-archive-scar-unstable.gpg","https://deb.volian.org/volian/scar.key");m("/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"!==A?await _([{name:"nala"}],!0):await _([{name:"nala-legacy"}],!0);}catch(A){await _([{name:"nala-legacy"}],!0);}return{binDir:n="/usr/bin"};}async function e$(A,e,t){if("win32"===process.platform)return await Ao("opencppcoverage",A),{binDir:await eZ()};}async function eZ(){let A="C:/Program Files/OpenCppCoverage";return await O(A),A;}async function eK(A,e,t){switch(process.platform){case"win32":{await Ao("powershell-core",A);let e="C:/Program Files/PowerShell/7";return await O(e),{binDir:e};}case"darwin":return An("powershell",A,["--cask"]);case"linux":if(U())return AE("powershell-bin",A,"yay");if(L())return As([{name:"curl"}]),m("/bin/bash",["-c","curl https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo"]),As([{name:"powershell",version:A}]);if(x()){await _([{name:"curl"}]);let e=await sU(),t=`${e[0]}.0${e[1]}`;return m("curl",["-LJO",`https://packages.microsoft.com/config/ubuntu/${t}/packages-microsoft-prod.deb`]),m("dpkg",["-i","packages-microsoft-prod.deb"]),_([{name:"powershell",version:A}],!0);}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}function ez(A,e,t){var r;let n="win32"===(r=e)?"windows":r,i=function(A){switch(A){case"x64":return"amd64";case"ia32":case"x86":case"i386":case"x32":return"386";default:return A;}}(t),o="win32"===e;return{binRelativeDir:"",binFileName:(0,t8.addExeExt)("task"),extractedFolderName:"",extractFunction:o?AR:AD,url:`https://github.com/go-task/task/releases/download/v${A}/task_${n}_${i}.${o?"zip":"tar.gz"}`};}async function e0(A,e,t){return aA&&null!==l(tr).sync("vcpkg",{nothrow:!0})?{binDir:(0,t8.dirname)(l(tr).sync("vcpkg"))}:("linux"===process.platform&&(U()?await Promise.all([AE("curl"),AE("zip"),AE("unzip"),AE("tar"),AE("git"),AE("pkg-config")]):L()?await As([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}]):x()&&(await _([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}]))),(await(0,t0.pathExists)((0,t8.join)(e,(0,t8.addShExt)("bootstrap-vcpkg",".bat"))))?(0,e6.notice)(`Vcpkg folder already exists at ${e}. This might mean that ~/vcpkg is restored from the cache.`):p("git",["clone","https://github.com/microsoft/vcpkg"],{cwd:(0,t8.dirname)(e),stdio:"inherit"}),p((0,t8.addShExt)((0,t8.addShRelativePrefix)("bootstrap-vcpkg"),".bat"),{cwd:e,shell:!0,stdio:"inherit"}),await b(e),await O(e),aA=!0,{binDir:e});}function e1(A,e){let t=`\u{2705} ${A} was installed successfully:`;return void 0===e||("installDir"in e&&(t+="\n- The installation directory is "+e.installDir),""!==e.binDir&&(t+="\n- The binary directory is "+e.binDir)),t;}async function e2(A,e,t,r,n,i,o){try{let{compiler:s,version:a}=function(A){let e=A.split("-"),t=e[0];if(1 in e){let A=e[1];return null!==l(rd)(A)||(0,e6.info)(`Invalid semver version ${A} used for the compiler.`),{compiler:t,version:A};}return{compiler:t,version:void 0};}(A);switch((0,tz.startGroup)(`Installing ${s} ${null!=a?a:""}`),s){case"llvm":case"clang":case"clang++":{let A=await eY(A0("llvm",a,e),(0,rF.join)(t,"llvm"),r);await Y("GCOV","llvm-cov gcov"),n.push(e1("llvm",A));break;}case"gcc":case"mingw":case"cygwin":case"msys":{let A="mingw"===s?A0("mingw",a,e):A0("gcc",a,e),o="mingw"===s?await eu(A,(0,rF.join)(t,"gcc"),r):await eQ(A,(0,rF.join)(t,"gcc"),r);i&&(await Y("CPPFLAGS","")),await function(A){let e=l(rd)(A),t=null!==e?l(rp)(e):A;return Y("GCOV",""!==t?"gcov-"+t:"gcov");}(A),n.push(e1("gcc",o));break;}case"cl":case"msvc":case"msbuild":case"vs":case"visualstudio":case"visualcpp":case"visualc++":{let A=await eq(A0("msvc",a,e),(0,rF.join)(t,"msvc"),r);i&&(await Y("CPPFLAGS","")),n.push(e1("msvc",A));break;}case"appleclang":case"applellvm":(0,tz.notice)("Assuming apple-clang is already installed"),await Promise.all([Y("CC","clang"),Y("CXX","clang++")]),n.push(e1("apple-clang",void 0));break;default:o.push("Unsupported compiler "+s);}}catch(e){(0,e6.error)(e),o.push("Failed to install the "+A);}(0,tz.endGroup)();}async function e4(A){var e,t,r;let n,i,o=Promise.resolve();e5.GITHUB_ACTIONS||(o=F(),process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS="true");let s=function(A,e){e=e||{};var t,r,n,i,o,s={_:[]},a=0,l=0,E=0,c=(A=A||[]).length;let g=void 0!==e.alias,h=void 0!==e.unknown,Q=void 0!==e.default;if(e.alias=e.alias||{},e.string=v(e.string),e.boolean=v(e.boolean),g)for(t in e.alias)for(a=0,r=e.alias[t]=v(e.alias[t]);a0;)for(l=(r=e.alias[e.boolean[a]]||[]).length;l-->0;)e.boolean.push(r[l]);for(a=e.string.length;a-->0;)for(l=(r=e.alias[e.string[a]]||[]).length;l-->0;)e.string.push(r[l]);if(Q){for(t in e.default)if(i=typeof e.default[t],r=e.alias[t]=e.alias[t]||[],void 0!==e[i])for(e[i].push(t),a=0;aa;a++){if("--"===(n=A[a])){s._=s._.concat(A.slice(++a));break;}for(l=0;l0;)s[r.shift()]=s[t];return s;}(A,{string:[...ar,"timeout"],default:Object.fromEntries(ar.map(A=>[A,function(A){let e=(0,tz.getInput)(A.toLowerCase());if("false"!==e&&""!==e)return e;}(A)])),alias:{h:"help"},boolean:"help"});s.help&&((0,e6.info)(` setup-cpp [options] setup-cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true Install all the tools required for building and testing C++/C projects. --architecture the cpu architecture to install the tools for. By default it uses the current CPU architecture. --timeout the timeout for the installation of each tool in minutes. By default it is 10 minutes. --compiler the to install. You can specify the version instead of specifying just the name e.g: --compiler 'llvm-13.0.0' --$tool_name pass "true" or pass the you would like to install for this tool. e.g. --conan true or --conan "1.42.1" All the available tools: `),console.table({"compiler and analyzer":{tools:"--llvm, --gcc, --msvc, --vcvarsall, --cppcheck, --clangtidy, --clangformat"},"build system":{tools:"--cmake, --ninja, --meson, --make, --task, --bazel"},"package manager":{tools:"--vcpkg, --conan, --choco, --brew, --nala"},cache:{tools:"--cppcache, --sccache"},documentation:{tools:"--doxygen, --graphviz"},coverage:{tools:"--gcovr, --opencppcoverage, --kcov"},other:{tools:"--python, --powershell, --sevenzip"}},["tools"]));let a=null!==(e=s.architecture)&&void 0!==e?e:process.arch,E=null!==(t=process.env.SETUP_CPP_DIR)&&void 0!==t?t:k("~"),c=[],g=[],h=te.create({autoloadLocales:!0});te.addLocale(l(tt)),e7.addLocale(l(tA));let Q=await sU();if(!function(A,e){let t=e.filter(e=>void 0!==A[e]),r=t.filter(e=>!A1(A[e])),n=r.length>=1?A[r[0]]:"true";return!r.some(e=>A[e]!==n)&&(t.forEach(e=>{A[e]=n;}),!0);}(s,["llvm","clangtidy","clangformat"]))return(0,e6.error)("The same version must be used for llvm, clangformat and clangtidy"),1;U()&&"string"==typeof s.cppcheck&&"string"==typeof s.gcovr&&((0,e6.info)("installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux"),await AE("python-pygments"));let u=!1,C=!1;for(let A of at){if(e5.isCI&&0!==g.length){C=!0;break;}let e=s[A];void 0!==e&&(n=Date.now(),u=await eN(A,e,Q,a,E,c,g,6e4*parseFloat(null!==(r=s.timeout)&&void 0!==r?r:"20")),i=Date.now(),(0,e6.info)("took "+(h.format(n,i)||"0 seconds")));}if(!C){let A=s.compiler;if(void 0!==A){let e=Date.now();await e2(A,Q,E,a,c,u,g);let t=Date.now();(0,e6.info)("took "+(h.format(e,t)||"0 seconds"));}}if(await P(),0===c.length&&0===g.length)return(0,e6.warning)("setup-cpp was called without any arguments. Nothing to do."),0;if(c.forEach(A=>(0,e6.success)(A)),g.forEach(A=>(0,e6.error)(A)),(0,e6.info)("setup-cpp finished"),!e5.GITHUB_ACTIONS)switch(process.platform){case"win32":(0,e6.warning)("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":(0,e6.warning)("Run `source ~/.cpprc` or restart your shell to update the environment.");}return await o,0===g.length?0:1;}var e9,e8,e3,e5,e6,e7,tA,te,tt,tr,tn,ti,to,ts,ta,tl,tE,tc,tg,th,tQ,tu,tC,tI,tB,td,tf,tp,ty,tm,tw,tR,tD,tb,tk,tN,tS,tF,tv,tL,tU,tx,tT,tM,tG,tY,tO,tH,tJ,tV,tP,t_,tW,tq,tj,tX,t$,tZ,tK,tz,t0,t1,t2,t4,t9,t8,t3,t5,t6,t7,rA,re,rt,rr,rn,ri,ro,rs,ra,rl,rE,rc,rg,rh,rQ,ru,rC,rI,rB,rd,rf,rp,ry,rm,rw,rR,rD,rb,rk,rN,rS=require("os"),rF=require("path"),rv=require("fs"),rL=require("crypto"),rU=require("http"),rx=require("https"),rT=require("net"),rM=require("tls"),rG=require("events"),rY=require("assert"),rO=require("util"),rH=require("stream"),rJ=require("buffer"),rV=require("querystring"),rP=require("stream/web"),r_=require("util/types"),rW=require("stream"),rq=require("util"),rj=require("events"),rX=require("perf_hooks"),r$=require("worker_threads"),rZ=require("async_hooks"),rK=require("console"),rz=require("url"),r0=require("zlib"),r1=require("string_decoder"),r2=require("diagnostics_channel"),r4=require("fs"),r9=require("child_process"),r8=require("timers"),r3=require("buffer"),r5=require("path"),r6=require("child_process"),r7=require("process"),nA=require("url"),ne=require("os"),nt=require("process"),nr=globalThis,nn={},ni={},no=nr.parcelRequire810d;null==no&&((no=function(A){if(A in nn)return nn[A].exports;if(A in ni){var e=ni[A];delete ni[A];var t={id:A,exports:{}};return nn[A]=t,e.call(t.exports,t,t.exports),t.exports;}var r=Error("Cannot find module '"+A+"'");throw r.code="MODULE_NOT_FOUND",r;}).register=function(A,e){ni[A]=e;},nr.parcelRequire810d=no),(e3=no.register)("dAuy6",function(A,e){var t;function r(A){return"string"==typeof A?!!n[A]:"env"in A?n[A.env]&&n[A.env].includes(A.includes):"any"in A?A.any.some(function(A){return!!n[A];}):Object.keys(A).every(function(e){return n[e]===A[e];});}t=no("5vZJI");let n=process.env;Object.defineProperty(A.exports,"_vendors",{value:t.map(function(A){return A.constant;})}),A.exports.name=null,A.exports.isPR=null,t.forEach(function(e){let t=(Array.isArray(e.env)?e.env:[e.env]).every(function(A){return r(A);});if(A.exports[e.constant]=t,t)switch(A.exports.name=e.name,typeof e.pr){case"string":A.exports.isPR=!!n[e.pr];break;case"object":"env"in e.pr?A.exports.isPR=e.pr.env in n&&n[e.pr.env]!==e.pr.ne:"any"in e.pr?A.exports.isPR=e.pr.any.some(function(A){return!!n[A];}):A.exports.isPR=r(e.pr);break;default:A.exports.isPR=null;}}),A.exports.isCI=!!("false"!==n.CI&&(n.BUILD_ID||n.BUILD_NUMBER||n.CI||n.CI_APP_ID||n.CI_BUILD_ID||n.CI_BUILD_NUMBER||n.CI_NAME||n.CONTINUOUS_INTEGRATION||n.RUN_ID||A.exports.name));}),e3("5vZJI",function(A,e){A.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"}]');}),e3("hHq4F",function(A,e){var t,r;function n(A){return r.GITHUB_ACTIONS?t.error(A):console.log(`\x1b[31m${A}\x1b[0m`);}function i(A){return console.log(`\x1b[32m${A}\x1b[0m`);}function o(A){return r.GITHUB_ACTIONS?t.warning(A):console.log(`\x1b[33m${A}\x1b[0m`);}function s(A){return r.GITHUB_ACTIONS?t.notice(A):console.log(`\x1b[94m${A}\x1b[0m`);}function l(A){return r.GITHUB_ACTIONS?t.info(A):console.log(A);}a(A.exports,"error",()=>n),a(A.exports,"success",()=>i),a(A.exports,"warning",()=>o),a(A.exports,"notice",()=>s),a(A.exports,"info",()=>l),t=no("1o3Gj"),r=no("dAuy6");}),e3("1o3Gj",function(A,e){var t,r,n,i,o,s,a,l,E,c,g,h;function Q(A,e){let t=process.env["INPUT_"+A.replace(/ /g,"_").toUpperCase()]||"";if(e&&e.required&&!t)throw Error("Input required and not supplied: "+A);return e&&!1===e.trimWhitespace?t:t.trim();}function u(A,e={}){o.issueCommand("error",a.toCommandProperties(e),A instanceof Error?A.toString():A);}function C(A){o.issue("group",A);}function I(){o.issue("endgroup");}t=A.exports&&A.exports.__createBinding||(Object.create?function(A,e,t,r){void 0===r&&(r=t),Object.defineProperty(A,r,{enumerable:!0,get:function(){return e[t];}});}:function(A,e,t,r){void 0===r&&(r=t),A[r]=e[t];}),r=A.exports&&A.exports.__setModuleDefault||(Object.create?function(A,e){Object.defineProperty(A,"default",{enumerable:!0,value:e});}:function(A,e){A.default=e;}),n=A.exports&&A.exports.__importStar||function(A){if(A&&A.__esModule)return A;var e={};if(null!=A)for(var n in A)"default"!==n&&Object.hasOwnProperty.call(A,n)&&t(e,A,n);return r(e,A),e;},i=A.exports&&A.exports.__awaiter||function(A,e,t,r){return new(t||(t=Promise))(function(n,i){function o(A){try{a(r.next(A));}catch(A){i(A);}}function s(A){try{a(r.throw(A));}catch(A){i(A);}}function a(A){var e;A.done?n(A.value):((e=A.value)instanceof t?e:new t(function(A){A(e);})).then(o,s);}a((r=r.apply(A,e||[])).next());});},Object.defineProperty(A.exports,"__esModule",{value:!0}),A.exports.getIDToken=A.exports.getState=A.exports.saveState=A.exports.group=A.exports.endGroup=A.exports.startGroup=A.exports.info=A.exports.notice=A.exports.warning=A.exports.error=A.exports.debug=A.exports.isDebug=A.exports.setFailed=A.exports.setCommandEcho=A.exports.setOutput=A.exports.getBooleanInput=A.exports.getMultilineInput=A.exports.getInput=A.exports.addPath=A.exports.setSecret=A.exports.exportVariable=A.exports.ExitCode=void 0,o=no("1g3mY"),s=no("8prV6"),a=no("5nnws");let B=n(rS),d=n(rF);l=no("dU1e3"),(h=E=A.exports.ExitCode||(A.exports.ExitCode={}))[h.Success=0]="Success",h[h.Failure=1]="Failure",A.exports.exportVariable=function(A,e){let t=a.toCommandValue(e);if(process.env[A]=t,process.env.GITHUB_ENV)return s.issueFileCommand("ENV",s.prepareKeyValueMessage(A,e));o.issueCommand("set-env",{name:A},t);},A.exports.setSecret=function(A){o.issueCommand("add-mask",{},A);},A.exports.addPath=function(A){process.env.GITHUB_PATH?s.issueFileCommand("PATH",A):o.issueCommand("add-path",{},A),process.env.PATH=`${A}${d.delimiter}${process.env.PATH}`;},A.exports.getInput=Q,A.exports.getMultilineInput=function(A,e){let t=Q(A,e).split("\n").filter(A=>""!==A);return e&&!1===e.trimWhitespace?t:t.map(A=>A.trim());},A.exports.getBooleanInput=function(A,e){let t=Q(A,e);if(["true","True","TRUE"].includes(t))return!0;if(["false","False","FALSE"].includes(t))return!1;throw TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${A} Support boolean input list: \`true | True | TRUE | false | False | FALSE\``);},A.exports.setOutput=function(A,e){if(process.env.GITHUB_OUTPUT)return s.issueFileCommand("OUTPUT",s.prepareKeyValueMessage(A,e));process.stdout.write(B.EOL),o.issueCommand("set-output",{name:A},a.toCommandValue(e));},A.exports.setCommandEcho=function(A){o.issue("echo",A?"on":"off");},A.exports.setFailed=function(A){process.exitCode=E.Failure,u(A);},A.exports.isDebug=function(){return"1"===process.env.RUNNER_DEBUG;},A.exports.debug=function(A){o.issueCommand("debug",{},A);},A.exports.error=u,A.exports.warning=function(A,e={}){o.issueCommand("warning",a.toCommandProperties(e),A instanceof Error?A.toString():A);},A.exports.notice=function(A,e={}){o.issueCommand("notice",a.toCommandProperties(e),A instanceof Error?A.toString():A);},A.exports.info=function(A){process.stdout.write(A+B.EOL);},A.exports.startGroup=C,A.exports.endGroup=I,A.exports.group=function(A,e){return i(this,void 0,void 0,function*(){let t;C(A);try{t=yield e();}finally{I();}return t;});},A.exports.saveState=function(A,e){if(process.env.GITHUB_STATE)return s.issueFileCommand("STATE",s.prepareKeyValueMessage(A,e));o.issueCommand("save-state",{name:A},a.toCommandValue(e));},A.exports.getState=function(A){return process.env["STATE_"+A]||"";},A.exports.getIDToken=function(A){return i(this,void 0,void 0,function*(){return yield l.OidcClient.getIDToken(A);});},c=no("dV9Cu"),Object.defineProperty(A.exports,"summary",{enumerable:!0,get:function(){return c.summary;}}),c=no("dV9Cu"),Object.defineProperty(A.exports,"markdownSummary",{enumerable:!0,get:function(){return c.markdownSummary;}}),g=no("9i0tI"),Object.defineProperty(A.exports,"toPosixPath",{enumerable:!0,get:function(){return g.toPosixPath;}}),Object.defineProperty(A.exports,"toWin32Path",{enumerable:!0,get:function(){return g.toWin32Path;}}),Object.defineProperty(A.exports,"toPlatformPath",{enumerable:!0,get:function(){return g.toPlatformPath;}});}),e3("1g3mY",function(A,e){var t,r,n,i;function o(A,e,t){let r=new a(A,e,t);process.stdout.write(r.toString()+s.EOL);}t=A.exports&&A.exports.__createBinding||(Object.create?function(A,e,t,r){void 0===r&&(r=t),Object.defineProperty(A,r,{enumerable:!0,get:function(){return e[t];}});}:function(A,e,t,r){void 0===r&&(r=t),A[r]=e[t];}),r=A.exports&&A.exports.__setModuleDefault||(Object.create?function(A,e){Object.defineProperty(A,"default",{enumerable:!0,value:e});}:function(A,e){A.default=e;}),n=A.exports&&A.exports.__importStar||function(A){if(A&&A.__esModule)return A;var e={};if(null!=A)for(var n in A)"default"!==n&&Object.hasOwnProperty.call(A,n)&&t(e,A,n);return r(e,A),e;},Object.defineProperty(A.exports,"__esModule",{value:!0}),A.exports.issue=A.exports.issueCommand=void 0;let s=n(rS);i=no("5nnws"),A.exports.issueCommand=o,A.exports.issue=function(A,e=""){o(A,{},e);};class a{constructor(A,e,t){A||(A="missing.command"),this.command=A,this.properties=e,this.message=t;}toString(){var A;let e="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let A=!0;for(let t in this.properties)if(this.properties.hasOwnProperty(t)){let r=this.properties[t];r&&(A?A=!1:e+=",",e+=`${t}=${i.toCommandValue(r).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`);}}return e+("::"+(A=this.message,i.toCommandValue(A).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")));}}}),e3("5nnws",function(A,e){Object.defineProperty(A.exports,"__esModule",{value:!0}),A.exports.toCommandProperties=A.exports.toCommandValue=void 0,A.exports.toCommandValue=function(A){return null==A?"":"string"==typeof A||A instanceof String?A:JSON.stringify(A);},A.exports.toCommandProperties=function(A){return Object.keys(A).length?{title:A.title,file:A.file,line:A.startLine,endLine:A.endLine,col:A.startColumn,endColumn:A.endColumn}:{};};}),e3("8prV6",function(A,e){var t,r,n,i,o;t=A.exports&&A.exports.__createBinding||(Object.create?function(A,e,t,r){void 0===r&&(r=t),Object.defineProperty(A,r,{enumerable:!0,get:function(){return e[t];}});}:function(A,e,t,r){void 0===r&&(r=t),A[r]=e[t];}),r=A.exports&&A.exports.__setModuleDefault||(Object.create?function(A,e){Object.defineProperty(A,"default",{enumerable:!0,value:e});}:function(A,e){A.default=e;}),n=A.exports&&A.exports.__importStar||function(A){if(A&&A.__esModule)return A;var e={};if(null!=A)for(var n in A)"default"!==n&&Object.hasOwnProperty.call(A,n)&&t(e,A,n);return r(e,A),e;},Object.defineProperty(A.exports,"__esModule",{value:!0}),A.exports.prepareKeyValueMessage=A.exports.issueFileCommand=void 0;let s=n(rv),a=n(rS);i=no("1Un9O"),o=no("5nnws"),A.exports.issueFileCommand=function(A,e){let t=process.env["GITHUB_"+A];if(!t)throw Error("Unable to find environment variable for file command "+A);if(!s.existsSync(t))throw Error("Missing file at path: "+t);s.appendFileSync(t,`${o.toCommandValue(e)}${a.EOL}`,{encoding:"utf8"});},A.exports.prepareKeyValueMessage=function(A,e){let t="ghadelimiter_"+i.default(),r=o.toCommandValue(e);if(A.includes(t))throw Error(`Unexpected input: name should not contain the delimiter "${t}"`);if(r.includes(t))throw Error(`Unexpected input: value should not contain the delimiter "${t}"`);return`${A}<<${t}${a.EOL}${r}${a.EOL}${t}`;};}),e3("1Un9O",function(A,e){var t,r,n;a(A.exports,"default",()=>n),t=no("jyKkd"),r=no("4DdbA"),n=function(A,e,n){let i=(A=A||{}).random||(A.rng||(0,t.default))();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,e){n=n||0;for(let A=0;A<16;++A)e[n+A]=i[A];return e;}return(0,r.default)(i);};}),e3("jyKkd",function(A,e){function t(){return n>r.length-16&&(l(rL).randomFillSync(r),n=0),r.slice(n,n+=16);}a(A.exports,"default",()=>t);let r=new Uint8Array(256),n=r.length;}),e3("4DdbA",function(A,e){var t,r;a(A.exports,"default",()=>r),t=no("4XBHo");let n=[];for(let A=0;A<256;++A)n.push((A+256).toString(16).substr(1));r=function(A,e=0){let r=(n[A[e+0]]+n[A[e+1]]+n[A[e+2]]+n[A[e+3]]+"-"+n[A[e+4]]+n[A[e+5]]+"-"+n[A[e+6]]+n[A[e+7]]+"-"+n[A[e+8]]+n[A[e+9]]+"-"+n[A[e+10]]+n[A[e+11]]+n[A[e+12]]+n[A[e+13]]+n[A[e+14]]+n[A[e+15]]).toLowerCase();if(!(0,t.default)(r))throw TypeError("Stringified UUID is invalid");return r;};}),e3("4XBHo",function(A,e){var t,r;a(A.exports,"default",()=>r),t=no("dcWu5"),r=function(A){return"string"==typeof A&&(0,t.default).test(A);};}),e3("dcWu5",function(A,e){a(A.exports,"default",()=>t);var t=/^(?:[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;}),e3("dU1e3",function(A,e){var t=A.exports&&A.exports.__awaiter||function(A,e,t,r){return new(t||(t=Promise))(function(n,i){function o(A){try{a(r.next(A));}catch(A){i(A);}}function s(A){try{a(r.throw(A));}catch(A){i(A);}}function a(A){var e;A.done?n(A.value):((e=A.value)instanceof t?e:new t(function(A){A(e);})).then(o,s);}a((r=r.apply(A,e||[])).next());});};Object.defineProperty(A.exports,"__esModule",{value:!0}),A.exports.OidcClient=void 0;var r=no("eamjo"),n=no("h6tQO"),i=no("1o3Gj");class o{static createHttpClient(A=!0,e=10){return new r.HttpClient("actions/oidc-client",[new n.BearerCredentialHandler(o.getRequestToken())],{allowRetries:A,maxRetries:e});}static getRequestToken(){let A=process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;if(!A)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable");return A;}static getIDTokenUrl(){let A=process.env.ACTIONS_ID_TOKEN_REQUEST_URL;if(!A)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable");return A;}static getCall(A){var e;return t(this,void 0,void 0,function*(){let t=o.createHttpClient(),r=null===(e=(yield t.getJson(A).catch(A=>{throw Error(`Failed to get ID Token. Error Code : ${A.statusCode} Error Message: ${A.message}`);})).result)||void 0===e?void 0:e.value;if(!r)throw Error("Response json body do not have ID Token field");return r;});}static getIDToken(A){return t(this,void 0,void 0,function*(){try{let e=o.getIDTokenUrl();if(A){let t=encodeURIComponent(A);e=`${e}&audience=${t}`;}i.debug("ID token url is "+e);let t=yield o.getCall(e);return i.setSecret(t),t;}catch(A){throw Error("Error message: "+A.message);}});}}A.exports.OidcClient=o;}),e3("eamjo",function(A,e){var t,r,n,i,o,s,a,l,E,c;t=A.exports&&A.exports.__createBinding||(Object.create?function(A,e,t,r){void 0===r&&(r=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t];}}),Object.defineProperty(A,r,n);}:function(A,e,t,r){void 0===r&&(r=t),A[r]=e[t];}),r=A.exports&&A.exports.__setModuleDefault||(Object.create?function(A,e){Object.defineProperty(A,"default",{enumerable:!0,value:e});}:function(A,e){A.default=e;}),n=A.exports&&A.exports.__importStar||function(A){if(A&&A.__esModule)return A;var e={};if(null!=A)for(var n in A)"default"!==n&&Object.prototype.hasOwnProperty.call(A,n)&&t(e,A,n);return r(e,A),e;},i=A.exports&&A.exports.__awaiter||function(A,e,t,r){return new(t||(t=Promise))(function(n,i){function o(A){try{a(r.next(A));}catch(A){i(A);}}function s(A){try{a(r.throw(A));}catch(A){i(A);}}function a(A){var e;A.done?n(A.value):((e=A.value)instanceof t?e:new t(function(A){A(e);})).then(o,s);}a((r=r.apply(A,e||[])).next());});},Object.defineProperty(A.exports,"__esModule",{value:!0}),A.exports.HttpClient=A.exports.isHttps=A.exports.HttpClientResponse=A.exports.HttpClientError=A.exports.getProxyUrl=A.exports.MediaTypes=A.exports.Headers=A.exports.HttpCodes=void 0;let g=n(rU),h=n(rx),Q=n(no("jnrYh")),u=n(no("3RDK7"));o=no("8Z5wh"),(E=s||(A.exports.HttpCodes=s={}))[E.OK=200]="OK",E[E.MultipleChoices=300]="MultipleChoices",E[E.MovedPermanently=301]="MovedPermanently",E[E.ResourceMoved=302]="ResourceMoved",E[E.SeeOther=303]="SeeOther",E[E.NotModified=304]="NotModified",E[E.UseProxy=305]="UseProxy",E[E.SwitchProxy=306]="SwitchProxy",E[E.TemporaryRedirect=307]="TemporaryRedirect",E[E.PermanentRedirect=308]="PermanentRedirect",E[E.BadRequest=400]="BadRequest",E[E.Unauthorized=401]="Unauthorized",E[E.PaymentRequired=402]="PaymentRequired",E[E.Forbidden=403]="Forbidden",E[E.NotFound=404]="NotFound",E[E.MethodNotAllowed=405]="MethodNotAllowed",E[E.NotAcceptable=406]="NotAcceptable",E[E.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",E[E.RequestTimeout=408]="RequestTimeout",E[E.Conflict=409]="Conflict",E[E.Gone=410]="Gone",E[E.TooManyRequests=429]="TooManyRequests",E[E.InternalServerError=500]="InternalServerError",E[E.NotImplemented=501]="NotImplemented",E[E.BadGateway=502]="BadGateway",E[E.ServiceUnavailable=503]="ServiceUnavailable",E[E.GatewayTimeout=504]="GatewayTimeout",(c=a||(A.exports.Headers=a={})).Accept="accept",c.ContentType="content-type",(l||(A.exports.MediaTypes=l={})).ApplicationJson="application/json",A.exports.getProxyUrl=function(A){let e=Q.getProxyUrl(new URL(A));return e?e.href:"";};let C=[s.MovedPermanently,s.ResourceMoved,s.SeeOther,s.TemporaryRedirect,s.PermanentRedirect],I=[s.BadGateway,s.ServiceUnavailable,s.GatewayTimeout],B=["OPTIONS","GET","DELETE","HEAD"];class d extends Error{constructor(A,e){super(A),this.name="HttpClientError",this.statusCode=e,Object.setPrototypeOf(this,d.prototype);}}A.exports.HttpClientError=d;class f{constructor(A){this.message=A;}readBody(){return i(this,void 0,void 0,function*(){return new Promise(A=>i(this,void 0,void 0,function*(){let e=Buffer.alloc(0);this.message.on("data",A=>{e=Buffer.concat([e,A]);}),this.message.on("end",()=>{A(e.toString());});}));});}readBodyBuffer(){return i(this,void 0,void 0,function*(){return new Promise(A=>i(this,void 0,void 0,function*(){let e=[];this.message.on("data",A=>{e.push(A);}),this.message.on("end",()=>{A(Buffer.concat(e));});}));});}}A.exports.HttpClientResponse=f,A.exports.isHttps=function(A){return"https:"===new URL(A).protocol;},A.exports.HttpClient=class{constructor(A,e,t){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=A,this.handlers=e||[],this.requestOptions=t,t&&(null!=t.ignoreSslError&&(this._ignoreSslError=t.ignoreSslError),this._socketTimeout=t.socketTimeout,null!=t.allowRedirects&&(this._allowRedirects=t.allowRedirects),null!=t.allowRedirectDowngrade&&(this._allowRedirectDowngrade=t.allowRedirectDowngrade),null!=t.maxRedirects&&(this._maxRedirects=Math.max(t.maxRedirects,0)),null!=t.keepAlive&&(this._keepAlive=t.keepAlive),null!=t.allowRetries&&(this._allowRetries=t.allowRetries),null!=t.maxRetries&&(this._maxRetries=t.maxRetries));}options(A,e){return i(this,void 0,void 0,function*(){return this.request("OPTIONS",A,null,e||{});});}get(A,e){return i(this,void 0,void 0,function*(){return this.request("GET",A,null,e||{});});}del(A,e){return i(this,void 0,void 0,function*(){return this.request("DELETE",A,null,e||{});});}post(A,e,t){return i(this,void 0,void 0,function*(){return this.request("POST",A,e,t||{});});}patch(A,e,t){return i(this,void 0,void 0,function*(){return this.request("PATCH",A,e,t||{});});}put(A,e,t){return i(this,void 0,void 0,function*(){return this.request("PUT",A,e,t||{});});}head(A,e){return i(this,void 0,void 0,function*(){return this.request("HEAD",A,null,e||{});});}sendStream(A,e,t,r){return i(this,void 0,void 0,function*(){return this.request(A,e,t,r);});}getJson(A,e={}){return i(this,void 0,void 0,function*(){e[a.Accept]=this._getExistingOrDefaultHeader(e,a.Accept,l.ApplicationJson);let t=yield this.get(A,e);return this._processResponse(t,this.requestOptions);});}postJson(A,e,t={}){return i(this,void 0,void 0,function*(){let r=JSON.stringify(e,null,2);t[a.Accept]=this._getExistingOrDefaultHeader(t,a.Accept,l.ApplicationJson),t[a.ContentType]=this._getExistingOrDefaultHeader(t,a.ContentType,l.ApplicationJson);let n=yield this.post(A,r,t);return this._processResponse(n,this.requestOptions);});}putJson(A,e,t={}){return i(this,void 0,void 0,function*(){let r=JSON.stringify(e,null,2);t[a.Accept]=this._getExistingOrDefaultHeader(t,a.Accept,l.ApplicationJson),t[a.ContentType]=this._getExistingOrDefaultHeader(t,a.ContentType,l.ApplicationJson);let n=yield this.put(A,r,t);return this._processResponse(n,this.requestOptions);});}patchJson(A,e,t={}){return i(this,void 0,void 0,function*(){let r=JSON.stringify(e,null,2);t[a.Accept]=this._getExistingOrDefaultHeader(t,a.Accept,l.ApplicationJson),t[a.ContentType]=this._getExistingOrDefaultHeader(t,a.ContentType,l.ApplicationJson);let n=yield this.patch(A,r,t);return this._processResponse(n,this.requestOptions);});}request(A,e,t,r){return i(this,void 0,void 0,function*(){let n;if(this._disposed)throw Error("Client has already been disposed.");let i=new URL(e),o=this._prepareRequest(A,i,r),a=this._allowRetries&&B.includes(A)?this._maxRetries+1:1,l=0;do{if((n=yield this.requestRaw(o,t))&&n.message&&n.message.statusCode===s.Unauthorized){let A;for(let e of this.handlers)if(e.canHandleAuthentication(n)){A=e;break;}if(A)return A.handleAuthentication(this,o,t);break;}let e=this._maxRedirects;for(;n.message.statusCode&&C.includes(n.message.statusCode)&&this._allowRedirects&&e>0;){let s=n.message.headers.location;if(!s)break;let a=new URL(s);if("https:"===i.protocol&&i.protocol!==a.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 n.readBody(),a.hostname!==i.hostname)for(let A in r)"authorization"===A.toLowerCase()&&delete r[A];o=this._prepareRequest(A,a,r),n=yield this.requestRaw(o,t),e--;}if(!n.message.statusCode||!I.includes(n.message.statusCode))break;(l+=1){this.requestRawWithCallback(A,e,function(A,e){A?r(A):e?t(e):r(Error("Unknown error"));});});});}requestRawWithCallback(A,e,t){let r;function n(A,e){i||(i=!0,t(A,e));}"string"==typeof e&&(A.options.headers||(A.options.headers={}),A.options.headers["Content-Length"]=Buffer.byteLength(e,"utf8"));let i=!1,o=A.httpModule.request(A.options,A=>{n(void 0,new f(A));});o.on("socket",A=>{r=A;}),o.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),n(Error("Request timeout: "+A.options.path));}),o.on("error",function(A){n(A);}),e&&"string"==typeof e&&o.write(e,"utf8"),e&&"string"!=typeof e?(e.on("close",function(){o.end();}),e.pipe(o)):o.end();}getAgent(A){let e=new URL(A);return this._getAgent(e);}getAgentDispatcher(A){let e=new URL(A),t=Q.getProxyUrl(e);if(t&&t.hostname)return this._getProxyAgentDispatcher(e,t);}_prepareRequest(A,e,t){let r={};r.parsedUrl=e;let n="https:"===r.parsedUrl.protocol;if(r.httpModule=n?h:g,r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):n?443:80,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=A,r.options.headers=this._mergeHeaders(t),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers)for(let A of this.handlers)A.prepareRequest(r.options);return r;}_mergeHeaders(A){return this.requestOptions&&this.requestOptions.headers?Object.assign({},p(this.requestOptions.headers),p(A||{})):p(A||{});}_getExistingOrDefaultHeader(A,e,t){let r;return this.requestOptions&&this.requestOptions.headers&&(r=p(this.requestOptions.headers)[e]),A[e]||r||t;}_getAgent(A){let e;let t=Q.getProxyUrl(A),r=t&&t.hostname;if(this._keepAlive&&r&&(e=this._proxyAgent),r||(e=this._agent),e)return e;let n="https:"===A.protocol,i=100;if(this.requestOptions&&(i=this.requestOptions.maxSockets||g.globalAgent.maxSockets),t&&t.hostname){let A;let r={maxSockets:i,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(t.username||t.password)&&{proxyAuth:`${t.username}:${t.password}`}),{host:t.hostname,port:t.port})},o="https:"===t.protocol;e=(n?o?u.httpsOverHttps:u.httpsOverHttp:o?u.httpOverHttps:u.httpOverHttp)(r),this._proxyAgent=e;}if(!e){let A={keepAlive:this._keepAlive,maxSockets:i};e=n?new h.Agent(A):new g.Agent(A),this._agent=e;}return n&&this._ignoreSslError&&(e.options=Object.assign(e.options||{},{rejectUnauthorized:!1})),e;}_getProxyAgentDispatcher(A,e){let t;if(this._keepAlive&&(t=this._proxyAgentDispatcher),t)return t;let r="https:"===A.protocol;return t=new o.ProxyAgent(Object.assign({uri:e.href,pipelining:this._keepAlive?1:0},(e.username||e.password)&&{token:`${e.username}:${e.password}`})),this._proxyAgentDispatcher=t,r&&this._ignoreSslError&&(t.options=Object.assign(t.options.requestTls||{},{rejectUnauthorized:!1})),t;}_performExponentialBackoff(A){return i(this,void 0,void 0,function*(){let e=5*Math.pow(2,A=Math.min(10,A));return new Promise(A=>setTimeout(()=>A(),e));});}_processResponse(A,e){return i(this,void 0,void 0,function*(){return new Promise((t,r)=>i(this,void 0,void 0,function*(){let n,i;let o=A.message.statusCode||0,a={statusCode:o,result:null,headers:{}};o===s.NotFound&&t(a);try{(i=yield A.readBody())&&i.length>0&&(n=e&&e.deserializeDates?JSON.parse(i,function(A,e){if("string"==typeof e){let A=new Date(e);if(!isNaN(A.valueOf()))return A;}return e;}):JSON.parse(i),a.result=n),a.headers=A.message.headers;}catch(A){}if(o>299){let A;let e=new d(n&&n.message?n.message:i&&i.length>0?i:`Failed request: (${o})`,o);e.result=a.result,r(e);}else t(a);}));});}};let p=A=>Object.keys(A).reduce((e,t)=>(e[t.toLowerCase()]=A[t],e),{});}),e3("jnrYh",function(A,e){function t(A){let e;if(!A.hostname)return!1;if(function(A){let e=A.toLowerCase();return"localhost"===e||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]");}(A.hostname))return!0;let t=process.env.no_proxy||process.env.NO_PROXY||"";if(!t)return!1;A.port?e=+A.port:"http:"===A.protocol?e=80:"https:"===A.protocol&&(e=443);let r=[A.hostname.toUpperCase()];for(let A of("number"==typeof e&&r.push(`${r[0]}:${e}`),t.split(",").map(A=>A.trim().toUpperCase()).filter(A=>A)))if("*"===A||r.some(e=>e===A||e.endsWith("."+A)||A.startsWith(".")&&e.endsWith(""+A)))return!0;return!1;}Object.defineProperty(A.exports,"__esModule",{value:!0}),A.exports.checkBypass=A.exports.getProxyUrl=void 0,A.exports.getProxyUrl=function(A){let e="https:"===A.protocol;if(t(A))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new URL(r);}catch(A){if(!r.startsWith("http://")&&!r.startsWith("https://"))return new URL("http://"+r);}},A.exports.checkBypass=t;}),e3("3RDK7",function(A,e){A.exports=no("jZQ4B");}),e3("jZQ4B",function(A,e){var t,r,n,i,o,s;function l(A){var e=this;e.options=A||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||rU.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(A,t,r,n){for(var i=c(t,r,n),o=0,s=e.requests.length;s>o;++o){var a=e.requests[o];if(a.host===i.host&&a.port===i.port){e.requests.splice(o,1),a.request.onSocket(A);return;}}A.destroy(),e.removeSocket(A);});}function E(A,e){var t=this;l.prototype.createSocket.call(t,A,function(r){var n=A.request.getHeader("host"),i=g({},t.options,{socket:r,servername:n?n.replace(/:.*$/,""):A.host}),o=rM.connect(0,i);t.sockets[t.sockets.indexOf(r)]=o,e(o);});}function c(A,e,t){return"string"==typeof A?{host:A,port:e,localAddress:t}:A;}function g(A){for(var e=1,t=arguments.length;t>e;++e){var r=arguments[e];if("object"==typeof r)for(var n=Object.keys(r),i=0,o=n.length;o>i;++i){var s=n[i];void 0!==r[s]&&(A[s]=r[s]);}}return A;}a(A.exports,"httpOverHttp",()=>t,A=>t=A),a(A.exports,"httpsOverHttp",()=>r,A=>r=A),a(A.exports,"httpOverHttps",()=>n,A=>n=A),a(A.exports,"httpsOverHttps",()=>i,A=>i=A),a(A.exports,"debug",()=>o,A=>o=A),t=function(A){var e=new l(A);return e.request=rU.request,e;},r=function(A){var e=new l(A);return e.request=rU.request,e.createSocket=E,e.defaultPort=443,e;},n=function(A){var e=new l(A);return e.request=rx.request,e;},i=function(A){var e=new l(A);return e.request=rx.request,e.createSocket=E,e.defaultPort=443,e;},rO.inherits(l,rG.EventEmitter),l.prototype.addRequest=function(A,e,t,r){var n=this,i=g({request:A},n.options,c(e,t,r));if(n.sockets.length>=this.maxSockets){n.requests.push(i);return;}n.createSocket(i,function(e){function t(){n.emit("free",e,i);}function r(A){n.removeSocket(e),e.removeListener("free",t),e.removeListener("close",r),e.removeListener("agentRemove",r);}e.on("free",t),e.on("close",r),e.on("agentRemove",r),A.onSocket(e);});},l.prototype.createSocket=function(A,e){function t(t,r,a){if(n.removeAllListeners(),r.removeAllListeners(),200!==t.statusCode){s("tunneling socket could not be established, statusCode=%d",t.statusCode),r.destroy();var l=Error("tunneling socket could not be established, statusCode="+t.statusCode);l.code="ECONNRESET",A.request.emit("error",l),i.removeSocket(o);return;}if(a.length>0){s("got illegal response body from proxy"),r.destroy();var l=Error("got illegal response body from proxy");l.code="ECONNRESET",A.request.emit("error",l),i.removeSocket(o);return;}return s("tunneling connection has established"),i.sockets[i.sockets.indexOf(o)]=r,e(r);}var r,n,i=this,o={};i.sockets.push(o),r=g({},i.proxyOptions,{method:"CONNECT",path:A.host+":"+A.port,agent:!1,headers:{host:A.host+":"+A.port}}),A.localAddress&&(r.localAddress=A.localAddress),r.proxyAuth&&(r.headers=r.headers||{},r.headers["Proxy-Authorization"]="Basic "+new Buffer(r.proxyAuth).toString("base64")),s("making CONNECT request"),(n=i.request(r)).useChunkedEncodingByDefault=!1,n.once("response",function(A){A.upgrade=!0;}),n.once("upgrade",function(A,e,r){process.nextTick(function(){t(A,e,r);});}),n.once("connect",t),n.once("error",function(e){n.removeAllListeners(),s("tunneling socket could not be established, cause=%s\n",e.message,e.stack);var t=Error("tunneling socket could not be established, cause="+e.message);t.code="ECONNRESET",A.request.emit("error",t),i.removeSocket(o);}),n.end();},l.prototype.removeSocket=function(A){var e=this.sockets.indexOf(A);if(-1!==e){this.sockets.splice(e,1);var t=this.requests.shift();t&&this.createSocket(t,function(A){t.request.onSocket(A);});}},process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?s=function(){var A=Array.prototype.slice.call(arguments);"string"==typeof A[0]?A[0]="TUNNEL: "+A[0]:A.unshift("TUNNEL:"),console.error.apply(console,A);}:s=function(){},o=s;}),e3("8Z5wh",function(A,e){var t,r,n,i,o,s,l,E;let c;function g(A){return(e,t,r)=>{if("function"==typeof t&&(r=t,t=null),!e||"string"!=typeof e&&"object"!=typeof e&&!(e instanceof URL))throw new h("invalid url");if(null!=t&&"object"!=typeof t)throw new h("invalid opts");if(t&&null!=t.path){if("string"!=typeof t.path)throw new h("invalid opts.path");let A=t.path;t.path.startsWith("/")||(A="/"+A),e=new URL(i.parseOrigin(e).origin+A);}else t||(t="object"==typeof e?e:{}),e=i.parseURL(e);let{agent:n,dispatcher:o=E()}=t;if(n)throw new h("unsupported opts.agent. Did you mean opts.client?");return A.call(o,{...t,origin:e.origin,path:e.search?`${e.pathname}${e.search}`:e.pathname,method:t.method||(t.body?"PUT":"GET")},r);};}a(A.exports,"ProxyAgent",()=>t,A=>t=A),no("acLo8"),r=no("iILaI"),n=no("d1Hoi"),no("8wrqe"),no("iZD2L"),no("lQkIG"),i=no("a5c5d");let{InvalidArgumentError:h}=n;o=no("iuzpQ"),no("EkOIf"),no("8Dpjq"),no("OBbWJ"),no("3tYpW"),no("2zJm3"),s=no("4Pe0Z"),no("2W0VT"),E=(l=no("4WBTe")).getGlobalDispatcher,l.setGlobalDispatcher,no("k14jP"),no("24xhw"),no("9dgiL");try{$68a84d4bda0a554e$import$ddd3d8d4c32dbb7f,c=!0;}catch{c=!1;}if(Object.assign(r.prototype,o),t=s,i.nodeMajor>16||16===i.nodeMajor&&i.nodeMinor>=8){no("mCZlw").Headers,no("iRA0r").Response,no("j76nY").Request,no("jRFDL").FormData,no("bk82a").File,no("blynm").FileReader;let{setGlobalOrigin:A,getGlobalOrigin:e}=no("ktTfx"),{CacheStorage:t}=no("gjFae"),{kConstruct:r}=no("jJUdU");new t(r);}if(i.nodeMajor>=16){let{deleteCookie:A,getCookies:e,getSetCookies:t,setCookie:r}=no("fCK8n"),{parseMIMEType:n,serializeAMimeType:i}=no("g34gh");}if(i.nodeMajor>=18&&c){let{WebSocket:A}=no("2FMXc");}g(o.request),g(o.stream),g(o.pipeline),g(o.connect),g(o.upgrade);}),e3("acLo8",function(A,e){var t,r,n,i,o,s,a,l,E,c,g,h,Q,u,C,I,B,d,f,p,y,m,w,R,D,b,k,N,S,F,v,L,U,x,T,M,G,Y,O,H,J,V,P,_,W,q,j,X,$,Z,K,z,AA,Ae,At,Ar,An,Ai,Ao,As,Aa,Al,AE,Ac,Ag,Ah,AQ,Au,AC,AI,AB;let Ad;function Af(A){rY("ERR_TLS_CERT_ALTNAME_INVALID"!==A.code),this[W][P]=A,Ak(this[R],A);}function Ap(A,e,t){let r=new u(`HTTP/2: "frameError" received - type ${A}, code ${e}`);0===t&&(this[W][P]=r,Ak(this[R],r));}function Ay(){r.destroy(this,new Q("other side closed")),r.destroy(this[W],new Q("other side closed"));}function Am(A){let e=this[R],t=new u('HTTP/2: "GOAWAY" frame received with code '+A);if(e[W]=null,e[Ag]=null,e.destroyed){rY(0===this[v]);let A=e[x].splice(e[V]);for(let e=0;e0){let A=e[x][e[V]];e[x][e[V]++]=null,AG(e,A,t);}e[J]=e[V],rY(0===e[F]),e.emit("disconnect",e[y],[e],t),AL(e);}async function Aw(){let A;let e=process.env.JEST_WORKER_ID?no("kDcUX"):void 0;try{A=await WebAssembly.compile(Buffer.from(no("eM7t9"),"base64"));}catch(t){A=await WebAssembly.compile(Buffer.from(e||no("kDcUX"),"base64"));}return await WebAssembly.instantiate(A,{env:{wasm_on_url:(A,e,t)=>0,wasm_on_status(A,e,t){rY.strictEqual(Az.ptr,A);let r=e-A2+A0.byteOffset;return Az.onStatus(new Aq(A0.buffer,r,t))||0;},wasm_on_message_begin:A=>(rY.strictEqual(Az.ptr,A),Az.onMessageBegin()||0),wasm_on_header_field(A,e,t){rY.strictEqual(Az.ptr,A);let r=e-A2+A0.byteOffset;return Az.onHeaderField(new Aq(A0.buffer,r,t))||0;},wasm_on_header_value(A,e,t){rY.strictEqual(Az.ptr,A);let r=e-A2+A0.byteOffset;return Az.onHeaderValue(new Aq(A0.buffer,r,t))||0;},wasm_on_headers_complete:(A,e,t,r)=>(rY.strictEqual(Az.ptr,A),Az.onHeadersComplete(e,!!t,!!r)||0),wasm_on_body(A,e,t){rY.strictEqual(Az.ptr,A);let r=e-A2+A0.byteOffset;return Az.onBody(new Aq(A0.buffer,r,t))||0;},wasm_on_message_complete:A=>(rY.strictEqual(Az.ptr,A),Az.onMessageComplete()||0)}});}function AR(A){let{socket:e,timeoutType:t,client:n}=A;t===A4?(!e[U]||e.writableNeedDrain||n[F]>1)&&(rY(!A.paused,"cannot be paused while waiting for headers"),r.destroy(e,new g())):t===A9?A.paused||r.destroy(e,new C()):t===A8&&(rY(0===n[F]&&n[q]),r.destroy(e,new u("socket idle timeout")));}function AD(){let{[b]:A}=this;A&&A.readMore();}function Ab(A){let{[R]:e,[b]:t}=this;if(rY("ERR_TLS_CERT_ALTNAME_INVALID"!==A.code),"h2"!==e[AE]&&"ECONNRESET"===A.code&&t.statusCode&&!t.shouldKeepAlive){t.onMessageComplete();return;}this[P]=A,Ak(this[R],A);}function Ak(A,e){if(0===A[F]&&"UND_ERR_INFO"!==e.code&&"UND_ERR_SOCKET"!==e.code){rY(A[J]===A[V]);let t=A[x].splice(A[V]);for(let r=0;r0&&"UND_ERR_INFO"!==t.code){let e=A[x][A[V]];A[x][A[V]++]=null,AG(A,e,t);}A[J]=A[V],rY(0===A[F]),A.emit("disconnect",A[y],[A],t),AL(A);}async function AF(A){rY(!A[M]),rY(!A[W]);let{host:e,hostname:t,protocol:n,port:i}=A[y];if("["===t[0]){let A=t.indexOf("]");rY(-1!==A);let e=t.substring(1,A);rY(rT.isIP(e)),t=e;}A[M]=!0,AX.beforeConnect.hasSubscribers&&AX.beforeConnect.publish({connectParams:{host:e,hostname:t,protocol:n,port:i,servername:A[w],localAddress:A[Aa]},connector:A[AA]});try{let o=await new Promise((r,o)=>{A[AA]({host:e,hostname:t,protocol:n,port:i,servername:A[w],localAddress:A[Aa]},(A,e)=>{A?o(A):r(e);});});if(A.destroyed){r.destroy(o.on("error",()=>{}),new d());return;}if(A[M]=!1,rY(o),"h2"===o.alpnProtocol){AW||(AW=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let e=Ad.connect(A[y],{createConnection:()=>o,peerMaxConcurrentStreams:A[Ah].maxConcurrentStreams});A[AE]="h2",e[R]=A,e[W]=o,e.on("error",Af),e.on("frameError",Ap),e.on("end",Ay),e.on("goaway",Am),e.on("close",AS),e.unref(),A[Ag]=e,o[Ag]=e;}else AZ||(AZ=await AK,AK=null),o[Y]=!1,o[U]=!1,o[m]=!1,o[N]=!1,o[b]=new A3(A,o,AZ);o[Ar]=0,o[At]=A[At],o[R]=A,o[P]=null,o.on("error",Ab).on("readable",AD).on("end",AN).on("close",AS),A[W]=o,AX.connected.hasSubscribers&&AX.connected.publish({connectParams:{host:e,hostname:t,protocol:n,port:i,servername:A[w],localAddress:A[Aa]},connector:A[AA],socket:o}),A.emit("connect",A[y],[A]);}catch(r){if(A.destroyed)return;if(A[M]=!1,AX.connectError.hasSubscribers&&AX.connectError.publish({connectParams:{host:e,hostname:t,protocol:n,port:i,servername:A[w],localAddress:A[Aa]},connector:A[AA],error:r}),"ERR_TLS_CERT_ALTNAME_INVALID"===r.code)for(rY(0===A[F]);A[v]>0&&A[x][A[J]].servername===A[w];){let e=A[x][A[J]++];AG(A,e,r);}else Ak(A,r);A.emit("connectionError",A[y],[A],r);}AL(A);}function Av(A){A[G]=0,A.emit("drain",A[y],[A]);}function AL(A,e){2!==A[S]&&(A[S]=2,function(A,e){for(;;){if(A.destroyed){rY(0===A[v]);return;}if(A[Aj]&&!A[L]){A[Aj](),A[Aj]=null;return;}let t=A[W];if(t&&!t.destroyed&&"h2"!==t.alpnProtocol){if(0===A[L]?!t[Y]&&t.unref&&(t.unref(),t[Y]=!0):t[Y]&&t.ref&&(t.ref(),t[Y]=!1),0===A[L])t[b].timeoutType!==A8&&t[b].setTimeout(A[q],A8);else if(A[F]>0&&t[b].statusCode<200&&t[b].timeoutType!==A4){let e=A[x][A[V]],r=null!=e.headersTimeout?e.headersTimeout:A[Z];t[b].setTimeout(r,A4);}}if(A[D])A[G]=2;else if(2===A[G]){e?(A[G]=1,process.nextTick(Av,A)):Av(A);continue;}if(0===A[v]||A[F]>=(A[_]||1))return;let n=A[x][A[J]];if("https:"===A[y].protocol&&A[w]!==n.servername){if(A[F]>0)return;if(A[w]=n.servername,t&&t.servername!==n.servername){r.destroy(t,new u("servername changed"));return;}}if(A[M])return;if(!t&&!A[Ag]){AF(A);return;}if(t.destroyed||t[U]||t[m]||t[N]||A[F]>0&&!n.idempotent||A[F]>0&&(n.upgrade||"CONNECT"===n.method)||A[F]>0&&0!==r.bodyLength(n.body)&&(r.isStream(n.body)||r.isAsyncIterable(n.body)))return;!n.aborted&&function(A,e){if("h2"===A[AE]){(function(A,e,t){let n,o;function s(){l?r.isBuffer(l)?(rY(p===l.byteLength,"buffer body must have content length"),o.cork(),o.write(l),o.uncork(),o.end(),t.onBodySent(l),t.onRequestSent()):r.isBlobLike(l)?"function"==typeof l.stream?AM({client:A,request:t,contentLength:p,h2stream:o,expectsPayload:f,body:l.stream(),socket:A[W],header:""}):AT({body:l,client:A,request:t,contentLength:p,expectsPayload:f,h2stream:o,header:"",socket:A[W]}):r.isStream(l)?Ax({body:l,client:A,request:t,contentLength:p,expectsPayload:f,socket:A[W],h2stream:o,header:""}):r.isIterable(l)?AM({body:l,client:A,request:t,contentLength:p,expectsPayload:f,header:"",h2stream:o,socket:A[W]}):rY(!1):t.onRequestSent();}let{body:l,method:E,path:g,host:h,upgrade:Q,expectContinue:C,signal:I,headers:B}=t;if(n="string"==typeof B?i[Au](B.trim()):B,Q)return AG(A,t,Error("Upgrade not supported for H2"));try{t.onConnect(e=>{t.aborted||t.completed||AG(A,t,e||new c());});}catch(e){AG(A,t,e);}if(t.aborted)return;let d=A[Ah];if(n[AY]=h||A[Ac],n[AO]=E,"CONNECT"===E)return e.ref(),(o=e.request(n,{endStream:!1,signal:I})).id&&!o.pending?(t.onUpgrade(null,null,o),++d.openStreams):o.once("ready",()=>{t.onUpgrade(null,null,o),++d.openStreams;}),o.once("close",()=>{d.openStreams-=1,0===d.openStreams&&e.unref();});n[AH]=g,n[AJ]="https";let f="PUT"===E||"POST"===E||"PATCH"===E;l&&"function"==typeof l.read&&l.read(0);let p=r.bodyLength(l);if(null==p&&(p=t.contentLength),0!==p&&f||(p=null),AU(E)&&p>0&&null!=t.contentLength&&t.contentLength!==p){if(A[z])return AG(A,t,new a());process.emitWarning(new a());}null!=p&&(rY(l,"no body must not have content length"),n[AV]=""+p),e.ref();let y="GET"===E||"HEAD"===E;C?(n[AP]="100-continue",(o=e.request(n,{endStream:y,signal:I})).once("continue",s)):(o=e.request(n,{endStream:y,signal:I}),s()),++d.openStreams,o.once("response",A=>{let{[A_]:e,...r}=A;!1===t.onHeaders(+e,r,o.resume.bind(o),"")&&o.pause();}),o.once("end",()=>{t.onComplete([]);}),o.on("data",A=>{!1===t.onData(A)&&o.pause();}),o.once("close",()=>{d.openStreams-=1,0===d.openStreams&&e.unref();}),o.once("error",function(e){!A[Ag]||A[Ag].destroyed||this.closed||this.destroyed||(d.streams-=1,r.destroy(o,e));}),o.once("frameError",(e,n)=>{let i=new u(`HTTP/2: "frameError" received - type ${e}, code ${n}`);AG(A,t,i),!A[Ag]||A[Ag].destroyed||this.closed||this.destroyed||(d.streams-=1,r.destroy(o,i));});})(A,A[Ag],e);return;}let{body:t,method:n,path:o,host:s,upgrade:l,headers:E,blocking:g,reset:h}=e,Q="PUT"===n||"POST"===n||"PATCH"===n;t&&"function"==typeof t.read&&t.read(0);let C=r.bodyLength(t),I=C;if(null===I&&(I=e.contentLength),0!==I||Q||(I=null),AU(n)&&I>0&&null!==e.contentLength&&e.contentLength!==I){if(A[z])return AG(A,e,new a()),!1;process.emitWarning(new a());}let B=A[W];try{e.onConnect(t=>{e.aborted||e.completed||(AG(A,e,t||new c()),r.destroy(B,new u("aborted")));});}catch(t){AG(A,e,t);}if(e.aborted)return!1;"HEAD"===n&&(B[m]=!0),(l||"CONNECT"===n)&&(B[m]=!0),null!=h&&(B[m]=h),A[At]&&B[Ar]++>=A[At]&&(B[m]=!0),g&&(B[N]=!0);let d=`${n} ${o} HTTP/1.1\r `;return"string"==typeof s?d+=`host: ${s}\r `:d+=A[H],l?d+=`connection: upgrade\r upgrade: ${l}\r `:A[_]&&!B[m]?d+="connection: keep-alive\r\n":d+="connection: close\r\n",E&&(d+=E),AX.sendHeaders.hasSubscribers&&AX.sendHeaders.publish({request:e,headers:d,socket:B}),t&&0!==C?r.isBuffer(t)?(rY(I===t.byteLength,"buffer body must have content length"),B.cork(),B.write(`${d}content-length: ${I}\r \r `,"latin1"),B.write(t),B.uncork(),e.onBodySent(t),e.onRequestSent(),Q||(B[m]=!0)):r.isBlobLike(t)?"function"==typeof t.stream?AM({body:t.stream(),client:A,request:e,socket:B,contentLength:I,header:d,expectsPayload:Q}):AT({body:t,client:A,request:e,socket:B,contentLength:I,header:d,expectsPayload:Q}):r.isStream(t)?Ax({body:t,client:A,request:e,socket:B,contentLength:I,header:d,expectsPayload:Q}):r.isIterable(t)?AM({body:t,client:A,request:e,socket:B,contentLength:I,header:d,expectsPayload:Q}):rY(!1):(0===I?B.write(`${d}content-length: 0\r \r `,"latin1"):(rY(null===I,"no body must not have content length"),B.write(`${d}\r `,"latin1")),e.onRequestSent()),!0;}(A,n)?A[J]++:A[x].splice(A[J],1);}}(A,e),A[S]=0,A[V]>256&&(A[x].splice(0,A[V]),A[J]-=A[V],A[V]=0));}function AU(A){return"GET"!==A&&"HEAD"!==A&&"OPTIONS"!==A&&"TRACE"!==A&&"CONNECT"!==A;}function Ax({h2stream:A,body:e,client:n,request:i,socket:o,contentLength:s,header:a,expectsPayload:l}){if(rY(0!==s||0===n[F],"stream body cannot be pipelined"),"h2"===n[AE]){function E(A){i.onBodySent(A);}let n=t(e,A,t=>{t?(r.destroy(e,t),r.destroy(A,t)):i.onRequestSent();});n.on("data",E),n.once("end",()=>{n.removeListener("data",E),r.destroy(n);});return;}let g=!1,h=new A5({socket:o,request:i,contentLength:s,client:n,expectsPayload:l,header:a}),Q=function(A){if(!g)try{!h.write(A)&&this.pause&&this.pause();}catch(A){r.destroy(this,A);}},u=function(){!g&&e.resume&&e.resume();},C=function(){if(g)return;let A=new c();queueMicrotask(()=>I(A));},I=function(A){if(!g){if(g=!0,rY(o.destroyed||o[U]&&n[F]<=1),o.off("drain",u).off("error",I),e.removeListener("data",Q).removeListener("end",I).removeListener("error",I).removeListener("close",C),!A)try{h.end();}catch(e){A=e;}h.destroy(A),A&&("UND_ERR_INFO"!==A.code||"reset"!==A.message)?r.destroy(e,A):r.destroy(e);}};e.on("data",Q).on("end",I).on("error",I).on("close",C),e.resume&&e.resume(),o.on("drain",u).on("error",I);}async function AT({h2stream:A,body:e,client:t,request:n,socket:i,contentLength:o,header:s,expectsPayload:l}){rY(o===e.size,"blob body must have content length");let E="h2"===t[AE];try{if(null!=o&&o!==e.size)throw new a();let r=Buffer.from(await e.arrayBuffer());E?(A.cork(),A.write(r),A.uncork()):(i.cork(),i.write(`${s}content-length: ${o}\r \r `,"latin1"),i.write(r),i.uncork()),n.onBodySent(r),n.onRequestSent(),l||(i[m]=!0),AL(t);}catch(e){r.destroy(E?A:i,e);}}async function AM({h2stream:A,body:e,client:t,request:r,socket:n,contentLength:i,header:o,expectsPayload:s}){function a(){if(l){let A=l;l=null,A();}}rY(0!==i||0===t[F],"iterator body cannot be pipelined");let l=null,E=()=>new Promise((A,e)=>{rY(null===l),n[P]?e(n[P]):l=A;});if("h2"===t[AE]){A.on("close",a).on("drain",a);try{for await(let t of e){if(n[P])throw n[P];let e=A.write(t);r.onBodySent(t),e||(await E());}}catch(e){A.destroy(e);}finally{r.onRequestSent(),A.end(),A.off("close",a).off("drain",a);}return;}n.on("close",a).on("drain",a);let c=new A5({socket:n,request:r,contentLength:i,client:t,expectsPayload:s,header:o});try{for await(let A of e){if(n[P])throw n[P];c.write(A)||(await E());}c.end();}catch(A){c.destroy(A);}finally{n.off("close",a).off("drain",a);}}function AG(A,e,t){try{e.onError(t),rY(e.aborted);}catch(e){A.emit("error",e);}}t=rH.pipeline,r=no("a5c5d"),n=no("LOD3G"),i=no("gjBJN"),o=no("3lDcb"),a=(s=no("d1Hoi")).RequestContentLengthMismatchError,l=s.ResponseContentLengthMismatchError,E=s.InvalidArgumentError,c=s.RequestAbortedError,g=s.HeadersTimeoutError,h=s.HeadersOverflowError,Q=s.SocketError,u=s.InformationalError,C=s.BodyTimeoutError,I=s.HTTPParserError,B=s.ResponseExceededMaxSizeError,d=s.ClientDestroyedError,f=no("EkOIf"),y=(p=no("fYjBn")).kUrl,m=p.kReset,w=p.kServerName,R=p.kClient,D=p.kBusy,b=p.kParser,k=p.kConnect,N=p.kBlocking,S=p.kResuming,F=p.kRunning,v=p.kPending,L=p.kSize,U=p.kWriting,x=p.kQueue,T=p.kConnected,M=p.kConnecting,G=p.kNeedDrain,Y=p.kNoRef,O=p.kKeepAliveDefaultTimeout,H=p.kHostHeader,J=p.kPendingIdx,V=p.kRunningIdx,P=p.kError,_=p.kPipelining,W=p.kSocket,q=p.kKeepAliveTimeoutValue,j=p.kMaxHeadersSize,X=p.kKeepAliveMaxTimeout,$=p.kKeepAliveTimeoutThreshold,Z=p.kHeadersTimeout,K=p.kBodyTimeout,z=p.kStrictContentLength,AA=p.kConnector,Ae=p.kMaxRedirections,At=p.kMaxRequests,Ar=p.kCounter,An=p.kClose,Ai=p.kDestroy,Ao=p.kDispatch,As=p.kInterceptors,Aa=p.kLocalAddress,Al=p.kMaxResponseSize,AE=p.kHTTPConnVersion,Ac=p.kHost,Ag=p.kHTTP2Session,Ah=p.kHTTP2SessionState,AQ=p.kHTTP2BuildRequest,Au=p.kHTTP2CopyHeaders,AC=p.kHTTP1BuildRequest;try{Ad=$76dfc8b314c27794$import$dc5c58500bc5a0ce;}catch{Ad={constants:{}};}let{constants:{HTTP2_HEADER_AUTHORITY:AY,HTTP2_HEADER_METHOD:AO,HTTP2_HEADER_PATH:AH,HTTP2_HEADER_SCHEME:AJ,HTTP2_HEADER_CONTENT_LENGTH:AV,HTTP2_HEADER_EXPECT:AP,HTTP2_HEADER_STATUS:A_}}=Ad,AW=!1,Aq=Buffer[Symbol.species],Aj=Symbol(),AX={};try{let A=$76dfc8b314c27794$import$448217ca25882f04;AX.sendHeaders=A.channel("undici:client:sendHeaders"),AX.beforeConnect=A.channel("undici:client:beforeConnect"),AX.connectError=A.channel("undici:client:connectError"),AX.connected=A.channel("undici:client:connected");}catch{AX.sendHeaders={hasSubscribers:!1},AX.beforeConnect={hasSubscribers:!1},AX.connectError={hasSubscribers:!1},AX.connected={hasSubscribers:!1};}AI=no("h2D1B"),AB=no("9dgiL");let A$=Buffer.alloc(0),AZ=null,AK=Aw();AK.catch();let Az=null,A0=null,A1=0,A2=null,A4=1,A9=2,A8=3;class A3{constructor(A,e,{exports:t}){rY(Number.isFinite(A[j])&&A[j]>0),this.llhttp=t,this.ptr=this.llhttp.llhttp_alloc(AI.TYPE.RESPONSE),this.client=A,this.socket=e,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=A[j],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=A[Al];}setTimeout(A,e){this.timeoutType=e,A!==this.timeoutValue?(n.clearTimeout(this.timeout),A?(this.timeout=n.setTimeout(AR,A,this),this.timeout.unref&&this.timeout.unref()):this.timeout=null,this.timeoutValue=A):this.timeout&&this.timeout.refresh&&this.timeout.refresh();}resume(){!this.socket.destroyed&&this.paused&&(rY(null!=this.ptr),rY(null==Az),this.llhttp.llhttp_resume(this.ptr),rY(this.timeoutType===A9),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||A$),this.readMore());}readMore(){for(;!this.paused&&this.ptr;){let A=this.socket.read();if(null===A)break;this.execute(A);}}execute(A){rY(null!=this.ptr),rY(null==Az),rY(!this.paused);let{socket:e,llhttp:t}=this;A.length>A1&&(A2&&t.free(A2),A1=4096*Math.ceil(A.length/4096),A2=t.malloc(A1)),new Uint8Array(t.memory.buffer,A2,A1).set(A);try{let r;try{A0=A,Az=this,r=t.llhttp_execute(this.ptr,A2,A.length);}catch(A){throw A;}finally{Az=null,A0=null;}let n=t.llhttp_get_error_pos(this.ptr)-A2;if(r===AI.ERROR.PAUSED_UPGRADE)this.onUpgrade(A.slice(n));else if(r===AI.ERROR.PAUSED)this.paused=!0,e.unshift(A.slice(n));else if(r!==AI.ERROR.OK){let e=t.llhttp_get_error_reason(this.ptr),i="";if(e){let A=new Uint8Array(t.memory.buffer,e).indexOf(0);i="Response does not match the HTTP/1.1 protocol ("+Buffer.from(t.memory.buffer,e,A).toString()+")";}throw new I(i,AI.ERROR[r],A.slice(n));}}catch(A){r.destroy(e,A);}}destroy(){rY(null!=this.ptr),rY(null==Az),this.llhttp.llhttp_free(this.ptr),this.ptr=null,n.clearTimeout(this.timeout),this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.paused=!1;}onStatus(A){this.statusText=A.toString();}onMessageBegin(){let{socket:A,client:e}=this;if(A.destroyed||!e[x][e[V]])return-1;}onHeaderField(A){let e=this.headers.length;(1&e)==0?this.headers.push(A):this.headers[e-1]=Buffer.concat([this.headers[e-1],A]),this.trackHeader(A.length);}onHeaderValue(A){let e=this.headers.length;(1&e)==1?(this.headers.push(A),e+=1):this.headers[e-1]=Buffer.concat([this.headers[e-1],A]);let t=this.headers[e-2];10===t.length&&"keep-alive"===t.toString().toLowerCase()?this.keepAlive+=A.toString():10===t.length&&"connection"===t.toString().toLowerCase()?this.connection+=A.toString():14===t.length&&"content-length"===t.toString().toLowerCase()&&(this.contentLength+=A.toString()),this.trackHeader(A.length);}trackHeader(A){this.headersSize+=A,this.headersSize>=this.headersMaxSize&&r.destroy(this.socket,new h());}onUpgrade(A){let{upgrade:e,client:t,socket:n,headers:i,statusCode:o}=this;rY(e);let s=t[x][t[V]];rY(s),rY(!n.destroyed),rY(n===t[W]),rY(!this.paused),rY(s.upgrade||"CONNECT"===s.method),this.statusCode=null,this.statusText="",this.shouldKeepAlive=null,rY(this.headers.length%2==0),this.headers=[],this.headersSize=0,n.unshift(A),n[b].destroy(),n[b]=null,n[R]=null,n[P]=null,n.removeListener("error",Ab).removeListener("readable",AD).removeListener("end",AN).removeListener("close",AS),t[W]=null,t[x][t[V]++]=null,t.emit("disconnect",t[y],[t],new u("upgrade"));try{s.onUpgrade(o,i,n);}catch(A){r.destroy(n,A);}AL(t);}onHeadersComplete(A,e,t){let{client:n,socket:i,headers:o,statusText:s}=this;if(i.destroyed)return-1;let a=n[x][n[V]];if(!a)return-1;if(rY(!this.upgrade),rY(this.statusCode<200),100===A)return r.destroy(i,new Q("bad response",r.getSocketInfo(i))),-1;if(e&&!a.upgrade)return r.destroy(i,new Q("bad upgrade",r.getSocketInfo(i))),-1;if(rY.strictEqual(this.timeoutType,A4),this.statusCode=A,this.shouldKeepAlive=t||"HEAD"===a.method&&!i[m]&&"keep-alive"===this.connection.toLowerCase(),this.statusCode>=200){let A=null!=a.bodyTimeout?a.bodyTimeout:n[K];this.setTimeout(A,A9);}else this.timeout&&this.timeout.refresh&&this.timeout.refresh();if("CONNECT"===a.method||e)return rY(1===n[F]),this.upgrade=!0,2;if(rY(this.headers.length%2==0),this.headers=[],this.headersSize=0,this.shouldKeepAlive&&n[_]){let A=this.keepAlive?r.parseKeepAliveTimeout(this.keepAlive):null;if(null!=A){let e=Math.min(A-n[$],n[X]);e<=0?i[m]=!0:n[q]=e;}else n[q]=n[O];}else i[m]=!0;let l=!1===a.onHeaders(A,o,this.resume,s);return a.aborted?-1:"HEAD"===a.method||A<200?1:(i[N]&&(i[N]=!1,AL(n)),l?AI.ERROR.PAUSED:0);}onBody(A){let{client:e,socket:t,statusCode:n,maxResponseSize:i}=this;if(t.destroyed)return-1;let o=e[x][e[V]];return(rY(o),rY.strictEqual(this.timeoutType,A9),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),rY(n>=200),i>-1&&this.bytesRead+A.length>i)?(r.destroy(t,new B()),-1):(this.bytesRead+=A.length,!1===o.onData(A))?AI.ERROR.PAUSED:void 0;}onMessageComplete(){let{client:A,socket:e,statusCode:t,upgrade:n,headers:i,contentLength:o,bytesRead:s,shouldKeepAlive:a}=this;if(e.destroyed&&(!t||a))return-1;if(n)return;let E=A[x][A[V]];if(rY(E),rY(t>=100),this.statusCode=null,this.statusText="",this.bytesRead=0,this.contentLength="",this.keepAlive="",this.connection="",rY(this.headers.length%2==0),this.headers=[],this.headersSize=0,!(t<200)){if("HEAD"!==E.method&&o&&s!==parseInt(o,10))return r.destroy(e,new l()),-1;if(E.onComplete(i),A[x][A[V]++]=null,e[U])return rY.strictEqual(A[F],0),r.destroy(e,new u("reset")),AI.ERROR.PAUSED;if(!a)return r.destroy(e,new u("reset")),AI.ERROR.PAUSED;if(e[m]&&0===A[F])return r.destroy(e,new u("reset")),AI.ERROR.PAUSED;1===A[_]?setImmediate(AL,A):AL(A);}}}class A5{constructor({socket:A,request:e,contentLength:t,client:r,expectsPayload:n,header:i}){this.socket=A,this.request=e,this.contentLength=t,this.client=r,this.bytesWritten=0,this.expectsPayload=n,this.header=i,A[U]=!0;}write(A){let{socket:e,request:t,contentLength:r,client:n,bytesWritten:i,expectsPayload:o,header:s}=this;if(e[P])throw e[P];if(e.destroyed)return!1;let l=Buffer.byteLength(A);if(!l)return!0;if(null!==r&&i+l>r){if(n[z])throw new a();process.emitWarning(new a());}e.cork(),0===i&&(o||(e[m]=!0),null===r?e.write(`${s}transfer-encoding: chunked\r `,"latin1"):e.write(`${s}content-length: ${r}\r \r `,"latin1")),null===r&&e.write(`\r ${l.toString(16)}\r `,"latin1"),this.bytesWritten+=l;let E=e.write(A);return e.uncork(),t.onBodySent(A),!E&&e[b].timeout&&e[b].timeoutType===A4&&e[b].timeout.refresh&&e[b].timeout.refresh(),E;}end(){let{socket:A,contentLength:e,client:t,bytesWritten:r,expectsPayload:n,header:i,request:o}=this;if(o.onRequestSent(),A[U]=!1,A[P])throw A[P];if(!A.destroyed){if(0===r?n?A.write(`${i}content-length: 0\r \r `,"latin1"):A.write(`${i}\r `,"latin1"):null===e&&A.write("\r\n0\r\n\r\n","latin1"),null!==e&&r!==e){if(t[z])throw new a();process.emitWarning(new a());}A[b].timeout&&A[b].timeoutType===A4&&A[b].timeout.refresh&&A[b].timeout.refresh(),AL(t);}}destroy(A){let{socket:e,client:t}=this;e[U]=!1,A&&(rY(t[F]<=1,"pipeline should only contain this request"),r.destroy(e,A));}}A.exports=class extends o{constructor(A,{interceptors:e,maxHeaderSize:t,headersTimeout:n,socketTimeout:i,requestTimeout:o,connectTimeout:s,bodyTimeout:a,idleTimeout:l,keepAlive:c,keepAliveTimeout:g,maxKeepAliveTimeout:h,keepAliveMaxTimeout:Q,keepAliveTimeoutThreshold:u,socketPath:C,pipelining:I,tls:B,strictContentLength:d,maxCachedSessions:p,maxRedirections:m,connect:R,maxRequestsPerClient:D,localAddress:b,maxResponseSize:k,autoSelectFamily:N,autoSelectFamilyAttemptTimeout:F,allowH2:v,maxConcurrentStreams:L}={}){if(super(),void 0!==c)throw new E("unsupported keepAlive, use pipelining=0 instead");if(void 0!==i)throw new E("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(void 0!==o)throw new E("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(void 0!==l)throw new E("unsupported idleTimeout, use keepAliveTimeout instead");if(void 0!==h)throw new E("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead");if(null!=t&&!Number.isFinite(t))throw new E("invalid maxHeaderSize");if(null!=C&&"string"!=typeof C)throw new E("invalid socketPath");if(null!=s&&(!Number.isFinite(s)||s<0))throw new E("invalid connectTimeout");if(null!=g&&(!Number.isFinite(g)||g<=0))throw new E("invalid keepAliveTimeout");if(null!=Q&&(!Number.isFinite(Q)||Q<=0))throw new E("invalid keepAliveMaxTimeout");if(null!=u&&!Number.isFinite(u))throw new E("invalid keepAliveTimeoutThreshold");if(null!=n&&(!Number.isInteger(n)||n<0))throw new E("headersTimeout must be a positive integer or zero");if(null!=a&&(!Number.isInteger(a)||a<0))throw new E("bodyTimeout must be a positive integer or zero");if(null!=R&&"function"!=typeof R&&"object"!=typeof R)throw new E("connect must be a function or an object");if(null!=m&&(!Number.isInteger(m)||m<0))throw new E("maxRedirections must be a positive number");if(null!=D&&(!Number.isInteger(D)||D<0))throw new E("maxRequestsPerClient must be a positive number");if(null!=b&&("string"!=typeof b||0===rT.isIP(b)))throw new E("localAddress must be valid string IP address");if(null!=k&&(!Number.isInteger(k)||k<-1))throw new E("maxResponseSize must be a positive number");if(null!=F&&(!Number.isInteger(F)||F<-1))throw new E("autoSelectFamilyAttemptTimeout must be a positive number");if(null!=v&&"boolean"!=typeof v)throw new E("allowH2 must be a valid boolean value");if(null!=L&&("number"!=typeof L||L<1))throw new E("maxConcurrentStreams must be a possitive integer, greater than 0");"function"!=typeof R&&(R=f({...B,maxCachedSessions:p,allowH2:v,socketPath:C,timeout:s,...(r.nodeHasAutoSelectFamily&&N?{autoSelectFamily:N,autoSelectFamilyAttemptTimeout:F}:void 0),...R})),this[As]=e&&e.Client&&Array.isArray(e.Client)?e.Client:[AB({maxRedirections:m})],this[y]=r.parseOrigin(A),this[AA]=R,this[W]=null,this[_]=null!=I?I:1,this[j]=t||rU.maxHeaderSize,this[O]=null==g?4e3:g,this[X]=null==Q?6e5:Q,this[$]=null==u?1e3:u,this[q]=this[O],this[w]=null,this[Aa]=null!=b?b:null,this[S]=0,this[G]=0,this[H]=`host: ${this[y].hostname}${this[y].port?":"+this[y].port:""}\r `,this[K]=null!=a?a:3e5,this[Z]=null!=n?n:3e5,this[z]=null==d||d,this[Ae]=m,this[At]=D,this[Aj]=null,this[Al]=k>-1?k:-1,this[AE]="h1",this[Ag]=null,this[Ah]=v?{openStreams:0,maxConcurrentStreams:null!=L?L:100}:null,this[Ac]=`${this[y].hostname}${this[y].port?":"+this[y].port:""}`,this[x]=[],this[V]=0,this[J]=0;}get pipelining(){return this[_];}set pipelining(A){this[_]=A,AL(this,!0);}get[v](){return this[x].length-this[J];}get[F](){return this[J]-this[V];}get[L](){return this[x].length-this[V];}get[T](){return!!this[W]&&!this[M]&&!this[W].destroyed;}get[D](){let A=this[W];return A&&(A[m]||A[U]||A[N])||this[L]>=(this[_]||1)||this[v]>0;}[k](A){AF(this),this.once("connect",A);}[Ao](A,e){let t=A.origin||this[y].origin,n="h2"===this[AE]?i[AQ](t,A,e):i[AC](t,A,e);return this[x].push(n),this[S]||(null==r.bodyLength(n.body)&&r.isIterable(n.body)?(this[S]=1,process.nextTick(AL,this)):AL(this,!0)),this[S]&&2!==this[G]&&this[D]&&(this[G]=2),this[G]<2;}async[An](){return new Promise(A=>{this[L]?this[Aj]=A:A(null);});}async[Ai](A){return new Promise(e=>{let t=this[x].splice(this[J]);for(let e=0;e{this[Aj]&&(this[Aj](),this[Aj]=null),e();};null!=this[Ag]&&(r.destroy(this[Ag],A),this[Ag]=null,this[Ah]=null),this[W]?r.destroy(this[W].on("close",n),A):queueMicrotask(n),AL(this);});}};}),e3("a5c5d",function(A,e){var t,r,n,i,o,s,a;let l;function E(A){return A&&"object"==typeof A&&"function"==typeof A.pipe&&"function"==typeof A.on;}function c(A){return s&&A instanceof s||A&&"object"==typeof A&&("function"==typeof A.stream||"function"==typeof A.arrayBuffer)&&/^(Blob|File)$/.test(A[Symbol.toStringTag]);}function g(A){if("string"==typeof A){if(A=new URL(A),!/^https?:/.test(A.origin||A.protocol))throw new o("Invalid URL protocol: the URL must start with `http:` or `https:`.");return A;}if(!A||"object"!=typeof A)throw new o("Invalid URL: The URL argument must be a non-null object.");if(!/^https?:/.test(A.origin||A.protocol))throw new o("Invalid URL protocol: the URL must start with `http:` or `https:`.");if(!(A instanceof URL)){if(null!=A.port&&""!==A.port&&!Number.isFinite(parseInt(A.port)))throw new o("Invalid URL: port must be a valid integer or a string representation of an integer.");if(null!=A.path&&"string"!=typeof A.path)throw new o("Invalid URL path: the path must be a string or null/undefined.");if(null!=A.pathname&&"string"!=typeof A.pathname)throw new o("Invalid URL pathname: the pathname must be a string or null/undefined.");if(null!=A.hostname&&"string"!=typeof A.hostname)throw new o("Invalid URL hostname: the hostname must be a string or null/undefined.");if(null!=A.origin&&"string"!=typeof A.origin)throw new o("Invalid URL origin: the origin must be a string or null/undefined.");let e=null!=A.port?A.port:"https:"===A.protocol?443:80,t=null!=A.origin?A.origin:`${A.protocol}//${A.hostname}:${e}`,r=null!=A.path?A.path:`${A.pathname||""}${A.search||""}`;t.endsWith("/")&&(t=t.substring(0,t.length-1)),r&&!r.startsWith("/")&&(r="/"+r),A=new URL(t+r);}return A;}function h(A){return!A||!!(A.destroyed||A[r]);}function Q(A){let e=A&&A._readableState;return h(A)&&e&&!e.endEmitted;}function u(A){return A instanceof Uint8Array||Buffer.isBuffer(A);}async function*C(A){for await(let e of A)yield Buffer.isBuffer(e)?e:Buffer.from(e);}r=(t=no("fYjBn")).kDestroyed,n=t.kBodyUsed,i=rU.IncomingMessage,o=no("d1Hoi").InvalidArgumentError,s=rJ.Blob,a=rV.stringify;let[I,B]=process.versions.node.split(".").map(A=>+A),d=!!String.prototype.toWellFormed,f=Object.create(null);f.enumerable=!0,A.exports={kEnumerableProperty:f,nop:function(){},isDisturbed:function(A){return!!(A&&(rH.isDisturbed?rH.isDisturbed(A)||A[n]:A[n]||A.readableDidRead||A._readableState&&A._readableState.dataEmitted||Q(A)));},isErrored:function(A){return!!(A&&(rH.isErrored?rH.isErrored(A):/state: 'errored'/.test(rO.inspect(A))));},isReadable:function(A){return!!(A&&(rH.isReadable?rH.isReadable(A):/state: 'readable'/.test(rO.inspect(A))));},toUSVString:function(A){return d?(""+A).toWellFormed():rO.toUSVString?rO.toUSVString(A):""+A;},isReadableAborted:Q,isBlobLike:c,parseOrigin:function(A){if("/"!==(A=g(A)).pathname||A.search||A.hash)throw new o("invalid url");return A;},parseURL:g,getServerName:function(A){if(!A)return null;rY.strictEqual(typeof A,"string");let e=function(A){if("["===A[0]){let e=A.indexOf("]");return rY(-1!==e),A.substring(1,e);}let e=A.indexOf(":");return-1===e?A:A.substring(0,e);}(A);return rT.isIP(e)?"":e;},isStream:E,isIterable:function(A){return!!(null!=A&&("function"==typeof A[Symbol.iterator]||"function"==typeof A[Symbol.asyncIterator]));},isAsyncIterable:function(A){return!!(null!=A&&"function"==typeof A[Symbol.asyncIterator]);},isDestroyed:h,parseRawHeaders:function(A){let e=[],t=!1,r=-1;for(let n=0;nA.toString("utf8")):e[r]=A[t+1].toString("utf8");}return"content-length"in e&&"content-disposition"in e&&(e["content-disposition"]=Buffer.from(e["content-disposition"]).toString("latin1")),e;},parseKeepAliveTimeout:function(A){let e=A.toString().match(/timeout=(\d+)/);return e?1e3*parseInt(e[1],10):null;},destroy:function(A,e){null==A||!E(A)||h(A)||("function"==typeof A.destroy?(Object.getPrototypeOf(A).constructor===i&&(A.socket=null),A.destroy(e)):e&&process.nextTick((A,e)=>{A.emit("error",e);},A,e),!0===A.destroyed||(A[r]=!0));},bodyLength:function(A){if(null==A)return 0;if(E(A)){let e=A._readableState;return e&&!1===e.objectMode&&!0===e.ended&&Number.isFinite(e.length)?e.length:null;}return c(A)?null!=A.size?A.size:null:u(A)?A.byteLength:null;},deepClone:function(A){return JSON.parse(JSON.stringify(A));},ReadableStreamFrom:function(A){let e;return(l||(l=rP.ReadableStream),l.from)?l.from(C(A)):new l({async start(){e=A[Symbol.asyncIterator]();},async pull(A){let{done:t,value:r}=await e.next();if(t)queueMicrotask(()=>{A.close();});else{let e=Buffer.isBuffer(r)?r:Buffer.from(r);A.enqueue(new Uint8Array(e));}return A.desiredSize>0;},async cancel(A){await e.return();}},0);},isBuffer:u,validateHandler:function(A,e,t){if(!A||"object"!=typeof A)throw new o("handler must be an object");if("function"!=typeof A.onConnect)throw new o("invalid onConnect method");if("function"!=typeof A.onError)throw new o("invalid onError method");if("function"!=typeof A.onBodySent&&void 0!==A.onBodySent)throw new o("invalid onBodySent method");if(t||"CONNECT"===e){if("function"!=typeof A.onUpgrade)throw new o("invalid onUpgrade method");}else{if("function"!=typeof A.onHeaders)throw new o("invalid onHeaders method");if("function"!=typeof A.onData)throw new o("invalid onData method");if("function"!=typeof A.onComplete)throw new o("invalid onComplete method");}},getSocketInfo:function(A){return{localAddress:A.localAddress,localPort:A.localPort,remoteAddress:A.remoteAddress,remotePort:A.remotePort,remoteFamily:A.remoteFamily,timeout:A.timeout,bytesWritten:A.bytesWritten,bytesRead:A.bytesRead};},isFormDataLike:function(A){return A&&"object"==typeof A&&"function"==typeof A.append&&"function"==typeof A.delete&&"function"==typeof A.get&&"function"==typeof A.getAll&&"function"==typeof A.has&&"function"==typeof A.set&&"FormData"===A[Symbol.toStringTag];},buildURL:function(A,e){if(A.includes("?")||A.includes("#"))throw Error('Query params cannot be passed when url already contains "?" or "#".');let t=a(e);return t&&(A+="?"+t),A;},throwIfAborted:function(A){if(A){if("function"==typeof A.throwIfAborted)A.throwIfAborted();else if(A.aborted){let A=Error("The operation was aborted");throw A.name="AbortError",A;}}},addAbortListener:function(A,e){return"addEventListener"in A?(A.addEventListener("abort",e,{once:!0}),()=>A.removeEventListener("abort",e)):(A.addListener("abort",e),()=>A.removeListener("abort",e));},parseRangeHeader:function(A){if(null==A||""===A)return{start:0,end:null,size:null};let e=A?A.match(/^bytes (\d+)-(\d+)\/(\d+)?$/):null;return e?{start:parseInt(e[1]),end:e[2]?parseInt(e[2]):null,size:e[3]?parseInt(e[3]):null}:null;},nodeMajor:I,nodeMinor:B,nodeHasAutoSelectFamily:I>18||18===I&&B>=13,safeHTTPMethods:["GET","HEAD","OPTIONS","TRACE"]};}),e3("fYjBn",function(A,e){A.exports={kClose:Symbol(),kDestroy:Symbol(),kDispatch:Symbol(),kUrl:Symbol(),kWriting:Symbol(),kResuming:Symbol(),kQueue:Symbol(),kConnect:Symbol(),kConnecting:Symbol(),kHeadersList:Symbol(),kKeepAliveDefaultTimeout:Symbol(),kKeepAliveMaxTimeout:Symbol(),kKeepAliveTimeoutThreshold:Symbol(),kKeepAliveTimeoutValue:Symbol(),kKeepAlive:Symbol(),kHeadersTimeout:Symbol(),kBodyTimeout:Symbol(),kServerName:Symbol(),kLocalAddress:Symbol(),kHost:Symbol(),kNoRef:Symbol(),kBodyUsed:Symbol(),kRunning:Symbol(),kBlocking:Symbol(),kPending:Symbol(),kSize:Symbol(),kBusy:Symbol(),kQueued:Symbol(),kFree:Symbol(),kConnected:Symbol(),kClosed:Symbol(),kNeedDrain:Symbol(),kReset:Symbol(),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kMaxHeadersSize:Symbol(),kRunningIdx:Symbol(),kPendingIdx:Symbol(),kError:Symbol(),kClients:Symbol(),kClient:Symbol(),kParser:Symbol(),kOnDestroyed:Symbol(),kPipelining:Symbol(),kSocket:Symbol(),kHostHeader:Symbol(),kConnector:Symbol(),kStrictContentLength:Symbol(),kMaxRedirections:Symbol(),kMaxRequests:Symbol(),kProxy:Symbol(),kCounter:Symbol(),kInterceptors:Symbol(),kMaxResponseSize:Symbol(),kHTTP2Session:Symbol(),kHTTP2SessionState:Symbol(),kHTTP2BuildRequest:Symbol(),kHTTP1BuildRequest:Symbol(),kHTTP2CopyHeaders:Symbol(),kHTTPConnVersion:Symbol(),kRetryHandlerDefaultRetry:Symbol(),kConstruct:Symbol()};}),e3("d1Hoi",function(A,e){class t extends Error{constructor(A){super(A),this.name="UndiciError",this.code="UND_ERR";}}class r extends t{constructor(A){super(A),Error.captureStackTrace(this,r),this.name="ConnectTimeoutError",this.message=A||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT";}}class n extends t{constructor(A){super(A),Error.captureStackTrace(this,n),this.name="HeadersTimeoutError",this.message=A||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT";}}class i extends t{constructor(A){super(A),Error.captureStackTrace(this,i),this.name="HeadersOverflowError",this.message=A||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW";}}class o extends t{constructor(A){super(A),Error.captureStackTrace(this,o),this.name="BodyTimeoutError",this.message=A||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT";}}class s extends t{constructor(A,e,t,r){super(A),Error.captureStackTrace(this,s),this.name="ResponseStatusCodeError",this.message=A||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=r,this.status=e,this.statusCode=e,this.headers=t;}}class a extends t{constructor(A){super(A),Error.captureStackTrace(this,a),this.name="InvalidArgumentError",this.message=A||"Invalid Argument Error",this.code="UND_ERR_INVALID_ARG";}}class l extends t{constructor(A){super(A),Error.captureStackTrace(this,l),this.name="InvalidReturnValueError",this.message=A||"Invalid Return Value Error",this.code="UND_ERR_INVALID_RETURN_VALUE";}}class E extends t{constructor(A){super(A),Error.captureStackTrace(this,E),this.name="AbortError",this.message=A||"Request aborted",this.code="UND_ERR_ABORTED";}}class c extends t{constructor(A){super(A),Error.captureStackTrace(this,c),this.name="InformationalError",this.message=A||"Request information",this.code="UND_ERR_INFO";}}class g extends t{constructor(A){super(A),Error.captureStackTrace(this,g),this.name="RequestContentLengthMismatchError",this.message=A||"Request body length does not match content-length header",this.code="UND_ERR_REQ_CONTENT_LENGTH_MISMATCH";}}class h extends t{constructor(A){super(A),Error.captureStackTrace(this,h),this.name="ResponseContentLengthMismatchError",this.message=A||"Response body length does not match content-length header",this.code="UND_ERR_RES_CONTENT_LENGTH_MISMATCH";}}class Q extends t{constructor(A){super(A),Error.captureStackTrace(this,Q),this.name="ClientDestroyedError",this.message=A||"The client is destroyed",this.code="UND_ERR_DESTROYED";}}class u extends t{constructor(A){super(A),Error.captureStackTrace(this,u),this.name="ClientClosedError",this.message=A||"The client is closed",this.code="UND_ERR_CLOSED";}}class C extends t{constructor(A,e){super(A),Error.captureStackTrace(this,C),this.name="SocketError",this.message=A||"Socket error",this.code="UND_ERR_SOCKET",this.socket=e;}}class I extends t{constructor(A){super(A),Error.captureStackTrace(this,I),this.name="NotSupportedError",this.message=A||"Not supported error",this.code="UND_ERR_NOT_SUPPORTED";}}class B extends Error{constructor(A,e,t){super(A),Error.captureStackTrace(this,B),this.name="HTTPParserError",this.code=e?"HPE_"+e:void 0,this.data=t?t.toString():void 0;}}class d extends t{constructor(A){super(A),Error.captureStackTrace(this,d),this.name="ResponseExceededMaxSizeError",this.message=A||"Response content exceeded max size",this.code="UND_ERR_RES_EXCEEDED_MAX_SIZE";}}class f extends t{constructor(A,e,{headers:t,data:r}){super(A),Error.captureStackTrace(this,f),this.name="RequestRetryError",this.message=A||"Request retry error",this.code="UND_ERR_REQ_RETRY",this.statusCode=e,this.data=r,this.headers=t;}}A.exports={HTTPParserError:B,UndiciError:t,HeadersTimeoutError:n,HeadersOverflowError:i,BodyTimeoutError:o,RequestContentLengthMismatchError:g,ConnectTimeoutError:r,ResponseStatusCodeError:s,InvalidArgumentError:a,InvalidReturnValueError:l,RequestAbortedError:E,ClientDestroyedError:Q,ClientClosedError:u,InformationalError:c,SocketError:C,NotSupportedError:I,ResponseContentLengthMismatchError:h,BalancedPoolMissingUpstreamError:class extends t{constructor(A){super(A),Error.captureStackTrace(this,I),this.name="MissingUpstreamError",this.message=A||"No upstream has been added to the BalancedPool",this.code="UND_ERR_BPL_MISSING_UPSTREAM";}},ResponseExceededMaxSizeError:d,RequestRetryError:f};}),e3("LOD3G",function(A,e){let t;function r(){i=Date.now();let A=o.length,e=0;for(;A>e;){let t=o[e];0===t.state?t.state=i+t.delay:t.state>0&&i>=t.state&&(t.state=-1,t.callback(t.opaque)),-1===t.state?(t.state=-2,e!==A-1?o[e]=o.pop():o.pop(),A-=1):e+=1;}o.length>0&&n();}function n(){t&&t.refresh?t.refresh():(clearTimeout(t),(t=setTimeout(r,1e3)).unref&&t.unref());}let i=Date.now(),o=[];class s{constructor(A,e,t){this.callback=A,this.delay=e,this.opaque=t,this.state=-2,this.refresh();}refresh(){-2!==this.state||(o.push(this),t&&1!==o.length||n()),this.state=0;}clear(){this.state=-1;}}A.exports={setTimeout:(A,e,t)=>e<1e3?setTimeout(A,e,t):new s(A,e,t),clearTimeout(A){A instanceof s?A.clear():clearTimeout(A);}};}),e3("gjBJN",function(A,e){var t,r,n,i,o,s,a,l;let E;function c(A,e,t){if(e&&"object"==typeof e||null!==Q.exec(e=null!=e?""+e:""))throw new r(`invalid ${A} header`);return t?e:`${A}: ${e}\r `;}function g(A,e,t,i=!1){if(t&&"object"==typeof t&&!Array.isArray(t))throw new r(`invalid ${e} header`);if(void 0!==t){if(null===A.host&&4===e.length&&"host"===e.toLowerCase()){if(null!==Q.exec(t))throw new r(`invalid ${e} header`);A.host=t;}else if(null===A.contentLength&&14===e.length&&"content-length"===e.toLowerCase()){if(A.contentLength=parseInt(t,10),!Number.isFinite(A.contentLength))throw new r("invalid content-length header");}else if(null===A.contentType&&12===e.length&&"content-type"===e.toLowerCase())A.contentType=t,i?A.headers[e]=c(e,t,i):A.headers+=c(e,t);else if(17===e.length&&"transfer-encoding"===e.toLowerCase())throw new r("invalid transfer-encoding header");else if(10===e.length&&"connection"===e.toLowerCase()){let e="string"==typeof t?t.toLowerCase():null;if("close"!==e&&"keep-alive"!==e)throw new r("invalid connection header");"close"===e&&(A.reset=!0);}else if(10===e.length&&"keep-alive"===e.toLowerCase())throw new r("invalid keep-alive header");else if(7===e.length&&"upgrade"===e.toLowerCase())throw new r("invalid upgrade header");else if(6===e.length&&"expect"===e.toLowerCase())throw new n("expect header not supported");else if(null===h.exec(e))throw new r("invalid header key");else if(Array.isArray(t))for(let r=0;r{this.abort?this.abort(A):this.error=A;},this.body.on("error",this.errorHandler);}else if(l.isBuffer(n))this.body=n.byteLength?n:null;else if(ArrayBuffer.isView(n))this.body=n.buffer.byteLength?Buffer.from(n.buffer,n.byteOffset,n.byteLength):null;else if(n instanceof ArrayBuffer)this.body=n.byteLength?Buffer.from(n):null;else if("string"==typeof n)this.body=n.length?Buffer.from(n):null;else if(l.isFormDataLike(n)||l.isIterable(n)||l.isBlobLike(n))this.body=n;else throw new r("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable");if(this.completed=!1,this.aborted=!1,this.upgrade=c||null,this.path=o?l.buildURL(e,o):e,this.origin=A,this.idempotent=null==s?"HEAD"===t||"GET"===t:s,this.blocking=null!=a&&a,this.reset=null==B?null:B,this.host=null,this.contentLength=null,this.contentType=null,this.headers="",this.expectContinue=null!=f&&f,Array.isArray(i)){if(i.length%2!=0)throw new r("headers array must be even");for(let A=0;Aa(A));},start(){},type:void 0}),rY(s(t));let n=null,l=null,E=null,c=null;if("string"==typeof A)l=A,c="text/plain;charset=UTF-8";else if(A instanceof URLSearchParams)l=A.toString(),c="application/x-www-form-urlencoded;charset=UTF-8";else if(y(A))l=new Uint8Array(A.slice());else if(ArrayBuffer.isView(A))l=new Uint8Array(A.buffer.slice(A.byteOffset,A.byteOffset+A.byteLength));else if(r.isFormDataLike(A)){let e="----formdata-undici-0"+(""+Math.floor(1e11*Math.random())).padStart(11,"0"),t=`--${e}\r Content-Disposition: form-data`,r=A=>A.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),i=A=>A.replace(/\r?\n|\r/g,"\r\n"),o=[],s=new Uint8Array([13,10]);E=0;let a=!1;for(let[e,n]of A)if("string"==typeof n){let A=x.encode(t+`; name="${r(i(e))}"`+`\r \r ${i(n)}\r `);o.push(A),E+=A.byteLength;}else{let A=x.encode(`${t}; name="${r(i(e))}"`+(n.name?`; filename="${r(n.name)}"`:"")+"\r\n"+`Content-Type: ${n.type||"application/octet-stream"}\r \r `);o.push(A,n,s),"number"==typeof n.size?E+=A.byteLength+n.size+s.byteLength:a=!0;}let g=x.encode(`--${e}--`);o.push(g),E+=g.byteLength,a&&(E=null),l=A,n=async function*(){for(let A of o)A.stream?yield*A.stream():yield A;},c="multipart/form-data; boundary="+e;}else if(o(A))l=A,E=A.size,A.type&&(c=A.type);else if("function"==typeof A[Symbol.asyncIterator]){if(e)throw TypeError("keepalive");if(r.isDisturbed(A)||A.locked)throw TypeError("Response body object should not be disturbed or locked");t=A instanceof L?A:i(A);}if(("string"==typeof l||r.isBuffer(l))&&(E=Buffer.byteLength(l)),null!=n){let e;t=new L({async start(){e=n(A)[Symbol.asyncIterator]();},async pull(A){let{value:r,done:n}=await e.next();return n?queueMicrotask(()=>{A.close();}):f(t)||A.enqueue(new Uint8Array(r)),A.desiredSize>0;},async cancel(A){await e.return();},type:void 0});}return[{stream:t,source:l,length:E},c];}async function*k(A){if(A){if(p(A))yield A;else{let e=A.stream;if(r.isDisturbed(e))throw TypeError("The body has already been consumed.");if(e.locked)throw TypeError("The stream is locked.");e[d]=!0,yield*e;}}}function N(A){if(A.aborted)throw new u("The operation was aborted.","AbortError");}async function S(A,e,t){var n;if(h.brandCheck(A,t),N(A[g]),null!=(n=A[g].body)&&(n.stream.locked||r.isDisturbed(n.stream)))throw TypeError("Body is unusable");let i=l(),o=A=>i.reject(A),s=A=>{try{i.resolve(e(A));}catch(A){o(A);}};return null==A[g].body?s(new Uint8Array()):await E(A[g].body,s,o),i.promise;}function F(A){return 0===A.length?"":(239===A[0]&&187===A[1]&&191===A[2]&&(A=A.subarray(3)),T.decode(A));}function v(A){return JSON.parse(F(A));}t=no("SRKWJ"),r=no("a5c5d"),i=(n=no("beXwr")).ReadableStreamFrom,o=n.isBlobLike,s=n.isReadableStreamLike,a=n.readableStreamClose,l=n.createDeferredPromise,E=n.fullyReadBody,c=no("jRFDL").FormData,g=no("kZx2v").kState,h=no("e7TzI").webidl,u=(Q=no("7VDV9")).DOMException,C=Q.structuredClone,I=rJ.Blob,B=rJ.File,d=no("fYjBn").kBodyUsed,f=(r=no("a5c5d")).isErrored,p=r_.isUint8Array,y=r_.isArrayBuffer,m=no("bk82a").File,R=(w=no("g34gh")).parseMIMEType,D=w.serializeAMimeType;let L=globalThis.ReadableStream,U=null!=B?B:m,x=new TextEncoder(),T=new TextDecoder();A.exports={extractBody:b,safelyExtractBody:function(A,e=!1){return L||(L=rP.ReadableStream),A instanceof L&&(rY(!r.isDisturbed(A),"The body has already been consumed."),rY(!A.locked,"The stream is locked.")),b(A,e);},cloneBody:function(A){let[e,t]=A.stream.tee(),[,r]=C(t,{transfer:[t]}).tee();return A.stream=e,{stream:r,length:A.length,source:A.source};},mixinBody:function(A){Object.assign(A.prototype,{blob(){return S(this,A=>{let e=function(A){let{headersList:e}=A[g],t=e.get("content-type");return null===t?"failure":R(t);}(this);return"failure"===e?e="":e&&(e=D(e)),new I([A],{type:e});},A);},arrayBuffer(){return S(this,A=>new Uint8Array(A).buffer,A);},text(){return S(this,F,A);},json(){return S(this,v,A);},async formData(){h.brandCheck(this,A),N(this[g]);let e=this.headers.get("Content-Type");if(/multipart\/form-data/.test(e)){let A;let e={};for(let[A,t]of this.headers)e[A.toLowerCase()]=t;let r=new c();try{A=new t({headers:e,preservePath:!0});}catch(A){throw new u(""+A,"AbortError");}A.on("field",(A,e)=>{r.append(A,e);}),A.on("file",(A,e,t,n,i)=>{let o=[];if("base64"===n||"base64"===n.toLowerCase()){let n="";e.on("data",A=>{let e=(n+=A.toString().replace(/[\r\n]/gm,"")).length-n.length%4;o.push(Buffer.from(n.slice(0,e),"base64")),n=n.slice(e);}),e.on("end",()=>{o.push(Buffer.from(n,"base64")),r.append(A,new U(o,t,{type:i}));});}else e.on("data",A=>{o.push(A);}),e.on("end",()=>{r.append(A,new U(o,t,{type:i}));});});let n=new Promise((e,t)=>{A.on("finish",e),A.on("error",A=>t(TypeError(A)));});if(null!==this.body)for await(let e of k(this[g].body))A.write(e);return A.end(),await n,r;}if(/application\/x-www-form-urlencoded/.test(e)){let A;try{let e="",t=new TextDecoder("utf-8",{ignoreBOM:!0});for await(let A of k(this[g].body)){if(!p(A))throw TypeError("Expected Uint8Array chunk");e+=t.decode(A,{stream:!0});}e+=t.decode(),A=new URLSearchParams(e);}catch(A){throw Object.assign(TypeError(),{cause:A});}let e=new c();for(let[t,r]of A)e.append(t,r);return e;}throw await Promise.resolve(),N(this[g]),h.errors.exception({header:`${A.name}.formData`,message:"Could not parse content as FormData."});}});}};}),e3("SRKWJ",function(A,e){var t,r,n,i,o,s;function a(A){if(!(this instanceof a))return new a(A);if("object"!=typeof A)throw TypeError("Busboy expected an options-Object.");if("object"!=typeof A.headers)throw TypeError("Busboy expected an options-Object with headers-attribute.");if("string"!=typeof A.headers["content-type"])throw TypeError("Missing Content-Type-header.");let{headers:e,...r}=A;this.opts={autoDestroy:!1,...r},t.call(this,this.opts),this._done=!1,this._parser=this.getParserByHeaders(e),this._finished=!1;}t=rW.Writable,r=rq.inherits,n=no("c7oI3"),i=no("c2zpE"),o=no("kJQyO"),s=no("04QFI"),r(a,t),a.prototype.emit=function(A){if("finish"===A){if(this._done){if(this._finished)return;}else{var e;null===(e=this._parser)||void 0===e||e.end();return;}this._finished=!0;}t.prototype.emit.apply(this,arguments);},a.prototype.getParserByHeaders=function(A){let e=s(A["content-type"]),t={defCharset:this.opts.defCharset,fileHwm:this.opts.fileHwm,headers:A,highWaterMark:this.opts.highWaterMark,isPartAFile:this.opts.isPartAFile,limits:this.opts.limits,parsedConType:e,preservePath:this.opts.preservePath};if(i.detect.test(e[0]))return new i(this,t);if(o.detect.test(e[0]))return new o(this,t);throw Error("Unsupported Content-Type.");},a.prototype._write=function(A,e,t){this._parser.write(A,t);},A.exports=a,A.exports.default=a,A.exports.Busboy=a,A.exports.Dicer=n;}),e3("c7oI3",function(A,e){var t,r,n,i,o;function s(A){if(!(this instanceof s))return new s(A);if(t.call(this,A),!A||!A.headerFirst&&"string"!=typeof A.boundary)throw TypeError("Boundary required");"string"==typeof A.boundary?this.setBoundary(A.boundary):this._bparser=void 0,this._headerFirst=A.headerFirst,this._dashes=0,this._parts=0,this._finished=!1,this._realFinish=!1,this._isPreamble=!0,this._justMatched=!1,this._firstWrite=!0,this._inHeader=!0,this._part=void 0,this._cb=void 0,this._ignoreData=!1,this._partOpts={highWaterMark:A.partHwm},this._pause=!1;let e=this;this._hparser=new o(A),this._hparser.on("header",function(A){e._inHeader=!1,e._part.emit("header",A);});}t=rW.Writable,r=rq.inherits,n=no("cZlml"),i=no("9yTWZ"),o=no("ioI0S");let a=Buffer.from("-"),l=Buffer.from("\r\n"),E=function(){};r(s,t),s.prototype.emit=function(A){if("finish"!==A||this._realFinish)t.prototype.emit.apply(this,arguments);else if(!this._finished){let A=this;process.nextTick(function(){if(A.emit("error",Error("Unexpected end of multipart data")),A._part&&!A._ignoreData){let e=A._isPreamble?"Preamble":"Part";A._part.emit("error",Error(e+" terminated early due to unexpected end of multipart data")),A._part.push(null),process.nextTick(function(){A._realFinish=!0,A.emit("finish"),A._realFinish=!1;});return;}A._realFinish=!0,A.emit("finish"),A._realFinish=!1;});}},s.prototype._write=function(A,e,t){if(!this._hparser&&!this._bparser)return t();if(this._headerFirst&&this._isPreamble){this._part||(this._part=new i(this._partOpts),0!==this.listenerCount("preamble")?this.emit("preamble",this._part):this._ignore());let e=this._hparser.push(A);if(this._inHeader||void 0===e||!(e256)throw Error("The needle cannot have a length bigger than 256.");this.maxMatches=1/0,this.matches=0,this._occ=Array(256).fill(e),this._lookbehind_size=0,this._needle=A,this._bufpos=0,this._lookbehind=Buffer.alloc(e);for(var t=0;t=0)this.emit("info",!1,this._lookbehind,0,this._lookbehind_size),this._lookbehind_size=0;else{let e=this._lookbehind_size+o;return e>0&&this.emit("info",!1,this._lookbehind,0,e),this._lookbehind.copy(this._lookbehind,0,e,this._lookbehind_size-e),this._lookbehind_size-=e,A.copy(this._lookbehind,this._lookbehind_size),this._lookbehind_size+=t,this._bufpos=t,t;}}if(o+=(o>=0)*this._bufpos,-1!==A.indexOf(r,o))return o=A.indexOf(r,o),++this.matches,o>0?this.emit("info",!0,A,this._bufpos,o):this.emit("info",!0),this._bufpos=o+n;for(o=t-n;o0&&this.emit("info",!1,A,this._bufpos,or;++r)if(this._sbmh_lookup_char(A,e+r)!==this._needle[r])return!1;return!0;},A.exports=r;}),e3("9yTWZ",function(A,e){var t;function r(A){t.call(this,A);}(0,rq.inherits)(r,t=rW.Readable),r.prototype._read=function(A){},A.exports=r;}),e3("ioI0S",function(A,e){var t,r,n,i;function o(A){t.call(this),A=A||{};let e=this;this.nread=0,this.maxed=!1,this.npairs=0,this.maxHeaderPairs=n(A,"maxHeaderPairs",2e3),this.maxHeaderSize=n(A,"maxHeaderSize",81920),this.buffer="",this.header={},this.finished=!1,this.ss=new i(s),this.ss.on("info",function(A,t,r,n){t&&!e.maxed&&(e.nread+n-r>=e.maxHeaderSize?(n=e.maxHeaderSize-e.nread+r,e.nread=e.maxHeaderSize,e.maxed=!0):e.nread+=n-r,e.buffer+=t.toString("binary",r,n)),A&&e._finish();});}t=rj.EventEmitter,r=rq.inherits,n=no("9nYFo"),i=no("cZlml");let s=Buffer.from("\r\n\r\n");r(o,t),o.prototype.push=function(A){let e=this.ss.push(A);if(this.finished)return e;},o.prototype.reset=function(){this.finished=!1,this.buffer="",this.header={},this.ss.reset();},o.prototype._finish=function(){this.buffer&&this._parseHeader(),this.ss.matches=this.ss.maxMatches;let A=this.header;this.header={},this.buffer="",this.finished=!0,this.nread=this.npairs=0,this.maxed=!1,this.emit("header",A);},o.prototype._parseHeader=function(){let A,e;if(this.npairs===this.maxHeaderPairs)return;let t=this.buffer.split(/\r\n/g),r=t.length;for(var n=0;r>n;++n){if(0===t[n].length)continue;if((" "===t[n][0]||" "===t[n][0])&&e){this.header[e][this.header[e].length-1]+=t[n];continue;}let r=t[n].indexOf(":");if(-1===r||0===r)return;if(e=(A=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/.exec(t[n]))[1].toLowerCase(),this.header[e]=this.header[e]||[],this.header[e].push(A[2]||""),++this.npairs===this.maxHeaderPairs)break;}},A.exports=o;}),e3("9nYFo",function(A,e){A.exports=function(A,e,t){if(!A||void 0===A[e]||null===A[e])return t;if("number"!=typeof A[e]||isNaN(A[e]))throw TypeError("Limit "+e+" is not a valid number");return A[e];};}),e3("c2zpE",function(A,e){var t,r,n,i,o,s,a;function l(A,e){let t,r,l,I,B;function d(){0===T&&M&&!A._done&&(M=!1,f.end());}let f=this,p=e.limits,y=e.isPartAFile||((A,e,t)=>"application/octet-stream"===e||void 0!==t),m=e.parsedConType||[],w=e.defCharset||"utf8",R=e.preservePath,D={highWaterMark:e.fileHwm};for(t=0,r=m.length;r>t;++t)if(Array.isArray(m[t])&&g.test(m[t][0])){l=m[t][1];break;}if("string"!=typeof l)throw Error("Multipart: Boundary not found");let b=a(p,"fieldSize",1048576),k=a(p,"fileSize",1/0),N=a(p,"files",1/0),S=a(p,"fields",1/0),F=a(p,"parts",1/0),v=a(p,"headerPairs",2e3),L=a(p,"headerSize",81920),U=0,x=0,T=0,M=!1;this._needDrain=!1,this._pause=!1,this._cb=void 0,this._nparts=0,this._boy=A;let G={boundary:l,maxHeaderPairs:v,maxHeaderSize:L,partHwm:D.highWaterMark,highWaterMark:e.highWaterMark};this.parser=new n(G),this.parser.on("drain",function(){if(f._needDrain=!1,f._cb&&!f._pause){let A=f._cb;f._cb=void 0,A();}}).on("part",function e(n){if(++f._nparts>F)return f.parser.removeListener("part",e),f.parser.on("part",E),A.hitPartsLimit=!0,A.emit("partsLimit"),E(n);if(B){let A=B;A.emit("end"),A.removeAllListeners("end");}n.on("header",function(e){let a,l,g,p,m,F,v,L;let M=0;if(e["content-type"]&&(g=i(e["content-type"][0]))[0]){for(t=0,a=g[0].toLowerCase(),r=g.length;r>t;++t)if(Q.test(g[t][0])){p=g[t][1].toLowerCase();break;}}if(void 0===a&&(a="text/plain"),void 0===p&&(p=w),!e["content-disposition"]||!h.test((g=i(e["content-disposition"][0]))[0]))return E(n);for(t=0,r=g.length;r>t;++t)C.test(g[t][0])?l=g[t][1]:u.test(g[t][0])&&(F=g[t][1],R||(F=s(F)));if(m=e["content-transfer-encoding"]?e["content-transfer-encoding"][0].toLowerCase():"7bit",y(l,a,F)){if(U===N)return A.hitFilesLimit||(A.hitFilesLimit=!0,A.emit("filesLimit")),E(n);if(++U,0===A.listenerCount("file")){f.parser._ignore();return;}++T;let e=new c(D);I=e,e.on("end",function(){if(--T,f._pause=!1,d(),f._cb&&!f._needDrain){let A=f._cb;f._cb=void 0,A();}}),e._read=function(A){if(f._pause&&(f._pause=!1,f._cb&&!f._needDrain)){let A=f._cb;f._cb=void 0,A();}},A.emit("file",l,e,F,m,a),v=function(A){if((M+=A.length)>k){let t=k-M+A.length;t>0&&e.push(A.slice(0,t)),e.truncated=!0,e.bytesRead=k,n.removeAllListeners("data"),e.emit("limit");return;}e.push(A)||(f._pause=!0),e.bytesRead=M;},L=function(){I=void 0,e.push(null);};}else{if(x===S)return A.hitFieldsLimit||(A.hitFieldsLimit=!0,A.emit("fieldsLimit")),E(n);++x,++T;let e="",t=!1;B=n,v=function(A){if((M+=A.length)>b){let r=b-(M-A.length);e+=A.toString("binary",0,r),t=!0,n.removeAllListeners("data");}else e+=A.toString("binary");},L=function(){B=void 0,e.length&&(e=o(e,"binary",p)),A.emit("field",l,e,!1,t,m,a),--T,d();};}n._readableState.sync=!1,n.on("data",v),n.on("end",L);}).on("error",function(A){I&&I.emit("error",A);});}).on("error",function(e){A.emit("error",e);}).on("finish",function(){M=!0,d();});}function E(A){A.resume();}function c(A){t.call(this,A),this.bytesRead=0,this.truncated=!1;}t=rW.Readable,r=rq.inherits,n=no("c7oI3"),i=no("04QFI"),o=no("7hgp6"),s=no("hWzDS"),a=no("9nYFo");let g=/^boundary$/i,h=/^form-data$/i,Q=/^charset$/i,u=/^filename$/i,C=/^name$/i;l.detect=/^multipart\/form-data/i,l.prototype.write=function(A,e){let t=this.parser.write(A);t&&!this._pause?e():(this._needDrain=!t,this._cb=e);},l.prototype.end=function(){let A=this;A.parser.writable?A.parser.end():A._boy._done||process.nextTick(function(){A._boy._done=!0,A._boy.emit("finish");});},r(c,t),c.prototype._read=function(A){},A.exports=l;}),e3("04QFI",function(A,e){var t;function r(A){return n[A];}t=no("7hgp6");let n={"%00":"\0","%01":"\x01","%02":"\x02","%03":"\x03","%04":"\x04","%05":"\x05","%06":"\x06","%07":"\x07","%08":"\b","%09":" ","%0a":"\n","%0A":"\n","%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"\x0e","%0E":"\x0e","%0f":"\x0f","%0F":"\x0f","%10":"\x10","%11":"\x11","%12":"\x12","%13":"\x13","%14":"\x14","%15":"\x15","%16":"\x16","%17":"\x17","%18":"\x18","%19":"\x19","%1a":"\x1a","%1A":"\x1a","%1b":"\x1b","%1B":"\x1b","%1c":"\x1c","%1C":"\x1c","%1d":"\x1d","%1D":"\x1d","%1e":"\x1e","%1E":"\x1e","%1f":"\x1f","%1F":"\x1f","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"","%7F":"","%80":"€","%81":"","%82":"‚","%83":"ƒ","%84":"„","%85":"…","%86":"†","%87":"‡","%88":"ˆ","%89":"‰","%8a":"Š","%8A":"Š","%8b":"‹","%8B":"‹","%8c":"Œ","%8C":"Œ","%8d":"","%8D":"","%8e":"Ž","%8E":"Ž","%8f":"","%8F":"","%90":"","%91":"‘","%92":"’","%93":"“","%94":"”","%95":"•","%96":"–","%97":"—","%98":"˜","%99":"™","%9a":"š","%9A":"š","%9b":"›","%9B":"›","%9c":"œ","%9C":"œ","%9d":"","%9D":"","%9e":"ž","%9E":"ž","%9f":"Ÿ","%9F":"Ÿ","%a0":" ","%A0":" ","%a1":"¡","%A1":"¡","%a2":"¢","%A2":"¢","%a3":"£","%A3":"£","%a4":"¤","%A4":"¤","%a5":"¥","%A5":"¥","%a6":"¦","%A6":"¦","%a7":"§","%A7":"§","%a8":"¨","%A8":"¨","%a9":"©","%A9":"©","%aa":"ª","%Aa":"ª","%aA":"ª","%AA":"ª","%ab":"«","%Ab":"«","%aB":"«","%AB":"«","%ac":"¬","%Ac":"¬","%aC":"¬","%AC":"¬","%ad":"­","%Ad":"­","%aD":"­","%AD":"­","%ae":"®","%Ae":"®","%aE":"®","%AE":"®","%af":"¯","%Af":"¯","%aF":"¯","%AF":"¯","%b0":"°","%B0":"°","%b1":"±","%B1":"±","%b2":"²","%B2":"²","%b3":"³","%B3":"³","%b4":"´","%B4":"´","%b5":"µ","%B5":"µ","%b6":"¶","%B6":"¶","%b7":"·","%B7":"·","%b8":"¸","%B8":"¸","%b9":"¹","%B9":"¹","%ba":"º","%Ba":"º","%bA":"º","%BA":"º","%bb":"»","%Bb":"»","%bB":"»","%BB":"»","%bc":"¼","%Bc":"¼","%bC":"¼","%BC":"¼","%bd":"½","%Bd":"½","%bD":"½","%BD":"½","%be":"¾","%Be":"¾","%bE":"¾","%BE":"¾","%bf":"¿","%Bf":"¿","%bF":"¿","%BF":"¿","%c0":"À","%C0":"À","%c1":"Á","%C1":"Á","%c2":"Â","%C2":"Â","%c3":"Ã","%C3":"Ã","%c4":"Ä","%C4":"Ä","%c5":"Å","%C5":"Å","%c6":"Æ","%C6":"Æ","%c7":"Ç","%C7":"Ç","%c8":"È","%C8":"È","%c9":"É","%C9":"É","%ca":"Ê","%Ca":"Ê","%cA":"Ê","%CA":"Ê","%cb":"Ë","%Cb":"Ë","%cB":"Ë","%CB":"Ë","%cc":"Ì","%Cc":"Ì","%cC":"Ì","%CC":"Ì","%cd":"Í","%Cd":"Í","%cD":"Í","%CD":"Í","%ce":"Î","%Ce":"Î","%cE":"Î","%CE":"Î","%cf":"Ï","%Cf":"Ï","%cF":"Ï","%CF":"Ï","%d0":"Ð","%D0":"Ð","%d1":"Ñ","%D1":"Ñ","%d2":"Ò","%D2":"Ò","%d3":"Ó","%D3":"Ó","%d4":"Ô","%D4":"Ô","%d5":"Õ","%D5":"Õ","%d6":"Ö","%D6":"Ö","%d7":"×","%D7":"×","%d8":"Ø","%D8":"Ø","%d9":"Ù","%D9":"Ù","%da":"Ú","%Da":"Ú","%dA":"Ú","%DA":"Ú","%db":"Û","%Db":"Û","%dB":"Û","%DB":"Û","%dc":"Ü","%Dc":"Ü","%dC":"Ü","%DC":"Ü","%dd":"Ý","%Dd":"Ý","%dD":"Ý","%DD":"Ý","%de":"Þ","%De":"Þ","%dE":"Þ","%DE":"Þ","%df":"ß","%Df":"ß","%dF":"ß","%DF":"ß","%e0":"à","%E0":"à","%e1":"á","%E1":"á","%e2":"â","%E2":"â","%e3":"ã","%E3":"ã","%e4":"ä","%E4":"ä","%e5":"å","%E5":"å","%e6":"æ","%E6":"æ","%e7":"ç","%E7":"ç","%e8":"è","%E8":"è","%e9":"é","%E9":"é","%ea":"ê","%Ea":"ê","%eA":"ê","%EA":"ê","%eb":"ë","%Eb":"ë","%eB":"ë","%EB":"ë","%ec":"ì","%Ec":"ì","%eC":"ì","%EC":"ì","%ed":"í","%Ed":"í","%eD":"í","%ED":"í","%ee":"î","%Ee":"î","%eE":"î","%EE":"î","%ef":"ï","%Ef":"ï","%eF":"ï","%EF":"ï","%f0":"ð","%F0":"ð","%f1":"ñ","%F1":"ñ","%f2":"ò","%F2":"ò","%f3":"ó","%F3":"ó","%f4":"ô","%F4":"ô","%f5":"õ","%F5":"õ","%f6":"ö","%F6":"ö","%f7":"÷","%F7":"÷","%f8":"ø","%F8":"ø","%f9":"ù","%F9":"ù","%fa":"ú","%Fa":"ú","%fA":"ú","%FA":"ú","%fb":"û","%Fb":"û","%fB":"û","%FB":"û","%fc":"ü","%Fc":"ü","%fC":"ü","%FC":"ü","%fd":"ý","%Fd":"ý","%fD":"ý","%FD":"ý","%fe":"þ","%Fe":"þ","%fE":"þ","%FE":"þ","%ff":"ÿ","%Ff":"ÿ","%fF":"ÿ","%FF":"ÿ"};A.exports=function(A){let e=[],n=0,i="",o=!1,s=!1,a=0,l="",E=A.length;for(var c=0;E>c;++c){let E=A[c];if("\\"===E&&o){if(s)s=!1;else{s=!0;continue;}}else if('"'===E){if(s)s=!1;else{o?(o=!1,n=0):o=!0;continue;}}else{if(s&&o&&(l+="\\"),s=!1,(2===n||3===n)&&"'"===E){2===n?(n=3,i=l.substring(1)):n=1,l="";continue;}if(0===n&&("*"===E||"="===E)&&e.length){n="*"===E?2:1,e[a]=[l,void 0],l="";continue;}if(o||";"!==E){if(!o&&(" "===E||" "===E))continue;}else{n=0,i?(l.length&&(l=t(l.replace(/%[a-fA-F0-9][a-fA-F0-9]/g,r),"binary",i)),i=""):l.length&&(l=t(l,"binary","utf8")),void 0===e[a]?e[a]=l:e[a][1]=l,l="",++a;continue;}}l+=E;}return i&&l.length?l=t(l.replace(/%[a-fA-F0-9][a-fA-F0-9]/g,r),"binary",i):l&&(l=t(l,"binary","utf8")),void 0===e[a]?l&&(e[a]=l):e[a][1]=l,e;};}),e3("7hgp6",function(A,e){let t=new TextDecoder("utf-8"),r=new Map([["utf-8",t],["utf8",t]]),n={utf8:(A,e)=>0===A.length?"":("string"==typeof A&&(A=Buffer.from(A,e)),A.utf8Slice(0,A.length)),latin1:(A,e)=>0===A.length?"":"string"==typeof A?A:A.latin1Slice(0,A.length),utf16le:(A,e)=>0===A.length?"":("string"==typeof A&&(A=Buffer.from(A,e)),A.ucs2Slice(0,A.length)),base64:(A,e)=>0===A.length?"":("string"==typeof A&&(A=Buffer.from(A,e)),A.base64Slice(0,A.length)),other(e,t){if(0===e.length)return"";if("string"==typeof e&&(e=Buffer.from(e,t)),r.has(A.exports.toString()))try{return r.get(A.exports).decode(e);}catch{}return"string"==typeof e?e:e.toString();}};A.exports=function(A,e,t){return A?function(A){let e;for(;;)switch(A){case"utf-8":case"utf8":return n.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return n.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return n.utf16le;case"base64":return n.base64;default:if(void 0===e){e=!0,A=A.toLowerCase();continue;}return n.other.bind(A);}}(t)(A,e):A;};}),e3("hWzDS",function(A,e){A.exports=function(A){if("string"!=typeof A)return"";for(var e=A.length-1;e>=0;--e)switch(A.charCodeAt(e)){case 47:case 92:return".."===(A=A.slice(e+1))||"."===A?"":A;}return".."===A||"."===A?"":A;};}),e3("kJQyO",function(A,e){var t,r,n;function i(A,e){let r;let i=e.limits,s=e.parsedConType;this.boy=A,this.fieldSizeLimit=n(i,"fieldSize",1048576),this.fieldNameSizeLimit=n(i,"fieldNameSize",100),this.fieldsLimit=n(i,"fields",1/0);for(var a=0,l=s.length;l>a;++a)if(Array.isArray(s[a])&&o.test(s[a][0])){r=s[a][1].toLowerCase();break;}void 0===r&&(r=e.defCharset||"utf8"),this.decoder=new t(),this.charset=r,this._fields=0,this._state="key",this._checkingBytes=!0,this._bytesKey=0,this._bytesVal=0,this._key="",this._val="",this._keyTrunc=!1,this._valTrunc=!1,this._hitLimit=!1;}t=no("jULtX"),r=no("7hgp6"),n=no("9nYFo");let o=/^charset$/i;i.detect=/^application\/x-www-form-urlencoded/i,i.prototype.write=function(A,e){let t,n,i;if(this._fields===this.fieldsLimit)return this.boy.hitFieldsLimit||(this.boy.hitFieldsLimit=!0,this.boy.emit("fieldsLimit")),e();let o=0,s=A.length;for(;oi;++i){if(!this._checkingBytes&&++o,61===A[i]){t=i;break;}if(38===A[i]){n=i;break;}if(this._checkingBytes&&this._bytesKey===this.fieldNameSizeLimit){this._hitLimit=!0;break;}this._checkingBytes&&++this._bytesKey;}if(void 0!==t)t>o&&(this._key+=this.decoder.write(A.toString("binary",o,t))),this._state="val",this._hitLimit=!1,this._checkingBytes=!0,this._val="",this._bytesVal=0,this._valTrunc=!1,this.decoder.reset(),o=t+1;else if(void 0!==n){let t;++this._fields;let i=this._keyTrunc;if(t=n>o?this._key+=this.decoder.write(A.toString("binary",o,n)):this._key,this._hitLimit=!1,this._checkingBytes=!0,this._key="",this._bytesKey=0,this._keyTrunc=!1,this.decoder.reset(),t.length&&this.boy.emit("field",r(t,"binary",this.charset),"",i,!1),o=n+1,this._fields===this.fieldsLimit)return e();}else this._hitLimit?(i>o&&(this._key+=this.decoder.write(A.toString("binary",o,i))),o=i,(this._bytesKey=this._key.length)===this.fieldNameSizeLimit&&(this._checkingBytes=!1,this._keyTrunc=!0)):(oi;++i){if(!this._checkingBytes&&++o,38===A[i]){n=i;break;}if(this._checkingBytes&&this._bytesVal===this.fieldSizeLimit){this._hitLimit=!0;break;}this._checkingBytes&&++this._bytesVal;}if(void 0!==n){if(++this._fields,n>o&&(this._val+=this.decoder.write(A.toString("binary",o,n))),this.boy.emit("field",r(this._key,"binary",this.charset),r(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc),this._state="key",this._hitLimit=!1,this._checkingBytes=!0,this._key="",this._bytesKey=0,this._keyTrunc=!1,this.decoder.reset(),o=n+1,this._fields===this.fieldsLimit)return e();}else this._hitLimit?(i>o&&(this._val+=this.decoder.write(A.toString("binary",o,i))),o=i,(""===this._val&&0===this.fieldSizeLimit||(this._bytesVal=this._val.length)===this.fieldSizeLimit)&&(this._checkingBytes=!1,this._valTrunc=!0)):(o0?this.boy.emit("field",r(this._key,"binary",this.charset),"",this._keyTrunc,!1):"val"===this._state&&this.boy.emit("field",r(this._key,"binary",this.charset),r(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc),this.boy._done=!0,this.boy.emit("finish"));},A.exports=i;}),e3("jULtX",function(A,e){function t(){this.buffer=void 0;}let r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];t.prototype.write=function(A){A=A.replace(/\+/g," ");let e="",t=0,n=0,i=A.length;for(;i>t;++t)void 0!==this.buffer?r[A.charCodeAt(t)]?(this.buffer+=A[t],++n,2===this.buffer.length&&(e+=String.fromCharCode(parseInt(this.buffer,16)),this.buffer=void 0)):(e+="%"+this.buffer,this.buffer=void 0,--t):"%"===A[t]&&(t>n&&(e+=A.substring(n,t),n=t),this.buffer="",++n);return n=33&&A<=126;}}(A.charCodeAt(e)))return!1;return!0;}function I(A){return!(A.startsWith(" ")||A.startsWith(" ")||A.endsWith(" ")||A.endsWith(" ")||A.includes("\0")||A.includes("\r")||A.includes("\n"));}function B(A,e){return(rY(A instanceof URL),"file:"===A.protocol||"about:"===A.protocol||"blank:"===A.protocol)?"no-referrer":(A.username="",A.password="",A.hash="",e&&(A.pathname="",A.search=""),A);}function d(A){return A instanceof URL&&("about:blank"===A.href||"about:srcdoc"===A.href||"data:"===A.protocol||"file:"===A.protocol||function(A){if(null==A||"null"===A)return!1;let e=new URL(A);return!!("https:"===e.protocol||"wss:"===e.protocol||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(e.hostname)||"localhost"===e.hostname||e.hostname.includes("localhost.")||e.hostname.endsWith(".localhost"));}(A.origin));}function f(A,e){return A.origin===e.origin&&"null"===A.origin||A.protocol===e.protocol&&A.hostname===e.hostname&&A.port===e.port;}async function p(A,e,t){let r;try{r=A.stream.getReader();}catch(A){t(A);return;}try{let A=await y(r);e(A);}catch(A){t(A);}}async function y(A){let e=[],t=0;for(;;){let{done:r,value:n}=await A.read();if(r)return Buffer.concat(e,t);if(!g(n))throw TypeError("Received non-Uint8Array chunk");e.push(n),t+=n.length;}}function m(A){return"string"==typeof A?A.startsWith("https:"):"https:"===A.protocol;}function w(A){rY("protocol"in A);let e=A.protocol;return"http:"===e||"https:"===e;}r=(t=no("7VDV9")).redirectStatusSet,n=t.referrerPolicySet,i=t.badPortsSet,o=no("ktTfx").getGlobalOrigin,s=rX.performance,l=(a=no("a5c5d")).isBlobLike,E=a.toUSVString,c=a.ReadableStreamFrom,g=r_.isUint8Array;try{h=$82ef2c62fe0e19ea$import$4e46f0aad582585a;}catch{}let R={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};Object.setPrototypeOf(R,null);let D=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())),b=globalThis.ReadableStream,k=Object.hasOwn||((A,e)=>Object.prototype.hasOwnProperty.call(A,e));A.exports={isAborted:function(A){return"aborted"===A.controller.state;},isCancelled:function(A){return"aborted"===A.controller.state||"terminated"===A.controller.state;},createDeferredPromise:function(){let A,e;return{promise:new Promise((t,r)=>{A=t,e=r;}),resolve:A,reject:e};},ReadableStreamFrom:c,toUSVString:E,tryUpgradeRequestToAPotentiallyTrustworthyURL:function(A){},coarsenedSharedCurrentTime:function(A){return s.now();},determineRequestsReferrer:function(A){let e=A.referrerPolicy;rY(e);let t=null;if("client"===A.referrer){let A=o();if(!A||"null"===A.origin)return"no-referrer";t=new URL(A);}else A.referrer instanceof URL&&(t=A.referrer);let r=B(t),n=B(t,!0);r.toString().length>4096&&(r=n);let i=f(A,r),s=d(r)&&!d(A.url);switch(e){case"origin":return null!=n?n:B(t,!0);case"unsafe-url":return r;case"same-origin":return i?n:"no-referrer";case"origin-when-cross-origin":return i?r:n;case"strict-origin-when-cross-origin":{let e=u(A);if(f(r,e))return r;if(d(r)&&!d(e))return"no-referrer";return n;}default:return s?"no-referrer":n;}},makePolicyContainer:function(){return{referrerPolicy:"strict-origin-when-cross-origin"};},clonePolicyContainer:function(A){return{referrerPolicy:A.referrerPolicy};},appendFetchMetadata:function(A){let e=null;e=A.mode,A.headersList.set("sec-fetch-mode",e);},appendRequestOriginHeader:function(A){let e=A.origin;if("cors"===A.responseTainting||"websocket"===A.mode)e&&A.headersList.append("origin",e);else if("GET"!==A.method&&"HEAD"!==A.method){switch(A.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":A.origin&&m(A.origin)&&!m(u(A))&&(e=null);break;case"same-origin":f(A,u(A))||(e=null);}e&&A.headersList.append("origin",e);}},TAOCheck:function(){return"success";},corsCheck:function(){return"success";},crossOriginResourcePolicyCheck:function(){return"allowed";},createOpaqueTimingInfo:function(A){var e,t;return{startTime:null!==(e=A.startTime)&&void 0!==e?e:0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:null!==(t=A.startTime)&&void 0!==t?t:0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null};},setRequestReferrerPolicyOnRedirect:function(A,e){var t;let{headersList:r}=e,i=(null!==(t=r.get("referrer-policy"))&&void 0!==t?t:"").split(","),o="";if(i.length>0)for(let A=i.length;0!==A;A--){let e=i[A-1].trim();if(n.has(e)){o=e;break;}}""!==o&&(A.referrerPolicy=o);},isValidHTTPToken:C,requestBadPort:function(A){let e=u(A);return w(e)&&i.has(e.port)?"blocked":"allowed";},requestCurrentURL:u,responseURL:Q,responseLocationURL:function(A,e){if(!r.has(A.status))return null;let t=A.headersList.get("location");return null!==t&&I(t)&&(t=new URL(t,Q(A))),t&&!t.hash&&(t.hash=e),t;},isBlobLike:l,isURLPotentiallyTrustworthy:d,isValidReasonPhrase:function(A){for(let e=0;e=32&&t<=126||t>=128&&t<=255))return!1;}return!0;},sameOrigin:f,normalizeMethod:function(A){var e;return null!==(e=R[A.toLowerCase()])&&void 0!==e?e:A;},serializeJavascriptValueToJSONString:function(A){let e=JSON.stringify(A);if(void 0===e)throw TypeError("Value is not JSON serializable");return rY("string"==typeof e),e;},makeIterator:function(A,e,t){let r={index:0,kind:t,target:A},n={next(){if(Object.getPrototypeOf(this)!==n)throw TypeError(`'next' called on an object that does not implement interface ${e} Iterator.`);let{index:A,kind:t,target:i}=r,o=i();if(A>=o.length)return{value:void 0,done:!0};let s=o[A];return r.index=A+1,function(A,e){let t;switch(e){case"key":t=A[0];break;case"value":t=A[1];break;case"key+value":t=A;}return{value:t,done:!1};}(s,t);},[Symbol.toStringTag]:`${e} Iterator`};return Object.setPrototypeOf(n,D),Object.setPrototypeOf({},n);},isValidHeaderName:function(A){return C(A);},isValidHeaderValue:I,hasOwn:k,isErrorLike:function(A){var e,t;return A instanceof Error||(null==A?void 0:null===(e=A.constructor)||void 0===e?void 0:e.name)==="Error"||(null==A?void 0:null===(t=A.constructor)||void 0===t?void 0:t.name)==="DOMException";},fullyReadBody:p,bytesMatch:function(A,e){if(void 0===h)return!0;let t=function(A){let e=[],t=!0,r=h.getHashes();for(let n of A.split(" ")){t=!1;let A=/((?sha256|sha384|sha512)-(?[A-z0-9+/]{1}.*={0,2}))( +[\x21-\x7e]?)?/i.exec(n);if(null===A||void 0===A.groups)continue;let i=A.groups.algo;r.includes(i.toLowerCase())&&e.push(A.groups);}return!0===t?"no metadata":e;}(e);if("no metadata"===t||0===t.length)return!0;let r=t.sort((A,e)=>e.algo.localeCompare(A.algo)),n=r[0].algo;for(let e of r.filter(A=>A.algo===n)){let t=e.algo,r=e.hash;r.endsWith("==")&&(r=r.slice(0,-2));let n=h.createHash(t).update(A).digest("base64");if(n.endsWith("==")&&(n=n.slice(0,-2)),n===r)return!0;let i=h.createHash(t).update(A).digest("base64url");if(i.endsWith("==")&&(i=i.slice(0,-2)),i===r)return!0;}return!1;},isReadableStreamLike:function(A){return b||(b=rP.ReadableStream),A instanceof b||"ReadableStream"===A[Symbol.toStringTag]&&"function"==typeof A.tee;},readableStreamClose:function(A){try{A.close();}catch(A){if(!A.message.includes("Controller is already closed"))throw A;}},isomorphicEncode:function(A){for(let e=0;e=A.charCodeAt(e));return A;},isomorphicDecode:function(A){return A.length<65535?String.fromCharCode(...A):A.reduce((A,e)=>A+String.fromCharCode(e),"");},urlIsLocal:function(A){rY("protocol"in A);let e=A.protocol;return"about:"===e||"blob:"===e||"data:"===e;},urlHasHttpsScheme:m,urlIsHttpHttpsScheme:w,readAllBytes:y,normalizeMethodRecord:R};}),e3("7VDV9",function(A,e){let t;var r,n,i=r$.MessageChannel,o=r$.receiveMessageOnPort;let s=["GET","HEAD","POST"],a=new Set(s),l=[301,302,303,307,308],E=new Set(l),c=["1","7","9","11","13","15","17","19","20","21","22","23","25","37","42","43","53","69","77","79","87","95","101","102","103","104","109","110","111","113","115","117","119","123","135","137","139","143","161","179","389","427","465","512","513","514","515","526","530","531","532","540","548","554","556","563","587","601","636","989","990","993","995","1719","1720","1723","2049","3659","4045","5060","5061","6000","6566","6665","6666","6667","6668","6669","6697","10080"],g=new Set(c),h=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"],Q=new Set(h),u=["GET","HEAD","OPTIONS","TRACE"],C=new Set(u),I=["CONNECT","TRACE","TRACK"],B=new Set(I),d=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""],f=new Set(d),p=null!==(r=globalThis.DOMException)&&void 0!==r?r:(()=>{try{atob("~");}catch(A){return Object.getPrototypeOf(A).constructor;}})(),y=null!==(n=globalThis.structuredClone)&&void 0!==n?n:function(A,e){if(0==arguments.length)throw TypeError("missing argument");return t||(t=new i()),t.port1.unref(),t.port2.unref(),t.port1.postMessage(A,null==e?void 0:e.transfer),o(t.port2).message;};A.exports={DOMException:p,structuredClone:y,subresource:d,forbiddenMethods:I,requestBodyHeader:["content-encoding","content-language","content-location","content-type","content-length"],referrerPolicy:h,requestRedirect:["follow","manual","error"],requestMode:["navigate","same-origin","no-cors","cors"],requestCredentials:["omit","same-origin","include"],requestCache:["default","no-store","reload","no-cache","force-cache","only-if-cached"],redirectStatus:l,corsSafeListedMethods:s,nullBodyStatus:[101,204,205,304],safeMethods:u,badPorts:c,requestDuplex:["half"],subresourceSet:f,badPortsSet:g,redirectStatusSet:E,corsSafeListedMethodsSet:a,safeMethodsSet:C,forbiddenMethodsSet:B,referrerPolicySet:Q};}),e3("ktTfx",function(A,e){let t=Symbol.for("undici.globalOrigin.1");A.exports={getGlobalOrigin:function(){return globalThis[t];},setGlobalOrigin:function(A){if(void 0===A){Object.defineProperty(globalThis,t,{value:void 0,writable:!0,enumerable:!1,configurable:!1});return;}let e=new URL(A);if("http:"!==e.protocol&&"https:"!==e.protocol)throw TypeError("Only http & https urls are allowed, received "+e.protocol);Object.defineProperty(globalThis,t,{value:e,writable:!0,enumerable:!1,configurable:!1});}};}),e3("jRFDL",function(A,e){var t,r,n,i,o,s,a,l,E,c,g,h;function Q(A,e,t){if(A=Buffer.from(A).toString("utf8"),"string"==typeof e)e=Buffer.from(e).toString("utf8");else if(E(e)||(e=e instanceof g?new u([e],"blob",{type:e.type}):new l(e,"blob",{type:e.type})),void 0!==t){let A={type:e.type,lastModified:e.lastModified};e=h&&e instanceof h||e instanceof a?new u([e],t,A):new l(e,t,A);}return{name:A,value:e};}r=(t=no("beXwr")).isBlobLike,n=t.toUSVString,i=t.makeIterator,o=no("kZx2v").kState,a=(s=no("bk82a")).File,l=s.FileLike,E=s.isFileLike,c=no("e7TzI").webidl,g=rJ.Blob;let u=null!=(h=rJ.File)?h:a;class C{constructor(A){if(void 0!==A)throw c.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[o]=[];}append(A,e,t){if(c.brandCheck(this,C),c.argumentLengthCheck(arguments,2,{header:"FormData.append"}),3==arguments.length&&!r(e))throw TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");A=c.converters.USVString(A),e=r(e)?c.converters.Blob(e,{strict:!1}):c.converters.USVString(e),t=3==arguments.length?c.converters.USVString(t):void 0;let n=Q(A,e,t);this[o].push(n);}delete(A){c.brandCheck(this,C),c.argumentLengthCheck(arguments,1,{header:"FormData.delete"}),A=c.converters.USVString(A),this[o]=this[o].filter(e=>e.name!==A);}get(A){c.brandCheck(this,C),c.argumentLengthCheck(arguments,1,{header:"FormData.get"}),A=c.converters.USVString(A);let e=this[o].findIndex(e=>e.name===A);return-1===e?null:this[o][e].value;}getAll(A){return c.brandCheck(this,C),c.argumentLengthCheck(arguments,1,{header:"FormData.getAll"}),A=c.converters.USVString(A),this[o].filter(e=>e.name===A).map(A=>A.value);}has(A){return c.brandCheck(this,C),c.argumentLengthCheck(arguments,1,{header:"FormData.has"}),A=c.converters.USVString(A),-1!==this[o].findIndex(e=>e.name===A);}set(A,e,t){if(c.brandCheck(this,C),c.argumentLengthCheck(arguments,2,{header:"FormData.set"}),3==arguments.length&&!r(e))throw TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");A=c.converters.USVString(A),e=r(e)?c.converters.Blob(e,{strict:!1}):c.converters.USVString(e),t=3==arguments.length?n(t):void 0;let i=Q(A,e,t),s=this[o].findIndex(e=>e.name===A);-1!==s?this[o]=[...this[o].slice(0,s),i,...this[o].slice(s+1).filter(e=>e.name!==A)]:this[o].push(i);}entries(){return c.brandCheck(this,C),i(()=>this[o].map(A=>[A.name,A.value]),"FormData","key+value");}keys(){return c.brandCheck(this,C),i(()=>this[o].map(A=>[A.name,A.value]),"FormData","key");}values(){return c.brandCheck(this,C),i(()=>this[o].map(A=>[A.name,A.value]),"FormData","value");}forEach(A,e=globalThis){if(c.brandCheck(this,C),c.argumentLengthCheck(arguments,1,{header:"FormData.forEach"}),"function"!=typeof A)throw TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.");for(let[t,r]of this)A.apply(e,[r,t,this]);}}C.prototype[Symbol.iterator]=C.prototype.entries,Object.defineProperties(C.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:!0}}),A.exports={FormData:C};}),e3("kZx2v",function(A,e){A.exports={kUrl:Symbol(),kHeaders:Symbol(),kSignal:Symbol(),kState:Symbol(),kGuard:Symbol(),kRealm:Symbol()};}),e3("bk82a",function(A,e){var t,r,n,i,o,s,a,l,E,c;t=rJ.Blob,r=rJ.File,n=rO.types,i=no("kZx2v").kState,o=no("beXwr").isBlobLike,s=no("e7TzI").webidl,l=(a=no("g34gh")).parseMIMEType,E=a.serializeAMimeType,c=no("a5c5d").kEnumerableProperty;let g=new TextEncoder();class h extends t{constructor(A,e,t={}){let r;s.argumentLengthCheck(arguments,2,{header:"File constructor"}),A=s.converters["sequence"](A),e=s.converters.USVString(e),t=s.converters.FilePropertyBag(t);let a=e,c=t.type;A:{if(c){if("failure"===(c=l(c))){c="";break A;}c=E(c).toLowerCase();}r=t.lastModified;}super(function(A,e){let t=[];for(let r of A)if("string"==typeof r){let A=r;"native"===e.endings&&(A=function(A){let e="\n";return"win32"===process.platform&&(e="\r\n"),A.replace(/\r?\n/g,e);}(A)),t.push(g.encode(A));}else n.isAnyArrayBuffer(r)||n.isTypedArray(r)?r.buffer?t.push(new Uint8Array(r.buffer,r.byteOffset,r.byteLength)):t.push(new Uint8Array(r)):o(r)&&t.push(r);return t;}(A,t),{type:c}),this[i]={name:a,lastModified:r,type:c};}get name(){return s.brandCheck(this,h),this[i].name;}get lastModified(){return s.brandCheck(this,h),this[i].lastModified;}get type(){return s.brandCheck(this,h),this[i].type;}}class Q{constructor(A,e,t={}){var r;let n=t.type,o=null!==(r=t.lastModified)&&void 0!==r?r:Date.now();this[i]={blobLike:A,name:e,type:n,lastModified:o};}stream(...A){return s.brandCheck(this,Q),this[i].blobLike.stream(...A);}arrayBuffer(...A){return s.brandCheck(this,Q),this[i].blobLike.arrayBuffer(...A);}slice(...A){return s.brandCheck(this,Q),this[i].blobLike.slice(...A);}text(...A){return s.brandCheck(this,Q),this[i].blobLike.text(...A);}get size(){return s.brandCheck(this,Q),this[i].blobLike.size;}get type(){return s.brandCheck(this,Q),this[i].blobLike.type;}get name(){return s.brandCheck(this,Q),this[i].name;}get lastModified(){return s.brandCheck(this,Q),this[i].lastModified;}get[Symbol.toStringTag](){return"File";}}Object.defineProperties(h.prototype,{[Symbol.toStringTag]:{value:"File",configurable:!0},name:c,lastModified:c}),s.converters.Blob=s.interfaceConverter(t),s.converters.BlobPart=function(A,e){if("Object"===s.util.Type(A)){if(o(A))return s.converters.Blob(A,{strict:!1});if(ArrayBuffer.isView(A)||n.isAnyArrayBuffer(A))return s.converters.BufferSource(A,e);}return s.converters.USVString(A,e);},s.converters["sequence"]=s.sequenceConverter(s.converters.BlobPart),s.converters.FilePropertyBag=s.dictionaryConverter([{key:"lastModified",converter:s.converters["long long"],get defaultValue(){return Date.now();}},{key:"type",converter:s.converters.DOMString,defaultValue:""},{key:"endings",converter:A=>("native"!==(A=(A=s.converters.DOMString(A)).toLowerCase())&&(A="transparent"),A),defaultValue:"transparent"}]),A.exports={File:h,FileLike:Q,isFileLike:function(A){return r&&A instanceof r||A instanceof h||A&&("function"==typeof A.stream||"function"==typeof A.arrayBuffer)&&"File"===A[Symbol.toStringTag];}};}),e3("e7TzI",function(A,e){var t=rO.types,r=no("beXwr"),n=r.hasOwn,i=r.toUSVString;let o={};o.converters={},o.util={},o.errors={},o.errors.exception=function(A){return TypeError(`${A.header}: ${A.message}`);},o.errors.conversionFailed=function(A){let e=1===A.types.length?"":" one of",t=`${A.argument} could not be converted to${e}: ${A.types.join(", ")}.`;return o.errors.exception({header:A.prefix,message:t});},o.errors.invalidArgument=function(A){return o.errors.exception({header:A.prefix,message:`"${A.value}" is an invalid ${A.type}.`});},o.brandCheck=function(A,e,t){if((null==t?void 0:t.strict)===!1||A instanceof e)return(null==A?void 0:A[Symbol.toStringTag])===e.prototype[Symbol.toStringTag];throw TypeError("Illegal invocation");},o.argumentLengthCheck=function({length:A},e,t){if(e>A)throw o.errors.exception({message:`${e} argument${1!==e?"s":""} required, but${A?" only":""} ${A} found.`,...t});},o.illegalConstructor=function(){throw o.errors.exception({header:"TypeError",message:"Illegal constructor"});},o.util.Type=function(A){switch(typeof A){case"undefined":return"Undefined";case"boolean":return"Boolean";case"string":return"String";case"symbol":return"Symbol";case"number":return"Number";case"bigint":return"BigInt";case"function":case"object":if(null===A)return"Null";return"Object";}},o.util.ConvertToInt=function(A,e,t,r={}){let n,i;64===e?(n=9007199254740991,i="unsigned"===t?0:-9007199254740991):"unsigned"===t?(i=0,n=Math.pow(2,e)-1):(i=Math.pow(-2,e)-1,n=Math.pow(2,e-1)-1);let s=+A;if(0===s&&(s=0),!0===r.enforceRange){if(Number.isNaN(s)||s===Number.POSITIVE_INFINITY||s===Number.NEGATIVE_INFINITY)throw o.errors.exception({header:"Integer conversion",message:`Could not convert ${A} to an integer.`});if((s=o.util.IntegerPart(s))n)throw o.errors.exception({header:"Integer conversion",message:`Value must be between ${i}-${n}, got ${s}.`});return s;}return Number.isNaN(s)||!0!==r.clamp?Number.isNaN(s)||0===s&&Object.is(0,s)||s===Number.POSITIVE_INFINITY||s===Number.NEGATIVE_INFINITY?0:(s=o.util.IntegerPart(s)%Math.pow(2,e),"signed"===t&&s>=Math.pow(2,e)-1)?s-Math.pow(2,e):s:s=Math.floor(s=Math.min(Math.max(s,i),n))%2==0?Math.floor(s):Math.ceil(s);},o.util.IntegerPart=function(A){let e=Math.floor(Math.abs(A));return A<0?-1*e:e;},o.sequenceConverter=function(A){return e=>{var t;if("Object"!==o.util.Type(e))throw o.errors.exception({header:"Sequence",message:`Value of type ${o.util.Type(e)} is not an Object.`});let r=null==e?void 0:null===(t=e[Symbol.iterator])||void 0===t?void 0:t.call(e),n=[];if(void 0===r||"function"!=typeof r.next)throw o.errors.exception({header:"Sequence",message:"Object is not an iterator."});for(;;){let{done:e,value:t}=r.next();if(e)break;n.push(A(t));}return n;};},o.recordConverter=function(A,e){return r=>{if("Object"!==o.util.Type(r))throw o.errors.exception({header:"Record",message:`Value of type ${o.util.Type(r)} is not an Object.`});let n={};if(!t.isProxy(r)){for(let t of Object.keys(r)){let i=A(t),o=e(r[t]);n[i]=o;}return n;}for(let t of Reflect.ownKeys(r)){let i=Reflect.getOwnPropertyDescriptor(r,t);if(null==i?void 0:i.enumerable){let i=A(t),o=e(r[t]);n[i]=o;}}return n;};},o.interfaceConverter=function(A){return(e,t={})=>{if(!1!==t.strict&&!(e instanceof A))throw o.errors.exception({header:A.name,message:`Expected ${e} to be an instance of ${A.name}.`});return e;};},o.dictionaryConverter=function(A){return e=>{let t=o.util.Type(e),r={};if("Null"===t||"Undefined"===t)return r;if("Object"!==t)throw o.errors.exception({header:"Dictionary",message:`Expected ${e} to be one of: Null, Undefined, Object.`});for(let t of A){let{key:A,defaultValue:i,required:s,converter:a}=t;if(!0===s&&!n(e,A))throw o.errors.exception({header:"Dictionary",message:`Missing required key "${A}".`});let l=e[A],E=n(t,"defaultValue");if(E&&null!==l&&(l=null!=l?l:i),s||E||void 0!==l){if(l=a(l),t.allowedValues&&!t.allowedValues.includes(l))throw o.errors.exception({header:"Dictionary",message:`${l} is not an accepted type. Expected one of ${t.allowedValues.join(", ")}.`});r[A]=l;}}return r;};},o.nullableConverter=function(A){return e=>null===e?e:A(e);},o.converters.DOMString=function(A,e={}){if(null===A&&e.legacyNullToEmptyString)return"";if("symbol"==typeof A)throw TypeError("Could not convert argument of type symbol to string.");return A+"";},o.converters.ByteString=function(A){let e=o.converters.DOMString(A);for(let A=0;A255)throw TypeError(`Cannot convert argument to a ByteString because the character at index ${A} has a value of ${e.charCodeAt(A)} which is greater than 255.`);return e;},o.converters.USVString=i,o.converters.boolean=function(A){return!!A;},o.converters.any=function(A){return A;},o.converters["long long"]=function(A){return o.util.ConvertToInt(A,64,"signed");},o.converters["unsigned long long"]=function(A){return o.util.ConvertToInt(A,64,"unsigned");},o.converters["unsigned long"]=function(A){return o.util.ConvertToInt(A,32,"unsigned");},o.converters["unsigned short"]=function(A,e){return o.util.ConvertToInt(A,16,"unsigned",e);},o.converters.ArrayBuffer=function(A,e={}){if("Object"!==o.util.Type(A)||!t.isAnyArrayBuffer(A))throw o.errors.conversionFailed({prefix:""+A,argument:""+A,types:["ArrayBuffer"]});if(!1===e.allowShared&&t.isSharedArrayBuffer(A))throw o.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});return A;},o.converters.TypedArray=function(A,e,r={}){if("Object"!==o.util.Type(A)||!t.isTypedArray(A)||A.constructor.name!==e.name)throw o.errors.conversionFailed({prefix:""+e.name,argument:""+A,types:[e.name]});if(!1===r.allowShared&&t.isSharedArrayBuffer(A.buffer))throw o.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});return A;},o.converters.DataView=function(A,e={}){if("Object"!==o.util.Type(A)||!t.isDataView(A))throw o.errors.exception({header:"DataView",message:"Object is not a DataView."});if(!1===e.allowShared&&t.isSharedArrayBuffer(A.buffer))throw o.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});return A;},o.converters.BufferSource=function(A,e={}){if(t.isAnyArrayBuffer(A))return o.converters.ArrayBuffer(A,e);if(t.isTypedArray(A))return o.converters.TypedArray(A,A.constructor);if(t.isDataView(A))return o.converters.DataView(A,e);throw TypeError(`Could not convert ${A} to a BufferSource.`);},o.converters["sequence"]=o.sequenceConverter(o.converters.ByteString),o.converters["sequence>"]=o.sequenceConverter(o.converters["sequence"]),o.converters["record"]=o.recordConverter(o.converters.ByteString,o.converters.ByteString),A.exports={webidl:o};}),e3("g34gh",function(A,e){function t(A,e=!1){if(!e)return A.href;let t=A.href,r=A.hash.length;return 0===r?t:t.substring(0,t.length-r);}function r(A,e,t){let r="";for(;t.positionA.length)return"failure";e.position++;let i=n(";",A,e);if(0===(i=l(i,!1,!0)).length||!Q.test(i))return"failure";let o=t.toLowerCase(),a=i.toLowerCase(),E={type:o,subtype:a,parameters:new Map(),essence:`${o}/${a}`};for(;e.positionu.test(A),A,e);let t=r(A=>";"!==A&&"="!==A,A,e);if(t=t.toLowerCase(),e.positionA.length)break;let i=null;if('"'===A[e.position])i=s(A,e,!0),n(";",A,e);else if(0===(i=l(i=n(";",A,e),!1,!0)).length)continue;0!==t.length&&Q.test(t)&&(0===i.length||C.test(i))&&!E.parameters.has(t)&&E.parameters.set(t,i);}return E;}function s(A,e,t){let n=e.position,i="";for(rY('"'===A[e.position]),e.position++;i+=r(A=>'"'!==A&&"\\"!==A,A,e),!(e.position>=A.length);){let t=A[e.position];if(e.position++,"\\"===t){if(e.position>=A.length){i+="\\";break;}i+=A[e.position],e.position++;}else{rY('"'===t);break;}}return t?i:A.slice(n,e.position);}function a(A){return"\r"===A||"\n"===A||" "===A||" "===A;}function l(A,e=!0,t=!0){let r=0,n=A.length-1;if(e)for(;r0&&a(A[n]);n--);return A.slice(r,n+1);}function E(A){return"\r"===A||"\n"===A||" "===A||"\f"===A||" "===A;}var c=rJ.atob,g=no("beXwr").isomorphicDecode;let h=new TextEncoder(),Q=/^[!#$%&'*+-.^_|~A-Za-z0-9]+$/,u=/(\u000A|\u000D|\u0009|\u0020)/,C=/[\u0009|\u0020-\u007E|\u0080-\u00FF]/;A.exports={dataURLProcessor:function(A){rY("data:"===A.protocol);let e=t(A,!0);e=e.slice(5);let r={position:0},s=n(",",e,r),a=s.length;if(s=function(A,e=!0,t=!0){let r=0,n=A.length-1;if(e)for(;r0&&E(A[n]);n--);return A.slice(r,n+1);}(s,!0,!0),r.position>=e.length)return"failure";r.position++;let l=i(e.slice(a+1));if(/;(\u0020){0,}base64$/i.test(s)){if("failure"===(l=function(A){if((A=A.replace(/[\u0009\u000A\u000C\u000D\u0020]/g,"")).length%4==0&&(A=A.replace(/=?=$/,"")),A.length%4==1||/[^+/0-9A-Za-z]/.test(A))return"failure";let e=c(A),t=new Uint8Array(e.length);for(let A=0;A=0;e--)if("function"!=typeof this[c][e])throw new o("interceptor must be an function");}this[c]=A;}close(A){if(void 0===A)return new Promise((A,e)=>{this.close((t,r)=>t?e(t):A(r));});if("function"!=typeof A)throw new o("invalid callback");if(this[g]){queueMicrotask(()=>A(new n(),null));return;}if(this[h]){this[u]?this[u].push(A):queueMicrotask(()=>A(null,null));return;}this[h]=!0,this[u].push(A);let e=()=>{let A=this[u];this[u]=null;for(let e=0;ethis.destroy()).then(()=>{queueMicrotask(e);});}destroy(A,e){if("function"==typeof A&&(e=A,A=null),void 0===e)return new Promise((e,t)=>{this.destroy(A,(A,r)=>A?t(A):e(r));});if("function"!=typeof e)throw new o("invalid callback");if(this[g]){this[Q]?this[Q].push(e):queueMicrotask(()=>e(null,null));return;}A||(A=new n()),this[g]=!0,this[Q]=this[Q]||[],this[Q].push(e);let t=()=>{let A=this[Q];this[Q]=null;for(let e=0;e{queueMicrotask(t);});}[C](A,e){if(!this[c]||0===this[c].length)return this[C]=this[E],this[E](A,e);let t=this[E].bind(this);for(let A=this[c].length-1;A>=0;A--)t=this[c][A](t);return this[C]=t,t(A,e);}dispatch(A,e){if(!e||"object"!=typeof e)throw new o("handler must be an object");try{if(!A||"object"!=typeof A)throw new o("opts must be an object.");if(this[g]||this[Q])throw new n();if(this[h])throw new i();return this[C](A,e);}catch(A){if("function"!=typeof e.onError)throw new o("invalid onError method");return e.onError(A),!1;}}};}),e3("iILaI",function(A,e){A.exports=class extends rG{dispatch(){throw Error("not implemented");}close(){throw Error("not implemented");}destroy(){throw Error("not implemented");}};}),e3("EkOIf",function(A,e){var t,r,n,i;let o,s;t=no("a5c5d"),n=(r=no("d1Hoi")).InvalidArgumentError,i=r.ConnectTimeoutError,nr.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE?s=class{constructor(A){this._maxCachedSessions=A,this._sessionCache=new Map(),this._sessionRegistry=new nr.FinalizationRegistry(A=>{if(this._sessionCache.size=this._maxCachedSessions){let{value:A}=this._sessionCache.keys().next();this._sessionCache.delete(A);}this._sessionCache.set(A,e);}}},A.exports=function({allowH2:A,maxCachedSessions:e,socketPath:r,timeout:a,...l}){if(null!=e&&(!Number.isInteger(e)||e<0))throw new n("maxCachedSessions must be a positive integer or zero");let E={path:r,...l},c=new s(null==e?100:e);return a=null==a?1e4:a,A=null!=A&&A,function({hostname:e,host:r,protocol:n,port:s,servername:l,localAddress:g,httpSocket:h},Q){let u;if("https:"===n){o||(o=rM);let n=(l=l||E.servername||t.getServerName(r)||null)||e,i=c.get(n)||null;rY(n),(u=o.connect({highWaterMark:16384,...E,servername:l,session:i,localAddress:g,ALPNProtocols:A?["http/1.1","h2"]:["http/1.1"],socket:h,port:s||443,host:e})).on("session",function(A){c.set(n,A);});}else rY(!h,"httpSocket can only be sent on TLS update"),u=rT.connect({highWaterMark:65536,...E,localAddress:g,port:s||80,host:e});if(null==E.keepAlive||E.keepAlive){let A=void 0===E.keepAliveInitialDelay?6e4:E.keepAliveInitialDelay;u.setKeepAlive(!0,A);}let C=function(A,e){if(!e)return()=>{};let t=null,r=null,n=setTimeout(()=>{t=setImmediate(()=>{"win32"===process.platform?r=setImmediate(()=>A()):A();});},e);return()=>{clearTimeout(n),clearImmediate(t),clearImmediate(r);};}(()=>{var A;return A=u,void t.destroy(A,new i());},a);return u.setNoDelay(!0).once("https:"===n?"secureConnect":"connect",function(){if(C(),Q){let A=Q;Q=null,A(null,this);}}).on("error",function(A){if(C(),Q){let e=Q;Q=null,e(A);}}),u;};};}),e3("h2D1B",function(A,e){Object.defineProperty(A.exports,"__esModule",{value:!0}),A.exports.SPECIAL_HEADERS=A.exports.HEADER_STATE=A.exports.MINOR=A.exports.MAJOR=A.exports.CONNECTION_TOKEN_CHARS=A.exports.HEADER_CHARS=A.exports.TOKEN=A.exports.STRICT_TOKEN=A.exports.HEX=A.exports.URL_CHAR=A.exports.STRICT_URL_CHAR=A.exports.USERINFO_CHARS=A.exports.MARK=A.exports.ALPHANUM=A.exports.NUM=A.exports.HEX_MAP=A.exports.NUM_MAP=A.exports.ALPHA=A.exports.FINISH=A.exports.H_METHOD_MAP=A.exports.METHOD_MAP=A.exports.METHODS_RTSP=A.exports.METHODS_ICE=A.exports.METHODS_HTTP=A.exports.METHODS=A.exports.LENIENT_FLAGS=A.exports.FLAGS=A.exports.TYPE=A.exports.ERROR=void 0;var t,r,n,i,o,s,a,l,E,c=no("4Ii9r");(t=A.exports.ERROR||(A.exports.ERROR={}))[t.OK=0]="OK",t[t.INTERNAL=1]="INTERNAL",t[t.STRICT=2]="STRICT",t[t.LF_EXPECTED=3]="LF_EXPECTED",t[t.UNEXPECTED_CONTENT_LENGTH=4]="UNEXPECTED_CONTENT_LENGTH",t[t.CLOSED_CONNECTION=5]="CLOSED_CONNECTION",t[t.INVALID_METHOD=6]="INVALID_METHOD",t[t.INVALID_URL=7]="INVALID_URL",t[t.INVALID_CONSTANT=8]="INVALID_CONSTANT",t[t.INVALID_VERSION=9]="INVALID_VERSION",t[t.INVALID_HEADER_TOKEN=10]="INVALID_HEADER_TOKEN",t[t.INVALID_CONTENT_LENGTH=11]="INVALID_CONTENT_LENGTH",t[t.INVALID_CHUNK_SIZE=12]="INVALID_CHUNK_SIZE",t[t.INVALID_STATUS=13]="INVALID_STATUS",t[t.INVALID_EOF_STATE=14]="INVALID_EOF_STATE",t[t.INVALID_TRANSFER_ENCODING=15]="INVALID_TRANSFER_ENCODING",t[t.CB_MESSAGE_BEGIN=16]="CB_MESSAGE_BEGIN",t[t.CB_HEADERS_COMPLETE=17]="CB_HEADERS_COMPLETE",t[t.CB_MESSAGE_COMPLETE=18]="CB_MESSAGE_COMPLETE",t[t.CB_CHUNK_HEADER=19]="CB_CHUNK_HEADER",t[t.CB_CHUNK_COMPLETE=20]="CB_CHUNK_COMPLETE",t[t.PAUSED=21]="PAUSED",t[t.PAUSED_UPGRADE=22]="PAUSED_UPGRADE",t[t.PAUSED_H2_UPGRADE=23]="PAUSED_H2_UPGRADE",t[t.USER=24]="USER",(r=A.exports.TYPE||(A.exports.TYPE={}))[r.BOTH=0]="BOTH",r[r.REQUEST=1]="REQUEST",r[r.RESPONSE=2]="RESPONSE",(n=A.exports.FLAGS||(A.exports.FLAGS={}))[n.CONNECTION_KEEP_ALIVE=1]="CONNECTION_KEEP_ALIVE",n[n.CONNECTION_CLOSE=2]="CONNECTION_CLOSE",n[n.CONNECTION_UPGRADE=4]="CONNECTION_UPGRADE",n[n.CHUNKED=8]="CHUNKED",n[n.UPGRADE=16]="UPGRADE",n[n.CONTENT_LENGTH=32]="CONTENT_LENGTH",n[n.SKIPBODY=64]="SKIPBODY",n[n.TRAILING=128]="TRAILING",n[n.TRANSFER_ENCODING=512]="TRANSFER_ENCODING",(i=A.exports.LENIENT_FLAGS||(A.exports.LENIENT_FLAGS={}))[i.HEADERS=1]="HEADERS",i[i.CHUNKED_LENGTH=2]="CHUNKED_LENGTH",i[i.KEEP_ALIVE=4]="KEEP_ALIVE",(o=l=A.exports.METHODS||(A.exports.METHODS={}))[o.DELETE=0]="DELETE",o[o.GET=1]="GET",o[o.HEAD=2]="HEAD",o[o.POST=3]="POST",o[o.PUT=4]="PUT",o[o.CONNECT=5]="CONNECT",o[o.OPTIONS=6]="OPTIONS",o[o.TRACE=7]="TRACE",o[o.COPY=8]="COPY",o[o.LOCK=9]="LOCK",o[o.MKCOL=10]="MKCOL",o[o.MOVE=11]="MOVE",o[o.PROPFIND=12]="PROPFIND",o[o.PROPPATCH=13]="PROPPATCH",o[o.SEARCH=14]="SEARCH",o[o.UNLOCK=15]="UNLOCK",o[o.BIND=16]="BIND",o[o.REBIND=17]="REBIND",o[o.UNBIND=18]="UNBIND",o[o.ACL=19]="ACL",o[o.REPORT=20]="REPORT",o[o.MKACTIVITY=21]="MKACTIVITY",o[o.CHECKOUT=22]="CHECKOUT",o[o.MERGE=23]="MERGE",o[o["M-SEARCH"]=24]="M-SEARCH",o[o.NOTIFY=25]="NOTIFY",o[o.SUBSCRIBE=26]="SUBSCRIBE",o[o.UNSUBSCRIBE=27]="UNSUBSCRIBE",o[o.PATCH=28]="PATCH",o[o.PURGE=29]="PURGE",o[o.MKCALENDAR=30]="MKCALENDAR",o[o.LINK=31]="LINK",o[o.UNLINK=32]="UNLINK",o[o.SOURCE=33]="SOURCE",o[o.PRI=34]="PRI",o[o.DESCRIBE=35]="DESCRIBE",o[o.ANNOUNCE=36]="ANNOUNCE",o[o.SETUP=37]="SETUP",o[o.PLAY=38]="PLAY",o[o.PAUSE=39]="PAUSE",o[o.TEARDOWN=40]="TEARDOWN",o[o.GET_PARAMETER=41]="GET_PARAMETER",o[o.SET_PARAMETER=42]="SET_PARAMETER",o[o.REDIRECT=43]="REDIRECT",o[o.RECORD=44]="RECORD",o[o.FLUSH=45]="FLUSH",A.exports.METHODS_HTTP=[l.DELETE,l.GET,l.HEAD,l.POST,l.PUT,l.CONNECT,l.OPTIONS,l.TRACE,l.COPY,l.LOCK,l.MKCOL,l.MOVE,l.PROPFIND,l.PROPPATCH,l.SEARCH,l.UNLOCK,l.BIND,l.REBIND,l.UNBIND,l.ACL,l.REPORT,l.MKACTIVITY,l.CHECKOUT,l.MERGE,l["M-SEARCH"],l.NOTIFY,l.SUBSCRIBE,l.UNSUBSCRIBE,l.PATCH,l.PURGE,l.MKCALENDAR,l.LINK,l.UNLINK,l.PRI,l.SOURCE],A.exports.METHODS_ICE=[l.SOURCE],A.exports.METHODS_RTSP=[l.OPTIONS,l.DESCRIBE,l.ANNOUNCE,l.SETUP,l.PLAY,l.PAUSE,l.TEARDOWN,l.GET_PARAMETER,l.SET_PARAMETER,l.REDIRECT,l.RECORD,l.FLUSH,l.GET,l.POST],A.exports.METHOD_MAP=c.enumToMap(l),A.exports.H_METHOD_MAP={},Object.keys(A.exports.METHOD_MAP).forEach(e=>{/^H/.test(e)&&(A.exports.H_METHOD_MAP[e]=A.exports.METHOD_MAP[e]);}),(s=A.exports.FINISH||(A.exports.FINISH={}))[s.SAFE=0]="SAFE",s[s.SAFE_WITH_CB=1]="SAFE_WITH_CB",s[s.UNSAFE=2]="UNSAFE",A.exports.ALPHA=[];for(let e=65;e<=90;e++)A.exports.ALPHA.push(String.fromCharCode(e)),A.exports.ALPHA.push(String.fromCharCode(e+32));A.exports.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9},A.exports.HEX_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},A.exports.NUM=["0","1","2","3","4","5","6","7","8","9"],A.exports.ALPHANUM=A.exports.ALPHA.concat(A.exports.NUM),A.exports.MARK=["-","_",".","!","~","*","'","(",")"],A.exports.USERINFO_CHARS=A.exports.ALPHANUM.concat(A.exports.MARK).concat(["%",";",":","&","=","+","$",","]),A.exports.STRICT_URL_CHAR=["!",'"',"$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","@","[","\\","]","^","_","`","{","|","}","~"].concat(A.exports.ALPHANUM),A.exports.URL_CHAR=A.exports.STRICT_URL_CHAR.concat([" ","\f"]);for(let e=128;e<=255;e++)A.exports.URL_CHAR.push(e);A.exports.HEX=A.exports.NUM.concat(["a","b","c","d","e","f","A","B","C","D","E","F"]),A.exports.STRICT_TOKEN=["!","#","$","%","&","'","*","+","-",".","^","_","`","|","~"].concat(A.exports.ALPHANUM),A.exports.TOKEN=A.exports.STRICT_TOKEN.concat([" "]),A.exports.HEADER_CHARS=[" "];for(let e=32;e<=255;e++)127!==e&&A.exports.HEADER_CHARS.push(e);A.exports.CONNECTION_TOKEN_CHARS=A.exports.HEADER_CHARS.filter(A=>44!==A),A.exports.MAJOR=A.exports.NUM_MAP,A.exports.MINOR=A.exports.MAJOR,(a=E=A.exports.HEADER_STATE||(A.exports.HEADER_STATE={}))[a.GENERAL=0]="GENERAL",a[a.CONNECTION=1]="CONNECTION",a[a.CONTENT_LENGTH=2]="CONTENT_LENGTH",a[a.TRANSFER_ENCODING=3]="TRANSFER_ENCODING",a[a.UPGRADE=4]="UPGRADE",a[a.CONNECTION_KEEP_ALIVE=5]="CONNECTION_KEEP_ALIVE",a[a.CONNECTION_CLOSE=6]="CONNECTION_CLOSE",a[a.CONNECTION_UPGRADE=7]="CONNECTION_UPGRADE",a[a.TRANSFER_ENCODING_CHUNKED=8]="TRANSFER_ENCODING_CHUNKED",A.exports.SPECIAL_HEADERS={connection:E.CONNECTION,"content-length":E.CONTENT_LENGTH,"proxy-connection":E.CONNECTION,"transfer-encoding":E.TRANSFER_ENCODING,upgrade:E.UPGRADE};}),e3("4Ii9r",function(A,e){Object.defineProperty(A.exports,"__esModule",{value:!0}),A.exports.enumToMap=void 0,A.exports.enumToMap=function(A){let e={};return Object.keys(A).forEach(t=>{let r=A[t];"number"==typeof r&&(e[t]=r);}),e;};}),e3("9dgiL",function(A,e){var t;t=no("24xhw"),A.exports=function({maxRedirections:A}){return e=>function(r,n){let{maxRedirections:i=A}=r;if(!i)return e(r,n);let o=new t(e,i,r,n);return e(r={...r,maxRedirections:0},o);};};}),e3("24xhw",function(A,e){var t,r,n;function i(A,e,t){return 4===A.length&&"host"===A.toString().toLowerCase()||e&&0===A.toString().toLowerCase().indexOf("content-")||t&&13===A.length&&"authorization"===A.toString().toLowerCase()||t&&6===A.length&&"cookie"===A.toString().toLowerCase();}t=no("a5c5d"),r=no("fYjBn").kBodyUsed,n=no("d1Hoi").InvalidArgumentError;let o=[300,301,302,303,307,308],s=Symbol();class a{constructor(A){this[s]=A,this[r]=!1;}async*[Symbol.asyncIterator](){rY(!this[r],"disturbed"),this[r]=!0,yield*this[s];}}A.exports=class{constructor(A,e,i,o){if(null!=e&&(!Number.isInteger(e)||e<0))throw new n("maxRedirections must be a positive number");t.validateHandler(o,i.method,i.upgrade),this.dispatch=A,this.location=null,this.abort=null,this.opts={...i,maxRedirections:0},this.maxRedirections=e,this.handler=o,this.history=[],t.isStream(this.opts.body)?(0===t.bodyLength(this.opts.body)&&this.opts.body.on("data",function(){rY(!1);}),"boolean"!=typeof this.opts.body.readableDidRead&&(this.opts.body[r]=!1,rG.prototype.on.call(this.opts.body,"data",function(){this[r]=!0;}))):this.opts.body&&"function"==typeof this.opts.body.pipeTo?this.opts.body=new a(this.opts.body):this.opts.body&&"string"!=typeof this.opts.body&&!ArrayBuffer.isView(this.opts.body)&&t.isIterable(this.opts.body)&&(this.opts.body=new a(this.opts.body));}onConnect(A){this.abort=A,this.handler.onConnect(A,{history:this.history});}onUpgrade(A,e,t){this.handler.onUpgrade(A,e,t);}onError(A){this.handler.onError(A);}onHeaders(A,e,r,n){if(this.location=this.history.length>=this.maxRedirections||t.isDisturbed(this.opts.body)?null:function(A,e){if(-1===o.indexOf(A))return null;for(let A=0;A!A[i]);return A||(!this[I]||this[n].lengthA.close())).then(A[f]);},this[y]=(e,t)=>{A.emit("connect",e,[A,...t]);},this[m]=(e,t,r)=>{A.emit("disconnect",e,[A,...t],r);},this[w]=(e,t,r)=>{A.emit("connectionError",e,[A,...t],r);},this[k]=new C(this);}get[E](){return this[B];}get[i](){return this[I].filter(A=>A[i]).length;}get[c](){return this[I].filter(A=>A[i]&&!A[B]).length;}get[a](){let A=this[l];for(let{[a]:e}of this[I])A+=e;return A;}get[s](){let A=0;for(let{[s]:e}of this[I])A+=e;return A;}get[o](){let A=this[l];for(let{[o]:e}of this[I])A+=e;return A;}get stats(){return this[k];}async[h](){return this[d].isEmpty()?Promise.all(this[I].map(A=>A.close())):new Promise(A=>{this[f]=A;});}async[Q](A){for(;;){let e=this[d].shift();if(!e)break;e.handler.onError(A);}return Promise.all(this[I].map(e=>e.destroy(A)));}[u](A,e){let t=this[R]();return t?t.dispatch(A,e)||(t[B]=!0,this[B]=!this[R]()):(this[B]=!0,this[d].push({opts:A,handler:e}),this[l]++),!this[B];}[D](A){return A.on("drain",this[p]).on("connect",this[y]).on("disconnect",this[m]).on("connectionError",this[w]),this[I].push(A),this[B]&&process.nextTick(()=>{this[B]&&this[p](A[g],[this,A]);}),this;}[b](A){A.close(()=>{let e=this[I].indexOf(A);-1!==e&&this[I].splice(e,1);}),this[B]=this[I].some(A=>!A[B]&&!0!==A.closed&&!0!==A.destroyed);}},kClients:I,kNeedDrain:B,kAddClient:D,kRemoveClient:b,kGetDispatcher:R};}),e3("kV3ow",function(A,e){class t{constructor(){this.bottom=0,this.top=0,this.list=Array(2048),this.next=null;}isEmpty(){return this.top===this.bottom;}isFull(){return(this.top+1&2047)===this.bottom;}push(A){this.list[this.top]=A,this.top=this.top+1&2047;}shift(){let A=this.list[this.bottom];return void 0===A?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,A);}}A.exports=class{constructor(){this.head=this.tail=new t();}isEmpty(){return this.head.isEmpty();}push(A){this.head.isFull()&&(this.head=this.head.next=new t()),this.head.push(A);}shift(){let A=this.tail,e=A.shift();return A.isEmpty()&&null!==A.next&&(this.tail=A.next),e;}};}),e3("3XeCv",function(A,e){var t=no("fYjBn"),r=t.kFree,n=t.kConnected,i=t.kPending,o=t.kQueued,s=t.kRunning,a=t.kSize;let l=Symbol();A.exports=class{constructor(A){this[l]=A;}get connected(){return this[l][n];}get free(){return this[l][r];}get pending(){return this[l][i];}get queued(){return this[l][o];}get running(){return this[l][s];}get size(){return this[l][a];}};}),e3("iZD2L",function(A,e){var t,r,n,i,o,s,a,l,E,c,g,h,Q,u,C;function I(A,e){return new g(A,e);}r=(t=no("d1Hoi")).BalancedPoolMissingUpstreamError,n=t.InvalidArgumentError,o=(i=no("7MABF")).PoolBase,s=i.kClients,a=i.kNeedDrain,l=i.kAddClient,E=i.kRemoveClient,c=i.kGetDispatcher,g=no("8wrqe"),Q=(h=no("fYjBn")).kUrl,u=h.kInterceptors,C=no("a5c5d").parseOrigin;let B=Symbol(),d=Symbol(),f=Symbol(),p=Symbol(),y=Symbol(),m=Symbol(),w=Symbol(),R=Symbol();A.exports=class extends o{constructor(A=[],{factory:e=I,...t}={}){if(super(),this[d]=t,this[y]=-1,this[p]=0,this[w]=this[d].maxWeightPerServer||100,this[R]=this[d].errorPenalty||15,Array.isArray(A)||(A=[A]),"function"!=typeof e)throw new n("factory must be a function.");for(let r of(this[u]=t.interceptors&&t.interceptors.BalancedPool&&Array.isArray(t.interceptors.BalancedPool)?t.interceptors.BalancedPool:[],this[B]=e,A))this.addUpstream(r);this._updateBalancedPoolStats();}addUpstream(A){let e=C(A).origin;if(this[s].find(A=>A[Q].origin===e&&!0!==A.closed&&!0!==A.destroyed))return this;let t=this[B](e,Object.assign({},this[d]));for(let A of(this[l](t),t.on("connect",()=>{t[m]=Math.min(this[w],t[m]+this[R]);}),t.on("connectionError",()=>{t[m]=Math.max(1,t[m]-this[R]),this._updateBalancedPoolStats();}),t.on("disconnect",(...A)=>{let e=A[2];e&&"UND_ERR_SOCKET"===e.code&&(t[m]=Math.max(1,t[m]-this[R]),this._updateBalancedPoolStats());}),this[s]))A[m]=this[w];return this._updateBalancedPoolStats(),this;}_updateBalancedPoolStats(){this[f]=this[s].map(A=>A[m]).reduce(function A(e,t){return 0===t?e:A(t,e%t);},0);}removeUpstream(A){let e=C(A).origin,t=this[s].find(A=>A[Q].origin===e&&!0!==A.closed&&!0!==A.destroyed);return t&&this[E](t),this;}get upstreams(){return this[s].filter(A=>!0!==A.closed&&!0!==A.destroyed).map(A=>A[Q].origin);}[c](){if(0===this[s].length)throw new r();if(!this[s].find(A=>!A[a]&&!0!==A.closed&&!0!==A.destroyed)||this[s].map(A=>A[a]).reduce((A,e)=>A&&e,!0))return;let A=0,e=this[s].findIndex(A=>!A[a]);for(;A++this[s][e][m]&&!A[a]&&(e=this[y]),0===this[y]&&(this[p]=this[p]-this[f],this[p]<=0&&(this[p]=this[w])),A[m]>=this[p]&&!A[a])return A;}return this[p]=this[s][e][m],this[y]=e,this[s][e];}};}),e3("lQkIG",function(A,e){var t,r,n,i,o,s,a,l,E,c,g,h,Q;function u(A,e){return e&&1===e.connections?new g(A,e):new c(A,e);}t=no("d1Hoi").InvalidArgumentError,n=(r=no("fYjBn")).kClients,i=r.kRunning,o=r.kClose,s=r.kDestroy,a=r.kDispatch,l=r.kInterceptors,E=no("3lDcb"),c=no("8wrqe"),g=no("acLo8"),h=no("a5c5d"),Q=no("9dgiL");let{WeakRef:C,FinalizationRegistry:I}=no("5fiYE")(),B=Symbol(),d=Symbol(),f=Symbol(),p=Symbol(),y=Symbol(),m=Symbol(),w=Symbol(),R=Symbol();A.exports=class extends E{constructor({factory:A=u,maxRedirections:e=0,connect:r,...i}={}){if(super(),"function"!=typeof A)throw new t("factory must be a function.");if(null!=r&&"function"!=typeof r&&"object"!=typeof r)throw new t("connect must be a function or an object");if(!Number.isInteger(e)||e<0)throw new t("maxRedirections must be a positive number");r&&"function"!=typeof r&&(r={...r}),this[l]=i.interceptors&&i.interceptors.Agent&&Array.isArray(i.interceptors.Agent)?i.interceptors.Agent:[Q({maxRedirections:e})],this[R]={...h.deepClone(i),connect:r},this[R].interceptors=i.interceptors?{...i.interceptors}:void 0,this[p]=e,this[m]=A,this[n]=new Map(),this[w]=new I(A=>{let e=this[n].get(A);void 0!==e&&void 0===e.deref()&&this[n].delete(A);});let o=this;this[y]=(A,e)=>{o.emit("drain",A,[o,...e]);},this[B]=(A,e)=>{o.emit("connect",A,[o,...e]);},this[d]=(A,e,t)=>{o.emit("disconnect",A,[o,...e],t);},this[f]=(A,e,t)=>{o.emit("connectionError",A,[o,...e],t);};}get[i](){let A=0;for(let e of this[n].values()){let t=e.deref();t&&(A+=t[i]);}return A;}[a](A,e){let r;if(A.origin&&("string"==typeof A.origin||A.origin instanceof URL))r=A.origin+"";else throw new t("opts.origin must be a non-empty string or URL.");let i=this[n].get(r),o=i?i.deref():null;return o||(o=this[m](A.origin,this[R]).on("drain",this[y]).on("connect",this[B]).on("disconnect",this[d]).on("connectionError",this[f]),this[n].set(r,new C(o)),this[w].register(o,r)),o.dispatch(A,e);}async[o](){let A=[];for(let e of this[n].values()){let t=e.deref();t&&A.push(t.close());}await Promise.all(A);}async[s](A){let e=[];for(let t of this[n].values()){let r=t.deref();r&&e.push(r.destroy(A));}await Promise.all(e);}};}),e3("5fiYE",function(A,e){var t=no("fYjBn"),r=t.kConnected,n=t.kSize;class i{constructor(A){this.value=A;}deref(){return 0===this.value[r]&&0===this.value[n]?void 0:this.value;}}class o{constructor(A){this.finalizer=A;}register(A,e){A.on&&A.on("disconnect",()=>{0===A[r]&&0===A[n]&&this.finalizer(e);});}}A.exports=function(){return process.env.NODE_V8_COVERAGE?{WeakRef:i,FinalizationRegistry:o}:{WeakRef:nr.WeakRef||i,FinalizationRegistry:nr.FinalizationRegistry||o};};}),e3("iuzpQ",function(A,e){var t,r,n,i,o;a(A.exports,"request",()=>t,A=>t=A),a(A.exports,"stream",()=>r,A=>r=A),a(A.exports,"pipeline",()=>n,A=>n=A),a(A.exports,"upgrade",()=>i,A=>i=A),a(A.exports,"connect",()=>o,A=>o=A),t=no("lgtZy"),r=no("aV8Ya"),n=no("d0apx"),i=no("4dlH3"),o=no("kuwJ3");}),e3("lgtZy",function(A,e){var t,r,n,i,o,s,a,l,E,c;t=no("lkfra"),n=(r=no("d1Hoi")).InvalidArgumentError,i=r.RequestAbortedError,o=no("a5c5d"),s=no("4zu0K").getResolveErrorBodyCallback,a=rZ.AsyncResource,E=(l=no("7gUQR")).addSignal,c=l.removeSignal;class g extends a{constructor(A,e){if(!A||"object"!=typeof A)throw new n("invalid opts");let{signal:t,method:r,opaque:i,body:s,onInfo:a,responseHeaders:l,throwOnError:c,highWaterMark:g}=A;try{if("function"!=typeof e)throw new n("invalid callback");if(g&&("number"!=typeof g||g<0))throw new n("invalid highWaterMark");if(t&&"function"!=typeof t.on&&"function"!=typeof t.addEventListener)throw new n("signal must be an EventEmitter or EventTarget");if("CONNECT"===r)throw new n("invalid method");if(a&&"function"!=typeof a)throw new n("invalid onInfo callback");super("UNDICI_REQUEST");}catch(A){throw o.isStream(s)&&o.destroy(s.on("error",o.nop),A),A;}this.responseHeaders=l||null,this.opaque=i||null,this.callback=e,this.res=null,this.abort=null,this.body=s,this.trailers={},this.context=null,this.onInfo=a||null,this.throwOnError=c,this.highWaterMark=g,o.isStream(s)&&s.on("error",A=>{this.onError(A);}),E(this,t);}onConnect(A,e){if(!this.callback)throw new i();this.abort=A,this.context=e;}onHeaders(A,e,r,n){let{callback:i,opaque:a,abort:l,context:E,responseHeaders:c,highWaterMark:g}=this,h="raw"===c?o.parseRawHeaders(e):o.parseHeaders(e);if(A<200){this.onInfo&&this.onInfo({statusCode:A,headers:h});return;}let Q=("raw"===c?o.parseHeaders(e):h)["content-type"],u=new t({resume:r,abort:l,contentType:Q,highWaterMark:g});this.callback=null,this.res=u,null!==i&&(this.throwOnError&&A>=400?this.runInAsyncScope(s,null,{callback:i,body:u,contentType:Q,statusCode:A,statusMessage:n,headers:h}):this.runInAsyncScope(i,null,null,{statusCode:A,headers:h,trailers:this.trailers,opaque:a,body:u,context:E}));}onData(A){let{res:e}=this;return e.push(A);}onComplete(A){let{res:e}=this;c(this),o.parseHeaders(A,this.trailers),e.push(null);}onError(A){let{res:e,callback:t,body:r,opaque:n}=this;c(this),t&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(t,null,A,{opaque:n});})),e&&(this.res=null,queueMicrotask(()=>{o.destroy(e,A);})),r&&(this.body=null,o.destroy(r,A));}}A.exports=function A(e,t){if(void 0===t)return new Promise((t,r)=>{A.call(this,e,(A,e)=>A?r(A):t(e));});try{this.dispatch(e,new g(e,t));}catch(r){if("function"!=typeof t)throw r;let A=e&&e.opaque;queueMicrotask(()=>t(r,{opaque:A}));}},A.exports.RequestHandler=g;}),e3("lkfra",function(A,e){var t,r,n,i,o,s,a,l;let E;async function c(A,e){var t;if(s.isDisturbed(A)||(t=A)[B]&&!0===t[B].locked||t[C])throw TypeError("unusable");return rY(!A[C]),new Promise((t,r)=>{A[C]={type:e,stream:A,resolve:t,reject:r,length:0,body:[]},A.on("error",function(A){u(this[C],A);}).on("close",function(){null!==this[C].body&&u(this[C],new n());}),process.nextTick(g,A[C]);});}function g(A){if(null===A.body)return;let{_readableState:e}=A.stream;for(let t of e.buffer)Q(A,t);for(e.endEmitted?h(this[C]):A.stream.on("end",function(){h(this[C]);}),A.stream.resume();null!=A.stream.read(););}function h(A){let{type:e,body:t,resolve:r,stream:n,length:i}=A;try{if("text"===e)r(l(Buffer.concat(t)));else if("json"===e)r(JSON.parse(Buffer.concat(t)));else if("arrayBuffer"===e){let A=new Uint8Array(i),e=0;for(let r of t)A.set(r,e),e+=r.byteLength;r(A.buffer);}else"blob"===e&&(E||(E=$f86770bbefb2637d$import$d04c39d37e012a99$3b660928c86ff55c),r(new E(t,{type:n[f]})));u(A);}catch(A){n.destroy(A);}}function Q(A,e){A.length+=e.length,A.body.push(e);}function u(A,e){null!==A.body&&(e?A.reject(e):A.resolve(),A.type=null,A.stream=null,A.resolve=null,A.reject=null,A.length=0,A.body=null);}t=rH.Readable,n=(r=no("d1Hoi")).RequestAbortedError,i=r.NotSupportedError,o=r.InvalidArgumentError,s=no("a5c5d"),a=(s=no("a5c5d")).ReadableStreamFrom,l=s.toUSVString;let C=Symbol(),I=Symbol(),B=Symbol(),d=Symbol(),f=Symbol(),p=()=>{};A.exports=class extends t{constructor({resume:A,abort:e,contentType:t="",highWaterMark:r=65536}){super({autoDestroy:!0,read:A,highWaterMark:r}),this._readableState.dataEmitted=!1,this[d]=e,this[C]=null,this[B]=null,this[f]=t,this[I]=!1;}destroy(A){return this.destroyed?this:(A||this._readableState.endEmitted||(A=new n()),A&&this[d](),super.destroy(A));}emit(A,...e){return"data"===A?this._readableState.dataEmitted=!0:"error"===A&&(this._readableState.errorEmitted=!0),super.emit(A,...e);}on(A,...e){return("data"===A||"readable"===A)&&(this[I]=!0),super.on(A,...e);}addListener(A,...e){return this.on(A,...e);}off(A,...e){let t=super.off(A,...e);return("data"===A||"readable"===A)&&(this[I]=this.listenerCount("data")>0||this.listenerCount("readable")>0),t;}removeListener(A,...e){return this.off(A,...e);}push(A){return this[C]&&null!==A&&0===this.readableLength?(Q(this[C],A),!this[I]||super.push(A)):super.push(A);}async text(){return c(this,"text");}async json(){return c(this,"json");}async blob(){return c(this,"blob");}async arrayBuffer(){return c(this,"arrayBuffer");}async formData(){throw new i();}get bodyUsed(){return s.isDisturbed(this);}get body(){return!this[B]&&(this[B]=a(this),this[C]&&(this[B].getReader(),rY(this[B].locked))),this[B];}dump(A){let e=A&&Number.isFinite(A.limit)?A.limit:262144,t=A&&A.signal;if(t)try{if("object"!=typeof t||!("aborted"in t))throw new o("signal must be an AbortSignal");s.throwIfAborted(t);}catch(A){return Promise.reject(A);}return this.closed?Promise.resolve(null):new Promise((A,r)=>{let n=t?s.addAbortListener(t,()=>{this.destroy();}):p;this.on("close",function(){n(),t&&t.aborted?r(t.reason||Object.assign(Error("The operation was aborted"),{name:"AbortError"})):A(null);}).on("error",p).on("data",function(A){(e-=A.length)<=0&&this.destroy();}).resume();});}};}),e3("4zu0K",function(A,e){async function t({callback:A,body:e,contentType:t,statusCode:i,statusMessage:o,headers:s}){rY(e);let a=[],l=0;for await(let A of e)if(a.push(A),(l+=A.length)>131072){a=null;break;}if(204===i||!t||!a){process.nextTick(A,new r(`Response status code ${i}${o?": "+o:""}`,i,s));return;}try{if(t.startsWith("application/json")){let e=JSON.parse(n(Buffer.concat(a)));process.nextTick(A,new r(`Response status code ${i}${o?": "+o:""}`,i,s,e));return;}if(t.startsWith("text/")){let e=n(Buffer.concat(a));process.nextTick(A,new r(`Response status code ${i}${o?": "+o:""}`,i,s,e));return;}}catch(A){}process.nextTick(A,new r(`Response status code ${i}${o?": "+o:""}`,i,s));}var r=no("d1Hoi").ResponseStatusCodeError,n=no("a5c5d").toUSVString;A.exports={getResolveErrorBodyCallback:t};}),e3("7gUQR",function(A,e){function t(A){A.abort?A.abort():A.onError(new n());}var r=no("a5c5d").addAbortListener,n=no("d1Hoi").RequestAbortedError;let i=Symbol(),o=Symbol();A.exports={addSignal:function(A,e){if(A[o]=null,A[i]=null,e){if(e.aborted){t(A);return;}A[o]=e,A[i]=()=>{t(A);},r(A[o],A[i]);}},removeSignal:function(A){A[o]&&("removeEventListener"in A[o]?A[o].removeEventListener("abort",A[i]):A[o].removeListener("abort",A[i]),A[o]=null,A[i]=null);}};}),e3("aV8Ya",function(A,e){var t,r,n,i,o,s,a,l,E,c,g,h;t=rH.finished,r=rH.PassThrough,i=(n=no("d1Hoi")).InvalidArgumentError,o=n.InvalidReturnValueError,s=n.RequestAbortedError,a=no("a5c5d"),l=no("4zu0K").getResolveErrorBodyCallback,E=rZ.AsyncResource,g=(c=no("7gUQR")).addSignal,h=c.removeSignal;class Q extends E{constructor(A,e,t){if(!A||"object"!=typeof A)throw new i("invalid opts");let{signal:r,method:n,opaque:o,body:s,onInfo:l,responseHeaders:E,throwOnError:c}=A;try{if("function"!=typeof t)throw new i("invalid callback");if("function"!=typeof e)throw new i("invalid factory");if(r&&"function"!=typeof r.on&&"function"!=typeof r.addEventListener)throw new i("signal must be an EventEmitter or EventTarget");if("CONNECT"===n)throw new i("invalid method");if(l&&"function"!=typeof l)throw new i("invalid onInfo callback");super("UNDICI_STREAM");}catch(A){throw a.isStream(s)&&a.destroy(s.on("error",a.nop),A),A;}this.responseHeaders=E||null,this.opaque=o||null,this.factory=e,this.callback=t,this.res=null,this.abort=null,this.context=null,this.trailers=null,this.body=s,this.onInfo=l||null,this.throwOnError=c||!1,a.isStream(s)&&s.on("error",A=>{this.onError(A);}),g(this,r);}onConnect(A,e){if(!this.callback)throw new s();this.abort=A,this.context=e;}onHeaders(A,e,n,i){let s;let{factory:E,opaque:c,context:g,callback:h,responseHeaders:Q}=this,u="raw"===Q?a.parseRawHeaders(e):a.parseHeaders(e);if(A<200){this.onInfo&&this.onInfo({statusCode:A,headers:u});return;}if(this.factory=null,this.throwOnError&&A>=400){let t=("raw"===Q?a.parseHeaders(e):u)["content-type"];s=new r(),this.callback=null,this.runInAsyncScope(l,null,{callback:h,body:s,contentType:t,statusCode:A,statusMessage:i,headers:u});}else{if(null===E)return;if(!(s=this.runInAsyncScope(E,null,{statusCode:A,headers:u,opaque:c,context:g}))||"function"!=typeof s.write||"function"!=typeof s.end||"function"!=typeof s.on)throw new o("expected Writable");t(s,{readable:!1},A=>{let{callback:e,res:t,opaque:r,trailers:n,abort:i}=this;this.res=null,(A||!t.readable)&&a.destroy(t,A),this.callback=null,this.runInAsyncScope(e,null,A||null,{opaque:r,trailers:n}),A&&i();});}return s.on("drain",n),this.res=s,!0!==(void 0!==s.writableNeedDrain?s.writableNeedDrain:s._writableState&&s._writableState.needDrain);}onData(A){let{res:e}=this;return!e||e.write(A);}onComplete(A){let{res:e}=this;h(this),e&&(this.trailers=a.parseHeaders(A),e.end());}onError(A){let{res:e,callback:t,opaque:r,body:n}=this;h(this),this.factory=null,e?(this.res=null,a.destroy(e,A)):t&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(t,null,A,{opaque:r});})),n&&(this.body=null,a.destroy(n,A));}}A.exports=function A(e,t,r){if(void 0===r)return new Promise((r,n)=>{A.call(this,e,t,(A,e)=>A?n(A):r(e));});try{this.dispatch(e,new Q(e,t,r));}catch(t){if("function"!=typeof r)throw t;let A=e&&e.opaque;queueMicrotask(()=>r(t,{opaque:A}));}};}),e3("d0apx",function(A,e){var t,r,n,i,o,s,a,l,E,c,g,h;t=rH.Readable,r=rH.Duplex,n=rH.PassThrough,o=(i=no("d1Hoi")).InvalidArgumentError,s=i.InvalidReturnValueError,a=i.RequestAbortedError,l=no("a5c5d"),E=rZ.AsyncResource,g=(c=no("7gUQR")).addSignal,h=c.removeSignal;let Q=Symbol();class u extends t{constructor(){super({autoDestroy:!0}),this[Q]=null;}_read(){let{[Q]:A}=this;A&&(this[Q]=null,A());}_destroy(A,e){this._read(),e(A);}}class C extends t{constructor(A){super({autoDestroy:!0}),this[Q]=A;}_read(){this[Q]();}_destroy(A,e){A||this._readableState.endEmitted||(A=new a()),e(A);}}class I extends E{constructor(A,e){if(!A||"object"!=typeof A)throw new o("invalid opts");if("function"!=typeof e)throw new o("invalid handler");let{signal:t,method:n,opaque:i,onInfo:s,responseHeaders:E}=A;if(t&&"function"!=typeof t.on&&"function"!=typeof t.addEventListener)throw new o("signal must be an EventEmitter or EventTarget");if("CONNECT"===n)throw new o("invalid method");if(s&&"function"!=typeof s)throw new o("invalid onInfo callback");super("UNDICI_PIPELINE"),this.opaque=i||null,this.responseHeaders=E||null,this.handler=e,this.abort=null,this.context=null,this.onInfo=s||null,this.req=new u().on("error",l.nop),this.ret=new r({readableObjectMode:A.objectMode,autoDestroy:!0,read:()=>{let{body:A}=this;A&&A.resume&&A.resume();},write:(A,e,t)=>{let{req:r}=this;r.push(A,e)||r._readableState.destroyed?t():r[Q]=t;},destroy:(A,e)=>{let{body:t,req:r,res:n,ret:i,abort:o}=this;A||i._readableState.endEmitted||(A=new a()),o&&A&&o(),l.destroy(t,A),l.destroy(r,A),l.destroy(n,A),h(this),e(A);}}).on("prefinish",()=>{let{req:A}=this;A.push(null);}),this.res=null,g(this,t);}onConnect(A,e){let{ret:t,res:r}=this;if(rY(!r,"pipeline cannot be retried"),t.destroyed)throw new a();this.abort=A,this.context=e;}onHeaders(A,e,t){let r;let{opaque:n,handler:i,context:o}=this;if(A<200){if(this.onInfo){let t="raw"===this.responseHeaders?l.parseRawHeaders(e):l.parseHeaders(e);this.onInfo({statusCode:A,headers:t});}return;}this.res=new C(t);try{this.handler=null;let t="raw"===this.responseHeaders?l.parseRawHeaders(e):l.parseHeaders(e);r=this.runInAsyncScope(i,null,{statusCode:A,headers:t,opaque:n,body:this.res,context:o});}catch(A){throw this.res.on("error",l.nop),A;}if(!r||"function"!=typeof r.on)throw new s("expected Readable");r.on("data",A=>{let{ret:e,body:t}=this;!e.push(A)&&t.pause&&t.pause();}).on("error",A=>{let{ret:e}=this;l.destroy(e,A);}).on("end",()=>{let{ret:A}=this;A.push(null);}).on("close",()=>{let{ret:A}=this;A._readableState.ended||l.destroy(A,new a());}),this.body=r;}onData(A){let{res:e}=this;return e.push(A);}onComplete(A){let{res:e}=this;e.push(null);}onError(A){let{ret:e}=this;this.handler=null,l.destroy(e,A);}}A.exports=function(A,e){try{let t=new I(A,e);return this.dispatch({...A,body:t.req},t),t.ret;}catch(A){return new n().destroy(A);}};}),e3("4dlH3",function(A,e){var t,r,n,i,o,s,a,l,E;r=(t=no("d1Hoi")).InvalidArgumentError,n=t.RequestAbortedError,i=t.SocketError,o=rZ.AsyncResource,s=no("a5c5d"),l=(a=no("7gUQR")).addSignal,E=a.removeSignal;class c extends o{constructor(A,e){if(!A||"object"!=typeof A)throw new r("invalid opts");if("function"!=typeof e)throw new r("invalid callback");let{signal:t,opaque:n,responseHeaders:i}=A;if(t&&"function"!=typeof t.on&&"function"!=typeof t.addEventListener)throw new r("signal must be an EventEmitter or EventTarget");super("UNDICI_UPGRADE"),this.responseHeaders=i||null,this.opaque=n||null,this.callback=e,this.abort=null,this.context=null,l(this,t);}onConnect(A,e){if(!this.callback)throw new n();this.abort=A,this.context=null;}onHeaders(){throw new i("bad upgrade",null);}onUpgrade(A,e,t){let{callback:r,opaque:n,context:i}=this;rY.strictEqual(A,101),E(this),this.callback=null;let o="raw"===this.responseHeaders?s.parseRawHeaders(e):s.parseHeaders(e);this.runInAsyncScope(r,null,null,{headers:o,socket:t,opaque:n,context:i});}onError(A){let{callback:e,opaque:t}=this;E(this),e&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(e,null,A,{opaque:t});}));}}A.exports=function A(e,t){if(void 0===t)return new Promise((t,r)=>{A.call(this,e,(A,e)=>A?r(A):t(e));});try{let A=new c(e,t);this.dispatch({...e,method:e.method||"GET",upgrade:e.protocol||"Websocket"},A);}catch(r){if("function"!=typeof t)throw r;let A=e&&e.opaque;queueMicrotask(()=>t(r,{opaque:A}));}};}),e3("kuwJ3",function(A,e){var t,r,n,i,o,s,a,l,E;t=rZ.AsyncResource,n=(r=no("d1Hoi")).InvalidArgumentError,i=r.RequestAbortedError,o=r.SocketError,s=no("a5c5d"),l=(a=no("7gUQR")).addSignal,E=a.removeSignal;class c extends t{constructor(A,e){if(!A||"object"!=typeof A)throw new n("invalid opts");if("function"!=typeof e)throw new n("invalid callback");let{signal:t,opaque:r,responseHeaders:i}=A;if(t&&"function"!=typeof t.on&&"function"!=typeof t.addEventListener)throw new n("signal must be an EventEmitter or EventTarget");super("UNDICI_CONNECT"),this.opaque=r||null,this.responseHeaders=i||null,this.callback=e,this.abort=null,l(this,t);}onConnect(A,e){if(!this.callback)throw new i();this.abort=A,this.context=e;}onHeaders(){throw new o("bad connect",null);}onUpgrade(A,e,t){let{callback:r,opaque:n,context:i}=this;E(this),this.callback=null;let o=e;null!=o&&(o="raw"===this.responseHeaders?s.parseRawHeaders(e):s.parseHeaders(e)),this.runInAsyncScope(r,null,null,{statusCode:A,headers:o,socket:t,opaque:n,context:i});}onError(A){let{callback:e,opaque:t}=this;E(this),e&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(e,null,A,{opaque:t});}));}}A.exports=function A(e,t){if(void 0===t)return new Promise((t,r)=>{A.call(this,e,(A,e)=>A?r(A):t(e));});try{let A=new c(e,t);this.dispatch({...e,method:"CONNECT"},A);}catch(r){if("function"!=typeof t)throw r;let A=e&&e.opaque;queueMicrotask(()=>t(r,{opaque:A}));}};}),e3("8Dpjq",function(A,e){var t=rO.promisify,r=no("acLo8"),n=no("hMR6c").buildMockDispatch,i=no("jpIf9"),o=i.kDispatches,s=i.kMockAgent,a=i.kClose,l=i.kOriginalClose,E=i.kOrigin,c=i.kOriginalDispatch,g=i.kConnected,h=no("9RBKY").MockInterceptor,Q=no("fYjBn"),u=no("d1Hoi").InvalidArgumentError;class C extends r{constructor(A,e){if(super(A,e),!e||!e.agent||"function"!=typeof e.agent.dispatch)throw new u("Argument opts.agent must implement Agent");this[s]=e.agent,this[E]=A,this[o]=[],this[g]=1,this[c]=this.dispatch,this[l]=this.close.bind(this),this.dispatch=n.call(this),this.close=this[a];}get[Q.kConnected](){return this[g];}intercept(A){return new h(A,this[o]);}async[a](){await t(this[l])(),this[g]=0,this[s][Q.kClients].delete(this[E]);}}A.exports=C;}),e3("hMR6c",function(A,e){var t,r,n,i,o,s,a,l,E,c,g;function h(A,e){return"string"==typeof A?A===e:A instanceof RegExp?A.test(e):"function"==typeof A&&!0===A(e);}function Q(A){return Object.fromEntries(Object.entries(A).map(([A,e])=>[A.toLocaleLowerCase(),e]));}function u(A,e){if(Array.isArray(A)){for(let t=0;t!A).filter(({path:A})=>h(B(A),n));if(0===i.length)throw new t(`Mock dispatch not matched for path '${n}'`);if(0===(i=i.filter(({method:A})=>h(A,e.method))).length)throw new t(`Mock dispatch not matched for method '${e.method}'`);if(0===(i=i.filter(({body:A})=>void 0===A||h(A,e.body))).length)throw new t(`Mock dispatch not matched for body '${e.body}'`);if(0===(i=i.filter(A=>I(A,e.headers))).length)throw new t(`Mock dispatch not matched for headers '${"object"==typeof e.headers?JSON.stringify(e.headers):e.headers}'`);return i[0];}function p(A,e){let t=A.findIndex(A=>!!A.consumed&&function(A,{path:e,method:t,body:r,headers:n}){let i=h(A.path,e),o=h(A.method,t),s=void 0===A.body||h(A.body,r),a=I(A,n);return i&&o&&s&&a;}(A,e));-1!==t&&A.splice(t,1);}function y(A){let{path:e,method:t,body:r,headers:n,query:i}=A;return{path:e,method:t,body:r,headers:n,query:i};}function m(A){return Object.entries(A).reduce((A,[e,t])=>[...A,Buffer.from(""+e),Array.isArray(t)?t.map(A=>Buffer.from(""+A)):Buffer.from(""+t)],[]);}function w(A){return g[A]||"unknown";}async function R(A){let e=[];for await(let t of A)e.push(t);return Buffer.concat(e).toString("utf8");}function D(A,e){function t(n,o=a){let g=Array.isArray(A.headers)?C(A.headers):A.headers,h="function"==typeof o?o({...A,headers:g}):o;if(k(h)){h.then(A=>t(n,A));return;}let Q=d(h),u=m(l),I=m(E);e.abort=c,e.onHeaders(s,u,r,w(s)),e.onData(Buffer.from(Q)),e.onComplete(I),p(n,i);}function r(){}let i=y(A),o=f(this[n],i);o.timesInvoked++,o.data.callback&&(o.data={...o.data,...o.data.callback(A)});let{data:{statusCode:s,data:a,headers:l,trailers:E,error:g},delay:h,persist:Q}=o,{timesInvoked:u,times:I}=o;return(o.consumed=!Q&&u>=I,o.pending=u0?setTimeout(()=>{t(this[n]);},h):t(this[n]),!0;}function b(A,e){let t=new URL(e);return!0===A||!!(Array.isArray(A)&&A.some(A=>h(A,t.host)));}t=no("2zJm3").MockNotMatchedError,n=(r=no("jpIf9")).kDispatches,i=r.kMockAgent,o=r.kOriginalDispatch,s=r.kOrigin,a=r.kGetNetConnect,E=(l=no("a5c5d")).buildURL,c=l.nop,g=rU.STATUS_CODES;let{types:{isPromise:k}}=rO;A.exports={getResponseData:d,getMockDispatch:f,addMockDispatch:function(A,e,t){let r="function"==typeof t?{callback:t}:{...t},n={timesInvoked:0,times:1,persist:!1,consumed:!1,...e,pending:!0,data:{error:null,...r}};return A.push(n),n;},deleteMockDispatch:p,buildKey:y,generateKeyValues:m,matchValue:h,getResponse:R,getStatusText:w,mockDispatch:D,buildMockDispatch:function(){let A=this[i],e=this[s],r=this[o];return function(n,i){if(A.isMockActive)try{D.call(this,n,i);}catch(o){if(o instanceof t){let s=A[a]();if(!1===s)throw new t(`${o.message}: subsequent request to origin ${e} was not allowed (net.connect disabled)`);if(b(s,e))r.call(this,n,i);else throw new t(`${o.message}: subsequent request to origin ${e} was not allowed (net.connect is not enabled for this origin)`);}else throw o;}else r.call(this,n,i);};},checkNetConnect:b,buildMockOptions:function(A){if(A){let{agent:e,...t}=A;return t;}},getHeaderByName:u};}),e3("2zJm3",function(A,e){var t=no("d1Hoi").UndiciError;class r extends t{constructor(A){super(A),Error.captureStackTrace(this,r),this.name="MockNotMatchedError",this.message=A||"The request does not match any registered mock dispatches",this.code="UND_MOCK_ERR_MOCK_NOT_MATCHED";}}A.exports={MockNotMatchedError:r};}),e3("jpIf9",function(A,e){A.exports={kAgent:Symbol(),kOptions:Symbol(),kFactory:Symbol(),kDispatches:Symbol(),kDispatchKey:Symbol(),kDefaultHeaders:Symbol(),kDefaultTrailers:Symbol(),kContentLength:Symbol(),kMockAgent:Symbol(),kMockAgentSet:Symbol(),kMockAgentGet:Symbol(),kMockDispatch:Symbol(),kClose:Symbol(),kOriginalClose:Symbol(),kOrigin:Symbol(),kIsMockActive:Symbol(),kNetConnect:Symbol(),kGetNetConnect:Symbol(),kConnected:Symbol()};}),e3("9RBKY",function(A,e){a(A.exports,"MockInterceptor",()=>t,A=>t=A);var t,r=no("hMR6c"),n=r.getResponseData,i=r.buildKey,o=r.addMockDispatch,s=no("jpIf9"),l=s.kDispatches,E=s.kDispatchKey,c=s.kDefaultHeaders,g=s.kDefaultTrailers,h=s.kContentLength,Q=s.kMockDispatch,u=no("d1Hoi").InvalidArgumentError,C=no("a5c5d").buildURL;class I{constructor(A){this[Q]=A;}delay(A){if("number"!=typeof A||!Number.isInteger(A)||A<=0)throw new u("waitInMs must be a valid integer > 0");return this[Q].delay=A,this;}persist(){return this[Q].persist=!0,this;}times(A){if("number"!=typeof A||!Number.isInteger(A)||A<=0)throw new u("repeatTimes must be a valid integer > 0");return this[Q].times=A,this;}}t=class{constructor(A,e){if("object"!=typeof A)throw new u("opts must be an object");if(void 0===A.path)throw new u("opts.path must be defined");if(void 0===A.method&&(A.method="GET"),"string"==typeof A.path){if(A.query)A.path=C(A.path,A.query);else{let e=new URL(A.path,"data://");A.path=e.pathname+e.search;}}"string"==typeof A.method&&(A.method=A.method.toUpperCase()),this[E]=i(A),this[l]=e,this[c]={},this[g]={},this[h]=!1;}createMockScopeDispatchData(A,e,t={}){let r=n(e),i=this[h]?{"content-length":r.length}:{};return{statusCode:A,data:e,headers:{...this[c],...i,...t.headers},trailers:{...this[g],...t.trailers}};}validateReplyParameters(A,e,t){if(void 0===A)throw new u("statusCode must be defined");if(void 0===e)throw new u("data must be defined");if("object"!=typeof t)throw new u("responseOptions must be an object");}reply(A){if("function"==typeof A)return new I(o(this[l],this[E],e=>{let t=A(e);if("object"!=typeof t)throw new u("reply options callback must return an object");let{statusCode:r,data:n="",responseOptions:i={}}=t;return this.validateReplyParameters(r,n,i),{...this.createMockScopeDispatchData(r,n,i)};}));let[e,t="",r={}]=[...arguments];this.validateReplyParameters(e,t,r);let n=this.createMockScopeDispatchData(e,t,r);return new I(o(this[l],this[E],n));}replyWithError(A){if(void 0===A)throw new u("error must be defined");return new I(o(this[l],this[E],{error:A}));}defaultReplyHeaders(A){if(void 0===A)throw new u("headers must be defined");return this[c]=A,this;}defaultReplyTrailers(A){if(void 0===A)throw new u("trailers must be defined");return this[g]=A,this;}replyContentLength(){return this[h]=!0,this;}};}),e3("OBbWJ",function(A,e){var t=no("fYjBn").kClients,r=no("lQkIG"),n=no("jpIf9"),i=n.kAgent,o=n.kMockAgentSet,s=n.kMockAgentGet,a=n.kDispatches,l=n.kIsMockActive,E=n.kNetConnect,c=n.kGetNetConnect,g=n.kOptions,h=n.kFactory,Q=no("8Dpjq"),u=no("3tYpW"),C=no("hMR6c"),I=C.matchValue,B=C.buildMockOptions,d=no("d1Hoi"),f=d.InvalidArgumentError,p=d.UndiciError,y=no("iILaI"),m=no("lyvdG"),w=no("2tgfO");class R{constructor(A){this.value=A;}deref(){return this.value;}}A.exports=class extends y{constructor(A){if(super(A),this[E]=!0,this[l]=!0,A&&A.agent&&"function"!=typeof A.agent.dispatch)throw new f("Argument opts.agent must implement Agent");let e=A&&A.agent?A.agent:new r(A);this[i]=e,this[t]=e[t],this[g]=B(A);}get(A){let e=this[s](A);return e||(e=this[h](A),this[o](A,e)),e;}dispatch(A,e){return this.get(A.origin),this[i].dispatch(A,e);}async close(){await this[i].close(),this[t].clear();}deactivate(){this[l]=!1;}activate(){this[l]=!0;}enableNetConnect(A){if("string"==typeof A||"function"==typeof A||A instanceof RegExp)Array.isArray(this[E])?this[E].push(A):this[E]=[A];else if(void 0===A)this[E]=!0;else throw new f("Unsupported matcher. Must be one of String|Function|RegExp.");}disableNetConnect(){this[E]=!1;}get isMockActive(){return this[l];}[o](A,e){this[t].set(A,new R(e));}[h](A){let e=Object.assign({agent:this},this[g]);return this[g]&&1===this[g].connections?new Q(A,e):new u(A,e);}[s](A){let e=this[t].get(A);if(e)return e.deref();if("string"!=typeof A){let e=this[h]("http://localhost:9999");return this[o](A,e),e;}for(let[e,r]of Array.from(this[t])){let t=r.deref();if(t&&"string"!=typeof e&&I(e,A)){let e=this[h](A);return this[o](A,e),e[a]=t[a],e;}}}[c](){return this[E];}pendingInterceptors(){return Array.from(this[t].entries()).flatMap(([A,e])=>e.deref()[a].map(e=>({...e,origin:A}))).filter(({pending:A})=>A);}assertNoPendingInterceptors({pendingInterceptorsFormatter:A=new w()}={}){let e=this.pendingInterceptors();if(0===e.length)return;let t=new m("interceptor","interceptors").pluralize(e.length);throw new p(` ${t.count} ${t.noun} ${t.is} pending: ${A.format(e)} `.trim());}};}),e3("3tYpW",function(A,e){var t=rO.promisify,r=no("8wrqe"),n=no("hMR6c").buildMockDispatch,i=no("jpIf9"),o=i.kDispatches,s=i.kMockAgent,a=i.kClose,l=i.kOriginalClose,E=i.kOrigin,c=i.kOriginalDispatch,g=i.kConnected,h=no("9RBKY").MockInterceptor,Q=no("fYjBn"),u=no("d1Hoi").InvalidArgumentError;class C extends r{constructor(A,e){if(super(A,e),!e||!e.agent||"function"!=typeof e.agent.dispatch)throw new u("Argument opts.agent must implement Agent");this[s]=e.agent,this[E]=A,this[o]=[],this[g]=1,this[c]=this.dispatch,this[l]=this.close.bind(this),this.dispatch=n.call(this),this.close=this[a];}get[Q.kConnected](){return this[g];}intercept(A){return new h(A,this[o]);}async[a](){await t(this[l])(),this[g]=0,this[s][Q.kClients].delete(this[E]);}}A.exports=C;}),e3("lyvdG",function(A,e){let t={pronoun:"it",is:"is",was:"was",this:"this"},r={pronoun:"they",is:"are",was:"were",this:"these"};A.exports=class{constructor(A,e){this.singular=A,this.plural=e;}pluralize(A){let e=1===A,n=e?this.singular:this.plural;return{...(e?t:r),count:A,noun:n};}};}),e3("2tgfO",function(A,e){var t=rH.Transform,r=rK.Console;A.exports=class{constructor({disableColors:A}={}){this.transform=new t({transform(A,e,t){t(null,A);}}),this.logger=new r({stdout:this.transform,inspectOptions:{colors:!A&&!process.env.CI}});}format(A){let e=A.map(({method:A,path:e,data:{statusCode:t},persist:r,times:n,timesInvoked:i,origin:o})=>({Method:A,Origin:o,Path:e,"Status code":t,Persistent:r?"✅":"❌",Invocations:i,Remaining:r?1/0:n-i}));return this.logger.table(e),this.transform.read().toString();}};}),e3("4Pe0Z",function(A,e){var t,r,n,i,o,s,a,l,E,c,g,h,Q;function u(A,e){return new l(A,e);}r=(t=no("fYjBn")).kProxy,n=t.kClose,i=t.kDestroy,o=t.kInterceptors,s=rz.URL,a=no("lQkIG"),l=no("8wrqe"),E=no("3lDcb"),g=(c=no("d1Hoi")).InvalidArgumentError,h=c.RequestAbortedError,Q=no("EkOIf");let C=Symbol(),I=Symbol(),B=Symbol(),d=Symbol(),f=Symbol(),p=Symbol();A.exports=class extends E{constructor(A){if(super(A),this[r]=function(A){if("string"==typeof A&&(A={uri:A}),!A||!A.uri)throw new g("Proxy opts.uri is mandatory");return{uri:A.uri,protocol:A.protocol||"https"};}(A),this[C]=new a(A),this[o]=A.interceptors&&A.interceptors.ProxyAgent&&Array.isArray(A.interceptors.ProxyAgent)?A.interceptors.ProxyAgent:[],"string"==typeof A&&(A={uri:A}),!A||!A.uri)throw new g("Proxy opts.uri is mandatory");let{clientFactory:e=u}=A;if("function"!=typeof e)throw new g("Proxy opts.clientFactory must be a function.");this[d]=A.requestTls,this[f]=A.proxyTls,this[B]=A.headers||{};let t=new s(A.uri),{origin:n,port:i,host:l,username:E,password:c}=t;if(A.auth&&A.token)throw new g("opts.auth cannot be used in combination with opts.token");A.auth?this[B]["proxy-authorization"]="Basic "+A.auth:A.token?this[B]["proxy-authorization"]=A.token:E&&c&&(this[B]["proxy-authorization"]="Basic "+Buffer.from(`${decodeURIComponent(E)}:${decodeURIComponent(c)}`).toString("base64"));let y=Q({...A.proxyTls});this[p]=Q({...A.requestTls}),this[I]=e(t,{connect:y}),this[C]=new a({...A,connect:async(A,e)=>{let t=A.host;!A.port&&(t+=":"+("https:"===A.protocol?443:80));try{let r;let{socket:o,statusCode:s}=await this[I].connect({origin:n,port:i,path:t,signal:A.signal,headers:{...this[B],host:l}});if(200!==s&&(o.on("error",()=>{}).destroy(),e(new h(`Proxy response (${s}) !== 200 when HTTP Tunneling`))),"https:"!==A.protocol){e(null,o);return;}r=this[d]?this[d].servername:A.servername,this[p]({...A,servername:r,httpSocket:o},e);}catch(A){e(A);}}});}dispatch(A,e){let{host:t}=new s(A.origin),r=function(A){if(Array.isArray(A)){let e={};for(let t=0;t"proxy-authorization"===A.toLowerCase()))throw new g("Proxy-Authorization should be sent in ProxyAgent constructor");}(r),this[C].dispatch({...A,headers:{...r,host:t}},e);}async[n](){await this[C].close(),await this[I].close();}async[i](){await this[C].destroy(),await this[I].destroy();}};}),e3("2W0VT",function(A,e){var t=no("fYjBn").kRetryHandlerDefaultRetry,r=no("d1Hoi").RequestRetryError,n=no("a5c5d"),i=n.isDisturbed,o=n.parseHeaders,s=n.parseRangeHeader;class a{constructor(A,e){let{retryOptions:r,...n}=A,{retry:i,maxRetries:o,maxTimeout:s,minTimeout:l,timeoutFactor:E,methods:c,errorCodes:g,retryAfter:h,statusCodes:Q}=null!=r?r:{};this.dispatch=e.dispatch,this.handler=e.handler,this.opts=n,this.abort=null,this.aborted=!1,this.retryOpts={retry:null!=i?i:a[t],retryAfter:null==h||h,maxTimeout:null!=s?s:3e4,timeout:null!=l?l:500,timeoutFactor:null!=E?E:2,maxRetries:null!=o?o:5,methods:null!=c?c:["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:null!=Q?Q:[500,502,503,504,429],errorCodes:null!=g?g:["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE"]},this.retryCount=0,this.start=0,this.end=null,this.etag=null,this.resume=null,this.handler.onConnect(A=>{this.aborted=!0,this.abort?this.abort(A):this.reason=A;});}onRequestSent(){this.handler.onRequestSent&&this.handler.onRequestSent();}onUpgrade(A,e,t){this.handler.onUpgrade&&this.handler.onUpgrade(A,e,t);}onConnect(A){this.aborted?A(this.reason):this.abort=A;}onBodySent(A){if(this.handler.onBodySent)return this.handler.onBodySent(A);}static[t](A,{state:e,opts:t},r){let{statusCode:n,code:i,headers:o}=A,{method:s,retryOptions:a}=t,{maxRetries:l,timeout:E,maxTimeout:c,timeoutFactor:g,statusCodes:h,errorCodes:Q,methods:u}=a,{counter:C,currentTimeout:I}=e;if(I=null!=I&&I>0?I:E,i&&"UND_ERR_REQ_RETRY"!==i&&"UND_ERR_SOCKET"!==i&&!Q.includes(i)||Array.isArray(u)&&!u.includes(s)||null!=n&&Array.isArray(h)&&!h.includes(n)||C>l){r(A);return;}let B=null!=o&&o["retry-after"];B&&(B=isNaN(B=+B)?function(A){let e=Date.now();return new Date(A).getTime()-e;}(B):1e3*B);let d=B>0?Math.min(B,c):Math.min(I*g**C,c);e.currentTimeout=d,setTimeout(()=>r(null),d);}onHeaders(A,e,t,n){let i=o(e);if(this.retryCount+=1,A>=300)return this.abort(new r("Request failed",A,{headers:i,count:this.retryCount})),!1;if(null!=this.resume){if(this.resume=null,206!==A)return!0;let e=s(i["content-range"]);if(!e)return this.abort(new r("Content-Range mismatch",A,{headers:i,count:this.retryCount})),!1;if(null!=this.etag&&this.etag!==i.etag)return this.abort(new r("ETag mismatch",A,{headers:i,count:this.retryCount})),!1;let{start:n,size:o,end:a=o}=e;return rY(this.start===n,"content-range mismatch"),rY(null==this.end||this.end===a,"content-range mismatch"),this.resume=t,!0;}if(null==this.end){if(206===A){let r=s(i["content-range"]);if(null==r)return this.handler.onHeaders(A,e,t,n);let{start:o,size:a,end:l=a}=r;rY(null!=o&&Number.isFinite(o)&&this.start!==o,"content-range mismatch"),rY(Number.isFinite(o)),rY(null!=l&&Number.isFinite(l)&&this.end!==l,"invalid content-length"),this.start=o,this.end=l;}if(null==this.end){let A=i["content-length"];this.end=null!=A?+A:null;}return rY(Number.isFinite(this.start)),rY(null==this.end||Number.isFinite(this.end),"invalid content-length"),this.resume=t,this.etag=null!=i.etag?i.etag:null,this.handler.onHeaders(A,e,t,n);}let a=new r("Request failed",A,{headers:i,count:this.retryCount});return this.abort(a),!1;}onData(A){return this.start+=A.length,this.handler.onData(A);}onComplete(A){return this.retryCount=0,this.handler.onComplete(A);}onError(A){if(this.aborted||i(this.opts.body))return this.handler.onError(A);this.retryOpts.retry(A,{state:{counter:this.retryCount++,currentTimeout:this.retryAfter},opts:{retryOptions:this.retryOpts,...this.opts}},function(A){var e;if(null!=A||this.aborted||i(this.opts.body))return this.handler.onError(A);0!==this.start&&(this.opts={...this.opts,headers:{...this.opts.headers,range:`bytes=${this.start}-${null!==(e=this.end)&&void 0!==e?e:""}`}});try{this.dispatch(this.opts,this);}catch(A){this.handler.onError(A);}}.bind(this));}}A.exports=a;}),e3("4WBTe",function(A,e){var t,r;function n(A){if(!A||"function"!=typeof A.dispatch)throw new t("Argument agent must implement Agent");Object.defineProperty(globalThis,o,{value:A,writable:!0,enumerable:!1,configurable:!1});}function i(){return globalThis[o];}let o=Symbol.for("undici.globalDispatcher.1");t=no("d1Hoi").InvalidArgumentError,r=no("lQkIG"),void 0===i()&&n(new r()),A.exports={setGlobalDispatcher:n,getGlobalDispatcher:i};}),e3("k14jP",function(A,e){A.exports=class{constructor(A){this.handler=A;}onConnect(...A){return this.handler.onConnect(...A);}onError(...A){return this.handler.onError(...A);}onUpgrade(...A){return this.handler.onUpgrade(...A);}onHeaders(...A){return this.handler.onHeaders(...A);}onData(...A){return this.handler.onData(...A);}onComplete(...A){return this.handler.onComplete(...A);}onBodySent(...A){return this.handler.onBodySent(...A);}};}),e3("hwpqO",function(A,e){var t,r,n,i,o,s,a,l,E,c,g,h,Q,u,C,I,B,d,f,p,y,m,w,R,D,b,k,N,S,F,v,L,U,x,T,M,G,Y,O,H,J,V,P,_,W,q,j,X,$,Z,K,z,AA,Ae,At,Ar,An,Ai,Ao,As,Aa,Al,AE,Ac,Ag,Ah,AQ,Au;let AC;function AI(A,e="other"){var t,r,n,i,o,s;if("error"===A.type&&A.aborted||!(null===(t=A.urlList)||void 0===t?void 0:t.length))return;let a=A.urlList[0],l=A.timingInfo,E=A.cacheState;if(Y(a)){null!==l&&(A.timingAllowPassed||(l=m({startTime:l.startTime}),E=""),l.endTime=k(),A.timingInfo=l,r=l,n=a,i=e,o=globalThis,s=E,(As>18||18===As&&Aa>=2)&&performance.markResourceTiming(r,n.href,i,o,s));}}function AB(A,e,t,r){var n,i;if(r||(r=new z("The operation was aborted.","AbortError")),A.reject(r),null!=e.body&&Ao(null===(n=e.body)||void 0===n?void 0:n.stream)&&e.body.stream.cancel(r).catch(A=>{if("ERR_INVALID_STATE"!==A.code)throw A;}),null==t)return;let o=t[J];null!=o.body&&Ao(null===(i=o.body)||void 0===i?void 0:i.stream)&&o.body.stream.cancel(r).catch(A=>{if("ERR_INVALID_STATE"!==A.code)throw A;});}function Ad({request:A,processRequestBodyChunkLength:e,processRequestEndOfBody:t,processResponse:r,processResponseEndOfBody:n,processResponseConsumeBody:i,useParallelQueue:o=!1,dispatcher:s}){var a,l,E,c;let g=null,h=!1;null!=A.client&&(g=A.client.globalObject,h=A.client.crossOriginIsolatedCapability);let C=k(h),I=m({startTime:C}),B={controller:new Ak(s),request:A,timingInfo:I,processRequestBodyChunkLength:e,processRequestEndOfBody:t,processResponse:r,processResponseConsumeBody:i,processResponseEndOfBody:n,taskDestination:g,crossOriginIsolatedCapability:h};return rY(!A.body||A.body.stream),"client"===A.window&&(A.window=(null===(E=A.client)||void 0===E?void 0:null===(l=E.globalObject)||void 0===l?void 0:null===(a=l.constructor)||void 0===a?void 0:a.name)==="Window"?A.client:"no-window"),"client"===A.origin&&(A.origin=null===(c=A.client)||void 0===c?void 0:c.origin),"client"===A.policyContainer&&(null!=A.client?A.policyContainer=u(A.client.policyContainer):A.policyContainer=Q()),A.headersList.contains("accept")||A.headersList.append("accept","*/*"),A.headersList.contains("accept-language")||A.headersList.append("accept-language","*"),A.priority,K.has(A.destination),Af(B).catch(A=>{B.controller.terminate(A);}),B.controller;}async function Af(A,e=!1){let t=A.request,r=null;if(t.localURLsOnly&&!G(f(t))&&(r=n("local URLs only")),y(t),"blocked"===C(t)&&(r=n("bad port")),""===t.referrerPolicy&&(t.referrerPolicy=t.policyContainer.referrerPolicy),"no-referrer"!==t.referrer&&(t.referrer=b(t)),null===r&&(r=await(async()=>{let e=f(t);return F(e,t.url)&&"basic"===t.responseTainting||"data:"===e.protocol||"navigate"===t.mode||"websocket"===t.mode?(t.responseTainting="basic",await Ap(A)):"same-origin"===t.mode?n('request mode cannot be "same-origin"'):"no-cors"===t.mode?"follow"!==t.redirect?n('redirect mode cannot be "follow" for "no-cors" request'):(t.responseTainting="opaque",await Ap(A)):Y(f(t))?(t.responseTainting="cors",await Am(A)):n("URL scheme must be a HTTP(S) scheme");})()),e)return r;0===r.status||r.internalResponse||(t.responseTainting,"basic"===t.responseTainting?r=o(r,"basic"):"cors"===t.responseTainting?r=o(r,"cors"):"opaque"===t.responseTainting?r=o(r,"opaque"):rY(!1));let i=0===r.status?r:r.internalResponse;if(0===i.urlList.length&&i.urlList.push(...t.urlList),t.timingAllowFailed||(r.timingAllowPassed=!0),"opaque"===r.type&&206===i.status&&i.rangeRequested&&!t.headers.contains("range")&&(r=i=n()),0!==r.status&&("HEAD"===t.method||"CONNECT"===t.method||X.includes(i.status))&&(i.body=null,A.controller.dump=!0),t.integrity){let e=e=>Ay(A,n(e));if("opaque"===t.responseTainting||null==r.body){e(r.error);return;}await x(r.body,n=>{if(!h(n,t.integrity)){e("integrity mismatch");return;}r.body=W(n)[0],Ay(A,r);},e);}else Ay(A,r);}function Ap(A){if(v(A)&&0===A.request.redirectCount)return Promise.resolve(i(A));let{request:e}=A,{protocol:t}=f(e);switch(t){case"about:":return Promise.resolve(n("about scheme is not supported"));case"blob:":{var r;AC||(AC=rJ.resolveObjectURL);let A=f(e);if(0!==A.search.length)return Promise.resolve(n("NetworkError when attempting to fetch resource."));let t=AC(A.toString());if("GET"!==e.method||!S(t))return Promise.resolve(n("invalid method"));let i=W(t),o=i[0],a=M(""+o.length),l=null!==(r=i[1])&&void 0!==r?r:"",E=s({statusText:"OK",headersList:[["content-length",{name:"Content-Length",value:a}],["content-type",{name:"Content-Type",value:l}]]});return E.body=o,Promise.resolve(E);}case"data:":{let A=f(e),t=AE(A);if("failure"===t)return Promise.resolve(n("failed to fetch the data URL"));let r=Ac(t.mimeType);return Promise.resolve(s({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:r}]],body:W(t.body)[0]}));}case"file:":return Promise.resolve(n("not implemented... yet..."));case"http:":case"https:":return Am(A).catch(A=>n(A));default:return Promise.resolve(n("unknown scheme"));}}function Ay(A,e){"error"===e.type&&(e.urlList=[A.request.urlList[0]],e.timingInfo=m({startTime:A.timingInfo.startTime}));let t=()=>{A.request.done=!0,null!=A.processResponseEndOfBody&&queueMicrotask(()=>A.processResponseEndOfBody(e));};if(null!=A.processResponse&&queueMicrotask(()=>A.processResponse(e)),null==e.body)t();else{let A=new Ag({start(){},transform(A,e){e.enqueue(A);},flush:t},{size:()=>1},{size:()=>1});e.body={stream:e.body.stream.pipeThrough(A)};}if(null!=A.processResponseConsumeBody){let t=t=>A.processResponseConsumeBody(e,t);return null!=e.body?x(e.body,t,t=>A.processResponseConsumeBody(e,t)):(queueMicrotask(()=>t(null)),Promise.resolve());}}async function Am(A){let e=A.request,t=null,r=null,i=A.timingInfo;if(e.serviceWorkers,null===t){if("follow"===e.redirect&&(e.serviceWorkers="none"),r=t=await Aw(A),"cors"===e.responseTainting&&"failure"===R(e,t))return n("cors failure");"failure"===I(e,t)&&(e.timingAllowFailed=!0);}return("opaque"===e.responseTainting||"opaque"===t.type)&&"blocked"===D(e.origin,e.client,e.destination,r)?n("blocked"):(j.has(r.status)&&("manual"!==e.redirect&&A.controller.connection.destroy(),"error"===e.redirect?t=n("unexpected redirect"):"manual"===e.redirect?t=r:"follow"===e.redirect?t=await function(A,e){let t;let r=A.request,i=e.internalResponse?e.internalResponse:e;try{if(t=d(i,f(r).hash),null==t)return e;}catch(A){return Promise.resolve(n(A));}if(!Y(t))return Promise.resolve(n("URL scheme must be a HTTP(S) scheme"));if(20===r.redirectCount)return Promise.resolve(n("redirect count exceeded"));if(r.redirectCount+=1,"cors"===r.mode&&(t.username||t.password)&&!F(r,t))return Promise.resolve(n('cross origin not allowed for request mode "cors"'));if("cors"===r.responseTainting&&(t.username||t.password))return Promise.resolve(n('URL cannot contain credentials for request mode "cors"'));if(303!==i.status&&null!=r.body&&null==r.body.source)return Promise.resolve(n());if([301,302].includes(i.status)&&"POST"===r.method||303===i.status&&!AD.includes(r.method))for(let A of(r.method="GET",r.body=null,Z))r.headersList.delete(A);F(f(r),t)||(r.headersList.delete("authorization"),r.headersList.delete("proxy-authorization",!0),r.headersList.delete("cookie"),r.headersList.delete("host")),null!=r.body&&(rY(null!=r.body.source),r.body=W(r.body.source)[0]);let o=A.timingInfo;return o.redirectEndTime=o.postRedirectStartTime=k(A.crossOriginIsolatedCapability),0===o.redirectStartTime&&(o.redirectStartTime=o.startTime),r.urlList.push(t),p(r,i),Af(A,!0);}(A,t):rY(!1)),t.timingInfo=i,t);}async function Aw(A,e=!1,t=!1){let r=A.request,o=null,s=null,a=null;"no-window"===r.window&&"error"===r.redirect?(o=A,s=r):(s=c(r),(o={...A}).request=s);let l="include"===r.credentials||"same-origin"===r.credentials&&"basic"===r.responseTainting,E=s.body?s.body.length:null,g=null;if(null==s.body&&["POST","PUT"].includes(s.method)&&(g="0"),null!=E&&(g=M(""+E)),null!=g&&s.headersList.append("content-length",g),null!=E&&s.keepalive,s.referrer instanceof URL&&s.headersList.append("referer",M(s.referrer.href)),B(s),w(s),s.headersList.contains("user-agent")||s.headersList.append("user-agent","undefined"==typeof esbuildDetection?"undici":"node"),"default"===s.cache&&(s.headersList.contains("if-modified-since")||s.headersList.contains("if-none-match")||s.headersList.contains("if-unmodified-since")||s.headersList.contains("if-match")||s.headersList.contains("if-range"))&&(s.cache="no-store"),"no-cache"!==s.cache||s.preventNoCacheCacheControlHeaderModification||s.headersList.contains("cache-control")||s.headersList.append("cache-control","max-age=0"),"no-store"!==s.cache&&"reload"!==s.cache||(s.headersList.contains("pragma")||s.headersList.append("pragma","no-cache"),s.headersList.contains("cache-control")||s.headersList.append("cache-control","no-cache")),s.headersList.contains("range")&&s.headersList.append("accept-encoding","identity"),s.headersList.contains("accept-encoding")||(O(f(s))?s.headersList.append("accept-encoding","br, gzip, deflate"):s.headersList.append("accept-encoding","gzip, deflate")),s.headersList.delete("host"),s.cache="no-store","no-store"!==s.mode&&s.mode,null==a){if("only-if-cached"===s.mode)return n("only if cached");let A=await AR(o,l,t);!$.has(s.method)&&A.status>=200&&A.status,null==a&&(a=A);}if(a.urlList=[...s.urlList],s.headersList.contains("range")&&(a.rangeRequested=!0),a.requestIncludesCredentials=l,407===a.status)return"no-window"===r.window?n():v(A)?i(A):n("proxy authentication required");if(421===a.status&&!t&&(null==r.body||null!=r.body.source)){if(v(A))return i(A);A.controller.connection.destroy(),a=await Aw(A,e,!0);}return a;}async function AR(A,e=!1,t=!1){async function r({body:e}){let t=f(o),r=A.controller.dispatcher;return new Promise((n,i)=>r.dispatch({path:t.pathname+t.search,origin:t.origin,method:o.method,body:A.controller.dispatcher.isMockActive?o.body&&(o.body.source||o.body.stream):e,headers:o.headersList.entries,maxRedirections:0,upgrade:"websocket"===o.mode?"websocket":void 0},{body:null,abort:null,onConnect(e){let{connection:t}=A.controller;t.destroyed?e(new z("The operation was aborted.","AbortError")):(A.controller.on("terminated",e),this.abort=t.abort=e);},onHeaders(A,e,t,r){if(A<200)return;let i=[],s="",l=new a();if(Array.isArray(e))for(let A=0;AA.trim()):"location"===t.toLowerCase()&&(s=r),l[AA].append(t,r);}else for(let A of Object.keys(e)){let t=e[A];"content-encoding"===A.toLowerCase()?i=t.toLowerCase().split(",").map(A=>A.trim()).reverse():"location"===A.toLowerCase()&&(s=t),l[AA].append(A,t);}this.body=new Ae({read:t});let E=[],c="follow"===o.redirect&&s&&j.has(A);if("HEAD"!==o.method&&"CONNECT"!==o.method&&!X.includes(A)&&!c)for(let A of i)if("x-gzip"===A||"gzip"===A)E.push(r0.createGunzip({flush:r0.constants.Z_SYNC_FLUSH,finishFlush:r0.constants.Z_SYNC_FLUSH}));else if("deflate"===A)E.push(r0.createInflate());else if("br"===A)E.push(r0.createBrotliDecompress());else{E.length=0;break;}return n({status:A,statusText:r,headersList:l[AA],body:E.length?At(this.body,...E,()=>{}):this.body.on("error",()=>{})}),!0;},onData(e){if(!A.controller.dump)return E.encodedBodySize+=e.byteLength,this.body.push(e);},onComplete(){this.abort&&A.controller.off("terminated",this.abort),A.controller.ended=!0,this.body.push(null);},onError(e){var t;this.abort&&A.controller.off("terminated",this.abort),null===(t=this.body)||void 0===t||t.destroy(e),A.controller.terminate(e),i(e);},onUpgrade(A,e,t){if(101!==A)return;let r=new a();for(let A=0;AA.processRequestEndOfBody());else if(null!=o.body){let e=async function*(e){var t;v(A)||(yield e,null===(t=A.processRequestBodyChunkLength)||void 0===t||t.call(A,e.byteLength));},t=()=>{!v(A)&&A.processRequestEndOfBody&&A.processRequestEndOfBody();},r=e=>{v(A)||("AbortError"===e.name?A.controller.abort():A.controller.terminate(e));};c=async function*(){try{for await(let A of o.body.stream)yield*e(A);t();}catch(A){r(A);}}();}try{let{body:e,status:t,statusText:n,headersList:i,socket:o}=await r({body:c});if(o)l=s({status:t,statusText:n,headersList:i,socket:o});else{let r=e[Symbol.asyncIterator]();A.controller.next=()=>r.next(),l=s({status:t,statusText:n,headersList:i});}}catch(e){if("AbortError"===e.name)return A.controller.connection.destroy(),i(A,e);return n(e);}let g=()=>{A.controller.resume();},h=e=>{A.controller.abort(e);};Ab||(Ab=rP.ReadableStream);let Q=new Ab({async start(e){A.controller.controller=e;},async pull(A){await g(A);},async cancel(A){await h(A);}},{highWaterMark:0,size:()=>1});return l.body={stream:Q},A.controller.on("terminated",function(e){L(A)?(l.aborted=!0,Ao(Q)&&A.controller.controller.error(A.controller.serializedAbortReason)):Ao(Q)&&A.controller.controller.error(TypeError("terminated",{cause:U(e)?e:void 0})),A.controller.connection.destroy();}),A.controller.resume=async()=>{for(;;){var e;let t,r;try{let{done:e,value:r}=await A.controller.next();if(L(A))break;t=e?void 0:r;}catch(e){A.controller.ended&&!E.encodedBodySize?t=void 0:(t=e,r=!0);}if(void 0===t){T(A.controller.controller),function(A,e){A.request.done=!0,null!=A.processResponseDone&&queueMicrotask(()=>A.processResponseDone(e));}(A,l);return;}if(E.decodedBodySize+=null!==(e=null==t?void 0:t.byteLength)&&void 0!==e?e:0,r){A.controller.terminate(t);return;}if(A.controller.controller.enqueue(new Uint8Array(t)),Ai(Q)){A.controller.terminate();return;}if(!A.controller.controller.desiredSize)return;}},l;}r=(t=no("iRA0r")).Response,n=t.makeNetworkError,i=t.makeAppropriateNetworkError,o=t.filterResponse,s=t.makeResponse,a=no("mCZlw").Headers,E=(l=no("j76nY")).Request,c=l.makeRequest,h=(g=no("beXwr")).bytesMatch,Q=g.makePolicyContainer,u=g.clonePolicyContainer,C=g.requestBadPort,I=g.TAOCheck,B=g.appendRequestOriginHeader,d=g.responseLocationURL,f=g.requestCurrentURL,p=g.setRequestReferrerPolicyOnRedirect,y=g.tryUpgradeRequestToAPotentiallyTrustworthyURL,m=g.createOpaqueTimingInfo,w=g.appendFetchMetadata,R=g.corsCheck,D=g.crossOriginResourcePolicyCheck,b=g.determineRequestsReferrer,k=g.coarsenedSharedCurrentTime,N=g.createDeferredPromise,S=g.isBlobLike,F=g.sameOrigin,v=g.isCancelled,L=g.isAborted,U=g.isErrorLike,x=g.fullyReadBody,T=g.readableStreamClose,M=g.isomorphicEncode,G=g.urlIsLocal,Y=g.urlIsHttpHttpsScheme,O=g.urlHasHttpsScheme,J=(H=no("kZx2v")).kState,V=H.kHeaders,P=H.kGuard,_=H.kRealm,W=no("9rp1n").safelyExtractBody,j=(q=no("7VDV9")).redirectStatusSet,X=q.nullBodyStatus,$=q.safeMethodsSet,Z=q.requestBodyHeader,K=q.subresourceSet,z=q.DOMException,AA=no("fYjBn").kHeadersList,Ae=rH.Readable,At=rH.pipeline,An=(Ar=no("a5c5d")).addAbortListener,Ai=Ar.isErrored,Ao=Ar.isReadable,As=Ar.nodeMajor,Aa=Ar.nodeMinor,AE=(Al=no("g34gh")).dataURLProcessor,Ac=Al.serializeAMimeType,Ag=rP.TransformStream,Ah=no("4WBTe").getGlobalDispatcher,AQ=no("e7TzI").webidl,Au=rU.STATUS_CODES;let AD=["GET","HEAD"],Ab=globalThis.ReadableStream;class Ak extends rG{constructor(A){super(),this.dispatcher=A,this.connection=null,this.dump=!1,this.state="ongoing",this.setMaxListeners(21);}terminate(A){var e;"ongoing"===this.state&&(this.state="terminated",null===(e=this.connection)||void 0===e||e.destroy(A),this.emit("terminated",A));}abort(A){var e;"ongoing"===this.state&&(this.state="aborted",A||(A=new z("The operation was aborted.","AbortError")),this.serializedAbortReason=A,null===(e=this.connection)||void 0===e||e.destroy(A),this.emit("terminated",A));}}A.exports={fetch:function(A,e={}){var t,n;let i;AQ.argumentLengthCheck(arguments,1,{header:"globalThis.fetch"});let o=N();try{i=new E(A,e);}catch(A){return o.reject(A),o.promise;}let s=i[J];if(i.signal.aborted)return AB(o,s,null,i.signal.reason),o.promise;let a=s.client.globalObject;(null==a?void 0:null===(t=a.constructor)||void 0===t?void 0:t.name)==="ServiceWorkerGlobalScope"&&(s.serviceWorkers="none");let l=null,c=!1,g=null;return An(i.signal,()=>{c=!0,rY(null!=g),g.abort(i.signal.reason),AB(o,s,l,i.signal.reason);}),g=Ad({request:s,processResponseEndOfBody:A=>AI(A,"fetch"),processResponse:A=>c?Promise.resolve():A.aborted?(AB(o,s,l,g.serializedAbortReason),Promise.resolve()):"error"===A.type?(o.reject(Object.assign(TypeError("fetch failed"),{cause:A.error})),Promise.resolve()):void((l=new r())[J]=A,l[_]=null,l[V][AA]=A.headersList,l[V][P]="immutable",l[V][_]=null,o.resolve(l)),dispatcher:null!==(n=e.dispatcher)&&void 0!==n?n:Ah()}),o.promise;},Fetch:Ak,fetching:Ad,finalizeAndReportTiming:AI};}),e3("iRA0r",function(A,e){var t,r,n,i,o,s,a,l,E,c,g,h,Q,u,C,I,B,d,f,p,y,m,w,R,D,b,k,N,S,F,v,L,U,x;function T(A){if(A.internalResponse)return O(T(A.internalResponse),A.type);let e=M({...A,body:null});return null!=A.body&&(e.body=a(A.body)),e;}function M(A){return{aborted:!1,rangeRequested:!1,timingAllowPassed:!1,requestIncludesCredentials:!1,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...A,headersList:A.headersList?new n(A.headersList):new n(),urlList:A.urlList?[...A.urlList]:[]};}function G(A){return M({type:"error",status:0,error:I(A)?A:Error(A?A+"":A),aborted:A&&"AbortError"===A.name});}function Y(A,e){return e={internalResponse:A,...e},new Proxy(A,{get:(A,t)=>t in e?e[t]:A[t],set:(A,t,r)=>(rY(!(t in e)),A[t]=r,!0)});}function O(A,e){return"basic"===e?Y(A,{type:"basic",headersList:A.headersList}):"cors"===e?Y(A,{type:"cors",headersList:A.headersList}):"opaque"===e?Y(A,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null}):"opaqueredirect"===e?Y(A,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null}):void rY(!1);}function H(A,e,t){if(null!==e.status&&(e.status<200||e.status>599))throw RangeError('init["status"] must be in the range of 200 to 599, inclusive.');if("statusText"in e&&null!=e.statusText&&!g(e.statusText+""))throw TypeError("Invalid statusText");if("status"in e&&null!=e.status&&(A[w].status=e.status),"statusText"in e&&null!=e.statusText&&(A[w].statusText=e.statusText),"headers"in e&&null!=e.headers&&i(A[R],e.headers),t){if(p.includes(A.status))throw k.errors.exception({header:"Response constructor",message:"Invalid response status code "+A.status});A[w].body=t.body,null==t.type||A[w].headersList.contains("Content-Type")||A[w].headersList.append("content-type",t.type);}}r=(t=no("mCZlw")).Headers,n=t.HeadersList,i=t.fill,s=(o=no("9rp1n")).extractBody,a=o.cloneBody,l=o.mixinBody;let{kEnumerableProperty:J}=E=no("a5c5d");g=(c=no("beXwr")).isValidReasonPhrase,h=c.isCancelled,Q=c.isAborted,u=c.isBlobLike,C=c.serializeJavascriptValueToJSONString,I=c.isErrorLike,B=c.isomorphicEncode,f=(d=no("7VDV9")).redirectStatusSet,p=d.nullBodyStatus,y=d.DOMException,w=(m=no("kZx2v")).kState,R=m.kHeaders,D=m.kGuard,b=m.kRealm,k=no("e7TzI").webidl,N=no("jRFDL").FormData,S=no("ktTfx").getGlobalOrigin,F=no("g34gh").URLSerializer,L=(v=no("fYjBn")).kHeadersList,U=v.kConstruct,x=rO.types;let V=globalThis.ReadableStream||rP.ReadableStream,P=new TextEncoder("utf-8");class _{static error(){let A={settingsObject:{}},e=new _();return e[w]=G(),e[b]=A,e[R][L]=e[w].headersList,e[R][D]="immutable",e[R][b]=A,e;}static json(A,e={}){k.argumentLengthCheck(arguments,1,{header:"Response.json"}),null!==e&&(e=k.converters.ResponseInit(e));let t=s(P.encode(C(A))),r={settingsObject:{}},n=new _();return n[b]=r,n[R][D]="response",n[R][b]=r,H(n,e,{body:t[0],type:"application/json"}),n;}static redirect(A,e=302){let t;let r={settingsObject:{}};k.argumentLengthCheck(arguments,1,{header:"Response.redirect"}),A=k.converters.USVString(A),e=k.converters["unsigned short"](e);try{t=new URL(A,S());}catch(e){throw Object.assign(TypeError("Failed to parse URL from "+A),{cause:e});}if(!f.has(e))throw RangeError("Invalid status code "+e);let n=new _();n[b]=r,n[R][D]="immutable",n[R][b]=r,n[w].status=e;let i=B(F(t));return n[w].headersList.append("location",i),n;}constructor(A=null,e={}){null!==A&&(A=k.converters.BodyInit(A)),e=k.converters.ResponseInit(e),this[b]={settingsObject:{}},this[w]=M({}),this[R]=new r(U),this[R][D]="response",this[R][L]=this[w].headersList,this[R][b]=this[b];let t=null;if(null!=A){let[e,r]=s(A);t={body:e,type:r};}H(this,e,t);}get type(){return k.brandCheck(this,_),this[w].type;}get url(){var A;k.brandCheck(this,_);let e=this[w].urlList,t=null!==(A=e[e.length-1])&&void 0!==A?A:null;return null===t?"":F(t,!0);}get redirected(){return k.brandCheck(this,_),this[w].urlList.length>1;}get status(){return k.brandCheck(this,_),this[w].status;}get ok(){return k.brandCheck(this,_),this[w].status>=200&&this[w].status<=299;}get statusText(){return k.brandCheck(this,_),this[w].statusText;}get headers(){return k.brandCheck(this,_),this[R];}get body(){return k.brandCheck(this,_),this[w].body?this[w].body.stream:null;}get bodyUsed(){return k.brandCheck(this,_),!!this[w].body&&E.isDisturbed(this[w].body.stream);}clone(){if(k.brandCheck(this,_),this.bodyUsed||this.body&&this.body.locked)throw k.errors.exception({header:"Response.clone",message:"Body has already been consumed."});let A=T(this[w]),e=new _();return e[w]=A,e[b]=this[b],e[R][L]=A.headersList,e[R][D]=this[R][D],e[R][b]=this[R][b],e;}}l(_),Object.defineProperties(_.prototype,{type:J,url:J,status:J,ok:J,redirected:J,statusText:J,headers:J,clone:J,body:J,bodyUsed:J,[Symbol.toStringTag]:{value:"Response",configurable:!0}}),Object.defineProperties(_,{json:J,redirect:J,error:J}),k.converters.ReadableStream=k.interfaceConverter(V),k.converters.FormData=k.interfaceConverter(N),k.converters.URLSearchParams=k.interfaceConverter(URLSearchParams),k.converters.XMLHttpRequestBodyInit=function(A){return"string"==typeof A?k.converters.USVString(A):u(A)?k.converters.Blob(A,{strict:!1}):x.isArrayBuffer(A)||x.isTypedArray(A)||x.isDataView(A)?k.converters.BufferSource(A):E.isFormDataLike(A)?k.converters.FormData(A,{strict:!1}):A instanceof URLSearchParams?k.converters.URLSearchParams(A):k.converters.DOMString(A);},k.converters.BodyInit=function(A){return A instanceof V?k.converters.ReadableStream(A):(null==A?void 0:A[Symbol.asyncIterator])?A:k.converters.XMLHttpRequestBodyInit(A);},k.converters.ResponseInit=k.dictionaryConverter([{key:"status",converter:k.converters["unsigned short"],defaultValue:200},{key:"statusText",converter:k.converters.ByteString,defaultValue:""},{key:"headers",converter:k.converters.HeadersInit}]),A.exports={makeNetworkError:G,makeResponse:M,makeAppropriateNetworkError:function(A,e=null){return rY(h(A)),Q(A)?G(Object.assign(new y("The operation was aborted.","AbortError"),{cause:e})):G(Object.assign(new y("Request was cancelled."),{cause:e}));},filterResponse:O,Response:_,cloneResponse:T};}),e3("mCZlw",function(A,e){var t,r,n,i,o,s,a,l,E,c;function g(A){return 10===A||13===A||9===A||32===A;}function h(A){let e=0,t=A.length;for(;t>e&&g(A.charCodeAt(t-1));)--t;for(;t>e&&g(A.charCodeAt(e));)++e;return 0===e&&t===A.length?A:A.substring(e,t);}function Q(A,e){if(Array.isArray(e))for(let t=0;t>","record"]});}function u(A,e,t){if(t=h(t),l(e)){if(!E(t))throw c.errors.invalidArgument({prefix:"Headers.append",value:t,type:"header value"});}else throw c.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if("immutable"===A[i])throw TypeError("immutable");return A[i],A[r].append(e,t);}r=(t=no("fYjBn")).kHeadersList,n=t.kConstruct,i=no("kZx2v").kGuard,o=no("a5c5d").kEnumerableProperty,a=(s=no("beXwr")).makeIterator,l=s.isValidHeaderName,E=s.isValidHeaderValue,c=no("e7TzI").webidl;let C=Symbol(),I=Symbol();class B{cookies=null;constructor(A){A instanceof B?(this[C]=new Map(A[C]),this[I]=A[I],this.cookies=null===A.cookies?null:[...A.cookies]):(this[C]=new Map(A),this[I]=null);}contains(A){return A=A.toLowerCase(),this[C].has(A);}clear(){this[C].clear(),this[I]=null,this.cookies=null;}append(A,e){this[I]=null;let t=A.toLowerCase(),r=this[C].get(t);if(r){let A="cookie"===t?"; ":", ";this[C].set(t,{name:r.name,value:`${r.value}${A}${e}`});}else this[C].set(t,{name:A,value:e});if("set-cookie"===t){var n;null!==(n=this.cookies)&&void 0!==n||(this.cookies=[]),this.cookies.push(e);}}set(A,e){this[I]=null;let t=A.toLowerCase();"set-cookie"===t&&(this.cookies=[e]),this[C].set(t,{name:A,value:e});}delete(A){this[I]=null,"set-cookie"===(A=A.toLowerCase())&&(this.cookies=null),this[C].delete(A);}get(A){let e=this[C].get(A.toLowerCase());return void 0===e?null:e.value;}*[Symbol.iterator](){for(let[A,{value:e}]of this[C])yield[A,e];}get entries(){let A={};if(this[C].size)for(let{name:e,value:t}of this[C].values())A[e]=t;return A;}}class d{constructor(A){if(A===n)return;this[r]=new B(),this[i]="none",void 0!==A&&Q(this,A=c.converters.HeadersInit(A));}append(A,e){return c.brandCheck(this,d),c.argumentLengthCheck(arguments,2,{header:"Headers.append"}),A=c.converters.ByteString(A),e=c.converters.ByteString(e),u(this,A,e);}delete(A){if(c.brandCheck(this,d),c.argumentLengthCheck(arguments,1,{header:"Headers.delete"}),A=c.converters.ByteString(A),!l(A))throw c.errors.invalidArgument({prefix:"Headers.delete",value:A,type:"header name"});if("immutable"===this[i])throw TypeError("immutable");this[i],this[r].contains(A)&&this[r].delete(A);}get(A){if(c.brandCheck(this,d),c.argumentLengthCheck(arguments,1,{header:"Headers.get"}),A=c.converters.ByteString(A),!l(A))throw c.errors.invalidArgument({prefix:"Headers.get",value:A,type:"header name"});return this[r].get(A);}has(A){if(c.brandCheck(this,d),c.argumentLengthCheck(arguments,1,{header:"Headers.has"}),A=c.converters.ByteString(A),!l(A))throw c.errors.invalidArgument({prefix:"Headers.has",value:A,type:"header name"});return this[r].contains(A);}set(A,e){if(c.brandCheck(this,d),c.argumentLengthCheck(arguments,2,{header:"Headers.set"}),A=c.converters.ByteString(A),e=h(e=c.converters.ByteString(e)),l(A)){if(!E(e))throw c.errors.invalidArgument({prefix:"Headers.set",value:e,type:"header value"});}else throw c.errors.invalidArgument({prefix:"Headers.set",value:A,type:"header name"});if("immutable"===this[i])throw TypeError("immutable");this[i],this[r].set(A,e);}getSetCookie(){c.brandCheck(this,d);let A=this[r].cookies;return A?[...A]:[];}get[I](){if(this[r][I])return this[r][I];let A=[],e=[...this[r]].sort((A,e)=>A[0]A,"Headers","key");}return a(()=>[...this[I].values()],"Headers","key");}values(){if(c.brandCheck(this,d),"immutable"===this[i]){let A=this[I];return a(()=>A,"Headers","value");}return a(()=>[...this[I].values()],"Headers","value");}entries(){if(c.brandCheck(this,d),"immutable"===this[i]){let A=this[I];return a(()=>A,"Headers","key+value");}return a(()=>[...this[I].values()],"Headers","key+value");}forEach(A,e=globalThis){if(c.brandCheck(this,d),c.argumentLengthCheck(arguments,1,{header:"Headers.forEach"}),"function"!=typeof A)throw TypeError("Failed to execute 'forEach' on 'Headers': parameter 1 is not of type 'Function'.");for(let[t,r]of this)A.apply(e,[r,t,this]);}[Symbol.for("nodejs.util.inspect.custom")](){return c.brandCheck(this,d),this[r];}}d.prototype[Symbol.iterator]=d.prototype.entries,Object.defineProperties(d.prototype,{append:o,delete:o,get:o,has:o,set:o,getSetCookie:o,keys:o,values:o,entries:o,forEach:o,[Symbol.iterator]:{enumerable:!1},[Symbol.toStringTag]:{value:"Headers",configurable:!0}}),c.converters.HeadersInit=function(A){if("Object"===c.util.Type(A))return A[Symbol.iterator]?c.converters["sequence>"](A):c.converters["record"](A);throw c.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence>","record"]});},A.exports={fill:Q,Headers:d,HeadersList:B};}),e3("j76nY",function(A,e){var t,r,n,i,o,s,a,l,E,c,g,h,Q,u,C,I,B,d,f,p,y,m,w,R,D,b,k,N,S,F,v,L,U,x,T,M,G,Y,O,H;function J(A){let e={method:"GET",localURLsOnly:!1,unsafeRequest:!1,body:null,client:null,reservedClient:null,replacesClientId:"",window:"client",keepalive:!1,serviceWorkers:"all",initiator:"",destination:"",priority:null,origin:"client",policyContainer:"client",referrer:"client",referrerPolicy:"",mode:"no-cors",useCORSPreflightFlag:!1,credentials:"same-origin",useCredentials:!1,cache:"default",redirect:"follow",integrity:"",cryptoGraphicsNonceMetadata:"",parserMetadata:"",reloadNavigation:!1,historyNavigation:!1,userActivation:!1,taintedOrigin:!1,redirectCount:0,responseTainting:"basic",preventNoCacheCacheControlHeaderModification:!1,done:!1,timingAllowFailed:!1,...A,headersList:A.headersList?new l(A.headersList):new l()};return e.url=e.urlList[0],e;}r=(t=no("9rp1n")).extractBody,n=t.mixinBody,i=t.cloneBody,s=(o=no("mCZlw")).Headers,a=o.fill,l=o.HeadersList;let{FinalizationRegistry:V}=no("5fiYE")();E=no("a5c5d"),g=(c=no("beXwr")).isValidHTTPToken,h=c.sameOrigin,Q=c.normalizeMethod,u=c.makePolicyContainer,C=c.normalizeMethodRecord,B=(I=no("7VDV9")).forbiddenMethodsSet,d=I.corsSafeListedMethodsSet,f=I.referrerPolicy,p=I.requestRedirect,y=I.requestMode,m=I.requestCredentials,w=I.requestCache,R=I.requestDuplex;let{kEnumerableProperty:P}=E;b=(D=no("kZx2v")).kHeaders,k=D.kSignal,N=D.kState,S=D.kGuard,F=D.kRealm,v=no("e7TzI").webidl,L=no("ktTfx").getGlobalOrigin,U=no("g34gh").URLSerializer,T=(x=no("fYjBn")).kHeadersList,M=x.kConstruct,G=rG.getMaxListeners,Y=rG.setMaxListeners,O=rG.getEventListeners,H=rG.defaultMaxListeners;let _=globalThis.TransformStream,W=Symbol(),q=new V(({signal:A,abort:e})=>{A.removeEventListener("abort",e);});class j{constructor(A,e={}){var t,n,i;let o;if(A===M)return;v.argumentLengthCheck(arguments,1,{header:"Request constructor"}),A=v.converters.RequestInfo(A),e=v.converters.RequestInit(e),this[F]={settingsObject:{baseUrl:L(),get origin(){var c;return null===(c=this.baseUrl)||void 0===c?void 0:c.origin;},policyContainer:u()}};let I=null,f=null,p=this[F].settingsObject.baseUrl,y=null;if("string"==typeof A){let e;try{e=new URL(A,p);}catch(e){throw TypeError("Failed to parse URL from "+A,{cause:e});}if(e.username||e.password)throw TypeError("Request cannot be constructed from a URL that includes credentials: "+A);I=J({urlList:[e]}),f="cors";}else rY(A instanceof j),I=A[N],y=A[k];let m=this[F].settingsObject.origin,w="client";if((null===(n=I.window)||void 0===n?void 0:null===(t=n.constructor)||void 0===t?void 0:t.name)==="EnvironmentSettingsObject"&&h(I.window,m)&&(w=I.window),null!=e.window)throw TypeError(`'window' option '${w}' must be null`);"window"in e&&(w="no-window"),I=J({method:I.method,headersList:I.headersList,unsafeRequest:I.unsafeRequest,client:this[F].settingsObject,window:w,priority:I.priority,origin:I.origin,referrer:I.referrer,referrerPolicy:I.referrerPolicy,mode:I.mode,credentials:I.credentials,cache:I.cache,redirect:I.redirect,integrity:I.integrity,keepalive:I.keepalive,reloadNavigation:I.reloadNavigation,historyNavigation:I.historyNavigation,urlList:[...I.urlList]});let R=0!==Object.keys(e).length;if(R&&("navigate"===I.mode&&(I.mode="same-origin"),I.reloadNavigation=!1,I.historyNavigation=!1,I.origin="client",I.referrer="client",I.referrerPolicy="",I.url=I.urlList[I.urlList.length-1],I.urlList=[I.url]),void 0!==e.referrer){let A=e.referrer;if(""===A)I.referrer="no-referrer";else{let e;try{e=new URL(A,p);}catch(e){throw TypeError(`Referrer "${A}" is not a valid URL.`,{cause:e});}"about:"===e.protocol&&"client"===e.hostname||m&&!h(e,this[F].settingsObject.baseUrl)?I.referrer="client":I.referrer=e;}}if(void 0!==e.referrerPolicy&&(I.referrerPolicy=e.referrerPolicy),"navigate"===(o=void 0!==e.mode?e.mode:f))throw v.errors.exception({header:"Request constructor",message:"invalid request mode navigate."});if(null!=o&&(I.mode=o),void 0!==e.credentials&&(I.credentials=e.credentials),void 0!==e.cache&&(I.cache=e.cache),"only-if-cached"===I.cache&&"same-origin"!==I.mode)throw TypeError("'only-if-cached' can be set only with 'same-origin' mode");if(void 0!==e.redirect&&(I.redirect=e.redirect),null!=e.integrity&&(I.integrity=e.integrity+""),void 0!==e.keepalive&&(I.keepalive=!!e.keepalive),void 0!==e.method){let A=e.method;if(!g(A))throw TypeError(`'${A}' is not a valid HTTP method.`);if(B.has(A.toUpperCase()))throw TypeError(`'${A}' HTTP method is unsupported.`);A=null!==(i=C[A])&&void 0!==i?i:Q(A),I.method=A;}void 0!==e.signal&&(y=e.signal),this[N]=I;let D=new AbortController();if(this[k]=D.signal,this[k][F]=this[F],null!=y){if(!y||"boolean"!=typeof y.aborted||"function"!=typeof y.addEventListener)throw TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.");if(y.aborted)D.abort(y.reason);else{this[W]=D;let A=new WeakRef(D),e=function(){let e=A.deref();void 0!==e&&e.abort(this.reason);};try{"function"==typeof G&&G(y)===H?Y(100,y):O(y,"abort").length>=H&&Y(100,y);}catch{}E.addAbortListener(y,e),q.register(D,{signal:y,abort:e});}}if(this[b]=new s(M),this[b][T]=I.headersList,this[b][S]="request",this[b][F]=this[F],"no-cors"===o){if(!d.has(I.method))throw TypeError(`'${I.method} is unsupported in no-cors mode.`);this[b][S]="request-no-cors";}if(R){let A=this[b][T],t=void 0!==e.headers?e.headers:new l(A);if(A.clear(),t instanceof l){for(let[e,r]of t)A.append(e,r);A.cookies=t.cookies;}else a(this[b],t);}let U=A instanceof j?A[N].body:null;if((null!=e.body||null!=U)&&("GET"===I.method||"HEAD"===I.method))throw TypeError("Request with GET/HEAD method cannot have body.");let x=null;if(null!=e.body){let[A,t]=r(e.body,I.keepalive);x=A,t&&!this[b][T].contains("content-type")&&this[b].append("content-type",t);}let V=null!=x?x:U;if(null!=V&&null==V.source){if(null!=x&&null==e.duplex)throw TypeError("RequestInit: duplex option is required when sending a body.");if("same-origin"!==I.mode&&"cors"!==I.mode)throw TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"');I.useCORSPreflightFlag=!0;}let P=V;if(null==x&&null!=U){if(E.isDisturbed(U.stream)||U.stream.locked)throw TypeError("Cannot construct a Request with a Request object that has already been used.");_||(_=rP.TransformStream);let A=new _();U.stream.pipeThrough(A),P={source:U.source,length:U.length,stream:A.readable};}this[N].body=P;}get method(){return v.brandCheck(this,j),this[N].method;}get url(){return v.brandCheck(this,j),U(this[N].url);}get headers(){return v.brandCheck(this,j),this[b];}get destination(){return v.brandCheck(this,j),this[N].destination;}get referrer(){return(v.brandCheck(this,j),"no-referrer"===this[N].referrer)?"":"client"===this[N].referrer?"about:client":this[N].referrer.toString();}get referrerPolicy(){return v.brandCheck(this,j),this[N].referrerPolicy;}get mode(){return v.brandCheck(this,j),this[N].mode;}get credentials(){return this[N].credentials;}get cache(){return v.brandCheck(this,j),this[N].cache;}get redirect(){return v.brandCheck(this,j),this[N].redirect;}get integrity(){return v.brandCheck(this,j),this[N].integrity;}get keepalive(){return v.brandCheck(this,j),this[N].keepalive;}get isReloadNavigation(){return v.brandCheck(this,j),this[N].reloadNavigation;}get isHistoryNavigation(){return v.brandCheck(this,j),this[N].historyNavigation;}get signal(){return v.brandCheck(this,j),this[k];}get body(){return v.brandCheck(this,j),this[N].body?this[N].body.stream:null;}get bodyUsed(){return v.brandCheck(this,j),!!this[N].body&&E.isDisturbed(this[N].body.stream);}get duplex(){return v.brandCheck(this,j),"half";}clone(){var A;if(v.brandCheck(this,j),this.bodyUsed||(null===(A=this.body)||void 0===A?void 0:A.locked))throw TypeError("unusable");let e=function(A){let e=J({...A,body:null});return null!=A.body&&(e.body=i(A.body)),e;}(this[N]),t=new j(M);t[N]=e,t[F]=this[F],t[b]=new s(M),t[b][T]=e.headersList,t[b][S]=this[b][S],t[b][F]=this[b][F];let r=new AbortController();return this.signal.aborted?r.abort(this.signal.reason):E.addAbortListener(this.signal,()=>{r.abort(this.signal.reason);}),t[k]=r.signal,t;}}n(j),Object.defineProperties(j.prototype,{method:P,url:P,headers:P,redirect:P,clone:P,signal:P,duplex:P,destination:P,body:P,bodyUsed:P,isHistoryNavigation:P,isReloadNavigation:P,keepalive:P,integrity:P,cache:P,credentials:P,attribute:P,referrerPolicy:P,referrer:P,mode:P,[Symbol.toStringTag]:{value:"Request",configurable:!0}}),v.converters.Request=v.interfaceConverter(j),v.converters.RequestInfo=function(A){return"string"==typeof A?v.converters.USVString(A):A instanceof j?v.converters.Request(A):v.converters.USVString(A);},v.converters.AbortSignal=v.interfaceConverter(AbortSignal),v.converters.RequestInit=v.dictionaryConverter([{key:"method",converter:v.converters.ByteString},{key:"headers",converter:v.converters.HeadersInit},{key:"body",converter:v.nullableConverter(v.converters.BodyInit)},{key:"referrer",converter:v.converters.USVString},{key:"referrerPolicy",converter:v.converters.DOMString,allowedValues:f},{key:"mode",converter:v.converters.DOMString,allowedValues:y},{key:"credentials",converter:v.converters.DOMString,allowedValues:m},{key:"cache",converter:v.converters.DOMString,allowedValues:w},{key:"redirect",converter:v.converters.DOMString,allowedValues:p},{key:"integrity",converter:v.converters.DOMString},{key:"keepalive",converter:v.converters.boolean},{key:"signal",converter:v.nullableConverter(A=>v.converters.AbortSignal(A,{strict:!1}))},{key:"window",converter:v.converters.any},{key:"duplex",converter:v.converters.DOMString,allowedValues:R}]),A.exports={Request:j,makeRequest:J};}),e3("blynm",function(A,e){var t=no("bGSfw"),r=t.staticPropertyDescriptors,n=t.readOperation,i=t.fireAProgressEvent,o=no("fmGtt"),s=o.kState,a=o.kError,l=o.kResult,E=o.kEvents,c=o.kAborted,g=no("e7TzI").webidl,h=no("a5c5d").kEnumerableProperty;class Q extends EventTarget{constructor(){super(),this[s]="empty",this[l]=null,this[a]=null,this[E]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null};}readAsArrayBuffer(A){g.brandCheck(this,Q),g.argumentLengthCheck(arguments,1,{header:"FileReader.readAsArrayBuffer"}),n(this,A=g.converters.Blob(A,{strict:!1}),"ArrayBuffer");}readAsBinaryString(A){g.brandCheck(this,Q),g.argumentLengthCheck(arguments,1,{header:"FileReader.readAsBinaryString"}),n(this,A=g.converters.Blob(A,{strict:!1}),"BinaryString");}readAsText(A,e){g.brandCheck(this,Q),g.argumentLengthCheck(arguments,1,{header:"FileReader.readAsText"}),A=g.converters.Blob(A,{strict:!1}),void 0!==e&&(e=g.converters.DOMString(e)),n(this,A,"Text",e);}readAsDataURL(A){g.brandCheck(this,Q),g.argumentLengthCheck(arguments,1,{header:"FileReader.readAsDataURL"}),n(this,A=g.converters.Blob(A,{strict:!1}),"DataURL");}abort(){if("empty"===this[s]||"done"===this[s]){this[l]=null;return;}"loading"===this[s]&&(this[s]="done",this[l]=null),this[c]=!0,i("abort",this),"loading"!==this[s]&&i("loadend",this);}get readyState(){switch(g.brandCheck(this,Q),this[s]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE;}}get result(){return g.brandCheck(this,Q),this[l];}get error(){return g.brandCheck(this,Q),this[a];}get onloadend(){return g.brandCheck(this,Q),this[E].loadend;}set onloadend(A){g.brandCheck(this,Q),this[E].loadend&&this.removeEventListener("loadend",this[E].loadend),"function"==typeof A?(this[E].loadend=A,this.addEventListener("loadend",A)):this[E].loadend=null;}get onerror(){return g.brandCheck(this,Q),this[E].error;}set onerror(A){g.brandCheck(this,Q),this[E].error&&this.removeEventListener("error",this[E].error),"function"==typeof A?(this[E].error=A,this.addEventListener("error",A)):this[E].error=null;}get onloadstart(){return g.brandCheck(this,Q),this[E].loadstart;}set onloadstart(A){g.brandCheck(this,Q),this[E].loadstart&&this.removeEventListener("loadstart",this[E].loadstart),"function"==typeof A?(this[E].loadstart=A,this.addEventListener("loadstart",A)):this[E].loadstart=null;}get onprogress(){return g.brandCheck(this,Q),this[E].progress;}set onprogress(A){g.brandCheck(this,Q),this[E].progress&&this.removeEventListener("progress",this[E].progress),"function"==typeof A?(this[E].progress=A,this.addEventListener("progress",A)):this[E].progress=null;}get onload(){return g.brandCheck(this,Q),this[E].load;}set onload(A){g.brandCheck(this,Q),this[E].load&&this.removeEventListener("load",this[E].load),"function"==typeof A?(this[E].load=A,this.addEventListener("load",A)):this[E].load=null;}get onabort(){return g.brandCheck(this,Q),this[E].abort;}set onabort(A){g.brandCheck(this,Q),this[E].abort&&this.removeEventListener("abort",this[E].abort),"function"==typeof A?(this[E].abort=A,this.addEventListener("abort",A)):this[E].abort=null;}}Q.EMPTY=Q.prototype.EMPTY=0,Q.LOADING=Q.prototype.LOADING=1,Q.DONE=Q.prototype.DONE=2,Object.defineProperties(Q.prototype,{EMPTY:r,LOADING:r,DONE:r,readAsArrayBuffer:h,readAsBinaryString:h,readAsText:h,readAsDataURL:h,abort:h,readyState:h,result:h,error:h,onloadstart:h,onprogress:h,onload:h,onabort:h,onerror:h,onloadend:h,[Symbol.toStringTag]:{value:"FileReader",writable:!1,enumerable:!1,configurable:!0}}),Object.defineProperties(Q,{EMPTY:r,LOADING:r,DONE:r}),A.exports={FileReader:Q};}),e3("bGSfw",function(A,e){var t,r,n,i,o,s,a,l,E,c,g,h,Q,u,C;function I(A,e){let t=new a(A,{bubbles:!1,cancelable:!1});e.dispatchEvent(t);}function B(A){let e=A.reduce((A,e)=>A+e.byteLength,0),t=0;return A.reduce((A,e)=>(A.set(e,t),t+=e.byteLength,A),new Uint8Array(e));}r=(t=no("fmGtt")).kState,n=t.kError,i=t.kResult,o=t.kAborted,s=t.kLastProgressEventFired,a=no("7bxJn").ProgressEvent,l=no("5LxuK").getEncoding,E=no("7VDV9").DOMException,g=(c=no("g34gh")).serializeAMimeType,h=c.parseMIMEType,Q=rO.types,u=r1.StringDecoder,C=rJ.btoa,A.exports={staticPropertyDescriptors:{enumerable:!0,writable:!1,configurable:!1},readOperation:function(A,e,t,a){if("loading"===A[r])throw new E("Invalid state","InvalidStateError");A[r]="loading",A[i]=null,A[n]=null;let c=e.stream().getReader(),d=[],f=c.read(),p=!0;(async()=>{for(;!A[o];)try{let{done:E,value:y}=await f;if(p&&!A[o]&&queueMicrotask(()=>{I("loadstart",A);}),p=!1,!E&&Q.isUint8Array(y))d.push(y),(void 0===A[s]||Date.now()-A[s]>=50)&&!A[o]&&(A[s]=Date.now(),queueMicrotask(()=>{I("progress",A);})),f=c.read();else if(E){queueMicrotask(()=>{A[r]="done";try{let r=function(A,e,t,r){switch(e){case"DataURL":{let e="data:",r=h(t||"application/octet-stream");"failure"!==r&&(e+=g(r)),e+=";base64,";let n=new u("latin1");for(let t of A)e+=C(n.write(t));return e+=C(n.end());}case"Text":{let e="failure";if(r&&(e=l(r)),"failure"===e&&t){let A=h(t);"failure"!==A&&(e=l(A.parameters.get("charset")));}return"failure"===e&&(e="UTF-8"),function(A,e){let t=B(A),r=function(A){let[e,t,r]=A;return 239===e&&187===t&&191===r?"UTF-8":254===e&&255===t?"UTF-16BE":255===e&&254===t?"UTF-16LE":null;}(t),n=0;null!==r&&(e=r,n="UTF-8"===r?3:2);let i=t.slice(n);return new TextDecoder(e).decode(i);}(A,e);}case"ArrayBuffer":return B(A).buffer;case"BinaryString":{let e="",t=new u("latin1");for(let r of A)e+=t.write(r);return e+=t.end();}}}(d,t,e.type,a);if(A[o])return;A[i]=r,I("load",A);}catch(e){A[n]=e,I("error",A);}"loading"!==A[r]&&I("loadend",A);});break;}}catch(e){if(A[o])return;queueMicrotask(()=>{A[r]="done",A[n]=e,I("error",A),"loading"!==A[r]&&I("loadend",A);});break;}})();},fireAProgressEvent:I};}),e3("fmGtt",function(A,e){A.exports={kState:Symbol(),kResult:Symbol(),kError:Symbol(),kLastProgressEventFired:Symbol(),kEvents:Symbol(),kAborted:Symbol()};}),e3("7bxJn",function(A,e){var t=no("e7TzI").webidl;let r=Symbol();class n extends Event{constructor(A,e={}){super(A=t.converters.DOMString(A),e=t.converters.ProgressEventInit(null!=e?e:{})),this[r]={lengthComputable:e.lengthComputable,loaded:e.loaded,total:e.total};}get lengthComputable(){return t.brandCheck(this,n),this[r].lengthComputable;}get loaded(){return t.brandCheck(this,n),this[r].loaded;}get total(){return t.brandCheck(this,n),this[r].total;}}t.converters.ProgressEventInit=t.dictionaryConverter([{key:"lengthComputable",converter:t.converters.boolean,defaultValue:!1},{key:"loaded",converter:t.converters["unsigned long long"],defaultValue:0},{key:"total",converter:t.converters["unsigned long long"],defaultValue:0},{key:"bubbles",converter:t.converters.boolean,defaultValue:!1},{key:"cancelable",converter:t.converters.boolean,defaultValue:!1},{key:"composed",converter:t.converters.boolean,defaultValue:!1}]),A.exports={ProgressEvent:n};}),e3("5LxuK",function(A,e){A.exports={getEncoding:function(A){if(!A)return"failure";switch(A.trim().toLowerCase()){case"unicode-1-1-utf-8":case"unicode11utf8":case"unicode20utf8":case"utf-8":case"utf8":case"x-unicode20utf8":return"UTF-8";case"866":case"cp866":case"csibm866":case"ibm866":return"IBM866";case"csisolatin2":case"iso-8859-2":case"iso-ir-101":case"iso8859-2":case"iso88592":case"iso_8859-2":case"iso_8859-2:1987":case"l2":case"latin2":return"ISO-8859-2";case"csisolatin3":case"iso-8859-3":case"iso-ir-109":case"iso8859-3":case"iso88593":case"iso_8859-3":case"iso_8859-3:1988":case"l3":case"latin3":return"ISO-8859-3";case"csisolatin4":case"iso-8859-4":case"iso-ir-110":case"iso8859-4":case"iso88594":case"iso_8859-4":case"iso_8859-4:1988":case"l4":case"latin4":return"ISO-8859-4";case"csisolatincyrillic":case"cyrillic":case"iso-8859-5":case"iso-ir-144":case"iso8859-5":case"iso88595":case"iso_8859-5":case"iso_8859-5:1988":return"ISO-8859-5";case"arabic":case"asmo-708":case"csiso88596e":case"csiso88596i":case"csisolatinarabic":case"ecma-114":case"iso-8859-6":case"iso-8859-6-e":case"iso-8859-6-i":case"iso-ir-127":case"iso8859-6":case"iso88596":case"iso_8859-6":case"iso_8859-6:1987":return"ISO-8859-6";case"csisolatingreek":case"ecma-118":case"elot_928":case"greek":case"greek8":case"iso-8859-7":case"iso-ir-126":case"iso8859-7":case"iso88597":case"iso_8859-7":case"iso_8859-7:1987":case"sun_eu_greek":return"ISO-8859-7";case"csiso88598e":case"csisolatinhebrew":case"hebrew":case"iso-8859-8":case"iso-8859-8-e":case"iso-ir-138":case"iso8859-8":case"iso88598":case"iso_8859-8":case"iso_8859-8:1988":case"visual":return"ISO-8859-8";case"csiso88598i":case"iso-8859-8-i":case"logical":return"ISO-8859-8-I";case"csisolatin6":case"iso-8859-10":case"iso-ir-157":case"iso8859-10":case"iso885910":case"l6":case"latin6":return"ISO-8859-10";case"iso-8859-13":case"iso8859-13":case"iso885913":return"ISO-8859-13";case"iso-8859-14":case"iso8859-14":case"iso885914":return"ISO-8859-14";case"csisolatin9":case"iso-8859-15":case"iso8859-15":case"iso885915":case"iso_8859-15":case"l9":return"ISO-8859-15";case"iso-8859-16":return"ISO-8859-16";case"cskoi8r":case"koi":case"koi8":case"koi8-r":case"koi8_r":return"KOI8-R";case"koi8-ru":case"koi8-u":return"KOI8-U";case"csmacintosh":case"mac":case"macintosh":case"x-mac-roman":return"macintosh";case"iso-8859-11":case"iso8859-11":case"iso885911":case"tis-620":case"windows-874":return"windows-874";case"cp1250":case"windows-1250":case"x-cp1250":return"windows-1250";case"cp1251":case"windows-1251":case"x-cp1251":return"windows-1251";case"ansi_x3.4-1968":case"ascii":case"cp1252":case"cp819":case"csisolatin1":case"ibm819":case"iso-8859-1":case"iso-ir-100":case"iso8859-1":case"iso88591":case"iso_8859-1":case"iso_8859-1:1987":case"l1":case"latin1":case"us-ascii":case"windows-1252":case"x-cp1252":return"windows-1252";case"cp1253":case"windows-1253":case"x-cp1253":return"windows-1253";case"cp1254":case"csisolatin5":case"iso-8859-9":case"iso-ir-148":case"iso8859-9":case"iso88599":case"iso_8859-9":case"iso_8859-9:1989":case"l5":case"latin5":case"windows-1254":case"x-cp1254":return"windows-1254";case"cp1255":case"windows-1255":case"x-cp1255":return"windows-1255";case"cp1256":case"windows-1256":case"x-cp1256":return"windows-1256";case"cp1257":case"windows-1257":case"x-cp1257":return"windows-1257";case"cp1258":case"windows-1258":case"x-cp1258":return"windows-1258";case"x-mac-cyrillic":case"x-mac-ukrainian":return"x-mac-cyrillic";case"chinese":case"csgb2312":case"csiso58gb231280":case"gb2312":case"gb_2312":case"gb_2312-80":case"gbk":case"iso-ir-58":case"x-gbk":return"GBK";case"gb18030":return"gb18030";case"big5":case"big5-hkscs":case"cn-big5":case"csbig5":case"x-x-big5":return"Big5";case"cseucpkdfmtjapanese":case"euc-jp":case"x-euc-jp":return"EUC-JP";case"csiso2022jp":case"iso-2022-jp":return"ISO-2022-JP";case"csshiftjis":case"ms932":case"ms_kanji":case"shift-jis":case"shift_jis":case"sjis":case"windows-31j":case"x-sjis":return"Shift_JIS";case"cseuckr":case"csksc56011987":case"euc-kr":case"iso-ir-149":case"korean":case"ks_c_5601-1987":case"ks_c_5601-1989":case"ksc5601":case"ksc_5601":case"windows-949":return"EUC-KR";case"csiso2022kr":case"hz-gb-2312":case"iso-2022-cn":case"iso-2022-cn-ext":case"iso-2022-kr":case"replacement":return"replacement";case"unicodefffe":case"utf-16be":return"UTF-16BE";case"csunicode":case"iso-10646-ucs-2":case"ucs-2":case"unicode":case"unicodefeff":case"utf-16":case"utf-16le":return"UTF-16LE";case"x-user-defined":return"x-user-defined";default:return"failure";}}};}),e3("gjFae",function(A,e){var t=no("jJUdU").kConstruct,r=no("3fF4u").Cache,n=no("e7TzI").webidl,i=no("a5c5d").kEnumerableProperty;class o{#A=new Map();constructor(){arguments[0]!==t&&n.illegalConstructor();}async match(A,e={}){if(n.brandCheck(this,o),n.argumentLengthCheck(arguments,1,{header:"CacheStorage.match"}),A=n.converters.RequestInfo(A),null!=(e=n.converters.MultiCacheQueryOptions(e)).cacheName){if(this.#A.has(e.cacheName)){let n=new r(t,this.#A.get(e.cacheName));return await n.match(A,e);}}else for(let n of this.#A.values()){let i=new r(t,n),o=await i.match(A,e);if(void 0!==o)return o;}}async has(A){return n.brandCheck(this,o),n.argumentLengthCheck(arguments,1,{header:"CacheStorage.has"}),A=n.converters.DOMString(A),this.#A.has(A);}async open(A){if(n.brandCheck(this,o),n.argumentLengthCheck(arguments,1,{header:"CacheStorage.open"}),A=n.converters.DOMString(A),this.#A.has(A))return new r(t,this.#A.get(A));let e=[];return this.#A.set(A,e),new r(t,e);}async delete(A){return n.brandCheck(this,o),n.argumentLengthCheck(arguments,1,{header:"CacheStorage.delete"}),A=n.converters.DOMString(A),this.#A.delete(A);}async keys(){return n.brandCheck(this,o),[...this.#A.keys()];}}Object.defineProperties(o.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:!0},match:i,has:i,open:i,delete:i,keys:i}),A.exports={CacheStorage:o};}),e3("jJUdU",function(A,e){A.exports={kConstruct:no("fYjBn").kConstruct};}),e3("3fF4u",function(A,e){var t=no("jJUdU").kConstruct,r=no("9ho1x"),n=r.urlEquals,i=r.fieldValues,o=no("a5c5d"),s=o.kEnumerableProperty,a=o.isDisturbed,l=no("fYjBn").kHeadersList,E=no("e7TzI").webidl,c=no("iRA0r"),g=c.Response,h=c.cloneResponse,Q=no("j76nY").Request,u=no("kZx2v"),C=u.kState,I=u.kHeaders,B=u.kGuard,d=u.kRealm,f=no("hwpqO").fetching,p=no("beXwr"),y=p.urlIsHttpHttpsScheme,m=p.createDeferredPromise,w=p.readAllBytes,R=no("4WBTe").getGlobalDispatcher;class D{#e;constructor(){arguments[0]!==t&&E.illegalConstructor(),this.#e=arguments[1];}async match(A,e={}){E.brandCheck(this,D),E.argumentLengthCheck(arguments,1,{header:"Cache.match"}),A=E.converters.RequestInfo(A),e=E.converters.CacheQueryOptions(e);let t=await this.matchAll(A,e);if(0!==t.length)return t[0];}async matchAll(A,e={}){E.brandCheck(this,D),void 0!==A&&(A=E.converters.RequestInfo(A)),e=E.converters.CacheQueryOptions(e);let t=null;if(void 0!==A){if(A instanceof Q){if("GET"!==(t=A[C]).method&&!e.ignoreMethod)return[];}else"string"==typeof A&&(t=new Q(A)[C]);}let r=[];if(void 0===A)for(let A of this.#e)r.push(A[1]);else for(let A of this.#t(t,e))r.push(A[1]);let n=[];for(let A of r){var i,o;let e=new g(null!==(o=null===(i=A.body)||void 0===i?void 0:i.source)&&void 0!==o?o:null),t=e[C].body;e[C]=A,e[C].body=t,e[I][l]=A.headersList,e[I][B]="immutable",n.push(e);}return Object.freeze(n);}async add(A){E.brandCheck(this,D),E.argumentLengthCheck(arguments,1,{header:"Cache.add"});let e=[A=E.converters.RequestInfo(A)],t=this.addAll(e);return await t;}async addAll(A){E.brandCheck(this,D),E.argumentLengthCheck(arguments,1,{header:"Cache.addAll"});let e=[],t=[];for(let e of A=E.converters["sequence"](A)){if("string"==typeof e)continue;let A=e[C];if(!y(A.url)||"GET"!==A.method)throw E.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme when method is not GET."});}let r=[];for(let n of A){let A=new Q(n)[C];if(!y(A.url))throw E.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme."});A.initiator="fetch",A.destination="subresource",t.push(A);let o=m();r.push(f({request:A,dispatcher:R(),processResponse(A){if("error"===A.type||206===A.status||A.status<200||A.status>299)o.reject(E.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}));else if(A.headersList.contains("vary")){for(let e of i(A.headersList.get("vary")))if("*"===e){for(let A of(o.reject(E.errors.exception({header:"Cache.addAll",message:"invalid vary field value"})),r))A.abort();return;}}},processResponseEndOfBody(A){if(A.aborted){o.reject(new DOMException("aborted","AbortError"));return;}o.resolve(A);}})),e.push(o.promise);}let n=Promise.all(e),o=await n,s=[],a=0;for(let A of o){let e={type:"put",request:t[a],response:A};s.push(e),a++;}let l=m(),c=null;try{this.#r(s);}catch(A){c=A;}return queueMicrotask(()=>{null===c?l.resolve(void 0):l.reject(c);}),l.promise;}async put(A,e){E.brandCheck(this,D),E.argumentLengthCheck(arguments,2,{header:"Cache.put"}),A=E.converters.RequestInfo(A),e=E.converters.Response(e);let t=null;if(!y((t=A instanceof Q?A[C]:new Q(A)[C]).url)||"GET"!==t.method)throw E.errors.exception({header:"Cache.put",message:"Expected an http/s scheme when method is not GET"});let r=e[C];if(206===r.status)throw E.errors.exception({header:"Cache.put",message:"Got 206 status"});if(r.headersList.contains("vary")){for(let A of i(r.headersList.get("vary")))if("*"===A)throw E.errors.exception({header:"Cache.put",message:"Got * vary field value"});}if(r.body&&(a(r.body.stream)||r.body.stream.locked))throw E.errors.exception({header:"Cache.put",message:"Response body is locked or disturbed"});let n=h(r),o=m();null!=r.body?w(r.body.stream.getReader()).then(o.resolve,o.reject):o.resolve(void 0);let s=[],l={type:"put",request:t,response:n};s.push(l);let c=await o.promise;null!=n.body&&(n.body.source=c);let g=m(),u=null;try{this.#r(s);}catch(A){u=A;}return queueMicrotask(()=>{null===u?g.resolve():g.reject(u);}),g.promise;}async delete(A,e={}){let t;E.brandCheck(this,D),E.argumentLengthCheck(arguments,1,{header:"Cache.delete"}),A=E.converters.RequestInfo(A),e=E.converters.CacheQueryOptions(e);let r=null;if(A instanceof Q){if("GET"!==(r=A[C]).method&&!e.ignoreMethod)return!1;}else rY("string"==typeof A),r=new Q(A)[C];let n=[],i={type:"delete",request:r,options:e};n.push(i);let o=m(),s=null;try{t=this.#r(n);}catch(A){s=A;}return queueMicrotask(()=>{null===s?o.resolve(!!(null==t?void 0:t.length)):o.reject(s);}),o.promise;}async keys(A,e={}){E.brandCheck(this,D),void 0!==A&&(A=E.converters.RequestInfo(A)),e=E.converters.CacheQueryOptions(e);let t=null;if(void 0!==A){if(A instanceof Q){if("GET"!==(t=A[C]).method&&!e.ignoreMethod)return[];}else"string"==typeof A&&(t=new Q(A)[C]);}let r=m(),n=[];if(void 0===A)for(let A of this.#e)n.push(A[0]);else for(let A of this.#t(t,e))n.push(A[0]);return queueMicrotask(()=>{let A=[];for(let e of n){let t=new Q("https://a");t[C]=e,t[I][l]=e.headersList,t[I][B]="immutable",t[d]=e.client,A.push(t);}r.resolve(Object.freeze(A));}),r.promise;}#r(A){let e=this.#e,t=[...e],r=[],n=[];try{for(let t of A){let A;if("delete"!==t.type&&"put"!==t.type)throw E.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'});if("delete"===t.type&&null!=t.response)throw E.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"});if(this.#t(t.request,t.options,r).length)throw new DOMException("???","InvalidStateError");if("delete"===t.type){if(A=this.#t(t.request,t.options),0===A.length)return[];for(let t of A){let A=e.indexOf(t);rY(-1!==A),e.splice(A,1);}}else if("put"===t.type){if(null==t.response)throw E.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"});let n=t.request;if(!y(n.url))throw E.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"});if("GET"!==n.method)throw E.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"});if(null!=t.options)throw E.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"});for(let r of A=this.#t(t.request)){let A=e.indexOf(r);rY(-1!==A),e.splice(A,1);}e.push([t.request,t.response]),r.push([t.request,t.response]);}n.push([t.request,t.response]);}return n;}catch(A){throw this.#e.length=0,this.#e=t,A;}}#t(A,e,t){let r=[];for(let n of null!=t?t:this.#e){let[t,i]=n;this.#n(A,t,i,e)&&r.push(n);}return r;}#n(A,e,t=null,r){let o=new URL(A.url),s=new URL(e.url);if((null==r?void 0:r.ignoreSearch)&&(s.search="",o.search=""),!n(o,s,!0))return!1;if(null==t||(null==r?void 0:r.ignoreVary)||!t.headersList.contains("vary"))return!0;for(let r of i(t.headersList.get("vary")))if("*"===r||e.headersList.get(r)!==A.headersList.get(r))return!1;return!0;}}Object.defineProperties(D.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:!0},match:s,matchAll:s,add:s,addAll:s,put:s,delete:s,keys:s});let b=[{key:"ignoreSearch",converter:E.converters.boolean,defaultValue:!1},{key:"ignoreMethod",converter:E.converters.boolean,defaultValue:!1},{key:"ignoreVary",converter:E.converters.boolean,defaultValue:!1}];E.converters.CacheQueryOptions=E.dictionaryConverter(b),E.converters.MultiCacheQueryOptions=E.dictionaryConverter([...b,{key:"cacheName",converter:E.converters.DOMString}]),E.converters.Response=E.interfaceConverter(g),E.converters["sequence"]=E.sequenceConverter(E.converters.RequestInfo),A.exports={Cache:D};}),e3("9ho1x",function(A,e){var t,r;t=no("g34gh").URLSerializer,r=no("beXwr").isValidHeaderName,A.exports={urlEquals:function(A,e,r=!1){return t(A,r)===t(e,r);},fieldValues:function(A){rY(null!==A);let e=[];for(let t of A.split(",")){if((t=t.trim()).length)r(t)&&e.push(t);}return e;}};}),e3("fCK8n",function(A,e){var t,r,n,i,o,s;function a(A,e){o.argumentLengthCheck(arguments,2,{header:"setCookie"}),o.brandCheck(A,s,{strict:!1}),e=o.converters.Cookie(e),n(e)&&A.append("Set-Cookie",n(e));}t=no("62ikl").parseSetCookie,n=(r=no("kEYsm")).stringify,i=r.getHeadersList,o=no("e7TzI").webidl,s=no("mCZlw").Headers,o.converters.DeleteCookieAttributes=o.dictionaryConverter([{converter:o.nullableConverter(o.converters.DOMString),key:"path",defaultValue:null},{converter:o.nullableConverter(o.converters.DOMString),key:"domain",defaultValue:null}]),o.converters.Cookie=o.dictionaryConverter([{converter:o.converters.DOMString,key:"name"},{converter:o.converters.DOMString,key:"value"},{converter:o.nullableConverter(A=>"number"==typeof A?o.converters["unsigned long long"](A):new Date(A)),key:"expires",defaultValue:null},{converter:o.nullableConverter(o.converters["long long"]),key:"maxAge",defaultValue:null},{converter:o.nullableConverter(o.converters.DOMString),key:"domain",defaultValue:null},{converter:o.nullableConverter(o.converters.DOMString),key:"path",defaultValue:null},{converter:o.nullableConverter(o.converters.boolean),key:"secure",defaultValue:null},{converter:o.nullableConverter(o.converters.boolean),key:"httpOnly",defaultValue:null},{converter:o.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:o.sequenceConverter(o.converters.DOMString),key:"unparsed",defaultValue:[]}]),A.exports={getCookies:function(A){o.argumentLengthCheck(arguments,1,{header:"getCookies"}),o.brandCheck(A,s,{strict:!1});let e=A.get("cookie"),t={};if(!e)return t;for(let A of e.split(";")){let[e,...r]=A.split("=");t[e.trim()]=r.join("=");}return t;},deleteCookie:function(A,e,t){o.argumentLengthCheck(arguments,2,{header:"deleteCookie"}),o.brandCheck(A,s,{strict:!1}),e=o.converters.DOMString(e),t=o.converters.DeleteCookieAttributes(t),a(A,{name:e,value:"",expires:new Date(0),...t});},getSetCookies:function(A){o.argumentLengthCheck(arguments,1,{header:"getSetCookies"}),o.brandCheck(A,s,{strict:!1});let e=i(A).cookies;return e?e.map(A=>t(Array.isArray(A)?A[1]:A)):[];},setCookie:a};}),e3("62ikl",function(A,e){var t,r,n,i,o;function s(A,e={}){if(0===A.length)return e;rY(";"===A[0]);let t="";(A=A.slice(1)).includes(";")?(t=o(";",A,{position:0}),A=A.slice(t.length)):(t=A,A="");let r="",i="";if(t.includes("=")){let A={position:0};r=o("=",t,A),i=t.slice(A.position+1);}else r=t;if(r=r.trim(),(i=i.trim()).length>n)return s(A,e);let a=r.toLowerCase();if("expires"===a){let A=new Date(i);e.expires=A;}else if("max-age"===a){let t=i.charCodeAt(0);if((t<48||t>57)&&"-"!==i[0]||!/^\d+$/.test(i))return s(A,e);let r=+i;e.maxAge=r;}else if("domain"===a){let A=i;"."===A[0]&&(A=A.slice(1)),A=A.toLowerCase(),e.domain=A;}else if("path"===a){let A="";A=0===i.length||"/"!==i[0]?"/":i,e.path=A;}else if("secure"===a)e.secure=!0;else if("httponly"===a)e.httpOnly=!0;else if("samesite"===a){let A="Default",t=i.toLowerCase();t.includes("none")&&(A="None"),t.includes("strict")&&(A="Strict"),t.includes("lax")&&(A="Lax"),e.sameSite=A;}else{var l;null!==(l=e.unparsed)&&void 0!==l||(e.unparsed=[]),e.unparsed.push(`${r}=${i}`);}return s(A,e);}r=(t=no("3Q4N0")).maxNameValuePairSize,n=t.maxAttributeValueSize,i=no("kEYsm").isCTLExcludingHtab,o=no("g34gh").collectASequenceOfCodePointsFast,A.exports={parseSetCookie:function(A){if(i(A))return null;let e="",t="",n="",a="";if(A.includes(";")){let r={position:0};e=o(";",A,r),t=A.slice(r.position);}else e=A;if(e.includes("=")){let A={position:0};n=o("=",e,A),a=e.slice(A.position+1);}else a=e;return(n=n.trim(),a=a.trim(),n.length+a.length>r)?null:{name:n,value:a,...s(t)};},parseUnparsedAttributes:s};}),e3("3Q4N0",function(A,e){A.exports={maxAttributeValueSize:1024,maxNameValuePairSize:4096};}),e3("kEYsm",function(A,e){var t;let r;t=no("fYjBn").kHeadersList,A.exports={isCTLExcludingHtab:function(A){if(0===A.length)return!1;for(let e of A){let A=e.charCodeAt(0);if(A>=0||A<=8||A>=10||A<=31||127===A)return!1;}},stringify:function(A){if(0===A.name.length)return null;(function(A){for(let e of A){let A=e.charCodeAt(0);if(A<=32||A>127||"("===e||")"===e||">"===e||"<"===e||"@"===e||","===e||";"===e||":"===e||"\\"===e||'"'===e||"/"===e||"["===e||"]"===e||"?"===e||"="===e||"{"===e||"}"===e)throw Error("Invalid cookie name");}})(A.name),function(A){for(let e of A){let A=e.charCodeAt(0);if(A<33||34===A||44===A||59===A||92===A||A>126)throw Error("Invalid header value");}}(A.value);let e=[`${A.name}=${A.value}`];for(let t of(A.name.startsWith("__Secure-")&&(A.secure=!0),A.name.startsWith("__Host-")&&(A.secure=!0,A.domain=null,A.path="/"),A.secure&&e.push("Secure"),A.httpOnly&&e.push("HttpOnly"),"number"==typeof A.maxAge&&(function(A){if(A<0)throw Error("Invalid cookie max-age");}(A.maxAge),e.push("Max-Age="+A.maxAge)),A.domain&&(function(A){if(A.startsWith("-")||A.endsWith(".")||A.endsWith("-"))throw Error("Invalid cookie domain");}(A.domain),e.push("Domain="+A.domain)),A.path&&(function(A){for(let e of A)if(33>e.charCodeAt(0)||";"===e)throw Error("Invalid cookie path");}(A.path),e.push("Path="+A.path)),A.expires&&"Invalid Date"!==A.expires.toString()&&e.push("Expires="+function(A){"number"==typeof A&&(A=new Date(A));let e=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][A.getUTCDay()],t=A.getUTCDate().toString().padStart(2,"0"),r=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][A.getUTCMonth()],n=A.getUTCFullYear(),i=A.getUTCHours().toString().padStart(2,"0"),o=A.getUTCMinutes().toString().padStart(2,"0"),s=A.getUTCSeconds().toString().padStart(2,"0");return`${e}, ${t} ${r} ${n} ${i}:${o}:${s} GMT`;}(A.expires)),A.sameSite&&e.push("SameSite="+A.sameSite),A.unparsed)){if(!t.includes("="))throw Error("Invalid unparsed");let[A,...r]=t.split("=");e.push(`${A.trim()}=${r.join("=")}`);}return e.join("; ");},getHeadersList:function(A){if(A[t])return A[t];r||rY(r=Object.getOwnPropertySymbols(A).find(A=>"headers list"===A.description),"Headers cannot be parsed");let e=A[r];return rY(e),e;}};}),e3("2FMXc",function(A,e){var t=no("e7TzI").webidl,r=no("7VDV9").DOMException,n=no("g34gh").URLSerializer,i=no("ktTfx").getGlobalOrigin,o=no("67ExB"),s=o.staticPropertyDescriptors,a=o.states,l=o.opcodes,E=o.emptyBuffer,c=no("8yu3q"),g=c.kWebSocketURL,h=c.kReadyState,Q=c.kController,u=c.kBinaryType,C=c.kResponse,I=c.kSentClose,B=c.kByteParser,d=no("9HBAw"),f=d.isEstablished,p=d.isClosing,y=d.isValidSubprotocol,m=d.failWebsocketConnection,w=d.fireEvent,R=no("4mVx7").establishWebSocketConnection,D=no("kfau3").WebsocketFrameSend,b=no("j3xDP").ByteParser,k=no("a5c5d"),N=k.kEnumerableProperty,S=k.isBlobLike,F=no("4WBTe").getGlobalDispatcher,v=rO.types;let L=!1;class U extends EventTarget{#i={open:null,error:null,close:null,message:null};#o=0;#s="";#a="";constructor(A,e=[]){let n;super(),t.argumentLengthCheck(arguments,1,{header:"WebSocket constructor"}),L||(L=!0,process.emitWarning("WebSockets are experimental, expect them to change at any time.",{code:"UNDICI-WS"}));let o=t.converters["DOMString or sequence or WebSocketInit"](e);A=t.converters.USVString(A),e=o.protocols;let s=i();try{n=new URL(A,s);}catch(A){throw new r(A,"SyntaxError");}if("http:"===n.protocol?n.protocol="ws:":"https:"===n.protocol&&(n.protocol="wss:"),"ws:"!==n.protocol&&"wss:"!==n.protocol)throw new r("Expected a ws: or wss: protocol, got "+n.protocol,"SyntaxError");if(n.hash||n.href.endsWith("#"))throw new r("Got fragment","SyntaxError");if("string"==typeof e&&(e=[e]),e.length!==new Set(e.map(A=>A.toLowerCase())).size||e.length>0&&!e.every(A=>y(A)))throw new r("Invalid Sec-WebSocket-Protocol value","SyntaxError");this[g]=new URL(n.href),this[Q]=R(n,e,this,A=>this.#l(A),o),this[h]=U.CONNECTING,this[u]="blob";}close(A,e){if(t.brandCheck(this,U),void 0!==A&&(A=t.converters["unsigned short"](A,{clamp:!0})),void 0!==e&&(e=t.converters.USVString(e)),void 0!==A&&1e3!==A&&(A<3e3||A>4999))throw new r("invalid code","InvalidAccessError");let n=0;if(void 0!==e&&(n=Buffer.byteLength(e))>123)throw new r("Reason must be less than 123 bytes; received "+n,"SyntaxError");if(this[h]===U.CLOSING||this[h]===U.CLOSED);else if(f(this)){if(p(this))this[h]=U.CLOSING;else{let t=new D();void 0!==A&&void 0===e?(t.frameData=Buffer.allocUnsafe(2),t.frameData.writeUInt16BE(A,0)):void 0!==A&&void 0!==e?(t.frameData=Buffer.allocUnsafe(2+n),t.frameData.writeUInt16BE(A,0),t.frameData.write(e,2,"utf-8")):t.frameData=E,this[C].socket.write(t.createFrame(l.CLOSE),A=>{A||(this[I]=!0);}),this[h]=a.CLOSING;}}else m(this,"Connection was closed before it was established."),this[h]=U.CLOSING;}send(A){if(t.brandCheck(this,U),t.argumentLengthCheck(arguments,1,{header:"WebSocket.send"}),A=t.converters.WebSocketSendData(A),this[h]===U.CONNECTING)throw new r("Sent before connected.","InvalidStateError");if(!f(this)||p(this))return;let e=this[C].socket;if("string"==typeof A){let t=Buffer.from(A),r=new D(t).createFrame(l.TEXT);this.#o+=t.byteLength,e.write(r,()=>{this.#o-=t.byteLength;});}else if(v.isArrayBuffer(A)){let t=Buffer.from(A),r=new D(t).createFrame(l.BINARY);this.#o+=t.byteLength,e.write(r,()=>{this.#o-=t.byteLength;});}else if(ArrayBuffer.isView(A)){let t=Buffer.from(A,A.byteOffset,A.byteLength),r=new D(t).createFrame(l.BINARY);this.#o+=t.byteLength,e.write(r,()=>{this.#o-=t.byteLength;});}else if(S(A)){let t=new D();A.arrayBuffer().then(A=>{let r=Buffer.from(A);t.frameData=r;let n=t.createFrame(l.BINARY);this.#o+=r.byteLength,e.write(n,()=>{this.#o-=r.byteLength;});});}}get readyState(){return t.brandCheck(this,U),this[h];}get bufferedAmount(){return t.brandCheck(this,U),this.#o;}get url(){return t.brandCheck(this,U),n(this[g]);}get extensions(){return t.brandCheck(this,U),this.#a;}get protocol(){return t.brandCheck(this,U),this.#s;}get onopen(){return t.brandCheck(this,U),this.#i.open;}set onopen(A){t.brandCheck(this,U),this.#i.open&&this.removeEventListener("open",this.#i.open),"function"==typeof A?(this.#i.open=A,this.addEventListener("open",A)):this.#i.open=null;}get onerror(){return t.brandCheck(this,U),this.#i.error;}set onerror(A){t.brandCheck(this,U),this.#i.error&&this.removeEventListener("error",this.#i.error),"function"==typeof A?(this.#i.error=A,this.addEventListener("error",A)):this.#i.error=null;}get onclose(){return t.brandCheck(this,U),this.#i.close;}set onclose(A){t.brandCheck(this,U),this.#i.close&&this.removeEventListener("close",this.#i.close),"function"==typeof A?(this.#i.close=A,this.addEventListener("close",A)):this.#i.close=null;}get onmessage(){return t.brandCheck(this,U),this.#i.message;}set onmessage(A){t.brandCheck(this,U),this.#i.message&&this.removeEventListener("message",this.#i.message),"function"==typeof A?(this.#i.message=A,this.addEventListener("message",A)):this.#i.message=null;}get binaryType(){return t.brandCheck(this,U),this[u];}set binaryType(A){t.brandCheck(this,U),"blob"!==A&&"arraybuffer"!==A?this[u]="blob":this[u]=A;}#l(A){this[C]=A;let e=new b(this);e.on("drain",function(){this.ws[C].socket.resume();}),A.socket.ws=this,this[B]=e,this[h]=a.OPEN;let t=A.headersList.get("sec-websocket-extensions");null!==t&&(this.#a=t);let r=A.headersList.get("sec-websocket-protocol");null!==r&&(this.#s=r),w("open",this);}}U.CONNECTING=U.prototype.CONNECTING=a.CONNECTING,U.OPEN=U.prototype.OPEN=a.OPEN,U.CLOSING=U.prototype.CLOSING=a.CLOSING,U.CLOSED=U.prototype.CLOSED=a.CLOSED,Object.defineProperties(U.prototype,{CONNECTING:s,OPEN:s,CLOSING:s,CLOSED:s,url:N,readyState:N,bufferedAmount:N,onopen:N,onerror:N,onclose:N,close:N,onmessage:N,binaryType:N,send:N,extensions:N,protocol:N,[Symbol.toStringTag]:{value:"WebSocket",writable:!1,enumerable:!1,configurable:!0}}),Object.defineProperties(U,{CONNECTING:s,OPEN:s,CLOSING:s,CLOSED:s}),t.converters["sequence"]=t.sequenceConverter(t.converters.DOMString),t.converters["DOMString or sequence"]=function(A){return"Object"===t.util.Type(A)&&Symbol.iterator in A?t.converters["sequence"](A):t.converters.DOMString(A);},t.converters.WebSocketInit=t.dictionaryConverter([{key:"protocols",converter:t.converters["DOMString or sequence"],get defaultValue(){return[];}},{key:"dispatcher",converter:A=>A,get defaultValue(){return F();}},{key:"headers",converter:t.nullableConverter(t.converters.HeadersInit)}]),t.converters["DOMString or sequence or WebSocketInit"]=function(A){return"Object"!==t.util.Type(A)||Symbol.iterator in A?{protocols:t.converters["DOMString or sequence"](A)}:t.converters.WebSocketInit(A);},t.converters.WebSocketSendData=function(A){if("Object"===t.util.Type(A)){if(S(A))return t.converters.Blob(A,{strict:!1});if(ArrayBuffer.isView(A)||v.isAnyArrayBuffer(A))return t.converters.BufferSource(A);}return t.converters.USVString(A);},A.exports={WebSocket:U};}),e3("67ExB",function(A,e){let t=Buffer.allocUnsafe(0);A.exports={uid:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",staticPropertyDescriptors:{enumerable:!0,writable:!1,configurable:!1},states:{CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3},opcodes:{CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10},maxUnsigned16Bit:65535,parserStates:{INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4},emptyBuffer:t};}),e3("8yu3q",function(A,e){A.exports={kWebSocketURL:Symbol(),kReadyState:Symbol(),kController:Symbol(),kResponse:Symbol(),kBinaryType:Symbol(),kSentClose:Symbol(),kReceivedClose:Symbol(),kByteParser:Symbol()};}),e3("9HBAw",function(A,e){var t,r,n,i,o,s,a,l,E,c,g,h;function Q(A,e,t=Event,r){let n=new t(A,r);e.dispatchEvent(n);}function u(A,e){let{[n]:t,[i]:r}=A;t.abort(),(null==r?void 0:r.socket)&&!r.socket.destroyed&&r.socket.destroy(),e&&Q("error",A,h,{error:Error(e)});}r=(t=no("8yu3q")).kReadyState,n=t.kController,i=t.kResponse,o=t.kBinaryType,s=t.kWebSocketURL,l=(a=no("67ExB")).states,E=a.opcodes,g=(c=no("bOUwB")).MessageEvent,h=c.ErrorEvent,A.exports={isEstablished:function(A){return A[r]===l.OPEN;},isClosing:function(A){return A[r]===l.CLOSING;},isClosed:function(A){return A[r]===l.CLOSED;},fireEvent:Q,isValidSubprotocol:function(A){if(0===A.length)return!1;for(let e of A){let A=e.charCodeAt(0);if(A<33||A>126||"("===e||")"===e||"<"===e||">"===e||"@"===e||","===e||";"===e||":"===e||"\\"===e||'"'===e||"/"===e||"["===e||"]"===e||"?"===e||"="===e||"{"===e||"}"===e||32===A||9===A)return!1;}return!0;},isValidStatusCode:function(A){return A>=1e3&&A<1015?1004!==A&&1005!==A&&1006!==A:A>=3e3&&A<=4999;},failWebsocketConnection:u,websocketMessageReceived:function(A,e,t){let n;if(A[r]===l.OPEN){if(e===E.TEXT)try{n=new TextDecoder("utf-8",{fatal:!0}).decode(t);}catch{u(A,"Received invalid UTF-8 in text frame.");return;}else e===E.BINARY&&(n="blob"===A[o]?new Blob([t]):new Uint8Array(t).buffer);Q("message",A,g,{origin:A[s].origin,data:n});}}};}),e3("bOUwB",function(A,e){var t=no("e7TzI").webidl,r=no("a5c5d").kEnumerableProperty,n=r$.MessagePort;class i extends Event{#E;constructor(A,e={}){t.argumentLengthCheck(arguments,1,{header:"MessageEvent constructor"}),super(A=t.converters.DOMString(A),e=t.converters.MessageEventInit(e)),this.#E=e;}get data(){return t.brandCheck(this,i),this.#E.data;}get origin(){return t.brandCheck(this,i),this.#E.origin;}get lastEventId(){return t.brandCheck(this,i),this.#E.lastEventId;}get source(){return t.brandCheck(this,i),this.#E.source;}get ports(){return t.brandCheck(this,i),Object.isFrozen(this.#E.ports)||Object.freeze(this.#E.ports),this.#E.ports;}initMessageEvent(A,e=!1,r=!1,n=null,o="",s="",a=null,l=[]){return t.brandCheck(this,i),t.argumentLengthCheck(arguments,1,{header:"MessageEvent.initMessageEvent"}),new i(A,{bubbles:e,cancelable:r,data:n,origin:o,lastEventId:s,source:a,ports:l});}}class o extends Event{#E;constructor(A,e={}){t.argumentLengthCheck(arguments,1,{header:"CloseEvent constructor"}),super(A=t.converters.DOMString(A),e=t.converters.CloseEventInit(e)),this.#E=e;}get wasClean(){return t.brandCheck(this,o),this.#E.wasClean;}get code(){return t.brandCheck(this,o),this.#E.code;}get reason(){return t.brandCheck(this,o),this.#E.reason;}}class s extends Event{#E;constructor(A,e){t.argumentLengthCheck(arguments,1,{header:"ErrorEvent constructor"}),super(A,e),A=t.converters.DOMString(A),e=t.converters.ErrorEventInit(null!=e?e:{}),this.#E=e;}get message(){return t.brandCheck(this,s),this.#E.message;}get filename(){return t.brandCheck(this,s),this.#E.filename;}get lineno(){return t.brandCheck(this,s),this.#E.lineno;}get colno(){return t.brandCheck(this,s),this.#E.colno;}get error(){return t.brandCheck(this,s),this.#E.error;}}Object.defineProperties(i.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:!0},data:r,origin:r,lastEventId:r,source:r,ports:r,initMessageEvent:r}),Object.defineProperties(o.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:!0},reason:r,code:r,wasClean:r}),Object.defineProperties(s.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:!0},message:r,filename:r,lineno:r,colno:r,error:r}),t.converters.MessagePort=t.interfaceConverter(n),t.converters["sequence"]=t.sequenceConverter(t.converters.MessagePort);let a=[{key:"bubbles",converter:t.converters.boolean,defaultValue:!1},{key:"cancelable",converter:t.converters.boolean,defaultValue:!1},{key:"composed",converter:t.converters.boolean,defaultValue:!1}];t.converters.MessageEventInit=t.dictionaryConverter([...a,{key:"data",converter:t.converters.any,defaultValue:null},{key:"origin",converter:t.converters.USVString,defaultValue:""},{key:"lastEventId",converter:t.converters.DOMString,defaultValue:""},{key:"source",converter:t.nullableConverter(t.converters.MessagePort),defaultValue:null},{key:"ports",converter:t.converters["sequence"],get defaultValue(){return[];}}]),t.converters.CloseEventInit=t.dictionaryConverter([...a,{key:"wasClean",converter:t.converters.boolean,defaultValue:!1},{key:"code",converter:t.converters["unsigned short"],defaultValue:0},{key:"reason",converter:t.converters.USVString,defaultValue:""}]),t.converters.ErrorEventInit=t.dictionaryConverter([...a,{key:"message",converter:t.converters.DOMString,defaultValue:""},{key:"filename",converter:t.converters.USVString,defaultValue:""},{key:"lineno",converter:t.converters["unsigned long"],defaultValue:0},{key:"colno",converter:t.converters["unsigned long"],defaultValue:0},{key:"error",converter:t.converters.any}]),A.exports={MessageEvent:i,CloseEvent:o,ErrorEvent:s};}),e3("4mVx7",function(A,e){var t,r,n,i,o,s,a,l,E,c,g,h,Q,u,C,I,B;let d;function f(A){this.ws[a].write(A)||this.pause();}function p(){let{ws:A}=this,e=A[s]&&A[l],t=1005,r="",i=A[a].closingInfo;if(i){var E;t=null!==(E=i.code)&&void 0!==E?E:1005,r=i.reason;}else A[s]||(t=1006);A[o]=n.CLOSED,c("close",A,h,{wasClean:e,code:t,reason:r}),m.close.hasSubscribers&&m.close.publish({websocket:A,code:t,reason:r});}function y(A){let{ws:e}=this;e[o]=n.CLOSING,m.socketError.hasSubscribers&&m.socketError.publish(A),this.destroy();}r=(t=no("67ExB")).uid,n=t.states,o=(i=no("8yu3q")).kReadyState,s=i.kSentClose,a=i.kByteParser,l=i.kReceivedClose,c=(E=no("9HBAw")).fireEvent,g=E.failWebsocketConnection,h=no("bOUwB").CloseEvent,Q=no("j76nY").makeRequest,u=no("hwpqO").fetching,C=no("mCZlw").Headers,I=no("4WBTe").getGlobalDispatcher,B=no("fYjBn").kHeadersList;let m={};m.open=r2.channel("undici:websocket:open"),m.close=r2.channel("undici:websocket:close"),m.socketError=r2.channel("undici:websocket:socket_error");try{d=$32e5d864c0e9b12e$import$dcf5ad41f4662e6f;}catch{}A.exports={establishWebSocketConnection:function(A,e,t,n,i){var o;A.protocol="ws:"===A.protocol?"http:":"https:";let s=Q({urlList:[A],serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(i.headers){let A=new C(i.headers)[B];s.headersList=A;}let a=d.randomBytes(16).toString("base64");for(let A of(s.headersList.append("sec-websocket-key",a),s.headersList.append("sec-websocket-version","13"),e))s.headersList.append("sec-websocket-protocol",A);return u({request:s,useParallelQueue:!0,dispatcher:null!==(o=i.dispatcher)&&void 0!==o?o:I(),processResponse(A){var i,o;if("error"===A.type||101!==A.status){g(t,"Received network error or non-101 status code.");return;}if(0!==e.length&&!A.headersList.get("Sec-WebSocket-Protocol")){g(t,"Server did not respond with sent protocols.");return;}if((null===(i=A.headersList.get("Upgrade"))||void 0===i?void 0:i.toLowerCase())!=="websocket"){g(t,'Server did not set Upgrade header to "websocket".');return;}if((null===(o=A.headersList.get("Connection"))||void 0===o?void 0:o.toLowerCase())!=="upgrade"){g(t,'Server did not set Connection header to "upgrade".');return;}if(A.headersList.get("Sec-WebSocket-Accept")!==d.createHash("sha1").update(a+r).digest("base64")){g(t,"Incorrect hash received in Sec-WebSocket-Accept header.");return;}let l=A.headersList.get("Sec-WebSocket-Extensions");if(null!==l&&""!==l){g(t,"Received different permessage-deflate than the one set.");return;}let E=A.headersList.get("Sec-WebSocket-Protocol");if(null!==E&&E!==s.headersList.get("Sec-WebSocket-Protocol")){g(t,"Protocol was not set in the opening handshake.");return;}A.socket.on("data",f),A.socket.on("close",p),A.socket.on("error",y),m.open.hasSubscribers&&m.open.publish({address:A.socket.address(),protocol:E,extensions:l}),n(A);}});}};}),e3("kfau3",function(A,e){let t;var r=no("67ExB").maxUnsigned16Bit;try{t=$ebcd573d290880be$import$804f562e18a94705;}catch{}A.exports={WebsocketFrameSend:class{constructor(A){this.frameData=A,this.maskKey=t.randomBytes(4);}createFrame(A){var e,t;let n=null!==(t=null===(e=this.frameData)||void 0===e?void 0:e.byteLength)&&void 0!==t?t:0,i=n,o=6;n>r?(o+=8,i=127):n>125&&(o+=2,i=126);let s=Buffer.allocUnsafe(n+o);s[0]=s[1]=0,s[0]|=128,s[0]=(240&s[0])+A,s[o-4]=this.maskKey[0],s[o-3]=this.maskKey[1],s[o-2]=this.maskKey[2],s[o-1]=this.maskKey[3],s[1]=i,126===i?s.writeUInt16BE(n,2):127===i&&(s[2]=s[3]=0,s.writeUIntBE(n,4,6)),s[1]|=128;for(let A=0;A125){u(this.ws,"Fragmented frame exceeded 125 bytes.");return;}if((this.#Q.opcode===i.PING||this.#Q.opcode===i.PONG||this.#Q.opcode===i.CLOSE)&&s>125){u(this.ws,"Payload length for control frame exceeded 125 bytes.");return;}if(this.#Q.opcode===i.CLOSE){if(1===s){u(this.ws,"Received close frame with a 1-byte body.");return;}let A=this.consume(s);if(this.#Q.closeInfo=this.parseCloseBody(!1,A),!this.ws[E]){let A=Buffer.allocUnsafe(2);A.writeUInt16BE(this.#Q.closeInfo.code,0);let e=new I(A);this.ws[c].socket.write(e.createFrame(i.CLOSE),A=>{A||(this.ws[E]=!0);});}this.ws[l]=o.CLOSING,this.ws[g]=!0,this.end();return;}else if(this.#Q.opcode===i.PING){let e=this.consume(s);if(!this.ws[g]){let A=new I(e);this.ws[c].socket.write(A.createFrame(i.PONG)),B.ping.hasSubscribers&&B.ping.publish({payload:e});}if(this.#h=n.INFO,this.#g>0)continue;A();return;}else if(this.#Q.opcode===i.PONG){let e=this.consume(s);if(B.pong.hasSubscribers&&B.pong.publish({payload:e}),this.#g>0)continue;A();return;}}else if(this.#h===n.PAYLOADLENGTH_16){if(this.#g<2)return A();let e=this.consume(2);this.#Q.payloadLength=e.readUInt16BE(0),this.#h=n.READ_DATA;}else if(this.#h===n.PAYLOADLENGTH_64){if(this.#g<8)return A();let e=this.consume(8),t=e.readUInt32BE(0);if(t>2147483648-1){u(this.ws,"Received payload length > 2^31 bytes.");return;}let r=e.readUInt32BE(4);this.#Q.payloadLength=(t<<8)+r,this.#h=n.READ_DATA;}else if(this.#h===n.READ_DATA){if(this.#g=this.#Q.payloadLength){let A=this.consume(this.#Q.payloadLength);if(this.#u.push(A),!this.#Q.fragmented||this.#Q.fin&&this.#Q.opcode===i.CONTINUATION){let A=Buffer.concat(this.#u);C(this.ws,this.#Q.originalOpcode,A),this.#Q={},this.#u.length=0;}this.#h=n.INFO;}}if(!(this.#g>0)){A();break;}}}consume(A){if(A>this.#g)return null;if(0===A)return s;if(this.#c[0].length===A)return this.#g-=this.#c[0].length,this.#c.shift();let e=Buffer.allocUnsafe(A),t=0;for(;t!==A;){let r=this.#c[0],{length:n}=r;if(n+t===A){e.set(this.#c.shift(),t);break;}if(n+t>A){e.set(r.subarray(0,A-t),t),this.#c[0]=r.subarray(A-t);break;}e.set(this.#c.shift(),t),t+=r.length;}return this.#g-=A,e;}parseCloseBody(A,e){let t;if(e.length>=2&&(t=e.readUInt16BE(0)),A)return Q(t)?{code:t}:null;let r=e.subarray(2);if(239===r[0]&&187===r[1]&&191===r[2]&&(r=r.subarray(3)),void 0!==t&&!Q(t))return null;try{r=new TextDecoder("utf-8",{fatal:!0}).decode(r);}catch{return null;}return{code:t,reason:r};}get closingInfo(){return this.#Q.closeInfo;}}A.exports={ByteParser:d};}),e3("h6tQO",function(A,e){var t=A.exports&&A.exports.__awaiter||function(A,e,t,r){return new(t||(t=Promise))(function(n,i){function o(A){try{a(r.next(A));}catch(A){i(A);}}function s(A){try{a(r.throw(A));}catch(A){i(A);}}function a(A){var e;A.done?n(A.value):((e=A.value)instanceof t?e:new t(function(A){A(e);})).then(o,s);}a((r=r.apply(A,e||[])).next());});};Object.defineProperty(A.exports,"__esModule",{value:!0}),A.exports.PersonalAccessTokenCredentialHandler=A.exports.BearerCredentialHandler=A.exports.BasicCredentialHandler=void 0,A.exports.BasicCredentialHandler=class{constructor(A,e){this.username=A,this.password=e;}prepareRequest(A){if(!A.headers)throw Error("The request has no headers");A.headers.Authorization="Basic "+Buffer.from(`${this.username}:${this.password}`).toString("base64");}canHandleAuthentication(){return!1;}handleAuthentication(){return t(this,void 0,void 0,function*(){throw Error("not implemented");});}},A.exports.BearerCredentialHandler=class{constructor(A){this.token=A;}prepareRequest(A){if(!A.headers)throw Error("The request has no headers");A.headers.Authorization="Bearer "+this.token;}canHandleAuthentication(){return!1;}handleAuthentication(){return t(this,void 0,void 0,function*(){throw Error("not implemented");});}},A.exports.PersonalAccessTokenCredentialHandler=class{constructor(A){this.token=A;}prepareRequest(A){if(!A.headers)throw Error("The request has no headers");A.headers.Authorization="Basic "+Buffer.from("PAT:"+this.token).toString("base64");}canHandleAuthentication(){return!1;}handleAuthentication(){return t(this,void 0,void 0,function*(){throw Error("not implemented");});}};}),e3("dV9Cu",function(A,e){var t=A.exports&&A.exports.__awaiter||function(A,e,t,r){return new(t||(t=Promise))(function(n,i){function o(A){try{a(r.next(A));}catch(A){i(A);}}function s(A){try{a(r.throw(A));}catch(A){i(A);}}function a(A){var e;A.done?n(A.value):((e=A.value)instanceof t?e:new t(function(A){A(e);})).then(o,s);}a((r=r.apply(A,e||[])).next());});};Object.defineProperty(A.exports,"__esModule",{value:!0}),A.exports.summary=A.exports.markdownSummary=A.exports.SUMMARY_DOCS_URL=A.exports.SUMMARY_ENV_VAR=void 0;let{access:r,appendFile:n,writeFile:i}=rv.promises;A.exports.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY",A.exports.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";let o=new class{constructor(){this._buffer="";}filePath(){return t(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[A.exports.SUMMARY_ENV_VAR];if(!e)throw Error(`Unable to find environment variable for $${A.exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield r(e,rv.constants.R_OK|rv.constants.W_OK);}catch(A){throw Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`);}return this._filePath=e,this._filePath;});}wrap(A,e,t={}){let r=Object.entries(t).map(([A,e])=>` ${A}="${e}"`).join("");return e?`<${A}${r}>${e}`:`<${A}${r}>`;}write(A){return t(this,void 0,void 0,function*(){let e=!!(null==A?void 0:A.overwrite),t=yield this.filePath();return yield(e?i:n)(t,this._buffer,{encoding:"utf8"}),this.emptyBuffer();});}clear(){return t(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(A,e=!1){return this._buffer+=A,e?this.addEOL():this;}addEOL(){return this.addRaw(rS.EOL);}addCodeBlock(A,e){let t=Object.assign({},e&&{lang:e}),r=this.wrap("pre",this.wrap("code",A),t);return this.addRaw(r).addEOL();}addList(A,e=!1){let t=A.map(A=>this.wrap("li",A)).join(""),r=this.wrap(e?"ol":"ul",t);return this.addRaw(r).addEOL();}addTable(A){let e=A.map(A=>{let e=A.map(A=>{if("string"==typeof A)return this.wrap("td",A);let{header:e,data:t,colspan:r,rowspan:n}=A,i=Object.assign(Object.assign({},r&&{colspan:r}),n&&{rowspan:n});return this.wrap(e?"th":"td",t,i);}).join("");return this.wrap("tr",e);}).join(""),t=this.wrap("table",e);return this.addRaw(t).addEOL();}addDetails(A,e){let t=this.wrap("details",this.wrap("summary",A)+e);return this.addRaw(t).addEOL();}addImage(A,e,t){let{width:r,height:n}=t||{},i=Object.assign(Object.assign({},r&&{width:r}),n&&{height:n}),o=this.wrap("img",null,Object.assign({src:A,alt:e},i));return this.addRaw(o).addEOL();}addHeading(A,e){let t="h"+e,r=["h1","h2","h3","h4","h5","h6"].includes(t)?t:"h1",n=this.wrap(r,A);return this.addRaw(n).addEOL();}addSeparator(){let A=this.wrap("hr",null);return this.addRaw(A).addEOL();}addBreak(){let A=this.wrap("br",null);return this.addRaw(A).addEOL();}addQuote(A,e){let t=Object.assign({},e&&{cite:e}),r=this.wrap("blockquote",A,t);return this.addRaw(r).addEOL();}addLink(A,e){let t=this.wrap("a",A,{href:e});return this.addRaw(t).addEOL();}}();A.exports.markdownSummary=o,A.exports.summary=o;}),e3("9i0tI",function(A,e){var t,r,n;t=A.exports&&A.exports.__createBinding||(Object.create?function(A,e,t,r){void 0===r&&(r=t),Object.defineProperty(A,r,{enumerable:!0,get:function(){return e[t];}});}:function(A,e,t,r){void 0===r&&(r=t),A[r]=e[t];}),r=A.exports&&A.exports.__setModuleDefault||(Object.create?function(A,e){Object.defineProperty(A,"default",{enumerable:!0,value:e});}:function(A,e){A.default=e;}),n=A.exports&&A.exports.__importStar||function(A){if(A&&A.__esModule)return A;var e={};if(null!=A)for(var n in A)"default"!==n&&Object.hasOwnProperty.call(A,n)&&t(e,A,n);return r(e,A),e;},Object.defineProperty(A.exports,"__esModule",{value:!0}),A.exports.toPlatformPath=A.exports.toWin32Path=A.exports.toPosixPath=void 0;let i=n(rF);A.exports.toPosixPath=function(A){return A.replace(/[\\]/g,"/");},A.exports.toWin32Path=function(A){return A.replace(/[/]/g,"\\");},A.exports.toPlatformPath=function(A){return A.replace(/[/\\]/g,i.sep);};}),e3("kswPT",function(A,e){var t=rF.resolve(__dirname,"../../node_modules/numerous/lib");(function(){var e,r;function n(A,t,r){if(i(A),"object"!=typeof r)throw Error("List of variants should be specified as an object");var n=e[A](t);return void 0!==r[n]?r[n]:null;}function i(A){!(void 0!==e[A])&&function(A){try{require(t+"/../locales/"+A+".js");}catch(e){throw Error("Failed to load the following locale: "+A);}}(A);}e={},r={create:function(A){return i(A),{pluralize:function(e,t){return n(A,e,t);}};},addLocale:function(A,t){e[A]=t;},pluralize:n},void 0!==A.exports?A.exports=r:this.numerous=r;}).call(A.exports);}),e3("foOBZ",function(A,e){function t(A){for(let e of(Array.isArray(A)||(A=[A]),A)){let{id:A,data:t}=e;s[A]=t;}}var r=no("6OFKY"),n=no("5GOZM");let i=[["years",290304e5],["months",24192e5],["weeks",6048e5],["days",864e5],["hours",36e5],["minutes",6e4],["seconds",1e3]],o={locale:"en",span:2,delimiter:", ",unitType:"long",unitTypeLookupOrder:["long","short","narrow"],autoloadLocales:!0},s={};A.exports={create:function(A){return A=Object.assign({},o,A||{}),{format:function(e,o,a){return function(A,e,o){if(function(A,e){let{autoload:r}=e;if(!s[A]){if(n&&r)(function(A){try{t(require(`../locales/${A}.js`));}catch(e){throw Error(`Failed to load locale: ${A} from ../locales/${A}.js. If using a bundled time-delta, set 'autoloadLocales: false' in the config: ${e}`);}})(A);else throw Error(`Missing locale: ${A}, you must load it manually before using it`);}}(o.locale,{autoload:o.autoloadLocales}),!A)throw Error("Missing first date argument");if(!e)throw Error("Missing second date argument");let a=function(A,e){let t=e-A,r=[];return i.some(function(A){let e=A[0],n=A[1],i=Math.floor(t/n);if(t-=i*n,r.push([e,i]),t<=0)return!0;}),r;}(A,e),l=[];for(let A of a){let[e,t]=A;if(t>0&&l.push(function(A,e,t){let n=function(A){let e=s[A.locale],t=A.unitTypeLookupOrder.slice();t.unshift(A.unitType);let r=null;if((t=Array.from(new Set(t))).some(function(A){if(void 0!==e[A])return r=e[A],!0;}),null===r)throw Error("Can not find any unit type data for locale: "+A.locale);return r;}(t);return r.pluralize(t.locale,e,n[A]).replace("{0}",e);}(e,t,o)),l.length>=o.span)break;}return l.join(o.delimiter);}(e,o,a=Object.assign({},A,a||{}));}};},addLocale:t,defaultConfig:o};}),e3("6OFKY",function(A,e){A.exports=no("kswPT");}),e3("5GOZM",function(A,e){A.exports=!!("undefined"!=typeof process&&process.versions&&process.versions.node);}),e3("2Bbmx",function(A,e){a(A.exports,"chmod",()=>n),a(A.exports,"lstat",()=>c),a(A.exports,"mkdir",()=>g),a(A.exports,"open",()=>Q),a(A.exports,"readdir",()=>u),a(A.exports,"readlink",()=>I),a(A.exports,"stat",()=>p),a(A.exports,"symlink",()=>y),a(A.exports,"utimes",()=>R),a(A.exports,"writeFile",()=>D),a(A.exports,"rm",()=>b),rv.promises;let{access:t,appendFile:r,chmod:n,chown:i,copyFile:o,lchmod:s,lchown:l,link:E,lstat:c,mkdir:g,mkdtemp:h,open:Q,readdir:u,readFile:C,readlink:I,realpath:B,rename:d,rmdir:f,stat:p,symlink:y,truncate:m,unlink:w,utimes:R,writeFile:D}=rv.promises,b="rm"in rv.promises?rv.promises.rm:(0,rO.promisify)(rv.unlink);}),e3("8nJMC",function(A,e){function t(A,e,t){return!!(A.isSymbolicLink()||A.isFile())&&function(A,e){var t=void 0!==e.pathExt?e.pathExt:process.env.PATHEXT;if(!t||-1!==(t=t.split(";")).indexOf(""))return!0;for(var r=0;r{for(let[e,t]of h)A=A.split(`${e}*`).join(`${e}{0,${t}}`).split(`${e}+`).join(`${e}{1,${t}}`);return A;},u=(A,e,t)=>{let r=Q(e),n=c++;o(A,n,e),E[A]=n,l[n]=e,s[n]=new RegExp(e,t?"g":void 0),a[n]=new RegExp(r,t?"g":void 0);};u("NUMERICIDENTIFIER","0|[1-9]\\d*"),u("NUMERICIDENTIFIERLOOSE","\\d+"),u("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${g}*`),u("MAINVERSION",`(${l[E.NUMERICIDENTIFIER]})\\.(${l[E.NUMERICIDENTIFIER]})\\.(${l[E.NUMERICIDENTIFIER]})`),u("MAINVERSIONLOOSE",`(${l[E.NUMERICIDENTIFIERLOOSE]})\\.(${l[E.NUMERICIDENTIFIERLOOSE]})\\.(${l[E.NUMERICIDENTIFIERLOOSE]})`),u("PRERELEASEIDENTIFIER",`(?:${l[E.NUMERICIDENTIFIER]}|${l[E.NONNUMERICIDENTIFIER]})`),u("PRERELEASEIDENTIFIERLOOSE",`(?:${l[E.NUMERICIDENTIFIERLOOSE]}|${l[E.NONNUMERICIDENTIFIER]})`),u("PRERELEASE",`(?:-(${l[E.PRERELEASEIDENTIFIER]}(?:\\.${l[E.PRERELEASEIDENTIFIER]})*))`),u("PRERELEASELOOSE",`(?:-?(${l[E.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[E.PRERELEASEIDENTIFIERLOOSE]})*))`),u("BUILDIDENTIFIER",`${g}+`),u("BUILD",`(?:\\+(${l[E.BUILDIDENTIFIER]}(?:\\.${l[E.BUILDIDENTIFIER]})*))`),u("FULLPLAIN",`v?${l[E.MAINVERSION]}${l[E.PRERELEASE]}?${l[E.BUILD]}?`),u("FULL",`^${l[E.FULLPLAIN]}$`),u("LOOSEPLAIN",`[v=\\s]*${l[E.MAINVERSIONLOOSE]}${l[E.PRERELEASELOOSE]}?${l[E.BUILD]}?`),u("LOOSE",`^${l[E.LOOSEPLAIN]}$`),u("GTLT","((?:<|>)?=?)"),u("XRANGEIDENTIFIERLOOSE",`${l[E.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),u("XRANGEIDENTIFIER",`${l[E.NUMERICIDENTIFIER]}|x|X|\\*`),u("XRANGEPLAIN",`[v=\\s]*(${l[E.XRANGEIDENTIFIER]})(?:\\.(${l[E.XRANGEIDENTIFIER]})(?:\\.(${l[E.XRANGEIDENTIFIER]})(?:${l[E.PRERELEASE]})?${l[E.BUILD]}?)?)?`),u("XRANGEPLAINLOOSE",`[v=\\s]*(${l[E.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[E.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[E.XRANGEIDENTIFIERLOOSE]})(?:${l[E.PRERELEASELOOSE]})?${l[E.BUILD]}?)?)?`),u("XRANGE",`^${l[E.GTLT]}\\s*${l[E.XRANGEPLAIN]}$`),u("XRANGELOOSE",`^${l[E.GTLT]}\\s*${l[E.XRANGEPLAINLOOSE]}$`),u("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),u("COERCE",`${l[E.COERCEPLAIN]}(?:$|[^\\d])`),u("COERCEFULL",l[E.COERCEPLAIN]+`(?:${l[E.PRERELEASE]})?`+`(?:${l[E.BUILD]})?`+"(?:$|[^\\d])"),u("COERCERTL",l[E.COERCE],!0),u("COERCERTLFULL",l[E.COERCEFULL],!0),u("LONETILDE","(?:~>?)"),u("TILDETRIM",`(\\s*)${l[E.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",u("TILDE",`^${l[E.LONETILDE]}${l[E.XRANGEPLAIN]}$`),u("TILDELOOSE",`^${l[E.LONETILDE]}${l[E.XRANGEPLAINLOOSE]}$`),u("LONECARET","(?:\\^)"),u("CARETTRIM",`(\\s*)${l[E.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",u("CARET",`^${l[E.LONECARET]}${l[E.XRANGEPLAIN]}$`),u("CARETLOOSE",`^${l[E.LONECARET]}${l[E.XRANGEPLAINLOOSE]}$`),u("COMPARATORLOOSE",`^${l[E.GTLT]}\\s*(${l[E.LOOSEPLAIN]})$|^$`),u("COMPARATOR",`^${l[E.GTLT]}\\s*(${l[E.FULLPLAIN]})$|^$`),u("COMPARATORTRIM",`(\\s*)${l[E.GTLT]}\\s*(${l[E.LOOSEPLAIN]}|${l[E.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",u("HYPHENRANGE",`^\\s*(${l[E.XRANGEPLAIN]})\\s+-\\s+(${l[E.XRANGEPLAIN]})\\s*$`),u("HYPHENRANGELOOSE",`^\\s*(${l[E.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[E.XRANGEPLAINLOOSE]})\\s*$`),u("STAR","(<|>)?=?\\s*\\*"),u("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),u("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$");}),e3("iXsaM",function(A,e){let t=Number.MAX_SAFE_INTEGER||9007199254740991;A.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};}),e3("jl9Uf",function(A,e){let t="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...A)=>console.error("SEMVER",...A):()=>{};A.exports=t;}),e3("8cXe9",function(A,e){var t=no("jl9Uf"),r=no("iXsaM"),n=r.MAX_LENGTH,i=r.MAX_SAFE_INTEGER,o=no("hhSwF"),s=o.safeRe,a=o.t,l=no("5v8m5"),E=no("dAM2Q").compareIdentifiers;class c{constructor(A,e){if(e=l(e),A instanceof c){if(!!e.loose===A.loose&&!!e.includePrerelease===A.includePrerelease)return A;A=A.version;}else if("string"!=typeof A)throw TypeError(`Invalid version. Must be a string. Got type "${typeof A}".`);if(A.length>n)throw TypeError(`version is longer than ${n} characters`);t("SemVer",A,e),this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease;let r=A.trim().match(e.loose?s[a.LOOSE]:s[a.FULL]);if(!r)throw TypeError("Invalid Version: "+A);if(this.raw=A,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>i||this.major<0)throw TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(A=>{if(/^[0-9]+$/.test(A)){let e=+A;if(e>=0&&e=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(e===this.prerelease.join(".")&&!1===t)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(A);}}if(e){let r=[e,A];!1===t&&(r=[e]),0===E(this.prerelease[0],e)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r;}break;}default:throw Error("invalid increment argument: "+A);}return this.raw=this.format(),this.build.length&&(this.raw+="+"+this.build.join(".")),this;}}A.exports=c;}),e3("5v8m5",function(A,e){let t=Object.freeze({loose:!0}),r=Object.freeze({});A.exports=A=>A?"object"!=typeof A?t:A:r;}),e3("dAM2Q",function(A,e){let t=(A,e)=>{let t=/^[0-9]+$/.test(A),r=/^[0-9]+$/.test(e);return t&&r&&(A=+A,e=+e),A===e?0:t&&!r?-1:r&&!t?1:e>A?-1:1;};A.exports={compareIdentifiers:t,rcompareIdentifiers:(A,e)=>t(e,A)};}),e3("cHnHr",function(A,e){var t=no("8cXe9");A.exports=(A,e,r=!1)=>{if(A instanceof t)return A;try{return new t(A,e);}catch(A){if(!r)return null;throw A;}};}),e3("2kZmC",function(A,e){var t=no("cHnHr");A.exports=(A,e)=>{let r=t(A,e);return r?r.version:null;};}),e3("3Ixw1",function(A,e){var t=no("cHnHr");A.exports=(A,e)=>{let r=t(A.trim().replace(/^[=v]+/,""),e);return r?r.version:null;};}),e3("5r5vN",function(A,e){var t=no("8cXe9");A.exports=(A,e,r,n,i)=>{"string"==typeof r&&(i=n,n=r,r=void 0);try{return new t(A instanceof t?A.version:A,r).inc(e,n,i).version;}catch(A){return null;}};}),e3("bDrwm",function(A,e){var t=no("cHnHr");A.exports=(A,e)=>{let r=t(A,null,!0),n=t(e,null,!0),i=r.compare(n);if(0===i)return null;let o=i>0,s=o?r:n,a=o?n:r,l=!!s.prerelease.length;if(a.prerelease.length&&!l)return a.patch||a.minor?s.patch?"patch":s.minor?"minor":"major":"major";let E=l?"pre":"";return r.major!==n.major?E+"major":r.minor!==n.minor?E+"minor":r.patch!==n.patch?E+"patch":"prerelease";};}),e3("lORAA",function(A,e){var t=no("8cXe9");A.exports=(A,e)=>new t(A,e).major;}),e3("2Lh6z",function(A,e){var t=no("8cXe9");A.exports=(A,e)=>new t(A,e).minor;}),e3("73KaH",function(A,e){var t=no("8cXe9");A.exports=(A,e)=>new t(A,e).patch;}),e3("j5Xr5",function(A,e){var t=no("cHnHr");A.exports=(A,e)=>{let r=t(A,e);return r&&r.prerelease.length?r.prerelease:null;};}),e3("jDqfd",function(A,e){var t=no("8cXe9");A.exports=(A,e,r)=>new t(A,r).compare(new t(e,r));}),e3("2QKGl",function(A,e){var t=no("jDqfd");A.exports=(A,e,r)=>t(e,A,r);}),e3("3puHo",function(A,e){var t=no("jDqfd");A.exports=(A,e)=>t(A,e,!0);}),e3("7qrQi",function(A,e){var t=no("8cXe9");A.exports=(A,e,r)=>{let n=new t(A,r),i=new t(e,r);return n.compare(i)||n.compareBuild(i);};}),e3("hZ1Xd",function(A,e){var t=no("7qrQi");A.exports=(A,e)=>A.sort((A,r)=>t(A,r,e));}),e3("3YOIj",function(A,e){var t=no("7qrQi");A.exports=(A,e)=>A.sort((A,r)=>t(r,A,e));}),e3("cOpcP",function(A,e){var t=no("jDqfd");A.exports=(A,e,r)=>t(A,e,r)>0;}),e3("58P10",function(A,e){var t=no("jDqfd");A.exports=(A,e,r)=>0>t(A,e,r);}),e3("lTmeS",function(A,e){var t=no("jDqfd");A.exports=(A,e,r)=>0===t(A,e,r);}),e3("jzqBf",function(A,e){var t=no("jDqfd");A.exports=(A,e,r)=>0!==t(A,e,r);}),e3("3XWvL",function(A,e){var t=no("jDqfd");A.exports=(A,e,r)=>t(A,e,r)>=0;}),e3("hlfY9",function(A,e){var t=no("jDqfd");A.exports=(A,e,r)=>0>=t(A,e,r);}),e3("84iFB",function(A,e){var t=no("lTmeS"),r=no("jzqBf"),n=no("cOpcP"),i=no("3XWvL"),o=no("58P10"),s=no("hlfY9");A.exports=(A,e,a,l)=>{switch(e){case"===":return"object"==typeof A&&(A=A.version),"object"==typeof a&&(a=a.version),A===a;case"!==":return"object"==typeof A&&(A=A.version),"object"==typeof a&&(a=a.version),A!==a;case"":case"=":case"==":return t(A,a,l);case"!=":return r(A,a,l);case">":return n(A,a,l);case">=":return i(A,a,l);case"<":return o(A,a,l);case"<=":return s(A,a,l);default:throw TypeError("Invalid operator: "+e);}};}),e3("6v1Be",function(A,e){var t=no("8cXe9"),r=no("cHnHr"),n=no("hhSwF"),i=n.safeRe,o=n.t;A.exports=(A,e)=>{if(A instanceof t)return A;if("number"==typeof A&&(A+=""),"string"!=typeof A)return null;let n=null;if((e=e||{}).rtl){let t;let r=e.includePrerelease?i[o.COERCERTLFULL]:i[o.COERCERTL];for(;(t=r.exec(A))&&(!n||n.index+n[0].length!==A.length);)n&&t.index+t[0].length===n.index+n[0].length||(n=t),r.lastIndex=t.index+t[1].length+t[2].length;r.lastIndex=-1;}else n=A.match(e.includePrerelease?i[o.COERCEFULL]:i[o.COERCE]);if(null===n)return null;let s=n[2],a=n[3]||"0",l=n[4]||"0",E=e.includePrerelease&&n[5]?"-"+n[5]:"",c=e.includePrerelease&&n[6]?"+"+n[6]:"";return r(`${s}.${a}.${l}${E}${c}`,e);};}),e3("1bxhC",function(A,e){let t=Symbol();class r{static get ANY(){return t;}constructor(A,e){if(e=n(e),A instanceof r){if(!!e.loose===A.loose)return A;A=A.value;}l("comparator",A=A.trim().split(/\s+/).join(" "),e),this.options=e,this.loose=!!e.loose,this.parse(A),this.semver===t?this.value="":this.value=this.operator+this.semver.version,l("comp",this);}parse(A){let e=this.options.loose?o[s.COMPARATORLOOSE]:o[s.COMPARATOR],r=A.match(e);if(!r)throw TypeError("Invalid comparator: "+A);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new E(r[2],this.options.loose):this.semver=t;}toString(){return this.value;}test(A){if(l("Comparator.test",A,this.options.loose),this.semver===t||A===t)return!0;if("string"==typeof A)try{A=new E(A,this.options);}catch(A){return!1;}return a(A,this.operator,this.semver,this.options);}intersects(A,e){if(!(A instanceof r))throw TypeError("a Comparator is required");return""===this.operator?""===this.value||new c(A.value,e).test(this.value):""===A.operator?""===A.value||new c(this.value,e).test(A.semver):!((e=n(e)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===A.value)||!e.includePrerelease&&(this.value.startsWith("<0.0.0")||A.value.startsWith("<0.0.0")))&&!!(this.operator.startsWith(">")&&A.operator.startsWith(">")||this.operator.startsWith("<")&&A.operator.startsWith("<")||this.semver.version===A.semver.version&&this.operator.includes("=")&&A.operator.includes("=")||a(this.semver,"<",A.semver,e)&&this.operator.startsWith(">")&&A.operator.startsWith("<")||a(this.semver,">",A.semver,e)&&this.operator.startsWith("<")&&A.operator.startsWith(">"));}}A.exports=r;var n=no("5v8m5"),i=no("hhSwF"),o=i.safeRe,s=i.t,a=no("84iFB"),l=no("jl9Uf"),E=no("8cXe9"),c=no("bswWF");}),e3("bswWF",function(A,e){class t{constructor(A,e){if(e=n(e),A instanceof t){if(!!e.loose===A.loose&&!!e.includePrerelease===A.includePrerelease)return A;return new t(A.raw,e);}if(A instanceof i)return this.raw=A.value,this.set=[[A]],this.format(),this;if(this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease,this.raw=A.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(A=>this.parseRange(A.trim())).filter(A=>A.length),!this.set.length)throw TypeError("Invalid SemVer Range: "+this.raw);if(this.set.length>1){let A=this.set[0];if(this.set=this.set.filter(A=>!I(A[0])),0===this.set.length)this.set=[A];else if(this.set.length>1){for(let A of this.set)if(1===A.length&&B(A[0])){this.set=[A];break;}}}this.format();}format(){return this.range=this.set.map(A=>A.join(" ").trim()).join("||").trim(),this.range;}toString(){return this.range;}parseRange(A){let e=((this.options.includePrerelease&&u)|(this.options.loose&&C))+":"+A,t=r.get(e);if(t)return t;let n=this.options.loose,s=n?l[E.HYPHENRANGELOOSE]:l[E.HYPHENRANGE];o("hyphen replace",A=A.replace(s,S(this.options.includePrerelease))),o("comparator trim",A=A.replace(l[E.COMPARATORTRIM],c)),o("tilde trim",A=A.replace(l[E.TILDETRIM],g)),o("caret trim",A=A.replace(l[E.CARETTRIM],h));let a=A.split(" ").map(A=>f(A,this.options)).join(" ").split(/\s+/).map(A=>N(A,this.options));n&&(a=a.filter(A=>(o("loose invalid filter",A,this.options),!!A.match(l[E.COMPARATORLOOSE])))),o("range list",a);let Q=new Map();for(let A of a.map(A=>new i(A,this.options))){if(I(A))return[A];Q.set(A.value,A);}Q.size>1&&Q.has("")&&Q.delete("");let B=[...Q.values()];return r.set(e,B),B;}intersects(A,e){if(!(A instanceof t))throw TypeError("a Range is required");return this.set.some(t=>d(t,e)&&A.set.some(A=>d(A,e)&&t.every(t=>A.every(A=>t.intersects(A,e)))));}test(A){if(!A)return!1;if("string"==typeof A)try{A=new s(A,this.options);}catch(A){return!1;}for(let e=0;e"<0.0.0-0"===A.value,B=A=>""===A.value,d=(A,e)=>{let t=!0,r=A.slice(),n=r.pop();for(;t&&r.length;)t=r.every(A=>n.intersects(A,e)),n=r.pop();return t;},f=(A,e)=>(o("comp",A,e),o("caret",A=w(A,e)),o("tildes",A=y(A,e)),o("xrange",A=D(A,e)),o("stars",A=k(A,e)),A),p=A=>!A||"x"===A.toLowerCase()||"*"===A,y=(A,e)=>A.trim().split(/\s+/).map(A=>m(A,e)).join(" "),m=(A,e)=>{let t=e.loose?l[E.TILDELOOSE]:l[E.TILDE];return A.replace(t,(e,t,r,n,i)=>{let s;return o("tilde",A,e,t,r,n,i),p(t)?s="":p(r)?s=`>=${t}.0.0 <${+t+1}.0.0-0`:p(n)?s=`>=${t}.${r}.0 <${t}.${+r+1}.0-0`:i?(o("replaceTilde pr",i),s=`>=${t}.${r}.${n}-${i} <${t}.${+r+1}.0-0`):s=`>=${t}.${r}.${n} <${t}.${+r+1}.0-0`,o("tilde return",s),s;});},w=(A,e)=>A.trim().split(/\s+/).map(A=>R(A,e)).join(" "),R=(A,e)=>{o("caret",A,e);let t=e.loose?l[E.CARETLOOSE]:l[E.CARET],r=e.includePrerelease?"-0":"";return A.replace(t,(e,t,n,i,s)=>{let a;return o("caret",A,e,t,n,i,s),p(t)?a="":p(n)?a=`>=${t}.0.0${r} <${+t+1}.0.0-0`:p(i)?a="0"===t?`>=${t}.${n}.0${r} <${t}.${+n+1}.0-0`:`>=${t}.${n}.0${r} <${+t+1}.0.0-0`:s?(o("replaceCaret pr",s),a="0"===t?"0"===n?`>=${t}.${n}.${i}-${s} <${t}.${n}.${+i+1}-0`:`>=${t}.${n}.${i}-${s} <${t}.${+n+1}.0-0`:`>=${t}.${n}.${i}-${s} <${+t+1}.0.0-0`):(o("no pr"),a="0"===t?"0"===n?`>=${t}.${n}.${i}${r} <${t}.${n}.${+i+1}-0`:`>=${t}.${n}.${i}${r} <${t}.${+n+1}.0-0`:`>=${t}.${n}.${i} <${+t+1}.0.0-0`),o("caret return",a),a;});},D=(A,e)=>(o("replaceXRanges",A,e),A.split(/\s+/).map(A=>b(A,e)).join(" ")),b=(A,e)=>{A=A.trim();let t=e.loose?l[E.XRANGELOOSE]:l[E.XRANGE];return A.replace(t,(t,r,n,i,s,a)=>{o("xRange",A,t,r,n,i,s,a);let l=p(n),E=l||p(i),c=E||p(s);return"="===r&&c&&(r=""),a=e.includePrerelease?"-0":"",l?t=">"===r||"<"===r?"<0.0.0-0":"*":r&&c?(E&&(i=0),s=0,">"===r?(r=">=",E?(n=+n+1,i=0):i=+i+1,s=0):"<="===r&&(r="<",E?n=+n+1:i=+i+1),"<"===r&&(a="-0"),t=`${r+n}.${i}.${s}${a}`):E?t=`>=${n}.0.0${a} <${+n+1}.0.0-0`:c&&(t=`>=${n}.${i}.0${a} <${n}.${+i+1}.0-0`),o("xRange return",t),t;});},k=(A,e)=>(o("replaceStars",A,e),A.trim().replace(l[E.STAR],"")),N=(A,e)=>(o("replaceGTE0",A,e),A.trim().replace(l[e.includePrerelease?E.GTE0PRE:E.GTE0],"")),S=A=>(e,t,r,n,i,o,s,a,l,E,c,g,h)=>(t=p(r)?"":p(n)?`>=${r}.0.0${A?"-0":""}`:p(i)?`>=${r}.${n}.0${A?"-0":""}`:o?">="+t:`>=${t}${A?"-0":""}`,a=p(l)?"":p(E)?`<${+l+1}.0.0-0`:p(c)?`<${l}.${+E+1}.0-0`:g?`<=${l}.${E}.${c}-${g}`:A?`<${l}.${E}.${+c+1}-0`:"<="+a,`${t} ${a}`.trim()),F=(A,e,t)=>{for(let t=0;t0){let r=A[t].semver;if(r.major===e.major&&r.minor===e.minor&&r.patch===e.patch)return!0;}return!1;}return!0;};}),e3("31A6g",function(A,e){var t=no("i08Cw");let r=Symbol(),n=Symbol(),i=Symbol(),o=Symbol(),s=Symbol(),a=Symbol(),l=Symbol(),E=Symbol(),c=Symbol(),g=Symbol(),h=()=>1,Q=(A,e,t)=>{let r=A[c].get(e);if(r){let e=r.value;if(u(A,e)){if(I(A,r),!A[o])return;}else t&&(A[g]&&(r.value.now=Date.now()),A[E].unshiftNode(r));return e.value;}},u=(A,e)=>{if(!e||!e.maxAge&&!A[s])return!1;let t=Date.now()-e.now;return e.maxAge?t>e.maxAge:A[s]&&t>A[s];},C=A=>{if(A[n]>A[r])for(let e=A[E].tail;A[n]>A[r]&&null!==e;){let t=e.prev;I(A,e),e=t;}},I=(A,e)=>{if(e){let t=e.value;A[a]&&A[a](t.key,t.value),A[n]-=t.length,A[c].delete(t.key),A[E].removeNode(e);}};class B{constructor(A,e,t,r,n){this.key=A,this.value=e,this.length=t,this.now=r,this.maxAge=n||0;}}let d=(A,e,t,r)=>{let n=t.value;u(A,n)&&(I(A,t),A[o]||(n=void 0)),n&&e.call(r,n.value,n.key,A);};A.exports=class{constructor(A){if("number"==typeof A&&(A={max:A}),A||(A={}),A.max&&("number"!=typeof A.max||A.max<0))throw TypeError("max must be a non-negative number");this[r]=A.max||1/0;let e=A.length||h;if(this[i]="function"!=typeof e?h:e,this[o]=A.stale||!1,A.maxAge&&"number"!=typeof A.maxAge)throw TypeError("maxAge must be a number");this[s]=A.maxAge||0,this[a]=A.dispose,this[l]=A.noDisposeOnSet||!1,this[g]=A.updateAgeOnGet||!1,this.reset();}set max(A){if("number"!=typeof A||A<0)throw TypeError("max must be a non-negative number");this[r]=A||1/0,C(this);}get max(){return this[r];}set allowStale(A){this[o]=!!A;}get allowStale(){return this[o];}set maxAge(A){if("number"!=typeof A)throw TypeError("maxAge must be a non-negative number");this[s]=A,C(this);}get maxAge(){return this[s];}set lengthCalculator(A){"function"!=typeof A&&(A=h),A!==this[i]&&(this[i]=A,this[n]=0,this[E].forEach(A=>{A.length=this[i](A.value,A.key),this[n]+=A.length;})),C(this);}get lengthCalculator(){return this[i];}get length(){return this[n];}get itemCount(){return this[E].length;}rforEach(A,e){e=e||this;for(let t=this[E].tail;null!==t;){let r=t.prev;d(this,A,t,e),t=r;}}forEach(A,e){e=e||this;for(let t=this[E].head;null!==t;){let r=t.next;d(this,A,t,e),t=r;}}keys(){return this[E].toArray().map(A=>A.key);}values(){return this[E].toArray().map(A=>A.value);}reset(){this[a]&&this[E]&&this[E].length&&this[E].forEach(A=>this[a](A.key,A.value)),this[c]=new Map(),this[E]=new t(),this[n]=0;}dump(){return this[E].map(A=>!u(this,A)&&{k:A.key,v:A.value,e:A.now+(A.maxAge||0)}).toArray().filter(A=>A);}dumpLru(){return this[E];}set(A,e,t){if((t=t||this[s])&&"number"!=typeof t)throw TypeError("maxAge must be a number");let o=t?Date.now():0,g=this[i](e,A);if(this[c].has(A)){if(g>this[r])return I(this,this[c].get(A)),!1;let i=this[c].get(A).value;return this[a]&&!this[l]&&this[a](A,i.value),i.now=o,i.maxAge=t,i.value=e,this[n]+=g-i.length,i.length=g,this.get(A),C(this),!0;}let h=new B(A,e,g,o,t);return h.length>this[r]?(this[a]&&this[a](A,e),!1):(this[n]+=h.length,this[E].unshift(h),this[c].set(A,this[E].head),C(this),!0);}has(A){return!!this[c].has(A)&&!u(this,this[c].get(A).value);}get(A){return Q(this,A,!0);}peek(A){return Q(this,A,!1);}pop(){let A=this[E].tail;return A?(I(this,A),A.value):null;}del(A){I(this,this[c].get(A));}load(A){this.reset();let e=Date.now();for(let t=A.length-1;t>=0;t--){let r=A[t],n=r.e||0;if(0===n)this.set(r.k,r.v);else{let A=n-e;A>0&&this.set(r.k,r.v,A);}}}prune(){this[c].forEach((A,e)=>Q(this,e,!1));}};}),e3("i08Cw",function(A,e){function t(A){var e=this;if(e instanceof t||(e=new t()),e.tail=null,e.head=null,e.length=0,A&&"function"==typeof A.forEach)A.forEach(function(A){e.push(A);});else if(arguments.length>0)for(var r=0,n=arguments.length;n>r;r++)e.push(arguments[r]);return e;}function r(A,e,t,n){if(!(this instanceof r))return new r(A,e,t,n);this.list=n,this.value=A,e?(e.next=this,this.prev=e):this.prev=null,t?(t.prev=this,this.next=t):this.next=null;}A.exports=t,t.Node=r,t.create=t,t.prototype.removeNode=function(A){if(A.list!==this)throw Error("removing node which does not belong to this list");var e=A.next,t=A.prev;return e&&(e.prev=t),t&&(t.next=e),A===this.head&&(this.head=e),A===this.tail&&(this.tail=t),A.list.length--,A.next=null,A.prev=null,A.list=null,e;},t.prototype.unshiftNode=function(A){if(A!==this.head){A.list&&A.list.removeNode(A);var e=this.head;A.list=this,A.next=e,e&&(e.prev=A),this.head=A,this.tail||(this.tail=A),this.length++;}},t.prototype.pushNode=function(A){if(A!==this.tail){A.list&&A.list.removeNode(A);var e=this.tail;A.list=this,A.prev=e,e&&(e.next=A),this.tail=A,this.head||(this.head=A),this.length++;}},t.prototype.push=function(){for(var A,e=0,t=arguments.length;t>e;e++)A=arguments[e],this.tail=new r(A,this.tail,null,this),this.head||(this.head=this.tail),this.length++;return this.length;},t.prototype.unshift=function(){for(var A,e=0,t=arguments.length;t>e;e++)A=arguments[e],this.head=new r(A,null,this.head,this),this.tail||(this.tail=this.head),this.length++;return this.length;},t.prototype.pop=function(){if(this.tail){var A=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,A;}},t.prototype.shift=function(){if(this.head){var A=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,A;}},t.prototype.forEach=function(A,e){e=e||this;for(var t=this.head,r=0;null!==t;r++)A.call(e,t.value,r,this),t=t.next;},t.prototype.forEachReverse=function(A,e){e=e||this;for(var t=this.tail,r=this.length-1;null!==t;r--)A.call(e,t.value,r,this),t=t.prev;},t.prototype.get=function(A){for(var e=0,t=this.head;null!==t&&A>e;e++)t=t.next;if(e===A&&null!==t)return t.value;},t.prototype.getReverse=function(A){for(var e=0,t=this.tail;null!==t&&A>e;e++)t=t.prev;if(e===A&&null!==t)return t.value;},t.prototype.map=function(A,e){e=e||this;for(var r=new t(),n=this.head;null!==n;)r.push(A.call(e,n.value,this)),n=n.next;return r;},t.prototype.mapReverse=function(A,e){e=e||this;for(var r=new t(),n=this.tail;null!==n;)r.push(A.call(e,n.value,this)),n=n.prev;return r;},t.prototype.reduce=function(A,e){var t,r=this.head;if(arguments.length>1)t=e;else if(this.head)r=this.head.next,t=this.head.value;else throw TypeError("Reduce of empty list with no initial value");for(var n=0;null!==r;n++)t=A(t,r.value,n),r=r.next;return t;},t.prototype.reduceReverse=function(A,e){var t,r=this.tail;if(arguments.length>1)t=e;else if(this.tail)r=this.tail.prev,t=this.tail.value;else throw TypeError("Reduce of empty list with no initial value");for(var n=this.length-1;null!==r;n--)t=A(t,r.value,n),r=r.prev;return t;},t.prototype.toArray=function(){for(var A=Array(this.length),e=0,t=this.head;null!==t;e++)A[e]=t.value,t=t.next;return A;},t.prototype.toArrayReverse=function(){for(var A=Array(this.length),e=0,t=this.tail;null!==t;e++)A[e]=t.value,t=t.prev;return A;},t.prototype.slice=function(A,e){(e=e||this.length)<0&&(e+=this.length),(A=A||0)<0&&(A+=this.length);var r=new t();if(ethis.length&&(e=this.length);for(var n=0,i=this.head;null!==i&&nn;n++,i=i.next)r.push(i.value);return r;},t.prototype.sliceReverse=function(A,e){(e=e||this.length)<0&&(e+=this.length),(A=A||0)<0&&(A+=this.length);var r=new t();if(ethis.length&&(e=this.length);for(var n=this.length,i=this.tail;null!==i&&n>e;n--)i=i.prev;for(;null!==i&&n>A;n--,i=i.prev)r.push(i.value);return r;},t.prototype.splice=function(A,e,...t){A>this.length&&(A=this.length-1),A<0&&(A=this.length+A);for(var n=0,i=this.head;null!==i&&A>n;n++)i=i.next;for(var o=[],n=0;i&&n{try{e=new t(e,r);}catch(A){return!1;}return e.test(A);};}),e3("4zfp3",function(A,e){var t=no("bswWF");A.exports=(A,e)=>new t(A,e).set.map(A=>A.map(A=>A.value).join(" ").trim().split(" "));}),e3("ga5uZ",function(A,e){var t=no("8cXe9"),r=no("bswWF");A.exports=(A,e,n)=>{let i=null,o=null,s=null;try{s=new r(e,n);}catch(A){return null;}return A.forEach(A=>{s.test(A)&&(!i||-1===o.compare(A))&&(o=new t(i=A,n));}),i;};}),e3("lPGVL",function(A,e){var t=no("8cXe9"),r=no("bswWF");A.exports=(A,e,n)=>{let i=null,o=null,s=null;try{s=new r(e,n);}catch(A){return null;}return A.forEach(A=>{s.test(A)&&(!i||1===o.compare(A))&&(o=new t(i=A,n));}),i;};}),e3("1I8AA",function(A,e){var t=no("8cXe9"),r=no("bswWF"),n=no("cOpcP");A.exports=(A,e)=>{A=new r(A,e);let i=new t("0.0.0");if(A.test(i)||(i=new t("0.0.0-0"),A.test(i)))return i;i=null;for(let e=0;e{let e=new t(A.semver.version);switch(A.operator){case">":0===e.prerelease.length?e.patch++:e.prerelease.push(0),e.raw=e.format();case"":case">=":(!o||n(e,o))&&(o=e);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+A.operator);}}),o&&(!i||n(i,o))&&(i=o);}return i&&A.test(i)?i:null;};}),e3("dBtft",function(A,e){var t=no("bswWF");A.exports=(A,e)=>{try{return new t(A,e).range||"*";}catch(A){return null;}};}),e3("83Sp2",function(A,e){var t=no("8cXe9"),r=no("1bxhC");let{ANY:n}=r;var i=no("bswWF"),o=no("42oIR"),s=no("cOpcP"),a=no("58P10"),l=no("hlfY9"),E=no("3XWvL");A.exports=(A,e,c,g)=>{let h,Q,u,C,I;switch(A=new t(A,g),e=new i(e,g),c){case">":h=s,Q=l,u=a,C=">",I=">=";break;case"<":h=a,Q=E,u=s,C="<",I="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"');}if(o(A,e,g))return!1;for(let t=0;t{A.semver===n&&(A=new r(">=0.0.0")),o=o||A,s=s||A,h(A.semver,o.semver,g)?o=A:u(A.semver,s.semver,g)&&(s=A);}),o.operator===C||o.operator===I||(!s.operator||s.operator===C)&&Q(A,s.semver)||s.operator===I&&u(A,s.semver))return!1;}return!0;};}),e3("eK4my",function(A,e){var t=no("83Sp2");A.exports=(A,e,r)=>t(A,e,">",r);}),e3("eNXBI",function(A,e){var t=no("83Sp2");A.exports=(A,e,r)=>t(A,e,"<",r);}),e3("kHzUo",function(A,e){var t=no("bswWF");A.exports=(A,e,r)=>(A=new t(A,r),e=new t(e,r),A.intersects(e,r));}),e3("1x2XZ",function(A,e){var t=no("42oIR"),r=no("jDqfd");A.exports=(A,e,n)=>{let i=[],o=null,s=null,a=A.sort((A,e)=>r(A,e,n));for(let A of a)t(A,e,n)?(s=A,o||(o=A)):(s&&i.push([o,s]),s=null,o=null);o&&i.push([o,null]);let l=[];for(let[A,e]of i)A===e?l.push(A):e||A!==a[0]?e?A===a[0]?l.push("<="+e):l.push(`${A} - ${e}`):l.push(">="+A):l.push("*");let E=l.join(" || "),c="string"==typeof e.raw?e.raw:e+"";return E.length=0.0.0-0")],a=[new r(">=0.0.0")],l=(A,e,t)=>{let r,l,g,h,Q,u,C;if(A===e)return!0;if(1===A.length&&A[0].semver===n){if(1===e.length&&e[0].semver===n)return!0;A=t.includePrerelease?s:a;}if(1===e.length&&e[0].semver===n){if(t.includePrerelease)return!0;e=a;}let I=new Set();for(let e of A)">"===e.operator||">="===e.operator?r=E(r,e,t):"<"===e.operator||"<="===e.operator?l=c(l,e,t):I.add(e.semver);if(I.size>1||r&&l&&((g=o(r.semver,l.semver,t))>0||0===g&&(">="!==r.operator||"<="!==l.operator)))return null;for(let A of I){if(r&&!i(A,r+"",t)||l&&!i(A,l+"",t))return null;for(let r of e)if(!i(A,r+"",t))return!1;return!0;}let B=!!l&&!t.includePrerelease&&!!l.semver.prerelease.length&&l.semver,d=!!r&&!t.includePrerelease&&!!r.semver.prerelease.length&&r.semver;for(let A of(B&&1===B.prerelease.length&&"<"===l.operator&&0===B.prerelease[0]&&(B=!1),e)){if(C=C||">"===A.operator||">="===A.operator,u=u||"<"===A.operator||"<="===A.operator,r){if(d&&A.semver.prerelease&&A.semver.prerelease.length&&A.semver.major===d.major&&A.semver.minor===d.minor&&A.semver.patch===d.patch&&(d=!1),">"===A.operator||">="===A.operator){if((h=E(r,A,t))===A&&h!==r)return!1;}else if(">="===r.operator&&!i(r.semver,A+"",t))return!1;}if(l){if(B&&A.semver.prerelease&&A.semver.prerelease.length&&A.semver.major===B.major&&A.semver.minor===B.minor&&A.semver.patch===B.patch&&(B=!1),"<"===A.operator||"<="===A.operator){if((Q=c(l,A,t))===A&&Q!==l)return!1;}else if("<="===l.operator&&!i(l.semver,A+"",t))return!1;}if(!A.operator&&(l||r)&&0!==g)return!1;}return(!r||!u||!!l||0===g)&&(!l||!C||!!r||0===g)&&!d&&!B;},E=(A,e,t)=>{if(!A)return e;let r=o(A.semver,e.semver,t);return r>0?A:r<0?e:">"===e.operator&&">="===A.operator?e:A;},c=(A,e,t)=>{if(!A)return e;let r=o(A.semver,e.semver,t);return r<0?A:r>0?e:"<"===e.operator&&"<="===A.operator?e:A;};A.exports=(A,e,r={})=>{if(A===e)return!0;A=new t(A,r),e=new t(e,r);let n=!1;e:for(let t of A.set){for(let A of e.set){let e=l(t,A,r);if(n=n||null!==e,e)continue e;}if(n)return!1;}return!0;};}),e3("6t4SD",function(A,e){async function t(A){try{return await(0,r4.promises).access(A),!0;}catch{return!1;}}a(A.exports,"pathExists",()=>t);}),e3("8CJZb",function(A,e){A.exports=function(A){if("string"!=typeof A)throw TypeError("Expected a string");return A.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");};}),e3("eAXk4",function(A,e){var t,r,n,i,o,s,E,c,g,h,Q,u,C;function I(A,e){return Object.keys(e).forEach(t=>{"default"===t||"__esModule"===t||A.hasOwnProperty(t)||Object.defineProperty(A,t,{enumerable:!0,get:()=>e[t]});}),A;}function B(A,e,t,r){Object.defineProperty(A,e,{get:t,set:r,enumerable:!0,configurable:!0});}function d(A,e=!0){return e?(0,rF.basename)(A):(0,rF.basename)(A,(0,rF.extname)(A));}function f(A){return(0,rF.normalize)(A).replace(RegExp((0,t.default)(rF.sep)+"$"),"");}function p(A,e=".exe",t=""){return"win32"===process.platform?`${A}${e}`:`${A}${t}`;}function y(A,e){let t=(0,rF.extname)(A),r=`${e}${(0,rF.basename)(A,t)}${t}`;return(0,rF.join)((0,rF.dirname)(A),r);}function m(A,e){let t=(0,rF.extname)(A),r=`${(0,rF.basename)(A,t)}${e}${t}`;return(0,rF.join)((0,rF.dirname)(A),r);}function w(A,e=".cmd",t=".sh"){return"win32"===process.platform?`${A}${e}`:`${A}${t}`;}function R(A){return"win32"===process.platform?A:"./"+A;}function D(A){let e=(0,rF.extname)(A).length;return A.slice(0,-e);}function b(A,e){return l(r)(A,e);}function k(A,e){let t=(0,rF.relative)(e,A);return!(!t||".."===t||t.startsWith(".."+rF.sep)||t===(0,rF.resolve)(A));}a(A.exports,"addExeExt",()=>p),a(A.exports,"addShExt",()=>w),a(A.exports,"addShRelativePrefix",()=>R),a(A.exports,"dirname",()=>rF.dirname),a(A.exports,"join",()=>rF.join),t=no("f44Uw"),r=no("fBJE3"),n={},B(i={},"name",()=>d),B(o={},"normalizeTrim",()=>f),B(s={},"addExeExt",()=>p),B(E={},"addNamePrefix",()=>y),B(c={},"addNameSuffix",()=>m),B(g={},"addShExt",()=>w),B(h={},"addShRelativePrefix",()=>R),B(Q={},"removeExt",()=>D),B(u={},"replaceExt",()=>b),B(C={},"isPathInside",()=>k),I(n,i),I(n,o),I(n,s),I(n,E),I(n,c),I(n,g),I(n,h),I(n,Q),I(n,u),I(n,C);}),e3("f44Uw",function(A,e){function t(A){if("string"!=typeof A)throw TypeError("Expected a string");return A.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d");}a(A.exports,"default",()=>t);}),e3("fBJE3",function(A,e){A.exports=function(A,e){if("string"!=typeof A||0===A.length)return A;var t,r=rF.basename(A,rF.extname(A))+e,n=rF.join(rF.dirname(A),r);return(t=A.slice(0,2))==="."+rF.sep||"./"===t?"."+rF.sep+n:n;};}),e3("zdagz",function(A,e){var t,r,n,i;function o(A){return i(this,void 0,void 0,function*(){if(c.IS_WINDOWS&&/[*"<>|]/.test(A))throw Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield c.rm(A,{force:!0,maxRetries:3,recursive:!0,retryDelay:300});}catch(A){throw Error("File was unable to be removed "+A);}});}function s(A){return i(this,void 0,void 0,function*(){rY.ok(A,"a path argument must be provided"),yield c.mkdir(A,{recursive:!0});});}function a(A){return i(this,void 0,void 0,function*(){if(!A)throw Error("parameter 'tool' is required");let e=[];if(c.IS_WINDOWS&&process.env.PATHEXT)for(let A of process.env.PATHEXT.split(E.delimiter))A&&e.push(A);if(c.isRooted(A)){let t=yield c.tryGetExecutablePath(A,e);return t?[t]:[];}if(A.includes(E.sep))return[];let t=[];if(process.env.PATH)for(let A of process.env.PATH.split(E.delimiter))A&&t.push(A);let r=[];for(let n of t){let t=yield c.tryGetExecutablePath(E.join(n,A),e);t&&r.push(t);}return r;});}function l(A,e,t){return i(this,void 0,void 0,function*(){if((yield c.lstat(A)).isSymbolicLink()){try{yield c.lstat(e),yield c.unlink(e);}catch(A){"EPERM"===A.code&&(yield c.chmod(e,"0666"),yield c.unlink(e));}let t=yield c.readlink(A);yield c.symlink(t,e,c.IS_WINDOWS?"junction":null);}else(!(yield c.exists(e))||t)&&(yield c.copyFile(A,e));});}t=A.exports&&A.exports.__createBinding||(Object.create?function(A,e,t,r){void 0===r&&(r=t),Object.defineProperty(A,r,{enumerable:!0,get:function(){return e[t];}});}:function(A,e,t,r){void 0===r&&(r=t),A[r]=e[t];}),r=A.exports&&A.exports.__setModuleDefault||(Object.create?function(A,e){Object.defineProperty(A,"default",{enumerable:!0,value:e});}:function(A,e){A.default=e;}),n=A.exports&&A.exports.__importStar||function(A){if(A&&A.__esModule)return A;var e={};if(null!=A)for(var n in A)"default"!==n&&Object.hasOwnProperty.call(A,n)&&t(e,A,n);return r(e,A),e;},i=A.exports&&A.exports.__awaiter||function(A,e,t,r){return new(t||(t=Promise))(function(n,i){function o(A){try{a(r.next(A));}catch(A){i(A);}}function s(A){try{a(r.throw(A));}catch(A){i(A);}}function a(A){var e;A.done?n(A.value):((e=A.value)instanceof t?e:new t(function(A){A(e);})).then(o,s);}a((r=r.apply(A,e||[])).next());});},Object.defineProperty(A.exports,"__esModule",{value:!0}),A.exports.findInPath=A.exports.which=A.exports.mkdirP=A.exports.rmRF=A.exports.mv=A.exports.cp=void 0;let E=n(rF),c=n(no("fwMQK"));A.exports.cp=function(A,e,t={}){return i(this,void 0,void 0,function*(){let{force:r,recursive:n,copySourceDirectory:o}=function(A){let e=null==A.force||A.force;return{force:e,recursive:!!A.recursive,copySourceDirectory:null==A.copySourceDirectory||!!A.copySourceDirectory};}(t),a=(yield c.exists(e))?yield c.stat(e):null;if(a&&a.isFile()&&!r)return;let g=a&&a.isDirectory()&&o?E.join(e,E.basename(A)):e;if(!(yield c.exists(A)))throw Error("no such file or directory: "+A);if((yield c.stat(A)).isDirectory()){if(n)yield function A(e,t,r,n){return i(this,void 0,void 0,function*(){if(!(r>=255)){for(let i of(r++,yield s(t),yield c.readdir(e))){let o=`${e}/${i}`,s=`${t}/${i}`;(yield c.lstat(o)).isDirectory()?yield A(o,s,r,n):yield l(o,s,n);}yield c.chmod(t,(yield c.stat(e)).mode);}});}(A,g,0,r);else throw Error(`Failed to copy. ${A} is a directory, but tried to copy without recursive flag.`);}else{if(""===E.relative(A,g))throw Error(`'${g}' and '${A}' are the same file`);yield l(A,g,r);}});},A.exports.mv=function(A,e,t={}){return i(this,void 0,void 0,function*(){if(yield c.exists(e)){let r=!0;if((yield c.isDirectory(e))&&(e=E.join(e,E.basename(A)),r=yield c.exists(e)),r){if(null==t.force||t.force)yield o(e);else throw Error("Destination already exists");}}yield s(E.dirname(e)),yield c.rename(A,e);});},A.exports.rmRF=o,A.exports.mkdirP=s,A.exports.which=function A(e,t){return i(this,void 0,void 0,function*(){if(!e)throw Error("parameter 'tool' is required");if(t){let t=yield A(e,!1);if(!t){if(c.IS_WINDOWS)throw Error(`Unable to locate executable file: ${e}. 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: ${e}. 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 t;}let r=yield a(e);return r&&r.length>0?r[0]:"";});},A.exports.findInPath=a;}),e3("fwMQK",function(A,e){var t,r,n,i,o;function s(A){return(1&A.mode)>0||(8&A.mode)>0&&A.gid===process.getgid()||(64&A.mode)>0&&A.uid===process.getuid();}t=A.exports&&A.exports.__createBinding||(Object.create?function(A,e,t,r){void 0===r&&(r=t),Object.defineProperty(A,r,{enumerable:!0,get:function(){return e[t];}});}:function(A,e,t,r){void 0===r&&(r=t),A[r]=e[t];}),r=A.exports&&A.exports.__setModuleDefault||(Object.create?function(A,e){Object.defineProperty(A,"default",{enumerable:!0,value:e});}:function(A,e){A.default=e;}),n=A.exports&&A.exports.__importStar||function(A){if(A&&A.__esModule)return A;var e={};if(null!=A)for(var n in A)"default"!==n&&Object.hasOwnProperty.call(A,n)&&t(e,A,n);return r(e,A),e;},i=A.exports&&A.exports.__awaiter||function(A,e,t,r){return new(t||(t=Promise))(function(n,i){function o(A){try{a(r.next(A));}catch(A){i(A);}}function s(A){try{a(r.throw(A));}catch(A){i(A);}}function a(A){var e;A.done?n(A.value):((e=A.value)instanceof t?e:new t(function(A){A(e);})).then(o,s);}a((r=r.apply(A,e||[])).next());});},Object.defineProperty(A.exports,"__esModule",{value:!0}),A.exports.getCmdPath=A.exports.tryGetExecutablePath=A.exports.isRooted=A.exports.isDirectory=A.exports.exists=A.exports.READONLY=A.exports.UV_FS_O_EXLOCK=A.exports.IS_WINDOWS=A.exports.unlink=A.exports.symlink=A.exports.stat=A.exports.rmdir=A.exports.rm=A.exports.rename=A.exports.readlink=A.exports.readdir=A.exports.open=A.exports.mkdir=A.exports.lstat=A.exports.copyFile=A.exports.chmod=void 0;let a=n(rv),l=n(rF);o=a.promises,A.exports.chmod=o.chmod,A.exports.copyFile=o.copyFile,A.exports.lstat=o.lstat,A.exports.mkdir=o.mkdir,A.exports.open=o.open,A.exports.readdir=o.readdir,A.exports.readlink=o.readlink,A.exports.rename=o.rename,A.exports.rm=o.rm,A.exports.rmdir=o.rmdir,A.exports.stat=o.stat,A.exports.symlink=o.symlink,A.exports.unlink=o.unlink,A.exports.IS_WINDOWS="win32"===process.platform,A.exports.UV_FS_O_EXLOCK=268435456,A.exports.READONLY=a.constants.O_RDONLY,A.exports.exists=function(e){return i(this,void 0,void 0,function*(){try{yield A.exports.stat(e);}catch(A){if("ENOENT"===A.code)return!1;throw A;}return!0;});},A.exports.isDirectory=function(e,t=!1){return i(this,void 0,void 0,function*(){return(t?yield A.exports.stat(e):yield A.exports.lstat(e)).isDirectory();});},A.exports.isRooted=function(e){var t;if(t=(t=e)||"",!(e=A.exports.IS_WINDOWS?(t=t.replace(/\//g,"\\")).replace(/\\\\+/g,"\\"):t.replace(/\/\/+/g,"/")))throw Error('isRooted() parameter "p" cannot be empty');return A.exports.IS_WINDOWS?e.startsWith("\\")||/^[A-Z]:/i.test(e):e.startsWith("/");},A.exports.tryGetExecutablePath=function(e,t){return i(this,void 0,void 0,function*(){let r;try{r=yield A.exports.stat(e);}catch(A){"ENOENT"!==A.code&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${A}`);}if(r&&r.isFile()){if(A.exports.IS_WINDOWS){let A=l.extname(e).toUpperCase();if(t.some(e=>e.toUpperCase()===A))return e;}else if(s(r))return e;}let n=e;for(let i of t){e=n+i,r=void 0;try{r=yield A.exports.stat(e);}catch(A){"ENOENT"!==A.code&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${A}`);}if(r&&r.isFile()){if(A.exports.IS_WINDOWS){try{let t=l.dirname(e),r=l.basename(e).toUpperCase();for(let n of yield A.exports.readdir(t))if(r===n.toUpperCase()){e=l.join(t,n);break;}}catch(A){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${A}`);}return e;}if(s(r))return e;}}return"";});},A.exports.getCmdPath=function(){var A;return null!==(A=process.env.COMSPEC)&&void 0!==A?A:"cmd.exe";};}),e3("gn8Si",function(A,e){var t,r,n,i,o;t=A.exports&&A.exports.__createBinding||(Object.create?function(A,e,t,r){void 0===r&&(r=t),Object.defineProperty(A,r,{enumerable:!0,get:function(){return e[t];}});}:function(A,e,t,r){void 0===r&&(r=t),A[r]=e[t];}),r=A.exports&&A.exports.__setModuleDefault||(Object.create?function(A,e){Object.defineProperty(A,"default",{enumerable:!0,value:e});}:function(A,e){A.default=e;}),n=A.exports&&A.exports.__importStar||function(A){if(A&&A.__esModule)return A;var e={};if(null!=A)for(var n in A)"default"!==n&&Object.hasOwnProperty.call(A,n)&&t(e,A,n);return r(e,A),e;},i=A.exports&&A.exports.__awaiter||function(A,e,t,r){return new(t||(t=Promise))(function(n,i){function o(A){try{a(r.next(A));}catch(A){i(A);}}function s(A){try{a(r.throw(A));}catch(A){i(A);}}function a(A){var e;A.done?n(A.value):((e=A.value)instanceof t?e:new t(function(A){A(e);})).then(o,s);}a((r=r.apply(A,e||[])).next());});},Object.defineProperty(A.exports,"__esModule",{value:!0}),A.exports._readLinuxVersionFile=A.exports._getOsVersion=A.exports._findMatch=void 0;let s=n(no("0306Y"));o=no("1o3Gj"),A.exports._findMatch=function(e,t,r,n){return i(this,void 0,void 0,function*(){let i,a,l;let E=rS.platform();for(let i of r){let r=i.version;if(o.debug(`check ${r} satisfies ${e}`),s.satisfies(r,e)&&(!t||i.stable===t)&&(l=i.files.find(e=>{o.debug(`${e.arch}===${n} && ${e.platform}===${E}`);let t=e.arch===n&&e.platform===E;if(t&&e.platform_version){let r=A.exports._getOsVersion();t=r===e.platform_version||s.satisfies(r,e.platform_version);}return t;}))){o.debug("matched "+i.version),a=i;break;}}return a&&l&&((i=Object.assign({},a)).files=[l]),i;});},A.exports._getOsVersion=function(){let e=rS.platform(),t="";if("darwin"===e)t=r9.execSync("sw_vers -productVersion").toString();else if("linux"===e){let e=A.exports._readLinuxVersionFile();if(e)for(let A of e.split("\n")){let e=A.split("=");if(2===e.length&&("VERSION_ID"===e[0].trim()||"DISTRIB_RELEASE"===e[0].trim())){t=e[1].trim().replace(/^"/,"").replace(/"$/,"");break;}}}return t;},A.exports._readLinuxVersionFile=function(){let A="/etc/lsb-release",e="/etc/os-release",t="";return rv.existsSync(A)?t=rv.readFileSync(A).toString():rv.existsSync(e)&&(t=rv.readFileSync(e).toString()),t;};}),e3("0306Y",function(A,e){function t(A){N[A]=S++;}function r(A){for(var e=0;em||!(e.loose?b[N.LOOSE]:b[N.FULL]).test(A))return null;try{return new i(A,e);}catch(A){return null;}}function i(A,e){if(e&&"object"==typeof e||(e={loose:!!e,includePrerelease:!1}),A instanceof i){if(A.loose===e.loose)return A;A=A.version;}else if("string"!=typeof A)throw TypeError("Invalid Version: "+A);if(A.length>m)throw TypeError("version is longer than "+m+" characters");if(!(this instanceof i))return new i(A,e);y("SemVer",A,e),this.options=e,this.loose=!!e.loose;var t=A.trim().match(e.loose?b[N.LOOSE]:b[N.FULL]);if(!t)throw TypeError("Invalid Version: "+A);if(this.raw=A,this.major=+t[1],this.minor=+t[2],this.patch=+t[3],this.major>w||this.major<0)throw TypeError("Invalid major version");if(this.minor>w||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>w||this.patch<0)throw TypeError("Invalid patch version");t[4]?this.prerelease=t[4].split(".").map(function(A){if(/^[0-9]+$/.test(A)){var e=+A;if(e>=0&&eA?-1:1;}function s(A,e,t){return new i(A,t).compare(new i(e,t));}function a(A,e,t){return s(A,e,t)>0;}function l(A,e,t){return 0>s(A,e,t);}function E(A,e,t){return 0===s(A,e,t);}function c(A,e,t){return 0!==s(A,e,t);}function g(A,e,t){return s(A,e,t)>=0;}function h(A,e,t){return 0>=s(A,e,t);}function Q(A,e,t,r){switch(e){case"===":return"object"==typeof A&&(A=A.version),"object"==typeof t&&(t=t.version),A===t;case"!==":return"object"==typeof A&&(A=A.version),"object"==typeof t&&(t=t.version),A!==t;case"":case"=":case"==":return E(A,t,r);case"!=":return c(A,t,r);case">":return a(A,t,r);case">=":return g(A,t,r);case"<":return l(A,t,r);case"<=":return h(A,t,r);default:throw TypeError("Invalid operator: "+e);}}function u(A,e){if(e&&"object"==typeof e||(e={loose:!!e,includePrerelease:!1}),A instanceof u){if(!!e.loose===A.loose)return A;A=A.value;}if(!(this instanceof u))return new u(A,e);A=A.trim().split(/\s+/).join(" "),y("comparator",A,e),this.options=e,this.loose=!!e.loose,this.parse(A),this.semver===x?this.value="":this.value=this.operator+this.semver.version,y("comp",this);}function C(A,e){if(e&&"object"==typeof e||(e={loose:!!e,includePrerelease:!1}),A instanceof C)return!!e.loose===A.loose&&!!e.includePrerelease===A.includePrerelease?A:new C(A.raw,e);if(A instanceof u)return new C(A.value,e);if(!(this instanceof C))return new C(A,e);if(this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease,this.raw=A.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(function(A){return this.parseRange(A.trim());},this).filter(function(A){return A.length;}),!this.set.length)throw TypeError("Invalid SemVer Range: "+this.raw);this.format();}function I(A,e){for(var t=!0,r=A.slice(),n=r.pop();t&&r.length;)t=r.every(function(A){return n.intersects(A,e);}),n=r.pop();return t;}function B(A){return!A||"x"===A.toLowerCase()||"*"===A;}function d(A,e,t,r,n,i,o,s,a,l,E,c,g){return((e=B(t)?"":B(r)?">="+t+".0.0":B(n)?">="+t+"."+r+".0":">="+e)+" "+(s=B(a)?"":B(l)?"<"+(+a+1)+".0.0":B(E)?"<"+a+"."+(+l+1)+".0":c?"<="+a+"."+l+"."+E+"-"+c:"<="+s)).trim();}function f(A,e,t){try{e=new C(e,t);}catch(A){return!1;}return e.test(A);}function p(A,e,t,r){switch(A=new i(A,r),e=new C(e,r),t){case">":n=a,o=h,s=l,E=">",c=">=";break;case"<":n=l,o=g,s=a,E="<",c="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"');}if(f(A,e,r))return!1;for(var n,o,s,E,c,Q=0;Q=0.0.0")),B=B||A,d=d||A,n(A.semver,B.semver,r)?B=A:s(A.semver,d.semver,r)&&(d=A);}),B.operator===E||B.operator===c||(!d.operator||d.operator===E)&&o(A,d.semver)||d.operator===c&&s(A,d.semver))return!1;}return!0;}e=A.exports=i,"object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?y=function(){var A=Array.prototype.slice.call(arguments,0);A.unshift("SEMVER"),console.log.apply(console,A);}:y=function(){},e.SEMVER_SPEC_VERSION="2.0.0",m=256,w=Number.MAX_SAFE_INTEGER||9007199254740991,R=m-6,D=e.re=[],b=e.safeRe=[],k=e.src=[],N=e.tokens={},S=0,v=[["\\s",1],["\\d",m],[F="[a-zA-Z0-9-]",R]],t("NUMERICIDENTIFIER"),k[N.NUMERICIDENTIFIER]="0|[1-9]\\d*",t("NUMERICIDENTIFIERLOOSE"),k[N.NUMERICIDENTIFIERLOOSE]="\\d+",t("NONNUMERICIDENTIFIER"),k[N.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+F+"*",t("MAINVERSION"),k[N.MAINVERSION]="("+k[N.NUMERICIDENTIFIER]+")\\.("+k[N.NUMERICIDENTIFIER]+")\\.("+k[N.NUMERICIDENTIFIER]+")",t("MAINVERSIONLOOSE"),k[N.MAINVERSIONLOOSE]="("+k[N.NUMERICIDENTIFIERLOOSE]+")\\.("+k[N.NUMERICIDENTIFIERLOOSE]+")\\.("+k[N.NUMERICIDENTIFIERLOOSE]+")",t("PRERELEASEIDENTIFIER"),k[N.PRERELEASEIDENTIFIER]="(?:"+k[N.NUMERICIDENTIFIER]+"|"+k[N.NONNUMERICIDENTIFIER]+")",t("PRERELEASEIDENTIFIERLOOSE"),k[N.PRERELEASEIDENTIFIERLOOSE]="(?:"+k[N.NUMERICIDENTIFIERLOOSE]+"|"+k[N.NONNUMERICIDENTIFIER]+")",t("PRERELEASE"),k[N.PRERELEASE]="(?:-("+k[N.PRERELEASEIDENTIFIER]+"(?:\\."+k[N.PRERELEASEIDENTIFIER]+")*))",t("PRERELEASELOOSE"),k[N.PRERELEASELOOSE]="(?:-?("+k[N.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+k[N.PRERELEASEIDENTIFIERLOOSE]+")*))",t("BUILDIDENTIFIER"),k[N.BUILDIDENTIFIER]=F+"+",t("BUILD"),k[N.BUILD]="(?:\\+("+k[N.BUILDIDENTIFIER]+"(?:\\."+k[N.BUILDIDENTIFIER]+")*))",t("FULL"),t("FULLPLAIN"),k[N.FULLPLAIN]="v?"+k[N.MAINVERSION]+k[N.PRERELEASE]+"?"+k[N.BUILD]+"?",k[N.FULL]="^"+k[N.FULLPLAIN]+"$",t("LOOSEPLAIN"),k[N.LOOSEPLAIN]="[v=\\s]*"+k[N.MAINVERSIONLOOSE]+k[N.PRERELEASELOOSE]+"?"+k[N.BUILD]+"?",t("LOOSE"),k[N.LOOSE]="^"+k[N.LOOSEPLAIN]+"$",t("GTLT"),k[N.GTLT]="((?:<|>)?=?)",t("XRANGEIDENTIFIERLOOSE"),k[N.XRANGEIDENTIFIERLOOSE]=k[N.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",t("XRANGEIDENTIFIER"),k[N.XRANGEIDENTIFIER]=k[N.NUMERICIDENTIFIER]+"|x|X|\\*",t("XRANGEPLAIN"),k[N.XRANGEPLAIN]="[v=\\s]*("+k[N.XRANGEIDENTIFIER]+")(?:\\.("+k[N.XRANGEIDENTIFIER]+")(?:\\.("+k[N.XRANGEIDENTIFIER]+")(?:"+k[N.PRERELEASE]+")?"+k[N.BUILD]+"?)?)?",t("XRANGEPLAINLOOSE"),k[N.XRANGEPLAINLOOSE]="[v=\\s]*("+k[N.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+k[N.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+k[N.XRANGEIDENTIFIERLOOSE]+")(?:"+k[N.PRERELEASELOOSE]+")?"+k[N.BUILD]+"?)?)?",t("XRANGE"),k[N.XRANGE]="^"+k[N.GTLT]+"\\s*"+k[N.XRANGEPLAIN]+"$",t("XRANGELOOSE"),k[N.XRANGELOOSE]="^"+k[N.GTLT]+"\\s*"+k[N.XRANGEPLAINLOOSE]+"$",t("COERCE"),k[N.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",t("COERCERTL"),D[N.COERCERTL]=RegExp(k[N.COERCE],"g"),b[N.COERCERTL]=RegExp(r(k[N.COERCE]),"g"),t("LONETILDE"),k[N.LONETILDE]="(?:~>?)",t("TILDETRIM"),k[N.TILDETRIM]="(\\s*)"+k[N.LONETILDE]+"\\s+",D[N.TILDETRIM]=RegExp(k[N.TILDETRIM],"g"),b[N.TILDETRIM]=RegExp(r(k[N.TILDETRIM]),"g"),t("TILDE"),k[N.TILDE]="^"+k[N.LONETILDE]+k[N.XRANGEPLAIN]+"$",t("TILDELOOSE"),k[N.TILDELOOSE]="^"+k[N.LONETILDE]+k[N.XRANGEPLAINLOOSE]+"$",t("LONECARET"),k[N.LONECARET]="(?:\\^)",t("CARETTRIM"),k[N.CARETTRIM]="(\\s*)"+k[N.LONECARET]+"\\s+",D[N.CARETTRIM]=RegExp(k[N.CARETTRIM],"g"),b[N.CARETTRIM]=RegExp(r(k[N.CARETTRIM]),"g"),t("CARET"),k[N.CARET]="^"+k[N.LONECARET]+k[N.XRANGEPLAIN]+"$",t("CARETLOOSE"),k[N.CARETLOOSE]="^"+k[N.LONECARET]+k[N.XRANGEPLAINLOOSE]+"$",t("COMPARATORLOOSE"),k[N.COMPARATORLOOSE]="^"+k[N.GTLT]+"\\s*("+k[N.LOOSEPLAIN]+")$|^$",t("COMPARATOR"),k[N.COMPARATOR]="^"+k[N.GTLT]+"\\s*("+k[N.FULLPLAIN]+")$|^$",t("COMPARATORTRIM"),k[N.COMPARATORTRIM]="(\\s*)"+k[N.GTLT]+"\\s*("+k[N.LOOSEPLAIN]+"|"+k[N.XRANGEPLAIN]+")",D[N.COMPARATORTRIM]=RegExp(k[N.COMPARATORTRIM],"g"),b[N.COMPARATORTRIM]=RegExp(r(k[N.COMPARATORTRIM]),"g"),L="$1$2$3",t("HYPHENRANGE"),k[N.HYPHENRANGE]="^\\s*("+k[N.XRANGEPLAIN]+")\\s+-\\s+("+k[N.XRANGEPLAIN]+")\\s*$",t("HYPHENRANGELOOSE"),k[N.HYPHENRANGELOOSE]="^\\s*("+k[N.XRANGEPLAINLOOSE]+")\\s+-\\s+("+k[N.XRANGEPLAINLOOSE]+")\\s*$",t("STAR"),k[N.STAR]="(<|>)?=?\\s*\\*";for(var y,m,w,R,D,b,k,N,S,F,v,L,U,x,T=0;T=0;)"number"==typeof this.prerelease[t]&&(this.prerelease[t]++,t=-2);-1===t&&this.prerelease.push(0);}e&&(this.prerelease[0]===e?isNaN(this.prerelease[1])&&(this.prerelease=[e,0]):this.prerelease=[e,0]);break;default:throw Error("invalid increment argument: "+A);}return this.format(),this.raw=this.version,this;},e.inc=function(A,e,t,r){"string"==typeof t&&(r=t,t=void 0);try{return new i(A,t).inc(e,r).version;}catch(A){return null;}},e.diff=function(A,e){if(E(A,e))return null;var t=n(A),r=n(e),i="";if(t.prerelease.length||r.prerelease.length){i="pre";var o="prerelease";}for(var s in t)if(("major"===s||"minor"===s||"patch"===s)&&t[s]!==r[s])return i+s;return o;},e.compareIdentifiers=o,U=/^[0-9]+$/,e.rcompareIdentifiers=function(A,e){return o(e,A);},e.major=function(A,e){return new i(A,e).major;},e.minor=function(A,e){return new i(A,e).minor;},e.patch=function(A,e){return new i(A,e).patch;},e.compare=s,e.compareLoose=function(A,e){return s(A,e,!0);},e.compareBuild=function(A,e,t){var r=new i(A,t),n=new i(e,t);return r.compare(n)||r.compareBuild(n);},e.rcompare=function(A,e,t){return s(e,A,t);},e.sort=function(A,t){return A.sort(function(A,r){return e.compareBuild(A,r,t);});},e.rsort=function(A,t){return A.sort(function(A,r){return e.compareBuild(r,A,t);});},e.gt=a,e.lt=l,e.eq=E,e.neq=c,e.gte=g,e.lte=h,e.cmp=Q,e.Comparator=u,x={},u.prototype.parse=function(A){var e=this.options.loose?b[N.COMPARATORLOOSE]:b[N.COMPARATOR],t=A.match(e);if(!t)throw TypeError("Invalid comparator: "+A);this.operator=void 0!==t[1]?t[1]:"","="===this.operator&&(this.operator=""),t[2]?this.semver=new i(t[2],this.options.loose):this.semver=x;},u.prototype.toString=function(){return this.value;},u.prototype.test=function(A){if(y("Comparator.test",A,this.options.loose),this.semver===x||A===x)return!0;if("string"==typeof A)try{A=new i(A,this.options);}catch(A){return!1;}return Q(A,this.operator,this.semver,this.options);},u.prototype.intersects=function(A,e){if(!(A instanceof u))throw TypeError("a Comparator is required");if(e&&"object"==typeof e||(e={loose:!!e,includePrerelease:!1}),""===this.operator)return""===this.value||(t=new C(A.value,e),f(this.value,t,e));if(""===A.operator)return""===A.value||(t=new C(this.value,e),f(A.semver,t,e));var t,r=(">="===this.operator||">"===this.operator)&&(">="===A.operator||">"===A.operator),n=("<="===this.operator||"<"===this.operator)&&("<="===A.operator||"<"===A.operator),i=this.semver.version===A.semver.version,o=(">="===this.operator||"<="===this.operator)&&(">="===A.operator||"<="===A.operator),s=Q(this.semver,"<",A.semver,e)&&(">="===this.operator||">"===this.operator)&&("<="===A.operator||"<"===A.operator),a=Q(this.semver,">",A.semver,e)&&("<="===this.operator||"<"===this.operator)&&(">="===A.operator||">"===A.operator);return r||n||i&&o||s||a;},e.Range=C,C.prototype.format=function(){return this.range=this.set.map(function(A){return A.join(" ").trim();}).join("||").trim(),this.range;},C.prototype.toString=function(){return this.range;},C.prototype.parseRange=function(A){var e=this.options.loose,t=e?b[N.HYPHENRANGELOOSE]:b[N.HYPHENRANGE];A=A.replace(t,d),y("hyphen replace",A),A=A.replace(b[N.COMPARATORTRIM],L),y("comparator trim",A,b[N.COMPARATORTRIM]),A=(A=(A=A.replace(b[N.TILDETRIM],"$1~")).replace(b[N.CARETTRIM],"$1^")).split(/\s+/).join(" ");var r=e?b[N.COMPARATORLOOSE]:b[N.COMPARATOR],n=A.split(" ").map(function(A){var e,t,r,n,i,o,s,a,l;return e=A,t=this.options,y("comp",e,t),r=e,n=t,e=r.trim().split(/\s+/).map(function(A){var e,t,r;return y("caret",e=A,t=n),r=t.loose?b[N.CARETLOOSE]:b[N.CARET],e.replace(r,function(A,t,r,n,i){var o;return y("caret",e,A,t,r,n,i),B(t)?o="":B(r)?o=">="+t+".0.0 <"+(+t+1)+".0.0":B(n)?o="0"===t?">="+t+"."+r+".0 <"+t+"."+(+r+1)+".0":">="+t+"."+r+".0 <"+(+t+1)+".0.0":i?(y("replaceCaret pr",i),o="0"===t?"0"===r?">="+t+"."+r+"."+n+"-"+i+" <"+t+"."+r+"."+(+n+1):">="+t+"."+r+"."+n+"-"+i+" <"+t+"."+(+r+1)+".0":">="+t+"."+r+"."+n+"-"+i+" <"+(+t+1)+".0.0"):(y("no pr"),o="0"===t?"0"===r?">="+t+"."+r+"."+n+" <"+t+"."+r+"."+(+n+1):">="+t+"."+r+"."+n+" <"+t+"."+(+r+1)+".0":">="+t+"."+r+"."+n+" <"+(+t+1)+".0.0"),y("caret return",o),o;});}).join(" "),y("caret",e),i=e,o=t,e=i.trim().split(/\s+/).map(function(A){var e,t;return e=A,t=o.loose?b[N.TILDELOOSE]:b[N.TILDE],e.replace(t,function(A,t,r,n,i){var o;return y("tilde",e,A,t,r,n,i),B(t)?o="":B(r)?o=">="+t+".0.0 <"+(+t+1)+".0.0":B(n)?o=">="+t+"."+r+".0 <"+t+"."+(+r+1)+".0":i?(y("replaceTilde pr",i),o=">="+t+"."+r+"."+n+"-"+i+" <"+t+"."+(+r+1)+".0"):o=">="+t+"."+r+"."+n+" <"+t+"."+(+r+1)+".0",y("tilde return",o),o;});}).join(" "),y("tildes",e),y("replaceXRanges",s=e,a=t),e=s.split(/\s+/).map(function(A){var e,t,r;return e=A,t=a,e=e.trim(),r=t.loose?b[N.XRANGELOOSE]:b[N.XRANGE],e.replace(r,function(A,r,n,i,o,s){y("xRange",e,A,r,n,i,o,s);var a=B(n),l=a||B(i),E=l||B(o);return"="===r&&E&&(r=""),s=t.includePrerelease?"-0":"",a?A=">"===r||"<"===r?"<0.0.0-0":"*":r&&E?(l&&(i=0),o=0,">"===r?(r=">=",l?(n=+n+1,i=0):i=+i+1,o=0):"<="===r&&(r="<",l?n=+n+1:i=+i+1),A=r+n+"."+i+"."+o+s):l?A=">="+n+".0.0"+s+" <"+(+n+1)+".0.0"+s:E&&(A=">="+n+"."+i+".0"+s+" <"+n+"."+(+i+1)+".0"+s),y("xRange return",A),A;});}).join(" "),y("xrange",e),y("replaceStars",l=e,t),e=l.trim().replace(b[N.STAR],""),y("stars",e),e;},this).join(" ").split(/\s+/);return this.options.loose&&(n=n.filter(function(A){return!!A.match(r);})),n=n.map(function(A){return new u(A,this.options);},this);},C.prototype.intersects=function(A,e){if(!(A instanceof C))throw TypeError("a Range is required");return this.set.some(function(t){return I(t,e)&&A.set.some(function(A){return I(A,e)&&t.every(function(t){return A.every(function(A){return t.intersects(A,e);});});});});},e.toComparators=function(A,e){return new C(A,e).set.map(function(A){return A.map(function(A){return A.value;}).join(" ").trim().split(" ");});},C.prototype.test=function(A){if(!A)return!1;if("string"==typeof A)try{A=new i(A,this.options);}catch(A){return!1;}for(var e=0;e0){var n=A[r].semver;if(n.major===e.major&&n.minor===e.minor&&n.patch===e.patch)return!0;}return!1;}return!0;}(this.set[e],A,this.options))return!0;return!1;},e.satisfies=f,e.maxSatisfying=function(A,e,t){var r=null,n=null;try{var o=new C(e,t);}catch(A){return null;}return A.forEach(function(A){o.test(A)&&(!r||-1===n.compare(A))&&(n=new i(r=A,t));}),r;},e.minSatisfying=function(A,e,t){var r=null,n=null;try{var o=new C(e,t);}catch(A){return null;}return A.forEach(function(A){o.test(A)&&(!r||1===n.compare(A))&&(n=new i(r=A,t));}),r;},e.minVersion=function(A,e){A=new C(A,e);var t=new i("0.0.0");if(A.test(t)||(t=new i("0.0.0-0"),A.test(t)))return t;t=null;for(var r=0;r":0===e.prerelease.length?e.patch++:e.prerelease.push(0),e.raw=e.format();case"":case">=":(!t||a(t,e))&&(t=e);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+A.operator);}});return t&&A.test(t)?t:null;},e.validRange=function(A,e){try{return new C(A,e).range||"*";}catch(A){return null;}},e.ltr=function(A,e,t){return p(A,e,"<",t);},e.gtr=function(A,e,t){return p(A,e,">",t);},e.outside=p,e.prerelease=function(A,e){var t=n(A,e);return t&&t.prerelease.length?t.prerelease:null;},e.intersects=function(A,e,t){return A=new C(A,t),e=new C(e,t),A.intersects(e);},e.coerce=function(A,e){if(A instanceof i)return A;if("number"==typeof A&&(A+=""),"string"!=typeof A)return null;var t,r=null;if((e=e||{}).rtl){for(;(t=b[N.COERCERTL].exec(A))&&(!r||r.index+r[0].length!==A.length);)r&&t.index+t[0].length===r.index+r[0].length||(r=t),b[N.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;b[N.COERCERTL].lastIndex=-1;}else r=A.match(b[N.COERCE]);return null===r?null:n(r[2]+"."+(r[3]||"0")+"."+(r[4]||"0"),e);};}),e3("GX8zo",function(A,e){var t=no("7qQbq"),r=no("c22IK");A.exports=function(A,e,n){var i=e&&n||0;"string"==typeof A&&(e="binary"===A?Array(16):null,A=null);var o=(A=A||{}).random||(A.rng||t)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e)for(var s=0;s<16;++s)e[i+s]=o[s];return e||r(o);};}),e3("7qQbq",function(A,e){A.exports=function(){return rL.randomBytes(16);};}),e3("c22IK",function(A,e){for(var t=[],r=0;r<256;++r)t[r]=(r+256).toString(16).substr(1);A.exports=function(A,e){var r=e||0;return[t[A[r++]],t[A[r++]],t[A[r++]],t[A[r++]],"-",t[A[r++]],t[A[r++]],"-",t[A[r++]],t[A[r++]],"-",t[A[r++]],t[A[r++]],"-",t[A[r++]],t[A[r++]],t[A[r++]],t[A[r++]],t[A[r++]],t[A[r++]]].join("");};}),e3("bHzmH",function(A,e){var t,r,n,i;function o(A,e,t){return i(this,void 0,void 0,function*(){let r=s.argStringToArray(A);if(0===r.length)throw Error("Parameter 'commandLine' cannot be null or empty.");let n=r[0];return e=r.slice(1).concat(e||[]),new s.ToolRunner(n,e,t).exec();});}t=A.exports&&A.exports.__createBinding||(Object.create?function(A,e,t,r){void 0===r&&(r=t),Object.defineProperty(A,r,{enumerable:!0,get:function(){return e[t];}});}:function(A,e,t,r){void 0===r&&(r=t),A[r]=e[t];}),r=A.exports&&A.exports.__setModuleDefault||(Object.create?function(A,e){Object.defineProperty(A,"default",{enumerable:!0,value:e});}:function(A,e){A.default=e;}),n=A.exports&&A.exports.__importStar||function(A){if(A&&A.__esModule)return A;var e={};if(null!=A)for(var n in A)"default"!==n&&Object.hasOwnProperty.call(A,n)&&t(e,A,n);return r(e,A),e;},i=A.exports&&A.exports.__awaiter||function(A,e,t,r){return new(t||(t=Promise))(function(n,i){function o(A){try{a(r.next(A));}catch(A){i(A);}}function s(A){try{a(r.throw(A));}catch(A){i(A);}}function a(A){var e;A.done?n(A.value):((e=A.value)instanceof t?e:new t(function(A){A(e);})).then(o,s);}a((r=r.apply(A,e||[])).next());});},Object.defineProperty(A.exports,"__esModule",{value:!0}),A.exports.getExecOutput=A.exports.exec=void 0;let s=n(no("iYbsa"));A.exports.exec=o,A.exports.getExecOutput=function(A,e,t){var r,n;return i(this,void 0,void 0,function*(){let i="",s="",a=new r1.StringDecoder("utf8"),l=new r1.StringDecoder("utf8"),E=null===(r=null==t?void 0:t.listeners)||void 0===r?void 0:r.stdout,c=null===(n=null==t?void 0:t.listeners)||void 0===n?void 0:n.stderr,g=Object.assign(Object.assign({},null==t?void 0:t.listeners),{stdout(A){i+=a.write(A),E&&E(A);},stderr(A){s+=l.write(A),c&&c(A);}}),h=yield o(A,e,Object.assign(Object.assign({},t),{listeners:g}));return i+=a.end(),s+=l.end(),{exitCode:h,stdout:i,stderr:s};});};}),e3("iYbsa",function(A,e){var t,r,n,i;t=A.exports&&A.exports.__createBinding||(Object.create?function(A,e,t,r){void 0===r&&(r=t),Object.defineProperty(A,r,{enumerable:!0,get:function(){return e[t];}});}:function(A,e,t,r){void 0===r&&(r=t),A[r]=e[t];}),r=A.exports&&A.exports.__setModuleDefault||(Object.create?function(A,e){Object.defineProperty(A,"default",{enumerable:!0,value:e});}:function(A,e){A.default=e;}),n=A.exports&&A.exports.__importStar||function(A){if(A&&A.__esModule)return A;var e={};if(null!=A)for(var n in A)"default"!==n&&Object.hasOwnProperty.call(A,n)&&t(e,A,n);return r(e,A),e;},i=A.exports&&A.exports.__awaiter||function(A,e,t,r){return new(t||(t=Promise))(function(n,i){function o(A){try{a(r.next(A));}catch(A){i(A);}}function s(A){try{a(r.throw(A));}catch(A){i(A);}}function a(A){var e;A.done?n(A.value):((e=A.value)instanceof t?e:new t(function(A){A(e);})).then(o,s);}a((r=r.apply(A,e||[])).next());});},Object.defineProperty(A.exports,"__esModule",{value:!0}),A.exports.argStringToArray=A.exports.ToolRunner=void 0;let o=n(rS),s=n(rG),a=n(r9),l=n(rF),E=n(no("zdagz")),c=n(no("fwMQK")),g="win32"===process.platform;class h extends s.EventEmitter{constructor(A,e,t){if(super(),!A)throw Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=A,this.args=e||[],this.options=t||{};}_debug(A){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(A);}_getCommandString(A,e){let t=this._getSpawnFileName(),r=this._getSpawnArgs(A),n=e?"":"[command]";if(g){if(this._isCmdFile())for(let A of(n+=t,r))n+=" "+A;else if(A.windowsVerbatimArguments)for(let A of(n+=`"${t}"`,r))n+=" "+A;else for(let A of(n+=this._windowsQuoteCmdArg(t),r))n+=" "+this._windowsQuoteCmdArg(A);}else for(let A of(n+=t,r))n+=" "+A;return n;}_processLineBuffer(A,e,t){try{let r=e+A.toString(),n=r.indexOf(o.EOL);for(;n>-1;){let A=r.substring(0,n);t(A),n=(r=r.substring(n+o.EOL.length)).indexOf(o.EOL);}return r;}catch(A){return this._debug("error processing line. Failed with error "+A),"";}}_getSpawnFileName(){return g&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath;}_getSpawnArgs(A){if(g&&this._isCmdFile()){let e='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath);for(let t of this.args)e+=" "+(A.windowsVerbatimArguments?t:this._windowsQuoteCmdArg(t));return[e+='"'];}return this.args;}_endsWith(A,e){return A.endsWith(e);}_isCmdFile(){let A=this.toolPath.toUpperCase();return this._endsWith(A,".CMD")||this._endsWith(A,".BAT");}_windowsQuoteCmdArg(A){if(!this._isCmdFile())return this._uvQuoteCmdArg(A);if(!A)return'""';let e=[" "," ","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'],t=!1;for(let r of A)if(e.some(A=>A===r)){t=!0;break;}if(!t)return A;let r='"',n=!0;for(let e=A.length;e>0;e--)r+=A[e-1],n&&"\\"===A[e-1]?r+="\\":'"'===A[e-1]?(n=!0,r+='"'):n=!1;return(r+='"').split("").reverse().join("");}_uvQuoteCmdArg(A){if(!A)return'""';if(!A.includes(" ")&&!A.includes(" ")&&!A.includes('"'))return A;if(!A.includes('"')&&!A.includes("\\"))return`"${A}"`;let e='"',t=!0;for(let r=A.length;r>0;r--)e+=A[r-1],t&&"\\"===A[r-1]?e+="\\":'"'===A[r-1]?(t=!0,e+="\\"):t=!1;return(e+='"').split("").reverse().join("");}_cloneExecOptions(A){let e={cwd:(A=A||{}).cwd||process.cwd(),env:A.env||process.env,silent:A.silent||!1,windowsVerbatimArguments:A.windowsVerbatimArguments||!1,failOnStdErr:A.failOnStdErr||!1,ignoreReturnCode:A.ignoreReturnCode||!1,delay:A.delay||1e4};return e.outStream=A.outStream||process.stdout,e.errStream=A.errStream||process.stderr,e;}_getSpawnOptions(A,e){A=A||{};let t={};return t.cwd=A.cwd,t.env=A.env,t.windowsVerbatimArguments=A.windowsVerbatimArguments||this._isCmdFile(),A.windowsVerbatimArguments&&(t.argv0=`"${e}"`),t;}exec(){return i(this,void 0,void 0,function*(){return!c.isRooted(this.toolPath)&&(this.toolPath.includes("/")||g&&this.toolPath.includes("\\"))&&(this.toolPath=l.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield E.which(this.toolPath,!0),new Promise((A,e)=>i(this,void 0,void 0,function*(){for(let A of(this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args))this._debug(" "+A);let t=this._cloneExecOptions(this.options);!t.silent&&t.outStream&&t.outStream.write(this._getCommandString(t)+o.EOL);let r=new Q(t,this.toolPath);if(r.on("debug",A=>{this._debug(A);}),this.options.cwd&&!(yield c.exists(this.options.cwd)))return e(Error(`The cwd: ${this.options.cwd} does not exist!`));let n=this._getSpawnFileName(),i=a.spawn(n,this._getSpawnArgs(t),this._getSpawnOptions(this.options,n)),s="";i.stdout&&i.stdout.on("data",A=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(A),!t.silent&&t.outStream&&t.outStream.write(A),s=this._processLineBuffer(A,s,A=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(A);});});let l="";if(i.stderr&&i.stderr.on("data",A=>{r.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(A),!t.silent&&t.errStream&&t.outStream&&(t.failOnStdErr?t.errStream:t.outStream).write(A),l=this._processLineBuffer(A,l,A=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(A);});}),i.on("error",A=>{r.processError=A.message,r.processExited=!0,r.processClosed=!0,r.CheckComplete();}),i.on("exit",A=>{r.processExitCode=A,r.processExited=!0,this._debug(`Exit code ${A} received from tool '${this.toolPath}'`),r.CheckComplete();}),i.on("close",A=>{r.processExitCode=A,r.processExited=!0,r.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),r.CheckComplete();}),r.on("done",(t,r)=>{s.length>0&&this.emit("stdline",s),l.length>0&&this.emit("errline",l),i.removeAllListeners(),t?e(t):A(r);}),this.options.input){if(!i.stdin)throw Error("child process missing stdin");i.stdin.end(this.options.input);}}));});}}A.exports.ToolRunner=h,A.exports.argStringToArray=function(A){function e(A){n&&'"'!==A&&(i+="\\"),i+=A,n=!1;}let t=[],r=!1,n=!1,i="";for(let o=0;o0&&(t.push(i),i="");continue;}e(s);}return i.length>0&&t.push(i.trim()),t;};class Q extends s.EventEmitter{constructor(A,e){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,!e)throw Error("toolPath must not be empty");this.options=A,this.toolPath=e,A.delay&&(this.delay=A.delay);}CheckComplete(){!this.done&&(this.processClosed?this._setResult():this.processExited&&(this.timeout=r8.setTimeout(Q.HandleTimeout,this.delay,this)));}_debug(A){this.emit("debug",A);}_setResult(){let A;this.processExited&&(this.processError?A=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&&(A=Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)):A=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",A,this.processExitCode);}static HandleTimeout(A){if(!A.done){if(!A.processClosed&&A.processExited){let e=`The STDIO streams did not close within ${A.delay/1e3} seconds of the exit event from process '${A.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;A._debug(e);}A._setResult();}}}}),e3("fEioR",function(A,e){A.exports=Promise.resolve(require("./actions_python.1abb15a9.js")).then(()=>no("8L9T2"));}),e3("aWBYj",function(A,e){A.exports=Promise.resolve(require("./hdi.069dd8f5.js")).then(()=>no("1PWvB"));}),e5=no("dAuy6"),e6=no("hHq4F"),e7=no("6OFKY"),function(){no("kswPT").addLocale("en",function(A){var e=Math.floor(Math.abs(A)),t=A.toString().replace(/^[^.]*\.?/,"").length;return("string"==typeof A&&(A=parseInt(A,10)),1===e&&0===t)?"one":"other";});}.call(tA={}),te={},te=no("foOBZ"),tt={},tt={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"}}}},tr={},a(tn={},"isexe",()=>ns),a(tn,"sync",()=>na),ti=no("2Bbmx");const ns=async(A,e={})=>{let{ignoreErrors:t=!1}=e;try{return nl(await(0,ti.stat)(A),e);}catch(A){if(t||"EACCES"===A.code)return!1;throw A;}},na=(A,e={})=>{let{ignoreErrors:t=!1}=e;try{return nl((0,rv.statSync)(A),e);}catch(A){if(t||"EACCES"===A.code)return!1;throw A;}},nl=(A,e)=>A.isFile()&&nE(A,e),nE=(A,e)=>{var t,r,n,i,o,s,a,l,E,c,g;let h=null!==(a=e.uid)&&void 0!==a?a:null===(t=(r=process).getuid)||void 0===t?void 0:t.call(r),Q=null!==(E=null!==(l=e.groups)&&void 0!==l?l:null===(n=(i=process).getgroups)||void 0===n?void 0:n.call(i))&&void 0!==E?E:[],u=null!==(g=null!==(c=e.gid)&&void 0!==c?c:null===(o=(s=process).getgid)||void 0===o?void 0:o.call(s))&&void 0!==g?g:Q[0];if(void 0===h||void 0===u)throw Error("cannot get uid or gid");let C=new Set([u,...Q]),I=A.mode,B=A.uid,d=A.gid,f=parseInt("100",8),p=parseInt("010",8);return!!(I&parseInt("001",8)||I&p&&C.has(d)||I&f&&B===h||I&(f|p)&&0===h);};a(to={},"isexe",()=>nc),a(to,"sync",()=>ng),ti=no("2Bbmx");const nc=async(A,e={})=>{let{ignoreErrors:t=!1}=e;try{return nQ(await(0,ti.stat)(A),A,e);}catch(A){if(t||"EACCES"===A.code)return!1;throw A;}},ng=(A,e={})=>{let{ignoreErrors:t=!1}=e;try{return nQ((0,rv.statSync)(A),A,e);}catch(A){if(t||"EACCES"===A.code)return!1;throw A;}},nh=(A,e)=>{let{pathExt:t=process.env.PATHEXT||""}=e,r=t.split(";");if(-1!==r.indexOf(""))return!0;for(let e=0;eA.isFile()&&nh(e,t),nu="win32"===(process.env._ISEXE_TEST_PLATFORM_||process.platform)?to:tn,nC=nu.isexe,nI=nu.sync;ts=rF.join,ta=rF.delimiter,tl=rF.sep,tE=rF.posix;const nB="win32"===process.platform,nd=new RegExp(`[${tE.sep}${tl===tE.sep?"":tl}]`.replace(/(\\)/g,"\\$1")),nf=RegExp("^\\."+nd.source),np=A=>Object.assign(Error("not found: "+A),{code:"ENOENT"}),ny=(A,{path:e=process.env.PATH,pathExt:t=process.env.PATHEXT,delimiter:r=ta})=>{let n=A.match(nd)?[""]:[...(nB?[process.cwd()]:[]),...(e||"").split(r)];if(nB){let e=t||[".EXE",".CMD",".BAT",".COM"].join(r),i=e.split(r).flatMap(A=>[A,A.toLowerCase()]);return A.includes(".")&&""!==i[0]&&i.unshift(""),{pathEnv:n,pathExt:i,pathExtExe:e};}return{pathEnv:n,pathExt:[""]};},nm=(A,e)=>{let t=/^".*"$/.test(A)?A.slice(1,-1):A;return(!t&&nf.test(e)?e.slice(0,2):"")+ts(t,e);},nw=async(A,e={})=>{let{pathEnv:t,pathExt:r,pathExtExe:n}=ny(A,e),i=[];for(let o of t){let t=nm(o,A);for(let A of r){let r=t+A;if(await nC(r,{pathExt:n,ignoreErrors:!0})){if(!e.all)return r;i.push(r);}}}if(e.all&&i.length)return i;if(e.nothrow)return null;throw np(A);};tr=nw,nw.sync=(A,e={})=>{let{pathEnv:t,pathExt:r,pathExtExe:n}=ny(A,e),i=[];for(let o of t){let t=nm(o,A);for(let A of r){let r=t+A;if(nI(r,{pathExt:n,ignoreErrors:!0})){if(!e.all)return r;i.push(r);}}}if(e.all&&i.length)return i;if(e.nothrow)return null;throw np(A);},tc={},tg={},th={},tQ={};const nR="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,nD=nR?";":":";tu={},"win32"===process.platform||nr.TESTING_WINDOWS?tC=no("8nJMC"):tC=no("lo7XV"),tu=E,E.sync=function(A,e){try{return tC.sync(A,e||{});}catch(A){if(e&&e.ignoreErrors||"EACCES"===A.code)return!1;throw A;}};const nb=A=>Object.assign(Error("not found: "+A),{code:"ENOENT"}),nk=(A,e)=>{let t=e.colon||nD,r=A.match(/\//)||nR&&A.match(/\\/)?[""]:[...(nR?[process.cwd()]:[]),...(e.path||process.env.PATH||"").split(t)],n=nR?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",i=nR?n.split(t):[""];return nR&&-1!==A.indexOf(".")&&""!==i[0]&&i.unshift(""),{pathEnv:r,pathExt:i,pathExtExe:n};},nN=(A,e,t)=>{"function"==typeof e&&(t=e,e={}),e||(e={});let{pathEnv:r,pathExt:n,pathExtExe:i}=nk(A,e),o=[],s=t=>new Promise((n,i)=>{if(t===r.length)return e.all&&o.length?n(o):i(nb(A));let s=r[t],l=/^".*"$/.test(s)?s.slice(1,-1):s,E=rF.join(l,A);n(a(!l&&/^\.[\\\/]/.test(A)?A.slice(0,2)+E:E,t,0));}),a=(A,t,r)=>new Promise((l,E)=>{if(r===n.length)return l(s(t+1));let c=n[r];tu(A+c,{pathExt:i},(n,i)=>{if(!n&&i){if(!e.all)return l(A+c);o.push(A+c);}return l(a(A,t,r+1));});});return t?s(0).then(A=>t(null,A),t):s(0);};tQ=nN,nN.sync=(A,e)=>{let{pathEnv:t,pathExt:r,pathExtExe:n}=nk(A,e=e||{}),i=[];for(let o=0;o{let e=A.env||process.env;return"win32"!==(A.platform||process.platform)?"PATH":Object.keys(e).reverse().find(A=>"PATH"===A.toUpperCase())||"Path";};(tI=nS).default=nS,th=function(A){return c(A)||c(A,!0);};tB=function(A){return A=A.replace(/([()\][%!^"`<>&|;, *?])/g,"^$1");},td=function(A,e){return A=(A=(A=""+A).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1"),A=(A=`"${A}"`).replace(/([()\][%!^"`<>&|;, *?])/g,"^$1"),e&&(A=A.replace(/([()\][%!^"`<>&|;, *?])/g,"^$1")),A;},tf={},tp={},ty={},ty=/^#!(.*)/,tp=(A="")=>{let e=A.match(ty);if(!e)return null;let[t,r]=e[0].replace(/#! ?/,"").split(" "),n=t.split("/").pop();return"env"===n?r:r?`${n} ${r}`:n;},tf=function(A){let e;let t=Buffer.alloc(150);try{e=rv.openSync(A,"r"),rv.readSync(e,t,0,150,0),rv.closeSync(e);}catch(A){}return tp(t.toString());};const nF="win32"===process.platform;tg=function(A,e,t){e&&!Array.isArray(e)&&(t=e,e=null);let r={command:A,args:e=e?e.slice(0):[],options:t=Object.assign({},t),file:void 0,original:{command:A,args:e}};return t.shell?r:function(A){if(!nF)return A;let e=function(A){A.file=th(A);let e=A.file&&tf(A.file);return e?(A.args.unshift(A.file),A.command=e,th(A)):A.file;}(A),t=!/\.(?:com|exe)$/i.test(e);if(A.options.forceShell||t){let t=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i.test(e);A.command=rF.normalize(A.command),A.command=tB(A.command),A.args=A.args.map(A=>td(A,t));let r=[A.command].concat(A.args).join(" ");A.args=["/d","/s","/c",`"${r}"`],A.command=process.env.comspec||"cmd.exe",A.options.windowsVerbatimArguments=!0;}return A;}(r);},tm={};const nv="win32"===process.platform;tm={hookChildProcess:function(A,e){if(!nv)return;let t=A.emit;A.emit=function(r,n){if("exit"===r){let r=h(n,e,"spawn");if(r)return t.call(A,"error",r);}return t.apply(A,arguments);};},verifyENOENT:h,verifyENOENTSync:function(A,e){return nv&&1===A&&!e.file?g(e.original,"spawnSync"):null;},notFoundError:g},(tc=Q).spawn=Q,tc.sync=function(A,e,t){let r=tg(A,e,t),n=r9.spawnSync(r.command,r.args,r.options);return n.error=n.error||tm.verifyENOENTSync(n.status,r),n;},tc._parse=tg,tc._enoent=tm;const nL=({cwd:A=l(r7).cwd(),path:e=l(r7).env[C()],preferLocal:t=!0,execPath:r=l(r7).execPath,addExecPath:n=!0}={})=>{let i=A instanceof URL?(0,nA.fileURLToPath)(A):A,o=l(r5).resolve(i),s=[];return t&&nU(s,o),n&&nx(s,r,o),[...s,e].join(l(r5).delimiter);},nU=(A,e)=>{let t;for(;t!==e;)A.push(l(r5).join(e,"node_modules/.bin")),t=e,e=l(r5).resolve(e,"..");},nx=(A,e,t)=>{let r=e instanceof URL?(0,nA.fileURLToPath)(e):e;A.push(l(r5).resolve(t,r,".."));},nT=({env:A=l(r7).env,...e}={})=>{let t=C({env:A={...A}});return e.path=A[t],A[t]=nL(e),A;},nM=(A,e,t,r)=>{if("length"===t||"prototype"===t||"arguments"===t||"caller"===t)return;let n=Object.getOwnPropertyDescriptor(A,t),i=Object.getOwnPropertyDescriptor(e,t);(nG(n,i)||!r)&&Object.defineProperty(A,t,i);},nG=function(A,e){return void 0===A||A.configurable||A.writable===e.writable&&A.enumerable===e.enumerable&&A.configurable===e.configurable&&(A.writable||A.value===e.value);},nY=(A,e)=>{let t=Object.getPrototypeOf(e);t!==Object.getPrototypeOf(A)&&Object.setPrototypeOf(A,t);},nO=(A,e)=>`/* Wrapped ${A}*/ ${e}`,nH=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),nJ=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),nV=(A,e,t)=>{let r=""===t?"":`with ${t.trim()}() `,n=nO.bind(null,r,e.toString());Object.defineProperty(n,"name",nJ),Object.defineProperty(A,"toString",{...nH,value:n});},nP=new WeakMap(),n_=(A,e={})=>{let t;if("function"!=typeof A)throw TypeError("Expected a function");let r=0,n=A.displayName||A.name||"",i=function(...o){if(nP.set(i,++r),1===r)t=A.apply(this,o),A=null;else if(!0===e.throw)throw Error(`Function \`${n}\` can only be called once`);return t;};return!function(A,e,{ignoreNonConfigurable:t=!1}={}){let{name:r}=A;for(let r of Reflect.ownKeys(e))nM(A,e,r,t);nY(A,e),nV(A,e,r);}(i,A),nP.set(i,r),i;};n_.callCount=A=>{if(!nP.has(A))throw Error(`The given function \`${A.name}\` is not wrapped by the \`onetime\` package`);return nP.get(A);},tw=n_;const nW=()=>Array.from({length:nX-nj+1},nq),nq=(A,e)=>({name:"SIGRT"+(e+1),number:nj+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),nj=34,nX=64,n$=[{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"}],nZ=()=>[...n$,...nW()].map(nK),nK=({name:A,number:e,description:t,action:r,forced:n=!1,standard:i})=>{let{signals:{[A]:o}}=ne.constants,s=void 0!==o;return{name:A,number:s?o:e,description:t,supported:s,action:r,forced:n,standard:i};},nz=Object.fromEntries(nZ().map(({name:A,number:e,description:t,supported:r,action:n,forced:i,standard:o})=>[A,{name:A,number:e,description:t,supported:r,action:n,forced:i,standard:o}])),n0=(A,e)=>{let t=n1(A,e);if(void 0===t)return{};let{name:r,description:n,supported:i,action:o,forced:s,standard:a}=t;return{[A]:{name:r,number:A,description:n,supported:i,action:o,forced:s,standard:a}};},n1=(A,e)=>{let t=e.find(({name:e})=>ne.constants.signals[e]===A);return void 0!==t?t:e.find(e=>e.number===A);};(()=>{let A=nZ();return Object.assign({},...Array.from({length:nX+1},(e,t)=>n0(t,A)));})();const n2=({timedOut:A,timeout:e,errorCode:t,signal:r,signalDescription:n,exitCode:i,isCanceled:o})=>A?`timed out after ${e} milliseconds`:o?"was canceled":void 0!==t?"failed with "+t:void 0!==r?`was killed with ${r} (${n})`:void 0!==i?"failed with exit code "+i:"failed",n4=({stdout:A,stderr:e,all:t,error:r,signal:n,exitCode:i,command:o,escapedCommand:s,timedOut:a,isCanceled:E,killed:c,parsed:{options:{timeout:g,cwd:h=l(r7).cwd()}}})=>{i=null===i?void 0:i;let Q=void 0===(n=null===n?void 0:n)?void 0:nz[n].description,u=n2({timedOut:a,timeout:g,errorCode:r&&r.code,signal:n,signalDescription:Q,exitCode:i,isCanceled:E}),C=`Command ${u}: ${o}`,I="[object Error]"===Object.prototype.toString.call(r),B=I?`${C} ${r.message}`:C,d=[B,e,A].filter(Boolean).join("\n");return I?(r.originalMessage=r.message,r.message=d):r=Error(d),r.shortMessage=B,r.command=o,r.escapedCommand=s,r.exitCode=i,r.signal=n,r.signalDescription=Q,r.stdout=A,r.stderr=e,r.cwd=h,void 0!==t&&(r.all=t),"bufferedData"in r&&delete r.bufferedData,r.failed=!0,r.timedOut=!!a,r.isCanceled=E,r.killed=c&&!a,r;},n9=["stdin","stdout","stderr"],n8=A=>n9.some(e=>void 0!==A[e]),n3=A=>{if(!A)return;let{stdio:e}=A;if(void 0===e)return n9.map(e=>A[e]);if(n8(A))throw Error("It's not possible to provide `stdio` in combination with one of "+n9.map(A=>`\`${A}\``).join(", "));if("string"==typeof e)return e;if(!Array.isArray(e))throw TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);return Array.from({length:Math.max(e.length,n9.length)},(A,t)=>e[t]);};tR={};const n5=function(A){return A&&"object"==typeof A&&"function"==typeof A.removeListener&&"function"==typeof A.emit&&"function"==typeof A.reallyExit&&"function"==typeof A.listeners&&"function"==typeof A.kill&&"number"==typeof A.pid&&"function"==typeof A.on;};if(n5(tD=nr.process)){var n6,n7=no("dVIKq"),iA=/^win/i.test(tD.platform),ie=rG;"function"!=typeof ie&&(ie=ie.EventEmitter),tD.__signal_exit_emitter__?n6=tD.__signal_exit_emitter__:((n6=tD.__signal_exit_emitter__=new ie()).count=0,n6.emitted={}),n6.infinite||(n6.setMaxListeners(1/0),n6.infinite=!0);var it=function(){io&&n5(nr.process)&&(io=!1,n7.forEach(function(A){try{tD.removeListener(A,ii[A]);}catch(A){}}),tD.emit=iE,tD.reallyExit=ia,n6.count-=1);};(tR=function(A,e){if(!n5(nr.process))return function(){};rY.equal(typeof A,"function","a callback must be provided for exit handler"),!1===io&&is();var t="exit";return e&&e.alwaysLast&&(t="afterexit"),n6.on(t,A),function(){n6.removeListener(t,A),0===n6.listeners("exit").length&&0===n6.listeners("afterexit").length&&it();};}).unload=it;var ir=function(A,e,t){n6.emitted[A]||(n6.emitted[A]=!0,n6.emit(A,e,t));},ii={};n7.forEach(function(A){ii[A]=function(){n5(nr.process)&&tD.listeners(A).length===n6.count&&(it(),ir("exit",null,A),ir("afterexit",null,A),iA&&"SIGHUP"===A&&(A="SIGINT"),tD.kill(tD.pid,A));};}),tR.signals=function(){return n7;};var io=!1,is=function(){!io&&n5(nr.process)&&(io=!0,n6.count+=1,n7=n7.filter(function(A){try{return tD.on(A,ii[A]),!0;}catch(A){return!1;}}),tD.emit=ic,tD.reallyExit=il);};tR.load=is;var ia=tD.reallyExit,il=function(A){n5(nr.process)&&(tD.exitCode=A||0,ir("exit",tD.exitCode,null),ir("afterexit",tD.exitCode,null),ia.call(tD,tD.exitCode));},iE=tD.emit,ic=function(A,e){if(!("exit"===A&&n5(nr.process)))return iE.apply(this,arguments);void 0!==e&&(tD.exitCode=e);var t=iE.apply(this,arguments);return ir("exit",tD.exitCode,null),ir("afterexit",tD.exitCode,null),t;};}else tR=function(){return function(){};};const ig=(A,e="SIGTERM",t={})=>{let r=A(e);return ih(A,e,t,r),r;},ih=(A,e,t,r)=>{if(!iQ(e,t,r))return;let n=setTimeout(()=>{A("SIGKILL");},iC(t));n.unref&&n.unref();},iQ=(A,{forceKillAfterTimeout:e},t)=>iu(A)&&!1!==e&&t,iu=A=>A===l(ne).constants.signals.SIGTERM||"string"==typeof A&&"SIGTERM"===A.toUpperCase(),iC=({forceKillAfterTimeout:A=!0})=>{if(!0===A)return 5e3;if(!Number.isFinite(A)||A<0)throw TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${A}\` (${typeof A})`);return A;},iI=(A,e)=>{A.kill()&&(e.isCanceled=!0);},iB=(A,e,t)=>{A.kill(e),t(Object.assign(Error("Timed out"),{timedOut:!0,signal:e}));},id=(A,{timeout:e,killSignal:t="SIGTERM"},r)=>{let n;return 0===e||void 0===e?r:Promise.race([new Promise((r,i)=>{n=setTimeout(()=>{iB(A,t,i);},e);}),r.finally(()=>{clearTimeout(n);})]);},ip=({timeout:A})=>{if(void 0!==A&&(!Number.isFinite(A)||A<0))throw TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${A}\` (${typeof A})`);},iy=async(A,{cleanup:e,detached:t},r)=>{if(!e||t)return r;let n=l(tR)(()=>{A.kill();});return r.finally(()=>{n();});},im=A=>A instanceof r6.ChildProcess&&"function"==typeof A.then,iw=(A,e,t)=>{if("string"==typeof t)return A[e].pipe((0,r4.createWriteStream)(t)),A;if(B(t))return A[e].pipe(t),A;if(!im(t))throw TypeError("The second argument must be a string, a stream or an Execa child process.");if(!B(t.stdin))throw TypeError("The target child process's stdin must be available.");return A[e].pipe(t.stdin),t;},iR=A=>{null!==A.stdout&&(A.pipeStdout=iw.bind(void 0,A,"stdout")),null!==A.stderr&&(A.pipeStderr=iw.bind(void 0,A,"stderr")),void 0!==A.all&&(A.pipeAll=iw.bind(void 0,A,"all"));};tb={},tk=rJ.constants,tN=rO.promisify,tS={},tF=rH.PassThrough,tS=A=>{let{array:e}=A={...A},{encoding:t}=A,r="buffer"===t,n=!1;e?n=!(t||r):t=t||"utf8",r&&(t=null);let i=new tF({objectMode:n});t&&i.setEncoding(t);let o=0,s=[];return i.on("data",A=>{s.push(A),n?o=s.length:o+=A.length;}),i.getBufferedValue=()=>e?s:r?Buffer.concat(s,o):s.join(""),i.getBufferedLength=()=>o,i;};const iD=tN(rH.pipeline);class ib extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError";}}(tb=d).buffer=(A,e)=>d(A,{...e,encoding:"buffer"}),tb.array=(A,e)=>d(A,{...e,array:!0}),tb.MaxBufferError=ib,tv={},tL=rH.PassThrough,tv=function(){function A(n){return Array.isArray(n)?n.forEach(A):(t.push(n),n.once("end",e.bind(null,n)),n.once("error",r.emit.bind(r,"error")),n.pipe(r,{end:!1})),this;}function e(A){!(t=t.filter(function(e){return e!==A;})).length&&r.readable&&r.end();}var t=[],r=new tL({objectMode:!0});return r.setMaxListeners(0),r.add=A,r.isEmpty=function(){return 0==t.length;},r.on("unpipe",e),Array.prototype.slice.call(arguments).forEach(A),r;};const ik=A=>{if(void 0!==A)throw TypeError("The `input` and `inputFile` options cannot be both set.");},iN=({input:A,inputFile:e})=>"string"!=typeof e?A:(ik(A),(0,r4.readFileSync)(e)),iS=A=>{let e=iN(A);if(I(e))throw TypeError("The `input` option cannot be a stream in sync mode");return e;},iF=({input:A,inputFile:e})=>"string"!=typeof e?A:(ik(A),(0,r4.createReadStream)(e)),iv=(A,e)=>{let t=iF(e);void 0!==t&&(I(t)?t.pipe(A.stdin):A.stdin.end(t));},iL=(A,{all:e})=>{if(!e||!A.stdout&&!A.stderr)return;let t=l(tv)();return A.stdout&&t.add(A.stdout),A.stderr&&t.add(A.stderr),t;},iU=async(A,e)=>{if(A&&void 0!==e){A.destroy();try{return await e;}catch(A){return A.bufferedData;}}},ix=(A,{encoding:e,buffer:t,maxBuffer:r})=>{if(A&&t)return e?l(tb)(A,{encoding:e,maxBuffer:r}):l(tb).buffer(A,{maxBuffer:r});},iT=async({stdout:A,stderr:e,all:t},{encoding:r,buffer:n,maxBuffer:i},o)=>{let s=ix(A,{encoding:r,buffer:n,maxBuffer:i}),a=ix(e,{encoding:r,buffer:n,maxBuffer:i}),l=ix(t,{encoding:r,buffer:n,maxBuffer:2*i});try{return await Promise.all([o,s,a,l]);}catch(r){return Promise.all([{error:r,signal:r.signal,timedOut:r.timedOut},iU(A,s),iU(e,a),iU(t,l)]);}},iM=(async()=>{})().constructor.prototype,iG=["then","catch","finally"].map(A=>[A,Reflect.getOwnPropertyDescriptor(iM,A)]),iY=(A,e)=>{for(let[t,r]of iG){let n="function"==typeof e?(...A)=>Reflect.apply(r.value,e(),A):r.value.bind(e);Reflect.defineProperty(A,t,{...r,value:n});}},iO=A=>new Promise((e,t)=>{A.on("exit",(A,t)=>{e({exitCode:A,signal:t});}),A.on("error",A=>{t(A);}),A.stdin&&A.stdin.on("error",A=>{t(A);});}),iH=(A,e=[])=>Array.isArray(e)?[A,...e]:[A],iJ=A=>"string"!=typeof A||/^[\w.-]+$/.test(A)?A:`"${A.replace(/"/g,'\\"')}"`,iV=(A,e)=>iH(A,e).join(" "),iP=(A,e)=>iH(A,e).map(A=>iJ(A)).join(" "),i_=A=>{let e=[];for(let t of A.trim().split(/ +/g)){let A=e[e.length-1];A&&A.endsWith("\\")?e[e.length-1]=`${A.slice(0,-1)} ${t}`:e.push(t);}return e;},iW=A=>{let e=typeof A;if("string"===e)return A;if("number"===e)return A+"";if("object"===e&&null!==A&&!(A instanceof r6.ChildProcess)&&"stdout"in A){let e=typeof A.stdout;if("string"===e)return A.stdout;if((0,r3.Buffer).isBuffer(A.stdout))return A.stdout.toString();throw TypeError(`Unexpected "${e}" stdout in template expression`);}throw TypeError(`Unexpected "${e}" in template expression`);},iq=(A,e,t)=>t||0===A.length||0===e.length?[...A,...e]:[...A.slice(0,-1),`${A[A.length-1]}${e[0]}`,...e.slice(1)],ij=({templates:A,expressions:e,tokens:t,index:r,template:n})=>{let i=null!=n?n:A.raw[r],o=iq(t,i.split(/ +/g).filter(Boolean),i.startsWith(" "));if(r===e.length)return o;let s=e[r];return iq(o,Array.isArray(s)?s.map(A=>iW(A)):[iW(s)],i.endsWith(" "));},iX=(A,e)=>{let t=[];for(let[r,n]of A.entries())t=ij({templates:A,expressions:e,tokens:t,index:r,template:n});return t;},i$=(0,rq.debuglog)("execa").enabled,iZ=(A,e)=>(A+"").padStart(e,"0"),iK=()=>{let A=new Date();return`${iZ(A.getHours(),2)}:${iZ(A.getMinutes(),2)}:${iZ(A.getSeconds(),2)}.${iZ(A.getMilliseconds(),3)}`;},iz=(A,{verbose:e})=>{e&&l(r7).stderr.write(`[${iK()}] ${A} `);},i0=({env:A,extendEnv:e,preferLocal:t,localDir:r,execPath:n})=>{let i=e?{...l(r7).env,...A}:A;return t?nT({env:i,cwd:r,execPath:n}):i;},i1=(A,e,t={})=>{let r=l(tc)._parse(A,e,t);return A=r.command,e=r.args,(t={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(t=r.options).cwd||l(r7).cwd(),execPath:l(r7).execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:i$,...t}).env=i0(t),t.stdio=n3(t),"win32"===l(r7).platform&&"cmd"===l(r5).basename(A,".exe")&&e.unshift("/q"),{file:A,args:e,options:t,parsed:r};},i2=(A,e,t)=>"string"==typeof e||(0,r3.Buffer).isBuffer(e)?A.stripFinalNewline?u(e):e:void 0===t?void 0:"",i4=({input:A,inputFile:e,stdio:t})=>void 0===A&&void 0===e&&void 0===t?{stdin:"inherit"}:{},i9=(A={})=>({preferLocal:!0,...i4(A),...A});!function A(e){function t(r,...n){if(!Array.isArray(r))return A({...e,...r});let[i,...o]=iX(r,n);return f(i,o,i9(e));}return t.sync=(A,...t)=>{if(!Array.isArray(A))throw TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[r,...n]=iX(A,t);return p(r,n,i9(e));},t;}();const i8={stdio:"inherit",shell:!0},i3=/^~(?=$|\/|\\)/;e6=no("hHq4F"),tU={},tx=no("coVwk"),tT=nt.env.npm_package_json,tG=!!((tM=nt.env.npm_config_user_agent)&&tM.startsWith("npm")),tY=!!(tT&&tT.endsWith("package.json")),tO=tG||tY,tH=!!(tM&&tM.startsWith("yarn")),tJ=tO||tH,tV=rS.homedir(),tP=process.env.XDG_CONFIG_HOME||rF.join(tV,".config","simple-update-notifier"),t_=function(A){return rF.join(tP,"".concat(A.replace("@","").replace("/","__"),".json"));},tW=function(){rv.existsSync(tP)||rv.mkdirSync(tP,{recursive:!0});},tq=function(A){var e=t_(A);try{if(!rv.existsSync(e))return;return JSON.parse(rv.readFileSync(e,"utf8")).lastUpdateCheck;}catch(A){return;}},tj=function(A){var e=t_(A);rv.writeFileSync(e,JSON.stringify({lastUpdateCheck:new Date().getTime()}));},tX=function(A,e){return N(void 0,void 0,void 0,function(){var t;return S(this,function(r){return t="https://registry.npmjs.org/-/package/".concat(A,"/dist-tags"),[2,new Promise(function(A,r){rx.get(t,function(t){var n="";t.on("data",function(A){return n+=A;}),t.on("end",function(){try{var t=JSON.parse(n)[e];t||r(Error("Error getting version")),A(t);}catch(A){r(Error("Could not parse version response"));}});}).on("error",function(A){return r(A);});})];});});},t$=function(A){var e=A.pkg,t=A.updateCheckInterval,r=void 0===t?864e5:t,n=A.distTag,i=void 0===n?"latest":n,o=A.alwaysRun,s=A.debug;return N(void 0,void 0,void 0,function(){var A,t;return S(this,function(n){switch(n.label){case 0:if(tW(),A=tq(e.name),!(o||!A||A/1\d+\.\d+/.test(A)&&+e>=17134.1184;t1=function(A){return i5?A.replace(/(\s+)/g,"\\$1"):i7(.../(\d+\.\d+)\.(\d+)/.exec(i6).splice(1))?A:A.replace(/(\s+)/g,"%20");},function(){var A,e;A=no("8CJZb"),e=function(A){return A.split("").reverse().join("");},t2=function(t,r,n){var i;return(null==r&&(r="'"),null==n&&(n="\\"),"string"!=typeof t)?t:(i=RegExp("(["+A(r)+"])(?!"+A(n)+")","g"),e(e(t).replace(i,"$1"+n)));};}.call(t2={});const oA=({timedOut:A,timeout:e,errorCode:t,signal:r,signalDescription:n,exitCode:i,isCanceled:o})=>A?`timed out after ${e} milliseconds`:o?"was canceled":void 0!==t?"failed with "+t:void 0!==r?`was killed with ${r} (${n})`:void 0!==i?"failed with exit code "+i:"failed",oe=({stdout:A,stderr:e,all:t,error:r,signal:n,exitCode:i,command:o,escapedCommand:s,timedOut:a,isCanceled:l,killed:E,parsed:{options:{timeout:c}}})=>{i=null===i?void 0:i;let g=void 0===(n=null===n?void 0:n)?void 0:nz[n].description,h=oA({timedOut:a,timeout:c,errorCode:r&&r.code,signal:n,signalDescription:g,exitCode:i,isCanceled:l}),Q=`Command ${h}: ${o}`,u="[object Error]"===Object.prototype.toString.call(r),C=u?`${Q} ${r.message}`:Q,I=[C,e,A].filter(Boolean).join("\n");return u?(r.originalMessage=r.message,r.message=I):r=Error(I),r.shortMessage=C,r.command=o,r.escapedCommand=s,r.exitCode=i,r.signal=n,r.signalDescription=g,r.stdout=A,r.stderr=e,void 0!==t&&(r.all=t),"bufferedData"in r&&delete r.bufferedData,r.failed=!0,r.timedOut=!!a,r.isCanceled=l,r.killed=E&&!a,r;},ot=["stdin","stdout","stderr"],or=A=>ot.some(e=>void 0!==A[e]),on=A=>{if(!A)return;let{stdio:e}=A;if(void 0===e)return ot.map(e=>A[e]);if(or(A))throw Error("It's not possible to provide `stdio` in combination with one of "+ot.map(A=>`\`${A}\``).join(", "));if("string"==typeof e)return e;if(!Array.isArray(e))throw TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);return Array.from({length:Math.max(e.length,ot.length)},(A,t)=>e[t]);},oi=(A,e="SIGTERM",t={})=>{let r=A(e);return oo(A,e,t,r),r;},oo=(A,e,t,r)=>{if(!os(e,t,r))return;let n=setTimeout(()=>{A("SIGKILL");},ol(t));n.unref&&n.unref();},os=(A,{forceKillAfterTimeout:e},t)=>oa(A)&&!1!==e&&t,oa=A=>A===l(ne).constants.signals.SIGTERM||"string"==typeof A&&"SIGTERM"===A.toUpperCase(),ol=({forceKillAfterTimeout:A=!0})=>{if(!0===A)return 5e3;if(!Number.isFinite(A)||A<0)throw TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${A}\` (${typeof A})`);return A;},oE=(A,e)=>{A.kill()&&(e.isCanceled=!0);},oc=(A,e,t)=>{A.kill(e),t(Object.assign(Error("Timed out"),{timedOut:!0,signal:e}));},og=(A,{timeout:e,killSignal:t="SIGTERM"},r)=>{let n;return 0===e||void 0===e?r:Promise.race([new Promise((r,i)=>{n=setTimeout(()=>{oc(A,t,i);},e);}),r.finally(()=>{clearTimeout(n);})]);},oh=({timeout:A})=>{if(void 0!==A&&(!Number.isFinite(A)||A<0))throw TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${A}\` (${typeof A})`);},oQ=async(A,{cleanup:e,detached:t},r)=>{if(!e||t)return r;let n=l(tR)(()=>{A.kill();});return r.finally(()=>{n();});},ou=A=>A instanceof r6.ChildProcess&&"function"==typeof A.then,oC=(A,e,t)=>{if("string"==typeof t)return A[e].pipe((0,r4.createWriteStream)(t)),A;if(B(t))return A[e].pipe(t),A;if(!ou(t))throw TypeError("The second argument must be a string, a stream or an Execa child process.");if(!B(t.stdin))throw TypeError("The target child process's stdin must be available.");return A[e].pipe(t.stdin),t;},oI=A=>{null!==A.stdout&&(A.pipeStdout=oC.bind(void 0,A,"stdout")),null!==A.stderr&&(A.pipeStderr=oC.bind(void 0,A,"stderr")),void 0!==A.all&&(A.pipeAll=oC.bind(void 0,A,"all"));},oB=A=>{if(void 0!==A)throw TypeError("The `input` and `inputFile` options cannot be both set.");},od=({input:A,inputFile:e})=>"string"!=typeof e?A:(oB(A),(0,r4.readFileSync)(e)),of=A=>{let e=od(A);if(I(e))throw TypeError("The `input` option cannot be a stream in sync mode");return e;},op=({input:A,inputFile:e})=>"string"!=typeof e?A:(oB(A),(0,r4.createReadStream)(e)),oy=(A,e)=>{let t=op(e);void 0!==t&&(I(t)?t.pipe(A.stdin):A.stdin.end(t));},om=(A,{all:e})=>{if(!e||!A.stdout&&!A.stderr)return;let t=l(tv)();return A.stdout&&t.add(A.stdout),A.stderr&&t.add(A.stderr),t;},ow=async(A,e)=>{if(A&&void 0!==e){A.destroy();try{return await e;}catch(A){return A.bufferedData;}}},oR=(A,{encoding:e,buffer:t,maxBuffer:r})=>{if(A&&t)return e?l(tb)(A,{encoding:e,maxBuffer:r}):l(tb).buffer(A,{maxBuffer:r});},oD=async({stdout:A,stderr:e,all:t},{encoding:r,buffer:n,maxBuffer:i},o)=>{let s=oR(A,{encoding:r,buffer:n,maxBuffer:i}),a=oR(e,{encoding:r,buffer:n,maxBuffer:i}),l=oR(t,{encoding:r,buffer:n,maxBuffer:2*i});try{return await Promise.all([o,s,a,l]);}catch(r){return Promise.all([{error:r,signal:r.signal,timedOut:r.timedOut},ow(A,s),ow(e,a),ow(t,l)]);}},ob=(async()=>{})().constructor.prototype,ok=["then","catch","finally"].map(A=>[A,Reflect.getOwnPropertyDescriptor(ob,A)]),oN=(A,e)=>{for(let[t,r]of ok){let n="function"==typeof e?(...A)=>Reflect.apply(r.value,e(),A):r.value.bind(e);Reflect.defineProperty(A,t,{...r,value:n});}},oS=A=>new Promise((e,t)=>{A.on("exit",(A,t)=>{e({exitCode:A,signal:t});}),A.on("error",A=>{t(A);}),A.stdin&&A.stdin.on("error",A=>{t(A);});}),oF=(A,e=[])=>Array.isArray(e)?[A,...e]:[A],ov=A=>"string"!=typeof A||/^[\w.-]+$/.test(A)?A:`"${A.replace(/"/g,'\\"')}"`,oL=(A,e)=>oF(A,e).join(" "),oU=(A,e)=>oF(A,e).map(A=>ov(A)).join(" "),ox=A=>{let e=typeof A;if("string"===e)return A;if("number"===e)return A+"";if("object"===e&&null!==A&&!(A instanceof r6.ChildProcess)&&"stdout"in A){let e=typeof A.stdout;if("string"===e)return A.stdout;if((0,r3.Buffer).isBuffer(A.stdout))return A.stdout.toString();throw TypeError(`Unexpected "${e}" stdout in template expression`);}throw TypeError(`Unexpected "${e}" in template expression`);},oT=(A,e,t)=>t||0===A.length||0===e.length?[...A,...e]:[...A.slice(0,-1),`${A[A.length-1]}${e[0]}`,...e.slice(1)],oM=({templates:A,expressions:e,tokens:t,index:r,template:n})=>{let i=null!=n?n:A.raw[r],o=oT(t,i.split(/ +/g).filter(Boolean),i.startsWith(" "));if(r===e.length)return o;let s=e[r];return oT(o,Array.isArray(s)?s.map(A=>ox(A)):[ox(s)],i.endsWith(" "));},oG=(A,e)=>{let t=[];for(let[r,n]of A.entries())t=oM({templates:A,expressions:e,tokens:t,index:r,template:n});return t;},oY=(0,rq.debuglog)("execa").enabled,oO=(A,e)=>(A+"").padStart(e,"0"),oH=()=>{let A=new Date();return`${oO(A.getHours(),2)}:${oO(A.getMinutes(),2)}:${oO(A.getSeconds(),2)}.${oO(A.getMilliseconds(),3)}`;},oJ=(A,{verbose:e})=>{e&&l(r7).stderr.write(`[${oH()}] ${A} `);},oV=({env:A,extendEnv:e,preferLocal:t,localDir:r,execPath:n})=>{let i=e?{...l(r7).env,...A}:A;return t?function({env:A=l(r7).env,...e}={}){let t=T({env:A={...A}});return e.path=A[t],A[t]=function(A={}){let e;let{cwd:t=l(r7).cwd(),path:r=l(r7).env[T()],execPath:n=l(r7).execPath}=A,i=n instanceof URL?l(nA).fileURLToPath(n):n,o=t instanceof URL?l(nA).fileURLToPath(t):t,s=l(r5).resolve(o),a=[];for(;e!==s;)a.push(l(r5).join(s,"node_modules/.bin")),e=s,s=l(r5).resolve(s,"..");return a.push(l(r5).resolve(o,i,"..")),[...a,r].join(l(r5).delimiter);}(e),A;}({env:i,cwd:r,execPath:n}):i;},oP=(A,e,t={})=>{let r=l(tc)._parse(A,e,t);return A=r.command,e=r.args,(t={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(t=r.options).cwd||l(r7).cwd(),execPath:l(r7).execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:oY,...t}).env=oV(t),t.stdio=on(t),"win32"===l(r7).platform&&"cmd"===l(r5).basename(A,".exe")&&e.unshift("/q"),{file:A,args:e,options:t,parsed:r};},o_=(A,e,t)=>"string"==typeof e||(0,r3.Buffer).isBuffer(e)?A.stripFinalNewline?u(e):e:void 0===t?void 0:"",oW=({input:A,inputFile:e,stdio:t})=>void 0===A&&void 0===e&&void 0===t?{stdin:"inherit"}:{},oq=(A={})=>({preferLocal:!0,...oW(A),...A});!function A(e){function t(r,...n){if(!Array.isArray(r))return A({...e,...r});let[i,...o]=oG(r,n);return M(i,o,oq(e));}return t.sync=(A,...t)=>{if(!Array.isArray(A))throw TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[r,...n]=oG(A,t);return function(A,e,t){let r;let n=oP(A,e,t),i=oL(A,e),o=oU(A,e);oJ(o,n.options);let s=of(n.options);try{r=l(r6).spawnSync(n.file,n.args,{...n.options,input:s});}catch(A){throw oe({error:A,stdout:"",stderr:"",all:"",command:i,escapedCommand:o,parsed:n,timedOut:!1,isCanceled:!1,killed:!1});}let a=o_(n.options,r.stdout,r.error),E=o_(n.options,r.stderr,r.error);if(r.error||0!==r.status||null!==r.signal){let A=oe({stdout:a,stderr:E,error:r.error,signal:r.signal,exitCode:r.status,command:i,escapedCommand:o,parsed:n,timedOut:r.error&&"ETIMEDOUT"===r.error.code,isCanceled:!1,killed:null!==r.signal});if(!n.options.reject)return A;throw A;}return{command:i,escapedCommand:o,exitCode:0,stdout:a,stderr:E,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};}(r,n,oq(e));},t;}(),t0=no("6t4SD");const oj={shouldEscapeSpace:!1,shouldAddOnlyIfNotDefined:!1},oX=[/\/usr\/bin\/?/,/\/usr\/local\/bin\/?/],o$=k("~/.cpprc");let oZ=!1;e6=no("hHq4F"),t4=no("f44Uw");const{appendFile:oK}=rv.promises;let oz=!1,o0=!1;const o1=["E: Could not get lock","dpkg: error processing archive","dpkg: error: dpkg status database is locked by another process"];(e9=t9||(t9={}))[e9.NameDashVersion=0]="NameDashVersion",e9[e9.NameEqualsVersion=1]="NameEqualsVersion",e9[e9.Name=2]="Name",e9[e9.None=3]="None",tz=no("1o3Gj"),t8=no("eAXk4"),t3=no("zdagz"),t8=no("eAXk4");let o2=!1;e6=no("hHq4F"),t0=no("6t4SD"),t8=no("eAXk4");let o4=!1;e6=no("hHq4F"),e6=no("hHq4F");let o9=!1,o8=!1;const o3=/Version\s*:\s*(.*)/g;t5={},t6=rF.resolve(__dirname,"../../node_modules/@actions/tool-cache/lib"),t7=t5&&t5.__createBinding||(Object.create?function(A,e,t,r){void 0===r&&(r=t),Object.defineProperty(A,r,{enumerable:!0,get:function(){return e[t];}});}:function(A,e,t,r){void 0===r&&(r=t),A[r]=e[t];}),rA=t5&&t5.__setModuleDefault||(Object.create?function(A,e){Object.defineProperty(A,"default",{enumerable:!0,value:e});}:function(A,e){A.default=e;}),re=t5&&t5.__importStar||function(A){if(A&&A.__esModule)return A;var e={};if(null!=A)for(var t in A)"default"!==t&&Object.hasOwnProperty.call(A,t)&&t7(e,A,t);return rA(e,A),e;},rt=t5&&t5.__awaiter||function(A,e,t,r){return new(t||(t=Promise))(function(n,i){function o(A){try{a(r.next(A));}catch(A){i(A);}}function s(A){try{a(r.throw(A));}catch(A){i(A);}}function a(A){var e;A.done?n(A.value):((e=A.value)instanceof t?e:new t(function(A){A(e);})).then(o,s);}a((r=r.apply(A,e||[])).next());});},rr=t5&&t5.__importDefault||function(A){return A&&A.__esModule?A:{default:A};},Object.defineProperty(t5,"__esModule",{value:!0}),t5.evaluateVersions=t5.isExplicitVersion=t5.findFromManifest=t5.getManifestFromRepo=t5.findAllVersions=t5.find=t5.cacheFile=t5.cacheDir=t5.extractZip=t5.extractXar=t5.extractTar=t5.extract7z=t5.downloadTool=t5.HTTPError=void 0;const o5=re(no("1o3Gj")),o6=re(no("zdagz")),o7=re(rv),sA=re(no("gn8Si")),se=re(rS),st=re(rF),sr=re(no("eamjo")),sn=re(no("0306Y")),si=re(rH),so=re(rO),ss=rr(no("GX8zo"));rn=no("bHzmH"),ro=(ri={},ri.__createBinding||(Object.create?function(A,e,t,r){void 0===r&&(r=t),Object.defineProperty(A,r,{enumerable:!0,get:function(){return e[t];}});}:function(A,e,t,r){void 0===r&&(r=t),A[r]=e[t];})),rs=ri&&ri.__setModuleDefault||(Object.create?function(A,e){Object.defineProperty(A,"default",{enumerable:!0,value:e});}:function(A,e){A.default=e;}),ra=ri&&ri.__importStar||function(A){if(A&&A.__esModule)return A;var e={};if(null!=A)for(var t in A)"default"!==t&&Object.hasOwnProperty.call(A,t)&&ro(e,A,t);return rs(e,A),e;},rl=ri&&ri.__awaiter||function(A,e,t,r){return new(t||(t=Promise))(function(n,i){function o(A){try{a(r.next(A));}catch(A){i(A);}}function s(A){try{a(r.throw(A));}catch(A){i(A);}}function a(A){var e;A.done?n(A.value):((e=A.value)instanceof t?e:new t(function(A){A(e);})).then(o,s);}a((r=r.apply(A,e||[])).next());});},Object.defineProperty(ri,"__esModule",{value:!0}),ri.RetryHelper=void 0;const sa=ra(no("1o3Gj"));ri.RetryHelper=class{constructor(A,e,t){if(A<1)throw Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=A,this.minSeconds=Math.floor(e),this.maxSeconds=Math.floor(t),this.minSeconds>this.maxSeconds)throw Error("min seconds should be less than or equal to max seconds");}execute(A,e){return rl(this,void 0,void 0,function*(){let t=1;for(;tsetTimeout(e,1e3*A));});}};class sl extends Error{constructor(A){super("Unexpected HTTP response: "+A),this.httpStatusCode=A,Object.setPrototypeOf(this,new.target.prototype);}}t5.HTTPError=sl;const sE="win32"===process.platform,sc="darwin"===process.platform;t5.downloadTool=function(A,e,t,r){return rt(this,void 0,void 0,function*(){e=e||st.join(Ad(),ss.default()),yield o6.mkdirP(st.dirname(e)),o5.debug("Downloading "+A),o5.debug("Destination "+e);let n=Af("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),i=Af("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),o=new ri.RetryHelper(3,n,i);return yield o.execute(()=>rt(this,void 0,void 0,function*(){return yield function(A,e,t,r){return rt(this,void 0,void 0,function*(){if(o7.existsSync(e))throw Error(`Destination file path ${e} already exists`);let n=new sr.HttpClient("actions/tool-cache",[],{allowRetries:!1});t&&(o5.debug("set auth"),void 0===r&&(r={}),r.authorization=t);let i=yield n.get(A,r);if(200!==i.message.statusCode){let e=new sl(i.message.statusCode);throw o5.debug(`Failed to download from "${A}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),e;}let o=so.promisify(si.pipeline),s=Af("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>i.message)(),a=!1;try{return yield o(s,o7.createWriteStream(e)),o5.debug("download complete"),a=!0,e;}finally{if(!a){o5.debug("download failed");try{yield o6.rmRF(e);}catch(A){o5.debug(`Failed to delete '${e}'. ${A.message}`);}}}});}(A,e||"",t,r);}),A=>!(A instanceof sl)||!A.httpStatusCode||!(A.httpStatusCode<500)||408===A.httpStatusCode||429===A.httpStatusCode);});},t5.extract7z=function(A,e,t){return rt(this,void 0,void 0,function*(){rY.ok(sE,"extract7z() not supported on current OS"),rY.ok(A,'parameter "file" is required'),e=yield Ah(e);let r=process.cwd();if(process.chdir(e),t)try{let e=o5.isDebug()?"-bb1":"-bb0";yield rn.exec(`"${t}"`,["x",e,"-bd","-sccUTF-8",A],{silent:!0});}finally{process.chdir(r);}else{let t=st.join(t6,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,""),n=A.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),o=`& '${t}' -Source '${n}' -Target '${i}'`;try{let A=yield o6.which("powershell",!0);yield rn.exec(`"${A}"`,["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",o],{silent:!0});}finally{process.chdir(r);}}return e;});},t5.extractTar=function(A,e,t="xz"){return rt(this,void 0,void 0,function*(){let r;if(!A)throw Error("parameter 'file' is required");e=yield Ah(e),o5.debug("Checking tar --version");let n="";yield rn.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:A=>n+=A.toString(),stderr:A=>n+=A.toString()}}),o5.debug(n.trim());let i=n.toUpperCase().includes("GNU TAR");r=t instanceof Array?t:[t],o5.isDebug()&&!t.includes("v")&&r.push("-v");let o=e,s=A;return sE&&i&&(r.push("--force-local"),o=e.replace(/\\/g,"/"),s=A.replace(/\\/g,"/")),i&&(r.push("--warning=no-unknown-keyword"),r.push("--overwrite")),r.push("-C",o,"-f",s),yield rn.exec("tar",r),e;});},t5.extractXar=function(A,e,t=[]){return rt(this,void 0,void 0,function*(){let r;rY.ok(sc,"extractXar() not supported on current OS"),rY.ok(A,'parameter "file" is required'),e=yield Ah(e),(r=t instanceof Array?t:[t]).push("-x","-C",e,"-f",A),o5.isDebug()&&r.push("-v");let n=yield o6.which("xar",!0);return yield rn.exec(`"${n}"`,Array.from(new Set(r))),e;});},t5.extractZip=function(A,e){return rt(this,void 0,void 0,function*(){if(!A)throw Error("parameter 'file' is required");return e=yield Ah(e),sE?yield function(A,e){return rt(this,void 0,void 0,function*(){let t=A.replace(/'/g,"''").replace(/"|\n|\r/g,""),r=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),n=yield o6.which("pwsh",!1);if(n){let A=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ; try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${t}', '${r}', $true) } catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${t}' -DestinationPath '${r}' -Force } else { throw $_ } } ;`;o5.debug("Using pwsh at path: "+n),yield rn.exec(`"${n}"`,["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",A]);}else{let A=`$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 '${t}' -DestinationPath '${r}' -Force } else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${t}', '${r}', $true) }`,e=yield o6.which("powershell",!0);o5.debug("Using powershell at path: "+e),yield rn.exec(`"${e}"`,["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",A]);}});}(A,e):yield function(A,e){return rt(this,void 0,void 0,function*(){let t=yield o6.which("unzip",!0),r=[A];o5.isDebug()||r.unshift("-q"),r.unshift("-o"),yield rn.exec(`"${t}"`,r,{cwd:e});});}(A,e),e;});},t5.cacheDir=function(A,e,t,r){return rt(this,void 0,void 0,function*(){if(t=sn.clean(t)||t,r=r||se.arch(),o5.debug(`Caching tool ${e} ${t} ${r}`),o5.debug("source dir: "+A),!o7.statSync(A).isDirectory())throw Error("sourceDir is not a directory");let n=yield AQ(e,t,r);for(let e of o7.readdirSync(A)){let t=st.join(A,e);yield o6.cp(t,n,{recursive:!0});}return Au(e,t,r),n;});},t5.cacheFile=function(A,e,t,r,n){return rt(this,void 0,void 0,function*(){if(r=sn.clean(r)||r,n=n||se.arch(),o5.debug(`Caching tool ${t} ${r} ${n}`),o5.debug("source file: "+A),!o7.statSync(A).isFile())throw Error("sourceFile is not a file");let i=yield AQ(t,r,n),o=st.join(i,e);return o5.debug("destination file "+o),yield o6.cp(A,o),Au(t,r,n),i;});},t5.find=function(A,e,t){if(!A)throw Error("toolName parameter is required");if(!e)throw Error("versionSpec parameter is required");t=t||se.arch(),AC(e)||(e=AI(Ag(A,t),e));let r="";if(e){e=sn.clean(e)||"";let n=st.join(AB(),A,e,t);o5.debug("checking cache: "+n),o7.existsSync(n)&&o7.existsSync(`${n}.complete`)?(o5.debug(`Found tool in cache ${A} ${e} ${t}`),r=n):o5.debug("not found");}return r;},t5.findAllVersions=Ag,t5.getManifestFromRepo=function(A,e,t,r="master"){return rt(this,void 0,void 0,function*(){let n=[],i=`https://api.github.com/repos/${A}/${e}/git/trees/${r}`,o=new sr.HttpClient("tool-cache"),s={};t&&(o5.debug("set auth"),s.authorization=t);let a=yield o.getJson(i,s);if(!a.result)return n;let l="";for(let A of a.result.tree)if("versions-manifest.json"===A.path){l=A.url;break;}s.accept="application/vnd.github.VERSION.raw";let E=yield(yield o.get(l,s)).readBody();if(E){E=E.replace(/^\uFEFF/,"");try{n=JSON.parse(E);}catch(A){o5.debug("Invalid json");}}return n;});},t5.findFromManifest=function(A,e,t,r=se.arch()){return rt(this,void 0,void 0,function*(){return yield sA._findMatch(A,e,t,r);});},t5.isExplicitVersion=AC,t5.evaluateVersions=AI,t8=no("eAXk4"),rE=no("6v1Be"),rc=no("hlfY9"),t3=no("zdagz"),e6=no("hHq4F"),e6=no("hHq4F"),t8=no("eAXk4"),e5=no("dAuy6"),t0=no("6t4SD"),Object.defineProperty(rg={},"__esModule",{value:!0}),rg.retryAsPromised=rg.TimeoutError=void 0;class sg extends Error{constructor(A,e){super(A),this.name="TimeoutError",this.previous=e;}}rg.TimeoutError=sg,rg.retryAsPromised=Ab,rg.default=Ab;let sh=!1;tz=no("1o3Gj"),rh={isEqual:!0,isMatchingKey:!0,isPromise:!0,maxSize:!0,onCacheAdd:!0,onCacheChange:!0,onCacheHit:!0,transformKey:!0},rQ=Array.prototype.slice,ru=function(){function A(A){this.keys=[],this.values=[],this.options=A;var e="function"==typeof A.isMatchingKey;e?this.getKeyIndex=this._getKeyIndexFromMatchingKey:A.maxSize>1?this.getKeyIndex=this._getKeyIndexForMany:this.getKeyIndex=this._getKeyIndexForSingle,this.canTransformKey="function"==typeof A.transformKey,this.shouldCloneArguments=this.canTransformKey||e,this.shouldUpdateOnAdd="function"==typeof A.onCacheAdd,this.shouldUpdateOnChange="function"==typeof A.onCacheChange,this.shouldUpdateOnHit="function"==typeof A.onCacheHit;}return Object.defineProperty(A.prototype,"size",{get:function(){return this.keys.length;},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"snapshot",{get:function(){return{keys:AF(this.keys),size:this.size,values:AF(this.values)};},enumerable:!1,configurable:!0}),A.prototype._getKeyIndexFromMatchingKey=function(A){var e=this.options,t=e.isMatchingKey,r=e.maxSize,n=this.keys,i=n.length;if(!i)return-1;if(t(n[0],A))return 0;if(r>1){for(var o=1;i>o;o++)if(t(n[o],A))return o;}return-1;},A.prototype._getKeyIndexForMany=function(A){var e,t,r=this.options.isEqual,n=this.keys,i=n.length;if(!i)return-1;if(1===i)return this._getKeyIndexForSingle(A);var o=A.length;if(o>1){for(var s=0;i>s;s++)if((e=n[s]).length===o){for(t=0;o>t&&r(e[t],A[t]);t++);if(t===o)return s;}}else for(var s=0;i>s;s++)if((e=n[s]).length===o&&r(e[0],A[0]))return s;return-1;},A.prototype._getKeyIndexForSingle=function(A){var e=this.keys;if(!e.length)return-1;var t=e[0],r=t.length;if(A.length!==r)return-1;var n=this.options.isEqual;if(r>1){for(var i=0;r>i;i++)if(!n(t[i],A[i]))return-1;return 0;}return n(t[0],A[0])?0:-1;},A.prototype.orderByLru=function(A,e,t){for(var r=this.keys,n=this.values,i=r.length,o=t;o--;)r[o+1]=r[o],n[o+1]=n[o];r[0]=A,n[0]=e;var s=this.options.maxSize;i===s&&t===i?(r.pop(),n.pop()):t>=s&&(r.length=n.length=s);},A.prototype.updateAsyncCache=function(A){var e=this,t=this.options,r=t.onCacheChange,n=t.onCacheHit,i=this.keys[0],o=this.values[0];this.values[0]=o.then(function(t){return e.shouldUpdateOnHit&&n(e,e.options,A),e.shouldUpdateOnChange&&r(e,e.options,A),t;},function(A){var t=e.getKeyIndex(i);throw-1!==t&&(e.keys.splice(t,1),e.values.splice(t,1)),A;});},A;}();const sQ=A=>{if(A){if("object"==typeof A)A={mode:511,...A};else if("number"==typeof A)A={mode:A};else if("string"==typeof A)A={mode:parseInt(A,8)};else throw TypeError("invalid options argument");}else A={mode:511};let e=A,t=A.fs||{};return A.mkdir=A.mkdir||t.mkdir||rv.mkdir,A.mkdirAsync=A.mkdirAsync?A.mkdirAsync:async(A,t)=>new Promise((r,n)=>e.mkdir(A,t,(A,e)=>A?n(A):r(e))),A.stat=A.stat||t.stat||rv.stat,A.statAsync=A.statAsync?A.statAsync:async A=>new Promise((t,r)=>e.stat(A,(A,e)=>A?r(A):t(e))),A.statSync=A.statSync||t.statSync||rv.statSync,A.mkdirSync=A.mkdirSync||t.mkdirSync||rv.mkdirSync,e;},su=(A,e,t)=>{let r=(0,rF.dirname)(A),n={...sQ(e),recursive:!1};if(r===A)try{return n.mkdirSync(A,n);}catch(A){if(A&&"EISDIR"!==A.code)throw A;return;}try{return n.mkdirSync(A,n),t||A;}catch(e){if(e&&"ENOENT"===e.code)return su(A,n,su(r,n,t));if(e&&"EEXIST"!==e.code&&e&&"EROFS"!==e.code)throw e;try{if(!n.statSync(A).isDirectory())throw e;}catch(A){throw e;}}},sC=Object.assign(async(A,e,t)=>{let r=sQ(e);r.recursive=!1;let n=(0,rF.dirname)(A);return n===A?r.mkdirAsync(A,r).catch(A=>{if(A&&"EISDIR"!==A.code)throw A;}):r.mkdirAsync(A,r).then(()=>t||A,async e=>{if(e&&"ENOENT"===e.code)return sC(n,r).then(e=>sC(A,r,e));if(e&&"EEXIST"!==e.code&&"EROFS"!==e.code)throw e;return r.statAsync(A).then(A=>{if(A.isDirectory())return t;throw e;},()=>{throw e;});});},{sync:su}),sI=async(A,e,t)=>{if(t!==e)return A.statAsync(e).then(A=>A.isDirectory()?t:void 0,t=>t&&"ENOENT"===t.code?sI(A,(0,rF.dirname)(e),e):void 0);},sB=(A,e,t)=>{if(t!==e)try{return A.statSync(e).isDirectory()?t:void 0;}catch(t){return t&&"ENOENT"===t.code?sB(A,(0,rF.dirname)(e),e):void 0;}},sd=(A,e)=>{let t=sQ(e);if(t.recursive=!0,(0,rF.dirname)(A)===A)return t.mkdirSync(A,t);let r=sB(t,A);try{return t.mkdirSync(A,t),r;}catch(e){if(e&&"ENOENT"===e.code)return su(A,t);throw e;}},sf=Object.assign(async(A,e)=>{let t={...sQ(e),recursive:!0};return(0,rF.dirname)(A)===A?await t.mkdirAsync(A,t):sI(t,A).then(e=>t.mkdirAsync(A,t).then(A=>e||A).catch(e=>{if(e&&"ENOENT"===e.code)return sC(A,t);throw e;}));},{sync:sd}),sp=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,sy=A=>{if(/\0/.test(A))throw Object.assign(TypeError("path must be a string without null bytes"),{path:A,code:"ERR_INVALID_ARG_VALUE"});if(A=(0,rF.resolve)(A),"win32"===sp){let{root:e}=(0,rF.parse)(A);if(/[*|"<>?:]/.test(A.substring(e.length)))throw Object.assign(Error("Illegal characters in path."),{path:A,code:"EINVAL"});}return A;},sm=(process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version).replace(/^v/,"").split("."),sw=+sm[0]>10||10==+sm[0]&&+sm[1]>=12,sR=sw?A=>sQ(A).mkdirSync===rv.mkdirSync:()=>!1,sD=Object.assign(sw?A=>sQ(A).mkdir===rv.mkdir:()=>!1,{sync:sR}),sb=(A,e)=>{A=sy(A);let t=sQ(e);return sR(t)?sd(A,t):su(A,t);},sk=Object.assign(async(A,e)=>{A=sy(A);let t=sQ(e);return sD(t)?sf(A,t):sC(A,t);},{mkdirpSync:sb,mkdirpNative:sf,mkdirpNativeSync:sd,mkdirpManual:sC,mkdirpManualSync:su,sync:sb,native:sf,nativeSync:sd,manual:sC,manualSync:su,useNative:sD,useNativeSync:sR});t0=no("6t4SD"),t8=no("eAXk4"),rn=no("bHzmH"),e5=no("dAuy6"),e6=no("hHq4F"),t0=no("6t4SD"),t8=no("eAXk4"),rn=no("bHzmH"),e6=no("hHq4F"),rC=A=>{if("string"!=typeof A)return!1;let e=A.trim();if(e.includes(" "))return!1;try{return new rz.URL(e),!0;}catch{return!1;}},rI=async A=>{if(!rC(A))return!1;let e=await Ax(A,"HEAD");return!!e||!!(e=await Ax(A,"GET"));},rE=no("6v1Be"),rB=no("jDqfd"),rd=no("2kZmC");const sN=/v?(\d\S*)/,sS={llvm:AO(),clangtidy:AO(),clangformat:AO(),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:U()?"1.10.0-1":"1.10.0",gcc:U()?"13.2.1-3":"13"},sF={pip:"22.2.0",python:"3.7.9"},sv={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.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"},clangformat:{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"},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"}},sL=AU(Az,{isPromise:!0});e6=no("hHq4F"),Object.defineProperty(rf={},"__esModule",{value:!0}),rf.getUbuntuVersion=void 0,rf.getUbuntuVersion=A2;const sU=AU(A4,{isPromise:!0}),sx=AU(A6,{isPromise:!0}),sT=AU(A7,{isPromise:!0}),sM=AU(eA,{isPromise:!0});e6=no("hHq4F"),t8=no("eAXk4"),t0=no("6t4SD");const sG=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"]]]),sY=AU(function(){if("darwin"!==process.platform)return[];let{version:A}=function(A){A=+(A||l(ne).release()).split(".")[0];let[e,t]=sG.get(A)||["Unknown",""];return{name:e,version:t};}();return A.split(".").map(A=>parseInt(A,10));});e5=no("dAuy6"),e6=no("hHq4F"),t0=no("6t4SD"),t8=no("eAXk4"),rE=no("6v1Be"),rp=no("lORAA"),rn=no("bHzmH"),e6=no("hHq4F"),ry=rF.resolve(__dirname,"../../src/gcc");const sO={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"}};rp=no("lORAA"),rd=no("2kZmC"),e6=no("hHq4F"),t8=no("eAXk4"),t8=no("eAXk4"),rm=rF.resolve(__dirname,"../../src/kcov"),e5=no("dAuy6"),e6=no("hHq4F"),t0=no("6t4SD"),t8=no("eAXk4"),tz=no("1o3Gj"),e6=no("hHq4F");class sH extends Error{constructor(A){super(A),this.name="TimeoutError";}}class sJ extends Error{constructor(A){super(),this.name="AbortError",this.message=A;}}const sV=A=>void 0===globalThis.DOMException?new sJ(A):new DOMException(A),sP=A=>{let e=void 0===A.reason?sV("This operation was aborted."):A.reason;return e instanceof Error?e:sV(e);};t8=no("eAXk4"),e6=no("hHq4F"),tz=no("1o3Gj");const s_=nt.env["ProgramFiles(x86)"],sW=[nt.env["ProgramFiles(x86)"],nt.env.ProgramFiles],sq=["Enterprise","Professional","Community","BuildTools"],sj=["2022","2019","2017"],sX={2022:"17.0",2019:"16.0",2017:"15.0",2015:"14.0",2013:"12.0"};rw=eD;const s$=`${s_}\\Microsoft Visual Studio\\Installer`;rR=eb,rD=function(A,e,t,r,n,i){if("win32"!=nt.platform){tz.info("This is not a Windows virtual environment, bye!");return;}nt.env.PATH+=rF.delimiter+s$;let o={win32:"x86",win64:"x64",x86_64:"x64","x86-64":"x64"};A.toLowerCase()in o&&(A=o[A.toLowerCase()]);var s=[A];"true"==r&&s.push("uwp"),e&&s.push(e),t&&s.push("-vcvars_ver="+t),"true"==n&&s.push("-vcvars_spectre_libs=spectre");let a=`"${eb(i)}" ${s.join(" ")}`;tz.debug("vcvars command-line: "+a);let l=r9.execSync(`set && cls && ${a} && cls && set`,{shell:"cmd"}).toString().split("\f"),E=l[0].split("\r\n"),c=l[1].split("\r\n"),g=l[2].split("\r\n"),h=c.filter(A=>!!A.match(/^\[ERROR.*\]/)&&!A.match(/Error in script usage. The correct usage is:$/));if(h.length>0)throw Error("invalid parameters\r\n"+h.join("\r\n"));let Q={};for(let A of E){let[e,t]=A.split("=");Q[e]=t;}for(let A of(tz.startGroup("Environment variables"),g)){if(!A.includes("="))continue;let[e,t]=A.split("=");t!==Q[e]&&(tz.info("Setting "+e),-1!=["PATH","INCLUDE","LIB","LIBPATH"].indexOf(e.toUpperCase())&&(t=t.split(";").filter(function(A,e,t){return t.indexOf(A)===e;}).join(";")),tz.exportVariable(e,t));}tz.endGroup(),tz.info("Configured Developer Command Prompt");},t0=no("6t4SD");const sZ=12e5,{readFile:sK,writeFile:sz,chmod:s0}=rv.promises;(e8=rb||(rb={}))[e8.All=0]="All",e8[e8.ClangFormat=1]="ClangFormat",e8[e8.Core=2]="Core",e6=no("hHq4F"),t8=no("eAXk4"),rc=no("hlfY9");const s1=function(A){let e=new Set(A);for(let t of A)e.add(/^\d+/.exec(t)[0]),e.add(/^\d+\.\d+/.exec(t)[0]);return e;}(["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","18.1.0","18.1.1","18.1.2"]),s2=new Set(["10.0.1","15.0.5","15.0.6","17.0.5"]),s4=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","18.1.0","18.1.1","18.1.2"]),s9=new Map(),s8={"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"},s3="17.0.6";rk=rF.resolve(__dirname,"../../src/llvm");const s5=AU(eO,{isPromise:!0}),s6=AU(eJ,{isPromise:!0}),s7=AU(eV,{isPromise:!0});e5=no("dAuy6"),t8=no("eAXk4"),e6=no("hHq4F"),t0=no("6t4SD"),rN=rF.resolve(__dirname,"../../src/msvc"),t8=no("eAXk4"),t8=no("eAXk4"),e6=no("hHq4F"),t0=no("6t4SD"),t8=no("eAXk4");let aA=!1;const ae={nala:eX,cmake:AS,ninja:ef,python:AH,vcpkg:e0,bazel:Al,conan:function(A,e,t){return A8("conan",A);},meson:function(A,e,t){return A8("meson",A);},gcovr:function(A,e,t){return A8("gcovr",A);},opencppcoverage:e$,llvm:eY,gcc:eQ,choco:Ai,brew:At,powershell:eK,ccache:function(A,e,t){switch(process.platform){case"win32":return Ao("ccache",A);case"darwin":return An("ccache",A);case"linux":if(U())return AE("ccache",A);if(L())return As([{name:"ccache",version:A}]);if(x())return _([{name:"ccache",version:A}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}},sccache:function(A,e,t){switch(process.platform){case"win32":return Ao("sccache",A);case"linux":case"darwin":return An("sccache",A);default:throw Error("Unsupported platform");}},doxygen:eE,graphviz:eo,cppcheck:en,clangtidy:function(A,e,t){return eH(A,e,t);},clangformat:function(A,e,t){return eH(A,e,t,rb.ClangFormat);},msvc:eq,vcvarsall:ek,kcov:eR,make:eW,task:function(A,e,t){return Ak("task",A,ez,e,t);},sevenzip:Ap},at=Object.keys(ae),ar=["compiler","architecture","timeout",...at];tz=no("1o3Gj"),e6=no("hHq4F"),rd=no("2kZmC"),e4(process.argv).then(A=>{process.exitCode=A;}).catch(A=>{(0,e6.error)("main() panicked!"),(0,e6.error)(A),process.exitCode=1;}); //# sourceMappingURL=setup-cpp.js.map