Files
metadata-action/dist/index.cjs

381 lines
3.6 MiB
JavaScript
Raw Normal View History

var Hje=Object.create;var fB=Object.defineProperty;var Xje=Object.getOwnPropertyDescriptor;var Vje=Object.getOwnPropertyNames;var jje=Object.getPrototypeOf,$je=Object.prototype.hasOwnProperty;var o=(t,e)=>fB(t,"name",{value:e,configurable:!0});var Yje=(t,e)=>()=>(t&&(e=t(t=0)),e);var b=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Zne=(t,e)=>{for(var r in e)fB(t,r,{get:e[r],enumerable:!0})},Jje=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Vje(e))!$je.call(t,s)&&s!==r&&fB(t,s,{get:()=>e[s],enumerable:!(n=Xje(e,s))||n.enumerable});return t};var _=(t,e,r)=>(r=t!=null?Hje(jje(t)):{},Jje(e||!t||!t.__esModule?fB(r,"default",{value:t,enumerable:!0}):r,t));var ose=b(mh=>{"use strict";var Es0=require("net"),n$e=require("tls"),B_=require("http"),nse=require("https"),s$e=require("events"),ys0=require("assert"),i$e=require("util");mh.httpOverHttp=o$e;mh.httpsOverHttp=a$e;mh.httpOverHttps=c$e;mh.httpsOverHttps=u$e;function o$e(t){var e=new lu(t);return e.request=B_.request,e}o(o$e,"httpOverHttp");function a$e(t){var e=new lu(t);return e.request=B_.request,e.createSocket=sse,e.defaultPort=443,e}o(a$e,"httpsOverHttp");function c$e(t){var e=new lu(t);return e.request=nse.request,e}o(c$e,"httpOverHttps");function u$e(t){var e=new lu(t);return e.request=nse.request,e.createSocket=sse,e.defaultPort=443,e}o(u$e,"httpsOverHttps");function lu(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||B_.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(n,s,i,a){for(var c=ise(s,i,a),u=0,p=e.requests.length;u<p;++u){var l=e.requests[u];if(l.host===c.host&&l.port===c.port){e.requests.splice(u,1),l.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)},"onFree"))}o(lu,"TunnelingAgent");i$e.inherits(lu,s$e.EventEmitter);lu.prototype.addRequest=o(function(e,r,n,s){var i=this,a=D_({request:e},i.options,ise(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(a);return}i.createSocket(a,function(c){c.on("free",u),c.on("close",p),c.on("agentRemove",p),e.onSocket(c);function u(){i.emit("free",c,a)}o(u,"onFree");function p(l){i.removeSocket(c),c.removeListener("free",u),c.removeListener("close",p),c.removeListener("agentRemove",p)}o(p,"onCloseOrRemove")})},"addRequest");lu.prototype.createSocket=o(function(e,r){var n=this,s={};n.sockets.push(s);var i=D_({},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")),ll("making CONNECT request");var a=n.request(i);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",u),a.once("connect",p),a.once("error",l),a.end();function c(A){A.upgrade=!0}o(c,"onResponse");function u(A,d,h){process.nextTick(function(){p(A,d,h)})}o(u,"onUpgrade");function p(A,d,h){if(a.removeAllListeners(),d.removeAllListeners(),A.statusCode!==200){ll("tunneling socket could not be established, statusCode=%d",A.statusCode),d.destroy();var m=new Error("tunneling socket could not be established, statusCode="+A.statusCode);m.code="ECONNRESET",e.request.emit("error",m),n.removeSocket(s);return}if(h.length>0){ll("got illegal response body from proxy"),d.destroy();var m=new Error("got illegal response body from proxy");m.code="ECONNRESET",e.request.emit("error",m),n.removeSocket(s);return}return ll("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}o(p,"onConnect");function l(A){a.removeAllListeners(),ll(`tunneling socket could not be established, cause=%s
`,A.message,A.stack);var d=new Error("tunneling socket could not be established, cause="+A.message);d.code="ECONNRESET",e.request.emit("error",d),n.removeSocket(s)}o(l,"onError")},"createSocket");lu.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 sse(t,e){var r=this;lu.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=D_({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),a=n$e.connect(0,i);r.sockets[r.sockets.indexOf(n)]=a,e(a)})}o(sse,"createSecureSocket");function ise(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}o(ise,"toOptions");function D_(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(D_,"mergeOptions");var ll;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?ll=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"):ll=o(function(){},"debug");mh.debug=ll});var uz=b((Ds0,ase)=>{ase.exports=ose()});var h0=b((qs0,cse)=>{cse.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 Et=b((Is0,vse)=>{"use strict";var use=Symbol.for("undici.error.UND_ERR"),b0=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[use]===!0}[use]=!0},pse=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),q_=class extends b0{static{o(this,"ConnectTimeoutError")}constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_E
`)||t.includes("\r")||t.includes("\0"))===!1}o(Xie,"isValidHeaderValue");function BJe(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(uJe.has(a)){s=a;break}}s!==""&&(t.referrerPolicy=s)}o(BJe,"setRequestReferrerPolicyOnRedirect");function DJe(){return"allowed"}o(DJe,"crossOriginResourcePolicyCheck");function qJe(){return"success"}o(qJe,"corsCheck");function IJe(){return"success"}o(IJe,"TAOCheck");function RJe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}o(RJe,"appendFetchMetadata");function wJe(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&&yW(t.origin)&&!yW(mz(t))&&(e=null);break;case"same-origin":LB(t,mz(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}o(wJe,"appendRequestOriginHeader");function Ih(t,e){return t}o(Ih,"coarsenTime");function SJe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Ih(t.domainLookupStartTime,r),domainLookupEndTime:Ih(t.domainLookupEndTime,r),connectionStartTime:Ih(t.connectionStartTime,r),connectionEndTime:Ih(t.connectionEndTime,r),secureConnectionStartTime:Ih(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}o(SJe,"clampAndCoarsenConnectionTimingInfo");function NJe(t){return Ih(fJe.now(),t)}o(NJe,"coarsenedSharedCurrentTime");function vJe(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(vJe,"createOpaqueTimingInfo");function Vie(){return{referrerPolicy:"strict-origin-when-cross-origin"}}o(Vie,"makePolicyContainer");function FJe(t){return{referrerPolicy:t.referrerPolicy}}o(FJe,"clonePolicyContainer");function TJe(t){let e=t.referrerPolicy;ld(e);let r=null;if(t.referrer==="client"){let c=Pie();if(!c||c.origin==="null")return"no-referrer";r=new URL(c)}else t.referrer instanceof URL&&(r=t.referrer);let n=EW(r),s=EW(r,!0);n.toString().length>4096&&(n=s);let i=LB(t,n),a=Mz(n)&&!Mz(t.url);switch(e){case"origin":return s??EW(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=mz(t);return LB(n,c)?n:Mz(n)&&!Mz(c)?"no-referrer":s}default:return a?"no-referrer":s}}o(TJe,"determineRequestsReferrer");function EW(t,e){return ld(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(EW,"stripURLForReferrer");function Mz(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(Mz,"isURLPotentiallyTrustworthy");function xJe(t,e){if(WB===void 0)return!0;let r=jie(e);if(r==="no metadata"||r.length===0)return!0;let n=WJe(r),s=LJe(r,n);for(let i of s){let a=i.algo,c=i.hash,u=WB.createHash(a).update(t).digest("base64");if(u[u.length-1]==="="&&(u[u.length-2]==="="?u=u.slice(0,-2):u=u.slice(0,-1)),QJe(u,c))return!0}return!1}o(xJe,"bytesMatch");var _Je=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)(
`);function yKe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}o(yKe,"isAsciiString");function CKe(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(CKe,"validateBoundary");function BKe(t,e){PB(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&&kB(t,OKe,i)||i.position===t.length-4&&kB(t,EKe,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let c=DKe(t,i);if(c==="failure")return"failure";let{name:u,filename:p,contentType:l,encoding:A}=c;i.position+=2;let d;{let m=t.indexOf(n.subarray(2),i.position);if(m===-1)return"failure";d=t.subarray(i.position,m-4),i.position+=d.length,A==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;p!==null?(l??="text/plain",yKe(l)||(l=""),h=new gKe([d],p,{type:l})):h=fKe(Buffer.from(d)),PB(aoe(u)),PB(typeof h=="string"&&aoe(h)||bKe(h)),s.push(MKe(u,h,p))}}o(BKe,"multipartFormDataParser");function DKe(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=wh(c=>c!==10&&c!==13&&c!==58,t,e);if(a=wW(a,!0,!0,c=>c===9||c===32),!hKe.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,wh(c=>c===32||c===9,t,e),dKe(a)){case"content-disposition":{if(r=n=null,!kB(t,zKe,e)||(e.position+=17,r=poe(t,e),r===null))return"failure";if(kB(t,uoe,e)){let c=e.position+uoe.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,n=poe(t,e),n===null))return"failure"}break}case"content-type":{let c=wh(u=>u!==10&&u!==13,t,e);c=wW(c,!1,!0,u=>u===9||u===32),s=coe(c);break}case"content-transfer-encoding":{let c=wh(u=>u!==10&&u!==13,t,e);c=wW(c,!1,!0,u=>u===9||u===32),i=coe(c);break}default:wh(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}o(DKe,"parseMultipartFormDataHeaders");function poe(t,e){PB(t[e.position-1]===34);let r=wh(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(poe,"parseMultipartFormDataName");function wh(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}o(wh,"collectASequenceOfBytes");function wW(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(wW,"removeChars");function kB(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(kB,"bufferStartsWith");loe.exports={multipartFormDataParser:BKe,validateBoundary:CKe}});var vh=b((fi0,Eoe)=>{"use strict";var Oz=it(),{ReadableStreamFrom:qKe,isBlobLike:doe,isReadableStreamLike:IKe,readableStreamClose:RKe,createDeferredPromise:wKe,fullyReadBody:SKe,extractMimeType:NKe,utf8DecodeBytes:boe}=gs(),{FormData:foe}=zz(),{kState:Nh}=Al(),{webidl:vKe}=cr(),{Blob:FKe}=require("node:buffer"),SW=require("node:assert"),{isErrored:Moe,isDisturbed:TKe}=require("node:stream"),{isArrayBuffer:xKe}=require("node:util/types"),{serializeAMimeType:_Ke}=Fn(),{multipartFormDataParser:WKe}=Aoe(),NW;try{let t=require("node:crypto");NW=o(e=>t.randomInt(0,e),"random")}catch{NW=o(t=>Math.floor(Math.random(t)),"random")}var UB=new TextEncoder;function LKe(){}o(LKe,"noop");var moe=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,goe;moe&&(goe=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!TKe(e)&&!Moe(e)&&e.cancel("Response object has been garbage collected").catch(LKe)}));function zoe(t,e=!1){let r=null;t instanceof ReadableStream?r=t:doe(t)?r=t.stream():r=new ReadableStream({async pull(u){let p=typeof s=="string"?UB.encode(s):s;p.byteLength&&u.enqueue(p),queueMicrotask(()=>RKe(u))},start(){},type:"bytes"}),SW(IKe(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(xKe(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(Oz.isFormDataLike(t)){let u=`----formdata-undici-0${`${NW(1e11)}`.padStart(11,"0")}`,p=`--${u}\r
Content-Disposition: form-data`;let l=o(C=>C.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"escape"),A=o(C=>C.replace(/\r?\n|\r/g,`\r
`),"normalizeLinefeeds"),d=[],h=new Uint8Array([13,10]);i=0;let m=!1;for(let[C,E]of t)if(typeof E=="string"){let B=UB.encode(p+`; name="${l(A(C))}"\r
\r
${A(E)}\r
`);d.push(B),i+=B.byteLength}else{let B=UB.encode(`${p}; name="${l(A(C))}"`+(E.name?`; filename="${l(E.name)}"`:"")+`\r
Content-Type: ${E.type||"application/octet-stream"}\r
\r
`);d.push(B,E,h),typeof E.size=="number"?i+=B.byteLength+E.size+h.byteLength:m=!0}let z=UB.encode(`--${u}--\r
`);d.push(z),i+=z.byteLength,m&&(i=null),s=t,n=o(async function*(){for(let C of d)C.stream?yield*C.stream():yield C},"action"),a=`multipart/form-data; boundary=${u}`}else if(doe(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(Oz.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:qKe(t)}if((typeof s=="string"||Oz.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let u;r=new ReadableStream({async start(){u=n(t)[Symbol.asyncIterator]()},async pull(p){let{value:l,done:A}=await u.next();if(A)queueMicrotask(()=>{p.close(),p.byobRequest?.respond(0)});else if(!Moe(r)){let d=new Uint8Array(l);d.byteLength&&p.enqueue(d)}return p.desiredSize>0},async cancel(p){await u.return()},type:"bytes"})}return[{stream:r,source:s,length:i},a]}o(zoe,"extractBody");function QKe(t,e=!1){return t instanceof ReadableStream&&(SW(!Oz.isDisturbed(t),"The body has already been consumed."),SW(!t.locked,"The stream is locked.")),zoe(t,e)}o(QKe,"safelyExtractBody");function PKe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}o(PKe,"cloneBody");function kKe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}o(kKe,"throwIfAborted");function UKe(t){return{blob(){return Sh(this,r=>{let n=hoe(this);return n===null?n="":n&&(n=_Ke(n)),new FKe([r],{type:n})},t)},arrayBuffer(){return Sh(this,r=>new Uint8Array(r).buffer,t)},text(){return Sh(this,boe,t)},json(){return Sh(this,HKe,t)},formData(){return Sh(this,r=>{let n=hoe(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=WKe(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new foe;return i[Nh]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new foe;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 Sh(this,r=>new Uint8Array(r),t)}}}o(UKe,"bodyMixinMethods");function GKe(t){Object.assign(t.prototype,UKe(t))}o(GKe,"mixinBody");async function Sh(t,e,r){if(vKe.brandCheck(t,r),Ooe(t))throw new TypeError("Body is unusable: Body has already been read");kKe(t[Nh]);let n=wKe(),s=o(a=>n.reject(a),"errorSteps"),i=o(a=>{try{n.resolve(e(a))}catch(c){s(c)}},"successSteps");return t[Nh].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await SKe(t[Nh].body,i,s),n.promise)}o(Sh,"consumeBody");function Ooe(t){let e=t[Nh].body;return e!=null&&(e.stream.locked||Oz.isDisturbed(e.stream))}o(Ooe,"bodyUnusable");function HKe(t){return JSON.parse(boe(t))}o(HKe,"parseJSONFromBytes");function hoe(t){let e=t[Nh].headersList,r=NKe(e);return r==="failure"?null:r}o(hoe,"bodyMimeType");Eoe.exports={extractBody:zoe,safelyExtractBody:QKe,cloneBody:PKe,mixinBody:GKe,streamRegistry:goe,hasFinalizationRegistry:moe,bodyUnusable:Ooe}});var Woe=b((bi0,_oe)=>{"use strict";var we=require("node:assert"),Fe=it(),{channels:yoe}=zh(),vW=fW(),{RequestContentLengthMismatchError:Ad,ResponseContentLengthMismatchError:Coe,RequestAbortedError:Noe,HeadersTimeoutError:XKe,HeadersOverflowError:VKe,SocketError:Fh,InformationalError:Th,BodyTimeoutError:jKe,HTTPParserError:$Ke,ResponseExceededMaxSizeError:YKe}=Et(),{kUrl:voe,kReset:Tn,kClient:VB,kParser:a0,kBlocking:Cz,kRunning:d1,kPending:Foe,kSize:Boe,kWriting:dl,kQueue:zo,kNoRef:Ez,kKeepAliveDefaultTimeout:JKe,kHostHeader:KKe,kPendingIdx:ZKe,kRunningIdx:fi,kError:jr,kPipelining:jB,kSocket:fd,kKeepAliveTimeoutValue:YB,kMaxHeadersSize:FW,kKeepAliveMaxTimeout:eZe,kKeepAliveTimeoutThreshold:tZe,kHeadersTimeout:rZe,kBodyTimeout:nZe,kStrictContentLength:_W,kMaxRequests:Doe,kCounter:sZe,kMaxResponseSize:iZe,kOnError:qoe,kResume:Mu,kHTTPContext:Toe}=h0(),zs=gie(),Ioe=Buffer.alloc(0),GB=Buffer[Symbol.species],HB=Fe.addListener,oZe=Fe.removeAllListeners,hd=Symbol("kIdleSocketValidation"),dd=Symbol("kIdleSocketValidationTimeout"),PW=Symbol("kSocketUsed"),TW;async function aZe(){let t=p
`;if(typeof s=="string"?z+=`host: ${s}\r
`:z+=t[KKe],i?z+=`connection: upgrade\r
upgrade: ${i}\r
`:t[jB]&&!h[Tn]?z+=`connection: keep-alive\r
`:z+=`connection: close\r
`,Array.isArray(p))for(let C=0;C<p.length;C+=2){let E=p[C+0],B=p[C+1];if(Array.isArray(B))for(let I=0;I<B.length;I++)z+=`${E}: ${B[I]}\r
`;else z+=`${E}: ${B}\r
`}return yoe.sendHeaders.hasSubscribers&&yoe.sendHeaders.publish({request:e,headers:z,socket:h}),!u||d===0?woe(m,null,t,e,h,l,z,A):Fe.isBuffer(u)?woe(m,u,t,e,h,l,z,A):Fe.isBlobLike(u)?typeof u.stream=="function"?Soe(m,u.stream(),t,e,h,l,z,A):hZe(m,u,t,e,h,l,z,A):Fe.isStream(u)?fZe(m,u,t,e,h,l,z,A):Fe.isIterable(u)?Soe(m,u,t,e,h,l,z,A):we(!1),!0}o(dZe,"writeH1");function fZe(t,e,r,n,s,i,a,c){we(i!==0||r[d1]===0,"stream body cannot be pipelined");let u=!1,p=new JB({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:c,header:a}),l=o(function(m){if(!u)try{!p.write(m)&&this.pause&&this.pause()}catch(z){Fe.destroy(this,z)}},"onData"),A=o(function(){u||e.resume&&e.resume()},"onDrain"),d=o(function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!u){let m=new Noe;queueMicrotask(()=>h(m))}},"onClose"),h=o(function(m){if(!u){if(u=!0,we(s.destroyed||s[dl]&&r[d1]<=1),s.off("drain",A).off("error",h),e.removeListener("data",l).removeListener("end",h).removeListener("close",d),!m)try{p.end()}catch(z){m=z}p.destroy(m),m&&(m.code!=="UND_ERR_INFO"||m.message!=="reset")?Fe.destroy(e,m):Fe.destroy(e)}},"onFinished");e.on("data",l).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",A).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}o(fZe,"writeStream");function woe(t,e,r,n,s,i,a,c){try{e?Fe.isBuffer(e)&&(we(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[Tn]=!0)):i===0?s.write(`${a}content-length: 0\r
\r
`,"latin1"):(we(i===null,"no body must not have content length"),s.write(`${a}\r
`,"latin1")),n.onRequestSent(),r[Mu]()}catch(u){t(u)}}o(woe,"writeBuffer");async function hZe(t,e,r,n,s,i,a,c){we(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Ad;let u=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${a}content-length: ${i}\r
\r
`,"latin1"),s.write(u),s.uncork(),n.onBodySent(u),n.onRequestSent(),!c&&n.reset!==!1&&(s[Tn]=!0),r[Mu]()}catch(u){t(u)}}o(hZe,"writeBlob");async function Soe(t,e,r,n,s,i,a,c){we(i!==0||r[d1]===0,"iterator body cannot be pipelined");let u=null;function p(){if(u){let d=u;u=null,d()}}o(p,"onDrain");let l=o(()=>new Promise((d,h)=>{we(u===null),s[jr]?h(s[jr]):u=d}),"waitForDrain");s.on("close",p).on("drain",p);let A=new JB({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:c,header:a});try{for await(let d of e){if(s[jr])throw s[jr];A.write(d)||await l()}A.end()}catch(d){A.destroy(d)}finally{s.off("close",p).off("drain",p)}}o(Soe,"writeIterable");var JB=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[dl]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:a,expectsPayload:c,header:u}=this;if(r[jr])throw r[jr];if(r.destroyed)return!1;let p=Buffer.byteLength(e);if(!p)return!0;if(s!==null&&a+p>s){if(i[_W])throw new Ad;process.emitWarning(new Ad)}r.cork(),a===0&&(!c&&n.reset!==!1&&(r[Tn]=!0),s===null?r.write(`${u}transfer-encoding: chunked\r
`,"latin1"):r.write(`${u}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${p.toString(16)}\r
`,"latin1"),this.bytesWritten+=p;let l=r.write(e);return r.uncork(),n.onBodySent(e),l||r[a0].timeout&&r[a0].timeoutType===xh&&r[a0].timeout.refresh&&r[a0].timeout.refresh(),l}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:a,request:c}=this;if(c.onRequestSent(),e[dl]=!1,e[jr])throw e[jr];if(!e.destroyed){if(s===0?i?e.write(`${a}content-length: 0\r
\r
`,"latin1"):e.write(`${a}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(n[_W])throw new Ad;process.emitWarning(new Ad)}e[a0].timeout&&e[a0].timeoutType===xh&&e[a0].timeout.refresh&&e[a0].timeout.refresh(),n[Mu]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[dl]=!1,e&&(we(n[d1]<=1,"pipeline should only contain this request"),s(e))}};_oe.exports=uZe});var Xoe=b((mi0,Hoe)=>{"use strict";var hi=require("node:assert"),{pipeline:bZe}=require("node:stream"),lt=it(),{RequestContentLengthMismatchError:kW,RequestAbortedError:Loe,SocketError:Bz,InformationalError:UW}=Et(),{kUrl:KB,kReset:eD,kClient:_h,kRunning:tD,kPending:MZe,kQueue:fl,kPendingIdx:GW,kRunningIdx:Oo,kError:yo,kSocket:S1,kStrictContentLength:mZe,kOnError:HW,kMaxConcurrentStreams:Goe,kHTTP2Session:Eo,kResume:hl,kSize:gZe,kHTTPContext:zZe}=h0(),mu=Symbol("open streams"),Qoe,Poe=!1,ZB;try{ZB=require("node:http2")}catch{ZB={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:OZe,HTTP2_HEADER_METHOD:EZe,HTTP2_HEADER_PATH:yZe,HTTP2_HEADER_SCHEME:CZe,HTTP2_HEADER_CONTENT_LENGTH:BZe,HTTP2_HEADER_EXPECT:DZe,HTTP2_HEADER_STATUS:qZe}}=ZB;function IZe(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(IZe,"parseH2Headers");async function RZe(t,e){t[S1]=e,Poe||(Poe=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=ZB.connect(t[KB],{createConnection:o(()=>e,"createConnection"),peerMaxConcurrentStreams:t[Goe]});r[mu]=0,r[_h]=t,r[S1]=e,lt.addListener(r,"error",SZe),lt.addListener(r,"frameError",NZe),lt.addListener(r,"end",vZe),lt.addListener(r,"goaway",FZe),lt.addListener(r,"close",function(){let{[_h]:s}=this,{[S1]:i}=s,a=this[S1][yo]||this[yo]||new Bz("closed",lt.getSocketInfo(i));if(s[Eo]=null,s.destroyed){hi(s[MZe]===0);let c=s[fl].splice(s[Oo]);for(let u=0;u<c.length;u++){let p=c[u];lt.errorRequest(s,p,a)}}}),r.unref(),t[Eo]=r,e[Eo]=r,lt.addListener(e,"error",function(s){hi(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[yo]=s,this[_h][HW](s)}),lt.addListener(e,"end",function(){lt.destroy(this,new Bz("other side closed",lt.getSocketInfo(this)))}),lt.addListener(e,"close",function(){let s=this[yo]||new Bz("closed",lt.getSocketInfo(this));t[S1]=null,this[Eo]!=null&&this[Eo].destroy(s),t[GW]=t[Oo],hi(t[tD]===0),t.emit("disconnect",t[KB],[t],s),t[hl]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return xZe(t,...s)},resume(){wZe(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}o(RZe,"connectH2");function wZe(t){let e=t[S1];e?.destroyed===!1&&(t[gZe]===0&&t[Goe]===0?(e.unref(),t[Eo].unref()):(e.ref(),t[Eo].ref()))}o(wZe,"resumeH2");function SZe(t){hi(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[S1][yo]=t,this[_h][HW](t)}o(SZe,"onHttp2SessionError");function NZe(t,e,r){if(r===0){let n=new UW(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[S1][yo]=n,this[_h][HW](n)}}o(NZe,"onHttp2FrameError");function vZe(){let t=new Bz("other side closed",lt.getSocketInfo(this[S1]));this.destroy(t),lt.destroy(this[S1],t)}o(vZe,"onHttp2SessionEnd");function FZe(t){let e=this[yo]||new Bz(`HTTP/2: "GOAWAY" frame received with code ${t}`,lt.getSocketInfo(this)),r=this[_h];if(r[S1]=null,r[zZe]=null,this[Eo]!=null&&(this[Eo].destroy(e),this[Eo]=null),lt.destroy(this[S1],e),r[Oo]<r[fl].length){let n=r[fl][r[Oo]];r[fl][r[Oo]++]=null,lt.errorRequest(r,n,e),r[GW]=r[Oo]}hi(r[tD]===0),r.emit("disconnect",r[KB],[r],e),r[hl]()}o(FZe,"onHTTP2GoAway");function TZe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o(TZe,"shouldSendContentLength");function xZe(t,e){let r=t[Eo],{method:n,path:s,host:i,upgrade:a,expectContinue:c,signal:u,headers:p}=e,{body:l}=e;if(a)return lt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let A={};for(let w=0;w<p.length;w+=2){let N=p[w+0],x=p[w+1];if(Array.isArray(x))for(let Q=0;Q<x.length;Q++)A[N]?A[N]+=`,${x[Q]}`:A[N]=x[Q];else A[N]=x}let d,{hostname:h,port:m}=t[KB];A[OZ
`,this[cet]=u??3e5,this[aet]=s??3e5,this[uet]=B??!0,this[pet]=w,this[$W]=x,this[Ml]=null,this[bet]=$>-1?$:-1,this[met]=Z??100,this[$0]=null,this[Co]=[],this[zu]=0,this[Bo]=0,this[Rz]=J=>JW(this,J),this[Met]=J=>sae(this,J)}get pipelining(){return this[iD]}set pipelining(e){this[iD]=e,this[Rz](!0)}get[Nz](){return this[Co].length-this[Bo]}get[Sz](){return this[Bo]-this[zu]}get[wz](){return this[Co].length-this[zu]}get[eet](){return!!this[$0]&&!this[Lh]&&!this[$0].destroyed}get[jW](){return!!(this[$0]?.busy(null)||this[wz]>=(nae(this)||1)||this[Nz]>0)}[ZZe](e){iae(this),this.once("connect",e)}[het](e,r){let n=e.origin||this[ma].origin,s=new VZe(n,e,r);return this[Co].push(s),this[Md]||(bd.bodyLength(s.body)==null&&bd.isIterable(s.body)?(this[Md]=1,queueMicrotask(()=>JW(this))):this[Rz](!0)),this[Md]&&this[ml]!==2&&this[jW]&&(this[ml]=2),this[ml]<2}async[det](){return new Promise(e=>{this[wz]?this[Ml]=e:e(null)})}async[fet](e){return new Promise(r=>{let n=this[Co].splice(this[Bo]);for(let i=0;i<n.length;i++){let a=n[i];bd.errorRequest(this,a,e)}let s=o(()=>{this[Ml]&&(this[Ml](),this[Ml]=null),r(null)},"callback");this[$0]?(this[$0].destroy(e,s),this[$0]=null):queueMicrotask(s),this[Rz]()})}},Oet=sD();function sae(t,e){if(t[Sz]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){gu(t[Bo]===t[zu]);let r=t[Co].splice(t[zu]);for(let n=0;n<r.length;n++){let s=r[n];bd.errorRequest(t,s,e)}gu(t[wz]===0)}}o(sae,"onError");async function iae(t){gu(!t[Lh]),gu(!t[$0]);let{host:e,hostname:r,protocol:n,port:s}=t[ma];if(r[0]==="["){let i=r.indexOf("]");gu(i!==-1);let a=r.substring(1,i);gu(rae.isIP(a)),r=a}t[Lh]=!0,Wh.beforeConnect.hasSubscribers&&Wh.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[$0]?.version,servername:t[bl],localAddress:t[Iz]},connector:t[qz]});try{let i=await new Promise((a,c)=>{t[qz]({host:e,hostname:r,protocol:n,port:s,servername:t[bl],localAddress:t[Iz]},(u,p)=>{u?c(u):a(p)})});if(t.destroyed){bd.destroy(i.on("error",eae),new YZe);return}gu(i);try{t[$0]=i.alpnProtocol==="h2"?await zet(t,i):await get(t,i)}catch(a){throw i.destroy().on("error",eae),a}t[Lh]=!1,i[Aet]=0,i[$W]=t[$W],i[KZe]=t,i[ret]=null,Wh.connected.hasSubscribers&&Wh.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[$0]?.version,servername:t[bl],localAddress:t[Iz]},connector:t[qz],socket:i}),t.emit("connect",t[ma],[t])}catch(i){if(t.destroyed)return;if(t[Lh]=!1,Wh.connectError.hasSubscribers&&Wh.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[$0]?.version,servername:t[bl],localAddress:t[Iz]},connector:t[qz],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(gu(t[Sz]===0);t[Nz]>0&&t[Co][t[Bo]].servername===t[bl];){let a=t[Co][t[Bo]++];bd.errorRequest(t,a,i)}else sae(t,i);t.emit("connectionError",t[ma],[t],i)}t[Rz]()}o(iae,"connect");function tae(t){t[ml]=0,t.emit("drain",t[ma],[t])}o(tae,"emitDrain");function JW(t,e){t[Md]!==2&&(t[Md]=2,Eet(t,e),t[Md]=0,t[zu]>256&&(t[Co].splice(0,t[zu]),t[Bo]-=t[zu],t[zu]=0))}o(JW,"resume");function Eet(t,e){for(;;){if(t.destroyed){gu(t[Nz]===0);return}if(t[Ml]&&!t[wz]){t[Ml](),t[Ml]=null;return}if(t[$0]&&t[$0].resume(),t[jW])t[ml]=2;else if(t[ml]===2){e?(t[ml]=1,queueMicrotask(()=>tae(t))):tae(t);continue}if(t[Nz]===0||t[Sz]>=(nae(t)||1))return;let r=t[Co][t[Bo]];if(t[ma].protocol==="https:"&&t[bl]!==r.servername){if(t[Sz]>0)return;t[bl]=r.servername,t[$0]?.destroy(new $Ze("servername changed"),()=>{t[$0]=null,JW(t)})}if(t[Lh])return;if(!t[$0]){iae(t);return}if(t[$0].destroyed||t[$0].busy(r))return;!r.aborted&&t[$0].write(r)?t[Bo]++:t[Co].splice(t[Bo],1)}}o(Eet,"_resume");oae.exports=YW});var KW=b((qi0,aae)=>{"use strict";var oD=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)}
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};Bue.exports=i8});var CD=b((Ro0,wue)=>{"use strict";var que=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:p1t}=Et(),l1t=kh();Rue()===void 0&&Iue(new l1t);function Iue(t){if(!t||typeof t.dispatch!="function")throw new p1t("Argument agent must implement Agent");Object.defineProperty(globalThis,que,{value:t,writable:!0,enumerable:!1,configurable:!1})}o(Iue,"setGlobalDispatcher");function Rue(){return globalThis[que]}o(Rue,"getGlobalDispatcher");wue.exports={setGlobalDispatcher:Iue,getGlobalDispatcher:Rue}});var BD=b((No0,Sue)=>{"use strict";Sue.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 vue=b((Fo0,Nue)=>{"use strict";var A1t=nD();Nue.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 u=new A1t(r,a,s,i);return r(c,u)},"redirectInterceptor")}});var Tue=b((xo0,Fue)=>{"use strict";var d1t=fD();Fue.exports=t=>e=>o(function(n,s){return e(n,new d1t({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))},"retryInterceptor")});var _ue=b((Wo0,xue)=>{"use strict";var f1t=it(),{InvalidArgumentError:h1t,RequestAbortedError:b1t}=Et(),M1t=BD(),o8=class extends M1t{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 h1t("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=f1t.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new b1t(`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 m1t({maxSize:t}={maxSize:1024*1024}){return e=>o(function(n,s){let{dumpMaxSize:i=t}=n,a=new o8({maxSize:i},s);return e(n,a)},"Intercept")}o(m1t,"createDumpInterceptor");xue.exports=m1t});var Que=b((Qo0,Lue)=>{"use strict";var{isIP:g1t}=require("node:net"),{lookup:z1t}=require("node:dns"),O1t=BD(),{InvalidArgumentError:Kh,InformationalError:E1t}=Et(),Wue=Math.pow(2,31)-1,a8=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 E1t("No DNS entries found"));return}this.setRecords(e,c);let u=this.#n.get(e.hostname),p=this.pick(e,u,i.affinity),l;typeof p.port=="number"?l=`:${p.port}`:e.port!==""?l=`:${e.port}`:l="",n(null,`${e.protocol}//${p.family===6?`[${p.address}]`:p.address}${l}`)});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){z1t(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:
${i}`;break;case"retry":gAe(i)&&(r[s]=i);break;case"id":zAe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&gAe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&zAe(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}}};OAe.exports={EventSourceStream:$8}});var wAe=b((Ua0,RAe)=>{"use strict";var{pipeline:wit}=require("node:stream"),{fetching:Sit}=Vz(),{makeRequest:Nit}=tb(),{webidl:Bu}=cr(),{EventSourceStream:vit}=EAe(),{parseMIMEType:Fit}=Fn(),{createFastMessageEvent:Tit}=ab(),{isNetworkError:yAe}=Hz(),{delay:xit}=V8(),{kEnumerableProperty:vd}=it(),{environmentSettingsObject:CAe}=gs(),BAe=!1,DAe=3e3,aO=0,qAe=1,cO=2,_it="anonymous",Wit="use-credentials",Ab=class t extends EventTarget{static{o(this,"EventSource")}#e={open:null,error:null,message:null};#t=null;#n=!1;#r=aO;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),Bu.util.markAsUncloneable(this);let n="EventSource constructor";Bu.argumentLengthCheck(arguments,1,n),BAe||(BAe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Bu.converters.USVString(e,n,"url"),r=Bu.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:DAe};let s=CAe,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(u){throw new DOMException(u,"SyntaxError")}this.#t=i.href;let a=_it;r.withCredentials&&(a=Wit,this.#n=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=CAe.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=Nit(c),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===cO)return;this.#r=aO;let e={request:this.#s,dispatcher:this.#a},r=o(n=>{yAe(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#l()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=n=>{if(yAe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#l();return}let s=n.headersList.get("content-type",!0),i=s!==null?Fit(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=qAe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let c=new vit({eventSourceSettings:this.#o,push:o(u=>{this.dispatchEvent(Tit(u.type,u.options))},"push")});wit(n.body.stream,c,u=>{u?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=Sit(e)}async#l(){this.#r!==cO&&(this.#r=aO,this.dispatchEvent(new Event("error")),await xit(this.#o.reconnectionTime),this.#r===aO&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#c()))}close(){Bu.brandCheck(this,t),this.#r!==cO&&(this.#r=cO,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}},IAe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:aO,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:qAe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,val
%s`,N,N,B,n);var x=B.type==="*"?eP:B.type==="?"?ZQ:"\\"+B.type;s=!0,n=n.slice(0,B.reStart)+x+"\\("+N}m(),i&&(n+="\\\\");var Q=!1;switch(n.charAt(0)){case"[":case".":case"(":Q=!0}for(var $=c.length-1;$>-1;$--){var me=c[$],De=n.slice(0,me.reStart),Z=n.slice(me.reStart,me.reEnd-8),qe=n.slice(me.reEnd-8,me.reEnd),Y=n.slice(me.reEnd);qe+=Y;var J=De.split("(").length-1,ve=Y;for(z=0;z<J;z++)ve=ve.replace(/\)[+*?]?/,"");Y=ve;var re="";Y===""&&e!==xq&&(re="$");var ze=De+Z+Y+re+qe;n=ze}if(n!==""&&s&&(n="(?=.)"+n),Q&&(n=d+n),e===xq)return[n,s];if(!s)return Mpt(t);var at=r.nocase?"i":"";try{var Lt=new RegExp("^"+n+"$",at)}catch{return new RegExp("$.")}return Lt._glob=t,Lt._src=n,Lt}o(hpt,"parse");Ns.makeRe=function(t,e){return new lr(t,e||{}).makeRe()};lr.prototype.makeRe=bpt;function bpt(){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?eP:e.dot?cpt:upt,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(a){return a===tP?r:typeof a=="string"?mpt(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(bpt,"makeRe");Ns.match=function(t,e,r){r=r||{};var n=new lr(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};lr.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;wO.sep!=="/"&&(e=e.split(wO.sep).join("/")),e=e.split(Wfe),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],u=e;n.matchBase&&c.length===1&&(u=[i]);var p=this.matchOne(u,c,r);if(p)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate},"match");lr.prototype.matchOne=function(t,e,r){var n=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var s=0,i=0,a=t.length,c=e.length;s<a&&i<c;s++,i++){this.debug("matchOne loop");var u=e[i],p=t[s];if(this.debug(e,u,p),u===!1)return!1;if(u===tP){this.debug("GLOBSTAR",[e,u,p]);var l=s,A=i+1;if(A===c){for(this.debug("** at the end");s<a;s++)if(t[s]==="."||t[s]===".."||!n.dot&&t[s].charAt(0)===".")return!1;return!0}for(;l<a;){var d=t[l];if(this.debug(`
globstar while`,t,l,e,A,d),this.matchOne(t.slice(l),e.slice(A),r))return this.debug("globstar found match!",l,a,d),!0;if(d==="."||d===".."||!n.dot&&d.charAt(0)==="."){this.debug("dot detected!",t,l,e,A);break}this.debug("globstar swallow a segment, and continue"),l++}return!!(r&&(this.debug(`
>>> no match, partial?`,t,l,e,A),l===a))}var h;if(typeof u=="string"?(h=p===u,this.debug("string match",u,p,h)):(h=p.match(u),this.debug("pattern match",u,p,h)),!h)return!1}if(s===a&&i===c)return!0;if(s===a)return r;if(i===c)return s===a-1&&t[s]==="";throw new Error("wtf?")};function Mpt(t){return t.replace(/\\(.)/g,"$1")}o(Mpt,"globUnescape");function mpt(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}o(mpt,"regExpEscape")});var Bb=b((OA0,Hfe)=>{"use strict";var Dpt="2.0.0",qpt=Number.MAX_SAFE_INTEGER||9007199254740991,Ipt=16,Rpt=250,wpt=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Hfe.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Ipt,MAX_SAFE_BUILD_LENGTH:Rpt,MAX_SAFE_INTEGER:qpt,RELEASE_TYPES:wpt,SEMVER_SPEC_VERSION:Dpt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var vO=b((EA0,Xfe)=>{"use strict";var Spt=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Xfe.exports=Spt});var Db=b((qa,Vfe)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:nP,MAX_SAFE_BUILD_LENGTH:Npt,MAX_LENGTH:vpt}=Bb(),Fpt=vO();qa=Vfe.exports={};var Tpt=qa.re=[],xpt=qa.safeRe=[],fe=qa.src=[],_pt=qa.safeSrc=[],he=qa.t={},Wpt=0,sP="[a-zA-Z0-9-]",Lpt=[["\\s",1],["\\d",vpt],[sP,Npt]],Qpt=o(t=>{for(let[e,r]of Lpt)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),Ye=o((t,e,r)=>{let n=Qpt(e),s=Wpt++;Fpt(t,s,e),he[t]=s,fe[s]=e,_pt[s]=n,Tpt[s]=new RegExp(e,r?"g":void 0),xpt[s]=new RegExp(n,r?"g":void 0)},"createToken");Ye("NUMERICIDENTIFIER","0|[1-9]\\d*");Ye("NUMERICIDENTIFIERLOOSE","\\d+");Ye("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${sP}*`);Ye("MAINVERSION",`(${fe[he.NUMERICIDENTIFIER]})\\.(${fe[he.NUMERICIDENTIFIER]})\\.(${fe[he.NUMERICIDENTIFIER]})`);Ye("MAINVERSIONLOOSE",`(${fe[he.NUMERICIDENTIFIERLOOSE]})\\.(${fe[he.NUMERICIDENTIFIERLOOSE]})\\.(${fe[he.NUMERICIDENTIFIERLOOSE]})`);Ye("PRERELEASEIDENTIFIER",`(?:${fe[he.NONNUMERICIDENTIFIER]}|${fe[he.NUMERICIDENTIFIER]})`);Ye("PRERELEASEIDENTIFIERLOOSE",`(?:${fe[he.NONNUMERICIDENTIFIER]}|${fe[he.NUMERICIDENTIFIERLOOSE]})`);Ye("PRERELEASE",`(?:-(${fe[he.PRERELEASEIDENTIFIER]}(?:\\.${fe[he.PRERELEASEIDENTIFIER]})*))`);Ye("PRERELEASELOOSE",`(?:-?(${fe[he.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${fe[he.PRERELEASEIDENTIFIERLOOSE]})*))`);Ye("BUILDIDENTIFIER",`${sP}+`);Ye("BUILD",`(?:\\+(${fe[he.BUILDIDENTIFIER]}(?:\\.${fe[he.BUILDIDENTIFIER]})*))`);Ye("FULLPLAIN",`v?${fe[he.MAINVERSION]}${fe[he.PRERELEASE]}?${fe[he.BUILD]}?`);Ye("FULL",`^${fe[he.FULLPLAIN]}$`);Ye("LOOSEPLAIN",`[v=\\s]*${fe[he.MAINVERSIONLOOSE]}${fe[he.PRERELEASELOOSE]}?${fe[he.BUILD]}?`);Ye("LOOSE",`^${fe[he.LOOSEPLAIN]}$`);Ye("GTLT","((?:<|>)?=?)");Ye("XRANGEIDENTIFIERLOOSE",`${fe[he.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Ye("XRANGEIDENTIFIER",`${fe[he.NUMERICIDENTIFIER]}|x|X|\\*`);Ye("XRANGEPLAIN",`[v=\\s]*(${fe[he.XRANGEIDENTIFIER]})(?:\\.(${fe[he.XRANGEIDENTIFIER]})(?:\\.(${fe[he.XRANGEIDENTIFIER]})(?:${fe[he.PRERELEASE]})?${fe[he.BUILD]}?)?)?`);Ye("XRANGEPLAINLOOSE",`[v=\\s]*(${fe[he.XRANGEIDENTIFIERLOOSE]})(?:\\.(${fe[he.XRANGEIDENTIFIERLOOSE]})(?:\\.(${fe[he.XRANGEIDENTIFIERLOOSE]})(?:${fe[he.PRERELEASELOOSE]})?${fe[he.BUILD]}?)?)?`);Ye("XRANGE",`^${fe[he.GTLT]}\\s*${fe[he.XRANGEPLAIN]}$`);Ye("XRANGELOOSE",`^${fe[he.GTLT]}\\s*${fe[he.XRANGEPLAINLOOSE]}$`);Ye("COERCEPLAIN",`(^|[^\\d])(\\d{1,${nP}})(?:\\.(\\d{1,${nP}}))?(?:\\.(\\d{1,${nP}}))?`);Ye("COERCE",`${fe[he.COERCEPLAIN]}(?:$|[^\\d])`);Ye("COERCEFULL",fe[he.COERCEPLAIN]+`(?:${fe[he.PRERELEASE]})?(?:${fe[he.BUILD]})?(?:$|[^\\d])`);Ye("COERCERTL",fe[he.COERCE],!0);Ye("COERCERTLFULL",fe[he.COERCEFULL],!0);Ye("LONETILDE","(?:~>?)");Ye("TILDETRIM",`(\\s*)${fe[he.LONETILDE]}\\s+`,!0);qa.tildeTrimReplace="$1~";Ye("TILDE",`^${fe[he.LONETILDE]}${fe[he.XRANGEPLAIN]}$`);Ye("TILDELOOSE",`^${fe[he.LONETILDE]}${fe[he.XRANGEPLAINLOOSE]}$`);Ye("LONECARET","(?:\\^)");Ye("CARETTRIM",`(\\s*)${fe[he.LONECARET]}\\s+`,!0);qa.caretTrimReplace="$1^";Ye("CARET",`^${fe[he.LONECARET]}${fe[he.XRANGEPLAIN]}$`);Ye("CARETLOOSE",`^${fe[he.LONECAR
`).join(`
`+i),t.push(s+"m+"+BI.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=R2t()+e+" "+t[0]}o(I2t,"formatArgs");function R2t(){return fr.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(R2t,"getDate");function w2t(...t){return process.stderr.write(CI.format(...t)+`
`)}o(w2t,"log");function S2t(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(S2t,"save");function N2t(){return process.env.DEBUG}o(N2t,"load");function v2t(t){t.inspectOpts={};let e=Object.keys(fr.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=fr.inspectOpts[e[r]]}o(v2t,"init");BI.exports=VP()(fr);var{formatters:RMe}=BI.exports;RMe.o=function(t){return this.inspectOpts.colors=this.useColors,CI.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};RMe.O=function(t){return this.inspectOpts.colors=this.useColors,CI.inspect(t,this.inspectOpts)}});var $d=b((dh0,JP)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?JP.exports=CMe():JP.exports=wMe()});var vMe=b(Pn=>{"use strict";var F2t=Pn&&Pn.__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]})),T2t=Pn&&Pn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),SMe=Pn&&Pn.__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)&&F2t(e,t,r);return T2t(e,t),e};Object.defineProperty(Pn,"__esModule",{value:!0});Pn.req=Pn.json=Pn.toBuffer=void 0;var x2t=SMe(require("http")),_2t=SMe(require("https"));async function NMe(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}o(NMe,"toBuffer");Pn.toBuffer=NMe;async function W2t(t){let r=(await NMe(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}o(W2t,"json");Pn.json=W2t;function L2t(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?_2t:x2t).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(L2t,"req");Pn.req=L2t});var _Me=b(_s=>{"use strict";var TMe=_s&&_s.__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]})),Q2t=_s&&_s.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),xMe=_s&&_s.__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)&&TMe(e,t,r);return Q2t(e,t),e},P2t=_s&&_s.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&TMe(e,t,r)};Object.defineProperty(_s,"__esModule",{value:!0});_s.Agent=void 0;var k2t=xMe(require("net")),FMe=xMe(require("http")),U2t=require("https");P2t(vMe(),_s);var Sa=Symbol("AgentBaseInternalState"),KP=class extends FMe.Agent{static{o(this,"Agent")}constructor(e){super(e),this[Sa]={}}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 k2t.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)?U2t.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 FMe.Agent)try{return c.addRequest(e,s)}catch(u){return n(u)}this[Sa].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(i,a),n(c)})}createConnection(){let e=this[Sa].currentSocket;if(this[Sa].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Sa].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Sa]&&(this[Sa].defaultPort=e)}get protocol(){return this[Sa].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Sa]&&(this[Sa].protocol=e)}};_s.Agent=KP});var WMe=b(xb=>{"use strict";var G2t=xb&&xb.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(xb,"__esModule",{value:!0});xb.parseProxyResponse=void 0;var H2t=G2t($d()),DI=(0,H2t.default)("https-proxy-agent:parse-proxy-response");function X2t(t){return new Promise((e,r)=>{let n=0,s=[];function i(){let l=t.read();l?p(l):t.once("readable",i)}o(i,"read");function a(){t.removeListener("end",c),t.removeListener("error",u),t.removeListener("readable",i)}o(a,"cleanup");function c(){a(),DI("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}o(c,"onend");function u(l){a(),DI("onerror %o",l),r(l)}o(u,"onerror");function p(l){s.push(l),n+=l.length;let A=Buffer.concat(s,n),d=A.indexOf(`\r
\r
`);if(d===-1){DI("have not received end of HTTP headers yet..."),i();return}let h=A.slice(0,d).toString("ascii").split(`\r
`),m=h.shift();if(!m)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let z=m.split(" "),C=+z[1],E=z.slice(2).join(" "),B={};for(let I of h){if(!I)continue;let w=I.indexOf(":");if(w===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${I}"`));let N=I.slice(0,w).toLowerCase(),x=I.slice(w+1).trimStart(),Q=B[N];typeof Q=="string"?B[N]=[Q,x]:Array.isArray(Q)?Q.push(x):B[N]=x}DI("got proxy server response: %o %o",m,B),a(),e({connect:{statusCode:C,statusText:E,headers:B},buffered:A})}o(p,"ondata"),t.on("error",u),t.on("end",c),i()})}o(X2t,"parseProxyResponse");xb.parseProxyResponse=X2t});var GMe=b(Ri=>{"use strict";var V2t=Ri&&Ri.__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]})),j2t=Ri&&Ri.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),kMe=Ri&&Ri.__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)&&V2t(e,t,r);return j2t(e,t),e},UMe=Ri&&Ri.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ri,"__esModule",{value:!0});Ri.HttpsProxyAgent=void 0;var qI=kMe(require("net")),LMe=kMe(require("tls")),$2t=UMe(require("assert")),Y2t=UMe($d()),J2t=_Me(),K2t=require("url"),Z2t=WMe(),jO=(0,Y2t.default)("https-proxy-agent"),QMe=o(t=>t.servername===void 0&&t.host&&!qI.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),II=class extends J2t.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new K2t.URL(e):e,this.proxyHeaders=r?.headers??{},jO("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?PMe(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:"?(jO("Creating `tls.Socket`: %o",this.connectOpts),s=LMe.connect(QMe(this.connectOpts))):(jO("Creating `net.Socket`: %o",this.connectOpts),s=qI.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=qI.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
`;if(n.username||n.password){let d=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(d).toString("base64")}`}i.Host=`${a}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(i))c+=`${d}: ${i[d]}\r
`;let u=(0,Z2t.parseProxyResponse)(s);s.write(`${c}\r
`);let{connect:p,buffered:l}=await u;if(e.emit("proxyConnect",p),this.emit("proxyConnect",p,e),p.statusCode===200)return e.once("socket",eft),r.secureEndpoint?(jO("Upgrading socket connection to TLS"),LMe.connect({...PMe(QMe(r),"host","path","port"),socket:s})):s;s.destroy();let A=new qI.Socket({writable:!1});return A.readable=!0,e.once("socket",d=>{jO("Replaying proxy buffer for failed request"),(0,$2t.default)(d.listenerCount("data")>0),d.push(l),d.push(null)}),A}};II.protocols=["http","https"];Ri.HttpsProxyAgent=II;function eft(t){t.resume()}o(eft,"resume");function PMe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o(PMe,"omit")});var VMe=b(kn=>{"use strict";var tft=kn&&kn.__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]})),rft=kn&&kn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),HMe=kn&&kn.__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)&&tft(e,t,r);return rft(e,t),e};Object.defineProperty(kn,"__esModule",{value:!0});kn.req=kn.json=kn.toBuffer=void 0;var nft=HMe(require("http")),sft=HMe(require("https"));async function XMe(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}o(XMe,"toBuffer");kn.toBuffer=XMe;async function ift(t){let r=(await XMe(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}o(ift,"json");kn.json=ift;function oft(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?sft:nft).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(oft,"req");kn.req=oft});var $O=b(Ws=>{"use strict";var $Me=Ws&&Ws.__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]})),aft=Ws&&Ws.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),YMe=Ws&&Ws.__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)&&$Me(e,t,r);return aft(e,t),e},cft=Ws&&Ws.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&$Me(e,t,r)};Object.defineProperty(Ws,"__esModule",{value:!0});Ws.Agent=void 0;var uft=YMe(require("net")),jMe=YMe(require("http")),pft=require("https");cft(VMe(),Ws);var Na=Symbol("AgentBaseInternalState"),ZP=class extends jMe.Agent{static{o(this,"Agent")}constructor(e){super(e),this[Na]={}}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 uft.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))?pft.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 jMe.Agent)return c.addRequest(e,s);this[Na].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(i,a),n(c)})}createConnection(){let e=this[Na].currentSocket;if(this[Na].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Na].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Na]&&(this[Na].defaultPort=e)}get protocol(){return this[Na].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Na]&&(this[Na].protocol=e)}};Ws.Agent=ZP});var ek=b(wi=>{"use strict";var lft=wi&&wi.__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]})),Aft=wi&&wi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),KMe=wi&&wi.__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)&&lft(e,t,r);return Aft(e,t),e},dft=wi&&wi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(wi,"__esModule",{value:!0});wi.HttpProxyAgent=void 0;var fft=KMe(require("net")),hft=KMe(require("tls")),bft=dft($d()),Mft=require("events"),mft=$O(),JMe=require("url"),_b=(0,bft.default)("http-proxy-agent"),RI=class extends mft.Agent{static{o(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new JMe.URL(e):e,this.proxyHeaders=r?.headers??{},_b("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?gft(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 JMe.URL(e.path,a);r.port!==80&&(c.port=String(r.port)),e.path=String(c);let u=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let p=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;u["Proxy-Authorization"]=`Basic ${Buffer.from(p).toString("base64")}`}u["Proxy-Connection"]||(u["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let p of Object.keys(u)){let l=u[p];l&&e.setHeader(p,l)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;_b("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(_b("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),_b("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(_b("Creating `tls.Socket`: %o",this.connectOpts),i=hft.connect(this.connectOpts)):(_b("Creating `net.Socket`: %o",this.connectOpts),i=fft.connect(this.connectOpts)),await(0,Mft.once)(i,"connect"),i}};RI.protocols=["http","https"];wi.HttpProxyAgent=RI;function gft(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o(gft,"omit")});var zme=b(UI=>{"use strict";Object.defineProperty(UI,"__esModule",{value:!0});UI.state=void 0;UI.state={instrumenterImplementation:void 0}});var _me=b(jI=>{"use strict";Object.defineProperty(jI,"__esModule",{value:!0});jI.state=void 0;jI.state={operationRequestMap:new WeakMap}});var hOe=b(tM=>{"use strict";Object.defineProperty(tM,"__esModule",{value:!0});var Lgt=require("os"),Qgt=require("util");function Pgt(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}o(Pgt,"_interopDefaultLegacy");var kgt=Pgt(Qgt);function Ugt(t,...e){process.stderr.write(`${kgt.default.format(t,...e)}${Lgt.EOL}`)}o(Ugt,"log");var iOe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,aOe,NG=[],vG=[],d5=[];iOe&&FG(iOe);var cOe=Object.assign(t=>uOe(t),{enable:FG,enabled:TG,disable:Ggt,log:Ugt});function FG(t){aOe=t,NG=[],vG=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?vG.push(new RegExp(`^${n.substr(1)}$`)):NG.push(new RegExp(`^${n}$`));for(let n of d5)n.enabled=TG(n.namespace)}o(FG,"enable");function TG(t){if(t.endsWith("*"))return!0;for(let e of vG)if(e.test(t))return!1;for(let e of NG)if(e.test(t))return!0;return!1}o(TG,"enabled");function Ggt(){let t=aOe||"";return FG(""),t}o(Ggt,"disable");function uOe(t){let e=Object.assign(r,{enabled:TG(t),destroy:Hgt,log:cOe.log,namespace:t,extend:Xgt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return o(r,"debug"),d5.push(e),e}o(uOe,"createDebugger");function Hgt(){let t=d5.indexOf(this);return t>=0?(d5.splice(t,1),!0):!1}o(Hgt,"destroy");function Xgt(t){let e=uOe(`${this.namespace}:${t}`);return e.log=this.log,e}o(Xgt,"extend");var x3=cOe,pOe=new Set,l5=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,f5,h5=x3("azure");h5.log=(...t)=>{x3.log(...t)};var xG=["verbose","info","warning","error"];l5&&(fOe(l5)?lOe(l5):console.error(`AZURE_LOG_LEVEL set to unknown log level '${l5}'; logging is not enabled. Acceptable values: ${xG.join(", ")}.`));function lOe(t){if(t&&!fOe(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${xG.join(",")}`);f5=t;let e=[];for(let r of pOe)dOe(r)&&e.push(r.namespace);x3.enable(e.join(","))}o(lOe,"setLogLevel");function Vgt(){return f5}o(Vgt,"getLogLevel");var oOe={verbose:400,info:300,warning:200,error:100};function jgt(t){let e=h5.extend(t);return AOe(h5,e),{error:A5(e,"error"),warning:A5(e,"warning"),info:A5(e,"info"),verbose:A5(e,"verbose")}}o(jgt,"createClientLogger");function AOe(t,e){e.log=(...r)=>{t.log(...r)}}o(AOe,"patchLogMethod");function A5(t,e){let r=Object.assign(t.extend(e),{level:e});if(AOe(t,r),dOe(r)){let n=x3.disable();x3.enable(n+","+r.namespace)}return pOe.add(r),r}o(A5,"createLogger");function dOe(t){return!!(f5&&oOe[t.level]<=oOe[f5])}o(dOe,"shouldEnable");function fOe(t){return xG.includes(t)}o(fOe,"isAzureLogLevel");tM.AzureLogger=h5;tM.createClientLogger=jgt;tM.getLogLevel=Vgt;tM.setLogLevel=lOe});var LG=b(W3=>{"use strict";Object.defineProperty(W3,"__esModule",{value:!0});var rM=new WeakMap,b5=new WeakMap,_3=class t{static{o(this,"AbortSignal")}constructor(){this.onabort=null,rM.set(this,[]),b5.set(this,!1)}get aborted(){if(!b5.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return b5.get(this)}static get none(){return new t}addEventListener(e,r){if(!rM.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");rM.get(this).push(r)}removeEventListener(e,r){if(!rM.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=rM.get(this),s=n.indexOf(r);s>-
Polling from: ${r.config.operationLocation}
Operation status: ${l}
Polling status: ${BOe.includes(l)?"Stopped":"Running"}`),l==="succeeded"){let A=a(p,r);if(A!==void 0)return{response:await e(A).catch(yOe({state:r,stateProxy:n,isOperationError:c})),status:l}}return{response:p,status:l}}o(Czt,"pollOperationHelper");async function ROe(t){let{poll:e,state:r,stateProxy:n,options:s,getOperationStatus:i,getResourceLocation:a,getOperationLocation:c,isOperationError:u,withOperationLocation:p,getPollingInterval:l,processResult:A,getError:d,updateState:h,setDelay:m,isDone:z,setErrorAsResult:C}=t,{operationLocation:E}=r.config;if(E!==void 0){let{response:B,status:I}=await Czt({poll:e,getOperationStatus:i,state:r,stateProxy:n,operationLocation:E,getResourceLocation:a,isOperationError:u,options:s});if(qOe({status:I,response:B,state:r,stateProxy:n,isDone:z,processResult:A,getError:d,setErrorAsResult:C}),!BOe.includes(I)){let w=l?.(B);w&&m(w);let N=c?.(B,r);if(N!==void 0){let x=E!==N;r.config.operationLocation=N,p?.(N,x)}else p?.(E,!1)}h?.(r,B)}}o(ROe,"pollOperation");function wOe(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}o(wOe,"getOperationLocationPollingUrl");function SOe(t){return t.headers.location}o(SOe,"getLocationHeader");function NOe(t){return t.headers["operation-location"]}o(NOe,"getOperationLocationHeader");function vOe(t){return t.headers["azure-asyncoperation"]}o(vOe,"getAzureAsyncOperationHeader");function Bzt(t){var e;let{location:r,requestMethod:n,requestPath:s,resourceLocationConfig:i}=t;switch(n){case"PUT":return s;case"DELETE":return;case"PATCH":return(e=a())!==null&&e!==void 0?e:s;default:return a()}function a(){switch(i){case"azure-async-operation":return;case"original-uri":return s;default:return r}}o(a,"getDefault")}o(Bzt,"findResourceLocation");function FOe(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t,i=NOe(e),a=vOe(e),c=wOe({operationLocation:i,azureAsyncOperation:a}),u=SOe(e),p=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:Bzt({requestMethod:p,location:u,requestPath:n,resourceLocationConfig:s})}:u!==void 0?{mode:"ResourceLocation",operationLocation:u}:p==="PUT"&&n?{mode:"Body",operationLocation:n}:void 0}o(FOe,"inferLroMode");function TOe(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 YG(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 d2.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(TOe,"transformStatus");function Dzt(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return TOe({status:r,statusCode:t.statusCode})}o(Dzt,"getStatus");function qzt(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 TOe({status:i,statusCode:t.statusCode})}o(qzt,"getProvisioningState");function YG(t){return t===202?"running":t<300?"succeeded":"failed"}o(YG,"toOperationStatus");function xOe({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?Izt(new Date(e)):r*1e3}}o(xOe,"parseRetryAfter");function _Oe(t){let e=t.flatResponse.error;if(!e){d2.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){d2.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(_Oe,"getErrorFromResponse");function Izt(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}o(Izt,"calculatePollingIntervalFromDate");function WOe(t){let{response:e,state:r,operationLocation:n}=t;function s(){var a;switch
`: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(AOt,"base64decode");cM.base64decode=AOt;function dOt(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=Vu[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=Vu[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=Vu[s|n>>6],e+=Vu[n&63],r=0;break}return r&&(e+=Vu[s],e+="=",r==1&&(e+="=")),e}o(dOt,"base64encode");cM.base64encode=dOt});var h3e=b(T5=>{"use strict";Object.defineProperty(T5,"__esModule",{value:!0});T5.utf8read=void 0;var aH=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function fOt(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(aH(n)),s=0);return r.length?(s&&r.push(aH(n.slice(0,s))),r.join("")):aH(n.slice(0,s))}o(fOt,"utf8read");T5.utf8read=fOt});var X3=b(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});sc.WireType=sc.mergeBinaryOptions=sc.UnknownFieldHandler=void 0;var hOt;(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")})(hOt=sc.UnknownFieldHandler||(sc.UnknownFieldHandler={}));function bOt(t,e){return Object.assign(Object.assign({},t),e)}o(bOt,"mergeBinaryOptions");sc.mergeBinaryOptions=bOt;var MOt;(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"})(MOt=sc.WireType||(sc.WireType={}))});var _5=b($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.varint32read=$n.varint32write=$n.int64toString=$n.int64fromString=$n.varint64write=$n.varint64read=void 0;function mOt(){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(mOt,"varint64read");$n.varint64read=mOt;function gOt(t,e,r){for(let i=0;i<28;i=i+7){let a=t>>>i,c=!(!(a>>>7)&&e==0),u=(c?a|128:a)&255;if(r.push(u),!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),u=(c?a|128:a)&255;if(r.push(u),!c)return}r.push(e>>>31&1)}}o(gOt,"varint64write");$n.varint64write=gOt;var x5=65536*65536;function zOt(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function i(a,c){let u=Number(t.slice(a,c));s*=r,n=n*r+u,n>=x5&&(s=s+(n/x5|0),n=n%x5)}return o(i,"add1e6digit"),i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}o(zOt,"int64fromString");$n.int64fromString=zOt;function OOt(t,e){if(e>>>0<=2097151)return""+(x5*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,u=1e7;i>=u&&(a+=Math.floor(i/u),i%=u),a>=u&&(c+=Math.floor(a/u),a%=u);function p(l,A){let d=l?String(l):"";return A?"0000000".slice(d.length)+d:d}return o(p,"decimalFrom1e7"),p(c,0)+p(a,c)+p(i,1)}o(OOt,"int64toString");$n.int64toString=OOt;function EOt(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(EOt,"varint32write");$n.varint32write=EOt;function yOt(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return
`)}};pw.RpcError=FH});var xH=b(Aw=>{"use strict";Object.defineProperty(Aw,"__esModule",{value:!0});Aw.mergeRpcOptions=void 0;var j3e=t1();function H3t(t,e){if(!e)return t;let r={};lw(t,r),lw(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=j3e.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=j3e.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},lw(t.meta,r.meta),lw(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}o(H3t,"mergeRpcOptions");Aw.mergeRpcOptions=H3t;function lw(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(lw,"copy")});var WH=b(m2=>{"use strict";Object.defineProperty(m2,"__esModule",{value:!0});m2.Deferred=m2.DeferredState=void 0;var ac;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(ac=m2.DeferredState||(m2.DeferredState={}));var _H=class{static{o(this,"Deferred")}constructor(e=!0){this._state=ac.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!==ac.PENDING)throw new Error(`cannot resolve ${ac[this.state].toLowerCase()}`);this._resolve(e),this._state=ac.RESOLVED}reject(e){if(this.state!==ac.PENDING)throw new Error(`cannot reject ${ac[this.state].toLowerCase()}`);this._reject(e),this._state=ac.REJECTED}resolvePending(e){this._state===ac.PENDING&&this.resolve(e)}rejectPending(e){this._state===ac.PENDING&&this.reject(e)}};m2.Deferred=_H});var QH=b(dw=>{"use strict";Object.defineProperty(dw,"__esModule",{value:!0});dw.RpcOutputStreamController=void 0;var $3e=WH(),g2=t1(),LH=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){g2.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){g2.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){g2.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(){g2.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;g2.assert(e,"bad state"),g2.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 $3e.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;g2.assert(n.state==$3e.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};dw.RpcOutputStreamController=LH});var kH=b(hM=>{"use strict";var X3t=hM&&hM.__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(l){try{p(n.next(l))}catch(A){a(A)}}o(c,"fulfilled");function u(l){try{p(n.throw(l))}catch(A){a(A)}}o(u,"rejected");function p(l){l.done?i(l.value):s(l.value).then(c,u)}o(p,"step"),p((n=n.apply(t,e||[])).next())})};Object.definePrope
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(c4t,"logUnexpecedPropertyAccessOnce");function u4t(){Object.keys(Jw).forEach(function(t){delete Jw[t]})}o(u4t,"resetLoggedProperties")});var Zw=b(pc=>{"use strict";pc.__esModule=!0;pc.HandlebarsEnvironment=dV;function aCe(t){return t&&t.__esModule?t:{default:t}}o(aCe,"_interopRequireDefault");var I2=ln(),p4t=js(),lV=aCe(p4t),l4t=aV(),A4t=nCe(),d4t=uV(),Kw=aCe(d4t),f4t=pV(),h4t="4.7.9";pc.VERSION=h4t;var b4t=8;pc.COMPILER_REVISION=b4t;var M4t=7;pc.LAST_COMPATIBLE_COMPILER_REVISION=M4t;var m4t={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"};pc.REVISION_CHANGES=m4t;var AV="[object Object]";function dV(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},l4t.registerDefaultHelpers(this),A4t.registerDefaultDecorators(this)}o(dV,"HandlebarsEnvironment");dV.prototype={constructor:dV,logger:Kw.default,log:Kw.default.log,registerHelper:o(function(e,r){if(I2.toString.call(e)===AV){if(r)throw new lV.default("Arg not supported with multiple helpers");I2.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(I2.toString.call(e)===AV)I2.extend(this.partials,e);else{if(typeof r>"u")throw new lV.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(I2.toString.call(e)===AV){if(r)throw new lV.default("Arg not supported with multiple decorators");I2.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){f4t.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var g4t=Kw.default.log;pc.log=g4t;pc.createFrame=I2.createFrame;pc.logger=Kw.default});var uCe=b((eS,cCe)=>{"use strict";eS.__esModule=!0;function fV(t){this.string=t}o(fV,"SafeString");fV.prototype.toString=fV.prototype.toHTML=function(){return""+this.string};eS.default=fV;cCe.exports=eS.default});var pCe=b(hV=>{"use strict";hV.__esModule=!0;hV.wrapHelper=z4t;function z4t(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(z4t,"wrapHelper")});var bCe=b(nA=>{"use strict";nA.__esModule=!0;nA.checkRevision=D4t;nA.template=q4t;nA.wrapProgram=tS;nA.resolvePartial=I4t;nA.invokePartial=R4t;nA.noop=fCe;function O4t(t){return t&&t.__esModule?t:{default:t}}o(O4t,"_interopRequireDefault");function E4t(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(E4t,"_interopRequireWildcard");var y4t=ln(),wM=E4t(y4t),C4t=js(),Ku=O4t(C4t),Zu=Zw(),lCe=aV(),B4t=pCe(),ACe=pV();function D4t(t){var e=t&&t[0]||1,r=Zu.COMPILER_REVISION;if(!(e>=Zu.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Zu.COMPILER_REVISION))if(e<Zu.LAST_COMPATIBLE_COMPILER_REVISION){var n=Zu.REVISION_CHANGES[r],s=Zu.REVISION_CHANGES[e];throw new Ku.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 Ku.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(D4t,"checkRevision");function q4t(t,e){if(!e)throw new Ku.default("No environment passed to template");if(!t||!t.main)throw new Ku.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,u){u.hash&&(c=wM.extend({},c,u.hash),u.ids&&(u.ids[0]=!0)),a=e.VM.res
`),A=0,d=l.length;A<d&&!(!l[A]&&A+1===d);A++)l[A]=u.indent+l[A];p=l.join(`
`)}return p}else throw new Ku.default("The partial "+u.name+" could not be compiled when running in runtime-only mode")}o(n,"invokePartialWrapper");var s={strict:o(function(c,u,p){if(!c||!(u in c))throw new Ku.default('"'+u+'" not defined in '+c,{loc:p});return s.lookupProperty(c,u)},"strict"),lookupProperty:o(function(c,u){var p=c[u];if(p==null||Object.prototype.hasOwnProperty.call(c,u)||ACe.resultIsAllowed(p,s.protoAccessControl,u))return p},"lookupProperty"),lookup:o(function(c,u){for(var p=c.length,l=0;l<p;l++){var A=c[l]&&s.lookupProperty(c[l],u);if(A!=null)return A}},"lookup"),lambda:o(function(c,u){return typeof c=="function"?c.call(u):c},"lambda"),escapeExpression:wM.escapeExpression,invokePartial:n,fn:o(function(c){var u=t[c];return u.decorator=t[c+"_d"],u},"fn"),programs:[],program:o(function(c,u,p,l,A){var d=this.programs[c],h=this.fn(c);return u||A||l||p?d=tS(this,c,h,u,p,l,A):d||(d=this.programs[c]=tS(this,c,h)),d},"program"),data:o(function(c,u){for(;c&&u--;)c=c._parent;return c},"data"),mergeIfNeeded:o(function(c,u){var p=c||u;return c&&u&&c!==u&&(p=wM.extend({},u,c)),p},"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],u=c.data;i._setup(c),!c.partial&&t.useData&&(u=w4t(a,u));var p=void 0,l=t.useBlockParams?[]:void 0;t.useDepths&&(c.depths?p=a!=c.depths[0]?[a].concat(c.depths):c.depths:p=[a]);function A(d){return""+t.main(s,d,s.helpers,s.partials,u,l,p)}return o(A,"main"),A=hCe(t.main,A,s,c.depths||[],u,l),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={};dCe(c,e.helpers,s),dCe(c,a.helpers,s),s.helpers=c,t.usePartial&&(s.partials=s.mergeIfNeeded(a.partials,e.partials)),(t.usePartial||t.useDecorators)&&(s.decorators=wM.extend({},e.decorators,a.decorators)),s.hooks={},s.protoAccessControl=ACe.createProtoAccessControl(a);var u=a.allowCallsToHelperMissing||r;lCe.moveHelperToHooks(s,"helperMissing",u),lCe.moveHelperToHooks(s,"blockHelperMissing",u)}},i._child=function(a,c,u,p){if(t.useBlockParams&&!u)throw new Ku.default("must pass block params");if(t.useDepths&&!p)throw new Ku.default("must pass parent depths");return tS(s,a,t[a],c,0,u,p)},i}o(q4t,"template");function tS(t,e,r,n,s,i,a){function c(u){var p=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],l=a;return a&&u!=a[0]&&!(u===t.nullContext&&a[0]===null)&&(l=[u].concat(a)),r(t,u,t.helpers,t.partials,p.data||n,i&&[p.blockParams].concat(i),l)}return o(c,"prog"),c=hCe(r,c,t,a,n,i),c.program=e,c.depth=a?a.length:0,c.blockParams=s||0,c}o(tS,"wrapProgram");function I4t(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=rS(r.partials,t)):r.name==="@partial-block"?t=rS(r.data,"partial-block"):t=rS(r.partials,r.name),t}o(I4t,"resolvePartial");function R4t(t,e,r){var n=rS(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!==fCe&&(function(){r.data=Zu.createFrame(r.data);var i=r.fn;s=r.data["partial-block"]=o(function(c){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return u.data=Zu.createFrame(u.data),u.data["partial-block"]=n,i(c,u)},"partialBlockWrapper"),i.partials&&(r.partials=wM.extend({},r.partials,i.partials))})(),t===void 0&&s&&(t=s),t===void 0)throw new Ku.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}o(R4t,"invokePartial");function fCe(){return""}o(fCe,"noop");function rS(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}o(rS,"lookupOwnProperty");function w4t(t,e){return(!e||!("root"in e))&&(e=e?Zu.createFrame(e):{},e.root=t),e}o(w4t,"initData");function hCe(t,e,r,n,s,i){if(t.decorator){var a={};e=t.decorator(e,a,r,n&&n[0],s,i,n),wM.extend(e,a)}return e}o(hCe,"executeDecorators");function dCe(t,e,r){e&&Object.keys(e).forEach(function(n){var s=e[n];t[n]=S4t(s,r)})}o(dCe,"addHelpers");function S4t(t,e){var r=e.lookupProperty;return B4t
`+this.lexer.showPosition()+`
Expecting `+J.join(", ")+", got '"+(this.terminals_[w]||w)+"'":ve="Parse error on line "+(A+1)+": Unexpected "+(w==1?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(ve,{text:this.lexer.match,token:this.terminals_[w]||w,line:this.lexer.yylineno,loc:C,expected:J})}}if(Q[0]instanceof Array&&Q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+w);switch(Q[0]){case 1:a.push(w),c.push(this.lexer.yytext),u.push(this.lexer.yylloc),a.push(Q[1]),w=null,N?(w=N,N=null):(d=this.lexer.yyleng,l=this.lexer.yytext,A=this.lexer.yylineno,C=this.lexer.yylloc,h>0&&h--);break;case 2:if(qe=this.productions_[Q[1]][1],De.$=c[c.length-qe],De._$={first_line:u[u.length-(qe||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(qe||1)].first_column,last_column:u[u.length-1].last_column},E&&(De._$.range=[u[u.length-(qe||1)].range[0],u[u.length-1].range[1]]),me=this.performAction.call(De,l,d,A,this.yy,Q[1],c,u),typeof me<"u")return me;qe&&(a=a.slice(0,-1*qe*2),c=c.slice(0,-1*qe),u=u.slice(0,-1*qe)),a.push(this.productions_[Q[1]][0]),c.push(De.$),u.push(De._$),Y=p[a[a.length-2]][a[a.length-1]],a.push(Y);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 u=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 p=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===u.length?this.yylloc.first_column:0)+u[u.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[p[0],p[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,u,p,l;this._more||(this.yytext="",this.match="");for(var A=this._currentRules(),d=0;d<A.length&&(c=this._input.match(this.rules[A[d]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,u=d,!this.options.flex)));d++);return a?(l=a[0].match(/(?:\r\n?|\n).*/g),l&&(this.yylineno+=l.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:l?l[l.length-1].length-l[l.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[u],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,u){function p(A,d){return a.yytext=a.yytext.substring(A,a.yyleng-d+A)}o(p,"strip");var l=u;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(p(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(p(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:(p(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=p(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=p(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})();oS.default=P4t;BCe.exports=oS.default});var pS=b((uS,RCe)=>{"use strict";uS.__esModule=!0;function k4t(t){return t&&t.__esModule?t:{default:t}}o(k4t,"_interopRequireDefault");var U4t=js(),OV=k4t(U4t);function aS(){this.parents=[]}o(aS,"Visitor");aS.prototype={constructor:aS,mutating:!1,acceptKey:o(function(e,r){var n=this.accept(e[r]);if(this.mutating){if(n&&!aS.prototype[n.type])throw new OV.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 N2(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 N2?e:(e=UV(e,this,r),new N2(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=UV(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(UV(e[n],this));return r},"generateList"),generateArray:o(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};mS.default=p4e;l4e.exports=mS.default});var M4e=b((gS,b4e)=>{"use strict";gS.__esModule=!0;function h4e(t){return t&&t.__esModule?t:{default:t}}o(h4e,"_interopRequireDefault");var d4e=Zw(),QBt=js(),HV=h4e(QBt),PBt=ln(),kBt=A4e(),f4e=h4e(kBt);function xM(t){this.value=t}o(xM,"Literal");function _M(){}o(_M,"JavaScriptCompiler");_M.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=d4e.COMPILER_REVISION,r=d4e.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:o(function(e,r,n){return PBt.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,u=void 0,p=void 0;for(u=0,p=i.length;u<p;u++)a=i[u],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 HV.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) {
`),this.decorators.push(`}
`),this.decorators=this.decorators.merge()));var l=this.createFunctionContext(s);if(this.isChild)return l;var A={compiler:this.compilerInfo(),main:l};this.decorators&&(A.main_d=this.decorators,A.useDecorators=!0);var d=this.context,h=d.programs,m=d.decorators;for(u=0,p=h.length;u<p;u++)A[u]=h[u],m[u]&&(A[u+"_d"]=m[u],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 f4e.default(this.options.srcName),this.decorators=new f4e.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(u){var p=r.aliases[u];p.children&&p.referenceCount>1&&(n+=", alias"+ ++i+"="+u,p.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(u){u.appendToBuffer?(a?u.prepend(" + "):a=u,c=u):(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?"":`;
`)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:o(function(){return`
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(UBt(this.options.strict&&i,this,r,n,e));return}for(var c=r.length,u=o(function(l){a.replaceStack(function(A){var d=a.nameLookup(A,r[l],e);return s?[" && ",d]:[" != null ? ",d," : ",A]})},"_loop"),p=n;p<c;p++)u(p)},"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};L0.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};L0.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};L0.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};L0.prototype.BlockStatement=L0.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};L0.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+" }}")};L0.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+" }}")};L0.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};L0.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};L0.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};L0.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};L0.prototype.StringLiteral=function(t){return'"'+t.value+'"'};L0.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};L0.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};L0.prototype.UndefinedLiteral=function(){return"UNDEFINED"};L0.prototype.NullLiteral=function(){return"NULL"};L0.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(", ")+"}"};L0.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var jV=b((vT0,C4e)=>{var ES=z4e().default,y4e=O4e();ES.PrintVisitor=y4e.PrintVisitor;ES.print=y4e.print;C4e.exports=ES;function E4e(t,e){var r=require("fs"),n=r.readFileSync(e,"utf8");t.exports=ES.compile(n)}o(E4e,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=E4e,require.extensions[".hbs"]=E4e)});var qS=b(iA=>{"use strict";Object.defineProperty(iA,"__esModule",{value:!0});iA.Signature=iA.Envelope=void 0;iA.Envelope={fromJSON(t){return{payload:DS(t.payload)?Buffer.from(T4e(t.payload)):Buffer.alloc(0),payloadType:DS(t.payloadType)?globalThis.String(t.payloadType):"",signatures:globalThis.Array.isArray(t?.signatures)?t.signatures.map(e=>iA.Signature.fromJSON(e)):[]}},toJSON(t){let e={};return t.payload.length!==0&&(e.payload=x4e(t.payload)),t.payloadType!==""&&(e.payloadType=t.payloadType),t.signatures?.length&&(e.signatures=t.signatures.map(r=>iA.Signature.toJSON(r))),e}};iA.Signature={fromJSON(t){return{sig:DS(t.sig)?Buffer.from(T4e(t.sig)):Buffer.alloc(0),keyid:DS(t.keyid)?globalThis.String(t.keyid):""}},toJSON(t){let e={};return t.sig.length!==0&&(e.sig=x4e(t.sig)),t.keyid!==""&&(e.keyid=t.keyid),e}};function T4e(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}o(T4e,"bytesFromBase64");function x4e(t){return globalThis.Buffer.from(t).toString("base64")}o(x4e,"base64FromBytes");function DS(t){return t!=null}o(DS,"isSet")});var W4e=b(IS=>{"use strict";Object.defineProperty(IS,"__esModule",{value:!0});IS.Timestamp=void 0;IS.Timestamp={fromJSON(t){return{seconds:_4e(t.seconds)?globalThis.String(t.seconds):"0",nanos:_4e(t.nanos)?globalThis.Number(t.nanos):0}},toJSON(t){let e={};return t.seconds!=="0"&&(e.seconds=t.s
`).forEach(r=>{r.match(sqt)||r.match(iqt)||(e+=r)}),Buffer.from(e,"base64")}o(oqt,"toDER");function aqt(t,e="CERTIFICATE"){let n=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...n,`-----END ${e}-----`].join(`
2026-05-22 12:36:07 +00:00
`).concat(`
`)}o(aqt,"fromDER")});var $S=b(lA=>{"use strict";Object.defineProperty(lA,"__esModule",{value:!0});lA.SHA2_HASH_ALGOS=lA.RSA_SIGNATURE_ALGOS=lA.ECDSA_SIGNATURE_ALGOS=void 0;lA.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"};lA.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"};lA.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 Oj=b(YS=>{"use strict";Object.defineProperty(YS,"__esModule",{value:!0});YS.RFC3161TimestampVerificationError=void 0;var zj=class extends Error{static{o(this,"RFC3161TimestampVerificationError")}};YS.RFC3161TimestampVerificationError=zj});var yBe=b(bc=>{"use strict";var cqt=bc&&bc.__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]})),uqt=bc&&bc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),pqt=bc&&bc.__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"&&cqt(r,e,n[s]);return uqt(r,e),r}})();Object.defineProperty(bc,"__esModule",{value:!0});bc.TSTInfo=void 0;var EBe=pqt(GM()),lqt=$S(),Aqt=Oj(),Ej=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 lqt.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=EBe.digest(this.messageImprintHashAlgorithm,e);if(!EBe.bufferEqual(r,this.messageImprintHashedMessage))throw new Aqt.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};bc.TSTInfo=Ej});var BBe=b(Mc=>{"use strict";var dqt=Mc&&Mc.__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]})),fqt=Mc&&Mc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),hqt=Mc&&Mc.__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"&&dqt(r,e,n[s]);return fqt(r,e),r}})();Object.defineProperty(Mc,"__esModule",{value:!0});Mc.RFC3161Timestamp=void 0;var bqt=XS(),yj=hqt(GM()),CBe=$S(),vE=Oj(),Mqt=yBe(),mqt="1.2.840.113549.1.7.2",gqt="1.2.840.113549.1.9.16.1.4",zqt="1.2.840.113549.1.9.4",Cj=class t{static{o(this,"RFC3161Timestamp")}root;constructor(e){this.root=e}static parse(e){let r=bqt.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
2026-05-22 12:36:07 +00:00
\v\f\r\x1B !"#$\u066A&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xB0\xB7\u2219\u221A\u2592\u2500\u2502\u253C\u2524\u252C\u251C\u2534\u2510\u250C\u2514\u2518\u03B2\u221E\u03C6\xB1\xBD\xBC\u2248\xAB\xBB\uFEF7\uFEF8\uFFFD\uFFFD\uFEFB\uFEFC\uFFFD\xA0\xAD\uFE82\xA3\xA4\uFE84\uFFFD\uFFFD\uFE8E\uFE8F\uFE95\uFE99\u060C\uFE9D\uFEA1\uFEA5\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFED1\u061B\uFEB1\uFEB5\uFEB9\u061F\xA2\uFE80\uFE81\uFE83\uFE85\uFECA\uFE8B\uFE8D\uFE91\uFE93\uFE97\uFE9B\uFE9F\uFEA3\uFEA7\uFEA9\uFEAB\uFEAD\uFEAF\uFEB3\uFEB7\uFEBB\uFEBF\uFEC1\uFEC5\uFECB\uFECF\xA6\xAC\xF7\xD7\uFEC9\u0640\uFED3\uFED7\uFEDB\uFEDF\uFEE3\uFEE7\uFEEB\uFEED\uFEEF\uFEF3\uFEBD\uFECC\uFECE\uFECD\uFEE1\uFE7D\u0651\uFEE5\uFEE9\uFEEC\uFEF0\uFEF2\uFED0\uFED5\uFEF5\uFEF6\uFEDD\uFED9\uFEF1\u25A0\uFFFD`},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xF8\xA3\xD8\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xA4\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\xA4\u25A0\xA0"},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0386\uFFFD\xB7\xAC\xA6\u2018\u2019\u0388\u2015\u0389\u038A\u03AA\u038C\uFFFD\uFFFD\u038E\u03AB\xA9\u038F\xB2\xB3\u03AC\xA3\u03AD\u03AE\u03AF\u03CA\u0390\u03CC\u03CD\u0391\u0392\u0393\u0394\u0395\u0396\u0397\xBD\u0398\u0399\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u039A\u039B\u039C\u039D\u2563\u2551\u2557\u255D\u039E\u039F\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u03A0\u03A1\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03B1\u03B2\u03B3\u2518\u250C\u2588\u2584\u03B4\u03B5\u2580\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C3\u03C2\u03C4\u0384\xAD\xB1\u03C5\u03C6\u03C7\xA7\u03C8\u0385\xB0\xA8\u03C9\u03CB\u03B0\u03CE\u25A0\xA0"},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\u203E\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u0160\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\u017D\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u0161\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\u017E\xFF"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"\uFE88\xD7\xF7\uF8F6\uF8F5\uF8F4\uF8F7\uFE71\x88\u25A0\u2502\u2500\u2510\u250C\u2514\u2518\uFE79\uFE7B\uFE7D\uFE7F\uFE77\uFE8A\uFEF0\uFEF3\uFEF2\uFECE\uFECF\uFED0\uFEF6\uFEF8\uFEFA\uFEFC\xA0\uF8FA\uF8F9\uF8F8\xA4\uF8FB\uFE8B\uFE91\uFE9
\v\f\r\u1EE8\u1EF0\u1EF2\u1EF6\u1EF8\xDD\u1EF4\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xC0\u1EA2\xC3\xC1\u1EA0\u1EB6\u1EAC\xC8\u1EBA\u1EBC\xC9\u1EB8\u1EC6\xCC\u1EC8\u0128\xCD\u1ECA\xD2\u1ECE\xD5\xD3\u1ECC\u1ED8\u1EDC\u1EDE\u1EE0\u1EDA\u1EE2\xD9\u1EE6\u0168\xA0\u0102\xC2\xCA\xD4\u01A0\u01AF\u0110\u0103\xE2\xEA\xF4\u01A1\u01B0\u0111\u1EB0\u0300\u0309\u0303\u0301\u0323\xE0\u1EA3\xE3\xE1\u1EA1\u1EB2\u1EB1\u1EB3\u1EB5\u1EAF\u1EB4\u1EAE\u1EA6\u1EA8\u1EAA\u1EA4\u1EC0\u1EB7\u1EA7\u1EA9\u1EAB\u1EA5\u1EAD\xE8\u1EC2\u1EBB\u1EBD\xE9\u1EB9\u1EC1\u1EC3\u1EC5\u1EBF\u1EC7\xEC\u1EC9\u1EC4\u1EBE\u1ED2\u0129\xED\u1ECB\xF2\u1ED4\u1ECF\xF5\xF3\u1ECD\u1ED3\u1ED5\u1ED7\u1ED1\u1ED9\u1EDD\u1EDF\u1EE1\u1EDB\u1EE3\xF9\u1ED6\u1EE7\u0169\xFA\u1EE5\u1EEB\u1EED\u1EEF\u1EE9\u1EF1\u1EF3\u1EF7\u1EF9\xFD\u1EF5\u1ED0`},georgianacademy:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10EF\u10F0\u10F1\u10F2\u10F3\u10F4\u10F5\u10F6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},georgianps:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10F1\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10F2\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10F3\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10F4\u10EF\u10F0\u10F5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},pt154:{type:"_sbcs",chars:"\u0496\u0492\u04EE\u0493\u201E\u2026\u04B6\u04AE\u04B2\u04AF\u04A0\u04E2\u04A2\u049A\u04BA\u04B8\u0497\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u04B3\u04B7\u04A1\u04E3\u04A3\u049B\u04BB\u04B9\xA0\u040E\u045E\u0408\u04E8\u0498\u04B0\xA7\u0401\xA9\u04D8\xAB\xAC\u04EF\xAE\u049C\xB0\u04B1\u0406\u0456\u0499\u04E9\xB6\xB7\u0451\u2116\u04D9\xBB\u0458\u04AA\u04AB\u049D\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F"},viscii:{type:"_sbcs",chars:`\0\u1EB2\u1EB4\u1EAA\x07\b
\v\f\r\u1EF6\u1EF8\x1B\u1EF4 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\u1EA0\u1EAE\u1EB0\u1EB6\u1EA4\u1EA6\u1EA8\u1EAC\u1EBC\u1EB8\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EE2\u1EDA\u1EDC\u1EDE\u1ECA\u1ECE\u1ECC\u1EC8\u1EE6\u0168\u1EE4\u1EF2\xD5\u1EAF\u1EB1\u1EB7\u1EA5\u1EA7\u1EA9\u1EAD\u1EBD\u1EB9\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1ED1\u1ED3\u1ED5\u1ED7\u1EE0\u01A0\u1ED9\u1EDD\u1EDF\u1ECB\u1EF0\u1EE8\u1EEA\u1EEC\u01A1\u1EDB\u01AF\xC0\xC1\xC2\xC3\u1EA2\u0102\u1EB3\u1EB5\xC8\xC9\xCA\u1EBA\xCC\xCD\u0128\u1EF3\u0110\u1EE9\xD2\xD3\xD4\u1EA1\u1EF7\u1EEB\u1EED\xD9\xDA\u1EF9\u1EF5\xDD\u1EE1\u01B0\xE0\xE1\xE2\xE3\u1EA3\u0103\u1EEF\u1EAB\xE8\xE9\xEA\u1EBB\xEC\xED\u0129\u1EC9\u0111\u1EF1\xF2\xF3\xF4\xF5\u1ECF\u1ECD\u1EE5\xF9\xFA\u0169\u1EE7\xFD\u1EE3\u1EEE`},iso646cn:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#\xA5%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},iso646jp:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var LDe=b(WDe=>{"use strict";var AY=Ap().Buffer;WDe._dbcs=fp;var br=-1,_De=-2,ji=-10,gn=-1e3,sm=new Array(256),KE=-1;for(TN=0;TN<256;TN++)sm[TN]=br;var TN;function fp(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[]
2026-05-22 12:36:07 +00:00
Wanted: ${this.expectedSize}
Found: ${this.size}`);n.code="EBADSIZE",n.found=this.size,n.expected=this.expectedSize,n.sri=this.sri,this.emit("error",n)}else if(this.sri&&!r){let n=new Error(`${this.sri} integrity checksum failed when using ${this.algorithm}: wanted ${this.digests} but got ${e}. (${this.size} bytes)`);n.code="EINTEGRITY",n.found=e,n.expected=this.digests,n.algorithm=this.algorithm,n.sri=this.sri,this.emit("error",n)}else this.#t=this.size,this.emit("size",this.size),this.#e=e,this.emit("integrity",e),r&&(this.#n=r,this.emit("verified",r))}},gp=class{static{o(this,"Hash")}get isHash(){return!0}constructor(e,r){let n=r?.strict;this.source=e.trim(),this.digest="",this.algorithm="",this.options=[];let s=this.source.match(n?N5t:S5t);if(!s||n&&!xY.includes(s[1])||!Hqe.includes(s[1]))return;this.algorithm=s[1],this.digest=s[2];let i=s[3];i&&(this.options=i.slice(1).split("?"))}hexDigest(){return this.digest&&Buffer.from(this.digest,"base64").toString("hex")}toJSON(){return this.toString()}match(e,r){let n=ti(e,r);if(!n)return!1;if(n.isIntegrity){let s=n.pickAlgorithm(r,[this.algorithm]);if(!s)return!1;let i=n[s].find(a=>a.digest===this.digest);return i||!1}return n.digest===this.digest?n:!1}toString(e){return e?.strict&&!(xY.includes(this.algorithm)&&this.digest.match(w5t)&&this.options.every(r=>r.match(v5t)))?"":`${this.algorithm}-${this.digest}${oy(this.options)}`}};function Gqe(t,e,r,n){let s=t!=="",i=!1,a="",c=n.length-1;for(let p=0;p<c;p++){let l=gp.prototype.toString.call(n[p],r);l&&(i=!0,a+=l,a+=e)}let u=gp.prototype.toString.call(n[c],r);return u&&(i=!0,a+=u),s&&i?t+e+a:t+a}o(Gqe,"integrityHashToString");var J2=class{static{o(this,"Integrity")}get isIntegrity(){return!0}toJSON(){return this.toString()}isEmpty(){return Object.keys(this).length===0}toString(e){let r=e?.sep||" ",n="";if(e?.strict){r=r.replace(/\S+/g," ");for(let s of xY)this[s]&&(n=Gqe(n,r,e,this[s]))}else for(let s of Object.keys(this))n=Gqe(n,r,e,this[s]);return n}concat(e,r){let n=typeof e=="string"?e:sy(e,r);return ti(`${this.toString(r)} ${n}`,r)}hexDigest(){return ti(this,{single:!0}).hexDigest()}merge(e,r){let n=ti(e,r);for(let s in n)if(this[s]){if(!this[s].find(i=>n[s].find(a=>i.digest===a.digest)))throw new Error("hashes do not match, cannot update integrity")}else this[s]=n[s]}match(e,r){let n=ti(e,r);if(!n)return!1;let s=n.pickAlgorithm(r,Object.keys(this));return!!s&&this[s].find(i=>n[s].find(a=>i.digest===a.digest))||!1}pickAlgorithm(e,r){let n=e?.pickAlgorithm||Q5t,s=Object.keys(this);return r?.length&&(s=s.filter(i=>r.includes(i))),s.length?s.reduce((i,a)=>n(i,a)||i):null}};qc.exports.parse=ti;function ti(t,e){if(!t)return null;if(typeof t=="string")return TY(t,e);if(t.algorithm&&t.digest){let r=new J2;return r[t.algorithm]=[t],TY(sy(r,e),e)}else return TY(sy(t,e),e)}o(ti,"parse");function TY(t,e){if(e?.single)return new gp(t,e);let r=t.trim().split(/\s+/).reduce((n,s)=>{let i=new gp(s,e);if(i.algorithm&&i.digest){let a=i.algorithm;Object.keys(n).includes(a)||(n[a]=[]),n[a].push(i)}return n},new J2);return r.isEmpty()?null:r}o(TY,"_parse");qc.exports.stringify=sy;function sy(t,e){return t.algorithm&&t.digest?gp.prototype.toString.call(t,e):typeof t=="string"?sy(ti(t,e),e):J2.prototype.toString.call(t,e)}o(sy,"stringify");qc.exports.fromHex=F5t;function F5t(t,e,r){let n=oy(r?.options);return ti(`${e}-${Buffer.from(t,"hex").toString("base64")}${n}`,r)}o(F5t,"fromHex");qc.exports.fromData=T5t;function T5t(t,e){let r=e?.algorithms||[...WY],n=oy(e?.options);return r.reduce((s,i)=>{let a=iy.createHash(i).update(t).digest("base64"),c=new gp(`${i}-${a}${n}`,e);if(c.algorithm&&c.digest){let u=c.algorithm;s[u]||(s[u]=[]),s[u].push(c)}return s},new J2)}o(T5t,"fromData");qc.exports.fromStream=x5t;function x5t(t,e){let r=LY(e);return new Promise((n,s)=>{t.pipe(r),t.on("error",s),r.on("error",s);let i;r.on("integrity",a=>{i=a}),r.on("end",()=>n(i)),r.resume()})}o(x5t,"fromStream");qc.exports.checkData=_5t;function _5t(t,e,r){if(e=ti(e,r),!e||!Object.keys(e).length){if(r?.error)throw Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTE
2026-05-22 12:36:07 +00:00
Wanted: ${r.size}
Found: ${t.length}`);throw c.code="EBADSIZE",c.found=t.length,c.expected=r.size,c.sri=e,c}else{let c=new Error(`Integrity checksum failed when using ${n}: Wanted ${e}, but got ${i}. (${t.length} bytes)`);throw c.code="EINTEGRITY",c.found=i,c.expected=e,c.algorithm=n,c.sri=e,c}}o(_5t,"checkData");qc.exports.checkStream=W5t;function W5t(t,e,r){if(r=r||Object.create(null),r.integrity=e,e=ti(e,r),!e||!Object.keys(e).length)return Promise.reject(Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"}));let n=LY(r);return new Promise((s,i)=>{t.pipe(n),t.on("error",i),n.on("error",i);let a;n.on("verified",c=>{a=c}),n.on("end",()=>s(a)),n.resume()})}o(W5t,"checkStream");qc.exports.integrityStream=LY;function LY(t=Object.create(null)){return new _Y(t)}o(LY,"integrityStream");qc.exports.create=L5t;function L5t(t){let e=t?.algorithms||[...WY],r=oy(t?.options),n=e.map(iy.createHash);return{update:o(function(s,i){return n.forEach(a=>a.update(s,i)),this},"update"),digest:o(function(){return e.reduce((i,a)=>{let c=n.shift().digest("base64"),u=new gp(`${a}-${c}${r}`,t);return i[u.algorithm]||(i[u.algorithm]=[]),i[u.algorithm].push(u),i},new J2)},"digest")}}o(L5t,"createIntegrity");function Q5t(t,e){return Uqe.indexOf(t.toLowerCase())>=Uqe.indexOf(e.toLowerCase())?t:e}o(Q5t,"getPrioritizedHash")});var PY=b((r80,Yqe)=>{var Xqe=IY(),Vqe=FY(),P5t=ay(),jqe={shared:!1,ignoreCargoCult:!0},k5t={status:200,headers:{}},am=o(t=>{let e={method:t.method,url:t.url,headers:{},compress:t.compress};return t.headers.forEach((r,n)=>{e.headers[n]=r}),e},"requestObject"),$qe=o(t=>{let e={status:t.status,headers:{}};return t.headers.forEach((r,n)=>{e.headers[n]=r}),e},"responseObject"),QY=class{static{o(this,"CachePolicy")}constructor({entry:e,request:r,response:n,options:s}){this.entry=e,this.request=am(r),this.response=$qe(n),this.options=s,this.policy=new Xqe(this.request,this.response,jqe),this.entry&&(this.policy._responseTime=this.entry.metadata.time)}static storable(e,r){return!r.cachePath||r.cache==="no-store"||!["GET","HEAD"].includes(e.method)?!1:new Xqe(am(e),k5t,jqe).storable()}satisfies(e){let r=am(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;let n=new Vqe(this.request),s=new Vqe(r);return JSON.stringify(n.mediaTypes())!==JSON.stringify(s.mediaTypes())||JSON.stringify(n.languages())!==JSON.stringify(s.languages())||JSON.stringify(n.encodings())!==JSON.stringify(s.encodings())?!1:this.options.integrity?P5t.parse(this.options.integrity).match(this.entry.integrity):!0}storable(){return this.policy.storable()}get mustRevalidate(){return!!this.policy._rescc["must-revalidate"]}needsRevalidation(e){let r=am(e);return r.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){return this.policy.responseHeaders()}revalidationHeaders(e){let r=am(e);return this.policy.revalidationHeaders(r)}revalidated(e,r){let n=am(e),s=$qe(r);return!this.policy.revalidatedPolicy(n,s).modified}};Yqe.exports=QY});var Kqe=b((s80,Jqe)=>{var kY=class extends Error{static{o(this,"NotCachedError")}constructor(e){super(`request to ${e} failed: cache mode is 'only-if-cached' but no cached response is available.`),this.code="ENOTCACHED"}};Jqe.exports={NotCachedError:kY}});var cIe=b((o80,aIe)=>{"use strict";var Zqe=typeof process=="object"&&process?process:{stdout:null,stderr:null},U5t=require("events"),eIe=require("stream"),tIe=require("string_decoder").StringDecoder,zp=Symbol("EOF"),Op=Symbol("maybeEmitEnd"),gA=Symbol("emittedEnd"),jN=Symbol("emittingEnd"),cy=Symbol("emittedError"),$N=Symbol("closed"),rIe=Symbol("read"),YN=Symbol("flush"),nIe=Symbol("flushChunk"),rs=Symbol("encoding"),Ep=Symbol("decoder"),JN=Symbol("flowing"),uy=Symbol("paused"),cm=Symbol("resume"),j1=Symbol("bufferLength"),UY=Symbol("bufferPush"),GY=Symbol("bufferShift"),vr=Symbol("objectMode"),Fr=Symbol("destroyed"),HY=Symbol("emitData"),sIe=Symbol("emitEnd"),XY=Symbol("emitEnd2"),yp=Symbol("async"),py=o(t=>Promise.resolve().then(t),"defer"),iIe=global._MP_NO_ITERATOR_SYMBOLS_!=="1",G5t=iIe&&Symbol.asyncIter
2026-05-22 12:36:07 +00:00
Wanted: ${this.expectedSize}
Found: ${this.size}`);n.code="EBADSIZE",n.found=this.size,n.expected=this.expectedSize,n.sri=this.sri,this.emit("error",n)}else if(this.sri&&!r){let n=new Error(`${this.sri} integrity checksum failed when using ${this.algorithm}: wanted ${this.digests} but got ${e}. (${this.size} bytes)`);n.code="EINTEGRITY",n.found=e,n.expected=this.digests,n.algorithm=this.algorithm,n.sri=this.sri,this.emit("error",n)}else this.#t=this.size,this.emit("size",this.size),this.#e=e,this.emit("integrity",e),r&&(this.#n=r,this.emit("verified",r))}},Ip=class{static{o(this,"Hash")}get isHash(){return!0}constructor(e,r){let n=r?.strict;this.source=e.trim(),this.digest="",this.algorithm="",this.options=[];let s=this.source.match(n?cwt:awt);if(!s||n&&!pJ.includes(s[1]))return;this.algorithm=s[1],this.digest=s[2];let i=s[3];i&&(this.options=i.slice(1).split("?"))}hexDigest(){return this.digest&&Buffer.from(this.digest,"base64").toString("hex")}toJSON(){return this.toString()}match(e,r){let n=ni(e,r);if(!n)return!1;if(n.isIntegrity){let s=n.pickAlgorithm(r,[this.algorithm]);if(!s)return!1;let i=n[s].find(a=>a.digest===this.digest);return i||!1}return n.digest===this.digest?n:!1}toString(e){return e?.strict&&!(pJ.includes(this.algorithm)&&this.digest.match(owt)&&this.options.every(r=>r.match(uwt)))?"":`${this.algorithm}-${this.digest}${My(this.options)}`}};function IIe(t,e,r,n){let s=t!=="",i=!1,a="",c=n.length-1;for(let p=0;p<c;p++){let l=Ip.prototype.toString.call(n[p],r);l&&(i=!0,a+=l,a+=e)}let u=Ip.prototype.toString.call(n[c],r);return u&&(i=!0,a+=u),s&&i?t+e+a:t+a}o(IIe,"integrityHashToString");var ef=class{static{o(this,"Integrity")}get isIntegrity(){return!0}toJSON(){return this.toString()}isEmpty(){return Object.keys(this).length===0}toString(e){let r=e?.sep||" ",n="";if(e?.strict){r=r.replace(/\S+/g," ");for(let s of pJ)this[s]&&(n=IIe(n,r,e,this[s]))}else for(let s of Object.keys(this))n=IIe(n,r,e,this[s]);return n}concat(e,r){let n=typeof e=="string"?e:hy(e,r);return ni(`${this.toString(r)} ${n}`,r)}hexDigest(){return ni(this,{single:!0}).hexDigest()}merge(e,r){let n=ni(e,r);for(let s in n)if(this[s]){if(!this[s].find(i=>n[s].find(a=>i.digest===a.digest)))throw new Error("hashes do not match, cannot update integrity")}else this[s]=n[s]}match(e,r){let n=ni(e,r);if(!n)return!1;let s=n.pickAlgorithm(r,Object.keys(this));return!!s&&this[s]&&n[s]&&this[s].find(i=>n[s].find(a=>i.digest===a.digest))||!1}pickAlgorithm(e,r){let n=e?.pickAlgorithm||Mwt,s=Object.keys(this).filter(i=>r?.length?r.includes(i):!0);return s.length?s.reduce((i,a)=>n(i,a)||i):null}};Ic.exports.parse=ni;function ni(t,e){if(!t)return null;if(typeof t=="string")return uJ(t,e);if(t.algorithm&&t.digest){let r=new ef;return r[t.algorithm]=[t],uJ(hy(r,e),e)}else return uJ(hy(t,e),e)}o(ni,"parse");function uJ(t,e){if(e?.single)return new Ip(t,e);let r=t.trim().split(/\s+/).reduce((n,s)=>{let i=new Ip(s,e);if(i.algorithm&&i.digest){let a=i.algorithm;n[a]||(n[a]=[]),n[a].push(i)}return n},new ef);return r.isEmpty()?null:r}o(uJ,"_parse");Ic.exports.stringify=hy;function hy(t,e){return t.algorithm&&t.digest?Ip.prototype.toString.call(t,e):typeof t=="string"?hy(ni(t,e),e):ef.prototype.toString.call(t,e)}o(hy,"stringify");Ic.exports.fromHex=pwt;function pwt(t,e,r){let n=My(r?.options);return ni(`${e}-${Buffer.from(t,"hex").toString("base64")}${n}`,r)}o(pwt,"fromHex");Ic.exports.fromData=lwt;function lwt(t,e){let r=e?.algorithms||[...AJ],n=My(e?.options);return r.reduce((s,i)=>{let a=by.createHash(i).update(t).digest("base64"),c=new Ip(`${i}-${a}${n}`,e);if(c.algorithm&&c.digest){let u=c.algorithm;s[u]||(s[u]=[]),s[u].push(c)}return s},new ef)}o(lwt,"fromData");Ic.exports.fromStream=Awt;function Awt(t,e){let r=dJ(e);return new Promise((n,s)=>{t.pipe(r),t.on("error",s),r.on("error",s);let i;r.on("integrity",a=>{i=a}),r.on("end",()=>n(i)),r.resume()})}o(Awt,"fromStream");Ic.exports.checkData=dwt;function dwt(t,e,r){if(e=ni(e,r),!e||!Object.keys(e).length){if(r?.error)throw Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"});return!1}let n=e.pickAl
2026-05-22 12:36:07 +00:00
Wanted: ${r.size}
Found: ${t.length}`);throw c.code="EBADSIZE",c.found=t.length,c.expected=r.size,c.sri=e,c}else{let c=new Error(`Integrity checksum failed when using ${n}: Wanted ${e}, but got ${i}. (${t.length} bytes)`);throw c.code="EINTEGRITY",c.found=i,c.expected=e,c.algorithm=n,c.sri=e,c}}o(dwt,"checkData");Ic.exports.checkStream=fwt;function fwt(t,e,r){if(r=r||Object.create(null),r.integrity=e,e=ni(e,r),!e||!Object.keys(e).length)return Promise.reject(Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"}));let n=dJ(r);return new Promise((s,i)=>{t.pipe(n),t.on("error",i),n.on("error",i);let a;n.on("verified",c=>{a=c}),n.on("end",()=>s(a)),n.resume()})}o(fwt,"checkStream");Ic.exports.integrityStream=dJ;function dJ(t=Object.create(null)){return new lJ(t)}o(dJ,"integrityStream");Ic.exports.create=hwt;function hwt(t){let e=t?.algorithms||[...AJ],r=My(t?.options),n=e.map(by.createHash);return{update:o(function(s,i){return n.forEach(a=>a.update(s,i)),this},"update"),digest:o(function(){return e.reduce((i,a)=>{let c=n.shift().digest("base64"),u=new Ip(`${a}-${c}${r}`,t);if(u.algorithm&&u.digest){let p=u.algorithm;i[p]||(i[p]=[]),i[p].push(u)}return i},new ef)},"digest")}}o(hwt,"createIntegrity");var bwt=by.getHashes(),RIe=["md5","whirlpool","sha1","sha224","sha256","sha384","sha512","sha3","sha3-256","sha3-384","sha3-512","sha3_256","sha3_384","sha3_512"].filter(t=>bwt.includes(t));function Mwt(t,e){return RIe.indexOf(t.toLowerCase())>=RIe.indexOf(e.toLowerCase())?t:e}o(Mwt,"getPrioritizedHash")});var wIe=b((m80,fJ)=>{(function(){var t;function e(r,n){var s=this instanceof e?this:t;if(s.reset(n),typeof r=="string"&&r.length>0&&s.hash(r),s!==this)return s}o(e,"MurmurHash3"),e.prototype.hash=function(r){var n,s,i,a,c;switch(c=r.length,this.len+=c,s=this.k1,i=0,this.rem){case 0:s^=c>i?r.charCodeAt(i++)&65535:0;case 1:s^=c>i?(r.charCodeAt(i++)&65535)<<8:0;case 2:s^=c>i?(r.charCodeAt(i++)&65535)<<16:0;case 3:s^=c>i?(r.charCodeAt(i)&255)<<24:0,s^=c>i?(r.charCodeAt(i++)&65280)>>8:0}if(this.rem=c+this.rem&3,c-=this.rem,c>0){for(n=this.h1;s=s*11601+(s&65535)*3432906752&4294967295,s=s<<15|s>>>17,s=s*13715+(s&65535)*461832192&4294967295,n^=s,n=n<<13|n>>>19,n=n*5+3864292196&4294967295,!(i>=c);)s=r.charCodeAt(i++)&65535^(r.charCodeAt(i++)&65535)<<8^(r.charCodeAt(i++)&65535)<<16,a=r.charCodeAt(i++),s^=(a&255)<<24^(a&65280)>>8;switch(s=0,this.rem){case 3:s^=(r.charCodeAt(i+2)&65535)<<16;case 2:s^=(r.charCodeAt(i+1)&65535)<<8;case 1:s^=r.charCodeAt(i)&65535}this.h1=n}return this.k1=s,this},e.prototype.result=function(){var r,n;return r=this.k1,n=this.h1,r>0&&(r=r*11601+(r&65535)*3432906752&4294967295,r=r<<15|r>>>17,r=r*13715+(r&65535)*461832192&4294967295,n^=r),n^=this.len,n^=n>>>16,n=n*51819+(n&65535)*2246770688&4294967295,n^=n>>>13,n=n*44597+(n&65535)*3266445312&4294967295,n^=n>>>16,n>>>0},e.prototype.reset=function(r){return this.h1=typeof r=="number"?r:0,this.rem=this.k1=this.len=0,this},t=new e,typeof fJ<"u"?fJ.exports=e:this.MurmurHash3=e})()});var NIe=b((z80,SIe)=>{"use strict";var mwt=wIe();SIe.exports=function(t){if(t){var e=new mwt(t);return("00000000"+e.result().toString(16)).slice(-8)}else return(Math.random().toString(16)+"0000000").slice(2,10)}});var hJ=b((O80,vIe)=>{var gwt=require("path"),zwt=NIe();vIe.exports=function(t,e,r){return gwt.join(t,(e?e+"-":"")+zwt(r))}});var bJ=b((E80,Owt)=>{Owt.exports={name:"cacache",version:"20.0.1","cache-version":{content:"2",index:"5"},description:"Fast, fault-tolerant, cross-platform, disk-based, data-agnostic, content-addressable cache.",main:"lib/index.js",files:["bin/","lib/"],scripts:{test:"tap",snap:"tap",coverage:"tap","test-docker":'docker run -it --rm --name pacotest -v "$PWD":/tmp -w /tmp node:latest npm test',lint:"npm run eslint",npmclilint:"npmcli-lint",lintfix:"npm run eslint -- --fix",postsnap:"npm run lintfix --",postlint:"template-oss-check",posttest:"npm run lint","template-oss-apply":"template-oss-apply --force",eslint:'eslint "**/*.{js,cjs,ts,mjs,jsx,tsx}"'},repository:{type:"git",url:"git+https://github.com/npm/cacache.git"},keywords:["cache","c
`+a.map(d=>{let h=JSON.stringify(d);return`${y6(h)} ${h}`}).join(`
`),u=o(async()=>{let d=Wvt(wc.join(t,"tmp"),n.tmpPrefix);return await VJ(wc.dirname(d),{recursive:!0}),{target:d,moved:!1}},"setup"),p=o(async d=>{if(!d.moved)return zwe(d.target,{recursive:!0,force:!0})},"teardown"),l=o(async d=>{await Tvt(d.target,c,{flag:"wx"}),await VJ(wc.dirname(s),{recursive:!0}),await kvt(d.target,s),d.moved=!0},"write"),A=await u();try{await l(A)}finally{await p(A)}return a.reverse().map(d=>C6(t,d,!0))}o(Uvt,"compact");si.exports.insert=Owe;async function Owe(t,e,r,n={}){let{metadata:s,size:i,time:a}=n,c=wy(t,e),u={key:e,integrity:r&&_vt.stringify(r),time:a||Date.now(),size:i,metadata:s};try{await VJ(wc.dirname(c),{recursive:!0});let p=JSON.stringify(u);await Nvt(c,`
${y6(p)} ${p}`)}catch(p){if(p.code==="ENOENT")return;throw p}return C6(t,u)}o(Owe,"insert");si.exports.find=Gvt;async function Gvt(t,e){let r=wy(t,e);try{return(await E6(r)).reduce((s,i)=>i&&i.key===e?C6(t,i):s,null)}catch(n){if(n.code==="ENOENT")return null;throw n}}o(Gvt,"find");si.exports.delete=Hvt;function Hvt(t,e,r={}){if(!r.removeFully)return Owe(t,e,null,r);let n=wy(t,e);return zwe(n,{recursive:!0,force:!0})}o(Hvt,"del");si.exports.lsStream=Ewe;function Ewe(t){let e=jJ(t),r=new xvt({objectMode:!0});return Promise.resolve().then(async()=>{let{default:n}=await Promise.resolve().then(()=>(O6(),z6)),s=await XJ(e);return await n(s,async i=>{let a=wc.join(e,i),c=await XJ(a);await n(c,async u=>{let p=wc.join(a,u),l=await XJ(p);await n(l,async A=>{let d=wc.join(p,A);try{let m=(await E6(d)).reduce((z,C)=>(z.set(C.key,C),z),new Map);for(let z of m.values()){let C=C6(t,z);C&&r.write(C)}}catch(h){if(h.code==="ENOENT")return;throw h}},{concurrency:HJ})},{concurrency:HJ})},{concurrency:HJ}),r.end(),r}).catch(n=>r.emit("error",n)),r}o(Ewe,"lsStream");si.exports.ls=Xvt;async function Xvt(t){return(await Ewe(t).collect()).reduce((r,n)=>(r[n.key]=n,r),{})}o(Xvt,"ls");si.exports.bucketEntries=E6;async function E6(t,e){let r=await vvt(t,"utf8");return Vvt(r,e)}o(E6,"bucketEntries");function Vvt(t){let e=[];return t.split(`
`).forEach(r=>{if(!r)return;let n=r.split(" ");if(!n[1]||y6(n[1])!==n[0])return;let s;try{s=JSON.parse(n[1])}catch{}s&&e.push(s)}),e}o(Vvt,"_bucketEntries");si.exports.bucketDir=jJ;function jJ(t){return wc.join(t,`index-v${Pvt}`)}o(jJ,"bucketDir");si.exports.bucketPath=wy;function wy(t,e){let r=ywe(e);return wc.join.apply(wc,[jJ(t)].concat(Qvt(r)))}o(wy,"bucketPath");si.exports.hashKey=ywe;function ywe(t){return Cwe(t,"sha256")}o(ywe,"hashKey");si.exports.hashEntry=y6;function y6(t){return Cwe(t,"sha1")}o(y6,"hashEntry");function Cwe(t,e){return Svt.createHash(e).update(t).digest("hex")}o(Cwe,"hash");function C6(t,e,r){return!e.integrity&&!r?null:{key:e.key,integrity:e.integrity,path:e.integrity?Lvt(t,e.integrity):void 0,size:e.size,time:e.time,metadata:e.metadata}}o(C6,"formatEntry");function XJ(t){return Fvt(t).catch(e=>{if(e.code==="ENOENT"||e.code==="ENOTDIR")return[];throw e})}o(XJ,"readdirOrEmpty")});var Om=b(D6=>{"use strict";Object.defineProperty(D6,"__esModule",{value:!0});D6.LRUCache=void 0;var jvt=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Dwe=new Set,$J=typeof process=="object"&&process?process:{},qwe=o((t,e,r,n)=>{typeof $J.emitWarning=="function"?$J.emitWarning(t,e,r,n):console.error(`[${r}] ${e}: ${t}`)},"emitWarning"),B6=globalThis.AbortController,Bwe=globalThis.AbortSignal;if(typeof B6>"u"){Bwe=class{static{o(this,"AbortSignal")}onabort;_onabort=[];reason;aborted=!1;addEventListener(n,s){this._onabort.push(s)}},B6=class{static{o(this,"AbortController")}constructor(){e()}signal=new Bwe;abort(n){if(!this.signal.aborted){this.signal.reason=n,this.signal.aborted=!0;for(let s of this.signal._onabort)s(n);this.signal.onabort?.(n)}}};let t=$J.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=o(()=>{t&&(t=!1,qwe("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))},"warnACPolyfill")}var $vt=o(t=>!Dwe.has(t),"shouldWarn"),OA=o(t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),"isPosInt"),Iwe=o(t=>OA(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?zm:null:null,"getUintArray"),zm=class extends Array{static{o(this,"ZeroArray")}constructor(e){super(e),this.fill(0)}},YJ=class t{static{o(this,"Stack")}heap;length;static#e=!1;static create(e){let r=Iwe(e);if(!r)return[];t.#e=!0;let n=new t(e,r);return t.#e=!1,n}constructor(e,r){if(!t.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},JJ=class t{static{o(this,"LRUCache")}#e;#t;#n;#r;#s;#i;#a;#o;get perf(){return this.#o}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#c;#l;#A;#d;#u;#b;#O;#M;#m;#B;#g;#y;#C;#h;#E;#D;#z;#p;static unsafeExposeInternals(e){return{starts:e.#C,ttls:e.#h,sizes:e.#y,keyMap:e.#A,keyList:e.#d,valList:e.#u,next:e.#b,prev:e.#O,get head(){return e.#M},get tail(){return e.#m},free:e.#B,isBackgroundFetch:o(r=>e.#f(r),"isBackgroundFetch"),backgroundFetch:o((r,n,s,i)=>e.#U(r,n,s,i),"backgroundFetch"),moveToTail:o(r=>e.#_(r),"moveToTail"),indexes:o(r=>e.#w(r),"indexes"),rindexes:o(r=>e.#N(r),"rindexes"),isStale:o(r=>e.#I(r),"isStale")}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#l}get size(){return this.#c}get fetchMethod(){return this.#i}get memoMethod(){return this.#a}get dispose(){return this.#n}get onInsert(){return this.#r}get disposeAfter(){return this.#s}constructor(e){let{max:r=0,ttl:n,ttlResolution
2026-05-22 12:36:07 +00:00
Wanted: ${t}
Found: ${e}`);return r.code="EINTEGRITY",r.expected=t,r.found=e,r}o(wFt,"checksumError")});var Ywe=b((GP0,lK)=>{"use strict";var Xwe=gm(),Vwe=Sy(),jwe=Hwe(),SFt=ly(),{PassThrough:NFt}=KY(),vFt=Z2(),$we=o(t=>({algorithms:["sha512"],...t}),"putOpts");lK.exports=FFt;async function FFt(t,e,r,n={}){let{memoize:s}=n;n=$we(n);let i=await jwe(t,r,n),a=await Xwe.insert(t,e,i.integrity,{...n,size:i.size});return s&&Vwe.put(t,a,r,n),i.integrity}o(FFt,"putData");lK.exports.stream=TFt;function TFt(t,e,r={}){let{memoize:n}=r;r=$we(r);let s,i,a,c,u=new vFt;if(n){let l=new NFt().on("collect",A=>{c=A});u.push(l)}let p=jwe.stream(t,r).on("integrity",l=>{s=l}).on("size",l=>{i=l}).on("error",l=>{a=l});return u.push(p),u.push(new SFt({async flush(){if(!a){let l=await Xwe.insert(t,e,s,{...r,size:i});n&&c&&Vwe.put(t,l,c,r),u.emit("integrity",s),u.emit("size",i)}}})),u}o(TFt,"putStream")});var Kwe=b(pf=>{"use strict";Object.defineProperty(pf,"__esModule",{value:!0});pf.range=pf.balanced=void 0;var xFt=o((t,e,r)=>{let n=t instanceof RegExp?Jwe(t,r):t,s=e instanceof RegExp?Jwe(e,r):e,i=n!==null&&s!=null&&(0,pf.range)(n,s,r);return i&&{start:i[0],end:i[1],pre:r.slice(0,i[0]),body:r.slice(i[0]+n.length,i[1]),post:r.slice(i[1]+s.length)}},"balanced");pf.balanced=xFt;var Jwe=o((t,e)=>{let r=e.match(t);return r?r[0]:null},"maybeMatch"),_Ft=o((t,e,r)=>{let n,s,i,a,c,u=r.indexOf(t),p=r.indexOf(e,u+1),l=u;if(u>=0&&p>0){if(t===e)return[u,p];for(n=[],i=r.length;l>=0&&!c;){if(l===u)n.push(l),u=r.indexOf(t,l+1);else if(n.length===1){let A=n.pop();A!==void 0&&(c=[A,p])}else s=n.pop(),s!==void 0&&s<i&&(i=s,a=p),p=r.indexOf(e,l+1);l=u<p&&u>=0?u:p}n.length&&a!==void 0&&(c=[i,a])}return c},"range");pf.range=_Ft});var iSe=b(wm=>{"use strict";Object.defineProperty(wm,"__esModule",{value:!0});wm.EXPANSION_MAX=void 0;wm.expand=YFt;var Zwe=Kwe(),eSe="\0SLASH"+Math.random()+"\0",tSe="\0OPEN"+Math.random()+"\0",dK="\0CLOSE"+Math.random()+"\0",rSe="\0COMMA"+Math.random()+"\0",nSe="\0PERIOD"+Math.random()+"\0",WFt=new RegExp(eSe,"g"),LFt=new RegExp(tSe,"g"),QFt=new RegExp(dK,"g"),PFt=new RegExp(rSe,"g"),kFt=new RegExp(nSe,"g"),UFt=/\\\\/g,GFt=/\\{/g,HFt=/\\}/g,XFt=/\\,/g,VFt=/\\./g;wm.EXPANSION_MAX=1e5;function AK(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}o(AK,"numeric");function jFt(t){return t.replace(UFt,eSe).replace(GFt,tSe).replace(HFt,dK).replace(XFt,rSe).replace(VFt,nSe)}o(jFt,"escapeBraces");function $Ft(t){return t.replace(WFt,"\\").replace(LFt,"{").replace(QFt,"}").replace(PFt,",").replace(kFt,".")}o($Ft,"unescapeBraces");function sSe(t){if(!t)return[""];let e=[],r=(0,Zwe.balanced)("{","}",t);if(!r)return t.split(",");let{pre:n,body:s,post:i}=r,a=n.split(",");a[a.length-1]+="{"+s+"}";let c=sSe(i);return i.length&&(a[a.length-1]+=c.shift(),a.push.apply(a,c)),e.push.apply(e,a),e}o(sSe,"parseCommaParts");function YFt(t,e={}){if(!t)return[];let{max:r=wm.EXPANSION_MAX}=e;return t.slice(0,2)==="{}"&&(t="\\{\\}"+t.slice(2)),Wy(jFt(t),r,!0).map($Ft)}o(YFt,"expand");function JFt(t){return"{"+t+"}"}o(JFt,"embrace");function KFt(t){return/^-?0\d/.test(t)}o(KFt,"isPadded");function ZFt(t,e){return t<=e}o(ZFt,"lte");function eTt(t,e){return t>=e}o(eTt,"gte");function Wy(t,e,r){let n=[],s=(0,Zwe.balanced)("{","}",t);if(!s)return[t];let i=s.pre,a=s.post.length?Wy(s.post,e,!1):[""];if(/\$$/.test(s.pre))for(let c=0;c<a.length&&c<e;c++){let u=i+"{"+s.body+"}"+a[c];n.push(u)}else{let c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),p=c||u,l=s.body.indexOf(",")>=0;if(!p&&!l)return s.post.match(/,(?!,).*\}/)?(t=s.pre+"{"+s.body+dK+s.post,Wy(t,e,!0)):[t];let A;if(p)A=s.body.split(/\.\./);else if(A=sSe(s.body),A.length===1&&A[0]!==void 0&&(A=Wy(A[0],e,!1).map(JFt),A.length===1))return a.map(h=>s.pre+A[0]+h);let d;if(p&&A[0]!==void 0&&A[1]!==void 0){let h=AK(A[0]),m=AK(A[1]),z=Math.max(A[0].length,A[1].length),C=A.length===3&&A[2]!==void 0?Math.abs(AK(A[2])):1,E=ZFt;m<h&&(C*=-1,E=eTt);let I=A.some(KFt);d=[];for(let w=h;E(w,m);w+=C){let N;if(u)N=String.fromCharCode(w),N==="\\"&&(N="");else if(N=String(w),I){let x=z-N.lengt
globstar while`,e,d,r,h,m),this.matchOne(e.slice(d),r.slice(h),n))return this.debug("globstar found match!",d,u,m),!0;if(m==="."||m===".."||!s.dot&&m.charAt(0)==="."){this.debug("dot detected!",e,d,r,h);break}this.debug("globstar swallow a segment, and continue"),d++}return!!(n&&(this.debug(`
>>> no match, partial?`,e,d,r,h),d===u))}let z;if(typeof l=="string"?(z=A===l,this.debug("string match",l,A,z)):(z=l.test(A),this.debug("pattern match",l,A,z)),!z)return!1}if(a===u&&c===p)return!0;if(a===u)return n;if(c===p)return a===u-1&&e[a]==="";throw new Error("wtf?")}braceExpand(){return(0,Ce.braceExpand)(this.pattern,this.options)}parse(e){(0,H6.assertValidPattern)(e);let r=this.options;if(e==="**")return Ce.GLOBSTAR;if(e==="")return"";let n,s=null;(n=e.match(RTt))?s=r.dot?STt:wTt:(n=e.match(gTt))?s=(r.nocase?r.dot?yTt:ETt:r.dot?OTt:zTt)(n[1]):(n=e.match(NTt))?s=(r.nocase?r.dot?FTt:vTt:r.dot?TTt:xTt)(n):(n=e.match(CTt))?s=r.dot?DTt:BTt:(n=e.match(qTt))&&(s=ITt);let i=fSe.AST.fromGlob(e,this.options).toMMPattern();return s&&typeof i=="object"&&Reflect.defineProperty(i,"test",{value:s}),i}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?WTt:r.dot?LTt:QTt,s=new Set(r.nocase?["i"]:[]),i=e.map(u=>{let p=u.map(A=>{if(A instanceof RegExp)for(let d of A.flags.split(""))s.add(d);return typeof A=="string"?XTt(A):A===Ce.GLOBSTAR?Ce.GLOBSTAR:A._src});p.forEach((A,d)=>{let h=p[d+1],m=p[d-1];A!==Ce.GLOBSTAR||m===Ce.GLOBSTAR||(m===void 0?h!==void 0&&h!==Ce.GLOBSTAR?p[d+1]="(?:\\/|"+n+"\\/)?"+h:p[d]=n:h===void 0?p[d-1]=m+"(?:\\/|\\/"+n+")?":h!==Ce.GLOBSTAR&&(p[d-1]=m+"(?:\\/|\\/"+n+"\\/)"+h,p[d+1]=Ce.GLOBSTAR))});let l=p.filter(A=>A!==Ce.GLOBSTAR);if(this.partial&&l.length>=1){let A=[];for(let d=1;d<=l.length;d++)A.push(l.slice(0,d).join("/"));return"(?:"+A.join("|")+")"}return l.join("/")}).join("|"),[a,c]=e.length>1?["(?:",")"]:["",""];i="^"+a+i+c+"$",this.partial&&(i="^(?:\\/|"+a+i.slice(1,-1)+c+")$"),this.negate&&(i="^(?!"+i+").+$");try{this.regexp=new RegExp(i,[...s].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;this.isWindows&&(e=e.split("\\").join("/"));let s=this.slashSplit(e);this.debug(this.pattern,"split",s);let i=this.set;this.debug(this.pattern,"set",i);let a=s[s.length-1];if(!a)for(let c=s.length-2;!a&&c>=0;c--)a=s[c];for(let c=0;c<i.length;c++){let u=i[c],p=s;if(n.matchBase&&u.length===1&&(p=[a]),this.matchOne(p,u,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return Ce.minimatch.defaults(e).Minimatch}};Ce.Minimatch=lf;var VTt=bK();Object.defineProperty(Ce,"AST",{enumerable:!0,get:o(function(){return VTt.AST},"get")});var jTt=MK();Object.defineProperty(Ce,"escape",{enumerable:!0,get:o(function(){return jTt.escape},"get")});var $Tt=Q6();Object.defineProperty(Ce,"unescape",{enumerable:!0,get:o(function(){return $Tt.unescape},"get")});Ce.minimatch.AST=fSe.AST;Ce.minimatch.Minimatch=lf;Ce.minimatch.escape=bTt.escape;Ce.minimatch.unescape=MTt.unescape});var ySe=b(yn=>{"use strict";var YTt=yn&&yn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(yn,"__esModule",{value:!0});yn.Minipass=yn.isWritable=yn.isReadable=yn.isStream=void 0;var mSe=typeof process=="object"&&process?process:{stdout:null,stderr:null},CK=require("node:events"),ESe=YTt(require("node:stream")),JTt=require("node:string_decoder"),KTt=o(t=>!!t&&typeof t=="object"&&(t instanceof K6||t instanceof ESe.default||(0,yn.isReadable)(t)||(0,yn.isWritable)(t)),"isStream");yn.isStream=KTt;var ZTt=o(t=>!!t&&typeof t=="object"&&t instanceof CK.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==ESe.default.Writable.prototype.pipe,"isReadable");yn.isReadable=ZTt;var ext=o(t=>!!t&&typeof t=="object"&&t instanceof CK.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function","isWritable");yn.isWritable=ext;var _p=Symbol("EOF"),Wp=Symbol("maybeEmitEnd"),DA=Symbol("emittedEnd"),X6=Symbol("emittingEnd"),Qy=Symbol("emittedError"),V6=Symbol("closed"),gSe=Symbol("read"),j6=Symbol("flush"),
2026-05-22 12:36:07 +00:00
\r
`);if(d===-1){Iv("have not received end of HTTP headers yet..."),i();return}let h=A.slice(0,d).toString("ascii").split(`\r
`),m=h.shift();if(!m)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let z=m.split(" "),C=+z[1],E=z.slice(2).join(" "),B={};for(let I of h){if(!I)continue;let w=I.indexOf(":");if(w===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${I}"`));let N=I.slice(0,w).toLowerCase(),x=I.slice(w+1).trimStart(),Q=B[N];typeof Q=="string"?B[N]=[Q,x]:Array.isArray(Q)?Q.push(x):B[N]=x}Iv("got proxy server response: %o %o",m,B),a(),e({connect:{statusCode:C,statusText:E,headers:B},buffered:A})}o(p,"ondata"),t.on("error",u),t.on("end",c),i()})}o(AWt,"parseProxyResponse");Wm.parseProxyResponse=AWt});var GNe=b(to=>{"use strict";var dWt=to&&to.__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]})),fWt=to&&to.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),kNe=to&&to.__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)&&dWt(e,t,r);return fWt(e,t),e},UNe=to&&to.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(to,"__esModule",{value:!0});to.HttpsProxyAgent=void 0;var uC=kNe(require("net")),QNe=kNe(require("tls")),hWt=UNe(require("assert")),bWt=UNe($d()),MWt=$O(),mWt=require("url"),gWt=LNe(),pC=(0,bWt.default)("https-proxy-agent"),Rv=class extends MWt.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new mWt.URL(e):e,this.proxyHeaders=r?.headers??{},pC("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?PNe(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;if(n.protocol==="https:"){pC("Creating `tls.Socket`: %o",this.connectOpts);let d=this.connectOpts.servername||this.connectOpts.host;s=QNe.connect({...this.connectOpts,servername:d&&uC.isIP(d)?void 0:d})}else pC("Creating `net.Socket`: %o",this.connectOpts),s=uC.connect(this.connectOpts);let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=uC.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
`;if(n.username||n.password){let d=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(d).toString("base64")}`}i.Host=`${a}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(i))c+=`${d}: ${i[d]}\r
`;let u=(0,gWt.parseProxyResponse)(s);s.write(`${c}\r
`);let{connect:p,buffered:l}=await u;if(e.emit("proxyConnect",p),this.emit("proxyConnect",p,e),p.statusCode===200){if(e.once("socket",zWt),r.secureEndpoint){pC("Upgrading socket connection to TLS");let d=r.servername||r.host;return QNe.connect({...PNe(r,"host","path","port"),socket:s,servername:uC.isIP(d)?void 0:d})}return s}s.destroy();let A=new uC.Socket({writable:!1});return A.readable=!0,e.once("socket",d=>{pC("Replaying proxy buffer for failed request"),(0,hWt.default)(d.listenerCount("data")>0),d.push(l),d.push(null)}),A}};Rv.protocols=["http","https"];to.HttpsProxyAgent=Rv;function zWt(t){t.resume()}o(zWt,"resume");function PNe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o(PNe,"omit")});var jNe=b(Pp=>{"use strict";Object.defineProperty(Pp,"__esModule",{value:!0});var HNe=require("buffer"),Mf={INVALID_ENCODING:"Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.",INVALID_SMARTBUFFER_SIZE:"Invalid size provided. Size must be a valid integer greater than zero.",INVALID_SMARTBUFFER_BUFFER:"Invalid Buffer provided in SmartBufferOptions.",INVALID_SMARTBUFFER_OBJECT:"Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.",INVALID_OFFSET:"An invalid offset value was provided.",INVALID_OFFSET_NON_NUMBER:"An invalid offset value was provided. A numeric value is required.",INVALID_LENGTH:"An invalid length value was provided.",INVALID_LENGTH_NON_NUMBER:"An invalid length value was provived. A numeric value is required.",INVALID_TARGET_OFFSET:"Target offset is beyond the bounds of the internal SmartBuffer data.",INVALID_TARGET_LENGTH:"Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.",INVALID_READ_BEYOND_BOUNDS:"Attempted to read beyond the bounds of the managed data.",INVALID_WRITE_BEYOND_BOUNDS:"Attempted to write beyond the bounds of the managed data."};Pp.ERRORS=Mf;function OWt(t){if(!HNe.Buffer.isEncoding(t))throw new Error(Mf.INVALID_ENCODING)}o(OWt,"checkEncoding");Pp.checkEncoding=OWt;function XNe(t){return typeof t=="number"&&isFinite(t)&&BWt(t)}o(XNe,"isFiniteInteger");Pp.isFiniteInteger=XNe;function VNe(t,e){if(typeof t=="number"){if(!XNe(t)||t<0)throw new Error(e?Mf.INVALID_OFFSET:Mf.INVALID_LENGTH)}else throw new Error(e?Mf.INVALID_OFFSET_NON_NUMBER:Mf.INVALID_LENGTH_NON_NUMBER)}o(VNe,"checkOffsetOrLengthValue");function EWt(t){VNe(t,!1)}o(EWt,"checkLengthValue");Pp.checkLengthValue=EWt;function yWt(t){VNe(t,!0)}o(yWt,"checkOffsetValue");Pp.checkOffsetValue=yWt;function CWt(t,e){if(t<0||t>e.length)throw new Error(Mf.INVALID_TARGET_OFFSET)}o(CWt,"checkTargetOffset");Pp.checkTargetOffset=CWt;function BWt(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}o(BWt,"isInteger");function DWt(t){if(typeof BigInt>"u")throw new Error("Platform does not support JS BigInt type.");if(typeof HNe.Buffer.prototype[t]>"u")throw new Error(`Platform does not support Buffer.prototype.${t}.`)}o(DWt,"bigIntAndBufferInt64Check");Pp.bigIntAndBufferInt64Check=DWt});var YNe=b(dZ=>{"use strict";Object.defineProperty(dZ,"__esModule",{value:!0});var nt=jNe(),$Ne=4096,qWt="utf8",AZ=class t{static{o(this,"SmartBuffer")}constructor(e){if(this.length=0,this._encoding=qWt,this._writeOffset=0,this._readOffset=0,t.isSmartBufferOptions(e))if(e.encoding&&(nt.checkEncoding(e.encoding),this._encoding=e.encoding),e.size)if(nt.isFiniteInteger(e.size)&&e.size>0)this._buff=Buffer.allocUnsafe(e.size);else throw new Error(nt.ERRORS.INVALID_SMARTBUFFER_SIZE);else if(e.buff)if(Buffer.isBuffer(e.buff))this._buff=e.buff,this.length=e.buff.length;else throw new Error(nt.ERRORS.INVALID_SMARTBUFFER_BUFFER);else this._buff=Buffer.allocUnsafe($Ne);else{if(typeof e<"u")throw new Error(nt.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe($Ne)}}static fromSize(e,r){return new this({size:e,encoding:r})}static fromBuffer(e,r){return new this({buff:e,encoding:r})}static fromOptions(e){return new this(e)}static isSmartBufferOptions(e){let r=e;return r&&(r.encoding!==void 0||r.size!==void 0||r.buff!==void 0)}read
2026-05-22 12:36:07 +00:00
`).join(`
`+i),t.push(s+"m+"+kF.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=K7t()+e+" "+t[0]}o(J7t,"formatArgs");function K7t(){return ir.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(K7t,"getDate");function Z7t(...t){return process.stderr.write(PF.formatWithOptions(ir.inspectOpts,...t)+`
`)}o(Z7t,"log");function e9t(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(e9t,"save");function t9t(){return process.env.DEBUG}o(t9t,"load");function r9t(t){t.inspectOpts={};let e=Object.keys(ir.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=ir.inspectOpts[e[r]]}o(r9t,"init");kF.exports=pte()(ir);var{formatters:LFe}=kF.exports;LFe.o=function(t){return this.inspectOpts.colors=this.useColors,PF.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};LFe.O=function(t){return this.inspectOpts.colors=this.useColors,PF.inspect(t,this.inspectOpts)}});var Ate=b((OG0,lte)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?lte.exports=WFe():lte.exports=QFe()});var kFe=b((EG0,PFe)=>{var n9t=require("dns"),s9t=["if-modified-since","if-none-match","if-unmodified-since","if-match","if-range"],i9t=o(t=>{let{strictSSL:e,...r}={...t};if(r.method=r.method?r.method.toUpperCase():"GET",e==null?r.rejectUnauthorized=process.env.NODE_TLS_REJECT_UNAUTHORIZED!=="0":r.rejectUnauthorized=e!==!1,!r.retry)r.retry={retries:0};else if(typeof r.retry=="string"){let n=parseInt(r.retry,10);isFinite(n)?r.retry={retries:n}:r.retry={retries:0}}else typeof r.retry=="number"?r.retry={retries:r.retry}:r.retry={retries:0,...r.retry};return r.dns={ttl:300*1e3,lookup:n9t.lookup,...r.dns},r.cache=r.cache||"default",r.cache==="default"&&Object.keys(r.headers||{}).some(s=>s9t.includes(s.toLowerCase()))&&(r.cache="no-store"),r.cacheAdditionalHeaders=r.cacheAdditionalHeaders||[],r.cacheManager&&!r.cachePath&&(r.cachePath=r.cacheManager),r},"configureOptions");PFe.exports=i9t});var fte=b((CG0,VFe)=>{var UFe=IY(),GFe=FY(),o9t=ay(),HFe={shared:!1,ignoreCargoCult:!0},a9t={status:200,headers:{}},Ag=o(t=>{let e={method:t.method,url:t.url,headers:{},compress:t.compress};return t.headers.forEach((r,n)=>{e.headers[n]=r}),e},"requestObject"),XFe=o(t=>{let e={status:t.status,headers:{}};return t.headers.forEach((r,n)=>{e.headers[n]=r}),e},"responseObject"),dte=class{static{o(this,"CachePolicy")}constructor({entry:e,request:r,response:n,options:s}){this.entry=e,this.request=Ag(r),this.response=XFe(n),this.options=s,this.policy=new UFe(this.request,this.response,HFe),this.entry&&(this.policy._responseTime=this.entry.metadata.time)}static storable(e,r){return!r.cachePath||r.cache==="no-store"||!["GET","HEAD"].includes(e.method)?!1:new UFe(Ag(e),a9t,HFe).storable()}satisfies(e){let r=Ag(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;let n=new GFe(this.request),s=new GFe(r);return JSON.stringify(n.mediaTypes())!==JSON.stringify(s.mediaTypes())||JSON.stringify(n.languages())!==JSON.stringify(s.languages())||JSON.stringify(n.encodings())!==JSON.stringify(s.encodings())?!1:this.options.integrity?o9t.parse(this.options.integrity).match(this.entry.integrity):!0}storable(){return this.policy.storable()}get mustRevalidate(){return!!this.policy._rescc["must-revalidate"]}needsRevalidation(e){let r=Ag(e);return r.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){return this.policy.responseHeaders()}revalidationHeaders(e){let r=Ag(e);return this.policy.revalidationHeaders(r)}revalidated(e,r){let n=Ag(e),s=XFe(r);return!this.policy.revalidatedPolicy(n,s).modified}};VFe.exports=dte});var $Fe=b((DG0,jFe)=>{var hte=class extends Error{static{o(this,"NotCachedError")}constructor(e){super(`request to ${e} failed: cache mode is 'only-if-cached' but no cached response is available.`),this.code="ENOTCACHED"}};jFe.exports={NotCachedError:hte}});var Mte=b((IG0,YFe)=>{"use strict";var c9t=Z2(),bte=class extends c9t{static{o(this,"CachingMinipassPipeline")}#e=[];#t=new Map;constructor(e,...r){super(),this.#e=e.events,r.length&&this.push(...r)}on(e,r){return this.#e.includes(e)&&this.#t.has(e)?r(...this.#t.get(e)):super.on(e,r)}emit(e,...r){return this.#e.includes(e)&&this.#t.set(e,r),super.emit(e,...r)}};YFe.exports=bte});var KFe=b((wG0,JFe)=>{var{URL:u9t,format:p9t}=require("url"),l9t={auth:!1,fragment:!1,search:!0,unicode:!1},A9t=o(t=>{let e=new u9t(t.url);return`make-fetch-happen:request-cache:${p9t(e,l9t)}`},"cacheKey");JFe.exports=A9t});var ZFe=b((NG0,d9t)=>{d9t.exports={name:"make-fetch-happen",version:"15.0.4",description:"Opinionated, caching, retrying fetch client",main:"lib/index.js",files:["bin/","lib/"],scripts:{test:"tap",posttest:"npm run lint",eslint:'eslint "**/*.{js,cjs,ts,mjs,jsx,tsx}"',lint:"npm run eslint",lintfix:"npm run eslint -- --fix",postlint:"template-oss-check",snap:"tap","template-oss
`).forEach(r=>{r.match(tGt)||r.match(rGt)||(e+=r)}),Buffer.from(e,"base64")}o(nGt,"toDER");function sGt(t,e="CERTIFICATE"){let n=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...n,`-----END ${e}-----`].join(`
2026-05-22 12:36:07 +00:00
`).concat(`
`)}o(sGt,"fromDER")});var fT=b(kA=>{"use strict";Object.defineProperty(kA,"__esModule",{value:!0});kA.SHA2_HASH_ALGOS=kA.RSA_SIGNATURE_ALGOS=kA.ECDSA_SIGNATURE_ALGOS=void 0;kA.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"};kA.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"};kA.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 s0e=b(hT=>{"use strict";Object.defineProperty(hT,"__esModule",{value:!0});hT.RFC3161TimestampVerificationError=void 0;var n0e=class extends Error{static{o(this,"RFC3161TimestampVerificationError")}};hT.RFC3161TimestampVerificationError=n0e});var JTe=b(Hc=>{"use strict";var iGt=Hc&&Hc.__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]})),oGt=Hc&&Hc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),aGt=Hc&&Hc.__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"&&iGt(r,e,n[s]);return oGt(r,e),r}})();Object.defineProperty(Hc,"__esModule",{value:!0});Hc.TSTInfo=void 0;var YTe=aGt(zg()),cGt=fT(),uGt=s0e(),i0e=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 cGt.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=YTe.digest(this.messageImprintHashAlgorithm,e);if(!YTe.bufferEqual(r,this.messageImprintHashedMessage))throw new uGt.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};Hc.TSTInfo=i0e});var ZTe=b(Xc=>{"use strict";var pGt=Xc&&Xc.__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]})),lGt=Xc&&Xc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),AGt=Xc&&Xc.__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"&&pGt(r,e,n[s]);return lGt(r,e),r}})();Object.defineProperty(Xc,"__esModule",{value:!0});Xc.RFC3161Timestamp=void 0;var dGt=lT(),o0e=AGt(zg()),KTe=fT(),_C=s0e(),fGt=JTe(),hGt="1.2.840.113549.1.7.2",bGt="1.2.840.113549.1.9.16.1.4",MGt="1.2.840.113549.1.9.4",a0e=class t{static{o(this,"RFC3161Timestamp")}root;constructor(e){this.root=e}static parse(e){let r=dGt.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 signerDiges
2026-05-22 12:36:07 +00:00
`,FHt=/\u2014 (\S+) (\S+)\n/g;function THt(t,e){let r=t.inclusionProof,n=T0e.fromString(r.checkpoint.envelope),s=qT.fromString(n.note);if(!xHt(n,e))throw new UC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return s}o(THt,"verifyCheckpoint");function xHt(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(n=>{let s=e.find(i=>Bxe.crypto.bufferEqual(i.logID.subarray(0,4),n.keyHint)&&i.baseURL.match(n.name));return s?Bxe.crypto.verify(r,s.publicKey,n.signature):!1})}o(xHt,"verifySignedNote");var T0e=class t{static{o(this,"SignedNote")}note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(F0e))throw new UC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(F0e),n=e.slice(0,r+1),i=e.slice(r+F0e.length).matchAll(FHt),a=Array.from(i,c=>{let[,u,p]=c,l=Buffer.from(p,"base64");if(l.length<5)throw new UC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:u,keyHint:l.subarray(0,4),signature:l.subarray(4)}});if(a.length===0)throw new UC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(n,a)}},qT=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 UC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let n=r[0],s=BigInt(r[1]),i=Buffer.from(r[2],"base64"),a=r.slice(3);return new t(n,s,i,a)}};GC.LogCheckpoint=qT});var qxe=b(L0e=>{"use strict";Object.defineProperty(L0e,"__esModule",{value:!0});L0e.verifyMerkleInclusion=LHt;var W0e=ta(),x0e=kr(),_Ht=Buffer.from([0]),WHt=Buffer.from([1]);function LHt(t,e){let r=t.inclusionProof,n=BigInt(r.logIndex),s=BigInt(e.logSize);if(n<0n||n>=s)throw new x0e.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${n}`});let{inner:i,border:a}=QHt(n,s);if(r.hashes.length!==i+a)throw new x0e.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let c=r.hashes.slice(0,i),u=r.hashes.slice(i),p=XHt(t.canonicalizedBody),l=kHt(PHt(p,c,n),u);if(!W0e.crypto.bufferEqual(l,e.logHash))throw new x0e.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}o(LHt,"verifyMerkleInclusion");function QHt(t,e){let r=UHt(t,e),n=GHt(t>>BigInt(r));return{inner:r,border:n}}o(QHt,"decompInclProof");function PHt(t,e,r){return e.reduce((n,s,i)=>r>>BigInt(i)&BigInt(1)?_0e(s,n):_0e(n,s),t)}o(PHt,"chainInner");function kHt(t,e){return e.reduce((r,n)=>_0e(n,r),t)}o(kHt,"chainBorderRight");function UHt(t,e){return HHt(t^e-BigInt(1))}o(UHt,"innerProofSize");function GHt(t){return t.toString(2).split("1").length-1}o(GHt,"onesCount");function HHt(t){return t===0n?0:t.toString(2).length}o(HHt,"bitLength");function _0e(t,e){return W0e.crypto.digest("sha256",WHt,t,e)}o(_0e,"hashChildren");function XHt(t){return W0e.crypto.digest("sha256",_Ht,t)}o(XHt,"hashLeaf")});var Rxe=b(Q0e=>{"use strict";Object.defineProperty(Q0e,"__esModule",{value:!0});Q0e.verifyTLogSET=$Ht;var Ixe=ta(),VHt=kr(),jHt=yg();function $Ht(t,e){if(!(0,jHt.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(s=>{let i=YHt(t),a=Buffer.from(Ixe.json.canonicalize(i),"utf8"),c=t.inclusionPromise.signedEntryTimestamp;return Ixe.crypto.verify(a,s.publicKey,c)}))throw new VHt.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}o($Ht,"verifyTLogSET");function YHt(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(YHt,"toVerificationPayload")});var Sxe=b(IT=>{"use strict";Object.defineProperty(IT,"__esModule",{value:!0});IT.verifyTLogBody=tXt;IT.verifyTLogInclusion=rXt;var wxe=aee(),U0e=kr(),P0e=Exe(),k0e=yxe(),JHt=Cxe(),KHt=Dxe(),ZHt=qxe(),eXt=Rxe();function tXt(t,e){let{kind:r,version:n}=t.kindVersion,s=JSON.parse(t.canonicalizedBody.toString("utf8"));if(r!==s.kind||n!==s.apiVersion)throw new U0e.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${n}, received: ${s.kind}/${s.apiVersion}`});switch(r){case"dsse":if(n==P0e.DSSE_API_VERSION_V1)return(0,P0e.verifyDSSETLogBody)(s,e);{let i=wxe.Entry.fromJSON(s);return(0,P0e.verifyDSSETLogBodyV2)(i,e)}case"intoto":return(0,JHt.verifyIntotoTLogBody)(s,e);case"hashedrekord":if(n==k0e.HASHEDREKORD_API_VERSION_V1)return(0,k0e.verifyHashedRekordTLogBody)(s,e);{let i=wxe.Entry.fromJSON(s);return(0,k0e.verifyHashedRekordTLogBodyV2)(i,e)}default:throw new U0e.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}o(tXt,"verifyTLogBody");function rXt(t,e){let r=!1;if(nXt(t)&&((0,eXt.verifyTLogSET)(t,e),r=!0),sXt(t)){let n=(0,KHt.verifyCheckpoint)(t,e);(0,ZHt.verifyMerkleInclusion)(t,n),r=!0}if(!r)throw new U0e.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}o(rXt,"verifyTLogInclusion");function nXt(t){return t.inclusionPromise!==void 0}o(nXt,"isTLogEntryWithInclusionPromise");function sXt(t){return t.inclusionProof!==void 0}o(sXt,"isTLogEntryWithInclusionProof")});var xxe=b(RT=>{"use strict";Object.defineProperty(RT,"__esModule",{value:!0});RT.Verifier=
[`+S+"] ";for(L in arguments[0])i(arguments[0],L)&&(q+=L+": "+arguments[0][L]+", ");q=q.slice(0,-2)}else q=arguments[S];O.push(q)}Q(f+`
Arguments: `+Array.prototype.slice.call(O).join("")+`
`+new Error().stack),g=!1}return M.apply(this,arguments)},M)}o($,"deprecate");var me={};function De(f,M){e.deprecationHandler!=null&&e.deprecationHandler(f,M),me[f]||(Q(M),me[f]=!0)}o(De,"deprecateSimple"),e.suppressDeprecationWarnings=!1,e.deprecationHandler=null;function Z(f){return typeof Function<"u"&&f instanceof Function||Object.prototype.toString.call(f)==="[object Function]"}o(Z,"isFunction");function qe(f){var M,g;for(g in f)i(f,g)&&(M=f[g],Z(M)?this[g]=M:this["_"+g]=M);this._config=f,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}o(qe,"set");function Y(f,M){var g=A({},f),O;for(O in M)i(M,O)&&(s(f[O])&&s(M[O])?(g[O]={},A(g[O],f[O]),A(g[O],M[O])):M[O]!=null?g[O]=M[O]:delete g[O]);for(O in f)i(f,O)&&!i(M,O)&&s(f[O])&&(g[O]=A({},g[O]));return g}o(Y,"mergeConfigs");function J(f){f!=null&&this.set(f)}o(J,"Locale");var ve;Object.keys?ve=Object.keys:ve=o(function(f){var M,g=[];for(M in f)i(f,M)&&g.push(M);return g},"keys");var re={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function ze(f,M,g){var O=this._calendar[f]||this._calendar.sameElse;return Z(O)?O.call(M,g):O}o(ze,"calendar");function at(f,M,g){var O=""+Math.abs(f),q=M-O.length,S=f>=0;return(S?g?"+":"":"-")+Math.pow(10,Math.max(0,q)).toString().substr(1)+O}o(at,"zeroFill");var Lt=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Pe=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,s0={},Rt={};function ce(f,M,g,O){var q=O;typeof O=="string"&&(q=o(function(){return this[O]()},"func")),f&&(Rt[f]=q),M&&(Rt[M[0]]=function(){return at(q.apply(this,arguments),M[1],M[2])}),g&&(Rt[g]=function(){return this.localeData().ordinal(q.apply(this,arguments),f)})}o(ce,"addFormatToken");function li(f){return f.match(/\[[\s\S]/)?f.replace(/^\[|\]$/g,""):f.replace(/\\/g,"")}o(li,"removeFormattingTokens");function Sn(f){var M=f.match(Lt),g,O;for(g=0,O=M.length;g<O;g++)Rt[M[g]]?M[g]=Rt[M[g]]:M[g]=li(M[g]);return function(q){var S="",L;for(L=0;L<O;L++)S+=Z(M[L])?M[L].call(q,f):M[L];return S}}o(Sn,"makeFormatFunction");function Dt(f,M){return f.isValid()?(M=R0(M,f.localeData()),s0[M]=s0[M]||Sn(M),s0[M](f)):f.localeData().invalidDate()}o(Dt,"formatMoment");function R0(f,M){var g=5;function O(q){return M.longDateFormat(q)||q}for(o(O,"replaceLongDateFormatTokens"),Pe.lastIndex=0;g>=0&&Pe.test(f);)f=f.replace(Pe,O),Pe.lastIndex=0,g-=1;return f}o(R0,"expandFormat");var eh={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function th(f){var M=this._longDateFormat[f],g=this._longDateFormat[f.toUpperCase()];return M||!g?M:(this._longDateFormat[f]=g.match(Lt).map(function(O){return O==="MMMM"||O==="MM"||O==="DD"||O==="dddd"?O.slice(1):O}).join(""),this._longDateFormat[f])}o(th,"longDateFormat");var Jg="Invalid date";function su(){return this._invalidDate}o(su,"invalidDate");var v="%d",k=/\d{1,2}/;function U(f){return this._ordinal.replace("%d",f)}o(U,"ordinal");var K={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function _e(f,M,g,O){var q=this._relativeTime[g];return Z(q)?q(f,M,g,O):q.replace(/%d/i,f)}o(_e,"relativeTime");function pt(f,M){var g=this._relativeTime[f>0?"future":"past"];return Z(g)?g(M):g.replace(/%s/i,M)}o(pt,"pastFuture");var i0={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}o(r00,"_nonIterableRest");y4.exports=r00,y4.exports.__esModule=!0,y4.exports.default=y4.exports});var r9e=b((rt1,C4)=>{var n00=Qke(),s00=S7e(),i00=e9e(),o00=t9e();function a00(t,e){return n00(t)||s00(t,e)||i00(t,e)||o00()}o(a00,"_slicedToArray");C4.exports=a00,C4.exports.__esModule=!0,C4.exports.default=C4.exports});var s9e=b((st1,n9e)=>{"use strict";var c00=Bx().forEach,u00=m4(),p00=u00("forEach");n9e.exports=p00?[].forEach:o(function(e){return c00(this,e,arguments.length>1?arguments[1]:void 0)},"forEach")});var o9e=b(()=>{"use strict";var l00=n0(),i9e=s9e();l00({target:"Array",proto:!0,forced:[].forEach!==i9e},{forEach:i9e})});var c9e=b((ct1,a9e)=>{"use strict";o9e();var A00=ca();a9e.exports=A00("Array","forEach")});var p9e=b((ut1,u9e)=>{"use strict";var d00=c9e();u9e.exports=d00});var l9e=b(()=>{});var d9e=b((At1,A9e)=>{"use strict";var f00=Pg(),h00=Rn(),b00=ls(),M00=p9e();l9e();var kre=Array.prototype,m00={DOMTokenList:!0,NodeList:!0};A9e.exports=function(t){var e=t.forEach;return t===kre||b00(kre,t)&&e===kre.forEach||h00(m00,f00(t))?M00:e}});var Ure=b((dt1,f9e)=>{f9e.exports=d9e()});var h9e=b(()=>{"use strict";var g00=n0(),z00=cx().includes,O00=G0(),E00=y1e(),y00=O00(function(){return!Array(1).includes()});g00({target:"Array",proto:!0,forced:y00},{includes:o(function(e){return z00(this,e,arguments.length>1?arguments[1]:void 0)},"includes")});E00("includes")});var M9e=b((Mt1,b9e)=>{"use strict";h9e();var C00=ca();b9e.exports=C00("Array","includes")});var g9e=b((mt1,m9e)=>{"use strict";var B00=ui(),D00=Jp(),q00=l1(),I00=q00("match");m9e.exports=function(t){var e;return B00(t)&&((e=t[I00])!==void 0?!!e:D00(t)==="RegExp")}});var O9e=b((gt1,z9e)=>{"use strict";var R00=g9e(),w00=TypeError;z9e.exports=function(t){if(R00(t))throw new w00("The method doesn't accept regular expressions");return t}});var y9e=b((zt1,E9e)=>{"use strict";var S00=l1(),N00=S00("match");E9e.exports=function(t){var e=/./;try{"/./"[t](e)}catch{try{return e[N00]=!1,"/./"[t](e)}catch{}}return!1}});var B9e=b(()=>{"use strict";var v00=n0(),F00=I0(),T00=O9e(),x00=Lf(),C9e=ru(),_00=y9e(),W00=F00("".indexOf);v00({target:"String",proto:!0,forced:!_00("includes")},{includes:o(function(e){return!!~W00(C9e(x00(this)),C9e(T00(e)),arguments.length>1?arguments[1]:void 0)},"includes")})});var q9e=b((Ct1,D9e)=>{"use strict";B9e();var L00=ca();D9e.exports=L00("String","includes")});var w9e=b((Bt1,R9e)=>{"use strict";var I9e=ls(),Q00=M9e(),P00=q9e(),Gre=Array.prototype,Hre=String.prototype;R9e.exports=function(t){var e=t.includes;return t===Gre||I9e(Gre,t)&&e===Gre.includes?Q00:typeof t=="string"||t===Hre||I9e(Hre,t)&&e===Hre.includes?P00:e}});var N9e=b((Dt1,S9e)=>{"use strict";var k00=w9e();S9e.exports=k00});var B4=b((qt1,v9e)=>{v9e.exports=N9e()});var Xre=b((It1,F9e)=>{"use strict";F9e.exports=`
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`});var _9e=b((Rt1,x9e)=>{"use strict";var U00=I0(),G00=Lf(),H00=ru(),jre=Xre(),T9e=U00("".replace),X00=RegExp("^["+jre+"]+"),V00=RegExp("(^|[^"+jre+"])["+jre+"]+$"),Vre=o(function(t){return function(e){var r=H00(G00(e));return t&1&&(r=T9e(r,X00,"")),t&2&&(r=T9e(r,V00,"$1")),r}},"createMethod");x9e.exports={start:Vre(1),end:Vre(2),trim:Vre(3)}});var G9e=b((St1,U9e)=>{"use strict";var P9e=I1(),j00=G0(),$00=I0(),Y00=ru(),J00=_9e().trim,W9e=Xre(),D4=P9e.parseInt,L9e=P9e.Symbol,Q9e=L9e&&L9e.iterator,k9e=/^[+-]?0x/i,K00=$00(k9e.exec),Z00=D4(W9e+"08")!==8||D4(W9e+"0x16")!==22||Q9e&&!j00(function(){D4(Object(Q9e))});U9e.exports=Z00?o(function(e,r){var n=J00(Y00(e));return D4(n,r>>>0||(K00(k9e,n)?16:10))},"parseInt"):D4});var X9e=b(()=>{"use strict";var e10=n0(),H9e=G9e();e10({global:!0,forced:parseInt!==H9e},{parseInt:H9e})});var j9e=b((Tt1,V9e)=>{"use strict";X9e();var t10=sa();V9e.exports=t10.parseInt});var Y9e=b((xt1,$9e)=>{"use strict";var r10=j9e();$9e.exports=r10});var K9e=b((_t1,J9e)=>{J9e.exports=Y9e()});var Fx=b((Wt1,Z9e)=>{Z9e.exports=Pre()});var rUe=b((Lt1,tUe)=>{"use strict";var eUe=ZC(),n10=TypeError;tUe.exports=function(t,e){if(!delete t[e])throw new n10("Cannot delete property "+eUe(e)+" of "+eUe(t))}});var iUe=b((Qt1,sUe)=>{"use strict";var nUe=l4(),s10=Math.floor,$re=o(function(t,e){var r=t.length;if(r<8)for(var n=1,s,i;n<r;){for(i=n,s=t[n];i&&e(t[i-1],s)>0;)t[i]=t[--i];i!==n++&&(t[i]=s)}else for(var a=s10(r/2),c=$re(nUe(t,0,a),e),u=$re(nUe(t,a),e),p=c.length,l=u.length,A=0,d=0;A<p||d<l;)t[A+d]=A<p&&d<l?e(c[A],u[d])<=0?c[A++]:u[d++]:A<p?c[A++]:u[d++];return t},"sort");sUe.exports=$re});var cUe=b((kt1,aUe)=>{"use strict";var i10=vg(),oUe=i10.match(/firefox\/(\d+)/i);aUe.exports=!!oUe&&+oUe[1]});var pUe=b((Ut1,uUe)=>{"use strict";var o10=vg();uUe.exports=/MSIE|Trident/.test(o10)});var dUe=b((Gt1,AUe)=>{"use strict";var a10=vg(),lUe=a10.match(/AppleWebKit\/(\d+)\./);AUe.exports=!!lUe&&+lUe[1]});var EUe=b(()=>{"use strict";var c10=n0(),zUe=I0(),u10=Pf(),p10=eu(),fUe=el(),l10=rUe(),hUe=ru(),Yre=G0(),A10=iUe(),d10=m4(),bUe=cUe(),f10=pUe(),MUe=Fg(),mUe=dUe(),YA=[],gUe=zUe(YA.sort),h10=zUe(YA.push),b10=Yre(function(){YA.sort(void 0)}),M10=Yre(function(){YA.sort(null)}),m10=d10("sort"),OUe=!Yre(function(){if(MUe)return MUe<70;if(!(bUe&&bUe>3)){if(f10)return!0;if(mUe)return mUe<603;var t="",e,r,n,s;for(e=65;e<76;e++){switch(r=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(s=0;s<47;s++)YA.push({k:r+s,v:n})}for(YA.sort(function(i,a){return a.v-i.v}),s=0;s<YA.length;s++)r=YA[s].k.charAt(0),t.charAt(t.length-1)!==r&&(t+=r);return t!=="DGBEFHACIJK"}}),g10=b10||!M10||!m10||!OUe,z10=o(function(t){return function(e,r){return r===void 0?-1:e===void 0?1:t!==void 0?+t(e,r)||0:hUe(e)>hUe(r)?1:-1}},"getSortCompare");c10({target:"Array",proto:!0,forced:g10},{sort:o(function(e){e!==void 0&&u10(e);var r=p10(this);if(OUe)return e===void 0?gUe(r):gUe(r,e);var n=[],s=fUe(r),i,a;for(a=0;a<s;a++)a in r&&h10(n,r[a]);for(A10(n,z10(e)),i=fUe(n),a=0;a<i;)r[a]=n[a++];for(;a<s;)l10(r,a++);return r},"sort")})});var CUe=b((jt1,yUe)=>{"use strict";EUe();var O10=ca();yUe.exports=O10("Array","sort")});var DUe=b(($t1,BUe)=>{"use strict";var E10=ls(),y10=CUe(),Jre=Array.prototype;BUe.exports=function(t){var e=t.sort;return t===Jre||E10(Jre,t)&&e===Jre.sort?y10:e}});var IUe=b((Yt1,qUe)=>{"use strict";var C10=DUe();qUe.exports=C10});var wUe=b((Jt1,RUe)=>{RUe.exports=IUe()});var SUe=b(()=>{});var FUe=b((e01,vUe)=>{"use strict";var B10=I1(),D10=G0(),NUe=B10.RegExp,q10=!D10(function(){var t=!0;try{NUe(".","d")}catch{t=!1}var e={},r="",n=t?"dgimsy":"gimsy",s=o(function(u,p){Object.defineProperty(e,u,{get:o(function(){return r+=p,!0},"get")})},"addGetter"),i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};t&&(i.hasIndices="d");for(var a in i)s(a,i[a]);var c=Object.getOwnPropertyDescriptor(NUe.prototype,"flags").get.call(e);return c!==n||r!==n});vUe.exports={correct:
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,c;return{s:o(function(){r=(0,L10.default)(t)},"s"),n:o(function(){var p=r.next();return i=p.done,p},"n"),e:o(function(p){a=!0,c=p},"e"),f:o(function(){try{!i&&r.return!=null&&r.return()}finally{if(a)throw c}},"f")}}o(R4,"_createForOfIteratorHelper");function V10(t,e){var r;if(t){if(typeof t=="string")return $Ue(t,e);var n=(0,Ao.default)(r=Object.prototype.toString.call(t)).call(r,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return(0,U10.default)(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $Ue(t,e)}}o(V10,"_unsupportedIterableToArray");function $Ue(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}o($Ue,"_arrayLikeToArray");var d0="xregexp",Yf={astral:!1,namespacing:!1},H0={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},nu={},q4={},Hg={},Kre=[],Xg="default",YUe="class",j10={default:/\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\d*|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|\(\?(?:[:=!]|<[=!])|[?*+]\?|{\d+(?:,\d*)?}\??|[\s\S]/,class:/\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|[\s\S]/},$10=/\$(?:{([\w$]+)}|<([\w$]+)>|(\d\d?|[\s\S]))/g,Y10=H0.exec.call(/()??/,"")[1]===void 0,J10=(0,$f.default)(/x/)!==void 0,K10={},tGe=K10.toString;function ene(t){var e=!0;try{if(new RegExp("",t),t==="y"){var r=(function(){return"gy"})(),n=".a".replace(new RegExp("a",r),".")==="..";n&&(e=!1)}}catch{e=!1}return e}o(ene,"hasNativeFlag");var rGe=ene("u"),tne=ene("y"),nGe={g:!0,i:!0,m:!0,u:rGe,y:tne};function sGe(t,e,r,n,s){var i;if(t[d0]={captureNames:e},s)return t;if(t.__proto__)t.__proto__=pe.prototype;else for(var a in pe.prototype)t[a]=pe.prototype[a];return t[d0].source=r,t[d0].flags=n&&(0,X10.default)(i=n.split("")).call(i).join(""),t}o(sGe,"augment");function I4(t){return H0.replace.call(t,/([\s\S])(?=[\s\S]*\1)/g,"")}o(I4,"clipDuplicates");function Kf(t,e){var r;if(!pe.isRegExp(t))throw new TypeError("Type RegExp expected");var n=t[d0]||{},s=Z10(t),i="",a="",c=null,u=null;return e=e||{},e.removeG&&(a+="g"),e.removeY&&(a+="y"),a&&(s=H0.replace.call(s,new RegExp("[".concat(a,"]+"),"g"),"")),e.addG&&(i+="g"),e.addY&&(i+="y"),i&&(s=I4(s+i)),e.isInternalOnly||(n.source!==void 0&&(c=n.source),(0,$f.default)(n)!=null&&(u=i?I4((0,$f.default)(n)+i):(0,$f.default)(n))),t=sGe(new RegExp(e.source||t.source,s),er0(t)?(0,Ao.default)(r=n.captureNames).call(r,0):null,c,u,e.isInternalOnly),t}o(Kf,"copyRegex");function iGe(t){return(0,eGe.default)(t,16)}o(iGe,"dec");function oGe(t,e,r){return t.input[t.index-1]==="("||t.input[t.index+t[0].length]===")"||t.input[t.index-1]==="|"||t.input[t.index+t[0].length]==="|"||t.index<1||t.index+t[0].length>=t.input.length||H0.test.call(/^\(\?[:=!]/,t.input.substr(t.index-3,3))||tr0(t.input,t.index+t[0].length,r)?"":"(?:)"}o(oGe,"getContextualTokenSeparator");function Z10(t){return J10?(0,$f.default)(t):H0.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(t))[1]}o(Z10,"getNativeFlags");function er0(t){return!!(t[d0]&&t[d0].captureNames)}o(er0,"hasNamedCapture");function aGe(t){return(0,eGe.default)(t,10).toString(16)}o(aGe,"hex");function tr0(t,e,r){var n="\\(\\?#[^)]*\\)",s="#[^#\\n]*",i="[?*+]|{\\d+(?:,\\d*)?}";return H0.test.call((0,Jf.default)(r).call(r,"x")?/^(?:\s|#[^#\n]*|\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/:/^(?:\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/,(0,Ao.default)(t).call(t,e))}o(tr0,"isQuantifierNext");function rne(t,e){return tGe.call(t)==="[object ".concat(e,"]")}o(rne,"isType");function cGe(t){for(;t.length<4;)t="0".concat(t);return t}o(cGe,"pad4");function rr0(t,e){if(I4(e)!==e)throw new SyntaxError("Invalid duplicate regex flag ".concat(e));t=H0.replace.call(t,/^\(\?([\w$]+)\)/,function(i,a){if(H0.test.call(/[gy]/,a))throw new SyntaxError("Cannot use flag g or y in mode modifier ".concat(i));return e=I4(e
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,c;return{s:o(function(){r=(0,Wr0.default)(t)},"s"),n:o(function(){var p=r.next();return i=p.done,p},"n"),e:o(function(p){a=!0,c=p},"e"),f:o(function(){try{!i&&r.return!=null&&r.return()}finally{if(a)throw c}},"f")}}o(Xr0,"_createForOfIteratorHelper");function Vr0(t,e){var r;if(t){if(typeof t=="string")return $Ge(t,e);var n=(0,Ur0.default)(r=Object.prototype.toString.call(t)).call(r,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return(0,kr0.default)(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $Ge(t,e)}}o(Vr0,"_unsupportedIterableToArray");function $Ge(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}o($Ge,"_arrayLikeToArray");var jr0=o(function(e){var r={},n=e._dec,s=e._hex,i=e._pad4;function a(d){return d.replace(/[- _]+/g,"").toLowerCase()}o(a,"normalize");function c(d){var h=/^\\[xu](.+)/.exec(d);return h?n(h[1]):d.charCodeAt(d[0]==="\\"?1:0)}o(c,"charCode");function u(d){var h="",m=-1;return(0,Hr0.default)(e).call(e,d,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,function(z){var C=c(z[1]);C>m+1&&(h+="\\u".concat(i(s(m+1))),C>m+2&&(h+="-\\u".concat(i(s(C-1))))),m=c(z[2]||z[1])}),m<65535&&(h+="\\u".concat(i(s(m+1))),m<65534&&(h+="-\\uFFFF")),h}o(u,"invertBmp");function p(d){var h="b!";return r[d][h]||(r[d][h]=u(r[d].bmp))}o(p,"cacheInvertedBmp");function l(d,h){var m=r[d],z="";if(m.bmp&&!m.isBmpLast){var C;z=(0,one.default)(C="[".concat(m.bmp,"]")).call(C,m.astral?"|":"")}if(m.astral&&(z+=m.astral),m.isBmpLast&&m.bmp){var E;z+=(0,one.default)(E="".concat(m.astral?"|":"","[")).call(E,m.bmp,"]")}return h?"(?:(?!".concat(z,")(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[\0-\uFFFF]))"):"(?:".concat(z,")")}o(l,"buildAstral");function A(d,h){var m=h?"a!":"a=";return r[d][m]||(r[d][m]=l(d,h))}o(A,"cacheAstral"),e.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,function(d,h,m){var z="Invalid double negation ",C="Unknown Unicode token ",E="Unicode token missing data ",B="Astral mode required for Unicode token ",I="Astral mode does not support Unicode tokens within character classes",w=d[1]==="P"||!!d[2],N=(0,Gr0.default)(m).call(m,"A"),x=a(d[4]||d[3]),Q=r[x];if(d[1]==="P"&&d[2])throw new SyntaxError(z+d[0]);if(!r.hasOwnProperty(x))throw new SyntaxError(C+d[0]);if(Q.inverseOf){if(x=a(Q.inverseOf),!r.hasOwnProperty(x)){var $;throw new ReferenceError((0,one.default)($="".concat(E+d[0]," -> ")).call($,Q.inverseOf))}Q=r[x],w=!w}if(!(Q.bmp||N))throw new SyntaxError(B+d[0]);if(N){if(h==="class")throw new SyntaxError(I);return A(x,w)}return h==="class"?w?p(x):Q.bmp:"".concat((w?"[^":"[")+Q.bmp,"]")},{scope:"all",optionalFlags:"A",leadChar:"\\"}),e.addUnicodeData=function(d){var h="Unicode token requires name",m="Unicode token has no character data ",z=Xr0(d),C;try{for(z.s();!(C=z.n()).done;){var E=C.value;if(!E.name)throw new Error(h);if(!(E.inverseOf||E.bmp||E.astral))throw new Error(m+E.name);r[a(E.name)]=E,E.alias&&(r[a(E.alias)]=E)}}catch(B){z.e(B)}finally{z.f()}e.cache.flush("patterns")},e._getUnicodeProperty=function(d){var h=a(d);return r[h]}},"_default");T4.default=jr0;YGe.exports=T4.default});var ZGe=b((S01,KGe)=>{KGe.exports=[{name:"InAdlam",astral:"\uD83A[\uDD00-\uDD5F]"},{name:"InAegean_Numbers",astral:"\uD800[\uDD00-\uDD3F]"},{name:"InAhom",astral:"\uD805[\uDF00-\uDF3F]"},{name:"InAlchemical_Symbols",astral:"\uD83D[\uDF00-\uDF7F]"},{name:"InAlphabetic_Presentation_Forms",bmp:"\uFB00-\uFB4F"},{name:"InAnatolian_Hieroglyphs",astral:"\uD811[\uDC00-\uDE7F]"},{name:"InAncient_Greek_Musical_Notation",astral:"\uD834[\uDE00-\uDE4F]"},{name:"InAncient_Greek_Numbers",astral:"\uD800[\uDD40-\uDD8F]"},{name:"InAncient_Symbols",astral:"\uD800[\uDD90-\uDDCF]"},{name:"InArabic",bmp:"\u0600-\u06FF"},{name:"InArabic_Extended_A",bmp:"\u08A0-\u08FF"},{name:"InArabic_Mathematical_Alphabetic_Symbols",astral:"\uD83B[\uDE00-\uDEFF]"},{name:"InArabic_Presentation_Forms_A",bmp:"\uFB50-\uFDFF"},{name:"InArabic_Presentation_Forms_B",
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}o(nde,"getBooleanInput");function AQ(t,e){if(process.env.GITHUB_OUTPUT||"")return cz("OUTPUT",MB(t,e));process.stdout.write(lQ.EOL),la("set-output",{name:t},pa(e))}o(AQ,"setOutput");function sde(t){process.exitCode=pQ.Failure,Mb(t)}o(sde,"setFailed");function Iu(){return process.env.RUNNER_DEBUG==="1"}o(Iu,"isDebug");function T(t){la("debug",{},t)}o(T,"debug");function Mb(t,e={}){la("error",O_(e),t instanceof Error?t.toString():t)}o(Mb,"error");function yt(t,e={}){la("warning",O_(e),t instanceof Error?t.toString():t)}o(yt,"warning");function W(t){process.stdout.write(t+lQ.EOL)}o(W,"info");function _d(t){y_("group",t)}o(_d,"startGroup");function Wd(){y_("endgroup")}o(Wd,"endGroup");function pr(t,e){return Not(this,void 0,void 0,function*(){_d(t);let r;try{r=yield e()}finally{Wd()}return r})}o(pr,"group");function mq(t,e){if(process.env.GITHUB_STATE||"")return cz("STATE",MB(t,e));la("save-state",{name:t},pa(e))}o(mq,"saveState");function ide(t){return process.env[`STATE_${t}`]||""}o(ide,"getState");var Ow=_(require("fs"),1),CX=_(require("os"),1),BX=_(require("path"),1);var ade=_(require("os"),1);function MO(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(MO,"toCommandValue");function cde(t,e,r){let n=new dQ(t,e,r);process.stdout.write(n.toString()+ade.EOL)}o(cde,"issueCommand");var ode="::",dQ=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=ode+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}=${Fot(s)}`)}}return e+=`${ode}${vot(this.message)}`,e}};function vot(t){return MO(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(vot,"escapeData");function Fot(t){return MO(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(Fot,"escapeProperty");var Ade=_(require("os"),1);var pde=require("os"),mO=require("fs");var fQ=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(l){try{p(n.next(l))}catch(A){a(A)}}o(c,"fulfilled");function u(l){try{p(n.throw(l))}catch(A){a(A)}}o(u,"rejected");function p(l){l.done?i(l.value):s(l.value).then(c,u)}o(p,"step"),p((n=n.apply(t,e||[])).next())})},{access:Tot,appendFile:xot,writeFile:_ot}=mO.promises,ude="GITHUB_STEP_SUMMARY";var hQ=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return fQ(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[ude];if(!e)throw new Error(`Unable to find environment variable for $${ude}. Check if your runtime environment supports job summaries.`);try{yield Tot(e,mO.constants.R_OK|mO.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 fQ(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?_ot:xot)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return fQ(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(pde.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{he
`),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 SO(i));return n.searchPaths.push(...YQ(n.patterns)),n})}static stat(e,r,n){return rP(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Cb.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){Ci(`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 Cb.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Cb.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(a=>a===i)){Ci(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};var Cpt=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(l){try{p(n.next(l))}catch(A){a(A)}}o(c,"fulfilled");function u(l){try{p(n.throw(l))}catch(A){a(A)}}o(u,"rejected");function p(l){l.done?i(l.value):s(l.value).then(c,u)}o(p,"step"),p((n=n.apply(t,e||[])).next())})};function Gfe(t,e){return Cpt(this,void 0,void 0,function*(){return yield Wq.create(t,e)})}o(Gfe,"create");var eI=_(require("crypto"),1),Ib=_(require("fs"),1),kd=_(require("path"),1),xbe=_(vs(),1),_be=_(require("util"),1);var WO;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(WO||(WO={}));var tn;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(tn||(tn={}));var Fs;(function(t){t.GNU="gnu",t.BSD="bsd"})(Fs||(Fs={}));var Kq=2,Zq=5e3,yP=5e3,CP=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Tbe=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,LO="cache.tar",BP="manifest.txt",e20=10*Math.pow(1024,3);var qb=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(l){try{p(n.next(l))}catch(A){a(A)}}o(c,"fulfilled");function u(l){try{p(n.throw(l))}catch(A){a(A)}}o(u,"rejected");function p(l){l.done?i(l.value):s(l.value).then(c,u)}o(p,"step"),p((n=n.apply(t,e||[])).next())})},Sdt=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,u){a=t[i](a),s(c,u,a.done,a.value)})}}function s(i,a,c,u){Promise.resolve(u).then(function(p){i({value:p,done:c})},a)}},Ndt="1.0";function QO(){return qb(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=kd.join(n,"actions","temp")}let r=kd.join(e,eI.randomUUID());return yield qu(r),r})}o(QO,"createTempDirectory");function Ia(t){return Ib.statSync(t).size}o(Ia,"getArchiveFileSizeInBytes");function DP(t){return qb(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(),u=yield Gfe(t.join(`
`),{implicitDescendants:!1});try{for(var p=!0,l=Sdt(u.globGenerator()),A;A=yield l.next(),e=A.done,!e;p=!0){s=A.value,p=!1;let h=kd.relative(c,s).replace(new RegExp(`\\${kd.sep}`,"g"),"/");T(`Matched: ${h}`),h===""?a.push("."):a.push(`${h}`)}}catch(d){r={error:d}}finally{try{!p&&!e&&(n=l.return)&&(yield n.call(l))}finally{if(r)throw r.error}}return a})}o(DP,"resolvePaths");function PO(t){return qb(this,void 0,void 0,function*(){return _be.promisify(Ib.unlink)(t)})}o(PO,"unlinkFile");function Wbe(t){return qb(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),T(`Checking ${e} ${r.join(" ")}`);try{yield ws(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:o(s=>n+=s.toString(),"stdout"),stderr:o(s=>n+=s.toString(),"stderr")}})}catch(s){T(s.message)}return n=n.trim(),T(n),n})}o(Wbe,"getVersion");function kO(){return qb(this,void 0,void 0,function*(){let t=yield Wbe("zstd",["--quiet"]),e=xbe.clean(t);return T(`zstd version: ${e}`),t===""?tn.Gzip:tn.ZstdWithoutLong})}o(kO,"getCompressionMethod");function _l(t){return t===tn.Gzip?WO.Gzip:WO.Zstd}o(_l,"getCacheFileName");function Lbe(){return qb(this,void 0,void 0,function*(){return Ib.existsSync(CP)?CP:(yield Wbe("tar")).toLowerCase().includes("gnu tar")?ur("tar"):""})}o(Lbe,"getGnuTarPathOnWindows");function qP(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o(qP,"assertDefined");function Rb(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(Ndt),eI.createHash("sha256").update(n.join("|")).digest("hex")}o(Rb,"getCacheVersion");function Qbe(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(Qbe,"getRuntimeToken");var GO=_(require("http"),1),wP=_(require("https"),1);function IP(t){let e=t.protocol==="https:";if(vdt(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 rI(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new rI(`http://${r}`)}else return}o(IP,"getProxyUrl");function vdt(t){if(!t.hostname)return!1;let e=t.hostname;if(Fdt(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(vdt,"checkBypass");function Fdt(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(Fdt,"isLoopbackAddress");var rI=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 Wl=_(uz(),1),Pbe=_(fb(),1);var J0=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(l){try{p(n.next(l))}catch(A){a(A)}}o(c,"fulfilled");function u(l){try{p(n.throw(l))}catch(A){a(A)}}o(u,"rejected");function p(l){l.done?i(l.value):s(l.value).then(c,u)}o(p,"step"),p((n=n.apply(t,e||[])).next())})},S0;(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]="MethodNotAllo
${$dt.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function cI(t){return t instanceof nn?!0:Gd(t)&&t.name==="RestError"}o(cI,"isRestError");function Qn(t,e){return Buffer.from(t,e)}o(Qn,"stringToUint8Array");var uI=_(require("node:http"),1),pI=_(require("node:https"),1),QP=_(require("node:zlib"),1),iMe=require("node:stream");var qi=HO("ts-http-runtime");var Ydt={};function XO(t){return t&&typeof t.pipe=="function"}o(XO,"isReadableStream");function sMe(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(sMe,"isStreamComplete");function oMe(t){return t&&typeof t.byteLength=="number"}o(oMe,"isArrayBuffer");var lI=class extends iMe.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}},PP=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 wa("The operation was aborted. Request has already been canceled.");n=o(p=>{p.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let p=new vo;qi.info(`request to '${p.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 p=e2t(c);p!==null&&e.headers.set("Content-Length",p)}let u;try{if(c&&e.onUploadProgress){let m=e.onUploadProgress,z=new lI(m);z.on("error",C=>{qi.error("Error in upload progress",C)}),XO(c)?c.pipe(z):z.end(c),c=z}let p=await this.makeRequest(e,r,c);s!==void 0&&clearTimeout(s);let l=Jdt(p),d={status:p.statusCode??0,headers:l,request:e};if(e.method==="HEAD")return p.resume(),d;u=a?Kdt(p,l):p;let h=e.onDownloadProgress;if(h){let m=new lI(h);m.on("error",z=>{qi.error("Error in download progress",z)}),u.pipe(m),u=m}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=u:d.bodyAsText=await Zdt(u),d}finally{if(e.abortSignal&&n){let p=Promise.resolve();XO(c)&&(p=sMe(c));let l=Promise.resolve();XO(u)&&(l=sMe(u)),Promise.all([p,l]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(A=>{qi.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((u,p)=>{let l=i?uI.default.request(c,u):pI.default.request(c,u);l.once("error",A=>{p(new nn(A.message,{code:A.code??nn.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let A=new wa("The operation was aborted. Rejecting from abort signal callback while making request.");l.destroy(A),p(A)}),n&&XO(n)?n.pipe(l):n?typeof n=="string"||Buffer.isBuffer(n)?l.end(n):oMe(n)?l.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(qi.error("Unrecognized body type",n),p(new nn("Unrecognized body type"))):l.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?uI.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new uI.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return pI.default.globalAgent;let s=e.tlsSettings??Ydt,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(qi.info("No cached TLS Agent exi
`;return e}o(Sft,"encodeHeaders");function Nft(t){return t instanceof Uint8Array?t.byteLength:FI(t)?t.size===-1?void 0:t.size:void 0}o(Nft,"getLength");function vft(t){let e=0;for(let r of t){let n=Nft(r);if(n===void 0)return;e+=n}return e}o(vft,"getTotalLength");async function Fft(t,e,r){let n=[Qn(`--${r}`,"utf-8"),...e.flatMap(i=>[Qn(`\r
`,"utf-8"),Qn(Sft(i.headers),"utf-8"),Qn(`\r
`,"utf-8"),i.body,Qn(`\r
--${r}`,"utf-8")]),Qn(`--\r
\r
`,"utf-8")],s=vft(n);s&&t.headers.set("Content-Length",s),t.body=await cme(n)}o(Fft,"buildRequestBody");var YO="multipartPolicy",Tft=70,xft=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function _ft(t){if(t.length>Tft)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!xft.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}o(_ft,"assertValidBoundary");function xI(){return{name:YO,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?_ft(r):r=wft(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await Fft(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}o(xI,"multipartPolicy");function _I(){return aI()}o(_I,"createEmptyPipeline");var ume=sI({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),KM0=ume.logger;function va(t){return ume.createClientLogger(t)}o(va,"createClientLogger");var Fa=va("core-rest-pipeline");function ak(t={}){return dI({logger:Fa.info,...t})}o(ak,"logPolicy");var ck=fI;function uk(t={}){return hI(t)}o(uk,"redirectPolicy");var WI=_(require("node:os"),1),LI=_(require("node:process"),1);function pme(){return"User-Agent"}o(pme,"getHeaderName");async function lme(t){if(LI.default&&LI.default.versions){let e=`${WI.default.type()} ${WI.default.release()}; ${WI.default.arch()}`,r=LI.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(lme,"setPlatformSpecificData");var QI="1.22.2";function Hft(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}o(Hft,"getUserAgentString");function Ame(){return pme()}o(Ame,"getUserAgentHeaderName");async function PI(t){let e=new Map;e.set("core-rest-pipeline",QI),await lme(e);let r=Hft(e);return t?`${t} ${r}`:r}o(PI,"getUserAgentValue");var dme=Ame(),fme="userAgentPolicy";function pk(t={}){let e=PI(t.userAgentPrefix);return{name:fme,async sendRequest(r,n){return r.headers.has(dme)||r.headers.set(dme,await e),n(r)}}}o(pk,"userAgentPolicy");var Ls=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function lk(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,a)=>{function c(){a(new Ls(s??"The operation was aborted."))}o(c,"rejectOnAbort");function u(){n?.removeEventListener("abort",p)}o(u,"removeListeners");function p(){r?.(),u(),c()}if(o(p,"onAbort"),n?.aborted)return c();try{t(l=>{u(),i(l)},l=>{u(),a(l)})}catch(l){a(l)}n?.addEventListener("abort",p)})}o(lk,"createAbortablePromise");var Yft="The delay was aborted.";function JO(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return lk(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:s??Yft})}o(JO,"delay");function Ql(t){if(Gd(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(Ql,"getErrorMessage");function hme(t){return Gd(t)}o(hme,"isError");function Wb(){return Ud()}o(Wb,"randomUUID");var St=Vd;var bme=Symbol("rawContent");function dk(t){return typeof t[bme]=="function"}o(dk,"hasRawContent");function Mme(t){return dk(t)?t[bme]():t}o(Mme,"getRawContent");var kI=YO;function fk(){let t=xI();return{name:kI,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)dk(n.body)&&(n.body=Mme(n.body));return t.sendRequest(e,r)},"sendRequest")}}o(fk,"multipartPolicy");var hk=bI;function bk(){return MI()}o(bk,"decompressResponsePolicy");fun
`&&t[i]!=="\r";i++)u+=t[i];if(u=u.trim(),u[u.length-1]==="/"&&(u=u.substring(0,u.length-1),i--),!zbt(u)){let A;return u.trim().length===0?A="Invalid space after '<'.":A="Tag '"+u+"' is an invalid name.",K0("InvalidTag",A,sn(t,i))}let p=hbt(t,i);if(p===!1)return K0("InvalidAttr","Attributes for '"+u+"' have open quote.",sn(t,i));let l=p.value;if(i=p.index,l[l.length-1]==="/"){let A=i-l.length;l=l.substring(0,l.length-1);let d=rge(l,e);if(d===!0)n=!0;else return K0(d.err.code,d.err.msg,sn(t,A+d.err.line))}else if(c)if(p.tagClosed){if(l.trim().length>0)return K0("InvalidTag","Closing tag '"+u+"' can't have attributes or invalid starting.",sn(t,a));if(r.length===0)return K0("InvalidTag","Closing tag '"+u+"' has not been opened.",sn(t,a));{let A=r.pop();if(u!==A.tagName){let d=sn(t,A.tagStartPos);return K0("InvalidTag","Expected closing tag '"+A.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+u+"'.",sn(t,a))}r.length==0&&(s=!0)}}else return K0("InvalidTag","Closing tag '"+u+"' doesn't have proper closing.",sn(t,i));else{let A=rge(l,e);if(A!==!0)return K0(A.err.code,A.err.msg,sn(t,i-l.length+A.err.line));if(s===!0)return K0("InvalidXml","Multiple possible root nodes found.",sn(t,i));e.unpairedTags.indexOf(u)!==-1||r.push({tagName:u,tagStartPos:a}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=tge(t,i);continue}else if(t[i+1]==="?"){if(i=ege(t,++i),i.err)return i}else break;else if(t[i]==="&"){let A=mbt(t,i);if(A==-1)return K0("InvalidChar","char '&' is not expected.",sn(t,i));i=A}else if(s===!0&&!Zme(t[i]))return K0("InvalidXml","Extra text at the end",sn(t,i));t[i]==="<"&&i--}}else{if(Zme(t[i]))continue;return K0("InvalidChar","char '"+t[i]+"' is not expected.",sn(t,i))}if(n){if(r.length==1)return K0("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",sn(t,r[0].tagStartPos));if(r.length>0)return K0("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return K0("InvalidXml","Start tag expected.",1);return!0}o(tR,"validate");function Zme(t){return t===" "||t===" "||t===`
`||t==="\r"}o(Zme,"isWhiteSpace");function ege(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 K0("InvalidXml","XML declaration allowed only at the start of the document.",sn(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}o(ege,"readPI");function tge(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(tge,"readCommentAndCDATA");var dbt='"',fbt="'";function hbt(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===dbt||t[e]===fbt)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(hbt,"readAttributeStr");var bbt=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function rge(t,e){let r=ZI(t,bbt),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return K0("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",u3(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return K0("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",u3(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return K0("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",u3(r[s]));let i=r[s][2];if(!gbt(i))return K0("InvalidAttr","Attribute '"+i+"' is an invalid name.",u3(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return K0("InvalidAttr","Attribute '"+i+"' is repeated.",u3(r[s]))}return!0}o(rge,"validateAttributeString");function Mbt(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(Mbt,"validateNumberAmpersand");function mbt(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Mbt(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(mbt,"validateAmpersand");function K0(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}o(K0,"getErrorObject");function gbt(t){return Pk(t)}o(gbt,"validateAttrName");function zbt(t){return Pk(t)}o(zbt,"validateTagName");function sn(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}o(sn,"getLineNumberForPosition");function u3(t){return t.startIndex+t[1].length}o(u3,"getPositionFromMatch");var nge={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"},sge={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",ntil
`);let e=new Gn("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,i=new A3(s.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let p=t.charCodeAt(c+1);if(p===47){let l=Gb(t,">",c,"Closing Tag is not closed."),A=t.substring(c+2,l).trim();if(s.removeNSPrefix){let h=A.indexOf(":");h!==-1&&(A=A.substr(h+1))}A=$k(s.transformTagName,A,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(A&&s.unpairedTagsSet.has(A))throw new Error(`Unpaired tag can not be used as closing tag: </${A}>`);d&&s.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",c=l}else if(p===63){let l=Yk(t,c,!1,"?>");if(!l)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let A=this.buildAttributesMap(l.tagExp,this.matcher,l.tagName,!0);if(A){let d=A[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1),i.setXmlVersion(Number(d)||1)}if(!(s.ignoreDeclaration&&l.tagName==="?xml"||s.ignorePiTags)){let d=new Gn(l.tagName);d.add(s.textNodeName,""),l.tagName!==l.tagExp&&l.attrExpPresent&&s.ignoreAttributes!==!0&&(d[":@"]=A),this.addChild(r,d,this.readonlyMatcher,c)}c=l.closeIndex+1}else if(p===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let l=Gb(t,"-->",c+4,"Comment is not closed.");if(s.commentPropName){let A=t.substring(c+4,l-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:A}])}c=l}else if(p===33&&t.charCodeAt(c+2)===68){let l=i.readDocType(t,c);this.entityDecoder.addInputEntities(l.entities),c=l.i}else if(p===33&&t.charCodeAt(c+2)===91){let l=Gb(t,"]]>",c,"CDATA is not closed.")-2,A=t.substring(c+9,l);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let d=this.parseTextData(A,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:A}]):r.add(s.textNodeName,d),c=l+2}else{let l=Yk(t,c,s.removeNSPrefix);if(!l){let x=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${x}"`)}let A=l.tagName,d=l.rawTagName,h=l.tagExp,m=l.attrExpPresent,z=l.closeIndex;if({tagName:A,tagExp:h}=$k(s.transformTagName,A,h,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 C=r;C&&s.unpairedTagsSet.has(C.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let E=!1;h.length>0&&h.lastIndexOf("/")===h.length-1&&(E=!0,A[A.length-1]==="/"?(A=A.substr(0,A.length-1),h=A):h=h.substr(0,h.length-1),m=A!==h);let B=null,I={},w;w=Ubt(d),A!==e.tagname&&this.matcher.push(A,{},w),A!==h&&m&&(B=this.buildAttributesMap(h,this.matcher,A),B&&(I=kbt(B,s))),A!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=c;if(this.isCurrentNodeStopNode){let x="";if(E)c=l.closeIndex;else if(s.unpairedTagsSet.has(A))c=l.closeIndex;else{let $=this.readStopNodeData(t,d,z+1);if(!$)throw new Error(`Unexpected end of ${d}`);c=$.i,x=$.tagContent}let Q=new Gn(A);B&&(Q[":@"]=B),Q.add(s.textNodeName,x),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,Q,this.readonlyMatcher,N)}else{if(E){({tagName:A,tagExp:h}=$k(s.transformTagName,A,h,s));let x=new Gn(A);B&&(x[":@"]=B),this.addChild(r,x,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(A)){let x=new Gn(A);B&&(x[":@"]=B),this.addChild(r,x,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=l.closeIndex;continue}else{let x=new Gn(A);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),B&&(x[":@"]=B),this.addChild(r,x,this.readonlyMatcher,N),r=x}n="",c=z}}}else n+=t[c];return e.child},"parseXml"
`;function aMt(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(r7(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}o(aMt,"detectXmlVersionFromArray");function Bge(t,e,r,n,s){return!r.sanitizeName||Zd(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}o(Bge,"resolveTagName");function t7(t,e){let r="";e.format&&(r=oMt);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 ks(c)):c instanceof ks&&n.push(c)}let s=aMt(t,e),i=new _a;return Dge(t,e,r,i,n,s)}o(t7,"toXml");function Dge(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 u=t.toString();return u=e7(u,e),u}return""}for(let u=0;u<t.length;u++){let p=t[u],l=r7(p);if(l===void 0)continue;let d=l===e.textNodeName||l===e.cdataPropName||l===e.commentPropName||l[0]==="?"?l:Bge(l,!1,e,n,i),h=cMt(p[":@"],e);n.push(d,h);let m=pMt(n,s);if(d===e.textNodeName){let I=p[l];m||(I=e.tagValueProcessor(d,I),I=e7(I,e)),c&&(a+=r),a+=I,c=!1,n.pop();continue}else if(d===e.cdataPropName){c&&(a+=r);let I=p[l][0][e.textNodeName],w=oR(I);a+=`<![CDATA[${w}]]>`,c=!1,n.pop();continue}else if(d===e.commentPropName){let I=p[l][0][e.textNodeName],w=iR(I);a+=r+`<!--${w}-->`,c=!0,n.pop();continue}else if(d[0]==="?"){let I=Cge(p[":@"],e,m,n,i);a+=(d==="?xml"?"":r)+`<${d}${I}?>`,c=!0,n.pop();continue}let z=r;z!==""&&(z+=e.indentBy);let C=Cge(p[":@"],e,m,n,i),E=r+`<${d}${C}`,B;m?B=qge(p[l],e):B=Dge(p[l],e,z,n,s,i),e.unpairedTags.indexOf(d)!==-1?e.suppressUnpairedNode?a+=E+">":a+=E+"/>":(!B||B.length===0)&&e.suppressEmptyNode?a+=E+"/>":B&&B.endsWith(">")?a+=E+`>${B}${r}</${d}>`:(a+=E+">",B&&r!==""&&(B.includes("/>")||B.includes("</"))?a+=r+e.indentBy+B+r:a+=B,a+=`</${d}>`),c=!0,n.pop()}return a}o(Dge,"arrToStr");function cMt(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]=Gl(t[s]),n=!0}return n?r:null}o(cMt,"extractAttributeValues");function qge(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=r7(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=uMt(s[":@"],e),c=qge(s[i],e);!c||c.length===0?r+=`<${i}${a}/>`:r+=`<${i}${a}>${c}</${i}>`}}}return r}o(qge,"getRawContent");function uMt(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)}="${Gl(s)}"`}return r}o(uMt,"attr_to_str_raw");function r7(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(r7,"propName");function Cge(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),u=r?c:Bge(c,!0,e,n,s),p;r?p=t[a]:(p=e.attributeValueProcessor(a,t[a]),p=e7(p,e)),p===!0&&e.suppressBooleanAttributes?i+=` ${u}`:i+=` ${u}="${Gl(p)}"`}return i}o(Cge,"attr_to_str");function pMt(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(pMt,"checkStopNode");function e7(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(e7,"replaceEntitiesValue");function n7(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(n7,"getIgnoreAttributesFn");var lMt={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}o(Xn,"Builder");function AMt(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(AMt,"detectXmlVersionFromObj");function s7(t,e,r,n,s){return!r.sanitizeName||Zd(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}o(s7,"resolveTagName");Xn.prototype.build=function(t){if(this.options.preserveOrder)return t7(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new _a,r=AMt(t,this.options);return this.j2x(t,0,e,r).val}};Xn.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 u in t){if(!Object.prototype.hasOwnProperty.call(t,u))continue;let l=u===this.options.textNodeName||u===this.options.cdataPropName||u===this.options.commentPropName||this.options.attributesGroupName&&u===this.options.attributesGroupName||this.isAttribute(u)||u[0]==="?"?u:s7(u,!1,this.options,r,n);if(typeof t[u]>"u")this.isAttribute(u)&&(i+="");else if(t[u]===null)this.isAttribute(u)||l===this.options.cdataPropName||l===this.options.commentPropName?i+="":l[0]==="?"?i+=this.indentate(e)+"<"+l+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+l+"/"+this.tagEndChar;else if(t[u]instanceof Date)i+=this.buildTextValNode(t[u],l,"",e,r);else if(typeof t[u]!="object"){let A=this.isAttribute(u);if(A&&!this.ignoreAttributesFn(A,a)){let d=s7(A,!0,this.options,r,n);s+=this.buildAttrPairStr(d,""+t[u],c)}else if(!A)if(u===this.options.textNodeName){let d=this.options.tagValueProcessor(u,""+t[u]);i+=this.replaceEntitiesValue(d)}else{r.push(l);let d=this.checkStopNode(r);if(r.pop(),d){let h=""+t[u];h===""?i+=this.indentate(e)+"<"+l+this.closeTag(l)+this.tagEndChar:i+=this.indentate(e)+"<"+l+">"+h+"</"+l+this.tagEndChar}else i+=this.buildTextValNode(t[u],l,"",e,r)}}else if(Array.isArray(t[u])){let A=t[u].length,d="",h="";for(let m=0;m<A;m++){let z=t[u][m];if(!(typeof z>"u"))if(z===null)l[0]==="?"?i+=this.indentate(e)+"<"+l+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+l+"/"+this.tagEndChar;else if(typeof z=="object")if(this.options.oneListGroup){r.push(l);let C=this.j2x(z,e+1,r,n);r.pop(),d+=C.val,this.options.attributesGroupName&&z.hasOwnProperty(this.options.attributesGroupName)&&(h+=C.attrStr)}else d+=this.processTextOrObjNode(z,l,e,r,n);else if(this.options.oneListGroup){let C=this.options.tagValueProcessor(l,z);C=this.replaceEntitiesValue(C),d+=C}else{r.push(l);let C=this.checkStopNode(r);if(r.pop(),C){let E=""+z;E===""?d+=this.indentate(e)+"<"+l+this.closeTag(l)+this.tagEndChar:d+=this.indentate(e)+"<"+l+">"+E+"</"+l+this.tagEndChar}else d+=this.buildTextValNode(z,l,"",e,r)}}this.options.oneListGroup&&(d=this.buildObjectNode(d,l,h,e)),i+=d}else if(this.options.attributesGroupName&&u===this.options.attributesGroupName){let A=Object.keys(t[u]),d=A.length;for(let h=0;h<d;h++){let m=s7(A[h],!0,this.options,r,n);s+=this.buildAttrPairStr(m,""+t[u][A[h]],c)}}else i+=this.processTextOrObjNode(t[u],l,e,r,n)}return{attrStr:s,val:i}};Xn.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+'="'+Gl(e)+'"'};function dMt(t,e,r,n,s){let i=this.extractAttributes(t);if(n.push(e,i),this.checkStopNode(n)){let u=this.buildRawContent(t),p=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(u,e,p,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(dMt,"process
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(Ue.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===Ue.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(Ue.PREFIX_FOR_STORAGE));r.sort((s,i)=>MR(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=fR(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=hR(e.url),i={};if(s){let a=[];for(let c in s)if(Object.prototype.hasOwnProperty.call(s,c)){let u=c.toLowerCase();i[u]=s[c],a.push(u)}a.sort();for(let c of a)n+=`
${c}:${decodeURIComponent(i[c])}`}return n}};var N0=class extends r2{static{o(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new M3(e,r,this)}computeHMACSHA256(e){return(0,Tge.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var E1=va("storage-common");var Si;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Si||(Si={}));var Xl={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Si.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},EMt=new Ls("The operation was aborted."),m3=class extends Wa{static{o(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,n=Xl){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:Xl.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):Xl.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:Xl.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:Xl.maxRetryDelayInMs):Xl.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:Xl.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:Xl.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=dR(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=Hl(s.url,_u.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(E1.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(E1.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 E1.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 E1.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 E1.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return E1.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(n&&n?.status>=400){let a=n.headers.get(Ue.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')?(E1.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 Si.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Si.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return E1.info(`RetryPolicy: Delay for ${s}ms`),bR(s,n,EMt)}};var g3=class{static{o(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new m3(e,r,this.retryOptions)}};var yMt="storageBrowserPolicy";function xge(){return{name:yMt,async sendRequest(t,e){return St||((t.method==="GET"||t.method==="HEAD")&&(t.url=Hl(t.url,_u.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(Ue.COOKIE),t.headers.delete(Ue.CONTENT_LENGTH)),e(t)}}}o(xge,"storageBrowserPolicy");var CMt="StorageCorrectContentLengthPolicy";function _ge(){function t(e){e.body&&(
`)+`
`+n(i)+s(i),c=(0,Lge.createHmac)("sha256",t.accountKey).update(a,"utf8").digest("base64");i.headers.set(Ue.AUTHORIZATION,`SharedKey ${t.accountName}:${c}`)}o(e,"signRequest");function r(i,a){let c=i.headers.get(a);return!c||a===Ue.CONTENT_LENGTH&&c==="0"?"":c}o(r,"getHeaderValueToSign");function n(i){let a=[];for(let[u,p]of i.headers)u.toLowerCase().startsWith(Ue.PREFIX_FOR_STORAGE)&&a.push({name:u,value:p});a.sort((u,p)=>MR(u.name.toLowerCase(),p.name.toLowerCase())),a=a.filter((u,p,l)=>!(p>0&&u.name.toLowerCase()===l[p-1].name.toLowerCase()));let c="";return a.forEach(u=>{c+=`${u.name.toLowerCase().trimRight()}:${u.value.trimLeft()}
`}),c}o(n,"getCanonicalizedHeadersString");function s(i){let a=fR(i.url)||"/",c="";c+=`/${t.accountName}${a}`;let u=hR(i.url),p={};if(u){let l=[];for(let A in u)if(Object.prototype.hasOwnProperty.call(u,A)){let d=A.toLowerCase();p[d]=u[A],l.push(d)}l.sort();for(let A of l)c+=`
${A}:${decodeURIComponent(p[A])}`}return c}return o(s,"getCanonicalizedResourceString"),{name:IMt,async sendRequest(i,a){return e(i),a(i)}}}o(u7,"storageSharedKeyCredentialPolicy");var RMt="storageRequestFailureDetailsParserPolicy";function Qge(){return{name:RMt,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(Qge,"storageRequestFailureDetailsParserPolicy");var Pge=require("node:crypto");var mR=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,Pge.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var gR="12.31.0",zR="2026-02-06";var OR="https://storage.azure.com/.default",Wu={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Fo="",p7="*",wMt=1*1024*1024;var SMt=4*wMt;var kge="AES256",Uge="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Gge=["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"],Hge=["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"],Xge="BlobUsesCustomerSpecifiedEncryption",Vge="BlobDoesNotUseCustomerSpecifiedEncryption",jge=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Lu(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(Lu,"isPipelineLike");var z3=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 Z0(t,e={}){t||(t=new m0);let r=new z3([],e);return r._credential=t,r}o(Z0,"newPipeline");function NMt(t){let e=[vMt,$ge,FMt,TMt,xMt,_Mt,LM
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new Lo(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(Ngt,"generateBlobSASQueryParameters20150405");function vgt(t,e){if(t=l2(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=tc.parse(t.permissions.toString()).toString():s=rc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",p2(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Wo(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 Lo(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(vgt,"generateBlobSASQueryParameters20181109");function Fgt(t,e){if(t=l2(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=tc.parse(t.permissions.toString()).toString():s=rc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",p2(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Wo(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 Lo(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(Fgt,"generateBlobSASQueryParameters20201206");function Tgt(t,e){if(t=l2(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=tc.parse(t.permissions.toString()).toString():s=rc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",p2(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Nt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Nt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Wo(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 Lo(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(Tgt,"generateBlobSASQueryParametersUDK20181109");function xgt(t,e){if(t=l2(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=tc.parse(t.permissions.toString()).toString():s=rc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",p2(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Nt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Nt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Wo(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 Lo(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(xgt,"generateBlobSASQueryParametersUDK20200210");function _gt(t,e){if(t=l2(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=tc.parse(t.permissions.toString()).toString():s=rc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",p2(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Nt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Nt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Wo(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 Lo(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(_gt,"generateBlobSASQueryParametersUDK20201206");function Wgt(t,e){if(t=l2(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=tc.parse(t.permissions.toString()).toString():s=rc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",p2(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Nt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Nt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Wo(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 Lo(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(Wgt,"generateBlobSASQueryParametersUDK20250705");function p2(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}o(p2,"getCanonicalName");function l2(t){let e=t.version?t.version:zR;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(l2,"SASSignatureValuesSanityCheckAndAutofill");var N3=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=Wb()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Fo||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Fo||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 ye.withSpan("BlobLeaseClient-acquireLease",r,async n=>Re(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!==Fo||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Fo||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 ye.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=Re(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?.i
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"}};sM.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var h2=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"}};h2.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var k3=class extends Error{static{o(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var jzt=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(l){try{p(n.next(l))}catch(A){a(A)}}o(c,"fulfilled");function u(l){try{p(n.throw(l))}catch(A){a(A)}}o(u,"rejected");function p(l){l.done?i(l.value):s(l.value).then(c,u)}o(p,"step"),p((n=n.apply(t,e||[])).next())})},tH=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);W(`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 KOe(t,e,r){return jzt(this,void 0,void 0,function*(){var n;let s=new Xu(t),i=s.getBlockBlobClient(),a=new tH((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(),T(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let u=yield i.uploadFile(e,c);if(u._response.status>=400)throw new B5(`uploadCacheArchiveSDK: upload failed with status code ${u._response.status}`);return u}catch(u){throw yt(`uploadCacheArchiveSDK: internal error uploading cache archive: ${u.message}`),u}finally{a.stopDisplayTimer()}})}o(KOe,"uploadCacheArchiveSDK");var e3e=_(require("buffer"),1),nc=_(require("fs"),1),t3e=_(require("stream"),1),r3e=_(require("util"),1);var D5=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(l){try{p(n.next(l))}catch(A){a(A)}}o(c,"fulfilled");function u(l){try{p(n.throw(l))}catch(A){a(A)}}o(u,"rejected");function p(l){l.done?i(l.value):s(l.value).then(c,u)}o(p,"step"),p((n=n.apply(t,e||[])).next())})};function q5(t){return t?t>=200&&t<300:!1}o(q5,"isSuccessStatusCode");function $zt(t){return t?t>=500:!0}o($zt,"isServerErrorStatusCode");function Yzt(t){return t?[S0.BadGateway,S0.ServiceUnavailable,S0.GatewayTimeout].includes(t):!1}o(Yzt,"isRetryableStatusCode");function Jzt(t){return D5(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(Jzt,"sleep");function ZOe(t,e,r){return D5(this,arguments,void 0,function*(n,s,i,a=Kq,c=Zq,u=void 0){let p="",l=1;for(;l<=a;){let A,d,h=!1;try{A=yield s()}catch(m){u&&(A=u(m)),h=!0,p=m.message}if(A&&(d=i(A),!$zt(d)))return A;if(d&&(h=Yzt(d),p=`Cache service responded with ${d}`),T(`${n} - Attempt ${l} of ${a} failed with error: ${p}`),!h){T(`${n} - Error is not retryable`);break}yield Jzt(c),l++}throw Error(`${n} failed: ${p}`)})}o(ZOe,"retry");function U3(t,e){return D5(this,arguments,void 0,function*(r,n,s=Kq,i=Zq){return yield ZOe(r,n,a=>a.statusCode,s,i,a=>{if(a instanceof Ra)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}o(U3,"retryTypedResponse");function iM(t,e){return D5(this,arguments,void 0,function*(r,n,s=Kq,i=Zq){return yield ZOe(r,n,a=>a.message.statusCode,s,i)})}o(iM,"retryHttpClientResponse");var xi=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||[])T(`Cache Key: ${c?.cacheKey}, Cache Version: ${c?.cacheVersion}, Cache Scope: ${c?.scope}, Cache Created: ${c?.creationTime}`)}}})}o(iOt,"printCachesListForDiagnostics");function iH(t,e,r){return jn(this,void 0,void 0,function*(){let n=new A3e.URL(t),s=o3e(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield s3e(t,e,s):s.concurrentBlobDownloads?yield n3e(t,e,s):yield R5(t,e):yield R5(t,e)})}o(iH,"downloadCache");function f3e(t,e,r){return jn(this,void 0,void 0,function*(){let n=sH(),s=Rb(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield U3("reserveCache",()=>jn(this,void 0,void 0,function*(){return n.postJson(H3("caches"),i)}))})}o(f3e,"reserveCache");function l3e(t,e){return`bytes ${t}-${e}/*`}o(l3e,"getContentRange");function oOt(t,e,r,n,s){return jn(this,void 0,void 0,function*(){T(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${l3e(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":l3e(n,s)},a=yield iM(`uploadChunk (start: ${n}, end: ${s})`,()=>jn(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!q5(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}o(oOt,"uploadChunk");function aOt(t,e,r,n){return jn(this,void 0,void 0,function*(){let s=Ia(r),i=H3(`caches/${e.toString()}`),a=oM.openSync(r,"r"),c=rH(n),u=qP("uploadConcurrency",c.uploadConcurrency),p=qP("uploadChunkSize",c.uploadChunkSize),l=[...new Array(u).keys()];T("Awaiting all uploads");let A=0;try{yield Promise.all(l.map(()=>jn(this,void 0,void 0,function*(){for(;A<s;){let d=Math.min(s-A,p),h=A,m=A+d-1;A+=p,yield oOt(t,i,()=>oM.createReadStream(r,{fd:a,start:h,end:m,autoClose:!1}).on("error",z=>{throw new Error(`Cache upload failed because file read failed with ${z.message}`)}),h,m)}})))}finally{oM.closeSync(a)}})}o(aOt,"uploadFile");function cOt(t,e,r){return jn(this,void 0,void 0,function*(){let n={size:r};return yield U3("commitCache",()=>jn(this,void 0,void 0,function*(){return t.postJson(H3(`caches/${e.toString()}`),n)}))})}o(cOt,"commitCache");function oH(t,e,r,n){return jn(this,void 0,void 0,function*(){if(rH(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield KOe(r,e,n)}else{let i=sH();T("Upload cache"),yield aOt(i,t,e,n),T("Commiting cache");let a=Ia(e);W(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield cOt(i,t,a);if(!q5(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);W("Cache saved successfully")}})}o(oH,"saveCache");var cEe=_(tEe(),1),r1=_(t1(),1),Hs=_(t1(),1),z2=_(t1(),1),O2=_(t1(),1),E2=_(t1(),1);var eX=_(t1(),1),tX=_(t1(),1),iEe=_(t1(),1),oEe=_(t1(),1),aEe=_(t1(),1);var JH=_(t1(),1),KH=_(t1(),1),rEe=_(t1(),1),nEe=_(t1(),1),sEe=_(t1(),1);var ZH=class extends sEe.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,nEe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,rEe.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,u]=e.tag();switch(c){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let p=n.readUnknownField;if(p==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${u}) for ${this.typeName}`);let l=e.skip(u);p!==!1&&(p===!0?KH.UnknownFieldHandler.onRead:p)(this.typeName,i,c,u,l)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,JH.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,JH.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?KH.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},bw=new ZH;var rX=class extends aEe.Mess
`));let n=yield MX(r,"create");yield mX(n,t)})}o(zX,"createTar");var yM=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(l){try{p(n.next(l))}catch(A){a(A)}}o(c,"fulfilled");function u(l){try{p(n.throw(l))}catch(A){a(A)}}o(u,"rejected");function p(l){l.done?i(l.value):s(l.value).then(c,u)}o(p,"step"),p((n=n.apply(t,e||[])).next())})},ko=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},EM=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",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 AEe(t){if(!t||t.length===0)throw new ko("Path Validation Error: At least one directory or file path is required")}o(AEe,"checkPaths");function OX(t){if(t.length>512)throw new ko(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new ko(`Key Validation Error: ${t} cannot contain commas.`)}o(OX,"checkKey");function EX(){return G3()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}o(EX,"isFeatureAvailable");function dEe(t,e,r,n){return yM(this,arguments,void 0,function*(s,i,a,c,u=!1){let p=G3();return T(`Cache service version: ${p}`),AEe(s),p==="v2"?yield yEt(s,i,a,c,u):yield EEt(s,i,a,c,u)})}o(dEe,"restoreCache");function EEt(t,e,r,n){return yM(this,arguments,void 0,function*(s,i,a,c,u=!1){a=a||[];let p=[i,...a];if(T("Resolved Keys:"),T(JSON.stringify(p)),p.length>10)throw new ko("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of p)OX(d);let l=yield kO(),A="";try{let d=yield d3e(p,s,{compressionMethod:l,enableCrossOsArchive:u});if(!d?.archiveLocation)return;if(c?.lookupOnly)return W("Lookup only - skipping download"),d.cacheKey;A=aE.join(yield QO(),_l(l)),T(`Archive Path: ${A}`),yield iH(d.archiveLocation,A,c),Iu()&&(yield oE(A,l));let h=Ia(A);return W(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield gX(A,l),W("Cache restored successfully"),d.cacheKey}catch(d){let h=d;if(h.name===ko.name)throw d;h instanceof Ra&&typeof h.statusCode=="number"&&h.statusCode>=500?Mb(`Failed to restore: ${d.message}`):yt(`Failed to restore: ${d.message}`)}finally{try{yield PO(A)}catch(d){T(`Failed to delete archive: ${d}`)}}})}o(EEt,"restoreCacheV1");function yEt(t,e,r,n){return yM(this,arguments,void 0,function*(s,i,a,c,u=!1){c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let p=[i,...a];if(T("Resolved Keys:"),T(JSON.stringify(p)),p.length>10)throw new ko("Key Validation Error: Keys are limited to a maximum of 10.");for(let A of p)OX(A);let l="";try{let A=bX(),d=yield kO(),h={key:i,restoreKeys:a,version:Rb(s,d,u)},m=yield A.GetCacheEntryDownloadURL(h);if(!m.ok){T(`Cache not found for version ${h.version} of keys: ${p.join(", ")}`);return}if(h.key!==m.matchedKey?W(`Cache hit for restore-key: ${m.matchedKey}`):W(`Cache hit for: ${m.matchedKey}`),c?.lookupOnly)return W("Lookup only - skipping download"),m.matchedKey;l=aE.join(yield QO(),_l(d)),T(`Archive path: ${l}`),T(`Starting download of archive to: ${l}`),yield iH(m.signedDownloadUrl,l,c);let C=Ia(l);return W(`Cache Size: ~${Math.round(C/(1024*1024))} MB (${C} B)`),Iu()&&(yield oE(l,d)),yield gX(l,d),W("Cache restored successfully"),m.matchedKey}catch(A){let d=A;if(d.name===ko.name)throw A;d instanceof Ra&&typeof d.statusCode=="number"&&d.statusCode>=500?Mb(`Failed to restore: ${A.message}`):yt(`Failed to restore: ${A.message}`)}finally{try{l&&(yield PO(l))}catch(A){T(`Failed to delete archive: ${A}`)}}})}o(yEt,"restoreCacheV2");function yX(t,e,r){return yM(this,arguments,void 0,function*(n,s,i,a=!1){let c=G3();return T(`Cache service version: ${c}`),AEe(n),OX(s),c==="v2"?yield BEt(n,s,i,a):yield CEt(n,s,i,a)})}o(yX,"saveCache");function CEt(t,e,r){return yM(this,arguments,void 0,fu
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}o(gyt,"_buildMessageForResponseErrors");var zyt=class extends Error{static{o(this,"GraphqlResponseError")}constructor(t,e,r){super(gyt(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},Oyt=["method","baseUrl","url","headers","request","query","mediaType","operationName"],Eyt=["query","method","url"],eye=/\/api\/v3\/?$/;function yyt(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(Eyt.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)=>Oyt.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 eye.test(i)&&(s.url=i.replace(eye,"/api/graphql")),t(s).then(a=>{if(a.data.errors){let c={};for(let u of Object.keys(a.headers))c[u]=a.headers[u];throw new zyt(s,c,a.data)}return a.data.data})}o(yyt,"graphql");function xX(t,e){let r=t.defaults(e);return Object.assign(o((s,i)=>yyt(r,s,i),"newApi"),{defaults:xX.bind(null,r),endpoint:r.endpoint})}o(xX,"withDefaults");var wv0=xX(lE,{headers:{"user-agent":`octokit-graphql.js/${myt} ${tA()}`},method:"POST",url:"/graphql"});function tye(t){return xX(t,{method:"POST",url:"/graphql"})}o(tye,"withCustomRequest");var _X="(?:[a-zA-Z0-9_-]+)",rye="\\.",nye=new RegExp(`^${_X}${rye}${_X}${rye}${_X}$`),Cyt=nye.test.bind(nye);async function Byt(t){let e=Cyt(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(Byt,"auth");function Dyt(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}o(Dyt,"withAuthorizationPrefix");async function qyt(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=Dyt(t),e(s)}o(qyt,"hook");var sye=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(Byt.bind(null,e),{hook:qyt.bind(null,e)})},"createTokenAuth2");var WX="7.0.6";var iye=o(()=>{},"noop"),Iyt=console.warn.bind(console),Ryt=console.error.bind(console);function wyt(t={}){return typeof t.debug!="function"&&(t.debug=iye),typeof t.info!="function"&&(t.info=iye),typeof t.warn!="function"&&(t.warn=Iyt),typeof t.error!="function"&&(t.error=Ryt),t}o(wyt,"createLogger");var oye=`octokit-core.js/${WX} ${tA()}`,vw=class{static{o(this,"Octokit")}static VERSION=WX;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 vEe.Collection,n={baseUrl:lE.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} ${oye}`:oye,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=lE.defaults(n),this.graphql=tye(this.request).defaults(n),this.log=wyt(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=sye(e.auth);r.wrap("request",i.hook),this.auth=i}let s=this.constructor;for(let i=0;i<s.plugins.length;++i)
`,a).length:A,p?(c===null?0:c.length)+u.length:0,p?u.length+A:0);return d<h},"__needMoreData"),parse:o(function(n,s,i,a){let{bom:c,comment_no_infix:u,encoding:p,from_line:l,ltrim:A,max_record_size:d,raw:h,relax_quotes:m,rtrim:z,skip_empty_lines:C,to:E,to_line:B}=this.options,{comment:I,escape:w,quote:N,record_delimiter:x}=this.options,{bomSkipped:Q,previousBuf:$,rawBuffer:me,escapeIsQuote:De}=this.state,Z;if($===void 0)if(n===void 0){a();return}else Z=n;else $!==void 0&&n===void 0?Z=$:Z=Buffer.concat([$,n]);if(Q===!1)if(c===!1)this.state.bomSkipped=!0;else if(Z.length<3){if(s===!1){this.state.previousBuf=Z;return}}else{for(let J in LM)if(LM[J].compare(Z,0,LM[J].length)===0){let ve=LM[J].length;this.state.bufBytesStart+=ve,Z=Z.slice(ve);let re=JV({...this.original_options,encoding:J});for(let ze in re)this.options[ze]=re[ze];({comment:I,escape:w,quote:N}=this.options);break}this.state.bomSkipped=!0}let qe=Z.length,Y;for(Y=0;Y<qe&&!this.__needMoreData(Y,qe,s);Y++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),B!==-1&&this.info.lines>B){this.state.stop=!0,a();return}this.state.quoting===!1&&x.length===0&&this.__autoDiscoverRecordDelimiter(Z,Y)&&(x=this.options.record_delimiter);let J=Z[Y];if(h===!0&&me.append(J),(J===pDt||J===lDt)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(w!==null&&this.state.quoting===!0&&this.__isEscape(Z,Y,J)&&Y+w.length<qe)if(De){if(this.__isQuote(Z,Y+w.length)){this.state.escaping=!0,Y+=w.length-1;continue}}else{this.state.escaping=!0,Y+=w.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(Z,Y))if(this.state.quoting===!0){let ze=Z[Y+N.length],at=z&&this.__isCharTrimable(Z,Y+N.length),Lt=I!==null&&this.__compareBytes(I,Z,Y+N.length,ze),Pe=this.__isDelimiter(Z,Y+N.length,ze),s0=x.length===0?this.__autoDiscoverRecordDelimiter(Z,Y+N.length):this.__isRecordDelimiter(ze,Z,Y+N.length);if(w!==null&&this.__isEscape(Z,Y,J)&&this.__isQuote(Z,Y+w.length))Y+=w.length-1;else if(!ze||Pe||s0||Lt||at){this.state.quoting=!1,this.state.wasQuoting=!0,Y+=N.length-1;continue}else if(m===!1){let Rt=this.__error(new Ot("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(ze)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(Rt!==void 0)return Rt}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(N),Y+=N.length-1}else if(this.state.field.length!==0){if(m===!1){let ze=this.__infoField(),at=Object.keys(LM).map(Pe=>LM[Pe].equals(this.state.field.toString())?Pe:!1).filter(Boolean)[0],Lt=this.__error(new Ot("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(ze.column)} at line ${ze.lines}, value is ${JSON.stringify(this.state.field.toString(p))}`,at?`(${at} bom)`:void 0],this.options,ze,{field:this.state.field}));if(Lt!==void 0)return Lt}}else{this.state.quoting=!0,Y+=N.length-1;continue}if(this.state.quoting===!1){let ze=this.__isRecordDelimiter(J,Z,Y);if(ze!==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)>=l){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),Y+=ze-1;continue}if(C===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,Y+=ze-1;continue}this.info.bytes=this.state.bufBytesStart+Y;let Pe=this.__onField();if(Pe!==void 0)return Pe;this.info.bytes=this.state.bufBytesStart+Y+ze;let s0=this.__onRecord(i);if(s0!==void 0)return s0;if(E!==-1&&this.info.records>=E){this.state.stop=!0,a();return}}this.state.commenting=!1,Y+=ze-1;continue}if(this.state.commenting)continue;if(I!==null&&(u===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(I,Z,Y,J)!==0){this.state.commenting=!0;continue}let at=this.__isDelimite
`,i),Buffer.from(`
`,i),Buffer.from("\r",i)];e:for(let c=0;c<a.length;c++){let u=a[c].length;for(let p=0;p<u;p++)if(a[c][p]!==n[s+p])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(u){return u}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 Ys=o(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?{}:[],n=R4e(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 Bt=class t{static{o(this,"Util")}static getInputList(e,r){return this.getList(Ss(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let n=[];if(e=="")return n;let s=Ys(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=Ss(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 ur("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 w4e.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 KV.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 KV.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,n){return S4e.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 isPathRelativeTo(e,r){let n=IE
More info: ${u.url}`);let h=u.range&&u.range.length>0?u.range[0]?.start.line:void 0,m=!1;for(let z of a)if(z.remote||z.path.endsWith(p)&&z.content===l){c.push({title:A,message:d,file:z.path,startLine:h}),m=!0;break}m||T(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${p}: ${A}`)}return c}};var v2=_(require("fs"),1),ej=_(require("path"),1);var CS=class t{static{o(this,"Build")}buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new e0,this.iidFilename=`build-iidfile-${Bt.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${Bt.generateRandomString()}.json`}async gitContext(e){let r=new Set(["ref","checksum","subdir"]),n=e?.attrs||{},s=Object.entries(n).filter(([h])=>!r.has(h)),i=Bt.parseBoolOrDefault(n["fetch-by-commit"]),a=e?.ref||n.ref||un.ref;a.startsWith("refs/")?a.startsWith("refs/pull/")&&Bt.parseBoolOrDefault(process.env.DOCKER_DEFAULT_GIT_CONTEXT_PR_HEAD_REF)&&(a=a.replace(/\/merge$/g,"/head")):a=`refs/heads/${a}`;let c=`${Ct.serverURL}/${un.repo.owner}/${un.repo.repo}.git`,u=e?.checksum||n.checksum,p=e?.subdir||n.subdir,l=e?.format;if(!l){if(l="fragment",s.length>0)l="query";else if(Bt.parseBoolOrDefault(process.env.BUILDX_SEND_GIT_QUERY_AS_INPUT))try{await this.buildx.versionSatisfies(">=0.29.0")&&(l="query")}catch{}}let A=un.sha||a;a.startsWith("refs/pull/")&&a.endsWith("/head")&&(A=typeof un.payload.pull_request?.head?.sha=="string"?un.payload.pull_request.head.sha:a);let d=u||A;if(l==="query"){let h=[`ref=${i||u?a:d}`],m=i?d:u;m&&h.push(`checksum=${m}`),p&&p!=="."&&h.push(`subdir=${p}`);for(let[z,C]of s)h.push(`${z}=${C}`);return`${c}?${h.join("&")}`}return`${c}#${d}${p&&p!=="."?`:${p}`:""}`}getImageIDFilePath(){return ej.default.join(zt.tmpDir(),this.iidFilename)}resolveImageID(){let e=this.getImageIDFilePath();if(v2.default.existsSync(e))return v2.default.readFileSync(e,{encoding:"utf-8"}).trim()}getMetadataFilePath(){return ej.default.join(zt.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!v2.default.existsSync(e))return;let r=v2.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(!v2.default.existsSync(s))throw new Error(`secret file ${s} not found`);return[n,s]}let i=zt.tmpName({tmpdir:zt.tmpDir()});return v2.default.writeFileSync(i,s),[n,i]}static getProvenanceInput(e){let r=Ss(e);if(!r)return r;try{return nde(e)?`builder-id=${Ct.workflowRunURL(!0)}`:"false"}catch{return t.resolveProvenanceAttrs(r)}}static resolveProvenanceAttrs(e){if(!e)return`builder-id=${Ct.workflowRunURL(!0)}`;let r=Ys(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=${Ct.workflowRunURL(!0)}`}static resolveCacheToAttrs(e,r){if(!e)return e;let n="registry",s="",i="",a=Ys(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let c of a){let u=c.toString().split(/(?<=^[^=]+?)=/).map(p=>p.trim());u[0]==="type"?n=u[1]:u[0]==="repository"?s=u[1]:u[0]==="ghtoken"&&(i=u[1])}return n==="gha"&&(s||(e=`${e},repository=${Ct.repository}`),!i&&r&&(e=`${e},ghtoken=${r}`)),e}static hasLocalExporter(e){return t.hasExporterType("local",e)}static hasTarExporter(e){return t.hasExp
`),{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(u=>u.trim())))if(i=="type"&&a==e)return!0}return!1}static hasAttestationType(e,r){let n=Ys(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let s of n)for(let[i,a]of s.map(c=>c.split("=").map(u=>u.trim())))if(i=="type"&&a==e)return!0;return!1}static resolveAttestationAttrs(e){let r=Ys(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),n=[];for(let s of r)for(let i of s)try{let a=Bt.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&&Ea(i),[s,i]}};var tj=_(require("fs"),1),F4e=_(require("path"),1);var BS=class t{static{o(this,"Bake")}buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new e0,this.metadataFilename=`bake-metadata-${Bt.generateRandomString()}.json`}getMetadataFilePath(){return F4e.default.join(zt.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!tj.default.existsSync(e))return;let r=tj.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 u of a.map(p=>p?p.trim():""))if(u.length!=0){if(!Bt.isValidRef(u)){i.push(u);continue}if(s)throw new Error("Only one remote bake definition can be defined");s=u}}s&&n.push(s);for(let u of i)n.push("--file",u);if(e.overrides)for(let u of e.overrides)n.push("--set",u);if(e.vars)for(let u of e.vars)n.push("--var",u);if(e.allow)for(let u of e.allow)n.push("--allow",u);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 We.getExecOutput(c.command,c.args,r).then(u=>{if(u.stderr.length>0&&u.exitCode!=0)throw new Error(`cannot parse bake definitions: ${u.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return t.parseDefinition(u.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=Ys(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=Bt.parseBool(a);break;default:r[i]=a}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},n=Ys(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().
`)[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"]);T(`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`refs/tags/${s.split(":")[1].trim()}`;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 We.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 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 Hxe=require("crypto"),jc=_(require("fs"),1),HA=_(require("path"),1);var HC=_(SE(),1),$c=_(Fve(),1),Xxe=_(Hte(),1),Bg=_(Wxe(),1);var X0e=_(SE(),1);var Qxe=_(vs(),1);var Lxe="application/vnd.oci.empty.v1+json";var Vp=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 We.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(T(`Cosign.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(T(`Cosign.isAvailable error: ${r}`),!1));return T(`Cosign.isAvailable: ${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await We.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 We.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}async versionSatisfies(e,r){let n=r??await this.version();if(!n)return T("Cosign.versionSatisfies false: undefined version"),!1;let s=Qxe.satisfies(n,e)||/^[0-9a-f]{7}$/.exec(n)!==null;return T(`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 u;try{u=JSON.parse(c)}catch{continue}if(u&&Array.isArray(u.errors)&&u.errors.length>0&&(i=u.errors),!r&&u&&Array.isArray(u.manifests)&&u.manifests.length>0){let p=u.manifests[0];p?.artifactType===X0e.BUNDLE_V03_MEDIA_TYPE&&typeof p.digest=="string"?r=p.digest:p?.artifactType===Lxe&&typeof p.digest=="string"&&(n=p.digest)}if(!s&&u&&u.mediaType===X0e.BUNDLE_V03_MEDIA_TYPE&&(s=u),s&&(r||n)){i=void 0;break}}return{bundle:s,signatureManifestDigest:r||n,errors:i}}};var V0e=_(require("fs"),1);var wT=class t{static{o(this,"ImageTools")}buildx;constructor(e){this.buildx=e?.buildx||new e0}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 u=i.get(c);return u?u.platform?.os===s.os&&u.platform?.architecture===s.architecture&&(u.platform?.variant??"")===(s.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}async create(e){let r=[],n=zt.tmpName({tmpdir:zt.tmpDir(),template:"imagetools-metadata-XXXXXX"}),s=[],i=[];for(let c of e.sources){if(c.startsWith("cwd://")){let u=c.substring(6);u.length>0&&s.push(u);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
${a.message}`),await new Promise(p=>setTimeout(p,Math.pow(2,c)*100))}throw a??new Error(`ImageTools inspect command failed for ${e.name}`)}async execInspect(e,r,n){return await We.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|not found: not found)/i.test(e)}};var Pxe="application/vnd.in-toto+json";var kxe="https://fulcio.sigstore.dev",Uxe="https://rekor.sigstore.dev",Gxe="https://timestamp.sigstore.dev",Wf="https://search.sigstore.dev";var uXt="slsaprovenance1",XA=class t{static{o(this,"Sigstore")}cosign;imageTools;constructor(e){this.cosign=e?.cosign||new Vp,this.imageTools=e?.imageTools||new wT}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=this.signingEndpoints(e.noTransparencyLog);W(`Using Sigstore signing endpoint: ${n.fulcioURL}`);let s=t.noTransparencyLog(e.noTransparencyLog),i=[];await this.cosign.versionSatisfies(">=3.0.4")?await pr("Creating Sigstore protobuf signing config",async()=>{let a=zt.tmpName({template:"signing-config-XXXXXX.json",tmpdir:zt.tmpDir()}),c=["signing-config","create","--with-default-services=true",`--out=${a}`];s&&c.push("--no-default-rekor=true"),await We.exec(this.cosign.binPath,c,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),W(JSON.stringify(JSON.parse(jc.default.readFileSync(a,{encoding:"utf-8"})),null,2)),i.push(`--signing-config=${a}`)}):(i.push("--use-signing-config"),s&&i.push("--tlog-upload=false"));for(let a of e.imageNames){let c=await this.imageTools.attestationDigests({name:`${a}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let u of c){let p=`${a}@${u}`;await pr(`Signing attestation manifest ${p}`,async()=>{let l=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1","--new-bundle-format",...i];W(`[command]${this.cosign.binPath} ${[...l,p].join(" ")}`);let A=await We.getExecOutput(this.cosign.binPath,["--verbose",...l,p],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),d=Vp.parseCommandOutput(A.stderr.trim());if(A.exitCode!=0)if(d.errors&&d.errors.length>0){let m=d.errors.map(z=>`- [${z.code}] ${z.message} : ${z.detail}`).join(`
`);throw new Error(`Cosign sign command failed with errors:
${m}`)}else throw new Error(`Cosign sign command failed with: ${A.stderr.trim().split(/\r?\n/).filter(m=>m.length>0).pop()??"unknown error"}`);let h=t.parseBundle((0,HC.bundleFromJSON)(d.bundle));h.tlogID&&W(`Uploaded to Rekor transparency log: ${Wf}?logIndex=${h.tlogID}`),W(`Signature manifest pushed: https://oci.dag.dev/?referrers=${p}`),r[p]={...h,imageName:a}})}}}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 pr(`Verifying signature of ${s}`,async()=>{let a=await this.verifyImageAttestation(s,{certificateIdentityRegexp:r.certificateIdentityRegexp,noTransparencyLog:r.noTransparencyLog||!i.tlogID,retryOnManifestUnknown:r.retryOnManifestUnknown});W(`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}`,u=await this.verifyImageAttestation(c,r);W(`Signature manifest verified: https://oci.dag.dev/?image=${i}@${u.signatureManifestDigest}`),n[c]=u}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","--new-bundle-format","--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){W(`[command]${this.cosign.binPath} ${[...n,e].join(" ")}`);let a=await We.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(u=>u.length>0).pop()??"unknown error"}`);let c=Vp.parseCommandOutput(a.stderr.trim());return{cosignArgs:n,signatureManifestDigest:c.signatureManifestDigest}}let s=r.retryLimit??15,i;W(`[command]${this.cosign.binPath} ${[...n,e].join(" ")}`);for(let a=0;a<s;a++){let c=await We.getExecOutput(this.cosign.binPath,["--verbose",...n,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),u=Vp.parseCommandOutput(c.stderr.trim());if(c.exitCode===0)return{cosignArgs:n,signatureManifestDigest:u.signatureManifestDigest};if(u.errors&&u.errors.length>0){let p=u.errors.map(l=>`- [${l.code}] ${l.message} : ${l.detail}`).join(`
`);if(i=new Error(`Cosign verify command failed with errors:
${p}`),u.errors.some(l=>l.code==="MANIFEST_UNKNOWN"))W(`Cosign verify command failed with MANIFEST_UNKNOWN, retrying attempt ${a+1}/${s}...
${p}`),await new Promise(l=>setTimeout(l,Math.pow(2,a)*100));else throw i}else throw new Error(`Cosign verify command failed with: ${c.stderr.trim().split(/\r?\n/).filter(p=>p.length>0).pop()??"unknown error"}`)}throw i}async signProvenanceBlobs(e){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=this.signingEndpoints(e.noTransparencyLog);W(`Using Sigstore signing endpoint: ${n.fulcioURL}`);let s=t.getProvenanceBlobs(e);for(let i of Object.keys(s))await pr(`Signing ${i}`,async()=>{let a=s[i],c=HA.default.join(HA.default.dirname(i),`${e.name??"provenance"}.sigstore.json`),u=t.getProvenanceSubjects(a);if(u.length===0){yt(`No subjects found in provenance ${i}, skip signing.`);return}let p=await t.signPayload({data:a,type:Pxe},n),l=t.parseBundle(p);W("Provenance blob signed for:");for(let A of u){let[d,h]=Object.entries(A.digest)[0]||[];W(` - ${A.name} (${d}:${h})`)}l.tlogID&&W(`Attestation signature uploaded to Rekor transparency log: ${Wf}?logIndex=${l.tlogID}`),W(`Writing Sigstore bundle to: ${c}`),jc.default.writeFileSync(c,JSON.stringify(l.payload,null,2),{encoding:"utf-8"}),r[i]={...l,bundlePath:c,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=HA.default.dirname(s);await pr(`Verifying signature bundle ${i.bundlePath}`,async()=>{for(let c of i.subjects){let u=HA.default.join(a,c.name);W(`Verifying signed artifact ${u}`);let p=["verify-blob-attestation","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??uXt];(r.noTransparencyLog||!i.tlogID)&&p.push("--use-signed-timestamps","--insecure-ignore-tlog");let l=await We.getExecOutput(this.cosign.binPath,[...p,"--bundle",i.bundlePath,u],{ignoreReturnCode:!0});if(l.stderr.length>0&&l.exitCode!=0)throw new Error(l.stderr);n[u]={bundlePath:i.bundlePath,cosignArgs:p}}})}return n}async verifyArtifact(e,r,n){W("Verifying keyless verification bundle signature");let s=JSON.parse(jc.default.readFileSync(r,"utf-8")),i=(0,HC.bundleFromJSON)(s);W("Fetching Sigstore TUF trusted root metadata");let a=await Xxe.getTrustedRoot(),c=(0,Bg.toTrustMaterial)(a);try{W("Verifying artifact signature");let u=(0,Bg.toSignedEntity)(i,jc.default.readFileSync(e)),p=t.parseCertificate(i),l=i.verificationMaterial.tlogEntries,A=l.length>0?l[0].logIndex:void 0;if(n?.subjectAlternativeName&&n?.subjectAlternativeName instanceof RegExp){let m=p.subjectAltName?.replace(/^uri:/i,"");if(m){if(!m.match(n.subjectAlternativeName))throw new Error(`Signing certificate subjectAlternativeName "${m}" does not match expected pattern`)}else throw new Error("Signing certificate does not contain subjectAltName")}let h=new Bg.Verifier(c).verify(u,{subjectAlternativeName:n?.subjectAlternativeName&&typeof n.subjectAlternativeName=="string"?n.subjectAlternativeName:void 0,extensions:n?.issuer?{issuer:n.issuer}:void 0});return T(`Sigstore.verifyArtifact signer: ${JSON.stringify(h)}`),{payload:s,certificate:p.toString(),tlogID:A}}catch(u){throw new Error(`Failed to verify artifact signature: ${u}`)}}signingEndpoints(e){return e=t.noTransparencyLog(e),W(`Upload to transparency log: ${e?"disabled":"enabled"}`),{fulcioURL:kxe,rekorURL:e?void 0:Uxe,tsaServerURL:Gxe}}static noTransparencyLog(e){return e??Ct.context.payload.repository?.private}static getProvenanceBlobs(e){let r=HA.default.join(e.localExportDir,"provenance.json");if(jc.default.existsSync(r))return{[r]:jc.default.readFileSync(r)};let n=jc.default.readdirSync(e.localExportDir,{withFileTypes:!0}),s=n.filter(i=>i.isDirectory());if(s.length>0&&s.length===n.length&&s.every(i=>jc.default.existsSync(HA.default.join(e.localExportDir,i.name,"provenance.json")))){let i={};for(let a of s){let c=
`)){let[p,...l]=u.split(":"),A=p.toLowerCase(),d=l.map(h=>h.trim()).join(":");if(p.length!=0)switch(!0){case A=="name":n=void 0,r.name==null?r.name=d:(i&&s.gcPolicy&&(s.gcPolicy.push(i),i=void 0),s.name&&r.nodes.push(s),s={name:d});break;case A=="driver":n=void 0,r.driver=d;break;case A=="last activity":n=void 0,r.lastActivity=new Date(d);break;case A=="endpoint":n=void 0,s.endpoint=d;break;case A=="driver options":n=void 0,s["driver-opts"]=(d.match(/([a-zA-Z0-9_.]+)="([^"]*)"/g)||[]).map(h=>h.replace(/^(.*)="(.*)"$/g,"$1=$2"));break;case A=="status":n=void 0,s.status=d;break;case A=="buildkit daemon flags":case A=="flags":n=void 0,s["buildkitd-flags"]=d;break;case A=="buildkit version":case A=="buildkit":n=void 0,s.buildkit=d;break;case A=="platforms":{if(n=void 0,!d)break;let h=[];if(d.includes("*"))for(let m of d.split(", "))m.includes("*")&&h.push(m.replace(/\*/g,""));else h=d.split(", ");s.platforms=h.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=p.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[p.trim()]=!!d;break}case"label":{s.labels=s.labels||{},s.labels[p.trim()]=d;break}case"devices":{switch(A.trim()){case"name":{s.devices&&a&&s.devices.push(a),a={},a.name=d;break}case"on-demand":{a&&d&&(a.onDemand=d=="true");break}case"automatically allowed":{a&&d&&(a.autoAllow=d=="true");break}case"annotations":{a&&(a.annotations=a.annotations||{});break}default:a&&a.annotations&&(a.annotations[p.trim()]=d)}break}case"gcpolicy":{switch(s.gcPolicy=s.gcPolicy||[],i=i||{},A.trim()){case"all":{i.all=d=="true";break}case"filters":{d&&(i.filter=d.split(","));break}case"keep duration":{i.keepDuration=d;break}case"keep bytes":{i.keepBytes=d;break}case"reserved space":{i.reservedSpace=d;break}case"max used space":{i.maxUsedSpace=d;break}case"min free space":{i.minFreeSpace=d;break}}break}case"file":{c&&s.files&&(s.files[c].length>0&&(s.files[c]+=`
`),s.files[c]+=u.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 Vxe=_(vs(),1);var NT=_(require("fs"),1);var vT=class{static{o(this,"Config")}resolveFromString(e){return this.resolve(e,!1)}resolveFromFile(e){return this.resolve(e,!0)}resolve(e,r){if(r){if(!NT.default.existsSync(e))throw new Error(`config file ${e} not found`);e=NT.default.readFileSync(e,{encoding:"utf-8"})}let n=zt.tmpName({tmpdir:zt.tmpDir()});return NT.default.writeFileSync(n,e),n}};var FT=class{static{o(this,"BuildKit")}buildx;config;constructor(e){this.config=new vT,this.buildx=e?.buildx||new e0}async getVersion(e){if(!e.buildkit&&e.name)try{return await this.getVersionWithinImage(e.name)}catch(r){yt(r)}return e.buildkit}async getVersionWithinImage(e){return T(`BuildKit.getVersionWithinImage nodeName: ${e}`),Dr.getExecOutput(["inspect","--format","{{.Config.Image}}",`${e0.containerNamePrefix}${e}`],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.exitCode==0&&r.stdout.length>0)return T(`BuildKit.getVersionWithinImage image: ${r.stdout.trim()}`),Dr.getExecOutput(["run","--rm",r.stdout.trim(),"--version"],{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.exitCode==0&&n.stdout.length>0)return`${r.stdout.trim()} => ${n.stdout.trim()}`;if(n.stderr.length>0)throw new Error(r.stderr.trim());return n.stdout.trim()});if(r.stderr.length>0)throw new Error(r.stderr.trim());return r.stdout.trim()})}async versionSatisfies(e,r,n){n||(n=await new qg({buildx:this.buildx}).inspect(e));for(let s of n.nodes){let i=s.buildkit;if(T(`BuildKit.versionSatisfies ${i}: ${r}`),!i)try{i=await this.getVersionWithinImage(s.name||"")}catch{return T(`BuildKit.versionSatisfies ${s.name}: can't get version`),!1}if(T(`BuildKit.versionSatisfies ${s.name}: version ${i}`),n.driver=="docker"&&!i.endsWith("-moby")||!Vxe.satisfies(i.replace(/-moby$/,""),r))return!1}return!0}};var TT=class t{static{o(this,"Compose")}_version;_versionOnce;_standalone;constructor(e){this._standalone=e?.standalone,this._version="",this._versionOnce=!1}async isStandalone(){let e=this._standalone??!await Dr.isAvailable();return T(`Compose.isStandalone: ${e}`),e}async getCommand(e){let r=await this.isStandalone();return{command:r?"compose":"docker",args:r?e:["compose",...e]}}async isAvailable(){let e=await this.getCommand([]),r=await We.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(n=>n.stderr.length>0&&n.exitCode!=0?(T(`Compose.isAvailable cmd err: ${n.stderr.trim()}`),!1):n.exitCode==0).catch(n=>(T(`Compose.isAvailable error: ${n}`),!1));return T(`Compose.isAvailable: ${r}`),r}async version(){if(this._versionOnce)return this._version;this._versionOnce=!0;let e=await this.getCommand(["version"]);return this._version=await We.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr.trim());return t.parseVersion(r.stdout.trim())}),this._version}async printVersion(){let e=await this.getCommand(["version"]);await We.exec(e.command,e.args,{failOnStdErr:!1})}static parseVersion(e){let r=/\sv?([0-9a-f]{7}|[0-9.]+)/.exec(e);if(!r)throw new Error("Cannot parse compose version");return r[1]}};var $p=_(require("fs"),1),Jc=_(require("os"),1),Ig=_(require("path"),1);var _T=_(vs(),1),$0e=_(require("util"),1);var xT=class t{static{o(this,"Install")}standalone;githubToken;constructor(e){this.standalone=e?.standalone,this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let n=await t.getDownloadVersion(e);T(`Install.download version: ${n.version}`);let s=await t.getRelease(n,this.githubToken);T(`Install.download release tag name: ${s.tag_name}`);let i=await this.vspec(s.tag_name);T(`Install.download vspec: ${i}`);let a=_T.clean(i)||"";if(!_T.valid(a))throw new Error(`Invalid Compose version "${i}".`);let c=new W1({htcName:n.key!="official"?`compose-dl-bin-${n.key}`:"compose-dl-bin",htcVersion:i,baseCacheDir:Ig.default.join(Jc.default.homedir(),".bin","docker-compose"),cacheFile:Jc.default.platform()=="win32"?"docker-compose.e
# 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 WT=class t{static{o(this,"Install")}githubToken;buildx;sigstore;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.buildx=e?.buildx||new e0,this.sigstore=e?.sigstore||new XA}async download(e){let r=await t.getDownloadVersion(e.version);T(`Install.download version: ${r.version}`);let n=await t.getRelease(r,this.githubToken);T(`Install.download release tag name: ${n.tag_name}`);let s=await this.vspec(n.tag_name);T(`Install.download vspec: ${s}`);let i=wg.clean(s)||"";if(!wg.valid(i))throw new Error(`Invalid Cosign version "${s}".`);let a=new W1({htcName:"cosign-dl-bin",htcVersion:s,baseCacheDir:Rg.default.join(ra.default.homedir(),".bin"),cacheFile:ra.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:e.ghaNoCache}),c=await a.find();if(c)return W(`Cosign binary found in ${c}`),c;let u=Y0e.format(r.downloadURL,s,this.filename());W(`Downloading ${u}`);let p=await yi(u,void 0,this.githubToken);T(`Install.download htcDownloadPath: ${p}`),e.verifySignature&&wg.satisfies(s,">=3.0.1")&&await this.verifySignature(p,u);let l=await a.save(p,e.skipState);return W(`Cached to ${l}`),l}async build(e,r,n){let s=await this.vspec(e);T(`Install.build vspec: ${s}`);let i=new W1({htcName:"cosign-build-bin",htcVersion:s,baseCacheDir:Rg.default.join(ra.default.homedir(),".bin"),cacheFile:ra.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),a=await i.find();if(a)return W(`Cosign binary found in ${a}`),a;let c=Rg.default.join(zt.tmpDir(),"cosign-build-cache"),u=await this.buildCommand(e,c),p=await We.getExecOutput(u.command,u.args,{ignoreReturnCode:!0,input:Buffer.from(jxe)}).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`}),l=await i.save(p,n);return W(`Cached to ${l}`),l}async install(e,r){r=r||zt.tmpDir();let n=Rg.default.join(r,"cosign-bin");XC.default.existsSync(n)||XC.default.mkdirSync(n,{recursive:!0});let s=ra.default.platform()=="win32"?"cosign.exe":"cosign",i=Rg.default.join(n,s);return XC.default.copyFileSync(e,i),W("Fixing perms"),XC.default.chmodSync(i,"0755"),Ca(n),W("Added Cosign to PATH"),W(`Binary path: ${i}`),i}async buildCommand(e,r){let n=await new e0({standalone:!0}).isAvailable(),s=await new e0({standalone:!1}).isAvailable(),i=!1;if(await this.buildx.isStandalone()&&n)T("Install.buildCommand: Buildx standalone found, build with it"),i=!0;else if(!await this.buildx.isStandalone()&&s)T("Install.buildCommand: Buildx plugin found, build with it"),i=!1;else if(n)T("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),i=!0;else if(s)T("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 e0({standalone:i}).getCommand(a)}async verifySignature(e,r){let n=`${r}.sigstore.json`;W(`Downloading keyless verification bundle at ${n}`);let s=await yi(n,void 0,this.githubToken);T(`Install.verifySignature bundlePath: ${s}`);let i=await this.sigstore.verifyArtifact(e,s,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});W(`Cosign binary signature verified! ${i.tlogID?`${Wf}?logIndex=${i.tlogID}`:""}`)}filename(){let e;switch(ra.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=ra.default.arch();break}}let r=ra.default.platform()=="win32"?"windows":ra.default.platform(),n=ra.default.platform()=="win32"?".exe":"";return Y0e.format("cosign-%s-%s%s",r,e,n)}async vspec(e){if(!Bt.isValidRef(e)){let p=e.replace(/^v+|v+$/g,"");return W(`Use ${p} version spec cache key for ${e}`),p}let[r,n]=e.split("#");n.length==0&&(n="master");let s;n.match(/^[0-9a-fA-F]{40}$/)?s=n:s=await tp.remoteS
`,sepLabels:Ss("sep-labels",{trimWhitespace:!1})||`
`,sepAnnotations:Ss("sep-annotations",{trimWhitespace:!1})||`
`,bakeTarget:Ss("bake-target")||"docker-metadata-action",githubToken:Ss("github-token")}}o(Jxe,"getInputs");async function Kxe(t,e){switch(t){case"workflow":return await pXt(e);case"git":return await lXt();default:throw new Error(`Invalid context source: ${t}`)}}o(Kxe,"getContext");async function pXt(t){let e=Ct.context;return/pull_request_target/.test(e.eventName)&&(e.ref=`refs/pull/${e.payload.number}/merge`),/true/i.test(process.env.DOCKER_METADATA_PR_HEAD_SHA||"")&&(/pull_request/.test(e.eventName)||/pull_request_target/.test(e.eventName))&&e.payload?.pull_request?.head?.sha!=null&&(e.sha=e.payload.pull_request.head.sha),{commitDate:await AXt(e.sha,t),...e}}o(pXt,"getContextFromWorkflow");async function lXt(){let t=await tp.context();return{commitDate:await tp.commitDate(t.sha),...t}}o(lXt,"getContextFromGit");async function AXt(t,e){let r=Ct.context.payload;if(r.commits){let n=r.commits.find(s=>s.id===t)?.timestamp;if(n)return new Date(n)}if(r.head_commit&&r.head_commit.id===t)return new Date(r.head_commit.timestamp);try{let n=await e.github.octokit.rest.repos.getCommit({owner:Ct.context.repo.owner,repo:Ct.context.repo.repo,ref:t});if(n.data.commit.committer?.date)return new Date(n.data.commit.committer.date);throw new Error("Committer date not found")}catch(n){return T(`Failed to get commit date from GitHub API: ${n.message}`),new Date}}o(AXt,"getCommitDateFromWorkflow");var sl=_(jV(),1),jHe=_(require("fs"),1),$He=_(require("path"),1),U4=_(s_e(),1),pi=_(LHe(),1),Yg=_(vs(),1);var ut=class t extends Error{static{o(this,"CsvError")}constructor(e,r,n,...s){Array.isArray(r)&&(r=r.join(" ").trim()),super(r),Error.captureStackTrace!==void 0&&Error.captureStackTrace(this,t),this.code=e;for(let i of s)for(let a in i){let c=i[a];this[a]=Buffer.isBuffer(c)?c.toString(n.encoding):c==null?c:JSON.parse(JSON.stringify(c))}}};var k4=o(function(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)},"is_object");var Wx=o(function(t){let e=[];for(let r=0,n=t.length;r<n;r++){let s=t[r];if(s==null||s===!1)e[r]={disabled:!0};else if(typeof s=="string"||typeof s=="number")e[r]={name:`${s}`};else if(k4(s)){if(typeof s.name!="string")throw new ut("CSV_OPTION_COLUMNS_MISSING_NAME",["Option columns missing name:",`property "name" is required at position ${r}`,"when column is an object literal"]);e[r]=s}else throw new ut("CSV_INVALID_COLUMN_DEFINITION",["Invalid column definition:","expect a string or a literal object,",`got ${JSON.stringify(s)} at position ${r}`])}return e},"normalize_columns_array");var gne=class{static{o(this,"ResizeableBuffer")}constructor(e=100){this.size=e,this.length=0,this.buf=Buffer.allocUnsafe(e)}prepend(e){if(Buffer.isBuffer(e)){let r=this.length+e.length;if(r>=this.size&&(this.resize(),r>=this.size))throw Error("INVALID_BUFFER_STATE");let n=this.buf;this.buf=Buffer.allocUnsafe(this.size),e.copy(this.buf,0),n.copy(this.buf,e.length),this.length+=e.length}else{let r=this.length++;r===this.size&&this.resize();let n=this.clone();this.buf[0]=e,n.copy(this.buf,1,0,r)}}append(e){let r=this.length++;r===this.size&&this.resize(),this.buf[r]=e}clone(){return Buffer.from(this.buf.slice(0,this.length))}resize(){let e=this.length;this.size=this.size*2;let r=Buffer.allocUnsafe(this.size);this.buf.copy(r,0,0,e),this.buf=r}toString(e){return e?this.buf.slice(0,this.length).toString(e):Uint8Array.prototype.slice.call(this.buf.slice(0,this.length))}toJSON(){return this.toString("utf8")}reset(){this.length=0}},zne=gne;var QHe=o(function(t){let e=[32,9,10,13,12,11,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288,65279].reduce((n,s)=>{let i=Buffer.from(String.fromCharCode(s),t.encoding);return s!==63&&i.length===1&&i[0]===63||n.push(i),n},[]),r=new Uint8Array(256);for(let n of e)r[n[0]]=1;return{bomSkipped:!1,bufBytesStart:0,castField:t.cast_function,commenting:!1,delimiterBufPrevious:void 0,delimiterDiscovered:!1,error:void 0,enabled:t.from_line===1,escaping:!1,escapeIsQuote:Buffer.isBuffer(t.escape)&&Buffer.isBuffer(t.quote)&&Buffer.compare(t.escape,t.quote)===0,expectedRecordLength:Arra
`,a).length:A,p?(c===null?0:c.length)+u.length:0,p?u.length+A:0);return d<h},"__needMoreData"),parse:o(function(n,s,i,a){let{bom:c,comment_no_infix:u,delimiter_auto:p,encoding:l,from_line:A,ltrim:d,max_record_size:h,raw:m,relax_quotes:z,rtrim:C,skip_empty_lines:E,to:B,to_line:I}=this.options,{comment:w,escape:N,quote:x,record_delimiter:Q}=this.options,{bomSkipped:$,delimiterDiscovered:me,delimiterBufPrevious:De,rawBuffer:Z,escapeIsQuote:qe}=this.state;if(!me&&p){let ze;if(De===void 0?ze=n:De!==void 0&&n===void 0?ze=De:ze=Buffer.concat([De,n]),n=void 0,s||ze.length>p.size)this.options.delimiter=[Buffer.from(kHe(ze,this.options.delimiter_auto))],this.state.previousBuf=ze,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=ze;return}}let{previousBuf:Y}=this.state,J;if(Y===void 0)if(n===void 0){a();return}else J=n;else Y!==void 0&&n===void 0?J=Y:J=Buffer.concat([Y,n]);if($===!1)if(c===!1)this.state.bomSkipped=!0;else if(J.length<3){if(s===!1){this.state.previousBuf=J;return}}else{for(let ze in $g)if($g[ze].compare(J,0,$g[ze].length)===0){let at=$g[ze].length;this.state.bufBytesStart+=at,J=J.slice(at);let Lt=jg({...this.original_options,encoding:ze});for(let Pe in Lt)this.options[Pe]=Lt[Pe];({comment:w,escape:N,quote:x}=this.options);break}this.state.bomSkipped=!0}let ve=J.length,re;for(re=0;re<ve&&!this.__needMoreData(re,ve,s);re++){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&&Q.length===0&&this.__autoDiscoverRecordDelimiter(J,re)&&(Q=this.options.record_delimiter);let ze=J[re];if(m===!0&&Z.append(ze),(ze===rs0||ze===ns0)&&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(J,re,ze)&&re+N.length<ve)if(qe){if(this.__isQuote(J,re+N.length)){this.state.escaping=!0,re+=N.length-1;continue}}else{this.state.escaping=!0,re+=N.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(J,re))if(this.state.quoting===!0){let Pe=J[re+x.length],s0=C&&this.__isCharTrimable(J,re+x.length),Rt=w!==null&&this.__compareBytes(w,J,re+x.length,Pe),ce=this.__isDelimiter(J,re+x.length,Pe),li=Q.length===0?this.__autoDiscoverRecordDelimiter(J,re+x.length):this.__isRecordDelimiter(Pe,J,re+x.length);if(N!==null&&this.__isEscape(J,re,ze)&&this.__isQuote(J,re+N.length))re+=N.length-1;else if(!Pe||ce||li||Rt||s0){this.state.quoting=!1,this.state.wasQuoting=!0,re+=x.length-1;continue}else if(z===!1){let Sn=this.__error(new ut("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(Pe)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(Sn!==void 0)return Sn}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(x),re+=x.length-1}else if(this.state.field.length!==0){if(z===!1){let Pe=this.__infoField(),s0=Object.keys($g).map(ce=>$g[ce].equals(this.state.field.toString())?ce:!1).filter(Boolean)[0],Rt=this.__error(new ut("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(Pe.column)} at line ${Pe.lines}, value is ${JSON.stringify(this.state.field.toString(l))}`,s0?`(${s0} bom)`:void 0],this.options,Pe,{field:this.state.field}));if(Rt!==void 0)return Rt}}else{this.state.quoting=!0,re+=x.length-1;continue}if(this.state.quoting===!1){let Pe=this.__isRecordDelimiter(ze,J,re);if(Pe!==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(),re+=Pe-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,re+=Pe-1;continue}this.info.bytes=this.state.bufBytesStart+r
`,i),Buffer.from(`
`,i),Buffer.from("\r",i)];e:for(let c=0;c<a.length;c++){let u=a[c].length;for(let p=0;p<u;p++)if(a[c][p]!==n[s+p])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(u){return u}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 Zf=o(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],n=Lx(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");function HHe(t){let e=[];if(t.length==1){let r=!1,n=Zf(t[0],{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let s of n){let i=s.toString().split("=").map(a=>a.trim());if(i.length==1)e.push({name:i[0],enable:!0});else{r=!0;break}}if(!r)return GHe(e)}e=[];for(let r of t){let n={name:"",enable:!0},s=Zf(r,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let i of s){let a=i.toString().split("=").map(c=>c.trim());if(a.length==1)n.name=a[0];else{let c=a[0].toLowerCase(),u=a[1];switch(c){case"name":{n.name=u;break}case"enable":{if(!["true","false"].includes(u))throw new Error(`Invalid enable attribute value: ${r}`);n.enable=/true/i.test(u);break}default:throw new Error(`Unknown image attribute: ${r}`)}}}if(n.name.length==0)throw new Error(`Image name attribute empty: ${r}`);e.push(n)}return GHe(e)}o(HHe,"Transform");function GHe(t){_d("Processing images input");for(let e of t)W(`name=${e.name},enable=${e.enable}`);return Wd(),t}o(GHe,"output");var Ene=(u=>(u.Schedule="schedule",u.Semver="semver",u.Pep440="pep440",u.Match="match",u.Edge="edge",u.Ref="ref",u.Raw="raw",u.Sha="sha",u))(Ene||{}),Qx=(n=>(n.Branch="branch",n.Tag="tag",n.PR="pr",n))(Qx||{}),Px=(r=>(r.Short="short",r.Long="long",r))(Px||{}),One=class{static{o(this,"Tag")}type;attrs;constructor(){this.attrs={}}toString(){let e=[`type=${this.type}`];for(let r in this.attrs)e.push(`${r}=${this.attrs[r]}`);return e.join(",")}},is0={schedule:"1000",semver:"900",pep440:"900",match:"800",edge:"700",ref:"600",raw:"200",sha:"100"};function XHe(t){let e=[];t.length==0&&(t=["type=schedule","type=ref,event=branch","type=ref,event=tag","type=ref,event=pr"]);for(let n of t)e.push(os0(n));let r=e.sort((n,s)=>Number(n.attrs.priority)<Number(s.attrs.priority)?1:Number(n.attrs.priority)>Number(s.attrs.priority)?-1:0);_d("Processing tags input");for(let n of r)W(n.toString());return Wd(),r}o(XHe,"Transform");function os0(t){let e=Zf(t,{relaxColumnCount:!0,skipEmptyLines:!0})[0],r=new One;for(let n of e){let s=n.toString().split(/(?<=^[^=]+?)=/).map(i=>i.trim());if(s.length==1)r.attrs.value=s[0];else{let i=s[0].toLowerCase(),a=s[1];switch(i){case"type":{if(!Object.values(Ene).includes(a))throw new Error(`Unknown tag type attribute: ${a}`);r.type=a;break}default:{r.attrs[i]=a;break}}}}switch(r.type==null&&(r.type="raw"),r.type){case"schedule":{Object.prototype.hasOwnProperty.call(r.attrs,"pattern")||(r.attrs.pattern="nightly");break}case"semver":case"pep440":{if(!Object.prototype.hasOwnProperty.call(r.attrs,"pattern"))throw new Error(`Missing pattern attribute for ${t}`);Object.prototype.hasOwnProp
/*! 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
*)
negotiator/index.js:
(*!
* negotiator
* Copyright(c) 2012 Federico Romero
* Copyright(c) 2012-2014 Isaac Z. Schlueter
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*)
imurmurhash/imurmurhash.js:
(**
* @preserve
* JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013)
*
* @author <a href="mailto:jensyt@gmail.com">Jens Taylor</a>
* @see http://github.com/homebrewing/brauhaus-diff
* @author <a href="mailto:gary.court@gmail.com">Gary Court</a>
* @see http://github.com/garycourt/murmurhash-js
* @author <a href="mailto:aappleby@gmail.com">Austin Appleby</a>
* @see http://sites.google.com/site/murmurhash/
*)
2026-05-22 12:36:07 +00:00
make-fetch-happen/lib/fetch.js:
make-fetch-happen/lib/fetch.js:
(**
* @license
* Copyright (c) 2010-2012 Mikeal Rogers
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an "AS
* IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*)
moment/moment.js:
(*! moment.js *)
(*! version : 2.30.1 *)
(*! authors : Tim Wood, Iskren Chernev, Moment.js contributors *)
(*! license : MIT *)
(*! momentjs.com *)
moment-timezone/moment-timezone.js:
(*! moment-timezone.js *)
2026-05-28 08:28:29 +00:00
(*! version : 0.6.2 *)
(*! Copyright (c) JS Foundation and other contributors *)
(*! license : MIT *)
(*! github.com/moment/moment-timezone *)
xregexp/lib/xregexp.js:
(*!
* XRegExp 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2007-present MIT License
*)
xregexp/lib/addons/build.js:
(*!
* XRegExp.build 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2012-present MIT License
*)
xregexp/lib/addons/matchrecursive.js:
(*!
* XRegExp.matchRecursive 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2009-present MIT License
*)
xregexp/lib/addons/unicode-base.js:
(*!
* XRegExp Unicode Base 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2008-present MIT License
*)
xregexp/lib/addons/unicode-blocks.js:
(*!
* XRegExp Unicode Blocks 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2010-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
*)
xregexp/lib/addons/unicode-categories.js:
(*!
* XRegExp Unicode Categories 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2010-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
*)
xregexp/lib/addons/unicode-properties.js:
(*!
* XRegExp Unicode Properties 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2012-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
*)
xregexp/lib/addons/unicode-scripts.js:
(*!
* XRegExp Unicode Scripts 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2010-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
*)
@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