Files
setup-buildx-action/dist/index.cjs
T

250 lines
1.8 MiB
JavaScript
Raw Normal View History

var Cde=Object.create;var OE=Object.defineProperty;var Ide=Object.getOwnPropertyDescriptor;var Bde=Object.getOwnPropertyNames;var bde=Object.getPrototypeOf,wde=Object.prototype.hasOwnProperty;var o=(t,e)=>OE(t,"name",{value:e,configurable:!0});var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Sde=(t,e)=>{for(var r in e)OE(t,r,{get:e[r],enumerable:!0})},Nde=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Bde(e))!wde.call(t,s)&&s!==r&&OE(t,s,{get:()=>e[s],enumerable:!(n=Ide(e,s))||n.enumerable});return t};var w=(t,e,r)=>(r=t!=null?Cde(bde(t)):{},Nde(e||!t||!t.__esModule?OE(r,"default",{value:t,enumerable:!0}):r,t));var aH=m(Cd=>{"use strict";var HKe=require("net"),Jpe=require("tls"),Ux=require("http"),sH=require("https"),Ype=require("events"),VKe=require("assert"),Wpe=require("util");Cd.httpOverHttp=jpe;Cd.httpsOverHttp=Kpe;Cd.httpOverHttps=Xpe;Cd.httpsOverHttps=Zpe;function jpe(t){var e=new na(t);return e.request=Ux.request,e}o(jpe,"httpOverHttp");function Kpe(t){var e=new na(t);return e.request=Ux.request,e.createSocket=iH,e.defaultPort=443,e}o(Kpe,"httpsOverHttp");function Xpe(t){var e=new na(t);return e.request=sH.request,e}o(Xpe,"httpOverHttps");function Zpe(t){var e=new na(t);return e.request=sH.request,e.createSocket=iH,e.defaultPort=443,e}o(Zpe,"httpsOverHttps");function na(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||Ux.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(n,s,i,a){for(var c=oH(s,i,a),l=0,u=e.requests.length;l<u;++l){var d=e.requests[l];if(d.host===c.host&&d.port===c.port){e.requests.splice(l,1),d.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)},"onFree"))}o(na,"TunnelingAgent");Wpe.inherits(na,Ype.EventEmitter);na.prototype.addRequest=o(function(e,r,n,s){var i=this,a=qx({request:e},i.options,oH(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(a);return}i.createSocket(a,function(c){c.on("free",l),c.on("close",u),c.on("agentRemove",u),e.onSocket(c);function l(){i.emit("free",c,a)}o(l,"onFree");function u(d){i.removeSocket(c),c.removeListener("free",l),c.removeListener("close",u),c.removeListener("agentRemove",u)}o(u,"onCloseOrRemove")})},"addRequest");na.prototype.createSocket=o(function(e,r){var n=this,s={};n.sockets.push(s);var i=qx({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),sc("making CONNECT request");var a=n.request(i);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",l),a.once("connect",u),a.once("error",d),a.end();function c(A){A.upgrade=!0}o(c,"onResponse");function l(A,p,f){process.nextTick(function(){u(A,p,f)})}o(l,"onUpgrade");function u(A,p,f){if(a.removeAllListeners(),p.removeAllListeners(),A.statusCode!==200){sc("tunneling socket could not be established, statusCode=%d",A.statusCode),p.destroy();var h=new Error("tunneling socket could not be established, statusCode="+A.statusCode);h.code="ECONNRESET",e.request.emit("error",h),n.removeSocket(s);return}if(f.length>0){sc("got illegal response body from proxy"),p.destroy();var h=new Error("got illegal response body from proxy");h.code="ECONNRESET",e.request.emit("error",h),n.removeSocket(s);return}return sc("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=p,r(p)}o(u,"onConnect");function d(A){a.removeAllListeners(),sc(`tunneling socket could not be established, cause=%s
`,A.message,A.stack);var p=new Error("tunneling socket could not be established, cause="+A.message);p.code="ECONNRESET",e.request.emit("error",p),n.removeSocket(s)}o(d,"onError")},"createSocket");na.prototype.removeSocket=o(function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(s){n.request.onSocket(s)})}},"removeSocket");function iH(t,e){var r=this;na.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=qx({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),a=Jpe.connect(0,i);r.sockets[r.sockets.indexOf(n)]=a,e(a)})}o(iH,"createSecureSocket");function oH(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}o(oH,"toOptions");function qx(t){for(var e=1,r=arguments.length;e<r;++e){var n=arguments[e];if(typeof n=="object")for(var s=Object.keys(n),i=0,a=s.length;i<a;++i){var c=s[i];n[c]!==void 0&&(t[c]=n[c])}}return t}o(qx,"mergeOptions");var sc;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?sc=o(function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)},"debug"):sc=o(function(){},"debug");Cd.debug=sc});var vf=m((JKe,cH)=>{cH.exports=aH()});var At=m((YKe,lH)=>{lH.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var ve=m((WKe,kH)=>{"use strict";var uH=Symbol.for("undici.error.UND_ERR"),pt=class extends Error{static{o(this,"UndiciError")}constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[uH]===!0}[uH]=!0},dH=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),Gx=class extends pt{static{o(this,"ConnectTimeoutError")}constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIM
`)||t.includes("\r")||t.includes("\0"))===!1}o(JV,"isValidHeaderValue");function hme(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let a=n[i-1].trim();if(Zhe.has(a)){s=a;break}}s!==""&&(t.referrerPolicy=s)}o(hme,"setRequestReferrerPolicyOnRedirect");function mme(){return"allowed"}o(mme,"crossOriginResourcePolicyCheck");function gme(){return"success"}o(gme,"corsCheck");function Eme(){return"success"}o(Eme,"TAOCheck");function yme(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}o(yme,"appendFetchMetadata");function Cme(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&MQ(t.origin)&&!MQ(qf(t))&&(e=null);break;case"same-origin":hy(t,qf(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}o(Cme,"appendRequestOriginHeader");function Td(t,e){return t}o(Td,"coarsenTime");function Ime(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Td(t.domainLookupStartTime,r),domainLookupEndTime:Td(t.domainLookupEndTime,r),connectionStartTime:Td(t.connectionStartTime,r),connectionEndTime:Td(t.connectionEndTime,r),secureConnectionStartTime:Td(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}o(Ime,"clampAndCoarsenConnectionTimingInfo");function Bme(t){return Td(sme.now(),t)}o(Bme,"coarsenedSharedCurrentTime");function bme(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}o(bme,"createOpaqueTimingInfo");function YV(){return{referrerPolicy:"strict-origin-when-cross-origin"}}o(YV,"makePolicyContainer");function wme(t){return{referrerPolicy:t.referrerPolicy}}o(wme,"clonePolicyContainer");function Sme(t){let e=t.referrerPolicy;Nl(e);let r=null;if(t.referrer==="client"){let c=GV();if(!c||c.origin==="null")return"no-referrer";r=new URL(c)}else t.referrer instanceof URL&&(r=t.referrer);let n=OQ(r),s=OQ(r,!0);n.toString().length>4096&&(n=s);let i=hy(t,n),a=Uf(n)&&!Uf(t.url);switch(e){case"origin":return s??OQ(r,!0);case"unsafe-url":return n;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?n:s;case"strict-origin-when-cross-origin":{let c=qf(t);return hy(n,c)?n:Uf(n)&&!Uf(c)?"no-referrer":s}default:return a?"no-referrer":s}}o(Sme,"determineRequestsReferrer");function OQ(t,e){return Nl(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}o(OQ,"stripURLForReferrer");function Uf(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let n=new URL(r);return!!(n.protocol==="https:"||n.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||n.hostname==="localhost"||n.hostname.includes("localhost.")||n.hostname.endsWith(".localhost"))}}o(Uf,"isURLPotentiallyTrustworthy");function Nme(t,e){if(fy===void 0)return!0;let r=WV(e);if(r==="no metadata"||r.length===0)return!0;let n=Qme(r),s=Rme(r,n);for(let i of s){let a=i.algo,c=i.hash,l=fy.createHash(a).update(t).digest("base64");if(l[l.length-1]==="="&&(l[l.length-2]==="="?l=l.slice(0,-2):l=l.slice(0,-1)),Tme(l,c))return!0}return!1}o(Nme,"bytesMatch");var xme=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-
`);function pge(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}o(pge,"isAsciiString");function fge(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let n=t.charCodeAt(r);if(!(n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95))return!1}return!0}o(fge,"validateBoundary");function hge(t,e){gy(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let n=Buffer.from(`--${r}`,"utf8"),s=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let a=t.length;for(;t[a-1]===10&&t[a-2]===13;)a-=2;for(a!==t.length&&(t=t.subarray(0,a));;){if(t.subarray(i.position,i.position+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&Ey(t,dge,i)||i.position===t.length-4&&Ey(t,Age,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let c=mge(t,i);if(c==="failure")return"failure";let{name:l,filename:u,contentType:d,encoding:A}=c;i.position+=2;let p;{let h=t.indexOf(n.subarray(2),i.position);if(h===-1)return"failure";p=t.subarray(i.position,h-4),i.position+=p.length,A==="base64"&&(p=Buffer.from(p.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let f;u!==null?(d??="text/plain",pge(d)||(d=""),f=new lge([p],u,{type:d})):f=sge(Buffer.from(p)),gy(cz(l)),gy(typeof f=="string"&&cz(f)||oge(f)),s.push(age(l,f,u))}}o(hge,"multipartFormDataParser");function mge(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:i};let a=_d(c=>c!==10&&c!==13&&c!==58,t,e);if(a=VQ(a,!0,!0,c=>c===9||c===32),!ige.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,_d(c=>c===32||c===9,t,e),nge(a)){case"content-disposition":{if(r=n=null,!Ey(t,uge,e)||(e.position+=17,r=dz(t,e),r===null))return"failure";if(Ey(t,uz,e)){let c=e.position+uz.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,n=dz(t,e),n===null))return"failure"}break}case"content-type":{let c=_d(l=>l!==10&&l!==13,t,e);c=VQ(c,!1,!0,l=>l===9||l===32),s=lz(c);break}case"content-transfer-encoding":{let c=_d(l=>l!==10&&l!==13,t,e);c=VQ(c,!1,!0,l=>l===9||l===32),i=lz(c);break}default:_d(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}o(mge,"parseMultipartFormDataHeaders");function dz(t,e){gy(t[e.position-1]===34);let r=_d(n=>n!==10&&n!==13&&n!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}o(dz,"parseMultipartFormDataName");function _d(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}o(_d,"collectASequenceOfBytes");function VQ(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}o(VQ,"removeChars");function Ey(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}o(Ey,"bufferStartsWith");Az.exports={multipartFormDataParser:hge,validateBoundary:fge}});var Dd=m((DXe,bz)=>{"use strict";var Vf=Ie(),{ReadableStreamFrom:gge,isBlobLike:fz,isReadableStreamLike:Ege,readableStreamClose:yge,createDeferredPromise:Cge,fullyReadBody:Ige,extractMimeType:Bge,utf8DecodeBytes:gz}=Un(),{FormData:hz}=Hf(),{kState:kd}=ic(),{webidl:bge}=Cr(),{Blob:wge}=require("node:buffer"),zQ=require("node:assert"),{isErrored:Ez,isDisturbed:Sge}=require("node:stream"),{isArrayBuffer:Nge}=require("node:util/types"),{serializeAMimeType:xge}=An(),{multipartFormDataParser:Qge}=pz(),$Q;try{let t=require("node:crypto");$Q=o(e=>t.randomInt(0,e),"random")}catch{$Q=o(t=>Math.floor(Math.random(t)),"random")}var yy=new TextEncoder;function Rge(){}o(Rge,"noop");var yz=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Cz;yz&&(Cz=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Sge(e)&&!Ez(e)&&e.cancel("Response object has been garbage collected").catch(Rge)}));function Iz(t,e=!1){let r=null;t instanceof ReadableStream?r=t:fz(t)?r=t.stream():r=new ReadableStream({async pull(l){let u=typeof s=="string"?yy.encode(s):s;u.byteLength&&l.enqueue(u),queueMicrotask(()=>yge(l))},start(){},type:"bytes"}),zQ(Ege(r));let n=null,s=null,i=null,a=null;if(typeof t=="string")s=t,a="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Nge(t))s=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))s=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(Vf.isFormDataLike(t)){let l=`----formdata-undici-0${`${$Q(1e11)}`.padStart(11,"0")}`,u=`--${l}\r
Content-Disposition: form-data`;let d=o(y=>y.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"escape"),A=o(y=>y.replace(/\r?\n|\r/g,`\r
`),"normalizeLinefeeds"),p=[],f=new Uint8Array([13,10]);i=0;let h=!1;for(let[y,E]of t)if(typeof E=="string"){let C=yy.encode(u+`; name="${d(A(y))}"\r
\r
${A(E)}\r
`);p.push(C),i+=C.byteLength}else{let C=yy.encode(`${u}; name="${d(A(y))}"`+(E.name?`; filename="${d(E.name)}"`:"")+`\r
2026-06-29 15:03:17 +02:00
Content-Type: ${E.type||"application/octet-stream"}\r
\r
`);p.push(C,E,f),typeof E.size=="number"?i+=C.byteLength+E.size+f.byteLength:h=!0}let g=yy.encode(`--${l}--\r
`);p.push(g),i+=g.byteLength,h&&(i=null),s=t,n=o(async function*(){for(let y of p)y.stream?yield*y.stream():yield y},"action"),a=`multipart/form-data; boundary=${l}`}else if(fz(t))s=t,i=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(Vf.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:gge(t)}if((typeof s=="string"||Vf.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let l;r=new ReadableStream({async start(){l=n(t)[Symbol.asyncIterator]()},async pull(u){let{value:d,done:A}=await l.next();if(A)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!Ez(r)){let p=new Uint8Array(d);p.byteLength&&u.enqueue(p)}return u.desiredSize>0},async cancel(u){await l.return()},type:"bytes"})}return[{stream:r,source:s,length:i},a]}o(Iz,"extractBody");function Tge(t,e=!1){return t instanceof ReadableStream&&(zQ(!Vf.isDisturbed(t),"The body has already been consumed."),zQ(!t.locked,"The stream is locked.")),Iz(t,e)}o(Tge,"safelyExtractBody");function vge(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}o(vge,"cloneBody");function _ge(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}o(_ge,"throwIfAborted");function Pge(t){return{blob(){return Pd(this,r=>{let n=mz(this);return n===null?n="":n&&(n=xge(n)),new wge([r],{type:n})},t)},arrayBuffer(){return Pd(this,r=>new Uint8Array(r).buffer,t)},text(){return Pd(this,gz,t)},json(){return Pd(this,Dge,t)},formData(){return Pd(this,r=>{let n=mz(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=Qge(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new hz;return i[kd]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new hz;for(let[a,c]of s)i.append(a,c);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return Pd(this,r=>new Uint8Array(r),t)}}}o(Pge,"bodyMixinMethods");function kge(t){Object.assign(t.prototype,Pge(t))}o(kge,"mixinBody");async function Pd(t,e,r){if(bge.brandCheck(t,r),Bz(t))throw new TypeError("Body is unusable: Body has already been read");_ge(t[kd]);let n=Cge(),s=o(a=>n.reject(a),"errorSteps"),i=o(a=>{try{n.resolve(e(a))}catch(c){s(c)}},"successSteps");return t[kd].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await Ige(t[kd].body,i,s),n.promise)}o(Pd,"consumeBody");function Bz(t){let e=t[kd].body;return e!=null&&(e.stream.locked||Vf.isDisturbed(e.stream))}o(Bz,"bodyUnusable");function Dge(t){return JSON.parse(gz(t))}o(Dge,"parseJSONFromBytes");function mz(t){let e=t[kd].headersList,r=Bge(e);return r==="failure"?null:r}o(mz,"bodyMimeType");bz.exports={extractBody:Iz,safelyExtractBody:Tge,cloneBody:vge,mixinBody:kge,streamRegistry:Cz,hasFinalizationRegistry:yz,bodyUnusable:Bz}});var Fz=m((MXe,Lz)=>{"use strict";var X=require("node:assert"),te=Ie(),{channels:wz}=Bd(),JQ=QQ(),{RequestContentLengthMismatchError:xl,ResponseContentLengthMismatchError:Sz,RequestAbortedError:Pz,InvalidArgumentError:Oge,HeadersTimeoutError:Mge,HeadersOverflowError:Lge,SocketError:Od,InformationalError:Md,BodyTimeoutError:Fge,HTTPParserError:Uge,ResponseExceededMaxSizeError:qge}=ve(),{kUrl:kz,kReset:pn,kClient:by,kParser:st,kBlocking:Jf,kRunning:$t,kPending:Dz,kSize:Nz,kWriting:oc,kQueue:ii,kNoRef:zf,kKeepAliveDefaultTimeout:Gge,kHostHeader:Hge,kPendingIdx:Vge,kRunningIdx:Es,kError:zr,kPipelining:wy,kSocket:Rl,kKeepAliveTimeoutValue:Ny,kMaxHeadersSize:YQ,kKeepAliveMaxTimeout:zge,kKeepAliveTimeoutThreshold:$ge,kHeadersTimeout:Jge,kBodyTimeout:Yge,kStrictContentLength:KQ,kMaxRequests:xz,kCounter:Wge,kMaxResponseSize:jge,kOnError:Qz,kResume:la,kHTTPContext:Oz}=At(),qn=CV(),Rz=Buffer.alloc(0),Cy=Buffer[Symbol.species],Iy=te.addListener,Kge=te.removeAllListeners,Tl=Symbol("kIdleSocketValidation"),Ql=Symbol("kIdleSocketValidationTimeout"),tR=Symbol("kSocketUsed"),WQ;async function Xge(){let t=process.en
`;if(typeof s=="string"?g+=`host: ${s}\r
`:g+=t[Hge],i?g+=`connection: upgrade\r
upgrade: ${i}\r
`:t[wy]&&!f[pn]?g+=`connection: keep-alive\r
`:g+=`connection: close\r
`,Array.isArray(u))for(let y=0;y<u.length;y+=2){let E=u[y+0],C=u[y+1];if(Array.isArray(C))for(let I=0;I<C.length;I++)g+=`${E}: ${C[I]}\r
`;else g+=`${E}: ${C}\r
`}return wz.sendHeaders.hasSubscribers&&wz.sendHeaders.publish({request:e,headers:g,socket:f}),!l||p===0?vz(h,null,t,e,f,d,g,A):te.isBuffer(l)?vz(h,l,t,e,f,d,g,A):te.isBlobLike(l)?typeof l.stream=="function"?_z(h,l.stream(),t,e,f,d,g,A):oEe(h,l,t,e,f,d,g,A):te.isStream(l)?iEe(h,l,t,e,f,d,g,A):te.isIterable(l)?_z(h,l,t,e,f,d,g,A):X(!1),!0}o(sEe,"writeH1");function iEe(t,e,r,n,s,i,a,c){X(i!==0||r[$t]===0,"stream body cannot be pipelined");let l=!1,u=new xy({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:c,header:a}),d=o(function(h){if(!l)try{!u.write(h)&&this.pause&&this.pause()}catch(g){te.destroy(this,g)}},"onData"),A=o(function(){l||e.resume&&e.resume()},"onDrain"),p=o(function(){if(queueMicrotask(()=>{e.removeListener("error",f)}),!l){let h=new Pz;queueMicrotask(()=>f(h))}},"onClose"),f=o(function(h){if(!l){if(l=!0,X(s.destroyed||s[oc]&&r[$t]<=1),s.off("drain",A).off("error",f),e.removeListener("data",d).removeListener("end",f).removeListener("close",p),!h)try{u.end()}catch(g){h=g}u.destroy(h),h&&(h.code!=="UND_ERR_INFO"||h.message!=="reset")?te.destroy(e,h):te.destroy(e)}},"onFinished");e.on("data",d).on("end",f).on("error",f).on("close",p),e.resume&&e.resume(),s.on("drain",A).on("error",f),e.errorEmitted??e.errored?setImmediate(()=>f(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>f(null)),(e.closeEmitted??e.closed)&&setImmediate(p)}o(iEe,"writeStream");function vz(t,e,r,n,s,i,a,c){try{e?te.isBuffer(e)&&(X(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${a}content-length: ${i}\r
\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!c&&n.reset!==!1&&(s[pn]=!0)):i===0?s.write(`${a}content-length: 0\r
\r
`,"latin1"):(X(i===null,"no body must not have content length"),s.write(`${a}\r
`,"latin1")),n.onRequestSent(),r[la]()}catch(l){t(l)}}o(vz,"writeBuffer");async function oEe(t,e,r,n,s,i,a,c){X(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new xl;let l=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${a}content-length: ${i}\r
\r
`,"latin1"),s.write(l),s.uncork(),n.onBodySent(l),n.onRequestSent(),!c&&n.reset!==!1&&(s[pn]=!0),r[la]()}catch(l){t(l)}}o(oEe,"writeBlob");async function _z(t,e,r,n,s,i,a,c){X(i!==0||r[$t]===0,"iterator body cannot be pipelined");let l=null;function u(){if(l){let p=l;l=null,p()}}o(u,"onDrain");let d=o(()=>new Promise((p,f)=>{X(l===null),s[zr]?f(s[zr]):l=p}),"waitForDrain");s.on("close",u).on("drain",u);let A=new xy({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:c,header:a});try{for await(let p of e){if(s[zr])throw s[zr];A.write(p)||await d()}A.end()}catch(p){A.destroy(p)}finally{s.off("close",u).off("drain",u)}}o(_z,"writeIterable");var xy=class{static{o(this,"AsyncWriter")}constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:a,header:c}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[oc]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[zr])throw r[zr];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(s!==null&&a+u>s){if(i[KQ])throw new xl;process.emitWarning(new xl)}r.cork(),a===0&&(!c&&n.reset!==!1&&(r[pn]=!0),s===null?r.write(`${l}transfer-encoding: chunked\r
`,"latin1"):r.write(`${l}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
2026-06-29 15:03:17 +02:00
${u.toString(16)}\r
`,"latin1"),this.bytesWritten+=u;let d=r.write(e);return r.uncork(),n.onBodySent(e),d||r[st].timeout&&r[st].timeoutType===Ld&&r[st].timeout.refresh&&r[st].timeout.refresh(),d}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:a,request:c}=this;if(c.onRequestSent(),e[oc]=!1,e[zr])throw e[zr];if(!e.destroyed){if(s===0?i?e.write(`${a}content-length: 0\r
\r
2026-06-29 15:03:17 +02:00
`,"latin1"):e.write(`${a}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(n[KQ])throw new xl;process.emitWarning(new xl)}e[st].timeout&&e[st].timeoutType===Ld&&e[st].timeout.refresh&&e[st].timeout.refresh(),n[la]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[oc]=!1,e&&(X(n[$t]<=1,"pipeline should only contain this request"),s(e))}};Lz.exports=eEe});var Jz=m((FXe,$z)=>{"use strict";var ys=require("node:assert"),{pipeline:aEe}=require("node:stream"),Se=Ie(),{RequestContentLengthMismatchError:rR,RequestAbortedError:Uz,SocketError:Yf,InformationalError:nR}=ve(),{kUrl:Qy,kReset:Ty,kClient:Fd,kRunning:vy,kPending:cEe,kQueue:ac,kPendingIdx:sR,kRunningIdx:oi,kError:ci,kSocket:dr,kStrictContentLength:lEe,kOnError:iR,kMaxConcurrentStreams:zz,kHTTP2Session:ai,kResume:cc,kSize:uEe,kHTTPContext:dEe}=At(),ua=Symbol("open streams"),qz,Gz=!1,Ry;try{Ry=require("node:http2")}catch{Ry={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:AEe,HTTP2_HEADER_METHOD:pEe,HTTP2_HEADER_PATH:fEe,HTTP2_HEADER_SCHEME:hEe,HTTP2_HEADER_CONTENT_LENGTH:mEe,HTTP2_HEADER_EXPECT:gEe,HTTP2_HEADER_STATUS:EEe}}=Ry;function yEe(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}o(yEe,"parseH2Headers");async function CEe(t,e){t[dr]=e,Gz||(Gz=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=Ry.connect(t[Qy],{createConnection:o(()=>e,"createConnection"),peerMaxConcurrentStreams:t[zz]});r[ua]=0,r[Fd]=t,r[dr]=e,Se.addListener(r,"error",BEe),Se.addListener(r,"frameError",bEe),Se.addListener(r,"end",wEe),Se.addListener(r,"goaway",SEe),Se.addListener(r,"close",function(){let{[Fd]:s}=this,{[dr]:i}=s,a=this[dr][ci]||this[ci]||new Yf("closed",Se.getSocketInfo(i));if(s[ai]=null,s.destroyed){ys(s[cEe]===0);let c=s[ac].splice(s[oi]);for(let l=0;l<c.length;l++){let u=c[l];Se.errorRequest(s,u,a)}}}),r.unref(),t[ai]=r,e[ai]=r,Se.addListener(e,"error",function(s){ys(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ci]=s,this[Fd][iR](s)}),Se.addListener(e,"end",function(){Se.destroy(this,new Yf("other side closed",Se.getSocketInfo(this)))}),Se.addListener(e,"close",function(){let s=this[ci]||new Yf("closed",Se.getSocketInfo(this));t[dr]=null,this[ai]!=null&&this[ai].destroy(s),t[sR]=t[oi],ys(t[vy]===0),t.emit("disconnect",t[Qy],[t],s),t[cc]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return xEe(t,...s)},resume(){IEe(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}o(CEe,"connectH2");function IEe(t){let e=t[dr];e?.destroyed===!1&&(t[uEe]===0&&t[zz]===0?(e.unref(),t[ai].unref()):(e.ref(),t[ai].ref()))}o(IEe,"resumeH2");function BEe(t){ys(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[dr][ci]=t,this[Fd][iR](t)}o(BEe,"onHttp2SessionError");function bEe(t,e,r){if(r===0){let n=new nR(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[dr][ci]=n,this[Fd][iR](n)}}o(bEe,"onHttp2FrameError");function wEe(){let t=new Yf("other side closed",Se.getSocketInfo(this[dr]));this.destroy(t),Se.destroy(this[dr],t)}o(wEe,"onHttp2SessionEnd");function SEe(t){let e=this[ci]||new Yf(`HTTP/2: "GOAWAY" frame received with code ${t}`,Se.getSocketInfo(this)),r=this[Fd];if(r[dr]=null,r[dEe]=null,this[ai]!=null&&(this[ai].destroy(e),this[ai]=null),Se.destroy(this[dr],e),r[oi]<r[ac].length){let n=r[ac][r[oi]];r[ac][r[oi]++]=null,Se.errorRequest(r,n,e),r[sR]=r[oi]}ys(r[vy]===0),r.emit("disconnect",r[Qy],[r],e),r[cc]()}o(SEe,"onHTTP2GoAway");function NEe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o(NEe,"shouldSendContentLength");function xEe(t,e){let r=t[ai],{method:n,path:s,host:i,upgrade:a,expectContinue:c,signal:l,headers:u}=e,{body:d}=e;if(a)return Se.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let A={};for(let b=0;b<u.length;b+=2){let N=u[b+0],Q=u[b+1];if(Array.isArray(Q))for(let D=0;D<Q.length;D++)A[N]?A[N]+=`,${Q[D]}`:A[N]=Q[D];else A[N]=Q}let p,{hostname:f,port:h}=t[Qy];A[AEe]=i||`${f}$
`,this[ZEe]=l??3e5,this[XEe]=s??3e5,this[eye]=C??!0,this[tye]=b,this[lR]=Q,this[uc]=null,this[oye]=ce>-1?ce:-1,this[cye]=$e??100,this[Ot]=null,this[li]=[],this[Aa]=0,this[ui]=0,this[Xf]=de=>dR(this,de),this[aye]=de=>i$(this,de)}get pipelining(){return this[Dy]}set pipelining(e){this[Dy]=e,this[Xf](!0)}get[th](){return this[li].length-this[ui]}get[eh](){return this[ui]-this[Aa]}get[Zf](){return this[li].length-this[Aa]}get[zEe](){return!!this[Ot]&&!this[qd]&&!this[Ot].destroyed}get[cR](){return!!(this[Ot]?.busy(null)||this[Zf]>=(s$(this)||1)||this[th]>0)}[VEe](e){o$(this),this.once("connect",e)}[iye](e,r){let n=e.origin||this[Gi].origin,s=new LEe(n,e,r);return this[li].push(s),this[_l]||(vl.bodyLength(s.body)==null&&vl.isIterable(s.body)?(this[_l]=1,queueMicrotask(()=>dR(this))):this[Xf](!0)),this[_l]&&this[dc]!==2&&this[cR]&&(this[dc]=2),this[dc]<2}async[nye](){return new Promise(e=>{this[Zf]?this[uc]=e:e(null)})}async[sye](e){return new Promise(r=>{let n=this[li].splice(this[ui]);for(let i=0;i<n.length;i++){let a=n[i];vl.errorRequest(this,a,e)}let s=o(()=>{this[uc]&&(this[uc](),this[uc]=null),r(null)},"callback");this[Ot]?(this[Ot].destroy(e,s),this[Ot]=null):queueMicrotask(s),this[Xf]()})}},dye=ky();function i$(t,e){if(t[eh]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){da(t[ui]===t[Aa]);let r=t[li].splice(t[Aa]);for(let n=0;n<r.length;n++){let s=r[n];vl.errorRequest(t,s,e)}da(t[Zf]===0)}}o(i$,"onError");async function o$(t){da(!t[qd]),da(!t[Ot]);let{host:e,hostname:r,protocol:n,port:s}=t[Gi];if(r[0]==="["){let i=r.indexOf("]");da(i!==-1);let a=r.substring(1,i);da(n$.isIP(a)),r=a}t[qd]=!0,Ud.beforeConnect.hasSubscribers&&Ud.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Ot]?.version,servername:t[lc],localAddress:t[Kf]},connector:t[jf]});try{let i=await new Promise((a,c)=>{t[jf]({host:e,hostname:r,protocol:n,port:s,servername:t[lc],localAddress:t[Kf]},(l,u)=>{l?c(l):a(u)})});if(t.destroyed){vl.destroy(i.on("error",t$),new qEe);return}da(i);try{t[Ot]=i.alpnProtocol==="h2"?await uye(t,i):await lye(t,i)}catch(a){throw i.destroy().on("error",t$),a}t[qd]=!1,i[rye]=0,i[lR]=t[lR],i[HEe]=t,i[JEe]=null,Ud.connected.hasSubscribers&&Ud.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Ot]?.version,servername:t[lc],localAddress:t[Kf]},connector:t[jf],socket:i}),t.emit("connect",t[Gi],[t])}catch(i){if(t.destroyed)return;if(t[qd]=!1,Ud.connectError.hasSubscribers&&Ud.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Ot]?.version,servername:t[lc],localAddress:t[Kf]},connector:t[jf],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(da(t[eh]===0);t[th]>0&&t[li][t[ui]].servername===t[lc];){let a=t[li][t[ui]++];vl.errorRequest(t,a,i)}else i$(t,i);t.emit("connectionError",t[Gi],[t],i)}t[Xf]()}o(o$,"connect");function r$(t){t[dc]=0,t.emit("drain",t[Gi],[t])}o(r$,"emitDrain");function dR(t,e){t[_l]!==2&&(t[_l]=2,Aye(t,e),t[_l]=0,t[Aa]>256&&(t[li].splice(0,t[Aa]),t[ui]-=t[Aa],t[Aa]=0))}o(dR,"resume");function Aye(t,e){for(;;){if(t.destroyed){da(t[th]===0);return}if(t[uc]&&!t[Zf]){t[uc](),t[uc]=null;return}if(t[Ot]&&t[Ot].resume(),t[cR])t[dc]=2;else if(t[dc]===2){e?(t[dc]=1,queueMicrotask(()=>r$(t))):r$(t);continue}if(t[th]===0||t[eh]>=(s$(t)||1))return;let r=t[li][t[ui]];if(t[Gi].protocol==="https:"&&t[lc]!==r.servername){if(t[eh]>0)return;t[lc]=r.servername,t[Ot]?.destroy(new UEe("servername changed"),()=>{t[Ot]=null,dR(t)})}if(t[qd])return;if(!t[Ot]){o$(t);return}if(t[Ot].destroyed||t[Ot].busy(r))return;!r.aborted&&t[Ot].write(r)?t[ui]++:t[li].splice(t[ui],1)}}o(Aye,"_resume");a$.exports=uR});var AR=m((YXe,c$)=>{"use strict";var Oy=class{static{o(this,"FixedCircularBuffer")}constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};c$.exports
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};xY.exports=yT});var eC=m((jZe,_Y)=>{"use strict";var RY=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:ZIe}=ve(),eBe=Vd();vY()===void 0&&TY(new eBe);function TY(t){if(!t||typeof t.dispatch!="function")throw new ZIe("Argument agent must implement Agent");Object.defineProperty(globalThis,RY,{value:t,writable:!0,enumerable:!1,configurable:!1})}o(TY,"setGlobalDispatcher");function vY(){return globalThis[RY]}o(vY,"getGlobalDispatcher");_Y.exports={setGlobalDispatcher:TY,getGlobalDispatcher:vY}});var tC=m((ZZe,PY)=>{"use strict";PY.exports=class{static{o(this,"DecoratorHandler")}#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 DY=m((t7e,kY)=>{"use strict";var tBe=Py();kY.exports=t=>{let e=t?.maxRedirections;return r=>o(function(s,i){let{maxRedirections:a=e,...c}=s;if(!a)return r(s,i);let l=new tBe(r,a,s,i);return r(c,l)},"redirectInterceptor")}});var MY=m((n7e,OY)=>{"use strict";var rBe=Vy();OY.exports=t=>e=>o(function(n,s){return e(n,new rBe({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))},"retryInterceptor")});var FY=m((i7e,LY)=>{"use strict";var nBe=Ie(),{InvalidArgumentError:sBe,RequestAbortedError:iBe}=ve(),oBe=tC(),CT=class extends oBe{static{o(this,"DumpHandler")}#e=1024*1024;#t=null;#n=!1;#r=!1;#s=0;#i=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new sBe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#i=e}onHeaders(e,r,n,s){let a=nBe.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new iBe(`Response size (${a}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#i??e,this.#a.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#i):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function aBe({maxSize:t}={maxSize:1024*1024}){return e=>o(function(n,s){let{dumpMaxSize:i=t}=n,a=new CT({maxSize:i},s);return e(n,a)},"Intercept")}o(aBe,"createDumpInterceptor");LY.exports=aBe});var GY=m((a7e,qY)=>{"use strict";var{isIP:cBe}=require("node:net"),{lookup:lBe}=require("node:dns"),uBe=tC(),{InvalidArgumentError:tA,InformationalError:dBe}=ve(),UY=Math.pow(2,31)-1,IT=class{static{o(this,"DNSInstance")}#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.#s}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,(a,c)=>{if(a||c==null||c.length===0){n(a??new dBe("No DNS entries found"));return}this.setRecords(e,c);let l=this.#n.get(e.hostname),u=this.pick(e,l,i.affinity),d;typeof u.port=="number"?d=`:${u.port}`:e.port!==""?d=`:${e.port}`:d="",n(null,`${e.protocol}//${u.family===6?`[${u.address}]`:u.address}${d}`)});else{let a=this.pick(e,s,i.affinity);if(a==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let c;typeof a.port=="number"?c=`:${a.port}`:e.port!==""?c=`:${e.port}`:c="",n(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${c}`)}}#r(e,r,n){lBe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>
${i}`;break;case"retry":Cj(i)&&(r[s]=i);break;case"id":Ij(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&Cj(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Ij(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}}};Bj.exports={EventSourceStream:dv}});var vj=m((det,Tj)=>{"use strict";var{pipeline:ySe}=require("node:stream"),{fetching:CSe}=hh(),{makeRequest:ISe}=sA(),{webidl:ga}=Cr(),{EventSourceStream:BSe}=bj(),{parseMIMEType:bSe}=An(),{createFastMessageEvent:wSe}=uA(),{isNetworkError:wj}=ph(),{delay:SSe}=lv(),{kEnumerableProperty:Yl}=Ie(),{environmentSettingsObject:Sj}=Un(),Nj=!1,xj=3e3,Rh=0,Qj=1,Th=2,NSe="anonymous",xSe="use-credentials",hA=class t extends EventTarget{static{o(this,"EventSource")}#e={open:null,error:null,message:null};#t=null;#n=!1;#r=Rh;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),ga.util.markAsUncloneable(this);let n="EventSource constructor";ga.argumentLengthCheck(arguments,1,n),Nj||(Nj=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=ga.converters.USVString(e,n,"url"),r=ga.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:xj};let s=Sj,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(l){throw new DOMException(l,"SyntaxError")}this.#t=i.href;let a=NSe;r.withCredentials&&(a=xSe,this.#n=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=Sj.settingsObject,c.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],c.cache="no-store",c.initiator="other",c.urlList=[new URL(this.#t)],this.#s=ISe(c),this.#l()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#l(){if(this.#r===Th)return;this.#r=Rh;let e={request:this.#s,dispatcher:this.#a},r=o(n=>{wj(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=n=>{if(wj(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),i=s!==null?bSe(s):"failure",a=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||a===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=Qj,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let c=new BSe({eventSourceSettings:this.#o,push:o(l=>{this.dispatchEvent(wSe(l.type,l.options))},"push")});ySe(n.body.stream,c,l=>{l?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=CSe(e)}async#c(){this.#r!==Th&&(this.#r=Rh,this.dispatchEvent(new Event("error")),await SSe(this.#o.reconnectionTime),this.#r===Rh&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#l()))}close(){ga.brandCheck(this,t),this.#r!==Th&&(this.#r=Th,this.#i.abort(),this.#s=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}},Rj={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Rh,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Qj,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Th,writable:!1}};Obj
%s`,N,N,C,n);var Q=C.type==="*"?m_:C.type==="?"?h_:"\\"+C.type;s=!0,n=n.slice(0,C.reStart)+Q+"\\("+N}h(),i&&(n+="\\\\");var D=!1;switch(n.charAt(0)){case"[":case".":case"(":D=!0}for(var ce=c.length-1;ce>-1;ce--){var Me=c[ce],qe=n.slice(0,Me.reStart),$e=n.slice(Me.reStart,Me.reEnd-8),Ce=n.slice(Me.reEnd-8,Me.reEnd),et=n.slice(Me.reEnd);Ce+=et;var de=qe.split("(").length-1,Gr=et;for(g=0;g<de;g++)Gr=Gr.replace(/\)[+*?]?/,"");et=Gr;var $="";et===""&&e!==dI&&($="$");var Ge=qe+$e+et+$+Ce;n=Ge}if(n!==""&&s&&(n="(?=.)"+n),D&&(n=p+n),e===dI)return[n,s];if(!s)return uTe(t);var ki=r.nocase?"i":"";try{var rc=new RegExp("^"+n+"$",ki)}catch{return new RegExp("$.")}return rc._glob=t,rc._src=n,rc}o(cTe,"parse");Xn.makeRe=function(t,e){return new Wt(t,e||{}).makeRe()};Wt.prototype.makeRe=lTe;function lTe(){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?m_:e.dot?tTe:rTe,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(a){return a===eu?r:typeof a=="string"?dTe(a):a._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}o(lTe,"makeRe");Xn.match=function(t,e,r){r=r||{};var n=new Wt(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};Wt.prototype.match=o(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;em.sep!=="/"&&(e=e.split(em.sep).join("/")),e=e.split(M8),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var i,a;for(a=e.length-1;a>=0&&(i=e[a],!i);a--);for(a=0;a<s.length;a++){var c=s[a],l=e;n.matchBase&&c.length===1&&(l=[i]);var u=this.matchOne(l,c,r);if(u)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate},"match");Wt.prototype.matchOne=function(t,e,r){return e.indexOf(eu)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};Wt.prototype._matchGlobstar=function(t,e,r,n,s){var i,a=-1;for(i=s;i<e.length;i++)if(e[i]===eu){a=i;break}var c=-1;for(i=e.length-1;i>=0;i--)if(e[i]===eu){c=i;break}var l=e.slice(s,a),u=r?e.slice(a+1):e.slice(a+1,c),d=r?[]:e.slice(c+1);if(l.length){var A=t.slice(n,n+l.length);if(!this._matchOne(A,l,r,0,0))return!1;n+=l.length}var p=0;if(d.length){if(d.length+n>t.length)return!1;var f=t.length-d.length;if(this._matchOne(t,d,r,f,0))p=d.length;else{if(t[t.length-1]!==""||n+d.length===t.length||(f--,!this._matchOne(t,d,r,f,0)))return!1;p=d.length+1}}if(!u.length){var h=!!p;for(i=n;i<t.length-p;i++){var g=String(t[i]);if(h=!0,g==="."||g===".."||!this.options.dot&&g.charAt(0)===".")return!1}return r||h}for(var y=[[[],0]],E=y[0],C=0,I=[0],b=0;b<u.length;b++){var N=u[b];N===eu?(I.push(C),E=[[],0],y.push(E)):(E[0].push(N),C++)}for(var Q=y.length-1,D=t.length-p,ce=0;ce<y.length;ce++)y[ce][1]=D-(I[Q--]+y[ce][0].length);return!!this._matchGlobStarBodySections(t,y,n,0,r,0,!!p)};Wt.prototype._matchGlobStarBodySections=function(t,e,r,n,s,i,a){var c=e[n];if(!c){for(var l=r;l<t.length;l++){a=!0;var u=t[l];if(u==="."||u===".."||!this.options.dot&&u.charAt(0)===".")return!1}return a}for(var d=c[0],A=c[1];r<=A;){var p=this._matchOne(t.slice(0,r+d.length),d,s,r,0);if(p&&i<this.maxGlobstarRecursion){var f=this._matchGlobStarBodySections(t,e,r+d.length,n+1,s,i+1,a);if(f!==!1)return f}var u=t[r];if(u==="."||u===".."||!this.options.dot&&u.charAt(0)===".")return!1;r++}return s||null};Wt.prototype._matchOne=function(t,e,r,n,s){var i,a,c,l;for(i=n,a=s,c=t.length,l=e.length;i<c&&a<l;i++,a++){this.debug("matchOne loop");var u=e[a],d=t[i];if(this.debug(e,u,d),u===!1||u===eu)return!1;var A;if(typeof u=="string"?(A=d===u,this.debug("string match",u,d,A)):(A=d.match(u),this.debug("pattern match",u,d,A)),!A)return!1}if(i===c&&a===l)return!0;if(i===c)return r;if(a===l)return i===c-1&&t[i]==="";throw new Error("wtf?")};function uTe(t){return t.replace(/\\(.)/g,"$1")}o(uTe,"globUnescape");function dTe(t){return t.rep
`).join(`
`+i),t.push(s+"m+"+tB.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Bke()+e+" "+t[0]}o(Ike,"formatArgs");function Bke(){return wr.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(Bke,"getDate");function bke(...t){return process.stderr.write(eB.format(...t)+`
`)}o(bke,"log");function wke(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(wke,"save");function Ske(){return process.env.DEBUG}o(Ske,"load");function Nke(t){t.inspectOpts={};let e=Object.keys(wr.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=wr.inspectOpts[e[r]]}o(Nke,"init");tB.exports=cP()(wr);var{formatters:RK}=tB.exports;RK.o=function(t){return this.inspectOpts.colors=this.useColors,eB.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};RK.O=function(t){return this.inspectOpts.colors=this.useColors,eB.inspect(t,this.inspectOpts)}});var rB=m((Mct,AP)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?AP.exports=wK():AP.exports=TK()});var PK=m(Cn=>{"use strict";var xke=Cn&&Cn.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Qke=Cn&&Cn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),vK=Cn&&Cn.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&xke(e,t,r);return Qke(e,t),e};Object.defineProperty(Cn,"__esModule",{value:!0});Cn.req=Cn.json=Cn.toBuffer=void 0;var Rke=vK(require("http")),Tke=vK(require("https"));async function _K(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}o(_K,"toBuffer");Cn.toBuffer=_K;async function vke(t){let r=(await _K(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}o(vke,"json");Cn.json=vke;function _ke(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?Tke:Rke).request(t,e),s=new Promise((i,a)=>{n.once("response",i).once("error",a).end()});return n.then=s.then.bind(s),n}o(_ke,"req");Cn.req=_ke});var MK=m(rs=>{"use strict";var DK=rs&&rs.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Pke=rs&&rs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),OK=rs&&rs.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&DK(e,t,r);return Pke(e,t),e},kke=rs&&rs.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&DK(e,t,r)};Object.defineProperty(rs,"__esModule",{value:!0});rs.Agent=void 0;var Dke=OK(require("net")),kK=OK(require("http")),Oke=require("https");kke(PK(),rs);var to=Symbol("AgentBaseInternalState"),pP=class extends kK.Agent{static{o(this,"Agent")}constructor(e){super(e),this[to]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new Dke.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?Oke.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(c=>{if(this.decrementSockets(i,a),c instanceof kK.Agent)try{return c.addRequest(e,s)}catch(l){return n(l)}this[to].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(i,a),n(c)})}createConnection(){let e=this[to].currentSocket;if(this[to].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[to].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[to]&&(this[to].defaultPort=e)}get protocol(){return this[to].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[to]&&(this[to].protocol=e)}};rs.Agent=pP});var LK=m(LA=>{"use strict";var Mke=LA&&LA.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(LA,"__esModule",{value:!0});LA.parseProxyResponse=void 0;var Lke=Mke(rB()),nB=(0,Lke.default)("https-proxy-agent:parse-proxy-response");function Fke(t){return new Promise((e,r)=>{let n=0,s=[];function i(){let d=t.read();d?u(d):t.once("readable",i)}o(i,"read");function a(){t.removeListener("end",c),t.removeListener("error",l),t.removeListener("readable",i)}o(a,"cleanup");function c(){a(),nB("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}o(c,"onend");function l(d){a(),nB("onerror %o",d),r(d)}o(l,"onerror");function u(d){s.push(d),n+=d.length;let A=Buffer.concat(s,n),p=A.indexOf(`\r
\r
`);if(p===-1){nB("have not received end of HTTP headers yet..."),i();return}let f=A.slice(0,p).toString("ascii").split(`\r
`),h=f.shift();if(!h)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let g=h.split(" "),y=+g[1],E=g.slice(2).join(" "),C={};for(let I of f){if(!I)continue;let b=I.indexOf(":");if(b===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${I}"`));let N=I.slice(0,b).toLowerCase(),Q=I.slice(b+1).trimStart(),D=C[N];typeof D=="string"?C[N]=[D,Q]:Array.isArray(D)?D.push(Q):C[N]=Q}nB("got proxy server response: %o %o",h,C),a(),e({connect:{statusCode:y,statusText:E,headers:C},buffered:A})}o(u,"ondata"),t.on("error",l),t.on("end",c),i()})}o(Fke,"parseProxyResponse");LA.parseProxyResponse=Fke});var VK=m(Ps=>{"use strict";var Uke=Ps&&Ps.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),qke=Ps&&Ps.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),GK=Ps&&Ps.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Uke(e,t,r);return qke(e,t),e},HK=Ps&&Ps.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ps,"__esModule",{value:!0});Ps.HttpsProxyAgent=void 0;var sB=GK(require("net")),FK=GK(require("tls")),Gke=HK(require("assert")),Hke=HK(rB()),Vke=MK(),zke=require("url"),$ke=LK(),Em=(0,Hke.default)("https-proxy-agent"),UK=o(t=>t.servername===void 0&&t.host&&!sB.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),iB=class extends Vke.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new zke.URL(e):e,this.proxyHeaders=r?.headers??{},Em("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?qK(r,"headers"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(Em("Creating `tls.Socket`: %o",this.connectOpts),s=FK.connect(UK(this.connectOpts))):(Em("Creating `net.Socket`: %o",this.connectOpts),s=sB.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=sB.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
`;if(n.username||n.password){let p=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(p).toString("base64")}`}i.Host=`${a}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let p of Object.keys(i))c+=`${p}: ${i[p]}\r
`;let l=(0,$ke.parseProxyResponse)(s);s.write(`${c}\r
`);let{connect:u,buffered:d}=await l;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200)return e.once("socket",Jke),r.secureEndpoint?(Em("Upgrading socket connection to TLS"),FK.connect({...qK(UK(r),"host","path","port"),socket:s})):s;s.destroy();let A=new sB.Socket({writable:!1});return A.readable=!0,e.once("socket",p=>{Em("Replaying proxy buffer for failed request"),(0,Gke.default)(p.listenerCount("data")>0),p.push(d),p.push(null)}),A}};iB.protocols=["http","https"];Ps.HttpsProxyAgent=iB;function Jke(t){t.resume()}o(Jke,"resume");function qK(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o(qK,"omit")});var JK=m(In=>{"use strict";var Yke=In&&In.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Wke=In&&In.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),zK=In&&In.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Yke(e,t,r);return Wke(e,t),e};Object.defineProperty(In,"__esModule",{value:!0});In.req=In.json=In.toBuffer=void 0;var jke=zK(require("http")),Kke=zK(require("https"));async function $K(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}o($K,"toBuffer");In.toBuffer=$K;async function Xke(t){let r=(await $K(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}o(Xke,"json");In.json=Xke;function Zke(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?Kke:jke).request(t,e),s=new Promise((i,a)=>{n.once("response",i).once("error",a).end()});return n.then=s.then.bind(s),n}o(Zke,"req");In.req=Zke});var KK=m(ns=>{"use strict";var WK=ns&&ns.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),eDe=ns&&ns.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),jK=ns&&ns.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&WK(e,t,r);return eDe(e,t),e},tDe=ns&&ns.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&WK(e,t,r)};Object.defineProperty(ns,"__esModule",{value:!0});ns.Agent=void 0;var rDe=jK(require("net")),YK=jK(require("http")),nDe=require("https");tDe(JK(),ns);var ro=Symbol("AgentBaseInternalState"),fP=class extends YK.Agent{static{o(this,"Agent")}constructor(e){super(e),this[ro]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new rDe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?nDe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(c=>{if(this.decrementSockets(i,a),c instanceof YK.Agent)return c.addRequest(e,s);this[ro].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(i,a),n(c)})}createConnection(){let e=this[ro].currentSocket;if(this[ro].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[ro].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[ro]&&(this[ro].defaultPort=e)}get protocol(){return this[ro].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[ro]&&(this[ro].protocol=e)}};ns.Agent=fP});var eX=m(ks=>{"use strict";var sDe=ks&&ks.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),iDe=ks&&ks.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ZK=ks&&ks.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&sDe(e,t,r);return iDe(e,t),e},oDe=ks&&ks.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ks,"__esModule",{value:!0});ks.HttpProxyAgent=void 0;var aDe=ZK(require("net")),cDe=ZK(require("tls")),lDe=oDe(rB()),uDe=require("events"),dDe=KK(),XK=require("url"),FA=(0,lDe.default)("http-proxy-agent"),oB=class extends dDe.Agent{static{o(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new XK.URL(e):e,this.proxyHeaders=r?.headers??{},FA("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?ADe(r,"headers"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",a=`${s}//${i}`,c=new XK.URL(e.path,a);r.port!==80&&(c.port=String(r.port)),e.path=String(c);let l=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let u=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;l["Proxy-Authorization"]=`Basic ${Buffer.from(u).toString("base64")}`}l["Proxy-Connection"]||(l["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let u of Object.keys(l)){let d=l[u];d&&e.setHeader(u,d)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;FA("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(FA("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
\r
`)+4,e.outputData[0].data=e._header+n.substring(s),FA("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(FA("Creating `tls.Socket`: %o",this.connectOpts),i=cDe.connect(this.connectOpts)):(FA("Creating `net.Socket`: %o",this.connectOpts),i=aDe.connect(this.connectOpts)),await(0,uDe.once)(i,"connect"),i}};oB.protocols=["http","https"];ks.HttpProxyAgent=oB;function ADe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o(ADe,"omit")});var BX=m(CB=>{"use strict";Object.defineProperty(CB,"__esModule",{value:!0});CB.state=void 0;CB.state={instrumenterImplementation:void 0}});var FX=m(SB=>{"use strict";Object.defineProperty(SB,"__esModule",{value:!0});SB.state=void 0;SB.state={operationRequestMap:new WeakMap}});var gee=m(np=>{"use strict";Object.defineProperty(np,"__esModule",{value:!0});var _Fe=require("os"),PFe=require("util");function kFe(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}o(kFe,"_interopDefaultLegacy");var DFe=kFe(PFe);function OFe(t,...e){process.stderr.write(`${DFe.default.format(t,...e)}${_Fe.EOL}`)}o(OFe,"log");var aee=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,lee,$M=[],JM=[],Vb=[];aee&&YM(aee);var uee=Object.assign(t=>dee(t),{enable:YM,enabled:WM,disable:MFe,log:OFe});function YM(t){lee=t,$M=[],JM=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?JM.push(new RegExp(`^${n.substr(1)}$`)):$M.push(new RegExp(`^${n}$`));for(let n of Vb)n.enabled=WM(n.namespace)}o(YM,"enable");function WM(t){if(t.endsWith("*"))return!0;for(let e of JM)if(e.test(t))return!1;for(let e of $M)if(e.test(t))return!0;return!1}o(WM,"enabled");function MFe(){let t=lee||"";return YM(""),t}o(MFe,"disable");function dee(t){let e=Object.assign(r,{enabled:WM(t),destroy:LFe,log:uee.log,namespace:t,extend:FFe});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return o(r,"debug"),Vb.push(e),e}o(dee,"createDebugger");function LFe(){let t=Vb.indexOf(this);return t>=0?(Vb.splice(t,1),!0):!1}o(LFe,"destroy");function FFe(t){let e=dee(`${this.namespace}:${t}`);return e.log=this.log,e}o(FFe,"extend");var ig=uee,Aee=new Set,Gb=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,zb,$b=ig("azure");$b.log=(...t)=>{ig.log(...t)};var jM=["verbose","info","warning","error"];Gb&&(mee(Gb)?pee(Gb):console.error(`AZURE_LOG_LEVEL set to unknown log level '${Gb}'; logging is not enabled. Acceptable values: ${jM.join(", ")}.`));function pee(t){if(t&&!mee(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${jM.join(",")}`);zb=t;let e=[];for(let r of Aee)hee(r)&&e.push(r.namespace);ig.enable(e.join(","))}o(pee,"setLogLevel");function UFe(){return zb}o(UFe,"getLogLevel");var cee={verbose:400,info:300,warning:200,error:100};function qFe(t){let e=$b.extend(t);return fee($b,e),{error:Hb(e,"error"),warning:Hb(e,"warning"),info:Hb(e,"info"),verbose:Hb(e,"verbose")}}o(qFe,"createClientLogger");function fee(t,e){e.log=(...r)=>{t.log(...r)}}o(fee,"patchLogMethod");function Hb(t,e){let r=Object.assign(t.extend(e),{level:e});if(fee(t,r),hee(r)){let n=ig.disable();ig.enable(n+","+r.namespace)}return Aee.add(r),r}o(Hb,"createLogger");function hee(t){return!!(zb&&cee[t.level]<=cee[zb])}o(hee,"shouldEnable");function mee(t){return jM.includes(t)}o(mee,"isAzureLogLevel");np.AzureLogger=$b;np.createClientLogger=qFe;np.getLogLevel=UFe;np.setLogLevel=pee});var ZM=m(ag=>{"use strict";Object.defineProperty(ag,"__esModule",{value:!0});var sp=new WeakMap,Jb=new WeakMap,og=class t{static{o(this,"AbortSignal")}constructor(){this.onabort=null,sp.set(this,[]),Jb.set(this,!1)}get aborted(){if(!Jb.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return Jb.get(this)}static get none(){return new t}addEventListener(e,r){if(!sp.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");sp.get(this).push(r)}removeEventListener(e,r){if(!sp.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=sp.get(this),s=n.indexOf(r);s>-1&
Polling from: ${r.config.operationLocation}
Operation status: ${d}
Polling status: ${xee.includes(d)?"Stopped":"Running"}`),d==="succeeded"){let A=a(u,r);if(A!==void 0)return{response:await e(A).catch(See({state:r,stateProxy:n,isOperationError:c})),status:d}}return{response:u,status:d}}o(sUe,"pollOperationHelper");async function vee(t){let{poll:e,state:r,stateProxy:n,options:s,getOperationStatus:i,getResourceLocation:a,getOperationLocation:c,isOperationError:l,withOperationLocation:u,getPollingInterval:d,processResult:A,getError:p,updateState:f,setDelay:h,isDone:g,setErrorAsResult:y}=t,{operationLocation:E}=r.config;if(E!==void 0){let{response:C,status:I}=await sUe({poll:e,getOperationStatus:i,state:r,stateProxy:n,operationLocation:E,getResourceLocation:a,isOperationError:l,options:s});if(Ree({status:I,response:C,state:r,stateProxy:n,isDone:g,processResult:A,getError:p,setErrorAsResult:y}),!xee.includes(I)){let b=d?.(C);b&&h(b);let N=c?.(C,r);if(N!==void 0){let Q=E!==N;r.config.operationLocation=N,u?.(N,Q)}else u?.(E,!1)}f?.(r,C)}}o(vee,"pollOperation");function _ee(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}o(_ee,"getOperationLocationPollingUrl");function Pee(t){return t.headers.location}o(Pee,"getLocationHeader");function kee(t){return t.headers["operation-location"]}o(kee,"getOperationLocationHeader");function Dee(t){return t.headers["azure-asyncoperation"]}o(Dee,"getAzureAsyncOperationHeader");function iUe(t){let{location:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t;switch(r){case"PUT":return n;case"DELETE":return;default:switch(s){case"azure-async-operation":return;case"original-uri":return n;default:return e}}}o(iUe,"findResourceLocation");function Oee(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t,i=kee(e),a=Dee(e),c=_ee({operationLocation:i,azureAsyncOperation:a}),l=Pee(e),u=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:iUe({requestMethod:u,location:l,requestPath:n,resourceLocationConfig:s})}:l!==void 0?{mode:"ResourceLocation",operationLocation:l}:u==="PUT"&&n?{mode:"Body",operationLocation:n}:void 0}o(Oee,"inferLroMode");function Mee(t){let{status:e,statusCode:r}=t;if(typeof e!="string"&&e!==void 0)throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${e}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(e?.toLocaleLowerCase()){case void 0:return aL(r);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:return xu.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(Mee,"transformStatus");function oUe(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return Mee({status:r,statusCode:t.statusCode})}o(oUe,"getStatus");function aUe(t){var e,r;let{properties:n,provisioningState:s}=(e=t.body)!==null&&e!==void 0?e:{},i=(r=n?.provisioningState)!==null&&r!==void 0?r:s;return Mee({status:i,statusCode:t.statusCode})}o(aUe,"getProvisioningState");function aL(t){return t===202?"running":t<300?"succeeded":"failed"}o(aL,"toOperationStatus");function Lee({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?cUe(new Date(e)):r*1e3}}o(Lee,"parseRetryAfter");function Fee(t){let e=t.flatResponse.error;if(!e){xu.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){xu.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}o(Fee,"getErrorFromResponse");function cUe(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}o(cUe,"calculatePollingIntervalFromDate");function Uee(t){let{response:e,state:r,operationLocation:n}=t;function s(){var a;switch((a=r.config.metadata)===null||a===void 0?void 0:a.mode){case void 0:return aL(e.rawResponse.sta
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:a=i,s=1;break;case 1:r[n++]=a<<2|(i&48)>>4,a=i,s=2;break;case 2:r[n++]=(a&15)<<4|(i&60)>>2,a=i,s=3;break;case 3:r[n++]=(a&3)<<6|i,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}o($Ue,"base64decode");up.base64decode=$Ue;function JUe(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=Fa[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=Fa[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=Fa[s|n>>6],e+=Fa[n&63],r=0;break}return r&&(e+=Fa[s],e+="=",r==1&&(e+="=")),e}o(JUe,"base64encode");up.base64encode=JUe});var Cte=m(Aw=>{"use strict";Object.defineProperty(Aw,"__esModule",{value:!0});Aw.utf8read=void 0;var yL=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function YUe(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,i,a=t.length;for(;e<a;)i=t[e++],i<128?n[s++]=i:i>191&&i<224?n[s++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[s++]=55296+(i>>10),n[s++]=56320+(i&1023)):n[s++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push(yL(n)),s=0);return r.length?(s&&r.push(yL(n.slice(0,s))),r.join("")):yL(n.slice(0,s))}o(YUe,"utf8read");Aw.utf8read=YUe});var hg=m(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.WireType=Ro.mergeBinaryOptions=Ro.UnknownFieldHandler=void 0;var WUe;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,i,a)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:i,data:a})},t.onWrite=(r,n,s)=>{for(let{no:i,wireType:a,data:c}of t.list(n))s.tag(i,a).raw(c)},t.list=(r,n)=>{if(e(r)){let s=r[t.symbol];return n?s.filter(i=>i.no==n):s}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=o(r=>r&&Array.isArray(r[t.symbol]),"is")})(WUe=Ro.UnknownFieldHandler||(Ro.UnknownFieldHandler={}));function jUe(t,e){return Object.assign(Object.assign({},t),e)}o(jUe,"mergeBinaryOptions");Ro.mergeBinaryOptions=jUe;var KUe;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(KUe=Ro.WireType||(Ro.WireType={}))});var fw=m(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.varint32read=Qn.varint32write=Qn.int64toString=Qn.int64fromString=Qn.varint64write=Qn.varint64read=void 0;function XUe(){let t=0,e=0;for(let n=0;n<28;n+=7){let s=this.buf[this.pos++];if(t|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let n=3;n<=31;n+=7){let s=this.buf[this.pos++];if(e|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}o(XUe,"varint64read");Qn.varint64read=XUe;function ZUe(t,e,r){for(let i=0;i<28;i=i+7){let a=t>>>i,c=!(!(a>>>7)&&e==0),l=(c?a|128:a)&255;if(r.push(l),!c)return}let n=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?n|128:n)&255),!!s){for(let i=3;i<31;i=i+7){let a=e>>>i,c=!!(a>>>7),l=(c?a|128:a)&255;if(r.push(l),!c)return}r.push(e>>>31&1)}}o(ZUe,"varint64write");Qn.varint64write=ZUe;var pw=65536*65536;function e2e(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function i(a,c){let l=Number(t.slice(a,c));s*=r,n=n*r+l,n>=pw&&(s=s+(n/pw|0),n=n%pw)}return o(i,"add1e6digit"),i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}o(e2e,"int64fromString");Qn.int64fromString=e2e;function t2e(t,e){if(e>>>0<=2097151)return""+(pw*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,i=r+n*6777216+s*6710656,a=n+s*8147497,c=s*2,l=1e7;i>=l&&(a+=Math.floor(i/l),i%=l),a>=l&&(c+=Math.floor(a/l),a%=l);function u(d,A){let p=d?String(d):"";return A?"0000000".slice(p.length)+p:p}return o(u,"decimalFrom1e7"),u(c,0)+u(a,c)+u(i,1)}o(t2e,"int64toString");Qn.int64toString=t2e;function r2e(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}o(r2e,"varint32write");Qn.varint32write=r2e;function n2e(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return
`)}};qw.RpcError=$L});var YL=m(Hw=>{"use strict";Object.defineProperty(Hw,"__esModule",{value:!0});Hw.mergeRpcOptions=void 0;var Zte=Gt();function Sqe(t,e){if(!e)return t;let r={};Gw(t,r),Gw(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=Zte.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Zte.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},Gw(t.meta,r.meta),Gw(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}o(Sqe,"mergeRpcOptions");Hw.mergeRpcOptions=Sqe;function Gw(t,e){if(!t)return;let r=e;for(let[n,s]of Object.entries(t))s instanceof Date?r[n]=new Date(s.getTime()):Array.isArray(s)?r[n]=s.concat():r[n]=s}o(Gw,"copy")});var jL=m(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});_u.Deferred=_u.DeferredState=void 0;var _o;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(_o=_u.DeferredState||(_u.DeferredState={}));var WL=class{static{o(this,"Deferred")}constructor(e=!0){this._state=_o.PENDING,this._promise=new Promise((r,n)=>{this._resolve=r,this._reject=n}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==_o.PENDING)throw new Error(`cannot resolve ${_o[this.state].toLowerCase()}`);this._resolve(e),this._state=_o.RESOLVED}reject(e){if(this.state!==_o.PENDING)throw new Error(`cannot reject ${_o[this.state].toLowerCase()}`);this._reject(e),this._state=_o.REJECTED}resolvePending(e){this._state===_o.PENDING&&this.resolve(e)}rejectPending(e){this._state===_o.PENDING&&this.reject(e)}};_u.Deferred=WL});var XL=m(Vw=>{"use strict";Object.defineProperty(Vw,"__esModule",{value:!0});Vw.RpcOutputStreamController=void 0;var ere=jL(),Pu=Gt(),KL=class{static{o(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let n=r.indexOf(e);n>=0&&r.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,n){Pu.assert((e?1:0)+(r?1:0)+(n?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),n&&this.notifyComplete()}notifyMessage(e){Pu.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void 0,!1))}notifyError(e){Pu.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void 0,e,!1)),this.clearLis()}notifyComplete(){Pu.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:o(()=>{let e=this._itState;Pu.assert(e,"bad state"),Pu.assert(!e.p,"iterator contract broken");let r=e.q.shift();return r?"value"in r?Promise.resolve(r):Promise.reject(r):(e.p=new ere.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;Pu.assert(n.state==ere.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};Vw.RpcOutputStreamController=KL});var e1=m(gp=>{"use strict";var Nqe=gp&&gp.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.definePrope
2026-05-22 14:44:02 +00:00
You can add a runtime option to disable the check or this warning:
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(R$e,"logUnexpecedPropertyAccessOnce");function T$e(){Object.keys(x0).forEach(function(t){delete x0[t]})}o(T$e,"resetLoggedProperties")});var R0=m(Oo=>{"use strict";Oo.__esModule=!0;Oo.HandlebarsEnvironment=BF;function iie(t){return t&&t.__esModule?t:{default:t}}o(iie,"_interopRequireDefault");var Fu=an(),v$e=ps(),CF=iie(v$e),_$e=mF(),P$e=tie(),k$e=EF(),Q0=iie(k$e),D$e=yF(),O$e="4.7.9";Oo.VERSION=O$e;var M$e=8;Oo.COMPILER_REVISION=M$e;var L$e=7;Oo.LAST_COMPATIBLE_COMPILER_REVISION=L$e;var F$e={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};Oo.REVISION_CHANGES=F$e;var IF="[object Object]";function BF(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},_$e.registerDefaultHelpers(this),P$e.registerDefaultDecorators(this)}o(BF,"HandlebarsEnvironment");BF.prototype={constructor:BF,logger:Q0.default,log:Q0.default.log,registerHelper:o(function(e,r){if(Fu.toString.call(e)===IF){if(r)throw new CF.default("Arg not supported with multiple helpers");Fu.extend(this.helpers,e)}else this.helpers[e]=r},"registerHelper"),unregisterHelper:o(function(e){delete this.helpers[e]},"unregisterHelper"),registerPartial:o(function(e,r){if(Fu.toString.call(e)===IF)Fu.extend(this.partials,e);else{if(typeof r>"u")throw new CF.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},"registerPartial"),unregisterPartial:o(function(e){delete this.partials[e]},"unregisterPartial"),registerDecorator:o(function(e,r){if(Fu.toString.call(e)===IF){if(r)throw new CF.default("Arg not supported with multiple decorators");Fu.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){D$e.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var U$e=Q0.default.log;Oo.log=U$e;Oo.createFrame=Fu.createFrame;Oo.logger=Q0.default});var aie=m((T0,oie)=>{"use strict";T0.__esModule=!0;function bF(t){this.string=t}o(bF,"SafeString");bF.prototype.toString=bF.prototype.toHTML=function(){return""+this.string};T0.default=bF;oie.exports=T0.default});var cie=m(wF=>{"use strict";wF.__esModule=!0;wF.wrapHelper=q$e;function q$e(t,e){if(typeof t!="function")return t;var r=o(function(){var s=arguments[arguments.length-1];return arguments[arguments.length-1]=e(s),t.apply(this,arguments)},"wrapper");return r}o(q$e,"wrapHelper")});var fie=m(Wc=>{"use strict";Wc.__esModule=!0;Wc.checkRevision=J$e;Wc.template=Y$e;Wc.wrapProgram=v0;Wc.resolvePartial=W$e;Wc.invokePartial=j$e;Wc.noop=Aie;function G$e(t){return t&&t.__esModule?t:{default:t}}o(G$e,"_interopRequireDefault");function H$e(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}o(H$e,"_interopRequireWildcard");var V$e=an(),Tp=H$e(V$e),z$e=ps(),Ga=G$e(z$e),Ha=R0(),lie=mF(),$$e=cie(),uie=yF();function J$e(t){var e=t&&t[0]||1,r=Ha.COMPILER_REVISION;if(!(e>=Ha.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Ha.COMPILER_REVISION))if(e<Ha.LAST_COMPATIBLE_COMPILER_REVISION){var n=Ha.REVISION_CHANGES[r],s=Ha.REVISION_CHANGES[e];throw new Ga.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+s+").")}else throw new Ga.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}o(J$e,"checkRevision");function Y$e(t,e){if(!e)throw new Ga.default("No environment passed to template");if(!t||!t.main)throw new Ga.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function n(a,c,l){l.hash&&(c=Tp.extend({},c,l.hash),l.ids&&(l.ids[0]=!0)),a=e.VM.res
`),A=0,p=d.length;A<p&&!(!d[A]&&A+1===p);A++)d[A]=l.indent+d[A];u=d.join(`
`)}return u}else throw new Ga.default("The partial "+l.name+" could not be compiled when running in runtime-only mode")}o(n,"invokePartialWrapper");var s={strict:o(function(c,l,u){if(!c||!(l in c))throw new Ga.default('"'+l+'" not defined in '+c,{loc:u});return s.lookupProperty(c,l)},"strict"),lookupProperty:o(function(c,l){var u=c[l];if(u==null||Object.prototype.hasOwnProperty.call(c,l)||uie.resultIsAllowed(u,s.protoAccessControl,l))return u},"lookupProperty"),lookup:o(function(c,l){for(var u=c.length,d=0;d<u;d++){var A=c[d]&&s.lookupProperty(c[d],l);if(A!=null)return A}},"lookup"),lambda:o(function(c,l){return typeof c=="function"?c.call(l):c},"lambda"),escapeExpression:Tp.escapeExpression,invokePartial:n,fn:o(function(c){var l=t[c];return l.decorator=t[c+"_d"],l},"fn"),programs:[],program:o(function(c,l,u,d,A){var p=this.programs[c],f=this.fn(c);return l||A||d||u?p=v0(this,c,f,l,u,d,A):p||(p=this.programs[c]=v0(this,c,f)),p},"program"),data:o(function(c,l){for(;c&&l--;)c=c._parent;return c},"data"),mergeIfNeeded:o(function(c,l){var u=c||l;return c&&l&&c!==l&&(u=Tp.extend({},l,c)),u},"mergeIfNeeded"),nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function i(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],l=c.data;i._setup(c),!c.partial&&t.useData&&(l=K$e(a,l));var u=void 0,d=t.useBlockParams?[]:void 0;t.useDepths&&(c.depths?u=a!=c.depths[0]?[a].concat(c.depths):c.depths:u=[a]);function A(p){return""+t.main(s,p,s.helpers,s.partials,l,d,u)}return o(A,"main"),A=pie(t.main,A,s,c.depths||[],l,d),A(a,c)}return o(i,"ret"),i.isTop=!0,i._setup=function(a){if(a.partial)s.protoAccessControl=a.protoAccessControl,s.helpers=a.helpers,s.partials=a.partials,s.decorators=a.decorators,s.hooks=a.hooks;else{var c={};die(c,e.helpers,s),die(c,a.helpers,s),s.helpers=c,t.usePartial&&(s.partials=s.mergeIfNeeded(a.partials,e.partials)),(t.usePartial||t.useDecorators)&&(s.decorators=Tp.extend({},e.decorators,a.decorators)),s.hooks={},s.protoAccessControl=uie.createProtoAccessControl(a);var l=a.allowCallsToHelperMissing||r;lie.moveHelperToHooks(s,"helperMissing",l),lie.moveHelperToHooks(s,"blockHelperMissing",l)}},i._child=function(a,c,l,u){if(t.useBlockParams&&!l)throw new Ga.default("must pass block params");if(t.useDepths&&!u)throw new Ga.default("must pass parent depths");return v0(s,a,t[a],c,0,l,u)},i}o(Y$e,"template");function v0(t,e,r,n,s,i,a){function c(l){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],d=a;return a&&l!=a[0]&&!(l===t.nullContext&&a[0]===null)&&(d=[l].concat(a)),r(t,l,t.helpers,t.partials,u.data||n,i&&[u.blockParams].concat(i),d)}return o(c,"prog"),c=pie(r,c,t,a,n,i),c.program=e,c.depth=a?a.length:0,c.blockParams=s||0,c}o(v0,"wrapProgram");function W$e(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=_0(r.partials,t)):r.name==="@partial-block"?t=_0(r.data,"partial-block"):t=_0(r.partials,r.name),t}o(W$e,"resolvePartial");function j$e(t,e,r){var n=_0(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var s=void 0;if(r.fn&&r.fn!==Aie&&(function(){r.data=Ha.createFrame(r.data);var i=r.fn;s=r.data["partial-block"]=o(function(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return l.data=Ha.createFrame(l.data),l.data["partial-block"]=n,i(c,l)},"partialBlockWrapper"),i.partials&&(r.partials=Tp.extend({},r.partials,i.partials))})(),t===void 0&&s&&(t=s),t===void 0)throw new Ga.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}o(j$e,"invokePartial");function Aie(){return""}o(Aie,"noop");function _0(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}o(_0,"lookupOwnProperty");function K$e(t,e){return(!e||!("root"in e))&&(e=e?Ha.createFrame(e):{},e.root=t),e}o(K$e,"initData");function pie(t,e,r,n,s,i){if(t.decorator){var a={};e=t.decorator(e,a,r,n&&n[0],s,i,n),Tp.extend(e,a)}return e}o(pie,"executeDecorators");function die(t,e,r){e&&Object.keys(e).forEach(function(n){var s=e[n];t[n]=X$e(s,r)})}o(die,"addHelpers");function X$e(t,e){var r=e.lookupProperty;return $$e
2026-05-22 14:44:02 +00:00
`+this.lexer.showPosition()+`
Expecting `+de.join(", ")+", got '"+(this.terminals_[b]||b)+"'":Gr="Parse error on line "+(A+1)+": Unexpected "+(b==1?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(Gr,{text:this.lexer.match,token:this.terminals_[b]||b,line:this.lexer.yylineno,loc:y,expected:de})}}if(D[0]instanceof Array&&D.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Q+", token: "+b);switch(D[0]){case 1:a.push(b),c.push(this.lexer.yytext),l.push(this.lexer.yylloc),a.push(D[1]),b=null,N?(b=N,N=null):(p=this.lexer.yyleng,d=this.lexer.yytext,A=this.lexer.yylineno,y=this.lexer.yylloc,f>0&&f--);break;case 2:if(Ce=this.productions_[D[1]][1],qe.$=c[c.length-Ce],qe._$={first_line:l[l.length-(Ce||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(Ce||1)].first_column,last_column:l[l.length-1].last_column},E&&(qe._$.range=[l[l.length-(Ce||1)].range[0],l[l.length-1].range[1]]),Me=this.performAction.call(qe,d,p,A,this.yy,D[1],c,l),typeof Me<"u")return Me;Ce&&(a=a.slice(0,-1*Ce*2),c=c.slice(0,-1*Ce),l=l.slice(0,-1*Ce)),a.push(this.productions_[D[1]][0]),c.push(qe.$),l.push(qe._$),et=u[a[a.length-2]][a[a.length-1]],a.push(et);break;case 3:return!0}}return!0},"parse")},e=(function(){var n={EOF:1,parseError:o(function(i,a){if(this.yy.parser)this.yy.parser.parseError(i,a);else throw new Error(i)},"parseError"),setInput:o(function(i){return this._input=i,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var a=i.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:o(function(i){var a=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===l.length?this.yylloc.first_column:0)+l[l.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-a]),this},"unput"),more:o(function(){return this._more=!0,this},"more"),less:o(function(i){this.unput(this.match.slice(i))},"less"),pastInput:o(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var i=this.pastInput(),a=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
`+a+"^"},"showPosition"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,a,c,l,u,d;this._more||(this.yytext="",this.match="");for(var A=this._currentRules(),p=0;p<A.length&&(c=this._input.match(this.rules[A[p]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,l=p,!this.options.flex)));p++);return a?(d=a[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],i=this.performAction.call(this,this.yy,this,A[l],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var i=this.next();return typeof i<"u"?i:this.lex()},"lex"),begin:o(function(i){this.conditionStack.push(i)},"begin"),popState:o(function(){return this.conditionStack.pop()},"popState"),_currentRules:o(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:o(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:o(function(i){this.begin(i)},"begin")};return n.options={},n.performAction=o(function(i,a,c,l){function u(A,p){return a.yytext=a.yytext.substring(A,a.yyleng-p+A)}o(u,"strip");var d=l;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(u(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(u(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(u(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=u(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=u(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n})();t.lexer=e;function r(){this.yy={}}return o(r,"Parser"),r.prototype=t,t.Parser=r,new r})();O0.default=cJe;bie.exports=O0.default});var U0=m((F0,xie)=>{"use strict";F0.__esModule=!0;function lJe(t){return t&&t.__esModule?t:{default:t}}o(lJe,"_interopRequireDefault");var uJe=ps(),TF=lJe(uJe);function M0(){this.parents=[]}o(M0,"Visitor");M0.prototype={constructor:M0,mutating:!1,acceptKey:o(function(e,r){var n=this.accept(e[r]);if(this.mutating){if(n&&!M0.prototype[n.type])throw new TF.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+e.type);e[r]=n}},"acceptKey"),acceptRequired:o(function(e,r){if(this.a
`])}),e},"merge"),each:o(function(e){for(var r=0,n=this.source.length;r<n;r++)e(this.source[r])},"each"),empty:o(function(){var e=this.currentLocation||{start:{}};return new Hu(e.start.line,e.start.column,this.srcFile)},"empty"),wrap:o(function(e){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return e instanceof Hu?e:(e=XF(e,this,r),new Hu(r.start.line,r.start.column,this.srcFile,e))},"wrap"),functionCall:o(function(e,r,n){return n=this.generateList(n),this.wrap([e,r?"."+r+"(":"(",n,")"])},"functionCall"),quotedString:o(function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},"quotedString"),objectLiteral:o(function(e){var r=this,n=[];Object.keys(e).forEach(function(i){var a=XF(e[i],r);a!=="undefined"&&n.push([r.quotedString(i),":",a])});var s=this.generateList(n);return s.prepend("{"),s.add("}"),s},"objectLiteral"),generateList:o(function(e){for(var r=this.empty(),n=0,s=e.length;n<s;n++)n&&r.add(","),r.add(XF(e[n],this));return r},"generateList"),generateArray:o(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};Y0.default=coe;loe.exports=Y0.default});var hoe=m((W0,foe)=>{"use strict";W0.__esModule=!0;function poe(t){return t&&t.__esModule?t:{default:t}}o(poe,"_interopRequireDefault");var doe=R0(),aYe=ps(),eU=poe(aYe),cYe=an(),lYe=uoe(),Aoe=poe(lYe);function Op(t){this.value=t}o(Op,"Literal");function Mp(){}o(Mp,"JavaScriptCompiler");Mp.prototype={nameLookup:o(function(e,r){return this.internalNameLookup(e,r)},"nameLookup"),depthedLookup:o(function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},"depthedLookup"),compilerInfo:o(function(){var e=doe.COMPILER_REVISION,r=doe.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:o(function(e,r,n){return cYe.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:n?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},"appendToBuffer"),initializeBuffer:o(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:o(function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:o(function(e,r,n,s){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!s,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var i=e.opcodes,a=void 0,c=void 0,l=void 0,u=void 0;for(l=0,u=i.length;l<u;l++)a=i[l],this.source.currentLocation=a.loc,c=c||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=c,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new eU.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
`]),this.decorators.push("return fn;"),s?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
2026-05-22 14:44:02 +00:00
`),this.decorators.push(`}
`),this.decorators=this.decorators.merge()));var d=this.createFunctionContext(s);if(this.isChild)return d;var A={compiler:this.compilerInfo(),main:d};this.decorators&&(A.main_d=this.decorators,A.useDecorators=!0);var p=this.context,f=p.programs,h=p.decorators;for(l=0,u=f.length;l<u;l++)A[l]=f[l],h[l]&&(A[l+"_d"]=h[l],A.useDecorators=!0);return this.environment.usePartial&&(A.usePartial=!0),this.options.data&&(A.useData=!0),this.useDepths&&(A.useDepths=!0),this.useBlockParams&&(A.useBlockParams=!0),this.options.compat&&(A.compat=!0),s?A.compilerOptions=this.options:(A.compiler=JSON.stringify(A.compiler),this.source.currentLocation={start:{line:1,column:0}},A=this.objectLiteral(A),r.srcName?(A=A.toStringWithSourceMap({file:r.destName}),A.map=A.map&&A.map.toString()):A=A.toString()),A},"compile"),preamble:o(function(){this.lastContext=0,this.source=new Aoe.default(this.options.srcName),this.decorators=new Aoe.default(this.options.srcName)},"preamble"),createFunctionContext:o(function(e){var r=this,n="",s=this.stackVars.concat(this.registers.list);s.length>0&&(n+=", "+s.join(", "));var i=0;Object.keys(this.aliases).forEach(function(l){var u=r.aliases[l];u.children&&u.referenceCount>1&&(n+=", alias"+ ++i+"="+l,u.children[0]="alias"+i)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(n);return e?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
`,c,"}"])},"createFunctionContext"),mergeSource:o(function(e){var r=this.environment.isSimple,n=!this.forceBuffer,s=void 0,i=void 0,a=void 0,c=void 0;return this.source.each(function(l){l.appendToBuffer?(a?l.prepend(" + "):a=l,c=l):(a&&(i?a.prepend("buffer += "):s=!0,c.add(";"),a=c=void 0),i=!0,r||(n=!1))}),n?a?(a.prepend("return "),c.add(";")):i||this.source.push('return "";'):(e+=", buffer = "+(s?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),c.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(s?"":`;
2026-06-29 15:03:17 +02:00
`)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:o(function(){return`
2026-05-22 14:44:02 +00:00
lookupProperty = container.lookupProperty || function(parent, propertyName) {
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
return parent[propertyName];
}
return undefined
}
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:o(function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(e,0,n);var s=this.popStack();n.splice(1,0,s),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:o(function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(e,"call",r),"}"])},"ambiguousBlockValue"),appendContent:o(function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},"appendContent"),append:o(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:o(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:o(function(e){this.lastContext=e},"getContext"),pushContext:o(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:o(function(e,r,n,s){var i=0;!s&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[i++])):this.pushContext(),this.resolvePath("context",e,i,r,n)},"lookupOnContext"),lookupBlockParam:o(function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:o(function(e,r,n){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:o(function(e,r,n,s,i){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(uYe(this.options.strict&&i,this,r,n,e));return}for(var c=r.length,l=o(function(d){a.replaceStack(function(A){var p=a.nameLookup(A,r[d],e);return s?[" && ",p]:[" != null ? ",p," : ",A]})},"_loop"),u=n;u<c;u++)l(u)},"resolvePath"),resolvePossibleLambda:o(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:o(function(e,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof e=="string"?this.pushString(e):this.pushStackLiteral(e))},"pushStringParam"),emptyHash:o(function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},"emptyHash"),pushHash:o(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:o(function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},"popHash"),pushString:o(function(e){this.pushStackLiteral(this.quotedString(e))},"pushString"),pushLiteral:o(function(e){this.pushStackLiteral(e)},"pushLiteral"),pushProgram:o(function(e){e!=null?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:o(function(e,r){var n=this.nameLookup("decorators",r,"decorator"),s=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",n,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+r+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",s])," || fn;"])},"registerDecorator"),invokeHelper:o(function(e,r,n){var s=this.popStack(),i=this.setupHelper(e,r),a=[];n&&a.push(i.name),a.push(s),this.options.strict||a.push(this.aliasable("container.hoo
`,e};Pt.prototype.Program=function(t){var e="",r=t.body,n=void 0,s=void 0;if(t.blockParams){var i="BLOCK PARAMS: [";for(n=0,s=t.blockParams.length;n<s;n++)i+=" "+t.blockParams[n];i+=" ]",e+=this.pad(i)}for(n=0,s=r.length;n<s;n++)e+=this.accept(r[n]);return this.padding--,e};Pt.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};Pt.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};Pt.prototype.BlockStatement=Pt.prototype.DecoratorBlock=function(t){var e="";return e+=this.pad((t.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,e+=this.pad(this.SubExpression(t)),t.program&&(e+=this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--),t.inverse&&(t.program&&this.padding++,e+=this.pad("{{^}}"),this.padding++,e+=this.accept(t.inverse),this.padding--,t.program&&this.padding--),this.padding--,e};Pt.prototype.PartialStatement=function(t){var e="PARTIAL:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),this.pad("{{> "+e+" }}")};Pt.prototype.PartialBlockStatement=function(t){var e="PARTIAL BLOCK:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),e+=" "+this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--,this.pad("{{> "+e+" }}")};Pt.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};Pt.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};Pt.prototype.SubExpression=function(t){for(var e=t.params,r=[],n=void 0,s=0,i=e.length;s<i;s++)r.push(this.accept(e[s]));return e="["+r.join(", ")+"]",n=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+n};Pt.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};Pt.prototype.StringLiteral=function(t){return'"'+t.value+'"'};Pt.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};Pt.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};Pt.prototype.UndefinedLiteral=function(){return"UNDEFINED"};Pt.prototype.NullLiteral=function(){return"NULL"};Pt.prototype.Hash=function(t){for(var e=t.pairs,r=[],n=0,s=e.length;n<s;n++)r.push(this.accept(e[n]));return"HASH{"+r.join(", ")+"}"};Pt.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var boe=m((d_t,Boe)=>{var X0=Eoe().default,Ioe=yoe();X0.PrintVisitor=Ioe.PrintVisitor;X0.print=Ioe.print;Boe.exports=X0;function Coe(t,e){var r=require("fs"),n=r.readFileSync(e,"utf8");t.exports=X0.compile(n)}o(Coe,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=Coe,require.extensions[".hbs"]=Coe)});var koe=m(nS=>{"use strict";Object.defineProperty(nS,"__esModule",{value:!0});nS.getProxyUrl=RYe;nS.checkBypass=Poe;function RYe(t){let e=t.protocol==="https:";if(Poe(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new rS(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new rS(`http://${r}`)}else return}o(RYe,"getProxyUrl");function Poe(t){if(!t.hostname)return!1;let e=t.hostname;if(TYe(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let s=[t.hostname.toUpperCase()];typeof n=="number"&&s.push(`${s[0]}:${n}`);for(let i of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(i==="*"||s.some(a=>a===i||a.endsWith(`.${i}`)||i.startsWith(".")&&a.endsWith(`${i}`)))return!0;return!1}o(Poe,"checkBypass");function TYe(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}o(TYe,"isLoopbackAddress");var rS=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get passwor
`).join(`
`+i),t.push(s+"m+"+oN.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=b5e()+e+" "+t[0]}o(B5e,"formatArgs");function b5e(){return yr.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(b5e,"getDate");function w5e(...t){return process.stderr.write(iN.formatWithOptions(yr.inspectOpts,...t)+`
`)}o(w5e,"log");function S5e(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(S5e,"save");function N5e(){return process.env.DEBUG}o(N5e,"load");function x5e(t){t.inspectOpts={};let e=Object.keys(yr.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=yr.inspectOpts[e[r]]}o(x5e,"init");oN.exports=T2()(yr);var{formatters:cle}=oN.exports;cle.o=function(t){return this.inspectOpts.colors=this.useColors,iN.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};cle.O=function(t){return this.inspectOpts.colors=this.useColors,iN.inspect(t,this.inspectOpts)}});var _2=m((VOt,v2)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?v2.exports=ale():v2.exports=lle()});var cN=m(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.DownloadHTTPError=kt.DownloadLengthMismatchError=kt.DownloadError=kt.ExpiredMetadataError=kt.EqualVersionError=kt.BadVersionError=kt.RepositoryError=kt.PersistError=kt.RuntimeError=kt.ValueError=void 0;var P2=class extends Error{static{o(this,"ValueError")}};kt.ValueError=P2;var k2=class extends Error{static{o(this,"RuntimeError")}};kt.RuntimeError=k2;var D2=class extends Error{static{o(this,"PersistError")}};kt.PersistError=D2;var gE=class extends Error{static{o(this,"RepositoryError")}};kt.RepositoryError=gE;var aN=class extends gE{static{o(this,"BadVersionError")}};kt.BadVersionError=aN;var O2=class extends aN{static{o(this,"EqualVersionError")}};kt.EqualVersionError=O2;var M2=class extends gE{static{o(this,"ExpiredMetadataError")}};kt.ExpiredMetadataError=M2;var EE=class extends Error{static{o(this,"DownloadError")}};kt.DownloadError=EE;var L2=class extends EE{static{o(this,"DownloadLengthMismatchError")}};kt.DownloadLengthMismatchError=L2;var F2=class extends EE{static{o(this,"DownloadHTTPError")}statusCode;constructor(e,r){super(e),this.statusCode=r}};kt.DownloadHTTPError=F2});var dle=m(cf=>{"use strict";var q2=cf&&cf.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(cf,"__esModule",{value:!0});cf.withTempFile=void 0;var U2=q2(require("fs/promises")),Q5e=q2(require("os")),ule=q2(require("path")),R5e=o(async t=>T5e(async e=>t(ule.default.join(e,"tempfile"))),"withTempFile");cf.withTempFile=R5e;var T5e=o(async t=>{let e=await U2.default.realpath(Q5e.default.tmpdir()),r=await U2.default.mkdtemp(e+ule.default.sep);try{return await t(r)}finally{await U2.default.rm(r,{force:!0,recursive:!0,maxRetries:3})}},"withTempDir")});var ple=m((WOt,Ale)=>{var G2=class{static{o(this,"RetryOperation")}#e=1;#t=null;#n=[];#r=null;#s;#i=null;#a;#o;#l=null;#c;constructor(e,r={}){this.#a=[...e],this.#o=[...e],this.#c=r.unref,this.#s=r.maxRetryTime||1/0,r.forever&&(this.#t=[...this.#o])}get timeouts(){return[...this.#o]}get errors(){return[...this.#n]}get attempts(){return this.#e}get mainError(){let e=null;if(this.#n.length){let r=0,n={};for(let s=0;s<this.#n.length;s++){let i=this.#n[s],{message:a}=i;n[a]||(n[a]=0),n[a]++,n[a]>=r&&(e=i,r=n[a])}}return e}reset(){this.#e=1,this.#o=[...this.#a]}stop(){this.#l&&clearTimeout(this.#l),this.#o=[],this.#t=null}retry(e){if(this.#n.push(e),new Date().getTime()-this.#i>=this.#s)return this.#n.unshift(new Error("RetryOperation timeout occurred")),!1;let r=this.#o.shift();if(r===void 0)if(this.#t)this.#n.pop(),r=this.#t.at(-1);else return!1;return this.#l=setTimeout(()=>{this.#e++,this.#r(this.#e)},r),this.#c&&this.#l.unref(),!0}attempt(e){this.#r=e,this.#i=new Date().getTime(),this.#r(this.#e)}};Ale.exports={RetryOperation:G2}});var mle=m((KOt,hle)=>{var{RetryOperation:v5e}=ple(),fle=o((t,e)=>Math.min(Math.round((1+(e.randomize?Math.random():0))*Math.max(e.minTimeout,1)*Math.pow(e.factor,t)),e.maxTimeout),"createTimeout"),_5e=o(t=>t?.code==="EPROMISERETRY"&&Object.hasOwn(t,"retried"),"isRetryError"),P5e=o(async(t,e={})=>{let r=[];if(e instanceof Array)r=[...e];else{e.retries===1/0&&(e.forever=!0,delete e.retries);let s={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1,...e};if(s.minTimeout>s.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");if(s.retries){for(let i=0;i<s.retries;i++)r.push(fle(i,s));r.sort((i,a)=>i-a)}else e.forever&&r.push(fle(0,s))}let n=new v5e(r,{forever:e.forever,unref:e.unref,maxRetryTime:e.maxRetryTime});return new Promise(function(s,i){n.attempt(async a=>{try{let c=await t(l=>{throw Object.assign(new Error("Retrying"),{code:"EPROMISERETRY",retried:l})},a,n);return s(c)}catch(c){if(!_5e(c))return i(c);if(!n.retry(c.retried||new Error))return i(c.retried)}})})},"
`).forEach(r=>{r.match(z8e)||r.match($8e)||(e+=r)}),Buffer.from(e,"base64")}o(J8e,"toDER");function Y8e(t,e="CERTIFICATE"){let n=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...n,`-----END ${e}-----`].join(`
`).concat(`
`)}o(Y8e,"fromDER")});var SN=m(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});Al.SHA2_HASH_ALGOS=Al.RSA_SIGNATURE_ALGOS=Al.ECDSA_SIGNATURE_ALGOS=void 0;Al.ECDSA_SIGNATURE_ALGOS={"1.2.840.10045.4.3.1":"sha224","1.2.840.10045.4.3.2":"sha256","1.2.840.10045.4.3.3":"sha384","1.2.840.10045.4.3.4":"sha512"};Al.RSA_SIGNATURE_ALGOS={"1.2.840.113549.1.1.14":"sha224","1.2.840.113549.1.1.11":"sha256","1.2.840.113549.1.1.12":"sha384","1.2.840.113549.1.1.13":"sha512"};Al.SHA2_HASH_ALGOS={"2.16.840.1.101.3.4.2.1":"sha256","2.16.840.1.101.3.4.2.2":"sha384","2.16.840.1.101.3.4.2.3":"sha512"}});var hq=m(NN=>{"use strict";Object.defineProperty(NN,"__esModule",{value:!0});NN.RFC3161TimestampVerificationError=void 0;var fq=class extends Error{static{o(this,"RFC3161TimestampVerificationError")}};NN.RFC3161TimestampVerificationError=fq});var Yle=m(Vo=>{"use strict";var W8e=Vo&&Vo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),j8e=Vo&&Vo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),K8e=Vo&&Vo.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&W8e(r,e,n[s]);return j8e(r,e),r}})();Object.defineProperty(Vo,"__esModule",{value:!0});Vo.TSTInfo=void 0;var Jle=K8e(ff()),X8e=SN(),Z8e=hq(),mq=class{static{o(this,"TSTInfo")}root;constructor(e){this.root=e}get version(){return this.root.subs[0].toInteger()}get genTime(){return this.root.subs[4].toDate()}get messageImprintHashAlgorithm(){let e=this.messageImprintObj.subs[0].subs[0].toOID();return X8e.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=Jle.digest(this.messageImprintHashAlgorithm,e);if(!Jle.bufferEqual(r,this.messageImprintHashedMessage))throw new Z8e.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};Vo.TSTInfo=mq});var jle=m(zo=>{"use strict";var e9e=zo&&zo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),t9e=zo&&zo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),r9e=zo&&zo.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&e9e(r,e,n[s]);return t9e(r,e),r}})();Object.defineProperty(zo,"__esModule",{value:!0});zo.RFC3161Timestamp=void 0;var n9e=BN(),gq=r9e(ff()),Wle=SN(),wE=hq(),s9e=Yle(),i9e="1.2.840.113549.1.7.2",o9e="1.2.840.113549.1.9.16.1.4",a9e="1.2.840.113549.1.9.4",Eq=class t{static{o(this,"RFC3161Timestamp")}root;constructor(e){this.root=e}static parse(e){let r=n9e.ASN1Obj.parseBuffer(e);return new t(r)}get status(){return this.pkiStatusInfoObj.subs[0].toInteger()}get contentType(){return this.contentTypeObj.toOID()}get eContentType(){return this.eContentTypeObj.toOID()}get signingTime(){return this.tstInfo.genTime}get signerIssuer(){return this.signerSidObj.subs[0].value}get signerSerialNumber(){return this.signerSidObj.subs[1].value}get signerDigestAlgorith
`,x6e=/\u2014 (\S+) (\S+)\n/g;function Q6e(t,e){let r=t.inclusionProof,n=Yq.fromString(r.checkpoint.envelope),s=$N.fromString(n.note);if(!R6e(n,e))throw new If.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return s}o(Q6e,"verifyCheckpoint");function R6e(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(n=>{let s=e.find(i=>Tue.crypto.bufferEqual(i.logID.subarray(0,4),n.keyHint)&&i.baseURL.includes(n.name));return s?Tue.crypto.verify(r,s.publicKey,n.signature):!1})}o(R6e,"verifySignedNote");var Yq=class t{static{o(this,"SignedNote")}note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(Jq))throw new If.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(Jq),n=e.slice(0,r+1),i=e.slice(r+Jq.length).matchAll(x6e),a=Array.from(i,c=>{let[,l,u]=c,d=Buffer.from(u,"base64");if(d.length<5)throw new If.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:l,keyHint:d.subarray(0,4),signature:d.subarray(4)}});if(a.length===0)throw new If.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(n,a)}},$N=class t{static{o(this,"LogCheckpoint")}origin;logSize;logHash;rest;constructor(e,r,n,s){this.origin=e,this.logSize=r,this.logHash=n,this.rest=s}static fromString(e){let r=e.trimEnd().split(`
`);if(r.length<3)throw new If.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let n=r[0],s;try{s=BigInt(r[1])}catch{throw new If.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint log size"})}let i=Buffer.from(r[2],"base64"),a=r.slice(3);return new t(n,s,i,a)}};RE.LogCheckpoint=$N});var _ue=m(Kq=>{"use strict";Object.defineProperty(Kq,"__esModule",{value:!0});Kq.verifyMerkleInclusion=_6e;var jq=vi(),JN=qr(),T6e=Buffer.from([0]),v6e=Buffer.from([1]);function _6e(t,e){let r=t.inclusionProof,n;try{n=BigInt(r.logIndex)}catch{throw new JN.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid inclusion proof log index"})}let s=BigInt(e.logSize);if(n<0n||n>=s)throw new JN.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${n}`});let{inner:i,border:a}=P6e(n,s);if(r.hashes.length!==i+a)throw new JN.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let c=r.hashes.slice(0,i),l=r.hashes.slice(i),u=F6e(t.canonicalizedBody),d=D6e(k6e(u,c,n),l);if(!jq.crypto.bufferEqual(d,e.logHash))throw new JN.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}o(_6e,"verifyMerkleInclusion");function P6e(t,e){let r=O6e(t,e),n=M6e(t>>BigInt(r));return{inner:r,border:n}}o(P6e,"decompInclProof");function k6e(t,e,r){return e.reduce((n,s,i)=>r>>BigInt(i)&BigInt(1)?Wq(s,n):Wq(n,s),t)}o(k6e,"chainInner");function D6e(t,e){return e.reduce((r,n)=>Wq(n,r),t)}o(D6e,"chainBorderRight");function O6e(t,e){return L6e(t^e-BigInt(1))}o(O6e,"innerProofSize");function M6e(t){return t.toString(2).split("1").length-1}o(M6e,"onesCount");function L6e(t){return t===0n?0:t.toString(2).length}o(L6e,"bitLength");function Wq(t,e){return jq.crypto.digest("sha256",v6e,t,e)}o(Wq,"hashChildren");function F6e(t){return jq.crypto.digest("sha256",T6e,t)}o(F6e,"hashLeaf")});var kue=m(Xq=>{"use strict";Object.defineProperty(Xq,"__esModule",{value:!0});Xq.verifyTLogSET=G6e;var Pue=vi(),U6e=qr(),q6e=gf();function G6e(t,e){if(!(0,q6e.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(s=>{let i=H6e(t),a=Buffer.from(Pue.json.canonicalize(i),"utf8"),c=t.inclusionPromise.signedEntryTimestamp;return Pue.crypto.verify(a,s.publicKey,c)}))throw new U6e.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}o(G6e,"verifyTLogSET");function H6e(t){let{integratedTime:e,logIndex:r,logId:n,canonicalizedBody:s}=t;return{body:s.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:n.keyId.toString("hex")}}o(H6e,"toVerificationPayload")});var Oue=m(WN=>{"use strict";Object.defineProperty(WN,"__esModule",{value:!0});WN.verifyTLogBody=Y6e;WN.verifyTLogInclusion=W6e;var Due=Nue(),YN=qr(),Zq=xue(),eG=Que(),V6e=Rue(),z6e=vue(),$6e=_ue(),J6e=kue();function Y6e(t,e){let{kind:r,version:n}=t.kindVersion,s;try{s=JSON.parse(t.canonicalizedBody.toString("utf8"))}catch{throw new YN.VerificationError({code:"TLOG_BODY_ERROR",message:"invalid canonicalized body"})}if(r!==s.kind||n!==s.apiVersion)throw new YN.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${n}, received: ${s.kind}/${s.apiVersion}`});switch(r){case"dsse":if(n==Zq.DSSE_API_VERSION_V1)return(0,Zq.verifyDSSETLogBody)(s,e);{let i=Due.Entry.fromJSON(s);return(0,Zq.verifyDSSETLogBodyV2)(i,e)}case"intoto":return(0,V6e.verifyIntotoTLogBody)(s,e);case"hashedrekord":if(n==eG.HASHEDREKORD_API_VERSION_V1)return(0,eG.verifyHashedRekordTLogBody)(s,e);{let i=Due.Entry.fromJSON(s);return(0,eG.verifyHashedRekordTLogBodyV2)(i,e)}default:throw new YN.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}o(Y6e,"verifyTLogBody");function W6e(t,e){let r=!1;if(j6e(t)&&((0,J6e.verifyTLogSET)(t,e),r=!0),K6e(t)){let n=(0,z6e.verifyCheckpoint)(t,e);(0,$6e.verifyMerkleInclusion)(t,n),r=!0}if(!r)throw new YN.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion c
${l}`}let A=hx(t.buffer,s[c],i[c],t.position,d);l+=`${" ".repeat(r.indent)}${mx((t.line+1).toString(),u)} | ${A.str}
`,l+=`${"-".repeat(r.indent+u+3+A.pos)}^
`;for(let p=1;p<=r.linesAfter&&!(c+p>=i.length);p++){let f=hx(t.buffer,s[c+p],i[c+p],t.position-(s[c]-s[c+p]),d);l+=`${" ".repeat(r.indent)}${mx((t.line+p+1).toString(),u)} | ${f.str}
`}return l.replace(/\n$/,"")}o(kAe,"makeSnippet");function EG(t,e){let r="";return t.mark?(t.mark.name&&(r+=`in "${t.mark.name}" `),r+=`(${t.mark.line+1}:${t.mark.column+1})`,!e&&t.mark.snippet&&(r+=`
${t.mark.snippet}`),`${t.reason} ${r}`):t.reason}o(EG,"formatError");var Cl=class vG extends Error{static{o(this,"YAMLException")}reason;mark;constructor(e,r){super(),this.name="YAMLException",this.reason=e,this.mark=r,this.message=EG(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(e){return`${this.name}: ${EG(this,e)}`}static throwAt(e,r,n,s=""){let i=0,a=0;for(let l=0;l<r;l++){let u=e.charCodeAt(l);u===10?(i++,a=l+1):u===13&&(i++,e.charCodeAt(l+1)===10&&l++,a=l+1)}let c={name:s,buffer:e,position:r,line:i,column:r-a};throw c.snippet=kAe(c),new vG(n,c)}},wt={DOCUMENT:1,SEQUENCE:2,MAPPING:3,SCALAR:4,ALIAS:5,POP:6},Be={PLAIN:1,SINGLE_QUOTED:2,DOUBLE_QUOTED:3,LITERAL_BLOCK:4,FOLDED_BLOCK:5},nc={BLOCK:1,FLOW:2},Fn={CLIP:1,STRIP:2,KEEP:3},DAe=-1;function yG(t){switch(t){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return`
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xA0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}o(yG,"simpleEscapeSequence");var _G=new Array(256),PG=new Array(256);for(let t=0;t<256;t++)_G[t]=yG(t)?1:0,PG[t]=yG(t);function OAe(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}o(OAe,"charFromCodepoint");function MAe(t){return t>=48&&t<=57?t-48:(t|32)-97+10}o(MAe,"fromHexCode$1");function LAe(t){return t===120?2:t===117?4:8}o(LAe,"escapedHexLen$1");function ME(t,e,r){let n=0;for(;e<r;){let s=t.charCodeAt(e);if(s===10)n++,e++;else if(s===13)n++,e++,t.charCodeAt(e)===10&&e++;else if(s===32||s===9)e++;else break}return{position:e,breaks:n}}o(ME,"skipFoldedBreaks");function Tx(t){return t===1?" ":`
`.repeat(t-1)}o(Tx,"foldedBreaks");function FAe(t,e,r){let n="",s=e,i=e,a=e;for(;s<r;){let c=t.charCodeAt(s);if(c===10||c===13){n+=t.slice(i,a);let l=ME(t,s,r);n+=Tx(l.breaks),s=i=a=l.position}else s++,c!==32&&c!==9&&(a=s)}return n+t.slice(i,a)}o(FAe,"getPlainValue");function UAe(t,e,r){let n="",s=e,i=e,a=e;for(;s<r;){let c=t.charCodeAt(s);if(c===39)n+=t.slice(i,s)+"'",s+=2,i=a=s;else if(c===10||c===13){n+=t.slice(i,a);let l=ME(t,s,r);n+=Tx(l.breaks),s=i=a=l.position}else s++,c!==32&&c!==9&&(a=s)}return n+t.slice(i,r)}o(UAe,"getSingleQuotedValue");function qAe(t,e,r){let n="",s=e,i=e,a=e;for(;s<r;){let c=t.charCodeAt(s);if(c===92){n+=t.slice(i,s),s++;let l=t.charCodeAt(s);if(l===10||l===13)s=ME(t,s,r).position;else if(l<256&&_G[l])n+=PG[l],s++;else{let u=LAe(l),d=0;for(;u>0;u--){s++;let A=MAe(t.charCodeAt(s));d=(d<<4)+A}n+=OAe(d),s++}i=a=s}else if(c===10||c===13){n+=t.slice(i,a);let l=ME(t,s,r);n+=Tx(l.breaks),s=i=a=l.position}else s++,c!==32&&c!==9&&(a=s)}return n+t.slice(i,r)}o(qAe,"getDoubleQuotedValue");function CG(t,e,r,n,s,i){let a=n<0?0:n,c=t.slice(e,r).replace(/\r\n?/g,`
`),l=c===""?[]:(c.endsWith(`
`)?c.slice(0,-1):c).split(`
`),u="",d=!1,A=0,p=!1;for(let f of l){let h=0;for(;h<a&&f.charCodeAt(h)===32;)h++;if(n<0||h>=f.length){A++;continue}let g=f.slice(a),y=g.charCodeAt(0);i?y===32||y===9?(p=!0,u+=`
`.repeat(d?1+A:A)):p?(p=!1,u+=`
`.repeat(A+1)):A===0?d&&(u+=" "):u+=`
`.repeat(A):u+=`
`.repeat(d?1+A:A),u+=g,d=!0,A=0}return s===Fn.KEEP?u+=`
`.repeat(d?1+A:A):s!==Fn.STRIP&&d&&(u+=`
`),u}o(CG,"getBlockValue");function GAe(t,e){if(e.valueStart===DAe)return"";let{valueStart:r,valueEnd:n}=e;if(e.fast)return t.slice(r,n);switch(e.style){case Be.SINGLE_QUOTED:return UAe(t,r,n);case Be.DOUBLE_QUOTED:return qAe(t,r,n);case Be.LITERAL_BLOCK:return CG(t,r,n,e.indent,e.chomping,!1);case Be.FOLDED_BLOCK:return CG(t,r,n,e.indent,e.chomping,!0);default:return FAe(t,r,n)}}o(GAe,"getScalarValue");var HAe=Object.assign(Object.create(null),{"!":"!","!!":"tag:yaml.org,2002:"});function kG(t,e){if(t.startsWith("!<")&&t.endsWith(">"))return decodeURIComponent(t.slice(2,-1));let r=t.indexOf("!",1),n=r===-1?"!":t.slice(0,r+1),s=e?.[n]??HAe[n]??n;return decodeURIComponent(s)+decodeURIComponent(t.slice(n.length))}o(kG,"tagNameFull");var fd=-1,VAe="tag:yaml.org,2002:merge",vx={filename:"",schema:TAe,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1};function zAe(t){return"tagStart"in t&&t.tagStart!==fd?t.tagStart:"anchorStart"in t&&t.anchorStart!==fd?t.anchorStart:"valueStart"in t&&t.valueStart!==fd?t.valueStart:"start"in t?t.start:0}o(zAe,"eventPosition$1");function Qr(t,e){Cl.throwAt(t.source,t.position,e,t.filename)}o(Qr,"throwError$1");function DG(t,e,r,n){try{return r.finalize(n)}catch(s){if(s instanceof Cl)throw s;Cl.throwAt(t.source,e,s instanceof Error?s.message:String(s),t.filename)}}o(DG,"finalizeCollection");function $Ae(t,e){let r=GAe(t.source,e),n=e.tagStart===fd?"":t.source.slice(e.tagStart,e.tagEnd),s=t.schema.defaultScalarTag;if(n!==""){if(n==="!")return{value:r,tag:s};let i=kG(n,t.tagHandlers),a=t.schema.lookupScalarTag(i);if(a){let l=a.resolve(r,!0,i);return l===Te&&Qr(t,`cannot resolve a node with !<${i}> explicit tag`),{value:l,tag:a}}let c=t.schema.lookupMappingTag(i)??t.schema.lookupSequenceTag(i);if(c){r!==""&&Qr(t,`cannot resolve a node with !<${i}> explicit tag`);let l=c.create(i);return{value:c.carrierIsResult?l:DG(t,t.position,c,l),tag:c}}Qr(t,`unknown scalar tag !<${i}>`)}return e.style===Be.PLAIN?t.schema.resolveImplicitScalarTag(r):{value:s.resolve(r,!1,s.tagName),tag:s}}o($Ae,"constructScalar");function IG(t,e,r){let n=e.tagStart===fd?"":t.source.slice(e.tagStart,e.tagEnd);return n===""||n==="!"?r:kG(n,t.tagHandlers)}o(IG,"collectionTagName");function OG(t){return t.nodeKind==="mapping"}o(OG,"isMappingTag");function BG(t,e,r,n){for(let s of n.keys(r)){if(t.maxTotalMergeKeys!==-1&&++t.totalMergeKeys>t.maxTotalMergeKeys&&Qr(t,`merge keys exceeded maxTotalMergeKeys (${t.maxTotalMergeKeys})`),e.tag.has(e.value,s))continue;let i=e.tag.addPair(e.value,s,n.get(r,s));i&&Qr(t,i),(e.overridable??=new Set).add(s)}}o(BG,"mergeKeys");function JAe(t,e,r,n){if(t.position=e.keyPosition,OG(n))BG(t,e,r,n);else if(n.nodeKind==="sequence"&&Array.isArray(r))for(let s of r){let i=t.nodeTags.get(s);i||Qr(t,"cannot merge mappings; the provided source object is unacceptable"),BG(t,e,s,i)}else Qr(t,"cannot merge mappings; the provided source object is unacceptable")}o(JAe,"mergeSource");function YAe(t,e,r,n,s){if(t.position=e.keyPosition,e.keyIsMerge){JAe(t,e,n,s);return}!t.json&&e.tag.has(e.value,r)&&!e.overridable?.has(r)&&Qr(t,"duplicated mapping key");let i=e.tag.addPair(e.value,r,n);i&&Qr(t,i),e.overridable?.delete(r)}o(YAe,"addMappingValue");function gx(t,e,r){let n=t.frames[t.frames.length-1];if(n.kind==="document")n.value=e,n.hasValue=!0;else if(n.kind==="sequence"){OG(r)&&t.nodeTags.set(e,r);let s=n.tag.addItem(n.value,e,n.index++);s&&Qr(t,s)}else if(n.hasKey){let s=n.key;n.key=void 0,n.hasKey=!1,YAe(t,n,s,e,r)}else n.key=e,n.keyPosition=t.position,n.hasKey=!0,n.keyIsMerge=r.tagName===VAe}o(gx,"addValue");function Ex(t,e,r,n,s){if(e.anchorStart!==fd){let i={value:r,tag:n,isValueFinal:s};return t.anchors.set(t.source.slice(e.anchorStart,e.anchorEnd),i),i}return null}o(Ex,"storeAnchor");function WAe(t,e){let r={...vx,...e,events:t,documents:[],eventIndex:0,position:0,frames:[],anchors:new Map,nodeTags:new Map,tagHandlers:Object.create(null),totalMergeKeys:0,aliasCount:0};for(;r.eventIndex<r.events.length;){let n=r.events[r.eventIndex++];switch(r.position=zAe(n),n.type){case wt.DOCUMENT:r.anchors=new Map,r.nodeTags=ne
`)?Be.DOUBLE_QUOTED:zG(t)))}o(wpe,"applyForceQuotesOption");function Spe(t){if(t.style!==Be.PLAIN||t.isKey)return;let e=t.node.value,r=e.indexOf(`
`)!==-1;if(!HE(t.allowedStylesMask,Be.LITERAL_BLOCK)){r&&(t.style=Be.DOUBLE_QUOTED);return}let n=t.presenterOptions.lineWidth;if(n===-1){r&&(t.style=Be.LITERAL_BLOCK);return}let s=Math.max(Math.min(n,40),n-t.shiftOfContent),i=0,a=!1;for(;i<=e.length;){let c=e.length,l=e.indexOf(`
`,i);l!==-1&&(c=l);let u=e.slice(i,c);if(u.length>s&&u[0]!==" "&&/ [^ \t]/.test(u)&&(a=!0),l===-1)break;i=l+1}a?t.style=Be.FOLDED_BLOCK:r&&(t.style=Be.LITERAL_BLOCK)}o(Spe,"tryLongOrMultilineAsBlock");function Npe(t){t.style===Be.PLAIN&&!HE(t.allowedStylesMask,Be.PLAIN)&&(t.style=zG(t))}o(Npe,"quoteInvalidPlain");function xpe(t){HE(t.allowedStylesMask,t.style)||(t.style=Be.DOUBLE_QUOTED)}o(xpe,"fallbackToDoubleQuoted");var Qpe="[\\x09\\x0A\\x0D\\x20-\\x7E\\x85\\xA0-\\uD7FF\\uE000-\\uFFFD\\u{10000}-\\u{10FFFF}]",Rpe="[\\n\\r]",Tpe="\\uFEFF",kx="[ \\t]",$G=`(?:(?!(?:${Rpe}|${Tpe}))${Qpe})`,VE=`(?:(?!${kx})${$G})`,JG="[\\x09\\x20-\\uD7FF\\uE000-\\uFFFF\\u{10000}-\\u{10FFFF}]",YG="[-?:,\\[\\]{}#&*!|>'\"%@`]",vpe="[,\\[\\]{}]",Nx=VE,xx=`(?:(?!${vpe})${VE})`,_pe=`(?:(?:(?!${YG})${VE})|[?:-](?=${Nx}))`,Ppe=`(?:(?:(?!${YG})${VE})|[?:-](?=${xx}))`,WG=`(?:(?:(?![:#])${Nx})|:(?=${Nx}))#*`,jG=`(?:(?:(?![:#])${xx})|:(?=${xx}))#*`,KG=`(?:${kx}*${WG})*`,XG=`(?:${kx}*${jG})*`,ZG=`${_pe}#*${KG}`,eH=`${Ppe}#*${XG}`,kpe=ZG,Dpe=eH,Ope=`\\n+${WG}${KG}`,Mpe=`\\n+${jG}${XG}`,Lpe=`${ZG}(?:${Ope})*`,Fpe=`${eH}(?:${Mpe})*`,lKe=new RegExp(`^(?:${Lpe})$`,"u"),uKe=new RegExp(`^(?:${Fpe})$`,"u"),dKe=new RegExp(`^(?:${kpe})$`,"u"),AKe=new RegExp(`^(?:${Dpe})$`,"u"),pKe=new RegExp(`^(?:${JG})*$`,"u"),fKe=new RegExp(`^(?:${JG}|\\n)*$`,"u"),hKe=new RegExp(`^(?:${$G}|\\n)*$`,"u");var Upe={indent:2,seqNoIndent:!1,seqInlineFirst:!0,lineWidth:80,flowBracketPadding:!1,flowSkipCommaSpace:!1,flowSkipColonSpace:!1,quoteFlowKeys:!1,quoteStyle:"single",forceQuotes:!1,scalarStyleRules:Object.keys(xG).map(t=>Reflect.get(xG,t)),tagBeforeAnchor:!1};var mKe={...Upe,schema:_Ae,skipInvalid:!1,noRefs:!1,flowLevel:-1,sortKeys:!1,transform:o(()=>{},"transform")};var gKe=wt.DOCUMENT,EKe=wt.SEQUENCE,yKe=wt.MAPPING,CKe=wt.SCALAR,IKe=wt.ALIAS,BKe=wt.POP,bKe=Be.PLAIN,wKe=Be.SINGLE_QUOTED,SKe=Be.DOUBLE_QUOTED,NKe=Be.LITERAL_BLOCK,xKe=Be.FOLDED_BLOCK,QKe=nc.BLOCK,RKe=nc.FLOW,TKe=Fn.CLIP,vKe=Fn.STRIP,_Ke=Fn.KEEP;var rH=w(require("os"),1);function ta(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(ta,"toCommandValue");function Dx(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}o(Dx,"toCommandProperties");function ra(t,e,r){let n=new Ox(t,e,r);process.stdout.write(n.toString()+rH.EOL)}o(ra,"issueCommand");function Mx(t,e=""){ra(t,{},e)}o(Mx,"issue");var tH="::",Ox=class{static{o(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=tH+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let s=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${Hpe(s)}`)}}return e+=`${tH}${Gpe(this.message)}`,e}};function Gpe(t){return ta(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(Gpe,"escapeData");function Hpe(t){return ta(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(Hpe,"escapeProperty");var nH=w(require("crypto"),1),$E=w(require("fs"),1),zE=w(require("os"),1);function JE(t,e){let r=process.env[`GITHUB_${t}`];if(!r)throw new Error(`Unable to find environment variable for file command ${t}`);if(!$E.existsSync(r))throw new Error(`Missing file at path: ${r}`);$E.appendFileSync(r,`${ta(e)}${zE.EOL}`,{encoding:"utf8"})}o(JE,"issueFileCommand");function Lx(t,e){let r=`ghadelimiter_${nH.randomUUID()}`,n=ta(e);if(t.includes(r))throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`);if(n.includes(r))throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`);return`${t}<<${r}${zE.EOL}${n}${zE.EOL}${r}`}o(Lx,"prepareKeyValueMessage");var xv=w(require("os"),1),r4=w(require("path"),1);var Ph=w(require("http"),1),fv=w(require("https"),1);function Fx(t){let e=t.protocol==="https:";if(Vpe(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HT
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}o(Xl,"getBooleanInput");function Fh(t,e){if(process.env.GITHUB_OUTPUT||"")return JE("OUTPUT",Lx(t,e));process.stdout.write(xv.EOL),ra("set-output",{name:t},ta(e))}o(Fh,"setOutput");function n4(t){process.exitCode=Nv.Failure,CA(t)}o(n4,"setFailed");function Ca(){return process.env.RUNNER_DEBUG==="1"}o(Ca,"isDebug");function B(t){ra("debug",{},t)}o(B,"debug");function CA(t,e={}){ra("error",Dx(e),t instanceof Error?t.toString():t)}o(CA,"error");function We(t,e={}){ra("warning",Dx(e),t instanceof Error?t.toString():t)}o(We,"warning");function S(t){process.stdout.write(t+xv.EOL)}o(S,"info");function BNe(t){Mx("group",t)}o(BNe,"startGroup");function bNe(){Mx("endgroup")}o(bNe,"endGroup");function ot(t,e){return INe(this,void 0,void 0,function*(){BNe(t);let r;try{r=yield e()}finally{bNe()}return r})}o(ot,"group");function En(t,e){if(process.env.GITHUB_STATE||"")return JE("STATE",Lx(t,e));ra("save-state",{name:t},ta(e))}o(En,"saveState");function s4(t){return process.env[`STATE_${t}`]||""}o(s4,"getState");var e0=w(require("fs"),1),M1=w(require("os"),1),L1=w(require("path"),1);var o4=w(require("os"),1);function Uh(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(Uh,"toCommandValue");function a4(t,e,r){let n=new Qv(t,e,r);process.stdout.write(n.toString()+o4.EOL)}o(a4,"issueCommand");var i4="::",Qv=class{static{o(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=i4+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let s=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${SNe(s)}`)}}return e+=`${i4}${wNe(this.message)}`,e}};function wNe(t){return Uh(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(wNe,"escapeData");function SNe(t){return Uh(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(SNe,"escapeProperty");var d4=w(require("os"),1);var l4=require("os"),qh=require("fs");var Rv=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},{access:NNe,appendFile:xNe,writeFile:QNe}=qh.promises,c4="GITHUB_STEP_SUMMARY";var Tv=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return Rv(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[c4];if(!e)throw new Error(`Unable to find environment variable for $${c4}. Check if your runtime environment supports job summaries.`);try{yield NNe(e,qh.constants.R_OK|qh.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let s=Object.entries(n).map(([i,a])=>` ${i}="${a}"`).join("");return r?`<${e}${s}>${r}</${e}>`:`<${e}${s}>`}write(e){return Rv(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?QNe:xNe)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return Rv(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(l4.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),s=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(s).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",s=e.map(a=>this.wrap("li",a)).join(""),i=this.wrap(n,s);return this.addRaw(i).addEOL()}addTable(e){let r=e.map(s=>{let i=s.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:
`),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 tm(i));return n.searchPaths.push(...d_(n.patterns)),n})}static stat(e,r,n){return g_(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield NA.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){Qs(`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 NA.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield NA.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(a=>a===i)){Qs(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};var gTe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function H8(t,e){return gTe(this,void 0,void 0,function*(){return yield pI.create(t,e)})}o(H8,"create");var TI=w(require("crypto"),1),TA=w(require("fs"),1),nu=w(require("path"),1),O6=w(k6(),1),M6=w(require("util"),1);var cm;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(cm||(cm={}));var Xr;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Xr||(Xr={}));var Zn;(function(t){t.GNU="gnu",t.BSD="bsd"})(Zn||(Zn={}));var xI=2,QI=5e3,L_=5e3,F_=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,D6=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,lm="cache.tar",U_="manifest.txt",wot=10*Math.pow(1024,3),RI="cache read denied:";var RA=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},wPe=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(a){return new Promise(function(c,l){a=t[i](a),s(c,l,a.done,a.value)})}}function s(i,a,c,l){Promise.resolve(l).then(function(u){i({value:u,done:c})},a)}},SPe="1.0";function um(){return RA(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let n;t?n=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?n="/Users":n="/home",e=nu.join(n,"actions","temp")}let r=nu.join(e,TI.randomUUID());return yield ya(r),r})}o(um,"createTempDirectory");function Xi(t){return TA.statSync(t).size}o(Xi,"getArchiveFileSizeInBytes");function q_(t){return RA(this,void 0,void 0,function*(){var e,r,n,s,i;let a=[],c=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),l=yield H8(t.join(`
`),{implicitDescendants:!1});try{for(var u=!0,d=wPe(l.globGenerator()),A;A=yield d.next(),e=A.done,!e;u=!0){s=A.value,u=!1;let f=nu.relative(c,s).replace(new RegExp(`\\${nu.sep}`,"g"),"/");B(`Matched: ${f}`),f===""?a.push("."):a.push(`${f}`)}}catch(p){r={error:p}}finally{try{!u&&!e&&(n=d.return)&&(yield n.call(d))}finally{if(r)throw r.error}}return a})}o(q_,"resolvePaths");function dm(t){return RA(this,void 0,void 0,function*(){return M6.promisify(TA.unlink)(t)})}o(dm,"unlinkFile");function L6(t){return RA(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),B(`Checking ${e} ${r.join(" ")}`);try{yield Kn(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:o(s=>n+=s.toString(),"stdout"),stderr:o(s=>n+=s.toString(),"stderr")}})}catch(s){B(s.message)}return n=n.trim(),B(n),n})}o(L6,"getVersion");function Am(){return RA(this,void 0,void 0,function*(){let t=yield L6("zstd",["--quiet"]),e=O6.clean(t);return B(`zstd version: ${e}`),t===""?Xr.Gzip:Xr.ZstdWithoutLong})}o(Am,"getCompressionMethod");function Tc(t){return t===Xr.Gzip?cm.Gzip:cm.Zstd}o(Tc,"getCacheFileName");function F6(){return RA(this,void 0,void 0,function*(){return TA.existsSync(F_)?F_:(yield L6("tar")).toLowerCase().includes("gnu tar")?Ir("tar"):""})}o(F6,"getGnuTarPathOnWindows");function G_(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o(G_,"assertDefined");function vA(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(SPe),TI.createHash("sha256").update(n.join("|")).digest("hex")}o(vA,"getCacheVersion");function U6(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(U6,"getRuntimeToken");var fm=w(require("http"),1),z_=w(require("https"),1);function H_(t){let e=t.protocol==="https:";if(NPe(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new _I(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new _I(`http://${r}`)}else return}o(H_,"getProxyUrl");function NPe(t){if(!t.hostname)return!1;let e=t.hostname;if(xPe(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let s=[t.hostname.toUpperCase()];typeof n=="number"&&s.push(`${s[0]}:${n}`);for(let i of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(i==="*"||s.some(a=>a===i||a.endsWith(`.${i}`)||i.startsWith(".")&&a.endsWith(`${i}`)))return!0;return!1}o(NPe,"checkBypass");function xPe(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}o(xPe,"isLoopbackAddress");var _I=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var vc=w(vf(),1),q6=w(gA(),1);var Lt=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},Nt;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.No
${GPe.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function LI(t){return t instanceof en?!0:iu(t)&&t.name==="RestError"}o(LI,"isRestError");function yn(t,e){return Buffer.from(t,e)}o(yn,"stringToUint8Array");var FI=w(require("node:http"),1),UI=w(require("node:https"),1),tP=w(require("node:zlib"),1),iK=require("node:stream");var vs=hm("ts-http-runtime");var HPe={};function mm(t){return t&&typeof t.pipe=="function"}o(mm,"isReadableStream");function sK(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=o(()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)},"handler");t.on("close",r),t.on("end",r),t.on("error",r)})}o(sK,"isStreamComplete");function oK(t){return t&&typeof t.byteLength=="number"}o(oK,"isArrayBuffer");var qI=class extends iK.Transform{static{o(this,"ReportTransform")}loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(s){n(s)}}constructor(e){super(),this.progressCallback=e}},rP=class{static{o(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new eo("The operation was aborted. Request has already been canceled.");n=o(u=>{u.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let u=new Ei;vs.info(`request to '${u.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),a=i?.includes("gzip")||i?.includes("deflate"),c=typeof e.body=="function"?e.body():e.body;if(c&&!e.headers.has("Content-Length")){let u=JPe(c);u!==null&&e.headers.set("Content-Length",u)}let l;try{if(c&&e.onUploadProgress){let h=e.onUploadProgress,g=new qI(h);g.on("error",y=>{vs.error("Error in upload progress",y)}),mm(c)?c.pipe(g):g.end(c),c=g}let u=await this.makeRequest(e,r,c);s!==void 0&&clearTimeout(s);let d=VPe(u),p={status:u.statusCode??0,headers:d,request:e};if(e.method==="HEAD")return u.resume(),p;l=a?zPe(u,d):u;let f=e.onDownloadProgress;if(f){let h=new qI(f);h.on("error",g=>{vs.error("Error in download progress",g)}),l.pipe(h),l=h}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(p.status)?p.readableStreamBody=l:p.bodyAsText=await $Pe(l),p}finally{if(e.abortSignal&&n){let u=Promise.resolve();mm(c)&&(u=sK(c));let d=Promise.resolve();mm(l)&&(d=sK(l)),Promise.all([u,d]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(A=>{vs.warning("Error when cleaning up abortListener on httpRequest",A)})}}}makeRequest(e,r,n){let s=new URL(e.url),i=s.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let c={agent:e.agent??this.getOrCreateAgent(e,i),hostname:s.hostname,path:`${s.pathname}${s.search}`,port:s.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((l,u)=>{let d=i?FI.default.request(c,l):UI.default.request(c,l);d.once("error",A=>{u(new en(A.message,{code:A.code??en.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let A=new eo("The operation was aborted. Rejecting from abort signal callback while making request.");d.destroy(A),u(A)}),n&&mm(n)?n.pipe(d):n?typeof n=="string"||Buffer.isBuffer(n)?d.end(n):oK(n)?d.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(vs.error("Unrecognized body type",n),u(new en("Unrecognized body type"))):d.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?FI.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new FI.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return UI.default.globalAgent;let s=e.tlsSettings??HPe,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(vs.info("No cached TLS Agent exist, creat
`;return e}o(wDe,"encodeHeaders");function SDe(t){return t instanceof Uint8Array?t.byteLength:dB(t)?t.size===-1?void 0:t.size:void 0}o(SDe,"getLength");function NDe(t){let e=0;for(let r of t){let n=SDe(r);if(n===void 0)return;e+=n}return e}o(NDe,"getTotalLength");async function xDe(t,e,r){let n=[yn(`--${r}`,"utf-8"),...e.flatMap(i=>[yn(`\r
`,"utf-8"),yn(wDe(i.headers),"utf-8"),yn(`\r
`,"utf-8"),i.body,yn(`\r
--${r}`,"utf-8")]),yn(`--\r
\r
`,"utf-8")],s=NDe(n);s&&t.headers.set("Content-Length",s),t.body=await uX(n)}o(xDe,"buildRequestBody");var ym="multipartPolicy",QDe=70,RDe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function TDe(t){if(t.length>QDe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!RDe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}o(TDe,"assertValidBoundary");function pB(){return{name:ym,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,i,a]=s;if(a&&r&&a!==r)throw new Error(`Multipart boundary was specified as ${a} in the header, but got ${r} in the request body`);return r??=a,r?TDe(r):r=bDe(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await xDe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}o(pB,"multipartPolicy");function fB(){return MI()}o(fB,"createEmptyPipeline");var dX=kI({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),Bdt=dX.logger;function no(t){return dX.createClientLogger(t)}o(no,"createClientLogger");var so=no("core-rest-pipeline");function IP(t={}){return HI({logger:so.info,...t})}o(IP,"logPolicy");var BP=VI;function bP(t={}){return zI(t)}o(bP,"redirectPolicy");var hB=w(require("node:os"),1),mB=w(require("node:process"),1);function AX(){return"User-Agent"}o(AX,"getHeaderName");async function pX(t){if(mB.default&&mB.default.versions){let e=`${hB.default.type()} ${hB.default.release()}; ${hB.default.arch()}`,r=mB.default.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}o(pX,"setPlatformSpecificData");var gB="1.22.2";function LDe(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}o(LDe,"getUserAgentString");function fX(){return AX()}o(fX,"getUserAgentHeaderName");async function EB(t){let e=new Map;e.set("core-rest-pipeline",gB),await pX(e);let r=LDe(e);return t?`${t} ${r}`:r}o(EB,"getUserAgentValue");var hX=fX(),mX="userAgentPolicy";function wP(t={}){let e=EB(t.userAgentPrefix);return{name:mX,async sendRequest(r,n){return r.headers.has(hX)||r.headers.set(hX,await e),n(r)}}}o(wP,"userAgentPolicy");var ss=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function SP(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,a)=>{function c(){a(new ss(s??"The operation was aborted."))}o(c,"rejectOnAbort");function l(){n?.removeEventListener("abort",u)}o(l,"removeListeners");function u(){r?.(),l(),c()}if(o(u,"onAbort"),n?.aborted)return c();try{t(d=>{l(),i(d)},d=>{l(),a(d)})}catch(d){a(d)}n?.addEventListener("abort",u)})}o(SP,"createAbortablePromise");var HDe="The delay was aborted.";function Cm(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return SP(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:s??HDe})}o(Cm,"delay");function Pc(t){if(iu(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}o(Pc,"getErrorMessage");function gX(t){return iu(t)}o(gX,"isError");function UA(){return su()}o(UA,"randomUUID");var Fe=cu;var EX=Symbol("rawContent");function xP(t){return typeof t[EX]=="function"}o(xP,"hasRawContent");function yX(t){return xP(t)?t[EX]():t}o(yX,"getRawContent");var yB=ym;function QP(){let t=pB();return{name:yB,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)xP(n.body)&&(n.body=yX(n.body));return t.sendRequest(e,r)},"sendRequest")}}o(QP,"multipartPolicy");var RP=$I;function TP(){return JI()}o(TP,"decompressResponsePolicy");function vP(t={}){return jI(t
`&&t[i]!=="\r";i++)l+=t[i];if(l=l.trim(),l[l.length-1]==="/"&&(l=l.substring(0,l.length-1),i--),!pMe(l)){let A;return l.trim().length===0?A="Invalid space after '<'.":A="Tag '"+l+"' is an invalid name.",Ft("InvalidTag",A,tn(t,i))}let u=cMe(t,i);if(u===!1)return Ft("InvalidAttr","Attributes for '"+l+"' have open quote.",tn(t,i));let d=u.value;if(i=u.index,d[d.length-1]==="/"){let A=i-d.length;d=d.substring(0,d.length-1);let p=sZ(d,e);if(p===!0)n=!0;else return Ft(p.err.code,p.err.msg,tn(t,A+p.err.line))}else if(c)if(u.tagClosed){if(d.trim().length>0)return Ft("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",tn(t,a));if(r.length===0)return Ft("InvalidTag","Closing tag '"+l+"' has not been opened.",tn(t,a));{let A=r.pop();if(l!==A.tagName){let p=tn(t,A.tagStartPos);return Ft("InvalidTag","Expected closing tag '"+A.tagName+"' (opened in line "+p.line+", col "+p.col+") instead of closing tag '"+l+"'.",tn(t,a))}r.length==0&&(s=!0)}}else return Ft("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",tn(t,i));else{let A=sZ(d,e);if(A!==!0)return Ft(A.err.code,A.err.msg,tn(t,i-d.length+A.err.line));if(s===!0)return Ft("InvalidXml","Multiple possible root nodes found.",tn(t,i));e.unpairedTags.indexOf(l)!==-1||r.push({tagName:l,tagStartPos:a}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=nZ(t,i);continue}else if(t[i+1]==="?"){if(i=rZ(t,++i),i.err)return i}else break;else if(t[i]==="&"){let A=dMe(t,i);if(A==-1)return Ft("InvalidChar","char '&' is not expected.",tn(t,i));i=A}else if(s===!0&&!tZ(t[i]))return Ft("InvalidXml","Extra text at the end",tn(t,i));t[i]==="<"&&i--}}else{if(tZ(t[i]))continue;return Ft("InvalidChar","char '"+t[i]+"' is not expected.",tn(t,i))}if(n){if(r.length==1)return Ft("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",tn(t,r[0].tagStartPos));if(r.length>0)return Ft("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Ft("InvalidXml","Start tag expected.",1);return!0}o(_B,"validate");function tZ(t){return t===" "||t===" "||t===`
`||t==="\r"}o(tZ,"isWhiteSpace");function rZ(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let n=t.substr(r,e-r);if(e>5&&n==="xml")return Ft("InvalidXml","XML declaration allowed only at the start of the document.",tn(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}o(rZ,"readPI");function nZ(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}o(nZ,"readCommentAndCDATA");var oMe='"',aMe="'";function cMe(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===oMe||t[e]===aMe)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){s=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:s}}o(cMe,"readAttributeStr");var lMe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function sZ(t,e){let r=TB(t,lMe),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Ft("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",_m(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Ft("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",_m(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Ft("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",_m(r[s]));let i=r[s][2];if(!AMe(i))return Ft("InvalidAttr","Attribute '"+i+"' is an invalid name.",_m(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return Ft("InvalidAttr","Attribute '"+i+"' is repeated.",_m(r[s]))}return!0}o(sZ,"validateAttributeString");function uMe(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}o(uMe,"validateNumberAmpersand");function dMe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,uMe(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}o(dMe,"validateAmpersand");function Ft(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}o(Ft,"getErrorObject");function AMe(t){return tk(t)}o(AMe,"validateAttrName");function pMe(t){return tk(t)}o(pMe,"validateTagName");function tn(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}o(tn,"getLineNumberForPosition");function _m(t){return t.startIndex+t[1].length}o(_m,"getPositionFromMatch");var iZ={amp:"&",AMP:"&",lt:"<",LT:"<",gt:">",GT:">",quot:'"',QUOT:'"',apos:"'",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",lsquor:"\u201A",rsquor:"\u2019",ldquor:"\u201E",bdquo:"\u201E",comma:",",period:".",colon:":",semi:";",excl:"!",quest:"?",num:"#",dollar:"$",percent:"%",amp:"&",ast:"*",commat:"@",lowbar:"_",verbar:"|",vert:"|",sol:"/",bsol:"\\",lbrace:"{",rbrace:"}",lbrack:"[",rbrack:"]",lpar:"(",rpar:")",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",COPY:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",REG:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",half:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",div:"\xF7",divide:"\xF7"},oZ={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntilde:"\xF1"
`);let e=new bn("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,i=new Dm(s.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let u=t.charCodeAt(c+1);if(u===47){let d=$A(t,">",c,"Closing Tag is not closed."),A=t.substring(c+2,d).trim();if(s.removeNSPrefix){let f=A.indexOf(":");f!==-1&&(A=A.substr(f+1))}A=lk(s.transformTagName,A,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let p=this.matcher.getCurrentTag();if(A&&s.unpairedTagsSet.has(A))throw new Error(`Unpaired tag can not be used as closing tag: </${A}>`);p&&s.unpairedTagsSet.has(p)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",c=d}else if(u===63){let d=uk(t,c,!1,"?>");if(!d)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let A=this.buildAttributesMap(d.tagExp,this.matcher,d.tagName,!0);if(A){let p=A[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(p)||1),i.setXmlVersion(Number(p)||1)}if(!(s.ignoreDeclaration&&d.tagName==="?xml"||s.ignorePiTags)){let p=new bn(d.tagName);p.add(s.textNodeName,""),d.tagName!==d.tagExp&&d.attrExpPresent&&s.ignoreAttributes!==!0&&(p[":@"]=A),this.addChild(r,p,this.readonlyMatcher,c)}c=d.closeIndex+1}else if(u===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let d=$A(t,"-->",c+4,"Comment is not closed.");if(s.commentPropName){let A=t.substring(c+4,d-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:A}])}c=d}else if(u===33&&t.charCodeAt(c+2)===68){let d=i.readDocType(t,c);this.entityDecoder.addInputEntities(d.entities),c=d.i}else if(u===33&&t.charCodeAt(c+2)===91){let d=$A(t,"]]>",c,"CDATA is not closed.")-2,A=t.substring(c+9,d);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let p=this.parseTextData(A,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);p==null&&(p=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:A}]):r.add(s.textNodeName,p),c=d+2}else{let d=uk(t,c,s.removeNSPrefix);if(!d){let Q=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${Q}"`)}let A=d.tagName,p=d.rawTagName,f=d.tagExp,h=d.attrExpPresent,g=d.closeIndex;if({tagName:A,tagExp:f}=lk(s.transformTagName,A,f,s),s.strictReservedNames&&(A===s.commentPropName||A===s.cdataPropName||A===s.textNodeName||A===s.attributesGroupName))throw new Error(`Invalid tag name: ${A}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let y=r;y&&s.unpairedTagsSet.has(y.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let E=!1;f.length>0&&f.lastIndexOf("/")===f.length-1&&(E=!0,A[A.length-1]==="/"?(A=A.substr(0,A.length-1),f=A):f=f.substr(0,f.length-1),h=A!==f);let C=null,I={},b;b=OMe(p),A!==e.tagname&&this.matcher.push(A,{},b),A!==f&&h&&(C=this.buildAttributesMap(f,this.matcher,A),C&&(I=DMe(C,s))),A!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=c;if(this.isCurrentNodeStopNode){let Q="";if(E)c=d.closeIndex;else if(s.unpairedTagsSet.has(A))c=d.closeIndex;else{let ce=this.readStopNodeData(t,p,g+1);if(!ce)throw new Error(`Unexpected end of ${p}`);c=ce.i,Q=ce.tagContent}let D=new bn(A);C&&(D[":@"]=C),D.add(s.textNodeName,Q),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,D,this.readonlyMatcher,N)}else{if(E){({tagName:A,tagExp:f}=lk(s.transformTagName,A,f,s));let Q=new bn(A);C&&(Q[":@"]=C),this.addChild(r,Q,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(A)){let Q=new bn(A);C&&(Q[":@"]=C),this.addChild(r,Q,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=d.closeIndex;continue}else{let Q=new bn(A);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(Q[":@"]=C),this.addChild(r,Q,this.readonlyMatcher,N),r=Q}n="",c=g}}}else n+=t[c];return e.child},"parse
`;function eLe(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(mk(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}o(eLe,"detectXmlVersionFromArray");function xZ(t,e,r,n,s){return!r.sanitizeName||pu(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}o(xZ,"resolveTagName");function hk(t,e){let r="";e.format&&(r=ZMe);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let a=0;a<e.stopNodes.length;a++){let c=e.stopNodes[a];typeof c=="string"?n.push(new as(c)):c instanceof as&&n.push(c)}let s=eLe(t,e),i=new ao;return QZ(t,e,r,i,n,s)}o(hk,"toXml");function QZ(t,e,r,n,s,i){let a="",c=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let l=t.toString();return l=fk(l,e),l}return""}for(let l=0;l<t.length;l++){let u=t[l],d=mk(u);if(d===void 0)continue;let p=d===e.textNodeName||d===e.cdataPropName||d===e.commentPropName||d[0]==="?"?d:xZ(d,!1,e,n,i),f=tLe(u[":@"],e);n.push(p,f);let h=nLe(n,s);if(p===e.textNodeName){let I=u[d];h||(I=e.tagValueProcessor(p,I),I=fk(I,e)),c&&(a+=r),a+=I,c=!1,n.pop();continue}else if(p===e.cdataPropName){c&&(a+=r);let I=u[d][0][e.textNodeName],b=MB(I);a+=`<![CDATA[${b}]]>`,c=!1,n.pop();continue}else if(p===e.commentPropName){let I=u[d][0][e.textNodeName],b=OB(I);a+=r+`<!--${b}-->`,c=!0,n.pop();continue}else if(p[0]==="?"){let I=NZ(u[":@"],e,h,n,i);a+=(p==="?xml"?"":r)+`<${p}${I}?>`,c=!0,n.pop();continue}let g=r;g!==""&&(g+=e.indentBy);let y=NZ(u[":@"],e,h,n,i),E=r+`<${p}${y}`,C;h?C=RZ(u[d],e):C=QZ(u[d],e,g,n,s,i),e.unpairedTags.indexOf(p)!==-1?e.suppressUnpairedNode?a+=E+">":a+=E+"/>":(!C||C.length===0)&&e.suppressEmptyNode?a+=E+"/>":C&&C.endsWith(">")?a+=E+`>${C}${r}</${p}>`:(a+=E+">",C&&r!==""&&(C.includes("/>")||C.includes("</"))?a+=r+e.indentBy+C+r:a+=C,a+=`</${p}>`),c=!0,n.pop()}return a}o(QZ,"arrToStr");function tLe(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=s.startsWith(e.attributeNamePrefix)?s.substr(e.attributeNamePrefix.length):s;r[i]=Mc(t[s]),n=!0}return n?r:null}o(tLe,"extractAttributeValues");function RZ(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n<t.length;n++){let s=t[n],i=mk(s);if(i===e.textNodeName)r+=s[i];else if(i===e.cdataPropName)r+=s[i][0][e.textNodeName];else if(i===e.commentPropName)r+=s[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let a=rLe(s[":@"],e),c=RZ(s[i],e);!c||c.length===0?r+=`<${i}${a}/>`:r+=`<${i}${a}>${c}</${i}>`}}}return r}o(RZ,"getRawContent");function rLe(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=t[n];s===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${Mc(s)}"`}return r}o(rLe,"attr_to_str_raw");function mk(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let n=e[r];if(Object.prototype.hasOwnProperty.call(t,n)&&n!==":@")return n}}o(mk,"propName");function NZ(t,e,r,n,s){let i="";if(t&&!e.ignoreAttributes)for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a))continue;let c=a.substr(e.attributeNamePrefix.length),l=r?c:xZ(c,!0,e,n,s),u;r?u=t[a]:(u=e.attributeValueProcessor(a,t[a]),u=fk(u,e)),u===!0&&e.suppressBooleanAttributes?i+=` ${l}`:i+=` ${l}="${Mc(u)}"`}return i}o(NZ,"attr_to_str");function nLe(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++)if(t.matches(e[r]))return!0;return!1}o(nLe,"checkStopNode");function fk(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let n=e.entities[r];t=t.replace(n.regex,n.val)}return t}o(fk,"replaceEntitiesValue");function gk(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}o(gk,"getIgnoreAttributesFn");var sLe={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}o(Sn,"Builder");function iLe(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let s=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(s)return s}let n=r[e.attributeNamePrefix+"version"];if(n)return n}return"1.0"}o(iLe,"detectXmlVersionFromObj");function Ek(t,e,r,n,s){return!r.sanitizeName||pu(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}o(Ek,"resolveTagName");Sn.prototype.build=function(t){if(this.options.preserveOrder)return hk(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new ao,r=iLe(t,this.options);return this.j2x(t,0,e,r).val}};Sn.prototype.j2x=function(t,e,r,n){let s="",i="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let a=this.options.jPath?r.toString():r,c=this.checkStopNode(r);for(let l in t){if(!Object.prototype.hasOwnProperty.call(t,l))continue;let d=l===this.options.textNodeName||l===this.options.cdataPropName||l===this.options.commentPropName||this.options.attributesGroupName&&l===this.options.attributesGroupName||this.isAttribute(l)||l[0]==="?"?l:Ek(l,!1,this.options,r,n);if(typeof t[l]>"u")this.isAttribute(l)&&(i+="");else if(t[l]===null)this.isAttribute(l)||d===this.options.cdataPropName||d===this.options.commentPropName?i+="":d[0]==="?"?i+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(t[l]instanceof Date)i+=this.buildTextValNode(t[l],d,"",e,r);else if(typeof t[l]!="object"){let A=this.isAttribute(l);if(A&&!this.ignoreAttributesFn(A,a)){let p=Ek(A,!0,this.options,r,n);s+=this.buildAttrPairStr(p,""+t[l],c)}else if(!A)if(l===this.options.textNodeName){let p=this.options.tagValueProcessor(l,""+t[l]);i+=this.replaceEntitiesValue(p)}else{r.push(d);let p=this.checkStopNode(r);if(r.pop(),p){let f=""+t[l];f===""?i+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:i+=this.indentate(e)+"<"+d+">"+f+"</"+d+this.tagEndChar}else i+=this.buildTextValNode(t[l],d,"",e,r)}}else if(Array.isArray(t[l])){let A=t[l].length,p="",f="";for(let h=0;h<A;h++){let g=t[l][h];if(!(typeof g>"u"))if(g===null)d[0]==="?"?i+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(typeof g=="object")if(this.options.oneListGroup){r.push(d);let y=this.j2x(g,e+1,r,n);r.pop(),p+=y.val,this.options.attributesGroupName&&g.hasOwnProperty(this.options.attributesGroupName)&&(f+=y.attrStr)}else p+=this.processTextOrObjNode(g,d,e,r,n);else if(this.options.oneListGroup){let y=this.options.tagValueProcessor(d,g);y=this.replaceEntitiesValue(y),p+=y}else{r.push(d);let y=this.checkStopNode(r);if(r.pop(),y){let E=""+g;E===""?p+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:p+=this.indentate(e)+"<"+d+">"+E+"</"+d+this.tagEndChar}else p+=this.buildTextValNode(g,d,"",e,r)}}this.options.oneListGroup&&(p=this.buildObjectNode(p,d,f,e)),i+=p}else if(this.options.attributesGroupName&&l===this.options.attributesGroupName){let A=Object.keys(t[l]),p=A.length;for(let f=0;f<p;f++){let h=Ek(A[f],!0,this.options,r,n);s+=this.buildAttrPairStr(h,""+t[l][A[f]],c)}}else i+=this.processTextOrObjNode(t[l],d,e,r,n)}return{attrStr:s,val:i}};Sn.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+Mc(e)+'"'};function oLe(t,e,r,n,s){let i=this.extractAttributes(t);if(n.push(e,i),this.checkStopNode(n)){let l=this.buildRawContent(t),u=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(l,e,u,r)}let c=this.j2x(t,r+1,n,s);return n.pop(),e[0]==="?"?this.buildTextValNode("",e,c.attrStr,r,n):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,c.attrStr,r,n):this.buildObjectNode(c.val,e,c.attrStr,r)}o(oLe,"process
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(ae.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===ae.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(ae.PREFIX_FOR_STORAGE));r.sort((s,i)=>YB(s.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((s,i,a)=>!(i>0&&s.name.toLowerCase()===a[i-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=zB(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=$B(e.url),i={};if(s){let a=[];for(let c in s)if(Object.prototype.hasOwnProperty.call(s,c)){let l=c.toLowerCase();i[l]=s[c],a.push(l)}a.sort();for(let c of a)n+=`
${c}:${decodeURIComponent(i[c])}`}return n}};var xt=class extends mu{static{o(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new Um(e,r,this)}computeHMACSHA256(e){return(0,MZ.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var rr=no("storage-common");var Ds;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Ds||(Ds={}));var Fc={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Ds.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},hLe=new ss("The operation was aborted."),qm=class extends co{static{o(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,n=Fc){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:Fc.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):Fc.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:Fc.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:Fc.maxRetryDelayInMs):Fc.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:Fc.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:Fc.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let s=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;i||(s.url=VB(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=Lc(s.url,Ra.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(rr.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,a))return a;r=r||!i&&a.status===404}catch(c){if(rr.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(i,n,a,c))throw c}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return rr.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let a of i)if(s.name.toUpperCase().includes(a)||s.message.toUpperCase().includes(a)||s.code&&s.code.toString().toUpperCase()===a)return rr.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(n||s){let a=n?n.status:s?s.statusCode:0;if(!e&&a===404)return rr.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return rr.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(n&&n?.status>=400){let a=n.headers.get(ae.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(rr.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let s=0;if(e)switch(this.retryOptions.retryPolicyType){case Ds.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Ds.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return rr.info(`RetryPolicy: Delay for ${s}ms`),JB(s,n,hLe)}};var Gm=class{static{o(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new qm(e,r,this.retryOptions)}};var mLe="storageBrowserPolicy";function LZ(){return{name:mLe,async sendRequest(t,e){return Fe||((t.method==="GET"||t.method==="HEAD")&&(t.url=Lc(t.url,Ra.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(ae.COOKIE),t.headers.delete(ae.CONTENT_LENGTH)),e(t)}}}o(LZ,"storageBrowserPolicy");var gLe="StorageCorrectContentLengthPolicy";function FZ(){function t(e){e.body&&(type
`)+`
`+n(i)+s(i),c=(0,qZ.createHmac)("sha256",t.accountKey).update(a,"utf8").digest("base64");i.headers.set(ae.AUTHORIZATION,`SharedKey ${t.accountName}:${c}`)}o(e,"signRequest");function r(i,a){let c=i.headers.get(a);return!c||a===ae.CONTENT_LENGTH&&c==="0"?"":c}o(r,"getHeaderValueToSign");function n(i){let a=[];for(let[l,u]of i.headers)l.toLowerCase().startsWith(ae.PREFIX_FOR_STORAGE)&&a.push({name:l,value:u});a.sort((l,u)=>YB(l.name.toLowerCase(),u.name.toLowerCase())),a=a.filter((l,u,d)=>!(u>0&&l.name.toLowerCase()===d[u-1].name.toLowerCase()));let c="";return a.forEach(l=>{c+=`${l.name.toLowerCase().trimRight()}:${l.value.trimLeft()}
`}),c}o(n,"getCanonicalizedHeadersString");function s(i){let a=zB(i.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=$B(i.url),u={};if(l){let d=[];for(let A in l)if(Object.prototype.hasOwnProperty.call(l,A)){let p=A.toLowerCase();u[p]=l[A],d.push(p)}d.sort();for(let A of d)c+=`
${A}:${decodeURIComponent(u[A])}`}return c}return o(s,"getCanonicalizedResourceString"),{name:ILe,async sendRequest(i,a){return e(i),a(i)}}}o(bk,"storageSharedKeyCredentialPolicy");var BLe="storageRequestFailureDetailsParserPolicy";function GZ(){return{name:BLe,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
`),r}}}}o(GZ,"storageRequestFailureDetailsParserPolicy");var HZ=require("node:crypto");var WB=class{static{o(this,"UserDelegationKeyCredential")}accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,HZ.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var jB="12.31.0",KB="2026-02-06";var XB="https://storage.azure.com/.default",Ta={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var yi="",wk="*",bLe=1*1024*1024;var wLe=4*bLe;var VZ="AES256",zZ="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",$Z=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"],JZ=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"],YZ="BlobUsesCustomerSpecifiedEncryption",WZ="BlobDoesNotUseCustomerSpecifiedEncryption",jZ=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function va(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}o(va,"isPipelineLike");var Hm=class{static{o(this,"Pipeline")}factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Ut(t,e={}){t||(t=new ht);let r=new Hm([],e);return r._credential=t,r}o(Ut,"newPipeline");function SLe(t){let e=[NLe,KZ,xLe,QLe,RLe,TLe,_Le];if(t.fac
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new wi(t.version,i,n,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),stringToSign:s}}o(SFe,"generateBlobSASQueryParameters20150405");function NFe(t,e){if(t=Su(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");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=No.parse(t.permissions.toString()).toString():s=xo.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ue(t.startsOn,!1):"",t.expiresOn?Ue(t.expiresOn,!1):"",wu(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?bi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new wi(t.version,a,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),stringToSign:i}}o(NFe,"generateBlobSASQueryParameters20181109");function xFe(t,e){if(t=Su(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");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=No.parse(t.permissions.toString()).toString():s=xo.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ue(t.startsOn,!1):"",t.expiresOn?Ue(t.expiresOn,!1):"",wu(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?bi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new wi(t.version,a,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,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}o(xFe,"generateBlobSASQueryParameters20201206");function QFe(t,e){if(t=Su(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=No.parse(t.permissions.toString()).toString():s=xo.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ue(t.startsOn,!1):"",t.expiresOn?Ue(t.expiresOn,!1):"",wu(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ue(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ue(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?bi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new wi(t.version,a,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),stringToSign:i}}o(QFe,"generateBlobSASQueryParametersUDK20181109");function RFe(t,e){if(t=Su(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=No.parse(t.permissions.toString()).toString():s=xo.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ue(t.startsOn,!1):"",t.expiresOn?Ue(t.expiresOn,!1):"",wu(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ue(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ue(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?bi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new wi(t.version,a,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),stringToSign:i}}o(RFe,"generateBlobSASQueryParametersUDK20200210");function TFe(t,e){if(t=Su(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=No.parse(t.permissions.toString()).toString():s=xo.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ue(t.startsOn,!1):"",t.expiresOn?Ue(t.expiresOn,!1):"",wu(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ue(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ue(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?bi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new wi(t.version,a,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}}o(TFe,"generateBlobSASQueryParametersUDK20201206");function vFe(t,e){if(t=Su(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=No.parse(t.permissions.toString()).toString():s=xo.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ue(t.startsOn,!1):"",t.expiresOn?Ue(t.expiresOn,!1):"",wu(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ue(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ue(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?bi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new wi(t.version,a,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}}o(vFe,"generateBlobSASQueryParametersUDK20250705");function wu(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}o(wu,"getCanonicalName");function Su(t){let e=t.version?t.version:KB;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}o(Su,"SASSignatureValuesSanityCheckAndAutofill");var tg=class{static{o(this,"BlobLeaseClient")}_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=UA()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==yi||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==yi||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 z.withSpan("BlobLeaseClient-acquireLease",r,async n=>K(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!==yi||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==yi||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 z.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=K(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?.ifMat
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"}};op.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Ru=class extends Error{static{o(this,"UsageError")}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"}};Ru.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var dg=class extends Error{static{o(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var QUe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},AL=class{static{o(this,"UploadProgress")}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);S(`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=o(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))},"displayCallback");this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function ete(t,e,r){return QUe(this,void 0,void 0,function*(){var n;let s=new La(t),i=s.getBlockBlobClient(),a=new AL((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),B(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let l=yield i.uploadFile(e,c);if(l._response.status>=400)throw new rw(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw We(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}o(ete,"uploadCacheArchiveSDK");var rte=w(require("buffer"),1),Qo=w(require("fs"),1),nte=w(require("stream"),1),ste=w(require("util"),1);var nw=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function sw(t){return t?t>=200&&t<300:!1}o(sw,"isSuccessStatusCode");function RUe(t){return t?t>=500:!0}o(RUe,"isServerErrorStatusCode");function TUe(t){return t?[Nt.BadGateway,Nt.ServiceUnavailable,Nt.GatewayTimeout].includes(t):!1}o(TUe,"isRetryableStatusCode");function vUe(t){return nw(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(vUe,"sleep");function tte(t,e,r){return nw(this,arguments,void 0,function*(n,s,i,a=xI,c=QI,l=void 0){let u="",d=1;for(;d<=a;){let A,p,f=!1;try{A=yield s()}catch(h){l&&(A=l(h)),f=!0,u=h.message}if(A&&(p=i(A),!RUe(p)))return A;if(p&&(f=TUe(p),u=`Cache service responded with ${p}`),B(`${n} - Attempt ${d} of ${a} failed with error: ${u}`),!f){B(`${n} - Error is not retryable`);break}yield vUe(c),d++}throw Error(`${n} failed: ${u}`)})}o(tte,"retry");function Ag(t,e){return nw(this,arguments,void 0,function*(r,n,s=xI,i=QI){return yield tte(r,n,a=>a.statusCode,s,i,a=>{if(a instanceof Zi)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}o(Ag,"retryTypedResponse");function ap(t,e){return nw(this,arguments,void 0,function*(r,n,s=xI,i=QI){return yield tte(r,n,a=>a.message.statusCode,s,i)})}o(ap,"retryHttpClientResponse");var Us=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a
Other caches with similar key:`);for(let c of i?.artifactCaches||[])B(`Cache Key: ${c?.cacheKey}, Cache Version: ${c?.cacheVersion}, Cache Scope: ${c?.scope}, Cache Created: ${c?.creationTime}`)}}})}o(FUe,"printCachesListForDiagnostics");function gL(t,e,r){return xn(this,void 0,void 0,function*(){let n=new gte.URL(t),s=cte(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield ote(t,e,s):s.concurrentBlobDownloads?yield ite(t,e,s):yield ow(t,e):yield ow(t,e)})}o(gL,"downloadCache");function yte(t,e,r){return xn(this,void 0,void 0,function*(){let n=mL(),s=vA(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield Ag("reserveCache",()=>xn(this,void 0,void 0,function*(){return n.postJson(fg("caches"),i)}))})}o(yte,"reserveCache");function mte(t,e){return`bytes ${t}-${e}/*`}o(mte,"getContentRange");function UUe(t,e,r,n,s){return xn(this,void 0,void 0,function*(){B(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${mte(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":mte(n,s)},a=yield ap(`uploadChunk (start: ${n}, end: ${s})`,()=>xn(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!sw(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}o(UUe,"uploadChunk");function qUe(t,e,r,n){return xn(this,void 0,void 0,function*(){let s=Xi(r),i=fg(`caches/${e.toString()}`),a=cp.openSync(r,"r"),c=pL(n),l=G_("uploadConcurrency",c.uploadConcurrency),u=G_("uploadChunkSize",c.uploadChunkSize),d=[...new Array(l).keys()];B("Awaiting all uploads");let A=0;try{yield Promise.all(d.map(()=>xn(this,void 0,void 0,function*(){for(;A<s;){let p=Math.min(s-A,u),f=A,h=A+p-1;A+=u,yield UUe(t,i,()=>cp.createReadStream(r,{fd:a,start:f,end:h,autoClose:!1}).on("error",g=>{throw new Error(`Cache upload failed because file read failed with ${g.message}`)}),f,h)}})))}finally{cp.closeSync(a)}})}o(qUe,"uploadFile");function GUe(t,e,r){return xn(this,void 0,void 0,function*(){let n={size:r};return yield Ag("commitCache",()=>xn(this,void 0,void 0,function*(){return t.postJson(fg(`caches/${e.toString()}`),n)}))})}o(GUe,"commitCache");function EL(t,e,r,n){return xn(this,void 0,void 0,function*(){if(pL(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield ete(r,e,n)}else{let i=mL();B("Upload cache"),yield qUe(i,t,e,n),B("Commiting cache");let a=Xi(e);S(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield GUe(i,t,a);if(!sw(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);S("Cache saved successfully")}})}o(EL,"saveCache");var pre=w(ore(),1),Ht=w(Gt(),1),us=w(Gt(),1),ku=w(Gt(),1),Du=w(Gt(),1),Ou=w(Gt(),1);var A1=w(Gt(),1),p1=w(Gt(),1),ure=w(Gt(),1),dre=w(Gt(),1),Are=w(Gt(),1);var l1=w(Gt(),1),u1=w(Gt(),1),are=w(Gt(),1),cre=w(Gt(),1),lre=w(Gt(),1);var d1=class extends lre.MessageType{static{o(this,"CacheScope$Type")}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,cre.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,are.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?u1.UnknownFieldHandler.onRead:u)(this.typeName,i,c,l,d)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,l1.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,l1.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?u1.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},Jw=new d1;var f1=class extends Are.Mess
`));let n=yield R1(r,"create");yield T1(n,t)})}o(_1,"createTar");var wp=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},xi=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Mu=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},P1="cache write denied:",Kw=class t extends Mu{static{o(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},gre=RI,Xw=class t extends Error{static{o(this,"CacheReadDeniedError")}constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},Zw=class t extends Error{static{o(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function Ere(t){if(!t||t.length===0)throw new xi("Path Validation Error: At least one directory or file path is required")}o(Ere,"checkPaths");function k1(t){if(t.length>512)throw new xi(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new xi(`Key Validation Error: ${t} cannot contain commas.`)}o(k1,"checkKey");function D1(){return pg()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}o(D1,"isFeatureAvailable");function yre(t,e,r,n){return wp(this,arguments,void 0,function*(s,i,a,c,l=!1){let u=pg();B(`Cache service version: ${u}`),Ere(s);let d=hL();if(!ute(d)){S(`Cache restore skipped: the effective cache-mode '${d}' does not permit reads.`),B(`Skipped restore for paths [${s.join(", ")}] with primary key '${i}'.`);return}return u==="v2"?yield nGe(s,i,a,c,l):yield rGe(s,i,a,c,l)})}o(yre,"restoreCache");function rGe(t,e,r,n){return wp(this,arguments,void 0,function*(s,i,a,c,l=!1){var u;a=a||[];let d=[i,...a];if(B("Resolved Keys:"),B(JSON.stringify(d)),d.length>10)throw new xi("Key Validation Error: Keys are limited to a maximum of 10.");for(let f of d)k1(f);let A=yield Am(),p="";try{let f;try{f=yield Ete(d,s,{compressionMethod:A,enableCrossOsArchive:l})}catch(g){let y=(u=g?.message)!==null&&u!==void 0?u:"";throw y.includes(gre)?new Xw(y):g}if(!f?.archiveLocation)return;if(c?.lookupOnly)return S("Lookup only - skipping download"),f.cacheKey;p=Tg.join(yield um(),Tc(A)),B(`Archive Path: ${p}`),yield gL(f.archiveLocation,p,c),Ca()&&(yield Rg(p,A));let h=Xi(p);return S(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield v1(p,A),S("Cache restored successfully"),f.cacheKey}catch(f){let h=f;if(h.name===xi.name)throw f;h instanceof Zi&&typeof h.statusCode=="number"&&h.statusCode>=500?CA(`Failed to restore: ${f.message}`):We(`Failed to restore: ${f.message}`)}finally{try{yield dm(p)}catch(f){B(`Failed to delete archive: ${f}`)}}})}o(rGe,"restoreCacheV1");function nGe(t,e,r,n){return wp(this,arguments,void 0,function*(s,i,a,c,l=!1){var u;c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let d=[i,...a];if(B("Resolved Keys:"),B(JSON.stringify(d)),d.length>10)throw new xi("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of d)k1(p);let A="";try{let p=Q1(),f=yield Am(),h={key:i,restoreKeys:a,version:vA(s,f,l)},g;try{g=yield p.GetCacheEntryDownloadURL(h)}catch(C){let I=(u=C?.message)!==null&&u!==void 0?u:"";throw I.includes(gre)?new Xw(I):C}if(!g.ok){B(`Cache not found for version ${h.version} of keys: ${d.join(", ")}`);return}if(h.key!==g.matchedKey?S(`Cache hit for restore-key: ${g.matchedKey}`):S(`Cache hit for: ${g.matchedKey}`),c?.lookupOnly)return S("Lookup only - skipping download"),g.matchedKey;A=Tg.join(yield um(),Tc(f)),B(`Archive path: ${A}`),B(`Starting download of archive to: ${A}`)
`,a).length:A,u?(c===null?0:c.length)+l.length:0,u?l.length+A:0);return p<f},"__needMoreData"),parse:o(function(n,s,i,a){let{bom:c,comment_no_infix:l,delimiter_auto:u,encoding:d,from_line:A,ltrim:p,max_record_size:f,raw:h,relax_quotes:g,rtrim:y,skip_empty_lines:E,to:C,to_line:I}=this.options,{comment:b,escape:N,quote:Q,record_delimiter:D}=this.options,{bomSkipped:ce,delimiterDiscovered:Me,delimiterBufPrevious:qe,rawBuffer:$e,escapeIsQuote:Ce}=this.state;if(!Me&&u){let Ge;if(qe===void 0?Ge=n:qe!==void 0&&n===void 0?Ge=qe:Ge=Buffer.concat([qe,n]),n=void 0,s||Ge.length>u.size)this.options.delimiter=[Buffer.from(Noe(Ge,this.options.delimiter_auto))],this.state.previousBuf=Ge,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=Ge;return}}let{previousBuf:et}=this.state,de;if(et===void 0)if(n===void 0){a();return}else de=n;else et!==void 0&&n===void 0?de=et:de=Buffer.concat([et,n]);if(ce===!1)if(c===!1)this.state.bomSkipped=!0;else if(de.length<3){if(s===!1){this.state.previousBuf=de;return}}else{for(let Ge in Up)if(Up[Ge].compare(de,0,Up[Ge].length)===0){let ki=Up[Ge].length;this.state.bufBytesStart+=ki,de=de.slice(ki);let rc=Fp({...this.original_options,encoding:Ge});for(let bt in rc)this.options[bt]=rc[bt];({comment:b,escape:N,quote:Q}=this.options);break}this.state.bomSkipped=!0}let Gr=de.length,$;for($=0;$<Gr&&!this.__needMoreData($,Gr,s);$++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),I!==-1&&this.info.lines>I){this.state.stop=!0,a();return}this.state.quoting===!1&&D.length===0&&this.__autoDiscoverRecordDelimiter(de,$)&&(D=this.options.record_delimiter);let Ge=de[$];if(h===!0&&$e.append(Ge),(Ge===xYe||Ge===QYe)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(N!==null&&this.state.quoting===!0&&this.__isEscape(de,$,Ge)&&$+N.length<Gr)if(Ce){if(this.__isQuote(de,$+N.length)){this.state.escaping=!0,$+=N.length-1;continue}}else{this.state.escaping=!0,$+=N.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(de,$))if(this.state.quoting===!0){let bt=de[$+Q.length],Di=y&&this.__isCharTrimable(de,$+Q.length),Ln=b!==null&&this.__compareBytes(b,de,$+Q.length,bt),gl=this.__isDelimiter(de,$+Q.length,bt),DE=D.length===0?this.__autoDiscoverRecordDelimiter(de,$+Q.length):this.__isRecordDelimiter(bt,de,$+Q.length);if(N!==null&&this.__isEscape(de,$,Ge)&&this.__isQuote(de,$+N.length))$+=N.length-1;else if(!bt||gl||DE||Ln||Di){this.state.quoting=!1,this.state.wasQuoting=!0,$+=Q.length-1;continue}else if(g===!1){let fG=this.__error(new we("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(bt)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(fG!==void 0)return fG}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(Q),$+=Q.length-1}else if(this.state.field.length!==0){if(g===!1){let bt=this.__infoField(),Di=Object.keys(Up).map(gl=>Up[gl].equals(this.state.field.toString())?gl:!1).filter(Boolean)[0],Ln=this.__error(new we("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(bt.column)} at line ${bt.lines}, value is ${JSON.stringify(this.state.field.toString(d))}`,Di?`(${Di} bom)`:void 0],this.options,bt,{field:this.state.field}));if(Ln!==void 0)return Ln}}else{this.state.quoting=!0,$+=Q.length-1;continue}if(this.state.quoting===!1){let bt=this.__isRecordDelimiter(Ge,de,$);if(bt!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=A){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),$+=bt-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,$+=bt-1;continue}this.info.bytes=this.state.bufBytesSt
`,i),Buffer.from(`
`,i),Buffer.from("\r",i)];e:for(let c=0;c<a.length;c++){let l=a[c].length;for(let u=0;u<l;u++)if(a[c][u]!==n[s+u])continue e;return this.options.record_delimiter.push(a[c]),this.state.recordDelimiterMaxLength=a[c].length,a[c].length}return 0},"__autoDiscoverRecordDelimiter"),__error:o(function(n){let{encoding:s,raw:i,skip_records_with_error:a}=this.options,c=typeof n=="string"?new Error(n):n;if(a){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(c,i?this.state.rawBuffer.toString(s):void 0)}catch(l){return l}return}else return c},"__error"),__infoDataSet:o(function(){return{...this.info,columns:this.options.columns}},"__infoDataSet"),__infoRecord:o(function(){let{columns:n,raw:s,encoding:i}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:n===!0,index:this.state.record.length,raw:s?this.state.rawBuffer.toString(i):void 0}},"__infoRecord"),__infoField:o(function(){let{columns:n}=this.options,s=Array.isArray(n),i=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:i,column:s===!0?n.length>this.state.record.length?n[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}},"__infoField")}},"transform");var hs=o(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],n=eS(e),s=o(c=>{n.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),i=o(()=>{},"close"),a=n.parse(t,!0,s,i);if(a!==void 0)throw a;return r},"parse");var Oe=class t{static{o(this,"Util")}static getInputList(e,r){return this.getList(Pr(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let n=[];if(e=="")return n;let s=hs(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let i of s)i.length==1?r?.ignoreComma?n.push(i[0]):n.push(...i[0].split(",")):r?.ignoreComma?n.push(i.join(",")):n.push(...i);return n.filter(i=>i).map(i=>r?.trimWhitespace===!1?i:i.trim())}static getInputNumber(e){let r=Pr(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let n=0;n<e.length;n++)await r(e[n],n,e)}static isValidURL(e){let r;try{r=new URL(e)}catch{return!1}return r.protocol==="http:"||r.protocol==="https:"}static isValidRef(e){if(t.isValidURL(e))return!0;for(let r of["git://","github.com/","git@"])if(e.startsWith(r))return!0;return!1}static async powershellCommand(e,r){let n=await Ir("powershell",!0),s=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=[];if(r)for(let a in r)i.push(`-${a} '${r[a].replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`);return{command:`"${n}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${s}' ${i.join(" ")}`]}}static isDirectory(e){try{return Qoe.default.lstatSync(e).isDirectory()}catch{}return!1}static trimPrefix(e,r){return!e||!r||e.indexOf(r)!==0?e:e.substring(r.length)}static trimSuffix(e,r){if(!e||!r)return e;let n=e.lastIndexOf(r);return n===-1||n+r.length!==e.length?e:e.substring(0,n)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return iU.default.createHash("sha256").update(e).digest("hex")}static parseBool(e){if(e===void 0)return!1;switch(e){case"1":case"t":case"T":case"true":case"TRUE":case"True":return!0;case"0":case"f":case"F":case"false":case"FALSE":case"False":return!1;default:throw new Error(`parseBool syntax error: ${e}`)}}static parseBoolOrDefault(e,r=!1){try{return this.parseBool(e)}catch{return r}}static formatFileSize(e){if(e===0)return"0 Bytes";let r=1024,n=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],s=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,s)).toFixed(2))+" "+n[s]}static generateRandomString(e=10){return iU.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,n){return Roe.default.compile(e,r)(n)}static stringToUnicodeEntities(e){return Array.from(e).map(r=>`&#x${r.charCodeAt(0).toString(16)};`).join("")}static countLines(e){return e.split(/\r\n|\r|\n/).length}static isPathRelative
2026-05-22 14:44:02 +00:00
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}o(C3e,"_buildMessageForResponseErrors");var I3e=class extends Error{static{o(this,"GraphqlResponseError")}constructor(t,e,r){super(C3e(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},B3e=["method","baseUrl","url","headers","request","query","mediaType","operationName"],b3e=["query","method","url"],fae=/\/api\/v3\/?$/;function w3e(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 a in r)if(b3e.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((a,c)=>B3e.includes(c)?(a[c]=n[c],a):(a.variables||(a.variables={}),a.variables[c]=n[c],a),{}),i=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return fae.test(i)&&(s.url=i.replace(fae,"/api/graphql")),t(s).then(a=>{if(a.data.errors){let c={};for(let l of Object.keys(a.headers))c[l]=a.headers[l];throw new I3e(s,c,a.data)}return a.data.data})}o(w3e,"graphql");function gU(t,e){let r=t.defaults(e);return Object.assign(o((s,i)=>w3e(r,s,i),"newApi"),{defaults:gU.bind(null,r),endpoint:r.endpoint})}o(gU,"withDefaults");var UPt=gU(rE,{headers:{"user-agent":`octokit-graphql.js/${y3e} ${Kc()}`},method:"POST",url:"/graphql"});function hae(t){return gU(t,{method:"POST",url:"/graphql"})}o(hae,"withCustomRequest");var EU="(?:[a-zA-Z0-9_-]+)",mae="\\.",gae=new RegExp(`^${EU}${mae}${EU}${mae}${EU}$`),S3e=gae.test.bind(gae);async function N3e(t){let e=S3e(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"}}o(N3e,"auth");function x3e(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}o(x3e,"withAuthorizationPrefix");async function Q3e(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=x3e(t),e(s)}o(Q3e,"hook");var Eae=o(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(N3e.bind(null,e),{hook:Q3e.bind(null,e)})},"createTokenAuth2");var yU="7.0.6";var yae=o(()=>{},"noop"),R3e=console.warn.bind(console),T3e=console.error.bind(console);function v3e(t={}){return typeof t.debug!="function"&&(t.debug=yae),typeof t.info!="function"&&(t.info=yae),typeof t.warn!="function"&&(t.warn=R3e),typeof t.error!="function"&&(t.error=T3e),t}o(v3e,"createLogger");var Cae=`octokit-core.js/${yU} ${Kc()}`,AS=class{static{o(this,"Octokit")}static VERSION=yU;static defaults(e){return class extends this{static{o(this,"OctokitWithDefaults")}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{o(this,"NewOctokit")}static plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new Joe.Collection,n={baseUrl:rE.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} ${Cae}`:Cae,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=rE.defaults(n),this.graphql=hae(this.request).defaults(n),this.log=v3e(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...a}=e,c=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},e.auth));r.wrap("request",c.hook),this.auth=c}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=Eae(e.auth);r.wrap("request",i.hook),this.auth=i}let s=this.constructor;for(let i=0;i<s.plugins.length;++i)
More info: ${l.url}`);let f=l.range&&l.range.length>0?l.range[0]?.start.line:void 0,h=!1;for(let g of a)if(g.remote||g.path.endsWith(u)&&g.content===d){c.push({title:A,message:p,file:g.path,startLine:f}),h=!0;break}h||B(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${A}`)}return c}};var Zc=class t{static{o(this,"Builder")}buildx;constructor(e){this.buildx=e?.buildx||new _e}async exists(e){let r=await this.buildx.getCommand(["inspect",e]),n=await Y.getExecOutput(r.command,r.args,{ignoreReturnCode:!0,silent:!0}).then(s=>s.stderr.length>0&&s.exitCode!=0?(B(`Builder.exists cmd err: ${s.stderr.trim()}`),!1):s.exitCode==0).catch(s=>(B(`Builder.exists error: ${s}`),!1));return B(`Builder.exists: ${n}`),n}async inspect(e){let r=Object.assign({},process.env,{DEBUG:"1"}),n=["inspect"];e&&n.push(e);let s=await this.buildx.getCommand(n);return await Y.getExecOutput(s.command,s.args,{ignoreReturnCode:!0,silent:!0,env:r}).then(i=>{if(i.stderr.length>0&&i.exitCode!=0)throw new Error(i.stderr.trim());return t.parseInspect(i.stdout)})}static parseInspect(e){let r={nodes:[]},n,s={},i,a,c;for(let l of e.trim().split(`
`)){let[u,...d]=l.split(":"),A=u.toLowerCase(),p=d.map(f=>f.trim()).join(":");if(u.length!=0)switch(!0){case A=="name":n=void 0,r.name==null?r.name=p:(i&&s.gcPolicy&&(s.gcPolicy.push(i),i=void 0),s.name&&r.nodes.push(s),s={name:p});break;case A=="driver":n=void 0,r.driver=p;break;case A=="last activity":n=void 0,r.lastActivity=new Date(p);break;case A=="endpoint":n=void 0,s.endpoint=p;break;case A=="driver options":n=void 0,s["driver-opts"]=(p.match(/([a-zA-Z0-9_.]+)="([^"]*)"/g)||[]).map(f=>f.replace(/^(.*)="(.*)"$/g,"$1=$2"));break;case A=="status":n=void 0,s.status=p;break;case A=="buildkit daemon flags":case A=="flags":n=void 0,s["buildkitd-flags"]=p;break;case A=="buildkit version":case A=="buildkit":n=void 0,s.buildkit=p;break;case A=="platforms":{if(n=void 0,!p)break;let f=[];if(p.includes("*"))for(let h of p.split(", "))h.includes("*")&&f.push(h.replace(/\*/g,""));else f=p.split(", ");s.platforms=f.join(",");break}case A=="features":n="features",s.features={};break;case A=="labels":n="label",s.labels={};break;case A=="devices":n="devices",s.devices=s.devices||[];break;case A.startsWith("gc policy rule#"):n="gcpolicy",s.gcPolicy&&i&&(s.gcPolicy.push(i),i=void 0);break;case A.startsWith("file#"):n="file",c=u.split("#")[1],s.files=s.files||{},s.files[c]="";break;default:switch(n&&n!=="devices"&&s.devices&&a&&(s.devices.push(a),a=void 0),n||""){case"features":{s.features=s.features||{},s.features[u.trim()]=!!p;break}case"label":{s.labels=s.labels||{},s.labels[u.trim()]=p;break}case"devices":{switch(A.trim()){case"name":{s.devices&&a&&s.devices.push(a),a={},a.name=p;break}case"on-demand":{a&&p&&(a.onDemand=p=="true");break}case"automatically allowed":{a&&p&&(a.autoAllow=p=="true");break}case"annotations":{a&&(a.annotations=a.annotations||{});break}default:a&&a.annotations&&(a.annotations[u.trim()]=p)}break}case"gcpolicy":{switch(s.gcPolicy=s.gcPolicy||[],i=i||{},A.trim()){case"all":{i.all=p=="true";break}case"filters":{p&&(i.filter=p.split(","));break}case"keep duration":{i.keepDuration=p;break}case"keep bytes":{i.keepBytes=p;break}case"reserved space":{i.reservedSpace=p;break}case"max used space":{i.maxUsedSpace=p;break}case"min free space":{i.minFreeSpace=p;break}}break}case"file":{c&&s.files&&(s.files[c].length>0&&(s.files[c]+=`
`),s.files[c]+=l.replace(/^\s>\s?/,""));break}}}}return a&&s.devices&&s.devices.push(a),i&&s.gcPolicy&&s.gcPolicy.push(i),s.name&&r.nodes.push(s),r}};var Yu=w(require("fs"),1),vU=w(require("path"),1);var gS=class t{static{o(this,"Build")}buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new _e,this.iidFilename=`build-iidfile-${Oe.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${Oe.generateRandomString()}.json`}async gitContext(e){let r=new Set(["ref","checksum","subdir"]),n=e?.attrs||{},s=Object.entries(n).filter(([f])=>!r.has(f)),i=Oe.parseBoolOrDefault(n["fetch-by-commit"]),a=e?.ref||n.ref||ln.ref;a.startsWith("refs/")?a.startsWith("refs/pull/")&&Oe.parseBoolOrDefault(process.env.DOCKER_DEFAULT_GIT_CONTEXT_PR_HEAD_REF)&&(a=a.replace(/\/merge$/g,"/head")):a=`refs/heads/${a}`;let c=`${Ke.serverURL}/${ln.repo.owner}/${ln.repo.repo}.git`,l=e?.checksum||n.checksum,u=e?.subdir||n.subdir,d=e?.format;if(!d){if(d="fragment",s.length>0)d="query";else if(Oe.parseBoolOrDefault(process.env.BUILDX_SEND_GIT_QUERY_AS_INPUT))try{await this.buildx.versionSatisfies(">=0.29.0")&&(d="query")}catch{}}let A=ln.sha||a;a.startsWith("refs/pull/")&&a.endsWith("/head")&&(A=typeof ln.payload.pull_request?.head?.sha=="string"?ln.payload.pull_request.head.sha:a);let p=l||A;if(d==="query"){let f=[`ref=${i||l?a:p}`],h=i?p:l;h&&f.push(`checksum=${h}`),u&&u!=="."&&f.push(`subdir=${u}`);for(let[g,y]of s)f.push(`${g}=${y}`);return`${c}?${f.join("&")}`}return`${c}#${p}${u&&u!=="."?`:${u}`:""}`}getImageIDFilePath(){return vU.default.join(De.tmpDir(),this.iidFilename)}resolveImageID(){let e=this.getImageIDFilePath();if(Yu.default.existsSync(e))return Yu.default.readFileSync(e,{encoding:"utf-8"}).trim()}getMetadataFilePath(){return vU.default.join(De.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!Yu.default.existsSync(e))return;let r=Yu.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRef(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.ref"in e)return e["buildx.build.ref"]}resolveProvenance(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.provenance"in e)return e["buildx.build.provenance"]}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}resolveDigest(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"containerimage.digest"in e)return e["containerimage.digest"]}static resolveSecretString(e){let[r,n]=t.resolveSecret(e,{redact:!0});return`id=${r},src=${n}`}static resolveSecretFile(e){let[r,n]=t.resolveSecret(e,{asFile:!0});return`id=${r},src=${n}`}static resolveSecretEnv(e){let[r,n]=t.parseSecretKvp(e);return`id=${r},env=${n}`}static resolveSecret(e,r){let[n,s]=t.parseSecretKvp(e,r?.redact);if(r?.asFile){if(!Yu.default.existsSync(s))throw new Error(`secret file ${s} not found`);return[n,s]}let i=De.tmpName({tmpdir:De.tmpDir()});return Yu.default.writeFileSync(i,s),[n,i]}static getProvenanceInput(e){let r=Pr(e);if(!r)return r;try{return Xl(e)?`builder-id=${Ke.workflowRunURL(!0)}`:"false"}catch{return t.resolveProvenanceAttrs(r)}}static resolveProvenanceAttrs(e){if(!e)return`builder-id=${Ke.workflowRunURL(!0)}`;let r=hs(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let n of r)if(n.toString().split(/(?<=^[^=]+?)=/).map(i=>i.trim())[0]=="builder-id")return e;return`${e},builder-id=${Ke.workflowRunURL(!0)}`}static resolveCacheToAttrs(e,r){if(!e)return e;let n="registry",s="",i="",a=hs(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let c of a){let l=c.toString().split(/(?<=^[^=]+?)=/).map(u=>u.trim());l[0]==="type"?n=l[1]:l[0]==="repository"?s=l[1]:l[0]==="ghtoken"&&(i=l[1])}return n==="gha"&&(s||(e=`${e},repository=${Ke.repository}`),!i&&r&&(e=`${e},ghtoken=${r}`)),e}static hasLocalExporter(e){return t.hasExporterType("local",e)}static hasTarExporter(e){return t.hasExporterType("tar",e)}static hasDockerExporter(e,r){return r||t.hasExporterType("docker",e)}static hasExporterType(e,r){let n=hs(r.join(`
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let s of n){if(s.length==1&&!s[0].startsWith("type="))return e=="local";for(let[i,a]of s.map(c=>c.split("=").map(l=>l.trim())))if(i=="type"&&a==e)return!0}return!1}static hasAttestationType(e,r){let n=hs(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let s of n)for(let[i,a]of s.map(c=>c.split("=").map(l=>l.trim())))if(i=="type"&&a==e)return!0;return!1}static resolveAttestationAttrs(e){let r=hs(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),n=[];for(let s of r)for(let i of s)try{let a=Oe.parseBool(i);n.push(`disabled=${!a}`)}catch{n.push(i)}return n.join(",")}static hasGitAuthTokenSecret(e,r){for(let n of e){if(r&&n.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(n.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let n=e.indexOf("="),s=e.substring(0,n),i=e.substring(n+1);if(s.length==0||i.length==0)throw new Error(`${e} is not a valid secret`);return r&&$i(i),[s,i]}};var _U=w(require("fs"),1),vae=w(require("path"),1);var ES=class t{static{o(this,"Bake")}buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new _e,this.metadataFilename=`bake-metadata-${Oe.generateRandomString()}.json`}getMetadataFilePath(){return vae.default.join(De.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!_U.default.existsSync(e))return;let r=_U.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRefs(e){if(!e&&(e=this.resolveMetadata(),!e))return;let r=new Array;for(let n in e)"buildx.build.ref"in e[n]&&r.push(e[n]["buildx.build.ref"]);return r.length>0?r:void 0}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}async getDefinition(e,r){r=r||{ignoreReturnCode:!0},r.ignoreReturnCode=!0,r.env=Object.assign({},process.env,r.env||{},e.githubToken?{BUILDX_BAKE_GIT_AUTH_TOKEN:e.githubToken}:{});let n=["bake"],s,i=[],a=[...e.files||[],e.source];if(a){for(let l of a.map(u=>u?u.trim():""))if(l.length!=0){if(!Oe.isValidRef(l)){i.push(l);continue}if(s)throw new Error("Only one remote bake definition can be defined");s=l}}s&&n.push(s);for(let l of i)n.push("--file",l);if(e.overrides)for(let l of e.overrides)n.push("--set",l);if(e.vars)for(let l of e.vars)n.push("--var",l);if(e.allow)for(let l of e.allow)n.push("--allow",l);e.call&&n.push("--call",e.call),e.load&&n.push("--load"),e.noCache&&n.push("--no-cache"),e.provenance&&n.push("--provenance",e.provenance),e.push&&n.push("--push"),e.sbom&&n.push("--sbom",e.sbom);let c=await this.buildx.getCommand([...n,"--print",...e.targets||[]]);return await Y.getExecOutput(c.command,c.args,r).then(l=>{if(l.stderr.length>0&&l.exitCode!=0)throw new Error(`cannot parse bake definitions: ${l.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return t.parseDefinition(l.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let n in r.target){let s=r.target[n];s.attest&&Array.isArray(s.attest)&&(s.attest=s.attest.map(i=>t.parseAttestEntry(i))),s["cache-from"]&&Array.isArray(s["cache-from"])&&(s["cache-from"]=s["cache-from"].map(i=>t.parseCacheEntry(i))),s["cache-to"]&&Array.isArray(s["cache-to"])&&(s["cache-to"]=s["cache-to"].map(i=>t.parseCacheEntry(i))),s.output&&Array.isArray(s.output)&&(s.output=s.output.map(i=>t.parseExportEntry(i))),s.secret&&Array.isArray(s.secret)&&(s.secret=s.secret.map(i=>t.parseSecretEntry(i))),s.ssh&&Array.isArray(s.ssh)&&(s.ssh=s.ssh.map(i=>t.parseSSHEntry(i)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},n=hs(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let s of n){let[i,a]=s.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(i){case"type":r.type=a;break;case"disabled":r.disabled=Oe.parseBool(a);break;default:r[i]=a}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},n=hs(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(n.length===1&&!n[0].includes("="))return r.type="registry",r.ref=n[0],r;for(let s of n){let[i,a]=s.toString().s
`)[0])}static async isHeadDetached(){return await t.exec(["branch","--show-current"]).then(e=>e.length==0)}static async getDetachedRef(){let e=await t.exec(["show","-s","--pretty=%D"]);B(`detached HEAD ref: ${e}`);let r=e.replace(/^grafted, /,"").trim();if(r==="HEAD")return await t.inferRefFromHead();let n=r.match(/^HEAD, (.*)$/);if(!n||!n[1])throw new Error(`Cannot find detached HEAD ref in "${e}"`);let s=n[1].trim();if(s.startsWith("tag: "))return await t.findDetachedTagRef(s,e);if(s.match(/^pull\/\d+\/(head|merge)$/))return`refs/${s}`;let a=s.match(/^[^/]+\/[^/]+, (.+)$/);if(a)return`refs/heads/${a[1].trim()}`;let c=s.match(/^[^/]+\/(.+)$/);if(c)return`refs/heads/${c[1].trim()}`;throw new Error(`Unsupported detached HEAD ref in "${e}"`)}static async exec(e=[]){return await Y.getExecOutput("git",e,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr);return r.stdout.trim()})}static async inferRefFromHead(){let e=await t.findContainingRef("refs/heads/");if(e)return e;let r=await t.findContainingRef("refs/remotes/");if(r){let i=r.match(/^refs\/remotes\/[^/]+\/(.+)$/);return i?`refs/heads/${i[1]}`:r}let n=await t.exec(["tag","--contains","HEAD"]),[s]=n.split(`
`).map(i=>i.trim()).filter(i=>i.length>0);if(s)return`refs/tags/${s}`;throw new Error("Cannot infer ref from detached HEAD")}static async findDetachedTagRef(e,r){let s=(await t.exec(["for-each-ref","--format=%(refname)","--points-at","HEAD","refs/tags/"])).split(`
`).map(i=>i.trim()).filter(i=>i.length>0).sort((i,a)=>a.length-i.length);for(let i of s){let a=`tag: ${i.slice(10)}`;if(e===a||e.startsWith(`${a}, `))return i}if(s.length===1)return s[0];throw new Error(`Cannot find detached tag ref in "${r}"`)}static async findContainingRef(e){let r=await t.exec(["for-each-ref","--format=%(refname)","--contains","HEAD","--sort=-committerdate",e]),[n]=r.split(`
`).map(s=>s.trim()).filter(s=>s.length>0);return n}static async commitDate(e){return new Date(await t.exec(["show","-s",'--format="%ci"',e]))}};var $ue=require("crypto"),jo=w(require("fs"),1),Ko=w(require("path"),1);var bf=w(UU(),1),Jue=w(tq(),1),wf=w(Gue(),1);var sG=w(UU(),1);var Vue=w(Qi(),1);var Hue="application/vnd.oci.empty.v1+json";var Wo=class{static{o(this,"Cosign")}binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"cosign",this._version="",this._versionOnce=!1}async isAvailable(){let e=await Y.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(B(`Cosign.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(B(`Cosign.isAvailable error: ${r}`),!1));return B(`Cosign.isAvailable: ${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await Y.getExecOutput(this.binPath,["version","--json"],{ignoreReturnCode:!0,silent:!0}).then(e=>{if(e.stderr.length>0&&e.exitCode!=0)throw new Error(e.stderr.trim());return JSON.parse(e.stdout.trim()).gitVersion}),this._version)}async printVersion(){await Y.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}async versionSatisfies(e,r){let n=r??await this.version();if(!n)return B("Cosign.versionSatisfies false: undefined version"),!1;let s=Vue.satisfies(n,e)||/^[0-9a-f]{7}$/.exec(n)!==null;return B(`Cosign.versionSatisfies ${n} statisfies ${e}: ${s}`),s}static parseCommandOutput(e){let r,n,s,i;for(let a of e.split(/\r?\n/)){let c=a.trim();if(!c.startsWith("{")||!c.endsWith("}"))continue;let l;try{l=JSON.parse(c)}catch{continue}if(l&&Array.isArray(l.errors)&&l.errors.length>0&&(i=l.errors),!r&&l&&Array.isArray(l.manifests)&&l.manifests.length>0){let u=l.manifests[0];u?.artifactType===sG.BUNDLE_V03_MEDIA_TYPE&&typeof u.digest=="string"?r=u.digest:u?.artifactType===Hue&&typeof u.digest=="string"&&(n=u.digest)}if(!s&&l&&l.mediaType===sG.BUNDLE_V03_MEDIA_TYPE&&(s=l),s&&(r||n)){i=void 0;break}}return{bundle:s,signatureManifestDigest:r||n,errors:i}}};var iG=w(require("fs"),1);var KN=class t{static{o(this,"ImageTools")}buildx;constructor(e){this.buildx=e?.buildx||new _e}async getCommand(e){return await this.buildx.getCommand(["imagetools",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getCreateCommand(e){return await this.getCommand(["create",...e])}async inspectImage(e){return await this.inspect(e,"{{json .Image}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"config"),r;throw new Error("Unexpected output format")})}async inspectManifest(e){return await this.inspect(e,"{{json .Manifest}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"manifests"),r;throw new Error("Unexpected output format")})}async attestationDescriptors(e){let r=await this.inspectManifest(e);if(typeof r!="object"||r===null||!("manifests"in r)||!Array.isArray(r.manifests))throw new Error(`No descriptor found for ${e.name}`);let n=r.manifests.filter(a=>a.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return n;let s=e.platform,i=new Map;for(let a of r.manifests)a.digest&&i.set(a.digest,a);return n.filter(a=>{let c=a.annotations?.["vnd.docker.reference.digest"];if(!c)return!1;let l=i.get(c);return l?l.platform?.os===s.os&&l.platform?.architecture===s.architecture&&(l.platform?.variant??"")===(s.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}async create(e){let r=[],n=De.tmpName({tmpdir:De.tmpDir(),template:"imagetools-metadata-XXXXXX"}),s=[],i=[];for(let c of e.sources){if(c.startsWith("cwd://")){let l=c.substring(6);l.length>0&&s.push(l);continue}i.push(c)}if(e.tags)for(let c of e.tags)r.push("--tag",c);if(e.platforms)for(let c of e.platforms)r.push("--platform",c);if(e.annotations)for(let c of e.annotations)r.push("--annotation",c);e.dryRun?r.push("--dry-run"):r.push("--metadata-file",n);for(let c of s)r.push("--file",c);for(let c of i)r.pus
${a.message}`),await new Promise(u=>setTimeout(u,Math.pow(2,c)*100))}throw a??new Error(`ImageTools inspect command failed for ${e.name}`)}async execInspect(e,r,n){return await Y.getExecOutput(e,r,{ignoreReturnCode:!0,silent:!0}).then(s=>{if(s.stderr.length>0&&s.exitCode!=0)throw new Error(s.stderr.trim());return n(JSON.parse(s.stdout))})}static isManifestUnknownError(e){return/(MANIFEST_UNKNOWN|manifest unknown)/i.test(e)||/:\s*not found$/i.test(e)}};var Bf="https://search.sigstore.dev";var zue="slsaprovenance1",hl=class t{static{o(this,"Sigstore")}cosign;imageTools;constructor(e){this.cosign=e?.cosign||new Wo,this.imageTools=e?.imageTools||new KN}async signAttestationManifests(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign attestation manifests");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let n={noTransparencyLog:e.noTransparencyLog,rekorV2:e.rekorV2},s=await this.cosignSigningConfigArgs(n);for(let i of e.imageNames){let a=await this.imageTools.attestationDigests({name:`${i}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let c of a){let l=`${i}@${c}`;await ot(`Signing attestation manifest ${l}`,async()=>{let u=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1",...await this.bundleFormatArgs(),...s];S(`[command]${this.cosign.binPath} ${[...u,l].join(" ")}`);let d=await Y.getExecOutput(this.cosign.binPath,["--verbose",...u,l],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),A=Wo.parseCommandOutput(d.stderr.trim());if(d.exitCode!=0)if(A.errors&&A.errors.length>0){let f=A.errors.map(h=>`- [${h.code}] ${h.message} : ${h.detail}`).join(`
`);throw new Error(`Cosign sign command failed with errors:
${f}`)}else throw new Error(`Cosign sign command failed with: ${d.stderr.trim().split(/\r?\n/).filter(f=>f.length>0).pop()??"unknown error"}`);let p=t.parseBundle((0,bf.bundleFromJSON)(A.bundle));p.tlogID&&await this.logTransparencyUpload(p.tlogID,n),S(`Signature manifest pushed: https://oci.dag.dev/?referrers=${l}`),r[l]={...p,imageName:i}})}}}catch(n){throw new Error(`Signing BuildKit attestation manifests failed: ${n.message}`)}return r}async verifySignedManifests(e,r){let n={};for(let[s,i]of Object.entries(e))await ot(`Verifying signature of ${s}`,async()=>{let a=await this.verifyImageAttestation(s,{certificateIdentityRegexp:r.certificateIdentityRegexp,noTransparencyLog:r.noTransparencyLog||!i.tlogID,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});S(`Signature manifest verified: https://oci.dag.dev/?image=${i.imageName}@${a.signatureManifestDigest}`),n[s]=a});return n}async verifyImageAttestations(e,r){let n={},s=await this.imageTools.attestationDigests({name:e,platform:r.platform,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});if(s.length===0)throw new Error(`No attestation manifests found for ${e}`);let i=e.split(":",1)[0];for(let a of s){let c=`${i}@${a}`,l=await this.verifyImageAttestation(c,r);S(`Signature manifest verified: https://oci.dag.dev/?image=${i}@${l.signatureManifestDigest}`),n[c]=l}return n}async verifyImageAttestation(e,r){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed manifests");let n=["verify","--experimental-oci11",...await this.bundleFormatArgs(),"--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp];if(r.noTransparencyLog&&n.push("--use-signed-timestamps","--insecure-ignore-tlog"),!r.retryOnManifestUnknown){S(`[command]${this.cosign.binPath} ${[...n,e].join(" ")}`);let a=await Y.getExecOutput(this.cosign.binPath,["--verbose",...n,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})});if(a.exitCode!==0)throw new Error(`Cosign verify command failed with: ${a.stderr.trim().split(/\r?\n/).filter(l=>l.length>0).pop()??"unknown error"}`);let c=Wo.parseCommandOutput(a.stderr.trim());return{cosignArgs:n,signatureManifestDigest:c.signatureManifestDigest}}let s=r.retryLimit??15,i;S(`[command]${this.cosign.binPath} ${[...n,e].join(" ")}`);for(let a=0;a<s;a++){let c=await Y.getExecOutput(this.cosign.binPath,["--verbose",...n,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),l=Wo.parseCommandOutput(c.stderr.trim());if(c.exitCode===0)return{cosignArgs:n,signatureManifestDigest:l.signatureManifestDigest};if(l.errors&&l.errors.length>0){let u=l.errors.map(d=>`- [${d.code}] ${d.message} : ${d.detail}`).join(`
`);if(i=new Error(`Cosign verify command failed with errors:
${u}`),l.errors.some(d=>d.code==="MANIFEST_UNKNOWN"))S(`Cosign verify command failed with MANIFEST_UNKNOWN, retrying attempt ${a+1}/${s}...
${u}`),await new Promise(d=>setTimeout(d,Math.pow(2,a)*100));else throw i}else throw new Error(`Cosign verify command failed with: ${c.stderr.trim().split(/\r?\n/).filter(u=>u.length>0).pop()??"unknown error"}`)}throw i}async signProvenanceBlobs(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign provenance blobs");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let n={noTransparencyLog:e.noTransparencyLog,rekorV2:e.rekorV2},s=await this.cosignSigningConfigArgs(n),i=t.getProvenanceBlobs(e);for(let a of Object.keys(i))await ot(`Signing ${a}`,async()=>{let c=i[a],l=Ko.default.join(Ko.default.dirname(a),`${e.name??"provenance"}.sigstore.json`),u=t.getProvenanceSubjects(c);if(u.length===0){We(`No subjects found in provenance ${a}, skip signing.`);return}let d=Ko.default.join(Ko.default.dirname(a),u[0].name),A=["attest-blob","--yes","--oidc-provider","github-actions",...await this.bundleFormatArgs(),"--statement",a,"--type",zue,"--bundle",l,...s];S(`[command]${this.cosign.binPath} ${[...A,d].join(" ")}`);let p=await Y.getExecOutput(this.cosign.binPath,["--verbose",...A,d],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),f=Wo.parseCommandOutput(p.stderr.trim());if(p.exitCode!=0)if(f.errors&&f.errors.length>0){let g=f.errors.map(y=>`- [${y.code}] ${y.message} : ${y.detail}`).join(`
`);throw new Error(`Cosign attest-blob command failed with errors:
${g}`)}else throw new Error(`Cosign attest-blob command failed with: ${p.stderr.trim().split(/\r?\n/).filter(g=>g.length>0).pop()??"unknown error"}`);let h=t.parseBundle((0,bf.bundleFromJSON)(JSON.parse(jo.default.readFileSync(l,{encoding:"utf-8"}))));S("Provenance blob signed for:");for(let g of u){let[y,E]=Object.entries(g.digest)[0]||[];S(` - ${g.name} (${y}:${E})`)}h.tlogID&&await this.logTransparencyUpload(h.tlogID,n),S(`Sigstore bundle written to: ${l}`),r[a]={...h,bundlePath:l,subjects:u}})}catch(n){throw new Error(`Signing BuildKit provenance blobs failed: ${n.message}`)}return r}async verifySignedArtifacts(e,r){let n={};if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed artifacts");for(let[s,i]of Object.entries(e)){let a=Ko.default.dirname(s);await ot(`Verifying signature bundle ${i.bundlePath}`,async()=>{for(let c of i.subjects){let l=Ko.default.join(a,c.name);S(`Verifying signed artifact ${l}`);let u=["verify-blob-attestation",...await this.bundleFormatArgs(),"--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??zue];(r.noTransparencyLog||!i.tlogID)&&u.push("--use-signed-timestamps","--insecure-ignore-tlog");let d=await Y.getExecOutput(this.cosign.binPath,[...u,"--bundle",i.bundlePath,l],{ignoreReturnCode:!0});if(d.stderr.length>0&&d.exitCode!=0)throw new Error(d.stderr);n[l]={bundlePath:i.bundlePath,cosignArgs:u}}})}return n}async verifyArtifact(e,r,n){S("Verifying keyless verification bundle signature");let s=JSON.parse(jo.default.readFileSync(r,"utf-8")),i=(0,bf.bundleFromJSON)(s);S("Fetching Sigstore TUF trusted root metadata");let a=await Jue.getTrustedRoot(),c=(0,wf.toTrustMaterial)(a);try{S("Verifying artifact signature");let l=(0,wf.toSignedEntity)(i,jo.default.readFileSync(e)),u=t.parseCertificate(i),d=i.verificationMaterial.tlogEntries,A=d.length>0?d[0].logIndex:void 0;if(n?.subjectAlternativeName&&n?.subjectAlternativeName instanceof RegExp){let h=u.subjectAltName?.replace(/^uri:/i,"");if(h){if(!h.match(n.subjectAlternativeName))throw new Error(`Signing certificate subjectAlternativeName "${h}" does not match expected pattern`)}else throw new Error("Signing certificate does not contain subjectAltName")}let f=new wf.Verifier(c).verify(l,{subjectAlternativeName:n?.subjectAlternativeName&&typeof n.subjectAlternativeName=="string"?n.subjectAlternativeName:void 0,extensions:n?.issuer?{issuer:n.issuer}:void 0});return B(`Sigstore.verifyArtifact signer: ${JSON.stringify(f)}`),{payload:s,certificate:u.toString(),tlogID:A}}catch(l){throw new Error(`Failed to verify artifact signature: ${l}`)}}static noTransparencyLog(e){return e??Ke.context.payload.repository?.private??!1}async cosignSigningConfigArgs(e){let r=[],n=t.noTransparencyLog(e.noTransparencyLog);if(S(`Upload to transparency log: ${n?"disabled":"enabled"}`),await this.cosign.versionSatisfies(">=3.0.4")){let s=await this.useRekorV2(e);await ot("Creating Sigstore protobuf signing config",async()=>{let i=De.tmpName({template:"signing-config-XXXXXX.json",tmpdir:De.tmpDir()}),a=["signing-config","create",s?"--with-default-rekor-v2=true":"--with-default-services=true",`--out=${i}`];n&&a.push("--no-default-rekor=true"),await Y.exec(this.cosign.binPath,a,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),S(JSON.stringify(JSON.parse(jo.default.readFileSync(i,{encoding:"utf-8"})),null,2)),r.push(`--signing-config=${i}`)})}else r.push("--use-signing-config"),n&&r.push("--tlog-upload=false");return r}async logTransparencyUpload(e,r){if(await this.useRekorV2(r)){S(`Attestation signature uploaded to Rekor v2 transparency log with index ${e}`);return}S(`Attestation signature uploaded to Rekor transparency log: ${Bf}?logIndex=${e}`)}async useRekorV2(e){return e.rekorV2===!0&&!t.noTransparencyLog(e.noTransparencyLog)&&await this.cosign.versionSatisfies(">=3.1.1")}static getProvenanceBlobs(e){let r=Ko.default.join(e.localExportDir,"provenance.json");if(jo.default.existsSync(r))return{[r]:jo.default.readFileSync(
# syntax=docker/dockerfile:1
ARG GO_VERSION="1.24"
ARG ALPINE_VERSION="3.22"
FROM --platform=$BUILDPLATFORM tonistiigi/xx:1.7.0 AS xx
FROM --platform=$BUILDPLATFORM golang:\${GO_VERSION}-alpine\${ALPINE_VERSION} AS builder-base
COPY --from=xx / /
RUN apk add --no-cache git
ENV GOTOOLCHAIN=auto
ENV CGO_ENABLED=0
WORKDIR /src
RUN --mount=type=cache,target=/go/pkg/mod \\
--mount=type=bind,source=go.mod,target=go.mod \\
--mount=type=bind,source=go.sum,target=go.sum \\
go mod download
FROM builder-base AS version
RUN --mount=type=bind,target=. <<'EOT'
git rev-parse HEAD 2>/dev/null || {
echo >&2 "Failed to get git revision, make sure --build-arg BUILDKIT_CONTEXT_KEEP_GIT_DIR=1 is set when building from Git directly"
exit 1
}
set -ex
export PKG=sigs.k8s.io BUILDDATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ") TREESTATE=$(if ! git diff --no-ext-diff --quiet --exit-code; then echo dirty; else echo clean; fi) VERSION=$(git describe --match 'v[0-9]*' --dirty='.m' --always --tags) COMMIT=$(git rev-parse HEAD)$(if ! git diff --no-ext-diff --quiet --exit-code; then echo .m; fi);
echo "-X \${PKG}/release-utils/version.gitVersion=\${VERSION} -X \${PKG}/release-utils/version.gitCommit=\${COMMIT} -X \${PKG}/release-utils/version.gitTreeState=\${TREESTATE} -X \${PKG}/release-utils/version.buildDate=\${BUILDDATE}" > /tmp/.ldflags;
echo -n "\${VERSION}" > /tmp/.version;
EOT
FROM builder-base AS builder
ARG TARGETPLATFORM
RUN --mount=type=bind,target=. \\
--mount=type=cache,target=/root/.cache,id=cosign-$TARGETPLATFORM \\
--mount=source=/tmp/.ldflags,target=/tmp/.ldflags,from=version \\
--mount=type=cache,target=/go/pkg/mod <<EOT
set -ex
xx-go build -trimpath -ldflags "-s -w $(cat /tmp/.ldflags)" -o /out/cosign ./cmd/cosign
xx-verify --static /out/cosign
EOT
FROM scratch
COPY --from=builder /out /
`;var ix=class t{static{o(this,"Install")}githubToken;buildx;sigstore;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.buildx=e?.buildx||new _e,this.sigstore=e?.sigstore||new hl}async download(e){let r=await t.getDownloadVersion(e.version);B(`Install.download version: ${r.version}`);let n=await t.getRelease(r,this.githubToken);B(`Install.download release tag name: ${n.tag_name}`);let s=await this.vspec(n.tag_name);B(`Install.download vspec: ${s}`);let i=Qf.clean(s)||"";if(!Qf.valid(i))throw new Error(`Invalid Cosign version "${s}".`);let a=new Er({htcName:"cosign-dl-bin",htcVersion:s,baseCacheDir:xf.default.join(_i.default.homedir(),".bin"),cacheFile:_i.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:e.ghaNoCache}),c=await a.find();if(c)return S(`Cosign binary found in ${c}`),c;let l=cG.format(r.downloadURL,s,this.filename());S(`Downloading ${l}`);let u=await xs(l,void 0,this.githubToken);B(`Install.download htcDownloadPath: ${u}`),e.verifySignature&&Qf.satisfies(s,">=3.0.1")&&await this.verifySignature(u,l);let d=await a.save(u,e.skipState);return S(`Cached to ${d}`),d}async build(e,r,n){let s=await this.vspec(e);B(`Install.build vspec: ${s}`);let i=new Er({htcName:"cosign-build-bin",htcVersion:s,baseCacheDir:xf.default.join(_i.default.homedir(),".bin"),cacheFile:_i.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),a=await i.find();if(a)return S(`Cosign binary found in ${a}`),a;let c=xf.default.join(De.tmpDir(),"cosign-build-cache"),l=await this.buildCommand(e,c),u=await Y.getExecOutput(l.command,l.args,{ignoreReturnCode:!0,input:Buffer.from(Wue)}).then(A=>{if(A.stderr.length>0&&A.exitCode!=0)throw new Error(`build failed with: ${A.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return`${c}/cosign`}),d=await i.save(u,n);return S(`Cached to ${d}`),d}async install(e,r){r=r||De.tmpDir();let n=xf.default.join(r,"cosign-bin");TE.default.existsSync(n)||TE.default.mkdirSync(n,{recursive:!0});let s=_i.default.platform()=="win32"?"cosign.exe":"cosign",i=xf.default.join(n,s);return TE.default.copyFileSync(e,i),S("Fixing perms"),TE.default.chmodSync(i,"0755"),Yi(n),S("Added Cosign to PATH"),S(`Binary path: ${i}`),i}async buildCommand(e,r){let n=await new _e({standalone:!0}).isAvailable(),s=await new _e({standalone:!1}).isAvailable(),i=!1;if(await this.buildx.isStandalone()&&n)B("Install.buildCommand: Buildx standalone found, build with it"),i=!0;else if(!await this.buildx.isStandalone()&&s)B("Install.buildCommand: Buildx plugin found, build with it"),i=!1;else if(n)B("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),i=!0;else if(s)B("Install.buildCommand: Buildx standalone not found, but plugin found so trying to build with it"),i=!1;else throw new Error(`Neither buildx standalone or plugin have been found to build from ref ${e}`);let a=["build","--platform","local","--build-arg","BUILDKIT_CONTEXT_KEEP_GIT_DIR=1","--output",`type=local,dest=${r}`];return process.env.GIT_AUTH_TOKEN&&a.push("--secret","id=GIT_AUTH_TOKEN"),a.push("-f-",e),await new _e({standalone:i}).getCommand(a)}async verifySignature(e,r){let n=`${r}.sigstore.json`;S(`Downloading keyless verification bundle at ${n}`);let s=await xs(n,void 0,this.githubToken);B(`Install.verifySignature bundlePath: ${s}`);let i=await this.sigstore.verifyArtifact(e,s,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});S(`Cosign binary signature verified! ${i.tlogID?`${Bf}?logIndex=${i.tlogID}`:""}`)}filename(){let e;switch(_i.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=_i.default.arch();break}}let r=_i.default.platform()=="win32"?"windows":_i.default.platform(),n=_i.default.platform()=="win32"?".exe":"";return cG.format("cosign-%s-%s%s",r,e,n)}async vspec(e){if(!Oe.isValidRef(e)){let u=e.replace(/^v+|v+$/g,"");return S(`Use ${u} version spec cache key for ${e}`),u}let[r,n]=e.split("#");n.length==0&&(n="master");let s;n.match(/^[0-9a-fA-F]{40}$/)?s=n:s=await Vp.remoteSha(
/*! Bundled license information:
undici/lib/web/fetch/body.js:
(*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> *)
undici/lib/web/websocket/frame.js:
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
tmp/lib/tmp.js:
(*!
* Tmp
*
* Copyright (c) 2011-2017 KARASZI Istvan <github@spam.raszi.hu>
*
* MIT Licensed
*)
js-yaml/dist/js-yaml.mjs:
(*! js-yaml 5.4.0 https://github.com/nodeca/js-yaml @license MIT *)
@octokit/request-error/dist-src/index.js:
(* v8 ignore else -- @preserve -- Bug with vitest coverage where it sees an else branch that doesn't exist *)
@octokit/request/dist-bundle/index.js:
(* v8 ignore next -- @preserve *)
(* v8 ignore else -- @preserve *)
*/
//# sourceMappingURL=index.cjs.map