Merge pull request #254 from docker/dependabot/npm_and_yarn/docker/actions-toolkit-0.89.1

build(deps): bump @docker/actions-toolkit from 0.89.0 to 0.91.0
This commit is contained in:
CrazyMax authored and GitHub committed 2026-05-27 15:48:48 +02:00
commit 44285f8ec5
5 files changed
+560 -108

No files matched your search

Generated Vendored
+76 -76
View File
@@ -1,82 +1,82 @@
var ZX=Object.create;var xB=Object.defineProperty;var eZ=Object.getOwnPropertyDescriptor;var tZ=Object.getOwnPropertyNames;var rZ=Object.getPrototypeOf,sZ=Object.prototype.hasOwnProperty;var h=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),nZ=(t,e)=>{for(var r in e)xB(t,r,{get:e[r],enumerable:!0})},iZ=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of tZ(e))!sZ.call(t,n)&&n!==r&&xB(t,n,{get:()=>e[n],enumerable:!(s=eZ(e,n))||s.enumerable});return t};var B=(t,e,r)=>(r=t!=null?ZX(rZ(t)):{},iZ(e||!t||!t.__esModule?xB(r,"default",{value:t,enumerable:!0}):r,t));var R_=h(Gc=>{"use strict";var cLe=require("net"),AZ=require("tls"),vB=require("http"),x_=require("https"),dZ=require("events"),lLe=require("assert"),pZ=require("util");Gc.httpOverHttp=mZ;Gc.httpsOverHttp=hZ;Gc.httpOverHttps=fZ;Gc.httpsOverHttps=gZ;function mZ(t){var e=new _i(t);return e.request=vB.request,e}function hZ(t){var e=new _i(t);return e.request=vB.request,e.createSocket=N_,e.defaultPort=443,e}function fZ(t){var e=new _i(t);return e.request=x_.request,e}function gZ(t){var e=new _i(t);return e.request=x_.request,e.createSocket=N_,e.defaultPort=443,e}function _i(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||vB.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,n,i,o){for(var a=S_(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)})}pZ.inherits(_i,dZ.EventEmitter);_i.prototype.addRequest=function(e,r,s,n){var i=this,o=PB({request:e},i.options,S_(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)}})};_i.prototype.createSocket=function(e,r){var s=this,n={};s.sockets.push(n);var i=PB({},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")),Bo("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){Bo("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){Bo("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 Bo("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=d,r(d)}function u(A){o.removeAllListeners(),Bo(`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)}};_i.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 N_(t,e){var r=this;_i.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=PB({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),o=AZ.connect(0,i);r.sockets[r.sockets.indexOf(s)]=o,e(o)})}function S_(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function PB(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 Bo;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Bo=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)}:Bo=function(){};Gc.debug=Bo});var Zm=h((ALe,T_)=>{T_.exports=R_()});var ze=h((dLe,v_)=>{v_.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 Qe=h((pLe,rL)=>{"use strict";var P_=Symbol.for("undici.error.UND_ERR"),$e=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[P_]===!0}[P_]=!0},k_=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),kB=class extends $e{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[k_]===!0}[k_]=!0},D_=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),DB=class extends $e{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[D_]===!0}[D_]=!0},__=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),_B=class extends $e{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[__]===!0}[__]=!0},L_=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),LB=class extends $e{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[L_]===!0}[L_]=!0},M_=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),MB=class extends $e{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 kee(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(gee.has(o)){n=o;break}}n!==""&&(t.referrerPolicy=n)}function Dee(){return"allowed"}function _ee(){return"success"}function Lee(){return"success"}function Mee(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function Oee(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&&Sw(t.origin)&&!Sw(BA(t))&&(e=null);break;case"same-origin":Ch(t,BA(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Xc(t,e){return t}function Fee(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Xc(t.domainLookupStartTime,r),domainLookupEndTime:Xc(t.domainLookupEndTime,r),connectionStartTime:Xc(t.connectionStartTime,r),connectionEndTime:Xc(t.connectionEndTime,r),secureConnectionStartTime:Xc(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function Uee(t){return Xc(Bee.now(),t)}function qee(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 gM(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function Gee(t){return{referrerPolicy:t.referrerPolicy}}function Hee(t){let e=t.referrerPolicy;Ca(e);let r=null;if(t.referrer==="client"){let a=AM();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let s=Nw(r),n=Nw(r,!0);s.toString().length>4096&&(s=n);let i=Ch(t,s),o=IA(s)&&!IA(t.url);switch(e){case"origin":return n??Nw(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=BA(t);return Ch(s,a)?s:IA(s)&&!IA(a)?"no-referrer":n}default:return o?"no-referrer":n}}function Nw(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 IA(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 zee(t,e){if(yh===void 0)return!0;let r=EM(e);if(r==="no metadata"||r.length===0)return!0;let s=Vee(r),n=Yee(r,s);for(let i of n){let o=i.algo,a=i.hash,c=yh.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)),Jee(c,a))return!0}return!1}var $ee=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function EM(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=$ee.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();pM.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}function Vee(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 Jee(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 Wee(t){}function Ch(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function jee(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}function Kee(t){return t.controller.state==="aborted"}function Xee(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function Zee(t){return Qee[t.toLowerCase()]??t}function ete(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 tte=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function yM(t,e,r=0,s=1){class n{#e;#t; Line truncated
`);function vte(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function Pte(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 kte(t,e){Bh(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&&wh(t,Rte,i)||i.position===t.length-4&&wh(t,Tte,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=Dte(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",vte(u)||(u=""),p=new Nte([d],l,{type:u})):p=Bte(Buffer.from(d)),Bh(vM(c)),Bh(typeof p=="string"&&vM(p)||bte(p)),n.push(Qte(c,p,l))}}function Dte(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=el(a=>a!==10&&a!==13&&a!==58,t,e);if(o=_w(o,!0,!0,a=>a===9||a===32),!wte.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,el(a=>a===32||a===9,t,e),Ite(o)){case"content-disposition":{if(r=s=null,!wh(t,Ste,e)||(e.position+=17,r=DM(t,e),r===null))return"failure";if(wh(t,kM,e)){let a=e.position+kM.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,s=DM(t,e),s===null))return"failure"}break}case"content-type":{let a=el(c=>c!==10&&c!==13,t,e);a=_w(a,!1,!0,c=>c===9||c===32),n=PM(a);break}case"content-transfer-encoding":{let a=el(c=>c!==10&&c!==13,t,e);a=_w(a,!1,!0,c=>c===9||c===32),i=PM(a);break}default:el(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function DM(t,e){Bh(t[e.position-1]===34);let r=el(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 el(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function _w(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 wh(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}_M.exports={multipartFormDataParser:kte,validateBoundary:Pte}});var sl=h((OLe,VM)=>{"use strict";var QA=me(),{ReadableStreamFrom:_te,isBlobLike:MM,isReadableStreamLike:Lte,readableStreamClose:Mte,createDeferredPromise:Ote,fullyReadBody:Fte,extractMimeType:Ute,utf8DecodeBytes:UM}=Wr(),{FormData:OM}=bA(),{kState:rl}=wo(),{webidl:qte}=$t(),{Blob:Gte}=require("node:buffer"),Lw=require("node:assert"),{isErrored:qM,isDisturbed:Hte}=require("node:stream"),{isArrayBuffer:zte}=require("node:util/types"),{serializeAMimeType:$te}=Sr(),{multipartFormDataParser:Vte}=LM(),Mw;try{let t=require("node:crypto");Mw=e=>t.randomInt(0,e)}catch{Mw=t=>Math.floor(Math.random(t))}var bh=new TextEncoder;function Yte(){}var GM=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,HM;GM&&(HM=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 zM(t,e=!1){let r=null;t instanceof ReadableStream?r=t:MM(t)?r=t.stream():r=new ReadableStream({async pull(c){let l=typeof n=="string"?bh.encode(n):n;l.byteLength&&c.enqueue(l),queueMicrotask(()=>Mte(c))},start(){},type:"bytes"}),Lw(Lte(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(zte(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(QA.isFormDataLike(t)){let c=`----formdata-undici-0${`${Mw(1e11)}`.padStart(11,"0")}`,l=`--${c}\r
var XX=Object.create;var NB=Object.defineProperty;var ZX=Object.getOwnPropertyDescriptor;var eZ=Object.getOwnPropertyNames;var tZ=Object.getPrototypeOf,rZ=Object.prototype.hasOwnProperty;var h=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),sZ=(t,e)=>{for(var r in e)NB(t,r,{get:e[r],enumerable:!0})},nZ=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of eZ(e))!rZ.call(t,n)&&n!==r&&NB(t,n,{get:()=>e[n],enumerable:!(s=ZX(e,n))||s.enumerable});return t};var B=(t,e,r)=>(r=t!=null?XX(tZ(t)):{},nZ(e||!t||!t.__esModule?NB(r,"default",{value:t,enumerable:!0}):r,t));var T_=h(Hc=>{"use strict";var ELe=require("net"),uZ=require("tls"),PB=require("http"),N_=require("https"),AZ=require("events"),yLe=require("assert"),dZ=require("util");Hc.httpOverHttp=pZ;Hc.httpsOverHttp=mZ;Hc.httpOverHttps=hZ;Hc.httpsOverHttps=fZ;function pZ(t){var e=new ki(t);return e.request=PB.request,e}function mZ(t){var e=new ki(t);return e.request=PB.request,e.createSocket=S_,e.defaultPort=443,e}function hZ(t){var e=new ki(t);return e.request=N_.request,e}function fZ(t){var e=new ki(t);return e.request=N_.request,e.createSocket=S_,e.defaultPort=443,e}function ki(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||PB.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,n,i,o){for(var a=R_(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)})}dZ.inherits(ki,AZ.EventEmitter);ki.prototype.addRequest=function(e,r,s,n){var i=this,o=kB({request:e},i.options,R_(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)}})};ki.prototype.createSocket=function(e,r){var s=this,n={};s.sockets.push(n);var i=kB({},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")),Bo("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){Bo("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){Bo("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 Bo("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=d,r(d)}function u(A){o.removeAllListeners(),Bo(`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)}};ki.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 S_(t,e){var r=this;ki.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=kB({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),o=uZ.connect(0,i);r.sockets[r.sockets.indexOf(s)]=o,e(o)})}function R_(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function kB(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 Bo;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Bo=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)}:Bo=function(){};Hc.debug=Bo});var fA=h((ILe,v_)=>{v_.exports=T_()});var He=h((BLe,P_)=>{P_.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((wLe,sL)=>{"use strict";var k_=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[k_]===!0}[k_]=!0},D_=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),DB=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[D_]===!0}[D_]=!0},__=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),_B=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[__]===!0}[__]=!0},L_=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),LB=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[L_]===!0}[L_]=!0},M_=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),MB=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[M_]===!0}[M_]=!0},O_=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),OB=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 Pee(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(fee.has(o)){n=o;break}}n!==""&&(t.referrerPolicy=n)}function kee(){return"allowed"}function Dee(){return"success"}function _ee(){return"success"}function Lee(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function Mee(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&&Rw(t.origin)&&!Rw(QA(t))&&(e=null);break;case"same-origin":yh(t,QA(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Zc(t,e){return t}function Oee(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 Fee(t){return Zc(Iee.now(),t)}function Uee(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 EM(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function qee(t){return{referrerPolicy:t.referrerPolicy}}function Gee(t){let e=t.referrerPolicy;Ba(e);let r=null;if(t.referrer==="client"){let a=dM();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let s=Sw(r),n=Sw(r,!0);s.toString().length>4096&&(s=n);let i=yh(t,s),o=bA(s)&&!bA(t.url);switch(e){case"origin":return n??Sw(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=QA(t);return yh(s,a)?s:bA(s)&&!bA(a)?"no-referrer":n}default:return o?"no-referrer":n}}function Sw(t,e){return Ba(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 bA(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 Hee(t,e){if(Eh===void 0)return!0;let r=yM(e);if(r==="no metadata"||r.length===0)return!0;let s=$ee(r),n=Vee(r,s);for(let i of n){let o=i.algo,a=i.hash,c=Eh.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)),Yee(c,a))return!0}return!1}var zee=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function yM(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=zee.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();mM.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}function $ee(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 Vee(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 Yee(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 Jee(t){}function yh(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function Wee(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}function jee(t){return t.controller.state==="aborted"}function Kee(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function Xee(t){return bee[t.toLowerCase()]??t}function Zee(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Ba(typeof e=="string"),e}var ete=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function CM(t,e,r=0,s=1){class n{#e;#t; Line truncated
`);function Tte(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function vte(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 Pte(t,e){Ih(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&&Bh(t,Ste,i)||i.position===t.length-4&&Bh(t,Rte,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=kte(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",Tte(u)||(u=""),p=new xte([d],l,{type:u})):p=Ite(Buffer.from(d)),Ih(PM(c)),Ih(typeof p=="string"&&PM(p)||wte(p)),n.push(bte(c,p,l))}}function kte(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=Lw(o,!0,!0,a=>a===9||a===32),!Bte.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,tl(a=>a===32||a===9,t,e),Cte(o)){case"content-disposition":{if(r=s=null,!Bh(t,Nte,e)||(e.position+=17,r=_M(t,e),r===null))return"failure";if(Bh(t,DM,e)){let a=e.position+DM.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,s=_M(t,e),s===null))return"failure"}break}case"content-type":{let a=tl(c=>c!==10&&c!==13,t,e);a=Lw(a,!1,!0,c=>c===9||c===32),n=kM(a);break}case"content-transfer-encoding":{let a=tl(c=>c!==10&&c!==13,t,e);a=Lw(a,!1,!0,c=>c===9||c===32),i=kM(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 _M(t,e){Ih(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 Lw(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 Bh(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}LM.exports={multipartFormDataParser:Pte,validateBoundary:vte}});var nl=h((JLe,YM)=>{"use strict";var SA=pe(),{ReadableStreamFrom:Dte,isBlobLike:OM,isReadableStreamLike:_te,readableStreamClose:Lte,createDeferredPromise:Mte,fullyReadBody:Ote,extractMimeType:Fte,utf8DecodeBytes:qM}=Wr(),{FormData:FM}=NA(),{kState:sl}=wo(),{webidl:Ute}=Vt(),{Blob:qte}=require("node:buffer"),Mw=require("node:assert"),{isErrored:GM,isDisturbed:Gte}=require("node:stream"),{isArrayBuffer:Hte}=require("node:util/types"),{serializeAMimeType:zte}=Rr(),{multipartFormDataParser:$te}=MM(),Ow;try{let t=require("node:crypto");Ow=e=>t.randomInt(0,e)}catch{Ow=t=>Math.floor(Math.random(t))}var wh=new TextEncoder;function Vte(){}var HM=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,zM;HM&&(zM=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Gte(e)&&!GM(e)&&e.cancel("Response object has been garbage collected").catch(Vte)}));function $M(t,e=!1){let r=null;t instanceof ReadableStream?r=t:OM(t)?r=t.stream():r=new ReadableStream({async pull(c){let l=typeof n=="string"?wh.encode(n):n;l.byteLength&&c.enqueue(l),queueMicrotask(()=>Lte(c))},start(){},type:"bytes"}),Mw(_te(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(Hte(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(SA.isFormDataLike(t)){let c=`----formdata-undici-0${`${Ow(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=bh.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=wh.encode(l+`; name="${u(A(y))}"\r
\r
${A(g)}\r
`);d.push(E),i+=E.byteLength}else{let E=bh.encode(`${l}; name="${u(A(y))}"`+(g.name?`; filename="${u(g.name)}"`:"")+`\r
`);d.push(E),i+=E.byteLength}else{let E=wh.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=bh.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(MM(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(QA.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:_te(t)}if((typeof n=="string"||QA.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 Jte(t,e=!1){return t instanceof ReadableStream&&(Lw(!QA.isDisturbed(t),"The body has already been consumed."),Lw(!t.locked,"The stream is locked.")),zM(t,e)}function Wte(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}function jte(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function Kte(t){return{blob(){return tl(this,r=>{let s=FM(this);return s===null?s="":s&&(s=$te(s)),new Gte([r],{type:s})},t)},arrayBuffer(){return tl(this,r=>new Uint8Array(r).buffer,t)},text(){return tl(this,UM,t)},json(){return tl(this,Zte,t)},formData(){return tl(this,r=>{let s=FM(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=Vte(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new OM;return i[rl]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new OM;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 tl(this,r=>new Uint8Array(r),t)}}}function Xte(t){Object.assign(t.prototype,Kte(t))}async function tl(t,e,r){if(qte.brandCheck(t,r),$M(t))throw new TypeError("Body is unusable: Body has already been read");jte(t[rl]);let s=Ote(),n=o=>s.reject(o),i=o=>{try{s.resolve(e(o))}catch(a){n(a)}};return t[rl].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await Fte(t[rl].body,i,n),s.promise)}function $M(t){let e=t[rl].body;return e!=null&&(e.stream.locked||QA.isDisturbed(e.stream))}function Zte(t){return JSON.parse(UM(t))}function FM(t){let e=t[rl].headersList,r=Ute(e);return r==="failure"?null:r}VM.exports={extractBody:zM,safelyExtractBody:Jte,cloneBody:Wte,mixinBody:Xte,streamRegistry:HM,hasFinalizationRegistry:GM,bodyUnusable:$M}});var sO=h((FLe,rO)=>{"use strict";var K=require("node:assert"),se=me(),{channels:YM}=zc(),Ow=yw(),{RequestContentLengthMismatchError:Ia,ResponseContentLengthMismatchError:ere,RequestAbortedError:ZM,HeadersTimeoutError:tre,HeadersOverflowError:rre,SocketError:Th,InformationalError:nl,BodyTimeoutError:sre,HTTPParserError:nre,ResponseExceededMaxSizeError:ire}=Qe(),{kUrl:eO,kReset:Rr,kClient:Gw,kParser:Ze,kBlocking:SA,kRunning:Wt,kPending:ore,kSize:JM,kWriting:Qo,kQueue:tn,kNoRef:xA,kKeepAliveDefaultTimeout:are,kHostHeader:cre,kPendingIdx:lre,kRunningIdx:Bs,kError:ws,kPipelining:Sh,kSocket:il,kKeepAliveTimeoutValue:vh,kMaxHeadersSize:Fw,kKeepAliveMaxTimeout:ure,kKeepAliveTimeoutThreshold:Are,kHeadersTimeout:dre,kBodyTimeout:pre,kStrictContentLength:Hw,kMaxRequests:WM,kCounter:mre,kMaxResponseSize:hre,kOnError:fre,kResume:bo,kHTTPContext:tO}=ze(),_n=HL(),gre=Buffer.alloc(0),Qh=Buffer[Symbol.species],xh=se.addListener,Ere=se.removeAllListeners,Uw;async function yre(){let t=process.env.JEST_WORKER_ID?Bw():void 0,e;try{e=await WebAssembly.compile(VL())}catch{e=await WebAssembly.compile(t||Bw())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,n)=>0,wasm_on_status:(r,s,n)=>{K(St.ptr===r);let i=s-Mn+Ln.byteOffset;return St.onStatus(new Qh(Ln.buffer,i,n))||0},wasm_on_message_begin:r=>(K(St.ptr===r),St.onMessageBegin()||0),wasm_on_header_field:(r,s,n)=>{K(St.ptr===r);let i=s-Mn+Ln.byteOffset;return St.onHeaderField(new Qh(Ln.buffer,i,n))||0},wasm_on_header_value:(r,s,n)=>{K(St.ptr===r);let i=s-Mn+Ln.byteOffset;return St.onHeaderValue(new Qh(Ln.buffer,i,n))||0},wasm_on_headers_complete:(r,s,n,i)=>(K(St.ptr===r),St.onHeadersComplete(s,!!n,!!i)||0),wasm_on_body:(r,s,n)=>{K(St.ptr===r);let i=s-Mn+Ln.byteOffset;return St.onBody(new Qh(Ln.buffer,i,n))||0},wasm_on_message_complete:r=>(K(St.ptr===r),St.onMessageComplete()||0)}})}var qw=null,zw=yre();zw.catch();var St=null,Ln=null,Nh=0,Mn=null,Cre=0,NA=1,ol=2|NA,Rh=4|NA,$w=8|Cre,Vw=class{constructor(e,r,{exports:s}){K(Number.isFinite(e[Fw])&&e[Fw]>0),this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(_n.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=wh.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(OM(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(SA.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:Dte(t)}if((typeof n=="string"||SA.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(!GM(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 Yte(t,e=!1){return t instanceof ReadableStream&&(Mw(!SA.isDisturbed(t),"The body has already been consumed."),Mw(!t.locked,"The stream is locked.")),$M(t,e)}function Jte(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}function Wte(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function jte(t){return{blob(){return rl(this,r=>{let s=UM(this);return s===null?s="":s&&(s=zte(s)),new qte([r],{type:s})},t)},arrayBuffer(){return rl(this,r=>new Uint8Array(r).buffer,t)},text(){return rl(this,qM,t)},json(){return rl(this,Xte,t)},formData(){return rl(this,r=>{let s=UM(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=$te(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new FM;return i[sl]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new FM;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 Kte(t){Object.assign(t.prototype,jte(t))}async function rl(t,e,r){if(Ute.brandCheck(t,r),VM(t))throw new TypeError("Body is unusable: Body has already been read");Wte(t[sl]);let s=Mte(),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 Ote(t[sl].body,i,n),s.promise)}function VM(t){let e=t[sl].body;return e!=null&&(e.stream.locked||SA.isDisturbed(e.stream))}function Xte(t){return JSON.parse(qM(t))}function UM(t){let e=t[sl].headersList,r=Fte(e);return r==="failure"?null:r}YM.exports={extractBody:$M,safelyExtractBody:Yte,cloneBody:Jte,mixinBody:Kte,streamRegistry:zM,hasFinalizationRegistry:HM,bodyUnusable:VM}});var nO=h((WLe,sO)=>{"use strict";var K=require("node:assert"),re=pe(),{channels:JM}=$c(),Fw=Cw(),{RequestContentLengthMismatchError:wa,ResponseContentLengthMismatchError:Zte,RequestAbortedError:eO,HeadersTimeoutError:ere,HeadersOverflowError:tre,SocketError:Rh,InformationalError:il,BodyTimeoutError:rre,HTTPParserError:sre,ResponseExceededMaxSizeError:nre}=be(),{kUrl:tO,kReset:Tr,kClient:Hw,kParser:Xe,kBlocking:vA,kRunning:Xt,kPending:ire,kSize:WM,kWriting:Qo,kQueue:rn,kNoRef:RA,kKeepAliveDefaultTimeout:ore,kHostHeader:are,kPendingIdx:cre,kRunningIdx:Bs,kError:ws,kPipelining:Nh,kSocket:ol,kKeepAliveTimeoutValue:Th,kMaxHeadersSize:Uw,kKeepAliveMaxTimeout:lre,kKeepAliveTimeoutThreshold:ure,kHeadersTimeout:Are,kBodyTimeout:dre,kStrictContentLength:zw,kMaxRequests:jM,kCounter:pre,kMaxResponseSize:mre,kOnError:hre,kResume:bo,kHTTPContext:rO}=He(),_n=zL(),fre=Buffer.alloc(0),bh=Buffer[Symbol.species],Qh=re.addListener,gre=re.removeAllListeners,qw;async function Ere(){let t=process.env.JEST_WORKER_ID?ww():void 0,e;try{e=await WebAssembly.compile(YL())}catch{e=await WebAssembly.compile(t||ww())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,n)=>0,wasm_on_status:(r,s,n)=>{K(Rt.ptr===r);let i=s-Mn+Ln.byteOffset;return Rt.onStatus(new bh(Ln.buffer,i,n))||0},wasm_on_message_begin:r=>(K(Rt.ptr===r),Rt.onMessageBegin()||0),wasm_on_header_field:(r,s,n)=>{K(Rt.ptr===r);let i=s-Mn+Ln.byteOffset;return Rt.onHeaderField(new bh(Ln.buffer,i,n))||0},wasm_on_header_value:(r,s,n)=>{K(Rt.ptr===r);let i=s-Mn+Ln.byteOffset;return Rt.onHeaderValue(new bh(Ln.buffer,i,n))||0},wasm_on_headers_complete:(r,s,n,i)=>(K(Rt.ptr===r),Rt.onHeadersComplete(s,!!n,!!i)||0),wasm_on_body:(r,s,n)=>{K(Rt.ptr===r);let i=s-Mn+Ln.byteOffset;return Rt.onBody(new bh(Ln.buffer,i,n))||0},wasm_on_message_complete:r=>(K(Rt.ptr===r),Rt.onMessageComplete()||0)}})}var Gw=null,$w=Ere();$w.catch();var Rt=null,Ln=null,xh=0,Mn=null,yre=0,TA=1,al=2|TA,Sh=4|TA,Vw=8|yre,Yw=class{constructor(e,r,{exports:s}){K(Number.isFinite(e[Uw])&&e[Uw]>0),this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(_n.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[cre],i?f+=`connection: upgrade\r
`:f+=t[are],i?f+=`connection: upgrade\r
upgrade: ${i}\r
`:t[Sh]&&!p[Rr]?f+=`connection: keep-alive\r
`:t[Nh]&&!p[Tr]?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 YM.sendHeaders.hasSubscribers&&YM.sendHeaders.publish({request:e,headers:f,socket:p}),!c||d===0?KM(m,null,t,e,p,u,f,A):se.isBuffer(c)?KM(m,c,t,e,p,u,f,A):se.isBlobLike(c)?typeof c.stream=="function"?XM(m,c.stream(),t,e,p,u,f,A):xre(m,c,t,e,p,u,f,A):se.isStream(c)?Qre(m,c,t,e,p,u,f,A):se.isIterable(c)?XM(m,c,t,e,p,u,f,A):K(!1),!0}function Qre(t,e,r,s,n,i,o,a){K(i!==0||r[Wt]===0,"stream body cannot be pipelined");let c=!1,l=new Ph({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 ZM;queueMicrotask(()=>p(m))}},p=function(m){if(!c){if(c=!0,K(n.destroyed||n[Qo]&&r[Wt]<=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 KM(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
`}return JM.sendHeaders.hasSubscribers&&JM.sendHeaders.publish({request:e,headers:f,socket:p}),!c||d===0?XM(m,null,t,e,p,u,f,A):re.isBuffer(c)?XM(m,c,t,e,p,u,f,A):re.isBlobLike(c)?typeof c.stream=="function"?ZM(m,c.stream(),t,e,p,u,f,A):Qre(m,c,t,e,p,u,f,A):re.isStream(c)?bre(m,c,t,e,p,u,f,A):re.isIterable(c)?ZM(m,c,t,e,p,u,f,A):K(!1),!0}function bre(t,e,r,s,n,i,o,a){K(i!==0||r[Xt]===0,"stream body cannot be pipelined");let c=!1,l=new vh({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 eO;queueMicrotask(()=>p(m))}},p=function(m){if(!c){if(c=!0,K(n.destroyed||n[Qo]&&r[Xt]<=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 XM(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
\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(n[Rr]=!0)):i===0?n.write(`${o}content-length: 0\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(n[Tr]=!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[bo]()}catch(c){t(c)}}async function xre(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
`,"latin1")),s.onRequestSent(),r[bo]()}catch(c){t(c)}}async function Qre(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 wa;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[Rr]=!0),r[bo]()}catch(c){t(c)}}async function XM(t,e,r,s,n,i,o,a){K(i!==0||r[Wt]===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[ws]?p(n[ws]):c=d});n.on("close",l).on("drain",l);let A=new Ph({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(n[ws])throw n[ws];A.write(d)||await u()}A.end()}catch(d){A.destroy(d)}finally{n.off("close",l).off("drain",l)}}var Ph=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[Qo]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[ws])throw r[ws];if(r.destroyed)return!1;let l=Buffer.byteLength(e);if(!l)return!0;if(n!==null&&o+l>n){if(i[Hw])throw new Ia;process.emitWarning(new Ia)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[Rr]=!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[Tr]=!0),r[bo]()}catch(c){t(c)}}async function ZM(t,e,r,s,n,i,o,a){K(i!==0||r[Xt]===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[ws]?p(n[ws]):c=d});n.on("close",l).on("drain",l);let A=new vh({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(n[ws])throw n[ws];A.write(d)||await u()}A.end()}catch(d){A.destroy(d)}finally{n.off("close",l).off("drain",l)}}var vh=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[Qo]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[ws])throw r[ws];if(r.destroyed)return!1;let l=Buffer.byteLength(e);if(!l)return!0;if(n!==null&&o+l>n){if(i[zw])throw new wa;process.emitWarning(new wa)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[Tr]=!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===ol&&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[Qo]=!1,e[ws])throw e[ws];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[Xe].timeout&&r[Xe].timeoutType===al&&r[Xe].timeout.refresh&&r[Xe].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Qo]=!1,e[ws])throw e[ws];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[Hw])throw new Ia;process.emitWarning(new Ia)}e[Ze].timeout&&e[Ze].timeoutType===ol&&e[Ze].timeout.refresh&&e[Ze].timeout.refresh(),s[bo]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[Qo]=!1,e&&(K(s[Wt]<=1,"pipeline should only contain this request"),n(e))}};rO.exports=Ire});var AO=h((ULe,uO)=>{"use strict";var bs=require("node:assert"),{pipeline:Nre}=require("node:stream"),ge=me(),{RequestContentLengthMismatchError:Yw,RequestAbortedError:nO,SocketError:RA,InformationalError:Jw}=Qe(),{kUrl:kh,kReset:_h,kClient:al,kRunning:Lh,kPending:Sre,kQueue:xo,kPendingIdx:Ww,kRunningIdx:rn,kError:nn,kSocket:Ot,kStrictContentLength:Rre,kOnError:jw,kMaxConcurrentStreams:lO,kHTTP2Session:sn,kResume:No,kSize:Tre,kHTTPContext:vre}=ze(),qi=Symbol("open streams"),iO,oO=!1,Dh;try{Dh=require("node:http2")}catch{Dh={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Pre,HTTP2_HEADER_METHOD:kre,HTTP2_HEADER_PATH:Dre,HTTP2_HEADER_SCHEME:_re,HTTP2_HEADER_CONTENT_LENGTH:Lre,HTTP2_HEADER_EXPECT:Mre,HTTP2_HEADER_STATUS:Ore}}=Dh;function Fre(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 Ure(t,e){t[Ot]=e,oO||(oO=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=Dh.connect(t[kh],{createConnection:()=>e,peerMaxConcurrentStreams:t[lO]});r[qi]=0,r[al]=t,r[Ot]=e,ge.addListener(r,"error",Gre),ge.addListener(r,"frameError",Hre),ge.addListener(r,"end",zre),ge.addListener(r,"goaway",$re),ge.addListener(r,"close",function(){let{[al]:n}=this,{[Ot]:i}=n,o=this[Ot][nn]||this[nn]||new RA("closed",ge.getSocketInfo(i));if(n[sn]=null,n.destroyed){bs(n[Sre]===0);let a=n[xo].splice(n[rn]);for(let c=0;c<a.length;c++){let l=a[c];ge.errorRequest(n,l,o)}}}),r.unref(),t[sn]=r,e[sn]=r,ge.addListener(e,"error",function(n){bs(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[nn]=n,this[al][jw](n)}),ge.addListener(e,"end",function(){ge.destroy(this,new RA("other side closed",ge.getSocketInfo(this)))}),ge.addListener(e,"close",function(){let n=this[nn]||new RA("closed",ge.getSocketInfo(this));t[Ot]=null,this[sn]!=null&&this[sn].destroy(n),t[Ww]=t[rn],bs(t[Lh]===0),t.emit("disconnect",t[kh],[t],n),t[No]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return Yre(t,...n)},resume(){qre(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function qre(t){let e=t[Ot];e?.destroyed===!1&&(t[Tre]===0&&t[lO]===0?(e.unref(),t[sn].unref()):(e.ref(),t[sn].ref()))}function Gre(t){bs(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ot][nn]=t,this[al][jw](t)}function Hre(t,e,r){if(r===0){let s=new Jw(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Ot][nn]=s,this[al][jw](s)}}function zre(){let t=new RA("other side closed",ge.getSocketInfo(this[Ot]));this.destroy(t),ge.destroy(this[Ot],t)}function $re(t){let e=this[nn]||new RA(`HTTP/2: "GOAWAY" frame received with code ${t}`,ge.getSocketInfo(this)),r=this[al];if(r[Ot]=null,r[vre]=null,this[sn]!=null&&(this[sn].destroy(e),this[sn]=null),ge.destroy(this[Ot],e),r[rn]<r[xo].length){let s=r[xo][r[rn]];r[xo][r[rn]++]=null,ge.errorRequest(r,s,e),r[Ww]=r[rn]}bs(r[Lh]===0),r.emit("disconnect",r[kh],[r],e),r[No]()}function Vre(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function Yre(t,e){let r=t[sn],{method:s,path:n,host:i,upgrade:o,expectContinue:a,signal:c,headers:l}=e,{body:u}=e;if(o)return ge.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let A={};for(let I=0;I<l.length;I+=2){let Q=l[I+0],P=l[I+1];if(Array.isArray(P))for(let F=0;F<P.length;F++)A[Q]?A[Q]+=`,${P[F]}`:A[Q]=P[F];else A[Q]=P}let d,{hostname:p,port:m}=t[kh];A[Pre]=i||`${p}${m?`:${m}`:""}`,A[kre]=s;let f=I=>{e.aborted||e.completed||(I=I||new nO,ge.errorRequest(t,e,I),d!=null&&ge.destroy(d,I),ge.destroy(u,I),t[xo][t[rn]++]=null,t[No]())};try{e.onConnect(f)}catch(I){ge.errorRequest(t,e,I)}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[qi],t[xo][t[rn]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[qi],t[xo][t[rn]++]=null}),d.once("close",()=>{r[qi]-=1,r[qi]===0&&r.unref()}),!0;A[Dre]=n,A[_re]="https";let y=s==="PUT"||s==="POST"||s==="PATCH";u&&typeof u.read=="function"&&u.read(0);let g=ge.bodyLength(u);if(ge.isFormDataLike(u)){iO??=sl().extractBody;let[I,Q]=iO(u);A["content-type"]=Q,u=I.stream,g=I.length}if(g==null&&(g=e.contentLength),(g===0||!y)&&(g=null),Vre(s)&&g>0&&e.contentLength!=null&&e.contentLength!==g){if(t[Rre])return ge.errorRequest(t,e,new Yw),!1;process.emitWarning(new Yw)}g!=null&&(bs(u,"no body must not have content length"),A[Lre]=`${g}`),r.ref();let E=s==="GET"||s==="HEAD"||u===null;return a?(A[Mre]="100-continue",d=r.request(A,{endStream:E,signal:c}),d.once("c Line truncated
`,this[yse]=c??3e5,this[Ese]=n??3e5,this[Cse]=E??!0,this[Ise]=I,this[eb]=P,this[Ro]=null,this[xse]=pe>-1?pe:-1,this[Sse]=z??100,this[At]=null,this[on]=[],this[Hi]=0,this[an]=0,this[kA]=ye=>rb(this,ye),this[Nse]=ye=>wO(this,ye)}get pipelining(){return this[Uh]}set pipelining(e){this[Uh]=e,this[kA](!0)}get[LA](){return this[on].length-this[an]}get[_A](){return this[an]-this[Hi]}get[DA](){return this[on].length-this[Hi]}get[Ase](){return!!this[At]&&!this[ll]&&!this[At].destroyed}get[Zw](){return!!(this[At]?.busy(null)||this[DA]>=(BO(this)||1)||this[LA]>0)}[use](e){bO(this),this.once("connect",e)}[Qse](e,r){let s=e.origin||this[Fn].origin,n=new nse(s,e,r);return this[on].push(n),this[wa]||(Ba.bodyLength(n.body)==null&&Ba.isIterable(n.body)?(this[wa]=1,queueMicrotask(()=>rb(this))):this[kA](!0)),this[wa]&&this[To]!==2&&this[Zw]&&(this[To]=2),this[To]<2}async[wse](){return new Promise(e=>{this[DA]?this[Ro]=e:e(null)})}async[bse](e){return new Promise(r=>{let s=this[on].splice(this[an]);for(let i=0;i<s.length;i++){let o=s[i];Ba.errorRequest(this,o,e)}let n=()=>{this[Ro]&&(this[Ro](),this[Ro]=null),r(null)};this[At]?(this[At].destroy(e,n),this[At]=null):queueMicrotask(n),this[kA]()})}},vse=Fh();function wO(t,e){if(t[_A]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Gi(t[an]===t[Hi]);let r=t[on].splice(t[Hi]);for(let s=0;s<r.length;s++){let n=r[s];Ba.errorRequest(t,n,e)}Gi(t[DA]===0)}}async function bO(t){Gi(!t[ll]),Gi(!t[At]);let{host:e,hostname:r,protocol:s,port:n}=t[Fn];if(r[0]==="["){let i=r.indexOf("]");Gi(i!==-1);let o=r.substring(1,i);Gi(IO.isIP(o)),r=o}t[ll]=!0,cl.beforeConnect.hasSubscribers&&cl.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[At]?.version,servername:t[So],localAddress:t[PA]},connector:t[vA]});try{let i=await new Promise((o,a)=>{t[vA]({host:e,hostname:r,protocol:s,port:n,servername:t[So],localAddress:t[PA]},(c,l)=>{c?a(c):o(l)})});if(t.destroyed){Ba.destroy(i.on("error",yO),new ase);return}Gi(i);try{t[At]=i.alpnProtocol==="h2"?await Tse(t,i):await Rse(t,i)}catch(o){throw i.destroy().on("error",yO),o}t[ll]=!1,i[Bse]=0,i[eb]=t[eb],i[lse]=t,i[pse]=null,cl.connected.hasSubscribers&&cl.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[At]?.version,servername:t[So],localAddress:t[PA]},connector:t[vA],socket:i}),t.emit("connect",t[Fn],[t])}catch(i){if(t.destroyed)return;if(t[ll]=!1,cl.connectError.hasSubscribers&&cl.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[At]?.version,servername:t[So],localAddress:t[PA]},connector:t[vA],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Gi(t[_A]===0);t[LA]>0&&t[on][t[an]].servername===t[So];){let o=t[on][t[an]++];Ba.errorRequest(t,o,i)}else wO(t,i);t.emit("connectionError",t[Fn],[t],i)}t[kA]()}function CO(t){t[To]=0,t.emit("drain",t[Fn],[t])}function rb(t,e){t[wa]!==2&&(t[wa]=2,Pse(t,e),t[wa]=0,t[Hi]>256&&(t[on].splice(0,t[Hi]),t[an]-=t[Hi],t[Hi]=0))}function Pse(t,e){for(;;){if(t.destroyed){Gi(t[LA]===0);return}if(t[Ro]&&!t[DA]){t[Ro](),t[Ro]=null;return}if(t[At]&&t[At].resume(),t[Zw])t[To]=2;else if(t[To]===2){e?(t[To]=1,queueMicrotask(()=>CO(t))):CO(t);continue}if(t[LA]===0||t[_A]>=(BO(t)||1))return;let r=t[on][t[an]];if(t[Fn].protocol==="https:"&&t[So]!==r.servername){if(t[_A]>0)return;t[So]=r.servername,t[At]?.destroy(new ose("servername changed"),()=>{t[At]=null,rb(t)})}if(t[ll])return;if(!t[At]){bO(t);return}if(t[At].destroyed||t[At].busy(r))return;!r.aborted&&t[At].write(r)?t[an]++:t[on].splice(t[an],1)}}QO.exports=tb});var sb=h(($Le,xO)=>{"use strict";var qh=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)}};xO.exports=class{constructor(){this.head=this.tail=new qh}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new qh),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var SO=h((VLe,NO)=>{var{kFree:kse,kConnected:Dse,kPending:_se,kQueued:Lse,kRunning:Mse,kSize:Ose}=ze(),ba=Symbol("pool"),nb=class{constructor(e){this[ba]=e}get connected(){return this[ba][Dse]}get free(){return this[ba][kse]}get pending(){return this[ba][_se]}get queued(){return this[ba][Lse]}get running(){return this[ba][Mse]}get size(){return this[ba][Ose]}};NO.exports=nb});var ub=h((YLe,OO)=>{"use strict";var Fse=Jc(),Use=sb(),{kConnected:ib,kSize:RO,kRunning:TO,kPending:vO,kQueued:MA,kBusy:qse,kFree:Gse,kUrl:Hse,kClose:zse,kDestroy:$se,kDispatch:Vse}=ze(),Yse=SO(),Tr=Symbol("clients"),ur=Symbol("needDrain"),OA=Symbol("queue"),ob=Symbol("closed resolve"),ab=Symbol("onDrain"),PO=Symbol("onConnect"),kO=Symbol("onDisconnect"),DO=Symbol("onConnectionError"),cb=Symbol( Line truncated
`,"latin1"),r!==null&&n!==r){if(s[zw])throw new wa;process.emitWarning(new wa)}e[Xe].timeout&&e[Xe].timeoutType===al&&e[Xe].timeout.refresh&&e[Xe].timeout.refresh(),s[bo]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[Qo]=!1,e&&(K(s[Xt]<=1,"pipeline should only contain this request"),n(e))}};sO.exports=Cre});var dO=h((jLe,AO)=>{"use strict";var bs=require("node:assert"),{pipeline:xre}=require("node:stream"),fe=pe(),{RequestContentLengthMismatchError:Jw,RequestAbortedError:iO,SocketError:PA,InformationalError:Ww}=be(),{kUrl:Ph,kReset:Dh,kClient:cl,kRunning:_h,kPending:Nre,kQueue:xo,kPendingIdx:jw,kRunningIdx:sn,kError:on,kSocket:Ft,kStrictContentLength:Sre,kOnError:Kw,kMaxConcurrentStreams:uO,kHTTP2Session:nn,kResume:No,kSize:Rre,kHTTPContext:Tre}=He(),Fi=Symbol("open streams"),oO,aO=!1,kh;try{kh=require("node:http2")}catch{kh={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:vre,HTTP2_HEADER_METHOD:Pre,HTTP2_HEADER_PATH:kre,HTTP2_HEADER_SCHEME:Dre,HTTP2_HEADER_CONTENT_LENGTH:_re,HTTP2_HEADER_EXPECT:Lre,HTTP2_HEADER_STATUS:Mre}}=kh;function Ore(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 Fre(t,e){t[Ft]=e,aO||(aO=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=kh.connect(t[Ph],{createConnection:()=>e,peerMaxConcurrentStreams:t[uO]});r[Fi]=0,r[cl]=t,r[Ft]=e,fe.addListener(r,"error",qre),fe.addListener(r,"frameError",Gre),fe.addListener(r,"end",Hre),fe.addListener(r,"goaway",zre),fe.addListener(r,"close",function(){let{[cl]:n}=this,{[Ft]:i}=n,o=this[Ft][on]||this[on]||new PA("closed",fe.getSocketInfo(i));if(n[nn]=null,n.destroyed){bs(n[Nre]===0);let a=n[xo].splice(n[sn]);for(let c=0;c<a.length;c++){let l=a[c];fe.errorRequest(n,l,o)}}}),r.unref(),t[nn]=r,e[nn]=r,fe.addListener(e,"error",function(n){bs(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[on]=n,this[cl][Kw](n)}),fe.addListener(e,"end",function(){fe.destroy(this,new PA("other side closed",fe.getSocketInfo(this)))}),fe.addListener(e,"close",function(){let n=this[on]||new PA("closed",fe.getSocketInfo(this));t[Ft]=null,this[nn]!=null&&this[nn].destroy(n),t[jw]=t[sn],bs(t[_h]===0),t.emit("disconnect",t[Ph],[t],n),t[No]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return Vre(t,...n)},resume(){Ure(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function Ure(t){let e=t[Ft];e?.destroyed===!1&&(t[Rre]===0&&t[uO]===0?(e.unref(),t[nn].unref()):(e.ref(),t[nn].ref()))}function qre(t){bs(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ft][on]=t,this[cl][Kw](t)}function Gre(t,e,r){if(r===0){let s=new Ww(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Ft][on]=s,this[cl][Kw](s)}}function Hre(){let t=new PA("other side closed",fe.getSocketInfo(this[Ft]));this.destroy(t),fe.destroy(this[Ft],t)}function zre(t){let e=this[on]||new PA(`HTTP/2: "GOAWAY" frame received with code ${t}`,fe.getSocketInfo(this)),r=this[cl];if(r[Ft]=null,r[Tre]=null,this[nn]!=null&&(this[nn].destroy(e),this[nn]=null),fe.destroy(this[Ft],e),r[sn]<r[xo].length){let s=r[xo][r[sn]];r[xo][r[sn]++]=null,fe.errorRequest(r,s,e),r[jw]=r[sn]}bs(r[_h]===0),r.emit("disconnect",r[Ph],[r],e),r[No]()}function $re(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function Vre(t,e){let r=t[nn],{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 I=0;I<l.length;I+=2){let x=l[I+0],k=l[I+1];if(Array.isArray(k))for(let U=0;U<k.length;U++)A[x]?A[x]+=`,${k[U]}`:A[x]=k[U];else A[x]=k}let d,{hostname:p,port:m}=t[Ph];A[vre]=i||`${p}${m?`:${m}`:""}`,A[Pre]=s;let f=I=>{e.aborted||e.completed||(I=I||new iO,fe.errorRequest(t,e,I),d!=null&&fe.destroy(d,I),fe.destroy(u,I),t[xo][t[sn]++]=null,t[No]())};try{e.onConnect(f)}catch(I){fe.errorRequest(t,e,I)}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[Fi],t[xo][t[sn]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[Fi],t[xo][t[sn]++]=null}),d.once("close",()=>{r[Fi]-=1,r[Fi]===0&&r.unref()}),!0;A[kre]=n,A[Dre]="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)){oO??=nl().extractBody;let[I,x]=oO(u);A["content-type"]=x,u=I.stream,g=I.length}if(g==null&&(g=e.contentLength),(g===0||!y)&&(g=null),$re(s)&&g>0&&e.contentLength!=null&&e.contentLength!==g){if(t[Sre])return fe.errorRequest(t,e,new Jw),!1;process.emitWarning(new Jw)}g!=null&&(bs(u,"no body must not have content length"),A[_re]=`${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[Ese]=c??3e5,this[gse]=n??3e5,this[yse]=E??!0,this[Cse]=I,this[tb]=k,this[Ro]=null,this[Qse]=de>-1?de:-1,this[Nse]=$??100,this[At]=null,this[an]=[],this[qi]=0,this[cn]=0,this[LA]=Ee=>sb(this,Ee),this[xse]=Ee=>bO(this,Ee)}get pipelining(){return this[Fh]}set pipelining(e){this[Fh]=e,this[LA](!0)}get[FA](){return this[an].length-this[cn]}get[OA](){return this[cn]-this[qi]}get[MA](){return this[an].length-this[qi]}get[use](){return!!this[At]&&!this[ul]&&!this[At].destroyed}get[eb](){return!!(this[At]?.busy(null)||this[MA]>=(wO(this)||1)||this[FA]>0)}[lse](e){QO(this),this.once("connect",e)}[bse](e,r){let s=e.origin||this[Fn].origin,n=new sse(s,e,r);return this[an].push(n),this[Qa]||(ba.bodyLength(n.body)==null&&ba.isIterable(n.body)?(this[Qa]=1,queueMicrotask(()=>sb(this))):this[LA](!0)),this[Qa]&&this[To]!==2&&this[eb]&&(this[To]=2),this[To]<2}async[Bse](){return new Promise(e=>{this[MA]?this[Ro]=e:e(null)})}async[wse](e){return new Promise(r=>{let s=this[an].splice(this[cn]);for(let i=0;i<s.length;i++){let o=s[i];ba.errorRequest(this,o,e)}let n=()=>{this[Ro]&&(this[Ro](),this[Ro]=null),r(null)};this[At]?(this[At].destroy(e,n),this[At]=null):queueMicrotask(n),this[LA]()})}},Tse=Oh();function bO(t,e){if(t[OA]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Ui(t[cn]===t[qi]);let r=t[an].splice(t[qi]);for(let s=0;s<r.length;s++){let n=r[s];ba.errorRequest(t,n,e)}Ui(t[MA]===0)}}async function QO(t){Ui(!t[ul]),Ui(!t[At]);let{host:e,hostname:r,protocol:s,port:n}=t[Fn];if(r[0]==="["){let i=r.indexOf("]");Ui(i!==-1);let o=r.substring(1,i);Ui(BO.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[So],localAddress:t[_A]},connector:t[DA]});try{let i=await new Promise((o,a)=>{t[DA]({host:e,hostname:r,protocol:s,port:n,servername:t[So],localAddress:t[_A]},(c,l)=>{c?a(c):o(l)})});if(t.destroyed){ba.destroy(i.on("error",CO),new ose);return}Ui(i);try{t[At]=i.alpnProtocol==="h2"?await Rse(t,i):await Sse(t,i)}catch(o){throw i.destroy().on("error",CO),o}t[ul]=!1,i[Ise]=0,i[tb]=t[tb],i[cse]=t,i[dse]=null,ll.connected.hasSubscribers&&ll.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[At]?.version,servername:t[So],localAddress:t[_A]},connector:t[DA],socket:i}),t.emit("connect",t[Fn],[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[So],localAddress:t[_A]},connector:t[DA],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Ui(t[OA]===0);t[FA]>0&&t[an][t[cn]].servername===t[So];){let o=t[an][t[cn]++];ba.errorRequest(t,o,i)}else bO(t,i);t.emit("connectionError",t[Fn],[t],i)}t[LA]()}function IO(t){t[To]=0,t.emit("drain",t[Fn],[t])}function sb(t,e){t[Qa]!==2&&(t[Qa]=2,vse(t,e),t[Qa]=0,t[qi]>256&&(t[an].splice(0,t[qi]),t[cn]-=t[qi],t[qi]=0))}function vse(t,e){for(;;){if(t.destroyed){Ui(t[FA]===0);return}if(t[Ro]&&!t[MA]){t[Ro](),t[Ro]=null;return}if(t[At]&&t[At].resume(),t[eb])t[To]=2;else if(t[To]===2){e?(t[To]=1,queueMicrotask(()=>IO(t))):IO(t);continue}if(t[FA]===0||t[OA]>=(wO(t)||1))return;let r=t[an][t[cn]];if(t[Fn].protocol==="https:"&&t[So]!==r.servername){if(t[OA]>0)return;t[So]=r.servername,t[At]?.destroy(new ise("servername changed"),()=>{t[At]=null,sb(t)})}if(t[ul])return;if(!t[At]){QO(t);return}if(t[At].destroyed||t[At].busy(r))return;!r.aborted&&t[At].write(r)?t[cn]++:t[an].splice(t[cn],1)}}xO.exports=rb});var nb=h((tMe,NO)=>{"use strict";var Uh=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)}};NO.exports=class{constructor(){this.head=this.tail=new Uh}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Uh),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var RO=h((rMe,SO)=>{var{kFree:Pse,kConnected:kse,kPending:Dse,kQueued:_se,kRunning:Lse,kSize:Mse}=He(),xa=Symbol("pool"),ib=class{constructor(e){this[xa]=e}get connected(){return this[xa][kse]}get free(){return this[xa][Pse]}get pending(){return this[xa][Dse]}get queued(){return this[xa][_se]}get running(){return this[xa][Lse]}get size(){return this[xa][Mse]}};SO.exports=ib});var Ab=h((sMe,FO)=>{"use strict";var Ose=Wc(),Fse=nb(),{kConnected:ob,kSize:TO,kRunning:vO,kPending:PO,kQueued:UA,kBusy:Use,kFree:qse,kUrl:Gse,kClose:Hse,kDestroy:zse,kDispatch:$se}=He(),Vse=RO(),vr=Symbol("clients"),Ar=Symbol("needDrain"),qA=Symbol("queue"),ab=Symbol("closed resolve"),cb=Symbol("onDrain"),kO=Symbol("onConnect"),DO=Symbol("onDisconnect"),_O=Symbol("onConnectionError"),lb=Symbol( Line truncated
${s.count} ${s.noun} ${s.is} pending:
${e.format(r)}
`.trim())}};zU.exports=uQ});var of=h((IMe,WU)=>{"use strict";var VU=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:yoe}=Qe(),Coe=dl();JU()===void 0&&YU(new Coe);function YU(t){if(!t||typeof t.dispatch!="function")throw new yoe("Argument agent must implement Agent");Object.defineProperty(globalThis,VU,{value:t,writable:!0,enumerable:!1,configurable:!1})}function JU(){return globalThis[VU]}WU.exports={setGlobalDispatcher:YU,getGlobalDispatcher:JU}});var af=h((wMe,jU)=>{"use strict";jU.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 XU=h((bMe,KU)=>{"use strict";var Ioe=Oh();KU.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 Ioe(r,o,n,i);return r(a,c)}}});var e2=h((QMe,ZU)=>{"use strict";var Boe=Wh();ZU.exports=t=>e=>function(s,n){return e(s,new Boe({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))}});var r2=h((xMe,t2)=>{"use strict";var woe=me(),{InvalidArgumentError:boe,RequestAbortedError:Qoe}=Qe(),xoe=af(),AQ=class extends xoe{#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 boe("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=woe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new Qoe(`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 Noe({maxSize:t}={maxSize:1024*1024}){return e=>function(s,n){let{dumpMaxSize:i=t}=s,o=new AQ({maxSize:i},n);return e(s,o)}}t2.exports=Noe});var i2=h((NMe,n2)=>{"use strict";var{isIP:Soe}=require("node:net"),{lookup:Roe}=require("node:dns"),Toe=af(),{InvalidArgumentError:Bl,InformationalError:voe}=Qe(),s2=Math.pow(2,31)-1,dQ=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 voe("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){Roe(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===s2?(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===s2?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 pQ(this,e,r)}},pQ=class extends Toe{#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":Oq(i)&&(r[n]=i);break;case"id":Fq(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&Oq(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Fq(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}}};Uq.exports={EventSourceStream:ZQ}});var Wq=h((nOe,Jq)=>{"use strict";var{pipeline:Uue}=require("node:stream"),{fetching:que}=KA(),{makeRequest:Gue}=Ql(),{webidl:Ji}=$t(),{EventSourceStream:Hue}=qq(),{parseMIMEType:zue}=Sr(),{createFastMessageEvent:$ue}=vl(),{isNetworkError:Gq}=WA(),{delay:Vue}=KQ(),{kEnumerableProperty:Fa}=me(),{environmentSettingsObject:Hq}=Wr(),zq=!1,$q=3e3,ud=0,Vq=1,Ad=2,Yue="anonymous",Jue="use-credentials",Ll=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#r=!1;#i=ud;#n=null;#s=null;#o;#a;constructor(e,r={}){super(),Ji.util.markAsUncloneable(this);let s="EventSource constructor";Ji.argumentLengthCheck(arguments,1,s),zq||(zq=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Ji.converters.USVString(e,s,"url"),r=Ji.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#o=r.dispatcher,this.#a={lastEventId:"",reconnectionTime:$q};let n=Hq,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=Jue,this.#r=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=Hq.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=Gue(a),this.#c()}get readyState(){return this.#i}get url(){return this.#t}get withCredentials(){return this.#r}#c(){if(this.#i===Ad)return;this.#i=ud;let e={request:this.#n,dispatcher:this.#o},r=s=>{Gq(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#l()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(Gq(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?zue(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=Vq,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($ue(c.type,c.options))}});Uue(s.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=que(e)}async#l(){this.#i!==Ad&&(this.#i=ud,this.dispatchEvent(new Event("error")),await Vue(this.#a.reconnectionTime),this.#i===ud&&(this.#a.lastEventId.length&&this.#n.headersList.set("last-event-id",this.#a.lastEventId,!0),this.#c()))}close(){Ji.brandCheck(this,t),this.#i!==Ad&&(this.#i=Ad,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}},Yq={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:ud,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Vq,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Ad,writable:!1}};Object.defineProperties(Ll,Yq);Object.defineProperties(Ll.prototype,Yq);Object.defineProperties(Ll.prototype,{close:Fa,onerror:Fa,onmessage:Fa,onopen:Fa,readyState:Fa,url:Fa,withCredentials:Fa});Ji.converters.EventSourceInitDict=Ji.dictionaryConverter([{key:"withCredentials",converter:Ji.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Ji.converters.any}]);Jq.exports={EventSource:Ll,defaultReconnectionTime:$q}});var pd=h((iOe,Z)=>{"use strict";var Wue=ul(),jq=hA(),jue=Al(),Kue=YO(),Xue=dl(),Zue=wb(),eAe=gF(),tAe=wF(),Kq=Qe(),Jf=me(),{InvalidArgumentError:Yf}=Kq,Ml=lU(),rAe=gA(),sAe=nQ(),nAe=$U(),iAe=aQ(),oAe=$b(),aAe=Wh(),{getGlobalDispatcher:Xq,setGlobalDispatcher:cAe}=of(),lAe=af(),uAe=Oh(),AAe=Fh();Object.assign(jq.prototype,Ml);Z.exports.Dispatcher=jq;Z.exports.Client=Wue;Z.exports.Pool=jue;Z.exports.BalancedPool=Kue;Z.exports.Agent=Xue;Z.exports.ProxyAgent=Zue;Z.exports.EnvHttpProxyAgent=eAe;Z.exports.RetryAgent=tAe;Z.exports.RetryHandler=aA Line truncated
%s`,Q,Q,E,s);var P=E.type==="*"?c0:E.type==="?"?a0:"\\"+E.type;n=!0,s=s.slice(0,E.reStart)+P+"\\("+Q}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 be=a[pe],Re=s.slice(0,be.reStart),z=s.slice(be.reStart,be.reEnd-8),ne=s.slice(be.reEnd-8,be.reEnd),U=s.slice(be.reEnd);ne+=U;var ye=Re.split("(").length-1,It=U;for(f=0;f<ye;f++)It=It.replace(/\)[+*?]?/,"");U=It;var Ke="";U===""&&e!==Cg&&(Ke="$");var lt=Re+z+U+Ke+ne;s=lt}if(s!==""&&n&&(s="(?=.)"+s),F&&(s=d+s),e===Cg)return[s,n];if(!n)return Mhe(t);var ki=r.nocase?"i":"";try{var Jr=new RegExp("^"+s+"$",ki)}catch{return new RegExp("$.")}return Jr._glob=t,Jr._src=s,Jr}is.makeRe=function(t,e){return new Vt(t,e||{}).makeRe()};Vt.prototype.makeRe=Lhe;function Lhe(){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?c0:e.dot?She:Rhe,s=e.nocase?"i":"",n=t.map(function(i){return i.map(function(o){return o===l0?r:typeof o=="string"?Ohe(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}is.match=function(t,e,r){r=r||{};var s=new Vt(e,r);return t=t.filter(function(n){return s.match(n)}),s.options.nonull&&!t.length&&t.push(e),t};Vt.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;Md.sep!=="/"&&(e=e.split(Md.sep).join("/")),e=e.split(i$),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};Vt.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===l0){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())}};$U.exports=AQ});var nf=h((vMe,jU)=>{"use strict";var YU=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Eoe}=be(),yoe=pl();WU()===void 0&&JU(new yoe);function JU(t){if(!t||typeof t.dispatch!="function")throw new Eoe("Argument agent must implement Agent");Object.defineProperty(globalThis,YU,{value:t,writable:!0,enumerable:!1,configurable:!1})}function WU(){return globalThis[YU]}jU.exports={setGlobalDispatcher:JU,getGlobalDispatcher:WU}});var of=h((kMe,KU)=>{"use strict";KU.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 ZU=h((DMe,XU)=>{"use strict";var Coe=Mh();XU.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 Coe(r,o,n,i);return r(a,c)}}});var t2=h((_Me,e2)=>{"use strict";var Ioe=Jh();e2.exports=t=>e=>function(s,n){return e(s,new Ioe({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))}});var s2=h((LMe,r2)=>{"use strict";var Boe=pe(),{InvalidArgumentError:woe,RequestAbortedError:boe}=be(),Qoe=of(),dQ=class extends Qoe{#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 woe("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=Boe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new boe(`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 xoe({maxSize:t}={maxSize:1024*1024}){return e=>function(s,n){let{dumpMaxSize:i=t}=s,o=new dQ({maxSize:i},n);return e(s,o)}}r2.exports=xoe});var o2=h((MMe,i2)=>{"use strict";var{isIP:Noe}=require("node:net"),{lookup:Soe}=require("node:dns"),Roe=of(),{InvalidArgumentError:wl,InformationalError:Toe}=be(),n2=Math.pow(2,31)-1,pQ=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 Toe("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){Soe(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===n2?(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===n2?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 mQ(this,e,r)}},mQ=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":Fq(i)&&(r[n]=i);break;case"id":Uq(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&Fq(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Uq(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}}};qq.exports={EventSourceStream:ex}});var jq=h((mOe,Wq)=>{"use strict";var{pipeline:Fue}=require("node:stream"),{fetching:Uue}=ed(),{makeRequest:que}=xl(),{webidl:Vi}=Vt(),{EventSourceStream:Gue}=Gq(),{parseMIMEType:Hue}=Rr(),{createFastMessageEvent:zue}=Pl(),{isNetworkError:Hq}=XA(),{delay:$ue}=XQ(),{kEnumerableProperty:qa}=pe(),{environmentSettingsObject:zq}=Wr(),$q=!1,Vq=3e3,pd=0,Yq=1,md=2,Vue="anonymous",Yue="use-credentials",Ml=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#r=!1;#i=pd;#n=null;#s=null;#o;#a;constructor(e,r={}){super(),Vi.util.markAsUncloneable(this);let s="EventSource constructor";Vi.argumentLengthCheck(arguments,1,s),$q||($q=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Vi.converters.USVString(e,s,"url"),r=Vi.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#o=r.dispatcher,this.#a={lastEventId:"",reconnectionTime:Vq};let n=zq,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=Vue;r.withCredentials&&(o=Yue,this.#r=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=zq.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=que(a),this.#c()}get readyState(){return this.#i}get url(){return this.#t}get withCredentials(){return this.#r}#c(){if(this.#i===md)return;this.#i=pd;let e={request:this.#n,dispatcher:this.#o},r=s=>{Hq(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#l()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(Hq(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?Hue(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=Yq,this.dispatchEvent(new Event("open")),this.#a.origin=s.urlList[s.urlList.length-1].origin;let a=new Gue({eventSourceSettings:this.#a,push:c=>{this.dispatchEvent(zue(c.type,c.options))}});Fue(s.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=Uue(e)}async#l(){this.#i!==md&&(this.#i=pd,this.dispatchEvent(new Event("error")),await $ue(this.#a.reconnectionTime),this.#i===pd&&(this.#a.lastEventId.length&&this.#n.headersList.set("last-event-id",this.#a.lastEventId,!0),this.#c()))}close(){Vi.brandCheck(this,t),this.#i!==md&&(this.#i=md,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}},Jq={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:pd,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Yq,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:md,writable:!1}};Object.defineProperties(Ml,Jq);Object.defineProperties(Ml.prototype,Jq);Object.defineProperties(Ml.prototype,{close:qa,onerror:qa,onmessage:qa,onopen:qa,readyState:qa,url:qa,withCredentials:qa});Vi.converters.EventSourceInitDict=Vi.dictionaryConverter([{key:"withCredentials",converter:Vi.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Vi.converters.any}]);Wq.exports={EventSource:Ml,defaultReconnectionTime:Vq}});var Fl=h((hOe,Z)=>{"use strict";var Jue=Al(),Kq=EA(),Wue=dl(),jue=JO(),Kue=pl(),Xue=bb(),Zue=EF(),eAe=bF(),Xq=be(),Yf=pe(),{InvalidArgumentError:Vf}=Xq,Ol=uU(),tAe=CA(),rAe=iQ(),sAe=VU(),nAe=cQ(),iAe=Vb(),oAe=Jh(),{getGlobalDispatcher:Zq,setGlobalDispatcher:aAe}=nf(),cAe=of(),lAe=Mh(),uAe=Oh();Object.assign(Kq.prototype,Ol);Z.exports.Dispatcher=Kq;Z.exports.Client=Jue;Z.exports.Pool=Wue;Z.exports.BalancedPool=jue;Z.exports.Agent=Kue;Z.exports.ProxyAgent=Xue;Z.exports.EnvHttpProxyAgent=Zue;Z.exports.RetryAgent=eAe;Z.exports.RetryHandler=oA Line truncated
%s`,x,x,E,s);var k=E.type==="*"?i0:E.type==="?"?n0:"\\"+E.type;n=!0,s=s.slice(0,E.reStart)+k+"\\("+x}m(),i&&(s+="\\\\");var U=!1;switch(s.charAt(0)){case"[":case".":case"(":U=!0}for(var de=a.length-1;de>-1;de--){var we=a[de],Se=s.slice(0,we.reStart),$=s.slice(we.reStart,we.reEnd-8),se=s.slice(we.reEnd-8,we.reEnd),q=s.slice(we.reEnd);se+=q;var Ee=Se.split("(").length-1,wt=q;for(f=0;f<Ee;f++)wt=wt.replace(/\)[+*?]?/,"");q=wt;var je="";q===""&&e!==yg&&(je="$");var lt=Se+$+q+je+se;s=lt}if(s!==""&&n&&(s="(?=.)"+s),U&&(s=d+s),e===yg)return[s,n];if(!n)return She(t);var Pi=r.nocase?"i":"";try{var Jr=new RegExp("^"+s+"$",Pi)}catch{return new RegExp("$.")}return Jr._glob=t,Jr._src=s,Jr}is.makeRe=function(t,e){return new Yt(t,e||{}).makeRe()};Yt.prototype.makeRe=Nhe;function Nhe(){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?i0:e.dot?yhe:Che,s=e.nocase?"i":"",n=t.map(function(i){return i.map(function(o){return o===o0?r:typeof o=="string"?Rhe(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}is.match=function(t,e,r){r=r||{};var s=new Yt(e,r);return t=t.filter(function(n){return s.match(n)}),s.options.nonull&&!t.length&&t.push(e),t};Yt.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;Md.sep!=="/"&&(e=e.split(Md.sep).join("/")),e=e.split(t$),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};Yt.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===o0){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 Mhe(t){return t.replace(/\\(.)/g,"$1")}function Ohe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Ud=h((L2e,d$)=>{"use strict";var Vhe="2.0.0",Yhe=Number.MAX_SAFE_INTEGER||9007199254740991,Jhe=16,Whe=250,jhe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];d$.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Jhe,MAX_SAFE_BUILD_LENGTH:Whe,MAX_SAFE_INTEGER:Yhe,RELEASE_TYPES:jhe,SEMVER_SPEC_VERSION:Vhe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var qd=h((M2e,p$)=>{"use strict";var Khe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};p$.exports=Khe});var jl=h((Jn,m$)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:A0,MAX_SAFE_BUILD_LENGTH:Xhe,MAX_LENGTH:Zhe}=Ud(),efe=qd();Jn=m$.exports={};var tfe=Jn.re=[],rfe=Jn.safeRe=[],_=Jn.src=[],sfe=Jn.safeSrc=[],L=Jn.t={},nfe=0,d0="[a-zA-Z0-9-]",ife=[["\\s",1],["\\d",Zhe],[d0,Xhe]],ofe=t=>{for(let[e,r]of ife)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},oe=(t,e,r)=>{let s=ofe(e),n=nfe++;efe(t,n,e),L[t]=n,_[n]=e,sfe[n]=s,tfe[n]=new RegExp(e,r?"g":void 0),rfe[n]=new RegExp(s,r?"g":void 0)};oe("NUMERICIDENTIFIER","0|[1-9]\\d*");oe("NUMERICIDENTIFIERLOOSE","\\d+");oe("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d0}*`);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",`${d0}+`);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,${A0}})(?:\\.(\\d{1,${A0}}))?(?:\\.(\\d{1,${A0}}))?`);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);Jn.tildeTrimReplace="$1~";oe("TILDE",`^${_[L.LONETILDE]}${_[L.XRANGEPLAIN]}$`);oe("TILDELOOSE",`^${_[L.LONETILDE]}${_[L.XRANGEPLAINLOOSE]}$`);oe("LONECARET","(?:\\^)");oe("CARETTRIM",`(\\s*)${_[L.LONECARET]}\\s+`,!0);Jn.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);Jn.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((O2e,h$)=>{"use strict";var afe=Object.freeze({loose:!0}),cfe=Object.freeze({}),lfe=t=>t?typeof t!="object"?afe:t:cfe;h$.exports=lfe});var p0=h((F2e,E$)=>{"use strict";var f$=/^[0-9]+$/,g$=(t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=f$.test(t),s=f$.test(e);return r&&s&&(t=+t,e=+e),t===e?0:r&&!s?-1:s&&!r?1:t<e?-1:1},ufe=(t,e)=>g$(e,t);E$.exports={compareIdentifiers:g$,rcompareIdentifiers:ufe}});var rr=h((U2e,C$)=>{"use strict";var Qg=qd(),{MAX_LENGTH:y$,MAX_SAFE_INTEGER:xg}=Ud(),{ 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 She(t){return t.replace(/\\(.)/g,"$1")}function Rhe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Ud=h((h2e,c$)=>{"use strict";var Mhe="2.0.0",Ohe=Number.MAX_SAFE_INTEGER||9007199254740991,Fhe=16,Uhe=250,qhe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];c$.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Fhe,MAX_SAFE_BUILD_LENGTH:Uhe,MAX_SAFE_INTEGER:Ohe,RELEASE_TYPES:qhe,SEMVER_SPEC_VERSION:Mhe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var qd=h((f2e,l$)=>{"use strict";var Ghe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};l$.exports=Ghe});var Kl=h((Vn,u$)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:c0,MAX_SAFE_BUILD_LENGTH:Hhe,MAX_LENGTH:zhe}=Ud(),$he=qd();Vn=u$.exports={};var Vhe=Vn.re=[],Yhe=Vn.safeRe=[],L=Vn.src=[],Jhe=Vn.safeSrc=[],M=Vn.t={},Whe=0,l0="[a-zA-Z0-9-]",jhe=[["\\s",1],["\\d",zhe],[l0,Hhe]],Khe=t=>{for(let[e,r]of jhe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},ie=(t,e,r)=>{let s=Khe(e),n=Whe++;$he(t,n,e),M[t]=n,L[n]=e,Jhe[n]=s,Vhe[n]=new RegExp(e,r?"g":void 0),Yhe[n]=new RegExp(s,r?"g":void 0)};ie("NUMERICIDENTIFIER","0|[1-9]\\d*");ie("NUMERICIDENTIFIERLOOSE","\\d+");ie("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${l0}*`);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",`${l0}+`);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,${c0}})(?:\\.(\\d{1,${c0}}))?(?:\\.(\\d{1,${c0}}))?`);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);Vn.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);Vn.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);Vn.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 wg=h((g2e,A$)=>{"use strict";var Xhe=Object.freeze({loose:!0}),Zhe=Object.freeze({}),efe=t=>t?typeof t!="object"?Xhe:t:Zhe;A$.exports=efe});var u0=h((E2e,m$)=>{"use strict";var d$=/^[0-9]+$/,p$=(t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=d$.test(t),s=d$.test(e);return r&&s&&(t=+t,e=+e),t===e?0:r&&!s?-1:s&&!r?1:t<e?-1:1},tfe=(t,e)=>p$(e,t);m$.exports={compareIdentifiers:p$,rcompareIdentifiers:tfe}});var ir=h((y2e,f$)=>{"use strict";var bg=qd(),{MAX_LENGTH:h$,MAX_SAFE_INTEGER:Qg}=Ud(),{ Line truncated
`).join(`
`+i),t.push(n+"m+"+cE.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Tye()+e+" "+t[0]}function Tye(){return Yt.inspectOpts.hideDate?"":new Date().toISOString()+" "}function vye(...t){return process.stderr.write(aE.format(...t)+`
`)}function Pye(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function kye(){return process.env.DEBUG}function Dye(t){t.inspectOpts={};let e=Object.keys(Yt.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Yt.inspectOpts[e[r]]}cE.exports=K0()(Yt);var{formatters:WY}=cE.exports;WY.o=function(t){return this.inspectOpts.colors=this.useColors,aE.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};WY.O=function(t){return this.inspectOpts.colors=this.useColors,aE.inspect(t,this.inspectOpts)}});var lE=h((Zqe,eN)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?eN.exports=HY():eN.exports=jY()});var ZY=h(Lr=>{"use strict";var _ye=Lr&&Lr.__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]})),Lye=Lr&&Lr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),KY=Lr&&Lr.__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)&&_ye(e,t,r);return Lye(e,t),e};Object.defineProperty(Lr,"__esModule",{value:!0});Lr.req=Lr.json=Lr.toBuffer=void 0;var Mye=KY(require("http")),Oye=KY(require("https"));async function XY(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}Lr.toBuffer=XY;async function Fye(t){let r=(await XY(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}Lr.json=Fye;function Uye(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?Oye:Mye).request(t,e),n=new Promise((i,o)=>{s.once("response",i).once("error",o).end()});return s.then=n.then.bind(n),s}Lr.req=Uye});var rN=h(ls=>{"use strict";var tJ=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]})),qye=ls&&ls.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),rJ=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)&&tJ(e,t,r);return qye(e,t),e},Gye=ls&&ls.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&tJ(e,t,r)};Object.defineProperty(ls,"__esModule",{value:!0});ls.Agent=void 0;var Hye=rJ(require("net")),eJ=rJ(require("http")),zye=require("https");Gye(ZY(),ls);var Kn=Symbol("AgentBaseInternalState"),tN=class extends eJ.Agent{constructor(e){super(e),this[Kn]={}}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 Hye.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))?zye.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 eJ.Agent)return a.addRequest(e,n);this[Kn].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(i,o),s(a)})}createConnection(){let e=this[Kn].currentSocket;if(this[Kn].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Kn].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Kn]&&(this[Kn].defaultPort=e)}get protocol(){return this[Kn].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Kn]&&(this[Kn].protocol=e)}};ls.Agent=tN});var sJ=h(iu=>{"use strict";var $ye=iu&&iu.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(iu,"__esModule",{value:!0});iu.parseProxyResponse=void 0;var Vye=$ye(lE()),uE=(0,Vye.default)("https-proxy-agent:parse-proxy-response");function Yye(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(),uE("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(u){o(),uE("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+"+cE.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Tye()+e+" "+t[0]}function Tye(){return Jt.inspectOpts.hideDate?"":new Date().toISOString()+" "}function vye(...t){return process.stderr.write(aE.format(...t)+`
`)}function Pye(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function kye(){return process.env.DEBUG}function Dye(t){t.inspectOpts={};let e=Object.keys(Jt.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Jt.inspectOpts[e[r]]}cE.exports=K0()(Jt);var{formatters:VY}=cE.exports;VY.o=function(t){return this.inspectOpts.colors=this.useColors,aE.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};VY.O=function(t){return this.inspectOpts.colors=this.useColors,aE.inspect(t,this.inspectOpts)}});var lE=h((Dqe,eN)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?eN.exports=UY():eN.exports=YY()});var jY=h(Lr=>{"use strict";var _ye=Lr&&Lr.__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]})),Lye=Lr&&Lr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),JY=Lr&&Lr.__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)&&_ye(e,t,r);return Lye(e,t),e};Object.defineProperty(Lr,"__esModule",{value:!0});Lr.req=Lr.json=Lr.toBuffer=void 0;var Mye=JY(require("http")),Oye=JY(require("https"));async function WY(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}Lr.toBuffer=WY;async function Fye(t){let r=(await WY(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}Lr.json=Fye;function Uye(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?Oye:Mye).request(t,e),n=new Promise((i,o)=>{s.once("response",i).once("error",o).end()});return s.then=n.then.bind(n),s}Lr.req=Uye});var rN=h(ls=>{"use strict";var XY=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]})),qye=ls&&ls.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ZY=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)&&XY(e,t,r);return qye(e,t),e},Gye=ls&&ls.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&XY(e,t,r)};Object.defineProperty(ls,"__esModule",{value:!0});ls.Agent=void 0;var Hye=ZY(require("net")),KY=ZY(require("http")),zye=require("https");Gye(jY(),ls);var jn=Symbol("AgentBaseInternalState"),tN=class extends KY.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 Hye.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))?zye.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 KY.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)}};ls.Agent=tN});var eJ=h(au=>{"use strict";var $ye=au&&au.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(au,"__esModule",{value:!0});au.parseProxyResponse=void 0;var Vye=$ye(lE()),uE=(0,Vye.default)("https-proxy-agent:parse-proxy-response");function Yye(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(),uE("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(u){o(),uE("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){uE("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 I=C.indexOf(":");if(I===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${C}"`));let Q=C.slice(0,I).toLowerCase(),P=C.slice(I+1).trimStart(),F=E[Q];typeof F=="string"?E[Q]=[F,P]:Array.isArray(F)?F.push(P):E[Q]=P}uE("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()})}iu.parseProxyResponse=Yye});var cJ=h(Ms=>{"use strict";var Jye=Ms&&Ms.__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]})),Wye=Ms&&Ms.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),oJ=Ms&&Ms.__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)&&Jye(e,t,r);return Wye(e,t),e},aJ=Ms&&Ms.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ms,"__esModule",{value:!0});Ms.HttpsProxyAgent=void 0;var tp=oJ(require("net")),nJ=oJ(require("tls")),jye=aJ(require("assert")),Kye=aJ(lE()),Xye=rN(),Zye=require("url"),eCe=sJ(),rp=(0,Kye.default)("https-proxy-agent"),AE=class extends Xye.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Zye.URL(e):e,this.proxyHeaders=r?.headers??{},rp("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?iJ(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:"){rp("Creating `tls.Socket`: %o",this.connectOpts);let d=this.connectOpts.servername||this.connectOpts.host;n=nJ.connect({...this.connectOpts,servername:d&&tp.isIP(d)?void 0:d})}else rp("Creating `net.Socket`: %o",this.connectOpts),n=tp.connect(this.connectOpts);let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=tp.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\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 I=C.indexOf(":");if(I===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${C}"`));let x=C.slice(0,I).toLowerCase(),k=C.slice(I+1).trimStart(),U=E[x];typeof U=="string"?E[x]=[U,k]:Array.isArray(U)?U.push(k):E[x]=k}uE("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()})}au.parseProxyResponse=Yye});var iJ=h(Os=>{"use strict";var Jye=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]})),Wye=Os&&Os.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),sJ=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)&&Jye(e,t,r);return Wye(e,t),e},nJ=Os&&Os.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Os,"__esModule",{value:!0});Os.HttpsProxyAgent=void 0;var sp=sJ(require("net")),tJ=sJ(require("tls")),jye=nJ(require("assert")),Kye=nJ(lE()),Xye=rN(),Zye=require("url"),eCe=eJ(),np=(0,Kye.default)("https-proxy-agent"),AE=class extends Xye.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Zye.URL(e):e,this.proxyHeaders=r?.headers??{},np("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?rJ(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:"){np("Creating `tls.Socket`: %o",this.connectOpts);let d=this.connectOpts.servername||this.connectOpts.host;n=tJ.connect({...this.connectOpts,servername:d&&sp.isIP(d)?void 0:d})}else np("Creating `net.Socket`: %o",this.connectOpts),n=sp.connect(this.connectOpts);let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=sp.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,eCe.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",tCe),r.secureEndpoint){rp("Upgrading socket connection to TLS");let d=r.servername||r.host;return nJ.connect({...iJ(r,"host","path","port"),socket:n,servername:tp.isIP(d)?void 0:d})}return n}n.destroy();let A=new tp.Socket({writable:!1});return A.readable=!0,e.once("socket",d=>{rp("Replaying proxy buffer for failed request"),(0,jye.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),A}};AE.protocols=["http","https"];Ms.HttpsProxyAgent=AE;function tCe(t){t.resume()}function iJ(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var AJ=h(Os=>{"use strict";var rCe=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]})),sCe=Os&&Os.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),uJ=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)&&rCe(e,t,r);return sCe(e,t),e},nCe=Os&&Os.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Os,"__esModule",{value:!0});Os.HttpProxyAgent=void 0;var iCe=uJ(require("net")),oCe=uJ(require("tls")),aCe=nCe(lE()),cCe=require("events"),lCe=rN(),lJ=require("url"),ou=(0,aCe.default)("http-proxy-agent"),dE=class extends lCe.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new lJ.URL(e):e,this.proxyHeaders=r?.headers??{},ou("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?uCe(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 lJ.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;ou("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(ou("Patching connection write() output buffer with updated header"),s=e.outputData[0].data,n=s.indexOf(`\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",tCe),r.secureEndpoint){np("Upgrading socket connection to TLS");let d=r.servername||r.host;return tJ.connect({...rJ(r,"host","path","port"),socket:n,servername:sp.isIP(d)?void 0:d})}return n}n.destroy();let A=new sp.Socket({writable:!1});return A.readable=!0,e.once("socket",d=>{np("Replaying proxy buffer for failed request"),(0,jye.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),A}};AE.protocols=["http","https"];Os.HttpsProxyAgent=AE;function tCe(t){t.resume()}function rJ(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var cJ=h(Fs=>{"use strict";var rCe=Fs&&Fs.__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]})),sCe=Fs&&Fs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),aJ=Fs&&Fs.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&rCe(e,t,r);return sCe(e,t),e},nCe=Fs&&Fs.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Fs,"__esModule",{value:!0});Fs.HttpProxyAgent=void 0;var iCe=aJ(require("net")),oCe=aJ(require("tls")),aCe=nCe(lE()),cCe=require("events"),lCe=rN(),oJ=require("url"),cu=(0,aCe.default)("http-proxy-agent"),dE=class extends lCe.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new oJ.URL(e):e,this.proxyHeaders=r?.headers??{},cu("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?uCe(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 oJ.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;cu("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(cu("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),ou("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(ou("Creating `tls.Socket`: %o",this.connectOpts),i=oCe.connect(this.connectOpts)):(ou("Creating `net.Socket`: %o",this.connectOpts),i=iCe.connect(this.connectOpts)),await(0,cCe.once)(i,"connect"),i}};dE.protocols=["http","https"];Os.HttpProxyAgent=dE;function uCe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var kJ=h(xE=>{"use strict";Object.defineProperty(xE,"__esModule",{value:!0});xE.state=void 0;xE.state={instrumenterImplementation:void 0}});var jJ=h(vE=>{"use strict";Object.defineProperty(vE,"__esModule",{value:!0});vE.state=void 0;vE.state={operationRequestMap:new WeakMap}});var SW=h(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});var RQe=require("os"),TQe=require("util");function vQe(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var PQe=vQe(TQe);function kQe(t,...e){process.stderr.write(`${PQe.default.format(t,...e)}${RQe.EOL}`)}var EW=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,CW,Pv=[],kv=[],Ky=[];EW&&Dv(EW);var IW=Object.assign(t=>BW(t),{enable:Dv,enabled:_v,disable:DQe,log:kQe});function Dv(t){CW=t,Pv=[],kv=[];let e=/\*/g,r=t.split(",").map(s=>s.trim().replace(e,".*?"));for(let s of r)s.startsWith("-")?kv.push(new RegExp(`^${s.substr(1)}$`)):Pv.push(new RegExp(`^${s}$`));for(let s of Ky)s.enabled=_v(s.namespace)}function _v(t){if(t.endsWith("*"))return!0;for(let e of kv)if(e.test(t))return!1;for(let e of Pv)if(e.test(t))return!0;return!1}function DQe(){let t=CW||"";return Dv(""),t}function BW(t){let e=Object.assign(r,{enabled:_v(t),destroy:_Qe,log:IW.log,namespace:t,extend:LQe});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return Ky.push(e),e}function _Qe(){let t=Ky.indexOf(this);return t>=0?(Ky.splice(t,1),!0):!1}function LQe(t){let e=BW(`${this.namespace}:${t}`);return e.log=this.log,e}var Hp=IW,wW=new Set,Wy=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,Xy,Zy=Hp("azure");Zy.log=(...t)=>{Hp.log(...t)};var Lv=["verbose","info","warning","error"];Wy&&(NW(Wy)?bW(Wy):console.error(`AZURE_LOG_LEVEL set to unknown log level '${Wy}'; logging is not enabled. Acceptable values: ${Lv.join(", ")}.`));function bW(t){if(t&&!NW(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${Lv.join(",")}`);Xy=t;let e=[];for(let r of wW)xW(r)&&e.push(r.namespace);Hp.enable(e.join(","))}function MQe(){return Xy}var yW={verbose:400,info:300,warning:200,error:100};function OQe(t){let e=Zy.extend(t);return QW(Zy,e),{error:jy(e,"error"),warning:jy(e,"warning"),info:jy(e,"info"),verbose:jy(e,"verbose")}}function QW(t,e){e.log=(...r)=>{t.log(...r)}}function jy(t,e){let r=Object.assign(t.extend(e),{level:e});if(QW(t,r),xW(r)){let s=Hp.disable();Hp.enable(s+","+r.namespace)}return wW.add(r),r}function xW(t){return!!(Xy&&yW[t.level]<=yW[Xy])}function NW(t){return Lv.includes(t)}Qu.AzureLogger=Zy;Qu.createClientLogger=OQe;Qu.getLogLevel=MQe;Qu.setLogLevel=bW});var Fv=h($p=>{"use strict";Object.defineProperty($p,"__esModule",{value:!0});var xu=new WeakMap,eC=new WeakMap,zp=class t{constructor(){this.onabort=null,xu.set(this,[]),eC.set(this,!1)}get aborted(){if(!eC.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return eC.get(this)}static get none(){return new t}addEventListener(e,r){if(!xu.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");xu.get(this).push(r)}removeEventListener(e,r){if(!xu.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let s=xu.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 RW(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=xu.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),eC.set(t,!0)}var Mv=class extends Error{constructor(e){super(e),this.name="AbortError"}},Ov=class{constructor(e){if(this._signal=new zp,!!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(){RW(this._signal)}static timeout(e){let r=new zp,s=setTimeout(RW,e,r);return typeof s.unref=="function"&&s.unref(),r}};$p.AbortController=Ov;$p.AbortError=Mv;$p.AbortSignal=zp});var DW=h(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});var FQe=Fv(),Vv=require("crypto");function TW(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,o)=>{function a(){o(new FQe.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 UQe="The delay was aborted.";function qQe(t,e){let r,{ab Line truncated
`)+4,e.outputData[0].data=e._header+s.substring(n),cu("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(cu("Creating `tls.Socket`: %o",this.connectOpts),i=oCe.connect(this.connectOpts)):(cu("Creating `net.Socket`: %o",this.connectOpts),i=iCe.connect(this.connectOpts)),await(0,cCe.once)(i,"connect"),i}};dE.protocols=["http","https"];Fs.HttpProxyAgent=dE;function uCe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var TJ=h(xE=>{"use strict";Object.defineProperty(xE,"__esModule",{value:!0});xE.state=void 0;xE.state={instrumenterImplementation:void 0}});var YJ=h(vE=>{"use strict";Object.defineProperty(vE,"__esModule",{value:!0});vE.state=void 0;vE.state={operationRequestMap:new WeakMap}});var QW=h(Nu=>{"use strict";Object.defineProperty(Nu,"__esModule",{value:!0});var RQe=require("os"),TQe=require("util");function vQe(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var PQe=vQe(TQe);function kQe(t,...e){process.stderr.write(`${PQe.default.format(t,...e)}${RQe.EOL}`)}var hW=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,gW,Pv=[],kv=[],Ky=[];hW&&Dv(hW);var EW=Object.assign(t=>yW(t),{enable:Dv,enabled:_v,disable:DQe,log:kQe});function Dv(t){gW=t,Pv=[],kv=[];let e=/\*/g,r=t.split(",").map(s=>s.trim().replace(e,".*?"));for(let s of r)s.startsWith("-")?kv.push(new RegExp(`^${s.substr(1)}$`)):Pv.push(new RegExp(`^${s}$`));for(let s of Ky)s.enabled=_v(s.namespace)}function _v(t){if(t.endsWith("*"))return!0;for(let e of kv)if(e.test(t))return!1;for(let e of Pv)if(e.test(t))return!0;return!1}function DQe(){let t=gW||"";return Dv(""),t}function yW(t){let e=Object.assign(r,{enabled:_v(t),destroy:_Qe,log:EW.log,namespace:t,extend:LQe});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return Ky.push(e),e}function _Qe(){let t=Ky.indexOf(this);return t>=0?(Ky.splice(t,1),!0):!1}function LQe(t){let e=yW(`${this.namespace}:${t}`);return e.log=this.log,e}var $p=EW,CW=new Set,Wy=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,Xy,Zy=$p("azure");Zy.log=(...t)=>{$p.log(...t)};var Lv=["verbose","info","warning","error"];Wy&&(bW(Wy)?IW(Wy):console.error(`AZURE_LOG_LEVEL set to unknown log level '${Wy}'; logging is not enabled. Acceptable values: ${Lv.join(", ")}.`));function IW(t){if(t&&!bW(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${Lv.join(",")}`);Xy=t;let e=[];for(let r of CW)wW(r)&&e.push(r.namespace);$p.enable(e.join(","))}function MQe(){return Xy}var fW={verbose:400,info:300,warning:200,error:100};function OQe(t){let e=Zy.extend(t);return BW(Zy,e),{error:jy(e,"error"),warning:jy(e,"warning"),info:jy(e,"info"),verbose:jy(e,"verbose")}}function BW(t,e){e.log=(...r)=>{t.log(...r)}}function jy(t,e){let r=Object.assign(t.extend(e),{level:e});if(BW(t,r),wW(r)){let s=$p.disable();$p.enable(s+","+r.namespace)}return CW.add(r),r}function wW(t){return!!(Xy&&fW[t.level]<=fW[Xy])}function bW(t){return Lv.includes(t)}Nu.AzureLogger=Zy;Nu.createClientLogger=OQe;Nu.getLogLevel=MQe;Nu.setLogLevel=IW});var Fv=h(Yp=>{"use strict";Object.defineProperty(Yp,"__esModule",{value:!0});var Su=new WeakMap,eC=new WeakMap,Vp=class t{constructor(){this.onabort=null,Su.set(this,[]),eC.set(this,!1)}get aborted(){if(!eC.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return eC.get(this)}static get none(){return new t}addEventListener(e,r){if(!Su.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Su.get(this).push(r)}removeEventListener(e,r){if(!Su.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let s=Su.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 xW(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=Su.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),eC.set(t,!0)}var Mv=class extends Error{constructor(e){super(e),this.name="AbortError"}},Ov=class{constructor(e){if(this._signal=new Vp,!!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(){xW(this._signal)}static timeout(e){let r=new Vp,s=setTimeout(xW,e,r);return typeof s.unref=="function"&&s.unref(),r}};Yp.AbortController=Ov;Yp.AbortError=Mv;Yp.AbortSignal=Vp});var vW=h(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});var FQe=Fv(),Vv=require("crypto");function NW(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,o)=>{function a(){o(new FQe.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 UQe="The delay was aborted.";function qQe(t,e){let r,{ab Line truncated
Polling from: ${r.config.operationLocation}
Operation status: ${u}
Polling status: ${OW.includes(u)?"Stopped":"Running"}`),u==="succeeded"){let A=o(l,r);if(A!==void 0)return{response:await e(A).catch(LW({state:r,stateProxy:s,isOperationError:a})),status:u}}return{response:l,status:u}}async function GW(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 mxe({poll:e,getOperationStatus:i,state:r,stateProxy:s,operationLocation:g,getResourceLocation:o,isOperationError:c,options:n});if(UW({status:C,response:E,state:r,stateProxy:s,isDone:f,processResult:A,getError:d,setErrorAsResult:y}),!OW.includes(C)){let I=u?.(E);I&&m(I);let Q=a?.(E,r);if(Q!==void 0){let P=g!==Q;r.config.operationLocation=Q,l?.(Q,P)}else l?.(g,!1)}p?.(r,E)}}function HW(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}function zW(t){return t.headers.location}function $W(t){return t.headers["operation-location"]}function VW(t){return t.headers["azure-asyncoperation"]}function hxe(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=$W(e),o=VW(e),a=HW({operationLocation:i,azureAsyncOperation:o}),c=zW(e),l=r?.toLocaleUpperCase();return a!==void 0?{mode:"OperationLocation",operationLocation:a,resourceLocation:hxe({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 JW(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 jv(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 yc.verbose(`LRO: unrecognized operation status: ${e}`),e}}function fxe(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return JW({status:r,statusCode:t.statusCode})}function gxe(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 JW({status:i,statusCode:t.statusCode})}function jv(t){return t===202?"running":t<300?"succeeded":"failed"}function WW({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?Exe(new Date(e)):r*1e3}}function jW(t){let e=t.flatResponse.error;if(!e){yc.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){yc.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 Exe(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}function KW(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 jv(e.rawResponse.statusCode);case"Body":return Kv(e,r);default:return"running"}}let i=n();return i==="running"&&s===void 0?"succeeded":i}async function yxe(t){let{stateProxy:e,resourceLocationConfig:r,processResult:s,lro:n,setErrorAsResult:i}=t;return qW({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:KW,setErrorAsResult:i})}function XW({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r===void 0?void 0:r.mode){case"OperationLocation":return HW({operationLocation:$W(t),azureAsyncOperation:VW(t)});case"ResourceLocation":return zW(t);default:return}}function Kv({rawResponse:t},e){var r;let s=(r=e.config.metadata)===null||r===void 0?void 0:r.mode;switch(s){case"OperationLocation":return fxe(t);case"ResourceLocation":return jv(t.statusCode);case"Body":return gxe(t);default:throw new Error(`Internal error: Unexpected operation mode: ${s}`)}}function ZW({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)}Pu.base64decode=r0e;function s0e(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=po[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=po[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=po[n|s>>6],e+=po[s&63],r=0;break}return r&&(e+=po[n],e+="=",r==1&&(e+="=")),e}Pu.base64encode=s0e});var S8=h(yC=>{"use strict";Object.defineProperty(yC,"__esModule",{value:!0});yC.utf8read=void 0;var aP=t=>String.fromCharCode.apply(String,t);function n0e(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(aP(s)),n=0);return r.length?(n&&r.push(aP(s.slice(0,n))),r.join("")):aP(s.slice(0,n))}yC.utf8read=n0e});var Zp=h(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});wi.WireType=wi.mergeBinaryOptions=wi.UnknownFieldHandler=void 0;var i0e;(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])})(i0e=wi.UnknownFieldHandler||(wi.UnknownFieldHandler={}));function o0e(t,e){return Object.assign(Object.assign({},t),e)}wi.mergeBinaryOptions=o0e;var a0e;(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"})(a0e=wi.WireType||(wi.WireType={}))});var IC=h(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.varint32read=Hr.varint32write=Hr.int64toString=Hr.int64fromString=Hr.varint64write=Hr.varint64read=void 0;function c0e(){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")}Hr.varint64read=c0e;function l0e(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)}}Hr.varint64write=l0e;var CC=65536*65536;function u0e(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>=CC&&(n=n+(s/CC|0),s=s%CC)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}Hr.int64fromString=u0e;function A0e(t,e){if(e>>>0<=2097151)return""+(CC*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)}Hr.int64toString=A0e;function d0e(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)}}Hr.varint32write=d0e;function p0e(){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}Hr.varint32read=p0e});var ca=h(aa=>{"use strict";Object.defineProperty(aa,"__esModule",{value:!0});aa.PbLong=aa.PbULong=aa.detectBi=void 0;var em=IC(),De;function R8(){let t=new DataView(new ArrayBuffer(8));De=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=R8;R8();function T8(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var v8=/^-?[0-9]+$/,wC=4294967296,BC=2147483648,bC=class{c Line truncated
`)}};JC.RpcError=DP});var LP=h(jC=>{"use strict";Object.defineProperty(jC,"__esModule",{value:!0});jC.mergeRpcOptions=void 0;var a5=gt();function _Ne(t,e){if(!e)return t;let r={};WC(t,r),WC(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=a5.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=a5.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},WC(t.meta,r.meta),WC(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}jC.mergeRpcOptions=_Ne;function WC(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 OP=h(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});bc.Deferred=bc.DeferredState=void 0;var xi;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(xi=bc.DeferredState||(bc.DeferredState={}));var MP=class{constructor(e=!0){this._state=xi.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!==xi.PENDING)throw new Error(`cannot resolve ${xi[this.state].toLowerCase()}`);this._resolve(e),this._state=xi.RESOLVED}reject(e){if(this.state!==xi.PENDING)throw new Error(`cannot reject ${xi[this.state].toLowerCase()}`);this._reject(e),this._state=xi.REJECTED}resolvePending(e){this._state===xi.PENDING&&this.resolve(e)}rejectPending(e){this._state===xi.PENDING&&this.reject(e)}};bc.Deferred=MP});var UP=h(KC=>{"use strict";Object.defineProperty(KC,"__esModule",{value:!0});KC.RpcOutputStreamController=void 0;var c5=OP(),Qc=gt(),FP=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){Qc.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){Qc.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){Qc.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(){Qc.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;Qc.assert(e,"bad state"),Qc.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 c5.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;Qc.assert(s.state==c5.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};KC.RpcOutputStreamController=FP});var GP=h(Fu=>{"use strict";var LNe=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.UnaryCall=void 0;var qP=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 LNe(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}})}};Fu.UnaryCall=qP});var zP=h(Uu=>{"use strict";var MNe=Uu&&Uu.__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(Uu,"__esModule",{value:!0});Uu.ServerStreamingCall=void 0;var HP=class{constructor(e,r,s,n Line truncated
Polling status: ${_W.includes(u)?"Stopped":"Running"}`),u==="succeeded"){let A=o(l,r);if(A!==void 0)return{response:await e(A).catch(kW({state:r,stateProxy:s,isOperationError:a})),status:u}}return{response:l,status:u}}async function FW(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 mxe({poll:e,getOperationStatus:i,state:r,stateProxy:s,operationLocation:g,getResourceLocation:o,isOperationError:c,options:n});if(MW({status:C,response:E,state:r,stateProxy:s,isDone:f,processResult:A,getError:d,setErrorAsResult:y}),!_W.includes(C)){let I=u?.(E);I&&m(I);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 UW(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}function qW(t){return t.headers.location}function GW(t){return t.headers["operation-location"]}function HW(t){return t.headers["azure-asyncoperation"]}function hxe(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 zW(t){let{rawResponse:e,requestMethod:r,requestPath:s,resourceLocationConfig:n}=t,i=GW(e),o=HW(e),a=UW({operationLocation:i,azureAsyncOperation:o}),c=qW(e),l=r?.toLocaleUpperCase();return a!==void 0?{mode:"OperationLocation",operationLocation:a,resourceLocation:hxe({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 $W(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 jv(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 Ic.verbose(`LRO: unrecognized operation status: ${e}`),e}}function fxe(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return $W({status:r,statusCode:t.statusCode})}function gxe(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 $W({status:i,statusCode:t.statusCode})}function jv(t){return t===202?"running":t<300?"succeeded":"failed"}function VW({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?Exe(new Date(e)):r*1e3}}function YW(t){let e=t.flatResponse.error;if(!e){Ic.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){Ic.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 Exe(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}function JW(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 jv(e.rawResponse.statusCode);case"Body":return Kv(e,r);default:return"running"}}let i=n();return i==="running"&&s===void 0?"succeeded":i}async function yxe(t){let{stateProxy:e,resourceLocationConfig:r,processResult:s,lro:n,setErrorAsResult:i}=t;return OW({init:async()=>{let o=await n.sendInitialRequest(),a=zW({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:JW,setErrorAsResult:i})}function WW({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r===void 0?void 0:r.mode){case"OperationLocation":return UW({operationLocation:GW(t),azureAsyncOperation:HW(t)});case"ResourceLocation":return qW(t);default:return}}function Kv({rawResponse:t},e){var r;let s=(r=e.config.metadata)===null||r===void 0?void 0:r.mode;switch(s){case"OperationLocation":return fxe(t);case"ResourceLocation":return jv(t.statusCode);case"Body":return gxe(t);default:throw new Error(`Internal error: Unexpected operation mode: ${s}`)}}function jW({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)}Du.base64decode=r0e;function s0e(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=po[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=po[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=po[n|s>>6],e+=po[s&63],r=0;break}return r&&(e+=po[n],e+="=",r==1&&(e+="=")),e}Du.base64encode=s0e});var Q8=h(yC=>{"use strict";Object.defineProperty(yC,"__esModule",{value:!0});yC.utf8read=void 0;var aP=t=>String.fromCharCode.apply(String,t);function n0e(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(aP(s)),n=0);return r.length?(n&&r.push(aP(s.slice(0,n))),r.join("")):aP(s.slice(0,n))}yC.utf8read=n0e});var tm=h(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});Bi.WireType=Bi.mergeBinaryOptions=Bi.UnknownFieldHandler=void 0;var i0e;(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])})(i0e=Bi.UnknownFieldHandler||(Bi.UnknownFieldHandler={}));function o0e(t,e){return Object.assign(Object.assign({},t),e)}Bi.mergeBinaryOptions=o0e;var a0e;(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"})(a0e=Bi.WireType||(Bi.WireType={}))});var IC=h(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.varint32read=Hr.varint32write=Hr.int64toString=Hr.int64fromString=Hr.varint64write=Hr.varint64read=void 0;function c0e(){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")}Hr.varint64read=c0e;function l0e(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)}}Hr.varint64write=l0e;var CC=65536*65536;function u0e(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>=CC&&(n=n+(s/CC|0),s=s%CC)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}Hr.int64fromString=u0e;function A0e(t,e){if(e>>>0<=2097151)return""+(CC*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)}Hr.int64toString=A0e;function d0e(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)}}Hr.varint32write=d0e;function p0e(){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}Hr.varint32read=p0e});var la=h(ca=>{"use strict";Object.defineProperty(ca,"__esModule",{value:!0});ca.PbLong=ca.PbULong=ca.detectBi=void 0;var rm=IC(),ke;function x8(){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}ca.detectBi=x8;x8();function N8(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]+$/,wC=4294967296,BC=2147483648,bC=class{c Line truncated
`)}};JC.RpcError=DP});var LP=h(jC=>{"use strict";Object.defineProperty(jC,"__esModule",{value:!0});jC.mergeRpcOptions=void 0;var n5=yt();function _Ne(t,e){if(!e)return t;let r={};WC(t,r),WC(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=n5.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=n5.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},WC(t.meta,r.meta),WC(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}jC.mergeRpcOptions=_Ne;function WC(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 OP=h(xc=>{"use strict";Object.defineProperty(xc,"__esModule",{value:!0});xc.Deferred=xc.DeferredState=void 0;var Qi;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Qi=xc.DeferredState||(xc.DeferredState={}));var MP=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)}};xc.Deferred=MP});var UP=h(KC=>{"use strict";Object.defineProperty(KC,"__esModule",{value:!0});KC.RpcOutputStreamController=void 0;var i5=OP(),Nc=yt(),FP=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){Nc.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){Nc.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){Nc.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(){Nc.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;Nc.assert(e,"bad state"),Nc.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 i5.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;Nc.assert(s.state==i5.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};KC.RpcOutputStreamController=FP});var GP=h(qu=>{"use strict";var LNe=qu&&qu.__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(qu,"__esModule",{value:!0});qu.UnaryCall=void 0;var qP=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 LNe(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}})}};qu.UnaryCall=qP});var zP=h(Gu=>{"use strict";var MNe=Gu&&Gu.__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(Gu,"__esModule",{value:!0});Gu.ServerStreamingCall=void 0;var HP=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 fRe(){Object.keys(gI).forEach(function(t){delete gI[t]})}});var yI=h(Ri=>{"use strict";Ri.__esModule=!0;Ri.HandlebarsEnvironment=Mk;function cj(t){return t&&t.__esModule?t:{default:t}}var vc=Br(),gRe=ys(),_k=cj(gRe),ERe=vk(),yRe=nj(),CRe=kk(),EI=cj(CRe),IRe=Dk(),BRe="4.7.9";Ri.VERSION=BRe;var wRe=8;Ri.COMPILER_REVISION=wRe;var bRe=7;Ri.LAST_COMPATIBLE_COMPILER_REVISION=bRe;var QRe={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"};Ri.REVISION_CHANGES=QRe;var Lk="[object Object]";function Mk(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},ERe.registerDefaultHelpers(this),yRe.registerDefaultDecorators(this)}Mk.prototype={constructor:Mk,logger:EI.default,log:EI.default.log,registerHelper:function(e,r){if(vc.toString.call(e)===Lk){if(r)throw new _k.default("Arg not supported with multiple helpers");vc.extend(this.helpers,e)}else this.helpers[e]=r},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,r){if(vc.toString.call(e)===Lk)vc.extend(this.partials,e);else{if(typeof r>"u")throw new _k.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(vc.toString.call(e)===Lk){if(r)throw new _k.default("Arg not supported with multiple decorators");vc.extend(this.decorators,e)}else this.decorators[e]=r},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){IRe.resetLoggedProperties()}};var xRe=EI.default.log;Ri.log=xRe;Ri.createFrame=vc.createFrame;Ri.logger=EI.default});var uj=h((CI,lj)=>{"use strict";CI.__esModule=!0;function Ok(t){this.string=t}Ok.prototype.toString=Ok.prototype.toHTML=function(){return""+this.string};CI.default=Ok;lj.exports=CI.default});var Aj=h(Fk=>{"use strict";Fk.__esModule=!0;Fk.wrapHelper=NRe;function NRe(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 gj=h(Aa=>{"use strict";Aa.__esModule=!0;Aa.checkRevision=kRe;Aa.template=DRe;Aa.wrapProgram=II;Aa.resolvePartial=_Re;Aa.invokePartial=LRe;Aa.noop=hj;function SRe(t){return t&&t.__esModule?t:{default:t}}function RRe(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 TRe=Br(),Wu=RRe(TRe),vRe=ys(),ho=SRe(vRe),fo=yI(),dj=vk(),PRe=Aj(),pj=Dk();function kRe(t){var e=t&&t[0]||1,r=fo.COMPILER_REVISION;if(!(e>=fo.LAST_COMPATIBLE_COMPILER_REVISION&&e<=fo.COMPILER_REVISION))if(e<fo.LAST_COMPATIBLE_COMPILER_REVISION){var s=fo.REVISION_CHANGES[r],n=fo.REVISION_CHANGES[e];throw new ho.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 ho.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 DRe(t,e){if(!e)throw new ho.default("No environment passed to template");if(!t||!t.main)throw new ho.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=Wu.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 fRe(){Object.keys(gI).forEach(function(t){delete gI[t]})}});var yI=h(Si=>{"use strict";Si.__esModule=!0;Si.HandlebarsEnvironment=Mk;function ij(t){return t&&t.__esModule?t:{default:t}}var kc=wr(),gRe=ys(),_k=ij(gRe),ERe=vk(),yRe=tj(),CRe=kk(),EI=ij(CRe),IRe=Dk(),BRe="4.7.9";Si.VERSION=BRe;var wRe=8;Si.COMPILER_REVISION=wRe;var bRe=7;Si.LAST_COMPATIBLE_COMPILER_REVISION=bRe;var QRe={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=QRe;var Lk="[object Object]";function Mk(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},ERe.registerDefaultHelpers(this),yRe.registerDefaultDecorators(this)}Mk.prototype={constructor:Mk,logger:EI.default,log:EI.default.log,registerHelper:function(e,r){if(kc.toString.call(e)===Lk){if(r)throw new _k.default("Arg not supported with multiple helpers");kc.extend(this.helpers,e)}else this.helpers[e]=r},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,r){if(kc.toString.call(e)===Lk)kc.extend(this.partials,e);else{if(typeof r>"u")throw new _k.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(kc.toString.call(e)===Lk){if(r)throw new _k.default("Arg not supported with multiple decorators");kc.extend(this.decorators,e)}else this.decorators[e]=r},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){IRe.resetLoggedProperties()}};var xRe=EI.default.log;Si.log=xRe;Si.createFrame=kc.createFrame;Si.logger=EI.default});var aj=h((CI,oj)=>{"use strict";CI.__esModule=!0;function Ok(t){this.string=t}Ok.prototype.toString=Ok.prototype.toHTML=function(){return""+this.string};CI.default=Ok;oj.exports=CI.default});var cj=h(Fk=>{"use strict";Fk.__esModule=!0;Fk.wrapHelper=NRe;function NRe(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 mj=h(da=>{"use strict";da.__esModule=!0;da.checkRevision=kRe;da.template=DRe;da.wrapProgram=II;da.resolvePartial=_Re;da.invokePartial=LRe;da.noop=dj;function SRe(t){return t&&t.__esModule?t:{default:t}}function RRe(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 TRe=wr(),Ku=RRe(TRe),vRe=ys(),ho=SRe(vRe),fo=yI(),lj=vk(),PRe=cj(),uj=Dk();function kRe(t){var e=t&&t[0]||1,r=fo.COMPILER_REVISION;if(!(e>=fo.LAST_COMPATIBLE_COMPILER_REVISION&&e<=fo.COMPILER_REVISION))if(e<fo.LAST_COMPATIBLE_COMPILER_REVISION){var s=fo.REVISION_CHANGES[r],n=fo.REVISION_CHANGES[e];throw new ho.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 ho.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 DRe(t,e){if(!e)throw new ho.default("No environment passed to template");if(!t||!t.main)throw new ho.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=Ku.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 ho.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 ho.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)||pj.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:Wu.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=II(this,a,p,c,l,u,A):d||(d=this.programs[a]=II(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=Wu.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=MRe(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=fj(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={};mj(a,e.helpers,n),mj(a,o.helpers,n),n.helpers=a,t.usePartial&&(n.partials=n.mergeIfNeeded(o.partials,e.partials)),(t.usePartial||t.useDecorators)&&(n.decorators=Wu.extend({},e.decorators,o.decorators)),n.hooks={},n.protoAccessControl=pj.createProtoAccessControl(o);var c=o.allowCallsToHelperMissing||r;dj.moveHelperToHooks(n,"helperMissing",c),dj.moveHelperToHooks(n,"blockHelperMissing",c)}},i._child=function(o,a,c,l){if(t.useBlockParams&&!c)throw new ho.default("must pass block params");if(t.useDepths&&!l)throw new ho.default("must pass parent depths");return II(n,o,t[o],a,0,c,l)},i}function II(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=fj(r,a,t,o,s,i),a.program=e,a.depth=o?o.length:0,a.blockParams=n||0,a}function _Re(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=BI(r.partials,t)):r.name==="@partial-block"?t=BI(r.data,"partial-block"):t=BI(r.partials,r.name),t}function LRe(t,e,r){var s=BI(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!==hj&&(function(){r.data=fo.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=fo.createFrame(c.data),c.data["partial-block"]=s,i(a,c)},i.partials&&(r.partials=Wu.extend({},r.partials,i.partials))})(),t===void 0&&n&&(t=n),t===void 0)throw new ho.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}function hj(){return""}function BI(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}function MRe(t,e){return(!e||!("root"in e))&&(e=e?fo.createFrame(e):{},e.root=t),e}function fj(t,e,r,s,n,i){if(t.decorator){var o={};e=t.decorator(e,o,r,s&&s[0],n,i,s),Wu.extend(e,o)}return e}function mj(t,e,r){e&&Object.keys(e).forEach(function(s){var n=e[s];t[s]=ORe(n,r)})}function ORe(t,e){var r=e.lookupProperty;return PRe.wrapHelper(t,function(s){return s.lookupProperty=r,s})}});var Uk=h((wI,Ej)=>{"use strict";wI.__esModule=!0;wI.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}};Ej.exports=wI.default});var wj=h((bI,Bj)=>{"use strict";bI.__esModule=!0;function Gk(t){return t&&t.__esModule?t:{default:t}}function Hk(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 FRe=yI(),yj=Hk(FRe),URe=uj(),qRe=Gk(URe),GRe=ys(),HRe=Gk(GRe),zRe=Br(),qk=Hk(zRe),$Re=gj(),Cj=Hk($Re),VRe=Uk(),YRe=Gk(VRe);function Ij(){var t=new yj.HandlebarsEnvironment;return qk.extend(t,yj),t.SafeString=qRe.default,t.Exception=HRe.default,t.Utils=qk,t.escapeExpression=qk.escapeExpression,t.VM=Cj,t.template=function(e){return Cj.template(e,t)},t}var Em=Ij();Em.create=Ij;YRe.default(Em);Em.default=Em;bI.default=Em;Bj.exports=bI.default});var zk=h((QI,Qj)=>{"use strict";QI.__esModule=!0;var bj={helpers:{helperExpression:function(e){return e.type==="SubExpression"||(e.type==="Mus Line truncated
`)}return l}else throw new ho.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 ho.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)||uj.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:Ku.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=II(this,a,p,c,l,u,A):d||(d=this.programs[a]=II(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=Ku.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=MRe(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=pj(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={};Aj(a,e.helpers,n),Aj(a,o.helpers,n),n.helpers=a,t.usePartial&&(n.partials=n.mergeIfNeeded(o.partials,e.partials)),(t.usePartial||t.useDecorators)&&(n.decorators=Ku.extend({},e.decorators,o.decorators)),n.hooks={},n.protoAccessControl=uj.createProtoAccessControl(o);var c=o.allowCallsToHelperMissing||r;lj.moveHelperToHooks(n,"helperMissing",c),lj.moveHelperToHooks(n,"blockHelperMissing",c)}},i._child=function(o,a,c,l){if(t.useBlockParams&&!c)throw new ho.default("must pass block params");if(t.useDepths&&!l)throw new ho.default("must pass parent depths");return II(n,o,t[o],a,0,c,l)},i}function II(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=pj(r,a,t,o,s,i),a.program=e,a.depth=o?o.length:0,a.blockParams=n||0,a}function _Re(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=BI(r.partials,t)):r.name==="@partial-block"?t=BI(r.data,"partial-block"):t=BI(r.partials,r.name),t}function LRe(t,e,r){var s=BI(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!==dj&&(function(){r.data=fo.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=fo.createFrame(c.data),c.data["partial-block"]=s,i(a,c)},i.partials&&(r.partials=Ku.extend({},r.partials,i.partials))})(),t===void 0&&n&&(t=n),t===void 0)throw new ho.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}function dj(){return""}function BI(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}function MRe(t,e){return(!e||!("root"in e))&&(e=e?fo.createFrame(e):{},e.root=t),e}function pj(t,e,r,s,n,i){if(t.decorator){var o={};e=t.decorator(e,o,r,s&&s[0],n,i,s),Ku.extend(e,o)}return e}function Aj(t,e,r){e&&Object.keys(e).forEach(function(s){var n=e[s];t[s]=ORe(n,r)})}function ORe(t,e){var r=e.lookupProperty;return PRe.wrapHelper(t,function(s){return s.lookupProperty=r,s})}});var Uk=h((wI,hj)=>{"use strict";wI.__esModule=!0;wI.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}};hj.exports=wI.default});var Cj=h((bI,yj)=>{"use strict";bI.__esModule=!0;function Gk(t){return t&&t.__esModule?t:{default:t}}function Hk(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 FRe=yI(),fj=Hk(FRe),URe=aj(),qRe=Gk(URe),GRe=ys(),HRe=Gk(GRe),zRe=wr(),qk=Hk(zRe),$Re=mj(),gj=Hk($Re),VRe=Uk(),YRe=Gk(VRe);function Ej(){var t=new fj.HandlebarsEnvironment;return qk.extend(t,fj),t.SafeString=qRe.default,t.Exception=HRe.default,t.Utils=qk,t.escapeExpression=qk.escapeExpression,t.VM=gj,t.template=function(e){return gj.template(e,t)},t}var Cm=Ej();Cm.create=Ej;YRe.default(Cm);Cm.default=Cm;bI.default=Cm;yj.exports=bI.default});var zk=h((QI,Bj)=>{"use strict";QI.__esModule=!0;var Ij={helpers:{helperExpression:function(e){return e.type==="SubExpression"||(e.type==="Mus Line truncated
`+this.lexer.showPosition()+`
Expecting `+ye.join(", ")+", got '"+(this.terminals_[I]||I)+"'":It="Parse error on line "+(A+1)+": Unexpected "+(I==1?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(It,{text:this.lexer.match,token:this.terminals_[I]||I,line:this.lexer.yylineno,loc:y,expected:ye})}}if(F[0]instanceof Array&&F.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+I);switch(F[0]){case 1:o.push(I),a.push(this.lexer.yytext),c.push(this.lexer.yylloc),o.push(F[1]),I=null,Q?(I=Q,Q=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],Re.$=a[a.length-ne],Re._$={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&&(Re._$.range=[c[c.length-(ne||1)].range[0],c[c.length-1].range[1]]),be=this.performAction.call(Re,u,d,A,this.yy,F[1],a,c),typeof be<"u")return be;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(Re.$),c.push(Re._$),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()+`
Expecting `+Ee.join(", ")+", got '"+(this.terminals_[I]||I)+"'":wt="Parse error on line "+(A+1)+": Unexpected "+(I==1?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(wt,{text:this.lexer.match,token:this.terminals_[I]||I,line:this.lexer.yylineno,loc:y,expected:Ee})}}if(U[0]instanceof Array&&U.length>1)throw new Error("Parse Error: multiple actions possible at state: "+k+", token: "+I);switch(U[0]){case 1:o.push(I),a.push(this.lexer.yytext),c.push(this.lexer.yylloc),o.push(U[1]),I=null,x?(I=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_[U[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]]),we=this.performAction.call(Se,u,d,A,this.yy,U[1],a,c),typeof we<"u")return we;se&&(o=o.slice(0,-1*se*2),a=a.slice(0,-1*se),c=c.slice(0,-1*se)),o.push(this.productions_[U[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()+`
`+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})();xI.default=JRe;xj.exports=xI.default});var TI=h((RI,Tj)=>{"use strict";RI.__esModule=!0;function WRe(t){return t&&t.__esModule?t:{default:t}}var jRe=ys(),$k=WRe(jRe);function NI(){this.parents=[]}NI.prototype={constructor:NI,mutating:!1,acceptKey:function(e,r){var s=this.accept(e[r]);if(this.mutating){if(s&&!NI.prototype[s.type])throw new $k.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 $k.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 $k.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:SI,Decorator:SI,BlockStatement:Sj,DecoratorBlock:Sj,PartialStatement:Rj,PartialBlockStatement:function(e){Rj.call(this,e),this.acceptKey(e,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:SI,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 SI(t){this.acceptRequired(t,"path"),this.acceptArray(t.params),this.acceptKey(t,"hash")}function Sj(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 _c(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 _c?e:(e=pD(e,this,r),new _c(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=pD(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(pD(e[s],this));return r},generateArray:function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r}};OI.default=A9;d9.exports=OI.default});var E9=h((FI,g9)=>{"use strict";FI.__esModule=!0;function f9(t){return t&&t.__esModule?t:{default:t}}var m9=yI(),YTe=ys(),hD=f9(YTe),JTe=Br(),WTe=p9(),h9=f9(WTe);function tA(t){this.value=t}function rA(){}rA.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=m9.COMPILER_REVISION,r=m9.REVISION_CHANGES[e];return[e,r]},appendToBuffer:function(e,r,s){return JTe.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 hD.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})();xI.default=JRe;wj.exports=xI.default});var TI=h((RI,Nj)=>{"use strict";RI.__esModule=!0;function WRe(t){return t&&t.__esModule?t:{default:t}}var jRe=ys(),$k=WRe(jRe);function NI(){this.parents=[]}NI.prototype={constructor:NI,mutating:!1,acceptKey:function(e,r){var s=this.accept(e[r]);if(this.mutating){if(s&&!NI.prototype[s.type])throw new $k.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 $k.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 $k.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:SI,Decorator:SI,BlockStatement:Qj,DecoratorBlock:Qj,PartialStatement:xj,PartialBlockStatement:function(e){xj.call(this,e),this.acceptKey(e,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:SI,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 SI(t){this.acceptRequired(t,"path"),this.acceptArray(t.params),this.acceptKey(t,"hash")}function Qj(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 Mc(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 Mc?e:(e=pD(e,this,r),new Mc(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=pD(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(pD(e[s],this));return r},generateArray:function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r}};OI.default=c9;l9.exports=OI.default});var h9=h((FI,m9)=>{"use strict";FI.__esModule=!0;function p9(t){return t&&t.__esModule?t:{default:t}}var A9=yI(),YTe=ys(),hD=p9(YTe),JTe=wr(),WTe=u9(),d9=p9(WTe);function sA(t){this.value=t}function nA(){}nA.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=A9.COMPILER_REVISION,r=A9.REVISION_CHANGES[e];return[e,r]},appendToBuffer:function(e,r,s){return JTe.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 hD.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 h9.default(this.options.srcName),this.decorators=new h9.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 d9.default(this.options.srcName),this.decorators=new d9.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 `+ye.join(", ")+", got '"+(this.terminals_[I]||I)+"'":It="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(jTe(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 ED=h((xZe,Q9)=>{var GI=I9().default,b9=B9();GI.PrintVisitor=b9.PrintVisitor;GI.print=b9.print;Q9.exports=GI;function w9(t,e){var r=require("fs"),s=r.readFileSync(e,"utf8");t.exports=GI.compile(s)}typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=w9,require.extensions[".hbs"]=w9)});var H9=h((NZe,Eo)=>{var ke=require("fs"),zI=require("os"),_t=require("path"),x9=require("crypto"),vi={fs:ke.constants,os:zI.constants},N9="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",v9=/XXXXXX/,dve=3,P9=(vi.O_CREAT||vi.fs.O_CREAT)|(vi.O_EXCL||vi.fs.O_EXCL)|(vi.O_RDWR||vi.fs.O_RDWR),pve=zI.platform()==="win32",mve=vi.EBADF||vi.os.errno.EBADF,hve=vi.ENOENT||vi.os.errno.ENOENT,k9=448,D9=384,fve="exit",nA=[],_9=ke.rmdirSync.bind(ke),L9=!1;function gve(t,e){return ke.rm(t,{recursive:!0},e)}function M9(t){return ke.rmSync(t,{recursive:!0})}function BD(t,e){let r=iA(t,e),s=r[0],n=r[1];Nve(s,function(i,o){if(i)return n(i);let a=o.tries;(function c(){try{let l=F9(o);ke.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 wD(t){let e=iA(t),r=e[0],s=Sve(r),n=s.tries;do{let i=F9(s);try{ke.statSync(i)}catch{return i}}while(n-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function Eve(t,e){let r=iA(t,e),s=r[0],n=r[1];BD(s,function(o,a){if(o)return n(o);ke.open(a,P9,s.mode||D9,function(l,u){if(l)return n(l);if(s.discardDescriptor)return ke.close(u,function(d){return n(d,a,void 0,CD(a,-1,s,!1))});{let A=s.discardDescriptor||s.detachDescriptor;n(null,a,u,CD(a,A?-1:u,s,!1))}})})}function yve(t){let e=iA(t),r=e[0],s=r.discardDescriptor||r.detachDescriptor,n=wD(r),i=ke.openSync(n,P9,r.mode||D9);return r.discardDescriptor&&(ke.closeSync(i),i=void 0),{name:n,fd:i,removeCallback:CD(n,s?-1:i,r,!0)}}function Cve(t,e){let r=iA(t,e),s=r[0],n=r[1];BD(s,function(o,a){if(o)return n(o);ke.mkdir(a,s.mode||k9,function(l){if(l)return n(l);n(null,a,O9(a,s,!1))})})}function Ive(t){let e=iA(t),r=e[0],s=wD(r);return ke.mkdirSync(s,r.mode||k9),{name:s,removeCallback:O9(s,r,!0)}}function Bve(t,e){let r=function(s){if(s&&!ID(s))return e(s);e()};0<=t[0]?ke.close(t[0],function(){ke.unlink(t[1],r)}):ke.unlink(t[1],r)}function wve(t){let e=null;try{0<=t[0]&&ke.closeSync(t[0])}catch(r){if(!Rve(r)&&!ID(r))throw r}finally{try{ke.unlinkSync(t[1])}catch(r){ID(r)||(e=r)}}if(e!==null)throw e}function CD(t,e,r,s){let n=HI(wve,[e,t],s),i=HI(Bve,[e,t],s,n);return r.keep||nA.unshift(n),s?n:i}function O9(t,e,r){let s=e.unsafeCleanup?gve:ke.rmdir. Line truncated
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function fx(t,e){if(process.env.GITHUB_OUTPUT||"")return pA("OUTPUT",Km(t,e));process.stdout.write(mx.EOL),Di("set-output",{name:t},vn(e))}function IG(t){process.exitCode=px.Failure,zAe(t)}function re(t){Di("debug",{},t)}function zAe(t,e={}){Di("error",NB(e),t instanceof Error?t.toString():t)}function pn(t,e={}){Di("warning",NB(e),t instanceof Error?t.toString():t)}function $(t){process.stdout.write(t+mx.EOL)}function $Ae(t){RB("group",t)}function VAe(){RB("endgroup")}function he(t,e){return HAe(this,void 0,void 0,function*(){$Ae(t);let r;try{r=yield e()}finally{VAe()}return r})}function Gl(t,e){if(process.env.GITHUB_STATE||"")return pA("STATE",Km(t,e));Di("save-state",{name:t},vn(e))}function BG(t){return process.env[`STATE_${t}`]||""}var iI=B(require("fs"),1),bk=B(require("os"),1),Qk=B(require("path"),1);var bG=B(require("os"),1);function yd(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function QG(t,e,r){let s=new gx(t,e,r);process.stdout.write(s.toString()+bG.EOL)}var wG="::",gx=class{constructor(e,r,s){e||(e="missing.command"),this.command=e,this.properties=r,this.message=s}toString(){let e=wG+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}=${JAe(n)}`)}}return e+=`${wG}${YAe(this.message)}`,e}};function YAe(t){return yd(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function JAe(t){return yd(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var RG=B(require("os"),1);var NG=require("os"),Cd=require("fs"),Ex=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:WAe,appendFile:jAe,writeFile:KAe}=Cd.promises,xG="GITHUB_STEP_SUMMARY";var yx=class{constructor(){this._buffer=""}filePath(){return Ex(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[xG];if(!e)throw new Error(`Unable to find environment variable for $${xG}. Check if your runtime environment supports job summaries.`);try{yield WAe(e,Cd.constants.R_OK|Cd.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 Ex(this,void 0,void 0,function*(){let r=!!e?.overwrite,s=yield this.filePath();return yield(r?KAe:jAe)(s,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return Ex(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(NG.EOL)}addCodeBlock(e,r){let s=Object.assign({},r&&{lang:r}),n=this.wrap("pre",this.wrap("code",e),s);return this.addRaw(n).addEOL()}addList(e,r=!1){let s=r?"ol":"ul",n=e.map(o=>this.wrap("li",o)).join(""),i=this.wrap(s,n);return this.addRaw(i).addEOL()}addTable(e){let r=e.map(n=>{let i=n.map(o=>{if(typeof o=="string")return this.wrap("td",o);let{header:a,data:c,colspan:l,rowspan:u}=o,A=a?"th":"td",d=Object.assign(Object.assign({},l&&{colspan:l}),u&&{rowspan:u});return this.wrap(A,c,d)}).join("");return this.wrap("tr",i)}).join(""),s=this.wrap("table",r);return this.addRaw(s).addEOL()}addDetails(e,r){let s=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(s).addEOL()}addImage(e,r,s){let{width:n,height:i}=s||{},o=Object.assign(Object.assign({},n&&{width:n}),i&&{height:i}),a=this.wrap("img",null,Object.assign({src:e,alt:r},o));return this.addRaw(a).addEOL()}addHeading(e,r){let s=`h${r}`,n=["h1","h2","h3","h4","h5","h6"].includes(s)?s:"h1",i=this.wrap(n,e);return this.addRaw(i).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let s=Object.assign({},r&&{cite:r}),n=this.wrap("blockquote",e,s);return this.addRaw(n).addEOL()}addLink(e,r){let s=this.wrap("a",e,{href:r});return this.addRaw(s).addEOL()}},zOe=new yx;var Cx=B(require("os"),1);var YOe=Cx.default.platform(),JOe=Cx.default.arch();var SG;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(SG||(SG={}));function Ix(){return process.env.RUNNER_DEBUG==="1"}function Me(t){QG("debug",{},t)}function Bx(t){process.stdout.write(t+RG.EOL)}var zx=B(require("crypto"),1),tr=B(require("fs"),1);var Jme=B(Gx(),1);var mg=B(requirLine 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(jTe(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 ED=h((aZe,B9)=>{var GI=E9().default,I9=y9();GI.PrintVisitor=I9.PrintVisitor;GI.print=I9.print;B9.exports=GI;function C9(t,e){var r=require("fs"),s=r.readFileSync(e,"utf8");t.exports=GI.compile(s)}typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=C9,require.extensions[".hbs"]=C9)});var U9=h((cZe,Eo)=>{var Pe=require("fs"),zI=require("os"),Lt=require("path"),w9=require("crypto"),Ti={fs:Pe.constants,os:zI.constants},b9="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",S9=/XXXXXX/,dve=3,R9=(Ti.O_CREAT||Ti.fs.O_CREAT)|(Ti.O_EXCL||Ti.fs.O_EXCL)|(Ti.O_RDWR||Ti.fs.O_RDWR),pve=zI.platform()==="win32",mve=Ti.EBADF||Ti.os.errno.EBADF,hve=Ti.ENOENT||Ti.os.errno.ENOENT,T9=448,v9=384,fve="exit",oA=[],P9=Pe.rmdirSync.bind(Pe),k9=!1;function gve(t,e){return Pe.rm(t,{recursive:!0},e)}function D9(t){return Pe.rmSync(t,{recursive:!0})}function BD(t,e){let r=aA(t,e),s=r[0],n=r[1];Nve(s,function(i,o){if(i)return n(i);let a=o.tries;(function c(){try{let l=L9(o);Pe.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 wD(t){let e=aA(t),r=e[0],s=Sve(r),n=s.tries;do{let i=L9(s);try{Pe.statSync(i)}catch{return i}}while(n-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function Eve(t,e){let r=aA(t,e),s=r[0],n=r[1];BD(s,function(o,a){if(o)return n(o);Pe.open(a,R9,s.mode||v9,function(l,u){if(l)return n(l);if(s.discardDescriptor)return Pe.close(u,function(d){return n(d,a,void 0,CD(a,-1,s,!1))});{let A=s.discardDescriptor||s.detachDescriptor;n(null,a,u,CD(a,A?-1:u,s,!1))}})})}function yve(t){let e=aA(t),r=e[0],s=r.discardDescriptor||r.detachDescriptor,n=wD(r),i=Pe.openSync(n,R9,r.mode||v9);return r.discardDescriptor&&(Pe.closeSync(i),i=void 0),{name:n,fd:i,removeCallback:CD(n,s?-1:i,r,!0)}}function Cve(t,e){let r=aA(t,e),s=r[0],n=r[1];BD(s,function(o,a){if(o)return n(o);Pe.mkdir(a,s.mode||T9,function(l){if(l)return n(l);n(null,a,_9(a,s,!1))})})}function Ive(t){let e=aA(t),r=e[0],s=wD(r);return Pe.mkdirSync(s,r.mode||T9),{name:s,removeCallback:_9(s,r,!0)}}function Bve(t,e){let r=function(s){if(s&&!ID(s))return e(s);e()};0<=t[0]?Pe.close(t[0],function(){Pe.unlink(t[1],r)}):Pe.unlink(t[1],r)}function wve(t){let e=null;try{0<=t[0]&&Pe.closeSync(t[0])}catch(r){if(!Rve(r)&&!ID(r))throw r}finally{try{Pe.unlinkSync(t[1])}catch(r){ID(r)||(e=r)}}if(e!==null)throw e}function CD(t,e,r,s){let n=HI(wve,[e,t],s),i=HI(Bve,[e,t],s,n);return r.keep||oA.unshift(n),s?n:i}function _9(t,e,r){let s=e.unsafeCleanup?gve:Pe.rmdir. Line truncated
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function Ex(t,e){if(process.env.GITHUB_OUTPUT||"")return hA("OUTPUT",Km(t,e));process.stdout.write(fx.EOL),vn("set-output",{name:t},Tn(e))}function wG(t){process.exitCode=hx.Failure,Hl(t)}function Va(){return process.env.RUNNER_DEBUG==="1"}function w(t){vn("debug",{},t)}function Hl(t,e={}){vn("error",SB(e),t instanceof Error?t.toString():t)}function Ze(t,e={}){vn("warning",SB(e),t instanceof Error?t.toString():t)}function N(t){process.stdout.write(t+fx.EOL)}function GAe(t){TB("group",t)}function HAe(){TB("endgroup")}function me(t,e){return qAe(this,void 0,void 0,function*(){GAe(t);let r;try{r=yield e()}finally{HAe()}return r})}function zl(t,e){if(process.env.GITHUB_STATE||"")return hA("STATE",Km(t,e));vn("save-state",{name:t},Tn(e))}function bG(t){return process.env[`STATE_${t}`]||""}var iI=B(require("fs"),1),bk=B(require("os"),1),Qk=B(require("path"),1);var xG=B(require("os"),1);function wd(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function NG(t,e,r){let s=new yx(t,e,r);process.stdout.write(s.toString()+xG.EOL)}var QG="::",yx=class{constructor(e,r,s){e||(e="missing.command"),this.command=e,this.properties=r,this.message=s}toString(){let e=QG+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}=${$Ae(n)}`)}}return e+=`${QG}${zAe(this.message)}`,e}};function zAe(t){return wd(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function $Ae(t){return wd(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var vG=B(require("os"),1);var RG=require("os"),bd=require("fs"),Cx=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:VAe,appendFile:YAe,writeFile:JAe}=bd.promises,SG="GITHUB_STEP_SUMMARY";var Ix=class{constructor(){this._buffer=""}filePath(){return Cx(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[SG];if(!e)throw new Error(`Unable to find environment variable for $${SG}. Check if your runtime environment supports job summaries.`);try{yield VAe(e,bd.constants.R_OK|bd.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 Cx(this,void 0,void 0,function*(){let r=!!e?.overwrite,s=yield this.filePath();return yield(r?JAe:YAe)(s,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return Cx(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(RG.EOL)}addCodeBlock(e,r){let s=Object.assign({},r&&{lang:r}),n=this.wrap("pre",this.wrap("code",e),s);return this.addRaw(n).addEOL()}addList(e,r=!1){let s=r?"ol":"ul",n=e.map(o=>this.wrap("li",o)).join(""),i=this.wrap(s,n);return this.addRaw(i).addEOL()}addTable(e){let r=e.map(n=>{let i=n.map(o=>{if(typeof o=="string")return this.wrap("td",o);let{header:a,data:c,colspan:l,rowspan:u}=o,A=a?"th":"td",d=Object.assign(Object.assign({},l&&{colspan:l}),u&&{rowspan:u});return this.wrap(A,c,d)}).join("");return this.wrap("tr",i)}).join(""),s=this.wrap("table",r);return this.addRaw(s).addEOL()}addDetails(e,r){let s=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(s).addEOL()}addImage(e,r,s){let{width:n,height:i}=s||{},o=Object.assign(Object.assign({},n&&{width:n}),i&&{height:i}),a=this.wrap("img",null,Object.assign({src:e,alt:r},o));return this.addRaw(a).addEOL()}addHeading(e,r){let s=`h${r}`,n=["h1","h2","h3","h4","h5","h6"].includes(s)?s:"h1",i=this.wrap(n,e);return this.addRaw(i).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let s=Object.assign({},r&&{cite:r}),n=this.wrap("blockquote",e,s);return this.addRaw(n).addEOL()}addLink(e,r){let s=this.wrap("a",e,{href:r});return this.addRaw(s).addEOL()}},ZOe=new Ix;var Bx=B(require("os"),1);var rFe=Bx.default.platform(),sFe=Bx.default.arch();var TG;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(TG||(TG={}));function wx(){return process.env.RUNNER_DEBUG==="1"}function Le(t){NG("debug",{},t)}function bx(t){process.stdout.write(t+vG.EOL)}var Vx=B(require("crypto"),1),nr=B(rLine 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 Od(i));return s.searchPaths.push(...n0(s.patterns)),s})}static stat(e,r,s){return u0(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield Wl.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){Ps(`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 Wl.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield Wl.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(o=>o===i)){Ps(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};var zhe=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 A$(t,e){return zhe(this,void 0,void 0,function*(){return yield Bg.create(t,e)})}var Og=B(require("crypto"),1),Xl=B(require("fs"),1),ja=B(require("path"),1),rY=B(eY(),1),sY=B(require("util"),1);var Yd;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Yd||(Yd={}));var gr;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(gr||(gr={}));var os;(function(t){t.GNU="gnu",t.BSD="bsd"})(os||(os={}));var Lg=2,Mg=5e3,T0=5e3,v0=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,tY=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Jd="cache.tar",P0="manifest.txt",x1e=10*Math.pow(1024,3);var Kl=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())})},qEe=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)}},GEe="1.0";function Wd(){return Kl(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=ja.join(s,"actions","temp")}let r=ja.join(e,Og.randomUUID());return yield Ss(r),r})}function Wn(t){return Xl.statSync(t).size}function k0(t){return Kl(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 A$(t.join(`
`),{implicitDescendants:!1});try{for(var l=!0,u=qEe(c.globGenerator()),A;A=yield u.next(),e=A.done,!e;l=!0){n=A.value,l=!1;let p=ja.relative(a,n).replace(new RegExp(`\\${ja.sep}`,"g"),"/");N(`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 jd(t){return Kl(this,void 0,void 0,function*(){return sY.promisify(Xl.unlink)(t)})}function nY(t){return Kl(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),N(`Checking ${e} ${r.join(" ")}`);try{yield ns(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:n=>s+=n.toString(),stderr:n=>s+=n.toString()}})}catch(n){N(n.message)}return s=s.trim(),N(s),s})}function Kd(){return Kl(this,void 0,void 0,function*(){let t=yield nY("zstd",["--quiet"]),e=rY.clean(t);return N(`zstd version: ${e}`),t===""?gr.Gzip:gr.ZstdWithoutLong})}function Jo(t){return t===gr.Gzip?Yd.Gzip:Yd.Zstd}function iY(){return Kl(this,void 0,void 0,function*(){return Xl.existsSync(v0)?v0:(yield nY("tar")).toLowerCase().includes("gnu tar")?pt("tar"):""})}function D0(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function Zl(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(GEe),Og.createHash("sha256").update(s.join("|")).digest("hex")}function oY(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}var Tu=B(require("fs"),1),Q8=require("url");var jn=class extends Error{constructor(e){super(e),this.name="AbortError"}};var aY=require("node:os"),cY=B(require("node:util"),1),lY=B(require("node:process"),1);function uY(t,...e){lY.default.stderr.write(`${cY.default.format(t,...e)}${aY.EOL}`)}var AY=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,pY,_0=[],L0=[],Ug=[];AY&&M0(AY);var mY=Object.assign(t=>hY(t),{enable:M0,enabled:O0,disable:HEe,log:uY});function M0(t){pY=t,_0=[],L0=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?L0.push(r.substring(1)):_0.push(r);for(let r of Ug)r.enabled=O0(r.namespace)}function O0(t){if(t.endsWith("*"))return!0;for(let e of L0)if(dY(t,e))return!1;for(let e of _0)if(dY(t,e))return!0;return!1}function dY(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 HEe(){let t=pY||"";return M0(""),t}function hY(t){let e=Object.assign(r,{enabled:O0(t),destroy:zEe,log:mY.log,namespace:t,extend:$Ee});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return Ug.push(e),e}function zEe(){let t=Ug.indexOf(this);return t>=0?(Ug.splice(t,1),!0):!1}function $Ee(t){let e=hY(`${this.namespace}:${t}`);return e.log=this.log,e}var eu=mY;var F0=["verbose","info","warning","error"],fY={verbose:400,info:300,warning:200,error:100};function gY(t,e){e.log=(...r)=>{t.log(...r)}}function EY(t){return F0.includes(t)}function qg(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,s,n=eu(t.namespace);n.log=(...u)=>{eu.log(...u)};function i(u){if(u&&!EY(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${F0.join(",")}`);s=u;let A=[];for(let d of e)o(d)&&A.push(d.namespace);eu.enable(A.join(","))}r&&(EY(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${F0.join(", ")}.`));function o(u){return!!(s&&fY[u.level]<=fY[s])}function a(u,A){let d=Object.assign(u.extend(A),{level:A});if(gY(u,d),o(d)){let p=eu.disable();eu.enable(p+","+d.namespace)}return e.add(d),d}function c(){return s}function l(u){let A=n.extend(u);return gY(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 yY=qg({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),VEe=yY.logger;function Xd(t){return yY.createClientLogger(t)}function Gg(t){return t.toLowerCase()}function*YEe(t){for(let e of t.values())yield[e.name,e.value]}var U0=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(Gg(e),{name:e,value:String(r).trim()})}get(e){return this._headersMap.get(Gg(e))?.value}has(e){return this._headersMap.has(Gg(e))}delete(e){this._headersMap.delete(Gg(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
${jEe.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function $g(t){return t instanceof Er?!0:Xa(t)&&t.name==="RestError"}function _r(t,e){return Buffer.from(t,e)}var Vg=B(require("node:http"),1),Yg=B(require("node:https"),1),z0=B(require("node:zlib"),1),bY=require("node:stream");var _s=Xd("ts-http-runtime");var KEe={};function Zd(t){return t&&typeof t.pipe=="function"}function wY(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 QY(t){return t&&typeof t.byteLength=="number"}var Jg=class extends bY.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}},$0=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)throw new jn("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 En;_s.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=tye(a);l!==null&&e.headers.set("Content-Length",l)}let c;try{if(a&&e.onUploadProgress){let m=e.onUploadProgress,f=new Jg(m);f.on("error",y=>{_s.error("Error in upload progress",y)}),Zd(a)?a.pipe(f):f.end(a),a=f}let l=await this.makeRequest(e,r,a);n!==void 0&&clearTimeout(n);let u=XEe(l),d={status:l.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return l.resume(),d;c=o?ZEe(l,u):l;let p=e.onDownloadProgress;if(p){let m=new Jg(p);m.on("error",f=>{_s.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 eye(c),d}finally{if(e.abortSignal&&s){let l=Promise.resolve();Zd(a)&&(l=wY(a));let u=Promise.resolve();Zd(c)&&(u=wY(c)),Promise.all([l,u]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(A=>{_s.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?Vg.default.request(a,c):Yg.default.request(a,c);u.once("error",A=>{l(new Er(A.message,{code:A.code??Er.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let A=new jn("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(A),l(A)}),s&&Zd(s)?s.pipe(u):s?typeof s=="string"||Buffer.isBuffer(s)?u.end(s):QY(s)?u.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer):Buffer.from(s)):(_s.error("Unrecognized body type",s),l(new Er("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?Vg.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new Vg.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return Yg.default.globalAgent;let n=e.tlsSettings??KEe,i=this.cachedHttpsAgents.get(n);return i&&i.options.keepAlive===!s||(_s.info("No cached TLS Agent exist, creating a new Agent"),i=new Yg.default.Agent({keepAlive:!s,...n}),this.cachedHttpsAgents.set(n,i)),i}}};function XEe(t){let e=as();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 ZEe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let s=z0.default.createGunzip();return t.pipe(s),s}else if(r==="deflate"){let s=z0.default.createInflate();return t.pipe(s),s}return t}function eye(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 Er(`Error reading response as text: ${n.message}`,{code:Er.PARSE_ERROR}))})})}function tye(t){return t?Buffer.isBuffer(t)?t.length:Zd(t)?null:QY(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function xY(){return new $0}function Wg(){return xY()}var V0="logPolicy";function jg(t={}){let e=t.logger??_s.info,r=new En({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQue Line truncated
`).map(i=>i.trim());for(let i of n)!i||i.startsWith("#")||s.patterns.push(new Od(i));return s.searchPaths.push(...t0(s.patterns)),s})}static stat(e,r,s){return a0(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){ks(`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)){ks(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};var _he=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 a$(t,e){return _he(this,void 0,void 0,function*(){return yield Ig.create(t,e)})}var Mg=B(require("crypto"),1),Zl=B(require("fs"),1),Xa=B(require("path"),1),XV=B(jV(),1),ZV=B(require("util"),1);var Yd;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Yd||(Yd={}));var gr;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(gr||(gr={}));var os;(function(t){t.GNU="gnu",t.BSD="bsd"})(os||(os={}));var _g=2,Lg=5e3,N0=5e3,S0=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,KV=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Jd="cache.tar",R0="manifest.txt",i1e=10*Math.pow(1024,3);var Xl=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())})},PEe=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)}},kEe="1.0";function Wd(){return Xl(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=Xa.join(s,"actions","temp")}let r=Xa.join(e,Mg.randomUUID());return yield Rs(r),r})}function Yn(t){return Zl.statSync(t).size}function T0(t){return Xl(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 a$(t.join(`
`),{implicitDescendants:!1});try{for(var l=!0,u=PEe(c.globGenerator()),A;A=yield u.next(),e=A.done,!e;l=!0){n=A.value,l=!1;let p=Xa.relative(a,n).replace(new RegExp(`\\${Xa.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 jd(t){return Xl(this,void 0,void 0,function*(){return ZV.promisify(Zl.unlink)(t)})}function eY(t){return Xl(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),w(`Checking ${e} ${r.join(" ")}`);try{yield ns(`${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 Kd(){return Xl(this,void 0,void 0,function*(){let t=yield eY("zstd",["--quiet"]),e=XV.clean(t);return w(`zstd version: ${e}`),t===""?gr.Gzip:gr.ZstdWithoutLong})}function Jo(t){return t===gr.Gzip?Yd.Gzip:Yd.Zstd}function tY(){return Xl(this,void 0,void 0,function*(){return Zl.existsSync(S0)?S0:(yield eY("tar")).toLowerCase().includes("gnu tar")?pt("tar"):""})}function v0(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function eu(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(kEe),Mg.createHash("sha256").update(s.join("|")).digest("hex")}function rY(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}var Zd=B(require("http"),1),D0=B(require("https"),1);function P0(t){let e=t.protocol==="https:";if(DEe(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new Fg(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new Fg(`http://${r}`)}else return}function DEe(t){if(!t.hostname)return!1;let e=t.hostname;if(_Ee(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let s;t.port?s=Number(t.port):t.protocol==="http:"?s=80:t.protocol==="https:"&&(s=443);let n=[t.hostname.toUpperCase()];typeof s=="number"&&n.push(`${n[0]}:${s}`);for(let i of r.split(",").map(o=>o.trim().toUpperCase()).filter(o=>o))if(i==="*"||n.some(o=>o===i||o.endsWith(`.${i}`)||i.startsWith(".")&&o.endsWith(`${i}`)))return!0;return!1}function _Ee(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}var Fg=class extends URL{constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var Wo=B(fA(),1),sY=B(Fl(),1),ht=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())})},et;(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"})(et||(et={}));var Er;(function(t){t.Accept="accept",t.ContentType="content-type"})(Er||(Er={}));var Ki;(function(t){t.ApplicationJson="application/json"})(Ki||(Ki={}));var MEe=[et.MovedPermanently,et.ResourceMoved,et.SeeOther,et.TemporaryRedirect,et.PermanentRedirect],OEe=[et.BadGateway,et.ServiceUnavailable,et.GatewayTimeout],FEe=["OPTIONS","GET","DELETE","HEAD"],UEe=10,qEe=5,Jn=class t extends Error{constructor(e,r){super(e),this.name="HttpClientError",this.statusCode=r,Object.setPrototypeOf(this,t.prototype)}},k0=class{constructor(e){this.message=e}readBody(){return ht(this,void 0,void 0,function*(){return new Promise(e=>ht(this,void 0,void 0,function*(){let r=Buffer.alloc(0);this.message.on("data",s=>{r=Buffer.concat([r,s])}),this.message.on("end",()=>{e(r.toString())})}))})}readBodyBuffer(){return ht(this,void 0,void 0,function*(){re Line truncated
${jEe.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function $g(t){return t instanceof yr?!0:ec(t)&&t.name==="RestError"}function _r(t,e){return Buffer.from(t,e)}var Vg=B(require("node:http"),1),Yg=B(require("node:https"),1),z0=B(require("node:zlib"),1),IY=require("node:stream");var Ls=ep("ts-http-runtime");var KEe={};function tp(t){return t&&typeof t.pipe=="function"}function CY(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 BY(t){return t&&typeof t.byteLength=="number"}var Jg=class extends IY.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}},$0=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 gn;Ls.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=tye(a);l!==null&&e.headers.set("Content-Length",l)}let c;try{if(a&&e.onUploadProgress){let m=e.onUploadProgress,f=new Jg(m);f.on("error",y=>{Ls.error("Error in upload progress",y)}),tp(a)?a.pipe(f):f.end(a),a=f}let l=await this.makeRequest(e,r,a);n!==void 0&&clearTimeout(n);let u=XEe(l),d={status:l.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return l.resume(),d;c=o?ZEe(l,u):l;let p=e.onDownloadProgress;if(p){let m=new Jg(p);m.on("error",f=>{Ls.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 eye(c),d}finally{if(e.abortSignal&&s){let l=Promise.resolve();tp(a)&&(l=CY(a));let u=Promise.resolve();tp(c)&&(u=CY(c)),Promise.all([l,u]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(A=>{Ls.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?Vg.default.request(a,c):Yg.default.request(a,c);u.once("error",A=>{l(new yr(A.message,{code:A.code??yr.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&&tp(s)?s.pipe(u):s?typeof s=="string"||Buffer.isBuffer(s)?u.end(s):BY(s)?u.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer):Buffer.from(s)):(Ls.error("Unrecognized body type",s),l(new yr("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?Vg.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new Vg.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return Yg.default.globalAgent;let n=e.tlsSettings??KEe,i=this.cachedHttpsAgents.get(n);return i&&i.options.keepAlive===!s||(Ls.info("No cached TLS Agent exist, creating a new Agent"),i=new Yg.default.Agent({keepAlive:!s,...n}),this.cachedHttpsAgents.set(n,i)),i}}};function XEe(t){let e=as();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 ZEe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let s=z0.default.createGunzip();return t.pipe(s),s}else if(r==="deflate"){let s=z0.default.createInflate();return t.pipe(s),s}return t}function eye(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 yr(`Error reading response as text: ${n.message}`,{code:yr.PARSE_ERROR}))})})}function tye(t){return t?Buffer.isBuffer(t)?t.length:tp(t)?null:BY(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function wY(){return new $0}function Wg(){return wY()}var V0="logPolicy";function jg(t={}){let e=t.logger??Ls.info,r=new gn({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQue Line truncated
`;return e}function wCe(t){return t instanceof Uint8Array?t.byteLength:gE(t)?t.size===-1?void 0:t.size:void 0}function bCe(t){let e=0;for(let r of t){let s=wCe(r);if(s===void 0)return;e+=s}return e}async function QCe(t,e,r){let s=[_r(`--${r}`,"utf-8"),...e.flatMap(i=>[_r(`\r
`,"utf-8"),_r(BCe(i.headers),"utf-8"),_r(`\r
`,"utf-8"),i.body,_r(`\r
--${r}`,"utf-8")]),_r(`--\r
\r
`,"utf-8")],n=bCe(s);n&&t.headers.set("Content-Length",n),t.body=await IJ(s)}var sp="multipartPolicy",xCe=70,NCe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function SCe(t){if(t.length>xCe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!NCe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function yE(){return{name:sp,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?SCe(r):r=ICe(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await QCe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function CE(){return zg()}var BJ=qg({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),aze=BJ.logger;function Xn(t){return BJ.createClientLogger(t)}var Zn=Xn("core-rest-pipeline");function lN(t={}){return jg({logger:Zn.info,...t})}var uN=Kg;function AN(t={}){return Xg(t)}var IE=B(require("node:os"),1),BE=B(require("node:process"),1);function wJ(){return"User-Agent"}async function bJ(t){if(BE.default&&BE.default.versions){let e=`${IE.default.type()} ${IE.default.release()}; ${IE.default.arch()}`,r=BE.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 wE="1.22.2";function LCe(t){let e=[];for(let[r,s]of t){let n=s?`${r}/${s}`:r;e.push(n)}return e.join(" ")}function QJ(){return wJ()}async function bE(t){let e=new Map;e.set("core-rest-pipeline",wE),await bJ(e);let r=LCe(e);return t?`${t} ${r}`:r}var xJ=QJ(),NJ="userAgentPolicy";function dN(t={}){let e=bE(t.userAgentPrefix);return{name:NJ,async sendRequest(r,s){return r.headers.has(xJ)||r.headers.set(xJ,await e),s(r)}}}var us=class extends Error{constructor(e){super(e),this.name="AbortError"}};function pN(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,o)=>{function a(){o(new us(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 qCe="The delay was aborted.";function np(t,e){let r,{abortSignal:s,abortErrorMsg:n}=e??{};return pN(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:s,abortErrorMsg:n??qCe})}function jo(t){if(Xa(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 Xa(t)}function au(){return Ka()}var Ne=tc;var RJ=Symbol("rawContent");function hN(t){return typeof t[RJ]=="function"}function TJ(t){return hN(t)?t[RJ]():t}var QE=sp;function fN(){let t=yE();return{name:QE,sendRequest:async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)hN(s.body)&&(s.body=TJ(s.body));return t.sendRequest(e,r)}}}var gN=Zg;function EN(){return eE()}function yN(t={}){return sE(t)}function CN(){return nE()}function Ko(t){return nN(t)}function IN(t,e){return mE(t,e)}var vJ="setClientRequestIdPolicy";function BN(t="x-ms-client-request-id"){return{name:vJ,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function wN(t){return hE(t)}function bN(t){return fE(t)}var cu={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function PJ(t={}){let e=new QN(t.parentContext);return t.span&&(e=e.setValue(cu.span,t.span)),t.namespace&&(e=e.setValue(cu.namespace,t.namespace)),e}var QN=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 DJ=B(kJ(),1),NE=DJ.state;function GCe(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function HCe(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:GCe(),tracingContext:PJ({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function ip(){return NE.instrumenterImplementation||(NE.instrumenterImplementation=HCe()),NE.instrumenterImplementation}function op(t){let{namespace:e,packageName:r,packageVersion:s}=t;function n(l,u,A){let d=ip().startSpan(l,{...A,packageName:r,packageVersion:s,tracingContext:u?.tracingOptions?.tracingContext}),p=d.tracingContext,m=d.span;p.getValue(cu.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--),!ABe(c)){let A;return c.trim().length===0?A="Invalid space after '<'.":A="Tag '"+c+"' is an invalid name.",mt("InvalidTag",A,yr(t,i))}let l=oBe(t,i);if(l===!1)return mt("InvalidAttr","Attributes for '"+c+"' have open quote.",yr(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=h3(u,e);if(d===!0)s=!0;else return mt(d.err.code,d.err.msg,yr(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.",yr(t,o));if(r.length===0)return mt("InvalidTag","Closing tag '"+c+"' has not been opened.",yr(t,o));{let A=r.pop();if(c!==A.tagName){let d=yr(t,A.tagStartPos);return mt("InvalidTag","Expected closing tag '"+A.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",yr(t,o))}r.length==0&&(n=!0)}}else return mt("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",yr(t,i));else{let A=h3(u,e);if(A!==!0)return mt(A.err.code,A.err.msg,yr(t,i-u.length+A.err.line));if(n===!0)return mt("InvalidXml","Multiple possible root nodes found.",yr(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=m3(t,i);continue}else if(t[i+1]==="?"){if(i=p3(t,++i),i.err)return i}else break;else if(t[i]==="&"){let A=lBe(t,i);if(A==-1)return mt("InvalidChar","char '&' is not expected.",yr(t,i));i=A}else if(n===!0&&!d3(t[i]))return mt("InvalidXml","Extra text at the end",yr(t,i));t[i]==="<"&&i--}}else{if(d3(t[i]))continue;return mt("InvalidChar","char '"+t[i]+"' is not expected.",yr(t,i))}if(s){if(r.length==1)return mt("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",yr(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 d3(t){return t===" "||t===" "||t===`
`||t==="\r"}function p3(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.",yr(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function m3(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 nBe='"',iBe="'";function oBe(t,e){let r="",s="",n=!1;for(;e<t.length;e++){if(t[e]===nBe||t[e]===iBe)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 aBe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function h3(t,e){let r=LE(t,aBe),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.",fp(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return mt("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",fp(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return mt("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",fp(r[n]));let i=r[n][2];if(!uBe(i))return mt("InvalidAttr","Attribute '"+i+"' is an invalid name.",fp(r[n]));if(!Object.prototype.hasOwnProperty.call(s,i))s[i]=1;else return mt("InvalidAttr","Attribute '"+i+"' is repeated.",fp(r[n]))}return!0}function cBe(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 lBe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,cBe(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 uBe(t){return Au(t)}function ABe(t){return Au(t)}function yr(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function fp(t){return t.startIndex+t[1].length}var f3={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"},g3={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"},E3={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 Or("!xml"),r=e,s="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let n=this.options,i=new yp(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=mu(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=WN(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=jN(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 Or(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=mu(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=mu(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=jN(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}=WN(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={},I;I=SBe(d),A!==e.tagname&&this.matcher.push(A,{},I),A!==p&&m&&(E=this.buildAttributesMap(p,this.matcher,A),E&&(C=NBe(E,n))),A!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let Q=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 Or(A);E&&(F[":@"]=E),F.add(n.textNodeName,P),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,F,this.readonlyMatcher,Q)}else{if(g){({tagName:A,tagExp:p}=WN(n.transformTagName,A,p,n));let P=new Or(A);E&&(P[":@"]=E),this.addChild(r,P,this.readonlyMatcher,Q),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(n.unpairedTagsSet.has(A)){let P=new Or(A);E&&(P[":@"]=E),this.addChild(r,P,this.readonlyMatcher,Q),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let P=new Or(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,Q),r=P}s="",a=f}}}else s+=t[a];return e.child};function DBe(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 _Be(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 LBe(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 MBe(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function OBe(t,e,r=">"){let s=0,n=[],i=t.length,o=Line truncated
`;function KBe(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(rS(r)==="?xml"){let n=r[":@"];if(n){let i=e.attributeNamePrefix+"version";if(n[i])return n[i]}}return"1.0"}function O3(t,e,r,s,n){return!r.sanitizeName||zE(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}function tS(t,e){let r="";e.format&&(r=jBe);let s=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let o=0;o<e.stopNodes.length;o++){let a=e.stopNodes[o];typeof a=="string"?s.push(new ps(a)):a instanceof ps&&s.push(a)}let n=KBe(t,e),i=new ri;return F3(t,e,r,i,s,n)}function F3(t,e,r,s,n,i){let o="",a=!1;if(e.maxNestedTags&&s.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let c=t.toString();return c=eS(c,e),c}return""}for(let c=0;c<t.length;c++){let l=t[c],u=rS(l);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:O3(u,!1,e,s,i),p=XBe(l[":@"],e);s.push(d,p);let m=ewe(s,n);if(d===e.textNodeName){let C=l[u];m||(C=e.tagValueProcessor(d,C),C=eS(C,e)),a&&(o+=r),o+=C,a=!1,s.pop();continue}else if(d===e.cdataPropName){a&&(o+=r);let C=l[u][0][e.textNodeName],I=HE(C);o+=`<![CDATA[${I}]]>`,a=!1,s.pop();continue}else if(d===e.commentPropName){let C=l[u][0][e.textNodeName],I=GE(C);o+=r+`<!--${I}-->`,a=!0,s.pop();continue}else if(d[0]==="?"){let C=M3(l[":@"],e,m,s,i);o+=(d==="?xml"?"":r)+`<${d}${C}?>`,a=!0,s.pop();continue}let f=r;f!==""&&(f+=e.indentBy);let y=M3(l[":@"],e,m,s,i),g=r+`<${d}${y}`,E;m?E=U3(l[u],e):E=F3(l[u],e,f,s,n,i),e.unpairedTags.indexOf(d)!==-1?e.suppressUnpairedNode?o+=g+">":o+=g+"/>":(!E||E.length===0)&&e.suppressEmptyNode?o+=g+"/>":E&&E.endsWith(">")?o+=g+`>${E}${r}</${d}>`:(o+=g+">",E&&r!==""&&(E.includes("/>")||E.includes("</"))?o+=r+e.indentBy+E+r:o+=E,o+=`</${d}>`),a=!0,s.pop()}return o}function XBe(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]=ea(t[n]),s=!0}return s?r:null}function U3(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=rS(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=ZBe(n[":@"],e),a=U3(n[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function ZBe(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)}="${ea(n)}"`}return r}function rS(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 M3(t,e,r,s,n){let i="";if(t&&!e.ignoreAttributes)for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;let a=o.substr(e.attributeNamePrefix.length),c=r?a:O3(a,!0,e,s,n),l;r?l=t[o]:(l=e.attributeValueProcessor(o,t[o]),l=eS(l,e)),l===!0&&e.suppressBooleanAttributes?i+=` ${c}`:i+=` ${c}="${ea(l)}"`}return i}function ewe(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 eS(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 sS(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 twe={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,sanitizeName:!1};function Ur(t){if(this.options=Object.assign({},twe,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 ps(r)):r instanceof ps&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFLine truncated
`,"utf-8")],n=bCe(s);n&&t.headers.set("Content-Length",n),t.body=await EJ(s)}var ip="multipartPolicy",xCe=70,NCe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function SCe(t){if(t.length>xCe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!NCe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function yE(){return{name:ip,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?SCe(r):r=ICe(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await QCe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function CE(){return zg()}var yJ=qg({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),GHe=yJ.logger;function Kn(t){return yJ.createClientLogger(t)}var Xn=Kn("core-rest-pipeline");function lN(t={}){return jg({logger:Xn.info,...t})}var uN=Kg;function AN(t={}){return Xg(t)}var IE=B(require("node:os"),1),BE=B(require("node:process"),1);function CJ(){return"User-Agent"}async function IJ(t){if(BE.default&&BE.default.versions){let e=`${IE.default.type()} ${IE.default.release()}; ${IE.default.arch()}`,r=BE.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 wE="1.22.2";function LCe(t){let e=[];for(let[r,s]of t){let n=s?`${r}/${s}`:r;e.push(n)}return e.join(" ")}function BJ(){return CJ()}async function bE(t){let e=new Map;e.set("core-rest-pipeline",wE),await IJ(e);let r=LCe(e);return t?`${t} ${r}`:r}var wJ=BJ(),bJ="userAgentPolicy";function dN(t={}){let e=bE(t.userAgentPrefix);return{name:bJ,async sendRequest(r,s){return r.headers.has(wJ)||r.headers.set(wJ,await e),s(r)}}}var us=class extends Error{constructor(e){super(e),this.name="AbortError"}};function pN(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,o)=>{function a(){o(new us(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 qCe="The delay was aborted.";function op(t,e){let r,{abortSignal:s,abortErrorMsg:n}=e??{};return pN(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:s,abortErrorMsg:n??qCe})}function Ko(t){if(ec(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 QJ(t){return ec(t)}function lu(){return Za()}var xe=sc;var xJ=Symbol("rawContent");function hN(t){return typeof t[xJ]=="function"}function NJ(t){return hN(t)?t[xJ]():t}var QE=ip;function fN(){let t=yE();return{name:QE,sendRequest:async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)hN(s.body)&&(s.body=NJ(s.body));return t.sendRequest(e,r)}}}var gN=Zg;function EN(){return eE()}function yN(t={}){return sE(t)}function CN(){return nE()}function Xo(t){return nN(t)}function IN(t,e){return mE(t,e)}var SJ="setClientRequestIdPolicy";function BN(t="x-ms-client-request-id"){return{name:SJ,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function wN(t){return hE(t)}function bN(t){return fE(t)}var uu={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function RJ(t={}){let e=new QN(t.parentContext);return t.span&&(e=e.setValue(uu.span,t.span)),t.namespace&&(e=e.setValue(uu.namespace,t.namespace)),e}var QN=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 vJ=B(TJ(),1),NE=vJ.state;function GCe(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function HCe(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:GCe(),tracingContext:RJ({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function ap(){return NE.instrumenterImplementation||(NE.instrumenterImplementation=HCe()),NE.instrumenterImplementation}function cp(t){let{namespace:e,packageName:r,packageVersion:s}=t;function n(l,u,A){let d=ap().startSpan(l,{...A,packageName:r,packageVersion:s,tracingContext:u?.tracingOptions?.tracingContext}),p=d.tracingContext,m=d.span;p.getValue(uu.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--),!ABe(c)){let A;return c.trim().length===0?A="Invalid space after '<'.":A="Tag '"+c+"' is an invalid name.",ft("InvalidTag",A,Cr(t,i))}let l=oBe(t,i);if(l===!1)return ft("InvalidAttr","Attributes for '"+c+"' have open quote.",Cr(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=d3(u,e);if(d===!0)s=!0;else return ft(d.err.code,d.err.msg,Cr(t,A+d.err.line))}else if(a)if(l.tagClosed){if(u.trim().length>0)return ft("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",Cr(t,o));if(r.length===0)return ft("InvalidTag","Closing tag '"+c+"' has not been opened.",Cr(t,o));{let A=r.pop();if(c!==A.tagName){let d=Cr(t,A.tagStartPos);return ft("InvalidTag","Expected closing tag '"+A.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",Cr(t,o))}r.length==0&&(n=!0)}}else return ft("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",Cr(t,i));else{let A=d3(u,e);if(A!==!0)return ft(A.err.code,A.err.msg,Cr(t,i-u.length+A.err.line));if(n===!0)return ft("InvalidXml","Multiple possible root nodes found.",Cr(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=A3(t,i);continue}else if(t[i+1]==="?"){if(i=u3(t,++i),i.err)return i}else break;else if(t[i]==="&"){let A=lBe(t,i);if(A==-1)return ft("InvalidChar","char '&' is not expected.",Cr(t,i));i=A}else if(n===!0&&!l3(t[i]))return ft("InvalidXml","Extra text at the end",Cr(t,i));t[i]==="<"&&i--}}else{if(l3(t[i]))continue;return ft("InvalidChar","char '"+t[i]+"' is not expected.",Cr(t,i))}if(s){if(r.length==1)return ft("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Cr(t,r[0].tagStartPos));if(r.length>0)return ft("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return ft("InvalidXml","Start tag expected.",1);return!0}function l3(t){return t===" "||t===" "||t===`
`||t==="\r"}function u3(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 ft("InvalidXml","XML declaration allowed only at the start of the document.",Cr(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function A3(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 nBe='"',iBe="'";function oBe(t,e){let r="",s="",n=!1;for(;e<t.length;e++){if(t[e]===nBe||t[e]===iBe)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 aBe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function d3(t,e){let r=LE(t,aBe),s={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return ft("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",Ep(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return ft("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",Ep(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return ft("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",Ep(r[n]));let i=r[n][2];if(!uBe(i))return ft("InvalidAttr","Attribute '"+i+"' is an invalid name.",Ep(r[n]));if(!Object.prototype.hasOwnProperty.call(s,i))s[i]=1;else return ft("InvalidAttr","Attribute '"+i+"' is repeated.",Ep(r[n]))}return!0}function cBe(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 lBe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,cBe(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 ft(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function uBe(t){return pu(t)}function ABe(t){return pu(t)}function Cr(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function Ep(t){return t.startIndex+t[1].length}var p3={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"},m3={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"},h3={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 Or("!xml"),r=e,s="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let n=this.options,i=new Ip(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=fu(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=WN(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=jN(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 Or(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=fu(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=fu(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=jN(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}=WN(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={},I;I=SBe(d),A!==e.tagname&&this.matcher.push(A,{},I),A!==p&&m&&(E=this.buildAttributesMap(p,this.matcher,A),E&&(C=NBe(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 U=new Or(A);E&&(U[":@"]=E),U.add(n.textNodeName,k),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,U,this.readonlyMatcher,x)}else{if(g){({tagName:A,tagExp:p}=WN(n.transformTagName,A,p,n));let k=new Or(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 Or(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 Or(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 DBe(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 _Be(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 LBe(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 MBe(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function OBe(t,e,r=">"){let s=0,n=[],i=t.length,o=Line truncated
`;function KBe(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(rS(r)==="?xml"){let n=r[":@"];if(n){let i=e.attributeNamePrefix+"version";if(n[i])return n[i]}}return"1.0"}function _3(t,e,r,s,n){return!r.sanitizeName||zE(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}function tS(t,e){let r="";e.format&&(r=jBe);let s=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let o=0;o<e.stopNodes.length;o++){let a=e.stopNodes[o];typeof a=="string"?s.push(new ps(a)):a instanceof ps&&s.push(a)}let n=KBe(t,e),i=new ti;return L3(t,e,r,i,s,n)}function L3(t,e,r,s,n,i){let o="",a=!1;if(e.maxNestedTags&&s.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let c=t.toString();return c=eS(c,e),c}return""}for(let c=0;c<t.length;c++){let l=t[c],u=rS(l);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:_3(u,!1,e,s,i),p=XBe(l[":@"],e);s.push(d,p);let m=ewe(s,n);if(d===e.textNodeName){let C=l[u];m||(C=e.tagValueProcessor(d,C),C=eS(C,e)),a&&(o+=r),o+=C,a=!1,s.pop();continue}else if(d===e.cdataPropName){a&&(o+=r);let C=l[u][0][e.textNodeName],I=HE(C);o+=`<![CDATA[${I}]]>`,a=!1,s.pop();continue}else if(d===e.commentPropName){let C=l[u][0][e.textNodeName],I=GE(C);o+=r+`<!--${I}-->`,a=!0,s.pop();continue}else if(d[0]==="?"){let C=D3(l[":@"],e,m,s,i);o+=(d==="?xml"?"":r)+`<${d}${C}?>`,a=!0,s.pop();continue}let f=r;f!==""&&(f+=e.indentBy);let y=D3(l[":@"],e,m,s,i),g=r+`<${d}${y}`,E;m?E=M3(l[u],e):E=L3(l[u],e,f,s,n,i),e.unpairedTags.indexOf(d)!==-1?e.suppressUnpairedNode?o+=g+">":o+=g+"/>":(!E||E.length===0)&&e.suppressEmptyNode?o+=g+"/>":E&&E.endsWith(">")?o+=g+`>${E}${r}</${d}>`:(o+=g+">",E&&r!==""&&(E.includes("/>")||E.includes("</"))?o+=r+e.indentBy+E+r:o+=E,o+=`</${d}>`),a=!0,s.pop()}return o}function XBe(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]=ta(t[n]),s=!0}return s?r:null}function M3(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=rS(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=ZBe(n[":@"],e),a=M3(n[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function ZBe(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)}="${ta(n)}"`}return r}function rS(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 D3(t,e,r,s,n){let i="";if(t&&!e.ignoreAttributes)for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;let a=o.substr(e.attributeNamePrefix.length),c=r?a:_3(a,!0,e,s,n),l;r?l=t[o]:(l=e.attributeValueProcessor(o,t[o]),l=eS(l,e)),l===!0&&e.suppressBooleanAttributes?i+=` ${c}`:i+=` ${c}="${ta(l)}"`}return i}function ewe(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 eS(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 sS(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 twe={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,sanitizeName:!1};function Ur(t){if(this.options=Object.assign({},twe,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 ps(r)):r instanceof ps&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFLine truncated
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function rwe(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let n=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(n)return n}let s=r[e.attributeNamePrefix+"version"];if(s)return s}return"1.0"}function nS(t,e,r,s,n){return!r.sanitizeName||zE(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}Ur.prototype.build=function(t){if(this.options.preserveOrder)return tS(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new ri,r=rwe(t,this.options);return this.j2x(t,0,e,r).val}};Ur.prototype.j2x=function(t,e,r,s){let n="",i="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let o=this.options.jPath?r.toString():r,a=this.checkStopNode(r);for(let c in t){if(!Object.prototype.hasOwnProperty.call(t,c))continue;let u=c===this.options.textNodeName||c===this.options.cdataPropName||c===this.options.commentPropName||this.options.attributesGroupName&&c===this.options.attributesGroupName||this.isAttribute(c)||c[0]==="?"?c:nS(c,!1,this.options,r,s);if(typeof t[c]>"u")this.isAttribute(c)&&(i+="");else if(t[c]===null)this.isAttribute(c)||u===this.options.cdataPropName||u===this.options.commentPropName?i+="":u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(t[c]instanceof Date)i+=this.buildTextValNode(t[c],u,"",e,r);else if(typeof t[c]!="object"){let A=this.isAttribute(c);if(A&&!this.ignoreAttributesFn(A,o)){let d=nS(A,!0,this.options,r,s);n+=this.buildAttrPairStr(d,""+t[c],a)}else if(!A)if(c===this.options.textNodeName){let d=this.options.tagValueProcessor(c,""+t[c]);i+=this.replaceEntitiesValue(d)}else{r.push(u);let d=this.checkStopNode(r);if(r.pop(),d){let p=""+t[c];p===""?i+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:i+=this.indentate(e)+"<"+u+">"+p+"</"+u+this.tagEndChar}else i+=this.buildTextValNode(t[c],u,"",e,r)}}else if(Array.isArray(t[c])){let A=t[c].length,d="",p="";for(let m=0;m<A;m++){let f=t[c][m];if(!(typeof f>"u"))if(f===null)u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(typeof f=="object")if(this.options.oneListGroup){r.push(u);let y=this.j2x(f,e+1,r,s);r.pop(),d+=y.val,this.options.attributesGroupName&&f.hasOwnProperty(this.options.attributesGroupName)&&(p+=y.attrStr)}else d+=this.processTextOrObjNode(f,u,e,r,s);else if(this.options.oneListGroup){let y=this.options.tagValueProcessor(u,f);y=this.replaceEntitiesValue(y),d+=y}else{r.push(u);let y=this.checkStopNode(r);if(r.pop(),y){let g=""+f;g===""?d+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:d+=this.indentate(e)+"<"+u+">"+g+"</"+u+this.tagEndChar}else d+=this.buildTextValNode(f,u,"",e,r)}}this.options.oneListGroup&&(d=this.buildObjectNode(d,u,p,e)),i+=d}else if(this.options.attributesGroupName&&c===this.options.attributesGroupName){let A=Object.keys(t[c]),d=A.length;for(let p=0;p<d;p++){let m=nS(A[p],!0,this.options,r,s);n+=this.buildAttrPairStr(m,""+t[c][A[p]],a)}}else i+=this.processTextOrObjNode(t[c],u,e,r,s)}return{attrStr:n,val:i}};Ur.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+'="'+ea(e)+'"'};function swe(t,e,r,s,n){let i=this.extractAttributes(t);if(s.push(e,i),this.checkStopNode(s)){let c=this.buildRawContent(t),l=this.buildAttributesForStopNode(t);return s.pop(),this.buildObjectNode(c,e,l,r)}let a=this.j2x(t,r+1,s,n);return s.pop(),e[0]==="?"?this.buildTextValNode("",e,a.attrStr,r,s):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,a.attrStr,r,s):this.buildObjectNode(a.val,e,a.attrStr,r)}Ur.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]=ea(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]=ea(t[s]),r=!0)}return r?e:null};Ur.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.isA Line truncated
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function rwe(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let n=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(n)return n}let s=r[e.attributeNamePrefix+"version"];if(s)return s}return"1.0"}function nS(t,e,r,s,n){return!r.sanitizeName||zE(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}Ur.prototype.build=function(t){if(this.options.preserveOrder)return tS(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new ti,r=rwe(t,this.options);return this.j2x(t,0,e,r).val}};Ur.prototype.j2x=function(t,e,r,s){let n="",i="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let o=this.options.jPath?r.toString():r,a=this.checkStopNode(r);for(let c in t){if(!Object.prototype.hasOwnProperty.call(t,c))continue;let u=c===this.options.textNodeName||c===this.options.cdataPropName||c===this.options.commentPropName||this.options.attributesGroupName&&c===this.options.attributesGroupName||this.isAttribute(c)||c[0]==="?"?c:nS(c,!1,this.options,r,s);if(typeof t[c]>"u")this.isAttribute(c)&&(i+="");else if(t[c]===null)this.isAttribute(c)||u===this.options.cdataPropName||u===this.options.commentPropName?i+="":u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(t[c]instanceof Date)i+=this.buildTextValNode(t[c],u,"",e,r);else if(typeof t[c]!="object"){let A=this.isAttribute(c);if(A&&!this.ignoreAttributesFn(A,o)){let d=nS(A,!0,this.options,r,s);n+=this.buildAttrPairStr(d,""+t[c],a)}else if(!A)if(c===this.options.textNodeName){let d=this.options.tagValueProcessor(c,""+t[c]);i+=this.replaceEntitiesValue(d)}else{r.push(u);let d=this.checkStopNode(r);if(r.pop(),d){let p=""+t[c];p===""?i+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:i+=this.indentate(e)+"<"+u+">"+p+"</"+u+this.tagEndChar}else i+=this.buildTextValNode(t[c],u,"",e,r)}}else if(Array.isArray(t[c])){let A=t[c].length,d="",p="";for(let m=0;m<A;m++){let f=t[c][m];if(!(typeof f>"u"))if(f===null)u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(typeof f=="object")if(this.options.oneListGroup){r.push(u);let y=this.j2x(f,e+1,r,s);r.pop(),d+=y.val,this.options.attributesGroupName&&f.hasOwnProperty(this.options.attributesGroupName)&&(p+=y.attrStr)}else d+=this.processTextOrObjNode(f,u,e,r,s);else if(this.options.oneListGroup){let y=this.options.tagValueProcessor(u,f);y=this.replaceEntitiesValue(y),d+=y}else{r.push(u);let y=this.checkStopNode(r);if(r.pop(),y){let g=""+f;g===""?d+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:d+=this.indentate(e)+"<"+u+">"+g+"</"+u+this.tagEndChar}else d+=this.buildTextValNode(f,u,"",e,r)}}this.options.oneListGroup&&(d=this.buildObjectNode(d,u,p,e)),i+=d}else if(this.options.attributesGroupName&&c===this.options.attributesGroupName){let A=Object.keys(t[c]),d=A.length;for(let p=0;p<d;p++){let m=nS(A[p],!0,this.options,r,s);n+=this.buildAttrPairStr(m,""+t[c][A[p]],a)}}else i+=this.processTextOrObjNode(t[c],u,e,r,s)}return{attrStr:n,val:i}};Ur.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+'="'+ta(e)+'"'};function swe(t,e,r,s,n){let i=this.extractAttributes(t);if(s.push(e,i),this.checkStopNode(s)){let c=this.buildRawContent(t),l=this.buildAttributesForStopNode(t);return s.pop(),this.buildObjectNode(c,e,l,r)}let a=this.j2x(t,r+1,s,n);return s.pop(),e[0]==="?"?this.buildTextValNode("",e,a.attrStr,r,s):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,a.attrStr,r,s):this.buildObjectNode(a.val,e,a.attrStr,r)}Ur.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]=ta(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]=ta(t[s]),r=!0)}return r?e:null};Ur.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.isA 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)=>ty(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=XE(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let n=ZE(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 cc{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new bp(e,r,this)}computeHMACSHA256(e){return(0,J3.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Tt=Xn("storage-common");var Fs;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Fs||(Fs={}));var ra={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Fs.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},dwe=new us("The operation was aborted."),Qp=class extends si{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=KE(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=ta(n.url,ro.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(Tt.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(Tt.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 Tt.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 Tt.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 Tt.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return Tt.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')?(Tt.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 Fs.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Fs.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return Tt.info(`RetryPolicy: Delay for ${n}ms`),ey(n,s,dwe)}};var xp=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new Qp(e,r,this.retryOptions)}};var pwe="storageBrowserPolicy";function W3(){return{name:pwe,async sendRequest(t,e){return Ne||((t.method==="GET"||t.method==="HEAD")&&(t.url=ta(t.url,ro.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(te.COOKIE),t.headers.delete(te.CONTENT_LENGTH)),e(t)}}}var mwe="StorageCorrectContentLengthPolicy";function j3(){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:mwe,async sendRequest(e,r){return t(e),r(e)}}}var hwe="storageRetryPolicy",fu={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Fs.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},fwe=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],gwe=new us("The operation was aborted.");function K3(t={}){let e=t.retryPolicyType??fu.retryPolicyType,r=t.maxTries??fu.maxTries,s=t.retryDelayInMs??fu.retryDelayInMs,n=t.maxRetryDelayInMs??fu.maxRetryDelayInMs,i=t.secondaryHost??fu.secondaryHost,o=t.tryTimeoutInMs??fu.tryTimeoutInMs;function a({isPrimaryRetry:l,attempt:u,response:A,error:d}){if(u>=r)return Tt.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let p of fwe)if(d.name.toUpperCase().includes(p)||d.message.toUpperCase().includes(p)||d.code&&d.code.toString().toUpperCase()===p)return Tt.i Line truncated
${a}:${decodeURIComponent(i[a])}`}return s}};var tt=class extends uc{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new xp(e,r,this)}computeHMACSHA256(e){return(0,$3.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var vt=Kn("storage-common");var Us;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Us||(Us={}));var sa={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Us.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},dwe=new us("The operation was aborted."),Np=class extends ri{retryOptions;constructor(e,r,s=sa){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:sa.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):sa.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:sa.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:sa.maxRetryDelayInMs):sa.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:sa.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:sa.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=KE(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=ra(n.url,ro.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(vt.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(vt.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 vt.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 vt.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 vt.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return vt.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')?(vt.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 Us.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Us.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return vt.info(`RetryPolicy: Delay for ${n}ms`),ey(n,s,dwe)}};var Sp=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new Np(e,r,this.retryOptions)}};var pwe="storageBrowserPolicy";function V3(){return{name:pwe,async sendRequest(t,e){return xe||((t.method==="GET"||t.method==="HEAD")&&(t.url=ra(t.url,ro.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(te.COOKIE),t.headers.delete(te.CONTENT_LENGTH)),e(t)}}}var mwe="StorageCorrectContentLengthPolicy";function Y3(){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:mwe,async sendRequest(e,r){return t(e),r(e)}}}var hwe="storageRetryPolicy",Eu={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Us.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},fwe=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],gwe=new us("The operation was aborted.");function J3(t={}){let e=t.retryPolicyType??Eu.retryPolicyType,r=t.maxTries??Eu.maxTries,s=t.retryDelayInMs??Eu.retryDelayInMs,n=t.maxRetryDelayInMs??Eu.maxRetryDelayInMs,i=t.secondaryHost??Eu.secondaryHost,o=t.tryTimeoutInMs??Eu.tryTimeoutInMs;function a({isPrimaryRetry:l,attempt:u,response:A,error:d}){if(u>=r)return vt.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let p of fwe)if(d.name.toUpperCase().includes(p)||d.message.toUpperCase().includes(p)||d.code&&d.code.toString().toUpperCase()===p)return vt.i Line truncated
`)+`
`+s(i)+n(i),a=(0,X3.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)=>ty(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()}
`+s(i)+n(i),a=(0,W3.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)=>ty(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=XE(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=ZE(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:Ewe,async sendRequest(i,o){return e(i),o(i)}}}var ywe="storageRequestFailureDetailsParserPolicy";function Z3(){return{name:ywe,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 e4=require("node:crypto"),ry=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,e4.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var sy="12.31.0",ny="2026-02-06";var iy="https://storage.azure.com/.default",so={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var yn="",uS="*",Cwe=1*1024*1024;var Iwe=4*Cwe;var t4="AES256",r4="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",s4=["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"],n4=["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"],i4="BlobUsesCustomerSpecifiedEncryption",o4="BlobDoesNotUseCustomerSpecifiedEncryption",a4=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function no(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 Np=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 Np([],e);return r._credential=t,r}function Bwe(t){let e=[wwe,c4,bwe,Qwe,xwe,Nwe,Rwe];if(t.factories.length){let r=t.factories.filter(s=>!e.some(n=>n(s)));if(r.length){let s=r.some(n=>Swe(n));return{wrappedPolicies:qN(r),afterRetry:s}}}}function AS(t){let{httpClient:e,...r}=t.options,s=t._coreHttpClient;s||(s=e?GN(e):cS(),t._coreHttpClient=s);let n=t._corePipeline;if(!n){let i=`azsdk-js-azure-storage-blob/${sy}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;n=lp({...r,loggingOptions:{additionalAllowedHeaderNames:s4,additionalAllowedQueryParameters:n4,logger:VE.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:$E,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:oS,serializerOptions:{xml:{xmlCharKey:"#"}}}}),n.removePolicy({phase:"Retry"}),n.removePolicy({name:gN}),n.addPolicy(j3()),n.addPolicy(K3(r.retryOptions),{phase:"Retry"}),n.addPolicy(Z3()),n.addPolicy(W3());let a=Bwe(t);a&&n.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=dS(t);As(c)?n.addPolicy(lu({credential:c,scopes:r.audience??iy,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 wQe(t,e){if(t=gc(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=Ci.parse(t.permissions.toString()).toString():n=Ii.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Se(t.startsOn,!1):"",t.expiresOn?Se(t.expiresOn,!1):"",fc(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?wn(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 bQe(t,e){if(t=gc(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=Ci.parse(t.permissions.toString()).toString():n=Ii.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Se(t.startsOn,!1):"",t.expiresOn?Se(t.expiresOn,!1):"",fc(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?wn(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 QQe(t,e){if(t=gc(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=Ci.parse(t.permissions.toString()).toString():n=Ii.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Se(t.startsOn,!1):"",t.expiresOn?Se(t.expiresOn,!1):"",fc(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Se(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Se(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?wn(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 xQe(t,e){if(t=gc(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=Ci.parse(t.permissions.toString()).toString():n=Ii.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Se(t.startsOn,!1):"",t.expiresOn?Se(t.expiresOn,!1):"",fc(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Se(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Se(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?wn(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 NQe(t,e){if(t=gc(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=Ci.parse(t.permissions.toString()).toString():n=Ii.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Se(t.startsOn,!1):"",t.expiresOn?Se(t.expiresOn,!1):"",fc(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Se(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Se(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?wn(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 SQe(t,e){if(t=gc(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=Ci.parse(t.permissions.toString()).toString():n=Ii.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Se(t.startsOn,!1):"",t.expiresOn?Se(t.expiresOn,!1):"",fc(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Se(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Se(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?wn(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 fc(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}function gc(t){let e=t.version?t.version:ny;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 Fp=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=au()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==yn||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==yn||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=>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!==yn||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==yn||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=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!==yn||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==yn||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=>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!==yn||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==yn||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"}};Su.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Ic=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"}};Ic.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var Wp=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var Oxe=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())})},tP=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);bt(`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 A8(t,e,r){return Oxe(this,void 0,void 0,function*(){var s;let n=new Ao(t),i=n.getBlockBlobClient(),o=new tP((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(),N(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new lC(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw hn(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}var p8=B(require("buffer"),1),Bi=B(require("fs"),1),m8=B(require("stream"),1),h8=B(require("util"),1);var uC=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 AC(t){return t?t>=200&&t<300:!1}function Fxe(t){return t?t>=500:!0}function Uxe(t){return t?[et.BadGateway,et.ServiceUnavailable,et.GatewayTimeout].includes(t):!1}function qxe(t){return uC(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function d8(t,e,r){return uC(this,arguments,void 0,function*(s,n,i,o=Lg,a=Mg,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),!Fxe(d)))return A;if(d&&(p=Uxe(d),l=`Cache service responded with ${d}`),N(`${s} - Attempt ${u} of ${o} failed with error: ${l}`),!p){N(`${s} - Error is not retryable`);break}yield qxe(a),u++}throw Error(`${s} failed: ${l}`)})}function jp(t,e){return uC(this,arguments,void 0,function*(r,s,n=Lg,i=Mg){return yield d8(r,s,o=>o.statusCode,n,i,o=>{if(o instanceof Hn)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function Ru(t,e){return uC(this,arguments,void 0,function*(r,s,n=Lg,i=Mg){return yield d8(r,s,o=>o.message.statusCode,n,i)})}var zs=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 Gxe(t,e){return zs(this,void 0,void 0,function*(){yield h8.promisify(m8.pipeline)(t.message,e)})}var dC=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,N(`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);bt(`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||[])N(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function iP(t,e,r){return Gr(this,void 0,void 0,function*(){let s=new Q8.URL(t),n=y8(r);s.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield g8(t,e,n):n.concurrentBlobDownloads?yield f8(t,e,n):yield pC(t,e):yield pC(t,e)})}function N8(t,e,r){return Gr(this,void 0,void 0,function*(){let s=nP(),n=Zl(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:n,cacheSize:r?.cacheSize};return yield jp("reserveCache",()=>Gr(this,void 0,void 0,function*(){return s.postJson(Xp("caches"),i)}))})}function b8(t,e){return`bytes ${t}-${e}/*`}function jxe(t,e,r,s,n){return Gr(this,void 0,void 0,function*(){N(`Uploading chunk of size ${n-s+1} bytes at offset ${s} with content range: ${b8(s,n)}`);let i={"Content-Type":"application/octet-stream","Content-Range":b8(s,n)},o=yield Ru(`uploadChunk (start: ${s}, end: ${n})`,()=>Gr(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!AC(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function Kxe(t,e,r,s){return Gr(this,void 0,void 0,function*(){let n=Wn(r),i=Xp(`caches/${e.toString()}`),o=Tu.openSync(r,"r"),a=rP(s),c=D0("uploadConcurrency",a.uploadConcurrency),l=D0("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];N("Awaiting all uploads");let A=0;try{yield Promise.all(u.map(()=>Gr(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 jxe(t,i,()=>Tu.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{Tu.closeSync(o)}})}function Xxe(t,e,r){return Gr(this,void 0,void 0,function*(){let s={size:r};return yield jp("commitCache",()=>Gr(this,void 0,void 0,function*(){return t.postJson(Xp(`caches/${e.toString()}`),s)}))})}function oP(t,e,r,s){return Gr(this,void 0,void 0,function*(){if(rP(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield A8(r,e,s)}else{let i=nP();N("Upload cache"),yield Kxe(i,t,e,s),N("Commiting cache");let o=Wn(e);bt(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield Xxe(i,t,o);if(!AC(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);bt("Cache saved successfully")}})}var I5=B(m5(),1),Et=B(gt(),1),fs=B(gt(),1),xc=B(gt(),1),Nc=B(gt(),1),Sc=B(gt(),1);var ek=B(gt(),1),tk=B(gt(),1),E5=B(gt(),1),y5=B(gt(),1),C5=B(gt(),1);var KP=B(gt(),1),XP=B(gt(),1),h5=B(gt(),1),f5=B(gt(),1),g5=B(gt(),1),ZP=class extends g5.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,f5.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,h5.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?XP.UnknownFieldHandler.onRead:l)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,KP.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,KP.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?XP.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},eI=new ZP;var rk=class extends C5.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:()=>eI}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,y5.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,E5.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(eI.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?tk.UnknownFieldHandler.onRead:l)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1,ek.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)eI.internalBinaryWrite(e.scope[i],r.tag(2,ek.WireType.LengthDelimited).fork(),s).join();let n=s.writeUnknownFields;return n!==!1&&(n==!0?tk.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},Ni=new Line truncated
`));let s=yield gk(r,"create");yield Ek(s,t)})}var Yu=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())})},Nn=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)}},nI=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function Q5(t){if(!t||t.length===0)throw new Nn("Path Validation Error: At least one directory or file path is required")}function Ik(t){if(t.length>512)throw new Nn(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Nn(`Key Validation Error: ${t} cannot contain commas.`)}function Bk(){return Kp()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function x5(t,e,r,s){return Yu(this,arguments,void 0,function*(n,i,o,a,c=!1){let l=Kp();return N(`Cache service version: ${l}`),Q5(n),l==="v2"?yield pSe(n,i,o,a,c):yield dSe(n,i,o,a,c)})}function dSe(t,e,r,s){return Yu(this,arguments,void 0,function*(n,i,o,a,c=!1){o=o||[];let l=[i,...o];if(N("Resolved Keys:"),N(JSON.stringify(l)),l.length>10)throw new Nn("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of l)Ik(d);let u=yield Kd(),A="";try{let d=yield x8(l,n,{compressionMethod:u,enableCrossOsArchive:c});if(!d?.archiveLocation)return;if(a?.lookupOnly)return bt("Lookup only - skipping download"),d.cacheKey;A=mm.join(yield Wd(),Jo(u)),N(`Archive Path: ${A}`),yield iP(d.archiveLocation,A,a),$a()&&(yield pm(A,u));let p=Wn(A);return bt(`Cache Size: ~${Math.round(p/(1024*1024))} MB (${p} B)`),yield yk(A,u),bt("Cache restored successfully"),d.cacheKey}catch(d){let p=d;if(p.name===Nn.name)throw d;p instanceof Hn&&typeof p.statusCode=="number"&&p.statusCode>=500?Pd(`Failed to restore: ${d.message}`):hn(`Failed to restore: ${d.message}`)}finally{try{yield jd(A)}catch(d){N(`Failed to delete archive: ${d}`)}}})}function pSe(t,e,r,s){return Yu(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(N("Resolved Keys:"),N(JSON.stringify(l)),l.length>10)throw new Nn("Key Validation Error: Keys are limited to a maximum of 10.");for(let A of l)Ik(A);let u="";try{let A=fk(),d=yield Kd(),p={key:i,restoreKeys:o,version:Zl(n,d,c)},m=yield A.GetCacheEntryDownloadURL(p);if(!m.ok){N(`Cache not found for version ${p.version} of keys: ${l.join(", ")}`);return}if(p.key!==m.matchedKey?bt(`Cache hit for restore-key: ${m.matchedKey}`):bt(`Cache hit for: ${m.matchedKey}`),a?.lookupOnly)return bt("Lookup only - skipping download"),m.matchedKey;u=mm.join(yield Wd(),Jo(d)),N(`Archive path: ${u}`),N(`Starting download of archive to: ${u}`),yield iP(m.signedDownloadUrl,u,a);let y=Wn(u);return bt(`Cache Size: ~${Math.round(y/(1024*1024))} MB (${y} B)`),$a()&&(yield pm(u,d)),yield yk(u,d),bt("Cache restored successfully"),m.matchedKey}catch(A){let d=A;if(d.name===Nn.name)throw A;d instanceof Hn&&typeof d.statusCode=="number"&&d.statusCode>=500?Pd(`Failed to restore: ${A.message}`):hn(`Failed to restore: ${A.message}`)}finally{try{u&&(yield jd(u))}catch(A){N(`Failed to delete archive: ${A}`)}}})}function wk(t,e,r){return Yu(this,arguments,void 0,function*(s,n,i,o=!1){let a=Kp();return N(`Cache service version: ${a}`),Q5(s),Ik(n),a==="v2"?yield hSe(s,n,i,o):yield mSe(s,n,i,o)})}function mSe(t,e,r){return Yu(this,arguments,void 0,function*(s,n,i,o=!1){var a,c,l,u,A;let d=yield Kd(),p=-1,m=yield k0(s);if(N("Cache Paths:"),N(`${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 Wd(),y=mm.join(f,Jo(d));N(`Archive Path: ${y}`);try{yield Ck(f,m,d),$a()&&(yield pm(y,d));let g=10*1024*1024*1024,E=Wn(y);if(N(`File Size: ${E}`),E>g&&!sP())throw new Error(`Cache size of ~${Math.round(E/(1024*1024))} MB (${E} B) is over the 10GB limit, not saving cache.`);N("Reserving Cache");let C=yield N8(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}`);N(`Saving Cache (ID: ${p})`),yield oP(p,y,"",i)}catch(g){let E=g;if(E.name===Nn.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:I,quote:Q,record_delimiter:P}=this.options,{bomSkipped:F,previousBuf:pe,rawBuffer:be,escapeIsQuote:Re}=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 ye in oA)if(oA[ye].compare(z,0,oA[ye].length)===0){let It=oA[ye].length;this.state.bufBytesStart+=It,z=z.slice(It);let Ke=ND({...this.original_options,encoding:ye});for(let lt in Ke)this.options[lt]=Ke[lt];({comment:C,escape:I,quote:Q}=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 ye=z[U];if(p===!0&&be.append(ye),(ye===Mve||ye===Ove)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(I!==null&&this.state.quoting===!0&&this.__isEscape(z,U,ye)&&U+I.length<ne)if(Re){if(this.__isQuote(z,U+I.length)){this.state.escaping=!0,U+=I.length-1;continue}}else{this.state.escaping=!0,U+=I.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(z,U))if(this.state.quoting===!0){let lt=z[U+Q.length],ki=f&&this.__isCharTrimable(z,U+Q.length),Jr=C!==null&&this.__compareBytes(C,z,U+Q.length,lt),Tn=this.__isDelimiter(z,U+Q.length,lt),fa=P.length===0?this.__autoDiscoverRecordDelimiter(z,U+Q.length):this.__isRecordDelimiter(lt,z,U+Q.length);if(I!==null&&this.__isEscape(z,U,ye)&&this.__isQuote(z,U+I.length))U+=I.length-1;else if(!lt||Tn||fa||Jr||ki){this.state.quoting=!1,this.state.wasQuoting=!0,U+=Q.length-1;continue}else if(m===!1){let qc=this.__error(new we("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(qc!==void 0)return qc}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(Q),U+=Q.length-1}else if(this.state.field.length!==0){if(m===!1){let lt=this.__infoField(),ki=Object.keys(oA).map(Tn=>oA[Tn].equals(this.state.field.toString())?Tn:!1).filter(Boolean)[0],Jr=this.__error(new we("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))}`,ki?`(${ki} bom)`:void 0],this.options,lt,{field:this.state.field}));if(Jr!==void 0)return Jr}}else{this.state.quoting=!0,U+=Q.length-1;continue}if(this.state.quoting===!1){let lt=this.__isRecordDelimiter(ye,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 Tn=this.__onField();if(Tn!==void 0)return Tn;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,ye)!==0){this.state.commenting=!0;continue}let ki=this.__isDelimiter(z,U,ye);if(ki!==0){this.info.bytes=this.state.bufBytesStart+U;let Jr=this.__onField();if(Jr!==void 0)return Jr;U+=ki-1;continue}}}if(this.state.commenting===!1&&d!==0&&this.state.record_length+this.state.field.length>d)return this.__error(new we("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(ye);else{if(f===!0&&!this.__isCharTrimable(z,U))return this.__error(new we("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
${A}:${decodeURIComponent(l[A])}`}return a}return{name:Ewe,async sendRequest(i,o){return e(i),o(i)}}}var ywe="storageRequestFailureDetailsParserPolicy";function j3(){return{name:ywe,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 K3=require("node:crypto"),ry=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,K3.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var sy="12.31.0",ny="2026-02-06";var iy="https://storage.azure.com/.default",so={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var En="",uS="*",Cwe=1*1024*1024;var Iwe=4*Cwe;var X3="AES256",Z3="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",e4=["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"],t4=["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"],r4="BlobUsesCustomerSpecifiedEncryption",s4="BlobDoesNotUseCustomerSpecifiedEncryption",n4=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function no(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 Rp=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function gt(t,e={}){t||(t=new Ve);let r=new Rp([],e);return r._credential=t,r}function Bwe(t){let e=[wwe,i4,bwe,Qwe,xwe,Nwe,Rwe];if(t.factories.length){let r=t.factories.filter(s=>!e.some(n=>n(s)));if(r.length){let s=r.some(n=>Swe(n));return{wrappedPolicies:qN(r),afterRetry:s}}}}function AS(t){let{httpClient:e,...r}=t.options,s=t._coreHttpClient;s||(s=e?GN(e):cS(),t._coreHttpClient=s);let n=t._corePipeline;if(!n){let i=`azsdk-js-azure-storage-blob/${sy}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;n=Ap({...r,loggingOptions:{additionalAllowedHeaderNames:e4,additionalAllowedQueryParameters:t4,logger:VE.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:$E,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:oS,serializerOptions:{xml:{xmlCharKey:"#"}}}}),n.removePolicy({phase:"Retry"}),n.removePolicy({name:gN}),n.addPolicy(Y3()),n.addPolicy(J3(r.retryOptions),{phase:"Retry"}),n.addPolicy(j3()),n.addPolicy(V3());let a=Bwe(t);a&&n.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=dS(t);As(c)?n.addPolicy(Au({credential:c,scopes:r.audience??iy,challengeCallba Line truncated
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new wn(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 wQe(t,e){if(t=yc(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):"",Ec(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Bn(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 wn(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 bQe(t,e){if(t=yc(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):"",Ec(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Bn(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 wn(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 QQe(t,e){if(t=yc(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):"",Ec(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?Bn(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 wn(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 xQe(t,e){if(t=yc(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):"",Ec(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?Bn(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 wn(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 NQe(t,e){if(t=yc(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):"",Ec(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?Bn(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 wn(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 SQe(t,e){if(t=yc(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):"",Ec(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?Bn(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 wn(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 Ec(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}function yc(t){let e=t.version?t.version:ny;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 qp=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=lu()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==En||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==En||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!==En||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==En||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!==En||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==En||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!==En||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==En||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"}};Tu.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var wc=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};wc.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var Kp=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var Oxe=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())})},tP=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 c8(t,e,r){return Oxe(this,void 0,void 0,function*(){var s;let n=new Ao(t),i=n.getBlockBlobClient(),o=new tP((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 lC(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw Ze(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}var u8=B(require("buffer"),1),Ii=B(require("fs"),1),A8=B(require("stream"),1),d8=B(require("util"),1);var uC=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 AC(t){return t?t>=200&&t<300:!1}function Fxe(t){return t?t>=500:!0}function Uxe(t){return t?[et.BadGateway,et.ServiceUnavailable,et.GatewayTimeout].includes(t):!1}function qxe(t){return uC(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function l8(t,e,r){return uC(this,arguments,void 0,function*(s,n,i,o=_g,a=Lg,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),!Fxe(d)))return A;if(d&&(p=Uxe(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 qxe(a),u++}throw Error(`${s} failed: ${l}`)})}function Xp(t,e){return uC(this,arguments,void 0,function*(r,s,n=_g,i=Lg){return yield l8(r,s,o=>o.statusCode,n,i,o=>{if(o instanceof Jn)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function vu(t,e){return uC(this,arguments,void 0,function*(r,s,n=_g,i=Lg){return yield l8(r,s,o=>o.message.statusCode,n,i)})}var $s=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 Gxe(t,e){return $s(this,void 0,void 0,function*(){yield d8.promisify(A8.pipeline)(t.message,e)})}var dC=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);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||[])w(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function iP(t,e,r){return Gr(this,void 0,void 0,function*(){let s=new B8.URL(t),n=f8(r);s.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield m8(t,e,n):n.concurrentBlobDownloads?yield p8(t,e,n):yield pC(t,e):yield pC(t,e)})}function b8(t,e,r){return Gr(this,void 0,void 0,function*(){let s=nP(),n=eu(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:n,cacheSize:r?.cacheSize};return yield Xp("reserveCache",()=>Gr(this,void 0,void 0,function*(){return s.postJson(em("caches"),i)}))})}function I8(t,e){return`bytes ${t}-${e}/*`}function jxe(t,e,r,s,n){return Gr(this,void 0,void 0,function*(){w(`Uploading chunk of size ${n-s+1} bytes at offset ${s} with content range: ${I8(s,n)}`);let i={"Content-Type":"application/octet-stream","Content-Range":I8(s,n)},o=yield vu(`uploadChunk (start: ${s}, end: ${n})`,()=>Gr(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!AC(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function Kxe(t,e,r,s){return Gr(this,void 0,void 0,function*(){let n=Yn(r),i=em(`caches/${e.toString()}`),o=Pu.openSync(r,"r"),a=rP(s),c=v0("uploadConcurrency",a.uploadConcurrency),l=v0("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];w("Awaiting all uploads");let A=0;try{yield Promise.all(u.map(()=>Gr(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 jxe(t,i,()=>Pu.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{Pu.closeSync(o)}})}function Xxe(t,e,r){return Gr(this,void 0,void 0,function*(){let s={size:r};return yield Xp("commitCache",()=>Gr(this,void 0,void 0,function*(){return t.postJson(em(`caches/${e.toString()}`),s)}))})}function oP(t,e,r,s){return Gr(this,void 0,void 0,function*(){if(rP(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield c8(r,e,s)}else{let i=nP();w("Upload cache"),yield Kxe(i,t,e,s),w("Commiting cache");let o=Yn(e);N(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield Xxe(i,t,o);if(!AC(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);N("Cache saved successfully")}})}var E5=B(A5(),1),Ct=B(yt(),1),fs=B(yt(),1),Sc=B(yt(),1),Rc=B(yt(),1),Tc=B(yt(),1);var ek=B(yt(),1),tk=B(yt(),1),h5=B(yt(),1),f5=B(yt(),1),g5=B(yt(),1);var KP=B(yt(),1),XP=B(yt(),1),d5=B(yt(),1),p5=B(yt(),1),m5=B(yt(),1),ZP=class extends m5.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,p5.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,d5.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?XP.UnknownFieldHandler.onRead:l)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,KP.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,KP.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?XP.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},eI=new ZP;var rk=class extends g5.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:()=>eI}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,f5.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,h5.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(eI.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?tk.UnknownFieldHandler.onRead:l)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1,ek.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)eI.internalBinaryWrite(e.scope[i],r.tag(2,ek.WireType.LengthDelimited).fork(),s).join();let n=s.writeUnknownFields;return n!==!1&&(n==!0?tk.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},xi=new rk Line truncated
`));let s=yield gk(r,"create");yield Ek(s,t)})}var Wu=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())})},xn=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Ju=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},nI=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function B5(t){if(!t||t.length===0)throw new xn("Path Validation Error: At least one directory or file path is required")}function Ik(t){if(t.length>512)throw new xn(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new xn(`Key Validation Error: ${t} cannot contain commas.`)}function Bk(){return Zp()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function w5(t,e,r,s){return Wu(this,arguments,void 0,function*(n,i,o,a,c=!1){let l=Zp();return w(`Cache service version: ${l}`),B5(n),l==="v2"?yield pSe(n,i,o,a,c):yield dSe(n,i,o,a,c)})}function dSe(t,e,r,s){return Wu(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 xn("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of l)Ik(d);let u=yield Kd(),A="";try{let d=yield w8(l,n,{compressionMethod:u,enableCrossOsArchive:c});if(!d?.archiveLocation)return;if(a?.lookupOnly)return N("Lookup only - skipping download"),d.cacheKey;A=fm.join(yield Wd(),Jo(u)),w(`Archive Path: ${A}`),yield iP(d.archiveLocation,A,a),Va()&&(yield hm(A,u));let p=Yn(A);return N(`Cache Size: ~${Math.round(p/(1024*1024))} MB (${p} B)`),yield yk(A,u),N("Cache restored successfully"),d.cacheKey}catch(d){let p=d;if(p.name===xn.name)throw d;p instanceof Jn&&typeof p.statusCode=="number"&&p.statusCode>=500?Hl(`Failed to restore: ${d.message}`):Ze(`Failed to restore: ${d.message}`)}finally{try{yield jd(A)}catch(d){w(`Failed to delete archive: ${d}`)}}})}function pSe(t,e,r,s){return Wu(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 xn("Key Validation Error: Keys are limited to a maximum of 10.");for(let A of l)Ik(A);let u="";try{let A=fk(),d=yield Kd(),p={key:i,restoreKeys:o,version:eu(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?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=fm.join(yield Wd(),Jo(d)),w(`Archive path: ${u}`),w(`Starting download of archive to: ${u}`),yield iP(m.signedDownloadUrl,u,a);let y=Yn(u);return N(`Cache Size: ~${Math.round(y/(1024*1024))} MB (${y} B)`),Va()&&(yield hm(u,d)),yield yk(u,d),N("Cache restored successfully"),m.matchedKey}catch(A){let d=A;if(d.name===xn.name)throw A;d instanceof Jn&&typeof d.statusCode=="number"&&d.statusCode>=500?Hl(`Failed to restore: ${A.message}`):Ze(`Failed to restore: ${A.message}`)}finally{try{u&&(yield jd(u))}catch(A){w(`Failed to delete archive: ${A}`)}}})}function wk(t,e,r){return Wu(this,arguments,void 0,function*(s,n,i,o=!1){let a=Zp();return w(`Cache service version: ${a}`),B5(s),Ik(n),a==="v2"?yield hSe(s,n,i,o):yield mSe(s,n,i,o)})}function mSe(t,e,r){return Wu(this,arguments,void 0,function*(s,n,i,o=!1){var a,c,l,u,A;let d=yield Kd(),p=-1,m=yield T0(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 Wd(),y=fm.join(f,Jo(d));w(`Archive Path: ${y}`);try{yield Ck(f,m,d),Va()&&(yield hm(y,d));let g=10*1024*1024*1024,E=Yn(y);if(w(`File Size: ${E}`),E>g&&!sP())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 b8(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 Ju(`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 oP(p,y,"",i)}catch(g){let E=g;if(E.name===xn.name)throw g;E.name===Ju.name?N(`FaLine 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:I,quote:x,record_delimiter:k}=this.options,{bomSkipped:U,previousBuf:de,rawBuffer:we,escapeIsQuote:Se}=this.state,$;if(de===void 0)if(s===void 0){o();return}else $=s;else de!==void 0&&s===void 0?$=de:$=Buffer.concat([de,s]);if(U===!1)if(a===!1)this.state.bomSkipped=!0;else if($.length<3){if(n===!1){this.state.previousBuf=$;return}}else{for(let Ee in cA)if(cA[Ee].compare($,0,cA[Ee].length)===0){let wt=cA[Ee].length;this.state.bufBytesStart+=wt,$=$.slice(wt);let je=ND({...this.original_options,encoding:Ee});for(let lt in je)this.options[lt]=je[lt];({comment:C,escape:I,quote:x}=this.options);break}this.state.bomSkipped=!0}let se=$.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($,q)&&(k=this.options.record_delimiter);let Ee=$[q];if(p===!0&&we.append(Ee),(Ee===Mve||Ee===Ove)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(I!==null&&this.state.quoting===!0&&this.__isEscape($,q,Ee)&&q+I.length<se)if(Se){if(this.__isQuote($,q+I.length)){this.state.escaping=!0,q+=I.length-1;continue}}else{this.state.escaping=!0,q+=I.length-1;continue}if(this.state.commenting===!1&&this.__isQuote($,q))if(this.state.quoting===!0){let lt=$[q+x.length],Pi=f&&this.__isCharTrimable($,q+x.length),Jr=C!==null&&this.__compareBytes(C,$,q+x.length,lt),Rn=this.__isDelimiter($,q+x.length,lt),Ea=k.length===0?this.__autoDiscoverRecordDelimiter($,q+x.length):this.__isRecordDelimiter(lt,$,q+x.length);if(I!==null&&this.__isEscape($,q,Ee)&&this.__isQuote($,q+I.length))q+=I.length-1;else if(!lt||Rn||Ea||Jr||Pi){this.state.quoting=!1,this.state.wasQuoting=!0,q+=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),q+=x.length-1}else if(this.state.field.length!==0){if(m===!1){let lt=this.__infoField(),Pi=Object.keys(cA).map(Rn=>cA[Rn].equals(this.state.field.toString())?Rn:!1).filter(Boolean)[0],Jr=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(Jr!==void 0)return Jr}}else{this.state.quoting=!0,q+=x.length-1;continue}if(this.state.quoting===!1){let lt=this.__isRecordDelimiter(Ee,$,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 Rn=this.__onField();if(Rn!==void 0)return Rn;this.info.bytes=this.state.bufBytesStart+q+lt;let Ea=this.__onRecord(i);if(Ea!==void 0)return Ea;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,$,q,Ee)!==0){this.state.commenting=!0;continue}let Pi=this.__isDelimiter($,q,Ee);if(Pi!==0){this.info.bytes=this.state.bufBytesStart+q;let Jr=this.__onField();if(Jr!==void 0)return Jr;q+=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 wt=A===!1||this.state.quoting===!0||this.state.field.length!==0||!this.__isCharTrimable($,q),je=f===!1||this.state.wasQuoting===!1;if(wt===!0&&je===!0)this.state.field.append(Ee);else{if(f===!0&&!this.__isCharTrimable($,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()));wt===!1&&(q+=this.__isCharTrimable($,q)-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(),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 VI=function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?{}:[],s=K9(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 wr=class t{static getInputList(e,r){return this.getList(dn(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let s=[];if(e=="")return s;let n=VI(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=dn(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 X9.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 SD.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 SD.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,s){return Z9.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=Rm.default.resolve(e);return Rm.default.resolve(r).startsWith(s.endsWith(Rm.default.sep)?s:`${s}${Rm.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 or=class t{static get configDir(){return process.env.DOCKER_CONFIG||Tm.default.join(e6.default.homedir(),".docker")}static configFile(){let e=Tm.default.join(t.configDir,"config.json");if(RD.default.existsSync(e))return JSON.parse(RD.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
`,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 VI=function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?{}:[],s=J9(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(pn(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let s=[];if(e=="")return s;let n=VI(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=pn(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 W9.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 SD.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 SD.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,s){return j9.default.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=vm.default.resolve(e);return vm.default.resolve(r).startsWith(s.endsWith(vm.default.sep)?s:`${s}${vm.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 lr=class t{static get configDir(){return process.env.DOCKER_CONFIG||Pm.default.join(K9.default.homedir(),".docker")}static configFile(){let e=Pm.default.join(t.configDir,"config.json");if(RD.default.existsSync(e))return JSON.parse(RD.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await pt("docker",!0).then(e=>(w(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(w(`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? Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var bPe=class extends Error{constructor(t,e,r){super(wPe(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},QPe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],xPe=["query","method","url"],L6=/\/api\/v3\/?$/;function NPe(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(xPe.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)=>QPe.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 L6.test(i)&&(n.url=i.replace(L6,"/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 bPe(n,a,o.data)}return o.data.data})}function UD(t,e){let r=t.defaults(e);return Object.assign((n,i)=>NPe(r,n,i),{defaults:UD.bind(null,r),endpoint:r.endpoint})}var Q7e=UD(Dm,{headers:{"user-agent":`octokit-graphql.js/${BPe} ${pa()}`},method:"POST",url:"/graphql"});function M6(t){return UD(t,{method:"POST",url:"/graphql"})}var qD="(?:[a-zA-Z0-9_-]+)",O6="\\.",F6=new RegExp(`^${qD}${O6}${qD}${O6}${qD}$`),SPe=F6.test.bind(F6);async function RPe(t){let e=SPe(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 TPe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function vPe(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=TPe(t),e(n)}var U6=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(RPe.bind(null,e),{hook:vPe.bind(null,e)})};var GD="7.0.6";var q6=()=>{},PPe=console.warn.bind(console),kPe=console.error.bind(console);function DPe(t={}){return typeof t.debug!="function"&&(t.debug=q6),typeof t.info!="function"&&(t.info=q6),typeof t.warn!="function"&&(t.warn=PPe),typeof t.error!="function"&&(t.error=kPe),t}var G6=`octokit-core.js/${GD} ${pa()}`,nB=class{static VERSION=GD;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 g6.Collection,s={baseUrl:Dm.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} ${G6}`:G6,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=Dm.defaults(s),this.graphql=M6(this.request).defaults(s),this.log=DPe(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=U6(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 HD="17.0.0";var _Pe={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
`)}var bPe=class extends Error{constructor(t,e,r){super(wPe(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},QPe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],xPe=["query","method","url"],k6=/\/api\/v3\/?$/;function NPe(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(xPe.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)=>QPe.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 k6.test(i)&&(n.url=i.replace(k6,"/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 bPe(n,a,o.data)}return o.data.data})}function UD(t,e){let r=t.defaults(e);return Object.assign((n,i)=>NPe(r,n,i),{defaults:UD.bind(null,r),endpoint:r.endpoint})}var o7e=UD(Lm,{headers:{"user-agent":`octokit-graphql.js/${BPe} ${ma()}`},method:"POST",url:"/graphql"});function D6(t){return UD(t,{method:"POST",url:"/graphql"})}var qD="(?:[a-zA-Z0-9_-]+)",_6="\\.",L6=new RegExp(`^${qD}${_6}${qD}${_6}${qD}$`),SPe=L6.test.bind(L6);async function RPe(t){let e=SPe(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 TPe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function vPe(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=TPe(t),e(n)}var M6=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(RPe.bind(null,e),{hook:vPe.bind(null,e)})};var GD="7.0.6";var O6=()=>{},PPe=console.warn.bind(console),kPe=console.error.bind(console);function DPe(t={}){return typeof t.debug!="function"&&(t.debug=O6),typeof t.info!="function"&&(t.info=O6),typeof t.warn!="function"&&(t.warn=PPe),typeof t.error!="function"&&(t.error=kPe),t}var F6=`octokit-core.js/${GD} ${ma()}`,nB=class{static VERSION=GD;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 m6.Collection,s={baseUrl:Lm.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} ${F6}`:F6,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=Lm.defaults(s),this.graphql=D6(this.request).defaults(s),this.log=DPe(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=M6(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 HD="17.0.0";var _Pe={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!"
`,j_e=`
`,oLe=`
Get-WinEvent -ea SilentlyContinue \`
-FilterHashtable @{ProviderName= "docker"; LogName = "application"} |
Sort-Object @{Expression="TimeCreated";Descending=$false} |
ForEach-Object {"$($_.TimeCreated.ToUniversalTime().ToString("o")) [$($_.LevelDisplayName)] $($_.Message)"}
`,HX=`
`,GX=`
# 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
@@ -432,13 +432,13 @@ audio:
# Choosing "none" will mute the audio output, and not play any sound.
# Builtin default: ""
device: none
`;var $m=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 yB,this.undock=e.undock||new CB,this.githubToken=e.githubToken||process.env.GITHUB_TOKEN}get toolDir(){return this._toolDir||Vr.tmpDir()}async download(){let e,r,s=Yr.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,$(`Downloading Docker ${i} from ${this.source.channel} at download.docker.com`),e=await this.downloadSourceArchive("docker",this.source),this.rootless){$(`Downloading Docker rootless extras ${i} from ${this.source.channel} at download.docker.com`);let a=await this.downloadSourceArchive("docker-rootless-extras",this.source);Lt.default.readdirSync(a).forEach(c=>{let l=Nt.default.join(a,c),u=Nt.default.join(e,c);Lt.default.copyFileSync(l,u)})}break}}$("Fixing perms"),Lt.default.readdir(Nt.default.join(e),function(i,o){if(i)throw i;o.forEach(function(a,c){wr.isDirectory(Nt.default.join(e,a))||Lt.default.chmodSync(Nt.default.join(e,a),"0755")})});let n=await Sd(e,r,this._version.replace(/(0+)([1-9]+)/,"$2"));return ql(n),$("Added Docker to PATH"),this._toolDir=n,n}async downloadSourceImage(e){let r=Nt.default.join(Vr.tmpDir(),"docker-install-image"),s=`dockereng/cli-bin:${this._version}`,n=`moby/moby-bin:${this._version}`;if($(`Downloading Docker CLI from ${s}`),await this.undock.run({source:s,dist:r}),["win32","linux"].includes(e))$(`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){pn(i),this.gitCommit="master"}re(`docker.Install.downloadSourceImage gitCommit: ${this.gitCommit}`)}else pn(`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);$(`Downloading ${n}`);let i=await za(n);re(`docker.Install.downloadSourceArchive downloadPath: ${i}`);let o;return Yr.default.platform()=="win32"?o=await fg(i,o):o=await hg(i,o),wr.isDirectory(Nt.default.join(o,e))&&(o=Nt.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=Yr.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: ${Yr.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=Nt.default.join(Yr.default.homedir(),".lima",this.limaInstanceName);await Ss(r);let s=`unix://${r}/docker.sock`;await t.limaInstalled()||await this.brewInstall("lima"),await he("Lima version",async()=>{await de.exec("lima",["--version"])}),await he("Creating lima config",async()=>{let o={};this.daemonConfig&&(o=JSON.parse(this.daemonConfig)),dA.registerHelper("stringify",function(l){return new dA.SafeString(JSON.stringify(l))});let a=e,c=dA.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});$(`Writing lima config to ${Nt.default.join(r,"lima.yaml")}`),Lt.default.writeFileSync(Nt.default.join(r,"lima.yaml"),c),$(c)}),await t.qemuInstalled()||await this.brewInstall("qemu");let n=await t.qemuBin();await he("QEMU version",async()=>{await de.exec(n,["--version"])});let i=Object.assign({},process.env,{PATH:`${this.toolDir}:${process.env.PATH}`});return await he("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 he("Create Docker context",async()=>{await or.exec(["context","create",this.contextName,"--docker",`host=${s}`]),await or.exec(["context","use",this.contextName])}),s}async installLinux(){let e=`unix://${Nt.default.join(this.runDir,"docker.sock")}`;await Ss(this.runDir);let r=Nt.default.join(this.runDir,"daemon.json");await Lt.default.writeFileSync(r,"{}");let s,n="/etc/docker/daemon.json";if(Lt.default.existsSync(n)&&(await he("Default Docker daemon config found",async()=>{$(JSON.stringify(JSON.parse(Lt.default.readFileSync(n,{encoding:"utf8"})),null,2))}),s=JSON.parse(Lt.default.readFileSync(n,{encoding:"utf8"}))),this.daemonConfig&&(s=Object.assign(s||{},JSON.parse(this.daemonConfig))),s){let o=JSON.stringify(s,null,2);await he("Writing Docker daemon config",async()=>{Lt.default.writeFileSync(r,o),$(o)})}let i=Object.assign({},process.env,{PATH:`${this.toolDir}:${process.env.PATH}`,XDG_RUNTIME_DIR:this.rootless&&this.runDir||void 0});return await he("Start Docker daemon",async()=>{let o=await pt("bash",!0),a=`${this.toolDir}/dockerd`;this.rootless&&(a=`${this.toolDir}/dockerd-rootless.sh`,Lt.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}"`),$(`[command] ${c}`);let l="sudo";this.rootless&&(l+=" -u \\#1001"),(await zX.spawn(`${l} env "PATH=$PATH" "XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR" ${o} << EOF
`;var $m=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 yB,this.undock=e.undock||new CB,this.githubToken=e.githubToken||process.env.GITHUB_TOKEN}get toolDir(){return this._toolDir||Vr.tmpDir()}async download(){let e,r,s=Yr.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);Mt.default.readdirSync(a).forEach(c=>{let l=St.default.join(a,c),u=St.default.join(e,c);Mt.default.copyFileSync(l,u)})}break}}N("Fixing perms"),Mt.default.readdir(St.default.join(e),function(i,o){if(i)throw i;o.forEach(function(a,c){br.isDirectory(St.default.join(e,a))||Mt.default.chmodSync(St.default.join(e,a),"0755")})});let n=await Pd(e,r,this._version.replace(/(0+)([1-9]+)/,"$2"));return Gl(n),N("Added Docker to PATH"),this._toolDir=n,n}async downloadSourceImage(e){let r=St.default.join(Vr.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(w(`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){Ze(i),this.gitCommit="master"}w(`docker.Install.downloadSourceImage gitCommit: ${this.gitCommit}`)}else Ze(`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+/,""),w(`docker.Install.downloadSourceArchive version: ${this._version}`);let n=this.downloadURL(e,this._version,r.channel);N(`Downloading ${n}`);let i=await Ja(n);w(`docker.Install.downloadSourceArchive downloadPath: ${i}`);let o;return Yr.default.platform()=="win32"?o=await hg(i,o):o=await mg(i,o),br.isDirectory(St.default.join(o,e))&&(o=St.default.join(o,e)),w(`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=Yr.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: ${Yr.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=St.default.join(Yr.default.homedir(),".lima",this.limaInstanceName);await Rs(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)),IB.default.registerHelper("stringify",function(l){return new IB.default.SafeString(JSON.stringify(l))});let a=e,c=IB.default.compile(GX)({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 ${St.default.join(r,"lima.yaml")}`),Mt.default.writeFileSync(St.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{awai Line truncated
${A}`)})}).catch(()=>{}),a}}),await me("Create Docker context",async()=>{await lr.exec(["context","create",this.contextName,"--docker",`host=${s}`]),await lr.exec(["context","use",this.contextName])}),s}async installLinux(){let e=`unix://${St.default.join(this.runDir,"docker.sock")}`;await Rs(this.runDir);let r=St.default.join(this.runDir,"daemon.json");await Mt.default.writeFileSync(r,"{}");let s,n="/etc/docker/daemon.json";if(Mt.default.existsSync(n)&&(await me("Default Docker daemon config found",async()=>{N(JSON.stringify(JSON.parse(Mt.default.readFileSync(n,{encoding:"utf8"})),null,2))}),s=JSON.parse(Mt.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()=>{Mt.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`,Mt.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 HX.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 wr.sleep(3);let A=10;await(0,VX.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)=>{$(`${d}. Retrying (${p}/${A})...`)}}),$("Docker daemon started started successfully")}),await he("Create Docker context",async()=>{await or.exec(["context","create",this.contextName,"--docker",`host=${e}`]),await or.exec(["context","use",this.contextName])}),e}async installWindows(){let e="npipe:////./pipe/setup_docker_action",r,s=Nt.default.join(this.runDir,"daemon.json");Lt.default.existsSync(s)&&(await he("Default Docker daemon config found",async()=>{$(JSON.stringify(JSON.parse(Lt.default.readFileSync(s,{encoding:"utf8"})),null,2))}),r=JSON.parse(Lt.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 he("Docker daemon config",async()=>{$(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 he("Install Docker daemon service",async()=>{let o=await wr.powershellCommand(qX(),i);await de.exec(o.command,o.args);let a=await wr.powershellCommand(y_());await de.exec(a.command,a.args)}),await he("Create Docker context",async()=>{await or.exec(["context","create",this.contextName,"--docker",`host=${e}`]),await or.exec(["context","use",this.contextName])}),e}async tearDown(){if(!this.runDir)throw new Error("runDir must be set");switch(Yr.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: ${Yr.default.platform()}`)}await he("Cleaning up toolDir",async()=>{this._toolDir&&Lt.default.rmSync(this._toolDir,{recursive:!0,force:!0})})}async tearDownDarwin(){await this.printDarwinDiagnostics(),await he("Stopping lima instance",async()=>{await de.exec("limactl",["stop","--tty=false",this.limaInstanceName,"--force"])}),await he("Removing lima instance",async()=>{await de.exec("limactl",["delete","--tty=false",this.limaInstanceName,"--force"])}),await he("Removing Docker context",async()=>{await or.exec(["context","rm","-f",this.contextName])}),await he("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 he(e,async()=>{let s=await de.getExecOutput("limactl",["shell","--tty=false",this.limaInstanceName,...r],{ignoreReturnCode:!0,silent:!0}).catch(i=>{$(`Failed to get ${e}: ${i}`)});if(!s)return;let n=[s.stdout.trim(),s.stderr.trim()].filter(Boolean).join(`
`);n.length>0?$(n):s.exitCode!==0&&$(`${e} exited with code ${s.exitCode}`)})}async tearDownLinux(){await he("Docker daemon logs",async()=>{$(Lt.default.readFileSync(Nt.default.join(this.runDir,"dockerd.log"),{encoding:"utf8"}))}),await he("Stopping Docker daemon",async()=>{await de.exec("sudo",["kill","-s","SIGTERM",Lt.default.readFileSync(Nt.default.join(this.runDir,"docker.pid")).toString().trim()]),await wr.sleep(5)}),await he("Removing Docker context",async()=>{await or.exec(["context","rm","-f",this.contextName])}),await he("Cleaning up runDir",async()=>{await de.exec("sudo",["rm","-rf",this.runDir],{ignoreReturnCode:!0,failOnStdErr:!1})})}async tearDownWindows(){await he("Docker daemon logs",async()=>{let e=await wr.powershellCommand(y_());await de.exec(e.command,e.args)}),await he("Removing Docker context",async()=>{await or.exec(["context","rm","-f",this.contextName])}),await he("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(Yr.default.platform()){case"darwin":return"mac";case"linux":return"linux";case"win32":return"win";default:return Yr.default.platform()}}static platformArch(){switch(Yr.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 Yr.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(Yr.default.arch()){case"x64":return"qemu-system-x86_64";case"arm64":return"qemu-system-aarch64";default:return`qemu-system-${Yr.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 wr.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 he(`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 za(a,Nt.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 Vm=B(require("fs"),1),Io=B(require("os"),1),IB=B(require("path"),1);var wB=B(zm(),1),C_=B(require("util"),1);var BB=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=wB.clean(i)||"";if(!wB.valid(o))throw new Error(`Invalid regclient version "${i}".`);let a=new Si({htcName:"regctl-dl-bin",htcVersion:i,baseCacheDir:IB.default.join(Io.default.homedir(),".bin"),cacheFile:Io.default.platform()=="win32"?"regctl.exe":"regctl",ghaNoCache:r}),c=await a.find();if(c)return $(`regctl binary found in ${c}`),c;let l=C_.format(s.downloadURL,i,this.filename());$(`Downloading ${l}`);let u=await za(l,void 0,this.githubToken);re(`Install.download htcDownloadPath: ${u}`);let A=await a.save(u);return $(`Cached to ${A}`),A}async install(e,r){r=r||Vr.tmpDir();let s=IB.default.join(r,"regctl-bin");Vm.default.existsSync(s)||Vm.default.mkdirSync(s,{recursive:!0});let n=Io.default.platform()=="win32"?"regctl.exe":"regctl",i=IB.default.join(s,n);return Vm.default.copyFileSync(e,i),$("Fixing perms"),Vm.default.chmodSync(i,"0755"),ql(s),$("Added regctl to PATH"),$(`Binary path: ${i}`),i}filename(){let e;switch(Io.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=Io.default.arch();break}}let r=Io.default.platform()=="win32"?"windows":Io.default.platform(),s=Io.default.platform()=="win32"?".exe":"";return C_.format("regctl-%s-%s%s",r,e,s)}async vspec(e){let r=e.replace(/^v+|v+$/g,"");return $(`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 Ym=B(require("fs"),1),Rn=B(require("os"),1),Jm=B(require("path"),1);var QB=B(zm(),1),I_=B(require("util"),1);var bB=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=QB.clean(i)||"";if(!QB.valid(o))throw new Error(`Invalid Undock version "${i}".`);let a=new Si({htcName:"undock-dl-bin",htcVersion:i,baseCacheDir:Jm.default.join(Rn.default.homedir(),".bin"),cacheFile:Rn.default.platform()=="win32"?"undock.exe":"undock",ghaNoCache:r}),c=await a.find();if(c)return $(`Undock binary found in ${c}`),c;let l=I_.format(s.downloadURL,i,this.filename(i));$(`Downloading ${l}`);let u=await za(l,void 0,this.githubToken);re(`Install.download htcDownloadPath: ${u}`);let A;Rn.default.platform()=="win32"?A=await fg(u):A=await hg(u),$(`Extracted to ${A}`);let d=Jm.default.join(A,Rn.default.platform()=="win32"?"undock.exe":"undock");re(`Install.download exePath: ${d}`);let p=await a.save(d);return $(`Cached to ${p}`),p}async install(e,r){r=r||Vr.tmpDir();let s=Jm.default.join(r,"undock-bin");Ym.default.existsSync(s)||Ym.default.mkdirSync(s,{recursive:!0});let n=Rn.default.platform()=="win32"?"undock.exe":"undock",i=Jm.default.join(s,n);return Ym.default.copyFileSync(e,i),$("Fixing perms"),Ym.default.chmodSync(i,"0755"),ql(s),$("Added Undock to PATH"),$(`Binary path: ${i}`),i}filename(e){let r;switch(Rn.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=Rn.default.arch();break}}let s=Rn.default.platform()=="win32"?"windows":Rn.default.platform(),n=Rn.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 $(`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
EOF`,[],{env:i,detached:!0,shell:!0,stdio:["ignore",process.stdout,process.stderr]})).unref(),await br.sleep(3);let A=10;await(0,$X.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 lr.exec(["context","create",this.contextName,"--docker",`host=${e}`]),await lr.exec(["context","use",this.contextName])}),e}async installWindows(){let e="npipe:////./pipe/setup_docker_action",r,s=St.default.join(this.runDir,"daemon.json");Mt.default.existsSync(s)&&(await me("Default Docker daemon config found",async()=>{N(JSON.stringify(JSON.parse(Mt.default.readFileSync(s,{encoding:"utf8"})),null,2))}),r=JSON.parse(Mt.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 br.powershellCommand(UX(),i);await Ae.exec(o.command,o.args);let a=await br.powershellCommand(C_());await Ae.exec(a.command,a.args)}),await me("Create Docker context",async()=>{await lr.exec(["context","create",this.contextName,"--docker",`host=${e}`]),await lr.exec(["context","use",this.contextName])}),e}async tearDown(){if(!this.runDir)throw new Error("runDir must be set");switch(Yr.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: ${Yr.default.platform()}`)}await me("Cleaning up toolDir",async()=>{this._toolDir&&Mt.default.rmSync(this._toolDir,{recursive:!0,force:!0})})}async tearDownDarwin(){await this.printDarwinDiagnostics(),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 lr.exec(["context","rm","-f",this.contextName])}),await me("Cleaning up runDir",async()=>{await Ae.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 me(e,async()=>{let s=await Ae.getExecOutput("limactl",["shell","--tty=false",this.limaInstanceName,...r],{ignoreReturnCode:!0,silent:!0}).catch(i=>{N(`Failed to get ${e}: ${i}`)});if(!s)return;let n=[s.stdout.trim(),s.stderr.trim()].filter(Boolean).join(`
`);n.length>0?N(n):s.exitCode!==0&&N(`${e} exited with code ${s.exitCode}`)})}async tearDownLinux(){await me("Docker daemon logs",async()=>{N(Mt.default.readFileSync(St.default.join(this.runDir,"dockerd.log"),{encoding:"utf8"}))}),await me("Stopping Docker daemon",async()=>{await Ae.exec("sudo",["kill","-s","SIGTERM",Mt.default.readFileSync(St.default.join(this.runDir,"docker.pid")).toString().trim()]),await br.sleep(5)}),await me("Removing Docker context",async()=>{await lr.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 br.powershellCommand(C_());await Ae.exec(e.command,e.args)}),await me("Removing Docker context",async()=>{await lr.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(Yr.default.platform()){case"darwin":return"mac";case"linux":return"linux";case"win32":return"win";default:return Yr.default.platform()}}static platformArch(){switch(Yr.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 Yr.default.arch()}}static async limaInstalled(){return await pt("lima",!0).then(e=>(w(`docker.Install.limaInstalled ok: ${e}`),!0)).catch(e=>(w(`docker.Install.limaInstalled error: ${e}`),!1))}static async qemuBin(){switch(Yr.default.arch()){case"x64":return"qemu-system-x86_64";case"arm64":return"qemu-system-aarch64";default:return`qemu-system-${Yr.default.arch()}`}}static async qemuInstalled(){return await pt(await t.qemuBin(),!0).then(e=>(w(`docker.Install.qemuInstalled ok: ${e}`),!0)).catch(e=>(w(`docker.Install.qemuInstalled error: ${e}`),!1))}static async getRelease(e,r){let n=await new fa({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 me(`Installing ${e}`,async()=>{if(!r)await Ae.exec("brew",["install",e]);else{let n="docker-actions-toolkit/tap";await Ae.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 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 Ja(a,St.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 Vm=B(require("fs"),1),Io=B(require("os"),1),BB=B(require("path"),1);var bB=B(zm(),1),I_=B(require("util"),1);var wB=class t{githubToken;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let s=await t.getDownloadVersion(e);w(`Install.download version: ${s.version}`);let n=await t.getRelease(s,this.githubToken);w(`Install.download release tag name: ${n.tag_name}`);let i=await this.vspec(n.tag_name);w(`Install.download vspec: ${i}`);let o=bB.clean(i)||"";if(!bB.valid(o))throw new Error(`Invalid regclient version "${i}".`);let a=new Ni({htcName:"regctl-dl-bin",htcVersion:i,baseCacheDir:BB.default.join(Io.default.homedir(),".bin"),cacheFile:Io.default.platform()=="win32"?"regctl.exe":"regctl",ghaNoCache:r}),c=await a.find();if(c)return N(`regctl binary found in ${c}`),c;let l=I_.format(s.downloadURL,i,this.filename());N(`Downloading ${l}`);let u=await Ja(l,void 0,this.githubToken);w(`Install.download htcDownloadPath: ${u}`);let A=await a.save(u);return N(`Cached to ${A}`),A}async install(e,r){r=r||Vr.tmpDir();let s=BB.default.join(r,"regctl-bin");Vm.default.existsSync(s)||Vm.default.mkdirSync(s,{recursive:!0});let n=Io.default.platform()=="win32"?"regctl.exe":"regctl",i=BB.default.join(s,n);return Vm.default.copyFileSync(e,i),N("Fixing perms"),Vm.default.chmodSync(i,"0755"),Gl(s),N("Added regctl to PATH"),N(`Binary path: ${i}`),i}filename(){let e;switch(Io.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=Io.default.arch();break}}let r=Io.default.platform()=="win32"?"windows":Io.default.platform(),s=Io.default.platform()=="win32"?".exe":"";return I_.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 fa({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 Ym=B(require("fs"),1),Sn=B(require("os"),1),Jm=B(require("path"),1);var xB=B(zm(),1),B_=B(require("util"),1);var QB=class t{githubToken;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let s=await t.getDownloadVersion(e);w(`Install.download version: ${s.version}`);let n=await t.getRelease(s,this.githubToken);w(`Install.download release tag name: ${n.tag_name}`);let i=await this.vspec(n.tag_name);w(`Install.download vspec: ${i}`);let o=xB.clean(i)||"";if(!xB.valid(o))throw new Error(`Invalid Undock version "${i}".`);let a=new Ni({htcName:"undock-dl-bin",htcVersion:i,baseCacheDir:Jm.default.join(Sn.default.homedir(),".bin"),cacheFile:Sn.default.platform()=="win32"?"undock.exe":"undock",ghaNoCache:r}),c=await a.find();if(c)return N(`Undock binary found in ${c}`),c;let l=B_.format(s.downloadURL,i,this.filename(i));N(`Downloading ${l}`);let u=await Ja(l,void 0,this.githubToken);w(`Install.download htcDownloadPath: ${u}`);let A;Sn.default.platform()=="win32"?A=await hg(u):A=await mg(u),N(`Extracted to ${A}`);let d=Jm.default.join(A,Sn.default.platform()=="win32"?"undock.exe":"undock");w(`Install.download exePath: ${d}`);let p=await a.save(d);return N(`Cached to ${p}`),p}async install(e,r){r=r||Vr.tmpDir();let s=Jm.default.join(r,"undock-bin");Ym.default.existsSync(s)||Ym.default.mkdirSync(s,{recursive:!0});let n=Sn.default.platform()=="win32"?"undock.exe":"undock",i=Jm.default.join(s,n);return Ym.default.copyFileSync(e,i),N("Fixing perms"),Ym.default.chmodSync(i,"0755"),Gl(s),N("Added Undock to PATH"),N(`Binary path: ${i}`),i}filename(e){let r;switch(Sn.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=Sn.default.arch();break}}let s=Sn.default.platform()=="win32"?"windows":Sn.default.platform(),n=Sn.default.platform()=="win32"?".zip":".tar.gz";return B_.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 fa({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 VX=B(r 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
+286 -4
View File
@@ -4,8 +4,8 @@ https://www.npmjs.com/package/generate-license-file
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/core@3.2.1
- @sigstore/protobuf-specs@0.5.0
- @sigstore/sign@4.1.1
- @sigstore/tuf@4.0.2
@@ -218,7 +218,7 @@ Apache License
The following npm package may be included in this product:
- @docker/actions-toolkit@0.89.0
- @docker/actions-toolkit@0.91.0
This package contains the following license:
@@ -456,6 +456,12 @@ The following npm packages may be included in this product:
- @pkgjs/parseargs@0.11.0
- b4a@1.6.6
- bare-events@2.3.1
- bare-events@2.8.3
- bare-fs@4.7.1
- bare-os@3.9.1
- bare-stream@2.13.1
- bare-url@2.4.3
- events-universal@1.0.1
- text-decoder@1.1.0
These packages each contain the following license:
@@ -664,6 +670,247 @@ Apache License
-----------
The following npm package may be included in this product:
- bare-path@3.0.0
This package contains the following license:
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
With the following notices:
Copyright 2023 Holepunch Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
---
Copyright Joyent, Inc. and other Node contributors.
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 following npm package may be included in this product:
- readdir-glob@1.1.3
@@ -2451,7 +2698,7 @@ END OF TERMS AND CONDITIONS
The following npm package may be included in this product:
- @sigstore/verify@3.1.0
- @sigstore/verify@3.1.1
This package contains the following license:
@@ -2916,12 +3163,14 @@ The following npm packages may be included in this product:
- @azure/core-client@1.10.1
- @azure/core-http-compat@2.3.1
- @azure/core-rest-pipeline@1.22.2
- @azure/core-rest-pipeline@1.23.0
- @azure/core-tracing@1.3.1
- @azure/core-util@1.13.1
- @azure/core-xml@1.5.0
- @azure/logger@1.3.0
- @azure/storage-blob@12.31.0
- @typespec/ts-http-runtime@0.3.2
- @typespec/ts-http-runtime@0.3.5
These packages each contain the following license:
@@ -4367,6 +4616,7 @@ The following npm packages may be included in this product:
- semver@7.5.4
- semver@7.7.3
- semver@7.7.4
- semver@7.8.1
- which@2.0.2
- wrappy@1.0.2
- yallist@4.0.0
@@ -4693,6 +4943,7 @@ The following npm packages may be included in this product:
- pump@2.0.1
- pumpify@1.5.1
- tar-stream@3.1.7
- tar-stream@3.2.0
These packages each contain the following license:
@@ -4964,6 +5215,7 @@ The following npm packages may be included in this product:
- fast-fifo@1.3.2
- streamx@2.18.0
- streamx@2.26.0
These packages each contain the following license:
@@ -4991,6 +5243,36 @@ THE SOFTWARE.
-----------
The following npm package may be included in this product:
- teex@1.0.1
This package contains the following license:
The MIT License (MIT)
Copyright (c) 2020 Mathias Buus
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 packages may be included in this product:
- @azure/abort-controller@1.1.0
@@ -5217,7 +5499,7 @@ https://github.com/bitinn/node-fetch
The following npm packages may be included in this product:
- @actions/artifact@6.2.1
- @actions/cache@6.0.0
- @actions/cache@6.0.1
- @actions/core@3.0.0
- @actions/core@3.0.1
- @actions/exec@3.0.0
+1 -1
View File
@@ -24,7 +24,7 @@
"packageManager": "yarn@4.9.2",
"dependencies": {
"@actions/core": "^3.0.1",
"@docker/actions-toolkit": "^0.89.0"
"@docker/actions-toolkit": "^0.91.0"
},
"devDependencies": {
"@eslint/js": "^9.39.3",
+193 -23
View File
@@ -34,20 +34,20 @@ __metadata:
languageName: node
linkType: hard
"@actions/cache@npm:^6.0.0":
version: 6.0.0
resolution: "@actions/cache@npm:6.0.0"
"@actions/cache@npm:^6.0.1":
version: 6.0.1
resolution: "@actions/cache@npm:6.0.1"
dependencies:
"@actions/core": "npm:^3.0.0"
"@actions/core": "npm:^3.0.1"
"@actions/exec": "npm:^3.0.0"
"@actions/glob": "npm:^0.6.1"
"@actions/http-client": "npm:^4.0.0"
"@actions/io": "npm:^3.0.0"
"@azure/core-rest-pipeline": "npm:^1.22.0"
"@azure/storage-blob": "npm:^12.30.0"
"@actions/http-client": "npm:^4.0.1"
"@actions/io": "npm:^3.0.2"
"@azure/core-rest-pipeline": "npm:^1.23.0"
"@azure/storage-blob": "npm:^12.31.0"
"@protobuf-ts/runtime-rpc": "npm:^2.11.1"
semver: "npm:^7.7.3"
checksum: 10/91609983f6ed5829018c6afea9b692762acd34604e44479be3ff25c76f5b869d6727766847193ab9f0724de84cd6043759a55553c500c3538af9951494ca14b6
semver: "npm:^7.7.4"
checksum: 10/05d2c18210fa3b583765d734e9dce6532c76d271805929608ee35f56dd3064e1d30f007400e3a275f74a7ad3e454cf0051b6eab4f15a9669dac081d811ee9d10
languageName: node
linkType: hard
@@ -261,6 +261,21 @@ __metadata:
languageName: node
linkType: hard
"@azure/core-rest-pipeline@npm:^1.23.0":
version: 1.23.0
resolution: "@azure/core-rest-pipeline@npm:1.23.0"
dependencies:
"@azure/abort-controller": "npm:^2.1.2"
"@azure/core-auth": "npm:^1.10.0"
"@azure/core-tracing": "npm:^1.3.0"
"@azure/core-util": "npm:^1.13.0"
"@azure/logger": "npm:^1.3.0"
"@typespec/ts-http-runtime": "npm:^0.3.4"
tslib: "npm:^2.6.2"
checksum: 10/9c60c8bb858cec1caf49d3c323667814512fbf0ca3b34fa382c010f4a6fcccf0a6ef8210c2f7d791b2af67b5c427aefb9b1e4c58a9a9ef60d1cff871fca548f3
languageName: node
linkType: hard
"@azure/core-tracing@npm:^1.2.0, @azure/core-tracing@npm:^1.3.0":
version: 1.3.1
resolution: "@azure/core-tracing@npm:1.3.1"
@@ -320,7 +335,7 @@ __metadata:
languageName: node
linkType: hard
"@azure/storage-blob@npm:^12.30.0":
"@azure/storage-blob@npm:^12.30.0, @azure/storage-blob@npm:^12.31.0":
version: 12.31.0
resolution: "@azure/storage-blob@npm:12.31.0"
dependencies:
@@ -421,12 +436,12 @@ __metadata:
languageName: node
linkType: hard
"@docker/actions-toolkit@npm:^0.89.0":
version: 0.89.0
resolution: "@docker/actions-toolkit@npm:0.89.0"
"@docker/actions-toolkit@npm:^0.91.0":
version: 0.91.0
resolution: "@docker/actions-toolkit@npm:0.91.0"
dependencies:
"@actions/artifact": "npm:^6.2.1"
"@actions/cache": "npm:^6.0.0"
"@actions/cache": "npm:^6.0.1"
"@actions/core": "npm:^3.0.1"
"@actions/exec": "npm:^3.0.0"
"@actions/github": "npm:^9.1.1"
@@ -436,7 +451,7 @@ __metadata:
"@sigstore/bundle": "npm:^4.0.0"
"@sigstore/sign": "npm:^4.1.1"
"@sigstore/tuf": "npm:^4.0.2"
"@sigstore/verify": "npm:^3.1.0"
"@sigstore/verify": "npm:^3.1.1"
async-retry: "npm:^1.3.3"
csv-parse: "npm:^6.2.1"
gunzip-maybe: "npm:^1.4.2"
@@ -444,10 +459,10 @@ __metadata:
he: "npm:^1.2.0"
js-yaml: "npm:^4.1.1"
jwt-decode: "npm:^4.0.0"
semver: "npm:^7.7.4"
tar-stream: "npm:^3.1.7"
tmp: "npm:^0.2.5"
checksum: 10/fd1faef4a5c6d0719a0de0dea270315e80cc5ae1b3c949b0888de55b57534312e1407619a49e22af2bd3f43326981fa477b06d861b49bbc9ad484fbf99df577f
semver: "npm:^7.8.1"
tar-stream: "npm:^3.2.0"
tmp: "npm:^0.2.6"
checksum: 10/31ab0d572e716a765fa4db963a342c9c313460839f9a32c06045e07d47dda314e1dbd50f5f3bed7d4e4caa0f9e0b95d28abce3b4d59bfa54cea3f7d9408e5497
languageName: node
linkType: hard
@@ -1652,6 +1667,13 @@ __metadata:
languageName: node
linkType: hard
"@sigstore/core@npm:^3.2.1":
version: 3.2.1
resolution: "@sigstore/core@npm:3.2.1"
checksum: 10/2f6c1ced55f8ed3f7fc705a668eb95db9471511dfb1f054927822bf97a051dd62228ecf6a9f1932d240c2c4ae69a3b5066550789e5ad8f4257839a4370e5a120
languageName: node
linkType: hard
"@sigstore/protobuf-specs@npm:^0.5.0":
version: 0.5.0
resolution: "@sigstore/protobuf-specs@npm:0.5.0"
@@ -1718,6 +1740,17 @@ __metadata:
languageName: node
linkType: hard
"@sigstore/verify@npm:^3.1.1":
version: 3.1.1
resolution: "@sigstore/verify@npm:3.1.1"
dependencies:
"@sigstore/bundle": "npm:^4.0.0"
"@sigstore/core": "npm:^3.2.1"
"@sigstore/protobuf-specs": "npm:^0.5.0"
checksum: 10/4cb24b0e62b85ebf2b62698041e0dc212d152fd40a95c05c237357c992265a23e5789f86b138bea2eea0c5f6b994974d968f03dde9c692a514f96ae4b26f31a9
languageName: node
linkType: hard
"@standard-schema/spec@npm:^1.0.0":
version: 1.1.0
resolution: "@standard-schema/spec@npm:1.1.0"
@@ -1935,6 +1968,17 @@ __metadata:
languageName: node
linkType: hard
"@typespec/ts-http-runtime@npm:^0.3.4":
version: 0.3.5
resolution: "@typespec/ts-http-runtime@npm:0.3.5"
dependencies:
http-proxy-agent: "npm:^7.0.0"
https-proxy-agent: "npm:^7.0.0"
tslib: "npm:^2.6.2"
checksum: 10/7cf459826e4867ab52a4b9855fdce4590e30a6f37e11fb93155e01c6e80139ec9966b7a3270cffed2c1e88ae66acbae5b4c9a7ecd9274679734da2c18310cc6c
languageName: node
linkType: hard
"@vitest/coverage-v8@npm:^4.0.18":
version: 4.0.18
resolution: "@vitest/coverage-v8@npm:4.0.18"
@@ -2308,6 +2352,82 @@ __metadata:
languageName: node
linkType: hard
"bare-events@npm:^2.5.4, bare-events@npm:^2.7.0":
version: 2.8.3
resolution: "bare-events@npm:2.8.3"
peerDependencies:
bare-abort-controller: "*"
peerDependenciesMeta:
bare-abort-controller:
optional: true
checksum: 10/704252793362d4a422959f3b5d134a3f893f020b515cccf55965c8076941d6e7fd8c23268560693f2300270378a00384156237e4390edda2d4ca0e641bfe774e
languageName: node
linkType: hard
"bare-fs@npm:^4.5.5":
version: 4.7.1
resolution: "bare-fs@npm:4.7.1"
dependencies:
bare-events: "npm:^2.5.4"
bare-path: "npm:^3.0.0"
bare-stream: "npm:^2.6.4"
bare-url: "npm:^2.2.2"
fast-fifo: "npm:^1.3.2"
peerDependencies:
bare-buffer: "*"
peerDependenciesMeta:
bare-buffer:
optional: true
checksum: 10/bb873bf8d22c45fd14444b0f9731315a77b696c9387b09cc0df9975b998d1b5db9f4c88aa4b264ce59edeade573689ba9e0ba172003cc8900b2c2ad803f9275b
languageName: node
linkType: hard
"bare-os@npm:^3.0.1":
version: 3.9.1
resolution: "bare-os@npm:3.9.1"
checksum: 10/2a106aca9eeb1cf41e30403410c9fa81a9e13c25818debc21444f2485158e01e65f10daff37acab0cbf9460c00e64e6bcaedef07b25a9171ec1e45485213ff50
languageName: node
linkType: hard
"bare-path@npm:^3.0.0":
version: 3.0.0
resolution: "bare-path@npm:3.0.0"
dependencies:
bare-os: "npm:^3.0.1"
checksum: 10/712d90e9cd8c3263cc11b0e0d386d1531a452706d7840c081ee586b34b00d72544e65df7a40013d47c1b177277495225deeede65cb2984db88a979cb65aaa2ff
languageName: node
linkType: hard
"bare-stream@npm:^2.6.4":
version: 2.13.1
resolution: "bare-stream@npm:2.13.1"
dependencies:
streamx: "npm:^2.25.0"
teex: "npm:^1.0.1"
peerDependencies:
bare-abort-controller: "*"
bare-buffer: "*"
bare-events: "*"
peerDependenciesMeta:
bare-abort-controller:
optional: true
bare-buffer:
optional: true
bare-events:
optional: true
checksum: 10/50aa90a7005d71c1af8fafcc84f378bd4d7c2dd293a581ffe3899bee39b0d2eb07c47e1092f581fa5b199a63c0ad2618b150c0ab716658727e3fcc7fd7d1e401
languageName: node
linkType: hard
"bare-url@npm:^2.2.2":
version: 2.4.3
resolution: "bare-url@npm:2.4.3"
dependencies:
bare-path: "npm:^3.0.0"
checksum: 10/e2c16dd57e0c4b974813d9acd626b96e83a8894e19b0bf780de4bef40a7000c697984a47c398c8f612aa7991974bfb97f1c3c3fd410085a55fa5db15d1ba6309
languageName: node
linkType: hard
"base64-js@npm:^1.3.1":
version: 1.5.1
resolution: "base64-js@npm:1.5.1"
@@ -2770,7 +2890,7 @@ __metadata:
resolution: "docker-setup-docker@workspace:."
dependencies:
"@actions/core": "npm:^3.0.1"
"@docker/actions-toolkit": "npm:^0.89.0"
"@docker/actions-toolkit": "npm:^0.91.0"
"@eslint/js": "npm:^9.39.3"
"@types/node": "npm:^24.11.0"
"@typescript-eslint/eslint-plugin": "npm:^8.56.1"
@@ -3235,6 +3355,15 @@ __metadata:
languageName: node
linkType: hard
"events-universal@npm:^1.0.0":
version: 1.0.1
resolution: "events-universal@npm:1.0.1"
dependencies:
bare-events: "npm:^2.7.0"
checksum: 10/71b2e6079b4dc030c613ef73d99f1acb369dd3ddb6034f49fd98b3e2c6632cde9f61c15fb1351004339d7c79672252a4694ecc46a6124dc794b558be50a83867
languageName: node
linkType: hard
"events@npm:^3.0.0, events@npm:^3.3.0":
version: 3.3.0
resolution: "events@npm:3.3.0"
@@ -5414,6 +5543,15 @@ __metadata:
languageName: node
linkType: hard
"semver@npm:^7.8.1":
version: 7.8.1
resolution: "semver@npm:7.8.1"
bin:
semver: bin/semver.js
checksum: 10/3244f6c4cb3f8126fea0426d353829ed4967e41e1f4696337c6fdcad87426466fe2badaf49d7dc85849acfc496ea0599432a4aecc33802d2d774e723acfa30e6
languageName: node
linkType: hard
"set-blocking@npm:^2.0.0":
version: 2.0.0
resolution: "set-blocking@npm:2.0.0"
@@ -5598,6 +5736,17 @@ __metadata:
languageName: node
linkType: hard
"streamx@npm:^2.12.5, streamx@npm:^2.25.0":
version: 2.26.0
resolution: "streamx@npm:2.26.0"
dependencies:
events-universal: "npm:^1.0.0"
fast-fifo: "npm:^1.3.2"
text-decoder: "npm:^1.1.0"
checksum: 10/77cdc5f2e0b8d85a1c6850db0f895c5fb1a4412fc4be285896451f9c51bd5e493af511ad6d4a1e2a76f0da2636b1a84f6a79a646467e29fbe7cc5d05eee72683
languageName: node
linkType: hard
"streamx@npm:^2.15.0":
version: 2.18.0
resolution: "streamx@npm:2.18.0"
@@ -5703,7 +5852,7 @@ __metadata:
languageName: node
linkType: hard
"tar-stream@npm:^3.0.0, tar-stream@npm:^3.1.7":
"tar-stream@npm:^3.0.0":
version: 3.1.7
resolution: "tar-stream@npm:3.1.7"
dependencies:
@@ -5714,6 +5863,18 @@ __metadata:
languageName: node
linkType: hard
"tar-stream@npm:^3.2.0":
version: 3.2.0
resolution: "tar-stream@npm:3.2.0"
dependencies:
b4a: "npm:^1.6.4"
bare-fs: "npm:^4.5.5"
fast-fifo: "npm:^1.2.0"
streamx: "npm:^2.15.0"
checksum: 10/ce57a81521de73ae7a3b7d55a08da50d6771427c249bfa89a208518e48faf5254c8fa7201a8f5419ab8bde9601a74e6dd512b31a13ec89774aec96178f99a8d3
languageName: node
linkType: hard
"tar@npm:^6.1.11, tar@npm:^6.1.2":
version: 6.2.1
resolution: "tar@npm:6.2.1"
@@ -5741,6 +5902,15 @@ __metadata:
languageName: node
linkType: hard
"teex@npm:^1.0.1":
version: 1.0.1
resolution: "teex@npm:1.0.1"
dependencies:
streamx: "npm:^2.12.5"
checksum: 10/36bf7ce8bb5eb428ad7b14b695ee7fb0a02f09c1a9d8181cc42531208543a920b299d711bf78dad4ff9bcf36ac437ae8e138053734746076e3e0e7d6d76eef64
languageName: node
linkType: hard
"text-decoder@npm:^1.1.0":
version: 1.1.0
resolution: "text-decoder@npm:1.1.0"
@@ -5801,7 +5971,7 @@ __metadata:
languageName: node
linkType: hard
"tmp@npm:^0.2.5":
"tmp@npm:^0.2.6":
version: 0.2.6
resolution: "tmp@npm:0.2.6"
checksum: 10/4ba072821d65f6ec0ae680dd49261bcc66c96a5a463c80ca040747256238aaad68ad5db7aa8367dd1554d22aa77c2988bdb1c5556ecfc4df105f5b73206b7d9b