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

4 lines
311 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

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

#!/usr/bin/env node
"use strict";function e(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const n in e)if("default"!==n){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}return t.default=e,Object.freeze(t)}function t(e){return null==e?[]:Array.isArray(e)?e:[e]}function n(e,t,n,r){var i,o=e[t],s=~r.string.indexOf(t)?null==n||!0===n?"":n+"":"boolean"==typeof n?n:~r.boolean.indexOf(t)?"false"!==n&&("true"===n||(e._.push(0*(i=+n)==0?i:n),!!n)):0*(i=+n)==0?i:n;e[t]=null==o?s:Array.isArray(o)?o.concat(s):[o,s]}function r(e){return e&&e.__esModule&&{}.hasOwnProperty.call(e,"default")?e.default:e}function i(e){if({}.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}function o(){return ci?ai:(ci=1,ai={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2})}function s(){if(li)return ui;li=1;const e="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};return ui=e}function a(){return fi||(fi=1,function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=o(),a=s(),c=(t=e.exports={}).re=[],u=t.safeRe=[],l=t.src=[],f=t.safeSrc=[],p=t.t={};let d=0;const h="[a-zA-Z0-9-]",m=[["\\s",1],["\\d",i],[h,r]],y=(e,t,n)=>{const r=(e=>{for(const[t,n]of m)e=e.split(t+"*").join(`${t}{0,${n}}`).split(t+"+").join(`${t}{1,${n}}`);return e})(t),i=d++;a(e,i,t),p[e]=i,l[i]=t,f[i]=r,c[i]=RegExp(t,n?"g":void 0),u[i]=RegExp(r,n?"g":void 0)};y("NUMERICIDENTIFIER","0|[1-9]\\d*"),y("NUMERICIDENTIFIERLOOSE","\\d+"),y("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${h}*`),y("MAINVERSION",`(${l[p.NUMERICIDENTIFIER]})\\.(${l[p.NUMERICIDENTIFIER]})\\.(${l[p.NUMERICIDENTIFIER]})`),y("MAINVERSIONLOOSE",`(${l[p.NUMERICIDENTIFIERLOOSE]})\\.(${l[p.NUMERICIDENTIFIERLOOSE]})\\.(${l[p.NUMERICIDENTIFIERLOOSE]})`),y("PRERELEASEIDENTIFIER",`(?:${l[p.NONNUMERICIDENTIFIER]}|${l[p.NUMERICIDENTIFIER]})`),y("PRERELEASEIDENTIFIERLOOSE",`(?:${l[p.NONNUMERICIDENTIFIER]}|${l[p.NUMERICIDENTIFIERLOOSE]})`),y("PRERELEASE",`(?:-(${l[p.PRERELEASEIDENTIFIER]}(?:\\.${l[p.PRERELEASEIDENTIFIER]})*))`),y("PRERELEASELOOSE",`(?:-?(${l[p.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[p.PRERELEASEIDENTIFIERLOOSE]})*))`),y("BUILDIDENTIFIER",h+"+"),y("BUILD",`(?:\\+(${l[p.BUILDIDENTIFIER]}(?:\\.${l[p.BUILDIDENTIFIER]})*))`),y("FULLPLAIN",`v?${l[p.MAINVERSION]}${l[p.PRERELEASE]}?${l[p.BUILD]}?`),y("FULL",`^${l[p.FULLPLAIN]}$`),y("LOOSEPLAIN",`[v=\\s]*${l[p.MAINVERSIONLOOSE]}${l[p.PRERELEASELOOSE]}?${l[p.BUILD]}?`),y("LOOSE",`^${l[p.LOOSEPLAIN]}$`),y("GTLT","((?:<|>)?=?)"),y("XRANGEIDENTIFIERLOOSE",l[p.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*"),y("XRANGEIDENTIFIER",l[p.NUMERICIDENTIFIER]+"|x|X|\\*"),y("XRANGEPLAIN",`[v=\\s]*(${l[p.XRANGEIDENTIFIER]})(?:\\.(${l[p.XRANGEIDENTIFIER]})(?:\\.(${l[p.XRANGEIDENTIFIER]})(?:${l[p.PRERELEASE]})?${l[p.BUILD]}?)?)?`),y("XRANGEPLAINLOOSE",`[v=\\s]*(${l[p.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[p.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[p.XRANGEIDENTIFIERLOOSE]})(?:${l[p.PRERELEASELOOSE]})?${l[p.BUILD]}?)?)?`),y("XRANGE",`^${l[p.GTLT]}\\s*${l[p.XRANGEPLAIN]}$`),y("XRANGELOOSE",`^${l[p.GTLT]}\\s*${l[p.XRANGEPLAINLOOSE]}$`),y("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),y("COERCE",l[p.COERCEPLAIN]+"(?:$|[^\\d])"),y("COERCEFULL",l[p.COERCEPLAIN]+`(?:${l[p.PRERELEASE]})?(?:${l[p.BUILD]})?(?:$|[^\\d])`),y("COERCERTL",l[p.COERCE],!0),y("COERCERTLFULL",l[p.COERCEFULL],!0),y("LONETILDE","(?:~>?)"),y("TILDETRIM",`(\\s*)${l[p.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",y("TILDE",`^${l[p.LONETILDE]}${l[p.XRANGEPLAIN]}$`),y("TILDELOOSE",`^${l[p.LONETILDE]}${l[p.XRANGEPLAINLOOSE]}$`),y("LONECARET","(?:\\^)"),y("CARETTRIM",`(\\s*)${l[p.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",y("CARET",`^${l[p.LONECARET]}${l[p.XRANGEPLAIN]}$`),y("CARETLOOSE",`^${l[p.LONECARET]}${l[p.XRANGEPLAINLOOSE]}$`),y("COMPARATORLOOSE",`^${l[p.GTLT]}\\s*(${l[p.LOOSEPLAIN]})$|^$`),y("COMPARATOR",`^${l[p.GTLT]}\\s*(${l[p.FULLPLAIN]})$|^$`),y("COMPARATORTRIM",`(\\s*)${l[p.GTLT]}\\s*(${l[p.LOOSEPLAIN]}|${l[p.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",y("HYPHENRANGE",`^\\s*(${l[p.XRANGEPLAIN]})\\s+-\\s+(${l[p.XRANGEPLAIN]})\\s*$`),y("HYPHENRANGELOOSE",`^\\s*(${l[p.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[p.XRANGEPLAINLOOSE]})\\s*$`),y("STAR","(<|>)?=?\\s*\\*"),y("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),y("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(zo,zo.exports)),zo.exports}function c(){if(di)return pi;di=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return pi=n=>n?"object"!=typeof n?e:n:t}function u(){if(mi)return hi;mi=1;const e=/^[0-9]+$/,t=(t,n)=>{const r=e.test(t),i=e.test(n);return r&&i&&(t=+t,n=+n),t===n?0:r&&!i?-1:i&&!r?1:n>t?-1:1};return hi={compareIdentifiers:t,rcompareIdentifiers:(e,n)=>t(n,e)}}function l(){if(vi)return yi;vi=1;const e=s(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:n}=o(),{safeRe:r,t:i}=a(),l=c(),{compareIdentifiers:f}=u();class p{constructor(o,s){if(s=l(s),o instanceof p){if(o.loose===!!s.loose&&o.includePrerelease===!!s.includePrerelease)return o;o=o.version}else if("string"!=typeof o)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof o}".`);if(o.length>t)throw new TypeError(`version is longer than ${t} characters`);e("SemVer",o,s),this.options=s,this.loose=!!s.loose,this.includePrerelease=!!s.includePrerelease;const a=o.trim().match(s.loose?r[i.LOOSE]:r[i.FULL]);if(!a)throw new TypeError("Invalid Version: "+o);if(this.raw=o,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>n||0>this.major)throw new TypeError("Invalid major version");if(this.minor>n||0>this.minor)throw new TypeError("Invalid minor version");if(this.patch>n||0>this.patch)throw new TypeError("Invalid patch version");this.prerelease=a[4]?a[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&n>t)return t}return e})):[],this.build=a[5]?a[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version}toString(){return this.version}compare(t){if(e("SemVer.compare",this.version,this.options,t),!(t instanceof p)){if("string"==typeof t&&t===this.version)return 0;t=new p(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(e){return e instanceof p||(e=new p(e,this.options)),f(this.major,e.major)||f(this.minor,e.minor)||f(this.patch,e.patch)}comparePre(t){if(t instanceof p||(t=new p(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{const r=this.prerelease[n],i=t.prerelease[n];if(e("prerelease compare",n,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return f(r,i)}while(++n)}compareBuild(t){t instanceof p||(t=new p(t,this.options));let n=0;do{const r=this.build[n],i=t.build[n];if(e("build compare",n,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return f(r,i)}while(++n)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&!1===n)throw Error("invalid increment argument: identifier is empty");if(t){const e=("-"+t).match(this.options.loose?r[i.PRERELEASELOOSE]:r[i.PRERELEASE]);if(!e||e[1]!==t)throw Error("invalid identifier: "+t)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"release":if(0===this.prerelease.length)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===f(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw Error("invalid increment argument: "+e)}return this.raw=this.format(),this.build.length&&(this.raw+="+"+this.build.join(".")),this}}return yi=p}function f(){if(gi)return wi;gi=1;const e=l();return wi=(t,n,r=!1)=>{if(t instanceof e)return t;try{return new e(t,n)}catch(i){if(!r)return null;throw i}}}function p(){if(_i)return Ei;_i=1;const e=f();return Ei=(t,n)=>{const r=e(t,n);return r?r.version:null}}function d(){if(Ti)return Pi;Ti=1;const e=l();return Pi=(t,n)=>new e(t,n).major}function h(){if(ji)return Di;ji=1;const e=l();return Di=(t,n,r)=>new e(t,r).compare(new e(n,r))}function m(){if(qi)return Bi;qi=1;const e=l();return Bi=(t,n,r)=>{const i=new e(t,r),o=new e(n,r);return i.compare(o)||i.compareBuild(o)}}function y(){if(Yi)return Xi;Yi=1;const e=h();return Xi=(t,n,r)=>e(t,n,r)>0}function v(){if(Ji)return Ki;Ji=1;const e=h();return Ki=(t,n,r)=>0>e(t,n,r)}function w(){if(Zi)return Qi;Zi=1;const e=h();return Qi=(t,n,r)=>0===e(t,n,r)}function g(){if(to)return eo;to=1;const e=h();return eo=(t,n,r)=>0!==e(t,n,r)}function E(){if(ro)return no;ro=1;const e=h();return no=(t,n,r)=>e(t,n,r)>=0}function _(){if(oo)return io;oo=1;const e=h();return io=(t,n,r)=>0>=e(t,n,r)}function b(){if(ao)return so;ao=1;const e=w(),t=g(),n=y(),r=E(),i=v(),o=_();return so=(s,a,c,u)=>{switch(a){case"===":return"object"==typeof s&&(s=s.version),"object"==typeof c&&(c=c.version),s===c;case"!==":return"object"==typeof s&&(s=s.version),"object"==typeof c&&(c=c.version),s!==c;case"":case"=":case"==":return e(s,c,u);case"!=":return t(s,c,u);case">":return n(s,c,u);case">=":return r(s,c,u);case"<":return i(s,c,u);case"<=":return o(s,c,u);default:throw new TypeError("Invalid operator: "+a)}}}function S(){if(uo)return co;uo=1;const e=l(),t=f(),{safeRe:n,t:r}=a();return co=(i,o)=>{if(i instanceof e)return i;if("number"==typeof i&&(i+=""),"string"!=typeof i)return null;let s=null;if((o=o||{}).rtl){const e=o.includePrerelease?n[r.COERCERTLFULL]:n[r.COERCERTL];let t;for(;(t=e.exec(i))&&(!s||s.index+s[0].length!==i.length);)s&&t.index+t[0].length===s.index+s[0].length||(s=t),e.lastIndex=t.index+t[1].length+t[2].length;e.lastIndex=-1}else s=i.match(o.includePrerelease?n[r.COERCEFULL]:n[r.COERCE]);return null===s?null:t(`${s[2]}.${s[3]||"0"}.${s[4]||"0"}${o.includePrerelease&&s[5]?"-"+s[5]:""}${o.includePrerelease&&s[6]?"+"+s[6]:""}`,o)}}function O(){if(ho)return po;ho=1;const e=/\s+/g;class t{constructor(n,o){if(o=r(o),n instanceof t)return n.loose===!!o.loose&&n.includePrerelease===!!o.includePrerelease?n:new t(n.raw,o);if(n instanceof i)return this.raw=n.value,this.set=[[n]],this.formatted=void 0,this;if(this.options=o,this.loose=!!o.loose,this.includePrerelease=!!o.includePrerelease,this.raw=n.trim().replace(e," "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError("Invalid SemVer Range: "+this.raw);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!g(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const t of this.set)if(1===t.length&&E(t[0])){this.set=[t];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;this.set.length>e;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;t.length>e;e++)e>0&&(this.formatted+=" "),this.formatted+=(""+t[e]).trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&v)|(this.options.loose&&w))+":"+e,r=n.get(t);if(r)return r;const o=this.options.loose;e=e.replace(o?p[d.HYPHENRANGELOOSE]:p[d.HYPHENRANGE],A(this.options.includePrerelease)),u("hyphen replace",e),e=e.replace(p[d.COMPARATORTRIM],h),u("comparator trim",e),e=e.replace(p[d.TILDETRIM],m),u("tilde trim",e),e=e.replace(p[d.CARETTRIM],y),u("caret trim",e);let s=e.split(" ").map((e=>b(e,this.options))).join(" ").split(/\s+/).map((e=>$(e,this.options)));o&&(s=s.filter((e=>(u("loose invalid filter",e,this.options),!!e.match(p[d.COMPARATORLOOSE]))))),u("range list",s);const a=new Map,c=s.map((e=>new i(e,this.options)));for(const n of c){if(g(n))return[n];a.set(n.value,n)}a.size>1&&a.has("")&&a.delete("");const l=[...a.values()];return n.set(t,l),l}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some((t=>_(t,n)&&e.set.some((e=>_(e,n)&&t.every((t=>e.every((e=>t.intersects(e,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new f(e,this.options)}catch(t){return!1}for(let n=0;this.set.length>n;n++)if(L(this.set[n],e,this.options))return!0;return!1}}po=t;const n=new(fo?lo:(fo=1,lo=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}})),r=c(),i=R(),u=s(),f=l(),{safeRe:p,t:d,comparatorTrimReplace:h,tildeTrimReplace:m,caretTrimReplace:y}=a(),{FLAG_INCLUDE_PRERELEASE:v,FLAG_LOOSE:w}=o(),g=e=>"<0.0.0-0"===e.value,E=e=>""===e.value,_=(e,t)=>{let n=!0;const r=e.slice();let i=r.pop();for(;n&&r.length;)n=r.every((e=>i.intersects(e,t))),i=r.pop();return n},b=(e,t)=>(u("comp",e,t),e=x(e,t),u("caret",e),e=O(e,t),u("tildes",e),e=T(e,t),u("xrange",e),e=C(e,t),u("stars",e),e),S=e=>!e||"x"===e.toLowerCase()||"*"===e,O=(e,t)=>e.trim().split(/\s+/).map((e=>I(e,t))).join(" "),I=(e,t)=>e.replace(t.loose?p[d.TILDELOOSE]:p[d.TILDE],((t,n,r,i,o)=>{let s;return u("tilde",e,t,n,r,i,o),S(n)?s="":S(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:S(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:o?(u("replaceTilde pr",o),s=`>=${n}.${r}.${i}-${o} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,u("tilde return",s),s})),x=(e,t)=>e.trim().split(/\s+/).map((e=>P(e,t))).join(" "),P=(e,t)=>{u("caret",e,t);const n=t.includePrerelease?"-0":"";return e.replace(t.loose?p[d.CARETLOOSE]:p[d.CARET],((t,r,i,o,s)=>{let a;return u("caret",e,t,r,i,o,s),S(r)?a="":S(i)?a=`>=${r}.0.0${n} <${+r+1}.0.0-0`:S(o)?a="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:s?(u("replaceCaret pr",s),a="0"===r?"0"===i?`>=${r}.${i}.${o}-${s} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}-${s} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o}-${s} <${+r+1}.0.0-0`):(u("no pr"),a="0"===r?"0"===i?`>=${r}.${i}.${o}${n} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o} <${+r+1}.0.0-0`),u("caret return",a),a}))},T=(e,t)=>(u("replaceXRanges",e,t),e.split(/\s+/).map((e=>N(e,t))).join(" ")),N=(e,t)=>(e=e.trim()).replace(t.loose?p[d.XRANGELOOSE]:p[d.XRANGE],((n,r,i,o,s,a)=>{u("xRange",e,n,r,i,o,s,a);const c=S(i),l=c||S(o),f=l||S(s);return"="===r&&f&&(r=""),a=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&f?(l&&(o=0),s=0,">"===r?(r=">=",l?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",l?i=+i+1:o=+o+1),"<"===r&&(a="-0"),n=`${r+i}.${o}.${s}${a}`):l?n=`>=${i}.0.0${a} <${+i+1}.0.0-0`:f&&(n=`>=${i}.${o}.0${a} <${i}.${+o+1}.0-0`),u("xRange return",n),n})),C=(e,t)=>(u("replaceStars",e,t),e.trim().replace(p[d.STAR],"")),$=(e,t)=>(u("replaceGTE0",e,t),e.trim().replace(p[t.includePrerelease?d.GTE0PRE:d.GTE0],"")),A=e=>(t,n,r,i,o,s,a,c,u,l,f,p)=>`${n=S(r)?"":S(i)?`>=${r}.0.0${e?"-0":""}`:S(o)?`>=${r}.${i}.0${e?"-0":""}`:s?">="+n:`>=${n}${e?"-0":""}`} ${c=S(u)?"":S(l)?`<${+u+1}.0.0-0`:S(f)?`<${u}.${+l+1}.0-0`:p?`<=${u}.${l}.${f}-${p}`:e?`<${u}.${l}.${+f+1}-0`:"<="+c}`.trim(),L=(e,t,n)=>{for(let r=0;e.length>r;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;e.length>n;n++)if(u(e[n].semver),e[n].semver!==i.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0};return po}function R(){if(yo)return mo;yo=1;const e=Symbol();class t{static get ANY(){return e}constructor(r,i){if(i=n(i),r instanceof t){if(r.loose===!!i.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),u("comparator",r,i),this.options=i,this.loose=!!i.loose,this.parse(r),this.value=this.semver===e?"":this.operator+this.semver.version,u("comp",this)}parse(t){const n=t.match(this.options.loose?r[i.COMPARATORLOOSE]:r[i.COMPARATOR]);if(!n)throw new TypeError("Invalid comparator: "+t);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),this.semver=n[2]?new f(n[2],this.options.loose):e}toString(){return this.value}test(t){if(u("Comparator.test",t,this.options.loose),this.semver===e||t===e)return!0;if("string"==typeof t)try{t=new f(t,this.options)}catch(n){return!1}return o(t,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new p(e.value,r).test(this.value):""===e.operator?""===e.value||new p(this.value,r).test(e.semver):!((r=n(r)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(o(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(o(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}mo=t;const n=c(),{safeRe:r,t:i}=a(),o=b(),u=s(),f=l(),p=O();return mo}function I(){if(wo)return vo;wo=1;const e=O();return vo=(t,n,r)=>{try{n=new e(n,r)}catch(i){return!1}return n.test(t)}}function x(){if(No)return To;No=1;const e=l(),t=R(),{ANY:n}=t,r=O(),i=I(),o=y(),s=v(),a=_(),c=E();return To=(u,l,f,p)=>{let d,h,m,y,v;switch(u=new e(u,p),l=new r(l,p),f){case">":d=o,h=a,m=s,y=">",v=">=";break;case"<":d=s,h=c,m=o,y="<",v="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(i(u,l,p))return!1;for(let e=0;l.set.length>e;++e){let r=null,i=null;if(l.set[e].forEach((e=>{e.semver===n&&(e=new t(">=0.0.0")),r=r||e,i=i||e,d(e.semver,r.semver,p)?r=e:m(e.semver,i.semver,p)&&(i=e)})),r.operator===y||r.operator===v)return!1;if((!i.operator||i.operator===y)&&h(u,i.semver))return!1;if(i.operator===v&&m(u,i.semver))return!1}return!0}}function P(){if(Bo)return Go;Bo=1;const e=a(),t=o(),n=l(),r=u(),i=f(),s=p(),c=function(){if(Si)return bi;Si=1;const e=f();return bi=(t,n)=>{const r=e(t.trim().replace(/^[=v]+/,""),n);return r?r.version:null}}(),P=function(){if(Ri)return Oi;Ri=1;const e=l();return Oi=(t,n,r,i,o)=>{"string"==typeof r&&(o=i,i=r,r=void 0);try{return new e(t instanceof e?t.version:t,r).inc(n,i,o).version}catch(s){return null}}}(),T=function(){if(xi)return Ii;xi=1;const e=f();return Ii=(t,n)=>{const r=e(t,null,!0),i=e(n,null,!0),o=r.compare(i);if(0===o)return null;const s=o>0,a=s?r:i,c=s?i:r,u=!!a.prerelease.length;if(c.prerelease.length&&!u){if(!c.patch&&!c.minor)return"major";if(0===c.compareMain(a))return c.minor&&!c.patch?"minor":"patch"}const l=u?"pre":"";return r.major!==i.major?l+"major":r.minor!==i.minor?l+"minor":r.patch!==i.patch?l+"patch":"prerelease"}}(),N=d(),C=function(){if(Ci)return Ni;Ci=1;const e=l();return Ni=(t,n)=>new e(t,n).minor}(),$=function(){if(Ai)return $i;Ai=1;const e=l();return $i=(t,n)=>new e(t,n).patch}(),A=function(){if(ki)return Li;ki=1;const e=f();return Li=(t,n)=>{const r=e(t,n);return r&&r.prerelease.length?r.prerelease:null}}(),L=h(),k=function(){if(Fi)return Ui;Fi=1;const e=h();return Ui=(t,n,r)=>e(n,t,r)}(),D=function(){if(Gi)return Mi;Gi=1;const e=h();return Mi=(t,n)=>e(t,n,!0)}(),j=m(),U=function(){if(Vi)return Hi;Vi=1;const e=m();return Hi=(t,n)=>t.sort(((t,r)=>e(t,r,n)))}(),F=function(){if(Wi)return zi;Wi=1;const e=m();return zi=(t,n)=>t.sort(((t,r)=>e(r,t,n)))}(),M=y(),G=v(),B=w(),q=g(),H=E(),V=_(),z=b(),W=S(),X=R(),Y=O(),K=I(),J=function(){if(Eo)return go;Eo=1;const e=O();return go=(t,n)=>new e(t,n).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))}(),Q=function(){if(bo)return _o;bo=1;const e=l(),t=O();return _o=(n,r,i)=>{let o=null,s=null,a=null;try{a=new t(r,i)}catch(c){return null}return n.forEach((t=>{a.test(t)&&(o&&-1!==s.compare(t)||(o=t,s=new e(o,i)))})),o}}(),Z=function(){if(Oo)return So;Oo=1;const e=l(),t=O();return So=(n,r,i)=>{let o=null,s=null,a=null;try{a=new t(r,i)}catch(c){return null}return n.forEach((t=>{a.test(t)&&(o&&1!==s.compare(t)||(o=t,s=new e(o,i)))})),o}}(),ee=function(){if(Io)return Ro;Io=1;const e=l(),t=O(),n=y();return Ro=(r,i)=>{r=new t(r,i);let o=new e("0.0.0");if(r.test(o))return o;if(o=new e("0.0.0-0"),r.test(o))return o;o=null;for(let t=0;r.set.length>t;++t){let i=null;r.set[t].forEach((t=>{const r=new e(t.semver.version);switch(t.operator){case">":0===r.prerelease.length?r.patch++:r.prerelease.push(0),r.raw=r.format();case"":case">=":i&&!n(r,i)||(i=r);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+t.operator)}})),!i||o&&!n(o,i)||(o=i)}return o&&r.test(o)?o:null}}(),te=function(){if(Po)return xo;Po=1;const e=O();return xo=(t,n)=>{try{return new e(t,n).range||"*"}catch(r){return null}}}(),ne=x(),re=function(){if($o)return Co;$o=1;const e=x();return Co=(t,n,r)=>e(t,n,">",r)}(),ie=function(){if(Lo)return Ao;Lo=1;const e=x();return Ao=(t,n,r)=>e(t,n,"<",r)}(),oe=function(){if(Do)return ko;Do=1;const e=O();return ko=(t,n,r)=>(t=new e(t,r),n=new e(n,r),t.intersects(n,r))}(),se=function(){if(Uo)return jo;Uo=1;const e=I(),t=h();return jo=(n,r,i)=>{const o=[];let s=null,a=null;const c=n.sort(((e,n)=>t(e,n,i)));for(const t of c)e(t,r,i)?(a=t,s||(s=t)):(a&&o.push([s,a]),a=null,s=null);s&&o.push([s,null]);const u=[];for(const[e,t]of o)u.push(e===t?e:t||e!==c[0]?t?e===c[0]?"<="+t:`${e} - ${t}`:">="+e:"*");const l=u.join(" || ");return("string"==typeof r.raw?r.raw:r+"").length>l.length?l:r}}(),ae=function(){if(Mo)return Fo;Mo=1;const e=O(),t=R(),{ANY:n}=t,r=I(),i=h(),o=[new t(">=0.0.0-0")],s=[new t(">=0.0.0")],a=(e,t,a)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===n){if(1===t.length&&t[0].semver===n)return!0;e=a.includePrerelease?o:s}if(1===t.length&&t[0].semver===n){if(a.includePrerelease)return!0;t=s}const l=new Set;let f,p,d,h,m,y,v;for(const n of e)">"===n.operator||">="===n.operator?f=c(f,n,a):"<"===n.operator||"<="===n.operator?p=u(p,n,a):l.add(n.semver);if(l.size>1)return null;if(f&&p){if(d=i(f.semver,p.semver,a),d>0)return null;if(0===d&&(">="!==f.operator||"<="!==p.operator))return null}for(const n of l){if(f&&!r(n,f+"",a))return null;if(p&&!r(n,p+"",a))return null;for(const e of t)if(!r(n,e+"",a))return!1;return!0}let w=!(!p||a.includePrerelease||!p.semver.prerelease.length)&&p.semver,g=!(!f||a.includePrerelease||!f.semver.prerelease.length)&&f.semver;w&&1===w.prerelease.length&&"<"===p.operator&&0===w.prerelease[0]&&(w=!1);for(const n of t){if(v=v||">"===n.operator||">="===n.operator,y=y||"<"===n.operator||"<="===n.operator,f)if(g&&n.semver.prerelease&&n.semver.prerelease.length&&n.semver.major===g.major&&n.semver.minor===g.minor&&n.semver.patch===g.patch&&(g=!1),">"===n.operator||">="===n.operator){if(h=c(f,n,a),h===n&&h!==f)return!1}else if(">="===f.operator&&!r(f.semver,n+"",a))return!1;if(p)if(w&&n.semver.prerelease&&n.semver.prerelease.length&&n.semver.major===w.major&&n.semver.minor===w.minor&&n.semver.patch===w.patch&&(w=!1),"<"===n.operator||"<="===n.operator){if(m=u(p,n,a),m===n&&m!==p)return!1}else if("<="===p.operator&&!r(p.semver,n+"",a))return!1;if(!n.operator&&(p||f)&&0!==d)return!1}return!(f&&y&&!p&&0!==d||p&&v&&!f&&0!==d||g||w)},c=(e,t,n)=>{if(!e)return t;const r=i(e.semver,t.semver,n);return r>0?e:0>r||">"===t.operator&&">="===e.operator?t:e},u=(e,t,n)=>{if(!e)return t;const r=i(e.semver,t.semver,n);return 0>r?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};return Fo=(t,n,r={})=>{if(t===n)return!0;t=new e(t,r),n=new e(n,r);let i=!1;e:for(const e of t.set){for(const t of n.set){const n=a(e,t,r);if(i=i||null!==n,n)continue e}if(i)return!1}return!0}}();return Go={parse:i,valid:s,clean:c,inc:P,diff:T,major:N,minor:C,patch:$,prerelease:A,compare:L,rcompare:k,compareLoose:D,compareBuild:j,sort:U,rsort:F,gt:M,lt:G,eq:B,neq:q,gte:H,lte:V,cmp:z,coerce:W,Comparator:X,Range:Y,satisfies:K,toComparators:J,maxSatisfying:Q,minSatisfying:Z,minVersion:ee,validRange:te,outside:ne,gtr:re,ltr:ie,intersects:oe,simplifyRange:se,subset:ae,SemVer:n,re:e.re,src:e.src,tokens:e.t,SEMVER_SPEC_VERSION:t.SEMVER_SPEC_VERSION,RELEASE_TYPES:t.RELEASE_TYPES,compareIdentifiers:r.compareIdentifiers,rcompareIdentifiers:r.rcompareIdentifiers}}function T(){return es||(es=1,Object.defineProperty(is,"__esModule",{value:!0}),is.toCommandProperties=is.toCommandValue=void 0,is.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e)},is.toCommandProperties=function(e){return Object.keys(e).length?{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}:{}}),is}function N(e){const t="https:"===e.protocol;if(function(e){if(!e.hostname)return!1;if(function(e){const t=e.toLowerCase();return"localhost"===t||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]")}(e.hostname))return!0;const t=process.env.no_proxy||process.env.NO_PROXY||"";if(!t)return!1;let n;e.port?n=Number(e.port):"http:"===e.protocol?n=80:"https:"===e.protocol&&(n=443);const r=[e.hostname.toUpperCase()];"number"==typeof n&&r.push(`${r[0]}:${n}`);for(const i of t.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e)))if("*"===i||r.some((e=>e===i||e.endsWith("."+i)||i.startsWith(".")&&e.endsWith(""+i))))return!0;return!1}(e))return;const n=t?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(n)try{return new ls(n)}catch{if(!n.startsWith("http://")&&!n.startsWith("https://"))return new ls("http://"+n)}}function C(){if(Ns)return us;Ns=1;var e=us&&us.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(us,"__esModule",{value:!0}),us.OidcClient=void 0;const t=Ps,n=function(){if(Ts)return Fs;Ts=1;var e=Fs&&Fs.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};return Object.defineProperty(Fs,"__esModule",{value:!0}),Fs.PersonalAccessTokenCredentialHandler=Fs.BearerCredentialHandler=Fs.BasicCredentialHandler=void 0,Fs.BasicCredentialHandler=class{constructor(e,t){this.username=e,this.password=t}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Basic "+Buffer.from(`${this.username}:${this.password}`).toString("base64")}canHandleAuthentication(){return!1}handleAuthentication(){return e(this,void 0,void 0,(function*(){throw Error("not implemented")}))}},Fs.BearerCredentialHandler=class{constructor(e){this.token=e}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Bearer "+this.token}canHandleAuthentication(){return!1}handleAuthentication(){return e(this,void 0,void 0,(function*(){throw Error("not implemented")}))}},Fs.PersonalAccessTokenCredentialHandler=class{constructor(e){this.token=e}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Basic "+Buffer.from("PAT:"+this.token).toString("base64")}canHandleAuthentication(){return!1}handleAuthentication(){return e(this,void 0,void 0,(function*(){throw Error("not implemented")}))}},Fs}(),r=D();class i{static createHttpClient(e=!0,r=10){const o={allowRetries:e,maxRetries:r};return new t.HttpClient("actions/oidc-client",[new n.BearerCredentialHandler(i.getRequestToken())],o)}static getRequestToken(){const e=process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable");return e}static getIDTokenUrl(){const e=process.env.ACTIONS_ID_TOKEN_REQUEST_URL;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable");return e}static getCall(t){var n;return e(this,void 0,void 0,(function*(){const e=i.createHttpClient(),r=yield e.getJson(t).catch((e=>{throw Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.message}`)})),o=null===(n=r.result)||void 0===n?void 0:n.value;if(!o)throw Error("Response json body do not have ID Token field");return o}))}static getIDToken(t){return e(this,void 0,void 0,(function*(){try{let e=i.getIDTokenUrl();t&&(e=`${e}&audience=${encodeURIComponent(t)}`),(0,r.debug)("ID token url is "+e);const n=yield i.getCall(e);return(0,r.setSecret)(n),n}catch(e){throw Error("Error message: "+e.message)}}))}}return us.OidcClient=i,us}function $(){return Cs||(Cs=1,function(e){var t=Ms&&Ms.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.summary=e.markdownSummary=e.SUMMARY_DOCS_URL=e.SUMMARY_ENV_VAR=void 0;const n=Ur,r=Mr,{access:i,appendFile:o,writeFile:s}=r.promises;e.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY",e.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";const a=new class{constructor(){this._buffer=""}filePath(){return t(this,void 0,void 0,(function*(){if(this._filePath)return this._filePath;const t=process.env[e.SUMMARY_ENV_VAR];if(!t)throw Error(`Unable to find environment variable for $${e.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield i(t,r.constants.R_OK|r.constants.W_OK)}catch(n){throw Error(`Unable to access summary file: '${t}'. Check if the file has correct read/write permissions.`)}return this._filePath=t,this._filePath}))}wrap(e,t,n={}){const r=Object.entries(n).map((([e,t])=>` ${e}="${t}"`)).join("");return t?`<${e}${r}>${t}</${e}>`:`<${e}${r}>`}write(e){return t(this,void 0,void 0,(function*(){const t=!!(null==e?void 0:e.overwrite),n=yield this.filePath(),r=t?s:o;return yield r(n,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(e,t=!1){return this._buffer+=e,t?this.addEOL():this}addEOL(){return this.addRaw(n.EOL)}addCodeBlock(e,t){const n=Object.assign({},t&&{lang:t}),r=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(r).addEOL()}addList(e,t=!1){const n=t?"ol":"ul",r=e.map((e=>this.wrap("li",e))).join(""),i=this.wrap(n,r);return this.addRaw(i).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if("string"==typeof e)return this.wrap("td",e);const{header:t,data:n,colspan:r,rowspan:i}=e,o=t?"th":"td",s=Object.assign(Object.assign({},r&&{colspan:r}),i&&{rowspan:i});return this.wrap(o,n,s)})).join("");return this.wrap("tr",t)})).join(""),n=this.wrap("table",t);return this.addRaw(n).addEOL()}addDetails(e,t){const n=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(n).addEOL()}addImage(e,t,n){const{width:r,height:i}=n||{},o=Object.assign(Object.assign({},r&&{width:r}),i&&{height:i}),s=this.wrap("img",null,Object.assign({src:e,alt:t},o));return this.addRaw(s).addEOL()}addHeading(e,t){const n="h"+t,r=this.wrap(["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",e);return this.addRaw(r).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const n=Object.assign({},t&&{cite:t}),r=this.wrap("blockquote",e,n);return this.addRaw(r).addEOL()}addLink(e,t){const n=this.wrap("a",e,{href:t});return this.addRaw(n).addEOL()}};e.markdownSummary=a,e.summary=a}(Ms)),Ms}function A(){return As||(As=1,function(e){function t(e){return(1&e.mode)>0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}var n,r=zs&&zs.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=zs&&zs.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=zs&&zs.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=zs&&zs.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.getCmdPath=e.tryGetExecutablePath=e.isRooted=e.isDirectory=e.exists=e.READONLY=e.UV_FS_O_EXLOCK=e.IS_WINDOWS=e.unlink=e.symlink=e.stat=e.rmdir=e.rm=e.rename=e.readlink=e.readdir=e.open=e.mkdir=e.lstat=e.copyFile=e.chmod=void 0;const a=o(Mr),c=o(Fr);e.chmod=(n=a.promises).chmod,e.copyFile=n.copyFile,e.lstat=n.lstat,e.mkdir=n.mkdir,e.open=n.open,e.readdir=n.readdir,e.readlink=n.readlink,e.rename=n.rename,e.rm=n.rm,e.rmdir=n.rmdir,e.stat=n.stat,e.symlink=n.symlink,e.unlink=n.unlink,e.IS_WINDOWS="win32"===process.platform,e.UV_FS_O_EXLOCK=268435456,e.READONLY=a.constants.O_RDONLY,e.exists=function(t){return s(this,void 0,void 0,(function*(){try{yield e.stat(t)}catch(n){if("ENOENT"===n.code)return!1;throw n}return!0}))},e.isDirectory=function(t,n=!1){return s(this,void 0,void 0,(function*(){return(n?yield e.stat(t):yield e.lstat(t)).isDirectory()}))},e.isRooted=function(t){if(!(t=function(t){return t=t||"",e.IS_WINDOWS?(t=t.replace(/\//g,"\\")).replace(/\\\\+/g,"\\"):t.replace(/\/\/+/g,"/")}(t)))throw Error('isRooted() parameter "p" cannot be empty');return e.IS_WINDOWS?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")},e.tryGetExecutablePath=function(n,r){return s(this,void 0,void 0,(function*(){let i;try{i=yield e.stat(n)}catch(s){"ENOENT"!==s.code&&console.log(`Unexpected error attempting to determine if executable file exists '${n}': ${s}`)}if(i&&i.isFile())if(e.IS_WINDOWS){const e=c.extname(n).toUpperCase();if(r.some((t=>t.toUpperCase()===e)))return n}else if(t(i))return n;const o=n;for(const a of r){n=o+a,i=void 0;try{i=yield e.stat(n)}catch(s){"ENOENT"!==s.code&&console.log(`Unexpected error attempting to determine if executable file exists '${n}': ${s}`)}if(i&&i.isFile()){if(e.IS_WINDOWS){try{const t=c.dirname(n),r=c.basename(n).toUpperCase();for(const i of yield e.readdir(t))if(r===i.toUpperCase()){n=c.join(t,i);break}}catch(s){console.log(`Unexpected error attempting to determine the actual case of the file '${n}': ${s}`)}return n}if(t(i))return n}}return""}))},e.getCmdPath=function(){var e;return null!==(e=process.env.COMSPEC)&&void 0!==e?e:"cmd.exe"}}(zs)),zs}function L(){function e(e){return c(this,void 0,void 0,(function*(){if(f.IS_WINDOWS&&/[*"<>|]/.test(e))throw Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield f.rm(e,{force:!0,maxRetries:3,recursive:!0,retryDelay:300})}catch(t){throw Error("File was unable to be removed "+t)}}))}function t(e){return c(this,void 0,void 0,(function*(){u.ok(e,"a path argument must be provided"),yield f.mkdir(e,{recursive:!0})}))}function n(e){return c(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'tool' is required");const t=[];if(f.IS_WINDOWS&&process.env.PATHEXT)for(const e of process.env.PATHEXT.split(l.delimiter))e&&t.push(e);if(f.isRooted(e)){const n=yield f.tryGetExecutablePath(e,t);return n?[n]:[]}if(e.includes(l.sep))return[];const n=[];if(process.env.PATH)for(const e of process.env.PATH.split(l.delimiter))e&&n.push(e);const r=[];for(const i of n){const n=yield f.tryGetExecutablePath(l.join(i,e),t);n&&r.push(n)}return r}))}function r(e,n,o,s){return c(this,void 0,void 0,(function*(){if(o>=255)return;o++,yield t(n);const a=yield f.readdir(e);for(const t of a){const a=`${e}/${t}`,c=`${n}/${t}`;(yield f.lstat(a)).isDirectory()?yield r(a,c,o,s):yield i(a,c,s)}yield f.chmod(n,(yield f.stat(e)).mode)}))}function i(e,t,n){return c(this,void 0,void 0,(function*(){if((yield f.lstat(e)).isSymbolicLink()){try{yield f.lstat(t),yield f.unlink(t)}catch(r){"EPERM"===r.code&&(yield f.chmod(t,"0666"),yield f.unlink(t))}const n=yield f.readlink(e);yield f.symlink(n,t,f.IS_WINDOWS?"junction":null)}else(yield f.exists(t))&&!n||(yield f.copyFile(e,t))}))}if(Ls)return Vs;Ls=1;var o=Vs&&Vs.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=Vs&&Vs.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=Vs&&Vs.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&o(t,e,n);return s(t,e),t},c=Vs&&Vs.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(Vs,"__esModule",{value:!0}),Vs.findInPath=Vs.which=Vs.mkdirP=Vs.rmRF=Vs.mv=Vs.cp=void 0;const u=Yr,l=a(Fr),f=a(A());return Vs.cp=function(e,t,n={}){return c(this,void 0,void 0,(function*(){const{force:o,recursive:s,copySourceDirectory:a}=function(e){return{force:null==e.force||e.force,recursive:!!e.recursive,copySourceDirectory:null==e.copySourceDirectory||!!e.copySourceDirectory}}(n),c=(yield f.exists(t))?yield f.stat(t):null;if(c&&c.isFile()&&!o)return;const u=c&&c.isDirectory()&&a?l.join(t,l.basename(e)):t;if(!(yield f.exists(e)))throw Error("no such file or directory: "+e);if((yield f.stat(e)).isDirectory()){if(!s)throw Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield r(e,u,0,o)}else{if(""===l.relative(e,u))throw Error(`'${u}' and '${e}' are the same file`);yield i(e,u,o)}}))},Vs.mv=function(n,r,i={}){return c(this,void 0,void 0,(function*(){if(yield f.exists(r)){let t=!0;if((yield f.isDirectory(r))&&(r=l.join(r,l.basename(n)),t=yield f.exists(r)),t){if(null!=i.force&&!i.force)throw Error("Destination already exists");yield e(r)}}yield t(l.dirname(r)),yield f.rename(n,r)}))},Vs.rmRF=e,Vs.mkdirP=t,Vs.which=function e(t,r){return c(this,void 0,void 0,(function*(){if(!t)throw Error("parameter 'tool' is required");if(r){const n=yield e(t,!1);if(!n)throw Error(f.IS_WINDOWS?`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`:`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);return n}const i=yield n(t);return i&&i.length>0?i[0]:""}))},Vs.findInPath=n,Vs}function k(){function e(e,t,n){return i(this,void 0,void 0,(function*(){const r=s.argStringToArray(e);if(0===r.length)throw Error("Parameter 'commandLine' cannot be null or empty.");const i=r[0];return t=r.slice(1).concat(t||[]),new s.ToolRunner(i,t,n).exec()}))}if(Ds)return qs;Ds=1;var t=qs&&qs.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=qs&&qs.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=qs&&qs.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=qs&&qs.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(qs,"__esModule",{value:!0}),qs.getExecOutput=qs.exec=void 0;const o=Wr,s=r(function(){if(ks)return Hs;ks=1;var e=Hs&&Hs.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=Hs&&Hs.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=Hs&&Hs.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var i in n)"default"!==i&&Object.hasOwnProperty.call(n,i)&&e(r,n,i);return t(r,n),r},r=Hs&&Hs.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(Hs,"__esModule",{value:!0}),Hs.argStringToArray=Hs.ToolRunner=void 0;const i=n(Ur),o=n(Vr),s=n(Xr),a=n(Fr),c=n(L()),u=n(A()),l=Kr,f="win32"===process.platform;Hs.ToolRunner=class extends o.EventEmitter{constructor(e,t,n){if(super(),!e)throw Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=t||[],this.options=n||{}}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e)}_getCommandString(e,t){const n=this._getSpawnFileName(),r=this._getSpawnArgs(e);let i=t?"":"[command]";if(f)if(this._isCmdFile()){i+=n;for(const e of r)i+=" "+e}else if(e.windowsVerbatimArguments){i+=`"${n}"`;for(const e of r)i+=" "+e}else{i+=this._windowsQuoteCmdArg(n);for(const e of r)i+=" "+this._windowsQuoteCmdArg(e)}else{i+=n;for(const e of r)i+=" "+e}return i}_processLineBuffer(e,t,n){try{let r=t+""+e,o=r.indexOf(i.EOL);for(;o>-1;)n(r.substring(0,o)),r=r.substring(o+i.EOL.length),o=r.indexOf(i.EOL);return r}catch(r){return this._debug("error processing line. Failed with error "+r),""}}_getSpawnFileName(){return f&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(e){if(f&&this._isCmdFile()){let t='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath);for(const n of this.args)t+=" ",t+=e.windowsVerbatimArguments?n:this._windowsQuoteCmdArg(n);return t+='"',[t]}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile())return this._uvQuoteCmdArg(e);if(!e)return'""';const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let n=!1;for(const o of e)if(t.some((e=>e===o))){n=!0;break}if(!n)return e;let r='"',i=!0;for(let o=e.length;o>0;o--)r+=e[o-1],i&&"\\"===e[o-1]?r+="\\":'"'===e[o-1]?(i=!0,r+='"'):i=!1;return r+='"',r.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let t='"',n=!0;for(let r=e.length;r>0;r--)t+=e[r-1],n&&"\\"===e[r-1]?t+="\\":'"'===e[r-1]?(n=!0,t+="\\"):n=!1;return t+='"',t.split("").reverse().join("")}_cloneExecOptions(e){const t={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t}_getSpawnOptions(e,t){const n={};return n.cwd=(e=e||{}).cwd,n.env=e.env,n.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(n.argv0=`"${t}"`),n}exec(){return r(this,void 0,void 0,(function*(){return!u.isRooted(this.toolPath)&&(this.toolPath.includes("/")||f&&this.toolPath.includes("\\"))&&(this.toolPath=a.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield c.which(this.toolPath,!0),new Promise(((e,t)=>r(this,void 0,void 0,(function*(){this._debug("exec tool: "+this.toolPath),this._debug("arguments:");for(const e of this.args)this._debug(" "+e);const n=this._cloneExecOptions(this.options);!n.silent&&n.outStream&&n.outStream.write(this._getCommandString(n)+i.EOL);const r=new p(n,this.toolPath);if(r.on("debug",(e=>{this._debug(e)})),this.options.cwd&&!(yield u.exists(this.options.cwd)))return t(Error(`The cwd: ${this.options.cwd} does not exist!`));const o=this._getSpawnFileName(),a=s.spawn(o,this._getSpawnArgs(n),this._getSpawnOptions(this.options,o));let c="";a.stdout&&a.stdout.on("data",(e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!n.silent&&n.outStream&&n.outStream.write(e),c=this._processLineBuffer(e,c,(e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e)}))}));let l="";if(a.stderr&&a.stderr.on("data",(e=>{r.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!n.silent&&n.errStream&&n.outStream&&(n.failOnStdErr?n.errStream:n.outStream).write(e),l=this._processLineBuffer(e,l,(e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e)}))})),a.on("error",(e=>{r.processError=e.message,r.processExited=!0,r.processClosed=!0,r.CheckComplete()})),a.on("exit",(e=>{r.processExitCode=e,r.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),r.CheckComplete()})),a.on("close",(e=>{r.processExitCode=e,r.processExited=!0,r.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),r.CheckComplete()})),r.on("done",((n,r)=>{c.length>0&&this.emit("stdline",c),l.length>0&&this.emit("errline",l),a.removeAllListeners(),n?t(n):e(r)})),this.options.input){if(!a.stdin)throw Error("child process missing stdin");a.stdin.end(this.options.input)}}))))}))}},Hs.argStringToArray=function(e){function t(e){i&&'"'!==e&&(o+="\\"),o+=e,i=!1}const n=[];let r=!1,i=!1,o="";for(let s=0;e.length>s;s++){const a=e.charAt(s);'"'!==a?"\\"===a&&i?t(a):"\\"===a&&r?i=!0:" "!==a||r?t(a):o.length>0&&(n.push(o),o=""):i?t(a):r=!r}return o.length>0&&n.push(o.trim()),n};class p extends o.EventEmitter{constructor(e,t){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!t)throw Error("toolPath must not be empty");this.options=e,this.toolPath=t,e.delay&&(this.delay=e.delay)}CheckComplete(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=l.setTimeout(p.HandleTimeout,this.delay,this)))}_debug(e){this.emit("debug",e)}_setResult(){let e;this.processExited&&(this.processError?e=Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):0===this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)):e=Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)}static HandleTimeout(e){e.done||(!e.processClosed&&e.processExited&&e._debug(`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`),e._setResult())}}return Hs}());return qs.exec=e,qs.getExecOutput=function(t,n,r){var s,a;return i(this,void 0,void 0,(function*(){let i="",c="";const u=new o.StringDecoder("utf8"),l=new o.StringDecoder("utf8"),f=null===(s=null==r?void 0:r.listeners)||void 0===s?void 0:s.stdout,p=null===(a=null==r?void 0:r.listeners)||void 0===a?void 0:a.stderr,d=Object.assign(Object.assign({},null==r?void 0:r.listeners),{stdout:e=>{i+=u.write(e),f&&f(e)},stderr:e=>{c+=l.write(e),p&&p(e)}}),h=yield e(t,n,Object.assign(Object.assign({},r),{listeners:d}));return i+=u.end(),c+=l.end(),{exitCode:h,stdout:i,stderr:c}}))},qs}function D(){return Us||(Us=1,function(e){function t(e,t){const n=process.env["INPUT_"+e.replace(/ /g,"_").toUpperCase()]||"";if(t&&t.required&&!n)throw Error("Input required and not supplied: "+e);return t&&!1===t.trimWhitespace?n:n.trim()}function n(e,t={}){(0,u.issueCommand)("error",(0,f.toCommandProperties)(t),e instanceof Error?""+e:e)}function r(e){(0,u.issue)("group",e)}function i(){(0,u.issue)("endgroup")}var o=ns&&ns.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=ns&&ns.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=ns&&ns.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&{}.hasOwnProperty.call(e,n)&&o(t,e,n);return s(t,e),t},c=ns&&ns.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.platform=e.toPlatformPath=e.toWin32Path=e.toPosixPath=e.markdownSummary=e.summary=e.getIDToken=e.getState=e.saveState=e.group=e.endGroup=e.startGroup=e.info=e.notice=e.warning=e.error=e.debug=e.isDebug=e.setFailed=e.setCommandEcho=e.setOutput=e.getBooleanInput=e.getMultilineInput=e.getInput=e.addPath=e.setSecret=e.exportVariable=e.ExitCode=void 0;const u=function(){function e(e,t,n){const r=new s(e,t,n);process.stdout.write(""+r+i.EOL)}if(ts)return rs;ts=1;var t=rs&&rs.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=rs&&rs.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=rs&&rs.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(rs,"__esModule",{value:!0}),rs.issue=rs.issueCommand=void 0;const i=r(Ur),o=T();rs.issueCommand=e,rs.issue=function(t,n=""){e(t,{},n)};class s{constructor(e,t,n){e||(e="missing.command"),this.command=e,this.properties=t,this.message=n}toString(){let e="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let n=!0;for(const r in this.properties)if(this.properties.hasOwnProperty(r)){const i=this.properties[r];i&&(n?n=!1:e+=",",e+=`${r}=${t=i,(0,o.toCommandValue)(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}var t;return e+="::"+function(e){return(0,o.toCommandValue)(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}(this.message),e}}return rs}(),l=function(){if(cs)return os;cs=1;var e=os&&os.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=os&&os.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=os&&os.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var i in n)"default"!==i&&{}.hasOwnProperty.call(n,i)&&e(r,n,i);return t(r,n),r};Object.defineProperty(os,"__esModule",{value:!0}),os.prepareKeyValueMessage=os.issueFileCommand=void 0;const r=n(as),i=n(Mr),o=n(Ur),s=T();return os.issueFileCommand=function(e,t){const n=process.env["GITHUB_"+e];if(!n)throw Error("Unable to find environment variable for file command "+e);if(!i.existsSync(n))throw Error("Missing file at path: "+n);i.appendFileSync(n,`${(0,s.toCommandValue)(t)}${o.EOL}`,{encoding:"utf8"})},os.prepareKeyValueMessage=function(e,t){const n="ghadelimiter_"+r.randomUUID(),i=(0,s.toCommandValue)(t);if(e.includes(n))throw Error(`Unexpected input: name should not contain the delimiter "${n}"`);if(i.includes(n))throw Error(`Unexpected input: value should not contain the delimiter "${n}"`);return`${e}<<${n}${o.EOL}${i}${o.EOL}${n}`},os}(),f=T(),p=a(Ur),d=a(Fr),h=C();var m,y;(y=m||(e.ExitCode=m={}))[y.Success=0]="Success",y[y.Failure=1]="Failure",e.exportVariable=function(e,t){const n=(0,f.toCommandValue)(t);if(process.env[e]=n,process.env.GITHUB_ENV)return(0,l.issueFileCommand)("ENV",(0,l.prepareKeyValueMessage)(e,t));(0,u.issueCommand)("set-env",{name:e},n)},e.setSecret=function(e){(0,u.issueCommand)("add-mask",{},e)},e.addPath=function(e){process.env.GITHUB_PATH?(0,l.issueFileCommand)("PATH",e):(0,u.issueCommand)("add-path",{},e),process.env.PATH=`${e}${d.delimiter}${process.env.PATH}`},e.getInput=t,e.getMultilineInput=function(e,n){const r=t(e,n).split("\n").filter((e=>""!==e));return n&&!1===n.trimWhitespace?r:r.map((e=>e.trim()))},e.getBooleanInput=function(e,n){const r=t(e,n);if(["true","True","TRUE"].includes(r))return!0;if(["false","False","FALSE"].includes(r))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\nSupport boolean input list: \`true | True | TRUE | false | False | FALSE\``)},e.setOutput=function(e,t){if(process.env.GITHUB_OUTPUT)return(0,l.issueFileCommand)("OUTPUT",(0,l.prepareKeyValueMessage)(e,t));process.stdout.write(p.EOL),(0,u.issueCommand)("set-output",{name:e},(0,f.toCommandValue)(t))},e.setCommandEcho=function(e){(0,u.issue)("echo",e?"on":"off")},e.setFailed=function(e){process.exitCode=m.Failure,n(e)},e.isDebug=function(){return"1"===process.env.RUNNER_DEBUG},e.debug=function(e){(0,u.issueCommand)("debug",{},e)},e.error=n,e.warning=function(e,t={}){(0,u.issueCommand)("warning",(0,f.toCommandProperties)(t),e instanceof Error?""+e:e)},e.notice=function(e,t={}){(0,u.issueCommand)("notice",(0,f.toCommandProperties)(t),e instanceof Error?""+e:e)},e.info=function(e){process.stdout.write(e+p.EOL)},e.startGroup=r,e.endGroup=i,e.group=function(e,t){return c(this,void 0,void 0,(function*(){let n;r(e);try{n=yield t()}finally{i()}return n}))},e.saveState=function(e,t){if(process.env.GITHUB_STATE)return(0,l.issueFileCommand)("STATE",(0,l.prepareKeyValueMessage)(e,t));(0,u.issueCommand)("save-state",{name:e},(0,f.toCommandValue)(t))},e.getState=function(e){return process.env["STATE_"+e]||""},e.getIDToken=function(e){return c(this,void 0,void 0,(function*(){return yield h.OidcClient.getIDToken(e)}))};var v=$();Object.defineProperty(e,"summary",{enumerable:!0,get:function(){return v.summary}});var w=$();Object.defineProperty(e,"markdownSummary",{enumerable:!0,get:function(){return w.markdownSummary}});var g=function(){if($s)return Gs;$s=1;var e=Gs&&Gs.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=Gs&&Gs.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=Gs&&Gs.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var i in n)"default"!==i&&{}.hasOwnProperty.call(n,i)&&e(r,n,i);return t(r,n),r};Object.defineProperty(Gs,"__esModule",{value:!0}),Gs.toPlatformPath=Gs.toWin32Path=Gs.toPosixPath=void 0;const r=n(Fr);return Gs.toPosixPath=function(e){return e.replace(/[\\]/g,"/")},Gs.toWin32Path=function(e){return e.replace(/[/]/g,"\\")},Gs.toPlatformPath=function(e){return e.replace(/[/\\]/g,r.sep)},Gs}();Object.defineProperty(e,"toPosixPath",{enumerable:!0,get:function(){return g.toPosixPath}}),Object.defineProperty(e,"toWin32Path",{enumerable:!0,get:function(){return g.toWin32Path}}),Object.defineProperty(e,"toPlatformPath",{enumerable:!0,get:function(){return g.toPlatformPath}}),e.platform=a((js||(js=1,function(e){var t=Bs&&Bs.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=Bs&&Bs.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=Bs&&Bs.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=Bs&&Bs.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},o=Bs&&Bs.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.getDetails=e.isLinux=e.isMacOS=e.isWindows=e.arch=e.platform=void 0;const s=o(Ur),a=r(k());e.platform=s.default.platform(),e.arch=s.default.arch(),e.isWindows="win32"===e.platform,e.isMacOS="darwin"===e.platform,e.isLinux="linux"===e.platform,e.getDetails=function(){return i(this,void 0,void 0,(function*(){return Object.assign(Object.assign({},yield i(void 0,void 0,void 0,e.isWindows?function*(){const{stdout:e}=yield a.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"',void 0,{silent:!0}),{stdout:t}=yield a.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Caption"',void 0,{silent:!0});return{name:t.trim(),version:e.trim()}}:e.isMacOS?function*(){var e,t,n,r;const{stdout:i}=yield a.getExecOutput("sw_vers",void 0,{silent:!0}),o=null!==(t=null===(e=i.match(/ProductVersion:\s*(.+)/))||void 0===e?void 0:e[1])&&void 0!==t?t:"";return{name:null!==(r=null===(n=i.match(/ProductName:\s*(.+)/))||void 0===n?void 0:n[1])&&void 0!==r?r:"",version:o}}:function*(){const{stdout:e}=yield a.getExecOutput("lsb_release",["-i","-r","-s"],{silent:!0}),[t,n]=e.trim().split("\n");return{name:t,version:n}})),{platform:e.platform,arch:e.arch,isWindows:e.isWindows,isMacOS:e.isMacOS,isLinux:e.isLinux})}))}}(Bs)),Bs))}(ns)),ns}function j(e){return Xs?Ws.error(e):console.log(`${e}`)}function U(e){return Xs?Ws.warning(e):console.log(`${e}`)}function F(e){return Xs?Ws.notice(e):console.log(`${e}`)}function M(e){return Xs?Ws.info(e):console.log(e)}function G(){if(na)return ta;na=1;const e="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,t=Fr,n=e?";":":",r=function(){function e(n,r,i){if("function"==typeof r&&(i=r,r={}),!i){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise((function(t,i){e(n,r||{},(function(e,n){e?i(e):t(n)}))}))}t(n,r||{},(function(e,t){e&&("EACCES"===e.code||r&&r.ignoreErrors)&&(e=null,t=!1),i(e,t)}))}return ea||(ea=1,t="win32"===process.platform||Vo.TESTING_WINDOWS?function(){function e(e,t,n){return!(!e.isSymbolicLink()&&!e.isFile())&&function(e,t){var n=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!n)return!0;if(-1!==(n=n.split(";")).indexOf(""))return!0;for(var r=0;n.length>r;r++){var i=n[r].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0}return!1}(t,n)}function t(t,r,i){n.stat(t,(function(n,o){i(n,!n&&e(o,t,r))}))}if(Ks)return Ys;Ks=1,Ys=t,t.sync=function(t,r){return e(n.statSync(t),t,r)};var n=Mr;return Ys}():function(){function e(e,r,i){n.stat(e,(function(e,n){i(e,!e&&t(n,r))}))}function t(e,t){return e.isFile()&&function(e,t){var n=e.mode,r=e.uid,i=e.gid,o=void 0!==t.uid?t.uid:process.getuid&&process.getuid(),s=void 0!==t.gid?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),c=parseInt("010",8),u=a|c;return n&parseInt("001",8)||n&c&&i===s||n&a&&r===o||n&u&&0===o}(e,t)}if(Qs)return Js;Qs=1,Js=e,e.sync=function(e,r){return t(n.statSync(e),r)};var n=Mr;return Js}(),Zs=e,e.sync=function(e,n){try{return t.sync(e,n||{})}catch(r){if(n&&n.ignoreErrors||"EACCES"===r.code)return!1;throw r}}),Zs;var t}(),i=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),o=(t,r)=>{const i=r.colon||n,o=t.match(/\//)||e&&t.match(/\\/)?[""]:[...e?[process.cwd()]:[],...(r.path||process.env.PATH||"").split(i)],s=e?r.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",a=e?s.split(i):[""];return e&&-1!==t.indexOf(".")&&""!==a[0]&&a.unshift(""),{pathEnv:o,pathExt:a,pathExtExe:s}},s=(e,n,s)=>{"function"==typeof n&&(s=n,n={}),n||(n={});const{pathEnv:a,pathExt:c,pathExtExe:u}=o(e,n),l=[],f=r=>new Promise(((o,s)=>{if(r===a.length)return n.all&&l.length?o(l):s(i(e));const c=a[r],u=/^".*"$/.test(c)?c.slice(1,-1):c,f=t.join(u,e),d=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+f:f;o(p(d,r,0))})),p=(e,t,i)=>new Promise(((o,s)=>{if(i===c.length)return o(f(t+1));const a=c[i];r(e+a,{pathExt:u},((r,s)=>{if(!r&&s){if(!n.all)return o(e+a);l.push(e+a)}return o(p(e,t,i+1))}))}));return s?f(0).then((e=>s(null,e)),s):f(0)};return ta=s,s.sync=(e,n)=>{n=n||{};const{pathEnv:s,pathExt:a,pathExtExe:c}=o(e,n),u=[];for(let i=0;s.length>i;i++){const o=s[i],f=/^".*"$/.test(o)?o.slice(1,-1):o,p=t.join(f,e),d=!f&&/^\.[\\\/]/.test(e)?e.slice(0,2)+p:p;for(let e=0;a.length>e;e++){const t=d+a[e];try{if(r.sync(t,{pathExt:c})){if(!n.all)return t;u.push(t)}}catch(l){}}}if(n.all&&u.length)return u;if(n.nothrow)return null;throw i(e)},ta}function B(){if(ha)return da;ha=1;const e=Fr,t=function(){function e(e,i){const o=e.options.env||process.env,s=process.cwd(),a=null!=e.options.cwd,c=a&&void 0!==process.chdir&&!process.chdir.disabled;if(c)try{process.chdir(e.options.cwd)}catch(l){}let u;try{u=n.sync(e.command,{path:o[r({env:o})],pathExt:i?t.delimiter:void 0})}catch(f){}finally{c&&process.chdir(s)}return u&&(u=t.resolve(a?e.options.cwd:"",u)),u}if(oa)return ia;oa=1;const t=Fr,n=G(),r=function(){if(ra)return ga.exports;ra=1;const e=(e={})=>{const t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find((e=>"PATH"===e.toUpperCase()))||"Path"};return ga.exports=e,ga.exports.default=e,ga.exports}();return ia=function(t){return e(t)||e(t,!0)}}(),n=function(){if(sa)return Ea;sa=1;const e=/([()\][%!^"`<>&|;, *?])/g;return Ea.command=function(t){return t.replace(e,"^$1")},Ea.argument=function(t,n){return t=(t=`"${t=(t=(t=""+t).replace(/(?=(\\+?)?)\1"/g,'$1$1\\"')).replace(/(?=(\\+?)?)\1$/,"$1$1")}"`).replace(e,"^$1"),n&&(t=t.replace(e,"^$1")),t},Ea}(),r=function(){if(pa)return fa;pa=1;const e=Mr,t=function(){if(la)return ua;la=1;const e=ca?aa:(ca=1,aa=/^#!(.*)/);return ua=(t="")=>{const n=t.match(e);if(!n)return null;const[r,i]=n[0].replace(/#! ?/,"").split(" "),o=r.split("/").pop();return"env"===o?i:i?`${o} ${i}`:o}}();return fa=function(n){const r=Buffer.alloc(150);let i;try{i=e.openSync(n,"r"),e.readSync(i,r,0,150,0),e.closeSync(i)}catch(o){}return t(""+r)}}(),i="win32"===process.platform,o=/\.(?:com|exe)$/i,s=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;return da=function(a,c,u){c&&!Array.isArray(c)&&(u=c,c=null);const l={command:a,args:c=c?c.slice(0):[],options:u=Object.assign({},u),file:void 0,original:{command:a,args:c}};return u.shell?l:function(a){if(!i)return a;const c=function(e){e.file=t(e);const n=e.file&&r(e.file);return n?(e.args.unshift(e.file),e.command=n,t(e)):e.file}(a),u=!o.test(c);if(a.options.forceShell||u){const t=s.test(c);a.command=e.normalize(a.command),a.command=n.command(a.command),a.args=a.args.map((e=>n.argument(e,t)));const 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}(l)}}function q(e={}){const{env:t=process.env,platform:n=process.platform}=e;return"win32"!==n?"PATH":Object.keys(t).reverse().find((e=>"PATH"===e.toUpperCase()))||"Path"}function H(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe}function V(e){return H(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState}function z(e,t,n){const r=bc(e,t,n),i=mc(e,t),o=yc(e,t);let s;_c(o,r.options),(({timeout:e})=>{if(void 0!==e&&(!Number.isFinite(e)||0>e))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)})(r.options);try{s=Xr.spawn(r.file,r.args,r.options)}catch(p){const e=new Xr.ChildProcess,t=Promise.reject(Ua({error:p,stdout:"",stderr:"",all:"",command:i,escapedCommand:o,parsed:r,timedOut:!1,isCanceled:!1,killed:!1}));return fc(e,t),e}const a=(e=>new Promise(((t,n)=>{e.on("exit",((e,n)=>{t({exitCode:e,signal:n})})),e.on("error",(e=>{n(e)})),e.stdin&&e.stdin.on("error",(e=>{n(e)}))})))(s),c=((e,{timeout:t,killSignal:n="SIGTERM"},r)=>{if(0===t||void 0===t)return r;let i;const o=new Promise(((r,o)=>{i=setTimeout((()=>{((e,t,n)=>{e.kill(t),n(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}))})(e,n,o)}),t)})),s=r.finally((()=>{clearTimeout(i)}));return Promise.race([o,s])})(s,r.options,a),u=(async(e,{cleanup:t,detached:n},r)=>{if(!t||n)return r;const i=Ha((()=>{e.kill()}));return r.finally((()=>{i()}))})(s,r.options,c),l={isCanceled:!1};s.kill=Va.bind(null,s.kill.bind(s)),s.cancel=Ka.bind(null,s,l);const f=Ta((async()=>{const[{error:e,exitCode:t,signal:n,timedOut:a},c,f,p]=await(async({stdout:t,stderr:n,all:r},{encoding:i,buffer:o,maxBuffer:s},a)=>{const c=cc(t,{encoding:i,buffer:o,maxBuffer:s}),u=cc(n,{encoding:i,buffer:o,maxBuffer:s}),l=cc(r,{encoding:i,buffer:o,maxBuffer:2*s});try{return await Promise.all([a,c,u,l])}catch(e){return Promise.all([{error:e,signal:e.signal,timedOut:e.timedOut},ac(t,c),ac(n,u),ac(r,l)])}})(s,r.options,u),d=Sc(r.options,c),h=Sc(r.options,f),m=Sc(r.options,p);if(e||0!==t||null!==n){const c=Ua({error:e,exitCode:t,signal:n,stdout:d,stderr:h,all:m,command:i,escapedCommand:o,parsed:r,timedOut:a,isCanceled:l.isCanceled||!!r.options.signal&&r.options.signal.aborted,killed:s.killed});if(!r.options.reject)return c;throw c}return{command:i,escapedCommand:o,exitCode:0,stdout:d,stderr:h,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}));return((e,t)=>{const n=(({input:e,inputFile:t})=>"string"!=typeof t?e:(sc(e),Mr.createReadStream(t)))(t);void 0!==n&&(H(n)?n.pipe(e.stdin):e.stdin.end(n))})(s,r.options),s.all=((e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;const n=oc();return e.stdout&&n.add(e.stdout),e.stderr&&n.add(e.stderr),n})(s,r.options),(e=>{null!==e.stdout&&(e.pipeStdout=Ja.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=Ja.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=Ja.bind(void 0,e,"all"))})(s),fc(s,f),s}function W(e,t,n){const r=bc(e,t,n),i=mc(e,t),o=yc(e,t);_c(o,r.options);const s=(e=>{const t=(({input:e,inputFile:t})=>"string"!=typeof t?e:(sc(e),Mr.readFileSync(t)))(e);if(H(t))throw new TypeError("The `input` option cannot be a stream in sync mode");return t})(r.options);let a;try{a=Xr.spawnSync(r.file,r.args,{...r.options,input:s})}catch(l){throw Ua({error:l,stdout:"",stderr:"",all:"",command:i,escapedCommand:o,parsed:r,timedOut:!1,isCanceled:!1,killed:!1})}const c=Sc(r.options,a.stdout,a.error),u=Sc(r.options,a.stderr,a.error);if(a.error||0!==a.status||null!==a.signal){const e=Ua({stdout:c,stderr:u,error:a.error,signal:a.signal,exitCode:a.status,command:i,escapedCommand:o,parsed:r,timedOut:a.error&&"ETIMEDOUT"===a.error.code,isCanceled:!1,killed:null!==a.signal});if(!r.options.reject)return e;throw e}return{command:i,escapedCommand:o,exitCode:0,stdout:c,stderr:u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}function X(){return nu||(nu=1,function(e){var t=Oc&&Oc.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=Oc&&Oc.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=Oc&&Oc.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=Oc&&Oc.__exportStar||function(e,n){for(var r in e)"default"===r||{}.hasOwnProperty.call(n,r)||t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.sync=e.isexe=e.posix=e.win32=void 0;const o=r(function(){if(Zc)return Rc;Zc=1,Object.defineProperty(Rc,"__esModule",{value:!0}),Rc.sync=Rc.isexe=void 0;const e=Mr,t=Qc;Rc.isexe=async(e,r={})=>{const{ignoreErrors:i=!1}=r;try{return n(await(0,t.stat)(e),r)}catch(o){if(i||"EACCES"===o.code)return!1;throw o}},Rc.sync=(t,r={})=>{const{ignoreErrors:i=!1}=r;try{return n((0,e.statSync)(t),r)}catch(o){if(i||"EACCES"===o.code)return!1;throw o}};const n=(e,t)=>e.isFile()&&r(e,t),r=(e,t)=>{var n,r,i,o,s,a,c,u;const l=null!=(r=t.uid)?r:null==(n=process.getuid)?void 0:n.call(process),f=null!=(s=null!=(o=t.groups)?o:null==(i=process.getgroups)?void 0:i.call(process))?s:[],p=null!=(u=null!=(c=t.gid)?c:null==(a=process.getgid)?void 0:a.call(process))?u:f[0];if(void 0===l||void 0===p)throw Error("cannot get uid or gid");const d=new Set([p,...f]),h=e.mode,m=e.uid,y=e.gid,v=parseInt("100",8),w=parseInt("010",8),g=v|w;return!!(h&parseInt("001",8)||h&w&&d.has(y)||h&v&&m===l||h&g&&0===l)};return Rc}());e.posix=o;const s=r(function(){if(eu)return ou;eu=1,Object.defineProperty(ou,"__esModule",{value:!0}),ou.sync=ou.isexe=void 0;const e=Mr,t=Qc;ou.isexe=async(e,r={})=>{const{ignoreErrors:i=!1}=r;try{return n(await(0,t.stat)(e),e,r)}catch(o){if(i||"EACCES"===o.code)return!1;throw o}},ou.sync=(t,r={})=>{const{ignoreErrors:i=!1}=r;try{return n((0,e.statSync)(t),t,r)}catch(o){if(i||"EACCES"===o.code)return!1;throw o}};const n=(e,t,n)=>e.isFile()&&((e,t)=>{const{pathExt:n=process.env.PATHEXT||""}=t,r=n.split(";");if(-1!==r.indexOf(""))return!0;for(let i=0;r.length>i;i++){const t=r[i].toLowerCase(),n=e.substring(e.length-t.length).toLowerCase();if(t&&n===t)return!0}return!1})(t,n);return ou}());e.win32=s,i((tu||(tu=1,Object.defineProperty(su,"__esModule",{value:!0})),su),e);const a="win32"===(process.env._ISEXE_TEST_PLATFORM_||process.platform)?s:o;e.isexe=a.isexe,e.sync=a.sync}(Oc)),Oc}function Y(e,t=["-NoProfile","-NoLogo","-NonInteractive"],n={stdio:"inherit"}){return z(function(){if(void 0===cu){const e=au.sync("pwsh",{nothrow:!0});null!==e&&(cu=e);const t=au.sync("powershell",{nothrow:!0});null!==t&&(cu=t)}if(void 0===cu)throw Error("Could not find powershell");return cu}(),[...t,"-c",e],n)}function K(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function J(){return null!==au.sync("sudo",{nothrow:!0})}function Q(){var e;return 0===(null==(e=process.getuid)?void 0:e.call(process))||!!process.env.CI}function Z(){return Q()&&J()}function ee(e){return Z()?"sudo "+e:e}function te(e,t=[],n=fu){return Z()?function(e,t){const[n,...r]=wc(e);return W(n,r,t)}(re(e,t),n):W(e,ie(t),n)}function ne(e,t=[],n=fu){return Z()?function(e,t){const[n,...r]=wc(e);return z(n,r,t)}(re(e,t),n):z(e,ie(t),n)}function re(e,t){return"sudo "+ie([e,...t]).join(" ")}function ie(e){return e.map((e=>`'${e}'`))}function oe(){return"win32"===process.platform?pu():Q()}async function se(e){if(("linux"===process.platform||"darwin"===process.platform)&&Z()&&void 0!==process.env.SUDO_USER){let t=Mr.statSync(e).isDirectory();await ne("chown",[...t?["-R"]:[],process.env.SUDO_USER,e],fu)}}function ae(){if(vu)return yu;vu=1;var e=(mu?hu:(mu=1,hu=function(){}))();return yu=function(t){return t!==e&&null!==t}}function ce(){if(gu)return wu;gu=1;var e=ae(),t=[].forEach,n=Object.create;return wu=function(r){var i=n(null);return t.call(arguments,(function(t){e(t)&&function(e,t){var n;for(n in e)t[n]=e[n]}(Object(t),i)})),i},wu}function ue(){if(Tu)return Pu;Tu=1;var e=function(){if(xu)return Iu;xu=1;var e=Ru?Ou:(Ru=1,Ou=(_u?Eu:(_u=1,Eu=function(){var e=Math.sign;return"function"==typeof e&&1===e(10)&&-1===e(-20)}))()?Math.sign:Su?bu:(Su=1,bu=function(e){return isNaN(e=Number(e))||0===e?e:e>0?1:-1})),t=Math.abs,n=Math.floor;return Iu=function(r){return isNaN(r)?0:0!==(r=Number(r))&&isFinite(r)?e(r)*n(t(r)):r}}(),t=Math.max;return Pu=function(n){return t(0,e(n))}}function le(){if(Cu)return Nu;Cu=1;var e=ue();return Nu=function(t,n,r){var i;return isNaN(t)?0>(i=n)?1:r&&i?i-1:i:!1!==t&&e(t)}}function fe(){return Au?$u:(Au=1,$u=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e})}function pe(){if(ku)return Lu;ku=1;var e=ae();return Lu=function(t){if(!e(t))throw new TypeError("Cannot use null or undefined");return t}}function de(){return Fu||(Fu=1,Uu=function(){if(ju)return Du;ju=1;var e=fe(),t=pe(),n=function(){}.bind,r=function(){}.call,i=Object.keys,o={}.propertyIsEnumerable;return Du=function(s,a){return function(c,u){var l,f=arguments[2],p=arguments[3];return c=Object(t(c)),e(u),l=i(c),p&&l.sort("function"==typeof p?n.call(p,c):void 0),"function"!=typeof s&&(s=l[s]),r.call(s,l,(function(e,t){return o.call(c,e)?r.call(u,f,c[e],e,c,t):a}))}},Du}()("forEach")),Uu}function he(){return Mu||(Mu=1),up}function me(){return Qu||(Qu=1,Ju=(Bu?Gu:(Bu=1,Gu=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}))()?Object.assign:function(){if(Ku)return Yu;Ku=1;var e=Xu?Wu:(Xu=1,Wu=(Hu?qu:(Hu=1,qu=function(){try{return!0}catch(e){return!1}}))()?Object.keys:function(){if(zu)return Vu;zu=1;var e=ae(),t=Object.keys;return Vu=function(n){return t(e(n)?Object(n):n)}}()),t=pe(),n=Math.max;return Yu=function(r,i){var o,s,a,c=n(arguments.length,2);for(r=Object(t(r)),a=function(e){try{r[e]=i[e]}catch(t){o||(o=t)}},s=1;c>s;++s)e(i=arguments[s]).forEach(a);if(void 0!==o)throw o;return r},Yu}()),Ju}function ye(){if(rl)return nl;rl=1;var e=pe(),t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols;return nl=function(o,s){var a,c=Object(e(s));if(o=Object(e(o)),r(c).forEach((function(e){try{t(o,e,n(s,e))}catch(r){a=r}})),"function"==typeof i&&i(c).forEach((function(e){try{t(o,e,n(s,e))}catch(r){a=r}})),void 0!==a)throw a;return o}}function ve(){if(il)return fp.exports;il=1;var e,t,n=ue();try{Object.defineProperty((function(e,t){return t}),"length",{configurable:!0,writable:!1,enumerable:!1,value:1})}catch(r){}return t=ye(),e=function(){var e=[];return function(t){var n,r=0;if(e[t])return e[t];for(n=[];t--;)n.push("a"+(++r).toString(36));return Function("fn","return function ("+n.join(", ")+") { return fn.apply(this, arguments); };")}}(),fp.exports=function(i,o){var s;if(o=n(o),i.length===o)return i;s=e(o)(i);try{t(s,i)}catch(r){}return s},fp.exports}function we(){return sl?ol:(sl=1,ol=function(e){return null!=e})}function ge(){if(hl)return dl;hl=1;var e=function(){if(pl)return fl;pl=1;var e=function(){if(ll)return ul;ll=1;var e=function(){if(cl)return al;cl=1;var e=we(),t={object:!0,function:!0,undefined:!0};return al=function(n){return!!e(n)&&hasOwnProperty.call(t,typeof n)}}();return ul=function(t){if(!e(t))return!1;try{return!!t.constructor&&t.constructor.prototype===t}catch(n){return!1}}}();return fl=function(t){if("function"!=typeof t)return!1;if(!hasOwnProperty.call(t,"length"))return!1;try{if("number"!=typeof t.length)return!1;if("function"!=typeof t.call)return!1;if("function"!=typeof t.apply)return!1}catch(n){return!1}return!e(t)}}(),t=/^\s*class[\s{/}]/,n=function(){}.toString;return dl=function(r){return!!e(r)&&!t.test(n.call(r))}}function Ee(){if(_l)return pp.exports;_l=1;var e=we(),t=ge(),n=me(),r=ce(),i=(El||(El=1,gl=function(){if(yl)return ml;yl=1;var e="razdwatrzy";return ml=function(){return"function"==typeof e.contains&&!0===e.contains("dwa")&&!1===e.contains("foo")}}()()?"".contains:function(){if(wl)return vl;wl=1;var e="".indexOf;return vl=function(t){return e.call(this,t,arguments[1])>-1},vl}()),gl),o=pp.exports=function(t,o){var s,a,c,u,l;return 2>arguments.length||"string"!=typeof t?(u=o,o=t,t=null):u=arguments[2],e(t)?(s=i.call(t,"c"),a=i.call(t,"e"),c=i.call(t,"w")):(s=c=!0,a=!1),l={value:o,configurable:s,enumerable:a,writable:c},u?n(r(u),l):l};return o.gs=function(o,s,a){var c,u,l,f;return"string"!=typeof o?(l=a,a=s,s=o,o=null):l=arguments[3],e(s)?t(s)?e(a)?t(a)||(l=a,a=void 0):a=void 0:(l=s,s=a=void 0):s=void 0,e(o)?(c=i.call(o,"c"),u=i.call(o,"e")):(c=!0,u=!1),f={get:s,set:a,configurable:c,enumerable:u},l?n(r(l),f):f},pp.exports}function _e(){return Nl?Tl:(Nl=1,Tl=(Il?Rl:(Il=1,Rl=function(){return"object"==typeof globalThis&&!!globalThis&&globalThis.Array===Array}))()?globalThis:function(){if(Pl)return xl;Pl=1;var e=function(){if("object"==typeof self&&self)return self;if("object"==typeof window&&window)return window;throw Error("Unable to resolve global `this`")};return xl=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(t){return e()}try{return __global__||e()}finally{delete Object.prototype.__global__}}()}())}function be(){if(Dl)return kl;Dl=1;var e=Ll?Al:(Ll=1,Al=function(e){return!!e&&("symbol"==typeof e||!!e.constructor&&"Symbol"===e.constructor.name&&"Symbol"===e[e.constructor.toStringTag])});return kl=function(t){if(!e(t))throw new TypeError(t+" is not a symbol");return t}}function Se(){return zl?Vl:(zl=1,Vl=function(){if($l)return Cl;$l=1;var e=_e(),t={object:!0,symbol:!0};return Cl=function(){var n=e.Symbol;return"function"==typeof n&&(n("test symbol"),!!t[typeof n.iterator]&&!!t[typeof n.toPrimitive]&&!!t[typeof n.toStringTag])}}()()?_e().Symbol:function(){if(Hl)return ql;Hl=1;var e,t,n,r=Ee(),i=be(),o=_e().Symbol,s=function(){if(Ul)return jl;Ul=1;var e=Ee(),t=Object.defineProperty,n=Object.prototype,r=(0,Object.create)(null);return jl=function(i){for(var o,s,a=0;r[i+(a||"")];)++a;return r[i+=a||""]=!0,t(n,o="@@"+i,e.gs(null,(function(n){s||(s=!0,t(this,o,e(n)),s=!1)}))),o}}(),a=function(){if(Ml)return Fl;Ml=1;var e=Ee(),t=_e().Symbol;return Fl=function(n){return Object.defineProperties(n,{hasInstance:e("",t&&t.hasInstance||n("hasInstance")),isConcatSpreadable:e("",t&&t.isConcatSpreadable||n("isConcatSpreadable")),iterator:e("",t&&t.iterator||n("iterator")),match:e("",t&&t.match||n("match")),replace:e("",t&&t.replace||n("replace")),search:e("",t&&t.search||n("search")),species:e("",t&&t.species||n("species")),split:e("",t&&t.split||n("split")),toPrimitive:e("",t&&t.toPrimitive||n("toPrimitive")),toStringTag:e("",t&&t.toStringTag||n("toStringTag")),unscopables:e("",t&&t.unscopables||n("unscopables"))})}}(),c=function(){if(Bl)return Gl;Bl=1;var e=Ee(),t=be(),n=Object.create(null);return Gl=function(r){return Object.defineProperties(r,{for:e((function(e){return n[e]?n[e]:n[e]=r(e+"")})),keyFor:e((function(e){var r;for(r in t(e),n)if(n[r]===e)return r}))})}}(),u=Object.create,l=Object.defineProperties,f=Object.defineProperty;if("function"==typeof o)try{o(),n=!0}catch(p){}else o=null;return t=function(n){if(this instanceof t)throw new TypeError("Symbol is not a constructor");return e(n)},ql=e=function e(i){var a;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return n?o(i):(a=u(t.prototype),l(a,{__description__:r("",i=void 0===i?"":i+""),__name__:r("",s(i))}))},a(e),c(e),l(t.prototype,{constructor:r(e),toString:r("",(function(){return this.__name__}))}),l(e.prototype,{toString:r((function(){return"Symbol ("+i(this).__description__+")"})),valueOf:r((function(){return i(this)}))}),f(e.prototype,e.toPrimitive,r("",(function(){var e=i(this);return"symbol"==typeof e?e:""+e}))),f(e.prototype,e.toStringTag,r("c","Symbol")),f(t.prototype,e.toStringTag,r("c",e.prototype[e.toStringTag])),f(t.prototype,e.toPrimitive,r("c",e.prototype[e.toPrimitive])),ql}())}function Oe(){return nf?tf:(nf=1,tf=(Ol?Sl:(Ol=1,Sl=function(){var e,t,n=Array.from;return"function"==typeof n&&!(!(t=n(e=["raz","dwa"]))||t===e||"dwa"!==t[1])}))()?Array.from:function(){if(ef)return Zl;ef=1;var e=Se().iterator,t=function(){if(Xl)return Wl;Xl=1;var e={}.toString,t=e.call(function(){return arguments}());return Wl=function(n){return e.call(n)===t}}(),n=function(){if(Kl)return Yl;Kl=1;var e={}.toString,t=/t/.test.bind(/^[object [A-Za-z0-9]*Function]$/);return Yl=function(n){return"function"==typeof n&&t(e.call(n))}}(),r=ue(),i=fe(),o=pe(),s=ae(),a=function(){if(Ql)return Jl;Ql=1;var e={}.toString,t=e.call("");return Jl=function(n){return"string"==typeof n||n&&"object"==typeof n&&(n instanceof String||e.call(n)===t)||!1}}(),c=Array.isArray,u=function(){}.call,l={configurable:!0,enumerable:!0,writable:!0,value:null},f=Object.defineProperty;return Zl=function(p){var d,h,m,y,v,w,g,E,_,b,S=arguments[1],O=arguments[2];if(p=Object(o(p)),s(S)&&i(S),this&&this!==Array&&n(this))d=this;else{if(!S){if(t(p))return 1!==(v=p.length)?Array.apply(null,p):((y=[,])[0]=p[0],y);if(c(p)){for(y=Array(v=p.length),h=0;v>h;++h)y[h]=p[h];return y}}y=[]}if(!c(p))if(void 0!==(_=p[e])){for(g=i(_).call(p),d&&(y=new d),E=g.next(),h=0;!E.done;)b=S?u.call(S,O,E.value,h):E.value,d?(l.value=b,f(y,h,l)):y[h]=b,E=g.next(),++h;v=h}else if(a(p)){for(v=p.length,d&&(y=new d),h=0,m=0;v>h;++h)b=p[h],v>h+1&&(55296>(w=b.charCodeAt(0))||w>56319||(b+=p[++h])),b=S?u.call(S,O,b,m):b,d?(l.value=b,f(y,m,l)):y[m]=b,++m;v=m}if(void 0===v)for(v=r(p.length),d&&(y=new d(v)),h=0;v>h;++h)b=S?u.call(S,O,p[h],h):p[h],d?(l.value=b,f(y,h,l)):y[h]=b;return d&&(l.value=null,y.length=v),y},Zl}())}function Re(){if(ff)return lf;ff=1;var e,t,n,r,i,o=(tl||(tl=1,e=lp,t=me(),n=function(){if(el)return Zu;el=1;var e=ae(),t={function:!0,object:!0};return Zu=function(n){return e(n)&&t[typeof n]||!1}}(),r=ae(),i=Error.captureStackTrace,e.exports=function(o){var s=Error(o),a=arguments[1],c=arguments[2];return r(c)||n(a)&&(c=a,a=null),r(c)&&t(s,c),r(a)&&(s.code=a),i&&i(s,e.exports),s}),lp.exports),s=ve(),a=Ee(),c=function(){return bl||(bl=1,e=dp,dp.exports,u=Ee(),l=fe(),f=function(){}.apply,p=function(){}.call,d=Object.create,h=Object.defineProperty,m=Object.defineProperties,y={}.hasOwnProperty,v={configurable:!0,enumerable:!1,writable:!0},r=function(e,t){var r,o;return l(t),o=this,n.call(this,e,r=function(){i.call(o,e,r),f.call(t,this,arguments)}),r.__eeOnceListener__=t,this},o=function(e){var t,n,r,i,o;if(y.call(this,"__ee__")&&(i=this.__ee__[e]))if("object"==typeof i){for(o=Array((n=arguments.length)-1),t=1;n>t;++t)o[t-1]=arguments[t];for(i=i.slice(),t=0;r=i[t];++t)f.call(r,this,o)}else switch(arguments.length){case 1:p.call(i,this);break;case 2:p.call(i,this,arguments[1]);break;case 3:p.call(i,this,arguments[1],arguments[2]);break;default:for(o=Array((n=arguments.length)-1),t=1;n>t;++t)o[t-1]=arguments[t];f.call(i,this,o)}},s={on:n=function(e,t){var n;return l(t),y.call(this,"__ee__")?n=this.__ee__:(n=v.value=d(null),h(this,"__ee__",v),v.value=null),n[e]?"object"==typeof n[e]?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},once:r,off:i=function(e,t){var n,r,i,o;if(l(t),!y.call(this,"__ee__"))return this;if(!(n=this.__ee__)[e])return this;if("object"==typeof(r=n[e]))for(o=0;i=r[o];++o)i!==t&&i.__eeOnceListener__!==t||(2===r.length?n[e]=r[o?0:1]:r.splice(o,1));else r!==t&&r.__eeOnceListener__!==t||delete n[e];return this},emit:o},a={on:u(n),once:u(r),off:u(i),emit:u(o)},c=m({},a),e.exports=t=function(e){return null==e?d(c):m(Object(e),a)},t.methods=s),dp.exports;var e,t,n,r,i,o,s,a,c,u,l,f,p,d,h,m,y,v}().methods,u=function(){if(af)return sf;af=1;var e,t=function(){if(of)return rf;of=1;var e=Oe(),t=Array.isArray;return rf=function(n){return t(n)?n:e(n)}}(),n=ae(),r=fe(),i=[].slice;return e=function(e){return this.map((function(t,n){return t?t(e[n]):e[n]})).concat(i.call(e,this.length))},sf=function(i){return(i=t(i)).forEach((function(e){n(e)&&r(e)})),e.bind(i)}}(),l=function(){if(uf)return cf;uf=1;var e=fe();return cf=function(t){var n;return"function"==typeof t?{set:t,get:t}:(n={get:e(t.get)},void 0!==t.set?(n.set=e(t.set),t.delete&&(n.delete=e(t.delete)),t.clear&&(n.clear=e(t.clear)),n):(n.set=n.get,n))}}(),f=function(){}.apply,p=function(){}.call,d=Object.create,h=Object.defineProperties,m=c.on,y=c.emit;return lf=function(e,t,n){var r,i,c,v,w,g,E,_,b,S,O,R,I,x,P,T=d(null);return i=!1!==t?t:isNaN(e.length)?1:e.length,n.normalizer&&(S=l(n.normalizer),c=S.get,v=S.set,w=S.delete,g=S.clear),null!=n.resolvers&&(P=u(n.resolvers)),x=c?s((function(t){var n,i,s=arguments;if(P&&(s=P(s)),null!==(n=c(s))&&hasOwnProperty.call(T,n))return O&&r.emit("get",n,s,this),T[n];if(i=1===s.length?p.call(e,this,s[0]):f.call(e,this,s),null===n){if(null!==(n=c(s)))throw o("Circular invocation","CIRCULAR_INVOCATION");n=v(s)}else if(hasOwnProperty.call(T,n))throw o("Circular invocation","CIRCULAR_INVOCATION");return T[n]=i,R&&r.emit("set",n,null,i),i}),i):0===t?function(){var t;if(hasOwnProperty.call(T,"data"))return O&&r.emit("get","data",arguments,this),T.data;if(t=arguments.length?f.call(e,this,arguments):p.call(e,this),hasOwnProperty.call(T,"data"))throw o("Circular invocation","CIRCULAR_INVOCATION");return T.data=t,R&&r.emit("set","data",null,t),t}:function(t){var n,i,s=arguments;if(P&&(s=P(arguments)),i=s[0]+"",hasOwnProperty.call(T,i))return O&&r.emit("get",i,s,this),T[i];if(n=1===s.length?p.call(e,this,s[0]):f.call(e,this,s),hasOwnProperty.call(T,i))throw o("Circular invocation","CIRCULAR_INVOCATION");return T[i]=n,R&&r.emit("set",i,null,n),n},r={original:e,memoized:x,profileName:n.profileName,get:function(e){return P&&(e=P(e)),c?c(e):e[0]+""},has:function(e){return hasOwnProperty.call(T,e)},delete:function(e){var t;hasOwnProperty.call(T,e)&&(w&&w(e),t=T[e],delete T[e],I&&r.emit("delete",e,t))},clear:function(){var e=T;g&&g(),T=d(null),r.emit("clear",e)},on:function(e,t){return"get"===e?O=!0:"set"===e?R=!0:"delete"===e&&(I=!0),m.call(this,e,t)},emit:y,updateEnv:function(){e=r.original}},E=c?s((function(e){var t,n=arguments;P&&(n=P(n)),null!==(t=c(n))&&r.delete(t)}),i):0===t?function(){return r.delete("data")}:function(e){return P&&(e=P(arguments)[0]),r.delete(e)},_=s((function(){var e,n=arguments;return 0===t?T.data:(P&&(n=P(n)),e=c?c(n):n[0]+"",T[e])})),b=s((function(){var e,n=arguments;return 0===t?r.has("data"):(P&&(n=P(n)),null!==(e=c?c(n):n[0]+"")&&r.has(e))})),h(x,{__memoized__:a(!0),delete:a(E),clear:a(r.clear),_get:a(_),_has:a(b)}),r},lf}function Ie(){if(Rf)return Of;Rf=1;var e=Sf?bf:(Sf=1,bf=(gf?wf:(gf=1,wf=function(){var e=Number.isNaN;return"function"==typeof e&&!e({})&&e(NaN)&&!e(34)}))()?Number.isNaN:_f?Ef:(_f=1,Ef=function(e){return e!=e})),t=ue(),n=pe(),r=[].indexOf,i={}.hasOwnProperty,o=Math.abs,s=Math.floor;return Of=function(a){var c,u,l;if(!e(a))return r.apply(this,arguments);for(u=t(n(this).length),c=l=isNaN(l=arguments[1])?0:0>l?t(this.length)-s(o(l)):s(l);u>c;++c)if(i.call(this,c)&&e(this[c]))return c;return-1},Of}function xe(){if(Af)return $f;Af=1;var e=fe(),t=de(),n=function(){}.call;return $f=function(r,i){var o={},s=arguments[2];return e(i),t(r,(function(e,t,r,a){o[t]=n.call(i,s,e,t,r,a)})),o},$f}function Pe(){if(kf)return Lf;kf=1;var e=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e},t=function(t){var n,r,i=document.createTextNode(""),o=0;return new t((function(){var e;if(n)r&&(n=r.concat(n));else{if(!r)return;n=r}if(r=n,n=null,"function"==typeof r)return e=r,r=null,void e();for(i.data=o=++o%2;r;)e=r.shift(),r.length||(r=null),e()})).observe(i,{characterData:!0}),function(t){e(t),n?"function"==typeof n?n=[n,t]:n.push(t):(n=t,i.data=o=++o%2)}};return Lf=function(){if("object"==typeof process&&process&&"function"==typeof process.nextTick)return process.nextTick;if("function"==typeof queueMicrotask)return function(t){queueMicrotask(e(t))};if("object"==typeof document&&document){if("function"==typeof MutationObserver)return t(MutationObserver);if("function"==typeof WebKitMutationObserver)return t(WebKitMutationObserver)}return"function"==typeof setImmediate?function(t){setImmediate(e(t))}:"function"==typeof setTimeout||"object"==typeof setTimeout?function(t){setTimeout(e(t),0)}:null}()}function Te(){return Mf?Ff:(Mf=1,Ff=function(e){return"function"==typeof e})}function Ne(){function e(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}return Yf||(Yf=1,yp.exports=e,yp.exports.default=e),yp.exports}function Ce(){if(Kf)return mp;Kf=1;var e=xe(),t=function(){if(Uf)return jf;Uf=1;var e=[].forEach,t=Object.create;return jf=function(n){var r=t(null);return e.call(arguments,(function(e){r[e]=!0})),r},jf}(),n=function(){if(Hf)return qf;Hf=1;var e=pe(),t=function(){if(Bf)return Gf;Bf=1;var e=Te();return Gf=function(t){try{return t&&e(t.toString)?""+t:t+""}catch(n){throw new TypeError("Passed argument cannot be stringifed")}}}();return qf=function(n){return t(e(n))}}(),r=function(){if(Xf)return Wf;Xf=1;var e=function(){if(zf)return Vf;zf=1;var e=Te();return Vf=function(t){try{return t&&e(t.toString)?""+t:t+""}catch(n){return"<Non-coercible to string value>"}}}();return Wf=function(t){var n=e(t);return n.length>100&&(n=n.slice(0,99)+"…"),n.replace(/[\n\r\u2028\u2029]/g,(function(e){return JSON.stringify(e).slice(1,-1)}))}}(),i=Ne(),o=Pe(),s=Object.create,a=t("then","then:finally","done","done:finally");return he().promise=function(t,c){var u=s(null),l=s(null),f=s(null);if(!0===t)t=null;else if(t=n(t),!a[t])throw new TypeError("'"+r(t)+"' is not valid promise mode");c.on("set",(function(e,n,r){var s=!1;if(!i(r))return l[e]=r,void c.emit("setasync",e,1);u[e]=1,f[e]=r;var a=function(t){var n=u[e];if(s)throw Error("Memoizee error: Detected unordered then|done & finally resolution, which in turn makes proper detection of success/failure impossible (when in 'done:finally' mode)\nConsider to rely on 'then' or 'done' mode instead.");n&&(delete u[e],l[e]=t,c.emit("setasync",e,n))},p=function(){s=!0,u[e]&&(delete u[e],delete f[e],c.delete(e))},d=t;if(d||(d="then"),"then"===d){var h=function(){o(p)};"function"==typeof(r=r.then((function(e){o(a.bind(this,e))}),h)).finally&&r.finally(h)}else if("done"===d){if("function"!=typeof r.done)throw Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");r.done(a,p)}else if("done:finally"===d){if("function"!=typeof r.done)throw Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");if("function"!=typeof r.finally)throw Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");r.done(a),r.finally(p)}})),c.on("get",(function(e,t,n){var r;if(u[e])++u[e];else{var s=function(){c.emit("getasync",e,t,n)};i(r=f[e])?"function"==typeof r.done?r.done(s):r.then((function(){o(s)})):s()}})),c.on("delete",(function(e){if(delete f[e],u[e])delete u[e];else if(hasOwnProperty.call(l,e)){var t=l[e];delete l[e],c.emit("deleteasync",e,[t])}})),c.on("clear",(function(){var t=l;l=s(null),u=s(null),f=s(null),c.emit("clearasync",e(t,(function(e){return[e]})))}))},mp}async function $e(e){try{return await Mr.promises.access(e),!0}catch{return!1}}function Ae(e){const t=function(){if(Z()&&"string"==typeof process.env.SUDO_USER&&""!==process.env.SUDO_USER)return"darwin"===process.platform?Fr.join("/Users/",process.env.SUDO_USER):Fr.join("/home/",process.env.SUDO_USER);{const e=Ur.homedir();if(""===e)return;return e}}();return void 0===t?e:e.replace(bp,t)}async function Le(e){const t=void 0===e.guard?"\n# Automatically Generated by envosman\n":`\n# Automatically Generated by envosman ${e.guard}\nexport SOURCE_${e.guard.toUpperCase()}RC=0\n`;await $e(e.rcPath)&&((await Op(e.rcPath,"utf8")).includes(t)||(await Sp(e.rcPath,`\n${t}\n`),M(`Added ${t} to ${e.rcPath}`)))}async function ke(e,t){await $e(t)&&((await Op(t,"utf-8")).includes(e)||(await Sp(t,e),M(`${e} was added to ${t}`)))}async function De(e,t,n={}){const r={escapeSpace:!1,overwrite:!0,rcPath:Ip,...n},i=function(e,t=!1){const n=t?Np(e):e;return jp(n,'"',"\\")}(null!=t?t:"",r.escapeSpace);try{if(Up)try{if(!r.overwrite&&void 0!==process.env[e])return void M(`Environment variable ${e} is already defined. Skipping.`);Ws.exportVariable(e,i)}catch(o){j(o),await je(e,i,r)}else await je(e,i,r)}catch(o){j(`${o}\nFailed to export environment variable ${e}=${i}. You should add it manually.`)}}async function je(e,t,n){const r=null!=t?t:"";switch(process.platform){case"win32":return n.overwrite||void 0===process.env[e]?(await Y(`[Environment]::SetEnvironmentVariable('${e}', '${r}', "User")`),void M(`${e}='${r}' was set in the environment.`)):void M(`Environment variable ${e} is already defined. Skipping.`);case"linux":case"darwin":return await xp(n),n.overwrite?(await Fp(n.rcPath,`\nexport ${e}="${r}"\n`),M(`${e}="${r}" was added to "${n.rcPath}`)):(await Fp(n.rcPath,`\nif [ -z "\${${e}}" ]; then export ${e}="${r}"; fi\n`),M(`if not defined ${e} then ${e}="${r}" was added to "${n.rcPath}`)),void(process.env[e]=r)}process.env[e]=r}async function Ue(e,t={}){const n={rcPath:Ip,...t};if(!function(e){var t,n;return!!Bp.some((t=>t.test(e)))&&(null!=(n=null==(t=process.env.PATH)?void 0:t.split(Fr.delimiter))?n:[]).includes(e)}(e)){process.env.PATH=`${e}${Fr.delimiter}${process.env.PATH}`;try{if(Mp)try{Ws.addPath(e)}catch(r){j(r),await Fe(e,n)}else await Fe(e,n)}catch(r){j(`${r}\nFailed to add ${e} to the percistent PATH. You should add it manually.`)}}}async function Fe(e,t){switch(process.platform){case"win32":return await Y(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),void M(`"${e}" was added to the PATH.`);case"linux":case"darwin":return await xp(t),await Gp(t.rcPath,`\nexport PATH="${e}:$PATH"\n`),void M(`"${e}" was added to "${t.rcPath}"`);default:return}}function Me(e){throw Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}function Ge(){return qp||(qp=1,e=zp,function(){function t(e,t,i){if(n(e),"object"!=typeof i)throw Error("List of variants should be specified as an object");var o=r[e](t);return void 0!==i[o]?i[o]:null}function n(e){(function(e){return void 0!==r[e]})(e)||function(e){try{Me(__dirname+"/../locales/"+e+".js")}catch(t){throw Error("Failed to load the following locale: "+e)}}(e)}var r={};e.exports={create:function(e){return n(e),{pluralize:function(n,r){return t(e,n,r)}}},addLocale:function(e,t){r[e]=t},pluralize:t}}()),zp.exports;var e}function Be(){return Vp?Hp:(Vp=1,Hp=Ge())}function qe(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function He(e,t){return Object.keys(t).forEach((n=>{"default"===n||"__esModule"===n||e.hasOwnProperty(n)||Object.defineProperty(e,n,{enumerable:!0,get:()=>t[n]})})),e}function Ve(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function ze(e,t=!0){return t?Fr.basename(e):Fr.basename(e,Fr.extname(e))}function We(e){return Fr.normalize(e).replace(RegExp(qe(Fr.sep)+"$"),"")}function Xe(e,t=".exe",n=""){return"win32"===process.platform?`${e}${t}`:`${e}${n}`}function Ye(e,t){const n=Fr.extname(e),r=`${t}${Fr.basename(e,n)}${n}`;return Fr.join(Fr.dirname(e),r)}function Ke(e,t){const n=Fr.extname(e),r=`${Fr.basename(e,n)}${t}${n}`;return Fr.join(Fr.dirname(e),r)}function Je(e,t=".cmd",n=".sh"){return"win32"===process.platform?`${e}${t}`:`${e}${n}`}function Qe(e){return"win32"===process.platform?e:"./"+e}function Ze(e){const t=Fr.extname(e).length;return e.slice(0,-t)}function et(e,t){return ud(e,t)}function tt(e,t){const n=Fr.relative(t,e);return!(!n||".."===n||n.startsWith(".."+Fr.sep)||n===Fr.resolve(e))}function nt(){if("linux"!==process.platform)return!1;try{return function(){try{return Mr.accessSync("/etc/alpine-release"),!0}catch{return!1}}()}catch{return!1}}async function rt(){return async function(e){if(!(await bd()))throw Error("apk is not available on this system");try{const t="/etc/apk/repositories";if(!(await $e(t)))throw Error("APK repositories file not found at "+t);return M("Adding repository: "+e),await Pc(t,e+"\n"),await Sd.clear(),await Sd(),M("Successfully added repository: "+e),!0}catch(t){throw Error(`Failed to add repository ${e}: ${t}`)}}(`https://dl-cdn.alpinelinux.org/alpine/v${(await async function(){const e="/etc/alpine-release";if(!(await $e(e)))throw Error("Alpine release file not found at "+e);return Mc(e,"utf8")}()).split(".").slice(0,2).join(".")}/community/`)}async function it(e){return(await Promise.all(e.map((async e=>await async function(e){try{const{exitCode:t}=await ne("apk",["info","-e",e.name],{reject:!1,stdio:["ignore","pipe","ignore"]});if(0!==t)return!1;if(void 0===e.version||""===e.version)return!0;const{stdout:n}=await ne("apk",["info","-v",e.name],{stdio:["ignore","pipe","ignore"]});return n.trim().split("-").slice(-1)[0]===e.version}catch(t){return!1}}(e)?void 0:e)))).filter((e=>void 0!==e)).map(ot)}function ot(e){return void 0!==e.version&&""!==e.version?`${e.name}=${e.version}`:e.name}async function st(e,t=!1){if(!(await bd()))throw Error("apk is not available on this system");try{await Od(),t&&await Sd.clear(),await Sd();const n=await it(e);return 0===n.length?(M("All packages are already installed"),{binDir:"/usr/bin"}):(M("Installing "+n.join(" ")),await ne("apk",["add",...n]),M("Successfully installed "+n.join(" ")),{binDir:"/usr/bin"})}catch(n){throw U(`Failed to install ${e.map((e=>ot(e))).join(" ")}: ${n}`),n}}async function at(e,t,n,r=40){Rd?await async function(e,t,n=40){await ne("update-alternatives",["--install","/usr/bin/"+e,e,t,""+n])}(e,t,r):(await xp(n),await Id(n.rcPath,`\nif [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${e} ${e} ${t} ${r}; fi\n`))}function ct(){return"linux"===process.platform&&null!==au.sync("nala",{nothrow:!0})}function ut(){return"linux"===process.platform&&null!==au.sync("apt-get",{nothrow:!0})}function lt(){if(ct())return"nala";if("linux"===process.platform&&null!==au.sync("apt-fast",{nothrow:!0}))return"apt-fast";if(ut())return"apt-get";throw Error("No apt command found")}function ft(e){const t={...process.env,DEBIAN_FRONTEND:"noninteractive"};return"nala"===e&&(void 0===t.LANG&&(t.LANG="C.UTF-8"),void 0===t.LC_ALL&&(t.LC_ALL="C.UTF-8")),t}async function pt({keyUrl:e,fileName:t,keyStorePath:n=Nd}){try{ht(t);const r=Fr.join(n,t);if(!(await $e(r))){dt(),await _t([{name:"ca-certificates"}]);const n=Fr.join(Ur.tmpdir(),t),i=new Td.DownloaderHelper(e,Ur.tmpdir(),{fileName:t});i.on("error",(t=>{throw Error(`Failed to download ${e}: ${t}`)})),await i.start(),te("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+r,"--import",n]),te("chmod",["644",r])}return r}catch(r){return void U(`Failed to add apt key via download ${e}: ${r}`)}}function dt(){te("gpg",["-k"])}function ht(e){if(!e.endsWith(".gpg"))throw Error("Key file name must end with .gpg: "+e)}async function mt(e){try{const{stdout:t}=await z("dpkg",["-s",e],{env:ft("apt-get"),stdio:"pipe"});return"string"==typeof t&&t.split("\n").some((e=>e.startsWith("Status: install ok installed")))}catch{return!1}}async function yt(e,t=lt()){return(await Promise.all(e.map((e=>vt(e,t))))).filter((e=>void 0!==e))}async function vt(e,t=lt()){const n=await async function(e,t){const{name:n,version:r,fallBackToLatest:i=!1}=t;switch(await wt(e,n,r,i)){case kd.NameDashVersion:return`${n}-${r}`;case kd.NameEqualsVersion:return`${n}=${r}`;case kd.Name:return n;default:throw Error(`Could not find package '${n}' ${null!=r?r:"with unspecified version"}`)}}(t,e);return await mt(n)?void 0:n}async function wt(e,t,n,r){const i=void 0!==n&&""!==n,o=!i||r;if(i){if(await async function(e,t,n){try{const{stdout:r}=await z("apt-cache",["search","--names-only",`^${qe(t)}-${qe(n)}$`],{env:ft(e),stdio:"pipe"});if(""!==r.trim())return!0}catch{}return!1}(e,t,n))return kd.NameDashVersion;if(await gt(e,`${t}=${n}`))return kd.NameEqualsVersion}const s=()=>{i&&r&&M(`Could not find package ${t} ${n}. Falling back to latest version.`)};return o&&await gt(e,t)?(s(),kd.Name):Ad?o?(s(),kd.Name):kd.None:(Ld(e),wt(e,t,n,r))}async function gt(e,t){try{const{stdout:n}=await z("apt-cache",["show",t],{env:ft(e),stdio:"pipe",verbose:!0});if(""!==n.trim())return!0}catch{}return!1}async function Et(){if(await mt("software-properties-common"))return;const e="apt-get";te(e,["install","-y","--fix-broken","-o",$d,"software-properties-common"],{...fu,env:ft(e)})}async function _t(e,t=!1){try{const r=lt();for(const{name:t,version:n}of e)M(`Installing ${t} ${null!=n?n:""} via ${r}`);t&&Ld.clear(),Ld(r),await async function(e,t){const n=[...new Set(t.flatMap((e=>{var t;return null!=(t=e.repository)?t:[]})))];await Promise.all(n.map((t=>async function(e,t=lt()){await jd(t),await Et(),te("add-apt-repository",["-y",Ud(t)?"--no-update":void 0,e].filter((e=>void 0!==e)),{...fu,env:ft(t)}),Ld.clear(),Ld(t)}(t,e))))}(r,e);const i=await yt(e,r);if(0===i.length)return M("All packages are already installed"),{binDir:"/usr/bin/"};await jd(r);try{await async function(e){await Promise.all(e.map((async e=>{var t;void 0!==e.key&&await(t=e.key,"keyUrl"in t?pt(t):async function({key:e,keyServer:t=Cd,fileName:n,keyStorePath:r=Cd}){try{ht(n);const i=Fr.join(r,n);return await $e(i)||(dt(),await ne("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+i,"--keyserver",t,"--recv-keys",e]),await ne("chmod",["644",i])),i}catch(i){return void U(`Failed to add apt key via server ${t}: ${i}`)}}(t))})))}(e),te(r,["install","--fix-broken","-y",...i],{...fu,env:ft(r)})}catch(n){if(!function(e){return"string"==typeof e.stderr}(n))throw n;Fd.some((e=>"string"==typeof n.stderr&&n.stderr.includes(e)))&&(U(`Failed to install packages ${i}. Retrying...`),te(r,["install","--fix-broken","-y","-o",$d,...i],{...fu,env:ft(r)}))}return{binDir:"/usr/bin/"}}catch(n){throw Error("Failed to install apt packages: "+(n instanceof Error?`${n.message}\n${n.stack}`:n+""))}}async function bt(){if(!ut())return;if("string"==typeof Md)return{binDir:Md};const e=au.sync("apt-fast",{nothrow:!0});return null!==e?(Md=Fr.dirname(e),{binDir:Md}):(Md="/usr/bin",await async function(){const e=_t([{name:"bash"},{name:"wget"}]),t=new Td.DownloaderHelper("https://raw.githubusercontent.com/ilikenwf/apt-fast/c2cd0a0420d3f2d647dc82cf749bfd58c4697dac/quick-install.sh",Ur.tmpdir(),{fileName:"install-apt-fast.sh"});t.on("error",(e=>{throw Error("Failed to download install-apt-fast.sh: "+e)})),await t.start();const n=Fr.join(Ur.tmpdir(),"install-apt-fast.sh");let r=await Mc(n,"utf8");r=r.replace(/sudo/g,"").replace("https://raw.githubusercontent.com/ilikenwf/apt-fast/master","https://raw.githubusercontent.com/Rongronggg9/apt-fast/ac82051792f764220e5e303d4560de0f1952826b"),await Kc(n,r),await e;try{te("bash",[n])}catch(c){j("Failed to install apt-fast via installer: "+c)}const i="/etc/apt-fast.conf";let o=await Mc(i,"utf8");const s=["_APTMGR","DOWNLOADBEFORE"];for(const u of s)o=o.replace(RegExp("^#\\s*"+u,"m"),u);const a=Fr.join(Ur.tmpdir(),"apt-fast.conf");await Kc(a,o),te("mv",[a,i])}(),{binDir:Md})}async function St(e={}){if(!["darwin","linux"].includes(process.platform)||"linux"===process.platform&&"x64"!==process.arch)return void U(`Brew is not supported on ${process.platform} ${process.arch}`);if("string"==typeof Bd)return{binDir:Bd};const t=await au("brew",{nothrow:!0});if(null!==t)return Bd=Fr.dirname(t),{binDir:Bd};await _t([{name:"ca-certificates"}]);const n=new Td.DownloaderHelper("https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh",Ur.tmpdir(),{fileName:"install-brew.sh"});return n.on("error",(e=>{throw Error("Failed to download the brew installer script: "+e)})),await n.start(),W("/bin/bash",[n.getDownloadPath()],{stdio:"inherit",env:{NONINTERACTIVE:"1"}}),Bd=Ot(),await Ue(Bd,e.rcOptions),{binDir:Bd}}function Ot(){return Fr.join(It(),"bin")}function Rt(){return Fr.join(Ot(),"brew")}function It(){if("darwin"===process.platform)return"arm64"===process.arch?"/opt/homebrew":"/usr/local";if("linux"===process.platform)return"/home/linuxbrew/.linuxbrew";throw Error("Unsupported platform for brew")}function xt(e,t){return void 0!==t&&""!==t?`${e}@${t}`:e}async function Pt(e){try{const t=Rt();return(await z(t,["--prefix",e],{stdio:"pipe"})).stdout}catch{return}}async function Tt(e,t,n={}){"overwrite"in n||(n.overwrite=!0),!0===n.cask&&(n.overwrite=!1),M(`Installing ${e} ${null!=t?t:""} via brew`),qd&&null!==au.sync("brew",{nothrow:!0})||(await St(),qd=!0);const r=Rt(),i=["install",xt(e,t)];for(const[a,c]of Object.entries(n))"boolean"==typeof c&&c?i.push("--"+a):"string"==typeof c&&i.push("--"+a,c);const o=W(r,[...i,"--dry-run"],{stdio:"pipe"});0===o.exitCode&&RegExp(`.*${e}.* is already installed and up-to-date.[\\s\\S]*`).test(o.stderr)?M(`${e} ${null!=t?t:""} is already installed and up-to-date`):W(r,i,{stdio:"inherit"});const s=await async function(e,t){const n=xt(e,t),r=await Pt(n);if(void 0!==r)return r;const i=await Pt(e);return void 0!==i?i:function(e,t){const n=It(),r=Fr.join(n,"opt",t);if(Mr.existsSync(r))return r;const i=Fr.join(n,"opt",e);if(Mr.existsSync(i))return i;const o=Fr.join(n,"Cellar",t);if(Mr.existsSync(o))return o;const s=Fr.join(n,"Cellar",e);if(Mr.existsSync(s))return s;const a=Fr.join(n,"lib",t);if(Mr.existsSync(a))return a;const c=Fr.join(n,"lib",e);return Mr.existsSync(c)?c:void 0}(e,n)}(e,t);return void 0===s?(U(`Failed to find installation directory for ${e} ${t}`),{binDir:Ot(),installDir:void 0}):{installDir:s,binDir:Fr.join(s,"bin")}}function Nt(e){const t=Ws.getInput(e.toLowerCase());if("false"!==t&&""!==t)return t}function Ct(e,t){let n=`${e} was installed successfully:`;return void 0===t||("installDir"in t&&(n+="\n- The installation directory is "+t.installDir),""!==t.binDir&&(n+="\n- The binary directory is "+t.binDir)),n}async function $t(){if("darwin"===process.platform)try{const e=await Hd.getExecOutput("xcrun --sdk macosx --show-sdk-path"),t=e.stdout||e.stderr;t?await De("SDKROOT",t.trim(),Vd):j("SDKROOT not set")}catch(e){j(e)}}function At(){return"linux"===process.platform&&(void 0===zd&&(zd=null!==au.sync("dnf",{nothrow:!0})),zd)}function Lt(){return"linux"===process.platform&&(void 0===Wd&&(Wd=null!==au.sync("pacman",{nothrow:!0})),Wd)}async function kt(e){for(const{name:t,version:n}of e)M(`Installing ${t} ${null!=n?n:""} via dnf`);return te("dnf",["-y","install",...await Promise.all(e.map((e=>async function(e,t){if(void 0===t||""===t)return e;const{stdout:n}=await z("dnf",["search","-q",`${e}-${t}`]);if(""!==n.trim())return`${e}-${t}`;const{stdout:r}=await z("dnf",["search","-q",`${e}${t}`]);return""!==r.trim()?`${e}${t}`:(U(`Failed to install ${e} ${t} via dnf, trying without version`),e)}(e.name,e.version))))]),{binDir:"/usr/bin/"}}async function Dt(e,t,n){M(`Installing ${e} ${null!=t?t:""} via pacman`);const r="pacman";"yay"===n&&function(){if(null===au.sync("yay",{nothrow:!0}))try{te("pacman",["-S","--noconfirm","base-devel","git"]);const e=Fr.join(Ur.tmpdir(),"yay");te("mkdir",["-p",e]),Q()?(U("Creating a non-root user to build yay"),te("useradd",["-m","-G","wheel","builder"]),te("passwd",["-d","builder"]),te("chown",["-R","builder:builder",e]),te("bash",["-c",'echo "builder ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers']),Jd=!0,W("su",["-","builder","-c","git clone https://aur.archlinux.org/yay.git "+e],{stdio:"inherit"}),W("su",["-","builder","-c",`cd ${e} && makepkg -si --noconfirm`],{stdio:"inherit"})):(W("git",["clone","https://aur.archlinux.org/yay.git",e],{stdio:"inherit",cwd:Ur.tmpdir()}),W("makepkg",["-si","--noconfirm"],{stdio:"inherit",cwd:e})),W("rm",["-rf",e],{stdio:"inherit"})}catch(e){throw Error(`Failed to install yay: ${e}. Install yay manually and re-run the script.`)}}(),Xd||"yay"===n||(te(r,["-Sy","--noconfirm"]),Xd=!0),Yd||"yay"===n||(te(r,["-S","--noconfirm","base-devel"]),Yd=!0);const i=e=>"yay"===n?Q()&&Jd?te("su",["-","builder","-c","yay -S --noconfirm "+e]):W(n,["-S","--noconfirm",e]):te(null!=n?n:r,["-S","--noconfirm",e]);if(void 0!==t&&""!==t){const n=await async function(e,t){const n=[];try{const{stdout:r}=await z(e,["-Si",t]);for(const e of r.matchAll(Kd))n.push(e[1])}catch(r){U(`Failed to get available versions for ${t}: ${r}`)}return n}(r,e);if(n.includes(t))try{i(`${e}=${t}`)}catch{i(`${e}${t}`)}else M(`Failed to install ${e} ${t} via pacman, trying without version`),i(e)}else i(e);return{binDir:"/usr/bin/"}}async function jt(e,t=th){var n,r;try{const i=await Hd.getExecOutput(e,["--version"]),o=null==(n=(i.stdout||i.stderr||"").trim().match(t))?void 0:n[1];return null!=(r=Qd(o))?r:void 0}catch(i){return void console.error(i)}}async function Ut(e,t,n=th){const r=await jt(e,n);if(void 0===r||""===t)return!1;try{return-1!==Zd(r,t)}catch{return eh(r,t)}}function Ft(e){if(null===sd(e))try{const t=Qd(e);if(null!==t)return M(`Coerced version '${e}' to '${t}'`),t.version}catch(t){}return e}async function Mt(){const e=Fr.join(Um,"gcc_matcher.json");if(!(await $e(e)))return U("the gcc_matcher.json file does not exist in the same folder as setup-cpp.js");M("::add-matcher::"+e)}async function Gt(e){const t=await Mc(e,"utf-8");return JSON.parse(t)}function Bt(e,t){var n;const r=Object.keys(e),i=new Map;if(void 0===t.filterMapTag)for(const c of r)i.set(c,c);else for(const c of r){const e=t.filterMapTag(c);void 0!==e&&i.set(e,c)}if(0===i.size)return;const o=null!=(n=t.versionSatisfies)?n:eh,s=function(e){if(null===sd(e))try{const t=Qd(e);if(null!==t){const n=/^[<=>^~]/.test(t.version)?t.version:"^"+t.version;return M(`Coerced version '${e}' to '${n}'`),n}}catch(t){}return e}(t.version),a=[];for(const[c,u]of i.entries())o(c,s)&&a.push(u);if(0!==a.length)for(const c of a){let n=e[c];if(void 0===n)continue;if(void 0!==t.filterName&&(n=n.filter(t.filterName)),0===n.length)continue;const r=qt(c,n,t);if(void 0!==r)return r}}function qt(e,t,n){if(!(void 0!==n.keywords&&0!==n.keywords.length||void 0!==n.optionalKeywords&&0!==n.optionalKeywords.length))return{tag:e,name:t[0]};let r=[];if(void 0!==n.keywords&&0!==n.keywords.length)for(const i of t)n.keywords.every((e=>!("string"!=typeof e||!i.includes(e))||Array.isArray(e)&&e.some((e=>i.includes(e)))))&&r.push(i);else r=t;if(0!==r.length){if(void 0!==n.optionalKeywords&&0!==n.optionalKeywords.length){const t=r.map((e=>{let t=0;for(const r of n.optionalKeywords)("string"==typeof r&&e.includes(r)||Array.isArray(r)&&r.some((t=>e.includes(t))))&&t++;return t})),i=Math.max(...t);return{tag:e,name:r[t.indexOf(i)]}}return{tag:e,name:r[0]}}}function Ht(){return nh||(nh=1,dm.fromCallback=function(e){return Object.defineProperty((function(...t){if("function"!=typeof t[t.length-1])return new Promise(((n,r)=>{t.push(((e,t)=>null!=e?r(e):n(t))),e.apply(this,t)}));e.apply(this,t)}),"name",{value:e.name})},dm.fromPromise=function(e){return Object.defineProperty((function(...t){const n=t[t.length-1];if("function"!=typeof n)return e.apply(this,t);t.pop(),e.apply(this,t).then((e=>n(null,e)),n)}),"name",{value:e.name})}),dm}function Vt(){function e(e,t){Object.defineProperty(e,o,{get:function(){return t}})}function t(e){function r(e,t){return this instanceof r?(m.apply(this,arguments),this):r.apply(Object.create(r.prototype),arguments)}function i(e,t){return this instanceof i?(y.apply(this,arguments),this):i.apply(Object.create(i.prototype),arguments)}function o(e,t,r,i){return"function"==typeof r&&(i=r,r=null),function e(t,r,i,o,s){return g(t,r,i,(function(a,c){!a||"EMFILE"!==a.code&&"ENFILE"!==a.code?"function"==typeof o&&o.apply(this,arguments):n([e,[t,r,i,o],a,s||Date.now(),Date.now()])}))}(e,t,r,i)}c(e),e.gracefulify=t,e.createReadStream=function(t,n){return new e.ReadStream(t,n)},e.createWriteStream=function(t,n){return new e.WriteStream(t,n)};var s=e.readFile;e.readFile=function(e,t,r){return"function"==typeof t&&(r=t,t=null),function e(t,r,i,o){return s(t,r,(function(s){!s||"EMFILE"!==s.code&&"ENFILE"!==s.code?"function"==typeof i&&i.apply(this,arguments):n([e,[t,r,i],s,o||Date.now(),Date.now()])}))}(e,t,r)};var a=e.writeFile;e.writeFile=function(e,t,r,i){return"function"==typeof r&&(i=r,r=null),function e(t,r,i,o,s){return a(t,r,i,(function(a){!a||"EMFILE"!==a.code&&"ENFILE"!==a.code?"function"==typeof o&&o.apply(this,arguments):n([e,[t,r,i,o],a,s||Date.now(),Date.now()])}))}(e,t,r,i)};var l=e.appendFile;l&&(e.appendFile=function(e,t,r,i){return"function"==typeof r&&(i=r,r=null),function e(t,r,i,o,s){return l(t,r,i,(function(a){!a||"EMFILE"!==a.code&&"ENFILE"!==a.code?"function"==typeof o&&o.apply(this,arguments):n([e,[t,r,i,o],a,s||Date.now(),Date.now()])}))}(e,t,r,i)});var f=e.copyFile;f&&(e.copyFile=function(e,t,r,i){return"function"==typeof r&&(i=r,r=0),function e(t,r,i,o,s){return f(t,r,i,(function(a){!a||"EMFILE"!==a.code&&"ENFILE"!==a.code?"function"==typeof o&&o.apply(this,arguments):n([e,[t,r,i,o],a,s||Date.now(),Date.now()])}))}(e,t,r,i)});var p=e.readdir;e.readdir=function(e,t,r){function i(e,t,r,i){return function(s,a){!s||"EMFILE"!==s.code&&"ENFILE"!==s.code?(a&&a.sort&&a.sort(),"function"==typeof r&&r.call(this,s,a)):n([o,[e,t,r],s,i||Date.now(),Date.now()])}}"function"==typeof t&&(r=t,t=null);var o=d.test(process.version)?function(e,t,n,r){return p(e,i(e,t,n,r))}:function(e,t,n,r){return p(e,t,i(e,t,n,r))};return o(e,t,r)};var d=/^v[0-5]\./;if("v0.8"===process.version.substr(0,4)){var h=u(e);r=h.ReadStream,i=h.WriteStream}var m=e.ReadStream;m&&(r.prototype=Object.create(m.prototype),r.prototype.open=function(){var e=this;o(e.path,e.flags,e.mode,(function(t,n){t?(e.autoClose&&e.destroy(),e.emit("error",t)):(e.fd=n,e.emit("open",n),e.read())}))});var y=e.WriteStream;y&&(i.prototype=Object.create(y.prototype),i.prototype.open=function(){var e=this;o(e.path,e.flags,e.mode,(function(t,n){t?(e.destroy(),e.emit("error",t)):(e.fd=n,e.emit("open",n))}))}),Object.defineProperty(e,"ReadStream",{get:function(){return r},set:function(e){r=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return i},set:function(e){i=e},enumerable:!0,configurable:!0});var v=r;Object.defineProperty(e,"FileReadStream",{get:function(){return v},set:function(e){v=e},enumerable:!0,configurable:!0});var w=i;Object.defineProperty(e,"FileWriteStream",{get:function(){return w},set:function(e){w=e},enumerable:!0,configurable:!0});var g=e.open;return e.open=o,e}function n(e){d("ENQUEUE",e[0].name,e[1]),a[o].push(e),i()}function r(){for(var e=Date.now(),t=0;a[o].length>t;++t)a[o][t].length>2&&(a[o][t][3]=e,a[o][t][4]=e);i()}function i(){if(clearTimeout(p),p=void 0,0!==a[o].length){var e=a[o].shift(),t=e[0],n=e[1],r=e[2],s=e[3],c=e[4];if(void 0===s)d("RETRY",t.name,n),t.apply(null,n);else if(6e4>Date.now()-s){var u=Date.now()-c;Math.min(1.2*Math.max(c-s,1),100)>u?a[o].push(e):(d("RETRY",t.name,n),t.apply(null,n.concat([s])))}else{d("TIMEOUT",t.name,n);var l=n.pop();"function"==typeof l&&l.call(null,r)}void 0===p&&(p=setTimeout(i,0))}}if(lh)return uh;lh=1;var o,s,a=Mr,c=function(){if(ih)return rh;ih=1;var e=ei,t=process.cwd,n=null,r=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return n||(n=t.call(process)),n};try{process.cwd()}catch(o){}if("function"==typeof process.chdir){var i=process.chdir;process.chdir=function(e){n=null,i.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,i)}return rh=function(t){function n(e){return e?function(n,r,i){return e.call(t,n,r,(function(e){l(e)&&(e=null),i&&i.apply(this,arguments)}))}:e}function i(e){return e?function(n,r){try{return e.call(t,n,r)}catch(o){if(!l(o))throw o}}:e}function s(e){return e?function(n,r,i,o){return e.call(t,n,r,i,(function(e){l(e)&&(e=null),o&&o.apply(this,arguments)}))}:e}function a(e){return e?function(n,r,i){try{return e.call(t,n,r,i)}catch(o){if(!l(o))throw o}}:e}function c(e){return e?function(n,r,i){function o(e,t){t&&(0>t.uid&&(t.uid+=4294967296),0>t.gid&&(t.gid+=4294967296)),i&&i.apply(this,arguments)}return"function"==typeof r&&(i=r,r=null),r?e.call(t,n,r,o):e.call(t,n,o)}:e}function u(e){return e?function(n,r){var i=r?e.call(t,n,r):e.call(t,n);return i&&(0>i.uid&&(i.uid+=4294967296),0>i.gid&&(i.gid+=4294967296)),i}:e}function l(e){return!e||"ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code)}var f;e.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&((f=t).lchmod=function(t,n,r){f.open(t,e.O_WRONLY|e.O_SYMLINK,n,(function(e,t){e?r&&r(e):f.fchmod(t,n,(function(e){f.close(t,(function(t){r&&r(e||t)}))}))}))},f.lchmodSync=function(t,n){var r,i=f.openSync(t,e.O_WRONLY|e.O_SYMLINK,n),s=!0;try{r=f.fchmodSync(i,n),s=!1}finally{if(s)try{f.closeSync(i)}catch(o){}else f.closeSync(i)}return r}),t.lutimes||function(t){e.hasOwnProperty("O_SYMLINK")&&t.futimes?(t.lutimes=function(n,r,i,o){t.open(n,e.O_SYMLINK,(function(e,n){e?o&&o(e):t.futimes(n,r,i,(function(e){t.close(n,(function(t){o&&o(e||t)}))}))}))},t.lutimesSync=function(n,r,i){var s,a=t.openSync(n,e.O_SYMLINK),c=!0;try{s=t.futimesSync(a,r,i),c=!1}finally{if(c)try{t.closeSync(a)}catch(o){}else t.closeSync(a)}return s}):t.futimes&&(t.lutimes=function(e,t,n,r){r&&process.nextTick(r)},t.lutimesSync=function(){})}(t),t.chown=s(t.chown),t.fchown=s(t.fchown),t.lchown=s(t.lchown),t.chmod=n(t.chmod),t.fchmod=n(t.fchmod),t.lchmod=n(t.lchmod),t.chownSync=a(t.chownSync),t.fchownSync=a(t.fchownSync),t.lchownSync=a(t.lchownSync),t.chmodSync=i(t.chmodSync),t.fchmodSync=i(t.fchmodSync),t.lchmodSync=i(t.lchmodSync),t.stat=c(t.stat),t.fstat=c(t.fstat),t.lstat=c(t.lstat),t.statSync=u(t.statSync),t.fstatSync=u(t.fstatSync),t.lstatSync=u(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(e,t,n){n&&process.nextTick(n)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(e,t,n,r){r&&process.nextTick(r)},t.lchownSync=function(){}),"win32"===r&&(t.rename="function"!=typeof t.rename?t.rename:function(e){function n(n,r,i){var o=Date.now(),s=0;e(n,r,(function a(c){if(c&&("EACCES"===c.code||"EPERM"===c.code||"EBUSY"===c.code)&&6e4>Date.now()-o)return setTimeout((function(){t.stat(r,(function(t,o){t&&"ENOENT"===t.code?e(n,r,a):i(c)}))}),s),void(100>s&&(s+=10));i&&i(c)}))}return Object.setPrototypeOf&&Object.setPrototypeOf(n,e),n}(t.rename)),t.read="function"!=typeof t.read?t.read:function(e){function n(n,r,i,o,s,a){var c;if(a&&"function"==typeof a){var u=0;c=function(l,f,p){if(l&&"EAGAIN"===l.code&&10>u)return u++,e.call(t,n,r,i,o,s,c);a.apply(this,arguments)}}return e.call(t,n,r,i,o,s,c)}return Object.setPrototypeOf&&Object.setPrototypeOf(n,e),n}(t.read),t.readSync="function"!=typeof t.readSync?t.readSync:function(e){return function(n,r,i,s,a){for(var c=0;;)try{return e.call(t,n,r,i,s,a)}catch(o){if("EAGAIN"===o.code&&10>c){c++;continue}throw o}}}(t.readSync)},rh}(),u=function(){if(sh)return oh;sh=1;var e=Zr.Stream;return oh=function(t){return{ReadStream:function n(r,i){if(!(this instanceof n))return new n(r,i);e.call(this);var o=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536;for(var s=Object.keys(i=i||{}),a=0,c=s.length;c>a;a++){var u=s[a];this[u]=i[u]}if(this.encoding&&this.setEncoding(this.encoding),void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw TypeError("end must be a Number");if(this.start>this.end)throw Error("start must be <= end");this.pos=this.start}null===this.fd?t.open(this.path,this.flags,this.mode,(function(e,t){if(e)return o.emit("error",e),void(o.readable=!1);o.fd=t,o.emit("open",t),o._read()})):process.nextTick((function(){o._read()}))},WriteStream:function n(r,i){if(!(this instanceof n))return new n(r,i);e.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0;for(var o=Object.keys(i=i||{}),s=0,a=o.length;a>s;s++){var c=o[s];this[c]=i[c]}if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(0>this.start)throw Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}}(),l=function(){if(ch)return ah;ch=1,ah=function(t){if(null===t||"object"!=typeof t)return t;if(t instanceof Object)var n={__proto__:e(t)};else n=Object.create(null);return Object.getOwnPropertyNames(t).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})),n};var e=Object.getPrototypeOf||function(e){return e.__proto__};return ah}(),f=zr;"function"==typeof Symbol&&"function"==typeof Symbol.for?(o=Symbol.for("graceful-fs.queue"),s=Symbol.for("graceful-fs.previous")):(o="___graceful-fs.queue",s="___graceful-fs.previous");var p,d=function(){};return f.debuglog?d=f.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(d=function(){var e=f.format.apply(f,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),a[o]||(e(a,Vo[o]||[]),a.close=function(e){function t(t,n){return e.call(a,t,(function(e){e||r(),"function"==typeof n&&n.apply(this,arguments)}))}return Object.defineProperty(t,s,{value:e}),t}(a.close),a.closeSync=function(e){function t(t){e.apply(a,arguments),r()}return Object.defineProperty(t,s,{value:e}),t}(a.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",(function(){d(a[o]),Yr.equal(a[o].length,0)}))),Vo[o]||e(Vo,a[o]),uh=t(l(a)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!a.__patched&&(uh=t(a),a.__patched=!0),uh}function zt(){return fh||(fh=1,function(e){const t=Ht().fromCallback,n=Vt(),r=["access","appendFile","chmod","chown","close","copyFile","cp","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","glob","lchmod","lchown","lutimes","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","statfs","symlink","truncate","unlink","utimes","writeFile"].filter((e=>"function"==typeof n[e]));Object.assign(e,n),r.forEach((r=>{e[r]=t(n[r])})),e.exists=function(e,t){return"function"==typeof t?n.exists(e,t):new Promise((t=>n.exists(e,t)))},e.read=function(e,t,r,i,o,s){return"function"==typeof s?n.read(e,t,r,i,o,s):new Promise(((s,a)=>{n.read(e,t,r,i,o,((e,t,n)=>{if(e)return a(e);s({bytesRead:t,buffer:n})}))}))},e.write=function(e,t,...r){return"function"==typeof r[r.length-1]?n.write(e,t,...r):new Promise(((i,o)=>{n.write(e,t,...r,((e,t,n)=>{if(e)return o(e);i({bytesWritten:t,buffer:n})}))}))},e.readv=function(e,t,...r){return"function"==typeof r[r.length-1]?n.readv(e,t,...r):new Promise(((i,o)=>{n.readv(e,t,...r,((e,t,n)=>{if(e)return o(e);i({bytesRead:t,buffers:n})}))}))},e.writev=function(e,t,...r){return"function"==typeof r[r.length-1]?n.writev(e,t,...r):new Promise(((i,o)=>{n.writev(e,t,...r,((e,t,n)=>{if(e)return o(e);i({bytesWritten:t,buffers:n})}))}))},"function"==typeof n.realpath.native?e.realpath.native=t(n.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")}(pm)),pm}function Wt(){if(ph)return mm;ph=1;const e=Fr;return mm.checkPath=function(t){if("win32"===process.platform&&/[<>:"|?*]/.test(t.replace(e.parse(t).root,""))){const e=Error("Path contains invalid characters: "+t);throw e.code="EINVAL",e}},mm}function Xt(){if(dh)return hm;dh=1;const e=zt(),{checkPath:t}=Wt(),n=e=>"number"==typeof e?e:{mode:511,...e}.mode;return hm.makeDir=async(r,i)=>(t(r),e.mkdir(r,{mode:n(i),recursive:!0})),hm.makeDirSync=(r,i)=>(t(r),e.mkdirSync(r,{mode:n(i),recursive:!0})),hm}function Yt(){if(mh)return hh;mh=1;const e=Ht().fromPromise,{makeDir:t,makeDirSync:n}=Xt(),r=e(t);return hh={mkdirs:r,mkdirsSync:n,mkdirp:r,mkdirpSync:n,ensureDir:r,ensureDirSync:n}}function Kt(){if(vh)return yh;vh=1;const e=Ht().fromPromise,t=zt();return yh={pathExists:e((function(e){return t.access(e).then((()=>!0)).catch((()=>!1))})),pathExistsSync:t.existsSync}}function Jt(){if(gh)return wh;gh=1;const e=zt(),t=Ht().fromPromise;return wh={utimesMillis:t((async function(t,n,r){const i=await e.open(t,"r+");let o=null;try{await e.futimes(i,n,r)}finally{try{await e.close(i)}catch(s){o=s}}if(o)throw o})),utimesMillisSync:function(t,n,r){const i=e.openSync(t,"r+");return e.futimesSync(i,n,r),e.closeSync(i)}}}function Qt(){function e(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function t(e,t){const n=i.resolve(e).split(i.sep).filter((e=>e)),r=i.resolve(t).split(i.sep).filter((e=>e));return n.every(((e,t)=>r[t]===e))}function n(e,t,n){return`Cannot ${n} '${e}' to a subdirectory of itself, '${t}'.`}if(_h)return Eh;_h=1;const r=zt(),i=Fr,o=Ht().fromPromise;return Eh={checkPaths:o((async function(o,s,a,c){const{srcStat:u,destStat:l}=await function(e,t,n){const i=n.dereference?e=>r.stat(e,{bigint:!0}):e=>r.lstat(e,{bigint:!0});return Promise.all([i(e),i(t).catch((e=>{if("ENOENT"===e.code)return null;throw e}))]).then((([e,t])=>({srcStat:e,destStat:t})))}(o,s,c);if(l){if(e(u,l)){const e=i.basename(o),t=i.basename(s);if("move"===a&&e!==t&&e.toLowerCase()===t.toLowerCase())return{srcStat:u,destStat:l,isChangingCase:!0};throw Error("Source and destination must not be the same.")}if(u.isDirectory()&&!l.isDirectory())throw Error(`Cannot overwrite non-directory '${s}' with directory '${o}'.`);if(!u.isDirectory()&&l.isDirectory())throw Error(`Cannot overwrite directory '${s}' with non-directory '${o}'.`)}if(u.isDirectory()&&t(o,s))throw Error(n(o,s,a));return{srcStat:u,destStat:l}})),checkPathsSync:function(o,s,a,c){const{srcStat:u,destStat:l}=function(e,t,n){let i;const o=n.dereference?e=>r.statSync(e,{bigint:!0}):e=>r.lstatSync(e,{bigint:!0}),s=o(e);try{i=o(t)}catch(a){if("ENOENT"===a.code)return{srcStat:s,destStat:null};throw a}return{srcStat:s,destStat:i}}(o,s,c);if(l){if(e(u,l)){const e=i.basename(o),t=i.basename(s);if("move"===a&&e!==t&&e.toLowerCase()===t.toLowerCase())return{srcStat:u,destStat:l,isChangingCase:!0};throw Error("Source and destination must not be the same.")}if(u.isDirectory()&&!l.isDirectory())throw Error(`Cannot overwrite non-directory '${s}' with directory '${o}'.`);if(!u.isDirectory()&&l.isDirectory())throw Error(`Cannot overwrite directory '${s}' with non-directory '${o}'.`)}if(u.isDirectory()&&t(o,s))throw Error(n(o,s,a));return{srcStat:u,destStat:l}},checkParentPaths:o((async function t(o,s,a,c){const u=i.resolve(i.dirname(o)),l=i.resolve(i.dirname(a));if(l===u||l===i.parse(l).root)return;let f;try{f=await r.stat(l,{bigint:!0})}catch(p){if("ENOENT"===p.code)return;throw p}if(e(s,f))throw Error(n(o,a,c));return t(o,s,l,c)})),checkParentPathsSync:function t(o,s,a,c){const u=i.resolve(i.dirname(o)),l=i.resolve(i.dirname(a));if(l===u||l===i.parse(l).root)return;let f;try{f=r.statSync(l,{bigint:!0})}catch(p){if("ENOENT"===p.code)return;throw p}if(e(s,f))throw Error(n(o,a,c));return t(o,s,l,c)},isSrcSubdir:t,areIdentical:e}}function Zt(){async function e(e,t,n){return!n.filter||n.filter(e,t)}async function t(o,s,a,u){const l=u.dereference?r.stat:r.lstat,f=await l(s);if(f.isDirectory())return async function(n,o,s,a,u){o||await r.mkdir(a);const l=[];for await(const f of await r.opendir(s)){const n=i.join(s,f.name),r=i.join(a,f.name);l.push(e(n,r,u).then((e=>{if(e)return c.checkPaths(n,r,"copy",u).then((({destStat:e})=>t(e,n,r,u)))})))}await Promise.all(l),o||await r.chmod(a,n.mode)}(f,o,s,a,u);if(f.isFile()||f.isCharacterDevice()||f.isBlockDevice())return async function(e,t,i,o,s){if(!t)return n(e,i,o,s);if(s.overwrite)return await r.unlink(o),n(e,i,o,s);if(s.errorOnExist)throw Error(`'${o}' already exists`)}(f,o,s,a,u);if(f.isSymbolicLink())return async function(e,t,n,o){let s=await r.readlink(t);if(o.dereference&&(s=i.resolve(process.cwd(),s)),!e)return r.symlink(s,n);let a=null;try{a=await r.readlink(n)}catch(u){if("EINVAL"===u.code||"UNKNOWN"===u.code)return r.symlink(s,n);throw u}if(o.dereference&&(a=i.resolve(process.cwd(),a)),c.isSrcSubdir(s,a))throw Error(`Cannot copy '${s}' to a subdirectory of itself, '${a}'.`);if(c.isSrcSubdir(a,s))throw Error(`Cannot overwrite '${a}' with '${s}'.`);return await r.unlink(n),r.symlink(s,n)}(o,s,a,u);if(f.isSocket())throw Error("Cannot copy a socket file: "+s);if(f.isFIFO())throw Error("Cannot copy a FIFO pipe: "+s);throw Error("Unknown file: "+s)}async function n(e,t,n,i){if(await r.copyFile(t,n),i.preserveTimestamps){128&e.mode||await function(e,t){return r.chmod(e,128|t)}(n,e.mode);const i=await r.stat(t);await a(n,i.atime,i.mtime)}return r.chmod(n,e.mode)}if(Sh)return bh;Sh=1;const r=zt(),i=Fr,{mkdirs:o}=Yt(),{pathExists:s}=Kt(),{utimesMillis:a}=Jt(),c=Qt();return bh=async function(n,r,a={}){"function"==typeof a&&(a={filter:a}),a.clobber=!("clobber"in a)||!!a.clobber,a.overwrite="overwrite"in a?!!a.overwrite:a.clobber,a.preserveTimestamps&&"ia32"===process.arch&&process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n\tsee https://github.com/jprichardson/node-fs-extra/issues/269","Warning","fs-extra-WARN0001");const{srcStat:u,destStat:l}=await c.checkPaths(n,r,"copy",a);if(await c.checkParentPaths(n,u,r,"copy"),!(await e(n,r,a)))return;const f=i.dirname(r);await s(f)||await o(f),await t(l,n,r,a)}}function en(){function e(e,i,a,c){const l=(c.dereference?o.statSync:o.lstatSync)(i);if(l.isDirectory())return function(e,t,i,s,a){return t?r(i,s,a):function(e,t,i,s){return o.mkdirSync(i),r(t,i,s),n(i,e)}(e.mode,i,s,a)}(l,e,i,a,c);if(l.isFile()||l.isCharacterDevice()||l.isBlockDevice())return function(e,n,r,i,s){return n?function(e,n,r,i){if(i.overwrite)return o.unlinkSync(r),t(e,n,r,i);if(i.errorOnExist)throw Error(`'${r}' already exists`)}(e,r,i,s):t(e,r,i,s)}(l,e,i,a,c);if(l.isSymbolicLink())return function(e,t,n,r){let i=o.readlinkSync(t);if(r.dereference&&(i=s.resolve(process.cwd(),i)),e){let e;try{e=o.readlinkSync(n)}catch(a){if("EINVAL"===a.code||"UNKNOWN"===a.code)return o.symlinkSync(i,n);throw a}if(r.dereference&&(e=s.resolve(process.cwd(),e)),u.isSrcSubdir(i,e))throw Error(`Cannot copy '${i}' to a subdirectory of itself, '${e}'.`);if(u.isSrcSubdir(e,i))throw Error(`Cannot overwrite '${e}' with '${i}'.`);return function(e,t){return o.unlinkSync(t),o.symlinkSync(e,t)}(i,n)}return o.symlinkSync(i,n)}(e,i,a,c);if(l.isSocket())throw Error("Cannot copy a socket file: "+i);if(l.isFIFO())throw Error("Cannot copy a FIFO pipe: "+i);throw Error("Unknown file: "+i)}function t(e,t,r,i){return o.copyFileSync(t,r),i.preserveTimestamps&&function(e,t,r){(function(e){return!(128&e)})(e)&&function(e,t){n(e,128|t)}(r,e),function(e,t){const n=o.statSync(e);c(t,n.atime,n.mtime)}(t,r)}(e.mode,t,r),n(r,e.mode)}function n(e,t){return o.chmodSync(e,t)}function r(e,t,n){const r=o.opendirSync(e);try{let o;for(;null!==(o=r.readSync());)i(o.name,e,t,n)}finally{r.closeSync()}}function i(t,n,r,i){const o=s.join(n,t),a=s.join(r,t);if(i.filter&&!i.filter(o,a))return;const{destStat:c}=u.checkPathsSync(o,a,"copy",i);return e(c,o,a,i)}if(Rh)return Oh;Rh=1;const o=Vt(),s=Fr,a=Yt().mkdirsSync,c=Jt().utimesMillisSync,u=Qt();return Oh=function(t,n,r){"function"==typeof r&&(r={filter:r}),(r=r||{}).clobber=!("clobber"in r)||!!r.clobber,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&"ia32"===process.arch&&process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n\tsee https://github.com/jprichardson/node-fs-extra/issues/269","Warning","fs-extra-WARN0002");const{srcStat:i,destStat:c}=u.checkPathsSync(t,n,"copy",r);if(u.checkParentPathsSync(t,i,n,"copy"),r.filter&&!r.filter(t,n))return;const l=s.dirname(n);return o.existsSync(l)||a(l),e(c,t,n,r)}}function tn(){if(xh)return Ih;xh=1;const e=Ht().fromPromise;return Ih={copy:e(Zt()),copySync:en()}}function nn(){if(Th)return Ph;Th=1;const e=Vt(),t=Ht().fromCallback;return Ph={remove:t((function(t,n){e.rm(t,{recursive:!0,force:!0},n)})),removeSync:function(t){e.rmSync(t,{recursive:!0,force:!0})}}}function rn(){function e(e){let t;try{t=n.readdirSync(e)}catch{return i.mkdirsSync(e)}t.forEach((t=>{t=r.join(e,t),o.removeSync(t)}))}if(Ch)return Nh;Ch=1;const t=Ht().fromPromise,n=zt(),r=Fr,i=Yt(),o=nn(),s=t((async function(e){let t;try{t=await n.readdir(e)}catch{return i.mkdirs(e)}return Promise.all(t.map((t=>o.remove(r.join(e,t)))))}));return Nh={emptyDirSync:e,emptydirSync:e,emptyDir:s,emptydir:s}}function on(){if(Ah)return $h;Ah=1;const e=Ht().fromPromise,t=Fr,n=zt(),r=Yt();return $h={createFile:e((async function(e){let i;try{i=await n.stat(e)}catch{}if(i&&i.isFile())return;const o=t.dirname(e);let s=null;try{s=await n.stat(o)}catch(a){if("ENOENT"===a.code)return await r.mkdirs(o),void(await n.writeFile(e,""));throw a}s.isDirectory()?await n.writeFile(e,""):await n.readdir(o)})),createFileSync:function(e){let i;try{i=n.statSync(e)}catch{}if(i&&i.isFile())return;const o=t.dirname(e);try{n.statSync(o).isDirectory()||n.readdirSync(o)}catch(s){if(!s||"ENOENT"!==s.code)throw s;r.mkdirsSync(o)}n.writeFileSync(e,"")}}}function sn(){if(kh)return Lh;kh=1;const e=Ht().fromPromise,t=Fr,n=zt(),r=Yt(),{pathExists:i}=Kt(),{areIdentical:o}=Qt();return Lh={createLink:e((async function(e,s){let a,c;try{a=await n.lstat(s)}catch{}try{c=await n.lstat(e)}catch(l){throw l.message=l.message.replace("lstat","ensureLink"),l}if(a&&o(c,a))return;const u=t.dirname(s);await i(u)||await r.mkdirs(u),await n.link(e,s)})),createLinkSync:function(e,i){let s;try{s=n.lstatSync(i)}catch{}try{const t=n.lstatSync(e);if(s&&o(t,s))return}catch(c){throw c.message=c.message.replace("lstat","ensureLink"),c}const a=t.dirname(i);return n.existsSync(a)||r.mkdirsSync(a),n.linkSync(e,i)}}}function an(){if(jh)return Dh;jh=1;const e=Fr,t=zt(),{pathExists:n}=Kt(),r=Ht().fromPromise;return Dh={symlinkPaths:r((async function(r,i){if(e.isAbsolute(r)){try{await t.lstat(r)}catch(a){throw a.message=a.message.replace("lstat","ensureSymlink"),a}return{toCwd:r,toDst:r}}const o=e.dirname(i),s=e.join(o,r);if(await n(s))return{toCwd:s,toDst:r};try{await t.lstat(r)}catch(a){throw a.message=a.message.replace("lstat","ensureSymlink"),a}return{toCwd:r,toDst:e.relative(o,r)}})),symlinkPathsSync:function(n,r){if(e.isAbsolute(n)){if(!t.existsSync(n))throw Error("absolute srcpath does not exist");return{toCwd:n,toDst:n}}const i=e.dirname(r),o=e.join(i,n);if(t.existsSync(o))return{toCwd:o,toDst:n};if(!t.existsSync(n))throw Error("relative srcpath does not exist");return{toCwd:n,toDst:e.relative(i,n)}}}}function cn(){if(Fh)return Uh;Fh=1;const e=zt(),t=Ht().fromPromise;return Uh={symlinkType:t((async function(t,n){if(n)return n;let r;try{r=await e.lstat(t)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"})),symlinkTypeSync:function(t,n){if(n)return n;let r;try{r=e.lstatSync(t)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}}}function un(){if(Gh)return Mh;Gh=1;const e=Ht().fromPromise,t=Fr,n=zt(),{mkdirs:r,mkdirsSync:i}=Yt(),{symlinkPaths:o,symlinkPathsSync:s}=an(),{symlinkType:a,symlinkTypeSync:c}=cn(),{pathExists:u}=Kt(),{areIdentical:l}=Qt();return Mh={createSymlink:e((async function(e,i,s){let c;try{c=await n.lstat(i)}catch{}if(c&&c.isSymbolicLink()){const[t,r]=await Promise.all([n.stat(e),n.stat(i)]);if(l(t,r))return}const f=await o(e,i);e=f.toDst;const p=await a(f.toCwd,s),d=t.dirname(i);return await u(d)||await r(d),n.symlink(e,i,p)})),createSymlinkSync:function(e,r,o){let a;try{a=n.lstatSync(r)}catch{}if(a&&a.isSymbolicLink()){const t=n.statSync(e),i=n.statSync(r);if(l(t,i))return}const u=s(e,r);e=u.toDst,o=c(u.toCwd,o);const f=t.dirname(r);return n.existsSync(f)||i(f),n.symlinkSync(e,r,o)}}}function ln(){if(qh)return Bh;qh=1;const{createFile:e,createFileSync:t}=on(),{createLink:n,createLinkSync:r}=sn(),{createSymlink:i,createSymlinkSync:o}=un();return Bh={createFile:e,createFileSync:t,ensureFile:e,ensureFileSync:t,createLink:n,createLinkSync:r,ensureLink:n,ensureLinkSync:r,createSymlink:i,createSymlinkSync:o,ensureSymlink:i,ensureSymlinkSync:o}}function fn(){return Vh?Hh:(Vh=1,Hh={stringify:function(e,{EOL:t="\n",finalEOL:n=!0,replacer:r=null,spaces:i}={}){const o=n?t:"";return JSON.stringify(e,r,i).replace(/\n/g,t)+o},stripBom:function(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}})}function pn(){if(Yh)return Xh;Yh=1;const e=function(){if(Wh)return zh;let e;Wh=1;try{e=Vt()}catch(s){e=Mr}const t=Ht(),{stringify:n,stripBom:r}=fn(),i=t.fromPromise((async function(n,i={}){"string"==typeof i&&(i={encoding:i});const o=i.fs||e,s=!("throws"in i)||i.throws;let a,c=await t.fromCallback(o.readFile)(n,i);c=r(c);try{a=JSON.parse(c,i?i.reviver:null)}catch(u){if(s)throw u.message=`${n}: ${u.message}`,u;return null}return a})),o=t.fromPromise((async function(r,i,o={}){const s=o.fs||e,a=n(i,o);await t.fromCallback(s.writeFile)(r,a,o)}));return zh={readFile:i,readFileSync:function(t,n={}){"string"==typeof n&&(n={encoding:n});const i=n.fs||e,o=!("throws"in n)||n.throws;try{let e=i.readFileSync(t,n);return e=r(e),JSON.parse(e,n.reviver)}catch(s){if(o)throw s.message=`${t}: ${s.message}`,s;return null}},writeFile:o,writeFileSync:function(t,r,i={}){const o=i.fs||e,s=n(r,i);return o.writeFileSync(t,s,i)}}}();return Xh={readJson:e.readFile,readJsonSync:e.readFileSync,writeJson:e.writeFile,writeJsonSync:e.writeFileSync}}function dn(){if(Jh)return Kh;Jh=1;const e=Ht().fromPromise,t=zt(),n=Fr,r=Yt(),i=Kt().pathExists;return Kh={outputFile:e((async function(e,o,s="utf-8"){const a=n.dirname(e);return await i(a)||await r.mkdirs(a),t.writeFile(e,o,s)})),outputFileSync:function(e,...i){const o=n.dirname(e);t.existsSync(o)||r.mkdirsSync(o),t.writeFileSync(e,...i)}}}function hn(){if(Zh)return Qh;Zh=1;const{stringify:e}=fn(),{outputFile:t}=dn();return Qh=async function(n,r,i={}){const o=e(r,i);await t(n,o,i)}}function mn(){if(tm)return em;tm=1;const{stringify:e}=fn(),{outputFileSync:t}=dn();return em=function(n,r,i){const o=e(r,i);t(n,o,i)}}function yn(){if(rm)return nm;rm=1;const e=Ht().fromPromise,t=pn();return t.outputJson=e(hn()),t.outputJsonSync=mn(),t.outputJSON=t.outputJson,t.outputJSONSync=t.outputJsonSync,t.writeJSON=t.writeJson,t.writeJSONSync=t.writeJsonSync,t.readJSON=t.readJson,t.readJSONSync=t.readJsonSync,nm=t}function vn(){if(om)return im;om=1;const e=zt(),t=Fr,{copy:n}=tn(),{remove:r}=nn(),{mkdirp:i}=Yt(),{pathExists:o}=Kt(),s=Qt();return im=async function(a,c,u={}){const l=u.overwrite||u.clobber||!1,{srcStat:f,isChangingCase:p=!1}=await s.checkPaths(a,c,"move",u);await s.checkParentPaths(a,f,c,"move");const d=t.dirname(c);return t.parse(d).root!==d&&await i(d),async function(t,i,s,a){if(!a)if(s)await r(i);else if(await o(i))throw Error("dest already exists.");try{await e.rename(t,i)}catch(c){if("EXDEV"!==c.code)throw c;await async function(e,t,i){const o={overwrite:i,errorOnExist:!0,preserveTimestamps:!0};return await n(e,t,o),r(e)}(t,i,s)}}(a,c,l,p)}}function wn(){function e(e,n,o){try{t.renameSync(e,n)}catch(s){if("EXDEV"!==s.code)throw s;return function(e,t,n){return r(e,t,{overwrite:n,errorOnExist:!0,preserveTimestamps:!0}),i(e)}(e,n,o)}}if(am)return sm;am=1;const t=Vt(),n=Fr,r=tn().copySync,i=nn().removeSync,o=Yt().mkdirpSync,s=Qt();return sm=function(r,a,c){const u=(c=c||{}).overwrite||c.clobber||!1,{srcStat:l,isChangingCase:f=!1}=s.checkPathsSync(r,a,"move",c);return s.checkParentPathsSync(r,l,a,"move"),function(e){const t=n.dirname(e);return n.parse(t).root===t}(a)||o(n.dirname(a)),function(n,r,o,s){if(s)return e(n,r,o);if(o)return i(r),e(n,r,o);if(t.existsSync(r))throw Error("dest already exists.");return e(n,r,o)}(r,a,u,f)}}function gn(){if(um)return cm;um=1;const e=Ht().fromPromise;return cm={move:e(vn()),moveSync:wn()}}function En(){return fm?lm:(fm=1,lm={...zt(),...tn(),...rn(),...ln(),...yn(),...Yt(),...gn(),...dn(),...Kt(),...nn()})}async function _n(e,t,n){var r;if("win32"!==process.platform)return;if("string"==typeof vm)return{binDir:vm};const i=au.sync("choco",{nothrow:!0});if(null!==i)return vm=Fr.dirname(i),{binDir:vm};let o="powershell.exe";const s=au.sync(process.env.SystemRoot+"\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",{nothrow:!0});null!==s&&(o=s),W(o,["-NoProfile","-InputFormat","None","-ExecutionPolicy","Bypass","-Command","[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))"],{stdio:"inherit"});const a=process.env.ALLUSERSPROFILE+"\\chocolatey\\bin";await Ue(a,Vd);const c=au.sync("choco",{nothrow:!0});return vm=null!==c?Fr.dirname(c):(null!=(r=process.env.ChocolateyInstall)?r:"C:/ProgramData/chocolatey")+"/bin",await $e(vm)?{binDir:vm}:void 0}async function bn(e,t,n=[]){var r;M(`Installing ${e} ${null!=t?t:""} via chocolatey`),wm&&null!==au.sync("choco",{nothrow:!0})||(await _n(0,0,process),wm=!0);const i=process.env.PATH,o={...process.env};if(o.TMP=void 0,o.TEMP=void 0,o.Path=void 0,o.PATH=i,void 0!==t&&""!==t)W("choco",["install","-y",e,"--version="+t,...n],{env:o,extendEnv:!1,stdio:"inherit"});else try{W("choco",["install","-y",e,...n],{env:o,extendEnv:!1,stdio:"inherit"})}catch(a){if(!a.message.includes("exit code 3010"))throw a;M(e+" might require a reboot for the completion of the installation.")}const s=(null!=(r=process.env.ChocolateyInstall)?r:"C:/ProgramData/chocolatey")+"/bin";return await Ue(s,Vd),{binDir:s}}async function Sn(e,t,n){switch(process.platform){case"win32":return bn("7zip",e);case"darwin":return Tt("p7zip",e);case"linux":if(Lt())return Dt("p7zip",e);if(At())return kt([{name:"p7zip",version:e},{name:"p7zip-plugins",version:e}]);if(ut())return _t([{name:"p7zip-full",version:e}]);if(await bd())return st([{name:"p7zip",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}}function On(){return gm||(gm=1,function(e,t){function n(e){N[e]=C++}function r(e){for(var t=0;A.length>t;t++){var n=A[t][0],r=A[t][1];e=e.split(n+"*").join(n+"{0,"+r+"}").split(n+"+").join(n+"{1,"+r+"}")}return e}function i(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof o)return e;if("string"!=typeof e)return null;if(e.length>O)return null;if(!(t.loose?P[N.LOOSE]:P[N.FULL]).test(e))return null;try{return new o(e,t)}catch(n){return null}}function o(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof o){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>O)throw new TypeError("version is longer than "+O+" characters");if(!(this instanceof o))return new o(e,t);S("SemVer",e,t),this.options=t,this.loose=!!t.loose;var n=e.trim().match(t.loose?P[N.LOOSE]:P[N.FULL]);if(!n)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>R||0>this.major)throw new TypeError("Invalid major version");if(this.minor>R||0>this.minor)throw new TypeError("Invalid minor version");if(this.patch>R||0>this.patch)throw new TypeError("Invalid patch version");this.prerelease=n[4]?n[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&R>t)return t}return e})):[],this.build=n[5]?n[5].split("."):[],this.format()}function s(e,t){var n=k.test(e),r=k.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:t>e?-1:1}function a(e,t,n){return new o(e,n).compare(new o(t,n))}function c(e,t,n){return a(e,t,n)>0}function u(e,t,n){return 0>a(e,t,n)}function l(e,t,n){return 0===a(e,t,n)}function f(e,t,n){return 0!==a(e,t,n)}function p(e,t,n){return a(e,t,n)>=0}function d(e,t,n){return 0>=a(e,t,n)}function h(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return l(e,n,r);case"!=":return f(e,n,r);case">":return c(e,n,r);case">=":return p(e,n,r);case"<":return u(e,n,r);case"<=":return d(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function m(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof m){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof m))return new m(e,t);e=e.trim().split(/\s+/).join(" "),S("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.value=this.semver===D?"":this.operator+this.semver.version,S("comp",this)}function y(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof y)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new y(e.raw,t);if(e instanceof m)return new y(e.value,t);if(!(this instanceof y))return new y(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+this.raw);this.format()}function v(e,t){for(var n=!0,r=e.slice(),i=r.pop();n&&r.length;)n=r.every((function(e){return i.intersects(e,t)})),i=r.pop();return n}function w(e){return!e||"x"===e.toLowerCase()||"*"===e}function g(e,t,n,r,i,o,s,a,c,u,l,f,p){return((t=w(n)?"":w(r)?">="+n+".0.0":w(i)?">="+n+"."+r+".0":">="+t)+" "+(a=w(c)?"":w(u)?"<"+(+c+1)+".0.0":w(l)?"<"+c+"."+(+u+1)+".0":f?"<="+c+"."+u+"."+l+"-"+f:"<="+a)).trim()}function E(e,t,n){for(var r=0;e.length>r;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(r=0;e.length>r;r++)if(S(e[r].semver),e[r].semver!==D&&e[r].semver.prerelease.length>0){var i=e[r].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}function _(e,t,n){try{t=new y(t,n)}catch(r){return!1}return t.test(e)}function b(e,t,n,r){var i,s,a,l,f;switch(e=new o(e,r),t=new y(t,r),n){case">":i=c,s=d,a=u,l=">",f=">=";break;case"<":i=u,s=p,a=c,l="<",f="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(_(e,t,r))return!1;for(var h=0;t.set.length>h;++h){var v=null,w=null;if(t.set[h].forEach((function(e){e.semver===D&&(e=new m(">=0.0.0")),w=w||e,i(e.semver,(v=v||e).semver,r)?v=e:a(e.semver,w.semver,r)&&(w=e)})),v.operator===l||v.operator===f)return!1;if((!w.operator||w.operator===l)&&s(e,w.semver))return!1;if(w.operator===f&&a(e,w.semver))return!1}return!0}var S;t=Im.exports=o,S="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=[].slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var O=256,R=Number.MAX_SAFE_INTEGER||9007199254740991,I=O-6,x=t.re=[],P=t.safeRe=[],T=t.src=[],N=t.tokens={},C=0,$="[a-zA-Z0-9-]",A=[["\\s",1],["\\d",O],[$,I]];n("NUMERICIDENTIFIER"),T[N.NUMERICIDENTIFIER]="0|[1-9]\\d*",n("NUMERICIDENTIFIERLOOSE"),T[N.NUMERICIDENTIFIERLOOSE]="\\d+",n("NONNUMERICIDENTIFIER"),T[N.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+$+"*",n("MAINVERSION"),T[N.MAINVERSION]="("+T[N.NUMERICIDENTIFIER]+")\\.("+T[N.NUMERICIDENTIFIER]+")\\.("+T[N.NUMERICIDENTIFIER]+")",n("MAINVERSIONLOOSE"),T[N.MAINVERSIONLOOSE]="("+T[N.NUMERICIDENTIFIERLOOSE]+")\\.("+T[N.NUMERICIDENTIFIERLOOSE]+")\\.("+T[N.NUMERICIDENTIFIERLOOSE]+")",n("PRERELEASEIDENTIFIER"),T[N.PRERELEASEIDENTIFIER]="(?:"+T[N.NUMERICIDENTIFIER]+"|"+T[N.NONNUMERICIDENTIFIER]+")",n("PRERELEASEIDENTIFIERLOOSE"),T[N.PRERELEASEIDENTIFIERLOOSE]="(?:"+T[N.NUMERICIDENTIFIERLOOSE]+"|"+T[N.NONNUMERICIDENTIFIER]+")",n("PRERELEASE"),T[N.PRERELEASE]="(?:-("+T[N.PRERELEASEIDENTIFIER]+"(?:\\."+T[N.PRERELEASEIDENTIFIER]+")*))",n("PRERELEASELOOSE"),T[N.PRERELEASELOOSE]="(?:-?("+T[N.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+T[N.PRERELEASEIDENTIFIERLOOSE]+")*))",n("BUILDIDENTIFIER"),T[N.BUILDIDENTIFIER]=$+"+",n("BUILD"),T[N.BUILD]="(?:\\+("+T[N.BUILDIDENTIFIER]+"(?:\\."+T[N.BUILDIDENTIFIER]+")*))",n("FULL"),n("FULLPLAIN"),T[N.FULLPLAIN]="v?"+T[N.MAINVERSION]+T[N.PRERELEASE]+"?"+T[N.BUILD]+"?",T[N.FULL]="^"+T[N.FULLPLAIN]+"$",n("LOOSEPLAIN"),T[N.LOOSEPLAIN]="[v=\\s]*"+T[N.MAINVERSIONLOOSE]+T[N.PRERELEASELOOSE]+"?"+T[N.BUILD]+"?",n("LOOSE"),T[N.LOOSE]="^"+T[N.LOOSEPLAIN]+"$",n("GTLT"),T[N.GTLT]="((?:<|>)?=?)",n("XRANGEIDENTIFIERLOOSE"),T[N.XRANGEIDENTIFIERLOOSE]=T[N.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",n("XRANGEIDENTIFIER"),T[N.XRANGEIDENTIFIER]=T[N.NUMERICIDENTIFIER]+"|x|X|\\*",n("XRANGEPLAIN"),T[N.XRANGEPLAIN]="[v=\\s]*("+T[N.XRANGEIDENTIFIER]+")(?:\\.("+T[N.XRANGEIDENTIFIER]+")(?:\\.("+T[N.XRANGEIDENTIFIER]+")(?:"+T[N.PRERELEASE]+")?"+T[N.BUILD]+"?)?)?",n("XRANGEPLAINLOOSE"),T[N.XRANGEPLAINLOOSE]="[v=\\s]*("+T[N.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+T[N.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+T[N.XRANGEIDENTIFIERLOOSE]+")(?:"+T[N.PRERELEASELOOSE]+")?"+T[N.BUILD]+"?)?)?",n("XRANGE"),T[N.XRANGE]="^"+T[N.GTLT]+"\\s*"+T[N.XRANGEPLAIN]+"$",n("XRANGELOOSE"),T[N.XRANGELOOSE]="^"+T[N.GTLT]+"\\s*"+T[N.XRANGEPLAINLOOSE]+"$",n("COERCE"),T[N.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",n("COERCERTL"),x[N.COERCERTL]=RegExp(T[N.COERCE],"g"),P[N.COERCERTL]=RegExp(r(T[N.COERCE]),"g"),n("LONETILDE"),T[N.LONETILDE]="(?:~>?)",n("TILDETRIM"),T[N.TILDETRIM]="(\\s*)"+T[N.LONETILDE]+"\\s+",x[N.TILDETRIM]=RegExp(T[N.TILDETRIM],"g"),P[N.TILDETRIM]=RegExp(r(T[N.TILDETRIM]),"g"),n("TILDE"),T[N.TILDE]="^"+T[N.LONETILDE]+T[N.XRANGEPLAIN]+"$",n("TILDELOOSE"),T[N.TILDELOOSE]="^"+T[N.LONETILDE]+T[N.XRANGEPLAINLOOSE]+"$",n("LONECARET"),T[N.LONECARET]="(?:\\^)",n("CARETTRIM"),T[N.CARETTRIM]="(\\s*)"+T[N.LONECARET]+"\\s+",x[N.CARETTRIM]=RegExp(T[N.CARETTRIM],"g"),P[N.CARETTRIM]=RegExp(r(T[N.CARETTRIM]),"g"),n("CARET"),T[N.CARET]="^"+T[N.LONECARET]+T[N.XRANGEPLAIN]+"$",n("CARETLOOSE"),T[N.CARETLOOSE]="^"+T[N.LONECARET]+T[N.XRANGEPLAINLOOSE]+"$",n("COMPARATORLOOSE"),T[N.COMPARATORLOOSE]="^"+T[N.GTLT]+"\\s*("+T[N.LOOSEPLAIN]+")$|^$",n("COMPARATOR"),T[N.COMPARATOR]="^"+T[N.GTLT]+"\\s*("+T[N.FULLPLAIN]+")$|^$",n("COMPARATORTRIM"),T[N.COMPARATORTRIM]="(\\s*)"+T[N.GTLT]+"\\s*("+T[N.LOOSEPLAIN]+"|"+T[N.XRANGEPLAIN]+")",x[N.COMPARATORTRIM]=RegExp(T[N.COMPARATORTRIM],"g"),P[N.COMPARATORTRIM]=RegExp(r(T[N.COMPARATORTRIM]),"g"),n("HYPHENRANGE"),T[N.HYPHENRANGE]="^\\s*("+T[N.XRANGEPLAIN]+")\\s+-\\s+("+T[N.XRANGEPLAIN]+")\\s*$",n("HYPHENRANGELOOSE"),T[N.HYPHENRANGELOOSE]="^\\s*("+T[N.XRANGEPLAINLOOSE]+")\\s+-\\s+("+T[N.XRANGEPLAINLOOSE]+")\\s*$",n("STAR"),T[N.STAR]="(<|>)?=?\\s*\\*";for(var L=0;C>L;L++)S(L,T[L]),x[L]||(x[L]=RegExp(T[L]),P[L]=RegExp(r(T[L])));t.parse=i,t.valid=function(e,t){var n=i(e,t);return n?n.version:null},t.clean=function(e,t){var n=i(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},t.SemVer=o,o.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},o.prototype.toString=function(){return this.version},o.prototype.compare=function(e){return S("SemVer.compare",this.version,this.options,e),e instanceof o||(e=new o(e,this.options)),this.compareMain(e)||this.comparePre(e)},o.prototype.compareMain=function(e){return e instanceof o||(e=new o(e,this.options)),s(this.major,e.major)||s(this.minor,e.minor)||s(this.patch,e.patch)},o.prototype.comparePre=function(e){if(e instanceof o||(e=new o(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var n=this.prerelease[t],r=e.prerelease[t];if(S("prerelease compare",t,n,r),void 0===n&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===n)return-1;if(n!==r)return s(n,r)}while(++t)},o.prototype.compareBuild=function(e){e instanceof o||(e=new o(e,this.options));var t=0;do{var n=this.build[t],r=e.build[t];if(S("prerelease compare",t,n,r),void 0===n&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===n)return-1;if(n!==r)return s(n,r)}while(++t)},o.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new o(e,n).inc(t,r).version}catch(i){return null}},t.diff=function(e,t){if(l(e,t))return null;var n=i(e),r=i(t),o="";if(n.prerelease.length||r.prerelease.length){o="pre";var s="prerelease"}for(var a in n)if(("major"===a||"minor"===a||"patch"===a)&&n[a]!==r[a])return o+a;return s},t.compareIdentifiers=s;var k=/^[0-9]+$/;t.rcompareIdentifiers=function(e,t){return s(t,e)},t.major=function(e,t){return new o(e,t).major},t.minor=function(e,t){return new o(e,t).minor},t.patch=function(e,t){return new o(e,t).patch},t.compare=a,t.compareLoose=function(e,t){return a(e,t,!0)},t.compareBuild=function(e,t,n){var r=new o(e,n),i=new o(t,n);return r.compare(i)||r.compareBuild(i)},t.rcompare=function(e,t,n){return a(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compareBuild(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.compareBuild(r,e,n)}))},t.gt=c,t.lt=u,t.eq=l,t.neq=f,t.gte=p,t.lte=d,t.cmp=h,t.Comparator=m;var D={};m.prototype.parse=function(e){var t=e.match(this.options.loose?P[N.COMPARATORLOOSE]:P[N.COMPARATOR]);if(!t)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==t[1]?t[1]:"","="===this.operator&&(this.operator=""),this.semver=t[2]?new o(t[2],this.options.loose):D},m.prototype.toString=function(){return this.value},m.prototype.test=function(e){if(S("Comparator.test",e,this.options.loose),this.semver===D||e===D)return!0;if("string"==typeof e)try{e=new o(e,this.options)}catch(t){return!1}return h(e,this.operator,this.semver,this.options)},m.prototype.intersects=function(e,t){if(!(e instanceof m))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new y(e.value,t),_(this.value,n,t));if(""===e.operator)return""===e.value||(n=new y(this.value,t),_(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=h(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=h(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||c},t.Range=y,y.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},y.prototype.toString=function(){return this.range},y.prototype.parseRange=function(e){var t=this.options.loose;e=e.replace(t?P[N.HYPHENRANGELOOSE]:P[N.HYPHENRANGE],g),S("hyphen replace",e),e=e.replace(P[N.COMPARATORTRIM],"$1$2$3"),S("comparator trim",e,P[N.COMPARATORTRIM]),e=(e=(e=e.replace(P[N.TILDETRIM],"$1~")).replace(P[N.CARETTRIM],"$1^")).split(/\s+/).join(" ");var n=t?P[N.COMPARATORLOOSE]:P[N.COMPARATOR],r=e.split(" ").map((function(e){return function(e,t){return S("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){return S("caret",e,t),e.replace(t.loose?P[N.CARETLOOSE]:P[N.CARET],(function(t,n,r,i,o){var s;return S("caret",e,t,n,r,i,o),w(n)?s="":w(r)?s=">="+n+".0.0 <"+(+n+1)+".0.0":w(i)?s="0"===n?">="+n+"."+r+".0 <"+n+"."+(+r+1)+".0":">="+n+"."+r+".0 <"+(+n+1)+".0.0":o?(S("replaceCaret pr",o),s="0"===n?"0"===r?">="+n+"."+r+"."+i+"-"+o+" <"+n+"."+r+"."+(+i+1):">="+n+"."+r+"."+i+"-"+o+" <"+n+"."+(+r+1)+".0":">="+n+"."+r+"."+i+"-"+o+" <"+(+n+1)+".0.0"):(S("no pr"),s="0"===n?"0"===r?">="+n+"."+r+"."+i+" <"+n+"."+r+"."+(+i+1):">="+n+"."+r+"."+i+" <"+n+"."+(+r+1)+".0":">="+n+"."+r+"."+i+" <"+(+n+1)+".0.0"),S("caret return",s),s}))}(e,t)})).join(" ")}(e,t),S("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){return e.replace(t.loose?P[N.TILDELOOSE]:P[N.TILDE],(function(t,n,r,i,o){var s;return S("tilde",e,t,n,r,i,o),w(n)?s="":w(r)?s=">="+n+".0.0 <"+(+n+1)+".0.0":w(i)?s=">="+n+"."+r+".0 <"+n+"."+(+r+1)+".0":o?(S("replaceTilde pr",o),s=">="+n+"."+r+"."+i+"-"+o+" <"+n+"."+(+r+1)+".0"):s=">="+n+"."+r+"."+i+" <"+n+"."+(+r+1)+".0",S("tilde return",s),s}))}(e,t)})).join(" ")}(e,t),S("tildes",e),e=function(e,t){return S("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){return(e=e.trim()).replace(t.loose?P[N.XRANGELOOSE]:P[N.XRANGE],(function(n,r,i,o,s,a){S("xRange",e,n,r,i,o,s,a);var c=w(i),u=c||w(o),l=u||w(s);return"="===r&&l&&(r=""),a=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&l?(u&&(o=0),s=0,">"===r?(r=">=",u?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",u?i=+i+1:o=+o+1),n=r+i+"."+o+"."+s+a):u?n=">="+i+".0.0"+a+" <"+(+i+1)+".0.0"+a:l&&(n=">="+i+"."+o+".0"+a+" <"+i+"."+(+o+1)+".0"+a),S("xRange return",n),n}))}(e,t)})).join(" ")}(e,t),S("xrange",e),e=function(e,t){return S("replaceStars",e,t),e.trim().replace(P[N.STAR],"")}(e,t),S("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(r=r.filter((function(e){return!!e.match(n)}))),r.map((function(e){return new m(e,this.options)}),this)},y.prototype.intersects=function(e,t){if(!(e instanceof y))throw new TypeError("a Range is required");return this.set.some((function(n){return v(n,t)&&e.set.some((function(e){return v(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new y(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},y.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new o(e,this.options)}catch(n){return!1}for(var t=0;this.set.length>t;t++)if(E(this.set[t],e,this.options))return!0;return!1},t.satisfies=_,t.maxSatisfying=function(e,t,n){var r=null,i=null;try{var s=new y(t,n)}catch(a){return null}return e.forEach((function(e){s.test(e)&&(r&&-1!==i.compare(e)||(i=new o(r=e,n)))})),r},t.minSatisfying=function(e,t,n){var r=null,i=null;try{var s=new y(t,n)}catch(a){return null}return e.forEach((function(e){s.test(e)&&(r&&1!==i.compare(e)||(i=new o(r=e,n)))})),r},t.minVersion=function(e,t){e=new y(e,t);var n=new o("0.0.0");if(e.test(n))return n;if(n=new o("0.0.0-0"),e.test(n))return n;n=null;for(var r=0;e.set.length>r;++r)e.set[r].forEach((function(e){var t=new o(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!c(n,t)||(n=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator)}}));return n&&e.test(n)?n:null},t.validRange=function(e,t){try{return new y(e,t).range||"*"}catch(n){return null}},t.ltr=function(e,t,n){return b(e,t,"<",n)},t.gtr=function(e,t,n){return b(e,t,">",n)},t.outside=b,t.prerelease=function(e,t){var n=i(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new y(e,n),t=new y(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof o)return e;if("number"==typeof e&&(e+=""),"string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var r;(r=P[N.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),P[N.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;P[N.COERCERTL].lastIndex=-1}else n=e.match(P[N.COERCE]);return null===n?null:i(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}}(0,Im.exports)),Im.exports}async function Rn(e,t,n,r,i){var o,s;M(`Installing ${e} ${t} ${i} via direct downloading`),process.env.RUNNER_TEMP=null!=(o=process.env.RUNNER_TEMP)?o:Ur.tmpdir(),process.env.RUNNER_TOOL_CACHE=null!=(s=process.env.RUNNER_TOOL_CACHE)?s:Fr.join(Ur.tmpdir(),"setup-cpp","hostedtoolcache");const{url:a,binRelativeDir:c,binFileName:u,extractedFolderName:l,extractFunction:f}=await n(t,process.platform,i);if($m)try{const n=Tm.find(e,t);if(n){const r=Fr.join(n,l),i=Fr.join(r,c);if(await $e(Fr.join(i,u)))return M(`${e} ${t} was found in the cache at ${i}.`),await Ue(i,Vd),{installDir:r,binDir:i}}}catch{}const p=Fr.join(r,l),d=Fr.join(p,c),h=Fr.join(d,u);return await async function(e,t,n,r,i,o,s,a){if((await Promise.all([$e(e),$e(t)])).includes(!1))try{const e=await async function(e,t,n){M(`Download ${e} ${t}`);const r=await Cm((()=>{var e;const t=Fr.join(null!=(e=process.env.RUNNER_TEMP)?e:Ur.tmpdir(),`${Date.now()}-${Fr.basename(n)}`);return Tm.downloadTool(n,t)}),{name:n,max:4,backoffBase:2e3,report:e=>M(e)});return r}(n,r,i);M(`Extracting ${e} to ${o}`);const t=null!=s?s:Pn(xn(i));await t(e,o)}catch(c){throw Error(`Failed to download ${n} ${r} ${a} from ${i}: ${c}`)}if(M(`Add ${e} to PATH`),await Ue(e,Vd),!(await $e(t)))throw Error(`Failed to find the binary ${t} after extracting ${n} ${r} ${a}`);if("win32"!==process.platform)try{await Tc(t,"755")}catch(c){U(`Failed to make ${t} executable: ${c}`)}}(d,h,e,t,a,r,f,i),await async function(e,t,n){$m&&"string"==typeof process.env.RUNNER_TOOL_CACHE&&("true"!==Nt("cache-tools")&&"true"!==process.env.CACHE_TOOLS||await Tm.cacheDir(e,t,n))}(r,e,t),{installDir:p,binDir:d}}async function In(e,t,n){const r=await au("tar",{nothrow:!0});if(null===r)switch(process.platform){case"win32":return Rn("tar","1.13-1",(()=>({url:"https://phoenixnap.dl.sourceforge.net/project/gnuwin32/tar/1.13-1/tar-1.13-1-bin.zip?viasf=1",extractedFolderName:"",binRelativeDir:"bin",binFileName:"tar.exe"})),t,n);case"darwin":return Tt("gnu-tar",e);case"linux":if(Lt())return await Dt("gzip"),await Dt("xz"),Dt("tar");if(At())return kt([{name:"tar"},{name:"gzip"},{name:"xz"}]);if(ut())return _t([{name:"tar"},{name:"gzip"},{name:"xz-utils"}]);if(await bd())return st([{name:"tar"},{name:"gzip"},{name:"xz"}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}else M("tar already installed at "+r)}function xn(e){const t=e.split(".").pop();return"tar"===t?0:"gz"===t||"tgz"===t?1:"xz"===t||"txz"===t?2:"zip"===t?3:("7z"===t||"exe"===t||U(`Unknown archive type: ${t}. Defaulting to 7z`),4)}function Pn(e){switch(e){case 0:case 1:case 2:return $n;case 3:return Cn;default:return Tn}}async function Tn(e,t){const n=Fr.basename(e);if(/.*\.tar\..+$/.test(n)){const r=Fr.dirname(e);await Nn(e,r);const i=n.slice(0,-3),o=Fr.join(r,i);await Nn(o,r),await Jc(o);const s=i.slice(0,-4),a=Fr.join(r,s);M(`Moving ${a} to ${t}`),await ym.move(a,t,{overwrite:!0})}else await Nn(e,t);return t}async function Nn(e,t){M(`7z: extracting ${e} to ${t}`),await z(await async function(){return void 0===Lm&&(null===au.sync("7z",{nothrow:!0})&&await Sn("",0,process),Lm="7z"),Lm}(),["x",e,"-o"+t,"-y"],{stdio:"inherit"}),await se(t)}async function Cn(e,t){return null!==au.sync("7z",{nothrow:!0})?Tn(e,t):null!==au.sync("unzip",{nothrow:!0})?(await z("unzip",["-q",e,"-d",t],{stdio:"inherit"}),await se(t),t):Tn(e,t)}async function $n(e,t,n=0,r=[]){await In("","",process.arch);try{await ym.mkdirp(t)}catch{}try{await z("tar",["xf",e,"-C",t,"--strip-components="+n,...r],{stdio:"inherit"})}catch(i){"win32"===process.platform&&i.message.includes("Can't create '\\\\?\\C:")&&U(`Failed to extract symlink ${e} to ${t}. Ignoring this symlink.`)}return await se(t),t}async function An(e,t,n){let r;switch(process.platform){case"win32":"arm"!==n&&"arm64"!==n||(r=await bn("gcc-arm-embedded",e));try{r=await Rn("g++",e,Ln,t,n)}catch(i){M(`Failed to download g++ binary. ${i}. Falling back to chocolatey.`),r=await async function(e,t){var n,r;let i;if(await bn("mingw",e),"x64"===t&&await $e("C:/tools/mingw64/bin")?(i="C:/tools/mingw64/bin",await Ue(i,Vd)):"ia32"===t&&await $e("C:/tools/mingw32/bin")?(i="C:/tools/mingw32/bin",await Ue(i,Vd)):await $e((null!=(n=process.env.ChocolateyInstall)?n:"C:/ProgramData/chocolatey")+"/bin/g++.exe")&&(i=(null!=(r=process.env.ChocolateyInstall)?r:"C:/ProgramData/chocolatey")+"/bin"),void 0!==i)return{binDir:i}}(e,n)}break;case"linux":if(Lt())r=await Dt("mingw-w64-gcc",e);else if(At())r=await kt([{name:"mingw64-gcc",version:e}]);else if(ut())r=await _t([{name:"mingw-w64",version:e}]);else{if(!(await bd()))throw Error("Unsupported Linux distro for "+n);await rt(),r=await st([{name:"mingw-w64-gcc",version:e},{name:"mingw-w64-crt",version:e}])}break;default:throw Error("Unsupported platform for "+n)}return void 0!==r&&await async function(e){const t=[];"win32"===process.platform&&t.push(De("CC",Xe(e+"/gcc"),Vd),De("CXX",Xe(e+"/g++"),Vd)),km&&await Mt(),await Promise.all(t)}(r.binDir),r}async function Ln(e,t,n){var r;if("win32"!==t)throw Error(`Unsupported platform '${t}'`);const i=await Gt(Fr.join(Dm,"github_brechtsanders_winlibs_mingw.json")),o=kn(e),s=Dn(e),a=jn(e),c=Bt(i,{version:e,keywords:[null!=(r={x64:"x86_64",ia32:"i386"}[n])?r:n],filterName:e=>!(void 0!==o&&o!==kn(e)||void 0!==s&&s!==Dn(e)||void 0!==a&&a!==jn(e)),versionSatisfies:(e,t)=>{const n=Qd(e);if(null===n)throw Error(`Invalid MinGW asset version: '${e}'`);return eh(n,t)&&(void 0===o||o===kn(e))&&(void 0===s||s===Dn(e))}});if(void 0===c)throw Error(`No asset found for version ${e} and arch ${n}`);return{binRelativeDir:"bin/",binFileName:Xe("g++"),extractedFolderName:"mingw64",extractFunction:Tn,url:`https://github.com/brechtsanders/winlibs_mingw/releases/download/${c.tag}/${c.name}`}}function kn(e){const t=e.match(/(ucrt|msvcrt)/);return null!==t?t[1]:void 0}function Dn(e){const t=e.match(/(posix|mcf)/);return null!==t?t[1]:void 0}function jn(e){const t=e.match(/(seh|dwarf)/);return null!==t?t[1]:void 0}async function Un(e,t,n,r=40){let i;switch(process.platform){case"win32":i=await An(e,t,n);break;case"darwin":i=await Tt("gcc",e);break;case"linux":if(Lt())i=await Dt("gcc",e);else if(At())i=await kt([{name:"gcc",version:e},{name:"gcc-c++",version:e},{name:"libstdc++-devel"}]);else if(await bd())i=await st([{name:"gcc",version:e},{name:"g++",version:e}]);else if(ut())if(""===e)i=await _t([{name:"gcc"},{name:"g++"}]);else try{i=await _t([{name:"gcc",version:e},{name:"g++",version:e}])}catch(o){i=await _t([{name:"gcc",version:e,repository:"ppa:ubuntu-toolchain-r/test",key:{key:"1E9377A2BA9EF27F",fileName:"ubuntu-toolchain-r-test.gpg"}},{name:"g++",version:e,repository:"ppa:ubuntu-toolchain-r/test",key:{key:"1E9377A2BA9EF27F",fileName:"ubuntu-toolchain-r-test.gpg"}}])}break;default:throw Error("Unsupported platform for "+n)}if(void 0!==i)return await async function(e,t,n=40){if("win32"===process.platform)return;const r=[];{const i=function(e){try{const t=Ft(e),n=_d(t);return 5>n?e:""+n}catch{return e}}(e),[o,s]=await Promise.all([Fn("gcc",t,i),Fn("g++",t,i)]);r.push(De("CC",o,Vd),De("CXX",s,Vd)),ut()&&r.push(at("cc",o,Vd,n),at("cxx",s,Vd,n),at("gcc",o,Vd,n),at("g++",s,Vd,n))}r.push($t()),jm&&await Mt(),await Promise.all(r)}(e,i.binDir,r),i}async function Fn(e,t,n){var r,i;if(await $e(`${t}/${e}-${n}`))return Xe(`${t}/${e}-${n}`);const o=RegExp(`^${qe(e)}-?([\\d\\.\\-]*)(?:\\.exe)?$`),s=(await Fc(t)).filter((e=>o.test(e))).sort(((e,t)=>{var n,r,i,s;const a=null!=(r=null==(n=e.match(o))?void 0:n[1])?r:"",c=null!=(s=null==(i=t.match(o))?void 0:i[1])?s:"";try{return function(e,t){const n=Qd(e),r=Qd(t);return null!==n&&null!==r?r.compare(n):t.localeCompare(e)}(a,c)}catch{return 0}}));for(const a of s){const e=`${t}/${a}`;if(""===n||a.includes(n)||null!=(i=null==(r=await Mn(e))?void 0:r.includes(n))&&i)return Xe(e)}return await $e(`${t}/${e}`)?Xe(`${t}/${e}`):Xe(e)}async function Mn(e){try{const{stdout:t}=await z(e,["--version"],{stdio:"pipe"}),n=t.match(/(gcc|g\+\+).* \(.*\) ([\d.]+)/);if(null!==n)return n[2];U("Failed to parse gcc version from: "+t)}catch(t){j("Failed to get gcc version: "+t)}}function Gn(e,t,n=null){var r;return qn(t)?null!=(r=Bn(e,n))?r:"":t}function Bn(e,t=null){var n,r,i;const o=ey()[e];if(void 0===o)return;if("string"==typeof o)return o;const s=null!=(n=o[process.platform])?n:o.else;if(void 0===s)throw Error(`Platform "${process.platform}" not found in versions data for tool "${e}"`);if("string"==typeof s)return s;const a=s,c=ut()?"ubuntu":Lt()?"archlinux":nt()?"alpine":At()?"fedora":"else",u=null!=(r=a[c])?r:a.else;if(void 0===u)throw Error(`Distro "${c}" not found in versions data for tool "${e}"`);if("string"==typeof u)return u;const l=u,f=null!==t?function(e,t){var n;const r=e[0],i=Object.keys(t).map((e=>Number.parseInt(e,10))).filter((e=>!Number.isNaN(e))).sort(((e,t)=>t-e)).find((e=>r>=e));return void 0!==i&&null!=(n=t[i])?n:t.else}(t,l):l.else;if(void 0===f)throw Error(`Architecture "${process.arch}" not found in versions data for tool "${e}"`);return"string"==typeof f?f:null!=(i=f[process.arch])?i:f.else}function qn(e){return"true"===e||void 0===e}async function Hn(e,t,n){Ws.startGroup("Setup Python");const r=await async function(e,t,n){const r=function(e){return e.startsWith(">")}(e)?"":e;let i,o=await Vn(t);if(void 0!==o){const e=Fr.dirname(o);i={bin:o,installDir:e,binDir:e}}else{if(ty)try{M("Installing python in GitHub Actions");const{setupActionsPython:e}=await Promise.resolve().then((()=>require("./assets/actions_python-CuNJhsEe.js")));if(await e(r,t,n),o=await Vn(t),void 0===o)throw Error("Python binary could not be found");const s=Fr.dirname(o);i={bin:o,installDir:s,binDir:s}}catch(s){U(""+s)}void 0===i&&(i=await async function(e,t){let n;switch(process.platform){case"win32":{e?await bn("python3",t,["--params=/InstallDir:"+e]):await bn("python3",t);const r=await Vn(e);if(void 0===r)throw Error("Python binary could not be found");const i=Fr.dirname(r);await Ue(i,Vd),n={installDir:i,binDir:i,bin:r};break}case"darwin":{n=await Tt("python3",t);const e=await z("brew",["--prefix","python"],{stdio:"pipe"}),r=Fr.join(e.stdout,"libexec","bin");await Ue(r,Vd);break}case"linux":if(Lt())n=await Dt("python",t);else if(At())n=await kt([{name:"python3",version:t}]);else if(ut())n=await _t([{name:"python3",version:t},{name:"python-is-python3"}]);else{if(!(await bd()))throw Error("Unsupported linux distributions");n=await st([{name:"python3",version:t}])}break;default:throw Error("Unsupported platform")}return n}(t,r))}if(void 0===o||void 0===i.bin){if(o=await Vn(t),void 0===o)throw Error("Python binary could not be found");i={bin:o,installDir:Fr.dirname(o),binDir:Fr.dirname(o)}}return i}(e,t,n);Yr(void 0!==r.bin);const i=r.bin;Ws.endGroup(),Ws.startGroup("Setup venv"),await async function(e){if(await async function(e){try{return await z(e,["-m","venv","-h"],{stdio:"ignore"}),!ut()||mt("python3-venv")}catch{}return!1}(e))M("venv module already installed.");else try{await rr("venv")}catch(t){M(`Failed to install venv: ${""+t}. Ignoring...`)}}(i),Ws.endGroup(),Ws.startGroup("Setup pip");const o=await async function(e){const t=await Wn();return void 0===t?(M("pip was not found. Installing pip"),await async function(e){await Yn(e)||(await rr("pip"),await Yn(e))}(e),Wn()):t}(i);if(Ws.endGroup(),void 0===o)throw Error("pip was not installed correctly");return Ws.startGroup("Setup pipx"),await async function(e){try{if(!(await nr(e))){try{await rr("pipx")}catch(t){F("pipx was not installed completely for the system-wide python: "+t)}try{await nr(e)||await Zn(e,"pipx",void 0,{upgrade:!0,usePipx:!1})}catch(t){F(`pipx was not installed completely for ${e}: ${t}`)}}if(await nr(e))await z(e,["-m","pipx","ensurepath"],{stdio:"inherit"});else{if(!(await async function(){return null!==await au("pipx",{nothrow:!0})}()))throw Error("pipx module or pipx binary not found. Corrput pipx installation.");F(`pipx module not found for ${e}. Trying to install with pipx binary...`),await z("pipx",["ensurepath"],{stdio:"inherit"})}}catch(t){F(`Failed to install pipx completely for ${e}: ${""+t}. Ignoring...`)}}(i),Ws.endGroup(),Ws.startGroup("Setup wheel"),await async function(e){try{await Zn(e,"setuptools",void 0,{upgrade:!0,isLibrary:!0,usePipx:!1}),await Zn(e,"wheel",void 0,{upgrade:!1,isLibrary:!0,usePipx:!1})}catch(t){M(`Failed to install setuptools/wheel: ${""+t}. Ignoring...`)}}(i),Ws.endGroup(),r}async function Vn(e){for(const t of["python","python3"]){const n=await zn(t,e);if(void 0!==n)return n}if("win32"===process.platform){const e=Fr.parse(Ur.homedir()).root,t=(await Fc(e)).filter((e=>e.startsWith("Python")));for(const n of t)for(const t of["python3","python"]){const r=await zn(t,Fr.join(e,n));if(void 0!==r)return r}}}async function zn(e,t){var n;try{const r=Bn("python");if(void 0!==t){const n=Fr.join(t,Xe(e));if(await $e(n)&&await Ut(n,r))return n}const i=null!=(n=await au(e,{nothrow:!0,all:!0}))?n:[];for(const e of i)if(await Ut(e,r))return e}catch{}}async function Wn(){for(const e of["pip3","pip"]){const t=await Xn(e);if(void 0!==t)return t}}async function Xn(e){var t;try{const n=Bn("pip"),r=null!=(t=await au(e,{nothrow:!0,all:!0}))?t:[];for(const e of r)if(await Ut(e,n))return e}catch{}}async function Yn(e){if(await fy(e))return!1;try{return await z(e,["-m","ensurepip","-U","--upgrade"],{stdio:"inherit"}),!0}catch(t){M(""+t);try{return await z(e,["-m","pip","install","--upgrade","pip"],{stdio:"inherit"}),!0}catch(n){M(""+n)}}return!1}function Kn(){if(!("version"in Ur)||"function"!=typeof Ur.version)return null;const e=Ur.version().match(/(\d+)\.(\d+)\.(\d+)/);return null===e?null:[Number.parseInt(e[1],10),Number.parseInt(e[2],10),Number.parseInt(e[3],10)]}function Jn(e,t='"'){return e.includes(" ")?`${t}${e}${t}`:e}async function Qn(e,t,n={}){return Zn(await async function(e){if(void 0!==cy)return cy;const t=null!=e?e:Gn("python",void 0,await oy());return cy=(await Hn(t,"",process.arch)).bin,cy}(n.pythonVersion),e,t,n)}async function Zn(e,t,n,r={}){const{usePipx:i=!0,user:o=!0,upgrade:s=!1,isLibrary:a=!1}=r,c=i&&!a&&await nr(e),u=!c&&await fy(e),l=c?"pipx":"pip",f=t.replace(/\[.*]/g,"").trim();if(!s){const t=c?await async function(e,t){try{const n=await z(e,["-m","pipx","list","--json"],{stdio:"ignore",reject:!1});if(0!==n.exitCode||"string"!=typeof n.stdout)return!1;const r=JSON.parse(n.stdout);if(t in r.venvs)return!0;for(const e of Object.values(r.venvs))if(e.metadata.main_package.package_or_url===t||e.metadata.main_package.package===t)return!0}catch{}return!1}(e,f):await async function(e,t){try{return 0===(await z(e,["-m","pip","-qq","show",t],{stdio:"ignore",reject:!1})).exitCode}catch{return!1}}(e,f);if(t)return{binDir:c?await er():await tr(e,f)}}if(!u&&await async function(e,t){return 0===(await z(e,["-m","pip","-qq","index","versions",t],{stdio:"ignore",reject:!1})).exitCode}(e,f))try{Ws.info(`Installing ${t} ${null!=n?n:""} via ${l}`);const r=void 0!==n&&""!==n?`${t}==${n}`:t,i=s?c?["upgrade"]:["install","--upgrade"]:["install"],a=!c&&o?["--user"]:[],u=process.env;c&&o&&(u.PIPX_HOME=await sy(),u.PIPX_BIN_DIR=await ay()),W(e,["-m",l,...i,...a,r],{stdio:"inherit",env:u})}catch(p){if(Ws.info(`Failed to install ${t} via ${l}: ${p instanceof Error?`${p.message}\n${p.stack}`:p+""}`),null===await rr(t))throw Error(`Failed to install ${t} via ${l}: ${p}.`)}else if(null===await rr(t))throw Error(`Failed to install ${t} as it was not found via ${l} or the system package manager`);return{binDir:c?await er():await tr(e,f)}}function er(){return ay()}async function tr(e,t){const n=await uy(e),r=await async function(e,t){const n=(await Promise.all(e.map((e=>$e(Fr.join(e,Xe(t))))))).findIndex((e=>e));if(-1!==n)return e[n];const r=au.sync(Xe(t),{nothrow:!0});return null!==r?Fr.dirname(r):e[e.length-1]}(n,t);return await Ue(r,Vd),r}async function nr(e){return 0===(await z(e,["-m","pipx","--help"],{stdio:"ignore",reject:!1})).exitCode}async function rr(e,t){if("linux"===process.platform){Ws.info(`Installing ${e} via the system package manager`);const t="pipx"!==e||Lt();if(Lt())return Dt(t?"python-"+e:e);if(At())return kt([{name:t?"python3-"+e:e}]);if(ut())return _t([{name:t?"python3-"+e:e}]);if(await bd())return st([{name:t?"py3-"+e:e}])}else if("darwin"===process.platform)return["venv"].includes(e)?null:Tt(e);return null}function ir(e){const t=sd(e),n=null!==t?_d(t):e;return De("GCOV",""!==n?"gcov-"+n:"gcov",Vd)}async function or(){"darwin"===process.platform&&(null!==await au("clang",{nothrow:!0})&&null!==await au("clang++",{nothrow:!0})&&(F("Assuming clang is an Apple Clang compiler"),await Promise.all([De("CC","clang",Vd),De("CXX","clang++",Vd)])),ti.error("Apple Clang automatic installation is not supported yet"))}function sr(e){return my.includes(e)?"arm64":dy.includes(e)?"amd64":e}function ar(e,t,n){const r=""===e?"":Ft(e);switch(t){case"win32":{const t=""!==r&&Ey(r,"v3.19.6");let i;dy.includes(n)?i=t?"win64-x64":"windows-x86_64":hy.includes(n)?i=t?"win32-x86":"windows-i386":my.includes(n)?i="windows-arm64":(M(`Trying unsupported arch '${n}' for cmake on Windows`),i="windows-"+n);const o=`cmake-${e}-${i}`;return{binRelativeDir:"bin/",binFileName:Xe("cmake"),extractedFolderName:o,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${o}.zip`}}case"darwin":{const t=`cmake-${e}-${""!==r&&Ey(r,"v3.19.1")?"Darwin-x86_64":"macos-universal"}`;return{binRelativeDir:"CMake.app/Contents/bin/",binFileName:Xe("cmake"),extractedFolderName:t,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${t}.tar.gz`}}case"linux":{const t=""!==r&&Ey(r,"v3.19.8");let i;my.includes(n)?i=t?"Linux-aarch64":"linux-aarch64":dy.includes(n)?i=t?"Linux-x86_64":"linux-x86_64":(M(`Trying unsupported arch '${n}' for cmake on Linux`),i="linux-"+n);const o=`cmake-${e}-${i}`;return{binRelativeDir:"bin/",binFileName:Xe("cmake"),extractedFolderName:o,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${o}.tar.gz`}}default:throw Error(`Unsupported platform '${t}'`)}}async function cr(e,t,n){return await bd()?st([{name:"cmake"}]):Rn("cmake",e,ar,t,n)}function ur(e,t,n){return Qn("cmakelang[YAML]",e)}async function lr(e,t,n){switch(process.platform){case"win32":return await bn("graphviz",e),async function(){if("win32"===process.platform){const e="C:/Program Files/Graphviz/bin";return await Ue(e,Vd),{binDir:e}}throw Error("Unsupported platform")}();case"darwin":return Tt("graphviz",e);case"linux":if(Lt())return Dt("graphviz",e);if(At())return kt([{name:"graphviz",version:e}]);if(ut())return _t([{name:"graphviz",version:e}]);if(await bd())return st([{name:"graphviz",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}}async function fr(e,t){const{ArchiveHdi:n}=await Promise.resolve().then((()=>require("./assets/index-BLmG_vBb.js"))),r=new n(e);await r.read((async e=>{await e.extract(Fr.join(t,e.path))}))}function pr(e,t,n){switch(t){case"linux":{if("arm64"===process.arch)throw Error("Doxygen binaries are not available for Linux arm64");const t="doxygen-"+e;return{binRelativeDir:"bin/",binFileName:Xe("doxygen"),extractedFolderName:t,url:`https://www.doxygen.nl/files/${t}.linux.bin.tar.gz`}}case"win32":{const t="doxygen-"+e;return{binRelativeDir:"",binFileName:Xe("doxygen"),extractedFolderName:t,url:`https://www.doxygen.nl/files/${t}.windows.x64.bin.zip`}}case"darwin":{const t="Doxygen-"+e;return{binRelativeDir:"Doxygen/Doxygen.app/Contents/Resources/",binFileName:Xe("doxygen"),extractedFolderName:t,extractFunction:fr,url:`https://doxygen.nl/files/${t}.dmg`}}default:throw Error(`Unsupported platform '${t}'`)}}async function dr(e,t,n){const r=await au("git",{nothrow:!0});if(null===r)switch(process.platform){case"win32":{const t=await bn("git",e),n=function(){const e=["C:/Program Files/Git/bin/","C:/Program Files (x86)/Git/bin/"];for(const t of e)if(Mr.existsSync(Fr.join(t,"git.exe")))return t;return U("Git not found in the default locations. Add git to PATH manually."),null}();return null!==n&&await Ue(n,Vd),t}case"darwin":return Tt("git",e);case"linux":if(Lt())return Dt("git",e);if(At())return kt([{name:"git",version:e}]);if(ut())return _t([{name:"git",version:e}]);if(await bd())return st([{name:"git",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}else M("Git already installed at "+r)}async function hr(e,t,n){const{keywords:r,optionalKeywords:i}=function(e,t){const n=[],r=[];switch(e){case"linux":n.push("linux"),dy.includes(t)?(r.push("64"),r.push("x86_64")):(M(`Using arch ${t} for infer`),n.push(t));break;case"darwin":n.push("osx"),dy.includes(t)?r.push("x86_64"):my.includes(t)?r.push("arm64"):(M(`Using arch ${t} for infer`),n.push(t));break;default:M(`Using ${e} ${t} for infer`),n.push(e,t)}return{keywords:n,optionalKeywords:r}}(t,n),o=Bt(await Gt(Fr.join(Sy,"github_facebook_infer.json")),{version:e,keywords:r,optionalKeywords:i,filterMapTag:e=>e.replace(/^v/,"")});if(void 0!==o)return{url:`https://github.com/facebook/infer/releases/download/${o.tag}/${o.name}`,extractedFolderName:""+Fr.basename(o.name,".tar.xz"),binRelativeDir:"bin",binFileName:Xe("infer")};throw Error(`No asset found for version ${e} matching ${r} and ${i}`)}function mr(e,t,n){const r=function(e,t){switch(e){case"win32":return dy.includes(t)||hy.includes(t)?"win":my.includes(t)?"winarm64":"win";case"darwin":return"mac";case"linux":return dy.includes(t)||hy.includes(t)?"linux":my.includes(t)?"linux-aarch64":"linux";default:throw Error(`Unsupported platform '${e}'`)}}(t,n);return{binRelativeDir:"",binFileName:Xe("ninja"),extractedFolderName:"",url:`https://github.com/ninja-build/ninja/releases/download/v${e}/ninja-${r}.zip`}}async function yr(e,t,n){return await bd()?(await rt(),await st([{name:"ninja-build"},{name:"ninja-is-really-ninja"}]),await Ue("/usr/lib/ninja-build/bin",Vd),{binDir:"/usr/lib/ninja-build/bin",installDir:"/usr/lib/ninja-build/",bin:"/usr/lib/ninja-build/bin/ninja"}):Rn("ninja",e,mr,t,n)}function vr(e){return{url:`https://github.com/SimonKagstrom/kcov/releases/download/${e}/kcov-amd64.tar.gz`,extractedFolderName:"",binRelativeDir:"usr/local/bin",binFileName:Xe("kcov")}}function wr(e){return{url:`https://github.com/SimonKagstrom/kcov/archive/refs/tags/${e}.tar.gz`,extractedFolderName:"",binRelativeDir:"build/src",binFileName:Xe("kcov"),extractFunction:gr}}async function gr(e,t){const n=await $n(e,t,1),r=await async function(){let e=au.sync("cmake",{nothrow:!0});if(null===e){const{binDir:t}=await cr(Gn("cmake",void 0,await oy()),Fr.join(Ae("~"),"cmake"),"");e=Fr.join(t,"cmake")}return null===au.sync("ninja",{nothrow:!0})&&await yr(Gn("ninja",void 0,await oy()),Fr.join(Ae("~"),"ninja"),""),e}();"linux"===process.platform&&(Lt()?await Promise.all([Dt("libdwarf"),Dt("libcurl-openssl")]):At()?await kt([{name:"libdwarf-devel"},{name:"libcurl-devel"}]):ut()&&await _t([{name:"libdw-dev"},{name:"libcurl4-openssl-dev"}]));try{if(null!==au.sync("patch",{nothrow:!0})){const e=Fr.join(Oy,"gcc13.patch");await z("patch",["-N","-p1","-i",e],{cwd:n,stdio:"inherit"})}else M("`patch` not found, skipping gcc13.patch, kcov may not build on gcc 13")}catch{}const i=Fr.join(n,"build");return await z(r,["-S",n,"-B",i,"-DCMAKE_BUILD_TYPE=Release","-G","Ninja"],{cwd:n,stdio:"inherit"}),await z(r,["--build",i,"--config","Release"],{cwd:n,stdio:"inherit"}),n}async function Er(e,t,n,r,i,o,s){void 0!==t&&await $e(t)&&(M(`Adding ${t} to PATH`),await De("VCTargetsPath",t,Vd)),await xy.setupMSVCDevCmd(function(e){switch(e){case"x32":case"32":case"ia32":return"x86";case"64":return"x64";default:return e}}(n),i,r,o,s,e)}async function _r(e,t,n,r,i,o){if("win32"!==process.platform)return;const s=xy.vsversion_to_versionnumber(e);M(`Checking if MSVC ${s} is already installed`);let a,c,u=!1;try{const e=xy.findVcvarsall(s);u=!0,M("Found the pre-installed version of MSVC at "+e)}catch{}if(!u)try{"14.0"===s?(a="14.0",await bn("visualcpp-build-tools","14.0.25420.1",["--ignore-dependencies"]),c="C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140"):"15.0"===s?(a="14.16",await bn("visualstudio2017buildtools","15.9.41.0",[]),c="C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16"):"16.0"===s?(a="14.29",await bn("visualstudio2019buildtools","16.11.7.0",[]),c="C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133"):"17.0"===s?(a=void 0,await bn("visualstudio2022buildtools","117.0.5.0",[]),c=void 0):j(`The given MSVC versions ${e} is not supported yet.`)}catch(l){j(l)}await Er(s,c,n,a,r,i,o),Py&&await async function(){const e=Fr.join(Ty,"msvc_matcher.json");if(!(await $e(e)))return U("the msvc_matcher.json file does not exist in the same folder as setup-cpp.js");M("::add-matcher::"+e)}()}async function br(e,t,n){if("win32"===process.platform)return await bn("opencppcoverage",e),{binDir:await async function(){const e="C:/Program Files/OpenCppCoverage";return await Ue(e,Vd),e}()}}function Sr(e,t,n){return{url:Or(t,n,e),binRelativeDir:"",binFileName:Xe("pwsh"),extractedFolderName:""}}function Or(e,t,n){var r;switch(e){case"win32":return`https://github.com/PowerShell/PowerShell/releases/download/v${n}/PowerShell-${n}-${["ia32","x86","i386","x32"].includes(t)?"win-x86":"win-x64"}.zip`;case"darwin":return`https://github.com/PowerShell/PowerShell/releases/download/v${n}/powershell-${n}-${["arm","arm64"].includes(t)?"osx-arm64":"osx-x64"}.tar.gz`;case"linux":return`https://github.com/PowerShell/PowerShell/releases/download/v${n}/powershell-${n}-${null!=(r={arm64:"linux-arm64",arm:"linux-arm64",arm32:"linux-arm32",aarch64:"linux-arm64",x64:"linux-x64"}[t])?r:"linux-x64"}.tar.gz`;default:throw Error(`Unsupported platform '${e}'`)}}async function Rr(e,t,n){try{return await bd()?Ir(e):await Rn("pwsh",e,Sr,t,n)}catch(r){return j(`Failed to setup pwsh via download: ${r}. Trying package managers...`),Ir(e)}}async function Ir(e,t,n){switch(process.platform){case"win32":{await bn("powershell-core",e);const t="C:/Program Files/PowerShell/7";return await Ue(t,Vd),{binDir:t}}case"darwin":return Tt("powershell",e,{cask:!0,overwrite:!1});case"linux":if(Lt())return Dt("powershell-bin",e,"yay");if(At())return await kt([{name:"curl"}]),te("/bin/bash",["-c","curl https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo"]),kt([{name:"powershell",version:e}]);if(ut()){await _t([{name:"curl"}]);const t=await oy();return te("curl",["-LJO",`https://packages.microsoft.com/config/ubuntu/${t[0]}.0${t[1]}/packages-microsoft-prod.deb`]),te("dpkg",["-i","packages-microsoft-prod.deb"]),_t([{name:"powershell",version:e}],!0)}if(await bd())return st([{name:"powershell",version:void 0}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}}function xr(e,t,n){const r=function(e){return"win32"===e?"windows":e}(t),i=function(e){switch(e){case"x64":return"amd64";case"ia32":case"x86":case"i386":case"x32":return"386";default:return e}}(n),o="win32"===t?"zip":"tar.gz";return{binRelativeDir:"",binFileName:Xe("task"),extractedFolderName:"",url:`https://github.com/go-task/task/releases/download/v${e}/task_${r}_${i}.${o}`}}async function Pr(e,t,n,r,i,o,s,a=Gy){Ws.startGroup(`Installing ${e} ${t}`);try{await async function(e,t,n,r,i,o){const s=jy.includes(e);let a;if("vcvarsall"===e)await Er(Gn(e,t,n),void 0,r,void 0,void 0,!1,!1);else if("brew"===e)a=await St({rcOptions:Vd});else{const o=Fr.join(i,s?"llvm":e),c=Gn(e,t,n),u=Uy[e];a=await u(c,o,r)}o.push(Ct(e,a))}(e,t,n,r,i,o)}catch(c){j(c),c instanceof Error&&void 0!==c.stack&&j(c.stack),s.push(e+" failed to install")}Ws.endGroup()}async function Tr(e,t,n){const r=await async function(e,t,n){const{keywords:r,optionalKeywords:i}=await async function(e,t){const n=[],r=[];switch(e){case"win32":{r.push(".tar.xz",".tar.xz");const e=[];dy.includes(t)?(e.push("win64"),r.push(["x86_64","X64"])):hy.includes(t)?e.push("win32"):my.includes(t)?e.push("woa64"):(M(`Using arch ${t} for LLVM`),e.push(t)),e.push("windows","Windows"),n.push(e);break}case"linux":{const e=["linux","Linux"];if(ut()){r.push("ubuntu");const e=await oy();if(null!==e){r.push(""+e[0]);const t=10>e[1]?"0"+e[1]:""+e[1];r.push(`${e[0]}.${t}`),r.push(`${e[0]}.${t}.${e[2]}`)}}else At()&&r.push("rhel");dy.includes(t)?n.push(["x86_64","X64"]):hy.includes(t)?n.push("x86"):my.includes(t)?n.push("aarch64"):yy.includes(t)?n.push("armv7a"):vy.includes(t)?n.push("powerpc64le"):wy.includes(t)?n.push("sparc64"):(M(`Using arch ${t} for LLVM`),n.push(t)),n.push(e);break}case"darwin":n.push(["apple","macos","macOS"]),dy.includes(t)?r.push(["x86_64","X64"]):my.includes(t)?r.push(["arm64","ARM64"]):(M(`Using arch ${t} for LLVM`),n.push(t));break;case"freebsd":n.push("freebsd"),dy.includes(t)?n.push("amd64"):hy.includes(t)?n.push("i386"):(M(`Using arch ${t} for LLVM`),n.push(t));break;case"solaris":n.push("solaris"),dy.includes(t)?n.push("amd64"):gy.includes(t)?n.push("sparcv9"):(M(`Using arch ${t} for LLVM`),n.push(t));break;default:M(`Using ${e} ${t} for LLVM`),n.push(e,t)}return{keywords:n,optionalKeywords:r}}(e,t),o=Bt(await Gt(Fr.join(Hy,"github_llvm_llvm-project.json")),{version:n,keywords:r,optionalKeywords:i,filterMapTag:e=>e.replace(/^llvmorg-/,"")});if(void 0!==o)return`https://github.com/llvm/llvm-project/releases/download/${o.tag}/${o.name}`;const s=Bt(await Gt(Fr.join(Hy,"llvm_org_releases.json")),{version:n,keywords:r,optionalKeywords:i});if(void 0!==s)return`https://releases.llvm.org/${s.tag}/${s.name}`;throw Error(`No asset found for version ${n} matching ${r} and ${i}`)}(t,n,e);M("Downloading LLVM from "+r);const i=xn(r);return{url:r,extractedFolderName:"",binRelativeDir:"bin",binFileName:Xe("clang"),extractFunction:"win32"!==process.platform||i!==Am.Tar&&i!==Am.TarGz&&i!==Am.TarXz?Pn(i):(e,t)=>$n(e,t,1)}}async function Nr(e,t,n){const r=await Cr(e,t,n);return await Xy(n),await async function(){if(!zy)return;const e=Fr.join(Wy,"llvm_matcher.json");if(!(await $e(e)))return U("the llvm_matcher.json file does not exist in the same folder as setup-cpp.js");M("::add-matcher::"+e)}(),void 0!==r.installDir&&await async function(e,t){var n,r;const i=null!=(n=process.env.LD_LIBRARY_PATH)?n:"",o=null!=(r=process.env.DYLD_LIBRARY_PATH)?r:"",s=py(t),a=[De("CC",Xe(e+"/bin/clang"),Vd),De("CXX",Xe(e+"/bin/clang++"),Vd),De("LLVM_PATH",e,Vd),De("LLVM_LD_LIBRARY_PATH",`${i}${Fr.delimiter}${e}/lib`,Vd),De("LLVM_DYLD_LIBRARY_PATH",`${o}${Fr.delimiter}${e}/lib`,Vd),De("LLVM_LDFLAGS","-L"+Jn(e+"/lib"),Vd),De("LLVM_CPPFLAGS","-I"+Jn(e+"/include"),Vd),await $e(`${e}/lib/clang/${t}/include`)?De("LLVM_CPATH",`${e}/lib/clang/${t}/include`,Vd):await $e(`${e}/lib/clang/${s}/include`)?De("LLVM_CPATH",`${e}/lib/clang/${s}/include`,Vd):Promise.resolve(),De("LLVM_LIBRARY_PATH",e+"/lib",Vd),$t()];if(ut()){const t=60;a.push(at("cc",e+"/bin/clang",Vd,t),at("cxx",e+"/bin/clang++",Vd,t),at("clang",e+"/bin/clang",Vd),at("clang++",e+"/bin/clang++",Vd),at("lld",e+"/bin/lld",Vd),at("ld.lld",e+"/bin/ld.lld",Vd),at("llvm-ar",e+"/bin/llvm-ar",Vd))}await Promise.all(a)}(r.installDir,e),r}async function Cr(e,t,n,r=qy.All){const i=await async function(e,t=0){if(ut())try{return await async function(e,t=0){const n=py(e),r="/usr/lib/llvm-"+n;await _t([{name:"ca-certificates"}]);const i=new Td.DownloaderHelper("https://apt.llvm.org/llvm.sh",Ur.tmpdir(),{fileName:"llvm.sh"});i.on("error",(e=>{throw Error("Failed to download the LLVM installer script: "+e)})),await i.start();const o=await Mc(i.getDownloadPath(),"utf-8"),s=Fr.join(Ur.tmpdir(),"llvm-setup-cpp.sh");return await async function(e,t,n,r){let i=function(e){return"1"!==process.env.NODE_DEBUG&&"true"!==process.env.NODE_DEBUG?e.replace(/set -eux/g,"set -eu"):e}(e);i=function(e){return e.replace(/add-apt-repository\s*(-y)?\s*"\${REPO_NAME}"/g,'add-apt-repository -y "${REPO_NAME}"\napt-get update -o '+$d)}(i),i=function(e,t,n){return 1===e?t.replace(/ -y \$PKG/g," -y clang-format-"+n):t}(r,i,n),i=await async function(e){let t=e.replace(/apt-get install -y/g,`apt-get install -o Dpkg::Options::="--force-overwrite" -o ${$d} -y --fix-broken`);return await Promise.all(["libc++-$LLVM_VERSION-dev","libc++abi-$LLVM_VERSION-dev","libunwind-$LLVM_VERSION-dev"].map((async e=>{const n=e.replace("$LLVM_VERSION","*");await async function(e){try{const{stdout:t}=await z("dpkg",["-l",e],{env:ft("apt-get"),stdio:"pipe"});return"string"==typeof t&&t.split("\n").some((e=>e.startsWith("ii")))}catch{return!1}}(n)&&(ti.info("Removing conflicting package "+n),t=t.replace(e,""))}))),t}(i),i=function(e){return ct()?e.replace(/apt-get/g,"nala"):e}(i),await Kc(t,i)}(o,s,n,t),await Et(),await _t([{name:"lsb-release"},{name:"wget"},{name:"gnupg"}]),await Tc(s,"755"),await ne("bash",[s,""+n,...0===t?["all"]:[]],{stdio:"inherit",shell:!0,timeout:Gy}),await Ue(r+"/bin",Vd),{installDir:""+r,binDir:r+"/bin",bin:r+"/bin/clang++"}}(e,t)}catch(n){ti.info(`Failed to install llvm via system package manager ${n}. Trying to remove the repository`);try{te(Fr.join(By,"llvm_repo_remove.bash"),[""+py(e)])}catch(r){ti.info("Failed to remove llvm repository "+r)}}}(e,r);if(void 0!==i)return i;const o=await async function(e){if(await bd())try{return await function(e){return st([{name:"llvm"+py(e)}])}(e)}catch(t){M(`Failed to install llvm via system package manager ${t}.`)}}(e);if(void 0!==o)return o;const s=await async function(e){if("darwin"!==process.platform)return Promise.resolve(void 0);try{return await async function(e){const t=py(e),n=await Tt("llvm",""+t,{"force-bottle":!0});return await Ue(n.binDir,Vd),n}(e)}catch(t){return void M("Failed to install llvm via brew: "+t)}}(e);return void 0!==s?s:async function(e,t,n){const r=await Rn("llvm",e,Tr,t,n);return await Vy(py(e),n),r}(e,t,n)}function $r(e,t,n){return Cr(e,t,n,qy.ClangFormat)}function Ar(e,t,n){return Cr(e,t,n)}async function Lr(e={}){var t,n;const r=null!=(t=e.architecture)?t:process.arch,i=null!=(n=process.env.SETUP_CPP_DIR)?n:Ae("~"),o=[],s=[],a=nd.create({autoloadLocales:!0});let c,u;nd.addLocale(od),Wp.addLocale(Yp);const l=await oy(),f=void 0!==e.compiler?function(e){try{const t=e.match(Yy);if(null===t)return{compiler:e,version:void 0};const n=t[1],r=e.slice(0,t.index).replace(/[.-]$/,"");return n.match(/^\d{4}$/)||null!==sd(n)||M("Non-semver version format: "+n),{compiler:r,version:n}}catch(t){return j(`Failed to parse the compiler info ${e}: ${t}`),{compiler:e,version:void 0}}}(e.compiler):void 0;if(!function(e,t,n){var r,i;const o=void 0!==n&&t.includes(n.compiler),s=(o?t:t.filter((e=>"compiler"!==e))).filter((t=>void 0!==e[t])),a=s.filter((t=>!qn(o&&"compiler"===t&&void 0!==n?n.version:e[t]))),c=0!==a.length?o&&"compiler"===a[0]&&void 0!==n?null!=(r=n.version)?r:"true":null!=(i=e[a[0]])?i:"true":"true";if(a.some((t=>o&&"compiler"===t&&void 0!==n?e.compiler!==`${n.compiler}-${c}`:e[t]!==c)))return!1;for(const u of s)e[u]=o&&"compiler"===u&&void 0!==n?`${n.compiler}-${c}`:c;return!0}(e,[...jy,"compiler"],f))return{successMessages:[],errorMessages:["The same version must be used for llvm, clang-format and clang-tidy"]};Lt()&&"string"==typeof e.cppcheck&&"string"==typeof e.gcovr&&(M("installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux"),await Dt("python-pygments"));const p=Fy.filter((t=>{const n=e[t];return void 0!==n&&"false"!==n})),d=void 0===e["setup-cpp"]||e["setup-cpp"]?async function(e,t="npm"){try{return null!==await au("setup-cpp",{nothrow:!0})?`setup-cpp@${e} already installed`:(M(`Installing setup-cpp@${e} via ${t}...`),await z(t,["install","-g","setup-cpp@"+e],{stdio:"inherit",timeout:6e4}),`setup-cpp@${e} installed successfully`)}catch(n){return Error(`Failed to install the setup-cpp@${e} CLI: ${n}. Ignoring...`)}}(Xo.version,e["node-package-manager"]):Promise.resolve(void 0);let h=!1;for(const y of p){const t=e[y],n=void 0!==e.timeout?60*Number.parseFloat(e.timeout)*1e3:void 0;if(c=Date.now(),await Pr(y,t,l,r,i,o,s,n),u=Date.now(),M("took "+(a.format(c,u)||"0 seconds")),0!==s.length&&Qo.isCI){h=!0;break}}if(!h&&void 0!==f){const e=Date.now();await async function(e,t,n,r,i,o,s){var a;let c;try{if(Ws.startGroup(`Installing ${e} ${null!=t?t:""}`),e in Cy)c=await Nr(Gn("llvm",t,n),Fr.join(r,"llvm"),i),await De("GCOV","llvm-cov gcov",Vd);else if(e in $y){const e=Gn("gcc",t,n);c=await Un(e,Fr.join(r,"gcc"),i),await ir(e)}else if(e in Ay){const e=Gn("mingw",t,n);c=await An(e,Fr.join(r,"gcc"),i),await ir(e)}else e in Ly?c=await _r(Gn("msvc",t,n),Fr.join(r,"msvc"),i):e in ky?await or():(c=null,s.push("Unsupported compiler "+e))}catch(u){j(u),u instanceof Error&&j(null!=(a=u.stack)?a:""),s.push(`Failed to install the ${e} compiler ${t}`)}null!==c&&o.push(Ct(e,c)),Ws.endGroup()}(f.compiler,f.version,l,i,r,o,s);const t=Date.now();M("took "+(a.format(e,t)||"0 seconds"))}const m=await d;return"string"==typeof m&&o.push(m),await async function(e){if(await $e(e.rcPath)){const t=(await Op(e.rcPath,"utf-8")).split("\n"),n=[...new Set(t.reverse())].reverse();await Rp(e.rcPath,n.join("\n")),await se(e.rcPath)}}(Vd),{successMessages:o,errorMessages:s}}function kr(e){const r=Object.fromEntries(My.map((e=>[e,Nt(e)])));return function(e,r){var i,o,s,a,c,u={_:[]},l=0,f=0,p=0,d=(e=e||[]).length;const h=void 0!==(r=r||{}).alias,m=void 0!==r.unknown,y=void 0!==r.default;if(r.alias=r.alias||{},r.string=t(r.string),r.boolean=t(r.boolean),h)for(i in r.alias)for(o=r.alias[i]=t(r.alias[i]),l=0;o.length>l;l++)(r.alias[o[l]]=o.concat(i)).splice(l,1);for(l=r.boolean.length;l-- >0;)for(f=(o=r.alias[r.boolean[l]]||[]).length;f-- >0;)r.boolean.push(o[f]);for(l=r.string.length;l-- >0;)for(f=(o=r.alias[r.string[l]]||[]).length;f-- >0;)r.string.push(o[f]);if(y)for(i in r.default)if(a=typeof r.default[i],o=r.alias[i]=r.alias[i]||[],void 0!==r[a])for(r[a].push(i),l=0;o.length>l;l++)r[a].push(o[l]);const v=m?Object.keys(r.alias):[];for(l=0;d>l;l++){if("--"===(s=e[l])){u._=u._.concat(e.slice(++l));break}for(f=0;s.length>f&&45===s.charCodeAt(f);f++);if(0===f)u._.push(s);else if("no-"===s.substring(f,f+3)){if(a=s.substring(f+3),m&&!~v.indexOf(a))return r.unknown(s);u[a]=!1}else{for(p=f+1;s.length>p&&61!==s.charCodeAt(p);p++);for(a=s.substring(f,p),c=s.substring(++p)||l+1===d||45===(""+e[l+1]).charCodeAt(0)||e[++l],o=2===f?[a]:a,p=0;o.length>p;p++){if(a=o[p],m&&!~v.indexOf(a))return r.unknown("-".repeat(f)+a);n(u,a,o.length>p+1||c,r)}}}if(y)for(i in r.default)void 0===u[i]&&(u[i]=r.default[i]);if(h)for(i in u)for(o=r.alias[i]||[];o.length>0;)u[o.shift()]=u[i];return u}(e,{string:[...My,"timeout","node-package-manager"],default:r,alias:{h:"help",v:"version"},boolean:["help","version","setup-cpp"]})}var Dr;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const jr=require("process"),Ur=require("os"),Fr=require("path"),Mr=require("fs"),Gr=require("https"),Br=require("perf_hooks"),qr=require("http");require("net");const Hr=require("tls"),Vr=require("events"),zr=require("util"),Wr=require("string_decoder"),Xr=require("child_process"),Yr=require("assert"),Kr=require("timers"),Jr=require("buffer"),Qr=require("url"),Zr=require("stream"),ei=require("constants"),ti=require("console");var ni="undefined"!=typeof document?document.currentScript:null;const ri=e(Mr),ii=e(Gr),oi=e(qr),si=Object.freeze(Object.defineProperty({__proto__:null,get default(){return si},get randomUUID(){return ss}},Symbol.toStringTag,{value:"Module"}));var ai,ci,ui,li,fi,pi,di,hi,mi,yi,vi,wi,gi,Ei,_i,bi,Si,Oi,Ri,Ii,xi,Pi,Ti,Ni,Ci,$i,Ai,Li,ki,Di,ji,Ui,Fi,Mi,Gi,Bi,qi,Hi,Vi,zi,Wi,Xi,Yi,Ki,Ji,Qi,Zi,eo,to,no,ro,io,oo,so,ao,co,uo,lo,fo,po,ho,mo,yo,vo,wo,go,Eo,_o,bo,So,Oo,Ro,Io,xo,Po,To,No,Co,$o,Ao,Lo,ko,Do,jo,Uo,Fo,Mo,Go,Bo,qo,Ho,Vo="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},zo={exports:{}};const Wo=r(function(){function e(e,t,n,r){return new(n||(n=Promise))((function(t,i){function o(e){try{a(r.next(e))}catch(t){i(t)}}function s(e){try{a(r.throw(e))}catch(t){i(t)}}function a(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(o,s)}a((r=r.call(e)).next())}))}function t(e,t){function n(n){return function(c){return function(n){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,n[0]&&(a=0)),a;)try{if(r=1,i&&(o=2&n[0]?i.return:n[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,n[1])).done)return o;switch(i=0,o&&(n=[2&n[0],o.value]),n[0]){case 0:case 1:o=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,i=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!o||n[1]>o[0]&&o[3]>n[1])){a.label=n[1];break}if(6===n[0]&&o[1]>a.label){a.label=o[1],o=n;break}if(o&&o[2]>a.label){a.label=o[2],a.ops.push(n);break}o[2]&&a.ops.pop(),a.trys.pop();continue}n=t.call(e,a)}catch(c){n=[6,c],i=0}finally{r=o=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,c])}}var r,i,o,s,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s}if(Ho)return qo;Ho=1;var n=jr,r=P(),i=Ur,o=Fr,s=Mr,a=Gr,c=n.env.npm_package_json,u=n.env.npm_config_user_agent,l=!(!u||!u.startsWith("npm")),f=!(!c||!c.endsWith("package.json")),p=l||f,d=!(!u||!u.startsWith("yarn")),h=p||d,m=i.homedir(),y=process.env.XDG_CONFIG_HOME||o.join(m,".config","simple-update-notifier"),v=function(e){return o.join(y,"".concat(e.replace("@","").replace("/","__"),".json"))},w=function(n,r){return e(void 0,0,void 0,(function(){var e;return t(this,(function(t){return e="https://registry.npmjs.org/-/package/".concat(n,"/dist-tags"),[2,new Promise((function(t,n){a.get(e,(function(e){var i="";e.on("data",(function(e){return i+=e})),e.on("end",(function(){try{var e=JSON.parse(i)[r];e||n(Error("Error getting version")),t(e)}catch(o){n(Error("Could not parse version response"))}}))})).on("error",(function(e){return n(e)}))}))]}))}))},g=function(n){var i=n.pkg,o=n.updateCheckInterval,a=void 0===o?864e5:o,c=n.distTag,u=void 0===c?"latest":c,l=n.alwaysRun,f=n.debug;return e(void 0,0,void 0,(function(){var e,o;return t(this,(function(t){switch(t.label){case 0:return s.existsSync(y)||s.mkdirSync(y,{recursive:!0}),e=function(e){var t=v(e);try{if(!s.existsSync(t))return;return JSON.parse(s.readFileSync(t,"utf8")).lastUpdateCheck}catch(n){return}}(i.name),l||!e||e<(new Date).getTime()-a?[4,w(i.name,u)]:[3,2];case 1:return o=t.sent(),c=v(i.name),s.writeFileSync(c,JSON.stringify({lastUpdateCheck:(new Date).getTime()})),r.gt(o,i.version)?[2,o]:(f&&console.error("Latest version (".concat(o,") not newer than current version (").concat(i.version,")")),[3,3]);case 2:f&&console.error("Too recent to check for a new update. simpleUpdateNotifier() interval set to ".concat(a,"ms but only ").concat((new Date).getTime()-e,"ms since last check.")),t.label=3;case 3:return[2,!1]}var c}))}))};return qo=function(n){return e(void 0,0,void 0,(function(){var e,r;return t(this,(function(t){switch(t.label){case 0:if(!n.alwaysRun&&(!process.stdout.isTTY||h&&!n.shouldNotifyInNpmScript))return n.debug&&console.error("Opting out of running simpleUpdateNotifier()"),[2];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,g(n)];case 2:return(e=t.sent())&&console.error(function(e){for(var t=e.split("\n"),n=Math.max.apply(Math,t.map((function(e){return e.length}))),r=["┌".concat("─".repeat(n+2),"┐")],i=0,o=t;o.length>i;i++)r.push("│ ".concat(o[i].padEnd(n)," │"));return r.push("└".concat("─".repeat(n+2),"┘")),r.join("\n")}("New version of ".concat(n.pkg.name," available!\nCurrent Version: ").concat(n.pkg.version,"\nLatest Version: ").concat(e))),[3,4];case 3:return r=t.sent(),n.debug&&r instanceof Error&&console.error("Unexpected error in simpleUpdateNotifier():",r),[3,4];case 4:return[2]}}))}))}}()),Xo={name:"setup-cpp",version:"1.7.0"};var Yo={};const Ko=[{name:"Agola CI",constant:"AGOLA",env:"AGOLA_GIT_REF",pr:"AGOLA_PULL_REQUEST_ID"},{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE",pr:{env:"AC_GIT_PR",ne:"false"}},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN",pr:{env:"CODEBUILD_WEBHOOK_EVENT",any:["PULL_REQUEST_CREATED","PULL_REQUEST_UPDATED","PULL_REQUEST_REOPENED"]}},{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:"Cloudflare Pages",constant:"CLOUDFLARE_PAGES",env:"CF_PAGES"},{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"}];var Jo,Qo=(Jo||(Jo=1,function(e){function t(e){return"string"==typeof e?!!r[e]:"env"in e?r[e.env]&&r[e.env].includes(e.includes):"any"in e?e.any.some((function(e){return!!r[e]})):Object.keys(e).every((function(t){return r[t]===e[t]}))}const n=Ko,r=process.env;Object.defineProperty(e,"_vendors",{value:n.map((function(e){return e.constant}))}),e.name=null,e.isPR=null,e.id=null,n.forEach((function(n){const i=(Array.isArray(n.env)?n.env:[n.env]).every((function(e){return t(e)}));e[n.constant]=i,i&&(e.name=n.name,e.isPR=function(e){switch(typeof e.pr){case"string":return!!r[e.pr];case"object":return"env"in e.pr?"any"in e.pr?e.pr.any.some((function(t){return r[e.pr.env]===t})):e.pr.env in r&&r[e.pr.env]!==e.pr.ne:"any"in e.pr?e.pr.any.some((function(e){return!!r[e]})):t(e.pr);default:return null}}(n),e.id=n.constant)})),e.isCI=!("false"===r.CI||!(r.BUILD_ID||r.BUILD_NUMBER||r.CI||r.CI_APP_ID||r.CI_BUILD_ID||r.CI_BUILD_NUMBER||r.CI_NAME||r.CONTINUOUS_INTEGRATION||r.RUN_ID||e.name))}(Yo)),Yo);const Zo=r(Qo);var es,ts,ns={},rs={},is={},os={};(null==(Dr=global.crypto)?void 0:Dr.randomUUID)||(global.crypto||(global.crypto={}),global.crypto.randomUUID=()=>{let e=(new Date).getTime(),t=1e3*Br.performance.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(n=>{let r=16*Math.random();return e>0?(r=(e+r)%16|0,e=Math.floor(e/16)):(r=(t+r)%16|0,t=Math.floor(t/16)),("x"===n?r:3&r|8).toString(16)}))});const ss=global.crypto.randomUUID.bind(global.crypto),as=i(si);var cs,us={};class ls extends URL{_decodedUsername;_decodedPassword;constructor(e,t){super(e,t),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}var fs,ps,ds,hs,ms,ys,vs,ws,gs={},Es=(ds||(ds=1,ps=function(){function e(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||s.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,r,i,o){for(var s=n(r,i,o),a=0,c=t.requests.length;c>a;++a){var u=t.requests[a];if(u.host===s.host&&u.port===s.port)return t.requests.splice(a,1),void u.request.onSocket(e)}e.destroy(),t.removeSocket(e)}))}function t(t,n){var i=this;e.prototype.createSocket.call(i,t,(function(e){var s=t.request.getHeader("host"),a=r({},i.options,{socket:e,servername:s?s.replace(/:.*$/,""):t.host}),c=o.connect(0,a);i.sockets[i.sockets.indexOf(e)]=c,n(c)}))}function n(e,t,n){return"string"==typeof e?{host:e,port:t,localAddress:n}:e}function r(e){for(var t=1,n=arguments.length;n>t;++t){var r=arguments[t];if("object"==typeof r)for(var i=Object.keys(r),o=0,s=i.length;s>o;++o){var a=i[o];void 0!==r[a]&&(e[a]=r[a])}}return e}if(fs)return gs;fs=1;var i,o=Hr,s=qr,a=Gr,c=Vr,u=zr;return gs.httpOverHttp=function(t){var n=new e(t);return n.request=s.request,n},gs.httpsOverHttp=function(n){var r=new e(n);return r.request=s.request,r.createSocket=t,r.defaultPort=443,r},gs.httpOverHttps=function(t){var n=new e(t);return n.request=a.request,n},gs.httpsOverHttps=function(n){var r=new e(n);return r.request=a.request,r.createSocket=t,r.defaultPort=443,r},u.inherits(e,c.EventEmitter),e.prototype.addRequest=function(e,t,i,o){var s=this,a=r({request:e},s.options,n(t,i,o));this.maxSockets>s.sockets.length?s.createSocket(a,(function(t){function n(){s.emit("free",t,a)}function r(e){s.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)})):s.requests.push(a)},e.prototype.createSocket=function(e,t){function n(n,r,a){var u;return c.removeAllListeners(),r.removeAllListeners(),200!==n.statusCode?(i("tunneling socket could not be established, statusCode=%d",n.statusCode),r.destroy(),(u=Error("tunneling socket could not be established, statusCode="+n.statusCode)).code="ECONNRESET",e.request.emit("error",u),void o.removeSocket(s)):a.length>0?(i("got illegal response body from proxy"),r.destroy(),(u=Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",u),void o.removeSocket(s)):(i("tunneling connection has established"),o.sockets[o.sockets.indexOf(s)]=r,t(r))}var o=this,s={};o.sockets.push(s);var a=r({},o.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(a.localAddress=e.localAddress),a.proxyAuth&&(a.headers=a.headers||{},a.headers["Proxy-Authorization"]="Basic "+new Buffer(a.proxyAuth).toString("base64")),i("making CONNECT request");var c=o.request(a);c.useChunkedEncodingByDefault=!1,c.once("response",(function(e){e.upgrade=!0})),c.once("upgrade",(function(e,t,r){process.nextTick((function(){n(e,t,r)}))})),c.once("connect",n),c.once("error",(function(t){c.removeAllListeners(),i("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var n=Error("tunneling socket could not be established, cause="+t.message);n.code="ECONNRESET",e.request.emit("error",n),o.removeSocket(s)})),c.end()},e.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},i=process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?function(){var e=[].slice.call(arguments);"string"==typeof e[0]?e[0]="TUNNEL: "+e[0]:e.unshift("TUNNEL:"),console.error.apply(console,e)}:function(){},gs.debug=i,gs}()),ps);(ms=hs||(hs={}))[ms.OK=200]="OK",ms[ms.MultipleChoices=300]="MultipleChoices",ms[ms.MovedPermanently=301]="MovedPermanently",ms[ms.ResourceMoved=302]="ResourceMoved",ms[ms.SeeOther=303]="SeeOther",ms[ms.NotModified=304]="NotModified",ms[ms.UseProxy=305]="UseProxy",ms[ms.SwitchProxy=306]="SwitchProxy",ms[ms.TemporaryRedirect=307]="TemporaryRedirect",ms[ms.PermanentRedirect=308]="PermanentRedirect",ms[ms.BadRequest=400]="BadRequest",ms[ms.Unauthorized=401]="Unauthorized",ms[ms.PaymentRequired=402]="PaymentRequired",ms[ms.Forbidden=403]="Forbidden",ms[ms.NotFound=404]="NotFound",ms[ms.MethodNotAllowed=405]="MethodNotAllowed",ms[ms.NotAcceptable=406]="NotAcceptable",ms[ms.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",ms[ms.RequestTimeout=408]="RequestTimeout",ms[ms.Conflict=409]="Conflict",ms[ms.Gone=410]="Gone",ms[ms.TooManyRequests=429]="TooManyRequests",ms[ms.InternalServerError=500]="InternalServerError",ms[ms.NotImplemented=501]="NotImplemented",ms[ms.BadGateway=502]="BadGateway",ms[ms.ServiceUnavailable=503]="ServiceUnavailable",ms[ms.GatewayTimeout=504]="GatewayTimeout",(vs=ys||(ys={})).Accept="accept",vs.ContentType="content-type",(ws||(ws={})).ApplicationJson="application/json";const _s=[hs.MovedPermanently,hs.ResourceMoved,hs.SeeOther,hs.TemporaryRedirect,hs.PermanentRedirect],bs=[hs.BadGateway,hs.ServiceUnavailable,hs.GatewayTimeout],Ss=["OPTIONS","GET","DELETE","HEAD"];class Os extends Error{constructor(e,t){super(e),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,Os.prototype)}statusCode;result}class Rs{constructor(e){this.message=e}message;async readBody(){return new Promise((async e=>{let t=Buffer.alloc(0);this.message.on("data",(e=>{t=Buffer.concat([t,e])})),this.message.on("end",(()=>{e(""+t)}))}))}async readBodyBuffer(){return new Promise((async e=>{const t=[];this.message.on("data",(e=>{t.push(e)})),this.message.on("end",(()=>{e(Buffer.concat(t))}))}))}}class Is{userAgent;handlers;requestOptions;_ignoreSslError=!1;_socketTimeout;_allowRedirects=!0;_allowRedirectDowngrade=!1;_maxRedirects=50;_allowRetries=!1;_maxRetries=1;_agent;_proxyAgent;_proxyAgentDispatcher;_keepAlive=!1;_disposed=!1;constructor(e,t,n){this.userAgent=e,this.handlers=t||[],this.requestOptions=n,n&&(null!=n.ignoreSslError&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,null!=n.allowRedirects&&(this._allowRedirects=n.allowRedirects),null!=n.allowRedirectDowngrade&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),null!=n.maxRedirects&&(this._maxRedirects=Math.max(n.maxRedirects,0)),null!=n.keepAlive&&(this._keepAlive=n.keepAlive),null!=n.allowRetries&&(this._allowRetries=n.allowRetries),null!=n.maxRetries&&(this._maxRetries=n.maxRetries))}async options(e,t){return this.request("OPTIONS",e,null,t||{})}async get(e,t){return this.request("GET",e,null,t||{})}async del(e,t){return this.request("DELETE",e,null,t||{})}async post(e,t,n){return this.request("POST",e,t,n||{})}async patch(e,t,n){return this.request("PATCH",e,t,n||{})}async put(e,t,n){return this.request("PUT",e,t,n||{})}async head(e,t){return this.request("HEAD",e,null,t||{})}async sendStream(e,t,n,r){return this.request(e,t,n,r)}async getJson(e,t={}){t[ys.Accept]=this._getExistingOrDefaultHeader(t,ys.Accept,ws.ApplicationJson);const n=await this.get(e,t);return this._processResponse(n,this.requestOptions)}async postJson(e,t,n={}){const r=JSON.stringify(t,null,2);n[ys.Accept]=this._getExistingOrDefaultHeader(n,ys.Accept,ws.ApplicationJson),n[ys.ContentType]=this._getExistingOrDefaultHeader(n,ys.ContentType,ws.ApplicationJson);const i=await this.post(e,r,n);return this._processResponse(i,this.requestOptions)}async putJson(e,t,n={}){const r=JSON.stringify(t,null,2);n[ys.Accept]=this._getExistingOrDefaultHeader(n,ys.Accept,ws.ApplicationJson),n[ys.ContentType]=this._getExistingOrDefaultHeader(n,ys.ContentType,ws.ApplicationJson);const i=await this.put(e,r,n);return this._processResponse(i,this.requestOptions)}async patchJson(e,t,n={}){const r=JSON.stringify(t,null,2);n[ys.Accept]=this._getExistingOrDefaultHeader(n,ys.Accept,ws.ApplicationJson),n[ys.ContentType]=this._getExistingOrDefaultHeader(n,ys.ContentType,ws.ApplicationJson);const i=await this.patch(e,r,n);return this._processResponse(i,this.requestOptions)}async request(e,t,n,r){if(this._disposed)throw Error("Client has already been disposed.");const i=new URL(t);let o=this._prepareRequest(e,i,r);const s=this._allowRetries&&Ss.includes(e)?this._maxRetries+1:1;let a,c=0;do{if(a=await this.requestRaw(o,n),a&&a.message&&a.message.statusCode===hs.Unauthorized){let e;for(const t of this.handlers)if(t.canHandleAuthentication(a)){e=t;break}return e?e.handleAuthentication(this,o,n):a}let t=this._maxRedirects;for(;a.message.statusCode&&_s.includes(a.message.statusCode)&&this._allowRedirects&&t>0;){const s=a.message.headers.location;if(!s)break;const c=new URL(s);if("https:"===i.protocol&&i.protocol!==c.protocol&&!this._allowRedirectDowngrade)throw Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");if(await a.readBody(),c.hostname!==i.hostname)for(const e in r)"authorization"===e.toLowerCase()&&delete r[e];o=this._prepareRequest(e,c,r),a=await this.requestRaw(o,n),t--}if(!a.message.statusCode||!bs.includes(a.message.statusCode))return a;c+=1,s>c&&(await a.readBody(),await this._performExponentialBackoff(c))}while(s>c);return a}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}async requestRaw(e,t){return new Promise(((n,r)=>{this.requestRawWithCallback(e,t,(function(e,t){e?r(e):t?n(t):r(Error("Unknown error"))}))}))}requestRawWithCallback(e,t,n){function r(e,t){i||(i=!0,n(e,t))}"string"==typeof t&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1;const o=e.httpModule.request(e.options,(e=>{r(void 0,new Rs(e))}));let s;o.on("socket",(e=>{s=e})),o.setTimeout(this._socketTimeout||18e4,(()=>{s&&s.end(),r(Error("Request timeout: "+e.options.path))})),o.on("error",(function(e){r(e)})),t&&"string"==typeof t&&o.write(t,"utf8"),t&&"string"!=typeof t?(t.on("close",(function(){o.end()})),t.pipe(o)):o.end()}getAgent(e){const t=new URL(e);return this._getAgent(t)}async getAgentDispatcher(e){const t=new URL(e),n=N(t);if(n&&n.hostname)return await this._getProxyAgentDispatcher(t,n)}_prepareRequest(e,t,n){const r={};r.parsedUrl=t;const i="https:"===r.parsedUrl.protocol;r.httpModule=i?ii:oi;const o=i?443:80;if(r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):o,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers)for(const s of this.handlers)s.prepareRequest(r.options);return r}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},xs(this.requestOptions.headers),xs(e||{})):xs(e||{})}_getExistingOrDefaultHeader(e,t,n){let r;return this.requestOptions&&this.requestOptions.headers&&(r=xs(this.requestOptions.headers)[t]),e[t]||r||n}_getAgent(e){let t;const n=N(e),r=n&&n.hostname;if(this._keepAlive&&r&&(t=this._proxyAgent),r||(t=this._agent),t)return t;const i="https:"===e.protocol;let o=100;if(this.requestOptions&&(o=this.requestOptions.maxSockets||oi.globalAgent.maxSockets),n&&n.hostname){const e={maxSockets:o,keepAlive:this._keepAlive,proxy:{...(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`},host:n.hostname,port:n.port}};let r;const s="https:"===n.protocol;r=i?s?Es.httpsOverHttps:Es.httpsOverHttp:s?Es.httpOverHttps:Es.httpOverHttp,t=r(e),this._proxyAgent=t}if(!t){const e={keepAlive:this._keepAlive,maxSockets:o};t=i?new ii.Agent(e):new oi.Agent(e),this._agent=t}return i&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}async _getProxyAgentDispatcher(e,t){let n;if(this._keepAlive&&(n=this._proxyAgentDispatcher),n)return n;const r="https:"===e.protocol;return n=new(await Promise.resolve().then((()=>require("./assets/proxy-agent-8TMZ-BeU.js"))).then((e=>e.proxyAgent)))({uri:t.href,pipelining:this._keepAlive?1:0,...(t.username||t.password)&&{token:"Basic "+Buffer.from(`${t.username}:${t.password}`).toString("base64")}}),this._proxyAgentDispatcher=n,r&&this._ignoreSslError&&(n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:!1})),n}async _performExponentialBackoff(e){const t=5*Math.pow(2,e=Math.min(10,e));return new Promise((e=>setTimeout((()=>e()),t)))}async _processResponse(e,t){return new Promise((async(n,r)=>{const i=e.message.statusCode||0,o={statusCode:i,result:null,headers:{}};let s,a;i===hs.NotFound&&n(o);try{a=await e.readBody(),a&&a.length>0&&(s=t&&t.deserializeDates?JSON.parse(a,(function(e,t){if("string"==typeof t){const e=new Date(t);if(!isNaN(e.valueOf()))return e}return t})):JSON.parse(a),o.result=s),o.headers=e.message.headers}catch(c){}if(i>299){let e;e=s&&s.message?s.message:a&&a.length>0?a:`Failed request: (${i})`;const t=new Os(e,i);t.result=o.result,r(t)}else n(o)}))}}const xs=e=>Object.keys(e).reduce(((t,n)=>(t[n.toLowerCase()]=e[n],t)),{}),Ps=i(Object.freeze(Object.defineProperty({__proto__:null,get Headers(){return ys},HttpClient:Is,HttpClientError:Os,HttpClientResponse:Rs,get HttpCodes(){return hs},get MediaTypes(){return ws},getProxyUrl:function(e){const t=N(new URL(e));return t?t.href:""},isHttps:function(e){return"https:"===new URL(e).protocol}},Symbol.toStringTag,{value:"Module"})));var Ts,Ns,Cs,$s,As,Ls,ks,Ds,js,Us,Fs={},Ms={},Gs={},Bs={},qs={},Hs={},Vs={},zs={},Ws=D();const{GITHUB_ACTIONS:Xs}=Zo;var Ys,Ks,Js,Qs,Zs,ea,ta,na,ra,ia,oa,sa,aa,ca,ua,la,fa,pa,da,ha,ma,ya,va,wa={exports:{}},ga={exports:{}},Ea={};const _a=r(function(){function e(e,i,o){const s=n(e,i,o),a=t.spawn(s.command,s.args,s.options);return r.hookChildProcess(a,s),a}if(va)return wa.exports;va=1;const t=Xr,n=B(),r=function(){function e(e,t){return Object.assign(Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function t(t,r){return n&&1===t&&!r.file?e(r.original,"spawn"):null}if(ya)return ma;ya=1;const n="win32"===process.platform;return ma={hookChildProcess:function(e,r){if(!n)return;const i=e.emit;e.emit=function(n,o){if("exit"===n){const n=t(o,r);if(n)return i.call(e,"error",n)}return i.apply(e,arguments)}},verifyENOENT:t,verifyENOENTSync:function(t,r){return n&&1===t&&!r.file?e(r.original,"spawnSync"):null},notFoundError:e},ma}();return wa.exports=e,wa.exports.spawn=e,wa.exports.sync=function(e,i,o){const s=n(e,i,o),a=t.spawnSync(s.command,s.args,s.options);return a.error=a.error||r.verifyENOENTSync(a.status,s),a},wa.exports._parse=n,wa.exports._enoent=r,wa.exports}()),ba=({env:e=jr.env,...t}={})=>{const n=q({env:e={...e}});return t.path=e[n],e[n]=(({cwd:e=jr.cwd(),path:t=jr.env[q()],preferLocal:n=!0,execPath:r=jr.execPath,addExecPath:i=!0}={})=>{const o=e instanceof URL?Qr.fileURLToPath(e):e,s=Fr.resolve(o),a=[];return n&&((e,t)=>{let n;for(;n!==t;)e.push(Fr.join(t,"node_modules/.bin")),n=t,t=Fr.resolve(t,"..")})(a,s),i&&((e,t,n)=>{const r=t instanceof URL?Qr.fileURLToPath(t):t;e.push(Fr.resolve(n,r,".."))})(a,r,s),[...a,t].join(Fr.delimiter)})(t),e},Sa=(e,t,n,r)=>{if("length"===n||"prototype"===n)return;if("arguments"===n||"caller"===n)return;const i=Object.getOwnPropertyDescriptor(e,n),o=Object.getOwnPropertyDescriptor(t,n);!Oa(i,o)&&r||Object.defineProperty(e,n,o)},Oa=function(e,t){return void 0===e||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},Ra=(e,t)=>`/* Wrapped ${e}*/\n${t}`,Ia=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),xa=Object.getOwnPropertyDescriptor(function(){}.toString,"name"),Pa=new WeakMap,Ta=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let n,r=0;const i=e.displayName||e.name||"<anonymous>",o=function(...s){if(Pa.set(o,++r),1===r)n=e.apply(this,s),e=null;else if(!0===t.throw)throw Error(`Function \`${i}\` can only be called once`);return n};return function(e,t,{ignoreNonConfigurable:n=!1}={}){const{name:r}=e;for(const i of Reflect.ownKeys(t))Sa(e,t,i,n);((e,t)=>{const n=Object.getPrototypeOf(t);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n)})(e,t),((e,t,n)=>{const r=""===n?"":`with ${n.trim()}() `,i=Ra.bind(null,r,""+t);Object.defineProperty(i,"name",xa),Object.defineProperty(e,"toString",{...Ia,value:i})})(e,t,r)}(o,e),Pa.set(o,r),o};Ta.callCount=e=>{if(!Pa.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Pa.get(e)};const Na=(e,t)=>({name:"SIGRT"+(t+1),number:Ca+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),Ca=34,$a=[{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"}],Aa=()=>{const e=Array.from({length:64-Ca+1},Na);return[...$a,...e].map(La)},La=({name:e,number:t,description:n,action:r,forced:i=!1,standard:o})=>{const{signals:{[e]:s}}=Ur.constants,a=void 0!==s;return{name:e,number:a?s:t,description:n,supported:a,action:r,forced:i,standard:o}},ka=({name:e,number:t,description:n,supported:r,action:i,forced:o,standard:s})=>[e,{name:e,number:t,description:n,supported:r,action:i,forced:o,standard:s}],Da=(()=>{const e=Aa();return Object.fromEntries(e.map(ka))})(),ja=(e,t)=>{const n=t.find((({name:t})=>Ur.constants.signals[t]===e));return void 0!==n?n:t.find((t=>t.number===e))};(()=>{const e=Aa(),t=Array.from({length:65},((t,n)=>((e,t)=>{const n=ja(e,t);if(void 0===n)return{};const{name:r,description:i,supported:o,action:s,forced:a,standard:c}=n;return{[e]:{name:r,number:e,description:i,supported:o,action:s,forced:a,standard:c}}})(n,e)));Object.assign({},...t)})();const Ua=({stdout:e,stderr:t,all:n,error:r,signal:i,exitCode:o,command:s,escapedCommand:a,timedOut:c,isCanceled:u,killed:l,parsed:{options:{timeout:f,cwd:p=jr.cwd()}}})=>{const d=void 0===(i=null===i?void 0:i)?void 0:Da[i].description,h=(({timedOut:e,timeout:t,errorCode:n,signal:r,signalDescription:i,exitCode:o,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":void 0!==n?"failed with "+n:void 0!==r?`was killed with ${r} (${i})`:void 0!==o?"failed with exit code "+o:"failed")({timedOut:c,timeout:f,errorCode:r&&r.code,signal:i,signalDescription:d,exitCode:o=null===o?void 0:o,isCanceled:u}),m=`Command ${h}: ${s}`,y="[object Error]"==={}.toString.call(r),v=y?`${m}\n${r.message}`:m,w=[v,t,e].filter(Boolean).join("\n");return y?(r.originalMessage=r.message,r.message=w):r=Error(w),r.shortMessage=v,r.command=s,r.escapedCommand=a,r.exitCode=o,r.signal=i,r.signalDescription=d,r.stdout=e,r.stderr=t,r.cwd=p,void 0!==n&&(r.all=n),"bufferedData"in r&&delete r.bufferedData,r.failed=!0,r.timedOut=!!c,r.isCanceled=u,r.killed=l&&!c,r},Fa=["stdin","stdout","stderr"];var Ma,Ga,Ba={exports:{}},qa={exports:{}};const Ha=r(function(){if(Ga)return Ba.exports;Ga=1;var e=Vo.process;const t=function(e){return e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on};if(t(e)){var n,r=Yr,i=(Ma||(Ma=1,(y=qa).exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&y.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&y.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")),qa.exports),o=/^win/i.test(e.platform),s=Vr;"function"!=typeof s&&(s=s.EventEmitter),e.__signal_exit_emitter__?n=e.__signal_exit_emitter__:((n=e.__signal_exit_emitter__=new s).count=0,n.emitted={}),n.infinite||(n.setMaxListeners(1/0),n.infinite=!0),Ba.exports=function(e,i){if(!t(Vo.process))return function(){};r.equal(typeof e,"function","a callback must be provided for exit handler"),!1===l&&f();var o="exit";return i&&i.alwaysLast&&(o="afterexit"),n.on(o,e),function(){n.removeListener(o,e),0===n.listeners("exit").length&&0===n.listeners("afterexit").length&&a()}};var a=function(){l&&t(Vo.process)&&(l=!1,i.forEach((function(t){try{e.removeListener(t,u[t])}catch(n){}})),e.emit=h,e.reallyExit=p,n.count-=1)};Ba.exports.unload=a;var c=function(e,t,r){n.emitted[e]||(n.emitted[e]=!0,n.emit(e,t,r))},u={};i.forEach((function(r){u[r]=function(){t(Vo.process)&&e.listeners(r).length===n.count&&(a(),c("exit",null,r),c("afterexit",null,r),o&&"SIGHUP"===r&&(r="SIGINT"),e.kill(e.pid,r))}})),Ba.exports.signals=function(){return i};var l=!1,f=function(){!l&&t(Vo.process)&&(l=!0,n.count+=1,i=i.filter((function(t){try{return e.on(t,u[t]),!0}catch(n){return!1}})),e.emit=m,e.reallyExit=d)};Ba.exports.load=f;var p=e.reallyExit,d=function(n){t(Vo.process)&&(e.exitCode=n||0,c("exit",e.exitCode,null),c("afterexit",e.exitCode,null),p.call(e,e.exitCode))},h=e.emit,m=function(n,r){if("exit"===n&&t(Vo.process)){void 0!==r&&(e.exitCode=r);var i=h.apply(this,arguments);return c("exit",e.exitCode,null),c("afterexit",e.exitCode,null),i}return h.apply(this,arguments)}}else Ba.exports=function(){return function(){}};var y;return Ba.exports}()),Va=(e,t="SIGTERM",n={})=>{const r=e(t);return za(e,t,n,r),r},za=(e,t,n,r)=>{if(!Wa(t,n,r))return;const i=Ya(n),o=setTimeout((()=>{e("SIGKILL")}),i);o.unref&&o.unref()},Wa=(e,{forceKillAfterTimeout:t},n)=>Xa(e)&&!1!==t&&n,Xa=e=>e===Ur.constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),Ya=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||0>e)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},Ka=(e,t)=>{e.kill()&&(t.isCanceled=!0)},Ja=(e,t,n)=>{if("string"==typeof n)return e[t].pipe(Mr.createWriteStream(n)),e;if(V(n))return e[t].pipe(n),e;if(!(e=>e instanceof Xr.ChildProcess&&"function"==typeof e.then)(n))throw new TypeError("The second argument must be a string, a stream or an Execa child process.");if(!V(n.stdin))throw new TypeError("The target child process's stdin must be available.");return e[t].pipe(n.stdin),n};var Qa,Za,ec,tc={exports:{}};const nc=r(function(){async function e(e,n){if(!e)throw Error("Expected a stream");n={maxBuffer:1/0,...n};const{maxBuffer:r}=n,a=i(n);return await new Promise(((n,i)=>{const c=e=>{e&&a.getBufferedLength()<=t.MAX_LENGTH&&(e.bufferedData=a.getBufferedValue()),i(e)};(async()=>{try{await o(e,a),n()}catch(t){c(t)}})(),a.on("data",(()=>{a.getBufferedLength()>r&&c(new s)}))})),a.getBufferedValue()}if(ec)return tc.exports;ec=1;const{constants:t}=Jr,n=Zr,{promisify:r}=zr,i=function(){if(Za)return Qa;Za=1;const{PassThrough:e}=Zr;return Qa=t=>{t={...t};const{array:n}=t;let{encoding:r}=t;const i="buffer"===r;let o=!1;n?o=!(r||i):r=r||"utf8",i&&(r=null);const s=new e({objectMode:o});r&&s.setEncoding(r);let a=0;const c=[];return s.on("data",(e=>{c.push(e),o?a=c.length:a+=e.length})),s.getBufferedValue=()=>n?c:i?Buffer.concat(c,a):c.join(""),s.getBufferedLength=()=>a,s}}(),o=r(n.pipeline);class s extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}return tc.exports=e,tc.exports.buffer=(t,n)=>e(t,{...n,encoding:"buffer"}),tc.exports.array=(t,n)=>e(t,{...n,array:!0}),tc.exports.MaxBufferError=s,tc.exports}());var rc,ic;const oc=r(function(){if(ic)return rc;ic=1;const{PassThrough:e}=Zr;return rc=function(){function t(e){return Array.isArray(e)?(e.forEach(t),this):(r.push(e),e.once("end",n.bind(null,e)),e.once("error",i.emit.bind(i,"error")),e.pipe(i,{end:!1}),this)}function n(e){!(r=r.filter((function(t){return t!==e}))).length&&i.readable&&i.end()}var r=[],i=new e({objectMode:!0});return i.setMaxListeners(0),i.add=t,i.isEmpty=function(){return 0==r.length},i.on("unpipe",n),[].slice.call(arguments).forEach(t),i}}()),sc=e=>{if(void 0!==e)throw new TypeError("The `input` and `inputFile` options cannot be both set.")},ac=async(e,t)=>{if(e&&void 0!==t){e.destroy();try{return await t}catch(n){return n.bufferedData}}},cc=(e,{encoding:t,buffer:n,maxBuffer:r})=>{if(e&&n)return t?nc(e,{encoding:t,maxBuffer:r}):nc.buffer(e,{maxBuffer:r})},uc=(async()=>{})().constructor.prototype,lc=["then","catch","finally"].map((e=>[e,Reflect.getOwnPropertyDescriptor(uc,e)])),fc=(e,t)=>{for(const[n,r]of lc){const i="function"==typeof t?(...e)=>Reflect.apply(r.value,t(),e):r.value.bind(t);Reflect.defineProperty(e,n,{...r,value:i})}},pc=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],dc=/^[\w.-]+$/,hc=/"/g,mc=(e,t)=>pc(e,t).join(" "),yc=(e,t)=>pc(e,t).map((e=>(e=>"string"!=typeof e||dc.test(e)?e:`"${e.replace(hc,'\\"')}"`)(e))).join(" "),vc=/ +/g,wc=e=>{const t=[];for(const n of e.trim().split(vc)){const e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${n}`:t.push(n)}return t},gc=zr.debuglog("execa").enabled,Ec=(e,t)=>(e+"").padStart(t,"0"),_c=(e,{verbose:t})=>{t&&jr.stderr.write(`[${(()=>{const e=new Date;return`${Ec(e.getHours(),2)}:${Ec(e.getMinutes(),2)}:${Ec(e.getSeconds(),2)}.${Ec(e.getMilliseconds(),3)}`})()}] ${e}\n`)},bc=(e,t,n={})=>{const r=_a._parse(e,t,n);return e=r.command,t=r.args,(n={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(n=r.options).cwd||jr.cwd(),execPath:jr.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:gc,...n}).env=(({env:e,extendEnv:t,preferLocal:n,localDir:r,execPath:i})=>{const o=t?{...jr.env,...e}:e;return n?ba({env:o,cwd:r,execPath:i}):o})(n),n.stdio=(e=>{if(!e)return;const{stdio:t}=e;if(void 0===t)return Fa.map((t=>e[t]));if((e=>Fa.some((t=>void 0!==e[t])))(e))throw Error("It's not possible to provide `stdio` in combination with one of "+Fa.map((e=>`\`${e}\``)).join(", "));if("string"==typeof t)return t;if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);return Array.from({length:Math.max(t.length,Fa.length)},((e,n)=>t[n]))})(n),"win32"===jr.platform&&"cmd"===Fr.basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:n,parsed:r}},Sc=(e,t,n)=>"string"==typeof t||Jr.Buffer.isBuffer(t)?e.stripFinalNewline?function(e){const t="string"==typeof e?"\r":13;return e[e.length-1]===("string"==typeof e?"\n":10)&&(e=e.slice(0,-1)),e[e.length-1]===t&&(e=e.slice(0,-1)),e}(t):t:void 0===n?void 0:"";var Oc={},Rc={};const Ic=ri.promises,{access:xc,appendFile:Pc,chmod:Tc,chown:Nc,copyFile:Cc,lchmod:$c,lchown:Ac,link:Lc,lstat:kc,mkdir:Dc,mkdtemp:jc,open:Uc,readdir:Fc,readFile:Mc,readlink:Gc,realpath:Bc,rename:qc,rmdir:Hc,stat:Vc,symlink:zc,truncate:Wc,unlink:Xc,utimes:Yc,writeFile:Kc}=ri.promises,Jc="rm"in ri.promises?ri.promises.rm:zr.promisify(ri.unlink),Qc=i(Object.freeze(Object.defineProperty({__proto__:null,access:xc,appendFile:Pc,chmod:Tc,chown:Nc,copyFile:Cc,default:Ic,lchmod:$c,lchown:Ac,link:Lc,lstat:kc,mkdir:Dc,mkdtemp:jc,open:Uc,readFile:Mc,readdir:Fc,readlink:Gc,realpath:Bc,rename:qc,rm:Jc,rmdir:Hc,stat:Vc,symlink:zc,truncate:Wc,unlink:Xc,utimes:Yc,writeFile:Kc},Symbol.toStringTag,{value:"Module"})));var Zc,eu,tu,nu,ru,iu,ou={},su={};const au=r(function(){if(iu)return ru;iu=1;const{isexe:e,sync:t}=X(),{join:n,delimiter:r,sep:i,posix:o}=Fr,s="win32"===process.platform,a=RegExp(`[${o.sep}${i===o.sep?"":i}]`.replace(/(\\)/g,"\\$1")),c=RegExp("^\\."+a.source),u=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),l=(e,{path:t=process.env.PATH,pathExt:n=process.env.PATHEXT,delimiter:i=r})=>{const o=e.match(a)?[""]:[...s?[process.cwd()]:[],...(t||"").split(i)];if(s){const t=n||[".EXE",".CMD",".BAT",".COM"].join(i),r=t.split(i).flatMap((e=>[e,e.toLowerCase()]));return e.includes(".")&&""!==r[0]&&r.unshift(""),{pathEnv:o,pathExt:r,pathExtExe:t}}return{pathEnv:o,pathExt:[""]}},f=(e,t)=>{const r=/^".*"$/.test(e)?e.slice(1,-1):e;return(!r&&c.test(t)?t.slice(0,2):"")+n(r,t)},p=async(t,n={})=>{const{pathEnv:r,pathExt:i,pathExtExe:o}=l(t,n),s=[];for(const a of r){const r=f(a,t);for(const t of i){const i=r+t;if(await e(i,{pathExt:o,ignoreErrors:!0})){if(!n.all)return i;s.push(i)}}}if(n.all&&s.length)return s;if(n.nothrow)return null;throw u(t)};return ru=p,p.sync=(e,n={})=>{const{pathEnv:r,pathExt:i,pathExtExe:o}=l(e,n),s=[];for(const a of r){const r=f(a,e);for(const e of i){const i=r+e;if(t(i,{pathExt:o,ignoreErrors:!0})){if(!n.all)return i;s.push(i)}}}if(n.all&&s.length)return s;if(n.nothrow)return null;throw u(e)},ru}());let cu;var uu,lu={};K(lu,"hasSudo",(()=>J)),K(lu,"isRoot",(()=>Q)),K(lu,"isSudo",(()=>Z)),K(lu,"prependSudo",(()=>ee)),K(lu,"defaultExecOptions",(()=>fu)),K(lu,"execRootSync",(()=>te)),K(lu,"execRoot",(()=>ne));let fu={stdio:"inherit",shell:!0};K(uu={},"isAdminWindows",(()=>pu)),K(uu,"isAdminPosix",(()=>du)),K(uu,"isAdmin",(()=>oe));let pu=async function(){var e;if("win32"!==process.platform)return!1;try{return await z("fsutil",["dirty","query",null!=(e=process.env.systemdrive)?e:""]),!0}catch(t){return"ENOENT"===t.code&&async function(){try{return await z("fltmc"),!0}catch{return!1}}()}},du=Q;var hu,mu,yu,vu,wu,gu,Eu,_u,bu,Su,Ou,Ru,Iu,xu,Pu,Tu,Nu,Cu,$u,Au,Lu,ku,Du,ju,Uu,Fu;K({},"grantUserWriteAccess",(()=>se));var Mu,Gu,Bu,qu,Hu,Vu,zu,Wu,Xu,Yu,Ku,Ju,Qu,Zu,el,tl,nl,rl,il,ol,sl,al,cl,ul,ll,fl,pl,dl,hl,ml,yl,vl,wl,gl,El,_l,bl,Sl,Ol,Rl,Il,xl,Pl,Tl,Nl,Cl,$l,Al,Ll,kl,Dl,jl,Ul,Fl,Ml,Gl,Bl,ql,Hl,Vl,zl,Wl,Xl,Yl,Kl,Jl,Ql,Zl,ef,tf,nf,rf,of,sf,af,cf,uf,lf,ff,pf,df,hf,mf,yf,vf,wf,gf,Ef,_f,bf,Sf,Of,Rf,If,xf,Pf,Tf,Nf,Cf,$f,Af,Lf,kf,Df,jf,Uf,Ff,Mf,Gf,Bf,qf,Hf,Vf,zf,Wf,Xf,Yf,Kf,Jf,Qf,Zf,ep,tp,np,rp,ip,op,sp,ap,cp,up={},lp={exports:{}},fp={exports:{}},pp={exports:{}},dp={exports:{}},hp={},mp={},yp={exports:{}},vp={},wp={},gp={},Ep={};const _p=r(function(){if(cp)return ap;cp=1;var e=ce(),t=le(),n=function(){if(df)return pf;df=1;var e=fe(),t=de(),n=he(),r=Re(),i=le();return pf=function o(s){var a,c,u;if(e(s),(a=Object(arguments[1])).async&&a.promise)throw Error("Options 'async' and 'promise' cannot be used together");return hasOwnProperty.call(s,"__memoized__")&&!a.force?s:(c=i(a.length,s.length,a.async&&n.async),u=r(s,c,a),t(n,(function(e,t){a[t]&&e(a[t],u,a)})),o.__profiler__&&o.__profiler__(u),u.updateEnv(),u.memoized)},pf}();return ap=function(r){var i,o=e(arguments[1]);return o.normalizer||0!==(i=o.length=t(o.length,r.length,o.async))&&(o.primitive?!1===i?o.normalizer=mf?hf:(mf=1,hf=function(e){var t,n,r=e.length;if(!r)return"";for(t=e[n=0]+"";--r;)t+=""+e[++n];return t}):i>1&&(o.normalizer=(vf?yf:(vf=1,yf=function(e){return e?function(t){for(var n=t[0]+"",r=0,i=e;--i;)n+=""+t[++r];return n}:function(){return""}}))(i)):o.normalizer=!1===i?function(){if(xf)return If;xf=1;var e=Ie(),t=Object.create;return If=function(){var n=0,r=[],i=t(null);return{get:function(t){var n,i=0,o=r,s=t.length;if(0===s)return o[s]||null;if(o=o[s]){for(;s-1>i;){if(-1===(n=e.call(o[0],t[i])))return null;o=o[1][n],++i}return-1===(n=e.call(o[0],t[i]))?null:o[1][n]||null}return null},set:function(t){var o,s=0,a=r,c=t.length;if(0===c)a[c]=++n;else{for(a[c]||(a[c]=[[],[]]),a=a[c];c-1>s;)-1===(o=e.call(a[0],t[s]))&&(o=a[0].push(t[s])-1,a[1].push([[],[]])),a=a[1][o],++s;-1===(o=e.call(a[0],t[s]))&&(o=a[0].push(t[s])-1),a[1][o]=++n}return i[n]=t,n},delete:function(t){var n,o=0,s=r,a=i[t],c=a.length,u=[];if(0===c)delete s[c];else if(s=s[c]){for(;c-1>o;){if(-1===(n=e.call(s[0],a[o])))return;u.push(s,n),s=s[1][n],++o}if(-1===(n=e.call(s[0],a[o])))return;for(t=s[1][n],s[0].splice(n,1),s[1].splice(n,1);!s[0].length&&u.length;)n=u.pop(),(s=u.pop())[0].splice(n,1),s[1].splice(n,1)}delete i[t]},clear:function(){r=[],i=t(null)}}}}()():1===i?function(){if(Tf)return Pf;Tf=1;var e=Ie();return Pf=function(){var t=0,n=[],r=[];return{get:function(t){var i=e.call(n,t[0]);return-1===i?null:r[i]},set:function(e){return n.push(e[0]),r.push(++t),t},delete:function(t){var i=e.call(r,t);-1!==i&&(n.splice(i,1),r.splice(i,1))},clear:function(){n=[],r=[]}}}}()():function(){if(Cf)return Nf;Cf=1;var e=Ie(),t=Object.create;return Nf=function(n){var r=0,i=[[],[]],o=t(null);return{get:function(t){for(var r,o=0,s=i;n-1>o;){if(-1===(r=e.call(s[0],t[o])))return null;s=s[1][r],++o}return-1===(r=e.call(s[0],t[o]))?null:s[1][r]||null},set:function(t){for(var s,a=0,c=i;n-1>a;)-1===(s=e.call(c[0],t[a]))&&(s=c[0].push(t[a])-1,c[1].push([[],[]])),c=c[1][s],++a;return-1===(s=e.call(c[0],t[a]))&&(s=c[0].push(t[a])-1),c[1][s]=++r,o[r]=t,r},delete:function(t){for(var r,s=0,a=i,c=[],u=o[t];n-1>s;){if(-1===(r=e.call(a[0],u[s])))return;c.push(a,r),a=a[1][r],++s}if(-1!==(r=e.call(a[0],u[s]))){for(t=a[1][r],a[0].splice(r,1),a[1].splice(r,1);!a[0].length&&c.length;)r=c.pop(),(a=c.pop())[0].splice(r,1),a[1].splice(r,1);delete o[t]}},clear:function(){i=[[],[]],o=t(null)}}}}()(i)),o.async&&function(){if(Df)return hp;Df=1;var e=Oe(),t=xe(),n=ye(),r=ve(),i=Pe(),o=[].slice,s=function(){}.apply,a=Object.create;he().async=function(c,u){var l,f,p,d=a(null),h=a(null),m=u.memoized,y=u.original;u.memoized=r((function(e){var t=arguments,n=t[t.length-1];return"function"==typeof n&&(l=n,t=o.call(t,0,-1)),m.apply(f=this,p=t)}),m);try{n(u.memoized,m)}catch(v){}u.on("get",(function(e){var t,n,r;if(l){if(d[e])return"function"==typeof d[e]?d[e]=[d[e],l]:d[e].push(l),void(l=null);t=l,n=f,r=p,l=f=p=null,i((function(){var i;hasOwnProperty.call(h,e)?(i=h[e],u.emit("getasync",e,r,n),s.call(t,i.context,i.args)):(l=t,f=n,p=r,m.apply(n,r))}))}})),u.original=function(){var t,n,r,o;return l?(t=e(arguments),n=function t(n){var r,a,c=t.id;if(null!=c){if(delete t.id,r=d[c],delete d[c],r)return a=e(arguments),u.has(c)&&(n?u.delete(c):(h[c]={context:this,args:a},u.emit("setasync",c,"function"==typeof r?1:r.length))),"function"==typeof r?o=s.call(r,this,a):r.forEach((function(e){o=s.call(e,this,a)}),this),o}else i(s.bind(t,this,arguments))},r=l,l=f=p=null,t.push(n),o=s.call(y,this,t),n.cb=r,l=n,o):s.call(y,this,arguments)},u.on("set",(function(e){l?(d[e]?"function"==typeof d[e]?d[e]=[d[e],l.cb]:d[e].push(l.cb):d[e]=l.cb,delete l.cb,l.id=e,l=null):u.delete(e)})),u.on("delete",(function(e){var t;hasOwnProperty.call(d,e)||h[e]&&(t=h[e],delete h[e],u.emit("deleteasync",e,o.call(t.args,1)))})),u.on("clear",(function(){var e=h;h=a(null),u.emit("clearasync",t(e,(function(e){return o.call(e.args,1)})))}))}}(),o.promise&&Ce(),o.dispose&&function(){if(Jf)return vp;Jf=1;var e=fe(),t=de(),n=he(),r=function(){}.apply;n.dispose=function(i,o,s){var a;if(e(i),s.async&&n.async||s.promise&&n.promise)return o.on("deleteasync",a=function(e,t){r.call(i,null,t)}),void o.on("clearasync",(function(e){t(e,(function(e,t){a(t,e)}))}));o.on("delete",a=function(e,t){i(t)}),o.on("clear",(function(e){t(e,(function(e,t){a(t,e)}))}))}}(),o.maxAge&&function(){if(np)return wp;np=1;var e=Oe(),t=de(),n=Pe(),r=Ne(),i=function(){if(tp)return ep;tp=1;var e=ue(),t=Zf?Qf:(Zf=1,Qf=2147483647);return ep=function(n){if((n=e(n))>t)throw new TypeError(n+" exceeds maximum possible timeout");return n}}(),o=he(),s=Function.prototype,a=Math.max,c=Math.min,u=Object.create;o.maxAge=function(l,f,p){var d,h,m,y;(l=i(l))&&(d=u(null),f.on("set"+(h=p.async&&o.async||p.promise&&o.promise?"async":""),(function(e){d[e]=setTimeout((function(){f.delete(e)}),l),"function"==typeof d[e].unref&&d[e].unref(),y&&(y[e]&&"nextTick"!==y[e]&&clearTimeout(y[e]),y[e]=setTimeout((function(){delete y[e]}),m),"function"==typeof y[e].unref&&y[e].unref())})),f.on("delete"+h,(function(e){clearTimeout(d[e]),delete d[e],y&&("nextTick"!==y[e]&&clearTimeout(y[e]),delete y[e])})),p.preFetch&&(m=!0===p.preFetch||isNaN(p.preFetch)?.333:a(c(Number(p.preFetch),1),0))&&(y={},m=(1-m)*l,f.on("get"+h,(function(t,i,o){y[t]||(y[t]="nextTick",n((function(){var n;"nextTick"===y[t]&&(delete y[t],f.delete(t),p.async&&(i=e(i)).push(s),n=f.memoized.apply(o,i),p.promise&&r(n)&&("function"==typeof n.done?n.done(s,s):n.then(s,s)))})))}))),f.on("clear"+h,(function(){t(d,(function(e){clearTimeout(e)})),d={},y&&(t(y,(function(e){"nextTick"!==e&&clearTimeout(e)})),y={})})))}}(),o.max&&function(){if(op)return gp;op=1;var e=ue(),t=function(){if(ip)return rp;ip=1;var e=ue(),t=Object.create,n={}.hasOwnProperty;return rp=function(r){var i,o=0,s=1,a=t(null),c=t(null),u=0;return r=e(r),{hit:function(e){var t=c[e],l=++u;if(a[l]=e,c[e]=l,!t){if(++o,r>=o)return;return i(e=a[s]),e}if(delete a[t],s===t)for(;!n.call(a,++s);)continue},delete:i=function(e){var t=c[e];if(t&&(delete a[t],delete c[e],--o,s===t)){if(!o)return u=0,void(s=1);for(;!n.call(a,++s);)continue}},clear:function(){o=0,s=1,a=t(null),c=t(null),u=0}}}}(),n=he();n.max=function(r,i,o){var s,a,c;(r=e(r))&&(a=t(r),i.on("set"+(s=o.async&&n.async||o.promise&&n.promise?"async":""),c=function(e){void 0!==(e=a.hit(e))&&i.delete(e)}),i.on("get"+s,c),i.on("delete"+s,a.delete),i.on("clear"+s,a.clear))}}(),o.refCounter&&function(){if(sp)return Ep;sp=1;var e=Ee(),t=he(),n=Object.create,r=Object.defineProperties;t.refCounter=function(i,o,s){var a,c;a=n(null),o.on("set"+(c=s.async&&t.async||s.promise&&t.promise?"async":""),(function(e,t){a[e]=t||1})),o.on("get"+c,(function(e){++a[e]})),o.on("delete"+c,(function(e){delete a[e]})),o.on("clear"+c,(function(){a={}})),r(o.memoized,{deleteRef:e((function(){var e=o.get(arguments);return null===e?null:a[e]?! --a[e]&&(o.delete(e),!0):null})),getRefCount:e((function(){var e=o.get(arguments);return null===e?0:a[e]?a[e]:0}))})}}(),n(r,o)}}()),bp=/^~(?=$|\/|\\)/,{appendFile:Sp,readFile:Op,writeFile:Rp}=Mr.promises,Ip=Ae("~/.envosmanrc"),xp=_p((async function(e){var t;const n=Ae("~/.bashrc"),r=Ae("~/.profile"),i=Fr.resolve(e.rcPath);if(i===n||i===r)return;const o=null!=(t=e.guard)?t:"envosman",s=`\n# ${o}\nif [[ "$SOURCE_${o.toUpperCase()}RC" != 0 && -f "${i}" ]]; then source "${i}"; fi\n`;try{await Promise.all([Le(e),ke(s,n),ke(s,r)])}catch(a){U(`Failed to add ${s} to .profile or .bashrc. You should add it manually: ${a}`)}}),{promise:!0});var Pp,Tp;const Np=r(function(){if(Tp)return Pp;Tp=1;const e=Ur,t="win32"!==e.platform(),n=e.release(),r=/(\d+\.\d+)\.(\d+)/;return Pp=function(e){return t?e.replace(/(\s+)/g,"\\$1"):((e="",t="")=>/1\d+\.\d+/.test(e)&&Number(t)>=17134.1184)(...r.exec(n).splice(1))?e:e.replace(/(\s+)/g,"%20")}}());var Cp,$p,Ap,Lp,kp,Dp={exports:{}};const jp=r((Ap||(Ap=1,Lp=function(){if($p)return Cp;$p=1;var e=/[|\\{}()[\]^$+*?.]/g;return Cp=function(t){if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(e,"\\$&")}}(),kp=function(e){return e.split("").reverse().join("")},Dp.exports=function(e,t,n){var r;return null==t&&(t="'"),null==n&&(n="\\"),"string"!=typeof e?e:(r=RegExp("(["+Lp(t)+"])(?!"+Lp(n)+")","g"),kp(kp(e).replace(r,"$1"+n)))}),Dp.exports)),{GITHUB_ACTIONS:Up}=Zo,{appendFile:Fp}=Mr.promises,{GITHUB_ACTIONS:Mp}=Zo,{appendFile:Gp}=Mr.promises,Bp=[/\/usr\/bin\/?/,/\/usr\/local\/bin\/?/];var qp,Hp,Vp,zp={exports:{}};const Wp=r(Be());var Xp;const Yp=r((Xp||(Xp=1,Ge().addLocale("en",(function(e){var t=Math.floor(Math.abs(e)),n=(""+e).replace(/^[^.]*\.?/,"").length;return"string"==typeof e&&(e=parseInt(e,10)),1===t&&0===n?"one":"other"}))),{}));var Kp,Jp,Qp,Zp,ed,td={exports:{}};const nd=r(ed?Zp:(ed=1,Zp=function(){function e(e){Array.isArray(e)||(e=[e]);for(const t of e){const{id:e,data:n}=t;s[e]=n}}function t(e,t,r){const i=function(e){const t=s[e.locale];let n=e.unitTypeLookupOrder.slice();n.unshift(e.unitType),n=Array.from(new Set(n));let r=null;if(n.some((function(e){if(void 0!==t[e])return r=t[e],!0})),null===r)throw Error("Can not find any unit type data for locale: "+e.locale);return r}(r);return n.pluralize(r.locale,t,i[e]).replace("{0}",t)}if(Qp)return Jp;Qp=1;const n=Be(),r=Kp?td.exports:(Kp=1,td.exports=!("undefined"==typeof process||!process.versions||!process.versions.node)),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={};return Jp={create:function(n){return n=Object.assign({},o,n||{}),{format:function(o,a,c){return function(n,o,a){if(function(t,n){const{autoload:i}=n;if(!s[t]){if(!r||!i)throw Error(`Missing locale: ${t}, you must load it manually before using it`);!function(t){try{e(Me(`../locales/${t}.js`))}catch(n){throw Error(`Failed to load locale: ${t} from ../locales/${t}.js. If using a bundled time-delta, set 'autoloadLocales: false' in the config: ${n}`)}}(t)}}(a.locale,{autoload:a.autoloadLocales}),!n)throw Error("Missing first date argument");if(!o)throw Error("Missing second date argument");const c=function(e,t){let n=t-e;const r=[];return i.some((function(e){const t=e[0],i=e[1],o=Math.floor(n/i);if(n-=o*i,r.push([t,o]),0>=n)return!0})),r}(n,o),u=[];for(const e of c){const[n,r]=e;if(r>0&&u.push(t(n,r,a)),u.length>=a.span)break}return u.join(a.delimiter)}(o,a,c=Object.assign({},n,c||{}))}}},addLocale:e,defaultConfig:o}}()));var rd,id;const od=r(id?rd:(id=1,rd={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"}}}})),sd=r(p());var ad,cd;const ud=r(function(){if(cd)return ad;cd=1;var e=Fr;return ad=function(t,n){if("string"!=typeof t)return t;if(0===t.length)return t;var r,i=e.basename(t,e.extname(t))+n,o=e.join(e.dirname(t),i);return(r=t.slice(0,2))==="."+e.sep||"./"===r?"."+e.sep+o:o}}());var ld={},fd={};Ve(fd,"name",(()=>ze));var pd={};Ve(pd,"normalizeTrim",(()=>We));var dd={};Ve(dd,"addExeExt",(()=>Xe));var hd={};Ve(hd,"addNamePrefix",(()=>Ye));var md={};Ve(md,"addNameSuffix",(()=>Ke));var yd={};Ve(yd,"addShExt",(()=>Je));var vd={};Ve(vd,"addShRelativePrefix",(()=>Qe));var wd={};Ve(wd,"removeExt",(()=>Ze));var gd={};Ve(gd,"replaceExt",(()=>et));var Ed={};Ve(Ed,"isPathInside",(()=>tt)),He(ld,fd),He(ld,pd),He(ld,dd),He(ld,hd),He(ld,md),He(ld,yd),He(ld,vd),He(ld,wd),He(ld,gd),He(ld,Ed);const _d=r(d()),bd=_p((async function(){if(!nt())return!1;try{return await au("apk"),!0}catch{return!1}}),{promise:!0}),Sd=_p((async function(){await z("apk",["update"],{stdio:"inherit"})}),{promise:!0}),Od=_p((async function(){const e=await it([{name:"bash"}]);0!==e.length&&te("apk",["add",...e],{...fu})}),{promise:!0}),{GITHUB_ACTIONS:Rd}=Zo,{appendFile:Id}=Mr.promises;var xd,Pd={},Td=(xd||(xd=1,function(e){function t(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)({}).hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}Object.defineProperty(e,"__esModule",{value:!0}),e.DownloaderHelper=e.DH_STATES=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n,r=0;t.length>r;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=t(Mr),s=Qr,a=t(Fr),c=t(qr),u=t(Gr),l=Vr,f=e.DH_STATES={IDLE:"IDLE",SKIPPED:"SKIPPED",STARTED:"STARTED",DOWNLOADING:"DOWNLOADING",RETRY:"RETRY",PAUSED:"PAUSED",RESUMED:"RESUMED",STOPPED:"STOPPED",FINISHED:"FINISHED",FAILED:"FAILED"};e.DownloaderHelper=function(e){function t(e,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,{captureRejections:!0}));return o.__validate(e,r)?(o.url=o.requestURL=e.trim(),o.state=f.IDLE,o.__defaultOpts={body:null,retry:!1,method:"GET",headers:{},fileName:"",timeout:-1,metadata:null,override:!1,forceResume:!1,removeOnStop:!0,removeOnFail:!0,progressThrottle:1e3,httpRequestOptions:{},httpsRequestOptions:{},resumeOnIncomplete:!0,resumeIfFileExists:!1,resumeOnIncompleteMaxRetry:5},o.__opts=Object.assign({},o.__defaultOpts),o.__pipes=[],o.__total=0,o.__downloaded=0,o.__progress=0,o.__retryCount=0,o.__retryTimeout=null,o.__resumeRetryCount=0,o.__states=f,o.__promise=null,o.__request=null,o.__response=null,o.__isAborted=!1,o.__isResumed=!1,o.__isResumable=!1,o.__isRedirected=!1,o.__destFolder=r,o.__statsEstimate={time:0,bytes:0,prevBytes:0,throttleTime:0},o.__fileName="",o.__filePath="",o.updateOptions(i),o):n(o)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"start",value:function(){var e=this,t=function(){return new Promise((function(t,n){e.__promise={resolve:t,reject:n},e.__start()}))};return this.__opts.resumeIfFileExists&&this.state!==this.__states.RESUMED?this.getTotalSize().then((function(n){var r=n.name,i=n.total,s=e.__opts.override;return e.__opts.override=!0,e.__filePath=e.__getFilePath(r),e.__opts.override=s,e.__filePath&&o.existsSync(e.__filePath)?e.__getFilesizeInBytes(e.__filePath)===i?t():e.resumeFromFile(e.__filePath,{total:i,fileName:r}):t()})):t()}},{key:"pause",value:function(){var e=this;return this.state===this.__states.STOPPED?Promise.resolve(!0):(this.__response&&(this.__response.unpipe(),this.__pipes.forEach((function(e){return e.stream.unpipe()}))),this.__fileStream&&this.__fileStream.removeAllListeners(),this.__requestAbort(),this.__closeFileStream().then((function(){return e.__setState(e.__states.PAUSED),e.emit("pause"),!0})))}},{key:"resume",value:function(){return this.__promise?this.state===this.__states.STOPPED?Promise.resolve(!1):(this.__setState(this.__states.RESUMED),this.__isResumable&&(this.__isResumed=!0,this.__reqOptions.headers.range="bytes="+this.__downloaded+"-"),this.emit("resume",this.__isResumed),this.__start()):this.start()}},{key:"stop",value:function(){var e=this;return this.state===this.__states.STOPPED?Promise.resolve(!0):(this.__requestAbort(),this.__closeFileStream().then((function(){return e.__opts.removeOnStop?new Promise((function(t,n){o.access(e.__filePath,(function(r){return r?(e.__emitStop(),t(!0)):void o.unlink(e.__filePath,(function(r){return r?(e.__setState(e.__states.FAILED),e.emit("error",r),n(r)):(e.__emitStop(),void t(!0))}))}))})):(e.__emitStop(),Promise.resolve(!0))})))}},{key:"pipe",value:function(e){return this.__pipes.push({stream:e,options:arguments.length>1&&void 0!==arguments[1]?arguments[1]:null}),e}},{key:"unpipe",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=function(t){return e.__response?e.__response.unpipe(t):t.unpipe()};t?this.__pipes.find((function(e){return e.stream===t}))&&(n(t),this.__pipes=this.__pipes.filter((function(e){return e.stream!==t}))):(this.__pipes.forEach((function(e){return n(e.stream)})),this.__pipes=[])}},{key:"getDownloadPath",value:function(){return this.__filePath}},{key:"isResumable",value:function(){return this.__isResumable}},{key:"updateOptions",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.__opts=Object.assign({},this.__opts,e),this.__headers=this.__opts.headers,this.__opts.timeout>-1&&(this.__opts.httpRequestOptions.timeout=this.__opts.timeout,this.__opts.httpsRequestOptions.timeout=this.__opts.timeout),("number"!=typeof this.__opts.progressThrottle||0>this.__opts.progressThrottle)&&(this.__opts.progressThrottle=this.__defaultOpts.progressThrottle),this.url=t||this.url,this.__reqOptions=this.__getReqOptions(this.__opts.method,this.url,this.__opts.headers),this.__initProtocol(this.url)}},{key:"getOptions",value:function(){return this.__opts}},{key:"getMetadata",value:function(){return this.__opts.metadata}},{key:"getStats",value:function(){return{total:this.__total,name:this.__fileName,downloaded:this.__downloaded,progress:this.__progress,speed:this.__statsEstimate.bytes}}},{key:"getTotalSize",value:function(){var e=this;return new Promise((function(t,n){var r=function(t){e.__initProtocol(t);var n=Object.assign({},e.__headers);n.hasOwnProperty("range")&&delete n.range;var r=e.__getReqOptions("HEAD",t,n);return Object.assign({},e.__reqOptions,r)},i=function(o,a){var c=e.__protocol.request(a,(function(a){if(e.__isRequireRedirect(a)){var c=/^https?:\/\//.test(a.headers.location)?a.headers.location:new s.URL(a.headers.location,o).href;return e.emit("redirected",c,o),i(c,r(c))}return 200===a.statusCode?void t({name:e.__getFileNameFromHeaders(a.headers,a),total:parseInt(a.headers["content-length"])||null}):n(Error("Response status was "+a.statusCode))}));c.on("error",(function(e){return n(e)})),c.on("timeout",(function(){return n(Error("timeout"))})),c.on("uncaughtException",(function(e){return n(e)})),c.end()};i(e.url,r(e.url))}))}},{key:"getResumeState",value:function(){return{downloaded:this.__downloaded,filePath:this.__filePath,fileName:this.__fileName,total:this.__total}}},{key:"resumeFromFile",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.__opts.override=!0,this.__filePath=e,(n.total&&n.fileName?Promise.resolve({name:n.fileName,total:n.total}):this.getTotalSize()).then((function(e){var r=e.name;return t.__total=n.total||e.total,t.__fileName=n.fileName||r,t.__downloaded=n.downloaded||t.__getFilesizeInBytes(t.__filePath),t.__reqOptions.headers.range="bytes="+t.__downloaded+"-",t.__isResumed=!0,t.__isResumable=!0,t.__setState(t.__states.RESUMED),t.emit("resume",t.__isResumed),new Promise((function(e,n){t.__promise={resolve:e,reject:n},t.__start()}))}))}},{key:"__start",value:function(){this.__isRedirected||this.state===this.__states.RESUMED||(this.emit("start"),this.__setState(this.__states.STARTED),this.__initProtocol(this.url)),this.__response=null,this.__isAborted=!1,this.__request&&!this.__request.destroyed&&this.__request.destroy(),this.__retryTimeout&&(clearTimeout(this.__retryTimeout),this.__retryTimeout=null),this.__request=this.__downloadRequest(this.__promise.resolve,this.__promise.reject),this.__request.on("error",this.__onError(this.__promise.resolve,this.__promise.reject)),this.__request.on("timeout",this.__onTimeout(this.__promise.resolve,this.__promise.reject)),this.__request.on("uncaughtException",this.__onError(this.__promise.resolve,this.__promise.reject,!0)),this.__opts.body&&this.__request.write(this.__opts.body),this.__request.end()}},{key:"__resolvePending",value:function(){if(this.__promise){var e=this.__promise.resolve;return this.__promise=null,e(!0)}}},{key:"__downloadRequest",value:function(e,t){var n=this;return this.__protocol.request(this.__reqOptions,(function(r){if(n.__response=r,n.__isResumed||(n.__total=parseInt(r.headers["content-length"])||null,n.__resetStats()),n.__isRequireRedirect(r)){var i=/^https?:\/\//.test(r.headers.location)?r.headers.location:new s.URL(r.headers.location,n.url).href;return n.__isRedirected=!0,n.__initProtocol(i),n.emit("redirected",i,n.url),n.__start()}if(200!==r.statusCode&&206!==r.statusCode){var o=Error("Response status was "+r.statusCode);return o.status=r.statusCode||0,o.body=r.body||"",n.__setState(n.__states.FAILED),n.emit("error",o),t(o)}(n.__opts.forceResume||r.headers.hasOwnProperty("accept-ranges")&&"none"!==r.headers["accept-ranges"])&&(n.__isResumable=!0),n.__startDownload(r,e,t)}))}},{key:"__startDownload",value:function(e,t,n){var i=this,s=e;if(this.__isResumed)this.__fileStream=o.createWriteStream(this.__filePath,{flags:"a"});else{var c=this.__getFileNameFromHeaders(e.headers);if(this.__filePath=this.__getFilePath(c),this.__fileName=this.__filePath.split(a.sep).pop(),o.existsSync(this.__filePath)){var u=this.__getFilesizeInBytes(this.__filePath),l=this.__total?this.__total:0;if("object"===r(this.__opts.override)&&this.__opts.override.skip&&(this.__opts.override.skipSmaller||u>=l))return this.emit("skip",{totalSize:this.__total,fileName:this.__fileName,filePath:this.__filePath,downloadedSize:u}),this.__setState(this.__states.SKIPPED),t(!0)}this.__fileStream=o.createWriteStream(this.__filePath,{})}this.emit("download",{fileName:this.__fileName,filePath:this.__filePath,totalSize:this.__total,isResumed:this.__isResumed,downloadedSize:this.__downloaded}),this.__retryCount=0,this.__isResumed=!1,this.__isRedirected=!1,this.__setState(this.__states.DOWNLOADING),this.__statsEstimate.time=new Date,this.__statsEstimate.throttleTime=new Date,s.on("data",(function(e){return i.__calculateStats(e.length)})),this.__pipes.forEach((function(e){s.pipe(e.stream,e.options),s=e.stream})),s.pipe(this.__fileStream),s.on("error",this.__onError(t,n)),this.__fileStream.on("finish",this.__onFinished(t,n)),this.__fileStream.on("error",this.__onError(t,n))}},{key:"__hasFinished",value:function(){return!this.__isAborted&&-1===[this.__states.PAUSED,this.__states.STOPPED,this.__states.RETRY,this.__states.FAILED,this.__states.RESUMED].indexOf(this.state)}},{key:"__isRequireRedirect",value:function(e){return e.statusCode>300&&400>e.statusCode&&e.headers.hasOwnProperty("location")&&e.headers.location}},{key:"__onFinished",value:function(e,t){var n=this;return function(){n.__fileStream.close((function(r){if(r)return t(r);if(n.__hasFinished()){var i=!!n.__total&&n.__downloaded!==n.__total;if(i&&n.__isResumable&&n.__opts.resumeOnIncomplete&&n.__opts.resumeOnIncompleteMaxRetry>=n.__resumeRetryCount)return n.__resumeRetryCount++,n.emit("warning",Error("uncomplete download, retrying")),n.resume();n.__setState(n.__states.FINISHED),n.__pipes=[],n.emit("end",{fileName:n.__fileName,filePath:n.__filePath,totalSize:n.__total,incomplete:i,onDiskSize:n.__getFilesizeInBytes(n.__filePath),downloadedSize:n.__downloaded})}return e(n.__downloaded===n.__total)}))}}},{key:"__closeFileStream",value:function(){var e=this;return this.__fileStream?new Promise((function(t,n){e.__fileStream.close((function(e){return e?n(e):t(!0)}))})):Promise.resolve(!0)}},{key:"__onError",value:function(e,t){var n=this,r=!(2>=arguments.length||void 0===arguments[2])&&arguments[2];return function(e){return n.__pipes=[],r&&n.__requestAbort(),n.state===n.__states.STOPPED||n.state===n.__states.FAILED?void 0:n.__opts.retry?n.__retry(e).catch((function(r){n.__removeFile().finally((function(){n.__setState(n.__states.FAILED),n.emit("error",r||e),t(r||e)}))})):n.__removeFile().finally((function(){n.__setState(n.__states.FAILED),n.emit("error",e),t(e)}))}}},{key:"__retry",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!this.__opts.retry||"object"!==r(this.__opts.retry))return Promise.reject(t||Error("wrong retry options"));var n=this.__opts.retry,i=n.delay,o=void 0===i?0:i,s=n.maxRetries;return(void 0===s?999:s)>this.__retryCount?(this.__retryCount++,this.__setState(this.__states.RETRY),this.emit("retry",this.__retryCount,this.__opts.retry,t),this.__response&&(this.__response.unpipe(),this.__pipes.forEach((function(e){return e.stream.unpipe()}))),this.__fileStream&&this.__fileStream.removeAllListeners(),this.__requestAbort(),this.__closeFileStream().then((function(){return new Promise((function(t){return e.__retryTimeout=setTimeout((function(){return t(e.__downloaded>0?e.resume():e.__start())}),o)}))}))):Promise.reject(t||Error("reached the maximum retries"))}},{key:"__onTimeout",value:function(e,t){var n=this;return function(){return n.__requestAbort(),n.__opts.retry?n.__retry(Error("timeout")).catch((function(e){n.__removeFile().finally((function(){n.__setState(n.__states.FAILED),e?t(e):(n.emit("timeout"),t(Error("timeout")))}))})):n.__removeFile().finally((function(){n.__setState(n.__states.FAILED),n.emit("timeout"),t(Error("timeout"))}))}}},{key:"__resetStats",value:function(){this.__retryCount=0,this.__downloaded=0,this.__progress=0,this.__resumeRetryCount=0,this.__statsEstimate={time:0,bytes:0,prevBytes:0,throttleTime:0}}},{key:"__getFileNameFromHeaders",value:function(e,t){var n="",r=e.hasOwnProperty("content-disposition"),i=r?e["content-disposition"].match(/.*filename\*=.*?'.*?'([^"].+?[^"])(?:(?:;)|$)/i):null,o=!r||i?null:e["content-disposition"].match(/.*filename="(.*?)";?/i),c=!r||i||o?null:e["content-disposition"].match(/.*filename=([^"].+?[^"])(?:(?:;)|$)/i);return r&&(i||o||c)?(n=(n=e["content-disposition"]).trim(),i?n=i[1]:o?n=o[1]:c&&(n=c[1]),n=n.replace(/[/\\]/g,"")):n=a.basename(new s.URL(this.requestURL).pathname).length>0?a.basename(new s.URL(this.requestURL).pathname):new s.URL(this.requestURL).hostname+".html",this.__opts.fileName?this.__getFileNameFromOpts(n,t):n.replace(/\.*$/,"")}},{key:"__getFilePath",value:function(e){var t=a.join(this.__destFolder,e),n=t;return this.__opts.override||this.state===this.__states.RESUMED||t!==(n=this.__uniqFileNameSync(n))&&this.emit("renamed",{path:n,fileName:n.split(a.sep).pop(),prevPath:t,prevFileName:t.split(a.sep).pop()}),n}},{key:"__getFileNameFromOpts",value:function(e,t){if(!this.__opts.fileName)return e;if("string"==typeof this.__opts.fileName)return this.__opts.fileName;if("function"==typeof this.__opts.fileName){var n=a.join(this.__destFolder,e);return t&&t.headers||this.__response&&this.__response.headers?this.__opts.fileName(e,n,(t||this.__response).headers["content-type"]):this.__opts.fileName(e,n)}if("object"===r(this.__opts.fileName)){var i=this.__opts.fileName,o=i.name,s=!!i.hasOwnProperty("ext")&&i.ext;if("string"==typeof s)return o+"."+s;if("boolean"==typeof s){if(s)return o;var c=e.includes(".")?e.split(".").pop():"";return""===c?o:o+"."+c}}return e}},{key:"__calculateStats",value:function(e){var t=new Date,n=t-this.__statsEstimate.time,r=t-this.__statsEstimate.throttleTime,i=this.__total||0;e&&(this.__downloaded+=e,this.__progress=0===i?0:this.__downloaded/i*100,(this.__downloaded===i||n>1e3)&&(this.__statsEstimate.time=t,this.__statsEstimate.bytes=this.__downloaded-this.__statsEstimate.prevBytes,this.__statsEstimate.prevBytes=this.__downloaded),(this.__downloaded===i||r>this.__opts.progressThrottle)&&(this.__statsEstimate.throttleTime=t,this.emit("progress.throttled",this.getStats())),this.emit("progress",this.getStats()))}},{key:"__setState",value:function(e){this.state=e,this.emit("stateChanged",this.state)}},{key:"__getReqOptions",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=new s.URL(t),i={protocol:r.protocol,host:r.hostname,port:r.port,path:r.pathname+r.search,method:e};return n&&(i.headers=n),i}},{key:"__getFilesizeInBytes",value:function(e){try{return o.statSync(e,{throwIfNoEntry:!1}).size||0}catch(t){this.emit("warning",t)}return 0}},{key:"__validate",value:function(e,t){if("string"!=typeof e)throw Error("URL should be an string");if(""===e.trim())throw Error("URL couldn't be empty");if("string"!=typeof t)throw Error("Destination Folder should be an string");if(""===t.trim())throw Error("Destination Folder couldn't be empty");if(!o.existsSync(t))throw Error("Destination Folder must exist");if(!o.statSync(t).isDirectory())throw Error("Destination Folder must be a directory");try{o.accessSync(t,o.constants.W_OK)}catch(n){throw Error("Destination Folder must be writable")}return!0}},{key:"__initProtocol",value:function(e){var t=this.__getReqOptions(this.__opts.method,e,this.__headers);this.requestURL=e,e.indexOf("https://")>-1?(this.__protocol=u,t.agent=new u.Agent({keepAlive:!1}),this.__reqOptions=Object.assign({},t,this.__opts.httpsRequestOptions)):(this.__protocol=c,t.agent=new c.Agent({keepAlive:!1}),this.__reqOptions=Object.assign({},t,this.__opts.httpRequestOptions))}},{key:"__uniqFileNameSync",value:function(e){if("string"!=typeof e||""===e)return e;try{o.accessSync(e,o.F_OK);var t=e.match(/(.*)(\([0-9]+\))(\..*)$/),n=t?t[1].trim():e,r=t?parseInt(t[2].replace(/\(|\)/,"")):0,i=e.split(".").pop();return i!==e&&i.length>0?n=n.replace(i="."+i,""):i="",this.__uniqFileNameSync(n+" ("+ ++r+")"+i)}catch(s){return e}}},{key:"__removeFile",value:function(){var e=this;return new Promise((function(t){return e.__fileStream?void e.__fileStream.close((function(n){return n&&e.emit("warning",n),e.__opts.removeOnFail?o.access(e.__filePath,(function(r){return r?t():void o.unlink(e.__filePath,(function(r){r&&e.emit("warning",n),t()}))})):void t()})):t()}))}},{key:"__requestAbort",value:function(){this.__isAborted=!0,this.__retryTimeout&&(clearTimeout(this.__retryTimeout),this.__retryTimeout=null),this.__response&&this.__response.destroy(),this.__request&&(this.__request.destroy?this.__request.destroy():this.__request.abort())}},{key:"__emitStop",value:function(){this.__resolvePending(),this.__setState(this.__states.STOPPED),this.emit("stop")}}]),t}(l.EventEmitter)}(Pd)),Pd);const Nd="/etc/apt/trusted.gpg.d",Cd="keyserver.ubuntu.com",$d="Dpkg::Lock::Timeout=300";let Ad=!1;const Ld=_p((function(e=lt()){te(e,["update","-o",$d],{...fu,env:ft(e)}),Ad=!0}));var kd,Dd;(Dd=kd||(kd={}))[Dd.NameDashVersion=0]="NameDashVersion",Dd[Dd.NameEqualsVersion=1]="NameEqualsVersion",Dd[Dd.Name=2]="Name",Dd[Dd.None=3]="None";const jd=_p((async function(e){Ld(e);const t=await yt([{name:"ca-certificates"},{name:"gnupg"},{name:"apt-utils"}],e);0!==t.length&&te(e,["install","-y","--fix-broken","-o",$d,...t],{...fu,env:ft(e)})}),{promise:!0}),Ud=_p((function(e){const{stdout:t}=te("add-apt-repository",["--help"],{...fu,env:ft(e),stdio:"pipe"});return t.includes("--no-update")})),Fd=["E: Could not get lock","dpkg: error processing archive","dpkg: error: dpkg status database is locked by another process"];let Md,Gd,Bd,qd=!1;var Hd=k();const Vd={rcPath:Ae("~/.cpprc"),guard:"cpp"};let zd,Wd,Xd=!1,Yd=!1;const Kd=/Version\s*:\s*(.*)/g;let Jd=!1;const Qd=r(S()),Zd=r(h()),eh=r(I()),th=/v?(\d\S*)/;var nh,rh,ih,oh,sh,ah,ch,uh,lh,fh,ph,dh,hh,mh,yh,vh,wh,gh,Eh,_h,bh,Sh,Oh,Rh,Ih,xh,Ph,Th,Nh,Ch,$h,Ah,Lh,kh,Dh,jh,Uh,Fh,Mh,Gh,Bh,qh,Hh,Vh,zh,Wh,Xh,Yh,Kh,Jh,Qh,Zh,em,tm,nm,rm,im,om,sm,am,cm,um,lm,fm,pm={},dm={},hm={},mm={},ym=En();let vm,wm=!1;var gm,Em,_m,bm,Sm,Om={},Rm={exports:{}},Im={exports:{}},xm=Rm.exports,Pm={},Tm=function(){function e(e,t){const n=[];t=t||w.arch();const r=g.join(s(),e);if(y.existsSync(r)){const e=y.readdirSync(r);for(const o of e)if(i(o)){const e=g.join(r,o,t||"");y.existsSync(e)&&y.existsSync(e+".complete")&&n.push(o)}}return n}function t(e){return p(this,void 0,void 0,(function*(){return e||(e=g.join(a(),m.randomUUID())),yield h.mkdirP(e),e}))}function n(e,t,n){return p(this,void 0,void 0,(function*(){const r=g.join(s(),e,_.clean(t)||t,n||"");d.debug("destination "+r);const i=r+".complete";return yield h.rmRF(r),yield h.rmRF(i),yield h.mkdirP(r),r}))}function r(e,t,n){const r=g.join(s(),e,_.clean(t)||t,n||"");y.writeFileSync(r+".complete",""),d.debug("finished caching tool")}function i(e){const t=_.clean(e)||"";d.debug("isExplicit: "+t);const n=null!=_.valid(t);return d.debug("explicit? "+n),n}function o(e,t){let n="";d.debug(`evaluating ${e.length} versions`);for(let r=(e=e.sort(((e,t)=>_.gt(e,t)?1:-1))).length-1;r>=0;r--){const i=e[r];if(_.satisfies(i,t)){n=i;break}}return d.debug(n?"matched: "+n:"match not found"),n}function s(){const e=process.env.RUNNER_TOOL_CACHE||"";return(0,O.ok)(e,"Expected RUNNER_TOOL_CACHE to be defined"),e}function a(){const e=process.env.RUNNER_TEMP||"";return(0,O.ok)(e,"Expected RUNNER_TEMP to be defined"),e}function c(e,t){const n=Vo[e];return void 0!==n?n:t}if(bm)return Om;bm=1;var u=Om&&Om.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),l=Om&&Om.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),f=Om&&Om.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&{}.hasOwnProperty.call(e,n)&&u(t,e,n);return l(t,e),t},p=Om&&Om.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(Om,"__esModule",{value:!0}),Om.evaluateVersions=Om.isExplicitVersion=Om.findFromManifest=Om.getManifestFromRepo=Om.findAllVersions=Om.find=Om.cacheFile=Om.cacheDir=Om.extractZip=Om.extractXar=Om.extractTar=Om.extract7z=Om.downloadTool=Om.HTTPError=void 0;const d=f(D()),h=f(L()),m=f(as),y=f(Mr),v=f((Em||(Em=1,function(e,t){var n=xm&&xm.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=xm&&xm.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=xm&&xm.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t},o=xm&&xm.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t._readLinuxVersionFile=t._getOsVersion=t._findMatch=void 0;const s=i(On()),a=D(),c=Ur,u=Xr,l=Mr;t._findMatch=function(t,n,r,i){return o(this,void 0,void 0,(function*(){const o=c.platform();let u,l,f;for(const c of r){const r=c.version;if((0,a.debug)(`check ${r} satisfies ${t}`),s.satisfies(r,t)&&(!n||c.stable===n)&&(f=c.files.find((t=>{(0,a.debug)(`${t.arch}===${i} && ${t.platform}===${o}`);let n=t.arch===i&&t.platform===o;if(n&&t.platform_version){const r=e.exports._getOsVersion();n=r===t.platform_version||s.satisfies(r,t.platform_version)}return n})),f)){(0,a.debug)("matched "+c.version),l=c;break}}return l&&f&&(u=Object.assign({},l),u.files=[f]),u}))},t._getOsVersion=function(){const t=c.platform();let n="";if("darwin"===t)n=""+u.execSync("sw_vers -productVersion");else if("linux"===t){const t=e.exports._readLinuxVersionFile();if(t){const e=t.split("\n");for(const t of e){const e=t.split("=");if(2===e.length&&("VERSION_ID"===e[0].trim()||"DISTRIB_RELEASE"===e[0].trim())){n=e[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return n},t._readLinuxVersionFile=function(){const e="/etc/lsb-release",t="/etc/os-release";let n="";return l.existsSync(e)?n=""+l.readFileSync(e):l.existsSync(t)&&(n=""+l.readFileSync(t)),n}}(Rm,Rm.exports)),Rm.exports)),w=f(Ur),g=f(Fr),E=f(Ps),_=f(On()),b=f(Zr),S=f(zr),O=Yr,R=k(),I=function(){if(_m)return Pm;_m=1;var e=Pm&&Pm.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=Pm&&Pm.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=Pm&&Pm.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var i in n)"default"!==i&&{}.hasOwnProperty.call(n,i)&&e(r,n,i);return t(r,n),r},r=Pm&&Pm.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(Pm,"__esModule",{value:!0}),Pm.RetryHelper=void 0;const i=n(D());return Pm.RetryHelper=class{constructor(e,t,n){if(1>e)throw Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(t),this.maxSeconds=Math.floor(n),this.minSeconds>this.maxSeconds)throw Error("min seconds should be less than or equal to max seconds")}execute(e,t){return r(this,void 0,void 0,(function*(){let n=1;for(;this.maxAttempts>n;){try{return yield e()}catch(r){if(t&&!t(r))throw r;i.info(r.message)}const o=this.getSleepAmount();i.info(`Waiting ${o} seconds before trying again`),yield this.sleep(o),n++}return yield e()}))}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return r(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,1e3*e)))}))}},Pm}();class x extends Error{constructor(e){super("Unexpected HTTP response: "+e),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}}Om.HTTPError=x;const P="win32"===process.platform,T="darwin"===process.platform;return Om.downloadTool=function(e,t,n,r){return p(this,void 0,void 0,(function*(){t=t||g.join(a(),m.randomUUID()),yield h.mkdirP(g.dirname(t)),d.debug("Downloading "+e),d.debug("Destination "+t);const i=c("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=c("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),s=new I.RetryHelper(3,i,o);return yield s.execute((()=>p(this,void 0,void 0,(function*(){return yield function(e,t,n,r){return p(this,void 0,void 0,(function*(){if(y.existsSync(t))throw Error(`Destination file path ${t} already exists`);const i=new E.HttpClient("actions/tool-cache",[],{allowRetries:!1});n&&(d.debug("set auth"),void 0===r&&(r={}),r.authorization=n);const o=yield i.get(e,r);if(200!==o.message.statusCode){const t=new x(o.message.statusCode);throw d.debug(`Failed to download from "${e}". Code(${o.message.statusCode}) Message(${o.message.statusMessage})`),t}const s=S.promisify(b.pipeline),a=c("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>o.message))();let u=!1;try{return yield s(a,y.createWriteStream(t)),d.debug("download complete"),u=!0,t}finally{if(!u){d.debug("download failed");try{yield h.rmRF(t)}catch(l){d.debug(`Failed to delete '${t}'. ${l.message}`)}}}}))}(e,t||"",n,r)}))),(e=>!(e instanceof x&&e.httpStatusCode&&500>e.httpStatusCode&&408!==e.httpStatusCode&&429!==e.httpStatusCode)))}))},Om.extract7z=function(e,n,r){return p(this,void 0,void 0,(function*(){(0,O.ok)(P,"extract7z() not supported on current OS"),(0,O.ok)(e,'parameter "file" is required'),n=yield t(n);const i=process.cwd();if(process.chdir(n),r)try{const t=["x",d.isDebug()?"-bb1":"-bb0","-bd","-sccUTF-8",e],n={silent:!0};yield(0,R.exec)(`"${r}"`,t,n)}finally{process.chdir(i)}else{const t=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${g.join(__dirname,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"")}' -Source '${e.replace(/'/g,"''").replace(/"|\n|\r/g,"")}' -Target '${n.replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`],r={silent:!0};try{const e=yield h.which("powershell",!0);yield(0,R.exec)(`"${e}"`,t,r)}finally{process.chdir(i)}}return n}))},Om.extractTar=function(e,n,r="xz"){return p(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'file' is required");n=yield t(n),d.debug("Checking tar --version");let i="";yield(0,R.exec)("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:e=>i+=""+e,stderr:e=>i+=""+e}}),d.debug(i.trim());const o=i.toUpperCase().includes("GNU TAR");let s;s=r instanceof Array?r:[r],d.isDebug()&&!r.includes("v")&&s.push("-v");let a=n,c=e;return P&&o&&(s.push("--force-local"),a=n.replace(/\\/g,"/"),c=e.replace(/\\/g,"/")),o&&(s.push("--warning=no-unknown-keyword"),s.push("--overwrite")),s.push("-C",a,"-f",c),yield(0,R.exec)("tar",s),n}))},Om.extractXar=function(e,n,r=[]){return p(this,void 0,void 0,(function*(){let i;(0,O.ok)(T,"extractXar() not supported on current OS"),(0,O.ok)(e,'parameter "file" is required'),n=yield t(n),i=r instanceof Array?r:[r],i.push("-x","-C",n,"-f",e),d.isDebug()&&i.push("-v");const o=yield h.which("xar",!0);var s;return yield(0,R.exec)(`"${o}"`,(s=i,Array.from(new Set(s)))),n}))},Om.extractZip=function(e,n){return p(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'file' is required");return n=yield t(n),P?yield function(e,t){return p(this,void 0,void 0,(function*(){const n=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),r=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=yield h.which("pwsh",!1);if(i){const e=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",["$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;",`try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${n}', '${r}', $true) }`,`catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${n}' -DestinationPath '${r}' -Force } else { throw $_ } } ;`].join(" ")];d.debug("Using pwsh at path: "+i),yield(0,R.exec)(`"${i}"`,e)}else{const e=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",["$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ;",`if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${n}' -DestinationPath '${r}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${n}', '${r}', $true) }`].join(" ")],t=yield h.which("powershell",!0);d.debug("Using powershell at path: "+t),yield(0,R.exec)(`"${t}"`,e)}}))}(e,n):yield function(e,t){return p(this,void 0,void 0,(function*(){const n=yield h.which("unzip",!0),r=[e];d.isDebug()||r.unshift("-q"),r.unshift("-o"),yield(0,R.exec)(`"${n}"`,r,{cwd:t})}))}(e,n),n}))},Om.cacheDir=function(e,t,i,o){return p(this,void 0,void 0,(function*(){if(i=_.clean(i)||i,o=o||w.arch(),d.debug(`Caching tool ${t} ${i} ${o}`),d.debug("source dir: "+e),!y.statSync(e).isDirectory())throw Error("sourceDir is not a directory");const s=yield n(t,i,o);for(const t of y.readdirSync(e)){const n=g.join(e,t);yield h.cp(n,s,{recursive:!0})}return r(t,i,o),s}))},Om.cacheFile=function(e,t,i,o,s){return p(this,void 0,void 0,(function*(){if(o=_.clean(o)||o,s=s||w.arch(),d.debug(`Caching tool ${i} ${o} ${s}`),d.debug("source file: "+e),!y.statSync(e).isFile())throw Error("sourceFile is not a file");const a=yield n(i,o,s),c=g.join(a,t);return d.debug("destination file "+c),yield h.cp(e,c),r(i,o,s),a}))},Om.find=function(t,n,r){if(!t)throw Error("toolName parameter is required");if(!n)throw Error("versionSpec parameter is required");r=r||w.arch(),i(n)||(n=o(e(t,r),n));let a="";if(n){n=_.clean(n)||"";const e=g.join(s(),t,n,r);d.debug("checking cache: "+e),y.existsSync(e)&&y.existsSync(e+".complete")?(d.debug(`Found tool in cache ${t} ${n} ${r}`),a=e):d.debug("not found")}return a},Om.findAllVersions=e,Om.getManifestFromRepo=function(e,t,n,r="master"){return p(this,void 0,void 0,(function*(){let i=[];const o=`https://api.github.com/repos/${e}/${t}/git/trees/${r}`,s=new E.HttpClient("tool-cache"),a={};n&&(d.debug("set auth"),a.authorization=n);const c=yield s.getJson(o,a);if(!c.result)return i;let u="";for(const e of c.result.tree)if("versions-manifest.json"===e.path){u=e.url;break}a.accept="application/vnd.github.VERSION.raw";let l=yield(yield s.get(u,a)).readBody();if(l){l=l.replace(/^\uFEFF/,"");try{i=JSON.parse(l)}catch(f){d.debug("Invalid json")}}return i}))},Om.findFromManifest=function(e,t,n,r=w.arch()){return p(this,void 0,void 0,(function*(){return yield v._findMatch(e,t,n,r)}))},Om.isExplicitVersion=i,Om.evaluateVersions=o,Om}(),Nm={};const Cm=r(function(){function e(e,t){const n=e+Math.random()*t*(Math.random()>.5?1:-1);return Math.max(0,n)}function t(r,i){if(!r||!i)throw Error("retry-as-promised must be passed a callback and a options set");const o={$current:"$current"in(i="number"==typeof i?{max:i}:i)?i.$current:1,max:i.max,timeout:i.timeout||void 0,match:i.match?Array.isArray(i.match)?i.match:[i.match]:[],backoffBase:void 0===i.backoffBase?100:i.backoffBase,backoffExponent:i.backoffExponent||1.1,backoffJitter:i.backoffJitter||0,report:i.report,name:i.name||r.name||"unknown"};return o.match&&!Array.isArray(o.match)&&(o.match=[o.match]),o.report&&o.report("Trying "+o.name+" #"+o.$current+" at "+(new Date).toLocaleTimeString(),o),new Promise((function(i,s){let a,c,u;o.timeout&&(a=setTimeout((function(){c&&clearTimeout(c),s(new n(o.name+" timed out",u))}),o.timeout)),Promise.resolve(r({current:o.$current})).then(i).then((function(){a&&clearTimeout(a),c&&clearTimeout(c)})).catch((function(n){a&&clearTimeout(a),c&&clearTimeout(c),u=n,o.report&&o.report(n&&""+n||n,o,n);var l=o.max>o.$current;if(!l)return s(n);if(l=0===o.match.length||o.match.some((function(e){return function(e,t){if("function"==typeof e)try{if(t instanceof e)return!0}catch(n){return!!e(t)}return e===""+t||e===t.message||e instanceof RegExp&&(e.test(t.message)||e.test(""+t))}(e,n)})),!l)return s(n);var f=o.backoffBase*Math.pow(o.backoffExponent,o.$current-1);const p=o.backoffJitter;void 0!==p&&(f=e(f,p)),o.$current++,o.report&&o.report(`Retrying ${o.name} (${o.$current})`,o),f?(o.report&&o.report(`Delaying retry of ${o.name} by ${f}`,o),c=setTimeout((function(){t(r,o).then(i).catch(s)}),f)):t(r,o).then(i).catch(s)}))}))}if(Sm)return Nm;Sm=1,Object.defineProperty(Nm,"__esModule",{value:!0}),Nm.retryAsPromised=Nm.applyJitter=Nm.TimeoutError=void 0;class n extends Error{constructor(e,t){super(e),this.name="TimeoutError",this.previous=t}}return Nm.TimeoutError=n,Nm.applyJitter=e,Nm.retryAsPromised=t,Nm.default=t,Nm}()),{GITHUB_ACTIONS:$m}=Zo;var Am=(e=>(e[e.Tar=0]="Tar",e[e.TarGz=1]="TarGz",e[e.TarXz=2]="TarXz",e[e.Zip=3]="Zip",e[e.SevenZip=4]="SevenZip",e))(Am||{});let Lm;const{GITHUB_ACTIONS:km}=Zo,Dm="string"==typeof __dirname?__dirname:Fr.dirname(Qr.fileURLToPath("undefined"==typeof document?require("url").pathToFileURL(__filename).href:ni&&"SCRIPT"===ni.tagName.toUpperCase()&&ni.src||new URL("setup-cpp.js",document.baseURI).href)),{GITHUB_ACTIONS:jm}=Zo,Um="string"==typeof __dirname?__dirname:Fr.dirname(Qr.fileURLToPath("undefined"==typeof document?require("url").pathToFileURL(__filename).href:ni&&"SCRIPT"===ni.tagName.toUpperCase()&&ni.src||new URL("setup-cpp.js",document.baseURI).href)),Fm=e=>{if(e)if("object"==typeof e)e={mode:511,...e};else if("number"==typeof e)e={mode:e};else{if("string"!=typeof e)throw new TypeError("invalid options argument");e={mode:parseInt(e,8)}}else e={mode:511};const t=e,n=e.fs||{};return e.mkdir=e.mkdir||n.mkdir||Mr.mkdir,e.mkdirAsync=e.mkdirAsync?e.mkdirAsync:async(e,n)=>new Promise(((r,i)=>t.mkdir(e,n,((e,t)=>e?i(e):r(t))))),e.stat=e.stat||n.stat||Mr.stat,e.statAsync=e.statAsync?e.statAsync:async e=>new Promise(((n,r)=>t.stat(e,((e,t)=>e?r(e):n(t))))),e.statSync=e.statSync||n.statSync||Mr.statSync,e.mkdirSync=e.mkdirSync||n.mkdirSync||Mr.mkdirSync,t},Mm=(e,t,n)=>{const r=Fr.dirname(e),i={...Fm(t),recursive:!1};if(r===e)try{return i.mkdirSync(e,i)}catch(o){if(o&&"EISDIR"!==o.code)throw o;return}try{return i.mkdirSync(e,i),n||e}catch(o){const t=o;if(t&&"ENOENT"===t.code)return Mm(e,i,Mm(r,i,n));if(t&&"EEXIST"!==t.code&&t&&"EROFS"!==t.code)throw o;try{if(!i.statSync(e).isDirectory())throw o}catch(s){throw o}}},Gm=Object.assign((async(e,t,n)=>{const r=Fm(t);r.recursive=!1;const i=Fr.dirname(e);return i===e?r.mkdirAsync(e,r).catch((e=>{if(e&&"EISDIR"!==e.code)throw e})):r.mkdirAsync(e,r).then((()=>n||e),(async t=>{const o=t;if(o&&"ENOENT"===o.code)return Gm(i,r).then((t=>Gm(e,r,t)));if(o&&"EEXIST"!==o.code&&"EROFS"!==o.code)throw t;return r.statAsync(e).then((e=>{if(e.isDirectory())return n;throw t}),(()=>{throw t}))}))}),{sync:Mm}),Bm=async(e,t,n)=>{if(n!==t)return e.statAsync(t).then((e=>e.isDirectory()?n:void 0),(n=>n&&"ENOENT"===n.code?Bm(e,Fr.dirname(t),t):void 0))},qm=(e,t,n)=>{if(n!==t)try{return e.statSync(t).isDirectory()?n:void 0}catch(r){return r&&"ENOENT"===r.code?qm(e,Fr.dirname(t),t):void 0}},Hm=(e,t)=>{const n=Fm(t);if(n.recursive=!0,Fr.dirname(e)===e)return n.mkdirSync(e,n);const r=qm(n,e);try{return n.mkdirSync(e,n),r}catch(i){if(i&&"ENOENT"===i.code)return Mm(e,n);throw i}},Vm=Object.assign((async(e,t)=>{const n={...Fm(t),recursive:!0};return Fr.dirname(e)===e?await n.mkdirAsync(e,n):Bm(n,e).then((t=>n.mkdirAsync(e,n).then((e=>t||e)).catch((t=>{if(t&&"ENOENT"===t.code)return Gm(e,n);throw t}))))}),{sync:Hm}),zm=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,Wm=e=>{if(/\0/.test(e))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:e,code:"ERR_INVALID_ARG_VALUE"});if(e=Fr.resolve(e),"win32"===zm){const t=/[*|"<>?:]/,{root:n}=Fr.parse(e);if(t.test(e.substring(n.length)))throw Object.assign(Error("Illegal characters in path."),{path:e,code:"EINVAL"})}return e},Xm=(process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version).replace(/^v/,"").split("."),Ym=+Xm[0]>10||10===+Xm[0]&&+Xm[1]>=12,Km=Ym?e=>Fm(e).mkdirSync===Mr.mkdirSync:()=>!1,Jm=Object.assign(Ym?e=>Fm(e).mkdir===Mr.mkdir:()=>!1,{sync:Km}),Qm=(e,t)=>{e=Wm(e);const n=Fm(t);return Km(n)?Hm(e,n):Mm(e,n)},Zm=Object.assign((async(e,t)=>{e=Wm(e);const n=Fm(t);return Jm(n)?Vm(e,n):Gm(e,n)}),{mkdirpSync:Qm,mkdirpNative:Vm,mkdirpNativeSync:Hm,mkdirpManual:Gm,mkdirpManualSync:Mm,sync:Qm,native:Vm,nativeSync:Hm,manual:Gm,manualSync:Mm,useNative:Jm,useNativeSync:Km}),ey=_p((function(){const e="string"==typeof __dirname?__dirname:Fr.dirname(Qr.fileURLToPath("undefined"==typeof document?require("url").pathToFileURL(__filename).href:ni&&"SCRIPT"===ni.tagName.toUpperCase()&&ni.src||new URL("setup-cpp.js",document.baseURI).href)),t=Fr.join(e,"versions.json");return JSON.parse(Mr.readFileSync(t,"utf-8"))})),{GITHUB_ACTIONS:ty}=Zo;var ny,ry={},iy=function(){if(ny)return ry;ny=1,Object.defineProperty(ry,"__esModule",{value:!0}),ry.getUbuntuVersion=void 0;const e=Xr;return ry.getUbuntuVersion=async function(){if("linux"!==process.platform)return[];const t=await(n="lsb_release",r=["-a"],new Promise(((t,i)=>{e.execFile(n,r,{encoding:"utf8",shell:!1},((e,o,s)=>{if(e)return"errno"in e&&"ENOENT"===e.code?void t(null):void i(Error(`Could not execute \`${n} ${r.join(" ")}\`: ${e} (stderr=${s})`));t(o)}))})));var n,r;if(null===t)return[];const i=/^Distributor ID:\s*(.+)$/,o=/^Description:\s*Ubuntu\s+(\d+)\.(\d+)(?:\.(\d+))?/,s=/^Release:\s*(\d+)\.(\d+)(?:\.(\d+))?$/;let a=null,c=null,u=!1;for(const e of t.split("\n")){const t=e.match(i);if(null!==t){if("Ubuntu"!==t[1])return[];u=!0}const n=e.match(o);n&&(a=n);const r=e.match(s);if(r&&(c=r),u&&a&&c)break}if(!u)return[];for(const e of[a,c])if(e){const t=[e[1],e[2]];return e[3]&&t.push(e[3]),t.map((e=>parseInt(e,10)))}return[]},ry}();const oy=_p((async function(){try{if(ut()){try{null===au.sync("lsb_release",{nothrow:!0})&&await _t([{name:"lsb-release"}])}catch{return Kn()}const e=await iy.getUbuntuVersion();return 0===e.length?Kn():e}return null}catch(e){return U(""+e),null}}),{promise:!0}),sy=_p((async function(){let e=process.env.PIPX_HOME;if(void 0!==e)return e;const t=Ae("~/.local/pipx");if(await $e(t))return t;switch(process.platform){case"win32":e=Ae("~/AppData/Local/pipx");break;case"darwin":e=Ae("~/Library/Application Support/pipx");break;default:e=Ae("~/.local/share/pipx")}return await Zm(e),await Zm(Fr.join(e,"trash")),await Zm(Fr.join(e,"shared")),await Zm(Fr.join(e,"venv")),e}),{promise:!0}),ay=_p((async function(){if(void 0!==process.env.PIPX_BIN_DIR)return process.env.PIPX_BIN_DIR;const e=Ae("~/.local/bin");return await Ue(e,Vd),await Zm(e),e}),{promise:!0});let cy;const uy=_p((async function(e){const t=[];"linux"===process.platform?t.push("/home/runner/.local/bin/"):"darwin"===process.platform&&t.push("/usr/local/bin/");const n=await ly(e);return t.push(Fr.join(n,"Scripts"),Fr.join(n,"Scripts","bin"),Fr.join(n,"bin")),function(e){return[...new Set(e)]}(t)}),{promise:!0}),ly=_p((async function(e){return(await Hd.getExecOutput(e+' -c "import sys;print(sys.base_exec_prefix);"')).stdout.trim()}),{promise:!0}),fy=_p((async function(e){try{const t=await ly(e),n=await jt(e);return void 0===n?(U("Failed to get the version of "+e),!1):$e(Fr.join(t,"lib",`python${n.major}.${n.minor}`,"EXTERNALLY-MANAGED"))}catch(t){return U(`Failed to check if ${e} is externally managed: ${t}`),!1}}),{promise:!0}),py=_p((function(e){const t=Ft(e);return Number.parseInt(t.split(".")[0],10)})),dy=["x64","amd64","x86_64","win64","64","amd64_x86","amd64_arm64"],hy=["x86","i386","ia32","win32","32","x32"],my=["aarch64","arm64","woa64","arm"],yy=["armv7","armv7a"],vy=["powerpc64le","ppc64le"],wy=["sparc64"],gy=["sparcv9"],Ey=r(_()),_y=new Map([[24,["Sequoia","15"]],[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"]]]),by=_p((function(){if("darwin"!==process.platform)return[];const{version:e}=function(e){e=Number((e||Ur.release()).split(".")[0]);const[t,n]=_y.get(e)||["Unknown",""];return{name:t,version:n}}();return e.split(".").map((e=>Number.parseInt(e,10)))})),Sy="string"==typeof __dirname?__dirname:Fr.dirname(Qr.fileURLToPath("undefined"==typeof document?require("url").pathToFileURL(__filename).href:ni&&"SCRIPT"===ni.tagName.toUpperCase()&&ni.src||new URL("setup-cpp.js",document.baseURI).href)),Oy="string"==typeof __dirname?__dirname:Fr.dirname(Qr.fileURLToPath("undefined"==typeof document?require("url").pathToFileURL(__filename).href:ni&&"SCRIPT"===ni.tagName.toUpperCase()&&ni.src||new URL("setup-cpp.js",document.baseURI).href));var Ry,Iy={},xy=function(){function e(e){return Object.values(h).includes(e)?e:e in h?h[e]:e}function t(e){if(Object.keys(h).includes(e))return e;for(const[t,n]of Object.entries(h))if(n===e)return t;return e}function n(e,t){try{return(""+s.execSync(`vswhere -products * ${t} -prerelease -property installationPath`)).trim()+"\\"+e}catch(n){o.warning("vswhere failed: "+n)}return null}function r(r){const i=e(r);let s;if(i){const e=i.split(".")[0]+".9";s=`-version "${i},${e}"`}else s="-latest";let c=n("VC\\Auxiliary\\Build\\vcvarsall.bat",s);if(c&&a.existsSync(c))return o.info("Found with vswhere: "+c),c;o.info("Not found with vswhere");const u=r?[t(r)]:d;for(const e of f)for(const t of u)for(const n of p)if(c=`${e}\\Microsoft Visual Studio\\${t}\\${n}\\VC\\Auxiliary\\Build\\vcvarsall.bat`,o.info("Trying standard location: "+c),a.existsSync(c))return o.info("Found standard location: "+c),c;if(o.info("Not found in standard locations"),c=l+"\\Microsoft Visual C++ Build Tools\\vcbuildtools.bat",a.existsSync(c))return o.info("Found VS 2015: "+c),c;throw o.info("Not found in VS 2015 location: "+c),Error("Microsoft Visual Studio not found")}function i(e){return-1!=["PATH","INCLUDE","LIB","LIBPATH"].indexOf(e.toUpperCase())}if(Ry)return Iy;Ry=1;const o=D(),s=Xr,a=Mr,c=Fr,u=jr,l=u.env["ProgramFiles(x86)"],f=[u.env["ProgramFiles(x86)"],u.env.ProgramFiles],p=["Enterprise","Professional","Community","BuildTools"],d=["2022","2019","2017"],h={2022:"17.0",2019:"16.0",2017:"15.0",2015:"14.0",2013:"12.0"};Iy.vsversion_to_versionnumber=e,Iy.vsversion_to_year=t;const m=l+"\\Microsoft Visual Studio\\Installer";return Iy.findWithVswhere=n,Iy.findVcvarsall=r,Iy.setupMSVCDevCmd=function(e,t,n,a,l,f){if("win32"!=u.platform)return void o.info("This is not a Windows virtual environment, bye!");u.env.PATH+=c.delimiter+m;let p={win32:"x86",win64:"x64",x86_64:"x64","x86-64":"x64"};e.toLowerCase()in p&&(e=p[e.toLowerCase()]);var d=[e];a&&!0===JSON.parse(a)&&d.push("uwp"),t&&d.push(t),n&&d.push("-vcvars_ver="+n),l&&!0===JSON.parse(l)&&d.push("-vcvars_spectre_libs=spectre");const h=`"${r(f)}" ${d.join(" ")}`;o.debug("vcvars command-line: "+h);const y=(""+s.execSync(`set && cls && ${h} && cls && set`,{shell:"cmd"})).split("\f"),v=y[0].split("\r\n"),w=y[1].split("\r\n"),g=y[2].split("\r\n"),E=w.filter((e=>!(!e.match(/^\[ERROR.*\]/)||e.match(/Error in script usage. The correct usage is:$/))));if(E.length>0)throw Error("invalid parameters\r\n"+E.join("\r\n"));let _={};for(let r of v){const[e,t]=r.split("=");_[e]=t}o.startGroup("Environment variables");for(let r of g){if(!r.includes("="))continue;let[e,t]=r.split("=");t!==_[e]&&(o.info("Setting "+e),i(e)&&(t=t.split(";").filter((function(e,t,n){return n.indexOf(e)===t})).join(";")),o.exportVariable(e,t))}o.endGroup(),o.info("Configured Developer Command Prompt")},Iy}();const{GITHUB_ACTIONS:Py}=Zo,Ty="string"==typeof __dirname?__dirname:Fr.dirname(Qr.fileURLToPath("undefined"==typeof document?require("url").pathToFileURL(__filename).href:ni&&"SCRIPT"===ni.tagName.toUpperCase()&&ni.src||new URL("setup-cpp.js",document.baseURI).href));let Ny=!1;const Cy={llvm:Nr,clang:Nr,"clang++":Nr},$y={gcc:Un,"g++":Un},Ay={mingw:An},Ly={msvc:_r,cl:_r,msbuild:_r,visualstudio:_r},ky={appleclang:or,applellvm:or,"apple-clang":or,"apple-llvm":or},Dy={cmakelang:ur,"cmake-lint":ur,"cmake-format":ur,cmakelint:ur,cmakeformat:ur},jy=["llvm","clang","clang++","clang-tidy","clang-format","clangtidy","clangformat"],Uy={"apt-fast":bt,aptfast:bt,nala:async function(e){if(!ut())return;if("string"==typeof Gd)return{binDir:Gd};const t=au.sync("nala",{nothrow:!0});if(null!==t)return Gd=Fr.dirname(t),{binDir:Gd};await _t([{name:"python3-apt"}]),Gd="/usr/bin";try{const t=await vt({name:"nala",version:e});if(void 0!==t)return await _t([{name:t}]),{binDir:Gd}}catch(n){M("Failed to install nala: "+n)}try{const e=await vt({name:"nala-legacy"});if(void 0!==e)return await _t([{name:e}],!0),{binDir:Gd}}catch(n){M("Failed to install nala-legacy: "+n)}return await async function(){const e=new Td.DownloaderHelper("https://gitlab.com/volian/volian-archive/-/raw/1939afc3f80638dca2bbedde74bbd86731703cc8/install-nala.sh",Ur.tmpdir(),{fileName:"install-nala.sh"});e.on("error",(e=>{throw Error("Failed to download install-nala.sh: "+e)})),await e.start();const t=Fr.join(Ur.tmpdir(),"install-nala.sh"),r=await Mc(t,"utf8");await Kc(t,r.replace(/sudo/g,"")),await _t([{name:"wget"}]);try{te("bash",[t])}catch(n){j("Failed to install nala via installer: "+n),te("apt",["install","-y","-t","nala","nala"])}}(),{binDir:Gd}},git:dr,brew:St,choco:_n,python:Hn,powershell:Rr,pwsh:Rr,...Cy,...$y,...Ay,...Ly,...ky,...Dy,cmake:cr,ninja:yr,vcpkg:async function(e,t,n){const r=await au("vcpkg",{nothrow:!0});if(Ny&&null!==r)return{binDir:Fr.dirname(r)};if(await dr(""),"linux"===process.platform)if(Lt())await Promise.all([Dt("curl"),Dt("zip"),Dt("unzip"),Dt("tar"),Dt("pkg-config")]);else if(At())await kt([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"pkg-config"}]);else if(ut())await _t([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"pkg-config"}]);else if(await bd()){const e=[{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"pkgconf"}];my.includes(n)&&e.push({name:"build-base"}),await st(e)}return await $e(Fr.join(t,Je("bootstrap-vcpkg",".bat")))?F(`Vcpkg folder already exists at ${t}. Skipping the clone`):await z("git",["clone","https://github.com/microsoft/vcpkg"],{cwd:Fr.dirname(t),stdio:"inherit"}),""!==e&&"true"!==e&&(M("Checking out vcpkg version "+e),await z("git",["checkout",e],{cwd:t,stdio:"inherit"})),"linux"===process.platform&&my.includes(n)&&await De("VCPKG_FORCE_SYSTEM_BINARIES","1",Vd),await z(Je(Qe("bootstrap-vcpkg"),".bat"),{cwd:t,shell:!0,stdio:"inherit"}),await se(t),await Ue(t,Vd),Ny=!0,{binDir:t}},bazel:async function(e,t,n){switch(process.platform){case"win32":return bn("bazelisk",e);case"darwin":return Tt("bazelisk",e);case"linux":if(Lt())throw Error("installing bazel on Arch linux is not supported yet");if(At())return await kt([{name:"dnf-plugins-core"}]),await ne("dnf",["copr","enable","vbatts/bazel"]),kt([{name:"bazel4"}]);if(ut()){const t=await pt({fileName:"bazel-archive-keyring.gpg",keyUrl:"https://bazel.build/bazel-release.pub.gpg"});return await ne("bash",["-c",`echo "deb [arch=${sr(process.arch)} signed-by=${t}] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list`]),_t([{name:"bazel",version:e}],!0)}if(await bd())return st([{name:"bazel",version:e}],!0);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},conan:function(e,t,n){return Qn("conan",e)},meson:function(e,t,n){return Qn("meson",e)},gcovr:function(e,t,n){return!ut()||void 0!==e&&""!==e?Qn("gcovr",e):_t([{name:"gcovr",version:e}])},opencppcoverage:br,OpenCppCoverage:br,ccache:async function(e,t,n){switch(process.platform){case"win32":return bn("ccache",e);case"darwin":return Tt("ccache",e);case"linux":if(Lt())return Dt("ccache",e);if(At())return kt([{name:"ccache",version:e}]);if(ut())return _t([{name:"ccache",version:e}]);if(await bd())return st([{name:"ccache",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},sccache:async function(e,t,n){switch(process.platform){case"win32":return bn("sccache",e);case"linux":if(ut()){if((await iy.getUbuntuVersion())[0]>=24)return _t([{name:"sccache",version:e}])}else if(await bd())return st([{name:"sccache",version:e}]);return Tt("sccache",e);case"darwin":return Tt("sccache",e);default:throw Error("Unsupported platform")}},doxygen:async function(e,t,n){switch(process.platform){case"win32":{await Cm((()=>bn("doxygen.install",e)),{name:"doxygen.install",max:4,backoffBase:2e3,report:e=>M(e)});const t={binDir:await async function(){if("win32"===process.platform){for(const e of["C:/ProgramData/chocolatey/bin","C:/Program Files/doxygen/bin","C:/Program Files (x86)/doxygen"])if(await $e(Fr.join(e,"doxygen.exe")))return await Ue(e,Vd),e;throw Error("Failed to find doxygen binary")}throw Error("Unsupported platform")}()};return await lr(Gn("graphviz",void 0)),t}case"darwin":{const e=await Tt("doxygen",void 0,{formula:!0});return by()[0]>11&&await lr(Gn("graphviz",void 0)),e}case"linux":{const r=await async function(e,t,n){try{if(Lt())return await Dt("doxygen",e);if(At())return kt([{name:"doxygen",version:e}]);if(ut())return await _t([{name:"doxygen",version:e,fallBackToLatest:my.includes(n)}]);if(await bd())return st([{name:"doxygen"}]);throw Error("Unsupported linux distributions")}catch{try{const i=await Rn("doxygen",e,pr,t,n);if(ut())try{await _t([{name:"libclang-cpp-dev"}])}catch(r){M("Failed to download libclang-cpp-dev that might be needed for running doxygen. "+r)}return i}catch(r){return F(`Failed to download doxygen binary. ${r}. Falling back to installing the latest version from apt-get.`),_t([{name:"doxygen"}])}}}(e,t,n);return await lr(Gn("graphviz",void 0,await oy())),r}default:throw Error("Unsupported platform")}},graphviz:lr,cppcheck:async function(e,t,n){switch(process.platform){case"win32":return await bn("cppcheck",e),{binDir:await async function(){const e="C:/Program Files/Cppcheck";return await Ue(e,Vd),e}()};case"darwin":return Tt("cppcheck",e);case"linux":if(Lt())return Dt("cppcheck",e);if(At())return kt([{name:"ccache",version:e}]);if(ut())return _t([{name:"cppcheck",version:e}]);if(await bd())return st([{name:"cppcheck",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},cpplint:function(e,t,n){return Qn("cpplint",e,{pythonVersion:">=3.8.0"})},flawfinder:function(e,t,n){return Qn("flawfinder",e)},lizard:function(e,t,n){return Qn("lizard",e)},infer:function(e,t,n){return Rn("infer",e,hr,t,n)},"clang-tidy":Ar,clangtidy:Ar,"clang-format":$r,clangformat:$r,vcvarsall:Er,kcov:async function(e,t,n){if("linux"!==process.platform)return void M("Kcov is not supported on non-linux");const r=e.split("-");let i=function(e){return e.match(/^v/)?e:"v"+e}(r[0]);const o=r[1],s=function(e){return Number.parseInt(e.replace(/^v/,""),10)}(i);let a;return 38===s&&(i="v38"),"binary"!==o||39>s?(a=await Rn("kcov",i,wr,t,n),a):(a=await Rn("kcov",i,vr,t,n),Lt()?await Dt("binutils"):At()?await kt([{name:"binutils"}]):ut()&&await _t([{name:"libbinutils"}]),a)},make:async function(e,t,n){switch(process.platform){case"win32":return bn("make",e);case"darwin":{await Tt("make",e);const t=Fr.join(It(),"opt/make/libexec/gnubin");return await Ue(t,Vd),{binDir:t}}case"linux":if(Lt())return Dt("make",e);if(At())return kt([{name:"make",version:e}]);if(ut())return _t([{name:"make",version:e}]);if(await bd())return st([{name:"make",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},task:function(e,t,n){return Rn("task",e,xr,t,n)},sevenzip:Sn,"7zip":Sn,"7z":Sn,tar:In},Fy=Object.keys(Uy),My=["compiler","architecture","timeout",...Fy],Gy=36e5,By="string"==typeof __dirname?__dirname:Fr.dirname(Qr.fileURLToPath("undefined"==typeof document?require("url").pathToFileURL(__filename).href:ni&&"SCRIPT"===ni.tagName.toUpperCase()&&ni.src||new URL("setup-cpp.js",document.baseURI).href));var qy=(e=>(e[e.All=0]="All",e[e.ClangFormat=1]="ClangFormat",e[e.Core=2]="Core",e))(qy||{});const Hy="string"==typeof __dirname?__dirname:Fr.dirname(Qr.fileURLToPath("undefined"==typeof document?require("url").pathToFileURL(__filename).href:ni&&"SCRIPT"===ni.tagName.toUpperCase()&&ni.src||new URL("setup-cpp.js",document.baseURI).href)),Vy=_p((async function(e,t){if(ut())for(const i of["libtinfo5","libtinfo6"])try{await _t([{name:i}])}catch(n){try{if("libtinfo5"===i){M(`Failed to install ${i}\nManually installing the package`);const e=`libtinfo5_6.3-2ubuntu0.1_${sr(t)}.deb`,n="https://launchpad.net/ubuntu/+archive/primary/+files/"+e,r=new Td.DownloaderHelper(n,Ur.tmpdir(),{fileName:e});r.on("error",(async e=>{M(`Failed to download ${n}: ${e}`),await r.stop()})),await r.start(),te("dpkg",["-i",Fr.join(Ur.tmpdir(),e)])}}catch(r){M(`Failed to install ${i}. Ignoring`)}}else Lt()?await Dt("ncurses5-compat-libs",void 0,"yay"):At()&&await kt([{name:"ncurses-compat-libs"}])}),{promise:!0}),{GITHUB_ACTIONS:zy}=Zo,Wy="string"==typeof __dirname?__dirname:Fr.dirname(Qr.fileURLToPath("undefined"==typeof document?require("url").pathToFileURL(__filename).href:ni&&"SCRIPT"===ni.tagName.toUpperCase()&&ni.src||new URL("setup-cpp.js",document.baseURI).href)),Xy=_p((async function(e){"linux"===process.platform&&await Un(Gn("gcc",void 0,await oy()),"",e,40)}),{promise:!0}),Yy=/[.-]((?:\d{4}|\d+(?:\.\d+)*(?:-[\w.-]+)?(?:\+[\w.-]+)?)$)/;"true"!==process.env.SETUP_CPP_SKIP_MAIN&&async function(e){const t=Qo.GITHUB_ACTIONS?Promise.resolve():async function(){try{await Wo({pkg:Xo})}catch(e){U("Failed to check for updates: "+(e instanceof Error?e.message+e.stack:e))}}(),n=kr(e);if(n.help)return M('\nsetup-cpp [options]\nsetup-cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true\n\nInstall all the tools required for building and testing C++/C projects.\n\n--architecture\t the cpu architecture to install the tools for. By default it uses the current CPU architecture.\n--timeout\t the timeout for the installation of each tool in minutes. By default it is 10 minutes.\n--compiler\t the <compiler> to install.\n \t You can specify the version instead of specifying just the name e.g: --compiler \'llvm-13.0.0\'\n--tool_name\t pass "true" or pass the <version> you would like to install for this tool. e.g. --conan true or --conan "1.42.1"\n--nodePackageManager\t the node package manager to use (npm/yarn/pnpm) when installing setup-cpp globally\n--help\t show this help message\n--version\t show the version of setup-cpp\n\nAll the available tools:\n'),console.table({"compiler and analyzer":{tools:"--llvm, --gcc, --msvc, --apple-clang, --vcvarsall"},"build system":{tools:"--cmake, --ninja, --meson, --make, --task, --bazel"},"package manager":{tools:"--vcpkg, --conan, --choco, --brew, --apt-fast, --nala, --git, --setup-cpp"},"analyzer/linter":{tools:"--clang-tidy, --clang-format, --cppcheck, --cpplint, --flawfinder, --lizard, --infer, , --cmakelang, --cmake-lint, --cmake-format"},cache:{tools:"--ccache, --sccache"},documentation:{tools:"--doxygen, --graphviz"},coverage:{tools:"--gcovr, --opencppcoverage, --kcov"},other:{tools:"--python, --powershell, --sevenzip, --tar"}},["tools"]),0;if(n.version)return M(""+Xo.version),0;const{successMessages:r,errorMessages:i}=await Lr(n);for(const o of r)console.log(`${o}`);for(const o of i)j(o);if((0!==r.length||0!==i.length)&&(M("setup-cpp finished"),!Qo.GITHUB_ACTIONS))switch(process.platform){case"win32":U("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":U("Run `source ~/.cpprc` or restart your shell to update the environment.")}return await t,0===i.length?0:1}(process.argv).then((e=>{process.exitCode=e})).catch((e=>{j("main() panicked!"),j(e),process.exitCode=1})),exports.HttpClient=Is,exports.ciInfo=Zo,exports.commonjsGlobal=Vo,exports.coreExports=Ws,exports.execExports=Hd,exports.getAugmentedNamespace=i,exports.getDefaultExportFromCjs=r,exports.info=M,exports.parseArgs=kr,exports.pathExists=$e,exports.require$$13=as,exports.requireSemver=P,exports.toolCacheExports=Tm,exports.warning=U;
//# sourceMappingURL=setup-cpp.js.map