Merge pull request #468 from crazy-max/fix-esbuild

preserve names in esbuild bundle
This commit is contained in:
CrazyMax authored and GitHub committed 2026-06-29 16:14:48 +02:00
commit 17834aedc8
3 files changed
+193 -193

No files matched your search

Generated Vendored
+190 -190
View File
@@ -1,270 +1,270 @@
var Aat=Object.create;var U6=Object.defineProperty;var gat=Object.getOwnPropertyDescriptor;var yat=Object.getOwnPropertyNames;var Eat=Object.getPrototypeOf,bat=Object.prototype.hasOwnProperty;var wat=(t,e)=>()=>(t&&(e=t(t=0)),e);var p=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),OAe=(t,e)=>{for(var r in e)U6(t,r,{get:e[r],enumerable:!0})},Cat=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of yat(e))!bat.call(t,n)&&n!==r&&U6(t,n,{get:()=>e[n],enumerable:!(i=gat(e,n))||i.enumerable});return t};var O=(t,e,r)=>(r=t!=null?Aat(Eat(t)):{},Cat(e||!t||!t.__esModule?U6(r,"default",{value:t,enumerable:!0}):r,t));var UAe=p(Bb=>{"use strict";var _Rr=require("net"),xat=require("tls"),z6=require("http"),LAe=require("https"),Rat=require("events"),xRr=require("assert"),Tat=require("util");Bb.httpOverHttp=Nat;Bb.httpsOverHttp=Dat;Bb.httpOverHttps=Oat;Bb.httpsOverHttps=Pat;function Nat(t){var e=new pd(t);return e.request=z6.request,e}function Dat(t){var e=new pd(t);return e.request=z6.request,e.createSocket=MAe,e.defaultPort=443,e}function Oat(t){var e=new pd(t);return e.request=LAe.request,e}function Pat(t){var e=new pd(t);return e.request=LAe.request,e.createSocket=MAe,e.defaultPort=443,e}function pd(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||z6.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(i,n,s,o){for(var a=FAe(n,s,o),c=0,u=e.requests.length;c<u;++c){var l=e.requests[c];if(l.host===a.host&&l.port===a.port){e.requests.splice(c,1),l.request.onSocket(i);return}}i.destroy(),e.removeSocket(i)})}Tat.inherits(pd,Rat.EventEmitter);pd.prototype.addRequest=function(e,r,i,n){var s=this,o=$6({request:e},s.options,FAe(r,i,n));if(s.sockets.length>=this.maxSockets){s.requests.push(o);return}s.createSocket(o,function(a){a.on("free",c),a.on("close",u),a.on("agentRemove",u),e.onSocket(a);function c(){s.emit("free",a,o)}function u(l){s.removeSocket(a),a.removeListener("free",c),a.removeListener("close",u),a.removeListener("agentRemove",u)}})};pd.prototype.createSocket=function(e,r){var i=this,n={};i.sockets.push(n);var s=$6({},i.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(s.localAddress=e.localAddress),s.proxyAuth&&(s.headers=s.headers||{},s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")),wm("making CONNECT request");var o=i.request(s);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",u),o.once("error",l),o.end();function a(f){f.upgrade=!0}function c(f,h,d){process.nextTick(function(){u(f,h,d)})}function u(f,h,d){if(o.removeAllListeners(),h.removeAllListeners(),f.statusCode!==200){wm("tunneling socket could not be established, statusCode=%d",f.statusCode),h.destroy();var m=new Error("tunneling socket could not be established, statusCode="+f.statusCode);m.code="ECONNRESET",e.request.emit("error",m),i.removeSocket(n);return}if(d.length>0){wm("got illegal response body from proxy"),h.destroy();var m=new Error("got illegal response body from proxy");m.code="ECONNRESET",e.request.emit("error",m),i.removeSocket(n);return}return wm("tunneling connection has established"),i.sockets[i.sockets.indexOf(n)]=h,r(h)}function l(f){o.removeAllListeners(),wm(`tunneling socket could not be established, cause=%s
`,f.message,f.stack);var h=new Error("tunneling socket could not be established, cause="+f.message);h.code="ECONNRESET",e.request.emit("error",h),i.removeSocket(n)}};pd.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var i=this.requests.shift();i&&this.createSocket(i,function(n){i.request.onSocket(n)})}};function MAe(t,e){var r=this;pd.prototype.createSocket.call(r,t,function(i){var n=t.request.getHeader("host"),s=$6({},r.options,{socket:i,servername:n?n.replace(/:.*$/,""):t.host}),o=xat.connect(0,s);r.sockets[r.sockets.indexOf(i)]=o,e(o)})}function FAe(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function $6(t){for(var e=1,r=arguments.length;e<r;++e){var i=arguments[e];if(typeof i=="object")for(var n=Object.keys(i),s=0,o=n.length;s<o;++s){var a=n[s];i[a]!==void 0&&(t[a]=i[a])}}return t}var wm;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?wm=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)}:wm=function(){};Bb.debug=wm});var vb=p((TRr,qAe)=>{qAe.exports=UAe()});var Lr=p((NRr,GAe)=>{GAe.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 $t=p((DRr,dge)=>{"use strict";var HAe=Symbol.for("undici.error.UND_ERR"),Mr=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[HAe]===!0}[HAe]=!0},jAe=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),W6=class extends Mr{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[jAe]===!0}[jAe]=!0},VAe=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),J6=class extends Mr{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[VAe]===!0}[VAe]=!0},zAe=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),Y6=class extends Mr{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[zAe]===!0}[zAe]=!0},$Ae=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),K6=class extends Mr{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[$Ae]===!0}[$Ae]=!0},WAe=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),X6=class extends Mr{constructor(e,r,i,n){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_C Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function Yut(t,e){let{headersList:r}=e,i=(r.get("referrer-policy",!0)??"").split(","),n="";if(i.length>0)for(let s=i.length;s!==0;s--){let o=i[s-1].trim();if(Put.has(o)){n=o;break}}n!==""&&(t.referrerPolicy=n)}function Kut(){return"allowed"}function Xut(){return"success"}function Zut(){return"success"}function elt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function tlt(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&&Hj(t.origin)&&!Hj(Nv(t))&&(e=null);break;case"same-origin":qD(t,Nv(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Qb(t,e){return t}function rlt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Qb(t.domainLookupStartTime,r),domainLookupEndTime:Qb(t.domainLookupEndTime,r),connectionStartTime:Qb(t.connectionStartTime,r),connectionEndTime:Qb(t.connectionEndTime,r),secureConnectionStartTime:Qb(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function ilt(t){return Qb(Fut.now(),t)}function nlt(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 _ye(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function slt(t){return{referrerPolicy:t.referrerPolicy}}function olt(t){let e=t.referrerPolicy;ty(e);let r=null;if(t.referrer==="client"){let a=wye();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let i=Gj(r),n=Gj(r,!0);i.toString().length>4096&&(i=n);let s=qD(t,i),o=Tv(i)&&!Tv(t.url);switch(e){case"origin":return n??Gj(r,!0);case"unsafe-url":return i;case"same-origin":return s?n:"no-referrer";case"origin-when-cross-origin":return s?i:n;case"strict-origin-when-cross-origin":{let a=Nv(t);return qD(i,a)?i:Tv(i)&&!Tv(a)?"no-referrer":n}default:return o?"no-referrer":n}}function Gj(t,e){return ty(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 Tv(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 i=new URL(r);return!!(i.protocol==="https:"||i.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(i.hostname)||i.hostname==="localhost"||i.hostname.includes("localhost.")||i.hostname.endsWith(".localhost"))}}function alt(t,e){if(UD===void 0)return!0;let r=xye(e);if(r==="no metadata"||r.length===0)return!0;let i=ult(r),n=llt(r,i);for(let s of n){let o=s.algo,a=s.hash,c=UD.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)),flt(c,a))return!0}return!1}var clt=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function xye(t){let e=[],r=!0;for(let i of t.split(" ")){r=!1;let n=clt.exec(i);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let s=n.groups.algo.toLowerCase();Iye.includes(s)&&e.push(n.groups)}return r===!0?"no metadata":e}function ult(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let i=t[r];if(i.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;i.algo[3]==="3"&&(e="sha384")}}return e}function llt(t,e){if(t.length===1)return t;let r=0;for(let i=0;i<t.length;++i)t[i].algo===e&&(t[r++]=t[i]);return t.length=r,t}function flt(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 hlt(t){}function qD(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function dlt(){let t,e;return{promise:new Promise((i,n)=>{t=i,e=n}),resolve:t,reject:e}}function plt(t){return t.controller.state==="aborted"}function mlt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function Alt(t){return Gut[t.toLowerCase()]??t}function glt(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return ty(typeof e=="string"),e}var ylt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Rye(t,e,r=0,i=1){class n{ Line truncated
`);function Wlt(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function Jlt(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let i=t.charCodeAt(r);if(!(i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122||i===39||i===45||i===95))return!1}return!0}function Ylt(t,e){HD(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let i=Buffer.from(`--${r}`,"utf8"),n=[],s={position:0};for(;t[s.position]===13&&t[s.position+1]===10;)s.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(s.position,s.position+i.length).equals(i))s.position+=i.length;else return"failure";if(s.position===t.length-2&&jD(t,zlt,s)||s.position===t.length-4&&jD(t,$lt,s))return n;if(t[s.position]!==13||t[s.position+1]!==10)return"failure";s.position+=2;let a=Klt(t,s);if(a==="failure")return"failure";let{name:c,filename:u,contentType:l,encoding:f}=a;s.position+=2;let h;{let m=t.indexOf(i.subarray(2),s.position);if(m===-1)return"failure";h=t.subarray(s.position,m-4),s.position+=h.length,f==="base64"&&(h=Buffer.from(h.toString(),"base64"))}if(t[s.position]!==13||t[s.position+1]!==10)return"failure";s.position+=2;let d;u!==null?(l??="text/plain",Wlt(l)||(l=""),d=new jlt([h],u,{type:l})):d=Flt(Buffer.from(h)),HD(qye(c)),HD(typeof d=="string"&&qye(d)||qlt(d)),n.push(Glt(c,d,u))}}function Klt(t,e){let r=null,i=null,n=null,s=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:i,contentType:n,encoding:s};let o=Mb(a=>a!==10&&a!==13&&a!==58,t,e);if(o=Yj(o,!0,!0,a=>a===9||a===32),!Ult.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Mb(a=>a===32||a===9,t,e),Mlt(o)){case"content-disposition":{if(r=i=null,!jD(t,Vlt,e)||(e.position+=17,r=jye(t,e),r===null))return"failure";if(jD(t,Hye,e)){let a=e.position+Hye.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,i=jye(t,e),i===null))return"failure"}break}case"content-type":{let a=Mb(c=>c!==10&&c!==13,t,e);a=Yj(a,!1,!0,c=>c===9||c===32),n=Gye(a);break}case"content-transfer-encoding":{let a=Mb(c=>c!==10&&c!==13,t,e);a=Yj(a,!1,!0,c=>c===9||c===32),s=Gye(a);break}default:Mb(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function jye(t,e){HD(t[e.position-1]===34);let r=Mb(i=>i!==10&&i!==13&&i!==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 Mb(t,e,r){let i=r.position;for(;i<e.length&&t(e[i]);)++i;return e.subarray(r.position,r.position=i)}function Yj(t,e,r,i){let n=0,s=t.length-1;if(e)for(;n<t.length&&i(t[n]);)n++;if(r)for(;s>0&&i(t[s]);)s--;return n===0&&s===t.length-1?t:t.subarray(n,s+1)}function jD(t,e,r){if(t.length<e.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!==t[r.position+i])return!1;return!0}Vye.exports={multipartFormDataParser:Ylt,validateBoundary:Jlt}});var qb=p((iTr,rEe)=>{"use strict";var Pv=bt(),{ReadableStreamFrom:Xlt,isBlobLike:$ye,isReadableStreamLike:Zlt,readableStreamClose:eft,createDeferredPromise:tft,fullyReadBody:rft,extractMimeType:ift,utf8DecodeBytes:Yye}=Fa(),{FormData:Wye}=Ov(),{kState:Ub}=Cm(),{webidl:nft}=is(),{Blob:sft}=require("node:buffer"),Kj=require("node:assert"),{isErrored:Kye,isDisturbed:oft}=require("node:stream"),{isArrayBuffer:aft}=require("node:util/types"),{serializeAMimeType:cft}=ea(),{multipartFormDataParser:uft}=zye(),Xj;try{let t=require("node:crypto");Xj=e=>t.randomInt(0,e)}catch{Xj=t=>Math.floor(Math.random(t))}var VD=new TextEncoder;function lft(){}var Xye=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Zye;Xye&&(Zye=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!oft(e)&&!Kye(e)&&e.cancel("Response object has been garbage collected").catch(lft)}));function eEe(t,e=!1){let r=null;t instanceof ReadableStream?r=t:$ye(t)?r=t.stream():r=new ReadableStream({async pull(c){let u=typeof n=="string"?VD.encode(n):n;u.byteLength&&c.enqueue(u),queueMicrotask(()=>eft(c))},start(){},type:"bytes"}),Kj(Zlt(r));let i=null,n=null,s=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(aft(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(Pv.isFormDataLike(t)){let c=`----formdata-undici-0${`${Xj(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
Content-Disposition: form-data`;let l=y=>y.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),f=y=>y.replace(/\r?\n|\r/g,`\r
`),h=[],d=new Uint8Array([13,10]);s=0;let m=!1;for(let[y,g]of t)if(typeof g=="string"){let E=VD.encode(u+`; name="${l(f(y))}"\r
var gat=Object.create;var yD=Object.defineProperty;var yat=Object.getOwnPropertyDescriptor;var Eat=Object.getOwnPropertyNames;var bat=Object.getPrototypeOf,wat=Object.prototype.hasOwnProperty;var o=(t,e)=>yD(t,"name",{value:e,configurable:!0});var Cat=(t,e)=>()=>(t&&(e=t(t=0)),e);var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),PAe=(t,e)=>{for(var r in e)yD(t,r,{get:e[r],enumerable:!0})},Iat=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Eat(e))!wat.call(t,n)&&n!==r&&yD(t,n,{get:()=>e[n],enumerable:!(i=yat(e,n))||i.enumerable});return t};var P=(t,e,r)=>(r=t!=null?gat(bat(t)):{},Iat(e||!t||!t.__esModule?yD(r,"default",{value:t,enumerable:!0}):r,t));var qAe=m(vb=>{"use strict";var DRr=require("net"),Rat=require("tls"),$6=require("http"),MAe=require("https"),Tat=require("events"),ORr=require("assert"),Nat=require("util");vb.httpOverHttp=Dat;vb.httpsOverHttp=Oat;vb.httpOverHttps=Pat;vb.httpsOverHttps=kat;function Dat(t){var e=new md(t);return e.request=$6.request,e}o(Dat,"httpOverHttp");function Oat(t){var e=new md(t);return e.request=$6.request,e.createSocket=FAe,e.defaultPort=443,e}o(Oat,"httpsOverHttp");function Pat(t){var e=new md(t);return e.request=MAe.request,e}o(Pat,"httpOverHttps");function kat(t){var e=new md(t);return e.request=MAe.request,e.createSocket=FAe,e.defaultPort=443,e}o(kat,"httpsOverHttps");function md(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||$6.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(i,n,s,a){for(var c=UAe(n,s,a),u=0,l=e.requests.length;u<l;++u){var f=e.requests[u];if(f.host===c.host&&f.port===c.port){e.requests.splice(u,1),f.request.onSocket(i);return}}i.destroy(),e.removeSocket(i)},"onFree"))}o(md,"TunnelingAgent");Nat.inherits(md,Tat.EventEmitter);md.prototype.addRequest=o(function(e,r,i,n){var s=this,a=W6({request:e},s.options,UAe(r,i,n));if(s.sockets.length>=this.maxSockets){s.requests.push(a);return}s.createSocket(a,function(c){c.on("free",u),c.on("close",l),c.on("agentRemove",l),e.onSocket(c);function u(){s.emit("free",c,a)}o(u,"onFree");function l(f){s.removeSocket(c),c.removeListener("free",u),c.removeListener("close",l),c.removeListener("agentRemove",l)}o(l,"onCloseOrRemove")})},"addRequest");md.prototype.createSocket=o(function(e,r){var i=this,n={};i.sockets.push(n);var s=W6({},i.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(s.localAddress=e.localAddress),s.proxyAuth&&(s.headers=s.headers||{},s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")),Cm("making CONNECT request");var a=i.request(s);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",u),a.once("connect",l),a.once("error",f),a.end();function c(h){h.upgrade=!0}o(c,"onResponse");function u(h,d,p){process.nextTick(function(){l(h,d,p)})}o(u,"onUpgrade");function l(h,d,p){if(a.removeAllListeners(),d.removeAllListeners(),h.statusCode!==200){Cm("tunneling socket could not be established, statusCode=%d",h.statusCode),d.destroy();var A=new Error("tunneling socket could not be established, statusCode="+h.statusCode);A.code="ECONNRESET",e.request.emit("error",A),i.removeSocket(n);return}if(p.length>0){Cm("got illegal response body from proxy"),d.destroy();var A=new Error("got illegal response body from proxy");A.code="ECONNRESET",e.request.emit("error",A),i.removeSocket(n);return}return Cm("tunneling connection has established"),i.sockets[i.sockets.indexOf(n)]=d,r(d)}o(l,"onConnect");function f(h){a.removeAllListeners(),Cm(`tunneling socket could not be established, cause=%s
`,h.message,h.stack);var d=new Error("tunneling socket could not be established, cause="+h.message);d.code="ECONNRESET",e.request.emit("error",d),i.removeSocket(n)}o(f,"onError")},"createSocket");md.prototype.removeSocket=o(function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var i=this.requests.shift();i&&this.createSocket(i,function(n){i.request.onSocket(n)})}},"removeSocket");function FAe(t,e){var r=this;md.prototype.createSocket.call(r,t,function(i){var n=t.request.getHeader("host"),s=W6({},r.options,{socket:i,servername:n?n.replace(/:.*$/,""):t.host}),a=Rat.connect(0,s);r.sockets[r.sockets.indexOf(i)]=a,e(a)})}o(FAe,"createSecureSocket");function UAe(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}o(UAe,"toOptions");function W6(t){for(var e=1,r=arguments.length;e<r;++e){var i=arguments[e];if(typeof i=="object")for(var n=Object.keys(i),s=0,a=n.length;s<a;++s){var c=n[s];i[c]!==void 0&&(t[c]=i[c])}}return t}o(W6,"mergeOptions");var Cm;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Cm=o(function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)},"debug"):Cm=o(function(){},"debug");vb.debug=Cm});var _b=m((QRr,GAe)=>{GAe.exports=qAe()});var Mr=m((LRr,HAe)=>{HAe.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 Wt=m((MRr,pge)=>{"use strict";var jAe=Symbol.for("undici.error.UND_ERR"),Fr=class extends Error{static{o(this,"UndiciError")}constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[jAe]===!0}[jAe]=!0},VAe=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),J6=class extends Fr{static{o(this,"ConnectTimeoutError")}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[VAe]===!0}[VAe]=!0},zAe=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),Y6=class extends Fr{static{o(this,"HeadersTimeoutError")}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[zAe]===!0}[zAe]=!0},$Ae=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),K6=class extends Fr{static{o(this,"HeadersOverflowError")}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[$Ae]===!0}[$Ae]=!0},WAe=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),X6=class extends Fr{static{o(this,"BodyTimeoutError")}constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}o(_ye,"isValidHeaderValue");function Kut(t,e){let{headersList:r}=e,i=(r.get("referrer-policy",!0)??"").split(","),n="";if(i.length>0)for(let s=i.length;s!==0;s--){let a=i[s-1].trim();if(kut.has(a)){n=a;break}}n!==""&&(t.referrerPolicy=n)}o(Kut,"setRequestReferrerPolicyOnRedirect");function Xut(){return"allowed"}o(Xut,"crossOriginResourcePolicyCheck");function Zut(){return"success"}o(Zut,"corsCheck");function elt(){return"success"}o(elt,"TAOCheck");function tlt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}o(tlt,"appendFetchMetadata");function rlt(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&&jj(t.origin)&&!jj(Dv(t))&&(e=null);break;case"same-origin":HD(t,Dv(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}o(rlt,"appendRequestOriginHeader");function Lb(t,e){return t}o(Lb,"coarsenTime");function ilt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Lb(t.domainLookupStartTime,r),domainLookupEndTime:Lb(t.domainLookupEndTime,r),connectionStartTime:Lb(t.connectionStartTime,r),connectionEndTime:Lb(t.connectionEndTime,r),secureConnectionStartTime:Lb(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}o(ilt,"clampAndCoarsenConnectionTimingInfo");function nlt(t){return Lb(Uut.now(),t)}o(nlt,"coarsenedSharedCurrentTime");function slt(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}o(slt,"createOpaqueTimingInfo");function xye(){return{referrerPolicy:"strict-origin-when-cross-origin"}}o(xye,"makePolicyContainer");function olt(t){return{referrerPolicy:t.referrerPolicy}}o(olt,"clonePolicyContainer");function alt(t){let e=t.referrerPolicy;ry(e);let r=null;if(t.referrer==="client"){let c=Cye();if(!c||c.origin==="null")return"no-referrer";r=new URL(c)}else t.referrer instanceof URL&&(r=t.referrer);let i=Hj(r),n=Hj(r,!0);i.toString().length>4096&&(i=n);let s=HD(t,i),a=Nv(i)&&!Nv(t.url);switch(e){case"origin":return n??Hj(r,!0);case"unsafe-url":return i;case"same-origin":return s?n:"no-referrer";case"origin-when-cross-origin":return s?i:n;case"strict-origin-when-cross-origin":{let c=Dv(t);return HD(i,c)?i:Nv(i)&&!Nv(c)?"no-referrer":n}default:return a?"no-referrer":n}}o(alt,"determineRequestsReferrer");function Hj(t,e){return ry(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}o(Hj,"stripURLForReferrer");function Nv(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 i=new URL(r);return!!(i.protocol==="https:"||i.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(i.hostname)||i.hostname==="localhost"||i.hostname.includes("localhost.")||i.hostname.endsWith(".localhost"))}}o(Nv,"isURLPotentiallyTrustworthy");function clt(t,e){if(GD===void 0)return!0;let r=Rye(e);if(r==="no metadata"||r.length===0)return!0;let i=llt(r),n=flt(r,i);for(let s of n){let a=s.algo,c=s.hash,u=GD.createHash(a).update(t).digest("base64");if(u[u.length-1]==="="&&(u[u.length-2]==="="?u=u.slice(0,-2):u=u.slice(0,-1)),hlt(u,c))return!0}return!1}o(clt,"bytesMatch");var ult=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function Rye(t){let e=[],r=!0;for(let i of t.split(" ")){r=!1;let n=ult.exec(i);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let s=n.groups.algo.toLowerCase();Sye.includes(s)&&e.push(n.groups)}return r===!0?"no metadata":e}o(Rye,"parseMetadata");function llt(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let i=t[r];if(i.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;i.algo[3]==="3"&&(e="sha384")}}return e}o(llt,"getStrongestMetadata");function flt(t,e){if(t.length===1)return t;let r=0;for(let i=0;i<t.length;++i)t[i].algo===e&&(t[r++]=t[i]);return t.length=r,t}o(flt,"filterMetadataListByAlgorithm");function hlt(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}o(hlt,"compareBase64Mixed");function dlt(t){}o(dlt,"tryUpgr Line truncated
`);function Jlt(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}o(Jlt,"isAsciiString");function Ylt(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let i=t.charCodeAt(r);if(!(i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122||i===39||i===45||i===95))return!1}return!0}o(Ylt,"validateBoundary");function Klt(t,e){VD(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let i=Buffer.from(`--${r}`,"utf8"),n=[],s={position:0};for(;t[s.position]===13&&t[s.position+1]===10;)s.position+=2;let a=t.length;for(;t[a-1]===10&&t[a-2]===13;)a-=2;for(a!==t.length&&(t=t.subarray(0,a));;){if(t.subarray(s.position,s.position+i.length).equals(i))s.position+=i.length;else return"failure";if(s.position===t.length-2&&zD(t,$lt,s)||s.position===t.length-4&&zD(t,Wlt,s))return n;if(t[s.position]!==13||t[s.position+1]!==10)return"failure";s.position+=2;let c=Xlt(t,s);if(c==="failure")return"failure";let{name:u,filename:l,contentType:f,encoding:h}=c;s.position+=2;let d;{let A=t.indexOf(i.subarray(2),s.position);if(A===-1)return"failure";d=t.subarray(s.position,A-4),s.position+=d.length,h==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[s.position]!==13||t[s.position+1]!==10)return"failure";s.position+=2;let p;l!==null?(f??="text/plain",Jlt(f)||(f=""),p=new Vlt([d],l,{type:f})):p=Ult(Buffer.from(d)),VD(Gye(u)),VD(typeof p=="string"&&Gye(p)||Glt(p)),n.push(Hlt(u,p,l))}}o(Klt,"multipartFormDataParser");function Xlt(t,e){let r=null,i=null,n=null,s=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:i,contentType:n,encoding:s};let a=Fb(c=>c!==10&&c!==13&&c!==58,t,e);if(a=Kj(a,!0,!0,c=>c===9||c===32),!qlt.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,Fb(c=>c===32||c===9,t,e),Flt(a)){case"content-disposition":{if(r=i=null,!zD(t,zlt,e)||(e.position+=17,r=Vye(t,e),r===null))return"failure";if(zD(t,jye,e)){let c=e.position+jye.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,i=Vye(t,e),i===null))return"failure"}break}case"content-type":{let c=Fb(u=>u!==10&&u!==13,t,e);c=Kj(c,!1,!0,u=>u===9||u===32),n=Hye(c);break}case"content-transfer-encoding":{let c=Fb(u=>u!==10&&u!==13,t,e);c=Kj(c,!1,!0,u=>u===9||u===32),s=Hye(c);break}default:Fb(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}o(Xlt,"parseMultipartFormDataHeaders");function Vye(t,e){VD(t[e.position-1]===34);let r=Fb(i=>i!==10&&i!==13&&i!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}o(Vye,"parseMultipartFormDataName");function Fb(t,e,r){let i=r.position;for(;i<e.length&&t(e[i]);)++i;return e.subarray(r.position,r.position=i)}o(Fb,"collectASequenceOfBytes");function Kj(t,e,r,i){let n=0,s=t.length-1;if(e)for(;n<t.length&&i(t[n]);)n++;if(r)for(;s>0&&i(t[s]);)s--;return n===0&&s===t.length-1?t:t.subarray(n,s+1)}o(Kj,"removeChars");function zD(t,e,r){if(t.length<e.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!==t[r.position+i])return!1;return!0}o(zD,"bufferStartsWith");zye.exports={multipartFormDataParser:Klt,validateBoundary:Ylt}});var Gb=m((STr,iEe)=>{"use strict";var kv=wt(),{ReadableStreamFrom:Zlt,isBlobLike:Wye,isReadableStreamLike:eft,readableStreamClose:tft,createDeferredPromise:rft,fullyReadBody:ift,extractMimeType:nft,utf8DecodeBytes:Kye}=Ua(),{FormData:Jye}=Pv(),{kState:qb}=Im(),{webidl:sft}=ns(),{Blob:oft}=require("node:buffer"),Xj=require("node:assert"),{isErrored:Xye,isDisturbed:aft}=require("node:stream"),{isArrayBuffer:cft}=require("node:util/types"),{serializeAMimeType:uft}=ta(),{multipartFormDataParser:lft}=$ye(),Zj;try{let t=require("node:crypto");Zj=o(e=>t.randomInt(0,e),"random")}catch{Zj=o(t=>Math.floor(Math.random(t)),"random")}var $D=new TextEncoder;function fft(){}o(fft,"noop");var Zye=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,eEe;Zye&&(eEe=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!aft(e)&&!Xye(e)&&e.cancel("Response object has been garbage collected").catch(fft)}));function tEe(t,e=!1){let r=null;t instanceof ReadableStream?r=t:Wye(t)?r=t.stream():r=new ReadableStream({async pull(u){let l=typeof n=="string"?$D.encode(n):n;l.byteLength&&u.enqueue(l),queueMicrotask(()=>tft(u))},start(){},type:"bytes"}),Xj(eft(r));let i=null,n=null,s=null,a=null;if(typeof t=="string")n=t,a="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)n=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(cft(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(kv.isFormDataLike(t)){let u=`----formdata-undici-0${`${Zj(1e11)}`.padStart(11,"0")}`,l=`--${u}\r
Content-Disposition: form-data`;let f=o(E=>E.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"escape"),h=o(E=>E.replace(/\r?\n|\r/g,`\r
`),"normalizeLinefeeds"),d=[],p=new Uint8Array([13,10]);s=0;let A=!1;for(let[E,y]of t)if(typeof y=="string"){let b=$D.encode(l+`; name="${f(h(E))}"\r
\r
${f(g)}\r
`);h.push(E),s+=E.byteLength}else{let E=VD.encode(`${u}; name="${l(f(y))}"`+(g.name?`; filename="${l(g.name)}"`:"")+`\r
Content-Type: ${g.type||"application/octet-stream"}\r
${h(y)}\r
`);d.push(b),s+=b.byteLength}else{let b=$D.encode(`${l}; name="${f(h(E))}"`+(y.name?`; filename="${f(y.name)}"`:"")+`\r
Content-Type: ${y.type||"application/octet-stream"}\r
\r
`);h.push(E,g,d),typeof g.size=="number"?s+=E.byteLength+g.size+d.byteLength:m=!0}let A=VD.encode(`--${c}--\r
`);h.push(A),s+=A.byteLength,m&&(s=null),n=t,i=async function*(){for(let y of h)y.stream?yield*y.stream():yield y},o=`multipart/form-data; boundary=${c}`}else if($ye(t))n=t,s=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(Pv.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:Xlt(t)}if((typeof n=="string"||Pv.isBuffer(n))&&(s=Buffer.byteLength(n)),i!=null){let c;r=new ReadableStream({async start(){c=i(t)[Symbol.asyncIterator]()},async pull(u){let{value:l,done:f}=await c.next();if(f)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!Kye(r)){let h=new Uint8Array(l);h.byteLength&&u.enqueue(h)}return u.desiredSize>0},async cancel(u){await c.return()},type:"bytes"})}return[{stream:r,source:n,length:s},o]}function fft(t,e=!1){return t instanceof ReadableStream&&(Kj(!Pv.isDisturbed(t),"The body has already been consumed."),Kj(!t.locked,"The stream is locked.")),eEe(t,e)}function hft(t,e){let[r,i]=e.stream.tee();return e.stream=r,{stream:i,length:e.length,source:e.source}}function dft(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function pft(t){return{blob(){return Fb(this,r=>{let i=Jye(this);return i===null?i="":i&&(i=cft(i)),new sft([r],{type:i})},t)},arrayBuffer(){return Fb(this,r=>new Uint8Array(r).buffer,t)},text(){return Fb(this,Yye,t)},json(){return Fb(this,Aft,t)},formData(){return Fb(this,r=>{let i=Jye(this);if(i!==null)switch(i.essence){case"multipart/form-data":{let n=uft(r,i);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let s=new Wye;return s[Ub]=n,s}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),s=new Wye;for(let[o,a]of n)s.append(o,a);return s}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return Fb(this,r=>new Uint8Array(r),t)}}}function mft(t){Object.assign(t.prototype,pft(t))}async function Fb(t,e,r){if(nft.brandCheck(t,r),tEe(t))throw new TypeError("Body is unusable: Body has already been read");dft(t[Ub]);let i=tft(),n=o=>i.reject(o),s=o=>{try{i.resolve(e(o))}catch(a){n(a)}};return t[Ub].body==null?(s(Buffer.allocUnsafe(0)),i.promise):(await rft(t[Ub].body,s,n),i.promise)}function tEe(t){let e=t[Ub].body;return e!=null&&(e.stream.locked||Pv.isDisturbed(e.stream))}function Aft(t){return JSON.parse(Yye(t))}function Jye(t){let e=t[Ub].headersList,r=ift(e);return r==="failure"?null:r}rEe.exports={extractBody:eEe,safelyExtractBody:fft,cloneBody:hft,mixinBody:mft,streamRegistry:Zye,hasFinalizationRegistry:Xye,bodyUnusable:tEe}});var dEe=p((nTr,hEe)=>{"use strict";var We=require("node:assert"),rt=bt(),{channels:iEe}=xb(),Zj=Pj(),{RequestContentLengthMismatchError:ry,ResponseContentLengthMismatchError:gft,RequestAbortedError:uEe,HeadersTimeoutError:yft,HeadersOverflowError:Eft,SocketError:KD,InformationalError:Gb,BodyTimeoutError:bft,HTTPParserError:wft,ResponseExceededMaxSizeError:Cft}=$t(),{kUrl:lEe,kReset:ta,kClient:iV,kParser:ii,kBlocking:Lv,kRunning:Bs,kPending:Ift,kSize:nEe,kWriting:Sm,kQueue:Zu,kNoRef:kv,kKeepAliveDefaultTimeout:Sft,kHostHeader:Bft,kPendingIdx:vft,kRunningIdx:Qc,kError:Lc,kPipelining:JD,kSocket:Hb,kKeepAliveTimeoutValue:XD,kMaxHeadersSize:eV,kKeepAliveMaxTimeout:_ft,kKeepAliveTimeoutThreshold:xft,kHeadersTimeout:Rft,kBodyTimeout:Tft,kStrictContentLength:nV,kMaxRequests:sEe,kCounter:Nft,kMaxResponseSize:Dft,kOnError:Oft,kResume:Im,kHTTPContext:fEe}=Lr(),ef=Zge(),Pft=Buffer.alloc(0),zD=Buffer[Symbol.species],$D=rt.addListener,kft=rt.removeAllListeners,tV;async function Qft(){let t=process.env.JEST_WORKER_ID?Lj():void 0,e;try{e=await WebAssembly.compile(rye())}catch{e=await WebAssembly.compile(t||Lj())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,i,n)=>0,wasm_on_status:(r,i,n)=>{We(nn.ptr===r);let s=i-rf+tf.byteOffset;return nn.onStatus(new zD(tf.buffer,s,n))||0},wasm_on_message_begin:r=>(We(nn.ptr===r),nn.onMessageBegin()||0),wasm_on_header_field:(r,i,n)=>{We(nn.ptr===r);let s=i-rf+tf.byteOffset;return nn.onHeaderField(new zD(tf.buffer,s,n))||0},wasm_on_header_value:(r,i,n)=>{We(nn.ptr===r);let s=i-rf+tf.byteOffset;return nn.onHeaderValue(new zD(tf.buffer,s,n))||0},wasm_on_headers_complete:(r,i,n,s)=>(We(nn.ptr===r),nn.onHeadersComplete(i,!!n,!!s)||0),wasm_on_body:(r,i,n)=>{We(nn.ptr===r);let s=i-rf+tf.byteOffset;return nn.onBody(new zD(tf.buffer,s,n))||0},wasm_on_message_complete:r=>(We(nn.ptr===r),nn.onMessageComplete()||0)}})}var rV=null,sV=Qft();sV.catch();var nn=null,tf=null,WD=0,rf=null,Lft=0,Qv=1,jb=2|Qv,YD=4|Qv,oV=8|Lft,aV=class{constructor(e,r,{exports:i}){We(Number.isFinite(e[eV])&&e[eV]>0),this.llhttp=i,this.ptr=this.llhttp.llhttp_alloc(ef.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= Line truncated
`;if(typeof n=="string"?A+=`host: ${n}\r
`:A+=t[Bft],s?A+=`connection: upgrade\r
`);d.push(b,y,p),typeof y.size=="number"?s+=b.byteLength+y.size+p.byteLength:A=!0}let g=$D.encode(`--${u}--\r
`);d.push(g),s+=g.byteLength,A&&(s=null),n=t,i=o(async function*(){for(let E of d)E.stream?yield*E.stream():yield E},"action"),a=`multipart/form-data; boundary=${u}`}else if(Wye(t))n=t,s=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(kv.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:Zlt(t)}if((typeof n=="string"||kv.isBuffer(n))&&(s=Buffer.byteLength(n)),i!=null){let u;r=new ReadableStream({async start(){u=i(t)[Symbol.asyncIterator]()},async pull(l){let{value:f,done:h}=await u.next();if(h)queueMicrotask(()=>{l.close(),l.byobRequest?.respond(0)});else if(!Xye(r)){let d=new Uint8Array(f);d.byteLength&&l.enqueue(d)}return l.desiredSize>0},async cancel(l){await u.return()},type:"bytes"})}return[{stream:r,source:n,length:s},a]}o(tEe,"extractBody");function hft(t,e=!1){return t instanceof ReadableStream&&(Xj(!kv.isDisturbed(t),"The body has already been consumed."),Xj(!t.locked,"The stream is locked.")),tEe(t,e)}o(hft,"safelyExtractBody");function dft(t,e){let[r,i]=e.stream.tee();return e.stream=r,{stream:i,length:e.length,source:e.source}}o(dft,"cloneBody");function pft(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}o(pft,"throwIfAborted");function mft(t){return{blob(){return Ub(this,r=>{let i=Yye(this);return i===null?i="":i&&(i=uft(i)),new oft([r],{type:i})},t)},arrayBuffer(){return Ub(this,r=>new Uint8Array(r).buffer,t)},text(){return Ub(this,Kye,t)},json(){return Ub(this,gft,t)},formData(){return Ub(this,r=>{let i=Yye(this);if(i!==null)switch(i.essence){case"multipart/form-data":{let n=lft(r,i);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let s=new Jye;return s[qb]=n,s}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),s=new Jye;for(let[a,c]of n)s.append(a,c);return s}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return Ub(this,r=>new Uint8Array(r),t)}}}o(mft,"bodyMixinMethods");function Aft(t){Object.assign(t.prototype,mft(t))}o(Aft,"mixinBody");async function Ub(t,e,r){if(sft.brandCheck(t,r),rEe(t))throw new TypeError("Body is unusable: Body has already been read");pft(t[qb]);let i=rft(),n=o(a=>i.reject(a),"errorSteps"),s=o(a=>{try{i.resolve(e(a))}catch(c){n(c)}},"successSteps");return t[qb].body==null?(s(Buffer.allocUnsafe(0)),i.promise):(await ift(t[qb].body,s,n),i.promise)}o(Ub,"consumeBody");function rEe(t){let e=t[qb].body;return e!=null&&(e.stream.locked||kv.isDisturbed(e.stream))}o(rEe,"bodyUnusable");function gft(t){return JSON.parse(Kye(t))}o(gft,"parseJSONFromBytes");function Yye(t){let e=t[qb].headersList,r=nft(e);return r==="failure"?null:r}o(Yye,"bodyMimeType");iEe.exports={extractBody:tEe,safelyExtractBody:hft,cloneBody:dft,mixinBody:Aft,streamRegistry:eEe,hasFinalizationRegistry:Zye,bodyUnusable:rEe}});var pEe=m((vTr,dEe)=>{"use strict";var Je=require("node:assert"),it=wt(),{channels:nEe}=Rb(),eV=kj(),{RequestContentLengthMismatchError:iy,ResponseContentLengthMismatchError:yft,RequestAbortedError:lEe,HeadersTimeoutError:Eft,HeadersOverflowError:bft,SocketError:ZD,InformationalError:Hb,BodyTimeoutError:wft,HTTPParserError:Cft,ResponseExceededMaxSizeError:Ift}=Wt(),{kUrl:fEe,kReset:ra,kClient:nV,kParser:ni,kBlocking:Mv,kRunning:vs,kPending:Sft,kSize:sEe,kWriting:Bm,kQueue:el,kNoRef:Qv,kKeepAliveDefaultTimeout:Bft,kHostHeader:vft,kPendingIdx:_ft,kRunningIdx:Lc,kError:Mc,kPipelining:KD,kSocket:jb,kKeepAliveTimeoutValue:eO,kMaxHeadersSize:tV,kKeepAliveMaxTimeout:xft,kKeepAliveTimeoutThreshold:Rft,kHeadersTimeout:Tft,kBodyTimeout:Nft,kStrictContentLength:sV,kMaxRequests:oEe,kCounter:Dft,kMaxResponseSize:Oft,kOnError:Pft,kResume:Sm,kHTTPContext:hEe}=Mr(),tf=eye(),kft=Buffer.alloc(0),WD=Buffer[Symbol.species],JD=it.addListener,Qft=it.removeAllListeners,rV;async function Lft(){let t=process.env.JEST_WORKER_ID?Mj():void 0,e;try{e=await WebAssembly.compile(iye())}catch{e=await WebAssembly.compile(t||Mj())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:o((r,i,n)=>0,"wasm_on_url"),wasm_on_status:o((r,i,n)=>{Je(sn.ptr===r);let s=i-nf+rf.byteOffset;return sn.onStatus(new WD(rf.buffer,s,n))||0},"wasm_on_status"),wasm_on_message_begin:o(r=>(Je(sn.ptr===r),sn.onMessageBegin()||0),"wasm_on_message_begin"),wasm_on_header_field:o((r,i,n)=>{Je(sn.ptr===r);let s=i-nf+rf.byteOffset;return sn.onHeaderField(new WD(rf.buffer,s,n))||0},"wasm_on_header_field"),wasm_on_header_value:o((r,i,n)=>{Je(sn.ptr===r);let s=i-nf+rf.byteOffset;return sn.onHeaderValue(new WD(rf.buffer,s,n))||0},"wasm_on_header_value"),wasm_on_headers_complete:o((r,i,n,s)=>(Je(sn.ptr===r),sn.onHeadersComplete(i,!!n,!!s)||0),"wasm_on_headers_complete"),wasm_on_body:o((r,i,n)=>{Je(sn.ptr===r);let s=i-nf+rf.byteOffset;return sn.onBody(new WD(rf.buffer,s,n))||0},"wasm_on_body"),wasm_on_message_complete:o(r=>(Je(sn. Line truncated
`;if(typeof n=="string"?g+=`host: ${n}\r
`:g+=t[vft],s?g+=`connection: upgrade\r
upgrade: ${s}\r
`:t[JD]&&!d[ta]?A+=`connection: keep-alive\r
`:A+=`connection: close\r
`,Array.isArray(u))for(let y=0;y<u.length;y+=2){let g=u[y+0],E=u[y+1];if(Array.isArray(E))for(let C=0;C<E.length;C++)A+=`${g}: ${E[C]}\r
`;else A+=`${g}: ${E}\r
`}return iEe.sendHeaders.hasSubscribers&&iEe.sendHeaders.publish({request:e,headers:A,socket:d}),!c||h===0?aEe(m,null,t,e,d,l,A,f):rt.isBuffer(c)?aEe(m,c,t,e,d,l,A,f):rt.isBlobLike(c)?typeof c.stream=="function"?cEe(m,c.stream(),t,e,d,l,A,f):Hft(m,c,t,e,d,l,A,f):rt.isStream(c)?Gft(m,c,t,e,d,l,A,f):rt.isIterable(c)?cEe(m,c,t,e,d,l,A,f):We(!1),!0}function Gft(t,e,r,i,n,s,o,a){We(s!==0||r[Bs]===0,"stream body cannot be pipelined");let c=!1,u=new ZD({abort:t,socket:n,request:i,contentLength:s,client:r,expectsPayload:a,header:o}),l=function(m){if(!c)try{!u.write(m)&&this.pause&&this.pause()}catch(A){rt.destroy(this,A)}},f=function(){c||e.resume&&e.resume()},h=function(){if(queueMicrotask(()=>{e.removeListener("error",d)}),!c){let m=new uEe;queueMicrotask(()=>d(m))}},d=function(m){if(!c){if(c=!0,We(n.destroyed||n[Sm]&&r[Bs]<=1),n.off("drain",f).off("error",d),e.removeListener("data",l).removeListener("end",d).removeListener("close",h),!m)try{u.end()}catch(A){m=A}u.destroy(m),m&&(m.code!=="UND_ERR_INFO"||m.message!=="reset")?rt.destroy(e,m):rt.destroy(e)}};e.on("data",l).on("end",d).on("error",d).on("close",h),e.resume&&e.resume(),n.on("drain",f).on("error",d),e.errorEmitted??e.errored?setImmediate(()=>d(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>d(null)),(e.closeEmitted??e.closed)&&setImmediate(h)}function aEe(t,e,r,i,n,s,o,a){try{e?rt.isBuffer(e)&&(We(s===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${s}\r
`:t[KD]&&!p[ra]?g+=`connection: keep-alive\r
`:g+=`connection: close\r
`,Array.isArray(l))for(let E=0;E<l.length;E+=2){let y=l[E+0],b=l[E+1];if(Array.isArray(b))for(let I=0;I<b.length;I++)g+=`${y}: ${b[I]}\r
`;else g+=`${y}: ${b}\r
`}return nEe.sendHeaders.hasSubscribers&&nEe.sendHeaders.publish({request:e,headers:g,socket:p}),!u||d===0?cEe(A,null,t,e,p,f,g,h):it.isBuffer(u)?cEe(A,u,t,e,p,f,g,h):it.isBlobLike(u)?typeof u.stream=="function"?uEe(A,u.stream(),t,e,p,f,g,h):jft(A,u,t,e,p,f,g,h):it.isStream(u)?Hft(A,u,t,e,p,f,g,h):it.isIterable(u)?uEe(A,u,t,e,p,f,g,h):Je(!1),!0}o(Gft,"writeH1");function Hft(t,e,r,i,n,s,a,c){Je(s!==0||r[vs]===0,"stream body cannot be pipelined");let u=!1,l=new tO({abort:t,socket:n,request:i,contentLength:s,client:r,expectsPayload:c,header:a}),f=o(function(A){if(!u)try{!l.write(A)&&this.pause&&this.pause()}catch(g){it.destroy(this,g)}},"onData"),h=o(function(){u||e.resume&&e.resume()},"onDrain"),d=o(function(){if(queueMicrotask(()=>{e.removeListener("error",p)}),!u){let A=new lEe;queueMicrotask(()=>p(A))}},"onClose"),p=o(function(A){if(!u){if(u=!0,Je(n.destroyed||n[Bm]&&r[vs]<=1),n.off("drain",h).off("error",p),e.removeListener("data",f).removeListener("end",p).removeListener("close",d),!A)try{l.end()}catch(g){A=g}l.destroy(A),A&&(A.code!=="UND_ERR_INFO"||A.message!=="reset")?it.destroy(e,A):it.destroy(e)}},"onFinished");e.on("data",f).on("end",p).on("error",p).on("close",d),e.resume&&e.resume(),n.on("drain",h).on("error",p),e.errorEmitted??e.errored?setImmediate(()=>p(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>p(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}o(Hft,"writeStream");function cEe(t,e,r,i,n,s,a,c){try{e?it.isBuffer(e)&&(Je(s===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${a}content-length: ${s}\r
\r
`,"latin1"),n.write(e),n.uncork(),i.onBodySent(e),!a&&i.reset!==!1&&(n[ta]=!0)):s===0?n.write(`${o}content-length: 0\r
`,"latin1"),n.write(e),n.uncork(),i.onBodySent(e),!c&&i.reset!==!1&&(n[ra]=!0)):s===0?n.write(`${a}content-length: 0\r
\r
`,"latin1"):(We(s===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),i.onRequestSent(),r[Im]()}catch(c){t(c)}}async function Hft(t,e,r,i,n,s,o,a){We(s===e.size,"blob body must have content length");try{if(s!=null&&s!==e.size)throw new ry;let c=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${s}\r
`,"latin1"):(Je(s===null,"no body must not have content length"),n.write(`${a}\r
`,"latin1")),i.onRequestSent(),r[Sm]()}catch(u){t(u)}}o(cEe,"writeBuffer");async function jft(t,e,r,i,n,s,a,c){Je(s===e.size,"blob body must have content length");try{if(s!=null&&s!==e.size)throw new iy;let u=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${a}content-length: ${s}\r
\r
`,"latin1"),n.write(c),n.uncork(),i.onBodySent(c),i.onRequestSent(),!a&&i.reset!==!1&&(n[ta]=!0),r[Im]()}catch(c){t(c)}}async function cEe(t,e,r,i,n,s,o,a){We(s!==0||r[Bs]===0,"iterator body cannot be pipelined");let c=null;function u(){if(c){let h=c;c=null,h()}}let l=()=>new Promise((h,d)=>{We(c===null),n[Lc]?d(n[Lc]):c=h});n.on("close",u).on("drain",u);let f=new ZD({abort:t,socket:n,request:i,contentLength:s,client:r,expectsPayload:a,header:o});try{for await(let h of e){if(n[Lc])throw n[Lc];f.write(h)||await l()}f.end()}catch(h){f.destroy(h)}finally{n.off("close",u).off("drain",u)}}var ZD=class{constructor({abort:e,socket:r,request:i,contentLength:n,client:s,expectsPayload:o,header:a}){this.socket=r,this.request=i,this.contentLength=n,this.client=s,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Sm]=!0}write(e){let{socket:r,request:i,contentLength:n,client:s,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Lc])throw r[Lc];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(n!==null&&o+u>n){if(s[nV])throw new ry;process.emitWarning(new ry)}r.cork(),o===0&&(!a&&i.reset!==!1&&(r[ta]=!0),n===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"):r.write(`${c}content-length: ${n}\r
`,"latin1"),n.write(u),n.uncork(),i.onBodySent(u),i.onRequestSent(),!c&&i.reset!==!1&&(n[ra]=!0),r[Sm]()}catch(u){t(u)}}o(jft,"writeBlob");async function uEe(t,e,r,i,n,s,a,c){Je(s!==0||r[vs]===0,"iterator body cannot be pipelined");let u=null;function l(){if(u){let d=u;u=null,d()}}o(l,"onDrain");let f=o(()=>new Promise((d,p)=>{Je(u===null),n[Mc]?p(n[Mc]):u=d}),"waitForDrain");n.on("close",l).on("drain",l);let h=new tO({abort:t,socket:n,request:i,contentLength:s,client:r,expectsPayload:c,header:a});try{for await(let d of e){if(n[Mc])throw n[Mc];h.write(d)||await f()}h.end()}catch(d){h.destroy(d)}finally{n.off("close",l).off("drain",l)}}o(uEe,"writeIterable");var tO=class{static{o(this,"AsyncWriter")}constructor({abort:e,socket:r,request:i,contentLength:n,client:s,expectsPayload:a,header:c}){this.socket=r,this.request=i,this.contentLength=n,this.client=s,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[Bm]=!0}write(e){let{socket:r,request:i,contentLength:n,client:s,bytesWritten:a,expectsPayload:c,header:u}=this;if(r[Mc])throw r[Mc];if(r.destroyed)return!1;let l=Buffer.byteLength(e);if(!l)return!0;if(n!==null&&a+l>n){if(s[sV])throw new iy;process.emitWarning(new iy)}r.cork(),a===0&&(!c&&i.reset!==!1&&(r[ra]=!0),n===null?r.write(`${u}transfer-encoding: chunked\r
`,"latin1"):r.write(`${u}content-length: ${n}\r
\r
`,"latin1")),n===null&&r.write(`\r
${u.toString(16)}\r
`,"latin1"),this.bytesWritten+=u;let l=r.write(e);return r.uncork(),i.onBodySent(e),l||r[ii].timeout&&r[ii].timeoutType===jb&&r[ii].timeout.refresh&&r[ii].timeout.refresh(),l}end(){let{socket:e,contentLength:r,client:i,bytesWritten:n,expectsPayload:s,header:o,request:a}=this;if(a.onRequestSent(),e[Sm]=!1,e[Lc])throw e[Lc];if(!e.destroyed){if(n===0?s?e.write(`${o}content-length: 0\r
${l.toString(16)}\r
`,"latin1"),this.bytesWritten+=l;let f=r.write(e);return r.uncork(),i.onBodySent(e),f||r[ni].timeout&&r[ni].timeoutType===Vb&&r[ni].timeout.refresh&&r[ni].timeout.refresh(),f}end(){let{socket:e,contentLength:r,client:i,bytesWritten:n,expectsPayload:s,header:a,request:c}=this;if(c.onRequestSent(),e[Bm]=!1,e[Mc])throw e[Mc];if(!e.destroyed){if(n===0?s?e.write(`${a}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):e.write(`${a}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&n!==r){if(i[nV])throw new ry;process.emitWarning(new ry)}e[ii].timeout&&e[ii].timeoutType===jb&&e[ii].timeout.refresh&&e[ii].timeout.refresh(),i[Im]()}}destroy(e){let{socket:r,client:i,abort:n}=this;r[Sm]=!1,e&&(We(i[Bs]<=1,"pipeline should only contain this request"),n(e))}};hEe.exports=Mft});var wEe=p((sTr,bEe)=>{"use strict";var Mc=require("node:assert"),{pipeline:jft}=require("node:stream"),Rt=bt(),{RequestContentLengthMismatchError:cV,RequestAbortedError:pEe,SocketError:Mv,InformationalError:uV}=$t(),{kUrl:eO,kReset:rO,kClient:Vb,kRunning:iO,kPending:Vft,kQueue:Bm,kPendingIdx:lV,kRunningIdx:el,kError:rl,kSocket:wn,kStrictContentLength:zft,kOnError:fV,kMaxConcurrentStreams:EEe,kHTTP2Session:tl,kResume:vm,kSize:$ft,kHTTPContext:Wft}=Lr(),bd=Symbol("open streams"),mEe,AEe=!1,tO;try{tO=require("node:http2")}catch{tO={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Jft,HTTP2_HEADER_METHOD:Yft,HTTP2_HEADER_PATH:Kft,HTTP2_HEADER_SCHEME:Xft,HTTP2_HEADER_CONTENT_LENGTH:Zft,HTTP2_HEADER_EXPECT:eht,HTTP2_HEADER_STATUS:tht}}=tO;function rht(t){let e=[];for(let[r,i]of Object.entries(t))if(Array.isArray(i))for(let n of i)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(i));return e}async function iht(t,e){t[wn]=e,AEe||(AEe=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=tO.connect(t[eO],{createConnection:()=>e,peerMaxConcurrentStreams:t[EEe]});r[bd]=0,r[Vb]=t,r[wn]=e,Rt.addListener(r,"error",sht),Rt.addListener(r,"frameError",oht),Rt.addListener(r,"end",aht),Rt.addListener(r,"goaway",cht),Rt.addListener(r,"close",function(){let{[Vb]:n}=this,{[wn]:s}=n,o=this[wn][rl]||this[rl]||new Mv("closed",Rt.getSocketInfo(s));if(n[tl]=null,n.destroyed){Mc(n[Vft]===0);let a=n[Bm].splice(n[el]);for(let c=0;c<a.length;c++){let u=a[c];Rt.errorRequest(n,u,o)}}}),r.unref(),t[tl]=r,e[tl]=r,Rt.addListener(e,"error",function(n){Mc(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[rl]=n,this[Vb][fV](n)}),Rt.addListener(e,"end",function(){Rt.destroy(this,new Mv("other side closed",Rt.getSocketInfo(this)))}),Rt.addListener(e,"close",function(){let n=this[rl]||new Mv("closed",Rt.getSocketInfo(this));t[wn]=null,this[tl]!=null&&this[tl].destroy(n),t[lV]=t[el],Mc(t[iO]===0),t.emit("disconnect",t[eO],[t],n),t[vm]()});let i=!1;return e.on("close",()=>{i=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return lht(t,...n)},resume(){nht(t)},destroy(n,s){i?queueMicrotask(s):e.destroy(n).on("close",s)},get destroyed(){return e.destroyed},busy(){return!1}}}function nht(t){let e=t[wn];e?.destroyed===!1&&(t[$ft]===0&&t[EEe]===0?(e.unref(),t[tl].unref()):(e.ref(),t[tl].ref()))}function sht(t){Mc(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[wn][rl]=t,this[Vb][fV](t)}function oht(t,e,r){if(r===0){let i=new uV(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[wn][rl]=i,this[Vb][fV](i)}}function aht(){let t=new Mv("other side closed",Rt.getSocketInfo(this[wn]));this.destroy(t),Rt.destroy(this[wn],t)}function cht(t){let e=this[rl]||new Mv(`HTTP/2: "GOAWAY" frame received with code ${t}`,Rt.getSocketInfo(this)),r=this[Vb];if(r[wn]=null,r[Wft]=null,this[tl]!=null&&(this[tl].destroy(e),this[tl]=null),Rt.destroy(this[wn],e),r[el]<r[Bm].length){let i=r[Bm][r[el]];r[Bm][r[el]++]=null,Rt.errorRequest(r,i,e),r[lV]=r[el]}Mc(r[iO]===0),r.emit("disconnect",r[eO],[r],e),r[vm]()}function uht(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function lht(t,e){let r=t[tl],{method:i,path:n,host:s,upgrade:o,expectContinue:a,signal:c,headers:u}=e,{body:l}=e;if(o)return Rt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let f={};for(let S=0;S<u.length;S+=2){let N=u[S+0],L=u[S+1];if(Array.isArray(L))for(let T=0;T<L.length;T++)f[N]?f[N]+=`,${L[T]}`:f[N]=L[T];else f[N]=L}let h,{hostname:d,port:m}=t[eO];f[Jft]=s||`${d}${m?`:${m}`:""}`,f[Yft]=i;let A=S=>{e.aborted||e.completed||(S=S||new pEe,Rt.errorRequest(t,e,S),h!=null&&Rt.destroy(h,S),Rt.destroy(l,S),t[Bm][t[el]++]=null,t[vm]())};try{e.onConnect(A)}catch(S){Rt.errorRequest(t,e,S)}if(e.aborted)return!1;if(i==="CONNECT")return r.ref(),h=r.request(f,{endStream:!1,signal:c}),h.id&&!h.pending?(e.onUpgrade(null,null,h),++r[bd],t[Bm][t[el]++]=null):h.once("ready",()=>{e.onUpgrade(null,null,h),++r[bd],t[Bm][t[el]++]=null}),h.once("close",()=>{r[bd]-=1,r[bd]===0&&r.unref()}),!0;f[Kft]=n,f[Xft]="https";let y=i==="PUT"||i==="POST"||i==="PATCH";l&&typeof l.read=="function"&&l.read(0);let g=Rt.bodyLength(l);if(Rt.isFormDataLike(l)){mEe??=qb().extractBody;let[S,N]=mEe(l);f["content-type"]=N,l=S.stream,g=S.length}if(g==null&&(g=e.contentLength),(g===0||!y)&&(g=null),uht(i)&&g>0&&e.contentLength!=null&&e.contentLength!==g){if(t[zft])return Rt.errorRequest(t,e,new cV),!1;process.emitWarning(new cV)}g!=null&&(Mc(l,"no body must not have content length"),f[Zft]=`${g}`),r.ref();let E=i==="GET"||i==="HEAD"||l===null;return a?(f[eht]="100-continue",h=r.request(f,{endStream:E,signa Line truncated
`,this[Qht]=c??3e5,this[kht]=n??3e5,this[Lht]=E??!0,this[Mht]=S,this[mV]=L,this[xm]=null,this[Hht]=j>-1?j:-1,this[Vht]=M??100,this[Si]=null,this[il]=[],this[Cd]=0,this[nl]=0,this[Gv]=J=>gV(this,J),this[jht]=J=>OEe(this,J)}get pipelining(){return this[aO]}set pipelining(e){this[aO]=e,this[Gv](!0)}get[Vv](){return this[il].length-this[nl]}get[jv](){return this[nl]-this[Cd]}get[Hv](){return this[il].length-this[Cd]}get[xht](){return!!this[Si]&&!this[$b]&&!this[Si].destroyed}get[pV](){return!!(this[Si]?.busy(null)||this[Hv]>=(DEe(this)||1)||this[Vv]>0)}[_ht](e){PEe(this),this.once("connect",e)}[Ght](e,r){let i=e.origin||this[sf].origin,n=new wht(i,e,r);return this[il].push(n),this[ny]||(iy.bodyLength(n.body)==null&&iy.isIterable(n.body)?(this[ny]=1,queueMicrotask(()=>gV(this))):this[Gv](!0)),this[ny]&&this[Rm]!==2&&this[pV]&&(this[Rm]=2),this[Rm]<2}async[Uht](){return new Promise(e=>{this[Hv]?this[xm]=e:e(null)})}async[qht](e){return new Promise(r=>{let i=this[il].splice(this[nl]);for(let s=0;s<i.length;s++){let o=i[s];iy.errorRequest(this,o,e)}let n=()=>{this[xm]&&(this[xm](),this[xm]=null),r(null)};this[Si]?(this[Si].destroy(e,n),this[Si]=null):queueMicrotask(n),this[Gv]()})}},Wht=oO();function OEe(t,e){if(t[jv]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){wd(t[nl]===t[Cd]);let r=t[il].splice(t[Cd]);for(let i=0;i<r.length;i++){let n=r[i];iy.errorRequest(t,n,e)}wd(t[Hv]===0)}}async function PEe(t){wd(!t[$b]),wd(!t[Si]);let{host:e,hostname:r,protocol:i,port:n}=t[sf];if(r[0]==="["){let s=r.indexOf("]");wd(s!==-1);let o=r.substring(1,s);wd(NEe.isIP(o)),r=o}t[$b]=!0,zb.beforeConnect.hasSubscribers&&zb.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:i,port:n,version:t[Si]?.version,servername:t[_m],localAddress:t[qv]},connector:t[Uv]});try{let s=await new Promise((o,a)=>{t[Uv]({host:e,hostname:r,protocol:i,port:n,servername:t[_m],localAddress:t[qv]},(c,u)=>{c?a(c):o(u)})});if(t.destroyed){iy.destroy(s.on("error",REe),new Sht);return}wd(s);try{t[Si]=s.alpnProtocol==="h2"?await $ht(t,s):await zht(t,s)}catch(o){throw s.destroy().on("error",REe),o}t[$b]=!1,s[Fht]=0,s[mV]=t[mV],s[vht]=t,s[Tht]=null,zb.connected.hasSubscribers&&zb.connected.publish({connectParams:{host:e,hostname:r,protocol:i,port:n,version:t[Si]?.version,servername:t[_m],localAddress:t[qv]},connector:t[Uv],socket:s}),t.emit("connect",t[sf],[t])}catch(s){if(t.destroyed)return;if(t[$b]=!1,zb.connectError.hasSubscribers&&zb.connectError.publish({connectParams:{host:e,hostname:r,protocol:i,port:n,version:t[Si]?.version,servername:t[_m],localAddress:t[qv]},connector:t[Uv],error:s}),s.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(wd(t[jv]===0);t[Vv]>0&&t[il][t[nl]].servername===t[_m];){let o=t[il][t[nl]++];iy.errorRequest(t,o,s)}else OEe(t,s);t.emit("connectionError",t[sf],[t],s)}t[Gv]()}function TEe(t){t[Rm]=0,t.emit("drain",t[sf],[t])}function gV(t,e){t[ny]!==2&&(t[ny]=2,Jht(t,e),t[ny]=0,t[Cd]>256&&(t[il].splice(0,t[Cd]),t[nl]-=t[Cd],t[Cd]=0))}function Jht(t,e){for(;;){if(t.destroyed){wd(t[Vv]===0);return}if(t[xm]&&!t[Hv]){t[xm](),t[xm]=null;return}if(t[Si]&&t[Si].resume(),t[pV])t[Rm]=2;else if(t[Rm]===2){e?(t[Rm]=1,queueMicrotask(()=>TEe(t))):TEe(t);continue}if(t[Vv]===0||t[jv]>=(DEe(t)||1))return;let r=t[il][t[nl]];if(t[sf].protocol==="https:"&&t[_m]!==r.servername){if(t[jv]>0)return;t[_m]=r.servername,t[Si]?.destroy(new Iht("servername changed"),()=>{t[Si]=null,gV(t)})}if(t[$b])return;if(!t[Si]){PEe(t);return}if(t[Si].destroyed||t[Si].busy(r))return;!r.aborted&&t[Si].write(r)?t[nl]++:t[il].splice(t[nl],1)}}kEe.exports=AV});var yV=p((lTr,QEe)=>{"use strict";var cO=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)}};QEe.exports=class{constructor(){this.head=this.tail=new cO}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new cO),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var MEe=p((fTr,LEe)=>{var{kFree:Yht,kConnected:Kht,kPending:Xht,kQueued:Zht,kRunning:edt,kSize:tdt}=Lr(),sy=Symbol("pool"),EV=class{constructor(e){this[sy]=e}get connected(){return this[sy][Kht]}get free(){return this[sy][Yht]}get pending(){return this[sy][Xht]}get queued(){return this[sy][Zht]}get running(){return this[sy][edt]}get size(){return this[sy][tdt]}};LEe.exports=EV});var BV=p((hTr,WEe)=>{"use strict";var rdt=Db(),idt=yV(),{kConnected:bV,kSize:FEe,kRunning:UEe,kPending:qEe,kQueued:zv,kBusy:ndt,kFree:sdt,kUrl:odt,kClose:adt,kDestroy:cdt,kDispatch:udt}=Lr(),ldt=MEe(),ra=Symbol("clients"),ao=Symbol("needDrain"),$v=Symbol("queue"),wV=Symbol("closed resolve"),CV=Symbol("onDrain"),GEe=Symbol("onConnect"),HEe=Symbol("onDisconnect"),jEe=Symbol("onConnec Line truncated
`,"latin1"),r!==null&&n!==r){if(i[sV])throw new iy;process.emitWarning(new iy)}e[ni].timeout&&e[ni].timeoutType===Vb&&e[ni].timeout.refresh&&e[ni].timeout.refresh(),i[Sm]()}}destroy(e){let{socket:r,client:i,abort:n}=this;r[Bm]=!1,e&&(Je(i[vs]<=1,"pipeline should only contain this request"),n(e))}};dEe.exports=Fft});var CEe=m((xTr,wEe)=>{"use strict";var Fc=require("node:assert"),{pipeline:Vft}=require("node:stream"),Tt=wt(),{RequestContentLengthMismatchError:uV,RequestAbortedError:mEe,SocketError:Fv,InformationalError:lV}=Wt(),{kUrl:rO,kReset:nO,kClient:zb,kRunning:sO,kPending:zft,kQueue:vm,kPendingIdx:fV,kRunningIdx:tl,kError:il,kSocket:Cn,kStrictContentLength:$ft,kOnError:hV,kMaxConcurrentStreams:bEe,kHTTP2Session:rl,kResume:_m,kSize:Wft,kHTTPContext:Jft}=Mr(),wd=Symbol("open streams"),AEe,gEe=!1,iO;try{iO=require("node:http2")}catch{iO={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Yft,HTTP2_HEADER_METHOD:Kft,HTTP2_HEADER_PATH:Xft,HTTP2_HEADER_SCHEME:Zft,HTTP2_HEADER_CONTENT_LENGTH:eht,HTTP2_HEADER_EXPECT:tht,HTTP2_HEADER_STATUS:rht}}=iO;function iht(t){let e=[];for(let[r,i]of Object.entries(t))if(Array.isArray(i))for(let n of i)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(i));return e}o(iht,"parseH2Headers");async function nht(t,e){t[Cn]=e,gEe||(gEe=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=iO.connect(t[rO],{createConnection:o(()=>e,"createConnection"),peerMaxConcurrentStreams:t[bEe]});r[wd]=0,r[zb]=t,r[Cn]=e,Tt.addListener(r,"error",oht),Tt.addListener(r,"frameError",aht),Tt.addListener(r,"end",cht),Tt.addListener(r,"goaway",uht),Tt.addListener(r,"close",function(){let{[zb]:n}=this,{[Cn]:s}=n,a=this[Cn][il]||this[il]||new Fv("closed",Tt.getSocketInfo(s));if(n[rl]=null,n.destroyed){Fc(n[zft]===0);let c=n[vm].splice(n[tl]);for(let u=0;u<c.length;u++){let l=c[u];Tt.errorRequest(n,l,a)}}}),r.unref(),t[rl]=r,e[rl]=r,Tt.addListener(e,"error",function(n){Fc(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[il]=n,this[zb][hV](n)}),Tt.addListener(e,"end",function(){Tt.destroy(this,new Fv("other side closed",Tt.getSocketInfo(this)))}),Tt.addListener(e,"close",function(){let n=this[il]||new Fv("closed",Tt.getSocketInfo(this));t[Cn]=null,this[rl]!=null&&this[rl].destroy(n),t[fV]=t[tl],Fc(t[sO]===0),t.emit("disconnect",t[rO],[t],n),t[_m]()});let i=!1;return e.on("close",()=>{i=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return fht(t,...n)},resume(){sht(t)},destroy(n,s){i?queueMicrotask(s):e.destroy(n).on("close",s)},get destroyed(){return e.destroyed},busy(){return!1}}}o(nht,"connectH2");function sht(t){let e=t[Cn];e?.destroyed===!1&&(t[Wft]===0&&t[bEe]===0?(e.unref(),t[rl].unref()):(e.ref(),t[rl].ref()))}o(sht,"resumeH2");function oht(t){Fc(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Cn][il]=t,this[zb][hV](t)}o(oht,"onHttp2SessionError");function aht(t,e,r){if(r===0){let i=new lV(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Cn][il]=i,this[zb][hV](i)}}o(aht,"onHttp2FrameError");function cht(){let t=new Fv("other side closed",Tt.getSocketInfo(this[Cn]));this.destroy(t),Tt.destroy(this[Cn],t)}o(cht,"onHttp2SessionEnd");function uht(t){let e=this[il]||new Fv(`HTTP/2: "GOAWAY" frame received with code ${t}`,Tt.getSocketInfo(this)),r=this[zb];if(r[Cn]=null,r[Jft]=null,this[rl]!=null&&(this[rl].destroy(e),this[rl]=null),Tt.destroy(this[Cn],e),r[tl]<r[vm].length){let i=r[vm][r[tl]];r[vm][r[tl]++]=null,Tt.errorRequest(r,i,e),r[fV]=r[tl]}Fc(r[sO]===0),r.emit("disconnect",r[rO],[r],e),r[_m]()}o(uht,"onHTTP2GoAway");function lht(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o(lht,"shouldSendContentLength");function fht(t,e){let r=t[rl],{method:i,path:n,host:s,upgrade:a,expectContinue:c,signal:u,headers:l}=e,{body:f}=e;if(a)return Tt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let h={};for(let B=0;B<l.length;B+=2){let D=l[B+0],M=l[B+1];if(Array.isArray(M))for(let N=0;N<M.length;N++)h[D]?h[D]+=`,${M[N]}`:h[D]=M[N];else h[D]=M}let d,{hostname:p,port:A}=t[rO];h[Yft]=s||`${p}${A?`:${A}`:""}`,h[Kft]=i;let g=o(B=>{e.aborted||e.completed||(B=B||new mEe,Tt.errorRequest(t,e,B),d!=null&&Tt.destroy(d,B),Tt.destroy(f,B),t[vm][t[tl]++]=null,t[_m]())},"abort");try{e.onConnect(g)}catch(B){Tt.errorRequest(t,e,B)}if(e.aborted)return!1;if(i==="CONNECT")return r.ref(),d=r.request(h,{endStream:!1,signal:u}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[wd],t[vm][t[tl]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[wd],t[vm][t[tl]++]=null}),d.once("close",()=>{r[wd]-=1,r[wd]===0&&r.unref()}),!0;h[Xft]=n,h[Zft]="https";let E=i==="PUT"||i==="POST"||i==="PATCH";f&&typeof f.read=="function"&&f.read(0);let y=Tt.bodyLength(f);if(Tt.isFormDataLike(f)){AEe??=Gb().extractBody;let[B,D]=AEe(f);h["content-type"]=D,f=B.stream,y=B.length}if(y==null&&(y=e.contentLength),(y===0||!E)&&(y=null),lht(i)&&y>0&&e.contentLength!=null&&e.contentLength!==y){if(t[$ft])return Tt.err Line truncated
`,this[Lht]=u??3e5,this[Qht]=n??3e5,this[Mht]=b??!0,this[Fht]=B,this[AV]=M,this[Rm]=null,this[jht]=V>-1?V:-1,this[zht]=F??100,this[Bi]=null,this[nl]=[],this[Id]=0,this[sl]=0,this[Hv]=Y=>yV(this,Y),this[Vht]=Y=>PEe(this,Y)}get pipelining(){return this[uO]}set pipelining(e){this[uO]=e,this[Hv](!0)}get[zv](){return this[nl].length-this[sl]}get[Vv](){return this[sl]-this[Id]}get[jv](){return this[nl].length-this[Id]}get[Rht](){return!!this[Bi]&&!this[Wb]&&!this[Bi].destroyed}get[mV](){return!!(this[Bi]?.busy(null)||this[jv]>=(OEe(this)||1)||this[zv]>0)}[xht](e){kEe(this),this.once("connect",e)}[Hht](e,r){let i=e.origin||this[of].origin,n=new Cht(i,e,r);return this[nl].push(n),this[sy]||(ny.bodyLength(n.body)==null&&ny.isIterable(n.body)?(this[sy]=1,queueMicrotask(()=>yV(this))):this[Hv](!0)),this[sy]&&this[Tm]!==2&&this[mV]&&(this[Tm]=2),this[Tm]<2}async[qht](){return new Promise(e=>{this[jv]?this[Rm]=e:e(null)})}async[Ght](e){return new Promise(r=>{let i=this[nl].splice(this[sl]);for(let s=0;s<i.length;s++){let a=i[s];ny.errorRequest(this,a,e)}let n=o(()=>{this[Rm]&&(this[Rm](),this[Rm]=null),r(null)},"callback");this[Bi]?(this[Bi].destroy(e,n),this[Bi]=null):queueMicrotask(n),this[Hv]()})}},Jht=cO();function PEe(t,e){if(t[Vv]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Cd(t[sl]===t[Id]);let r=t[nl].splice(t[Id]);for(let i=0;i<r.length;i++){let n=r[i];ny.errorRequest(t,n,e)}Cd(t[jv]===0)}}o(PEe,"onError");async function kEe(t){Cd(!t[Wb]),Cd(!t[Bi]);let{host:e,hostname:r,protocol:i,port:n}=t[of];if(r[0]==="["){let s=r.indexOf("]");Cd(s!==-1);let a=r.substring(1,s);Cd(DEe.isIP(a)),r=a}t[Wb]=!0,$b.beforeConnect.hasSubscribers&&$b.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:i,port:n,version:t[Bi]?.version,servername:t[xm],localAddress:t[Gv]},connector:t[qv]});try{let s=await new Promise((a,c)=>{t[qv]({host:e,hostname:r,protocol:i,port:n,servername:t[xm],localAddress:t[Gv]},(u,l)=>{u?c(u):a(l)})});if(t.destroyed){ny.destroy(s.on("error",TEe),new Bht);return}Cd(s);try{t[Bi]=s.alpnProtocol==="h2"?await Wht(t,s):await $ht(t,s)}catch(a){throw s.destroy().on("error",TEe),a}t[Wb]=!1,s[Uht]=0,s[AV]=t[AV],s[_ht]=t,s[Nht]=null,$b.connected.hasSubscribers&&$b.connected.publish({connectParams:{host:e,hostname:r,protocol:i,port:n,version:t[Bi]?.version,servername:t[xm],localAddress:t[Gv]},connector:t[qv],socket:s}),t.emit("connect",t[of],[t])}catch(s){if(t.destroyed)return;if(t[Wb]=!1,$b.connectError.hasSubscribers&&$b.connectError.publish({connectParams:{host:e,hostname:r,protocol:i,port:n,version:t[Bi]?.version,servername:t[xm],localAddress:t[Gv]},connector:t[qv],error:s}),s.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Cd(t[Vv]===0);t[zv]>0&&t[nl][t[sl]].servername===t[xm];){let a=t[nl][t[sl]++];ny.errorRequest(t,a,s)}else PEe(t,s);t.emit("connectionError",t[of],[t],s)}t[Hv]()}o(kEe,"connect");function NEe(t){t[Tm]=0,t.emit("drain",t[of],[t])}o(NEe,"emitDrain");function yV(t,e){t[sy]!==2&&(t[sy]=2,Yht(t,e),t[sy]=0,t[Id]>256&&(t[nl].splice(0,t[Id]),t[sl]-=t[Id],t[Id]=0))}o(yV,"resume");function Yht(t,e){for(;;){if(t.destroyed){Cd(t[zv]===0);return}if(t[Rm]&&!t[jv]){t[Rm](),t[Rm]=null;return}if(t[Bi]&&t[Bi].resume(),t[mV])t[Tm]=2;else if(t[Tm]===2){e?(t[Tm]=1,queueMicrotask(()=>NEe(t))):NEe(t);continue}if(t[zv]===0||t[Vv]>=(OEe(t)||1))return;let r=t[nl][t[sl]];if(t[of].protocol==="https:"&&t[xm]!==r.servername){if(t[Vv]>0)return;t[xm]=r.servername,t[Bi]?.destroy(new Sht("servername changed"),()=>{t[Bi]=null,yV(t)})}if(t[Wb])return;if(!t[Bi]){kEe(t);return}if(t[Bi].destroyed||t[Bi].busy(r))return;!r.aborted&&t[Bi].write(r)?t[sl]++:t[nl].splice(t[sl],1)}}o(Yht,"_resume");QEe.exports=gV});var EV=m((LTr,LEe)=>{"use strict";var lO=class{static{o(this,"FixedCircularBuffer")}constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};LEe.exports=class{static{o(this,"FixedQueue")}constructor(){this.head=this.tail=new lO}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new lO),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var FEe=m((FTr,MEe)=>{var{kFree:Kht,kConnected:Xht,kPending:Zht,kQueued:edt,kRunning:tdt,kSize:rdt}=Mr(),oy=Symbol("pool"),bV=class{static{o(this,"PoolStats")}constructor(e){this[oy]=e}get connected(){return this[oy][Xht]}get free(){return this[oy][Kht]}get pending(){return this[oy][Zht]}get queued(){return this[oy][edt]}get running(){return this[oy][tdt]}get size(){return this[oy][rdt]}};MEe.exports=bV});var vV=m((qTr,JEe)=>{"use strict";var idt=Ob(),ndt=EV(),{kConnected:wV,kSize:UEe,kRunning:qEe,kPending:GEe,kQueued:$v,kBusy:sdt,kFree:odt,kUrl:adt,kClose:cdt,kDestroy:udt,kDispatch:ldt}=Mr(),fd Line truncated
${i.count} ${i.noun} ${i.is} pending:
${e.format(r)}
`.trim())}};ewe.exports=Bz});var vO=p((UTr,swe)=>{"use strict";var rwe=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Qmt}=$t(),Lmt=Yb();nwe()===void 0&&iwe(new Lmt);function iwe(t){if(!t||typeof t.dispatch!="function")throw new Qmt("Argument agent must implement Agent");Object.defineProperty(globalThis,rwe,{value:t,writable:!0,enumerable:!1,configurable:!1})}function nwe(){return globalThis[rwe]}swe.exports={setGlobalDispatcher:iwe,getGlobalDispatcher:nwe}});var _O=p((GTr,owe)=>{"use strict";owe.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 cwe=p((HTr,awe)=>{"use strict";var Mmt=sO();awe.exports=t=>{let e=t?.maxRedirections;return r=>function(n,s){let{maxRedirections:o=e,...a}=n;if(!o)return r(n,s);let c=new Mmt(r,o,n,s);return r(a,c)}}});var lwe=p((jTr,uwe)=>{"use strict";var Fmt=AO();uwe.exports=t=>e=>function(i,n){return e(i,new Fmt({...i,retryOptions:{...t,...i.retryOptions}},{handler:n,dispatch:e}))}});var hwe=p((VTr,fwe)=>{"use strict";var Umt=bt(),{InvalidArgumentError:qmt,RequestAbortedError:Gmt}=$t(),Hmt=_O(),vz=class extends Hmt{#e=1024*1024;#t=null;#i=!1;#r=!1;#n=0;#s=null;#l=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new qmt("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#l=r}onConnect(e){this.#t=e,this.#l.onConnect(this.#u.bind(this))}#u(e){this.#r=!0,this.#s=e}onHeaders(e,r,i,n){let o=Umt.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new Gmt(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#l.onHeaders(e,r,i,n)}onError(e){this.#i||(e=this.#s??e,this.#l.onError(e))}onData(e){return this.#n=this.#n+e.length,this.#n>=this.#e&&(this.#i=!0,this.#r?this.#l.onError(this.#s):this.#l.onComplete([])),!0}onComplete(e){if(!this.#i){if(this.#r){this.#l.onError(this.reason);return}this.#l.onComplete(e)}}};function jmt({maxSize:t}={maxSize:1024*1024}){return e=>function(i,n){let{dumpMaxSize:s=t}=i,o=new vz({maxSize:s},n);return e(i,o)}}fwe.exports=jmt});var mwe=p((zTr,pwe)=>{"use strict";var{isIP:Vmt}=require("node:net"),{lookup:zmt}=require("node:dns"),$mt=_O(),{InvalidArgumentError:ow,InformationalError:Wmt}=$t(),dwe=Math.pow(2,31)-1,_z=class{#e=0;#t=0;#i=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#n}get full(){return this.#i.size===this.#t}runLookup(e,r,i){let n=this.#i.get(e.hostname);if(n==null&&this.full){i(null,e.origin);return}let s={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,s,(o,a)=>{if(o||a==null||a.length===0){i(o??new Wmt("No DNS entries found"));return}this.setRecords(e,a);let c=this.#i.get(e.hostname),u=this.pick(e,c,s.affinity),l;typeof u.port=="number"?l=`:${u.port}`:e.port!==""?l=`:${e.port}`:l="",i(null,`${e.protocol}//${u.family===6?`[${u.address}]`:u.address}${l}`)});else{let o=this.pick(e,n,s.affinity);if(o==null){this.#i.delete(e.hostname),this.runLookup(e,r,i);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",i(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,i){zmt(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(n,s)=>{if(n)return i(n);let o=new Map;for(let a of s)o.set(`${a.address}:${a.family}`,a);i(null,o.values())})}#n(e,r,i){let n=null,{records:s,offset:o}=r,a;if(this.dualStack?(i==null&&(o==null||o===dwe?(r.offset=0,i=4):(r.offset++,i=(r.offset&1)===1?6:4)),s[i]!=null&&s[i].ips.length>0?a=s[i]:a=s[i===4?6:4]):a=s[i],a==null||a.ips.length===0)return n;a.offset==null||a.offset===dwe?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,i)):n}setRecords(e,r){let i=Date.now(),n={records:{4:null,6:null}};for(let s of r){s.timestamp=i,typeof s.ttl=="number"?s.ttl=Math.min(s.ttl,this.#e):s.ttl=this.#e;let o=n.records[s.family]??{ips:[]};o.ips.push(s),n.records[s.family]=o}this.#i.set(e.hostname,n)}getHandler(e,r){return new xz(this,e,r)}},xz=class extends $mt{#e=null;#t=null;#i=null;#r=null;#n=null;constructor(e,{origin:r,handler:i,dispatch:n},s){super(i),this.#n=r,this.#r=i,this.#t={...s},this.#e=e,this.#i=n}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#n,this.#t,( Line truncated
${s}`;break;case"retry":WIe(s)&&(r[n]=s);break;case"id":JIe(s)&&(r[n]=s);break;case"event":s.length>0&&(r[n]=s);break}}processEvent(e){e.retry&&WIe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&JIe(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}}};YIe.exports={EventSourceStream:d9}});var sSe=p((INr,nSe)=>{"use strict";var{pipeline:n0t}=require("node:stream"),{fetching:s0t}=o_(),{makeRequest:o0t}=uw(),{webidl:_d}=is(),{EventSourceStream:a0t}=KIe(),{parseMIMEType:c0t}=ea(),{createFastMessageEvent:u0t}=mw(),{isNetworkError:XIe}=n_(),{delay:l0t}=f9(),{kEnumerableProperty:by}=bt(),{environmentSettingsObject:ZIe}=Fa(),eSe=!1,tSe=3e3,E_=0,rSe=1,b_=2,f0t="anonymous",h0t="use-credentials",bw=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#i=!1;#r=E_;#n=null;#s=null;#l;#u;constructor(e,r={}){super(),_d.util.markAsUncloneable(this);let i="EventSource constructor";_d.argumentLengthCheck(arguments,1,i),eSe||(eSe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=_d.converters.USVString(e,i,"url"),r=_d.converters.EventSourceInitDict(r,i,"eventSourceInitDict"),this.#l=r.dispatcher,this.#u={lastEventId:"",reconnectionTime:tSe};let n=ZIe,s;try{s=new URL(e,n.settingsObject.baseUrl),this.#u.origin=s.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=s.href;let o=f0t;r.withCredentials&&(o=h0t,this.#i=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=ZIe.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=o0t(a),this.#a()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#i}#a(){if(this.#r===b_)return;this.#r=E_;let e={request:this.#n,dispatcher:this.#l},r=i=>{XIe(i)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=i=>{if(XIe(i))if(i.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=i.headersList.get("content-type",!0),s=n!==null?c0t(n):"failure",o=s!=="failure"&&s.essence==="text/event-stream";if(i.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=rSe,this.dispatchEvent(new Event("open")),this.#u.origin=i.urlList[i.urlList.length-1].origin;let a=new a0t({eventSourceSettings:this.#u,push:c=>{this.dispatchEvent(u0t(c.type,c.options))}});n0t(i.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=s0t(e)}async#c(){this.#r!==b_&&(this.#r=E_,this.dispatchEvent(new Event("error")),await l0t(this.#u.reconnectionTime),this.#r===E_&&(this.#u.lastEventId.length&&this.#n.headersList.set("last-event-id",this.#u.lastEventId,!0),this.#a()))}close(){_d.brandCheck(this,t),this.#r!==b_&&(this.#r=b_,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}},iSe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:E_,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:rSe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:b_,writable:!1}};Object.defineProperties(bw,iSe);Object.defineProperties(bw.prototype,iSe);Object.defineProperties(bw.prototype,{close:by,onerror:by,onmessage:by,onopen:by,readyState:by,url:by,withCredentials:by});_d.converters.EventSourceInitDict=_d.dictionaryConverter([{key:"withCredentials",converter:_d.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:_d.converters.any}]);nSe.exports={EventSource:bw,defaultReconnectionTime:tSe}});var Um=p((SNr,Ke)=>{"use strict";var d0t=Wb(),oSe=Sv(),p0t=Jb(),m0t=i0e(),A0t=Yb(),g0t=MV(),y0t=_0e(),E0t=O0e(),aSe=$t(),pP=bt(),{InvalidArgumentError:dP}=aSe,ww=Ebe(),b0t=vv(),w0t=Ez(),C0t=twe(),I0t=Cz(),S0t=oz(),B0t=AO(),{getGlobalDispatcher:cSe,setGlobalDispatcher:v0t}=vO(),_0t=_O(),x0t=sO(),R0t=oO();Object.assign(oSe.prototype,ww);Ke.exports.Dispatcher=oSe;Ke.exports.Client=d0t;Ke.exports.Pool=p0t;Ke.exports.BalancedPool=m0t;Ke.exports.Agent=A0t;Ke.exports.ProxyAgent=g0t;Ke.exports.EnvHttpProxyAgent=y0t;Ke.e Line truncated
%s`,N,N,E,i);var L=E.type==="*"?E$:E.type==="?"?y$:"\\"+E.type;n=!0,i=i.slice(0,E.reStart)+L+"\\("+N}m(),s&&(i+="\\\\");var T=!1;switch(i.charAt(0)){case"[":case".":case"(":T=!0}for(var j=a.length-1;j>-1;j--){var D=a[j],V=i.slice(0,D.reStart),M=i.slice(D.reStart,D.reEnd-8),Z=i.slice(D.reEnd-8,D.reEnd),J=i.slice(D.reEnd);Z+=J;var Ne=V.split("(").length-1,he=J;for(A=0;A<Ne;A++)he=he.replace(/\)[+*?]?/,"");J=he;var ke="";J===""&&e!==MP&&(ke="$");var X=V+M+J+ke+Z;i=X}if(i!==""&&n&&(i="(?=.)"+i),T&&(i=h+i),e===MP)return[i,n];if(!n)return WIt(t);var Re=r.nocase?"i":"";try{var Ce=new RegExp("^"+i+"$",Re)}catch{return new RegExp("$.")}return Ce._glob=t,Ce._src=i,Ce}Ya.makeRe=function(t,e){return new ss(t,e||{}).makeRe()};ss.prototype.makeRe=$It;function $It(){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?E$:e.dot?FIt:UIt,i=e.nocase?"i":"",n=t.map(function(s){return s.map(function(o){return o===b$?r:typeof o=="string"?JIt(o):o._src}).join("\\/")}).join("|");n="^(?:"+n+")$",this.negate&&(n="^(?!"+n+").*$");try{this.regexp=new RegExp(n,i)}catch{this.regexp=!1}return this.regexp}Ya.match=function(t,e,r){r=r||{};var i=new ss(e,r);return t=t.filter(function(n){return i.match(n)}),i.options.nonull&&!t.length&&t.push(e),t};ss.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 i=this.options;U_.sep!=="/"&&(e=e.split(U_.sep).join("/")),e=e.split(l_e),this.debug(this.pattern,"split",e);var n=this.set;this.debug(this.pattern,"set",n);var s,o;for(o=e.length-1;o>=0&&(s=e[o],!s);o--);for(o=0;o<n.length;o++){var a=n[o],c=e;i.matchBase&&a.length===1&&(c=[s]);var u=this.matchOne(c,a,r);if(u)return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate};ss.prototype.matchOne=function(t,e,r){var i=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var n=0,s=0,o=t.length,a=e.length;n<o&&s<a;n++,s++){this.debug("matchOne loop");var c=e[s],u=t[n];if(this.debug(e,c,u),c===!1)return!1;if(c===b$){this.debug("GLOBSTAR",[e,c,u]);var l=n,f=s+1;if(f===a){for(this.debug("** at the end");n<o;n++)if(t[n]==="."||t[n]===".."||!i.dot&&t[n].charAt(0)===".")return!1;return!0}for(;l<o;){var h=t[l];if(this.debug(`
globstar while`,t,l,e,f,h),this.matchOne(t.slice(l),e.slice(f),r))return this.debug("globstar found match!",l,o,h),!0;if(h==="."||h===".."||!i.dot&&h.charAt(0)==="."){this.debug("dot detected!",t,l,e,f);break}this.debug("globstar swallow a segment, and continue"),l++}return!!(r&&(this.debug(`
>>> no match, partial?`,t,l,e,f),l===o))}var d;if(typeof c=="string"?(d=u===c,this.debug("string match",c,u,d)):(d=u.match(c),this.debug("pattern match",c,u,d)),!d)return!1}if(n===o&&s===a)return!0;if(n===o)return r;if(s===a)return n===o-1&&t[n]==="";throw new Error("wtf?")};function WIt(t){return t.replace(/\\(.)/g,"$1")}function JIt(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Pw=p((CDr,g_e)=>{"use strict";var iSt="2.0.0",nSt=Number.MAX_SAFE_INTEGER||9007199254740991,sSt=16,oSt=250,aSt=["major","premajor","minor","preminor","patch","prepatch","prerelease"];g_e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:sSt,MAX_SAFE_BUILD_LENGTH:oSt,MAX_SAFE_INTEGER:nSt,RELEASE_TYPES:aSt,SEMVER_SPEC_VERSION:iSt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var H_=p((IDr,y_e)=>{"use strict";var cSt=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};y_e.exports=cSt});var kw=p((pf,E_e)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:C$,MAX_SAFE_BUILD_LENGTH:uSt,MAX_LENGTH:lSt}=Pw(),fSt=H_();pf=E_e.exports={};var hSt=pf.re=[],dSt=pf.safeRe=[],Ae=pf.src=[],pSt=pf.safeSrc=[],ge=pf.t={},mSt=0,I$="[a-zA-Z0-9-]",ASt=[["\\s",1],["\\d",lSt],[I$,uSt]],gSt=t=>{for(let[e,r]of ASt)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},ot=(t,e,r)=>{let i=gSt(e),n=mSt++;fSt(t,n,e),ge[t]=n,Ae[n]=e,pSt[n]=i,hSt[n]=new RegExp(e,r?"g":void 0),dSt[n]=new RegExp(i,r?"g":void 0)};ot("NUMERICIDENTIFIER","0|[1-9]\\d*");ot("NUMERICIDENTIFIERLOOSE","\\d+");ot("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${I$}*`);ot("MAINVERSION",`(${Ae[ge.NUMERICIDENTIFIER]})\\.(${Ae[ge.NUMERICIDENTIFIER]})\\.(${Ae[ge.NUMERICIDENTIFIER]})`);ot("MAINVERSIONLOOSE",`(${Ae[ge.NUMERICIDENTIFIERLOOSE]})\\.(${Ae[ge.NUMERICIDENTIFIERLOOSE]})\\.(${Ae[ge.NUMERICIDENTIFIERLOOSE]})`);ot("PRERELEASEIDENTIFIER",`(?:${Ae[ge.NONNUMERICIDENTIFIER]}|${Ae[ge.NUMERICIDENTIFIER]})`);ot("PRERELEASEIDENTIFIERLOOSE",`(?:${Ae[ge.NONNUMERICIDENTIFIER]}|${Ae[ge.NUMERICIDENTIFIERLOOSE]})`);ot("PRERELEASE",`(?:-(${Ae[ge.PRERELEASEIDENTIFIER]}(?:\\.${Ae[ge.PRERELEASEIDENTIFIER]})*))`);ot("PRERELEASELOOSE",`(?:-?(${Ae[ge.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${Ae[ge.PRERELEASEIDENTIFIERLOOSE]})*))`);ot("BUILDIDENTIFIER",`${I$}+`);ot("BUILD",`(?:\\+(${Ae[ge.BUILDIDENTIFIER]}(?:\\.${Ae[ge.BUILDIDENTIFIER]})*))`);ot("FULLPLAIN",`v?${Ae[ge.MAINVERSION]}${Ae[ge.PRERELEASE]}?${Ae[ge.BUILD]}?`);ot("FULL",`^${Ae[ge.FULLPLAIN]}$`);ot("LOOSEPLAIN",`[v=\\s]*${Ae[ge.MAINVERSIONLOOSE]}${Ae[ge.PRERELEASELOOSE]}?${Ae[ge.BUILD]}?`);ot("LOOSE",`^${Ae[ge.LOOSEPLAIN]}$`);ot("GTLT","((?:<|>)?=?)");ot("XRANGEIDENTIFIERLOOSE",`${Ae[ge.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);ot("XRANGEIDENTIFIER",`${Ae[ge.NUMERICIDENTIFIER]}|x|X|\\*`);ot("XRANGEPLAIN",`[v=\\s]*(${Ae[ge.XRANGEIDENTIFIER]})(?:\\.(${Ae[ge.XRANGEIDENTIFIER]})(?:\\.(${Ae[ge.XRANGEIDENTIFIER]})(?:${Ae[ge.PRERELEASE]})?${Ae[ge.BUILD]}?)?)?`);ot("XRANGEPLAINLOOSE",`[v=\\s]*(${Ae[ge.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Ae[ge.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Ae[ge.XRANGEIDENTIFIERLOOSE]})(?:${Ae[ge.PRERELEASELOOSE]})?${Ae[ge.BUILD]}?)?)?`);ot("XRANGE",`^${Ae[ge.GTLT]}\\s*${Ae[ge.XRANGEPLAIN]}$`);ot("XRANGELOOSE",`^${Ae[ge.GTLT]}\\s*${Ae[ge.XRANGEPLAINLOOSE]}$`);ot("COERCEPLAIN",`(^|[^\\d])(\\d{1,${C$}})(?:\\.(\\d{1,${C$}}))?(?:\\.(\\d{1,${C$}}))?`);ot("COERCE",`${Ae[ge.COERCEPLAIN]}(?:$|[^\\d])`);ot("COERCEFULL",Ae[ge.COERCEPLAIN]+`(?:${Ae[ge.PRERELEASE]})?(?:${Ae[ge.BUILD]})?(?:$|[^\\d])`);ot("COERCERTL",Ae[ge.COERCE],!0);ot("COERCERTLFULL",Ae[ge.COERCEFULL],!0);ot("LONETILDE","(?:~>?)");ot("TILDETRIM",`(\\s*)${Ae[ge.LONETILDE]}\\s+`,!0);pf.tildeTrimReplace="$1~";ot("TILDE",`^${Ae[ge.LONETILDE]}${Ae[ge.XRANGEPLAIN]}$`);ot("TILDELOOSE",`^${Ae[ge.LONETILDE]}${Ae[ge.XRANGEPLAINLOOSE]}$`);ot("LONECARET","(?:\\^)");ot("CARETTRIM",`(\\s*)${Ae[ge.LONECARET]}\\s+`,!0);pf.caretTrimReplace="$1^";ot("CARET",`^${Ae[ge.LONECARET]}${Ae[ge.XRANGEPLAIN]}$`);ot("CARETLOOSE",`^${Ae[ge.LONECARET]}${Ae[ge.XRANGEPLAINLOOSE]}$`);ot("COMPARATORLOOSE",`^${Ae[ge.GTLT]}\\s*(${Ae[ge.LOOSEPLAIN]})$|^$`);ot("COMPARATOR",`^${Ae[ge.GTLT]}\\s*(${Ae[ge.FULLPLAIN]})$|^$`);ot("COMPARATORTRIM",`(\\s*)${Ae[ge.GTLT]}\\s*(${Ae[ge.LOOSEPLAIN]}|${Ae[ge.XRANGEPLAIN]})`,!0);pf.comparatorTrimReplace="$1$2$3";ot("HYPHENRANGE",`^\\s*(${Ae[ge.XRANGEPLAIN]})\\s+-\\s+(${Ae[ge.XRANGEPLAIN]})\\s*$`);ot("HYPHENRANGELOOSE",`^\\s*(${Ae[ge.XRANGEPLAINLOOSE]})\\s+-\\s+(${Ae[ge.XRANGEPLAINLOOSE]})\\s*$`);ot("STAR","(<|>)?=?\\s*\\*");ot("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");ot("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var GP=p((SDr,b_e)=>{"use strict";var ySt=Object.freeze({loose:!0}),ESt=Object.freeze({}),bSt=t=>t?typeof t!="object"?ySt:t:ESt;b_e.exports=bSt});var S$=p((BDr,I_e)=>{"use strict";var w_e=/^[0-9]+$/,C_e=(t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=w_e.test(t),i=w_e.test(e);return r&&i&&(t=+t,e=+e),t===e?0:r&&!i?-1:i&&!r?1:t<e?-1:1},wSt=(t,e)=>C_e(e Line truncated
`.trim())}};twe.exports=vz});var xO=m((FNr,owe)=>{"use strict";var iwe=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Lmt}=Wt(),Mmt=Kb();swe()===void 0&&nwe(new Mmt);function nwe(t){if(!t||typeof t.dispatch!="function")throw new Lmt("Argument agent must implement Agent");Object.defineProperty(globalThis,iwe,{value:t,writable:!0,enumerable:!1,configurable:!1})}o(nwe,"setGlobalDispatcher");function swe(){return globalThis[iwe]}o(swe,"getGlobalDispatcher");owe.exports={setGlobalDispatcher:nwe,getGlobalDispatcher:swe}});var RO=m((GNr,awe)=>{"use strict";awe.exports=class{static{o(this,"DecoratorHandler")}#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var uwe=m((jNr,cwe)=>{"use strict";var Fmt=aO();cwe.exports=t=>{let e=t?.maxRedirections;return r=>o(function(n,s){let{maxRedirections:a=e,...c}=n;if(!a)return r(n,s);let u=new Fmt(r,a,n,s);return r(c,u)},"redirectInterceptor")}});var fwe=m((zNr,lwe)=>{"use strict";var Umt=yO();lwe.exports=t=>e=>o(function(i,n){return e(i,new Umt({...i,retryOptions:{...t,...i.retryOptions}},{handler:n,dispatch:e}))},"retryInterceptor")});var dwe=m((WNr,hwe)=>{"use strict";var qmt=wt(),{InvalidArgumentError:Gmt,RequestAbortedError:Hmt}=Wt(),jmt=RO(),_z=class extends jmt{static{o(this,"DumpHandler")}#e=1024*1024;#t=null;#i=!1;#r=!1;#n=0;#s=null;#l=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new Gmt("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#l=r}onConnect(e){this.#t=e,this.#l.onConnect(this.#u.bind(this))}#u(e){this.#r=!0,this.#s=e}onHeaders(e,r,i,n){let a=qmt.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new Hmt(`Response size (${a}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#l.onHeaders(e,r,i,n)}onError(e){this.#i||(e=this.#s??e,this.#l.onError(e))}onData(e){return this.#n=this.#n+e.length,this.#n>=this.#e&&(this.#i=!0,this.#r?this.#l.onError(this.#s):this.#l.onComplete([])),!0}onComplete(e){if(!this.#i){if(this.#r){this.#l.onError(this.reason);return}this.#l.onComplete(e)}}};function Vmt({maxSize:t}={maxSize:1024*1024}){return e=>o(function(i,n){let{dumpMaxSize:s=t}=i,a=new _z({maxSize:s},n);return e(i,a)},"Intercept")}o(Vmt,"createDumpInterceptor");hwe.exports=Vmt});var Awe=m((YNr,mwe)=>{"use strict";var{isIP:zmt}=require("node:net"),{lookup:$mt}=require("node:dns"),Wmt=RO(),{InvalidArgumentError:aw,InformationalError:Jmt}=Wt(),pwe=Math.pow(2,31)-1,xz=class{static{o(this,"DNSInstance")}#e=0;#t=0;#i=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#n}get full(){return this.#i.size===this.#t}runLookup(e,r,i){let n=this.#i.get(e.hostname);if(n==null&&this.full){i(null,e.origin);return}let s={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,s,(a,c)=>{if(a||c==null||c.length===0){i(a??new Jmt("No DNS entries found"));return}this.setRecords(e,c);let u=this.#i.get(e.hostname),l=this.pick(e,u,s.affinity),f;typeof l.port=="number"?f=`:${l.port}`:e.port!==""?f=`:${e.port}`:f="",i(null,`${e.protocol}//${l.family===6?`[${l.address}]`:l.address}${f}`)});else{let a=this.pick(e,n,s.affinity);if(a==null){this.#i.delete(e.hostname),this.runLookup(e,r,i);return}let c;typeof a.port=="number"?c=`:${a.port}`:e.port!==""?c=`:${e.port}`:c="",i(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${c}`)}}#r(e,r,i){$mt(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(n,s)=>{if(n)return i(n);let a=new Map;for(let c of s)a.set(`${c.address}:${c.family}`,c);i(null,a.values())})}#n(e,r,i){let n=null,{records:s,offset:a}=r,c;if(this.dualStack?(i==null&&(a==null||a===pwe?(r.offset=0,i=4):(r.offset++,i=(r.offset&1)===1?6:4)),s[i]!=null&&s[i].ips.length>0?c=s[i]:c=s[i===4?6:4]):c=s[i],c==null||c.ips.length===0)return n;c.offset==null||c.offset===pwe?c.offset=0:c.offset++;let u=c.offset%c.ips.length;return n=c.ips[u]??null,n==null?n:Date.now()-n.timestamp>n.ttl?(c.ips.splice(u,1),this.pick(e,r,i)):n}setRecords(e,r){let i=Date.now(),n={records:{4:null,6:null}};for(let s of r){s.timestamp=i,typeof s.ttl=="number"?s.ttl=Math.min(s.ttl,this.#e):s.ttl=this.#e;let a=n.records[s.family]??{ips:[]};a.ips.push(s),n.records[s.family]=a}this.#i.set(e.hostname,n)}getHandler(e,r){return new Rz(this,e,r)}},Rz=class extends Wmt{static{o(this,"DNSDispatchHan Line truncated
${s}`;break;case"retry":JIe(s)&&(r[n]=s);break;case"id":YIe(s)&&(r[n]=s);break;case"event":s.length>0&&(r[n]=s);break}}processEvent(e){e.retry&&JIe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&YIe(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}}};KIe.exports={EventSourceStream:p9}});var oSe=m((Z1r,sSe)=>{"use strict";var{pipeline:s0t}=require("node:stream"),{fetching:o0t}=a_(),{makeRequest:a0t}=lw(),{webidl:xd}=ns(),{EventSourceStream:c0t}=XIe(),{parseMIMEType:u0t}=ta(),{createFastMessageEvent:l0t}=Aw(),{isNetworkError:ZIe}=s_(),{delay:f0t}=h9(),{kEnumerableProperty:wy}=wt(),{environmentSettingsObject:eSe}=Ua(),tSe=!1,rSe=3e3,b_=0,iSe=1,w_=2,h0t="anonymous",d0t="use-credentials",ww=class t extends EventTarget{static{o(this,"EventSource")}#e={open:null,error:null,message:null};#t=null;#i=!1;#r=b_;#n=null;#s=null;#l;#u;constructor(e,r={}){super(),xd.util.markAsUncloneable(this);let i="EventSource constructor";xd.argumentLengthCheck(arguments,1,i),tSe||(tSe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=xd.converters.USVString(e,i,"url"),r=xd.converters.EventSourceInitDict(r,i,"eventSourceInitDict"),this.#l=r.dispatcher,this.#u={lastEventId:"",reconnectionTime:rSe};let n=eSe,s;try{s=new URL(e,n.settingsObject.baseUrl),this.#u.origin=s.origin}catch(u){throw new DOMException(u,"SyntaxError")}this.#t=s.href;let a=h0t;r.withCredentials&&(a=d0t,this.#i=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=eSe.settingsObject,c.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],c.cache="no-store",c.initiator="other",c.urlList=[new URL(this.#t)],this.#n=a0t(c),this.#a()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#i}#a(){if(this.#r===w_)return;this.#r=b_;let e={request:this.#n,dispatcher:this.#l},r=o(i=>{ZIe(i)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=i=>{if(ZIe(i))if(i.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=i.headersList.get("content-type",!0),s=n!==null?u0t(n):"failure",a=s!=="failure"&&s.essence==="text/event-stream";if(i.status!==200||a===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=iSe,this.dispatchEvent(new Event("open")),this.#u.origin=i.urlList[i.urlList.length-1].origin;let c=new c0t({eventSourceSettings:this.#u,push:o(u=>{this.dispatchEvent(l0t(u.type,u.options))},"push")});s0t(i.body.stream,c,u=>{u?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=o0t(e)}async#c(){this.#r!==w_&&(this.#r=b_,this.dispatchEvent(new Event("error")),await f0t(this.#u.reconnectionTime),this.#r===b_&&(this.#u.lastEventId.length&&this.#n.headersList.set("last-event-id",this.#u.lastEventId,!0),this.#a()))}close(){xd.brandCheck(this,t),this.#r!==w_&&(this.#r=w_,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}},nSe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:b_,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:iSe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:w_,writable:!1}};Object.defineProperties(ww,nSe);Object.defineProperties(ww.prototype,nSe);Object.defineProperties(ww.prototype,{close:wy,onerror:wy,onmessage:wy,onopen:wy,readyState:wy,url:wy,withCredentials:wy});xd.converters.EventSourceInitDict=xd.dictionaryConverter([{key:"withCredentials",converter:xd.converters.boolean,defaultValue:o(()=>!1,"defaultValue")},{key:"dispatcher",converter:xd.converters.any}]);sSe.exports={EventSource:ww,defaultReconnectionTime:rSe}});var qm=m((t2r,Xe)=>{"use strict";var p0t=Jb(),aSe=Bv(),m0t=Yb(),A0t=n0e(),g0t=Kb(),y0t=FV(),E0t=x0e(),b0t=P0e(),cSe=Wt(),AP=wt(),{InvalidArgumentError:mP}=cSe,Cw=bbe(),w0t=_v(),C0t=bz(),I0t=rwe(),S0t=Iz(),B0t=az(),v0t=yO(),{getGlobalDispatcher:uSe,setGlobalDispatcher:_0t}=xO(),x0t=RO(),R0t=aO(),T0t=cO();Object.assign(aSe.prototype,Cw);Xe.exports.Dispatcher=aSe;Xe.exports.Client=p0t;Xe.exports.Pool=m0t;Xe.exports.BalancedPoo Line truncated
%s`,D,D,b,i);var M=b.type==="*"?b$:b.type==="?"?E$:"\\"+b.type;n=!0,i=i.slice(0,b.reStart)+M+"\\("+D}A(),s&&(i+="\\\\");var N=!1;switch(i.charAt(0)){case"[":case".":case"(":N=!0}for(var V=c.length-1;V>-1;V--){var O=c[V],z=i.slice(0,O.reStart),F=i.slice(O.reStart,O.reEnd-8),ee=i.slice(O.reEnd-8,O.reEnd),Y=i.slice(O.reEnd);ee+=Y;var De=z.split("(").length-1,de=Y;for(g=0;g<De;g++)de=de.replace(/\)[+*?]?/,"");Y=de;var Qe="";Y===""&&e!==UP&&(Qe="$");var Z=z+F+Y+Qe+ee;i=Z}if(i!==""&&n&&(i="(?=.)"+i),N&&(i=d+i),e===UP)return[i,n];if(!n)return JIt(t);var Te=r.nocase?"i":"";try{var Ie=new RegExp("^"+i+"$",Te)}catch{return new RegExp("$.")}return Ie._glob=t,Ie._src=i,Ie}o($It,"parse");Ka.makeRe=function(t,e){return new os(t,e||{}).makeRe()};os.prototype.makeRe=WIt;function WIt(){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?b$:e.dot?UIt:qIt,i=e.nocase?"i":"",n=t.map(function(s){return s.map(function(a){return a===w$?r:typeof a=="string"?YIt(a):a._src}).join("\\/")}).join("|");n="^(?:"+n+")$",this.negate&&(n="^(?!"+n+").*$");try{this.regexp=new RegExp(n,i)}catch{this.regexp=!1}return this.regexp}o(WIt,"makeRe");Ka.match=function(t,e,r){r=r||{};var i=new os(e,r);return t=t.filter(function(n){return i.match(n)}),i.options.nonull&&!t.length&&t.push(e),t};os.prototype.match=o(function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var i=this.options;q_.sep!=="/"&&(e=e.split(q_.sep).join("/")),e=e.split(f_e),this.debug(this.pattern,"split",e);var n=this.set;this.debug(this.pattern,"set",n);var s,a;for(a=e.length-1;a>=0&&(s=e[a],!s);a--);for(a=0;a<n.length;a++){var c=n[a],u=e;i.matchBase&&c.length===1&&(u=[s]);var l=this.matchOne(u,c,r);if(l)return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate},"match");os.prototype.matchOne=function(t,e,r){var i=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var n=0,s=0,a=t.length,c=e.length;n<a&&s<c;n++,s++){this.debug("matchOne loop");var u=e[s],l=t[n];if(this.debug(e,u,l),u===!1)return!1;if(u===w$){this.debug("GLOBSTAR",[e,u,l]);var f=n,h=s+1;if(h===c){for(this.debug("** at the end");n<a;n++)if(t[n]==="."||t[n]===".."||!i.dot&&t[n].charAt(0)===".")return!1;return!0}for(;f<a;){var d=t[f];if(this.debug(`
globstar while`,t,f,e,h,d),this.matchOne(t.slice(f),e.slice(h),r))return this.debug("globstar found match!",f,a,d),!0;if(d==="."||d===".."||!i.dot&&d.charAt(0)==="."){this.debug("dot detected!",t,f,e,h);break}this.debug("globstar swallow a segment, and continue"),f++}return!!(r&&(this.debug(`
>>> no match, partial?`,t,f,e,h),f===a))}var p;if(typeof u=="string"?(p=l===u,this.debug("string match",u,l,p)):(p=l.match(u),this.debug("pattern match",u,l,p)),!p)return!1}if(n===a&&s===c)return!0;if(n===a)return r;if(s===c)return n===a-1&&t[n]==="";throw new Error("wtf?")};function JIt(t){return t.replace(/\\(.)/g,"$1")}o(JIt,"globUnescape");function YIt(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}o(YIt,"regExpEscape")});var kw=m((Rkr,y_e)=>{"use strict";var nSt="2.0.0",sSt=Number.MAX_SAFE_INTEGER||9007199254740991,oSt=16,aSt=250,cSt=["major","premajor","minor","preminor","patch","prepatch","prerelease"];y_e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:oSt,MAX_SAFE_BUILD_LENGTH:aSt,MAX_SAFE_INTEGER:sSt,RELEASE_TYPES:cSt,SEMVER_SPEC_VERSION:nSt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var j_=m((Tkr,E_e)=>{"use strict";var uSt=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};E_e.exports=uSt});var Qw=m((mf,b_e)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:I$,MAX_SAFE_BUILD_LENGTH:lSt,MAX_LENGTH:fSt}=kw(),hSt=j_();mf=b_e.exports={};var dSt=mf.re=[],pSt=mf.safeRe=[],ge=mf.src=[],mSt=mf.safeSrc=[],ye=mf.t={},ASt=0,S$="[a-zA-Z0-9-]",gSt=[["\\s",1],["\\d",fSt],[S$,lSt]],ySt=o(t=>{for(let[e,r]of gSt)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),at=o((t,e,r)=>{let i=ySt(e),n=ASt++;hSt(t,n,e),ye[t]=n,ge[n]=e,mSt[n]=i,dSt[n]=new RegExp(e,r?"g":void 0),pSt[n]=new RegExp(i,r?"g":void 0)},"createToken");at("NUMERICIDENTIFIER","0|[1-9]\\d*");at("NUMERICIDENTIFIERLOOSE","\\d+");at("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${S$}*`);at("MAINVERSION",`(${ge[ye.NUMERICIDENTIFIER]})\\.(${ge[ye.NUMERICIDENTIFIER]})\\.(${ge[ye.NUMERICIDENTIFIER]})`);at("MAINVERSIONLOOSE",`(${ge[ye.NUMERICIDENTIFIERLOOSE]})\\.(${ge[ye.NUMERICIDENTIFIERLOOSE]})\\.(${ge[ye.NUMERICIDENTIFIERLOOSE]})`);at("PRERELEASEIDENTIFIER",`(?:${ge[ye.NONNUMERICIDENTIFIER]}|${ge[ye.NUMERICIDENTIFIER]})`);at("PRERELEASEIDENTIFIERLOOSE",`(?:${ge[ye.NONNUMERICIDENTIFIER]}|${ge[ye.NUMERICIDENTIFIERLOOSE]})`);at("PRERELEASE",`(?:-(${ge[ye.PRERELEASEIDENTIFIER]}(?:\\.${ge[ye.PRERELEASEIDENTIFIER]})*))`);at("PRERELEASELOOSE",`(?:-?(${ge[ye.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${ge[ye.PRERELEASEIDENTIFIERLOOSE]})*))`);at("BUILDIDENTIFIER",`${S$}+`);at("BUILD",`(?:\\+(${ge[ye.BUILDIDENTIFIER]}(?:\\.${ge[ye.BUILDIDENTIFIER]})*))`);at("FULLPLAIN",`v?${ge[ye.MAINVERSION]}${ge[ye.PRERELEASE]}?${ge[ye.BUILD]}?`);at("FULL",`^${ge[ye.FULLPLAIN]}$`);at("LOOSEPLAIN",`[v=\\s]*${ge[ye.MAINVERSIONLOOSE]}${ge[ye.PRERELEASELOOSE]}?${ge[ye.BUILD]}?`);at("LOOSE",`^${ge[ye.LOOSEPLAIN]}$`);at("GTLT","((?:<|>)?=?)");at("XRANGEIDENTIFIERLOOSE",`${ge[ye.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);at("XRANGEIDENTIFIER",`${ge[ye.NUMERICIDENTIFIER]}|x|X|\\*`);at("XRANGEPLAIN",`[v=\\s]*(${ge[ye.XRANGEIDENTIFIER]})(?:\\.(${ge[ye.XRANGEIDENTIFIER]})(?:\\.(${ge[ye.XRANGEIDENTIFIER]})(?:${ge[ye.PRERELEASE]})?${ge[ye.BUILD]}?)?)?`);at("XRANGEPLAINLOOSE",`[v=\\s]*(${ge[ye.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ge[ye.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ge[ye.XRANGEIDENTIFIERLOOSE]})(?:${ge[ye.PRERELEASELOOSE]})?${ge[ye.BUILD]}?)?)?`);at("XRANGE",`^${ge[ye.GTLT]}\\s*${ge[ye.XRANGEPLAIN]}$`);at("XRANGELOOSE",`^${ge[ye.GTLT]}\\s*${ge[ye.XRANGEPLAINLOOSE]}$`);at("COERCEPLAIN",`(^|[^\\d])(\\d{1,${I$}})(?:\\.(\\d{1,${I$}}))?(?:\\.(\\d{1,${I$}}))?`);at("COERCE",`${ge[ye.COERCEPLAIN]}(?:$|[^\\d])`);at("COERCEFULL",ge[ye.COERCEPLAIN]+`(?:${ge[ye.PRERELEASE]})?(?:${ge[ye.BUILD]})?(?:$|[^\\d])`);at("COERCERTL",ge[ye.COERCE],!0);at("COERCERTLFULL",ge[ye.COERCEFULL],!0);at("LONETILDE","(?:~>?)");at("TILDETRIM",`(\\s*)${ge[ye.LONETILDE]}\\s+`,!0);mf.tildeTrimReplace="$1~";at("TILDE",`^${ge[ye.LONETILDE]}${ge[ye.XRANGEPLAIN]}$`);at("TILDELOOSE",`^${ge[ye.LONETILDE]}${ge[ye.XRANGEPLAINLOOSE]}$`);at("LONECARET","(?:\\^)");at("CARETTRIM",`(\\s*)${ge[ye.LONECARET]}\\s+`,!0);mf.caretTrimReplace="$1^";at("CARET",`^${ge[ye.LONECARET]}${ge[ye.XRANGEPLAIN]}$`);at("CARETLOOSE",`^${ge[ye.LONECARET]}${ge[ye.XRANGEPLAINLOOSE]}$`);at("COMPARATORLOOSE",`^${ge[ye.GTLT]}\\s*(${ge[ye.LOOSEPLAIN]})$|^$`);at("COMPARATOR",`^${ge[ye.GTLT]}\\s*(${ge[ye.FULLPLAIN]})$|^$`);at("COMPARATORTRIM",`(\\s*)${ge[ye.GTLT]}\\s*(${ge[ye.LOOSEPLAIN]}|${ge[ye.XRANGEPLAIN]})`,!0);mf.comparatorTrimReplace="$1$2$3";at("HYPHENRANGE",`^\\s*(${ge[ye.XRANGEPLAIN]})\\s+-\\s+(${ge[ye.XRANGEPLAIN]})\\s*$`);at("HYPHENRANGELOOSE",`^\\s*(${ge[ye.XRANGEPLAINLOOSE]})\\s+-\\s+(${ge[ye.XRANGEPLAINLOOSE]})\\s*$`);at("STAR","(<|>)?=?\\s*\\*");at("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");at("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var jP=m((Dkr,w_e)=>{"use strict";var ESt=Object.freeze({loose:!0}),bSt=Object.freeze({}),wSt=o(t=>t?typeof t!="object"?ESt:t:bSt,"parseOptions");w_e.exports=wSt});var B$=m((Pkr,S_e)=>{"use strict";var C_e=/^[0-9]+$/,I_e=o((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=C_e Line truncated
`).join(`
`+s),t.push(n+"m+"+_k.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=oxt()+e+" "+t[0]}function oxt(){return cs.inspectOpts.hideDate?"":new Date().toISOString()+" "}function axt(...t){return process.stderr.write(vk.format(...t)+`
`)}function cxt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function uxt(){return process.env.DEBUG}function lxt(t){t.inspectOpts={};let e=Object.keys(cs.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=cs.inspectOpts[e[r]]}_k.exports=hW()(cs);var{formatters:rTe}=_k.exports;rTe.o=function(t){return this.inspectOpts.colors=this.useColors,vk.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};rTe.O=function(t){return this.inspectOpts.colors=this.useColors,vk.inspect(t,this.inspectOpts)}});var ky=p((GPr,AW)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?AW.exports=KRe():AW.exports=iTe()});var oTe=p(aa=>{"use strict";var fxt=aa&&aa.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=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,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),hxt=aa&&aa.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),nTe=aa&&aa.__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)&&fxt(e,t,r);return hxt(e,t),e};Object.defineProperty(aa,"__esModule",{value:!0});aa.req=aa.json=aa.toBuffer=void 0;var dxt=nTe(require("http")),pxt=nTe(require("https"));async function sTe(t){let e=0,r=[];for await(let i of t)e+=i.length,r.push(i);return Buffer.concat(r,e)}aa.toBuffer=sTe;async function mxt(t){let r=(await sTe(t)).toString("utf8");try{return JSON.parse(r)}catch(i){let n=i;throw n.message+=` (input: ${r})`,n}}aa.json=mxt;function Axt(t,e={}){let i=((typeof t=="string"?t:t.href).startsWith("https:")?pxt:dxt).request(t,e),n=new Promise((s,o)=>{i.once("response",s).once("error",o).end()});return i.then=n.then.bind(n),i}aa.req=Axt});var lTe=p(ec=>{"use strict";var cTe=ec&&ec.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=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,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),gxt=ec&&ec.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),uTe=ec&&ec.__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)&&cTe(e,t,r);return gxt(e,t),e},yxt=ec&&ec.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&cTe(e,t,r)};Object.defineProperty(ec,"__esModule",{value:!0});ec.Agent=void 0;var Ext=uTe(require("net")),aTe=uTe(require("http")),bxt=require("https");yxt(oTe(),ec);var yf=Symbol("AgentBaseInternalState"),gW=class extends aTe.Agent{constructor(e){super(e),this[yf]={}}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(i=>i.indexOf("(https.js:")!==-1||i.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 Ext.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let i=this.sockets[e],n=i.indexOf(r);n!==-1&&(i.splice(n,1),this.totalSocketCount--,i.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?bxt.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,i){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},s=this.getName(n),o=this.incrementSockets(s);Promise.resolve().then(()=>this.connect(e,n)).then(a=>{if(this.decrementSockets(s,o),a instanceof aTe.Agent)try{return a.addRequest(e,n)}catch(c){return i(c)}this[yf].currentSocket=a,super.createSocket(e,r,i)},a=>{this.decrementSockets(s,o),i(a)})}createConnection(){let e=this[yf].currentSocket;if(this[yf].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[yf].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[yf]&&(this[yf].defaultPort=e)}get protocol(){return this[yf].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[yf]&&(this[yf].protocol=e)}};ec.Agent=gW});var fTe=p(Vw=>{"use strict";var wxt=Vw&&Vw.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Vw,"__esModule",{value:!0});Vw.parseProxyResponse=void 0;var Cxt=wxt(ky()),xk=(0,Cxt.default)("https-proxy-agent:parse-proxy-response");function Ixt(t){return new Promise((e,r)=>{let i=0,n=[];function s(){let l=t.read();l?u(l):t.once("readable",s)}function o(){t.removeListener("end",a),t.removeListener("error",c),t.removeListener("readable",s)}function a(){o(),xk("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(l){o(),xk("onerror %o",l),r(l)}function u(l){n.push(l),i+=l.length;let f=Buffer.concat(n,i),h=f.indexOf(`\r
`+s),t.push(n+"m+"+Rk.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=axt()+e+" "+t[0]}o(oxt,"formatArgs");function axt(){return us.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(axt,"getDate");function cxt(...t){return process.stderr.write(xk.format(...t)+`
`)}o(cxt,"log");function uxt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(uxt,"save");function lxt(){return process.env.DEBUG}o(lxt,"load");function fxt(t){t.inspectOpts={};let e=Object.keys(us.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=us.inspectOpts[e[r]]}o(fxt,"init");Rk.exports=dW()(us);var{formatters:iTe}=Rk.exports;iTe.o=function(t){return this.inspectOpts.colors=this.useColors,xk.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};iTe.O=function(t){return this.inspectOpts.colors=this.useColors,xk.inspect(t,this.inspectOpts)}});var Qy=m((wFr,gW)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?gW.exports=XRe():gW.exports=nTe()});var aTe=m(ca=>{"use strict";var hxt=ca&&ca.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),dxt=ca&&ca.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),sTe=ca&&ca.__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)&&hxt(e,t,r);return dxt(e,t),e};Object.defineProperty(ca,"__esModule",{value:!0});ca.req=ca.json=ca.toBuffer=void 0;var pxt=sTe(require("http")),mxt=sTe(require("https"));async function oTe(t){let e=0,r=[];for await(let i of t)e+=i.length,r.push(i);return Buffer.concat(r,e)}o(oTe,"toBuffer");ca.toBuffer=oTe;async function Axt(t){let r=(await oTe(t)).toString("utf8");try{return JSON.parse(r)}catch(i){let n=i;throw n.message+=` (input: ${r})`,n}}o(Axt,"json");ca.json=Axt;function gxt(t,e={}){let i=((typeof t=="string"?t:t.href).startsWith("https:")?mxt:pxt).request(t,e),n=new Promise((s,a)=>{i.once("response",s).once("error",a).end()});return i.then=n.then.bind(n),i}o(gxt,"req");ca.req=gxt});var fTe=m(tc=>{"use strict";var uTe=tc&&tc.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),yxt=tc&&tc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),lTe=tc&&tc.__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)&&uTe(e,t,r);return yxt(e,t),e},Ext=tc&&tc.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&uTe(e,t,r)};Object.defineProperty(tc,"__esModule",{value:!0});tc.Agent=void 0;var bxt=lTe(require("net")),cTe=lTe(require("http")),wxt=require("https");Ext(aTe(),tc);var Ef=Symbol("AgentBaseInternalState"),yW=class extends cTe.Agent{static{o(this,"Agent")}constructor(e){super(e),this[Ef]={}}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(i=>i.indexOf("(https.js:")!==-1||i.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 bxt.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let i=this.sockets[e],n=i.indexOf(r);n!==-1&&(i.splice(n,1),this.totalSocketCount--,i.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?wxt.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,i){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},s=this.getName(n),a=this.incrementSockets(s);Promise.resolve().then(()=>this.connect(e,n)).then(c=>{if(this.decrementSockets(s,a),c instanceof cTe.Agent)try{return c.addRequest(e,n)}catch(u){return i(u)}this[Ef].currentSocket=c,super.createSocket(e,r,i)},c=>{this.decrementSockets(s,a),i(c)})}createConnection(){let e=this[Ef].currentSocket;if(this[Ef].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Ef].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Ef]&&(this[Ef].defaultPort=e)}get protocol(){return this[Ef].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Ef]&&(this[Ef].protocol=e)}};tc.Agent=yW});var hTe=m(zw=>{"use strict";var Cxt=zw&&zw.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(zw,"__esModule",{value:!0});zw.parseProxyResponse=void 0;var Ixt=Cxt(Qy()),Tk=(0,Ixt.default)("https-proxy-agent:parse-proxy-response");function Sxt(t){return new Promise((e,r)=>{let i=0,n=[];function s(){let f=t.read();f?l(f):t.once("readable",s)}o(s,"read");function a(){t.removeListener("end",c),t.removeListener("error",u),t.removeListener("readable",s)}o(a,"cleanup");function c(){a(),Tk("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}o(c,"onend");function u(f){a(),Tk("onerror %o",f),r(f)}o(u,"onerror");function l(f){n.push(f),i+=f.length;let h=Buffer.concat(n,i),d=h.indexOf(`\r
\r
`);if(h===-1){xk("have not received end of HTTP headers yet..."),s();return}let d=f.slice(0,h).toString("ascii").split(`\r
`),m=d.shift();if(!m)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let A=m.split(" "),y=+A[1],g=A.slice(2).join(" "),E={};for(let C of d){if(!C)continue;let S=C.indexOf(":");if(S===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${C}"`));let N=C.slice(0,S).toLowerCase(),L=C.slice(S+1).trimStart(),T=E[N];typeof T=="string"?E[N]=[T,L]:Array.isArray(T)?T.push(L):E[N]=L}xk("got proxy server response: %o %o",m,E),o(),e({connect:{statusCode:y,statusText:g,headers:E},buffered:f})}t.on("error",c),t.on("end",a),s()})}Vw.parseProxyResponse=Ixt});var gTe=p(eu=>{"use strict";var Sxt=eu&&eu.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=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,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),Bxt=eu&&eu.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),mTe=eu&&eu.__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)&&Sxt(e,t,r);return Bxt(e,t),e},ATe=eu&&eu.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(eu,"__esModule",{value:!0});eu.HttpsProxyAgent=void 0;var Rk=mTe(require("net")),hTe=mTe(require("tls")),vxt=ATe(require("assert")),_xt=ATe(ky()),xxt=lTe(),Rxt=require("url"),Txt=fTe(),nx=(0,_xt.default)("https-proxy-agent"),dTe=t=>t.servername===void 0&&t.host&&!Rk.isIP(t.host)?{...t,servername:t.host}:t,Tk=class extends xxt.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Rxt.URL(e):e,this.proxyHeaders=r?.headers??{},nx("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let i=(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?pTe(r,"headers"):null,host:i,port:n}}async connect(e,r){let{proxy:i}=this;if(!r.host)throw new TypeError('No "host" provided');let n;i.protocol==="https:"?(nx("Creating `tls.Socket`: %o",this.connectOpts),n=hTe.connect(dTe(this.connectOpts))):(nx("Creating `net.Socket`: %o",this.connectOpts),n=Rk.connect(this.connectOpts));let s=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=Rk.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`;if(i.username||i.password){let h=`${decodeURIComponent(i.username)}:${decodeURIComponent(i.password)}`;s["Proxy-Authorization"]=`Basic ${Buffer.from(h).toString("base64")}`}s.Host=`${o}:${r.port}`,s["Proxy-Connection"]||(s["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let h of Object.keys(s))a+=`${h}: ${s[h]}\r
`;let c=(0,Txt.parseProxyResponse)(n);n.write(`${a}\r
`);let{connect:u,buffered:l}=await c;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200)return e.once("socket",Nxt),r.secureEndpoint?(nx("Upgrading socket connection to TLS"),hTe.connect({...pTe(dTe(r),"host","path","port"),socket:n})):n;n.destroy();let f=new Rk.Socket({writable:!1});return f.readable=!0,e.once("socket",h=>{nx("Replaying proxy buffer for failed request"),(0,vxt.default)(h.listenerCount("data")>0),h.push(l),h.push(null)}),f}};Tk.protocols=["http","https"];eu.HttpsProxyAgent=Tk;function Nxt(t){t.resume()}function pTe(t,...e){let r={},i;for(i in t)e.includes(i)||(r[i]=t[i]);return r}});var bTe=p(ca=>{"use strict";var Dxt=ca&&ca.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=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,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),Oxt=ca&&ca.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),yTe=ca&&ca.__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)&&Dxt(e,t,r);return Oxt(e,t),e};Object.defineProperty(ca,"__esModule",{value:!0});ca.req=ca.json=ca.toBuffer=void 0;var Pxt=yTe(require("http")),kxt=yTe(require("https"));async function ETe(t){let e=0,r=[];for await(let i of t)e+=i.length,r.push(i);return Buffer.concat(r,e)}ca.toBuffer=ETe;async function Qxt(t){let r=(await ETe(t)).toString("utf8");try{return JSON.parse(r)}catch(i){let n=i;throw n.message+=` (input: ${r})`,n}}ca.json=Qxt;function Lxt(t,e={}){let i=((typeof t=="string"?t:t.href).startsWith("https:")?kxt:Pxt).request(t,e),n=new Promise((s,o)=>{i.once("response",s).once("error",o).end()});return i.then=n.then.bind(n),i}ca.req=Lxt});var sx=p(tc=>{"use strict";var CTe=tc&&tc.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=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,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),Mxt=tc&&tc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ITe=tc&&tc.__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)&&CTe(e,t,r);return Mxt(e,t),e},Fxt=tc&&tc.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&CTe(e,t,r)};Object.defineProperty(tc,"__esModule",{value:!0});tc.Agent=void 0;var Uxt=ITe(require("net")),wTe=ITe(require("http")),qxt=require("https");Fxt(bTe(),tc);var Ef=Symbol("AgentBaseInternalState"),yW=class extends wTe.Agent{constructor(e){super(e),this[Ef]={}}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(i=>i.indexOf("(https.js:")!==-1||i.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 Uxt.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let i=this.sockets[e],n=i.indexOf(r);n!==-1&&(i.splice(n,1),this.totalSocketCount--,i.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?qxt.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,i){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},s=this.getName(n),o=this.incrementSockets(s);Promise.resolve().then(()=>this.connect(e,n)).then(a=>{if(this.decrementSockets(s,o),a instanceof wTe.Agent)return a.addRequest(e,n);this[Ef].currentSocket=a,super.createSocket(e,r,i)},a=>{this.decrementSockets(s,o),i(a)})}createConnection(){let e=this[Ef].currentSocket;if(this[Ef].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Ef].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Ef]&&(this[Ef].defaultPort=e)}get protocol(){return this[Ef].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Ef]&&(this[Ef].protocol=e)}};tc.Agent=yW});var EW=p(tu=>{"use strict";var Gxt=tu&&tu.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=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,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),Hxt=tu&&tu.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),BTe=tu&&tu.__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)&&Gxt(e,t,r);return Hxt(e,t),e},jxt=tu&&tu.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(tu,"__esModule",{value:!0});tu.HttpProxyAgent=void 0;var Vxt=BTe(require("net")),zxt=BTe(require("tls")),$xt=jxt(ky()),Wxt=require("events"),Jxt=sx(),STe=require("url"),zw=(0,$xt.default)("http-proxy-agent"),Nk=class extends Jxt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new STe.URL(e):e,this.proxyHeaders=r?.headers??{},zw("Creating new HttpProxyAgent instance: %o",this.proxy.href);let i=(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?Yxt(r,"headers"):null,host:i,port:n}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:i}=this,n=r.secureEndpoint?"https:":"http:",s=e.getHeader("host")||"localhost",o=`${n}//${s}`,a=new STe.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(i.username||i.password){let u=`${decodeURIComponent(i.username)}:${decodeURIComponent(i.password)}`;c["Proxy-Authorization"]=`Basic ${Buffer.from(u).toString("base64")}`}c["Proxy-Connection"]||(c["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let u of Object.keys(c)){let l=c[u];l&&e.setHeader(u,l)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let i,n;zw("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(zw("Patching connection write() output buffer with updated header"),i=e.outputData[0].data,n=i.indexOf(`\r
`);if(d===-1){Tk("have not received end of HTTP headers yet..."),s();return}let p=h.slice(0,d).toString("ascii").split(`\r
`),A=p.shift();if(!A)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let g=A.split(" "),E=+g[1],y=g.slice(2).join(" "),b={};for(let I of p){if(!I)continue;let B=I.indexOf(":");if(B===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${I}"`));let D=I.slice(0,B).toLowerCase(),M=I.slice(B+1).trimStart(),N=b[D];typeof N=="string"?b[D]=[N,M]:Array.isArray(N)?N.push(M):b[D]=M}Tk("got proxy server response: %o %o",A,b),a(),e({connect:{statusCode:E,statusText:y,headers:b},buffered:h})}o(l,"ondata"),t.on("error",u),t.on("end",c),s()})}o(Sxt,"parseProxyResponse");zw.parseProxyResponse=Sxt});var yTe=m(tu=>{"use strict";var Bxt=tu&&tu.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),vxt=tu&&tu.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ATe=tu&&tu.__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)&&Bxt(e,t,r);return vxt(e,t),e},gTe=tu&&tu.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(tu,"__esModule",{value:!0});tu.HttpsProxyAgent=void 0;var Nk=ATe(require("net")),dTe=ATe(require("tls")),_xt=gTe(require("assert")),xxt=gTe(Qy()),Rxt=fTe(),Txt=require("url"),Nxt=hTe(),sx=(0,xxt.default)("https-proxy-agent"),pTe=o(t=>t.servername===void 0&&t.host&&!Nk.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),Dk=class extends Rxt.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Txt.URL(e):e,this.proxyHeaders=r?.headers??{},sx("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let i=(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?mTe(r,"headers"):null,host:i,port:n}}async connect(e,r){let{proxy:i}=this;if(!r.host)throw new TypeError('No "host" provided');let n;i.protocol==="https:"?(sx("Creating `tls.Socket`: %o",this.connectOpts),n=dTe.connect(pTe(this.connectOpts))):(sx("Creating `net.Socket`: %o",this.connectOpts),n=Nk.connect(this.connectOpts));let s=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=Nk.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
`;if(i.username||i.password){let d=`${decodeURIComponent(i.username)}:${decodeURIComponent(i.password)}`;s["Proxy-Authorization"]=`Basic ${Buffer.from(d).toString("base64")}`}s.Host=`${a}:${r.port}`,s["Proxy-Connection"]||(s["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(s))c+=`${d}: ${s[d]}\r
`;let u=(0,Nxt.parseProxyResponse)(n);n.write(`${c}\r
`);let{connect:l,buffered:f}=await u;if(e.emit("proxyConnect",l),this.emit("proxyConnect",l,e),l.statusCode===200)return e.once("socket",Dxt),r.secureEndpoint?(sx("Upgrading socket connection to TLS"),dTe.connect({...mTe(pTe(r),"host","path","port"),socket:n})):n;n.destroy();let h=new Nk.Socket({writable:!1});return h.readable=!0,e.once("socket",d=>{sx("Replaying proxy buffer for failed request"),(0,_xt.default)(d.listenerCount("data")>0),d.push(f),d.push(null)}),h}};Dk.protocols=["http","https"];tu.HttpsProxyAgent=Dk;function Dxt(t){t.resume()}o(Dxt,"resume");function mTe(t,...e){let r={},i;for(i in t)e.includes(i)||(r[i]=t[i]);return r}o(mTe,"omit")});var wTe=m(ua=>{"use strict";var Oxt=ua&&ua.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),Pxt=ua&&ua.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ETe=ua&&ua.__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)&&Oxt(e,t,r);return Pxt(e,t),e};Object.defineProperty(ua,"__esModule",{value:!0});ua.req=ua.json=ua.toBuffer=void 0;var kxt=ETe(require("http")),Qxt=ETe(require("https"));async function bTe(t){let e=0,r=[];for await(let i of t)e+=i.length,r.push(i);return Buffer.concat(r,e)}o(bTe,"toBuffer");ua.toBuffer=bTe;async function Lxt(t){let r=(await bTe(t)).toString("utf8");try{return JSON.parse(r)}catch(i){let n=i;throw n.message+=` (input: ${r})`,n}}o(Lxt,"json");ua.json=Lxt;function Mxt(t,e={}){let i=((typeof t=="string"?t:t.href).startsWith("https:")?Qxt:kxt).request(t,e),n=new Promise((s,a)=>{i.once("response",s).once("error",a).end()});return i.then=n.then.bind(n),i}o(Mxt,"req");ua.req=Mxt});var ox=m(rc=>{"use strict";var ITe=rc&&rc.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),Fxt=rc&&rc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),STe=rc&&rc.__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)&&ITe(e,t,r);return Fxt(e,t),e},Uxt=rc&&rc.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&ITe(e,t,r)};Object.defineProperty(rc,"__esModule",{value:!0});rc.Agent=void 0;var qxt=STe(require("net")),CTe=STe(require("http")),Gxt=require("https");Uxt(wTe(),rc);var bf=Symbol("AgentBaseInternalState"),EW=class extends CTe.Agent{static{o(this,"Agent")}constructor(e){super(e),this[bf]={}}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(i=>i.indexOf("(https.js:")!==-1||i.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 qxt.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let i=this.sockets[e],n=i.indexOf(r);n!==-1&&(i.splice(n,1),this.totalSocketCount--,i.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?Gxt.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,i){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},s=this.getName(n),a=this.incrementSockets(s);Promise.resolve().then(()=>this.connect(e,n)).then(c=>{if(this.decrementSockets(s,a),c instanceof CTe.Agent)return c.addRequest(e,n);this[bf].currentSocket=c,super.createSocket(e,r,i)},c=>{this.decrementSockets(s,a),i(c)})}createConnection(){let e=this[bf].currentSocket;if(this[bf].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[bf].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[bf]&&(this[bf].defaultPort=e)}get protocol(){return this[bf].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[bf]&&(this[bf].protocol=e)}};rc.Agent=EW});var bW=m(ru=>{"use strict";var Hxt=ru&&ru.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),jxt=ru&&ru.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),vTe=ru&&ru.__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)&&Hxt(e,t,r);return jxt(e,t),e},Vxt=ru&&ru.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ru,"__esModule",{value:!0});ru.HttpProxyAgent=void 0;var zxt=vTe(require("net")),$xt=vTe(require("tls")),Wxt=Vxt(Qy()),Jxt=require("events"),Yxt=ox(),BTe=require("url"),$w=(0,Wxt.default)("http-proxy-agent"),Ok=class extends Yxt.Agent{static{o(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new BTe.URL(e):e,this.proxyHeaders=r?.headers??{},$w("Creating new HttpProxyAgent instance: %o",this.proxy.href);let i=(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?Kxt(r,"headers"):null,host:i,port:n}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:i}=this,n=r.secureEndpoint?"https:":"http:",s=e.getHeader("host")||"localhost",a=`${n}//${s}`,c=new BTe.URL(e.path,a);r.port!==80&&(c.port=String(r.port)),e.path=String(c);let u=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(i.username||i.password){let l=`${decodeURIComponent(i.username)}:${decodeURIComponent(i.password)}`;u["Proxy-Authorization"]=`Basic ${Buffer.from(l).toString("base64")}`}u["Proxy-Connection"]||(u["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let l of Object.keys(u)){let f=u[l];f&&e.setHeader(l,f)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let i,n;$w("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&($w("Patching connection write() output buffer with updated header"),i=e.outputData[0].data,n=i.indexOf(`\r
\r
`)+4,e.outputData[0].data=e._header+i.substring(n),zw("Output buffer: %o",e.outputData[0].data));let s;return this.proxy.protocol==="https:"?(zw("Creating `tls.Socket`: %o",this.connectOpts),s=zxt.connect(this.connectOpts)):(zw("Creating `net.Socket`: %o",this.connectOpts),s=Vxt.connect(this.connectOpts)),await(0,Wxt.once)(s,"connect"),s}};Nk.protocols=["http","https"];tu.HttpProxyAgent=Nk;function Yxt(t,...e){let r={},i;for(i in t)e.includes(i)||(r[i]=t[i]);return r}});var $Te=p(Vk=>{"use strict";Object.defineProperty(Vk,"__esModule",{value:!0});Vk.state=void 0;Vk.state={instrumenterImplementation:void 0}});var lNe=p(Yk=>{"use strict";Object.defineProperty(Yk,"__esModule",{value:!0});Yk.state=void 0;Yk.state={operationRequestMap:new WeakMap}});var G2e=p(lC=>{"use strict";Object.defineProperty(lC,"__esModule",{value:!0});var ADt=require("os"),gDt=require("util");function yDt(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var EDt=yDt(gDt);function bDt(t,...e){process.stderr.write(`${EDt.default.format(t,...e)}${ADt.EOL}`)}var D2e=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,P2e,KK=[],XK=[],mL=[];D2e&&ZK(D2e);var k2e=Object.assign(t=>Q2e(t),{enable:ZK,enabled:eX,disable:wDt,log:bDt});function ZK(t){P2e=t,KK=[],XK=[];let e=/\*/g,r=t.split(",").map(i=>i.trim().replace(e,".*?"));for(let i of r)i.startsWith("-")?XK.push(new RegExp(`^${i.substr(1)}$`)):KK.push(new RegExp(`^${i}$`));for(let i of mL)i.enabled=eX(i.namespace)}function eX(t){if(t.endsWith("*"))return!0;for(let e of XK)if(e.test(t))return!1;for(let e of KK)if(e.test(t))return!0;return!1}function wDt(){let t=P2e||"";return ZK(""),t}function Q2e(t){let e=Object.assign(r,{enabled:eX(t),destroy:CDt,log:k2e.log,namespace:t,extend:IDt});function r(...i){e.enabled&&(i.length>0&&(i[0]=`${t} ${i[0]}`),e.log(...i))}return mL.push(e),e}function CDt(){let t=mL.indexOf(this);return t>=0?(mL.splice(t,1),!0):!1}function IDt(t){let e=Q2e(`${this.namespace}:${t}`);return e.log=this.log,e}var zx=k2e,L2e=new Set,dL=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,AL,gL=zx("azure");gL.log=(...t)=>{zx.log(...t)};var tX=["verbose","info","warning","error"];dL&&(q2e(dL)?M2e(dL):console.error(`AZURE_LOG_LEVEL set to unknown log level '${dL}'; logging is not enabled. Acceptable values: ${tX.join(", ")}.`));function M2e(t){if(t&&!q2e(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${tX.join(",")}`);AL=t;let e=[];for(let r of L2e)U2e(r)&&e.push(r.namespace);zx.enable(e.join(","))}function SDt(){return AL}var O2e={verbose:400,info:300,warning:200,error:100};function BDt(t){let e=gL.extend(t);return F2e(gL,e),{error:pL(e,"error"),warning:pL(e,"warning"),info:pL(e,"info"),verbose:pL(e,"verbose")}}function F2e(t,e){e.log=(...r)=>{t.log(...r)}}function pL(t,e){let r=Object.assign(t.extend(e),{level:e});if(F2e(t,r),U2e(r)){let i=zx.disable();zx.enable(i+","+r.namespace)}return L2e.add(r),r}function U2e(t){return!!(AL&&O2e[t.level]<=O2e[AL])}function q2e(t){return tX.includes(t)}lC.AzureLogger=gL;lC.createClientLogger=BDt;lC.getLogLevel=SDt;lC.setLogLevel=M2e});var nX=p(Wx=>{"use strict";Object.defineProperty(Wx,"__esModule",{value:!0});var fC=new WeakMap,yL=new WeakMap,$x=class t{constructor(){this.onabort=null,fC.set(this,[]),yL.set(this,!1)}get aborted(){if(!yL.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return yL.get(this)}static get none(){return new t}addEventListener(e,r){if(!fC.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");fC.get(this).push(r)}removeEventListener(e,r){if(!fC.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let i=fC.get(this),n=i.indexOf(r);n>-1&&i.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 H2e(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=fC.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),yL.set(t,!0)}var rX=class extends Error{constructor(e){super(e),this.name="AbortError"}},iX=class{constructor(e){if(this._signal=new $x,!!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(){H2e(this._signal)}static timeout(e){let r=new $x,i=setTimeout(H2e,e,r);return typeof i.unref=="function"&&i.unref(),r}};Wx.AbortController=iX;Wx.AbortError=rX;Wx.AbortSignal=$x});var W2e=p(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});var vDt=nX(),fX=require("crypto");function j2e(t,e){let{cleanupBeforeAbort:r,abortSignal:i,abortErrorMsg:n}=e??{};return new Promise((s,o)=>{function a(){o(new vDt.AbortError(n??"The operation was aborted."))}function c(){i?.removeEventListener("abort",u)}function u(){r?.(),c(),a()}if(i?.aborted)return a();try{t(l=>{c(),s(l)},l=>{c(),o(l)})}catch(l){o(l)}i?.addEventListener("abort",u)})}var _Dt="The delay was Line truncated
`)+4,e.outputData[0].data=e._header+i.substring(n),$w("Output buffer: %o",e.outputData[0].data));let s;return this.proxy.protocol==="https:"?($w("Creating `tls.Socket`: %o",this.connectOpts),s=$xt.connect(this.connectOpts)):($w("Creating `net.Socket`: %o",this.connectOpts),s=zxt.connect(this.connectOpts)),await(0,Jxt.once)(s,"connect"),s}};Ok.protocols=["http","https"];ru.HttpProxyAgent=Ok;function Kxt(t,...e){let r={},i;for(i in t)e.includes(i)||(r[i]=t[i]);return r}o(Kxt,"omit")});var WTe=m($k=>{"use strict";Object.defineProperty($k,"__esModule",{value:!0});$k.state=void 0;$k.state={instrumenterImplementation:void 0}});var fNe=m(Xk=>{"use strict";Object.defineProperty(Xk,"__esModule",{value:!0});Xk.state=void 0;Xk.state={operationRequestMap:new WeakMap}});var H2e=m(fC=>{"use strict";Object.defineProperty(fC,"__esModule",{value:!0});var gDt=require("os"),yDt=require("util");function EDt(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}o(EDt,"_interopDefaultLegacy");var bDt=EDt(yDt);function wDt(t,...e){process.stderr.write(`${bDt.default.format(t,...e)}${gDt.EOL}`)}o(wDt,"log");var O2e=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,k2e,XK=[],ZK=[],gL=[];O2e&&eX(O2e);var Q2e=Object.assign(t=>L2e(t),{enable:eX,enabled:tX,disable:CDt,log:wDt});function eX(t){k2e=t,XK=[],ZK=[];let e=/\*/g,r=t.split(",").map(i=>i.trim().replace(e,".*?"));for(let i of r)i.startsWith("-")?ZK.push(new RegExp(`^${i.substr(1)}$`)):XK.push(new RegExp(`^${i}$`));for(let i of gL)i.enabled=tX(i.namespace)}o(eX,"enable");function tX(t){if(t.endsWith("*"))return!0;for(let e of ZK)if(e.test(t))return!1;for(let e of XK)if(e.test(t))return!0;return!1}o(tX,"enabled");function CDt(){let t=k2e||"";return eX(""),t}o(CDt,"disable");function L2e(t){let e=Object.assign(r,{enabled:tX(t),destroy:IDt,log:Q2e.log,namespace:t,extend:SDt});function r(...i){e.enabled&&(i.length>0&&(i[0]=`${t} ${i[0]}`),e.log(...i))}return o(r,"debug"),gL.push(e),e}o(L2e,"createDebugger");function IDt(){let t=gL.indexOf(this);return t>=0?(gL.splice(t,1),!0):!1}o(IDt,"destroy");function SDt(t){let e=L2e(`${this.namespace}:${t}`);return e.log=this.log,e}o(SDt,"extend");var $x=Q2e,M2e=new Set,mL=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,yL,EL=$x("azure");EL.log=(...t)=>{$x.log(...t)};var rX=["verbose","info","warning","error"];mL&&(G2e(mL)?F2e(mL):console.error(`AZURE_LOG_LEVEL set to unknown log level '${mL}'; logging is not enabled. Acceptable values: ${rX.join(", ")}.`));function F2e(t){if(t&&!G2e(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${rX.join(",")}`);yL=t;let e=[];for(let r of M2e)q2e(r)&&e.push(r.namespace);$x.enable(e.join(","))}o(F2e,"setLogLevel");function BDt(){return yL}o(BDt,"getLogLevel");var P2e={verbose:400,info:300,warning:200,error:100};function vDt(t){let e=EL.extend(t);return U2e(EL,e),{error:AL(e,"error"),warning:AL(e,"warning"),info:AL(e,"info"),verbose:AL(e,"verbose")}}o(vDt,"createClientLogger");function U2e(t,e){e.log=(...r)=>{t.log(...r)}}o(U2e,"patchLogMethod");function AL(t,e){let r=Object.assign(t.extend(e),{level:e});if(U2e(t,r),q2e(r)){let i=$x.disable();$x.enable(i+","+r.namespace)}return M2e.add(r),r}o(AL,"createLogger");function q2e(t){return!!(yL&&P2e[t.level]<=P2e[yL])}o(q2e,"shouldEnable");function G2e(t){return rX.includes(t)}o(G2e,"isAzureLogLevel");fC.AzureLogger=EL;fC.createClientLogger=vDt;fC.getLogLevel=BDt;fC.setLogLevel=F2e});var sX=m(Jx=>{"use strict";Object.defineProperty(Jx,"__esModule",{value:!0});var hC=new WeakMap,bL=new WeakMap,Wx=class t{static{o(this,"AbortSignal")}constructor(){this.onabort=null,hC.set(this,[]),bL.set(this,!1)}get aborted(){if(!bL.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return bL.get(this)}static get none(){return new t}addEventListener(e,r){if(!hC.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");hC.get(this).push(r)}removeEventListener(e,r){if(!hC.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let i=hC.get(this),n=i.indexOf(r);n>-1&&i.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 j2e(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=hC.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),bL.set(t,!0)}o(j2e,"abortSignal");var iX=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},nX=class{static{o(this,"AbortController")}constructor(e){if(this._signal=new Wx,!!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(){j2e(this._signal)}static timeout(e){let r=new Wx,i=setTimeout(j2e,e,r);return typeof i.unref=="function"&&i.unref(),r}};Jx.AbortController=nX;Jx.AbortError=iX;Jx.AbortSignal=Wx});var J2e=m(fi=>{"use strict";Object.defineP Line truncated
Polling from: ${r.config.operationLocation}
Operation status: ${l}
Polling status: ${X2e.includes(l)?"Stopped":"Running"}`),l==="succeeded"){let f=o(u,r);if(f!==void 0)return{response:await e(f).catch(Y2e({state:r,stateProxy:i,isOperationError:a})),status:l}}return{response:u,status:l}}async function rDe(t){let{poll:e,state:r,stateProxy:i,options:n,getOperationStatus:s,getResourceLocation:o,getOperationLocation:a,isOperationError:c,withOperationLocation:u,getPollingInterval:l,processResult:f,getError:h,updateState:d,setDelay:m,isDone:A,setErrorAsResult:y}=t,{operationLocation:g}=r.config;if(g!==void 0){let{response:E,status:C}=await tOt({poll:e,getOperationStatus:s,state:r,stateProxy:i,operationLocation:g,getResourceLocation:o,isOperationError:c,options:n});if(eDe({status:C,response:E,state:r,stateProxy:i,isDone:A,processResult:f,getError:h,setErrorAsResult:y}),!X2e.includes(C)){let S=l?.(E);S&&m(S);let N=a?.(E,r);if(N!==void 0){let L=g!==N;r.config.operationLocation=N,u?.(N,L)}else u?.(g,!1)}d?.(r,E)}}function iDe(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}function nDe(t){return t.headers.location}function sDe(t){return t.headers["operation-location"]}function oDe(t){return t.headers["azure-asyncoperation"]}function rOt(t){var e;let{location:r,requestMethod:i,requestPath:n,resourceLocationConfig:s}=t;switch(i){case"PUT":return n;case"DELETE":return;case"PATCH":return(e=o())!==null&&e!==void 0?e:n;default:return o()}function o(){switch(s){case"azure-async-operation":return;case"original-uri":return n;default:return r}}}function aDe(t){let{rawResponse:e,requestMethod:r,requestPath:i,resourceLocationConfig:n}=t,s=sDe(e),o=oDe(e),a=iDe({operationLocation:s,azureAsyncOperation:o}),c=nDe(e),u=r?.toLocaleUpperCase();return a!==void 0?{mode:"OperationLocation",operationLocation:a,resourceLocation:rOt({requestMethod:u,location:c,requestPath:i,resourceLocationConfig:n})}:c!==void 0?{mode:"ResourceLocation",operationLocation:c}:u==="PUT"&&i?{mode:"Body",operationLocation:i}:void 0}function cDe(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 mX(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 Zy.verbose(`LRO: unrecognized operation status: ${e}`),e}}function iOt(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return cDe({status:r,statusCode:t.statusCode})}function nOt(t){var e,r;let{properties:i,provisioningState:n}=(e=t.body)!==null&&e!==void 0?e:{},s=(r=i?.provisioningState)!==null&&r!==void 0?r:n;return cDe({status:s,statusCode:t.statusCode})}function mX(t){return t===202?"running":t<300?"succeeded":"failed"}function uDe({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?sOt(new Date(e)):r*1e3}}function lDe(t){let e=t.flatResponse.error;if(!e){Zy.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){Zy.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 sOt(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}function fDe(t){let{response:e,state:r,operationLocation:i}=t;function n(){var o;switch((o=r.config.metadata)===null||o===void 0?void 0:o.mode){case void 0:return mX(e.rawResponse.statusCode);case"Body":return AX(e,r);default:return"running"}}let s=n();return s==="running"&&i===void 0?"succeeded":s}async function oOt(t){let{stateProxy:e,resourceLocationConfig:r,processResult:i,lro:n,setErrorAsResult:s}=t;return tDe({init:async()=>{let o=await n.sendInitialRequest(),a=aDe({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:i?({flatResponse:o},a)=>i(o,a):({flatResponse:o})=>o,getOperationStatus:fDe,setErrorAsResult:s})}function hDe({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r===void 0?void 0:r.mode){case"OperationLocation":return iDe({operationLocation:sDe(t),azureAsyncOperation:oDe(t)});case"ResourceLocation":return nDe(t);default:return}}function AX({rawResponse:t},e){var r;let i=(r=e.config.metadata)===null||r===void 0?void 0:r.mode;switch(i){case"OperationLocation":return iOt(t);case"ResourceLocation":return mX(t.statusCode);case"Body":return nOt(t);default:throw new Error(`Internal error: Unexpected operation mode: ${i}`)}}function dDe({flatResponse:t},e){if(typeof t=="object"Line truncated
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(n){case 0:o=s,n=1;break;case 1:r[i++]=o<<2|(s&48)>>4,o=s,n=2;break;case 2:r[i++]=(o&15)<<4|(s&60)>>2,o=s,n=3;break;case 3:r[i++]=(o&3)<<6|s,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,i)}gC.base64decode=HOt;function jOt(t){let e="",r=0,i,n=0;for(let s=0;s<t.length;s++)switch(i=t[s],r){case 0:e+=$d[i>>2],n=(i&3)<<4,r=1;break;case 1:e+=$d[n|i>>4],n=(i&15)<<2,r=2;break;case 2:e+=$d[n|i>>6],e+=$d[i&63],r=0;break}return r&&(e+=$d[n],e+="=",r==1&&(e+="=")),e}gC.base64encode=jOt});var GDe=p(LL=>{"use strict";Object.defineProperty(LL,"__esModule",{value:!0});LL.utf8read=void 0;var vX=t=>String.fromCharCode.apply(String,t);function VOt(t){if(t.length<1)return"";let e=0,r=[],i=[],n=0,s,o=t.length;for(;e<o;)s=t[e++],s<128?i[n++]=s:s>191&&s<224?i[n++]=(s&31)<<6|t[e++]&63:s>239&&s<365?(s=((s&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,i[n++]=55296+(s>>10),i[n++]=56320+(s&1023)):i[n++]=(s&15)<<12|(t[e++]&63)<<6|t[e++]&63,n>8191&&(r.push(vX(i)),n=0);return r.length?(n&&r.push(vX(i.slice(0,n))),r.join("")):vX(i.slice(0,n))}LL.utf8read=VOt});var rR=p(Vf=>{"use strict";Object.defineProperty(Vf,"__esModule",{value:!0});Vf.WireType=Vf.mergeBinaryOptions=Vf.UnknownFieldHandler=void 0;var zOt;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,i,n,s,o)=>{(e(i)?i[t.symbol]:i[t.symbol]=[]).push({no:n,wireType:s,data:o})},t.onWrite=(r,i,n)=>{for(let{no:s,wireType:o,data:a}of t.list(i))n.tag(s,o).raw(a)},t.list=(r,i)=>{if(e(r)){let n=r[t.symbol];return i?n.filter(s=>s.no==i):n}return[]},t.last=(r,i)=>t.list(r,i).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(zOt=Vf.UnknownFieldHandler||(Vf.UnknownFieldHandler={}));function $Ot(t,e){return Object.assign(Object.assign({},t),e)}Vf.mergeBinaryOptions=$Ot;var WOt;(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"})(WOt=Vf.WireType||(Vf.WireType={}))});var FL=p(ma=>{"use strict";Object.defineProperty(ma,"__esModule",{value:!0});ma.varint32read=ma.varint32write=ma.int64toString=ma.int64fromString=ma.varint64write=ma.varint64read=void 0;function JOt(){let t=0,e=0;for(let i=0;i<28;i+=7){let n=this.buf[this.pos++];if(t|=(n&127)<<i,(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 i=3;i<=31;i+=7){let n=this.buf[this.pos++];if(e|=(n&127)<<i,(n&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}ma.varint64read=JOt;function YOt(t,e,r){for(let s=0;s<28;s=s+7){let o=t>>>s,a=!(!(o>>>7)&&e==0),c=(a?o|128:o)&255;if(r.push(c),!a)return}let i=t>>>28&15|(e&7)<<4,n=e>>3!=0;if(r.push((n?i|128:i)&255),!!n){for(let s=3;s<31;s=s+7){let o=e>>>s,a=!!(o>>>7),c=(a?o|128:o)&255;if(r.push(c),!a)return}r.push(e>>>31&1)}}ma.varint64write=YOt;var ML=65536*65536;function KOt(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,i=0,n=0;function s(o,a){let c=Number(t.slice(o,a));n*=r,i=i*r+c,i>=ML&&(n=n+(i/ML|0),i=i%ML)}return s(-24,-18),s(-18,-12),s(-12,-6),s(-6),[e,i,n]}ma.int64fromString=KOt;function XOt(t,e){if(e>>>0<=2097151)return""+(ML*e+(t>>>0));let r=t&16777215,i=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,s=r+i*6777216+n*6710656,o=i+n*8147497,a=n*2,c=1e7;s>=c&&(o+=Math.floor(s/c),s%=c),o>=c&&(a+=Math.floor(o/c),o%=c);function u(l,f){let h=l?String(l):"";return f?"0000000".slice(h.length)+h:h}return u(a,0)+u(o,a)+u(s,1)}ma.int64toString=XOt;function ZOt(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)}}ma.varint32write=ZOt;function ePt(){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}ma.varint32read=ePt});var fA=p(lA=>{"use strict";Object.defineProperty(lA,"__esModule",{value:!0});lA.PbLong=lA.PbULong=lA.detectBi=void 0;var iR=FL(),pr;function HDe(){let t=new DataView(new ArrayBuffer(8));pr=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}lA.detectBi=HDe;HDe();function jDe(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var VDe=/^-?[0-9]+$/,qL=4294967296,UL=2147483648,GL=c Line truncated
`)}};hM.RpcError=ZX});var tZ=p(pM=>{"use strict";Object.defineProperty(pM,"__esModule",{value:!0});pM.mergeRpcOptions=void 0;var wOe=Ti();function Ckt(t,e){if(!e)return t;let r={};dM(t,r),dM(e,r);for(let i of Object.keys(e)){let n=e[i];switch(i){case"jsonOptions":r.jsonOptions=wOe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=wOe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},dM(t.meta,r.meta),dM(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}pM.mergeRpcOptions=Ckt;function dM(t,e){if(!t)return;let r=e;for(let[i,n]of Object.entries(t))n instanceof Date?r[i]=new Date(n.getTime()):Array.isArray(n)?r[i]=n.concat():r[i]=n}});var iZ=p(nE=>{"use strict";Object.defineProperty(nE,"__esModule",{value:!0});nE.Deferred=nE.DeferredState=void 0;var Wf;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Wf=nE.DeferredState||(nE.DeferredState={}));var rZ=class{constructor(e=!0){this._state=Wf.PENDING,this._promise=new Promise((r,i)=>{this._resolve=r,this._reject=i}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==Wf.PENDING)throw new Error(`cannot resolve ${Wf[this.state].toLowerCase()}`);this._resolve(e),this._state=Wf.RESOLVED}reject(e){if(this.state!==Wf.PENDING)throw new Error(`cannot reject ${Wf[this.state].toLowerCase()}`);this._reject(e),this._state=Wf.REJECTED}resolvePending(e){this._state===Wf.PENDING&&this.resolve(e)}rejectPending(e){this._state===Wf.PENDING&&this.reject(e)}};nE.Deferred=rZ});var sZ=p(mM=>{"use strict";Object.defineProperty(mM,"__esModule",{value:!0});mM.RpcOutputStreamController=void 0;var COe=iZ(),sE=Ti(),nZ=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 i=r.indexOf(e);i>=0&&r.splice(i,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,i){sE.assert((e?1:0)+(r?1:0)+(i?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),i&&this.notifyComplete()}notifyMessage(e){sE.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){sE.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(){sE.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;sE.assert(e,"bad state"),sE.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 COe.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let i=r.p;sE.assert(i.state==COe.DeferredState.PENDING,"iterator contract broken"),"value"in e?i.resolve(e):i.reject(e),delete r.p}else r.q.push(e)}};mM.RpcOutputStreamController=nZ});var aZ=p(SC=>{"use strict";var Ikt=SC&&SC.__awaiter||function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};Object.defineProperty(SC,"__esModule",{value:!0});SC.UnaryCall=void 0;var oZ=class{constructor(e,r,i,n,s,o,a){this.method=e,this.requestHeaders=r,this.request=i,this.headers=n,this.response=s,this.status=o,this.trailers=a}then(e,r){return this.promiseFinished().then(i=>e?Promise.resolve(e(i)):i,i=>r?Promise.resolve(r(i)):Promise.reject(i))}promiseFinished(){return Ikt(this,void 0,void 0,function*(){let[e,r,i,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:i,trailers:n}})}};SC.UnaryCall=oZ});var uZ=p(BC=>{"use strict";var Skt=BC&&BC.__awaiter||function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};Object.defineProperty(BC,"__esModule",{value:!0});BC.ServerStreamingCall=void 0;var cZ=class{constructor(e Line truncated
Operation status: ${f}
Polling status: ${Z2e.includes(f)?"Stopped":"Running"}`),f==="succeeded"){let h=a(l,r);if(h!==void 0)return{response:await e(h).catch(K2e({state:r,stateProxy:i,isOperationError:c})),status:f}}return{response:l,status:f}}o(rOt,"pollOperationHelper");async function iDe(t){let{poll:e,state:r,stateProxy:i,options:n,getOperationStatus:s,getResourceLocation:a,getOperationLocation:c,isOperationError:u,withOperationLocation:l,getPollingInterval:f,processResult:h,getError:d,updateState:p,setDelay:A,isDone:g,setErrorAsResult:E}=t,{operationLocation:y}=r.config;if(y!==void 0){let{response:b,status:I}=await rOt({poll:e,getOperationStatus:s,state:r,stateProxy:i,operationLocation:y,getResourceLocation:a,isOperationError:u,options:n});if(tDe({status:I,response:b,state:r,stateProxy:i,isDone:g,processResult:h,getError:d,setErrorAsResult:E}),!Z2e.includes(I)){let B=f?.(b);B&&A(B);let D=c?.(b,r);if(D!==void 0){let M=y!==D;r.config.operationLocation=D,l?.(D,M)}else l?.(y,!1)}p?.(r,b)}}o(iDe,"pollOperation");function nDe(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}o(nDe,"getOperationLocationPollingUrl");function sDe(t){return t.headers.location}o(sDe,"getLocationHeader");function oDe(t){return t.headers["operation-location"]}o(oDe,"getOperationLocationHeader");function aDe(t){return t.headers["azure-asyncoperation"]}o(aDe,"getAzureAsyncOperationHeader");function iOt(t){var e;let{location:r,requestMethod:i,requestPath:n,resourceLocationConfig:s}=t;switch(i){case"PUT":return n;case"DELETE":return;case"PATCH":return(e=a())!==null&&e!==void 0?e:n;default:return a()}function a(){switch(s){case"azure-async-operation":return;case"original-uri":return n;default:return r}}o(a,"getDefault")}o(iOt,"findResourceLocation");function cDe(t){let{rawResponse:e,requestMethod:r,requestPath:i,resourceLocationConfig:n}=t,s=oDe(e),a=aDe(e),c=nDe({operationLocation:s,azureAsyncOperation:a}),u=sDe(e),l=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:iOt({requestMethod:l,location:u,requestPath:i,resourceLocationConfig:n})}:u!==void 0?{mode:"ResourceLocation",operationLocation:u}:l==="PUT"&&i?{mode:"Body",operationLocation:i}:void 0}o(cDe,"inferLroMode");function uDe(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 AX(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 eE.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(uDe,"transformStatus");function nOt(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return uDe({status:r,statusCode:t.statusCode})}o(nOt,"getStatus");function sOt(t){var e,r;let{properties:i,provisioningState:n}=(e=t.body)!==null&&e!==void 0?e:{},s=(r=i?.provisioningState)!==null&&r!==void 0?r:n;return uDe({status:s,statusCode:t.statusCode})}o(sOt,"getProvisioningState");function AX(t){return t===202?"running":t<300?"succeeded":"failed"}o(AX,"toOperationStatus");function lDe({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?oOt(new Date(e)):r*1e3}}o(lDe,"parseRetryAfter");function fDe(t){let e=t.flatResponse.error;if(!e){eE.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){eE.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}o(fDe,"getErrorFromResponse");function oOt(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}o(oOt,"calculatePollingIntervalFromDate");function hDe(t){let{response:e,state:r,operationLocation:i}=t;function n(){var a;switch((a=r.config.metadata)===null||a===void 0?void 0:a.mode){case void 0:return AX(e.rawResponse.statusCode);case"Body":return gX(e,r);default:return"running"}}o(n,"helper");let s=n();return s==="running"&&i===void 0?"succeeded":s}o(hDe,"getStatusFromInitialResponse");async function aOt(t){let{stateProxy:e,resourceLocationConfig:r,processResult:i,lro:n,setErrorAsResult:s}=t;return rDe({init:o(async()=>{let a=await n.sendInitialRequest(),c=cDe({rawResponse:a.rawResponse,requestPath:n.requestPath,requestMethod:n.requestMethod,resourceLocationConfig:r});return Object.assign({response:a,operationLocation:c?.operationLocation,resourceLocation:c?.resourceLocation},c?.mode?{metadata:{mode:c.mode}}:{})},"init"),stateProxy:e,processResult:i?({flatResponse:a},c)=>i(a,c):({flatResponse:a})=>a,getOperationStatus:hDe,setErrorAsResult:s})}o(aOt,"initHttpOperation");function dDe({rawResponse:t},e){var r;switchLine truncated
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(n){case 0:a=s,n=1;break;case 1:r[i++]=a<<2|(s&48)>>4,a=s,n=2;break;case 2:r[i++]=(a&15)<<4|(s&60)>>2,a=s,n=3;break;case 3:r[i++]=(a&3)<<6|s,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,i)}o(jOt,"base64decode");yC.base64decode=jOt;function VOt(t){let e="",r=0,i,n=0;for(let s=0;s<t.length;s++)switch(i=t[s],r){case 0:e+=Wd[i>>2],n=(i&3)<<4,r=1;break;case 1:e+=Wd[n|i>>4],n=(i&15)<<2,r=2;break;case 2:e+=Wd[n|i>>6],e+=Wd[i&63],r=0;break}return r&&(e+=Wd[n],e+="=",r==1&&(e+="=")),e}o(VOt,"base64encode");yC.base64encode=VOt});var HDe=m(FL=>{"use strict";Object.defineProperty(FL,"__esModule",{value:!0});FL.utf8read=void 0;var _X=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function zOt(t){if(t.length<1)return"";let e=0,r=[],i=[],n=0,s,a=t.length;for(;e<a;)s=t[e++],s<128?i[n++]=s:s>191&&s<224?i[n++]=(s&31)<<6|t[e++]&63:s>239&&s<365?(s=((s&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,i[n++]=55296+(s>>10),i[n++]=56320+(s&1023)):i[n++]=(s&15)<<12|(t[e++]&63)<<6|t[e++]&63,n>8191&&(r.push(_X(i)),n=0);return r.length?(n&&r.push(_X(i.slice(0,n))),r.join("")):_X(i.slice(0,n))}o(zOt,"utf8read");FL.utf8read=zOt});var iR=m(zf=>{"use strict";Object.defineProperty(zf,"__esModule",{value:!0});zf.WireType=zf.mergeBinaryOptions=zf.UnknownFieldHandler=void 0;var $Ot;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,i,n,s,a)=>{(e(i)?i[t.symbol]:i[t.symbol]=[]).push({no:n,wireType:s,data:a})},t.onWrite=(r,i,n)=>{for(let{no:s,wireType:a,data:c}of t.list(i))n.tag(s,a).raw(c)},t.list=(r,i)=>{if(e(r)){let n=r[t.symbol];return i?n.filter(s=>s.no==i):n}return[]},t.last=(r,i)=>t.list(r,i).slice(-1)[0];let e=o(r=>r&&Array.isArray(r[t.symbol]),"is")})($Ot=zf.UnknownFieldHandler||(zf.UnknownFieldHandler={}));function WOt(t,e){return Object.assign(Object.assign({},t),e)}o(WOt,"mergeBinaryOptions");zf.mergeBinaryOptions=WOt;var JOt;(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"})(JOt=zf.WireType||(zf.WireType={}))});var qL=m(Aa=>{"use strict";Object.defineProperty(Aa,"__esModule",{value:!0});Aa.varint32read=Aa.varint32write=Aa.int64toString=Aa.int64fromString=Aa.varint64write=Aa.varint64read=void 0;function YOt(){let t=0,e=0;for(let i=0;i<28;i+=7){let n=this.buf[this.pos++];if(t|=(n&127)<<i,(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 i=3;i<=31;i+=7){let n=this.buf[this.pos++];if(e|=(n&127)<<i,(n&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}o(YOt,"varint64read");Aa.varint64read=YOt;function KOt(t,e,r){for(let s=0;s<28;s=s+7){let a=t>>>s,c=!(!(a>>>7)&&e==0),u=(c?a|128:a)&255;if(r.push(u),!c)return}let i=t>>>28&15|(e&7)<<4,n=e>>3!=0;if(r.push((n?i|128:i)&255),!!n){for(let s=3;s<31;s=s+7){let a=e>>>s,c=!!(a>>>7),u=(c?a|128:a)&255;if(r.push(u),!c)return}r.push(e>>>31&1)}}o(KOt,"varint64write");Aa.varint64write=KOt;var UL=65536*65536;function XOt(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,i=0,n=0;function s(a,c){let u=Number(t.slice(a,c));n*=r,i=i*r+u,i>=UL&&(n=n+(i/UL|0),i=i%UL)}return o(s,"add1e6digit"),s(-24,-18),s(-18,-12),s(-12,-6),s(-6),[e,i,n]}o(XOt,"int64fromString");Aa.int64fromString=XOt;function ZOt(t,e){if(e>>>0<=2097151)return""+(UL*e+(t>>>0));let r=t&16777215,i=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,s=r+i*6777216+n*6710656,a=i+n*8147497,c=n*2,u=1e7;s>=u&&(a+=Math.floor(s/u),s%=u),a>=u&&(c+=Math.floor(a/u),a%=u);function l(f,h){let d=f?String(f):"";return h?"0000000".slice(d.length)+d:d}return o(l,"decimalFrom1e7"),l(c,0)+l(a,c)+l(s,1)}o(ZOt,"int64toString");Aa.int64toString=ZOt;function ePt(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}o(ePt,"varint32write");Aa.varint32write=ePt;function tPt(){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}o(tPt,"varint32read");Aa.varint32read=tPt});var hA=m(fA=>{"use strict";Object.defineProperty(fA,"__esModule",{value:!0});fA.PbLong=fA.PbULong=fA.detectBi=void 0;var nR=qL(),mr;function jDe(){let t=new DataView(new ArrayBuffer(8));mr=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("922337203685477580 Line truncated
`)}};pM.RpcError=eZ});var rZ=m(AM=>{"use strict";Object.defineProperty(AM,"__esModule",{value:!0});AM.mergeRpcOptions=void 0;var COe=Ni();function Ikt(t,e){if(!e)return t;let r={};mM(t,r),mM(e,r);for(let i of Object.keys(e)){let n=e[i];switch(i){case"jsonOptions":r.jsonOptions=COe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=COe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},mM(t.meta,r.meta),mM(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}o(Ikt,"mergeRpcOptions");AM.mergeRpcOptions=Ikt;function mM(t,e){if(!t)return;let r=e;for(let[i,n]of Object.entries(t))n instanceof Date?r[i]=new Date(n.getTime()):Array.isArray(n)?r[i]=n.concat():r[i]=n}o(mM,"copy")});var nZ=m(sE=>{"use strict";Object.defineProperty(sE,"__esModule",{value:!0});sE.Deferred=sE.DeferredState=void 0;var Jf;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Jf=sE.DeferredState||(sE.DeferredState={}));var iZ=class{static{o(this,"Deferred")}constructor(e=!0){this._state=Jf.PENDING,this._promise=new Promise((r,i)=>{this._resolve=r,this._reject=i}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==Jf.PENDING)throw new Error(`cannot resolve ${Jf[this.state].toLowerCase()}`);this._resolve(e),this._state=Jf.RESOLVED}reject(e){if(this.state!==Jf.PENDING)throw new Error(`cannot reject ${Jf[this.state].toLowerCase()}`);this._reject(e),this._state=Jf.REJECTED}resolvePending(e){this._state===Jf.PENDING&&this.resolve(e)}rejectPending(e){this._state===Jf.PENDING&&this.reject(e)}};sE.Deferred=iZ});var oZ=m(gM=>{"use strict";Object.defineProperty(gM,"__esModule",{value:!0});gM.RpcOutputStreamController=void 0;var IOe=nZ(),oE=Ni(),sZ=class{static{o(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let i=r.indexOf(e);i>=0&&r.splice(i,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,i){oE.assert((e?1:0)+(r?1:0)+(i?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),i&&this.notifyComplete()}notifyMessage(e){oE.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){oE.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(){oE.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:o(()=>{let e=this._itState;oE.assert(e,"bad state"),oE.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 IOe.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let i=r.p;oE.assert(i.state==IOe.DeferredState.PENDING,"iterator contract broken"),"value"in e?i.resolve(e):i.reject(e),delete r.p}else r.q.push(e)}};gM.RpcOutputStreamController=sZ});var cZ=m(BC=>{"use strict";var Skt=BC&&BC.__awaiter||function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function u(f){try{l(i.throw(f))}catch(h){a(h)}}o(u,"rejected");function l(f){f.done?s(f.value):n(f.value).then(c,u)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(BC,"__esModule",{value:!0});BC.UnaryCall=void 0;var aZ=class{static{o(this,"UnaryCall")}constructor(e,r,i,n,s,a,c){this.method=e,this.requestHeaders=r,this.request=i,this.headers=n,this.response=s,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(i=>e?Promise.resolve(e(i)):i,i=>r?Promise.resolve(r(i)):Promise.reject(i))}promiseFinished(){return Skt(this,void 0,void 0,function*(){let[e,r,i,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:i,trailers:n}})}};BC.UnaryCall=aZ});var lZ=m(vC=>{"use strict";var Bkt=vC&&vC.__awaiter||function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function 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 BUt(){Object.keys(YM).forEach(function(t){delete YM[t]})}});var XM=p(Xf=>{"use strict";Xf.__esModule=!0;Xf.HandlebarsEnvironment=xee;function vQe(t){return t&&t.__esModule?t:{default:t}}var lE=Co(),vUt=fc(),vee=vQe(vUt),_Ut=Cee(),xUt=CQe(),RUt=See(),KM=vQe(RUt),TUt=Bee(),NUt="4.7.9";Xf.VERSION=NUt;var DUt=8;Xf.COMPILER_REVISION=DUt;var OUt=7;Xf.LAST_COMPATIBLE_COMPILER_REVISION=OUt;var PUt={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"};Xf.REVISION_CHANGES=PUt;var _ee="[object Object]";function xee(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},_Ut.registerDefaultHelpers(this),xUt.registerDefaultDecorators(this)}xee.prototype={constructor:xee,logger:KM.default,log:KM.default.log,registerHelper:function(e,r){if(lE.toString.call(e)===_ee){if(r)throw new vee.default("Arg not supported with multiple helpers");lE.extend(this.helpers,e)}else this.helpers[e]=r},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,r){if(lE.toString.call(e)===_ee)lE.extend(this.partials,e);else{if(typeof r>"u")throw new vee.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(lE.toString.call(e)===_ee){if(r)throw new vee.default("Arg not supported with multiple decorators");lE.extend(this.decorators,e)}else this.decorators[e]=r},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){TUt.resetLoggedProperties()}};var kUt=KM.default.log;Xf.log=kUt;Xf.createFrame=lE.createFrame;Xf.logger=KM.default});var xQe=p((ZM,_Qe)=>{"use strict";ZM.__esModule=!0;function Ree(t){this.string=t}Ree.prototype.toString=Ree.prototype.toHTML=function(){return""+this.string};ZM.default=Ree;_Qe.exports=ZM.default});var RQe=p(Tee=>{"use strict";Tee.__esModule=!0;Tee.wrapHelper=QUt;function QUt(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 kQe=p(mA=>{"use strict";mA.__esModule=!0;mA.checkRevision=GUt;mA.template=HUt;mA.wrapProgram=eF;mA.resolvePartial=jUt;mA.invokePartial=VUt;mA.noop=OQe;function LUt(t){return t&&t.__esModule?t:{default:t}}function MUt(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 FUt=Co(),MC=MUt(FUt),UUt=fc(),Yd=LUt(UUt),Kd=XM(),TQe=Cee(),qUt=RQe(),NQe=Bee();function GUt(t){var e=t&&t[0]||1,r=Kd.COMPILER_REVISION;if(!(e>=Kd.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Kd.COMPILER_REVISION))if(e<Kd.LAST_COMPATIBLE_COMPILER_REVISION){var i=Kd.REVISION_CHANGES[r],n=Kd.REVISION_CHANGES[e];throw new Yd.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+i+") or downgrade your runtime to an older version ("+n+").")}else throw new Yd.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 HUt(t,e){if(!e)throw new Yd.default("No environment passed to template");if(!t||!t.main)throw new Yd.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 i(o,a,c){c.hash&&(a=MC.extend({},a,c.hash),c.ids&&(c.ids[0]=!0)),o=e.VM.resolvePartial.call(this,o,a,c),c.hooks=this.hooks,c.protoAccessControl=this.protoAccessControl;var u=e.VM.invokePartial.call(this,o,a,c);if(u==null&&e.compile&&(c.partials[c.name]=e.compile(o,t.compilerOptions,e),u=c.partials[c.name](a,c)),u!=null){if(c.indent){for(var l=u.split(`
`),f=0,h=l.length;f<h&&!(!l[f]&&f+1===h);f++)l[f]=c.indent+l[f];u=l.join(`
`)}return u}else throw new Yd.default("The partial "+c.name+" could not be compiled when running in runtime-only mode")}var n={strict:function(a,c,u){if(!a||!(c in a))throw new Yd.default('"'+c+'" not defined in '+a,{loc:u});return n.lookupProperty(a,c)},lookupProperty:function(a,c){var u=a[c];if(u==null||Object.prototype.hasOwnProperty.call(a,c)||NQe.resultIsAllowed(u,n.protoAccessControl,c))return u},lookup:function(a,c){for(var u=a.length,l=0;l<u;l++){var f=a[l]&&n.lookupProperty(a[l],c);if(f!=null)return f}},lambda:function(a,c){return typeof a=="function"?a.call(c):a},escapeExpression:MC.escapeExpression,invokePartial:i,fn:function(a){var c=t[a];return c.decorator=t[a+"_d"],c},programs:[],program:function(a,c,u,l,f){var h=this.programs[a],d=this.fn(a);return c||f||l||u?h=eF(this,a,d,c,u,l,f):h||(h=this.programs[a]=eF(this,a,d)),h},data:function(a,c){for(;a&&c--;)a=a._parent;return a},mergeIfNeeded:function(a,c){var u=a||c;return a&&c&&a!==c&&(u=MC.extend({},c,a)),u},nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function s(o){var a=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],c=a.data;s._setup(a),!a.partial&&t.useData&&(c=zUt(o,c));var u=void 0,l=t.useBlockParams?[]:void 0;t.useDepths&&(a.depths?u=o!=a.depths[0]?[o].concat(a.depths):a.depths:u=[o]);function f(h){return""+t.main(n,h,n.helpers,n.partials,c,l,u)}return f=PQe(t.main,f,n,a.depths||[],c,l),f(o,a)}return s.isTop=!0,s._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={};DQe(a,e.helpers,n),DQe(a,o.helpers,n),n.helpers=a,t.usePartial&&(n.partials=n.mergeIfNeeded(o.partials,e.partials)),(t.usePartial||t.useDecorators)&&(n.decorators=MC.extend({},e.decorators,o.decorators)),n.hooks={},n.protoAccessControl=NQe.createProtoAccessControl(o);var c=o.allowCallsToHelperMissing||r;TQe.moveHelperToHooks(n,"helperMissing",c),TQe.moveHelperToHooks(n,"blockHelperMissing",c)}},s._child=function(o,a,c,u){if(t.useBlockParams&&!c)throw new Yd.default("must pass block params");if(t.useDepths&&!u)throw new Yd.default("must pass parent depths");return eF(n,o,t[o],a,0,c,u)},s}function eF(t,e,r,i,n,s,o){function a(c){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],l=o;return o&&c!=o[0]&&!(c===t.nullContext&&o[0]===null)&&(l=[c].concat(o)),r(t,c,t.helpers,t.partials,u.data||i,s&&[u.blockParams].concat(s),l)}return a=PQe(r,a,t,o,i,s),a.program=e,a.depth=o?o.length:0,a.blockParams=n||0,a}function jUt(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=tF(r.partials,t)):r.name==="@partial-block"?t=tF(r.data,"partial-block"):t=tF(r.partials,r.name),t}function VUt(t,e,r){var i=tF(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!==OQe&&(function(){r.data=Kd.createFrame(r.data);var s=r.fn;n=r.data["partial-block"]=function(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return c.data=Kd.createFrame(c.data),c.data["partial-block"]=i,s(a,c)},s.partials&&(r.partials=MC.extend({},r.partials,s.partials))})(),t===void 0&&n&&(t=n),t===void 0)throw new Yd.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}function OQe(){return""}function tF(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}function zUt(t,e){return(!e||!("root"in e))&&(e=e?Kd.createFrame(e):{},e.root=t),e}function PQe(t,e,r,i,n,s){if(t.decorator){var o={};e=t.decorator(e,o,r,i&&i[0],n,s,i),MC.extend(e,o)}return e}function DQe(t,e,r){e&&Object.keys(e).forEach(function(i){var n=e[i];t[i]=$Ut(n,r)})}function $Ut(t,e){var r=e.lookupProperty;return qUt.wrapHelper(t,function(i){return i.lookupProperty=r,i})}});var Nee=p((rF,QQe)=>{"use strict";rF.__esModule=!0;rF.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}};QQe.exports=rF.default});var qQe=p((iF,UQe)=>{"use strict";iF.__esModule=!0;function Oee(t){return t&&t.__esModule?t:{default:t}}function Pee(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 WUt=XM(),LQe=Pee(WUt),JUt=xQe(),YUt=Oee(JUt),KUt=fc(),XUt=Oee(KUt),ZUt=Co(),Dee=Pee(ZUt),eqt=kQe(),MQe=Pee(eqt),tqt=Nee(),rqt=Oee(tqt);function FQe(){var t=new LQe.HandlebarsEnvironment;return Dee.extend(t,LQe),t.SafeString=YUt.default,t.Exception=XUt.default,t.Utils=Dee,t.escapeExpression=Dee.escapeExpression,t.VM=MQe,t.template=function(e){return MQe.template(e,t)},t}var vR=FQe();vR.create=FQe;rqt.default(vR);vR.default=vR;iF.default=vR;UQe.exports=iF.default});var kee=p((nF,HQe)=>{"use strict";nF.__esModule=!0;var GQe={helpers:{helperExpression:function(e){re Line truncated
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(BUt,"logUnexpecedPropertyAccessOnce");function vUt(){Object.keys(XM).forEach(function(t){delete XM[t]})}o(vUt,"resetLoggedProperties")});var eF=m(Zf=>{"use strict";Zf.__esModule=!0;Zf.HandlebarsEnvironment=Ree;function _Qe(t){return t&&t.__esModule?t:{default:t}}o(_Qe,"_interopRequireDefault");var fE=Io(),_Ut=hc(),_ee=_Qe(_Ut),xUt=Iee(),RUt=IQe(),TUt=Bee(),ZM=_Qe(TUt),NUt=vee(),DUt="4.7.9";Zf.VERSION=DUt;var OUt=8;Zf.COMPILER_REVISION=OUt;var PUt=7;Zf.LAST_COMPATIBLE_COMPILER_REVISION=PUt;var kUt={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"};Zf.REVISION_CHANGES=kUt;var xee="[object Object]";function Ree(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},xUt.registerDefaultHelpers(this),RUt.registerDefaultDecorators(this)}o(Ree,"HandlebarsEnvironment");Ree.prototype={constructor:Ree,logger:ZM.default,log:ZM.default.log,registerHelper:o(function(e,r){if(fE.toString.call(e)===xee){if(r)throw new _ee.default("Arg not supported with multiple helpers");fE.extend(this.helpers,e)}else this.helpers[e]=r},"registerHelper"),unregisterHelper:o(function(e){delete this.helpers[e]},"unregisterHelper"),registerPartial:o(function(e,r){if(fE.toString.call(e)===xee)fE.extend(this.partials,e);else{if(typeof r>"u")throw new _ee.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},"registerPartial"),unregisterPartial:o(function(e){delete this.partials[e]},"unregisterPartial"),registerDecorator:o(function(e,r){if(fE.toString.call(e)===xee){if(r)throw new _ee.default("Arg not supported with multiple decorators");fE.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){NUt.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var QUt=ZM.default.log;Zf.log=QUt;Zf.createFrame=fE.createFrame;Zf.logger=ZM.default});var RQe=m((tF,xQe)=>{"use strict";tF.__esModule=!0;function Tee(t){this.string=t}o(Tee,"SafeString");Tee.prototype.toString=Tee.prototype.toHTML=function(){return""+this.string};tF.default=Tee;xQe.exports=tF.default});var TQe=m(Nee=>{"use strict";Nee.__esModule=!0;Nee.wrapHelper=LUt;function LUt(t,e){if(typeof t!="function")return t;var r=o(function(){var n=arguments[arguments.length-1];return arguments[arguments.length-1]=e(n),t.apply(this,arguments)},"wrapper");return r}o(LUt,"wrapHelper")});var QQe=m(AA=>{"use strict";AA.__esModule=!0;AA.checkRevision=HUt;AA.template=jUt;AA.wrapProgram=rF;AA.resolvePartial=VUt;AA.invokePartial=zUt;AA.noop=PQe;function MUt(t){return t&&t.__esModule?t:{default:t}}o(MUt,"_interopRequireDefault");function FUt(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}o(FUt,"_interopRequireWildcard");var UUt=Io(),FC=FUt(UUt),qUt=hc(),Kd=MUt(qUt),Xd=eF(),NQe=Iee(),GUt=TQe(),DQe=vee();function HUt(t){var e=t&&t[0]||1,r=Xd.COMPILER_REVISION;if(!(e>=Xd.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Xd.COMPILER_REVISION))if(e<Xd.LAST_COMPATIBLE_COMPILER_REVISION){var i=Xd.REVISION_CHANGES[r],n=Xd.REVISION_CHANGES[e];throw new Kd.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+i+") or downgrade your runtime to an older version ("+n+").")}else throw new Kd.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}o(HUt,"checkRevision");function jUt(t,e){if(!e)throw new Kd.default("No environment passed to template");if(!t||!t.main)throw new Kd.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 i(a,c,u){u.hash&&(c=FC.extend({},c,u.hash),u.ids&&(u.ids[0]=!0)),a=e.VM.resolvePartial.call(this,a,c,u),u.hooks=this.hooks,u.protoAccessControl=this.protoAccessControl;var l=e.VM.invokePartial.call(this,a,c,u);if(l==null&&e.compile&&(u.partials[u.name]=e.compile(a,t.compilerOptions,e),l=u.partials[u.name](c,u)),l!=null){if(u.indent){for(var f=l.split(`
`),h=0,d=f.length;h<d&&!(!f[h]&&h+1===d);h++)f[h]=u.indent+f[h];l=f.join(`
`)}return l}else throw new Kd.default("The partial "+u.name+" could not be compiled when running in runtime-only mode")}o(i,"invokePartialWrapper");var n={strict:o(function(c,u,l){if(!c||!(u in c))throw new Kd.default('"'+u+'" not defined in '+c,{loc:l});return n.lookupProperty(c,u)},"strict"),lookupProperty:o(function(c,u){var l=c[u];if(l==null||Object.prototype.hasOwnProperty.call(c,u)||DQe.resultIsAllowed(l,n.protoAccessControl,u))return l},"lookupProperty"),lookup:o(function(c,u){for(var l=c.length,f=0;f<l;f++){var h=c[f]&&n.lookupProperty(c[f],u);if(h!=null)return h}},"lookup"),lambda:o(function(c,u){return typeof c=="function"?c.call(u):c},"lambda"),escapeExpression:FC.escapeExpression,invokePartial:i,fn:o(function(c){var u=t[c];return u.decorator=t[c+"_d"],u},"fn"),programs:[],program:o(function(c,u,l,f,h){var d=this.programs[c],p=this.fn(c);return u||h||f||l?d=rF(this,c,p,u,l,f,h):d||(d=this.programs[c]=rF(this,c,p)),d},"program"),data:o(function(c,u){for(;c&&u--;)c=c._parent;return c},"data"),mergeIfNeeded:o(function(c,u){var l=c||u;return c&&u&&c!==u&&(l=FC.extend({},u,c)),l},"mergeIfNeeded"),nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function s(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=c.data;s._setup(c),!c.partial&&t.useData&&(u=$Ut(a,u));var l=void 0,f=t.useBlockParams?[]:void 0;t.useDepths&&(c.depths?l=a!=c.depths[0]?[a].concat(c.depths):c.depths:l=[a]);function h(d){return""+t.main(n,d,n.helpers,n.partials,u,f,l)}return o(h,"main"),h=kQe(t.main,h,n,c.depths||[],u,f),h(a,c)}return o(s,"ret"),s.isTop=!0,s._setup=function(a){if(a.partial)n.protoAccessControl=a.protoAccessControl,n.helpers=a.helpers,n.partials=a.partials,n.decorators=a.decorators,n.hooks=a.hooks;else{var c={};OQe(c,e.helpers,n),OQe(c,a.helpers,n),n.helpers=c,t.usePartial&&(n.partials=n.mergeIfNeeded(a.partials,e.partials)),(t.usePartial||t.useDecorators)&&(n.decorators=FC.extend({},e.decorators,a.decorators)),n.hooks={},n.protoAccessControl=DQe.createProtoAccessControl(a);var u=a.allowCallsToHelperMissing||r;NQe.moveHelperToHooks(n,"helperMissing",u),NQe.moveHelperToHooks(n,"blockHelperMissing",u)}},s._child=function(a,c,u,l){if(t.useBlockParams&&!u)throw new Kd.default("must pass block params");if(t.useDepths&&!l)throw new Kd.default("must pass parent depths");return rF(n,a,t[a],c,0,u,l)},s}o(jUt,"template");function rF(t,e,r,i,n,s,a){function c(u){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],f=a;return a&&u!=a[0]&&!(u===t.nullContext&&a[0]===null)&&(f=[u].concat(a)),r(t,u,t.helpers,t.partials,l.data||i,s&&[l.blockParams].concat(s),f)}return o(c,"prog"),c=kQe(r,c,t,a,i,s),c.program=e,c.depth=a?a.length:0,c.blockParams=n||0,c}o(rF,"wrapProgram");function VUt(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=iF(r.partials,t)):r.name==="@partial-block"?t=iF(r.data,"partial-block"):t=iF(r.partials,r.name),t}o(VUt,"resolvePartial");function zUt(t,e,r){var i=iF(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!==PQe&&(function(){r.data=Xd.createFrame(r.data);var s=r.fn;n=r.data["partial-block"]=o(function(c){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return u.data=Xd.createFrame(u.data),u.data["partial-block"]=i,s(c,u)},"partialBlockWrapper"),s.partials&&(r.partials=FC.extend({},r.partials,s.partials))})(),t===void 0&&n&&(t=n),t===void 0)throw new Kd.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}o(zUt,"invokePartial");function PQe(){return""}o(PQe,"noop");function iF(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}o(iF,"lookupOwnProperty");function $Ut(t,e){return(!e||!("root"in e))&&(e=e?Xd.createFrame(e):{},e.root=t),e}o($Ut,"initData");function kQe(t,e,r,i,n,s){if(t.decorator){var a={};e=t.decorator(e,a,r,i&&i[0],n,s,i),FC.extend(e,a)}return e}o(kQe,"executeDecorators");function OQe(t,e,r){e&&Object.keys(e).forEach(function(i){var n=e[i];t[i]=WUt(n,r)})}o(OQe,"addHelpers");function WUt(t,e){var r=e.lookupProperty;return GUt.wrapHelper(t,function(i){return i.lookupProperty=r,i})}o(WUt,"passLookupPropertyOption")});var Dee=m((nF,LQe)=>{"use strict";nF.__esModule=!0;nF.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}};LQe.exports=nF.default});var GQe=m((sF,qQe)=>{"use strict";sF.__esModule=!0;function Pee(t){return t&&t.__esModule?t:{default:t}}o(Pee,"_interopRequireDefault");function kee(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}o(kee,"_interopRequireWildcard");var JUt=eF(),MQe=kee(JUt),YUt=RQe(),KUt=Pee(YUt),XUt=hc(),ZUt=Pee(XUt),eqt=Io(),Oee=kee(eq Line truncated
`+this.lexer.showPosition()+`
Expecting `+Ne.join(", ")+", got '"+(this.terminals_[S]||S)+"'":he="Parse error on line "+(f+1)+": Unexpected "+(S==1?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(he,{text:this.lexer.match,token:this.terminals_[S]||S,line:this.lexer.yylineno,loc:y,expected:Ne})}}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+L+", token: "+S);switch(T[0]){case 1:o.push(S),a.push(this.lexer.yytext),c.push(this.lexer.yylloc),o.push(T[1]),S=null,N?(S=N,N=null):(h=this.lexer.yyleng,l=this.lexer.yytext,f=this.lexer.yylineno,y=this.lexer.yylloc,d>0&&d--);break;case 2:if(Z=this.productions_[T[1]][1],V.$=a[a.length-Z],V._$={first_line:c[c.length-(Z||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(Z||1)].first_column,last_column:c[c.length-1].last_column},g&&(V._$.range=[c[c.length-(Z||1)].range[0],c[c.length-1].range[1]]),D=this.performAction.call(V,l,h,f,this.yy,T[1],a,c),typeof D<"u")return D;Z&&(o=o.slice(0,-1*Z*2),a=a.slice(0,-1*Z),c=c.slice(0,-1*Z)),o.push(this.productions_[T[1]][0]),a.push(V.$),c.push(V._$),J=u[o[o.length-2]][o[o.length-1]],o.push(J);break;case 3:return!0}}return!0}},e=(function(){var i={EOF:1,parseError:function(s,o){if(this.yy.parser)this.yy.parser.parseError(s,o);else throw new Error(s)},setInput:function(s){return this._input=s,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 s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var o=s.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),s},unput:function(s){var o=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o-1),this.offset-=o;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===c.length?this.yylloc.first_column:0)+c[c.length-a.length].length-a[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-o]),this},more:function(){return this._more=!0,this},less:function(s){this.unput(this.match.slice(s))},pastInput:function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var s=this.pastInput(),o=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
`+o+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,o,a,c,u,l;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),h=0;h<f.length&&(a=this._input.match(this.rules[f[h]]),!(a&&(!o||a[0].length>o[0].length)&&(o=a,c=h,!this.options.flex)));h++);return o?(l=o[0].match(/(?:\r\n?|\n).*/g),l&&(this.yylineno+=l.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:l?l[l.length-1].length-l[l.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],s=this.performAction.call(this,this.yy,this,f[c],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s||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 s=this.next();return typeof s<"u"?s:this.lex()},begin:function(s){this.conditionStack.push(s)},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(s){this.begin(s)}};return i.options={},i.performAction=function(s,o,a,c){function u(f,h){return o.yytext=o.yytext.substring(f,o.yyleng-h+f)}var l=c;switch(a){case 0:if(o.yytext.slice(-2)==="\\\\"?(u(0,1),this.begin("mu")):o.yytext.slice(-1)==="\\"?(u(0,1),this.begin("emu")):this.begin("mu"),o.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(u(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(o.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return o.yytext=u(1,2).replace(/\\"/g,'"'),80;break;case 32:return o.yytext=u(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return o.yytext=o.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},i.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\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],i.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}},i})();t.lexer=e;function r(){this.yy={}}return r.prototype=t,t.Parser=r,new r})();sF.default=iqt;jQe.exports=sF.default});var uF=p((cF,WQe)=>{"use strict";cF.__esModule=!0;function nqt(t){return t&&t.__esModule?t:{default:t}}var sqt=fc(),Qee=nqt(sqt);function oF(){this.parents=[]}oF.prototype={constructor:oF,mutating:!1,acceptKey:function(e,r){var i=this.accept(e[r]);if(this.mutating){if(i&&!oF.prototype[i.type])throw new Qee.default('Unexpected node type "'+i.type+'" found when accepting '+r+" on "+e.type);e[r]=i}},acceptRequired:function(e,r){if(this.acceptKey(e,r),!e[r])throw new Qee.default(e.type+" requires "+r)},acceptArray:function(e){for(var r=0,i=e.length;r<i;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,i--)},accept:function(e){if(e){if(!this[e.type])throw new Qee.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:aF,Decorator:aF,BlockStatement:zQe,DecoratorBlock:zQe,PartialStatement:$Qe,PartialBlockStatement:function(e){$Qe.call(this,e),this.acceptKey(e,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:aF,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 aF(t){this.acceptRequired(t,"path"),this.acceptArray(t.params),this.acceptKey(t,"hash")}functLine truncated
`])}),e},each:function(e){for(var r=0,i=this.source.length;r<i;r++)e(this.source[r])},empty:function(){var e=this.currentLocation||{start:{}};return new pE(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 pE?e:(e=nte(e,this,r),new pE(r.start.line,r.start.column,this.srcFile,e))},functionCall:function(e,r,i){return i=this.generateList(i),this.wrap([e,r?"."+r+"(":"(",i,")"])},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,i=[];Object.keys(e).forEach(function(s){var o=nte(e[s],r);o!=="undefined"&&i.push([r.quotedString(s),":",o])});var n=this.generateList(i);return n.prepend("{"),n.add("}"),n},generateList:function(e){for(var r=this.empty(),i=0,n=e.length;i<n;i++)i&&r.add(","),r.add(nte(e[i],this));return r},generateArray:function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r}};gF.default=RLe;TLe.exports=gF.default});var QLe=p((yF,kLe)=>{"use strict";yF.__esModule=!0;function PLe(t){return t&&t.__esModule?t:{default:t}}var DLe=XM(),r3t=fc(),ote=PLe(r3t),i3t=Co(),n3t=NLe(),OLe=PLe(n3t);function jC(t){this.value=t}function VC(){}VC.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=DLe.COMPILER_REVISION,r=DLe.REVISION_CHANGES[e];return[e,r]},appendToBuffer:function(e,r,i){return i3t.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:i?["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,i,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=!!i,this.context=i||{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 s=e.opcodes,o=void 0,a=void 0,c=void 0,u=void 0;for(c=0,u=s.length;c<u;c++)o=s[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 ote.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(),`;
Expecting `+De.join(", ")+", got '"+(this.terminals_[B]||B)+"'":de="Parse error on line "+(h+1)+": Unexpected "+(B==1?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(de,{text:this.lexer.match,token:this.terminals_[B]||B,line:this.lexer.yylineno,loc:E,expected:De})}}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+B);switch(N[0]){case 1:a.push(B),c.push(this.lexer.yytext),u.push(this.lexer.yylloc),a.push(N[1]),B=null,D?(B=D,D=null):(d=this.lexer.yyleng,f=this.lexer.yytext,h=this.lexer.yylineno,E=this.lexer.yylloc,p>0&&p--);break;case 2:if(ee=this.productions_[N[1]][1],z.$=c[c.length-ee],z._$={first_line:u[u.length-(ee||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(ee||1)].first_column,last_column:u[u.length-1].last_column},y&&(z._$.range=[u[u.length-(ee||1)].range[0],u[u.length-1].range[1]]),O=this.performAction.call(z,f,d,h,this.yy,N[1],c,u),typeof O<"u")return O;ee&&(a=a.slice(0,-1*ee*2),c=c.slice(0,-1*ee),u=u.slice(0,-1*ee)),a.push(this.productions_[N[1]][0]),c.push(z.$),u.push(z._$),Y=l[a[a.length-2]][a[a.length-1]],a.push(Y);break;case 3:return!0}}return!0},"parse")},e=(function(){var i={EOF:1,parseError:o(function(s,a){if(this.yy.parser)this.yy.parser.parseError(s,a);else throw new Error(s)},"parseError"),setInput:o(function(s){return this._input=s,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var a=s.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:o(function(s){var a=s.length,c=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var 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:c?(c.length===u.length?this.yylloc.first_column:0)+u[u.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[l[0],l[0]+this.yyleng-a]),this},"unput"),more:o(function(){return this._more=!0,this},"more"),less:o(function(s){this.unput(this.match.slice(s))},"less"),pastInput:o(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var s=this.pastInput(),a=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
`+a+"^"},"showPosition"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,a,c,u,l,f;this._more||(this.yytext="",this.match="");for(var h=this._currentRules(),d=0;d<h.length&&(c=this._input.match(this.rules[h[d]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,u=d,!this.options.flex)));d++);return a?(f=a[0].match(/(?:\r\n?|\n).*/g),f&&(this.yylineno+=f.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:f?f[f.length-1].length-f[f.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],s=this.performAction.call(this,this.yy,this,h[u],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var s=this.next();return typeof s<"u"?s:this.lex()},"lex"),begin:o(function(s){this.conditionStack.push(s)},"begin"),popState:o(function(){return this.conditionStack.pop()},"popState"),_currentRules:o(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:o(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:o(function(s){this.begin(s)},"begin")};return i.options={},i.performAction=o(function(s,a,c,u){function l(h,d){return a.yytext=a.yytext.substring(h,a.yyleng-d+h)}o(l,"strip");var f=u;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(l(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(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(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=l(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.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 a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),i.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\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],i.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}},i})();t.lexer=e;function r(){this.yy={}}return o(r,"Parser"),r.prototype=t,t.Parser=r,new r})();aF.default=nqt;VQe.exports=aF.default});var fF=m((lF,JQe)=>{"use strict";lF.__esModule=!0;function sqt(t){return t&&t.__esModule?t:{default:t}}o(sqt,"_interopRequireDefault");var oqt=hc(),Lee=sqt(oqt);function cF(){this.parents=[]}o(cF,"Visitor");cF.prototype={constructor:cF,mutating:!1,acceptKey:o(function(e,r){var i=this.accept(e[r]);if(this.mutating){if(i&&!cF.prototype[i.type])throw new Lee.default('Unexpected node type "'+i.type+'" found when accepting '+r+" on "+e.type);e[r]=i}},"acceptKey"),acceptRequired:o(function(e,r){if(this.acceptKey(e,r),!e[r])throw new Lee.default(e.type+" requires "+r)},"acceptRequired"),acceptArray:o(function(e){for(var r=0,i=e.length;r<i;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,i--)},"acceptArray"),accept:o(function(e){if(e){if(!this[e.type])throw new Lee.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}},"accept"),Program:o(function(e){this.acceptArray(e.body)},"Program"),MustacheStatement:uF,Decorator:uF,BlockStatement:$Qe,DecoratorBlock:$Qe,PartialStatement:WQe,PartialBlockStatement:o(function(e){WQe.call(this,e),this.acceptKey(e,"program")},"PartialBlockStatement"),ContentStatement:o(function(){},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:uF,PathExpression:o(function(){},"PathExpresLine truncated
`])}),e},"merge"),each:o(function(e){for(var r=0,i=this.source.length;r<i;r++)e(this.source[r])},"each"),empty:o(function(){var e=this.currentLocation||{start:{}};return new mE(e.start.line,e.start.column,this.srcFile)},"empty"),wrap:o(function(e){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return e instanceof mE?e:(e=ste(e,this,r),new mE(r.start.line,r.start.column,this.srcFile,e))},"wrap"),functionCall:o(function(e,r,i){return i=this.generateList(i),this.wrap([e,r?"."+r+"(":"(",i,")"])},"functionCall"),quotedString:o(function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},"quotedString"),objectLiteral:o(function(e){var r=this,i=[];Object.keys(e).forEach(function(s){var a=ste(e[s],r);a!=="undefined"&&i.push([r.quotedString(s),":",a])});var n=this.generateList(i);return n.prepend("{"),n.add("}"),n},"objectLiteral"),generateList:o(function(e){for(var r=this.empty(),i=0,n=e.length;i<n;i++)i&&r.add(","),r.add(ste(e[i],this));return r},"generateList"),generateArray:o(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};EF.default=TLe;NLe.exports=EF.default});var LLe=m((bF,QLe)=>{"use strict";bF.__esModule=!0;function kLe(t){return t&&t.__esModule?t:{default:t}}o(kLe,"_interopRequireDefault");var OLe=eF(),i3t=hc(),ate=kLe(i3t),n3t=Io(),s3t=DLe(),PLe=kLe(s3t);function VC(t){this.value=t}o(VC,"Literal");function zC(){}o(zC,"JavaScriptCompiler");zC.prototype={nameLookup:o(function(e,r){return this.internalNameLookup(e,r)},"nameLookup"),depthedLookup:o(function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},"depthedLookup"),compilerInfo:o(function(){var e=OLe.COMPILER_REVISION,r=OLe.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:o(function(e,r,i){return n3t.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:i?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},"appendToBuffer"),initializeBuffer:o(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:o(function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:o(function(e,r,i,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=!!i,this.context=i||{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 s=e.opcodes,a=void 0,c=void 0,u=void 0,l=void 0;for(u=0,l=s.length;u<l;u++)a=s[u],this.source.currentLocation=a.loc,c=c||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=c,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new ate.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 l=this.createFunctionContext(n);if(this.isChild)return l;var f={compiler:this.compilerInfo(),main:l};this.decorators&&(f.main_d=this.decorators,f.useDecorators=!0);var h=this.context,d=h.programs,m=h.decorators;for(c=0,u=d.length;c<u;c++)f[c]=d[c],m[c]&&(f[c+"_d"]=m[c],f.useDecorators=!0);return this.environment.usePartial&&(f.usePartial=!0),this.options.data&&(f.useData=!0),this.useDepths&&(f.useDepths=!0),this.useBlockParams&&(f.useBlockParams=!0),this.options.compat&&(f.compat=!0),n?f.compilerOptions=this.options:(f.compiler=JSON.stringify(f.compiler),this.source.currentLocation={start:{line:1,column:0}},f=this.objectLiteral(f),r.srcName?(f=f.toStringWithSourceMap({file:r.destName}),f.map=f.map&&f.map.toString()):f=f.toString()),f},preamble:function(){this.lastContext=0,this.source=new OLe.default(this.options.srcName),this.decorators=new OLe.default(this.options.srcName)},createFunctionContext:function(e){var r=this,i="",n=this.stackVars.concat(this.registers.list);n.length>0&&(i+=", "+n.join(", "));var s=0;Object.keys(this.aliases).forEach(function(c){var u=r.aliases[c];u.children&&u.referenceCount>1&&(i+=", alias"+ ++s+"="+c,u.children[0]="alias"+s)}),this.lookupPropertyFunctionIsUsed&&(i+=", "+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(i);return e?(o.push(a),Function.apply(this,o)):this.source.wrap(["function(",o.join(","),`) {
`,a,"}"])},mergeSource:function(e){var r=this.environment.isSimple,i=!this.forceBuffer,n=void 0,s=void 0,o=void 0,a=void 0;return this.source.each(function(c){c.appendToBuffer?(o?c.prepend(" + "):o=c,a=c):(o&&(s?o.prepend("buffer += "):n=!0,a.add(";"),o=a=void 0),s=!0,r||(i=!1))}),i?o?(o.prepend("return "),a.add(";")):s||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`
`),this.decorators=this.decorators.merge()));var f=this.createFunctionContext(n);if(this.isChild)return f;var h={compiler:this.compilerInfo(),main:f};this.decorators&&(h.main_d=this.decorators,h.useDecorators=!0);var d=this.context,p=d.programs,A=d.decorators;for(u=0,l=p.length;u<l;u++)h[u]=p[u],A[u]&&(h[u+"_d"]=A[u],h.useDecorators=!0);return this.environment.usePartial&&(h.usePartial=!0),this.options.data&&(h.useData=!0),this.useDepths&&(h.useDepths=!0),this.useBlockParams&&(h.useBlockParams=!0),this.options.compat&&(h.compat=!0),n?h.compilerOptions=this.options:(h.compiler=JSON.stringify(h.compiler),this.source.currentLocation={start:{line:1,column:0}},h=this.objectLiteral(h),r.srcName?(h=h.toStringWithSourceMap({file:r.destName}),h.map=h.map&&h.map.toString()):h=h.toString()),h},"compile"),preamble:o(function(){this.lastContext=0,this.source=new PLe.default(this.options.srcName),this.decorators=new PLe.default(this.options.srcName)},"preamble"),createFunctionContext:o(function(e){var r=this,i="",n=this.stackVars.concat(this.registers.list);n.length>0&&(i+=", "+n.join(", "));var s=0;Object.keys(this.aliases).forEach(function(u){var l=r.aliases[u];l.children&&l.referenceCount>1&&(i+=", alias"+ ++s+"="+u,l.children[0]="alias"+s)}),this.lookupPropertyFunctionIsUsed&&(i+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(i);return e?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
`,c,"}"])},"createFunctionContext"),mergeSource:o(function(e){var r=this.environment.isSimple,i=!this.forceBuffer,n=void 0,s=void 0,a=void 0,c=void 0;return this.source.each(function(u){u.appendToBuffer?(a?u.prepend(" + "):a=u,c=u):(a&&(s?a.prepend("buffer += "):n=!0,c.add(";"),a=c=void 0),s=!0,r||(i=!1))}),i?a?(a.prepend("return "),c.add(";")):s||this.source.push('return "";'):(e+=", buffer = "+(n?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),c.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(n?"":`;
`)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:o(function(){return`
lookupProperty = container.lookupProperty || function(parent, propertyName) {
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
return parent[propertyName];
}
return undefined
}
`.trim()},blockValue:function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),i=[this.contextName(0)];this.setupHelperArgs(e,0,i);var n=this.popStack();i.splice(1,0,n),this.push(this.source.functionCall(r,"call",i))},ambiguousBlockValue:function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var i=this.topStack();r.splice(1,0,i),this.pushSource(["if (!",this.lastHelper,") { ",i," = ",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,i,n){var s=0;!n&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[s++])):this.pushContext(),this.resolvePath("context",e,s,r,i)},lookupBlockParam:function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},lookupData:function(e,r,i){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,i)},resolvePath:function(e,r,i,n,s){var o=this;if(this.options.strict||this.options.assumeObjects){this.push(s3t(this.options.strict&&s,this,r,i,e));return}for(var a=r.length,c=function(l){o.replaceStack(function(f){var h=o.nameLookup(f,r[l],e);return n?[" && ",h]:[" != null ? ",h," : ",f]})},u=i;u<a;u++)c(u)},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(e,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof e=="string"?this.pushString(e):this.pushStackLiteral(e))},emptyHash:function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},pushString:function(e){this.pushStackLiteral(this.quotedString(e))},pushLiteral:function(e){this.pushStackLiteral(e)},pushProgram:function(e){e!=null?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},registerDecorator:function(e,r){var i=this.nameLookup("decorators",r,"decorator"),n=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",i,";"]),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,i){var n=this.popStack(),s=this.setupHelper(e,r),o=[];i&&o.push(s.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",s.callParams);this.push(c)},itemsSeparatedBy:function(e,r){var i=[];i.push(e[0]);for(var n=1;n<e.length;n++)i.push(r,e[n]);return i},invokeKnownHelper:function(e,r){var i=this.setupHelper(e,r);this.push(this.source.functionCall(i.name,"call",i.callParams))},invokeAmbiguous:function(e,r){this.useRegister("helper");var i=this.popStack();this.emptyHash();var n=this.setupHelper(0,e,r),s=this.lastHelper=this.nameLookup("helpers",e,"helper"),o=["(","(helper = ",s," || ",i,")"];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,i){var n=[],s=this.setupParams(r,1,n);e&&(r=this.popStack(),delete s.name),i&&(s.indent=JSON.stringify(i)),s.helpers="helpers",s.partials="partials",s.decorators="container.decorators",e?n.unshift(r):n.unshift(this.nameLookup("partials",r,"partial")),this.options.compat&&(s.depths="depths"),s=this.objectLiteral(s),n.push(s),this.push(this.source.functionCall("container.invokePartial","",n))},assignToHash Line truncated
`,e};di.prototype.Program=function(t){var e="",r=t.body,i=void 0,n=void 0;if(t.blockParams){var s="BLOCK PARAMS: [";for(i=0,n=t.blockParams.length;i<n;i++)s+=" "+t.blockParams[i];s+=" ]",e+=this.pad(s)}for(i=0,n=r.length;i<n;i++)e+=this.accept(r[i]);return this.padding--,e};di.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};di.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};di.prototype.BlockStatement=di.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};di.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+" }}")};di.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+" }}")};di.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};di.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};di.prototype.SubExpression=function(t){for(var e=t.params,r=[],i=void 0,n=0,s=e.length;n<s;n++)r.push(this.accept(e[n]));return e="["+r.join(", ")+"]",i=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+i};di.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};di.prototype.StringLiteral=function(t){return'"'+t.value+'"'};di.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};di.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};di.prototype.UndefinedLiteral=function(){return"UNDEFINED"};di.prototype.NullLiteral=function(){return"NULL"};di.prototype.Hash=function(t){for(var e=t.pairs,r=[],i=0,n=e.length;i<n;i++)r.push(this.accept(e[i]));return"HASH{"+r.join(", ")+"}"};di.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var ute=p((c$r,HLe)=>{var wF=FLe().default,GLe=ULe();wF.PrintVisitor=GLe.PrintVisitor;wF.print=GLe.print;HLe.exports=wF;function qLe(t,e){var r=require("fs"),i=r.readFileSync(e,"utf8");t.exports=wF.compile(i)}typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=qLe,require.extensions[".hbs"]=qLe)});var tMe=p(BF=>{"use strict";Object.defineProperty(BF,"__esModule",{value:!0});BF.getProxyUrl=x3t;BF.checkBypass=eMe;function x3t(t){let e=t.protocol==="https:";if(eMe(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 SF(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new SF(`http://${r}`)}else return}function eMe(t){if(!t.hostname)return!1;let e=t.hostname;if(R3t(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let i;t.port?i=Number(t.port):t.protocol==="http:"?i=80:t.protocol==="https:"&&(i=443);let n=[t.hostname.toUpperCase()];typeof i=="number"&&n.push(`${n[0]}:${i}`);for(let s of r.split(",").map(o=>o.trim().toUpperCase()).filter(o=>o))if(s==="*"||n.some(o=>o===s||o.endsWith(`.${s}`)||s.startsWith(".")&&o.endsWith(`${s}`)))return!0;return!1}function R3t(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 SF=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 iMe=p(Hr=>{"use strict";var T3t=Hr&&Hr.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=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,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),N3t=Hr&&Hr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),RF=Hr&&Hr.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var i=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[i.length]=n);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i=t(e),n=0;n<i.length;n++)i[n]!=="default"&&T3t(r,e,i[n]);return N3t(r,e),r}})(),Oi=Hr&&Hr.__awaiter||function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(fu Line truncated
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(n){case 0:o=s,n=1;break;case 1:r[i++]=o<<2|(s&48)>>4,o=s,n=2;break;case 2:r[i++]=(o&15)<<4|(s&60)>>2,o=s,n=3;break;case 3:r[i++]=(o&3)<<6|s,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,i)}eI.base64decode=r5t;function i5t(t){let e="",r=0,i,n=0;for(let s=0;s<t.length;s++)switch(i=t[s],r){case 0:e+=ip[i>>2],n=(i&3)<<4,r=1;break;case 1:e+=ip[n|i>>4],n=(i&15)<<2,r=2;break;case 2:e+=ip[n|i>>6],e+=ip[i&63],r=0;break}return r&&(e+=ip[n],e+="=",r==1&&(e+="=")),e}eI.base64encode=i5t});var cFe=p(jF=>{"use strict";Object.defineProperty(jF,"__esModule",{value:!0});jF.utf8read=void 0;var jte=t=>String.fromCharCode.apply(String,t);function n5t(t){if(t.length<1)return"";let e=0,r=[],i=[],n=0,s,o=t.length;for(;e<o;)s=t[e++],s<128?i[n++]=s:s>191&&s<224?i[n++]=(s&31)<<6|t[e++]&63:s>239&&s<365?(s=((s&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,i[n++]=55296+(s>>10),i[n++]=56320+(s&1023)):i[n++]=(s&15)<<12|(t[e++]&63)<<6|t[e++]&63,n>8191&&(r.push(jte(i)),n=0);return r.length?(n&&r.push(jte(i.slice(0,n))),r.join("")):jte(i.slice(0,n))}jF.utf8read=n5t});var KR=p(eh=>{"use strict";Object.defineProperty(eh,"__esModule",{value:!0});eh.WireType=eh.mergeBinaryOptions=eh.UnknownFieldHandler=void 0;var s5t;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,i,n,s,o)=>{(e(i)?i[t.symbol]:i[t.symbol]=[]).push({no:n,wireType:s,data:o})},t.onWrite=(r,i,n)=>{for(let{no:s,wireType:o,data:a}of t.list(i))n.tag(s,o).raw(a)},t.list=(r,i)=>{if(e(r)){let n=r[t.symbol];return i?n.filter(s=>s.no==i):n}return[]},t.last=(r,i)=>t.list(r,i).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(s5t=eh.UnknownFieldHandler||(eh.UnknownFieldHandler={}));function o5t(t,e){return Object.assign(Object.assign({},t),e)}eh.mergeBinaryOptions=o5t;var a5t;(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"})(a5t=eh.WireType||(eh.WireType={}))});var zF=p(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});ba.varint32read=ba.varint32write=ba.int64toString=ba.int64fromString=ba.varint64write=ba.varint64read=void 0;function c5t(){let t=0,e=0;for(let i=0;i<28;i+=7){let n=this.buf[this.pos++];if(t|=(n&127)<<i,(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 i=3;i<=31;i+=7){let n=this.buf[this.pos++];if(e|=(n&127)<<i,(n&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}ba.varint64read=c5t;function u5t(t,e,r){for(let s=0;s<28;s=s+7){let o=t>>>s,a=!(!(o>>>7)&&e==0),c=(a?o|128:o)&255;if(r.push(c),!a)return}let i=t>>>28&15|(e&7)<<4,n=e>>3!=0;if(r.push((n?i|128:i)&255),!!n){for(let s=3;s<31;s=s+7){let o=e>>>s,a=!!(o>>>7),c=(a?o|128:o)&255;if(r.push(c),!a)return}r.push(e>>>31&1)}}ba.varint64write=u5t;var VF=65536*65536;function l5t(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,i=0,n=0;function s(o,a){let c=Number(t.slice(o,a));n*=r,i=i*r+c,i>=VF&&(n=n+(i/VF|0),i=i%VF)}return s(-24,-18),s(-18,-12),s(-12,-6),s(-6),[e,i,n]}ba.int64fromString=l5t;function f5t(t,e){if(e>>>0<=2097151)return""+(VF*e+(t>>>0));let r=t&16777215,i=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,s=r+i*6777216+n*6710656,o=i+n*8147497,a=n*2,c=1e7;s>=c&&(o+=Math.floor(s/c),s%=c),o>=c&&(a+=Math.floor(o/c),o%=c);function u(l,f){let h=l?String(l):"";return f?"0000000".slice(h.length)+h:h}return u(a,0)+u(o,a)+u(s,1)}ba.int64toString=f5t;function h5t(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)}}ba.varint32write=h5t;function d5t(){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}ba.varint32read=d5t});var bA=p(EA=>{"use strict";Object.defineProperty(EA,"__esModule",{value:!0});EA.PbLong=EA.PbULong=EA.detectBi=void 0;var XR=zF(),mr;function uFe(){let t=new DataView(new ArrayBuffer(8));mr=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}EA.detectBi=uFe;uFe();function lFe(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var fFe=/^-?[0-9]+$/,WF=4294967296,$F=2147483648, Line truncated
`)}};EU.RpcError=Tre});var Dre=p(wU=>{"use strict";Object.defineProperty(wU,"__esModule",{value:!0});wU.mergeRpcOptions=void 0;var jFe=Tr();function k8t(t,e){if(!e)return t;let r={};bU(t,r),bU(e,r);for(let i of Object.keys(e)){let n=e[i];switch(i){case"jsonOptions":r.jsonOptions=jFe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=jFe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},bU(t.meta,r.meta),bU(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}wU.mergeRpcOptions=k8t;function bU(t,e){if(!t)return;let r=e;for(let[i,n]of Object.entries(t))n instanceof Date?r[i]=new Date(n.getTime()):Array.isArray(n)?r[i]=n.concat():r[i]=n}});var Pre=p(wE=>{"use strict";Object.defineProperty(wE,"__esModule",{value:!0});wE.Deferred=wE.DeferredState=void 0;var ah;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(ah=wE.DeferredState||(wE.DeferredState={}));var Ore=class{constructor(e=!0){this._state=ah.PENDING,this._promise=new Promise((r,i)=>{this._resolve=r,this._reject=i}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==ah.PENDING)throw new Error(`cannot resolve ${ah[this.state].toLowerCase()}`);this._resolve(e),this._state=ah.RESOLVED}reject(e){if(this.state!==ah.PENDING)throw new Error(`cannot reject ${ah[this.state].toLowerCase()}`);this._reject(e),this._state=ah.REJECTED}resolvePending(e){this._state===ah.PENDING&&this.resolve(e)}rejectPending(e){this._state===ah.PENDING&&this.reject(e)}};wE.Deferred=Ore});var Qre=p(CU=>{"use strict";Object.defineProperty(CU,"__esModule",{value:!0});CU.RpcOutputStreamController=void 0;var VFe=Pre(),CE=Tr(),kre=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1}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 i=r.indexOf(e);i>=0&&r.splice(i,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,i){CE.assert((e?1:0)+(r?1:0)+(i?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),i&&this.notifyComplete()}notifyMessage(e){CE.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){CE.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(){CE.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._itState||(this._itState={q:[]}),this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;CE.assert(e,"bad state"),CE.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 VFe.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r)if(r.p){let i=r.p;CE.assert(i.state==VFe.DeferredState.PENDING,"iterator contract broken"),"value"in e?i.resolve(e):i.reject(e),delete r.p}else r.q.push(e)}};CU.RpcOutputStreamController=kre});var Mre=p(uI=>{"use strict";var Q8t=uI&&uI.__awaiter||function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};Object.defineProperty(uI,"__esModule",{value:!0});uI.UnaryCall=void 0;var Lre=class{constructor(e,r,i,n,s,o,a){this.method=e,this.requestHeaders=r,this.request=i,this.headers=n,this.response=s,this.status=o,this.trailers=a}then(e,r){return this.promiseFinished().then(i=>e?Promise.resolve(e(i)):i,i=>r?Promise.resolve(r(i)):Promise.reject(i))}promiseFinished(){return Q8t(this,void 0,void 0,function*(){let[e,r,i,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:i,trailers:n}})}};uI.UnaryCall=Lre});var Ure=p(lI=>{"use strict";var L8t=lI&&lI.__awaiter||function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};Object.defineProperty(lI,"__esModule",{value:!0});lI.ServerStreamingCal Line truncated
globstar while`,e,f,r,h,d),this.matchOne(e.slice(f),r.slice(h),i))return this.debug("globstar found match!",f,a,d),!0;if(d==="."||d===".."||!n.dot&&d.charAt(0)==="."){this.debug("dot detected!",e,f,r,h);break}this.debug("globstar swallow a segment, and continue"),f++}return!!(i&&(this.debug(`
>>> no match, partial?`,e,f,r,h),f===a))}var m;if(typeof u=="string"?(m=l===u,this.debug("string match",u,l,m)):(m=l.match(u),this.debug("pattern match",u,l,m)),!m)return!1}if(s===a&&o===c)return!0;if(s===a)return i;if(o===c)return s===a-1&&e[s]==="";throw new Error("wtf?")}braceExpand(){return _Ue(this.pattern,this.options)}parse(e,r){xU(e);let i=this.options;if(e==="**")if(i.noglobstar)e="*";else return xl;if(e==="")return"";let n="",s=!1,o=!1,a=[],c=[],u,l=!1,f=-1,h=-1,d,m,A,y=e.charAt(0)===".",g=i.dot||y,E=()=>y?"":g?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",C=T=>T.charAt(0)==="."?"":i.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",S=()=>{if(u){switch(u){case"*":n+=wie,s=!0;break;case"?":n+=Sie,s=!0;break;default:n+="\\"+u;break}this.debug("clearStateChar %j %j",u,n),u=!1}};for(let T=0,j;T<e.length&&(j=e.charAt(T));T++){if(this.debug("%s %s %s %j",e,T,n,j),o){if(j==="/")return!1;SUe[j]&&(n+="\\"),n+=j,o=!1;continue}switch(j){case"/":return!1;case"\\":if(l&&e.charAt(T+1)==="-"){n+=j;continue}S(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,T,n,j),l){this.debug(" in class"),j==="!"&&T===h+1&&(j="^"),n+=j;continue}this.debug("call clearStateChar %j",u),S(),u=j,i.noext&&S();continue;case"(":{if(l){n+="(";continue}if(!u){n+="\\(";continue}let D={type:u,start:T-1,reStart:n.length,open:IUe[u].open,close:IUe[u].close};this.debug(this.pattern," ",D),a.push(D),n+=D.open,D.start===0&&D.type!=="!"&&(y=!0,n+=C(e.slice(T+1))),this.debug("plType %j %j",u,n),u=!1;continue}case")":{let D=a[a.length-1];if(l||!D){n+="\\)";continue}a.pop(),S(),s=!0,m=D,n+=m.close,m.type==="!"&&c.push(Object.assign(m,{reEnd:n.length}));continue}case"|":{let D=a[a.length-1];if(l||!D){n+="\\|";continue}S(),n+="|",D.start===0&&D.type!=="!"&&(y=!0,n+=C(e.slice(T+1)));continue}case"[":if(S(),l){n+="\\"+j;continue}l=!0,h=T,f=n.length,n+=j;continue;case"]":if(T===h+1||!l){n+="\\"+j;continue}d=e.substring(h+1,T);try{RegExp("["+vGt(SGt(d))+"]"),n+=j}catch{n=n.substring(0,f)+"(?:$.)"}s=!0,l=!1;continue;default:S(),SUe[j]&&!(j==="^"&&l)&&(n+="\\"),n+=j;break}}for(l&&(d=e.slice(h+1),A=this.parse(d,Cie),n=n.substring(0,f)+"\\["+A[0],s=s||A[1]),m=a.pop();m;m=a.pop()){let T;T=n.slice(m.reStart+m.open.length),this.debug("setting tail",n,m),T=T.replace(/((?:\\{2}){0,64})(\\?)\|/g,(D,V,M)=>(M||(M="\\"),V+V+M+"|")),this.debug(`tail=%j
%s`,T,T,m,n);let j=m.type==="*"?wie:m.type==="?"?Sie:"\\"+m.type;s=!0,n=n.slice(0,m.reStart)+j+"\\("+T}S(),o&&(n+="\\\\");let N=wGt[n.charAt(0)];for(let T=c.length-1;T>-1;T--){let j=c[T],D=n.slice(0,j.reStart),V=n.slice(j.reStart,j.reEnd-8),M=n.slice(j.reEnd),Z=n.slice(j.reEnd-8,j.reEnd)+M,J=D.split(")").length,Ne=D.split("(").length-J,he=M;for(let X=0;X<Ne;X++)he=he.replace(/\)[+*?]?/,"");M=he;let ke=M===""&&r!==Cie?"(?:$|\\/)":"";n=D+V+M+ke+Z}if(n!==""&&s&&(n="(?=.)"+n),N&&(n=E()+n),r===Cie)return[n,s];if(i.nocase&&!s&&(s=e.toUpperCase()!==e.toLowerCase()),!s)return IGt(e);let L=i.nocase?"i":"";try{return Object.assign(new RegExp("^"+n+"$",L),{_glob:e,_src:n})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,i=r.noglobstar?wie:r.dot?EGt:bGt,n=r.nocase?"i":"",s=e.map(o=>(o=o.map(a=>typeof a=="string"?BGt(a):a===xl?xl:a._src).reduce((a,c)=>(a[a.length-1]===xl&&c===xl||a.push(c),a),[]),o.forEach((a,c)=>{a!==xl||o[c-1]===xl||(c===0?o.length>1?o[c+1]="(?:\\/|"+i+"\\/)?"+o[c+1]:o[c]=i:c===o.length-1?o[c-1]+="(?:\\/|"+i+")?":(o[c-1]+="(?:\\/|\\/"+i+"\\/)"+o[c+1],o[c+1]=xl))}),o.filter(a=>a!==xl).join("/"))).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let i=this.options;Iie.sep!=="/"&&(e=e.split(Iie.sep).join("/")),e=e.split(BUe),this.debug(this.pattern,"split",e);let n=this.set;this.debug(this.pattern,"set",n);let s;for(let o=e.length-1;o>=0&&(s=e[o],!s);o--);for(let o=0;o<n.length;o++){let a=n[o],c=e;if(i.matchBase&&a.length===1&&(c=[s]),this.matchOne(c,a,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return Ac.defaults(e).Minimatch}};Ac.Minimatch=EI});var OUe=p((p7r,DUe)=>{DUe.exports=NUe;var _ie=require("fs"),{EventEmitter:_Gt}=require("events"),{Minimatch:vie}=xUe(),{resolve:xGt}=require("path");function RGt(t,e){return new Promise((r,i)=>{_ie.readdir(t,{withFileTypes:!0},(n,s)=>{if(n)switch(n.code){case"ENOTDIR":e?i(n):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:i(n);break}else r(s)})})}function RUe(t,e){return new Promise((r,i)=>{(e?_ie.stat:_ie.lstat)(t,(s,o)=>{s?s.code==="ENOENT"?r(e?RUe(t,!1):null):r(null):r(o)})})}async function*TUe(t,e,r,i,n,s){let o=await RGt(e+t,s);for(let a of o){let c=a.name;c===void 0&&(c=a,i=!0);let u=t+"/"+c,l=u.slice(1),f=e+"/"+l,h=null;(i||r)&&(h=await RUe(f,r)),!h&&a.name!==void 0&&(h=a),h===null&&(h={isDirectory:()=>!1}),h.isDirectory()?n(l)||(yield{relative:l,absolute:f,stats:h},yield*TUe(u,e,r,i,n,!1)):yield{relative:l,absolute:f,stats:h}}}async function*TGt(t,e,r,i){yield*TUe("",t,e,r,i,!0)}function NGt(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}var RU=class extends _Gt{constructor(e,r,i){if(super(),typeof r=="function"&&(i=r,r=null),this.options=NGt(r||{}),this.matchers=[],this.options.pattern){let n=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=n.map(s=>new vie(s,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let n=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=n.map(s=>new vie(s,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let n=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=n.map(s=>new vie(s,{dot:!0}))}this.iterator=TGt(xGt(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,i&&(this._matches=[],this.on("match",n=>this._matches.push(this.options.absolute?n.absolute:n.relative)),this.on("error",n=>i(n)),this.on("end",()=>i(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let i=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(n=>n.match(i)))&&!this.ignoreMatchers.some(n=>n.match(i))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let i=e.value.relative,n=e.value.absolute;this.options.mark&&r&&(i+="/",n+="/"),this.options.stat?this.emit("match",{relative:i,absolute:n,stat:e.value.stats}):this.emit("match",{relative:i,absolute:n})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.erro Line truncated
`,x);x=F===-1?v.length:F}else if(P!==-1&&v[x]==="/"&&v[x+1]==="*"){let F=v.indexOf("*/",x);F!==-1?(x=F+2,P=v.indexOf("*/",x)):(I+=v[x],x++)}else I+=v[x],x++;return I}function cb(v){let I=Fg(v.toString()),x=I.match(Yl);if(x||(x=I.match(Ku)),!x)throw new Error(`could not parse args in autoInject
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:o(function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),i=[this.contextName(0)];this.setupHelperArgs(e,0,i);var n=this.popStack();i.splice(1,0,n),this.push(this.source.functionCall(r,"call",i))},"blockValue"),ambiguousBlockValue:o(function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var i=this.topStack();r.splice(1,0,i),this.pushSource(["if (!",this.lastHelper,") { ",i," = ",this.source.functionCall(e,"call",r),"}"])},"ambiguousBlockValue"),appendContent:o(function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},"appendContent"),append:o(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:o(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:o(function(e){this.lastContext=e},"getContext"),pushContext:o(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:o(function(e,r,i,n){var s=0;!n&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[s++])):this.pushContext(),this.resolvePath("context",e,s,r,i)},"lookupOnContext"),lookupBlockParam:o(function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:o(function(e,r,i){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,i)},"lookupData"),resolvePath:o(function(e,r,i,n,s){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(o3t(this.options.strict&&s,this,r,i,e));return}for(var c=r.length,u=o(function(f){a.replaceStack(function(h){var d=a.nameLookup(h,r[f],e);return n?[" && ",d]:[" != null ? ",d," : ",h]})},"_loop"),l=i;l<c;l++)u(l)},"resolvePath"),resolvePossibleLambda:o(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:o(function(e,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof e=="string"?this.pushString(e):this.pushStackLiteral(e))},"pushStringParam"),emptyHash:o(function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},"emptyHash"),pushHash:o(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:o(function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},"popHash"),pushString:o(function(e){this.pushStackLiteral(this.quotedString(e))},"pushString"),pushLiteral:o(function(e){this.pushStackLiteral(e)},"pushLiteral"),pushProgram:o(function(e){e!=null?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:o(function(e,r){var i=this.nameLookup("decorators",r,"decorator"),n=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",i,";"]),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;"])},"registerDecorator"),invokeHelper:o(function(e,r,i){var n=this.popStack(),s=this.setupHelper(e,r),a=[];i&&a.push(s.name),a.push(n),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var c=["(",this.itemsSeparatedBy(a,"||"),")"],u=this.source.functionCall(c,"call",s.callParams);this.push(u)},"invokeHelper"),itemsSeparatedBy:o(function(e,r){var i=[];i.push(e[0]);for(var n=1;n<e.length;n++)i.push(r,e[n]);return i},"itemsSeparatedBy"),invokeKnownHelper:o(function(e,r){var i=this.setupHelper(e,r);this.push(this.source.functionCall(i.name,"call",i.callParams))},"invokeKnownHelper"),invokeAmbiguous:o(function(e,r){this.useRegister("helper");var i=this.popStack();this.emptyHash();var n=this.setupHelper(0,e,r),s=this.lastHelper=this.nameLookup("helpers",e,"helper"),a=["(","(helper = ",s," || ",i,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,n.paramsInit?["),(",n.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("h Line truncated
`,e};pi.prototype.Program=function(t){var e="",r=t.body,i=void 0,n=void 0;if(t.blockParams){var s="BLOCK PARAMS: [";for(i=0,n=t.blockParams.length;i<n;i++)s+=" "+t.blockParams[i];s+=" ]",e+=this.pad(s)}for(i=0,n=r.length;i<n;i++)e+=this.accept(r[i]);return this.padding--,e};pi.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};pi.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};pi.prototype.BlockStatement=pi.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};pi.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+" }}")};pi.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+" }}")};pi.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};pi.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};pi.prototype.SubExpression=function(t){for(var e=t.params,r=[],i=void 0,n=0,s=e.length;n<s;n++)r.push(this.accept(e[n]));return e="["+r.join(", ")+"]",i=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+i};pi.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};pi.prototype.StringLiteral=function(t){return'"'+t.value+'"'};pi.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};pi.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};pi.prototype.UndefinedLiteral=function(){return"UNDEFINED"};pi.prototype.NullLiteral=function(){return"NULL"};pi.prototype.Hash=function(t){for(var e=t.pairs,r=[],i=0,n=e.length;i<n;i++)r.push(this.accept(e[i]));return"HASH{"+r.join(", ")+"}"};pi.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var lte=m(($ri,jLe)=>{var IF=ULe().default,HLe=qLe();IF.PrintVisitor=HLe.PrintVisitor;IF.print=HLe.print;jLe.exports=IF;function GLe(t,e){var r=require("fs"),i=r.readFileSync(e,"utf8");t.exports=IF.compile(i)}o(GLe,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=GLe,require.extensions[".hbs"]=GLe)});var rMe=m(_F=>{"use strict";Object.defineProperty(_F,"__esModule",{value:!0});_F.getProxyUrl=R3t;_F.checkBypass=tMe;function R3t(t){let e=t.protocol==="https:";if(tMe(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 vF(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new vF(`http://${r}`)}else return}o(R3t,"getProxyUrl");function tMe(t){if(!t.hostname)return!1;let e=t.hostname;if(T3t(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let i;t.port?i=Number(t.port):t.protocol==="http:"?i=80:t.protocol==="https:"&&(i=443);let n=[t.hostname.toUpperCase()];typeof i=="number"&&n.push(`${n[0]}:${i}`);for(let s of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(s==="*"||n.some(a=>a===s||a.endsWith(`.${s}`)||s.startsWith(".")&&a.endsWith(`${s}`)))return!0;return!1}o(tMe,"checkBypass");function T3t(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}o(T3t,"isLoopbackAddress");var vF=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}});var nMe=m(jr=>{"use strict";var N3t=jr&&jr.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),D3t=jr&&jr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),NF=jr&&jr.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var i=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[i.length]=n);return i},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i=t(e),n=0;n<i.length;n++)i[n]!=="default"&&N3t(r,e,i[n]);return D3t(r,e), Line truncated
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(n){case 0:a=s,n=1;break;case 1:r[i++]=a<<2|(s&48)>>4,a=s,n=2;break;case 2:r[i++]=(a&15)<<4|(s&60)>>2,a=s,n=3;break;case 3:r[i++]=(a&3)<<6|s,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,i)}o(i5t,"base64decode");tI.base64decode=i5t;function n5t(t){let e="",r=0,i,n=0;for(let s=0;s<t.length;s++)switch(i=t[s],r){case 0:e+=np[i>>2],n=(i&3)<<4,r=1;break;case 1:e+=np[n|i>>4],n=(i&15)<<2,r=2;break;case 2:e+=np[n|i>>6],e+=np[i&63],r=0;break}return r&&(e+=np[n],e+="=",r==1&&(e+="=")),e}o(n5t,"base64encode");tI.base64encode=n5t});var uFe=m(zF=>{"use strict";Object.defineProperty(zF,"__esModule",{value:!0});zF.utf8read=void 0;var Vte=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function s5t(t){if(t.length<1)return"";let e=0,r=[],i=[],n=0,s,a=t.length;for(;e<a;)s=t[e++],s<128?i[n++]=s:s>191&&s<224?i[n++]=(s&31)<<6|t[e++]&63:s>239&&s<365?(s=((s&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,i[n++]=55296+(s>>10),i[n++]=56320+(s&1023)):i[n++]=(s&15)<<12|(t[e++]&63)<<6|t[e++]&63,n>8191&&(r.push(Vte(i)),n=0);return r.length?(n&&r.push(Vte(i.slice(0,n))),r.join("")):Vte(i.slice(0,n))}o(s5t,"utf8read");zF.utf8read=s5t});var XR=m(th=>{"use strict";Object.defineProperty(th,"__esModule",{value:!0});th.WireType=th.mergeBinaryOptions=th.UnknownFieldHandler=void 0;var o5t;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,i,n,s,a)=>{(e(i)?i[t.symbol]:i[t.symbol]=[]).push({no:n,wireType:s,data:a})},t.onWrite=(r,i,n)=>{for(let{no:s,wireType:a,data:c}of t.list(i))n.tag(s,a).raw(c)},t.list=(r,i)=>{if(e(r)){let n=r[t.symbol];return i?n.filter(s=>s.no==i):n}return[]},t.last=(r,i)=>t.list(r,i).slice(-1)[0];let e=o(r=>r&&Array.isArray(r[t.symbol]),"is")})(o5t=th.UnknownFieldHandler||(th.UnknownFieldHandler={}));function a5t(t,e){return Object.assign(Object.assign({},t),e)}o(a5t,"mergeBinaryOptions");th.mergeBinaryOptions=a5t;var c5t;(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"})(c5t=th.WireType||(th.WireType={}))});var WF=m(wa=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});wa.varint32read=wa.varint32write=wa.int64toString=wa.int64fromString=wa.varint64write=wa.varint64read=void 0;function u5t(){let t=0,e=0;for(let i=0;i<28;i+=7){let n=this.buf[this.pos++];if(t|=(n&127)<<i,(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 i=3;i<=31;i+=7){let n=this.buf[this.pos++];if(e|=(n&127)<<i,(n&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}o(u5t,"varint64read");wa.varint64read=u5t;function l5t(t,e,r){for(let s=0;s<28;s=s+7){let a=t>>>s,c=!(!(a>>>7)&&e==0),u=(c?a|128:a)&255;if(r.push(u),!c)return}let i=t>>>28&15|(e&7)<<4,n=e>>3!=0;if(r.push((n?i|128:i)&255),!!n){for(let s=3;s<31;s=s+7){let a=e>>>s,c=!!(a>>>7),u=(c?a|128:a)&255;if(r.push(u),!c)return}r.push(e>>>31&1)}}o(l5t,"varint64write");wa.varint64write=l5t;var $F=65536*65536;function f5t(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,i=0,n=0;function s(a,c){let u=Number(t.slice(a,c));n*=r,i=i*r+u,i>=$F&&(n=n+(i/$F|0),i=i%$F)}return o(s,"add1e6digit"),s(-24,-18),s(-18,-12),s(-12,-6),s(-6),[e,i,n]}o(f5t,"int64fromString");wa.int64fromString=f5t;function h5t(t,e){if(e>>>0<=2097151)return""+($F*e+(t>>>0));let r=t&16777215,i=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,s=r+i*6777216+n*6710656,a=i+n*8147497,c=n*2,u=1e7;s>=u&&(a+=Math.floor(s/u),s%=u),a>=u&&(c+=Math.floor(a/u),a%=u);function l(f,h){let d=f?String(f):"";return h?"0000000".slice(d.length)+d:d}return o(l,"decimalFrom1e7"),l(c,0)+l(a,c)+l(s,1)}o(h5t,"int64toString");wa.int64toString=h5t;function d5t(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}o(d5t,"varint32write");wa.varint32write=d5t;function p5t(){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}o(p5t,"varint32read");wa.varint32read=p5t});var wA=m(bA=>{"use strict";Object.defineProperty(bA,"__esModule",{value:!0});bA.PbLong=bA.PbULong=bA.detectBi=void 0;var ZR=WF(),Ar;function lFe(){let t=new DataView(new ArrayBuffer(8));Ar=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("92233720368547 Line truncated
`)}};wU.RpcError=Nre});var Ore=m(IU=>{"use strict";Object.defineProperty(IU,"__esModule",{value:!0});IU.mergeRpcOptions=void 0;var VFe=Nr();function Q8t(t,e){if(!e)return t;let r={};CU(t,r),CU(e,r);for(let i of Object.keys(e)){let n=e[i];switch(i){case"jsonOptions":r.jsonOptions=VFe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=VFe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},CU(t.meta,r.meta),CU(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}o(Q8t,"mergeRpcOptions");IU.mergeRpcOptions=Q8t;function CU(t,e){if(!t)return;let r=e;for(let[i,n]of Object.entries(t))n instanceof Date?r[i]=new Date(n.getTime()):Array.isArray(n)?r[i]=n.concat():r[i]=n}o(CU,"copy")});var kre=m(CE=>{"use strict";Object.defineProperty(CE,"__esModule",{value:!0});CE.Deferred=CE.DeferredState=void 0;var ch;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(ch=CE.DeferredState||(CE.DeferredState={}));var Pre=class{static{o(this,"Deferred")}constructor(e=!0){this._state=ch.PENDING,this._promise=new Promise((r,i)=>{this._resolve=r,this._reject=i}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==ch.PENDING)throw new Error(`cannot resolve ${ch[this.state].toLowerCase()}`);this._resolve(e),this._state=ch.RESOLVED}reject(e){if(this.state!==ch.PENDING)throw new Error(`cannot reject ${ch[this.state].toLowerCase()}`);this._reject(e),this._state=ch.REJECTED}resolvePending(e){this._state===ch.PENDING&&this.resolve(e)}rejectPending(e){this._state===ch.PENDING&&this.reject(e)}};CE.Deferred=Pre});var Lre=m(SU=>{"use strict";Object.defineProperty(SU,"__esModule",{value:!0});SU.RpcOutputStreamController=void 0;var zFe=kre(),IE=Nr(),Qre=class{static{o(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1}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 i=r.indexOf(e);i>=0&&r.splice(i,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,i){IE.assert((e?1:0)+(r?1:0)+(i?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),i&&this.notifyComplete()}notifyMessage(e){IE.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){IE.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(){IE.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._itState||(this._itState={q:[]}),this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:o(()=>{let e=this._itState;IE.assert(e,"bad state"),IE.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 zFe.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r)if(r.p){let i=r.p;IE.assert(i.state==zFe.DeferredState.PENDING,"iterator contract broken"),"value"in e?i.resolve(e):i.reject(e),delete r.p}else r.q.push(e)}};SU.RpcOutputStreamController=Qre});var Fre=m(lI=>{"use strict";var L8t=lI&&lI.__awaiter||function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function u(f){try{l(i.throw(f))}catch(h){a(h)}}o(u,"rejected");function l(f){f.done?s(f.value):n(f.value).then(c,u)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(lI,"__esModule",{value:!0});lI.UnaryCall=void 0;var Mre=class{static{o(this,"UnaryCall")}constructor(e,r,i,n,s,a,c){this.method=e,this.requestHeaders=r,this.request=i,this.headers=n,this.response=s,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(i=>e?Promise.resolve(e(i)):i,i=>r?Promise.resolve(r(i)):Promise.reject(i))}promiseFinished(){return L8t(this,void 0,void 0,function*(){let[e,r,i,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:i,trailers:n}})}};lI.UnaryCall=Mre});var qre=m(fI=>{"use strict";var M8t=fI&&fI.__awaiter||function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch( Line truncated
globstar while`,e,h,r,d,p),this.matchOne(e.slice(h),r.slice(d),i))return this.debug("globstar found match!",h,c,p),!0;if(p==="."||p===".."||!n.dot&&p.charAt(0)==="."){this.debug("dot detected!",e,h,r,d);break}this.debug("globstar swallow a segment, and continue"),h++}return!!(i&&(this.debug(`
>>> no match, partial?`,e,h,r,d),h===c))}var A;if(typeof l=="string"?(A=f===l,this.debug("string match",l,f,A)):(A=f.match(l),this.debug("pattern match",l,f,A)),!A)return!1}if(s===c&&a===u)return!0;if(s===c)return i;if(a===u)return s===c-1&&e[s]==="";throw new Error("wtf?")}braceExpand(){return xUe(this.pattern,this.options)}parse(e,r){TU(e);let i=this.options;if(e==="**")if(i.noglobstar)e="*";else return Rl;if(e==="")return"";let n="",s=!1,a=!1,c=[],u=[],l,f=!1,h=-1,d=-1,p,A,g,E=e.charAt(0)===".",y=i.dot||E,b=o(()=>E?"":y?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)","patternStart"),I=o(N=>N.charAt(0)==="."?"":i.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)","subPatternStart"),B=o(()=>{if(l){switch(l){case"*":n+=Cie,s=!0;break;case"?":n+=Bie,s=!0;break;default:n+="\\"+l;break}this.debug("clearStateChar %j %j",l,n),l=!1}},"clearStateChar");for(let N=0,V;N<e.length&&(V=e.charAt(N));N++){if(this.debug("%s %s %s %j",e,N,n,V),a){if(V==="/")return!1;BUe[V]&&(n+="\\"),n+=V,a=!1;continue}switch(V){case"/":return!1;case"\\":if(f&&e.charAt(N+1)==="-"){n+=V;continue}B(),a=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,N,n,V),f){this.debug(" in class"),V==="!"&&N===d+1&&(V="^"),n+=V;continue}this.debug("call clearStateChar %j",l),B(),l=V,i.noext&&B();continue;case"(":{if(f){n+="(";continue}if(!l){n+="\\(";continue}let O={type:l,start:N-1,reStart:n.length,open:SUe[l].open,close:SUe[l].close};this.debug(this.pattern," ",O),c.push(O),n+=O.open,O.start===0&&O.type!=="!"&&(E=!0,n+=I(e.slice(N+1))),this.debug("plType %j %j",l,n),l=!1;continue}case")":{let O=c[c.length-1];if(f||!O){n+="\\)";continue}c.pop(),B(),s=!0,A=O,n+=A.close,A.type==="!"&&u.push(Object.assign(A,{reEnd:n.length}));continue}case"|":{let O=c[c.length-1];if(f||!O){n+="\\|";continue}B(),n+="|",O.start===0&&O.type!=="!"&&(E=!0,n+=I(e.slice(N+1)));continue}case"[":if(B(),f){n+="\\"+V;continue}f=!0,d=N,h=n.length,n+=V;continue;case"]":if(N===d+1||!f){n+="\\"+V;continue}p=e.substring(d+1,N);try{RegExp("["+_Gt(BGt(p))+"]"),n+=V}catch{n=n.substring(0,h)+"(?:$.)"}s=!0,f=!1;continue;default:B(),BUe[V]&&!(V==="^"&&f)&&(n+="\\"),n+=V;break}}for(f&&(p=e.slice(d+1),g=this.parse(p,Iie),n=n.substring(0,h)+"\\["+g[0],s=s||g[1]),A=c.pop();A;A=c.pop()){let N;N=n.slice(A.reStart+A.open.length),this.debug("setting tail",n,A),N=N.replace(/((?:\\{2}){0,64})(\\?)\|/g,(O,z,F)=>(F||(F="\\"),z+z+F+"|")),this.debug(`tail=%j
%s`,N,N,A,n);let V=A.type==="*"?Cie:A.type==="?"?Bie:"\\"+A.type;s=!0,n=n.slice(0,A.reStart)+V+"\\("+N}B(),a&&(n+="\\\\");let D=CGt[n.charAt(0)];for(let N=u.length-1;N>-1;N--){let V=u[N],O=n.slice(0,V.reStart),z=n.slice(V.reStart,V.reEnd-8),F=n.slice(V.reEnd),ee=n.slice(V.reEnd-8,V.reEnd)+F,Y=O.split(")").length,De=O.split("(").length-Y,de=F;for(let Z=0;Z<De;Z++)de=de.replace(/\)[+*?]?/,"");F=de;let Qe=F===""&&r!==Iie?"(?:$|\\/)":"";n=O+z+F+Qe+ee}if(n!==""&&s&&(n="(?=.)"+n),D&&(n=b()+n),r===Iie)return[n,s];if(i.nocase&&!s&&(s=e.toUpperCase()!==e.toLowerCase()),!s)return SGt(e);let M=i.nocase?"i":"";try{return Object.assign(new RegExp("^"+n+"$",M),{_glob:e,_src:n})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,i=r.noglobstar?Cie:r.dot?bGt:wGt,n=r.nocase?"i":"",s=e.map(a=>(a=a.map(c=>typeof c=="string"?vGt(c):c===Rl?Rl:c._src).reduce((c,u)=>(c[c.length-1]===Rl&&u===Rl||c.push(u),c),[]),a.forEach((c,u)=>{c!==Rl||a[u-1]===Rl||(u===0?a.length>1?a[u+1]="(?:\\/|"+i+"\\/)?"+a[u+1]:a[u]=i:u===a.length-1?a[u-1]+="(?:\\/|"+i+")?":(a[u-1]+="(?:\\/|\\/"+i+"\\/)"+a[u+1],a[u+1]=Rl))}),a.filter(c=>c!==Rl).join("/"))).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let i=this.options;Sie.sep!=="/"&&(e=e.split(Sie.sep).join("/")),e=e.split(vUe),this.debug(this.pattern,"split",e);let n=this.set;this.debug(this.pattern,"set",n);let s;for(let a=e.length-1;a>=0&&(s=e[a],!s);a--);for(let a=0;a<n.length;a++){let c=n[a],u=e;if(i.matchBase&&c.length===1&&(u=[s]),this.matchOne(u,c,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return gc.defaults(e).Minimatch}};gc.Minimatch=bI});var PUe=m((Jci,OUe)=>{OUe.exports=DUe;var xie=require("fs"),{EventEmitter:xGt}=require("events"),{Minimatch:_ie}=RUe(),{resolve:RGt}=require("path");function TGt(t,e){return new Promise((r,i)=>{xie.readdir(t,{withFileTypes:!0},(n,s)=>{if(n)switch(n.code){case"ENOTDIR":e?i(n):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:i(n);break}else r(s)})})}o(TGt,"readdir");function TUe(t,e){return new Promise((r,i)=>{(e?xie.stat:xie.lstat)(t,(s,a)=>{s?s.code==="ENOENT"?r(e?TUe(t,!1):null):r(null):r(a)})})}o(TUe,"stat");async function*NUe(t,e,r,i,n,s){let a=await TGt(e+t,s);for(let c of a){let u=c.name;u===void 0&&(u=c,i=!0);let l=t+"/"+u,f=l.slice(1),h=e+"/"+f,d=null;(i||r)&&(d=await TUe(h,r)),!d&&c.name!==void 0&&(d=c),d===null&&(d={isDirectory:o(()=>!1,"isDirectory")}),d.isDirectory()?n(f)||(yield{relative:f,absolute:h,stats:d},yield*NUe(l,e,r,i,n,!1)):yield{relative:f,absolute:h,stats:d}}}o(NUe,"exploreWalkAsync");async function*NGt(t,e,r,i){yield*NUe("",t,e,r,i,!0)}o(NGt,"explore");function DGt(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}o(DGt,"readOptions");var NU=class extends xGt{static{o(this,"ReaddirGlob")}constructor(e,r,i){if(super(),typeof r=="function"&&(i=r,r=null),this.options=DGt(r||{}),this.matchers=[],this.options.pattern){let n=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=n.map(s=>new _ie(s,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let n=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=n.map(s=>new _ie(s,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let n=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=n.map(s=>new _ie(s,{dot:!0}))}this.iterator=NGt(RGt(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,i&&(this._matches=[],this.on("match",n=>this._matches.push(this.options.absolute?n.absolute:n.relative)),this.on("error",n=>i(n)),this.on("end",()=>i(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let i=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(n=>n.match(i)))&&!this.ignoreMatchers.some(n=>n.match(i))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let i=e.value.relative,n=e.value.absolute;this.options.mark&&r&&(i+="/",n+="/"),this.options.stat?this.emit("match",{relative:i,absolute:n,stat:e.value.stats}):this.emit("match Line truncated
`,R);R=U===-1?x.length:U}else if(k!==-1&&x[R]==="/"&&x[R+1]==="*"){let U=x.indexOf("*/",R);U!==-1?(R=U+2,k=x.indexOf("*/",R)):(S+=x[R],R++)}else S+=x[R],R++;return S}o(Ug,"stripComments");function ub(x){let S=Ug(x.toString()),R=S.match(Kl);if(R||(R=S.match(Xu)),!R)throw new Error(`could not parse args in autoInject
Source:
`+I);let[,P]=x;return P.replace(/\s/g,"").split(ab).map(F=>F.replace(Mg,"").trim())}function gm(v,I){var x={};return Object.keys(v).forEach(P=>{var F=v[P],q,$=d(F),W=!$&&F.length===1||$&&F.length===0;if(Array.isArray(F))q=[...F],F=q.pop(),x[P]=q.concat(q.length>0?ee:F);else if(W)x[P]=F;else{if(q=cb(F),F.length===0&&!$&&q.length===0)throw new Error("autoInject task functions require explicit parameters.");$||q.pop(),x[P]=q.concat(ee)}function ee(De,kt){var Vt=q.map(Mt=>De[Mt]);Vt.push(kt),y(F)(...Vt)}}),Jl(x,I)}class ub{constructor(){this.head=this.tail=null,this.length=0}removeLink(I){return I.prev?I.prev.next=I.next:this.head=I.next,I.next?I.next.prev=I.prev:this.tail=I.prev,I.prev=I.next=null,this.length-=1,I}empty(){for(;this.head;)this.shift();return this}insertAfter(I,x){x.prev=I,x.next=I.next,I.next?I.next.prev=x:this.tail=x,I.next=x,this.length+=1}insertBefore(I,x){x.prev=I.prev,x.next=I,I.prev?I.prev.next=x:this.head=x,I.prev=x,this.length+=1}unshift(I){this.head?this.insertBefore(this.head,I):Ug(this,I)}push(I){this.tail?this.insertAfter(this.tail,I):Ug(this,I)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var I=this.head;I;)yield I.data,I=I.next}remove(I){for(var x=this.head;x;){var{next:P}=x;I(x)&&this.removeLink(x),x=P}return this}}function Ug(v,I){v.length=1,v.head=v.tail=I}function ym(v,I,x){if(I==null)I=1;else if(I===0)throw new RangeError("Concurrency must not be zero");var P=y(v),F=0,q=[];let $={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function W(je,Te){$[je].push(Te)}function ee(je,Te){let Ve=(...Ft)=>{De(je,Ve),Te(...Ft)};$[je].push(Ve)}function De(je,Te){if(!je)return Object.keys($).forEach(Ve=>$[Ve]=[]);if(!Te)return $[je]=[];$[je]=$[je].filter(Ve=>Ve!==Te)}function kt(je,...Te){$[je].forEach(Ve=>Ve(...Te))}var Vt=!1;function Mt(je,Te,Ve,Ft){if(Ft!=null&&typeof Ft!="function")throw new Error("task callback must be a function");zt.started=!0;var Qr,En;function Pc(Kg,...Cv){if(Kg)return Ve?En(Kg):Qr();if(Cv.length<=1)return Qr(Cv[0]);Qr(Cv)}var Sb=zt._createTaskItem(je,Ve?Pc:Ft||Pc);if(Te?zt._tasks.unshift(Sb):zt._tasks.push(Sb),Vt||(Vt=!0,u(()=>{Vt=!1,zt.process()})),Ve||!Ft)return new Promise((Kg,Cv)=>{Qr=Kg,En=Cv})}function Oc(je){return function(Te,...Ve){F-=1;for(var Ft=0,Qr=je.length;Ft<Qr;Ft++){var En=je[Ft],Pc=q.indexOf(En);Pc===0?q.shift():Pc>0&&q.splice(Pc,1),En.callback(Te,...Ve),Te!=null&&kt("error",Te,En.data)}F<=zt.concurrency-zt.buffer&&kt("unsaturated"),zt.idle()&&kt("drain"),zt.process()}}function Ib(je){return je.length===0&&zt.idle()?(u(()=>kt("drain")),!0):!1}let Yg=je=>Te=>{if(!Te)return new Promise((Ve,Ft)=>{ee(je,(Qr,En)=>{if(Qr)return Ft(Qr);Ve(En)})});De(je),W(je,Te)};var wv=!1,zt={_tasks:new ub,_createTaskItem(je,Te){return{data:je,callback:Te}},*[Symbol.iterator](){yield*zt._tasks[Symbol.iterator]()},concurrency:I,payload:x,buffer:I/4,started:!1,paused:!1,push(je,Te){return Array.isArray(je)?Ib(je)?void 0:je.map(Ve=>Mt(Ve,!1,!1,Te)):Mt(je,!1,!1,Te)},pushAsync(je,Te){return Array.isArray(je)?Ib(je)?void 0:je.map(Ve=>Mt(Ve,!1,!0,Te)):Mt(je,!1,!0,Te)},kill(){De(),zt._tasks.empty()},unshift(je,Te){return Array.isArray(je)?Ib(je)?void 0:je.map(Ve=>Mt(Ve,!0,!1,Te)):Mt(je,!0,!1,Te)},unshiftAsync(je,Te){return Array.isArray(je)?Ib(je)?void 0:je.map(Ve=>Mt(Ve,!0,!0,Te)):Mt(je,!0,!0,Te)},remove(je){zt._tasks.remove(je)},process(){if(!wv){for(wv=!0;!zt.paused&&F<zt.concurrency&&zt._tasks.length;){var je=[],Te=[],Ve=zt._tasks.length;zt.payload&&(Ve=Math.min(Ve,zt.payload));for(var Ft=0;Ft<Ve;Ft++){var Qr=zt._tasks.shift();je.push(Qr),q.push(Qr),Te.push(Qr.data)}F+=1,zt._tasks.length===0&&kt("empty"),F===zt.concurrency&&kt("saturated");var En=J(Oc(je));P(Te,En)}wv=!1}},length(){return zt._tasks.length},running(){return F},workersList(){return q},idle(){return zt._tasks.length+F===0},pause(){zt.paused=!0},resume(){zt.paused!==!1&&(zt.paused=!1,u(zt.process))}};return Object.defineProperties(zt,{saturated:{writable:!1,value:Yg("saturated")},unsaturated:{writable:!1,value:Yg("unsaturated")},empty:{writable:!1,value:Yg("empty")},drain:{writable:!1,value:Yg("drain")},error:{writable:!1,value:Yg("error")}}),zt}function Em(v,I){return ym(v,1,I)}function no(v,I,x){return ym(v,I,x)}function lb(v,I,x,P){P=T(P);var F=y(x);return Jr(v,(q,$,W)=>{F(I,q,(ee,De)=>{I=De,W(ee)})},q=>P(q,I))}var Qa=g(lb,4);function qg(...v){var I=v.map(y);return function(...x){var P=this,F=x[x.length-1];return typeof F=="function"?x.pop():F=ka(),Qa(I,x,(q,$,W)=>{$.apply(P,q.concat((ee,...De)=>{W(ee,De)}))},(q,$)=>F(q,...$)),F[ws]}}function Be(...v){return qg(...v.reverse())}function U(v,I,x,P){return C(he(I),v,x,P)}var R=g(U,4);function G(v,I,x,P){var F=y(x);return R(v,I,(q,$)=>{F(q,(W,...ee)=>W?$(W):$(W,ee))},(q,$)=>{for(var W=[],ee=0;ee<$.length;ee++)$[ee]&&(W=W.concat(...$[ee]));return P(q,W)})}var z=g(G,4);function K(v,I,x){return z(v,1/0,I,x)}var re=g(K,3);function Se(v,I,x){return Line truncated
GFS4: `),console.error(t)});Xr[ds]||(HUe=global[ds]||[],VUe(Xr,HUe),Xr.close=(function(t){function e(r,i){return t.call(Xr,r,function(n){n||jUe(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(e,PU,{value:t}),e})(Xr.close),Xr.closeSync=(function(t){function e(r){t.apply(Xr,arguments),jUe()}return Object.defineProperty(e,PU,{value:t}),e})(Xr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){SE(Xr[ds]),require("assert").equal(Xr[ds].length,0)}));var HUe;global[ds]||VUe(global,Xr[ds]);Nie.exports=Rie(UGt(Xr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Xr.__patched&&(Nie.exports=Rie(Xr),Xr.__patched=!0);function Rie(t){MGt(t),t.gracefulify=Rie,t.createReadStream=N,t.createWriteStream=L;var e=t.readFile;t.readFile=r;function r(D,V,M){return typeof V=="function"&&(M=V,V=null),Z(D,V,M);function Z(J,Ne,he,ke){return e(J,Ne,function(X){X&&(X.code==="EMFILE"||X.code==="ENFILE")?bI([Z,[J,Ne,he],X,ke||Date.now(),Date.now()]):typeof he=="function"&&he.apply(this,arguments)})}}var i=t.writeFile;t.writeFile=n;function n(D,V,M,Z){return typeof M=="function"&&(Z=M,M=null),J(D,V,M,Z);function J(Ne,he,ke,X,Re){return i(Ne,he,ke,function(Ce){Ce&&(Ce.code==="EMFILE"||Ce.code==="ENFILE")?bI([J,[Ne,he,ke,X],Ce,Re||Date.now(),Date.now()]):typeof X=="function"&&X.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(D,V,M,Z){return typeof M=="function"&&(Z=M,M=null),J(D,V,M,Z);function J(Ne,he,ke,X,Re){return s(Ne,he,ke,function(Ce){Ce&&(Ce.code==="EMFILE"||Ce.code==="ENFILE")?bI([J,[Ne,he,ke,X],Ce,Re||Date.now(),Date.now()]):typeof X=="function"&&X.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(D,V,M,Z){return typeof M=="function"&&(Z=M,M=0),J(D,V,M,Z);function J(Ne,he,ke,X,Re){return a(Ne,he,ke,function(Ce){Ce&&(Ce.code==="EMFILE"||Ce.code==="ENFILE")?bI([J,[Ne,he,ke,X],Ce,Re||Date.now(),Date.now()]):typeof X=="function"&&X.apply(this,arguments)})}}var u=t.readdir;t.readdir=f;var l=/^v[0-5]\./;function f(D,V,M){typeof V=="function"&&(M=V,V=null);var Z=l.test(process.version)?function(he,ke,X,Re){return u(he,J(he,ke,X,Re))}:function(he,ke,X,Re){return u(he,ke,J(he,ke,X,Re))};return Z(D,V,M);function J(Ne,he,ke,X){return function(Re,Ce){Re&&(Re.code==="EMFILE"||Re.code==="ENFILE")?bI([Z,[Ne,he,ke],Re,X||Date.now(),Date.now()]):(Ce&&Ce.sort&&Ce.sort(),typeof ke=="function"&&ke.call(this,Re,Ce))}}}if(process.version.substr(0,4)==="v0.8"){var h=FGt(t);g=h.ReadStream,C=h.WriteStream}var d=t.ReadStream;d&&(g.prototype=Object.create(d.prototype),g.prototype.open=E);var m=t.WriteStream;m&&(C.prototype=Object.create(m.prototype),C.prototype.open=S),Object.defineProperty(t,"ReadStream",{get:function(){return g},set:function(D){g=D},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return C},set:function(D){C=D},enumerable:!0,configurable:!0});var A=g;Object.defineProperty(t,"FileReadStream",{get:function(){return A},set:function(D){A=D},enumerable:!0,configurable:!0});var y=C;Object.defineProperty(t,"FileWriteStream",{get:function(){return y},set:function(D){y=D},enumerable:!0,configurable:!0});function g(D,V){return this instanceof g?(d.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}function E(){var D=this;j(D.path,D.flags,D.mode,function(V,M){V?(D.autoClose&&D.destroy(),D.emit("error",V)):(D.fd=M,D.emit("open",M),D.read())})}function C(D,V){return this instanceof C?(m.apply(this,arguments),this):C.apply(Object.create(C.prototype),arguments)}function S(){var D=this;j(D.path,D.flags,D.mode,function(V,M){V?(D.destroy(),D.emit("error",V)):(D.fd=M,D.emit("open",M))})}function N(D,V){return new t.ReadStream(D,V)}function L(D,V){return new t.WriteStream(D,V)}var T=t.open;t.open=j;function j(D,V,M,Z){return typeof M=="function"&&(Z=M,M=null),J(D,V,M,Z);function J(Ne,he,ke,X,Re){return T(Ne,he,ke,function(Ce,xt){Ce&&(Ce.code==="EMFILE"||Ce.code==="ENFILE")?bI([J,[Ne,he,ke,X],Ce,Re||Date.now(),Date.now()]):typeof X=="function"&&X.apply(this,arguments)})}}return t}function bI(t){SE("ENQUEUE",t[0].name,t[1]),Xr[ds].push(t),Tie()}var OU;function jUe(){for(var t=Date.now(),e=0;e<Xr[ds].length;++e)Xr[ds][e].length>2&&(Xr[ds][e][3]=t,Xr[ds][e][4]=t);Tie()}function Tie(){if(clearTimeout(OU),OU=void 0,Xr[ds].length!==0){var t=Xr[ds].shift(),e=t[0],r=t[1],i=t[2],n=t[3],s=t[4];if(n===void 0)SE("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-n>=6e4){SE("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,i)}else{var a=Date.now()-s,c=Math.max(s-n,1),u=Math.min(c*1.2,100);a>=u?(SE("RETRY",e.name,r),e.apply(null,r.concat([n]))):Xr[ds].push(t)}OU===void 0&&(OU=setTimeout(Tie,0))}}});var kU=p((E7r,zUe)=>{"use strict";var fh=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";fh.writable=t=>fh(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";fh.readable=t=>fh(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState= Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};gne.exports={AggregateError:Ane,kEmptyObject:Object.freeze({}),once(t){let e=!1;return function(...r){e||(e=!0,t.apply(this,r))}},createDeferredPromise:function(){let t,e;return{promise:new Promise((i,n)=>{t=i,e=n}),resolve:t,reject:e}},promisify(t){return new Promise((e,r)=>{t((i,...n)=>i?r(i):e(...n))})},debuglog(){return function(){}},format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,i]){let n=e.shift();return i==="f"?n.toFixed(6):i==="j"?JSON.stringify(n):i==="s"&&typeof n=="object"?`${n.constructor!==Object?n.constructor.name:""} {}`.trim():n.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}},types:{isAsyncFunction(t){return t instanceof Izt},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:Szt,deprecate(t,e){return t},addAbortListener:require("events").addAbortListener||function(e,r){if(e===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",e);M4e(e,"signal"),Bzt(r,"listener");let i;return e.aborted?queueMicrotask(()=>r()):(e.addEventListener("abort",r,{__proto__:null,once:!0,[Ezt]:!0}),i=()=>{e.removeEventListener("abort",r)}),{__proto__:null,[bzt](){var n;(n=i)===null||n===void 0||n()}}},AbortSignalAny:wzt.any||function(e){if(e.length===1)return e[0];let r=new Czt,i=()=>r.abort();return e.forEach(n=>{M4e(n,"signals"),n.addEventListener("abort",i,{once:!0})}),r.signal.addEventListener("abort",()=>{e.forEach(n=>n.removeEventListener("abort",i))},{once:!0}),r.signal}};gne.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var _o=p((TKr,q4e)=>{"use strict";var{format:vzt,inspect:iq,AggregateError:_zt}=Ps(),xzt=globalThis.AggregateError||_zt,Rzt=Symbol("kIsNodeError"),Tzt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],Nzt=/^([A-Z][a-z0-9]*)+$/,Dzt="__node_internal_",nq={};function _E(t,e){if(!t)throw new nq.ERR_INTERNAL_ASSERTION(e)}function F4e(t){let e="",r=t.length,i=t[0]==="-"?1:0;for(;r>=i+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function Ozt(t,e,r){if(typeof e=="function")return _E(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let i=(e.match(/%[dfijoOs]/g)||[]).length;return _E(i===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),r.length===0?e:vzt(e,...r)}function ms(t,e,r){r||(r=Error);class i extends r{constructor(...s){super(Ozt(t,e,s))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(i.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),i.prototype.code=t,i.prototype[Rzt]=!0,nq[t]=i}function U4e(t){let e=Dzt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function Pzt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new xzt([e,t],e.message);return r.code=e.code,r}return t||e}var yne=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new nq.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};ms("ERR_ASSERTION","%s",Error);ms("ERR_INVALID_ARG_TYPE",(t,e,r)=>{_E(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let i="The ";t.endsWith(" argument")?i+=`${t} `:i+=`"${t}" ${t.includes(".")?"property":"argument"} `,i+="must be ";let n=[],s=[],o=[];for(let c of e)_E(typeof c=="string","All expected entries have to be of type string"),Tzt.includes(c)?n.push(c.toLowerCase()):Nzt.test(c)?s.push(c):(_E(c!=="object",'The value "object" should be written as "Object"'),o.push(c));if(s.length>0){let c=n.indexOf("object");c!==-1&&(n.splice(n,c,1),s.push("Object"))}if(n.length>0){switch(n.length){case 1:i+=`of type ${n[0]}`;break;case 2:i+=`one of type ${n[0]} or ${n[1]}`;break;default:{let c=n.pop();i+=`one of type ${n.join(", ")}, or ${c}`}}(s.length>0||o.length>0)&&(i+=" or ")}if(s.length>0){switch(s.length){case 1:i+=`an instance of ${s[0]}`;break;case 2:i+=`an instance of ${s[0]} or ${s[1]}`;break;default:{let c=s.pop();i+=`an instance of ${s.join(", ")}, or ${c}`}}o.length>0&&(i+=" or ")}switch(o.length){case 0:break;case 1:o[0].toLowerCase()!==o[0]&&(i+="an "),i+=`${o[0]}`;break;case 2:i+=`one of ${o[0]} or ${o[1]}`;break;default:{let c=o.pop();i+=`one of ${o.join(", ")}, or ${c}`}}if(r==null)i+=`. Received ${r}`;else if(typeof r=="function"&&r.name)i+=`. Received function ${r.name}`;else if(typeof r=="object"){var a;if((a=r.constructor)!==null&&a!==void 0&&a.name)i+=Line truncated
`)),e.linkname&&(r+=Woe(" linkpath="+e.linkname+`
`));let i=e.pax;if(i)for(let n in i)r+=Woe(" "+n+"="+i[n]+`
`);return jt.from(r)};uS.decodePax=function(e){let r={};for(;e.length;){let i=0;for(;i<e.length&&e[i]!==32;)i++;let n=parseInt(jt.toString(e.subarray(0,i)),10);if(!n)return r;let s=jt.toString(e.subarray(i+1,n-1)),o=s.indexOf("=");if(o===-1)return r;r[s.slice(0,o)]=s.slice(o+1),e=e.subarray(n)}return r};uS.encode=function(e){let r=jt.alloc(512),i=e.name,n="";if(e.typeflag===5&&i[i.length-1]!=="/"&&(i+="/"),jt.byteLength(i)!==i.length)return null;for(;jt.byteLength(i)>100;){let s=i.indexOf("/");if(s===-1)return null;n+=n?"/"+i.slice(0,s):i.slice(0,s),i=i.slice(s+1)}return jt.byteLength(i)>100||jt.byteLength(n)>155||e.linkname&&jt.byteLength(e.linkname)>100?null:(jt.write(r,i),jt.write(r,UA(e.mode&Ytr,6),100),jt.write(r,UA(e.uid,6),108),jt.write(r,UA(e.gid,6),116),irr(e.size,r,124),jt.write(r,UA(e.mtime.getTime()/1e3|0,11),136),r[156]=P3+trr(e.type),e.linkname&&jt.write(r,e.linkname,157),jt.copy(UVe,r,_N),jt.copy($tr,r,Joe),e.uname&&jt.write(r,e.uname,265),e.gname&&jt.write(r,e.gname,297),jt.write(r,UA(e.devmajor||0,6),329),jt.write(r,UA(e.devminor||0,6),337),n&&jt.write(r,n,345),jt.write(r,UA(GVe(r),6),148),r)};uS.decode=function(e,r,i){let n=e[156]===0?0:e[156]-P3,s=cS(e,0,100,r),o=FA(e,100,8),a=FA(e,108,8),c=FA(e,116,8),u=FA(e,124,12),l=FA(e,136,12),f=err(n),h=e[157]===0?null:cS(e,157,100,r),d=cS(e,265,32),m=cS(e,297,32),A=FA(e,329,8),y=FA(e,337,8),g=GVe(e);if(g===256)return null;if(g!==FA(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(Ktr(e))e[345]&&(s=cS(e,345,155,r)+"/"+s);else if(!Xtr(e)){if(!i)throw new Error("Invalid tar header: unknown format.")}return n===0&&s&&s[s.length-1]==="/"&&(n=5),{name:s,mode:o,uid:a,gid:c,size:u,mtime:new Date(1e3*l),type:f,linkname:h,uname:d,gname:m,devmajor:A,devminor:y,pax:null}};function Ktr(t){return jt.equals(UVe,t.subarray(_N,_N+6))}function Xtr(t){return jt.equals(Wtr,t.subarray(_N,_N+6))&&jt.equals(Jtr,t.subarray(Joe,Joe+2))}function Ztr(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function err(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function trr(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function qVe(t,e,r,i){for(;r<i;r++)if(t[r]===e)return r;return i}function GVe(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function UA(t,e){return t=t.toString(8),t.length>e?ztr.slice(0,e)+" ":Vtr.slice(0,e-t.length)+t+" "}function rrr(t,e,r){e[r]=128;for(let i=11;i>0;i--)e[r+i]=t&255,t=Math.floor(t/256)}function irr(t,e,r){t.toString(8).length>11?rrr(t,e,r):jt.write(e,UA(t,11),r)}function nrr(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],i;for(i=t.length-1;i>0;i--){let o=t[i];e?r.push(o):r.push(255-o)}let n=0,s=r.length;for(i=0;i<s;i++)n+=r[i]*Math.pow(256,i);return e?n:-1*n}function FA(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return nrr(t);{for(;e<t.length&&t[e]===32;)e++;let i=Ztr(qVe(t,32,e,t.length),t.length,t.length);for(;e<i&&t[e]===0;)e++;return i===e?0:parseInt(jt.toString(t.subarray(e,i)),8)}}function cS(t,e,r,i){return jt.toString(t.subarray(e,qVe(t,0,e,e+r)),i)}function Woe(t){let e=jt.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var $Ve=p((YZr,zVe)=>{var{Writable:srr,Readable:orr,getStreamError:HVe}=$oe(),arr=Noe(),jVe=O3(),lS=Yoe(),crr=jVe.alloc(0),Xoe=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new arr,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return crr;let r=this._next(e);if(e===r.byteLength)return r;let i=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),i.push(r);return jVe.concat(i)}_next(e){let r=this.queue.peek(),i=r.byteLength-this._offset;if(e>=i){let n=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=i,this.shifted+=i,n}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},Zoe=class extends orr{constructor(e,r,i){super(),this.header=r,this.offset=i,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(HVe(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=VVe(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},eae=class extends s Line truncated
`,nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",Nfr:"\u{1D511}",nge:"\u2271",ngE:"\u2267\u0338",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",ngt:"\u226F",nGt:"\u226B\u20D2",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",NJcy:"\u040A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nle:"\u2270",nlE:"\u2266\u0338",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nlt:"\u226E",nLt:"\u226A\u20D2",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",not:"\xAC",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",Nscr:"\u{1D4A9}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsube:"\u2288",nsubE:"\u2AC5\u0338",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupe:"\u2289",nsupE:"\u2AC6\u0338",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntilde:"\xF1",Ntilde:"\xD1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",Nu:"\u039D",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",oacute:"\xF3",Oacute:"\xD3",oast:"\u229B",ocir:"\u229A",ocirc:"\xF4",Ocirc:"\xD4",ocy:"\u043E",Ocy:"\u041E",odash:"\u229D",odblac:"\u0151",Odblac:"\u0150",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",OElig:"\u0152",ofcir:"\u29BF",ofr:"\u{1D52C}",Ofr:"\u{1D512}",ogon:"\u02DB",ograve:"\xF2",Ograve:"\xD2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",Omacr:"\u014C",omega:"\u03C9",Omega:"\u03A9",omicron:"\u03BF",Omicron:"\u039F",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",Oopf:"\u{1D546}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",or:"\u2228",Or:"\u2A54",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",oscr:"\u2134",Oscr:"\u{1D4AA}",oslash:"\xF8",Oslash:"\xD8",osol:"\u2298",otilde:"\xF5",Otilde:"\xD5",otimes:"\u2297",Otimes:"\u2A37",otimesas:"\u2A36",ouml:"\xF6",Ouml:"\xD6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4 Line truncated
`).forEach(r=>{r.match($or)||r.match(Wor)||(e+=r)}),Buffer.from(e,"base64")}function Yor(t,e="CERTIFICATE"){let i=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...i,`-----END ${e}-----`].join(`
`+S);let[,k]=R;return k.replace(/\s/g,"").split(cb).map(U=>U.replace(Fg,"").trim())}o(ub,"parseParams");function ym(x,S){var R={};return Object.keys(x).forEach(k=>{var U=x[k],G,W=p(U),J=!W&&U.length===1||W&&U.length===0;if(Array.isArray(U))G=[...U],U=G.pop(),R[k]=G.concat(G.length>0?te:U);else if(J)R[k]=U;else{if(G=ub(U),U.length===0&&!W&&G.length===0)throw new Error("autoInject task functions require explicit parameters.");W||G.pop(),R[k]=G.concat(te)}function te(Oe,Qt){var zt=G.map(Ft=>Oe[Ft]);zt.push(Qt),E(U)(...zt)}o(te,"newTask")}),Yl(R,S)}o(ym,"autoInject");class lb{static{o(this,"DLL")}constructor(){this.head=this.tail=null,this.length=0}removeLink(S){return S.prev?S.prev.next=S.next:this.head=S.next,S.next?S.next.prev=S.prev:this.tail=S.prev,S.prev=S.next=null,this.length-=1,S}empty(){for(;this.head;)this.shift();return this}insertAfter(S,R){R.prev=S,R.next=S.next,S.next?S.next.prev=R:this.tail=R,S.next=R,this.length+=1}insertBefore(S,R){R.prev=S.prev,R.next=S,S.prev?S.prev.next=R:this.head=R,S.prev=R,this.length+=1}unshift(S){this.head?this.insertBefore(this.head,S):qg(this,S)}push(S){this.tail?this.insertAfter(this.tail,S):qg(this,S)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var S=this.head;S;)yield S.data,S=S.next}remove(S){for(var R=this.head;R;){var{next:k}=R;S(R)&&this.removeLink(R),R=k}return this}}function qg(x,S){x.length=1,x.head=x.tail=S}o(qg,"setInitial");function Em(x,S,R){if(S==null)S=1;else if(S===0)throw new RangeError("Concurrency must not be zero");var k=E(x),U=0,G=[];let W={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function J(Ve,Ne){W[Ve].push(Ne)}o(J,"on");function te(Ve,Ne){let ze=o((...Ut)=>{Oe(Ve,ze),Ne(...Ut)},"handleAndRemove");W[Ve].push(ze)}o(te,"once");function Oe(Ve,Ne){if(!Ve)return Object.keys(W).forEach(ze=>W[ze]=[]);if(!Ne)return W[Ve]=[];W[Ve]=W[Ve].filter(ze=>ze!==Ne)}o(Oe,"off");function Qt(Ve,...Ne){W[Ve].forEach(ze=>ze(...Ne))}o(Qt,"trigger");var zt=!1;function Ft(Ve,Ne,ze,Ut){if(Ut!=null&&typeof Ut!="function")throw new Error("task callback must be a function");$t.started=!0;var Lr,bn;function kc(Xg,...Iv){if(Xg)return ze?bn(Xg):Lr();if(Iv.length<=1)return Lr(Iv[0]);Lr(Iv)}o(kc,"promiseCallback");var Bb=$t._createTaskItem(Ve,ze?kc:Ut||kc);if(Ne?$t._tasks.unshift(Bb):$t._tasks.push(Bb),zt||(zt=!0,l(()=>{zt=!1,$t.process()})),ze||!Ut)return new Promise((Xg,Iv)=>{Lr=Xg,bn=Iv})}o(Ft,"_insert");function Pc(Ve){return function(Ne,...ze){U-=1;for(var Ut=0,Lr=Ve.length;Ut<Lr;Ut++){var bn=Ve[Ut],kc=G.indexOf(bn);kc===0?G.shift():kc>0&&G.splice(kc,1),bn.callback(Ne,...ze),Ne!=null&&Qt("error",Ne,bn.data)}U<=$t.concurrency-$t.buffer&&Qt("unsaturated"),$t.idle()&&Qt("drain"),$t.process()}}o(Pc,"_createCB");function Sb(Ve){return Ve.length===0&&$t.idle()?(l(()=>Qt("drain")),!0):!1}o(Sb,"_maybeDrain");let Kg=o(Ve=>Ne=>{if(!Ne)return new Promise((ze,Ut)=>{te(Ve,(Lr,bn)=>{if(Lr)return Ut(Lr);ze(bn)})});Oe(Ve),J(Ve,Ne)},"eventMethod");var Cv=!1,$t={_tasks:new lb,_createTaskItem(Ve,Ne){return{data:Ve,callback:Ne}},*[Symbol.iterator](){yield*$t._tasks[Symbol.iterator]()},concurrency:S,payload:R,buffer:S/4,started:!1,paused:!1,push(Ve,Ne){return Array.isArray(Ve)?Sb(Ve)?void 0:Ve.map(ze=>Ft(ze,!1,!1,Ne)):Ft(Ve,!1,!1,Ne)},pushAsync(Ve,Ne){return Array.isArray(Ve)?Sb(Ve)?void 0:Ve.map(ze=>Ft(ze,!1,!0,Ne)):Ft(Ve,!1,!0,Ne)},kill(){Oe(),$t._tasks.empty()},unshift(Ve,Ne){return Array.isArray(Ve)?Sb(Ve)?void 0:Ve.map(ze=>Ft(ze,!0,!1,Ne)):Ft(Ve,!0,!1,Ne)},unshiftAsync(Ve,Ne){return Array.isArray(Ve)?Sb(Ve)?void 0:Ve.map(ze=>Ft(ze,!0,!0,Ne)):Ft(Ve,!0,!0,Ne)},remove(Ve){$t._tasks.remove(Ve)},process(){if(!Cv){for(Cv=!0;!$t.paused&&U<$t.concurrency&&$t._tasks.length;){var Ve=[],Ne=[],ze=$t._tasks.length;$t.payload&&(ze=Math.min(ze,$t.payload));for(var Ut=0;Ut<ze;Ut++){var Lr=$t._tasks.shift();Ve.push(Lr),G.push(Lr),Ne.push(Lr.data)}U+=1,$t._tasks.length===0&&Qt("empty"),U===$t.concurrency&&Qt("saturated");var bn=Y(Pc(Ve));k(Ne,bn)}Cv=!1}},length(){return $t._tasks.length},running(){return U},workersList(){return G},idle(){return $t._tasks.length+U===0},pause(){$t.paused=!0},resume(){$t.paused!==!1&&($t.paused=!1,l($t.process))}};return Object.defineProperties($t,{saturated:{writable:!1,value:Kg("saturated")},unsaturated:{writable:!1,value:Kg("unsaturated")},empty:{writable:!1,value:Kg("empty")},drain:{writable:!1,value:Kg("drain")},error:{writable:!1,value:Kg("error")}}),$t}o(Em,"queue$1");function bm(x,S){return Em(x,1,S)}o(bm,"cargo$1");function so(x,S,R){return Em(x,S,R)}o(so,"cargo");function fb(x,S,R,k){k=N(k);var U=E(R);return Yr(x,(G,W,J)=>{U(S,G,(te,Oe)=>{S=Oe,J(te)})},G=>k(G,S))}o(fb,"reduce");var La=y(fb,4);function Gg(...x){var S=x.map(E);return function(...R){var k=this,U=R[R.length-1];return typeof U=="function"?R.pop():U=Qa(),La(S,R,(G,W,J)=>{W.apply(k,G.concat((te,...Oe)=>{J(te,Oe)}))},(G,W)=>U(G,...W)),U[Cs]}}o(Gg,"seq");function ve(...x){return Gg(. Line truncated
GFS4: `),console.error(t)},"debug"));Zr[ps]||(jUe=global[ps]||[],zUe(Zr,jUe),Zr.close=(function(t){function e(r,i){return t.call(Zr,r,function(n){n||VUe(),typeof i=="function"&&i.apply(this,arguments)})}return o(e,"close"),Object.defineProperty(e,QU,{value:t}),e})(Zr.close),Zr.closeSync=(function(t){function e(r){t.apply(Zr,arguments),VUe()}return o(e,"closeSync"),Object.defineProperty(e,QU,{value:t}),e})(Zr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){BE(Zr[ps]),require("assert").equal(Zr[ps].length,0)}));var jUe;global[ps]||zUe(global,Zr[ps]);Die.exports=Tie(qGt(Zr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Zr.__patched&&(Die.exports=Tie(Zr),Zr.__patched=!0);function Tie(t){FGt(t),t.gracefulify=Tie,t.createReadStream=D,t.createWriteStream=M;var e=t.readFile;t.readFile=r;function r(O,z,F){return typeof z=="function"&&(F=z,z=null),ee(O,z,F);function ee(Y,De,de,Qe){return e(Y,De,function(Z){Z&&(Z.code==="EMFILE"||Z.code==="ENFILE")?wI([ee,[Y,De,de],Z,Qe||Date.now(),Date.now()]):typeof de=="function"&&de.apply(this,arguments)})}o(ee,"go$readFile")}o(r,"readFile");var i=t.writeFile;t.writeFile=n;function n(O,z,F,ee){return typeof F=="function"&&(ee=F,F=null),Y(O,z,F,ee);function Y(De,de,Qe,Z,Te){return i(De,de,Qe,function(Ie){Ie&&(Ie.code==="EMFILE"||Ie.code==="ENFILE")?wI([Y,[De,de,Qe,Z],Ie,Te||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}o(Y,"go$writeFile")}o(n,"writeFile");var s=t.appendFile;s&&(t.appendFile=a);function a(O,z,F,ee){return typeof F=="function"&&(ee=F,F=null),Y(O,z,F,ee);function Y(De,de,Qe,Z,Te){return s(De,de,Qe,function(Ie){Ie&&(Ie.code==="EMFILE"||Ie.code==="ENFILE")?wI([Y,[De,de,Qe,Z],Ie,Te||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}o(Y,"go$appendFile")}o(a,"appendFile");var c=t.copyFile;c&&(t.copyFile=u);function u(O,z,F,ee){return typeof F=="function"&&(ee=F,F=0),Y(O,z,F,ee);function Y(De,de,Qe,Z,Te){return c(De,de,Qe,function(Ie){Ie&&(Ie.code==="EMFILE"||Ie.code==="ENFILE")?wI([Y,[De,de,Qe,Z],Ie,Te||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}o(Y,"go$copyFile")}o(u,"copyFile");var l=t.readdir;t.readdir=h;var f=/^v[0-5]\./;function h(O,z,F){typeof z=="function"&&(F=z,z=null);var ee=f.test(process.version)?o(function(de,Qe,Z,Te){return l(de,Y(de,Qe,Z,Te))},"go$readdir"):o(function(de,Qe,Z,Te){return l(de,Qe,Y(de,Qe,Z,Te))},"go$readdir");return ee(O,z,F);function Y(De,de,Qe,Z){return function(Te,Ie){Te&&(Te.code==="EMFILE"||Te.code==="ENFILE")?wI([ee,[De,de,Qe],Te,Z||Date.now(),Date.now()]):(Ie&&Ie.sort&&Ie.sort(),typeof Qe=="function"&&Qe.call(this,Te,Ie))}}}if(o(h,"readdir"),process.version.substr(0,4)==="v0.8"){var d=UGt(t);y=d.ReadStream,I=d.WriteStream}var p=t.ReadStream;p&&(y.prototype=Object.create(p.prototype),y.prototype.open=b);var A=t.WriteStream;A&&(I.prototype=Object.create(A.prototype),I.prototype.open=B),Object.defineProperty(t,"ReadStream",{get:o(function(){return y},"get"),set:o(function(O){y=O},"set"),enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:o(function(){return I},"get"),set:o(function(O){I=O},"set"),enumerable:!0,configurable:!0});var g=y;Object.defineProperty(t,"FileReadStream",{get:o(function(){return g},"get"),set:o(function(O){g=O},"set"),enumerable:!0,configurable:!0});var E=I;Object.defineProperty(t,"FileWriteStream",{get:o(function(){return E},"get"),set:o(function(O){E=O},"set"),enumerable:!0,configurable:!0});function y(O,z){return this instanceof y?(p.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}o(y,"ReadStream");function b(){var O=this;V(O.path,O.flags,O.mode,function(z,F){z?(O.autoClose&&O.destroy(),O.emit("error",z)):(O.fd=F,O.emit("open",F),O.read())})}o(b,"ReadStream$open");function I(O,z){return this instanceof I?(A.apply(this,arguments),this):I.apply(Object.create(I.prototype),arguments)}o(I,"WriteStream");function B(){var O=this;V(O.path,O.flags,O.mode,function(z,F){z?(O.destroy(),O.emit("error",z)):(O.fd=F,O.emit("open",F))})}o(B,"WriteStream$open");function D(O,z){return new t.ReadStream(O,z)}o(D,"createReadStream");function M(O,z){return new t.WriteStream(O,z)}o(M,"createWriteStream");var N=t.open;t.open=V;function V(O,z,F,ee){return typeof F=="function"&&(ee=F,F=null),Y(O,z,F,ee);function Y(De,de,Qe,Z,Te){return N(De,de,Qe,function(Ie,Rt){Ie&&(Ie.code==="EMFILE"||Ie.code==="ENFILE")?wI([Y,[De,de,Qe,Z],Ie,Te||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}o(Y,"go$open")}return o(V,"open"),t}o(Tie,"patch");function wI(t){BE("ENQUEUE",t[0].name,t[1]),Zr[ps].push(t),Nie()}o(wI,"enqueue");var kU;function VUe(){for(var t=Date.now(),e=0;e<Zr[ps].length;++e)Zr[ps][e].length>2&&(Zr[ps][e][3]=t,Zr[ps][e][4]=t);Nie()}o(VUe,"resetQueue");function Nie(){if(clearTimeout(kU),kU=void 0,Zr[ps].length!==0){var t=Zr[ps].shift(),e=t[0],r=t[1],i=t[2],n=t[3],s=t[4];if(n===void 0)BE("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-n>=6e4){BE("TIMEOUT", Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};yne.exports={AggregateError:gne,kEmptyObject:Object.freeze({}),once(t){let e=!1;return function(...r){e||(e=!0,t.apply(this,r))}},createDeferredPromise:o(function(){let t,e;return{promise:new Promise((i,n)=>{t=i,e=n}),resolve:t,reject:e}},"createDeferredPromise"),promisify(t){return new Promise((e,r)=>{t((i,...n)=>i?r(i):e(...n))})},debuglog(){return function(){}},format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,i]){let n=e.shift();return i==="f"?n.toFixed(6):i==="j"?JSON.stringify(n):i==="s"&&typeof n=="object"?`${n.constructor!==Object?n.constructor.name:""} {}`.trim():n.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}},types:{isAsyncFunction(t){return t instanceof Szt},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:Bzt,deprecate(t,e){return t},addAbortListener:require("events").addAbortListener||o(function(e,r){if(e===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",e);F4e(e,"signal"),vzt(r,"listener");let i;return e.aborted?queueMicrotask(()=>r()):(e.addEventListener("abort",r,{__proto__:null,once:!0,[bzt]:!0}),i=o(()=>{e.removeEventListener("abort",r)},"removeEventListener")),{__proto__:null,[wzt](){var n;(n=i)===null||n===void 0||n()}}},"addAbortListener"),AbortSignalAny:Czt.any||o(function(e){if(e.length===1)return e[0];let r=new Izt,i=o(()=>r.abort(),"abort");return e.forEach(n=>{F4e(n,"signals"),n.addEventListener("abort",i,{once:!0})}),r.signal.addEventListener("abort",()=>{e.forEach(n=>n.removeEventListener("abort",i))},{once:!0}),r.signal},"AbortSignalAny")};yne.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var xo=m((hfi,G4e)=>{"use strict";var{format:_zt,inspect:sq,AggregateError:xzt}=ks(),Rzt=globalThis.AggregateError||xzt,Tzt=Symbol("kIsNodeError"),Nzt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],Dzt=/^([A-Z][a-z0-9]*)+$/,Ozt="__node_internal_",oq={};function xE(t,e){if(!t)throw new oq.ERR_INTERNAL_ASSERTION(e)}o(xE,"assert");function U4e(t){let e="",r=t.length,i=t[0]==="-"?1:0;for(;r>=i+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}o(U4e,"addNumericalSeparator");function Pzt(t,e,r){if(typeof e=="function")return xE(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let i=(e.match(/%[dfijoOs]/g)||[]).length;return xE(i===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),r.length===0?e:_zt(e,...r)}o(Pzt,"getMessage");function As(t,e,r){r||(r=Error);class i extends r{static{o(this,"NodeError")}constructor(...s){super(Pzt(t,e,s))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(i.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),i.prototype.code=t,i.prototype[Tzt]=!0,oq[t]=i}o(As,"E");function q4e(t){let e=Ozt+t.name;return Object.defineProperty(t,"name",{value:e}),t}o(q4e,"hideStackFrames");function kzt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new Rzt([e,t],e.message);return r.code=e.code,r}return t||e}o(kzt,"aggregateTwoErrors");var Ene=class extends Error{static{o(this,"AbortError")}constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new oq.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};As("ERR_ASSERTION","%s",Error);As("ERR_INVALID_ARG_TYPE",(t,e,r)=>{xE(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let i="The ";t.endsWith(" argument")?i+=`${t} `:i+=`"${t}" ${t.includes(".")?"property":"argument"} `,i+="must be ";let n=[],s=[],a=[];for(let u of e)xE(typeof u=="string","All expected entries have to be of type string"),Nzt.includes(u)?n.push(u.toLowerCase()):Dzt.test(u)?s.push(u):(xE(u!=="object",'The value "object" should be written as "Object"'),a.push(u));if(s.length>0){let u=n.indexOf("object");u!==-1&&(n.splice(n,u,1),s.push("Object"))}if(n.length>0){switch(n.length){case 1:i+=`of type ${n[0]}`;break;case 2:i+=`one of type ${n[0]} or ${n[1]}`;break;default:{let u=n.pop();i+=`one of type ${n.join(", ")}, or ${u}`}}(s.length>0||a.length>0)&&(i+=" or ")}if(s.length>0){switch(s.length){case 1:i+=`an instance of ${s[0]}`;break;case 2:i+=`an instance of ${s[0]} or ${s[1]}`;break;default:{let u=s.pop();i+=`an instance of ${s.join(", ")}, or ${u}`}}a.length>0&&(i+=" or ")}switch(a.length){case 0:break;case 1:a[0].toLowerCase()!==a[0]&&(i+="an "),i+=`${a[0]}`;break;case Line truncated
`)),e.linkname&&(r+=Joe(" linkpath="+e.linkname+`
`));let i=e.pax;if(i)for(let n in i)r+=Joe(" "+n+"="+i[n]+`
`);return Vt.from(r)},"encodePax");lS.decodePax=o(function(e){let r={};for(;e.length;){let i=0;for(;i<e.length&&e[i]!==32;)i++;let n=parseInt(Vt.toString(e.subarray(0,i)),10);if(!n)return r;let s=Vt.toString(e.subarray(i+1,n-1)),a=s.indexOf("=");if(a===-1)return r;r[s.slice(0,a)]=s.slice(a+1),e=e.subarray(n)}return r},"decodePax");lS.encode=o(function(e){let r=Vt.alloc(512),i=e.name,n="";if(e.typeflag===5&&i[i.length-1]!=="/"&&(i+="/"),Vt.byteLength(i)!==i.length)return null;for(;Vt.byteLength(i)>100;){let s=i.indexOf("/");if(s===-1)return null;n+=n?"/"+i.slice(0,s):i.slice(0,s),i=i.slice(s+1)}return Vt.byteLength(i)>100||Vt.byteLength(n)>155||e.linkname&&Vt.byteLength(e.linkname)>100?null:(Vt.write(r,i),Vt.write(r,qA(e.mode&Ktr,6),100),Vt.write(r,qA(e.uid,6),108),Vt.write(r,qA(e.gid,6),116),nrr(e.size,r,124),Vt.write(r,qA(e.mtime.getTime()/1e3|0,11),136),r[156]=Q3+rrr(e.type),e.linkname&&Vt.write(r,e.linkname,157),Vt.copy(qVe,r,xN),Vt.copy(Wtr,r,Yoe),e.uname&&Vt.write(r,e.uname,265),e.gname&&Vt.write(r,e.gname,297),Vt.write(r,qA(e.devmajor||0,6),329),Vt.write(r,qA(e.devminor||0,6),337),n&&Vt.write(r,n,345),Vt.write(r,qA(HVe(r),6),148),r)},"encode");lS.decode=o(function(e,r,i){let n=e[156]===0?0:e[156]-Q3,s=uS(e,0,100,r),a=UA(e,100,8),c=UA(e,108,8),u=UA(e,116,8),l=UA(e,124,12),f=UA(e,136,12),h=trr(n),d=e[157]===0?null:uS(e,157,100,r),p=uS(e,265,32),A=uS(e,297,32),g=UA(e,329,8),E=UA(e,337,8),y=HVe(e);if(y===256)return null;if(y!==UA(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(Xtr(e))e[345]&&(s=uS(e,345,155,r)+"/"+s);else if(!Ztr(e)){if(!i)throw new Error("Invalid tar header: unknown format.")}return n===0&&s&&s[s.length-1]==="/"&&(n=5),{name:s,mode:a,uid:c,gid:u,size:l,mtime:new Date(1e3*f),type:h,linkname:d,uname:p,gname:A,devmajor:g,devminor:E,pax:null}},"decode");function Xtr(t){return Vt.equals(qVe,t.subarray(xN,xN+6))}o(Xtr,"isUSTAR");function Ztr(t){return Vt.equals(Jtr,t.subarray(xN,xN+6))&&Vt.equals(Ytr,t.subarray(Yoe,Yoe+2))}o(Ztr,"isGNU");function err(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}o(err,"clamp");function trr(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}o(trr,"toType");function rrr(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}o(rrr,"toTypeflag");function GVe(t,e,r,i){for(;r<i;r++)if(t[r]===e)return r;return i}o(GVe,"indexOf");function HVe(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}o(HVe,"cksum");function qA(t,e){return t=t.toString(8),t.length>e?$tr.slice(0,e)+" ":ztr.slice(0,e-t.length)+t+" "}o(qA,"encodeOct");function irr(t,e,r){e[r]=128;for(let i=11;i>0;i--)e[r+i]=t&255,t=Math.floor(t/256)}o(irr,"encodeSizeBin");function nrr(t,e,r){t.toString(8).length>11?irr(t,e,r):Vt.write(e,qA(t,11),r)}o(nrr,"encodeSize");function srr(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],i;for(i=t.length-1;i>0;i--){let a=t[i];e?r.push(a):r.push(255-a)}let n=0,s=r.length;for(i=0;i<s;i++)n+=r[i]*Math.pow(256,i);return e?n:-1*n}o(srr,"parse256");function UA(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return srr(t);{for(;e<t.length&&t[e]===32;)e++;let i=err(GVe(t,32,e,t.length),t.length,t.length);for(;e<i&&t[e]===0;)e++;return i===e?0:parseInt(Vt.toString(t.subarray(e,i)),8)}}o(UA,"decodeOct");function uS(t,e,r,i){return Vt.toString(t.subarray(e,GVe(t,0,e,e+r)),i)}o(uS,"decodeStr");function Joe(t){let e=Vt.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}o(Joe,"addLength")});var WVe=m((Emi,$Ve)=>{var{Writable:orr,Readable:arr,getStreamError:jVe}=Woe(),crr=Doe(),VVe=k3(),fS=Koe(),urr=VVe.alloc(0),Zoe=class{static{o(this,"BufferList")}constructor(){this.buffered=0,this.shifted=0,this.queue=new crr,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return urr;let r=this._next(e);if(e===r.byteLength)return r;let i=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),i.push(r);return VVe.concat(i)}_next(e){let r=this.queue.peek(),i=r.byteLength-this._offset;if(e>=i){let n=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=i,this.shifted+=i,n}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},eae=class extends arr{static{o(this,"Source")}constructor(e,r,i){super(),this.header=r,this.offset=i,this._ Line truncated
`,nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",Nfr:"\u{1D511}",nge:"\u2271",ngE:"\u2267\u0338",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",ngt:"\u226F",nGt:"\u226B\u20D2",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",NJcy:"\u040A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nle:"\u2270",nlE:"\u2266\u0338",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nlt:"\u226E",nLt:"\u226A\u20D2",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",not:"\xAC",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",Nscr:"\u{1D4A9}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsube:"\u2288",nsubE:"\u2AC5\u0338",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupe:"\u2289",nsupE:"\u2AC6\u0338",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntilde:"\xF1",Ntilde:"\xD1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",Nu:"\u039D",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",oacute:"\xF3",Oacute:"\xD3",oast:"\u229B",ocir:"\u229A",ocirc:"\xF4",Ocirc:"\xD4",ocy:"\u043E",Ocy:"\u041E",odash:"\u229D",odblac:"\u0151",Odblac:"\u0150",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",OElig:"\u0152",ofcir:"\u29BF",ofr:"\u{1D52C}",Ofr:"\u{1D512}",ogon:"\u02DB",ograve:"\xF2",Ograve:"\xD2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",Omacr:"\u014C",omega:"\u03C9",Omega:"\u03A9",omicron:"\u03BF",Omicron:"\u039F",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",Oopf:"\u{1D546}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",or:"\u2228",Or:"\u2A54",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",oscr:"\u2134",Oscr:"\u{1D4AA}",oslash:"\xF8",Oslash:"\xD8",osol:"\u2298",otilde:"\xF5",Otilde:"\xD5",otimes:"\u2297",Otimes:"\u2A37",otimesas:"\u2A36",ouml:"\xF6",Ouml:"\xD6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4 Line truncated
`).forEach(r=>{r.match(Wor)||r.match(Jor)||(e+=r)}),Buffer.from(e,"base64")}o(Yor,"toDER");function Kor(t,e="CERTIFICATE"){let i=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...i,`-----END ${e}-----`].join(`
`).concat(`
`)}});var _4=p(tg=>{"use strict";Object.defineProperty(tg,"__esModule",{value:!0});tg.SHA2_HASH_ALGOS=tg.RSA_SIGNATURE_ALGOS=tg.ECDSA_SIGNATURE_ALGOS=void 0;tg.ECDSA_SIGNATURE_ALGOS={"1.2.840.10045.4.3.1":"sha224","1.2.840.10045.4.3.2":"sha256","1.2.840.10045.4.3.3":"sha384","1.2.840.10045.4.3.4":"sha512"};tg.RSA_SIGNATURE_ALGOS={"1.2.840.113549.1.1.14":"sha224","1.2.840.113549.1.1.11":"sha256","1.2.840.113549.1.1.12":"sha384","1.2.840.113549.1.1.13":"sha512"};tg.SHA2_HASH_ALGOS={"2.16.840.1.101.3.4.2.1":"sha256","2.16.840.1.101.3.4.2.2":"sha384","2.16.840.1.101.3.4.2.3":"sha512"}});var rce=p(x4=>{"use strict";Object.defineProperty(x4,"__esModule",{value:!0});x4.RFC3161TimestampVerificationError=void 0;var tce=class extends Error{};x4.RFC3161TimestampVerificationError=tce});var bWe=p(xh=>{"use strict";var Kor=xh&&xh.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=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,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),Xor=xh&&xh.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Zor=xh&&xh.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var i=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[i.length]=n);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i=t(e),n=0;n<i.length;n++)i[n]!=="default"&&Kor(r,e,i[n]);return Xor(r,e),r}})();Object.defineProperty(xh,"__esModule",{value:!0});xh.TSTInfo=void 0;var EWe=Zor(xS()),ear=_4(),tar=rce(),ice=class{root;constructor(e){this.root=e}get version(){return this.root.subs[0].toInteger()}get genTime(){return this.root.subs[4].toDate()}get messageImprintHashAlgorithm(){let e=this.messageImprintObj.subs[0].subs[0].toOID();return ear.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=EWe.digest(this.messageImprintHashAlgorithm,e);if(!EWe.bufferEqual(r,this.messageImprintHashedMessage))throw new tar.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};xh.TSTInfo=ice});var CWe=p(Rh=>{"use strict";var rar=Rh&&Rh.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=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,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),iar=Rh&&Rh.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),nar=Rh&&Rh.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var i=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[i.length]=n);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i=t(e),n=0;n<i.length;n++)i[n]!=="default"&&rar(r,e,i[n]);return iar(r,e),r}})();Object.defineProperty(Rh,"__esModule",{value:!0});Rh.RFC3161Timestamp=void 0;var sar=S4(),nce=nar(xS()),wWe=_4(),VN=rce(),oar=bWe(),aar="1.2.840.113549.1.7.2",car="1.2.840.113549.1.9.16.1.4",uar="1.2.840.113549.1.9.4",sce=class t{root;constructor(e){this.root=e}static parse(e){let r=sar.ASN1Obj.parseBuffer(e);return new t(r)}get status(){return this.pkiStatusInfoObj.subs[0].toInteger()}get contentType(){return this.contentTypeObj.toOID()}get eContentType(){return this.eContentTypeObj.toOID()}get signingTime(){return this.tstInfo.genTime}get signerIssuer(){return this.signerSidObj.subs[0].value}get signerSerialNumber(){return this.signerSidObj.subs[1].value}get signerDigestAlgorithm(){let e=this.signerDigestAlgorithmObj.subs[0].toOID();return wWe.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return wWe.ECDSA_SIGNATURE_ALGOS[e]}get signatureValue(){return this.signatureValueObj.value}get tstInfo(){return new oar.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new VN.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==aar)throw new VN.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==car)throw new VN.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=nce.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].subs[0].value;if(!nce.bufferEqual(e,r))throw new VN.RFC3161TimestampVerificationError("signed data does not match tstInfo")}verifySignature(e){let r=this.signedAttrsObj.toD Line truncated
`)}o(Kor,"fromDER")});var R4=m(rg=>{"use strict";Object.defineProperty(rg,"__esModule",{value:!0});rg.SHA2_HASH_ALGOS=rg.RSA_SIGNATURE_ALGOS=rg.ECDSA_SIGNATURE_ALGOS=void 0;rg.ECDSA_SIGNATURE_ALGOS={"1.2.840.10045.4.3.1":"sha224","1.2.840.10045.4.3.2":"sha256","1.2.840.10045.4.3.3":"sha384","1.2.840.10045.4.3.4":"sha512"};rg.RSA_SIGNATURE_ALGOS={"1.2.840.113549.1.1.14":"sha224","1.2.840.113549.1.1.11":"sha256","1.2.840.113549.1.1.12":"sha384","1.2.840.113549.1.1.13":"sha512"};rg.SHA2_HASH_ALGOS={"2.16.840.1.101.3.4.2.1":"sha256","2.16.840.1.101.3.4.2.2":"sha384","2.16.840.1.101.3.4.2.3":"sha512"}});var ice=m(T4=>{"use strict";Object.defineProperty(T4,"__esModule",{value:!0});T4.RFC3161TimestampVerificationError=void 0;var rce=class extends Error{static{o(this,"RFC3161TimestampVerificationError")}};T4.RFC3161TimestampVerificationError=rce});var wWe=m(Rh=>{"use strict";var Xor=Rh&&Rh.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),Zor=Rh&&Rh.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ear=Rh&&Rh.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var i=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[i.length]=n);return i},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i=t(e),n=0;n<i.length;n++)i[n]!=="default"&&Xor(r,e,i[n]);return Zor(r,e),r}})();Object.defineProperty(Rh,"__esModule",{value:!0});Rh.TSTInfo=void 0;var bWe=ear(RS()),tar=R4(),rar=ice(),nce=class{static{o(this,"TSTInfo")}root;constructor(e){this.root=e}get version(){return this.root.subs[0].toInteger()}get genTime(){return this.root.subs[4].toDate()}get messageImprintHashAlgorithm(){let e=this.messageImprintObj.subs[0].subs[0].toOID();return tar.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=bWe.digest(this.messageImprintHashAlgorithm,e);if(!bWe.bufferEqual(r,this.messageImprintHashedMessage))throw new rar.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};Rh.TSTInfo=nce});var IWe=m(Th=>{"use strict";var iar=Th&&Th.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),nar=Th&&Th.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),sar=Th&&Th.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var i=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[i.length]=n);return i},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i=t(e),n=0;n<i.length;n++)i[n]!=="default"&&iar(r,e,i[n]);return nar(r,e),r}})();Object.defineProperty(Th,"__esModule",{value:!0});Th.RFC3161Timestamp=void 0;var oar=v4(),sce=sar(RS()),CWe=R4(),zN=ice(),aar=wWe(),car="1.2.840.113549.1.7.2",uar="1.2.840.113549.1.9.16.1.4",lar="1.2.840.113549.1.9.4",oce=class t{static{o(this,"RFC3161Timestamp")}root;constructor(e){this.root=e}static parse(e){let r=oar.ASN1Obj.parseBuffer(e);return new t(r)}get status(){return this.pkiStatusInfoObj.subs[0].toInteger()}get contentType(){return this.contentTypeObj.toOID()}get eContentType(){return this.eContentTypeObj.toOID()}get signingTime(){return this.tstInfo.genTime}get signerIssuer(){return this.signerSidObj.subs[0].value}get signerSerialNumber(){return this.signerSidObj.subs[1].value}get signerDigestAlgorithm(){let e=this.signerDigestAlgorithmObj.subs[0].toOID();return CWe.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return CWe.ECDSA_SIGNATURE_ALGOS[e]}get signatureValue(){return this.signatureValueObj.value}get tstInfo(){return new aar.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new zN.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==car)throw new zN.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==uar)throw new zN.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=sce.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].su Line truncated
\v\f\r\x1B !"#$\u066A&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xB0\xB7\u2219\u221A\u2592\u2500\u2502\u253C\u2524\u252C\u251C\u2534\u2510\u250C\u2514\u2518\u03B2\u221E\u03C6\xB1\xBD\xBC\u2248\xAB\xBB\uFEF7\uFEF8\uFFFD\uFFFD\uFEFB\uFEFC\uFFFD\xA0\xAD\uFE82\xA3\xA4\uFE84\uFFFD\uFFFD\uFE8E\uFE8F\uFE95\uFE99\u060C\uFE9D\uFEA1\uFEA5\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFED1\u061B\uFEB1\uFEB5\uFEB9\u061F\xA2\uFE80\uFE81\uFE83\uFE85\uFECA\uFE8B\uFE8D\uFE91\uFE93\uFE97\uFE9B\uFE9F\uFEA3\uFEA7\uFEA9\uFEAB\uFEAD\uFEAF\uFEB3\uFEB7\uFEBB\uFEBF\uFEC1\uFEC5\uFECB\uFECF\xA6\xAC\xF7\xD7\uFEC9\u0640\uFED3\uFED7\uFEDB\uFEDF\uFEE3\uFEE7\uFEEB\uFEED\uFEEF\uFEF3\uFEBD\uFECC\uFECE\uFECD\uFEE1\uFE7D\u0651\uFEE5\uFEE9\uFEEC\uFEF0\uFEF2\uFED0\uFED5\uFEF5\uFEF6\uFEDD\uFED9\uFEF1\u25A0\uFFFD`},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xF8\xA3\xD8\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xA4\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\xA4\u25A0\xA0"},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0386\uFFFD\xB7\xAC\xA6\u2018\u2019\u0388\u2015\u0389\u038A\u03AA\u038C\uFFFD\uFFFD\u038E\u03AB\xA9\u038F\xB2\xB3\u03AC\xA3\u03AD\u03AE\u03AF\u03CA\u0390\u03CC\u03CD\u0391\u0392\u0393\u0394\u0395\u0396\u0397\xBD\u0398\u0399\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u039A\u039B\u039C\u039D\u2563\u2551\u2557\u255D\u039E\u039F\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u03A0\u03A1\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03B1\u03B2\u03B3\u2518\u250C\u2588\u2584\u03B4\u03B5\u2580\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C3\u03C2\u03C4\u0384\xAD\xB1\u03C5\u03C6\u03C7\xA7\u03C8\u0385\xB0\xA8\u03C9\u03CB\u03B0\u03CE\u25A0\xA0"},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\u203E\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u0160\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\u017D\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u0161\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\u017E\xFF"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"\uFE88\xD7\xF7\uF8F6\uF8F5\uF8F4\uF8F7\uFE71\x88\u25A0\u2502\u2500\u2510\u250C\u2514\u2518\uFE79\uFE7B\uFE7D\uFE7F\uFE77\uFE8A\uFEF0\uFEF3\uFEF2\uFECE\uFECF\uFED0\uFEF6\uFEF8\uFEFA\uFEFC\xA0\uF8FA\uF8F9\uF8F8\xA4\uF8FB\uFE8B\uFE91\uFE97\uFE9B\uFE9F\uFEA3\u060C\xAD\uFEA7\uFEB3\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFEB7\u061B\uFEBB\uFEBF\uFECA\u061F\uFECB\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\uFEC7\u0639\u063A\uFECC\uFE82\uFE84\uFE8E\uFED3\u0640\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u064B\u064C\u064D\u064E\u064F\u0650\u0651\u0652\uFED7\uFEDB\uFEDF\uF8FC\uFEF5\uFEF7\uFEF9\uFEFB\uFEE3\uFEE7\uFEEC\uFEE9\uFFFD"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0401\u0402\u0490\u0404\u0405\u0406\u0407\u0408\u0409\u040A\u040B\u040C\xAD\u040E\u040F\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041FLine truncated
\v\f\r\u1EE8\u1EF0\u1EF2\u1EF6\u1EF8\xDD\u1EF4\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xC0\u1EA2\xC3\xC1\u1EA0\u1EB6\u1EAC\xC8\u1EBA\u1EBC\xC9\u1EB8\u1EC6\xCC\u1EC8\u0128\xCD\u1ECA\xD2\u1ECE\xD5\xD3\u1ECC\u1ED8\u1EDC\u1EDE\u1EE0\u1EDA\u1EE2\xD9\u1EE6\u0168\xA0\u0102\xC2\xCA\xD4\u01A0\u01AF\u0110\u0103\xE2\xEA\xF4\u01A1\u01B0\u0111\u1EB0\u0300\u0309\u0303\u0301\u0323\xE0\u1EA3\xE3\xE1\u1EA1\u1EB2\u1EB1\u1EB3\u1EB5\u1EAF\u1EB4\u1EAE\u1EA6\u1EA8\u1EAA\u1EA4\u1EC0\u1EB7\u1EA7\u1EA9\u1EAB\u1EA5\u1EAD\xE8\u1EC2\u1EBB\u1EBD\xE9\u1EB9\u1EC1\u1EC3\u1EC5\u1EBF\u1EC7\xEC\u1EC9\u1EC4\u1EBE\u1ED2\u0129\xED\u1ECB\xF2\u1ED4\u1ECF\xF5\xF3\u1ECD\u1ED3\u1ED5\u1ED7\u1ED1\u1ED9\u1EDD\u1EDF\u1EE1\u1EDB\u1EE3\xF9\u1ED6\u1EE7\u0169\xFA\u1EE5\u1EEB\u1EED\u1EEF\u1EE9\u1EF1\u1EF3\u1EF7\u1EF9\xFD\u1EF5\u1ED0`},georgianacademy:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10EF\u10F0\u10F1\u10F2\u10F3\u10F4\u10F5\u10F6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},georgianps:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10F1\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10F2\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10F3\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10F4\u10EF\u10F0\u10F5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},pt154:{type:"_sbcs",chars:"\u0496\u0492\u04EE\u0493\u201E\u2026\u04B6\u04AE\u04B2\u04AF\u04A0\u04E2\u04A2\u049A\u04BA\u04B8\u0497\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u04B3\u04B7\u04A1\u04E3\u04A3\u049B\u04BB\u04B9\xA0\u040E\u045E\u0408\u04E8\u0498\u04B0\xA7\u0401\xA9\u04D8\xAB\xAC\u04EF\xAE\u049C\xB0\u04B1\u0406\u0456\u0499\u04E9\xB6\xB7\u0451\u2116\u04D9\xBB\u0458\u04AA\u04AB\u049D\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F"},viscii:{type:"_sbcs",chars:`\0\u1EB2\u1EB4\u1EAA\x07\b
\v\f\r\u1EF6\u1EF8\x1B\u1EF4 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\u1EA0\u1EAE\u1EB0\u1EB6\u1EA4\u1EA6\u1EA8\u1EAC\u1EBC\u1EB8\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EE2\u1EDA\u1EDC\u1EDE\u1ECA\u1ECE\u1ECC\u1EC8\u1EE6\u0168\u1EE4\u1EF2\xD5\u1EAF\u1EB1\u1EB7\u1EA5\u1EA7\u1EA9\u1EAD\u1EBD\u1EB9\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1ED1\u1ED3\u1ED5\u1ED7\u1EE0\u01A0\u1ED9\u1EDD\u1EDF\u1ECB\u1EF0\u1EE8\u1EEA\u1EEC\u01A1\u1EDB\u01AF\xC0\xC1\xC2\xC3\u1EA2\u0102\u1EB3\u1EB5\xC8\xC9\xCA\u1EBA\xCC\xCD\u0128\u1EF3\u0110\u1EE9\xD2\xD3\xD4\u1EA1\u1EF7\u1EEB\u1EED\xD9\xDA\u1EF9\u1EF5\xDD\u1EE1\u01B0\xE0\xE1\xE2\xE3\u1EA3\u0103\u1EEF\u1EAB\xE8\xE9\xEA\u1EBB\xEC\xED\u0129\u1EC9\u0111\u1EF1\xF2\xF3\xF4\xF5\u1ECF\u1ECD\u1EE5\xF9\xFA\u0169\u1EE7\xFD\u1EE3\u1EEE`},iso646cn:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#\xA5%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},iso646jp:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var UJe=p(FJe=>{"use strict";var Hue=Pp().Buffer;FJe._dbcs=kp;var Es=-1,MJe=-2,Pu=-10,qo=-1e3,US=new Array(256),u1=-1;for(h5=0;h5<256;h5++)US[h5]=Es;var h5;function kp(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=US.slice(0),this.decodeTableSeq=[];for(var i=0;i<r.length;i++)this._addDecodeChunk(r[i]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var n=this.decodeTables.length;this.decodeTables.push(US.slice(0));var s=this.decodeTables.length;this.decodeTables.push(US.slice(0));for(var o=this.decodeTables[0],i=129;i<=254;i++)for(var a=this.decodeTables[qo-o[i]],c=48;c<=57;c++){if(a[c]===Es)a[c]=qo-n;else if(a[c]>qo)throw new Error("gb18030 decode tables conflict at byte 2");for(var u=this.decodeTables[qo-a[c]],l=129;l<=254;l++){if(u[l]===Es)u[l]=qo-s;else{if(u[l]===qo-s)continue;if(u[l]>qo)throw new Error("gb18030 decode tables conflict at byte 3")}for(var f=this.decodeTables[qo-u[l]],h=48;h<=57;h++)f[h]===Es&&(f[h]=MJe)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var d={};if(t.encodeSkipVals)for(var i=0;i<t.encodeSkipValLine truncated
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var qJe=m(UJe=>{"use strict";var jue=kp().Buffer;UJe._dbcs=Qp;var bs=-1,FJe=-2,ku=-10,Go=-1e3,qS=new Array(256),l1=-1;for(p5=0;p5<256;p5++)qS[p5]=bs;var p5;function Qp(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=qS.slice(0),this.decodeTableSeq=[];for(var i=0;i<r.length;i++)this._addDecodeChunk(r[i]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var n=this.decodeTables.length;this.decodeTables.push(qS.slice(0));var s=this.decodeTables.length;this.decodeTables.push(qS.slice(0));for(var a=this.decodeTables[0],i=129;i<=254;i++)for(var c=this.decodeTables[Go-a[i]],u=48;u<=57;u++){if(c[u]===bs)c[u]=Go-n;else if(c[u]>Go)throw new Error("gb18030 decode tables conflict at byte 2");for(var l=this.decodeTables[Go-c[u]],f=129;f<=254;f++){if(l[f]===bs)l[f]=Go-s;else{if(l[f]===Go-s)continue;if(l[f]>Go)throw new Error("gb18030 decode tables conflict at byte 3")}for(var h=this.decodeTables[Go-l[f]],d=48;d<=57;d++)h[d]===bs&&(h[d]=FJe)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var p={};if(t.encodeSkipVals)for(var i=0;i<t.encodeSkipValLine truncated
Wanted: ${this.expectedSize}
Found: ${this.size}`);i.code="EBADSIZE",i.found=this.size,i.expected=this.expectedSize,i.sri=this.sri,this.emit("error",i)}else if(this.sri&&!r){let i=new Error(`${this.sri} integrity checksum failed when using ${this.algorithm}: wanted ${this.digests} but got ${e}. (${this.size} bytes)`);i.code="EINTEGRITY",i.found=e,i.expected=this.digests,i.algorithm=this.algorithm,i.sri=this.sri,this.emit("error",i)}else this.#t=this.size,this.emit("size",this.size),this.#e=e,this.emit("integrity",e),r&&(this.#i=r,this.emit("verified",r))}},Up=class{get isHash(){return!0}constructor(e,r){let i=r?.strict;this.source=e.trim(),this.digest="",this.algorithm="",this.options=[];let n=this.source.match(i?dlr:hlr);if(!n||i&&!dle.includes(n[1]))return;this.algorithm=n[1],this.digest=n[2];let s=n[3];s&&(this.options=s.slice(1).split("?"))}hexDigest(){return this.digest&&Buffer.from(this.digest,"base64").toString("hex")}toJSON(){return this.toString()}match(e,r){let i=Bc(e,r);if(!i)return!1;if(i.isIntegrity){let n=i.pickAlgorithm(r,[this.algorithm]);if(!n)return!1;let s=i[n].find(o=>o.digest===this.digest);return s||!1}return i.digest===this.digest?i:!1}toString(e){return e?.strict&&!(dle.includes(this.algorithm)&&this.digest.match(flr)&&this.options.every(r=>r.match(plr)))?"":`${this.algorithm}-${this.digest}${g1(this.options)}`}};function WYe(t,e,r,i){let n=t!=="",s=!1,o="",a=i.length-1;for(let u=0;u<a;u++){let l=Up.prototype.toString.call(i[u],r);l&&(s=!0,o+=l,o+=e)}let c=Up.prototype.toString.call(i[a],r);return c&&(s=!0,o+=c),n&&s?t+e+o:t+o}var C0=class{get isIntegrity(){return!0}toJSON(){return this.toString()}isEmpty(){return Object.keys(this).length===0}toString(e){let r=e?.sep||" ",i="";if(e?.strict){r=r.replace(/\S+/g," ");for(let n of dle)this[n]&&(i=WYe(i,r,e,this[n]))}else for(let n of Object.keys(this))i=WYe(i,r,e,this[n]);return i}concat(e,r){let i=typeof e=="string"?e:m1(e,r);return Bc(`${this.toString(r)} ${i}`,r)}hexDigest(){return Bc(this,{single:!0}).hexDigest()}merge(e,r){let i=Bc(e,r);for(let n in i)if(this[n]){if(!this[n].find(s=>i[n].find(o=>s.digest===o.digest)))throw new Error("hashes do not match, cannot update integrity")}else this[n]=i[n]}match(e,r){let i=Bc(e,r);if(!i)return!1;let n=i.pickAlgorithm(r,Object.keys(this));return!!n&&this[n]&&i[n]&&this[n].find(s=>i[n].find(o=>s.digest===o.digest))||!1}pickAlgorithm(e,r){let i=e?.pickAlgorithm||Clr,n=Object.keys(this).filter(s=>r?.length?r.includes(s):!0);return n.length?n.reduce((s,o)=>i(s,o)||s):null}};Mh.exports.parse=Bc;function Bc(t,e){if(!t)return null;if(typeof t=="string")return hle(t,e);if(t.algorithm&&t.digest){let r=new C0;return r[t.algorithm]=[t],hle(m1(r,e),e)}else return hle(m1(t,e),e)}function hle(t,e){if(e?.single)return new Up(t,e);let r=t.trim().split(/\s+/).reduce((i,n)=>{let s=new Up(n,e);if(s.algorithm&&s.digest){let o=s.algorithm;i[o]||(i[o]=[]),i[o].push(s)}return i},new C0);return r.isEmpty()?null:r}Mh.exports.stringify=m1;function m1(t,e){return t.algorithm&&t.digest?Up.prototype.toString.call(t,e):typeof t=="string"?m1(Bc(t,e),e):C0.prototype.toString.call(t,e)}Mh.exports.fromHex=mlr;function mlr(t,e,r){let i=g1(r?.options);return Bc(`${e}-${Buffer.from(t,"hex").toString("base64")}${i}`,r)}Mh.exports.fromData=Alr;function Alr(t,e){let r=e?.algorithms||[...mle],i=g1(e?.options);return r.reduce((n,s)=>{let o=A1.createHash(s).update(t).digest("base64"),a=new Up(`${s}-${o}${i}`,e);if(a.algorithm&&a.digest){let c=a.algorithm;n[c]||(n[c]=[]),n[c].push(a)}return n},new C0)}Mh.exports.fromStream=glr;function glr(t,e){let r=Ale(e);return new Promise((i,n)=>{t.pipe(r),t.on("error",n),r.on("error",n);let s;r.on("integrity",o=>{s=o}),r.on("end",()=>i(s)),r.resume()})}Mh.exports.checkData=ylr;function ylr(t,e,r){if(e=Bc(e,r),!e||!Object.keys(e).length){if(r?.error)throw Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"});return!1}let i=e.pickAlgorithm(r),n=A1.createHash(i).update(t).digest("base64"),s=Bc({algorithm:i,digest:n}),o=s.match(e,r);if(r=r||{},o||!r.error)return o;if(typeof r.size=="number"&&t.length!==r.size){let a=new Error(`data size mismatch when checking ${e}.
Found: ${this.size}`);i.code="EBADSIZE",i.found=this.size,i.expected=this.expectedSize,i.sri=this.sri,this.emit("error",i)}else if(this.sri&&!r){let i=new Error(`${this.sri} integrity checksum failed when using ${this.algorithm}: wanted ${this.digests} but got ${e}. (${this.size} bytes)`);i.code="EINTEGRITY",i.found=e,i.expected=this.digests,i.algorithm=this.algorithm,i.sri=this.sri,this.emit("error",i)}else this.#t=this.size,this.emit("size",this.size),this.#e=e,this.emit("integrity",e),r&&(this.#i=r,this.emit("verified",r))}},qp=class{static{o(this,"Hash")}get isHash(){return!0}constructor(e,r){let i=r?.strict;this.source=e.trim(),this.digest="",this.algorithm="",this.options=[];let n=this.source.match(i?plr:dlr);if(!n||i&&!ple.includes(n[1]))return;this.algorithm=n[1],this.digest=n[2];let s=n[3];s&&(this.options=s.slice(1).split("?"))}hexDigest(){return this.digest&&Buffer.from(this.digest,"base64").toString("hex")}toJSON(){return this.toString()}match(e,r){let i=vc(e,r);if(!i)return!1;if(i.isIntegrity){let n=i.pickAlgorithm(r,[this.algorithm]);if(!n)return!1;let s=i[n].find(a=>a.digest===this.digest);return s||!1}return i.digest===this.digest?i:!1}toString(e){return e?.strict&&!(ple.includes(this.algorithm)&&this.digest.match(hlr)&&this.options.every(r=>r.match(mlr)))?"":`${this.algorithm}-${this.digest}${y1(this.options)}`}};function JYe(t,e,r,i){let n=t!=="",s=!1,a="",c=i.length-1;for(let l=0;l<c;l++){let f=qp.prototype.toString.call(i[l],r);f&&(s=!0,a+=f,a+=e)}let u=qp.prototype.toString.call(i[c],r);return u&&(s=!0,a+=u),n&&s?t+e+a:t+a}o(JYe,"integrityHashToString");var I0=class{static{o(this,"Integrity")}get isIntegrity(){return!0}toJSON(){return this.toString()}isEmpty(){return Object.keys(this).length===0}toString(e){let r=e?.sep||" ",i="";if(e?.strict){r=r.replace(/\S+/g," ");for(let n of ple)this[n]&&(i=JYe(i,r,e,this[n]))}else for(let n of Object.keys(this))i=JYe(i,r,e,this[n]);return i}concat(e,r){let i=typeof e=="string"?e:A1(e,r);return vc(`${this.toString(r)} ${i}`,r)}hexDigest(){return vc(this,{single:!0}).hexDigest()}merge(e,r){let i=vc(e,r);for(let n in i)if(this[n]){if(!this[n].find(s=>i[n].find(a=>s.digest===a.digest)))throw new Error("hashes do not match, cannot update integrity")}else this[n]=i[n]}match(e,r){let i=vc(e,r);if(!i)return!1;let n=i.pickAlgorithm(r,Object.keys(this));return!!n&&this[n]&&i[n]&&this[n].find(s=>i[n].find(a=>s.digest===a.digest))||!1}pickAlgorithm(e,r){let i=e?.pickAlgorithm||Ilr,n=Object.keys(this).filter(s=>r?.length?r.includes(s):!0);return n.length?n.reduce((s,a)=>i(s,a)||s):null}};Fh.exports.parse=vc;function vc(t,e){if(!t)return null;if(typeof t=="string")return dle(t,e);if(t.algorithm&&t.digest){let r=new I0;return r[t.algorithm]=[t],dle(A1(r,e),e)}else return dle(A1(t,e),e)}o(vc,"parse");function dle(t,e){if(e?.single)return new qp(t,e);let r=t.trim().split(/\s+/).reduce((i,n)=>{let s=new qp(n,e);if(s.algorithm&&s.digest){let a=s.algorithm;i[a]||(i[a]=[]),i[a].push(s)}return i},new I0);return r.isEmpty()?null:r}o(dle,"_parse");Fh.exports.stringify=A1;function A1(t,e){return t.algorithm&&t.digest?qp.prototype.toString.call(t,e):typeof t=="string"?A1(vc(t,e),e):I0.prototype.toString.call(t,e)}o(A1,"stringify");Fh.exports.fromHex=Alr;function Alr(t,e,r){let i=y1(r?.options);return vc(`${e}-${Buffer.from(t,"hex").toString("base64")}${i}`,r)}o(Alr,"fromHex");Fh.exports.fromData=glr;function glr(t,e){let r=e?.algorithms||[...Ale],i=y1(e?.options);return r.reduce((n,s)=>{let a=g1.createHash(s).update(t).digest("base64"),c=new qp(`${s}-${a}${i}`,e);if(c.algorithm&&c.digest){let u=c.algorithm;n[u]||(n[u]=[]),n[u].push(c)}return n},new I0)}o(glr,"fromData");Fh.exports.fromStream=ylr;function ylr(t,e){let r=gle(e);return new Promise((i,n)=>{t.pipe(r),t.on("error",n),r.on("error",n);let s;r.on("integrity",a=>{s=a}),r.on("end",()=>i(s)),r.resume()})}o(ylr,"fromStream");Fh.exports.checkData=Elr;function Elr(t,e,r){if(e=vc(e,r),!e||!Object.keys(e).length){if(r?.error)throw Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"});return!1}let i=e.pickAlgorithm(r),n=g1.createHash(i).update(t).digest("base64"),s=vc({algorithm:i,digest:n}),a=s.match(e,r);if(r=r||{},a||!r.error)return a;if(typeof r.size=="number"&&t.length!==r.size){let c=new Error(`data size mismatch when checking ${e}.
Wanted: ${r.size}
Found: ${t.length}`);throw a.code="EBADSIZE",a.found=t.length,a.expected=r.size,a.sri=e,a}else{let a=new Error(`Integrity checksum failed when using ${i}: Wanted ${e}, but got ${s}. (${t.length} bytes)`);throw a.code="EINTEGRITY",a.found=s,a.expected=e,a.algorithm=i,a.sri=e,a}}Mh.exports.checkStream=Elr;function Elr(t,e,r){if(r=r||Object.create(null),r.integrity=e,e=Bc(e,r),!e||!Object.keys(e).length)return Promise.reject(Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"}));let i=Ale(r);return new Promise((n,s)=>{t.pipe(i),t.on("error",s),i.on("error",s);let o;i.on("verified",a=>{o=a}),i.on("end",()=>n(o)),i.resume()})}Mh.exports.integrityStream=Ale;function Ale(t=Object.create(null)){return new ple(t)}Mh.exports.create=blr;function blr(t){let e=t?.algorithms||[...mle],r=g1(t?.options),i=e.map(A1.createHash);return{update:function(n,s){return i.forEach(o=>o.update(n,s)),this},digest:function(){return e.reduce((s,o)=>{let a=i.shift().digest("base64"),c=new Up(`${o}-${a}${r}`,t);if(c.algorithm&&c.digest){let u=c.algorithm;s[u]||(s[u]=[]),s[u].push(c)}return s},new C0)}}}var wlr=A1.getHashes(),JYe=["md5","whirlpool","sha1","sha224","sha256","sha384","sha512","sha3","sha3-256","sha3-384","sha3-512","sha3_256","sha3_384","sha3_512"].filter(t=>wlr.includes(t));function Clr(t,e){return JYe.indexOf(t.toLowerCase())>=JYe.indexOf(e.toLowerCase())?t:e}});var yle=p((wni,e7e)=>{var YYe=sle(),KYe=fle(),Ilr=Fh(),XYe={shared:!1,ignoreCargoCult:!0},Slr={status:200,headers:{}},jS=t=>{let e={method:t.method,url:t.url,headers:{},compress:t.compress};return t.headers.forEach((r,i)=>{e.headers[i]=r}),e},ZYe=t=>{let e={status:t.status,headers:{}};return t.headers.forEach((r,i)=>{e.headers[i]=r}),e},gle=class{constructor({entry:e,request:r,response:i,options:n}){this.entry=e,this.request=jS(r),this.response=ZYe(i),this.options=n,this.policy=new YYe(this.request,this.response,XYe),this.entry&&(this.policy._responseTime=this.entry.metadata.time)}static storable(e,r){return!r.cachePath||r.cache==="no-store"||!["GET","HEAD"].includes(e.method)?!1:new YYe(jS(e),Slr,XYe).storable()}satisfies(e){let r=jS(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;let i=new KYe(this.request),n=new KYe(r);return JSON.stringify(i.mediaTypes())!==JSON.stringify(n.mediaTypes())||JSON.stringify(i.languages())!==JSON.stringify(n.languages())||JSON.stringify(i.encodings())!==JSON.stringify(n.encodings())?!1:this.options.integrity?Ilr.parse(this.options.integrity).match(this.entry.integrity):!0}storable(){return this.policy.storable()}get mustRevalidate(){return!!this.policy._rescc["must-revalidate"]}needsRevalidation(e){let r=jS(e);return r.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){return this.policy.responseHeaders()}revalidationHeaders(e){let r=jS(e);return this.policy.revalidationHeaders(r)}revalidated(e,r){let i=jS(e),n=ZYe(r);return!this.policy.revalidatedPolicy(i,n).modified}};e7e.exports=gle});var r7e=p((Cni,t7e)=>{var Ele=class extends Error{constructor(e){super(`request to ${e} failed: cache mode is 'only-if-cached' but no cached response is available.`),this.code="ENOTCACHED"}};t7e.exports={NotCachedError:Ele}});var h7e=p((Ini,f7e)=>{"use strict";var i7e=typeof process=="object"&&process?process:{stdout:null,stderr:null},Blr=require("events"),n7e=require("stream"),s7e=require("string_decoder").StringDecoder,qp=Symbol("EOF"),Gp=Symbol("maybeEmitEnd"),ug=Symbol("emittedEnd"),v5=Symbol("emittingEnd"),y1=Symbol("emittedError"),_5=Symbol("closed"),o7e=Symbol("read"),x5=Symbol("flush"),a7e=Symbol("flushChunk"),xa=Symbol("encoding"),Hp=Symbol("decoder"),R5=Symbol("flowing"),E1=Symbol("paused"),VS=Symbol("resume"),Vn=Symbol("bufferLength"),ble=Symbol("bufferPush"),wle=Symbol("bufferShift"),$s=Symbol("objectMode"),Ws=Symbol("destroyed"),Cle=Symbol("emitData"),c7e=Symbol("emitEnd"),Ile=Symbol("emitEnd2"),jp=Symbol("async"),b1=t=>Promise.resolve().then(t),u7e=global._MP_NO_ITERATOR_SYMBOLS_!=="1",vlr=u7e&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),_lr=u7e&&Symbol.iterator||Symbol("iterator not implemented"),xlr=t=>t==="end"||t==="finish"||t==="prefinish",Rlr=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,Tlr=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),T5=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[VS](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Sle=class extends T5{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=n=>r.emit("error",n),e.on("error",this.proxyErrors)}};f7e.exports=class l7e extends n7e{constructor(e){super(),this[R5]=!1,this[E1]=!1,this.pipes=[],this.buffer=[],this[$s]=e&&e.objectMode||!1,this[$s]?this[xa]=null:this[xa]=e& Line truncated
`+o.map(h=>{let d=JSON.stringify(h);return`${t8(d)} ${d}`}).join(`
`),c=async()=>{let h=amr(qh.join(t,"tmp"),i.tmpPrefix);return await Efe(qh.dirname(h),{recursive:!0}),{target:h,moved:!1}},u=async h=>{if(!h.moved)return CZe(h.target,{recursive:!0,force:!0})},l=async h=>{await nmr(h.target,a,{flag:"wx"}),await Efe(qh.dirname(n),{recursive:!0}),await fmr(h.target,n),h.moved=!0},f=await c();try{await l(f)}finally{await u(f)}return o.reverse().map(h=>r8(t,h,!0))}_c.exports.insert=IZe;async function IZe(t,e,r,i={}){let{metadata:n,size:s,time:o}=i,a=L1(t,e),c={key:e,integrity:r&&omr.stringify(r),time:o||Date.now(),size:s,metadata:n};try{await Efe(qh.dirname(a),{recursive:!0});let u=JSON.stringify(c);await tmr(a,`
${t8(u)} ${u}`)}catch(u){if(u.code==="ENOENT")return;throw u}return r8(t,c)}_c.exports.find=dmr;async function dmr(t,e){let r=L1(t,e);try{return(await e8(r)).reduce((n,s)=>s&&s.key===e?r8(t,s):n,null)}catch(i){if(i.code==="ENOENT")return null;throw i}}_c.exports.delete=pmr;function pmr(t,e,r={}){if(!r.removeFully)return IZe(t,e,null,r);let i=L1(t,e);return CZe(i,{recursive:!0,force:!0})}_c.exports.lsStream=SZe;function SZe(t){let e=bfe(t),r=new smr({objectMode:!0});return Promise.resolve().then(async()=>{let{default:i}=await Promise.resolve().then(()=>(Z5(),X5)),n=await yfe(e);return await i(n,async s=>{let o=qh.join(e,s),a=await yfe(o);await i(a,async c=>{let u=qh.join(o,c),l=await yfe(u);await i(l,async f=>{let h=qh.join(u,f);try{let m=(await e8(h)).reduce((A,y)=>(A.set(y.key,y),A),new Map);for(let A of m.values()){let y=r8(t,A);y&&r.write(y)}}catch(d){if(d.code==="ENOENT")return;throw d}},{concurrency:gfe})},{concurrency:gfe})},{concurrency:gfe}),r.end(),r}).catch(i=>r.emit("error",i)),r}_c.exports.ls=mmr;async function mmr(t){return(await SZe(t).collect()).reduce((r,i)=>(r[i.key]=i,r),{})}_c.exports.bucketEntries=e8;async function e8(t,e){let r=await rmr(t,"utf8");return Amr(r,e)}function Amr(t){let e=[];return t.split(`
`).forEach(r=>{if(!r)return;let i=r.split(" ");if(!i[1]||t8(i[1])!==i[0])return;let n;try{n=JSON.parse(i[1])}catch{}n&&e.push(n)}),e}_c.exports.bucketDir=bfe;function bfe(t){return qh.join(t,`index-v${lmr}`)}_c.exports.bucketPath=L1;function L1(t,e){let r=BZe(e);return qh.join.apply(qh,[bfe(t)].concat(umr(r)))}_c.exports.hashKey=BZe;function BZe(t){return vZe(t,"sha256")}_c.exports.hashEntry=t8;function t8(t){return vZe(t,"sha1")}function vZe(t,e){return emr.createHash(e).update(t).digest("hex")}function r8(t,e,r){return!e.integrity&&!r?null:{key:e.key,integrity:e.integrity,path:e.integrity?cmr(t,e.integrity):void 0,size:e.size,time:e.time,metadata:e.metadata}}function yfe(t){return imr(t).catch(e=>{if(e.code==="ENOENT"||e.code==="ENOTDIR")return[];throw e})}});var iB=p(n8=>{"use strict";Object.defineProperty(n8,"__esModule",{value:!0});n8.LRUCache=void 0;var gmr=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,xZe=new Set,wfe=typeof process=="object"&&process?process:{},RZe=(t,e,r,i)=>{typeof wfe.emitWarning=="function"?wfe.emitWarning(t,e,r,i):console.error(`[${r}] ${e}: ${t}`)},i8=globalThis.AbortController,_Ze=globalThis.AbortSignal;if(typeof i8>"u"){_Ze=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(i,n){this._onabort.push(n)}},i8=class{constructor(){e()}signal=new _Ze;abort(i){if(!this.signal.aborted){this.signal.reason=i,this.signal.aborted=!0;for(let n of this.signal._onabort)n(i);this.signal.onabort?.(i)}}};let t=wfe.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,RZe("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var ymr=t=>!xZe.has(t),fg=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),TZe=t=>fg(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?rB:null:null,rB=class extends Array{constructor(e){super(e),this.fill(0)}},Cfe=class t{heap;length;static#e=!1;static create(e){let r=TZe(e);if(!r)return[];t.#e=!0;let i=new t(e,r);return t.#e=!1,i}constructor(e,r){if(!t.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},Ife=class t{#e;#t;#i;#r;#n;#s;#l;#u;get perf(){return this.#u}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#c;#h;#d;#f;#m;#b;#A;#w;#v;#y;#C;#_;#p;#I;#x;#E;#o;static unsafeExposeInternals(e){return{starts:e.#_,ttls:e.#p,sizes:e.#C,keyMap:e.#h,keyList:e.#d,valList:e.#f,next:e.#m,prev:e.#b,get head(){return e.#A},get tail(){return e.#w},free:e.#v,isBackgroundFetch:r=>e.#S(r),backgroundFetch:(r,i,n,s)=>e.#j(r,i,n,s),moveToTail:r=>e.#q(r),indexes:r=>e.#O(r),rindexes:r=>e.#g(r),isStale:r=>e.#T(r)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#c}get size(){return this.#a}get fetchMethod(){return this.#s}get memoMethod(){return this.#l}get dispose(){return this.#i}get onInsert(){return this.#r}get disposeAfter(){return this.#n}constructor(e){let{max:r=0,ttl:i,ttlResolution:n=1,ttlAutopurge:s,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:c,dispose:u,onInsert:l,disposeAfter:f,noDisposeOnSet:h,noUpdateTTL:d,maxSize:m=0,maxEntrySize:A=0,sizeCalculation:y,fetchMethod:g,memoMethod:E,noDeleteOnFetchRejection:C,noDeleteOnStaleGet:S,allowStaleOnFetchRejection:N,allowStaleOnFetchAbort:L,ignoreFetchAbort:T,perf:j}=e;if(j!==void 0&&typeof j?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#u=j??gmr,r!==0&&!fg(r))throw new TypeError("max option must be a nonnegative integer");let D=r?TZe(r):Array;if(!D)throw new Error("invalid max value: "+r);if(this.#e=r,this.#t=m,this.maxEntrySize=A||this.#t,this.sizeCalculation=y,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(E!==void 0&&typeof E!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#l=E,g!==void 0&&typeof g!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#s=g,this.#x=!!g,this.#h=new Map,this.#d=new Array(r).fill(void 0),this.#f=new Array(r).fill(void 0),this.#m=new D(r),this.#b=new D(r),this.#A=0,this.#w=0,this.#v=Cfe.create(r),this.#a=0,this.#c=0,typeof u=="fu Line truncated
Found: ${t.length}`);throw c.code="EBADSIZE",c.found=t.length,c.expected=r.size,c.sri=e,c}else{let c=new Error(`Integrity checksum failed when using ${i}: Wanted ${e}, but got ${s}. (${t.length} bytes)`);throw c.code="EINTEGRITY",c.found=s,c.expected=e,c.algorithm=i,c.sri=e,c}}o(Elr,"checkData");Fh.exports.checkStream=blr;function blr(t,e,r){if(r=r||Object.create(null),r.integrity=e,e=vc(e,r),!e||!Object.keys(e).length)return Promise.reject(Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"}));let i=gle(r);return new Promise((n,s)=>{t.pipe(i),t.on("error",s),i.on("error",s);let a;i.on("verified",c=>{a=c}),i.on("end",()=>n(a)),i.resume()})}o(blr,"checkStream");Fh.exports.integrityStream=gle;function gle(t=Object.create(null)){return new mle(t)}o(gle,"integrityStream");Fh.exports.create=wlr;function wlr(t){let e=t?.algorithms||[...Ale],r=y1(t?.options),i=e.map(g1.createHash);return{update:o(function(n,s){return i.forEach(a=>a.update(n,s)),this},"update"),digest:o(function(){return e.reduce((s,a)=>{let c=i.shift().digest("base64"),u=new qp(`${a}-${c}${r}`,t);if(u.algorithm&&u.digest){let l=u.algorithm;s[l]||(s[l]=[]),s[l].push(u)}return s},new I0)},"digest")}}o(wlr,"createIntegrity");var Clr=g1.getHashes(),YYe=["md5","whirlpool","sha1","sha224","sha256","sha384","sha512","sha3","sha3-256","sha3-384","sha3-512","sha3_256","sha3_384","sha3_512"].filter(t=>Clr.includes(t));function Ilr(t,e){return YYe.indexOf(t.toLowerCase())>=YYe.indexOf(e.toLowerCase())?t:e}o(Ilr,"getPrioritizedHash")});var Ele=m((nwi,t7e)=>{var KYe=ole(),XYe=hle(),Slr=Uh(),ZYe={shared:!1,ignoreCargoCult:!0},Blr={status:200,headers:{}},VS=o(t=>{let e={method:t.method,url:t.url,headers:{},compress:t.compress};return t.headers.forEach((r,i)=>{e.headers[i]=r}),e},"requestObject"),e7e=o(t=>{let e={status:t.status,headers:{}};return t.headers.forEach((r,i)=>{e.headers[i]=r}),e},"responseObject"),yle=class{static{o(this,"CachePolicy")}constructor({entry:e,request:r,response:i,options:n}){this.entry=e,this.request=VS(r),this.response=e7e(i),this.options=n,this.policy=new KYe(this.request,this.response,ZYe),this.entry&&(this.policy._responseTime=this.entry.metadata.time)}static storable(e,r){return!r.cachePath||r.cache==="no-store"||!["GET","HEAD"].includes(e.method)?!1:new KYe(VS(e),Blr,ZYe).storable()}satisfies(e){let r=VS(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;let i=new XYe(this.request),n=new XYe(r);return JSON.stringify(i.mediaTypes())!==JSON.stringify(n.mediaTypes())||JSON.stringify(i.languages())!==JSON.stringify(n.languages())||JSON.stringify(i.encodings())!==JSON.stringify(n.encodings())?!1:this.options.integrity?Slr.parse(this.options.integrity).match(this.entry.integrity):!0}storable(){return this.policy.storable()}get mustRevalidate(){return!!this.policy._rescc["must-revalidate"]}needsRevalidation(e){let r=VS(e);return r.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){return this.policy.responseHeaders()}revalidationHeaders(e){let r=VS(e);return this.policy.revalidationHeaders(r)}revalidated(e,r){let i=VS(e),n=e7e(r);return!this.policy.revalidatedPolicy(i,n).modified}};t7e.exports=yle});var i7e=m((owi,r7e)=>{var ble=class extends Error{static{o(this,"NotCachedError")}constructor(e){super(`request to ${e} failed: cache mode is 'only-if-cached' but no cached response is available.`),this.code="ENOTCACHED"}};r7e.exports={NotCachedError:ble}});var d7e=m((cwi,h7e)=>{"use strict";var n7e=typeof process=="object"&&process?process:{stdout:null,stderr:null},vlr=require("events"),s7e=require("stream"),o7e=require("string_decoder").StringDecoder,Gp=Symbol("EOF"),Hp=Symbol("maybeEmitEnd"),lg=Symbol("emittedEnd"),x5=Symbol("emittingEnd"),E1=Symbol("emittedError"),R5=Symbol("closed"),a7e=Symbol("read"),T5=Symbol("flush"),c7e=Symbol("flushChunk"),Ra=Symbol("encoding"),jp=Symbol("decoder"),N5=Symbol("flowing"),b1=Symbol("paused"),zS=Symbol("resume"),zn=Symbol("bufferLength"),wle=Symbol("bufferPush"),Cle=Symbol("bufferShift"),Ws=Symbol("objectMode"),Js=Symbol("destroyed"),Ile=Symbol("emitData"),u7e=Symbol("emitEnd"),Sle=Symbol("emitEnd2"),Vp=Symbol("async"),w1=o(t=>Promise.resolve().then(t),"defer"),l7e=global._MP_NO_ITERATOR_SYMBOLS_!=="1",_lr=l7e&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),xlr=l7e&&Symbol.iterator||Symbol("iterator not implemented"),Rlr=o(t=>t==="end"||t==="finish"||t==="prefinish","isEndish"),Tlr=o(t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,"isArrayBuffer"),Nlr=o(t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),"isArrayBufferView"),D5=class{static{o(this,"Pipe")}constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[zS](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Ble=class extends D5{static{o(this,"PipeP Line truncated
`+a.map(d=>{let p=JSON.stringify(d);return`${i8(p)} ${p}`}).join(`
`),u=o(async()=>{let d=cmr(Gh.join(t,"tmp"),i.tmpPrefix);return await bfe(Gh.dirname(d),{recursive:!0}),{target:d,moved:!1}},"setup"),l=o(async d=>{if(!d.moved)return IZe(d.target,{recursive:!0,force:!0})},"teardown"),f=o(async d=>{await smr(d.target,c,{flag:"wx"}),await bfe(Gh.dirname(n),{recursive:!0}),await hmr(d.target,n),d.moved=!0},"write"),h=await u();try{await f(h)}finally{await l(h)}return a.reverse().map(d=>n8(t,d,!0))}o(dmr,"compact");xc.exports.insert=SZe;async function SZe(t,e,r,i={}){let{metadata:n,size:s,time:a}=i,c=M1(t,e),u={key:e,integrity:r&&amr.stringify(r),time:a||Date.now(),size:s,metadata:n};try{await bfe(Gh.dirname(c),{recursive:!0});let l=JSON.stringify(u);await rmr(c,`
${i8(l)} ${l}`)}catch(l){if(l.code==="ENOENT")return;throw l}return n8(t,u)}o(SZe,"insert");xc.exports.find=pmr;async function pmr(t,e){let r=M1(t,e);try{return(await r8(r)).reduce((n,s)=>s&&s.key===e?n8(t,s):n,null)}catch(i){if(i.code==="ENOENT")return null;throw i}}o(pmr,"find");xc.exports.delete=mmr;function mmr(t,e,r={}){if(!r.removeFully)return SZe(t,e,null,r);let i=M1(t,e);return IZe(i,{recursive:!0,force:!0})}o(mmr,"del");xc.exports.lsStream=BZe;function BZe(t){let e=wfe(t),r=new omr({objectMode:!0});return Promise.resolve().then(async()=>{let{default:i}=await Promise.resolve().then(()=>(t8(),e8)),n=await Efe(e);return await i(n,async s=>{let a=Gh.join(e,s),c=await Efe(a);await i(c,async u=>{let l=Gh.join(a,u),f=await Efe(l);await i(f,async h=>{let d=Gh.join(l,h);try{let A=(await r8(d)).reduce((g,E)=>(g.set(E.key,E),g),new Map);for(let g of A.values()){let E=n8(t,g);E&&r.write(E)}}catch(p){if(p.code==="ENOENT")return;throw p}},{concurrency:yfe})},{concurrency:yfe})},{concurrency:yfe}),r.end(),r}).catch(i=>r.emit("error",i)),r}o(BZe,"lsStream");xc.exports.ls=Amr;async function Amr(t){return(await BZe(t).collect()).reduce((r,i)=>(r[i.key]=i,r),{})}o(Amr,"ls");xc.exports.bucketEntries=r8;async function r8(t,e){let r=await imr(t,"utf8");return gmr(r,e)}o(r8,"bucketEntries");function gmr(t){let e=[];return t.split(`
`).forEach(r=>{if(!r)return;let i=r.split(" ");if(!i[1]||i8(i[1])!==i[0])return;let n;try{n=JSON.parse(i[1])}catch{}n&&e.push(n)}),e}o(gmr,"_bucketEntries");xc.exports.bucketDir=wfe;function wfe(t){return Gh.join(t,`index-v${fmr}`)}o(wfe,"bucketDir");xc.exports.bucketPath=M1;function M1(t,e){let r=vZe(e);return Gh.join.apply(Gh,[wfe(t)].concat(lmr(r)))}o(M1,"bucketPath");xc.exports.hashKey=vZe;function vZe(t){return _Ze(t,"sha256")}o(vZe,"hashKey");xc.exports.hashEntry=i8;function i8(t){return _Ze(t,"sha1")}o(i8,"hashEntry");function _Ze(t,e){return tmr.createHash(e).update(t).digest("hex")}o(_Ze,"hash");function n8(t,e,r){return!e.integrity&&!r?null:{key:e.key,integrity:e.integrity,path:e.integrity?umr(t,e.integrity):void 0,size:e.size,time:e.time,metadata:e.metadata}}o(n8,"formatEntry");function Efe(t){return nmr(t).catch(e=>{if(e.code==="ENOENT"||e.code==="ENOTDIR")return[];throw e})}o(Efe,"readdirOrEmpty")});var nB=m(o8=>{"use strict";Object.defineProperty(o8,"__esModule",{value:!0});o8.LRUCache=void 0;var ymr=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,RZe=new Set,Cfe=typeof process=="object"&&process?process:{},TZe=o((t,e,r,i)=>{typeof Cfe.emitWarning=="function"?Cfe.emitWarning(t,e,r,i):console.error(`[${r}] ${e}: ${t}`)},"emitWarning"),s8=globalThis.AbortController,xZe=globalThis.AbortSignal;if(typeof s8>"u"){xZe=class{static{o(this,"AbortSignal")}onabort;_onabort=[];reason;aborted=!1;addEventListener(i,n){this._onabort.push(n)}},s8=class{static{o(this,"AbortController")}constructor(){e()}signal=new xZe;abort(i){if(!this.signal.aborted){this.signal.reason=i,this.signal.aborted=!0;for(let n of this.signal._onabort)n(i);this.signal.onabort?.(i)}}};let t=Cfe.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=o(()=>{t&&(t=!1,TZe("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))},"warnACPolyfill")}var Emr=o(t=>!RZe.has(t),"shouldWarn"),hg=o(t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),"isPosInt"),NZe=o(t=>hg(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?iB:null:null,"getUintArray"),iB=class extends Array{static{o(this,"ZeroArray")}constructor(e){super(e),this.fill(0)}},Ife=class t{static{o(this,"Stack")}heap;length;static#e=!1;static create(e){let r=NZe(e);if(!r)return[];t.#e=!0;let i=new t(e,r);return t.#e=!1,i}constructor(e,r){if(!t.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},Sfe=class t{static{o(this,"LRUCache")}#e;#t;#i;#r;#n;#s;#l;#u;get perf(){return this.#u}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#c;#h;#d;#f;#m;#b;#A;#w;#v;#y;#C;#_;#p;#I;#x;#E;#o;static unsafeExposeInternals(e){return{starts:e.#_,ttls:e.#p,sizes:e.#C,keyMap:e.#h,keyList:e.#d,valList:e.#f,next:e.#m,prev:e.#b,get head(){return e.#A},get tail(){return e.#w},free:e.#v,isBackgroundFetch:o(r=>e.#S(r),"isBackgroundFetch"),backgroundFetch:o((r,i,n,s)=>e.#j(r,i,n,s),"backgroundFetch"),moveToTail:o(r=>e.#q(r),"moveToTail"),indexes:o(r=>e.#O(r),"indexes"),rindexes:o(r=>e.#g(r),"rindexes"),isStale:o(r=>e.#T(r),"isStale")}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#c}get size(){return this.#a}get fetchMethod(){return this.#s}get memoMethod(){return this.#l}get dispose(){return this.#i}get onInsert(){return this.#r}get disposeAfter(){return this.#n}constructor(e){let{max:r=0,ttl:i,ttlResolution:n=1,ttlAutopurge:s,updateAgeOnGet:a,updateAgeOnHas:c,allowStale:u,dispose:l,onInsert:f,disposeAfter:h,noDisposeOnSet:d,noUpdateTTL:p,maxSize:A=0,maxEntrySize:g=0,sizeCalculation:E,fetchMethod:y,memoMethod:b,noDeleteOnFetchRejection:I,noDeleteOnStaleGet:B,allowStaleOnFetchRejection:D,allowStaleOnFetchAbort:M,ignoreFetchAbort:N,perf:V}=e;if(V!==void 0&&typeof V?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#u=V??ymr,r!==0&&!hg(r))throw new TypeError("max option must be a nonnegative integer");let O=r?NZe(r):Array;if(!O)throw new Error("invalid max value: "+r);if(this.#e=r,this.#t=A,this.maxEntrySize=g||this.#t,this.sizeCalculation=E,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new Typ Line truncated
Wanted: ${t}
Found: ${e}`);return r.code="EINTEGRITY",r.expected=t,r.found=e,r}});var XZe=p(($si,Lfe)=>{"use strict";var WZe=tB(),JZe=M1(),YZe=$Ze(),eAr=w1(),{PassThrough:tAr}=Rle(),rAr=S0(),KZe=t=>({algorithms:["sha512"],...t});Lfe.exports=iAr;async function iAr(t,e,r,i={}){let{memoize:n}=i;i=KZe(i);let s=await YZe(t,r,i),o=await WZe.insert(t,e,s.integrity,{...i,size:s.size});return n&&JZe.put(t,o,r,i),s.integrity}Lfe.exports.stream=nAr;function nAr(t,e,r={}){let{memoize:i}=r;r=KZe(r);let n,s,o,a,c=new rAr;if(i){let l=new tAr().on("collect",f=>{a=f});c.push(l)}let u=YZe.stream(t,r).on("integrity",l=>{n=l}).on("size",l=>{s=l}).on("error",l=>{o=l});return c.push(u),c.push(new eAr({async flush(){if(!o){let l=await WZe.insert(t,e,n,{...r,size:s});i&&a&&JZe.put(t,l,a,r),c.emit("integrity",n),c.emit("size",s)}}})),c}});var eet=p(O0=>{"use strict";Object.defineProperty(O0,"__esModule",{value:!0});O0.range=O0.balanced=void 0;var sAr=(t,e,r)=>{let i=t instanceof RegExp?ZZe(t,r):t,n=e instanceof RegExp?ZZe(e,r):e,s=i!==null&&n!=null&&(0,O0.range)(i,n,r);return s&&{start:s[0],end:s[1],pre:r.slice(0,s[0]),body:r.slice(s[0]+i.length,s[1]),post:r.slice(s[1]+n.length)}};O0.balanced=sAr;var ZZe=(t,e)=>{let r=e.match(t);return r?r[0]:null},oAr=(t,e,r)=>{let i,n,s,o,a,c=r.indexOf(t),u=r.indexOf(e,c+1),l=c;if(c>=0&&u>0){if(t===e)return[c,u];for(i=[],s=r.length;l>=0&&!a;){if(l===c)i.push(l),c=r.indexOf(t,l+1);else if(i.length===1){let f=i.pop();f!==void 0&&(a=[f,u])}else n=i.pop(),n!==void 0&&n<s&&(s=n,o=u),u=r.indexOf(e,l+1);l=c<u&&c>=0?c:u}i.length&&o!==void 0&&(a=[s,o])}return a};O0.range=oAr});var Ufe=p(hB=>{"use strict";Object.defineProperty(hB,"__esModule",{value:!0});hB.EXPANSION_MAX=void 0;hB.expand=EAr;var tet=eet(),ret="\0SLASH"+Math.random()+"\0",iet="\0OPEN"+Math.random()+"\0",Ffe="\0CLOSE"+Math.random()+"\0",net="\0COMMA"+Math.random()+"\0",set="\0PERIOD"+Math.random()+"\0",aAr=new RegExp(ret,"g"),cAr=new RegExp(iet,"g"),uAr=new RegExp(Ffe,"g"),lAr=new RegExp(net,"g"),fAr=new RegExp(set,"g"),hAr=/\\\\/g,dAr=/\\{/g,pAr=/\\}/g,mAr=/\\,/g,AAr=/\\./g;hB.EXPANSION_MAX=1e5;function Mfe(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}function gAr(t){return t.replace(hAr,ret).replace(dAr,iet).replace(pAr,Ffe).replace(mAr,net).replace(AAr,set)}function yAr(t){return t.replace(aAr,"\\").replace(cAr,"{").replace(uAr,"}").replace(lAr,",").replace(fAr,".")}function oet(t){if(!t)return[""];let e=[],r=(0,tet.balanced)("{","}",t);if(!r)return t.split(",");let{pre:i,body:n,post:s}=r,o=i.split(",");o[o.length-1]+="{"+n+"}";let a=oet(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function EAr(t,e={}){if(!t)return[];let{max:r=hB.EXPANSION_MAX}=e;return t.slice(0,2)==="{}"&&(t="\\{\\}"+t.slice(2)),V1(gAr(t),r,!0).map(yAr)}function bAr(t){return"{"+t+"}"}function wAr(t){return/^-?0\d/.test(t)}function CAr(t,e){return t<=e}function IAr(t,e){return t>=e}function V1(t,e,r){let i=[],n=(0,tet.balanced)("{","}",t);if(!n)return[t];let s=n.pre,o=n.post.length?V1(n.post,e,!1):[""];if(/\$$/.test(n.pre))for(let a=0;a<o.length&&a<e;a++){let c=s+"{"+n.body+"}"+o[a];i.push(c)}else{let a=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),u=a||c,l=n.body.indexOf(",")>=0;if(!u&&!l)return n.post.match(/,(?!,).*\}/)?(t=n.pre+"{"+n.body+Ffe+n.post,V1(t,e,!0)):[t];let f;if(u)f=n.body.split(/\.\./);else if(f=oet(n.body),f.length===1&&f[0]!==void 0&&(f=V1(f[0],e,!1).map(bAr),f.length===1))return o.map(d=>n.pre+f[0]+d);let h;if(u&&f[0]!==void 0&&f[1]!==void 0){let d=Mfe(f[0]),m=Mfe(f[1]),A=Math.max(f[0].length,f[1].length),y=f.length===3&&f[2]!==void 0?Math.abs(Mfe(f[2])):1,g=CAr;m<d&&(y*=-1,g=IAr);let C=f.some(wAr);h=[];for(let S=d;g(S,m);S+=y){let N;if(c)N=String.fromCharCode(S),N==="\\"&&(N="");else if(N=String(S),C){let L=A-N.length;if(L>0){let T=new Array(L+1).join("0");S<0?N="-"+T+N.slice(1):N=T+N}}h.push(N)}}else{h=[];for(let d=0;d<f.length;d++)h.push.apply(h,V1(f[d],e,!1))}for(let d=0;d<h.length;d++)for(let m=0;m<o.length&&i.length<e;m++){let A=s+h[d]+o[m];(!r||u||A)&&i.push(A)}}return i}});var aet=p(m8=>{"use strict";Object.defineProperty(m8,"__esModule",{value:!0});m8.assertValidPattern=void 0;var SAr=1024*64,BAr=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>SAr)throw new TypeError("pattern is too long")};m8.assertValidPattern=BAr});var uet=p(A8=>{"use strict";Object.defineProperty(A8,"__esModule",{value:!0});A8.parseClass=void 0;var vAr={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},z1=t=>t.replace(/[[\]\\-]/g,"\\$&"),_Ar=t=>t.replace(/[-[\]{}() Line truncated
globstar while`,e,h,r,d,m),this.matchOne(e.slice(h),r.slice(d),i))return this.debug("globstar found match!",h,c,m),!0;if(m==="."||m===".."||!n.dot&&m.charAt(0)==="."){this.debug("dot detected!",e,h,r,d);break}this.debug("globstar swallow a segment, and continue"),h++}return!!(i&&(this.debug(`
>>> no match, partial?`,e,h,r,d),h===c))}let A;if(typeof l=="string"?(A=f===l,this.debug("string match",l,f,A)):(A=l.test(f),this.debug("pattern match",l,f,A)),!A)return!1}if(o===c&&a===u)return!0;if(o===c)return i;if(a===u)return o===c-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return(0,Oe.braceExpand)(this.pattern,this.options)}parse(e){(0,I8.assertValidPattern)(e);let r=this.options;if(e==="**")return Oe.GLOBSTAR;if(e==="")return"";let i,n=null;(i=e.match(XAr))?n=r.dot?egr:ZAr:(i=e.match(GAr))?n=(r.nocase?r.dot?zAr:VAr:r.dot?jAr:HAr)(i[1]):(i=e.match(tgr))?n=(r.nocase?r.dot?igr:rgr:r.dot?ngr:sgr)(i):(i=e.match($Ar))?n=r.dot?JAr:WAr:(i=e.match(YAr))&&(n=KAr);let s=Aet.AST.fromGlob(e,this.options).toMMPattern();return n&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:n}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,i=r.noglobstar?agr:r.dot?cgr:ugr,n=new Set(r.nocase?["i"]:[]),s=e.map(c=>{let u=c.map(f=>{if(f instanceof RegExp)for(let h of f.flags.split(""))n.add(h);return typeof f=="string"?mgr(f):f===Oe.GLOBSTAR?Oe.GLOBSTAR:f._src});u.forEach((f,h)=>{let d=u[h+1],m=u[h-1];f!==Oe.GLOBSTAR||m===Oe.GLOBSTAR||(m===void 0?d!==void 0&&d!==Oe.GLOBSTAR?u[h+1]="(?:\\/|"+i+"\\/)?"+d:u[h]=i:d===void 0?u[h-1]=m+"(?:\\/|\\/"+i+")?":d!==Oe.GLOBSTAR&&(u[h-1]=m+"(?:\\/|\\/"+i+"\\/)"+d,u[h+1]=Oe.GLOBSTAR))});let l=u.filter(f=>f!==Oe.GLOBSTAR);if(this.partial&&l.length>=1){let f=[];for(let h=1;h<=l.length;h++)f.push(l.slice(0,h).join("/"));return"(?:"+f.join("|")+")"}return l.join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];s="^"+o+s+a+"$",this.partial&&(s="^(?:\\/|"+o+s.slice(1,-1)+a+")$"),this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...n].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let i=this.options;this.isWindows&&(e=e.split("\\").join("/"));let n=this.slashSplit(e);this.debug(this.pattern,"split",n);let s=this.set;this.debug(this.pattern,"set",s);let o=n[n.length-1];if(!o)for(let a=n.length-2;!o&&a>=0;a--)o=n[a];for(let a=0;a<s.length;a++){let c=s[a],u=n;if(i.matchBase&&c.length===1&&(u=[o]),this.matchOne(u,c,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return Oe.minimatch.defaults(e).Minimatch}};Oe.Minimatch=P0;var Agr=Hfe();Object.defineProperty(Oe,"AST",{enumerable:!0,get:function(){return Agr.AST}});var ggr=jfe();Object.defineProperty(Oe,"escape",{enumerable:!0,get:function(){return ggr.escape}});var ygr=y8();Object.defineProperty(Oe,"unescape",{enumerable:!0,get:function(){return ygr.unescape}});Oe.minimatch.AST=Aet.AST;Oe.minimatch.Minimatch=P0;Oe.minimatch.escape=FAr.escape;Oe.minimatch.unescape=UAr.unescape});var vet=p(Vo=>{"use strict";var Egr=Vo&&Vo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Vo,"__esModule",{value:!0});Vo.Minipass=Vo.isWritable=Vo.isReadable=Vo.isStream=void 0;var bet=typeof process=="object"&&process?process:{stdout:null,stderr:null},Kfe=require("node:events"),Bet=Egr(require("node:stream")),bgr=require("node:string_decoder"),wgr=t=>!!t&&typeof t=="object"&&(t instanceof T8||t instanceof Bet.default||(0,Vo.isReadable)(t)||(0,Vo.isWritable)(t));Vo.isStream=wgr;var Cgr=t=>!!t&&typeof t=="object"&&t instanceof Kfe.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==Bet.default.Writable.prototype.pipe;Vo.isReadable=Cgr;var Igr=t=>!!t&&typeof t=="object"&&t instanceof Kfe.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function";Vo.isWritable=Igr;var im=Symbol("EOF"),nm=Symbol("maybeEmitEnd"),Ag=Symbol("emittedEnd"),S8=Symbol("emittingEnd"),$1=Symbol("emittedError"),B8=Symbol("closed"),wet=Symbol("read"),v8=Symbol("flush"),Cet=Symbol("flushChunk"),ql=Symbol("encoding"),dB=Symbol("decoder"),Wn=Symbol("flowing"),W1=Symbol("paused"),pB=Symbol("resume"),Jn=Symbol("buffer"),jo=Symbol("pipes"),Yn=Symbol("bufferLength"),Vfe=Symbol("bufferPush"),_8=Symbol("bufferShift"),Xs=Symbol("objectMode"),Gi=Symbol("destroyed"),zfe=Symbol("error"),$fe=Symbol("emitData"),Iet=Symbol("emitEnd"),Wfe=Symbol("emitEnd2"),Hh=Symbol("async"),Jfe=Symbol("abort"),x8=Symbol("aborted"),J1=Symbol("signal"),k0=Symbol("dataListeners"),xc=Symbol("discarded"),Y1=t=>Promise.resolve().then(t),Sgr=t=>t(),Bgr=t=>t==="end"||t==="finish"||t==="prefinish",vgr=t=>t instanceof ArrayBuffer||!!t&&typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,_gr=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),R8=class{src;dest;opts;ondrain;constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[pB](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondra Line truncated
Found: ${e}`);return r.code="EINTEGRITY",r.expected=t,r.found=e,r}o(eAr,"checksumError")});var ZZe=m((jIi,Mfe)=>{"use strict";var JZe=rB(),YZe=F1(),KZe=WZe(),tAr=C1(),{PassThrough:rAr}=Tle(),iAr=B0(),XZe=o(t=>({algorithms:["sha512"],...t}),"putOpts");Mfe.exports=nAr;async function nAr(t,e,r,i={}){let{memoize:n}=i;i=XZe(i);let s=await KZe(t,r,i),a=await JZe.insert(t,e,s.integrity,{...i,size:s.size});return n&&YZe.put(t,a,r,i),s.integrity}o(nAr,"putData");Mfe.exports.stream=sAr;function sAr(t,e,r={}){let{memoize:i}=r;r=XZe(r);let n,s,a,c,u=new iAr;if(i){let f=new rAr().on("collect",h=>{c=h});u.push(f)}let l=KZe.stream(t,r).on("integrity",f=>{n=f}).on("size",f=>{s=f}).on("error",f=>{a=f});return u.push(l),u.push(new tAr({async flush(){if(!a){let f=await JZe.insert(t,e,n,{...r,size:s});i&&c&&YZe.put(t,f,c,r),u.emit("integrity",n),u.emit("size",s)}}})),u}o(sAr,"putStream")});var tet=m(P0=>{"use strict";Object.defineProperty(P0,"__esModule",{value:!0});P0.range=P0.balanced=void 0;var oAr=o((t,e,r)=>{let i=t instanceof RegExp?eet(t,r):t,n=e instanceof RegExp?eet(e,r):e,s=i!==null&&n!=null&&(0,P0.range)(i,n,r);return s&&{start:s[0],end:s[1],pre:r.slice(0,s[0]),body:r.slice(s[0]+i.length,s[1]),post:r.slice(s[1]+n.length)}},"balanced");P0.balanced=oAr;var eet=o((t,e)=>{let r=e.match(t);return r?r[0]:null},"maybeMatch"),aAr=o((t,e,r)=>{let i,n,s,a,c,u=r.indexOf(t),l=r.indexOf(e,u+1),f=u;if(u>=0&&l>0){if(t===e)return[u,l];for(i=[],s=r.length;f>=0&&!c;){if(f===u)i.push(f),u=r.indexOf(t,f+1);else if(i.length===1){let h=i.pop();h!==void 0&&(c=[h,l])}else n=i.pop(),n!==void 0&&n<s&&(s=n,a=l),l=r.indexOf(e,f+1);f=u<l&&u>=0?u:l}i.length&&a!==void 0&&(c=[s,a])}return c},"range");P0.range=aAr});var qfe=m(dB=>{"use strict";Object.defineProperty(dB,"__esModule",{value:!0});dB.EXPANSION_MAX=void 0;dB.expand=bAr;var ret=tet(),iet="\0SLASH"+Math.random()+"\0",net="\0OPEN"+Math.random()+"\0",Ufe="\0CLOSE"+Math.random()+"\0",set="\0COMMA"+Math.random()+"\0",oet="\0PERIOD"+Math.random()+"\0",cAr=new RegExp(iet,"g"),uAr=new RegExp(net,"g"),lAr=new RegExp(Ufe,"g"),fAr=new RegExp(set,"g"),hAr=new RegExp(oet,"g"),dAr=/\\\\/g,pAr=/\\{/g,mAr=/\\}/g,AAr=/\\,/g,gAr=/\\./g;dB.EXPANSION_MAX=1e5;function Ffe(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}o(Ffe,"numeric");function yAr(t){return t.replace(dAr,iet).replace(pAr,net).replace(mAr,Ufe).replace(AAr,set).replace(gAr,oet)}o(yAr,"escapeBraces");function EAr(t){return t.replace(cAr,"\\").replace(uAr,"{").replace(lAr,"}").replace(fAr,",").replace(hAr,".")}o(EAr,"unescapeBraces");function aet(t){if(!t)return[""];let e=[],r=(0,ret.balanced)("{","}",t);if(!r)return t.split(",");let{pre:i,body:n,post:s}=r,a=i.split(",");a[a.length-1]+="{"+n+"}";let c=aet(s);return s.length&&(a[a.length-1]+=c.shift(),a.push.apply(a,c)),e.push.apply(e,a),e}o(aet,"parseCommaParts");function bAr(t,e={}){if(!t)return[];let{max:r=dB.EXPANSION_MAX}=e;return t.slice(0,2)==="{}"&&(t="\\{\\}"+t.slice(2)),z1(yAr(t),r,!0).map(EAr)}o(bAr,"expand");function wAr(t){return"{"+t+"}"}o(wAr,"embrace");function CAr(t){return/^-?0\d/.test(t)}o(CAr,"isPadded");function IAr(t,e){return t<=e}o(IAr,"lte");function SAr(t,e){return t>=e}o(SAr,"gte");function z1(t,e,r){let i=[],n=(0,ret.balanced)("{","}",t);if(!n)return[t];let s=n.pre,a=n.post.length?z1(n.post,e,!1):[""];if(/\$$/.test(n.pre))for(let c=0;c<a.length&&c<e;c++){let u=s+"{"+n.body+"}"+a[c];i.push(u)}else{let c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),l=c||u,f=n.body.indexOf(",")>=0;if(!l&&!f)return n.post.match(/,(?!,).*\}/)?(t=n.pre+"{"+n.body+Ufe+n.post,z1(t,e,!0)):[t];let h;if(l)h=n.body.split(/\.\./);else if(h=aet(n.body),h.length===1&&h[0]!==void 0&&(h=z1(h[0],e,!1).map(wAr),h.length===1))return a.map(p=>n.pre+h[0]+p);let d;if(l&&h[0]!==void 0&&h[1]!==void 0){let p=Ffe(h[0]),A=Ffe(h[1]),g=Math.max(h[0].length,h[1].length),E=h.length===3&&h[2]!==void 0?Math.abs(Ffe(h[2])):1,y=IAr;A<p&&(E*=-1,y=SAr);let I=h.some(CAr);d=[];for(let B=p;y(B,A);B+=E){let D;if(u)D=String.fromCharCode(B),D==="\\"&&(D="");else if(D=String(B),I){let M=g-D.length;if(M>0){let N=new Array(M+1).join("0");B<0?D="-"+N+D.slice(1):D=N+D}}d.push(D)}}else{d=[];for(let p=0;p<h.length;p++)d.push.apply(d,z1(h[p],e,!1))}for(let p=0;p<d.length;p++)for(let A=0;A<a.length&&i.length<e;A++){let g=s+d[p]+a[A];(!r||l||g)&&i.push(g)}}return i}o(z1,"expand_")});var cet=m(g8=>{"use strict";Object.defineProperty(g8,"__esModule",{value:!0});g8.assertValidPattern=void 0;var BAr=1024*64,vAr=o(t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>BAr)throw new TypeError("pattern is too long")},"assertValidPattern");g8.assertValidPattern=vAr});var fet=m(y8=>{"use strict";Object.defineProperty(y8,"__esModule",{value:!0});y8.parseClass=void 0;var _Ar={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:grap Line truncated
globstar while`,e,d,r,p,A),this.matchOne(e.slice(d),r.slice(p),i))return this.debug("globstar found match!",d,u,A),!0;if(A==="."||A===".."||!n.dot&&A.charAt(0)==="."){this.debug("dot detected!",e,d,r,p);break}this.debug("globstar swallow a segment, and continue"),d++}return!!(i&&(this.debug(`
>>> no match, partial?`,e,d,r,p),d===u))}let g;if(typeof f=="string"?(g=h===f,this.debug("string match",f,h,g)):(g=f.test(h),this.debug("pattern match",f,h,g)),!g)return!1}if(a===u&&c===l)return!0;if(a===u)return i;if(c===l)return a===u-1&&e[a]==="";throw new Error("wtf?")}braceExpand(){return(0,Pe.braceExpand)(this.pattern,this.options)}parse(e){(0,B8.assertValidPattern)(e);let r=this.options;if(e==="**")return Pe.GLOBSTAR;if(e==="")return"";let i,n=null;(i=e.match(ZAr))?n=r.dot?tgr:egr:(i=e.match(HAr))?n=(r.nocase?r.dot?$Ar:zAr:r.dot?VAr:jAr)(i[1]):(i=e.match(rgr))?n=(r.nocase?r.dot?ngr:igr:r.dot?sgr:ogr)(i):(i=e.match(WAr))?n=r.dot?YAr:JAr:(i=e.match(KAr))&&(n=XAr);let s=get.AST.fromGlob(e,this.options).toMMPattern();return n&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:n}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,i=r.noglobstar?cgr:r.dot?ugr:lgr,n=new Set(r.nocase?["i"]:[]),s=e.map(u=>{let l=u.map(h=>{if(h instanceof RegExp)for(let d of h.flags.split(""))n.add(d);return typeof h=="string"?Agr(h):h===Pe.GLOBSTAR?Pe.GLOBSTAR:h._src});l.forEach((h,d)=>{let p=l[d+1],A=l[d-1];h!==Pe.GLOBSTAR||A===Pe.GLOBSTAR||(A===void 0?p!==void 0&&p!==Pe.GLOBSTAR?l[d+1]="(?:\\/|"+i+"\\/)?"+p:l[d]=i:p===void 0?l[d-1]=A+"(?:\\/|\\/"+i+")?":p!==Pe.GLOBSTAR&&(l[d-1]=A+"(?:\\/|\\/"+i+"\\/)"+p,l[d+1]=Pe.GLOBSTAR))});let f=l.filter(h=>h!==Pe.GLOBSTAR);if(this.partial&&f.length>=1){let h=[];for(let d=1;d<=f.length;d++)h.push(f.slice(0,d).join("/"));return"(?:"+h.join("|")+")"}return f.join("/")}).join("|"),[a,c]=e.length>1?["(?:",")"]:["",""];s="^"+a+s+c+"$",this.partial&&(s="^(?:\\/|"+a+s.slice(1,-1)+c+")$"),this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...n].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let i=this.options;this.isWindows&&(e=e.split("\\").join("/"));let n=this.slashSplit(e);this.debug(this.pattern,"split",n);let s=this.set;this.debug(this.pattern,"set",s);let a=n[n.length-1];if(!a)for(let c=n.length-2;!a&&c>=0;c--)a=n[c];for(let c=0;c<s.length;c++){let u=s[c],l=n;if(i.matchBase&&u.length===1&&(l=[a]),this.matchOne(l,u,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return Pe.minimatch.defaults(e).Minimatch}};Pe.Minimatch=k0;var ggr=jfe();Object.defineProperty(Pe,"AST",{enumerable:!0,get:o(function(){return ggr.AST},"get")});var ygr=Vfe();Object.defineProperty(Pe,"escape",{enumerable:!0,get:o(function(){return ygr.escape},"get")});var Egr=b8();Object.defineProperty(Pe,"unescape",{enumerable:!0,get:o(function(){return Egr.unescape},"get")});Pe.minimatch.AST=get.AST;Pe.minimatch.Minimatch=k0;Pe.minimatch.escape=UAr.escape;Pe.minimatch.unescape=qAr.unescape});var _et=m(zo=>{"use strict";var bgr=zo&&zo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(zo,"__esModule",{value:!0});zo.Minipass=zo.isWritable=zo.isReadable=zo.isStream=void 0;var wet=typeof process=="object"&&process?process:{stdout:null,stderr:null},Xfe=require("node:events"),vet=bgr(require("node:stream")),wgr=require("node:string_decoder"),Cgr=o(t=>!!t&&typeof t=="object"&&(t instanceof D8||t instanceof vet.default||(0,zo.isReadable)(t)||(0,zo.isWritable)(t)),"isStream");zo.isStream=Cgr;var Igr=o(t=>!!t&&typeof t=="object"&&t instanceof Xfe.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==vet.default.Writable.prototype.pipe,"isReadable");zo.isReadable=Igr;var Sgr=o(t=>!!t&&typeof t=="object"&&t instanceof Xfe.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function","isWritable");zo.isWritable=Sgr;var nm=Symbol("EOF"),sm=Symbol("maybeEmitEnd"),gg=Symbol("emittedEnd"),v8=Symbol("emittingEnd"),W1=Symbol("emittedError"),_8=Symbol("closed"),Cet=Symbol("read"),x8=Symbol("flush"),Iet=Symbol("flushChunk"),Gl=Symbol("encoding"),pB=Symbol("decoder"),Jn=Symbol("flowing"),J1=Symbol("paused"),mB=Symbol("resume"),Yn=Symbol("buffer"),Vo=Symbol("pipes"),Kn=Symbol("bufferLength"),zfe=Symbol("bufferPush"),R8=Symbol("bufferShift"),Zs=Symbol("objectMode"),Hi=Symbol("destroyed"),$fe=Symbol("error"),Wfe=Symbol("emitData"),Bet=Symbol("emitEnd"),Jfe=Symbol("emitEnd2"),jh=Symbol("async"),Yfe=Symbol("abort"),T8=Symbol("aborted"),Y1=Symbol("signal"),Q0=Symbol("dataListeners"),Rc=Symbol("discarded"),K1=o(t=>Promise.resolve().then(t),"defer"),Bgr=o(t=>t(),"nodefer"),vgr=o(t=>t==="end"||t==="finish"||t==="prefinish","isEndish"),_gr=o(t=>t instanceof ArrayBuffer||!!t&&typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,"isArrayBufferLike"),xgr=o(t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),"isArrayBufferView"),N8=class{static{o(this,"Pipe")}src;dest; Line truncated
\r
`);if(h===-1){aG("have not received end of HTTP headers yet..."),s();return}let d=f.slice(0,h).toString("ascii").split(`\r
`),m=d.shift();if(!m)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let A=m.split(" "),y=+A[1],g=A.slice(2).join(" "),E={};for(let C of d){if(!C)continue;let S=C.indexOf(":");if(S===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${C}"`));let N=C.slice(0,S).toLowerCase(),L=C.slice(S+1).trimStart(),T=E[N];typeof T=="string"?E[N]=[T,L]:Array.isArray(T)?T.push(L):E[N]=L}aG("got proxy server response: %o %o",m,E),o(),e({connect:{statusCode:y,statusText:g,headers:E},buffered:f})}t.on("error",c),t.on("end",a),s()})}bB.parseProxyResponse=kEr});var ztt=p(qu=>{"use strict";var QEr=qu&&qu.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=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,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),LEr=qu&&qu.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),jtt=qu&&qu.__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)&&QEr(e,t,r);return LEr(e,t),e},Vtt=qu&&qu.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(qu,"__esModule",{value:!0});qu.HttpsProxyAgent=void 0;var A2=jtt(require("net")),Gtt=jtt(require("tls")),MEr=Vtt(require("assert")),FEr=Vtt(ky()),UEr=sx(),qEr=require("url"),GEr=qtt(),g2=(0,FEr.default)("https-proxy-agent"),cG=class extends UEr.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new qEr.URL(e):e,this.proxyHeaders=r?.headers??{},g2("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let i=(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?Htt(r,"headers"):null,host:i,port:n}}async connect(e,r){let{proxy:i}=this;if(!r.host)throw new TypeError('No "host" provided');let n;if(i.protocol==="https:"){g2("Creating `tls.Socket`: %o",this.connectOpts);let h=this.connectOpts.servername||this.connectOpts.host;n=Gtt.connect({...this.connectOpts,servername:h&&A2.isIP(h)?void 0:h})}else g2("Creating `net.Socket`: %o",this.connectOpts),n=A2.connect(this.connectOpts);let s=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=A2.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`;if(i.username||i.password){let h=`${decodeURIComponent(i.username)}:${decodeURIComponent(i.password)}`;s["Proxy-Authorization"]=`Basic ${Buffer.from(h).toString("base64")}`}s.Host=`${o}:${r.port}`,s["Proxy-Connection"]||(s["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let h of Object.keys(s))a+=`${h}: ${s[h]}\r
`;let c=(0,GEr.parseProxyResponse)(n);n.write(`${a}\r
`);let{connect:u,buffered:l}=await c;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200){if(e.once("socket",HEr),r.secureEndpoint){g2("Upgrading socket connection to TLS");let h=r.servername||r.host;return Gtt.connect({...Htt(r,"host","path","port"),socket:n,servername:A2.isIP(h)?void 0:h})}return n}n.destroy();let f=new A2.Socket({writable:!1});return f.readable=!0,e.once("socket",h=>{g2("Replaying proxy buffer for failed request"),(0,MEr.default)(h.listenerCount("data")>0),h.push(l),h.push(null)}),f}};cG.protocols=["http","https"];qu.HttpsProxyAgent=cG;function HEr(t){t.resume()}function Htt(t,...e){let r={},i;for(i in t)e.includes(i)||(r[i]=t[i]);return r}});var Ytt=p(am=>{"use strict";Object.defineProperty(am,"__esModule",{value:!0});var $tt=require("buffer"),U0={INVALID_ENCODING:"Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.",INVALID_SMARTBUFFER_SIZE:"Invalid size provided. Size must be a valid integer greater than zero.",INVALID_SMARTBUFFER_BUFFER:"Invalid Buffer provided in SmartBufferOptions.",INVALID_SMARTBUFFER_OBJECT:"Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.",INVALID_OFFSET:"An invalid offset value was provided.",INVALID_OFFSET_NON_NUMBER:"An invalid offset value was provided. A numeric value is required.",INVALID_LENGTH:"An invalid length value was provided.",INVALID_LENGTH_NON_NUMBER:"An invalid length value was provived. A numeric value is required.",INVALID_TARGET_OFFSET:"Target offset is beyond the bounds of the internal SmartBuffer data.",INVALID_TARGET_LENGTH:"Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.",INVALID_READ_BEYOND_BOUNDS:"Attempted to read beyond the bounds of the managed data.",INVALID_WRITE_BEYOND_BOUNDS:"Attempted to write beyond the bounds of the managed data."};am.ERRORS=U0;function jEr(t){if(!$tt.Buffer.isEncoding(t))throw new Error(U0.INVALID_ENCODING)}am.checkEncoding=jEr;function Wtt(t){return typeof t=="number"&&isFinite(t)&&WEr(t)}am.isFiniteInteger=Wtt;function Jtt(t,e){if(typeof t=="number"){if(!Wtt(t)||t<0)throw new Error(e?U0.INVALID_OFFSET:U0.INVALID_LENGTH)}else throw new Error(e?U0.INVALID_OFFSET_NON_NUMBER:U0.INVALID_LENGTH_NON_NUMBER)}function VEr(t){Jtt(t,!1)}am.checkLengthValue=VEr;function zEr(t){Jtt(t,!0)}am.checkOffsetValue=zEr;function $Er(t,e){if(t<0||t>e.length)throw new Error(U0.INVALID_TARGET_OFFSET)}am.checkTargetOffset=$Er;function WEr(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}function JEr(t){if(typeof BigInt>"u")throw new Error("Platform does not support JS BigInt type.");if(typeof $tt.Buffer.prototype[t]>"u")throw new Error(`Platform does not support Buffer.prototype.${t}.`)}am.bigIntAndBufferInt64Check=JEr});var Xtt=p(Uhe=>{"use strict";Object.defineProperty(Uhe,"__esModule",{value:!0});var Et=Ytt(),Ktt=4096,YEr="utf8",Fhe=class t{constructor(e){if(this.length=0,this._encoding=YEr,this._writeOffset=0,this._readOffset=0,t.isSmartBufferOptions(e))if(e.encoding&&(Et.checkEncoding(e.encoding),this._encoding=e.encoding),e.size)if(Et.isFiniteInteger(e.size)&&e.size>0)this._buff=Buffer.allocUnsafe(e.size);else throw new Error(Et.ERRORS.INVALID_SMARTBUFFER_SIZE);else if(e.buff)if(Buffer.isBuffer(e.buff))this._buff=e.buff,this.length=e.buff.length;else throw new Error(Et.ERRORS.INVALID_SMARTBUFFER_BUFFER);else this._buff=Buffer.allocUnsafe(Ktt);else{if(typeof e<"u")throw new Error(Et.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(Ktt)}}static fromSize(e,r){return new this({size:e,encoding:r})}static fromBuffer(e,r){return new this({buff:e,encoding:r})}static fromOptions(e){return new this(e)}static isSmartBufferOptions(e){let r=e;return r&&(r.encoding!==void 0||r.size!==void 0||r.buff!==void 0)}readInt8(e){return this._readNumberValue(Buffer.prototype.readInt8,1,e)}readInt16BE(e){return this._readNumberValue(Buffer.prototype.readInt16BE,2,e)}readInt16LE(e){return this._readNumberValue(Buffer.prototype.readInt16LE,2,e)}readInt32BE(e){return this._readNumberValue(Buffer.prototype.readInt32BE,4,e)}readInt32LE(e){return this._readNumberValue(Buffer.prototype.readInt32LE,4,e)}readBigInt64BE(e){return Et.bigIntAndBufferInt64Check("readBigInt64BE"),this._readNumberValue(Buffer.prototype.readBigInt64BE,8,e)}readBigInt64LE(e){return Et.bigIntAndBufferInt64Check("readBigInt64LE"),this._readNumberValue(Buffer.prototype.readBigInt64LE,8,e)}writeInt8(e,r){return this._writeNumberValue(Buffer.prototype.writeInt8,1,e,r),this}insertInt8(e,r){return this._insertNumberValue(Buffer.prototype.writeInt8,1,e,r)}writeInt16BE(e,r){return this._writeNumberValue(Buffer.prototype.writeInt16BE,2,e,r)}insertInt16BE(e,r){return this._insertNumberValue(Buffer.prototype.writeInt16BE,2,e,r)}writeInt16LE(e,r){return this._writeNumberValue(Buffer.prototype.writeInt16LE,2,e,r)}insertInt16LE(e,r){return this._insertNumberValue(Buffer.prototype.writeInt16LE,2,e,r)}writeInt32BE(e,r){retur Line truncated
globstar while`,e,h,r,d,m),this.matchOne(e.slice(h),r.slice(d),i))return this.debug("globstar found match!",h,c,m),!0;if(m==="."||m===".."||!n.dot&&m.charAt(0)==="."){this.debug("dot detected!",e,h,r,d);break}this.debug("globstar swallow a segment, and continue"),h++}return!!(i&&(this.debug(`
>>> no match, partial?`,e,h,r,d),h===c))}let A;if(typeof l=="string"?(A=f===l,this.debug("string match",l,f,A)):(A=l.test(f),this.debug("pattern match",l,f,A)),!A)return!1}if(o===c&&a===u)return!0;if(o===c)return i;if(a===u)return o===c-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return(0,Pe.braceExpand)(this.pattern,this.options)}parse(e){(0,oH.assertValidPattern)(e);let r=this.options;if(e==="**")return Pe.GLOBSTAR;if(e==="")return"";let i,n=null;(i=e.match(vIr))?n=r.dot?xIr:_Ir:(i=e.match(AIr))?n=(r.nocase?r.dot?bIr:EIr:r.dot?yIr:gIr)(i[1]):(i=e.match(RIr))?n=(r.nocase?r.dot?NIr:TIr:r.dot?DIr:OIr)(i):(i=e.match(wIr))?n=r.dot?IIr:CIr:(i=e.match(SIr))&&(n=BIr);let s=lnt.AST.fromGlob(e,this.options).toMMPattern();return n&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:n}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,i=r.noglobstar?kIr:r.dot?QIr:LIr,n=new Set(r.nocase?["i"]:[]),s=e.map(c=>{let u=c.map(f=>{if(f instanceof RegExp)for(let h of f.flags.split(""))n.add(h);return typeof f=="string"?HIr(f):f===Pe.GLOBSTAR?Pe.GLOBSTAR:f._src});u.forEach((f,h)=>{let d=u[h+1],m=u[h-1];f!==Pe.GLOBSTAR||m===Pe.GLOBSTAR||(m===void 0?d!==void 0&&d!==Pe.GLOBSTAR?u[h+1]="(?:\\/|"+i+"\\/)?"+d:u[h]=i:d===void 0?u[h-1]=m+"(?:\\/|\\/"+i+")?":d!==Pe.GLOBSTAR&&(u[h-1]=m+"(?:\\/|\\/"+i+"\\/)"+d,u[h+1]=Pe.GLOBSTAR))});let l=u.filter(f=>f!==Pe.GLOBSTAR);if(this.partial&&l.length>=1){let f=[];for(let h=1;h<=l.length;h++)f.push(l.slice(0,h).join("/"));return"(?:"+f.join("|")+")"}return l.join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];s="^"+o+s+a+"$",this.partial&&(s="^(?:\\/|"+o+s.slice(1,-1)+a+")$"),this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...n].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let i=this.options;this.isWindows&&(e=e.split("\\").join("/"));let n=this.slashSplit(e);this.debug(this.pattern,"split",n);let s=this.set;this.debug(this.pattern,"set",s);let o=n[n.length-1];if(!o)for(let a=n.length-2;!o&&a>=0;a--)o=n[a];for(let a=0;a<s.length;a++){let c=s[a],u=n;if(i.matchBase&&c.length===1&&(u=[o]),this.matchOne(u,c,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return Pe.minimatch.defaults(e).Minimatch}};Pe.Minimatch=W0;var jIr=fpe();Object.defineProperty(Pe,"AST",{enumerable:!0,get:function(){return jIr.AST}});var VIr=hpe();Object.defineProperty(Pe,"escape",{enumerable:!0,get:function(){return VIr.escape}});var zIr=tH();Object.defineProperty(Pe,"unescape",{enumerable:!0,get:function(){return zIr.unescape}});Pe.minimatch.AST=lnt.AST;Pe.minimatch.Minimatch=W0;Pe.minimatch.escape=dIr.escape;Pe.minimatch.unescape=pIr.unescape});var mpe=p($u=>{"use strict";var mnt=$u&&$u.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty($u,"__esModule",{value:!0});$u.SuccinctRoles=$u.DelegatedRole=$u.Role=$u.TOP_LEVEL_ROLE_NAMES=void 0;var Ant=mnt(require("crypto")),$Ir=pnt(),aH=mnt(require("util")),cH=ed(),J0=Vl();$u.TOP_LEVEL_ROLE_NAMES=["root","targets","snapshot","timestamp"];var P2=class t{keyIDs;threshold;unrecognizedFields;constructor(e){let{keyIDs:r,threshold:i,unrecognizedFields:n}=e;if(WIr(r))throw new cH.ValueError("duplicate key IDs found");if(i<1)throw new cH.ValueError("threshold must be at least 1");this.keyIDs=r,this.threshold=i,this.unrecognizedFields=n||{}}equals(e){return e instanceof t?this.threshold===e.threshold&&aH.default.isDeepStrictEqual(this.keyIDs,e.keyIDs)&&aH.default.isDeepStrictEqual(this.unrecognizedFields,e.unrecognizedFields):!1}toJSON(){return{keyids:this.keyIDs,threshold:this.threshold,...this.unrecognizedFields}}static fromJSON(e){let{keyids:r,threshold:i,...n}=e;if(!J0.guard.isStringArray(r))throw new TypeError("keyids must be an array");if(typeof i!="number")throw new TypeError("threshold must be a number");return new t({keyIDs:r,threshold:i,unrecognizedFields:n})}};$u.Role=P2;function WIr(t){return new Set(t).size!==t.length}var dpe=class t extends P2{name;terminating;paths;pathHashPrefixes;constructor(e){super(e);let{name:r,terminating:i,paths:n,pathHashPrefixes:s}=e;if(this.name=r,this.terminating=i,e.paths&&e.pathHashPrefixes)throw new cH.ValueError("paths and pathHashPrefixes are mutually exclusive");this.paths=n,this.pathHashPrefixes=s}equals(e){return e instanceof t?super.equals(e)&&this.name===e.name&&this.terminating===e.terminating&&aH.default.isDeepStrictEqual(this.paths,e.paths)&&aH.default.isDeepStrictEqual(this.pathHashPrefixes,e.pathHashPrefixes):!1}isDelegatedPath(e){if(this.paths)return this.paths.some(r=>YIr(e,r));if(this.pathHashPrefixes){let i=Ant.default.createHash("sha256").update( Line truncated
`);if(d===-1){uG("have not received end of HTTP headers yet..."),s();return}let p=h.slice(0,d).toString("ascii").split(`\r
`),A=p.shift();if(!A)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let g=A.split(" "),E=+g[1],y=g.slice(2).join(" "),b={};for(let I of p){if(!I)continue;let B=I.indexOf(":");if(B===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${I}"`));let D=I.slice(0,B).toLowerCase(),M=I.slice(B+1).trimStart(),N=b[D];typeof N=="string"?b[D]=[N,M]:Array.isArray(N)?N.push(M):b[D]=M}uG("got proxy server response: %o %o",A,b),a(),e({connect:{statusCode:E,statusText:y,headers:b},buffered:h})}o(l,"ondata"),t.on("error",u),t.on("end",c),s()})}o(QEr,"parseProxyResponse");wB.parseProxyResponse=QEr});var $tt=m(Gu=>{"use strict";var LEr=Gu&&Gu.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),MEr=Gu&&Gu.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Vtt=Gu&&Gu.__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)&&LEr(e,t,r);return MEr(e,t),e},ztt=Gu&&Gu.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Gu,"__esModule",{value:!0});Gu.HttpsProxyAgent=void 0;var g2=Vtt(require("net")),Htt=Vtt(require("tls")),FEr=ztt(require("assert")),UEr=ztt(Qy()),qEr=ox(),GEr=require("url"),HEr=Gtt(),y2=(0,UEr.default)("https-proxy-agent"),lG=class extends qEr.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new GEr.URL(e):e,this.proxyHeaders=r?.headers??{},y2("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let i=(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?jtt(r,"headers"):null,host:i,port:n}}async connect(e,r){let{proxy:i}=this;if(!r.host)throw new TypeError('No "host" provided');let n;if(i.protocol==="https:"){y2("Creating `tls.Socket`: %o",this.connectOpts);let d=this.connectOpts.servername||this.connectOpts.host;n=Htt.connect({...this.connectOpts,servername:d&&g2.isIP(d)?void 0:d})}else y2("Creating `net.Socket`: %o",this.connectOpts),n=g2.connect(this.connectOpts);let s=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=g2.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
`;if(i.username||i.password){let d=`${decodeURIComponent(i.username)}:${decodeURIComponent(i.password)}`;s["Proxy-Authorization"]=`Basic ${Buffer.from(d).toString("base64")}`}s.Host=`${a}:${r.port}`,s["Proxy-Connection"]||(s["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(s))c+=`${d}: ${s[d]}\r
`;let u=(0,HEr.parseProxyResponse)(n);n.write(`${c}\r
`);let{connect:l,buffered:f}=await u;if(e.emit("proxyConnect",l),this.emit("proxyConnect",l,e),l.statusCode===200){if(e.once("socket",jEr),r.secureEndpoint){y2("Upgrading socket connection to TLS");let d=r.servername||r.host;return Htt.connect({...jtt(r,"host","path","port"),socket:n,servername:g2.isIP(d)?void 0:d})}return n}n.destroy();let h=new g2.Socket({writable:!1});return h.readable=!0,e.once("socket",d=>{y2("Replaying proxy buffer for failed request"),(0,FEr.default)(d.listenerCount("data")>0),d.push(f),d.push(null)}),h}};lG.protocols=["http","https"];Gu.HttpsProxyAgent=lG;function jEr(t){t.resume()}o(jEr,"resume");function jtt(t,...e){let r={},i;for(i in t)e.includes(i)||(r[i]=t[i]);return r}o(jtt,"omit")});var Ktt=m(cm=>{"use strict";Object.defineProperty(cm,"__esModule",{value:!0});var Wtt=require("buffer"),q0={INVALID_ENCODING:"Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.",INVALID_SMARTBUFFER_SIZE:"Invalid size provided. Size must be a valid integer greater than zero.",INVALID_SMARTBUFFER_BUFFER:"Invalid Buffer provided in SmartBufferOptions.",INVALID_SMARTBUFFER_OBJECT:"Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.",INVALID_OFFSET:"An invalid offset value was provided.",INVALID_OFFSET_NON_NUMBER:"An invalid offset value was provided. A numeric value is required.",INVALID_LENGTH:"An invalid length value was provided.",INVALID_LENGTH_NON_NUMBER:"An invalid length value was provived. A numeric value is required.",INVALID_TARGET_OFFSET:"Target offset is beyond the bounds of the internal SmartBuffer data.",INVALID_TARGET_LENGTH:"Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.",INVALID_READ_BEYOND_BOUNDS:"Attempted to read beyond the bounds of the managed data.",INVALID_WRITE_BEYOND_BOUNDS:"Attempted to write beyond the bounds of the managed data."};cm.ERRORS=q0;function VEr(t){if(!Wtt.Buffer.isEncoding(t))throw new Error(q0.INVALID_ENCODING)}o(VEr,"checkEncoding");cm.checkEncoding=VEr;function Jtt(t){return typeof t=="number"&&isFinite(t)&&JEr(t)}o(Jtt,"isFiniteInteger");cm.isFiniteInteger=Jtt;function Ytt(t,e){if(typeof t=="number"){if(!Jtt(t)||t<0)throw new Error(e?q0.INVALID_OFFSET:q0.INVALID_LENGTH)}else throw new Error(e?q0.INVALID_OFFSET_NON_NUMBER:q0.INVALID_LENGTH_NON_NUMBER)}o(Ytt,"checkOffsetOrLengthValue");function zEr(t){Ytt(t,!1)}o(zEr,"checkLengthValue");cm.checkLengthValue=zEr;function $Er(t){Ytt(t,!0)}o($Er,"checkOffsetValue");cm.checkOffsetValue=$Er;function WEr(t,e){if(t<0||t>e.length)throw new Error(q0.INVALID_TARGET_OFFSET)}o(WEr,"checkTargetOffset");cm.checkTargetOffset=WEr;function JEr(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}o(JEr,"isInteger");function YEr(t){if(typeof BigInt>"u")throw new Error("Platform does not support JS BigInt type.");if(typeof Wtt.Buffer.prototype[t]>"u")throw new Error(`Platform does not support Buffer.prototype.${t}.`)}o(YEr,"bigIntAndBufferInt64Check");cm.bigIntAndBufferInt64Check=YEr});var Ztt=m(qhe=>{"use strict";Object.defineProperty(qhe,"__esModule",{value:!0});var bt=Ktt(),Xtt=4096,KEr="utf8",Uhe=class t{static{o(this,"SmartBuffer")}constructor(e){if(this.length=0,this._encoding=KEr,this._writeOffset=0,this._readOffset=0,t.isSmartBufferOptions(e))if(e.encoding&&(bt.checkEncoding(e.encoding),this._encoding=e.encoding),e.size)if(bt.isFiniteInteger(e.size)&&e.size>0)this._buff=Buffer.allocUnsafe(e.size);else throw new Error(bt.ERRORS.INVALID_SMARTBUFFER_SIZE);else if(e.buff)if(Buffer.isBuffer(e.buff))this._buff=e.buff,this.length=e.buff.length;else throw new Error(bt.ERRORS.INVALID_SMARTBUFFER_BUFFER);else this._buff=Buffer.allocUnsafe(Xtt);else{if(typeof e<"u")throw new Error(bt.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(Xtt)}}static fromSize(e,r){return new this({size:e,encoding:r})}static fromBuffer(e,r){return new this({buff:e,encoding:r})}static fromOptions(e){return new this(e)}static isSmartBufferOptions(e){let r=e;return r&&(r.encoding!==void 0||r.size!==void 0||r.buff!==void 0)}readInt8(e){return this._readNumberValue(Buffer.prototype.readInt8,1,e)}readInt16BE(e){return this._readNumberValue(Buffer.prototype.readInt16BE,2,e)}readInt16LE(e){return this._readNumberValue(Buffer.prototype.readInt16LE,2,e)}readInt32BE(e){return this._readNumberValue(Buffer.prototype.readInt32BE,4,e)}readInt32LE(e){return this._readNumberValue(Buffer.prototype.readInt32LE,4,e)}readBigInt64BE(e){return bt.bigIntAndBufferInt64Check("readBigInt64BE"),this._readNumberValue(Buffer.prototype.readBigInt64BE,8,e)}readBigInt64LE(e){return bt.bigIntAndBufferInt64Check("readBigInt64LE"),this._readNumberValue(Buffer.prototype.readBigInt64LE,8,e)}writeInt8(e,r){return this._writeNumberValue(Buffer.prototype.writeInt8,1,e,r),this}insertInt8(e,r){return this._insertNumberValue(Buffer.prototype.writeInt8,1,e,r)}writeInt16BE(e,r){return this._writeNumberValue(Buffer.prototype.writeInt16BE,2,e,r)}insertInt Line truncated
globstar while`,e,d,r,p,A),this.matchOne(e.slice(d),r.slice(p),i))return this.debug("globstar found match!",d,u,A),!0;if(A==="."||A===".."||!n.dot&&A.charAt(0)==="."){this.debug("dot detected!",e,d,r,p);break}this.debug("globstar swallow a segment, and continue"),d++}return!!(i&&(this.debug(`
>>> no match, partial?`,e,d,r,p),d===u))}let g;if(typeof f=="string"?(g=h===f,this.debug("string match",f,h,g)):(g=f.test(h),this.debug("pattern match",f,h,g)),!g)return!1}if(a===u&&c===l)return!0;if(a===u)return i;if(c===l)return a===u-1&&e[a]==="";throw new Error("wtf?")}braceExpand(){return(0,ke.braceExpand)(this.pattern,this.options)}parse(e){(0,cH.assertValidPattern)(e);let r=this.options;if(e==="**")return ke.GLOBSTAR;if(e==="")return"";let i,n=null;(i=e.match(_Ir))?n=r.dot?RIr:xIr:(i=e.match(gIr))?n=(r.nocase?r.dot?wIr:bIr:r.dot?EIr:yIr)(i[1]):(i=e.match(TIr))?n=(r.nocase?r.dot?DIr:NIr:r.dot?OIr:PIr)(i):(i=e.match(CIr))?n=r.dot?SIr:IIr:(i=e.match(BIr))&&(n=vIr);let s=fnt.AST.fromGlob(e,this.options).toMMPattern();return n&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:n}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,i=r.noglobstar?QIr:r.dot?LIr:MIr,n=new Set(r.nocase?["i"]:[]),s=e.map(u=>{let l=u.map(h=>{if(h instanceof RegExp)for(let d of h.flags.split(""))n.add(d);return typeof h=="string"?jIr(h):h===ke.GLOBSTAR?ke.GLOBSTAR:h._src});l.forEach((h,d)=>{let p=l[d+1],A=l[d-1];h!==ke.GLOBSTAR||A===ke.GLOBSTAR||(A===void 0?p!==void 0&&p!==ke.GLOBSTAR?l[d+1]="(?:\\/|"+i+"\\/)?"+p:l[d]=i:p===void 0?l[d-1]=A+"(?:\\/|\\/"+i+")?":p!==ke.GLOBSTAR&&(l[d-1]=A+"(?:\\/|\\/"+i+"\\/)"+p,l[d+1]=ke.GLOBSTAR))});let f=l.filter(h=>h!==ke.GLOBSTAR);if(this.partial&&f.length>=1){let h=[];for(let d=1;d<=f.length;d++)h.push(f.slice(0,d).join("/"));return"(?:"+h.join("|")+")"}return f.join("/")}).join("|"),[a,c]=e.length>1?["(?:",")"]:["",""];s="^"+a+s+c+"$",this.partial&&(s="^(?:\\/|"+a+s.slice(1,-1)+c+")$"),this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...n].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let i=this.options;this.isWindows&&(e=e.split("\\").join("/"));let n=this.slashSplit(e);this.debug(this.pattern,"split",n);let s=this.set;this.debug(this.pattern,"set",s);let a=n[n.length-1];if(!a)for(let c=n.length-2;!a&&c>=0;c--)a=n[c];for(let c=0;c<s.length;c++){let u=s[c],l=n;if(i.matchBase&&u.length===1&&(l=[a]),this.matchOne(l,u,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return ke.minimatch.defaults(e).Minimatch}};ke.Minimatch=J0;var VIr=hpe();Object.defineProperty(ke,"AST",{enumerable:!0,get:o(function(){return VIr.AST},"get")});var zIr=dpe();Object.defineProperty(ke,"escape",{enumerable:!0,get:o(function(){return zIr.escape},"get")});var $Ir=iH();Object.defineProperty(ke,"unescape",{enumerable:!0,get:o(function(){return $Ir.unescape},"get")});ke.minimatch.AST=fnt.AST;ke.minimatch.Minimatch=J0;ke.minimatch.escape=pIr.escape;ke.minimatch.unescape=mIr.unescape});var Ape=m(Wu=>{"use strict";var Ant=Wu&&Wu.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Wu,"__esModule",{value:!0});Wu.SuccinctRoles=Wu.DelegatedRole=Wu.Role=Wu.TOP_LEVEL_ROLE_NAMES=void 0;var gnt=Ant(require("crypto")),WIr=mnt(),uH=Ant(require("util")),lH=td(),Y0=zl();Wu.TOP_LEVEL_ROLE_NAMES=["root","targets","snapshot","timestamp"];var k2=class t{static{o(this,"Role")}keyIDs;threshold;unrecognizedFields;constructor(e){let{keyIDs:r,threshold:i,unrecognizedFields:n}=e;if(JIr(r))throw new lH.ValueError("duplicate key IDs found");if(i<1)throw new lH.ValueError("threshold must be at least 1");this.keyIDs=r,this.threshold=i,this.unrecognizedFields=n||{}}equals(e){return e instanceof t?this.threshold===e.threshold&&uH.default.isDeepStrictEqual(this.keyIDs,e.keyIDs)&&uH.default.isDeepStrictEqual(this.unrecognizedFields,e.unrecognizedFields):!1}toJSON(){return{keyids:this.keyIDs,threshold:this.threshold,...this.unrecognizedFields}}static fromJSON(e){let{keyids:r,threshold:i,...n}=e;if(!Y0.guard.isStringArray(r))throw new TypeError("keyids must be an array");if(typeof i!="number")throw new TypeError("threshold must be a number");return new t({keyIDs:r,threshold:i,unrecognizedFields:n})}};Wu.Role=k2;function JIr(t){return new Set(t).size!==t.length}o(JIr,"hasDuplicates");var ppe=class t extends k2{static{o(this,"DelegatedRole")}name;terminating;paths;pathHashPrefixes;constructor(e){super(e);let{name:r,terminating:i,paths:n,pathHashPrefixes:s}=e;if(this.name=r,this.terminating=i,e.paths&&e.pathHashPrefixes)throw new lH.ValueError("paths and pathHashPrefixes are mutually exclusive");this.paths=n,this.pathHashPrefixes=s}equals(e){return e instanceof t?super.equals(e)&&this.name===e.name&&this.terminating===e.terminating&&uH.default.isDeepStrictEqual(this.paths,e.paths)&&uH.default.isDeepStrictEqual(this.pathHashPrefixes,e.pathHashPrefixes):!1}isDelegatedPath(e){if(this.paths)retur Line truncated
`).join(`
`+s),t.push(n+"m+"+bH.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=XSr()+e+" "+t[0]}function XSr(){return rs.inspectOpts.hideDate?"":new Date().toISOString()+" "}function ZSr(...t){return process.stderr.write(EH.formatWithOptions(rs.inspectOpts,...t)+`
`)}function eBr(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function tBr(){return process.env.DEBUG}function rBr(t){t.inspectOpts={};let e=Object.keys(rs.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=rs.inspectOpts[e[r]]}bH.exports=kpe()(rs);var{formatters:Nnt}=bH.exports;Nnt.o=function(t){return this.inspectOpts.colors=this.useColors,EH.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Nnt.O=function(t){return this.inspectOpts.colors=this.useColors,EH.inspect(t,this.inspectOpts)}});var Lpe=p((lci,Qpe)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Qpe.exports=Tnt():Qpe.exports=Dnt()});var Pnt=p((fci,Ont)=>{var iBr=require("dns"),nBr=["if-modified-since","if-none-match","if-unmodified-since","if-match","if-range"],sBr=t=>{let{strictSSL:e,...r}={...t};if(r.method=r.method?r.method.toUpperCase():"GET",e==null?r.rejectUnauthorized=process.env.NODE_TLS_REJECT_UNAUTHORIZED!=="0":r.rejectUnauthorized=e!==!1,!r.retry)r.retry={retries:0};else if(typeof r.retry=="string"){let i=parseInt(r.retry,10);isFinite(i)?r.retry={retries:i}:r.retry={retries:0}}else typeof r.retry=="number"?r.retry={retries:r.retry}:r.retry={retries:0,...r.retry};return r.dns={ttl:300*1e3,lookup:iBr.lookup,...r.dns},r.cache=r.cache||"default",r.cache==="default"&&Object.keys(r.headers||{}).some(n=>nBr.includes(n.toLowerCase()))&&(r.cache="no-store"),r.cacheAdditionalHeaders=r.cacheAdditionalHeaders||[],r.cacheManager&&!r.cachePath&&(r.cachePath=r.cacheManager),r};Ont.exports=sBr});var Fpe=p((hci,Fnt)=>{var knt=sle(),Qnt=fle(),oBr=Fh(),Lnt={shared:!1,ignoreCargoCult:!0},aBr={status:200,headers:{}},$B=t=>{let e={method:t.method,url:t.url,headers:{},compress:t.compress};return t.headers.forEach((r,i)=>{e.headers[i]=r}),e},Mnt=t=>{let e={status:t.status,headers:{}};return t.headers.forEach((r,i)=>{e.headers[i]=r}),e},Mpe=class{constructor({entry:e,request:r,response:i,options:n}){this.entry=e,this.request=$B(r),this.response=Mnt(i),this.options=n,this.policy=new knt(this.request,this.response,Lnt),this.entry&&(this.policy._responseTime=this.entry.metadata.time)}static storable(e,r){return!r.cachePath||r.cache==="no-store"||!["GET","HEAD"].includes(e.method)?!1:new knt($B(e),aBr,Lnt).storable()}satisfies(e){let r=$B(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;let i=new Qnt(this.request),n=new Qnt(r);return JSON.stringify(i.mediaTypes())!==JSON.stringify(n.mediaTypes())||JSON.stringify(i.languages())!==JSON.stringify(n.languages())||JSON.stringify(i.encodings())!==JSON.stringify(n.encodings())?!1:this.options.integrity?oBr.parse(this.options.integrity).match(this.entry.integrity):!0}storable(){return this.policy.storable()}get mustRevalidate(){return!!this.policy._rescc["must-revalidate"]}needsRevalidation(e){let r=$B(e);return r.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){return this.policy.responseHeaders()}revalidationHeaders(e){let r=$B(e);return this.policy.revalidationHeaders(r)}revalidated(e,r){let i=$B(e),n=Mnt(r);return!this.policy.revalidatedPolicy(i,n).modified}};Fnt.exports=Mpe});var qnt=p((dci,Unt)=>{var Upe=class extends Error{constructor(e){super(`request to ${e} failed: cache mode is 'only-if-cached' but no cached response is available.`),this.code="ENOTCACHED"}};Unt.exports={NotCachedError:Upe}});var Gpe=p((pci,Gnt)=>{"use strict";var cBr=S0(),qpe=class extends cBr{#e=[];#t=new Map;constructor(e,...r){super(),this.#e=e.events,r.length&&this.push(...r)}on(e,r){return this.#e.includes(e)&&this.#t.has(e)?r(...this.#t.get(e)):super.on(e,r)}emit(e,...r){return this.#e.includes(e)&&this.#t.set(e,r),super.emit(e,...r)}};Gnt.exports=qpe});var jnt=p((mci,Hnt)=>{var{URL:uBr,format:lBr}=require("url"),fBr={auth:!1,fragment:!1,search:!0,unicode:!1},hBr=t=>{let e=new uBr(t.url);return`make-fetch-happen:request-cache:${lBr(e,fBr)}`};Hnt.exports=hBr});var Vnt=p((Aci,dBr)=>{dBr.exports={name:"make-fetch-happen",version:"15.0.4",description:"Opinionated, caching, retrying fetch client",main:"lib/index.js",files:["bin/","lib/"],scripts:{test:"tap",posttest:"npm run lint",eslint:'eslint "**/*.{js,cjs,ts,mjs,jsx,tsx}"',lint:"npm run eslint",lintfix:"npm run eslint -- --fix",postlint:"template-oss-check",snap:"tap","template-oss-apply":"template-oss-apply --force"},repository:{type:"git",url:"git+https://github.com/npm/make-fetch-happen.git"},keywords:["http","request","fetch","mean girls","caching","cache","subresource integrity"],author:"GitHub Inc.",license:"ISC",dependencies:{"@gar/promise-retry":"^1.0.0","@npmcli/agent":"^4.0.0",cacache:"^20.0.1","http-cache-semantics":"^4.1.1",minipass:"^7.0.2","minipass-fetch":"^5.0.0","minipass-flush":"^1.0.5","minipass-pipeline":"^1.2.4",negotiator:"^1.0.0","proc-log":"^6.0.0",ssri:"^13.0.0"},devDependencies:{"@npmcli/eslint-config":"^5.0.0","@npmcli/template-oss":"4.25.0",nock:"^13.2.4","safe-buffer":"^5.2.1","standard-version":"^9.3.2",tap:"^16.0.0"},engines:{node:"^20.17.0 || >=22.9.0"},tap:{color:1,files:"test/*.js","check-coverage":!0,timeout:60,"nyc-arg":["--exclude","tap-snapshots/**"]},templateOSS:{"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",version:"4.25.0",publish:"true"}}});var CH=p((gci,$nt)=>{var{Minipass:pBr}=Uo(),wH=Fp(),{promiseRetry:mBr}=Dhe(),ABr=Fh(),{log:znt}=i Line truncated
`).forEach(r=>{r.match(t_r)||r.match(r_r)||(e+=r)}),Buffer.from(e,"base64")}function n_r(t,e="CERTIFICATE"){let i=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...i,`-----END ${e}-----`].join(`
`+s),t.push(n+"m+"+CH.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=ZSr()+e+" "+t[0]}o(XSr,"formatArgs");function ZSr(){return is.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(ZSr,"getDate");function eBr(...t){return process.stderr.write(wH.formatWithOptions(is.inspectOpts,...t)+`
`)}o(eBr,"log");function tBr(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(tBr,"save");function rBr(){return process.env.DEBUG}o(rBr,"load");function iBr(t){t.inspectOpts={};let e=Object.keys(is.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=is.inspectOpts[e[r]]}o(iBr,"init");CH.exports=Qpe()(is);var{formatters:Dnt}=CH.exports;Dnt.o=function(t){return this.inspectOpts.colors=this.useColors,wH.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Dnt.O=function(t){return this.inspectOpts.colors=this.useColors,wH.inspect(t,this.inspectOpts)}});var Mpe=m((gxi,Lpe)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Lpe.exports=Nnt():Lpe.exports=Ont()});var knt=m((yxi,Pnt)=>{var nBr=require("dns"),sBr=["if-modified-since","if-none-match","if-unmodified-since","if-match","if-range"],oBr=o(t=>{let{strictSSL:e,...r}={...t};if(r.method=r.method?r.method.toUpperCase():"GET",e==null?r.rejectUnauthorized=process.env.NODE_TLS_REJECT_UNAUTHORIZED!=="0":r.rejectUnauthorized=e!==!1,!r.retry)r.retry={retries:0};else if(typeof r.retry=="string"){let i=parseInt(r.retry,10);isFinite(i)?r.retry={retries:i}:r.retry={retries:0}}else typeof r.retry=="number"?r.retry={retries:r.retry}:r.retry={retries:0,...r.retry};return r.dns={ttl:300*1e3,lookup:nBr.lookup,...r.dns},r.cache=r.cache||"default",r.cache==="default"&&Object.keys(r.headers||{}).some(n=>sBr.includes(n.toLowerCase()))&&(r.cache="no-store"),r.cacheAdditionalHeaders=r.cacheAdditionalHeaders||[],r.cacheManager&&!r.cachePath&&(r.cachePath=r.cacheManager),r},"configureOptions");Pnt.exports=oBr});var Upe=m((bxi,Unt)=>{var Qnt=ole(),Lnt=hle(),aBr=Uh(),Mnt={shared:!1,ignoreCargoCult:!0},cBr={status:200,headers:{}},WB=o(t=>{let e={method:t.method,url:t.url,headers:{},compress:t.compress};return t.headers.forEach((r,i)=>{e.headers[i]=r}),e},"requestObject"),Fnt=o(t=>{let e={status:t.status,headers:{}};return t.headers.forEach((r,i)=>{e.headers[i]=r}),e},"responseObject"),Fpe=class{static{o(this,"CachePolicy")}constructor({entry:e,request:r,response:i,options:n}){this.entry=e,this.request=WB(r),this.response=Fnt(i),this.options=n,this.policy=new Qnt(this.request,this.response,Mnt),this.entry&&(this.policy._responseTime=this.entry.metadata.time)}static storable(e,r){return!r.cachePath||r.cache==="no-store"||!["GET","HEAD"].includes(e.method)?!1:new Qnt(WB(e),cBr,Mnt).storable()}satisfies(e){let r=WB(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;let i=new Lnt(this.request),n=new Lnt(r);return JSON.stringify(i.mediaTypes())!==JSON.stringify(n.mediaTypes())||JSON.stringify(i.languages())!==JSON.stringify(n.languages())||JSON.stringify(i.encodings())!==JSON.stringify(n.encodings())?!1:this.options.integrity?aBr.parse(this.options.integrity).match(this.entry.integrity):!0}storable(){return this.policy.storable()}get mustRevalidate(){return!!this.policy._rescc["must-revalidate"]}needsRevalidation(e){let r=WB(e);return r.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){return this.policy.responseHeaders()}revalidationHeaders(e){let r=WB(e);return this.policy.revalidationHeaders(r)}revalidated(e,r){let i=WB(e),n=Fnt(r);return!this.policy.revalidatedPolicy(i,n).modified}};Unt.exports=Fpe});var Gnt=m((Cxi,qnt)=>{var qpe=class extends Error{static{o(this,"NotCachedError")}constructor(e){super(`request to ${e} failed: cache mode is 'only-if-cached' but no cached response is available.`),this.code="ENOTCACHED"}};qnt.exports={NotCachedError:qpe}});var Hpe=m((Sxi,Hnt)=>{"use strict";var uBr=B0(),Gpe=class extends uBr{static{o(this,"CachingMinipassPipeline")}#e=[];#t=new Map;constructor(e,...r){super(),this.#e=e.events,r.length&&this.push(...r)}on(e,r){return this.#e.includes(e)&&this.#t.has(e)?r(...this.#t.get(e)):super.on(e,r)}emit(e,...r){return this.#e.includes(e)&&this.#t.set(e,r),super.emit(e,...r)}};Hnt.exports=Gpe});var Vnt=m((vxi,jnt)=>{var{URL:lBr,format:fBr}=require("url"),hBr={auth:!1,fragment:!1,search:!0,unicode:!1},dBr=o(t=>{let e=new lBr(t.url);return`make-fetch-happen:request-cache:${fBr(e,hBr)}`},"cacheKey");jnt.exports=dBr});var znt=m((xxi,pBr)=>{pBr.exports={name:"make-fetch-happen",version:"15.0.4",description:"Opinionated, caching, retrying fetch client",main:"lib/index.js",files:["bin/","lib/"],scripts:{test:"tap",posttest:"npm run lint",eslint:'eslint "**/*.{js,cjs,ts,mjs,jsx,tsx}"',lint:"npm run eslint",lintfix:"npm run eslint -- --fix",postlint:"template-oss-check",snap:"tap","template-oss-apply":"template-oss-apply --force"},repository:{type:"git",url:"git+https://github.com/npm/make-fetch-happen.git"},keywords:["http","request","fetch","mean girls","caching","cache","subresource integrity"],author:"GitHub Inc.",license:"ISC",dependencies:{"@gar/promise-retry":"^1.0.0","@npmcli/agent":"^4.0.0",cacache:"^20.0.1","http-cache-semantics":"^4.1.1",minipass:"^7.0.2","minipass-fetch":"^5.0.0","minipass-flush":"^1.0.5","minipass-pipeline":"^1.2.4",negotiator:"^1.0.0","proc-log":"^6.0.0",ssri:"^13.0.0"},devDependencies:{"@npmcli/eslint-config":"^5.0.0","@npmcli/template-oss":"4.25.0",nock:"^13.2.4","safe-buffer":"^5.2.1","standard-version":"^9.3.2",tap:"^16.0.0"},engines:{node:"^20.17.0 || >=22.9.0"},tap:{color:1,files:"test/*.js","check-coverage":!0,timeout:60,"nyc-arg":["--exclude","tap-snapshots/**"]},templateOSS:{"//@npmcli/template-oss":"This file is partially managed by @npmc Line truncated
`).forEach(r=>{r.match(r_r)||r.match(i_r)||(e+=r)}),Buffer.from(e,"base64")}o(n_r,"toDER");function s_r(t,e="CERTIFICATE"){let i=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...i,`-----END ${e}-----`].join(`
`).concat(`
`)}});var zH=p(Dg=>{"use strict";Object.defineProperty(Dg,"__esModule",{value:!0});Dg.SHA2_HASH_ALGOS=Dg.RSA_SIGNATURE_ALGOS=Dg.ECDSA_SIGNATURE_ALGOS=void 0;Dg.ECDSA_SIGNATURE_ALGOS={"1.2.840.10045.4.3.1":"sha224","1.2.840.10045.4.3.2":"sha256","1.2.840.10045.4.3.3":"sha384","1.2.840.10045.4.3.4":"sha512"};Dg.RSA_SIGNATURE_ALGOS={"1.2.840.113549.1.1.14":"sha224","1.2.840.113549.1.1.11":"sha256","1.2.840.113549.1.1.12":"sha384","1.2.840.113549.1.1.13":"sha512"};Dg.SHA2_HASH_ALGOS={"2.16.840.1.101.3.4.2.1":"sha256","2.16.840.1.101.3.4.2.2":"sha384","2.16.840.1.101.3.4.2.3":"sha512"}});var Rme=p($H=>{"use strict";Object.defineProperty($H,"__esModule",{value:!0});$H.RFC3161TimestampVerificationError=void 0;var xme=class extends Error{};$H.RFC3161TimestampVerificationError=xme});var Hst=p(rd=>{"use strict";var s_r=rd&&rd.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=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,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),o_r=rd&&rd.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),a_r=rd&&rd.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var i=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[i.length]=n);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i=t(e),n=0;n<i.length;n++)i[n]!=="default"&&s_r(r,e,i[n]);return o_r(r,e),r}})();Object.defineProperty(rd,"__esModule",{value:!0});rd.TSTInfo=void 0;var Gst=a_r(tv()),c_r=zH(),u_r=Rme(),Tme=class{root;constructor(e){this.root=e}get version(){return this.root.subs[0].toInteger()}get genTime(){return this.root.subs[4].toDate()}get messageImprintHashAlgorithm(){let e=this.messageImprintObj.subs[0].subs[0].toOID();return c_r.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=Gst.digest(this.messageImprintHashAlgorithm,e);if(!Gst.bufferEqual(r,this.messageImprintHashedMessage))throw new u_r.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};rd.TSTInfo=Tme});var Vst=p(id=>{"use strict";var l_r=id&&id.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=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,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),f_r=id&&id.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),h_r=id&&id.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var i=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[i.length]=n);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i=t(e),n=0;n<i.length;n++)i[n]!=="default"&&l_r(r,e,i[n]);return f_r(r,e),r}})();Object.defineProperty(id,"__esModule",{value:!0});id.RFC3161Timestamp=void 0;var d_r=HH(),Nme=h_r(tv()),jst=zH(),H2=Rme(),p_r=Hst(),m_r="1.2.840.113549.1.7.2",A_r="1.2.840.113549.1.9.16.1.4",g_r="1.2.840.113549.1.9.4",Dme=class t{root;constructor(e){this.root=e}static parse(e){let r=d_r.ASN1Obj.parseBuffer(e);return new t(r)}get status(){return this.pkiStatusInfoObj.subs[0].toInteger()}get contentType(){return this.contentTypeObj.toOID()}get eContentType(){return this.eContentTypeObj.toOID()}get signingTime(){return this.tstInfo.genTime}get signerIssuer(){return this.signerSidObj.subs[0].value}get signerSerialNumber(){return this.signerSidObj.subs[1].value}get signerDigestAlgorithm(){let e=this.signerDigestAlgorithmObj.subs[0].toOID();return jst.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return jst.ECDSA_SIGNATURE_ALGOS[e]}get signatureValue(){return this.signatureValueObj.value}get tstInfo(){return new p_r.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new H2.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==m_r)throw new H2.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==A_r)throw new H2.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=Nme.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].subs[0].value;if(!Nme.bufferEqual(e,r))throw new H2.RFC3161TimestampVerificationError("signed data does not match tstInfo")}verifySignature(e){let r=this.signedAttrsObj.toD Line truncated
`)}o(s_r,"fromDER")});var WH=m(Og=>{"use strict";Object.defineProperty(Og,"__esModule",{value:!0});Og.SHA2_HASH_ALGOS=Og.RSA_SIGNATURE_ALGOS=Og.ECDSA_SIGNATURE_ALGOS=void 0;Og.ECDSA_SIGNATURE_ALGOS={"1.2.840.10045.4.3.1":"sha224","1.2.840.10045.4.3.2":"sha256","1.2.840.10045.4.3.3":"sha384","1.2.840.10045.4.3.4":"sha512"};Og.RSA_SIGNATURE_ALGOS={"1.2.840.113549.1.1.14":"sha224","1.2.840.113549.1.1.11":"sha256","1.2.840.113549.1.1.12":"sha384","1.2.840.113549.1.1.13":"sha512"};Og.SHA2_HASH_ALGOS={"2.16.840.1.101.3.4.2.1":"sha256","2.16.840.1.101.3.4.2.2":"sha384","2.16.840.1.101.3.4.2.3":"sha512"}});var Tme=m(JH=>{"use strict";Object.defineProperty(JH,"__esModule",{value:!0});JH.RFC3161TimestampVerificationError=void 0;var Rme=class extends Error{static{o(this,"RFC3161TimestampVerificationError")}};JH.RFC3161TimestampVerificationError=Rme});var jst=m(id=>{"use strict";var o_r=id&&id.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),a_r=id&&id.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),c_r=id&&id.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var i=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[i.length]=n);return i},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i=t(e),n=0;n<i.length;n++)i[n]!=="default"&&o_r(r,e,i[n]);return a_r(r,e),r}})();Object.defineProperty(id,"__esModule",{value:!0});id.TSTInfo=void 0;var Hst=c_r(rv()),u_r=WH(),l_r=Tme(),Nme=class{static{o(this,"TSTInfo")}root;constructor(e){this.root=e}get version(){return this.root.subs[0].toInteger()}get genTime(){return this.root.subs[4].toDate()}get messageImprintHashAlgorithm(){let e=this.messageImprintObj.subs[0].subs[0].toOID();return u_r.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=Hst.digest(this.messageImprintHashAlgorithm,e);if(!Hst.bufferEqual(r,this.messageImprintHashedMessage))throw new l_r.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};id.TSTInfo=Nme});var zst=m(nd=>{"use strict";var f_r=nd&&nd.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),h_r=nd&&nd.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),d_r=nd&&nd.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var i=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[i.length]=n);return i},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i=t(e),n=0;n<i.length;n++)i[n]!=="default"&&f_r(r,e,i[n]);return h_r(r,e),r}})();Object.defineProperty(nd,"__esModule",{value:!0});nd.RFC3161Timestamp=void 0;var p_r=VH(),Dme=d_r(rv()),Vst=WH(),j2=Tme(),m_r=jst(),A_r="1.2.840.113549.1.7.2",g_r="1.2.840.113549.1.9.16.1.4",y_r="1.2.840.113549.1.9.4",Ome=class t{static{o(this,"RFC3161Timestamp")}root;constructor(e){this.root=e}static parse(e){let r=p_r.ASN1Obj.parseBuffer(e);return new t(r)}get status(){return this.pkiStatusInfoObj.subs[0].toInteger()}get contentType(){return this.contentTypeObj.toOID()}get eContentType(){return this.eContentTypeObj.toOID()}get signingTime(){return this.tstInfo.genTime}get signerIssuer(){return this.signerSidObj.subs[0].value}get signerSerialNumber(){return this.signerSidObj.subs[1].value}get signerDigestAlgorithm(){let e=this.signerDigestAlgorithmObj.subs[0].toOID();return Vst.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return Vst.ECDSA_SIGNATURE_ALGOS[e]}get signatureValue(){return this.signatureValueObj.value}get tstInfo(){return new m_r.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new j2.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==A_r)throw new j2.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==g_r)throw new j2.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=Dme.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].su Line truncated
`,Pxr=/\u2014 (\S+) (\S+)\n/g;function kxr(t,e){let r=t.inclusionProof,i=oAe.fromString(r.checkpoint.envelope),n=s6.fromString(i.note);if(!Qxr(i,e))throw new J2.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return n}function Qxr(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(i=>{let n=e.find(s=>got.crypto.bufferEqual(s.logID.subarray(0,4),i.keyHint)&&s.baseURL.match(i.name));return n?got.crypto.verify(r,n.publicKey,i.signature):!1})}var oAe=class t{note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(sAe))throw new J2.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(sAe),i=e.slice(0,r+1),s=e.slice(r+sAe.length).matchAll(Pxr),o=Array.from(s,a=>{let[,c,u]=a,l=Buffer.from(u,"base64");if(l.length<5)throw new J2.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:c,keyHint:l.subarray(0,4),signature:l.subarray(4)}});if(o.length===0)throw new J2.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(i,o)}},s6=class t{origin;logSize;logHash;rest;constructor(e,r,i,n){this.origin=e,this.logSize=r,this.logHash=i,this.rest=n}static fromString(e){let r=e.trimEnd().split(`
`);if(r.length<3)throw new J2.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let i=r[0],n=BigInt(r[1]),s=Buffer.from(r[2],"base64"),o=r.slice(3);return new t(i,n,s,o)}};Y2.LogCheckpoint=s6});var Eot=p(lAe=>{"use strict";Object.defineProperty(lAe,"__esModule",{value:!0});lAe.verifyMerkleInclusion=Fxr;var uAe=zl(),aAe=ro(),Lxr=Buffer.from([0]),Mxr=Buffer.from([1]);function Fxr(t,e){let r=t.inclusionProof,i=BigInt(r.logIndex),n=BigInt(e.logSize);if(i<0n||i>=n)throw new aAe.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${i}`});let{inner:s,border:o}=Uxr(i,n);if(r.hashes.length!==s+o)throw new aAe.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let a=r.hashes.slice(0,s),c=r.hashes.slice(s),u=zxr(t.canonicalizedBody),l=Gxr(qxr(u,a,i),c);if(!uAe.crypto.bufferEqual(l,e.logHash))throw new aAe.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}function Uxr(t,e){let r=Hxr(t,e),i=jxr(t>>BigInt(r));return{inner:r,border:i}}function qxr(t,e,r){return e.reduce((i,n,s)=>r>>BigInt(s)&BigInt(1)?cAe(n,i):cAe(i,n),t)}function Gxr(t,e){return e.reduce((r,i)=>cAe(i,r),t)}function Hxr(t,e){return Vxr(t^e-BigInt(1))}function jxr(t){return t.toString(2).split("1").length-1}function Vxr(t){return t===0n?0:t.toString(2).length}function cAe(t,e){return uAe.crypto.digest("sha256",Mxr,t,e)}function zxr(t){return uAe.crypto.digest("sha256",Lxr,t)}});var wot=p(fAe=>{"use strict";Object.defineProperty(fAe,"__esModule",{value:!0});fAe.verifyTLogSET=Jxr;var bot=zl(),$xr=ro(),Wxr=nv();function Jxr(t,e){if(!(0,Wxr.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(n=>{let s=Yxr(t),o=Buffer.from(bot.json.canonicalize(s),"utf8"),a=t.inclusionPromise.signedEntryTimestamp;return bot.crypto.verify(o,n.publicKey,a)}))throw new $xr.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}function Yxr(t){let{integratedTime:e,logIndex:r,logId:i,canonicalizedBody:n}=t;return{body:n.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:i.keyId.toString("hex")}}});var Iot=p(o6=>{"use strict";Object.defineProperty(o6,"__esModule",{value:!0});o6.verifyTLogBody=tRr;o6.verifyTLogInclusion=rRr;var Cot=Pde(),pAe=ro(),hAe=pot(),dAe=mot(),Kxr=Aot(),Xxr=yot(),Zxr=Eot(),eRr=wot();function tRr(t,e){let{kind:r,version:i}=t.kindVersion,n=JSON.parse(t.canonicalizedBody.toString("utf8"));if(r!==n.kind||i!==n.apiVersion)throw new pAe.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${i}, received: ${n.kind}/${n.apiVersion}`});switch(r){case"dsse":if(i==hAe.DSSE_API_VERSION_V1)return(0,hAe.verifyDSSETLogBody)(n,e);{let s=Cot.Entry.fromJSON(n);return(0,hAe.verifyDSSETLogBodyV2)(s,e)}case"intoto":return(0,Kxr.verifyIntotoTLogBody)(n,e);case"hashedrekord":if(i==dAe.HASHEDREKORD_API_VERSION_V1)return(0,dAe.verifyHashedRekordTLogBody)(n,e);{let s=Cot.Entry.fromJSON(n);return(0,dAe.verifyHashedRekordTLogBodyV2)(s,e)}default:throw new pAe.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}function rRr(t,e){let r=!1;if(iRr(t)&&((0,eRr.verifyTLogSET)(t,e),r=!0),nRr(t)){let i=(0,Xxr.verifyCheckpoint)(t,e);(0,Zxr.verifyMerkleInclusion)(t,i),r=!0}if(!r)throw new pAe.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}function iRr(t){return t.inclusionPromise!==void 0}function nRr(t){return t.inclusionProof!==void 0}});var xot=p(a6=>{"use strict";Object.defineProperty(a6,"__esModule",{value:!0});a6.Verifier=void 0;var sRr=require("util"),sv=ro(),Sot=uot(),mAe=lot(),Bot=dot(),vot=Iot(),AAe=class{trustMaterial;options;constructor(e,r={}){this.trustMaterial=e,this.options={ctlogThreshold:r.ctlogThreshold??1,tlogThreshold:r.tlogThreshold??1,timestampThreshold:r.timestampThreshold??r.tsaThreshold??1,tsaThreshold:0}}verify(e,r){let i=this.verifyTimestamps(e),n=this.verifySigningKey(e,i);return this.verifyTLogs(e),this.verifySignature(e,n),r&&this.verifyPolicy(r,n.identity||{}),n}verifyTimestamps(e){let r=[];for(let i of e.timestamps)switch(i.$case){case"timestamp-authority":r.push((0,Bot.getTSATimestamp)(i.timestamp,e.signature.signature,this.trustMaterial.timestampAuthorities));break;case"transparency-log":{let n=(0,Bot.getTLogTimestamp)(i.tlogEntry);n&&r.push(n);break}}if(_ot(r))throw new sv.VerificationError({code:"TIMESTAMP_ERROR",message:"duplicate timestamp"});if(r.length<this.options.timestampThreshold)throw new sv.VerificationError({code:"TIMESTAMP_ERROR",message:`expected ${this.options.timestampThreshold} timestamps, got ${r.length}`});return r.map(i=>i.timestamp)}verifySigningKey({key:e},r){switch(e.$case){case"public-key":return(0,Sot.verifyPublicKey)(e.hint,r,this.trustMaterial);case"certificate":{let i=(0,Sot.verifyCertificate)(e.certificate,r,this.trustMaterial);if( Line truncated
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function NSe(t,e){if(process.env.GITHUB_OUTPUT||"")return ED("OUTPUT",j6(t,e));process.stdout.write(T9.EOL),dd("set-output",{name:t},hd(e))}function bP(t){process.exitCode=R9.Failure,vw(t)}function Sy(){return process.env.RUNNER_DEBUG==="1"}function Q(t){dd("debug",{},t)}function vw(t,e={}){dd("error",q6(e),t instanceof Error?t.toString():t)}function lr(t,e={}){dd("warning",q6(e),t instanceof Error?t.toString():t)}function H(t){process.stdout.write(t+T9.EOL)}function cbt(t){H6("group",t)}function ubt(){H6("endgroup")}function ni(t,e){return abt(this,void 0,void 0,function*(){cbt(t);let r;try{r=yield e()}finally{ubt()}return r})}function jc(t,e){if(process.env.GITHUB_STATE||"")return ED("STATE",j6(t,e));dd("save-state",{name:t},hd(e))}function DSe(t){return process.env[`STATE_${t}`]||""}var IM=O(require("fs"),1),HZ=O(require("os"),1),jZ=O(require("path"),1);var PSe=O(require("os"),1);function __(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function kSe(t,e,r){let i=new N9(t,e,r);process.stdout.write(i.toString()+PSe.EOL)}var OSe="::",N9=class{constructor(e,r,i){e||(e="missing.command"),this.command=e,this.properties=r,this.message=i}toString(){let e=OSe+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let i in this.properties)if(this.properties.hasOwnProperty(i)){let n=this.properties[i];n&&(r?r=!1:e+=",",e+=`${i}=${fbt(n)}`)}}return e+=`${OSe}${lbt(this.message)}`,e}};function lbt(t){return __(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function fbt(t){return __(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var FSe=O(require("os"),1);var LSe=require("os"),x_=require("fs"),D9=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},{access:hbt,appendFile:dbt,writeFile:pbt}=x_.promises,QSe="GITHUB_STEP_SUMMARY";var O9=class{constructor(){this._buffer=""}filePath(){return D9(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[QSe];if(!e)throw new Error(`Unable to find environment variable for $${QSe}. Check if your runtime environment supports job summaries.`);try{yield hbt(e,x_.constants.R_OK|x_.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,i={}){let n=Object.entries(i).map(([s,o])=>` ${s}="${o}"`).join("");return r?`<${e}${n}>${r}</${e}>`:`<${e}${n}>`}write(e){return D9(this,void 0,void 0,function*(){let r=!!e?.overwrite,i=yield this.filePath();return yield(r?pbt:dbt)(i,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return D9(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(LSe.EOL)}addCodeBlock(e,r){let i=Object.assign({},r&&{lang:r}),n=this.wrap("pre",this.wrap("code",e),i);return this.addRaw(n).addEOL()}addList(e,r=!1){let i=r?"ol":"ul",n=e.map(o=>this.wrap("li",o)).join(""),s=this.wrap(i,n);return this.addRaw(s).addEOL()}addTable(e){let r=e.map(n=>{let s=n.map(o=>{if(typeof o=="string")return this.wrap("td",o);let{header:a,data:c,colspan:u,rowspan:l}=o,f=a?"th":"td",h=Object.assign(Object.assign({},u&&{colspan:u}),l&&{rowspan:l});return this.wrap(f,c,h)}).join("");return this.wrap("tr",s)}).join(""),i=this.wrap("table",r);return this.addRaw(i).addEOL()}addDetails(e,r){let i=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(i).addEOL()}addImage(e,r,i){let{width:n,height:s}=i||{},o=Object.assign(Object.assign({},n&&{width:n}),s&&{height:s}),a=this.wrap("img",null,Object.assign({src:e,alt:r},o));return this.addRaw(a).addEOL()}addHeading(e,r){let i=`h${r}`,n=["h1","h2","h3","h4","h5","h6"].includes(i)?i:"h1",s=this.wrap(n,e);return this.addRaw(s).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 i=Object.assign({},r&&{cite:r}),n=this.wrap("blockquote",e,i);return this.addRaw(n).addEOL()}addLink(e,r){let i=this.wrap("a",e,{href:r});return this.addRaw(i).addEOL()}},o1r=new O9;var P9=O(require("os"),1);var u1r=P9.default.platform(),l1r=P9.default.arch();var MSe;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(MSe||(MSe={}));function k9(){return process.env.RUNNER_DEBUG==="1"}function br(t){kSe("debug",{},t)}function Q9(t){process.stdout.write(t+FSe.EOL)}var n$=O(require(Line truncated
`,kxr=/\u2014 (\S+) (\S+)\n/g;function Qxr(t,e){let r=t.inclusionProof,i=aAe.fromString(r.checkpoint.envelope),n=a6.fromString(i.note);if(!Lxr(i,e))throw new Y2.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return n}o(Qxr,"verifyCheckpoint");function Lxr(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(i=>{let n=e.find(s=>yot.crypto.bufferEqual(s.logID.subarray(0,4),i.keyHint)&&s.baseURL.match(i.name));return n?yot.crypto.verify(r,n.publicKey,i.signature):!1})}o(Lxr,"verifySignedNote");var aAe=class t{static{o(this,"SignedNote")}note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(oAe))throw new Y2.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(oAe),i=e.slice(0,r+1),s=e.slice(r+oAe.length).matchAll(kxr),a=Array.from(s,c=>{let[,u,l]=c,f=Buffer.from(l,"base64");if(f.length<5)throw new Y2.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:u,keyHint:f.subarray(0,4),signature:f.subarray(4)}});if(a.length===0)throw new Y2.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(i,a)}},a6=class t{static{o(this,"LogCheckpoint")}origin;logSize;logHash;rest;constructor(e,r,i,n){this.origin=e,this.logSize=r,this.logHash=i,this.rest=n}static fromString(e){let r=e.trimEnd().split(`
`);if(r.length<3)throw new Y2.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let i=r[0],n=BigInt(r[1]),s=Buffer.from(r[2],"base64"),a=r.slice(3);return new t(i,n,s,a)}};K2.LogCheckpoint=a6});var bot=m(fAe=>{"use strict";Object.defineProperty(fAe,"__esModule",{value:!0});fAe.verifyMerkleInclusion=Uxr;var lAe=$l(),cAe=io(),Mxr=Buffer.from([0]),Fxr=Buffer.from([1]);function Uxr(t,e){let r=t.inclusionProof,i=BigInt(r.logIndex),n=BigInt(e.logSize);if(i<0n||i>=n)throw new cAe.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${i}`});let{inner:s,border:a}=qxr(i,n);if(r.hashes.length!==s+a)throw new cAe.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let c=r.hashes.slice(0,s),u=r.hashes.slice(s),l=$xr(t.canonicalizedBody),f=Hxr(Gxr(l,c,i),u);if(!lAe.crypto.bufferEqual(f,e.logHash))throw new cAe.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}o(Uxr,"verifyMerkleInclusion");function qxr(t,e){let r=jxr(t,e),i=Vxr(t>>BigInt(r));return{inner:r,border:i}}o(qxr,"decompInclProof");function Gxr(t,e,r){return e.reduce((i,n,s)=>r>>BigInt(s)&BigInt(1)?uAe(n,i):uAe(i,n),t)}o(Gxr,"chainInner");function Hxr(t,e){return e.reduce((r,i)=>uAe(i,r),t)}o(Hxr,"chainBorderRight");function jxr(t,e){return zxr(t^e-BigInt(1))}o(jxr,"innerProofSize");function Vxr(t){return t.toString(2).split("1").length-1}o(Vxr,"onesCount");function zxr(t){return t===0n?0:t.toString(2).length}o(zxr,"bitLength");function uAe(t,e){return lAe.crypto.digest("sha256",Fxr,t,e)}o(uAe,"hashChildren");function $xr(t){return lAe.crypto.digest("sha256",Mxr,t)}o($xr,"hashLeaf")});var Cot=m(hAe=>{"use strict";Object.defineProperty(hAe,"__esModule",{value:!0});hAe.verifyTLogSET=Yxr;var wot=$l(),Wxr=io(),Jxr=sv();function Yxr(t,e){if(!(0,Jxr.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(n=>{let s=Kxr(t),a=Buffer.from(wot.json.canonicalize(s),"utf8"),c=t.inclusionPromise.signedEntryTimestamp;return wot.crypto.verify(a,n.publicKey,c)}))throw new Wxr.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}o(Yxr,"verifyTLogSET");function Kxr(t){let{integratedTime:e,logIndex:r,logId:i,canonicalizedBody:n}=t;return{body:n.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:i.keyId.toString("hex")}}o(Kxr,"toVerificationPayload")});var Sot=m(c6=>{"use strict";Object.defineProperty(c6,"__esModule",{value:!0});c6.verifyTLogBody=rRr;c6.verifyTLogInclusion=iRr;var Iot=kde(),mAe=io(),dAe=mot(),pAe=Aot(),Xxr=got(),Zxr=Eot(),eRr=bot(),tRr=Cot();function rRr(t,e){let{kind:r,version:i}=t.kindVersion,n=JSON.parse(t.canonicalizedBody.toString("utf8"));if(r!==n.kind||i!==n.apiVersion)throw new mAe.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${i}, received: ${n.kind}/${n.apiVersion}`});switch(r){case"dsse":if(i==dAe.DSSE_API_VERSION_V1)return(0,dAe.verifyDSSETLogBody)(n,e);{let s=Iot.Entry.fromJSON(n);return(0,dAe.verifyDSSETLogBodyV2)(s,e)}case"intoto":return(0,Xxr.verifyIntotoTLogBody)(n,e);case"hashedrekord":if(i==pAe.HASHEDREKORD_API_VERSION_V1)return(0,pAe.verifyHashedRekordTLogBody)(n,e);{let s=Iot.Entry.fromJSON(n);return(0,pAe.verifyHashedRekordTLogBodyV2)(s,e)}default:throw new mAe.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}o(rRr,"verifyTLogBody");function iRr(t,e){let r=!1;if(nRr(t)&&((0,tRr.verifyTLogSET)(t,e),r=!0),sRr(t)){let i=(0,Zxr.verifyCheckpoint)(t,e);(0,eRr.verifyMerkleInclusion)(t,i),r=!0}if(!r)throw new mAe.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}o(iRr,"verifyTLogInclusion");function nRr(t){return t.inclusionPromise!==void 0}o(nRr,"isTLogEntryWithInclusionPromise");function sRr(t){return t.inclusionProof!==void 0}o(sRr,"isTLogEntryWithInclusionProof")});var Rot=m(u6=>{"use strict";Object.defineProperty(u6,"__esModule",{value:!0});u6.Verifier=void 0;var oRr=require("util"),ov=io(),Bot=lot(),AAe=fot(),vot=pot(),_ot=Sot(),gAe=class{static{o(this,"Verifier")}trustMaterial;options;constructor(e,r={}){this.trustMaterial=e,this.options={ctlogThreshold:r.ctlogThreshold??1,tlogThreshold:r.tlogThreshold??1,timestampThreshold:r.timestampThreshold??r.tsaThreshold??1,tsaThreshold:0}}verify(e,r){let i=this.verifyTimestamps(e),n=this.verifySigningKey(e,i);return this.verifyTLogs(e),this.verifySignature(e,n),r&&this.verifyPolicy(r,n.identity||{}),n}verifyTimestamps(e){let r=[];for(let i of e.timestamps)switch(i.$case){case"timestamp-authority":r.push((0,vot.getTSATimestamp)(i.timestamp,e.signature.signature,this.trustMaterial.timestampAuthorities));break;case"transparency-log":{let n=(0,vot.getTLogTimestamp)(i.tlogEntry);n&&r.push(n);break}}if(xot(r))throw new ov.VerificationError({code:"TIMESTAMP_ERROR",message:"duplicate timestamp"});if(r.len Line truncated
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}o(Sy,"getBooleanInput");function DSe(t,e){if(process.env.GITHUB_OUTPUT||"")return wD("OUTPUT",V6(t,e));process.stdout.write(N9.EOL),pd("set-output",{name:t},dd(e))}o(DSe,"setOutput");function CP(t){process.exitCode=T9.Failure,_w(t)}o(CP,"setFailed");function By(){return process.env.RUNNER_DEBUG==="1"}o(By,"isDebug");function L(t){pd("debug",{},t)}o(L,"debug");function _w(t,e={}){pd("error",G6(e),t instanceof Error?t.toString():t)}o(_w,"error");function fr(t,e={}){pd("warning",G6(e),t instanceof Error?t.toString():t)}o(fr,"warning");function j(t){process.stdout.write(t+N9.EOL)}o(j,"info");function ubt(t){j6("group",t)}o(ubt,"startGroup");function lbt(){j6("endgroup")}o(lbt,"endGroup");function si(t,e){return cbt(this,void 0,void 0,function*(){ubt(t);let r;try{r=yield e()}finally{lbt()}return r})}o(si,"group");function Vc(t,e){if(process.env.GITHUB_STATE||"")return wD("STATE",V6(t,e));pd("save-state",{name:t},dd(e))}o(Vc,"saveState");function OSe(t){return process.env[`STATE_${t}`]||""}o(OSe,"getState");var BM=P(require("fs"),1),jZ=P(require("os"),1),VZ=P(require("path"),1);var kSe=P(require("os"),1);function x_(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(x_,"toCommandValue");function QSe(t,e,r){let i=new D9(t,e,r);process.stdout.write(i.toString()+kSe.EOL)}o(QSe,"issueCommand");var PSe="::",D9=class{static{o(this,"Command")}constructor(e,r,i){e||(e="missing.command"),this.command=e,this.properties=r,this.message=i}toString(){let e=PSe+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let i in this.properties)if(this.properties.hasOwnProperty(i)){let n=this.properties[i];n&&(r?r=!1:e+=",",e+=`${i}=${hbt(n)}`)}}return e+=`${PSe}${fbt(this.message)}`,e}};function fbt(t){return x_(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(fbt,"escapeData");function hbt(t){return x_(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(hbt,"escapeProperty");var USe=P(require("os"),1);var MSe=require("os"),R_=require("fs");var O9=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function u(f){try{l(i.throw(f))}catch(h){a(h)}}o(u,"rejected");function l(f){f.done?s(f.value):n(f.value).then(c,u)}o(l,"step"),l((i=i.apply(t,e||[])).next())})},{access:dbt,appendFile:pbt,writeFile:mbt}=R_.promises,LSe="GITHUB_STEP_SUMMARY";var P9=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return O9(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[LSe];if(!e)throw new Error(`Unable to find environment variable for $${LSe}. Check if your runtime environment supports job summaries.`);try{yield dbt(e,R_.constants.R_OK|R_.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,i={}){let n=Object.entries(i).map(([s,a])=>` ${s}="${a}"`).join("");return r?`<${e}${n}>${r}</${e}>`:`<${e}${n}>`}write(e){return O9(this,void 0,void 0,function*(){let r=!!e?.overwrite,i=yield this.filePath();return yield(r?mbt:pbt)(i,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return O9(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(MSe.EOL)}addCodeBlock(e,r){let i=Object.assign({},r&&{lang:r}),n=this.wrap("pre",this.wrap("code",e),i);return this.addRaw(n).addEOL()}addList(e,r=!1){let i=r?"ol":"ul",n=e.map(a=>this.wrap("li",a)).join(""),s=this.wrap(i,n);return this.addRaw(s).addEOL()}addTable(e){let r=e.map(n=>{let s=n.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:u,colspan:l,rowspan:f}=a,h=c?"th":"td",d=Object.assign(Object.assign({},l&&{colspan:l}),f&&{rowspan:f});return this.wrap(h,u,d)}).join("");return this.wrap("tr",s)}).join(""),i=this.wrap("table",r);return this.addRaw(i).addEOL()}addDetails(e,r){let i=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(i).addEOL()}addImage(e,r,i){let{width:n,height:s}=i||{},a=Object.assign(Object.assign({},n&&{width:n}),s&&{height:s}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let i=`h${r}`,n=["h1","h2","h3","h4","h5","h6"].includes(i)?i:"h1",s=this.wrap(n,e);return this.addRaw(s).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 i=Object.assign({},r&&{cite:r}),n=this.wrap("blockquote",e,i);return this.adLine truncated
`),e=e.replace(/\r/g,`
`));let n=e.split(`
`).map(s=>s.trim());for(let s of n)!s||s.startsWith("#")||i.patterns.push(new q_(s));return i.searchPaths.push(...p$(i.patterns)),i})}static stat(e,r,i){return w$(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield Ow.promises.stat(e.path)}catch(s){if(s.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){Jc(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw s}else n=yield Ow.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let s=yield Ow.promises.realpath(e.path);for(;i.length>=e.level;)i.pop();if(i.some(o=>o===s)){Jc(`Symlink cycle detected for path '${e.path}' and realpath '${s}'`);return}i.push(s)}return n})}};var tSt=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};function A_e(t,e){return tSt(this,void 0,void 0,function*(){return yield UP.create(t,e)})}var rk=O(require("crypto"),1),Lw=O(require("fs"),1),xy=O(require("path"),1),uRe=O(aRe(),1),lRe=O(require("util"),1);var W_;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(W_||(W_={}));var po;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(po||(po={}));var Ka;(function(t){t.GNU="gnu",t.BSD="bsd"})(Ka||(Ka={}));var ek=2,tk=5e3,G$=5e3,H$=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,cRe=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,J_="cache.tar",j$="manifest.txt",dOr=10*Math.pow(1024,3);var Qw=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},c_t=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={},i("next"),i("throw"),i("return"),r[Symbol.asyncIterator]=function(){return this},r);function i(s){r[s]=t[s]&&function(o){return new Promise(function(a,c){o=t[s](o),n(a,c,o.done,o.value)})}}function n(s,o,a,c){Promise.resolve(c).then(function(u){s({value:u,done:a})},o)}},u_t="1.0";function Y_(){return Qw(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let i;t?i=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?i="/Users":i="/home",e=xy.join(i,"actions","temp")}let r=xy.join(e,rk.randomUUID());return yield Rd(r),r})}function mf(t){return Lw.statSync(t).size}function V$(t){return Qw(this,void 0,void 0,function*(){var e,r,i,n,s;let o=[],a=(s=process.env.GITHUB_WORKSPACE)!==null&&s!==void 0?s:process.cwd(),c=yield A_e(t.join(`
`),{implicitDescendants:!1});try{for(var u=!0,l=c_t(c.globGenerator()),f;f=yield l.next(),e=f.done,!e;u=!0){n=f.value,u=!1;let d=xy.relative(a,n).replace(new RegExp(`\\${xy.sep}`,"g"),"/");Q(`Matched: ${d}`),d===""?o.push("."):o.push(`${d}`)}}catch(h){r={error:h}}finally{try{!u&&!e&&(i=l.return)&&(yield i.call(l))}finally{if(r)throw r.error}}return o})}function K_(t){return Qw(this,void 0,void 0,function*(){return lRe.promisify(Lw.unlink)(t)})}function fRe(t){return Qw(this,arguments,void 0,function*(e,r=[]){let i="";r.push("--version"),Q(`Checking ${e} ${r.join(" ")}`);try{yield Ja(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:n=>i+=n.toString(),stderr:n=>i+=n.toString()}})}catch(n){Q(n.message)}return i=i.trim(),Q(i),i})}function X_(){return Qw(this,void 0,void 0,function*(){let t=yield fRe("zstd",["--quiet"]),e=uRe.clean(t);return Q(`zstd version: ${e}`),t===""?po.Gzip:po.ZstdWithoutLong})}function Ym(t){return t===po.Gzip?W_.Gzip:W_.Zstd}function hRe(){return Qw(this,void 0,void 0,function*(){return Lw.existsSync(H$)?H$:(yield fRe("tar")).toLowerCase().includes("gnu tar")?ns("tar"):""})}function z$(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function Mw(t,e,r=!1){let i=t.slice();return e&&i.push(e),process.platform==="win32"&&!r&&i.push("windows-only"),i.push(u_t),rk.createHash("sha256").update(i.join("|")).digest("hex")}function dRe(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}var ex=O(require("http"),1),J$=O(require("https"),1);function $$(t){let e=t.protocol==="https:";if(l_t(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 nk(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new nk(`http://${r}`)}else return}function l_t(t){if(!t.hostname)return!1;let e=t.hostname;if(f_t(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let i;t.port?i=Number(t.port):t.protocol==="http:"?i=80:t.protocol==="https:"&&(i=443);let n=[t.hostname.toUpperCase()];typeof i=="number"&&n.push(`${n[0]}:${i}`);for(let s of r.split(",").map(o=>o.trim().toUpperCase()).filter(o=>o))if(s==="*"||n.some(o=>o===s||o.endsWith(`.${s}`)||s.startsWith(".")&&o.endsWith(`${s}`)))return!0;return!1}function f_t(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 nk=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 Km=O(vb(),1),pRe=O(Um(),1),vi=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},si;(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"})(si||(si={}));var mo;(function(t){t.Accept="accept",t.ContentType="content-type"})(mo||(mo={}));var Od;(function(t){t.ApplicationJson="application/json"})(Od||(Od={}));var d_t=[si.MovedPermanently,si.ResourceMoved,si.SeeOther,si.TemporaryRedirect,si.PermanentRedirect],p_t=[si.BadGateway,si.ServiceUnavailable,si.GatewayTimeout],m_t=["OPTIONS","GET","DELETE","HEAD"],A_t=10,g_t=5,Af=class t extends Error{constructor(e,r){super(e),this.name="HttpClientError",this.statusCode=r,Object.setPrototypeOf(this,t.prototype)}},W$=class{constructor(e){this.message=e}readBody(){return vi(this,void 0,void 0,function*(){return new Promise(e=>vi(this,void 0,void 0,function*(){let r=Buffer.alloc(0);this.message.on("data",i=>{r=Buffer.concat([r,i])}),this.message.on("end",()=>{e(r.toString())})}))})}readBodyBuffer(){return vi(this,void 0,void 0,functi Line truncated
${v_t.sanitize({...this,request:{...this.request,agent:i},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function lk(t){return t instanceof Ao?!0:Ty(t)&&t.name==="RestError"}function oa(t,e){return Buffer.from(t,e)}var fk=O(require("node:http"),1),hk=O(require("node:https"),1),sW=O(require("node:zlib"),1),DRe=require("node:stream");var Xc=tx("ts-http-runtime");var __t={};function rx(t){return t&&typeof t.pipe=="function"}function NRe(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 ORe(t){return t&&typeof t.byteLength=="number"}var dk=class extends DRe.Transform{loadedBytes=0;progressCallback;_transform(e,r,i){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),i()}catch(n){i(n)}}constructor(e){super(),this.progressCallback=e}},oW=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,i;if(e.abortSignal){if(e.abortSignal.aborted)throw new gf("The operation was aborted. Request has already been canceled.");i=u=>{u.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",i)}let n;e.timeout>0&&(n=setTimeout(()=>{let u=new hl;Xc.info(`request to '${u.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let s=e.headers.get("Accept-Encoding"),o=s?.includes("gzip")||s?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let u=N_t(a);u!==null&&e.headers.set("Content-Length",u)}let c;try{if(a&&e.onUploadProgress){let m=e.onUploadProgress,A=new dk(m);A.on("error",y=>{Xc.error("Error in upload progress",y)}),rx(a)?a.pipe(A):A.end(a),a=A}let u=await this.makeRequest(e,r,a);n!==void 0&&clearTimeout(n);let l=x_t(u),h={status:u.statusCode??0,headers:l,request:e};if(e.method==="HEAD")return u.resume(),h;c=o?R_t(u,l):u;let d=e.onDownloadProgress;if(d){let m=new dk(d);m.on("error",A=>{Xc.error("Error in download progress",A)}),c.pipe(m),c=m}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(h.status)?h.readableStreamBody=c:h.bodyAsText=await T_t(c),h}finally{if(e.abortSignal&&i){let u=Promise.resolve();rx(a)&&(u=NRe(a));let l=Promise.resolve();rx(c)&&(l=NRe(c)),Promise.all([u,l]).then(()=>{i&&e.abortSignal?.removeEventListener("abort",i)}).catch(f=>{Xc.warning("Error when cleaning up abortListener on httpRequest",f)})}}}makeRequest(e,r,i){let n=new URL(e.url),s=n.protocol!=="https:";if(s&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,s),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,u)=>{let l=s?fk.default.request(a,c):hk.default.request(a,c);l.once("error",f=>{u(new Ao(f.message,{code:f.code??Ao.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let f=new gf("The operation was aborted. Rejecting from abort signal callback while making request.");l.destroy(f),u(f)}),i&&rx(i)?i.pipe(l):i?typeof i=="string"||Buffer.isBuffer(i)?l.end(i):ORe(i)?l.end(ArrayBuffer.isView(i)?Buffer.from(i.buffer):Buffer.from(i)):(Xc.error("Unrecognized body type",i),u(new Ao("Unrecognized body type"))):l.end()})}getOrCreateAgent(e,r){let i=e.disableKeepAlive;if(r)return i?fk.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new fk.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(i&&!e.tlsSettings)return hk.default.globalAgent;let n=e.tlsSettings??__t,s=this.cachedHttpsAgents.get(n);return s&&s.options.keepAlive===!i||(Xc.info("No cached TLS Agent exist, creating a new Agent"),s=new hk.default.Agent({keepAlive:!i,...n}),this.cachedHttpsAgents.set(n,s)),s}}};function x_t(t){let e=Xa();for(let r of Object.keys(t.headers)){let i=t.headers[r];Array.isArray(i)?i.length>0&&e.set(r,i[0]):i&&e.set(r,i)}return e}function R_t(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let i=sW.default.createGunzip();return t.pipe(i),i}else if(r==="deflate"){let i=sW.default.createInflate();return t.pipe(i),i}return t}function T_t(t){return new Promise((e,r)=>{let i=[];t.on("data",n=>{Buffer.isBuffer(n)?i.push(n):i.push(Buffer.from(n))}),t.on("end",()=>{e(Buffer.concat(i).toString("utf8"))}),t.on("error",n=>{n&&n?.name==="AbortError"?r(n):r(new Ao(`Error reading response as text: ${n.message}`,{code:Ao.PARSE_ERROR}))})})}function N_t(t){return t?Buffer.isBuffer(t)?t.length:rx(t)?null:ORe(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function PRe(){return new oW}function pk(){return PRe()}var aW="logPolicy";function mk(t={}){let e=t.logger??Xc.info,r=new hl({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additional Line truncated
`;return e}function uRt(t){return t instanceof Uint8Array?t.byteLength:Qk(t)?t.size===-1?void 0:t.size:void 0}function lRt(t){let e=0;for(let r of t){let i=uRt(r);if(i===void 0)return;e+=i}return e}async function fRt(t,e,r){let i=[oa(`--${r}`,"utf-8"),...e.flatMap(s=>[oa(`\r
`,"utf-8"),oa(cRt(s.headers),"utf-8"),oa(`\r
`,"utf-8"),s.body,oa(`\r
--${r}`,"utf-8")]),oa(`--\r
`).map(s=>s.trim());for(let s of n)!s||s.startsWith("#")||i.patterns.push(new G_(s));return i.searchPaths.push(...m$(i.patterns)),i})}static stat(e,r,i){return C$(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield Pw.promises.stat(e.path)}catch(s){if(s.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){Yc(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw s}else n=yield Pw.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let s=yield Pw.promises.realpath(e.path);for(;i.length>=e.level;)i.pop();if(i.some(a=>a===s)){Yc(`Symlink cycle detected for path '${e.path}' and realpath '${s}'`);return}i.push(s)}return n})}};var rSt=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function u(f){try{l(i.throw(f))}catch(h){a(h)}}o(u,"rejected");function l(f){f.done?s(f.value):n(f.value).then(c,u)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};function g_e(t,e){return rSt(this,void 0,void 0,function*(){return yield GP.create(t,e)})}o(g_e,"create");var nk=P(require("crypto"),1),Mw=P(require("fs"),1),Ry=P(require("path"),1),lRe=P(cRe(),1),fRe=P(require("util"),1);var J_;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(J_||(J_={}));var mo;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(mo||(mo={}));var Xa;(function(t){t.GNU="gnu",t.BSD="bsd"})(Xa||(Xa={}));var rk=2,ik=5e3,H$=5e3,j$=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,uRe=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Y_="cache.tar",V$="manifest.txt",cLr=10*Math.pow(1024,3);var Lw=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function u(f){try{l(i.throw(f))}catch(h){a(h)}}o(u,"rejected");function l(f){f.done?s(f.value):n(f.value).then(c,u)}o(l,"step"),l((i=i.apply(t,e||[])).next())})},u_t=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={},i("next"),i("throw"),i("return"),r[Symbol.asyncIterator]=function(){return this},r);function i(s){r[s]=t[s]&&function(a){return new Promise(function(c,u){a=t[s](a),n(c,u,a.done,a.value)})}}function n(s,a,c,u){Promise.resolve(u).then(function(l){s({value:l,done:c})},a)}},l_t="1.0";function K_(){return Lw(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let i;t?i=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?i="/Users":i="/home",e=Ry.join(i,"actions","temp")}let r=Ry.join(e,nk.randomUUID());return yield Td(r),r})}o(K_,"createTempDirectory");function Af(t){return Mw.statSync(t).size}o(Af,"getArchiveFileSizeInBytes");function z$(t){return Lw(this,void 0,void 0,function*(){var e,r,i,n,s;let a=[],c=(s=process.env.GITHUB_WORKSPACE)!==null&&s!==void 0?s:process.cwd(),u=yield g_e(t.join(`
`),{implicitDescendants:!1});try{for(var l=!0,f=u_t(u.globGenerator()),h;h=yield f.next(),e=h.done,!e;l=!0){n=h.value,l=!1;let p=Ry.relative(c,n).replace(new RegExp(`\\${Ry.sep}`,"g"),"/");L(`Matched: ${p}`),p===""?a.push("."):a.push(`${p}`)}}catch(d){r={error:d}}finally{try{!l&&!e&&(i=f.return)&&(yield i.call(f))}finally{if(r)throw r.error}}return a})}o(z$,"resolvePaths");function X_(t){return Lw(this,void 0,void 0,function*(){return fRe.promisify(Mw.unlink)(t)})}o(X_,"unlinkFile");function hRe(t){return Lw(this,arguments,void 0,function*(e,r=[]){let i="";r.push("--version"),L(`Checking ${e} ${r.join(" ")}`);try{yield Ya(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:o(n=>i+=n.toString(),"stdout"),stderr:o(n=>i+=n.toString(),"stderr")}})}catch(n){L(n.message)}return i=i.trim(),L(i),i})}o(hRe,"getVersion");function Z_(){return Lw(this,void 0,void 0,function*(){let t=yield hRe("zstd",["--quiet"]),e=lRe.clean(t);return L(`zstd version: ${e}`),t===""?mo.Gzip:mo.ZstdWithoutLong})}o(Z_,"getCompressionMethod");function Km(t){return t===mo.Gzip?J_.Gzip:J_.Zstd}o(Km,"getCacheFileName");function dRe(){return Lw(this,void 0,void 0,function*(){return Mw.existsSync(j$)?j$:(yield hRe("tar")).toLowerCase().includes("gnu tar")?ss("tar"):""})}o(dRe,"getGnuTarPathOnWindows");function $$(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o($$,"assertDefined");function Fw(t,e,r=!1){let i=t.slice();return e&&i.push(e),process.platform==="win32"&&!r&&i.push("windows-only"),i.push(l_t),nk.createHash("sha256").update(i.join("|")).digest("hex")}o(Fw,"getCacheVersion");function pRe(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(pRe,"getRuntimeToken");var tx=P(require("http"),1),Y$=P(require("https"),1);function W$(t){let e=t.protocol==="https:";if(f_t(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 ok(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new ok(`http://${r}`)}else return}o(W$,"getProxyUrl");function f_t(t){if(!t.hostname)return!1;let e=t.hostname;if(h_t(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let i;t.port?i=Number(t.port):t.protocol==="http:"?i=80:t.protocol==="https:"&&(i=443);let n=[t.hostname.toUpperCase()];typeof i=="number"&&n.push(`${n[0]}:${i}`);for(let s of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(s==="*"||n.some(a=>a===s||a.endsWith(`.${s}`)||s.startsWith(".")&&a.endsWith(`${s}`)))return!0;return!1}o(f_t,"checkBypass");function h_t(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}o(h_t,"isLoopbackAddress");var ok=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var Xm=P(_b(),1),mRe=P(qm(),1);var _i=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function u(f){try{l(i.throw(f))}catch(h){a(h)}}o(u,"rejected");function l(f){f.done?s(f.value):n(f.value).then(c,u)}o(l,"step"),l((i=i.apply(t,e||[])).next())})},oi;(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"})(oi||(oi={}));var Ao;(function(t){t.Accept="accept",t.ContentType="content-type"})(Ao||(Ao={}));var Pd;(function(t){t.ApplicationJson="application/json"})(Pd||(Pd={}));var p_t=[oi.MovedPermanently,oi.ResourceMoved,oi.SeeOther,oi.TemporaryRedirect,oi.PermanentRedirect],m_t=[oi.BadGateway,oi.ServiceUnavailable,oi.GatewayTimeout],A_t=["OPTIONS","GET","DELETE","HEAD"],g_t=10,y_t=5,gf=class t extends Error{static{o(this,"HttpClientError")}const Line truncated
${__t.sanitize({...this,request:{...this.request,agent:i},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function hk(t){return t instanceof go?!0:Ny(t)&&t.name==="RestError"}o(hk,"isRestError");function aa(t,e){return Buffer.from(t,e)}o(aa,"stringToUint8Array");var dk=P(require("node:http"),1),pk=P(require("node:https"),1),oW=P(require("node:zlib"),1),ORe=require("node:stream");var Zc=rx("ts-http-runtime");var x_t={};function ix(t){return t&&typeof t.pipe=="function"}o(ix,"isReadableStream");function DRe(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=o(()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)},"handler");t.on("close",r),t.on("end",r),t.on("error",r)})}o(DRe,"isStreamComplete");function PRe(t){return t&&typeof t.byteLength=="number"}o(PRe,"isArrayBuffer");var mk=class extends ORe.Transform{static{o(this,"ReportTransform")}loadedBytes=0;progressCallback;_transform(e,r,i){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),i()}catch(n){i(n)}}constructor(e){super(),this.progressCallback=e}},aW=class{static{o(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,i;if(e.abortSignal){if(e.abortSignal.aborted)throw new yf("The operation was aborted. Request has already been canceled.");i=o(l=>{l.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",i)}let n;e.timeout>0&&(n=setTimeout(()=>{let l=new dl;Zc.info(`request to '${l.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let s=e.headers.get("Accept-Encoding"),a=s?.includes("gzip")||s?.includes("deflate"),c=typeof e.body=="function"?e.body():e.body;if(c&&!e.headers.has("Content-Length")){let l=D_t(c);l!==null&&e.headers.set("Content-Length",l)}let u;try{if(c&&e.onUploadProgress){let A=e.onUploadProgress,g=new mk(A);g.on("error",E=>{Zc.error("Error in upload progress",E)}),ix(c)?c.pipe(g):g.end(c),c=g}let l=await this.makeRequest(e,r,c);n!==void 0&&clearTimeout(n);let f=R_t(l),d={status:l.statusCode??0,headers:f,request:e};if(e.method==="HEAD")return l.resume(),d;u=a?T_t(l,f):l;let p=e.onDownloadProgress;if(p){let A=new mk(p);A.on("error",g=>{Zc.error("Error in download progress",g)}),u.pipe(A),u=A}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=u:d.bodyAsText=await N_t(u),d}finally{if(e.abortSignal&&i){let l=Promise.resolve();ix(c)&&(l=DRe(c));let f=Promise.resolve();ix(u)&&(f=DRe(u)),Promise.all([l,f]).then(()=>{i&&e.abortSignal?.removeEventListener("abort",i)}).catch(h=>{Zc.warning("Error when cleaning up abortListener on httpRequest",h)})}}}makeRequest(e,r,i){let n=new URL(e.url),s=n.protocol!=="https:";if(s&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let c={agent:e.agent??this.getOrCreateAgent(e,s),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((u,l)=>{let f=s?dk.default.request(c,u):pk.default.request(c,u);f.once("error",h=>{l(new go(h.message,{code:h.code??go.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let h=new yf("The operation was aborted. Rejecting from abort signal callback while making request.");f.destroy(h),l(h)}),i&&ix(i)?i.pipe(f):i?typeof i=="string"||Buffer.isBuffer(i)?f.end(i):PRe(i)?f.end(ArrayBuffer.isView(i)?Buffer.from(i.buffer):Buffer.from(i)):(Zc.error("Unrecognized body type",i),l(new go("Unrecognized body type"))):f.end()})}getOrCreateAgent(e,r){let i=e.disableKeepAlive;if(r)return i?dk.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new dk.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(i&&!e.tlsSettings)return pk.default.globalAgent;let n=e.tlsSettings??x_t,s=this.cachedHttpsAgents.get(n);return s&&s.options.keepAlive===!i||(Zc.info("No cached TLS Agent exist, creating a new Agent"),s=new pk.default.Agent({keepAlive:!i,...n}),this.cachedHttpsAgents.set(n,s)),s}}};function R_t(t){let e=Za();for(let r of Object.keys(t.headers)){let i=t.headers[r];Array.isArray(i)?i.length>0&&e.set(r,i[0]):i&&e.set(r,i)}return e}o(R_t,"getResponseHeaders");function T_t(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let i=oW.default.createGunzip();return t.pipe(i),i}else if(r==="deflate"){let i=oW.default.createInflate();return t.pipe(i),i}return t}o(T_t,"getDecodedResponseStream");function N_t(t){return new Promise((e,r)=>{let i=[];t.on("data",n=>{Buffer.isBuffer(n)?i.push(n):i.push(Buffer.from(n))}),t.on("end",()=>{e(Buffer.concat(i).toString("utf8"))}),t.on("error",n=>{n&&n?.name==="AbortError"?r(n):r(new go(`Error reading response as text: ${n.message}`,{code:go.PARSE_ERROR}))})})}o(N_t,"streamToText");function D_t(t){return t?Buffer.isBuffer(t)?t.length: Line truncated
`;return e}o(uRt,"encodeHeaders");function lRt(t){return t instanceof Uint8Array?t.byteLength:Mk(t)?t.size===-1?void 0:t.size:void 0}o(lRt,"getLength");function fRt(t){let e=0;for(let r of t){let i=lRt(r);if(i===void 0)return;e+=i}return e}o(fRt,"getTotalLength");async function hRt(t,e,r){let i=[aa(`--${r}`,"utf-8"),...e.flatMap(s=>[aa(`\r
`,"utf-8"),aa(uRt(s.headers),"utf-8"),aa(`\r
`,"utf-8"),s.body,aa(`\r
--${r}`,"utf-8")]),aa(`--\r
\r
`,"utf-8")],n=lRt(i);n&&t.headers.set("Content-Length",n),t.body=await kTe(i)}var ox="multipartPolicy",hRt=70,dRt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function pRt(t){if(t.length>hRt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!dRt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function Mk(){return{name:ox,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,i=t.headers.get("Content-Type")??"multipart/mixed",n=i.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!n)throw new Error(`Got multipart request body, but content-type header was not multipart: ${i}`);let[,s,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?pRt(r):r=aRt(),t.headers.set("Content-Type",`${s}; boundary=${r}`),await fRt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function Fk(){return uk()}var QTe=ok({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),XQr=QTe.logger;function bf(t){return QTe.createClientLogger(t)}var wf=bf("core-rest-pipeline");function vW(t={}){return mk({logger:wf.info,...t})}var _W=Ak;function xW(t={}){return gk(t)}var Uk=O(require("node:os"),1),qk=O(require("node:process"),1);function LTe(){return"User-Agent"}async function MTe(t){if(qk.default&&qk.default.versions){let e=`${Uk.default.type()} ${Uk.default.release()}; ${Uk.default.arch()}`,r=qk.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 Gk="1.22.2";function CRt(t){let e=[];for(let[r,i]of t){let n=i?`${r}/${i}`:r;e.push(n)}return e.join(" ")}function FTe(){return LTe()}async function Hk(t){let e=new Map;e.set("core-rest-pipeline",Gk),await MTe(e);let r=CRt(e);return t?`${t} ${r}`:r}var UTe=FTe(),qTe="userAgentPolicy";function RW(t={}){let e=Hk(t.userAgentPrefix);return{name:qTe,async sendRequest(r,i){return r.headers.has(UTe)||r.headers.set(UTe,await e),i(r)}}}var rc=class extends Error{constructor(e){super(e),this.name="AbortError"}};function TW(t,e){let{cleanupBeforeAbort:r,abortSignal:i,abortErrorMsg:n}=e??{};return new Promise((s,o)=>{function a(){o(new rc(n??"The operation was aborted."))}function c(){i?.removeEventListener("abort",u)}function u(){r?.(),c(),a()}if(i?.aborted)return a();try{t(l=>{c(),s(l)},l=>{c(),o(l)})}catch(l){o(l)}i?.addEventListener("abort",u)})}var _Rt="The delay was aborted.";function ax(t,e){let r,{abortSignal:i,abortErrorMsg:n}=e??{};return TW(s=>{r=setTimeout(s,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:i,abortErrorMsg:n??_Rt})}function Zm(t){if(Ty(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 GTe(t){return Ty(t)}function $w(){return Ry()}var Xt=Oy;var HTe=Symbol("rawContent");function DW(t){return typeof t[HTe]=="function"}function jTe(t){return DW(t)?t[HTe]():t}var jk=ox;function OW(){let t=Mk();return{name:jk,sendRequest:async(e,r)=>{if(e.multipartBody)for(let i of e.multipartBody.parts)DW(i.body)&&(i.body=jTe(i.body));return t.sendRequest(e,r)}}}var PW=yk;function kW(){return Ek()}function QW(t={}){return Ck(t)}function LW(){return Ik()}function eA(t){return wW(t)}function MW(t,e){return Ok(t,e)}var VTe="setClientRequestIdPolicy";function FW(t="x-ms-client-request-id"){return{name:VTe,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function UW(t){return Pk(t)}function qW(t){return kk(t)}var Ww={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function zTe(t={}){let e=new GW(t.parentContext);return t.span&&(e=e.setValue(Ww.span,t.span)),t.namespace&&(e=e.setValue(Ww.namespace,t.namespace)),e}var GW=class t{_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let i=new t(this);return i._contextMap.set(e,r),i}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var WTe=O($Te(),1),zk=WTe.state;function xRt(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function RRt(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:xRt(),tracingContext:zTe({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function cx(){return zk.instrumenterImplementation||(zk.instrumenterImplementation=RRt()),zk.instrumenterImplementation}function ux(t){let{namespace:e,packageName:r,packageVersion:i}=t;function n(u,l,f){let h=cx().startSpan(u,{...f,packageName:r,packageVersion:i,tracingContext:l?.tracingOptions?.tracingContext}),d=h.tracingConte Line truncated
`&&t[s]!=="\r";s++)c+=t[s];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),s--),!KTt(c)){let f;return c.trim().length===0?f="Invalid space after '<'.":f="Tag '"+c+"' is an invalid name.",_i("InvalidTag",f,go(t,s))}let u=zTt(t,s);if(u===!1)return _i("InvalidAttr","Attributes for '"+c+"' have open quote.",go(t,s));let l=u.value;if(s=u.index,l[l.length-1]==="/"){let f=s-l.length;l=l.substring(0,l.length-1);let h=RNe(l,e);if(h===!0)i=!0;else return _i(h.err.code,h.err.msg,go(t,f+h.err.line))}else if(a)if(u.tagClosed){if(l.trim().length>0)return _i("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",go(t,o));if(r.length===0)return _i("InvalidTag","Closing tag '"+c+"' has not been opened.",go(t,o));{let f=r.pop();if(c!==f.tagName){let h=go(t,f.tagStartPos);return _i("InvalidTag","Expected closing tag '"+f.tagName+"' (opened in line "+h.line+", col "+h.col+") instead of closing tag '"+c+"'.",go(t,o))}r.length==0&&(n=!0)}}else return _i("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",go(t,s));else{let f=RNe(l,e);if(f!==!0)return _i(f.err.code,f.err.msg,go(t,s-l.length+f.err.line));if(n===!0)return _i("InvalidXml","Multiple possible root nodes found.",go(t,s));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:o}),i=!0}for(s++;s<t.length;s++)if(t[s]==="<")if(t[s+1]==="!"){s++,s=xNe(t,s);continue}else if(t[s+1]==="?"){if(s=_Ne(t,++s),s.err)return s}else break;else if(t[s]==="&"){let f=JTt(t,s);if(f==-1)return _i("InvalidChar","char '&' is not expected.",go(t,s));s=f}else if(n===!0&&!vNe(t[s]))return _i("InvalidXml","Extra text at the end",go(t,s));t[s]==="<"&&s--}}else{if(vNe(t[s]))continue;return _i("InvalidChar","char '"+t[s]+"' is not expected.",go(t,s))}if(i){if(r.length==1)return _i("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",go(t,r[0].tagStartPos));if(r.length>0)return _i("InvalidXml","Invalid '"+JSON.stringify(r.map(s=>s.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return _i("InvalidXml","Start tag expected.",1);return!0}function vNe(t){return t===" "||t===" "||t===`
`||t==="\r"}function _Ne(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let i=t.substr(r,e-r);if(e>5&&i==="xml")return _i("InvalidXml","XML declaration allowed only at the start of the document.",go(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function xNe(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 jTt='"',VTt="'";function zTt(t,e){let r="",i="",n=!1;for(;e<t.length;e++){if(t[e]===jTt||t[e]===VTt)i===""?i=t[e]:i!==t[e]||(i="");else if(t[e]===">"&&i===""){n=!0;break}r+=t[e]}return i!==""?!1:{value:r,index:e,tagClosed:n}}var $Tt=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function RNe(t,e){let r=tQ(t,$Tt),i={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return _i("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",Ex(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return _i("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",Ex(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return _i("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",Ex(r[n]));let s=r[n][2];if(!YTt(s))return _i("InvalidAttr","Attribute '"+s+"' is an invalid name.",Ex(r[n]));if(!Object.prototype.hasOwnProperty.call(i,s))i[s]=1;else return _i("InvalidAttr","Attribute '"+s+"' is repeated.",Ex(r[n]))}return!0}function WTt(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 JTt(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,WTt(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 _i(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function YTt(t){return oJ(t)}function KTt(t){return oJ(t)}function go(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function Ex(t){return t.startIndex+t[1].length}var TNe={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"},NNe={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"},DNe={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",LcaroLine truncated
`);let e=new la("!xml"),r=e,i="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let n=this.options,s=new Cx(n.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let u=t.charCodeAt(a+1);if(u===47){let l=Zw(t,">",a,"Closing Tag is not closed."),f=t.substring(a+2,l).trim();if(n.removeNSPrefix){let d=f.indexOf(":");d!==-1&&(f=f.substr(d+1))}f=pJ(n.transformTagName,f,"",n).tagName,r&&(i=this.saveTextToParentTag(i,r,this.readonlyMatcher));let h=this.matcher.getCurrentTag();if(f&&n.unpairedTagsSet.has(f))throw new Error(`Unpaired tag can not be used as closing tag: </${f}>`);h&&n.unpairedTagsSet.has(h)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),i="",a=l}else if(u===63){let l=mJ(t,a,!1,"?>");if(!l)throw new Error("Pi Tag is not closed.");i=this.saveTextToParentTag(i,r,this.readonlyMatcher);let f=this.buildAttributesMap(l.tagExp,this.matcher,l.tagName,!0);if(f){let h=f[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(h)||1),s.setXmlVersion(Number(h)||1)}if(!(n.ignoreDeclaration&&l.tagName==="?xml"||n.ignorePiTags)){let h=new la(l.tagName);h.add(n.textNodeName,""),l.tagName!==l.tagExp&&l.attrExpPresent&&n.ignoreAttributes!==!0&&(h[":@"]=f),this.addChild(r,h,this.readonlyMatcher,a)}a=l.closeIndex+1}else if(u===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let l=Zw(t,"-->",a+4,"Comment is not closed.");if(n.commentPropName){let f=t.substring(a+4,l-2);i=this.saveTextToParentTag(i,r,this.readonlyMatcher),r.add(n.commentPropName,[{[n.textNodeName]:f}])}a=l}else if(u===33&&t.charCodeAt(a+2)===68){let l=s.readDocType(t,a);this.entityDecoder.addInputEntities(l.entities),a=l.i}else if(u===33&&t.charCodeAt(a+2)===91){let l=Zw(t,"]]>",a,"CDATA is not closed.")-2,f=t.substring(a+9,l);i=this.saveTextToParentTag(i,r,this.readonlyMatcher);let h=this.parseTextData(f,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);h==null&&(h=""),n.cdataPropName?r.add(n.cdataPropName,[{[n.textNodeName]:f}]):r.add(n.textNodeName,h),a=l+2}else{let l=mJ(t,a,n.removeNSPrefix);if(!l){let L=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${L}"`)}let f=l.tagName,h=l.rawTagName,d=l.tagExp,m=l.attrExpPresent,A=l.closeIndex;if({tagName:f,tagExp:d}=pJ(n.transformTagName,f,d,n),n.strictReservedNames&&(f===n.commentPropName||f===n.cdataPropName||f===n.textNodeName||f===n.attributesGroupName))throw new Error(`Invalid tag name: ${f}`);r&&i&&r.tagname!=="!xml"&&(i=this.saveTextToParentTag(i,r,this.readonlyMatcher,!1));let y=r;y&&n.unpairedTagsSet.has(y.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let g=!1;d.length>0&&d.lastIndexOf("/")===d.length-1&&(g=!0,f[f.length-1]==="/"?(f=f.substr(0,f.length-1),d=f):d=d.substr(0,d.length-1),m=f!==d);let E=null,C={},S;S=bNt(h),f!==e.tagname&&this.matcher.push(f,{},S),f!==d&&m&&(E=this.buildAttributesMap(d,this.matcher,f),E&&(C=ENt(E,n))),f!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=a;if(this.isCurrentNodeStopNode){let L="";if(g)a=l.closeIndex;else if(n.unpairedTagsSet.has(f))a=l.closeIndex;else{let j=this.readStopNodeData(t,h,A+1);if(!j)throw new Error(`Unexpected end of ${h}`);a=j.i,L=j.tagContent}let T=new la(f);E&&(T[":@"]=E),T.add(n.textNodeName,L),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,T,this.readonlyMatcher,N)}else{if(g){({tagName:f,tagExp:d}=pJ(n.transformTagName,f,d,n));let L=new la(f);E&&(L[":@"]=E),this.addChild(r,L,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(n.unpairedTagsSet.has(f)){let L=new la(f);E&&(L[":@"]=E),this.addChild(r,L,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=l.closeIndex;continue}else{let L=new la(f);if(this.tagsNodeStack.length>n.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),E&&(L[":@"]=E),this.addChild(r,L,this.readonlyMatcher,N),r=L}i="",a=A}}}else i+=t[a];return e.child};function vNt(t,e,r,i){this.options.captureMetaData||(i=void 0);let n=this.options.jPath?r.toString():r,s=this.options.updateTag(e.tagname,n,e[":@"]);s===!1||(typeof s=="string"&&(e.tagname=s),t.addChild(e,i))}function _Nt(t,e,r){let i=this.options.processEntities;if(!i||!i.enabled)return t;if(i.allowedTags){let n=this.options.jPath?r.toString():r;if(!(Array.isArray(i.allowedTags)?i.allowedTags.includes(e):i.allowedTags(e,n)))return t}if(i.tagFilter){let n=this.options.jPath?r.toString():r;if(!i.tagFilter(e,n))return t}return this.entityDecoder.decode(t)}function xNt(t,e,r,i){return t&&(i===void 0&&(i=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,i),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}function RNt(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function TNt(t,e,r=">"){Line truncated
`;function MNt(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(wJ(r)==="?xml"){let n=r[":@"];if(n){let s=e.attributeNamePrefix+"version";if(n[s])return n[s]}}return"1.0"}function XNe(t,e,r,i,n){return!r.sanitizeName||Fy(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:i.readOnly()})}function bJ(t,e){let r="";e.format&&(r=LNt);let i=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let o=0;o<e.stopNodes.length;o++){let a=e.stopNodes[o];typeof a=="string"?i.push(new sc(a)):a instanceof sc&&i.push(a)}let n=MNt(t,e),s=new Sf;return ZNe(t,e,r,s,i,n)}function ZNe(t,e,r,i,n,s){let o="",a=!1;if(e.maxNestedTags&&i.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let c=t.toString();return c=EJ(c,e),c}return""}for(let c=0;c<t.length;c++){let u=t[c],l=wJ(u);if(l===void 0)continue;let h=l===e.textNodeName||l===e.cdataPropName||l===e.commentPropName||l[0]==="?"?l:XNe(l,!1,e,i,s),d=FNt(u[":@"],e);i.push(h,d);let m=qNt(i,n);if(h===e.textNodeName){let C=u[l];m||(C=e.tagValueProcessor(h,C),C=EJ(C,e)),a&&(o+=r),o+=C,a=!1,i.pop();continue}else if(h===e.cdataPropName){a&&(o+=r);let C=u[l][0][e.textNodeName],S=cQ(C);o+=`<![CDATA[${S}]]>`,a=!1,i.pop();continue}else if(h===e.commentPropName){let C=u[l][0][e.textNodeName],S=aQ(C);o+=r+`<!--${S}-->`,a=!0,i.pop();continue}else if(h[0]==="?"){let C=KNe(u[":@"],e,m,i,s);o+=(h==="?xml"?"":r)+`<${h}${C}?>`,a=!0,i.pop();continue}let A=r;A!==""&&(A+=e.indentBy);let y=KNe(u[":@"],e,m,i,s),g=r+`<${h}${y}`,E;m?E=e1e(u[l],e):E=ZNe(u[l],e,A,i,n,s),e.unpairedTags.indexOf(h)!==-1?e.suppressUnpairedNode?o+=g+">":o+=g+"/>":(!E||E.length===0)&&e.suppressEmptyNode?o+=g+"/>":E&&E.endsWith(">")?o+=g+`>${E}${r}</${h}>`:(o+=g+">",E&&r!==""&&(E.includes("/>")||E.includes("</"))?o+=r+e.indentBy+E+r:o+=E,o+=`</${h}>`),a=!0,i.pop()}return o}function FNt(t,e){if(!t||e.ignoreAttributes)return null;let r={},i=!1;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=n.startsWith(e.attributeNamePrefix)?n.substr(e.attributeNamePrefix.length):n;r[s]=iA(t[n]),i=!0}return i?r:null}function e1e(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let i=0;i<t.length;i++){let n=t[i],s=wJ(n);if(s===e.textNodeName)r+=n[s];else if(s===e.cdataPropName)r+=n[s][0][e.textNodeName];else if(s===e.commentPropName)r+=n[s][0][e.textNodeName];else{if(s&&s[0]==="?")continue;if(s){let o=UNt(n[":@"],e),a=e1e(n[s],e);!a||a.length===0?r+=`<${s}${o}/>`:r+=`<${s}${o}>${a}</${s}>`}}}return r}function UNt(t,e){let r="";if(t&&!e.ignoreAttributes)for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let n=t[i];n===!0&&e.suppressBooleanAttributes?r+=` ${i.substr(e.attributeNamePrefix.length)}`:r+=` ${i.substr(e.attributeNamePrefix.length)}="${iA(n)}"`}return r}function wJ(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let i=e[r];if(Object.prototype.hasOwnProperty.call(t,i)&&i!==":@")return i}}function KNe(t,e,r,i,n){let s="";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:XNe(a,!0,e,i,n),u;r?u=t[o]:(u=e.attributeValueProcessor(o,t[o]),u=EJ(u,e)),u===!0&&e.suppressBooleanAttributes?s+=` ${c}`:s+=` ${c}="${iA(u)}"`}return s}function qNt(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 EJ(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let i=e.entities[r];t=t.replace(i.regex,i.val)}return t}function CJ(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 GNt={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 ha(t){if(this.options=Object.assign({},GNt,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 sc(r)):r instanceof sc&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignorLine truncated
`,"utf-8")],n=fRt(i);n&&t.headers.set("Content-Length",n),t.body=await QTe(i)}o(hRt,"buildRequestBody");var ax="multipartPolicy",dRt=70,pRt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function mRt(t){if(t.length>dRt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!pRt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}o(mRt,"assertValidBoundary");function Uk(){return{name:ax,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,i=t.headers.get("Content-Type")??"multipart/mixed",n=i.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!n)throw new Error(`Got multipart request body, but content-type header was not multipart: ${i}`);let[,s,a]=n;if(a&&r&&a!==r)throw new Error(`Multipart boundary was specified as ${a} in the header, but got ${r} in the request body`);return r??=a,r?mRt(r):r=cRt(),t.headers.set("Content-Type",`${s}; boundary=${r}`),await hRt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}o(Uk,"multipartPolicy");function qk(){return fk()}o(qk,"createEmptyPipeline");var LTe=ck({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),o3r=LTe.logger;function wf(t){return LTe.createClientLogger(t)}o(wf,"createClientLogger");var Cf=wf("core-rest-pipeline");function _W(t={}){return gk({logger:Cf.info,...t})}o(_W,"logPolicy");var xW=yk;function RW(t={}){return Ek(t)}o(RW,"redirectPolicy");var Gk=P(require("node:os"),1),Hk=P(require("node:process"),1);function MTe(){return"User-Agent"}o(MTe,"getHeaderName");async function FTe(t){if(Hk.default&&Hk.default.versions){let e=`${Gk.default.type()} ${Gk.default.release()}; ${Gk.default.arch()}`,r=Hk.default.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}o(FTe,"setPlatformSpecificData");var jk="1.22.2";function IRt(t){let e=[];for(let[r,i]of t){let n=i?`${r}/${i}`:r;e.push(n)}return e.join(" ")}o(IRt,"getUserAgentString");function UTe(){return MTe()}o(UTe,"getUserAgentHeaderName");async function Vk(t){let e=new Map;e.set("core-rest-pipeline",jk),await FTe(e);let r=IRt(e);return t?`${t} ${r}`:r}o(Vk,"getUserAgentValue");var qTe=UTe(),GTe="userAgentPolicy";function TW(t={}){let e=Vk(t.userAgentPrefix);return{name:GTe,async sendRequest(r,i){return r.headers.has(qTe)||r.headers.set(qTe,await e),i(r)}}}o(TW,"userAgentPolicy");var ic=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function NW(t,e){let{cleanupBeforeAbort:r,abortSignal:i,abortErrorMsg:n}=e??{};return new Promise((s,a)=>{function c(){a(new ic(n??"The operation was aborted."))}o(c,"rejectOnAbort");function u(){i?.removeEventListener("abort",l)}o(u,"removeListeners");function l(){r?.(),u(),c()}if(o(l,"onAbort"),i?.aborted)return c();try{t(f=>{u(),s(f)},f=>{u(),a(f)})}catch(f){a(f)}i?.addEventListener("abort",l)})}o(NW,"createAbortablePromise");var xRt="The delay was aborted.";function cx(t,e){let r,{abortSignal:i,abortErrorMsg:n}=e??{};return NW(s=>{r=setTimeout(s,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:i,abortErrorMsg:n??xRt})}o(cx,"delay");function eA(t){if(Ny(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}o(eA,"getErrorMessage");function HTe(t){return Ny(t)}o(HTe,"isError");function Ww(){return Ty()}o(Ww,"randomUUID");var Zt=Py;var jTe=Symbol("rawContent");function OW(t){return typeof t[jTe]=="function"}o(OW,"hasRawContent");function VTe(t){return OW(t)?t[jTe]():t}o(VTe,"getRawContent");var zk=ax;function PW(){let t=Uk();return{name:zk,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(let i of e.multipartBody.parts)OW(i.body)&&(i.body=VTe(i.body));return t.sendRequest(e,r)},"sendRequest")}}o(PW,"multipartPolicy");var kW=bk;function QW(){return wk()}o(QW,"decompressResponsePolicy");function LW(t={}){return Sk(t)}o(LW,"defaultRetryPolicy");function MW(){return Bk()}o(MW,"formDataPolicy");function tA(t){return CW(t)}o(tA,"getDefaultProxySettings");function FW(t,e){return kk(t,e)}o(FW,"proxyPolicy");var zTe="setClientRequestIdPolicy";function UW(t="x-ms-client-request-id"){return{name:zTe,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}o(UW,"setClientRequestIdPolicy");function qW(t){return Qk(t)}o(qW,"agentPolicy");function GW(t){return Lk(t)}o(GW,"tlsPolicy");var Jw={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function $Te(t={}){let e=new HW(t.parentContext);return t.span&&(e=e.setValue(Jw.span,t.span)),t.namespace&&(e=e.setValue(Jw.namespace,t.namespace)),e}o($Te,"createTracingContext");var HW=class t{static{o(this,"TracingContextImpl")}_contextMap;constructor(e){this._contextMap=e i Line truncated
`&&t[s]!=="\r";s++)u+=t[s];if(u=u.trim(),u[u.length-1]==="/"&&(u=u.substring(0,u.length-1),s--),!XTt(u)){let h;return u.trim().length===0?h="Invalid space after '<'.":h="Tag '"+u+"' is an invalid name.",xi("InvalidTag",h,yo(t,s))}let l=$Tt(t,s);if(l===!1)return xi("InvalidAttr","Attributes for '"+u+"' have open quote.",yo(t,s));let f=l.value;if(s=l.index,f[f.length-1]==="/"){let h=s-f.length;f=f.substring(0,f.length-1);let d=TNe(f,e);if(d===!0)i=!0;else return xi(d.err.code,d.err.msg,yo(t,h+d.err.line))}else if(c)if(l.tagClosed){if(f.trim().length>0)return xi("InvalidTag","Closing tag '"+u+"' can't have attributes or invalid starting.",yo(t,a));if(r.length===0)return xi("InvalidTag","Closing tag '"+u+"' has not been opened.",yo(t,a));{let h=r.pop();if(u!==h.tagName){let d=yo(t,h.tagStartPos);return xi("InvalidTag","Expected closing tag '"+h.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+u+"'.",yo(t,a))}r.length==0&&(n=!0)}}else return xi("InvalidTag","Closing tag '"+u+"' doesn't have proper closing.",yo(t,s));else{let h=TNe(f,e);if(h!==!0)return xi(h.err.code,h.err.msg,yo(t,s-f.length+h.err.line));if(n===!0)return xi("InvalidXml","Multiple possible root nodes found.",yo(t,s));e.unpairedTags.indexOf(u)!==-1||r.push({tagName:u,tagStartPos:a}),i=!0}for(s++;s<t.length;s++)if(t[s]==="<")if(t[s+1]==="!"){s++,s=RNe(t,s);continue}else if(t[s+1]==="?"){if(s=xNe(t,++s),s.err)return s}else break;else if(t[s]==="&"){let h=YTt(t,s);if(h==-1)return xi("InvalidChar","char '&' is not expected.",yo(t,s));s=h}else if(n===!0&&!_Ne(t[s]))return xi("InvalidXml","Extra text at the end",yo(t,s));t[s]==="<"&&s--}}else{if(_Ne(t[s]))continue;return xi("InvalidChar","char '"+t[s]+"' is not expected.",yo(t,s))}if(i){if(r.length==1)return xi("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",yo(t,r[0].tagStartPos));if(r.length>0)return xi("InvalidXml","Invalid '"+JSON.stringify(r.map(s=>s.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return xi("InvalidXml","Start tag expected.",1);return!0}o(sQ,"validate");function _Ne(t){return t===" "||t===" "||t===`
`||t==="\r"}o(_Ne,"isWhiteSpace");function xNe(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let i=t.substr(r,e-r);if(e>5&&i==="xml")return xi("InvalidXml","XML declaration allowed only at the start of the document.",yo(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}o(xNe,"readPI");function RNe(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}o(RNe,"readCommentAndCDATA");var VTt='"',zTt="'";function $Tt(t,e){let r="",i="",n=!1;for(;e<t.length;e++){if(t[e]===VTt||t[e]===zTt)i===""?i=t[e]:i!==t[e]||(i="");else if(t[e]===">"&&i===""){n=!0;break}r+=t[e]}return i!==""?!1:{value:r,index:e,tagClosed:n}}o($Tt,"readAttributeStr");var WTt=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function TNe(t,e){let r=iQ(t,WTt),i={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return xi("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",bx(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return xi("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",bx(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return xi("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",bx(r[n]));let s=r[n][2];if(!KTt(s))return xi("InvalidAttr","Attribute '"+s+"' is an invalid name.",bx(r[n]));if(!Object.prototype.hasOwnProperty.call(i,s))i[s]=1;else return xi("InvalidAttr","Attribute '"+s+"' is repeated.",bx(r[n]))}return!0}o(TNe,"validateAttributeString");function JTt(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}o(JTt,"validateNumberAmpersand");function YTt(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,JTt(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}o(YTt,"validateAmpersand");function xi(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}o(xi,"getErrorObject");function KTt(t){return aJ(t)}o(KTt,"validateAttrName");function XTt(t){return aJ(t)}o(XTt,"validateTagName");function yo(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}o(yo,"getLineNumberForPosition");function bx(t){return t.startIndex+t[1].length}o(bx,"getPositionFromMatch");var NNe={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"},DNe={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"},ONe={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:"\Line truncated
`);let e=new fa("!xml"),r=e,i="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let n=this.options,s=new Ix(n.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let l=t.charCodeAt(c+1);if(l===47){let f=eC(t,">",c,"Closing Tag is not closed."),h=t.substring(c+2,f).trim();if(n.removeNSPrefix){let p=h.indexOf(":");p!==-1&&(h=h.substr(p+1))}h=mJ(n.transformTagName,h,"",n).tagName,r&&(i=this.saveTextToParentTag(i,r,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(h&&n.unpairedTagsSet.has(h))throw new Error(`Unpaired tag can not be used as closing tag: </${h}>`);d&&n.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),i="",c=f}else if(l===63){let f=AJ(t,c,!1,"?>");if(!f)throw new Error("Pi Tag is not closed.");i=this.saveTextToParentTag(i,r,this.readonlyMatcher);let h=this.buildAttributesMap(f.tagExp,this.matcher,f.tagName,!0);if(h){let d=h[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1),s.setXmlVersion(Number(d)||1)}if(!(n.ignoreDeclaration&&f.tagName==="?xml"||n.ignorePiTags)){let d=new fa(f.tagName);d.add(n.textNodeName,""),f.tagName!==f.tagExp&&f.attrExpPresent&&n.ignoreAttributes!==!0&&(d[":@"]=h),this.addChild(r,d,this.readonlyMatcher,c)}c=f.closeIndex+1}else if(l===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let f=eC(t,"-->",c+4,"Comment is not closed.");if(n.commentPropName){let h=t.substring(c+4,f-2);i=this.saveTextToParentTag(i,r,this.readonlyMatcher),r.add(n.commentPropName,[{[n.textNodeName]:h}])}c=f}else if(l===33&&t.charCodeAt(c+2)===68){let f=s.readDocType(t,c);this.entityDecoder.addInputEntities(f.entities),c=f.i}else if(l===33&&t.charCodeAt(c+2)===91){let f=eC(t,"]]>",c,"CDATA is not closed.")-2,h=t.substring(c+9,f);i=this.saveTextToParentTag(i,r,this.readonlyMatcher);let d=this.parseTextData(h,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),n.cdataPropName?r.add(n.cdataPropName,[{[n.textNodeName]:h}]):r.add(n.textNodeName,d),c=f+2}else{let f=AJ(t,c,n.removeNSPrefix);if(!f){let M=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${M}"`)}let h=f.tagName,d=f.rawTagName,p=f.tagExp,A=f.attrExpPresent,g=f.closeIndex;if({tagName:h,tagExp:p}=mJ(n.transformTagName,h,p,n),n.strictReservedNames&&(h===n.commentPropName||h===n.cdataPropName||h===n.textNodeName||h===n.attributesGroupName))throw new Error(`Invalid tag name: ${h}`);r&&i&&r.tagname!=="!xml"&&(i=this.saveTextToParentTag(i,r,this.readonlyMatcher,!1));let E=r;E&&n.unpairedTagsSet.has(E.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let y=!1;p.length>0&&p.lastIndexOf("/")===p.length-1&&(y=!0,h[h.length-1]==="/"?(h=h.substr(0,h.length-1),p=h):p=p.substr(0,p.length-1),A=h!==p);let b=null,I={},B;B=wNt(d),h!==e.tagname&&this.matcher.push(h,{},B),h!==p&&A&&(b=this.buildAttributesMap(p,this.matcher,h),b&&(I=bNt(b,n))),h!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let D=c;if(this.isCurrentNodeStopNode){let M="";if(y)c=f.closeIndex;else if(n.unpairedTagsSet.has(h))c=f.closeIndex;else{let V=this.readStopNodeData(t,d,g+1);if(!V)throw new Error(`Unexpected end of ${d}`);c=V.i,M=V.tagContent}let N=new fa(h);b&&(N[":@"]=b),N.add(n.textNodeName,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,N,this.readonlyMatcher,D)}else{if(y){({tagName:h,tagExp:p}=mJ(n.transformTagName,h,p,n));let M=new fa(h);b&&(M[":@"]=b),this.addChild(r,M,this.readonlyMatcher,D),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(n.unpairedTagsSet.has(h)){let M=new fa(h);b&&(M[":@"]=b),this.addChild(r,M,this.readonlyMatcher,D),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=f.closeIndex;continue}else{let M=new fa(h);if(this.tagsNodeStack.length>n.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),b&&(M[":@"]=b),this.addChild(r,M,this.readonlyMatcher,D),r=M}i="",c=g}}}else i+=t[c];return e.child},"parseXml");function _Nt(t,e,r,i){this.options.captureMetaData||(i=void 0);let n=this.options.jPath?r.toString():r,s=this.options.updateTag(e.tagname,n,e[":@"]);s===!1||(typeof s=="string"&&(e.tagname=s),t.addChild(e,i))}o(_Nt,"addChild");function xNt(t,e,r){let i=this.options.processEntities;if(!i||!i.enabled)return t;if(i.allowedTags){let n=this.options.jPath?r.toString():r;if(!(Array.isArray(i.allowedTags)?i.allowedTags.includes(e):i.allowedTags(e,n)))return t}if(i.tagFilter){let n=this.options.jPath?r.toString():r;if(!i.tagFilter(e,n))return t}return this.entityDecoder.decode(t)}o(xNt,"replaceEntitiesValue");function RNt(t,e,r,i){return t&&(i===void 0&&(i=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,i),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}o(RNt,"saveTextToParentTag");function TNt(){return this.stopNodeExpressionsSet.Line truncated
`;function FNt(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(CJ(r)==="?xml"){let n=r[":@"];if(n){let s=e.attributeNamePrefix+"version";if(n[s])return n[s]}}return"1.0"}o(FNt,"detectXmlVersionFromArray");function ZNe(t,e,r,i,n){return!r.sanitizeName||Uy(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:i.readOnly()})}o(ZNe,"resolveTagName");function wJ(t,e){let r="";e.format&&(r=MNt);let i=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let a=0;a<e.stopNodes.length;a++){let c=e.stopNodes[a];typeof c=="string"?i.push(new oc(c)):c instanceof oc&&i.push(c)}let n=FNt(t,e),s=new Bf;return e1e(t,e,r,s,i,n)}o(wJ,"toXml");function e1e(t,e,r,i,n,s){let a="",c=!1;if(e.maxNestedTags&&i.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let u=t.toString();return u=bJ(u,e),u}return""}for(let u=0;u<t.length;u++){let l=t[u],f=CJ(l);if(f===void 0)continue;let d=f===e.textNodeName||f===e.cdataPropName||f===e.commentPropName||f[0]==="?"?f:ZNe(f,!1,e,i,s),p=UNt(l[":@"],e);i.push(d,p);let A=GNt(i,n);if(d===e.textNodeName){let I=l[f];A||(I=e.tagValueProcessor(d,I),I=bJ(I,e)),c&&(a+=r),a+=I,c=!1,i.pop();continue}else if(d===e.cdataPropName){c&&(a+=r);let I=l[f][0][e.textNodeName],B=lQ(I);a+=`<![CDATA[${B}]]>`,c=!1,i.pop();continue}else if(d===e.commentPropName){let I=l[f][0][e.textNodeName],B=uQ(I);a+=r+`<!--${B}-->`,c=!0,i.pop();continue}else if(d[0]==="?"){let I=XNe(l[":@"],e,A,i,s);a+=(d==="?xml"?"":r)+`<${d}${I}?>`,c=!0,i.pop();continue}let g=r;g!==""&&(g+=e.indentBy);let E=XNe(l[":@"],e,A,i,s),y=r+`<${d}${E}`,b;A?b=t1e(l[f],e):b=e1e(l[f],e,g,i,n,s),e.unpairedTags.indexOf(d)!==-1?e.suppressUnpairedNode?a+=y+">":a+=y+"/>":(!b||b.length===0)&&e.suppressEmptyNode?a+=y+"/>":b&&b.endsWith(">")?a+=y+`>${b}${r}</${d}>`:(a+=y+">",b&&r!==""&&(b.includes("/>")||b.includes("</"))?a+=r+e.indentBy+b+r:a+=b,a+=`</${d}>`),c=!0,i.pop()}return a}o(e1e,"arrToStr");function UNt(t,e){if(!t||e.ignoreAttributes)return null;let r={},i=!1;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=n.startsWith(e.attributeNamePrefix)?n.substr(e.attributeNamePrefix.length):n;r[s]=nA(t[n]),i=!0}return i?r:null}o(UNt,"extractAttributeValues");function t1e(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let i=0;i<t.length;i++){let n=t[i],s=CJ(n);if(s===e.textNodeName)r+=n[s];else if(s===e.cdataPropName)r+=n[s][0][e.textNodeName];else if(s===e.commentPropName)r+=n[s][0][e.textNodeName];else{if(s&&s[0]==="?")continue;if(s){let a=qNt(n[":@"],e),c=t1e(n[s],e);!c||c.length===0?r+=`<${s}${a}/>`:r+=`<${s}${a}>${c}</${s}>`}}}return r}o(t1e,"getRawContent");function qNt(t,e){let r="";if(t&&!e.ignoreAttributes)for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let n=t[i];n===!0&&e.suppressBooleanAttributes?r+=` ${i.substr(e.attributeNamePrefix.length)}`:r+=` ${i.substr(e.attributeNamePrefix.length)}="${nA(n)}"`}return r}o(qNt,"attr_to_str_raw");function CJ(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let i=e[r];if(Object.prototype.hasOwnProperty.call(t,i)&&i!==":@")return i}}o(CJ,"propName");function XNe(t,e,r,i,n){let s="";if(t&&!e.ignoreAttributes)for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a))continue;let c=a.substr(e.attributeNamePrefix.length),u=r?c:ZNe(c,!0,e,i,n),l;r?l=t[a]:(l=e.attributeValueProcessor(a,t[a]),l=bJ(l,e)),l===!0&&e.suppressBooleanAttributes?s+=` ${u}`:s+=` ${u}="${nA(l)}"`}return s}o(XNe,"attr_to_str");function GNt(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++)if(t.matches(e[r]))return!0;return!1}o(GNt,"checkStopNode");function bJ(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let i=e.entities[r];t=t.replace(i.regex,i.val)}return t}o(bJ,"replaceEntitiesValue");function IJ(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}o(IJ,"getIgnoreAttributesFn");var HNt={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:o(function(t,e){return e},"tagValueProcessor"),attributeValueProcessor:o(function(t,e){return e},"attributeValueProcessor"),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 da(t){if(this.options=Object.assign({},HNt,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&&ArraLine truncated
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function HNt(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 i=r[e.attributeNamePrefix+"version"];if(i)return i}return"1.0"}function IJ(t,e,r,i,n){return!r.sanitizeName||Fy(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:i.readOnly()})}ha.prototype.build=function(t){if(this.options.preserveOrder)return bJ(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Sf,r=HNt(t,this.options);return this.j2x(t,0,e,r).val}};ha.prototype.j2x=function(t,e,r,i){let n="",s="";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 l=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:IJ(c,!1,this.options,r,i);if(typeof t[c]>"u")this.isAttribute(c)&&(s+="");else if(t[c]===null)this.isAttribute(c)||l===this.options.cdataPropName||l===this.options.commentPropName?s+="":l[0]==="?"?s+=this.indentate(e)+"<"+l+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+l+"/"+this.tagEndChar;else if(t[c]instanceof Date)s+=this.buildTextValNode(t[c],l,"",e,r);else if(typeof t[c]!="object"){let f=this.isAttribute(c);if(f&&!this.ignoreAttributesFn(f,o)){let h=IJ(f,!0,this.options,r,i);n+=this.buildAttrPairStr(h,""+t[c],a)}else if(!f)if(c===this.options.textNodeName){let h=this.options.tagValueProcessor(c,""+t[c]);s+=this.replaceEntitiesValue(h)}else{r.push(l);let h=this.checkStopNode(r);if(r.pop(),h){let d=""+t[c];d===""?s+=this.indentate(e)+"<"+l+this.closeTag(l)+this.tagEndChar:s+=this.indentate(e)+"<"+l+">"+d+"</"+l+this.tagEndChar}else s+=this.buildTextValNode(t[c],l,"",e,r)}}else if(Array.isArray(t[c])){let f=t[c].length,h="",d="";for(let m=0;m<f;m++){let A=t[c][m];if(!(typeof A>"u"))if(A===null)l[0]==="?"?s+=this.indentate(e)+"<"+l+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+l+"/"+this.tagEndChar;else if(typeof A=="object")if(this.options.oneListGroup){r.push(l);let y=this.j2x(A,e+1,r,i);r.pop(),h+=y.val,this.options.attributesGroupName&&A.hasOwnProperty(this.options.attributesGroupName)&&(d+=y.attrStr)}else h+=this.processTextOrObjNode(A,l,e,r,i);else if(this.options.oneListGroup){let y=this.options.tagValueProcessor(l,A);y=this.replaceEntitiesValue(y),h+=y}else{r.push(l);let y=this.checkStopNode(r);if(r.pop(),y){let g=""+A;g===""?h+=this.indentate(e)+"<"+l+this.closeTag(l)+this.tagEndChar:h+=this.indentate(e)+"<"+l+">"+g+"</"+l+this.tagEndChar}else h+=this.buildTextValNode(A,l,"",e,r)}}this.options.oneListGroup&&(h=this.buildObjectNode(h,l,d,e)),s+=h}else if(this.options.attributesGroupName&&c===this.options.attributesGroupName){let f=Object.keys(t[c]),h=f.length;for(let d=0;d<h;d++){let m=IJ(f[d],!0,this.options,r,i);n+=this.buildAttrPairStr(m,""+t[c][f[d]],a)}}else s+=this.processTextOrObjNode(t[c],l,e,r,i)}return{attrStr:n,val:s}};ha.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+'="'+iA(e)+'"'};function jNt(t,e,r,i,n){let s=this.extractAttributes(t);if(i.push(e,s),this.checkStopNode(i)){let c=this.buildRawContent(t),u=this.buildAttributesForStopNode(t);return i.pop(),this.buildObjectNode(c,e,u,r)}let a=this.j2x(t,r+1,i,n);return i.pop(),e[0]==="?"?this.buildTextValNode("",e,a.attrStr,r,i):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,a.attrStr,r,i):this.buildObjectNode(a.val,e,a.attrStr,r)}ha.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let i=t[this.options.attributesGroupName];for(let n in i){if(!Object.prototype.hasOwnProperty.call(i,n))continue;let s=n.startsWith(this.options.attributeNamePrefix)?n.substring(this.options.attributeNamePrefix.length):n;e[s]=iA(i[n]),r=!0}}else for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let n=this.isAttribute(i);n&&(e[n]=iA(t[i]),r=!0)}return r?e:null};ha.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 i=t[r];if(r===this.options.textNodeName)e+=i;else if(Array.isA Line truncated
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}o(da,"Builder");function jNt(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 i=r[e.attributeNamePrefix+"version"];if(i)return i}return"1.0"}o(jNt,"detectXmlVersionFromObj");function SJ(t,e,r,i,n){return!r.sanitizeName||Uy(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:i.readOnly()})}o(SJ,"resolveTagName");da.prototype.build=function(t){if(this.options.preserveOrder)return wJ(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Bf,r=jNt(t,this.options);return this.j2x(t,0,e,r).val}};da.prototype.j2x=function(t,e,r,i){let n="",s="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let a=this.options.jPath?r.toString():r,c=this.checkStopNode(r);for(let u in t){if(!Object.prototype.hasOwnProperty.call(t,u))continue;let f=u===this.options.textNodeName||u===this.options.cdataPropName||u===this.options.commentPropName||this.options.attributesGroupName&&u===this.options.attributesGroupName||this.isAttribute(u)||u[0]==="?"?u:SJ(u,!1,this.options,r,i);if(typeof t[u]>"u")this.isAttribute(u)&&(s+="");else if(t[u]===null)this.isAttribute(u)||f===this.options.cdataPropName||f===this.options.commentPropName?s+="":f[0]==="?"?s+=this.indentate(e)+"<"+f+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+f+"/"+this.tagEndChar;else if(t[u]instanceof Date)s+=this.buildTextValNode(t[u],f,"",e,r);else if(typeof t[u]!="object"){let h=this.isAttribute(u);if(h&&!this.ignoreAttributesFn(h,a)){let d=SJ(h,!0,this.options,r,i);n+=this.buildAttrPairStr(d,""+t[u],c)}else if(!h)if(u===this.options.textNodeName){let d=this.options.tagValueProcessor(u,""+t[u]);s+=this.replaceEntitiesValue(d)}else{r.push(f);let d=this.checkStopNode(r);if(r.pop(),d){let p=""+t[u];p===""?s+=this.indentate(e)+"<"+f+this.closeTag(f)+this.tagEndChar:s+=this.indentate(e)+"<"+f+">"+p+"</"+f+this.tagEndChar}else s+=this.buildTextValNode(t[u],f,"",e,r)}}else if(Array.isArray(t[u])){let h=t[u].length,d="",p="";for(let A=0;A<h;A++){let g=t[u][A];if(!(typeof g>"u"))if(g===null)f[0]==="?"?s+=this.indentate(e)+"<"+f+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+f+"/"+this.tagEndChar;else if(typeof g=="object")if(this.options.oneListGroup){r.push(f);let E=this.j2x(g,e+1,r,i);r.pop(),d+=E.val,this.options.attributesGroupName&&g.hasOwnProperty(this.options.attributesGroupName)&&(p+=E.attrStr)}else d+=this.processTextOrObjNode(g,f,e,r,i);else if(this.options.oneListGroup){let E=this.options.tagValueProcessor(f,g);E=this.replaceEntitiesValue(E),d+=E}else{r.push(f);let E=this.checkStopNode(r);if(r.pop(),E){let y=""+g;y===""?d+=this.indentate(e)+"<"+f+this.closeTag(f)+this.tagEndChar:d+=this.indentate(e)+"<"+f+">"+y+"</"+f+this.tagEndChar}else d+=this.buildTextValNode(g,f,"",e,r)}}this.options.oneListGroup&&(d=this.buildObjectNode(d,f,p,e)),s+=d}else if(this.options.attributesGroupName&&u===this.options.attributesGroupName){let h=Object.keys(t[u]),d=h.length;for(let p=0;p<d;p++){let A=SJ(h[p],!0,this.options,r,i);n+=this.buildAttrPairStr(A,""+t[u][h[p]],c)}}else s+=this.processTextOrObjNode(t[u],f,e,r,i)}return{attrStr:n,val:s}};da.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+'="'+nA(e)+'"'};function VNt(t,e,r,i,n){let s=this.extractAttributes(t);if(i.push(e,s),this.checkStopNode(i)){let u=this.buildRawContent(t),l=this.buildAttributesForStopNode(t);return i.pop(),this.buildObjectNode(u,e,l,r)}let c=this.j2x(t,r+1,i,n);return i.pop(),e[0]==="?"?this.buildTextValNode("",e,c.attrStr,r,i):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,c.attrStr,r,i):this.buildObjectNode(c.val,e,c.attrStr,r)}o(VNt,"processTextOrObjNode");da.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let i=t[this.options.attributesGroupName];for(let n in i){if(!Object.prototype.hasOwnProperty.call(i,n))continue;let s=n.startsWith(this.options.attributeNamePrefix)?n.substring(this.options.attributeNamePrefix.length):n;e[s]=nA(i[n]),r=!0}}else for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let n=this.isAttribute(i);n&&(e[n]=nA(t[i]),r=!0)}return r?e:null};da.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.o Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),i=this.factory.computeHMACSHA256(r);return e.headers.set(tt.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${i}`),e}getHeaderValueToSign(e,r){let i=e.headers.get(r);return!i||r===tt.CONTENT_LENGTH&&i==="0"?"":i}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(n=>n.name.toLowerCase().startsWith(tt.PREFIX_FOR_STORAGE));r.sort((n,s)=>EQ(n.name.toLowerCase(),s.name.toLowerCase())),r=r.filter((n,s,o)=>!(s>0&&n.name.toLowerCase()===o[s-1].name.toLowerCase()));let i="";return r.forEach(n=>{i+=`${n.name.toLowerCase().trimRight()}:${n.value.trimLeft()}
`}),i}getCanonicalizedResourceString(e){let r=AQ(e.url)||"/",i="";i+=`/${this.factory.accountName}${r}`;let n=gQ(e.url),s={};if(n){let o=[];for(let a in n)if(Object.prototype.hasOwnProperty.call(n,a)){let c=a.toLowerCase();s[c]=n[a],o.push(c)}o.sort();for(let a of o)i+=`
${a}:${decodeURIComponent(s[a])}`}return i}};var oi=class extends Gy{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new _x(e,r,this)}computeHMACSHA256(e){return(0,c1e.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var on=bf("storage-common");var ru;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(ru||(ru={}));var sA={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ru.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},ZNt=new rc("The operation was aborted."),xx=class extends Bf{retryOptions;constructor(e,r,i=sA){super(e,r),this.retryOptions={retryPolicyType:i.retryPolicyType?i.retryPolicyType:sA.retryPolicyType,maxTries:i.maxTries&&i.maxTries>=1?Math.floor(i.maxTries):sA.maxTries,tryTimeoutInMs:i.tryTimeoutInMs&&i.tryTimeoutInMs>=0?i.tryTimeoutInMs:sA.tryTimeoutInMs,retryDelayInMs:i.retryDelayInMs&&i.retryDelayInMs>=0?Math.min(i.retryDelayInMs,i.maxRetryDelayInMs?i.maxRetryDelayInMs:sA.maxRetryDelayInMs):sA.retryDelayInMs,maxRetryDelayInMs:i.maxRetryDelayInMs&&i.maxRetryDelayInMs>=0?i.maxRetryDelayInMs:sA.maxRetryDelayInMs,secondaryHost:i.secondaryHost?i.secondaryHost:sA.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,i){let n=e.clone(),s=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||i%2===1;s||(n.url=mQ(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=nA(n.url,Md.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(on.info(`RetryPolicy: =====> Try=${i} ${s?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(n),!this.shouldRetry(s,i,o))return o;r=r||!s&&o.status===404}catch(a){if(on.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(s,i,o,a))throw a}return await this.delay(s,i,e.abortSignal),this.attemptSendRequest(e,r,++i)}shouldRetry(e,r,i,n){if(r>=this.retryOptions.maxTries)return on.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let s=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(n){for(let o of s)if(n.name.toUpperCase().includes(o)||n.message.toUpperCase().includes(o)||n.code&&n.code.toString().toUpperCase()===o)return on.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(i||n){let o=i?i.status:n?n.statusCode:0;if(!e&&o===404)return on.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return on.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(i&&i?.status>=400){let o=i.headers.get(tt.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')?(on.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,i){let n=0;if(e)switch(this.retryOptions.retryPolicyType){case ru.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case ru.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return on.info(`RetryPolicy: Delay for ${n}ms`),yQ(n,i,ZNt)}};var Rx=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new xx(e,r,this.retryOptions)}};var e1t="storageBrowserPolicy";function u1e(){return{name:e1t,async sendRequest(t,e){return Xt||((t.method==="GET"||t.method==="HEAD")&&(t.url=nA(t.url,Md.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(tt.COOKIE),t.headers.delete(tt.CONTENT_LENGTH)),e(t)}}}var t1t="StorageCorrectContentLengthPolicy";function l1e(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(tt.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:t1t,async sendRequest(e,r){return t(e),r(e)}}}var r1t="storageRetryPolicy",tC={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ru.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},i1t=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],n1t=new rc("The operation was aborted.");function f1e(t={}){let e=t.retryPolicyType??tC.retryPolicyType,r=t.maxTries??tC.maxTries,i=t.retryDelayInMs??tC.retryDelayInMs,n=t.maxRetryDelayInMs??tC.maxRetryDelayInMs,s=t.secondaryHost??tC.secondaryHost,o=t.tryTimeoutInMs??tC.tryTimeoutInMs;function a({isPrimaryRetry:u,attempt:l,response:f,error:h}){if(l>=r)return on.info(`RetryPolicy: Attempt(s) ${l} >= maxTries ${r}, no further try.`),!1;if(h){for(let d of i1t)if(h.name.toUpperCase().includes(d)||h.message.toUpperCase().includes(d)||h.code&&h.code.toString().toUpperCase()===d)return Line truncated
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),i=this.factory.computeHMACSHA256(r);return e.headers.set(rt.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${i}`),e}getHeaderValueToSign(e,r){let i=e.headers.get(r);return!i||r===rt.CONTENT_LENGTH&&i==="0"?"":i}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(n=>n.name.toLowerCase().startsWith(rt.PREFIX_FOR_STORAGE));r.sort((n,s)=>wQ(n.name.toLowerCase(),s.name.toLowerCase())),r=r.filter((n,s,a)=>!(s>0&&n.name.toLowerCase()===a[s-1].name.toLowerCase()));let i="";return r.forEach(n=>{i+=`${n.name.toLowerCase().trimRight()}:${n.value.trimLeft()}
`}),i}getCanonicalizedResourceString(e){let r=yQ(e.url)||"/",i="";i+=`/${this.factory.accountName}${r}`;let n=EQ(e.url),s={};if(n){let a=[];for(let c in n)if(Object.prototype.hasOwnProperty.call(n,c)){let u=c.toLowerCase();s[u]=n[c],a.push(u)}a.sort();for(let c of a)i+=`
${c}:${decodeURIComponent(s[c])}`}return i}};var ai=class extends Hy{static{o(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new xx(e,r,this)}computeHMACSHA256(e){return(0,u1e.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var an=wf("storage-common");var iu;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(iu||(iu={}));var oA={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:iu.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},e1t=new ic("The operation was aborted."),Rx=class extends vf{static{o(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,i=oA){super(e,r),this.retryOptions={retryPolicyType:i.retryPolicyType?i.retryPolicyType:oA.retryPolicyType,maxTries:i.maxTries&&i.maxTries>=1?Math.floor(i.maxTries):oA.maxTries,tryTimeoutInMs:i.tryTimeoutInMs&&i.tryTimeoutInMs>=0?i.tryTimeoutInMs:oA.tryTimeoutInMs,retryDelayInMs:i.retryDelayInMs&&i.retryDelayInMs>=0?Math.min(i.retryDelayInMs,i.maxRetryDelayInMs?i.maxRetryDelayInMs:oA.maxRetryDelayInMs):oA.retryDelayInMs,maxRetryDelayInMs:i.maxRetryDelayInMs&&i.maxRetryDelayInMs>=0?i.maxRetryDelayInMs:oA.maxRetryDelayInMs,secondaryHost:i.secondaryHost?i.secondaryHost:oA.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,i){let n=e.clone(),s=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||i%2===1;s||(n.url=gQ(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=sA(n.url,Fd.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(an.info(`RetryPolicy: =====> Try=${i} ${s?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(n),!this.shouldRetry(s,i,a))return a;r=r||!s&&a.status===404}catch(c){if(an.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(s,i,a,c))throw c}return await this.delay(s,i,e.abortSignal),this.attemptSendRequest(e,r,++i)}shouldRetry(e,r,i,n){if(r>=this.retryOptions.maxTries)return an.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let s=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(n){for(let a of s)if(n.name.toUpperCase().includes(a)||n.message.toUpperCase().includes(a)||n.code&&n.code.toString().toUpperCase()===a)return an.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(i||n){let a=i?i.status:n?n.statusCode:0;if(!e&&a===404)return an.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return an.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(i&&i?.status>=400){let a=i.headers.get(rt.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return n?.code==="PARSE_ERROR"&&n?.message.startsWith('Error "Error: Unclosed root tag')?(an.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,i){let n=0;if(e)switch(this.retryOptions.retryPolicyType){case iu.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case iu.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return an.info(`RetryPolicy: Delay for ${n}ms`),bQ(n,i,e1t)}};var Tx=class{static{o(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new Rx(e,r,this.retryOptions)}};var t1t="storageBrowserPolicy";function l1e(){return{name:t1t,async sendRequest(t,e){return Zt||((t.method==="GET"||t.method==="HEAD")&&(t.url=sA(t.url,Fd.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(rt.COOKIE),t.headers.delete(rt.CONTENT_LENGTH)),e(t)}}}o(l1e,"storageBrowserPolicy");var r1t="StorageCorrectContentLengthPolicy";function f1e(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(rt.CONTENT_LENGTH,Buffer.byteLength(e.body))}return o(t,"correctContentLength"),{name:r1t,async sendRequest(e,r){return t(e),r(e)}}}o(f1e,"storageCorrectContentLengthPolicy");var i1t="storageRetryPolicy",rC={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:iu.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},n1t=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],s1t=new ic("The operation was aborted.");function h1e(t={}){let e=t.retryPolicyType??rC.retryPolicyType,r=t.maxTries??rC.maxTries,i=t.retryDelayInMs??rC.retryDelayInMs,n=t.maxRetryDelayInMs??rC.maxRetryDelayInMs,s=t.secondaryHost??rC.secondaryHost,a=t.tryTimeoutInMs??rC.tryTimeoutInMs;function c({isPrimaryRetry:l,attempt:f,response:h,error:d}){if(f>=r)return Line truncated
`)+`
`+i(s)+n(s),a=(0,h1e.createHmac)("sha256",t.accountKey).update(o,"utf8").digest("base64");s.headers.set(tt.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(s,o){let a=s.headers.get(o);return!a||o===tt.CONTENT_LENGTH&&a==="0"?"":a}function i(s){let o=[];for(let[c,u]of s.headers)c.toLowerCase().startsWith(tt.PREFIX_FOR_STORAGE)&&o.push({name:c,value:u});o.sort((c,u)=>EQ(c.name.toLowerCase(),u.name.toLowerCase())),o=o.filter((c,u,l)=>!(u>0&&c.name.toLowerCase()===l[u-1].name.toLowerCase()));let a="";return o.forEach(c=>{a+=`${c.name.toLowerCase().trimRight()}:${c.value.trimLeft()}
`}),a}function n(s){let o=AQ(s.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=gQ(s.url),u={};if(c){let l=[];for(let f in c)if(Object.prototype.hasOwnProperty.call(c,f)){let h=f.toLowerCase();u[h]=c[f],l.push(h)}l.sort();for(let f of l)a+=`
${f}:${decodeURIComponent(u[f])}`}return a}return{name:s1t,async sendRequest(s,o){return e(s),o(s)}}}var o1t="storageRequestFailureDetailsParserPolicy";function d1e(){return{name:o1t,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 p1e=require("node:crypto"),bQ=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,p1e.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var wQ="12.31.0",CQ="2026-02-06";var IQ="https://storage.azure.com/.default",Fd={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var dl="",RJ="*",a1t=1*1024*1024;var c1t=4*a1t;var m1e="AES256",A1e="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",g1e=["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"],y1e=["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"],E1e="BlobUsesCustomerSpecifiedEncryption",b1e="BlobDoesNotUseCustomerSpecifiedEncryption",w1e=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Ud(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 Tx=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function xi(t,e={}){t||(t=new Ur);let r=new Tx([],e);return r._credential=t,r}function u1t(t){let e=[l1t,C1e,f1t,h1t,d1t,p1t,A1t];if(t.factories.length){let r=t.factories.filter(i=>!e.some(n=>n(i)));if(r.length){let i=r.some(n=>m1t(n));return{wrappedPolicies:nJ(r),afterRetry:i}}}}function TJ(t){let{httpClient:e,...r}=t.options,i=t._coreHttpClient;i||(i=e?sJ(e):_J(),t._coreHttpClient=i);let n=t._corePipeline;if(!n){let s=`azsdk-js-azure-storage-blob/${wQ}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${s}`:`${s}`;n=hx({...r,loggingOptions:{additionalAllowedHeaderNames:g1e,additionalAllowedQueryParameters:y1e,logger:lQ.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:uQ,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:BJ,serializerOptions:{xml:{xmlCharKey:"#"}}}}),n.removePolicy({phase:"Retry"}),n.removePolicy({name:PW}),n.addPolicy(l1e()),n.addPolicy(f1e(r.retryOptions),{phase:"Retry"}),n.addPolicy(d1e()),n.addPolicy(u1e());let a=u1t(t);a&&n.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=NJ(t);ic(c)?n.addPolicy(Jw({credential:c,scopes:r.audience??IQ Line truncated
`),s=e.computeHMACSHA256(n);return{sasQueryParameters:new yl(t.version,s,i,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 lDt(t,e){if(t=Ky(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=Gf.parse(t.permissions.toString()).toString():n=Hf.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?Zt(t.startsOn,!1):"",t.expiresOn?Zt(t.expiresOn,!1):"",Yy(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?gl(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new yl(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:s}}function fDt(t,e){if(t=Ky(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=Gf.parse(t.permissions.toString()).toString():n=Hf.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?Zt(t.startsOn,!1):"",t.expiresOn?Zt(t.expiresOn,!1):"",Yy(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?gl(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,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(s);return{sasQueryParameters:new yl(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:s}}function hDt(t,e){if(t=Ky(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=Gf.parse(t.permissions.toString()).toString():n=Hf.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?Zt(t.startsOn,!1):"",t.expiresOn?Zt(t.expiresOn,!1):"",Yy(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Zt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Zt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?gl(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new yl(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:s}}function dDt(t,e){if(t=Ky(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=Gf.parse(t.permissions.toString()).toString():n=Hf.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?Zt(t.startsOn,!1):"",t.expiresOn?Zt(t.expiresOn,!1):"",Yy(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Zt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Zt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?gl(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new yl(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:s}}function pDt(t,e){if(t=Ky(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=Gf.parse(t.permissions.toString()).toString():n=Hf.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?Zt(t.startsOn,!1):"",t.expiresOn?Zt(t.expiresOn,!1):"",Yy(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Zt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Zt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?gl(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new yl(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:s}}function mDt(t,e){if(t=Ky(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=Gf.parse(t.permissions.toString()).toString():n=Hf.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?Zt(t.startsOn,!1):"",t.expiresOn?Zt(t.expiresOn,!1):"",Yy(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Zt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Zt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?gl(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new yl(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:s}}function Yy(t,e,r){let i=[`/blob/${t}/${e}`];return r&&i.push(`/${r}`),i.join("")}function Ky(t){let e=t.version?t.version:CQ;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 Gx=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let i=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=i.container):(this._isContainer=!1,this._containerOrBlobOperation=i.blob),r||(r=$w()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==dl||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==dl||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 xe.withSpan("BlobLeaseClient-acquireLease",r,async i=>Fe(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:i.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==dl||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==dl||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 xe.withSpan("BlobLeaseClient-changeLease",r,async i=>{let n=Fe(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:i.tracingOptions}));return this._leaseId=e,n})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==dl||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==dl||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 xe.withSpan("BlobLeaseClient-releaseLease",e,async r=>Fe(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!==dl||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==dl||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 xe.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.ab 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"}};dC.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var tE=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"}};tE.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var Xx=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var BOt=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},bX=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),i=Date.now()-this.startTime,n=(e/(1024*1024)/(i/1e3)).toFixed(1);H(`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 BDe(t,e,r){return BOt(this,void 0,void 0,function*(){var i;let n=new El(t),s=n.getBlockBlobClient(),o=new bX((i=r?.archiveSizeBytes)!==null&&i!==void 0?i:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),Q(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);let c=yield s.uploadFile(e,a);if(c._response.status>=400)throw new _L(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw lr(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}var _De=O(require("buffer"),1),jf=O(require("fs"),1),xDe=O(require("stream"),1),RDe=O(require("util"),1);var xL=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};function RL(t){return t?t>=200&&t<300:!1}function vOt(t){return t?t>=500:!0}function _Ot(t){return t?[si.BadGateway,si.ServiceUnavailable,si.GatewayTimeout].includes(t):!1}function xOt(t){return xL(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function vDe(t,e,r){return xL(this,arguments,void 0,function*(i,n,s,o=ek,a=tk,c=void 0){let u="",l=1;for(;l<=o;){let f,h,d=!1;try{f=yield n()}catch(m){c&&(f=c(m)),d=!0,u=m.message}if(f&&(h=s(f),!vOt(h)))return f;if(h&&(d=_Ot(h),u=`Cache service responded with ${h}`),Q(`${i} - Attempt ${l} of ${o} failed with error: ${u}`),!d){Q(`${i} - Error is not retryable`);break}yield xOt(a),l++}throw Error(`${i} failed: ${u}`)})}function Zx(t,e){return xL(this,arguments,void 0,function*(r,i,n=ek,s=tk){return yield vDe(r,i,o=>o.statusCode,n,s,o=>{if(o instanceof Af)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function pC(t,e){return xL(this,arguments,void 0,function*(r,i,n=ek,s=tk){return yield vDe(r,i,o=>o.message.statusCode,n,s)})}var au=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};function ROt(t,e){return au(this,void 0,void 0,function*(){yield RDe.promisify(xDe.pipeline)(t.message,e)})}var TL=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,Q(`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),i=Date.now()-this.startTime,n=(e/(1024*1024)/(i/1e3)).toFixed(1);H(`Received ${e} of ${this.contentLength} (${r}%), ${n} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e= Line truncated
Other caches with similar key:`);for(let a of s?.artifactCaches||[])Q(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function SX(t,e,r){return pa(this,void 0,void 0,function*(){let i=new FDe.URL(t),n=ODe(r);i.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield NDe(t,e,n):n.concurrentBlobDownloads?yield TDe(t,e,n):yield NL(t,e):yield NL(t,e)})}function qDe(t,e,r){return pa(this,void 0,void 0,function*(){let i=IX(),n=Mw(e,r?.compressionMethod,r?.enableCrossOsArchive),s={key:t,version:n,cacheSize:r?.cacheSize};return yield Zx("reserveCache",()=>pa(this,void 0,void 0,function*(){return i.postJson(tR("caches"),s)}))})}function MDe(t,e){return`bytes ${t}-${e}/*`}function LOt(t,e,r,i,n){return pa(this,void 0,void 0,function*(){Q(`Uploading chunk of size ${n-i+1} bytes at offset ${i} with content range: ${MDe(i,n)}`);let s={"Content-Type":"application/octet-stream","Content-Range":MDe(i,n)},o=yield pC(`uploadChunk (start: ${i}, end: ${n})`,()=>pa(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),s)}));if(!RL(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function MOt(t,e,r,i){return pa(this,void 0,void 0,function*(){let n=mf(r),s=tR(`caches/${e.toString()}`),o=mC.openSync(r,"r"),a=wX(i),c=z$("uploadConcurrency",a.uploadConcurrency),u=z$("uploadChunkSize",a.uploadChunkSize),l=[...new Array(c).keys()];Q("Awaiting all uploads");let f=0;try{yield Promise.all(l.map(()=>pa(this,void 0,void 0,function*(){for(;f<n;){let h=Math.min(n-f,u),d=f,m=f+h-1;f+=u,yield LOt(t,s,()=>mC.createReadStream(r,{fd:o,start:d,end:m,autoClose:!1}).on("error",A=>{throw new Error(`Cache upload failed because file read failed with ${A.message}`)}),d,m)}})))}finally{mC.closeSync(o)}})}function FOt(t,e,r){return pa(this,void 0,void 0,function*(){let i={size:r};return yield Zx("commitCache",()=>pa(this,void 0,void 0,function*(){return t.postJson(tR(`caches/${e.toString()}`),i)}))})}function BX(t,e,r,i){return pa(this,void 0,void 0,function*(){if(wX(i).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield BDe(r,e,i)}else{let s=IX();Q("Upload cache"),yield MOt(s,t,e,i),Q("Commiting cache");let o=mf(e);H(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield FOt(s,t,o);if(!RL(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);H("Cache saved successfully")}})}var kOe=O(xOe(),1),Ni=O(Ti(),1),cc=O(Ti(),1),oE=O(Ti(),1),aE=O(Ti(),1),cE=O(Ti(),1);var EZ=O(Ti(),1),bZ=O(Ti(),1),DOe=O(Ti(),1),OOe=O(Ti(),1),POe=O(Ti(),1);var AZ=O(Ti(),1),gZ=O(Ti(),1),ROe=O(Ti(),1),TOe=O(Ti(),1),NOe=O(Ti(),1),yZ=class extends NOe.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,TOe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,ROe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,i,n){let s=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:s.scope=e.string();break;case 2:s.permission=e.int64().toString();break;default:let u=i.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let l=e.skip(c);u!==!1&&(u===!0?gZ.UnknownFieldHandler.onRead:u)(this.typeName,s,a,c,l)}}return s}internalBinaryWrite(e,r,i){e.scope!==""&&r.tag(1,AZ.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,AZ.WireType.Varint).int64(e.permission);let n=i.writeUnknownFields;return n!==!1&&(n==!0?gZ.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},yM=new yZ;var wZ=class extends POe.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:()=>yM}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,OOe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,DOe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,i,n){let s=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:s.repositoryId=e.int64().toString();break;case 2:s.scope.push(yM.internalBinaryRead(e,e.uint32(),i));break;default:let u=i.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let l=e.skip(c);u!==!1&&(u===!0?bZ.UnknownFieldHandler.onRead:u)(this.typeName,s,a,c,l)}}return s}internalBinaryWrite(e,r,i){e.repositoryId!=="0"&&r.tag(1,EZ.WireType.Varint).int64(e.repositoryId);for(let s=0;s<e.scope.length;s++)yM.internalBinaryWrite(e.scope[s],r.tag(2,EZ.WireType.LengthDelimited).fork(),i).join();let n=i.writeUnknownFields;return n!==!1&&(n==!0?bZ.UnknownFieldHandler.onWrite:n)(this.type Line truncated
`));let i=yield QZ(r,"create");yield LZ(i,t)})}var DC=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},Cl=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},NC=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},CM=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function FOe(t){if(!t||t.length===0)throw new Cl("Path Validation Error: At least one directory or file path is required")}function UZ(t){if(t.length>512)throw new Cl(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Cl(`Key Validation Error: ${t} cannot contain commas.`)}function qZ(){return eR()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function UOe(t,e,r,i){return DC(this,arguments,void 0,function*(n,s,o,a,c=!1){let u=eR();return Q(`Cache service version: ${u}`),FOe(n),u==="v2"?yield eQt(n,s,o,a,c):yield Zkt(n,s,o,a,c)})}function Zkt(t,e,r,i){return DC(this,arguments,void 0,function*(n,s,o,a,c=!1){o=o||[];let u=[s,...o];if(Q("Resolved Keys:"),Q(JSON.stringify(u)),u.length>10)throw new Cl("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of u)UZ(h);let l=yield X_(),f="";try{let h=yield UDe(u,n,{compressionMethod:l,enableCrossOsArchive:c});if(!h?.archiveLocation)return;if(a?.lookupOnly)return H("Lookup only - skipping download"),h.cacheKey;f=gR.join(yield Y_(),Ym(l)),Q(`Archive Path: ${f}`),yield SX(h.archiveLocation,f,a),Sy()&&(yield AR(f,l));let d=mf(f);return H(`Cache Size: ~${Math.round(d/(1024*1024))} MB (${d} B)`),yield MZ(f,l),H("Cache restored successfully"),h.cacheKey}catch(h){let d=h;if(d.name===Cl.name)throw h;d instanceof Af&&typeof d.statusCode=="number"&&d.statusCode>=500?vw(`Failed to restore: ${h.message}`):lr(`Failed to restore: ${h.message}`)}finally{try{yield K_(f)}catch(h){Q(`Failed to delete archive: ${h}`)}}})}function eQt(t,e,r,i){return DC(this,arguments,void 0,function*(n,s,o,a,c=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let u=[s,...o];if(Q("Resolved Keys:"),Q(JSON.stringify(u)),u.length>10)throw new Cl("Key Validation Error: Keys are limited to a maximum of 10.");for(let f of u)UZ(f);let l="";try{let f=kZ(),h=yield X_(),d={key:s,restoreKeys:o,version:Mw(n,h,c)},m=yield f.GetCacheEntryDownloadURL(d);if(!m.ok){Q(`Cache not found for version ${d.version} of keys: ${u.join(", ")}`);return}if(d.key!==m.matchedKey?H(`Cache hit for restore-key: ${m.matchedKey}`):H(`Cache hit for: ${m.matchedKey}`),a?.lookupOnly)return H("Lookup only - skipping download"),m.matchedKey;l=gR.join(yield Y_(),Ym(h)),Q(`Archive path: ${l}`),Q(`Starting download of archive to: ${l}`),yield SX(m.signedDownloadUrl,l,a);let y=mf(l);return H(`Cache Size: ~${Math.round(y/(1024*1024))} MB (${y} B)`),Sy()&&(yield AR(l,h)),yield MZ(l,h),H("Cache restored successfully"),m.matchedKey}catch(f){let h=f;if(h.name===Cl.name)throw f;h instanceof Af&&typeof h.statusCode=="number"&&h.statusCode>=500?vw(`Failed to restore: ${f.message}`):lr(`Failed to restore: ${f.message}`)}finally{try{l&&(yield K_(l))}catch(f){Q(`Failed to delete archive: ${f}`)}}})}function GZ(t,e,r){return DC(this,arguments,void 0,function*(i,n,s,o=!1){let a=eR();return Q(`Cache service version: ${a}`),FOe(i),UZ(n),a==="v2"?yield rQt(i,n,s,o):yield tQt(i,n,s,o)})}function tQt(t,e,r){return DC(this,arguments,void 0,function*(i,n,s,o=!1){var a,c,u,l,f;let h=yield X_(),d=-1,m=yield V$(i);if(Q("Cache Paths:"),Q(`${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 A=yield Y_(),y=gR.join(A,Ym(h));Q(`Archive Path: ${y}`);try{yield FZ(A,m,h),Sy()&&(yield AR(y,h));let g=10*1024*1024*1024,E=mf(y);if(Q(`File Size: ${E}`),E>g&&!CX())throw new Error(`Cache size of ~${Math.round(E/(1024*1024))} MB (${E} B) is over the 10GB limit, not saving cache.`);Q("Reserving Cache");let C=yield qDe(n,i,{compressionMethod:h,enableCrossOsArchive:o,cacheSize:E});if(!((a=C?.result)===null||a===void 0)&&a.cacheId)d=(c=C?.result)===null||c===void 0?void 0:c.cacheId;else throw C?.statusCode===400?new Error((l=(u=C?.error)===null||u===void 0?void 0:u.message)!==null&&l!==void 0?l:`Cache size of ~${Math.round(E/(1024*1024))} MB (${E} B) is over the data cap limit, not saving cache.`):new NC(`Unable to reserve cache with key ${n}, another job may be creating this cache. More details: ${(f=C?.error)===null||f===void 0?void 0:f.message}`);Q(`Saving Cache (ID: ${d})`),yield BX(d,y,"",s)}catch(g){let E=g;if(E.name===Cl.name)throw g;E.name===NC.name Line truncated
`,o).length:f,u?(a===null?0:a.length)+c.length:0,u?c.length+f:0);return h<d},parse:function(i,n,s,o){let{bom:a,comment_no_infix:c,encoding:u,from_line:l,ltrim:f,max_record_size:h,raw:d,relax_quotes:m,rtrim:A,skip_empty_lines:y,to:g,to_line:E}=this.options,{comment:C,escape:S,quote:N,record_delimiter:L}=this.options,{bomSkipped:T,previousBuf:j,rawBuffer:D,escapeIsQuote:V}=this.state,M;if(j===void 0)if(i===void 0){o();return}else M=i;else j!==void 0&&i===void 0?M=j:M=Buffer.concat([j,i]);if(T===!1)if(a===!1)this.state.bomSkipped=!0;else if(M.length<3){if(n===!1){this.state.previousBuf=M;return}}else{for(let Ne in $C)if($C[Ne].compare(M,0,$C[Ne].length)===0){let he=$C[Ne].length;this.state.bufBytesStart+=he,M=M.slice(he);let ke=hte({...this.original_options,encoding:Ne});for(let X in ke)this.options[X]=ke[X];({comment:C,escape:S,quote:N}=this.options);break}this.state.bomSkipped=!0}let Z=M.length,J;for(J=0;J<Z&&!this.__needMoreData(J,Z,n);J++){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&&L.length===0&&this.__autoDiscoverRecordDelimiter(M,J)&&(L=this.options.record_delimiter);let Ne=M[J];if(d===!0&&D.append(Ne),(Ne===v3t||Ne===_3t)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(S!==null&&this.state.quoting===!0&&this.__isEscape(M,J,Ne)&&J+S.length<Z)if(V){if(this.__isQuote(M,J+S.length)){this.state.escaping=!0,J+=S.length-1;continue}}else{this.state.escaping=!0,J+=S.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(M,J))if(this.state.quoting===!0){let X=M[J+N.length],Re=A&&this.__isCharTrimable(M,J+N.length),Ce=C!==null&&this.__compareBytes(C,M,J+N.length,X),xt=this.__isDelimiter(M,J+N.length,X),Lt=L.length===0?this.__autoDiscoverRecordDelimiter(M,J+N.length):this.__isRecordDelimiter(X,M,J+N.length);if(S!==null&&this.__isEscape(M,J,Ne)&&this.__isQuote(M,J+S.length))J+=S.length-1;else if(!X||xt||Lt||Ce||Re){this.state.quoting=!1,this.state.wasQuoting=!0,J+=N.length-1;continue}else if(m===!1){let rn=this.__error(new Ht("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(X)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(rn!==void 0)return rn}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(N),J+=N.length-1}else if(this.state.field.length!==0){if(m===!1){let X=this.__infoField(),Re=Object.keys($C).map(xt=>$C[xt].equals(this.state.field.toString())?xt:!1).filter(Boolean)[0],Ce=this.__error(new Ht("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(X.column)} at line ${X.lines}, value is ${JSON.stringify(this.state.field.toString(u))}`,Re?`(${Re} bom)`:void 0],this.options,X,{field:this.state.field}));if(Ce!==void 0)return Ce}}else{this.state.quoting=!0,J+=N.length-1;continue}if(this.state.quoting===!1){let X=this.__isRecordDelimiter(Ne,M,J);if(X!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=l){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),J+=X-1;continue}if(y===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,J+=X-1;continue}this.info.bytes=this.state.bufBytesStart+J;let xt=this.__onField();if(xt!==void 0)return xt;this.info.bytes=this.state.bufBytesStart+J+X;let Lt=this.__onRecord(s);if(Lt!==void 0)return Lt;if(g!==-1&&this.info.records>=g){this.state.stop=!0,o();return}}this.state.commenting=!1,J+=X-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,M,J,Ne)!==0){this.state.commenting=!0;continue}let Re=this.__isDelimiter(M,J,Ne);if(Re!==0){this.info.bytes=this.state.bufBytesStart+J;let Ce=this.__onField();if(Ce!==void 0)return Ce;J+=Re-1;continue}}}if(this.state.commenting===!1&&h!==0&&this.state.record_length+this.state.field.length>h)return this.__error(new Ht("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${h}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let he=f===!1||this.state.quoting===!0||this.state.field.length!==0||!this.__isCharTrimable(M,J),ke=A===!1||this.state.wasQuoting===!1;if(he===!0&&ke===!0)this.state.field.append(Ne);else{if(A===!0&&!this.__isCharTrimable(M,J))return this.__error(new Ht("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()));he===!1&&(J+=this.__isCharTrimable(M,J)-1);continue}}if(n===!0)if(this.state.quoting===!0){le Line truncated
`+i(s)+n(s),c=(0,d1e.createHmac)("sha256",t.accountKey).update(a,"utf8").digest("base64");s.headers.set(rt.AUTHORIZATION,`SharedKey ${t.accountName}:${c}`)}o(e,"signRequest");function r(s,a){let c=s.headers.get(a);return!c||a===rt.CONTENT_LENGTH&&c==="0"?"":c}o(r,"getHeaderValueToSign");function i(s){let a=[];for(let[u,l]of s.headers)u.toLowerCase().startsWith(rt.PREFIX_FOR_STORAGE)&&a.push({name:u,value:l});a.sort((u,l)=>wQ(u.name.toLowerCase(),l.name.toLowerCase())),a=a.filter((u,l,f)=>!(l>0&&u.name.toLowerCase()===f[l-1].name.toLowerCase()));let c="";return a.forEach(u=>{c+=`${u.name.toLowerCase().trimRight()}:${u.value.trimLeft()}
`}),c}o(i,"getCanonicalizedHeadersString");function n(s){let a=yQ(s.url)||"/",c="";c+=`/${t.accountName}${a}`;let u=EQ(s.url),l={};if(u){let f=[];for(let h in u)if(Object.prototype.hasOwnProperty.call(u,h)){let d=h.toLowerCase();l[d]=u[h],f.push(d)}f.sort();for(let h of f)c+=`
${h}:${decodeURIComponent(l[h])}`}return c}return o(n,"getCanonicalizedResourceString"),{name:o1t,async sendRequest(s,a){return e(s),a(s)}}}o(RJ,"storageSharedKeyCredentialPolicy");var a1t="storageRequestFailureDetailsParserPolicy";function p1e(){return{name:a1t,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
`),r}}}}o(p1e,"storageRequestFailureDetailsParserPolicy");var m1e=require("node:crypto");var CQ=class{static{o(this,"UserDelegationKeyCredential")}accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,m1e.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var IQ="12.31.0",SQ="2026-02-06";var BQ="https://storage.azure.com/.default",Ud={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var pl="",TJ="*",c1t=1*1024*1024;var u1t=4*c1t;var A1e="AES256",g1e="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",y1e=["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"],E1e=["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"],b1e="BlobUsesCustomerSpecifiedEncryption",w1e="BlobDoesNotUseCustomerSpecifiedEncryption",C1e=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function qd(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}o(qd,"isPipelineLike");var Nx=class{static{o(this,"Pipeline")}factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Ri(t,e={}){t||(t=new qr);let r=new Nx([],e);return r._credential=t,r}o(Ri,"newPipeline");function l1t(t){let e=[f1t,I1e,h1t,d1t,p1t,m1t,g1t];if(t.factories.length){let r=t.factories.filter(i=>!e.some(n=>n(i)));if(r.length){let i=r.some(n=>A1t(n));return{wrappedPolicies:sJ(r),afterRetry:i}}}}o(l1t,"processDownlevelPipeline");function NJ(t){let{httpClient:e,...r}=t.options,i=t._coreHttpClient;i||(i=e?oJ(e):xJ(),t._coreHttpClient=i);let n=t._corePipeline;if(!n){let s=`azsdk-js-azure-storage-blob/${IQ}`,a=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${s}`:`${s}`;n=dx({...r,loggingOptions:{additionalAllowedHeaderNames:y1e,additionalAllowedQueryParameters:E1e,logger:hQ.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:fQ,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:vJ,serializerOptions:{xml:{xmlCharKey:"#"}}}}),n.removePolicy({phase:"Retry"}),n.removePolicy({name:kW}),n.addPolicy(f1e()),n.addPolicy(h1e(r.retryOptions),{phase:"R Line truncated
`),s=e.computeHMACSHA256(n);return{sasQueryParameters:new El(t.version,s,i,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}}o(lDt,"generateBlobSASQueryParameters20150405");function fDt(t,e){if(t=Xy(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=Hf.parse(t.permissions.toString()).toString():n=jf.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?er(t.startsOn,!1):"",t.expiresOn?er(t.expiresOn,!1):"",Ky(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?yl(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new El(t.version,a,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}o(fDt,"generateBlobSASQueryParameters20181109");function hDt(t,e){if(t=Xy(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=Hf.parse(t.permissions.toString()).toString():n=jf.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?er(t.startsOn,!1):"",t.expiresOn?er(t.expiresOn,!1):"",Ky(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?yl(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new El(t.version,a,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:s}}o(hDt,"generateBlobSASQueryParameters20201206");function dDt(t,e){if(t=Xy(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=Hf.parse(t.permissions.toString()).toString():n=jf.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?er(t.startsOn,!1):"",t.expiresOn?er(t.expiresOn,!1):"",Ky(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?er(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?er(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?yl(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new El(t.version,a,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:s}}o(dDt,"generateBlobSASQueryParametersUDK20181109");function pDt(t,e){if(t=Xy(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=Hf.parse(t.permissions.toString()).toString():n=jf.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?er(t.startsOn,!1):"",t.expiresOn?er(t.expiresOn,!1):"",Ky(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?er(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?er(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?yl(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new El(t.version,a,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:s}}o(pDt,"generateBlobSASQueryParametersUDK20200210");function mDt(t,e){if(t=Xy(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=Hf.parse(t.permissions.toString()).toString():n=jf.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?er(t.startsOn,!1):"",t.expiresOn?er(t.expiresOn,!1):"",Ky(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?er(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?er(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?yl(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new El(t.version,a,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:s}}o(mDt,"generateBlobSASQueryParametersUDK20201206");function ADt(t,e){if(t=Xy(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=Hf.parse(t.permissions.toString()).toString():n=jf.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?er(t.startsOn,!1):"",t.expiresOn?er(t.expiresOn,!1):"",Ky(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?er(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?er(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?yl(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new El(t.version,a,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:s}}o(ADt,"generateBlobSASQueryParametersUDK20250705");function Ky(t,e,r){let i=[`/blob/${t}/${e}`];return r&&i.push(`/${r}`),i.join("")}o(Ky,"getCanonicalName");function Xy(t){let e=t.version?t.version:SQ;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}o(Xy,"SASSignatureValuesSanityCheckAndAutofill");var Hx=class{static{o(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let i=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=i.container):(this._isContainer=!1,this._containerOrBlobOperation=i.blob),r||(r=Ww()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==pl||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==pl||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 Re.withSpan("BlobLeaseClient-acquireLease",r,async i=>Ue(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:i.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==pl||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==pl||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 Re.withSpan("BlobLeaseClient-changeLease",r,async i=>{let n=Ue(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:i.tracingOptions}));return this._leaseId=e,n})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==pl||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==pl||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 Re.withSpan("BlobLeaseClient-releaseLease",e,async r=>Ue(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!==pl||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==pl||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 val 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"}};pC.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var rE=class extends Error{static{o(this,"UsageError")}constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};rE.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var Zx=class extends Error{static{o(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var vOt=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function u(f){try{l(i.throw(f))}catch(h){a(h)}}o(u,"rejected");function l(f){f.done?s(f.value):n(f.value).then(c,u)}o(l,"step"),l((i=i.apply(t,e||[])).next())})},wX=class{static{o(this,"UploadProgress")}constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),i=Date.now()-this.startTime,n=(e/(1024*1024)/(i/1e3)).toFixed(1);j(`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=o(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))},"displayCallback");this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function vDe(t,e,r){return vOt(this,void 0,void 0,function*(){var i;let n=new bl(t),s=n.getBlockBlobClient(),a=new wX((i=r?.archiveSizeBytes)!==null&&i!==void 0?i:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),L(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);let u=yield s.uploadFile(e,c);if(u._response.status>=400)throw new RL(`uploadCacheArchiveSDK: upload failed with status code ${u._response.status}`);return u}catch(u){throw fr(`uploadCacheArchiveSDK: internal error uploading cache archive: ${u.message}`),u}finally{a.stopDisplayTimer()}})}o(vDe,"uploadCacheArchiveSDK");var xDe=P(require("buffer"),1),Vf=P(require("fs"),1),RDe=P(require("stream"),1),TDe=P(require("util"),1);var TL=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function u(f){try{l(i.throw(f))}catch(h){a(h)}}o(u,"rejected");function l(f){f.done?s(f.value):n(f.value).then(c,u)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};function NL(t){return t?t>=200&&t<300:!1}o(NL,"isSuccessStatusCode");function _Ot(t){return t?t>=500:!0}o(_Ot,"isServerErrorStatusCode");function xOt(t){return t?[oi.BadGateway,oi.ServiceUnavailable,oi.GatewayTimeout].includes(t):!1}o(xOt,"isRetryableStatusCode");function ROt(t){return TL(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(ROt,"sleep");function _De(t,e,r){return TL(this,arguments,void 0,function*(i,n,s,a=rk,c=ik,u=void 0){let l="",f=1;for(;f<=a;){let h,d,p=!1;try{h=yield n()}catch(A){u&&(h=u(A)),p=!0,l=A.message}if(h&&(d=s(h),!_Ot(d)))return h;if(d&&(p=xOt(d),l=`Cache service responded with ${d}`),L(`${i} - Attempt ${f} of ${a} failed with error: ${l}`),!p){L(`${i} - Error is not retryable`);break}yield ROt(c),f++}throw Error(`${i} failed: ${l}`)})}o(_De,"retry");function eR(t,e){return TL(this,arguments,void 0,function*(r,i,n=rk,s=ik){return yield _De(r,i,a=>a.statusCode,n,s,a=>{if(a instanceof gf)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}o(eR,"retryTypedResponse");function mC(t,e){return TL(this,arguments,void 0,function*(r,i,n=rk,s=ik){return yield _De(r,i,a=>a.message.statusCode,n,s)})}o(mC,"retryHttpClientResponse");var cu=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function u(f){try{l(i.throw(f))}catch(h){a(h)}}o(u,"rejected");function l(f){f.done?s(f.value):n(f.value).then(c,u)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};function TOt(t,e){return cu(this,void 0,void 0,function*(){yield TDe.promisify(RDe.pipeline)(t.message,e)})}o(TOt,"pipeResponseToStream");var DL=class{static{o(this,"DownloadProgress")}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,L(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){th Line truncated
Other caches with similar key:`);for(let c of s?.artifactCaches||[])L(`Cache Key: ${c?.cacheKey}, Cache Version: ${c?.cacheVersion}, Cache Scope: ${c?.scope}, Cache Created: ${c?.creationTime}`)}}})}o(LOt,"printCachesListForDiagnostics");function BX(t,e,r){return ma(this,void 0,void 0,function*(){let i=new UDe.URL(t),n=PDe(r);i.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield DDe(t,e,n):n.concurrentBlobDownloads?yield NDe(t,e,n):yield OL(t,e):yield OL(t,e)})}o(BX,"downloadCache");function GDe(t,e,r){return ma(this,void 0,void 0,function*(){let i=SX(),n=Fw(e,r?.compressionMethod,r?.enableCrossOsArchive),s={key:t,version:n,cacheSize:r?.cacheSize};return yield eR("reserveCache",()=>ma(this,void 0,void 0,function*(){return i.postJson(rR("caches"),s)}))})}o(GDe,"reserveCache");function FDe(t,e){return`bytes ${t}-${e}/*`}o(FDe,"getContentRange");function MOt(t,e,r,i,n){return ma(this,void 0,void 0,function*(){L(`Uploading chunk of size ${n-i+1} bytes at offset ${i} with content range: ${FDe(i,n)}`);let s={"Content-Type":"application/octet-stream","Content-Range":FDe(i,n)},a=yield mC(`uploadChunk (start: ${i}, end: ${n})`,()=>ma(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),s)}));if(!NL(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}o(MOt,"uploadChunk");function FOt(t,e,r,i){return ma(this,void 0,void 0,function*(){let n=Af(r),s=rR(`caches/${e.toString()}`),a=AC.openSync(r,"r"),c=CX(i),u=$$("uploadConcurrency",c.uploadConcurrency),l=$$("uploadChunkSize",c.uploadChunkSize),f=[...new Array(u).keys()];L("Awaiting all uploads");let h=0;try{yield Promise.all(f.map(()=>ma(this,void 0,void 0,function*(){for(;h<n;){let d=Math.min(n-h,l),p=h,A=h+d-1;h+=l,yield MOt(t,s,()=>AC.createReadStream(r,{fd:a,start:p,end:A,autoClose:!1}).on("error",g=>{throw new Error(`Cache upload failed because file read failed with ${g.message}`)}),p,A)}})))}finally{AC.closeSync(a)}})}o(FOt,"uploadFile");function UOt(t,e,r){return ma(this,void 0,void 0,function*(){let i={size:r};return yield eR("commitCache",()=>ma(this,void 0,void 0,function*(){return t.postJson(rR(`caches/${e.toString()}`),i)}))})}o(UOt,"commitCache");function vX(t,e,r,i){return ma(this,void 0,void 0,function*(){if(CX(i).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield vDe(r,e,i)}else{let s=SX();L("Upload cache"),yield FOt(s,t,e,i),L("Commiting cache");let a=Af(e);j(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield UOt(s,t,a);if(!NL(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);j("Cache saved successfully")}})}o(vX,"saveCache");var QOe=P(ROe(),1),Di=P(Ni(),1),uc=P(Ni(),1),aE=P(Ni(),1),cE=P(Ni(),1),uE=P(Ni(),1);var bZ=P(Ni(),1),wZ=P(Ni(),1),OOe=P(Ni(),1),POe=P(Ni(),1),kOe=P(Ni(),1);var gZ=P(Ni(),1),yZ=P(Ni(),1),TOe=P(Ni(),1),NOe=P(Ni(),1),DOe=P(Ni(),1);var EZ=class extends DOe.MessageType{static{o(this,"CacheScope$Type")}constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,NOe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,TOe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,i,n){let s=n??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,u]=e.tag();switch(c){case 1:s.scope=e.string();break;case 2:s.permission=e.int64().toString();break;default:let l=i.readUnknownField;if(l==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${u}) for ${this.typeName}`);let f=e.skip(u);l!==!1&&(l===!0?yZ.UnknownFieldHandler.onRead:l)(this.typeName,s,c,u,f)}}return s}internalBinaryWrite(e,r,i){e.scope!==""&&r.tag(1,gZ.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,gZ.WireType.Varint).int64(e.permission);let n=i.writeUnknownFields;return n!==!1&&(n==!0?yZ.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},bM=new EZ;var CZ=class extends kOe.MessageType{static{o(this,"CacheMetadata$Type")}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:o(()=>bM,"T")}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,POe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,OOe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,i,n){let s=n??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,u]=e.tag();switch(c){case 1:s.repositoryId=e.int64().toString();break;case 2:s.scope.push(bM.internalBinaryRead(e,e.uint32(),i));break;default:let l=i.readUnknownField;if(l==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${u}) for ${this.typeName}`);let f=e.skip(u);l!==!1&&(l===!0?wZ.UnknownFieldHandler.onRead:l)(this.typeName,s,c,u,f)}}return s}internalBinaryWrite(e,r,i){e.repositoryId!== Line truncated
`));let i=yield LZ(r,"create");yield MZ(i,t)})}o(UZ,"createTar");var OC=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function u(f){try{l(i.throw(f))}catch(h){a(h)}}o(u,"rejected");function l(f){f.done?s(f.value):n(f.value).then(c,u)}o(l,"step"),l((i=i.apply(t,e||[])).next())})},Il=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},DC=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},SM=class t extends Error{static{o(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function UOe(t){if(!t||t.length===0)throw new Il("Path Validation Error: At least one directory or file path is required")}o(UOe,"checkPaths");function qZ(t){if(t.length>512)throw new Il(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Il(`Key Validation Error: ${t} cannot contain commas.`)}o(qZ,"checkKey");function GZ(){return tR()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}o(GZ,"isFeatureAvailable");function qOe(t,e,r,i){return OC(this,arguments,void 0,function*(n,s,a,c,u=!1){let l=tR();return L(`Cache service version: ${l}`),UOe(n),l==="v2"?yield tQt(n,s,a,c,u):yield eQt(n,s,a,c,u)})}o(qOe,"restoreCache");function eQt(t,e,r,i){return OC(this,arguments,void 0,function*(n,s,a,c,u=!1){a=a||[];let l=[s,...a];if(L("Resolved Keys:"),L(JSON.stringify(l)),l.length>10)throw new Il("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of l)qZ(d);let f=yield Z_(),h="";try{let d=yield qDe(l,n,{compressionMethod:f,enableCrossOsArchive:u});if(!d?.archiveLocation)return;if(c?.lookupOnly)return j("Lookup only - skipping download"),d.cacheKey;h=yR.join(yield K_(),Km(f)),L(`Archive Path: ${h}`),yield BX(d.archiveLocation,h,c),By()&&(yield gR(h,f));let p=Af(h);return j(`Cache Size: ~${Math.round(p/(1024*1024))} MB (${p} B)`),yield FZ(h,f),j("Cache restored successfully"),d.cacheKey}catch(d){let p=d;if(p.name===Il.name)throw d;p instanceof gf&&typeof p.statusCode=="number"&&p.statusCode>=500?_w(`Failed to restore: ${d.message}`):fr(`Failed to restore: ${d.message}`)}finally{try{yield X_(h)}catch(d){L(`Failed to delete archive: ${d}`)}}})}o(eQt,"restoreCacheV1");function tQt(t,e,r,i){return OC(this,arguments,void 0,function*(n,s,a,c,u=!1){c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let l=[s,...a];if(L("Resolved Keys:"),L(JSON.stringify(l)),l.length>10)throw new Il("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of l)qZ(h);let f="";try{let h=QZ(),d=yield Z_(),p={key:s,restoreKeys:a,version:Fw(n,d,u)},A=yield h.GetCacheEntryDownloadURL(p);if(!A.ok){L(`Cache not found for version ${p.version} of keys: ${l.join(", ")}`);return}if(p.key!==A.matchedKey?j(`Cache hit for restore-key: ${A.matchedKey}`):j(`Cache hit for: ${A.matchedKey}`),c?.lookupOnly)return j("Lookup only - skipping download"),A.matchedKey;f=yR.join(yield K_(),Km(d)),L(`Archive path: ${f}`),L(`Starting download of archive to: ${f}`),yield BX(A.signedDownloadUrl,f,c);let E=Af(f);return j(`Cache Size: ~${Math.round(E/(1024*1024))} MB (${E} B)`),By()&&(yield gR(f,d)),yield FZ(f,d),j("Cache restored successfully"),A.matchedKey}catch(h){let d=h;if(d.name===Il.name)throw h;d instanceof gf&&typeof d.statusCode=="number"&&d.statusCode>=500?_w(`Failed to restore: ${h.message}`):fr(`Failed to restore: ${h.message}`)}finally{try{f&&(yield X_(f))}catch(h){L(`Failed to delete archive: ${h}`)}}})}o(tQt,"restoreCacheV2");function HZ(t,e,r){return OC(this,arguments,void 0,function*(i,n,s,a=!1){let c=tR();return L(`Cache service version: ${c}`),UOe(i),qZ(n),c==="v2"?yield iQt(i,n,s,a):yield rQt(i,n,s,a)})}o(HZ,"saveCache");function rQt(t,e,r){return OC(this,arguments,void 0,function*(i,n,s,a=!1){var c,u,l,f,h;let d=yield Z_(),p=-1,A=yield z$(i);if(L("Cache Paths:"),L(`${JSON.stringify(A)}`),A.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let g=yield K_(),E=yR.join(g,Km(d));L(`Archive Path: ${E}`);try{yield UZ(g,A,d),By()&&(yield gR(E,d));let y=10*1024*1024*1024,b=Af(E);if(L(`File Size: ${b}`),b>y&&!IX())throw new Error(`Cache size of ~${Math.round(b/(1024*1024))} MB (${b} B) is over the 10GB limit, not saving cache.`);L("Reserving Cache");let I=yield GDe(n,i,{compressionMethod:d,enableCrossOsArchive:a,cacheSize:b});if(!((c=I?.result)===null||c===void 0)&&c.cacheId)p=(u=I?.result)===null||u===void 0?void 0:u.cacheId;else throw I?.statusCode===400?new Error((f=(l=I?.error)===null||l===void 0?void 0:l.message)!==null&&f!==void 0?f:`Cache size of ~${Math.round(b/(1024*Line truncated
`,a).length:h,l?(c===null?0:c.length)+u.length:0,l?u.length+h:0);return d<p},"__needMoreData"),parse:o(function(i,n,s,a){let{bom:c,comment_no_infix:u,encoding:l,from_line:f,ltrim:h,max_record_size:d,raw:p,relax_quotes:A,rtrim:g,skip_empty_lines:E,to:y,to_line:b}=this.options,{comment:I,escape:B,quote:D,record_delimiter:M}=this.options,{bomSkipped:N,previousBuf:V,rawBuffer:O,escapeIsQuote:z}=this.state,F;if(V===void 0)if(i===void 0){a();return}else F=i;else V!==void 0&&i===void 0?F=V:F=Buffer.concat([V,i]);if(N===!1)if(c===!1)this.state.bomSkipped=!0;else if(F.length<3){if(n===!1){this.state.previousBuf=F;return}}else{for(let De in WC)if(WC[De].compare(F,0,WC[De].length)===0){let de=WC[De].length;this.state.bufBytesStart+=de,F=F.slice(de);let Qe=dte({...this.original_options,encoding:De});for(let Z in Qe)this.options[Z]=Qe[Z];({comment:I,escape:B,quote:D}=this.options);break}this.state.bomSkipped=!0}let ee=F.length,Y;for(Y=0;Y<ee&&!this.__needMoreData(Y,ee,n);Y++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),b!==-1&&this.info.lines>b){this.state.stop=!0,a();return}this.state.quoting===!1&&M.length===0&&this.__autoDiscoverRecordDelimiter(F,Y)&&(M=this.options.record_delimiter);let De=F[Y];if(p===!0&&O.append(De),(De===_3t||De===x3t)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(B!==null&&this.state.quoting===!0&&this.__isEscape(F,Y,De)&&Y+B.length<ee)if(z){if(this.__isQuote(F,Y+B.length)){this.state.escaping=!0,Y+=B.length-1;continue}}else{this.state.escaping=!0,Y+=B.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(F,Y))if(this.state.quoting===!0){let Z=F[Y+D.length],Te=g&&this.__isCharTrimable(F,Y+D.length),Ie=I!==null&&this.__compareBytes(I,F,Y+D.length,Z),Rt=this.__isDelimiter(F,Y+D.length,Z),Mt=M.length===0?this.__autoDiscoverRecordDelimiter(F,Y+D.length):this.__isRecordDelimiter(Z,F,Y+D.length);if(B!==null&&this.__isEscape(F,Y,De)&&this.__isQuote(F,Y+B.length))Y+=B.length-1;else if(!Z||Rt||Mt||Ie||Te){this.state.quoting=!1,this.state.wasQuoting=!0,Y+=D.length-1;continue}else if(A===!1){let nn=this.__error(new jt("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(Z)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(nn!==void 0)return nn}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(D),Y+=D.length-1}else if(this.state.field.length!==0){if(A===!1){let Z=this.__infoField(),Te=Object.keys(WC).map(Rt=>WC[Rt].equals(this.state.field.toString())?Rt:!1).filter(Boolean)[0],Ie=this.__error(new jt("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(Z.column)} at line ${Z.lines}, value is ${JSON.stringify(this.state.field.toString(l))}`,Te?`(${Te} bom)`:void 0],this.options,Z,{field:this.state.field}));if(Ie!==void 0)return Ie}}else{this.state.quoting=!0,Y+=D.length-1;continue}if(this.state.quoting===!1){let Z=this.__isRecordDelimiter(De,F,Y);if(Z!==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)>=f){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),Y+=Z-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,Y+=Z-1;continue}this.info.bytes=this.state.bufBytesStart+Y;let Rt=this.__onField();if(Rt!==void 0)return Rt;this.info.bytes=this.state.bufBytesStart+Y+Z;let Mt=this.__onRecord(s);if(Mt!==void 0)return Mt;if(y!==-1&&this.info.records>=y){this.state.stop=!0,a();return}}this.state.commenting=!1,Y+=Z-1;continue}if(this.state.commenting)continue;if(I!==null&&(u===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(I,F,Y,De)!==0){this.state.commenting=!0;continue}let Te=this.__isDelimiter(F,Y,De);if(Te!==0){this.info.bytes=this.state.bufBytesStart+Y;let Ie=this.__onField();if(Ie!==void 0)return Ie;Y+=Te-1;continue}}}if(this.state.commenting===!1&&d!==0&&this.state.record_length+this.state.field.length>d)return this.__error(new jt("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 de=h===!1||this.state.quoting===!0||this.state.field.length!==0||!this.__isCharTrimable(F,Y),Qe=g===!1||this.state.wasQuoting===!1;if(de===!0&&Qe===!0)this.state.field.append(De);else{if(g===!0&&!this.__isCharTrimable(F,Y))return this.__error(new jt("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()));de===!1&&(Y+=this.__isCharTrimable(F,Y)-1);continue}}if(n===!0)if(thi Line truncated
`,s),Buffer.from(`
`,s),Buffer.from("\r",s)];e:for(let a=0;a<o.length;a++){let c=o[a].length;for(let u=0;u<c;u++)if(o[a][u]!==i[n+u])continue e;return this.options.record_delimiter.push(o[a]),this.state.recordDelimiterMaxLength=o[a].length,o[a].length}return 0},__error:function(i){let{encoding:n,raw:s,skip_records_with_error:o}=this.options,a=typeof i=="string"?new Error(i):i;if(o){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(a,s?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:i,raw:n,encoding:s}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:i===!0,index:this.state.record.length,raw:n?this.state.rawBuffer.toString(s):void 0}},__infoField:function(){let{columns:i}=this.options,n=Array.isArray(i),s=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:s,column:n===!0?i.length>this.state.record.length?i[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}}}};var dc=function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?{}:[],i=WLe(e),n=a=>{i.options.objname===void 0?r.push(a):r[a[0]]=a[1]},s=()=>{},o=i.parse(t,!0,n,s);if(o!==void 0)throw o;return r};var Ye=class t{static getInputList(e,r){return this.getList(Hc(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let i=[];if(e=="")return i;let n=dc(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let s of n)s.length==1?r?.ignoreComma?i.push(s[0]):i.push(...s[0].split(",")):r?.ignoreComma?i.push(s.join(",")):i.push(...s);return i.filter(s=>s).map(s=>r?.trimWhitespace===!1?s:s.trim())}static getInputNumber(e){let r=Hc(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let i=0;i<e.length;i++)await r(e[i],i,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 i=await ns("powershell",!0),n=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),s=[];if(r)for(let o in r)s.push(`-${o} '${r[o].replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`);return{command:`"${i}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${n}' ${s.join(" ")}`]}}static isDirectory(e){try{return JLe.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 i=e.lastIndexOf(r);return i===-1||i+r.length!==e.length?e:e.substring(0,i)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return dte.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,i=["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))+" "+i[n]}static generateRandomString(e=10){return dte.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,i){return YLe.default.compile(e,r)(i)}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 i=LR.default.resolve(e);return LR.default.resolve(r).startsWith(i.endsWith(LR.default.sep)?i:`${i}${LR.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),i=Math.floor(r/3600),n=Math.floor(r%3600/60),s=r%60,o=[];return i&&o.push(`${i}h`),n&&o.push(`${n}m`),(s||o.length===0)&&o.push(`${s}s`),o.join("")}};var Di=class t{static get configDir(){return process.env.DOCKER_CONFIG||MR.default.join(KLe.default.homedir(),".docker")}static configFile(){let e=MR.default.join(t.configDir,"config.json");if(pte.default.existsSync(e))return JSON.parse(pte.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await ns("docker",!0).then(e=>(Q(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(Q(`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 Ue.exec("docker",e,t.execOptions(r))}static async getExecOutput(e,r){return Ue.getExecOutput("docker",e,t.execOptions(r))}static execOptions(e){return e||(e={} Line truncated
`,s),Buffer.from("\r",s)];e:for(let c=0;c<a.length;c++){let u=a[c].length;for(let l=0;l<u;l++)if(a[c][l]!==i[n+l])continue e;return this.options.record_delimiter.push(a[c]),this.state.recordDelimiterMaxLength=a[c].length,a[c].length}return 0},"__autoDiscoverRecordDelimiter"),__error:o(function(i){let{encoding:n,raw:s,skip_records_with_error:a}=this.options,c=typeof i=="string"?new Error(i):i;if(a){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(c,s?this.state.rawBuffer.toString(n):void 0)}catch(u){return u}return}else return c},"__error"),__infoDataSet:o(function(){return{...this.info,columns:this.options.columns}},"__infoDataSet"),__infoRecord:o(function(){let{columns:i,raw:n,encoding:s}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:i===!0,index:this.state.record.length,raw:n?this.state.rawBuffer.toString(s):void 0}},"__infoRecord"),__infoField:o(function(){let{columns:i}=this.options,n=Array.isArray(i),s=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:s,column:n===!0?i.length>this.state.record.length?i[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}},"__infoField")}},"transform");var pc=o(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?{}:[],i=JLe(e),n=o(c=>{i.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),s=o(()=>{},"close"),a=i.parse(t,!0,n,s);if(a!==void 0)throw a;return r},"parse");var Ke=class t{static{o(this,"Util")}static getInputList(e,r){return this.getList(jc(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let i=[];if(e=="")return i;let n=pc(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let s of n)s.length==1?r?.ignoreComma?i.push(s[0]):i.push(...s[0].split(",")):r?.ignoreComma?i.push(s.join(",")):i.push(...s);return i.filter(s=>s).map(s=>r?.trimWhitespace===!1?s:s.trim())}static getInputNumber(e){let r=jc(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let i=0;i<e.length;i++)await r(e[i],i,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 i=await ss("powershell",!0),n=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),s=[];if(r)for(let a in r)s.push(`-${a} '${r[a].replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`);return{command:`"${i}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${n}' ${s.join(" ")}`]}}static isDirectory(e){try{return YLe.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 i=e.lastIndexOf(r);return i===-1||i+r.length!==e.length?e:e.substring(0,i)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return pte.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,i=["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))+" "+i[n]}static generateRandomString(e=10){return pte.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,i){return KLe.default.compile(e,r)(i)}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 i=MR.default.resolve(e);return MR.default.resolve(r).startsWith(i.endsWith(MR.default.sep)?i:`${i}${MR.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),i=Math.floor(r/3600),n=Math.floor(r%3600/60),s=r%60,a=[];return i&&a.push(`${i}h`),n&&a.push(`${n}m`),(s||a.length===0)&&a.push(`${s}s`),a.join("")}};var Oi=class t{static{o(this,"Docker")}static get configDir(){return process.env.DOCKER_CONFIG||FR.default.join(XLe.default.homedir(),".docker")}static configFile(){let e=FR.default.join(t.configDir,"config.json");if(mte.default.existsSync(e))return JSON.parse(mte.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await ss("docker",!0).then(e=>(L(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(L(`Docker.isAvailable error: ${e}`),!1))}static async isDaemonRunning(){try{return await t.getExecOutput(["version"],{silent:!0}),!0}catch{return!1 Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var b4t=class extends Error{constructor(t,e,r){super(E4t(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},w4t=["method","baseUrl","url","headers","request","query","mediaType","operationName"],C4t=["query","method","url"],kMe=/\/api\/v3\/?$/;function I4t(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(C4t.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let i=typeof e=="string"?Object.assign({query:e},r):e,n=Object.keys(i).reduce((o,a)=>w4t.includes(a)?(o[a]=i[a],o):(o.variables||(o.variables={}),o.variables[a]=i[a],o),{}),s=i.baseUrl||t.endpoint.DEFAULTS.baseUrl;return kMe.test(s)&&(n.url=s.replace(kMe,"/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 b4t(n,a,o.data)}return o.data.data})}function Bte(t,e){let r=t.defaults(e);return Object.assign((n,s)=>I4t(r,n,s),{defaults:Bte.bind(null,r),endpoint:r.endpoint})}var nWr=Bte(GR,{headers:{"user-agent":`octokit-graphql.js/${y4t} ${gA()}`},method:"POST",url:"/graphql"});function QMe(t){return Bte(t,{method:"POST",url:"/graphql"})}var vte="(?:[a-zA-Z0-9_-]+)",LMe="\\.",MMe=new RegExp(`^${vte}${LMe}${vte}${LMe}${vte}$`),S4t=MMe.test.bind(MMe);async function B4t(t){let e=S4t(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),i=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":i?"user-to-server":"oauth"}}function v4t(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function _4t(t,e,r,i){let n=e.endpoint.merge(r,i);return n.headers.authorization=v4t(t),e(n)}var FMe=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(B4t.bind(null,e),{hook:_4t.bind(null,e)})};var _te="7.0.6";var UMe=()=>{},x4t=console.warn.bind(console),R4t=console.error.bind(console);function T4t(t={}){return typeof t.debug!="function"&&(t.debug=UMe),typeof t.info!="function"&&(t.info=UMe),typeof t.warn!="function"&&(t.warn=x4t),typeof t.error!="function"&&(t.error=R4t),t}var qMe=`octokit-core.js/${_te} ${gA()}`,KC=class{static VERSION=_te;static defaults(e){return class extends this{constructor(...i){let n=i[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 pMe.Collection,i={baseUrl:GR.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(i.headers["user-agent"]=e.userAgent?`${e.userAgent} ${qMe}`:qMe,e.baseUrl&&(i.baseUrl=e.baseUrl),e.previews&&(i.mediaType.previews=e.previews),e.timeZone&&(i.headers["time-zone"]=e.timeZone),this.request=GR.defaults(i),this.graphql=QMe(this.request).defaults(i),this.log=T4t(e.log),this.hook=r,e.authStrategy){let{authStrategy:s,...o}=e,a=s(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 s=FMe(e.auth);r.wrap("request",s.hook),this.auth=s}let n=this.constructor;for(let s=0;s<n.plugins.length;++s)Object.assign(this,n.plugins[s](this,e))}request;graphql;log;hook;auth};var xte="17.0.0";var N4t={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}"],cr Line truncated
More info: ${c.url}`);let d=c.range&&c.range.length>0?c.range[0]?.start.line:void 0,m=!1;for(let A of o)if(A.remote||A.path.endsWith(u)&&A.content===l){a.push({title:f,message:h,file:A.path,startLine:d}),m=!0;break}m||Q(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${f}`)}return a}};var Lte=O(require("fs"),1),Mte=O(require("path"),1);var MF=class t{buildx;constructor(e){this.buildx=e?.buildx||new Wt}async getCommand(e){return await this.buildx.getCommand(["history",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getExportCommand(e){return await this.getCommand(["export",...e])}async inspect(e){let r=["--format","json"];e.builder&&r.push("--builder",e.builder),e.ref&&r.push(e.ref);let i=await this.getInspectCommand(r);return await Ue.getExecOutput(i.command,i.args,{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr.trim());return JSON.parse(n.stdout)})}async export(e){if(!await this.buildx.versionSatisfies(">=0.23.0"))throw new Error("Buildx >= 0.23.0 is required to export a build record");let r="",i="",n=[];for(let f of e.refs){let h=f.split("/");if(h.length!=3)throw new Error(`Invalid build ref: ${f}`);n.push(h[2]),r||(r=h[0]),i||(i=h[1])}if(n.length===0)throw new Error("No build refs provided");let s=Mte.default.join(Nt.tmpDir(),"export");H(`exporting build record to ${s}`),Lte.default.mkdirSync(s,{recursive:!0}),await this.buildx.versionSatisfies("<0.24.0")&&await Ye.sleep(3);let o={};if(!e.noSummaries)for(let f of n)await this.inspect({ref:f,builder:r}).then(h=>{let d="";h.Error&&h.Status!=="canceled"&&(h.Error.Message?d=h.Error.Message:h.Error.Name&&h.Error.Logs&&(d=`=> ${h.Error.Name}
${h.Error.Logs}`)),o[f]={name:h.Name,status:h.Status,duration:Ye.formatDuration(h.Duration),numCachedSteps:h.NumCachedSteps,numTotalSteps:h.NumTotalSteps,numCompletedSteps:h.NumCompletedSteps,defaultPlatform:h.Platform?.[0],error:d}});let a=Mte.default.join(s,`${t.exportFilename(n)}.dockerbuild`),c=["--builder",r,"--output",a,...n];await this.buildx.versionSatisfies(">=0.24.0")&&c.push("--finalize");let u=await this.getExportCommand(c);await Ue.getExecOutput(u.command,u.args);let l=Lte.default.statSync(a);return{dockerbuildFilename:a,dockerbuildSize:l.size,builderName:r,nodeName:i,refs:n,summaries:o}}static exportFilename(e){let r=`${At.context.repo.owner}~${At.context.repo.repo}~${e[0].substring(0,6).toUpperCase()}`;return e.length>1&&(r+=`+${e.length-1}`),r}};var U9e=O(require("fs"),1),bae=O(require("path"),1);var KMe=O(require("os"),1);function $R(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function Fte(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}function WR(t,e,r){let i=new Ute(t,e,r);process.stdout.write(i.toString()+KMe.EOL)}var YMe="::",Ute=class{constructor(e,r,i){e||(e="missing.command"),this.command=e,this.properties=r,this.message=i}toString(){let e=YMe+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let i in this.properties)if(this.properties.hasOwnProperty(i)){let n=this.properties[i];n&&(r?r=!1:e+=",",e+=`${i}=${J4t(n)}`)}}return e+=`${YMe}${W4t(this.message)}`,e}};function W4t(t){return $R(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function J4t(t){return $R(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var tFe=O(require("os"),1);var ZMe=require("os"),JR=require("fs"),qte=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},{access:Y4t,appendFile:K4t,writeFile:X4t}=JR.promises,XMe="GITHUB_STEP_SUMMARY";var Gte=class{constructor(){this._buffer=""}filePath(){return qte(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[XMe];if(!e)throw new Error(`Unable to find environment variable for $${XMe}. Check if your runtime environment supports job summaries.`);try{yield Y4t(e,JR.constants.R_OK|JR.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,i={}){let n=Object.entries(i).map(([s,o])=>` ${s}="${o}"`).join("");return r?`<${e}${n}>${r}</${e}>`:`<${e}${n}>`}write(e){return qte(this,void 0,void 0,function*(){let r=!!e?.overwrite,i=yield this.filePath();return yield(r?X4t:K4t)(i,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return qte(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(ZMe.EOL)}addCodeBlock(e,r){let i=Object.assign({},r&&{lang:r}),n=this.wrap("pre",this.wrap("code",e),i);return this.addRaw(n).addEOL()}addList(e,r=!1){let i=r?"ol":"ul",n=e.map(o=>this.wrap("li",o)).join(""),s=this.wrap(i,n);return this.addRaw(s).addEOL()}addTable(e){let r=e.map(n=>{let s=n.map(o=>{if(typeof o=="string")return this.wrap("td",o);let{header:a,data:c,colspan:u,rowspan:l}=o,f=a?"th":"td",h=Object.assign(Object.assign({},u&&{colspan:u}),l&&{rowspan:l});return this.wrap(f,c,h)}).join("");return this.wrap("tr",s)}).join(""),i=this.wrap("table",r);return this.addRaw(i).addEOL()}addDetails(e,r){let i=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(i).addEOL()}addImage(e,r,i){let{width:n,height:s}=i||{},o=Object.assign(Object.assign({},n&&{width:n}),s&&{height:s}),a=this.wrap("img",null,Object.assign({src:e,alt:r},o));return this.addRaw(a).addEOL()}addHeading(e,r){let i=`h${r}`,n=["h1","h2","h3","h4","h5","h6"].includes(i)?i:"h1",s=this.wrap(n,e);return this.addRaw(s).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 i=Object.assign({},r&&{cite:r}),n=this.wrap("blockquote",e,i);return this.addRaw(n).addEOL()}addLink(e,r){let i=this.wrap("a",e,{href:r});return this.addRaw(i).addEOL()}},nJr=new Gte;var Hte=O(require("os"),1);var aJr=Hte.default.platform(),cJr=Hte.default.arch();var eFe;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(eFe||(eFe={}));function FF(t){WR("add-mask",{},t)}function lt(t){WR("debug",{},t)}function YR(t,e={}){WR("error",Fte(e),t insLine truncated
`," Line feed \\n"]]),eUe=new Map([...mie,["\\"," Backslash \\"],["/"," Forward slash /"]]);function tUe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of eUe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
`)}o(b4t,"_buildMessageForResponseErrors");var w4t=class extends Error{static{o(this,"GraphqlResponseError")}constructor(t,e,r){super(b4t(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},C4t=["method","baseUrl","url","headers","request","query","mediaType","operationName"],I4t=["query","method","url"],QMe=/\/api\/v3\/?$/;function S4t(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let a in r)if(I4t.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let i=typeof e=="string"?Object.assign({query:e},r):e,n=Object.keys(i).reduce((a,c)=>C4t.includes(c)?(a[c]=i[c],a):(a.variables||(a.variables={}),a.variables[c]=i[c],a),{}),s=i.baseUrl||t.endpoint.DEFAULTS.baseUrl;return QMe.test(s)&&(n.url=s.replace(QMe,"/api/graphql")),t(n).then(a=>{if(a.data.errors){let c={};for(let u of Object.keys(a.headers))c[u]=a.headers[u];throw new w4t(n,c,a.data)}return a.data.data})}o(S4t,"graphql");function vte(t,e){let r=t.defaults(e);return Object.assign(o((n,s)=>S4t(r,n,s),"newApi"),{defaults:vte.bind(null,r),endpoint:r.endpoint})}o(vte,"withDefaults");var mni=vte(HR,{headers:{"user-agent":`octokit-graphql.js/${E4t} ${yA()}`},method:"POST",url:"/graphql"});function LMe(t){return vte(t,{method:"POST",url:"/graphql"})}o(LMe,"withCustomRequest");var _te="(?:[a-zA-Z0-9_-]+)",MMe="\\.",FMe=new RegExp(`^${_te}${MMe}${_te}${MMe}${_te}$`),B4t=FMe.test.bind(FMe);async function v4t(t){let e=B4t(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),i=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":i?"user-to-server":"oauth"}}o(v4t,"auth");function _4t(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}o(_4t,"withAuthorizationPrefix");async function x4t(t,e,r,i){let n=e.endpoint.merge(r,i);return n.headers.authorization=_4t(t),e(n)}o(x4t,"hook");var UMe=o(function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(v4t.bind(null,e),{hook:x4t.bind(null,e)})},"createTokenAuth2");var xte="7.0.6";var qMe=o(()=>{},"noop"),R4t=console.warn.bind(console),T4t=console.error.bind(console);function N4t(t={}){return typeof t.debug!="function"&&(t.debug=qMe),typeof t.info!="function"&&(t.info=qMe),typeof t.warn!="function"&&(t.warn=R4t),typeof t.error!="function"&&(t.error=T4t),t}o(N4t,"createLogger");var GMe=`octokit-core.js/${xte} ${yA()}`,XC=class{static{o(this,"Octokit")}static VERSION=xte;static defaults(e){return class extends this{static{o(this,"OctokitWithDefaults")}constructor(...i){let n=i[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{o(this,"NewOctokit")}static plugins=r.concat(e.filter(n=>!r.includes(n)))}}constructor(e={}){let r=new mMe.Collection,i={baseUrl:HR.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(i.headers["user-agent"]=e.userAgent?`${e.userAgent} ${GMe}`:GMe,e.baseUrl&&(i.baseUrl=e.baseUrl),e.previews&&(i.mediaType.previews=e.previews),e.timeZone&&(i.headers["time-zone"]=e.timeZone),this.request=HR.defaults(i),this.graphql=LMe(this.request).defaults(i),this.log=N4t(e.log),this.hook=r,e.authStrategy){let{authStrategy:s,...a}=e,c=s(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},e.auth));r.wrap("request",c.hook),this.auth=c}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let s=UMe(e.auth);r.wrap("request",s.hook),this.auth=s}let n=this.constructor;for(let s=0;s<n.plugins.length;++s)Object.assign(this,n.plugins[s](this,e))}request;graphql;log;hook;auth};var Rte="17.0.0";var D4t={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_nam Line truncated
More info: ${u.url}`);let p=u.range&&u.range.length>0?u.range[0]?.start.line:void 0,A=!1;for(let g of a)if(g.remote||g.path.endsWith(l)&&g.content===f){c.push({title:h,message:d,file:g.path,startLine:p}),A=!0;break}A||L(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${l}: ${h}`)}return c}};var Mte=P(require("fs"),1),Fte=P(require("path"),1);var UF=class t{static{o(this,"History")}buildx;constructor(e){this.buildx=e?.buildx||new Jt}async getCommand(e){return await this.buildx.getCommand(["history",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getExportCommand(e){return await this.getCommand(["export",...e])}async inspect(e){let r=["--format","json"];e.builder&&r.push("--builder",e.builder),e.ref&&r.push(e.ref);let i=await this.getInspectCommand(r);return await qe.getExecOutput(i.command,i.args,{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr.trim());return JSON.parse(n.stdout)})}async export(e){if(!await this.buildx.versionSatisfies(">=0.23.0"))throw new Error("Buildx >= 0.23.0 is required to export a build record");let r="",i="",n=[];for(let h of e.refs){let d=h.split("/");if(d.length!=3)throw new Error(`Invalid build ref: ${h}`);n.push(d[2]),r||(r=d[0]),i||(i=d[1])}if(n.length===0)throw new Error("No build refs provided");let s=Fte.default.join(Dt.tmpDir(),"export");j(`exporting build record to ${s}`),Mte.default.mkdirSync(s,{recursive:!0}),await this.buildx.versionSatisfies("<0.24.0")&&await Ke.sleep(3);let a={};if(!e.noSummaries)for(let h of n)await this.inspect({ref:h,builder:r}).then(d=>{let p="";d.Error&&d.Status!=="canceled"&&(d.Error.Message?p=d.Error.Message:d.Error.Name&&d.Error.Logs&&(p=`=> ${d.Error.Name}
${d.Error.Logs}`)),a[h]={name:d.Name,status:d.Status,duration:Ke.formatDuration(d.Duration),numCachedSteps:d.NumCachedSteps,numTotalSteps:d.NumTotalSteps,numCompletedSteps:d.NumCompletedSteps,defaultPlatform:d.Platform?.[0],error:p}});let c=Fte.default.join(s,`${t.exportFilename(n)}.dockerbuild`),u=["--builder",r,"--output",c,...n];await this.buildx.versionSatisfies(">=0.24.0")&&u.push("--finalize");let l=await this.getExportCommand(u);await qe.getExecOutput(l.command,l.args);let f=Mte.default.statSync(c);return{dockerbuildFilename:c,dockerbuildSize:f.size,builderName:r,nodeName:i,refs:n,summaries:a}}static exportFilename(e){let r=`${gt.context.repo.owner}~${gt.context.repo.repo}~${e[0].substring(0,6).toUpperCase()}`;return e.length>1&&(r+=`+${e.length-1}`),r}};var q9e=P(require("fs"),1),wae=P(require("path"),1);var XMe=P(require("os"),1);function WR(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(WR,"toCommandValue");function Ute(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}o(Ute,"toCommandProperties");function JR(t,e,r){let i=new qte(t,e,r);process.stdout.write(i.toString()+XMe.EOL)}o(JR,"issueCommand");var KMe="::",qte=class{static{o(this,"Command")}constructor(e,r,i){e||(e="missing.command"),this.command=e,this.properties=r,this.message=i}toString(){let e=KMe+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let i in this.properties)if(this.properties.hasOwnProperty(i)){let n=this.properties[i];n&&(r?r=!1:e+=",",e+=`${i}=${Y4t(n)}`)}}return e+=`${KMe}${J4t(this.message)}`,e}};function J4t(t){return WR(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(J4t,"escapeData");function Y4t(t){return WR(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(Y4t,"escapeProperty");var rFe=P(require("os"),1);var eFe=require("os"),YR=require("fs");var Gte=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function u(f){try{l(i.throw(f))}catch(h){a(h)}}o(u,"rejected");function l(f){f.done?s(f.value):n(f.value).then(c,u)}o(l,"step"),l((i=i.apply(t,e||[])).next())})},{access:K4t,appendFile:X4t,writeFile:Z4t}=YR.promises,ZMe="GITHUB_STEP_SUMMARY";var Hte=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return Gte(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[ZMe];if(!e)throw new Error(`Unable to find environment variable for $${ZMe}. Check if your runtime environment supports job summaries.`);try{yield K4t(e,YR.constants.R_OK|YR.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,i={}){let n=Object.entries(i).map(([s,a])=>` ${s}="${a}"`).join("");return r?`<${e}${n}>${r}</${e}>`:`<${e}${n}>`}write(e){return Gte(this,void 0,void 0,function*(){let r=!!e?.overwrite,i=yield this.filePath();return yield(r?Z4t:X4t)(i,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return Gte(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(eFe.EOL)}addCodeBlock(e,r){let i=Object.assign({},r&&{lang:r}),n=this.wrap("pre",this.wrap("code",e),i);return this.addRaw(n).addEOL()}addList(e,r=!1){let i=r?"ol":"ul",n=e.map(a=>this.wrap("li",a)).join(""),s=this.wrap(i,n);return this.addRaw(s).addEOL()}addTable(e){let r=e.map(n=>{let s=n.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:u,colspan:l,rowspan:f}=a,h=c?"th":"td",d=Object.assign(Object.assign({},l&&{colspan:l}),f&&{rowspan:f});return this.wrap(h,u,d)}).join("");return this.wrap("tr",s)}).join(""),i=this.wrap("table",r);return this.addRaw(i).addEOL()}addDetails(e,r){let i=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(i).addEOL()}addImage(e,r,i){let{width:n,height:s}=i||{},a=Object.assign(Object.assign({},n&&{width:n}),s&&{height:s}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let i=`h${r}`,n=["h1","h2","h3","h4","h5","h6"].includes(i)?i:"h1",s=this.wrap(n,e);return this.addRaw(s).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 i=Object.assign({},r&&{cite:r}),n=this.wrap("blockquote",e,i);return this.addRaw(n).addEOL()}addLink(e,r){let i=this.wrap("a",e,{href:r});return this.addRaw(i).addEOL()}},Osi=new Hte;var jte=P(require("os"),1);var Msi=jte.default.plaLine truncated
`," Line feed \\n"]]),tUe=new Map([...Aie,["\\"," Backslash \\"],["/"," Forward slash /"]]);function rUe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of tUe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
Invalid characters include: ${Array.from(eUe.values()).toString()}
Invalid characters include: ${Array.from(tUe.values()).toString()}
These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`);wt("Artifact name is valid!")}function Aie(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of mie)if(t.includes(e))throw new Error(`The path for one of the files in artifact is not valid: ${t}. Contains the following character: ${r}
These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`);Ct("Artifact name is valid!")}o(rUe,"validateArtifactName");function gie(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of Aie)if(t.includes(e))throw new Error(`The path for one of the files in artifact is not valid: ${t}. Contains the following character: ${r}
Invalid characters include: ${Array.from(mie.values()).toString()}
Invalid characters include: ${Array.from(Aie.values()).toString()}
The following characters are not allowed in files that are uploaded due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.
`)}var sUe=O(nUe(),1);function ch(){return`@actions/artifact-${sUe.version}`}var AI=class extends Error{constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`: ${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},_l=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},np=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},CA=class extends Error{constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},sp=class extends Error{constructor(e){let r=`Unable to make request: ${e}
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"}};sp.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var IE=class extends Error{constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts.
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"}};IE.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var vU=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function uh(){let t=UF(),e=LF(t);if(!e.scp)throw vU;let r=e.scp.split(" ");if(r.length===0)throw vU;for(let i of r){let n=i.split(":");if(n?.[0]!=="Actions.Results")continue;if(n.length!==3)throw vU;let s={workflowRunBackendId:n[1],workflowJobRunBackendId:n[2]};return lt(`Workflow Run Backend ID: ${s.workflowRunBackendId}`),lt(`Workflow Job Run Backend ID: ${s.workflowJobRunBackendId}`),s}throw vU}function oUe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(FF(r),FF(encodeURIComponent(r)))}catch(e){lt(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function aUe(t){if(typeof t!="object"||t===null){lt("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&oUe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&oUe(t.signed_url)}var _U=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},gie=class{constructor(e,r,i,n){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let s=UF();this.baseUrl=iFe(),r&&(this.maxAttempts=r),i&&(this.baseRetryIntervalMilliseconds=i),n&&(this.retryMultiplier=n),this.httpClient=new Gc(e,[new Gm(s)])}request(e,r,i,n){return _U(this,void 0,void 0,function*(){let s=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;lt(`[Request] ${r} ${s}`);let o={"Content-Type":i};try{let{body:a}=yield this.retryableRequest(()=>_U(this,void 0,void 0,function*(){return this.httpClient.post(s,JSON.stringify(n),o)}));return a}catch(a){throw new Error(`Failed to ${r}: ${a.message}`)}})}retryableRequest(e){return _U(this,void 0,void 0,function*(){let r=0,i="",n="";for(;r<this.maxAttempts;){let s=!1;try{let a=yield e(),c=a.message.statusCode;n=yield a.readBody(),lt(`[Response] - ${a.message.statusCode}`),lt(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let u=JSON.parse(n);if(aUe(u),lt(`Body: ${JSON.stringify(u,null,2)}`),this.isSuccessStatusCode(c))return{response:a,body:u};if(s=this.isRetryableHttpStatusCode(c),i=`Failed request: (${c}) ${a.message.statusMessage}`,u.msg){if(IE.isUsageErrorMessage(u.msg))throw new IE;i=`${i}: ${u.msg}`}}catch(a){if(a instanceof SyntaxError&&lt(`Raw Body: ${n}`),a instanceof IE)throw a;if(sp.isNetworkErrorCode(a?.code))throw new sp(a?.code);s=!0,i=a.message}if(!s)throw new Error(`Received non-retryable error: ${i}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${i}`);let o=this.getExponentialRetryTimeMilliseconds(r);wt(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${i}. Retrying request in ${o} ms...`),yield this.sleep(o),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[Cn.BadGateway,Cn.GatewayTimeout,Cn.InternalServerError,Cn.ServiceUnavailable,Cn.TooManyRequests].includes(e):!1}sleep(e){return _U(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),i=r*this.retryMultiplier;return Math.trunc(Math.random()*(i-r)+r)}};function lh(t){let e=new gie(ch(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new BU(e)}var yI=O(require("fs"),1);var gI=require("path");function cUe(t){if(!yI.existsSync(t))throw new Error(`The provided rootDirectory ${t} does not exist`);if(!yI.statSync(t).isDirectory())throw new Error(`The provided rootDirectory ${t} is not a valid directory`);wt("Root directory input is valid!")}function uUe(t,e){let r=[];e=(0,gI.normalize)(e),e=(0,gI.resolve)(e);for(let i of t){let n=yI.lstatSync(i,{throwIfNoEntry:!1});if(!n)throw new Error(`File ${i} does not exist`);if(n.isDirectory()){let s=i.replace(e,"");Aie(s),r.push({sourcePath:null,destinationPath:s,stats:n})}else{if(i=(0,gI.normalize)(i),i=(0,gI.resolve)(i),!i.startsWith(e))throw new Error(`The rootDirectory: ${e} is not a parent directory of the file: ${i}`);let s=i.replace(e,"");Aie(s),r.push({sourcePath:i,destinationPath:s,stats:n})}}return r}var fUe=O(require("crypto"),1),hUe=O(require("stream"),1);var lUe=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);c.length>1&&hs("Multiple artifacts found, defaulting to first.");let u={workflowRunBackendId:c[0].workflowRunBackendId,workflowJobRunBackendId:c[0].workflowJobRunBackendId,name:c[0].name},{signedUrl:l}=yield i.GetSignedArtifactURL(u);wt(`Redirecting to blob download url: ${C9e(l)}`);try{wt(`Starting download of artifact to: ${r}`);let f=yield I9e(l,r,e?.skipDecompress);wt("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==f.sha256Digest&&(n=!0,lt(`Computed digest: ${f.sha256Digest}`),lt(`Expected digest: ${e.expectedHash}`))}catch(f){throw new Error(`Unable to download and extract artifact: ${f.message}`)}return{downloadPath:r,digestMismatch:n}})}function v9e(){return mS(this,arguments,void 0,function*(t=nFe()){return(yield Cir(t))?lt(`Artifact destination folder already exists: ${t}`):(lt(`Artifact destination folder does not exist, creating: ${t}`),yield gae.default.mkdir(t,{recursive:!0})),t})}var Sir=5,Bir=[400,401,403,404,422];function AS(t,e=Sir,r=Bir){var i;if(e<=0)return[{enabled:!1},t.request];let n={enabled:!0};r.length>0&&(n.doNotRetry=r);let s=Object.assign(Object.assign({},t.request),{retries:e});return lt(`GitHub client configured with: (retries: ${s.retries}, retry-exempt-status-code: ${(i=n.doNotRetry)!==null&&i!==void 0?i:"octokit default: [400, 401, 403, 404, 422]"})`),[n,s]}var _9e="6.0.0";function e0(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let i=Date.now(),n=t.request.endpoint.parse(r),s=n.url.replace(r.baseUrl,"");return e(r).then(o=>{let a=o.headers["x-github-request-id"];return t.log.info(`${n.method} ${s} - ${o.status} with id ${a} in ${Date.now()-i}ms`),o}).catch(o=>{let a=o.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${n.method} ${s} - ${o.status} with id ${a} in ${Date.now()-i}ms`),o})})}e0.VERSION=_9e;var T9e=O(x9e(),1);var vir="0.0.0-development";function _ir(t){return t.request!==void 0}async function R9e(t,e,r,i){if(!_ir(r)||!r?.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let n=i.request.retries!=null?i.request.retries:t.retries,s=Math.pow((i.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,n,s)}throw r}async function xir(t,e,r,i){let n=new T9e.default;return n.on("failed",function(s,o){let a=~~s.request.request?.retries,c=~~s.request.request?.retryAfter;if(i.request.retryCount=o.retryCount+1,a>o.retryCount)return c*t.retryAfterBaseValue}),n.schedule(Rir.bind(null,t,e,r),i)}async function Rir(t,e,r,i){let n=await r(i);if(n.data&&n.data.errors&&n.data.errors.length>0&&/Something went wrong while executing your query/.test(n.data.errors[0].message)){let s=new ep(n.data.errors[0].message,500,{request:i,response:n});return R9e(t,e,s,i)}return n}function t0(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry),i={retry:{retryRequest:(n,s,o)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:o}),n)}};return r.enabled&&(t.hook.error("request",R9e.bind(null,r,i)),t.hook.wrap("request",xir.bind(null,r,i))),i}t0.VERSION=vir;var N9e=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};function z3(t,e,r,i,n){return N9e(this,void 0,void 0,function*(){var s;let[o,a]=AS(KE),c={log:void 0,userAgent:ch(),previews:void 0,retry:o,request:a},l=yield HA(n,c,t0,e0).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:i,run_id:e,name:t});if(l.status!==200)throw new _l(`Invalid response from GitHub API: ${l.status} (${(s=l?.headers)===null||s===void 0?void 0:s["x-github-request-id"]})`);if(l.data.artifacts.length===0)throw new np(`Artifact not found for name: ${t}
`)}o(gie,"validateFilePath");var oUe=P(sUe(),1);function uh(){return`@actions/artifact-${oUe.version}`}o(uh,"getUserAgentString");var gI=class extends Error{static{o(this,"FilesNotFoundError")}constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`: ${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},xl=class extends Error{static{o(this,"InvalidResponseError")}constructor(e){super(e),this.name="InvalidResponseError"}},sp=class extends Error{static{o(this,"ArtifactNotFoundError")}constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},IA=class extends Error{static{o(this,"GHESNotSupportedError")}constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},op=class extends Error{static{o(this,"NetworkError")}constructor(e){let r=`Unable to make request: ${e}
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};op.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var SE=class extends Error{static{o(this,"UsageError")}constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts.
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"}};SE.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var xU=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function lh(){let t=GF(),e=FF(t);if(!e.scp)throw xU;let r=e.scp.split(" ");if(r.length===0)throw xU;for(let i of r){let n=i.split(":");if(n?.[0]!=="Actions.Results")continue;if(n.length!==3)throw xU;let s={workflowRunBackendId:n[1],workflowJobRunBackendId:n[2]};return ft(`Workflow Run Backend ID: ${s.workflowRunBackendId}`),ft(`Workflow Job Run Backend ID: ${s.workflowJobRunBackendId}`),s}throw xU}o(lh,"getBackendIdsFromToken");function aUe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(qF(r),qF(encodeURIComponent(r)))}catch(e){ft(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}o(aUe,"maskSigUrl");function cUe(t){if(typeof t!="object"||t===null){ft("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&aUe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&aUe(t.signed_url)}o(cUe,"maskSecretUrls");var RU=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function u(f){try{l(i.throw(f))}catch(h){a(h)}}o(u,"rejected");function l(f){f.done?s(f.value):n(f.value).then(c,u)}o(l,"step"),l((i=i.apply(t,e||[])).next())})},yie=class{static{o(this,"ArtifactHttpClient")}constructor(e,r,i,n){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let s=GF();this.baseUrl=nFe(),r&&(this.maxAttempts=r),i&&(this.baseRetryIntervalMilliseconds=i),n&&(this.retryMultiplier=n),this.httpClient=new Hc(e,[new Hm(s)])}request(e,r,i,n){return RU(this,void 0,void 0,function*(){let s=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;ft(`[Request] ${r} ${s}`);let a={"Content-Type":i};try{let{body:c}=yield this.retryableRequest(()=>RU(this,void 0,void 0,function*(){return this.httpClient.post(s,JSON.stringify(n),a)}));return c}catch(c){throw new Error(`Failed to ${r}: ${c.message}`)}})}retryableRequest(e){return RU(this,void 0,void 0,function*(){let r=0,i="",n="";for(;r<this.maxAttempts;){let s=!1;try{let c=yield e(),u=c.message.statusCode;n=yield c.readBody(),ft(`[Response] - ${c.message.statusCode}`),ft(`Headers: ${JSON.stringify(c.message.headers,null,2)}`);let l=JSON.parse(n);if(cUe(l),ft(`Body: ${JSON.stringify(l,null,2)}`),this.isSuccessStatusCode(u))return{response:c,body:l};if(s=this.isRetryableHttpStatusCode(u),i=`Failed request: (${u}) ${c.message.statusMessage}`,l.msg){if(SE.isUsageErrorMessage(l.msg))throw new SE;i=`${i}: ${l.msg}`}}catch(c){if(c instanceof SyntaxError&&ft(`Raw Body: ${n}`),c instanceof SE)throw c;if(op.isNetworkErrorCode(c?.code))throw new op(c?.code);s=!0,i=c.message}if(!s)throw new Error(`Received non-retryable error: ${i}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${i}`);let a=this.getExponentialRetryTimeMilliseconds(r);Ct(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${i}. Retrying request in ${a} ms...`),yield this.sleep(a),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[In.BadGateway,In.GatewayTimeout,In.InternalServerError,In.ServiceUnavailable,In.TooManyRequests].includes(e):!1}sleep(e){return RU(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),i=r*this.retryMultiplier;return Math.trunc(Math.random()*(i-r)+r)}};function fh(t){let e=new yie(uh(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new _U(e)}o(fh,"internalArtifactTwirpClient");var EI=P(require("fs"),1);var yI=require("path");function uUe(t){if(!EI.existsSync(t))throw new Error(`The provided rootDirectory ${t} does not exist`);if(!EI.statSync(t).isDirectory())throw new Error(`The provided rootDirectory ${t} is not a valid directory`);Ct("Root directory input is valid!")}o(uUe,"validateRootDirectory");function lUe(t,e){let r=[];e=(0,yI.normalize)(e),e=(0,yI.resolve)(e);for(let i of t){let n=EI.lstatSync(i,{throwIfNoEntry:!1});if(!n)throw new Error(`File ${i} does not exist`);if(n.isDirectory()){let s=i.replace(e,"");gie(s),r.push({sourcePath:null,destinationPath:s,stats:n})}else{if(i=(0,yI.normalize)(i),i=(0,yI.resolve)(i),!i.startsWith(e))throw new Error(`The rootDirectory: ${e} is not a parent directory of the file: ${i}`);let s=i.replace(e,"");gie(s),r.push({sourcePath:i,destinationPath:s,stats:n})}}re Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);u.length>1&&ds("Multiple artifacts found, defaulting to first.");let l={workflowRunBackendId:u[0].workflowRunBackendId,workflowJobRunBackendId:u[0].workflowJobRunBackendId,name:u[0].name},{signedUrl:f}=yield i.GetSignedArtifactURL(l);Ct(`Redirecting to blob download url: ${I9e(f)}`);try{Ct(`Starting download of artifact to: ${r}`);let h=yield S9e(f,r,e?.skipDecompress);Ct("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==h.sha256Digest&&(n=!0,ft(`Computed digest: ${h.sha256Digest}`),ft(`Expected digest: ${e.expectedHash}`))}catch(h){throw new Error(`Unable to download and extract artifact: ${h.message}`)}return{downloadPath:r,digestMismatch:n}})}o(v9e,"downloadArtifactInternal");function _9e(){return AS(this,arguments,void 0,function*(t=sFe()){return(yield Iir(t))?ft(`Artifact destination folder already exists: ${t}`):(ft(`Artifact destination folder does not exist, creating: ${t}`),yield yae.default.mkdir(t,{recursive:!0})),t})}o(_9e,"resolveOrCreateDirectory");var Bir=5,vir=[400,401,403,404,422];function gS(t,e=Bir,r=vir){var i;if(e<=0)return[{enabled:!1},t.request];let n={enabled:!0};r.length>0&&(n.doNotRetry=r);let s=Object.assign(Object.assign({},t.request),{retries:e});return ft(`GitHub client configured with: (retries: ${s.retries}, retry-exempt-status-code: ${(i=n.doNotRetry)!==null&&i!==void 0?i:"octokit default: [400, 401, 403, 404, 422]"})`),[n,s]}o(gS,"getRetryOptions");var x9e="6.0.0";function t0(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let i=Date.now(),n=t.request.endpoint.parse(r),s=n.url.replace(r.baseUrl,"");return e(r).then(a=>{let c=a.headers["x-github-request-id"];return t.log.info(`${n.method} ${s} - ${a.status} with id ${c} in ${Date.now()-i}ms`),a}).catch(a=>{let c=a.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${n.method} ${s} - ${a.status} with id ${c} in ${Date.now()-i}ms`),a})})}o(t0,"requestLog");t0.VERSION=x9e;var N9e=P(R9e(),1);var _ir="0.0.0-development";function xir(t){return t.request!==void 0}o(xir,"isRequestError");async function T9e(t,e,r,i){if(!xir(r)||!r?.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let n=i.request.retries!=null?i.request.retries:t.retries,s=Math.pow((i.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,n,s)}throw r}o(T9e,"errorRequest");async function Rir(t,e,r,i){let n=new N9e.default;return n.on("failed",function(s,a){let c=~~s.request.request?.retries,u=~~s.request.request?.retryAfter;if(i.request.retryCount=a.retryCount+1,c>a.retryCount)return u*t.retryAfterBaseValue}),n.schedule(Tir.bind(null,t,e,r),i)}o(Rir,"wrapRequest");async function Tir(t,e,r,i){let n=await r(i);if(n.data&&n.data.errors&&n.data.errors.length>0&&/Something went wrong while executing your query/.test(n.data.errors[0].message)){let s=new tp(n.data.errors[0].message,500,{request:i,response:n});return T9e(t,e,s,i)}return n}o(Tir,"requestWithGraphqlErrorHandling");function r0(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry),i={retry:{retryRequest:o((n,s,a)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:a}),n),"retryRequest")}};return r.enabled&&(t.hook.error("request",T9e.bind(null,r,i)),t.hook.wrap("request",Rir.bind(null,r,i))),i}o(r0,"retry");r0.VERSION=_ir;var D9e=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function u(f){try{l(i.throw(f))}catch(h){a(h)}}o(u,"rejected");function l(f){f.done?s(f.value):n(f.value).then(c,u)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};function W3(t,e,r,i,n){return D9e(this,void 0,void 0,function*(){var s;let[a,c]=gS(XE),u={log:void 0,userAgent:uh(),previews:void 0,retry:a,request:c},f=yield jA(n,u,r0,t0).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:i,run_id:e,name:t});if(f.status!==200)throw new xl(`Invalid response from GitHub API: ${f.status} (${(s=f?.headers)===null||s===void 0?void 0:s["x-github-request-id"]})`);if(f.data.artifacts.length===0)throw new sp(`Artifact not found for name: ${t}
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let f=l.data.artifacts[0];return l.data.artifacts.length>1&&(f=l.data.artifacts.sort((h,d)=>d.id-h.id)[0],lt(`More than one artifact found for a single name, returning newest (id: ${f.id})`)),{artifact:{name:f.name,id:f.id,size:f.size_in_bytes,createdAt:f.created_at?new Date(f.created_at):void 0,digest:f.digest}}})}function D9e(t){return N9e(this,void 0,void 0,function*(){var e;let r=lh(),{workflowRunBackendId:i,workflowJobRunBackendId:n}=uh(),s={workflowRunBackendId:i,workflowJobRunBackendId:n,nameFilter:Ji.create({value:t})},o=yield r.ListArtifacts(s);if(o.artifacts.length===0)throw new np(`Artifact not found for name: ${t}
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let h=f.data.artifacts[0];return f.data.artifacts.length>1&&(h=f.data.artifacts.sort((d,p)=>p.id-d.id)[0],ft(`More than one artifact found for a single name, returning newest (id: ${h.id})`)),{artifact:{name:h.name,id:h.id,size:h.size_in_bytes,createdAt:h.created_at?new Date(h.created_at):void 0,digest:h.digest}}})}o(W3,"getArtifactPublic");function O9e(t){return D9e(this,void 0,void 0,function*(){var e;let r=fh(),{workflowRunBackendId:i,workflowJobRunBackendId:n}=lh(),s={workflowRunBackendId:i,workflowJobRunBackendId:n,nameFilter:Yi.create({value:t})},a=yield r.ListArtifacts(s);if(a.artifacts.length===0)throw new sp(`Artifact not found for name: ${t}
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let a=o.artifacts[0];return o.artifacts.length>1&&(a=o.artifacts.sort((c,u)=>Number(u.databaseId)-Number(c.databaseId))[0],lt(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`)),{artifact:{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?mc.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var O9e=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};function P9e(t,e,r,i,n){return O9e(this,void 0,void 0,function*(){var s;let[o,a]=AS(KE),c={log:void 0,userAgent:ch(),previews:void 0,retry:o,request:a},u=HA(n,c,t0,e0),l=yield z3(t,e,r,i,n),f=yield u.rest.actions.deleteArtifact({owner:r,repo:i,artifact_id:l.artifact.id});if(f.status!==204)throw new _l(`Invalid response from GitHub API: ${f.status} (${(s=f?.headers)===null||s===void 0?void 0:s["x-github-request-id"]})`);return{id:l.artifact.id}})}function k9e(t){return O9e(this,void 0,void 0,function*(){let e=lh(),{workflowRunBackendId:r,workflowJobRunBackendId:i}=uh(),n={workflowRunBackendId:r,workflowJobRunBackendId:i,nameFilter:Ji.create({value:t})},s=yield e.ListArtifacts(n);if(s.artifacts.length===0)throw new np(`Artifact not found for name: ${t}`);let o=s.artifacts[0];s.artifacts.length>1&&(o=s.artifacts.sort((u,l)=>Number(l.databaseId)-Number(u.databaseId))[0],lt(`More than one artifact found for a single name, returning newest (id: ${o.databaseId})`));let a={workflowRunBackendId:o.workflowRunBackendId,workflowJobRunBackendId:o.workflowJobRunBackendId,name:o.name},c=yield e.DeleteArtifact(a);return wt(`Artifact '${t}' (ID: ${c.artifactId}) deleted`),{id:Number(c.artifactId)}})}var Q9e=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},$3=aFe(),W3=100,Tir=Math.ceil($3/W3);function L9e(t,e,r,i){return Q9e(this,arguments,void 0,function*(n,s,o,a,c=!1){wt(`Fetching artifact list for workflow run ${n} in repository ${s}/${o}`);let u=[],[l,f]=AS(KE),h={log:void 0,userAgent:ch(),previews:void 0,retry:l,request:f},d=HA(a,h,t0,e0),m=1,{data:A}=yield d.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:s,repo:o,run_id:n,per_page:W3,page:m}),y=Math.ceil(A.total_count/W3),g=A.total_count;g>$3&&(hs(`Workflow run ${n} has ${g} artifacts, exceeding the limit of ${$3}. Results will be incomplete as only the first ${$3} artifacts will be returned`),y=Tir);for(let E of A.artifacts)u.push({name:E.name,id:E.id,size:E.size_in_bytes,createdAt:E.created_at?new Date(E.created_at):void 0,digest:E.digest});for(m++,m;m<=y;m++){lt(`Fetching page ${m} of artifact list`);let{data:E}=yield d.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:s,repo:o,run_id:n,per_page:W3,page:m});for(let C of E.artifacts)u.push({name:C.name,id:C.id,size:C.size_in_bytes,createdAt:C.created_at?new Date(C.created_at):void 0,digest:C.digest})}return c&&(u=F9e(u)),wt(`Found ${u.length} artifact(s)`),{artifacts:u}})}function M9e(){return Q9e(this,arguments,void 0,function*(t=!1){let e=lh(),{workflowRunBackendId:r,workflowJobRunBackendId:i}=uh(),n={workflowRunBackendId:r,workflowJobRunBackendId:i},o=(yield e.ListArtifacts(n)).artifacts.map(a=>{var c;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?mc.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=F9e(o)),wt(`Found ${o.length} artifact(s)`),{artifacts:o}})}function F9e(t){t.sort((i,n)=>n.id-i.id);let e=[],r=new Set;for(let i of t)r.has(i.name)||(e.push(i),r.add(i.name));return e}var kN=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},Nir=function(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(t);n<i.length;n++)e.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(t,i[n])&&(r[i[n]]=t[i[n]]);return r},gS=class{uploadArtifact(e,r,i,n){return kN(this,void 0,void 0,function*(){try{if(XC())throw new CA;return Sze(e,r,i,n)}catch(s){throw hs(`Artifact upload failed with error: ${s}.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let c=a.artifacts[0];return a.artifacts.length>1&&(c=a.artifacts.sort((u,l)=>Number(l.databaseId)-Number(u.databaseId))[0],ft(`More than one artifact found for a single name, returning newest (id: ${c.databaseId})`)),{artifact:{name:c.name,id:Number(c.databaseId),size:Number(c.size),createdAt:c.createdAt?Ac.toDate(c.createdAt):void 0,digest:(e=c.digest)===null||e===void 0?void 0:e.value}}})}o(O9e,"getArtifactInternal");var P9e=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function u(f){try{l(i.throw(f))}catch(h){a(h)}}o(u,"rejected");function l(f){f.done?s(f.value):n(f.value).then(c,u)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};function k9e(t,e,r,i,n){return P9e(this,void 0,void 0,function*(){var s;let[a,c]=gS(XE),u={log:void 0,userAgent:uh(),previews:void 0,retry:a,request:c},l=jA(n,u,r0,t0),f=yield W3(t,e,r,i,n),h=yield l.rest.actions.deleteArtifact({owner:r,repo:i,artifact_id:f.artifact.id});if(h.status!==204)throw new xl(`Invalid response from GitHub API: ${h.status} (${(s=h?.headers)===null||s===void 0?void 0:s["x-github-request-id"]})`);return{id:f.artifact.id}})}o(k9e,"deleteArtifactPublic");function Q9e(t){return P9e(this,void 0,void 0,function*(){let e=fh(),{workflowRunBackendId:r,workflowJobRunBackendId:i}=lh(),n={workflowRunBackendId:r,workflowJobRunBackendId:i,nameFilter:Yi.create({value:t})},s=yield e.ListArtifacts(n);if(s.artifacts.length===0)throw new sp(`Artifact not found for name: ${t}`);let a=s.artifacts[0];s.artifacts.length>1&&(a=s.artifacts.sort((l,f)=>Number(f.databaseId)-Number(l.databaseId))[0],ft(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`));let c={workflowRunBackendId:a.workflowRunBackendId,workflowJobRunBackendId:a.workflowJobRunBackendId,name:a.name},u=yield e.DeleteArtifact(c);return Ct(`Artifact '${t}' (ID: ${u.artifactId}) deleted`),{id:Number(u.artifactId)}})}o(Q9e,"deleteArtifactInternal");var L9e=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function u(f){try{l(i.throw(f))}catch(h){a(h)}}o(u,"rejected");function l(f){f.done?s(f.value):n(f.value).then(c,u)}o(l,"step"),l((i=i.apply(t,e||[])).next())})},J3=cFe(),Y3=100,Nir=Math.ceil(J3/Y3);function M9e(t,e,r,i){return L9e(this,arguments,void 0,function*(n,s,a,c,u=!1){Ct(`Fetching artifact list for workflow run ${n} in repository ${s}/${a}`);let l=[],[f,h]=gS(XE),d={log:void 0,userAgent:uh(),previews:void 0,retry:f,request:h},p=jA(c,d,r0,t0),A=1,{data:g}=yield p.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:s,repo:a,run_id:n,per_page:Y3,page:A}),E=Math.ceil(g.total_count/Y3),y=g.total_count;y>J3&&(ds(`Workflow run ${n} has ${y} artifacts, exceeding the limit of ${J3}. Results will be incomplete as only the first ${J3} artifacts will be returned`),E=Nir);for(let b of g.artifacts)l.push({name:b.name,id:b.id,size:b.size_in_bytes,createdAt:b.created_at?new Date(b.created_at):void 0,digest:b.digest});for(A++,A;A<=E;A++){ft(`Fetching page ${A} of artifact list`);let{data:b}=yield p.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:s,repo:a,run_id:n,per_page:Y3,page:A});for(let I of b.artifacts)l.push({name:I.name,id:I.id,size:I.size_in_bytes,createdAt:I.created_at?new Date(I.created_at):void 0,digest:I.digest})}return u&&(l=U9e(l)),Ct(`Found ${l.length} artifact(s)`),{artifacts:l}})}o(M9e,"listArtifactsPublic");function F9e(){return L9e(this,arguments,void 0,function*(t=!1){let e=fh(),{workflowRunBackendId:r,workflowJobRunBackendId:i}=lh(),n={workflowRunBackendId:r,workflowJobRunBackendId:i},a=(yield e.ListArtifacts(n)).artifacts.map(c=>{var u;return{name:c.name,id:Number(c.databaseId),size:Number(c.size),createdAt:c.createdAt?Ac.toDate(c.createdAt):void 0,digest:(u=c.digest)===null||u===void 0?void 0:u.value}});return t&&(a=U9e(a)),Ct(`Found ${a.length} artifact(s)`),{artifacts:a}})}o(F9e,"listArtifactsInternal");function U9e(t){t.sort((i,n)=>n.id-i.id);let e=[],r=new Set;for(let i of t)r.has(i.name)||(e.push(i),r.add(i.name));return e}o(U9e,"filterLatest");var QN=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function u(f){try{l(i.throw(f))}catch(h){a(h)}}o(u,"rejected");function l(f){f.done?s(f.value):n(f.value).then(c,u)}o(l,"step"),l((i=i.apply(t,e||[])).next())})},Dir=function(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n Line truncated
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),s}})}downloadArtifact(e,r){return kN(this,void 0,void 0,function*(){try{if(XC())throw new CA;if(r?.findBy){let{findBy:{repositoryOwner:i,repositoryName:n,token:s}}=r,o=Nir(r,["findBy"]);return S9e(e,i,n,s,o)}return B9e(e,r)}catch(i){throw hs(`Download Artifact failed with error: ${i}.
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),s}})}downloadArtifact(e,r){return QN(this,void 0,void 0,function*(){try{if(ZC())throw new IA;if(r?.findBy){let{findBy:{repositoryOwner:i,repositoryName:n,token:s}}=r,a=Dir(r,["findBy"]);return B9e(e,i,n,s,a)}return v9e(e,r)}catch(i){throw ds(`Download Artifact failed with error: ${i}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}listArtifacts(e){return kN(this,void 0,void 0,function*(){try{if(XC())throw new CA;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:i,repositoryName:n,token:s}}=e;return L9e(r,i,n,s,e?.latest)}return M9e(e?.latest)}catch(r){throw hs(`Listing Artifacts failed with error: ${r}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}listArtifacts(e){return QN(this,void 0,void 0,function*(){try{if(ZC())throw new IA;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:i,repositoryName:n,token:s}}=e;return M9e(r,i,n,s,e?.latest)}return F9e(e?.latest)}catch(r){throw ds(`Listing Artifacts failed with error: ${r}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return kN(this,void 0,void 0,function*(){try{if(XC())throw new CA;if(r?.findBy){let{findBy:{workflowRunId:i,repositoryOwner:n,repositoryName:s,token:o}}=r;return z3(e,i,n,s,o)}return D9e(e)}catch(i){throw hs(`Get Artifact failed with error: ${i}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return QN(this,void 0,void 0,function*(){try{if(ZC())throw new IA;if(r?.findBy){let{findBy:{workflowRunId:i,repositoryOwner:n,repositoryName:s,token:a}}=r;return W3(e,i,n,s,a)}return O9e(e)}catch(i){throw ds(`Get Artifact failed with error: ${i}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}deleteArtifact(e,r){return kN(this,void 0,void 0,function*(){try{if(XC())throw new CA;if(r?.findBy){let{findBy:{repositoryOwner:i,repositoryName:n,workflowRunId:s,token:o}}=r;return P9e(e,s,i,n,o)}return k9e(e)}catch(i){throw hs(`Delete Artifact failed with error: ${i}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}deleteArtifact(e,r){return QN(this,void 0,void 0,function*(){try{if(ZC())throw new IA;if(r?.findBy){let{findBy:{repositoryOwner:i,repositoryName:n,workflowRunId:s,token:a}}=r;return k9e(e,s,i,n,a)}return Q9e(e)}catch(i){throw ds(`Delete Artifact failed with error: ${i}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}};var tri=new gS;var J3=class{static async upload(e){if(At.isGHES)throw new Error("@actions/artifact v2.0.0+ is currently not supported on GHES.");let r=bae.default.basename(e.filename),i=new gS;H(`Uploading ${r} as an artifact`);let n=bae.default.dirname(e.filename),s=await i.uploadArtifact(r,[e.filename],n,{retentionDays:e.retentionDays,skipArchive:!0});if(!s.id)throw new _l("Cannot upload artifact");let o=s.size??U9e.default.statSync(e.filename).size,a=`${At.workflowRunURL()}/artifacts/${s.id}`;return H(`Artifact download URL: ${a}`),{id:s.id,filename:r,digest:s.digest||"",size:o,url:a}}};var Pae=O(q9e(),1);function i$e(t){return typeof t>"u"||t===null}function Dir(t){return typeof t=="object"&&t!==null}function Oir(t){return Array.isArray(t)?t:i$e(t)?[]:[t]}function Pir(t,e){var r,i,n,s;if(e)for(s=Object.keys(e),r=0,i=s.length;r<i;r+=1)n=s[r],t[n]=e[n];return t}function kir(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function Qir(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var Lir=i$e,Mir=Dir,Fir=Oir,Uir=kir,qir=Qir,Gir=Pir,gn={isNothing:Lir,isObject:Mir,toArray:Fir,repeat:Uir,isNegativeZero:qir,extend:Gir};function n$e(t,e){var r="",i=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}};var oyi=new yS;var K3=class{static{o(this,"GitHubArtifact")}static async upload(e){if(gt.isGHES)throw new Error("@actions/artifact v2.0.0+ is currently not supported on GHES.");let r=wae.default.basename(e.filename),i=new yS;j(`Uploading ${r} as an artifact`);let n=wae.default.dirname(e.filename),s=await i.uploadArtifact(r,[e.filename],n,{retentionDays:e.retentionDays,skipArchive:!0});if(!s.id)throw new xl("Cannot upload artifact");let a=s.size??q9e.default.statSync(e.filename).size,c=`${gt.workflowRunURL()}/artifacts/${s.id}`;return j(`Artifact download URL: ${c}`),{id:s.id,filename:r,digest:s.digest||"",size:a,url:c}}};var kae=P(G9e(),1);function n$e(t){return typeof t>"u"||t===null}o(n$e,"isNothing");function Oir(t){return typeof t=="object"&&t!==null}o(Oir,"isObject");function Pir(t){return Array.isArray(t)?t:n$e(t)?[]:[t]}o(Pir,"toArray");function kir(t,e){var r,i,n,s;if(e)for(s=Object.keys(e),r=0,i=s.length;r<i;r+=1)n=s[r],t[n]=e[n];return t}o(kir,"extend");function Qir(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}o(Qir,"repeat");function Lir(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}o(Lir,"isNegativeZero");var Mir=n$e,Fir=Oir,Uir=Pir,qir=Qir,Gir=Lir,Hir=kir,yn={isNothing:Mir,isObject:Fir,toArray:Uir,repeat:qir,isNegativeZero:Gir,extend:Hir};function s$e(t,e){var r="",i=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
`+t.mark.snippet),i+" "+r):i}function MN(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=n$e(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}MN.prototype=Object.create(Error.prototype);MN.prototype.constructor=MN;MN.prototype.toString=function(e){return this.name+": "+n$e(this,e)};var Ia=MN;function wae(t,e,r,i,n){var s="",o="",a=Math.floor(n/2)-1;return i-e>a&&(s=" ... ",e=i-a+s.length),r-i>a&&(o=" ...",r=i+a-o.length),{str:s+t.slice(e,r).replace(/\t/g,"\u2192")+o,pos:i-e+s.length}}function Cae(t,e){return gn.repeat(" ",e-t.length)+t}function Hir(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],n=[],s,o=-1;s=r.exec(t.buffer);)n.push(s.index),i.push(s.index+s[0].length),t.position<=s.index&&o<0&&(o=i.length-2);o<0&&(o=i.length-1);var a="",c,u,l=Math.min(t.line+e.linesAfter,n.length).toString().length,f=e.maxLength-(e.indent+l+3);for(c=1;c<=e.linesBefore&&!(o-c<0);c++)u=wae(t.buffer,i[o-c],n[o-c],t.position-(i[o]-i[o-c]),f),a=gn.repeat(" ",e.indent)+Cae((t.line-c+1).toString(),l)+" | "+u.str+`
`+a;for(u=wae(t.buffer,i[o],n[o],t.position,f),a+=gn.repeat(" ",e.indent)+Cae((t.line+1).toString(),l)+" | "+u.str+`
`,a+=gn.repeat("-",e.indent+l+3+u.pos)+`^
`,c=1;c<=e.linesAfter&&!(o+c>=n.length);c++)u=wae(t.buffer,i[o+c],n[o+c],t.position-(i[o]-i[o+c]),f),a+=gn.repeat(" ",e.indent)+Cae((t.line+c+1).toString(),l)+" | "+u.str+`
`;return a.replace(/\n$/,"")}var jir=Hir,Vir=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],zir=["scalar","sequence","mapping"];function $ir(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}function Wir(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(Vir.indexOf(r)===-1)throw new Ia('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=$ir(e.styleAliases||null),zir.indexOf(this.kind)===-1)throw new Ia('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var Fs=Wir;function G9e(t,e){var r=[];return t[e].forEach(function(i){var n=r.length;r.forEach(function(s,o){s.tag===i.tag&&s.kind===i.kind&&s.multi===i.multi&&(n=o)}),r[n]=i}),r}function Jir(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function i(n){n.multi?(t.multi[n.kind].push(n),t.multi.fallback.push(n)):t[n.kind][n.tag]=t.fallback[n.tag]=n}for(e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(i);return t}function Sae(t){return this.extend(t)}Sae.prototype.extend=function(e){var r=[],i=[];if(e instanceof Fs)i.push(e);else if(Array.isArray(e))i=i.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(i=i.concat(e.explicit));else throw new Ia("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof Fs))throw new Ia("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new Ia("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new Ia("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(s){if(!(s instanceof Fs))throw new Ia("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(Sae.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=G9e(n,"implicit"),n.compiledExplicit=G9e(n,"explicit"),n.compiledTypeMap=Jir(n.compiledImplicit,n.compiledExplicit),n};var Yir=Sae,Kir=new Fs("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),Xir=new Fs("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),Zir=new Fs("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),enr=new Yir({explicit:[Kir,Xir,Zir]});function tnr(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function rnr(){return null}function inr(t){return t===null}var nnr=new Fs("tag:yaml.org,2002:null",{kind:"scalar",resolve:tnr,construct:rnr,predicate:inr,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function snr(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function onr(t){return t==="true"||t==="True"||t==="TRUE"}function anr(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var cnr=new Fs("tag:yaml.org,2002:bool",{kind:"scalar",resolve:snr,construct:onr,predicate:anr,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function unr(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function lnr(t){return 48<=t&&t<=55}function fnr(t){return 48<=t&&t<=57}function hnr(t){if(t===null)return!1;var e=t.length,r=0,i=!1,n;if(!e)return!1;if(n=t[r],(n==="-"||n==="+")&&(n=t[++r]),n==="0"){if(r+1===e)return!0;if(n=t[++r],n==="b"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(n!=="0"&&n!=="1")return!1;i=!0}return i&&n!=="_"}if(n==="x"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!unr(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!lnr(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<e;r++)if(n=t[r],n!=="_"){if(!fnr(t.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}function dnr(t){var e=t,r=1,i;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),i=e[0],(i==="-"||i==="+")&&(i==="-"&&(r=-1),e=e.slice(1),i=e[0]),e==="0")retur Line truncated
\r`;function Nnr(t){if(t===null)return!1;var e,r,i=0,n=t.length,s=Rae;for(r=0;r<n;r++)if(e=s.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;i+=6}return i%8===0}function Dnr(t){var e,r,i=t.replace(/[\r\n=]/g,""),n=i.length,s=Rae,o=0,a=[];for(e=0;e<n;e++)e%4===0&&e&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(i.charAt(e));return r=n%4*6,r===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):r===18?(a.push(o>>10&255),a.push(o>>2&255)):r===12&&a.push(o>>4&255),new Uint8Array(a)}function Onr(t){var e="",r=0,i,n,s=t.length,o=Rae;for(i=0;i<s;i++)i%3===0&&i&&(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]),r=(r<<8)+t[i];return n=s%3,n===0?(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]):n===2?(e+=o[r>>10&63],e+=o[r>>4&63],e+=o[r<<2&63],e+=o[64]):n===1&&(e+=o[r>>2&63],e+=o[r<<4&63],e+=o[64],e+=o[64]),e}function Pnr(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var knr=new Fs("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Nnr,construct:Dnr,predicate:Pnr,represent:Onr}),Qnr=Object.prototype.hasOwnProperty,Lnr=Object.prototype.toString;function Mnr(t){if(t===null)return!0;var e=[],r,i,n,s,o,a=t;for(r=0,i=a.length;r<i;r+=1){if(n=a[r],o=!1,Lnr.call(n)!=="[object Object]")return!1;for(s in n)if(Qnr.call(n,s))if(!o)o=!0;else return!1;if(!o)return!1;if(e.indexOf(s)===-1)e.push(s);else return!1}return!0}function Fnr(t){return t!==null?t:[]}var Unr=new Fs("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Mnr,construct:Fnr}),qnr=Object.prototype.toString;function Gnr(t){if(t===null)return!0;var e,r,i,n,s,o=t;for(s=new Array(o.length),e=0,r=o.length;e<r;e+=1){if(i=o[e],qnr.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;s[e]=[n[0],i[n[0]]]}return!0}function Hnr(t){if(t===null)return[];var e,r,i,n,s,o=t;for(s=new Array(o.length),e=0,r=o.length;e<r;e+=1)i=o[e],n=Object.keys(i),s[e]=[n[0],i[n[0]]];return s}var jnr=new Fs("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Gnr,construct:Hnr}),Vnr=Object.prototype.hasOwnProperty;function znr(t){if(t===null)return!0;var e,r=t;for(e in r)if(Vnr.call(r,e)&&r[e]!==null)return!1;return!0}function $nr(t){return t!==null?t:{}}var Wnr=new Fs("tag:yaml.org,2002:set",{kind:"mapping",resolve:znr,construct:$nr}),a$e=Snr.extend({implicit:[xnr,Tnr],explicit:[knr,Unr,jnr,Wnr]}),WA=Object.prototype.hasOwnProperty,K3=1,c$e=2,u$e=3,X3=4,Iae=1,Jnr=2,H9e=3,Ynr=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Knr=/[\x85\u2028\u2029]/,Xnr=/[,\[\]\{\}]/,l$e=/^(?:!|!!|![a-z\-]+!)$/i,f$e=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function j9e(t){return Object.prototype.toString.call(t)}function Ih(t){return t===10||t===13}function i0(t){return t===9||t===32}function Sa(t){return t===9||t===32||t===10||t===13}function ES(t){return t===44||t===91||t===93||t===123||t===125}function Znr(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function esr(t){return t===120?2:t===117?4:t===85?8:0}function tsr(t){return 48<=t&&t<=57?t-48:-1}function V9e(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}function rsr(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}function h$e(t,e,r){e==="__proto__"?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r}):t[e]=r}var d$e=new Array(256),p$e=new Array(256);for(r0=0;r0<256;r0++)d$e[r0]=V9e(r0)?1:0,p$e[r0]=V9e(r0);var r0;function isr(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||a$e,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function m$e(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=jir(r),new Ia(e,r)}function Le(t,e){throw m$e(t,e)}function Z3(t,e){t.onWarning&&t.onWarning.call(null,m$e(t,e))}var z9e={YAML:function(e,r,i){var n,s,o;e.version!==null&&Le(e,"duplication of %YAML directive"),i.length!==1&&Le(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),n===null&&Le(e,"ill-formed argument of the YAML directive"),s=parseInt(n[1],10),o=parseInt(n[2],10),s!==1&&Le(e,"unacceptable YAML version of the document"),e.version=i[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&Z3(e,"unsupported YAML version of the document")},TAG:function(e,r,i){var n,s;i.length!==2&&Le(e,"TAG directive accepts exactly two arguments"),n=i[0],s=i[1],l$e.test(n)||Le(e,"ill-formed tag handle (first argument) of the TAG directive"),WA.call(e.tagMap,n)&&Le(e,'there is a previously declared suffix for "'+n+'" tag handle'),f$e.test(s)||Le(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{Le(e,"tag prefix is malformed: "+s)}e.tagMap[n]=s}};function $A(t,e,r,i){var n,s,o,a;if(e<r){if(a=t.input.slice(e,r),i)for(n=0,s=a.length;n<s;n+=1)o=a.charCodeAt(n),o===9||32<=o&&o<=1114111||Le(t,"expected valid JSON character");else Ynr.test(a)&&Le(t,"the stream contains non-printable characters");t.result+=a}}function $9e(t,e,r,i){var n,s,o,a;for(gn.isObject(r)||Le(t,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),o=0,a=n.length;o<a;o+=1)s=n[o],WA.call(e,s)||(h$e(e,s,r[s]),i[s]=!0)}function bS(t,e,r,i,n,s,o,a,c){var u,l;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),u=0,l=n.length;u<l;u+=1)Array.isArray(n[u])&&Le(t,"nested arrays are not supported inside keys"),typeof n=="object"&&j9e(n[u])==="[object Object]"&&(n[u]="[object Object]");if(typeof n=="object"&&j9e(n)==="[object Object]"&&(n="[object Object]"),n=String(n),e===null&&(e={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(u=0,l=s.length;u<l;u+=1)$9e(t,e,s[u],r);else $9e(t,e,s,r);else!t.json&&!WA.call(r,n)&&WA.call(e,n)&&(t.line=o||t.line,t.lineStart=a||t.lineStart,t.position=c||t.position,Le(t,"duplicated mapping key")),h$e(e,n,s),delete r[n];return e}function Tae(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):Le(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function Xi(t,e,r){for(var i=0,n=t.input.charCodeAt(t.position);n!==0;){for(;i0(n);)n===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),n=t.input.charCodeAt(++t.position);if(e&&n===35)do n=t.input.charCodeAt(++t.position);while(n!==10&&n!==13&&n!==0);if(Ih(n))for(Tae(t),n=t.input.charCodeAt(t.position),i++,t.lineIndent=0;n===32;)t.lineIndent++,n=t.input.charCodeAt(++t.position);else break}return r!==-1&&i!==0&&t.lineIndent<r&&Z3(t,"deficient indentation"),i}function r4(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||Sa(r)))}function Nae(t,e){e===1?t.result+=" ":e>1&&(t.result+=gn.repeat(`
`,e-1))}function nsr(t,e,r){var i,n,s,o,a,c,u,l,f=t.kind,h=t.result,d;if(d=t.input.charCodeAt(t.position),Sa(d)||ES(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(n=t.input.charCodeAt(t.position+1),Sa(n)||r&&ES(n)))return!1;for(t.kind="scalar",t.result="",s=o=t.position,a=!1;d!==0;){if(d===58){if(n=t.input.charCodeAt(t.position+1),Sa(n)||r&&ES(n))break}else if(d===35){if(i=t.input.charCodeAt(t.position-1),Sa(i))break}else{if(t.position===t.lineStart&&r4(t)||r&&ES(d))break;if(Ih(d))if(c=t.line,u=t.lineStart,l=t.lineIndent,Xi(t,!1,-1),t.lineIndent>=e){a=!0,d=t.input.charCodeAt(t.position);continue}else{t.position=o,t.line=c,t.lineStart=u,t.lineIndent=l;break}}a&&($A(t,s,o,!1),Nae(t,t.line-c),s=o=t.position,a=!1),i0(d)||(o=t.position+1),d=t.input.charCodeAt(++t.position)}return $A(t,s,o,!1),t.result?!0:(t.kind=f,t.result=h,!1)}function ssr(t,e){var r,i,n;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,i=n=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if($A(t,i,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)i=t.position,t.position++,n=t.position;else return!0;else Ih(r)?($A(t,i,n,!0),Nae(t,Xi(t,!1,e)),i=n=t.position):t.position===t.lineStart&&r4(t)?Le(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);Le(t,"unexpected end of the stream within a single quoted scalar")}function osr(t,e){var r,i,n,s,o,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return $A(t,r,t.position,!0),t.position++,!0;if(a===92){if($A(t,r,t.position,!0),a=t.input.charCodeAt(++t.position),Ih(a))Xi(t,!1,e);else if(a<256&&d$e[a])t.result+=p$e[a],t.position++;else if((o=esr(a))>0){for(n=o,s=0;n>0;n--)a=t.input.charCodeAt(++t.position),(o=Znr(a))>=0?s=(s<<4)+o:Le(t,"expected hexadecimal character");t.result+=rsr(s),t.position++}else Le(t,"unknown escape sequence");r=i=t.position}else Ih(a)?($A(t,r,i,!0),Nae(t,Xi(t,!1,e)),r=i=t.position):t.position===t.lineStart&&r4(t)?Le(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}Le(t,"unexpected end of the stream within a double quoted scalar")}function asr(t,e){var r=!0,i,n,s,o=t.tag,a,c=t.anchor,u,l,f,h,d,m=Object.create(null),A,y,g,E;if(E=t.input.charCodeAt(t.position),E===91)l=93,d=!1,a=[];else if(E===123)l=125,d=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),E=t.input.charCodeAt(++t.position);E!==0;){if(Xi(t,!0,e),E=t.input.charCodeAt(t.position),E===l)return t.position++,t.tag=o,t.anchor=c,t.kind=d?"mapping":"sequence",t.result=a,!0;r?E===44&&Le(t,"expected the node content, but found ','"):Le(t,"missed comma between flow collection entries"),y=A=g=null,f=h=!1,E===63&&(u=t.input.charCodeAt(t.position+1),Sa(u)&&(f=h=!0,t.position++,Xi(t,!0,e))),i=t.line,n=t.lineStart,s=t.position,wS(t,e,K3,!1,!0),y=t.tag,A=t.result,Xi(t,!0,e),E=t.input.charCodeAt(t.position),(h||t.line===i)&&E===58&&(f=!0,E=t.input.charCodeAt(++t.position),Xi(t,!0,e),wS(t,e,K3,!1,!0),g=t.result),d?bS(t,a,m,y,A,g,i,n,s):f?a.push(bS(t,null,m,y,A,g,i,n,s)):a.push(A),Xi(t,!0,e),E=t.input.charCodeAt(t.position),E===44?(r=!0,E=t.input.charCodeAt(++t.position)):r=!1}Le(t,"unexpected end of the stream within a flow collection")}function csr(t,e){var r,i,n=Iae,s=!1,o=!1,a=e,c=0,u=!1,l,f;if(f=t.input.charCodeAt(t.position),f===124)i=!1;else if(f===62)i=!0;else return!1;for(t.kind="scalar",t.result="";f!==0;)if(f=t.input.charCodeAt(++t.position),f===43||f===45)Iae===n?n=f===43?H9e:Jnr:Le(t,"repeat of a chomping mode identifier");else if((l=tsr(f))>=0)l===0?Le(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?Le(t,"repeat of an indentation width identifier"):(a=e+l-1,o=!0);else break;if(i0(f)){do f=t.input.charCodeAt(++t.position);while(i0(f));if(f===35)do f=t.input.charCodeAt(++t.position);while(!Ih(f)&&f!==0)}for(;f!==0;){for(Tae(t),t.lineIndent=0,f=t.input.charCodeAt(t.position);(!o||t.lineIndent<a)&&f===32;)t.lineIndent++,f=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>a&&(a=t.lineIndent),Ih(f)){c++;continue}if(t.lineIndent<a){n===H9e?t.result+=gn.repeat(`
`,s?1+c:c):n===Iae&&s&&(t.result+=`
`);break}for(i?i0(f)?(u=!0,t.result+=gn.repeat(`
`,s?1+c:c)):u?(u=!1,t.result+=gn.repeat(`
`,c+1)):c===0?s&&(t.result+=" "):t.result+=gn.repeat(`
`,c):t.result+=gn.repeat(`
`,s?1+c:c),s=!0,o=!0,c=0,r=t.position;!Ih(f)&&f!==0;)f=t.input.charCodeAt(++t.position);$A(t,r,t.position,!1)}return!0}function W9e(t,e){var r,i=t.tag,n=t.anchor,s=[],o,a=!1,c;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),c=t.input.charCodeAt(t.position);c!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Le(t,"tab characters must not be used in indentation")),!(c!==45||(o=t.input.charCodeAt(t.position+1),!Sa(o))));){if(a=!0,t.position++,Xi(t,!0,-1)&&t.lineIndent<=e){s.push(null),c=t.input.charCodeAt(t.position);continue}if(r=t.line,wS(t,e,u$e,!1,!0),s.push(t.result),Xi(t,!0,-1),c=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&c!==0)Le(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=i,t.anchor=n,t.kind="sequence",t.result=s,!0):!1}function usr(t,e,r){var i,n,s,o,a,c,u=t.tag,l=t.anchor,f={},h=Object.create(null),d=null,m=null,A=null,y=!1,g=!1,E;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=f),E=t.input.charCodeAt(t.position);E!==0;){if(!y&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Le(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),s=t.line,(E===63||E===58)&&Sa(i))E===63?(y&&(bS(t,f,h,d,m,null,o,a,c),d=m=A=null),g=!0,y=!0,n=!0):y?(y=!1,n=!0):Le(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,E=i;else{if(o=t.line,a=t.lineStart,c=t.position,!wS(t,r,c$e,!1,!0))break;if(t.line===s){for(E=t.input.charCodeAt(t.position);i0(E);)E=t.input.charCodeAt(++t.position);if(E===58)E=t.input.charCodeAt(++t.position),Sa(E)||Le(t,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(bS(t,f,h,d,m,null,o,a,c),d=m=A=null),g=!0,y=!1,n=!1,d=t.tag,m=t.result;else if(g)Le(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=u,t.anchor=l,!0}else if(g)Le(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=u,t.anchor=l,!0}if((t.line===s||t.lineIndent>e)&&(y&&(o=t.line,a=t.lineStart,c=t.position),wS(t,e,X3,!0,n)&&(y?m=t.result:A=t.result),y||(bS(t,f,h,d,m,A,o,a,c),d=m=A=null),Xi(t,!0,-1),E=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&E!==0)Le(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return y&&bS(t,f,h,d,m,null,o,a,c),g&&(t.tag=u,t.anchor=l,t.kind="mapping",t.result=f),g}function lsr(t){var e,r=!1,i=!1,n,s,o;if(o=t.input.charCodeAt(t.position),o!==33)return!1;if(t.tag!==null&&Le(t,"duplication of a tag property"),o=t.input.charCodeAt(++t.position),o===60?(r=!0,o=t.input.charCodeAt(++t.position)):o===33?(i=!0,n="!!",o=t.input.charCodeAt(++t.position)):n="!",e=t.position,r){do o=t.input.charCodeAt(++t.position);while(o!==0&&o!==62);t.position<t.length?(s=t.input.slice(e,t.position),o=t.input.charCodeAt(++t.position)):Le(t,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!Sa(o);)o===33&&(i?Le(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),l$e.test(n)||Le(t,"named tag handle cannot contain such characters"),i=!0,e=t.position+1)),o=t.input.charCodeAt(++t.position);s=t.input.slice(e,t.position),Xnr.test(s)&&Le(t,"tag suffix cannot contain flow indicator characters")}s&&!f$e.test(s)&&Le(t,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{Le(t,"tag name is malformed: "+s)}return r?t.tag=s:WA.call(t.tagMap,n)?t.tag=t.tagMap[n]+s:n==="!"?t.tag="!"+s:n==="!!"?t.tag="tag:yaml.org,2002:"+s:Le(t,'undeclared tag handle "'+n+'"'),!0}function fsr(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&Le(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!Sa(r)&&!ES(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&Le(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function hsr(t){var e,r,i;if(i=t.input.charCodeAt(t.position),i!==42)return!1;for(i=t.input.charCodeAt(++t.position),e=t.position;i!==0&&!Sa(i)&&!ES(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&Le(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),WA.call(t.anchorMap,r)||Le(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],Xi(t,!0,-1),!0}function wS(t,e,r,i,n){var s,o,a,c=1,u=!1,l=!1,f,h,d,m,A,y;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=o=a=X3===r||u$e===r,i&&Xi(t,!0,-1)&&(u=!0,t.lineIndent>e?c=1:t.lineIndent===e?c=0:t.lineIndent<e&&(c=-1)),c===1)for(;lsr(t)||fsr(t);)Xi(t,!0,-1)?(u=!0,a=s,t.lineIndent>e?c=1:t.lineIndent===e?c=0:t.lineIndent<e&&(c=-1)):a=!1;if(a&&(a=u||n),(c===1||X3===r)&&(K3===r||c$e===r?A=e:A=e+1,y=t.position-t.lineStart,c===1?a&&(W9e(t,y)||usr(t,y,A))||asr(t,A)?l=!0:(o&&csr(t,A)||ssr(t,A)||osr(t,A)?l=!0:hsr(t)?(l=!0,(t.tag!==null||t. Line truncated
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new isr(t,e),i=t.indexOf("\0");for(i!==-1&&(r.position=i,Le(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)dsr(r);return r.documents}function psr(t,e,r){e!==null&&typeof e=="object"&&typeof r>"u"&&(r=e,e=null);var i=A$e(t,r);if(typeof e!="function")return i;for(var n=0,s=i.length;n<s;n+=1)e(i[n])}function msr(t,e){var r=A$e(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new Ia("expected a single document in the stream, but found more")}}var Asr=psr,gsr=msr,g$e={loadAll:Asr,load:gsr},y$e=Object.prototype.toString,E$e=Object.prototype.hasOwnProperty,Dae=65279,ysr=9,FN=10,Esr=13,bsr=32,wsr=33,Csr=34,Bae=35,Isr=37,Ssr=38,Bsr=39,vsr=42,b$e=44,_sr=45,e4=58,xsr=61,Rsr=62,Tsr=63,Nsr=64,w$e=91,C$e=93,Dsr=96,I$e=123,Osr=124,S$e=125,Us={};Us[0]="\\0";Us[7]="\\a";Us[8]="\\b";Us[9]="\\t";Us[10]="\\n";Us[11]="\\v";Us[12]="\\f";Us[13]="\\r";Us[27]="\\e";Us[34]='\\"';Us[92]="\\\\";Us[133]="\\N";Us[160]="\\_";Us[8232]="\\L";Us[8233]="\\P";var Psr=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],ksr=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Qsr(t,e){var r,i,n,s,o,a,c;if(e===null)return{};for(r={},i=Object.keys(e),n=0,s=i.length;n<s;n+=1)o=i[n],a=String(e[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),c=t.compiledTypeMap.fallback[o],c&&E$e.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[o]=a;return r}function Lsr(t){var e,r,i;if(e=t.toString(16).toUpperCase(),t<=255)r="x",i=2;else if(t<=65535)r="u",i=4;else if(t<=4294967295)r="U",i=8;else throw new Ia("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+gn.repeat("0",i-e.length)+e}var Msr=1,UN=2;function Fsr(t){this.schema=t.schema||a$e,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=gn.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=Qsr(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType==='"'?UN:Msr,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer=="function"?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function J9e(t,e){for(var r=gn.repeat(" ",e),i=0,n=-1,s="",o,a=t.length;i<a;)n=t.indexOf(`
`,i),n===-1?(o=t.slice(i),i=a):(o=t.slice(i,n+1),i=n+1),o.length&&o!==`
`&&(s+=r),s+=o;return s}function vae(t,e){return`
`+gn.repeat(" ",t.indent*e)}function Usr(t,e){var r,i,n;for(r=0,i=t.implicitTypes.length;r<i;r+=1)if(n=t.implicitTypes[r],n.resolve(e))return!0;return!1}function t4(t){return t===bsr||t===ysr}function qN(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==Dae||65536<=t&&t<=1114111}function Y9e(t){return qN(t)&&t!==Dae&&t!==Esr&&t!==FN}function K9e(t,e,r){var i=Y9e(t),n=i&&!t4(t);return(r?i:i&&t!==b$e&&t!==w$e&&t!==C$e&&t!==I$e&&t!==S$e)&&t!==Bae&&!(e===e4&&!n)||Y9e(e)&&!t4(e)&&t===Bae||e===e4&&n}function qsr(t){return qN(t)&&t!==Dae&&!t4(t)&&t!==_sr&&t!==Tsr&&t!==e4&&t!==b$e&&t!==w$e&&t!==C$e&&t!==I$e&&t!==S$e&&t!==Bae&&t!==Ssr&&t!==vsr&&t!==wsr&&t!==Osr&&t!==xsr&&t!==Rsr&&t!==Bsr&&t!==Csr&&t!==Isr&&t!==Nsr&&t!==Dsr}function Gsr(t){return!t4(t)&&t!==e4}function LN(t,e){var r=t.charCodeAt(e),i;return r>=55296&&r<=56319&&e+1<t.length&&(i=t.charCodeAt(e+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function B$e(t){var e=/^\n* /;return e.test(t)}var v$e=1,_ae=2,_$e=3,x$e=4,yS=5;function Hsr(t,e,r,i,n,s,o,a){var c,u=0,l=null,f=!1,h=!1,d=i!==-1,m=-1,A=qsr(LN(t,0))&&Gsr(LN(t,t.length-1));if(e||o)for(c=0;c<t.length;u>=65536?c+=2:c++){if(u=LN(t,c),!qN(u))return yS;A=A&&K9e(u,l,a),l=u}else{for(c=0;c<t.length;u>=65536?c+=2:c++){if(u=LN(t,c),u===FN)f=!0,d&&(h=h||c-m-1>i&&t[m+1]!==" ",m=c);else if(!qN(u))return yS;A=A&&K9e(u,l,a),l=u}h=h||d&&c-m-1>i&&t[m+1]!==" "}return!f&&!h?A&&!o&&!n(t)?v$e:s===UN?yS:_ae:r>9&&B$e(t)?yS:o?s===UN?yS:_ae:h?x$e:_$e}function jsr(t,e,r,i,n){t.dump=(function(){if(e.length===0)return t.quotingType===UN?'""':"''";if(!t.noCompatMode&&(Psr.indexOf(e)!==-1||ksr.test(e)))return t.quotingType===UN?'"'+e+'"':"'"+e+"'";var s=t.indent*Math.max(1,r),o=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-s),a=i||t.flowLevel>-1&&r>=t.flowLevel;function c(u){return Usr(t,u)}switch(Hsr(e,a,t.indent,o,c,t.quotingType,t.forceQuotes&&!i,n)){case v$e:return e;case _ae:return"'"+e.replace(/'/g,"''")+"'";case _$e:return"|"+X9e(e,t.indent)+Z9e(J9e(e,s));case x$e:return">"+X9e(e,t.indent)+Z9e(J9e(Vsr(e,o),s));case yS:return'"'+zsr(e)+'"';default:throw new Ia("impossible error: invalid scalar style")}})()}function X9e(t,e){var r=B$e(t)?String(e):"",i=t[t.length-1]===`
`+t.mark.snippet),i+" "+r):i}o(s$e,"formatError");function FN(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=s$e(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}o(FN,"YAMLException$1");FN.prototype=Object.create(Error.prototype);FN.prototype.constructor=FN;FN.prototype.toString=o(function(e){return this.name+": "+s$e(this,e)},"toString");var Sa=FN;function Cae(t,e,r,i,n){var s="",a="",c=Math.floor(n/2)-1;return i-e>c&&(s=" ... ",e=i-c+s.length),r-i>c&&(a=" ...",r=i+c-a.length),{str:s+t.slice(e,r).replace(/\t/g,"\u2192")+a,pos:i-e+s.length}}o(Cae,"getLine");function Iae(t,e){return yn.repeat(" ",e-t.length)+t}o(Iae,"padStart");function jir(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],n=[],s,a=-1;s=r.exec(t.buffer);)n.push(s.index),i.push(s.index+s[0].length),t.position<=s.index&&a<0&&(a=i.length-2);a<0&&(a=i.length-1);var c="",u,l,f=Math.min(t.line+e.linesAfter,n.length).toString().length,h=e.maxLength-(e.indent+f+3);for(u=1;u<=e.linesBefore&&!(a-u<0);u++)l=Cae(t.buffer,i[a-u],n[a-u],t.position-(i[a]-i[a-u]),h),c=yn.repeat(" ",e.indent)+Iae((t.line-u+1).toString(),f)+" | "+l.str+`
`+c;for(l=Cae(t.buffer,i[a],n[a],t.position,h),c+=yn.repeat(" ",e.indent)+Iae((t.line+1).toString(),f)+" | "+l.str+`
`,c+=yn.repeat("-",e.indent+f+3+l.pos)+`^
`,u=1;u<=e.linesAfter&&!(a+u>=n.length);u++)l=Cae(t.buffer,i[a+u],n[a+u],t.position-(i[a]-i[a+u]),h),c+=yn.repeat(" ",e.indent)+Iae((t.line+u+1).toString(),f)+" | "+l.str+`
`;return c.replace(/\n$/,"")}o(jir,"makeSnippet");var Vir=jir,zir=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],$ir=["scalar","sequence","mapping"];function Wir(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}o(Wir,"compileStyleAliases");function Jir(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(zir.indexOf(r)===-1)throw new Sa('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=Wir(e.styleAliases||null),$ir.indexOf(this.kind)===-1)throw new Sa('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}o(Jir,"Type$1");var Us=Jir;function H9e(t,e){var r=[];return t[e].forEach(function(i){var n=r.length;r.forEach(function(s,a){s.tag===i.tag&&s.kind===i.kind&&s.multi===i.multi&&(n=a)}),r[n]=i}),r}o(H9e,"compileList");function Yir(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function i(n){n.multi?(t.multi[n.kind].push(n),t.multi.fallback.push(n)):t[n.kind][n.tag]=t.fallback[n.tag]=n}for(o(i,"collectType"),e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(i);return t}o(Yir,"compileMap");function Bae(t){return this.extend(t)}o(Bae,"Schema$1");Bae.prototype.extend=o(function(e){var r=[],i=[];if(e instanceof Us)i.push(e);else if(Array.isArray(e))i=i.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(i=i.concat(e.explicit));else throw new Sa("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof Us))throw new Sa("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new Sa("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new Sa("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(s){if(!(s instanceof Us))throw new Sa("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(Bae.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=H9e(n,"implicit"),n.compiledExplicit=H9e(n,"explicit"),n.compiledTypeMap=Yir(n.compiledImplicit,n.compiledExplicit),n},"extend");var Kir=Bae,Xir=new Us("tag:yaml.org,2002:str",{kind:"scalar",construct:o(function(t){return t!==null?t:""},"construct")}),Zir=new Us("tag:yaml.org,2002:seq",{kind:"sequence",construct:o(function(t){return t!==null?t:[]},"construct")}),enr=new Us("tag:yaml.org,2002:map",{kind:"mapping",construct:o(function(t){return t!==null?t:{}},"construct")}),tnr=new Kir({explicit:[Xir,Zir,enr]});function rnr(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}o(rnr,"resolveYamlNull");function inr(){return null}o(inr,"constructYamlNull");function nnr(t){return t===null}o(nnr,"isNull");var snr=new Us("tag:yaml.org,2002:null",{kind:"scalar",resolve:rnr,construct:inr,predicate:nnr,represent:{canonical:o(function(){return"~"},"canonical"),lowercase:o(function(){return"null"},"lowercase"),uppercase:o(function(){return"NULL"},"uppercase"),camelcase:o(function(){return"Null"},"camelcase"),empty:o(function(){return""},"empty")},defaultStyle:"lowercase"});function onr(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}o(onr,"resolveYamlBoolean");function anr(t){return t==="true"||t==="True"||t==="TRUE"}o(anr,"constructYamlBoolean");function cnr(t){return Object.prototype.toString.call(t)==="[object Boolean]"}o(cnr,"isBoolean");var unr=new Us("tag:yaml.org,2002:bool",{kind:"scalar",resolve:onr,construct:anr,predicate:cnr,represent:{lowercase:o(function(t){return t?"true":"false"},"lowercase"),uppercase:o(function(t){return t?"TRUE":"FALSE"},"uppercase"),camelcase:o(function(t){return t?"True":"False"},"camelcase")},defaultStyle:"lowercase"});function lnr(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}o(lnr,"isHexCode");function fnr(t){return 48<=t&&t<=55}o(fnr,"isOctCode");function hnr(t){return 48<=t&&t<=57}o(hnr,"isDecCode");function dnr(t){if(t===null)return!1;var e=t.length,r=0,i=!1,n;if(!e)return!1;if(n=t[r],(n==="-"||n==="+")&&(n=t[++r]),n==="0"){if(r+1===e)return!0;if(n=t[++r],n==="b"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(n!=="0 Line truncated
\r`;function Dnr(t){if(t===null)return!1;var e,r,i=0,n=t.length,s=Tae;for(r=0;r<n;r++)if(e=s.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;i+=6}return i%8===0}o(Dnr,"resolveYamlBinary");function Onr(t){var e,r,i=t.replace(/[\r\n=]/g,""),n=i.length,s=Tae,a=0,c=[];for(e=0;e<n;e++)e%4===0&&e&&(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)),a=a<<6|s.indexOf(i.charAt(e));return r=n%4*6,r===0?(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)):r===18?(c.push(a>>10&255),c.push(a>>2&255)):r===12&&c.push(a>>4&255),new Uint8Array(c)}o(Onr,"constructYamlBinary");function Pnr(t){var e="",r=0,i,n,s=t.length,a=Tae;for(i=0;i<s;i++)i%3===0&&i&&(e+=a[r>>18&63],e+=a[r>>12&63],e+=a[r>>6&63],e+=a[r&63]),r=(r<<8)+t[i];return n=s%3,n===0?(e+=a[r>>18&63],e+=a[r>>12&63],e+=a[r>>6&63],e+=a[r&63]):n===2?(e+=a[r>>10&63],e+=a[r>>4&63],e+=a[r<<2&63],e+=a[64]):n===1&&(e+=a[r>>2&63],e+=a[r<<4&63],e+=a[64],e+=a[64]),e}o(Pnr,"representYamlBinary");function knr(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}o(knr,"isBinary");var Qnr=new Us("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Dnr,construct:Onr,predicate:knr,represent:Pnr}),Lnr=Object.prototype.hasOwnProperty,Mnr=Object.prototype.toString;function Fnr(t){if(t===null)return!0;var e=[],r,i,n,s,a,c=t;for(r=0,i=c.length;r<i;r+=1){if(n=c[r],a=!1,Mnr.call(n)!=="[object Object]")return!1;for(s in n)if(Lnr.call(n,s))if(!a)a=!0;else return!1;if(!a)return!1;if(e.indexOf(s)===-1)e.push(s);else return!1}return!0}o(Fnr,"resolveYamlOmap");function Unr(t){return t!==null?t:[]}o(Unr,"constructYamlOmap");var qnr=new Us("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Fnr,construct:Unr}),Gnr=Object.prototype.toString;function Hnr(t){if(t===null)return!0;var e,r,i,n,s,a=t;for(s=new Array(a.length),e=0,r=a.length;e<r;e+=1){if(i=a[e],Gnr.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;s[e]=[n[0],i[n[0]]]}return!0}o(Hnr,"resolveYamlPairs");function jnr(t){if(t===null)return[];var e,r,i,n,s,a=t;for(s=new Array(a.length),e=0,r=a.length;e<r;e+=1)i=a[e],n=Object.keys(i),s[e]=[n[0],i[n[0]]];return s}o(jnr,"constructYamlPairs");var Vnr=new Us("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Hnr,construct:jnr}),znr=Object.prototype.hasOwnProperty;function $nr(t){if(t===null)return!0;var e,r=t;for(e in r)if(znr.call(r,e)&&r[e]!==null)return!1;return!0}o($nr,"resolveYamlSet");function Wnr(t){return t!==null?t:{}}o(Wnr,"constructYamlSet");var Jnr=new Us("tag:yaml.org,2002:set",{kind:"mapping",resolve:$nr,construct:Wnr}),c$e=Bnr.extend({implicit:[Rnr,Nnr],explicit:[Qnr,qnr,Vnr,Jnr]}),JA=Object.prototype.hasOwnProperty,Z3=1,u$e=2,l$e=3,e4=4,Sae=1,Ynr=2,j9e=3,Knr=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Xnr=/[\x85\u2028\u2029]/,Znr=/[,\[\]\{\}]/,f$e=/^(?:!|!!|![a-z\-]+!)$/i,h$e=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function V9e(t){return Object.prototype.toString.call(t)}o(V9e,"_class");function Sh(t){return t===10||t===13}o(Sh,"is_EOL");function n0(t){return t===9||t===32}o(n0,"is_WHITE_SPACE");function Ba(t){return t===9||t===32||t===10||t===13}o(Ba,"is_WS_OR_EOL");function bS(t){return t===44||t===91||t===93||t===123||t===125}o(bS,"is_FLOW_INDICATOR");function esr(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}o(esr,"fromHexCode");function tsr(t){return t===120?2:t===117?4:t===85?8:0}o(tsr,"escapedHexLen");function rsr(t){return 48<=t&&t<=57?t-48:-1}o(rsr,"fromDecimalCode");function z9e(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}o(z9e,"simpleEscapeSequence");function isr(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}o(isr,"charFromCodepoint");function d$e(t,e,r){e==="__proto__"?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r}):t[e]=r}o(d$e,"setProperty");var p$e=new Array(256),m$e=new Array(256);for(i0=0;i0<256;i0++)p$e[i0]=z9e(i0)?1:0,m$e[i0]=z9e(i0);var i0;function nsr(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||c$e,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}o(nsr,"State$1");function A$e(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=Vir(r),new Sa(e,r)}o(A$e,"generateError");function Me(t,e){throw A$e(t,e)}o(Me,"throwError");function t4(t,e){t.onWarning&&t.onWarning.call(null,A$e(t,e))}o(t4,"throwWarning");var $9e={YAML:o(function(e,r,i){var n,s,a;e.version!==null&&Me(e,"duplication of %YAML directive"),i.length!==1&&Me(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),n===null&&Me(e,"ill-formed argument of the YAML directive"),s=parseInt(n[1],10),a=parseInt(n[2],10),s!==1&&Me(e,"unacceptable YAML version of the document"),e.version=i[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&t4(e,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:o(function(e,r,i){var n,s;i.length!==2&&Me(e,"TAG directive accepts exactly two arguments"),n=i[0],s=i[1],f$e.test(n)||Me(e,"ill-formed tag handle (first argument) of the TAG directive"),JA.call(e.tagMap,n)&&Me(e,'there is a previously declared suffix for "'+n+'" tag handle'),h$e.test(s)||Me(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{Me(e,"tag prefix is malformed: "+s)}e.tagMap[n]=s},"handleTagDirective")};function WA(t,e,r,i){var n,s,a,c;if(e<r){if(c=t.input.slice(e,r),i)for(n=0,s=c.length;n<s;n+=1)a=c.charCodeAt(n),a===9||32<=a&&a<=1114111||Me(t,"expected valid JSON character");else Knr.test(c)&&Me(t,"the stream contains non-printable characters");t.result+=c}}o(WA,"captureSegment");function W9e(t,e,r,i){var n,s,a,c;for(yn.isObject(r)||Me(t,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),a=0,c=n.length;a<c;a+=1)s=n[a],JA.call(e,s)||(d$e(e,s,r[s]),i[s]=!0)}o(W9e,"mergeMappings");function wS(t,e,r,i,n,s,a,c,u){var l,f;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),l=0,f=n.length;l<f;l+=1)Array.isArray(n[l])&&Me(t,"nested arrays are not supported inside keys"),typeof n=="object"&&V9e(n[l])==="[object Object]"&&(n[l]="[object Object]");if(typeof n=="object"&&V9e(n)==="[object Object]"&&(n="[object Object]"),n=String(n),e===null&&(e={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(l=0,f=s.length;l<f;l+=1)W9e(t,e,s[l],r);else W9e(t,e,s,r);else!t.json&&!JA.call(r,n)&&JA.call(e,n)&&(t.line=a||t.line,t.lineStart=c||t.lineStart,t.position=u||t.position,Me(t,"duplicated mapping key")),d$e(e,n,s),delete r[n];return e}o(wS,"storeMappingPair");function Nae(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):Me(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}o(Nae,"readLineBreak");function Zi(t,e,r){for(var i=0,n=t.input.charCodeAt(t.position);n!==0;){for(;n0(n);)n===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),n=t.input.charCodeAt(++t.position);if(e&&n===35)do n=t.input.charCodeAt(++t.position);while(n!==10&&n!==13&&n!==0);if(Sh(n))for(Nae(t),n=t.input.charCodeAt(t.position),i++,t.lineIndent=0;n===32;)t.lineIndent++,n=t.input.charCodeAt(++t.position);else break}return r!==-1&&i!==0&&t.lineIndent<r&&t4(t,"deficient indentation"),i}o(Zi,"skipSeparationSpace");function n4(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||Ba(r)))}o(n4,"testDocumentSeparator");function Dae(t,e){e===1?t.result+=" ":e>1&&(t.result+=yn.repeat(`
`,e-1))}o(Dae,"writeFoldedLines");function ssr(t,e,r){var i,n,s,a,c,u,l,f,h=t.kind,d=t.result,p;if(p=t.input.charCodeAt(t.position),Ba(p)||bS(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(n=t.input.charCodeAt(t.position+1),Ba(n)||r&&bS(n)))return!1;for(t.kind="scalar",t.result="",s=a=t.position,c=!1;p!==0;){if(p===58){if(n=t.input.charCodeAt(t.position+1),Ba(n)||r&&bS(n))break}else if(p===35){if(i=t.input.charCodeAt(t.position-1),Ba(i))break}else{if(t.position===t.lineStart&&n4(t)||r&&bS(p))break;if(Sh(p))if(u=t.line,l=t.lineStart,f=t.lineIndent,Zi(t,!1,-1),t.lineIndent>=e){c=!0,p=t.input.charCodeAt(t.position);continue}else{t.position=a,t.line=u,t.lineStart=l,t.lineIndent=f;break}}c&&(WA(t,s,a,!1),Dae(t,t.line-u),s=a=t.position,c=!1),n0(p)||(a=t.position+1),p=t.input.charCodeAt(++t.position)}return WA(t,s,a,!1),t.result?!0:(t.kind=h,t.result=d,!1)}o(ssr,"readPlainScalar");function osr(t,e){var r,i,n;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,i=n=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(WA(t,i,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)i=t.position,t.position++,n=t.position;else return!0;else Sh(r)?(WA(t,i,n,!0),Dae(t,Zi(t,!1,e)),i=n=t.position):t.position===t.lineStart&&n4(t)?Me(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);Me(t,"unexpected end of the stream within a single quoted scalar")}o(osr,"readSingleQuotedScalar");function asr(t,e){var r,i,n,s,a,c;if(c=t.input.charCodeAt(t.position),c!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;(c=t.input.charCodeAt(t.position))!==0;){if(c===34)return WA(t,r,t.position,!0),t.position++,!0;if(c===92){if(WA(t,r,t.position,!0),c=t.input.charCodeAt(++t.position),Sh(c))Zi(t,!1,e);else if(c<256&&p$e[c])t.result+=m$e[c],t.position++;else if((a=tsr(c))>0){for(n=a,s=0;n>0;n--)c=t.input.charCodeAt(++t.position),(a=esr(c))>=0?s=(s<<4)+a:Me(t,"expected hexadecimal character");t.result+=isr(s),t.position++}else Me(t,"unknown escape sequence");r=i=t.position}else Sh(c)?(WA(t,r,i,!0),Dae(t,Zi(t,!1,e)),r=i=t.position):t.position===t.lineStart&&n4(t)?Me(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}Me(t,"unexpected end of the stream within a double quoted scalar")}o(asr,"readDoubleQuotedScalar");function csr(t,e){var r=!0,i,n,s,a=t.tag,c,u=t.anchor,l,f,h,d,p,A=Object.create(null),g,E,y,b;if(b=t.input.charCodeAt(t.position),b===91)f=93,p=!1,c=[];else if(b===123)f=125,p=!0,c={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=c),b=t.input.charCodeAt(++t.position);b!==0;){if(Zi(t,!0,e),b=t.input.charCodeAt(t.position),b===f)return t.position++,t.tag=a,t.anchor=u,t.kind=p?"mapping":"sequence",t.result=c,!0;r?b===44&&Me(t,"expected the node content, but found ','"):Me(t,"missed comma between flow collection entries"),E=g=y=null,h=d=!1,b===63&&(l=t.input.charCodeAt(t.position+1),Ba(l)&&(h=d=!0,t.position++,Zi(t,!0,e))),i=t.line,n=t.lineStart,s=t.position,CS(t,e,Z3,!1,!0),E=t.tag,g=t.result,Zi(t,!0,e),b=t.input.charCodeAt(t.position),(d||t.line===i)&&b===58&&(h=!0,b=t.input.charCodeAt(++t.position),Zi(t,!0,e),CS(t,e,Z3,!1,!0),y=t.result),p?wS(t,c,A,E,g,y,i,n,s):h?c.push(wS(t,null,A,E,g,y,i,n,s)):c.push(g),Zi(t,!0,e),b=t.input.charCodeAt(t.position),b===44?(r=!0,b=t.input.charCodeAt(++t.position)):r=!1}Me(t,"unexpected end of the stream within a flow collection")}o(csr,"readFlowCollection");function usr(t,e){var r,i,n=Sae,s=!1,a=!1,c=e,u=0,l=!1,f,h;if(h=t.input.charCodeAt(t.position),h===124)i=!1;else if(h===62)i=!0;else return!1;for(t.kind="scalar",t.result="";h!==0;)if(h=t.input.charCodeAt(++t.position),h===43||h===45)Sae===n?n=h===43?j9e:Ynr:Me(t,"repeat of a chomping mode identifier");else if((f=rsr(h))>=0)f===0?Me(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?Me(t,"repeat of an indentation width identifier"):(c=e+f-1,a=!0);else break;if(n0(h)){do h=t.input.charCodeAt(++t.position);while(n0(h));if(h===35)do h=t.input.charCodeAt(++t.position);while(!Sh(h)&&h!==0)}for(;h!==0;){for(Nae(t),t.lineIndent=0,h=t.input.charCodeAt(t.position);(!a||t.lineIndent<c)&&h===32;)t.lineIndent++,h=t.input.charCodeAt(++t.position);if(!a&&t.lineIndent>c&&(c=t.lineIndent),Sh(h)){u++;continue}if(t.lineIndent<c){n===j9e?t.result+=yn.repeat(`
`,s?1+u:u):n===Sae&&s&&(t.result+=`
`);break}for(i?n0(h)?(l=!0,t.result+=yn.repeat(`
`,s?1+u:u)):l?(l=!1,t.result+=yn.repeat(`
`,u+1)):u===0?s&&(t.result+=" "):t.result+=yn.repeat(`
`,u):t.result+=yn.repeat(`
`,s?1+u:u),s=!0,a=!0,u=0,r=t.position;!Sh(h)&&h!==0;)h=t.input.charCodeAt(++t.position);WA(t,r,t.position,!1)}return!0}o(usr,"readBlockScalar");function J9e(t,e){var r,i=t.tag,n=t.anchor,s=[],a,c=!1,u;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),u=t.input.charCodeAt(t.position);u!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Me(t,"tab characters must not be used in indentation")),!(u!==45||(a=t.input.charCodeAt(t.position+1),!Ba(a))));){if(c=!0,t.position++,Zi(t,!0,-1)&&t.lineIndent<=e){s.push(null),u=t.input.charCodeAt(t.position);continue}if(r=t.line,CS(t,e,l$e,!1,!0),s.push(t.result),Zi(t,!0,-1),u=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&u!==0)Me(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return c?(t.tag=i,t.anchor=n,t.kind="sequence",t.result=s,!0):!1}o(J9e,"readBlockSequence");function lsr(t,e,r){var i,n,s,a,c,u,l=t.tag,f=t.anchor,h={},d=Object.create(null),p=null,A=null,g=null,E=!1,y=!1,b;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=h),b=t.input.charCodeAt(t.position);b!==0;){if(!E&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Me(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),s=t.line,(b===63||b===58)&&Ba(i))b===63?(E&&(wS(t,h,d,p,A,null,a,c,u),p=A=g=null),y=!0,E=!0,n=!0):E?(E=!1,n=!0):Me(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,b=i;else{if(a=t.line,c=t.lineStart,u=t.position,!CS(t,r,u$e,!1,!0))break;if(t.line===s){for(b=t.input.charCodeAt(t.position);n0(b);)b=t.input.charCodeAt(++t.position);if(b===58)b=t.input.charCodeAt(++t.position),Ba(b)||Me(t,"a whitespace character is expected after the key-value separator within a block mapping"),E&&(wS(t,h,d,p,A,null,a,c,u),p=A=g=null),y=!0,E=!1,n=!1,p=t.tag,A=t.result;else if(y)Me(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=l,t.anchor=f,!0}else if(y)Me(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=l,t.anchor=f,!0}if((t.line===s||t.lineIndent>e)&&(E&&(a=t.line,c=t.lineStart,u=t.position),CS(t,e,e4,!0,n)&&(E?A=t.result:g=t.result),E||(wS(t,h,d,p,A,g,a,c,u),p=A=g=null),Zi(t,!0,-1),b=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&b!==0)Me(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return E&&wS(t,h,d,p,A,null,a,c,u),y&&(t.tag=l,t.anchor=f,t.kind="mapping",t.result=h),y}o(lsr,"readBlockMapping");function fsr(t){var e,r=!1,i=!1,n,s,a;if(a=t.input.charCodeAt(t.position),a!==33)return!1;if(t.tag!==null&&Me(t,"duplication of a tag property"),a=t.input.charCodeAt(++t.position),a===60?(r=!0,a=t.input.charCodeAt(++t.position)):a===33?(i=!0,n="!!",a=t.input.charCodeAt(++t.position)):n="!",e=t.position,r){do a=t.input.charCodeAt(++t.position);while(a!==0&&a!==62);t.position<t.length?(s=t.input.slice(e,t.position),a=t.input.charCodeAt(++t.position)):Me(t,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!Ba(a);)a===33&&(i?Me(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),f$e.test(n)||Me(t,"named tag handle cannot contain such characters"),i=!0,e=t.position+1)),a=t.input.charCodeAt(++t.position);s=t.input.slice(e,t.position),Znr.test(s)&&Me(t,"tag suffix cannot contain flow indicator characters")}s&&!h$e.test(s)&&Me(t,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{Me(t,"tag name is malformed: "+s)}return r?t.tag=s:JA.call(t.tagMap,n)?t.tag=t.tagMap[n]+s:n==="!"?t.tag="!"+s:n==="!!"?t.tag="tag:yaml.org,2002:"+s:Me(t,'undeclared tag handle "'+n+'"'),!0}o(fsr,"readTagProperty");function hsr(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&Me(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!Ba(r)&&!bS(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&Me(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}o(hsr,"readAnchorProperty");function dsr(t){var e,r,i;if(i=t.input.charCodeAt(t.position),i!==42)return!1;for(i=t.input.charCodeAt(++t.position),e=t.position;i!==0&&!Ba(i)&&!bS(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&Me(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),JA.call(t.anchorMap,r)||Me(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],Zi(t,!0,-1),!0}o(dsr,"readAlias");function CS(t,e,r,i,n){var s,a,c,u=1,l=!1,f=!1,h,d,p,A,g,E;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=a=c=e4===r||l$e===r,i&&Zi(t,!0,-1)&&(l=!0,t.lineIndent>e?u=1:t.lineIndent===e?u=0:t.lineIndent<e&&(u=-1)),u===1)for(;fsr(t)||hsr(t);)Zi(t,!0,-1)?(l=!0,c=s,t.lineIndent>e?u=1:t.lineIndent===e?u=0:t.lineIndent<e&&(u=-1)):c=!1;if(c&&(c=l||n),(u===1||e4===r)&&(Z3===r||u$e===r? Line truncated
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new nsr(t,e),i=t.indexOf("\0");for(i!==-1&&(r.position=i,Me(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)psr(r);return r.documents}o(g$e,"loadDocuments");function msr(t,e,r){e!==null&&typeof e=="object"&&typeof r>"u"&&(r=e,e=null);var i=g$e(t,r);if(typeof e!="function")return i;for(var n=0,s=i.length;n<s;n+=1)e(i[n])}o(msr,"loadAll$1");function Asr(t,e){var r=g$e(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new Sa("expected a single document in the stream, but found more")}}o(Asr,"load$1");var gsr=msr,ysr=Asr,y$e={loadAll:gsr,load:ysr},E$e=Object.prototype.toString,b$e=Object.prototype.hasOwnProperty,Oae=65279,Esr=9,UN=10,bsr=13,wsr=32,Csr=33,Isr=34,vae=35,Ssr=37,Bsr=38,vsr=39,_sr=42,w$e=44,xsr=45,r4=58,Rsr=61,Tsr=62,Nsr=63,Dsr=64,C$e=91,I$e=93,Osr=96,S$e=123,Psr=124,B$e=125,qs={};qs[0]="\\0";qs[7]="\\a";qs[8]="\\b";qs[9]="\\t";qs[10]="\\n";qs[11]="\\v";qs[12]="\\f";qs[13]="\\r";qs[27]="\\e";qs[34]='\\"';qs[92]="\\\\";qs[133]="\\N";qs[160]="\\_";qs[8232]="\\L";qs[8233]="\\P";var ksr=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Qsr=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Lsr(t,e){var r,i,n,s,a,c,u;if(e===null)return{};for(r={},i=Object.keys(e),n=0,s=i.length;n<s;n+=1)a=i[n],c=String(e[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),u=t.compiledTypeMap.fallback[a],u&&b$e.call(u.styleAliases,c)&&(c=u.styleAliases[c]),r[a]=c;return r}o(Lsr,"compileStyleMap");function Msr(t){var e,r,i;if(e=t.toString(16).toUpperCase(),t<=255)r="x",i=2;else if(t<=65535)r="u",i=4;else if(t<=4294967295)r="U",i=8;else throw new Sa("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+yn.repeat("0",i-e.length)+e}o(Msr,"encodeHex");var Fsr=1,qN=2;function Usr(t){this.schema=t.schema||c$e,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=yn.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=Lsr(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType==='"'?qN:Fsr,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer=="function"?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}o(Usr,"State");function Y9e(t,e){for(var r=yn.repeat(" ",e),i=0,n=-1,s="",a,c=t.length;i<c;)n=t.indexOf(`
`,i),n===-1?(a=t.slice(i),i=c):(a=t.slice(i,n+1),i=n+1),a.length&&a!==`
`&&(s+=r),s+=a;return s}o(Y9e,"indentString");function _ae(t,e){return`
`+yn.repeat(" ",t.indent*e)}o(_ae,"generateNextLine");function qsr(t,e){var r,i,n;for(r=0,i=t.implicitTypes.length;r<i;r+=1)if(n=t.implicitTypes[r],n.resolve(e))return!0;return!1}o(qsr,"testImplicitResolving");function i4(t){return t===wsr||t===Esr}o(i4,"isWhitespace");function GN(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==Oae||65536<=t&&t<=1114111}o(GN,"isPrintable");function K9e(t){return GN(t)&&t!==Oae&&t!==bsr&&t!==UN}o(K9e,"isNsCharOrWhitespace");function X9e(t,e,r){var i=K9e(t),n=i&&!i4(t);return(r?i:i&&t!==w$e&&t!==C$e&&t!==I$e&&t!==S$e&&t!==B$e)&&t!==vae&&!(e===r4&&!n)||K9e(e)&&!i4(e)&&t===vae||e===r4&&n}o(X9e,"isPlainSafe");function Gsr(t){return GN(t)&&t!==Oae&&!i4(t)&&t!==xsr&&t!==Nsr&&t!==r4&&t!==w$e&&t!==C$e&&t!==I$e&&t!==S$e&&t!==B$e&&t!==vae&&t!==Bsr&&t!==_sr&&t!==Csr&&t!==Psr&&t!==Rsr&&t!==Tsr&&t!==vsr&&t!==Isr&&t!==Ssr&&t!==Dsr&&t!==Osr}o(Gsr,"isPlainSafeFirst");function Hsr(t){return!i4(t)&&t!==r4}o(Hsr,"isPlainSafeLast");function MN(t,e){var r=t.charCodeAt(e),i;return r>=55296&&r<=56319&&e+1<t.length&&(i=t.charCodeAt(e+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}o(MN,"codePointAt");function v$e(t){var e=/^\n* /;return e.test(t)}o(v$e,"needIndentIndicator");var _$e=1,xae=2,x$e=3,R$e=4,ES=5;function jsr(t,e,r,i,n,s,a,c){var u,l=0,f=null,h=!1,d=!1,p=i!==-1,A=-1,g=Gsr(MN(t,0))&&Hsr(MN(t,t.length-1));if(e||a)for(u=0;u<t.length;l>=65536?u+=2:u++){if(l=MN(t,u),!GN(l))return ES;g=g&&X9e(l,f,c),f=l}else{for(u=0;u<t.length;l>=65536?u+=2:u++){if(l=MN(t,u),l===UN)h=!0,p&&(d=d||u-A-1>i&&t[A+1]!==" ",A=u);else if(!GN(l))return ES;g=g&&X9e(l,f,c),f=l}d=d||p&&u-A-1>i&&t[A+1]!==" "}return!h&&!d?g&&!a&&!n(t)?_$e:s===qN?ES:xae:r>9&&v$e(t)?ES:a?s===qN?ES:xae:d?R$e:x$e}o(jsr,"chooseScalarStyle");function Vsr(t,e,r,i,n){t.dump=(function(){if(e.length===0)return t.quotingType===qN?'""':"''";if(!t.noCompatMode&&(ksr.indexOf(e)!==-1||Qsr.test(e)))return t.quotingType===qN?'"'+e+'"':"'"+e+"'";var s=t.indent*Math.max(1,r),a=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-s),c=i||t.flowLevel>-1&&r>=t.flowLevel;function u(l){return qsr(t,l)}switch(o(u,"testAmbiguity"),jsr(e,c,t.indent,a,u,t.quotingType,t.forceQuotes&&!i,n)){case _$e:return e;case xae:return"'"+e.replace(/'/g,"''")+"'";case x$e:return"|"+Z9e(e,t.indent)+e$e(Y9e(e,s));case R$e:return">"+Z9e(e,t.indent)+e$e(Y9e(zsr(e,a),s));case ES:return'"'+$sr(e)+'"';default:throw new Sa("impossible error: invalid scalar style")}})()}o(Vsr,"writeScalar");function Z9e(t,e){var r=v$e(t)?String(e):"",i=t[t.length-1]===`
`,n=i&&(t[t.length-2]===`
`||t===`
`),s=n?"+":i?"":"-";return r+s+`
`}function Z9e(t){return t[t.length-1]===`
`?t.slice(0,-1):t}function Vsr(t,e){for(var r=/(\n+)([^\n]*)/g,i=(function(){var u=t.indexOf(`
`);return u=u!==-1?u:t.length,r.lastIndex=u,e$e(t.slice(0,u),e)})(),n=t[0]===`
`||t[0]===" ",s,o;o=r.exec(t);){var a=o[1],c=o[2];s=c[0]===" ",i+=a+(!n&&!s&&c!==""?`
`:"")+e$e(c,e),n=s}return i}function e$e(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,i,n=0,s,o=0,a=0,c="";i=r.exec(t);)a=i.index,a-n>e&&(s=o>n?o:a,c+=`
`+t.slice(n,s),n=s+1),o=a;return c+=`
`,t.length-n>e&&o>n?c+=t.slice(n,o)+`
`+t.slice(o+1):c+=t.slice(n),c.slice(1)}function zsr(t){for(var e="",r=0,i,n=0;n<t.length;r>=65536?n+=2:n++)r=LN(t,n),i=Us[r],!i&&qN(r)?(e+=t[n],r>=65536&&(e+=t[n+1])):e+=i||Lsr(r);return e}function $sr(t,e,r){var i="",n=t.tag,s,o,a;for(s=0,o=r.length;s<o;s+=1)a=r[s],t.replacer&&(a=t.replacer.call(r,String(s),a)),(bp(t,e,a,!1,!1)||typeof a>"u"&&bp(t,e,null,!1,!1))&&(i!==""&&(i+=","+(t.condenseFlow?"":" ")),i+=t.dump);t.tag=n,t.dump="["+i+"]"}function t$e(t,e,r,i){var n="",s=t.tag,o,a,c;for(o=0,a=r.length;o<a;o+=1)c=r[o],t.replacer&&(c=t.replacer.call(r,String(o),c)),(bp(t,e+1,c,!0,!0,!1,!0)||typeof c>"u"&&bp(t,e+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=vae(t,e)),t.dump&&FN===t.dump.charCodeAt(0)?n+="-":n+="- ",n+=t.dump);t.tag=s,t.dump=n||"[]"}function Wsr(t,e,r){var i="",n=t.tag,s=Object.keys(r),o,a,c,u,l;for(o=0,a=s.length;o<a;o+=1)l="",i!==""&&(l+=", "),t.condenseFlow&&(l+='"'),c=s[o],u=r[c],t.replacer&&(u=t.replacer.call(r,c,u)),bp(t,e,c,!1,!1)&&(t.dump.length>1024&&(l+="? "),l+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),bp(t,e,u,!1,!1)&&(l+=t.dump,i+=l));t.tag=n,t.dump="{"+i+"}"}function Jsr(t,e,r,i){var n="",s=t.tag,o=Object.keys(r),a,c,u,l,f,h;if(t.sortKeys===!0)o.sort();else if(typeof t.sortKeys=="function")o.sort(t.sortKeys);else if(t.sortKeys)throw new Ia("sortKeys must be a boolean or a function");for(a=0,c=o.length;a<c;a+=1)h="",(!i||n!=="")&&(h+=vae(t,e)),u=o[a],l=r[u],t.replacer&&(l=t.replacer.call(r,u,l)),bp(t,e+1,u,!0,!0,!0)&&(f=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,f&&(t.dump&&FN===t.dump.charCodeAt(0)?h+="?":h+="? "),h+=t.dump,f&&(h+=vae(t,e)),bp(t,e+1,l,!0,f)&&(t.dump&&FN===t.dump.charCodeAt(0)?h+=":":h+=": ",h+=t.dump,n+=h));t.tag=s,t.dump=n||"{}"}function r$e(t,e,r){var i,n,s,o,a,c;for(n=r?t.explicitTypes:t.implicitTypes,s=0,o=n.length;s<o;s+=1)if(a=n[s],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof e=="object"&&e instanceof a.instanceOf)&&(!a.predicate||a.predicate(e))){if(r?a.multi&&a.representName?t.tag=a.representName(e):t.tag=a.tag:t.tag="?",a.represent){if(c=t.styleMap[a.tag]||a.defaultStyle,y$e.call(a.represent)==="[object Function]")i=a.represent(e,c);else if(E$e.call(a.represent,c))i=a.represent[c](e,c);else throw new Ia("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');t.dump=i}return!0}return!1}function bp(t,e,r,i,n,s,o){t.tag=null,t.dump=r,r$e(t,r,!1)||r$e(t,r,!0);var a=y$e.call(t.dump),c=i,u;i&&(i=t.flowLevel<0||t.flowLevel>e);var l=a==="[object Object]"||a==="[object Array]",f,h;if(l&&(f=t.duplicates.indexOf(r),h=f!==-1),(t.tag!==null&&t.tag!=="?"||h||t.indent!==2&&e>0)&&(n=!1),h&&t.usedDuplicates[f])t.dump="*ref_"+f;else{if(l&&h&&!t.usedDuplicates[f]&&(t.usedDuplicates[f]=!0),a==="[object Object]")i&&Object.keys(t.dump).length!==0?(Jsr(t,e,t.dump,n),h&&(t.dump="&ref_"+f+t.dump)):(Wsr(t,e,t.dump),h&&(t.dump="&ref_"+f+" "+t.dump));else if(a==="[object Array]")i&&t.dump.length!==0?(t.noArrayIndent&&!o&&e>0?t$e(t,e-1,t.dump,n):t$e(t,e,t.dump,n),h&&(t.dump="&ref_"+f+t.dump)):($sr(t,e,t.dump),h&&(t.dump="&ref_"+f+" "+t.dump));else if(a==="[object String]")t.tag!=="?"&&jsr(t,t.dump,e,s,c);else{if(a==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new Ia("unacceptable kind of an object to dump "+a)}t.tag!==null&&t.tag!=="?"&&(u=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?u="!"+u:u.slice(0,18)==="tag:yaml.org,2002:"?u="!!"+u.slice(18):u="!<"+u+">",t.dump=u+" "+t.dump)}return!0}function Ysr(t,e){var r=[],i=[],n,s;for(xae(t,r,i),n=0,s=i.length;n<s;n+=1)e.duplicates.push(r[i[n]]);e.usedDuplicates=new Array(s)}function xae(t,e,r){var i,n,s;if(t!==null&&typeof t=="object")if(n=e.indexOf(t),n!==-1)r.indexOf(n)===-1&&r.push(n);else if(e.push(t),Array.isArray(t))for(n=0,s=t.length;n<s;n+=1)xae(t[n],e,r);else for(i=Object.keys(t),n=0,s=i.length;n<s;n+=1)xae(t[i[n]],e,r)}function Ksr(t,e){e=e||{};var r=new Fsr(e);r.noRefs||Ysr(t,r);var i=t;return r.replacer&&(i=r.replacer.call({"":i},"",i)),bp(r,0,i,!0,!0)?r.dump+`
`:""}var Xsr=Ksr,Zsr={dump:Xsr};function Oae(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var uri=g$e.load,lri=g$e.loadAll,R$e=Zsr.dump;var fri=Oae("safeLoad","load"),hri=Oae("safeLoadAll","loadAll"),dri=Oae("safeDump","dump");var T$e=O(require("os"),1);var i4=class t{static async writeBuildSummary(e){let r=function(c,u,l=!1){return`<a href="${u}">${c}</a>`+(l?T$e.default.EOL:"")},i=e.exportRes.refs.length,n=i>0?e.exportRes.refs?.[0]:void 0,s=n?e.exportRes.summaries?.[n]:void 0,o=e.driver==="cloud"&&e.endpoint?e.endpoint?.replace(/^cloud:\/\//,"").split("/")[0]:void 0,a=E9.addHeading("Docker Build summary",2);if(o&&i===1&&n&&s){let c=t.formatDBCBuildURL(o,n,s.defaultPlatform);a.addRaw("<p>").addRaw("For a detailed look at the build, you can check the results at:").addRaw("</p>").addRaw("<p>").addRaw(`:whale: ${r(`<strong>${c}</strong>`,c)}`).addRaw("</p>")}if(e.uploadRes){let c=`./${At.runId}/${e.uploadRes.url.split("/").slice(-2).join("/")}`;o&&i===1?a.addRaw("<p>").addRaw("You can also download the following build record archive and import it into Docker Desktop's Builds view. ").addBreak().addRaw("Build records include details such as timing, dependencies, results, logs, traces, and other information about a build. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>"):a.addRaw("<p>").addRaw("For a detailed look at the build, download the following build record archive and import it into Docker Desktop's Builds view. ").addBreak().addRaw("Build records include details such as timing, dependencies, results, logs, traces, and other information about a build. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>"),a.addRaw("<p>").addRaw(`:arrow_down: ${r(`<strong>${Ye.stringToUnicodeEntities(e.uploadRes.filename)}</strong>`,c)} (${Ye.formatFileSize(e.uploadRes.size)} - includes <strong>${i} build record${i>1?"s":""}</strong>)`).addRaw("</p>")}else e.exportRes.summaries&&a.addRaw("<p>").addRaw("The following table provides a brief summary of your build.").addBreak().addRaw("For a detailed look at the build, including timing, dependencies, results, logs, traces, and other information, consider enabling the export of the build record so you can import it into Docker Desktop's Builds view. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>");if(a.addRaw("<p>").addRaw("Find this useful? ").addRaw(r("Let us know","https://docs.docker.com/feedback/gha-build-summary")).addRaw("</p>"),e.exportRes.summaries){a.addRaw("<p>");let c=[[{header:!0,data:"ID"},{header:!0,data:"Name"},{header:!0,data:"Status"},{header:!0,data:"Cached"},{header:!0,data:"Duration"},...o&&i>1?[{header:!0,data:"Build result URL"}]:[]]],u;for(let l in e.exportRes.summaries)if(Object.prototype.hasOwnProperty.call(e.exportRes.summaries,l)){let f=e.exportRes.summaries[l];c.push([{data:`<code>${l.substring(0,6).toUpperCase()}</code>`},{data:`<strong>${Ye.stringToUnicodeEntities(f.name)}</strong>`},{data:`${f.status==="completed"?":white_check_mark:":f.status==="canceled"?":no_entry_sign:":":x:"} ${f.status}`},{data:`${f.numCachedSteps>0?Math.round(f.numCachedSteps/f.numTotalSteps*100):0}%`},{data:f.duration},...o&&i>1?[{data:r(":whale: Open",t.formatDBCBuildURL(o,l,f.defaultPlatform))}]:[]]),f.error&&(u=f.error)}a.addTable([...c]),a.addRaw("</p>"),u&&(a.addRaw("<blockquote>"),Ye.countLines(u)>10?a.addRaw("<details><summary><strong>Error</strong></summary>").addCodeBlock(Pae.default.encode(u),"text").addRaw("</details>"):a.addRaw("<strong>Error</strong>").addBreak().addRaw("<p>").addCodeBlock(Pae.default.encode(u),"text").addRaw("</p>"),a.addRaw("</blockquote>"))}e.inputs&&a.addRaw("<details><summary><strong>Build inputs</strong></summary>").addCodeBlock(R$e(e.inputs,{indent:2,lineWidth:-1}),"yaml").addRaw("</details>"),e.bakeDefinition&&a.addRaw("<details><summary><strong>Bake definition</strong></summary>").addCodeBlock(JSON.stringify(e.bakeDefinition,null,2),"json").addRaw("</details>"),H("Writing summary"),await a.addSeparator().write()}static formatDBCBuildURL(e,r,i){return`https://app.docker.com/build/accounts/${e}/builds/${(i??"linux/amd64").replace("/","-")}/${r}`}};var n0=O(require("fs"),1),kae=O(require("path"),1);var wp=class t{buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new Wt,this.iidFilename=`build-iidfile-${Ye.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${Ye.generateRandomString()}.json`}async gitContext(e){let r=new Set(["ref","checksum","subdir"]),i=e?.attrs||{},n=Object.entries(i).fil Line truncated
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let n of i){if(n.length==1&&!n[0].startsWith("type="))return e=="local";for(let[s,o]of n.map(a=>a.split("=").map(c=>c.trim())))if(s=="type"&&o==e)return!0}return!1}static hasAttestationType(e,r){let i=dc(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let n of i)for(let[s,o]of n.map(a=>a.split("=").map(c=>c.trim())))if(s=="type"&&o==e)return!0;return!1}static resolveAttestationAttrs(e){let r=dc(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),i=[];for(let n of r)for(let s of n)try{let o=Ye.parseBool(s);i.push(`disabled=${!o}`)}catch{i.push(s)}return i.join(",")}static hasGitAuthTokenSecret(e,r){for(let i of e){if(r&&i.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(i.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let i=e.indexOf("="),n=e.substring(0,i),s=e.substring(i+1);if(n.length==0||s.length==0)throw new Error(`${e} is not a valid secret`);return r&&uf(s),[n,s]}};var Qae=O(require("fs"),1),N$e=O(require("path"),1);var CS=class t{buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new Wt,this.metadataFilename=`bake-metadata-${Ye.generateRandomString()}.json`}getMetadataFilePath(){return N$e.default.join(Nt.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!Qae.default.existsSync(e))return;let r=Qae.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRefs(e){if(!e&&(e=this.resolveMetadata(),!e))return;let r=new Array;for(let i in e)"buildx.build.ref"in e[i]&&r.push(e[i]["buildx.build.ref"]);return r.length>0?r:void 0}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}async getDefinition(e,r){r=r||{ignoreReturnCode:!0},r.ignoreReturnCode=!0,r.env=Object.assign({},process.env,r.env||{},e.githubToken?{BUILDX_BAKE_GIT_AUTH_TOKEN:e.githubToken}:{});let i=["bake"],n,s=[],o=[...e.files||[],e.source];if(o){for(let c of o.map(u=>u?u.trim():""))if(c.length!=0){if(!Ye.isValidRef(c)){s.push(c);continue}if(n)throw new Error("Only one remote bake definition can be defined");n=c}}n&&i.push(n);for(let c of s)i.push("--file",c);if(e.overrides)for(let c of e.overrides)i.push("--set",c);if(e.vars)for(let c of e.vars)i.push("--var",c);if(e.allow)for(let c of e.allow)i.push("--allow",c);e.call&&i.push("--call",e.call),e.load&&i.push("--load"),e.noCache&&i.push("--no-cache"),e.provenance&&i.push("--provenance",e.provenance),e.push&&i.push("--push"),e.sbom&&i.push("--sbom",e.sbom);let a=await this.buildx.getCommand([...i,"--print",...e.targets||[]]);return await Ue.getExecOutput(a.command,a.args,r).then(c=>{if(c.stderr.length>0&&c.exitCode!=0)throw new Error(`cannot parse bake definitions: ${c.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return t.parseDefinition(c.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let i in r.target){let n=r.target[i];n.attest&&Array.isArray(n.attest)&&(n.attest=n.attest.map(s=>t.parseAttestEntry(s))),n["cache-from"]&&Array.isArray(n["cache-from"])&&(n["cache-from"]=n["cache-from"].map(s=>t.parseCacheEntry(s))),n["cache-to"]&&Array.isArray(n["cache-to"])&&(n["cache-to"]=n["cache-to"].map(s=>t.parseCacheEntry(s))),n.output&&Array.isArray(n.output)&&(n.output=n.output.map(s=>t.parseExportEntry(s))),n.secret&&Array.isArray(n.secret)&&(n.secret=n.secret.map(s=>t.parseSecretEntry(s))),n.ssh&&Array.isArray(n.ssh)&&(n.ssh=n.ssh.map(s=>t.parseSSHEntry(s)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},i=dc(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let n of i){let[s,o]=n.toString().split(/(?<=^[^=]+?)=/).map(a=>a.trim());switch(s){case"type":r.type=o;break;case"disabled":r.disabled=Ye.parseBool(o);break;default:r[s]=o}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},i=dc(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(i.length===1&&!i[0].includes("="))return r.type="registry",r.ref=i[0],r;for(let n of i){let[s,o]=n.toString().split(/(?<=^[^=]+?)=/).map(a=>a.trim());s==="type"?r.type=o:r[s]=o}return r}static parseExportEntry(e){if(typeof e!="string")return e;let r={type:""},i=dc(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(i.length===1&&i[0]===e&&!e.startsWith("type="))return e!=="-"?(r.type="local",r.dest=e,r):(r.type="tar",r.dest=e,r);for(let n of i){let[s,o]=n.toString().split(/(?<=^[^=]+?)=/).map(a=>a.trim());s==="type"?r.type=o:r[s]=o}return r}static parseSecretEntry(e){if(typeof e!="string")return e;let r={},i=dc(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0],n="";for(let s of i){let[o,a]=s.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(o){case"type":n=a;break;case"id":r.id=a;break;case"source":case"src":r.src=a;break;case"env":r.env=a;break}}return n==="env"&&!r.env&&(r.env=r.src,r.src=void 0),r}static parseSSHEntry(e){if(typeof e!="string")return e;let r={},[i,n]=e.split("=",2);return r.id=i,n&&(r.paths=n.split Line truncated
`)[0])}static async isHeadDetached(){return await t.exec(["branch","--show-current"]).then(e=>e.length==0)}static async getDetachedRef(){let e=await t.exec(["show","-s","--pretty=%D"]);Q(`detached HEAD ref: ${e}`);let r=e.replace(/^grafted, /,"").trim();if(r==="HEAD")return await t.inferRefFromHead();let i=r.match(/^HEAD, (.*)$/);if(!i||!i[1])throw new Error(`Cannot find detached HEAD ref in "${e}"`);let n=i[1].trim();if(n.startsWith("tag: "))return`refs/tags/${n.split(":")[1].trim()}`;if(n.match(/^pull\/\d+\/(head|merge)$/))return`refs/${n}`;let o=n.match(/^[^/]+\/[^/]+, (.+)$/);if(o)return`refs/heads/${o[1].trim()}`;let a=n.match(/^[^/]+\/(.+)$/);if(a)return`refs/heads/${a[1].trim()}`;throw new Error(`Unsupported detached HEAD ref in "${e}"`)}static async exec(e=[]){return await Ue.getExecOutput("git",e,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr);return r.stdout.trim()})}static async inferRefFromHead(){let e=await t.findContainingRef("refs/heads/");if(e)return e;let r=await t.findContainingRef("refs/remotes/");if(r){let s=r.match(/^refs\/remotes\/[^/]+\/(.+)$/);return s?`refs/heads/${s[1]}`:r}let i=await t.exec(["tag","--contains","HEAD"]),[n]=i.split(`
`}o(Z9e,"blockHeader");function e$e(t){return t[t.length-1]===`
`?t.slice(0,-1):t}o(e$e,"dropEndingNewline");function zsr(t,e){for(var r=/(\n+)([^\n]*)/g,i=(function(){var l=t.indexOf(`
`);return l=l!==-1?l:t.length,r.lastIndex=l,t$e(t.slice(0,l),e)})(),n=t[0]===`
`||t[0]===" ",s,a;a=r.exec(t);){var c=a[1],u=a[2];s=u[0]===" ",i+=c+(!n&&!s&&u!==""?`
`:"")+t$e(u,e),n=s}return i}o(zsr,"foldString");function t$e(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,i,n=0,s,a=0,c=0,u="";i=r.exec(t);)c=i.index,c-n>e&&(s=a>n?a:c,u+=`
`+t.slice(n,s),n=s+1),a=c;return u+=`
`,t.length-n>e&&a>n?u+=t.slice(n,a)+`
`+t.slice(a+1):u+=t.slice(n),u.slice(1)}o(t$e,"foldLine");function $sr(t){for(var e="",r=0,i,n=0;n<t.length;r>=65536?n+=2:n++)r=MN(t,n),i=qs[r],!i&&GN(r)?(e+=t[n],r>=65536&&(e+=t[n+1])):e+=i||Msr(r);return e}o($sr,"escapeString");function Wsr(t,e,r){var i="",n=t.tag,s,a,c;for(s=0,a=r.length;s<a;s+=1)c=r[s],t.replacer&&(c=t.replacer.call(r,String(s),c)),(wp(t,e,c,!1,!1)||typeof c>"u"&&wp(t,e,null,!1,!1))&&(i!==""&&(i+=","+(t.condenseFlow?"":" ")),i+=t.dump);t.tag=n,t.dump="["+i+"]"}o(Wsr,"writeFlowSequence");function r$e(t,e,r,i){var n="",s=t.tag,a,c,u;for(a=0,c=r.length;a<c;a+=1)u=r[a],t.replacer&&(u=t.replacer.call(r,String(a),u)),(wp(t,e+1,u,!0,!0,!1,!0)||typeof u>"u"&&wp(t,e+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=_ae(t,e)),t.dump&&UN===t.dump.charCodeAt(0)?n+="-":n+="- ",n+=t.dump);t.tag=s,t.dump=n||"[]"}o(r$e,"writeBlockSequence");function Jsr(t,e,r){var i="",n=t.tag,s=Object.keys(r),a,c,u,l,f;for(a=0,c=s.length;a<c;a+=1)f="",i!==""&&(f+=", "),t.condenseFlow&&(f+='"'),u=s[a],l=r[u],t.replacer&&(l=t.replacer.call(r,u,l)),wp(t,e,u,!1,!1)&&(t.dump.length>1024&&(f+="? "),f+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),wp(t,e,l,!1,!1)&&(f+=t.dump,i+=f));t.tag=n,t.dump="{"+i+"}"}o(Jsr,"writeFlowMapping");function Ysr(t,e,r,i){var n="",s=t.tag,a=Object.keys(r),c,u,l,f,h,d;if(t.sortKeys===!0)a.sort();else if(typeof t.sortKeys=="function")a.sort(t.sortKeys);else if(t.sortKeys)throw new Sa("sortKeys must be a boolean or a function");for(c=0,u=a.length;c<u;c+=1)d="",(!i||n!=="")&&(d+=_ae(t,e)),l=a[c],f=r[l],t.replacer&&(f=t.replacer.call(r,l,f)),wp(t,e+1,l,!0,!0,!0)&&(h=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,h&&(t.dump&&UN===t.dump.charCodeAt(0)?d+="?":d+="? "),d+=t.dump,h&&(d+=_ae(t,e)),wp(t,e+1,f,!0,h)&&(t.dump&&UN===t.dump.charCodeAt(0)?d+=":":d+=": ",d+=t.dump,n+=d));t.tag=s,t.dump=n||"{}"}o(Ysr,"writeBlockMapping");function i$e(t,e,r){var i,n,s,a,c,u;for(n=r?t.explicitTypes:t.implicitTypes,s=0,a=n.length;s<a;s+=1)if(c=n[s],(c.instanceOf||c.predicate)&&(!c.instanceOf||typeof e=="object"&&e instanceof c.instanceOf)&&(!c.predicate||c.predicate(e))){if(r?c.multi&&c.representName?t.tag=c.representName(e):t.tag=c.tag:t.tag="?",c.represent){if(u=t.styleMap[c.tag]||c.defaultStyle,E$e.call(c.represent)==="[object Function]")i=c.represent(e,u);else if(b$e.call(c.represent,u))i=c.represent[u](e,u);else throw new Sa("!<"+c.tag+'> tag resolver accepts not "'+u+'" style');t.dump=i}return!0}return!1}o(i$e,"detectType");function wp(t,e,r,i,n,s,a){t.tag=null,t.dump=r,i$e(t,r,!1)||i$e(t,r,!0);var c=E$e.call(t.dump),u=i,l;i&&(i=t.flowLevel<0||t.flowLevel>e);var f=c==="[object Object]"||c==="[object Array]",h,d;if(f&&(h=t.duplicates.indexOf(r),d=h!==-1),(t.tag!==null&&t.tag!=="?"||d||t.indent!==2&&e>0)&&(n=!1),d&&t.usedDuplicates[h])t.dump="*ref_"+h;else{if(f&&d&&!t.usedDuplicates[h]&&(t.usedDuplicates[h]=!0),c==="[object Object]")i&&Object.keys(t.dump).length!==0?(Ysr(t,e,t.dump,n),d&&(t.dump="&ref_"+h+t.dump)):(Jsr(t,e,t.dump),d&&(t.dump="&ref_"+h+" "+t.dump));else if(c==="[object Array]")i&&t.dump.length!==0?(t.noArrayIndent&&!a&&e>0?r$e(t,e-1,t.dump,n):r$e(t,e,t.dump,n),d&&(t.dump="&ref_"+h+t.dump)):(Wsr(t,e,t.dump),d&&(t.dump="&ref_"+h+" "+t.dump));else if(c==="[object String]")t.tag!=="?"&&Vsr(t,t.dump,e,s,u);else{if(c==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new Sa("unacceptable kind of an object to dump "+c)}t.tag!==null&&t.tag!=="?"&&(l=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?l="!"+l:l.slice(0,18)==="tag:yaml.org,2002:"?l="!!"+l.slice(18):l="!<"+l+">",t.dump=l+" "+t.dump)}return!0}o(wp,"writeNode");function Ksr(t,e){var r=[],i=[],n,s;for(Rae(t,r,i),n=0,s=i.length;n<s;n+=1)e.duplicates.push(r[i[n]]);e.usedDuplicates=new Array(s)}o(Ksr,"getDuplicateReferences");function Rae(t,e,r){var i,n,s;if(t!==null&&typeof t=="object")if(n=e.indexOf(t),n!==-1)r.indexOf(n)===-1&&r.push(n);else if(e.push(t),Array.isArray(t))for(n=0,s=t.length;n<s;n+=1)Rae(t[n],e,r);else for(i=Object.keys(t),n=0,s=i.length;n<s;n+=1)Rae(t[i[n]],e,r)}o(Rae,"inspectNode");function Xsr(t,e){e=e||{};var r=new Usr(e);r.noRefs||Ksr(t,r);var i=t;return r.replacer&&(i=r.replacer.call({"":i},"",i)),wp(r,0,i,!0,!0)?r.dump+`
`:""}o(Xsr,"dump$1");var Zsr=Xsr,eor={dump:Zsr};function Pae(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}o(Pae,"renamed");var Ayi=y$e.load,gyi=y$e.loadAll,T$e=eor.dump;var yyi=Pae("safeLoad","load"),Eyi=Pae("safeLoadAll","loadAll"),byi=Pae("safeDump","dump");var N$e=P(require("os"),1);var s4=class t{static{o(this,"GitHubSummary")}static async writeBuildSummary(e){let r=o(function(u,l,f=!1){return`<a href="${l}">${u}</a>`+(f?N$e.default.EOL:"")},"addLink"),i=e.exportRes.refs.length,n=i>0?e.exportRes.refs?.[0]:void 0,s=n?e.exportRes.summaries?.[n]:void 0,a=e.driver==="cloud"&&e.endpoint?e.endpoint?.replace(/^cloud:\/\//,"").split("/")[0]:void 0,c=b9.addHeading("Docker Build summary",2);if(a&&i===1&&n&&s){let u=t.formatDBCBuildURL(a,n,s.defaultPlatform);c.addRaw("<p>").addRaw("For a detailed look at the build, you can check the results at:").addRaw("</p>").addRaw("<p>").addRaw(`:whale: ${r(`<strong>${u}</strong>`,u)}`).addRaw("</p>")}if(e.uploadRes){let u=`./${gt.runId}/${e.uploadRes.url.split("/").slice(-2).join("/")}`;a&&i===1?c.addRaw("<p>").addRaw("You can also download the following build record archive and import it into Docker Desktop's Builds view. ").addBreak().addRaw("Build records include details such as timing, dependencies, results, logs, traces, and other information about a build. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>"):c.addRaw("<p>").addRaw("For a detailed look at the build, download the following build record archive and import it into Docker Desktop's Builds view. ").addBreak().addRaw("Build records include details such as timing, dependencies, results, logs, traces, and other information about a build. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>"),c.addRaw("<p>").addRaw(`:arrow_down: ${r(`<strong>${Ke.stringToUnicodeEntities(e.uploadRes.filename)}</strong>`,u)} (${Ke.formatFileSize(e.uploadRes.size)} - includes <strong>${i} build record${i>1?"s":""}</strong>)`).addRaw("</p>")}else e.exportRes.summaries&&c.addRaw("<p>").addRaw("The following table provides a brief summary of your build.").addBreak().addRaw("For a detailed look at the build, including timing, dependencies, results, logs, traces, and other information, consider enabling the export of the build record so you can import it into Docker Desktop's Builds view. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>");if(c.addRaw("<p>").addRaw("Find this useful? ").addRaw(r("Let us know","https://docs.docker.com/feedback/gha-build-summary")).addRaw("</p>"),e.exportRes.summaries){c.addRaw("<p>");let u=[[{header:!0,data:"ID"},{header:!0,data:"Name"},{header:!0,data:"Status"},{header:!0,data:"Cached"},{header:!0,data:"Duration"},...a&&i>1?[{header:!0,data:"Build result URL"}]:[]]],l;for(let f in e.exportRes.summaries)if(Object.prototype.hasOwnProperty.call(e.exportRes.summaries,f)){let h=e.exportRes.summaries[f];u.push([{data:`<code>${f.substring(0,6).toUpperCase()}</code>`},{data:`<strong>${Ke.stringToUnicodeEntities(h.name)}</strong>`},{data:`${h.status==="completed"?":white_check_mark:":h.status==="canceled"?":no_entry_sign:":":x:"} ${h.status}`},{data:`${h.numCachedSteps>0?Math.round(h.numCachedSteps/h.numTotalSteps*100):0}%`},{data:h.duration},...a&&i>1?[{data:r(":whale: Open",t.formatDBCBuildURL(a,f,h.defaultPlatform))}]:[]]),h.error&&(l=h.error)}c.addTable([...u]),c.addRaw("</p>"),l&&(c.addRaw("<blockquote>"),Ke.countLines(l)>10?c.addRaw("<details><summary><strong>Error</strong></summary>").addCodeBlock(kae.default.encode(l),"text").addRaw("</details>"):c.addRaw("<strong>Error</strong>").addBreak().addRaw("<p>").addCodeBlock(kae.default.encode(l),"text").addRaw("</p>"),c.addRaw("</blockquote>"))}e.inputs&&c.addRaw("<details><summary><strong>Build inputs</strong></summary>").addCodeBlock(T$e(e.inputs,{indent:2,lineWidth:-1}),"yaml").addRaw("</details>"),e.bakeDefinition&&c.addRaw("<details><summary><strong>Bake definition</strong></summary>").addCodeBlock(JSON.stringify(e.bakeDefinition,null,2),"json").addRaw("</details>"),j("Writing summary"),await c.addSeparator().write()}static formatDBCBuildURL(e,r,i){return`https://app.docker.com/build/accounts/${e}/builds/${(i??"linux/amd64").replace("/","-")}/${r}`}};var s0=P(require("fs"),1),Qae=P(require("path"),1);var Cp=class t{static{o(this,"Build")}buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new Jt,this.iidFilename=`build-iidfile-${Ke.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${Ke.generateRandomString()}.json`}a Line truncated
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let n of i){if(n.length==1&&!n[0].startsWith("type="))return e=="local";for(let[s,a]of n.map(c=>c.split("=").map(u=>u.trim())))if(s=="type"&&a==e)return!0}return!1}static hasAttestationType(e,r){let i=pc(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let n of i)for(let[s,a]of n.map(c=>c.split("=").map(u=>u.trim())))if(s=="type"&&a==e)return!0;return!1}static resolveAttestationAttrs(e){let r=pc(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),i=[];for(let n of r)for(let s of n)try{let a=Ke.parseBool(s);i.push(`disabled=${!a}`)}catch{i.push(s)}return i.join(",")}static hasGitAuthTokenSecret(e,r){for(let i of e){if(r&&i.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(i.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let i=e.indexOf("="),n=e.substring(0,i),s=e.substring(i+1);if(n.length==0||s.length==0)throw new Error(`${e} is not a valid secret`);return r&&lf(s),[n,s]}};var Lae=P(require("fs"),1),D$e=P(require("path"),1);var IS=class t{static{o(this,"Bake")}buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new Jt,this.metadataFilename=`bake-metadata-${Ke.generateRandomString()}.json`}getMetadataFilePath(){return D$e.default.join(Dt.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!Lae.default.existsSync(e))return;let r=Lae.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRefs(e){if(!e&&(e=this.resolveMetadata(),!e))return;let r=new Array;for(let i in e)"buildx.build.ref"in e[i]&&r.push(e[i]["buildx.build.ref"]);return r.length>0?r:void 0}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}async getDefinition(e,r){r=r||{ignoreReturnCode:!0},r.ignoreReturnCode=!0,r.env=Object.assign({},process.env,r.env||{},e.githubToken?{BUILDX_BAKE_GIT_AUTH_TOKEN:e.githubToken}:{});let i=["bake"],n,s=[],a=[...e.files||[],e.source];if(a){for(let u of a.map(l=>l?l.trim():""))if(u.length!=0){if(!Ke.isValidRef(u)){s.push(u);continue}if(n)throw new Error("Only one remote bake definition can be defined");n=u}}n&&i.push(n);for(let u of s)i.push("--file",u);if(e.overrides)for(let u of e.overrides)i.push("--set",u);if(e.vars)for(let u of e.vars)i.push("--var",u);if(e.allow)for(let u of e.allow)i.push("--allow",u);e.call&&i.push("--call",e.call),e.load&&i.push("--load"),e.noCache&&i.push("--no-cache"),e.provenance&&i.push("--provenance",e.provenance),e.push&&i.push("--push"),e.sbom&&i.push("--sbom",e.sbom);let c=await this.buildx.getCommand([...i,"--print",...e.targets||[]]);return await qe.getExecOutput(c.command,c.args,r).then(u=>{if(u.stderr.length>0&&u.exitCode!=0)throw new Error(`cannot parse bake definitions: ${u.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return t.parseDefinition(u.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let i in r.target){let n=r.target[i];n.attest&&Array.isArray(n.attest)&&(n.attest=n.attest.map(s=>t.parseAttestEntry(s))),n["cache-from"]&&Array.isArray(n["cache-from"])&&(n["cache-from"]=n["cache-from"].map(s=>t.parseCacheEntry(s))),n["cache-to"]&&Array.isArray(n["cache-to"])&&(n["cache-to"]=n["cache-to"].map(s=>t.parseCacheEntry(s))),n.output&&Array.isArray(n.output)&&(n.output=n.output.map(s=>t.parseExportEntry(s))),n.secret&&Array.isArray(n.secret)&&(n.secret=n.secret.map(s=>t.parseSecretEntry(s))),n.ssh&&Array.isArray(n.ssh)&&(n.ssh=n.ssh.map(s=>t.parseSSHEntry(s)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},i=pc(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let n of i){let[s,a]=n.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(s){case"type":r.type=a;break;case"disabled":r.disabled=Ke.parseBool(a);break;default:r[s]=a}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},i=pc(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(i.length===1&&!i[0].includes("="))return r.type="registry",r.ref=i[0],r;for(let n of i){let[s,a]=n.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());s==="type"?r.type=a:r[s]=a}return r}static parseExportEntry(e){if(typeof e!="string")return e;let r={type:""},i=pc(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(i.length===1&&i[0]===e&&!e.startsWith("type="))return e!=="-"?(r.type="local",r.dest=e,r):(r.type="tar",r.dest=e,r);for(let n of i){let[s,a]=n.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());s==="type"?r.type=a:r[s]=a}return r}static parseSecretEntry(e){if(typeof e!="string")return e;let r={},i=pc(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0],n="";for(let s of i){let[a,c]=s.toString().split(/(?<=^[^=]+?)=/).map(u=>u.trim());switch(a){case"type":n=c;break;case"id":r.id=c;break;case"source":case"src":r.src=c;break;case"env":r.env=c;break}}return n==="env"&&!r.env&&(r.env=r.src,r.src=void 0),r}static parseSSHEntry(e){if(typeof e!="string")return e;let r={},[i,n]=e.split("=",2);return r.id Line truncated
`)[0])}static async isHeadDetached(){return await t.exec(["branch","--show-current"]).then(e=>e.length==0)}static async getDetachedRef(){let e=await t.exec(["show","-s","--pretty=%D"]);L(`detached HEAD ref: ${e}`);let r=e.replace(/^grafted, /,"").trim();if(r==="HEAD")return await t.inferRefFromHead();let i=r.match(/^HEAD, (.*)$/);if(!i||!i[1])throw new Error(`Cannot find detached HEAD ref in "${e}"`);let n=i[1].trim();if(n.startsWith("tag: "))return`refs/tags/${n.split(":")[1].trim()}`;if(n.match(/^pull\/\d+\/(head|merge)$/))return`refs/${n}`;let a=n.match(/^[^/]+\/[^/]+, (.+)$/);if(a)return`refs/heads/${a[1].trim()}`;let c=n.match(/^[^/]+\/(.+)$/);if(c)return`refs/heads/${c[1].trim()}`;throw new Error(`Unsupported detached HEAD ref in "${e}"`)}static async exec(e=[]){return await qe.getExecOutput("git",e,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr);return r.stdout.trim()})}static async inferRefFromHead(){let e=await t.findContainingRef("refs/heads/");if(e)return e;let r=await t.findContainingRef("refs/remotes/");if(r){let s=r.match(/^refs\/remotes\/[^/]+\/(.+)$/);return s?`refs/heads/${s[1]}`:r}let i=await t.exec(["tag","--contains","HEAD"]),[n]=i.split(`
`).map(s=>s.trim()).filter(s=>s.length>0);if(n)return`refs/tags/${n}`;throw new Error("Cannot infer ref from detached HEAD")}static async findContainingRef(e){let r=await t.exec(["for-each-ref","--format=%(refname)","--contains","HEAD","--sort=-committerdate",e]),[i]=r.split(`
`).map(n=>n.trim()).filter(n=>n.length>0);return i}static async commitDate(e){return new Date(await t.exec(["show","-s",'--format="%ci"',e]))}};var Lot=require("crypto"),sd=O(require("fs"),1),kg=O(require("path"),1);var K2=O(HN(),1),od=O(Qit(),1),Mot=O(Ame(),1),ov=O(Tot(),1);var gAe=O(HN(),1);var Dot=O(Il(),1);var Not="application/vnd.oci.empty.v1+json";var dm=class{binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"cosign",this._version="",this._versionOnce=!1}async isAvailable(){let e=await Ue.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(Q(`Cosign.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(Q(`Cosign.isAvailable error: ${r}`),!1));return Q(`Cosign.isAvailable: ${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await Ue.getExecOutput(this.binPath,["version","--json"],{ignoreReturnCode:!0,silent:!0}).then(e=>{if(e.stderr.length>0&&e.exitCode!=0)throw new Error(e.stderr.trim());return JSON.parse(e.stdout.trim()).gitVersion}),this._version)}async printVersion(){await Ue.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}async versionSatisfies(e,r){let i=r??await this.version();if(!i)return Q("Cosign.versionSatisfies false: undefined version"),!1;let n=Dot.satisfies(i,e)||/^[0-9a-f]{7}$/.exec(i)!==null;return Q(`Cosign.versionSatisfies ${i} statisfies ${e}: ${n}`),n}static parseCommandOutput(e){let r,i,n,s;for(let o of e.split(/\r?\n/)){let a=o.trim();if(!a.startsWith("{")||!a.endsWith("}"))continue;let c;try{c=JSON.parse(a)}catch{continue}if(c&&Array.isArray(c.errors)&&c.errors.length>0&&(s=c.errors),!r&&c&&Array.isArray(c.manifests)&&c.manifests.length>0){let u=c.manifests[0];u?.artifactType===gAe.BUNDLE_V03_MEDIA_TYPE&&typeof u.digest=="string"?r=u.digest:u?.artifactType===Not&&typeof u.digest=="string"&&(i=u.digest)}if(!n&&c&&c.mediaType===gAe.BUNDLE_V03_MEDIA_TYPE&&(n=c),n&&(r||i)){s=void 0;break}}return{bundle:n,signatureManifestDigest:r||i,errors:s}}};var yAe=O(require("fs"),1);var c6=class t{buildx;constructor(e){this.buildx=e?.buildx||new Wt}async getCommand(e){return await this.buildx.getCommand(["imagetools",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getCreateCommand(e){return await this.getCommand(["create",...e])}async inspectImage(e){return await this.inspect(e,"{{json .Image}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"config"),r;throw new Error("Unexpected output format")})}async inspectManifest(e){return await this.inspect(e,"{{json .Manifest}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"manifests"),r;throw new Error("Unexpected output format")})}async attestationDescriptors(e){let r=await this.inspectManifest(e);if(typeof r!="object"||r===null||!("manifests"in r)||!Array.isArray(r.manifests))throw new Error(`No descriptor found for ${e.name}`);let i=r.manifests.filter(o=>o.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return i;let n=e.platform,s=new Map;for(let o of r.manifests)o.digest&&s.set(o.digest,o);return i.filter(o=>{let a=o.annotations?.["vnd.docker.reference.digest"];if(!a)return!1;let c=s.get(a);return c?c.platform?.os===n.os&&c.platform?.architecture===n.architecture&&(c.platform?.variant??"")===(n.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}async create(e){let r=[],i=Nt.tmpName({tmpdir:Nt.tmpDir(),template:"imagetools-metadata-XXXXXX"}),n=[],s=[];for(let a of e.sources){if(a.startsWith("cwd://")){let c=a.substring(6);c.length>0&&n.push(c);continue}s.push(a)}if(e.tags)for(let a of e.tags)r.push("--tag",a);if(e.platforms)for(let a of e.platforms)r.push("--platform",a);if(e.annotations)for(let a of e.annotations)r.push("--annotation",a);e.dryRun?r.push("--dry-run"):r.push("--metadata-file",i);for(let a of n)r.push("--file",a);for(let a of s)r.push(a);let o=await this.getCreateCommand(r);if(e.skipExec){H(`[command]${o.command} ${o.args.join(" ")}`),H("Skipped create command");return}return await Ue.getExecOutput(o.command,o.args,{ignoreReturnCode:!0,silent:e.silent}).then(a=>{if(a.stderr.length>0&&a.exitCode!=0)throw new Error(a.stderr.trim());if(!e.dryRun){if(!yAe.default.existsSync(i))return;let c=yAe.default.readFileSync(i,{encoding:"utf-8"}).trim();if(c===""||c==="null")return;let u=JSON.parse(c),l=u["containerimage.descriptor"];return l?{digest:u["containerimage.digest"]||l.digest,descriptor:l,imageNames:u["image.name"]?u["image.name"].split(",").map(f=>f.trim()):[]}:void 0}})}async inspect(e,r,i){let n=await this.getInspectCommand([e.name,"--format",r]);if(!e.retryOnManifestUnknown)return await this.execInspect(n.command,n.args,i);let s=e.retryLimit??15,o;for(let a=0;a<s;a++)try{return await this.execInspect(n.command,n.args,i)}catch(c){if(o=c,!t.isManifest Line truncated
${o.message}`),await new Promise(u=>setTimeout(u,Math.pow(2,a)*100))}throw o??new Error(`ImageTools inspect command failed for ${e.name}`)}async execInspect(e,r,i){return await Ue.getExecOutput(e,r,{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr.trim());return i(JSON.parse(n.stdout))})}static isManifestUnknownError(e){return/(MANIFEST_UNKNOWN|manifest unknown|not found: not found)/i.test(e)}};var Oot="application/vnd.in-toto+json";var Pot="https://fulcio.sigstore.dev",kot="https://rekor.sigstore.dev",Qot="https://timestamp.sigstore.dev",ob="https://search.sigstore.dev";var uRr="slsaprovenance1",Qg=class t{cosign;imageTools;constructor(e){this.cosign=e?.cosign||new dm,this.imageTools=e?.imageTools||new c6}async signAttestationManifests(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign attestation manifests");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let i=this.signingEndpoints(e.noTransparencyLog);H(`Using Sigstore signing endpoint: ${i.fulcioURL}`);let n=t.noTransparencyLog(e.noTransparencyLog),s=[];await this.cosign.versionSatisfies(">=3.0.4")?await ni("Creating Sigstore protobuf signing config",async()=>{let o=Nt.tmpName({template:"signing-config-XXXXXX.json",tmpdir:Nt.tmpDir()}),a=["signing-config","create","--with-default-services=true",`--out=${o}`];n&&a.push("--no-default-rekor=true"),await Ue.exec(this.cosign.binPath,a,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),H(JSON.stringify(JSON.parse(sd.default.readFileSync(o,{encoding:"utf-8"})),null,2)),s.push(`--signing-config=${o}`)}):(s.push("--use-signing-config"),n&&s.push("--tlog-upload=false"));for(let o of e.imageNames){let a=await this.imageTools.attestationDigests({name:`${o}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let c of a){let u=`${o}@${c}`;await ni(`Signing attestation manifest ${u}`,async()=>{let l=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1","--new-bundle-format",...s];H(`[command]${this.cosign.binPath} ${[...l,u].join(" ")}`);let f=await Ue.getExecOutput(this.cosign.binPath,["--verbose",...l,u],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),h=dm.parseCommandOutput(f.stderr.trim());if(f.exitCode!=0)if(h.errors&&h.errors.length>0){let m=h.errors.map(A=>`- [${A.code}] ${A.message} : ${A.detail}`).join(`
`).map(n=>n.trim()).filter(n=>n.length>0);return i}static async commitDate(e){return new Date(await t.exec(["show","-s",'--format="%ci"',e]))}};var Mot=require("crypto"),od=P(require("fs"),1),Qg=P(require("path"),1);var X2=P(jN(),1),ad=P(Lit(),1),Fot=P(gme(),1),av=P(Not(),1);var yAe=P(jN(),1);var Oot=P(Sl(),1);var Dot="application/vnd.oci.empty.v1+json";var pm=class{static{o(this,"Cosign")}binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"cosign",this._version="",this._versionOnce=!1}async isAvailable(){let e=await qe.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(L(`Cosign.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(L(`Cosign.isAvailable error: ${r}`),!1));return L(`Cosign.isAvailable: ${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await qe.getExecOutput(this.binPath,["version","--json"],{ignoreReturnCode:!0,silent:!0}).then(e=>{if(e.stderr.length>0&&e.exitCode!=0)throw new Error(e.stderr.trim());return JSON.parse(e.stdout.trim()).gitVersion}),this._version)}async printVersion(){await qe.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}async versionSatisfies(e,r){let i=r??await this.version();if(!i)return L("Cosign.versionSatisfies false: undefined version"),!1;let n=Oot.satisfies(i,e)||/^[0-9a-f]{7}$/.exec(i)!==null;return L(`Cosign.versionSatisfies ${i} statisfies ${e}: ${n}`),n}static parseCommandOutput(e){let r,i,n,s;for(let a of e.split(/\r?\n/)){let c=a.trim();if(!c.startsWith("{")||!c.endsWith("}"))continue;let u;try{u=JSON.parse(c)}catch{continue}if(u&&Array.isArray(u.errors)&&u.errors.length>0&&(s=u.errors),!r&&u&&Array.isArray(u.manifests)&&u.manifests.length>0){let l=u.manifests[0];l?.artifactType===yAe.BUNDLE_V03_MEDIA_TYPE&&typeof l.digest=="string"?r=l.digest:l?.artifactType===Dot&&typeof l.digest=="string"&&(i=l.digest)}if(!n&&u&&u.mediaType===yAe.BUNDLE_V03_MEDIA_TYPE&&(n=u),n&&(r||i)){s=void 0;break}}return{bundle:n,signatureManifestDigest:r||i,errors:s}}};var EAe=P(require("fs"),1);var l6=class t{static{o(this,"ImageTools")}buildx;constructor(e){this.buildx=e?.buildx||new Jt}async getCommand(e){return await this.buildx.getCommand(["imagetools",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getCreateCommand(e){return await this.getCommand(["create",...e])}async inspectImage(e){return await this.inspect(e,"{{json .Image}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"config"),r;throw new Error("Unexpected output format")})}async inspectManifest(e){return await this.inspect(e,"{{json .Manifest}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"manifests"),r;throw new Error("Unexpected output format")})}async attestationDescriptors(e){let r=await this.inspectManifest(e);if(typeof r!="object"||r===null||!("manifests"in r)||!Array.isArray(r.manifests))throw new Error(`No descriptor found for ${e.name}`);let i=r.manifests.filter(a=>a.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return i;let n=e.platform,s=new Map;for(let a of r.manifests)a.digest&&s.set(a.digest,a);return i.filter(a=>{let c=a.annotations?.["vnd.docker.reference.digest"];if(!c)return!1;let u=s.get(c);return u?u.platform?.os===n.os&&u.platform?.architecture===n.architecture&&(u.platform?.variant??"")===(n.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}async create(e){let r=[],i=Dt.tmpName({tmpdir:Dt.tmpDir(),template:"imagetools-metadata-XXXXXX"}),n=[],s=[];for(let c of e.sources){if(c.startsWith("cwd://")){let u=c.substring(6);u.length>0&&n.push(u);continue}s.push(c)}if(e.tags)for(let c of e.tags)r.push("--tag",c);if(e.platforms)for(let c of e.platforms)r.push("--platform",c);if(e.annotations)for(let c of e.annotations)r.push("--annotation",c);e.dryRun?r.push("--dry-run"):r.push("--metadata-file",i);for(let c of n)r.push("--file",c);for(let c of s)r.push(c);let a=await this.getCreateCommand(r);if(e.skipExec){j(`[command]${a.command} ${a.args.join(" ")}`),j("Skipped create command");return}return await qe.getExecOutput(a.command,a.args,{ignoreReturnCode:!0,silent:e.silent}).then(c=>{if(c.stderr.length>0&&c.exitCode!=0)throw new Error(c.stderr.trim());if(!e.dryRun){if(!EAe.default.existsSync(i))return;let u=EAe.default.readFileSync(i,{encoding:"utf-8"}).trim();if(u===""||u==="null")return;let l=JSON.parse(u),f=l["containerimage.descriptor"];return f?{digest:l["containerimage.digest"]||f.digest,descriptor:f,imageNames:l["image.name"]?l["image.name"].split(",").map(h=>h.trim()):[]}:void 0}})}async inspect(e,r,i){let n=await this.getInspectCommand([e.name,"--format",r]);if(!e.retryOnManifestUnknown)return await this.execInspect(n.command,n.args,i);let s=e.retryLimit??15,a;for(let c=0;c<s;c++)try{return await this.execInspe Line truncated
${a.message}`),await new Promise(l=>setTimeout(l,Math.pow(2,c)*100))}throw a??new Error(`ImageTools inspect command failed for ${e.name}`)}async execInspect(e,r,i){return await qe.getExecOutput(e,r,{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr.trim());return i(JSON.parse(n.stdout))})}static isManifestUnknownError(e){return/(MANIFEST_UNKNOWN|manifest unknown|not found: not found)/i.test(e)}};var Pot="application/vnd.in-toto+json";var kot="https://fulcio.sigstore.dev",Qot="https://rekor.sigstore.dev",Lot="https://timestamp.sigstore.dev",ab="https://search.sigstore.dev";var lRr="slsaprovenance1",Lg=class t{static{o(this,"Sigstore")}cosign;imageTools;constructor(e){this.cosign=e?.cosign||new pm,this.imageTools=e?.imageTools||new l6}async signAttestationManifests(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign attestation manifests");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let i=this.signingEndpoints(e.noTransparencyLog);j(`Using Sigstore signing endpoint: ${i.fulcioURL}`);let n=t.noTransparencyLog(e.noTransparencyLog),s=[];await this.cosign.versionSatisfies(">=3.0.4")?await si("Creating Sigstore protobuf signing config",async()=>{let a=Dt.tmpName({template:"signing-config-XXXXXX.json",tmpdir:Dt.tmpDir()}),c=["signing-config","create","--with-default-services=true",`--out=${a}`];n&&c.push("--no-default-rekor=true"),await qe.exec(this.cosign.binPath,c,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),j(JSON.stringify(JSON.parse(od.default.readFileSync(a,{encoding:"utf-8"})),null,2)),s.push(`--signing-config=${a}`)}):(s.push("--use-signing-config"),n&&s.push("--tlog-upload=false"));for(let a of e.imageNames){let c=await this.imageTools.attestationDigests({name:`${a}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let u of c){let l=`${a}@${u}`;await si(`Signing attestation manifest ${l}`,async()=>{let f=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1","--new-bundle-format",...s];j(`[command]${this.cosign.binPath} ${[...f,l].join(" ")}`);let h=await qe.getExecOutput(this.cosign.binPath,["--verbose",...f,l],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),d=pm.parseCommandOutput(h.stderr.trim());if(h.exitCode!=0)if(d.errors&&d.errors.length>0){let A=d.errors.map(g=>`- [${g.code}] ${g.message} : ${g.detail}`).join(`
`);throw new Error(`Cosign sign command failed with errors:
${m}`)}else throw new Error(`Cosign sign command failed with: ${f.stderr.trim().split(/\r?\n/).filter(m=>m.length>0).pop()??"unknown error"}`);let d=t.parseBundle((0,K2.bundleFromJSON)(h.bundle));d.tlogID&&H(`Uploaded to Rekor transparency log: ${ob}?logIndex=${d.tlogID}`),H(`Signature manifest pushed: https://oci.dag.dev/?referrers=${u}`),r[u]={...d,imageName:o}})}}}catch(i){throw new Error(`Signing BuildKit attestation manifests failed: ${i.message}`)}return r}async verifySignedManifests(e,r){let i={};for(let[n,s]of Object.entries(e))await ni(`Verifying signature of ${n}`,async()=>{let o=await this.verifyImageAttestation(n,{certificateIdentityRegexp:r.certificateIdentityRegexp,noTransparencyLog:r.noTransparencyLog||!s.tlogID,retryOnManifestUnknown:r.retryOnManifestUnknown});H(`Signature manifest verified: https://oci.dag.dev/?image=${s.imageName}@${o.signatureManifestDigest}`),i[n]=o});return i}async verifyImageAttestations(e,r){let i={},n=await this.imageTools.attestationDigests({name:e,platform:r.platform,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});if(n.length===0)throw new Error(`No attestation manifests found for ${e}`);let s=e.split(":",1)[0];for(let o of n){let a=`${s}@${o}`,c=await this.verifyImageAttestation(a,r);H(`Signature manifest verified: https://oci.dag.dev/?image=${s}@${c.signatureManifestDigest}`),i[a]=c}return i}async verifyImageAttestation(e,r){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed manifests");let i=["verify","--experimental-oci11","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp];if(r.noTransparencyLog&&i.push("--use-signed-timestamps","--insecure-ignore-tlog"),!r.retryOnManifestUnknown){H(`[command]${this.cosign.binPath} ${[...i,e].join(" ")}`);let o=await Ue.getExecOutput(this.cosign.binPath,["--verbose",...i,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})});if(o.exitCode!==0)throw new Error(`Cosign verify command failed with: ${o.stderr.trim().split(/\r?\n/).filter(c=>c.length>0).pop()??"unknown error"}`);let a=dm.parseCommandOutput(o.stderr.trim());return{cosignArgs:i,signatureManifestDigest:a.signatureManifestDigest}}let n=r.retryLimit??15,s;H(`[command]${this.cosign.binPath} ${[...i,e].join(" ")}`);for(let o=0;o<n;o++){let a=await Ue.getExecOutput(this.cosign.binPath,["--verbose",...i,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),c=dm.parseCommandOutput(a.stderr.trim());if(a.exitCode===0)return{cosignArgs:i,signatureManifestDigest:c.signatureManifestDigest};if(c.errors&&c.errors.length>0){let u=c.errors.map(l=>`- [${l.code}] ${l.message} : ${l.detail}`).join(`
${A}`)}else throw new Error(`Cosign sign command failed with: ${h.stderr.trim().split(/\r?\n/).filter(A=>A.length>0).pop()??"unknown error"}`);let p=t.parseBundle((0,X2.bundleFromJSON)(d.bundle));p.tlogID&&j(`Uploaded to Rekor transparency log: ${ab}?logIndex=${p.tlogID}`),j(`Signature manifest pushed: https://oci.dag.dev/?referrers=${l}`),r[l]={...p,imageName:a}})}}}catch(i){throw new Error(`Signing BuildKit attestation manifests failed: ${i.message}`)}return r}async verifySignedManifests(e,r){let i={};for(let[n,s]of Object.entries(e))await si(`Verifying signature of ${n}`,async()=>{let a=await this.verifyImageAttestation(n,{certificateIdentityRegexp:r.certificateIdentityRegexp,noTransparencyLog:r.noTransparencyLog||!s.tlogID,retryOnManifestUnknown:r.retryOnManifestUnknown});j(`Signature manifest verified: https://oci.dag.dev/?image=${s.imageName}@${a.signatureManifestDigest}`),i[n]=a});return i}async verifyImageAttestations(e,r){let i={},n=await this.imageTools.attestationDigests({name:e,platform:r.platform,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});if(n.length===0)throw new Error(`No attestation manifests found for ${e}`);let s=e.split(":",1)[0];for(let a of n){let c=`${s}@${a}`,u=await this.verifyImageAttestation(c,r);j(`Signature manifest verified: https://oci.dag.dev/?image=${s}@${u.signatureManifestDigest}`),i[c]=u}return i}async verifyImageAttestation(e,r){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed manifests");let i=["verify","--experimental-oci11","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp];if(r.noTransparencyLog&&i.push("--use-signed-timestamps","--insecure-ignore-tlog"),!r.retryOnManifestUnknown){j(`[command]${this.cosign.binPath} ${[...i,e].join(" ")}`);let a=await qe.getExecOutput(this.cosign.binPath,["--verbose",...i,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})});if(a.exitCode!==0)throw new Error(`Cosign verify command failed with: ${a.stderr.trim().split(/\r?\n/).filter(u=>u.length>0).pop()??"unknown error"}`);let c=pm.parseCommandOutput(a.stderr.trim());return{cosignArgs:i,signatureManifestDigest:c.signatureManifestDigest}}let n=r.retryLimit??15,s;j(`[command]${this.cosign.binPath} ${[...i,e].join(" ")}`);for(let a=0;a<n;a++){let c=await qe.getExecOutput(this.cosign.binPath,["--verbose",...i,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),u=pm.parseCommandOutput(c.stderr.trim());if(c.exitCode===0)return{cosignArgs:i,signatureManifestDigest:u.signatureManifestDigest};if(u.errors&&u.errors.length>0){let l=u.errors.map(f=>`- [${f.code}] ${f.message} : ${f.detail}`).join(`
`);if(s=new Error(`Cosign verify command failed with errors:
${u}`),c.errors.some(l=>l.code==="MANIFEST_UNKNOWN"))H(`Cosign verify command failed with MANIFEST_UNKNOWN, retrying attempt ${o+1}/${n}...
${u}`),await new Promise(l=>setTimeout(l,Math.pow(2,o)*100));else throw s}else throw new Error(`Cosign verify command failed with: ${a.stderr.trim().split(/\r?\n/).filter(u=>u.length>0).pop()??"unknown error"}`)}throw s}async signProvenanceBlobs(e){let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let i=this.signingEndpoints(e.noTransparencyLog);H(`Using Sigstore signing endpoint: ${i.fulcioURL}`);let n=t.getProvenanceBlobs(e);for(let s of Object.keys(n))await ni(`Signing ${s}`,async()=>{let o=n[s],a=kg.default.join(kg.default.dirname(s),`${e.name??"provenance"}.sigstore.json`),c=t.getProvenanceSubjects(o);if(c.length===0){lr(`No subjects found in provenance ${s}, skip signing.`);return}let u=await t.signPayload({data:o,type:Oot},i),l=t.parseBundle(u);H("Provenance blob signed for:");for(let f of c){let[h,d]=Object.entries(f.digest)[0]||[];H(` - ${f.name} (${h}:${d})`)}l.tlogID&&H(`Attestation signature uploaded to Rekor transparency log: ${ob}?logIndex=${l.tlogID}`),H(`Writing Sigstore bundle to: ${a}`),sd.default.writeFileSync(a,JSON.stringify(l.payload,null,2),{encoding:"utf-8"}),r[s]={...l,bundlePath:a,subjects:c}})}catch(i){throw new Error(`Signing BuildKit provenance blobs failed: ${i.message}`)}return r}async verifySignedArtifacts(e,r){let i={};if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed artifacts");for(let[n,s]of Object.entries(e)){let o=kg.default.dirname(n);await ni(`Verifying signature bundle ${s.bundlePath}`,async()=>{for(let a of s.subjects){let c=kg.default.join(o,a.name);H(`Verifying signed artifact ${c}`);let u=["verify-blob-attestation","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??uRr];(r.noTransparencyLog||!s.tlogID)&&u.push("--use-signed-timestamps","--insecure-ignore-tlog");let l=await Ue.getExecOutput(this.cosign.binPath,[...u,"--bundle",s.bundlePath,c],{ignoreReturnCode:!0});if(l.stderr.length>0&&l.exitCode!=0)throw new Error(l.stderr);i[c]={bundlePath:s.bundlePath,cosignArgs:u}}})}return i}async verifyArtifact(e,r,i){H("Verifying keyless verification bundle signature");let n=JSON.parse(sd.default.readFileSync(r,"utf-8")),s=(0,K2.bundleFromJSON)(n);H("Fetching Sigstore TUF trusted root metadata");let o=await Mot.getTrustedRoot(),a=(0,ov.toTrustMaterial)(o);try{H("Verifying artifact signature");let c=(0,ov.toSignedEntity)(s,sd.default.readFileSync(e)),u=t.parseCertificate(s),l=s.verificationMaterial.tlogEntries,f=l.length>0?l[0].logIndex:void 0;if(i?.subjectAlternativeName&&i?.subjectAlternativeName instanceof RegExp){let m=u.subjectAltName?.replace(/^uri:/i,"");if(m){if(!m.match(i.subjectAlternativeName))throw new Error(`Signing certificate subjectAlternativeName "${m}" does not match expected pattern`)}else throw new Error("Signing certificate does not contain subjectAltName")}let d=new ov.Verifier(a).verify(c,{subjectAlternativeName:i?.subjectAlternativeName&&typeof i.subjectAlternativeName=="string"?i.subjectAlternativeName:void 0,extensions:i?.issuer?{issuer:i.issuer}:void 0});return Q(`Sigstore.verifyArtifact signer: ${JSON.stringify(d)}`),{payload:n,certificate:u.toString(),tlogID:f}}catch(c){throw new Error(`Failed to verify artifact signature: ${c}`)}}signingEndpoints(e){return e=t.noTransparencyLog(e),H(`Upload to transparency log: ${e?"disabled":"enabled"}`),{fulcioURL:Pot,rekorURL:e?void 0:kot,tsaServerURL:Qot}}static noTransparencyLog(e){return e??At.context.payload.repository?.private}static getProvenanceBlobs(e){let r=kg.default.join(e.localExportDir,"provenance.json");if(sd.default.existsSync(r))return{[r]:sd.default.readFileSync(r)};let i=sd.default.readdirSync(e.localExportDir,{withFileTypes:!0}),n=i.filter(s=>s.isDirectory());if(n.length>0&&n.length===i.length&&n.every(s=>sd.default.existsSync(kg.default.join(e.localExportDir,s.name,"provenance.json")))){let s={};for(let o of n){let a=kg.default.join(e.localExportDir,o.name,"provenance.json");s[a]=sd.default.readFileSync(a)}return s}throw new Error(`No valid provenance.json found in ${e.localExportDir}`)}static getProvenanceSubjects(e){return JSON.parse(e.toString()).subject.map(i=>({name:i.name,digest:i.digest}))}static async signPayload(e,r,i,n){let s=[],o=new od.FulcioSigner({identityProvider:new od.CIContextProvider("sigstore"),fulcioBaseURL:r.fulcioURL,timeout:i,retry:n});return r.rekorURL&&s.push(new od.RekorWitness({rekorBaseURL:r.rekorURL,fetchOnConflict:!0,timeout:i,retry:n})),r.tsaServerURL&&s.push(new od.TSAWitness({tsaBaseURL:r.tsaServerURL,timeout:i,retry:n})),new od.DSSEBundleBuilder({signer:o,witnesses:s}).create(e)}static parseBundle(e){let r=t.parseCertificate(e),i=e.verificationMaterial.tlogEntries,n=i.length>0?i[0].logIndex:void 0;return{payload:(0,K2.bundleToJSON)(e),certificate:r.toString(),tlogID:n}} Line truncated
`)){let[u,...l]=c.split(":"),f=u.toLowerCase(),h=l.map(d=>d.trim()).join(":");if(u.length!=0)switch(!0){case f=="name":i=void 0,r.name==null?r.name=h:(s&&n.gcPolicy&&(n.gcPolicy.push(s),s=void 0),n.name&&r.nodes.push(n),n={name:h});break;case f=="driver":i=void 0,r.driver=h;break;case f=="last activity":i=void 0,r.lastActivity=new Date(h);break;case f=="endpoint":i=void 0,n.endpoint=h;break;case f=="driver options":i=void 0,n["driver-opts"]=(h.match(/([a-zA-Z0-9_.]+)="([^"]*)"/g)||[]).map(d=>d.replace(/^(.*)="(.*)"$/g,"$1=$2"));break;case f=="status":i=void 0,n.status=h;break;case f=="buildkit daemon flags":case f=="flags":i=void 0,n["buildkitd-flags"]=h;break;case f=="buildkit version":case f=="buildkit":i=void 0,n.buildkit=h;break;case f=="platforms":{if(i=void 0,!h)break;let d=[];if(h.includes("*"))for(let m of h.split(", "))m.includes("*")&&d.push(m.replace(/\*/g,""));else d=h.split(", ");n.platforms=d.join(",");break}case f=="features":i="features",n.features={};break;case f=="labels":i="label",n.labels={};break;case f=="devices":i="devices",n.devices=n.devices||[];break;case f.startsWith("gc policy rule#"):i="gcpolicy",n.gcPolicy&&s&&(n.gcPolicy.push(s),s=void 0);break;case f.startsWith("file#"):i="file",a=u.split("#")[1],n.files=n.files||{},n.files[a]="";break;default:switch(i&&i!=="devices"&&n.devices&&o&&(n.devices.push(o),o=void 0),i||""){case"features":{n.features=n.features||{},n.features[u.trim()]=!!h;break}case"label":{n.labels=n.labels||{},n.labels[u.trim()]=h;break}case"devices":{switch(f.trim()){case"name":{n.devices&&o&&n.devices.push(o),o={},o.name=h;break}case"on-demand":{o&&h&&(o.onDemand=h=="true");break}case"automatically allowed":{o&&h&&(o.autoAllow=h=="true");break}case"annotations":{o&&(o.annotations=o.annotations||{});break}default:o&&o.annotations&&(o.annotations[u.trim()]=h)}break}case"gcpolicy":{switch(n.gcPolicy=n.gcPolicy||[],s=s||{},f.trim()){case"all":{s.all=h=="true";break}case"filters":{h&&(s.filter=h.split(","));break}case"keep duration":{s.keepDuration=h;break}case"keep bytes":{s.keepBytes=h;break}case"reserved space":{s.reservedSpace=h;break}case"max used space":{s.maxUsedSpace=h;break}case"min free space":{s.minFreeSpace=h;break}}break}case"file":{a&&n.files&&(n.files[a].length>0&&(n.files[a]+=`
`),n.files[a]+=c.replace(/^\s>\s?/,""));break}}}}return o&&n.devices&&n.devices.push(o),s&&n.gcPolicy&&n.gcPolicy.push(s),n.name&&r.nodes.push(n),r}};var Fot=O(Il(),1);var l6=O(require("fs"),1);var f6=class{resolveFromString(e){return this.resolve(e,!1)}resolveFromFile(e){return this.resolve(e,!0)}resolve(e,r){if(r){if(!l6.default.existsSync(e))throw new Error(`config file ${e} not found`);e=l6.default.readFileSync(e,{encoding:"utf-8"})}let i=Nt.tmpName({tmpdir:Nt.tmpDir()});return l6.default.writeFileSync(i,e),i}};var h6=class{buildx;config;constructor(e){this.config=new f6,this.buildx=e?.buildx||new Wt}async getVersion(e){if(!e.buildkit&&e.name)try{return await this.getVersionWithinImage(e.name)}catch(r){lr(r)}return e.buildkit}async getVersionWithinImage(e){return Q(`BuildKit.getVersionWithinImage nodeName: ${e}`),Di.getExecOutput(["inspect","--format","{{.Config.Image}}",`${Wt.containerNamePrefix}${e}`],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.exitCode==0&&r.stdout.length>0)return Q(`BuildKit.getVersionWithinImage image: ${r.stdout.trim()}`),Di.getExecOutput(["run","--rm",r.stdout.trim(),"--version"],{ignoreReturnCode:!0,silent:!0}).then(i=>{if(i.exitCode==0&&i.stdout.length>0)return`${r.stdout.trim()} => ${i.stdout.trim()}`;if(i.stderr.length>0)throw new Error(r.stderr.trim());return i.stdout.trim()});if(r.stderr.length>0)throw new Error(r.stderr.trim());return r.stdout.trim()})}async versionSatisfies(e,r,i){i||(i=await new cv({buildx:this.buildx}).inspect(e));for(let n of i.nodes){let s=n.buildkit;if(Q(`BuildKit.versionSatisfies ${s}: ${r}`),!s)try{s=await this.getVersionWithinImage(n.name||"")}catch{return Q(`BuildKit.versionSatisfies ${n.name}: can't get version`),!1}if(Q(`BuildKit.versionSatisfies ${n.name}: version ${s}`),i.driver=="docker"&&!s.endsWith("-moby")||!Fot.satisfies(s.replace(/-moby$/,""),r))return!1}return!0}};var d6=class t{_version;_versionOnce;_standalone;constructor(e){this._standalone=e?.standalone,this._version="",this._versionOnce=!1}async isStandalone(){let e=this._standalone??!await Di.isAvailable();return Q(`Compose.isStandalone: ${e}`),e}async getCommand(e){let r=await this.isStandalone();return{command:r?"compose":"docker",args:r?e:["compose",...e]}}async isAvailable(){let e=await this.getCommand([]),r=await Ue.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(i=>i.stderr.length>0&&i.exitCode!=0?(Q(`Compose.isAvailable cmd err: ${i.stderr.trim()}`),!1):i.exitCode==0).catch(i=>(Q(`Compose.isAvailable error: ${i}`),!1));return Q(`Compose.isAvailable: ${r}`),r}async version(){if(this._versionOnce)return this._version;this._versionOnce=!0;let e=await this.getCommand(["version"]);return this._version=await Ue.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr.trim());return t.parseVersion(r.stdout.trim())}),this._version}async printVersion(){let e=await this.getCommand(["version"]);await Ue.exec(e.command,e.args,{failOnStdErr:!1})}static parseVersion(e){let r=/\sv?([0-9a-f]{7}|[0-9.]+)/.exec(e);if(!r)throw new Error("Cannot parse compose version");return r[1]}};var mm=O(require("fs"),1),cd=O(require("os"),1),uv=O(require("path"),1);var m6=O(Il(),1),bAe=O(require("util"),1);var p6=class t{standalone;githubToken;constructor(e){this.standalone=e?.standalone,this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let i=await t.getDownloadVersion(e);Q(`Install.download version: ${i.version}`);let n=await t.getRelease(i,this.githubToken);Q(`Install.download release tag name: ${n.tag_name}`);let s=await this.vspec(n.tag_name);Q(`Install.download vspec: ${s}`);let o=m6.clean(s)||"";if(!m6.valid(o))throw new Error(`Invalid Compose version "${s}".`);let a=new Rn({htcName:i.key!="official"?`compose-dl-bin-${i.key}`:"compose-dl-bin",htcVersion:s,baseCacheDir:uv.default.join(cd.default.homedir(),".bin","docker-compose"),cacheFile:cd.default.platform()=="win32"?"docker-compose.exe":"docker-compose",ghaNoCache:r}),c=await a.find();if(c)return H(`Compose binary found in ${c}`),c;let u=bAe.format(i.downloadURL,s,this.filename());H(`Downloading ${u}`);let l=await Wc(u,void 0,this.githubToken);Q(`Install.download htcDownloadPath: ${l}`);let f=await a.save(l);return H(`Cached to ${f}`),f}async installStandalone(e,r){H("Standalone mode"),r=r||Nt.tmpDir();let i=uv.default.join(r,"compose-bin-standalone");mm.default.existsSync(i)||mm.default.mkdirSync(i,{recursive:!0});let n=cd.default.platform()=="win32"?"compose.exe":"compose",s=uv.default.join(i,n);return mm.default.copyFileSync(e,s),H("Fixing perms"),mm.default.chmodSync(s,"0755"),ff(i),H("Added Compose to PATH"),H(`Binary path: ${s}`),s}async installPlugin(e,r){H("Docker plugin mode"),r=r||Di.configDir;let i=uv.default.join(r,"cli-plugins");mm.default.existsSync(i)||mm.default.mkdirSync(i,{recursive:!0});let n=cd.default.platform()=="win32"?"docker-compose.exe":"docker-compose",s=uv.default.join(i,n);return mm.defaul Line truncated
${l}`),u.errors.some(f=>f.code==="MANIFEST_UNKNOWN"))j(`Cosign verify command failed with MANIFEST_UNKNOWN, retrying attempt ${a+1}/${n}...
${l}`),await new Promise(f=>setTimeout(f,Math.pow(2,a)*100));else throw s}else throw new Error(`Cosign verify command failed with: ${c.stderr.trim().split(/\r?\n/).filter(l=>l.length>0).pop()??"unknown error"}`)}throw s}async signProvenanceBlobs(e){let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let i=this.signingEndpoints(e.noTransparencyLog);j(`Using Sigstore signing endpoint: ${i.fulcioURL}`);let n=t.getProvenanceBlobs(e);for(let s of Object.keys(n))await si(`Signing ${s}`,async()=>{let a=n[s],c=Qg.default.join(Qg.default.dirname(s),`${e.name??"provenance"}.sigstore.json`),u=t.getProvenanceSubjects(a);if(u.length===0){fr(`No subjects found in provenance ${s}, skip signing.`);return}let l=await t.signPayload({data:a,type:Pot},i),f=t.parseBundle(l);j("Provenance blob signed for:");for(let h of u){let[d,p]=Object.entries(h.digest)[0]||[];j(` - ${h.name} (${d}:${p})`)}f.tlogID&&j(`Attestation signature uploaded to Rekor transparency log: ${ab}?logIndex=${f.tlogID}`),j(`Writing Sigstore bundle to: ${c}`),od.default.writeFileSync(c,JSON.stringify(f.payload,null,2),{encoding:"utf-8"}),r[s]={...f,bundlePath:c,subjects:u}})}catch(i){throw new Error(`Signing BuildKit provenance blobs failed: ${i.message}`)}return r}async verifySignedArtifacts(e,r){let i={};if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed artifacts");for(let[n,s]of Object.entries(e)){let a=Qg.default.dirname(n);await si(`Verifying signature bundle ${s.bundlePath}`,async()=>{for(let c of s.subjects){let u=Qg.default.join(a,c.name);j(`Verifying signed artifact ${u}`);let l=["verify-blob-attestation","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??lRr];(r.noTransparencyLog||!s.tlogID)&&l.push("--use-signed-timestamps","--insecure-ignore-tlog");let f=await qe.getExecOutput(this.cosign.binPath,[...l,"--bundle",s.bundlePath,u],{ignoreReturnCode:!0});if(f.stderr.length>0&&f.exitCode!=0)throw new Error(f.stderr);i[u]={bundlePath:s.bundlePath,cosignArgs:l}}})}return i}async verifyArtifact(e,r,i){j("Verifying keyless verification bundle signature");let n=JSON.parse(od.default.readFileSync(r,"utf-8")),s=(0,X2.bundleFromJSON)(n);j("Fetching Sigstore TUF trusted root metadata");let a=await Fot.getTrustedRoot(),c=(0,av.toTrustMaterial)(a);try{j("Verifying artifact signature");let u=(0,av.toSignedEntity)(s,od.default.readFileSync(e)),l=t.parseCertificate(s),f=s.verificationMaterial.tlogEntries,h=f.length>0?f[0].logIndex:void 0;if(i?.subjectAlternativeName&&i?.subjectAlternativeName instanceof RegExp){let A=l.subjectAltName?.replace(/^uri:/i,"");if(A){if(!A.match(i.subjectAlternativeName))throw new Error(`Signing certificate subjectAlternativeName "${A}" does not match expected pattern`)}else throw new Error("Signing certificate does not contain subjectAltName")}let p=new av.Verifier(c).verify(u,{subjectAlternativeName:i?.subjectAlternativeName&&typeof i.subjectAlternativeName=="string"?i.subjectAlternativeName:void 0,extensions:i?.issuer?{issuer:i.issuer}:void 0});return L(`Sigstore.verifyArtifact signer: ${JSON.stringify(p)}`),{payload:n,certificate:l.toString(),tlogID:h}}catch(u){throw new Error(`Failed to verify artifact signature: ${u}`)}}signingEndpoints(e){return e=t.noTransparencyLog(e),j(`Upload to transparency log: ${e?"disabled":"enabled"}`),{fulcioURL:kot,rekorURL:e?void 0:Qot,tsaServerURL:Lot}}static noTransparencyLog(e){return e??gt.context.payload.repository?.private}static getProvenanceBlobs(e){let r=Qg.default.join(e.localExportDir,"provenance.json");if(od.default.existsSync(r))return{[r]:od.default.readFileSync(r)};let i=od.default.readdirSync(e.localExportDir,{withFileTypes:!0}),n=i.filter(s=>s.isDirectory());if(n.length>0&&n.length===i.length&&n.every(s=>od.default.existsSync(Qg.default.join(e.localExportDir,s.name,"provenance.json")))){let s={};for(let a of n){let c=Qg.default.join(e.localExportDir,a.name,"provenance.json");s[c]=od.default.readFileSync(c)}return s}throw new Error(`No valid provenance.json found in ${e.localExportDir}`)}static getProvenanceSubjects(e){return JSON.parse(e.toString()).subject.map(i=>({name:i.name,digest:i.digest}))}static async signPayload(e,r,i,n){let s=[],a=new ad.FulcioSigner({identityProvider:new ad.CIContextProvider("sigstore"),fulcioBaseURL:r.fulcioURL,timeout:i,retry:n});return r.rekorURL&&s.push(new ad.RekorWitness({rekorBaseURL:r.rekorURL,fetchOnConflict:!0,timeout:i,retry:n})),r.tsaServerURL&&s.push(new ad.TSAWitness({tsaBaseURL:r.tsaServerURL,timeout:i,retry:n})),new ad.DSSEBundleBuilder({signer:a,witnesses:s}).create(e)}static parseBundle(e){let r=t.parseCertificate(e),i=e.verificationMaterial.tlogEntries,n=i.length>0?i[0].logIndex:void 0;return{payload:(0,X2.bundleToJSON)(e),certificate:r.toString(),tlogID:n}} Line truncated
`)){let[l,...f]=u.split(":"),h=l.toLowerCase(),d=f.map(p=>p.trim()).join(":");if(l.length!=0)switch(!0){case h=="name":i=void 0,r.name==null?r.name=d:(s&&n.gcPolicy&&(n.gcPolicy.push(s),s=void 0),n.name&&r.nodes.push(n),n={name:d});break;case h=="driver":i=void 0,r.driver=d;break;case h=="last activity":i=void 0,r.lastActivity=new Date(d);break;case h=="endpoint":i=void 0,n.endpoint=d;break;case h=="driver options":i=void 0,n["driver-opts"]=(d.match(/([a-zA-Z0-9_.]+)="([^"]*)"/g)||[]).map(p=>p.replace(/^(.*)="(.*)"$/g,"$1=$2"));break;case h=="status":i=void 0,n.status=d;break;case h=="buildkit daemon flags":case h=="flags":i=void 0,n["buildkitd-flags"]=d;break;case h=="buildkit version":case h=="buildkit":i=void 0,n.buildkit=d;break;case h=="platforms":{if(i=void 0,!d)break;let p=[];if(d.includes("*"))for(let A of d.split(", "))A.includes("*")&&p.push(A.replace(/\*/g,""));else p=d.split(", ");n.platforms=p.join(",");break}case h=="features":i="features",n.features={};break;case h=="labels":i="label",n.labels={};break;case h=="devices":i="devices",n.devices=n.devices||[];break;case h.startsWith("gc policy rule#"):i="gcpolicy",n.gcPolicy&&s&&(n.gcPolicy.push(s),s=void 0);break;case h.startsWith("file#"):i="file",c=l.split("#")[1],n.files=n.files||{},n.files[c]="";break;default:switch(i&&i!=="devices"&&n.devices&&a&&(n.devices.push(a),a=void 0),i||""){case"features":{n.features=n.features||{},n.features[l.trim()]=!!d;break}case"label":{n.labels=n.labels||{},n.labels[l.trim()]=d;break}case"devices":{switch(h.trim()){case"name":{n.devices&&a&&n.devices.push(a),a={},a.name=d;break}case"on-demand":{a&&d&&(a.onDemand=d=="true");break}case"automatically allowed":{a&&d&&(a.autoAllow=d=="true");break}case"annotations":{a&&(a.annotations=a.annotations||{});break}default:a&&a.annotations&&(a.annotations[l.trim()]=d)}break}case"gcpolicy":{switch(n.gcPolicy=n.gcPolicy||[],s=s||{},h.trim()){case"all":{s.all=d=="true";break}case"filters":{d&&(s.filter=d.split(","));break}case"keep duration":{s.keepDuration=d;break}case"keep bytes":{s.keepBytes=d;break}case"reserved space":{s.reservedSpace=d;break}case"max used space":{s.maxUsedSpace=d;break}case"min free space":{s.minFreeSpace=d;break}}break}case"file":{c&&n.files&&(n.files[c].length>0&&(n.files[c]+=`
`),n.files[c]+=u.replace(/^\s>\s?/,""));break}}}}return a&&n.devices&&n.devices.push(a),s&&n.gcPolicy&&n.gcPolicy.push(s),n.name&&r.nodes.push(n),r}};var Uot=P(Sl(),1);var h6=P(require("fs"),1);var d6=class{static{o(this,"Config")}resolveFromString(e){return this.resolve(e,!1)}resolveFromFile(e){return this.resolve(e,!0)}resolve(e,r){if(r){if(!h6.default.existsSync(e))throw new Error(`config file ${e} not found`);e=h6.default.readFileSync(e,{encoding:"utf-8"})}let i=Dt.tmpName({tmpdir:Dt.tmpDir()});return h6.default.writeFileSync(i,e),i}};var p6=class{static{o(this,"BuildKit")}buildx;config;constructor(e){this.config=new d6,this.buildx=e?.buildx||new Jt}async getVersion(e){if(!e.buildkit&&e.name)try{return await this.getVersionWithinImage(e.name)}catch(r){fr(r)}return e.buildkit}async getVersionWithinImage(e){return L(`BuildKit.getVersionWithinImage nodeName: ${e}`),Oi.getExecOutput(["inspect","--format","{{.Config.Image}}",`${Jt.containerNamePrefix}${e}`],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.exitCode==0&&r.stdout.length>0)return L(`BuildKit.getVersionWithinImage image: ${r.stdout.trim()}`),Oi.getExecOutput(["run","--rm",r.stdout.trim(),"--version"],{ignoreReturnCode:!0,silent:!0}).then(i=>{if(i.exitCode==0&&i.stdout.length>0)return`${r.stdout.trim()} => ${i.stdout.trim()}`;if(i.stderr.length>0)throw new Error(r.stderr.trim());return i.stdout.trim()});if(r.stderr.length>0)throw new Error(r.stderr.trim());return r.stdout.trim()})}async versionSatisfies(e,r,i){i||(i=await new uv({buildx:this.buildx}).inspect(e));for(let n of i.nodes){let s=n.buildkit;if(L(`BuildKit.versionSatisfies ${s}: ${r}`),!s)try{s=await this.getVersionWithinImage(n.name||"")}catch{return L(`BuildKit.versionSatisfies ${n.name}: can't get version`),!1}if(L(`BuildKit.versionSatisfies ${n.name}: version ${s}`),i.driver=="docker"&&!s.endsWith("-moby")||!Uot.satisfies(s.replace(/-moby$/,""),r))return!1}return!0}};var m6=class t{static{o(this,"Compose")}_version;_versionOnce;_standalone;constructor(e){this._standalone=e?.standalone,this._version="",this._versionOnce=!1}async isStandalone(){let e=this._standalone??!await Oi.isAvailable();return L(`Compose.isStandalone: ${e}`),e}async getCommand(e){let r=await this.isStandalone();return{command:r?"compose":"docker",args:r?e:["compose",...e]}}async isAvailable(){let e=await this.getCommand([]),r=await qe.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(i=>i.stderr.length>0&&i.exitCode!=0?(L(`Compose.isAvailable cmd err: ${i.stderr.trim()}`),!1):i.exitCode==0).catch(i=>(L(`Compose.isAvailable error: ${i}`),!1));return L(`Compose.isAvailable: ${r}`),r}async version(){if(this._versionOnce)return this._version;this._versionOnce=!0;let e=await this.getCommand(["version"]);return this._version=await qe.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr.trim());return t.parseVersion(r.stdout.trim())}),this._version}async printVersion(){let e=await this.getCommand(["version"]);await qe.exec(e.command,e.args,{failOnStdErr:!1})}static parseVersion(e){let r=/\sv?([0-9a-f]{7}|[0-9.]+)/.exec(e);if(!r)throw new Error("Cannot parse compose version");return r[1]}};var Am=P(require("fs"),1),ud=P(require("os"),1),lv=P(require("path"),1);var g6=P(Sl(),1),wAe=P(require("util"),1);var A6=class t{static{o(this,"Install")}standalone;githubToken;constructor(e){this.standalone=e?.standalone,this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let i=await t.getDownloadVersion(e);L(`Install.download version: ${i.version}`);let n=await t.getRelease(i,this.githubToken);L(`Install.download release tag name: ${n.tag_name}`);let s=await this.vspec(n.tag_name);L(`Install.download vspec: ${s}`);let a=g6.clean(s)||"";if(!g6.valid(a))throw new Error(`Invalid Compose version "${s}".`);let c=new Tn({htcName:i.key!="official"?`compose-dl-bin-${i.key}`:"compose-dl-bin",htcVersion:s,baseCacheDir:lv.default.join(ud.default.homedir(),".bin","docker-compose"),cacheFile:ud.default.platform()=="win32"?"docker-compose.exe":"docker-compose",ghaNoCache:r}),u=await c.find();if(u)return j(`Compose binary found in ${u}`),u;let l=wAe.format(i.downloadURL,s,this.filename());j(`Downloading ${l}`);let f=await Jc(l,void 0,this.githubToken);L(`Install.download htcDownloadPath: ${f}`);let h=await c.save(f);return j(`Cached to ${h}`),h}async installStandalone(e,r){j("Standalone mode"),r=r||Dt.tmpDir();let i=lv.default.join(r,"compose-bin-standalone");Am.default.existsSync(i)||Am.default.mkdirSync(i,{recursive:!0});let n=ud.default.platform()=="win32"?"compose.exe":"compose",s=lv.default.join(i,n);return Am.default.copyFileSync(e,s),j("Fixing perms"),Am.default.chmodSync(s,"0755"),hf(i),j("Added Compose to PATH"),j(`Binary path: ${s}`),s}async installPlugin(e,r){j("Docker plugin mode"),r=r||Oi.configDir;let i=lv.default.join(r,"cli-plugins");Am.default.existsSync(i)||Am.default.mkdirSync(i,{recursive:!0});let n=ud.defau Line truncated
# syntax=docker/dockerfile:1
ARG GO_VERSION="1.24"
@@ -308,8 +308,8 @@ EOT
FROM scratch
COPY --from=builder /out /
`;var A6=class t{githubToken;buildx;sigstore;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.buildx=e?.buildx||new Wt,this.sigstore=e?.sigstore||new Qg}async download(e){let r=await t.getDownloadVersion(e.version);Q(`Install.download version: ${r.version}`);let i=await t.getRelease(r,this.githubToken);Q(`Install.download release tag name: ${i.tag_name}`);let n=await this.vspec(i.tag_name);Q(`Install.download vspec: ${n}`);let s=fv.clean(n)||"";if(!fv.valid(s))throw new Error(`Invalid Cosign version "${n}".`);let o=new Rn({htcName:"cosign-dl-bin",htcVersion:n,baseCacheDir:lv.default.join($l.default.homedir(),".bin"),cacheFile:$l.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:e.ghaNoCache}),a=await o.find();if(a)return H(`Cosign binary found in ${a}`),a;let c=wAe.format(r.downloadURL,n,this.filename());H(`Downloading ${c}`);let u=await Wc(c,void 0,this.githubToken);Q(`Install.download htcDownloadPath: ${u}`),e.verifySignature&&fv.satisfies(n,">=3.0.1")&&await this.verifySignature(u,c);let l=await o.save(u,e.skipState);return H(`Cached to ${l}`),l}async build(e,r,i){let n=await this.vspec(e);Q(`Install.build vspec: ${n}`);let s=new Rn({htcName:"cosign-build-bin",htcVersion:n,baseCacheDir:lv.default.join($l.default.homedir(),".bin"),cacheFile:$l.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),o=await s.find();if(o)return H(`Cosign binary found in ${o}`),o;let a=lv.default.join(Nt.tmpDir(),"cosign-build-cache"),c=await this.buildCommand(e,a),u=await Ue.getExecOutput(c.command,c.args,{ignoreReturnCode:!0,input:Buffer.from(Uot)}).then(f=>{if(f.stderr.length>0&&f.exitCode!=0)throw new Error(`build failed with: ${f.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return`${a}/cosign`}),l=await s.save(u,i);return H(`Cached to ${l}`),l}async install(e,r){r=r||Nt.tmpDir();let i=lv.default.join(r,"cosign-bin");X2.default.existsSync(i)||X2.default.mkdirSync(i,{recursive:!0});let n=$l.default.platform()=="win32"?"cosign.exe":"cosign",s=lv.default.join(i,n);return X2.default.copyFileSync(e,s),H("Fixing perms"),X2.default.chmodSync(s,"0755"),ff(i),H("Added Cosign to PATH"),H(`Binary path: ${s}`),s}async buildCommand(e,r){let i=await new Wt({standalone:!0}).isAvailable(),n=await new Wt({standalone:!1}).isAvailable(),s=!1;if(await this.buildx.isStandalone()&&i)Q("Install.buildCommand: Buildx standalone found, build with it"),s=!0;else if(!await this.buildx.isStandalone()&&n)Q("Install.buildCommand: Buildx plugin found, build with it"),s=!1;else if(i)Q("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),s=!0;else if(n)Q("Install.buildCommand: Buildx standalone not found, but plugin found so trying to build with it"),s=!1;else throw new Error(`Neither buildx standalone or plugin have been found to build from ref ${e}`);let o=["build","--platform","local","--build-arg","BUILDKIT_CONTEXT_KEEP_GIT_DIR=1","--output",`type=local,dest=${r}`];return process.env.GIT_AUTH_TOKEN&&o.push("--secret","id=GIT_AUTH_TOKEN"),o.push("-f-",e),await new Wt({standalone:s}).getCommand(o)}async verifySignature(e,r){let i=`${r}.sigstore.json`;H(`Downloading keyless verification bundle at ${i}`);let n=await Wc(i,void 0,this.githubToken);Q(`Install.verifySignature bundlePath: ${n}`);let s=await this.sigstore.verifyArtifact(e,n,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});H(`Cosign binary signature verified! ${s.tlogID?`${ob}?logIndex=${s.tlogID}`:""}`)}filename(){let e;switch($l.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=$l.default.arch();break}}let r=$l.default.platform()=="win32"?"windows":$l.default.platform(),i=$l.default.platform()=="win32"?".exe":"";return wAe.format("cosign-%s-%s%s",r,e,i)}async vspec(e){if(!Ye.isValidRef(e)){let u=e.replace(/^v+|v+$/g,"");return H(`Use ${u} version spec cache key for ${e}`),u}let[r,i]=e.split("#");i.length==0&&(i="master");let n;i.match(/^[0-9a-fA-F]{40}$/)?n=i:n=await IS.remoteSha(r,i,process.env.GIT_AUTH_TOKEN);let[s,o]=r.substring(19).split("/"),a=`${s}/${Ye.trimSuffix(o,".git")}/${n}`,c=Ye.hash(a);return H(`Use ${c} version spec cache key for ${a}`),c}static async getDownloadVersion(e){return{version:e,downloadURL:"https://github.com/sigstore/cosign/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/cosign-releases.json"}}}static async getRelease(e,r){let n=await new At({token:r}).releases("Cosign",e.contentOpts);if(!n[e.version])throw new Error(`Cannot find Cosign release ${e.version} in releases JSON`);return n[e.version]}};var qot=O(Il(),1);var g6=class{binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"regctl",this._version="",this._versionOnce=!1}async blobGet(e){return await Ue.getExecOutput(this.binPath,["blob","get",e.repository,e.digest],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitC Line truncated
`)[0]?.trim())}else h.stderr.length>0&&(u=Error(`buildx bake failed with: ${h.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`))});let l=r.buildxBake.resolveMetadata();l&&await ni("Metadata",async()=>{let h=JSON.stringify(l,null,2);H(h),NSe("metadata",h)});let f=[];if(await ni("Build references",async()=>{if(f=await ARr(r,t,e.builder),f.length>0){for(let h of f)H(h);iat(f)}else H("No build references found")}),gRr()){let h=r.buildxBake.resolveWarnings(l);if(f.length>0&&h&&h.length>0){let d=await Wt.convertWarningsToGitHubAnnotations(h,f);Q(`annotations: ${JSON.stringify(d,null,2)}`),d&&d.length>0&&await ni(`Generating GitHub annotations (${d.length} build checks found)`,async()=>{for(let m of d)lr(m.message,m)})}}if(await ni("Check build summary support",async()=>{yRr()?e.call&&e.call!=="build"?H(`Build summary skipped for ${e.call} subrequest`):At.isGHES?H("Build summary is not yet supported on GHES"):await r.buildx.versionSatisfies(">=0.23.0")?f.length==0?H("Build summary requires at least one build reference"):(H("Build summary supported!"),nat()):H("Build summary requires Buildx >= 0.23.0"):H("Build summary disabled")}),u)throw u},async()=>{Xot&&await ni("Generating build summary",async()=>{try{let t=ERr(),e;t&&(e=bRr());let i=await new MF().export({refs:Kot});H(`Build records written to ${i.dockerbuildFilename} (${Ye.formatFileSize(i.dockerbuildSize)})`);let n;t&&(n=await J3.upload({filename:i.dockerbuildFilename,retentionDays:e})),await i4.writeBuildSummary({exportRes:i,uploadRes:n,inputs:Jot,bakeDefinition:Yot,driver:$ot,endpoint:Wot})}catch(t){lr(t.message)}}),B6.length>0&&await ni(`Removing temp folder ${B6}`,async()=>{oat.rmSync(B6,{recursive:!0})})});async function ARr(t,e,r){let i=t.buildxBake.resolveRefs();if(i)return i;r||(r=(await t.builder.inspect()).name);let n=Wt.refs({dir:Wt.refsDir,builderName:r,since:e}),s=[];for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&s.push(o);return s}function gRr(){return process.env.DOCKER_BUILD_CHECKS_ANNOTATIONS?Ye.parseBool(process.env.DOCKER_BUILD_CHECKS_ANNOTATIONS):!0}function yRr(){return process.env.DOCKER_BUILD_SUMMARY?Ye.parseBool(process.env.DOCKER_BUILD_SUMMARY):!0}function ERr(){return process.env.DOCKER_BUILD_RECORD_UPLOAD?Ye.parseBool(process.env.DOCKER_BUILD_RECORD_UPLOAD):!0}function bRr(){let t=process.env.DOCKER_BUILD_RECORD_RETENTION_DAYS;if(t){let e=parseInt(t);if(isNaN(e))throw Error(`Invalid build record retention days: ${t}`);return e}}
`;var y6=class t{static{o(this,"Install")}githubToken;buildx;sigstore;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.buildx=e?.buildx||new Jt,this.sigstore=e?.sigstore||new Lg}async download(e){let r=await t.getDownloadVersion(e.version);L(`Install.download version: ${r.version}`);let i=await t.getRelease(r,this.githubToken);L(`Install.download release tag name: ${i.tag_name}`);let n=await this.vspec(i.tag_name);L(`Install.download vspec: ${n}`);let s=hv.clean(n)||"";if(!hv.valid(s))throw new Error(`Invalid Cosign version "${n}".`);let a=new Tn({htcName:"cosign-dl-bin",htcVersion:n,baseCacheDir:fv.default.join(Wl.default.homedir(),".bin"),cacheFile:Wl.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:e.ghaNoCache}),c=await a.find();if(c)return j(`Cosign binary found in ${c}`),c;let u=CAe.format(r.downloadURL,n,this.filename());j(`Downloading ${u}`);let l=await Jc(u,void 0,this.githubToken);L(`Install.download htcDownloadPath: ${l}`),e.verifySignature&&hv.satisfies(n,">=3.0.1")&&await this.verifySignature(l,u);let f=await a.save(l,e.skipState);return j(`Cached to ${f}`),f}async build(e,r,i){let n=await this.vspec(e);L(`Install.build vspec: ${n}`);let s=new Tn({htcName:"cosign-build-bin",htcVersion:n,baseCacheDir:fv.default.join(Wl.default.homedir(),".bin"),cacheFile:Wl.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),a=await s.find();if(a)return j(`Cosign binary found in ${a}`),a;let c=fv.default.join(Dt.tmpDir(),"cosign-build-cache"),u=await this.buildCommand(e,c),l=await qe.getExecOutput(u.command,u.args,{ignoreReturnCode:!0,input:Buffer.from(qot)}).then(h=>{if(h.stderr.length>0&&h.exitCode!=0)throw new Error(`build failed with: ${h.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return`${c}/cosign`}),f=await s.save(l,i);return j(`Cached to ${f}`),f}async install(e,r){r=r||Dt.tmpDir();let i=fv.default.join(r,"cosign-bin");Z2.default.existsSync(i)||Z2.default.mkdirSync(i,{recursive:!0});let n=Wl.default.platform()=="win32"?"cosign.exe":"cosign",s=fv.default.join(i,n);return Z2.default.copyFileSync(e,s),j("Fixing perms"),Z2.default.chmodSync(s,"0755"),hf(i),j("Added Cosign to PATH"),j(`Binary path: ${s}`),s}async buildCommand(e,r){let i=await new Jt({standalone:!0}).isAvailable(),n=await new Jt({standalone:!1}).isAvailable(),s=!1;if(await this.buildx.isStandalone()&&i)L("Install.buildCommand: Buildx standalone found, build with it"),s=!0;else if(!await this.buildx.isStandalone()&&n)L("Install.buildCommand: Buildx plugin found, build with it"),s=!1;else if(i)L("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),s=!0;else if(n)L("Install.buildCommand: Buildx standalone not found, but plugin found so trying to build with it"),s=!1;else throw new Error(`Neither buildx standalone or plugin have been found to build from ref ${e}`);let a=["build","--platform","local","--build-arg","BUILDKIT_CONTEXT_KEEP_GIT_DIR=1","--output",`type=local,dest=${r}`];return process.env.GIT_AUTH_TOKEN&&a.push("--secret","id=GIT_AUTH_TOKEN"),a.push("-f-",e),await new Jt({standalone:s}).getCommand(a)}async verifySignature(e,r){let i=`${r}.sigstore.json`;j(`Downloading keyless verification bundle at ${i}`);let n=await Jc(i,void 0,this.githubToken);L(`Install.verifySignature bundlePath: ${n}`);let s=await this.sigstore.verifyArtifact(e,n,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});j(`Cosign binary signature verified! ${s.tlogID?`${ab}?logIndex=${s.tlogID}`:""}`)}filename(){let e;switch(Wl.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=Wl.default.arch();break}}let r=Wl.default.platform()=="win32"?"windows":Wl.default.platform(),i=Wl.default.platform()=="win32"?".exe":"";return CAe.format("cosign-%s-%s%s",r,e,i)}async vspec(e){if(!Ke.isValidRef(e)){let l=e.replace(/^v+|v+$/g,"");return j(`Use ${l} version spec cache key for ${e}`),l}let[r,i]=e.split("#");i.length==0&&(i="master");let n;i.match(/^[0-9a-fA-F]{40}$/)?n=i:n=await SS.remoteSha(r,i,process.env.GIT_AUTH_TOKEN);let[s,a]=r.substring(19).split("/"),c=`${s}/${Ke.trimSuffix(a,".git")}/${n}`,u=Ke.hash(c);return j(`Use ${u} version spec cache key for ${c}`),u}static async getDownloadVersion(e){return{version:e,downloadURL:"https://github.com/sigstore/cosign/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/cosign-releases.json"}}}static async getRelease(e,r){let n=await new gt({token:r}).releases("Cosign",e.contentOpts);if(!n[e.version])throw new Error(`Cannot find Cosign release ${e.version} in releases JSON`);return n[e.version]}};var Got=P(Sl(),1);var E6=class{static{o(this,"Regctl")}binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"regctl",this._version="",this._versionOnce=!1}async blobGet(e){return await qe.getExecOutput(this.binPath,["blob","get",e.repository,e.digest],{ignoreReturnCode:!0,s Line truncated
`)[0]?.trim())}else d.stderr.length>0&&(l=Error(`buildx bake failed with: ${d.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`))});let f=r.buildxBake.resolveMetadata();f&&await si("Metadata",async()=>{let d=JSON.stringify(f,null,2);j(d),DSe("metadata",d)});let h=[];if(await si("Build references",async()=>{if(h=await gRr(r,t,e.builder),h.length>0){for(let d of h)j(d);nat(h)}else j("No build references found")}),yRr()){let d=r.buildxBake.resolveWarnings(f);if(h.length>0&&d&&d.length>0){let p=await Jt.convertWarningsToGitHubAnnotations(d,h);L(`annotations: ${JSON.stringify(p,null,2)}`),p&&p.length>0&&await si(`Generating GitHub annotations (${p.length} build checks found)`,async()=>{for(let A of p)fr(A.message,A)})}}if(await si("Check build summary support",async()=>{ERr()?e.call&&e.call!=="build"?j(`Build summary skipped for ${e.call} subrequest`):gt.isGHES?j("Build summary is not yet supported on GHES"):await r.buildx.versionSatisfies(">=0.23.0")?h.length==0?j("Build summary requires at least one build reference"):(j("Build summary supported!"),sat()):j("Build summary requires Buildx >= 0.23.0"):j("Build summary disabled")}),l)throw l},async()=>{Zot&&await si("Generating build summary",async()=>{try{let t=bRr(),e;t&&(e=wRr());let i=await new UF().export({refs:Xot});j(`Build records written to ${i.dockerbuildFilename} (${Ke.formatFileSize(i.dockerbuildSize)})`);let n;t&&(n=await K3.upload({filename:i.dockerbuildFilename,retentionDays:e})),await s4.writeBuildSummary({exportRes:i,uploadRes:n,inputs:Yot,bakeDefinition:Kot,driver:Wot,endpoint:Jot})}catch(t){fr(t.message)}}),_6.length>0&&await si(`Removing temp folder ${_6}`,async()=>{aat.rmSync(_6,{recursive:!0})})});async function gRr(t,e,r){let i=t.buildxBake.resolveRefs();if(i)return i;r||(r=(await t.builder.inspect()).name);let n=Jt.refs({dir:Jt.refsDir,builderName:r,since:e}),s=[];for(let a in n)Object.prototype.hasOwnProperty.call(n,a)&&s.push(a);return s}o(gRr,"buildRefs");function yRr(){return process.env.DOCKER_BUILD_CHECKS_ANNOTATIONS?Ke.parseBool(process.env.DOCKER_BUILD_CHECKS_ANNOTATIONS):!0}o(yRr,"buildChecksAnnotationsEnabled");function ERr(){return process.env.DOCKER_BUILD_SUMMARY?Ke.parseBool(process.env.DOCKER_BUILD_SUMMARY):!0}o(ERr,"buildSummaryEnabled");function bRr(){return process.env.DOCKER_BUILD_RECORD_UPLOAD?Ke.parseBool(process.env.DOCKER_BUILD_RECORD_UPLOAD):!0}o(bRr,"buildRecordUploadEnabled");function wRr(){let t=process.env.DOCKER_BUILD_RECORD_RETENTION_DAYS;if(t){let e=parseInt(t);if(isNaN(e))throw Error(`Invalid build record retention days: ${t}`);return e}}o(wRr,"buildRecordRetentionDays");
/*! Bundled license information:
undici/lib/web/fetch/body.js:
Generated Vendored
+2 -2
View File
@@ -2,6 +2,6 @@
"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": "koBAAA,IAAAA,IAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,QAAQ,KAAK,EACnBC,IAAM,QAAQ,KAAK,EACnBC,GAAO,QAAQ,MAAM,EACrBC,IAAQ,QAAQ,OAAO,EACvBC,IAAS,QAAQ,QAAQ,EACzBC,IAAS,QAAQ,QAAQ,EACzBC,IAAO,QAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,IACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACtBS,EAAM,aAAeE,IACrBF,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,IAAUH,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,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,IAAUH,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,IAAmBH,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,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,IAAUH,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,MAAA,CAAAA,IAAO,QAAU,QCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,MAAA,CAAAA,IAAO,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
"mappings": "srBAAA,IAAAA,IAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,QAAQ,KAAK,EACnBC,IAAM,QAAQ,KAAK,EACnBC,GAAO,QAAQ,MAAM,EACrBC,IAAQ,QAAQ,OAAO,EACvBC,IAAS,QAAQ,QAAQ,EACzBC,IAAS,QAAQ,QAAQ,EACzBC,IAAO,QAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAJSE,EAAAP,IAAA,gBAMT,SAASC,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeG,IACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAN,IAAA,iBAQT,SAASC,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACfS,CACT,CAJSE,EAAAL,IAAA,iBAMT,SAASC,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACtBS,EAAM,aAAeG,IACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAJ,IAAA,kBAST,SAASG,GAAeF,EAAS,CAC/B,IAAIK,EAAO,KACXA,EAAK,QAAUL,GAAW,CAAC,EAC3BK,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcd,GAAK,MAAM,kBACxDc,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQF,EAAA,SAAgBG,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIT,EAAUU,IAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASb,EAAQ,MAAQa,EAAQ,OAASb,EAAQ,KAAM,CAGlEK,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,EAdgB,SAcf,CACH,CAvBSH,EAAAD,GAAA,kBAwBTP,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAaC,EAAA,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPL,EAAUe,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,IAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKL,CAAO,EAC1B,MACF,CAGAK,EAAK,aAAaL,EAAS,SAASM,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,EAAQN,CAAO,CACnC,CAFSG,EAAAa,EAAA,UAIT,SAASC,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CALSd,EAAAc,EAAA,kBAMX,CAAC,CACH,EA5BsC,cA8BtCf,GAAe,UAAU,aAAeC,EAAA,SAAsBH,EAASmB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAML,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVqB,EAAe,aAAerB,EAAQ,cAEpCqB,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,CAHSzB,EAAAqB,EAAA,cAKT,SAASC,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CALS1B,EAAAsB,EAAA,aAOT,SAASC,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,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,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,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CA3BSH,EAAAuB,EAAA,aA6BT,SAASC,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CAVSjB,EAAAwB,EAAA,UAWX,EAnFwC,gBAqFxCzB,GAAe,UAAU,aAAeC,EAAA,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,EAfwC,gBAiBxC,SAASF,IAAmBJ,EAASmB,EAAI,CACvC,IAAId,EAAO,KACXH,GAAe,UAAU,aAAa,KAAKG,EAAML,EAAS,SAASM,EAAQ,CACzE,IAAI2B,EAAajC,EAAQ,QAAQ,UAAU,MAAM,EAC7CkC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIjC,EAAQ,IACpE,CAAC,EAGGmC,EAAe7C,IAAI,QAAQ,EAAG4C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAdShC,EAAAC,IAAA,sBAiBT,SAASM,IAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CATSJ,EAAAO,IAAA,aAWT,SAASK,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,CAdSjC,EAAAY,GAAA,gBAiBT,IAAIO,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQnB,EAAA,UAAW,CACjB,IAAIuC,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "__name", "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", "__name", "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", "__name", "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", "__name", "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", "__name", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "resetLine truncated
}
+1 -1
View File
@@ -4,7 +4,7 @@
"type": "module",
"main": "src/main.ts",
"scripts": {
"build": "esbuild src/main.ts --bundle --platform=node --target=node24 --format=cjs --outfile=dist/index.cjs --sourcemap --minify && yarn run license",
"build": "esbuild src/main.ts --bundle --platform=node --target=node24 --format=cjs --outfile=dist/index.cjs --sourcemap --minify --keep-names && yarn run license",
"lint": "eslint --max-warnings=0 .",
"format": "eslint --fix .",
"test": "vitest run",