chore: update generated content

This commit is contained in:
github-actions[bot] committed 2026-04-24 13:23:15 +00:00
1 parent d3d29bf6e5
commit dd9d159ab0
3 files changed
+197 -110

No files matched your search

Generated Vendored
+124 -100
View File
@@ -1,82 +1,82 @@
var DK=Object.create;var KI=Object.defineProperty;var _K=Object.getOwnPropertyDescriptor;var LK=Object.getOwnPropertyNames;var MK=Object.getPrototypeOf,FK=Object.prototype.hasOwnProperty;var h=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),UK=(t,e)=>{for(var r in e)KI(t,r,{get:e[r],enumerable:!0})},OK=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of LK(e))!FK.call(t,n)&&n!==r&&KI(t,n,{get:()=>e[n],enumerable:!(s=_K(e,n))||s.enumerable});return t};var b=(t,e,r)=>(r=t!=null?DK(MK(t)):{},OK(e||!t||!t.__esModule?KI(r,"default",{value:t,enumerable:!0}):r,t));var vD=h(Pc=>{"use strict";var oDe=require("net"),YK=require("tls"),rB=require("http"),RD=require("https"),$K=require("events"),aDe=require("assert"),JK=require("util");Pc.httpOverHttp=WK;Pc.httpsOverHttp=jK;Pc.httpOverHttps=KK;Pc.httpsOverHttps=XK;function WK(t){var e=new Ri(t);return e.request=rB.request,e}function jK(t){var e=new Ri(t);return e.request=rB.request,e.createSocket=TD,e.defaultPort=443,e}function KK(t){var e=new Ri(t);return e.request=RD.request,e}function XK(t){var e=new Ri(t);return e.request=RD.request,e.createSocket=TD,e.defaultPort=443,e}function Ri(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||rB.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,n,i,o){for(var a=PD(n,i,o),c=0,l=e.requests.length;c<l;++c){var u=e.requests[c];if(u.host===a.host&&u.port===a.port){e.requests.splice(c,1),u.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)})}JK.inherits(Ri,$K.EventEmitter);Ri.prototype.addRequest=function(e,r,s,n){var i=this,o=sB({request:e},i.options,PD(r,s,n));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",c),a.on("close",l),a.on("agentRemove",l),e.onSocket(a);function c(){i.emit("free",a,o)}function l(u){i.removeSocket(a),a.removeListener("free",c),a.removeListener("close",l),a.removeListener("agentRemove",l)}})};Ri.prototype.createSocket=function(e,r){var s=this,n={};s.sockets.push(n);var i=sB({},s.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")),ho("making CONNECT request");var o=s.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",l),o.once("error",u),o.end();function a(A){A.upgrade=!0}function c(A,d,p){process.nextTick(function(){l(A,d,p)})}function l(A,d,p){if(o.removeAllListeners(),d.removeAllListeners(),A.statusCode!==200){ho("tunneling socket could not be established, statusCode=%d",A.statusCode),d.destroy();var m=new Error("tunneling socket could not be established, statusCode="+A.statusCode);m.code="ECONNRESET",e.request.emit("error",m),s.removeSocket(n);return}if(p.length>0){ho("got illegal response body from proxy"),d.destroy();var m=new Error("got illegal response body from proxy");m.code="ECONNRESET",e.request.emit("error",m),s.removeSocket(n);return}return ho("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=d,r(d)}function u(A){o.removeAllListeners(),ho(`tunneling socket could not be established, cause=%s
`,A.message,A.stack);var d=new Error("tunneling socket could not be established, cause="+A.message);d.code="ECONNRESET",e.request.emit("error",d),s.removeSocket(n)}};Ri.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var s=this.requests.shift();s&&this.createSocket(s,function(n){s.request.onSocket(n)})}};function TD(t,e){var r=this;Ri.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=sB({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),o=YK.connect(0,i);r.sockets[r.sockets.indexOf(s)]=o,e(o)})}function PD(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function sB(t){for(var e=1,r=arguments.length;e<r;++e){var s=arguments[e];if(typeof s=="object")for(var n=Object.keys(s),i=0,o=n.length;i<o;++i){var a=n[i];s[a]!==void 0&&(t[a]=s[a])}}return t}var ho;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?ho=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)}:ho=function(){};Pc.debug=ho});var nB=h((lDe,kD)=>{kD.exports=vD()});var He=h((uDe,DD)=>{DD.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 we=h((ADe,i_)=>{"use strict";var _D=Symbol.for("undici.error.UND_ERR"),ze=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[_D]===!0}[_D]=!0},LD=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),iB=class extends ze{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[LD]===!0}[LD]=!0},MD=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),oB=class extends ze{constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[MD]===!0}[MD]=!0},FD=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),aB=class extends ze{constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[FD]===!0}[FD]=!0},UD=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),cB=class extends ze{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[UD]===!0}[UD]=!0},OD=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),lB=class extends ze{constructor(e,r,s,n){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=n,this.sta Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function m7(t,e){let{headersList:r}=e,s=(r.get("referrer-policy",!0)??"").split(","),n="";if(s.length>0)for(let i=s.length;i!==0;i--){let o=s[i-1].trim();if(XZ.has(o)){n=o;break}}n!==""&&(t.referrerPolicy=n)}function h7(){return"allowed"}function f7(){return"success"}function g7(){return"success"}function E7(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function y7(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&&eb(t.origin)&&!eb(lA(t))&&(e=null);break;case"same-origin":Wm(t,lA(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function qc(t,e){return t}function C7(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:qc(t.domainLookupStartTime,r),domainLookupEndTime:qc(t.domainLookupEndTime,r),connectionStartTime:qc(t.connectionStartTime,r),connectionEndTime:qc(t.connectionEndTime,r),secureConnectionStartTime:qc(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function I7(t){return qc(s7.now(),t)}function B7(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 CL(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function b7(t){return{referrerPolicy:t.referrerPolicy}}function w7(t){let e=t.referrerPolicy;ua(e);let r=null;if(t.referrer==="client"){let a=mL();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let s=ZB(r),n=ZB(r,!0);s.toString().length>4096&&(s=n);let i=Wm(t,s),o=cA(s)&&!cA(t.url);switch(e){case"origin":return n??ZB(r,!0);case"unsafe-url":return s;case"same-origin":return i?n:"no-referrer";case"origin-when-cross-origin":return i?s:n;case"strict-origin-when-cross-origin":{let a=lA(t);return Wm(s,a)?s:cA(s)&&!cA(a)?"no-referrer":n}default:return o?"no-referrer":n}}function ZB(t,e){return ua(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 cA(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 s=new URL(r);return!!(s.protocol==="https:"||s.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(s.hostname)||s.hostname==="localhost"||s.hostname.includes("localhost.")||s.hostname.endsWith(".localhost"))}}function Q7(t,e){if(Jm===void 0)return!0;let r=IL(e);if(r==="no metadata"||r.length===0)return!0;let s=N7(r),n=S7(r,s);for(let i of n){let o=i.algo,a=i.hash,c=Jm.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)),R7(c,a))return!0}return!1}var x7=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function IL(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=x7.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();fL.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}function N7(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let s=t[r];if(s.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;s.algo[3]==="3"&&(e="sha384")}}return e}function S7(t,e){if(t.length===1)return t;let r=0;for(let s=0;s<t.length;++s)t[s].algo===e&&(t[r++]=t[s]);return t.length=r,t}function R7(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}function T7(t){}function Wm(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function P7(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}function v7(t){return t.controller.state==="aborted"}function k7(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function D7(t){return o7[t.toLowerCase()]??t}function _7(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return ua(typeof e=="string"),e}var L7=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function BL(t,e,r=0,s=1){class n{#e;#t;#r;constructor(o,a){this.#e=o, Line truncated
`);function dee(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function pee(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let s=t.charCodeAt(r);if(!(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s===39||s===45||s===95))return!1}return!0}function mee(t,e){Km(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let s=Buffer.from(`--${r}`,"utf8"),n=[],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+s.length).equals(s))i.position+=s.length;else return"failure";if(i.position===t.length-2&&Xm(t,uee,i)||i.position===t.length-4&&Xm(t,Aee,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=hee(t,i);if(a==="failure")return"failure";let{name:c,filename:l,contentType:u,encoding:A}=a;i.position+=2;let d;{let m=t.indexOf(s.subarray(2),i.position);if(m===-1)return"failure";d=t.subarray(i.position,m-4),i.position+=d.length,A==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let p;l!==null?(u??="text/plain",dee(u)||(u=""),p=new cee([d],l,{type:u})):p=see(Buffer.from(d)),Km(DL(c)),Km(typeof p=="string"&&DL(p)||iee(p)),n.push(oee(c,p,l))}}function hee(t,e){let r=null,s=null,n=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:s,contentType:n,encoding:i};let o=Hc(a=>a!==10&&a!==13&&a!==58,t,e);if(o=ab(o,!0,!0,a=>a===9||a===32),!nee.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Hc(a=>a===32||a===9,t,e),ree(o)){case"content-disposition":{if(r=s=null,!Xm(t,lee,e)||(e.position+=17,r=ML(t,e),r===null))return"failure";if(Xm(t,LL,e)){let a=e.position+LL.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,s=ML(t,e),s===null))return"failure"}break}case"content-type":{let a=Hc(c=>c!==10&&c!==13,t,e);a=ab(a,!1,!0,c=>c===9||c===32),n=_L(a);break}case"content-transfer-encoding":{let a=Hc(c=>c!==10&&c!==13,t,e);a=ab(a,!1,!0,c=>c===9||c===32),i=_L(a);break}default:Hc(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function ML(t,e){Km(t[e.position-1]===34);let r=Hc(s=>s!==10&&s!==13&&s!==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 Hc(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function ab(t,e,r,s){let n=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;return n===0&&i===t.length-1?t:t.subarray(n,i+1)}function Xm(t,e,r){if(t.length<e.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[r.position+s])return!1;return!0}FL.exports={multipartFormDataParser:mee,validateBoundary:pee}});var Yc=h((LDe,WL)=>{"use strict";var dA=pe(),{ReadableStreamFrom:fee,isBlobLike:OL,isReadableStreamLike:gee,readableStreamClose:Eee,createDeferredPromise:yee,fullyReadBody:Cee,extractMimeType:Iee,utf8DecodeBytes:HL}=zr(),{FormData:qL}=AA(),{kState:Vc}=fo(),{webidl:Bee}=Gt(),{Blob:bee}=require("node:buffer"),cb=require("node:assert"),{isErrored:zL,isDisturbed:wee}=require("node:stream"),{isArrayBuffer:Qee}=require("node:util/types"),{serializeAMimeType:xee}=wr(),{multipartFormDataParser:Nee}=UL(),lb;try{let t=require("node:crypto");lb=e=>t.randomInt(0,e)}catch{lb=t=>Math.floor(Math.random(t))}var Zm=new TextEncoder;function See(){}var VL=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,YL;VL&&(YL=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!wee(e)&&!zL(e)&&e.cancel("Response object has been garbage collected").catch(See)}));function $L(t,e=!1){let r=null;t instanceof ReadableStream?r=t:OL(t)?r=t.stream():r=new ReadableStream({async pull(c){let l=typeof n=="string"?Zm.encode(n):n;l.byteLength&&c.enqueue(l),queueMicrotask(()=>Eee(c))},start(){},type:"bytes"}),cb(gee(r));let s=null,n=null,i=null,o=null;if(typeof t=="string")n=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)n=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(Qee(t))n=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))n=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(dA.isFormDataLike(t)){let c=`----formdata-undici-0${`${lb(1e11)}`.padStart(11,"0")}`,l=`--${c}\r
var QX=Object.create;var IB=Object.defineProperty;var xX=Object.getOwnPropertyDescriptor;var NX=Object.getOwnPropertyNames;var SX=Object.getPrototypeOf,RX=Object.prototype.hasOwnProperty;var h=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),TX=(t,e)=>{for(var r in e)IB(t,r,{get:e[r],enumerable:!0})},vX=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of NX(e))!RX.call(t,n)&&n!==r&&IB(t,n,{get:()=>e[n],enumerable:!(s=xX(e,n))||s.enumerable});return t};var I=(t,e,r)=>(r=t!=null?QX(SX(t)):{},vX(e||!t||!t.__esModule?IB(r,"default",{value:t,enumerable:!0}):r,t));var p_=h(Hc=>{"use strict";var C_e=require("net"),MX=require("tls"),xB=require("http"),u_=require("https"),OX=require("events"),I_e=require("assert"),FX=require("util");Hc.httpOverHttp=UX;Hc.httpsOverHttp=qX;Hc.httpOverHttps=GX;Hc.httpsOverHttps=HX;function UX(t){var e=new Di(t);return e.request=xB.request,e}function qX(t){var e=new Di(t);return e.request=xB.request,e.createSocket=A_,e.defaultPort=443,e}function GX(t){var e=new Di(t);return e.request=u_.request,e}function HX(t){var e=new Di(t);return e.request=u_.request,e.createSocket=A_,e.defaultPort=443,e}function Di(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||xB.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,n,i,o){for(var a=d_(n,i,o),c=0,l=e.requests.length;c<l;++c){var u=e.requests[c];if(u.host===a.host&&u.port===a.port){e.requests.splice(c,1),u.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)})}FX.inherits(Di,OX.EventEmitter);Di.prototype.addRequest=function(e,r,s,n){var i=this,o=NB({request:e},i.options,d_(r,s,n));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",c),a.on("close",l),a.on("agentRemove",l),e.onSocket(a);function c(){i.emit("free",a,o)}function l(u){i.removeSocket(a),a.removeListener("free",c),a.removeListener("close",l),a.removeListener("agentRemove",l)}})};Di.prototype.createSocket=function(e,r){var s=this,n={};s.sockets.push(n);var i=NB({},s.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")),Io("making CONNECT request");var o=s.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",l),o.once("error",u),o.end();function a(A){A.upgrade=!0}function c(A,d,p){process.nextTick(function(){l(A,d,p)})}function l(A,d,p){if(o.removeAllListeners(),d.removeAllListeners(),A.statusCode!==200){Io("tunneling socket could not be established, statusCode=%d",A.statusCode),d.destroy();var m=new Error("tunneling socket could not be established, statusCode="+A.statusCode);m.code="ECONNRESET",e.request.emit("error",m),s.removeSocket(n);return}if(p.length>0){Io("got illegal response body from proxy"),d.destroy();var m=new Error("got illegal response body from proxy");m.code="ECONNRESET",e.request.emit("error",m),s.removeSocket(n);return}return Io("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=d,r(d)}function u(A){o.removeAllListeners(),Io(`tunneling socket could not be established, cause=%s
`,A.message,A.stack);var d=new Error("tunneling socket could not be established, cause="+A.message);d.code="ECONNRESET",e.request.emit("error",d),s.removeSocket(n)}};Di.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var s=this.requests.shift();s&&this.createSocket(s,function(n){s.request.onSocket(n)})}};function A_(t,e){var r=this;Di.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=NB({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),o=MX.connect(0,i);r.sockets[r.sockets.indexOf(s)]=o,e(o)})}function d_(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function NB(t){for(var e=1,r=arguments.length;e<r;++e){var s=arguments[e];if(typeof s=="object")for(var n=Object.keys(s),i=0,o=n.length;i<o;++i){var a=n[i];s[a]!==void 0&&(t[a]=s[a])}}return t}var Io;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Io=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)}:Io=function(){};Hc.debug=Io});var dA=h((w_e,m_)=>{m_.exports=p_()});var ze=h((b_e,h_)=>{h_.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 be=h((Q_e,U_)=>{"use strict";var f_=Symbol.for("undici.error.UND_ERR"),Ve=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[f_]===!0}[f_]=!0},g_=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),SB=class extends Ve{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[g_]===!0}[g_]=!0},E_=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),RB=class extends Ve{constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[E_]===!0}[E_]=!0},y_=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),TB=class extends Ve{constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[y_]===!0}[y_]=!0},C_=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),vB=class extends Ve{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[C_]===!0}[C_]=!0},I_=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),PB=class extends Ve{constructor(e,r,s,n){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=n,this.sta Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function iee(t,e){let{headersList:r}=e,s=(r.get("referrer-policy",!0)??"").split(","),n="";if(s.length>0)for(let i=s.length;i!==0;i--){let o=s[i-1].trim();if(H7.has(o)){n=o;break}}n!==""&&(t.referrerPolicy=n)}function oee(){return"allowed"}function aee(){return"success"}function cee(){return"success"}function lee(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function uee(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&&ww(t.origin)&&!ww(IA(t))&&(e=null);break;case"same-origin":dh(t,IA(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Zc(t,e){return t}function Aee(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Zc(t.domainLookupStartTime,r),domainLookupEndTime:Zc(t.domainLookupEndTime,r),connectionStartTime:Zc(t.connectionStartTime,r),connectionEndTime:Zc(t.connectionEndTime,r),secureConnectionStartTime:Zc(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function dee(t){return Zc(J7.now(),t)}function pee(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 tM(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function mee(t){return{referrerPolicy:t.referrerPolicy}}function hee(t){let e=t.referrerPolicy;Ca(e);let r=null;if(t.referrer==="client"){let a=WL();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let s=Bw(r),n=Bw(r,!0);s.toString().length>4096&&(s=n);let i=dh(t,s),o=CA(s)&&!CA(t.url);switch(e){case"origin":return n??Bw(r,!0);case"unsafe-url":return s;case"same-origin":return i?n:"no-referrer";case"origin-when-cross-origin":return i?s:n;case"strict-origin-when-cross-origin":{let a=IA(t);return dh(s,a)?s:CA(s)&&!CA(a)?"no-referrer":n}default:return o?"no-referrer":n}}function Bw(t,e){return Ca(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 CA(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 s=new URL(r);return!!(s.protocol==="https:"||s.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(s.hostname)||s.hostname==="localhost"||s.hostname.includes("localhost.")||s.hostname.endsWith(".localhost"))}}function fee(t,e){if(Ah===void 0)return!0;let r=rM(e);if(r==="no metadata"||r.length===0)return!0;let s=Eee(r),n=yee(r,s);for(let i of n){let o=i.algo,a=i.hash,c=Ah.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)),Cee(c,a))return!0}return!1}var gee=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function rM(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=gee.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();KL.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}function Eee(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let s=t[r];if(s.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;s.algo[3]==="3"&&(e="sha384")}}return e}function yee(t,e){if(t.length===1)return t;let r=0;for(let s=0;s<t.length;++s)t[s].algo===e&&(t[r++]=t[s]);return t.length=r,t}function Cee(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}function Iee(t){}function dh(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function Bee(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}function wee(t){return t.controller.state==="aborted"}function bee(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function Qee(t){return K7[t.toLowerCase()]??t}function xee(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Ca(typeof e=="string"),e}var Nee=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function sM(t,e,r=0,s=1){class n{#e;#t;#r; Line truncated
`);function ste(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function nte(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let s=t.charCodeAt(r);if(!(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s===39||s===45||s===95))return!1}return!0}function ite(t,e){mh(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let s=Buffer.from(`--${r}`,"utf8"),n=[],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+s.length).equals(s))i.position+=s.length;else return"failure";if(i.position===t.length-2&&hh(t,tte,i)||i.position===t.length-4&&hh(t,rte,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=ote(t,i);if(a==="failure")return"failure";let{name:c,filename:l,contentType:u,encoding:A}=a;i.position+=2;let d;{let m=t.indexOf(s.subarray(2),i.position);if(m===-1)return"failure";d=t.subarray(i.position,m-4),i.position+=d.length,A==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let p;l!==null?(u??="text/plain",ste(u)||(u=""),p=new Zee([d],l,{type:u})):p=Jee(Buffer.from(d)),mh(hM(c)),mh(typeof p=="string"&&hM(p)||jee(p)),n.push(Kee(c,p,l))}}function ote(t,e){let r=null,s=null,n=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:s,contentType:n,encoding:i};let o=tl(a=>a!==10&&a!==13&&a!==58,t,e);if(o=Tw(o,!0,!0,a=>a===9||a===32),!Wee.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,tl(a=>a===32||a===9,t,e),Yee(o)){case"content-disposition":{if(r=s=null,!hh(t,ete,e)||(e.position+=17,r=EM(t,e),r===null))return"failure";if(hh(t,gM,e)){let a=e.position+gM.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,s=EM(t,e),s===null))return"failure"}break}case"content-type":{let a=tl(c=>c!==10&&c!==13,t,e);a=Tw(a,!1,!0,c=>c===9||c===32),n=fM(a);break}case"content-transfer-encoding":{let a=tl(c=>c!==10&&c!==13,t,e);a=Tw(a,!1,!0,c=>c===9||c===32),i=fM(a);break}default:tl(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function EM(t,e){mh(t[e.position-1]===34);let r=tl(s=>s!==10&&s!==13&&s!==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 tl(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function Tw(t,e,r,s){let n=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;return n===0&&i===t.length-1?t:t.subarray(n,i+1)}function hh(t,e,r){if(t.length<e.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[r.position+s])return!1;return!0}yM.exports={multipartFormDataParser:ite,validateBoundary:nte}});var nl=h((j_e,TM)=>{"use strict";var bA=me(),{ReadableStreamFrom:ate,isBlobLike:IM,isReadableStreamLike:cte,readableStreamClose:lte,createDeferredPromise:ute,fullyReadBody:Ate,extractMimeType:dte,utf8DecodeBytes:bM}=$r(),{FormData:BM}=wA(),{kState:sl}=Bo(),{webidl:pte}=Ht(),{Blob:mte}=require("node:buffer"),vw=require("node:assert"),{isErrored:QM,isDisturbed:hte}=require("node:stream"),{isArrayBuffer:fte}=require("node:util/types"),{serializeAMimeType:gte}=Nr(),{multipartFormDataParser:Ete}=CM(),Pw;try{let t=require("node:crypto");Pw=e=>t.randomInt(0,e)}catch{Pw=t=>Math.floor(Math.random(t))}var fh=new TextEncoder;function yte(){}var xM=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,NM;xM&&(NM=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!hte(e)&&!QM(e)&&e.cancel("Response object has been garbage collected").catch(yte)}));function SM(t,e=!1){let r=null;t instanceof ReadableStream?r=t:IM(t)?r=t.stream():r=new ReadableStream({async pull(c){let l=typeof n=="string"?fh.encode(n):n;l.byteLength&&c.enqueue(l),queueMicrotask(()=>lte(c))},start(){},type:"bytes"}),vw(cte(r));let s=null,n=null,i=null,o=null;if(typeof t=="string")n=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)n=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(fte(t))n=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))n=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(bA.isFormDataLike(t)){let c=`----formdata-undici-0${`${Pw(1e11)}`.padStart(11,"0")}`,l=`--${c}\r
Content-Disposition: form-data`;let u=y=>y.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),A=y=>y.replace(/\r?\n|\r/g,`\r
`),d=[],p=new Uint8Array([13,10]);i=0;let m=!1;for(let[y,g]of t)if(typeof g=="string"){let E=Zm.encode(l+`; name="${u(A(y))}"\r
`),d=[],p=new Uint8Array([13,10]);i=0;let m=!1;for(let[y,g]of t)if(typeof g=="string"){let E=fh.encode(l+`; name="${u(A(y))}"\r
\r
${A(g)}\r
`);d.push(E),i+=E.byteLength}else{let E=Zm.encode(`${l}; name="${u(A(y))}"`+(g.name?`; filename="${u(g.name)}"`:"")+`\r
`);d.push(E),i+=E.byteLength}else{let E=fh.encode(`${l}; name="${u(A(y))}"`+(g.name?`; filename="${u(g.name)}"`:"")+`\r
Content-Type: ${g.type||"application/octet-stream"}\r
\r
`);d.push(E,g,p),typeof g.size=="number"?i+=E.byteLength+g.size+p.byteLength:m=!0}let f=Zm.encode(`--${c}--\r
`);d.push(f),i+=f.byteLength,m&&(i=null),n=t,s=async function*(){for(let y of d)y.stream?yield*y.stream():yield y},o=`multipart/form-data; boundary=${c}`}else if(OL(t))n=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(dA.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:fee(t)}if((typeof n=="string"||dA.isBuffer(n))&&(i=Buffer.byteLength(n)),s!=null){let c;r=new ReadableStream({async start(){c=s(t)[Symbol.asyncIterator]()},async pull(l){let{value:u,done:A}=await c.next();if(A)queueMicrotask(()=>{l.close(),l.byobRequest?.respond(0)});else if(!zL(r)){let d=new Uint8Array(u);d.byteLength&&l.enqueue(d)}return l.desiredSize>0},async cancel(l){await c.return()},type:"bytes"})}return[{stream:r,source:n,length:i},o]}function Ree(t,e=!1){return t instanceof ReadableStream&&(cb(!dA.isDisturbed(t),"The body has already been consumed."),cb(!t.locked,"The stream is locked.")),$L(t,e)}function Tee(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}function Pee(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function vee(t){return{blob(){return zc(this,r=>{let s=GL(this);return s===null?s="":s&&(s=xee(s)),new bee([r],{type:s})},t)},arrayBuffer(){return zc(this,r=>new Uint8Array(r).buffer,t)},text(){return zc(this,HL,t)},json(){return zc(this,Dee,t)},formData(){return zc(this,r=>{let s=GL(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=Nee(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new qL;return i[Vc]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new qL;for(let[o,a]of n)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 zc(this,r=>new Uint8Array(r),t)}}}function kee(t){Object.assign(t.prototype,vee(t))}async function zc(t,e,r){if(Bee.brandCheck(t,r),JL(t))throw new TypeError("Body is unusable: Body has already been read");Pee(t[Vc]);let s=yee(),n=o=>s.reject(o),i=o=>{try{s.resolve(e(o))}catch(a){n(a)}};return t[Vc].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await Cee(t[Vc].body,i,n),s.promise)}function JL(t){let e=t[Vc].body;return e!=null&&(e.stream.locked||dA.isDisturbed(e.stream))}function Dee(t){return JSON.parse(HL(t))}function GL(t){let e=t[Vc].headersList,r=Iee(e);return r==="failure"?null:r}WL.exports={extractBody:$L,safelyExtractBody:Ree,cloneBody:Tee,mixinBody:kee,streamRegistry:YL,hasFinalizationRegistry:VL,bodyUnusable:JL}});var oM=h((MDe,iM)=>{"use strict";var K=require("node:assert"),re=pe(),{channels:jL}=kc(),ub=VB(),{RequestContentLengthMismatchError:Aa,ResponseContentLengthMismatchError:_ee,RequestAbortedError:rM,HeadersTimeoutError:Lee,HeadersOverflowError:Mee,SocketError:ih,InformationalError:$c,BodyTimeoutError:Fee,HTTPParserError:Uee,ResponseExceededMaxSizeError:Oee}=we(),{kUrl:sM,kReset:Qr,kClient:mb,kParser:Ze,kBlocking:hA,kRunning:$t,kPending:qee,kSize:KL,kWriting:Eo,kQueue:Ws,kNoRef:pA,kKeepAliveDefaultTimeout:Gee,kHostHeader:Hee,kPendingIdx:zee,kRunningIdx:Es,kError:ys,kPipelining:sh,kSocket:Jc,kKeepAliveTimeoutValue:oh,kMaxHeadersSize:Ab,kKeepAliveMaxTimeout:Vee,kKeepAliveTimeoutThreshold:Yee,kHeadersTimeout:$ee,kBodyTimeout:Jee,kStrictContentLength:hb,kMaxRequests:XL,kCounter:Wee,kMaxResponseSize:jee,kOnError:Kee,kResume:go,kHTTPContext:nM}=He(),Rn=Y_(),Xee=Buffer.alloc(0),eh=Buffer[Symbol.species],th=re.addListener,Zee=re.removeAllListeners,db;async function ete(){let t=process.env.JEST_WORKER_ID?JB():void 0,e;try{e=await WebAssembly.compile(W_())}catch{e=await WebAssembly.compile(t||JB())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,n)=>0,wasm_on_status:(r,s,n)=>{K(xt.ptr===r);let i=s-Pn+Tn.byteOffset;return xt.onStatus(new eh(Tn.buffer,i,n))||0},wasm_on_message_begin:r=>(K(xt.ptr===r),xt.onMessageBegin()||0),wasm_on_header_field:(r,s,n)=>{K(xt.ptr===r);let i=s-Pn+Tn.byteOffset;return xt.onHeaderField(new eh(Tn.buffer,i,n))||0},wasm_on_header_value:(r,s,n)=>{K(xt.ptr===r);let i=s-Pn+Tn.byteOffset;return xt.onHeaderValue(new eh(Tn.buffer,i,n))||0},wasm_on_headers_complete:(r,s,n,i)=>(K(xt.ptr===r),xt.onHeadersComplete(s,!!n,!!i)||0),wasm_on_body:(r,s,n)=>{K(xt.ptr===r);let i=s-Pn+Tn.byteOffset;return xt.onBody(new eh(Tn.buffer,i,n))||0},wasm_on_message_complete:r=>(K(xt.ptr===r),xt.onMessageComplete()||0)}})}var pb=null,fb=ete();fb.catch();var xt=null,Tn=null,rh=0,Pn=null,tte=0,mA=1,Wc=2|mA,nh=4|mA,gb=8|tte,Eb=class{constructor(e,r,{exports:s}){K(Number.isFinite(e[Ab])&&e[Ab]>0),this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(Rn.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMa Line truncated
`);d.push(E,g,p),typeof g.size=="number"?i+=E.byteLength+g.size+p.byteLength:m=!0}let f=fh.encode(`--${c}--\r
`);d.push(f),i+=f.byteLength,m&&(i=null),n=t,s=async function*(){for(let y of d)y.stream?yield*y.stream():yield y},o=`multipart/form-data; boundary=${c}`}else if(IM(t))n=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(bA.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:ate(t)}if((typeof n=="string"||bA.isBuffer(n))&&(i=Buffer.byteLength(n)),s!=null){let c;r=new ReadableStream({async start(){c=s(t)[Symbol.asyncIterator]()},async pull(l){let{value:u,done:A}=await c.next();if(A)queueMicrotask(()=>{l.close(),l.byobRequest?.respond(0)});else if(!QM(r)){let d=new Uint8Array(u);d.byteLength&&l.enqueue(d)}return l.desiredSize>0},async cancel(l){await c.return()},type:"bytes"})}return[{stream:r,source:n,length:i},o]}function Cte(t,e=!1){return t instanceof ReadableStream&&(vw(!bA.isDisturbed(t),"The body has already been consumed."),vw(!t.locked,"The stream is locked.")),SM(t,e)}function Ite(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}function Bte(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function wte(t){return{blob(){return rl(this,r=>{let s=wM(this);return s===null?s="":s&&(s=gte(s)),new mte([r],{type:s})},t)},arrayBuffer(){return rl(this,r=>new Uint8Array(r).buffer,t)},text(){return rl(this,bM,t)},json(){return rl(this,Qte,t)},formData(){return rl(this,r=>{let s=wM(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=Ete(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new BM;return i[sl]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new BM;for(let[o,a]of n)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 rl(this,r=>new Uint8Array(r),t)}}}function bte(t){Object.assign(t.prototype,wte(t))}async function rl(t,e,r){if(pte.brandCheck(t,r),RM(t))throw new TypeError("Body is unusable: Body has already been read");Bte(t[sl]);let s=ute(),n=o=>s.reject(o),i=o=>{try{s.resolve(e(o))}catch(a){n(a)}};return t[sl].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await Ate(t[sl].body,i,n),s.promise)}function RM(t){let e=t[sl].body;return e!=null&&(e.stream.locked||bA.isDisturbed(e.stream))}function Qte(t){return JSON.parse(bM(t))}function wM(t){let e=t[sl].headersList,r=dte(e);return r==="failure"?null:r}TM.exports={extractBody:SM,safelyExtractBody:Cte,cloneBody:Ite,mixinBody:bte,streamRegistry:NM,hasFinalizationRegistry:xM,bodyUnusable:RM}});var qM=h((K_e,UM)=>{"use strict";var K=require("node:assert"),se=me(),{channels:vM}=Vc(),kw=mw(),{RequestContentLengthMismatchError:Ia,ResponseContentLengthMismatchError:xte,RequestAbortedError:MM,HeadersTimeoutError:Nte,HeadersOverflowError:Ste,SocketError:Bh,InformationalError:il,BodyTimeoutError:Rte,HTTPParserError:Tte,ResponseExceededMaxSizeError:vte}=be(),{kUrl:OM,kReset:Sr,kClient:Mw,kParser:Ze,kBlocking:NA,kRunning:Jt,kPending:Pte,kSize:PM,kWriting:bo,kQueue:Zs,kNoRef:QA,kKeepAliveDefaultTimeout:kte,kHostHeader:Dte,kPendingIdx:_te,kRunningIdx:Cs,kError:Is,kPipelining:Ch,kSocket:ol,kKeepAliveTimeoutValue:wh,kMaxHeadersSize:Dw,kKeepAliveMaxTimeout:Lte,kKeepAliveTimeoutThreshold:Mte,kHeadersTimeout:Ote,kBodyTimeout:Fte,kStrictContentLength:Ow,kMaxRequests:kM,kCounter:Ute,kMaxResponseSize:qte,kOnError:Gte,kResume:wo,kHTTPContext:FM}=ze(),kn=NL(),Hte=Buffer.alloc(0),gh=Buffer[Symbol.species],Eh=se.addListener,zte=se.removeAllListeners,_w;async function Vte(){let t=process.env.JEST_WORKER_ID?gw():void 0,e;try{e=await WebAssembly.compile(TL())}catch{e=await WebAssembly.compile(t||gw())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,n)=>0,wasm_on_status:(r,s,n)=>{K(Nt.ptr===r);let i=s-_n+Dn.byteOffset;return Nt.onStatus(new gh(Dn.buffer,i,n))||0},wasm_on_message_begin:r=>(K(Nt.ptr===r),Nt.onMessageBegin()||0),wasm_on_header_field:(r,s,n)=>{K(Nt.ptr===r);let i=s-_n+Dn.byteOffset;return Nt.onHeaderField(new gh(Dn.buffer,i,n))||0},wasm_on_header_value:(r,s,n)=>{K(Nt.ptr===r);let i=s-_n+Dn.byteOffset;return Nt.onHeaderValue(new gh(Dn.buffer,i,n))||0},wasm_on_headers_complete:(r,s,n,i)=>(K(Nt.ptr===r),Nt.onHeadersComplete(s,!!n,!!i)||0),wasm_on_body:(r,s,n)=>{K(Nt.ptr===r);let i=s-_n+Dn.byteOffset;return Nt.onBody(new gh(Dn.buffer,i,n))||0},wasm_on_message_complete:r=>(K(Nt.ptr===r),Nt.onMessageComplete()||0)}})}var Lw=null,Fw=Vte();Fw.catch();var Nt=null,Dn=null,yh=0,_n=null,$te=0,xA=1,al=2|xA,Ih=4|xA,Uw=8|$te,qw=class{constructor(e,r,{exports:s}){K(Number.isFinite(e[Dw])&&e[Dw]>0),this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(kn.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMa Line truncated
`;if(typeof n=="string"?f+=`host: ${n}\r
`:f+=t[Hee],i?f+=`connection: upgrade\r
`:f+=t[Dte],i?f+=`connection: upgrade\r
upgrade: ${i}\r
`:t[sh]&&!p[Qr]?f+=`connection: keep-alive\r
`:t[Ch]&&!p[Sr]?f+=`connection: keep-alive\r
`:f+=`connection: close\r
`,Array.isArray(l))for(let y=0;y<l.length;y+=2){let g=l[y+0],E=l[y+1];if(Array.isArray(E))for(let C=0;C<E.length;C++)f+=`${g}: ${E[C]}\r
`;else f+=`${g}: ${E}\r
`}return jL.sendHeaders.hasSubscribers&&jL.sendHeaders.publish({request:e,headers:f,socket:p}),!c||d===0?eM(m,null,t,e,p,u,f,A):re.isBuffer(c)?eM(m,c,t,e,p,u,f,A):re.isBlobLike(c)?typeof c.stream=="function"?tM(m,c.stream(),t,e,p,u,f,A):ate(m,c,t,e,p,u,f,A):re.isStream(c)?ote(m,c,t,e,p,u,f,A):re.isIterable(c)?tM(m,c,t,e,p,u,f,A):K(!1),!0}function ote(t,e,r,s,n,i,o,a){K(i!==0||r[$t]===0,"stream body cannot be pipelined");let c=!1,l=new ah({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(m){if(!c)try{!l.write(m)&&this.pause&&this.pause()}catch(f){re.destroy(this,f)}},A=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",p)}),!c){let m=new rM;queueMicrotask(()=>p(m))}},p=function(m){if(!c){if(c=!0,K(n.destroyed||n[Eo]&&r[$t]<=1),n.off("drain",A).off("error",p),e.removeListener("data",u).removeListener("end",p).removeListener("close",d),!m)try{l.end()}catch(f){m=f}l.destroy(m),m&&(m.code!=="UND_ERR_INFO"||m.message!=="reset")?re.destroy(e,m):re.destroy(e)}};e.on("data",u).on("end",p).on("error",p).on("close",d),e.resume&&e.resume(),n.on("drain",A).on("error",p),e.errorEmitted??e.errored?setImmediate(()=>p(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>p(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function eM(t,e,r,s,n,i,o,a){try{e?re.isBuffer(e)&&(K(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
`}return vM.sendHeaders.hasSubscribers&&vM.sendHeaders.publish({request:e,headers:f,socket:p}),!c||d===0?_M(m,null,t,e,p,u,f,A):se.isBuffer(c)?_M(m,c,t,e,p,u,f,A):se.isBlobLike(c)?typeof c.stream=="function"?LM(m,c.stream(),t,e,p,u,f,A):Xte(m,c,t,e,p,u,f,A):se.isStream(c)?Kte(m,c,t,e,p,u,f,A):se.isIterable(c)?LM(m,c,t,e,p,u,f,A):K(!1),!0}function Kte(t,e,r,s,n,i,o,a){K(i!==0||r[Jt]===0,"stream body cannot be pipelined");let c=!1,l=new bh({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(m){if(!c)try{!l.write(m)&&this.pause&&this.pause()}catch(f){se.destroy(this,f)}},A=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",p)}),!c){let m=new MM;queueMicrotask(()=>p(m))}},p=function(m){if(!c){if(c=!0,K(n.destroyed||n[bo]&&r[Jt]<=1),n.off("drain",A).off("error",p),e.removeListener("data",u).removeListener("end",p).removeListener("close",d),!m)try{l.end()}catch(f){m=f}l.destroy(m),m&&(m.code!=="UND_ERR_INFO"||m.message!=="reset")?se.destroy(e,m):se.destroy(e)}};e.on("data",u).on("end",p).on("error",p).on("close",d),e.resume&&e.resume(),n.on("drain",A).on("error",p),e.errorEmitted??e.errored?setImmediate(()=>p(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>p(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function _M(t,e,r,s,n,i,o,a){try{e?se.isBuffer(e)&&(K(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(n[Qr]=!0)):i===0?n.write(`${o}content-length: 0\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(n[Sr]=!0)):i===0?n.write(`${o}content-length: 0\r
\r
`,"latin1"):(K(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[go]()}catch(c){t(c)}}async function ate(t,e,r,s,n,i,o,a){K(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Aa;let c=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
`,"latin1")),s.onRequestSent(),r[wo]()}catch(c){t(c)}}async function Xte(t,e,r,s,n,i,o,a){K(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Ia;let c=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"),n.write(c),n.uncork(),s.onBodySent(c),s.onRequestSent(),!a&&s.reset!==!1&&(n[Qr]=!0),r[go]()}catch(c){t(c)}}async function tM(t,e,r,s,n,i,o,a){K(i!==0||r[$t]===0,"iterator body cannot be pipelined");let c=null;function l(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,p)=>{K(c===null),n[ys]?p(n[ys]):c=d});n.on("close",l).on("drain",l);let A=new ah({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(n[ys])throw n[ys];A.write(d)||await u()}A.end()}catch(d){A.destroy(d)}finally{n.off("close",l).off("drain",l)}}var ah=class{constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Eo]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[ys])throw r[ys];if(r.destroyed)return!1;let l=Buffer.byteLength(e);if(!l)return!0;if(n!==null&&o+l>n){if(i[hb])throw new Aa;process.emitWarning(new Aa)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[Qr]=!0),n===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"),n.write(c),n.uncork(),s.onBodySent(c),s.onRequestSent(),!a&&s.reset!==!1&&(n[Sr]=!0),r[wo]()}catch(c){t(c)}}async function LM(t,e,r,s,n,i,o,a){K(i!==0||r[Jt]===0,"iterator body cannot be pipelined");let c=null;function l(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,p)=>{K(c===null),n[Is]?p(n[Is]):c=d});n.on("close",l).on("drain",l);let A=new bh({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(n[Is])throw n[Is];A.write(d)||await u()}A.end()}catch(d){A.destroy(d)}finally{n.off("close",l).off("drain",l)}}var bh=class{constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[bo]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Is])throw r[Is];if(r.destroyed)return!1;let l=Buffer.byteLength(e);if(!l)return!0;if(n!==null&&o+l>n){if(i[Ow])throw new Ia;process.emitWarning(new Ia)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[Sr]=!0),n===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"):r.write(`${c}content-length: ${n}\r
\r
`,"latin1")),n===null&&r.write(`\r
${l.toString(16)}\r
`,"latin1"),this.bytesWritten+=l;let u=r.write(e);return r.uncork(),s.onBodySent(e),u||r[Ze].timeout&&r[Ze].timeoutType===Wc&&r[Ze].timeout.refresh&&r[Ze].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Eo]=!1,e[ys])throw e[ys];if(!e.destroyed){if(n===0?i?e.write(`${o}content-length: 0\r
`,"latin1"),this.bytesWritten+=l;let u=r.write(e);return r.uncork(),s.onBodySent(e),u||r[Ze].timeout&&r[Ze].timeoutType===al&&r[Ze].timeout.refresh&&r[Ze].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[bo]=!1,e[Is])throw e[Is];if(!e.destroyed){if(n===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&n!==r){if(s[hb])throw new Aa;process.emitWarning(new Aa)}e[Ze].timeout&&e[Ze].timeoutType===Wc&&e[Ze].timeout.refresh&&e[Ze].timeout.refresh(),s[go]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[Eo]=!1,e&&(K(s[$t]<=1,"pipeline should only contain this request"),n(e))}};iM.exports=rte});var mM=h((FDe,pM)=>{"use strict";var Cs=require("node:assert"),{pipeline:cte}=require("node:stream"),fe=pe(),{RequestContentLengthMismatchError:yb,RequestAbortedError:aM,SocketError:fA,InformationalError:Cb}=we(),{kUrl:ch,kReset:uh,kClient:jc,kRunning:Ah,kPending:lte,kQueue:yo,kPendingIdx:Ib,kRunningIdx:js,kError:Xs,kSocket:_t,kStrictContentLength:ute,kOnError:Bb,kMaxConcurrentStreams:dM,kHTTP2Session:Ks,kResume:Co,kSize:Ate,kHTTPContext:dte}=He(),_i=Symbol("open streams"),cM,lM=!1,lh;try{lh=require("node:http2")}catch{lh={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:pte,HTTP2_HEADER_METHOD:mte,HTTP2_HEADER_PATH:hte,HTTP2_HEADER_SCHEME:fte,HTTP2_HEADER_CONTENT_LENGTH:gte,HTTP2_HEADER_EXPECT:Ete,HTTP2_HEADER_STATUS:yte}}=lh;function Cte(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}async function Ite(t,e){t[_t]=e,lM||(lM=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=lh.connect(t[ch],{createConnection:()=>e,peerMaxConcurrentStreams:t[dM]});r[_i]=0,r[jc]=t,r[_t]=e,fe.addListener(r,"error",bte),fe.addListener(r,"frameError",wte),fe.addListener(r,"end",Qte),fe.addListener(r,"goaway",xte),fe.addListener(r,"close",function(){let{[jc]:n}=this,{[_t]:i}=n,o=this[_t][Xs]||this[Xs]||new fA("closed",fe.getSocketInfo(i));if(n[Ks]=null,n.destroyed){Cs(n[lte]===0);let a=n[yo].splice(n[js]);for(let c=0;c<a.length;c++){let l=a[c];fe.errorRequest(n,l,o)}}}),r.unref(),t[Ks]=r,e[Ks]=r,fe.addListener(e,"error",function(n){Cs(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Xs]=n,this[jc][Bb](n)}),fe.addListener(e,"end",function(){fe.destroy(this,new fA("other side closed",fe.getSocketInfo(this)))}),fe.addListener(e,"close",function(){let n=this[Xs]||new fA("closed",fe.getSocketInfo(this));t[_t]=null,this[Ks]!=null&&this[Ks].destroy(n),t[Ib]=t[js],Cs(t[Ah]===0),t.emit("disconnect",t[ch],[t],n),t[Co]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return Ste(t,...n)},resume(){Bte(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function Bte(t){let e=t[_t];e?.destroyed===!1&&(t[Ate]===0&&t[dM]===0?(e.unref(),t[Ks].unref()):(e.ref(),t[Ks].ref()))}function bte(t){Cs(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[_t][Xs]=t,this[jc][Bb](t)}function wte(t,e,r){if(r===0){let s=new Cb(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[_t][Xs]=s,this[jc][Bb](s)}}function Qte(){let t=new fA("other side closed",fe.getSocketInfo(this[_t]));this.destroy(t),fe.destroy(this[_t],t)}function xte(t){let e=this[Xs]||new fA(`HTTP/2: "GOAWAY" frame received with code ${t}`,fe.getSocketInfo(this)),r=this[jc];if(r[_t]=null,r[dte]=null,this[Ks]!=null&&(this[Ks].destroy(e),this[Ks]=null),fe.destroy(this[_t],e),r[js]<r[yo].length){let s=r[yo][r[js]];r[yo][r[js]++]=null,fe.errorRequest(r,s,e),r[Ib]=r[js]}Cs(r[Ah]===0),r.emit("disconnect",r[ch],[r],e),r[Co]()}function Nte(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function Ste(t,e){let r=t[Ks],{method:s,path:n,host:i,upgrade:o,expectContinue:a,signal:c,headers:l}=e,{body:u}=e;if(o)return fe.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let A={};for(let B=0;B<l.length;B+=2){let x=l[B+0],k=l[B+1];if(Array.isArray(k))for(let O=0;O<k.length;O++)A[x]?A[x]+=`,${k[O]}`:A[x]=k[O];else A[x]=k}let d,{hostname:p,port:m}=t[ch];A[pte]=i||`${p}${m?`:${m}`:""}`,A[mte]=s;let f=B=>{e.aborted||e.completed||(B=B||new aM,fe.errorRequest(t,e,B),d!=null&&fe.destroy(d,B),fe.destroy(u,B),t[yo][t[js]++]=null,t[Co]())};try{e.onConnect(f)}catch(B){fe.errorRequest(t,e,B)}if(e.aborted)return!1;if(s==="CONNECT")return r.ref(),d=r.request(A,{endStream:!1,signal:c}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[_i],t[yo][t[js]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[_i],t[yo][t[js]++]=null}),d.once("close",()=>{r[_i]-=1,r[_i]===0&&r.unref()}),!0;A[hte]=n,A[fte]="https";let y=s==="PUT"||s==="POST"||s==="PATCH";u&&typeof u.read=="function"&&u.read(0);let g=fe.bodyLength(u);if(fe.isFormDataLike(u)){cM??=Yc().extractBody;let[B,x]=cM(u);A["content-type"]=x,u=B.stream,g=B.length}if(g==null&&(g=e.contentLength),(g===0||!y)&&(g=null),Nte(s)&&g>0&&e.contentLength!=null&&e.contentLength!==g){if(t[ute])return fe.errorRequest(t,e,new yb),!1;process.emitWarning(new yb)}g!=null&&(Cs(u,"no body must not have content length"),A[gte]=`${g}`),r.ref();let E=s==="GET"||s==="HEAD"||u===null;return a?(A[Ete]="100-continue",d=r.request(A,{endStream:E,signal:c}),d.once("c Line truncated
`,this[ere]=c??3e5,this[Zte]=n??3e5,this[tre]=E??!0,this[rre]=B,this[xb]=k,this[Bo]=null,this[are]=de>-1?de:-1,this[lre]=V??100,this[At]=null,this[Zs]=[],this[Mi]=0,this[en]=0,this[CA]=Ee=>Sb(this,Ee),this[cre]=Ee=>xM(this,Ee)}get pipelining(){return this[hh]}set pipelining(e){this[hh]=e,this[CA](!0)}get[bA](){return this[Zs].length-this[en]}get[BA](){return this[en]-this[Mi]}get[IA](){return this[Zs].length-this[Mi]}get[Yte](){return!!this[At]&&!this[Xc]&&!this[At].destroyed}get[Qb](){return!!(this[At]?.busy(null)||this[IA]>=(QM(this)||1)||this[bA]>0)}[Vte](e){NM(this),this.once("connect",e)}[ore](e,r){let s=e.origin||this[kn].origin,n=new Ute(s,e,r);return this[Zs].push(n),this[pa]||(da.bodyLength(n.body)==null&&da.isIterable(n.body)?(this[pa]=1,queueMicrotask(()=>Sb(this))):this[CA](!0)),this[pa]&&this[bo]!==2&&this[Qb]&&(this[bo]=2),this[bo]<2}async[nre](){return new Promise(e=>{this[IA]?this[Bo]=e:e(null)})}async[ire](e){return new Promise(r=>{let s=this[Zs].splice(this[en]);for(let i=0;i<s.length;i++){let o=s[i];da.errorRequest(this,o,e)}let n=()=>{this[Bo]&&(this[Bo](),this[Bo]=null),r(null)};this[At]?(this[At].destroy(e,n),this[At]=null):queueMicrotask(n),this[CA]()})}},dre=mh();function xM(t,e){if(t[BA]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Li(t[en]===t[Mi]);let r=t[Zs].splice(t[Mi]);for(let s=0;s<r.length;s++){let n=r[s];da.errorRequest(t,n,e)}Li(t[IA]===0)}}async function NM(t){Li(!t[Xc]),Li(!t[At]);let{host:e,hostname:r,protocol:s,port:n}=t[kn];if(r[0]==="["){let i=r.indexOf("]");Li(i!==-1);let o=r.substring(1,i);Li(wM.isIP(o)),r=o}t[Xc]=!0,Kc.beforeConnect.hasSubscribers&&Kc.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[At]?.version,servername:t[Io],localAddress:t[yA]},connector:t[EA]});try{let i=await new Promise((o,a)=>{t[EA]({host:e,hostname:r,protocol:s,port:n,servername:t[Io],localAddress:t[yA]},(c,l)=>{c?a(c):o(l)})});if(t.destroyed){da.destroy(i.on("error",BM),new Gte);return}Li(i);try{t[At]=i.alpnProtocol==="h2"?await Are(t,i):await ure(t,i)}catch(o){throw i.destroy().on("error",BM),o}t[Xc]=!1,i[sre]=0,i[xb]=t[xb],i[zte]=t,i[Jte]=null,Kc.connected.hasSubscribers&&Kc.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[At]?.version,servername:t[Io],localAddress:t[yA]},connector:t[EA],socket:i}),t.emit("connect",t[kn],[t])}catch(i){if(t.destroyed)return;if(t[Xc]=!1,Kc.connectError.hasSubscribers&&Kc.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[At]?.version,servername:t[Io],localAddress:t[yA]},connector:t[EA],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Li(t[BA]===0);t[bA]>0&&t[Zs][t[en]].servername===t[Io];){let o=t[Zs][t[en]++];da.errorRequest(t,o,i)}else xM(t,i);t.emit("connectionError",t[kn],[t],i)}t[CA]()}function bM(t){t[bo]=0,t.emit("drain",t[kn],[t])}function Sb(t,e){t[pa]!==2&&(t[pa]=2,pre(t,e),t[pa]=0,t[Mi]>256&&(t[Zs].splice(0,t[Mi]),t[en]-=t[Mi],t[Mi]=0))}function pre(t,e){for(;;){if(t.destroyed){Li(t[bA]===0);return}if(t[Bo]&&!t[IA]){t[Bo](),t[Bo]=null;return}if(t[At]&&t[At].resume(),t[Qb])t[bo]=2;else if(t[bo]===2){e?(t[bo]=1,queueMicrotask(()=>bM(t))):bM(t);continue}if(t[bA]===0||t[BA]>=(QM(t)||1))return;let r=t[Zs][t[en]];if(t[kn].protocol==="https:"&&t[Io]!==r.servername){if(t[BA]>0)return;t[Io]=r.servername,t[At]?.destroy(new qte("servername changed"),()=>{t[At]=null,Sb(t)})}if(t[Xc])return;if(!t[At]){NM(t);return}if(t[At].destroyed||t[At].busy(r))return;!r.aborted&&t[At].write(r)?t[en]++:t[Zs].splice(t[en],1)}}SM.exports=Nb});var Rb=h((HDe,RM)=>{"use strict";var fh=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)}};RM.exports=class{constructor(){this.head=this.tail=new fh}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new fh),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var PM=h((zDe,TM)=>{var{kFree:mre,kConnected:hre,kPending:fre,kQueued:gre,kRunning:Ere,kSize:yre}=He(),ma=Symbol("pool"),Tb=class{constructor(e){this[ma]=e}get connected(){return this[ma][hre]}get free(){return this[ma][mre]}get pending(){return this[ma][fre]}get queued(){return this[ma][gre]}get running(){return this[ma][Ere]}get size(){return this[ma][yre]}};TM.exports=Tb});var Lb=h((VDe,qM)=>{"use strict";var Cre=Mc(),Ire=Rb(),{kConnected:Pb,kSize:vM,kRunning:kM,kPending:DM,kQueued:wA,kBusy:Bre,kFree:bre,kUrl:wre,kClose:Qre,kDestroy:xre,kDispatch:Nre}=He(),Sre=PM(),xr=Symbol("clients"),cr=Symbol("needDrain"),QA=Symbol("queue"),vb=Symbol("closed resolve"),kb=Symbol("onDrain"),_M=Symbol("onConnect"),LM=Symbol("onDisconnect"),MM=Symbol("onConnectionError"),Db=Symbol( Line truncated
`,"latin1"),r!==null&&n!==r){if(s[Ow])throw new Ia;process.emitWarning(new Ia)}e[Ze].timeout&&e[Ze].timeoutType===al&&e[Ze].timeout.refresh&&e[Ze].timeout.refresh(),s[wo]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[bo]=!1,e&&(K(s[Jt]<=1,"pipeline should only contain this request"),n(e))}};UM.exports=Yte});var WM=h((X_e,JM)=>{"use strict";var Bs=require("node:assert"),{pipeline:Zte}=require("node:stream"),fe=me(),{RequestContentLengthMismatchError:Gw,RequestAbortedError:GM,SocketError:SA,InformationalError:Hw}=be(),{kUrl:Qh,kReset:Nh,kClient:cl,kRunning:Sh,kPending:ere,kQueue:Qo,kPendingIdx:zw,kRunningIdx:en,kError:rn,kSocket:Lt,kStrictContentLength:tre,kOnError:Vw,kMaxConcurrentStreams:YM,kHTTP2Session:tn,kResume:xo,kSize:rre,kHTTPContext:sre}=ze(),Ui=Symbol("open streams"),HM,zM=!1,xh;try{xh=require("node:http2")}catch{xh={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:nre,HTTP2_HEADER_METHOD:ire,HTTP2_HEADER_PATH:ore,HTTP2_HEADER_SCHEME:are,HTTP2_HEADER_CONTENT_LENGTH:cre,HTTP2_HEADER_EXPECT:lre,HTTP2_HEADER_STATUS:ure}}=xh;function Are(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}async function dre(t,e){t[Lt]=e,zM||(zM=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=xh.connect(t[Qh],{createConnection:()=>e,peerMaxConcurrentStreams:t[YM]});r[Ui]=0,r[cl]=t,r[Lt]=e,fe.addListener(r,"error",mre),fe.addListener(r,"frameError",hre),fe.addListener(r,"end",fre),fe.addListener(r,"goaway",gre),fe.addListener(r,"close",function(){let{[cl]:n}=this,{[Lt]:i}=n,o=this[Lt][rn]||this[rn]||new SA("closed",fe.getSocketInfo(i));if(n[tn]=null,n.destroyed){Bs(n[ere]===0);let a=n[Qo].splice(n[en]);for(let c=0;c<a.length;c++){let l=a[c];fe.errorRequest(n,l,o)}}}),r.unref(),t[tn]=r,e[tn]=r,fe.addListener(e,"error",function(n){Bs(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[rn]=n,this[cl][Vw](n)}),fe.addListener(e,"end",function(){fe.destroy(this,new SA("other side closed",fe.getSocketInfo(this)))}),fe.addListener(e,"close",function(){let n=this[rn]||new SA("closed",fe.getSocketInfo(this));t[Lt]=null,this[tn]!=null&&this[tn].destroy(n),t[zw]=t[en],Bs(t[Sh]===0),t.emit("disconnect",t[Qh],[t],n),t[xo]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return yre(t,...n)},resume(){pre(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function pre(t){let e=t[Lt];e?.destroyed===!1&&(t[rre]===0&&t[YM]===0?(e.unref(),t[tn].unref()):(e.ref(),t[tn].ref()))}function mre(t){Bs(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Lt][rn]=t,this[cl][Vw](t)}function hre(t,e,r){if(r===0){let s=new Hw(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Lt][rn]=s,this[cl][Vw](s)}}function fre(){let t=new SA("other side closed",fe.getSocketInfo(this[Lt]));this.destroy(t),fe.destroy(this[Lt],t)}function gre(t){let e=this[rn]||new SA(`HTTP/2: "GOAWAY" frame received with code ${t}`,fe.getSocketInfo(this)),r=this[cl];if(r[Lt]=null,r[sre]=null,this[tn]!=null&&(this[tn].destroy(e),this[tn]=null),fe.destroy(this[Lt],e),r[en]<r[Qo].length){let s=r[Qo][r[en]];r[Qo][r[en]++]=null,fe.errorRequest(r,s,e),r[zw]=r[en]}Bs(r[Sh]===0),r.emit("disconnect",r[Qh],[r],e),r[xo]()}function Ere(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function yre(t,e){let r=t[tn],{method:s,path:n,host:i,upgrade:o,expectContinue:a,signal:c,headers:l}=e,{body:u}=e;if(o)return fe.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let A={};for(let B=0;B<l.length;B+=2){let x=l[B+0],P=l[B+1];if(Array.isArray(P))for(let F=0;F<P.length;F++)A[x]?A[x]+=`,${P[F]}`:A[x]=P[F];else A[x]=P}let d,{hostname:p,port:m}=t[Qh];A[nre]=i||`${p}${m?`:${m}`:""}`,A[ire]=s;let f=B=>{e.aborted||e.completed||(B=B||new GM,fe.errorRequest(t,e,B),d!=null&&fe.destroy(d,B),fe.destroy(u,B),t[Qo][t[en]++]=null,t[xo]())};try{e.onConnect(f)}catch(B){fe.errorRequest(t,e,B)}if(e.aborted)return!1;if(s==="CONNECT")return r.ref(),d=r.request(A,{endStream:!1,signal:c}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[Ui],t[Qo][t[en]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[Ui],t[Qo][t[en]++]=null}),d.once("close",()=>{r[Ui]-=1,r[Ui]===0&&r.unref()}),!0;A[ore]=n,A[are]="https";let y=s==="PUT"||s==="POST"||s==="PATCH";u&&typeof u.read=="function"&&u.read(0);let g=fe.bodyLength(u);if(fe.isFormDataLike(u)){HM??=nl().extractBody;let[B,x]=HM(u);A["content-type"]=x,u=B.stream,g=B.length}if(g==null&&(g=e.contentLength),(g===0||!y)&&(g=null),Ere(s)&&g>0&&e.contentLength!=null&&e.contentLength!==g){if(t[tre])return fe.errorRequest(t,e,new Gw),!1;process.emitWarning(new Gw)}g!=null&&(Bs(u,"no body must not have content length"),A[cre]=`${g}`),r.ref();let E=s==="GET"||s==="HEAD"||u===null;return a?(A[lre]="100-continue",d=r.request(A,{endStream:E,signal:c}),d.once("c Line truncated
`,this[Vre]=c??3e5,this[zre]=n??3e5,this[$re]=E??!0,this[Yre]=B,this[Ww]=P,this[So]=null,this[Xre]=pe>-1?pe:-1,this[ese]=z??100,this[At]=null,this[sn]=[],this[Gi]=0,this[nn]=0,this[PA]=Ee=>Kw(this,Ee),this[Zre]=Ee=>aO(this,Ee)}get pipelining(){return this[Ph]}set pipelining(e){this[Ph]=e,this[PA](!0)}get[_A](){return this[sn].length-this[nn]}get[DA](){return this[nn]-this[Gi]}get[kA](){return this[sn].length-this[Gi]}get[Mre](){return!!this[At]&&!this[ul]&&!this[At].destroyed}get[Jw](){return!!(this[At]?.busy(null)||this[kA]>=(oO(this)||1)||this[_A]>0)}[Lre](e){cO(this),this.once("connect",e)}[Kre](e,r){let s=e.origin||this[Mn].origin,n=new Tre(s,e,r);return this[sn].push(n),this[wa]||(Ba.bodyLength(n.body)==null&&Ba.isIterable(n.body)?(this[wa]=1,queueMicrotask(()=>Kw(this))):this[PA](!0)),this[wa]&&this[Ro]!==2&&this[Jw]&&(this[Ro]=2),this[Ro]<2}async[Wre](){return new Promise(e=>{this[kA]?this[So]=e:e(null)})}async[jre](e){return new Promise(r=>{let s=this[sn].splice(this[nn]);for(let i=0;i<s.length;i++){let o=s[i];Ba.errorRequest(this,o,e)}let n=()=>{this[So]&&(this[So](),this[So]=null),r(null)};this[At]?(this[At].destroy(e,n),this[At]=null):queueMicrotask(n),this[PA]()})}},sse=vh();function aO(t,e){if(t[DA]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){qi(t[nn]===t[Gi]);let r=t[sn].splice(t[Gi]);for(let s=0;s<r.length;s++){let n=r[s];Ba.errorRequest(t,n,e)}qi(t[kA]===0)}}async function cO(t){qi(!t[ul]),qi(!t[At]);let{host:e,hostname:r,protocol:s,port:n}=t[Mn];if(r[0]==="["){let i=r.indexOf("]");qi(i!==-1);let o=r.substring(1,i);qi(iO.isIP(o)),r=o}t[ul]=!0,ll.beforeConnect.hasSubscribers&&ll.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[At]?.version,servername:t[No],localAddress:t[vA]},connector:t[TA]});try{let i=await new Promise((o,a)=>{t[TA]({host:e,hostname:r,protocol:s,port:n,servername:t[No],localAddress:t[vA]},(c,l)=>{c?a(c):o(l)})});if(t.destroyed){Ba.destroy(i.on("error",sO),new kre);return}qi(i);try{t[At]=i.alpnProtocol==="h2"?await rse(t,i):await tse(t,i)}catch(o){throw i.destroy().on("error",sO),o}t[ul]=!1,i[Jre]=0,i[Ww]=t[Ww],i[_re]=t,i[Fre]=null,ll.connected.hasSubscribers&&ll.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[At]?.version,servername:t[No],localAddress:t[vA]},connector:t[TA],socket:i}),t.emit("connect",t[Mn],[t])}catch(i){if(t.destroyed)return;if(t[ul]=!1,ll.connectError.hasSubscribers&&ll.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[At]?.version,servername:t[No],localAddress:t[vA]},connector:t[TA],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(qi(t[DA]===0);t[_A]>0&&t[sn][t[nn]].servername===t[No];){let o=t[sn][t[nn]++];Ba.errorRequest(t,o,i)}else aO(t,i);t.emit("connectionError",t[Mn],[t],i)}t[PA]()}function nO(t){t[Ro]=0,t.emit("drain",t[Mn],[t])}function Kw(t,e){t[wa]!==2&&(t[wa]=2,nse(t,e),t[wa]=0,t[Gi]>256&&(t[sn].splice(0,t[Gi]),t[nn]-=t[Gi],t[Gi]=0))}function nse(t,e){for(;;){if(t.destroyed){qi(t[_A]===0);return}if(t[So]&&!t[kA]){t[So](),t[So]=null;return}if(t[At]&&t[At].resume(),t[Jw])t[Ro]=2;else if(t[Ro]===2){e?(t[Ro]=1,queueMicrotask(()=>nO(t))):nO(t);continue}if(t[_A]===0||t[DA]>=(oO(t)||1))return;let r=t[sn][t[nn]];if(t[Mn].protocol==="https:"&&t[No]!==r.servername){if(t[DA]>0)return;t[No]=r.servername,t[At]?.destroy(new Pre("servername changed"),()=>{t[At]=null,Kw(t)})}if(t[ul])return;if(!t[At]){cO(t);return}if(t[At].destroyed||t[At].busy(r))return;!r.aborted&&t[At].write(r)?t[nn]++:t[sn].splice(t[nn],1)}}lO.exports=jw});var Xw=h((sLe,uO)=>{"use strict";var kh=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)}};uO.exports=class{constructor(){this.head=this.tail=new kh}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new kh),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var dO=h((nLe,AO)=>{var{kFree:ise,kConnected:ose,kPending:ase,kQueued:cse,kRunning:lse,kSize:use}=ze(),ba=Symbol("pool"),Zw=class{constructor(e){this[ba]=e}get connected(){return this[ba][ose]}get free(){return this[ba][ise]}get pending(){return this[ba][ase]}get queued(){return this[ba][cse]}get running(){return this[ba][lse]}get size(){return this[ba][use]}};AO.exports=Zw});var ib=h((iLe,BO)=>{"use strict";var Ase=Wc(),dse=Xw(),{kConnected:eb,kSize:pO,kRunning:mO,kPending:hO,kQueued:LA,kBusy:pse,kFree:mse,kUrl:hse,kClose:fse,kDestroy:gse,kDispatch:Ese}=ze(),yse=dO(),Rr=Symbol("clients"),lr=Symbol("needDrain"),MA=Symbol("queue"),tb=Symbol("closed resolve"),rb=Symbol("onDrain"),fO=Symbol("onConnect"),gO=Symbol("onDisconnect"),EO=Symbol("onConnectionError"),sb=Symbol( Line truncated
${s.count} ${s.noun} ${s.is} pending:
${e.format(r)}
`.trim())}};$U.exports=Lw});var Dh=h((y_e,XU)=>{"use strict";var WU=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:eie}=we(),tie=tl();KU()===void 0&&jU(new tie);function jU(t){if(!t||typeof t.dispatch!="function")throw new eie("Argument agent must implement Agent");Object.defineProperty(globalThis,WU,{value:t,writable:!0,enumerable:!1,configurable:!1})}function KU(){return globalThis[WU]}XU.exports={setGlobalDispatcher:jU,getGlobalDispatcher:KU}});var _h=h((I_e,ZU)=>{"use strict";ZU.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 tO=h((B_e,eO)=>{"use strict";var rie=ph();eO.exports=t=>{let e=t?.maxRedirections;return r=>function(n,i){let{maxRedirections:o=e,...a}=n;if(!o)return r(n,i);let c=new rie(r,o,n,i);return r(a,c)}}});var sO=h((b_e,rO)=>{"use strict";var sie=wh();rO.exports=t=>e=>function(s,n){return e(s,new sie({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))}});var iO=h((w_e,nO)=>{"use strict";var nie=pe(),{InvalidArgumentError:iie,RequestAbortedError:oie}=we(),aie=_h(),Mw=class extends aie{#e=1024*1024;#t=null;#r=!1;#i=!1;#n=0;#s=null;#o=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new iie("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#o=r}onConnect(e){this.#t=e,this.#o.onConnect(this.#a.bind(this))}#a(e){this.#i=!0,this.#s=e}onHeaders(e,r,s,n){let o=nie.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new oie(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#i?!0:this.#o.onHeaders(e,r,s,n)}onError(e){this.#r||(e=this.#s??e,this.#o.onError(e))}onData(e){return this.#n=this.#n+e.length,this.#n>=this.#e&&(this.#r=!0,this.#i?this.#o.onError(this.#s):this.#o.onComplete([])),!0}onComplete(e){if(!this.#r){if(this.#i){this.#o.onError(this.reason);return}this.#o.onComplete(e)}}};function cie({maxSize:t}={maxSize:1024*1024}){return e=>function(s,n){let{dumpMaxSize:i=t}=s,o=new Mw({maxSize:i},n);return e(s,o)}}nO.exports=cie});var cO=h((Q_e,aO)=>{"use strict";var{isIP:lie}=require("node:net"),{lookup:uie}=require("node:dns"),Aie=_h(),{InvalidArgumentError:Al,InformationalError:die}=we(),oO=Math.pow(2,31)-1,Fw=class{#e=0;#t=0;#r=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.#i,this.pick=e.pick??this.#n}get full(){return this.#r.size===this.#t}runLookup(e,r,s){let n=this.#r.get(e.hostname);if(n==null&&this.full){s(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(n==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){s(o??new die("No DNS entries found"));return}this.setRecords(e,a);let c=this.#r.get(e.hostname),l=this.pick(e,c,i.affinity),u;typeof l.port=="number"?u=`:${l.port}`:e.port!==""?u=`:${e.port}`:u="",s(null,`${e.protocol}//${l.family===6?`[${l.address}]`:l.address}${u}`)});else{let o=this.pick(e,n,i.affinity);if(o==null){this.#r.delete(e.hostname),this.runLookup(e,r,s);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",s(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#i(e,r,s){uie(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(n,i)=>{if(n)return s(n);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);s(null,o.values())})}#n(e,r,s){let n=null,{records:i,offset:o}=r,a;if(this.dualStack?(s==null&&(o==null||o===oO?(r.offset=0,s=4):(r.offset++,s=(r.offset&1)===1?6:4)),i[s]!=null&&i[s].ips.length>0?a=i[s]:a=i[s===4?6:4]):a=i[s],a==null||a.ips.length===0)return n;a.offset==null||a.offset===oO?a.offset=0:a.offset++;let c=a.offset%a.ips.length;return n=a.ips[c]??null,n==null?n:Date.now()-n.timestamp>n.ttl?(a.ips.splice(c,1),this.pick(e,r,s)):n}setRecords(e,r){let s=Date.now(),n={records:{4:null,6:null}};for(let i of r){i.timestamp=s,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=n.records[i.family]??{ips:[]};o.ips.push(i),n.records[i.family]=o}this.#r.set(e.hostname,n)}getHandler(e,r){return new Uw(this,e,r)}},Uw=class extends Aie{#e=null;#t=null;#r=null;#i=null;#n=null;constructor(e,{origin:r,handler:s,dispatch:n},i){super(s),this.#n=r,this.#i=s,this.#t={...i},this.#e=e,this.#r=n}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#n,this.#t,(r,s)=>{if(r)return this.#i.o Line truncated
${i}`;break;case"retry":q1(i)&&(r[n]=i);break;case"id":G1(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&q1(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&G1(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}}};H1.exports={EventSourceStream:QQ}});var X1=h((rLe,K1)=>{"use strict";var{pipeline:Ile}=require("node:stream"),{fetching:Ble}=FA(),{makeRequest:ble}=ml(),{webidl:Gi}=Gt(),{EventSourceStream:wle}=z1(),{parseMIMEType:Qle}=wr(),{createFastMessageEvent:xle}=Cl(),{isNetworkError:V1}=LA(),{delay:Nle}=bQ(),{kEnumerableProperty:Ra}=pe(),{environmentSettingsObject:Y1}=zr(),$1=!1,J1=3e3,KA=0,W1=1,XA=2,Sle="anonymous",Rle="use-credentials",Ql=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#r=!1;#i=KA;#n=null;#s=null;#o;#a;constructor(e,r={}){super(),Gi.util.markAsUncloneable(this);let s="EventSource constructor";Gi.argumentLengthCheck(arguments,1,s),$1||($1=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Gi.converters.USVString(e,s,"url"),r=Gi.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#o=r.dispatcher,this.#a={lastEventId:"",reconnectionTime:J1};let n=Y1,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#a.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=Sle;r.withCredentials&&(o=Rle,this.#r=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=Y1.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#n=ble(a),this.#c()}get readyState(){return this.#i}get url(){return this.#t}get withCredentials(){return this.#r}#c(){if(this.#i===XA)return;this.#i=KA;let e={request:this.#n,dispatcher:this.#o},r=s=>{V1(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#l()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(V1(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#l();return}let n=s.headersList.get("content-type",!0),i=n!==null?Qle(n):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#i=W1,this.dispatchEvent(new Event("open")),this.#a.origin=s.urlList[s.urlList.length-1].origin;let a=new wle({eventSourceSettings:this.#a,push:c=>{this.dispatchEvent(xle(c.type,c.options))}});Ile(s.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=Ble(e)}async#l(){this.#i!==XA&&(this.#i=KA,this.dispatchEvent(new Event("error")),await Nle(this.#a.reconnectionTime),this.#i===KA&&(this.#a.lastEventId.length&&this.#n.headersList.set("last-event-id",this.#a.lastEventId,!0),this.#c()))}close(){Gi.brandCheck(this,t),this.#i!==XA&&(this.#i=XA,this.#s.abort(),this.#n=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}},j1={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:KA,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:W1,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:XA,writable:!1}};Object.defineProperties(Ql,j1);Object.defineProperties(Ql.prototype,j1);Object.defineProperties(Ql.prototype,{close:Ra,onerror:Ra,onmessage:Ra,onopen:Ra,readyState:Ra,url:Ra,withCredentials:Ra});Gi.converters.EventSourceInitDict=Gi.dictionaryConverter([{key:"withCredentials",converter:Gi.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Gi.converters.any}]);K1.exports={EventSource:Ql,defaultReconnectionTime:J1}});var wf=h((sLe,Z)=>{"use strict";var Tle=Zc(),Z1=rA(),Ple=el(),vle=jM(),kle=tl(),Dle=Wb(),_le=CF(),Lle=xF(),eq=we(),bf=pe(),{InvalidArgumentError:Bf}=eq,xl=dU(),Mle=nA(),Fle=Tw(),Ule=JU(),Ole=kw(),qle=gw(),Gle=wh(),{getGlobalDispatcher:tq,setGlobalDispatcher:Hle}=Dh(),zle=_h(),Vle=ph(),Yle=mh();Object.assign(Z1.prototype,xl);Z.exports.Dispatcher=Z1;Z.exports.Client=Tle;Z.exports.Pool=Ple;Z.exports.BalancedPool=vle;Z.exports.Agent=kle;Z.exports.ProxyAgent=Dle;Z.exports.EnvHttpProxyAgent=_le;Z.exports.RetryAgent=Lle;Z.exports.RetryHandler=Gl Line truncated
%s`,x,x,E,s);var k=E.type==="*"?Cx:E.type==="?"?yx:"\\"+E.type;n=!0,s=s.slice(0,E.reStart)+k+"\\("+x}m(),i&&(s+="\\\\");var O=!1;switch(s.charAt(0)){case"[":case".":case"(":O=!0}for(var de=a.length-1;de>-1;de--){var be=a[de],Se=s.slice(0,be.reStart),V=s.slice(be.reStart,be.reEnd-8),se=s.slice(be.reEnd-8,be.reEnd),q=s.slice(be.reEnd);se+=q;var Ee=Se.split("(").length-1,Ct=q;for(f=0;f<Ee;f++)Ct=Ct.replace(/\)[+*?]?/,"");q=Ct;var je="";q===""&&e!==jf&&(je="$");var lt=Se+V+q+je+se;s=lt}if(s!==""&&n&&(s="(?=.)"+s),O&&(s=d+s),e===jf)return[s,n];if(!n)return Xpe(t);var Si=r.nocase?"i":"";try{var Hr=new RegExp("^"+s+"$",Si)}catch{return new RegExp("$.")}return Hr._glob=t,Hr._src=s,Hr}es.makeRe=function(t,e){return new Ht(t,e||{}).makeRe()};Ht.prototype.makeRe=Kpe;function Kpe(){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?Cx:e.dot?Hpe:zpe,s=e.nocase?"i":"",n=t.map(function(i){return i.map(function(o){return o===Ix?r:typeof o=="string"?Zpe(o):o._src}).join("\\/")}).join("|");n="^(?:"+n+")$",this.negate&&(n="^(?!"+n+").*$");try{this.regexp=new RegExp(n,s)}catch{this.regexp=!1}return this.regexp}es.match=function(t,e,r){r=r||{};var s=new Ht(e,r);return t=t.filter(function(n){return s.match(n)}),s.options.nonull&&!t.length&&t.push(e),t};Ht.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 s=this.options;hd.sep!=="/"&&(e=e.split(hd.sep).join("/")),e=e.split(HH),this.debug(this.pattern,"split",e);var n=this.set;this.debug(this.pattern,"set",n);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<n.length;o++){var a=n[o],c=e;s.matchBase&&a.length===1&&(c=[i]);var l=this.matchOne(c,a,r);if(l)return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate};Ht.prototype.matchOne=function(t,e,r){var s=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var n=0,i=0,o=t.length,a=e.length;n<o&&i<a;n++,i++){this.debug("matchOne loop");var c=e[i],l=t[n];if(this.debug(e,c,l),c===!1)return!1;if(c===Ix){this.debug("GLOBSTAR",[e,c,l]);var u=n,A=i+1;if(A===a){for(this.debug("** at the end");n<o;n++)if(t[n]==="."||t[n]===".."||!s.dot&&t[n].charAt(0)===".")return!1;return!0}for(;u<o;){var d=t[u];if(this.debug(`
`.trim())}};SU.exports=iQ});var Kh=h((kLe,kU)=>{"use strict";var TU=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Vie}=be(),$ie=pl();PU()===void 0&&vU(new $ie);function vU(t){if(!t||typeof t.dispatch!="function")throw new Vie("Argument agent must implement Agent");Object.defineProperty(globalThis,TU,{value:t,writable:!0,enumerable:!1,configurable:!1})}function PU(){return globalThis[TU]}kU.exports={setGlobalDispatcher:vU,getGlobalDispatcher:PU}});var Xh=h((_Le,DU)=>{"use strict";DU.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 LU=h((LLe,_U)=>{"use strict";var Yie=Th();_U.exports=t=>{let e=t?.maxRedirections;return r=>function(n,i){let{maxRedirections:o=e,...a}=n;if(!o)return r(n,i);let c=new Yie(r,o,n,i);return r(a,c)}}});var OU=h((MLe,MU)=>{"use strict";var Jie=qh();MU.exports=t=>e=>function(s,n){return e(s,new Jie({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))}});var UU=h((OLe,FU)=>{"use strict";var Wie=me(),{InvalidArgumentError:jie,RequestAbortedError:Kie}=be(),Xie=Xh(),oQ=class extends Xie{#e=1024*1024;#t=null;#r=!1;#i=!1;#n=0;#s=null;#o=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new jie("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#o=r}onConnect(e){this.#t=e,this.#o.onConnect(this.#a.bind(this))}#a(e){this.#i=!0,this.#s=e}onHeaders(e,r,s,n){let o=Wie.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new Kie(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#i?!0:this.#o.onHeaders(e,r,s,n)}onError(e){this.#r||(e=this.#s??e,this.#o.onError(e))}onData(e){return this.#n=this.#n+e.length,this.#n>=this.#e&&(this.#r=!0,this.#i?this.#o.onError(this.#s):this.#o.onComplete([])),!0}onComplete(e){if(!this.#r){if(this.#i){this.#o.onError(this.reason);return}this.#o.onComplete(e)}}};function Zie({maxSize:t}={maxSize:1024*1024}){return e=>function(s,n){let{dumpMaxSize:i=t}=s,o=new oQ({maxSize:i},n);return e(s,o)}}FU.exports=Zie});var HU=h((FLe,GU)=>{"use strict";var{isIP:eoe}=require("node:net"),{lookup:toe}=require("node:dns"),roe=Xh(),{InvalidArgumentError:wl,InformationalError:soe}=be(),qU=Math.pow(2,31)-1,aQ=class{#e=0;#t=0;#r=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.#i,this.pick=e.pick??this.#n}get full(){return this.#r.size===this.#t}runLookup(e,r,s){let n=this.#r.get(e.hostname);if(n==null&&this.full){s(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(n==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){s(o??new soe("No DNS entries found"));return}this.setRecords(e,a);let c=this.#r.get(e.hostname),l=this.pick(e,c,i.affinity),u;typeof l.port=="number"?u=`:${l.port}`:e.port!==""?u=`:${e.port}`:u="",s(null,`${e.protocol}//${l.family===6?`[${l.address}]`:l.address}${u}`)});else{let o=this.pick(e,n,i.affinity);if(o==null){this.#r.delete(e.hostname),this.runLookup(e,r,s);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",s(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#i(e,r,s){toe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(n,i)=>{if(n)return s(n);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);s(null,o.values())})}#n(e,r,s){let n=null,{records:i,offset:o}=r,a;if(this.dualStack?(s==null&&(o==null||o===qU?(r.offset=0,s=4):(r.offset++,s=(r.offset&1)===1?6:4)),i[s]!=null&&i[s].ips.length>0?a=i[s]:a=i[s===4?6:4]):a=i[s],a==null||a.ips.length===0)return n;a.offset==null||a.offset===qU?a.offset=0:a.offset++;let c=a.offset%a.ips.length;return n=a.ips[c]??null,n==null?n:Date.now()-n.timestamp>n.ttl?(a.ips.splice(c,1),this.pick(e,r,s)):n}setRecords(e,r){let s=Date.now(),n={records:{4:null,6:null}};for(let i of r){i.timestamp=s,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=n.records[i.family]??{ips:[]};o.ips.push(i),n.records[i.family]=o}this.#r.set(e.hostname,n)}getHandler(e,r){return new cQ(this,e,r)}},cQ=class extends roe{#e=null;#t=null;#r=null;#i=null;#n=null;constructor(e,{origin:r,handler:s,dispatch:n},i){super(s),this.#n=r,this.#i=s,this.#t={...i},this.#e=e,this.#r=n}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#n,this.#t,(r,s)=>{if(r)return this.#i.o Line truncated
${i}`;break;case"retry":Bq(i)&&(r[n]=i);break;case"id":wq(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&Bq(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&wq(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}}};bq.exports={EventSourceStream:JQ}});var kq=h((fMe,Pq)=>{"use strict";var{pipeline:due}=require("node:stream"),{fetching:pue}=jA(),{makeRequest:mue}=xl(),{webidl:Yi}=Ht(),{EventSourceStream:hue}=Qq(),{parseMIMEType:fue}=Nr(),{createFastMessageEvent:gue}=Pl(),{isNetworkError:xq}=JA(),{delay:Eue}=$Q(),{kEnumerableProperty:Fa}=me(),{environmentSettingsObject:Nq}=$r(),Sq=!1,Rq=3e3,ld=0,Tq=1,ud=2,yue="anonymous",Cue="use-credentials",Ml=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#r=!1;#i=ld;#n=null;#s=null;#o;#a;constructor(e,r={}){super(),Yi.util.markAsUncloneable(this);let s="EventSource constructor";Yi.argumentLengthCheck(arguments,1,s),Sq||(Sq=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Yi.converters.USVString(e,s,"url"),r=Yi.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#o=r.dispatcher,this.#a={lastEventId:"",reconnectionTime:Rq};let n=Nq,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#a.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=yue;r.withCredentials&&(o=Cue,this.#r=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=Nq.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#n=mue(a),this.#c()}get readyState(){return this.#i}get url(){return this.#t}get withCredentials(){return this.#r}#c(){if(this.#i===ud)return;this.#i=ld;let e={request:this.#n,dispatcher:this.#o},r=s=>{xq(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#l()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(xq(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#l();return}let n=s.headersList.get("content-type",!0),i=n!==null?fue(n):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#i=Tq,this.dispatchEvent(new Event("open")),this.#a.origin=s.urlList[s.urlList.length-1].origin;let a=new hue({eventSourceSettings:this.#a,push:c=>{this.dispatchEvent(gue(c.type,c.options))}});due(s.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=pue(e)}async#l(){this.#i!==ud&&(this.#i=ld,this.dispatchEvent(new Event("error")),await Eue(this.#a.reconnectionTime),this.#i===ld&&(this.#a.lastEventId.length&&this.#n.headersList.set("last-event-id",this.#a.lastEventId,!0),this.#c()))}close(){Yi.brandCheck(this,t),this.#i!==ud&&(this.#i=ud,this.#s.abort(),this.#n=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}},vq={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:ld,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Tq,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:ud,writable:!1}};Object.defineProperties(Ml,vq);Object.defineProperties(Ml.prototype,vq);Object.defineProperties(Ml.prototype,{close:Fa,onerror:Fa,onmessage:Fa,onopen:Fa,readyState:Fa,url:Fa,withCredentials:Fa});Yi.converters.EventSourceInitDict=Yi.dictionaryConverter([{key:"withCredentials",converter:Yi.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Yi.converters.any}]);Pq.exports={EventSource:Ml,defaultReconnectionTime:Rq}});var Fl=h((gMe,Z)=>{"use strict";var Iue=Al(),Dq=mA(),Bue=dl(),wue=vO(),bue=pl(),Que=Eb(),xue=tF(),Nue=aF(),_q=be(),Uf=me(),{InvalidArgumentError:Ff}=_q,Ol=YF(),Sue=fA(),Rue=Zb(),Tue=RU(),vue=rQ(),Pue=Ub(),kue=qh(),{getGlobalDispatcher:Lq,setGlobalDispatcher:Due}=Kh(),_ue=Xh(),Lue=Th(),Mue=vh();Object.assign(Dq.prototype,Ol);Z.exports.Dispatcher=Dq;Z.exports.Client=Iue;Z.exports.Pool=Bue;Z.exports.BalancedPool=wue;Z.exports.Agent=bue;Z.exports.ProxyAgent=Que;Z.exports.EnvHttpProxyAgent=xue;Z.exports.RetryAgent=Nue;Z.exports.RetryHandler=ku Line truncated
%s`,x,x,E,s);var P=E.type==="*"?Wx:E.type==="?"?Jx:"\\"+E.type;n=!0,s=s.slice(0,E.reStart)+P+"\\("+x}m(),i&&(s+="\\\\");var F=!1;switch(s.charAt(0)){case"[":case".":case"(":F=!0}for(var pe=a.length-1;pe>-1;pe--){var we=a[pe],Se=s.slice(0,we.reStart),z=s.slice(we.reStart,we.reEnd-8),ne=s.slice(we.reEnd-8,we.reEnd),U=s.slice(we.reEnd);ne+=U;var Ee=Se.split("(").length-1,It=U;for(f=0;f<Ee;f++)It=It.replace(/\)[+*?]?/,"");U=It;var Ke="";U===""&&e!==Eg&&(Ke="$");var lt=Se+z+U+Ke+ne;s=lt}if(s!==""&&n&&(s="(?=.)"+s),F&&(s=d+s),e===Eg)return[s,n];if(!n)return rhe(t);var Pi=r.nocase?"i":"";try{var Vr=new RegExp("^"+s+"$",Pi)}catch{return new RegExp("$.")}return Vr._glob=t,Vr._src=s,Vr}rs.makeRe=function(t,e){return new zt(t,e||{}).makeRe()};zt.prototype.makeRe=the;function the(){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?Wx:e.dot?Yme:Jme,s=e.nocase?"i":"",n=t.map(function(i){return i.map(function(o){return o===jx?r:typeof o=="string"?she(o):o._src}).join("\\/")}).join("|");n="^(?:"+n+")$",this.negate&&(n="^(?!"+n+").*$");try{this.regexp=new RegExp(n,s)}catch{this.regexp=!1}return this.regexp}rs.match=function(t,e,r){r=r||{};var s=new zt(e,r);return t=t.filter(function(n){return s.match(n)}),s.options.nonull&&!t.length&&t.push(e),t};zt.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 s=this.options;Rd.sep!=="/"&&(e=e.split(Rd.sep).join("/")),e=e.split(Dz),this.debug(this.pattern,"split",e);var n=this.set;this.debug(this.pattern,"set",n);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<n.length;o++){var a=n[o],c=e;s.matchBase&&a.length===1&&(c=[i]);var l=this.matchOne(c,a,r);if(l)return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate};zt.prototype.matchOne=function(t,e,r){var s=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var n=0,i=0,o=t.length,a=e.length;n<o&&i<a;n++,i++){this.debug("matchOne loop");var c=e[i],l=t[n];if(this.debug(e,c,l),c===!1)return!1;if(c===jx){this.debug("GLOBSTAR",[e,c,l]);var u=n,A=i+1;if(A===a){for(this.debug("** at the end");n<o;n++)if(t[n]==="."||t[n]===".."||!s.dot&&t[n].charAt(0)===".")return!1;return!0}for(;u<o;){var d=t[u];if(this.debug(`
globstar while`,t,u,e,A,d),this.matchOne(t.slice(u),e.slice(A),r))return this.debug("globstar found match!",u,o,d),!0;if(d==="."||d===".."||!s.dot&&d.charAt(0)==="."){this.debug("dot detected!",t,u,e,A);break}this.debug("globstar swallow a segment, and continue"),u++}return!!(r&&(this.debug(`
>>> no match, partial?`,t,u,e,A),u===o))}var p;if(typeof c=="string"?(p=l===c,this.debug("string match",c,l,p)):(p=l.match(c),this.debug("pattern match",c,l,p)),!p)return!1}if(n===o&&i===a)return!0;if(n===o)return r;if(i===a)return n===o-1&&t[n]==="";throw new Error("wtf?")};function Xpe(t){return t.replace(/\\(.)/g,"$1")}function Zpe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Ed=h((YMe,jH)=>{"use strict";var ame="2.0.0",cme=Number.MAX_SAFE_INTEGER||9007199254740991,lme=16,ume=250,Ame=["major","premajor","minor","preminor","patch","prepatch","prerelease"];jH.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:lme,MAX_SAFE_BUILD_LENGTH:ume,MAX_SAFE_INTEGER:cme,RELEASE_TYPES:Ame,SEMVER_SPEC_VERSION:ame,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var yd=h(($Me,KH)=>{"use strict";var dme=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};KH.exports=dme});var Fl=h((Gn,XH)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:bx,MAX_SAFE_BUILD_LENGTH:pme,MAX_LENGTH:mme}=Ed(),hme=yd();Gn=XH.exports={};var fme=Gn.re=[],gme=Gn.safeRe=[],L=Gn.src=[],Eme=Gn.safeSrc=[],M=Gn.t={},yme=0,wx="[a-zA-Z0-9-]",Cme=[["\\s",1],["\\d",mme],[wx,pme]],Ime=t=>{for(let[e,r]of Cme)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},ie=(t,e,r)=>{let s=Ime(e),n=yme++;hme(t,n,e),M[t]=n,L[n]=e,Eme[n]=s,fme[n]=new RegExp(e,r?"g":void 0),gme[n]=new RegExp(s,r?"g":void 0)};ie("NUMERICIDENTIFIER","0|[1-9]\\d*");ie("NUMERICIDENTIFIERLOOSE","\\d+");ie("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${wx}*`);ie("MAINVERSION",`(${L[M.NUMERICIDENTIFIER]})\\.(${L[M.NUMERICIDENTIFIER]})\\.(${L[M.NUMERICIDENTIFIER]})`);ie("MAINVERSIONLOOSE",`(${L[M.NUMERICIDENTIFIERLOOSE]})\\.(${L[M.NUMERICIDENTIFIERLOOSE]})\\.(${L[M.NUMERICIDENTIFIERLOOSE]})`);ie("PRERELEASEIDENTIFIER",`(?:${L[M.NONNUMERICIDENTIFIER]}|${L[M.NUMERICIDENTIFIER]})`);ie("PRERELEASEIDENTIFIERLOOSE",`(?:${L[M.NONNUMERICIDENTIFIER]}|${L[M.NUMERICIDENTIFIERLOOSE]})`);ie("PRERELEASE",`(?:-(${L[M.PRERELEASEIDENTIFIER]}(?:\\.${L[M.PRERELEASEIDENTIFIER]})*))`);ie("PRERELEASELOOSE",`(?:-?(${L[M.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${L[M.PRERELEASEIDENTIFIERLOOSE]})*))`);ie("BUILDIDENTIFIER",`${wx}+`);ie("BUILD",`(?:\\+(${L[M.BUILDIDENTIFIER]}(?:\\.${L[M.BUILDIDENTIFIER]})*))`);ie("FULLPLAIN",`v?${L[M.MAINVERSION]}${L[M.PRERELEASE]}?${L[M.BUILD]}?`);ie("FULL",`^${L[M.FULLPLAIN]}$`);ie("LOOSEPLAIN",`[v=\\s]*${L[M.MAINVERSIONLOOSE]}${L[M.PRERELEASELOOSE]}?${L[M.BUILD]}?`);ie("LOOSE",`^${L[M.LOOSEPLAIN]}$`);ie("GTLT","((?:<|>)?=?)");ie("XRANGEIDENTIFIERLOOSE",`${L[M.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);ie("XRANGEIDENTIFIER",`${L[M.NUMERICIDENTIFIER]}|x|X|\\*`);ie("XRANGEPLAIN",`[v=\\s]*(${L[M.XRANGEIDENTIFIER]})(?:\\.(${L[M.XRANGEIDENTIFIER]})(?:\\.(${L[M.XRANGEIDENTIFIER]})(?:${L[M.PRERELEASE]})?${L[M.BUILD]}?)?)?`);ie("XRANGEPLAINLOOSE",`[v=\\s]*(${L[M.XRANGEIDENTIFIERLOOSE]})(?:\\.(${L[M.XRANGEIDENTIFIERLOOSE]})(?:\\.(${L[M.XRANGEIDENTIFIERLOOSE]})(?:${L[M.PRERELEASELOOSE]})?${L[M.BUILD]}?)?)?`);ie("XRANGE",`^${L[M.GTLT]}\\s*${L[M.XRANGEPLAIN]}$`);ie("XRANGELOOSE",`^${L[M.GTLT]}\\s*${L[M.XRANGEPLAINLOOSE]}$`);ie("COERCEPLAIN",`(^|[^\\d])(\\d{1,${bx}})(?:\\.(\\d{1,${bx}}))?(?:\\.(\\d{1,${bx}}))?`);ie("COERCE",`${L[M.COERCEPLAIN]}(?:$|[^\\d])`);ie("COERCEFULL",L[M.COERCEPLAIN]+`(?:${L[M.PRERELEASE]})?(?:${L[M.BUILD]})?(?:$|[^\\d])`);ie("COERCERTL",L[M.COERCE],!0);ie("COERCERTLFULL",L[M.COERCEFULL],!0);ie("LONETILDE","(?:~>?)");ie("TILDETRIM",`(\\s*)${L[M.LONETILDE]}\\s+`,!0);Gn.tildeTrimReplace="$1~";ie("TILDE",`^${L[M.LONETILDE]}${L[M.XRANGEPLAIN]}$`);ie("TILDELOOSE",`^${L[M.LONETILDE]}${L[M.XRANGEPLAINLOOSE]}$`);ie("LONECARET","(?:\\^)");ie("CARETTRIM",`(\\s*)${L[M.LONECARET]}\\s+`,!0);Gn.caretTrimReplace="$1^";ie("CARET",`^${L[M.LONECARET]}${L[M.XRANGEPLAIN]}$`);ie("CARETLOOSE",`^${L[M.LONECARET]}${L[M.XRANGEPLAINLOOSE]}$`);ie("COMPARATORLOOSE",`^${L[M.GTLT]}\\s*(${L[M.LOOSEPLAIN]})$|^$`);ie("COMPARATOR",`^${L[M.GTLT]}\\s*(${L[M.FULLPLAIN]})$|^$`);ie("COMPARATORTRIM",`(\\s*)${L[M.GTLT]}\\s*(${L[M.LOOSEPLAIN]}|${L[M.XRANGEPLAIN]})`,!0);Gn.comparatorTrimReplace="$1$2$3";ie("HYPHENRANGE",`^\\s*(${L[M.XRANGEPLAIN]})\\s+-\\s+(${L[M.XRANGEPLAIN]})\\s*$`);ie("HYPHENRANGELOOSE",`^\\s*(${L[M.XRANGEPLAINLOOSE]})\\s+-\\s+(${L[M.XRANGEPLAINLOOSE]})\\s*$`);ie("STAR","(<|>)?=?\\s*\\*");ie("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");ie("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var eg=h((JMe,ZH)=>{"use strict";var Bme=Object.freeze({loose:!0}),bme=Object.freeze({}),wme=t=>t?typeof t!="object"?Bme:t:bme;ZH.exports=wme});var Qx=h((WMe,rz)=>{"use strict";var ez=/^[0-9]+$/,tz=(t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=ez.test(t),s=ez.test(e);return r&&s&&(t=+t,e=+e),t===e?0:r&&!s?-1:s&&!r?1:t<e?-1:1},Qme=(t,e)=>tz(e,t);rz.exports={compareIdentifiers:tz,rcompareIdentifiers:Qme}});var er=h((jMe,nz)=>{"use strict";var tg=yd(),{MAX_LENGTH:sz,MAX_SAFE_INTEGER:rg}=Ed(),{ Line truncated
>>> no match, partial?`,t,u,e,A),u===o))}var p;if(typeof c=="string"?(p=l===c,this.debug("string match",c,l,p)):(p=l.match(c),this.debug("pattern match",c,l,p)),!p)return!1}if(n===o&&i===a)return!0;if(n===o)return r;if(i===a)return n===o-1&&t[n]==="";throw new Error("wtf?")};function rhe(t){return t.replace(/\\(.)/g,"$1")}function she(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Pd=h((qFe,qz)=>{"use strict";var Ahe="2.0.0",dhe=Number.MAX_SAFE_INTEGER||9007199254740991,phe=16,mhe=250,hhe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];qz.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:phe,MAX_SAFE_BUILD_LENGTH:mhe,MAX_SAFE_INTEGER:dhe,RELEASE_TYPES:hhe,SEMVER_SPEC_VERSION:Ahe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var kd=h((GFe,Gz)=>{"use strict";var fhe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Gz.exports=fhe});var Wl=h((Yn,Hz)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:Xx,MAX_SAFE_BUILD_LENGTH:ghe,MAX_LENGTH:Ehe}=Pd(),yhe=kd();Yn=Hz.exports={};var Che=Yn.re=[],Ihe=Yn.safeRe=[],_=Yn.src=[],Bhe=Yn.safeSrc=[],L=Yn.t={},whe=0,Zx="[a-zA-Z0-9-]",bhe=[["\\s",1],["\\d",Ehe],[Zx,ghe]],Qhe=t=>{for(let[e,r]of bhe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},oe=(t,e,r)=>{let s=Qhe(e),n=whe++;yhe(t,n,e),L[t]=n,_[n]=e,Bhe[n]=s,Che[n]=new RegExp(e,r?"g":void 0),Ihe[n]=new RegExp(s,r?"g":void 0)};oe("NUMERICIDENTIFIER","0|[1-9]\\d*");oe("NUMERICIDENTIFIERLOOSE","\\d+");oe("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Zx}*`);oe("MAINVERSION",`(${_[L.NUMERICIDENTIFIER]})\\.(${_[L.NUMERICIDENTIFIER]})\\.(${_[L.NUMERICIDENTIFIER]})`);oe("MAINVERSIONLOOSE",`(${_[L.NUMERICIDENTIFIERLOOSE]})\\.(${_[L.NUMERICIDENTIFIERLOOSE]})\\.(${_[L.NUMERICIDENTIFIERLOOSE]})`);oe("PRERELEASEIDENTIFIER",`(?:${_[L.NONNUMERICIDENTIFIER]}|${_[L.NUMERICIDENTIFIER]})`);oe("PRERELEASEIDENTIFIERLOOSE",`(?:${_[L.NONNUMERICIDENTIFIER]}|${_[L.NUMERICIDENTIFIERLOOSE]})`);oe("PRERELEASE",`(?:-(${_[L.PRERELEASEIDENTIFIER]}(?:\\.${_[L.PRERELEASEIDENTIFIER]})*))`);oe("PRERELEASELOOSE",`(?:-?(${_[L.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${_[L.PRERELEASEIDENTIFIERLOOSE]})*))`);oe("BUILDIDENTIFIER",`${Zx}+`);oe("BUILD",`(?:\\+(${_[L.BUILDIDENTIFIER]}(?:\\.${_[L.BUILDIDENTIFIER]})*))`);oe("FULLPLAIN",`v?${_[L.MAINVERSION]}${_[L.PRERELEASE]}?${_[L.BUILD]}?`);oe("FULL",`^${_[L.FULLPLAIN]}$`);oe("LOOSEPLAIN",`[v=\\s]*${_[L.MAINVERSIONLOOSE]}${_[L.PRERELEASELOOSE]}?${_[L.BUILD]}?`);oe("LOOSE",`^${_[L.LOOSEPLAIN]}$`);oe("GTLT","((?:<|>)?=?)");oe("XRANGEIDENTIFIERLOOSE",`${_[L.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);oe("XRANGEIDENTIFIER",`${_[L.NUMERICIDENTIFIER]}|x|X|\\*`);oe("XRANGEPLAIN",`[v=\\s]*(${_[L.XRANGEIDENTIFIER]})(?:\\.(${_[L.XRANGEIDENTIFIER]})(?:\\.(${_[L.XRANGEIDENTIFIER]})(?:${_[L.PRERELEASE]})?${_[L.BUILD]}?)?)?`);oe("XRANGEPLAINLOOSE",`[v=\\s]*(${_[L.XRANGEIDENTIFIERLOOSE]})(?:\\.(${_[L.XRANGEIDENTIFIERLOOSE]})(?:\\.(${_[L.XRANGEIDENTIFIERLOOSE]})(?:${_[L.PRERELEASELOOSE]})?${_[L.BUILD]}?)?)?`);oe("XRANGE",`^${_[L.GTLT]}\\s*${_[L.XRANGEPLAIN]}$`);oe("XRANGELOOSE",`^${_[L.GTLT]}\\s*${_[L.XRANGEPLAINLOOSE]}$`);oe("COERCEPLAIN",`(^|[^\\d])(\\d{1,${Xx}})(?:\\.(\\d{1,${Xx}}))?(?:\\.(\\d{1,${Xx}}))?`);oe("COERCE",`${_[L.COERCEPLAIN]}(?:$|[^\\d])`);oe("COERCEFULL",_[L.COERCEPLAIN]+`(?:${_[L.PRERELEASE]})?(?:${_[L.BUILD]})?(?:$|[^\\d])`);oe("COERCERTL",_[L.COERCE],!0);oe("COERCERTLFULL",_[L.COERCEFULL],!0);oe("LONETILDE","(?:~>?)");oe("TILDETRIM",`(\\s*)${_[L.LONETILDE]}\\s+`,!0);Yn.tildeTrimReplace="$1~";oe("TILDE",`^${_[L.LONETILDE]}${_[L.XRANGEPLAIN]}$`);oe("TILDELOOSE",`^${_[L.LONETILDE]}${_[L.XRANGEPLAINLOOSE]}$`);oe("LONECARET","(?:\\^)");oe("CARETTRIM",`(\\s*)${_[L.LONECARET]}\\s+`,!0);Yn.caretTrimReplace="$1^";oe("CARET",`^${_[L.LONECARET]}${_[L.XRANGEPLAIN]}$`);oe("CARETLOOSE",`^${_[L.LONECARET]}${_[L.XRANGEPLAINLOOSE]}$`);oe("COMPARATORLOOSE",`^${_[L.GTLT]}\\s*(${_[L.LOOSEPLAIN]})$|^$`);oe("COMPARATOR",`^${_[L.GTLT]}\\s*(${_[L.FULLPLAIN]})$|^$`);oe("COMPARATORTRIM",`(\\s*)${_[L.GTLT]}\\s*(${_[L.LOOSEPLAIN]}|${_[L.XRANGEPLAIN]})`,!0);Yn.comparatorTrimReplace="$1$2$3";oe("HYPHENRANGE",`^\\s*(${_[L.XRANGEPLAIN]})\\s+-\\s+(${_[L.XRANGEPLAIN]})\\s*$`);oe("HYPHENRANGELOOSE",`^\\s*(${_[L.XRANGEPLAINLOOSE]})\\s+-\\s+(${_[L.XRANGEPLAINLOOSE]})\\s*$`);oe("STAR","(<|>)?=?\\s*\\*");oe("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");oe("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Bg=h((HFe,zz)=>{"use strict";var xhe=Object.freeze({loose:!0}),Nhe=Object.freeze({}),She=t=>t?typeof t!="object"?xhe:t:Nhe;zz.exports=She});var e0=h((zFe,Yz)=>{"use strict";var Vz=/^[0-9]+$/,$z=(t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=Vz.test(t),s=Vz.test(e);return r&&s&&(t=+t,e=+e),t===e?0:r&&!s?-1:s&&!r?1:t<e?-1:1},Rhe=(t,e)=>$z(e,t);Yz.exports={compareIdentifiers:$z,rcompareIdentifiers:Rhe}});var tr=h((VFe,Wz)=>{"use strict";var wg=kd(),{MAX_LENGTH:Jz,MAX_SAFE_INTEGER:bg}=Pd(),{ Line truncated
`).join(`
`+i),t.push(n+"m+"+Fg.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Vge()+e+" "+t[0]}function Vge(){return zt.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Yge(...t){return process.stderr.write(Mg.format(...t)+`
`)}function $ge(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function Jge(){return process.env.DEBUG}function Wge(t){t.inspectOpts={};let e=Object.keys(zt.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=zt.inspectOpts[e[r]]}Fg.exports=lN()(zt);var{formatters:kY}=Fg.exports;kY.o=function(t){return this.inspectOpts.colors=this.useColors,Mg.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};kY.O=function(t){return this.inspectOpts.colors=this.useColors,Mg.inspect(t,this.inspectOpts)}});var Ug=h((lOe,dN)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?dN.exports=NY():dN.exports=DY()});var MY=h(vr=>{"use strict";var jge=vr&&vr.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Kge=vr&&vr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),_Y=vr&&vr.__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)&&jge(e,t,r);return Kge(e,t),e};Object.defineProperty(vr,"__esModule",{value:!0});vr.req=vr.json=vr.toBuffer=void 0;var Xge=_Y(require("http")),Zge=_Y(require("https"));async function LY(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}vr.toBuffer=LY;async function eEe(t){let r=(await LY(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}vr.json=eEe;function tEe(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?Zge:Xge).request(t,e),n=new Promise((i,o)=>{s.once("response",i).once("error",o).end()});return s.then=n.then.bind(n),s}vr.req=tEe});var mN=h(ns=>{"use strict";var UY=ns&&ns.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),rEe=ns&&ns.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),OY=ns&&ns.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&UY(e,t,r);return rEe(e,t),e},sEe=ns&&ns.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&UY(e,t,r)};Object.defineProperty(ns,"__esModule",{value:!0});ns.Agent=void 0;var nEe=OY(require("net")),FY=OY(require("http")),iEe=require("https");sEe(MY(),ns);var Vn=Symbol("AgentBaseInternalState"),pN=class extends FY.Agent{constructor(e){super(e),this[Vn]={}}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(s=>s.indexOf("(https.js:")!==-1||s.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 nEe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let s=this.sockets[e],n=s.indexOf(r);n!==-1&&(s.splice(n,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?iEe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(n),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,n)).then(a=>{if(this.decrementSockets(i,o),a instanceof FY.Agent)return a.addRequest(e,n);this[Vn].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(i,o),s(a)})}createConnection(){let e=this[Vn].currentSocket;if(this[Vn].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Vn].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Vn]&&(this[Vn].defaultPort=e)}get protocol(){return this[Vn].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Vn]&&(this[Vn].protocol=e)}};ns.Agent=pN});var qY=h($l=>{"use strict";var oEe=$l&&$l.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty($l,"__esModule",{value:!0});$l.parseProxyResponse=void 0;var aEe=oEe(Ug()),Og=(0,aEe.default)("https-proxy-agent:parse-proxy-response");function cEe(t){return new Promise((e,r)=>{let s=0,n=[];function i(){let u=t.read();u?l(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",c),t.removeListener("readable",i)}function a(){o(),Og("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(u){o(),Og("onerror %o",u),r(u)}function l(u){n.push(u),s+=u.length;let A=Buffer.concat(n,s),d=A.indexOf(`\r
`+i),t.push(n+"m+"+oE.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=WEe()+e+" "+t[0]}function WEe(){return Vt.inspectOpts.hideDate?"":new Date().toISOString()+" "}function jEe(...t){return process.stderr.write(iE.format(...t)+`
`)}function KEe(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function XEe(){return process.env.DEBUG}function ZEe(t){t.inspectOpts={};let e=Object.keys(Vt.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Vt.inspectOpts[e[r]]}oE.exports=O0()(Vt);var{formatters:bY}=oE.exports;bY.o=function(t){return this.inspectOpts.colors=this.useColors,iE.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};bY.O=function(t){return this.inspectOpts.colors=this.useColors,iE.inspect(t,this.inspectOpts)}});var aE=h((n1e,q0)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?q0.exports=EY():q0.exports=QY()});var SY=h(Dr=>{"use strict";var eye=Dr&&Dr.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),tye=Dr&&Dr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),xY=Dr&&Dr.__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)&&eye(e,t,r);return tye(e,t),e};Object.defineProperty(Dr,"__esModule",{value:!0});Dr.req=Dr.json=Dr.toBuffer=void 0;var rye=xY(require("http")),sye=xY(require("https"));async function NY(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}Dr.toBuffer=NY;async function nye(t){let r=(await NY(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}Dr.json=nye;function iye(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?sye:rye).request(t,e),n=new Promise((i,o)=>{s.once("response",i).once("error",o).end()});return s.then=n.then.bind(n),s}Dr.req=iye});var H0=h(os=>{"use strict";var TY=os&&os.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),oye=os&&os.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),vY=os&&os.__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)&&TY(e,t,r);return oye(e,t),e},aye=os&&os.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&TY(e,t,r)};Object.defineProperty(os,"__esModule",{value:!0});os.Agent=void 0;var cye=vY(require("net")),RY=vY(require("http")),lye=require("https");aye(SY(),os);var jn=Symbol("AgentBaseInternalState"),G0=class extends RY.Agent{constructor(e){super(e),this[jn]={}}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(s=>s.indexOf("(https.js:")!==-1||s.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 cye.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let s=this.sockets[e],n=s.indexOf(r);n!==-1&&(s.splice(n,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?lye.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(n),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,n)).then(a=>{if(this.decrementSockets(i,o),a instanceof RY.Agent)return a.addRequest(e,n);this[jn].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(i,o),s(a)})}createConnection(){let e=this[jn].currentSocket;if(this[jn].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[jn].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[jn]&&(this[jn].defaultPort=e)}get protocol(){return this[jn].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[jn]&&(this[jn].protocol=e)}};os.Agent=G0});var PY=h(nu=>{"use strict";var uye=nu&&nu.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(nu,"__esModule",{value:!0});nu.parseProxyResponse=void 0;var Aye=uye(aE()),cE=(0,Aye.default)("https-proxy-agent:parse-proxy-response");function dye(t){return new Promise((e,r)=>{let s=0,n=[];function i(){let u=t.read();u?l(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",c),t.removeListener("readable",i)}function a(){o(),cE("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(u){o(),cE("onerror %o",u),r(u)}function l(u){n.push(u),s+=u.length;let A=Buffer.concat(n,s),d=A.indexOf(`\r
\r
`);if(d===-1){Og("have not received end of HTTP headers yet..."),i();return}let p=A.slice(0,d).toString("ascii").split(`\r
`),m=p.shift();if(!m)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let f=m.split(" "),y=+f[1],g=f.slice(2).join(" "),E={};for(let C of p){if(!C)continue;let B=C.indexOf(":");if(B===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${C}"`));let x=C.slice(0,B).toLowerCase(),k=C.slice(B+1).trimStart(),O=E[x];typeof O=="string"?E[x]=[O,k]:Array.isArray(O)?O.push(k):E[x]=k}Og("got proxy server response: %o %o",m,E),o(),e({connect:{statusCode:y,statusText:g,headers:E},buffered:A})}t.on("error",c),t.on("end",a),i()})}$l.parseProxyResponse=cEe});var YY=h(vs=>{"use strict";var lEe=vs&&vs.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),uEe=vs&&vs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),zY=vs&&vs.__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)&&lEe(e,t,r);return uEe(e,t),e},VY=vs&&vs.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(vs,"__esModule",{value:!0});vs.HttpsProxyAgent=void 0;var kd=zY(require("net")),GY=zY(require("tls")),AEe=VY(require("assert")),dEe=VY(Ug()),pEe=mN(),mEe=require("url"),hEe=qY(),Dd=(0,dEe.default)("https-proxy-agent"),qg=class extends pEe.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new mEe.URL(e):e,this.proxyHeaders=r?.headers??{},Dd("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?HY(r,"headers"):null,host:s,port:n}}async connect(e,r){let{proxy:s}=this;if(!r.host)throw new TypeError('No "host" provided');let n;if(s.protocol==="https:"){Dd("Creating `tls.Socket`: %o",this.connectOpts);let d=this.connectOpts.servername||this.connectOpts.host;n=GY.connect({...this.connectOpts,servername:d&&kd.isIP(d)?void 0:d})}else Dd("Creating `net.Socket`: %o",this.connectOpts),n=kd.connect(this.connectOpts);let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=kd.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`);if(d===-1){cE("have not received end of HTTP headers yet..."),i();return}let p=A.slice(0,d).toString("ascii").split(`\r
`),m=p.shift();if(!m)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let f=m.split(" "),y=+f[1],g=f.slice(2).join(" "),E={};for(let C of p){if(!C)continue;let B=C.indexOf(":");if(B===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${C}"`));let x=C.slice(0,B).toLowerCase(),P=C.slice(B+1).trimStart(),F=E[x];typeof F=="string"?E[x]=[F,P]:Array.isArray(F)?F.push(P):E[x]=P}cE("got proxy server response: %o %o",m,E),o(),e({connect:{statusCode:y,statusText:g,headers:E},buffered:A})}t.on("error",c),t.on("end",a),i()})}nu.parseProxyResponse=dye});var MY=h(_s=>{"use strict";var pye=_s&&_s.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),mye=_s&&_s.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),_Y=_s&&_s.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&pye(e,t,r);return mye(e,t),e},LY=_s&&_s.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(_s,"__esModule",{value:!0});_s.HttpsProxyAgent=void 0;var Yd=_Y(require("net")),kY=_Y(require("tls")),hye=LY(require("assert")),fye=LY(aE()),gye=H0(),Eye=require("url"),yye=PY(),Jd=(0,fye.default)("https-proxy-agent"),lE=class extends gye.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Eye.URL(e):e,this.proxyHeaders=r?.headers??{},Jd("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?DY(r,"headers"):null,host:s,port:n}}async connect(e,r){let{proxy:s}=this;if(!r.host)throw new TypeError('No "host" provided');let n;if(s.protocol==="https:"){Jd("Creating `tls.Socket`: %o",this.connectOpts);let d=this.connectOpts.servername||this.connectOpts.host;n=kY.connect({...this.connectOpts,servername:d&&Yd.isIP(d)?void 0:d})}else Jd("Creating `net.Socket`: %o",this.connectOpts),n=Yd.connect(this.connectOpts);let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=Yd.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`;if(s.username||s.password){let d=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(d).toString("base64")}`}i.Host=`${o}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(i))a+=`${d}: ${i[d]}\r
`;let c=(0,hEe.parseProxyResponse)(n);n.write(`${a}\r
`);let{connect:l,buffered:u}=await c;if(e.emit("proxyConnect",l),this.emit("proxyConnect",l,e),l.statusCode===200){if(e.once("socket",fEe),r.secureEndpoint){Dd("Upgrading socket connection to TLS");let d=r.servername||r.host;return GY.connect({...HY(r,"host","path","port"),socket:n,servername:kd.isIP(d)?void 0:d})}return n}n.destroy();let A=new kd.Socket({writable:!1});return A.readable=!0,e.once("socket",d=>{Dd("Replaying proxy buffer for failed request"),(0,AEe.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),A}};qg.protocols=["http","https"];vs.HttpsProxyAgent=qg;function fEe(t){t.resume()}function HY(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var WY=h(ks=>{"use strict";var gEe=ks&&ks.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),EEe=ks&&ks.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),JY=ks&&ks.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&gEe(e,t,r);return EEe(e,t),e},yEe=ks&&ks.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ks,"__esModule",{value:!0});ks.HttpProxyAgent=void 0;var CEe=JY(require("net")),IEe=JY(require("tls")),BEe=yEe(Ug()),bEe=require("events"),wEe=mN(),$Y=require("url"),Jl=(0,BEe.default)("http-proxy-agent"),Gg=class extends wEe.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new $Y.URL(e):e,this.proxyHeaders=r?.headers??{},Jl("Creating new HttpProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?QEe(r,"headers"):null,host:s,port:n}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:s}=this,n=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",o=`${n}//${i}`,a=new $Y.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(s.username||s.password){let l=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;c["Proxy-Authorization"]=`Basic ${Buffer.from(l).toString("base64")}`}c["Proxy-Connection"]||(c["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let l of Object.keys(c)){let u=c[l];u&&e.setHeader(l,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let s,n;Jl("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Jl("Patching connection write() output buffer with updated header"),s=e.outputData[0].data,n=s.indexOf(`\r
`;let c=(0,yye.parseProxyResponse)(n);n.write(`${a}\r
`);let{connect:l,buffered:u}=await c;if(e.emit("proxyConnect",l),this.emit("proxyConnect",l,e),l.statusCode===200){if(e.once("socket",Cye),r.secureEndpoint){Jd("Upgrading socket connection to TLS");let d=r.servername||r.host;return kY.connect({...DY(r,"host","path","port"),socket:n,servername:Yd.isIP(d)?void 0:d})}return n}n.destroy();let A=new Yd.Socket({writable:!1});return A.readable=!0,e.once("socket",d=>{Jd("Replaying proxy buffer for failed request"),(0,hye.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),A}};lE.protocols=["http","https"];_s.HttpsProxyAgent=lE;function Cye(t){t.resume()}function DY(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var UY=h(Ls=>{"use strict";var Iye=Ls&&Ls.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Bye=Ls&&Ls.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),FY=Ls&&Ls.__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)&&Iye(e,t,r);return Bye(e,t),e},wye=Ls&&Ls.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ls,"__esModule",{value:!0});Ls.HttpProxyAgent=void 0;var bye=FY(require("net")),Qye=FY(require("tls")),xye=wye(aE()),Nye=require("events"),Sye=H0(),OY=require("url"),iu=(0,xye.default)("http-proxy-agent"),uE=class extends Sye.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new OY.URL(e):e,this.proxyHeaders=r?.headers??{},iu("Creating new HttpProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?Rye(r,"headers"):null,host:s,port:n}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:s}=this,n=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",o=`${n}//${i}`,a=new OY.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(s.username||s.password){let l=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;c["Proxy-Authorization"]=`Basic ${Buffer.from(l).toString("base64")}`}c["Proxy-Connection"]||(c["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let l of Object.keys(c)){let u=c[l];u&&e.setHeader(l,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let s,n;iu("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(iu("Patching connection write() output buffer with updated header"),s=e.outputData[0].data,n=s.indexOf(`\r
\r
`)+4,e.outputData[0].data=e._header+s.substring(n),Jl("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(Jl("Creating `tls.Socket`: %o",this.connectOpts),i=IEe.connect(this.connectOpts)):(Jl("Creating `net.Socket`: %o",this.connectOpts),i=CEe.connect(this.connectOpts)),await(0,bEe.once)(i,"connect"),i}};Gg.protocols=["http","https"];ks.HttpProxyAgent=Gg;function QEe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var g$=h(rE=>{"use strict";Object.defineProperty(rE,"__esModule",{value:!0});rE.state=void 0;rE.state={instrumenterImplementation:void 0}});var D$=h(aE=>{"use strict";Object.defineProperty(aE,"__esModule",{value:!0});aE.state=void 0;aE.state={operationRequestMap:new WeakMap}});var l4=h(pu=>{"use strict";Object.defineProperty(pu,"__esModule",{value:!0});var Mbe=require("os"),Fbe=require("util");function Ube(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var Obe=Ube(Fbe);function qbe(t,...e){process.stderr.write(`${Obe.default.format(t,...e)}${Mbe.EOL}`)}var Z3=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,t4,GT=[],HT=[],wy=[];Z3&&zT(Z3);var r4=Object.assign(t=>s4(t),{enable:zT,enabled:VT,disable:Gbe,log:qbe});function zT(t){t4=t,GT=[],HT=[];let e=/\*/g,r=t.split(",").map(s=>s.trim().replace(e,".*?"));for(let s of r)s.startsWith("-")?HT.push(new RegExp(`^${s.substr(1)}$`)):GT.push(new RegExp(`^${s}$`));for(let s of wy)s.enabled=VT(s.namespace)}function VT(t){if(t.endsWith("*"))return!0;for(let e of HT)if(e.test(t))return!1;for(let e of GT)if(e.test(t))return!0;return!1}function Gbe(){let t=t4||"";return zT(""),t}function s4(t){let e=Object.assign(r,{enabled:VT(t),destroy:Hbe,log:r4.log,namespace:t,extend:zbe});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return wy.push(e),e}function Hbe(){let t=wy.indexOf(this);return t>=0?(wy.splice(t,1),!0):!1}function zbe(t){let e=s4(`${this.namespace}:${t}`);return e.log=this.log,e}var Ip=r4,n4=new Set,By=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,Qy,xy=Ip("azure");xy.log=(...t)=>{Ip.log(...t)};var YT=["verbose","info","warning","error"];By&&(c4(By)?i4(By):console.error(`AZURE_LOG_LEVEL set to unknown log level '${By}'; logging is not enabled. Acceptable values: ${YT.join(", ")}.`));function i4(t){if(t&&!c4(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${YT.join(",")}`);Qy=t;let e=[];for(let r of n4)a4(r)&&e.push(r.namespace);Ip.enable(e.join(","))}function Vbe(){return Qy}var e4={verbose:400,info:300,warning:200,error:100};function Ybe(t){let e=xy.extend(t);return o4(xy,e),{error:by(e,"error"),warning:by(e,"warning"),info:by(e,"info"),verbose:by(e,"verbose")}}function o4(t,e){e.log=(...r)=>{t.log(...r)}}function by(t,e){let r=Object.assign(t.extend(e),{level:e});if(o4(t,r),a4(r)){let s=Ip.disable();Ip.enable(s+","+r.namespace)}return n4.add(r),r}function a4(t){return!!(Qy&&e4[t.level]<=e4[Qy])}function c4(t){return YT.includes(t)}pu.AzureLogger=xy;pu.createClientLogger=Ybe;pu.getLogLevel=Vbe;pu.setLogLevel=i4});var WT=h(bp=>{"use strict";Object.defineProperty(bp,"__esModule",{value:!0});var mu=new WeakMap,Ny=new WeakMap,Bp=class t{constructor(){this.onabort=null,mu.set(this,[]),Ny.set(this,!1)}get aborted(){if(!Ny.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return Ny.get(this)}static get none(){return new t}addEventListener(e,r){if(!mu.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");mu.get(this).push(r)}removeEventListener(e,r){if(!mu.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let s=mu.get(this),n=s.indexOf(r);n>-1&&s.splice(n,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 u4(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=mu.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),Ny.set(t,!0)}var $T=class extends Error{constructor(e){super(e),this.name="AbortError"}},JT=class{constructor(e){if(this._signal=new Bp,!!e){Array.isArray(e)||(e=arguments);for(let r of e)r.aborted?this.abort():r.addEventListener("abort",()=>{this.abort()})}}get signal(){return this._signal}abort(){u4(this._signal)}static timeout(e){let r=new Bp,s=setTimeout(u4,e,r);return typeof s.unref=="function"&&s.unref(),r}};bp.AbortController=JT;bp.AbortError=$T;bp.AbortSignal=Bp});var h4=h(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});var $be=WT(),rP=require("crypto");function A4(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,o)=>{function a(){o(new $be.AbortError(n??"The operation was aborted."))}function c(){s?.removeEventListener("abort",l)}function l(){r?.(),c(),a()}if(s?.aborted)return a();try{t(u=>{c(),i(u)},u=>{c(),o(u)})}catch(u){o(u)}s?.addEventListener("abort",l)})}var Jbe="The delay was aborted.";function Wbe(t,e){let r,{ab Line truncated
`)+4,e.outputData[0].data=e._header+s.substring(n),iu("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(iu("Creating `tls.Socket`: %o",this.connectOpts),i=Qye.connect(this.connectOpts)):(iu("Creating `net.Socket`: %o",this.connectOpts),i=bye.connect(this.connectOpts)),await(0,Nye.once)(i,"connect"),i}};uE.protocols=["http","https"];Ls.HttpProxyAgent=uE;function Rye(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var cJ=h(bE=>{"use strict";Object.defineProperty(bE,"__esModule",{value:!0});bE.state=void 0;bE.state={instrumenterImplementation:void 0}});var QJ=h(RE=>{"use strict";Object.defineProperty(RE,"__esModule",{value:!0});RE.state=void 0;RE.state={operationRequestMap:new WeakMap}});var eW=h(bu=>{"use strict";Object.defineProperty(bu,"__esModule",{value:!0});var qbe=require("os"),Gbe=require("util");function Hbe(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var zbe=Hbe(Gbe);function Vbe(t,...e){process.stderr.write(`${zbe.default.format(t,...e)}${qbe.EOL}`)}var z4=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,$4,gv=[],Ev=[],$y=[];z4&&yv(z4);var Y4=Object.assign(t=>J4(t),{enable:yv,enabled:Cv,disable:$be,log:Vbe});function yv(t){$4=t,gv=[],Ev=[];let e=/\*/g,r=t.split(",").map(s=>s.trim().replace(e,".*?"));for(let s of r)s.startsWith("-")?Ev.push(new RegExp(`^${s.substr(1)}$`)):gv.push(new RegExp(`^${s}$`));for(let s of $y)s.enabled=Cv(s.namespace)}function Cv(t){if(t.endsWith("*"))return!0;for(let e of Ev)if(e.test(t))return!1;for(let e of gv)if(e.test(t))return!0;return!1}function $be(){let t=$4||"";return yv(""),t}function J4(t){let e=Object.assign(r,{enabled:Cv(t),destroy:Ybe,log:Y4.log,namespace:t,extend:Jbe});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return $y.push(e),e}function Ybe(){let t=$y.indexOf(this);return t>=0?($y.splice(t,1),!0):!1}function Jbe(t){let e=J4(`${this.namespace}:${t}`);return e.log=this.log,e}var _p=Y4,W4=new Set,zy=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,Yy,Jy=_p("azure");Jy.log=(...t)=>{_p.log(...t)};var Iv=["verbose","info","warning","error"];zy&&(Z4(zy)?j4(zy):console.error(`AZURE_LOG_LEVEL set to unknown log level '${zy}'; logging is not enabled. Acceptable values: ${Iv.join(", ")}.`));function j4(t){if(t&&!Z4(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${Iv.join(",")}`);Yy=t;let e=[];for(let r of W4)X4(r)&&e.push(r.namespace);_p.enable(e.join(","))}function Wbe(){return Yy}var V4={verbose:400,info:300,warning:200,error:100};function jbe(t){let e=Jy.extend(t);return K4(Jy,e),{error:Vy(e,"error"),warning:Vy(e,"warning"),info:Vy(e,"info"),verbose:Vy(e,"verbose")}}function K4(t,e){e.log=(...r)=>{t.log(...r)}}function Vy(t,e){let r=Object.assign(t.extend(e),{level:e});if(K4(t,r),X4(r)){let s=_p.disable();_p.enable(s+","+r.namespace)}return W4.add(r),r}function X4(t){return!!(Yy&&V4[t.level]<=V4[Yy])}function Z4(t){return Iv.includes(t)}bu.AzureLogger=Jy;bu.createClientLogger=jbe;bu.getLogLevel=Wbe;bu.setLogLevel=j4});var bv=h(Mp=>{"use strict";Object.defineProperty(Mp,"__esModule",{value:!0});var Qu=new WeakMap,Wy=new WeakMap,Lp=class t{constructor(){this.onabort=null,Qu.set(this,[]),Wy.set(this,!1)}get aborted(){if(!Wy.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return Wy.get(this)}static get none(){return new t}addEventListener(e,r){if(!Qu.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Qu.get(this).push(r)}removeEventListener(e,r){if(!Qu.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let s=Qu.get(this),n=s.indexOf(r);n>-1&&s.splice(n,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 tW(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=Qu.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),Wy.set(t,!0)}var Bv=class extends Error{constructor(e){super(e),this.name="AbortError"}},wv=class{constructor(e){if(this._signal=new Lp,!!e){Array.isArray(e)||(e=arguments);for(let r of e)r.aborted?this.abort():r.addEventListener("abort",()=>{this.abort()})}}get signal(){return this._signal}abort(){tW(this._signal)}static timeout(e){let r=new Lp,s=setTimeout(tW,e,r);return typeof s.unref=="function"&&s.unref(),r}};Mp.AbortController=wv;Mp.AbortError=Bv;Mp.AbortSignal=Lp});var oW=h(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});var Kbe=bv(),vv=require("crypto");function rW(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,o)=>{function a(){o(new Kbe.AbortError(n??"The operation was aborted."))}function c(){s?.removeEventListener("abort",l)}function l(){r?.(),c(),a()}if(s?.aborted)return a();try{t(u=>{c(),i(u)},u=>{c(),o(u)})}catch(u){o(u)}s?.addEventListener("abort",l)})}var Xbe="The delay was aborted.";function Zbe(t,e){let r,{ab Line truncated
Polling from: ${r.config.operationLocation}
Operation status: ${u}
Polling status: ${y4.includes(u)?"Stopped":"Running"}`),u==="succeeded"){let A=o(l,r);if(A!==void 0)return{response:await e(A).catch(g4({state:r,stateProxy:s,isOperationError:a})),status:u}}return{response:l,status:u}}async function b4(t){let{poll:e,state:r,stateProxy:s,options:n,getOperationStatus:i,getResourceLocation:o,getOperationLocation:a,isOperationError:c,withOperationLocation:l,getPollingInterval:u,processResult:A,getError:d,updateState:p,setDelay:m,isDone:f,setErrorAsResult:y}=t,{operationLocation:g}=r.config;if(g!==void 0){let{response:E,status:C}=await Bwe({poll:e,getOperationStatus:i,state:r,stateProxy:s,operationLocation:g,getResourceLocation:o,isOperationError:c,options:n});if(I4({status:C,response:E,state:r,stateProxy:s,isDone:f,processResult:A,getError:d,setErrorAsResult:y}),!y4.includes(C)){let B=u?.(E);B&&m(B);let x=a?.(E,r);if(x!==void 0){let k=g!==x;r.config.operationLocation=x,l?.(x,k)}else l?.(g,!1)}p?.(r,E)}}function w4(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}function Q4(t){return t.headers.location}function x4(t){return t.headers["operation-location"]}function N4(t){return t.headers["azure-asyncoperation"]}function bwe(t){var e;let{location:r,requestMethod:s,requestPath:n,resourceLocationConfig:i}=t;switch(s){case"PUT":return n;case"DELETE":return;case"PATCH":return(e=o())!==null&&e!==void 0?e:n;default:return o()}function o(){switch(i){case"azure-async-operation":return;case"original-uri":return n;default:return r}}}function S4(t){let{rawResponse:e,requestMethod:r,requestPath:s,resourceLocationConfig:n}=t,i=x4(e),o=N4(e),a=w4({operationLocation:i,azureAsyncOperation:o}),c=Q4(e),l=r?.toLocaleUpperCase();return a!==void 0?{mode:"OperationLocation",operationLocation:a,resourceLocation:bwe({requestMethod:l,location:c,requestPath:s,resourceLocationConfig:n})}:c!==void 0?{mode:"ResourceLocation",operationLocation:c}:l==="PUT"&&s?{mode:"Body",operationLocation:s}:void 0}function R4(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 oP(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 cc.verbose(`LRO: unrecognized operation status: ${e}`),e}}function wwe(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return R4({status:r,statusCode:t.statusCode})}function Qwe(t){var e,r;let{properties:s,provisioningState:n}=(e=t.body)!==null&&e!==void 0?e:{},i=(r=s?.provisioningState)!==null&&r!==void 0?r:n;return R4({status:i,statusCode:t.statusCode})}function oP(t){return t===202?"running":t<300?"succeeded":"failed"}function T4({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?xwe(new Date(e)):r*1e3}}function P4(t){let e=t.flatResponse.error;if(!e){cc.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){cc.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 xwe(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}function v4(t){let{response:e,state:r,operationLocation:s}=t;function n(){var o;switch((o=r.config.metadata)===null||o===void 0?void 0:o.mode){case void 0:return oP(e.rawResponse.statusCode);case"Body":return aP(e,r);default:return"running"}}let i=n();return i==="running"&&s===void 0?"succeeded":i}async function Nwe(t){let{stateProxy:e,resourceLocationConfig:r,processResult:s,lro:n,setErrorAsResult:i}=t;return B4({init:async()=>{let o=await n.sendInitialRequest(),a=S4({rawResponse:o.rawResponse,requestPath:n.requestPath,requestMethod:n.requestMethod,resourceLocationConfig:r});return Object.assign({response:o,operationLocation:a?.operationLocation,resourceLocation:a?.resourceLocation},a?.mode?{metadata:{mode:a.mode}}:{})},stateProxy:e,processResult:s?({flatResponse:o},a)=>s(o,a):({flatResponse:o})=>o,getOperationStatus:v4,setErrorAsResult:i})}function k4({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r===void 0?void 0:r.mode){case"OperationLocation":return w4({operationLocation:x4(t),azureAsyncOperation:N4(t)});case"ResourceLocation":return Q4(t);default:return}}function aP({rawResponse:t},e){var r;let s=(r=e.config.metadata)===null||r===void 0?void 0:r.mode;switch(s){case"OperationLocation":return wwe(t);case"ResourceLocation":return oP(t.statusCode);case"Body":return Qwe(t);default:throw new Error(`Internal error: Unexpected operation mode: ${s}`)}}function D4({flatResponse:t},e){if(typeof t=="object"){let r=t.resourceLocation;r!Line truncated
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(n){case 0:o=i,n=1;break;case 1:r[s++]=o<<2|(i&48)>>4,o=i,n=2;break;case 2:r[s++]=(o&15)<<4|(i&60)>>2,o=i,n=3;break;case 3:r[s++]=(o&3)<<6|i,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,s)}Cu.base64decode=uQe;function AQe(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=oo[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=oo[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=oo[n|s>>6],e+=oo[s&63],r=0;break}return r&&(e+=oo[n],e+="=",r==1&&(e+="=")),e}Cu.base64encode=AQe});var lW=h(Yy=>{"use strict";Object.defineProperty(Yy,"__esModule",{value:!0});Yy.utf8read=void 0;var gP=t=>String.fromCharCode.apply(String,t);function dQe(t){if(t.length<1)return"";let e=0,r=[],s=[],n=0,i,o=t.length;for(;e<o;)i=t[e++],i<128?s[n++]=i:i>191&&i<224?s[n++]=(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,s[n++]=55296+(i>>10),s[n++]=56320+(i&1023)):s[n++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,n>8191&&(r.push(gP(s)),n=0);return r.length?(n&&r.push(gP(s.slice(0,n))),r.join("")):gP(s.slice(0,n))}Yy.utf8read=dQe});var Pp=h(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.WireType=gi.mergeBinaryOptions=gi.UnknownFieldHandler=void 0;var pQe;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,s,n,i,o)=>{(e(s)?s[t.symbol]:s[t.symbol]=[]).push({no:n,wireType:i,data:o})},t.onWrite=(r,s,n)=>{for(let{no:i,wireType:o,data:a}of t.list(s))n.tag(i,o).raw(a)},t.list=(r,s)=>{if(e(r)){let n=r[t.symbol];return s?n.filter(i=>i.no==s):n}return[]},t.last=(r,s)=>t.list(r,s).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(pQe=gi.UnknownFieldHandler||(gi.UnknownFieldHandler={}));function mQe(t,e){return Object.assign(Object.assign({},t),e)}gi.mergeBinaryOptions=mQe;var hQe;(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"})(hQe=gi.WireType||(gi.WireType={}))});var Jy=h(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur.varint32read=Ur.varint32write=Ur.int64toString=Ur.int64fromString=Ur.varint64write=Ur.varint64read=void 0;function fQe(){let t=0,e=0;for(let s=0;s<28;s+=7){let n=this.buf[this.pos++];if(t|=(n&127)<<s,(n&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 s=3;s<=31;s+=7){let n=this.buf[this.pos++];if(e|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}Ur.varint64read=fQe;function gQe(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 s=t>>>28&15|(e&7)<<4,n=e>>3!=0;if(r.push((n?s|128:s)&255),!!n){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)}}Ur.varint64write=gQe;var $y=65536*65536;function EQe(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,s=0,n=0;function i(o,a){let c=Number(t.slice(o,a));n*=r,s=s*r+c,s>=$y&&(n=n+(s/$y|0),s=s%$y)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}Ur.int64fromString=EQe;function yQe(t,e){if(e>>>0<=2097151)return""+($y*e+(t>>>0));let r=t&16777215,s=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,i=r+s*6777216+n*6710656,o=s+n*8147497,a=n*2,c=1e7;i>=c&&(o+=Math.floor(i/c),i%=c),o>=c&&(a+=Math.floor(o/c),o%=c);function l(u,A){let d=u?String(u):"";return A?"0000000".slice(d.length)+d:d}return l(a,0)+l(o,a)+l(i,1)}Ur.int64toString=yQe;function CQe(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)}}Ur.varint32write=CQe;function IQe(){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.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}Ur.varint32read=IQe});var ea=h(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.PbLong=Zo.PbULong=Zo.detectBi=void 0;var vp=Jy(),ke;function uW(){let t=new DataView(new ArrayBuffer(8));ke=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}Zo.detectBi=uW;uW();function AW(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var dW=/^-?[0-9]+$/,jy=4294967296,Wy=2147483648,Ky=class{c Line truncated
`)}};IC.RpcError=zP});var YP=h(bC=>{"use strict";Object.defineProperty(bC,"__esModule",{value:!0});bC.mergeRpcOptions=void 0;var GW=gt();function Hxe(t,e){if(!e)return t;let r={};BC(t,r),BC(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=GW.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=GW.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},BC(t.meta,r.meta),BC(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}bC.mergeRpcOptions=Hxe;function BC(t,e){if(!t)return;let r=e;for(let[s,n]of Object.entries(t))n instanceof Date?r[s]=new Date(n.getTime()):Array.isArray(n)?r[s]=n.concat():r[s]=n}});var JP=h(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});pc.Deferred=pc.DeferredState=void 0;var Ci;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Ci=pc.DeferredState||(pc.DeferredState={}));var $P=class{constructor(e=!0){this._state=Ci.PENDING,this._promise=new Promise((r,s)=>{this._resolve=r,this._reject=s}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==Ci.PENDING)throw new Error(`cannot resolve ${Ci[this.state].toLowerCase()}`);this._resolve(e),this._state=Ci.RESOLVED}reject(e){if(this.state!==Ci.PENDING)throw new Error(`cannot reject ${Ci[this.state].toLowerCase()}`);this._reject(e),this._state=Ci.REJECTED}resolvePending(e){this._state===Ci.PENDING&&this.resolve(e)}rejectPending(e){this._state===Ci.PENDING&&this.reject(e)}};pc.Deferred=$P});var jP=h(wC=>{"use strict";Object.defineProperty(wC,"__esModule",{value:!0});wC.RpcOutputStreamController=void 0;var HW=JP(),mc=gt(),WP=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 s=r.indexOf(e);s>=0&&r.splice(s,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,s){mc.assert((e?1:0)+(r?1:0)+(s?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),s&&this.notifyComplete()}notifyMessage(e){mc.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){mc.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(){mc.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;mc.assert(e,"bad state"),mc.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 HW.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;mc.assert(s.state==HW.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};wC.RpcOutputStreamController=WP});var XP=h(Nu=>{"use strict";var zxe=Nu&&Nu.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{l(s.next(u))}catch(A){o(A)}}function c(u){try{l(s.throw(u))}catch(A){o(A)}}function l(u){u.done?i(u.value):n(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};Object.defineProperty(Nu,"__esModule",{value:!0});Nu.UnaryCall=void 0;var KP=class{constructor(e,r,s,n,i,o,a){this.method=e,this.requestHeaders=r,this.request=s,this.headers=n,this.response=i,this.status=o,this.trailers=a}then(e,r){return this.promiseFinished().then(s=>e?Promise.resolve(e(s)):s,s=>r?Promise.resolve(r(s)):Promise.reject(s))}promiseFinished(){return zxe(this,void 0,void 0,function*(){let[e,r,s,n]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:s,trailers:n}})}};Nu.UnaryCall=KP});var ev=h(Su=>{"use strict";var Vxe=Su&&Su.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{l(s.next(u))}catch(A){o(A)}}function c(u){try{l(s.throw(u))}catch(A){o(A)}}function l(u){u.done?i(u.value):n(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};Object.defineProperty(Su,"__esModule",{value:!0});Su.ServerStreamingCall=void 0;var ZP=class{constructor(e,r,s,n Line truncated
Polling status: ${uW.includes(u)?"Stopped":"Running"}`),u==="succeeded"){let A=o(l,r);if(A!==void 0)return{response:await e(A).catch(cW({state:r,stateProxy:s,isOperationError:a})),status:u}}return{response:l,status:u}}async function mW(t){let{poll:e,state:r,stateProxy:s,options:n,getOperationStatus:i,getResourceLocation:o,getOperationLocation:a,isOperationError:c,withOperationLocation:l,getPollingInterval:u,processResult:A,getError:d,updateState:p,setDelay:m,isDone:f,setErrorAsResult:y}=t,{operationLocation:g}=r.config;if(g!==void 0){let{response:E,status:C}=await xQe({poll:e,getOperationStatus:i,state:r,stateProxy:s,operationLocation:g,getResourceLocation:o,isOperationError:c,options:n});if(dW({status:C,response:E,state:r,stateProxy:s,isDone:f,processResult:A,getError:d,setErrorAsResult:y}),!uW.includes(C)){let B=u?.(E);B&&m(B);let x=a?.(E,r);if(x!==void 0){let P=g!==x;r.config.operationLocation=x,l?.(x,P)}else l?.(g,!1)}p?.(r,E)}}function hW(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}function fW(t){return t.headers.location}function gW(t){return t.headers["operation-location"]}function EW(t){return t.headers["azure-asyncoperation"]}function NQe(t){var e;let{location:r,requestMethod:s,requestPath:n,resourceLocationConfig:i}=t;switch(s){case"PUT":return n;case"DELETE":return;case"PATCH":return(e=o())!==null&&e!==void 0?e:n;default:return o()}function o(){switch(i){case"azure-async-operation":return;case"original-uri":return n;default:return r}}}function yW(t){let{rawResponse:e,requestMethod:r,requestPath:s,resourceLocationConfig:n}=t,i=gW(e),o=EW(e),a=hW({operationLocation:i,azureAsyncOperation:o}),c=fW(e),l=r?.toLocaleUpperCase();return a!==void 0?{mode:"OperationLocation",operationLocation:a,resourceLocation:NQe({requestMethod:l,location:c,requestPath:s,resourceLocationConfig:n})}:c!==void 0?{mode:"ResourceLocation",operationLocation:c}:l==="PUT"&&s?{mode:"Body",operationLocation:s}:void 0}function CW(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 _v(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 Cc.verbose(`LRO: unrecognized operation status: ${e}`),e}}function SQe(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return CW({status:r,statusCode:t.statusCode})}function RQe(t){var e,r;let{properties:s,provisioningState:n}=(e=t.body)!==null&&e!==void 0?e:{},i=(r=s?.provisioningState)!==null&&r!==void 0?r:n;return CW({status:i,statusCode:t.statusCode})}function _v(t){return t===202?"running":t<300?"succeeded":"failed"}function IW({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?TQe(new Date(e)):r*1e3}}function BW(t){let e=t.flatResponse.error;if(!e){Cc.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){Cc.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 TQe(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}function wW(t){let{response:e,state:r,operationLocation:s}=t;function n(){var o;switch((o=r.config.metadata)===null||o===void 0?void 0:o.mode){case void 0:return _v(e.rawResponse.statusCode);case"Body":return Lv(e,r);default:return"running"}}let i=n();return i==="running"&&s===void 0?"succeeded":i}async function vQe(t){let{stateProxy:e,resourceLocationConfig:r,processResult:s,lro:n,setErrorAsResult:i}=t;return pW({init:async()=>{let o=await n.sendInitialRequest(),a=yW({rawResponse:o.rawResponse,requestPath:n.requestPath,requestMethod:n.requestMethod,resourceLocationConfig:r});return Object.assign({response:o,operationLocation:a?.operationLocation,resourceLocation:a?.resourceLocation},a?.mode?{metadata:{mode:a.mode}}:{})},stateProxy:e,processResult:s?({flatResponse:o},a)=>s(o,a):({flatResponse:o})=>o,getOperationStatus:wW,setErrorAsResult:i})}function bW({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r===void 0?void 0:r.mode){case"OperationLocation":return hW({operationLocation:gW(t),azureAsyncOperation:EW(t)});case"ResourceLocation":return fW(t);default:return}}function Lv({rawResponse:t},e){var r;let s=(r=e.config.metadata)===null||r===void 0?void 0:r.mode;switch(s){case"OperationLocation":return SQe(t);case"ResourceLocation":return _v(t.statusCode);case"Body":return RQe(t);default:throw new Error(`Internal error: Unexpected operation mode: ${s}`)}}function QW({flatResponse:t},e){if(typeof t=="object"){let r=t.resourceLocation;r!Line truncated
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(n){case 0:o=i,n=1;break;case 1:r[s++]=o<<2|(i&48)>>4,o=i,n=2;break;case 2:r[s++]=(o&15)<<4|(i&60)>>2,o=i,n=3;break;case 3:r[s++]=(o&3)<<6|i,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,s)}vu.base64decode=mxe;function hxe(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=Ao[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=Ao[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=Ao[n|s>>6],e+=Ao[s&63],r=0;break}return r&&(e+=Ao[n],e+="=",r==1&&(e+="=")),e}vu.base64encode=hxe});var e8=h(mC=>{"use strict";Object.defineProperty(mC,"__esModule",{value:!0});mC.utf8read=void 0;var $v=t=>String.fromCharCode.apply(String,t);function fxe(t){if(t.length<1)return"";let e=0,r=[],s=[],n=0,i,o=t.length;for(;e<o;)i=t[e++],i<128?s[n++]=i:i>191&&i<224?s[n++]=(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,s[n++]=55296+(i>>10),s[n++]=56320+(i&1023)):s[n++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,n>8191&&(r.push($v(s)),n=0);return r.length?(n&&r.push($v(s.slice(0,n))),r.join("")):$v(s.slice(0,n))}mC.utf8read=fxe});var Vp=h(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});Bi.WireType=Bi.mergeBinaryOptions=Bi.UnknownFieldHandler=void 0;var gxe;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,s,n,i,o)=>{(e(s)?s[t.symbol]:s[t.symbol]=[]).push({no:n,wireType:i,data:o})},t.onWrite=(r,s,n)=>{for(let{no:i,wireType:o,data:a}of t.list(s))n.tag(i,o).raw(a)},t.list=(r,s)=>{if(e(r)){let n=r[t.symbol];return s?n.filter(i=>i.no==s):n}return[]},t.last=(r,s)=>t.list(r,s).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(gxe=Bi.UnknownFieldHandler||(Bi.UnknownFieldHandler={}));function Exe(t,e){return Object.assign(Object.assign({},t),e)}Bi.mergeBinaryOptions=Exe;var yxe;(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"})(yxe=Bi.WireType||(Bi.WireType={}))});var fC=h(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.varint32read=qr.varint32write=qr.int64toString=qr.int64fromString=qr.varint64write=qr.varint64read=void 0;function Cxe(){let t=0,e=0;for(let s=0;s<28;s+=7){let n=this.buf[this.pos++];if(t|=(n&127)<<s,(n&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 s=3;s<=31;s+=7){let n=this.buf[this.pos++];if(e|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}qr.varint64read=Cxe;function Ixe(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 s=t>>>28&15|(e&7)<<4,n=e>>3!=0;if(r.push((n?s|128:s)&255),!!n){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)}}qr.varint64write=Ixe;var hC=65536*65536;function Bxe(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,s=0,n=0;function i(o,a){let c=Number(t.slice(o,a));n*=r,s=s*r+c,s>=hC&&(n=n+(s/hC|0),s=s%hC)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}qr.int64fromString=Bxe;function wxe(t,e){if(e>>>0<=2097151)return""+(hC*e+(t>>>0));let r=t&16777215,s=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,i=r+s*6777216+n*6710656,o=s+n*8147497,a=n*2,c=1e7;i>=c&&(o+=Math.floor(i/c),i%=c),o>=c&&(a+=Math.floor(o/c),o%=c);function l(u,A){let d=u?String(u):"";return A?"0000000".slice(d.length)+d:d}return l(a,0)+l(o,a)+l(i,1)}qr.int64toString=wxe;function bxe(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)}}qr.varint32write=bxe;function Qxe(){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.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}qr.varint32read=Qxe});var ca=h(aa=>{"use strict";Object.defineProperty(aa,"__esModule",{value:!0});aa.PbLong=aa.PbULong=aa.detectBi=void 0;var $p=fC(),_e;function t8(){let t=new DataView(new ArrayBuffer(8));_e=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}aa.detectBi=t8;t8();function r8(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var s8=/^-?[0-9]+$/,EC=4294967296,gC=2147483648,yC=class{c Line truncated
`)}};HC.RpcError=yP});var IP=h(VC=>{"use strict";Object.defineProperty(VC,"__esModule",{value:!0});VC.mergeRpcOptions=void 0;var k8=gt();function Y0e(t,e){if(!e)return t;let r={};zC(t,r),zC(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=k8.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=k8.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},zC(t.meta,r.meta),zC(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}VC.mergeRpcOptions=Y0e;function zC(t,e){if(!t)return;let r=e;for(let[s,n]of Object.entries(t))n instanceof Date?r[s]=new Date(n.getTime()):Array.isArray(n)?r[s]=n.concat():r[s]=n}});var wP=h(Qc=>{"use strict";Object.defineProperty(Qc,"__esModule",{value:!0});Qc.Deferred=Qc.DeferredState=void 0;var Qi;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Qi=Qc.DeferredState||(Qc.DeferredState={}));var BP=class{constructor(e=!0){this._state=Qi.PENDING,this._promise=new Promise((r,s)=>{this._resolve=r,this._reject=s}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==Qi.PENDING)throw new Error(`cannot resolve ${Qi[this.state].toLowerCase()}`);this._resolve(e),this._state=Qi.RESOLVED}reject(e){if(this.state!==Qi.PENDING)throw new Error(`cannot reject ${Qi[this.state].toLowerCase()}`);this._reject(e),this._state=Qi.REJECTED}resolvePending(e){this._state===Qi.PENDING&&this.resolve(e)}rejectPending(e){this._state===Qi.PENDING&&this.reject(e)}};Qc.Deferred=BP});var QP=h($C=>{"use strict";Object.defineProperty($C,"__esModule",{value:!0});$C.RpcOutputStreamController=void 0;var D8=wP(),xc=gt(),bP=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 s=r.indexOf(e);s>=0&&r.splice(s,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,s){xc.assert((e?1:0)+(r?1:0)+(s?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),s&&this.notifyComplete()}notifyMessage(e){xc.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){xc.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(){xc.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;xc.assert(e,"bad state"),xc.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 D8.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;xc.assert(s.state==D8.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};$C.RpcOutputStreamController=bP});var NP=h(Ou=>{"use strict";var J0e=Ou&&Ou.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{l(s.next(u))}catch(A){o(A)}}function c(u){try{l(s.throw(u))}catch(A){o(A)}}function l(u){u.done?i(u.value):n(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};Object.defineProperty(Ou,"__esModule",{value:!0});Ou.UnaryCall=void 0;var xP=class{constructor(e,r,s,n,i,o,a){this.method=e,this.requestHeaders=r,this.request=s,this.headers=n,this.response=i,this.status=o,this.trailers=a}then(e,r){return this.promiseFinished().then(s=>e?Promise.resolve(e(s)):s,s=>r?Promise.resolve(r(s)):Promise.reject(s))}promiseFinished(){return J0e(this,void 0,void 0,function*(){let[e,r,s,n]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:s,trailers:n}})}};Ou.UnaryCall=xP});var RP=h(Fu=>{"use strict";var W0e=Fu&&Fu.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{l(s.next(u))}catch(A){o(A)}}function c(u){try{l(s.throw(u))}catch(A){o(A)}}function l(u){u.done?i(u.value):n(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};Object.defineProperty(Fu,"__esModule",{value:!0});Fu.ServerStreamingCall=void 0;var SP=class{constructor(e,r,s,n Line truncated
You can add a runtime option to disable the check or this warning:
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function w0e(){Object.keys(zC).forEach(function(t){delete zC[t]})}});var YC=h(bi=>{"use strict";bi.__esModule=!0;bi.HandlebarsEnvironment=$v;function H8(t){return t&&t.__esModule?t:{default:t}}var Cc=yr(),Q0e=ms(),Vv=H8(Q0e),x0e=qv(),N0e=U8(),S0e=Hv(),VC=H8(S0e),R0e=zv(),T0e="4.7.9";bi.VERSION=T0e;var P0e=8;bi.COMPILER_REVISION=P0e;var v0e=7;bi.LAST_COMPATIBLE_COMPILER_REVISION=v0e;var k0e={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"};bi.REVISION_CHANGES=k0e;var Yv="[object Object]";function $v(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},x0e.registerDefaultHelpers(this),N0e.registerDefaultDecorators(this)}$v.prototype={constructor:$v,logger:VC.default,log:VC.default.log,registerHelper:function(e,r){if(Cc.toString.call(e)===Yv){if(r)throw new Vv.default("Arg not supported with multiple helpers");Cc.extend(this.helpers,e)}else this.helpers[e]=r},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,r){if(Cc.toString.call(e)===Yv)Cc.extend(this.partials,e);else{if(typeof r>"u")throw new Vv.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(Cc.toString.call(e)===Yv){if(r)throw new Vv.default("Arg not supported with multiple decorators");Cc.extend(this.decorators,e)}else this.decorators[e]=r},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){R0e.resetLoggedProperties()}};var D0e=VC.default.log;bi.log=D0e;bi.createFrame=Cc.createFrame;bi.logger=VC.default});var V8=h(($C,z8)=>{"use strict";$C.__esModule=!0;function Jv(t){this.string=t}Jv.prototype.toString=Jv.prototype.toHTML=function(){return""+this.string};$C.default=Jv;z8.exports=$C.default});var Y8=h(Wv=>{"use strict";Wv.__esModule=!0;Wv.wrapHelper=_0e;function _0e(t,e){if(typeof t!="function")return t;var r=function(){var n=arguments[arguments.length-1];return arguments[arguments.length-1]=e(n),t.apply(this,arguments)};return r}});var X8=h(sa=>{"use strict";sa.__esModule=!0;sa.checkRevision=q0e;sa.template=G0e;sa.wrapProgram=JC;sa.resolvePartial=H0e;sa.invokePartial=z0e;sa.noop=j8;function L0e(t){return t&&t.__esModule?t:{default:t}}function M0e(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 F0e=yr(),Mu=M0e(F0e),U0e=ms(),co=L0e(U0e),lo=YC(),$8=qv(),O0e=Y8(),J8=zv();function q0e(t){var e=t&&t[0]||1,r=lo.COMPILER_REVISION;if(!(e>=lo.LAST_COMPATIBLE_COMPILER_REVISION&&e<=lo.COMPILER_REVISION))if(e<lo.LAST_COMPATIBLE_COMPILER_REVISION){var s=lo.REVISION_CHANGES[r],n=lo.REVISION_CHANGES[e];throw new co.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+s+") or downgrade your runtime to an older version ("+n+").")}else throw new co.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 G0e(t,e){if(!e)throw new co.default("No environment passed to template");if(!t||!t.main)throw new co.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 s(o,a,c){c.hash&&(a=Mu.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 l=e.VM.invokePartial.call(this,o,a,c);if(l==null&&e.compile&&(c.partials[c.name]=e.compile(o,t.compilerOptions,e),l=c.partials[c.name](a,c)),l!=null){if(c.indent){for(var u=l.split(`
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function SSe(){Object.keys(dI).forEach(function(t){delete dI[t]})}});var mI=h(Si=>{"use strict";Si.__esModule=!0;Si.HandlebarsEnvironment=Bk;function D5(t){return t&&t.__esModule?t:{default:t}}var Pc=Ir(),RSe=fs(),Ck=D5(RSe),TSe=fk(),vSe=T5(),PSe=Ek(),pI=D5(PSe),kSe=yk(),DSe="4.7.9";Si.VERSION=DSe;var _Se=8;Si.COMPILER_REVISION=_Se;var LSe=7;Si.LAST_COMPATIBLE_COMPILER_REVISION=LSe;var MSe={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"};Si.REVISION_CHANGES=MSe;var Ik="[object Object]";function Bk(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},TSe.registerDefaultHelpers(this),vSe.registerDefaultDecorators(this)}Bk.prototype={constructor:Bk,logger:pI.default,log:pI.default.log,registerHelper:function(e,r){if(Pc.toString.call(e)===Ik){if(r)throw new Ck.default("Arg not supported with multiple helpers");Pc.extend(this.helpers,e)}else this.helpers[e]=r},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,r){if(Pc.toString.call(e)===Ik)Pc.extend(this.partials,e);else{if(typeof r>"u")throw new Ck.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(Pc.toString.call(e)===Ik){if(r)throw new Ck.default("Arg not supported with multiple decorators");Pc.extend(this.decorators,e)}else this.decorators[e]=r},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){kSe.resetLoggedProperties()}};var OSe=pI.default.log;Si.log=OSe;Si.createFrame=Pc.createFrame;Si.logger=pI.default});var L5=h((hI,_5)=>{"use strict";hI.__esModule=!0;function wk(t){this.string=t}wk.prototype.toString=wk.prototype.toHTML=function(){return""+this.string};hI.default=wk;_5.exports=hI.default});var M5=h(bk=>{"use strict";bk.__esModule=!0;bk.wrapHelper=FSe;function FSe(t,e){if(typeof t!="function")return t;var r=function(){var n=arguments[arguments.length-1];return arguments[arguments.length-1]=e(n),t.apply(this,arguments)};return r}});var H5=h(Aa=>{"use strict";Aa.__esModule=!0;Aa.checkRevision=VSe;Aa.template=$Se;Aa.wrapProgram=fI;Aa.resolvePartial=YSe;Aa.invokePartial=JSe;Aa.noop=q5;function USe(t){return t&&t.__esModule?t:{default:t}}function qSe(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 GSe=Ir(),Ju=qSe(GSe),HSe=fs(),mo=USe(HSe),ho=mI(),O5=fk(),zSe=M5(),F5=yk();function VSe(t){var e=t&&t[0]||1,r=ho.COMPILER_REVISION;if(!(e>=ho.LAST_COMPATIBLE_COMPILER_REVISION&&e<=ho.COMPILER_REVISION))if(e<ho.LAST_COMPATIBLE_COMPILER_REVISION){var s=ho.REVISION_CHANGES[r],n=ho.REVISION_CHANGES[e];throw new mo.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+s+") or downgrade your runtime to an older version ("+n+").")}else throw new mo.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 $Se(t,e){if(!e)throw new mo.default("No environment passed to template");if(!t||!t.main)throw new mo.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 s(o,a,c){c.hash&&(a=Ju.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 l=e.VM.invokePartial.call(this,o,a,c);if(l==null&&e.compile&&(c.partials[c.name]=e.compile(o,t.compilerOptions,e),l=c.partials[c.name](a,c)),l!=null){if(c.indent){for(var u=l.split(`
`),A=0,d=u.length;A<d&&!(!u[A]&&A+1===d);A++)u[A]=c.indent+u[A];l=u.join(`
`)}return l}else throw new co.default("The partial "+c.name+" could not be compiled when running in runtime-only mode")}var n={strict:function(a,c,l){if(!a||!(c in a))throw new co.default('"'+c+'" not defined in '+a,{loc:l});return n.lookupProperty(a,c)},lookupProperty:function(a,c){var l=a[c];if(l==null||Object.prototype.hasOwnProperty.call(a,c)||J8.resultIsAllowed(l,n.protoAccessControl,c))return l},lookup:function(a,c){for(var l=a.length,u=0;u<l;u++){var A=a[u]&&n.lookupProperty(a[u],c);if(A!=null)return A}},lambda:function(a,c){return typeof a=="function"?a.call(c):a},escapeExpression:Mu.escapeExpression,invokePartial:s,fn:function(a){var c=t[a];return c.decorator=t[a+"_d"],c},programs:[],program:function(a,c,l,u,A){var d=this.programs[a],p=this.fn(a);return c||A||u||l?d=JC(this,a,p,c,l,u,A):d||(d=this.programs[a]=JC(this,a,p)),d},data:function(a,c){for(;a&&c--;)a=a._parent;return a},mergeIfNeeded:function(a,c){var l=a||c;return a&&c&&a!==c&&(l=Mu.extend({},c,a)),l},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=V0e(o,c));var l=void 0,u=t.useBlockParams?[]:void 0;t.useDepths&&(a.depths?l=o!=a.depths[0]?[o].concat(a.depths):a.depths:l=[o]);function A(d){return""+t.main(n,d,n.helpers,n.partials,c,u,l)}return A=K8(t.main,A,n,a.depths||[],c,u),A(o,a)}return i.isTop=!0,i._setup=function(o){if(o.partial)n.protoAccessControl=o.protoAccessControl,n.helpers=o.helpers,n.partials=o.partials,n.decorators=o.decorators,n.hooks=o.hooks;else{var a={};W8(a,e.helpers,n),W8(a,o.helpers,n),n.helpers=a,t.usePartial&&(n.partials=n.mergeIfNeeded(o.partials,e.partials)),(t.usePartial||t.useDecorators)&&(n.decorators=Mu.extend({},e.decorators,o.decorators)),n.hooks={},n.protoAccessControl=J8.createProtoAccessControl(o);var c=o.allowCallsToHelperMissing||r;$8.moveHelperToHooks(n,"helperMissing",c),$8.moveHelperToHooks(n,"blockHelperMissing",c)}},i._child=function(o,a,c,l){if(t.useBlockParams&&!c)throw new co.default("must pass block params");if(t.useDepths&&!l)throw new co.default("must pass parent depths");return JC(n,o,t[o],a,0,c,l)},i}function JC(t,e,r,s,n,i,o){function a(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=o;return o&&c!=o[0]&&!(c===t.nullContext&&o[0]===null)&&(u=[c].concat(o)),r(t,c,t.helpers,t.partials,l.data||s,i&&[l.blockParams].concat(i),u)}return a=K8(r,a,t,o,s,i),a.program=e,a.depth=o?o.length:0,a.blockParams=n||0,a}function H0e(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=WC(r.partials,t)):r.name==="@partial-block"?t=WC(r.data,"partial-block"):t=WC(r.partials,r.name),t}function z0e(t,e,r){var s=WC(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var n=void 0;if(r.fn&&r.fn!==j8&&(function(){r.data=lo.createFrame(r.data);var i=r.fn;n=r.data["partial-block"]=function(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return c.data=lo.createFrame(c.data),c.data["partial-block"]=s,i(a,c)},i.partials&&(r.partials=Mu.extend({},r.partials,i.partials))})(),t===void 0&&n&&(t=n),t===void 0)throw new co.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}function j8(){return""}function WC(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}function V0e(t,e){return(!e||!("root"in e))&&(e=e?lo.createFrame(e):{},e.root=t),e}function K8(t,e,r,s,n,i){if(t.decorator){var o={};e=t.decorator(e,o,r,s&&s[0],n,i,s),Mu.extend(e,o)}return e}function W8(t,e,r){e&&Object.keys(e).forEach(function(s){var n=e[s];t[s]=Y0e(n,r)})}function Y0e(t,e){var r=e.lookupProperty;return O0e.wrapHelper(t,function(s){return s.lookupProperty=r,s})}});var jv=h((jC,Z8)=>{"use strict";jC.__esModule=!0;jC.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.Handlebars===t&&(globalThis.Handlebars=e),t}};Z8.exports=jC.default});var n5=h((KC,s5)=>{"use strict";KC.__esModule=!0;function Xv(t){return t&&t.__esModule?t:{default:t}}function Zv(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 $0e=YC(),e5=Zv($0e),J0e=V8(),W0e=Xv(J0e),j0e=ms(),K0e=Xv(j0e),X0e=yr(),Kv=Zv(X0e),Z0e=X8(),t5=Zv(Z0e),eSe=jv(),tSe=Xv(eSe);function r5(){var t=new e5.HandlebarsEnvironment;return Kv.extend(t,e5),t.SafeString=W0e.default,t.Exception=K0e.default,t.Utils=Kv,t.escapeExpression=Kv.escapeExpression,t.VM=t5,t.template=function(e){return t5.template(e,t)},t}var jp=r5();jp.create=r5;tSe.default(jp);jp.default=jp;KC.default=jp;s5.exports=KC.default});var ek=h((XC,o5)=>{"use strict";XC.__esModule=!0;var i5={helpers:{helperExpression:function(e){return e.type==="SubExpression"||(e.type==="Mus Line truncated
`)}return l}else throw new mo.default("The partial "+c.name+" could not be compiled when running in runtime-only mode")}var n={strict:function(a,c,l){if(!a||!(c in a))throw new mo.default('"'+c+'" not defined in '+a,{loc:l});return n.lookupProperty(a,c)},lookupProperty:function(a,c){var l=a[c];if(l==null||Object.prototype.hasOwnProperty.call(a,c)||F5.resultIsAllowed(l,n.protoAccessControl,c))return l},lookup:function(a,c){for(var l=a.length,u=0;u<l;u++){var A=a[u]&&n.lookupProperty(a[u],c);if(A!=null)return A}},lambda:function(a,c){return typeof a=="function"?a.call(c):a},escapeExpression:Ju.escapeExpression,invokePartial:s,fn:function(a){var c=t[a];return c.decorator=t[a+"_d"],c},programs:[],program:function(a,c,l,u,A){var d=this.programs[a],p=this.fn(a);return c||A||u||l?d=fI(this,a,p,c,l,u,A):d||(d=this.programs[a]=fI(this,a,p)),d},data:function(a,c){for(;a&&c--;)a=a._parent;return a},mergeIfNeeded:function(a,c){var l=a||c;return a&&c&&a!==c&&(l=Ju.extend({},c,a)),l},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=WSe(o,c));var l=void 0,u=t.useBlockParams?[]:void 0;t.useDepths&&(a.depths?l=o!=a.depths[0]?[o].concat(a.depths):a.depths:l=[o]);function A(d){return""+t.main(n,d,n.helpers,n.partials,c,u,l)}return A=G5(t.main,A,n,a.depths||[],c,u),A(o,a)}return i.isTop=!0,i._setup=function(o){if(o.partial)n.protoAccessControl=o.protoAccessControl,n.helpers=o.helpers,n.partials=o.partials,n.decorators=o.decorators,n.hooks=o.hooks;else{var a={};U5(a,e.helpers,n),U5(a,o.helpers,n),n.helpers=a,t.usePartial&&(n.partials=n.mergeIfNeeded(o.partials,e.partials)),(t.usePartial||t.useDecorators)&&(n.decorators=Ju.extend({},e.decorators,o.decorators)),n.hooks={},n.protoAccessControl=F5.createProtoAccessControl(o);var c=o.allowCallsToHelperMissing||r;O5.moveHelperToHooks(n,"helperMissing",c),O5.moveHelperToHooks(n,"blockHelperMissing",c)}},i._child=function(o,a,c,l){if(t.useBlockParams&&!c)throw new mo.default("must pass block params");if(t.useDepths&&!l)throw new mo.default("must pass parent depths");return fI(n,o,t[o],a,0,c,l)},i}function fI(t,e,r,s,n,i,o){function a(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=o;return o&&c!=o[0]&&!(c===t.nullContext&&o[0]===null)&&(u=[c].concat(o)),r(t,c,t.helpers,t.partials,l.data||s,i&&[l.blockParams].concat(i),u)}return a=G5(r,a,t,o,s,i),a.program=e,a.depth=o?o.length:0,a.blockParams=n||0,a}function YSe(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=gI(r.partials,t)):r.name==="@partial-block"?t=gI(r.data,"partial-block"):t=gI(r.partials,r.name),t}function JSe(t,e,r){var s=gI(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var n=void 0;if(r.fn&&r.fn!==q5&&(function(){r.data=ho.createFrame(r.data);var i=r.fn;n=r.data["partial-block"]=function(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return c.data=ho.createFrame(c.data),c.data["partial-block"]=s,i(a,c)},i.partials&&(r.partials=Ju.extend({},r.partials,i.partials))})(),t===void 0&&n&&(t=n),t===void 0)throw new mo.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}function q5(){return""}function gI(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}function WSe(t,e){return(!e||!("root"in e))&&(e=e?ho.createFrame(e):{},e.root=t),e}function G5(t,e,r,s,n,i){if(t.decorator){var o={};e=t.decorator(e,o,r,s&&s[0],n,i,s),Ju.extend(e,o)}return e}function U5(t,e,r){e&&Object.keys(e).forEach(function(s){var n=e[s];t[s]=jSe(n,r)})}function jSe(t,e){var r=e.lookupProperty;return zSe.wrapHelper(t,function(s){return s.lookupProperty=r,s})}});var Qk=h((EI,z5)=>{"use strict";EI.__esModule=!0;EI.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.Handlebars===t&&(globalThis.Handlebars=e),t}};z5.exports=EI.default});var W5=h((yI,J5)=>{"use strict";yI.__esModule=!0;function Nk(t){return t&&t.__esModule?t:{default:t}}function Sk(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 KSe=mI(),V5=Sk(KSe),XSe=L5(),ZSe=Nk(XSe),eRe=fs(),tRe=Nk(eRe),rRe=Ir(),xk=Sk(rRe),sRe=H5(),$5=Sk(sRe),nRe=Qk(),iRe=Nk(nRe);function Y5(){var t=new V5.HandlebarsEnvironment;return xk.extend(t,V5),t.SafeString=ZSe.default,t.Exception=tRe.default,t.Utils=xk,t.escapeExpression=xk.escapeExpression,t.VM=$5,t.template=function(e){return $5.template(e,t)},t}var um=Y5();um.create=Y5;iRe.default(um);um.default=um;yI.default=um;J5.exports=yI.default});var Rk=h((CI,K5)=>{"use strict";CI.__esModule=!0;var j5={helpers:{helperExpression:function(e){return e.type==="SubExpression"||(e.type==="Mus Line truncated
`+this.lexer.showPosition()+`
Expecting `+Ee.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Ct="Parse error on line "+(A+1)+": Unexpected "+(B==1?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(Ct,{text:this.lexer.match,token:this.terminals_[B]||B,line:this.lexer.yylineno,loc:y,expected:Ee})}}if(O[0]instanceof Array&&O.length>1)throw new Error("Parse Error: multiple actions possible at state: "+k+", token: "+B);switch(O[0]){case 1:o.push(B),a.push(this.lexer.yytext),c.push(this.lexer.yylloc),o.push(O[1]),B=null,x?(B=x,x=null):(d=this.lexer.yyleng,u=this.lexer.yytext,A=this.lexer.yylineno,y=this.lexer.yylloc,p>0&&p--);break;case 2:if(se=this.productions_[O[1]][1],Se.$=a[a.length-se],Se._$={first_line:c[c.length-(se||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(se||1)].first_column,last_column:c[c.length-1].last_column},g&&(Se._$.range=[c[c.length-(se||1)].range[0],c[c.length-1].range[1]]),be=this.performAction.call(Se,u,d,A,this.yy,O[1],a,c),typeof be<"u")return be;se&&(o=o.slice(0,-1*se*2),a=a.slice(0,-1*se),c=c.slice(0,-1*se)),o.push(this.productions_[O[1]][0]),a.push(Se.$),c.push(Se._$),q=l[o[o.length-2]][o[o.length-1]],o.push(q);break;case 3:return!0}}return!0}},e=(function(){var s={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 l=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=[l[0],l[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()+`
Expecting `+Ee.join(", ")+", got '"+(this.terminals_[B]||B)+"'":It="Parse error on line "+(A+1)+": Unexpected "+(B==1?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(It,{text:this.lexer.match,token:this.terminals_[B]||B,line:this.lexer.yylineno,loc:y,expected:Ee})}}if(F[0]instanceof Array&&F.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+B);switch(F[0]){case 1:o.push(B),a.push(this.lexer.yytext),c.push(this.lexer.yylloc),o.push(F[1]),B=null,x?(B=x,x=null):(d=this.lexer.yyleng,u=this.lexer.yytext,A=this.lexer.yylineno,y=this.lexer.yylloc,p>0&&p--);break;case 2:if(ne=this.productions_[F[1]][1],Se.$=a[a.length-ne],Se._$={first_line:c[c.length-(ne||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(ne||1)].first_column,last_column:c[c.length-1].last_column},g&&(Se._$.range=[c[c.length-(ne||1)].range[0],c[c.length-1].range[1]]),we=this.performAction.call(Se,u,d,A,this.yy,F[1],a,c),typeof we<"u")return we;ne&&(o=o.slice(0,-1*ne*2),a=a.slice(0,-1*ne),c=c.slice(0,-1*ne)),o.push(this.productions_[F[1]][0]),a.push(Se.$),c.push(Se._$),U=l[o[o.length-2]][o[o.length-1]],o.push(U);break;case 3:return!0}}return!0}},e=(function(){var s={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 l=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=[l[0],l[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()+`
`+o+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,o,a,c,l,u;this._more||(this.yytext="",this.match="");for(var A=this._currentRules(),d=0;d<A.length&&(a=this._input.match(this.rules[A[d]]),!(a&&(!o||a[0].length>o[0].length)&&(o=a,c=d,!this.options.flex)));d++);return o?(u=o[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.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,A[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.
`+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 s.options={},s.performAction=function(i,o,a,c){function l(A,d){return o.yytext=o.yytext.substring(A,o.yyleng-d+A)}var u=c;switch(a){case 0:if(o.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):o.yytext.slice(-1)==="\\"?(l(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:(l(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=l(1,2).replace(/\\"/g,'"'),80;break;case 32:return o.yytext=l(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}},s.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\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],s.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}},s})();t.lexer=e;function r(){this.yy={}}return r.prototype=t,t.Parser=r,new r})();ZC.default=rSe;a5.exports=ZC.default});var sI=h((rI,A5)=>{"use strict";rI.__esModule=!0;function sSe(t){return t&&t.__esModule?t:{default:t}}var nSe=ms(),tk=sSe(nSe);function eI(){this.parents=[]}eI.prototype={constructor:eI,mutating:!1,acceptKey:function(e,r){var s=this.accept(e[r]);if(this.mutating){if(s&&!eI.prototype[s.type])throw new tk.default('Unexpected node type "'+s.type+'" found when accepting '+r+" on "+e.type);e[r]=s}},acceptRequired:function(e,r){if(this.acceptKey(e,r),!e[r])throw new tk.default(e.type+" requires "+r)},acceptArray:function(e){for(var r=0,s=e.length;r<s;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,s--)},accept:function(e){if(e){if(!this[e.type])throw new tk.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var r=this[e.type](e);if(this.current=this.parents.shift(),!this.mutating||r)return r;if(r!==!1)return e}},Program:function(e){this.acceptArray(e.body)},MustacheStatement:tI,Decorator:tI,BlockStatement:l5,DecoratorBlock:l5,PartialStatement:u5,PartialBlockStatement:function(e){u5.call(this,e),this.acceptKey(e,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:tI,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(e){this.acceptArray(e.pairs)},HashPair:function(e){this.acceptRequired(e,"value")}};function tI(t){this.acceptRequired(t,"path"),this.acceptArray(t.params),this.acceptKey(t,"hash")}function l5(t){Line truncated
`])}),e},each:function(e){for(var r=0,s=this.source.length;r<s;r++)e(this.source[r])},empty:function(){var e=this.currentLocation||{start:{}};return new wc(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 wc?e:(e=bk(e,this,r),new wc(r.start.line,r.start.column,this.srcFile,e))},functionCall:function(e,r,s){return s=this.generateList(s),this.wrap([e,r?"."+r+"(":"(",s,")"])},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,s=[];Object.keys(e).forEach(function(i){var o=bk(e[i],r);o!=="undefined"&&s.push([r.quotedString(i),":",o])});var n=this.generateList(s);return n.prepend("{"),n.add("}"),n},generateList:function(e){for(var r=this.empty(),s=0,n=e.length;s<n;s++)s&&r.add(","),r.add(bk(e[s],this));return r},generateArray:function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r}};AI.default=Y5;$5.exports=AI.default});var Z5=h((dI,X5)=>{"use strict";dI.__esModule=!0;function K5(t){return t&&t.__esModule?t:{default:t}}var W5=YC(),tRe=ms(),Qk=K5(tRe),rRe=yr(),sRe=J5(),j5=K5(sRe);function Hu(t){this.value=t}function zu(){}zu.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=W5.COMPILER_REVISION,r=W5.REVISION_CHANGES[e];return[e,r]},appendToBuffer:function(e,r,s){return rRe.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:s?["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,s,n){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!n,this.name=this.environment.name,this.isChild=!!s,this.context=s||{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,l=void 0;for(c=0,l=i.length;c<l;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 Qk.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.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 s.options={},s.performAction=function(i,o,a,c){function l(A,d){return o.yytext=o.yytext.substring(A,o.yyleng-d+A)}var u=c;switch(a){case 0:if(o.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):o.yytext.slice(-1)==="\\"?(l(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:(l(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=l(1,2).replace(/\\"/g,'"'),80;break;case 32:return o.yytext=l(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}},s.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\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],s.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}},s})();t.lexer=e;function r(){this.yy={}}return r.prototype=t,t.Parser=r,new r})();II.default=oRe;X5.exports=II.default});var QI=h((bI,rj)=>{"use strict";bI.__esModule=!0;function aRe(t){return t&&t.__esModule?t:{default:t}}var cRe=fs(),Tk=aRe(cRe);function BI(){this.parents=[]}BI.prototype={constructor:BI,mutating:!1,acceptKey:function(e,r){var s=this.accept(e[r]);if(this.mutating){if(s&&!BI.prototype[s.type])throw new Tk.default('Unexpected node type "'+s.type+'" found when accepting '+r+" on "+e.type);e[r]=s}},acceptRequired:function(e,r){if(this.acceptKey(e,r),!e[r])throw new Tk.default(e.type+" requires "+r)},acceptArray:function(e){for(var r=0,s=e.length;r<s;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,s--)},accept:function(e){if(e){if(!this[e.type])throw new Tk.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var r=this[e.type](e);if(this.current=this.parents.shift(),!this.mutating||r)return r;if(r!==!1)return e}},Program:function(e){this.acceptArray(e.body)},MustacheStatement:wI,Decorator:wI,BlockStatement:ej,DecoratorBlock:ej,PartialStatement:tj,PartialBlockStatement:function(e){tj.call(this,e),this.acceptKey(e,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:wI,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(e){this.acceptArray(e.pairs)},HashPair:function(e){this.acceptRequired(e,"value")}};function wI(t){this.acceptRequired(t,"path"),this.acceptArray(t.params),this.acceptKey(t,"hash")}function ej(t){Line truncated
`])}),e},each:function(e){for(var r=0,s=this.source.length;r<s;r++)e(this.source[r])},empty:function(){var e=this.currentLocation||{start:{}};return new Lc(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 Lc?e:(e=Xk(e,this,r),new Lc(r.start.line,r.start.column,this.srcFile,e))},functionCall:function(e,r,s){return s=this.generateList(s),this.wrap([e,r?"."+r+"(":"(",s,")"])},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,s=[];Object.keys(e).forEach(function(i){var o=Xk(e[i],r);o!=="undefined"&&s.push([r.quotedString(i),":",o])});var n=this.generateList(s);return n.prepend("{"),n.add("}"),n},generateList:function(e){for(var r=this.empty(),s=0,n=e.length;s<n;s++)s&&r.add(","),r.add(Xk(e[s],this));return r},generateArray:function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r}};kI.default=Mj;Oj.exports=kI.default});var zj=h((DI,Hj)=>{"use strict";DI.__esModule=!0;function Gj(t){return t&&t.__esModule?t:{default:t}}var Uj=mI(),iTe=fs(),eD=Gj(iTe),oTe=Ir(),aTe=Fj(),qj=Gj(aTe);function eA(t){this.value=t}function tA(){}tA.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=Uj.COMPILER_REVISION,r=Uj.REVISION_CHANGES[e];return[e,r]},appendToBuffer:function(e,r,s){return oTe.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:s?["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,s,n){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!n,this.name=this.environment.name,this.isChild=!!s,this.context=s||{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,l=void 0;for(c=0,l=i.length;c<l;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 eD.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;"),n?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
`),this.decorators.push(`}
`),this.decorators=this.decorators.merge()));var u=this.createFunctionContext(n);if(this.isChild)return u;var A={compiler:this.compilerInfo(),main:u};this.decorators&&(A.main_d=this.decorators,A.useDecorators=!0);var d=this.context,p=d.programs,m=d.decorators;for(c=0,l=p.length;c<l;c++)A[c]=p[c],m[c]&&(A[c+"_d"]=m[c],A.useDecorators=!0);return this.environment.usePartial&&(A.usePartial=!0),this.options.data&&(A.useData=!0),this.useDepths&&(A.useDepths=!0),this.useBlockParams&&(A.useBlockParams=!0),this.options.compat&&(A.compat=!0),n?A.compilerOptions=this.options:(A.compiler=JSON.stringify(A.compiler),this.source.currentLocation={start:{line:1,column:0}},A=this.objectLiteral(A),r.srcName?(A=A.toStringWithSourceMap({file:r.destName}),A.map=A.map&&A.map.toString()):A=A.toString()),A},preamble:function(){this.lastContext=0,this.source=new j5.default(this.options.srcName),this.decorators=new j5.default(this.options.srcName)},createFunctionContext:function(e){var r=this,s="",n=this.stackVars.concat(this.registers.list);n.length>0&&(s+=", "+n.join(", "));var i=0;Object.keys(this.aliases).forEach(function(c){var l=r.aliases[c];l.children&&l.referenceCount>1&&(s+=", alias"+ ++i+"="+c,l.children[0]="alias"+i)}),this.lookupPropertyFunctionIsUsed&&(s+=", "+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(s);return e?(o.push(a),Function.apply(this,o)):this.source.wrap(["function(",o.join(","),`) {
`),this.decorators=this.decorators.merge()));var u=this.createFunctionContext(n);if(this.isChild)return u;var A={compiler:this.compilerInfo(),main:u};this.decorators&&(A.main_d=this.decorators,A.useDecorators=!0);var d=this.context,p=d.programs,m=d.decorators;for(c=0,l=p.length;c<l;c++)A[c]=p[c],m[c]&&(A[c+"_d"]=m[c],A.useDecorators=!0);return this.environment.usePartial&&(A.usePartial=!0),this.options.data&&(A.useData=!0),this.useDepths&&(A.useDepths=!0),this.useBlockParams&&(A.useBlockParams=!0),this.options.compat&&(A.compat=!0),n?A.compilerOptions=this.options:(A.compiler=JSON.stringify(A.compiler),this.source.currentLocation={start:{line:1,column:0}},A=this.objectLiteral(A),r.srcName?(A=A.toStringWithSourceMap({file:r.destName}),A.map=A.map&&A.map.toString()):A=A.toString()),A},preamble:function(){this.lastContext=0,this.source=new qj.default(this.options.srcName),this.decorators=new qj.default(this.options.srcName)},createFunctionContext:function(e){var r=this,s="",n=this.stackVars.concat(this.registers.list);n.length>0&&(s+=", "+n.join(", "));var i=0;Object.keys(this.aliases).forEach(function(c){var l=r.aliases[c];l.children&&l.referenceCount>1&&(s+=", alias"+ ++i+"="+c,l.children[0]="alias"+i)}),this.lookupPropertyFunctionIsUsed&&(s+=", "+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(s);return e?(o.push(a),Function.apply(this,o)):this.source.wrap(["function(",o.join(","),`) {
`,a,"}"])},mergeSource:function(e){var r=this.environment.isSimple,s=!this.forceBuffer,n=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 += "):n=!0,a.add(";"),o=a=void 0),i=!0,r||(s=!1))}),s?o?(o.prepend("return "),a.add(";")):i||this.source.push('return "";'):(e+=", buffer = "+(n?"":this.initializeBuffer()),o?(o.prepend("return buffer + "),a.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(n?"":`;
`)),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return`
lookupProperty = container.lookupProperty || function(parent, propertyName) {
@@ -85,51 +85,51 @@ Expecting `+Ee.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Ct="Parse error
}
return undefined
}
`.trim()},blockValue:function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),s=[this.contextName(0)];this.setupHelperArgs(e,0,s);var n=this.popStack();s.splice(1,0,n),this.push(this.source.functionCall(r,"call",s))},ambiguousBlockValue:function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var s=this.topStack();r.splice(1,0,s),this.pushSource(["if (!",this.lastHelper,") { ",s," = ",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,s,n){var i=0;!n&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[i++])):this.pushContext(),this.resolvePath("context",e,i,r,s)},lookupBlockParam:function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},lookupData:function(e,r,s){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,s)},resolvePath:function(e,r,s,n,i){var o=this;if(this.options.strict||this.options.assumeObjects){this.push(nRe(this.options.strict&&i,this,r,s,e));return}for(var a=r.length,c=function(u){o.replaceStack(function(A){var d=o.nameLookup(A,r[u],e);return n?[" && ",d]:[" != null ? ",d," : ",A]})},l=s;l<a;l++)c(l)},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 s=this.nameLookup("decorators",r,"decorator"),n=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",s,";"]),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",n])," || fn;"])},invokeHelper:function(e,r,s){var n=this.popStack(),i=this.setupHelper(e,r),o=[];s&&o.push(i.name),o.push(n),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 s=[];s.push(e[0]);for(var n=1;n<e.length;n++)s.push(r,e[n]);return s},invokeKnownHelper:function(e,r){var s=this.setupHelper(e,r);this.push(this.source.functionCall(s.name,"call",s.callParams))},invokeAmbiguous:function(e,r){this.useRegister("helper");var s=this.popStack();this.emptyHash();var n=this.setupHelper(0,e,r),i=this.lastHelper=this.nameLookup("helpers",e,"helper"),o=["(","(helper = ",i," || ",s,")"];this.options.strict||(o[0]="(helper = ",o.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",o,n.paramsInit?["),(",n.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",n.callParams)," : helper))"])},invokePartial:function(e,r,s){var n=[],i=this.setupParams(r,1,n);e&&(r=this.popStack(),delete i.name),s&&(i.indent=JSON.stringify(s)),i.helpers="helpers",i.partials="partials",i.decorators="container.decorators",e?n.unshift(r):n.unshift(this.nameLookup("partials",r,"partial")),this.options.compat&&(i.depths="depths"),i=this.objectLiteral(i),n.push(i),this.push(this.source.functionCall("container.invokePartial","",n))},assignToHash Line truncated
`,e};ct.prototype.Program=function(t){var e="",r=t.body,s=void 0,n=void 0;if(t.blockParams){var i="BLOCK PARAMS: [";for(s=0,n=t.blockParams.length;s<n;s++)i+=" "+t.blockParams[s];i+=" ]",e+=this.pad(i)}for(s=0,n=r.length;s<n;s++)e+=this.accept(r[s]);return this.padding--,e};ct.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};ct.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};ct.prototype.BlockStatement=ct.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};ct.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+" }}")};ct.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+" }}")};ct.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};ct.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};ct.prototype.SubExpression=function(t){for(var e=t.params,r=[],s=void 0,n=0,i=e.length;n<i;n++)r.push(this.accept(e[n]));return e="["+r.join(", ")+"]",s=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+s};ct.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};ct.prototype.StringLiteral=function(t){return'"'+t.value+'"'};ct.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};ct.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};ct.prototype.UndefinedLiteral=function(){return"UNDEFINED"};ct.prototype.NullLiteral=function(){return"NULL"};ct.prototype.Hash=function(t){for(var e=t.pairs,r=[],s=0,n=e.length;s<n;s++)r.push(this.accept(e[s]));return"HASH{"+r.join(", ")+"}"};ct.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var aj=h((T9e,oj)=>{var hI=rj().default,ij=sj();hI.PrintVisitor=ij.PrintVisitor;hI.print=ij.print;oj.exports=hI;function nj(t,e){var r=require("fs"),s=r.readFileSync(e,"utf8");t.exports=hI.compile(s)}typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=nj,require.extensions[".hbs"]=nj)});var Qj=h((P9e,Ao)=>{var ve=require("fs"),gI=require("os"),Yt=require("path"),cj=require("crypto"),Qi={fs:ve.constants,os:gI.constants},lj="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",pj=/XXXXXX/,CRe=3,mj=(Qi.O_CREAT||Qi.fs.O_CREAT)|(Qi.O_EXCL||Qi.fs.O_EXCL)|(Qi.O_RDWR||Qi.fs.O_RDWR),IRe=gI.platform()==="win32",BRe=Qi.EBADF||Qi.os.errno.EBADF,bRe=Qi.ENOENT||Qi.os.errno.ENOENT,hj=448,fj=384,wRe="exit",Yu=[],gj=ve.rmdirSync.bind(ve),Ej=!1;function QRe(t,e){return ve.rm(t,{recursive:!0},e)}function yj(t){return ve.rmSync(t,{recursive:!0})}function Tk(t,e){let r=$u(t,e),s=r[0],n=r[1];_Re(s,function(i,o){if(i)return n(i);let a=o.tries;(function c(){try{let l=Ij(o);ve.stat(l,function(u){if(!u)return a-- >0?c():n(new Error("Could not get a unique tmp filename, max tries reached "+l));n(null,l)})}catch(l){n(l)}})()})}function Pk(t){let e=$u(t),r=e[0],s=LRe(r),n=s.tries;do{let i=Ij(s);try{ve.statSync(i)}catch{return i}}while(n-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function xRe(t,e){let r=$u(t,e),s=r[0],n=r[1];Tk(s,function(o,a){if(o)return n(o);ve.open(a,mj,s.mode||fj,function(l,u){if(l)return n(l);if(s.discardDescriptor)return ve.close(u,function(d){return n(d,a,void 0,Sk(a,-1,s,!1))});{let A=s.discardDescriptor||s.detachDescriptor;n(null,a,u,Sk(a,A?-1:u,s,!1))}})})}function NRe(t){let e=$u(t),r=e[0],s=r.discardDescriptor||r.detachDescriptor,n=Pk(r),i=ve.openSync(n,mj,r.mode||fj);return r.discardDescriptor&&(ve.closeSync(i),i=void 0),{name:n,fd:i,removeCallback:Sk(n,s?-1:i,r,!0)}}function SRe(t,e){let r=$u(t,e),s=r[0],n=r[1];Tk(s,function(o,a){if(o)return n(o);ve.mkdir(a,s.mode||hj,function(l){if(l)return n(l);n(null,a,Cj(a,s,!1))})})}function RRe(t){let e=$u(t),r=e[0],s=Pk(r);return ve.mkdirSync(s,r.mode||hj),{name:s,removeCallback:Cj(s,r,!0)}}function TRe(t,e){let r=function(s){if(s&&!Rk(s))return e(s);e()};0<=t[0]?ve.close(t[0],function(){ve.unlink(t[1],r)}):ve.unlink(t[1],r)}function PRe(t){let e=null;try{0<=t[0]&&ve.closeSync(t[0])}catch(r){if(!MRe(r)&&!Rk(r))throw r}finally{try{ve.unlinkSync(t[1])}catch(r){Rk(r)||(e=r)}}if(e!==null)throw e}function Sk(t,e,r,s){let n=fI(PRe,[e,t],s),i=fI(TRe,[e,t],s,n);return r.keep||Yu.unshift(n),s?n:i}function Cj(t,e,r){let s=e.unsafeCleanup?QRe:ve.rmdir. Line truncated
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function zQ(t,e){if(process.env.GITHUB_OUTPUT||"")return eA("OUTPUT",Nm(t,e));process.stdout.write(GQ.EOL),Qn("set-output",{name:t},wn(e))}function Qq(t){process.exitCode=qQ.Failure,Tl(t)}function Un(){return process.env.RUNNER_DEBUG==="1"}function I(t){Qn("debug",{},t)}function Tl(t,e={}){Qn("error",XI(e),t instanceof Error?t.toString():t)}function Ke(t,e={}){Qn("warning",XI(e),t instanceof Error?t.toString():t)}function N(t){process.stdout.write(t+GQ.EOL)}function wue(t){eB("group",t)}function Que(){eB("endgroup")}function me(t,e){return bue(this,void 0,void 0,function*(){wue(t);let r;try{r=yield e()}finally{Que()}return r})}function Pl(t,e){if(process.env.GITHUB_STATE||"")return eA("STATE",Nm(t,e));Qn("save-state",{name:t},wn(e))}function xq(t){return process.env[`STATE_${t}`]||""}var vC=b(require("fs"),1),Dv=b(require("os"),1),_v=b(require("path"),1);var dx=b(require("crypto"),1),Zt=b(require("fs"),1);var Ipe=b(ux(),1);var zf=b(require("os"),1),an=b(require("path"),1);var Ns=b(ux(),1),fH=b(require("stream"),1),gH=b(require("util"),1),px=require("assert");var hH=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{l(s.next(u))}catch(A){o(A)}}function c(u){try{l(s.throw(u))}catch(A){o(A)}}function l(u){u.done?i(u.value):n(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},Gf=class{constructor(e,r,s){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(r),this.maxSeconds=Math.floor(s),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,r){return hH(this,void 0,void 0,function*(){let s=1;for(;s<this.maxAttempts;){try{return yield e()}catch(i){if(r&&!r(i))throw i;N(i.message)}let n=this.getSleepAmount();N(`Waiting ${n} seconds before trying again`),yield this.sleep(n),s++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return hH(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var qn=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{l(s.next(u))}catch(A){o(A)}}function c(u){try{l(s.throw(u))}catch(A){o(A)}}function l(u){u.done?i(u.value):n(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},Hf=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},EH=process.platform==="win32",xMe=process.platform==="darwin",bpe="actions/tool-cache";function _a(t,e,r,s){return qn(this,void 0,void 0,function*(){e=e||an.join(BH(),dx.randomUUID()),yield ws(an.dirname(e)),I(`Downloading ${t}`),I(`Destination ${e}`);let n=3,i=Ax("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=Ax("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new Gf(n,i,o).execute(()=>qn(this,void 0,void 0,function*(){return yield wpe(t,e||"",r,s)}),c=>!(c instanceof Hf&&c.httpStatusCode&&c.httpStatusCode<500&&c.httpStatusCode!==408&&c.httpStatusCode!==429))})}function wpe(t,e,r,s){return qn(this,void 0,void 0,function*(){if(Zt.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let n=new Tr(bpe,[],{allowRetries:!1});r&&(I("set auth"),s===void 0&&(s={}),s.authorization=r);let i=yield n.get(t,s);if(i.message.statusCode!==200){let u=new Hf(i.message.statusCode);throw I(`Failed to download from "${t}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),u}let o=gH.promisify(fH.pipeline),c=Ax("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>i.message)(),l=!1;try{return yield o(c,Zt.createWriteStream(e)),I("download complete"),l=!0,e}finally{if(!l){I("download failed");try{yield Nf(e)}catch(u){I(`Failed to delete '${e}'. ${u.message}`)}}}})}function Vf(t,e){return qn(this,arguments,void 0,function*(r,s,n="xz"){if(!r)throw new Error("parameter 'file' is required");s=yield CH(s),I("Checking tar --version");let i="";yield Zr("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:u=>i+=u.toString(),stderr:u=>i+=u.toString()}}),I(i.trim());let o=i.toUpperCase().includes("GNU TAR"),a;n instanceof Array?a=n:a=[n],Un()&&!n.includes("v")&&a.push("-v");let c=s,l=r;return EH&&o&&(a.push("--force-local"),c=s.replace(/\\/g,"/"),l=r.replace(/\\/g,"/")),o&&(a.push("--warning=no-unknown-keyword"),a.push("--overwrite")),a.push("-C",c,"-f",l),yield Zr("tar",a),s})}function Yf(t,e){return qn(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'file' is required");return e=yield CH(e),EH?yield Qpe(t,e):yield xpe(t,e),e})}function Qpe(t,e){return qn(this,void 0,void 0,function*(){let r=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),s=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),n=yield pt("pwsh",!1);if(n){let o=["-NoLogo","-NoProfile","Line truncated
`.trim()},blockValue:function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),s=[this.contextName(0)];this.setupHelperArgs(e,0,s);var n=this.popStack();s.splice(1,0,n),this.push(this.source.functionCall(r,"call",s))},ambiguousBlockValue:function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var s=this.topStack();r.splice(1,0,s),this.pushSource(["if (!",this.lastHelper,") { ",s," = ",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,s,n){var i=0;!n&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[i++])):this.pushContext(),this.resolvePath("context",e,i,r,s)},lookupBlockParam:function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},lookupData:function(e,r,s){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,s)},resolvePath:function(e,r,s,n,i){var o=this;if(this.options.strict||this.options.assumeObjects){this.push(cTe(this.options.strict&&i,this,r,s,e));return}for(var a=r.length,c=function(u){o.replaceStack(function(A){var d=o.nameLookup(A,r[u],e);return n?[" && ",d]:[" != null ? ",d," : ",A]})},l=s;l<a;l++)c(l)},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 s=this.nameLookup("decorators",r,"decorator"),n=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",s,";"]),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",n])," || fn;"])},invokeHelper:function(e,r,s){var n=this.popStack(),i=this.setupHelper(e,r),o=[];s&&o.push(i.name),o.push(n),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 s=[];s.push(e[0]);for(var n=1;n<e.length;n++)s.push(r,e[n]);return s},invokeKnownHelper:function(e,r){var s=this.setupHelper(e,r);this.push(this.source.functionCall(s.name,"call",s.callParams))},invokeAmbiguous:function(e,r){this.useRegister("helper");var s=this.popStack();this.emptyHash();var n=this.setupHelper(0,e,r),i=this.lastHelper=this.nameLookup("helpers",e,"helper"),o=["(","(helper = ",i," || ",s,")"];this.options.strict||(o[0]="(helper = ",o.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",o,n.paramsInit?["),(",n.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",n.callParams)," : helper))"])},invokePartial:function(e,r,s){var n=[],i=this.setupParams(r,1,n);e&&(r=this.popStack(),delete i.name),s&&(i.indent=JSON.stringify(s)),i.helpers="helpers",i.partials="partials",i.decorators="container.decorators",e?n.unshift(r):n.unshift(this.nameLookup("partials",r,"partial")),this.options.compat&&(i.depths="depths"),i=this.objectLiteral(i),n.push(i),this.push(this.source.functionCall("container.invokePartial","",n))},assignToHash Line truncated
`,e};ct.prototype.Program=function(t){var e="",r=t.body,s=void 0,n=void 0;if(t.blockParams){var i="BLOCK PARAMS: [";for(s=0,n=t.blockParams.length;s<n;s++)i+=" "+t.blockParams[s];i+=" ]",e+=this.pad(i)}for(s=0,n=r.length;s<n;s++)e+=this.accept(r[s]);return this.padding--,e};ct.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};ct.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};ct.prototype.BlockStatement=ct.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};ct.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+" }}")};ct.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+" }}")};ct.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};ct.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};ct.prototype.SubExpression=function(t){for(var e=t.params,r=[],s=void 0,n=0,i=e.length;n<i;n++)r.push(this.accept(e[n]));return e="["+r.join(", ")+"]",s=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+s};ct.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};ct.prototype.StringLiteral=function(t){return'"'+t.value+'"'};ct.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};ct.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};ct.prototype.UndefinedLiteral=function(){return"UNDEFINED"};ct.prototype.NullLiteral=function(){return"NULL"};ct.prototype.Hash=function(t){for(var e=t.pairs,r=[],s=0,n=e.length;s<n;s++)r.push(this.accept(e[s]));return"HASH{"+r.join(", ")+"}"};ct.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var sD=h((QKe,Kj)=>{var MI=Yj().default,jj=Jj();MI.PrintVisitor=jj.PrintVisitor;MI.print=jj.print;Kj.exports=MI;function Wj(t,e){var r=require("fs"),s=r.readFileSync(e,"utf8");t.exports=MI.compile(s)}typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=Wj,require.extensions[".hbs"]=Wj)});var h9=h((xKe,go)=>{var De=require("fs"),FI=require("os"),Yt=require("path"),Xj=require("crypto"),Ti={fs:De.constants,os:FI.constants},Zj="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",s9=/XXXXXX/,bTe=3,n9=(Ti.O_CREAT||Ti.fs.O_CREAT)|(Ti.O_EXCL||Ti.fs.O_EXCL)|(Ti.O_RDWR||Ti.fs.O_RDWR),QTe=FI.platform()==="win32",xTe=Ti.EBADF||Ti.os.errno.EBADF,NTe=Ti.ENOENT||Ti.os.errno.ENOENT,i9=448,o9=384,STe="exit",sA=[],a9=De.rmdirSync.bind(De),c9=!1;function RTe(t,e){return De.rm(t,{recursive:!0},e)}function l9(t){return De.rmSync(t,{recursive:!0})}function oD(t,e){let r=nA(t,e),s=r[0],n=r[1];FTe(s,function(i,o){if(i)return n(i);let a=o.tries;(function c(){try{let l=A9(o);De.stat(l,function(u){if(!u)return a-- >0?c():n(new Error("Could not get a unique tmp filename, max tries reached "+l));n(null,l)})}catch(l){n(l)}})()})}function aD(t){let e=nA(t),r=e[0],s=UTe(r),n=s.tries;do{let i=A9(s);try{De.statSync(i)}catch{return i}}while(n-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function TTe(t,e){let r=nA(t,e),s=r[0],n=r[1];oD(s,function(o,a){if(o)return n(o);De.open(a,n9,s.mode||o9,function(l,u){if(l)return n(l);if(s.discardDescriptor)return De.close(u,function(d){return n(d,a,void 0,nD(a,-1,s,!1))});{let A=s.discardDescriptor||s.detachDescriptor;n(null,a,u,nD(a,A?-1:u,s,!1))}})})}function vTe(t){let e=nA(t),r=e[0],s=r.discardDescriptor||r.detachDescriptor,n=aD(r),i=De.openSync(n,n9,r.mode||o9);return r.discardDescriptor&&(De.closeSync(i),i=void 0),{name:n,fd:i,removeCallback:nD(n,s?-1:i,r,!0)}}function PTe(t,e){let r=nA(t,e),s=r[0],n=r[1];oD(s,function(o,a){if(o)return n(o);De.mkdir(a,s.mode||i9,function(l){if(l)return n(l);n(null,a,u9(a,s,!1))})})}function kTe(t){let e=nA(t),r=e[0],s=aD(r);return De.mkdirSync(s,r.mode||i9),{name:s,removeCallback:u9(s,r,!0)}}function DTe(t,e){let r=function(s){if(s&&!iD(s))return e(s);e()};0<=t[0]?De.close(t[0],function(){De.unlink(t[1],r)}):De.unlink(t[1],r)}function _Te(t){let e=null;try{0<=t[0]&&De.closeSync(t[0])}catch(r){if(!qTe(r)&&!iD(r))throw r}finally{try{De.unlinkSync(t[1])}catch(r){iD(r)||(e=r)}}if(e!==null)throw e}function nD(t,e,r,s){let n=OI(_Te,[e,t],s),i=OI(DTe,[e,t],s,n);return r.keep||sA.unshift(n),s?n:i}function u9(t,e,r){let s=e.unsafeCleanup?RTe:De.rmdir. Line truncated
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function ux(t,e){if(process.env.GITHUB_OUTPUT||"")return Hm("OUTPUT",zm(t,e));process.stdout.write(cx.EOL),ki("set-output",{name:t},Rn(e))}function Hn(){return process.env.RUNNER_DEBUG==="1"}function w(t){ki("debug",{},t)}function gd(t,e={}){ki("error",BB(e),t instanceof Error?t.toString():t)}function un(t,e={}){ki("warning",BB(e),t instanceof Error?t.toString():t)}function ke(t){process.stdout.write(t+cx.EOL)}function fAe(t){bB("group",t)}function gAe(){bB("endgroup")}function za(t,e){return hAe(this,void 0,void 0,function*(){fAe(t);let r;try{r=yield e()}finally{gAe()}return r})}function iG(t,e){if(process.env.GITHUB_STATE||"")return Hm("STATE",zm(t,e));ki("save-state",{name:t},Rn(e))}var aG=I(require("os"),1);function Ho(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function Ax(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}function Va(t,e,r){let s=new dx(t,e,r);process.stdout.write(s.toString()+aG.EOL)}function px(t,e=""){Va(t,{},e)}var oG="::",dx=class{constructor(e,r,s){e||(e="missing.command"),this.command=e,this.properties=r,this.message=s}toString(){let e=oG+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let s in this.properties)if(this.properties.hasOwnProperty(s)){let n=this.properties[s];n&&(r?r=!1:e+=",",e+=`${s}=${yAe(n)}`)}}return e+=`${oG}${EAe(this.message)}`,e}};function EAe(t){return Ho(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function yAe(t){return Ho(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var cG=I(require("crypto"),1),Wf=I(require("fs"),1),Jf=I(require("os"),1);function mx(t,e){let r=process.env[`GITHUB_${t}`];if(!r)throw new Error(`Unable to find environment variable for file command ${t}`);if(!Wf.existsSync(r))throw new Error(`Missing file at path: ${r}`);Wf.appendFileSync(r,`${Ho(e)}${Jf.EOL}`,{encoding:"utf8"})}function lG(t,e){let r=`ghadelimiter_${cG.randomUUID()}`,s=Ho(e);if(t.includes(r))throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`);if(s.includes(r))throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`);return`${t}<<${r}${Jf.EOL}${s}${Jf.EOL}${r}`}var mG=I(require("os"),1),hG=I(require("path"),1);var jf=I(dA(),1),IAe=I(Fl(),1);var zn;(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]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(zn||(zn={}));var uG;(function(t){t.Accept="accept",t.ContentType="content-type"})(uG||(uG={}));var AG;(function(t){t.ApplicationJson="application/json"})(AG||(AG={}));var KMe=[zn.MovedPermanently,zn.ResourceMoved,zn.SeeOther,zn.TemporaryRedirect,zn.PermanentRedirect],XMe=[zn.BadGateway,zn.ServiceUnavailable,zn.GatewayTimeout];var pG=require("os"),Ed=require("fs"),hx=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{l(s.next(u))}catch(A){o(A)}}function c(u){try{l(s.throw(u))}catch(A){o(A)}}function l(u){u.done?i(u.value):n(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},{access:BAe,appendFile:wAe,writeFile:bAe}=Ed.promises,dG="GITHUB_STEP_SUMMARY";var fx=class{constructor(){this._buffer=""}filePath(){return hx(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[dG];if(!e)throw new Error(`Unable to find environment variable for $${dG}. Check if your runtime environment supports job summaries.`);try{yield BAe(e,Ed.constants.R_OK|Ed.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,s={}){let n=Object.entries(s).map(([i,o])=>` ${i}="${o}"`).join("");return r?`<${e}${n}>${r}</${e}>`:`<${e}${n}>`}write(e){return hx(this,void 0,void 0,function*(){let r=!!e?.overwrite,sLine truncated
`),e=e.replace(/\r/g,`
`));let n=e.split(`
`).map(i=>i.trim());for(let i of n)!i||i.startsWith("#")||s.patterns.push(new fd(i));return s.searchPaths.push(...fx(s.patterns)),s})}static stat(e,r,s){return Bx(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield Ml.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){I(`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 n=yield Ml.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield Ml.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(o=>o===i)){I(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};var ime=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{l(s.next(u))}catch(A){o(A)}}function c(u){try{l(s.throw(u))}catch(A){o(A)}}function l(u){u.done?i(u.value):n(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};function WH(t,e){return ime(this,void 0,void 0,function*(){return yield Xf.create(t,e)})}var mg=b(require("crypto"),1),Ol=b(require("fs"),1),Ua=b(require("path"),1),OV=b(FV(),1),qV=b(require("util"),1);var Qd;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Qd||(Qd={}));var mr;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(mr||(mr={}));var ts;(function(t){t.GNU="gnu",t.BSD="bsd"})(ts||(ts={}));var dg=2,pg=5e3,Gx=5e3,Hx=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,UV=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,xd="cache.tar",zx="manifest.txt",LFe=10*Math.pow(1024,3);var Ul=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{l(s.next(u))}catch(A){o(A)}}function c(u){try{l(s.throw(u))}catch(A){o(A)}}function l(u){u.done?i(u.value):n(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},rge=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={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r);function s(i){r[i]=t[i]&&function(o){return new Promise(function(a,c){o=t[i](o),n(a,c,o.done,o.value)})}}function n(i,o,a,c){Promise.resolve(c).then(function(l){i({value:l,done:a})},o)}},sge="1.0";function Nd(){return Ul(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let s;t?s=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?s="/Users":s="/home",e=Ua.join(s,"actions","temp")}let r=Ua.join(e,mg.randomUUID());return yield ws(r),r})}function Hn(t){return Ol.statSync(t).size}function Vx(t){return Ul(this,void 0,void 0,function*(){var e,r,s,n,i;let o=[],a=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),c=yield WH(t.join(`
`),{implicitDescendants:!1});try{for(var l=!0,u=rge(c.globGenerator()),A;A=yield u.next(),e=A.done,!e;l=!0){n=A.value,l=!1;let p=Ua.relative(a,n).replace(new RegExp(`\\${Ua.sep}`,"g"),"/");I(`Matched: ${p}`),p===""?o.push("."):o.push(`${p}`)}}catch(d){r={error:d}}finally{try{!l&&!e&&(s=u.return)&&(yield s.call(u))}finally{if(r)throw r.error}}return o})}function Sd(t){return Ul(this,void 0,void 0,function*(){return qV.promisify(Ol.unlink)(t)})}function GV(t){return Ul(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),I(`Checking ${e} ${r.join(" ")}`);try{yield Zr(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:n=>s+=n.toString(),stderr:n=>s+=n.toString()}})}catch(n){I(n.message)}return s=s.trim(),I(s),s})}function Rd(){return Ul(this,void 0,void 0,function*(){let t=yield GV("zstd",["--quiet"]),e=OV.clean(t);return I(`zstd version: ${e}`),t===""?mr.Gzip:mr.ZstdWithoutLong})}function qo(t){return t===mr.Gzip?Qd.Gzip:Qd.Zstd}function HV(){return Ul(this,void 0,void 0,function*(){return Ol.existsSync(Hx)?Hx:(yield GV("tar")).toLowerCase().includes("gnu tar")?pt("tar"):""})}function Yx(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function ql(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(sge),mg.createHash("sha256").update(s.join("|")).digest("hex")}function zV(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}var Eu=b(require("fs"),1),oW=require("url");var zn=class extends Error{constructor(e){super(e),this.name="AbortError"}};var VV=require("node:os"),YV=b(require("node:util"),1),$V=b(require("node:process"),1);function JV(t,...e){$V.default.stderr.write(`${YV.default.format(t,...e)}${VV.EOL}`)}var WV=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,KV,$x=[],Jx=[],fg=[];WV&&Wx(WV);var XV=Object.assign(t=>ZV(t),{enable:Wx,enabled:jx,disable:nge,log:JV});function Wx(t){KV=t,$x=[],Jx=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?Jx.push(r.substring(1)):$x.push(r);for(let r of fg)r.enabled=jx(r.namespace)}function jx(t){if(t.endsWith("*"))return!0;for(let e of Jx)if(jV(t,e))return!1;for(let e of $x)if(jV(t,e))return!0;return!1}function jV(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let d=[],p="";for(let m of e)m==="*"&&p==="*"||(p=m,d.push(m));r=d.join("")}let s=0,n=0,i=r.length,o=t.length,a=-1,c=-1;for(;s<o&&n<i;)if(r[n]==="*"){if(a=n,n++,n===i)return!0;for(;t[s]!==r[n];)if(s++,s===o)return!1;c=s,s++,n++;continue}else if(r[n]===t[s])n++,s++;else if(a>=0){if(n=a+1,s=c+1,s===o)return!1;for(;t[s]!==r[n];)if(s++,s===o)return!1;c=s,s++,n++;continue}else return!1;let l=s===t.length,u=n===r.length,A=n===r.length-1&&r[n]==="*";return l&&(u||A)}function nge(){let t=KV||"";return Wx(""),t}function ZV(t){let e=Object.assign(r,{enabled:jx(t),destroy:ige,log:XV.log,namespace:t,extend:oge});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return fg.push(e),e}function ige(){let t=fg.indexOf(this);return t>=0?(fg.splice(t,1),!0):!1}function oge(t){let e=ZV(`${this.namespace}:${t}`);return e.log=this.log,e}var Gl=XV;var Kx=["verbose","info","warning","error"],eY={verbose:400,info:300,warning:200,error:100};function tY(t,e){e.log=(...r)=>{t.log(...r)}}function rY(t){return Kx.includes(t)}function gg(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,s,n=Gl(t.namespace);n.log=(...u)=>{Gl.log(...u)};function i(u){if(u&&!rY(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${Kx.join(",")}`);s=u;let A=[];for(let d of e)o(d)&&A.push(d.namespace);Gl.enable(A.join(","))}r&&(rY(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${Kx.join(", ")}.`));function o(u){return!!(s&&eY[u.level]<=eY[s])}function a(u,A){let d=Object.assign(u.extend(A),{level:A});if(tY(u,d),o(d)){let p=Gl.disable();Gl.enable(p+","+d.namespace)}return e.add(d),d}function c(){return s}function l(u){let A=n.extend(u);return tY(n,A),{error:a(A,"error"),warning:a(A,"warning"),info:a(A,"info"),verbose:a(A,"verbose")}}return{setLogLevel:i,getLogLevel:c,createClientLogger:l,logger:n}}var sY=gg({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),age=sY.logger;function Td(t){return sY.createClientLogger(t)}function Eg(t){return t.toLowerCase()}function*cge(t){for(let e of t.values())yield[e.name,e.value]}var Xx=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let r of Object.keys(e))this.set(r,e[r])}set(e,r){this._headersMap.set(Eg(e),{name:e,value:String(r).trim()})}get(e){return this._headersMap.get(Eg(e))?.value}has(e){return this._headersMap.has(Eg(e))}delete(e){this._headersMap.delete(Eg(e))}toJSON(e={}){let r={};if(e.preserveCase)for(let s of this._headersMap.values())r[s.name]=s.value;else for(let[s,n]of t Line truncated
${Age.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function Ig(t){return t instanceof hr?!0:qa(t)&&t.name==="RestError"}function Pr(t,e){return Buffer.from(t,e)}var Bg=b(require("node:http"),1),bg=b(require("node:https"),1),rN=b(require("node:zlib"),1),cY=require("node:stream");var Ts=Td("ts-http-runtime");var dge={};function Pd(t){return t&&typeof t.pipe=="function"}function aY(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 lY(t){return t&&typeof t.byteLength=="number"}var wg=class extends cY.Transform{loadedBytes=0;progressCallback;_transform(e,r,s){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),s()}catch(n){s(n)}}constructor(e){super(),this.progressCallback=e}},sN=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)throw new zn("The operation was aborted. Request has already been canceled.");s=l=>{l.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",s)}let n;e.timeout>0&&(n=setTimeout(()=>{let l=new un;Ts.info(`request to '${l.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 l=fge(a);l!==null&&e.headers.set("Content-Length",l)}let c;try{if(a&&e.onUploadProgress){let m=e.onUploadProgress,f=new wg(m);f.on("error",y=>{Ts.error("Error in upload progress",y)}),Pd(a)?a.pipe(f):f.end(a),a=f}let l=await this.makeRequest(e,r,a);n!==void 0&&clearTimeout(n);let u=pge(l),d={status:l.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return l.resume(),d;c=o?mge(l,u):l;let p=e.onDownloadProgress;if(p){let m=new wg(p);m.on("error",f=>{Ts.error("Error in download progress",f)}),c.pipe(m),c=m}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await hge(c),d}finally{if(e.abortSignal&&s){let l=Promise.resolve();Pd(a)&&(l=aY(a));let u=Promise.resolve();Pd(c)&&(u=aY(c)),Promise.all([l,u]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(A=>{Ts.warning("Error when cleaning up abortListener on httpRequest",A)})}}}makeRequest(e,r,s){let n=new URL(e.url),i=n.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:n.hostname,path:`${n.pathname}${n.search}`,port:n.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((c,l)=>{let u=i?Bg.default.request(a,c):bg.default.request(a,c);u.once("error",A=>{l(new hr(A.message,{code:A.code??hr.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let A=new zn("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(A),l(A)}),s&&Pd(s)?s.pipe(u):s?typeof s=="string"||Buffer.isBuffer(s)?u.end(s):lY(s)?u.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer):Buffer.from(s)):(Ts.error("Unrecognized body type",s),l(new hr("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?Bg.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new Bg.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return bg.default.globalAgent;let n=e.tlsSettings??dge,i=this.cachedHttpsAgents.get(n);return i&&i.options.keepAlive===!s||(Ts.info("No cached TLS Agent exist, creating a new Agent"),i=new bg.default.Agent({keepAlive:!s,...n}),this.cachedHttpsAgents.set(n,i)),i}}};function pge(t){let e=rs();for(let r of Object.keys(t.headers)){let s=t.headers[r];Array.isArray(s)?s.length>0&&e.set(r,s[0]):s&&e.set(r,s)}return e}function mge(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let s=rN.default.createGunzip();return t.pipe(s),s}else if(r==="deflate"){let s=rN.default.createInflate();return t.pipe(s),s}return t}function hge(t){return new Promise((e,r)=>{let s=[];t.on("data",n=>{Buffer.isBuffer(n)?s.push(n):s.push(Buffer.from(n))}),t.on("end",()=>{e(Buffer.concat(s).toString("utf8"))}),t.on("error",n=>{n&&n?.name==="AbortError"?r(n):r(new hr(`Error reading response as text: ${n.message}`,{code:hr.PARSE_ERROR}))})})}function fge(t){return t?Buffer.isBuffer(t)?t.length:Pd(t)?null:lY(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function uY(){return new sN}function Qg(){return uY()}var nN="logPolicy";function xg(t={}){let e=t.logger??Ts.info,r=new un({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQue Line truncated
`;return e}function FEe(t){return t instanceof Uint8Array?t.byteLength:$g(t)?t.size===-1?void 0:t.size:void 0}function UEe(t){let e=0;for(let r of t){let s=FEe(r);if(s===void 0)return;e+=s}return e}async function OEe(t,e,r){let s=[Pr(`--${r}`,"utf-8"),...e.flatMap(i=>[Pr(`\r
`,"utf-8"),Pr(MEe(i.headers),"utf-8"),Pr(`\r
`,"utf-8"),i.body,Pr(`\r
--${r}`,"utf-8")]),Pr(`--\r
`).map(i=>i.trim());for(let i of n)!i||i.startsWith("#")||s.patterns.push(new Td(i));return s.searchPaths.push(...Vx(s.patterns)),s})}static stat(e,r,s){return Kx(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield Jl.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){w(`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 n=yield Jl.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield Jl.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(o=>o===i)){w(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};var lhe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{l(s.next(u))}catch(A){o(A)}}function c(u){try{l(s.throw(u))}catch(A){o(A)}}function l(u){u.done?i(u.value):n(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};function Uz(t,e){return lhe(this,void 0,void 0,function*(){return yield Cg.create(t,e)})}var Lg=I(require("crypto"),1),Kl=I(require("fs"),1),Ka=I(require("path"),1),v$=I(R$(),1),P$=I(require("util"),1);var Fd;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Fd||(Fd={}));var fr;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(fr||(fr={}));var ss;(function(t){t.GNU="gnu",t.BSD="bsd"})(ss||(ss={}));var Dg=2,_g=5e3,g0=5e3,E0=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,T$=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Ud="cache.tar",y0="manifest.txt",vUe=10*Math.pow(1024,3);var jl=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{l(s.next(u))}catch(A){o(A)}}function c(u){try{l(s.throw(u))}catch(A){o(A)}}function l(u){u.done?i(u.value):n(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},oEe=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={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r);function s(i){r[i]=t[i]&&function(o){return new Promise(function(a,c){o=t[i](o),n(a,c,o.done,o.value)})}}function n(i,o,a,c){Promise.resolve(c).then(function(l){i({value:l,done:a})},o)}},aEe="1.0";function qd(){return jl(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let s;t?s=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?s="/Users":s="/home",e=Ka.join(s,"actions","temp")}let r=Ka.join(e,Lg.randomUUID());return yield Ns(r),r})}function Jn(t){return Kl.statSync(t).size}function C0(t){return jl(this,void 0,void 0,function*(){var e,r,s,n,i;let o=[],a=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),c=yield Uz(t.join(`
`),{implicitDescendants:!1});try{for(var l=!0,u=oEe(c.globGenerator()),A;A=yield u.next(),e=A.done,!e;l=!0){n=A.value,l=!1;let p=Ka.relative(a,n).replace(new RegExp(`\\${Ka.sep}`,"g"),"/");w(`Matched: ${p}`),p===""?o.push("."):o.push(`${p}`)}}catch(d){r={error:d}}finally{try{!l&&!e&&(s=u.return)&&(yield s.call(u))}finally{if(r)throw r.error}}return o})}function Gd(t){return jl(this,void 0,void 0,function*(){return P$.promisify(Kl.unlink)(t)})}function k$(t){return jl(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),w(`Checking ${e} ${r.join(" ")}`);try{yield ts(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:n=>s+=n.toString(),stderr:n=>s+=n.toString()}})}catch(n){w(n.message)}return s=s.trim(),w(s),s})}function Hd(){return jl(this,void 0,void 0,function*(){let t=yield k$("zstd",["--quiet"]),e=v$.clean(t);return w(`zstd version: ${e}`),t===""?fr.Gzip:fr.ZstdWithoutLong})}function Wo(t){return t===fr.Gzip?Fd.Gzip:Fd.Zstd}function D$(){return jl(this,void 0,void 0,function*(){return Kl.existsSync(E0)?E0:(yield k$("tar")).toLowerCase().includes("gnu tar")?pt("tar"):""})}function I0(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function Xl(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(aEe),Lg.createHash("sha256").update(s.join("|")).digest("hex")}function _$(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}var Ru=I(require("fs"),1),KW=require("url");var Wn=class extends Error{constructor(e){super(e),this.name="AbortError"}};var L$=require("node:os"),M$=I(require("node:util"),1),O$=I(require("node:process"),1);function F$(t,...e){O$.default.stderr.write(`${M$.default.format(t,...e)}${L$.EOL}`)}var U$=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,G$,B0=[],w0=[],Og=[];U$&&b0(U$);var H$=Object.assign(t=>z$(t),{enable:b0,enabled:Q0,disable:cEe,log:F$});function b0(t){G$=t,B0=[],w0=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?w0.push(r.substring(1)):B0.push(r);for(let r of Og)r.enabled=Q0(r.namespace)}function Q0(t){if(t.endsWith("*"))return!0;for(let e of w0)if(q$(t,e))return!1;for(let e of B0)if(q$(t,e))return!0;return!1}function q$(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let d=[],p="";for(let m of e)m==="*"&&p==="*"||(p=m,d.push(m));r=d.join("")}let s=0,n=0,i=r.length,o=t.length,a=-1,c=-1;for(;s<o&&n<i;)if(r[n]==="*"){if(a=n,n++,n===i)return!0;for(;t[s]!==r[n];)if(s++,s===o)return!1;c=s,s++,n++;continue}else if(r[n]===t[s])n++,s++;else if(a>=0){if(n=a+1,s=c+1,s===o)return!1;for(;t[s]!==r[n];)if(s++,s===o)return!1;c=s,s++,n++;continue}else return!1;let l=s===t.length,u=n===r.length,A=n===r.length-1&&r[n]==="*";return l&&(u||A)}function cEe(){let t=G$||"";return b0(""),t}function z$(t){let e=Object.assign(r,{enabled:Q0(t),destroy:lEe,log:H$.log,namespace:t,extend:uEe});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return Og.push(e),e}function lEe(){let t=Og.indexOf(this);return t>=0?(Og.splice(t,1),!0):!1}function uEe(t){let e=z$(`${this.namespace}:${t}`);return e.log=this.log,e}var Zl=H$;var x0=["verbose","info","warning","error"],V$={verbose:400,info:300,warning:200,error:100};function $$(t,e){e.log=(...r)=>{t.log(...r)}}function Y$(t){return x0.includes(t)}function Fg(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,s,n=Zl(t.namespace);n.log=(...u)=>{Zl.log(...u)};function i(u){if(u&&!Y$(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${x0.join(",")}`);s=u;let A=[];for(let d of e)o(d)&&A.push(d.namespace);Zl.enable(A.join(","))}r&&(Y$(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${x0.join(", ")}.`));function o(u){return!!(s&&V$[u.level]<=V$[s])}function a(u,A){let d=Object.assign(u.extend(A),{level:A});if($$(u,d),o(d)){let p=Zl.disable();Zl.enable(p+","+d.namespace)}return e.add(d),d}function c(){return s}function l(u){let A=n.extend(u);return $$(n,A),{error:a(A,"error"),warning:a(A,"warning"),info:a(A,"info"),verbose:a(A,"verbose")}}return{setLogLevel:i,getLogLevel:c,createClientLogger:l,logger:n}}var J$=Fg({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),AEe=J$.logger;function zd(t){return J$.createClientLogger(t)}function Ug(t){return t.toLowerCase()}function*dEe(t){for(let e of t.values())yield[e.name,e.value]}var N0=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let r of Object.keys(e))this.set(r,e[r])}set(e,r){this._headersMap.set(Ug(e),{name:e,value:String(r).trim()})}get(e){return this._headersMap.get(Ug(e))?.value}has(e){return this._headersMap.has(Ug(e))}delete(e){this._headersMap.delete(Ug(e))}toJSON(e={}){let r={};if(e.preserveCase)for(let s of this._headersMap.values())r[s.name]=s.value;else for(let[s,n]of t Line truncated
${hEe.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function Hg(t){return t instanceof gr?!0:Za(t)&&t.name==="RestError"}function kr(t,e){return Buffer.from(t,e)}var zg=I(require("node:http"),1),Vg=I(require("node:https"),1),v0=I(require("node:zlib"),1),Z$=require("node:stream");var ks=zd("ts-http-runtime");var fEe={};function Vd(t){return t&&typeof t.pipe=="function"}function X$(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 eY(t){return t&&typeof t.byteLength=="number"}var $g=class extends Z$.Transform{loadedBytes=0;progressCallback;_transform(e,r,s){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),s()}catch(n){s(n)}}constructor(e){super(),this.progressCallback=e}},P0=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)throw new Wn("The operation was aborted. Request has already been canceled.");s=l=>{l.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",s)}let n;e.timeout>0&&(n=setTimeout(()=>{let l=new fn;ks.info(`request to '${l.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 l=CEe(a);l!==null&&e.headers.set("Content-Length",l)}let c;try{if(a&&e.onUploadProgress){let m=e.onUploadProgress,f=new $g(m);f.on("error",y=>{ks.error("Error in upload progress",y)}),Vd(a)?a.pipe(f):f.end(a),a=f}let l=await this.makeRequest(e,r,a);n!==void 0&&clearTimeout(n);let u=gEe(l),d={status:l.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return l.resume(),d;c=o?EEe(l,u):l;let p=e.onDownloadProgress;if(p){let m=new $g(p);m.on("error",f=>{ks.error("Error in download progress",f)}),c.pipe(m),c=m}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await yEe(c),d}finally{if(e.abortSignal&&s){let l=Promise.resolve();Vd(a)&&(l=X$(a));let u=Promise.resolve();Vd(c)&&(u=X$(c)),Promise.all([l,u]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(A=>{ks.warning("Error when cleaning up abortListener on httpRequest",A)})}}}makeRequest(e,r,s){let n=new URL(e.url),i=n.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:n.hostname,path:`${n.pathname}${n.search}`,port:n.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((c,l)=>{let u=i?zg.default.request(a,c):Vg.default.request(a,c);u.once("error",A=>{l(new gr(A.message,{code:A.code??gr.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let A=new Wn("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(A),l(A)}),s&&Vd(s)?s.pipe(u):s?typeof s=="string"||Buffer.isBuffer(s)?u.end(s):eY(s)?u.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer):Buffer.from(s)):(ks.error("Unrecognized body type",s),l(new gr("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?zg.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new zg.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return Vg.default.globalAgent;let n=e.tlsSettings??fEe,i=this.cachedHttpsAgents.get(n);return i&&i.options.keepAlive===!s||(ks.info("No cached TLS Agent exist, creating a new Agent"),i=new Vg.default.Agent({keepAlive:!s,...n}),this.cachedHttpsAgents.set(n,i)),i}}};function gEe(t){let e=ns();for(let r of Object.keys(t.headers)){let s=t.headers[r];Array.isArray(s)?s.length>0&&e.set(r,s[0]):s&&e.set(r,s)}return e}function EEe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let s=v0.default.createGunzip();return t.pipe(s),s}else if(r==="deflate"){let s=v0.default.createInflate();return t.pipe(s),s}return t}function yEe(t){return new Promise((e,r)=>{let s=[];t.on("data",n=>{Buffer.isBuffer(n)?s.push(n):s.push(Buffer.from(n))}),t.on("end",()=>{e(Buffer.concat(s).toString("utf8"))}),t.on("error",n=>{n&&n?.name==="AbortError"?r(n):r(new gr(`Error reading response as text: ${n.message}`,{code:gr.PARSE_ERROR}))})})}function CEe(t){return t?Buffer.isBuffer(t)?t.length:Vd(t)?null:eY(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function tY(){return new P0}function Yg(){return tY()}var k0="logPolicy";function Jg(t={}){let e=t.logger??ks.info,r=new fn({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQue Line truncated
`;return e}function Gye(t){return t instanceof Uint8Array?t.byteLength:hE(t)?t.size===-1?void 0:t.size:void 0}function Hye(t){let e=0;for(let r of t){let s=Gye(r);if(s===void 0)return;e+=s}return e}async function zye(t,e,r){let s=[kr(`--${r}`,"utf-8"),...e.flatMap(i=>[kr(`\r
`,"utf-8"),kr(qye(i.headers),"utf-8"),kr(`\r
`,"utf-8"),i.body,kr(`\r
--${r}`,"utf-8")]),kr(`--\r
\r
`,"utf-8")],n=UEe(s);n&&t.headers.set("Content-Length",n),t.body=await i$(s)}var _d="multipartPolicy",qEe=70,GEe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function HEe(t){if(t.length>qEe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!GEe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function Wg(){return{name:_d,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,s=t.headers.get("Content-Type")??"multipart/mixed",n=s.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!n)throw new Error(`Got multipart request body, but content-type header was not multipart: ${s}`);let[,i,o]=n;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?HEe(r):r=LEe(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await OEe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function jg(){return Cg()}var o$=gg({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),g1e=o$.logger;function Yn(t){return o$.createClientLogger(t)}var $n=Yn("core-rest-pipeline");function IN(t={}){return xg({logger:$n.info,...t})}var BN=Ng;function bN(t={}){return Sg(t)}var Kg=b(require("node:os"),1),Xg=b(require("node:process"),1);function a$(){return"User-Agent"}async function c$(t){if(Xg.default&&Xg.default.versions){let e=`${Kg.default.type()} ${Kg.default.release()}; ${Kg.default.arch()}`,r=Xg.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 Zg="1.22.2";function KEe(t){let e=[];for(let[r,s]of t){let n=s?`${r}/${s}`:r;e.push(n)}return e.join(" ")}function l$(){return a$()}async function eE(t){let e=new Map;e.set("core-rest-pipeline",Zg),await c$(e);let r=KEe(e);return t?`${t} ${r}`:r}var u$=l$(),A$="userAgentPolicy";function wN(t={}){let e=eE(t.userAgentPrefix);return{name:A$,async sendRequest(r,s){return r.headers.has(u$)||r.headers.set(u$,await e),s(r)}}}var is=class extends Error{constructor(e){super(e),this.name="AbortError"}};function QN(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,o)=>{function a(){o(new is(n??"The operation was aborted."))}function c(){s?.removeEventListener("abort",l)}function l(){r?.(),c(),a()}if(s?.aborted)return a();try{t(u=>{c(),i(u)},u=>{c(),o(u)})}catch(u){o(u)}s?.addEventListener("abort",l)})}var rye="The delay was aborted.";function Ld(t,e){let r,{abortSignal:s,abortErrorMsg:n}=e??{};return QN(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:s,abortErrorMsg:n??rye})}function Ho(t){if(qa(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 d$(t){return qa(t)}function Wl(){return Oa()}var xe=za;var p$=Symbol("rawContent");function NN(t){return typeof t[p$]=="function"}function m$(t){return NN(t)?t[p$]():t}var tE=_d;function SN(){let t=Wg();return{name:tE,sendRequest:async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)NN(s.body)&&(s.body=m$(s.body));return t.sendRequest(e,r)}}}var RN=Rg;function TN(){return Tg()}function PN(t={}){return kg(t)}function vN(){return Dg()}function zo(t){return fN(t)}function kN(t,e){return zg(t,e)}var h$="setClientRequestIdPolicy";function DN(t="x-ms-client-request-id"){return{name:h$,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function _N(t){return Vg(t)}function LN(t){return Yg(t)}var jl={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function f$(t={}){let e=new MN(t.parentContext);return t.span&&(e=e.setValue(jl.span,t.span)),t.namespace&&(e=e.setValue(jl.namespace,t.namespace)),e}var MN=class t{_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let s=new t(this);return s._contextMap.set(e,r),s}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var E$=b(g$(),1),sE=E$.state;function sye(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function nye(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:sye(),tracingContext:f$({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function Md(){return sE.instrumenterImplementation||(sE.instrumenterImplementation=nye()),sE.instrumenterImplementation}function Fd(t){let{namespace:e,packageName:r,packageVersion:s}=t;function n(l,u,A){let d=Md().startSpan(l,{...A,packageName:r,packageVersion:s,tracingContext:u?.tracingOptions?.tracingContext}),p=d.tracingContext,m=d.span;p.getValue(jl.na Line truncated
`&&t[i]!=="\r";i++)c+=t[i];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),i--),!xCe(c)){let A;return c.trim().length===0?A="Invalid space after '<'.":A="Tag '"+c+"' is an invalid name.",mt("InvalidTag",A,fr(t,i))}let l=ICe(t,i);if(l===!1)return mt("InvalidAttr","Attributes for '"+c+"' have open quote.",fr(t,i));let u=l.value;if(i=l.index,u[u.length-1]==="/"){let A=i-u.length;u=u.substring(0,u.length-1);let d=Z$(u,e);if(d===!0)s=!0;else return mt(d.err.code,d.err.msg,fr(t,A+d.err.line))}else if(a)if(l.tagClosed){if(u.trim().length>0)return mt("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",fr(t,o));if(r.length===0)return mt("InvalidTag","Closing tag '"+c+"' has not been opened.",fr(t,o));{let A=r.pop();if(c!==A.tagName){let d=fr(t,A.tagStartPos);return mt("InvalidTag","Expected closing tag '"+A.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",fr(t,o))}r.length==0&&(n=!0)}}else return mt("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",fr(t,i));else{let A=Z$(u,e);if(A!==!0)return mt(A.err.code,A.err.msg,fr(t,i-u.length+A.err.line));if(n===!0)return mt("InvalidXml","Multiple possible root nodes found.",fr(t,i));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:o}),s=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=X$(t,i);continue}else if(t[i+1]==="?"){if(i=K$(t,++i),i.err)return i}else break;else if(t[i]==="&"){let A=wCe(t,i);if(A==-1)return mt("InvalidChar","char '&' is not expected.",fr(t,i));i=A}else if(n===!0&&!j$(t[i]))return mt("InvalidXml","Extra text at the end",fr(t,i));t[i]==="<"&&i--}}else{if(j$(t[i]))continue;return mt("InvalidChar","char '"+t[i]+"' is not expected.",fr(t,i))}if(s){if(r.length==1)return mt("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",fr(t,r[0].tagStartPos));if(r.length>0)return mt("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return mt("InvalidXml","Start tag expected.",1);return!0}function j$(t){return t===" "||t===" "||t===`
`||t==="\r"}function K$(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let s=t.substr(r,e-r);if(e>5&&s==="xml")return mt("InvalidXml","XML declaration allowed only at the start of the document.",fr(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function X$(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 yCe='"',CCe="'";function ICe(t,e){let r="",s="",n=!1;for(;e<t.length;e++){if(t[e]===yCe||t[e]===CCe)s===""?s=t[e]:s!==t[e]||(s="");else if(t[e]===">"&&s===""){n=!0;break}r+=t[e]}return s!==""?!1:{value:r,index:e,tagClosed:n}}var BCe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Z$(t,e){let r=dE(t,BCe),s={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return mt("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",Jd(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return mt("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",Jd(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return mt("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",Jd(r[n]));let i=r[n][2];if(!QCe(i))return mt("InvalidAttr","Attribute '"+i+"' is an invalid name.",Jd(r[n]));if(!Object.prototype.hasOwnProperty.call(s,i))s[i]=1;else return mt("InvalidAttr","Attribute '"+i+"' is repeated.",Jd(r[n]))}return!0}function bCe(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 wCe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,bCe(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 mt(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function QCe(t){return Zl(t)}function xCe(t){return Zl(t)}function fr(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function Jd(t){return t.startIndex+t[1].length}var eJ={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"},tJ={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",thorn:"\xFE",szlig:"\xDF",yuml:"\xFF",Yuml:"\u0178"},rJ={Amacr:"\u0100",amacr:"\u0101",Abreve:"\u0102",abreve:"\u0103",Aogon:"\u0104",aogon:"\u0105",Cacute:"\u0106",cacute:"\u0107",Ccirc:"\u0108",ccirc:"\u0109",Cdot:"\u010A",cdot:"\u010B",Ccaron:"\u010C",ccaron:"\u010D",Dcaron:"\u010E",dcaron:"\u010F",Dstrok:"\u0110",dstrok:"\u0111",Emacr:"\u0112",emacr:"\u0113",Ecaron:"\u011A",ecaron:"\u011B",Edot:"\u0116",edot:"\u0117",Eogon:"\u0118",eogon:"\u0119",Gcirc:"\u011C",gcirc:"\u011D",Gbreve:"\u011E",gbreve:"\u011F",Gdot:"\u0120",gdot:"\u0121",Gcedil:"\u0122",Hcirc:"\u0124",hcirc:"\u0125",Hstrok:"\u0126",hstrok:"\u0127",Itilde:"\u0128",itilde:"\u0129",Imacr:"\u012A",imacr:"\u012B",Iogon:"\u012E",iogon:"\u012F",Idot:"\u0130",IJlig:"\u0132",ijlig:"\u0133",Jcirc:"\u0134",jcirc:"\u0135",Kcedil:"\u0136",kcedil:"\u0137",kgreen:"\u0138",Lacute:"\u0139",lacute:"\u013A",Lcedil:"\u013B",lcedil:"\u013C",Lcaron:"\u0Line truncated
`);let e=new Dr("!xml"),r=e,s="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let n=this.options,i=new Kd(n.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let l=t.charCodeAt(a+1);if(l===47){let u=ru(t,">",a,"Closing Tag is not closed."),A=t.substring(a+2,u).trim();if(n.removeNSPrefix){let p=A.indexOf(":");p!==-1&&(A=A.substr(p+1))}A=a0(n.transformTagName,A,"",n).tagName,r&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(A&&n.unpairedTagsSet.has(A))throw new Error(`Unpaired tag can not be used as closing tag: </${A}>`);d&&n.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),s="",a=u}else if(l===63){let u=c0(t,a,!1,"?>");if(!u)throw new Error("Pi Tag is not closed.");s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let A=this.buildAttributesMap(u.tagExp,this.matcher,u.tagName,!0);if(A){let d=A[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1)}if(!(n.ignoreDeclaration&&u.tagName==="?xml"||n.ignorePiTags)){let d=new Dr(u.tagName);d.add(n.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&n.ignoreAttributes!==!0&&(d[":@"]=A),this.addChild(r,d,this.readonlyMatcher,a)}a=u.closeIndex+1}else if(l===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let u=ru(t,"-->",a+4,"Comment is not closed.");if(n.commentPropName){let A=t.substring(a+4,u-2);s=this.saveTextToParentTag(s,r,this.readonlyMatcher),r.add(n.commentPropName,[{[n.textNodeName]:A}])}a=u}else if(l===33&&t.charCodeAt(a+2)===68){let u=i.readDocType(t,a);this.entityDecoder.addInputEntities(u.entities),a=u.i}else if(l===33&&t.charCodeAt(a+2)===91){let u=ru(t,"]]>",a,"CDATA is not closed.")-2,A=t.substring(a+9,u);s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let d=this.parseTextData(A,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),n.cdataPropName?r.add(n.cdataPropName,[{[n.textNodeName]:A}]):r.add(n.textNodeName,d),a=u+2}else{let u=c0(t,a,n.removeNSPrefix);if(!u){let k=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${k}"`)}let A=u.tagName,d=u.rawTagName,p=u.tagExp,m=u.attrExpPresent,f=u.closeIndex;if({tagName:A,tagExp:p}=a0(n.transformTagName,A,p,n),n.strictReservedNames&&(A===n.commentPropName||A===n.cdataPropName||A===n.textNodeName||A===n.attributesGroupName))throw new Error(`Invalid tag name: ${A}`);r&&s&&r.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher,!1));let y=r;y&&n.unpairedTagsSet.has(y.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let g=!1;p.length>0&&p.lastIndexOf("/")===p.length-1&&(g=!0,A[A.length-1]==="/"?(A=A.substr(0,A.length-1),p=A):p=p.substr(0,p.length-1),m=A!==p);let E=null,C={},B;B=HCe(d),A!==e.tagname&&this.matcher.push(A,{},B),A!==p&&m&&(E=this.buildAttributesMap(p,this.matcher,A),E&&(C=GCe(E,n))),A!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let x=a;if(this.isCurrentNodeStopNode){let k="";if(g)a=u.closeIndex;else if(n.unpairedTagsSet.has(A))a=u.closeIndex;else{let de=this.readStopNodeData(t,d,f+1);if(!de)throw new Error(`Unexpected end of ${d}`);a=de.i,k=de.tagContent}let O=new Dr(A);E&&(O[":@"]=E),O.add(n.textNodeName,k),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,O,this.readonlyMatcher,x)}else{if(g){({tagName:A,tagExp:p}=a0(n.transformTagName,A,p,n));let k=new Dr(A);E&&(k[":@"]=E),this.addChild(r,k,this.readonlyMatcher,x),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(n.unpairedTagsSet.has(A)){let k=new Dr(A);E&&(k[":@"]=E),this.addChild(r,k,this.readonlyMatcher,x),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let k=new Dr(A);if(this.tagsNodeStack.length>n.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),E&&(k[":@"]=E),this.addChild(r,k,this.readonlyMatcher,x),r=k}s="",a=f}}}else s+=t[a];return e.child};function WCe(t,e,r,s){this.options.captureMetaData||(s=void 0);let n=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,n,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,s))}function jCe(t,e,r){let s=this.options.processEntities;if(!s||!s.enabled)return t;if(s.allowedTags){let n=this.options.jPath?r.toString():r;if(!(Array.isArray(s.allowedTags)?s.allowedTags.includes(e):s.allowedTags(e,n)))return t}if(s.tagFilter){let n=this.options.jPath?r.toString():r;if(!s.tagFilter(e,n))return t}return this.entityDecoder.decode(t)}function KCe(t,e,r,s){return t&&(s===void 0&&(s=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,s),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}function XCe(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function ZCe(t,e,r=">"){let s=0,n=[],i=t.length,o=Line truncated
`;function p0(t,e){let r="";e.format&&e.indentBy.length>0&&(r=oIe);let s=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let i=0;i<e.stopNodes.length;i++){let o=e.stopNodes[i];typeof o=="string"?s.push(new cs(o)):o instanceof cs&&s.push(o)}let n=new jn;return yJ(t,e,r,n,s)}function yJ(t,e,r,s,n){let i="",o=!1;if(e.maxNestedTags&&s.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let a=t.toString();return a=d0(a,e),a}return""}for(let a=0;a<t.length;a++){let c=t[a],l=IJ(c);if(l===void 0)continue;let u=aIe(c[":@"],e);s.push(l,u);let A=lIe(s,n);if(l===e.textNodeName){let y=c[l];A||(y=e.tagValueProcessor(l,y),y=d0(y,e)),o&&(i+=r),i+=y,o=!1,s.pop();continue}else if(l===e.cdataPropName){o&&(i+=r);let y=c[l][0][e.textNodeName],g=String(y).replace(/\]\]>/g,"]]]]><![CDATA[>");i+=`<![CDATA[${g}]]>`,o=!1,s.pop();continue}else if(l===e.commentPropName){let y=c[l][0][e.textNodeName],g=String(y).replace(/--/g,"- -").replace(/-$/,"- ");i+=r+`<!--${g}-->`,o=!0,s.pop();continue}else if(l[0]==="?"){let y=EJ(c[":@"],e,A),g=l==="?xml"?"":r,E=c[l][0][e.textNodeName];E=E.length!==0?" "+E:"",i+=g+`<${l}${E}${y}?>`,o=!0,s.pop();continue}let d=r;d!==""&&(d+=e.indentBy);let p=EJ(c[":@"],e,A),m=r+`<${l}${p}`,f;A?f=CJ(c[l],e):f=yJ(c[l],e,d,s,n),e.unpairedTags.indexOf(l)!==-1?e.suppressUnpairedNode?i+=m+">":i+=m+"/>":(!f||f.length===0)&&e.suppressEmptyNode?i+=m+"/>":f&&f.endsWith(">")?i+=m+`>${f}${r}</${l}>`:(i+=m+">",f&&r!==""&&(f.includes("/>")||f.includes("</"))?i+=r+e.indentBy+f+r:i+=f,i+=`</${l}>`),o=!0,s.pop()}return i}function aIe(t,e){if(!t||e.ignoreAttributes)return null;let r={},s=!1;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let i=n.startsWith(e.attributeNamePrefix)?n.substr(e.attributeNamePrefix.length):n;r[i]=t[n],s=!0}return s?r:null}function CJ(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let s=0;s<t.length;s++){let n=t[s],i=IJ(n);if(i===e.textNodeName)r+=n[i];else if(i===e.cdataPropName)r+=n[i][0][e.textNodeName];else if(i===e.commentPropName)r+=n[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let o=cIe(n[":@"],e),a=CJ(n[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function cIe(t,e){let r="";if(t&&!e.ignoreAttributes)for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=t[s];n===!0&&e.suppressBooleanAttributes?r+=` ${s.substr(e.attributeNamePrefix.length)}`:r+=` ${s.substr(e.attributeNamePrefix.length)}="${n}"`}return r}function IJ(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let s=e[r];if(Object.prototype.hasOwnProperty.call(t,s)&&s!==":@")return s}}function EJ(t,e,r){let s="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let i;r?i=t[n]:(i=e.attributeValueProcessor(n,t[n]),i=d0(i,e)),i===!0&&e.suppressBooleanAttributes?s+=` ${n.substr(e.attributeNamePrefix.length)}`:s+=` ${n.substr(e.attributeNamePrefix.length)}="${i}"`}return s}function lIe(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 d0(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let s=e.entities[r];t=t.replace(s.regex,s.val)}return t}function m0(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 uIe={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("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0};function Lr(t){if(this.options=Object.assign({},uIe,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){let r=this.options.stopNodes[e];typeof r=="string"?this.stopNodeExpressions.push(new cs(r)):r instanceof cs&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=m0(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=pIe),this.processTextOrObjNode=AIe,this.options.format?(this.indentate=dIe,this.tagEndChar=`>
`,"utf-8")],n=Hye(s);n&&t.headers.set("Content-Length",n),t.body=await jY(s)}var Wd="multipartPolicy",Vye=70,$ye=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function Yye(t){if(t.length>Vye)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!$ye.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function gE(){return{name:Wd,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,s=t.headers.get("Content-Type")??"multipart/mixed",n=s.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!n)throw new Error(`Got multipart request body, but content-type header was not multipart: ${s}`);let[,i,o]=n;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?Yye(r):r=Uye(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await zye(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function EE(){return Gg()}var KY=Fg({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),dGe=KY.logger;function Kn(t){return KY.createClientLogger(t)}var Xn=Kn("core-rest-pipeline");function j0(t={}){return Jg({logger:Xn.info,...t})}var K0=Wg;function X0(t={}){return jg(t)}var yE=I(require("node:os"),1),CE=I(require("node:process"),1);function XY(){return"User-Agent"}async function ZY(t){if(CE.default&&CE.default.versions){let e=`${yE.default.type()} ${yE.default.release()}; ${yE.default.arch()}`,r=CE.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 IE="1.22.2";function tCe(t){let e=[];for(let[r,s]of t){let n=s?`${r}/${s}`:r;e.push(n)}return e.join(" ")}function eJ(){return XY()}async function BE(t){let e=new Map;e.set("core-rest-pipeline",IE),await ZY(e);let r=tCe(e);return t?`${t} ${r}`:r}var tJ=eJ(),rJ="userAgentPolicy";function Z0(t={}){let e=BE(t.userAgentPrefix);return{name:rJ,async sendRequest(r,s){return r.headers.has(tJ)||r.headers.set(tJ,await e),s(r)}}}var as=class extends Error{constructor(e){super(e),this.name="AbortError"}};function eN(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,o)=>{function a(){o(new as(n??"The operation was aborted."))}function c(){s?.removeEventListener("abort",l)}function l(){r?.(),c(),a()}if(s?.aborted)return a();try{t(u=>{c(),i(u)},u=>{c(),o(u)})}catch(u){o(u)}s?.addEventListener("abort",l)})}var oCe="The delay was aborted.";function jd(t,e){let r,{abortSignal:s,abortErrorMsg:n}=e??{};return eN(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:s,abortErrorMsg:n??oCe})}function Ko(t){if(Za(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 sJ(t){return Za(t)}function ou(){return Xa()}var xe=rc;var nJ=Symbol("rawContent");function rN(t){return typeof t[nJ]=="function"}function iJ(t){return rN(t)?t[nJ]():t}var wE=Wd;function sN(){let t=gE();return{name:wE,sendRequest:async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)rN(s.body)&&(s.body=iJ(s.body));return t.sendRequest(e,r)}}}var nN=Kg;function iN(){return Xg()}function oN(t={}){return tE(t)}function aN(){return rE()}function Xo(t){return V0(t)}function cN(t,e){return dE(t,e)}var oJ="setClientRequestIdPolicy";function lN(t="x-ms-client-request-id"){return{name:oJ,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function uN(t){return pE(t)}function AN(t){return mE(t)}var au={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function aJ(t={}){let e=new dN(t.parentContext);return t.span&&(e=e.setValue(au.span,t.span)),t.namespace&&(e=e.setValue(au.namespace,t.namespace)),e}var dN=class t{_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let s=new t(this);return s._contextMap.set(e,r),s}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var lJ=I(cJ(),1),QE=lJ.state;function aCe(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function cCe(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:aCe(),tracingContext:aJ({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function Kd(){return QE.instrumenterImplementation||(QE.instrumenterImplementation=cCe()),QE.instrumenterImplementation}function Xd(t){let{namespace:e,packageName:r,packageVersion:s}=t;function n(l,u,A){let d=Kd().startSpan(l,{...A,packageName:r,packageVersion:s,tracingContext:u?.tracingOptions?.tracingContext}),p=d.tracingContext,m=d.span;p.getValue(au.na Line truncated
`&&t[i]!=="\r";i++)c+=t[i];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),i--),!TIe(c)){let A;return c.trim().length===0?A="Invalid space after '<'.":A="Tag '"+c+"' is an invalid name.",mt("InvalidTag",A,Er(t,i))}let l=QIe(t,i);if(l===!1)return mt("InvalidAttr","Attributes for '"+c+"' have open quote.",Er(t,i));let u=l.value;if(i=l.index,u[u.length-1]==="/"){let A=i-u.length;u=u.substring(0,u.length-1);let d=zJ(u,e);if(d===!0)s=!0;else return mt(d.err.code,d.err.msg,Er(t,A+d.err.line))}else if(a)if(l.tagClosed){if(u.trim().length>0)return mt("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",Er(t,o));if(r.length===0)return mt("InvalidTag","Closing tag '"+c+"' has not been opened.",Er(t,o));{let A=r.pop();if(c!==A.tagName){let d=Er(t,A.tagStartPos);return mt("InvalidTag","Expected closing tag '"+A.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",Er(t,o))}r.length==0&&(n=!0)}}else return mt("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",Er(t,i));else{let A=zJ(u,e);if(A!==!0)return mt(A.err.code,A.err.msg,Er(t,i-u.length+A.err.line));if(n===!0)return mt("InvalidXml","Multiple possible root nodes found.",Er(t,i));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:o}),s=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=HJ(t,i);continue}else if(t[i+1]==="?"){if(i=GJ(t,++i),i.err)return i}else break;else if(t[i]==="&"){let A=SIe(t,i);if(A==-1)return mt("InvalidChar","char '&' is not expected.",Er(t,i));i=A}else if(n===!0&&!qJ(t[i]))return mt("InvalidXml","Extra text at the end",Er(t,i));t[i]==="<"&&i--}}else{if(qJ(t[i]))continue;return mt("InvalidChar","char '"+t[i]+"' is not expected.",Er(t,i))}if(s){if(r.length==1)return mt("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Er(t,r[0].tagStartPos));if(r.length>0)return mt("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return mt("InvalidXml","Start tag expected.",1);return!0}function qJ(t){return t===" "||t===" "||t===`
`||t==="\r"}function GJ(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let s=t.substr(r,e-r);if(e>5&&s==="xml")return mt("InvalidXml","XML declaration allowed only at the start of the document.",Er(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function HJ(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 wIe='"',bIe="'";function QIe(t,e){let r="",s="",n=!1;for(;e<t.length;e++){if(t[e]===wIe||t[e]===bIe)s===""?s=t[e]:s!==t[e]||(s="");else if(t[e]===">"&&s===""){n=!0;break}r+=t[e]}return s!==""?!1:{value:r,index:e,tagClosed:n}}var xIe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function zJ(t,e){let r=DE(t,xIe),s={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return mt("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",cp(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return mt("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",cp(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return mt("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",cp(r[n]));let i=r[n][2];if(!RIe(i))return mt("InvalidAttr","Attribute '"+i+"' is an invalid name.",cp(r[n]));if(!Object.prototype.hasOwnProperty.call(s,i))s[i]=1;else return mt("InvalidAttr","Attribute '"+i+"' is repeated.",cp(r[n]))}return!0}function NIe(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 SIe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,NIe(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 mt(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function RIe(t){return uu(t)}function TIe(t){return uu(t)}function Er(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function cp(t){return t.startIndex+t[1].length}var VJ={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"},$J={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",thorn:"\xFE",szlig:"\xDF",yuml:"\xFF",Yuml:"\u0178"},YJ={Amacr:"\u0100",amacr:"\u0101",Abreve:"\u0102",abreve:"\u0103",Aogon:"\u0104",aogon:"\u0105",Cacute:"\u0106",cacute:"\u0107",Ccirc:"\u0108",ccirc:"\u0109",Cdot:"\u010A",cdot:"\u010B",Ccaron:"\u010C",ccaron:"\u010D",Dcaron:"\u010E",dcaron:"\u010F",Dstrok:"\u0110",dstrok:"\u0111",Emacr:"\u0112",emacr:"\u0113",Ecaron:"\u011A",ecaron:"\u011B",Edot:"\u0116",edot:"\u0117",Eogon:"\u0118",eogon:"\u0119",Gcirc:"\u011C",gcirc:"\u011D",Gbreve:"\u011E",gbreve:"\u011F",Gdot:"\u0120",gdot:"\u0121",Gcedil:"\u0122",Hcirc:"\u0124",hcirc:"\u0125",Hstrok:"\u0126",hstrok:"\u0127",Itilde:"\u0128",itilde:"\u0129",Imacr:"\u012A",imacr:"\u012B",Iogon:"\u012E",iogon:"\u012F",Idot:"\u0130",IJlig:"\u0132",ijlig:"\u0133",Jcirc:"\u0134",jcirc:"\u0135",Kcedil:"\u0136",kcedil:"\u0137",kgreen:"\u0138",Lacute:"\u0139",lacute:"\u013A",Lcedil:"\u013B",lcedil:"\u013C",Lcaron:"\u0Line truncated
`);let e=new Lr("!xml"),r=e,s="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let n=this.options,i=new Ap(n.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let l=t.charCodeAt(a+1);if(l===47){let u=pu(t,">",a,"Closing Tag is not closed."),A=t.substring(a+2,u).trim();if(n.removeNSPrefix){let p=A.indexOf(":");p!==-1&&(A=A.substr(p+1))}A=LN(n.transformTagName,A,"",n).tagName,r&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(A&&n.unpairedTagsSet.has(A))throw new Error(`Unpaired tag can not be used as closing tag: </${A}>`);d&&n.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),s="",a=u}else if(l===63){let u=MN(t,a,!1,"?>");if(!u)throw new Error("Pi Tag is not closed.");s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let A=this.buildAttributesMap(u.tagExp,this.matcher,u.tagName,!0);if(A){let d=A[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1)}if(!(n.ignoreDeclaration&&u.tagName==="?xml"||n.ignorePiTags)){let d=new Lr(u.tagName);d.add(n.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&n.ignoreAttributes!==!0&&(d[":@"]=A),this.addChild(r,d,this.readonlyMatcher,a)}a=u.closeIndex+1}else if(l===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let u=pu(t,"-->",a+4,"Comment is not closed.");if(n.commentPropName){let A=t.substring(a+4,u-2);s=this.saveTextToParentTag(s,r,this.readonlyMatcher),r.add(n.commentPropName,[{[n.textNodeName]:A}])}a=u}else if(l===33&&t.charCodeAt(a+2)===68){let u=i.readDocType(t,a);this.entityDecoder.addInputEntities(u.entities),a=u.i}else if(l===33&&t.charCodeAt(a+2)===91){let u=pu(t,"]]>",a,"CDATA is not closed.")-2,A=t.substring(a+9,u);s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let d=this.parseTextData(A,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),n.cdataPropName?r.add(n.cdataPropName,[{[n.textNodeName]:A}]):r.add(n.textNodeName,d),a=u+2}else{let u=MN(t,a,n.removeNSPrefix);if(!u){let P=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${P}"`)}let A=u.tagName,d=u.rawTagName,p=u.tagExp,m=u.attrExpPresent,f=u.closeIndex;if({tagName:A,tagExp:p}=LN(n.transformTagName,A,p,n),n.strictReservedNames&&(A===n.commentPropName||A===n.cdataPropName||A===n.textNodeName||A===n.attributesGroupName))throw new Error(`Invalid tag name: ${A}`);r&&s&&r.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher,!1));let y=r;y&&n.unpairedTagsSet.has(y.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let g=!1;p.length>0&&p.lastIndexOf("/")===p.length-1&&(g=!0,A[A.length-1]==="/"?(A=A.substr(0,A.length-1),p=A):p=p.substr(0,p.length-1),m=A!==p);let E=null,C={},B;B=YIe(d),A!==e.tagname&&this.matcher.push(A,{},B),A!==p&&m&&(E=this.buildAttributesMap(p,this.matcher,A),E&&(C=$Ie(E,n))),A!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let x=a;if(this.isCurrentNodeStopNode){let P="";if(g)a=u.closeIndex;else if(n.unpairedTagsSet.has(A))a=u.closeIndex;else{let pe=this.readStopNodeData(t,d,f+1);if(!pe)throw new Error(`Unexpected end of ${d}`);a=pe.i,P=pe.tagContent}let F=new Lr(A);E&&(F[":@"]=E),F.add(n.textNodeName,P),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,F,this.readonlyMatcher,x)}else{if(g){({tagName:A,tagExp:p}=LN(n.transformTagName,A,p,n));let P=new Lr(A);E&&(P[":@"]=E),this.addChild(r,P,this.readonlyMatcher,x),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(n.unpairedTagsSet.has(A)){let P=new Lr(A);E&&(P[":@"]=E),this.addChild(r,P,this.readonlyMatcher,x),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let P=new Lr(A);if(this.tagsNodeStack.length>n.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),E&&(P[":@"]=E),this.addChild(r,P,this.readonlyMatcher,x),r=P}s="",a=f}}}else s+=t[a];return e.child};function ZIe(t,e,r,s){this.options.captureMetaData||(s=void 0);let n=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,n,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,s))}function eBe(t,e,r){let s=this.options.processEntities;if(!s||!s.enabled)return t;if(s.allowedTags){let n=this.options.jPath?r.toString():r;if(!(Array.isArray(s.allowedTags)?s.allowedTags.includes(e):s.allowedTags(e,n)))return t}if(s.tagFilter){let n=this.options.jPath?r.toString():r;if(!s.tagFilter(e,n))return t}return this.entityDecoder.decode(t)}function tBe(t,e,r,s){return t&&(s===void 0&&(s=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,s),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}function rBe(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function sBe(t,e,r=">"){let s=0,n=[],i=t.length,o=Line truncated
`;function GN(t,e){let r="";e.format&&e.indentBy.length>0&&(r=uBe);let s=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let i=0;i<e.stopNodes.length;i++){let o=e.stopNodes[i];typeof o=="string"?s.push(new us(o)):o instanceof us&&s.push(o)}let n=new ti;return u3(t,e,r,n,s)}function u3(t,e,r,s,n){let i="",o=!1;if(e.maxNestedTags&&s.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let a=t.toString();return a=qN(a,e),a}return""}for(let a=0;a<t.length;a++){let c=t[a],l=d3(c);if(l===void 0)continue;let u=ABe(c[":@"],e);s.push(l,u);let A=pBe(s,n);if(l===e.textNodeName){let y=c[l];A||(y=e.tagValueProcessor(l,y),y=qN(y,e)),o&&(i+=r),i+=y,o=!1,s.pop();continue}else if(l===e.cdataPropName){o&&(i+=r);let y=c[l][0][e.textNodeName],g=String(y).replace(/\]\]>/g,"]]]]><![CDATA[>");i+=`<![CDATA[${g}]]>`,o=!1,s.pop();continue}else if(l===e.commentPropName){let y=c[l][0][e.textNodeName],g=String(y).replace(/--/g,"- -").replace(/-$/,"- ");i+=r+`<!--${g}-->`,o=!0,s.pop();continue}else if(l[0]==="?"){let y=l3(c[":@"],e,A),g=l==="?xml"?"":r,E=c[l][0][e.textNodeName];E=E.length!==0?" "+E:"",i+=g+`<${l}${E}${y}?>`,o=!0,s.pop();continue}let d=r;d!==""&&(d+=e.indentBy);let p=l3(c[":@"],e,A),m=r+`<${l}${p}`,f;A?f=A3(c[l],e):f=u3(c[l],e,d,s,n),e.unpairedTags.indexOf(l)!==-1?e.suppressUnpairedNode?i+=m+">":i+=m+"/>":(!f||f.length===0)&&e.suppressEmptyNode?i+=m+"/>":f&&f.endsWith(">")?i+=m+`>${f}${r}</${l}>`:(i+=m+">",f&&r!==""&&(f.includes("/>")||f.includes("</"))?i+=r+e.indentBy+f+r:i+=f,i+=`</${l}>`),o=!0,s.pop()}return i}function ABe(t,e){if(!t||e.ignoreAttributes)return null;let r={},s=!1;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let i=n.startsWith(e.attributeNamePrefix)?n.substr(e.attributeNamePrefix.length):n;r[i]=t[n],s=!0}return s?r:null}function A3(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let s=0;s<t.length;s++){let n=t[s],i=d3(n);if(i===e.textNodeName)r+=n[i];else if(i===e.cdataPropName)r+=n[i][0][e.textNodeName];else if(i===e.commentPropName)r+=n[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let o=dBe(n[":@"],e),a=A3(n[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function dBe(t,e){let r="";if(t&&!e.ignoreAttributes)for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=t[s];n===!0&&e.suppressBooleanAttributes?r+=` ${s.substr(e.attributeNamePrefix.length)}`:r+=` ${s.substr(e.attributeNamePrefix.length)}="${n}"`}return r}function d3(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let s=e[r];if(Object.prototype.hasOwnProperty.call(t,s)&&s!==":@")return s}}function l3(t,e,r){let s="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let i;r?i=t[n]:(i=e.attributeValueProcessor(n,t[n]),i=qN(i,e)),i===!0&&e.suppressBooleanAttributes?s+=` ${n.substr(e.attributeNamePrefix.length)}`:s+=` ${n.substr(e.attributeNamePrefix.length)}="${i}"`}return s}function pBe(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 qN(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let s=e.entities[r];t=t.replace(s.regex,s.val)}return t}function HN(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 mBe={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("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0};function Or(t){if(this.options=Object.assign({},mBe,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){let r=this.options.stopNodes[e];typeof r=="string"?this.stopNodeExpressions.push(new us(r)):r instanceof us&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=HN(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=gBe),this.processTextOrObjNode=hBe,this.options.format?(this.indentate=fBe,this.tagEndChar=`>
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}Lr.prototype.build=function(t){if(this.options.preserveOrder)return p0(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new jn;return this.j2x(t,0,e).val}};Lr.prototype.j2x=function(t,e,r){let s="",n="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let i=this.options.jPath?r.toString():r,o=this.checkStopNode(r);for(let a in t)if(Object.prototype.hasOwnProperty.call(t,a))if(typeof t[a]>"u")this.isAttribute(a)&&(n+="");else if(t[a]===null)this.isAttribute(a)||a===this.options.cdataPropName?n+="":a[0]==="?"?n+=this.indentate(e)+"<"+a+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+a+"/"+this.tagEndChar;else if(t[a]instanceof Date)n+=this.buildTextValNode(t[a],a,"",e,r);else if(typeof t[a]!="object"){let c=this.isAttribute(a);if(c&&!this.ignoreAttributesFn(c,i))s+=this.buildAttrPairStr(c,""+t[a],o);else if(!c)if(a===this.options.textNodeName){let l=this.options.tagValueProcessor(a,""+t[a]);n+=this.replaceEntitiesValue(l)}else{r.push(a);let l=this.checkStopNode(r);if(r.pop(),l){let u=""+t[a];u===""?n+=this.indentate(e)+"<"+a+this.closeTag(a)+this.tagEndChar:n+=this.indentate(e)+"<"+a+">"+u+"</"+a+this.tagEndChar}else n+=this.buildTextValNode(t[a],a,"",e,r)}}else if(Array.isArray(t[a])){let c=t[a].length,l="",u="";for(let A=0;A<c;A++){let d=t[a][A];if(!(typeof d>"u"))if(d===null)a[0]==="?"?n+=this.indentate(e)+"<"+a+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+a+"/"+this.tagEndChar;else if(typeof d=="object")if(this.options.oneListGroup){r.push(a);let p=this.j2x(d,e+1,r);r.pop(),l+=p.val,this.options.attributesGroupName&&d.hasOwnProperty(this.options.attributesGroupName)&&(u+=p.attrStr)}else l+=this.processTextOrObjNode(d,a,e,r);else if(this.options.oneListGroup){let p=this.options.tagValueProcessor(a,d);p=this.replaceEntitiesValue(p),l+=p}else{r.push(a);let p=this.checkStopNode(r);if(r.pop(),p){let m=""+d;m===""?l+=this.indentate(e)+"<"+a+this.closeTag(a)+this.tagEndChar:l+=this.indentate(e)+"<"+a+">"+m+"</"+a+this.tagEndChar}else l+=this.buildTextValNode(d,a,"",e,r)}}this.options.oneListGroup&&(l=this.buildObjectNode(l,a,u,e)),n+=l}else if(this.options.attributesGroupName&&a===this.options.attributesGroupName){let c=Object.keys(t[a]),l=c.length;for(let u=0;u<l;u++)s+=this.buildAttrPairStr(c[u],""+t[a][c[u]],o)}else n+=this.processTextOrObjNode(t[a],a,e,r);return{attrStr:s,val:n}};Lr.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+'="'+e+'"'};function AIe(t,e,r,s){let n=this.extractAttributes(t);if(s.push(e,n),this.checkStopNode(s)){let a=this.buildRawContent(t),c=this.buildAttributesForStopNode(t);return s.pop(),this.buildObjectNode(a,e,c,r)}let o=this.j2x(t,r+1,s);return s.pop(),t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,o.attrStr,r,s):this.buildObjectNode(o.val,e,o.attrStr,r)}Lr.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let s=t[this.options.attributesGroupName];for(let n in s){if(!Object.prototype.hasOwnProperty.call(s,n))continue;let i=n.startsWith(this.options.attributeNamePrefix)?n.substring(this.options.attributeNamePrefix.length):n;e[i]=s[n],r=!0}}else for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=this.isAttribute(s);n&&(e[n]=t[s],r=!0)}return r?e:null};Lr.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.options.attributesGroupName)continue;let s=t[r];if(r===this.options.textNodeName)e+=s;else if(Array.isArray(s)){for(let n of s)if(typeof n=="string"||typeof n=="number")e+=`<${r}>${n}</${r}>`;else if(typeof n=="object"&&n!==null){let i=this.buildRawContent(n),o=this.buildAttributesForStopNode(n);i===""?e+=`<${r}${o}/>`:e+=`<${r}${o}>${i}</${r}>`}}else if(typeof s=="object"&&s!==null){let n=this.buildRawContent(s),i=this.buildAttributesForStopNode(s);n===""?e+=`<${r}${i}/>`:e+=`<${r}${i}>${n}</${r}>`}else e+=`<${r}>${s}</${r}>`}return e};Lr.prototype.buildAttributesForStopNode=function(t){if(!t||typeof t!="object")return"";let e="";if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let r=t[this.options.attributesGroupName];for(let s in r){if(!Object.prototype.hasOwnProperty.call(r,s))continue;let n=s.startsWith(this.options.attributeNamePrefix)?s.substring(this.options.attributeNamePrefix.length): Line truncated
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}Or.prototype.build=function(t){if(this.options.preserveOrder)return GN(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new ti;return this.j2x(t,0,e).val}};Or.prototype.j2x=function(t,e,r){let s="",n="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let i=this.options.jPath?r.toString():r,o=this.checkStopNode(r);for(let a in t)if(Object.prototype.hasOwnProperty.call(t,a))if(typeof t[a]>"u")this.isAttribute(a)&&(n+="");else if(t[a]===null)this.isAttribute(a)||a===this.options.cdataPropName?n+="":a[0]==="?"?n+=this.indentate(e)+"<"+a+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+a+"/"+this.tagEndChar;else if(t[a]instanceof Date)n+=this.buildTextValNode(t[a],a,"",e,r);else if(typeof t[a]!="object"){let c=this.isAttribute(a);if(c&&!this.ignoreAttributesFn(c,i))s+=this.buildAttrPairStr(c,""+t[a],o);else if(!c)if(a===this.options.textNodeName){let l=this.options.tagValueProcessor(a,""+t[a]);n+=this.replaceEntitiesValue(l)}else{r.push(a);let l=this.checkStopNode(r);if(r.pop(),l){let u=""+t[a];u===""?n+=this.indentate(e)+"<"+a+this.closeTag(a)+this.tagEndChar:n+=this.indentate(e)+"<"+a+">"+u+"</"+a+this.tagEndChar}else n+=this.buildTextValNode(t[a],a,"",e,r)}}else if(Array.isArray(t[a])){let c=t[a].length,l="",u="";for(let A=0;A<c;A++){let d=t[a][A];if(!(typeof d>"u"))if(d===null)a[0]==="?"?n+=this.indentate(e)+"<"+a+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+a+"/"+this.tagEndChar;else if(typeof d=="object")if(this.options.oneListGroup){r.push(a);let p=this.j2x(d,e+1,r);r.pop(),l+=p.val,this.options.attributesGroupName&&d.hasOwnProperty(this.options.attributesGroupName)&&(u+=p.attrStr)}else l+=this.processTextOrObjNode(d,a,e,r);else if(this.options.oneListGroup){let p=this.options.tagValueProcessor(a,d);p=this.replaceEntitiesValue(p),l+=p}else{r.push(a);let p=this.checkStopNode(r);if(r.pop(),p){let m=""+d;m===""?l+=this.indentate(e)+"<"+a+this.closeTag(a)+this.tagEndChar:l+=this.indentate(e)+"<"+a+">"+m+"</"+a+this.tagEndChar}else l+=this.buildTextValNode(d,a,"",e,r)}}this.options.oneListGroup&&(l=this.buildObjectNode(l,a,u,e)),n+=l}else if(this.options.attributesGroupName&&a===this.options.attributesGroupName){let c=Object.keys(t[a]),l=c.length;for(let u=0;u<l;u++)s+=this.buildAttrPairStr(c[u],""+t[a][c[u]],o)}else n+=this.processTextOrObjNode(t[a],a,e,r);return{attrStr:s,val:n}};Or.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+'="'+e+'"'};function hBe(t,e,r,s){let n=this.extractAttributes(t);if(s.push(e,n),this.checkStopNode(s)){let a=this.buildRawContent(t),c=this.buildAttributesForStopNode(t);return s.pop(),this.buildObjectNode(a,e,c,r)}let o=this.j2x(t,r+1,s);return s.pop(),t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,o.attrStr,r,s):this.buildObjectNode(o.val,e,o.attrStr,r)}Or.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let s=t[this.options.attributesGroupName];for(let n in s){if(!Object.prototype.hasOwnProperty.call(s,n))continue;let i=n.startsWith(this.options.attributeNamePrefix)?n.substring(this.options.attributeNamePrefix.length):n;e[i]=s[n],r=!0}}else for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=this.isAttribute(s);n&&(e[n]=t[s],r=!0)}return r?e:null};Or.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.options.attributesGroupName)continue;let s=t[r];if(r===this.options.textNodeName)e+=s;else if(Array.isArray(s)){for(let n of s)if(typeof n=="string"||typeof n=="number")e+=`<${r}>${n}</${r}>`;else if(typeof n=="object"&&n!==null){let i=this.buildRawContent(n),o=this.buildAttributesForStopNode(n);i===""?e+=`<${r}${o}/>`:e+=`<${r}${o}>${i}</${r}>`}}else if(typeof s=="object"&&s!==null){let n=this.buildRawContent(s),i=this.buildAttributesForStopNode(s);n===""?e+=`<${r}${i}/>`:e+=`<${r}${i}>${n}</${r}>`}else e+=`<${r}>${s}</${r}>`}return e};Or.prototype.buildAttributesForStopNode=function(t){if(!t||typeof t!="object")return"";let e="";if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let r=t[this.options.attributesGroupName];for(let s in r){if(!Object.prototype.hasOwnProperty.call(r,s))continue;let n=s.startsWith(this.options.attributeNamePrefix)?s.substring(this.options.attributeNamePrefix.length): Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),s=this.factory.computeHMACSHA256(r);return e.headers.set(te.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${s}`),e}getHeaderValueToSign(e,r){let s=e.headers.get(r);return!s||r===te.CONTENT_LENGTH&&s==="0"?"":s}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(n=>n.name.toLowerCase().startsWith(te.PREFIX_FOR_STORAGE));r.sort((n,i)=>SE(n.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((n,i,o)=>!(i>0&&n.name.toLowerCase()===o[i-1].name.toLowerCase()));let s="";return r.forEach(n=>{s+=`${n.name.toLowerCase().trimRight()}:${n.value.trimLeft()}
`}),s}getCanonicalizedResourceString(e){let r=QE(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let n=xE(e.url),i={};if(n){let o=[];for(let a in n)if(Object.prototype.hasOwnProperty.call(n,a)){let c=a.toLowerCase();i[c]=n[a],o.push(c)}o.sort();for(let a of o)s+=`
${a}:${decodeURIComponent(i[a])}`}return s}};var tt=class extends Ka{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new rp(e,r,this)}computeHMACSHA256(e){return(0,RJ.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var St=Yn("storage-common");var Ds;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Ds||(Ds={}));var Jo={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Ds.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},CIe=new is("The operation was aborted."),sp=class extends Kn{retryOptions;constructor(e,r,s=Jo){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:Jo.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):Jo.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:Jo.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:Jo.maxRetryDelayInMs):Jo.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:Jo.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:Jo.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,s){let n=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||s%2===1;i||(n.url=wE(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=$o(n.url,ji.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(St.info(`RetryPolicy: =====> Try=${s} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(n),!this.shouldRetry(i,s,o))return o;r=r||!i&&o.status===404}catch(a){if(St.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,s,o,a))throw a}return await this.delay(i,s,e.abortSignal),this.attemptSendRequest(e,r,++s)}shouldRetry(e,r,s,n){if(r>=this.retryOptions.maxTries)return St.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(n){for(let o of i)if(n.name.toUpperCase().includes(o)||n.message.toUpperCase().includes(o)||n.code&&n.code.toString().toUpperCase()===o)return St.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(s||n){let o=s?s.status:n?n.statusCode:0;if(!e&&o===404)return St.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return St.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(s&&s?.status>=400){let o=s.headers.get(te.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return n?.code==="PARSE_ERROR"&&n?.message.startsWith('Error "Error: Unclosed root tag')?(St.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,s){let n=0;if(e)switch(this.retryOptions.retryPolicyType){case Ds.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Ds.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return St.info(`RetryPolicy: Delay for ${n}ms`),NE(n,s,CIe)}};var np=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new sp(e,r,this.retryOptions)}};var IIe="storageBrowserPolicy";function TJ(){return{name:IIe,async sendRequest(t,e){return xe||((t.method==="GET"||t.method==="HEAD")&&(t.url=$o(t.url,ji.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(te.COOKIE),t.headers.delete(te.CONTENT_LENGTH)),e(t)}}}var BIe="StorageCorrectContentLengthPolicy";function PJ(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(te.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:BIe,async sendRequest(e,r){return t(e),r(e)}}}var bIe="storageRetryPolicy",nu={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Ds.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},wIe=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],QIe=new is("The operation was aborted.");function vJ(t={}){let e=t.retryPolicyType??nu.retryPolicyType,r=t.maxTries??nu.maxTries,s=t.retryDelayInMs??nu.retryDelayInMs,n=t.maxRetryDelayInMs??nu.maxRetryDelayInMs,i=t.secondaryHost??nu.secondaryHost,o=t.tryTimeoutInMs??nu.tryTimeoutInMs;function a({isPrimaryRetry:l,attempt:u,response:A,error:d}){if(u>=r)return St.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let p of wIe)if(d.name.toUpperCase().includes(p)||d.message.toUpperCase().includes(p)||d.code&&d.code.toString().toUpperCase()===p)return St.i Line truncated
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),s=this.factory.computeHMACSHA256(r);return e.headers.set(te.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${s}`),e}getHeaderValueToSign(e,r){let s=e.headers.get(r);return!s||r===te.CONTENT_LENGTH&&s==="0"?"":s}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(n=>n.name.toLowerCase().startsWith(te.PREFIX_FOR_STORAGE));r.sort((n,i)=>jE(n.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((n,i,o)=>!(i>0&&n.name.toLowerCase()===o[i-1].name.toLowerCase()));let s="";return r.forEach(n=>{s+=`${n.name.toLowerCase().trimRight()}:${n.value.trimLeft()}
`}),s}getCanonicalizedResourceString(e){let r=YE(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let n=JE(e.url),i={};if(n){let o=[];for(let a in n)if(Object.prototype.hasOwnProperty.call(n,a)){let c=a.toLowerCase();i[c]=n[a],o.push(c)}o.sort();for(let a of o)s+=`
${a}:${decodeURIComponent(i[a])}`}return s}};var tt=class extends lc{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new fp(e,r,this)}computeHMACSHA256(e){return(0,C3.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Rt=Kn("storage-common");var Ms;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Ms||(Ms={}));var ra={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Ms.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},bBe=new as("The operation was aborted."),gp=class extends ri{retryOptions;constructor(e,r,s=ra){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:ra.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):ra.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:ra.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:ra.maxRetryDelayInMs):ra.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:ra.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:ra.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,s){let n=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||s%2===1;i||(n.url=$E(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=ta(n.url,to.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(Rt.info(`RetryPolicy: =====> Try=${s} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(n),!this.shouldRetry(i,s,o))return o;r=r||!i&&o.status===404}catch(a){if(Rt.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,s,o,a))throw a}return await this.delay(i,s,e.abortSignal),this.attemptSendRequest(e,r,++s)}shouldRetry(e,r,s,n){if(r>=this.retryOptions.maxTries)return Rt.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(n){for(let o of i)if(n.name.toUpperCase().includes(o)||n.message.toUpperCase().includes(o)||n.code&&n.code.toString().toUpperCase()===o)return Rt.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(s||n){let o=s?s.status:n?n.statusCode:0;if(!e&&o===404)return Rt.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return Rt.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(s&&s?.status>=400){let o=s.headers.get(te.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return n?.code==="PARSE_ERROR"&&n?.message.startsWith('Error "Error: Unclosed root tag')?(Rt.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,s){let n=0;if(e)switch(this.retryOptions.retryPolicyType){case Ms.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Ms.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return Rt.info(`RetryPolicy: Delay for ${n}ms`),WE(n,s,bBe)}};var Ep=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new gp(e,r,this.retryOptions)}};var QBe="storageBrowserPolicy";function I3(){return{name:QBe,async sendRequest(t,e){return xe||((t.method==="GET"||t.method==="HEAD")&&(t.url=ta(t.url,to.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(te.COOKIE),t.headers.delete(te.CONTENT_LENGTH)),e(t)}}}var xBe="StorageCorrectContentLengthPolicy";function B3(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(te.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:xBe,async sendRequest(e,r){return t(e),r(e)}}}var NBe="storageRetryPolicy",hu={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Ms.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},SBe=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],RBe=new as("The operation was aborted.");function w3(t={}){let e=t.retryPolicyType??hu.retryPolicyType,r=t.maxTries??hu.maxTries,s=t.retryDelayInMs??hu.retryDelayInMs,n=t.maxRetryDelayInMs??hu.maxRetryDelayInMs,i=t.secondaryHost??hu.secondaryHost,o=t.tryTimeoutInMs??hu.tryTimeoutInMs;function a({isPrimaryRetry:l,attempt:u,response:A,error:d}){if(u>=r)return Rt.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let p of SBe)if(d.name.toUpperCase().includes(p)||d.message.toUpperCase().includes(p)||d.code&&d.code.toString().toUpperCase()===p)return Rt.i Line truncated
`)+`
`+s(i)+n(i),a=(0,kJ.createHmac)("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(te.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===te.CONTENT_LENGTH&&a==="0"?"":a}function s(i){let o=[];for(let[c,l]of i.headers)c.toLowerCase().startsWith(te.PREFIX_FOR_STORAGE)&&o.push({name:c,value:l});o.sort((c,l)=>SE(c.name.toLowerCase(),l.name.toLowerCase())),o=o.filter((c,l,u)=>!(l>0&&c.name.toLowerCase()===u[l-1].name.toLowerCase()));let a="";return o.forEach(c=>{a+=`${c.name.toLowerCase().trimRight()}:${c.value.trimLeft()}
`}),a}function n(i){let o=QE(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=xE(i.url),l={};if(c){let u=[];for(let A in c)if(Object.prototype.hasOwnProperty.call(c,A)){let d=A.toLowerCase();l[d]=c[A],u.push(d)}u.sort();for(let A of u)a+=`
${A}:${decodeURIComponent(l[A])}`}return a}return{name:xIe,async sendRequest(i,o){return e(i),o(i)}}}var NIe="storageRequestFailureDetailsParserPolicy";function DJ(){return{name:NIe,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 _J=require("node:crypto"),RE=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,_J.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var TE="12.31.0",PE="2026-02-06";var vE="https://storage.azure.com/.default",Ki={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var An="",C0="*",SIe=1*1024*1024;var RIe=4*SIe;var LJ="AES256",MJ="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",FJ=["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"],UJ=["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"],OJ="BlobUsesCustomerSpecifiedEncryption",qJ="BlobDoesNotUseCustomerSpecifiedEncryption",GJ=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Xi(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 ip=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function ht(t,e={}){t||(t=new Ye);let r=new ip([],e);return r._credential=t,r}function TIe(t){let e=[PIe,HJ,vIe,kIe,DIe,_Ie,MIe];if(t.factories.length){let r=t.factories.filter(s=>!e.some(n=>n(s)));if(r.length){let s=r.some(n=>LIe(n));return{wrappedPolicies:ZN(r),afterRetry:s}}}}function I0(t){let{httpClient:e,...r}=t.options,s=t._coreHttpClient;s||(s=e?e0(e):E0(),t._coreHttpClient=s);let n=t._corePipeline;if(!n){let i=`azsdk-js-azure-storage-blob/${TE}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;n=qd({...r,loggingOptions:{additionalAllowedHeaderNames:FJ,additionalAllowedQueryParameters:UJ,logger:yE.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:EE,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:f0,serializerOptions:{xml:{xmlCharKey:"#"}}}}),n.removePolicy({phase:"Retry"}),n.removePolicy({name:RN}),n.addPolicy(PJ()),n.addPolicy(vJ(r.retryOptions),{phase:"Retry"}),n.addPolicy(DJ()),n.addPolicy(TJ());let a=TIe(t);a&&n.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=B0(t);os(c)?n.addPolicy(Kl({credential:c,scopes:r.audience??vE,challengeCallba Line truncated
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new fn(t.version,i,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:n}}function Pbe(t,e){if(t=oc(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",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=mi.parse(t.permissions.toString()).toString():n=hi.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Ne(t.startsOn,!1):"",t.expiresOn?Ne(t.expiresOn,!1):"",ic(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?hn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,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 fn(t.version,o,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:i}}function vbe(t,e){if(t=oc(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",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=mi.parse(t.permissions.toString()).toString():n=hi.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Ne(t.startsOn,!1):"",t.expiresOn?Ne(t.expiresOn,!1):"",ic(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?hn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,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 fn(t.version,o,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,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}function kbe(t,e){if(t=oc(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",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=mi.parse(t.permissions.toString()).toString():n=hi.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Ne(t.startsOn,!1):"",t.expiresOn?Ne(t.expiresOn,!1):"",ic(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ne(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ne(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?hn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new fn(t.version,o,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,e.userDelegationKey),stringToSign:i}}function Dbe(t,e){if(t=oc(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",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=mi.parse(t.permissions.toString()).toString():n=hi.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Ne(t.startsOn,!1):"",t.expiresOn?Ne(t.expiresOn,!1):"",ic(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ne(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ne(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?hn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new fn(t.version,o,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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}function _be(t,e){if(t=oc(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",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=mi.parse(t.permissions.toString()).toString():n=hi.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Ne(t.startsOn,!1):"",t.expiresOn?Ne(t.expiresOn,!1):"",ic(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ne(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ne(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?hn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new fn(t.version,o,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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}function Lbe(t,e){if(t=oc(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",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=mi.parse(t.permissions.toString()).toString():n=hi.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Ne(t.startsOn,!1):"",t.expiresOn?Ne(t.expiresOn,!1):"",ic(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ne(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ne(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?hn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new fn(t.version,o,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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}function ic(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}function oc(t){let e=t.version?t.version:PE;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 gp=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let s=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=s.container):(this._isContainer=!1,this._containerOrBlobOperation=s.blob),r||(r=Wl()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==An||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==An||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return z.withSpan("BlobLeaseClient-acquireLease",r,async s=>J(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:s.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==An||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==An||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return z.withSpan("BlobLeaseClient-changeLease",r,async s=>{let n=J(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:s.tracingOptions}));return this._leaseId=e,n})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==An||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==An||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return z.withSpan("BlobLeaseClient-releaseLease",e,async r=>J(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==An||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==An||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return z.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortSign Line truncated
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};fu.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var uc=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
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"}};uc.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var Np=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var Ywe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{l(s.next(u))}catch(A){o(A)}}function c(u){try{l(s.throw(u))}catch(A){o(A)}}function l(u){u.done?i(u.value):n(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},AP=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),s=Date.now()-this.startTime,n=(e/(1024*1024)/(s/1e3)).toFixed(1);N(`Sent ${e} of ${this.contentLength} (${r}%), ${n} 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 Y4(t,e,r){return Ywe(this,void 0,void 0,function*(){var s;let n=new io(t),i=n.getBlockBlobClient(),o=new AP((s=r?.archiveSizeBytes)!==null&&s!==void 0?s:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),I(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new Ly(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw Ke(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}var J4=b(require("buffer"),1),fi=b(require("fs"),1),W4=b(require("stream"),1),j4=b(require("util"),1);var My=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{l(s.next(u))}catch(A){o(A)}}function c(u){try{l(s.throw(u))}catch(A){o(A)}}function l(u){u.done?i(u.value):n(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};function Fy(t){return t?t>=200&&t<300:!1}function $we(t){return t?t>=500:!0}function Jwe(t){return t?[et.BadGateway,et.ServiceUnavailable,et.GatewayTimeout].includes(t):!1}function Wwe(t){return My(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function $4(t,e,r){return My(this,arguments,void 0,function*(s,n,i,o=dg,a=pg,c=void 0){let l="",u=1;for(;u<=o;){let A,d,p=!1;try{A=yield n()}catch(m){c&&(A=c(m)),p=!0,l=m.message}if(A&&(d=i(A),!$we(d)))return A;if(d&&(p=Jwe(d),l=`Cache service responded with ${d}`),I(`${s} - Attempt ${u} of ${o} failed with error: ${l}`),!p){I(`${s} - Error is not retryable`);break}yield Wwe(a),u++}throw Error(`${s} failed: ${l}`)})}function Sp(t,e){return My(this,arguments,void 0,function*(r,s,n=dg,i=pg){return yield $4(r,s,o=>o.statusCode,n,i,o=>{if(o instanceof Mn)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function gu(t,e){return My(this,arguments,void 0,function*(r,s,n=dg,i=pg){return yield $4(r,s,o=>o.message.statusCode,n,i)})}var Us=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{l(s.next(u))}catch(A){o(A)}}function c(u){try{l(s.throw(u))}catch(A){o(A)}}function l(u){u.done?i(u.value):n(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};function jwe(t,e){return Us(this,void 0,void 0,function*(){yield j4.promisify(W4.pipeline)(t.message,e)})}var Uy=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,I(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),s=Date.now()-this.startTime,n=(e/(1024*1024)/(s/1e3)).toFixed(1);N(`Received ${e} of ${this.contentLength} (${r}%), ${n} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])I(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function hP(t,e,r){return Fr(this,void 0,void 0,function*(){let s=new oW.URL(t),n=eW(r);s.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield X4(t,e,n):n.concurrentBlobDownloads?yield K4(t,e,n):yield Oy(t,e):yield Oy(t,e)})}function cW(t,e,r){return Fr(this,void 0,void 0,function*(){let s=mP(),n=ql(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:n,cacheSize:r?.cacheSize};return yield Sp("reserveCache",()=>Fr(this,void 0,void 0,function*(){return s.postJson(Tp("caches"),i)}))})}function iW(t,e){return`bytes ${t}-${e}/*`}function nQe(t,e,r,s,n){return Fr(this,void 0,void 0,function*(){I(`Uploading chunk of size ${n-s+1} bytes at offset ${s} with content range: ${iW(s,n)}`);let i={"Content-Type":"application/octet-stream","Content-Range":iW(s,n)},o=yield gu(`uploadChunk (start: ${s}, end: ${n})`,()=>Fr(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!Fy(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function iQe(t,e,r,s){return Fr(this,void 0,void 0,function*(){let n=Hn(r),i=Tp(`caches/${e.toString()}`),o=Eu.openSync(r,"r"),a=dP(s),c=Yx("uploadConcurrency",a.uploadConcurrency),l=Yx("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];I("Awaiting all uploads");let A=0;try{yield Promise.all(u.map(()=>Fr(this,void 0,void 0,function*(){for(;A<n;){let d=Math.min(n-A,l),p=A,m=A+d-1;A+=l,yield nQe(t,i,()=>Eu.createReadStream(r,{fd:o,start:p,end:m,autoClose:!1}).on("error",f=>{throw new Error(`Cache upload failed because file read failed with ${f.message}`)}),p,m)}})))}finally{Eu.closeSync(o)}})}function oQe(t,e,r){return Fr(this,void 0,void 0,function*(){let s={size:r};return yield Sp("commitCache",()=>Fr(this,void 0,void 0,function*(){return t.postJson(Tp(`caches/${e.toString()}`),s)}))})}function fP(t,e,r,s){return Fr(this,void 0,void 0,function*(){if(dP(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield Y4(r,e,s)}else{let i=mP();I("Upload cache"),yield iQe(i,t,e,s),I("Commiting cache");let o=Hn(e);N(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield oQe(i,t,o);if(!Fy(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);N("Cache saved successfully")}})}var r8=b(WW(),1),Et=b(gt(),1),As=b(gt(),1),hc=b(gt(),1),fc=b(gt(),1),gc=b(gt(),1);var uv=b(gt(),1),Av=b(gt(),1),ZW=b(gt(),1),e8=b(gt(),1),t8=b(gt(),1);var av=b(gt(),1),cv=b(gt(),1),jW=b(gt(),1),KW=b(gt(),1),XW=b(gt(),1),lv=class extends XW.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,KW.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,jW.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??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 l=s.readUnknownField;if(l==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);l!==!1&&(l===!0?cv.UnknownFieldHandler.onRead:l)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,av.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,av.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?cv.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},NC=new lv;var dv=class extends t8.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:()=>NC}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,e8.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,ZW.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(NC.internalBinaryRead(e,e.uint32(),s));break;default:let l=s.readUnknownField;if(l==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);l!==!1&&(l===!0?Av.UnknownFieldHandler.onRead:l)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1,uv.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)NC.internalBinaryWrite(e.scope[i],r.tag(2,uv.WireType.LengthDelimited).fork(),s).join();let n=s.writeUnknownFields;return n!==!1&&(n==!0?Av.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},Ii=new dv Line truncated
`));let s=yield Nv(r,"create");yield Sv(s,t)})}var _u=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{l(s.next(u))}catch(A){o(A)}}function c(u){try{l(s.throw(u))}catch(A){o(A)}}function l(u){u.done?i(u.value):n(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},yn=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Du=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},PC=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function o8(t){if(!t||t.length===0)throw new yn("Path Validation Error: At least one directory or file path is required")}function Pv(t){if(t.length>512)throw new yn(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new yn(`Key Validation Error: ${t} cannot contain commas.`)}function vv(){return Rp()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function a8(t,e,r,s){return _u(this,arguments,void 0,function*(n,i,o,a,c=!1){let l=Rp();return I(`Cache service version: ${l}`),o8(n),l==="v2"?yield INe(n,i,o,a,c):yield CNe(n,i,o,a,c)})}function CNe(t,e,r,s){return _u(this,arguments,void 0,function*(n,i,o,a,c=!1){o=o||[];let l=[i,...o];if(I("Resolved Keys:"),I(JSON.stringify(l)),l.length>10)throw new yn("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of l)Pv(d);let u=yield Rd(),A="";try{let d=yield aW(l,n,{compressionMethod:u,enableCrossOsArchive:c});if(!d?.archiveLocation)return;if(a?.lookupOnly)return N("Lookup only - skipping download"),d.cacheKey;A=Yp.join(yield Nd(),qo(u)),I(`Archive Path: ${A}`),yield hP(d.archiveLocation,A,a),Un()&&(yield Vp(A,u));let p=Hn(A);return N(`Cache Size: ~${Math.round(p/(1024*1024))} MB (${p} B)`),yield Rv(A,u),N("Cache restored successfully"),d.cacheKey}catch(d){let p=d;if(p.name===yn.name)throw d;p instanceof Mn&&typeof p.statusCode=="number"&&p.statusCode>=500?Tl(`Failed to restore: ${d.message}`):Ke(`Failed to restore: ${d.message}`)}finally{try{yield Sd(A)}catch(d){I(`Failed to delete archive: ${d}`)}}})}function INe(t,e,r,s){return _u(this,arguments,void 0,function*(n,i,o,a,c=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let l=[i,...o];if(I("Resolved Keys:"),I(JSON.stringify(l)),l.length>10)throw new yn("Key Validation Error: Keys are limited to a maximum of 10.");for(let A of l)Pv(A);let u="";try{let A=xv(),d=yield Rd(),p={key:i,restoreKeys:o,version:ql(n,d,c)},m=yield A.GetCacheEntryDownloadURL(p);if(!m.ok){I(`Cache not found for version ${p.version} of keys: ${l.join(", ")}`);return}if(p.key!==m.matchedKey?N(`Cache hit for restore-key: ${m.matchedKey}`):N(`Cache hit for: ${m.matchedKey}`),a?.lookupOnly)return N("Lookup only - skipping download"),m.matchedKey;u=Yp.join(yield Nd(),qo(d)),I(`Archive path: ${u}`),I(`Starting download of archive to: ${u}`),yield hP(m.signedDownloadUrl,u,a);let y=Hn(u);return N(`Cache Size: ~${Math.round(y/(1024*1024))} MB (${y} B)`),Un()&&(yield Vp(u,d)),yield Rv(u,d),N("Cache restored successfully"),m.matchedKey}catch(A){let d=A;if(d.name===yn.name)throw A;d instanceof Mn&&typeof d.statusCode=="number"&&d.statusCode>=500?Tl(`Failed to restore: ${A.message}`):Ke(`Failed to restore: ${A.message}`)}finally{try{u&&(yield Sd(u))}catch(A){I(`Failed to delete archive: ${A}`)}}})}function kv(t,e,r){return _u(this,arguments,void 0,function*(s,n,i,o=!1){let a=Rp();return I(`Cache service version: ${a}`),o8(s),Pv(n),a==="v2"?yield bNe(s,n,i,o):yield BNe(s,n,i,o)})}function BNe(t,e,r){return _u(this,arguments,void 0,function*(s,n,i,o=!1){var a,c,l,u,A;let d=yield Rd(),p=-1,m=yield Vx(s);if(I("Cache Paths:"),I(`${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 f=yield Nd(),y=Yp.join(f,qo(d));I(`Archive Path: ${y}`);try{yield Tv(f,m,d),Un()&&(yield Vp(y,d));let g=10*1024*1024*1024,E=Hn(y);if(I(`File Size: ${E}`),E>g&&!pP())throw new Error(`Cache size of ~${Math.round(E/(1024*1024))} MB (${E} B) is over the 10GB limit, not saving cache.`);I("Reserving Cache");let C=yield cW(n,s,{compressionMethod:d,enableCrossOsArchive:o,cacheSize:E});if(!((a=C?.result)===null||a===void 0)&&a.cacheId)p=(c=C?.result)===null||c===void 0?void 0:c.cacheId;else throw C?.statusCode===400?new Error((u=(l=C?.error)===null||l===void 0?void 0:l.message)!==null&&u!==void 0?u:`Cache size of ~${Math.round(E/(1024*1024))} MB (${E} B) is over the data cap limit, not saving cache.`):new Du(`Unable to reserve cache with key ${n}, another job may be creating this cache. More details: ${(A=C?.error)===null||A===void 0?void 0:A.message}`);I(`Saving Cache (ID: ${p})`),yield fP(p,y,"",i)}catch(g){let E=g;if(E.name===yn.name)throw g;E.name===Du.name?N(`FaLine truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var QTe=class extends Error{constructor(t,e,r){super(wTe(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},xTe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],NTe=["query","method","url"],a9=/\/api\/v3\/?$/;function STe(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(NTe.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let s=typeof e=="string"?Object.assign({query:e},r):e,n=Object.keys(s).reduce((o,a)=>xTe.includes(a)?(o[a]=s[a],o):(o.variables||(o.variables={}),o.variables[a]=s[a],o),{}),i=s.baseUrl||t.endpoint.DEFAULTS.baseUrl;return a9.test(i)&&(n.url=i.replace(a9,"/api/graphql")),t(n).then(o=>{if(o.data.errors){let a={};for(let c of Object.keys(o.headers))a[c]=o.headers[c];throw new QTe(n,a,o.data)}return o.data.data})}function qk(t,e){let r=t.defaults(e);return Object.assign((n,i)=>STe(r,n,i),{defaults:qk.bind(null,r),endpoint:r.endpoint})}var e6e=qk(um,{headers:{"user-agent":`octokit-graphql.js/${bTe} ${ia()}`},method:"POST",url:"/graphql"});function c9(t){return qk(t,{method:"POST",url:"/graphql"})}var Gk="(?:[a-zA-Z0-9_-]+)",l9="\\.",u9=new RegExp(`^${Gk}${l9}${Gk}${l9}${Gk}$`),RTe=u9.test.bind(u9);async function TTe(t){let e=RTe(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),s=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":s?"user-to-server":"oauth"}}function PTe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function vTe(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=PTe(t),e(n)}var A9=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(TTe.bind(null,e),{hook:vTe.bind(null,e)})};var Hk="7.0.6";var d9=()=>{},kTe=console.warn.bind(console),DTe=console.error.bind(console);function _Te(t={}){return typeof t.debug!="function"&&(t.debug=d9),typeof t.info!="function"&&(t.info=d9),typeof t.warn!="function"&&(t.warn=kTe),typeof t.error!="function"&&(t.error=DTe),t}var p9=`octokit-core.js/${Hk} ${ia()}`,RI=class{static VERSION=Hk;static defaults(e){return class extends this{constructor(...s){let n=s[0]||{};if(typeof e=="function"){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(n=>!r.includes(n)))}}constructor(e={}){let r=new Gj.Collection,s={baseUrl:um.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(s.headers["user-agent"]=e.userAgent?`${e.userAgent} ${p9}`:p9,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=um.defaults(s),this.graphql=c9(this.request).defaults(s),this.log=_Te(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=A9(e.auth);r.wrap("request",i.hook),this.auth=i}let n=this.constructor;for(let i=0;i<n.plugins.length;++i)Object.assign(this,n.plugins[i](this,e))}request;graphql;log;hook;auth};var zk="17.0.0";var LTe={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{or Line truncated
`,o).length:A,l?(a===null?0:a.length)+c.length:0,l?c.length+A:0);return d<p},parse:function(s,n,i,o){let{bom:a,comment_no_infix:c,encoding:l,from_line:u,ltrim:A,max_record_size:d,raw:p,relax_quotes:m,rtrim:f,skip_empty_lines:y,to:g,to_line:E}=this.options,{comment:C,escape:B,quote:x,record_delimiter:k}=this.options,{bomSkipped:O,previousBuf:de,rawBuffer:be,escapeIsQuote:Se}=this.state,V;if(de===void 0)if(s===void 0){o();return}else V=s;else de!==void 0&&s===void 0?V=de:V=Buffer.concat([de,s]);if(O===!1)if(a===!1)this.state.bomSkipped=!0;else if(V.length<3){if(n===!1){this.state.previousBuf=V;return}}else{for(let Ee in Ku)if(Ku[Ee].compare(V,0,Ku[Ee].length)===0){let Ct=Ku[Ee].length;this.state.bufBytesStart+=Ct,V=V.slice(Ct);let je=Zk({...this.original_options,encoding:Ee});for(let lt in je)this.options[lt]=je[lt];({comment:C,escape:B,quote:x}=this.options);break}this.state.bomSkipped=!0}let se=V.length,q;for(q=0;q<se&&!this.__needMoreData(q,se,n);q++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),E!==-1&&this.info.lines>E){this.state.stop=!0,o();return}this.state.quoting===!1&&k.length===0&&this.__autoDiscoverRecordDelimiter(V,q)&&(k=this.options.record_delimiter);let Ee=V[q];if(p===!0&&be.append(Ee),(Ee===jTe||Ee===KTe)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(B!==null&&this.state.quoting===!0&&this.__isEscape(V,q,Ee)&&q+B.length<se)if(Se){if(this.__isQuote(V,q+B.length)){this.state.escaping=!0,q+=B.length-1;continue}}else{this.state.escaping=!0,q+=B.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(V,q))if(this.state.quoting===!0){let lt=V[q+x.length],Si=f&&this.__isCharTrimable(V,q+x.length),Hr=C!==null&&this.__compareBytes(C,V,q+x.length,lt),bn=this.__isDelimiter(V,q+x.length,lt),oa=k.length===0?this.__autoDiscoverRecordDelimiter(V,q+x.length):this.__isRecordDelimiter(lt,V,q+x.length);if(B!==null&&this.__isEscape(V,q,Ee)&&this.__isQuote(V,q+B.length))q+=B.length-1;else if(!lt||bn||oa||Hr||Si){this.state.quoting=!1,this.state.wasQuoting=!0,q+=x.length-1;continue}else if(m===!1){let Tc=this.__error(new Be("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(lt)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(Tc!==void 0)return Tc}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(x),q+=x.length-1}else if(this.state.field.length!==0){if(m===!1){let lt=this.__infoField(),Si=Object.keys(Ku).map(bn=>Ku[bn].equals(this.state.field.toString())?bn:!1).filter(Boolean)[0],Hr=this.__error(new Be("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(lt.column)} at line ${lt.lines}, value is ${JSON.stringify(this.state.field.toString(l))}`,Si?`(${Si} bom)`:void 0],this.options,lt,{field:this.state.field}));if(Hr!==void 0)return Hr}}else{this.state.quoting=!0,q+=x.length-1;continue}if(this.state.quoting===!1){let lt=this.__isRecordDelimiter(Ee,V,q);if(lt!==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)>=u){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),q+=lt-1;continue}if(y===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,q+=lt-1;continue}this.info.bytes=this.state.bufBytesStart+q;let bn=this.__onField();if(bn!==void 0)return bn;this.info.bytes=this.state.bufBytesStart+q+lt;let oa=this.__onRecord(i);if(oa!==void 0)return oa;if(g!==-1&&this.info.records>=g){this.state.stop=!0,o();return}}this.state.commenting=!1,q+=lt-1;continue}if(this.state.commenting)continue;if(C!==null&&(c===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(C,V,q,Ee)!==0){this.state.commenting=!0;continue}let Si=this.__isDelimiter(V,q,Ee);if(Si!==0){this.info.bytes=this.state.bufBytesStart+q;let Hr=this.__onField();if(Hr!==void 0)return Hr;q+=Si-1;continue}}}if(this.state.commenting===!1&&d!==0&&this.state.record_length+this.state.field.length>d)return this.__error(new Be("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${d}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let Ct=A===!1||this.state.quoting===!0||this.state.field.length!==0||!this.__isCharTrimable(V,q),je=f===!1||this.state.wasQuoting===!1;if(Ct===!0&&je===!0)this.state.field.append(Ee);else{if(f===!0&&!this.__isCharTrimable(V,q))return this.__error(new Be("CSV_NON_TRIMABLE_CHAR_AFTER_CLOSING_QUOTE",["Invalid Closing Quote:","found non trimable byte after quote",`at line ${this.info.lines}`],this.options,this.__infoField()));Ct===!1&&(q+=this.__isCharTrimable(V,q)-1);continue}}if(n===!0 Line truncated
`+s(i)+n(i),a=(0,b3.createHmac)("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(te.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===te.CONTENT_LENGTH&&a==="0"?"":a}function s(i){let o=[];for(let[c,l]of i.headers)c.toLowerCase().startsWith(te.PREFIX_FOR_STORAGE)&&o.push({name:c,value:l});o.sort((c,l)=>jE(c.name.toLowerCase(),l.name.toLowerCase())),o=o.filter((c,l,u)=>!(l>0&&c.name.toLowerCase()===u[l-1].name.toLowerCase()));let a="";return o.forEach(c=>{a+=`${c.name.toLowerCase().trimRight()}:${c.value.trimLeft()}
`}),a}function n(i){let o=YE(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=JE(i.url),l={};if(c){let u=[];for(let A in c)if(Object.prototype.hasOwnProperty.call(c,A)){let d=A.toLowerCase();l[d]=c[A],u.push(d)}u.sort();for(let A of u)a+=`
${A}:${decodeURIComponent(l[A])}`}return a}return{name:TBe,async sendRequest(i,o){return e(i),o(i)}}}var vBe="storageRequestFailureDetailsParserPolicy";function Q3(){return{name:vBe,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 x3=require("node:crypto"),KE=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,x3.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var XE="12.31.0",ZE="2026-02-06";var ey="https://storage.azure.com/.default",ro={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var gn="",WN="*",PBe=1*1024*1024;var kBe=4*PBe;var N3="AES256",S3="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",R3=["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"],T3=["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"],v3="BlobUsesCustomerSpecifiedEncryption",P3="BlobDoesNotUseCustomerSpecifiedEncryption",k3=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function so(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 yp=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function ht(t,e={}){t||(t=new Ye);let r=new yp([],e);return r._credential=t,r}function DBe(t){let e=[_Be,D3,LBe,MBe,OBe,FBe,qBe];if(t.factories.length){let r=t.factories.filter(s=>!e.some(n=>n(s)));if(r.length){let s=r.some(n=>UBe(n));return{wrappedPolicies:SN(r),afterRetry:s}}}}function jN(t){let{httpClient:e,...r}=t.options,s=t._coreHttpClient;s||(s=e?RN(e):YN(),t._coreHttpClient=s);let n=t._corePipeline;if(!n){let i=`azsdk-js-azure-storage-blob/${XE}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;n=tp({...r,loggingOptions:{additionalAllowedHeaderNames:R3,additionalAllowedQueryParameters:T3,logger:qE.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:UE,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:VN,serializerOptions:{xml:{xmlCharKey:"#"}}}}),n.removePolicy({phase:"Retry"}),n.removePolicy({name:nN}),n.addPolicy(B3()),n.addPolicy(w3(r.retryOptions),{phase:"Retry"}),n.addPolicy(Q3()),n.addPolicy(I3());let a=DBe(t);a&&n.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=KN(t);cs(c)?n.addPolicy(cu({credential:c,scopes:r.audience??ey,challengeCallba Line truncated
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new Bn(t.version,i,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:n}}function _be(t,e){if(t=Ec(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",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=yi.parse(t.permissions.toString()).toString():n=Ci.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Ne(t.startsOn,!1):"",t.expiresOn?Ne(t.expiresOn,!1):"",gc(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?In(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,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 Bn(t.version,o,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:i}}function Lbe(t,e){if(t=Ec(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",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=yi.parse(t.permissions.toString()).toString():n=Ci.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Ne(t.startsOn,!1):"",t.expiresOn?Ne(t.expiresOn,!1):"",gc(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?In(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,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 Bn(t.version,o,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,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}function Mbe(t,e){if(t=Ec(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",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=yi.parse(t.permissions.toString()).toString():n=Ci.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Ne(t.startsOn,!1):"",t.expiresOn?Ne(t.expiresOn,!1):"",gc(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ne(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ne(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?In(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Bn(t.version,o,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,e.userDelegationKey),stringToSign:i}}function Obe(t,e){if(t=Ec(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",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=yi.parse(t.permissions.toString()).toString():n=Ci.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Ne(t.startsOn,!1):"",t.expiresOn?Ne(t.expiresOn,!1):"",gc(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ne(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ne(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?In(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Bn(t.version,o,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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}function Fbe(t,e){if(t=Ec(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",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=yi.parse(t.permissions.toString()).toString():n=Ci.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Ne(t.startsOn,!1):"",t.expiresOn?Ne(t.expiresOn,!1):"",gc(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ne(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ne(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?In(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Bn(t.version,o,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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}function Ube(t,e){if(t=Ec(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",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=yi.parse(t.permissions.toString()).toString():n=Ci.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Ne(t.startsOn,!1):"",t.expiresOn?Ne(t.expiresOn,!1):"",gc(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ne(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ne(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?In(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Bn(t.version,o,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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}function gc(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}function Ec(t){let e=t.version?t.version:ZE;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 vp=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let s=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=s.container):(this._isContainer=!1,this._containerOrBlobOperation=s.blob),r||(r=ou()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==gn||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==gn||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 H.withSpan("BlobLeaseClient-acquireLease",r,async s=>Y(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:s.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==gn||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==gn||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 H.withSpan("BlobLeaseClient-changeLease",r,async s=>{let n=Y(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:s.tracingOptions}));return this._leaseId=e,n})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==gn||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==gn||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return H.withSpan("BlobLeaseClient-releaseLease",e,async r=>Y(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==gn||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==gn||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return H.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortSign Line truncated
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};Nu.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Bc=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
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"}};Bc.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var qp=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var jQe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{l(s.next(u))}catch(A){o(A)}}function c(u){try{l(s.throw(u))}catch(A){o(A)}}function l(u){u.done?i(u.value):n(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},Uv=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),s=Date.now()-this.startTime,n=(e/(1024*1024)/(s/1e3)).toFixed(1);ke(`Sent ${e} of ${this.contentLength} (${r}%), ${n} 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 MW(t,e,r){return jQe(this,void 0,void 0,function*(){var s;let n=new uo(t),i=n.getBlockBlobClient(),o=new Uv((s=r?.archiveSizeBytes)!==null&&s!==void 0?s:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),w(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new nC(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw un(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}var FW=I(require("buffer"),1),Ii=I(require("fs"),1),UW=I(require("stream"),1),qW=I(require("util"),1);var iC=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{l(s.next(u))}catch(A){o(A)}}function c(u){try{l(s.throw(u))}catch(A){o(A)}}function l(u){u.done?i(u.value):n(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};function oC(t){return t?t>=200&&t<300:!1}function KQe(t){return t?t>=500:!0}function XQe(t){return t?[et.BadGateway,et.ServiceUnavailable,et.GatewayTimeout].includes(t):!1}function ZQe(t){return iC(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function OW(t,e,r){return iC(this,arguments,void 0,function*(s,n,i,o=Dg,a=_g,c=void 0){let l="",u=1;for(;u<=o;){let A,d,p=!1;try{A=yield n()}catch(m){c&&(A=c(m)),p=!0,l=m.message}if(A&&(d=i(A),!KQe(d)))return A;if(d&&(p=XQe(d),l=`Cache service responded with ${d}`),w(`${s} - Attempt ${u} of ${o} failed with error: ${l}`),!p){w(`${s} - Error is not retryable`);break}yield ZQe(a),u++}throw Error(`${s} failed: ${l}`)})}function Gp(t,e){return iC(this,arguments,void 0,function*(r,s,n=Dg,i=_g){return yield OW(r,s,o=>o.statusCode,n,i,o=>{if(o instanceof qn)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function Su(t,e){return iC(this,arguments,void 0,function*(r,s,n=Dg,i=_g){return yield OW(r,s,o=>o.message.statusCode,n,i)})}var Gs=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{l(s.next(u))}catch(A){o(A)}}function c(u){try{l(s.throw(u))}catch(A){o(A)}}function l(u){u.done?i(u.value):n(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};function exe(t,e){return Gs(this,void 0,void 0,function*(){yield qW.promisify(UW.pipeline)(t.message,e)})}var aC=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,w(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),s=Date.now()-this.startTime,n=(e/(1024*1024)/(s/1e3)).toFixed(1);ke(`Received ${e} of ${this.contentLength} (${r}%), ${n} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){le Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])w(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function zv(t,e,r){return Ur(this,void 0,void 0,function*(){let s=new KW.URL(t),n=VW(r);s.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield HW(t,e,n):n.concurrentBlobDownloads?yield GW(t,e,n):yield cC(t,e):yield cC(t,e)})}function ZW(t,e,r){return Ur(this,void 0,void 0,function*(){let s=Hv(),n=Xl(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:n,cacheSize:r?.cacheSize};return yield Gp("reserveCache",()=>Ur(this,void 0,void 0,function*(){return s.postJson(zp("caches"),i)}))})}function jW(t,e){return`bytes ${t}-${e}/*`}function cxe(t,e,r,s,n){return Ur(this,void 0,void 0,function*(){w(`Uploading chunk of size ${n-s+1} bytes at offset ${s} with content range: ${jW(s,n)}`);let i={"Content-Type":"application/octet-stream","Content-Range":jW(s,n)},o=yield Su(`uploadChunk (start: ${s}, end: ${n})`,()=>Ur(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!oC(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function lxe(t,e,r,s){return Ur(this,void 0,void 0,function*(){let n=Jn(r),i=zp(`caches/${e.toString()}`),o=Ru.openSync(r,"r"),a=qv(s),c=I0("uploadConcurrency",a.uploadConcurrency),l=I0("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];w("Awaiting all uploads");let A=0;try{yield Promise.all(u.map(()=>Ur(this,void 0,void 0,function*(){for(;A<n;){let d=Math.min(n-A,l),p=A,m=A+d-1;A+=l,yield cxe(t,i,()=>Ru.createReadStream(r,{fd:o,start:p,end:m,autoClose:!1}).on("error",f=>{throw new Error(`Cache upload failed because file read failed with ${f.message}`)}),p,m)}})))}finally{Ru.closeSync(o)}})}function uxe(t,e,r){return Ur(this,void 0,void 0,function*(){let s={size:r};return yield Gp("commitCache",()=>Ur(this,void 0,void 0,function*(){return t.postJson(zp(`caches/${e.toString()}`),s)}))})}function Vv(t,e,r,s){return Ur(this,void 0,void 0,function*(){if(qv(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield MW(r,e,s)}else{let i=Hv();w("Upload cache"),yield lxe(i,t,e,s),w("Commiting cache");let o=Jn(e);ke(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield uxe(i,t,o);if(!oC(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);ke("Cache saved successfully")}})}var Y8=I(U8(),1),Et=I(gt(),1),ps=I(gt(),1),Nc=I(gt(),1),Sc=I(gt(),1),Rc=I(gt(),1);var FP=I(gt(),1),UP=I(gt(),1),z8=I(gt(),1),V8=I(gt(),1),$8=I(gt(),1);var LP=I(gt(),1),MP=I(gt(),1),q8=I(gt(),1),G8=I(gt(),1),H8=I(gt(),1),OP=class extends H8.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,G8.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,q8.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??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 l=s.readUnknownField;if(l==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);l!==!1&&(l===!0?MP.UnknownFieldHandler.onRead:l)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,LP.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,LP.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?MP.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},WC=new OP;var qP=class extends $8.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:()=>WC}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,V8.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,z8.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(WC.internalBinaryRead(e,e.uint32(),s));break;default:let l=s.readUnknownField;if(l==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);l!==!1&&(l===!0?UP.UnknownFieldHandler.onRead:l)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1,FP.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)WC.internalBinaryWrite(e.scope[i],r.tag(2,FP.WireType.LengthDelimited).fork(),s).join();let n=s.writeUnknownFields;return n!==!1&&(n==!0?UP.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},xi=new Line truncated
`));let s=yield rk(r,"create");yield sk(s,t)})}var $u=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{l(s.next(u))}catch(A){o(A)}}function c(u){try{l(s.throw(u))}catch(A){o(A)}}function l(u){u.done?i(u.value):n(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},Qn=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Vu=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},ZC=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function K8(t){if(!t||t.length===0)throw new Qn("Path Validation Error: At least one directory or file path is required")}function ok(t){if(t.length>512)throw new Qn(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Qn(`Key Validation Error: ${t} cannot contain commas.`)}function ak(){return Hp()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function X8(t,e,r,s){return $u(this,arguments,void 0,function*(n,i,o,a,c=!1){let l=Hp();return w(`Cache service version: ${l}`),K8(n),l==="v2"?yield QNe(n,i,o,a,c):yield bNe(n,i,o,a,c)})}function bNe(t,e,r,s){return $u(this,arguments,void 0,function*(n,i,o,a,c=!1){o=o||[];let l=[i,...o];if(w("Resolved Keys:"),w(JSON.stringify(l)),l.length>10)throw new Qn("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of l)ok(d);let u=yield Hd(),A="";try{let d=yield XW(l,n,{compressionMethod:u,enableCrossOsArchive:c});if(!d?.archiveLocation)return;if(a?.lookupOnly)return ke("Lookup only - skipping download"),d.cacheKey;A=om.join(yield qd(),Wo(u)),w(`Archive Path: ${A}`),yield zv(d.archiveLocation,A,a),Hn()&&(yield im(A,u));let p=Jn(A);return ke(`Cache Size: ~${Math.round(p/(1024*1024))} MB (${p} B)`),yield nk(A,u),ke("Cache restored successfully"),d.cacheKey}catch(d){let p=d;if(p.name===Qn.name)throw d;p instanceof qn&&typeof p.statusCode=="number"&&p.statusCode>=500?gd(`Failed to restore: ${d.message}`):un(`Failed to restore: ${d.message}`)}finally{try{yield Gd(A)}catch(d){w(`Failed to delete archive: ${d}`)}}})}function QNe(t,e,r,s){return $u(this,arguments,void 0,function*(n,i,o,a,c=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let l=[i,...o];if(w("Resolved Keys:"),w(JSON.stringify(l)),l.length>10)throw new Qn("Key Validation Error: Keys are limited to a maximum of 10.");for(let A of l)ok(A);let u="";try{let A=tk(),d=yield Hd(),p={key:i,restoreKeys:o,version:Xl(n,d,c)},m=yield A.GetCacheEntryDownloadURL(p);if(!m.ok){w(`Cache not found for version ${p.version} of keys: ${l.join(", ")}`);return}if(p.key!==m.matchedKey?ke(`Cache hit for restore-key: ${m.matchedKey}`):ke(`Cache hit for: ${m.matchedKey}`),a?.lookupOnly)return ke("Lookup only - skipping download"),m.matchedKey;u=om.join(yield qd(),Wo(d)),w(`Archive path: ${u}`),w(`Starting download of archive to: ${u}`),yield zv(m.signedDownloadUrl,u,a);let y=Jn(u);return ke(`Cache Size: ~${Math.round(y/(1024*1024))} MB (${y} B)`),Hn()&&(yield im(u,d)),yield nk(u,d),ke("Cache restored successfully"),m.matchedKey}catch(A){let d=A;if(d.name===Qn.name)throw A;d instanceof qn&&typeof d.statusCode=="number"&&d.statusCode>=500?gd(`Failed to restore: ${A.message}`):un(`Failed to restore: ${A.message}`)}finally{try{u&&(yield Gd(u))}catch(A){w(`Failed to delete archive: ${A}`)}}})}function ck(t,e,r){return $u(this,arguments,void 0,function*(s,n,i,o=!1){let a=Hp();return w(`Cache service version: ${a}`),K8(s),ok(n),a==="v2"?yield NNe(s,n,i,o):yield xNe(s,n,i,o)})}function xNe(t,e,r){return $u(this,arguments,void 0,function*(s,n,i,o=!1){var a,c,l,u,A;let d=yield Hd(),p=-1,m=yield C0(s);if(w("Cache Paths:"),w(`${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 f=yield qd(),y=om.join(f,Wo(d));w(`Archive Path: ${y}`);try{yield ik(f,m,d),Hn()&&(yield im(y,d));let g=10*1024*1024*1024,E=Jn(y);if(w(`File Size: ${E}`),E>g&&!Gv())throw new Error(`Cache size of ~${Math.round(E/(1024*1024))} MB (${E} B) is over the 10GB limit, not saving cache.`);w("Reserving Cache");let C=yield ZW(n,s,{compressionMethod:d,enableCrossOsArchive:o,cacheSize:E});if(!((a=C?.result)===null||a===void 0)&&a.cacheId)p=(c=C?.result)===null||c===void 0?void 0:c.cacheId;else throw C?.statusCode===400?new Error((u=(l=C?.error)===null||l===void 0?void 0:l.message)!==null&&u!==void 0?u:`Cache size of ~${Math.round(E/(1024*1024))} MB (${E} B) is over the data cap limit, not saving cache.`):new Vu(`Unable to reserve cache with key ${n}, another job may be creating this cache. More details: ${(A=C?.error)===null||A===void 0?void 0:A.message}`);w(`Saving Cache (ID: ${p})`),yield Vv(p,y,"",i)}catch(g){let E=g;if(E.name===Qn.name)throw g;E.name===Vu.na Line truncated
`,o).length:A,l?(a===null?0:a.length)+c.length:0,l?c.length+A:0);return d<p},parse:function(s,n,i,o){let{bom:a,comment_no_infix:c,encoding:l,from_line:u,ltrim:A,max_record_size:d,raw:p,relax_quotes:m,rtrim:f,skip_empty_lines:y,to:g,to_line:E}=this.options,{comment:C,escape:B,quote:x,record_delimiter:P}=this.options,{bomSkipped:F,previousBuf:pe,rawBuffer:we,escapeIsQuote:Se}=this.state,z;if(pe===void 0)if(s===void 0){o();return}else z=s;else pe!==void 0&&s===void 0?z=pe:z=Buffer.concat([pe,s]);if(F===!1)if(a===!1)this.state.bomSkipped=!0;else if(z.length<3){if(n===!1){this.state.previousBuf=z;return}}else{for(let Ee in iA)if(iA[Ee].compare(z,0,iA[Ee].length)===0){let It=iA[Ee].length;this.state.bufBytesStart+=It,z=z.slice(It);let Ke=AD({...this.original_options,encoding:Ee});for(let lt in Ke)this.options[lt]=Ke[lt];({comment:C,escape:B,quote:x}=this.options);break}this.state.bomSkipped=!0}let ne=z.length,U;for(U=0;U<ne&&!this.__needMoreData(U,ne,n);U++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),E!==-1&&this.info.lines>E){this.state.stop=!0,o();return}this.state.quoting===!1&&P.length===0&&this.__autoDiscoverRecordDelimiter(z,U)&&(P=this.options.record_delimiter);let Ee=z[U];if(p===!0&&we.append(Ee),(Ee===WTe||Ee===jTe)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(B!==null&&this.state.quoting===!0&&this.__isEscape(z,U,Ee)&&U+B.length<ne)if(Se){if(this.__isQuote(z,U+B.length)){this.state.escaping=!0,U+=B.length-1;continue}}else{this.state.escaping=!0,U+=B.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(z,U))if(this.state.quoting===!0){let lt=z[U+x.length],Pi=f&&this.__isCharTrimable(z,U+x.length),Vr=C!==null&&this.__compareBytes(C,z,U+x.length,lt),Sn=this.__isDelimiter(z,U+x.length,lt),fa=P.length===0?this.__autoDiscoverRecordDelimiter(z,U+x.length):this.__isRecordDelimiter(lt,z,U+x.length);if(B!==null&&this.__isEscape(z,U,Ee)&&this.__isQuote(z,U+B.length))U+=B.length-1;else if(!lt||Sn||fa||Vr||Pi){this.state.quoting=!1,this.state.wasQuoting=!0,U+=x.length-1;continue}else if(m===!1){let Gc=this.__error(new Be("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(lt)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(Gc!==void 0)return Gc}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(x),U+=x.length-1}else if(this.state.field.length!==0){if(m===!1){let lt=this.__infoField(),Pi=Object.keys(iA).map(Sn=>iA[Sn].equals(this.state.field.toString())?Sn:!1).filter(Boolean)[0],Vr=this.__error(new Be("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(lt.column)} at line ${lt.lines}, value is ${JSON.stringify(this.state.field.toString(l))}`,Pi?`(${Pi} bom)`:void 0],this.options,lt,{field:this.state.field}));if(Vr!==void 0)return Vr}}else{this.state.quoting=!0,U+=x.length-1;continue}if(this.state.quoting===!1){let lt=this.__isRecordDelimiter(Ee,z,U);if(lt!==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)>=u){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),U+=lt-1;continue}if(y===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,U+=lt-1;continue}this.info.bytes=this.state.bufBytesStart+U;let Sn=this.__onField();if(Sn!==void 0)return Sn;this.info.bytes=this.state.bufBytesStart+U+lt;let fa=this.__onRecord(i);if(fa!==void 0)return fa;if(g!==-1&&this.info.records>=g){this.state.stop=!0,o();return}}this.state.commenting=!1,U+=lt-1;continue}if(this.state.commenting)continue;if(C!==null&&(c===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(C,z,U,Ee)!==0){this.state.commenting=!0;continue}let Pi=this.__isDelimiter(z,U,Ee);if(Pi!==0){this.info.bytes=this.state.bufBytesStart+U;let Vr=this.__onField();if(Vr!==void 0)return Vr;U+=Pi-1;continue}}}if(this.state.commenting===!1&&d!==0&&this.state.record_length+this.state.field.length>d)return this.__error(new Be("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${d}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let It=A===!1||this.state.quoting===!0||this.state.field.length!==0||!this.__isCharTrimable(z,U),Ke=f===!1||this.state.wasQuoting===!1;if(It===!0&&Ke===!0)this.state.field.append(Ee);else{if(f===!0&&!this.__isCharTrimable(z,U))return this.__error(new Be("CSV_NON_TRIMABLE_CHAR_AFTER_CLOSING_QUOTE",["Invalid Closing Quote:","found non trimable byte after quote",`at line ${this.info.lines}`],this.options,this.__infoField()));It===!1&&(U+=this.__isCharTrimable(z,U)-1);continue}}if(n===!0 Line truncated
`,i),Buffer.from(`
`,i),Buffer.from("\r",i)];e:for(let a=0;a<o.length;a++){let c=o[a].length;for(let l=0;l<c;l++)if(o[a][l]!==s[n+l])continue e;return this.options.record_delimiter.push(o[a]),this.state.recordDelimiterMaxLength=o[a].length,o[a].length}return 0},__error:function(s){let{encoding:n,raw:i,skip_records_with_error:o}=this.options,a=typeof s=="string"?new Error(s):s;if(o){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(a,i?this.state.rawBuffer.toString(n):void 0)}catch(c){return c}return}else return a},__infoDataSet:function(){return{...this.info,columns:this.options.columns}},__infoRecord:function(){let{columns:s,raw:n,encoding:i}=this.options;return{...this.__infoDataSet(),error:this.state.error,header:s===!0,index:this.state.record.length,raw:n?this.state.rawBuffer.toString(i):void 0}},__infoField:function(){let{columns:s}=this.options,n=Array.isArray(s);return{...this.__infoRecord(),column:n===!0?s.length>this.state.record.length?s[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}}}};var PI=function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?{}:[],s=R9(e),n=a=>{s.options.objname===void 0?r.push(a):r[a[0]]=a[1]},i=()=>{},o=s.parse(t,!0,n,i);if(o!==void 0)throw o;return r};var Ir=class t{static getInputList(e,r){return this.getList(on(e),r)}static getList(e,r){let s=[];if(e=="")return s;let n=PI(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let i of n)i.length==1?r?.ignoreComma?s.push(i[0]):s.push(...i[0].split(",")):r?.ignoreComma?s.push(i.join(",")):s.push(...i);return s.filter(i=>i).map(i=>i.trim())}static getInputNumber(e){let r=on(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let s=0;s<e.length;s++)await r(e[s],s,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 s=await pt("powershell",!0),n=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:`"${s}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${n}' ${i.join(" ")}`]}}static isDirectory(e){try{return T9.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 s=e.lastIndexOf(r);return s===-1||s+r.length!==e.length?e:e.substring(0,s)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return eD.default.createHash("sha256").update(e).digest("hex")}static parseBool(e){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 formatFileSize(e){if(e===0)return"0 Bytes";let r=1024,s=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],n=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,n)).toFixed(2))+" "+s[n]}static generateRandomString(e=10){return eD.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}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 s=Am.default.resolve(e);return Am.default.resolve(r).startsWith(s.endsWith(Am.default.sep)?s:`${s}${Am.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),s=Math.floor(r/3600),n=Math.floor(r%3600/60),i=r%60,o=[];return s&&o.push(`${s}h`),n&&o.push(`${n}m`),(i||o.length===0)&&o.push(`${i}s`),o.join("")}};var nr=class t{static get configDir(){return process.env.DOCKER_CONFIG||dm.default.join(P9.default.homedir(),".docker")}static configFile(){let e=dm.default.join(t.configDir,"config.json");if(tD.default.existsSync(e))return JSON.parse(tD.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await pt("docker",!0).then(e=>(I(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(I(`Docker.isAvailable error: ${e}`),!1))}static async isDaemonRunning(){try{return await t.getExecOutput(["version"],{silent:!0}),!0}catch{return!1}}static async exec(e,r){return Ae.exec("docker",e,t.execOptions(r))}static async getExecOutput(e,r){return Ae.getExecOutput("docker",e,t.execOptions(r))}static execOptions(e){return e||(e={}),e.env?e.env.DOCKER_CONTENT_TRUST="false":e.env=Object.assign({},process.env,{DOCKER_CONTENT_TRUST:"false"}),e}static async context(e){let r=["context","inspect","--format","{{.Name}}"];return e&&r.push(e),await t.getExecOutput(r,{ignoreReturnCode:!0,silent:!0}).then(s=>{if(s.stderr.length>0&&s.exitCode!=0)throw new Error(s.stderr);return s.stdo Line truncated
`,i),Buffer.from("\r",i)];e:for(let a=0;a<o.length;a++){let c=o[a].length;for(let l=0;l<c;l++)if(o[a][l]!==s[n+l])continue e;return this.options.record_delimiter.push(o[a]),this.state.recordDelimiterMaxLength=o[a].length,o[a].length}return 0},__error:function(s){let{encoding:n,raw:i,skip_records_with_error:o}=this.options,a=typeof s=="string"?new Error(s):s;if(o){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(a,i?this.state.rawBuffer.toString(n):void 0)}catch(c){return c}return}else return a},__infoDataSet:function(){return{...this.info,columns:this.options.columns}},__infoRecord:function(){let{columns:s,raw:n,encoding:i}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:s===!0,index:this.state.record.length,raw:n?this.state.rawBuffer.toString(i):void 0}},__infoField:function(){let{columns:s}=this.options,n=Array.isArray(s),i=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:i,column:n===!0?s.length>this.state.record.length?s[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}}}};var qI=function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?{}:[],s=w9(e),n=a=>{s.options.objname===void 0?r.push(a):r[a[0]]=a[1]},i=()=>{},o=s.parse(t,!0,n,i);if(o!==void 0)throw o;return r};var Br=class t{static getInputList(e,r){return this.getList(yx(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let s=[];if(e=="")return s;let n=qI(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let i of n)i.length==1?r?.ignoreComma?s.push(i[0]):s.push(...i[0].split(",")):r?.ignoreComma?s.push(i.join(",")):s.push(...i);return s.filter(i=>i).map(i=>r?.trimWhitespace===!1?i:i.trim())}static getInputNumber(e){let r=yx(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let s=0;s<e.length;s++)await r(e[s],s,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 s=await pt("powershell",!0),n=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:`"${s}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${n}' ${i.join(" ")}`]}}static isDirectory(e){try{return b9.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 s=e.lastIndexOf(r);return s===-1||s+r.length!==e.length?e:e.substring(0,s)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return dD.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,s=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],n=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,n)).toFixed(2))+" "+s[n]}static generateRandomString(e=10){return dD.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,s){return Q9.compile(e,r)(s)}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 s=Im.default.resolve(e);return Im.default.resolve(r).startsWith(s.endsWith(Im.default.sep)?s:`${s}${Im.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),s=Math.floor(r/3600),n=Math.floor(r%3600/60),i=r%60,o=[];return s&&o.push(`${s}h`),n&&o.push(`${n}m`),(i||o.length===0)&&o.push(`${i}s`),o.join("")}};var ir=class t{static get configDir(){return process.env.DOCKER_CONFIG||Bm.default.join(x9.default.homedir(),".docker")}static configFile(){let e=Bm.default.join(t.configDir,"config.json");if(pD.default.existsSync(e))return JSON.parse(pD.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await pt("docker",!0).then(e=>(re(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(re(`Docker.isAvailable error: ${e}`),!1))}static async isDaemonRunning(){try{return await t.getExecOutput(["version"],{silent:!0}),!0}catch{return!1}}static async exec(e,r){return de.exec("docker",e,t.execOptions(r))}static async getExecOutput(e,r){return de.getExecOutput("docker",e,t.execOptions(r))}static execOptions(e){return e||(e={}),e.env?e.env. Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var Lve=class extends Error{constructor(t,e,r){super(_ve(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},Mve=["method","baseUrl","url","headers","request","query","mediaType","operationName"],Ove=["query","method","url"],c6=/\/api\/v3\/?$/;function Fve(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(Ove.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let s=typeof e=="string"?Object.assign({query:e},r):e,n=Object.keys(s).reduce((o,a)=>Mve.includes(a)?(o[a]=s[a],o):(o.variables||(o.variables={}),o.variables[a]=s[a],o),{}),i=s.baseUrl||t.endpoint.DEFAULTS.baseUrl;return c6.test(i)&&(n.url=i.replace(c6,"/api/graphql")),t(n).then(o=>{if(o.data.errors){let a={};for(let c of Object.keys(o.headers))a[c]=o.headers[c];throw new Lve(n,a,o.data)}return o.data.data})}function bD(t,e){let r=t.defaults(e);return Object.assign((n,i)=>Fve(r,n,i),{defaults:bD.bind(null,r),endpoint:r.endpoint})}var bXe=bD(xm,{headers:{"user-agent":`octokit-graphql.js/${Dve} ${pa()}`},method:"POST",url:"/graphql"});function l6(t){return bD(t,{method:"POST",url:"/graphql"})}var QD="(?:[a-zA-Z0-9_-]+)",u6="\\.",A6=new RegExp(`^${QD}${u6}${QD}${u6}${QD}$`),Uve=A6.test.bind(A6);async function qve(t){let e=Uve(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),s=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":s?"user-to-server":"oauth"}}function Gve(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function Hve(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=Gve(t),e(n)}var d6=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(qve.bind(null,e),{hook:Hve.bind(null,e)})};var xD="7.0.6";var p6=()=>{},zve=console.warn.bind(console),Vve=console.error.bind(console);function $ve(t={}){return typeof t.debug!="function"&&(t.debug=p6),typeof t.info!="function"&&(t.info=p6),typeof t.warn!="function"&&(t.warn=zve),typeof t.error!="function"&&(t.error=Vve),t}var m6=`octokit-core.js/${xD} ${pa()}`,ZI=class{static VERSION=xD;static defaults(e){return class extends this{constructor(...s){let n=s[0]||{};if(typeof e=="function"){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(n=>!r.includes(n)))}}constructor(e={}){let r=new H9.Collection,s={baseUrl:xm.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(s.headers["user-agent"]=e.userAgent?`${e.userAgent} ${m6}`:m6,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=xm.defaults(s),this.graphql=l6(this.request).defaults(s),this.log=$ve(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=d6(e.auth);r.wrap("request",i.hook),this.auth=i}let n=this.constructor;for(let i=0;i<n.plugins.length;++i)Object.assign(this,n.plugins[i](this,e))}request;graphql;log;hook;auth};var ND="17.0.0";var Yve={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{or Line truncated
[CmdletBinding()]
param(
[Parameter(Mandatory = $true)]
@@ -218,12 +218,12 @@ While ($true) {
Start-Sleep -Seconds 1
}
Write-Host "Docker daemon started successfully!"
`,Jke=`
`,c_e=`
Get-WinEvent -ea SilentlyContinue \`
-FilterHashtable @{ProviderName= "docker"; LogName = "application"} |
Sort-Object @{Expression="TimeCreated";Descending=$false} |
ForEach-Object {"$($_.TimeCreated.ToUniversalTime().ToString("o")) [$($_.LevelDisplayName)] $($_.Message)"}
`,wK=`
`,hX=`
# Source:
# - https://github.com/lima-vm/lima/blob/master/templates/docker-rootful.yaml
# - https://github.com/lima-vm/lima/blob/master/templates/_images/ubuntu-lts.yaml
@@ -249,19 +249,19 @@ images:
arch: "{{arch}}"
digest: "{{digest}}"
{{/each}}
- location: "https://cloud-images.ubuntu.com/releases/noble/release-20250704/ubuntu-24.04-server-cloudimg-amd64.img"
- location: "https://cloud-images.ubuntu.com/releases/noble/release-20260321/ubuntu-24.04-server-cloudimg-amd64.img"
arch: "x86_64"
digest: "sha256:f1652d29d497fb7c623433705c9fca6525d1311b11294a0f495eed55c7639d1f"
digest: "sha256:5c3ddb00f60bc455dac0862fabe9d8bacec46c33ac1751143c5c3683404b110d"
kernel:
location: "https://cloud-images.ubuntu.com/releases/noble/release-20250704/unpacked/ubuntu-24.04-server-cloudimg-amd64-vmlinuz-generic"
digest: "sha256:67cd9af083515de2101de032b49a64fc4b65778e5383df6ef21cf788a3f4688e"
location: "https://cloud-images.ubuntu.com/releases/noble/release-20260321/unpacked/ubuntu-24.04-server-cloudimg-amd64-vmlinuz-generic"
digest: "sha256:5b2a4fe174dacb18281f8f7d72ae32ac4b92801f0b7b5cb43ea55dee29fb789d"
cmdline: "root=LABEL=cloudimg-rootfs ro console=tty1 console=ttyAMA0 no_timer_check"
initrd:
location: "https://cloud-images.ubuntu.com/releases/noble/release-20250704/unpacked/ubuntu-24.04-server-cloudimg-amd64-initrd-generic"
digest: "sha256:f257d581c44f66da2d80c7c5dc3fa598ce76ef313d6e27b368683e8030a9e8fd"
- location: "https://cloud-images.ubuntu.com/releases/noble/release-20250704/ubuntu-24.04-server-cloudimg-arm64.img"
location: "https://cloud-images.ubuntu.com/releases/noble/release-20260321/unpacked/ubuntu-24.04-server-cloudimg-amd64-initrd-generic"
digest: "sha256:cd0b64a5498e583a820a5b842369df83d036b4200b33bc51cadc58176184aaca"
- location: "https://cloud-images.ubuntu.com/releases/noble/release-20260321/ubuntu-24.04-server-cloudimg-arm64.img"
arch: "aarch64"
digest: "sha256:bbecbb88100ee65497927ed0da247ba15af576a8855004182cf3c87265e25d35"
digest: "sha256:1ea801e659d2f5035ac294e0faab0aac9b6ba66753df933ba5c7beab0c689bd0"
# Fallback to the latest release image.
# Hint: run \`limactl prune\` to invalidate the cache
- location: https://cloud-images.ubuntu.com/releases/noble/release/ubuntu-24.04-server-cloudimg-amd64.img
@@ -315,6 +315,7 @@ provision:
script: |
#!/bin/bash
set -eux -o pipefail
archiveInstallLog=/var/log/docker-actions-toolkit-archive-install.log
command -v docker >/dev/null 2>&1 && exit 0
if [ ! -e /etc/systemd/system/docker.socket.d/override.conf ]; then
mkdir -p /etc/systemd/system/docker.socket.d
@@ -332,19 +333,41 @@ provision:
fi
export DEBIAN_FRONTEND=noninteractive
if [ "{{srcType}}" == "archive" ]; then
curl -fsSL https://get.docker.com | sh -s -- --channel {{srcArchiveChannel}} --version {{srcArchiveVersion}}
sed -i 's|^ExecStart=.*|ExecStart=/usr/bin/dockerd -H fd://{{#if localTCPPort}} -H tcp://0.0.0.0:2375{{/if}} --containerd=/run/containerd/containerd.sock|' /usr/lib/systemd/system/docker.service
systemctl daemon-reload
systemctl restart docker
systemctl status docker.socket || true
systemctl status docker.service || true
{
getDockerScript=$(mktemp)
curl --retry 3 --retry-all-errors --retry-delay 5 -fsSL -o "$getDockerScript" https://get.docker.com
attempt=1
max_attempts=3
until [ "$attempt" -gt "$max_attempts" ]; do
echo "Docker install attempt $attempt/$max_attempts"
if sh "$getDockerScript" --channel {{srcArchiveChannel}} --version {{srcArchiveVersion}}; then
break
fi
if [ "$attempt" -eq "$max_attempts" ]; then
echo >&2 "Docker install failed after $max_attempts attempts"
exit 1
fi
echo >&2 "Docker install attempt $attempt failed, retrying after $((attempt * 30))s"
rm -rf /var/lib/apt/lists/partial/* || true
apt-get clean || true
sleep $((attempt * 30))
attempt=$((attempt + 1))
done
sed -i 's|^ExecStart=.*|ExecStart=/usr/bin/dockerd -H fd://{{#if localTCPPort}} -H tcp://0.0.0.0:2375{{/if}} --containerd=/run/containerd/containerd.sock|' /usr/lib/systemd/system/docker.service
systemctl daemon-reload
systemctl restart docker
systemctl status docker.socket || true
systemctl status docker.service || true
} 2>&1 | tee "$archiveInstallLog"
elif [ "{{srcType}}" == "image" ]; then
arch=$(uname -m)
case $arch in
x86_64) arch=amd64;;
aarch64) arch=arm64;;
esac
url="https://github.com/crazy-max/undock/releases/download/v0.10.0/undock_0.10.0_linux_$arch.tar.gz"
url="https://github.com/crazy-max/undock/releases/download/v0.12.0/undock_0.12.0_linux_$arch.tar.gz"
wget "$url" -O /tmp/undock.tar.gz
tar -C /usr/local/bin -xvf /tmp/undock.tar.gz
@@ -409,12 +432,13 @@ audio:
# Choosing "none" will mute the audio output, and not play any sound.
# Builtin default: ""
device: none
`;var Im=class t{runDir;source;contextName;daemonConfig;rootless;localTCPPort;regctl;undock;githubToken;_version;_toolDir;gitCommit;limaInstanceName="docker-actions-toolkit";constructor(e){this.runDir=e.runDir,this.source=e.source||{type:"archive",version:"latest",channel:"stable"},this.contextName=e.contextName||"setup-docker-action",this.daemonConfig=e.daemonConfig,this.rootless=e.rootless||!1,this.localTCPPort=e.localTCPPort,this.regctl=e.regctl||new zI,this.undock=e.undock||new VI,this.githubToken=e.githubToken||process.env.GITHUB_TOKEN}get toolDir(){return this._toolDir||qr.tmpDir()}async download(){let e,r,s=Gr.default.platform();switch(this.source.type){case"image":{this._version=this.source.tag,r="docker-image",e=await this.downloadSourceImage(s);break}case"archive":{let i=this.source.version;if(r=`docker-archive-${this.source.channel}`,this._version=i,N(`Downloading Docker ${i} from ${this.source.channel} at download.docker.com`),e=await this.downloadSourceArchive("docker",this.source),this.rootless){N(`Downloading Docker rootless extras ${i} from ${this.source.channel} at download.docker.com`);let a=await this.downloadSourceArchive("docker-rootless-extras",this.source);kt.default.readdirSync(a).forEach(c=>{let l=Qt.default.join(a,c),u=Qt.default.join(e,c);kt.default.copyFileSync(l,u)})}break}}N("Fixing perms"),kt.default.readdir(Qt.default.join(e),function(i,o){if(i)throw i;o.forEach(function(a,c){Ir.isDirectory(Qt.default.join(e,a))||kt.default.chmodSync(Qt.default.join(e,a),"0755")})});let n=await dd(e,r,this._version.replace(/(0+)([1-9]+)/,"$2"));return Rl(n),N("Added Docker to PATH"),this._toolDir=n,n}async downloadSourceImage(e){let r=Qt.default.join(qr.tmpDir(),"docker-install-image"),s=`dockereng/cli-bin:${this._version}`,n=`moby/moby-bin:${this._version}`;if(N(`Downloading Docker CLI from ${s}`),await this.undock.run({source:s,dist:r}),["win32","linux"].includes(e))N(`Downloading Docker engine from ${n}`),await this.undock.run({source:n,dist:r});else if(e=="darwin"){try{let i=await this.imageConfig(n,"linux/arm64");if(I(`docker.Install.downloadSourceImage engineImageConfig: ${JSON.stringify(i)}`),this.gitCommit=i.config?.Labels?.["org.opencontainers.image.revision"],!this.gitCommit)throw new Error("No git revision can be determined from the image")}catch(i){Ke(i),this.gitCommit="master"}I(`docker.Install.downloadSourceImage gitCommit: ${this.gitCommit}`)}else Ke(`Docker engine not supported on ${e}, only the Docker cli will be available`);return r}async downloadSourceArchive(e,r){let s=await t.getRelease(r.version,this.githubToken);this._version=s.tag_name.replace(/^(docker-)?v+/,""),I(`docker.Install.downloadSourceArchive version: ${this._version}`);let n=this.downloadURL(e,this._version,r.channel);N(`Downloading ${n}`);let i=await _a(n);I(`docker.Install.downloadSourceArchive downloadPath: ${i}`);let o;return Gr.default.platform()=="win32"?o=await Yf(i,o):o=await Vf(i,o),Ir.isDirectory(Qt.default.join(o,e))&&(o=Qt.default.join(o,e)),I(`docker.Install.downloadSourceArchive extractFolder: ${o}`),o}async install(){if(!this.toolDir)throw new Error("toolDir must be set. Run download first.");if(!this.runDir)throw new Error("runDir must be set");let e=Gr.default.platform();if(this.rootless&&e!="linux")throw new Error("rootless is only supported on linux");switch(e){case"darwin":return await this.installDarwin();case"linux":return await this.installLinux();case"win32":return await this.installWindows();default:throw new Error(`Unsupported platform: ${Gr.default.platform()}`)}}async installDarwin(){if(this.source.type=="image"&&!this.gitCommit)throw new Error("gitCommit must be set. Run download first.");let e=this.source,r=Qt.default.join(Gr.default.homedir(),".lima",this.limaInstanceName);await ws(r);let s=`unix://${r}/docker.sock`;await t.limaInstalled()||await this.brewInstall("lima"),await me("Lima version",async()=>{await Ae.exec("lima",["--version"])}),await me("Creating lima config",async()=>{let o={};this.daemonConfig&&(o=JSON.parse(this.daemonConfig)),Zu.registerHelper("stringify",function(l){return new Zu.SafeString(JSON.stringify(l))});let a=e,c=Zu.compile(wK)({customImages:t.limaCustomImages(),daemonConfig:o,dockerSock:`${r}/docker.sock`,localTCPPort:this.localTCPPort,gitCommit:this.gitCommit,srcType:e.type,srcArchiveVersion:this._version,srcArchiveChannel:a.channel,srcImageTag:e.tag});N(`Writing lima config to ${Qt.default.join(r,"lima.yaml")}`),kt.default.writeFileSync(Qt.default.join(r,"lima.yaml"),c),N(c)}),await t.qemuInstalled()||await this.brewInstall("qemu");let n=await t.qemuBin();await me("QEMU version",async()=>{await Ae.exec(n,["--version"])});let i=Object.assign({},process.env,{PATH:`${this.toolDir}:${process.env.PATH}`});return await me("Starting lima instance",async()=>{let o=["start",`--name=${this.limaInstanceName}`,`--timeout=${process.env.LIMA_START_TIMEOUT??"15m"}`];process.env.LIMA_START_ARGS&&o.push(process.env.LIMA_START_ARGS);try{await Ae.exec(`limactl ${o.j Line truncated
${A}`)})}).catch(()=>{}),a}}),await me("Create Docker context",async()=>{await nr.exec(["context","create",this.contextName,"--docker",`host=${s}`]),await nr.exec(["context","use",this.contextName])}),s}async installLinux(){let e=`unix://${Qt.default.join(this.runDir,"docker.sock")}`;await ws(this.runDir);let r=Qt.default.join(this.runDir,"daemon.json");await kt.default.writeFileSync(r,"{}");let s,n="/etc/docker/daemon.json";if(kt.default.existsSync(n)&&(await me("Default Docker daemon config found",async()=>{N(JSON.stringify(JSON.parse(kt.default.readFileSync(n,{encoding:"utf8"})),null,2))}),s=JSON.parse(kt.default.readFileSync(n,{encoding:"utf8"}))),this.daemonConfig&&(s=Object.assign(s||{},JSON.parse(this.daemonConfig))),s){let o=JSON.stringify(s,null,2);await me("Writing Docker daemon config",async()=>{kt.default.writeFileSync(r,o),N(o)})}let i=Object.assign({},process.env,{PATH:`${this.toolDir}:${process.env.PATH}`,XDG_RUNTIME_DIR:this.rootless&&this.runDir||void 0});return await me("Start Docker daemon",async()=>{let o=await pt("bash",!0),a=`${this.toolDir}/dockerd`;this.rootless&&(a=`${this.toolDir}/dockerd-rootless.sh`,kt.default.existsSync("/proc/sys/kernel/apparmor_restrict_unprivileged_userns")&&await Ae.exec("sudo",["sh","-c","echo 0 > /proc/sys/kernel/apparmor_restrict_unprivileged_userns"]));let c=`${a} --host="${e}" --config-file="${r}" --exec-root="${this.runDir}/execroot" --data-root="${this.runDir}/data" --pidfile="${this.runDir}/docker.pid"`;this.localTCPPort&&(c+=` --host="tcp://127.0.0.1:${this.localTCPPort}"`),N(`[command] ${c}`);let l="sudo";this.rootless&&(l+=" -u \\#1001"),(await QK.spawn(`${l} env "PATH=$PATH" "XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR" ${o} << EOF
`;var Mm=class t{runDir;source;contextName;daemonConfig;rootless;localTCPPort;regctl;undock;githubToken;_version;_toolDir;gitCommit;limaInstanceName="docker-actions-toolkit";constructor(e){this.runDir=e.runDir,this.source=e.source||{type:"archive",version:"latest",channel:"stable"},this.contextName=e.contextName||"setup-docker-action",this.daemonConfig=e.daemonConfig,this.rootless=e.rootless||!1,this.localTCPPort=e.localTCPPort,this.regctl=e.regctl||new mB,this.undock=e.undock||new hB,this.githubToken=e.githubToken||process.env.GITHUB_TOKEN}get toolDir(){return this._toolDir||Hr.tmpDir()}async download(){let e,r,s=zr.default.platform();switch(this.source.type){case"image":{this._version=this.source.tag,r="docker-image",e=await this.downloadSourceImage(s);break}case"archive":{let i=this.source.version;if(r=`docker-archive-${this.source.channel}`,this._version=i,J(`Downloading Docker ${i} from ${this.source.channel} at download.docker.com`),e=await this.downloadSourceArchive("docker",this.source),this.rootless){J(`Downloading Docker rootless extras ${i} from ${this.source.channel} at download.docker.com`);let a=await this.downloadSourceArchive("docker-rootless-extras",this.source);Dt.default.readdirSync(a).forEach(c=>{let l=xt.default.join(a,c),u=xt.default.join(e,c);Dt.default.copyFileSync(l,u)})}break}}J("Fixing perms"),Dt.default.readdir(xt.default.join(e),function(i,o){if(i)throw i;o.forEach(function(a,c){Br.isDirectory(xt.default.join(e,a))||Dt.default.chmodSync(xt.default.join(e,a),"0755")})});let n=await xd(e,r,this._version.replace(/(0+)([1-9]+)/,"$2"));return Gl(n),J("Added Docker to PATH"),this._toolDir=n,n}async downloadSourceImage(e){let r=xt.default.join(Hr.tmpDir(),"docker-install-image"),s=`dockereng/cli-bin:${this._version}`,n=`moby/moby-bin:${this._version}`;if(J(`Downloading Docker CLI from ${s}`),await this.undock.run({source:s,dist:r}),["win32","linux"].includes(e))J(`Downloading Docker engine from ${n}`),await this.undock.run({source:n,dist:r});else if(e=="darwin"){try{let i=await this.imageConfig(n,"linux/arm64");if(re(`docker.Install.downloadSourceImage engineImageConfig: ${JSON.stringify(i)}`),this.gitCommit=i.config?.Labels?.["org.opencontainers.image.revision"],!this.gitCommit)throw new Error("No git revision can be determined from the image")}catch(i){An(i),this.gitCommit="master"}re(`docker.Install.downloadSourceImage gitCommit: ${this.gitCommit}`)}else An(`Docker engine not supported on ${e}, only the Docker cli will be available`);return r}async downloadSourceArchive(e,r){let s=await t.getRelease(r.version,this.githubToken);this._version=s.tag_name.replace(/^(docker-)?v+/,""),re(`docker.Install.downloadSourceArchive version: ${this._version}`);let n=this.downloadURL(e,this._version,r.channel);J(`Downloading ${n}`);let i=await Ya(n);re(`docker.Install.downloadSourceArchive downloadPath: ${i}`);let o;return zr.default.platform()=="win32"?o=await mg(i,o):o=await pg(i,o),Br.isDirectory(xt.default.join(o,e))&&(o=xt.default.join(o,e)),re(`docker.Install.downloadSourceArchive extractFolder: ${o}`),o}async install(){if(!this.toolDir)throw new Error("toolDir must be set. Run download first.");if(!this.runDir)throw new Error("runDir must be set");let e=zr.default.platform();if(this.rootless&&e!="linux")throw new Error("rootless is only supported on linux");switch(e){case"darwin":return await this.installDarwin();case"linux":return await this.installLinux();case"win32":return await this.installWindows();default:throw new Error(`Unsupported platform: ${zr.default.platform()}`)}}async installDarwin(){if(this.source.type=="image"&&!this.gitCommit)throw new Error("gitCommit must be set. Run download first.");let e=this.source,r=xt.default.join(zr.default.homedir(),".lima",this.limaInstanceName);await Ns(r);let s=`unix://${r}/docker.sock`;await t.limaInstalled()||await this.brewInstall("lima"),await Te("Lima version",async()=>{await de.exec("lima",["--version"])}),await Te("Creating lima config",async()=>{let o={};this.daemonConfig&&(o=JSON.parse(this.daemonConfig)),AA.registerHelper("stringify",function(l){return new AA.SafeString(JSON.stringify(l))});let a=e,c=AA.compile(hX)({customImages:t.limaCustomImages(),daemonConfig:o,dockerSock:`${r}/docker.sock`,localTCPPort:this.localTCPPort,gitCommit:this.gitCommit,srcType:e.type,srcArchiveVersion:this._version,srcArchiveChannel:a.channel,srcImageTag:e.tag});J(`Writing lima config to ${xt.default.join(r,"lima.yaml")}`),Dt.default.writeFileSync(xt.default.join(r,"lima.yaml"),c),J(c)}),await t.qemuInstalled()||await this.brewInstall("qemu");let n=await t.qemuBin();await Te("QEMU version",async()=>{await de.exec(n,["--version"])});let i=Object.assign({},process.env,{PATH:`${this.toolDir}:${process.env.PATH}`});return await Te("Starting lima instance",async()=>{let o=["start",`--name=${this.limaInstanceName}`,`--timeout=${process.env.LIMA_START_TIMEOUT??"15m"}`];process.env.LIMA_START_ARGS&&o.push(process.env.LIMA_START_ARGS);try{await de.exec(`limactl Line truncated
${A}`)})}).catch(()=>{}),a}}),await Te("Create Docker context",async()=>{await ir.exec(["context","create",this.contextName,"--docker",`host=${s}`]),await ir.exec(["context","use",this.contextName])}),s}async installLinux(){let e=`unix://${xt.default.join(this.runDir,"docker.sock")}`;await Ns(this.runDir);let r=xt.default.join(this.runDir,"daemon.json");await Dt.default.writeFileSync(r,"{}");let s,n="/etc/docker/daemon.json";if(Dt.default.existsSync(n)&&(await Te("Default Docker daemon config found",async()=>{J(JSON.stringify(JSON.parse(Dt.default.readFileSync(n,{encoding:"utf8"})),null,2))}),s=JSON.parse(Dt.default.readFileSync(n,{encoding:"utf8"}))),this.daemonConfig&&(s=Object.assign(s||{},JSON.parse(this.daemonConfig))),s){let o=JSON.stringify(s,null,2);await Te("Writing Docker daemon config",async()=>{Dt.default.writeFileSync(r,o),J(o)})}let i=Object.assign({},process.env,{PATH:`${this.toolDir}:${process.env.PATH}`,XDG_RUNTIME_DIR:this.rootless&&this.runDir||void 0});return await Te("Start Docker daemon",async()=>{let o=await pt("bash",!0),a=`${this.toolDir}/dockerd`;this.rootless&&(a=`${this.toolDir}/dockerd-rootless.sh`,Dt.default.existsSync("/proc/sys/kernel/apparmor_restrict_unprivileged_userns")&&await de.exec("sudo",["sh","-c","echo 0 > /proc/sys/kernel/apparmor_restrict_unprivileged_userns"]));let c=`${a} --host="${e}" --config-file="${r}" --exec-root="${this.runDir}/execroot" --data-root="${this.runDir}/data" --pidfile="${this.runDir}/docker.pid"`;this.localTCPPort&&(c+=` --host="tcp://127.0.0.1:${this.localTCPPort}"`),J(`[command] ${c}`);let l="sudo";this.rootless&&(l+=" -u \\#1001"),(await fX.spawn(`${l} env "PATH=$PATH" "XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR" ${o} << EOF
( ${c} 2>&1 | tee "${this.runDir}/dockerd.log" ) &
EOF`,[],{env:i,detached:!0,shell:!0,stdio:["ignore",process.stdout,process.stderr]})).unref(),await Ir.sleep(3);let A=10;await(0,NK.default)(async d=>{try{await Ae.getExecOutput("docker version",void 0,{silent:!0,env:Object.assign({},i,{DOCKER_HOST:e,DOCKER_CONTENT_TRUST:"false"})})}catch(p){d(p)}},{retries:A,minTimeout:1e3,onRetry:(d,p)=>{N(`${d}. Retrying (${p}/${A})...`)}}),N("Docker daemon started started successfully")}),await me("Create Docker context",async()=>{await nr.exec(["context","create",this.contextName,"--docker",`host=${e}`]),await nr.exec(["context","use",this.contextName])}),e}async installWindows(){let e="npipe:////./pipe/setup_docker_action",r,s=Qt.default.join(this.runDir,"daemon.json");kt.default.existsSync(s)&&(await me("Default Docker daemon config found",async()=>{N(JSON.stringify(JSON.parse(kt.default.readFileSync(s,{encoding:"utf8"})),null,2))}),r=JSON.parse(kt.default.readFileSync(s,{encoding:"utf8"}))),this.daemonConfig&&(r=Object.assign(r||{},JSON.parse(this.daemonConfig)));let n="{}";r&&(n=JSON.stringify(r,null,2),await me("Docker daemon config",async()=>{N(n)}));let i={ToolDir:this.toolDir,RunDir:this.runDir,DockerHostSocket:e,DaemonConfig:n};return this.localTCPPort&&(i.DockerHostTCP=`tcp://127.0.0.1:${this.localTCPPort}`),await me("Install Docker daemon service",async()=>{let o=await Ir.powershellCommand(BK(),i);await Ae.exec(o.command,o.args);let a=await Ir.powershellCommand(BD());await Ae.exec(a.command,a.args)}),await me("Create Docker context",async()=>{await nr.exec(["context","create",this.contextName,"--docker",`host=${e}`]),await nr.exec(["context","use",this.contextName])}),e}async tearDown(){if(!this.runDir)throw new Error("runDir must be set");switch(Gr.default.platform()){case"darwin":{await this.tearDownDarwin();break}case"linux":{await this.tearDownLinux();break}case"win32":{await this.tearDownWindows();break}default:throw new Error(`Unsupported platform: ${Gr.default.platform()}`)}await me("Cleaning up toolDir",async()=>{this._toolDir&&kt.default.rmSync(this._toolDir,{recursive:!0,force:!0})})}async tearDownDarwin(){await me("Docker daemon logs",async()=>{await Ae.exec("limactl",["shell","--tty=false",this.limaInstanceName,"sudo","journalctl","-u","docker.service","-l","--no-pager"]).catch(()=>{Ke("Failed to get Docker daemon logs")})}),await me("Stopping lima instance",async()=>{await Ae.exec("limactl",["stop","--tty=false",this.limaInstanceName,"--force"])}),await me("Removing lima instance",async()=>{await Ae.exec("limactl",["delete","--tty=false",this.limaInstanceName,"--force"])}),await me("Removing Docker context",async()=>{await nr.exec(["context","rm","-f",this.contextName])}),await me("Cleaning up runDir",async()=>{await Ae.exec("sudo",["rm","-rf",this.runDir])})}async tearDownLinux(){await me("Docker daemon logs",async()=>{N(kt.default.readFileSync(Qt.default.join(this.runDir,"dockerd.log"),{encoding:"utf8"}))}),await me("Stopping Docker daemon",async()=>{await Ae.exec("sudo",["kill","-s","SIGTERM",kt.default.readFileSync(Qt.default.join(this.runDir,"docker.pid")).toString().trim()]),await Ir.sleep(5)}),await me("Removing Docker context",async()=>{await nr.exec(["context","rm","-f",this.contextName])}),await me("Cleaning up runDir",async()=>{await Ae.exec("sudo",["rm","-rf",this.runDir],{ignoreReturnCode:!0,failOnStdErr:!1})})}async tearDownWindows(){await me("Docker daemon logs",async()=>{let e=await Ir.powershellCommand(BD());await Ae.exec(e.command,e.args)}),await me("Removing Docker context",async()=>{await nr.exec(["context","rm","-f",this.contextName])}),await me("Stopping Docker daemon service",async()=>{await Ae.exec("powershell",["-Command","Stop-Service -Name docker -Force"])})}downloadURL(e,r,s){let n=t.platformOS(),i=t.platformArch();return`https://download.docker.com/${n}/static/${s}/${i}/${e}-${r}${n==="win"?".zip":".tgz"}`}static platformOS(){switch(Gr.default.platform()){case"darwin":return"mac";case"linux":return"linux";case"win32":return"win";default:return Gr.default.platform()}}static platformArch(){switch(Gr.default.arch()){case"x64":return"x86_64";case"ppc64":return"ppc64le";case"arm64":return"aarch64";case"arm":{let e=process.config.variables.arm_version;switch(e){case 6:return"armel";case 7:return"armhf";default:return`v${e}`}}default:return Gr.default.arch()}}static async limaInstalled(){return await pt("lima",!0).then(e=>(I(`docker.Install.limaInstalled ok: ${e}`),!0)).catch(e=>(I(`docker.Install.limaInstalled error: ${e}`),!1))}static async qemuBin(){switch(Gr.default.arch()){case"x64":return"qemu-system-x86_64";case"arm64":return"qemu-system-aarch64";default:return`qemu-system-${Gr.default.arch()}`}}static async qemuInstalled(){return await pt(await t.qemuBin(),!0).then(e=>(I(`docker.Install.qemuInstalled ok: ${e}`),!0)).catch(e=>(I(`docker.Install.qemuInstalled error: ${e}`),!1))}static async getRelease(e,r){let n=await new xi({token:r}).releases("Docker",{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/ Line truncated
`))if(u.includes(n))return!0;return!1})||await Ae.exec("brew",["tap-new",n],{env:s});let o=await Ae.getExecOutput("brew",["--repo",n],{ignoreReturnCode:!0,silent:!0,env:s}).then(l=>{if(l.stderr.length>0&&l.exitCode!=0)throw new Error(l.stderr);return l.stdout.trim()}),a=`https://raw.githubusercontent.com/Homebrew/homebrew-core/${r}/Formula/${e.charAt(0)}/${e}.rb`;await _a(a,Qt.default.join(o,"Formula",`${e}.rb`)),await Ae.getExecOutput("brew",["ls","-1"],{ignoreReturnCode:!0,silent:!0,env:s}).then(l=>{if(l.stderr.length>0&&l.exitCode!=0)throw new Error(l.stderr);for(let u of l.stdout.trim().split(`
`))if(u.trim()==e)return!0;return!1})&&await Ae.exec("brew",["uninstall",e,"--ignore-dependencies"],{env:s}),await Ae.exec("brew",["install",`${n}/${e}`],{env:s})}})}};var Bm=b(require("fs"),1),mo=b(require("os"),1),YI=b(require("path"),1);var JI=b(Cm(),1),bD=b(require("util"),1);var $I=class t{githubToken;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let s=await t.getDownloadVersion(e);I(`Install.download version: ${s.version}`);let n=await t.getRelease(s,this.githubToken);I(`Install.download release tag name: ${n.tag_name}`);let i=await this.vspec(n.tag_name);I(`Install.download vspec: ${i}`);let o=JI.clean(i)||"";if(!JI.valid(o))throw new Error(`Invalid regclient version "${i}".`);let a=new Bi({htcName:"regctl-dl-bin",htcVersion:i,baseCacheDir:YI.default.join(mo.default.homedir(),".bin"),cacheFile:mo.default.platform()=="win32"?"regctl.exe":"regctl",ghaNoCache:r}),c=await a.find();if(c)return N(`regctl binary found in ${c}`),c;let l=bD.format(s.downloadURL,i,this.filename());N(`Downloading ${l}`);let u=await _a(l,void 0,this.githubToken);I(`Install.download htcDownloadPath: ${u}`);let A=await a.save(u);return N(`Cached to ${A}`),A}async install(e,r){r=r||qr.tmpDir();let s=YI.default.join(r,"regctl-bin");Bm.default.existsSync(s)||Bm.default.mkdirSync(s,{recursive:!0});let n=mo.default.platform()=="win32"?"regctl.exe":"regctl",i=YI.default.join(s,n);return Bm.default.copyFileSync(e,i),N("Fixing perms"),Bm.default.chmodSync(i,"0755"),Rl(s),N("Added regctl to PATH"),N(`Binary path: ${i}`),i}filename(){let e;switch(mo.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}case"arm":{let n=process.config.variables.arm_version;e=n?"armv"+n:"arm";break}default:{e=mo.default.arch();break}}let r=mo.default.platform()=="win32"?"windows":mo.default.platform(),s=mo.default.platform()=="win32"?".exe":"";return bD.format("regctl-%s-%s%s",r,e,s)}async vspec(e){let r=e.replace(/^v+|v+$/g,"");return N(`Use ${r} version spec cache key for ${e}`),r}static async getDownloadVersion(e){return{version:e,downloadURL:"https://github.com/regclient/regclient/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/regclient-releases.json"}}}static async getRelease(e,r){let n=await new xi({token:r}).releases("regclient",e.contentOpts);if(!n[e.version])throw new Error(`Cannot find regclient release ${e.version} in releases JSON`);return n[e.version]}};var bm=b(require("fs"),1),Bn=b(require("os"),1),wm=b(require("path"),1);var jI=b(Cm(),1),wD=b(require("util"),1);var WI=class t{githubToken;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let s=await t.getDownloadVersion(e);I(`Install.download version: ${s.version}`);let n=await t.getRelease(s,this.githubToken);I(`Install.download release tag name: ${n.tag_name}`);let i=await this.vspec(n.tag_name);I(`Install.download vspec: ${i}`);let o=jI.clean(i)||"";if(!jI.valid(o))throw new Error(`Invalid Undock version "${i}".`);let a=new Bi({htcName:"undock-dl-bin",htcVersion:i,baseCacheDir:wm.default.join(Bn.default.homedir(),".bin"),cacheFile:Bn.default.platform()=="win32"?"undock.exe":"undock",ghaNoCache:r}),c=await a.find();if(c)return N(`Undock binary found in ${c}`),c;let l=wD.format(s.downloadURL,i,this.filename(i));N(`Downloading ${l}`);let u=await _a(l,void 0,this.githubToken);I(`Install.download htcDownloadPath: ${u}`);let A;Bn.default.platform()=="win32"?A=await Yf(u):A=await Vf(u),N(`Extracted to ${A}`);let d=wm.default.join(A,Bn.default.platform()=="win32"?"undock.exe":"undock");I(`Install.download exePath: ${d}`);let p=await a.save(d);return N(`Cached to ${p}`),p}async install(e,r){r=r||qr.tmpDir();let s=wm.default.join(r,"undock-bin");bm.default.existsSync(s)||bm.default.mkdirSync(s,{recursive:!0});let n=Bn.default.platform()=="win32"?"undock.exe":"undock",i=wm.default.join(s,n);return bm.default.copyFileSync(e,i),N("Fixing perms"),bm.default.chmodSync(i,"0755"),Rl(s),N("Added Undock to PATH"),N(`Binary path: ${i}`),i}filename(e){let r;switch(Bn.default.arch()){case"x64":{r="amd64";break}case"ppc64":{r="ppc64le";break}case"arm":{let i=process.config.variables.arm_version;r=i?"armv"+i:"arm";break}default:{r=Bn.default.arch();break}}let s=Bn.default.platform()=="win32"?"windows":Bn.default.platform(),n=Bn.default.platform()=="win32"?".zip":".tar.gz";return wD.format("undock_%s_%s_%s%s",e,s,r,n)}async vspec(e){let r=e.replace(/^v+|v+$/g,"");return N(`Use ${r} version spec cache key for ${e}`),r}static async getDownloadVersion(e){return{version:e,downloadURL:"https://github.com/crazy-max/undock/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/undock-releases.json"}}}static async getRelease(e,r){let n=await new xi({token:r}).releases("Undock",e.contentOpts);if(!n[e.version])throw new Error(`Cannot find Undock release ${e.version} in releases JSON`);return n[e.version]}};var SK=b(r Line truncated
EOF`,[],{env:i,detached:!0,shell:!0,stdio:["ignore",process.stdout,process.stderr]})).unref(),await Br.sleep(3);let A=10;await(0,EX.default)(async d=>{try{await de.getExecOutput("docker version",void 0,{silent:!0,env:Object.assign({},i,{DOCKER_HOST:e,DOCKER_CONTENT_TRUST:"false"})})}catch(p){d(p)}},{retries:A,minTimeout:1e3,onRetry:(d,p)=>{J(`${d}. Retrying (${p}/${A})...`)}}),J("Docker daemon started started successfully")}),await Te("Create Docker context",async()=>{await ir.exec(["context","create",this.contextName,"--docker",`host=${e}`]),await ir.exec(["context","use",this.contextName])}),e}async installWindows(){let e="npipe:////./pipe/setup_docker_action",r,s=xt.default.join(this.runDir,"daemon.json");Dt.default.existsSync(s)&&(await Te("Default Docker daemon config found",async()=>{J(JSON.stringify(JSON.parse(Dt.default.readFileSync(s,{encoding:"utf8"})),null,2))}),r=JSON.parse(Dt.default.readFileSync(s,{encoding:"utf8"}))),this.daemonConfig&&(r=Object.assign(r||{},JSON.parse(this.daemonConfig)));let n="{}";r&&(n=JSON.stringify(r,null,2),await Te("Docker daemon config",async()=>{J(n)}));let i={ToolDir:this.toolDir,RunDir:this.runDir,DockerHostSocket:e,DaemonConfig:n};return this.localTCPPort&&(i.DockerHostTCP=`tcp://127.0.0.1:${this.localTCPPort}`),await Te("Install Docker daemon service",async()=>{let o=await Br.powershellCommand(pX(),i);await de.exec(o.command,o.args);let a=await Br.powershellCommand(s_());await de.exec(a.command,a.args)}),await Te("Create Docker context",async()=>{await ir.exec(["context","create",this.contextName,"--docker",`host=${e}`]),await ir.exec(["context","use",this.contextName])}),e}async tearDown(){if(!this.runDir)throw new Error("runDir must be set");switch(zr.default.platform()){case"darwin":{await this.tearDownDarwin();break}case"linux":{await this.tearDownLinux();break}case"win32":{await this.tearDownWindows();break}default:throw new Error(`Unsupported platform: ${zr.default.platform()}`)}await Te("Cleaning up toolDir",async()=>{this._toolDir&&Dt.default.rmSync(this._toolDir,{recursive:!0,force:!0})})}async tearDownDarwin(){await this.printDarwinDiagnostics(),await Te("Stopping lima instance",async()=>{await de.exec("limactl",["stop","--tty=false",this.limaInstanceName,"--force"])}),await Te("Removing lima instance",async()=>{await de.exec("limactl",["delete","--tty=false",this.limaInstanceName,"--force"])}),await Te("Removing Docker context",async()=>{await ir.exec(["context","rm","-f",this.contextName])}),await Te("Cleaning up runDir",async()=>{await de.exec("sudo",["rm","-rf",this.runDir])})}async printDarwinDiagnostics(){await this.printDarwinGuestCommandOutput("Cloud-init output log",["sudo","cat","/var/log/cloud-init-output.log"]),await this.printDarwinGuestCommandOutput("Cloud-init status",["sudo","timeout","300s","cloud-init","status","--wait"]),await this.printDarwinGuestCommandOutput("Docker unit file",["sudo","systemctl","cat","docker.service"]),await this.printDarwinGuestCommandOutput("Docker service status",["sudo","systemctl","status","docker.service","docker.socket","-l","--no-pager"]),await this.printDarwinGuestCommandOutput("Archive install script log",["sudo","cat","/var/log/docker-actions-toolkit-archive-install.log"]),await this.printDarwinGuestCommandOutput("Docker daemon logs",["sudo","journalctl","-u","docker.service","-l","--no-pager"])}async printDarwinGuestCommandOutput(e,r){await Te(e,async()=>{let s=await de.getExecOutput("limactl",["shell","--tty=false",this.limaInstanceName,...r],{ignoreReturnCode:!0,silent:!0}).catch(i=>{J(`Failed to get ${e}: ${i}`)});if(!s)return;let n=[s.stdout.trim(),s.stderr.trim()].filter(Boolean).join(`
`);n.length>0?J(n):s.exitCode!==0&&J(`${e} exited with code ${s.exitCode}`)})}async tearDownLinux(){await Te("Docker daemon logs",async()=>{J(Dt.default.readFileSync(xt.default.join(this.runDir,"dockerd.log"),{encoding:"utf8"}))}),await Te("Stopping Docker daemon",async()=>{await de.exec("sudo",["kill","-s","SIGTERM",Dt.default.readFileSync(xt.default.join(this.runDir,"docker.pid")).toString().trim()]),await Br.sleep(5)}),await Te("Removing Docker context",async()=>{await ir.exec(["context","rm","-f",this.contextName])}),await Te("Cleaning up runDir",async()=>{await de.exec("sudo",["rm","-rf",this.runDir],{ignoreReturnCode:!0,failOnStdErr:!1})})}async tearDownWindows(){await Te("Docker daemon logs",async()=>{let e=await Br.powershellCommand(s_());await de.exec(e.command,e.args)}),await Te("Removing Docker context",async()=>{await ir.exec(["context","rm","-f",this.contextName])}),await Te("Stopping Docker daemon service",async()=>{await de.exec("powershell",["-Command","Stop-Service -Name docker -Force"])})}downloadURL(e,r,s){let n=t.platformOS(),i=t.platformArch();return`https://download.docker.com/${n}/static/${s}/${i}/${e}-${r}${n==="win"?".zip":".tgz"}`}static platformOS(){switch(zr.default.platform()){case"darwin":return"mac";case"linux":return"linux";case"win32":return"win";default:return zr.default.platform()}}static platformArch(){switch(zr.default.arch()){case"x64":return"x86_64";case"ppc64":return"ppc64le";case"arm64":return"aarch64";case"arm":{let e=process.config.variables.arm_version;switch(e){case 6:return"armel";case 7:return"armhf";default:return`v${e}`}}default:return zr.default.arch()}}static async limaInstalled(){return await pt("lima",!0).then(e=>(re(`docker.Install.limaInstalled ok: ${e}`),!0)).catch(e=>(re(`docker.Install.limaInstalled error: ${e}`),!1))}static async qemuBin(){switch(zr.default.arch()){case"x64":return"qemu-system-x86_64";case"arm64":return"qemu-system-aarch64";default:return`qemu-system-${zr.default.arch()}`}}static async qemuInstalled(){return await pt(await t.qemuBin(),!0).then(e=>(re(`docker.Install.qemuInstalled ok: ${e}`),!0)).catch(e=>(re(`docker.Install.qemuInstalled error: ${e}`),!1))}static async getRelease(e,r){let n=await new ha({token:r}).releases("Docker",{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/docker-releases.json"});if(!n[e]){if(!n["v"+e])throw new Error(`Cannot find Docker release ${e} in releases JSON`);return n["v"+e]}return n[e]}static limaCustomImages(){let e=[],r=process.env.LIMA_IMAGES;if(!r)return e;for(let s of Br.getList(r,{ignoreComma:!0,comment:"#"})){let n=s.indexOf(":"),i=s.substring(0,n).trim(),o=s.indexOf("@"),a=s.substring(n+1,o!==-1?o:void 0).trim(),c=o!==-1?s.substring(o+1).trim():"";e.push({location:a,arch:i,digest:c})}return e}async imageConfig(e,r){let n=(await this.regctl.manifestGet({image:e,platform:r}))?.config?.digest;if(!n)throw new Error(`No config digest found for image ${e}`);let i=await this.regctl.blobGet({repository:e,digest:n});return JSON.parse(i)}async brewInstall(e,r){let s=Object.assign({},process.env,{HOMEBREW_NO_AUTO_UPDATE:"1",HOMEBREW_NO_INSTALL_UPGRADE:"1",HOMEBREW_NO_INSTALL_CLEANUP:"1"});await Te(`Installing ${e}`,async()=>{if(!r)await de.exec("brew",["install",e]);else{let n="docker-actions-toolkit/tap";await de.getExecOutput("brew",["tap"],{ignoreReturnCode:!0,silent:!0,env:s}).then(l=>{if(l.stderr.length>0&&l.exitCode!=0)throw new Error(l.stderr);for(let u of l.stdout.trim().split(`
`))if(u.includes(n))return!0;return!1})||await de.exec("brew",["tap-new",n],{env:s});let o=await de.getExecOutput("brew",["--repo",n],{ignoreReturnCode:!0,silent:!0,env:s}).then(l=>{if(l.stderr.length>0&&l.exitCode!=0)throw new Error(l.stderr);return l.stdout.trim()}),a=`https://raw.githubusercontent.com/Homebrew/homebrew-core/${r}/Formula/${e.charAt(0)}/${e}.rb`;await Ya(a,xt.default.join(o,"Formula",`${e}.rb`)),await de.getExecOutput("brew",["ls","-1"],{ignoreReturnCode:!0,silent:!0,env:s}).then(l=>{if(l.stderr.length>0&&l.exitCode!=0)throw new Error(l.stderr);for(let u of l.stdout.trim().split(`
`))if(u.trim()==e)return!0;return!1})&&await de.exec("brew",["uninstall",e,"--ignore-dependencies"],{env:s}),await de.exec("brew",["install",`${n}/${e}`],{env:s})}})}};var Om=I(require("fs"),1),Co=I(require("os"),1),fB=I(require("path"),1);var EB=I(Lm(),1),n_=I(require("util"),1);var gB=class t{githubToken;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let s=await t.getDownloadVersion(e);re(`Install.download version: ${s.version}`);let n=await t.getRelease(s,this.githubToken);re(`Install.download release tag name: ${n.tag_name}`);let i=await this.vspec(n.tag_name);re(`Install.download vspec: ${i}`);let o=EB.clean(i)||"";if(!EB.valid(o))throw new Error(`Invalid regclient version "${i}".`);let a=new Ni({htcName:"regctl-dl-bin",htcVersion:i,baseCacheDir:fB.default.join(Co.default.homedir(),".bin"),cacheFile:Co.default.platform()=="win32"?"regctl.exe":"regctl",ghaNoCache:r}),c=await a.find();if(c)return J(`regctl binary found in ${c}`),c;let l=n_.format(s.downloadURL,i,this.filename());J(`Downloading ${l}`);let u=await Ya(l,void 0,this.githubToken);re(`Install.download htcDownloadPath: ${u}`);let A=await a.save(u);return J(`Cached to ${A}`),A}async install(e,r){r=r||Hr.tmpDir();let s=fB.default.join(r,"regctl-bin");Om.default.existsSync(s)||Om.default.mkdirSync(s,{recursive:!0});let n=Co.default.platform()=="win32"?"regctl.exe":"regctl",i=fB.default.join(s,n);return Om.default.copyFileSync(e,i),J("Fixing perms"),Om.default.chmodSync(i,"0755"),Gl(s),J("Added regctl to PATH"),J(`Binary path: ${i}`),i}filename(){let e;switch(Co.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}case"arm":{let n=process.config.variables.arm_version;e=n?"armv"+n:"arm";break}default:{e=Co.default.arch();break}}let r=Co.default.platform()=="win32"?"windows":Co.default.platform(),s=Co.default.platform()=="win32"?".exe":"";return n_.format("regctl-%s-%s%s",r,e,s)}async vspec(e){let r=e.replace(/^v+|v+$/g,"");return J(`Use ${r} version spec cache key for ${e}`),r}static async getDownloadVersion(e){return{version:e,downloadURL:"https://github.com/regclient/regclient/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/regclient-releases.json"}}}static async getRelease(e,r){let n=await new ha({token:r}).releases("regclient",e.contentOpts);if(!n[e.version])throw new Error(`Cannot find regclient release ${e.version} in releases JSON`);return n[e.version]}};var Fm=I(require("fs"),1),Nn=I(require("os"),1),Um=I(require("path"),1);var CB=I(Lm(),1),i_=I(require("util"),1);var yB=class t{githubToken;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let s=await t.getDownloadVersion(e);re(`Install.download version: ${s.version}`);let n=await t.getRelease(s,this.githubToken);re(`Install.download release tag name: ${n.tag_name}`);let i=await this.vspec(n.tag_name);re(`Install.download vspec: ${i}`);let o=CB.clean(i)||"";if(!CB.valid(o))throw new Error(`Invalid Undock version "${i}".`);let a=new Ni({htcName:"undock-dl-bin",htcVersion:i,baseCacheDir:Um.default.join(Nn.default.homedir(),".bin"),cacheFile:Nn.default.platform()=="win32"?"undock.exe":"undock",ghaNoCache:r}),c=await a.find();if(c)return J(`Undock binary found in ${c}`),c;let l=i_.format(s.downloadURL,i,this.filename(i));J(`Downloading ${l}`);let u=await Ya(l,void 0,this.githubToken);re(`Install.download htcDownloadPath: ${u}`);let A;Nn.default.platform()=="win32"?A=await mg(u):A=await pg(u),J(`Extracted to ${A}`);let d=Um.default.join(A,Nn.default.platform()=="win32"?"undock.exe":"undock");re(`Install.download exePath: ${d}`);let p=await a.save(d);return J(`Cached to ${p}`),p}async install(e,r){r=r||Hr.tmpDir();let s=Um.default.join(r,"undock-bin");Fm.default.existsSync(s)||Fm.default.mkdirSync(s,{recursive:!0});let n=Nn.default.platform()=="win32"?"undock.exe":"undock",i=Um.default.join(s,n);return Fm.default.copyFileSync(e,i),J("Fixing perms"),Fm.default.chmodSync(i,"0755"),Gl(s),J("Added Undock to PATH"),J(`Binary path: ${i}`),i}filename(e){let r;switch(Nn.default.arch()){case"x64":{r="amd64";break}case"ppc64":{r="ppc64le";break}case"arm":{let i=process.config.variables.arm_version;r=i?"armv"+i:"arm";break}default:{r=Nn.default.arch();break}}let s=Nn.default.platform()=="win32"?"windows":Nn.default.platform(),n=Nn.default.platform()=="win32"?".zip":".tar.gz";return i_.format("undock_%s_%s_%s%s",e,s,r,n)}async vspec(e){let r=e.replace(/^v+|v+$/g,"");return J(`Use ${r} version spec cache key for ${e}`),r}static async getDownloadVersion(e){return{version:e,downloadURL:"https://github.com/crazy-max/undock/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/undock-releases.json"}}}static async getRelease(e,r){let n=await new ha({token:r}).releases("Undock",e.contentOpts);if(!n[e.version])throw new Error(`Cannot find Undock release ${e.version} in releases JSON`);return n[e.version]}};v Line truncated
/*! Bundled license information:
undici/lib/web/fetch/body.js:
Generated Vendored
+4 -4
View File
@@ -1,7 +1,7 @@
{
"version": 3,
"sources": ["../node_modules/tunnel/lib/tunnel.js", "../node_modules/tunnel/index.js", "../node_modules/undici/lib/core/symbols.js", "../node_modules/undici/lib/core/errors.js", "../node_modules/undici/lib/core/constants.js", "../node_modules/undici/lib/core/tree.js", "../node_modules/undici/lib/core/util.js", "../node_modules/undici/lib/core/diagnostics.js", "../node_modules/undici/lib/core/request.js", "../node_modules/undici/lib/dispatcher/dispatcher.js", "../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../node_modules/undici/lib/util/timers.js", "../node_modules/undici/lib/core/connect.js", "../node_modules/undici/lib/llhttp/utils.js", "../node_modules/undici/lib/llhttp/constants.js", "../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../node_modules/undici/lib/web/fetch/constants.js", "../node_modules/undici/lib/web/fetch/global.js", "../node_modules/undici/lib/web/fetch/data-url.js", "../node_modules/undici/lib/web/fetch/webidl.js", "../node_modules/undici/lib/web/fetch/util.js", "../node_modules/undici/lib/web/fetch/symbols.js", "../node_modules/undici/lib/web/fetch/file.js", "../node_modules/undici/lib/web/fetch/formdata.js", "../node_modules/undici/lib/web/fetch/formdata-parser.js", "../node_modules/undici/lib/web/fetch/body.js", "../node_modules/undici/lib/dispatcher/client-h1.js", "../node_modules/undici/lib/dispatcher/client-h2.js", "../node_modules/undici/lib/handler/redirect-handler.js", "../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../node_modules/undici/lib/dispatcher/client.js", "../node_modules/undici/lib/dispatcher/fixed-queue.js", "../node_modules/undici/lib/dispatcher/pool-stats.js", "../node_modules/undici/lib/dispatcher/pool-base.js", "../node_modules/undici/lib/dispatcher/pool.js", "../node_modules/undici/lib/dispatcher/balanced-pool.js", "../node_modules/undici/lib/dispatcher/agent.js", "../node_modules/undici/lib/dispatcher/proxy-agent.js", "../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../node_modules/undici/lib/handler/retry-handler.js", "../node_modules/undici/lib/dispatcher/retry-agent.js", "../node_modules/undici/lib/api/readable.js", "../node_modules/undici/lib/api/util.js", "../node_modules/undici/lib/api/api-request.js", "../node_modules/undici/lib/api/abort-signal.js", "../node_modules/undici/lib/api/api-stream.js", "../node_modules/undici/lib/api/api-pipeline.js", "../node_modules/undici/lib/api/api-upgrade.js", "../node_modules/undici/lib/api/api-connect.js", "../node_modules/undici/lib/api/index.js", "../node_modules/undici/lib/mock/mock-errors.js", "../node_modules/undici/lib/mock/mock-symbols.js", "../node_modules/undici/lib/mock/mock-utils.js", "../node_modules/undici/lib/mock/mock-interceptor.js", "../node_modules/undici/lib/mock/mock-client.js", "../node_modules/undici/lib/mock/mock-pool.js", "../node_modules/undici/lib/mock/pluralizer.js", "../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../node_modules/undici/lib/mock/mock-agent.js", "../node_modules/undici/lib/global.js", "../node_modules/undici/lib/handler/decorator-handler.js", "../node_modules/undici/lib/interceptor/redirect.js", "../node_modules/undici/lib/interceptor/retry.js", "../node_modules/undici/lib/interceptor/dump.js", "../node_modules/undici/lib/interceptor/dns.js", "../node_modules/undici/lib/web/fetch/headers.js", "../node_modules/undici/lib/web/fetch/response.js", "../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../node_modules/undici/lib/web/fetch/request.js", "../node_modules/undici/lib/web/fetch/index.js", "../node_modules/undici/lib/web/fileapi/symbols.js", "../node_modules/undici/lib/web/fileapi/progressevent.js", "../node_modules/undici/lib/web/fileapi/encoding.js", "../node_modules/undici/lib/web/fileapi/util.js", "../node_modules/undici/lib/web/fileapi/filereader.js", "../node_modules/undici/lib/web/cache/symbols.js", "../node_modules/undici/lib/web/cache/util.js", "../node_modules/undici/lib/web/cache/cache.js", "../node_modules/undici/lib/web/cache/cachestorage.js", "../node_modules/undici/lib/web/cookies/constants.js", "../node_modules/undici/lib/web/cookies/util.js", "../node_modules/undici/lib/web/cookies/parse.js", "../node_modules/undici/lib/web/cookies/index.js", "../node_modules/undici/lib/web/websocket/events.js", "../node_modules/undici/lib/web/websocket/constants.js", "../node_modules/undici/lib/web/websocket/symbols.js", "../node_modules/undici/lib/web/websocket/util.js", "../node_modules/undici/lib/web/websocket/frame.js", "../node_modules/undici/lib/web/websocket/connection.js", "../node_modules/undici/lib/web/websocket/permessage-deflate.js", "../node_modules/undici/lib/web/websocket/receiver.js", "../node_modules/undici/lib/web/websocket/sender.js", "../node_modules/undici/lib/web/websocket/websocket.js", "../node_modules/undici/lib/web/eventsource/util.js", "../node_modules/undici/lib/web/eventsource/eventsource-stream.js",Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": "glBAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,QAAQ,KAAK,EACnBC,GAAM,QAAQ,KAAK,EACnBC,GAAO,QAAQ,MAAM,EACrBC,GAAQ,QAAQ,OAAO,EACvBC,GAAS,QAAQ,QAAQ,EACzBC,IAAS,QAAQ,QAAQ,EACzBC,GAAO,QAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,GACvBR,GAAQ,cAAgBS,GACxBT,GAAQ,cAAgBU,GACxBV,GAAQ,eAAiBW,GAGzB,SAASH,GAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAEA,SAASJ,GAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,GAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAEA,SAASF,GAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,GAAK,SAASO,GAAgBT,GAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAEA,SAASF,GAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,GAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,OCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAAULine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
"sources": ["../node_modules/tunnel/lib/tunnel.js", "../node_modules/tunnel/index.js", "../node_modules/undici/lib/core/symbols.js", "../node_modules/undici/lib/core/errors.js", "../node_modules/undici/lib/core/constants.js", "../node_modules/undici/lib/core/tree.js", "../node_modules/undici/lib/core/util.js", "../node_modules/undici/lib/core/diagnostics.js", "../node_modules/undici/lib/core/request.js", "../node_modules/undici/lib/dispatcher/dispatcher.js", "../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../node_modules/undici/lib/util/timers.js", "../node_modules/undici/lib/core/connect.js", "../node_modules/undici/lib/llhttp/utils.js", "../node_modules/undici/lib/llhttp/constants.js", "../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../node_modules/undici/lib/web/fetch/constants.js", "../node_modules/undici/lib/web/fetch/global.js", "../node_modules/undici/lib/web/fetch/data-url.js", "../node_modules/undici/lib/web/fetch/webidl.js", "../node_modules/undici/lib/web/fetch/util.js", "../node_modules/undici/lib/web/fetch/symbols.js", "../node_modules/undici/lib/web/fetch/file.js", "../node_modules/undici/lib/web/fetch/formdata.js", "../node_modules/undici/lib/web/fetch/formdata-parser.js", "../node_modules/undici/lib/web/fetch/body.js", "../node_modules/undici/lib/dispatcher/client-h1.js", "../node_modules/undici/lib/dispatcher/client-h2.js", "../node_modules/undici/lib/handler/redirect-handler.js", "../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../node_modules/undici/lib/dispatcher/client.js", "../node_modules/undici/lib/dispatcher/fixed-queue.js", "../node_modules/undici/lib/dispatcher/pool-stats.js", "../node_modules/undici/lib/dispatcher/pool-base.js", "../node_modules/undici/lib/dispatcher/pool.js", "../node_modules/undici/lib/dispatcher/balanced-pool.js", "../node_modules/undici/lib/dispatcher/agent.js", "../node_modules/undici/lib/dispatcher/proxy-agent.js", "../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../node_modules/undici/lib/handler/retry-handler.js", "../node_modules/undici/lib/dispatcher/retry-agent.js", "../node_modules/undici/lib/api/readable.js", "../node_modules/undici/lib/api/util.js", "../node_modules/undici/lib/api/api-request.js", "../node_modules/undici/lib/api/abort-signal.js", "../node_modules/undici/lib/api/api-stream.js", "../node_modules/undici/lib/api/api-pipeline.js", "../node_modules/undici/lib/api/api-upgrade.js", "../node_modules/undici/lib/api/api-connect.js", "../node_modules/undici/lib/api/index.js", "../node_modules/undici/lib/mock/mock-errors.js", "../node_modules/undici/lib/mock/mock-symbols.js", "../node_modules/undici/lib/mock/mock-utils.js", "../node_modules/undici/lib/mock/mock-interceptor.js", "../node_modules/undici/lib/mock/mock-client.js", "../node_modules/undici/lib/mock/mock-pool.js", "../node_modules/undici/lib/mock/pluralizer.js", "../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../node_modules/undici/lib/mock/mock-agent.js", "../node_modules/undici/lib/global.js", "../node_modules/undici/lib/handler/decorator-handler.js", "../node_modules/undici/lib/interceptor/redirect.js", "../node_modules/undici/lib/interceptor/retry.js", "../node_modules/undici/lib/interceptor/dump.js", "../node_modules/undici/lib/interceptor/dns.js", "../node_modules/undici/lib/web/fetch/headers.js", "../node_modules/undici/lib/web/fetch/response.js", "../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../node_modules/undici/lib/web/fetch/request.js", "../node_modules/undici/lib/web/fetch/index.js", "../node_modules/undici/lib/web/fileapi/symbols.js", "../node_modules/undici/lib/web/fileapi/progressevent.js", "../node_modules/undici/lib/web/fileapi/encoding.js", "../node_modules/undici/lib/web/fileapi/util.js", "../node_modules/undici/lib/web/fileapi/filereader.js", "../node_modules/undici/lib/web/cache/symbols.js", "../node_modules/undici/lib/web/cache/util.js", "../node_modules/undici/lib/web/cache/cache.js", "../node_modules/undici/lib/web/cache/cachestorage.js", "../node_modules/undici/lib/web/cookies/constants.js", "../node_modules/undici/lib/web/cookies/util.js", "../node_modules/undici/lib/web/cookies/parse.js", "../node_modules/undici/lib/web/cookies/index.js", "../node_modules/undici/lib/web/websocket/events.js", "../node_modules/undici/lib/web/websocket/constants.js", "../node_modules/undici/lib/web/websocket/symbols.js", "../node_modules/undici/lib/web/websocket/util.js", "../node_modules/undici/lib/web/websocket/frame.js", "../node_modules/undici/lib/web/websocket/connection.js", "../node_modules/undici/lib/web/websocket/permessage-deflate.js", "../node_modules/undici/lib/web/websocket/receiver.js", "../node_modules/undici/lib/web/websocket/sender.js", "../node_modules/undici/lib/web/websocket/websocket.js", "../node_modules/undici/lib/web/eventsource/util.js", "../node_modules/undici/lib/web/eventsource/eventsource-stream.js",Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": "glBAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,QAAQ,KAAK,EACnBC,GAAM,QAAQ,KAAK,EACnBC,GAAO,QAAQ,MAAM,EACrBC,GAAQ,QAAQ,OAAO,EACvBC,GAAS,QAAQ,QAAQ,EACzBC,IAAS,QAAQ,QAAQ,EACzBC,GAAO,QAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,GACvBR,GAAQ,cAAgBS,GACxBT,GAAQ,cAAgBU,GACxBV,GAAQ,eAAiBW,GAGzB,SAASH,GAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAEA,SAASJ,GAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,GAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAEA,SAASF,GAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,GAAK,SAASO,GAAgBT,GAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAEA,SAASF,GAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,GAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,OCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAAULine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
}
Generated Vendored
+69 -6
View File
@@ -5,9 +5,10 @@ The following npm packages may be included in this product:
- @sigstore/bundle@4.0.0
- @sigstore/core@3.1.0
- @sigstore/core@3.2.0
- @sigstore/protobuf-specs@0.5.0
- @sigstore/sign@4.1.0
- @sigstore/tuf@4.0.1
- @sigstore/sign@4.1.1
- @sigstore/tuf@4.0.2
These packages each contain the following license:
@@ -217,7 +218,7 @@ Apache License
The following npm package may be included in this product:
- @docker/actions-toolkit@0.77.0
- @docker/actions-toolkit@0.89.0
This package contains the following license:
@@ -2284,6 +2285,7 @@ The following npm packages may be included in this product:
- @actions/http-client@3.0.2
- @actions/http-client@4.0.0
- @actions/http-client@4.0.1
These packages each contain the following license:
@@ -2542,6 +2544,35 @@ THE SOFTWARE.
-----------
The following npm package may be included in this product:
- @gar/promise-retry@1.0.3
This package contains the following license:
Copyright (c) 2011 Tim Koschützki (tim@debuggable.com), Felix Geisendörfer (felix@debuggable.com)
Copyright (c) 2014 IndigoUnited
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-----------
The following npm package may be included in this product:
- color-convert@2.0.1
@@ -3209,7 +3240,7 @@ USE OR PERFORMANCE OF THIS SOFTWARE.
The following npm packages may be included in this product:
- make-fetch-happen@15.0.3
- make-fetch-happen@15.0.4
- make-fetch-happen@15.0.5
These packages each contain the following license:
@@ -3707,6 +3738,36 @@ SOFTWARE.
-----------
The following npm package may be included in this product:
- @npmcli/redact@4.0.0
This package contains the following license:
MIT License
Copyright (c) 2024 npm
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
-----------
The following npm package may be included in this product:
- fast-xml-builder@1.1.5
@@ -4447,7 +4508,7 @@ THE SOFTWARE.
The following npm package may be included in this product:
- csv-parse@6.1.0
- csv-parse@6.2.1
This package contains the following license:
@@ -5154,11 +5215,13 @@ https://github.com/bitinn/node-fetch
The following npm packages may be included in this product:
- @actions/artifact@6.2.0
- @actions/artifact@6.2.1
- @actions/cache@6.0.0
- @actions/core@3.0.0
- @actions/core@3.0.1
- @actions/exec@3.0.0
- @actions/github@9.0.0
- @actions/github@9.1.1
- @actions/glob@0.6.1
- @actions/io@3.0.2
- @actions/tool-cache@4.0.0