ErrorMessage:${e.result.message}`);}),i=null===(t=n.result)||void 0===t?void 0:t.value;if(!i)throw Error("Response json body do not have ID Token field");return i;});}static getIDToken(e){return r(this,void 0,void 0,function*(){try{let t=s.getIDTokenUrl();if(e){let r=encodeURIComponent(e);t=`${t}&audience=${r}`;}o.debug(`IDtokenurlis${t}`);let r=yield s.getCall(t);return o.setSecret(r),r;}catch(e){throw Error(`Errormessage:${e.message}`);}});}}e.exports.OidcClient=s;}),B.register("a9gnA",function(e,t){"use strict";var r=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.summary=e.exports.markdownSummary=e.exports.SUMMARY_DOCS_URL=e.exports.SUMMARY_ENV_VAR=void 0;let{access:n,appendFile:i,writeFile:o}=h.promises;e.exports.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY",e.exports.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";let s=new class{constructor(){this._buffer="";}filePath(){return r(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let t=process.env[e.exports.SUMMARY_ENV_VAR];if(!t)throw Error(`Unabletofindenvironmentvariablefor$${e.exports.SUMMARY_ENV_VAR}.Checkifyourruntimeenvironmentsupportsjobsummaries.`);try{yield n(t,h.constants.R_OK|h.constants.W_OK);}catch(e){throw Error(`Unabletoaccesssummaryfile:'${t}'.Checkifthefilehascorrectread/writepermissions.`);}return this._filePath=t,this._filePath;});}wrap(e,t,r={}){let n=Object.entries(r).map(([e,t])=>`${e}="${t}"`).join("");return t?`<${e}${n}>${t}</${e}>`:`<${e}${n}>`;}write(e){returnr(this,void0,void0,function*(){lett=!!(null==e?void0:e.overwrite),r=yieldthis.filePath();returnyield(t?o:i)(r,this._buffer,{encoding:"utf8"}),this.emptyBuffer();});}clear(){returnr(this,void0,void0,function*(){returnthis.emptyBuffer().write({overwrite:!0});});}stringify(){returnthis._buffer;}isEmptyBuffer(){return0===this._buffer.length;}emptyBuffer(){returnthis._buffer="",this;}addRaw(e,t=!1){returnthis._buffer+=e,t?this.addEOL():this;}addEOL(){returnthis.addRaw(d.EOL);}addCodeBlock(e,t){letr=Object.assign({},t&&{lang:t}),n=this.wrap("pre",this.wrap("code",e),r);returnthis.addRaw(n).addEOL();}addList(e,t=!1){letr=e.map(e=>this.wrap("li",e)).join(""),n=this.wrap(t?"ol":"ul",r);returnthis.addRaw(n).addEOL();}addTable(e){lett=e.map(e=>{lett=e.map(e=>{if("string"==typeofe)returnthis.wrap("td",e);let{header:t,data:r,colspan:n,rowspan:i}=e,o=Object.assign(Object.assign({},n&&{colspan:n}),i&&{rowspan:i});returnthis.wrap(t?"th":"td",r,o);}).join("");returnthis.wrap("tr",t);}).join(""),r=this.wrap("table",t);returnthis.addRaw(r).addEOL();}addDetails(e,t){letr=this.wrap("details",this.wrap("summary",e)+t);returnthis.addRaw(r).addEOL();}addImage(e,t,r){let{width:n,height:i}=r||{},o=Object.assign(Object.assign({},n&&{width:n}),i&&{height:i}),s=this.wrap("img",null,Object.assign({src:e,alt:t},o));returnthis.addRaw(s).addEOL();}addHeading(e,t){letr=`h${t}`,n=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",i=this.wrap(n,e);returnthis.addRaw(i).addEOL();}addSeparator(){lete=this.wrap("hr",null);returnthis.addRaw(e).addEOL();}addBreak(){lete=this.wrap("br",null);returnthis.addRaw(e).addEOL();}addQuote(e,t){letr=Object.assign({},t&&{cite:t}),n=this.wrap("blockquote",e,r);returnthis.addRaw(n).addEOL();}addLink(e,t){letr=this.wrap("a",e,{href:t});returnthis.addRaw(r).addEOL();}}();e.exports.markdownSummary=s,e.exports.summary=s;}),B.register("3zXsD",function(e,t){"usestrict";varr=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){returnt[r];}});}:function(e,t,r,n){void0===n&&(n=r),e[n]=t[r];}
${n.message}`:h,g=[v,t,e].filter(Boolean).join("\n");return m?(n.originalMessage=n.message,n.message=g):n=Error(g),n.shortMessage=v,n.command=s,n.escapedCommand=a,n.exitCode=o,n.signal=i,n.signalDescription=d,n.stdout=e,n.stderr=t,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!l,n.isCanceled=c,n.killed=u&&!l,n;};var e9={};const e7=["stdin","stdout","stderr"],te=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return e7.map(t=>e[t]);if(e7.some(t=>void 0!==e[t]))throw Error("It's not possible to provide `stdio` in combination with one of "+e7.map(e=>`\`${e}\``).join(", "));if("string"==typeoft)returnt;if(!Array.isArray(t))throwTypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeoft}\``);returnArray.from({length:Math.max(t.length,e7.length)},(e,r)=>t[r]);};(e9=te).node=e=>{lett=te(e);return"ipc"===t?"ipc":void0===t||"string"==typeoft?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"];};vartt,tr={},tn=ed.process;constti=e=>e&&"object"==typeofe&&"function"==typeofe.removeListener&&"function"==typeofe.emit&&"function"==typeofe.reallyExit&&"function"==typeofe.listeners&&"function"==typeofe.kill&&"number"==typeofe.pid&&"function"==typeofe.on;if(ti(tn)){varto,ts=em("4c98W"),ta=/^win/i.test(tn.platform),tl=y;"function"!=typeoftl&&(tl=tl.EventEmitter),tn.__signal_exit_emitter__?to=tn.__signal_exit_emitter__:((to=tn.__signal_exit_emitter__=newtl()).count=0,to.emitted={}),to.infinite||(to.setMaxListeners(1/0),to.infinite=!0);vartc=()=>{td&&ti(ed.process)&&(td=!1,ts.forEach(e=>{try{tn.removeListener(e,tp[e]);}catch(e){}}),tn.emit=tv,tn.reallyExit=th,to.count-=1);};(tr=(e,t)=>{if(!ti(ed.process))return()=>{};w.equal(typeofe,"function","a callback must be provided for exit handler"),!1===td&&tf();varr="exit";returnt&&t.alwaysLast&&(r="afterexit"),to.on(r,e),()=>{to.removeListener(r,e),0===to.listeners("exit").length&&0===to.listeners("afterexit").length&&tc();};}).unload=tc;vartu=(e,t,r)=>{to.emitted[e]||(to.emitted[e]=!0,to.emit(e,t,r));},tp={};ts.forEach(e=>{tp[e]=()=>{ti(ed.process)&&tn.listeners(e).length===to.count&&(tc(),tu("exit",null,e),tu("afterexit",null,e),ta&&"SIGHUP"===e&&(e="SIGINT"),tn.kill(tn.pid,e));};}),tr.signals=()=>ts;vartd=!1,tf=()=>{!td&&ti(ed.process)&&(td=!0,to.count+=1,ts=ts.filter(e=>{try{returntn.on(e,tp[e]),!0;}catch(e){return!1;}}),tn.emit=tg,tn.reallyExit=tm);};tr.load=tf;varth=tn.reallyExit,tm=e=>{ti(ed.process)&&(tn.exitCode=e||0,tu("exit",tn.exitCode,null),tu("afterexit",tn.exitCode,null),th.call(tn,tn.exitCode));},tv=tn.emit,tg=function(e,t){if("exit"===e&&ti(ed.process)){void0!==t&&(tn.exitCode=t);varr=tv.apply(this,arguments);returntu("exit",tn.exitCode,null),tu("afterexit",tn.exitCode,null),r;}returntv.apply(this,arguments);};}elsetr=()=>()=>{};consttE=e=>e===d.constants.signals.SIGTERM||"string"==typeofe&&"SIGTERM"===e.toUpperCase();varty,tw=(tt={spawnedKill(e,t="SIGTERM",r={}){letn=e(t);return((e,t,r,n)=>{if(!((e,{forceKillAfterTimeout:t},r)=>tE(e)&&!1!==t&&r)(t,r,n))return;leti=(({forceKillAfterTimeout:e=!0})=>{if(!0===e)return5e3;if(!Number.isFinite(e)||0>e)throwTypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeofe})`);returne;})(r),o=setTimeout(()=>{e("SIGKILL");},i);o.unref&&o.unref();})(e,t,r,n),n;},spawnedCancel(e,t){e.kill()&&(t.isCanceled=!0);},setupTimeout(e,{timeout:t,killSignal:r="SIGTERM"},n){leti;if(0===t||void0===t)returnn;leto=newPromise((n,o)=>{i=setTimeout(()=>{e.kill(r),o(Object.assign(Error("Timed out"),{timedOut:!0,signal:r}));},t);}),s=n.finally(()=>{clearTimeout(i);});returnPromise.race([o,s]);},validateTimeout({timeout:e}){if(void0!==e&&(!Number.isFinite(e)||0>e))throwTypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeofe})`);},asyncsetExitHandler(e,{cleanup:t,detached:r},n){if(!t||r)returnn;leti=tr(()=>{e.kill();});returnn.finally(()=>{i();});}}).spawnedKill,tx=tt.spawnedCancel,tb=tt.setupTimeout,tS=tt.validateTimeout,tI=tt.setExitHandler,tO={};consttR=e=>n
${n.message}`:m,E=[g,t,e].filter(Boolean).join("\n");return v?(n.originalMessage=n.message,n.message=E):n=Error(E),n.shortMessage=g,n.command=s,n.escapedCommand=a,n.exitCode=o,n.signal=i,n.signalDescription=d,n.stdout=e,n.stderr=t,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!l,n.isCanceled=c,n.killed=u&&!l,n;};var na={};"use strict";const nl=["stdin","stdout","stderr"],nc=e=>nl.some(t=>void 0!==e[t]),nu=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return nl.map(t=>e[t]);if(nc(e))throw Error(`It'snotpossibletoprovide\`stdio\` in combination with one of ${nl.map(e=>`\`${e}\``).join(", ")}`);if("string"==typeoft)returnt;if(!Array.isArray(t))throwTypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeoft}\``);letr=Math.max(t.length,nl.length);returnArray.from({length:r},(e,r)=>t[r]);};(na=nu).node=e=>{lett=nu(e);return"ipc"===t?"ipc":void0===t||"string"==typeoft?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"];};varnp={},nd={},nf=G.process;constnh=function(e){returne&&"object"==typeofe&&"function"==typeofe.removeListener&&"function"==typeofe.emit&&"function"==typeofe.reallyExit&&"function"==typeofe.listeners&&"function"==typeofe.kill&&"number"==typeofe.pid&&"function"==typeofe.on;};if(nh(nf)){varnm,nv,ng=B("2dWxz"),nE=/^win/i.test(nf.platform),ny=y;"function"!=typeofny&&(ny=ny.EventEmitter),nf.__signal_exit_emitter__?nv=nf.__signal_exit_emitter__:((nv=nf.__signal_exit_emitter__=newny()).count=0,nv.emitted={}),nv.infinite||(nv.setMaxListeners(1/0),nv.infinite=!0);varnw=function(){nS&&nh(G.process)&&(nS=!1,ng.forEach(function(e){try{nf.removeListener(e,nb[e]);}catch(e){}}),nf.emit=nT,nf.reallyExit=nO,nv.count-=1);};(nd=function(e,t){if(!nh(G.process))returnfunction(){};w.equal(typeofe,"function","a callback must be provided for exit handler"),!1===nS&&nI();varr="exit";returnt&&t.alwaysLast&&(r="afterexit"),nv.on(r,e),function(){nv.removeListener(r,e),0===nv.listeners("exit").length&&0===nv.listeners("afterexit").length&&nw();};}).unload=nw;varnx=function(e,t,r){nv.emitted[e]||(nv.emitted[e]=!0,nv.emit(e,t,r));},nb={};ng.forEach(function(e){nb[e]=function(){nh(G.process)&&nf.listeners(e).length===nv.count&&(nw(),nx("exit",null,e),nx("afterexit",null,e),nE&&"SIGHUP"===e&&(e="SIGINT"),nf.kill(nf.pid,e));};}),nd.signals=function(){returnng;};varnS=!1,nI=function(){!nS&&nh(G.process)&&(nS=!0,nv.count+=1,ng=ng.filter(function(e){try{returnnf.on(e,nb[e]),!0;}catch(e){return!1;}}),nf.emit=nC,nf.reallyExit=nR);};nd.load=nI;varnO=nf.reallyExit,nR=function(e){nh(G.process)&&(nf.exitCode=e||0,nx("exit",nf.exitCode,null),nx("afterexit",nf.exitCode,null),nO.call(nf,nf.exitCode));},nT=nf.emit,nC=function(e,t){if(!("exit"===e&&nh(G.process)))returnnT.apply(this,arguments);void0!==t&&(nf.exitCode=t);varr=nT.apply(this,arguments);returnnx("exit",nf.exitCode,null),nx("afterexit",nf.exitCode,null),r;};}elsend=function(){returnfunction(){};};"use strict";"use strict";constn$=(e,t,r,n)=>{if(!n_(t,r,n))return;leti=nP(r),o=setTimeout(()=>{e("SIGKILL");},i);o.unref&&o.unref();},n_=(e,{forceKillAfterTimeout:t},r)=>nA(e)&&!1!==t&&r,nA=e=>e===d.constants.signals.SIGTERM||"string"==typeofe&&"SIGTERM"===e.toUpperCase(),nP=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return5e3;if(!Number.isFinite(e)||e<0)throwTypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeofe})`);returne;},nN=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}));},nL=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)returnn;leti=nd(()=>{e.kill();});returnn.finally(()=>{i();});};varnD=(np={spawnedKill:(e,t="SIGTERM",r={})=>{letn=e(t);returnn$(e,t,r,n),n;},spawnedCancel:(e,t)=>{letr=e.kill();r&&(t.isCanceled=!0);},setupTimeout:(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{leti;if(0===t||void0===t)returnn;leto=newPromise((n,o)=>{i=setTimeout(()=>{nN(e,r,o);},t);}),s=n.finally(()=>{clearTimeout(i);});returnPromise.race([o,s]);},validateTimeout:({timeout:e})=>{if(void0!==e&&(!Number.isFin
${t}`,iN=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),iL=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),iD=(e,t,r)=>{let n=""===r?"":`with${r.trim()}()`,i=iP.bind(null,n,t.toString());Object.defineProperty(i,"name",iL),Object.defineProperty(e,"toString",{...iN,value:i});},ik=new WeakMap(),iU=(e,t={})=>{let r;if("function"!=typeof e)throw TypeError("Expected a function");let n=0,i=e.displayName||e.name||"<anonymous>",o=function(...s){if(ik.set(o,++n),1===n)r=e.apply(this,s),e=null;else if(!0===t.throw)throw Error(`Function\`${i}\` can only be called once`);returnr;};returnfunction(e,t,{ignoreNonConfigurable:r=!1}={}){let{name:n}=e;for(letnofReflect.ownKeys(t))i$(e,t,n,r);iA(e,t),iD(e,t,n);}(o,e),ik.set(o,n),o;};iU.callCount=e=>{if(!ik.has(e))throwError(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);returnik.get(e);};constij=()=>Array.from({length:iF-iM+1},iG),iG=(e,t)=>({name:`SIGRT${t+1}`,number:iM+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),iM=34,iF=64,iB=[{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:"termina
${n.message}`:m,E=[g,t,e].filter(Boolean).join("\n");return v?(n.originalMessage=n.message,n.message=E):n=Error(E),n.shortMessage=g,n.command=s,n.escapedCommand=a,n.exitCode=o,n.signal=i,n.signalDescription=d,n.stdout=e,n.stderr=t,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!l,n.isCanceled=c,n.killed=u&&!l,n;},iQ=["stdin","stdout","stderr"],iJ=e=>iQ.some(t=>void 0!==e[t]),iZ=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return iQ.map(t=>e[t]);if(iJ(e))throw Error(`It's not possible to provide \`stdio\` in combination with one of ${iQ.map(e=>`\`${e}\``).join(", ")}`);if("string"==typeof t)return t;if(!Array.isArray(t))throw TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);let r=Math.max(t.length,iQ.length);return Array.from({length:r},(e,r)=>t[r]);},i0=(e,t="SIGTERM",r={})=>{let n=e(t);return i1(e,t,r,n),n;},i1=(e,t,r,n)=>{if(!i2(t,r,n))return;let i=i3(r),o=setTimeout(()=>{e("SIGKILL");},i);o.unref&&o.unref();},i2=(e,{forceKillAfterTimeout:t},r)=>i4(e)&&!1!==t&&r,i4=e=>e===j(L).constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),i3=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||e<0)throw TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e;},i6=(e,t)=>{let r=e.kill();r&&(t.isCanceled=!0);},i8=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}));},i5=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{let i;if(0===t||void 0===t)return n;let o=new Promise((n,o)=>{i=setTimeout(()=>{i8(e,r,o);},t);}),s=n.finally(()=>{clearTimeout(i);});return Promise.race([o,s]);},i9=({timeout:e})=>{if(void 0!==e&&(!Number.isFinite(e)||e<0))throw TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);},i7=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let i=j(nd)(()=>{e.kill();});return n.finally(()=>{i();});};function oe(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe;}function ot(e){return oe(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState;}const or=e=>e instanceof A.ChildProcess&&"function"==typeof e.then,on=(e,t,r)=>{if("string"==typeof r)return e[t].pipe((0,b.createWriteStream)(r)),e;if(ot(r))return e[t].pipe(r),e;if(!or(r))throw TypeError("The second argument must be a string, a stream or an Execa child process.");if(!ot(r.stdin))throw TypeError("The target child process'sstdinmustbeavailable.");return e[t].pipe(r.stdin),r;},oi=e=>{null!==e.stdout&&(e.pipeStdout=on.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=on.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=on.bind(void 0,e,"all"));},oo=e=>{if(void 0!==e)throw TypeError("The`input`and`inputFile`optionscannotbebothset.");},os=({input:e,inputFile:t})=>"string"!=typeof t?e:(oo(e),(0,b.readFileSync)(t)),oa=e=>{let t=os(e);if(oe(t))throw TypeError("The`input`optioncannotbeastreaminsyncmode");return t;},ol=({input:e,inputFile:t})=>"string"!=typeof t?e:(oo(e),(0,b.createReadStream)(t)),oc=(e,t)=>{let r=ol(t);void 0!==r&&(oe(r)?r.pipe(e.stdin):e.stdin.end(r));},ou=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=j(nQ)();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r;},op=async(e,t)=>{if(e&&void 0!==t){e.destroy();try{return await t;}catch(e){return e.bufferedData;}}},od=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?j(nH)(e,{encoding:t,maxBuffer:n}):j(nH).buffer(e,{maxBuffer:n});},of=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:o},s)=>{let a=od(e,{encoding:n,buffer:i,maxBuffer:o}),l=od(t,{encoding:n,buffer:i,maxBuffer:o}),c=od(r,{encoding:n,buffer:i,maxBuffer:2*o});try{return await Promise.all([s,a,l,c]);}catch(n){return Promise.all([{error:n,signal:n.signal,timedOut:n.timedOut},op(e,a),op(t,l),op(r,c)]);}},oh=(async()=>{})().constructor.prototype,om=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(oh,e)]),ov=(e,t)=>{for(let[r,n]of om){let i="function"==typ
`),(0,rg.info)(`${e}="${r}"wasaddedto"${oQ}`);return;}process.env[e]=r;}async function oZ(e){switch(process.platform){case"win32":await oM(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),(0,rg.info)(`"${e}" was added to the PATH.`);return;case"linux":case"darwin":awaito1(),(0,h.appendFileSync)(oQ,`
`;try{let e=t8(".profile");(0,h.appendFileSync)(e,t),(0,rg.info)(`${t}wasaddedto${e}`);let r=t8(".bashrc");(0,h.appendFileSync)(r,t),(0,rg.info)(`${t}wasaddedto${r}`);}catch(e){(0,q.warning)(`Failedtoadd${t}to.profileor.bashrc.Youshouldadditmanually:${e}`);}o0=!0;}async function o2(){if(await(0,oz.pathExists)(oQ)){let e=(0,h.readFileSync)(oQ,"utf-8").split("\n"),t=[...new Set(e.reverse())].reverse();(0,h.writeFileSync)(oQ,t.join("\n"));try{oX(oQ);}catch{}}}var o4={},o3=f.join,o6=f.delimiter,o8=f.sep,o5=f.posix;const o9="win32"===process.platform,o7=new RegExp(`[${o5.sep}${o8===o5.sep?"":o8}]`.replace(/(\\)/g,"\\$1")),se=RegExp(`^\\.${o7.source}`),st=e=>Object.assign(Error(`notfound:${e}`),{code:"ENOENT"}),sr=(e,{path:t=process.env.PATH,pathExt:r=process.env.PATHEXT,delimiter:n=o6})=>{let i=e.match(o7)?[""]:[...(o9?[process.cwd()]:[]),...(t||"").split(n)];if(o9){let t=r||[".EXE",".CMD",".BAT",".COM"].join(n),o=t.split(n).reduce((e,t)=>(e.push(t),e.push(t.toLowerCase()),e),[]);return e.includes(".")&&""!==o[0]&&o.unshift(""),{pathEnv:i,pathExt:o,pathExtExe:t};}return{pathEnv:i,pathExt:[""]};},sn=(e,t)=>{let r=/^".*"$/.test(e)?e.slice(1,-1):e,n=!r&&se.test(t)?t.slice(0,2):"";return n+o3(r,t);},si=async(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=sr(e,t),o=[];for(let s of r){let r=sn(s,e);for(let e of n){let n=r+e,s=await rS(n,{pathExt:i,ignoreErrors:!0});if(s){if(!t.all)return n;o.push(n);}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw st(e);};o4=si,si.sync=(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=sr(e,t),o=[];for(let s of r){let r=sn(s,e);for(let e of n){let n=r+e,s=rS.sync(n,{pathExt:i,ignoreErrors:!0});if(s){if(!t.all)return n;o.push(n);}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw st(e);};var oz=B("3WkGD"),so=B("9O4vc"),q=B("hHq4F");const{appendFile:ss}=h.promises;let sa=!1,sl=!1;async function sc(e,t=!1){var r;let n=null!==j(o4).sync("nala",{nothrow:!0})?"nala":"apt-get";for(let{name:t,version:r}of e)(0,q.info)(`Installing${t}${null!=r?r:""}via${n}`);process.env.DEBIAN_FRONTEND="noninteractive",(!sa||t)&&(sp(n),sa=!0),sl||(await sd(n),sl=!0);let i=[...new Set(e.flatMap(e=>null!==(r=e.repositories)&&void 0!==r?r:[]))];if(0!==i.length){for(let e of i)ix("add-apt-repository",["-y",e]);sp(n);}let o=await Promise.all(e.map(e=>su(e.name,e.version)));return ix(n,["install","--fix-broken","-y",...o]),{binDir:"/usr/bin/"};}async function su(e,t){if(void 0!==t&&""!==t){let{stdout:r}=await ok("apt-cache",["search","--names-only",`^${(0,so.default)(e)}-${(0,so.default)(t)}$`]);if(""!==r.trim())return`${e}-${t}`;try{let{stdout:r}=await ok("apt-cache",["show",`${e}=${t}`]);if(""===r.trim())return`${e}=${t}`;}catch{}(0,q.warning)(`Failedtoinstall${e}${t}viaapt,tryingwithoutversion`);}return e;}function sp(e){ix(e,"nala"!==e?["update","-y"]:["update"]);}async function sd(e){ix(e,["install","--fix-broken","-y","software-properties-common","apt-utils","ca-certificates","gnupg"]);let t=[sh(["3B4FE6ACC0B21F32","40976EAF437D05B5"],"setup-cpp-ubuntu-archive.gpg"),sh(["1E9377A2BA9EF27F"],"launchpad-toolchain.gpg")];"nala"===e&&t.push(oK("LANG","C.UTF-8"),oK("LC_ALL","C.UTF-8")),await Promise.all(t);}function sf(){ix("gpg",["-k"]);}async function sh(e,t,r="keyserver.ubuntu.com"){let n=`/etc/apt/trusted.gpg.d/${t}`;return(await(0,oz.pathExists)(n))||(sf(),await Promise.all(e.map(async e=>{await ib("gpg",["--no-default-keyring","--keyring",`gnupg-ring:${n}`,"--keyserver",r,"--recv-keys",e]),await ib("chmod",["644",n]);}))),n;}async function sm(e,t){let r=`/etc/apt/trusted.gpg.d/${e}`;return(await(0,oz.pathExists)(r))||(sf(),await sc([{name:"curl"}],void 0),ix("bash",["-c",`curl-s${t}|gpg--no-default-keyring--keyringgnupg-ring:${r}--import`]),ix("chmod",["644",r])),r;}async function sv(e,t){return H.GITHUB_ACTIONS?ib("update-alternatives",["--install",`/usr/bin/${e}`,e,t,"40"]):(await o1(),ss(oQ,`
`),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!==(t=s.architecture)&&void 0!==t?t:process.arch,l=null!==(r=process.env.SETUP_CPP_DIR)&&void 0!==r?r:t8(""),c=[],u=[],p=W.create({autoloadLocales:!0});W.addLocale(j(z)),V.addLocale(j(X));let d=await lx();if(!function(e,t){let r=t.filter(t=>void 0!==e[t]),n=r.filter(t=>!aU(e[t])),i=n.length>=1?e[n[0]]:"true";return!n.some(t=>e[t]!==i)&&(r.forEach(t=>{e[t]=i;}),!0);}(s,["llvm","clangtidy","clangformat"]))return(0,q.error)("The same version must be used for llvm, clangformat and clangtidy"),1;sO()&&"string"==typeof s.cppcheck&&"string"==typeof s.gcovr&&((0,q.info)("installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux"),await sP("python-pygments"));let f=!1;for(let e of cs){let t=s[e];void 0!==t&&(n=Date.now(),f=await ci(e,t,d,a,l,c,u),i=Date.now(),(0,q.info)(`took${p.format(n,i)||"0 seconds"}`));}let h=s.compiler;if(void 0!==h){let e=Date.now();await cc(h,d,l,a,c,f,u);let t=Date.now();(0,q.info)(`took${p.format(e,t)||"0 seconds"}`);}if(await o2(),0===c.length&&0===u.length)return(0,q.warning)("setup-cpp was called without any arguments. Nothing to do."),0;if(c.forEach(e=>(0,q.success)(e)),u.forEach(e=>(0,q.error)(e)),(0,q.info)("setup-cpp finished"),!H.GITHUB_ACTIONS)switch(process.platform){case"win32":(0,q.warning)("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":(0,q.warning)("Run `source~/.cpprc`orrestartyourshelltoupdatetheenvironment.");}returnawaito,0===u.length?0:1;})(process.argv).then(e=>{process.exitCode=e;}).catch(e=>{(0,q.error)("main()panicked!"),(0,q.error)(e),process.exitCode=1;});