From 7d685245b8d8a5eb5af31ab3cca3b9ca72098a9c Mon Sep 17 00:00:00 2001 From: Takeo Sawada Date: Fri, 1 Nov 2024 01:05:22 +0800 Subject: [PATCH] diff --- dist/main.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) mode change 100755 => 100644 dist/main.js diff --git a/dist/main.js b/dist/main.js old mode 100755 new mode 100644 index 6803073..d497d90 --- a/dist/main.js +++ b/dist/main.js @@ -1,8 +1,8 @@ -"use strict";var Xt=Object.create;var F=Object.defineProperty,Zt=Object.defineProperties,er=Object.getOwnPropertyDescriptor,tr=Object.getOwnPropertyDescriptors,rr=Object.getOwnPropertyNames,Ge=Object.getOwnPropertySymbols,nr=Object.getPrototypeOf,He=Object.prototype.hasOwnProperty,ir=Object.prototype.propertyIsEnumerable;var Je=(e,t,r)=>t in e?F(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ke=(e,t)=>{for(var r in t||(t={}))He.call(t,r)&&Je(e,r,t[r]);if(Ge)for(var r of Ge(t))ir.call(t,r)&&Je(e,r,t[r]);return e},ze=(e,t)=>Zt(e,tr(t));var We=(e,t)=>()=>(e&&(t=e(e=0)),t);var _=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ye=(e,t)=>{for(var r in t)F(e,r,{get:t[r],enumerable:!0})},Qe=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of rr(t))!He.call(e,i)&&i!==r&&F(e,i,{get:()=>t[i],enumerable:!(n=er(t,i))||n.enumerable});return e};var de=(e,t,r)=>(r=e!=null?Xt(nr(e)):{},Qe(t||!e||!e.__esModule?F(r,"default",{value:e,enumerable:!0}):r,e)),Xe=e=>Qe(F({},"__esModule",{value:!0}),e);var I=(e,t,r)=>new Promise((n,i)=>{var s=u=>{try{c(r.next(u))}catch(a){i(a)}},o=u=>{try{c(r.throw(u))}catch(a){i(a)}},c=u=>u.done?n(u.value):Promise.resolve(u.value).then(s,o);c((r=r.apply(e,t)).next())});var H=_(B=>{"use strict";Object.defineProperty(B,"__esModule",{value:!0});B.toCommandProperties=B.toCommandValue=void 0;function sr(e){return e==null?"":typeof e=="string"||e instanceof String?e:JSON.stringify(e)}B.toCommandValue=sr;function or(e){return Object.keys(e).length?{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}:{}}B.toCommandProperties=or});var rt=_(b=>{"use strict";var ar=b&&b.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),ur=b&&b.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),cr=b&&b.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.hasOwnProperty.call(e,r)&&ar(t,e,r);return ur(t,e),t};Object.defineProperty(b,"__esModule",{value:!0});b.issue=b.issueCommand=void 0;var lr=cr(require("os")),et=H();function tt(e,t,r){let n=new he(e,t,r);process.stdout.write(n.toString()+lr.EOL)}b.issueCommand=tt;function fr(e,t=""){tt(e,{},t)}b.issue=fr;var Ze="::",he=class{constructor(t,r,n){t||(t="missing.command"),this.command=t,this.properties=r,this.message=n}toString(){let t=Ze+this.command;if(this.properties&&Object.keys(this.properties).length>0){t+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let i=this.properties[n];i&&(r?r=!1:t+=",",t+=`${n}=${hr(i)}`)}}return t+=`${Ze}${dr(this.message)}`,t}};function dr(e){return et.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function hr(e){return et.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}});var _e=_(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});pe.default=vr;var pr=_r(require("crypto"));function _r(e){return e&&e.__esModule?e:{default:e}}var z=new Uint8Array(256),K=z.length;function vr(){return K>z.length-16&&(pr.default.randomFillSync(z),K=0),z.slice(K,K+=16)}});var nt=_(W=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});W.default=void 0;var mr=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;W.default=mr});var G=_(Y=>{"use strict";Object.defineProperty(Y,"__esModule",{value:!0});Y.default=void 0;var gr=yr(nt());function yr(e){return e&&e.__esModule?e:{default:e}}function wr(e){return typeof e=="string"&&gr.default.test(e)}var Or=wr;Y.default=Or});var J=_(Q=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});Q.default=void 0;var br=Rr(G());function Rr(e){return e&&e.__esModule?e:{default:e}}var m=[];for(let e=0;e<256;++e)m.push((e+256).toString(16).substr(1));function Sr(e,t=0){let r=(m[e[t+0]]+m[e[t+1]]+m[e[t+2]]+m[e[t+3]]+"-"+m[e[t+4]]+m[e[t+5]]+"-"+m[e[t+6]]+m[e[t+7]]+"-"+m[e[t+8]]+m[e[t+9]]+"-"+m[e[t+10]]+m[e[t+11]]+m[e[t+12]]+m[e[t+13]]+m[e[t+14]]+m[e[t+15]]).toLowerCase();if(!(0,br.default)(r))throw TypeError("Stringified UUID is invalid");return r}var Pr=Sr;Q.default=Pr});var ot=_(X=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0});X.default=void 0;var Er=st(_e()),qr=st(J());function st(e){return e&&e.__esModule?e:{default:e}}var it,ve,me=0,ge=0;function Tr(e,t,r){let n=t&&r||0,i=t||new Array(16);e=e||{};let s=e.node||it,o=e.clockseq!==void 0?e.clockseq:ve;if(s==null||o==null){let h=e.random||(e.rng||Er.default)();s==null&&(s=it=[h[0]|1,h[1],h[2],h[3],h[4],h[5]]),o==null&&(o=ve=(h[6]<<8|h[7])&16383)}let c=e.msecs!==void 0?e.msecs:Date.now(),u=e.nsecs!==void 0?e.nsecs:ge+1,a=c-me+(u-ge)/1e4;if(a<0&&e.clockseq===void 0&&(o=o+1&16383),(a<0||c>me)&&e.nsecs===void 0&&(u=0),u>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");me=c,ge=u,ve=o,c+=122192928e5;let l=((c&268435455)*1e4+u)%4294967296;i[n++]=l>>>24&255,i[n++]=l>>>16&255,i[n++]=l>>>8&255,i[n++]=l&255;let d=c/4294967296*1e4&268435455;i[n++]=d>>>8&255,i[n++]=d&255,i[n++]=d>>>24&15|16,i[n++]=d>>>16&255,i[n++]=o>>>8|128,i[n++]=o&255;for(let h=0;h<6;++h)i[n+h]=s[h];return t||(0,qr.default)(i)}var Ar=Tr;X.default=Ar});var ye=_(Z=>{"use strict";Object.defineProperty(Z,"__esModule",{value:!0});Z.default=void 0;var Cr=Mr(G());function Mr(e){return e&&e.__esModule?e:{default:e}}function Ur(e){if(!(0,Cr.default)(e))throw TypeError("Invalid UUID");let t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=t&255,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=t&255,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=t&255,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=t&255,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=t&255,r}var xr=Ur;Z.default=xr});var we=_(D=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});D.default=Br;D.URL=D.DNS=void 0;var Dr=at(J()),Nr=at(ye());function at(e){return e&&e.__esModule?e:{default:e}}function Ir(e){e=unescape(encodeURIComponent(e));let t=[];for(let r=0;r{"use strict";Object.defineProperty(ee,"__esModule",{value:!0});ee.default=void 0;var $r=Lr(require("crypto"));function Lr(e){return e&&e.__esModule?e:{default:e}}function kr(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),$r.default.createHash("md5").update(e).digest()}var jr=kr;ee.default=jr});var dt=_(te=>{"use strict";Object.defineProperty(te,"__esModule",{value:!0});te.default=void 0;var Vr=ft(we()),Fr=ft(lt());function ft(e){return e&&e.__esModule?e:{default:e}}var Gr=(0,Vr.default)("v3",48,Fr.default),Jr=Gr;te.default=Jr});var pt=_(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.default=void 0;var Hr=ht(_e()),Kr=ht(J());function ht(e){return e&&e.__esModule?e:{default:e}}function zr(e,t,r){e=e||{};let n=e.random||(e.rng||Hr.default)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t){r=r||0;for(let i=0;i<16;++i)t[r+i]=n[i];return t}return(0,Kr.default)(n)}var Wr=zr;re.default=Wr});var _t=_(ne=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0});ne.default=void 0;var Yr=Qr(require("crypto"));function Qr(e){return e&&e.__esModule?e:{default:e}}function Xr(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),Yr.default.createHash("sha1").update(e).digest()}var Zr=Xr;ne.default=Zr});var mt=_(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.default=void 0;var en=vt(we()),tn=vt(_t());function vt(e){return e&&e.__esModule?e:{default:e}}var rn=(0,en.default)("v5",80,tn.default),nn=rn;ie.default=nn});var gt=_(se=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});se.default=void 0;var sn="00000000-0000-0000-0000-000000000000";se.default=sn});var yt=_(oe=>{"use strict";Object.defineProperty(oe,"__esModule",{value:!0});oe.default=void 0;var on=an(G());function an(e){return e&&e.__esModule?e:{default:e}}function un(e){if(!(0,on.default)(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}var cn=un;oe.default=cn});var wt=_(P=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0});Object.defineProperty(P,"v1",{enumerable:!0,get:function(){return ln.default}});Object.defineProperty(P,"v3",{enumerable:!0,get:function(){return fn.default}});Object.defineProperty(P,"v4",{enumerable:!0,get:function(){return dn.default}});Object.defineProperty(P,"v5",{enumerable:!0,get:function(){return hn.default}});Object.defineProperty(P,"NIL",{enumerable:!0,get:function(){return pn.default}});Object.defineProperty(P,"version",{enumerable:!0,get:function(){return _n.default}});Object.defineProperty(P,"validate",{enumerable:!0,get:function(){return vn.default}});Object.defineProperty(P,"stringify",{enumerable:!0,get:function(){return mn.default}});Object.defineProperty(P,"parse",{enumerable:!0,get:function(){return gn.default}});var ln=A(ot()),fn=A(dt()),dn=A(pt()),hn=A(mt()),pn=A(gt()),_n=A(yt()),vn=A(G()),mn=A(J()),gn=A(ye());function A(e){return e&&e.__esModule?e:{default:e}}});var St=_(R=>{"use strict";var yn=R&&R.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),wn=R&&R.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),bt=R&&R.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.hasOwnProperty.call(e,r)&&yn(t,e,r);return wn(t,e),t};Object.defineProperty(R,"__esModule",{value:!0});R.prepareKeyValueMessage=R.issueFileCommand=void 0;var Ot=bt(require("fs")),Oe=bt(require("os")),On=wt(),Rt=H();function bn(e,t){let r=process.env[`GITHUB_${e}`];if(!r)throw new Error(`Unable to find environment variable for file command ${e}`);if(!Ot.existsSync(r))throw new Error(`Missing file at path: ${r}`);Ot.appendFileSync(r,`${Rt.toCommandValue(t)}${Oe.EOL}`,{encoding:"utf8"})}R.issueFileCommand=bn;function Rn(e,t){let r=`ghadelimiter_${On.v4()}`,n=Rt.toCommandValue(t);if(e.includes(r))throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`);if(n.includes(r))throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`);return`${e}<<${r}${Oe.EOL}${n}${Oe.EOL}${r}`}R.prepareKeyValueMessage=Rn});var Et=_($=>{"use strict";Object.defineProperty($,"__esModule",{value:!0});$.checkBypass=$.getProxyUrl=void 0;function Sn(e){let t=e.protocol==="https:";if(Pt(e))return;let r=(()=>t?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY)();if(r)return new URL(r)}$.getProxyUrl=Sn;function Pt(e){if(!e.hostname)return!1;let t=process.env.no_proxy||process.env.NO_PROXY||"";if(!t)return!1;let r;e.port?r=Number(e.port):e.protocol==="http:"?r=80:e.protocol==="https:"&&(r=443);let n=[e.hostname.toUpperCase()];typeof r=="number"&&n.push(`${n[0]}:${r}`);for(let i of t.split(",").map(s=>s.trim().toUpperCase()).filter(s=>s))if(n.some(s=>s===i))return!0;return!1}$.checkBypass=Pt});var Ct=_(L=>{"use strict";var es=require("net"),Pn=require("tls"),be=require("http"),qt=require("https"),En=require("events"),ts=require("assert"),qn=require("util");L.httpOverHttp=Tn;L.httpsOverHttp=An;L.httpOverHttps=Cn;L.httpsOverHttps=Mn;function Tn(e){var t=new C(e);return t.request=be.request,t}function An(e){var t=new C(e);return t.request=be.request,t.createSocket=Tt,t.defaultPort=443,t}function Cn(e){var t=new C(e);return t.request=qt.request,t}function Mn(e){var t=new C(e);return t.request=qt.request,t.createSocket=Tt,t.defaultPort=443,t}function C(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||be.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",function(n,i,s,o){for(var c=At(i,s,o),u=0,a=t.requests.length;u=this.maxSockets){s.requests.push(o);return}s.createSocket(o,function(c){c.on("free",u),c.on("close",a),c.on("agentRemove",a),t.onSocket(c);function u(){s.emit("free",c,o)}function a(l){s.removeSocket(c),c.removeListener("free",u),c.removeListener("close",a),c.removeListener("agentRemove",a)}})};C.prototype.createSocket=function(t,r){var n=this,i={};n.sockets.push(i);var s=Re({},n.proxyOptions,{method:"CONNECT",path:t.host+":"+t.port,agent:!1,headers:{host:t.host+":"+t.port}});t.localAddress&&(s.localAddress=t.localAddress),s.proxyAuth&&(s.headers=s.headers||{},s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")),M("making CONNECT request");var o=n.request(s);o.useChunkedEncodingByDefault=!1,o.once("response",c),o.once("upgrade",u),o.once("connect",a),o.once("error",l),o.end();function c(d){d.upgrade=!0}function u(d,h,g){process.nextTick(function(){a(d,h,g)})}function a(d,h,g){if(o.removeAllListeners(),h.removeAllListeners(),d.statusCode!==200){M("tunneling socket could not be established, statusCode=%d",d.statusCode),h.destroy();var T=new Error("tunneling socket could not be established, statusCode="+d.statusCode);T.code="ECONNRESET",t.request.emit("error",T),n.removeSocket(i);return}if(g.length>0){M("got illegal response body from proxy"),h.destroy();var T=new Error("got illegal response body from proxy");T.code="ECONNRESET",t.request.emit("error",T),n.removeSocket(i);return}return M("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=h,r(h)}function l(d){o.removeAllListeners(),M(`tunneling socket could not be established, cause=%s -`,d.message,d.stack);var h=new Error("tunneling socket could not be established, cause="+d.message);h.code="ECONNRESET",t.request.emit("error",h),n.removeSocket(i)}};C.prototype.removeSocket=function(t){var r=this.sockets.indexOf(t);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(i){n.request.onSocket(i)})}};function Tt(e,t){var r=this;C.prototype.createSocket.call(r,e,function(n){var i=e.request.getHeader("host"),s=Re({},r.options,{socket:n,servername:i?i.replace(/:.*$/,""):e.host}),o=Pn.connect(0,s);r.sockets[r.sockets.indexOf(n)]=o,t(o)})}function At(e,t,r){return typeof e=="string"?{host:e,port:t,localAddress:r}:e}function Re(e){for(var t=1,r=arguments.length;t{Mt.exports=Ct()});var Ee=_(p=>{"use strict";var Un=p&&p.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),xn=p&&p.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),fe=p&&p.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.hasOwnProperty.call(e,r)&&Un(t,e,r);return xn(t,e),t},v=p&&p.__awaiter||function(e,t,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function c(l){try{a(n.next(l))}catch(d){o(d)}}function u(l){try{a(n.throw(l))}catch(d){o(d)}}function a(l){l.done?s(l.value):i(l.value).then(c,u)}a((n=n.apply(e,t||[])).next())})};Object.defineProperty(p,"__esModule",{value:!0});p.HttpClient=p.isHttps=p.HttpClientResponse=p.HttpClientError=p.getProxyUrl=p.MediaTypes=p.Headers=p.HttpCodes=void 0;var ae=fe(require("http")),Se=fe(require("https")),xt=fe(Et()),ue=fe(Ut()),E;(function(e){e[e.OK=200]="OK",e[e.MultipleChoices=300]="MultipleChoices",e[e.MovedPermanently=301]="MovedPermanently",e[e.ResourceMoved=302]="ResourceMoved",e[e.SeeOther=303]="SeeOther",e[e.NotModified=304]="NotModified",e[e.UseProxy=305]="UseProxy",e[e.SwitchProxy=306]="SwitchProxy",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.PaymentRequired=402]="PaymentRequired",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.MethodNotAllowed=405]="MethodNotAllowed",e[e.NotAcceptable=406]="NotAcceptable",e[e.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",e[e.RequestTimeout=408]="RequestTimeout",e[e.Conflict=409]="Conflict",e[e.Gone=410]="Gone",e[e.TooManyRequests=429]="TooManyRequests",e[e.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"})(E=p.HttpCodes||(p.HttpCodes={}));var y;(function(e){e.Accept="accept",e.ContentType="content-type"})(y=p.Headers||(p.Headers={}));var U;(function(e){e.ApplicationJson="application/json"})(U=p.MediaTypes||(p.MediaTypes={}));function Dn(e){let t=xt.getProxyUrl(new URL(e));return t?t.href:""}p.getProxyUrl=Dn;var Nn=[E.MovedPermanently,E.ResourceMoved,E.SeeOther,E.TemporaryRedirect,E.PermanentRedirect],In=[E.BadGateway,E.ServiceUnavailable,E.GatewayTimeout],Bn=["OPTIONS","GET","DELETE","HEAD"],$n=10,Ln=5,k=class extends Error{constructor(t,r){super(t),this.name="HttpClientError",this.statusCode=r,Object.setPrototypeOf(this,k.prototype)}};p.HttpClientError=k;var le=class{constructor(t){this.message=t}readBody(){return v(this,void 0,void 0,function*(){return new Promise(t=>v(this,void 0,void 0,function*(){let r=Buffer.alloc(0);this.message.on("data",n=>{r=Buffer.concat([r,n])}),this.message.on("end",()=>{t(r.toString())})}))})}};p.HttpClientResponse=le;function kn(e){return new URL(e).protocol==="https:"}p.isHttps=kn;var Pe=class{constructor(t,r,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=t,this.handlers=r||[],this.requestOptions=n,n&&(n.ignoreSslError!=null&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,n.allowRedirects!=null&&(this._allowRedirects=n.allowRedirects),n.allowRedirectDowngrade!=null&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),n.maxRedirects!=null&&(this._maxRedirects=Math.max(n.maxRedirects,0)),n.keepAlive!=null&&(this._keepAlive=n.keepAlive),n.allowRetries!=null&&(this._allowRetries=n.allowRetries),n.maxRetries!=null&&(this._maxRetries=n.maxRetries))}options(t,r){return v(this,void 0,void 0,function*(){return this.request("OPTIONS",t,null,r||{})})}get(t,r){return v(this,void 0,void 0,function*(){return this.request("GET",t,null,r||{})})}del(t,r){return v(this,void 0,void 0,function*(){return this.request("DELETE",t,null,r||{})})}post(t,r,n){return v(this,void 0,void 0,function*(){return this.request("POST",t,r,n||{})})}patch(t,r,n){return v(this,void 0,void 0,function*(){return this.request("PATCH",t,r,n||{})})}put(t,r,n){return v(this,void 0,void 0,function*(){return this.request("PUT",t,r,n||{})})}head(t,r){return v(this,void 0,void 0,function*(){return this.request("HEAD",t,null,r||{})})}sendStream(t,r,n,i){return v(this,void 0,void 0,function*(){return this.request(t,r,n,i)})}getJson(t,r={}){return v(this,void 0,void 0,function*(){r[y.Accept]=this._getExistingOrDefaultHeader(r,y.Accept,U.ApplicationJson);let n=yield this.get(t,r);return this._processResponse(n,this.requestOptions)})}postJson(t,r,n={}){return v(this,void 0,void 0,function*(){let i=JSON.stringify(r,null,2);n[y.Accept]=this._getExistingOrDefaultHeader(n,y.Accept,U.ApplicationJson),n[y.ContentType]=this._getExistingOrDefaultHeader(n,y.ContentType,U.ApplicationJson);let s=yield this.post(t,i,n);return this._processResponse(s,this.requestOptions)})}putJson(t,r,n={}){return v(this,void 0,void 0,function*(){let i=JSON.stringify(r,null,2);n[y.Accept]=this._getExistingOrDefaultHeader(n,y.Accept,U.ApplicationJson),n[y.ContentType]=this._getExistingOrDefaultHeader(n,y.ContentType,U.ApplicationJson);let s=yield this.put(t,i,n);return this._processResponse(s,this.requestOptions)})}patchJson(t,r,n={}){return v(this,void 0,void 0,function*(){let i=JSON.stringify(r,null,2);n[y.Accept]=this._getExistingOrDefaultHeader(n,y.Accept,U.ApplicationJson),n[y.ContentType]=this._getExistingOrDefaultHeader(n,y.ContentType,U.ApplicationJson);let s=yield this.patch(t,i,n);return this._processResponse(s,this.requestOptions)})}request(t,r,n,i){return v(this,void 0,void 0,function*(){if(this._disposed)throw new Error("Client has already been disposed.");let s=new URL(r),o=this._prepareRequest(t,s,i),c=this._allowRetries&&Bn.includes(t)?this._maxRetries+1:1,u=0,a;do{if(a=yield this.requestRaw(o,n),a&&a.message&&a.message.statusCode===E.Unauthorized){let d;for(let h of this.handlers)if(h.canHandleAuthentication(a)){d=h;break}return d?d.handleAuthentication(this,o,n):a}let l=this._maxRedirects;for(;a.message.statusCode&&Nn.includes(a.message.statusCode)&&this._allowRedirects&&l>0;){let d=a.message.headers.location;if(!d)break;let h=new URL(d);if(s.protocol==="https:"&&s.protocol!==h.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");if(yield a.readBody(),h.hostname!==s.hostname)for(let g in i)g.toLowerCase()==="authorization"&&delete i[g];o=this._prepareRequest(t,h,i),a=yield this.requestRaw(o,n),l--}if(!a.message.statusCode||!In.includes(a.message.statusCode))return a;u+=1,u{function s(o,c){o?i(o):c?n(c):i(new Error("Unknown error"))}this.requestRawWithCallback(t,r,s)})})}requestRawWithCallback(t,r,n){typeof r=="string"&&(t.options.headers||(t.options.headers={}),t.options.headers["Content-Length"]=Buffer.byteLength(r,"utf8"));let i=!1;function s(u,a){i||(i=!0,n(u,a))}let o=t.httpModule.request(t.options,u=>{let a=new le(u);s(void 0,a)}),c;o.on("socket",u=>{c=u}),o.setTimeout(this._socketTimeout||3*6e4,()=>{c&&c.end(),s(new Error(`Request timeout: ${t.options.path}`))}),o.on("error",function(u){s(u)}),r&&typeof r=="string"&&o.write(r,"utf8"),r&&typeof r!="string"?(r.on("close",function(){o.end()}),r.pipe(o)):o.end()}getAgent(t){let r=new URL(t);return this._getAgent(r)}_prepareRequest(t,r,n){let i={};i.parsedUrl=r;let s=i.parsedUrl.protocol==="https:";i.httpModule=s?Se:ae;let o=s?443:80;if(i.options={},i.options.host=i.parsedUrl.hostname,i.options.port=i.parsedUrl.port?parseInt(i.parsedUrl.port):o,i.options.path=(i.parsedUrl.pathname||"")+(i.parsedUrl.search||""),i.options.method=t,i.options.headers=this._mergeHeaders(n),this.userAgent!=null&&(i.options.headers["user-agent"]=this.userAgent),i.options.agent=this._getAgent(i.parsedUrl),this.handlers)for(let c of this.handlers)c.prepareRequest(i.options);return i}_mergeHeaders(t){return this.requestOptions&&this.requestOptions.headers?Object.assign({},ce(this.requestOptions.headers),ce(t||{})):ce(t||{})}_getExistingOrDefaultHeader(t,r,n){let i;return this.requestOptions&&this.requestOptions.headers&&(i=ce(this.requestOptions.headers)[r]),t[r]||i||n}_getAgent(t){let r,n=xt.getProxyUrl(t),i=n&&n.hostname;if(this._keepAlive&&i&&(r=this._proxyAgent),this._keepAlive&&!i&&(r=this._agent),r)return r;let s=t.protocol==="https:",o=100;if(this.requestOptions&&(o=this.requestOptions.maxSockets||ae.globalAgent.maxSockets),n&&n.hostname){let c={maxSockets:o,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})},u,a=n.protocol==="https:";s?u=a?ue.httpsOverHttps:ue.httpsOverHttp:u=a?ue.httpOverHttps:ue.httpOverHttp,r=u(c),this._proxyAgent=r}if(this._keepAlive&&!r){let c={keepAlive:this._keepAlive,maxSockets:o};r=s?new Se.Agent(c):new ae.Agent(c),this._agent=r}return r||(r=s?Se.globalAgent:ae.globalAgent),s&&this._ignoreSslError&&(r.options=Object.assign(r.options||{},{rejectUnauthorized:!1})),r}_performExponentialBackoff(t){return v(this,void 0,void 0,function*(){t=Math.min($n,t);let r=Ln*Math.pow(2,t);return new Promise(n=>setTimeout(()=>n(),r))})}_processResponse(t,r){return v(this,void 0,void 0,function*(){return new Promise((n,i)=>v(this,void 0,void 0,function*(){let s=t.message.statusCode||0,o={statusCode:s,result:null,headers:{}};s===E.NotFound&&n(o);function c(l,d){if(typeof d=="string"){let h=new Date(d);if(!isNaN(h.valueOf()))return h}return d}let u,a;try{a=yield t.readBody(),a&&a.length>0&&(r&&r.deserializeDates?u=JSON.parse(a,c):u=JSON.parse(a),o.result=u),o.headers=t.message.headers}catch(l){}if(s>299){let l;u&&u.message?l=u.message:a&&a.length>0?l=a:l=`Failed request: (${s})`;let d=new k(l,s);d.result=o.result,i(d)}else n(o)}))})}};p.HttpClient=Pe;var ce=e=>Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{})});var Me=_(q=>{"use strict";var Ce=q&&q.__awaiter||function(e,t,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function c(l){try{a(n.next(l))}catch(d){o(d)}}function u(l){try{a(n.throw(l))}catch(d){o(d)}}function a(l){l.done?s(l.value):i(l.value).then(c,u)}a((n=n.apply(e,t||[])).next())})};Object.defineProperty(q,"__esModule",{value:!0});q.PersonalAccessTokenCredentialHandler=q.BearerCredentialHandler=q.BasicCredentialHandler=void 0;var qe=class{constructor(t,r){this.username=t,this.password=r}prepareRequest(t){if(!t.headers)throw Error("The request has no headers");t.headers.Authorization=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return!1}handleAuthentication(){return Ce(this,void 0,void 0,function*(){throw new Error("not implemented")})}};q.BasicCredentialHandler=qe;var Te=class{constructor(t){this.token=t}prepareRequest(t){if(!t.headers)throw Error("The request has no headers");t.headers.Authorization=`Bearer ${this.token}`}canHandleAuthentication(){return!1}handleAuthentication(){return Ce(this,void 0,void 0,function*(){throw new Error("not implemented")})}};q.BearerCredentialHandler=Te;var Ae=class{constructor(t){this.token=t}prepareRequest(t){if(!t.headers)throw Error("The request has no headers");t.headers.Authorization=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return!1}handleAuthentication(){return Ce(this,void 0,void 0,function*(){throw new Error("not implemented")})}};q.PersonalAccessTokenCredentialHandler=Ae});var It=_(j=>{"use strict";var Dt=j&&j.__awaiter||function(e,t,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function c(l){try{a(n.next(l))}catch(d){o(d)}}function u(l){try{a(n.throw(l))}catch(d){o(d)}}function a(l){l.done?s(l.value):i(l.value).then(c,u)}a((n=n.apply(e,t||[])).next())})};Object.defineProperty(j,"__esModule",{value:!0});j.OidcClient=void 0;var jn=Ee(),Vn=Me(),Nt=Ue(),x=class{static createHttpClient(t=!0,r=10){let n={allowRetries:t,maxRetries:r};return new jn.HttpClient("actions/oidc-client",[new Vn.BearerCredentialHandler(x.getRequestToken())],n)}static getRequestToken(){let t=process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;if(!t)throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable");return t}static getIDTokenUrl(){let t=process.env.ACTIONS_ID_TOKEN_REQUEST_URL;if(!t)throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable");return t}static getCall(t){var r;return Dt(this,void 0,void 0,function*(){let s=(r=(yield x.createHttpClient().getJson(t).catch(o=>{throw new Error(`Failed to get ID Token. +"use strict";var Ft=Object.create;var V=Object.defineProperty,Gt=Object.defineProperties,Ht=Object.getOwnPropertyDescriptor,Jt=Object.getOwnPropertyDescriptors,Kt=Object.getOwnPropertyNames,je=Object.getOwnPropertySymbols,zt=Object.getPrototypeOf,Be=Object.prototype.hasOwnProperty,Wt=Object.prototype.propertyIsEnumerable;var De=(e,t,r)=>t in e?V(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ne=(e,t)=>{for(var r in t||(t={}))Be.call(t,r)&&De(e,r,t[r]);if(je)for(var r of je(t))Wt.call(t,r)&&De(e,r,t[r]);return e},Ie=(e,t)=>Gt(e,Jt(t));var g=(e,t)=>()=>(e&&(t=e(e=0)),t);var y=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Yt=(e,t)=>{for(var r in t)V(e,r,{get:t[r],enumerable:!0})},$e=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Kt(t))!Be.call(e,i)&&i!==r&&V(e,i,{get:()=>t[i],enumerable:!(n=Ht(t,i))||n.enumerable});return e};var ie=(e,t,r)=>(r=e!=null?Ft(zt(e)):{},$e(t||!e||!e.__esModule?V(r,"default",{value:e,enumerable:!0}):r,e)),Qt=e=>$e(V({},"__esModule",{value:!0}),e);var B=(e,t,r)=>new Promise((n,i)=>{var s=u=>{try{c(r.next(u))}catch(a){i(a)}},o=u=>{try{c(r.throw(u))}catch(a){i(a)}},c=u=>u.done?n(u.value):Promise.resolve(u.value).then(s,o);c((r=r.apply(e,t)).next())});var J=y(N=>{"use strict";Object.defineProperty(N,"__esModule",{value:!0});N.toCommandProperties=N.toCommandValue=void 0;function Xt(e){return e==null?"":typeof e=="string"||e instanceof String?e:JSON.stringify(e)}N.toCommandValue=Xt;function Zt(e){return Object.keys(e).length?{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}:{}}N.toCommandProperties=Zt});var Fe=y(S=>{"use strict";var er=S&&S.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),tr=S&&S.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),rr=S&&S.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.hasOwnProperty.call(e,r)&&er(t,e,r);return tr(t,e),t};Object.defineProperty(S,"__esModule",{value:!0});S.issue=S.issueCommand=void 0;var nr=rr(require("os")),ke=J();function Ve(e,t,r){let n=new se(e,t,r);process.stdout.write(n.toString()+nr.EOL)}S.issueCommand=Ve;function ir(e,t=""){Ve(e,{},t)}S.issue=ir;var Le="::",se=class{constructor(t,r,n){t||(t="missing.command"),this.command=t,this.properties=r,this.message=n}toString(){let t=Le+this.command;if(this.properties&&Object.keys(this.properties).length>0){t+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let i=this.properties[n];i&&(r?r=!1:t+=",",t+=`${n}=${or(i)}`)}}return t+=`${Le}${sr(this.message)}`,t}};function sr(e){return ke.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function or(e){return ke.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}});function F(){return K>z.length-16&&(Ge.default.randomFillSync(z),K=0),z.slice(K,K+=16)}var Ge,z,K,oe=g(()=>{Ge=ie(require("crypto")),z=new Uint8Array(256),K=z.length});var He,Je=g(()=>{He=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i});function ar(e){return typeof e=="string"&&He.test(e)}var C,G=g(()=>{Je();C=ar});function ur(e,t=0){let r=(_[e[t+0]]+_[e[t+1]]+_[e[t+2]]+_[e[t+3]]+"-"+_[e[t+4]]+_[e[t+5]]+"-"+_[e[t+6]]+_[e[t+7]]+"-"+_[e[t+8]]+_[e[t+9]]+"-"+_[e[t+10]]+_[e[t+11]]+_[e[t+12]]+_[e[t+13]]+_[e[t+14]]+_[e[t+15]]).toLowerCase();if(!C(r))throw TypeError("Stringified UUID is invalid");return r}var _,q,H=g(()=>{G();_=[];for(let e=0;e<256;++e)_.push((e+256).toString(16).substr(1));q=ur});function cr(e,t,r){let n=t&&r||0,i=t||new Array(16);e=e||{};let s=e.node||Ke,o=e.clockseq!==void 0?e.clockseq:ae;if(s==null||o==null){let d=e.random||(e.rng||F)();s==null&&(s=Ke=[d[0]|1,d[1],d[2],d[3],d[4],d[5]]),o==null&&(o=ae=(d[6]<<8|d[7])&16383)}let c=e.msecs!==void 0?e.msecs:Date.now(),u=e.nsecs!==void 0?e.nsecs:ce+1,a=c-ue+(u-ce)/1e4;if(a<0&&e.clockseq===void 0&&(o=o+1&16383),(a<0||c>ue)&&e.nsecs===void 0&&(u=0),u>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");ue=c,ce=u,ae=o,c+=122192928e5;let l=((c&268435455)*1e4+u)%4294967296;i[n++]=l>>>24&255,i[n++]=l>>>16&255,i[n++]=l>>>8&255,i[n++]=l&255;let h=c/4294967296*1e4&268435455;i[n++]=h>>>8&255,i[n++]=h&255,i[n++]=h>>>24&15|16,i[n++]=h>>>16&255,i[n++]=o>>>8|128,i[n++]=o&255;for(let d=0;d<6;++d)i[n+d]=s[d];return t||q(i)}var Ke,ae,ue,ce,ze,We=g(()=>{oe();H();ue=0,ce=0;ze=cr});function lr(e){if(!C(e))throw TypeError("Invalid UUID");let t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=t&255,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=t&255,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=t&255,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=t&255,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=t&255,r}var W,le=g(()=>{G();W=lr});function fr(e){e=unescape(encodeURIComponent(e));let t=[];for(let r=0;r{H();le();hr="6ba7b810-9dad-11d1-80b4-00c04fd430c8",dr="6ba7b811-9dad-11d1-80b4-00c04fd430c8"});function pr(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),Ye.default.createHash("md5").update(e).digest()}var Ye,Qe,Xe=g(()=>{Ye=ie(require("crypto"));Qe=pr});var mr,Ze,et=g(()=>{fe();Xe();mr=Y("v3",48,Qe),Ze=mr});function _r(e,t,r){e=e||{};let n=e.random||(e.rng||F)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t){r=r||0;for(let i=0;i<16;++i)t[r+i]=n[i];return t}return q(n)}var tt,rt=g(()=>{oe();H();tt=_r});function gr(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),nt.default.createHash("sha1").update(e).digest()}var nt,it,st=g(()=>{nt=ie(require("crypto"));it=gr});var vr,ot,at=g(()=>{fe();st();vr=Y("v5",80,it),ot=vr});var ut,ct=g(()=>{ut="00000000-0000-0000-0000-000000000000"});function yr(e){if(!C(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}var lt,ft=g(()=>{G();lt=yr});var ht={};Yt(ht,{NIL:()=>ut,parse:()=>W,stringify:()=>q,v1:()=>ze,v3:()=>Ze,v4:()=>tt,v5:()=>ot,validate:()=>C,version:()=>lt});var dt=g(()=>{We();et();rt();at();ct();ft();G();H();le()});var gt=y(E=>{"use strict";var wr=E&&E.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),br=E&&E.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),mt=E&&E.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.hasOwnProperty.call(e,r)&&wr(t,e,r);return br(t,e),t};Object.defineProperty(E,"__esModule",{value:!0});E.prepareKeyValueMessage=E.issueFileCommand=void 0;var pt=mt(require("fs")),he=mt(require("os")),Or=(dt(),Qt(ht)),_t=J();function Sr(e,t){let r=process.env[`GITHUB_${e}`];if(!r)throw new Error(`Unable to find environment variable for file command ${e}`);if(!pt.existsSync(r))throw new Error(`Missing file at path: ${r}`);pt.appendFileSync(r,`${_t.toCommandValue(t)}${he.EOL}`,{encoding:"utf8"})}E.issueFileCommand=Sr;function Er(e,t){let r=`ghadelimiter_${Or.v4()}`,n=_t.toCommandValue(t);if(e.includes(r))throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`);if(n.includes(r))throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`);return`${e}<<${r}${he.EOL}${n}${he.EOL}${r}`}E.prepareKeyValueMessage=Er});var yt=y(I=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});I.checkBypass=I.getProxyUrl=void 0;function Rr(e){let t=e.protocol==="https:";if(vt(e))return;let r=t?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)return new URL(r)}I.getProxyUrl=Rr;function vt(e){if(!e.hostname)return!1;let t=process.env.no_proxy||process.env.NO_PROXY||"";if(!t)return!1;let r;e.port?r=Number(e.port):e.protocol==="http:"?r=80:e.protocol==="https:"&&(r=443);let n=[e.hostname.toUpperCase()];typeof r=="number"&&n.push(`${n[0]}:${r}`);for(let i of t.split(",").map(s=>s.trim().toUpperCase()).filter(s=>s))if(n.some(s=>s===i))return!0;return!1}I.checkBypass=vt});var St=y($=>{"use strict";var Ai=require("net"),Pr=require("tls"),de=require("http"),wt=require("https"),Tr=require("events"),xi=require("assert"),Ar=require("util");$.httpOverHttp=xr;$.httpsOverHttp=Cr;$.httpOverHttps=qr;$.httpsOverHttps=Ur;function xr(e){var t=new x(e);return t.request=de.request,t}function Cr(e){var t=new x(e);return t.request=de.request,t.createSocket=bt,t.defaultPort=443,t}function qr(e){var t=new x(e);return t.request=wt.request,t}function Ur(e){var t=new x(e);return t.request=wt.request,t.createSocket=bt,t.defaultPort=443,t}function x(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||de.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",function(n,i,s,o){for(var c=Ot(i,s,o),u=0,a=t.requests.length;u=this.maxSockets){s.requests.push(o);return}s.createSocket(o,function(c){c.on("free",u),c.on("close",a),c.on("agentRemove",a),t.onSocket(c);function u(){s.emit("free",c,o)}function a(l){s.removeSocket(c),c.removeListener("free",u),c.removeListener("close",a),c.removeListener("agentRemove",a)}})};x.prototype.createSocket=function(t,r){var n=this,i={};n.sockets.push(i);var s=pe({},n.proxyOptions,{method:"CONNECT",path:t.host+":"+t.port,agent:!1,headers:{host:t.host+":"+t.port}});t.localAddress&&(s.localAddress=t.localAddress),s.proxyAuth&&(s.headers=s.headers||{},s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")),U("making CONNECT request");var o=n.request(s);o.useChunkedEncodingByDefault=!1,o.once("response",c),o.once("upgrade",u),o.once("connect",a),o.once("error",l),o.end();function c(h){h.upgrade=!0}function u(h,d,O){process.nextTick(function(){a(h,d,O)})}function a(h,d,O){if(o.removeAllListeners(),d.removeAllListeners(),h.statusCode!==200){U("tunneling socket could not be established, statusCode=%d",h.statusCode),d.destroy();var D=new Error("tunneling socket could not be established, statusCode="+h.statusCode);D.code="ECONNRESET",t.request.emit("error",D),n.removeSocket(i);return}if(O.length>0){U("got illegal response body from proxy"),d.destroy();var D=new Error("got illegal response body from proxy");D.code="ECONNRESET",t.request.emit("error",D),n.removeSocket(i);return}return U("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=d,r(d)}function l(h){o.removeAllListeners(),U(`tunneling socket could not be established, cause=%s +`,h.message,h.stack);var d=new Error("tunneling socket could not be established, cause="+h.message);d.code="ECONNRESET",t.request.emit("error",d),n.removeSocket(i)}};x.prototype.removeSocket=function(t){var r=this.sockets.indexOf(t);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(i){n.request.onSocket(i)})}};function bt(e,t){var r=this;x.prototype.createSocket.call(r,e,function(n){var i=e.request.getHeader("host"),s=pe({},r.options,{socket:n,servername:i?i.replace(/:.*$/,""):e.host}),o=Pr.connect(0,s);r.sockets[r.sockets.indexOf(n)]=o,t(o)})}function Ot(e,t,r){return typeof e=="string"?{host:e,port:t,localAddress:r}:e}function pe(e){for(var t=1,r=arguments.length;t{Et.exports=St()});var ge=y(p=>{"use strict";var Mr=p&&p.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),jr=p&&p.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),re=p&&p.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.hasOwnProperty.call(e,r)&&Mr(t,e,r);return jr(t,e),t},m=p&&p.__awaiter||function(e,t,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function c(l){try{a(n.next(l))}catch(h){o(h)}}function u(l){try{a(n.throw(l))}catch(h){o(h)}}function a(l){l.done?s(l.value):i(l.value).then(c,u)}a((n=n.apply(e,t||[])).next())})};Object.defineProperty(p,"__esModule",{value:!0});p.HttpClient=p.isHttps=p.HttpClientResponse=p.HttpClientError=p.getProxyUrl=p.MediaTypes=p.Headers=p.HttpCodes=void 0;var Q=re(require("http")),me=re(require("https")),Pt=re(yt()),X=re(Rt()),P;(function(e){e[e.OK=200]="OK",e[e.MultipleChoices=300]="MultipleChoices",e[e.MovedPermanently=301]="MovedPermanently",e[e.ResourceMoved=302]="ResourceMoved",e[e.SeeOther=303]="SeeOther",e[e.NotModified=304]="NotModified",e[e.UseProxy=305]="UseProxy",e[e.SwitchProxy=306]="SwitchProxy",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.PaymentRequired=402]="PaymentRequired",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.MethodNotAllowed=405]="MethodNotAllowed",e[e.NotAcceptable=406]="NotAcceptable",e[e.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",e[e.RequestTimeout=408]="RequestTimeout",e[e.Conflict=409]="Conflict",e[e.Gone=410]="Gone",e[e.TooManyRequests=429]="TooManyRequests",e[e.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"})(P=p.HttpCodes||(p.HttpCodes={}));var v;(function(e){e.Accept="accept",e.ContentType="content-type"})(v=p.Headers||(p.Headers={}));var M;(function(e){e.ApplicationJson="application/json"})(M=p.MediaTypes||(p.MediaTypes={}));function Dr(e){let t=Pt.getProxyUrl(new URL(e));return t?t.href:""}p.getProxyUrl=Dr;var Br=[P.MovedPermanently,P.ResourceMoved,P.SeeOther,P.TemporaryRedirect,P.PermanentRedirect],Nr=[P.BadGateway,P.ServiceUnavailable,P.GatewayTimeout],Ir=["OPTIONS","GET","DELETE","HEAD"],$r=10,Lr=5,ee=class e extends Error{constructor(t,r){super(t),this.name="HttpClientError",this.statusCode=r,Object.setPrototypeOf(this,e.prototype)}};p.HttpClientError=ee;var te=class{constructor(t){this.message=t}readBody(){return m(this,void 0,void 0,function*(){return new Promise(t=>m(this,void 0,void 0,function*(){let r=Buffer.alloc(0);this.message.on("data",n=>{r=Buffer.concat([r,n])}),this.message.on("end",()=>{t(r.toString())})}))})}};p.HttpClientResponse=te;function kr(e){return new URL(e).protocol==="https:"}p.isHttps=kr;var _e=class{constructor(t,r,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=t,this.handlers=r||[],this.requestOptions=n,n&&(n.ignoreSslError!=null&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,n.allowRedirects!=null&&(this._allowRedirects=n.allowRedirects),n.allowRedirectDowngrade!=null&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),n.maxRedirects!=null&&(this._maxRedirects=Math.max(n.maxRedirects,0)),n.keepAlive!=null&&(this._keepAlive=n.keepAlive),n.allowRetries!=null&&(this._allowRetries=n.allowRetries),n.maxRetries!=null&&(this._maxRetries=n.maxRetries))}options(t,r){return m(this,void 0,void 0,function*(){return this.request("OPTIONS",t,null,r||{})})}get(t,r){return m(this,void 0,void 0,function*(){return this.request("GET",t,null,r||{})})}del(t,r){return m(this,void 0,void 0,function*(){return this.request("DELETE",t,null,r||{})})}post(t,r,n){return m(this,void 0,void 0,function*(){return this.request("POST",t,r,n||{})})}patch(t,r,n){return m(this,void 0,void 0,function*(){return this.request("PATCH",t,r,n||{})})}put(t,r,n){return m(this,void 0,void 0,function*(){return this.request("PUT",t,r,n||{})})}head(t,r){return m(this,void 0,void 0,function*(){return this.request("HEAD",t,null,r||{})})}sendStream(t,r,n,i){return m(this,void 0,void 0,function*(){return this.request(t,r,n,i)})}getJson(t,r={}){return m(this,void 0,void 0,function*(){r[v.Accept]=this._getExistingOrDefaultHeader(r,v.Accept,M.ApplicationJson);let n=yield this.get(t,r);return this._processResponse(n,this.requestOptions)})}postJson(t,r,n={}){return m(this,void 0,void 0,function*(){let i=JSON.stringify(r,null,2);n[v.Accept]=this._getExistingOrDefaultHeader(n,v.Accept,M.ApplicationJson),n[v.ContentType]=this._getExistingOrDefaultHeader(n,v.ContentType,M.ApplicationJson);let s=yield this.post(t,i,n);return this._processResponse(s,this.requestOptions)})}putJson(t,r,n={}){return m(this,void 0,void 0,function*(){let i=JSON.stringify(r,null,2);n[v.Accept]=this._getExistingOrDefaultHeader(n,v.Accept,M.ApplicationJson),n[v.ContentType]=this._getExistingOrDefaultHeader(n,v.ContentType,M.ApplicationJson);let s=yield this.put(t,i,n);return this._processResponse(s,this.requestOptions)})}patchJson(t,r,n={}){return m(this,void 0,void 0,function*(){let i=JSON.stringify(r,null,2);n[v.Accept]=this._getExistingOrDefaultHeader(n,v.Accept,M.ApplicationJson),n[v.ContentType]=this._getExistingOrDefaultHeader(n,v.ContentType,M.ApplicationJson);let s=yield this.patch(t,i,n);return this._processResponse(s,this.requestOptions)})}request(t,r,n,i){return m(this,void 0,void 0,function*(){if(this._disposed)throw new Error("Client has already been disposed.");let s=new URL(r),o=this._prepareRequest(t,s,i),c=this._allowRetries&&Ir.includes(t)?this._maxRetries+1:1,u=0,a;do{if(a=yield this.requestRaw(o,n),a&&a.message&&a.message.statusCode===P.Unauthorized){let h;for(let d of this.handlers)if(d.canHandleAuthentication(a)){h=d;break}return h?h.handleAuthentication(this,o,n):a}let l=this._maxRedirects;for(;a.message.statusCode&&Br.includes(a.message.statusCode)&&this._allowRedirects&&l>0;){let h=a.message.headers.location;if(!h)break;let d=new URL(h);if(s.protocol==="https:"&&s.protocol!==d.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");if(yield a.readBody(),d.hostname!==s.hostname)for(let O in i)O.toLowerCase()==="authorization"&&delete i[O];o=this._prepareRequest(t,d,i),a=yield this.requestRaw(o,n),l--}if(!a.message.statusCode||!Nr.includes(a.message.statusCode))return a;u+=1,u{function s(o,c){o?i(o):c?n(c):i(new Error("Unknown error"))}this.requestRawWithCallback(t,r,s)})})}requestRawWithCallback(t,r,n){typeof r=="string"&&(t.options.headers||(t.options.headers={}),t.options.headers["Content-Length"]=Buffer.byteLength(r,"utf8"));let i=!1;function s(u,a){i||(i=!0,n(u,a))}let o=t.httpModule.request(t.options,u=>{let a=new te(u);s(void 0,a)}),c;o.on("socket",u=>{c=u}),o.setTimeout(this._socketTimeout||3*6e4,()=>{c&&c.end(),s(new Error(`Request timeout: ${t.options.path}`))}),o.on("error",function(u){s(u)}),r&&typeof r=="string"&&o.write(r,"utf8"),r&&typeof r!="string"?(r.on("close",function(){o.end()}),r.pipe(o)):o.end()}getAgent(t){let r=new URL(t);return this._getAgent(r)}_prepareRequest(t,r,n){let i={};i.parsedUrl=r;let s=i.parsedUrl.protocol==="https:";i.httpModule=s?me:Q;let o=s?443:80;if(i.options={},i.options.host=i.parsedUrl.hostname,i.options.port=i.parsedUrl.port?parseInt(i.parsedUrl.port):o,i.options.path=(i.parsedUrl.pathname||"")+(i.parsedUrl.search||""),i.options.method=t,i.options.headers=this._mergeHeaders(n),this.userAgent!=null&&(i.options.headers["user-agent"]=this.userAgent),i.options.agent=this._getAgent(i.parsedUrl),this.handlers)for(let c of this.handlers)c.prepareRequest(i.options);return i}_mergeHeaders(t){return this.requestOptions&&this.requestOptions.headers?Object.assign({},Z(this.requestOptions.headers),Z(t||{})):Z(t||{})}_getExistingOrDefaultHeader(t,r,n){let i;return this.requestOptions&&this.requestOptions.headers&&(i=Z(this.requestOptions.headers)[r]),t[r]||i||n}_getAgent(t){let r,n=Pt.getProxyUrl(t),i=n&&n.hostname;if(this._keepAlive&&i&&(r=this._proxyAgent),this._keepAlive&&!i&&(r=this._agent),r)return r;let s=t.protocol==="https:",o=100;if(this.requestOptions&&(o=this.requestOptions.maxSockets||Q.globalAgent.maxSockets),n&&n.hostname){let c={maxSockets:o,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})},u,a=n.protocol==="https:";s?u=a?X.httpsOverHttps:X.httpsOverHttp:u=a?X.httpOverHttps:X.httpOverHttp,r=u(c),this._proxyAgent=r}if(this._keepAlive&&!r){let c={keepAlive:this._keepAlive,maxSockets:o};r=s?new me.Agent(c):new Q.Agent(c),this._agent=r}return r||(r=s?me.globalAgent:Q.globalAgent),s&&this._ignoreSslError&&(r.options=Object.assign(r.options||{},{rejectUnauthorized:!1})),r}_performExponentialBackoff(t){return m(this,void 0,void 0,function*(){t=Math.min($r,t);let r=Lr*Math.pow(2,t);return new Promise(n=>setTimeout(()=>n(),r))})}_processResponse(t,r){return m(this,void 0,void 0,function*(){return new Promise((n,i)=>m(this,void 0,void 0,function*(){let s=t.message.statusCode||0,o={statusCode:s,result:null,headers:{}};s===P.NotFound&&n(o);function c(l,h){if(typeof h=="string"){let d=new Date(h);if(!isNaN(d.valueOf()))return d}return h}let u,a;try{a=yield t.readBody(),a&&a.length>0&&(r&&r.deserializeDates?u=JSON.parse(a,c):u=JSON.parse(a),o.result=u),o.headers=t.message.headers}catch(l){}if(s>299){let l;u&&u.message?l=u.message:a&&a.length>0?l=a:l=`Failed request: (${s})`;let h=new ee(l,s);h.result=o.result,i(h)}else n(o)}))})}};p.HttpClient=_e;var Z=e=>Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{})});var Oe=y(T=>{"use strict";var be=T&&T.__awaiter||function(e,t,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function c(l){try{a(n.next(l))}catch(h){o(h)}}function u(l){try{a(n.throw(l))}catch(h){o(h)}}function a(l){l.done?s(l.value):i(l.value).then(c,u)}a((n=n.apply(e,t||[])).next())})};Object.defineProperty(T,"__esModule",{value:!0});T.PersonalAccessTokenCredentialHandler=T.BearerCredentialHandler=T.BasicCredentialHandler=void 0;var ve=class{constructor(t,r){this.username=t,this.password=r}prepareRequest(t){if(!t.headers)throw Error("The request has no headers");t.headers.Authorization=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return!1}handleAuthentication(){return be(this,void 0,void 0,function*(){throw new Error("not implemented")})}};T.BasicCredentialHandler=ve;var ye=class{constructor(t){this.token=t}prepareRequest(t){if(!t.headers)throw Error("The request has no headers");t.headers.Authorization=`Bearer ${this.token}`}canHandleAuthentication(){return!1}handleAuthentication(){return be(this,void 0,void 0,function*(){throw new Error("not implemented")})}};T.BearerCredentialHandler=ye;var we=class{constructor(t){this.token=t}prepareRequest(t){if(!t.headers)throw Error("The request has no headers");t.headers.Authorization=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return!1}handleAuthentication(){return be(this,void 0,void 0,function*(){throw new Error("not implemented")})}};T.PersonalAccessTokenCredentialHandler=we});var xt=y(L=>{"use strict";var Tt=L&&L.__awaiter||function(e,t,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function c(l){try{a(n.next(l))}catch(h){o(h)}}function u(l){try{a(n.throw(l))}catch(h){o(h)}}function a(l){l.done?s(l.value):i(l.value).then(c,u)}a((n=n.apply(e,t||[])).next())})};Object.defineProperty(L,"__esModule",{value:!0});L.OidcClient=void 0;var Vr=ge(),Fr=Oe(),At=Ee(),Se=class e{static createHttpClient(t=!0,r=10){let n={allowRetries:t,maxRetries:r};return new Vr.HttpClient("actions/oidc-client",[new Fr.BearerCredentialHandler(e.getRequestToken())],n)}static getRequestToken(){let t=process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;if(!t)throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable");return t}static getIDTokenUrl(){let t=process.env.ACTIONS_ID_TOKEN_REQUEST_URL;if(!t)throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable");return t}static getCall(t){var r;return Tt(this,void 0,void 0,function*(){let s=(r=(yield e.createHttpClient().getJson(t).catch(o=>{throw new Error(`Failed to get ID Token. Error Code : ${o.statusCode} - Error Message: ${o.result.message}`)})).result)===null||r===void 0?void 0:r.value;if(!s)throw new Error("Response json body do not have ID Token field");return s})}static getIDToken(t){return Dt(this,void 0,void 0,function*(){try{let r=x.getIDTokenUrl();if(t){let i=encodeURIComponent(t);r=`${r}&audience=${i}`}Nt.debug(`ID token url is ${r}`);let n=yield x.getCall(r);return Nt.setSecret(n),n}catch(r){throw new Error(`Error message: ${r.message}`)}})}};j.OidcClient=x});var Ie=_(w=>{"use strict";var xe=w&&w.__awaiter||function(e,t,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function c(l){try{a(n.next(l))}catch(d){o(d)}}function u(l){try{a(n.throw(l))}catch(d){o(d)}}function a(l){l.done?s(l.value):i(l.value).then(c,u)}a((n=n.apply(e,t||[])).next())})};Object.defineProperty(w,"__esModule",{value:!0});w.summary=w.markdownSummary=w.SUMMARY_DOCS_URL=w.SUMMARY_ENV_VAR=void 0;var Fn=require("os"),De=require("fs"),{access:Gn,appendFile:Jn,writeFile:Hn}=De.promises;w.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";w.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";var Ne=class{constructor(){this._buffer=""}filePath(){return xe(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let t=process.env[w.SUMMARY_ENV_VAR];if(!t)throw new Error(`Unable to find environment variable for $${w.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield Gn(t,De.constants.R_OK|De.constants.W_OK)}catch(r){throw new Error(`Unable to access summary file: '${t}'. Check if the file has correct read/write permissions.`)}return this._filePath=t,this._filePath})}wrap(t,r,n={}){let i=Object.entries(n).map(([s,o])=>` ${s}="${o}"`).join("");return r?`<${t}${i}>${r}`:`<${t}${i}>`}write(t){return xe(this,void 0,void 0,function*(){let r=!!(t!=null&&t.overwrite),n=yield this.filePath();return yield(r?Hn:Jn)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return xe(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(t,r=!1){return this._buffer+=t,r?this.addEOL():this}addEOL(){return this.addRaw(Fn.EOL)}addCodeBlock(t,r){let n=Object.assign({},r&&{lang:r}),i=this.wrap("pre",this.wrap("code",t),n);return this.addRaw(i).addEOL()}addList(t,r=!1){let n=r?"ol":"ul",i=t.map(o=>this.wrap("li",o)).join(""),s=this.wrap(n,i);return this.addRaw(s).addEOL()}addTable(t){let r=t.map(i=>{let s=i.map(o=>{if(typeof o=="string")return this.wrap("td",o);let{header:c,data:u,colspan:a,rowspan:l}=o,d=c?"th":"td",h=Object.assign(Object.assign({},a&&{colspan:a}),l&&{rowspan:l});return this.wrap(d,u,h)}).join("");return this.wrap("tr",s)}).join(""),n=this.wrap("table",r);return this.addRaw(n).addEOL()}addDetails(t,r){let n=this.wrap("details",this.wrap("summary",t)+r);return this.addRaw(n).addEOL()}addImage(t,r,n){let{width:i,height:s}=n||{},o=Object.assign(Object.assign({},i&&{width:i}),s&&{height:s}),c=this.wrap("img",null,Object.assign({src:t,alt:r},o));return this.addRaw(c).addEOL()}addHeading(t,r){let n=`h${r}`,i=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",s=this.wrap(i,t);return this.addRaw(s).addEOL()}addSeparator(){let t=this.wrap("hr",null);return this.addRaw(t).addEOL()}addBreak(){let t=this.wrap("br",null);return this.addRaw(t).addEOL()}addQuote(t,r){let n=Object.assign({},r&&{cite:r}),i=this.wrap("blockquote",t,n);return this.addRaw(i).addEOL()}addLink(t,r){let n=this.wrap("a",t,{href:r});return this.addRaw(n).addEOL()}},Bt=new Ne;w.markdownSummary=Bt;w.summary=Bt});var $t=_(O=>{"use strict";var Kn=O&&O.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),zn=O&&O.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Wn=O&&O.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.hasOwnProperty.call(e,r)&&Kn(t,e,r);return zn(t,e),t};Object.defineProperty(O,"__esModule",{value:!0});O.toPlatformPath=O.toWin32Path=O.toPosixPath=void 0;var Yn=Wn(require("path"));function Qn(e){return e.replace(/[\\]/g,"/")}O.toPosixPath=Qn;function Xn(e){return e.replace(/[/]/g,"\\")}O.toWin32Path=Xn;function Zn(e){return e.replace(/[/\\]/g,Yn.sep)}O.toPlatformPath=Zn});var Ue=_(f=>{"use strict";var ei=f&&f.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),ti=f&&f.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Lt=f&&f.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.hasOwnProperty.call(e,r)&&ei(t,e,r);return ti(t,e),t},kt=f&&f.__awaiter||function(e,t,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function c(l){try{a(n.next(l))}catch(d){o(d)}}function u(l){try{a(n.throw(l))}catch(d){o(d)}}function a(l){l.done?s(l.value):i(l.value).then(c,u)}a((n=n.apply(e,t||[])).next())})};Object.defineProperty(f,"__esModule",{value:!0});f.getIDToken=f.getState=f.saveState=f.group=f.endGroup=f.startGroup=f.info=f.notice=f.warning=f.error=f.debug=f.isDebug=f.setFailed=f.setCommandEcho=f.setOutput=f.getBooleanInput=f.getMultilineInput=f.getInput=f.addPath=f.setSecret=f.exportVariable=f.ExitCode=void 0;var S=rt(),N=St(),V=H(),jt=Lt(require("os")),ri=Lt(require("path")),ni=It(),Vt;(function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"})(Vt=f.ExitCode||(f.ExitCode={}));function ii(e,t){let r=V.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV||"")return N.issueFileCommand("ENV",N.prepareKeyValueMessage(e,t));S.issueCommand("set-env",{name:e},r)}f.exportVariable=ii;function si(e){S.issueCommand("add-mask",{},e)}f.setSecret=si;function oi(e){process.env.GITHUB_PATH||""?N.issueFileCommand("PATH",e):S.issueCommand("add-path",{},e),process.env.PATH=`${e}${ri.delimiter}${process.env.PATH}`}f.addPath=oi;function Be(e,t){let r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r)throw new Error(`Input required and not supplied: ${e}`);return t&&t.trimWhitespace===!1?r:r.trim()}f.getInput=Be;function ai(e,t){let r=Be(e,t).split(` -`).filter(n=>n!=="");return t&&t.trimWhitespace===!1?r:r.map(n=>n.trim())}f.getMultilineInput=ai;function ui(e,t){let r=["true","True","TRUE"],n=["false","False","FALSE"],i=Be(e,t);if(r.includes(i))return!0;if(n.includes(i))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e} -Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}f.getBooleanInput=ui;function ci(e,t){if(process.env.GITHUB_OUTPUT||"")return N.issueFileCommand("OUTPUT",N.prepareKeyValueMessage(e,t));process.stdout.write(jt.EOL),S.issueCommand("set-output",{name:e},V.toCommandValue(t))}f.setOutput=ci;function li(e){S.issue("echo",e?"on":"off")}f.setCommandEcho=li;function fi(e){process.exitCode=Vt.Failure,Ft(e)}f.setFailed=fi;function di(){return process.env.RUNNER_DEBUG==="1"}f.isDebug=di;function hi(e){S.issueCommand("debug",{},e)}f.debug=hi;function Ft(e,t={}){S.issueCommand("error",V.toCommandProperties(t),e instanceof Error?e.toString():e)}f.error=Ft;function pi(e,t={}){S.issueCommand("warning",V.toCommandProperties(t),e instanceof Error?e.toString():e)}f.warning=pi;function _i(e,t={}){S.issueCommand("notice",V.toCommandProperties(t),e instanceof Error?e.toString():e)}f.notice=_i;function vi(e){process.stdout.write(e+jt.EOL)}f.info=vi;function Gt(e){S.issue("group",e)}f.startGroup=Gt;function Jt(){S.issue("endgroup")}f.endGroup=Jt;function mi(e,t){return kt(this,void 0,void 0,function*(){Gt(e);let r;try{r=yield t()}finally{Jt()}return r})}f.group=mi;function gi(e,t){if(process.env.GITHUB_STATE||"")return N.issueFileCommand("STATE",N.prepareKeyValueMessage(e,t));S.issueCommand("save-state",{name:e},V.toCommandValue(t))}f.saveState=gi;function yi(e){return process.env[`STATE_${e}`]||""}f.getState=yi;function wi(e){return kt(this,void 0,void 0,function*(){return yield ni.OidcClient.getIDToken(e)})}f.getIDToken=wi;var Oi=Ie();Object.defineProperty(f,"summary",{enumerable:!0,get:function(){return Oi.summary}});var bi=Ie();Object.defineProperty(f,"markdownSummary",{enumerable:!0,get:function(){return bi.markdownSummary}});var $e=$t();Object.defineProperty(f,"toPosixPath",{enumerable:!0,get:function(){return $e.toPosixPath}});Object.defineProperty(f,"toWin32Path",{enumerable:!0,get:function(){return $e.toWin32Path}});Object.defineProperty(f,"toPlatformPath",{enumerable:!0,get:function(){return $e.toPlatformPath}})});var Kt={};Ye(Kt,{ActionsCache:()=>je});function Le(e){return e?200<=e&&e<300:!1}var ke,Ht,je,zt=We(()=>{"use strict";ke=de(Ee()),Ht=de(Me());je=class{constructor(t,r){this.baseUrl=t,this.token=r,this.httpClient=new ke.HttpClient("bazel-github-actions-cache",[new Ht.BearerCredentialHandler(r)],{headers:{Accept:"application/json;api-version=6.0-preview.1"}})}putCache(t,r,n,i){return I(this,null,function*(){var g;let c={key:`${t}-${r}`,version:"b",cacheSize:n},u=yield this.httpClient.postJson(`${this.baseUrl}caches`,c),a=(g=u==null?void 0:u.result)==null?void 0:g.cacheId;if(!a)return i.resume(),!1;let l=yield this.httpClient.sendStream("PATCH",`${this.baseUrl}caches/${a}`,i,{"Content-Type":"application/octet-stream","Content-Range":`bytes 0-${n-1}/*`});if(!Le(l.message.statusCode))return i.resume(),!1;let d={size:n},h=yield this.httpClient.postJson(`${this.baseUrl}caches/${a}`,d);return!!Le(h.statusCode)})}getCache(t,r){return I(this,null,function*(){var a;let n=`${t}-${r}`,i="b",s=yield this.httpClient.getJson(`${this.baseUrl}cache?keys=${n}&version=${i}`),o=(a=s==null?void 0:s.result)==null?void 0:a.archiveLocation;if(!o)return null;let u=yield new ke.HttpClient("bazel-github-actions-cache").get(o);return Le(u.message.statusCode)?u.message:(u.message.resume(),null)})}}});var Yt={};Ye(Yt,{HttpServer:()=>Fe});var Wt,Ve,Fe,Qt=We(()=>{"use strict";Wt=de(require("http")),Ve=require("url"),Fe=class extends Wt.Server{constructor(r){super();this.n_get=0;this.n_get_hit=0;this.n_put=0;this.n_put_succ=0;this.n_put_bytes=0;this.actionsCache=r,this.on("request",this.onRequest)}getStats(){return{n_get:this.n_get,n_get_hit:this.n_get_hit,n_put:this.n_put,n_put_succ:this.n_put_succ,n_put_bytes:this.n_put_bytes}}get_close(r,n){this.close(),n.writeHead(200,{"Content-type":"application/json"}),n.end(JSON.stringify(this.getStats()))}get_cas(r,n){return I(this,null,function*(){var u,a,l,d,h;let i=(0,Ve.parse)((u=r.url)!=null?u:""),s=(l=(a=i.pathname)==null?void 0:a.startsWith("/cas/"))!=null?l:!1,o=(h=(d=i.pathname)==null?void 0:d.substring(s?5:4))!=null?h:"",c=s?"cas":"ac";if(r.method=="PUT"){this.n_put+=1;let g=Number(r.headers["content-length"]),T=!1;try{T=yield this.actionsCache.putCache(c,o,g,r)}catch(xi){}T?(this.n_put_succ+=1,this.n_put_bytes+=g,n.writeHead(200)):n.writeHead(500),n.end()}else if(r.method=="GET"){this.n_get+=1;let g=null;try{g=yield this.actionsCache.getCache(c,o)}catch(T){}g?(this.n_get_hit+=1,n.writeHead(200,{"Content-Type":"application/octet-stream"}),g.pipe(n)):(n.writeHead(404),n.end())}})}onRequest(r,n){return I(this,null,function*(){var s,o,c,u;let i=(0,Ve.parse)((s=r.url)!=null?s:"");i.pathname=="/close"?this.get_close(r,n):(o=i.pathname)!=null&&o.startsWith("/_apis/artifactcache/")?(n.writeHead(404),n.end()):((c=i.pathname)==null?void 0:c.startsWith("/cas/"))||((u=i.pathname)==null?void 0:u.startsWith("/ac/"))?this.get_cas(r,n):(n.writeHead(404),n.end())})}}});var Ri=exports&&exports.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Si=exports&&exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Pi=exports&&exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&Ri(t,e,r);return Si(t,e),t};Object.defineProperty(exports,"__esModule",{value:!0});var Ei=require("child_process"),qi=Pi(Ue()),Ti=(zt(),Xe(Kt)),Ai=(Qt(),Xe(Yt)),Ci=[];function Mi(e){qi.debug(e),Ci.push(e)}process.env.IS_BACKGROUND?Ui():(console.log("spawning"),Mi("foreground"),(0,Ei.spawn)(process.execPath,process.argv.slice(1),{detached:!0,stdio:"inherit",env:ze(Ke({},process.env),{IS_BACKGROUND:"1"})}).unref());function Ui(){var s;let t=`${process.env.ACTIONS_CACHE_URL||"http://localhost:3056/"}_apis/artifactcache/`,r=(s=process.env.ACTIONS_RUNTIME_TOKEN)!=null?s:"",n=new Ti.ActionsCache(t,r),i=new Ai.HttpServer(n);i.on("close",()=>{console.log("Goodbye: "+JSON.stringify(i.getStats()))}),i.listen(3055)} + Error Message: ${o.result.message}`)})).result)===null||r===void 0?void 0:r.value;if(!s)throw new Error("Response json body do not have ID Token field");return s})}static getIDToken(t){return Tt(this,void 0,void 0,function*(){try{let r=e.getIDTokenUrl();if(t){let i=encodeURIComponent(t);r=`${r}&audience=${i}`}At.debug(`ID token url is ${r}`);let n=yield e.getCall(r);return At.setSecret(n),n}catch(r){throw new Error(`Error message: ${r.message}`)}})}};L.OidcClient=Se});var Ae=y(w=>{"use strict";var Re=w&&w.__awaiter||function(e,t,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function c(l){try{a(n.next(l))}catch(h){o(h)}}function u(l){try{a(n.throw(l))}catch(h){o(h)}}function a(l){l.done?s(l.value):i(l.value).then(c,u)}a((n=n.apply(e,t||[])).next())})};Object.defineProperty(w,"__esModule",{value:!0});w.summary=w.markdownSummary=w.SUMMARY_DOCS_URL=w.SUMMARY_ENV_VAR=void 0;var Gr=require("os"),Pe=require("fs"),{access:Hr,appendFile:Jr,writeFile:Kr}=Pe.promises;w.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";w.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";var Te=class{constructor(){this._buffer=""}filePath(){return Re(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let t=process.env[w.SUMMARY_ENV_VAR];if(!t)throw new Error(`Unable to find environment variable for $${w.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield Hr(t,Pe.constants.R_OK|Pe.constants.W_OK)}catch(r){throw new Error(`Unable to access summary file: '${t}'. Check if the file has correct read/write permissions.`)}return this._filePath=t,this._filePath})}wrap(t,r,n={}){let i=Object.entries(n).map(([s,o])=>` ${s}="${o}"`).join("");return r?`<${t}${i}>${r}`:`<${t}${i}>`}write(t){return Re(this,void 0,void 0,function*(){let r=!!(t!=null&&t.overwrite),n=yield this.filePath();return yield(r?Kr:Jr)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return Re(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(t,r=!1){return this._buffer+=t,r?this.addEOL():this}addEOL(){return this.addRaw(Gr.EOL)}addCodeBlock(t,r){let n=Object.assign({},r&&{lang:r}),i=this.wrap("pre",this.wrap("code",t),n);return this.addRaw(i).addEOL()}addList(t,r=!1){let n=r?"ol":"ul",i=t.map(o=>this.wrap("li",o)).join(""),s=this.wrap(n,i);return this.addRaw(s).addEOL()}addTable(t){let r=t.map(i=>{let s=i.map(o=>{if(typeof o=="string")return this.wrap("td",o);let{header:c,data:u,colspan:a,rowspan:l}=o,h=c?"th":"td",d=Object.assign(Object.assign({},a&&{colspan:a}),l&&{rowspan:l});return this.wrap(h,u,d)}).join("");return this.wrap("tr",s)}).join(""),n=this.wrap("table",r);return this.addRaw(n).addEOL()}addDetails(t,r){let n=this.wrap("details",this.wrap("summary",t)+r);return this.addRaw(n).addEOL()}addImage(t,r,n){let{width:i,height:s}=n||{},o=Object.assign(Object.assign({},i&&{width:i}),s&&{height:s}),c=this.wrap("img",null,Object.assign({src:t,alt:r},o));return this.addRaw(c).addEOL()}addHeading(t,r){let n=`h${r}`,i=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",s=this.wrap(i,t);return this.addRaw(s).addEOL()}addSeparator(){let t=this.wrap("hr",null);return this.addRaw(t).addEOL()}addBreak(){let t=this.wrap("br",null);return this.addRaw(t).addEOL()}addQuote(t,r){let n=Object.assign({},r&&{cite:r}),i=this.wrap("blockquote",t,n);return this.addRaw(i).addEOL()}addLink(t,r){let n=this.wrap("a",t,{href:r});return this.addRaw(n).addEOL()}},Ct=new Te;w.markdownSummary=Ct;w.summary=Ct});var qt=y(b=>{"use strict";var zr=b&&b.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Wr=b&&b.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Yr=b&&b.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.hasOwnProperty.call(e,r)&&zr(t,e,r);return Wr(t,e),t};Object.defineProperty(b,"__esModule",{value:!0});b.toPlatformPath=b.toWin32Path=b.toPosixPath=void 0;var Qr=Yr(require("path"));function Xr(e){return e.replace(/[\\]/g,"/")}b.toPosixPath=Xr;function Zr(e){return e.replace(/[/]/g,"\\")}b.toWin32Path=Zr;function en(e){return e.replace(/[/\\]/g,Qr.sep)}b.toPlatformPath=en});var Ee=y(f=>{"use strict";var tn=f&&f.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),rn=f&&f.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Ut=f&&f.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.hasOwnProperty.call(e,r)&&tn(t,e,r);return rn(t,e),t},Mt=f&&f.__awaiter||function(e,t,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function c(l){try{a(n.next(l))}catch(h){o(h)}}function u(l){try{a(n.throw(l))}catch(h){o(h)}}function a(l){l.done?s(l.value):i(l.value).then(c,u)}a((n=n.apply(e,t||[])).next())})};Object.defineProperty(f,"__esModule",{value:!0});f.getIDToken=f.getState=f.saveState=f.group=f.endGroup=f.startGroup=f.info=f.notice=f.warning=f.error=f.debug=f.isDebug=f.setFailed=f.setCommandEcho=f.setOutput=f.getBooleanInput=f.getMultilineInput=f.getInput=f.addPath=f.setSecret=f.exportVariable=f.ExitCode=void 0;var R=Fe(),j=gt(),k=J(),jt=Ut(require("os")),nn=Ut(require("path")),sn=xt(),Dt;(function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"})(Dt=f.ExitCode||(f.ExitCode={}));function on(e,t){let r=k.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV||"")return j.issueFileCommand("ENV",j.prepareKeyValueMessage(e,t));R.issueCommand("set-env",{name:e},r)}f.exportVariable=on;function an(e){R.issueCommand("add-mask",{},e)}f.setSecret=an;function un(e){process.env.GITHUB_PATH||""?j.issueFileCommand("PATH",e):R.issueCommand("add-path",{},e),process.env.PATH=`${e}${nn.delimiter}${process.env.PATH}`}f.addPath=un;function xe(e,t){let r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r)throw new Error(`Input required and not supplied: ${e}`);return t&&t.trimWhitespace===!1?r:r.trim()}f.getInput=xe;function cn(e,t){let r=xe(e,t).split(` +`).filter(n=>n!=="");return t&&t.trimWhitespace===!1?r:r.map(n=>n.trim())}f.getMultilineInput=cn;function ln(e,t){let r=["true","True","TRUE"],n=["false","False","FALSE"],i=xe(e,t);if(r.includes(i))return!0;if(n.includes(i))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e} +Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}f.getBooleanInput=ln;function fn(e,t){if(process.env.GITHUB_OUTPUT||"")return j.issueFileCommand("OUTPUT",j.prepareKeyValueMessage(e,t));process.stdout.write(jt.EOL),R.issueCommand("set-output",{name:e},k.toCommandValue(t))}f.setOutput=fn;function hn(e){R.issue("echo",e?"on":"off")}f.setCommandEcho=hn;function dn(e){process.exitCode=Dt.Failure,Bt(e)}f.setFailed=dn;function pn(){return process.env.RUNNER_DEBUG==="1"}f.isDebug=pn;function mn(e){R.issueCommand("debug",{},e)}f.debug=mn;function Bt(e,t={}){R.issueCommand("error",k.toCommandProperties(t),e instanceof Error?e.toString():e)}f.error=Bt;function _n(e,t={}){R.issueCommand("warning",k.toCommandProperties(t),e instanceof Error?e.toString():e)}f.warning=_n;function gn(e,t={}){R.issueCommand("notice",k.toCommandProperties(t),e instanceof Error?e.toString():e)}f.notice=gn;function vn(e){process.stdout.write(e+jt.EOL)}f.info=vn;function Nt(e){R.issue("group",e)}f.startGroup=Nt;function It(){R.issue("endgroup")}f.endGroup=It;function yn(e,t){return Mt(this,void 0,void 0,function*(){Nt(e);let r;try{r=yield t()}finally{It()}return r})}f.group=yn;function wn(e,t){if(process.env.GITHUB_STATE||"")return j.issueFileCommand("STATE",j.prepareKeyValueMessage(e,t));R.issueCommand("save-state",{name:e},k.toCommandValue(t))}f.saveState=wn;function bn(e){return process.env[`STATE_${e}`]||""}f.getState=bn;function On(e){return Mt(this,void 0,void 0,function*(){return yield sn.OidcClient.getIDToken(e)})}f.getIDToken=On;var Sn=Ae();Object.defineProperty(f,"summary",{enumerable:!0,get:function(){return Sn.summary}});var En=Ae();Object.defineProperty(f,"markdownSummary",{enumerable:!0,get:function(){return En.markdownSummary}});var Ce=qt();Object.defineProperty(f,"toPosixPath",{enumerable:!0,get:function(){return Ce.toPosixPath}});Object.defineProperty(f,"toWin32Path",{enumerable:!0,get:function(){return Ce.toWin32Path}});Object.defineProperty(f,"toPlatformPath",{enumerable:!0,get:function(){return Ce.toPlatformPath}})});var Lt=y(ne=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0});ne.ActionsCache=void 0;var $t=ge(),Rn=Oe();function qe(e){return e?200<=e&&e<300:!1}var Ue=class{constructor(t,r){this.baseUrl=t,this.token=r,this.httpClient=new $t.HttpClient("bazel-github-actions-cache",[new Rn.BearerCredentialHandler(r)],{headers:{Accept:"application/json;api-version=6.0-preview.1"}})}putCache(t,r,n,i){return B(this,null,function*(){var O;let c={key:`${t}-${r}`,version:"b",cacheSize:n},u=yield this.httpClient.postJson(`${this.baseUrl}caches`,c),a=(O=u==null?void 0:u.result)==null?void 0:O.cacheId;if(!a)return i.resume(),!1;let l=yield this.httpClient.sendStream("PATCH",`${this.baseUrl}caches/${a}`,i,{"Content-Type":"application/octet-stream","Content-Range":`bytes 0-${n-1}/*`});if(!qe(l.message.statusCode))return i.resume(),!1;let h={size:n},d=yield this.httpClient.postJson(`${this.baseUrl}caches/${a}`,h);return!!qe(d.statusCode)})}getCache(t,r){return B(this,null,function*(){var a;let n=`${t}-${r}`,i="b",s=yield this.httpClient.getJson(`${this.baseUrl}cache?keys=${n}&version=${i}`),o=(a=s==null?void 0:s.result)==null?void 0:a.archiveLocation;if(!o)return null;let u=yield new $t.HttpClient("bazel-github-actions-cache").get(o);return qe(u.message.statusCode)?u.message:(u.message.resume(),null)})}};ne.ActionsCache=Ue});var Vt=y(A=>{"use strict";var Pn=A&&A.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Tn=A&&A.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),An=A&&A.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&Pn(t,e,r);return Tn(t,e),t};Object.defineProperty(A,"__esModule",{value:!0});A.HttpServer=void 0;var xn=An(require("http")),kt=require("url"),Me=class extends xn.Server{constructor(t){super(),this.n_get=0,this.n_get_hit=0,this.n_put=0,this.n_put_succ=0,this.n_put_bytes=0,this.actionsCache=t,this.on("request",this.onRequest)}getStats(){return{n_get:this.n_get,n_get_hit:this.n_get_hit,n_put:this.n_put,n_put_succ:this.n_put_succ,n_put_bytes:this.n_put_bytes}}get_close(t,r){this.close(),r.writeHead(200,{"Content-type":"application/json"}),r.end(JSON.stringify(this.getStats()))}get_cas(t,r){return B(this,null,function*(){var c,u,a,l,h;let n=(0,kt.parse)((c=t.url)!=null?c:""),i=(a=(u=n.pathname)==null?void 0:u.startsWith("/cas/"))!=null?a:!1,s=(h=(l=n.pathname)==null?void 0:l.substring(i?5:4))!=null?h:"",o=i?"cas":"ac";if(t.method=="PUT"){this.n_put+=1;let d=Number(t.headers["content-length"]),O=!1;try{O=yield this.actionsCache.putCache(o,s,d,t)}catch(D){}O?(this.n_put_succ+=1,this.n_put_bytes+=d,r.writeHead(200)):r.writeHead(500),r.end()}else if(t.method=="GET"){this.n_get+=1;let d=null;try{d=yield this.actionsCache.getCache(o,s)}catch(O){}d?(this.n_get_hit+=1,r.writeHead(200,{"Content-Type":"application/octet-stream"}),d.pipe(r)):(r.writeHead(404),r.end())}})}onRequest(t,r){return B(this,null,function*(){var i,s,o,c;let n=(0,kt.parse)((i=t.url)!=null?i:"");n.pathname=="/close"?this.get_close(t,r):(s=n.pathname)!=null&&s.startsWith("/_apis/artifactcache/")?(r.writeHead(404),r.end()):(o=n.pathname)!=null&&o.startsWith("/cas/")||(c=n.pathname)!=null&&c.startsWith("/ac/")?this.get_cas(t,r):(r.writeHead(404),r.end())})}};A.HttpServer=Me});var Cn=exports&&exports.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),qn=exports&&exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Un=exports&&exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&Cn(t,e,r);return qn(t,e),t};Object.defineProperty(exports,"__esModule",{value:!0});var Mn=require("child_process"),jn=Un(Ee()),Dn=Lt(),Bn=Vt(),Nn=[];function In(e){jn.debug(e),Nn.push(e)}process.env.IS_BACKGROUND?$n():(console.log("spawning"),In("foreground"),(0,Mn.spawn)(process.execPath,process.argv.slice(1),{detached:!0,stdio:"inherit",env:Ie(Ne({},process.env),{IS_BACKGROUND:"1"})}).unref());function $n(){var s;let t=`${process.env.ACTIONS_CACHE_URL||"http://localhost:3056/"}_apis/artifactcache/`,r=(s=process.env.ACTIONS_RUNTIME_TOKEN)!=null?s:"",n=new Dn.ActionsCache(t,r),i=new Bn.HttpServer(n);i.on("close",()=>{console.log("Goodbye: "+JSON.stringify(i.getStats()))}),i.listen(3055)}