[bot] Update dist directory

This commit is contained in:
bot-githubaction committed 2026-09-01 21:00:35 +00:00
1 parent 02d4784b6e
commit a27deee331
8 files changed
+90 -90

No files matched your search

+17 -17
View File
@@ -44,7 +44,7 @@ ${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};Wie.exports=rO});var EN=C((dzt,$ie)=>{"use strict";var zie=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:m7e}=_t(),E7e=Im();Kie()===void 0&&jie(new E7e);function jie(t){if(!t||typeof t.dispatch!="function")throw new m7e("Argument agent must implement Agent");Object.defineProperty(globalThis,zie,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Kie(){return globalThis[zie]}$ie.exports={setGlobalDispatcher:jie,getGlobalDispatcher:Kie}});var CN=C((fzt,Xie)=>{"use strict";Xie.exports=class{#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var eoe=C((gzt,Zie)=>{"use strict";var C7e=$S();Zie.exports=t=>{let e=t?.maxRedirections;return r=>function(s,i){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,i);let c=new C7e(r,o,s,i);return r(a,c)}}});var roe=C((pzt,toe)=>{"use strict";var I7e=cN();toe.exports=t=>e=>function(n,s){return e(n,new I7e({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var soe=C((mzt,noe)=>{"use strict";var y7e=dt(),{InvalidArgumentError:B7e,RequestAbortedError:b7e}=_t(),Q7e=CN(),nO=class extends Q7e{#e=1024*1024;#t=null;#n=!1;#r=!1;#i=0;#s=null;#c=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new B7e("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#c=r}onConnect(e){this.#t=e,this.#c.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#s=e}onHeaders(e,r,n,s){let o=y7e.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new b7e(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#c.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#s??e,this.#c.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#n=!0,this.#r?this.#c.onError(this.#s):this.#c.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#c.onError(this.reason);return}this.#c.onComplete(e)}}};function w7e({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new nO({maxSize:i},s);return e(n,o)}}noe.exports=w7e});var aoe=C((Ezt,ooe)=>{"use strict";var{isIP:S7e}=Q("node:net"),{lookup:N7e}=Q("node:dns"),T7e=CN(),{InvalidArgumentError:Dm,InformationalError:x7e}=_t(),ioe=Math.pow(2,31)-1,sO=class{#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#i}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let s=this.#n.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){n(o??new x7e("No DNS entries found"));return}this.setRecords(e,a);let c=this.#n.get(e.hostname),A=this.pick(e,c,i.affinity),u;typeof A.port=="number"?u=`:${A.port}`:e.port!==""?u=`:${e.port}`:u="",n(null,`${e.protocol}//${A.family===6?`[${A.address}]`:A.address}${u}`)});else{let o=this.pick(e,s,i.affinity);if(o==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",n(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,n){N7e(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#i(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===ioe?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?a=i[n]:a=i[n===4?6:4]):a=i[n],a==null||a.ips.length===0)return s;a.offset==null||a.offset===ioe?a.offset=0:a.offset++;let c=a.offset%a.ips.length;return s=a.ips[c]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(a.ips.splice(c,1),this.pick(e,r,n)):s}setRecords(e,r){let n=Date.now(),s={records:{4:null,6:null}};for(let i of r){i.timestamp=n,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=s.records[i.family]??{ips:[]};o.ips.push(i),s.records[i.family]=o}this.#n.set(e.hostname,s)}getHandler(e,r){return new iO(this,e,r)}},iO=class extends T7e{#e=null;#t=null;#n=null;#r=null;#i=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#i=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,(r,n)=>{if(r) Line truncated
${i}`;break;case"retry":Pce(i)&&(r[s]=i);break;case"id":Oce(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&Pce(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Oce(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};Hce.exports={EventSourceStream:zO}});var Kce=C((jzt,jce)=>{"use strict";var{pipeline:Lje}=Q("node:stream"),{fetching:Uje}=fy(),{makeRequest:Pje}=_m(),{webidl:bu}=Xn(),{EventSourceStream:Oje}=Gce(),{parseMIMEType:Hje}=ei(),{createFastMessageEvent:Gje}=Om(),{isNetworkError:qce}=dy(),{delay:qje}=WO(),{kEnumerableProperty:hf}=dt(),{environmentSettingsObject:Yce}=vi(),Vce=!1,Wce=3e3,Ty=0,Jce=1,xy=2,Yje="anonymous",Vje="use-credentials",Vm=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=Ty;#i=null;#s=null;#c;#o;constructor(e,r={}){super(),bu.util.markAsUncloneable(this);let n="EventSource constructor";bu.argumentLengthCheck(arguments,1,n),Vce||(Vce=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=bu.converters.USVString(e,n,"url"),r=bu.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#c=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:Wce};let s=Yce,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=Yje;r.withCredentials&&(o=Vje,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=Yce.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=Pje(a),this.#a()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#a(){if(this.#r===xy)return;this.#r=Ty;let e={request:this.#i,dispatcher:this.#c},r=n=>{qce(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(qce(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#A();return}let s=n.headersList.get("content-type",!0),i=s!==null?Hje(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=Jce,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new Oje({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(Gje(c.type,c.options))}});Lje(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=Uje(e)}async#A(){this.#r!==xy&&(this.#r=Ty,this.dispatchEvent(new Event("error")),await qje(this.#o.reconnectionTime),this.#r===Ty&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#a()))}close(){bu.brandCheck(this,t),this.#r!==xy&&(this.#r=xy,this.#s.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},zce={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Ty,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Jce,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:xy,writable:!1}};Object.defineProperties(Vm,zce);Object.defineProperties(Vm.prototype,zce);Object.defineProperties(Vm.prototype,{close:hf,onerror:hf,onmessage:hf,onopen:hf,readyState:hf,url:hf,withCredentials:hf});bu.converters.EventSourceInitDict=bu.dictionaryConverter([{key:"withCredentials",converter:bu.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:bu.converters.any}]);jce.exports={EventSource:Vm,defaultReconnectionTime:Wce}});var aT=C((Kzt,ze)=>{"use strict";var Wje=Em(),$ce=vI(),Jje=Cm(),zje=zne(),jje=Im(),Kje=gP(),$je=Ese(),Xje=wse(),Xce=_t(),oT=dt(),{InvalidArgumentError:iT}=Xce,Wm=lie(),Zje=FI(),eKe=KP(),tKe=Jie(),rKe=ZP(),nKe=LP(),sKe=cN(),{getGlobalDispatcher:Zce,setGlobalDispatcher:iKe}=EN(),oKe=CN(),aKe=$S(),cKe=XS();Object.assign($ce.prototype,Wm);ze.exports.Dispatcher=$ce;ze.exports.Client=Wje;ze.exports.Pool=Jje;ze.exports.BalancedPool=zje;ze.exports.Agent=jje;ze.exports.ProxyAgent=Kje;ze.exports.EnvHttpProxyAgent=$je;ze.exports Line truncated
${i}`;break;case"retry":Pce(i)&&(r[s]=i);break;case"id":Oce(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&Pce(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Oce(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};Hce.exports={EventSourceStream:zO}});var Kce=C((jzt,jce)=>{"use strict";var{pipeline:Lje}=Q("node:stream"),{fetching:Uje}=fy(),{makeRequest:Pje}=_m(),{webidl:bu}=Xn(),{EventSourceStream:Oje}=Gce(),{parseMIMEType:Hje}=ei(),{createFastMessageEvent:Gje}=Om(),{isNetworkError:qce}=dy(),{delay:qje}=WO(),{kEnumerableProperty:hf}=dt(),{environmentSettingsObject:Yce}=vi(),Vce=!1,Wce=3e3,Ty=0,Jce=1,xy=2,Yje="anonymous",Vje="use-credentials",Vm=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=Ty;#i=null;#s=null;#c;#o;constructor(e,r={}){super(),bu.util.markAsUncloneable(this);let n="EventSource constructor";bu.argumentLengthCheck(arguments,1,n),Vce||(Vce=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=bu.converters.USVString(e,n,"url"),r=bu.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#c=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:Wce};let s=Yce,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=Yje;r.withCredentials&&(o=Vje,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=Yce.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=Pje(a),this.#a()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#a(){if(this.#r===xy)return;this.#r=Ty;let e={request:this.#i,dispatcher:this.#c},r=n=>{qce(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(qce(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#A();return}let s=n.headersList.get("content-type",!0),i=s!==null?Hje(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=Jce,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new Oje({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(Gje(c.type,c.options))}});Lje(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=Uje(e)}async#A(){this.#r!==xy&&(this.#r=Ty,this.dispatchEvent(new Event("error")),await qje(this.#o.reconnectionTime),this.#r===Ty&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#a()))}close(){bu.brandCheck(this,t),this.#r!==xy&&(this.#r=xy,this.#s.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},zce={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Ty,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Jce,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:xy,writable:!1}};Object.defineProperties(Vm,zce);Object.defineProperties(Vm.prototype,zce);Object.defineProperties(Vm.prototype,{close:hf,onerror:hf,onmessage:hf,onopen:hf,readyState:hf,url:hf,withCredentials:hf});bu.converters.EventSourceInitDict=bu.dictionaryConverter([{key:"withCredentials",converter:bu.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:bu.converters.any}]);jce.exports={EventSource:Vm,defaultReconnectionTime:Wce}});var aT=C((Kzt,je)=>{"use strict";var Wje=Em(),$ce=vI(),Jje=Cm(),zje=zne(),jje=Im(),Kje=gP(),$je=Ese(),Xje=wse(),Xce=_t(),oT=dt(),{InvalidArgumentError:iT}=Xce,Wm=lie(),Zje=FI(),eKe=KP(),tKe=Jie(),rKe=ZP(),nKe=LP(),sKe=cN(),{getGlobalDispatcher:Zce,setGlobalDispatcher:iKe}=EN(),oKe=CN(),aKe=$S(),cKe=XS();Object.assign($ce.prototype,Wm);je.exports.Dispatcher=$ce;je.exports.Client=Wje;je.exports.Pool=Jje;je.exports.BalancedPool=zje;je.exports.Agent=jje;je.exports.ProxyAgent=Kje;je.exports.EnvHttpProxyAgent=$je;je.exports Line truncated
%s`,M,M,I,n);var V=I.type==="*"?F3:I.type==="?"?_3:"\\"+I.type;s=!0,n=n.slice(0,I.reStart)+V+"\\("+M}f(),i&&(n+="\\\\");var k=!1;switch(n.charAt(0)){case"[":case".":case"(":k=!0}for(var P=a.length-1;P>-1;P--){var v=a[P],z=n.slice(0,v.reStart),X=n.slice(v.reStart,v.reEnd-8),te=n.slice(v.reEnd-8,v.reEnd),ce=n.slice(v.reEnd);te+=ce;var ue=z.split("(").length-1,Fe=ce;for(g=0;g<ue;g++)Fe=Fe.replace(/\)[+*?]?/,"");ce=Fe;var ke="";ce===""&&e!==RT&&(ke="$");var et=z+X+ce+ke+te;n=et}if(n!==""&&s&&(n="(?=.)"+n),k&&(n=d+n),e===RT)return[n,s];if(!s)return PXe(t);var Ft=r.nocase?"i":"";try{var vt=new RegExp("^"+n+"$",Ft)}catch{return new RegExp("$.")}return vt._glob=t,vt._src=n,vt}Vi.makeRe=function(t,e){return new ln(t,e||{}).makeRe()};ln.prototype.makeRe=UXe;function UXe(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?F3:e.dot?RXe:DXe,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===If?r:typeof o=="string"?OXe(o):o._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}Vi.match=function(t,e,r){r=r||{};var n=new ln(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};ln.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var n=this.options;qy.sep!=="/"&&(e=e.split(qy.sep).join("/")),e=e.split(Pue),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<s.length;o++){var a=s[o],c=e;n.matchBase&&a.length===1&&(c=[i]);var A=this.matchOne(c,a,r);if(A)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};ln.prototype.matchOne=function(t,e,r){return e.indexOf(If)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};ln.prototype._matchGlobstar=function(t,e,r,n,s){var i,o=-1;for(i=s;i<e.length;i++)if(e[i]===If){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===If){a=i;break}var c=e.slice(s,o),A=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(c.length){var l=t.slice(n,n+c.length);if(!this._matchOne(l,c,r,0,0))return!1;n+=c.length}var d=0;if(u.length){if(u.length+n>t.length)return!1;var h=t.length-u.length;if(this._matchOne(t,u,r,h,0))d=u.length;else{if(t[t.length-1]!==""||n+u.length===t.length||(h--,!this._matchOne(t,u,r,h,0)))return!1;d=u.length+1}}if(!A.length){var f=!!d;for(i=n;i<t.length-d;i++){var g=String(t[i]);if(f=!0,g==="."||g===".."||!this.options.dot&&g.charAt(0)===".")return!1}return r||f}for(var E=[[[],0]],m=E[0],I=0,y=[0],B=0;B<A.length;B++){var M=A[B];M===If?(y.push(I),m=[[],0],E.push(m)):(m[0].push(M),I++)}for(var V=E.length-1,k=t.length-d,P=0;P<E.length;P++)E[P][1]=k-(y[V--]+E[P][0].length);return!!this._matchGlobStarBodySections(t,E,n,0,r,0,!!d)};ln.prototype._matchGlobStarBodySections=function(t,e,r,n,s,i,o){var a=e[n];if(!a){for(var c=r;c<t.length;c++){o=!0;var A=t[c];if(A==="."||A===".."||!this.options.dot&&A.charAt(0)===".")return!1}return o}for(var u=a[0],l=a[1];r<=l;){var d=this._matchOne(t.slice(0,r+u.length),u,s,r,0);if(d&&i<this.maxGlobstarRecursion){var h=this._matchGlobStarBodySections(t,e,r+u.length,n+1,s,i+1,o);if(h!==!1)return h}var A=t[r];if(A==="."||A===".."||!this.options.dot&&A.charAt(0)===".")return!1;r++}return s||null};ln.prototype._matchOne=function(t,e,r,n,s){var i,o,a,c;for(i=n,o=s,a=t.length,c=e.length;i<a&&o<c;i++,o++){this.debug("matchOne loop");var A=e[o],u=t[i];if(this.debug(e,A,u),A===!1||A===If)return!1;var l;if(typeof A=="string"?(l=u===A,this.debug("string match",A,u,l)):(l=u.match(A),this.debug("pattern match",A,u,l)),!l)return!1}if(i===a&&o===c)return!0;if(i===a)return r;if(o===c)return i===a-1&&t[i]==="";throw new Error("wtf?")};function PXe(t){return t.replace(/\\(.)/g,"$1")}function OXe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Zm=C((n$t,Wue)=>{"use strict";var zXe="2.0.0",jXe=Number.MAX_SAFE_INTEGER||9007199254740991,KXe=16,$Xe=250,XXe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Wue.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:KXe,MAX_SAFE_BUILD_LENGTH:$Xe,MAX_SAFE_INTEGER:jXe,RELEASE_TYPES:XXe,SEMVER_SPEC_VERSION:zXe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Jy=C((s$t,Jue)=>{"use strict";var ZXe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Jue.exports=ZXe});var e0=C((Pc,zue)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:L3,MAX_SAFE_BUILD_LENGTH:eZe,MAX_LENGTH:tZe}=Zm(),rZe=Jy();Pc=zue.exports={};var nZe=Pc.re=[],sZe=Pc.safeRe=[],me=Pc.src=[],iZe=Pc.safeSrc=[],Ee=Pc.t={},oZe=0,U3="[a-zA-Z0-9-]",aZe=[["\\s",1],["\\d",tZe],[U3,eZe]],cZe=t=>{for(let[e,r]of aZe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+Line truncated
`).join(`
`+i),t.push(s+"m+"+px.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=$rt()+e+" "+t[0]}function $rt(){return Fn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Xrt(...t){return process.stderr.write(gx.formatWithOptions(Fn.inspectOpts,...t)+`
@@ -206,7 +206,7 @@ GFS4: `),console.error(t)});Fr[is]||(S2e=global[is]||[],T2e(Fr,S2e),Fr.close=(fu
`)),e.linkname&&(r+=EZ(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=EZ(" "+s+"="+n[s]+`
`);return kt.from(r)};oI.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(kt.toString(e.subarray(0,n)),10);if(!s)return r;let i=kt.toString(e.subarray(n+1,s-1)),o=i.indexOf("=");if(o===-1)return r;r[i.slice(0,o)]=i.slice(o+1),e=e.subarray(s)}return r};oI.encode=function(e){let r=kt.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),kt.byteLength(n)!==n.length)return null;for(;kt.byteLength(n)>100;){let i=n.indexOf("/");if(i===-1)return null;s+=s?"/"+n.slice(0,i):n.slice(0,i),n=n.slice(i+1)}return kt.byteLength(n)>100||kt.byteLength(s)>155||e.linkname&&kt.byteLength(e.linkname)>100?null:(kt.write(r,n),kt.write(r,Dh(e.mode&A7t,6),100),kt.write(r,Dh(e.uid,6),108),kt.write(r,Dh(e.gid,6),116),p7t(e.size,r,124),kt.write(r,Dh(e.mtime.getTime()/1e3|0,11),136),r[156]=eL+f7t(e.type),e.linkname&&kt.write(r,e.linkname,157),kt.copy(v3e,r,D1),kt.copy(o7t,r,CZ),e.uname&&kt.write(r,e.uname,265),e.gname&&kt.write(r,e.gname,297),kt.write(r,Dh(e.devmajor||0,6),329),kt.write(r,Dh(e.devminor||0,6),337),s&&kt.write(r,s,345),kt.write(r,Dh(F3e(r),6),148),r)};oI.decode=function(e,r,n){let s=e[156]===0?0:e[156]-eL,i=iI(e,0,100,r),o=Rh(e,100,8),a=Rh(e,108,8),c=Rh(e,116,8),A=Rh(e,124,12),u=Rh(e,136,12),l=h7t(s),d=e[157]===0?null:iI(e,157,100,r),h=iI(e,265,32),f=iI(e,297,32),g=Rh(e,329,8),E=Rh(e,337,8),m=F3e(e);if(m===256)return null;if(m!==Rh(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(u7t(e))e[345]&&(i=iI(e,345,155,r)+"/"+i);else if(!l7t(e)){if(!n)throw new Error("Invalid tar header: unknown format.")}return s===0&&i&&i[i.length-1]==="/"&&(s=5),{name:i,mode:o,uid:a,gid:c,size:A,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:f,devmajor:g,devminor:E,pax:null}};function u7t(t){return kt.equals(v3e,t.subarray(D1,D1+6))}function l7t(t){return kt.equals(a7t,t.subarray(D1,D1+6))&&kt.equals(c7t,t.subarray(CZ,CZ+2))}function d7t(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function h7t(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function f7t(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function _3e(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function F3e(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function Dh(t,e){return t=t.toString(8),t.length>e?i7t.slice(0,e)+" ":s7t.slice(0,e-t.length)+t+" "}function g7t(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function p7t(t,e,r){t.toString(8).length>11?g7t(t,e,r):kt.write(e,Dh(t,11),r)}function m7t(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],n;for(n=t.length-1;n>0;n--){let o=t[n];e?r.push(o):r.push(255-o)}let s=0,i=r.length;for(n=0;n<i;n++)s+=r[n]*Math.pow(256,n);return e?s:-1*s}function Rh(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return m7t(t);{for(;e<t.length&&t[e]===32;)e++;let n=d7t(_3e(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(kt.toString(t.subarray(e,n)),8)}}function iI(t,e,r,n){return kt.toString(t.subarray(e,_3e(t,0,e,e+r)),n)}function EZ(t){let e=kt.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var O3e=C((CRr,P3e)=>{var{Writable:E7t,Readable:C7t,getStreamError:M3e}=mZ(),I7t=rZ(),L3e=eI(),aI=IZ(),y7t=L3e.alloc(0),BZ=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new I7t,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return y7t;let r=this._next(e);if(e===r.byteLength)return r;let n=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),n.push(r);return L3e.concat(n)}_next(e){let r=this.queue.peek(),n=r.byteLength-this._offset;if(e>=n){let s=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=n,this.shifted+=n,s}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},bZ=class extends C7t{constructor(e,r,n){super(),this.header=r,this.offset=n,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(M3e(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=U3e(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},QZ=class extends E7t{constru Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function CAe(t,e){if(process.env.GITHUB_OUTPUT||"")return RI("OUTPUT",lS(t,e));process.stdout.write(s3.EOL),Da("set-output",{name:t},Qc(e))}function gf(t){process.exitCode=n3.Failure,Yi(t)}function Ga(){return process.env.RUNNER_DEBUG==="1"}function O(t){Da("debug",{},t)}function Yi(t,e={}){Da("error",cS(e),t instanceof Error?t.toString():t)}function je(t,e={}){Da("warning",cS(e),t instanceof Error?t.toString():t)}function IAe(t,e={}){Da("notice",cS(e),t instanceof Error?t.toString():t)}function Z(t){process.stdout.write(t+s3.EOL)}function yAe(t){IL("group",t)}function BAe(){IL("endgroup")}function pT(t,e){return zKe(this,void 0,void 0,function*(){yAe(t);let r;try{r=yield e()}finally{BAe()}return r})}function Uc(t,e){if(process.env.GITHUB_STATE||"")return RI("STATE",lS(t,e));Da("save-state",{name:t},Qc(e))}function My(t){return process.env[`STATE_${t}`]||""}import*as $z from"fs";import*as Xz from"path";import*as Y_ from"os";import{readFileSync as jKe,existsSync as KKe}from"fs";import{EOL as $Ke}from"os";var Jm=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(KKe(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(jKe(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let s=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${s} does not exist${$Ke}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(n=process.env.GITHUB_GRAPHQL_URL)!==null&&n!==void 0?n:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var A3=ge(NAe(),1),TAe=ge(aT(),1),u$e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function xAe(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}function RAe(t){return new A3.HttpClient().getAgent(t)}function l$e(t){return new A3.HttpClient().getAgentDispatcher(t)}function DAe(t){let e=l$e(t);return(n,s)=>u$e(this,void 0,void 0,function*(){return(0,TAe.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function kAe(){return process.env.GITHUB_API_URL||"https://api.github.com"}function u3(t){var e;let r=(e=process.env.ACTIONS_ORCHESTRATION_ID)===null||e===void 0?void 0:e.trim();if(r){let s=`actions_orchestration_id/${r.replace(/[^a-z0-9_.-]/gi,"_")}`;return t?.includes(s)?t:`${t?`${t} `:""}${s}`}return t}function Zl(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}function bT(t,e,r,n){if(typeof r!="function")throw new Error("method for before hook must be a function");return n||(n={}),Array.isArray(e)?e.reverse().reduce((s,i)=>bT.bind(null,t,i,s,n),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((s,i)=>i.hook.bind(null,s,n),r)():r(n))}function vAe(t,e,r,n){let s=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=(i,o)=>Promise.resolve().then(s.bind(null,o)).then(i.bind(null,o))),e==="after"&&(n=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(c=>(a=c,s(a,o))).then(()=>a)}),e==="error"&&(n=(i,o)=>Promise.resolve().then(i.bind(null,o)).catch(a=>s(a,o))),t.registry[r].push({hook:n,orig:s})}function _Ae(t,e,r){if(!t.registry[e])return;let n=t.registry[e].map(s=>s.orig).indexOf(r);n!==-1&&t.registry[e].splice(n,1)}var FAe=Function.bind,MAe=FAe.bind(FAe);function LAe(t,e,r){let n=MAe(_Ae,null).apply(null,r?[e,r]:[e]);t.api={remove:n},t.remove=n,["before","error","after","wrap"].forEach(s=>{let i=r?[e,s,r]:[e,s];t[s]=t.api[s]=MAe(vAe,null). Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function CAe(t,e){if(process.env.GITHUB_OUTPUT||"")return RI("OUTPUT",lS(t,e));process.stdout.write(s3.EOL),Da("set-output",{name:t},Qc(e))}function gf(t){process.exitCode=n3.Failure,Yi(t)}function Ga(){return process.env.RUNNER_DEBUG==="1"}function O(t){Da("debug",{},t)}function Yi(t,e={}){Da("error",cS(e),t instanceof Error?t.toString():t)}function ze(t,e={}){Da("warning",cS(e),t instanceof Error?t.toString():t)}function IAe(t,e={}){Da("notice",cS(e),t instanceof Error?t.toString():t)}function Z(t){process.stdout.write(t+s3.EOL)}function yAe(t){IL("group",t)}function BAe(){IL("endgroup")}function pT(t,e){return zKe(this,void 0,void 0,function*(){yAe(t);let r;try{r=yield e()}finally{BAe()}return r})}function Uc(t,e){if(process.env.GITHUB_STATE||"")return RI("STATE",lS(t,e));Da("save-state",{name:t},Qc(e))}function My(t){return process.env[`STATE_${t}`]||""}import*as $z from"fs";import*as Xz from"path";import*as Y_ from"os";import{readFileSync as jKe,existsSync as KKe}from"fs";import{EOL as $Ke}from"os";var Jm=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(KKe(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(jKe(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let s=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${s} does not exist${$Ke}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(n=process.env.GITHUB_GRAPHQL_URL)!==null&&n!==void 0?n:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var A3=ge(NAe(),1),TAe=ge(aT(),1),u$e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function xAe(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}function RAe(t){return new A3.HttpClient().getAgent(t)}function l$e(t){return new A3.HttpClient().getAgentDispatcher(t)}function DAe(t){let e=l$e(t);return(n,s)=>u$e(this,void 0,void 0,function*(){return(0,TAe.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function kAe(){return process.env.GITHUB_API_URL||"https://api.github.com"}function u3(t){var e;let r=(e=process.env.ACTIONS_ORCHESTRATION_ID)===null||e===void 0?void 0:e.trim();if(r){let s=`actions_orchestration_id/${r.replace(/[^a-z0-9_.-]/gi,"_")}`;return t?.includes(s)?t:`${t?`${t} `:""}${s}`}return t}function Zl(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}function bT(t,e,r,n){if(typeof r!="function")throw new Error("method for before hook must be a function");return n||(n={}),Array.isArray(e)?e.reverse().reduce((s,i)=>bT.bind(null,t,i,s,n),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((s,i)=>i.hook.bind(null,s,n),r)():r(n))}function vAe(t,e,r,n){let s=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=(i,o)=>Promise.resolve().then(s.bind(null,o)).then(i.bind(null,o))),e==="after"&&(n=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(c=>(a=c,s(a,o))).then(()=>a)}),e==="error"&&(n=(i,o)=>Promise.resolve().then(i.bind(null,o)).catch(a=>s(a,o))),t.registry[r].push({hook:n,orig:s})}function _Ae(t,e,r){if(!t.registry[e])return;let n=t.registry[e].map(s=>s.orig).indexOf(r);n!==-1&&t.registry[e].splice(n,1)}var FAe=Function.bind,MAe=FAe.bind(FAe);function LAe(t,e,r){let n=MAe(_Ae,null).apply(null,r?[e,r]:[e]);t.api={remove:n},t.remove=n,["before","error","after","wrap"].forEach(s=>{let i=r?[e,s,r]:[e,s];t[s]=t.api[s]=MAe(vAe,null). Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var Z$e=class extends Error{constructor(t,e,r){super(X$e(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},eXe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],tXe=["query","method","url"],cue=/\/api\/v3\/?$/;function rXe(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let o in r)if(tXe.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((o,a)=>eXe.includes(a)?(o[a]=n[a],o):(o.variables||(o.variables={}),o.variables[a]=n[a],o),{}),i=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return cue.test(i)&&(s.url=i.replace(cue,"/api/graphql")),t(s).then(o=>{if(o.data.errors){let a={};for(let c of Object.keys(o.headers))a[c]=o.headers[c];throw new Z$e(s,a,o.data)}return o.data.data})}function C3(t,e){let r=t.defaults(e);return Object.assign((s,i)=>rXe(r,s,i),{defaults:C3.bind(null,r),endpoint:r.endpoint})}var eKt=C3(Py,{headers:{"user-agent":`octokit-graphql.js/${$$e} ${Zl()}`},method:"POST",url:"/graphql"});function Aue(t){return C3(t,{method:"POST",url:"/graphql"})}var I3="(?:[a-zA-Z0-9_-]+)",uue="\\.",lue=new RegExp(`^${I3}${uue}${I3}${uue}${I3}$`),nXe=lue.test.bind(lue);async function sXe(t){let e=nXe(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}function iXe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function oXe(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=iXe(t),e(s)}var due=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(sXe.bind(null,e),{hook:oXe.bind(null,e)})};var y3="7.0.6";var hue=()=>{},aXe=console.warn.bind(console),cXe=console.error.bind(console);function AXe(t={}){return typeof t.debug!="function"&&(t.debug=hue),typeof t.info!="function"&&(t.info=hue),typeof t.warn!="function"&&(t.warn=aXe),typeof t.error!="function"&&(t.error=cXe),t}var fue=`octokit-core.js/${y3} ${Zl()}`,ST=class{static VERSION=y3;static defaults(e){return class extends this{constructor(...n){let s=n[0]||{};if(typeof e=="function"){super(e(s));return}super(Object.assign({},e,s,s.userAgent&&e.userAgent?{userAgent:`${s.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new UAe.Collection,n={baseUrl:Py.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${fue}`:fue,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=Py.defaults(n),this.graphql=Aue(this.request).defaults(n),this.log=AXe(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=due(e.auth);r.wrap("request",i.hook),this.auth=i}let s=this.constructor;for(let i=0;i<s.plugins.length;++i)Object.assign(this,s.plugins[i](this,e))}request;graphql;log;hook;auth};var B3="17.0.0";var uXe={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVaria Line truncated
`),e=e.replace(/\r/g,`
@@ -243,14 +243,14 @@ ${l}:${decodeURIComponent(A[l])}`}return a}return{name:Xot,async sendRequest(i,o
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Xa(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}function AAt(t,e){if(t=Wf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=uA.parse(t.permissions.toString()).toString():s=lA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Vf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Gt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Gt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?$a(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Xa(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}function Vf(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function Wf(t){let e=t.version?t.version:fR;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}var WB=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=d0()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ja||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ja||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-acquireLease",r,async n=>_e(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ja||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ja||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=_e(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,s})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Ja||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ja||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-releaseLease",e,async r=>_e(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Ja||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ja||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.ab Line truncated
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};D0.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var jf=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};jf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var eb=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var kAt=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},m9=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);Z(`Sent ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function $pe(t,e,r){return kAt(this,void 0,void 0,function*(){var n;let s=new Za(t),i=s.getBlockBlobClient(),o=new m9((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),O(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new AD(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw je(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}import*as Zpe from"buffer";import*as dA from"fs";import*as eme from"stream";import*as tme from"util";var uD=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function lD(t){return t?t>=200&&t<300:!1}function vAt(t){return t?t>=500:!0}function _At(t){return t?[tr.BadGateway,tr.ServiceUnavailable,tr.GatewayTimeout].includes(t):!1}function FAt(t){return uD(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function Xpe(t,e,r){return uD(this,arguments,void 0,function*(n,s,i,o=WT,a=JT,c=void 0){let A="",u=1;for(;u<=o;){let l,d,h=!1;try{l=yield s()}catch(f){c&&(l=c(f)),h=!0,A=f.message}if(l&&(d=i(l),!vAt(d)))return l;if(d&&(h=_At(d),A=`Cache service responded with ${d}`),O(`${n} - Attempt ${u} of ${o} failed with error: ${A}`),!h){O(`${n} - Error is not retryable`);break}yield FAt(a),u++}throw Error(`${n} failed: ${A}`)})}function tb(t,e){return uD(this,arguments,void 0,function*(r,n,s=WT,i=JT){return yield Xpe(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof Fc)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function k0(t,e){return uD(this,arguments,void 0,function*(r,n,s=WT,i=JT){return yield Xpe(r,n,o=>o.message.statusCode,s,i)})}var Jo=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function MAt(t,e){return Jo(this,void 0,void 0,function*(){yield tme.promisify(eme.pipeline)(t.message,e)})}var dD=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,O(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);Z(`Received ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3) Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])O(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function B9(t,e,r){return pi(this,void 0,void 0,function*(){let n=new HAt(t),s=ime(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield nme(t,e,s):s.concurrentBlobDownloads?yield rme(t,e,s):yield hD(t,e):yield hD(t,e)})}function gme(t,e,r){return pi(this,void 0,void 0,function*(){let n=y9(),s=n0(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield tb("reserveCache",()=>pi(this,void 0,void 0,function*(){return n.postJson(nb("caches"),i)}))})}function hme(t,e){return`bytes ${t}-${e}/*`}function VAt(t,e,r,n,s){return pi(this,void 0,void 0,function*(){O(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${hme(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":hme(n,s)},o=yield k0(`uploadChunk (start: ${n}, end: ${s})`,()=>pi(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!lD(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function WAt(t,e,r,n){return pi(this,void 0,void 0,function*(){let s=Oc(r),i=nb(`caches/${e.toString()}`),o=v0.openSync(r,"r"),a=E9(n),c=a8("uploadConcurrency",a.uploadConcurrency),A=a8("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];O("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>pi(this,void 0,void 0,function*(){for(;l<s;){let d=Math.min(s-l,A),h=l,f=l+d-1;l+=A,yield VAt(t,i,()=>v0.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",g=>{throw new Error(`Cache upload failed because file read failed with ${g.message}`)}),h,f)}})))}finally{v0.closeSync(o)}})}function JAt(t,e,r){return pi(this,void 0,void 0,function*(){let n={size:r};return yield tb("commitCache",()=>pi(this,void 0,void 0,function*(){return t.postJson(nb(`caches/${e.toString()}`),n)}))})}function b9(t,e,r,n){return pi(this,void 0,void 0,function*(){if(E9(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield $pe(r,e,n)}else{let i=y9();O("Upload cache"),yield WAt(i,t,e,n),O("Commiting cache");let o=Oc(e);Z(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield JAt(i,t,o);if(!lD(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);Z("Cache saved successfully")}})}var c0e=ge(fG(),1),sn=ge(At(),1),eo=ge(At(),1),eg=ge(At(),1),tg=ge(At(),1),rg=ge(At(),1);var EG=ge(At(),1),CG=ge(At(),1),i0e=ge(At(),1),o0e=ge(At(),1),a0e=ge(At(),1);var gG=ge(At(),1),pG=ge(At(),1),r0e=ge(At(),1),n0e=ge(At(),1),s0e=ge(At(),1),mG=class extends s0e.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,n0e.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,r0e.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);A!==!1&&(A===!0?pG.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,gG.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,gG.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?pG.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},e2=new mG;var IG=class extends a0e.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>e2}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,o0e.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,i0e.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(e2.internalBinaryRead(e,e.uint32(),n));break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);A!==!1&&(A===!0?CG.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,EG.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)e2.internalBinaryWrite(e.scope[i],r.tag(2,EG.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?CG.UnknownFieldHandler.onWrite:s Line truncated
`));let n=yield FG(r,"create");yield MG(n,t)})}var j0=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},ro=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Yu=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},PG="cache write denied:",n2=class t extends Yu{constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},d0e=zT,s2=class t extends Error{constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},i2=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function h0e(t){if(!t||t.length===0)throw new ro("Path Validation Error: At least one directory or file path is required")}function OG(t){if(t.length>512)throw new ro(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new ro(`Key Validation Error: ${t} cannot contain commas.`)}function f0e(){return rb()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function o2(t,e,r,n){return j0(this,arguments,void 0,function*(s,i,o,a,c=!1){let A=rb();O(`Cache service version: ${A}`),h0e(s);let u=I9();if(!ame(u)){Z(`Cache restore skipped: the effective cache-mode '${u}' does not permit reads.`),O(`Skipped restore for paths [${s.join(", ")}] with primary key '${i}'.`);return}return A==="v2"?yield udt(s,i,o,a,c):yield Adt(s,i,o,a,c)})}function Adt(t,e,r,n){return j0(this,arguments,void 0,function*(s,i,o,a,c=!1){var A;o=o||[];let u=[i,...o];if(O("Resolved Keys:"),O(JSON.stringify(u)),u.length>10)throw new ro("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of u)OG(h);let l=yield nB(),d="";try{let h;try{h=yield fme(u,s,{compressionMethod:l,enableCrossOsArchive:c})}catch(g){let E=(A=g?.message)!==null&&A!==void 0?A:"";throw E.includes(d0e)?new s2(E):g}if(!h?.archiveLocation)return;if(a?.lookupOnly)return Z("Lookup only - skipping download"),h.cacheKey;d=Cb.join(yield tB(),sd(l)),O(`Archive Path: ${d}`),yield B9(h.archiveLocation,d,a),Ga()&&(yield Eb(d,l));let f=Oc(d);return Z(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield LG(d,l),Z("Cache restored successfully"),h.cacheKey}catch(h){let f=h;if(f.name===ro.name)throw h;f instanceof Fc&&typeof f.statusCode=="number"&&f.statusCode>=500?Yi(`Failed to restore: ${h.message}`):je(`Failed to restore: ${h.message}`)}finally{try{yield rB(d)}catch(h){O(`Failed to delete archive: ${h}`)}}})}function udt(t,e,r,n){return j0(this,arguments,void 0,function*(s,i,o,a,c=!1){var A;a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let u=[i,...o];if(O("Resolved Keys:"),O(JSON.stringify(u)),u.length>10)throw new ro("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of u)OG(d);let l="";try{let d=_G(),h=yield nB(),f={key:i,restoreKeys:o,version:n0(s,h,c)},g;try{g=yield d.GetCacheEntryDownloadURL(f)}catch(I){let y=(A=I?.message)!==null&&A!==void 0?A:"";throw y.includes(d0e)?new s2(y):I}if(!g.ok){O(`Cache not found for version ${f.version} of keys: ${u.join(", ")}`);return}if(f.key!==g.matchedKey?Z(`Cache hit for restore-key: ${g.matchedKey}`):Z(`Cache hit for: ${g.matchedKey}`),a?.lookupOnly)return Z("Lookup only - skipping download"),g.matchedKey;l=Cb.join(yield tB(),sd(h)),O(`Archive path: ${l}`),O(`Starting download of archive to: ${l}`),yield B9(g.signedDownloadUrl,l,a);let m=Oc(l);return Z(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),Ga()&&(yield Eb(l,h)),yield LG(l,h),Z("Cache restored successfully"),g.matchedKey}catch(d){let h=d;if(h.name===ro.name)throw d;h instanceof Fc&&typeof h.statusCode=="number"&&h.statusCode>=500?Yi(`Failed to restore: ${d.message}`):je(`Failed to restore: ${d.message}`)}finally{try{l&&(yield rB(l))}catch(d){O(`Failed to delete archive: ${d}`)}}})}function a2(t,e,r){return j0(this,arguments,void 0,function*(n,s,i,o=!1){let a=rb();O(`Cache service version: ${a}`),h0e(n),OG(s);let c=I9();return cme(c)?a==="v2"?yield ddt(n,s,i,o):yield ldt(n,s,i,o):(Z(`Cache save skipped: the effective cache-mode '${c}' does not permit writes.`),O(`Skipped save for paths [${n.join(", ")}] with key '${s}'.`),-1)})}function ldt(t,e,r){return j0(this,arguments,void 0,function*(n,s,i,o=!1){var a,c,A,u,l,d;let h=yield nB(),f=-1,g=yield o8(n);if(O("Cache Paths:"),O(`${JSON.stringify(g)}`),g.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let E=yield tB(),m=Cb.join(E,sd(h));O(`Archive Path: ${m}`);try{yield UG(E,g,h),Ga()&&(yield Eb(m,h));let I=10*1024*1024*1024,y=Oc(m);if( Line truncated
See ${r.getDocumentationLink()}`;g0e.push(n),gf(n)}function p0e(){Uc("deprecation-collector_deprecations",JSON.stringify(GG)),Uc("deprecation-collector_errors",JSON.stringify(g0e))}import*as l2 from"path";var m0e="GRADLE_ACTION_ID";var g2=".setup-gradle",Bb=class t{getDependencyGraphOption(){let e=hr("dependency-graph");switch(e.toLowerCase().trim()){case"disabled":return"disabled";case"generate":return"generate";case"generate-and-submit":return"generate-and-submit";case"generate-submit-and-upload":return"generate-submit-and-upload";case"generate-and-upload":return"generate-and-upload";case"download-and-submit":return"download-and-submit"}throw TypeError(`The value '${e}' is not valid for 'dependency-graph'. Valid values are: [disabled, generate, generate-and-submit, generate-submit-and-upload, generate-and-upload, download-and-submit].`)}getDependencyGraphContinueOnFailure(){return EA("dependency-graph-continue-on-failure",!0)}getArtifactRetentionDays(){let e=hr("artifact-retention-days");return gdt("artifact-retention-days",e,0)}getJobCorrelator(){return t.constructJobCorrelator(oi.workflow,oi.job,E0e())}getReportDirectory(){let e=hr("dependency-graph-report-dir");return l2.resolve(bd(),e)}getDownloadArtifactName(){return process.env.DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME}getExcludeProjects(){return ng("dependency-graph-exclude-projects")}getIncludeProjects(){return ng("dependency-graph-include-projects")}getExcludeConfigurations(){return ng("dependency-graph-exclude-configurations")}getIncludeConfigurations(){return ng("dependency-graph-include-configurations")}getPluginRepository(){return new d2}static constructJobCorrelator(e,r,n){let s=this.describeMatrix(n),i=s?`${e}-${r}-${s}`:`${e}-${r}`;return this.sanitize(i)}static describeMatrix(e){O(`Got matrix json: ${e}`);let r=JSON.parse(e);return r?Object.values(r).join("-"):""}static sanitize(e){return e.replace(/[^a-zA-Z0-9_-\s]/g,"").replace(/\s+/g,"_").toLowerCase()}};var K0=class{isCacheDisabled(){return f0e()?EA("cache-disabled"):!0}isCacheReadOnly(){return!this.isCacheWriteOnly()&&EA("cache-read-only")}isCacheWriteOnly(){return EA("cache-write-only")}isCacheOverwriteExisting(){return EA("cache-overwrite-existing")}isCacheStrictMatch(){return EA("gradle-home-cache-strict-match")}getCacheCleanupOption(){let e=yb("gradle-home-cache-cleanup");if(e!==void 0)return A2("The `gradle-home-cache-cleanup` input parameter has been replaced by `cache-cleanup`"),e?"always".toString():"never".toString();let r=hr("cache-cleanup");switch(r.toLowerCase().trim()){case"always":return"always".toString();case"on-success":return"on-success".toString();case"never":return"never".toString()}throw TypeError(`The value '${r}' is not valid for cache-cleanup. Valid values are: [never, always, on-success].`)}getCacheEncryptionKey(){return hr("cache-encryption-key")}getCacheIncludes(){return i3("gradle-home-cache-includes")}getCacheExcludes(){return i3("gradle-home-cache-excludes")}getCacheProvider(){let e=hr("cache-provider");switch(e.toLowerCase().trim()){case"basic":return"basic";case"enhanced":case"":return"enhanced";case"external":return"external"}throw TypeError(`The value '${e}' is not valid for 'cache-provider'. Valid values are: [basic, enhanced, external].`)}};var rc=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return EA("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getTermsOfUseUrl(){return hr("build-scan-terms-of-use-url")}getTermsOfUseAgree(){return hr("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return hr("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return hr("develocity-token-expiry")}getDevelocityInjectionEnabled(){return yb("develocity-injection-enabled")}getDevelocityUrl(){return hr("develocity-url")}getDevelocityAllowUntrustedServer(){return yb("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return yb("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return yb("develocity-enforce-url")}getDevelocityPluginVersion(){return hr("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return hr("develocity-ccud-plugin-version")}getPluginRepository(){return new d2}hasTermsOfUseAgreement(){let e=this.getDevelocityAccessKey()!=="",r=this.getTermsOfUseUrl()==="https://gradle.com/terms-of-service"||this.getTermsOfUseUrl()==="https://gradle.com/help/legal-terms-of-use",n=this.getTermsOfUseAgree()==="yes";return e||r&&n}verifyTermsOfUseAgreement(){return this.hasTermsOfUseAgreement()?!0:(je("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1)}},d2=class{getUrl(){return ng("gradle-plugin-repository-url")}getUsername(){return ng("gradle-plugin-repository-username")}getPassword(){return ng("gradle-plugin-repository-p Line truncated
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};jf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var eb=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var kAt=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},m9=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);Z(`Sent ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function $pe(t,e,r){return kAt(this,void 0,void 0,function*(){var n;let s=new Za(t),i=s.getBlockBlobClient(),o=new m9((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),O(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new AD(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw ze(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}import*as Zpe from"buffer";import*as dA from"fs";import*as eme from"stream";import*as tme from"util";var uD=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function lD(t){return t?t>=200&&t<300:!1}function vAt(t){return t?t>=500:!0}function _At(t){return t?[tr.BadGateway,tr.ServiceUnavailable,tr.GatewayTimeout].includes(t):!1}function FAt(t){return uD(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function Xpe(t,e,r){return uD(this,arguments,void 0,function*(n,s,i,o=WT,a=JT,c=void 0){let A="",u=1;for(;u<=o;){let l,d,h=!1;try{l=yield s()}catch(f){c&&(l=c(f)),h=!0,A=f.message}if(l&&(d=i(l),!vAt(d)))return l;if(d&&(h=_At(d),A=`Cache service responded with ${d}`),O(`${n} - Attempt ${u} of ${o} failed with error: ${A}`),!h){O(`${n} - Error is not retryable`);break}yield FAt(a),u++}throw Error(`${n} failed: ${A}`)})}function tb(t,e){return uD(this,arguments,void 0,function*(r,n,s=WT,i=JT){return yield Xpe(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof Fc)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function k0(t,e){return uD(this,arguments,void 0,function*(r,n,s=WT,i=JT){return yield Xpe(r,n,o=>o.message.statusCode,s,i)})}var Jo=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function MAt(t,e){return Jo(this,void 0,void 0,function*(){yield tme.promisify(eme.pipeline)(t.message,e)})}var dD=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,O(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);Z(`Received ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3) Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])O(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function B9(t,e,r){return pi(this,void 0,void 0,function*(){let n=new HAt(t),s=ime(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield nme(t,e,s):s.concurrentBlobDownloads?yield rme(t,e,s):yield hD(t,e):yield hD(t,e)})}function gme(t,e,r){return pi(this,void 0,void 0,function*(){let n=y9(),s=n0(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield tb("reserveCache",()=>pi(this,void 0,void 0,function*(){return n.postJson(nb("caches"),i)}))})}function hme(t,e){return`bytes ${t}-${e}/*`}function VAt(t,e,r,n,s){return pi(this,void 0,void 0,function*(){O(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${hme(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":hme(n,s)},o=yield k0(`uploadChunk (start: ${n}, end: ${s})`,()=>pi(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!lD(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function WAt(t,e,r,n){return pi(this,void 0,void 0,function*(){let s=Oc(r),i=nb(`caches/${e.toString()}`),o=v0.openSync(r,"r"),a=E9(n),c=a8("uploadConcurrency",a.uploadConcurrency),A=a8("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];O("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>pi(this,void 0,void 0,function*(){for(;l<s;){let d=Math.min(s-l,A),h=l,f=l+d-1;l+=A,yield VAt(t,i,()=>v0.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",g=>{throw new Error(`Cache upload failed because file read failed with ${g.message}`)}),h,f)}})))}finally{v0.closeSync(o)}})}function JAt(t,e,r){return pi(this,void 0,void 0,function*(){let n={size:r};return yield tb("commitCache",()=>pi(this,void 0,void 0,function*(){return t.postJson(nb(`caches/${e.toString()}`),n)}))})}function b9(t,e,r,n){return pi(this,void 0,void 0,function*(){if(E9(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield $pe(r,e,n)}else{let i=y9();O("Upload cache"),yield WAt(i,t,e,n),O("Commiting cache");let o=Oc(e);Z(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield JAt(i,t,o);if(!lD(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);Z("Cache saved successfully")}})}var c0e=ge(fG(),1),sn=ge(At(),1),eo=ge(At(),1),eg=ge(At(),1),tg=ge(At(),1),rg=ge(At(),1);var EG=ge(At(),1),CG=ge(At(),1),i0e=ge(At(),1),o0e=ge(At(),1),a0e=ge(At(),1);var gG=ge(At(),1),pG=ge(At(),1),r0e=ge(At(),1),n0e=ge(At(),1),s0e=ge(At(),1),mG=class extends s0e.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,n0e.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,r0e.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);A!==!1&&(A===!0?pG.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,gG.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,gG.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?pG.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},e2=new mG;var IG=class extends a0e.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>e2}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,o0e.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,i0e.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(e2.internalBinaryRead(e,e.uint32(),n));break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);A!==!1&&(A===!0?CG.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,EG.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)e2.internalBinaryWrite(e.scope[i],r.tag(2,EG.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?CG.UnknownFieldHandler.onWrite:s Line truncated
`));let n=yield FG(r,"create");yield MG(n,t)})}var j0=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},ro=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Yu=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},PG="cache write denied:",n2=class t extends Yu{constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},d0e=zT,s2=class t extends Error{constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},i2=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function h0e(t){if(!t||t.length===0)throw new ro("Path Validation Error: At least one directory or file path is required")}function OG(t){if(t.length>512)throw new ro(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new ro(`Key Validation Error: ${t} cannot contain commas.`)}function f0e(){return rb()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function o2(t,e,r,n){return j0(this,arguments,void 0,function*(s,i,o,a,c=!1){let A=rb();O(`Cache service version: ${A}`),h0e(s);let u=I9();if(!ame(u)){Z(`Cache restore skipped: the effective cache-mode '${u}' does not permit reads.`),O(`Skipped restore for paths [${s.join(", ")}] with primary key '${i}'.`);return}return A==="v2"?yield udt(s,i,o,a,c):yield Adt(s,i,o,a,c)})}function Adt(t,e,r,n){return j0(this,arguments,void 0,function*(s,i,o,a,c=!1){var A;o=o||[];let u=[i,...o];if(O("Resolved Keys:"),O(JSON.stringify(u)),u.length>10)throw new ro("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of u)OG(h);let l=yield nB(),d="";try{let h;try{h=yield fme(u,s,{compressionMethod:l,enableCrossOsArchive:c})}catch(g){let E=(A=g?.message)!==null&&A!==void 0?A:"";throw E.includes(d0e)?new s2(E):g}if(!h?.archiveLocation)return;if(a?.lookupOnly)return Z("Lookup only - skipping download"),h.cacheKey;d=Cb.join(yield tB(),sd(l)),O(`Archive Path: ${d}`),yield B9(h.archiveLocation,d,a),Ga()&&(yield Eb(d,l));let f=Oc(d);return Z(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield LG(d,l),Z("Cache restored successfully"),h.cacheKey}catch(h){let f=h;if(f.name===ro.name)throw h;f instanceof Fc&&typeof f.statusCode=="number"&&f.statusCode>=500?Yi(`Failed to restore: ${h.message}`):ze(`Failed to restore: ${h.message}`)}finally{try{yield rB(d)}catch(h){O(`Failed to delete archive: ${h}`)}}})}function udt(t,e,r,n){return j0(this,arguments,void 0,function*(s,i,o,a,c=!1){var A;a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let u=[i,...o];if(O("Resolved Keys:"),O(JSON.stringify(u)),u.length>10)throw new ro("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of u)OG(d);let l="";try{let d=_G(),h=yield nB(),f={key:i,restoreKeys:o,version:n0(s,h,c)},g;try{g=yield d.GetCacheEntryDownloadURL(f)}catch(I){let y=(A=I?.message)!==null&&A!==void 0?A:"";throw y.includes(d0e)?new s2(y):I}if(!g.ok){O(`Cache not found for version ${f.version} of keys: ${u.join(", ")}`);return}if(f.key!==g.matchedKey?Z(`Cache hit for restore-key: ${g.matchedKey}`):Z(`Cache hit for: ${g.matchedKey}`),a?.lookupOnly)return Z("Lookup only - skipping download"),g.matchedKey;l=Cb.join(yield tB(),sd(h)),O(`Archive path: ${l}`),O(`Starting download of archive to: ${l}`),yield B9(g.signedDownloadUrl,l,a);let m=Oc(l);return Z(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),Ga()&&(yield Eb(l,h)),yield LG(l,h),Z("Cache restored successfully"),g.matchedKey}catch(d){let h=d;if(h.name===ro.name)throw d;h instanceof Fc&&typeof h.statusCode=="number"&&h.statusCode>=500?Yi(`Failed to restore: ${d.message}`):ze(`Failed to restore: ${d.message}`)}finally{try{l&&(yield rB(l))}catch(d){O(`Failed to delete archive: ${d}`)}}})}function a2(t,e,r){return j0(this,arguments,void 0,function*(n,s,i,o=!1){let a=rb();O(`Cache service version: ${a}`),h0e(n),OG(s);let c=I9();return cme(c)?a==="v2"?yield ddt(n,s,i,o):yield ldt(n,s,i,o):(Z(`Cache save skipped: the effective cache-mode '${c}' does not permit writes.`),O(`Skipped save for paths [${n.join(", ")}] with key '${s}'.`),-1)})}function ldt(t,e,r){return j0(this,arguments,void 0,function*(n,s,i,o=!1){var a,c,A,u,l,d;let h=yield nB(),f=-1,g=yield o8(n);if(O("Cache Paths:"),O(`${JSON.stringify(g)}`),g.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let E=yield tB(),m=Cb.join(E,sd(h));O(`Archive Path: ${m}`);try{yield UG(E,g,h),Ga()&&(yield Eb(m,h));let I=10*1024*1024*1024,y=Oc(m);if( Line truncated
See ${r.getDocumentationLink()}`;g0e.push(n),gf(n)}function p0e(){Uc("deprecation-collector_deprecations",JSON.stringify(GG)),Uc("deprecation-collector_errors",JSON.stringify(g0e))}import*as l2 from"path";var m0e="GRADLE_ACTION_ID";var g2=".setup-gradle",Bb=class t{getDependencyGraphOption(){let e=hr("dependency-graph");switch(e.toLowerCase().trim()){case"disabled":return"disabled";case"generate":return"generate";case"generate-and-submit":return"generate-and-submit";case"generate-submit-and-upload":return"generate-submit-and-upload";case"generate-and-upload":return"generate-and-upload";case"download-and-submit":return"download-and-submit"}throw TypeError(`The value '${e}' is not valid for 'dependency-graph'. Valid values are: [disabled, generate, generate-and-submit, generate-submit-and-upload, generate-and-upload, download-and-submit].`)}getDependencyGraphContinueOnFailure(){return EA("dependency-graph-continue-on-failure",!0)}getArtifactRetentionDays(){let e=hr("artifact-retention-days");return gdt("artifact-retention-days",e,0)}getJobCorrelator(){return t.constructJobCorrelator(oi.workflow,oi.job,E0e())}getReportDirectory(){let e=hr("dependency-graph-report-dir");return l2.resolve(bd(),e)}getDownloadArtifactName(){return process.env.DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME}getExcludeProjects(){return ng("dependency-graph-exclude-projects")}getIncludeProjects(){return ng("dependency-graph-include-projects")}getExcludeConfigurations(){return ng("dependency-graph-exclude-configurations")}getIncludeConfigurations(){return ng("dependency-graph-include-configurations")}getPluginRepository(){return new d2}static constructJobCorrelator(e,r,n){let s=this.describeMatrix(n),i=s?`${e}-${r}-${s}`:`${e}-${r}`;return this.sanitize(i)}static describeMatrix(e){O(`Got matrix json: ${e}`);let r=JSON.parse(e);return r?Object.values(r).join("-"):""}static sanitize(e){return e.replace(/[^a-zA-Z0-9_-\s]/g,"").replace(/\s+/g,"_").toLowerCase()}};var K0=class{isCacheDisabled(){return f0e()?EA("cache-disabled"):!0}isCacheReadOnly(){return!this.isCacheWriteOnly()&&EA("cache-read-only")}isCacheWriteOnly(){return EA("cache-write-only")}isCacheOverwriteExisting(){return EA("cache-overwrite-existing")}isCacheStrictMatch(){return EA("gradle-home-cache-strict-match")}getCacheCleanupOption(){let e=yb("gradle-home-cache-cleanup");if(e!==void 0)return A2("The `gradle-home-cache-cleanup` input parameter has been replaced by `cache-cleanup`"),e?"always".toString():"never".toString();let r=hr("cache-cleanup");switch(r.toLowerCase().trim()){case"always":return"always".toString();case"on-success":return"on-success".toString();case"never":return"never".toString()}throw TypeError(`The value '${r}' is not valid for cache-cleanup. Valid values are: [never, always, on-success].`)}getCacheEncryptionKey(){return hr("cache-encryption-key")}getCacheIncludes(){return i3("gradle-home-cache-includes")}getCacheExcludes(){return i3("gradle-home-cache-excludes")}getCacheProvider(){let e=hr("cache-provider");switch(e.toLowerCase().trim()){case"basic":return"basic";case"enhanced":case"":return"enhanced";case"external":return"external"}throw TypeError(`The value '${e}' is not valid for 'cache-provider'. Valid values are: [basic, enhanced, external].`)}};var rc=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return EA("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getTermsOfUseUrl(){return hr("build-scan-terms-of-use-url")}getTermsOfUseAgree(){return hr("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return hr("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return hr("develocity-token-expiry")}getDevelocityInjectionEnabled(){return yb("develocity-injection-enabled")}getDevelocityUrl(){return hr("develocity-url")}getDevelocityAllowUntrustedServer(){return yb("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return yb("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return yb("develocity-enforce-url")}getDevelocityPluginVersion(){return hr("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return hr("develocity-ccud-plugin-version")}getPluginRepository(){return new d2}hasTermsOfUseAgreement(){let e=this.getDevelocityAccessKey()!=="",r=this.getTermsOfUseUrl()==="https://gradle.com/terms-of-service"||this.getTermsOfUseUrl()==="https://gradle.com/help/legal-terms-of-use",n=this.getTermsOfUseAgree()==="yes";return e||r&&n}verifyTermsOfUseAgreement(){return this.hasTermsOfUseAgreement()?!0:(ze("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1)}},d2=class{getUrl(){return ng("gradle-plugin-repository-url")}getUsername(){return ng("gradle-plugin-repository-username")}getPassword(){return ng("gradle-plugin-repository-p Line truncated
`),e=e.replace(/\r/g,`
`));let s=e.split(`
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new xb(i));return n.searchPaths.push(...WG(n.patterns)),n})}static stat(e,r,n){return eq(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Z0.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){O(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield Z0.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Z0.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){O(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as tq from"crypto";import*as B2 from"fs";import*as W0e from"stream";import*as J0e from"util";import*as z0e from"path";var vht=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},_ht=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(o){return new Promise(function(a,c){o=t[i](o),s(a,c,o.done,o.value)})}}function s(i,o,a,c){Promise.resolve(c).then(function(A){i({value:A,done:a})},o)}};function j0e(t,e){return vht(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,c,A;let u=s?Z:O,l=!1,d=n||((A=process.env.GITHUB_WORKSPACE)!==null&&A!==void 0?A:process.cwd()),h=tq.createHash("sha256"),f=0;try{for(var g=!0,E=_ht(r.globGenerator()),m;m=yield E.next(),i=m.done,!i;g=!0){c=m.value,g=!1;let I=c;if(u(I),!I.startsWith(`${d}${z0e.sep}`)){u(`Ignore '${I}' since it is not under GITHUB_WORKSPACE.`);continue}if(B2.statSync(I).isDirectory()){u(`Skip directory '${I}'.`);continue}let y=tq.createHash("sha256");yield J0e.promisify(W0e.pipeline)(B2.createReadStream(I),y),h.write(y.digest()),f++,l||(l=!0)}}catch(I){o={error:I}}finally{try{!g&&!i&&(a=E.return)&&(yield a.call(E))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var K0e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function rq(t,e){return K0e(this,void 0,void 0,function*(){return yield I2.create(t,e)})}function $0e(t){return K0e(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield rq(e,{followSymbolicLinks:i});return j0e(o,r,s)})}import*as nq from"path";var Fht="Gradle User Home",Z0e="BASIC_CACHE_PRIMARY_KEY",eEe="BASIC_CACHE_RESTORED_KEY",Mht="setup-java",tEe=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],b2=class{async restore(e,r){let n=rEe(e),s=await Lht();Uc(Z0e,s);try{let i=await o2(n,s);i?(Uc(eEe,i),Z(`Basic caching restored from cache key: ${i}`)):Z("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){je(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,n){let s=My(Z0e),i=My(eEe);if(n.readOnly)return{status:"read-only",entries:[Db({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: cache is read-only)"})]};if(i===s)return Z(`Basic caching restored entry with key \`${s}\`. Save was skipped.`),{status:"enabled",entries:[Db({primaryKey:s,restoredKey:i,restoredOutcome:"(Entry restored: exact match found)",savedOutcome:"(Entry not saved: entry with key already exists)"})]};let o=rEe(e);try{return await a2(o,s)===-1?(je(`Basic caching failed to save entry with key \`${s}\`. See preceding log output for the cause.`),{status:"enabled",entries:[Db({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: save failed)"})]}):(Z(`Basic caching saved entry with key: ${s}`),{status:"enabled",entries:[Db({primaryKey:s,restoredKey:i,savedKey:s,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry saved)"})]})}catch(a){return je(`Basic caching failed to save entry with key \`${s}\`: ${a}`),{status:"enabled",entries:[Db({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry reLine truncated
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${tEe}], make sure you have checked out the target repository`);return`${Mht}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var Pht="Enhanced Caching: This build is using the proprietary 'gradle-actions-caching' provider for optimized caching support. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for terms of use and opt-out instructions.",Oht="Basic Caching: This build uses the basic open-source caching provider. For faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.",Hht="External Caching: Gradle User Home is managed by an external caching provider. This action will not restore or save Gradle User Home.",w2=class{constructor(e){this.status=e}async restore(e,r){}async save(e,r,n){return{status:this.status,entries:[]}}};async function iEe(t){return t.getCacheProvider()==="external"?(Q2(Hht),new w2("external")):t.isCacheDisabled()?(Q2("Cache is disabled: will not restore state from previous builds."),new w2("disabled")):t.getCacheProvider()==="basic"?(Q2(Oht),new b2):(Q2(Pht),Ght())}async function Ght(){let t=qht();return await import(Uht(t).href)}function qht(){let t=import.meta.dirname,e=sEe.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(nEe.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function Q2(t){console.info(t)}import S2 from"fs";import oEe from"path";var N2=class{constructor(e){this.cacheFile=oEe.resolve(e,g2,"valid-wrappers.json")}load(){if(S2.existsSync(this.cacheFile))try{return JSON.parse(S2.readFileSync(this.cacheFile,"utf-8"))}catch(e){je(`Failed to parse checksum cache file: ${e}`)}return[]}save(e){let r=[...new Set(e)];S2.mkdirSync(oEe.dirname(this.cacheFile),{recursive:!0}),S2.writeFileSync(this.cacheFile,JSON.stringify(r))}};var dEe=ge(uEe(),1);import*as lEe from"util";import*as T2 from"path";import*as x2 from"fs";var jht=lEe.promisify(x2.readdir);async function hEe(t){return(await fEe(t)).filter(r=>(0,dEe.default)(r).endsWith("gradle-wrapper.jar")).map(r=>T2.relative(t,r)).sort((r,n)=>r.localeCompare(n))}async function fEe(t){let e=await jht(t),r=await Promise.all(e.map(async n=>{let s=T2.resolve(t,n),i=x2.lstatSync(s,{throwIfNoEntry:!1});return i===void 0?[]:i.isDirectory()?fEe(s):new Promise(o=>o([s]))}));return Array.prototype.concat(...r)}var $ht={_useHtmlParser2:!1};function eE(t,e){if(!t)return e??$ht;let r={_useHtmlParser2:!!t.xmlMode,...e,...t};return t.xml?(r._useHtmlParser2=!0,r.xmlMode=!0,t.xml!==!0&&Object.assign(r,t.xml)):t.xmlMode&&(r._useHtmlParser2=!0),r}var Nq={};Ra(Nq,{contains:()=>Y2,extract:()=>Vft,html:()=>Hft,merge:()=>LEe,parseHTML:()=>qft,root:()=>Yft,text:()=>fg,xml:()=>Gft});var kd={};Ra(kd,{DocumentPosition:()=>ea,append:()=>bft,appendChild:()=>Bft,compareDocumentPosition:()=>vEe,existsOne:()=>DEe,filter:()=>iE,find:()=>O2,findAll:()=>Nft,findOne:()=>H2,findOneChild:()=>Sft,getAttributeValue:()=>Eft,getChildren:()=>sE,getElementById:()=>Dft,getElements:()=>Rft,getElementsByClassName:()=>kft,getElementsByTagName:()=>hg,getElementsByTagType:()=>vft,getFeed:()=>Sq,getInnerHTML:()=>mft,getName:()=>Ift,getOuterHTML:()=>xEe,getParent:()=>REe,getSiblings:()=>Qq,getText:()=>L2,hasAttrib:()=>Cft,hasChildren:()=>rr,innerText:()=>Mb,isCDATA:()=>tE,isComment:()=>dg,isDocument:()=>Zo,isTag:()=>Qe,isText:()=>Ii,nextElementSibling:()=>U2,prepend:()=>wft,prependChild:()=>Qft,prevElementSibling:()=>P2,removeElement:()=>Ku,removeSubsets:()=>_ft,replaceElement:()=>yft,testElement:()=>xft,textContent:()=>ju,uniqueSort:()=>Rd});var Xo={};Ra(Xo,{CDATA:()=>dq,Comment:()=>cq,Directive:()=>aq,Doctype:()=>hq,ElementType:()=>bt,Root:()=>iq,Script:()=>Aq,Style:()=>uq,Tag:()=>lq,Text:()=>oq,isTag:()=>sq});var bt;(function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"})(bt||(bt={}));function sq(t){return t.type===bt.Tag||t.type===bt.Script||t.type===bt.Style}var iq=bt.Root,oq=bt.Text,aq=bt.Directive,cq=bt.Comment,Aq=bt.Script,uq=bt.Style,lq=bt.Tag,dq=bt.CDATA,hq=bt.Doctype;var R2=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return rE(this,e)}},kb=class extends R2{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},IA=class extends kb{constructor(){super(...arguments),this.type=bt.Text}get nodeType(){return 3}},Ag=class extends kb{constructor(){super(...arguments),this.type=bt.Comment}get nodeType(){return 8}},ug=class extends kb{constructor(e,r){super(r),this.name=e,this.type=bt.Di Line truncated
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new xb(i));return n.searchPaths.push(...WG(n.patterns)),n})}static stat(e,r,n){return eq(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Z0.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){O(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield Z0.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Z0.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){O(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as tq from"crypto";import*as B2 from"fs";import*as W0e from"stream";import*as J0e from"util";import*as z0e from"path";var vht=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},_ht=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(o){return new Promise(function(a,c){o=t[i](o),s(a,c,o.done,o.value)})}}function s(i,o,a,c){Promise.resolve(c).then(function(A){i({value:A,done:a})},o)}};function j0e(t,e){return vht(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,c,A;let u=s?Z:O,l=!1,d=n||((A=process.env.GITHUB_WORKSPACE)!==null&&A!==void 0?A:process.cwd()),h=tq.createHash("sha256"),f=0;try{for(var g=!0,E=_ht(r.globGenerator()),m;m=yield E.next(),i=m.done,!i;g=!0){c=m.value,g=!1;let I=c;if(u(I),!I.startsWith(`${d}${z0e.sep}`)){u(`Ignore '${I}' since it is not under GITHUB_WORKSPACE.`);continue}if(B2.statSync(I).isDirectory()){u(`Skip directory '${I}'.`);continue}let y=tq.createHash("sha256");yield J0e.promisify(W0e.pipeline)(B2.createReadStream(I),y),h.write(y.digest()),f++,l||(l=!0)}}catch(I){o={error:I}}finally{try{!g&&!i&&(a=E.return)&&(yield a.call(E))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var K0e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function rq(t,e){return K0e(this,void 0,void 0,function*(){return yield I2.create(t,e)})}function $0e(t){return K0e(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield rq(e,{followSymbolicLinks:i});return j0e(o,r,s)})}import*as nq from"path";var Fht="Gradle User Home",Z0e="BASIC_CACHE_PRIMARY_KEY",eEe="BASIC_CACHE_RESTORED_KEY",Mht="setup-java",tEe=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],b2=class{async restore(e,r){let n=rEe(e),s=await Lht();Uc(Z0e,s);try{let i=await o2(n,s);i?(Uc(eEe,i),Z(`Basic caching restored from cache key: ${i}`)):Z("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){ze(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,n){let s=My(Z0e),i=My(eEe);if(n.readOnly)return{status:"read-only",entries:[Db({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: cache is read-only)"})]};if(i===s)return Z(`Basic caching restored entry with key \`${s}\`. Save was skipped.`),{status:"enabled",entries:[Db({primaryKey:s,restoredKey:i,restoredOutcome:"(Entry restored: exact match found)",savedOutcome:"(Entry not saved: entry with key already exists)"})]};let o=rEe(e);try{return await a2(o,s)===-1?(ze(`Basic caching failed to save entry with key \`${s}\`. See preceding log output for the cause.`),{status:"enabled",entries:[Db({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: save failed)"})]}):(Z(`Basic caching saved entry with key: ${s}`),{status:"enabled",entries:[Db({primaryKey:s,restoredKey:i,savedKey:s,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry saved)"})]})}catch(a){return ze(`Basic caching failed to save entry with key \`${s}\`: ${a}`),{status:"enabled",entries:[Db({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry reLine truncated
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${tEe}], make sure you have checked out the target repository`);return`${Mht}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var Pht="Enhanced Caching: This build is using the proprietary 'gradle-actions-caching' provider for optimized caching support. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for terms of use and opt-out instructions.",Oht="Basic Caching: This build uses the basic open-source caching provider. For faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.",Hht="External Caching: Gradle User Home is managed by an external caching provider. This action will not restore or save Gradle User Home.",w2=class{constructor(e){this.status=e}async restore(e,r){}async save(e,r,n){return{status:this.status,entries:[]}}};async function iEe(t){return t.getCacheProvider()==="external"?(Q2(Hht),new w2("external")):t.isCacheDisabled()?(Q2("Cache is disabled: will not restore state from previous builds."),new w2("disabled")):t.getCacheProvider()==="basic"?(Q2(Oht),new b2):(Q2(Pht),Ght())}async function Ght(){let t=qht();return await import(Uht(t).href)}function qht(){let t=import.meta.dirname,e=sEe.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(nEe.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function Q2(t){console.info(t)}import S2 from"fs";import oEe from"path";var N2=class{constructor(e){this.cacheFile=oEe.resolve(e,g2,"valid-wrappers.json")}load(){if(S2.existsSync(this.cacheFile))try{return JSON.parse(S2.readFileSync(this.cacheFile,"utf-8"))}catch(e){ze(`Failed to parse checksum cache file: ${e}`)}return[]}save(e){let r=[...new Set(e)];S2.mkdirSync(oEe.dirname(this.cacheFile),{recursive:!0}),S2.writeFileSync(this.cacheFile,JSON.stringify(r))}};var dEe=ge(uEe(),1);import*as lEe from"util";import*as T2 from"path";import*as x2 from"fs";var jht=lEe.promisify(x2.readdir);async function hEe(t){return(await fEe(t)).filter(r=>(0,dEe.default)(r).endsWith("gradle-wrapper.jar")).map(r=>T2.relative(t,r)).sort((r,n)=>r.localeCompare(n))}async function fEe(t){let e=await jht(t),r=await Promise.all(e.map(async n=>{let s=T2.resolve(t,n),i=x2.lstatSync(s,{throwIfNoEntry:!1});return i===void 0?[]:i.isDirectory()?fEe(s):new Promise(o=>o([s]))}));return Array.prototype.concat(...r)}var $ht={_useHtmlParser2:!1};function eE(t,e){if(!t)return e??$ht;let r={_useHtmlParser2:!!t.xmlMode,...e,...t};return t.xml?(r._useHtmlParser2=!0,r.xmlMode=!0,t.xml!==!0&&Object.assign(r,t.xml)):t.xmlMode&&(r._useHtmlParser2=!0),r}var Nq={};Ra(Nq,{contains:()=>Y2,extract:()=>Vft,html:()=>Hft,merge:()=>LEe,parseHTML:()=>qft,root:()=>Yft,text:()=>fg,xml:()=>Gft});var kd={};Ra(kd,{DocumentPosition:()=>ea,append:()=>bft,appendChild:()=>Bft,compareDocumentPosition:()=>vEe,existsOne:()=>DEe,filter:()=>iE,find:()=>O2,findAll:()=>Nft,findOne:()=>H2,findOneChild:()=>Sft,getAttributeValue:()=>Eft,getChildren:()=>sE,getElementById:()=>Dft,getElements:()=>Rft,getElementsByClassName:()=>kft,getElementsByTagName:()=>hg,getElementsByTagType:()=>vft,getFeed:()=>Sq,getInnerHTML:()=>mft,getName:()=>Ift,getOuterHTML:()=>xEe,getParent:()=>REe,getSiblings:()=>Qq,getText:()=>L2,hasAttrib:()=>Cft,hasChildren:()=>rr,innerText:()=>Mb,isCDATA:()=>tE,isComment:()=>dg,isDocument:()=>Zo,isTag:()=>Qe,isText:()=>Ii,nextElementSibling:()=>U2,prepend:()=>wft,prependChild:()=>Qft,prevElementSibling:()=>P2,removeElement:()=>Ku,removeSubsets:()=>_ft,replaceElement:()=>yft,testElement:()=>xft,textContent:()=>ju,uniqueSort:()=>Rd});var Xo={};Ra(Xo,{CDATA:()=>dq,Comment:()=>cq,Directive:()=>aq,Doctype:()=>hq,ElementType:()=>bt,Root:()=>iq,Script:()=>Aq,Style:()=>uq,Tag:()=>lq,Text:()=>oq,isTag:()=>sq});var bt;(function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"})(bt||(bt={}));function sq(t){return t.type===bt.Tag||t.type===bt.Script||t.type===bt.Style}var iq=bt.Root,oq=bt.Text,aq=bt.Directive,cq=bt.Comment,Aq=bt.Script,uq=bt.Style,lq=bt.Tag,dq=bt.CDATA,hq=bt.Doctype;var R2=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return rE(this,e)}},kb=class extends R2{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},IA=class extends kb{constructor(){super(...arguments),this.type=bt.Text}get nodeType(){return 3}},Ag=class extends kb{constructor(){super(...arguments),this.type=bt.Comment}get nodeType(){return 8}},ug=class extends kb{constructor(e,r){super(r),this.name=e,this.type=bt.Di Line truncated
`:L2(t.children):tE(t)?L2(t.children):Ii(t)?t.data:""}function ju(t){return Array.isArray(t)?t.map(ju).join(""):rr(t)&&!dg(t)?ju(t.children):Ii(t)?t.data:""}function Mb(t){return Array.isArray(t)?t.map(Mb).join(""):rr(t)&&(t.type===bt.Tag||tE(t))?Mb(t.children):Ii(t)?t.data:""}function sE(t){return rr(t)?t.children:[]}function REe(t){return t.parent||null}function Qq(t){let e=REe(t);if(e!=null)return sE(e);let r=[t],{prev:n,next:s}=t;for(;n!=null;)r.unshift(n),{prev:n}=n;for(;s!=null;)r.push(s),{next:s}=s;return r}function Eft(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function Cft(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function Ift(t){return t.name}function U2(t){let{next:e}=t;for(;e!==null&&!Qe(e);)({next:e}=e);return e}function P2(t){let{prev:e}=t;for(;e!==null&&!Qe(e);)({prev:e}=e);return e}function Ku(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function yft(t,e){let r=e.prev=t.prev;r&&(r.next=e);let n=e.next=t.next;n&&(n.prev=e);let s=e.parent=t.parent;if(s){let i=s.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function Bft(t,e){if(Ku(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function bft(t,e){Ku(e);let{parent:r}=t,n=t.next;if(e.next=n,e.prev=t,t.next=e,e.parent=r,n){if(n.prev=e,r){let s=r.children;s.splice(s.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}function Qft(t,e){if(Ku(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function wft(t,e){Ku(e);let{parent:r}=t;if(r){let n=r.children;n.splice(n.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function iE(t,e,r=!0,n=1/0){return O2(t,Array.isArray(e)?e:[e],r,n)}function O2(t,e,r,n){let s=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return s;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(s.push(a),--n<=0))return s;r&&rr(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function Sft(t,e){return e.find(t)}function H2(t,e,r=!0){let n=Array.isArray(e)?e:[e];for(let s=0;s<n.length;s++){let i=n[s];if(Qe(i)&&t(i))return i;if(r&&rr(i)&&i.children.length>0){let o=H2(t,i.children,!0);if(o)return o}}return null}function DEe(t,e){return(Array.isArray(e)?e:[e]).some(r=>Qe(r)&&t(r)||rr(r)&&DEe(t,r.children))}function Nft(t,e){let r=[],n=[Array.isArray(e)?e:[e]],s=[0];for(;;){if(s[0]>=n[0].length){if(n.length===1)return r;n.shift(),s.shift();continue}let i=n[0][s[0]++];Qe(i)&&t(i)&&r.push(i),rr(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var G2={tag_name(t){return typeof t=="function"?e=>Qe(e)&&t(e.name):t==="*"?Qe:e=>Qe(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>Ii(e)&&t(e.data):e=>Ii(e)&&e.data===t}};function wq(t,e){return typeof e=="function"?r=>Qe(r)&&e(r.attribs[t]):r=>Qe(r)&&r.attribs[t]===e}function Tft(t,e){return r=>t(r)||e(r)}function kEe(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(G2,r)?G2[r](n):wq(r,n)});return e.length===0?null:e.reduce(Tft)}function xft(t,e){let r=kEe(t);return r?r(e):!0}function Rft(t,e,r,n=1/0){let s=kEe(t);return s?iE(s,e,r,n):[]}function Dft(t,e,r=!0){return Array.isArray(e)||(e=[e]),H2(wq("id",t),e,r)}function hg(t,e,r=!0,n=1/0){return iE(G2.tag_name(t),e,r,n)}function kft(t,e,r=!0,n=1/0){return iE(wq("class",t),e,r,n)}function vft(t,e,r=!0,n=1/0){return iE(G2.tag_type(t),e,r,n)}function _ft(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let n=r.parent;n;n=n.parent)if(t.includes(n)){t.splice(e,1);break}}return t}var ea;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(ea||(ea={}));function vEe(t,e){let r=[],n=[];if(t===e)return 0;let s=rr(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=rr(e)?e:e.parent;s;)n.unshift(s),s=s.parent;let i=Math.min(r.length,n.length),o=0;for(;o<i&&r[o]===n[o];)o++;if(o===0)return ea.DISCONNECTED;let a=r[o-1],c=a.children,A=r[o],u=n[o];return c.indexOf(A)>c.indexOf(u)?a===e?ea.FOLLOWING|ea.CONTAINED_BY:ea.FOLLOWING:a===t?ea.PRECEDING|ea.CONTAINS:ea.PRECEDING}function Rd(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=vEe(e,r);return n&ea.PRECEDING?-1:n&ea.FOLLOWING?1:0}),t}function Sq(t){let e=q2(Pft,t);return e?e.name==="feed"?Fft(e):Mft(e):null}function Fft(t){var e;let r=t.children,n={type:"atom",items:hg("entry",r).map(o=>{var a;let{children:c}=o,A={media:_Ee(c)};yi(A,"id","id",c),yi(A,"title","title",c);let u=(a=q2("link",c))===null||a===void 0?void 0:a.attribs.href;u&&(A.link=u);let l=Dd("summary",c)||Dd("conten Line truncated
:is(button, input, select, textarea, optgroup, option)[disabled],
optgroup[disabled] > option,
@@ -280,7 +280,7 @@ ${t.map(({jdkVersion:e,jdkPath:r})=>` <toolchain>
</toolchain>`).join(`
`)}
</toolchains>
`}function Vvt(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var Kz="GRADLE_BUILD_ACTION_SETUP_COMPLETED",Wvt="GRADLE_USER_HOME",Jvt="DEVELOCITY_CACHE_TOKEN";async function LRe(t,e,r){let n=await URe(),s=await jvt();if(process.env[Kz])return Z("Gradle setup only performed on first gradle/actions step in workflow."),!1;Zn(Kz,!0),Uc(Kz,!0),Uc(Wvt,s),MRe(n,s,t.getCacheEncryptionKey());let i=e.getDevelocityUrl()||void 0,o=await B0e(e);return Uc(Jvt,o??""),await(await iEe(t)).restore(s,zvt(t,i,o)),await FRe(r,bd(),s),I0e(e),!0}function zvt(t,e,r){return{disabled:t.isCacheDisabled(),readOnly:t.isCacheReadOnly(),writeOnly:t.isCacheWriteOnly(),overwriteExisting:t.isCacheOverwriteExisting(),strictMatch:t.isCacheStrictMatch(),cleanup:t.getCacheCleanupOption(),encryptionKey:t.getCacheEncryptionKey()||void 0,develocityAccessToken:r,develocityServerUrl:e,includes:t.getCacheIncludes(),excludes:t.getCacheExcludes()}}async function jvt(){let t=process.env.GRADLE_USER_HOME;if(t){let r=bd();return Xz.resolve(r,t)}let e=Xz.resolve(await URe(),".gradle");if($z.existsSync(e))return Z(`Gradle User Home already exists at ${e}`),Zn("GRADLE_USER_HOME",e),e;if(Y_.platform()==="win32"&&e.startsWith("C:\\")&&$z.existsSync("D:\\a\\")){let r="D:\\a\\.gradle";return Z(`Setting GRADLE_USER_HOME to ${r} to leverage (potentially) faster drive.`),Zn("GRADLE_USER_HOME",r),r}return Zn("GRADLE_USER_HOME",e),e}async function URe(){let t=await Fy("java",["-XshowSettings:properties","-version"],{silent:!0}),e=/user\.home = (\S*)/i,r=t.stderr.match(e);if(r==null||r.length<=1)return Z("Could not determine user.home from java -version output. Using os.homedir()."),Y_.homedir();let n=r[1];return O(`Determined user.home from java -version output: '${n}'`),n}import*as dC from"fs";import*as EDe from"os";import*as dh from"path";import*as ej from"crypto";import*as up from"fs";var $vt=ge(Xy(),1);import*as pw from"path";var J_=ge(Xy(),1);import*as ORe from"stream";import*as HRe from"util";import{ok as Zvt}from"assert";var PRe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},V_=class{constructor(e,r,n){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(r),this.maxSeconds=Math.floor(n),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,r){return PRe(this,void 0,void 0,function*(){let n=1;for(;n<this.maxAttempts;){try{return yield e()}catch(i){if(r&&!r(i))throw i;Z(i.message)}let s=this.getSleepAmount();Z(`Waiting ${s} seconds before trying again`),yield this.sleep(s),n++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return PRe(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var Ap=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},W_=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},e_t=process.platform==="win32",I1r=process.platform==="darwin",t_t="actions/tool-cache";function GRe(t,e,r,n){return Ap(this,void 0,void 0,function*(){e=e||pw.join(YRe(),ej.randomUUID()),yield ff(pw.dirname(e)),O(`Downloading ${t}`),O(`Destination ${e}`);let s=3,i=Zz("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=Zz("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new V_(s,i,o).execute(()=>Ap(this,void 0,void 0,function*(){return yield r_t(t,e||"",r,n)}),c=>!(c instanceof W_&&c.httpStatusCode&&c.httpStatusCode<500&&c.httpStatusCode!==408&&c.httpStatusCode!==429))})}function r_t(t,e,r,n){return Ap(this,void 0,void 0,function*(){if(up.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let s=new Pr(t_t,[],{allowRetries:!1});r&&(O("set auth"),n===void 0&&(n={}),n.authorization=r);let i=yield s.get(t,n);if(i.message.statusCode!==200){let u=new W_(i.message.statusCode);throw O(`Failed to download from "${t}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),u}let o=HRe.promisify(ORe.pipeline),c=Zz("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>i.message)(),A=!1;try{return yield o(c,up.createWriteStream(e)),O("download complete"),A=!0,e}finally{if(!A){O("download failed");try{yield AAe(e)}catch(u){O(`Failed to delete '${e}'. ${u.message}`)}}}})}function qRe(t,e){return Ap(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'file' is required");return e=yie Line truncated
`}function Vvt(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var Kz="GRADLE_BUILD_ACTION_SETUP_COMPLETED",Wvt="GRADLE_USER_HOME",Jvt="DEVELOCITY_CACHE_TOKEN";async function LRe(t,e,r){let n=await URe(),s=await jvt();if(process.env[Kz])return Z("Gradle setup only performed on first gradle/actions step in workflow."),!1;Zn(Kz,!0),Uc(Kz,!0),Uc(Wvt,s),MRe(n,s,t.getCacheEncryptionKey());let i=e.getDevelocityUrl()||void 0,o=await B0e(e);return Uc(Jvt,o??""),await(await iEe(t)).restore(s,zvt(t,i,o)),await FRe(r,bd(),s),I0e(e),!0}function zvt(t,e,r){return{disabled:t.isCacheDisabled(),readOnly:t.isCacheReadOnly(),writeOnly:t.isCacheWriteOnly(),overwriteExisting:t.isCacheOverwriteExisting(),strictMatch:t.isCacheStrictMatch(),cleanup:t.getCacheCleanupOption(),encryptionKey:t.getCacheEncryptionKey()||void 0,develocityAccessToken:r,develocityServerUrl:e,includes:t.getCacheIncludes(),excludes:t.getCacheExcludes()}}async function jvt(){let t=process.env.GRADLE_USER_HOME;if(t){let r=bd();return Xz.resolve(r,t)}let e=Xz.resolve(await URe(),".gradle");if($z.existsSync(e))return Z(`Gradle User Home already exists at ${e}`),Zn("GRADLE_USER_HOME",e),e;if(Y_.platform()==="win32"&&e.startsWith("C:\\")&&$z.existsSync("D:\\a\\")){let r="D:\\a\\.gradle";return Z(`Setting GRADLE_USER_HOME to ${r} to leverage (potentially) faster drive.`),Zn("GRADLE_USER_HOME",r),r}return Zn("GRADLE_USER_HOME",e),e}async function URe(){let t=await Fy("java",["-XshowSettings:properties","-version"],{silent:!0}),e=/user\.home = (\S*)/i,r=t.stderr.match(e);if(r==null||r.length<=1)return Z("Could not determine user.home from java -version output. Using os.homedir()."),Y_.homedir();let n=r[1];return O(`Determined user.home from java -version output: '${n}'`),n}import*as dC from"fs";import*as EDe from"os";import*as dh from"path";import*as ej from"crypto";import*as up from"fs";var $vt=ge(Xy(),1);import*as pw from"path";var J_=ge(Xy(),1);import*as ORe from"stream";import*as HRe from"util";import{ok as Zvt}from"assert";var PRe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},V_=class{constructor(e,r,n){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(r),this.maxSeconds=Math.floor(n),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,r){return PRe(this,void 0,void 0,function*(){let n=1;for(;n<this.maxAttempts;){try{return yield e()}catch(i){if(r&&!r(i))throw i;Z(i.message)}let s=this.getSleepAmount();Z(`Waiting ${s} seconds before trying again`),yield this.sleep(s),n++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return PRe(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var Ap=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},W_=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},e_t=process.platform==="win32",I1r=process.platform==="darwin",t_t="actions/tool-cache";function GRe(t,e,r,n){return Ap(this,void 0,void 0,function*(){e=e||pw.join(YRe(),ej.randomUUID()),yield ff(pw.dirname(e)),O(`Downloading ${t}`),O(`Destination ${e}`);let s=3,i=Zz("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=Zz("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new V_(s,i,o).execute(()=>Ap(this,void 0,void 0,function*(){return yield r_t(t,e||"",r,n)}),c=>!(c instanceof W_&&c.httpStatusCode&&c.httpStatusCode<500&&c.httpStatusCode!==408&&c.httpStatusCode!==429))})}function r_t(t,e,r,n){return Ap(this,void 0,void 0,function*(){if(up.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let s=new Pr(t_t,[],{allowRetries:!1});r&&(O("set auth"),n===void 0&&(n={}),n.authorization=r);let i=yield s.get(t,n);if(i.message.statusCode!==200){let u=new W_(i.message.statusCode);throw O(`Failed to download from "${t}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),u}let o=HRe.promisify(ORe.pipeline),c=Zz("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>i.message)(),A=!1;try{return yield o(c,up.createWriteStream(e)),O("download complete"),A=!0,e}finally{if(!A){O("download failed");try{yield AAe(e)}catch(u){O(`Failed to delete '${e}'. ${u.message}`)}}}})}function qRe(t,e){return Ap(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'file' is required");return e=yie Line truncated
`," Line feed \\n"]]),vDe=new Map([...Pj,["\\"," Backslash \\"],["/"," Forward slash /"]]);function _De(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of vDe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
Invalid characters include: ${Array.from(vDe.values()).toString()}
@@ -292,28 +292,28 @@ Invalid characters include: ${Array.from(Pj.values()).toString()}
The following characters are not allowed in files that are uploaded due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.
`)}var UDe=ge(LDe(),1);function YA(){return`@actions/artifact-${UDe.version}`}var pC=class extends Error{constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`: ${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},El=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},Cl=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},hh=class extends Error{constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},Il=class extends Error{constructor(e){let r=`Unable to make request: ${e}
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};Il.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var dp=class extends Error{constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};dp.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var hp=class extends Error{};hp.prototype.name="InvalidTokenError";function L_t(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function U_t(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return L_t(e)}catch{return atob(e)}}function PDe(t,e){if(typeof t!="string")throw new hp("Invalid token specified: must be a string");e||(e={});let r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new hp(`Invalid token specified: missing part #${r+1}`);let s;try{s=U_t(n)}catch(i){throw new hp(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new hp(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var $_=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function VA(){let t=j_(),e=PDe(t);if(!e.scp)throw $_;let r=e.scp.split(" ");if(r.length===0)throw $_;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw $_;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return O(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),O(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw $_}function ODe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(vo(r),vo(encodeURIComponent(r)))}catch(e){O(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function HDe(t){if(typeof t!="object"||t===null){O("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&ODe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&ODe(t.signed_url)}var X_=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Hj=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=j_();this.baseUrl=BDe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new Pr(e,[new wu(i)])}request(e,r,n,s){return X_(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;O(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>X_(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(s),o)}));return a}catch(a){throw new Error(`Failed to ${r}: ${a.message}`)}})}retryableRequest(e){return X_(this,void 0,void 0,function*(){let r=0,n="",s="";for(;r<this.maxAttempts;){let i=!1;try{let a=yield e(),c=a.message.statusCode;s=yield a.readBody(),O(`[Response] - ${a.message.statusCode}`),O(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let A=JSON.parse(s);if(HDe(A),O(`Body: ${JSON.stringify(A,null,2)}`),this.isSuccessStatusCode(c))return{response:a,body:A};if(i=this.isRetryableHttpStatusCode(c),n=`Failed request: (${c}) ${a.message.statusMessage}`,A.msg){if(dp.isUsageErrorMessage(A.msg))throw new dp;n=`${n}: ${A.msg}`}}catch(a){if(a instanceof SyntaxError&&O(`Raw Body: ${s}`),a instanceof dp)throw a;if(Il.isNetworkErrorCode(a?.code))throw new Il(a?.code);i=!0,n=a.message}if(!i)throw new Error(`Received non-retryable error: ${n}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let o=this.getExponentialRetryTimeMilliseconds(r);Z(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${o} ms...`),yield this.sleep(o),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[tr.BadGateway,tr.GatewayTimeout,tr.InternalServerError,tr.ServiceUnavailable,tr.TooManyRequests].includes(e):!1}sleep(e){return X_(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),n=r*this.retryMultiplier;return Math.trunc(Math.random()*(n-r)+r)}};function WA(t){let e=new Hj(YA(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new K_(e)}import*as mC from"fs";import{normalize as GDe,resolve as qDe}from"path";function YDe(t){if(!mC.existsSync(t))throw ne Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);c.length>1&&je("Multiple artifacts found, defaulting to first.");let A={workflowRunBackendId:c[0].workflowRunBackendId,workflowJobRunBackendId:c[0].workflowJobRunBackendId,name:c[0].name},{signedUrl:u}=yield n.GetSignedArtifactURL(A);Z(`Redirecting to blob download url: ${t4e(u)}`);try{Z(`Starting download of artifact to: ${r}`);let l=yield r4e(u,r,e?.skipDecompress);Z("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,O(`Computed digest: ${l.sha256Digest}`),O(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function i4e(){return lI(this,arguments,void 0,function*(t=bDe()){return(yield yWt(t))?O(`Artifact destination folder already exists: ${t}`):(O(`Artifact destination folder does not exist, creating: ${t}`),yield K8e.mkdir(t,{recursive:!0})),t})}var bWt=5,QWt=[400,401,403,404,422];function dI(t,e=bWt,r=QWt){var n;if(e<=0)return[{enabled:!1},t.request];let s={enabled:!0};r.length>0&&(s.doNotRetry=r);let i=Object.assign(Object.assign({},t.request),{retries:e});return O(`GitHub client configured with: (retries: ${i.retries}, retry-exempt-status-code: ${(n=s.doNotRetry)!==null&&n!==void 0?n:"octokit default: [400, 401, 403, 404, 422]"})`),[s,i]}var o4e="6.0.0";function Gp(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let n=Date.now(),s=t.request.endpoint.parse(r),i=s.url.replace(r.baseUrl,"");return e(r).then(o=>{let a=o.headers["x-github-request-id"];return t.log.info(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o}).catch(o=>{let a=o.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o})})}Gp.VERSION=o4e;var A4e=ge(a4e(),1);var iL=class extends Error{name;status;request;response;constructor(e,r,n){super(e,{cause:n.cause}),this.name="HttpError",this.status=Number.parseInt(r),Number.isNaN(this.status)&&(this.status=0);"response"in n&&(this.response=n.response);let s=Object.assign({},n.request);n.request.headers.authorization&&(s.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=s}};var wWt="0.0.0-development";async function c4e(t,e,r,n){if(!r.request||!r.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let s=n.request.retries!=null?n.request.retries:t.retries,i=Math.pow((n.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,s,i)}throw r}async function SWt(t,e,r,n){let s=new A4e.default;return s.on("failed",function(i,o){let a=~~i.request.request.retries,c=~~i.request.request.retryAfter;if(n.request.retryCount=o.retryCount+1,a>o.retryCount)return c*t.retryAfterBaseValue}),s.schedule(NWt.bind(null,t,e,r),n)}async function NWt(t,e,r,n){let s=await r(r,n);if(s.data&&s.data.errors&&s.data.errors.length>0&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){let i=new iL(s.data.errors[0].message,500,{request:n,response:s});return c4e(t,e,i,n)}return s}function qp(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry);return r.enabled&&(t.hook.error("request",c4e.bind(null,r,t)),t.hook.wrap("request",SWt.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}qp.VERSION=wWt;var u4e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function oL(t,e,r,n,s){return u4e(this,void 0,void 0,function*(){var i;let[o,a]=dI(Ef),c={log:void 0,userAgent:YA(),previews:void 0,retry:o,request:a},u=yield qa(s,c,qp,Gp).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:n,run_id:e,name:t});if(u.status!==200)throw new El(`Invalid response from GitHub API: ${u.status} (${(i=u?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);if(u.data.artifacts.length===0)throw new Cl(`Artifact not found for name: ${t}
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};dp.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var hp=class extends Error{};hp.prototype.name="InvalidTokenError";function L_t(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function U_t(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return L_t(e)}catch{return atob(e)}}function PDe(t,e){if(typeof t!="string")throw new hp("Invalid token specified: must be a string");e||(e={});let r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new hp(`Invalid token specified: missing part #${r+1}`);let s;try{s=U_t(n)}catch(i){throw new hp(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new hp(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var $_=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function VA(){let t=j_(),e=PDe(t);if(!e.scp)throw $_;let r=e.scp.split(" ");if(r.length===0)throw $_;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw $_;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return O(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),O(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw $_}function ODe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(vo(r),vo(encodeURIComponent(r)))}catch(e){O(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function HDe(t){if(typeof t!="object"||t===null){O("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&ODe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&ODe(t.signed_url)}var X_=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Hj=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=j_();this.baseUrl=BDe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new Pr(e,[new wu(i)])}request(e,r,n,s){return X_(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;O(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>X_(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(s),o)}));return a}catch(a){throw new Error(`Failed to ${r}: ${a.message}`)}})}retryableRequest(e){return X_(this,void 0,void 0,function*(){let r=0,n="",s="";for(;r<this.maxAttempts;){let i=!1;try{let a=yield e(),c=a.message.statusCode;s=yield a.readBody(),O(`[Response] - ${a.message.statusCode}`),O(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let A=JSON.parse(s);if(HDe(A),O(`Body: ${JSON.stringify(A,null,2)}`),this.isSuccessStatusCode(c))return{response:a,body:A};if(i=this.isRetryableHttpStatusCode(c),n=`Failed request: (${c}) ${a.message.statusMessage}`,A.msg){if(dp.isUsageErrorMessage(A.msg))throw new dp;n=`${n}: ${A.msg}`}}catch(a){if(a instanceof SyntaxError&&O(`Raw Body: ${s}`),a instanceof dp)throw a;if(Il.isNetworkErrorCode(a?.code))throw new Il(a?.code);i=!0,n=a.message}if(!i)throw new Error(`Received non-retryable error: ${n}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let o=this.getExponentialRetryTimeMilliseconds(r);Z(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${o} ms...`),yield this.sleep(o),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[tr.BadGateway,tr.GatewayTimeout,tr.InternalServerError,tr.ServiceUnavailable,tr.TooManyRequests].includes(e):!1}sleep(e){return X_(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),n=r*this.retryMultiplier;return Math.trunc(Math.random()*(n-r)+r)}};function WA(t){let e=new Hj(YA(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new K_(e)}import*as mC from"fs";import{normalize as GDe,resolve as qDe}from"path";function YDe(t){if(!mC.existsSync(t))throw ne Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);c.length>1&&ze("Multiple artifacts found, defaulting to first.");let A={workflowRunBackendId:c[0].workflowRunBackendId,workflowJobRunBackendId:c[0].workflowJobRunBackendId,name:c[0].name},{signedUrl:u}=yield n.GetSignedArtifactURL(A);Z(`Redirecting to blob download url: ${t4e(u)}`);try{Z(`Starting download of artifact to: ${r}`);let l=yield r4e(u,r,e?.skipDecompress);Z("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,O(`Computed digest: ${l.sha256Digest}`),O(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function i4e(){return lI(this,arguments,void 0,function*(t=bDe()){return(yield yWt(t))?O(`Artifact destination folder already exists: ${t}`):(O(`Artifact destination folder does not exist, creating: ${t}`),yield K8e.mkdir(t,{recursive:!0})),t})}var bWt=5,QWt=[400,401,403,404,422];function dI(t,e=bWt,r=QWt){var n;if(e<=0)return[{enabled:!1},t.request];let s={enabled:!0};r.length>0&&(s.doNotRetry=r);let i=Object.assign(Object.assign({},t.request),{retries:e});return O(`GitHub client configured with: (retries: ${i.retries}, retry-exempt-status-code: ${(n=s.doNotRetry)!==null&&n!==void 0?n:"octokit default: [400, 401, 403, 404, 422]"})`),[s,i]}var o4e="6.0.0";function Gp(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let n=Date.now(),s=t.request.endpoint.parse(r),i=s.url.replace(r.baseUrl,"");return e(r).then(o=>{let a=o.headers["x-github-request-id"];return t.log.info(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o}).catch(o=>{let a=o.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o})})}Gp.VERSION=o4e;var A4e=ge(a4e(),1);var iL=class extends Error{name;status;request;response;constructor(e,r,n){super(e,{cause:n.cause}),this.name="HttpError",this.status=Number.parseInt(r),Number.isNaN(this.status)&&(this.status=0);"response"in n&&(this.response=n.response);let s=Object.assign({},n.request);n.request.headers.authorization&&(s.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=s}};var wWt="0.0.0-development";async function c4e(t,e,r,n){if(!r.request||!r.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let s=n.request.retries!=null?n.request.retries:t.retries,i=Math.pow((n.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,s,i)}throw r}async function SWt(t,e,r,n){let s=new A4e.default;return s.on("failed",function(i,o){let a=~~i.request.request.retries,c=~~i.request.request.retryAfter;if(n.request.retryCount=o.retryCount+1,a>o.retryCount)return c*t.retryAfterBaseValue}),s.schedule(NWt.bind(null,t,e,r),n)}async function NWt(t,e,r,n){let s=await r(r,n);if(s.data&&s.data.errors&&s.data.errors.length>0&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){let i=new iL(s.data.errors[0].message,500,{request:n,response:s});return c4e(t,e,i,n)}return s}function qp(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry);return r.enabled&&(t.hook.error("request",c4e.bind(null,r,t)),t.hook.wrap("request",SWt.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}qp.VERSION=wWt;var u4e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function oL(t,e,r,n,s){return u4e(this,void 0,void 0,function*(){var i;let[o,a]=dI(Ef),c={log:void 0,userAgent:YA(),previews:void 0,retry:o,request:a},u=yield qa(s,c,qp,Gp).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:n,run_id:e,name:t});if(u.status!==200)throw new El(`Invalid response from GitHub API: ${u.status} (${(i=u?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);if(u.data.artifacts.length===0)throw new Cl(`Artifact not found for name: ${t}
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let l=u.data.artifacts[0];return u.data.artifacts.length>1&&(l=u.data.artifacts.sort((d,h)=>h.id-d.id)[0],O(`More than one artifact found for a single name, returning newest (id: ${l.id})`)),{artifact:{name:l.name,id:l.id,size:l.size_in_bytes,createdAt:l.created_at?new Date(l.created_at):void 0,digest:l.digest}}})}function l4e(t){return u4e(this,void 0,void 0,function*(){var e;let r=WA(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=VA(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:pn.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new Cl(`Artifact not found for name: ${t}
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let a=o.artifacts[0];return o.artifacts.length>1&&(a=o.artifacts.sort((c,A)=>Number(A.databaseId)-Number(c.databaseId))[0],O(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`)),{artifact:{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?Eo.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var d4e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function h4e(t,e,r,n,s){return d4e(this,void 0,void 0,function*(){var i;let[o,a]=dI(Ef),c={log:void 0,userAgent:YA(),previews:void 0,retry:o,request:a},A=qa(s,c,qp,Gp),u=yield oL(t,e,r,n,s),l=yield A.rest.actions.deleteArtifact({owner:r,repo:n,artifact_id:u.artifact.id});if(l.status!==204)throw new El(`Invalid response from GitHub API: ${l.status} (${(i=l?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);return{id:u.artifact.id}})}function f4e(t){return d4e(this,void 0,void 0,function*(){let e=WA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=VA(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:pn.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new Cl(`Artifact not found for name: ${t}`);let o=i.artifacts[0];i.artifacts.length>1&&(o=i.artifacts.sort((A,u)=>Number(u.databaseId)-Number(A.databaseId))[0],O(`More than one artifact found for a single name, returning newest (id: ${o.databaseId})`));let a={workflowRunBackendId:o.workflowRunBackendId,workflowJobRunBackendId:o.workflowJobRunBackendId,name:o.name},c=yield e.DeleteArtifact(a);return Z(`Artifact '${t}' (ID: ${c.artifactId}) deleted`),{id:Number(c.artifactId)}})}var g4e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},aL=SDe(),cL=100,TWt=Math.ceil(aL/cL);function p4e(t,e,r,n){return g4e(this,arguments,void 0,function*(s,i,o,a,c=!1){Z(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let A=[],[u,l]=dI(Ef),d={log:void 0,userAgent:YA(),previews:void 0,retry:u,request:l},h=qa(a,d,qp,Gp),f=1,{data:g}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:cL,page:f}),E=Math.ceil(g.total_count/cL),m=g.total_count;m>aL&&(je(`Workflow run ${s} has ${m} artifacts, exceeding the limit of ${aL}. Results will be incomplete as only the first ${aL} artifacts will be returned`),E=TWt);for(let I of g.artifacts)A.push({name:I.name,id:I.id,size:I.size_in_bytes,createdAt:I.created_at?new Date(I.created_at):void 0,digest:I.digest});for(f++,f;f<=E;f++){O(`Fetching page ${f} of artifact list`);let{data:I}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:cL,page:f});for(let y of I.artifacts)A.push({name:y.name,id:y.id,size:y.size_in_bytes,createdAt:y.created_at?new Date(y.created_at):void 0,digest:y.digest})}return c&&(A=E4e(A)),Z(`Found ${A.length} artifact(s)`),{artifacts:A}})}function m4e(){return g4e(this,arguments,void 0,function*(t=!1){let e=WA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=VA(),s={workflowRunBackendId:r,workflowJobRunBackendId:n},o=(yield e.ListArtifacts(s)).artifacts.map(a=>{var c;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?Eo.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=E4e(o)),Z(`Found ${o.length} artifact(s)`),{artifacts:o}})}function E4e(t){t.sort((n,s)=>s.id-n.id);let e=[],r=new Set;for(let n of t)r.has(n.name)||(e.push(n),r.add(n.name));return e}var U1=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},xWt=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]]);return r},hI=class{uploadArtifact(e,r,n,s){return U1(this,void 0,void 0,function*(){try{if(hC())throw new hh;return g8e(e,r,n,s)}catch(i){throw je(`Artifact upload failed with error: ${i}.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let a=o.artifacts[0];return o.artifacts.length>1&&(a=o.artifacts.sort((c,A)=>Number(A.databaseId)-Number(c.databaseId))[0],O(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`)),{artifact:{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?Eo.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var d4e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function h4e(t,e,r,n,s){return d4e(this,void 0,void 0,function*(){var i;let[o,a]=dI(Ef),c={log:void 0,userAgent:YA(),previews:void 0,retry:o,request:a},A=qa(s,c,qp,Gp),u=yield oL(t,e,r,n,s),l=yield A.rest.actions.deleteArtifact({owner:r,repo:n,artifact_id:u.artifact.id});if(l.status!==204)throw new El(`Invalid response from GitHub API: ${l.status} (${(i=l?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);return{id:u.artifact.id}})}function f4e(t){return d4e(this,void 0,void 0,function*(){let e=WA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=VA(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:pn.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new Cl(`Artifact not found for name: ${t}`);let o=i.artifacts[0];i.artifacts.length>1&&(o=i.artifacts.sort((A,u)=>Number(u.databaseId)-Number(A.databaseId))[0],O(`More than one artifact found for a single name, returning newest (id: ${o.databaseId})`));let a={workflowRunBackendId:o.workflowRunBackendId,workflowJobRunBackendId:o.workflowJobRunBackendId,name:o.name},c=yield e.DeleteArtifact(a);return Z(`Artifact '${t}' (ID: ${c.artifactId}) deleted`),{id:Number(c.artifactId)}})}var g4e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},aL=SDe(),cL=100,TWt=Math.ceil(aL/cL);function p4e(t,e,r,n){return g4e(this,arguments,void 0,function*(s,i,o,a,c=!1){Z(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let A=[],[u,l]=dI(Ef),d={log:void 0,userAgent:YA(),previews:void 0,retry:u,request:l},h=qa(a,d,qp,Gp),f=1,{data:g}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:cL,page:f}),E=Math.ceil(g.total_count/cL),m=g.total_count;m>aL&&(ze(`Workflow run ${s} has ${m} artifacts, exceeding the limit of ${aL}. Results will be incomplete as only the first ${aL} artifacts will be returned`),E=TWt);for(let I of g.artifacts)A.push({name:I.name,id:I.id,size:I.size_in_bytes,createdAt:I.created_at?new Date(I.created_at):void 0,digest:I.digest});for(f++,f;f<=E;f++){O(`Fetching page ${f} of artifact list`);let{data:I}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:cL,page:f});for(let y of I.artifacts)A.push({name:y.name,id:y.id,size:y.size_in_bytes,createdAt:y.created_at?new Date(y.created_at):void 0,digest:y.digest})}return c&&(A=E4e(A)),Z(`Found ${A.length} artifact(s)`),{artifacts:A}})}function m4e(){return g4e(this,arguments,void 0,function*(t=!1){let e=WA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=VA(),s={workflowRunBackendId:r,workflowJobRunBackendId:n},o=(yield e.ListArtifacts(s)).artifacts.map(a=>{var c;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?Eo.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=E4e(o)),Z(`Found ${o.length} artifact(s)`),{artifacts:o}})}function E4e(t){t.sort((n,s)=>s.id-n.id);let e=[],r=new Set;for(let n of t)r.has(n.name)||(e.push(n),r.add(n.name));return e}var U1=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},xWt=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]]);return r},hI=class{uploadArtifact(e,r,n,s){return U1(this,void 0,void 0,function*(){try{if(hC())throw new hh;return g8e(e,r,n,s)}catch(i){throw ze(`Artifact upload failed with error: ${i}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}downloadArtifact(e,r){return U1(this,void 0,void 0,function*(){try{if(hC())throw new hh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=xWt(r,["findBy"]);return n4e(e,n,s,i,o)}return s4e(e,r)}catch(n){throw je(`Download Artifact failed with error: ${n}.
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}downloadArtifact(e,r){return U1(this,void 0,void 0,function*(){try{if(hC())throw new hh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=xWt(r,["findBy"]);return n4e(e,n,s,i,o)}return s4e(e,r)}catch(n){throw ze(`Download Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}listArtifacts(e){return U1(this,void 0,void 0,function*(){try{if(hC())throw new hh;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return p4e(r,n,s,i,e?.latest)}return m4e(e?.latest)}catch(r){throw je(`Listing Artifacts failed with error: ${r}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}listArtifacts(e){return U1(this,void 0,void 0,function*(){try{if(hC())throw new hh;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return p4e(r,n,s,i,e?.latest)}return m4e(e?.latest)}catch(r){throw ze(`Listing Artifacts failed with error: ${r}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return U1(this,void 0,void 0,function*(){try{if(hC())throw new hh;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return oL(e,n,s,i,o)}return l4e(e)}catch(n){throw je(`Get Artifact failed with error: ${n}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return U1(this,void 0,void 0,function*(){try{if(hC())throw new hh;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return oL(e,n,s,i,o)}return l4e(e)}catch(n){throw ze(`Get Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}deleteArtifact(e,r){return U1(this,void 0,void 0,function*(){try{if(hC())throw new hh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return h4e(e,i,n,s,o)}return f4e(e)}catch(n){throw je(`Delete Artifact failed with error: ${n}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}deleteArtifact(e,r){return U1(this,void 0,void 0,function*(){try{if(hC())throw new hh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return h4e(e,i,n,s,o)}return f4e(e)}catch(n){throw ze(`Delete Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
@@ -321,7 +321,7 @@ If the error persists, please check whether Actions and API requests are operati
${e.message}`;return e.message==="Resource not accessible by integration"?`${n}
Please ensure that the 'contents: write' permission is available for the workflow job.
Note that this permission is never available for a 'pull_request' trigger from a repository fork.
`:n}async function MWt(t){let e=HWt(),r=PZ.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=oi.repo.owner,n.repo=oi.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=I4e(t);IAe(`Submitted ${i}: ${s.data.message}`)}function LWt(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function UWt(t){let e=`${t}.processed`;return PZ.existsSync(e)}function PWt(t){let e=`${t}.processed`;PZ.writeFileSync(e,"")}function OWt(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new ap(r);je(`Failed to ${e} dependency graph. Will continue.
`:n}async function MWt(t){let e=HWt(),r=PZ.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=oi.repo.owner,n.repo=oi.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=I4e(t);IAe(`Submitted ${i}: ${s.data.message}`)}function LWt(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function UWt(t){let e=`${t}.processed`;return PZ.existsSync(e)}function PWt(t){let e=`${t}.processed`;PZ.writeFileSync(e,"")}function OWt(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new ap(r);ze(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function HWt(){return qa(p2())}function I4e(t){let e=bd();return UZ.relative(e,t)}function GWt(){let t=oi;return["pull_request","pull_request_comment","pull_request_review","pull_request_review_comment"].includes(t.eventName)?t.payload.pull_request.head.sha:t.sha}function qWt(){return process.env.ACT!==void 0}function VWt(t=process.platform){return t==="win32"?50:0}async function y4e(t=process.platform){let e=VWt(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}async function WWt(){try{Ib()==="gradle/gradle-build-action"&&u2("The action `gradle/gradle-build-action` has been replaced by `gradle/actions/setup-gradle`"),C0e("gradle/actions/setup-gradle"),await LRe(new K0,new rc,new f2),await C4e(new Bb);let t=new h2;t.verifyNoArguments(),await nj(t.getGradleVersion()),p0e()}catch(t){_Re(t)}await y4e()}WWt();export{WWt as run};
/*! Bundled license information: