Files
metadata-action/dist/index.cjs

381 lines
3.5 MiB
JavaScript
Raw Normal View History

2026-06-17 19:24:43 +00:00
var Fje=Object.create;var h_=Object.defineProperty;var Tje=Object.getOwnPropertyDescriptor;var xje=Object.getOwnPropertyNames;var _je=Object.getPrototypeOf,Wje=Object.prototype.hasOwnProperty;var Lje=(t,e)=>()=>(t&&(e=t(t=0)),e);var h=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Xne=(t,e)=>{for(var r in e)h_(t,r,{get:e[r],enumerable:!0})},Qje=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of xje(e))!Wje.call(t,s)&&s!==r&&h_(t,s,{get:()=>e[s],enumerable:!(n=Tje(e,s))||n.enumerable});return t};var x=(t,e,r)=>(r=t!=null?Fje(_je(t)):{},Qje(e||!t||!t.__esModule?h_(r,"default",{value:t,enumerable:!0}):r,t));var Zne=h(fh=>{"use strict";var ls0=require("net"),Xje=require("tls"),z_=require("http"),Yne=require("https"),Vje=require("events"),As0=require("assert"),jje=require("util");fh.httpOverHttp=$je;fh.httpsOverHttp=Yje;fh.httpOverHttps=Jje;fh.httpsOverHttps=Kje;function $je(t){var e=new pu(t);return e.request=z_.request,e}function Yje(t){var e=new pu(t);return e.request=z_.request,e.createSocket=Jne,e.defaultPort=443,e}function Jje(t){var e=new pu(t);return e.request=Yne.request,e}function Kje(t){var e=new pu(t);return e.request=Yne.request,e.createSocket=Jne,e.defaultPort=443,e}function pu(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||z_.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=Kne(s,i,o),c=0,u=e.requests.length;c<u;++c){var p=e.requests[c];if(p.host===a.host&&p.port===a.port){e.requests.splice(c,1),p.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)})}jje.inherits(pu,Vje.EventEmitter);pu.prototype.addRequest=function(e,r,n,s){var i=this,o=O_({request:e},i.options,Kne(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",c),a.on("close",u),a.on("agentRemove",u),e.onSocket(a);function c(){i.emit("free",a,o)}function u(p){i.removeSocket(a),a.removeListener("free",c),a.removeListener("close",u),a.removeListener("agentRemove",u)}})};pu.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=O_({},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")),ul("making CONNECT request");var o=n.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",u),o.once("error",p),o.end();function a(l){l.upgrade=!0}function c(l,A,f){process.nextTick(function(){u(l,A,f)})}function u(l,A,f){if(o.removeAllListeners(),A.removeAllListeners(),l.statusCode!==200){ul("tunneling socket could not be established, statusCode=%d",l.statusCode),A.destroy();var M=new Error("tunneling socket could not be established, statusCode="+l.statusCode);M.code="ECONNRESET",e.request.emit("error",M),n.removeSocket(s);return}if(f.length>0){ul("got illegal response body from proxy"),A.destroy();var M=new Error("got illegal response body from proxy");M.code="ECONNRESET",e.request.emit("error",M),n.removeSocket(s);return}return ul("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=A,r(A)}function p(l){o.removeAllListeners(),ul(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var A=new Error("tunneling socket could not be established, cause="+l.message);A.code="ECONNRESET",e.request.emit("error",A),n.removeSocket(s)}};pu.prototype.removeSocket=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)})}};function Jne(t,e){var r=this;pu.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=O_({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=Xje.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function Kne(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function O_(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,o=s.length;i<o;++i){var a=s[i];n[a]!==void 0&&(t[a]=n[a])}}return t}var ul;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?ul=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)}:ul=function(){};fh.debug=ul});var iz=h((fs0,ese)=>{ese.exports=Zne()});var d0=h((hs0,tse)=>{tse.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 Ot=h((bs0,Dse)=>{"use strict";var rse=Symbol.for("undici.error.UND_ERR"),f0=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[rse]===!0}[rse]=!0},nse=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),E_=class extends f0{constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[nse]===!0}[nse]=!0},sse=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),y_=class extends f0{constructor(e){super(e),this.name="HeadersTimeo
`)||t.includes("\r")||t.includes("\0"))===!1}function fJe(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 o=n[i-1].trim();if(KYe.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function hJe(){return"allowed"}function bJe(){return"success"}function MJe(){return"success"}function mJe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function gJe(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&&MW(t.origin)&&!MW(fz(t))&&(e=null);break;case"same-origin":vB(t,fz(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Ch(t,e){return t}function zJe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Ch(t.domainLookupStartTime,r),domainLookupEndTime:Ch(t.domainLookupEndTime,r),connectionStartTime:Ch(t.connectionStartTime,r),connectionEndTime:Ch(t.connectionEndTime,r),secureConnectionStartTime:Ch(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function OJe(t){return Ch(nJe.now(),t)}function EJe(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}}function Pie(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function yJe(t){return{referrerPolicy:t.referrerPolicy}}function CJe(t){let e=t.referrerPolicy;pd(e);let r=null;if(t.referrer==="client"){let a=Tie();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=bW(r),s=bW(r,!0);n.toString().length>4096&&(n=s);let i=vB(t,n),o=dz(n)&&!dz(t.url);switch(e){case"origin":return s??bW(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 a=fz(t);return vB(n,a)?n:dz(n)&&!dz(a)?"no-referrer":s}default:return o?"no-referrer":s}}function bW(t,e){return pd(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)}function dz(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"))}}function BJe(t,e){if(NB===void 0)return!0;let r=kie(e);if(r==="no metadata"||r.length===0)return!0;let n=qJe(r),s=IJe(r,n);for(let i of s){let o=i.algo,a=i.hash,c=NB.createHash(o).update(t).digest("base64");if(c[c.length-1]==="="&&(c[c.length-2]==="="?c=c.slice(0,-2):c=c.slice(0,-1)),RJe(c,a))return!0}return!1}var DJe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function kie(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=DJe.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();_ie.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function qJe(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let n=t[r];if(n.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;n.algo[3]==="3"&&(e="sha384")}}return e}function IJe(t,e){if(t.length===1)return t;let r=0;for(let n=0;n<t.l
`);function AKe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function dKe(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}function fKe(t,e){TB(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 o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(i.position,i.position+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&xB(t,pKe,i)||i.position===t.length-4&&xB(t,lKe,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=hKe(t,i);if(a==="failure")return"failure";let{name:c,filename:u,contentType:p,encoding:l}=a;i.position+=2;let A;{let M=t.indexOf(n.subarray(2),i.position);if(M===-1)return"failure";A=t.subarray(i.position,M-4),i.position+=A.length,l==="base64"&&(A=Buffer.from(A.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let f;u!==null?(p??="text/plain",AKe(p)||(p=""),f=new cKe([A],u,{type:p})):f=nKe(Buffer.from(A)),TB(toe(c)),TB(typeof f=="string"&&toe(f)||iKe(f)),s.push(oKe(c,f,u))}}function hKe(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 o=Dh(a=>a!==10&&a!==13&&a!==58,t,e);if(o=CW(o,!0,!0,a=>a===9||a===32),!sKe.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Dh(a=>a===32||a===9,t,e),rKe(o)){case"content-disposition":{if(r=n=null,!xB(t,uKe,e)||(e.position+=17,r=soe(t,e),r===null))return"failure";if(xB(t,noe,e)){let a=e.position+noe.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=soe(t,e),n===null))return"failure"}break}case"content-type":{let a=Dh(c=>c!==10&&c!==13,t,e);a=CW(a,!1,!0,c=>c===9||c===32),s=roe(a);break}case"content-transfer-encoding":{let a=Dh(c=>c!==10&&c!==13,t,e);a=CW(a,!1,!0,c=>c===9||c===32),i=roe(a);break}default:Dh(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function soe(t,e){TB(t[e.position-1]===34);let r=Dh(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)}function Dh(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function CW(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)}function xB(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}ioe.exports={multipartFormDataParser:fKe,validateBoundary:dKe}});var Rh=h((Ps0,boe)=>{"use strict";var Mz=st(),{ReadableStreamFrom:bKe,isBlobLike:aoe,isReadableStreamLike:MKe,readableStreamClose:mKe,createDeferredPromise:gKe,fullyReadBody:zKe,extractMimeType:OKe,utf8DecodeBytes:poe}=ms(),{FormData:coe}=bz(),{kState:Ih}=pl(),{webidl:EKe}=or(),{Blob:yKe}=require("node:buffer"),BW=require("node:assert"),{isErrored:loe,isDisturbed:CKe}=require("node:stream"),{isArrayBuffer:BKe}=require("node:util/types"),{serializeAMimeType:DKe}=vn(),{multipartFormDataParser:qKe}=ooe(),DW;try{let t=require("node:crypto");DW=e=>t.randomInt(0,e)}catch{DW=t=>Math.floor(Math.random(t))}var _B=new TextEncoder;function IKe(){}var Aoe=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,doe;Aoe&&(doe=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!CKe(e)&&!loe(e)&&e.cancel("Response object has been garbage collected").catch(IKe)}));function foe(t,e=!1){let r=null;t instanceof ReadableStream?r=t:aoe(t)?r=t.stream():r=new ReadableStream({async pull(c){let u=typeof s=="string"?_B.encode(s):s;u.byteLength&&c.enqueue(u),queueMicrotask(()=>mKe(c))},start(){},type:"bytes"}),BW(MKe(r));let n=null,s=null,i=null,o=null;if(typeof t=="string")s=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(BKe(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(Mz.isFormDataLike(t)){let c=`----formdata-undici-0${`${DW(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
Content-Disposition: form-data`;let p=y=>y.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=y=>y.replace(/\r?\n|\r/g,`\r
2026-06-17 19:24:43 +00:00
`),A=[],f=new Uint8Array([13,10]);i=0;let M=!1;for(let[y,O]of t)if(typeof O=="string"){let C=_B.encode(u+`; name="${p(l(y))}"\r
\r
${l(O)}\r
2026-06-17 19:24:43 +00:00
`);A.push(C),i+=C.byteLength}else{let C=_B.encode(`${u}; name="${p(l(y))}"`+(O.name?`; filename="${p(O.name)}"`:"")+`\r
Content-Type: ${O.type||"application/octet-stream"}\r
\r
2026-06-17 19:24:43 +00:00
`);A.push(C,O,f),typeof O.size=="number"?i+=C.byteLength+O.size+f.byteLength:M=!0}let g=_B.encode(`--${c}--\r
`);A.push(g),i+=g.byteLength,M&&(i=null),s=t,n=async function*(){for(let y of A)y.stream?yield*y.stream():yield y},o=`multipart/form-data; boundary=${c}`}else if(aoe(t))s=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(Mz.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:bKe(t)}if((typeof s=="string"||Mz.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let c;r=new ReadableStream({async start(){c=n(t)[Symbol.asyncIterator]()},async pull(u){let{value:p,done:l}=await c.next();if(l)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!loe(r)){let A=new Uint8Array(p);A.byteLength&&u.enqueue(A)}return u.desiredSize>0},async cancel(u){await c.return()},type:"bytes"})}return[{stream:r,source:s,length:i},o]}function RKe(t,e=!1){return t instanceof ReadableStream&&(BW(!Mz.isDisturbed(t),"The body has already been consumed."),BW(!t.locked,"The stream is locked.")),foe(t,e)}function wKe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function SKe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function NKe(t){return{blob(){return qh(this,r=>{let n=uoe(this);return n===null?n="":n&&(n=DKe(n)),new yKe([r],{type:n})},t)},arrayBuffer(){return qh(this,r=>new Uint8Array(r).buffer,t)},text(){return qh(this,poe,t)},json(){return qh(this,FKe,t)},formData(){return qh(this,r=>{let n=uoe(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=qKe(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new coe;return i[Ih]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new coe;for(let[o,a]of s)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return qh(this,r=>new Uint8Array(r),t)}}}function vKe(t){Object.assign(t.prototype,NKe(t))}async function qh(t,e,r){if(EKe.brandCheck(t,r),hoe(t))throw new TypeError("Body is unusable: Body has already been read");SKe(t[Ih]);let n=gKe(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[Ih].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await zKe(t[Ih].body,i,s),n.promise)}function hoe(t){let e=t[Ih].body;return e!=null&&(e.stream.locked||Mz.isDisturbed(e.stream))}function FKe(t){return JSON.parse(poe(t))}function uoe(t){let e=t[Ih].headersList,r=OKe(e);return r==="failure"?null:r}boe.exports={extractBody:foe,safelyExtractBody:RKe,cloneBody:wKe,mixinBody:vKe,streamRegistry:doe,hasFinalizationRegistry:Aoe,bodyUnusable:hoe}});var qoe=h((ks0,Doe)=>{"use strict";var Ne=require("node:assert"),Ue=st(),{channels:Moe}=bh(),qW=cW(),{RequestContentLengthMismatchError:ld,ResponseContentLengthMismatchError:TKe,RequestAbortedError:yoe,HeadersTimeoutError:xKe,HeadersOverflowError:_Ke,SocketError:UB,InformationalError:wh,BodyTimeoutError:WKe,HTTPParserError:LKe,ResponseExceededMaxSizeError:QKe}=Ot(),{kUrl:Coe,kReset:Fn,kClient:SW,kParser:I0,kBlocking:zz,kRunning:Mr,kPending:PKe,kSize:moe,kWriting:Al,kQueue:mo,kNoRef:mz,kKeepAliveDefaultTimeout:kKe,kHostHeader:UKe,kPendingIdx:GKe,kRunningIdx:li,kError:Ai,kPipelining:PB,kSocket:Sh,kKeepAliveTimeoutValue:GB,kMaxHeadersSize:IW,kKeepAliveMaxTimeout:HKe,kKeepAliveTimeoutThreshold:XKe,kHeadersTimeout:VKe,kBodyTimeout:jKe,kStrictContentLength:NW,kMaxRequests:goe,kCounter:$Ke,kMaxResponseSize:YKe,kOnError:JKe,kResume:ll,kHTTPContext:Boe}=d0(),da=die(),KKe=Buffer.alloc(0),WB=Buffer[Symbol.species],LB=Ue.addListener,ZKe=Ue.removeAllListeners,RW;async function eZe(){let t=process.env.JEST_WORKER_ID?lW():void 0,e;try{e=await WebAssembly.compile(bie())}catch{e=await WebAssembly.compile(t||lW())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Ne(m1.ptr===r);let i=n-ha+fa.byteOffset;return m1.onStatus(new WB(fa.buffer,i,s))||0},wasm_on_message_begin:r=>(Ne(m1.ptr===r),m1.onMessageBegin()||0),wasm_on_he
`;if(typeof s=="string"?g+=`host: ${s}\r
`:g+=t[UKe],i?g+=`connection: upgrade\r
upgrade: ${i}\r
2026-06-17 19:24:43 +00:00
`:t[PB]&&!f[Fn]?g+=`connection: keep-alive\r
`:g+=`connection: close\r
2026-06-17 19:24:43 +00:00
`,Array.isArray(u))for(let y=0;y<u.length;y+=2){let O=u[y+0],C=u[y+1];if(Array.isArray(C))for(let q=0;q<C.length;q++)g+=`${O}: ${C[q]}\r
`;else g+=`${O}: ${C}\r
`}return Moe.sendHeaders.hasSubscribers&&Moe.sendHeaders.publish({request:e,headers:g,socket:f}),!c||A===0?Ooe(M,null,t,e,f,p,g,l):Ue.isBuffer(c)?Ooe(M,c,t,e,f,p,g,l):Ue.isBlobLike(c)?typeof c.stream=="function"?Eoe(M,c.stream(),t,e,f,p,g,l):aZe(M,c,t,e,f,p,g,l):Ue.isStream(c)?oZe(M,c,t,e,f,p,g,l):Ue.isIterable(c)?Eoe(M,c,t,e,f,p,g,l):Ne(!1),!0}function oZe(t,e,r,n,s,i,o,a){Ne(i!==0||r[Mr]===0,"stream body cannot be pipelined");let c=!1,u=new HB({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),p=function(M){if(!c)try{!u.write(M)&&this.pause&&this.pause()}catch(g){Ue.destroy(this,g)}},l=function(){c||e.resume&&e.resume()},A=function(){if(queueMicrotask(()=>{e.removeListener("error",f)}),!c){let M=new yoe;queueMicrotask(()=>f(M))}},f=function(M){if(!c){if(c=!0,Ne(s.destroyed||s[Al]&&r[Mr]<=1),s.off("drain",l).off("error",f),e.removeListener("data",p).removeListener("end",f).removeListener("close",A),!M)try{u.end()}catch(g){M=g}u.destroy(M),M&&(M.code!=="UND_ERR_INFO"||M.message!=="reset")?Ue.destroy(e,M):Ue.destroy(e)}};e.on("data",p).on("end",f).on("error",f).on("close",A),e.resume&&e.resume(),s.on("drain",l).on("error",f),e.errorEmitted??e.errored?setImmediate(()=>f(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>f(null)),(e.closeEmitted??e.closed)&&setImmediate(A)}function Ooe(t,e,r,n,s,i,o,a){try{e?Ue.isBuffer(e)&&(Ne(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
\r
2026-06-17 19:24:43 +00:00
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[Fn]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
2026-06-17 19:24:43 +00:00
`,"latin1"):(Ne(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[ll]()}catch(c){t(c)}}async function aZe(t,e,r,n,s,i,o,a){Ne(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new ld;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
2026-06-17 19:24:43 +00:00
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[Fn]=!0),r[ll]()}catch(c){t(c)}}async function Eoe(t,e,r,n,s,i,o,a){Ne(i!==0||r[Mr]===0,"iterator body cannot be pipelined");let c=null;function u(){if(c){let A=c;c=null,A()}}let p=()=>new Promise((A,f)=>{Ne(c===null),s[Ai]?f(s[Ai]):c=A});s.on("close",u).on("drain",u);let l=new HB({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let A of e){if(s[Ai])throw s[Ai];l.write(A)||await p()}l.end()}catch(A){l.destroy(A)}finally{s.off("close",u).off("drain",u)}}var HB=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Al]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Ai])throw r[Ai];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(s!==null&&o+u>s){if(i[NW])throw new ld;process.emitWarning(new ld)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[Fn]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"):r.write(`${c}content-length: ${s}\r
\r
2026-06-17 19:24:43 +00:00
`,"latin1")),s===null&&r.write(`\r
${u.toString(16)}\r
2026-06-17 19:24:43 +00:00
`,"latin1"),this.bytesWritten+=u;let p=r.write(e);return r.uncork(),n.onBodySent(e),p||r[I0].timeout&&r[I0].timeoutType===Nh&&r[I0].timeout.refresh&&r[I0].timeout.refresh(),p}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Al]=!1,e[Ai])throw e[Ai];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
2026-06-17 19:24:43 +00:00
`,"latin1"),r!==null&&s!==r){if(n[NW])throw new ld;process.emitWarning(new ld)}e[I0].timeout&&e[I0].timeoutType===Nh&&e[I0].timeout.refresh&&e[I0].timeout.refresh(),n[ll]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Al]=!1,e&&(Ne(n[Mr]<=1,"pipeline should only contain this request"),s(e))}};Doe.exports=rZe});var Toe=h((Us0,Foe)=>{"use strict";var di=require("node:assert"),{pipeline:cZe}=require("node:stream"),pt=st(),{RequestContentLengthMismatchError:xW,RequestAbortedError:Ioe,SocketError:Oz,InformationalError:_W}=Ot(),{kUrl:XB,kReset:jB,kClient:vh,kRunning:$B,kPending:uZe,kQueue:dl,kPendingIdx:WW,kRunningIdx:go,kError:Oo,kSocket:R1,kStrictContentLength:pZe,kOnError:LW,kMaxConcurrentStreams:voe,kHTTP2Session:zo,kResume:fl,kSize:lZe,kHTTPContext:AZe}=d0(),bu=Symbol("open streams"),Roe,woe=!1,VB;try{VB=require("node:http2")}catch{VB={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:dZe,HTTP2_HEADER_METHOD:fZe,HTTP2_HEADER_PATH:hZe,HTTP2_HEADER_SCHEME:bZe,HTTP2_HEADER_CONTENT_LENGTH:MZe,HTTP2_HEADER_EXPECT:mZe,HTTP2_HEADER_STATUS:gZe}}=VB;function zZe(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}async function OZe(t,e){t[R1]=e,woe||(woe=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=VB.connect(t[XB],{createConnection:()=>e,peerMaxConcurrentStreams:t[voe]});r[bu]=0,r[vh]=t,r[R1]=e,pt.addListener(r,"error",yZe),pt.addListener(r,"frameError",CZe),pt.addListener(r,"end",BZe),pt.addListener(r,"goaway",DZe),pt.addListener(r,"close",function(){let{[vh]:s}=this,{[R1]:i}=s,o=this[R1][Oo]||this[Oo]||new Oz("closed",pt.getSocketInfo(i));if(s[zo]=null,s.destroyed){di(s[uZe]===0);let a=s[dl].splice(s[go]);for(let c=0;c<a.length;c++){let u=a[c];pt.errorRequest(s,u,o)}}}),r.unref(),t[zo]=r,e[zo]=r,pt.addListener(e,"error",function(s){di(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Oo]=s,this[vh][LW](s)}),pt.addListener(e,"end",function(){pt.destroy(this,new Oz("other side closed",pt.getSocketInfo(this)))}),pt.addListener(e,"close",function(){let s=this[Oo]||new Oz("closed",pt.getSocketInfo(this));t[R1]=null,this[zo]!=null&&this[zo].destroy(s),t[WW]=t[go],di(t[$B]===0),t.emit("disconnect",t[XB],[t],s),t[fl]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return IZe(t,...s)},resume(){EZe(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function EZe(t){let e=t[R1];e?.destroyed===!1&&(t[lZe]===0&&t[voe]===0?(e.unref(),t[zo].unref()):(e.ref(),t[zo].ref()))}function yZe(t){di(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[R1][Oo]=t,this[vh][LW](t)}function CZe(t,e,r){if(r===0){let n=new _W(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[R1][Oo]=n,this[vh][LW](n)}}function BZe(){let t=new Oz("other side closed",pt.getSocketInfo(this[R1]));this.destroy(t),pt.destroy(this[R1],t)}function DZe(t){let e=this[Oo]||new Oz(`HTTP/2: "GOAWAY" frame received with code ${t}`,pt.getSocketInfo(this)),r=this[vh];if(r[R1]=null,r[AZe]=null,this[zo]!=null&&(this[zo].destroy(e),this[zo]=null),pt.destroy(this[R1],e),r[go]<r[dl].length){let n=r[dl][r[go]];r[dl][r[go]++]=null,pt.errorRequest(r,n,e),r[WW]=r[go]}di(r[$B]===0),r.emit("disconnect",r[XB],[r],e),r[fl]()}function qZe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function IZe(t,e){let r=t[zo],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:c,headers:u}=e,{body:p}=e;if(o)return pt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let R=0;R<u.length;R+=2){let S=u[R+0],T=u[R+1];if(Array.isArray(T))for(let L=0;L<T.length;L++)l[S]?l[S]+=`,${T[L]}`:l[S]=T[L];else l[S]=T}let A,{hostname:f,port:M}=t[XB];l[dZe]=i||`${f}${M?`:${M}`:""}`,l[fZe]=n;let g=R=>{e.aborted||e.completed||(R=R||new Ioe,pt.errorRequest(t,e,R),A!=null&&pt.destroy(A,R),pt.destroy(p,R),t[dl][t[go]++]=null,t[fl]())};try{e.onConnect(g)}catch(R){pt.errorRequest
`,this[eet]=c??3e5,this[ZZe]=s??3e5,this[tet]=C??!0,this[ret]=R,this[UW]=T,this[bl]=null,this[aet]=j>-1?j:-1,this[uet]=K??100,this[V0]=null,this[Eo]=[],this[mu]=0,this[yo]=0,this[Bz]=Y=>HW(this,Y),this[cet]=Y=>Voe(this,Y)}get pipelining(){return this[ZB]}set pipelining(e){this[ZB]=e,this[Bz](!0)}get[Iz](){return this[Eo].length-this[yo]}get[qz](){return this[yo]-this[mu]}get[Dz](){return this[Eo].length-this[mu]}get[XZe](){return!!this[V0]&&!this[Th]&&!this[V0].destroyed}get[kW](){return!!(this[V0]?.busy(null)||this[Dz]>=(Xoe(this)||1)||this[Iz]>0)}[HZe](e){joe(this),this.once("connect",e)}[oet](e,r){let n=e.origin||this[Ma].origin,s=new LZe(n,e,r);return this[Eo].push(s),this[dd]||(Ad.bodyLength(s.body)==null&&Ad.isIterable(s.body)?(this[dd]=1,queueMicrotask(()=>HW(this))):this[Bz](!0)),this[dd]&&this[Ml]!==2&&this[kW]&&(this[Ml]=2),this[Ml]<2}async[set](){return new Promise(e=>{this[Dz]?this[bl]=e:e(null)})}async[iet](e){return new Promise(r=>{let n=this[Eo].splice(this[yo]);for(let i=0;i<n.length;i++){let o=n[i];Ad.errorRequest(this,o,e)}let s=()=>{this[bl]&&(this[bl](),this[bl]=null),r(null)};this[V0]?(this[V0].destroy(e,s),this[V0]=null):queueMicrotask(s),this[Bz]()})}},det=KB();function Voe(t,e){if(t[qz]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Mu(t[yo]===t[mu]);let r=t[Eo].splice(t[mu]);for(let n=0;n<r.length;n++){let s=r[n];Ad.errorRequest(t,s,e)}Mu(t[Dz]===0)}}async function joe(t){Mu(!t[Th]),Mu(!t[V0]);let{host:e,hostname:r,protocol:n,port:s}=t[Ma];if(r[0]==="["){let i=r.indexOf("]");Mu(i!==-1);let o=r.substring(1,i);Mu(Hoe.isIP(o)),r=o}t[Th]=!0,Fh.beforeConnect.hasSubscribers&&Fh.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[V0]?.version,servername:t[hl],localAddress:t[Cz]},connector:t[yz]});try{let i=await new Promise((o,a)=>{t[yz]({host:e,hostname:r,protocol:n,port:s,servername:t[hl],localAddress:t[Cz]},(c,u)=>{c?a(c):o(u)})});if(t.destroyed){Ad.destroy(i.on("error",Uoe),new kZe);return}Mu(i);try{t[V0]=i.alpnProtocol==="h2"?await Aet(t,i):await pet(t,i)}catch(o){throw i.destroy().on("error",Uoe),o}t[Th]=!1,i[net]=0,i[UW]=t[UW],i[GZe]=t,i[jZe]=null,Fh.connected.hasSubscribers&&Fh.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[V0]?.version,servername:t[hl],localAddress:t[Cz]},connector:t[yz],socket:i}),t.emit("connect",t[Ma],[t])}catch(i){if(t.destroyed)return;if(t[Th]=!1,Fh.connectError.hasSubscribers&&Fh.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[V0]?.version,servername:t[hl],localAddress:t[Cz]},connector:t[yz],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Mu(t[qz]===0);t[Iz]>0&&t[Eo][t[yo]].servername===t[hl];){let o=t[Eo][t[yo]++];Ad.errorRequest(t,o,i)}else Voe(t,i);t.emit("connectionError",t[Ma],[t],i)}t[Bz]()}function Goe(t){t[Ml]=0,t.emit("drain",t[Ma],[t])}function HW(t,e){t[dd]!==2&&(t[dd]=2,fet(t,e),t[dd]=0,t[mu]>256&&(t[Eo].splice(0,t[mu]),t[yo]-=t[mu],t[mu]=0))}function fet(t,e){for(;;){if(t.destroyed){Mu(t[Iz]===0);return}if(t[bl]&&!t[Dz]){t[bl](),t[bl]=null;return}if(t[V0]&&t[V0].resume(),t[kW])t[Ml]=2;else if(t[Ml]===2){e?(t[Ml]=1,queueMicrotask(()=>Goe(t))):Goe(t);continue}if(t[Iz]===0||t[qz]>=(Xoe(t)||1))return;let r=t[Eo][t[yo]];if(t[Ma].protocol==="https:"&&t[hl]!==r.servername){if(t[qz]>0)return;t[hl]=r.servername,t[V0]?.destroy(new PZe("servername changed"),()=>{t[V0]=null,HW(t)})}if(t[Th])return;if(!t[V0]){joe(t);return}if(t[V0].destroyed||t[V0].busy(r))return;!r.aborted&&t[V0].write(r)?t[yo]++:t[Eo].splice(t[yo],1)}}$oe.exports=GW});var XW=h((js0,Yoe)=>{"use strict";var eD=class{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)}};Yoe.exports=class{constructor(){this.head=this.tail=new eD}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
2026-06-17 19:24:43 +00:00
`.trim())}};fue.exports=ZL});var mD=h((Ci0,gue)=>{"use strict";var bue=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:r1t}=Ot(),n1t=Wh();mue()===void 0&&Mue(new n1t);function Mue(t){if(!t||typeof t.dispatch!="function")throw new r1t("Argument agent must implement Agent");Object.defineProperty(globalThis,bue,{value:t,writable:!0,enumerable:!1,configurable:!1})}function mue(){return globalThis[bue]}gue.exports={setGlobalDispatcher:Mue,getGlobalDispatcher:mue}});var gD=h((Di0,zue)=>{"use strict";zue.exports=class{#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var Eue=h((qi0,Oue)=>{"use strict";var s1t=JB();Oue.exports=t=>{let e=t?.maxRedirections;return r=>function(s,i){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,i);let c=new s1t(r,o,s,i);return r(a,c)}}});var Cue=h((Ii0,yue)=>{"use strict";var i1t=cD();yue.exports=t=>e=>function(n,s){return e(n,new i1t({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var Due=h((Ri0,Bue)=>{"use strict";var o1t=st(),{InvalidArgumentError:a1t,RequestAbortedError:c1t}=Ot(),u1t=gD(),e8=class extends u1t{#e=1024*1024;#t=null;#n=!1;#r=!1;#s=0;#i=null;#c=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new a1t("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#c=r}onConnect(e){this.#t=e,this.#c.onConnect(this.#a.bind(this))}#a(e){this.#r=!0,this.#i=e}onHeaders(e,r,n,s){let o=o1t.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new c1t(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#c.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#i??e,this.#c.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#n=!0,this.#r?this.#c.onError(this.#i):this.#c.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#c.onError(this.reason);return}this.#c.onComplete(e)}}};function p1t({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new e8({maxSize:i},s);return e(n,o)}}Bue.exports=p1t});var Rue=h((wi0,Iue)=>{"use strict";var{isIP:l1t}=require("node:net"),{lookup:A1t}=require("node:dns"),d1t=gD(),{InvalidArgumentError:jh,InformationalError:f1t}=Ot(),que=Math.pow(2,31)-1,t8=class{#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#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,(o,a)=>{if(o||a==null||a.length===0){n(o??new f1t("No DNS entries found"));return}this.setRecords(e,a);let c=this.#n.get(e.hostname),u=this.pick(e,c,i.affinity),p;typeof u.port=="number"?p=`:${u.port}`:e.port!==""?p=`:${e.port}`:p="",n(null,`${e.protocol}//${u.family===6?`[${u.address}]`:u.address}${p}`)});else{let o=this.pick(e,s,i.affinity);if(o==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",n(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,n){A1t(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#s(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===que?(r.offset=0,n=4):(r
${i}`;break;case"retry":cAe(i)&&(r[s]=i);break;case"id":uAe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&cAe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&uAe(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}}};pAe.exports={EventSourceStream:k8}});var gAe=h((ao0,mAe)=>{"use strict";var{pipeline:yit}=require("node:stream"),{fetching:Cit}=Uz(),{makeRequest:Bit}=Jh(),{webidl:yu}=or(),{EventSourceStream:Dit}=lAe(),{parseMIMEType:qit}=vn(),{createFastMessageEvent:Iit}=nb(),{isNetworkError:AAe}=Pz(),{delay:Rit}=Q8(),{kEnumerableProperty:Rd}=st(),{environmentSettingsObject:dAe}=ms(),fAe=!1,hAe=3e3,rO=0,bAe=1,nO=2,wit="anonymous",Sit="use-credentials",cb=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=rO;#s=null;#i=null;#c;#a;constructor(e,r={}){super(),yu.util.markAsUncloneable(this);let n="EventSource constructor";yu.argumentLengthCheck(arguments,1,n),fAe||(fAe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=yu.converters.USVString(e,n,"url"),r=yu.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#c=r.dispatcher,this.#a={lastEventId:"",reconnectionTime:hAe};let s=dAe,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#a.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=wit;r.withCredentials&&(o=Sit,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=dAe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=Bit(a),this.#o()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#o(){if(this.#r===nO)return;this.#r=rO;let e={request:this.#s,dispatcher:this.#c},r=n=>{AAe(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#l()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(AAe(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?qit(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=bAe,this.dispatchEvent(new Event("open")),this.#a.origin=n.urlList[n.urlList.length-1].origin;let a=new Dit({eventSourceSettings:this.#a,push:c=>{this.dispatchEvent(Iit(c.type,c.options))}});yit(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=Cit(e)}async#l(){this.#r!==nO&&(this.#r=rO,this.dispatchEvent(new Event("error")),await Rit(this.#a.reconnectionTime),this.#r===rO&&(this.#a.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#a.lastEventId,!0),this.#o()))}close(){yu.brandCheck(this,t),this.#r!==nO&&(this.#r=nO,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}},MAe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:rO,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:bAe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:nO,writable:!1}};Object.defineProperties(cb,MAe);Object.definePropert
%s`,S,S,C,n);var T=C.type==="*"?VQ:C.type==="?"?XQ:"\\"+C.type;s=!0,n=n.slice(0,C.reStart)+T+"\\("+S}M(),i&&(n+="\\\\");var L=!1;switch(n.charAt(0)){case"[":case".":case"(":L=!0}for(var j=a.length-1;j>-1;j--){var Me=a[j],Be=n.slice(0,Me.reStart),K=n.slice(Me.reStart,Me.reEnd-8),De=n.slice(Me.reEnd-8,Me.reEnd),$=n.slice(Me.reEnd);De+=$;var Y=Be.split("(").length-1,Se=$;for(g=0;g<Y;g++)Se=Se.replace(/\)[+*?]?/,"");$=Se;var te="";$===""&&e!==wq&&(te="$");var ge=Be+K+$+te+De;n=ge}if(n!==""&&s&&(n="(?=.)"+n),L&&(n=A+n),e===wq)return[n,s];if(!s)return ppt(t);var ot=r.nocase?"i":"";try{var Wt=new RegExp("^"+n+"$",ot)}catch{return new RegExp("$.")}return Wt._glob=t,Wt._src=n,Wt}Rs.makeRe=function(t,e){return new ur(t,e||{}).makeRe()};ur.prototype.makeRe=upt;function upt(){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?VQ:e.dot?tpt:rpt,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===jQ?r:typeof o=="string"?lpt(o):o._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}Rs.match=function(t,e,r){r=r||{};var n=new ur(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};ur.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var n=this.options;BO.sep!=="/"&&(e=e.split(BO.sep).join("/")),e=e.split(qfe),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<s.length;o++){var a=s[o],c=e;n.matchBase&&a.length===1&&(c=[i]);var u=this.matchOne(c,a,r);if(u)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};ur.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,o=t.length,a=e.length;s<o&&i<a;s++,i++){this.debug("matchOne loop");var c=e[i],u=t[s];if(this.debug(e,c,u),c===!1)return!1;if(c===jQ){this.debug("GLOBSTAR",[e,c,u]);var p=s,l=i+1;if(l===a){for(this.debug("** at the end");s<o;s++)if(t[s]==="."||t[s]===".."||!n.dot&&t[s].charAt(0)===".")return!1;return!0}for(;p<o;){var A=t[p];if(this.debug(`
globstar while`,t,p,e,l,A),this.matchOne(t.slice(p),e.slice(l),r))return this.debug("globstar found match!",p,o,A),!0;if(A==="."||A===".."||!n.dot&&A.charAt(0)==="."){this.debug("dot detected!",t,p,e,l);break}this.debug("globstar swallow a segment, and continue"),p++}return!!(r&&(this.debug(`
>>> no match, partial?`,t,p,e,l),p===o))}var f;if(typeof c=="string"?(f=u===c,this.debug("string match",c,u,f)):(f=u.match(c),this.debug("pattern match",c,u,f)),!f)return!1}if(s===o&&i===a)return!0;if(s===o)return r;if(i===a)return s===o-1&&t[s]==="";throw new Error("wtf?")};function ppt(t){return t.replace(/\\(.)/g,"$1")}function lpt(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Ob=h((cu0,Ffe)=>{"use strict";var gpt="2.0.0",zpt=Number.MAX_SAFE_INTEGER||9007199254740991,Opt=16,Ept=250,ypt=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Ffe.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Opt,MAX_SAFE_BUILD_LENGTH:Ept,MAX_SAFE_INTEGER:zpt,RELEASE_TYPES:ypt,SEMVER_SPEC_VERSION:gpt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var IO=h((uu0,Tfe)=>{"use strict";var Cpt=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Tfe.exports=Cpt});var Eb=h((Da,xfe)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:YQ,MAX_SAFE_BUILD_LENGTH:Bpt,MAX_LENGTH:Dpt}=Ob(),qpt=IO();Da=xfe.exports={};var Ipt=Da.re=[],Rpt=Da.safeRe=[],de=Da.src=[],wpt=Da.safeSrc=[],fe=Da.t={},Spt=0,JQ="[a-zA-Z0-9-]",Npt=[["\\s",1],["\\d",Dpt],[JQ,Bpt]],vpt=t=>{for(let[e,r]of Npt)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},$e=(t,e,r)=>{let n=vpt(e),s=Spt++;qpt(t,s,e),fe[t]=s,de[s]=e,wpt[s]=n,Ipt[s]=new RegExp(e,r?"g":void 0),Rpt[s]=new RegExp(n,r?"g":void 0)};$e("NUMERICIDENTIFIER","0|[1-9]\\d*");$e("NUMERICIDENTIFIERLOOSE","\\d+");$e("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${JQ}*`);$e("MAINVERSION",`(${de[fe.NUMERICIDENTIFIER]})\\.(${de[fe.NUMERICIDENTIFIER]})\\.(${de[fe.NUMERICIDENTIFIER]})`);$e("MAINVERSIONLOOSE",`(${de[fe.NUMERICIDENTIFIERLOOSE]})\\.(${de[fe.NUMERICIDENTIFIERLOOSE]})\\.(${de[fe.NUMERICIDENTIFIERLOOSE]})`);$e("PRERELEASEIDENTIFIER",`(?:${de[fe.NONNUMERICIDENTIFIER]}|${de[fe.NUMERICIDENTIFIER]})`);$e("PRERELEASEIDENTIFIERLOOSE",`(?:${de[fe.NONNUMERICIDENTIFIER]}|${de[fe.NUMERICIDENTIFIERLOOSE]})`);$e("PRERELEASE",`(?:-(${de[fe.PRERELEASEIDENTIFIER]}(?:\\.${de[fe.PRERELEASEIDENTIFIER]})*))`);$e("PRERELEASELOOSE",`(?:-?(${de[fe.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${de[fe.PRERELEASEIDENTIFIERLOOSE]})*))`);$e("BUILDIDENTIFIER",`${JQ}+`);$e("BUILD",`(?:\\+(${de[fe.BUILDIDENTIFIER]}(?:\\.${de[fe.BUILDIDENTIFIER]})*))`);$e("FULLPLAIN",`v?${de[fe.MAINVERSION]}${de[fe.PRERELEASE]}?${de[fe.BUILD]}?`);$e("FULL",`^${de[fe.FULLPLAIN]}$`);$e("LOOSEPLAIN",`[v=\\s]*${de[fe.MAINVERSIONLOOSE]}${de[fe.PRERELEASELOOSE]}?${de[fe.BUILD]}?`);$e("LOOSE",`^${de[fe.LOOSEPLAIN]}$`);$e("GTLT","((?:<|>)?=?)");$e("XRANGEIDENTIFIERLOOSE",`${de[fe.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);$e("XRANGEIDENTIFIER",`${de[fe.NUMERICIDENTIFIER]}|x|X|\\*`);$e("XRANGEPLAIN",`[v=\\s]*(${de[fe.XRANGEIDENTIFIER]})(?:\\.(${de[fe.XRANGEIDENTIFIER]})(?:\\.(${de[fe.XRANGEIDENTIFIER]})(?:${de[fe.PRERELEASE]})?${de[fe.BUILD]}?)?)?`);$e("XRANGEPLAINLOOSE",`[v=\\s]*(${de[fe.XRANGEIDENTIFIERLOOSE]})(?:\\.(${de[fe.XRANGEIDENTIFIERLOOSE]})(?:\\.(${de[fe.XRANGEIDENTIFIERLOOSE]})(?:${de[fe.PRERELEASELOOSE]})?${de[fe.BUILD]}?)?)?`);$e("XRANGE",`^${de[fe.GTLT]}\\s*${de[fe.XRANGEPLAIN]}$`);$e("XRANGELOOSE",`^${de[fe.GTLT]}\\s*${de[fe.XRANGEPLAINLOOSE]}$`);$e("COERCEPLAIN",`(^|[^\\d])(\\d{1,${YQ}})(?:\\.(\\d{1,${YQ}}))?(?:\\.(\\d{1,${YQ}}))?`);$e("COERCE",`${de[fe.COERCEPLAIN]}(?:$|[^\\d])`);$e("COERCEFULL",de[fe.COERCEPLAIN]+`(?:${de[fe.PRERELEASE]})?(?:${de[fe.BUILD]})?(?:$|[^\\d])`);$e("COERCERTL",de[fe.COERCE],!0);$e("COERCERTLFULL",de[fe.COERCEFULL],!0);$e("LONETILDE","(?:~>?)");$e("TILDETRIM",`(\\s*)${de[fe.LONETILDE]}\\s+`,!0);Da.tildeTrimReplace="$1~";$e("TILDE",`^${de[fe.LONETILDE]}${de[fe.XRANGEPLAIN]}$`);$e("TILDELOOSE",`^${de[fe.LONETILDE]}${de[fe.XRANGEPLAINLOOSE]}$`);$e("LONECARET","(?:\\^)");$e("CARETTRIM",`(\\s*)${de[fe.LONECARET]}\\s+`,!0);Da.caretTrimReplace="$1^";$e("CARET",`^${de[fe.LONECARET]}${de[fe.XRANGEPLAIN]}$`);$e("CARETLOOSE",`^${de[fe.LONECARET]}${de[fe.XRANGEPLAINLOOSE]}$`);$e("COMPARATORLOOSE",`^${de[fe.GTLT]}\\s*(${d
`).join(`
2026-06-17 19:24:43 +00:00
`+i),t.push(s+"m+"+gI.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=E2t()+e+" "+t[0]}function E2t(){return Ar.inspectOpts.hideDate?"":new Date().toISOString()+" "}function y2t(...t){return process.stderr.write(mI.format(...t)+`
`)}function C2t(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function B2t(){return process.env.DEBUG}function D2t(t){t.inspectOpts={};let e=Object.keys(Ar.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Ar.inspectOpts[e[r]]}gI.exports=QP()(Ar);var{formatters:mMe}=gI.exports;mMe.o=function(t){return this.inspectOpts.colors=this.useColors,mI.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};mMe.O=function(t){return this.inspectOpts.colors=this.useColors,mI.inspect(t,this.inspectOpts)}});var Hd=h((Il0,GP)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?GP.exports=dMe():GP.exports=gMe()});var EMe=h(Qn=>{"use strict";var q2t=Qn&&Qn.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),I2t=Qn&&Qn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),zMe=Qn&&Qn.__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)&&q2t(e,t,r);return I2t(e,t),e};Object.defineProperty(Qn,"__esModule",{value:!0});Qn.req=Qn.json=Qn.toBuffer=void 0;var R2t=zMe(require("http")),w2t=zMe(require("https"));async function OMe(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}Qn.toBuffer=OMe;async function S2t(t){let r=(await OMe(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}Qn.json=S2t;function N2t(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?w2t:R2t).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}Qn.req=N2t});var DMe=h(Fs=>{"use strict";var CMe=Fs&&Fs.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),v2t=Fs&&Fs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),BMe=Fs&&Fs.__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)&&CMe(e,t,r);return v2t(e,t),e},F2t=Fs&&Fs.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&CMe(e,t,r)};Object.defineProperty(Fs,"__esModule",{value:!0});Fs.Agent=void 0;var T2t=BMe(require("net")),yMe=BMe(require("http")),x2t=require("https");F2t(EMe(),Fs);var wa=Symbol("AgentBaseInternalState"),HP=class extends yMe.Agent{constructor(e){super(e),this[wa]={}}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 T2t.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)?x2t.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(a=>{if(this.decrementSockets(i,o),a instanceof yMe.Agent)try{return a.addRequest(e,s)}catch(c){return n(c)}this[wa].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[wa].currentSocket;if(this[wa].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[wa].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[wa]&&(this[wa].defaultPort=e)}get protocol(){return this[wa].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[wa]&&(this[wa].protocol=e)}};Fs.Agent=HP});var qMe=h(Nb=>{"use strict";var _2t=Nb&&Nb.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Nb,"__esModule",{value:!0});Nb.parseProxyResponse=void 0;var W2t=_2t(Hd()),zI=(0,W2t.default)("https-proxy-agent:parse-proxy-response");function L2t(t){return new Promise((e,r)=>{let n=0,s=[];function i(){let p=t.read();p?u(p):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",c),t.removeListener("readable",i)}function a(){o(),zI("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(p){o(),zI("onerror %o",p),r(p)}function u(p){s.push(p),n+=p.length;let l=Buffer.concat(s,n),A=l.indexOf(`\r
\r
2026-06-17 19:24:43 +00:00
`);if(A===-1){zI("have not received end of HTTP headers yet..."),i();return}let f=l.slice(0,A).toString("ascii").split(`\r
`),M=f.shift();if(!M)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let g=M.split(" "),y=+g[1],O=g.slice(2).join(" "),C={};for(let q of f){if(!q)continue;let R=q.indexOf(":");if(R===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${q}"`));let S=q.slice(0,R).toLowerCase(),T=q.slice(R+1).trimStart(),L=C[S];typeof L=="string"?C[S]=[L,T]:Array.isArray(L)?L.push(T):C[S]=T}zI("got proxy server response: %o %o",M,C),o(),e({connect:{statusCode:y,statusText:O,headers:C},buffered:l})}t.on("error",c),t.on("end",a),i()})}Nb.parseProxyResponse=L2t});var vMe=h(qi=>{"use strict";var Q2t=qi&&qi.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),P2t=qi&&qi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),SMe=qi&&qi.__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)&&Q2t(e,t,r);return P2t(e,t),e},NMe=qi&&qi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(qi,"__esModule",{value:!0});qi.HttpsProxyAgent=void 0;var OI=SMe(require("net")),IMe=SMe(require("tls")),k2t=NMe(require("assert")),U2t=NMe(Hd()),G2t=DMe(),H2t=require("url"),X2t=qMe(),UO=(0,U2t.default)("https-proxy-agent"),RMe=t=>t.servername===void 0&&t.host&&!OI.isIP(t.host)?{...t,servername:t.host}:t,EI=class extends G2t.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new H2t.URL(e):e,this.proxyHeaders=r?.headers??{},UO("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?wMe(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:"?(UO("Creating `tls.Socket`: %o",this.connectOpts),s=IMe.connect(RMe(this.connectOpts))):(UO("Creating `net.Socket`: %o",this.connectOpts),s=OI.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=OI.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`;if(n.username||n.password){let A=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(A).toString("base64")}`}i.Host=`${o}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let A of Object.keys(i))a+=`${A}: ${i[A]}\r
`;let c=(0,X2t.parseProxyResponse)(s);s.write(`${a}\r
`);let{connect:u,buffered:p}=await c;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200)return e.once("socket",V2t),r.secureEndpoint?(UO("Upgrading socket connection to TLS"),IMe.connect({...wMe(RMe(r),"host","path","port"),socket:s})):s;s.destroy();let l=new OI.Socket({writable:!1});return l.readable=!0,e.once("socket",A=>{UO("Replaying proxy buffer for failed request"),(0,k2t.default)(A.listenerCount("data")>0),A.push(p),A.push(null)}),l}};EI.protocols=["http","https"];qi.HttpsProxyAgent=EI;function V2t(t){t.resume()}function wMe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var xMe=h(Pn=>{"use strict";var j2t=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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),$2t=Pn&&Pn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),FMe=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)&&j2t(e,t,r);return $2t(e,t),e};Object.defineProperty(Pn,"__esModule",{value:!0});Pn.req=Pn.json=Pn.toBuffer=void 0;var Y2t=FMe(require("http")),J2t=FMe(require("https"));async function TMe(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}Pn.toBuffer=TMe;async function K2t(t){let r=(await TMe(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}Pn.json=K2t;function Z2t(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?J2t:Y2t).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}Pn.req=Z2t});var GO=h(Ts=>{"use strict";var WMe=Ts&&Ts.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),eft=Ts&&Ts.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),LMe=Ts&&Ts.__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)&&WMe(e,t,r);return eft(e,t),e},tft=Ts&&Ts.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&WMe(e,t,r)};Object.defineProperty(Ts,"__esModule",{value:!0});Ts.Agent=void 0;var rft=LMe(require("net")),_Me=LMe(require("http")),nft=require("https");tft(xMe(),Ts);var Sa=Symbol("AgentBaseInternalState"),XP=class extends _Me.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 rft.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))?nft.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(a=>{if(this.decrementSockets(i,o),a instanceof _Me.Agent)return a.addRequest(e,s);this[Sa].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}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)}};Ts.Agent=XP});var VP=h(Ii=>{"use strict";var sft=Ii&&Ii.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),ift=Ii&&Ii.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),PMe=Ii&&Ii.__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)&&sft(e,t,r);return ift(e,t),e},oft=Ii&&Ii.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ii,"__esModule",{value:!0});Ii.HttpProxyAgent=void 0;var aft=PMe(require("net")),cft=PMe(require("tls")),uft=oft(Hd()),pft=require("events"),lft=GO(),QMe=require("url"),vb=(0,uft.default)("http-proxy-agent"),yI=class extends lft.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new QMe.URL(e):e,this.proxyHeaders=r?.headers??{},vb("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?Aft(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",o=`${s}//${i}`,a=new QMe.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let c=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let u=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;c["Proxy-Authorization"]=`Basic ${Buffer.from(u).toString("base64")}`}c["Proxy-Connection"]||(c["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let u of Object.keys(c)){let p=c[u];p&&e.setHeader(u,p)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;vb("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(vb("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
\r
2026-06-17 19:24:43 +00:00
`)+4,e.outputData[0].data=e._header+n.substring(s),vb("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(vb("Creating `tls.Socket`: %o",this.connectOpts),i=cft.connect(this.connectOpts)):(vb("Creating `net.Socket`: %o",this.connectOpts),i=aft.connect(this.connectOpts)),await(0,pft.once)(i,"connect"),i}};yI.protocols=["http","https"];Ii.HttpProxyAgent=yI;function Aft(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var ume=h(_I=>{"use strict";Object.defineProperty(_I,"__esModule",{value:!0});_I.state=void 0;_I.state={instrumenterImplementation:void 0}});var Dme=h(kI=>{"use strict";Object.defineProperty(kI,"__esModule",{value:!0});kI.state=void 0;kI.state={operationRequestMap:new WeakMap}});var sOe=h(Jb=>{"use strict";Object.defineProperty(Jb,"__esModule",{value:!0});var Ngt=require("os"),vgt=require("util");function Fgt(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var Tgt=Fgt(vgt);function xgt(t,...e){process.stderr.write(`${Tgt.default.format(t,...e)}${Ngt.EOL}`)}var jze=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Yze,BG=[],DG=[],a5=[];jze&&qG(jze);var Jze=Object.assign(t=>Kze(t),{enable:qG,enabled:IG,disable:_gt,log:xgt});function qG(t){Yze=t,BG=[],DG=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?DG.push(new RegExp(`^${n.substr(1)}$`)):BG.push(new RegExp(`^${n}$`));for(let n of a5)n.enabled=IG(n.namespace)}function IG(t){if(t.endsWith("*"))return!0;for(let e of DG)if(e.test(t))return!1;for(let e of BG)if(e.test(t))return!0;return!1}function _gt(){let t=Yze||"";return qG(""),t}function Kze(t){let e=Object.assign(r,{enabled:IG(t),destroy:Wgt,log:Jze.log,namespace:t,extend:Lgt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return a5.push(e),e}function Wgt(){let t=a5.indexOf(this);return t>=0?(a5.splice(t,1),!0):!1}function Lgt(t){let e=Kze(`${this.namespace}:${t}`);return e.log=this.log,e}var S3=Jze,Zze=new Set,i5=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,c5,u5=S3("azure");u5.log=(...t)=>{S3.log(...t)};var RG=["verbose","info","warning","error"];i5&&(nOe(i5)?eOe(i5):console.error(`AZURE_LOG_LEVEL set to unknown log level '${i5}'; logging is not enabled. Acceptable values: ${RG.join(", ")}.`));function eOe(t){if(t&&!nOe(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${RG.join(",")}`);c5=t;let e=[];for(let r of Zze)rOe(r)&&e.push(r.namespace);S3.enable(e.join(","))}function Qgt(){return c5}var $ze={verbose:400,info:300,warning:200,error:100};function Pgt(t){let e=u5.extend(t);return tOe(u5,e),{error:o5(e,"error"),warning:o5(e,"warning"),info:o5(e,"info"),verbose:o5(e,"verbose")}}function tOe(t,e){e.log=(...r)=>{t.log(...r)}}function o5(t,e){let r=Object.assign(t.extend(e),{level:e});if(tOe(t,r),rOe(r)){let n=S3.disable();S3.enable(n+","+r.namespace)}return Zze.add(r),r}function rOe(t){return!!(c5&&$ze[t.level]<=$ze[c5])}function nOe(t){return RG.includes(t)}Jb.AzureLogger=u5;Jb.createClientLogger=Pgt;Jb.getLogLevel=Qgt;Jb.setLogLevel=eOe});var NG=h(v3=>{"use strict";Object.defineProperty(v3,"__esModule",{value:!0});var Kb=new WeakMap,p5=new WeakMap,N3=class t{constructor(){this.onabort=null,Kb.set(this,[]),p5.set(this,!1)}get aborted(){if(!p5.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return p5.get(this)}static get none(){return new t}addEventListener(e,r){if(!Kb.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Kb.get(this).push(r)}removeEventListener(e,r){if(!Kb.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=Kb.get(this),s=n.indexOf(r);s>-1&&n.splice(s,1)}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};function iOe(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=Kb.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),p5.set(t,!0)}var wG=class extends Error{constructor(e){super(e),t
Polling from: ${r.config.operationLocation}
Operation status: ${p}
2026-06-17 19:24:43 +00:00
Polling status: ${fOe.includes(p)?"Stopped":"Running"}`),p==="succeeded"){let l=o(u,r);if(l!==void 0)return{response:await e(l).catch(AOe({state:r,stateProxy:n,isOperationError:a})),status:p}}return{response:u,status:p}}async function mOe(t){let{poll:e,state:r,stateProxy:n,options:s,getOperationStatus:i,getResourceLocation:o,getOperationLocation:a,isOperationError:c,withOperationLocation:u,getPollingInterval:p,processResult:l,getError:A,updateState:f,setDelay:M,isDone:g,setErrorAsResult:y}=t,{operationLocation:O}=r.config;if(O!==void 0){let{response:C,status:q}=await Mzt({poll:e,getOperationStatus:i,state:r,stateProxy:n,operationLocation:O,getResourceLocation:o,isOperationError:c,options:s});if(bOe({status:q,response:C,state:r,stateProxy:n,isDone:g,processResult:l,getError:A,setErrorAsResult:y}),!fOe.includes(q)){let R=p?.(C);R&&M(R);let S=a?.(C,r);if(S!==void 0){let T=O!==S;r.config.operationLocation=S,u?.(S,T)}else u?.(O,!1)}f?.(r,C)}}function gOe(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}function zOe(t){return t.headers.location}function OOe(t){return t.headers["operation-location"]}function EOe(t){return t.headers["azure-asyncoperation"]}function mzt(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=o())!==null&&e!==void 0?e:s;default:return o()}function o(){switch(i){case"azure-async-operation":return;case"original-uri":return s;default:return r}}}function yOe(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t,i=OOe(e),o=EOe(e),a=gOe({operationLocation:i,azureAsyncOperation:o}),c=zOe(e),u=r?.toLocaleUpperCase();return a!==void 0?{mode:"OperationLocation",operationLocation:a,resourceLocation:mzt({requestMethod:u,location:c,requestPath:n,resourceLocationConfig:s})}:c!==void 0?{mode:"ResourceLocation",operationLocation:c}:u==="PUT"&&n?{mode:"Body",operationLocation:n}:void 0}function COe(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 UG(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 u2.verbose(`LRO: unrecognized operation status: ${e}`),e}}function gzt(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return COe({status:r,statusCode:t.statusCode})}function zzt(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 COe({status:i,statusCode:t.statusCode})}function UG(t){return t===202?"running":t<300?"succeeded":"failed"}function BOe({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?Ozt(new Date(e)):r*1e3}}function DOe(t){let e=t.flatResponse.error;if(!e){u2.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){u2.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}function Ozt(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}function qOe(t){let{response:e,state:r,operationLocation:n}=t;function s(){var o;switch((o=r.config.metadata)===null||o===void 0?void 0:o.mode){case void 0:return UG(e.rawResponse.statusCode);case"Body":return GG(e,r);default:return"running"}}let i=s();return i==="running"&&n===void 0?"succeeded":i}async function Ezt(t){let{stateProxy:e,resourceLocationConfig:r,processResult:n,lro:s,setErrorAsResult:i}=t;return MOe({init:async()=>{let o=await s.sendInitialRequest(),a=yOe({rawResponse:o.rawResponse,requestPath:s.requestPath,requestMethod:s.r
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:o=i,s=1;break;case 1:r[n++]=o<<2|(i&48)>>4,o=i,s=2;break;case 2:r[n++]=(o&15)<<4|(i&60)>>2,o=i,s=3;break;case 3:r[n++]=(o&3)<<6|i,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}sM.base64decode=iOt;function oOt(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=Hu[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=Hu[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=Hu[s|n>>6],e+=Hu[n&63],r=0;break}return r&&(e+=Hu[s],e+="=",r==1&&(e+="=")),e}sM.base64encode=oOt});var s3e=h(R5=>{"use strict";Object.defineProperty(R5,"__esModule",{value:!0});R5.utf8read=void 0;var eH=t=>String.fromCharCode.apply(String,t);function aOt(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,i,o=t.length;for(;e<o;)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(eH(n)),s=0);return r.length?(s&&r.push(eH(n.slice(0,s))),r.join("")):eH(n.slice(0,s))}R5.utf8read=aOt});var P3=h(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});nc.WireType=nc.mergeBinaryOptions=nc.UnknownFieldHandler=void 0;var cOt;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,i,o)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:i,data:o})},t.onWrite=(r,n,s)=>{for(let{no:i,wireType:o,data:a}of t.list(n))s.tag(i,o).raw(a)},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=r=>r&&Array.isArray(r[t.symbol])})(cOt=nc.UnknownFieldHandler||(nc.UnknownFieldHandler={}));function uOt(t,e){return Object.assign(Object.assign({},t),e)}nc.mergeBinaryOptions=uOt;var pOt;(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"})(pOt=nc.WireType||(nc.WireType={}))});var S5=h(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.varint32read=jn.varint32write=jn.int64toString=jn.int64fromString=jn.varint64write=jn.varint64read=void 0;function lOt(){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")}jn.varint64read=lOt;function AOt(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),c=(a?o|128:o)&255;if(r.push(c),!a)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 o=e>>>i,a=!!(o>>>7),c=(a?o|128:o)&255;if(r.push(c),!a)return}r.push(e>>>31&1)}}jn.varint64write=AOt;var w5=65536*65536;function dOt(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function i(o,a){let c=Number(t.slice(o,a));s*=r,n=n*r+c,n>=w5&&(s=s+(n/w5|0),n=n%w5)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}jn.int64fromString=dOt;function fOt(t,e){if(e>>>0<=2097151)return""+(w5*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,i=r+n*6777216+s*6710656,o=n+s*8147497,a=s*2,c=1e7;i>=c&&(o+=Math.floor(i/c),i%=c),o>=c&&(a+=Math.floor(o/c),o%=c);function u(p,l){let A=p?String(p):"";return l?"0000000".slice(A.length)+A:A}return u(a,0)+u(o,a)+u(i,1)}jn.int64toString=fOt;function hOt(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)}}jn.varint32write=hOt;function bOt(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.bu
`)}};sw.RpcError=qH});var RH=h(ow=>{"use strict";Object.defineProperty(ow,"__esModule",{value:!0});ow.mergeRpcOptions=void 0;var _3e=Z0();function W3t(t,e){if(!e)return t;let r={};iw(t,r),iw(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=_3e.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=_3e.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},iw(t.meta,r.meta),iw(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}ow.mergeRpcOptions=W3t;function iw(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}});var SH=h(f2=>{"use strict";Object.defineProperty(f2,"__esModule",{value:!0});f2.Deferred=f2.DeferredState=void 0;var oc;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(oc=f2.DeferredState||(f2.DeferredState={}));var wH=class{constructor(e=!0){this._state=oc.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!==oc.PENDING)throw new Error(`cannot resolve ${oc[this.state].toLowerCase()}`);this._resolve(e),this._state=oc.RESOLVED}reject(e){if(this.state!==oc.PENDING)throw new Error(`cannot reject ${oc[this.state].toLowerCase()}`);this._reject(e),this._state=oc.REJECTED}resolvePending(e){this._state===oc.PENDING&&this.resolve(e)}rejectPending(e){this._state===oc.PENDING&&this.reject(e)}};f2.Deferred=wH});var vH=h(aw=>{"use strict";Object.defineProperty(aw,"__esModule",{value:!0});aw.RpcOutputStreamController=void 0;var W3e=SH(),h2=Z0(),NH=class{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){h2.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){h2.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){h2.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(){h2.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:()=>{let e=this._itState;h2.assert(e,"bad state"),h2.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 W3e.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;h2.assert(n.state==W3e.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};aw.RpcOutputStreamController=NH});var TH=h(lM=>{"use strict";var L3t=lM&&lM.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(p){try{u(n.next(p))}catch(l){o(l)}}function c(p){try{u(n.throw(p))}catch(l){o(l)}}function u(p){p.done?i(p.value):s(p.value).then(a,c)}u((n=n.apply(t,e||[])).next())})};Object.defineProperty(lM,"__esModule",{value:!0});lM.UnaryCall=void 0;var FH=class{constructor(e,r,n,s,i,o,a){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.response=i,
You can add a runtime option to disable the check or this warning:
2026-06-17 19:24:43 +00:00
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function r4t(){Object.keys(Hw).forEach(function(t){delete Hw[t]})}});var Vw=h(uc=>{"use strict";uc.__esModule=!0;uc.HandlebarsEnvironment=oV;function Yye(t){return t&&t.__esModule?t:{default:t}}var C2=pn(),n4t=Hs(),sV=Yye(n4t),s4t=eV(),i4t=Xye(),o4t=rV(),Xw=Yye(o4t),a4t=nV(),c4t="4.7.9";uc.VERSION=c4t;var u4t=8;uc.COMPILER_REVISION=u4t;var p4t=7;uc.LAST_COMPATIBLE_COMPILER_REVISION=p4t;var l4t={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"};uc.REVISION_CHANGES=l4t;var iV="[object Object]";function oV(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},s4t.registerDefaultHelpers(this),i4t.registerDefaultDecorators(this)}oV.prototype={constructor:oV,logger:Xw.default,log:Xw.default.log,registerHelper:function(e,r){if(C2.toString.call(e)===iV){if(r)throw new sV.default("Arg not supported with multiple helpers");C2.extend(this.helpers,e)}else this.helpers[e]=r},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,r){if(C2.toString.call(e)===iV)C2.extend(this.partials,e);else{if(typeof r>"u")throw new sV.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,r){if(C2.toString.call(e)===iV){if(r)throw new sV.default("Arg not supported with multiple decorators");C2.extend(this.decorators,e)}else this.decorators[e]=r},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){a4t.resetLoggedProperties()}};var A4t=Xw.default.log;uc.log=A4t;uc.createFrame=C2.createFrame;uc.logger=Xw.default});var Kye=h((jw,Jye)=>{"use strict";jw.__esModule=!0;function aV(t){this.string=t}aV.prototype.toString=aV.prototype.toHTML=function(){return""+this.string};jw.default=aV;Jye.exports=jw.default});var Zye=h(cV=>{"use strict";cV.__esModule=!0;cV.wrapHelper=d4t;function d4t(t,e){if(typeof t!="function")return t;var r=function(){var s=arguments[arguments.length-1];return arguments[arguments.length-1]=e(s),t.apply(this,arguments)};return r}});var iCe=h(rA=>{"use strict";rA.__esModule=!0;rA.checkRevision=g4t;rA.template=z4t;rA.wrapProgram=$w;rA.resolvePartial=O4t;rA.invokePartial=E4t;rA.noop=nCe;function f4t(t){return t&&t.__esModule?t:{default:t}}function h4t(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}var b4t=pn(),DM=h4t(b4t),M4t=Hs(),Yu=f4t(M4t),Ju=Vw(),eCe=eV(),m4t=Zye(),tCe=nV();function g4t(t){var e=t&&t[0]||1,r=Ju.COMPILER_REVISION;if(!(e>=Ju.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Ju.COMPILER_REVISION))if(e<Ju.LAST_COMPATIBLE_COMPILER_REVISION){var n=Ju.REVISION_CHANGES[r],s=Ju.REVISION_CHANGES[e];throw new Yu.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 Yu.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}function z4t(t,e){if(!e)throw new Yu.default("No environment passed to template");if(!t||!t.main)throw new Yu.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(o,a,c){c.hash&&(a=DM.extend({},a,c.hash),c.ids&&(c.ids[0]=!0)),o=e.VM.resolvePartial.call(this,o,a,c),c.hooks=this.hooks,c.protoAccessControl=this.protoAccessControl;var u=e.VM.invokePartial.call(this,o,a,c);if(u==null&&e.compile&&(c.partials[c.name]=e.compile(o,t.compilerOptions,e),u=c.partials[c.name](a,c)),u!=null){if(c.indent){for(var p=u.split(`
2026-05-22 12:20:24 +00:00
`),l=0,A=p.length;l<A&&!(!p[l]&&l+1===A);l++)p[l]=c.indent+p[l];u=p.join(`
2026-06-17 19:24:43 +00:00
`)}return u}else throw new Yu.default("The partial "+c.name+" could not be compiled when running in runtime-only mode")}var s={strict:function(a,c,u){if(!a||!(c in a))throw new Yu.default('"'+c+'" not defined in '+a,{loc:u});return s.lookupProperty(a,c)},lookupProperty:function(a,c){var u=a[c];if(u==null||Object.prototype.hasOwnProperty.call(a,c)||tCe.resultIsAllowed(u,s.protoAccessControl,c))return u},lookup:function(a,c){for(var u=a.length,p=0;p<u;p++){var l=a[p]&&s.lookupProperty(a[p],c);if(l!=null)return l}},lambda:function(a,c){return typeof a=="function"?a.call(c):a},escapeExpression:DM.escapeExpression,invokePartial:n,fn:function(a){var c=t[a];return c.decorator=t[a+"_d"],c},programs:[],program:function(a,c,u,p,l){var A=this.programs[a],f=this.fn(a);return c||l||p||u?A=$w(this,a,f,c,u,p,l):A||(A=this.programs[a]=$w(this,a,f)),A},data:function(a,c){for(;a&&c--;)a=a._parent;return a},mergeIfNeeded:function(a,c){var u=a||c;return a&&c&&a!==c&&(u=DM.extend({},c,a)),u},nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function i(o){var a=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],c=a.data;i._setup(a),!a.partial&&t.useData&&(c=y4t(o,c));var u=void 0,p=t.useBlockParams?[]:void 0;t.useDepths&&(a.depths?u=o!=a.depths[0]?[o].concat(a.depths):a.depths:u=[o]);function l(A){return""+t.main(s,A,s.helpers,s.partials,c,p,u)}return l=sCe(t.main,l,s,a.depths||[],c,p),l(o,a)}return i.isTop=!0,i._setup=function(o){if(o.partial)s.protoAccessControl=o.protoAccessControl,s.helpers=o.helpers,s.partials=o.partials,s.decorators=o.decorators,s.hooks=o.hooks;else{var a={};rCe(a,e.helpers,s),rCe(a,o.helpers,s),s.helpers=a,t.usePartial&&(s.partials=s.mergeIfNeeded(o.partials,e.partials)),(t.usePartial||t.useDecorators)&&(s.decorators=DM.extend({},e.decorators,o.decorators)),s.hooks={},s.protoAccessControl=tCe.createProtoAccessControl(o);var c=o.allowCallsToHelperMissing||r;eCe.moveHelperToHooks(s,"helperMissing",c),eCe.moveHelperToHooks(s,"blockHelperMissing",c)}},i._child=function(o,a,c,u){if(t.useBlockParams&&!c)throw new Yu.default("must pass block params");if(t.useDepths&&!u)throw new Yu.default("must pass parent depths");return $w(s,o,t[o],a,0,c,u)},i}function $w(t,e,r,n,s,i,o){function a(c){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],p=o;return o&&c!=o[0]&&!(c===t.nullContext&&o[0]===null)&&(p=[c].concat(o)),r(t,c,t.helpers,t.partials,u.data||n,i&&[u.blockParams].concat(i),p)}return a=sCe(r,a,t,o,n,i),a.program=e,a.depth=o?o.length:0,a.blockParams=s||0,a}function O4t(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=Yw(r.partials,t)):r.name==="@partial-block"?t=Yw(r.data,"partial-block"):t=Yw(r.partials,r.name),t}function E4t(t,e,r){var n=Yw(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!==nCe&&(function(){r.data=Ju.createFrame(r.data);var i=r.fn;s=r.data["partial-block"]=function(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return c.data=Ju.createFrame(c.data),c.data["partial-block"]=n,i(a,c)},i.partials&&(r.partials=DM.extend({},r.partials,i.partials))})(),t===void 0&&s&&(t=s),t===void 0)throw new Yu.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}function nCe(){return""}function Yw(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}function y4t(t,e){return(!e||!("root"in e))&&(e=e?Ju.createFrame(e):{},e.root=t),e}function sCe(t,e,r,n,s,i){if(t.decorator){var o={};e=t.decorator(e,o,r,n&&n[0],s,i,n),DM.extend(e,o)}return e}function rCe(t,e,r){e&&Object.keys(e).forEach(function(n){var s=e[n];t[n]=C4t(s,r)})}function C4t(t,e){var r=e.lookupProperty;return m4t.wrapHelper(t,function(n){return n.lookupProperty=r,n})}});var uV=h((Jw,oCe)=>{"use strict";Jw.__esModule=!0;Jw.default=function(t){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var e=globalThis.Handlebars;t.noConflict=function(){return globalThis
`+this.lexer.showPosition()+`
2026-06-17 19:24:43 +00:00
Expecting `+Y.join(", ")+", got '"+(this.terminals_[R]||R)+"'":Se="Parse error on line "+(l+1)+": Unexpected "+(R==1?"end of input":"'"+(this.terminals_[R]||R)+"'"),this.parseError(Se,{text:this.lexer.match,token:this.terminals_[R]||R,line:this.lexer.yylineno,loc:y,expected:Y})}}if(L[0]instanceof Array&&L.length>1)throw new Error("Parse Error: multiple actions possible at state: "+T+", token: "+R);switch(L[0]){case 1:o.push(R),a.push(this.lexer.yytext),c.push(this.lexer.yylloc),o.push(L[1]),R=null,S?(R=S,S=null):(A=this.lexer.yyleng,p=this.lexer.yytext,l=this.lexer.yylineno,y=this.lexer.yylloc,f>0&&f--);break;case 2:if(De=this.productions_[L[1]][1],Be.$=a[a.length-De],Be._$={first_line:c[c.length-(De||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(De||1)].first_column,last_column:c[c.length-1].last_column},O&&(Be._$.range=[c[c.length-(De||1)].range[0],c[c.length-1].range[1]]),Me=this.performAction.call(Be,p,A,l,this.yy,L[1],a,c),typeof Me<"u")return Me;De&&(o=o.slice(0,-1*De*2),a=a.slice(0,-1*De),c=c.slice(0,-1*De)),o.push(this.productions_[L[1]][0]),a.push(Be.$),c.push(Be._$),$=u[o[o.length-2]][o[o.length-1]],o.push($);break;case 3:return!0}}return!0}},e=(function(){var n={EOF:1,parseError:function(i,o){if(this.yy.parser)this.yy.parser.parseError(i,o);else throw new Error(i)},setInput: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},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var o=i.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var o=i.length,a=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o-1),this.offset-=o;var c=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),a.length-1&&(this.yylineno-=a.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===c.length?this.yylloc.first_column:0)+c[c.length-a.length].length-a[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-o]),this},more:function(){return this._more=!0,this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput: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,"")},showPosition:function(){var i=this.pastInput(),o=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
2026-05-22 12:07:22 +00:00
`+o+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,o,a,c,u,p;this._more||(this.yytext="",this.match="");for(var l=this._currentRules(),A=0;A<l.length&&(a=this._input.match(this.rules[l[A]]),!(a&&(!o||a[0].length>o[0].length)&&(o=a,c=A,!this.options.flex)));A++);return o?(p=o[0].match(/(?:\r\n?|\n).*/g),p&&(this.yylineno+=p.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:p?p[p.length-1].length-p[p.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,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(o[0].length),this.matched+=o[0],i=this.performAction.call(this,this.yy,this,l[c],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.
2026-06-17 19:24:43 +00:00
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var i=this.next();return typeof i<"u"?i:this.lex()},begin:function(i){this.conditionStack.push(i)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(i){this.begin(i)}};return n.options={},n.performAction=function(i,o,a,c){function u(l,A){return o.yytext=o.yytext.substring(l,o.yyleng-A+l)}var p=c;switch(a){case 0:if(o.yytext.slice(-2)==="\\\\"?(u(0,1),this.begin("mu")):o.yytext.slice(-1)==="\\"?(u(0,1),this.begin("emu")):this.begin("mu"),o.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(u(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(o.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 o.yytext=u(1,2).replace(/\\"/g,'"'),80;break;case 32:return o.yytext=u(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return o.yytext=o.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},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 r.prototype=t,t.Parser=r,new r})();eS.default=F4t;fCe.exports=eS.default});var sS=h((nS,mCe)=>{"use strict";nS.__esModule=!0;function T4t(t){return t&&t.__esModule?t:{default:t}}var x4t=Hs(),fV=T4t(x4t);function tS(){this.parents=[]}tS.prototype={constructor:tS,mutating:!1,acceptKey:function(e,r){var n=this.accept(e[r]);if(this.mutating){if(n&&!tS.prototype[n.type])throw new fV.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+e.type);e[r]=n}},acceptRequired:function(e,r){if(this.acceptKey(e,r),!e[r])throw new fV.default(e.type+" requires "+r)},acceptArray:function(e){for(var r=0,n=e.length;r<n;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,n--)},accept:function(e){if(
`])}),e},each:function(e){for(var r=0,n=this.source.length;r<n;r++)e(this.source[r])},empty:function(){var e=this.currentLocation||{start:{}};return new I2(e.start.line,e.start.column,this.srcFile)},wrap:function(e){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return e instanceof I2?e:(e=xV(e,this,r),new I2(r.start.line,r.start.column,this.srcFile,e))},functionCall:function(e,r,n){return n=this.generateList(n),this.wrap([e,r?"."+r+"(":"(",n,")"])},quotedString:function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(e){var r=this,n=[];Object.keys(e).forEach(function(i){var o=xV(e[i],r);o!=="undefined"&&n.push([r.quotedString(i),":",o])});var s=this.generateList(n);return s.prepend("{"),s.add("}"),s},generateList:function(e){for(var r=this.empty(),n=0,s=e.length;n<s;n++)n&&r.add(","),r.add(xV(e[n],this));return r},generateArray:function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r}};AS.default=ZCe;e4e.exports=AS.default});var o4e=h((dS,i4e)=>{"use strict";dS.__esModule=!0;function s4e(t){return t&&t.__esModule?t:{default:t}}var r4e=Vw(),vBt=Hs(),WV=s4e(vBt),FBt=pn(),TBt=t4e(),n4e=s4e(TBt);function NM(t){this.value=t}function vM(){}vM.prototype={nameLookup:function(e,r){return this.internalNameLookup(e,r)},depthedLookup:function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},compilerInfo:function(){var e=r4e.COMPILER_REVISION,r=r4e.REVISION_CHANGES[e];return[e,r]},appendToBuffer:function(e,r,n){return FBt.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:n?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(r),")"]},lookupPropertyFunctionIsUsed:!1,compile: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,o=void 0,a=void 0,c=void 0,u=void 0;for(c=0,u=i.length;c<u;c++)o=i[c],this.source.currentLocation=o.loc,a=a||o.loc,this[o.opcode].apply(this,o.args);if(this.source.currentLocation=a,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new WV.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(`}
2026-06-17 19:24:43 +00:00
`),this.decorators=this.decorators.merge()));var p=this.createFunctionContext(s);if(this.isChild)return p;var l={compiler:this.compilerInfo(),main:p};this.decorators&&(l.main_d=this.decorators,l.useDecorators=!0);var A=this.context,f=A.programs,M=A.decorators;for(c=0,u=f.length;c<u;c++)l[c]=f[c],M[c]&&(l[c+"_d"]=M[c],l.useDecorators=!0);return this.environment.usePartial&&(l.usePartial=!0),this.options.data&&(l.useData=!0),this.useDepths&&(l.useDepths=!0),this.useBlockParams&&(l.useBlockParams=!0),this.options.compat&&(l.compat=!0),s?l.compilerOptions=this.options:(l.compiler=JSON.stringify(l.compiler),this.source.currentLocation={start:{line:1,column:0}},l=this.objectLiteral(l),r.srcName?(l=l.toStringWithSourceMap({file:r.destName}),l.map=l.map&&l.map.toString()):l=l.toString()),l},preamble:function(){this.lastContext=0,this.source=new n4e.default(this.options.srcName),this.decorators=new n4e.default(this.options.srcName)},createFunctionContext: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(c){var u=r.aliases[c];u.children&&u.referenceCount>1&&(n+=", alias"+ ++i+"="+c,u.children[0]="alias"+i)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var o=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&o.push("blockParams"),this.useDepths&&o.push("depths");var a=this.mergeSource(n);return e?(o.push(a),Function.apply(this,o)):this.source.wrap(["function(",o.join(","),`) {
`,a,"}"])},mergeSource:function(e){var r=this.environment.isSimple,n=!this.forceBuffer,s=void 0,i=void 0,o=void 0,a=void 0;return this.source.each(function(c){c.appendToBuffer?(o?c.prepend(" + "):o=c,a=c):(o&&(i?o.prepend("buffer += "):s=!0,a.add(";"),o=a=void 0),i=!0,r||(n=!1))}),n?o?(o.prepend("return "),a.add(";")):i||this.source.push('return "";'):(e+=", buffer = "+(s?"":this.initializeBuffer()),o?(o.prepend("return buffer + "),a.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(s?"":`;
`)),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return`
lookupProperty = container.lookupProperty || function(parent, propertyName) {
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
return parent[propertyName];
}
return undefined
}
2026-06-17 19:24:43 +00:00
`.trim()},blockValue: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))},ambiguousBlockValue: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),"}"])},appendContent:function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},append: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)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(e){this.lastContext=e},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext: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)},lookupBlockParam:function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},lookupData:function(e,r,n){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},resolvePath:function(e,r,n,s,i){var o=this;if(this.options.strict||this.options.assumeObjects){this.push(xBt(this.options.strict&&i,this,r,n,e));return}for(var a=r.length,c=function(p){o.replaceStack(function(l){var A=o.nameLookup(l,r[p],e);return s?[" && ",A]:[" != null ? ",A," : ",l]})},u=n;u<a;u++)c(u)},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(e,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof e=="string"?this.pushString(e):this.pushStackLiteral(e))},emptyHash:function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash: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))},pushString:function(e){this.pushStackLiteral(this.quotedString(e))},pushLiteral:function(e){this.pushStackLiteral(e)},pushProgram:function(e){e!=null?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},registerDecorator: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;"])},invokeHelper:function(e,r,n){var s=this.popStack(),i=this.setupHelper(e,r),o=[];n&&o.push(i.name),o.push(s),this.options.strict||o.push(this.aliasable("container.hooks.helperMissing"));var a=["(",this.itemsSeparatedBy(o,"||"),")"],c=this.source.functionCall(a,"call",i.callParams);this.push(c)},itemsSeparatedBy:function(e,r){var n=[];n.push(e[0]);for(var s=1;s<e.length;s++)n.push(r,e[s]);return n},invokeKnownHelper:function(e,r){var n=this.setupHelper(e,r);this.push(this.source.functionCall(n.name,"call",n.callParams))},invokeAmbiguous:function(e,r){this.useRegister("helper")
`,e};_0.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};_0.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};_0.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};_0.prototype.BlockStatement=_0.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};_0.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+" }}")};_0.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+" }}")};_0.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};_0.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};_0.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};_0.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};_0.prototype.StringLiteral=function(t){return'"'+t.value+'"'};_0.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};_0.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};_0.prototype.UndefinedLiteral=function(){return"UNDEFINED"};_0.prototype.NullLiteral=function(){return"NULL"};_0.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(", ")+"}"};_0.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var PV=h((sq0,d4e)=>{var bS=u4e().default,A4e=p4e();bS.PrintVisitor=A4e.PrintVisitor;bS.print=A4e.print;d4e.exports=bS;function l4e(t,e){var r=require("fs"),n=r.readFileSync(e,"utf8");t.exports=bS.compile(n)}typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=l4e,require.extensions[".hbs"]=l4e)});var OS=h(sA=>{"use strict";Object.defineProperty(sA,"__esModule",{value:!0});sA.Signature=sA.Envelope=void 0;sA.Envelope={fromJSON(t){return{payload:zS(t.payload)?Buffer.from(C4e(t.payload)):Buffer.alloc(0),payloadType:zS(t.payloadType)?globalThis.String(t.payloadType):"",signatures:globalThis.Array.isArray(t?.signatures)?t.signatures.map(e=>sA.Signature.fromJSON(e)):[]}},toJSON(t){let e={};return t.payload.length!==0&&(e.payload=B4e(t.payload)),t.payloadType!==""&&(e.payloadType=t.payloadType),t.signatures?.length&&(e.signatures=t.signatures.map(r=>sA.Signature.toJSON(r))),e}};sA.Signature={fromJSON(t){return{sig:zS(t.sig)?Buffer.from(C4e(t.sig)):Buffer.alloc(0),keyid:zS(t.keyid)?globalThis.String(t.keyid):""}},toJSON(t){let e={};return t.sig.length!==0&&(e.sig=B4e(t.sig)),t.keyid!==""&&(e.keyid=t.keyid),e}};function C4e(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}function B4e(t){return globalThis.Buffer.from(t).toString("base64")}function zS(t){return t!=null}});var q4e=h(ES=>{"use strict";Object.defineProperty(ES,"__esModule",{value:!0});ES.Timestamp=void 0;ES.Timestamp={fromJSON(t){return{seconds:D4e(t.seconds)?globalThis.String(t.seconds):"0",nanos:D4e(t.nanos)?globalThis.Number(t.nanos):0}},toJSON(t){let e={};return t.seconds!=="0"&&(e.seconds=t.seconds),t.nanos!==0&&(e.nanos=Math.round(t.nanos)),e}};function D4e(t){return t!=n
`).forEach(r=>{r.match(JDt)||r.match(KDt)||(e+=r)}),Buffer.from(e,"base64")}function eqt(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(`
2026-06-17 19:24:43 +00:00
`)}});var US=h(pA=>{"use strict";Object.defineProperty(pA,"__esModule",{value:!0});pA.SHA2_HASH_ALGOS=pA.RSA_SIGNATURE_ALGOS=pA.ECDSA_SIGNATURE_ALGOS=void 0;pA.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"};pA.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"};pA.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 fj=h(GS=>{"use strict";Object.defineProperty(GS,"__esModule",{value:!0});GS.RFC3161TimestampVerificationError=void 0;var dj=class extends Error{};GS.RFC3161TimestampVerificationError=dj});var ABe=h(hc=>{"use strict";var tqt=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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),rqt=hc&&hc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),nqt=hc&&hc.__importStar||(function(){var t=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)};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"&&tqt(r,e,n[s]);return rqt(r,e),r}})();Object.defineProperty(hc,"__esModule",{value:!0});hc.TSTInfo=void 0;var lBe=nqt(QM()),sqt=US(),iqt=fj(),hj=class{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 sqt.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=lBe.digest(this.messageImprintHashAlgorithm,e);if(!lBe.bufferEqual(r,this.messageImprintHashedMessage))throw new iqt.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};hc.TSTInfo=hj});var fBe=h(bc=>{"use strict";var oqt=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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),aqt=bc&&bc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),cqt=bc&&bc.__importStar||(function(){var t=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)};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"&&oqt(r,e,n[s]);return aqt(r,e),r}})();Object.defineProperty(bc,"__esModule",{value:!0});bc.RFC3161Timestamp=void 0;var uqt=QS(),bj=cqt(QM()),dBe=US(),IE=fj(),pqt=ABe(),lqt="1.2.840.113549.1.7.2",Aqt="1.2.840.113549.1.9.16.1.4",dqt="1.2.840.113549.1.9.4",Mj=class t{root;constructor(e){this.root=e}static parse(e){let r=uqt.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 signerDigestAlgorithm(){let e=this.signerDigestAlgorithmObj.subs[0].toOID();return dBe.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return dBe
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
2026-06-17 19:24:43 +00:00
\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 IDe=h(qDe=>{"use strict";var iY=pp().Buffer;qDe._dbcs=Ap;var fr=-1,DDe=-2,Xi=-10,mn=-1e3,em=new Array(256),VE=-1;for(RN=0;RN<256;RN++)em[RN]=fr;var RN;function Ap(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}
2026-06-17 19:24:43 +00:00
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))}},Mp=class{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?B5t:C5t);if(!s||n&&!RY.includes(s[1])||!Fqe.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=Ks(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(o=>o.digest===this.digest);return i||!1}return n.digest===this.digest?n:!1}toString(e){return e?.strict&&!(RY.includes(this.algorithm)&&this.digest.match(y5t)&&this.options.every(r=>r.match(D5t)))?"":`${this.algorithm}-${this.digest}${ty(this.options)}`}};function vqe(t,e,r,n){let s=t!=="",i=!1,o="",a=n.length-1;for(let u=0;u<a;u++){let p=Mp.prototype.toString.call(n[u],r);p&&(i=!0,o+=p,o+=e)}let c=Mp.prototype.toString.call(n[a],r);return c&&(i=!0,o+=c),s&&i?t+e+o:t+o}var V2=class{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 RY)this[s]&&(n=vqe(n,r,e,this[s]))}else for(let s of Object.keys(this))n=vqe(n,r,e,this[s]);return n}concat(e,r){let n=typeof e=="string"?e:ZE(e,r);return Ks(`${this.toString(r)} ${n}`,r)}hexDigest(){return Ks(this,{single:!0}).hexDigest()}merge(e,r){let n=Ks(e,r);for(let s in n)if(this[s]){if(!this[s].find(i=>n[s].find(o=>i.digest===o.digest)))throw new Error("hashes do not match, cannot update integrity")}else this[s]=n[s]}match(e,r){let n=Ks(e,r);if(!n)return!1;let s=n.pickAlgorithm(r,Object.keys(this));return!!s&&this[s].find(i=>n[s].find(o=>i.digest===o.digest))||!1}pickAlgorithm(e,r){let n=e?.pickAlgorithm||v5t,s=Object.keys(this);return r?.length&&(s=s.filter(i=>r.includes(i))),s.length?s.reduce((i,o)=>n(i,o)||i):null}};Dc.exports.parse=Ks;function Ks(t,e){if(!t)return null;if(typeof t=="string")return IY(t,e);if(t.algorithm&&t.digest){let r=new V2;return r[t.algorithm]=[t],IY(ZE(r,e),e)}else return IY(ZE(t,e),e)}function IY(t,e){if(e?.single)return new Mp(t,e);let r=t.trim().split(/\s+/).reduce((n,s)=>{let i=new Mp(s,e);if(i.algorithm&&i.digest){let o=i.algorithm;Object.keys(n).includes(o)||(n[o]=[]),n[o].push(i)}return n},new V2);return r.isEmpty()?null:r}Dc.exports.stringify=ZE;function ZE(t,e){return t.algorithm&&t.digest?Mp.prototype.toString.call(t,e):typeof t=="string"?ZE(Ks(t,e),e):V2.prototype.toString.call(t,e)}Dc.exports.fromHex=q5t;function q5t(t,e,r){let n=ty(r?.options);return Ks(`${e}-${Buffer.from(t,"hex").toString("base64")}${n}`,r)}Dc.exports.fromData=I5t;function I5t(t,e){let r=e?.algorithms||[...SY],n=ty(e?.options);return r.reduce((s,i)=>{let o=ey.createHash(i).update(t).digest("base64"),a=new Mp(`${i}-${o}${n}`,e);if(a.algorithm&&a.digest){let c=a.algorithm;s[c]||(s[c]=[]),s[c].push(a)}return s},new V2)}Dc.exports.fromStream=R5t;function R5t(t,e){let r=NY(e);return new Promise((n,s)=>{t.pipe(r),t.on("error",s),r.on("error",s);let i;r.on("integrity",o=>{i=o}),r.on("end",()=>n(i)),r.resume()})}Dc.exports.checkData=w5t;function w5t(t,e,r){if(e=Ks(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.pickAlgorithm(r),s=ey.createHash(n).update(t).digest("base64"),i=Ks({algorithm:n,digest:s}),o=i.match(e,r);if(r=r||{},o||!r.error)return o;if(typeof r.size=
2026-05-22 12:36:07 +00:00
Wanted: ${r.size}
2026-06-17 19:24:43 +00:00
Found: ${t.length}`);throw a.code="EBADSIZE",a.found=t.length,a.expected=r.size,a.sri=e,a}else{let a=new Error(`Integrity checksum failed when using ${n}: Wanted ${e}, but got ${i}. (${t.length} bytes)`);throw a.code="EINTEGRITY",a.found=i,a.expected=e,a.algorithm=n,a.sri=e,a}}Dc.exports.checkStream=S5t;function S5t(t,e,r){if(r=r||Object.create(null),r.integrity=e,e=Ks(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=NY(r);return new Promise((s,i)=>{t.pipe(n),t.on("error",i),n.on("error",i);let o;n.on("verified",a=>{o=a}),n.on("end",()=>s(o)),n.resume()})}Dc.exports.integrityStream=NY;function NY(t=Object.create(null)){return new wY(t)}Dc.exports.create=N5t;function N5t(t){let e=t?.algorithms||[...SY],r=ty(t?.options),n=e.map(ey.createHash);return{update:function(s,i){return n.forEach(o=>o.update(s,i)),this},digest:function(){return e.reduce((i,o)=>{let a=n.shift().digest("base64"),c=new Mp(`${o}-${a}${r}`,t);return i[c.algorithm]||(i[c.algorithm]=[]),i[c.algorithm].push(c),i},new V2)}}}function v5t(t,e){return Nqe.indexOf(t.toLowerCase())>=Nqe.indexOf(e.toLowerCase())?t:e}});var FY=h((QR0,Lqe)=>{var Tqe=OY(),xqe=qY(),F5t=ry(),_qe={shared:!1,ignoreCargoCult:!0},T5t={status:200,headers:{}},nm=t=>{let e={method:t.method,url:t.url,headers:{},compress:t.compress};return t.headers.forEach((r,n)=>{e.headers[n]=r}),e},Wqe=t=>{let e={status:t.status,headers:{}};return t.headers.forEach((r,n)=>{e.headers[n]=r}),e},vY=class{constructor({entry:e,request:r,response:n,options:s}){this.entry=e,this.request=nm(r),this.response=Wqe(n),this.options=s,this.policy=new Tqe(this.request,this.response,_qe),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 Tqe(nm(e),T5t,_qe).storable()}satisfies(e){let r=nm(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;let n=new xqe(this.request),s=new xqe(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?F5t.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=nm(e);return r.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){return this.policy.responseHeaders()}revalidationHeaders(e){let r=nm(e);return this.policy.revalidationHeaders(r)}revalidated(e,r){let n=nm(e),s=Wqe(r);return!this.policy.revalidatedPolicy(n,s).modified}};Lqe.exports=vY});var Pqe=h((PR0,Qqe)=>{var TY=class extends Error{constructor(e){super(`request to ${e} failed: cache mode is 'only-if-cached' but no cached response is available.`),this.code="ENOTCACHED"}};Qqe.exports={NotCachedError:TY}});var Jqe=h((kR0,Yqe)=>{"use strict";var kqe=typeof process=="object"&&process?process:{stdout:null,stderr:null},x5t=require("events"),Uqe=require("stream"),Gqe=require("string_decoder").StringDecoder,mp=Symbol("EOF"),gp=Symbol("maybeEmitEnd"),mA=Symbol("emittedEnd"),kN=Symbol("emittingEnd"),ny=Symbol("emittedError"),UN=Symbol("closed"),Hqe=Symbol("read"),GN=Symbol("flush"),Xqe=Symbol("flushChunk"),ts=Symbol("encoding"),zp=Symbol("decoder"),HN=Symbol("flowing"),sy=Symbol("paused"),sm=Symbol("resume"),X1=Symbol("bufferLength"),xY=Symbol("bufferPush"),_Y=Symbol("bufferShift"),vr=Symbol("objectMode"),Fr=Symbol("destroyed"),WY=Symbol("emitData"),Vqe=Symbol("emitEnd"),LY=Symbol("emitEnd2"),Op=Symbol("async"),iy=t=>Promise.resolve().then(t),jqe=global._MP_NO_ITERATOR_SYMBOLS_!=="1",_5t=jqe&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),W5t=jqe&&Symbol.iterator||Symbol("iterator not implemented"),L5t=t=>t==="end"||t==="finish"||t==="prefinish",Q5t=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayB
2026-05-22 12:36:07 +00:00
Wanted: ${this.expectedSize}
2026-06-17 19:24:43 +00:00
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))}},Dp=class{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?twt:ewt);if(!s||n&&!nJ.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=ei(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(o=>o.digest===this.digest);return i||!1}return n.digest===this.digest?n:!1}toString(e){return e?.strict&&!(nJ.includes(this.algorithm)&&this.digest.match(Z5t)&&this.options.every(r=>r.match(rwt)))?"":`${this.algorithm}-${this.digest}${Ay(this.options)}`}};function MIe(t,e,r,n){let s=t!=="",i=!1,o="",a=n.length-1;for(let u=0;u<a;u++){let p=Dp.prototype.toString.call(n[u],r);p&&(i=!0,o+=p,o+=e)}let c=Dp.prototype.toString.call(n[a],r);return c&&(i=!0,o+=c),s&&i?t+e+o:t+o}var Y2=class{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 nJ)this[s]&&(n=MIe(n,r,e,this[s]))}else for(let s of Object.keys(this))n=MIe(n,r,e,this[s]);return n}concat(e,r){let n=typeof e=="string"?e:py(e,r);return ei(`${this.toString(r)} ${n}`,r)}hexDigest(){return ei(this,{single:!0}).hexDigest()}merge(e,r){let n=ei(e,r);for(let s in n)if(this[s]){if(!this[s].find(i=>n[s].find(o=>i.digest===o.digest)))throw new Error("hashes do not match, cannot update integrity")}else this[s]=n[s]}match(e,r){let n=ei(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(o=>i.digest===o.digest))||!1}pickAlgorithm(e,r){let n=e?.pickAlgorithm||pwt,s=Object.keys(this).filter(i=>r?.length?r.includes(i):!0);return s.length?s.reduce((i,o)=>n(i,o)||i):null}};qc.exports.parse=ei;function ei(t,e){if(!t)return null;if(typeof t=="string")return rJ(t,e);if(t.algorithm&&t.digest){let r=new Y2;return r[t.algorithm]=[t],rJ(py(r,e),e)}else return rJ(py(t,e),e)}function rJ(t,e){if(e?.single)return new Dp(t,e);let r=t.trim().split(/\s+/).reduce((n,s)=>{let i=new Dp(s,e);if(i.algorithm&&i.digest){let o=i.algorithm;n[o]||(n[o]=[]),n[o].push(i)}return n},new Y2);return r.isEmpty()?null:r}qc.exports.stringify=py;function py(t,e){return t.algorithm&&t.digest?Dp.prototype.toString.call(t,e):typeof t=="string"?py(ei(t,e),e):Y2.prototype.toString.call(t,e)}qc.exports.fromHex=nwt;function nwt(t,e,r){let n=Ay(r?.options);return ei(`${e}-${Buffer.from(t,"hex").toString("base64")}${n}`,r)}qc.exports.fromData=swt;function swt(t,e){let r=e?.algorithms||[...iJ],n=Ay(e?.options);return r.reduce((s,i)=>{let o=ly.createHash(i).update(t).digest("base64"),a=new Dp(`${i}-${o}${n}`,e);if(a.algorithm&&a.digest){let c=a.algorithm;s[c]||(s[c]=[]),s[c].push(a)}return s},new Y2)}qc.exports.fromStream=iwt;function iwt(t,e){let r=oJ(e);return new Promise((n,s)=>{t.pipe(r),t.on("error",s),r.on("error",s);let i;r.on("integrity",o=>{i=o}),r.on("end",()=>n(i)),r.resume()})}qc.exports.checkData=owt;function owt(t,e,r){if(e=ei(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.pickAlgorithm(r),s=ly.createHash(n).update(t).digest("base64"),i=ei({algorithm:n,digest:s}),o=i.match(e,r);if(r=r||{},o||!r.error)return o;if(typeof r.size=="number"&&t.length!==r.size){le
2026-05-22 12:36:07 +00:00
Wanted: ${r.size}
2026-06-17 19:24:43 +00:00
Found: ${t.length}`);throw a.code="EBADSIZE",a.found=t.length,a.expected=r.size,a.sri=e,a}else{let a=new Error(`Integrity checksum failed when using ${n}: Wanted ${e}, but got ${i}. (${t.length} bytes)`);throw a.code="EINTEGRITY",a.found=i,a.expected=e,a.algorithm=n,a.sri=e,a}}qc.exports.checkStream=awt;function awt(t,e,r){if(r=r||Object.create(null),r.integrity=e,e=ei(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=oJ(r);return new Promise((s,i)=>{t.pipe(n),t.on("error",i),n.on("error",i);let o;n.on("verified",a=>{o=a}),n.on("end",()=>s(o)),n.resume()})}qc.exports.integrityStream=oJ;function oJ(t=Object.create(null)){return new sJ(t)}qc.exports.create=cwt;function cwt(t){let e=t?.algorithms||[...iJ],r=Ay(t?.options),n=e.map(ly.createHash);return{update:function(s,i){return n.forEach(o=>o.update(s,i)),this},digest:function(){return e.reduce((i,o)=>{let a=n.shift().digest("base64"),c=new Dp(`${o}-${a}${r}`,t);if(c.algorithm&&c.digest){let u=c.algorithm;i[u]||(i[u]=[]),i[u].push(c)}return i},new Y2)}}}var uwt=ly.getHashes(),mIe=["md5","whirlpool","sha1","sha224","sha256","sha384","sha512","sha3","sha3-256","sha3-384","sha3-512","sha3_256","sha3_384","sha3_512"].filter(t=>uwt.includes(t));function pwt(t,e){return mIe.indexOf(t.toLowerCase())>=mIe.indexOf(e.toLowerCase())?t:e}});var gIe=h((jR0,aJ)=>{(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}e.prototype.hash=function(r){var n,s,i,o,a;switch(a=r.length,this.len+=a,s=this.k1,i=0,this.rem){case 0:s^=a>i?r.charCodeAt(i++)&65535:0;case 1:s^=a>i?(r.charCodeAt(i++)&65535)<<8:0;case 2:s^=a>i?(r.charCodeAt(i++)&65535)<<16:0;case 3:s^=a>i?(r.charCodeAt(i)&255)<<24:0,s^=a>i?(r.charCodeAt(i++)&65280)>>8:0}if(this.rem=a+this.rem&3,a-=this.rem,a>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>=a);)s=r.charCodeAt(i++)&65535^(r.charCodeAt(i++)&65535)<<8^(r.charCodeAt(i++)&65535)<<16,o=r.charCodeAt(i++),s^=(o&255)<<24^(o&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 aJ<"u"?aJ.exports=e:this.MurmurHash3=e})()});var OIe=h(($R0,zIe)=>{"use strict";var lwt=gIe();zIe.exports=function(t){if(t){var e=new lwt(t);return("00000000"+e.result().toString(16)).slice(-8)}else return(Math.random().toString(16)+"0000000").slice(2,10)}});var cJ=h((YR0,EIe)=>{var Awt=require("path"),dwt=OIe();EIe.exports=function(t,e,r){return Awt.join(t,(e?e+"-":"")+dwt(r))}});var uJ=h((JR0,fwt)=>{fwt.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","caching","content-addressable","sri","sri hash","subresource integrity","cache","storage","store","file store","filesystem","disk cache","disk storage"],license
`+o.map(A=>{let f=JSON.stringify(A);return`${M6(f)} ${f}`}).join(`
`),c=async()=>{let A=Svt(Rc.join(t,"tmp"),n.tmpPrefix);return await QJ(Rc.dirname(A),{recursive:!0}),{target:A,moved:!1}},u=async A=>{if(!A.moved)return uwe(A.target,{recursive:!0,force:!0})},p=async A=>{await Ivt(A.target,a,{flag:"wx"}),await QJ(Rc.dirname(s),{recursive:!0}),await Tvt(A.target,s),A.moved=!0},l=await c();try{await p(l)}finally{await u(l)}return o.reverse().map(A=>m6(t,A,!0))}ti.exports.insert=pwe;async function pwe(t,e,r,n={}){let{metadata:s,size:i,time:o}=n,a=By(t,e),c={key:e,integrity:r&&wvt.stringify(r),time:o||Date.now(),size:i,metadata:s};try{await QJ(Rc.dirname(a),{recursive:!0});let u=JSON.stringify(c);await Bvt(a,`
${M6(u)} ${u}`)}catch(u){if(u.code==="ENOENT")return;throw u}return m6(t,c)}ti.exports.find=_vt;async function _vt(t,e){let r=By(t,e);try{return(await b6(r)).reduce((s,i)=>i&&i.key===e?m6(t,i):s,null)}catch(n){if(n.code==="ENOENT")return null;throw n}}ti.exports.delete=Wvt;function Wvt(t,e,r={}){if(!r.removeFully)return pwe(t,e,null,r);let n=By(t,e);return uwe(n,{recursive:!0,force:!0})}ti.exports.lsStream=lwe;function lwe(t){let e=PJ(t),r=new Rvt({objectMode:!0});return Promise.resolve().then(async()=>{let{default:n}=await Promise.resolve().then(()=>(h6(),f6)),s=await LJ(e);return await n(s,async i=>{let o=Rc.join(e,i),a=await LJ(o);await n(a,async c=>{let u=Rc.join(o,c),p=await LJ(u);await n(p,async l=>{let A=Rc.join(u,l);try{let M=(await b6(A)).reduce((g,y)=>(g.set(y.key,y),g),new Map);for(let g of M.values()){let y=m6(t,g);y&&r.write(y)}}catch(f){if(f.code==="ENOENT")return;throw f}},{concurrency:WJ})},{concurrency:WJ})},{concurrency:WJ}),r.end(),r}).catch(n=>r.emit("error",n)),r}ti.exports.ls=Lvt;async function Lvt(t){return(await lwe(t).collect()).reduce((r,n)=>(r[n.key]=n,r),{})}ti.exports.bucketEntries=b6;async function b6(t,e){let r=await Dvt(t,"utf8");return Qvt(r,e)}function Qvt(t){let e=[];return t.split(`
`).forEach(r=>{if(!r)return;let n=r.split(" ");if(!n[1]||M6(n[1])!==n[0])return;let s;try{s=JSON.parse(n[1])}catch{}s&&e.push(s)}),e}ti.exports.bucketDir=PJ;function PJ(t){return Rc.join(t,`index-v${Fvt}`)}ti.exports.bucketPath=By;function By(t,e){let r=Awe(e);return Rc.join.apply(Rc,[PJ(t)].concat(vvt(r)))}ti.exports.hashKey=Awe;function Awe(t){return dwe(t,"sha256")}ti.exports.hashEntry=M6;function M6(t){return dwe(t,"sha1")}function dwe(t,e){return Cvt.createHash(e).update(t).digest("hex")}function m6(t,e,r){return!e.integrity&&!r?null:{key:e.key,integrity:e.integrity,path:e.integrity?Nvt(t,e.integrity):void 0,size:e.size,time:e.time,metadata:e.metadata}}function LJ(t){return qvt(t).catch(e=>{if(e.code==="ENOENT"||e.code==="ENOTDIR")return[];throw e})}});var Mm=h(z6=>{"use strict";Object.defineProperty(z6,"__esModule",{value:!0});z6.LRUCache=void 0;var Pvt=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,hwe=new Set,kJ=typeof process=="object"&&process?process:{},bwe=(t,e,r,n)=>{typeof kJ.emitWarning=="function"?kJ.emitWarning(t,e,r,n):console.error(`[${r}] ${e}: ${t}`)},g6=globalThis.AbortController,fwe=globalThis.AbortSignal;if(typeof g6>"u"){fwe=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(n,s){this._onabort.push(s)}},g6=class{constructor(){e()}signal=new fwe;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=kJ.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,bwe("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))}}var kvt=t=>!hwe.has(t),zA=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),Mwe=t=>zA(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?bm:null:null,bm=class extends Array{constructor(e){super(e),this.fill(0)}},UJ=class t{heap;length;static#e=!1;static create(e){let r=Mwe(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]}},GJ=class t{#e;#t;#n;#r;#s;#i;#c;#a;get perf(){return this.#a}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#o;#l;#d;#A;#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.#d,keyList:e.#A,valList:e.#u,next:e.#b,prev:e.#O,get head(){return e.#M},get tail(){return e.#m},free:e.#B,isBackgroundFetch:r=>e.#f(r),backgroundFetch:(r,n,s,i)=>e.#U(r,n,s,i),moveToTail:r=>e.#_(r),indexes:r=>e.#w(r),rindexes:r=>e.#N(r),isStale:r=>e.#I(r)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#l}get size(){return this.#o}get fetchMethod(){return this.#i}get memoMethod(){return this.#c}get dispose(){return this.#n}get onInsert(){return this.#r}get disposeAfter(){return this.#s}constructor(e){let{max:r=0,ttl:n,ttlResolution:s=1,ttlAutopurge:i,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:c,dispose:u,onInsert:p,disposeAfter:l,noDisposeOnSet:A,noUpdateTTL:f,maxSize:M=0,maxEntrySize:g=0,sizeCalculation:y,fetchMethod:O,memoMethod:C,noDeleteOnFetchRejection:q,noDeleteOnStaleGet:R,allowStaleOnFetchRejection:S,allowStaleOnFetchAbort:T,ignoreFetchAbort:L,perf:j}=e;if(j!==void 0&&typeof j?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#a=j??Pvt,r!==
2026-05-22 12:36:07 +00:00
Wanted: ${t}
2026-06-17 19:24:43 +00:00
Found: ${e}`);return r.code="EINTEGRITY",r.expected=t,r.found=e,r}});var Lwe=h((dw0,sK)=>{"use strict";var Twe=hm(),xwe=Dy(),_we=Fwe(),CFt=oy(),{PassThrough:BFt}=HY(),DFt=$2(),Wwe=t=>({algorithms:["sha512"],...t});sK.exports=qFt;async function qFt(t,e,r,n={}){let{memoize:s}=n;n=Wwe(n);let i=await _we(t,r,n),o=await Twe.insert(t,e,i.integrity,{...n,size:i.size});return s&&xwe.put(t,o,r,n),i.integrity}sK.exports.stream=IFt;function IFt(t,e,r={}){let{memoize:n}=r;r=Wwe(r);let s,i,o,a,c=new DFt;if(n){let p=new BFt().on("collect",l=>{a=l});c.push(p)}let u=_we.stream(t,r).on("integrity",p=>{s=p}).on("size",p=>{i=p}).on("error",p=>{o=p});return c.push(u),c.push(new CFt({async flush(){if(!o){let p=await Twe.insert(t,e,s,{...r,size:i});n&&a&&xwe.put(t,p,a,r),c.emit("integrity",s),c.emit("size",i)}}})),c}});var Pwe=h(of=>{"use strict";Object.defineProperty(of,"__esModule",{value:!0});of.range=of.balanced=void 0;var RFt=(t,e,r)=>{let n=t instanceof RegExp?Qwe(t,r):t,s=e instanceof RegExp?Qwe(e,r):e,i=n!==null&&s!=null&&(0,of.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)}};of.balanced=RFt;var Qwe=(t,e)=>{let r=e.match(t);return r?r[0]:null},wFt=(t,e,r)=>{let n,s,i,o,a,c=r.indexOf(t),u=r.indexOf(e,c+1),p=c;if(c>=0&&u>0){if(t===e)return[c,u];for(n=[],i=r.length;p>=0&&!a;){if(p===c)n.push(p),c=r.indexOf(t,p+1);else if(n.length===1){let l=n.pop();l!==void 0&&(a=[l,u])}else s=n.pop(),s!==void 0&&s<i&&(i=s,o=u),u=r.indexOf(e,p+1);p=c<u&&c>=0?c:u}n.length&&o!==void 0&&(a=[i,o])}return a};of.range=wFt});var jwe=h(Dm=>{"use strict";Object.defineProperty(Dm,"__esModule",{value:!0});Dm.EXPANSION_MAX=void 0;Dm.expand=UFt;var kwe=Pwe(),Uwe="\0SLASH"+Math.random()+"\0",Gwe="\0OPEN"+Math.random()+"\0",oK="\0CLOSE"+Math.random()+"\0",Hwe="\0COMMA"+Math.random()+"\0",Xwe="\0PERIOD"+Math.random()+"\0",SFt=new RegExp(Uwe,"g"),NFt=new RegExp(Gwe,"g"),vFt=new RegExp(oK,"g"),FFt=new RegExp(Hwe,"g"),TFt=new RegExp(Xwe,"g"),xFt=/\\\\/g,_Ft=/\\{/g,WFt=/\\}/g,LFt=/\\,/g,QFt=/\\./g;Dm.EXPANSION_MAX=1e5;function iK(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}function PFt(t){return t.replace(xFt,Uwe).replace(_Ft,Gwe).replace(WFt,oK).replace(LFt,Hwe).replace(QFt,Xwe)}function kFt(t){return t.replace(SFt,"\\").replace(NFt,"{").replace(vFt,"}").replace(FFt,",").replace(TFt,".")}function Vwe(t){if(!t)return[""];let e=[],r=(0,kwe.balanced)("{","}",t);if(!r)return t.split(",");let{pre:n,body:s,post:i}=r,o=n.split(",");o[o.length-1]+="{"+s+"}";let a=Vwe(i);return i.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function UFt(t,e={}){if(!t)return[];let{max:r=Dm.EXPANSION_MAX}=e;return t.slice(0,2)==="{}"&&(t="\\{\\}"+t.slice(2)),vy(PFt(t),r,!0).map(kFt)}function GFt(t){return"{"+t+"}"}function HFt(t){return/^-?0\d/.test(t)}function XFt(t,e){return t<=e}function VFt(t,e){return t>=e}function vy(t,e,r){let n=[],s=(0,kwe.balanced)("{","}",t);if(!s)return[t];let i=s.pre,o=s.post.length?vy(s.post,e,!1):[""];if(/\$$/.test(s.pre))for(let a=0;a<o.length&&a<e;a++){let c=i+"{"+s.body+"}"+o[a];n.push(c)}else{let a=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),u=a||c,p=s.body.indexOf(",")>=0;if(!u&&!p)return s.post.match(/,(?!,).*\}/)?(t=s.pre+"{"+s.body+oK+s.post,vy(t,e,!0)):[t];let l;if(u)l=s.body.split(/\.\./);else if(l=Vwe(s.body),l.length===1&&l[0]!==void 0&&(l=vy(l[0],e,!1).map(GFt),l.length===1))return o.map(f=>s.pre+l[0]+f);let A;if(u&&l[0]!==void 0&&l[1]!==void 0){let f=iK(l[0]),M=iK(l[1]),g=Math.max(l[0].length,l[1].length),y=l.length===3&&l[2]!==void 0?Math.abs(iK(l[2])):1,O=XFt;M<f&&(y*=-1,O=VFt);let q=l.some(HFt);A=[];for(let R=f;O(R,M);R+=y){let S;if(c)S=String.fromCharCode(R),S==="\\"&&(S="");else if(S=String(R),q){let T=g-S.length;if(T>0){let L=new Array(T+1).join("0");R<0?S="-"+L+S.slice(1):S=L+S}}A.push(S)}}else{A=[];for(let f=0;f<l.length;f++)A.push.apply(A,vy(l[f],e,!1))}for(let f=0;f<A.length;f++)for(let M=0;M<o.length&&n.length<e;M++){let g=i+A[f]+o[M];(!r||u||g)&&n.push(g)}}return n}});var $w
globstar while`,e,A,r,f,M),this.matchOne(e.slice(A),r.slice(f),n))return this.debug("globstar found match!",A,c,M),!0;if(M==="."||M===".."||!s.dot&&M.charAt(0)==="."){this.debug("dot detected!",e,A,r,f);break}this.debug("globstar swallow a segment, and continue"),A++}return!!(n&&(this.debug(`
>>> no match, partial?`,e,A,r,f),A===c))}let g;if(typeof p=="string"?(g=l===p,this.debug("string match",p,l,g)):(g=p.test(l),this.debug("pattern match",p,l,g)),!g)return!1}if(o===c&&a===u)return!0;if(o===c)return n;if(a===u)return o===c-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return(0,ye.braceExpand)(this.pattern,this.options)}parse(e){(0,L6.assertValidPattern)(e);let r=this.options;if(e==="**")return ye.GLOBSTAR;if(e==="")return"";let n,s=null;(n=e.match(ETt))?s=r.dot?CTt:yTt:(n=e.match(ATt))?s=(r.nocase?r.dot?bTt:hTt:r.dot?fTt:dTt)(n[1]):(n=e.match(BTt))?s=(r.nocase?r.dot?qTt:DTt:r.dot?ITt:RTt)(n):(n=e.match(MTt))?s=r.dot?gTt:mTt:(n=e.match(zTt))&&(s=OTt);let i=nSe.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?STt:r.dot?NTt:vTt,s=new Set(r.nocase?["i"]:[]),i=e.map(c=>{let u=c.map(l=>{if(l instanceof RegExp)for(let A of l.flags.split(""))s.add(A);return typeof l=="string"?LTt(l):l===ye.GLOBSTAR?ye.GLOBSTAR:l._src});u.forEach((l,A)=>{let f=u[A+1],M=u[A-1];l!==ye.GLOBSTAR||M===ye.GLOBSTAR||(M===void 0?f!==void 0&&f!==ye.GLOBSTAR?u[A+1]="(?:\\/|"+n+"\\/)?"+f:u[A]=n:f===void 0?u[A-1]=M+"(?:\\/|\\/"+n+")?":f!==ye.GLOBSTAR&&(u[A-1]=M+"(?:\\/|\\/"+n+"\\/)"+f,u[A+1]=ye.GLOBSTAR))});let p=u.filter(l=>l!==ye.GLOBSTAR);if(this.partial&&p.length>=1){let l=[];for(let A=1;A<=p.length;A++)l.push(p.slice(0,A).join("/"));return"(?:"+l.join("|")+")"}return p.join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];i="^"+o+i+a+"$",this.partial&&(i="^(?:\\/|"+o+i.slice(1,-1)+a+")$"),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 o=s[s.length-1];if(!o)for(let a=s.length-2;!o&&a>=0;a--)o=s[a];for(let a=0;a<i.length;a++){let c=i[a],u=s;if(n.matchBase&&c.length===1&&(u=[o]),this.matchOne(u,c,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return ye.minimatch.defaults(e).Minimatch}};ye.Minimatch=af;var QTt=uK();Object.defineProperty(ye,"AST",{enumerable:!0,get:function(){return QTt.AST}});var PTt=pK();Object.defineProperty(ye,"escape",{enumerable:!0,get:function(){return PTt.escape}});var kTt=F6();Object.defineProperty(ye,"unescape",{enumerable:!0,get:function(){return kTt.unescape}});ye.minimatch.AST=nSe.AST;ye.minimatch.Minimatch=af;ye.minimatch.escape=uTt.escape;ye.minimatch.unescape=pTt.unescape});var ASe=h(En=>{"use strict";var UTt=En&&En.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(En,"__esModule",{value:!0});En.Minipass=En.isWritable=En.isReadable=En.isStream=void 0;var aSe=typeof process=="object"&&process?process:{stdout:null,stderr:null},MK=require("node:events"),lSe=UTt(require("node:stream")),GTt=require("node:string_decoder"),HTt=t=>!!t&&typeof t=="object"&&(t instanceof X6||t instanceof lSe.default||(0,En.isReadable)(t)||(0,En.isWritable)(t));En.isStream=HTt;var XTt=t=>!!t&&typeof t=="object"&&t instanceof MK.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==lSe.default.Writable.prototype.pipe;En.isReadable=XTt;var VTt=t=>!!t&&typeof t=="object"&&t instanceof MK.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function";En.isWritable=VTt;var Tp=Symbol("EOF"),xp=Symbol("maybeEmitEnd"),BA=Symbol("emittedEnd"),Q6=Symbol("emittingEnd"),Ty=Symbol("emittedError"),P6=Symbol("closed"),cSe=Symbol("read"),k6=Symbol("flush"),uSe=Symbol("flushChunk"),jo=Symbol("encoding"),qm=Symbol("decoder"),$1=Sy
2026-05-22 12:36:07 +00:00
\r
2026-06-17 19:24:43 +00:00
`);if(A===-1){Ev("have not received end of HTTP headers yet..."),i();return}let f=l.slice(0,A).toString("ascii").split(`\r
`),M=f.shift();if(!M)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let g=M.split(" "),y=+g[1],O=g.slice(2).join(" "),C={};for(let q of f){if(!q)continue;let R=q.indexOf(":");if(R===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${q}"`));let S=q.slice(0,R).toLowerCase(),T=q.slice(R+1).trimStart(),L=C[S];typeof L=="string"?C[S]=[L,T]:Array.isArray(L)?L.push(T):C[S]=T}Ev("got proxy server response: %o %o",M,C),o(),e({connect:{statusCode:y,statusText:O,headers:C},buffered:l})}t.on("error",c),t.on("end",a),i()})}Fm.parseProxyResponse=iWt});var vNe=h(Zi=>{"use strict";var oWt=Zi&&Zi.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),aWt=Zi&&Zi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),SNe=Zi&&Zi.__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)&&oWt(e,t,r);return aWt(e,t),e},NNe=Zi&&Zi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Zi,"__esModule",{value:!0});Zi.HttpsProxyAgent=void 0;var sC=SNe(require("net")),RNe=SNe(require("tls")),cWt=NNe(require("assert")),uWt=NNe(Hd()),pWt=GO(),lWt=require("url"),AWt=INe(),iC=(0,uWt.default)("https-proxy-agent"),yv=class extends pWt.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new lWt.URL(e):e,this.proxyHeaders=r?.headers??{},iC("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?wNe(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:"){iC("Creating `tls.Socket`: %o",this.connectOpts);let A=this.connectOpts.servername||this.connectOpts.host;s=RNe.connect({...this.connectOpts,servername:A&&sC.isIP(A)?void 0:A})}else iC("Creating `net.Socket`: %o",this.connectOpts),s=sC.connect(this.connectOpts);let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=sC.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`;if(n.username||n.password){let A=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(A).toString("base64")}`}i.Host=`${o}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let A of Object.keys(i))a+=`${A}: ${i[A]}\r
`;let c=(0,AWt.parseProxyResponse)(s);s.write(`${a}\r
`);let{connect:u,buffered:p}=await c;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200){if(e.once("socket",dWt),r.secureEndpoint){iC("Upgrading socket connection to TLS");let A=r.servername||r.host;return RNe.connect({...wNe(r,"host","path","port"),socket:s,servername:sC.isIP(A)?void 0:A})}return s}s.destroy();let l=new sC.Socket({writable:!1});return l.readable=!0,e.once("socket",A=>{iC("Replaying proxy buffer for failed request"),(0,cWt.default)(A.listenerCount("data")>0),A.push(p),A.push(null)}),l}};yv.protocols=["http","https"];Zi.HttpsProxyAgent=yv;function dWt(t){t.resume()}function wNe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var _Ne=h(Lp=>{"use strict";Object.defineProperty(Lp,"__esModule",{value:!0});var FNe=require("buffer"),df={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."};Lp.ERRORS=df;function fWt(t){if(!FNe.Buffer.isEncoding(t))throw new Error(df.INVALID_ENCODING)}Lp.checkEncoding=fWt;function TNe(t){return typeof t=="number"&&isFinite(t)&&mWt(t)}Lp.isFiniteInteger=TNe;function xNe(t,e){if(typeof t=="number"){if(!TNe(t)||t<0)throw new Error(e?df.INVALID_OFFSET:df.INVALID_LENGTH)}else throw new Error(e?df.INVALID_OFFSET_NON_NUMBER:df.INVALID_LENGTH_NON_NUMBER)}function hWt(t){xNe(t,!1)}Lp.checkLengthValue=hWt;function bWt(t){xNe(t,!0)}Lp.checkOffsetValue=bWt;function MWt(t,e){if(t<0||t>e.length)throw new Error(df.INVALID_TARGET_OFFSET)}Lp.checkTargetOffset=MWt;function mWt(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}function gWt(t){if(typeof BigInt>"u")throw new Error("Platform does not support JS BigInt type.");if(typeof FNe.Buffer.prototype[t]>"u")throw new Error(`Platform does not support Buffer.prototype.${t}.`)}Lp.bigIntAndBufferInt64Check=gWt});var LNe=h(oZ=>{"use strict";Object.defineProperty(oZ,"__esModule",{value:!0});var rt=_Ne(),WNe=4096,zWt="utf8",iZ=class t{constructor(e){if(this.length=0,this._encoding=zWt,this._writeOffset=0,this._readOffset=0,t.isSmartBufferOptions(e))if(e.encoding&&(rt.checkEncoding(e.encoding),this._encoding=e.encoding),e.size)if(rt.isFiniteInteger(e.size)&&e.size>0)this._buff=Buffer.allocUnsafe(e.size);else throw new Error(rt.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(rt.ERRORS.INVALID_SMARTBUFFER_BUFFER);else this._buff=Buffer.allocUnsafe(WNe);else{if(typeof e<"u")throw new Error(rt.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(WNe)}}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)}readInt8(e){return this._readNumberValue(Buffer.prototype.readInt8,1,e)}readInt16BE(e){return this._readNumberValue(Buffer.prototype.readInt16BE,2,e)}readInt16LE(e){return this._readNumberValue(Buffer.prototype.readInt16LE,2,e)}readInt32BE(e){return this._readNumberValue(Buffe
2026-05-22 12:36:07 +00:00
`).join(`
2026-06-17 19:24:43 +00:00
`+i),t.push(s+"m+"+xF.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=H7t()+e+" "+t[0]}function H7t(){return nr.inspectOpts.hideDate?"":new Date().toISOString()+" "}function X7t(...t){return process.stderr.write(TF.formatWithOptions(nr.inspectOpts,...t)+`
`)}function V7t(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function j7t(){return process.env.DEBUG}function $7t(t){t.inspectOpts={};let e=Object.keys(nr.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=nr.inspectOpts[e[r]]}xF.exports=nte()(nr);var{formatters:IFe}=xF.exports;IFe.o=function(t){return this.inspectOpts.colors=this.useColors,TF.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};IFe.O=function(t){return this.inspectOpts.colors=this.useColors,TF.inspect(t,this.inspectOpts)}});var ite=h((NN0,ste)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?ste.exports=qFe():ste.exports=RFe()});var SFe=h((vN0,wFe)=>{var Y7t=require("dns"),J7t=["if-modified-since","if-none-match","if-unmodified-since","if-match","if-range"],K7t=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:Y7t.lookup,...r.dns},r.cache=r.cache||"default",r.cache==="default"&&Object.keys(r.headers||{}).some(s=>J7t.includes(s.toLowerCase()))&&(r.cache="no-store"),r.cacheAdditionalHeaders=r.cacheAdditionalHeaders||[],r.cacheManager&&!r.cachePath&&(r.cachePath=r.cacheManager),r};wFe.exports=K7t});var ate=h((FN0,xFe)=>{var NFe=OY(),vFe=qY(),Z7t=ry(),FFe={shared:!1,ignoreCargoCult:!0},e9t={status:200,headers:{}},cg=t=>{let e={method:t.method,url:t.url,headers:{},compress:t.compress};return t.headers.forEach((r,n)=>{e.headers[n]=r}),e},TFe=t=>{let e={status:t.status,headers:{}};return t.headers.forEach((r,n)=>{e.headers[n]=r}),e},ote=class{constructor({entry:e,request:r,response:n,options:s}){this.entry=e,this.request=cg(r),this.response=TFe(n),this.options=s,this.policy=new NFe(this.request,this.response,FFe),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 NFe(cg(e),e9t,FFe).storable()}satisfies(e){let r=cg(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;let n=new vFe(this.request),s=new vFe(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?Z7t.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=cg(e);return r.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){return this.policy.responseHeaders()}revalidationHeaders(e){let r=cg(e);return this.policy.revalidationHeaders(r)}revalidated(e,r){let n=cg(e),s=TFe(r);return!this.policy.revalidatedPolicy(n,s).modified}};xFe.exports=ote});var WFe=h((TN0,_Fe)=>{var cte=class extends Error{constructor(e){super(`request to ${e} failed: cache mode is 'only-if-cached' but no cached response is available.`),this.code="ENOTCACHED"}};_Fe.exports={NotCachedError:cte}});var pte=h((xN0,LFe)=>{"use strict";var t9t=$2(),ute=class extends t9t{#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)}};LFe.exports=ute});var PFe=h((_N0,QFe)=>{var{URL:r9t,format:n9t}=require("url"),s9t={auth:!1,fragment:!1,search:!0,unicode:!1},i9t=t=>{let e=new r9t(t.url);return`make-fetch-happen:request-cache:${n9t(e,s9t)}`};QFe.exports=i9t});var kFe=h((WN0,o9t)=>{o9t.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-apply":"template-oss-apply --force"},repository:{type:"git",url:"git+https://github.com/npm/make-fetch-happen.git"},keywords:["http","request","fetch","mean girls","caching","c
`).forEach(r=>{r.match(jUt)||r.match($Ut)||(e+=r)}),Buffer.from(e,"base64")}function JUt(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(`
2026-06-17 19:24:43 +00:00
`)}});var cT=h(PA=>{"use strict";Object.defineProperty(PA,"__esModule",{value:!0});PA.SHA2_HASH_ALGOS=PA.RSA_SIGNATURE_ALGOS=PA.ECDSA_SIGNATURE_ALGOS=void 0;PA.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"};PA.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"};PA.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 Jte=h(uT=>{"use strict";Object.defineProperty(uT,"__esModule",{value:!0});uT.RFC3161TimestampVerificationError=void 0;var Yte=class extends Error{};uT.RFC3161TimestampVerificationError=Yte});var QTe=h(Gc=>{"use strict";var KUt=Gc&&Gc.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),ZUt=Gc&&Gc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),eGt=Gc&&Gc.__importStar||(function(){var t=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)};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"&&KUt(r,e,n[s]);return ZUt(r,e),r}})();Object.defineProperty(Gc,"__esModule",{value:!0});Gc.TSTInfo=void 0;var LTe=eGt(bg()),tGt=cT(),rGt=Jte(),Kte=class{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 tGt.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=LTe.digest(this.messageImprintHashAlgorithm,e);if(!LTe.bufferEqual(r,this.messageImprintHashedMessage))throw new rGt.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};Gc.TSTInfo=Kte});var kTe=h(Hc=>{"use strict";var nGt=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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),sGt=Hc&&Hc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),iGt=Hc&&Hc.__importStar||(function(){var t=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)};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"&&nGt(r,e,n[s]);return sGt(r,e),r}})();Object.defineProperty(Hc,"__esModule",{value:!0});Hc.RFC3161Timestamp=void 0;var oGt=iT(),Zte=iGt(bg()),PTe=cT(),NC=Jte(),aGt=QTe(),cGt="1.2.840.113549.1.7.2",uGt="1.2.840.113549.1.9.16.1.4",pGt="1.2.840.113549.1.9.4",e0e=class t{root;constructor(e){this.root=e}static parse(e){let r=oGt.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 signerDigestAlgorithm(){let e=this.signerDigestAlgorithmObj.subs[0].toOID();return PTe.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();r
2026-05-22 12:36:07 +00:00
2026-06-17 19:24:43 +00:00
`,qHt=/\u2014 (\S+) (\S+)\n/g;function IHt(t,e){let r=t.inclusionProof,n=I0e.fromString(r.checkpoint.envelope),s=OT.fromString(n.note);if(!RHt(n,e))throw new WC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return s}function RHt(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(n=>{let s=e.find(i=>fxe.crypto.bufferEqual(i.logID.subarray(0,4),n.keyHint)&&i.baseURL.match(n.name));return s?fxe.crypto.verify(r,s.publicKey,n.signature):!1})}var I0e=class t{note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(q0e))throw new WC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(q0e),n=e.slice(0,r+1),i=e.slice(r+q0e.length).matchAll(qHt),o=Array.from(i,a=>{let[,c,u]=a,p=Buffer.from(u,"base64");if(p.length<5)throw new WC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:c,keyHint:p.subarray(0,4),signature:p.subarray(4)}});if(o.length===0)throw new WC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(n,o)}},OT=class t{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 WC.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"),o=r.slice(3);return new t(n,s,i,o)}};LC.LogCheckpoint=OT});var bxe=h(N0e=>{"use strict";Object.defineProperty(N0e,"__esModule",{value:!0});N0e.verifyMerkleInclusion=NHt;var S0e=Zo(),R0e=kr(),wHt=Buffer.from([0]),SHt=Buffer.from([1]);function NHt(t,e){let r=t.inclusionProof,n=BigInt(r.logIndex),s=BigInt(e.logSize);if(n<0n||n>=s)throw new R0e.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${n}`});let{inner:i,border:o}=vHt(n,s);if(r.hashes.length!==i+o)throw new R0e.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let a=r.hashes.slice(0,i),c=r.hashes.slice(i),u=LHt(t.canonicalizedBody),p=THt(FHt(u,a,n),c);if(!S0e.crypto.bufferEqual(p,e.logHash))throw new R0e.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}function vHt(t,e){let r=xHt(t,e),n=_Ht(t>>BigInt(r));return{inner:r,border:n}}function FHt(t,e,r){return e.reduce((n,s,i)=>r>>BigInt(i)&BigInt(1)?w0e(s,n):w0e(n,s),t)}function THt(t,e){return e.reduce((r,n)=>w0e(n,r),t)}function xHt(t,e){return WHt(t^e-BigInt(1))}function _Ht(t){return t.toString(2).split("1").length-1}function WHt(t){return t===0n?0:t.toString(2).length}function w0e(t,e){return S0e.crypto.digest("sha256",SHt,t,e)}function LHt(t){return S0e.crypto.digest("sha256",wHt,t)}});var mxe=h(v0e=>{"use strict";Object.defineProperty(v0e,"__esModule",{value:!0});v0e.verifyTLogSET=kHt;var Mxe=Zo(),QHt=kr(),PHt=gg();function kHt(t,e){if(!(0,PHt.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(s=>{let i=UHt(t),o=Buffer.from(Mxe.json.canonicalize(i),"utf8"),a=t.inclusionPromise.signedEntryTimestamp;return Mxe.crypto.verify(o,s.publicKey,a)}))throw new QHt.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}function UHt(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")}}});var zxe=h(ET=>{"use strict";Object.defineProperty(ET,"__esModule",{value:!0});ET.verifyTLogBody=jHt;ET.verifyTLogInclusion=$Ht;var gxe=eee(),x0e=kr(),F0e=lxe(),T0e=Axe(),GHt=dxe(),HHt=hxe(),XHt=bxe(),VHt=mxe();function jHt(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 x0e.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${n}, received: ${s.kind}/${s.apiVersion}`});switch(r){case"dsse":if(n==F0e.DSSE_API_VERSION_V1)return(0,F0e.verifyDSSETLogBody)(s,e);{let i=gxe.Entry.fromJSON(s);return(0,F0e.verifyDSSETLogBodyV2)(i,e)}case"intoto":return(0,GHt.verifyIntotoTLogBody)(s,e);case"hashedrekord":if(n==T0e.HASHEDREKORD_API_VERSION_V1)return(0,T0e.verifyHashedRekordTLogBody)(s,e);{let i=gxe.Entry.fromJSON(s);return(0,T0e.verifyHashedRekordTLogBodyV2)(i,e)}default:throw new x0e.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}function $Ht(t,e){let r=!1;if(YHt(t)&&((0,VHt.verifyTLogSET)(t,e),r=!0),JHt(t)){let n=(0,HHt.verifyCheckpoint)(t,e);(0,XHt.verifyMerkleInclusion)(t,n),r=!0}if(!r)throw new x0e.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}function YHt(t){return t.inclusionPromise!==void 0}function JHt(t){return t.inclusionProof!==void 0}});var Bxe=h(yT=>{"use strict";Object.defineProperty(yT,"__esModule",{value:!0});yT.Verifier=void 0;var KHt=require("util"),zg=kr(),Oxe=oxe(),_0e=axe(),Exe=pxe(),yxe=zxe(),W0e=class{trustMaterial;options;constructor(e,r={}){this.trustMaterial=e,this.options={ctlogThreshold:r.ctlogThreshold??1,tlogThreshold:r.tlogThreshold??1,timestampThreshold:r.timestampThreshold??r.tsaThreshold??1,tsaThreshold:0}}verify(e,r){let n=this.verifyTimestamps(e),s=this.verifySigningKey(e,n);return
[`+w+"] ";for(W in arguments[0])i(arguments[0],W)&&(D+=W+": "+arguments[0][W]+", ");D=D.slice(0,-2)}else D=arguments[w];z.push(D)}L(d+`
Arguments: `+Array.prototype.slice.call(z).join("")+`
2026-06-17 19:24:43 +00:00
`+new Error().stack),m=!1}return b.apply(this,arguments)},b)}var Me={};function Be(d,b){e.deprecationHandler!=null&&e.deprecationHandler(d,b),Me[d]||(L(b),Me[d]=!0)}e.suppressDeprecationWarnings=!1,e.deprecationHandler=null;function K(d){return typeof Function<"u"&&d instanceof Function||Object.prototype.toString.call(d)==="[object Function]"}function De(d){var b,m;for(m in d)i(d,m)&&(b=d[m],K(b)?this[m]=b:this["_"+m]=b);this._config=d,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function $(d,b){var m=l({},d),z;for(z in b)i(b,z)&&(s(d[z])&&s(b[z])?(m[z]={},l(m[z],d[z]),l(m[z],b[z])):b[z]!=null?m[z]=b[z]:delete m[z]);for(z in d)i(d,z)&&!i(b,z)&&s(d[z])&&(m[z]=l({},m[z]));return m}function Y(d){d!=null&&this.set(d)}var Se;Object.keys?Se=Object.keys:Se=function(d){var b,m=[];for(b in d)i(d,b)&&m.push(b);return m};var te={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function ge(d,b,m){var z=this._calendar[d]||this._calendar.sameElse;return K(z)?z.call(b,m):z}function ot(d,b,m){var z=""+Math.abs(d),D=b-z.length,w=d>=0;return(w?m?"+":"":"-")+Math.pow(10,Math.max(0,D)).toString().substr(1)+z}var Wt=/(\[[^\[]*\])|(\\)?([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,Le=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,n0={},It={};function ae(d,b,m,z){var D=z;typeof z=="string"&&(D=function(){return this[z]()}),d&&(It[d]=D),b&&(It[b[0]]=function(){return ot(D.apply(this,arguments),b[1],b[2])}),m&&(It[m]=function(){return this.localeData().ordinal(D.apply(this,arguments),d)})}function ci(d){return d.match(/\[[\s\S]/)?d.replace(/^\[|\]$/g,""):d.replace(/\\/g,"")}function wn(d){var b=d.match(Wt),m,z;for(m=0,z=b.length;m<z;m++)It[b[m]]?b[m]=It[b[m]]:b[m]=ci(b[m]);return function(D){var w="",W;for(W=0;W<z;W++)w+=K(b[W])?b[W].call(D,d):b[W];return w}}function Bt(d,b){return d.isValid()?(b=q0(b,d.localeData()),n0[b]=n0[b]||wn(b),n0[b](d)):d.localeData().invalidDate()}function q0(d,b){var m=5;function z(D){return b.longDateFormat(D)||D}for(Le.lastIndex=0;m>=0&&Le.test(d);)d=d.replace(Le,z),Le.lastIndex=0,m-=1;return d}var Yf={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 Jf(d){var b=this._longDateFormat[d],m=this._longDateFormat[d.toUpperCase()];return b||!m?b:(this._longDateFormat[d]=m.match(Wt).map(function(z){return z==="MMMM"||z==="MM"||z==="DD"||z==="dddd"?z.slice(1):z}).join(""),this._longDateFormat[d])}var Vg="Invalid date";function nu(){return this._invalidDate}var N="%d",P=/\d{1,2}/;function k(d){return this._ordinal.replace("%d",d)}var J={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 Te(d,b,m,z){var D=this._relativeTime[m];return K(D)?D(d,b,m,z):D.replace(/%d/i,d)}function ut(d,b){var m=this._relativeTime[d>0?"future":"past"];return K(m)?m(b):m.replace(/%s/i,b)}var s0={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",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function He(d){return typeof d=="strin
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}m4.exports=$t0,m4.exports.__esModule=!0,m4.exports.default=m4.exports});var H7e=h((UL0,g4)=>{var Yt0=Rke(),Jt0=z7e(),Kt0=U7e(),Zt0=G7e();function e00(t,e){return Yt0(t)||Jt0(t,e)||Kt0(t,e)||Zt0()}g4.exports=e00,g4.exports.__esModule=!0,g4.exports.default=g4.exports});var V7e=h((GL0,X7e)=>{"use strict";var t00=gx().forEach,r00=d4(),n00=r00("forEach");X7e.exports=n00?[].forEach:function(e){return t00(this,e,arguments.length>1?arguments[1]:void 0)}});var $7e=h(()=>{"use strict";var s00=r0(),j7e=V7e();s00({target:"Array",proto:!0,forced:[].forEach!==j7e},{forEach:j7e})});var J7e=h((VL0,Y7e)=>{"use strict";$7e();var i00=oa();Y7e.exports=i00("Array","forEach")});var Z7e=h((jL0,K7e)=>{"use strict";var o00=J7e();K7e.exports=o00});var e9e=h(()=>{});var r9e=h((JL0,t9e)=>{"use strict";var a00=_g(),c00=In(),u00=ps(),p00=Z7e();e9e();var Tre=Array.prototype,l00={DOMTokenList:!0,NodeList:!0};t9e.exports=function(t){var e=t.forEach;return t===Tre||u00(Tre,t)&&e===Tre.forEach||c00(l00,a00(t))?p00:e}});var xre=h((KL0,n9e)=>{n9e.exports=r9e()});var s9e=h(()=>{"use strict";var A00=r0(),d00=rx().includes,f00=k0(),h00=b1e(),b00=f00(function(){return!Array(1).includes()});A00({target:"Array",proto:!0,forced:b00},{includes:function(e){return d00(this,e,arguments.length>1?arguments[1]:void 0)}});h00("includes")});var o9e=h((t80,i9e)=>{"use strict";s9e();var M00=oa();i9e.exports=M00("Array","includes")});var c9e=h((r80,a9e)=>{"use strict";var m00=oi(),g00=$p(),z00=u1(),O00=z00("match");a9e.exports=function(t){var e;return m00(t)&&((e=t[O00])!==void 0?!!e:g00(t)==="RegExp")}});var p9e=h((n80,u9e)=>{"use strict";var E00=c9e(),y00=TypeError;u9e.exports=function(t){if(E00(t))throw new y00("The method doesn't accept regular expressions");return t}});var A9e=h((s80,l9e)=>{"use strict";var C00=u1(),B00=C00("match");l9e.exports=function(t){var e=/./;try{"/./"[t](e)}catch{try{return e[B00]=!1,"/./"[t](e)}catch{}}return!1}});var f9e=h(()=>{"use strict";var D00=r0(),q00=D0(),I00=p9e(),R00=Tf(),d9e=tu(),w00=A9e(),S00=q00("".indexOf);D00({target:"String",proto:!0,forced:!w00("includes")},{includes:function(e){return!!~S00(d9e(R00(this)),d9e(I00(e)),arguments.length>1?arguments[1]:void 0)}})});var b9e=h((a80,h9e)=>{"use strict";f9e();var N00=oa();h9e.exports=N00("String","includes")});var g9e=h((c80,m9e)=>{"use strict";var M9e=ps(),v00=o9e(),F00=b9e(),_re=Array.prototype,Wre=String.prototype;m9e.exports=function(t){var e=t.includes;return t===_re||M9e(_re,t)&&e===_re.includes?v00:typeof t=="string"||t===Wre||M9e(Wre,t)&&e===Wre.includes?F00:e}});var O9e=h((u80,z9e)=>{"use strict";var T00=g9e();z9e.exports=T00});var z4=h((p80,E9e)=>{E9e.exports=O9e()});var Lre=h((l80,y9e)=>{"use strict";y9e.exports=`
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`});var D9e=h((A80,B9e)=>{"use strict";var x00=D0(),_00=Tf(),W00=tu(),Pre=Lre(),C9e=x00("".replace),L00=RegExp("^["+Pre+"]+"),Q00=RegExp("(^|[^"+Pre+"])["+Pre+"]+$"),Qre=function(t){return function(e){var r=W00(_00(e));return t&1&&(r=C9e(r,L00,"")),t&2&&(r=C9e(r,Q00,"$1")),r}};B9e.exports={start:Qre(1),end:Qre(2),trim:Qre(3)}});var v9e=h((d80,N9e)=>{"use strict";var w9e=D1(),P00=k0(),k00=D0(),U00=tu(),G00=D9e().trim,q9e=Lre(),O4=w9e.parseInt,I9e=w9e.Symbol,R9e=I9e&&I9e.iterator,S9e=/^[+-]?0x/i,H00=k00(S9e.exec),X00=O4(q9e+"08")!==8||O4(q9e+"0x16")!==22||R9e&&!P00(function(){O4(Object(R9e))});N9e.exports=X00?function(e,r){var n=G00(U00(e));return O4(n,r>>>0||(H00(S9e,n)?16:10))}:O4});var T9e=h(()=>{"use strict";var V00=r0(),F9e=v9e();V00({global:!0,forced:parseInt!==F9e},{parseInt:F9e})});var _9e=h((b80,x9e)=>{"use strict";T9e();var j00=ra();x9e.exports=j00.parseInt});var L9e=h((M80,W9e)=>{"use strict";var $00=_9e();W9e.exports=$00});var P9e=h((m80,Q9e)=>{Q9e.exports=L9e()});var Ix=h((g80,k9e)=>{k9e.exports=Fre()});var H9e=h((z80,G9e)=>{"use strict";var U9e=jC(),Y00=TypeError;G9e.exports=function(t,e){if(!delete t[e])throw new Y00("Cannot delete property "+U9e(e)+" of "+U9e(t))}});var j9e=h((O80,V9e)=>{"use strict";var X9e=o4(),J00=Math.floor,kre=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 o=J00(r/2),a=kre(X9e(t,0,o),e),c=kre(X9e(t,o),e),u=a.length,p=c.length,l=0,A=0;l<u||A<p;)t[l+A]=l<u&&A<p?e(a[l],c[A])<=0?a[l++]:c[A++]:l<u?a[l++]:c[A++];return t};V9e.exports=kre});var J9e=h((E80,Y9e)=>{"use strict";var K00=Rg(),$9e=K00.match(/firefox\/(\d+)/i);Y9e.exports=!!$9e&&+$9e[1]});var Z9e=h((y80,K9e)=>{"use strict";var Z00=Rg();K9e.exports=/MSIE|Trident/.test(Z00)});var rUe=h((C80,tUe)=>{"use strict";var e10=Rg(),eUe=e10.match(/AppleWebKit\/(\d+)\./);tUe.exports=!!eUe&&+eUe[1]});var lUe=h(()=>{"use strict";var t10=r0(),uUe=D0(),r10=_f(),n10=Zc(),nUe=Kp(),s10=H9e(),sUe=tu(),Ure=k0(),i10=j9e(),o10=d4(),iUe=J9e(),a10=Z9e(),oUe=wg(),aUe=rUe(),$A=[],cUe=uUe($A.sort),c10=uUe($A.push),u10=Ure(function(){$A.sort(void 0)}),p10=Ure(function(){$A.sort(null)}),l10=o10("sort"),pUe=!Ure(function(){if(oUe)return oUe<70;if(!(iUe&&iUe>3)){if(a10)return!0;if(aUe)return aUe<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++)$A.push({k:r+s,v:n})}for($A.sort(function(i,o){return o.v-i.v}),s=0;s<$A.length;s++)r=$A[s].k.charAt(0),t.charAt(t.length-1)!==r&&(t+=r);return t!=="DGBEFHACIJK"}}),A10=u10||!p10||!l10||!pUe,d10=function(t){return function(e,r){return r===void 0?-1:e===void 0?1:t!==void 0?+t(e,r)||0:sUe(e)>sUe(r)?1:-1}};t10({target:"Array",proto:!0,forced:A10},{sort:function(e){e!==void 0&&r10(e);var r=n10(this);if(pUe)return e===void 0?cUe(r):cUe(r,e);var n=[],s=nUe(r),i,o;for(o=0;o<s;o++)o in r&&c10(n,r[o]);for(i10(n,d10(e)),i=nUe(n),o=0;o<i;)r[o]=n[o++];for(;o<s;)s10(r,o++);return r}})});var dUe=h((q80,AUe)=>{"use strict";lUe();var f10=oa();AUe.exports=f10("Array","sort")});var hUe=h((I80,fUe)=>{"use strict";var h10=ps(),b10=dUe(),Gre=Array.prototype;fUe.exports=function(t){var e=t.sort;return t===Gre||h10(Gre,t)&&e===Gre.sort?b10:e}});var MUe=h((R80,bUe)=>{"use strict";var M10=hUe();bUe.exports=M10});var gUe=h((w80,mUe)=>{mUe.exports=MUe()});var zUe=h(()=>{});var yUe=h((v80,EUe)=>{"use strict";var m10=D1(),g10=k0(),OUe=m10.RegExp,z10=!g10(function(){var t=!0;try{OUe(".","d")}catch{t=!1}var e={},r="",n=t?"dgimsy":"gimsy",s=function(c,u){Object.defineProperty(e,c,{get:function(){return r+=u,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};t&&(i.hasIndices="d");for(var o in i)s(o,i[o]);var a=Object.getOwnPropertyDescriptor(OUe.prototype,"flags").get.call(e);return a!==n||r!==n});EUe.exports={correct:z10}});var BUe=h((F80,CUe)=>{"use strict";var O10=Jp();CUe.exports=function(){var t=O10(this),e=
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,a;return{s:function(){r=(0,N10.default)(t)},n:function(){var u=r.next();return i=u.done,u},e:function(u){o=!0,a=u},f:function(){try{!i&&r.return!=null&&r.return()}finally{if(o)throw a}}}}function Q10(t,e){var r;if(t){if(typeof t=="string")return WUe(t,e);var n=(0,po.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,x10.default)(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return WUe(t,e)}}function WUe(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}var l0="xregexp",Xf={astral:!1,namespacing:!1},U0={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},ru={},E4={},Pg={},Hre=[],kg="default",LUe="class",P10={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]/},k10=/\$(?:{([\w$]+)}|<([\w$]+)>|(\d\d?|[\s\S]))/g,U10=U0.exec.call(/()??/,"")[1]===void 0,G10=(0,Hf.default)(/x/)!==void 0,H10={},GUe=H10.toString;function Vre(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}var HUe=Vre("u"),jre=Vre("y"),XUe={g:!0,i:!0,m:!0,u:HUe,y:jre};function VUe(t,e,r,n,s){var i;if(t[l0]={captureNames:e},s)return t;if(t.__proto__)t.__proto__=ue.prototype;else for(var o in ue.prototype)t[o]=ue.prototype[o];return t[l0].source=r,t[l0].flags=n&&(0,L10.default)(i=n.split("")).call(i).join(""),t}function y4(t){return U0.replace.call(t,/([\s\S])(?=[\s\S]*\1)/g,"")}function jf(t,e){var r;if(!ue.isRegExp(t))throw new TypeError("Type RegExp expected");var n=t[l0]||{},s=X10(t),i="",o="",a=null,c=null;return e=e||{},e.removeG&&(o+="g"),e.removeY&&(o+="y"),o&&(s=U0.replace.call(s,new RegExp("[".concat(o,"]+"),"g"),"")),e.addG&&(i+="g"),e.addY&&(i+="y"),i&&(s=y4(s+i)),e.isInternalOnly||(n.source!==void 0&&(a=n.source),(0,Hf.default)(n)!=null&&(c=i?y4((0,Hf.default)(n)+i):(0,Hf.default)(n))),t=VUe(new RegExp(e.source||t.source,s),V10(t)?(0,po.default)(r=n.captureNames).call(r,0):null,a,c,e.isInternalOnly),t}function jUe(t){return(0,UUe.default)(t,16)}function $Ue(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||U0.test.call(/^\(\?[:=!]/,t.input.substr(t.index-3,3))||j10(t.input,t.index+t[0].length,r)?"":"(?:)"}function X10(t){return G10?(0,Hf.default)(t):U0.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(t))[1]}function V10(t){return!!(t[l0]&&t[l0].captureNames)}function YUe(t){return(0,UUe.default)(t,10).toString(16)}function j10(t,e,r){var n="\\(\\?#[^)]*\\)",s="#[^#\\n]*",i="[?*+]|{\\d+(?:,\\d*)?}";return U0.test.call((0,Vf.default)(r).call(r,"x")?/^(?:\s|#[^#\n]*|\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/:/^(?:\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/,(0,po.default)(t).call(t,e))}function $re(t,e){return GUe.call(t)==="[object ".concat(e,"]")}function JUe(t){for(;t.length<4;)t="0".concat(t);return t}function $10(t,e){if(y4(e)!==e)throw new SyntaxError("Invalid duplicate regex flag ".concat(e));t=U0.replace.call(t,/^\(\?([\w$]+)\)/,function(i,o){if(U0.test.call(/[gy]/,o))throw new SyntaxError("Cannot use flag g or y in mode modifier ".concat(i));return e=y4(e+o),""});var r=C4(e),n;try{for(r.s();!(n=r.n()).done;){var s=n.value;if(!XUe[s])throw new SyntaxError("Unknown regex flag ".concat(s))}}catch(i){r.e(i)}finally{r.f()}return{pattern:t,flags:e}}function KUe(t){var e={};return $re(t,"String")?((0,Xre.default)(ue).call(ue,t,/[^\s,]+/,function(r){e[r]=!0}),e):t}function QUe(t){if(!/^[\w$]$/.test(t))throw new Error("Flag must be
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,a;return{s:function(){r=(0,Sr0.default)(t)},n:function(){var u=r.next();return i=u.done,u},e:function(u){o=!0,a=u},f:function(){try{!i&&r.return!=null&&r.return()}finally{if(o)throw a}}}}function Qr0(t,e){var r;if(t){if(typeof t=="string")return WGe(t,e);var n=(0,xr0.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,Tr0.default)(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return WGe(t,e)}}function WGe(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}var Pr0=function(e){var r={},n=e._dec,s=e._hex,i=e._pad4;function o(A){return A.replace(/[- _]+/g,"").toLowerCase()}function a(A){var f=/^\\[xu](.+)/.exec(A);return f?n(f[1]):A.charCodeAt(A[0]==="\\"?1:0)}function c(A){var f="",M=-1;return(0,Wr0.default)(e).call(e,A,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,function(g){var y=a(g[1]);y>M+1&&(f+="\\u".concat(i(s(M+1))),y>M+2&&(f+="-\\u".concat(i(s(y-1))))),M=a(g[2]||g[1])}),M<65535&&(f+="\\u".concat(i(s(M+1))),M<65534&&(f+="-\\uFFFF")),f}function u(A){var f="b!";return r[A][f]||(r[A][f]=c(r[A].bmp))}function p(A,f){var M=r[A],g="";if(M.bmp&&!M.isBmpLast){var y;g=(0,Zre.default)(y="[".concat(M.bmp,"]")).call(y,M.astral?"|":"")}if(M.astral&&(g+=M.astral),M.isBmpLast&&M.bmp){var O;g+=(0,Zre.default)(O="".concat(M.astral?"|":"","[")).call(O,M.bmp,"]")}return f?"(?:(?!".concat(g,")(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[\0-\uFFFF]))"):"(?:".concat(g,")")}function l(A,f){var M=f?"a!":"a=";return r[A][M]||(r[A][M]=p(A,f))}e.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,function(A,f,M){var g="Invalid double negation ",y="Unknown Unicode token ",O="Unicode token missing data ",C="Astral mode required for Unicode token ",q="Astral mode does not support Unicode tokens within character classes",R=A[1]==="P"||!!A[2],S=(0,_r0.default)(M).call(M,"A"),T=o(A[4]||A[3]),L=r[T];if(A[1]==="P"&&A[2])throw new SyntaxError(g+A[0]);if(!r.hasOwnProperty(T))throw new SyntaxError(y+A[0]);if(L.inverseOf){if(T=o(L.inverseOf),!r.hasOwnProperty(T)){var j;throw new ReferenceError((0,Zre.default)(j="".concat(O+A[0]," -> ")).call(j,L.inverseOf))}L=r[T],R=!R}if(!(L.bmp||S))throw new SyntaxError(C+A[0]);if(S){if(f==="class")throw new SyntaxError(q);return l(T,R)}return f==="class"?R?u(T):L.bmp:"".concat((R?"[^":"[")+L.bmp,"]")},{scope:"all",optionalFlags:"A",leadChar:"\\"}),e.addUnicodeData=function(A){var f="Unicode token requires name",M="Unicode token has no character data ",g=Lr0(A),y;try{for(g.s();!(y=g.n()).done;){var O=y.value;if(!O.name)throw new Error(f);if(!(O.inverseOf||O.bmp||O.astral))throw new Error(M+O.name);r[o(O.name)]=O,O.alias&&(r[o(O.alias)]=O)}}catch(C){g.e(C)}finally{g.f()}e.cache.flush("patterns")},e._getUnicodeProperty=function(A){var f=o(A);return r[f]}};w4.default=Pr0;LGe.exports=w4.default});var kGe=h((tQ0,PGe)=>{PGe.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",bmp:"\uFE70-\uFEFF"},{name:"InArabic_Supplement",bmp:"\u0750-\u077F"},{name:"InArmenian",bmp:"\u0530-\u058F"},{name:"InArrows",bmp:"\u2190-\u21FF"},{name:"InAvestan",astral:"\uD802[\uDF00-\uDF3F]"},{name:"InBalinese",bmp:"\u1B00-\u1B7F"},{name:"InBamum",
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function iQ(t,e){if(process.env.GITHUB_OUTPUT||"")return sz("OUTPUT",lB(t,e));process.stdout.write(sQ.EOL),ua("set-output",{name:t},ca(e))}function VAe(t){process.exitCode=nQ.Failure,db(t)}function Du(){return process.env.RUNNER_DEBUG==="1"}function F(t){ua("debug",{},t)}function db(t,e={}){ua("error",b_(e),t instanceof Error?t.toString():t)}function Et(t,e={}){ua("warning",b_(e),t instanceof Error?t.toString():t)}function _(t){process.stdout.write(t+sQ.EOL)}function vd(t){m_("group",t)}function Fd(){m_("endgroup")}function cr(t,e){return Bot(this,void 0,void 0,function*(){vd(t);let r;try{r=yield e()}finally{Fd()}return r})}function Aq(t,e){if(process.env.GITHUB_STATE||"")return sz("STATE",lB(t,e));ua("save-state",{name:t},ca(e))}function jAe(t){return process.env[`STATE_${t}`]||""}var hw=x(require("fs"),1),MX=x(require("os"),1),mX=x(require("path"),1);var YAe=x(require("os"),1);function AO(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function JAe(t,e,r){let n=new oQ(t,e,r);process.stdout.write(n.toString()+YAe.EOL)}var $Ae="::",oQ=class{constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=$Ae+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}=${qot(s)}`)}}return e+=`${$Ae}${Dot(this.message)}`,e}};function Dot(t){return AO(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function qot(t){return AO(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var tde=x(require("os"),1);var ZAe=require("os"),dO=require("fs"),aQ=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(p){try{u(n.next(p))}catch(l){o(l)}}function c(p){try{u(n.throw(p))}catch(l){o(l)}}function u(p){p.done?i(p.value):s(p.value).then(a,c)}u((n=n.apply(t,e||[])).next())})},{access:Iot,appendFile:Rot,writeFile:wot}=dO.promises,KAe="GITHUB_STEP_SUMMARY";var cQ=class{constructor(){this._buffer=""}filePath(){return aQ(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[KAe];if(!e)throw new Error(`Unable to find environment variable for $${KAe}. Check if your runtime environment supports job summaries.`);try{yield Iot(e,dO.constants.R_OK|dO.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,o])=>` ${i}="${o}"`).join("");return r?`<${e}${s}>${r}</${e}>`:`<${e}${s}>`}write(e){return aQ(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?wot:Rot)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return aQ(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(ZAe.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(o=>this.wrap("li",o)).join(""),i=this.wrap(n,s);return this.addRaw(i).addEOL()}addTable(e){let r=e.map(s=>{let i=s.map(o=>{if(typeof o=="string")return this.wrap("td",o);let{header:a,data:c,colspan:u,rowspan:p}=o,l=a?"th":"td",A=Object.assign(Object.assign({},u&&{colspan:u}),p&&{rowspan:p});return this.wrap(l,c,A)}).join("");return this.wrap("tr",i)}).join(""),n=this.wrap("table",r);return this.addRaw(n).addEOL()}addDetails(e,r){let n=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(n).addEOL()}addImage(e,r,n){let{width:s,height:i}=n||{},o=Object.assign(Object.assign({},s&&
`),e=e.replace(/\r/g,`
2026-06-17 19:24:43 +00:00
`));let s=e.split(`
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new DO(i));return n.searchPaths.push(...UQ(n.patterns)),n})}static stat(e,r,n){return $Q(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield zb.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){Ei(`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 zb.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield zb.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){Ei(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};var Mpt=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(p){try{u(n.next(p))}catch(l){o(l)}}function c(p){try{u(n.throw(p))}catch(l){o(l)}}function u(p){p.done?i(p.value):s(p.value).then(a,c)}u((n=n.apply(t,e||[])).next())})};function vfe(t,e){return Mpt(this,void 0,void 0,function*(){return yield Nq.create(t,e)})}var jq=x(require("crypto"),1),Cb=x(require("fs"),1),Wd=x(require("path"),1),Bbe=x(ws(),1),Dbe=x(require("util"),1);var vO;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(vO||(vO={}));var en;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(en||(en={}));var Ss;(function(t){t.GNU="gnu",t.BSD="bsd"})(Ss||(Ss={}));var Xq=2,Vq=5e3,bP=5e3,MP=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Cbe=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,FO="cache.tar",mP="manifest.txt",Zu0=10*Math.pow(1024,3);var yb=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(p){try{u(n.next(p))}catch(l){o(l)}}function c(p){try{u(n.throw(p))}catch(l){o(l)}}function u(p){p.done?i(p.value):s(p.value).then(a,c)}u((n=n.apply(t,e||[])).next())})},Cdt=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(o){return new Promise(function(a,c){o=t[i](o),s(a,c,o.done,o.value)})}}function s(i,o,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a})},o)}},Bdt="1.0";function TO(){return yb(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=Wd.join(n,"actions","temp")}let r=Wd.join(e,jq.randomUUID());return yield Bu(r),r})}function qa(t){return Cb.statSync(t).size}function gP(t){return yb(this,void 0,void 0,function*(){var e,r,n,s,i;let o=[],a=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),c=yield vfe(t.join(`
`),{implicitDescendants:!1});try{for(var u=!0,p=Cdt(c.globGenerator()),l;l=yield p.next(),e=l.done,!e;u=!0){s=l.value,u=!1;let f=Wd.relative(a,s).replace(new RegExp(`\\${Wd.sep}`,"g"),"/");F(`Matched: ${f}`),f===""?o.push("."):o.push(`${f}`)}}catch(A){r={error:A}}finally{try{!u&&!e&&(n=p.return)&&(yield n.call(p))}finally{if(r)throw r.error}}return o})}function xO(t){return yb(this,void 0,void 0,function*(){return Dbe.promisify(Cb.unlink)(t)})}function qbe(t){return yb(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),F(`Checking ${e} ${r.join(" ")}`);try{yield qs(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){F(s.message)}return n=n.trim(),F(n),n})}function _O(){return yb(this,void 0,void 0,function*(){let t=yield qbe("zstd",["--quiet"]),e=Bbe.clean(t);return F(`zstd version: ${e}`),t===""?en.Gzip:en.ZstdWithoutLong})}function xl(t){return t===en.Gzip?vO.Gzip:vO.Zstd}function Ibe(){return yb(this,void 0,void 0,function*(){return Cb.existsSync(MP)?MP:(yield qbe("tar")).toLowerCase().includes("gnu tar")?ar("tar"):""})}function zP(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function Bb(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(Bdt),jq.createHash("sha256").update(n.join("|")).digest("hex")}function Rbe(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}var LO=x(require("http"),1),yP=x(require("https"),1);function OP(t){let e=t.protocol==="https:";if(Ddt(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 Yq(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new Yq(`http://${r}`)}else return}function Ddt(t){if(!t.hostname)return!1;let e=t.hostname;if(qdt(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(o=>o.trim().toUpperCase()).filter(o=>o))if(i==="*"||s.some(o=>o===i||o.endsWith(`.${i}`)||i.startsWith(".")&&o.endsWith(`${i}`)))return!0;return!1}function qdt(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}var Yq=class extends URL{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 _l=x(iz(),1),wbe=x(pb(),1),$0=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(p){try{u(n.next(p))}catch(l){o(l)}}function c(p){try{u(n.throw(p))}catch(l){o(l)}}function u(p){p.done?i(p.value):s(p.value).then(a,c)}u((n=n.apply(t,e||[])).next())})},R0;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="
${kdt.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function rI(t){return t instanceof rn?!0:Qd(t)&&t.name==="RestError"}function Ln(t,e){return Buffer.from(t,e)}var nI=x(require("node:http"),1),sI=x(require("node:https"),1),vP=x(require("node:zlib"),1),jbe=require("node:stream");var Bi=QO("ts-http-runtime");var Udt={};function PO(t){return t&&typeof t.pipe=="function"}function Vbe(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function $be(t){return t&&typeof t.byteLength=="number"}var iI=class extends jbe.Transform{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}},FP=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Ra("The operation was aborted. Request has already been canceled.");n=u=>{u.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let u=new So;Bi.info(`request to '${u.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let u=Vdt(a);u!==null&&e.headers.set("Content-Length",u)}let c;try{if(a&&e.onUploadProgress){let M=e.onUploadProgress,g=new iI(M);g.on("error",y=>{Bi.error("Error in upload progress",y)}),PO(a)?a.pipe(g):g.end(a),a=g}let u=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let p=Gdt(u),A={status:u.statusCode??0,headers:p,request:e};if(e.method==="HEAD")return u.resume(),A;c=o?Hdt(u,p):u;let f=e.onDownloadProgress;if(f){let M=new iI(f);M.on("error",g=>{Bi.error("Error in download progress",g)}),c.pipe(M),c=M}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(A.status)?A.readableStreamBody=c:A.bodyAsText=await Xdt(c),A}finally{if(e.abortSignal&&n){let u=Promise.resolve();PO(a)&&(u=Vbe(a));let p=Promise.resolve();PO(c)&&(p=Vbe(c)),Promise.all([u,p]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{Bi.warning("Error when cleaning up abortListener on httpRequest",l)})}}}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 a={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((c,u)=>{let p=i?nI.default.request(a,c):sI.default.request(a,c);p.once("error",l=>{u(new rn(l.message,{code:l.code??rn.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new Ra("The operation was aborted. Rejecting from abort signal callback while making request.");p.destroy(l),u(l)}),n&&PO(n)?n.pipe(p):n?typeof n=="string"||Buffer.isBuffer(n)?p.end(n):$be(n)?p.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(Bi.error("Unrecognized body type",n),u(new rn("Unrecognized body type"))):p.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?nI.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new nI.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return sI.default.globalAgent;let s=e.tlsSettings??Udt,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(Bi.info("No cached TLS Agent exist, creating a new Agent"),i=new sI.default.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function Gdt(t){let e=Ns();for(let r of Object.keys(t.headers)){let n=t.headers[r];Array.isArray(n)?n.length>0&&e.set(
`;return e}function Bft(t){return t instanceof Uint8Array?t.byteLength:II(t)?t.size===-1?void 0:t.size:void 0}function Dft(t){let e=0;for(let r of t){let n=Bft(r);if(n===void 0)return;e+=n}return e}async function qft(t,e,r){let n=[Ln(`--${r}`,"utf-8"),...e.flatMap(i=>[Ln(`\r
`,"utf-8"),Ln(Cft(i.headers),"utf-8"),Ln(`\r
`,"utf-8"),i.body,Ln(`\r
--${r}`,"utf-8")]),Ln(`--\r
\r
2026-06-17 19:24:43 +00:00
`,"utf-8")],s=Dft(n);s&&t.headers.set("Content-Length",s),t.body=await JMe(n)}var HO="multipartPolicy",Ift=70,Rft=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function wft(t){if(t.length>Ift)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Rft.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function wI(){return{name:HO,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,o]=s;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?wft(r):r=yft(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await qft(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function SI(){return tI()}var KMe=Kq({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),Wd0=KMe.logger;function Na(t){return KMe.createClientLogger(t)}var va=Na("core-rest-pipeline");function ek(t={}){return aI({logger:va.info,...t})}var tk=cI;function rk(t={}){return uI(t)}var NI=x(require("node:os"),1),vI=x(require("node:process"),1);function ZMe(){return"User-Agent"}async function eme(t){if(vI.default&&vI.default.versions){let e=`${NI.default.type()} ${NI.default.release()}; ${NI.default.arch()}`,r=vI.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})`)}}var FI="1.22.2";function Wft(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function tme(){return ZMe()}async function TI(t){let e=new Map;e.set("core-rest-pipeline",FI),await eme(e);let r=Wft(e);return t?`${t} ${r}`:r}var rme=tme(),nme="userAgentPolicy";function nk(t={}){let e=TI(t.userAgentPrefix);return{name:nme,async sendRequest(r,n){return r.headers.has(rme)||r.headers.set(rme,await e),n(r)}}}var xs=class extends Error{constructor(e){super(e),this.name="AbortError"}};function sk(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new xs(s??"The operation was aborted."))}function c(){n?.removeEventListener("abort",u)}function u(){r?.(),c(),a()}if(n?.aborted)return a();try{t(p=>{c(),i(p)},p=>{c(),o(p)})}catch(p){o(p)}n?.addEventListener("abort",u)})}var Uft="The delay was aborted.";function XO(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return sk(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??Uft})}function Ll(t){if(Qd(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}`}}function sme(t){return Qd(t)}function Fb(){return Ld()}var wt=Ud;var ime=Symbol("rawContent");function ok(t){return typeof t[ime]=="function"}function ome(t){return ok(t)?t[ime]():t}var xI=HO;function ak(){let t=wI();return{name:xI,sendRequest:async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)ok(n.body)&&(n.body=ome(n.body));return t.sendRequest(e,r)}}}var ck=pI;function uk(){return lI()}function pk(t={}){return fI(t)}function lk(){return hI()}function Ql(t){return $P(t)}function Ak(t,e){return BI(t,e)}var ame="setClientRequestIdPolicy";function dk(t="x-ms-client-request-id"){return{name:ame,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function fk(t){return DI(t)}function hk(t){return qI(t)}var Tb={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function cme(t={}){let e=new bk(t.parentContext);return t.span&&(e=e.setValue(Tb.span,t.span)),t.namespace&&(e=e.setValue(Tb.namespace,t.namespace)),e}var bk=class t{_contextMap;constructor(e){this._contextMap=e instanceof t
`&&t[i]!=="\r";i++)c+=t[i];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),i--),!dbt(c)){let l;return c.trim().length===0?l="Invalid space after '<'.":l="Tag '"+c+"' is an invalid name.",Y0("InvalidTag",l,nn(t,i))}let u=cbt(t,i);if(u===!1)return Y0("InvalidAttr","Attributes for '"+c+"' have open quote.",nn(t,i));let p=u.value;if(i=u.index,p[p.length-1]==="/"){let l=i-p.length;p=p.substring(0,p.length-1);let A=Hme(p,e);if(A===!0)n=!0;else return Y0(A.err.code,A.err.msg,nn(t,l+A.err.line))}else if(a)if(u.tagClosed){if(p.trim().length>0)return Y0("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",nn(t,o));if(r.length===0)return Y0("InvalidTag","Closing tag '"+c+"' has not been opened.",nn(t,o));{let l=r.pop();if(c!==l.tagName){let A=nn(t,l.tagStartPos);return Y0("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+A.line+", col "+A.col+") instead of closing tag '"+c+"'.",nn(t,o))}r.length==0&&(s=!0)}}else return Y0("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",nn(t,i));else{let l=Hme(p,e);if(l!==!0)return Y0(l.err.code,l.err.msg,nn(t,i-p.length+l.err.line));if(s===!0)return Y0("InvalidXml","Multiple possible root nodes found.",nn(t,i));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:o}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=Gme(t,i);continue}else if(t[i+1]==="?"){if(i=Ume(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=lbt(t,i);if(l==-1)return Y0("InvalidChar","char '&' is not expected.",nn(t,i));i=l}else if(s===!0&&!kme(t[i]))return Y0("InvalidXml","Extra text at the end",nn(t,i));t[i]==="<"&&i--}}else{if(kme(t[i]))continue;return Y0("InvalidChar","char '"+t[i]+"' is not expected.",nn(t,i))}if(n){if(r.length==1)return Y0("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",nn(t,r[0].tagStartPos));if(r.length>0)return Y0("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Y0("InvalidXml","Start tag expected.",1);return!0}function kme(t){return t===" "||t===" "||t===`
`||t==="\r"}function Ume(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 Y0("InvalidXml","XML declaration allowed only at the start of the document.",nn(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function Gme(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}var obt='"',abt="'";function cbt(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===obt||t[e]===abt)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}}var ubt=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Hme(t,e){let r=VI(t,ubt),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Y0("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",s3(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Y0("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",s3(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Y0("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",s3(r[s]));let i=r[s][2];if(!Abt(i))return Y0("InvalidAttr","Attribute '"+i+"' is an invalid name.",s3(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return Y0("InvalidAttr","Attribute '"+i+"' is repeated.",s3(r[s]))}return!0}function pbt(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}function lbt(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,pbt(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}function Y0(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function Abt(t){return Fk(t)}function dbt(t){return Fk(t)}function nn(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function s3(t){return t.startIndex+t[1].length}var Xme={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"},Vme={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntilde:"\xF1",Ograve:"\xD2",ograve:"\xF2",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",Oslash:"\xD8",oslash:"\xF8",Ugrave:"\xD9",ugrave:"\xF9",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",THORN:"\xDE",tho
`);let e=new Un("!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),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let u=t.charCodeAt(a+1);if(u===47){let p=Qb(t,">",a,"Closing Tag is not closed."),l=t.substring(a+2,p).trim();if(s.removeNSPrefix){let f=l.indexOf(":");f!==-1&&(l=l.substr(f+1))}l=kk(s.transformTagName,l,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let A=this.matcher.getCurrentTag();if(l&&s.unpairedTagsSet.has(l))throw new Error(`Unpaired tag can not be used as closing tag: </${l}>`);A&&s.unpairedTagsSet.has(A)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",a=p}else if(u===63){let p=Uk(t,a,!1,"?>");if(!p)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let l=this.buildAttributesMap(p.tagExp,this.matcher,p.tagName,!0);if(l){let A=l[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(A)||1),i.setXmlVersion(Number(A)||1)}if(!(s.ignoreDeclaration&&p.tagName==="?xml"||s.ignorePiTags)){let A=new Un(p.tagName);A.add(s.textNodeName,""),p.tagName!==p.tagExp&&p.attrExpPresent&&s.ignoreAttributes!==!0&&(A[":@"]=l),this.addChild(r,A,this.readonlyMatcher,a)}a=p.closeIndex+1}else if(u===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let p=Qb(t,"-->",a+4,"Comment is not closed.");if(s.commentPropName){let l=t.substring(a+4,p-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:l}])}a=p}else if(u===33&&t.charCodeAt(a+2)===68){let p=i.readDocType(t,a);this.entityDecoder.addInputEntities(p.entities),a=p.i}else if(u===33&&t.charCodeAt(a+2)===91){let p=Qb(t,"]]>",a,"CDATA is not closed.")-2,l=t.substring(a+9,p);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let A=this.parseTextData(l,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);A==null&&(A=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:l}]):r.add(s.textNodeName,A),a=p+2}else{let p=Uk(t,a,s.removeNSPrefix);if(!p){let T=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${T}"`)}let l=p.tagName,A=p.rawTagName,f=p.tagExp,M=p.attrExpPresent,g=p.closeIndex;if({tagName:l,tagExp:f}=kk(s.transformTagName,l,f,s),s.strictReservedNames&&(l===s.commentPropName||l===s.cdataPropName||l===s.textNodeName||l===s.attributesGroupName))throw new Error(`Invalid tag name: ${l}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let y=r;y&&s.unpairedTagsSet.has(y.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let O=!1;f.length>0&&f.lastIndexOf("/")===f.length-1&&(O=!0,l[l.length-1]==="/"?(l=l.substr(0,l.length-1),f=l):f=f.substr(0,f.length-1),M=l!==f);let C=null,q={},R;R=xbt(A),l!==e.tagname&&this.matcher.push(l,{},R),l!==f&&M&&(C=this.buildAttributesMap(f,this.matcher,l),C&&(q=Tbt(C,s))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let S=a;if(this.isCurrentNodeStopNode){let T="";if(O)a=p.closeIndex;else if(s.unpairedTagsSet.has(l))a=p.closeIndex;else{let j=this.readStopNodeData(t,A,g+1);if(!j)throw new Error(`Unexpected end of ${A}`);a=j.i,T=j.tagContent}let L=new Un(l);C&&(L[":@"]=C),L.add(s.textNodeName,T),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,L,this.readonlyMatcher,S)}else{if(O){({tagName:l,tagExp:f}=kk(s.transformTagName,l,f,s));let T=new Un(l);C&&(T[":@"]=C),this.addChild(r,T,this.readonlyMatcher,S),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(l)){let T=new Un(l);C&&(T[":@"]=C),this.addChild(r,T,this.readonlyMatcher,S),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=p.closeIndex;continue}else{let T=new Un(l);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(T[":@"]=C),this.addChild(r,T,this.readonlyMatcher,S),r=T}n="",a=g}}}else n+=t[a];return e.child};function k
`;function eMt(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if($k(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}function fge(t,e,r,n,s){return!r.sanitizeName||$d(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}function jk(t,e){let r="";e.format&&(r=Zbt);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let o=0;o<e.stopNodes.length;o++){let a=e.stopNodes[o];typeof a=="string"?n.push(new Ls(a)):a instanceof Ls&&n.push(a)}let s=eMt(t,e),i=new xa;return hge(t,e,r,i,n,s)}function hge(t,e,r,n,s,i){let o="",a=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let c=t.toString();return c=Vk(c,e),c}return""}for(let c=0;c<t.length;c++){let u=t[c],p=$k(u);if(p===void 0)continue;let A=p===e.textNodeName||p===e.cdataPropName||p===e.commentPropName||p[0]==="?"?p:fge(p,!1,e,n,i),f=tMt(u[":@"],e);n.push(A,f);let M=nMt(n,s);if(A===e.textNodeName){let q=u[p];M||(q=e.tagValueProcessor(A,q),q=Vk(q,e)),a&&(o+=r),o+=q,a=!1,n.pop();continue}else if(A===e.cdataPropName){a&&(o+=r);let q=u[p][0][e.textNodeName],R=eR(q);o+=`<![CDATA[${R}]]>`,a=!1,n.pop();continue}else if(A===e.commentPropName){let q=u[p][0][e.textNodeName],R=ZI(q);o+=r+`<!--${R}-->`,a=!0,n.pop();continue}else if(A[0]==="?"){let q=dge(u[":@"],e,M,n,i);o+=(A==="?xml"?"":r)+`<${A}${q}?>`,a=!0,n.pop();continue}let g=r;g!==""&&(g+=e.indentBy);let y=dge(u[":@"],e,M,n,i),O=r+`<${A}${y}`,C;M?C=bge(u[p],e):C=hge(u[p],e,g,n,s,i),e.unpairedTags.indexOf(A)!==-1?e.suppressUnpairedNode?o+=O+">":o+=O+"/>":(!C||C.length===0)&&e.suppressEmptyNode?o+=O+"/>":C&&C.endsWith(">")?o+=O+`>${C}${r}</${A}>`:(o+=O+">",C&&r!==""&&(C.includes("/>")||C.includes("</"))?o+=r+e.indentBy+C+r:o+=C,o+=`</${A}>`),a=!0,n.pop()}return o}function tMt(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]=Ul(t[s]),n=!0}return n?r:null}function bge(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=$k(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 o=rMt(s[":@"],e),a=bge(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function rMt(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)}="${Ul(s)}"`}return r}function $k(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}}function dge(t,e,r,n,s){let i="";if(t&&!e.ignoreAttributes)for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;let a=o.substr(e.attributeNamePrefix.length),c=r?a:fge(a,!0,e,n,s),u;r?u=t[o]:(u=e.attributeValueProcessor(o,t[o]),u=Vk(u,e)),u===!0&&e.suppressBooleanAttributes?i+=` ${c}`:i+=` ${c}="${Ul(u)}"`}return i}function nMt(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}function Vk(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}function Yk(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}var sMt={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","
`,this.newLine=`
2026-06-17 19:24:43 +00:00
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function iMt(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"}function Jk(t,e,r,n,s){return!r.sanitizeName||$d(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}Hn.prototype.build=function(t){if(this.options.preserveOrder)return jk(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new xa,r=iMt(t,this.options);return this.j2x(t,0,e,r).val}};Hn.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 o=this.options.jPath?r.toString():r,a=this.checkStopNode(r);for(let c in t){if(!Object.prototype.hasOwnProperty.call(t,c))continue;let p=c===this.options.textNodeName||c===this.options.cdataPropName||c===this.options.commentPropName||this.options.attributesGroupName&&c===this.options.attributesGroupName||this.isAttribute(c)||c[0]==="?"?c:Jk(c,!1,this.options,r,n);if(typeof t[c]>"u")this.isAttribute(c)&&(i+="");else if(t[c]===null)this.isAttribute(c)||p===this.options.cdataPropName||p===this.options.commentPropName?i+="":p[0]==="?"?i+=this.indentate(e)+"<"+p+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+p+"/"+this.tagEndChar;else if(t[c]instanceof Date)i+=this.buildTextValNode(t[c],p,"",e,r);else if(typeof t[c]!="object"){let l=this.isAttribute(c);if(l&&!this.ignoreAttributesFn(l,o)){let A=Jk(l,!0,this.options,r,n);s+=this.buildAttrPairStr(A,""+t[c],a)}else if(!l)if(c===this.options.textNodeName){let A=this.options.tagValueProcessor(c,""+t[c]);i+=this.replaceEntitiesValue(A)}else{r.push(p);let A=this.checkStopNode(r);if(r.pop(),A){let f=""+t[c];f===""?i+=this.indentate(e)+"<"+p+this.closeTag(p)+this.tagEndChar:i+=this.indentate(e)+"<"+p+">"+f+"</"+p+this.tagEndChar}else i+=this.buildTextValNode(t[c],p,"",e,r)}}else if(Array.isArray(t[c])){let l=t[c].length,A="",f="";for(let M=0;M<l;M++){let g=t[c][M];if(!(typeof g>"u"))if(g===null)p[0]==="?"?i+=this.indentate(e)+"<"+p+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+p+"/"+this.tagEndChar;else if(typeof g=="object")if(this.options.oneListGroup){r.push(p);let y=this.j2x(g,e+1,r,n);r.pop(),A+=y.val,this.options.attributesGroupName&&g.hasOwnProperty(this.options.attributesGroupName)&&(f+=y.attrStr)}else A+=this.processTextOrObjNode(g,p,e,r,n);else if(this.options.oneListGroup){let y=this.options.tagValueProcessor(p,g);y=this.replaceEntitiesValue(y),A+=y}else{r.push(p);let y=this.checkStopNode(r);if(r.pop(),y){let O=""+g;O===""?A+=this.indentate(e)+"<"+p+this.closeTag(p)+this.tagEndChar:A+=this.indentate(e)+"<"+p+">"+O+"</"+p+this.tagEndChar}else A+=this.buildTextValNode(g,p,"",e,r)}}this.options.oneListGroup&&(A=this.buildObjectNode(A,p,f,e)),i+=A}else if(this.options.attributesGroupName&&c===this.options.attributesGroupName){let l=Object.keys(t[c]),A=l.length;for(let f=0;f<A;f++){let M=Jk(l[f],!0,this.options,r,n);s+=this.buildAttrPairStr(M,""+t[c][l[f]],a)}}else i+=this.processTextOrObjNode(t[c],p,e,r,n)}return{attrStr:s,val:i}};Hn.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+'="'+Ul(e)+'"'};function oMt(t,e,r,n,s){let i=this.extractAttributes(t);if(n.push(e,i),this.checkStopNode(n)){let c=this.buildRawContent(t),u=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(c,e,u,r)}let a=this.j2x(t,r+1,n,s);return n.pop(),e[0]==="?"?this.buildTextValNode("",e,a.attrStr,r,n):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,a.attrStr,r,n):this.buildObjectNode(a.val,e,a.attrStr,r)}Hn.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e
`)+`
2026-06-17 19:24:43 +00:00
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(Pe.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===Pe.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(Pe.PREFIX_FOR_STORAGE));r.sort((s,i)=>lR(s.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((s,i,o)=>!(i>0&&s.name.toLowerCase()===o[i-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=cR(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=uR(e.url),i={};if(s){let o=[];for(let a in s)if(Object.prototype.hasOwnProperty.call(s,a)){let c=a.toLowerCase();i[c]=s[a],o.push(c)}o.sort();for(let a of o)n+=`
${a}:${decodeURIComponent(i[a])}`}return n}};var w0=class extends Kd{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new A3(e,r,this)}computeHMACSHA256(e){return(0,Cge.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var z1=Na("storage-common");var Ri;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Ri||(Ri={}));var Hl={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Ri.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},hMt=new xs("The operation was aborted."),d3=class extends _a{retryOptions;constructor(e,r,n=Hl){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:Hl.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):Hl.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:Hl.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:Hl.maxRetryDelayInMs):Hl.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:Hl.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:Hl.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=aR(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=Gl(s.url,Tu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(z1.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,o))return o;r=r||!i&&o.status===404}catch(a){if(z1.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,n,o,a))throw a}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return z1.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 o of i)if(s.name.toUpperCase().includes(o)||s.message.toUpperCase().includes(o)||s.code&&s.code.toString().toUpperCase()===o)return z1.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(n||s){let o=n?n.status:s?s.statusCode:0;if(!e&&o===404)return z1.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return z1.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(Pe.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(z1.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 Ri.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Ri.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return z1.info(`RetryPolicy: Delay for ${s}ms`),pR(s,n,hMt)}};var f3=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new d3(e,r,this.retryOptions)}};var bMt="storageBrowserPolicy";function Bge(){return{name:bMt,async sendRequest(t,e){return wt||((t.method==="GET"||t.method==="HEAD")&&(t.url=Gl(t.url,Tu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(Pe.COOKIE),t.headers.delete(Pe.CONTENT_LENGTH)),e(t)}}}var MMt="StorageCorrectContentLengthPolicy";function Dge(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(Pe.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:MMt,async send
`)+`
2026-06-17 19:24:43 +00:00
`+n(i)+s(i),a=(0,Ige.createHmac)("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(Pe.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===Pe.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[c,u]of i.headers)c.toLowerCase().startsWith(Pe.PREFIX_FOR_STORAGE)&&o.push({name:c,value:u});o.sort((c,u)=>lR(c.name.toLowerCase(),u.name.toLowerCase())),o=o.filter((c,u,p)=>!(u>0&&c.name.toLowerCase()===p[u-1].name.toLowerCase()));let a="";return o.forEach(c=>{a+=`${c.name.toLowerCase().trimRight()}:${c.value.trimLeft()}
`}),a}function s(i){let o=cR(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=uR(i.url),u={};if(c){let p=[];for(let l in c)if(Object.prototype.hasOwnProperty.call(c,l)){let A=l.toLowerCase();u[A]=c[l],p.push(A)}p.sort();for(let l of p)a+=`
${l}:${decodeURIComponent(u[l])}`}return a}return{name:OMt,async sendRequest(i,o){return e(i),o(i)}}}var EMt="storageRequestFailureDetailsParserPolicy";function Rge(){return{name:EMt,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}}}}var wge=require("node:crypto"),AR=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,wge.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var dR="12.31.0",fR="2026-02-06";var hR="https://storage.azure.com/.default",xu={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var No="",n7="*",yMt=1*1024*1024;var CMt=4*yMt;var Sge="AES256",Nge="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",vge=["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"],Fge=["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"],Tge="BlobUsesCustomerSpecifiedEncryption",xge="BlobDoesNotUseCustomerSpecifiedEncryption",_ge=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function _u(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var h3=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function J0(t,e={}){t||(t=new b0);let r=new h3([],e);return r._credential=t,r}function BMt(t){let e=[DMt,Wge,qMt,IMt,RMt,wMt,NMt];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>SMt(s));return{wrappedPolicies:Nk(r),afterRetry:n}}}}function s7(t)
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new _o(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}}function Dgt(t,e){if(t=a2(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=ec.parse(t.permissions.toString()).toString():s=tc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?St(t.startsOn,!1):"",t.expiresOn?St(t.expiresOn,!1):"",o2(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?xo(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(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new _o(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}function qgt(t,e){if(t=a2(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=ec.parse(t.permissions.toString()).toString():s=tc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?St(t.startsOn,!1):"",t.expiresOn?St(t.expiresOn,!1):"",o2(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?xo(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(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new _o(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}function Igt(t,e){if(t=a2(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=ec.parse(t.permissions.toString()).toString():s=tc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?St(t.startsOn,!1):"",t.expiresOn?St(t.expiresOn,!1):"",o2(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?St(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?St(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?xo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new _o(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:i}}function Rgt(t,e){if(t=a2(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=ec.parse(t.permissions.toString()).toString():s=tc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?St(t.startsOn,!1):"",t.expiresOn?St(t.expiresOn,!1):"",o2(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?St(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?St(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?xo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new _o(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}function wgt(t,e){if(t=a2(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=ec.parse(t.permissions.toString()).toString():s=tc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?St(t.startsOn,!1):"",t.expiresOn?St(t.expiresOn,!1):"",o2(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?St(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?St(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?xo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new _o(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}function Sgt(t,e){if(t=a2(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=ec.parse(t.permissions.toString()).toString():s=tc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?St(t.startsOn,!1):"",t.expiresOn?St(t.expiresOn,!1):"",o2(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?St(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?St(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?xo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new _o(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}function o2(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function a2(t){let e=t.version?t.version:fR;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}var q3=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=Fb()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==No||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==No||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 Ee.withSpan("BlobLeaseClient-acquireLease",r,async n=>Ie(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!==No||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==No||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 Ee.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=Ie(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,s})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==No||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==No||e.conditions?.tagConditions))throw new RangeError("The IfMatch,
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"}};eM.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var l2=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};l2.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var _3=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var Pzt=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(p){try{u(n.next(p))}catch(l){o(l)}}function c(p){try{u(n.throw(p))}catch(l){o(l)}}function u(p){p.done?i(p.value):s(p.value).then(a,c)}u((n=n.apply(t,e||[])).next())})},jG=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);_(`Sent ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function POe(t,e,r){return Pzt(this,void 0,void 0,function*(){var n;let s=new Gu(t),i=s.getBlockBlobClient(),o=new jG((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),F(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new g5(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw Et(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}var UOe=x(require("buffer"),1),rc=x(require("fs"),1),GOe=x(require("stream"),1),HOe=x(require("util"),1);var z5=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(p){try{u(n.next(p))}catch(l){o(l)}}function c(p){try{u(n.throw(p))}catch(l){o(l)}}function u(p){p.done?i(p.value):s(p.value).then(a,c)}u((n=n.apply(t,e||[])).next())})};function O5(t){return t?t>=200&&t<300:!1}function kzt(t){return t?t>=500:!0}function Uzt(t){return t?[R0.BadGateway,R0.ServiceUnavailable,R0.GatewayTimeout].includes(t):!1}function Gzt(t){return z5(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function kOe(t,e,r){return z5(this,arguments,void 0,function*(n,s,i,o=Xq,a=Vq,c=void 0){let u="",p=1;for(;p<=o;){let l,A,f=!1;try{l=yield s()}catch(M){c&&(l=c(M)),f=!0,u=M.message}if(l&&(A=i(l),!kzt(A)))return l;if(A&&(f=Uzt(A),u=`Cache service responded with ${A}`),F(`${n} - Attempt ${p} of ${o} failed with error: ${u}`),!f){F(`${n} - Error is not retryable`);break}yield Gzt(a),p++}throw Error(`${n} failed: ${u}`)})}function W3(t,e){return z5(this,arguments,void 0,function*(r,n,s=Xq,i=Vq){return yield kOe(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof Ia)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function tM(t,e){return z5(this,arguments,void 0,function*(r,n,s=Xq,i=Vq){return yield kOe(r,n,o=>o.message.statusCode,s,i)})}var Fi=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(p){try{u(n.next(p))}catch(l){o(l)}}function c(p){try{u(n.throw(p))}catch(l){o(l)}}function u(p){p.done?i(p.value):s(p.value).then(a,c)}u((n=n.apply(t,e||[])).next())})};function Hzt(t,e){return Fi(this,void 0,void 0,function*(){yield HOe.promisify(GOe.pipeline)(t.message,e)})}var E5=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.s
Other caches with similar key:`);for(let a of i?.artifactCaches||[])F(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function KG(t,e,r){return Vn(this,void 0,void 0,function*(){let n=new t3e.URL(t),s=$Oe(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield VOe(t,e,s):s.concurrentBlobDownloads?yield XOe(t,e,s):yield y5(t,e):yield y5(t,e)})}function n3e(t,e,r){return Vn(this,void 0,void 0,function*(){let n=JG(),s=Bb(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield W3("reserveCache",()=>Vn(this,void 0,void 0,function*(){return n.postJson(Q3("caches"),i)}))})}function e3e(t,e){return`bytes ${t}-${e}/*`}function Zzt(t,e,r,n,s){return Vn(this,void 0,void 0,function*(){F(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${e3e(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":e3e(n,s)},o=yield tM(`uploadChunk (start: ${n}, end: ${s})`,()=>Vn(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!O5(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function eOt(t,e,r,n){return Vn(this,void 0,void 0,function*(){let s=qa(r),i=Q3(`caches/${e.toString()}`),o=rM.openSync(r,"r"),a=$G(n),c=zP("uploadConcurrency",a.uploadConcurrency),u=zP("uploadChunkSize",a.uploadChunkSize),p=[...new Array(c).keys()];F("Awaiting all uploads");let l=0;try{yield Promise.all(p.map(()=>Vn(this,void 0,void 0,function*(){for(;l<s;){let A=Math.min(s-l,u),f=l,M=l+A-1;l+=u,yield Zzt(t,i,()=>rM.createReadStream(r,{fd:o,start:f,end:M,autoClose:!1}).on("error",g=>{throw new Error(`Cache upload failed because file read failed with ${g.message}`)}),f,M)}})))}finally{rM.closeSync(o)}})}function tOt(t,e,r){return Vn(this,void 0,void 0,function*(){let n={size:r};return yield W3("commitCache",()=>Vn(this,void 0,void 0,function*(){return t.postJson(Q3(`caches/${e.toString()}`),n)}))})}function ZG(t,e,r,n){return Vn(this,void 0,void 0,function*(){if($G(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield POe(r,e,n)}else{let i=JG();F("Upload cache"),yield eOt(i,t,e,n),F("Commiting cache");let o=qa(e);_(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield tOt(i,t,o);if(!O5(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);_("Cache saved successfully")}})}var J3e=x(G3e(),1),e1=x(Z0(),1),ks=x(Z0(),1),b2=x(Z0(),1),M2=x(Z0(),1),m2=x(Z0(),1);var VH=x(Z0(),1),jH=x(Z0(),1),j3e=x(Z0(),1),$3e=x(Z0(),1),Y3e=x(Z0(),1);var GH=x(Z0(),1),HH=x(Z0(),1),H3e=x(Z0(),1),X3e=x(Z0(),1),V3e=x(Z0(),1),XH=class extends V3e.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,X3e.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,H3e.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let p=e.skip(c);u!==!1&&(u===!0?HH.UnknownFieldHandler.onRead:u)(this.typeName,i,a,c,p)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,GH.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,GH.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?HH.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},pw=new XH;var $H=class extends Y3e.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>pw}])}create(e){let r={repositoryId:"0",scope:[]};
`));let n=yield pX(r,"create");yield lX(n,t)})}var gM=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(p){try{u(n.next(p))}catch(l){o(l)}}function c(p){try{u(n.throw(p))}catch(l){o(l)}}function u(p){p.done?i(p.value):s(p.value).then(a,c)}u((n=n.apply(t,e||[])).next())})},Qo=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},mM=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},fw=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function tEe(t){if(!t||t.length===0)throw new Qo("Path Validation Error: At least one directory or file path is required")}function fX(t){if(t.length>512)throw new Qo(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Qo(`Key Validation Error: ${t} cannot contain commas.`)}function hX(){return L3()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function rEe(t,e,r,n){return gM(this,arguments,void 0,function*(s,i,o,a,c=!1){let u=L3();return F(`Cache service version: ${u}`),tEe(s),u==="v2"?yield bEt(s,i,o,a,c):yield hEt(s,i,o,a,c)})}function hEt(t,e,r,n){return gM(this,arguments,void 0,function*(s,i,o,a,c=!1){o=o||[];let u=[i,...o];if(F("Resolved Keys:"),F(JSON.stringify(u)),u.length>10)throw new Qo("Key Validation Error: Keys are limited to a maximum of 10.");for(let A of u)fX(A);let p=yield _O(),l="";try{let A=yield r3e(u,s,{compressionMethod:p,enableCrossOsArchive:c});if(!A?.archiveLocation)return;if(a?.lookupOnly)return _("Lookup only - skipping download"),A.cacheKey;l=rE.join(yield TO(),xl(p)),F(`Archive Path: ${l}`),yield KG(A.archiveLocation,l,a),Du()&&(yield tE(l,p));let f=qa(l);return _(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield AX(l,p),_("Cache restored successfully"),A.cacheKey}catch(A){let f=A;if(f.name===Qo.name)throw A;f instanceof Ia&&typeof f.statusCode=="number"&&f.statusCode>=500?db(`Failed to restore: ${A.message}`):Et(`Failed to restore: ${A.message}`)}finally{try{yield xO(l)}catch(A){F(`Failed to delete archive: ${A}`)}}})}function bEt(t,e,r,n){return gM(this,arguments,void 0,function*(s,i,o,a,c=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let u=[i,...o];if(F("Resolved Keys:"),F(JSON.stringify(u)),u.length>10)throw new Qo("Key Validation Error: Keys are limited to a maximum of 10.");for(let l of u)fX(l);let p="";try{let l=uX(),A=yield _O(),f={key:i,restoreKeys:o,version:Bb(s,A,c)},M=yield l.GetCacheEntryDownloadURL(f);if(!M.ok){F(`Cache not found for version ${f.version} of keys: ${u.join(", ")}`);return}if(f.key!==M.matchedKey?_(`Cache hit for restore-key: ${M.matchedKey}`):_(`Cache hit for: ${M.matchedKey}`),a?.lookupOnly)return _("Lookup only - skipping download"),M.matchedKey;p=rE.join(yield TO(),xl(A)),F(`Archive path: ${p}`),F(`Starting download of archive to: ${p}`),yield KG(M.signedDownloadUrl,p,a);let y=qa(p);return _(`Cache Size: ~${Math.round(y/(1024*1024))} MB (${y} B)`),Du()&&(yield tE(p,A)),yield AX(p,A),_("Cache restored successfully"),M.matchedKey}catch(l){let A=l;if(A.name===Qo.name)throw l;A instanceof Ia&&typeof A.statusCode=="number"&&A.statusCode>=500?db(`Failed to restore: ${l.message}`):Et(`Failed to restore: ${l.message}`)}finally{try{p&&(yield xO(p))}catch(l){F(`Failed to delete archive: ${l}`)}}})}function bX(t,e,r){return gM(this,arguments,void 0,function*(n,s,i,o=!1){let a=L3();return F(`Cache service version: ${a}`),tEe(n),fX(s),a==="v2"?yield mEt(n,s,i,o):yield MEt(n,s,i,o)})}function MEt(t,e,r){return gM(this,arguments,void 0,function*(n,s,i,o=!1){var a,c,u,p,l;let A=yield _O(),f=-1,M=yield gP(n);if(F("Cache Paths:"),F(`${JSON.stringify(M)}`),M.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let g=yield TO(),y=rE.join(g,xl(A));F(`Archive Path: ${y}`);try{yie
`+t.errors.map(e=>` - ${e.message}`).join(`
2026-06-17 19:24:43 +00:00
`)}var dyt=class extends Error{constructor(t,e,r){super(Ayt(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},fyt=["method","baseUrl","url","headers","request","query","mediaType","operationName"],hyt=["query","method","url"],UEe=/\/api\/v3\/?$/;function byt(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let o in r)if(hyt.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((o,a)=>fyt.includes(a)?(o[a]=n[a],o):(o.variables||(o.variables={}),o.variables[a]=n[a],o),{}),i=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return UEe.test(i)&&(s.url=i.replace(UEe,"/api/graphql")),t(s).then(o=>{if(o.data.errors){let a={};for(let c of Object.keys(o.headers))a[c]=o.headers[c];throw new dyt(s,a,o.data)}return o.data.data})}function RX(t,e){let r=t.defaults(e);return Object.assign((s,i)=>byt(r,s,i),{defaults:RX.bind(null,r),endpoint:r.endpoint})}var ZB0=RX(oE,{headers:{"user-agent":`octokit-graphql.js/${lyt} ${eA()}`},method:"POST",url:"/graphql"});function GEe(t){return RX(t,{method:"POST",url:"/graphql"})}var wX="(?:[a-zA-Z0-9_-]+)",HEe="\\.",XEe=new RegExp(`^${wX}${HEe}${wX}${HEe}${wX}$`),Myt=XEe.test.bind(XEe);async function myt(t){let e=Myt(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}function gyt(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function zyt(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=gyt(t),e(s)}var VEe=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(myt.bind(null,e),{hook:zyt.bind(null,e)})};var SX="7.0.6";var jEe=()=>{},Oyt=console.warn.bind(console),Eyt=console.error.bind(console);function yyt(t={}){return typeof t.debug!="function"&&(t.debug=jEe),typeof t.info!="function"&&(t.info=jEe),typeof t.warn!="function"&&(t.warn=Oyt),typeof t.error!="function"&&(t.error=Eyt),t}var $Ee=`octokit-core.js/${SX} ${eA()}`,qw=class{static VERSION=SX;static defaults(e){return class extends this{constructor(...n){let s=n[0]||{};if(typeof e=="function"){super(e(s));return}super(Object.assign({},e,s,s.userAgent&&e.userAgent?{userAgent:`${s.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new EEe.Collection,n={baseUrl:oE.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} ${$Ee}`:$Ee,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=oE.defaults(n),this.graphql=GEe(this.request).defaults(n),this.log=yyt(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=VEe(e.auth);r.wrap("request",i.hook),this.auth=i}let s=this.constructor;for(let i=0;i<s.plugins.length;++i)Object.assign(this,s.plugins[i](this,e))}request;graphql;log;hook;auth};var NX="17.0.0";var Cyt={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /or
`,o).length:l,u?(a===null?0:a.length)+c.length:0,u?c.length+l:0);return A<f},parse:function(n,s,i,o){let{bom:a,comment_no_infix:c,encoding:u,from_line:p,ltrim:l,max_record_size:A,raw:f,relax_quotes:M,rtrim:g,skip_empty_lines:y,to:O,to_line:C}=this.options,{comment:q,escape:R,quote:S,record_delimiter:T}=this.options,{bomSkipped:L,previousBuf:j,rawBuffer:Me,escapeIsQuote:Be}=this.state,K;if(j===void 0)if(n===void 0){o();return}else K=n;else j!==void 0&&n===void 0?K=j:K=Buffer.concat([j,n]);if(L===!1)if(a===!1)this.state.bomSkipped=!0;else if(K.length<3){if(s===!1){this.state.previousBuf=K;return}}else{for(let Y in TM)if(TM[Y].compare(K,0,TM[Y].length)===0){let Se=TM[Y].length;this.state.bufBytesStart+=Se,K=K.slice(Se);let te=GV({...this.original_options,encoding:Y});for(let ge in te)this.options[ge]=te[ge];({comment:q,escape:R,quote:S}=this.options);break}this.state.bomSkipped=!0}let De=K.length,$;for($=0;$<De&&!this.__needMoreData($,De,s);$++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),C!==-1&&this.info.lines>C){this.state.stop=!0,o();return}this.state.quoting===!1&&T.length===0&&this.__autoDiscoverRecordDelimiter(K,$)&&(T=this.options.record_delimiter);let Y=K[$];if(f===!0&&Me.append(Y),(Y===nDt||Y===sDt)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(R!==null&&this.state.quoting===!0&&this.__isEscape(K,$,Y)&&$+R.length<De)if(Be){if(this.__isQuote(K,$+R.length)){this.state.escaping=!0,$+=R.length-1;continue}}else{this.state.escaping=!0,$+=R.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(K,$))if(this.state.quoting===!0){let ge=K[$+S.length],ot=g&&this.__isCharTrimable(K,$+S.length),Wt=q!==null&&this.__compareBytes(q,K,$+S.length,ge),Le=this.__isDelimiter(K,$+S.length,ge),n0=T.length===0?this.__autoDiscoverRecordDelimiter(K,$+S.length):this.__isRecordDelimiter(ge,K,$+S.length);if(R!==null&&this.__isEscape(K,$,Y)&&this.__isQuote(K,$+R.length))$+=R.length-1;else if(!ge||Le||n0||Wt||ot){this.state.quoting=!1,this.state.wasQuoting=!0,$+=S.length-1;continue}else if(M===!1){let It=this.__error(new zt("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(ge)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(It!==void 0)return It}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(S),$+=S.length-1}else if(this.state.field.length!==0){if(M===!1){let ge=this.__infoField(),ot=Object.keys(TM).map(Le=>TM[Le].equals(this.state.field.toString())?Le:!1).filter(Boolean)[0],Wt=this.__error(new zt("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(ge.column)} at line ${ge.lines}, value is ${JSON.stringify(this.state.field.toString(u))}`,ot?`(${ot} bom)`:void 0],this.options,ge,{field:this.state.field}));if(Wt!==void 0)return Wt}}else{this.state.quoting=!0,$+=S.length-1;continue}if(this.state.quoting===!1){let ge=this.__isRecordDelimiter(Y,K,$);if(ge!==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)>=p){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),$+=ge-1;continue}if(y===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,$+=ge-1;continue}this.info.bytes=this.state.bufBytesStart+$;let Le=this.__onField();if(Le!==void 0)return Le;this.info.bytes=this.state.bufBytesStart+$+ge;let n0=this.__onRecord(i);if(n0!==void 0)return n0;if(O!==-1&&this.info.records>=O){this.state.stop=!0,o();return}}this.state.commenting=!1,$+=ge-1;continue}if(this.state.commenting)continue;if(q!==null&&(c===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(q,K,$,Y)!==0){this.state.commenting=!0;continue}let ot=this.__isDelimiter(K,$,Y);if(ot!==0){
`,i),Buffer.from(`
2026-06-17 19:24:43 +00:00
`,i),Buffer.from("\r",i)];e:for(let a=0;a<o.length;a++){let c=o[a].length;for(let u=0;u<c;u++)if(o[a][u]!==n[s+u])continue e;return this.options.record_delimiter.push(o[a]),this.state.recordDelimiterMaxLength=o[a].length,o[a].length}return 0},__error:function(n){let{encoding:s,raw:i,skip_records_with_error:o}=this.options,a=typeof n=="string"?new Error(n):n;if(o){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(a,i?this.state.rawBuffer.toString(s):void 0)}catch(c){return c}return}else return a},__infoDataSet:function(){return{...this.info,columns:this.options.columns}},__infoRecord: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}},__infoField: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}}}};var Vs=function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?{}:[],n=m4e(e),s=a=>{n.options.objname===void 0?r.push(a):r[a[0]]=a[1]},i=()=>{},o=n.parse(t,!0,s,i);if(o!==void 0)throw o;return r};var Ct=class t{static getInputList(e,r){return this.getList(Is(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let n=[];if(e=="")return n;let s=Vs(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=Is(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 ar("powershell",!0),s=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=[];if(r)for(let o in r)i.push(`-${o} '${r[o].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 g4e.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 HV.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 HV.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,n){return z4e.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=yE.default.resolve(e);return yE.default.resolve(r).startsWith(n.endsWith(yE.default.sep)?n:`${n}${yE.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Ma
More info: ${c.url}`);let f=c.range&&c.range.length>0?c.range[0]?.start.line:void 0,M=!1;for(let g of o)if(g.remote||g.path.endsWith(u)&&g.content===p){a.push({title:l,message:A,file:g.path,startLine:f}),M=!0;break}M||F(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${l}`)}return a}};var R2=x(require("fs"),1),VV=x(require("path"),1);var mS=class t{buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new Zt,this.iidFilename=`build-iidfile-${Ct.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${Ct.generateRandomString()}.json`}async gitContext(e){let r=new Set(["ref","checksum","subdir"]),n=e?.attrs||{},s=Object.entries(n).filter(([f])=>!r.has(f)),i=Ct.parseBoolOrDefault(n["fetch-by-commit"]),o=e?.ref||n.ref||cn.ref;o.startsWith("refs/")?o.startsWith("refs/pull/")&&Ct.parseBoolOrDefault(process.env.DOCKER_DEFAULT_GIT_CONTEXT_PR_HEAD_REF)&&(o=o.replace(/\/merge$/g,"/head")):o=`refs/heads/${o}`;let a=`${yt.serverURL}/${cn.repo.owner}/${cn.repo.repo}.git`,c=e?.checksum||n.checksum,u=e?.subdir||n.subdir,p=e?.format;if(!p){if(p="fragment",s.length>0)p="query";else if(Ct.parseBoolOrDefault(process.env.BUILDX_SEND_GIT_QUERY_AS_INPUT))try{await this.buildx.versionSatisfies(">=0.29.0")&&(p="query")}catch{}}let l=cn.sha||o;o.startsWith("refs/pull/")&&o.endsWith("/head")&&(l=typeof cn.payload.pull_request?.head?.sha=="string"?cn.payload.pull_request.head.sha:o);let A=c||l;if(p==="query"){let f=[`ref=${i||c?o:A}`],M=i?A:c;M&&f.push(`checksum=${M}`),u&&u!=="."&&f.push(`subdir=${u}`);for(let[g,y]of s)f.push(`${g}=${y}`);return`${a}?${f.join("&")}`}return`${a}#${A}${u&&u!=="."?`:${u}`:""}`}getImageIDFilePath(){return VV.default.join(gt.tmpDir(),this.iidFilename)}resolveImageID(){let e=this.getImageIDFilePath();if(R2.default.existsSync(e))return R2.default.readFileSync(e,{encoding:"utf-8"}).trim()}getMetadataFilePath(){return VV.default.join(gt.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!R2.default.existsSync(e))return;let r=R2.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(!R2.default.existsSync(s))throw new Error(`secret file ${s} not found`);return[n,s]}let i=gt.tmpName({tmpdir:gt.tmpDir()});return R2.default.writeFileSync(i,s),[n,i]}static getProvenanceInput(e){let r=Is(e);if(!r)return r;try{return XAe(e)?`builder-id=${yt.workflowRunURL(!0)}`:"false"}catch{return t.resolveProvenanceAttrs(r)}}static resolveProvenanceAttrs(e){if(!e)return`builder-id=${yt.workflowRunURL(!0)}`;let r=Vs(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=${yt.workflowRunURL(!0)}`}static resolveCacheToAttrs(e,r){if(!e)return e;let n="registry",s="",i="",o=Vs(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let a of o){let c=a.toString().split(/(?<=^[^=]+?)=/).map(u=>u.trim());c[0]==="type"?n=c[1]:c[0]==="repository"?s=c[1]:c[0]==="ghtoken"&&(i=c[1])}return n==="gha"&&(s||(e=`${e},repository=${yt.repository}`),!i&&r&&(e=`${e},ghtoken=${r}`)),e}static hasLocalExporter(e){return t.hasExporterType("local",e)}static hasTarExporter(e){return t.hasExporterType("tar",e)}stat
`),{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,o]of s.map(a=>a.split("=").map(c=>c.trim())))if(i=="type"&&o==e)return!0}return!1}static hasAttestationType(e,r){let n=Vs(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let s of n)for(let[i,o]of s.map(a=>a.split("=").map(c=>c.trim())))if(i=="type"&&o==e)return!0;return!1}static resolveAttestationAttrs(e){let r=Vs(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),n=[];for(let s of r)for(let i of s)try{let o=Ct.parseBool(i);n.push(`disabled=${!o}`)}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&&Oa(i),[s,i]}};var jV=x(require("fs"),1),y4e=x(require("path"),1);var gS=class t{buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new Zt,this.metadataFilename=`bake-metadata-${Ct.generateRandomString()}.json`}getMetadataFilePath(){return y4e.default.join(gt.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!jV.default.existsSync(e))return;let r=jV.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=[],o=[...e.files||[],e.source];if(o){for(let c of o.map(u=>u?u.trim():""))if(c.length!=0){if(!Ct.isValidRef(c)){i.push(c);continue}if(s)throw new Error("Only one remote bake definition can be defined");s=c}}s&&n.push(s);for(let c of i)n.push("--file",c);if(e.overrides)for(let c of e.overrides)n.push("--set",c);if(e.vars)for(let c of e.vars)n.push("--var",c);if(e.allow)for(let c of e.allow)n.push("--allow",c);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 a=await this.buildx.getCommand([...n,"--print",...e.targets||[]]);return await xe.getExecOutput(a.command,a.args,r).then(c=>{if(c.stderr.length>0&&c.exitCode!=0)throw new Error(`cannot parse bake definitions: ${c.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return t.parseDefinition(c.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=Vs(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let s of n){let[i,o]=s.toString().split(/(?<=^[^=]+?)=/).map(a=>a.trim());switch(i){case"type":r.type=o;break;case"disabled":r.disabled=Ct.parseBool(o);break;default:r[i]=o}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},n=Vs(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,o]=s.toString().split(/(?<=^[^=]+?)=/)
`)[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"]);F(`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 o=s.match(/^[^/]+\/[^/]+, (.+)$/);if(o)return`refs/heads/${o[1].trim()}`;let a=s.match(/^[^/]+\/(.+)$/);if(a)return`refs/heads/${a[1].trim()}`;throw new Error(`Unsupported detached HEAD ref in "${e}"`)}static async exec(e=[]){return await xe.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 Fxe=require("crypto"),Vc=x(require("fs"),1),GA=x(require("path"),1);var QC=x(DE(),1),jc=x(yve(),1),Txe=x(Wte(),1),Og=x(qxe(),1);var L0e=x(DE(),1);var Rxe=x(ws(),1);var Ixe="application/vnd.oci.empty.v1+json";var Hp=class{binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"cosign",this._version="",this._versionOnce=!1}async isAvailable(){let e=await xe.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(F(`Cosign.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(F(`Cosign.isAvailable error: ${r}`),!1));return F(`Cosign.isAvailable: ${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await xe.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 xe.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}async versionSatisfies(e,r){let n=r??await this.version();if(!n)return F("Cosign.versionSatisfies false: undefined version"),!1;let s=Rxe.satisfies(n,e)||/^[0-9a-f]{7}$/.exec(n)!==null;return F(`Cosign.versionSatisfies ${n} statisfies ${e}: ${s}`),s}static parseCommandOutput(e){let r,n,s,i;for(let o of e.split(/\r?\n/)){let a=o.trim();if(!a.startsWith("{")||!a.endsWith("}"))continue;let c;try{c=JSON.parse(a)}catch{continue}if(c&&Array.isArray(c.errors)&&c.errors.length>0&&(i=c.errors),!r&&c&&Array.isArray(c.manifests)&&c.manifests.length>0){let u=c.manifests[0];u?.artifactType===L0e.BUNDLE_V03_MEDIA_TYPE&&typeof u.digest=="string"?r=u.digest:u?.artifactType===Ixe&&typeof u.digest=="string"&&(n=u.digest)}if(!s&&c&&c.mediaType===L0e.BUNDLE_V03_MEDIA_TYPE&&(s=c),s&&(r||n)){i=void 0;break}}return{bundle:s,signatureManifestDigest:r||n,errors:i}}};var Q0e=x(require("fs"),1);var CT=class t{buildx;constructor(e){this.buildx=e?.buildx||new Zt}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(o=>o.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return n;let s=e.platform,i=new Map;for(let o of r.manifests)o.digest&&i.set(o.digest,o);return n.filter(o=>{let a=o.annotations?.["vnd.docker.reference.digest"];if(!a)return!1;let c=i.get(a);return c?c.platform?.os===s.os&&c.platform?.architecture===s.architecture&&(c.platform?.variant??"")===(s.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}async create(e){let r=[],n=gt.tmpName({tmpdir:gt.tmpDir(),template:"imagetools-metadata-XXXXXX"}),s=[],i=[];for(let a of e.sources){if(a.startsWith("cwd://")){let c=a.substring(6);c.length>0&&s.push(c);continue}i.push(a)}if(e.tags)for(let a of e.tags)r.push("--tag",a);if(e.platforms)for(let a of e.platforms)r.push("--platform",a);if(e.annotations)for(let a of e.annotations)r.push("--annotation",a);e.dryRun?r.push("--dry-run"):r.push("--metadata-file",n);for(let a of s)r.push("--file",a);for(let a of i)r.push(a);let o=await this.getCreat
${o.message}`),await new Promise(u=>setTimeout(u,Math.pow(2,a)*100))}throw o??new Error(`ImageTools inspect command failed for ${e.name}`)}async execInspect(e,r,n){return await xe.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 wxe="application/vnd.in-toto+json";var Sxe="https://fulcio.sigstore.dev",Nxe="https://rekor.sigstore.dev",vxe="https://timestamp.sigstore.dev",Ff="https://search.sigstore.dev";var rXt="slsaprovenance1",HA=class t{cosign;imageTools;constructor(e){this.cosign=e?.cosign||new Hp,this.imageTools=e?.imageTools||new CT}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);_(`Using Sigstore signing endpoint: ${n.fulcioURL}`);let s=t.noTransparencyLog(e.noTransparencyLog),i=[];await this.cosign.versionSatisfies(">=3.0.4")?await cr("Creating Sigstore protobuf signing config",async()=>{let o=gt.tmpName({template:"signing-config-XXXXXX.json",tmpdir:gt.tmpDir()}),a=["signing-config","create","--with-default-services=true",`--out=${o}`];s&&a.push("--no-default-rekor=true"),await xe.exec(this.cosign.binPath,a,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),_(JSON.stringify(JSON.parse(Vc.default.readFileSync(o,{encoding:"utf-8"})),null,2)),i.push(`--signing-config=${o}`)}):(i.push("--use-signing-config"),s&&i.push("--tlog-upload=false"));for(let o of e.imageNames){let a=await this.imageTools.attestationDigests({name:`${o}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let c of a){let u=`${o}@${c}`;await cr(`Signing attestation manifest ${u}`,async()=>{let p=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1","--new-bundle-format",...i];_(`[command]${this.cosign.binPath} ${[...p,u].join(" ")}`);let l=await xe.getExecOutput(this.cosign.binPath,["--verbose",...p,u],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),A=Hp.parseCommandOutput(l.stderr.trim());if(l.exitCode!=0)if(A.errors&&A.errors.length>0){let M=A.errors.map(g=>`- [${g.code}] ${g.message} : ${g.detail}`).join(`
`);throw new Error(`Cosign sign command failed with errors:
2026-06-17 19:24:43 +00:00
${M}`)}else throw new Error(`Cosign sign command failed with: ${l.stderr.trim().split(/\r?\n/).filter(M=>M.length>0).pop()??"unknown error"}`);let f=t.parseBundle((0,QC.bundleFromJSON)(A.bundle));f.tlogID&&_(`Uploaded to Rekor transparency log: ${Ff}?logIndex=${f.tlogID}`),_(`Signature manifest pushed: https://oci.dag.dev/?referrers=${u}`),r[u]={...f,imageName:o}})}}}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 cr(`Verifying signature of ${s}`,async()=>{let o=await this.verifyImageAttestation(s,{certificateIdentityRegexp:r.certificateIdentityRegexp,noTransparencyLog:r.noTransparencyLog||!i.tlogID,retryOnManifestUnknown:r.retryOnManifestUnknown});_(`Signature manifest verified: https://oci.dag.dev/?image=${i.imageName}@${o.signatureManifestDigest}`),n[s]=o});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 o of s){let a=`${i}@${o}`,c=await this.verifyImageAttestation(a,r);_(`Signature manifest verified: https://oci.dag.dev/?image=${i}@${c.signatureManifestDigest}`),n[a]=c}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){_(`[command]${this.cosign.binPath} ${[...n,e].join(" ")}`);let o=await xe.getExecOutput(this.cosign.binPath,["--verbose",...n,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})});if(o.exitCode!==0)throw new Error(`Cosign verify command failed with: ${o.stderr.trim().split(/\r?\n/).filter(c=>c.length>0).pop()??"unknown error"}`);let a=Hp.parseCommandOutput(o.stderr.trim());return{cosignArgs:n,signatureManifestDigest:a.signatureManifestDigest}}let s=r.retryLimit??15,i;_(`[command]${this.cosign.binPath} ${[...n,e].join(" ")}`);for(let o=0;o<s;o++){let a=await xe.getExecOutput(this.cosign.binPath,["--verbose",...n,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),c=Hp.parseCommandOutput(a.stderr.trim());if(a.exitCode===0)return{cosignArgs:n,signatureManifestDigest:c.signatureManifestDigest};if(c.errors&&c.errors.length>0){let u=c.errors.map(p=>`- [${p.code}] ${p.message} : ${p.detail}`).join(`
`);if(i=new Error(`Cosign verify command failed with errors:
2026-06-17 19:24:43 +00:00
${u}`),c.errors.some(p=>p.code==="MANIFEST_UNKNOWN"))_(`Cosign verify command failed with MANIFEST_UNKNOWN, retrying attempt ${o+1}/${s}...
${u}`),await new Promise(p=>setTimeout(p,Math.pow(2,o)*100));else throw i}else throw new Error(`Cosign verify command failed with: ${a.stderr.trim().split(/\r?\n/).filter(u=>u.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);_(`Using Sigstore signing endpoint: ${n.fulcioURL}`);let s=t.getProvenanceBlobs(e);for(let i of Object.keys(s))await cr(`Signing ${i}`,async()=>{let o=s[i],a=GA.default.join(GA.default.dirname(i),`${e.name??"provenance"}.sigstore.json`),c=t.getProvenanceSubjects(o);if(c.length===0){Et(`No subjects found in provenance ${i}, skip signing.`);return}let u=await t.signPayload({data:o,type:wxe},n),p=t.parseBundle(u);_("Provenance blob signed for:");for(let l of c){let[A,f]=Object.entries(l.digest)[0]||[];_(` - ${l.name} (${A}:${f})`)}p.tlogID&&_(`Attestation signature uploaded to Rekor transparency log: ${Ff}?logIndex=${p.tlogID}`),_(`Writing Sigstore bundle to: ${a}`),Vc.default.writeFileSync(a,JSON.stringify(p.payload,null,2),{encoding:"utf-8"}),r[i]={...p,bundlePath:a,subjects:c}})}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 o=GA.default.dirname(s);await cr(`Verifying signature bundle ${i.bundlePath}`,async()=>{for(let a of i.subjects){let c=GA.default.join(o,a.name);_(`Verifying signed artifact ${c}`);let u=["verify-blob-attestation","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??rXt];(r.noTransparencyLog||!i.tlogID)&&u.push("--use-signed-timestamps","--insecure-ignore-tlog");let p=await xe.getExecOutput(this.cosign.binPath,[...u,"--bundle",i.bundlePath,c],{ignoreReturnCode:!0});if(p.stderr.length>0&&p.exitCode!=0)throw new Error(p.stderr);n[c]={bundlePath:i.bundlePath,cosignArgs:u}}})}return n}async verifyArtifact(e,r,n){_("Verifying keyless verification bundle signature");let s=JSON.parse(Vc.default.readFileSync(r,"utf-8")),i=(0,QC.bundleFromJSON)(s);_("Fetching Sigstore TUF trusted root metadata");let o=await Txe.getTrustedRoot(),a=(0,Og.toTrustMaterial)(o);try{_("Verifying artifact signature");let c=(0,Og.toSignedEntity)(i,Vc.default.readFileSync(e)),u=t.parseCertificate(i),p=i.verificationMaterial.tlogEntries,l=p.length>0?p[0].logIndex:void 0;if(n?.subjectAlternativeName&&n?.subjectAlternativeName instanceof RegExp){let M=u.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 f=new Og.Verifier(a).verify(c,{subjectAlternativeName:n?.subjectAlternativeName&&typeof n.subjectAlternativeName=="string"?n.subjectAlternativeName:void 0,extensions:n?.issuer?{issuer:n.issuer}:void 0});return F(`Sigstore.verifyArtifact signer: ${JSON.stringify(f)}`),{payload:s,certificate:u.toString(),tlogID:l}}catch(c){throw new Error(`Failed to verify artifact signature: ${c}`)}}signingEndpoints(e){return e=t.noTransparencyLog(e),_(`Upload to transparency log: ${e?"disabled":"enabled"}`),{fulcioURL:Sxe,rekorURL:e?void 0:Nxe,tsaServerURL:vxe}}static noTransparencyLog(e){return e??yt.context.payload.repository?.private}static getProvenanceBlobs(e){let r=GA.default.join(e.localExportDir,"provenance.json");if(Vc.default.existsSync(r))return{[r]:Vc.default.readFileSync(r)};let n=Vc.default.readdirSync(e.localExportDir,{withFileTypes:!0}),s=n.filter(i=>i.isDirectory());if(s.length>0&&s.length===n.length&&s.every(i=>Vc.default.existsSync(GA.default.join(e.localExportDir,i.name,"provenance.json")))){let i={};for(let o of s){let a=
`)){let[u,...p]=c.split(":"),l=u.toLowerCase(),A=p.map(f=>f.trim()).join(":");if(u.length!=0)switch(!0){case l=="name":n=void 0,r.name==null?r.name=A:(i&&s.gcPolicy&&(s.gcPolicy.push(i),i=void 0),s.name&&r.nodes.push(s),s={name:A});break;case l=="driver":n=void 0,r.driver=A;break;case l=="last activity":n=void 0,r.lastActivity=new Date(A);break;case l=="endpoint":n=void 0,s.endpoint=A;break;case l=="driver options":n=void 0,s["driver-opts"]=(A.match(/([a-zA-Z0-9_.]+)="([^"]*)"/g)||[]).map(f=>f.replace(/^(.*)="(.*)"$/g,"$1=$2"));break;case l=="status":n=void 0,s.status=A;break;case l=="buildkit daemon flags":case l=="flags":n=void 0,s["buildkitd-flags"]=A;break;case l=="buildkit version":case l=="buildkit":n=void 0,s.buildkit=A;break;case l=="platforms":{if(n=void 0,!A)break;let f=[];if(A.includes("*"))for(let M of A.split(", "))M.includes("*")&&f.push(M.replace(/\*/g,""));else f=A.split(", ");s.platforms=f.join(",");break}case l=="features":n="features",s.features={};break;case l=="labels":n="label",s.labels={};break;case l=="devices":n="devices",s.devices=s.devices||[];break;case l.startsWith("gc policy rule#"):n="gcpolicy",s.gcPolicy&&i&&(s.gcPolicy.push(i),i=void 0);break;case l.startsWith("file#"):n="file",a=u.split("#")[1],s.files=s.files||{},s.files[a]="";break;default:switch(n&&n!=="devices"&&s.devices&&o&&(s.devices.push(o),o=void 0),n||""){case"features":{s.features=s.features||{},s.features[u.trim()]=!!A;break}case"label":{s.labels=s.labels||{},s.labels[u.trim()]=A;break}case"devices":{switch(l.trim()){case"name":{s.devices&&o&&s.devices.push(o),o={},o.name=A;break}case"on-demand":{o&&A&&(o.onDemand=A=="true");break}case"automatically allowed":{o&&A&&(o.autoAllow=A=="true");break}case"annotations":{o&&(o.annotations=o.annotations||{});break}default:o&&o.annotations&&(o.annotations[u.trim()]=A)}break}case"gcpolicy":{switch(s.gcPolicy=s.gcPolicy||[],i=i||{},l.trim()){case"all":{i.all=A=="true";break}case"filters":{A&&(i.filter=A.split(","));break}case"keep duration":{i.keepDuration=A;break}case"keep bytes":{i.keepBytes=A;break}case"reserved space":{i.reservedSpace=A;break}case"max used space":{i.maxUsedSpace=A;break}case"min free space":{i.minFreeSpace=A;break}}break}case"file":{a&&s.files&&(s.files[a].length>0&&(s.files[a]+=`
`),s.files[a]+=c.replace(/^\s>\s?/,""));break}}}}return o&&s.devices&&s.devices.push(o),i&&s.gcPolicy&&s.gcPolicy.push(i),s.name&&r.nodes.push(s),r}};var xxe=x(ws(),1);var DT=x(require("fs"),1);var qT=class{resolveFromString(e){return this.resolve(e,!1)}resolveFromFile(e){return this.resolve(e,!0)}resolve(e,r){if(r){if(!DT.default.existsSync(e))throw new Error(`config file ${e} not found`);e=DT.default.readFileSync(e,{encoding:"utf-8"})}let n=gt.tmpName({tmpdir:gt.tmpDir()});return DT.default.writeFileSync(n,e),n}};var IT=class{buildx;config;constructor(e){this.config=new qT,this.buildx=e?.buildx||new Zt}async getVersion(e){if(!e.buildkit&&e.name)try{return await this.getVersionWithinImage(e.name)}catch(r){Et(r)}return e.buildkit}async getVersionWithinImage(e){return F(`BuildKit.getVersionWithinImage nodeName: ${e}`),Dr.getExecOutput(["inspect","--format","{{.Config.Image}}",`${Zt.containerNamePrefix}${e}`],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.exitCode==0&&r.stdout.length>0)return F(`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 yg({buildx:this.buildx}).inspect(e));for(let s of n.nodes){let i=s.buildkit;if(F(`BuildKit.versionSatisfies ${i}: ${r}`),!i)try{i=await this.getVersionWithinImage(s.name||"")}catch{return F(`BuildKit.versionSatisfies ${s.name}: can't get version`),!1}if(F(`BuildKit.versionSatisfies ${s.name}: version ${i}`),n.driver=="docker"&&!i.endsWith("-moby")||!xxe.satisfies(i.replace(/-moby$/,""),r))return!1}return!0}};var RT=class t{_version;_versionOnce;_standalone;constructor(e){this._standalone=e?.standalone,this._version="",this._versionOnce=!1}async isStandalone(){let e=this._standalone??!await Dr.isAvailable();return F(`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 xe.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(n=>n.stderr.length>0&&n.exitCode!=0?(F(`Compose.isAvailable cmd err: ${n.stderr.trim()}`),!1):n.exitCode==0).catch(n=>(F(`Compose.isAvailable error: ${n}`),!1));return F(`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 xe.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 xe.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 Vp=x(require("fs"),1),Yc=x(require("os"),1),Cg=x(require("path"),1);var ST=x(ws(),1),k0e=x(require("util"),1);var wT=class t{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);F(`Install.download version: ${n.version}`);let s=await t.getRelease(n,this.githubToken);F(`Install.download release tag name: ${s.tag_name}`);let i=await this.vspec(s.tag_name);F(`Install.download vspec: ${i}`);let o=ST.clean(i)||"";if(!ST.valid(o))throw new Error(`Invalid Compose version "${i}".`);let a=new x1({htcName:n.key!="official"?`compose-dl-bin-${n.key}`:"compose-dl-bin",htcVersion:i,baseCacheDir:Cg.default.join(Yc.default.homedir(),".bin","docker-compose"),cacheFile:Yc.default.platform()=="win32"?"docker-compose.exe":"docker-compose",ghaNoCache:r}),c=await a.find();if(c)return _(`Compose binary found in ${c}`),c
# 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 /
2026-06-17 19:24:43 +00:00
`;var NT=class t{githubToken;buildx;sigstore;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.buildx=e?.buildx||new Zt,this.sigstore=e?.sigstore||new HA}async download(e){let r=await t.getDownloadVersion(e.version);F(`Install.download version: ${r.version}`);let n=await t.getRelease(r,this.githubToken);F(`Install.download release tag name: ${n.tag_name}`);let s=await this.vspec(n.tag_name);F(`Install.download vspec: ${s}`);let i=Dg.clean(s)||"";if(!Dg.valid(i))throw new Error(`Invalid Cosign version "${s}".`);let o=new x1({htcName:"cosign-dl-bin",htcVersion:s,baseCacheDir:Bg.default.join(ea.default.homedir(),".bin"),cacheFile:ea.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:e.ghaNoCache}),a=await o.find();if(a)return _(`Cosign binary found in ${a}`),a;let c=U0e.format(r.downloadURL,s,this.filename());_(`Downloading ${c}`);let u=await Oi(c,void 0,this.githubToken);F(`Install.download htcDownloadPath: ${u}`),e.verifySignature&&Dg.satisfies(s,">=3.0.1")&&await this.verifySignature(u,c);let p=await o.save(u,e.skipState);return _(`Cached to ${p}`),p}async build(e,r,n){let s=await this.vspec(e);F(`Install.build vspec: ${s}`);let i=new x1({htcName:"cosign-build-bin",htcVersion:s,baseCacheDir:Bg.default.join(ea.default.homedir(),".bin"),cacheFile:ea.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),o=await i.find();if(o)return _(`Cosign binary found in ${o}`),o;let a=Bg.default.join(gt.tmpDir(),"cosign-build-cache"),c=await this.buildCommand(e,a),u=await xe.getExecOutput(c.command,c.args,{ignoreReturnCode:!0,input:Buffer.from(_xe)}).then(l=>{if(l.stderr.length>0&&l.exitCode!=0)throw new Error(`build failed with: ${l.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return`${a}/cosign`}),p=await i.save(u,n);return _(`Cached to ${p}`),p}async install(e,r){r=r||gt.tmpDir();let n=Bg.default.join(r,"cosign-bin");PC.default.existsSync(n)||PC.default.mkdirSync(n,{recursive:!0});let s=ea.default.platform()=="win32"?"cosign.exe":"cosign",i=Bg.default.join(n,s);return PC.default.copyFileSync(e,i),_("Fixing perms"),PC.default.chmodSync(i,"0755"),ya(n),_("Added Cosign to PATH"),_(`Binary path: ${i}`),i}async buildCommand(e,r){let n=await new Zt({standalone:!0}).isAvailable(),s=await new Zt({standalone:!1}).isAvailable(),i=!1;if(await this.buildx.isStandalone()&&n)F("Install.buildCommand: Buildx standalone found, build with it"),i=!0;else if(!await this.buildx.isStandalone()&&s)F("Install.buildCommand: Buildx plugin found, build with it"),i=!1;else if(n)F("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),i=!0;else if(s)F("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 o=["build","--platform","local","--build-arg","BUILDKIT_CONTEXT_KEEP_GIT_DIR=1","--output",`type=local,dest=${r}`];return process.env.GIT_AUTH_TOKEN&&o.push("--secret","id=GIT_AUTH_TOKEN"),o.push("-f-",e),await new Zt({standalone:i}).getCommand(o)}async verifySignature(e,r){let n=`${r}.sigstore.json`;_(`Downloading keyless verification bundle at ${n}`);let s=await Oi(n,void 0,this.githubToken);F(`Install.verifySignature bundlePath: ${s}`);let i=await this.sigstore.verifyArtifact(e,s,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});_(`Cosign binary signature verified! ${i.tlogID?`${Ff}?logIndex=${i.tlogID}`:""}`)}filename(){let e;switch(ea.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=ea.default.arch();break}}let r=ea.default.platform()=="win32"?"windows":ea.default.platform(),n=ea.default.platform()=="win32"?".exe":"";return U0e.format("cosign-%s-%s%s",r,e,n)}async vspec(e){if(!Ct.isValidRef(e)){let u=e.replace(/^v+|v+$/g,"");return _(`Use ${u} version spec cache key for ${e}`),u}let[r,n]=e.split("#");n.length==0&&(n="master");let s;n.match(/^[0-9a-fA-F]{40}$/)?s=n:s=await Zu.remoteSha(r,n,process.env.GIT_AU
`,sepLabels:Is("sep-labels",{trimWhitespace:!1})||`
`,sepAnnotations:Is("sep-annotations",{trimWhitespace:!1})||`
`,bakeTarget:Is("bake-target")||"docker-metadata-action",githubToken:Is("github-token")}}async function Pxe(t,e){switch(t){case"workflow":return await nXt(e);case"git":return await sXt();default:throw new Error(`Invalid context source: ${t}`)}}async function nXt(t){let e=yt.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 iXt(e.sha,t),...e}}async function sXt(){let t=await Zu.context();return{commitDate:await Zu.commitDate(t.sha),...t}}async function iXt(t,e){let r=yt.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:yt.context.repo.owner,repo:yt.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 F(`Failed to get commit date from GitHub API: ${n.message}`),new Date}}var rl=x(PV(),1),_He=x(require("fs"),1),WHe=x(require("path"),1),W4=x(Vxe(),1),ai=x(IHe(),1),Xg=x(ws(),1);var ct=class t extends Error{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 o in i){let a=i[o];this[o]=Buffer.isBuffer(a)?a.toString(n.encoding):a==null?a:JSON.parse(JSON.stringify(a))}}};var _4=function(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)};var Nx=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(_4(s)){if(typeof s.name!="string")throw new ct("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 ct("CSV_INVALID_COLUMN_DEFINITION",["Invalid column definition:","expect a string or a literal object,",`got ${JSON.stringify(s)} at position ${r}`])}return e};var Ane=class{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}},dne=Ane;var RHe=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:Array.isArray(t.columns)?t.columns.length:void 0,field:new dne(20),firstLineToHeaders:t.cast_first_line_to_header,needMoreDataSize:Math.max(t.comment!==null?t.comment.length:0,...t.delimiter?t.delimiter.map(n=>n.length):[],t.delimiter_auto?1:0
`,o).length:l,u?(a===null?0:a.length)+c.length:0,u?c.length+l:0);return A<f},parse:function(n,s,i,o){let{bom:a,comment_no_infix:c,delimiter_auto:u,encoding:p,from_line:l,ltrim:A,max_record_size:f,raw:M,relax_quotes:g,rtrim:y,skip_empty_lines:O,to:C,to_line:q}=this.options,{comment:R,escape:S,quote:T,record_delimiter:L}=this.options,{bomSkipped:j,delimiterDiscovered:Me,delimiterBufPrevious:Be,rawBuffer:K,escapeIsQuote:De}=this.state;if(!Me&&u){let ge;if(Be===void 0?ge=n:Be!==void 0&&n===void 0?ge=Be:ge=Buffer.concat([Be,n]),n=void 0,s||ge.length>u.size)this.options.delimiter=[Buffer.from(SHe(ge,this.options.delimiter_auto))],this.state.previousBuf=ge,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=ge;return}}let{previousBuf:$}=this.state,Y;if($===void 0)if(n===void 0){o();return}else Y=n;else $!==void 0&&n===void 0?Y=$:Y=Buffer.concat([$,n]);if(j===!1)if(a===!1)this.state.bomSkipped=!0;else if(Y.length<3){if(s===!1){this.state.previousBuf=Y;return}}else{for(let ge in Hg)if(Hg[ge].compare(Y,0,Hg[ge].length)===0){let ot=Hg[ge].length;this.state.bufBytesStart+=ot,Y=Y.slice(ot);let Wt=Gg({...this.original_options,encoding:ge});for(let Le in Wt)this.options[Le]=Wt[Le];({comment:R,escape:S,quote:T}=this.options);break}this.state.bomSkipped=!0}let Se=Y.length,te;for(te=0;te<Se&&!this.__needMoreData(te,Se,s);te++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),q!==-1&&this.info.lines>q){this.state.stop=!0,o();return}this.state.quoting===!1&&L.length===0&&this.__autoDiscoverRecordDelimiter(Y,te)&&(L=this.options.record_delimiter);let ge=Y[te];if(M===!0&&K.append(ge),(ge===$n0||ge===Yn0)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(S!==null&&this.state.quoting===!0&&this.__isEscape(Y,te,ge)&&te+S.length<Se)if(De){if(this.__isQuote(Y,te+S.length)){this.state.escaping=!0,te+=S.length-1;continue}}else{this.state.escaping=!0,te+=S.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(Y,te))if(this.state.quoting===!0){let Le=Y[te+T.length],n0=y&&this.__isCharTrimable(Y,te+T.length),It=R!==null&&this.__compareBytes(R,Y,te+T.length,Le),ae=this.__isDelimiter(Y,te+T.length,Le),ci=L.length===0?this.__autoDiscoverRecordDelimiter(Y,te+T.length):this.__isRecordDelimiter(Le,Y,te+T.length);if(S!==null&&this.__isEscape(Y,te,ge)&&this.__isQuote(Y,te+S.length))te+=S.length-1;else if(!Le||ae||ci||It||n0){this.state.quoting=!1,this.state.wasQuoting=!0,te+=T.length-1;continue}else if(g===!1){let wn=this.__error(new ct("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(Le)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(wn!==void 0)return wn}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(T),te+=T.length-1}else if(this.state.field.length!==0){if(g===!1){let Le=this.__infoField(),n0=Object.keys(Hg).map(ae=>Hg[ae].equals(this.state.field.toString())?ae:!1).filter(Boolean)[0],It=this.__error(new ct("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(Le.column)} at line ${Le.lines}, value is ${JSON.stringify(this.state.field.toString(p))}`,n0?`(${n0} bom)`:void 0],this.options,Le,{field:this.state.field}));if(It!==void 0)return It}}else{this.state.quoting=!0,te+=T.length-1;continue}if(this.state.quoting===!1){let Le=this.__isRecordDelimiter(ge,Y,te);if(Le!==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(),te+=Le-1;continue}if(O===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,te+=Le-1;continue}this.info.bytes=this.state.bufBytesStart+te;let ae=this.__onFi
`,i),Buffer.from(`
`,i),Buffer.from("\r",i)];e:for(let a=0;a<o.length;a++){let c=o[a].length;for(let u=0;u<c;u++)if(o[a][u]!==n[s+u])continue e;return this.options.record_delimiter.push(o[a]),this.state.recordDelimiterMaxLength=o[a].length,o[a].length}return 0},__error:function(n){let{encoding:s,raw:i,skip_records_with_error:o}=this.options,a=typeof n=="string"?new Error(n):n;if(o){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(a,i?this.state.rawBuffer.toString(s):void 0)}catch(c){return c}return}else return a},__infoDataSet:function(){return{...this.info,columns:this.options.columns}},__infoRecord: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}},__infoField: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}}}};var $f=function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],n=vx(e),s=a=>{n.options.objname===void 0?r.push(a):r[a[0]]=a[1]},i=()=>{},o=n.parse(t,!0,s,i);if(o!==void 0)throw o;return r};function FHe(t){let e=[];if(t.length==1){let r=!1,n=$f(t[0],{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let s of n){let i=s.toString().split("=").map(o=>o.trim());if(i.length==1)e.push({name:i[0],enable:!0});else{r=!0;break}}if(!r)return vHe(e)}e=[];for(let r of t){let n={name:"",enable:!0},s=$f(r,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let i of s){let o=i.toString().split("=").map(a=>a.trim());if(o.length==1)n.name=o[0];else{let a=o[0].toLowerCase(),c=o[1];switch(a){case"name":{n.name=c;break}case"enable":{if(!["true","false"].includes(c))throw new Error(`Invalid enable attribute value: ${r}`);n.enable=/true/i.test(c);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 vHe(e)}function vHe(t){vd("Processing images input");for(let e of t)_(`name=${e.name},enable=${e.enable}`);return Fd(),t}var hne=(c=>(c.Schedule="schedule",c.Semver="semver",c.Pep440="pep440",c.Match="match",c.Edge="edge",c.Ref="ref",c.Raw="raw",c.Sha="sha",c))(hne||{}),Fx=(n=>(n.Branch="branch",n.Tag="tag",n.PR="pr",n))(Fx||{}),Tx=(r=>(r.Short="short",r.Long="long",r))(Tx||{}),fne=class{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(",")}},Kn0={schedule:"1000",semver:"900",pep440:"900",match:"800",edge:"700",ref:"600",raw:"200",sha:"100"};function THe(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(Zn0(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);vd("Processing tags input");for(let n of r)_(n.toString());return Fd(),r}function Zn0(t){let e=$f(t,{relaxColumnCount:!0,skipEmptyLines:!0})[0],r=new fne;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(),o=s[1];switch(i){case"type":{if(!Object.values(hne).includes(o))throw new Error(`Unknown tag type attribute: ${o}`);r.type=o;break}default:{r.attrs[i]=o;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.hasOwnProperty.call(r.attrs,"value")||(r.attrs.value=""),Object.prototype.hasOwnProperty.call(r.attrs,"match")||(r.attrs.match="");break}case"match":{if(!Object.prototype.hasOwnProperty.call(r.attrs,"pattern"))throw new Error(`Mis
/*! 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